All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.butterfaces-dist-bundle-js.butterfaces-all-with-jquery-bundle.min.js Maven / Gradle / Ivy

There is a newer version: 3.5.0
Show newest version
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";function g(e){return null!=e&&e===e.window}var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,v=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,y=n.hasOwnProperty,a=y.toString,l=a.call(Object),m={},x=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.4.1",S=function(e,t){return new S.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!x(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&0>10|55296,1023&r|56320)}function i(){T()}var e,d,b,o,a,h,p,g,w,u,l,T,C,s,E,v,c,y,m,S="sizzle"+ +new Date,x=n.document,k=0,r=0,N=ue(),A=ue(),D=ue(),j=ue(),q=function(e,t){return e===t&&(l=!0),0},L={}.hasOwnProperty,t=[],H=t.pop,O=t.push,P=t.push,R=t.slice,M=function(e,t){for(var n=0,r=e.length;n+~]|"+W+")"+W+"*"),V=new RegExp(W+"|>"),G=new RegExp(B),Y=new RegExp("^"+$+"$"),Q={ID:new RegExp("^#("+$+")"),CLASS:new RegExp("^\\.("+$+")"),TAG:new RegExp("^("+$+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+W+"*(even|odd|(([+-]|)(\\d*)n|)"+W+"*(?:([+-]|)"+W+"*(\\d+)|))"+W+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+W+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+W+"*((?:-\\d)?\\d*)"+W+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,ee=/^[^{]+\{\s*\[native \w/,te=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ne=/[+~]/,re=new RegExp("\\\\([\\da-f]{1,6}"+W+"?|("+W+")|.)","ig"),ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{P.apply(t=R.call(x.childNodes),x.childNodes),t[x.childNodes.length].nodeType}catch(e){P={apply:t.length?function(e,t){O.apply(e,R.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,n,r){var i,o,a,s,u,l,c,f=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!r&&((t?t.ownerDocument||t:x)!==C&&T(t),t=t||C,E)){if(11!==p&&(u=te.exec(e)))if(i=u[1]){if(9===p){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&m(t,a)&&a.id===i)return n.push(a),n}else{if(u[2])return P.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&d.getElementsByClassName&&t.getElementsByClassName)return P.apply(n,t.getElementsByClassName(i)),n}if(d.qsa&&!j[e+" "]&&(!v||!v.test(e))&&(1!==p||"object"!==t.nodeName.toLowerCase())){if(c=e,f=t,1===p&&V.test(e)){for((s=t.getAttribute("id"))?s=s.replace(ie,oe):t.setAttribute("id",s=S),o=(l=h(e)).length;o--;)l[o]="#"+s+" "+xe(l[o]);c=l.join(","),f=ne.test(e)&&ye(t.parentNode)||t}try{return P.apply(n,f.querySelectorAll(c)),n}catch(t){j(e,!0)}finally{s===S&&t.removeAttribute("id")}}}return g(e.replace(z,"$1"),t,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),r=n.length;r--;)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(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&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in d=se.support={},a=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!J.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:x;return r!==C&&9===r.nodeType&&r.documentElement&&(s=(C=r).documentElement,E=!a(C),x!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",i,!1):n.attachEvent&&n.attachEvent("onunload",i)),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=ee.test(C.getElementsByClassName),d.getById=ce(function(e){return s.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(re,f);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(re,f);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},b.find.CLASS=d.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&E)return t.getElementsByClassName(e)},c=[],v=[],(d.qsa=ee.test(C.querySelectorAll))&&(ce(function(e){s.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+W+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+W+"*(?:value|"+I+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+W+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=ee.test(y=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),c.push("!=",B)}),v=v.length&&new RegExp(v.join("|")),c=c.length&&new RegExp(c.join("|")),t=ee.test(s.compareDocumentPosition),m=t||ee.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},q=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===x&&m(x,e)?-1:t===C||t.ownerDocument===x&&m(x,t)?1:u?M(u,e)-M(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?M(u,e)-M(u,t):0;if(i===o)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]===x?-1:s[r]===x?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),d.matchesSelector&&E&&!j[t+" "]&&(!c||!c.test(t))&&(!v||!v.test(t)))try{var n=y.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){j(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(re,f),e[3]=(e[3]||e[4]||e[5]||"").replace(re,f),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&G.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(re,f).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=new RegExp("(^|"+W+")"+e+"("+W+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return x(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||q,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):x(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this);if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),D.test(r[1])&&S.isPlainObject(t))for(r in t)x(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}).prototype=S.fn,q=S(E);var H=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;nx",m.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var Te=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ee=/^([^.]*)(?:\.(.+)|)/;function Se(){return!0}function ke(){return!1}function Ne(e,t){return e===function(){try{return E.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=ke;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,i,r,n)})}function De(e,i,o){o?(Q.set(e,i,!1),S.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Q.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(S.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Q.set(this,i,r),t=o(this,i),this[i](),r!==(n=Q.get(this,i))||t?Q.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n.value}else r.length&&(Q.set(this,i,{value:S.event.trigger(S.extend(r[0],S.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,i)&&S.event.add(e,i,Se)}S.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.get(t);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(ie,i),n.guid||(n.guid=S.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(R)||[""]).length;l--;)d=g=(s=Ee.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=S.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=S.event.special[d]||{},c=S.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=Q.hasData(e)&&Q.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(R)||[""]).length;l--;)if(d=g=(s=Ee.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=S.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],n,r,!0);S.isEmptyObject(u)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=S.event.fix(e),u=new Array(arguments.length),l=(Q.get(this,"events")||{})[s.type]||[],c=S.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,qe=/\s*$/g;function Oe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Pe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.access(e),a=Q.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=oe(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(a=ve(c),r=0,i=(o=ve(e)).length;r").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var nn,rn=[],on=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=rn.pop()||S.expando+"_"+Ot++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(on.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&on.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=x(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(on,"$1"+r):!1!==e.jsonp&&(e.url+=(Pt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,rn.push(r)),o&&x(i)&&i(o[0]),o=i=void 0}),"script"}),m.createHTMLDocument=((nn=E.implementation.createHTMLDocument("").body).innerHTML="
",2===nn.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=D.exec(e))?[t.createElement(i[1])]:(i=we([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),i=("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,r.left):(a=parseFloat(o)||0,parseFloat(u)||0),x(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===S.css(e,"position");)e=e.offsetParent;return e||ie})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return _(this,function(e,t,n){var r;if(g(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Je(m.pixelPosition,function(e,t){if(t)return t=Qe(e,n),Ve.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return _(this,function(e,t,n){var r;return g(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0f[0]&&(f[1]+1>f[0]&&a.push("-"),a.push(h(f[1])))}return a.push("]"),a.join("")}function s(e){for(var t=e.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),n=t.length,r=[],a=0,s=0;a/,null])):t.push([d,/^#[^\r\n]*/,null,"#"])),e.cStyleComments&&(n.push([d,/^\/\/[^\r\n]*/,null]),n.push([d,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var a=e.regexLiterals;if(a){var s=1|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+l+")")])}var o=e.types;o&&n.push([h,o]);var u=(""+e.keywords).replace(/^ | $/g,"");u.length&&n.push(["kwd",new RegExp("^(?:"+u.replace(/[\s,]+/g,"|")+")\\b"),null]),t.push([_,/^\s+/,null," \r\n\t "]);var c="^.[^\\s\\w.$@'\"`/\\\\]*";return e.regexLiterals&&(c+="(?!s*/)"),n.push([g,/^@[a-z_$][a-z_$@0-9]*/i,null],[h,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[_,/^[a-z_$][a-z_$@0-9]*/i,null],[g,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[_,/^\\[\s\S]?/,null],[m,new RegExp(c),null]),x(t,n)}var S=w({keywords:[n,a,s,i,l,o,c],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function T(e,t,l){for(var o=/(?:^|\s)nocode(?:\s|$)/,u=/\r\n?|\n/,c=e.ownerDocument,n=c.createElement("li");e.firstChild;)n.appendChild(e.firstChild);var r=[n];function p(e){var t=e.nodeType;if(1!=t||o.test(e.className)){if((3==t||4==t)&&l){var n=e.nodeValue,r=n.match(u);if(r){var a=n.substring(0,r.index);e.nodeValue=a;var s=n.substring(r.index+r[0].length);if(s)e.parentNode.insertBefore(c.createTextNode(s),e.nextSibling);f(e),a||e.parentNode.removeChild(e)}}}else if("br"===e.nodeName)f(e),e.parentNode&&e.parentNode.removeChild(e);else for(var i=e.firstChild;i;i=i.nextSibling)p(i)}function f(e){for(;!e.nextSibling;)if(!(e=e.parentNode))return;for(var t,n=function e(t,n){var r=n?t.cloneNode(!1):t,a=t.parentNode;if(a){var s=e(a,1),i=t.nextSibling;s.appendChild(r);for(var l=i;l;l=i)i=l.nextSibling,s.appendChild(l)}return r}(e.nextSibling,0);(t=n.parentNode)&&1===t.nodeType;)n=t;r.push(n)}for(var a=0;a",r=r.firstChild,n&&T(r,n,!0),$({langExtension:t,numberLines:n,sourceNode:r,pre:1}),r.innerHTML}function O(y,e){var t=e||document.body,b=t.ownerDocument||document;function n(e){return t.getElementsByTagName(e)}for(var r=[n("pre"),n("code"),n("xmp")],x=[],a=0;a]*(?:>|$)/],[d,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[m,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),N(x([[_,/^[\s]+/,null," \t\r\n"],[v,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[m,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),N(x([],[[v,/^[\s\S]+/]]),["uq.val"]),N(w({keywords:n,hashComments:!0,cStyleComments:!0,types:p}),["c","cc","cpp","cxx","cyc","m"]),N(w({keywords:"null,true,false"}),["json"]),N(w({keywords:a,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:p}),["cs"]),N(w({keywords:r,cStyleComments:!0}),["java"]),N(w({keywords:c,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),N(w({keywords:l,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),N(w({keywords:i,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),N(w({keywords:o,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),N(w({keywords:s,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]),N(w({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),N(w({keywords:u,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]),N(x([],[[f,/^[\s\S]+/]]),["regex"]);var I=k.PR={createSimpleLexer:x,registerLangHandler:N,sourceDecorator:w,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:v,PR_COMMENT:d,PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:g,PR_NOCODE:"nocode",PR_PLAIN:_,PR_PUNCTUATION:m,PR_SOURCE:P,PR_STRING:f,PR_TAG:"tag",PR_TYPE:h,prettyPrintOne:IN_GLOBAL_SCOPE?k.prettyPrintOne=A:prettyPrintOne=A,prettyPrint:prettyPrint=IN_GLOBAL_SCOPE?k.prettyPrint=O:prettyPrint=O};"function"==typeof define&&define.amd&&define("google-code-prettify",[],function(){return I})}(); !function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):e.moment=a()}(this,function(){"use strict";var e,n;function l(){return e.apply(null,arguments)}function _(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function d(e){return void 0===e}function o(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function r(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function m(e,a){var t,s=[];for(t=0;t>>0,s=0;sDe(e)?(d=e+1,_-De(e)):(d=e,_),{year:d,dayOfYear:r}}function Re(e,a,t){var s,n,d=Je(e.year(),a,t),r=Math.floor((e.dayOfYear()-d-1)/7)+1;return r<1?s=r+Ce(n=e.year()-1,a,t):r>Ce(e.year(),a,t)?(s=r-Ce(e.year(),a,t),n=e.year()+1):(n=e.year(),s=r),{week:s,year:n}}function Ce(e,a,t){var s=Je(e,a,t),n=Je(e+1,a,t);return(De(e)-s+n)/7}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),x("week","w"),x("isoWeek","W"),A("week",5),A("isoWeek",5),_e("w",$),_e("ww",$,G),_e("W",$),_e("WW",$,G),le(["w","ww","W","WW"],function(e,a,t,s){a[s.substr(0,1)]=T(e)});function Ie(e,a){return e.slice(a,7).concat(e.slice(0,a))}R("d",0,"do","day"),R("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),R("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),R("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),x("day","d"),x("weekday","e"),x("isoWeekday","E"),A("day",11),A("weekday",11),A("isoWeekday",11),_e("d",$),_e("e",$),_e("E",$),_e("dd",function(e,a){return a.weekdaysMinRegex(e)}),_e("ddd",function(e,a){return a.weekdaysShortRegex(e)}),_e("dddd",function(e,a){return a.weekdaysRegex(e)}),le(["dd","ddd","dddd"],function(e,a,t,s){var n=t._locale.weekdaysParse(e,s,t._strict);null!=n?a.d=n:L(t).invalidWeekday=e}),le(["d","e","E"],function(e,a,t,s){a[s]=T(e)});var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Ge="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ve="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Ke=de;var Ze=de;var $e=de;function Be(){function e(e,a){return a.length-e.length}var a,t,s,n,d,r=[],_=[],i=[],o=[];for(a=0;a<7;a++)t=h([2e3,1]).day(a),s=this.weekdaysMin(t,""),n=this.weekdaysShort(t,""),d=this.weekdays(t,""),r.push(s),_.push(n),i.push(d),o.push(s),o.push(n),o.push(d);for(r.sort(e),_.sort(e),i.sort(e),o.sort(e),a=0;a<7;a++)_[a]=oe(_[a]),i[a]=oe(i[a]),o[a]=oe(o[a]);this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+_.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function qe(){return this.hours()%12||12}function Qe(e,a){R(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}function Xe(e,a){return a._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,qe),R("k",["kk",2],0,function(){return this.hours()||24}),R("hmm",0,0,function(){return""+qe.apply(this)+E(this.minutes(),2)}),R("hmmss",0,0,function(){return""+qe.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+E(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)}),Qe("a",!0),Qe("A",!1),x("hour","h"),A("hour",13),_e("a",Xe),_e("A",Xe),_e("H",$),_e("h",$),_e("k",$),_e("HH",$,G),_e("hh",$,G),_e("kk",$,G),_e("hmm",B),_e("hmmss",q),_e("Hmm",B),_e("Hmmss",q),ue(["H","HH"],ce),ue(["k","kk"],function(e,a,t){var s=T(e);a[ce]=24===s?0:s}),ue(["a","A"],function(e,a,t){t._isPm=t._locale.isPM(e),t._meridiem=e}),ue(["h","hh"],function(e,a,t){a[ce]=T(e),L(t).bigHour=!0}),ue("hmm",function(e,a,t){var s=e.length-2;a[ce]=T(e.substr(0,s)),a[Ye]=T(e.substr(s)),L(t).bigHour=!0}),ue("hmmss",function(e,a,t){var s=e.length-4,n=e.length-2;a[ce]=T(e.substr(0,s)),a[Ye]=T(e.substr(s,2)),a[ye]=T(e.substr(n)),L(t).bigHour=!0}),ue("Hmm",function(e,a,t){var s=e.length-2;a[ce]=T(e.substr(0,s)),a[Ye]=T(e.substr(s))}),ue("Hmmss",function(e,a,t){var s=e.length-4,n=e.length-2;a[ce]=T(e.substr(0,s)),a[Ye]=T(e.substr(s,2)),a[ye]=T(e.substr(n))});var ea,aa=ve("Hours",!0),ta={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:xe,monthsShort:Oe,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:Ve,weekdaysShort:Ge,meridiemParse:/[ap]\.?m?\.?/i},sa={},na={};function da(e){return e?e.toLowerCase().replace("_","-"):e}function ra(e){var a=null;if(!sa[e]&&"undefined"!=typeof module&&module&&module.exports)try{a=ea._abbr,require("./locale/"+e),_a(a)}catch(e){}return sa[e]}function _a(e,a){var t;return e&&(t=d(a)?oa(e):ia(e,a))&&(ea=t),ea._abbr}function ia(e,a){if(null===a)return delete sa[e],null;var t,s=ta;if(a.abbr=e,null!=sa[e])v("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=sa[e]._config;else if(null!=a.parentLocale)if(null!=sa[a.parentLocale])s=sa[a.parentLocale]._config;else{if(null==(t=ra(a.parentLocale)))return na[a.parentLocale]||(na[a.parentLocale]=[]),na[a.parentLocale].push({name:e,config:a}),null;s=t._config}return sa[e]=new b(H(s,a)),na[e]&&na[e].forEach(function(e){ia(e.name,e.config)}),_a(e),sa[e]}function oa(e){var a;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ea;if(!_(e)){if(a=ra(e))return a;e=[e]}return function(e){for(var a,t,s,n,d=0;d=a&&g(n,t,!0)>=a-1)break;a--}d++}return ea}(e)}function ma(e){var a,t=e._a;return t&&-2===L(e).overflow&&(a=t[he]<0||11be(t[Me],t[he])?Le:t[ce]<0||24Ce(t,d,r)?L(e)._overflowWeeks=!0:null!=i?L(e)._overflowWeekday=!0:(_=Ne(t,s,n,d,r),e._a[Me]=_.year,e._dayOfYear=_.dayOfYear)}(e),null!=e._dayOfYear&&(d=ua(e._a[Me],s[Me]),(e._dayOfYear>De(d)||0===e._dayOfYear)&&(L(e)._overflowDayOfYear=!0),t=ze(d,0,e._dayOfYear),e._a[he]=t.getUTCMonth(),e._a[Le]=t.getUTCDate()),a=0;a<3&&null==e._a[a];++a)e._a[a]=r[a]=s[a];for(;a<7;a++)e._a[a]=r[a]=null==e._a[a]?2===a?1:0:e._a[a];24===e._a[ce]&&0===e._a[Ye]&&0===e._a[ye]&&0===e._a[fe]&&(e._nextDay=!0,e._a[ce]=0),e._d=(e._useUTC?ze:function(e,a,t,s,n,d,r){var _;return e<100&&0<=e?(_=new Date(e+400,a,t,s,n,d,r),isFinite(_.getFullYear())&&_.setFullYear(e)):_=new Date(e,a,t,s,n,d,r),_}).apply(null,r),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ce]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(L(e).weekdayMismatch=!0)}}var Ma=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ha=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,La=/Z|[+-]\d\d(?::?\d\d)?/,ca=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ya=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ya=/^\/?Date\((\-?\d+)/i;function fa(e){var a,t,s,n,d,r,_=e._i,i=Ma.exec(_)||ha.exec(_);if(i){for(L(e).iso=!0,a=0,t=ca.length;at.valueOf():t.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},lt.isLocal=function(){return!!this.isValid()&&!this._isUTC},lt.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},lt.isUtc=Na,lt.isUTC=Na,lt.zoneAbbr=function(){return this._isUTC?"UTC":""},lt.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},lt.dates=t("dates accessor is deprecated. Use date instead.",rt),lt.months=t("months accessor is deprecated. Use month instead",We),lt.years=t("years accessor is deprecated. Use year instead",we),lt.zone=t("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,a){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,a),this):-this.utcOffset()}),lt.isDSTShifted=t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e={};if(f(e,this),(e=wa(e))._a){var a=(e._isUTC?h:Sa)(e._a);this._isDSTShifted=this.isValid()&&0 div").hide().filter(".datepicker-"+h[this.currentViewMode].CLASS_NAME).show())},_.prototype._isInDisabledDates=function(t){return!0===this._options.disabledDates[t.format("YYYY-MM-DD")]},_.prototype._isInEnabledDates=function(t){return!0===this._options.enabledDates[t.format("YYYY-MM-DD")]},_.prototype._isInDisabledHours=function(t){return!0===this._options.disabledHours[t.format("H")]},_.prototype._isInEnabledHours=function(t){return!0===this._options.enabledHours[t.format("H")]},_.prototype._isValid=function(t,e){if(!t.isValid())return!1;if(this._options.disabledDates&&"d"===e&&this._isInDisabledDates(t))return!1;if(this._options.enabledDates&&"d"===e&&!this._isInEnabledDates(t))return!1;if(this._options.minDate&&t.isBefore(this._options.minDate,e))return!1;if(this._options.maxDate&&t.isAfter(this._options.maxDate,e))return!1;if(this._options.daysOfWeekDisabled&&"d"===e&&-1!==this._options.daysOfWeekDisabled.indexOf(t.day()))return!1;if(this._options.disabledHours&&("h"===e||"m"===e||"s"===e)&&this._isInDisabledHours(t))return!1;if(this._options.enabledHours&&("h"===e||"m"===e||"s"===e)&&!this._isInEnabledHours(t))return!1;if(this._options.disabledTimeIntervals&&("h"===e||"m"===e||"s"===e)){var i=!1;if(s.each(this._options.disabledTimeIntervals,function(){if(t.isBetween(this[0],this[1]))return!(i=!0)}),i)return!1}return!0},_.prototype._parseInputDate=function(t){return void 0===this._options.parseInputDate?i.isMoment(t)||(t=this.getMoment(t)):t=this._options.parseInputDate(t),t},_.prototype._keydown=function(t){var e=null,i=void 0,o=void 0,s=void 0,n=void 0,a=[],r={},p=t.which;for(i in u[p]="p",u)u.hasOwnProperty(i)&&"p"===u[i]&&(a.push(i),parseInt(i,10)!==p&&(r[i]=!0));for(i in this._options.keyBinds)if(this._options.keyBinds.hasOwnProperty(i)&&"function"==typeof this._options.keyBinds[i]&&(s=i.split(" ")).length===a.length&&d[p]===s[s.length-1]){for(n=!0,o=s.length-2;0<=o;o--)if(!(d[s[o]]in r)){n=!1;break}if(n){e=this._options.keyBinds[i];break}}e&&e.call(this)&&(t.stopPropagation(),t.preventDefault())},_.prototype._keyup=function(t){u[t.which]="r",f[t.which]&&(f[t.which]=!1,t.stopPropagation(),t.preventDefault())},_.prototype._indexGivenDates=function(t){var e={},i=this;return s.each(t,function(){var t=i._parseInputDate(this);t.isValid()&&(e[t.format("YYYY-MM-DD")]=!0)}),!!Object.keys(e).length&&e},_.prototype._indexGivenHours=function(t){var e={};return s.each(t,function(){e[this]=!0}),!!Object.keys(e).length&&e},_.prototype._initFormatting=function(){var t=this._options.format||"L LT",e=this;this.actualFormat=t.replace(/(\[[^\[]*])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(t){return e._dates[0].localeData().longDateFormat(t)||t}),this.parseFormats=this._options.extraFormats?this._options.extraFormats.slice():[],this.parseFormats.indexOf(t)<0&&this.parseFormats.indexOf(this.actualFormat)<0&&this.parseFormats.push(this.actualFormat),this.use24Hours=this.actualFormat.toLowerCase().indexOf("a")<1&&this.actualFormat.replace(/\[.*?]/g,"").indexOf("h")<1,this._isEnabled("y")&&(this.MinViewModeNumber=2),this._isEnabled("M")&&(this.MinViewModeNumber=1),this._isEnabled("d")&&(this.MinViewModeNumber=0),this.currentViewMode=Math.max(this.MinViewModeNumber,this.currentViewMode),this.unset||this._setValue(this._dates[0],0)},_.prototype._getLastPickedDate=function(){return this._dates[this._getLastPickedDateIndex()]},_.prototype._getLastPickedDateIndex=function(){return this._dates.length-1},_.prototype.getMoment=function(t){var e=void 0;return e=null==t?i():this._hasTimeZone()?i.tz(t,this.parseFormats,this._options.locale,this._options.useStrict,this._options.timeZone):i(t,this.parseFormats,this._options.locale,this._options.useStrict),this._hasTimeZone()&&e.tz(this._options.timeZone),e},_.prototype.toggle=function(){return this.widget?this.hide():this.show()},_.prototype.ignoreReadonly=function(t){if(0===arguments.length)return this._options.ignoreReadonly;if("boolean"!=typeof t)throw new TypeError("ignoreReadonly () expects a boolean parameter");this._options.ignoreReadonly=t},_.prototype.options=function(t){if(0===arguments.length)return s.extend(!0,{},this._options);if(!(t instanceof Object))throw new TypeError("options() this.options parameter should be an object");s.extend(!0,this._options,t);var i=this;s.each(this._options,function(t,e){void 0!==i[t]&&i[t](e)})},_.prototype.date=function(t,e){if(e=e||0,0===arguments.length)return this.unset?null:this._options.allowMultidate?this._dates.join(this._options.multidateSeparator):this._dates[e].clone();if(!(null===t||"string"==typeof t||i.isMoment(t)||t instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");this._setValue(null===t?null:this._parseInputDate(t),e)},_.prototype.format=function(t){if(0===arguments.length)return this._options.format;if("string"!=typeof t&&("boolean"!=typeof t||!1!==t))throw new TypeError("format() expects a string or boolean:false parameter "+t);this._options.format=t,this.actualFormat&&this._initFormatting()},_.prototype.timeZone=function(t){if(0===arguments.length)return this._options.timeZone;if("string"!=typeof t)throw new TypeError("newZone() expects a string parameter");this._options.timeZone=t},_.prototype.dayViewHeaderFormat=function(t){if(0===arguments.length)return this._options.dayViewHeaderFormat;if("string"!=typeof t)throw new TypeError("dayViewHeaderFormat() expects a string parameter");this._options.dayViewHeaderFormat=t},_.prototype.extraFormats=function(t){if(0===arguments.length)return this._options.extraFormats;if(!1!==t&&!(t instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");this._options.extraFormats=t,this.parseFormats&&this._initFormatting()},_.prototype.disabledDates=function(t){if(0===arguments.length)return this._options.disabledDates?s.extend({},this._options.disabledDates):this._options.disabledDates;if(!t)return this._options.disabledDates=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("disabledDates() expects an array parameter");this._options.disabledDates=this._indexGivenDates(t),this._options.enabledDates=!1,this._update()},_.prototype.enabledDates=function(t){if(0===arguments.length)return this._options.enabledDates?s.extend({},this._options.enabledDates):this._options.enabledDates;if(!t)return this._options.enabledDates=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("enabledDates() expects an array parameter");this._options.enabledDates=this._indexGivenDates(t),this._options.disabledDates=!1,this._update()},_.prototype.daysOfWeekDisabled=function(t){if(0===arguments.length)return this._options.daysOfWeekDisabled.splice(0);if("boolean"==typeof t&&!t)return this._options.daysOfWeekDisabled=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(this._options.daysOfWeekDisabled=t.reduce(function(t,e){return 6<(e=parseInt(e,10))||e<0||isNaN(e)||-1===t.indexOf(e)&&t.push(e),t},[]).sort(),this._options.useCurrent&&!this._options.keepInvalid)for(var e=0;e div").hide().filter(".datepicker-"+u[this.currentViewMode].CLASS_NAME).show())},g.prototype._isInDisabledDates=function(t){return!0===this._options.disabledDates[t.format("YYYY-MM-DD")]},g.prototype._isInEnabledDates=function(t){return!0===this._options.enabledDates[t.format("YYYY-MM-DD")]},g.prototype._isInDisabledHours=function(t){return!0===this._options.disabledHours[t.format("H")]},g.prototype._isInEnabledHours=function(t){return!0===this._options.enabledHours[t.format("H")]},g.prototype._isValid=function(t,e){if(!t.isValid())return!1;if(this._options.disabledDates&&"d"===e&&this._isInDisabledDates(t))return!1;if(this._options.enabledDates&&"d"===e&&!this._isInEnabledDates(t))return!1;if(this._options.minDate&&t.isBefore(this._options.minDate,e))return!1;if(this._options.maxDate&&t.isAfter(this._options.maxDate,e))return!1;if(this._options.daysOfWeekDisabled&&"d"===e&&-1!==this._options.daysOfWeekDisabled.indexOf(t.day()))return!1;if(this._options.disabledHours&&("h"===e||"m"===e||"s"===e)&&this._isInDisabledHours(t))return!1;if(this._options.enabledHours&&("h"===e||"m"===e||"s"===e)&&!this._isInEnabledHours(t))return!1;if(this._options.disabledTimeIntervals&&("h"===e||"m"===e||"s"===e)){var i=!1;if(n.each(this._options.disabledTimeIntervals,function(){if(t.isBetween(this[0],this[1]))return!(i=!0)}),i)return!1}return!0},g.prototype._parseInputDate=function(t){return void 0===this._options.parseInputDate?i.isMoment(t)||(t=this.getMoment(t)):t=this._options.parseInputDate(t),t},g.prototype._keydown=function(t){var e=null,i=void 0,s=void 0,o=void 0,a=void 0,n=[],r={},d=t.which;for(i in m[d]="p",m)m.hasOwnProperty(i)&&"p"===m[i]&&(n.push(i),parseInt(i,10)!==d&&(r[i]=!0));for(i in this._options.keyBinds)if(this._options.keyBinds.hasOwnProperty(i)&&"function"==typeof this._options.keyBinds[i]&&(o=i.split(" ")).length===n.length&&_[d]===o[o.length-1]){for(a=!0,s=o.length-2;0<=s;s--)if(!(_[o[s]]in r)){a=!1;break}if(a){e=this._options.keyBinds[i];break}}e&&e.call(this)&&(t.stopPropagation(),t.preventDefault())},g.prototype._keyup=function(t){m[t.which]="r",w[t.which]&&(w[t.which]=!1,t.stopPropagation(),t.preventDefault())},g.prototype._indexGivenDates=function(t){var e={},i=this;return n.each(t,function(){var t=i._parseInputDate(this);t.isValid()&&(e[t.format("YYYY-MM-DD")]=!0)}),!!Object.keys(e).length&&e},g.prototype._indexGivenHours=function(t){var e={};return n.each(t,function(){e[this]=!0}),!!Object.keys(e).length&&e},g.prototype._initFormatting=function(){var t=this._options.format||"L LT",e=this;this.actualFormat=t.replace(/(\[[^\[]*])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(t){return e._dates[0].localeData().longDateFormat(t)||t}),this.parseFormats=this._options.extraFormats?this._options.extraFormats.slice():[],this.parseFormats.indexOf(t)<0&&this.parseFormats.indexOf(this.actualFormat)<0&&this.parseFormats.push(this.actualFormat),this.use24Hours=this.actualFormat.toLowerCase().indexOf("a")<1&&this.actualFormat.replace(/\[.*?]/g,"").indexOf("h")<1,this._isEnabled("y")&&(this.MinViewModeNumber=2),this._isEnabled("M")&&(this.MinViewModeNumber=1),this._isEnabled("d")&&(this.MinViewModeNumber=0),this.currentViewMode=Math.max(this.MinViewModeNumber,this.currentViewMode),this.unset||this._setValue(this._dates[0],0)},g.prototype._getLastPickedDate=function(){return this._dates[this._getLastPickedDateIndex()]},g.prototype._getLastPickedDateIndex=function(){return this._dates.length-1},g.prototype.getMoment=function(t){var e=void 0;return e=null==t?i():this._hasTimeZone()?i.tz(t,this.parseFormats,this._options.locale,this._options.useStrict,this._options.timeZone):i(t,this.parseFormats,this._options.locale,this._options.useStrict),this._hasTimeZone()&&e.tz(this._options.timeZone),e},g.prototype.toggle=function(){return this.widget?this.hide():this.show()},g.prototype.ignoreReadonly=function(t){if(0===arguments.length)return this._options.ignoreReadonly;if("boolean"!=typeof t)throw new TypeError("ignoreReadonly () expects a boolean parameter");this._options.ignoreReadonly=t},g.prototype.options=function(t){if(0===arguments.length)return n.extend(!0,{},this._options);if(!(t instanceof Object))throw new TypeError("options() this.options parameter should be an object");n.extend(!0,this._options,t);var i=this;n.each(this._options,function(t,e){void 0!==i[t]&&i[t](e)})},g.prototype.date=function(t,e){if(e=e||0,0===arguments.length)return this.unset?null:this._options.allowMultidate?this._dates.join(this._options.multidateSeparator):this._dates[e].clone();if(!(null===t||"string"==typeof t||i.isMoment(t)||t instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");this._setValue(null===t?null:this._parseInputDate(t),e)},g.prototype.format=function(t){if(0===arguments.length)return this._options.format;if("string"!=typeof t&&("boolean"!=typeof t||!1!==t))throw new TypeError("format() expects a string or boolean:false parameter "+t);this._options.format=t,this.actualFormat&&this._initFormatting()},g.prototype.timeZone=function(t){if(0===arguments.length)return this._options.timeZone;if("string"!=typeof t)throw new TypeError("newZone() expects a string parameter");this._options.timeZone=t},g.prototype.dayViewHeaderFormat=function(t){if(0===arguments.length)return this._options.dayViewHeaderFormat;if("string"!=typeof t)throw new TypeError("dayViewHeaderFormat() expects a string parameter");this._options.dayViewHeaderFormat=t},g.prototype.extraFormats=function(t){if(0===arguments.length)return this._options.extraFormats;if(!1!==t&&!(t instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");this._options.extraFormats=t,this.parseFormats&&this._initFormatting()},g.prototype.disabledDates=function(t){if(0===arguments.length)return this._options.disabledDates?n.extend({},this._options.disabledDates):this._options.disabledDates;if(!t)return this._options.disabledDates=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("disabledDates() expects an array parameter");this._options.disabledDates=this._indexGivenDates(t),this._options.enabledDates=!1,this._update()},g.prototype.enabledDates=function(t){if(0===arguments.length)return this._options.enabledDates?n.extend({},this._options.enabledDates):this._options.enabledDates;if(!t)return this._options.enabledDates=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("enabledDates() expects an array parameter");this._options.enabledDates=this._indexGivenDates(t),this._options.disabledDates=!1,this._update()},g.prototype.daysOfWeekDisabled=function(t){if(0===arguments.length)return this._options.daysOfWeekDisabled.splice(0);if("boolean"==typeof t&&!t)return this._options.daysOfWeekDisabled=!1,this._update(),!0;if(!(t instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(this._options.daysOfWeekDisabled=t.reduce(function(t,e){return 6<(e=parseInt(e,10))||e<0||isNaN(e)||-1===t.indexOf(e)&&t.push(e),t},[]).sort(),this._options.useCurrent&&!this._options.keepInvalid)for(var e=0;e").append(E("").append(E("").addClass("prev").attr("data-action","previous").append(E("").addClass(this._options.icons.previous))).append(E("").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",this._options.calendarWeeks?"6":"5")).append(E("").addClass("next").attr("data-action","next").append(E("").addClass(this._options.icons.next)))),e=E("").append(E("").append(E("").attr("colspan",this._options.calendarWeeks?"8":"7")));return[E("
").addClass("datepicker-days").append(E("").addClass("table table-sm").append(t).append(E(""))),E("
").addClass("datepicker-months").append(E("
").addClass("table-condensed").append(t.clone()).append(e.clone())),E("
").addClass("datepicker-years").append(E("
").addClass("table-condensed").append(t.clone()).append(e.clone())),E("
").addClass("datepicker-decades").append(E("
").addClass("table-condensed").append(t.clone()).append(e.clone()))]},P.prototype._getTimePickerMainTemplate=function(){var t=E(""),e=E(""),i=E("");return this._isEnabled("h")&&(t.append(E("
").append(E("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(E("").addClass(this._options.icons.up)))),e.append(E("").append(E("").addClass("timepicker-hour").attr({"data-time-component":"hours",title:this._options.tooltips.pickHour}).attr("data-action","showHours"))),i.append(E("").append(E("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(E("").addClass(this._options.icons.down))))),this._isEnabled("m")&&(this._isEnabled("h")&&(t.append(E("").addClass("separator")),e.append(E("").addClass("separator").html(":")),i.append(E("").addClass("separator"))),t.append(E("").append(E("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(E("").addClass(this._options.icons.up)))),e.append(E("").append(E("").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:this._options.tooltips.pickMinute}).attr("data-action","showMinutes"))),i.append(E("").append(E("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(E("").addClass(this._options.icons.down))))),this._isEnabled("s")&&(this._isEnabled("m")&&(t.append(E("").addClass("separator")),e.append(E("").addClass("separator").html(":")),i.append(E("").addClass("separator"))),t.append(E("").append(E("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(E("").addClass(this._options.icons.up)))),e.append(E("").append(E("").addClass("timepicker-second").attr({"data-time-component":"seconds",title:this._options.tooltips.pickSecond}).attr("data-action","showSeconds"))),i.append(E("").append(E("").attr({href:"#",tabindex:"-1",title:this._options.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(E("").addClass(this._options.icons.down))))),this.use24Hours||(t.append(E("").addClass("separator")),e.append(E("").append(E("").addClass("separator"))),E("
").addClass("timepicker-picker").append(E("").addClass("table-condensed").append([t,e,i]))},P.prototype._getTimePickerTemplate=function(){var t=E("
").addClass("timepicker-hours").append(E("
").addClass("table-condensed")),e=E("
").addClass("timepicker-minutes").append(E("
").addClass("table-condensed")),i=E("
").addClass("timepicker-seconds").append(E("
").addClass("table-condensed")),s=[this._getTimePickerMainTemplate()];return this._isEnabled("h")&&s.push(t),this._isEnabled("m")&&s.push(e),this._isEnabled("s")&&s.push(i),s},P.prototype._getToolbar=function(){var t=[];if(this._options.buttons.showToday&&t.push(E("
").append(E("").attr({href:"#",tabindex:"-1","data-action":"today",title:this._options.tooltips.today}).append(E("").addClass(this._options.icons.today)))),!this._options.sideBySide&&this._hasDate()&&this._hasTime()){var e=void 0,i=void 0;i="times"===this._options.viewMode?(e=this._options.tooltips.selectDate,this._options.icons.date):(e=this._options.tooltips.selectTime,this._options.icons.time),t.push(E("").append(E("").attr({href:"#",tabindex:"-1","data-action":"togglePicker",title:e}).append(E("").addClass(i))))}return this._options.buttons.showClear&&t.push(E("").append(E("").attr({href:"#",tabindex:"-1","data-action":"clear",title:this._options.tooltips.clear}).append(E("").addClass(this._options.icons.clear)))),this._options.buttons.showClose&&t.push(E("").append(E("").attr({href:"#",tabindex:"-1","data-action":"close",title:this._options.tooltips.close}).append(E("").addClass(this._options.icons.close)))),0===t.length?"":E("").addClass("table-condensed").append(E("").append(E("").append(t)))},P.prototype._getTemplate=function(){var t=E("
").addClass("bootstrap-datetimepicker-widget dropdown-menu"),e=E("
").addClass("datepicker").append(this._getDatePickerTemplate()),i=E("
").addClass("timepicker").append(this._getTimePickerTemplate()),s=E("
    ").addClass("list-unstyled"),o=E("
  • ").addClass("picker-switch"+(this._options.collapse?" accordion-toggle":"")).append(this._getToolbar());return this._options.inline&&t.removeClass("dropdown-menu"),this.use24Hours&&t.addClass("usetwentyfour"),this._isEnabled("s")&&!this.use24Hours&&t.addClass("wider"),this._options.sideBySide&&this._hasDate()&&this._hasTime()?(t.addClass("timepicker-sbs"),"top"===this._options.toolbarPlacement&&t.append(o),t.append(E("
    ").addClass("row").append(e.addClass("col-md-6")).append(i.addClass("col-md-6"))),"bottom"!==this._options.toolbarPlacement&&"default"!==this._options.toolbarPlacement||t.append(o),t):("top"===this._options.toolbarPlacement&&s.append(o),this._hasDate()&&s.append(E("
  • ").addClass(this._options.collapse&&this._hasTime()?"collapse":"").addClass(this._options.collapse&&this._hasTime()&&"times"===this._options.viewMode?"":"show").append(e)),"default"===this._options.toolbarPlacement&&s.append(o),this._hasTime()&&s.append(E("
  • ").addClass(this._options.collapse&&this._hasDate()?"collapse":"").addClass(this._options.collapse&&this._hasDate()&&"times"===this._options.viewMode?"show":"").append(i)),"bottom"===this._options.toolbarPlacement&&s.append(o),t.append(s))},P.prototype._place=function(t){var e=t&&t.data&&t.data.picker||this,i=e._options.widgetPositioning.vertical,s=e._options.widgetPositioning.horizontal,o=void 0,a=(e.component&&e.component.length?e.component:e._element).position(),n=(e.component&&e.component.length?e.component:e._element).offset();if(e._options.widgetParent)o=e._options.widgetParent.append(e.widget);else if(e._element.is("input"))o=e._element.after(e.widget).parent();else{if(e._options.inline)return void(o=e._element.append(e.widget));o=e._element,e._element.children().first().after(e.widget)}if("auto"===i&&(i=n.top+1.5*e.widget.height()>=E(window).height()+E(window).scrollTop()&&e.widget.height()+e._element.outerHeight()E(window).width()?"right":"left"),"top"===i?e.widget.addClass("top").removeClass("bottom"):e.widget.addClass("bottom").removeClass("top"),"right"===s?e.widget.addClass("float-right"):e.widget.removeClass("float-right"),"relative"!==o.css("position")&&(o=o.parents().filter(function(){return"relative"===E(this).css("position")}).first()),0===o.length)throw new Error("datetimepicker component should be placed within a relative positioned container");e.widget.css({top:"top"===i?"auto":a.top+e._element.outerHeight()+"px",bottom:"top"===i?o.outerHeight()-(o===e._element?0:a.top)+"px":"auto",left:"left"===s?(o===e._element?0:a.left)+"px":"auto",right:"left"===s?"auto":o.outerWidth()-e._element.outerWidth()-(o===e._element?0:a.left)+"px"})},P.prototype._fillDow=function(){var t=E("
"),e=this._viewDate.clone().startOf("w").startOf("d");for(!0===this._options.calendarWeeks&&t.append(E(""),this._options.calendarWeeks&&o.append('"),i.push(o)),a="",s.isBefore(this._viewDate,"M")&&(a+=" old"),s.isAfter(this._viewDate,"M")&&(a+=" new"),this._options.allowMultidate){var r=this._datesFormatted.indexOf(s.format("YYYY-MM-DD"));-1!==r&&s.isSame(this._datesFormatted[r],"d")&&!this.unset&&(a+=" active")}else s.isSame(this._getLastPickedDate(),"d")&&!this.unset&&(a+=" active");this._isValid(s,"d")||(a+=" disabled"),s.isSame(this.getMoment(),"d")&&(a+=" today"),0!==s.day()&&6!==s.day()||(a+=" weekend"),o.append('"),s.add(1,"d")}t.find("tbody").empty().append(i),this._updateMonths(),this._updateYears(),this._updateDecades()}},P.prototype._fillHours=function(){var t=this.widget.find(".timepicker-hours table"),e=this._viewDate.clone().startOf("d"),i=[],s=E("");for(11"),i.push(s)),s.append('"),e.add(1,"h");t.empty().append(i)},P.prototype._fillMinutes=function(){for(var t=this.widget.find(".timepicker-minutes table"),e=this._viewDate.clone().startOf("h"),i=[],s=1===this._options.stepping?5:this._options.stepping,o=E("");this._viewDate.isSame(e,"h");)e.minute()%(4*s)==0&&(o=E(""),i.push(o)),o.append('"),e.add(s,"m");t.empty().append(i)},P.prototype._fillSeconds=function(){for(var t=this.widget.find(".timepicker-seconds table"),e=this._viewDate.clone().startOf("m"),i=[],s=E("");this._viewDate.isSame(e,"m");)e.second()%20==0&&(s=E(""),i.push(s)),s.append('"),e.add(5,"s");t.empty().append(i)},P.prototype._fillTime=function(){var t=void 0,e=void 0,i=this.widget.find(".timepicker span[data-time-component]");this.use24Hours||(t=this.widget.find(".timepicker [data-action=togglePeriod]"),e=this._getLastPickedDate().clone().add(12<=this._getLastPickedDate().hours()?-12:12,"h"),t.text(this._getLastPickedDate().format("A")),this._isValid(e,"h")?t.removeClass("disabled"):t.addClass("disabled")),i.filter("[data-time-component=hours]").text(this._getLastPickedDate().format(this.use24Hours?"HH":"hh")),i.filter("[data-time-component=minutes]").text(this._getLastPickedDate().format("mm")),i.filter("[data-time-component=seconds]").text(this._getLastPickedDate().format("ss")),this._fillHours(),this._fillMinutes(),this._fillSeconds()},P.prototype._doAction=function(t,e){var i=this._getLastPickedDate();if(E(t.currentTarget).is(".disabled"))return!1;switch(e=e||E(t.currentTarget).data("action")){case"next":var s=C.DatePickerModes[this.currentViewMode].NAV_FUNCTION;this._viewDate.add(C.DatePickerModes[this.currentViewMode].NAV_STEP,s),this._fillDate(),this._viewUpdate(s);break;case"previous":var o=C.DatePickerModes[this.currentViewMode].NAV_FUNCTION;this._viewDate.subtract(C.DatePickerModes[this.currentViewMode].NAV_STEP,o),this._fillDate(),this._viewUpdate(o);break;case"pickerSwitch":this._showMode(1);break;case"selectMonth":var a=E(t.target).closest("tbody").find("span").index(E(t.target));this._viewDate.month(a),this.currentViewMode===this.MinViewModeNumber?(this._setValue(i.clone().year(this._viewDate.year()).month(this._viewDate.month()),this._getLastPickedDateIndex()),this._options.inline||this.hide()):(this._showMode(-1),this._fillDate()),this._viewUpdate("M");break;case"selectYear":var n=parseInt(E(t.target).text(),10)||0;this._viewDate.year(n),this.currentViewMode===this.MinViewModeNumber?(this._setValue(i.clone().year(this._viewDate.year()),this._getLastPickedDateIndex()),this._options.inline||this.hide()):(this._showMode(-1),this._fillDate()),this._viewUpdate("YYYY");break;case"selectDecade":var r=parseInt(E(t.target).data("selection"),10)||0;this._viewDate.year(r),this.currentViewMode===this.MinViewModeNumber?(this._setValue(i.clone().year(this._viewDate.year()),this._getLastPickedDateIndex()),this._options.inline||this.hide()):(this._showMode(-1),this._fillDate()),this._viewUpdate("YYYY");break;case"selectDay":var d=this._viewDate.clone();E(t.target).is(".old")&&d.subtract(1,"M"),E(t.target).is(".new")&&d.add(1,"M");var p=d.date(parseInt(E(t.target).text(),10)),h=0;this._options.allowMultidate?-1!==(h=this._datesFormatted.indexOf(p.format("YYYY-MM-DD")))?this._setValue(null,h):this._setValue(p,this._getLastPickedDateIndex()+1):this._setValue(p,this._getLastPickedDateIndex()),this._hasTime()||this._options.keepOpen||this._options.inline||this._options.allowMultidate||this.hide();break;case"incrementHours":var l=i.clone().add(1,"h");this._isValid(l,"h")&&this._setValue(l,this._getLastPickedDateIndex());break;case"incrementMinutes":var c=i.clone().add(this._options.stepping,"m");this._isValid(c,"m")&&this._setValue(c,this._getLastPickedDateIndex());break;case"incrementSeconds":var u=i.clone().add(1,"s");this._isValid(u,"s")&&this._setValue(u,this._getLastPickedDateIndex());break;case"decrementHours":var _=i.clone().subtract(1,"h");this._isValid(_,"h")&&this._setValue(_,this._getLastPickedDateIndex());break;case"decrementMinutes":var f=i.clone().subtract(this._options.stepping,"m");this._isValid(f,"m")&&this._setValue(f,this._getLastPickedDateIndex());break;case"decrementSeconds":var m=i.clone().subtract(1,"s");this._isValid(m,"s")&&this._setValue(m,this._getLastPickedDateIndex());break;case"togglePeriod":this._setValue(i.clone().add(12<=i.hours()?-12:12,"h"),this._getLastPickedDateIndex());break;case"togglePicker":var w=E(t.target),y=w.closest("a"),g=w.closest("ul"),b=g.find(".show"),v=g.find(".collapse:not(.show)"),D=w.is("span")?w:w.find("span"),k=void 0;if(b&&b.length){if((k=b.data("collapse"))&&k.transitioning)return!0;b.collapse?(b.collapse("hide"),v.collapse("show")):(b.removeClass("show"),v.addClass("show")),D.toggleClass(this._options.icons.time+" "+this._options.icons.date),D.hasClass(this._options.icons.date)?y.attr("title",this._options.tooltips.selectDate):y.attr("title",this._options.tooltips.selectTime)}break;case"showPicker":this.widget.find(".timepicker > div:not(.timepicker-picker)").hide(),this.widget.find(".timepicker .timepicker-picker").show();break;case"showHours":this.widget.find(".timepicker .timepicker-picker").hide(),this.widget.find(".timepicker .timepicker-hours").show();break;case"showMinutes":this.widget.find(".timepicker .timepicker-picker").hide(),this.widget.find(".timepicker .timepicker-minutes").show();break;case"showSeconds":this.widget.find(".timepicker .timepicker-picker").hide(),this.widget.find(".timepicker .timepicker-seconds").show();break;case"selectHour":var M=parseInt(E(t.target).text(),10);this.use24Hours||(12<=i.hours()?12!==M&&(M+=12):12===M&&(M=0)),this._setValue(i.clone().hours(M),this._getLastPickedDateIndex()),this._isEnabled("a")||this._isEnabled("m")||this._options.keepOpen||this._options.inline?this._doAction(t,"showPicker"):this.hide();break;case"selectMinute":this._setValue(i.clone().minutes(parseInt(E(t.target).text(),10)),this._getLastPickedDateIndex()),this._isEnabled("a")||this._isEnabled("s")||this._options.keepOpen||this._options.inline?this._doAction(t,"showPicker"):this.hide();break;case"selectSecond":this._setValue(i.clone().seconds(parseInt(E(t.target).text(),10)),this._getLastPickedDateIndex()),this._isEnabled("a")||this._options.keepOpen||this._options.inline?this._doAction(t,"showPicker"):this.hide();break;case"clear":this.clear();break;case"close":this.hide();break;case"today":var x=this.getMoment();this._isValid(x,"d")&&this._setValue(x,this._getLastPickedDateIndex())}return!1},P.prototype.hide=function(){var e=!1;this.widget&&(this.widget.find(".collapse").each(function(){var t=E(this).data("collapse");return!t||!t.transitioning||!(e=!0)}),e||(this.component&&this.component.hasClass("btn")&&this.component.toggleClass("active"),this.widget.hide(),E(window).off("resize",this._place()),this.widget.off("click","[data-action]"),this.widget.off("mousedown",!1),this.widget.remove(),this.widget=!1,this._notifyEvent({type:C.Event.HIDE,date:this._getLastPickedDate().clone()}),void 0!==this.input&&this.input.blur(),this._viewDate=this._getLastPickedDate().clone()))},P.prototype.show=function(){var t=void 0,e={year:function(t){return t.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(t){return t.date(1).hours(0).seconds(0).minutes(0)},day:function(t){return t.hours(0).seconds(0).minutes(0)},hour:function(t){return t.seconds(0).minutes(0)},minute:function(t){return t.seconds(0)}};if(void 0!==this.input){if(this.input.prop("disabled")||!this._options.ignoreReadonly&&this.input.prop("readonly")||this.widget)return;void 0!==this.input.val()&&0!==this.input.val().trim().length?this._setValue(this._parseInputDate(this.input.val().trim()),0):this.unset&&this._options.useCurrent&&(t=this.getMoment(),"string"==typeof this._options.useCurrent&&(t=e[this._options.useCurrent](t)),this._setValue(t,0))}else this.unset&&this._options.useCurrent&&(t=this.getMoment(),"string"==typeof this._options.useCurrent&&(t=e[this._options.useCurrent](t)),this._setValue(t,0));this.widget=this._getTemplate(),this._fillDow(),this._fillMonths(),this.widget.find(".timepicker-hours").hide(),this.widget.find(".timepicker-minutes").hide(),this.widget.find(".timepicker-seconds").hide(),this._update(),this._showMode(),E(window).on("resize",{picker:this},this._place),this.widget.on("click","[data-action]",E.proxy(this._doAction,this)),this.widget.on("mousedown",!1),this.component&&this.component.hasClass("btn")&&this.component.toggleClass("active"),this._place(),this.widget.show(),void 0!==this.input&&this._options.focusOnShow&&!this.input.is(":focus")&&this.input.focus(),this._notifyEvent({type:C.Event.SHOW})},P.prototype.destroy=function(){this.hide(),this._element.removeData(C.DATA_KEY),this._element.removeData("date")},P.prototype.disable=function(){this.hide(),this.component&&this.component.hasClass("btn")&&this.component.addClass("disabled"),void 0!==this.input&&this.input.prop("disabled",!0)},P.prototype.enable=function(){this.component&&this.component.hasClass("btn")&&this.component.removeClass("disabled"),void 0!==this.input&&this.input.prop("disabled",!1)},P.prototype.toolbarPlacement=function(t){if(0===arguments.length)return this._options.toolbarPlacement;if("string"!=typeof t)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===M.indexOf(t))throw new TypeError("toolbarPlacement() parameter must be one of ("+M.join(", ")+") value");this._options.toolbarPlacement=t,this.widget&&(this.hide(),this.show())},P.prototype.widgetPositioning=function(t){if(0===arguments.length)return E.extend({},this._options.widgetPositioning);if("[object Object]"!=={}.toString.call(t))throw new TypeError("widgetPositioning() expects an object variable");if(t.horizontal){if("string"!=typeof t.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(t.horizontal=t.horizontal.toLowerCase(),-1===k.indexOf(t.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+k.join(", ")+")");this._options.widgetPositioning.horizontal=t.horizontal}if(t.vertical){if("string"!=typeof t.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(t.vertical=t.vertical.toLowerCase(),-1===D.indexOf(t.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+D.join(", ")+")");this._options.widgetPositioning.vertical=t.vertical}this._update()},P.prototype.widgetParent=function(t){if(0===arguments.length)return this._options.widgetParent;if("string"==typeof t&&(t=E(t)),null!==t&&"string"!=typeof t&&!(t instanceof E))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");this._options.widgetParent=t,this.widget&&(this.hide(),this.show())},P._jQueryHandleThis=function(t,e,i){var s=E(t).data(C.DATA_KEY);if("object"===(void 0===e?"undefined":o(e))&&E.extend({},C.Default,e),s||(s=new P(E(t),e),E(t).data(C.DATA_KEY,s)),"string"==typeof e){if(void 0===s[e])throw new Error('No method named "'+e+'"');return void 0===i?s[e]():s[e](i)}},P._jQueryInterface=function(t,e){return 1===this.length?P._jQueryHandleThis(this[0],t,e):this.each(function(){P._jQueryHandleThis(this,t,e)})},x=P,E(document).on(C.Event.CLICK_DATA_API,C.Selector.DATA_TOGGLE,function(){var t=T(E(this));0!==t.length&&x._jQueryInterface.call(t,"toggle")}).on(C.Event.CHANGE,"."+C.ClassName.INPUT,function(t){var e=T(E(this));0!==e.length&&x._jQueryInterface.call(e,"_change",t)}).on(C.Event.BLUR,"."+C.ClassName.INPUT,function(t){var e=T(E(this)),i=e.data(C.DATA_KEY);0!==e.length&&(i._options.debug||window.debug||x._jQueryInterface.call(e,"hide",t))}).on(C.Event.KEYDOWN,"."+C.ClassName.INPUT,function(t){var e=T(E(this));0!==e.length&&x._jQueryInterface.call(e,"_keydown",t)}).on(C.Event.KEYUP,"."+C.ClassName.INPUT,function(t){var e=T(E(this));0!==e.length&&x._jQueryInterface.call(e,"_keyup",t)}).on(C.Event.FOCUS,"."+C.ClassName.INPUT,function(t){var e=T(E(this)),i=e.data(C.DATA_KEY);0!==e.length&&i._options.allowInputToggle&&x._jQueryInterface.call(e,"show",t)}),E.fn[C.NAME]=x._jQueryInterface,E.fn[C.NAME].Constructor=x,E.fn[C.NAME].noConflict=function(){return E.fn[C.NAME]=v,x._jQueryInterface};function T(t){var e=t.data("target"),i=void 0;return e||(e=t.attr("href")||"",e=/^#[a-z]/i.test(e)?e:null),0===(i=E(e)).length||i.data(C.DATA_KEY)||E.extend({},i.data(),E(this).data()),i}function P(t,e){a(this,P);var i=function(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}(this,b.call(this,t,e));return i._init(),i}}(); !function(i){var n={};function a(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.m=i,a.c=n,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(t,e){if(1&e&&(t=a(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)a.d(i,n,function(e){return t[e]}.bind(null,n));return i},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=0)}([function(e,t,i){"use strict";i(1),i(6),i(7);var n=o(i(2)),a=o(i(3)),r=o(i(4));function o(e){return e&&e.__esModule?e:{default:e}}a.default===r.default&&i(8),window.Inputmask=n.default},function(e,t,i){"use strict";var n,a,r;a=[i(2)],void 0===(r="function"==typeof(n=function(e){return e.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}}),e.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)//.*",autoUnmask:!1},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function(e,t,i){return e=-10||e.indexOf("Trident/")>0,fe=me("touchstart"),ce=/iemobile/i.test(e),pe=/iphone/i.test(e)&&!ce;function de(e,t,i){if(!(this instanceof de)){return new de(e,t,i)}this.el=se;this.events={};this.maskset=se;this.refreshValue=false;if(i!==true){if(re.isPlainObject(e)){t=e}else{t=t||{};if(e)t.alias=e}this.opts=re.extend(true,{},this.defaults,t);this.noMasksCache=t&&t.definitions!==se;this.userOptions=t||{};this.isRTL=this.opts.numericInput;f(this.opts.alias,t,this.opts)}}function f(e,t,i){var n=de.prototype.aliases[e];if(n){if(n.alias)f(n.alias,se,i);re.extend(true,i,n);re.extend(true,i,t);return true}else if(i.mask===null){i.mask=e}return false}function r(i,s){function e(e,t,i){var n=false;if(e===null||e===""){n=i.regex!==null;if(n){e=i.regex;e=e.replace(/^(\^)(.*)(\$)$/,"$2")}else{n=true;e=".*"}}if(e.length===1&&i.greedy===false&&i.repeat!==0){i.placeholder=""}if(i.repeat>0||i.repeat==="*"||i.repeat==="+"){var a=i.repeat==="*"?0:i.repeat==="+"?1:i.repeat;e=i.groupmarker[0]+e+i.groupmarker[1]+i.quantifiermarker[0]+a+","+i.repeat+i.quantifiermarker[1]}var r,o=n?"regex_"+i.regex:i.numericInput?e.split("").reverse().join(""):e;if(de.prototype.masksCache[o]===se||s===true){r={mask:e,maskToken:de.prototype.analyseMask(e,n,i),validPositions:{},_buffer:se,buffer:se,tests:{},excludes:{},metadata:t,maskLength:se,jitOffset:{}};if(s!==true){de.prototype.masksCache[o]=r;r=re.extend(true,{},de.prototype.masksCache[o])}}else r=re.extend(true,{},de.prototype.masksCache[o]);return r}var t;if(re.isFunction(i.mask)){i.mask=i.mask(i)}if(re.isArray(i.mask)){if(i.mask.length>1){if(i.keepStatic===null){i.keepStatic="auto";for(var n=0;n1){a+=i.groupmarker[1]+i.alternatormarker+i.groupmarker[0]}if(t.mask!==se&&!re.isFunction(t.mask)){a+=t.mask}else{a+=t}});a+=i.groupmarker[1];return e(a,i.mask,i)}else i.mask=i.mask.pop()}if(i.mask&&i.mask.mask!==se&&!re.isFunction(i.mask.mask)){t=e(i.mask.mask,i.mask,i)}else{t=e(i.mask,i.mask,i)}return t}function me(e){var t=le.createElement("input"),i="on"+e,n=i in t;if(!n){t.setAttribute(i,"return;");n=typeof t[i]==="function"}t=null;return n}function he(e,t,V){t=t||this.maskset;V=V||this.opts;var c=this,u=this.el,g=this.isRTL,v,r,s=false,f=false,y=false,k,a=false,m,o;var d=function e(t,i,n,a,r){var o=V.greedy;if(r)V.greedy=false;i=i||0;var s=[],l,u=0,f,c,p=S();do{if(t===true&&K().validPositions[u]){c=r&&K().validPositions[u].match.optionality===true&&K().validPositions[u+1]===se&&(K().validPositions[u].generatedInput===true||K().validPositions[u].input==V.skipOptionalPartCharacter&&u>0)?h(u,E(u,l,u-1)):K().validPositions[u];f=c.match;l=c.locator.slice();s.push(n===true?c.input:n===false?f.nativeDef:L(u,f))}else{c=b(u,l,u-1);f=c.match;l=c.locator.slice();var d=a===true?false:V.jitMasking!==false?V.jitMasking:f.jit;if(d===false||d===se||typeof d==="number"&&isFinite(d)&&d>u){s.push(n===false?f.nativeDef:L(u,f))}}if(V.keepStatic==="auto"){if(f.newBlockMarker&&f.fn!==null){V.keepStatic=u-1}}u++}while((k===se||uu);if(s[s.length-1]===""){s.pop()}if(n!==false||K().maskLength===se)K().maskLength=u-1;V.greedy=o;return s};function K(){return t}function P(e){var t=K();t.buffer=se;if(e!==true){t.validPositions={};t.p=0}}function S(e,t,i){var n=-1,a=-1,r=i||K().validPositions;if(e===se)e=-1;for(var o in r){var s=parseInt(o);if(r[s]&&(t||r[s].generatedInput!==true)){if(s<=e)n=s;if(s>=e)a=s}}return n===-1||n==e?a:a==-1?n:e-n0){t=t.split(",")[0]}return t!==se?t.toString():""}function p(e,t){var i=(e.alternation!=se?e.mloc[w(e)]:e.locator).join("");if(i!=="")while(i.length0?e-1:0;var i=A(e),n=p(i),a,r,o;for(var s=0;s500&&i!==se){throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+K().mask}if(R===N&&e.matches===se){G.push({match:e,locator:t.reverse(),cd:L,mloc:{}});return true}else if(e.matches!==se){if(e.isGroup&&i!==e){e=T(j.matches[re.inArray(e,j.matches)+1],t,i);if(e)return true}else if(e.isOptional){var l=e;e=H(e,F,t,i);if(e){re.each(G,function(e,t){t.match.optionality=true});B=G[G.length-1].match;if(i===se&&r(B,l)){I=true;R=N}else return true}}else if(e.isAlternator){var u=e,f=[],c,p=G.slice(),d=t.length;var m=F.length>0?F.shift():-1;if(m===-1||typeof m==="string"){var h=R,g=F.slice(),v=[],k;if(typeof m=="string"){v=m.split(",")}else{for(k=0;k=V.keepStatic)v=v.slice(0,1);var P=false;for(var S=0;S0;e=f.length>0;F=g.slice()}else e=T(u.matches[m]||j.matches[m],[m].concat(t),i);if(e)return true}else if(e.isQuantifier&&i!==j.matches[re.inArray(e,j.matches)-1]){var D=e;for(var M=F.length>0?F.shift():0;M<(isNaN(D.quantifier.max)?M+1:D.quantifier.max)&&R<=N;M++){var O=j.matches[re.inArray(D,j.matches)-1];e=T(O,[M].concat(t),O);if(e){B=G[G.length-1].match;B.optionalQuantifier=M>=D.quantifier.min;B.jit=(M||1)*O.matches.indexOf(B)>=D.quantifier.jit;if(B.optionalQuantifier&&r(B,O)){I=true;R=N;break}if(B.jit){K().jitOffset[N]=O.matches.indexOf(B)}return true}}}else{e=H(e,F,t,i);if(e)return true}}else{R++}}for(var i=F.length>0?F.shift():0;iN){break}}}}function a(e,t){var n=[];if(!re.isArray(t))t=[t];if(t.length>0){if(t[0].alternation===se){n=h(e,t.slice()).locator.slice();if(n.length===0)n=t[0].locator.slice()}else{re.each(t,function(e,t){if(t.def!==""){if(n.length===0)n=t.locator.slice();else{for(var i=0;i-1){if(e===se){var r=N-1,o;while((o=K().validPositions[r]||K().tests[r])===se&&r>-1){r--}if(o!==se&&r>-1){n=a(r,o);L=n.join("");R=r}}if(K().tests[N]&&K().tests[N][0].cd===L){return K().tests[N]}for(var s=n.shift();sN){break}}}if(G.length===0||I){G.push({match:{fn:null,optionality:false,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:L})}if(e!==se&&K().tests[N]){return re.extend(true,[],G)}K().tests[N]=re.extend(true,[],G);return K().tests[N]}function _(){if(K()._buffer===se){K()._buffer=d(false,1);if(K().buffer===se)K().buffer=K()._buffer.slice()}return K()._buffer}function C(e){if(K().buffer===se||e===true){K().buffer=d(true,S(),true);if(K()._buffer===se)K()._buffer=K().buffer.slice()}return K().buffer}function D(e,t,i){var n,a;if(e===true){P();e=0;t=i.length}else{for(n=e;n=0;m--){u=K().validPositions[m];if(u&&u.alternation!==se){if(f&&f.locator[u.alternation]!==u.locator[u.alternation]){break}o=m;s=K().validPositions[o].alternation;f=u}}}if(s!==se){d=parseInt(o);K().excludes[d]=K().excludes[d]||[];if(e!==true){K().excludes[d].push(w(f))}var h=[],g=0;for(c=d;c0){var y=k.shift();if(!(l=F(S(se,true)+1,y,false,n,true))){break}}if(l&&t!==se){var b=S(e)+1;for(c=d;cb?b:e,t,i,n,true)}if(!l){P();f=A(d);K().validPositions=re.extend(true,{},r);if(K().excludes[d]){var x=w(f);if(K().excludes[d].indexOf(x)!==-1){l=j(e,t,i,n,d-1);break}K().excludes[d].push(x);for(c=d;c1||e.begin-e.end===1:e.end-e.begin>1||e.end-e.begin===1}t=t===true;var a=u;if(u.begin!==se){a=g?u.end:u.begin}function r(r,o,s){var l=false;re.each(E(r),function(e,t){var i=t.match;C(true);l=i.fn!=null?i.fn.test(o,K(),r,s,V,c(u)):(o===i.def||o===V.skipOptionalPartCharacter)&&i.def!==""?{c:L(r,i,true)||i.def,pos:r}:false;if(l!==false){var n=l.c!==se?l.c:o,a=r;n=n===V.skipOptionalPartCharacter&&i.fn===null?L(r,i,true)||i.def:n;if(l.remove!==se){if(!re.isArray(l.remove))l.remove=[l.remove];re.each(l.remove.sort(function(e,t){return t-e}),function(e,t){N({begin:t,end:t+1})})}if(l.insert!==se){if(!re.isArray(l.insert))l.insert=[l.insert];re.each(l.insert.sort(function(e,t){return e-t}),function(e,t){F(t.pos,t.c,true,f)})}if(l!==true&&l.pos!==se&&l.pos!==r){a=l.pos}if(l!==true&&l.pos===se&&l.c===se){return false}if(!N(u,re.extend({},t,{input:M(n,i,a)}),f,a)){l=false}return false}});return l}var o=true,s=re.extend(true,{},K().validPositions);if(re.isFunction(V.preValidation)&&!t&&f!==true&&n!==true){o=V.preValidation(C(),a,e,c(u),V,K())}if(o===true){T(se,a,true);if(k===se||a0;e--){if(K().validPositions[e])break}}for(var a=e;ae+1?t[e+1]&&t[e+1].match.fn===null&&t[e+1]:t[e+1];return a&&r}return false}var r=e.begin!==se?e.begin:e,o=e.end!==se?e.end:e;if(e.begin>e.end){r=e.end;o=e.begin}n=n!==se?n:r;if(r!==o||V.insertMode&&K().validPositions[n]!==se&&i===se){var s=re.extend(true,{},K().validPositions),l=S(se,true),u;K().p=r;for(u=l;u>=r;u--){if(K().validPositions[u]&&K().validPositions[u].match.nativeDef==="+"){V.isNegative=false}delete K().validPositions[u]}var f=true,c=n,p=K().validPositions,d=false,m=c,u=c;if(t){K().validPositions[n]=re.extend(true,{},t);m++;c++;if(r=o||u>=r&&h.generatedInput!==true&&a(u,s,{begin:r,end:o}))){while(A(m).match.def!==""){if(d===false&&s[m]&&s[m].match.nativeDef===h.match.nativeDef){K().validPositions[m]=re.extend(true,{},s[m]);K().validPositions[m].input=h.input;T(se,m,true);c=m+1;f=true}else if(V.shiftPositions&&x(m,h.match.def)){var g=F(m,h.input,true,true);f=g!==false;c=g.caret||g.insert?S():m+1;d=true}else{f=h.generatedInput===true||h.input===V.radixPoint&&V.numericInput===true}if(f)break;if(!f&&m>o&&R(m,true)&&(h.match.fn!==null||m>K().maskLength)){break}m++}if(A(m).match.def=="")f=false;m=c}if(!f)break}if(!f){K().validPositions=re.extend(true,{},s);P(true);return false}}else if(t){K().validPositions[n]=re.extend(true,{},t)}P(true);return true}function R(e,t){var i=b(e).match;if(i.def==="")i=A(e).match;if(i.fn!=null){return i.fn}if(t!==true&&e>-1){var n=E(e);return n.length>1+(n[n.length-1].match.def===""?1:0)}return false}function G(e,t){var i=e+1;while(A(i).match.def!==""&&(t===true&&(A(i).match.newBlockMarker!==true||!R(i))||t!==true&&!R(i))){i++}return i}function I(e,t){var i=e,n;if(i<=0)return 0;while(--i>0&&(t===true&&A(i).match.newBlockMarker!==true||t!==true&&!R(i)&&(n=E(i),n.length<2||n.length===2&&n[1].match.def===""))){}return i}function B(e,t,i,n,a){if(n&&re.isFunction(V.onBeforeWrite)){var r=V.onBeforeWrite.call(c,n,t,i,V);if(r){if(r.refreshFromBuffer){var o=r.refreshFromBuffer;D(o===true?o:o.start,o.end,r.buffer||t);t=C(true)}if(i!==se)i=r.caret!==se?r.caret:i}}if(e!==se){e.inputmask._valueSet(t.join(""));if(i!==se&&(n===se||n.type!=="blur")){W(e,i)}else Y(e,i,t.length===0);if(a===true){var s=re(e),l=e.inputmask._valueGet();f=true;s.trigger("input");setTimeout(function(){if(l===_().join("")){s.trigger("cleared")}else if($(t)===true){s.trigger("complete")}},0)}}}function L(e,t,i){t=t||A(e).match;if(t.placeholder!==se||i===true){return re.isFunction(t.placeholder)?t.placeholder(V):t.placeholder}else if(t.fn===null){if(e>-1&&K().validPositions[e]===se){var n=E(e),a=[],r;if(n.length>1+(n[n.length-1].match.def===""?1:0)){for(var o=0;o1){if(/[0-9a-bA-Z]/.test(a[0].match.def)){return V.placeholder.charAt(e%V.placeholder.length)}}}}}}return t.def}return V.placeholder.charAt(e%V.placeholder.length)}function l(e,t){if(ue){if(e.inputmask._valueGet()!==t&&(e.placeholder!==t||e.placeholder==="")){var i=C().slice(),n=e.inputmask._valueGet();if(n!==t){var a=S();if(a===-1&&n===_().join("")){i=[]}else if(a!==-1){Q(i)}B(e,i)}}}else if(e.placeholder!==t){e.placeholder=t;if(e.placeholder==="")e.removeAttribute("placeholder")}}var H={on:function e(t,i,o){var n=function e(t){var i=this;if(i.inputmask===se&&this.nodeName!=="FORM"){var n=re.data(i,"_inputmask_opts");if(n)new de(n).mask(i);else H.off(i)}else if(t.type!=="setvalue"&&this.nodeName!=="FORM"&&(i.disabled||i.readOnly&&!(t.type==="keydown"&&t.ctrlKey&&t.keyCode===67||V.tabThrough===false&&t.keyCode===de.keyCode.TAB))){t.preventDefault()}else{switch(t.type){case"input":if(f===true){f=false;return t.preventDefault()}if(fe){var a=arguments;setTimeout(function(){o.apply(i,a);W(i,i.inputmask.caretPos,se,true)},0);return false}break;case"keydown":s=false;f=false;break;case"keypress":if(s===true){return t.preventDefault()}s=true;break;case"click":if(ce||pe){var a=arguments;setTimeout(function(){o.apply(i,a)},0);return false}break}var r=o.apply(i,arguments);if(r===false){t.preventDefault();t.stopPropagation()}return r}};t.inputmask.events[i]=t.inputmask.events[i]||[];t.inputmask.events[i].push(n);if(re.inArray(i,["submit","reset"])!==-1){if(t.form!==null)re(t.form).on(i,n)}else{re(t).on(i,n)}},off:function e(n,t){if(n.inputmask&&n.inputmask.events){var i;if(t){i=[];i[t]=n.inputmask.events[t]}else{i=n.inputmask.events}re.each(i,function(e,t){while(t.length>0){var i=t.pop();if(re.inArray(e,["submit","reset"])!==-1){if(n.form!==null)re(n.form).off(e,i)}else{re(n).off(e,i)}}delete n.inputmask.events[e]})}}};var U={keydownEvent:function e(t){var i=this,n=re(i),a=t.keyCode,r=W(i);if(a===de.keyCode.BACKSPACE||a===de.keyCode.DELETE||pe&&a===de.keyCode.BACKSPACE_SAFARI||t.ctrlKey&&a===de.keyCode.X&&!me("cut")){t.preventDefault();Z(i,a,r);B(i,C(true),K().p,t,i.inputmask._valueGet()!==C().join(""))}else if(a===de.keyCode.END||a===de.keyCode.PAGE_DOWN){t.preventDefault();var o=G(S());W(i,t.shiftKey?r.begin:o,o,true)}else if(a===de.keyCode.HOME&&!t.shiftKey||a===de.keyCode.PAGE_UP){t.preventDefault();W(i,0,t.shiftKey?r.begin:0,true)}else if((V.undoOnEscape&&a===de.keyCode.ESCAPE||a===90&&t.ctrlKey)&&t.altKey!==true){z(i,true,false,v.split(""));n.trigger("click")}else if(a===de.keyCode.INSERT&&!(t.shiftKey||t.ctrlKey)){V.insertMode=!V.insertMode;i.setAttribute("im-insert",V.insertMode)}else if(V.tabThrough===true&&a===de.keyCode.TAB){if(t.shiftKey===true){if(A(r.begin).match.fn===null){r.begin=G(r.begin)}r.end=I(r.begin,true);r.begin=I(r.end,true)}else{r.begin=G(r.begin,true);r.end=G(r.begin,true);if(r.ends.length?-1:0,u=r.substr(0,o.begin),f=r.substr(o.begin),c=s.substr(0,o.begin+l),p=s.substr(o.begin+l);var d=o,m="",h=false;if(u!==c){var g=(h=u.length>=c.length)?u.length:c.length,v;for(v=0;u.charAt(v)===c.charAt(v)&&vp.length){m+=f.slice(0,1)}else{if(f.length0){re.each(m.split(""),function(e,t){var i=new re.Event("keypress");i.which=t.charCodeAt(0);y=false;U.keypressEvent.call(a,i)})}else{if(d.begin===d.end-1){d.begin=I(d.begin+1);if(d.begin===d.end-1){W(a,d.begin)}else{W(a,d.begin,d.end)}}var k=new re.Event("keydown");k.keyCode=V.numericInput?de.keyCode.BACKSPACE:de.keyCode.DELETE;U.keydownEvent.call(a,k)}t.preventDefault()}}},beforeInputEvent:function e(t){if(t.cancelable){var n=this;switch(t.inputType){case"insertText":re.each(t.data.split(""),function(e,t){var i=new re.Event("keypress");i.which=t.charCodeAt(0);y=false;U.keypressEvent.call(n,i)});return t.preventDefault();case"deleteContentBackward":var i=new re.Event("keydown");i.keyCode=de.keyCode.BACKSPACE;U.keydownEvent.call(n,i);return t.preventDefault();case"deleteContentForward":var i=new re.Event("keydown");i.keyCode=de.keyCode.DELETE;U.keydownEvent.call(n,i);return t.preventDefault()}}},setValueEvent:function e(t){this.inputmask.refreshValue=false;var i=this,n=t&&t.detail?t.detail[0]:arguments[1],n=n||i.inputmask._valueGet(true);if(re.isFunction(V.onBeforeMask))n=V.onBeforeMask.call(c,n,V)||n;n=n.toString().split("");z(i,true,false,n);v=C().join("");if((V.clearMaskOnLostFocus||V.clearIncomplete)&&i.inputmask._valueGet()===_().join("")){i.inputmask._valueSet("")}},focusEvent:function e(t){var i=this,n=i.inputmask._valueGet();if(V.showMaskOnFocus){if(n!==C().join("")){B(i,C(),G(S()))}else if(a===false){W(i,G(S()))}}if(V.positionCaretOnTab===true&&a===false){U.clickEvent.apply(i,[t,true])}v=C().join("")},mouseleaveEvent:function e(t){var i=this;a=false;if(V.clearMaskOnLostFocus&&le.activeElement!==i){l(i,o)}},clickEvent:function e(t,u){function f(e){if(V.radixPoint!==""){var t=K().validPositions;if(t[e]===se||t[e].input===L(e)){if(e=l||i===a){a=l}}W(c,a)}break}}}},0)},cutEvent:function e(t){var i=this,n=re(i),a=W(i),r=t.originalEvent||t;var o=oe.clipboardData||r.clipboardData,s=g?C().slice(a.end,a.begin):C().slice(a.begin,a.end);o.setData("text",g?s.reverse().join(""):s.join(""));if(le.execCommand)le.execCommand("copy");Z(i,de.keyCode.DELETE,a);B(i,C(),K().p,t,v!==C().join(""))},blurEvent:function e(t){var i=re(this),n=this;if(n.inputmask){l(n,o);var a=n.inputmask._valueGet(),r=C().slice();if(a!==""||m!==se){if(V.clearMaskOnLostFocus){if(S()===-1&&a===_().join("")){r=[]}else{Q(r)}}if($(r)===false){setTimeout(function(){i.trigger("incomplete")},0);if(V.clearIncomplete){P();if(V.clearMaskOnLostFocus){r=[]}else{r=_().slice()}}}B(n,r,se,t)}if(v!==C().join("")){v=r.join("");i.trigger("change")}}},mouseenterEvent:function e(t){var i=this;a=true;if(le.activeElement!==i&&V.showMaskOnHover){l(i,(g?C().slice().reverse():C()).join(""))}},submitEvent:function e(t){if(v!==C().join("")){r.trigger("change")}if(V.clearMaskOnLostFocus&&S()===-1&&u.inputmask._valueGet&&u.inputmask._valueGet()===_().join("")){u.inputmask._valueSet("")}if(V.clearIncomplete&&$(C())===false){u.inputmask._valueSet("")}if(V.removeMaskOnSubmit){u.inputmask._valueSet(u.inputmask.unmaskedvalue(),true);setTimeout(function(){B(u,C())},0)}},resetEvent:function e(t){u.inputmask.refreshValue=true;setTimeout(function(){r.trigger("setvalue")},0)}};function z(a,e,r,t,i){var o=this||a.inputmask,s=t.slice(),l="",u=-1,f=se;function c(e,t){var i=d(true,0,false).slice(e,G(e)).join("").replace(/'/g,"").indexOf(t);return i!==-1&&!R(e)&&(A(e).match.nativeDef===t.charAt(0)||A(e).match.fn===null&&A(e).match.nativeDef==="'"+t.charAt(0)||A(e).match.nativeDef===" "&&(A(e+1).match.nativeDef===t.charAt(0)||A(e+1).match.fn===null&&A(e+1).match.nativeDef==="'"+t.charAt(0)))}P();if(!r&&V.autoUnmask!==true){var n=_().slice(0,G(-1)).join(""),p=s.join("").match(new RegExp("^"+de.escapeRegex(n),"g"));if(p&&p.length>0){s.splice(0,p.length*n.length);u=G(u)}}else{u=G(u)}if(u===-1){K().p=G(u);u=0}else K().p=u;o.caretPos={begin:u};re.each(s,function(e,t){if(t!==se){if(K().validPositions[e]===se&&s[e]===L(e)&&R(e,true)&&F(e,s[e],true,se,se,true)===false){K().p++}else{var i=new re.Event("_checkval");i.which=t.charCodeAt(0);l+=t;var n=S(se,true);if(!c(u,l)){f=U.keypressEvent.call(a,i,true,false,r,o.caretPos.begin);if(f){u=o.caretPos.begin+1;l=""}}else{f=U.keypressEvent.call(a,i,true,false,r,n+1)}if(f){B(se,C(),f.forwardPosition,i,false);o.caretPos={begin:f.forwardPosition,end:f.forwardPosition}}}}});if(e)B(a,C(),f?f.forwardPosition:se,i||new re.Event("checkval"),i&&i.type==="input")}function i(e){if(e){if(e.inputmask===se){return e.value}if(e.inputmask&&e.inputmask.refreshValue){U.setValueEvent.call(e)}}var t=[],i=K().validPositions;for(var n in i){if(i[n].match&&i[n].match.fn!=null){t.push(i[n].input)}}var a=t.length===0?"":(g?t.reverse():t).join("");if(re.isFunction(V.onUnMask)){var r=(g?C().slice().reverse():C()).join("");a=V.onUnMask.call(c,r,a,V)}return a}function W(e,t,i,n){function a(e){if(g&&typeof e==="number"&&(!V.greedy||V.placeholder!=="")&&u){e=u.inputmask._valueGet().length-e}return e}var r;if(t!==se){if(re.isArray(t)){i=g?t[0]:t[1];t=g?t[1]:t[0]}if(t.begin!==se){i=g?t.begin:t.end;t=g?t.end:t.begin}if(typeof t==="number"){t=n?t:a(t);i=n?i:a(i);i=typeof i=="number"?i:t;var o=parseInt(((e.ownerDocument.defaultView||oe).getComputedStyle?(e.ownerDocument.defaultView||oe).getComputedStyle(e,null):e.currentStyle).fontSize)*i;e.scrollLeft=o>e.scrollWidth?o:0;e.inputmask.caretPos={begin:t,end:i};if(e===le.activeElement){if("selectionStart"in e){e.selectionStart=t;e.selectionEnd=i}else if(oe.getSelection){r=le.createRange();if(e.firstChild===se||e.firstChild===null){var s=le.createTextNode("");e.appendChild(s)}r.setStart(e.firstChild,ta;n--){l=r[n];if((l.match.optionality||l.match.optionalQuantifier&&l.match.newBlockMarker||u&&(u!==r[n].locator[o.alternation]&&l.match.fn!=null||l.match.fn===null&&l.locator[o.alternation]&&O(l.locator[o.alternation].toString().split(","),u.toString().split(","))&&E(n)[0].def!==""))&&t[n]===L(n,l.match)){i--}else break}return e?{l:i,def:r[i]?r[i].match:se}:i}function Q(e){e.length=0;var t=d(true,0,true,se,true),i,n;while(i=t.shift(),i!==se){e.push(i)}return e}function $(e){if(re.isFunction(V.isComplete))return V.isComplete(e,V);if(V.repeat==="*")return se;var t=false,i=q(true),n=I(i.l);if(i.def===se||i.def.newBlockMarker||i.def.optionality||i.def.optionalQuantifier){t=true;for(var a=0;a<=n;a++){var r=b(a).match;if(r.fn!==null&&K().validPositions[a]===se&&r.optionality!==true&&r.optionalQuantifier!==true||r.fn===null&&e[a]!==L(a,r)){t=false;break}}}return t}function Z(e,t,i,n,a){if(V.numericInput||g){if(t===de.keyCode.BACKSPACE){t=de.keyCode.DELETE}else if(t===de.keyCode.DELETE){t=de.keyCode.BACKSPACE}if(g){var r=i.end;i.end=i.begin;i.begin=r}}if(t===de.keyCode.BACKSPACE&&i.end-i.begin<1){i.begin=I(i.begin);if(K().validPositions[i.begin]!==se&&K().validPositions[i.begin].input===V.groupSeparator){i.begin--}}else if(t===de.keyCode.DELETE&&i.begin===i.end){i.end=R(i.end,true)&&K().validPositions[i.end]&&K().validPositions[i.end].input!==V.radixPoint?i.end+1:G(i.end)+1;if(K().validPositions[i.begin]!==se&&K().validPositions[i.begin].input===V.groupSeparator){i.end++}}N(i);if(n!==true&&V.keepStatic!==false||V.regex!==null){var o=j(true);if(o){var s=o.caret!==se?o.caret:o.pos?G(o.pos.begin?o.pos.begin:o.pos):S(-1,true);if(t!==de.keyCode.DELETE||i.begin>s){i.begin==s}}}var l=S(i.begin,true);if(l=e){var s=e-r;var l=t.offsetWidth-e;t.innerHTML=a.charAt(i);s-=t.offsetWidth/3;i=s"+e)}else if(a&&(r.fn!==null&&o.input!==se||r.def==="")){a=false;var t=n.length;n[t-1]=n[t-1]+"";n.push(e)}else n.push(e)}function f(){if(le.activeElement===e){n.splice(t.begin,0,t.begin===t.end||t.end>K().maskLength?'':'');n.splice(t.end+1,0,"")}}if(m!==se){var c=C();if(t===se){t=W(e)}else if(t.begin===se){t={begin:t,end:t}}if(i!==true){var p=S();do{if(K().validPositions[l]){o=K().validPositions[l];r=o.match;s=o.locator.slice();u(c[l])}else{o=b(l,s,l-1);r=o.match;s=o.locator.slice();if(V.jitMasking===false||ll){u(L(l,r))}else a=false}l++}while((k===se||ll||a);if(a)u();f()}var d=m.getElementsByTagName("div")[0];d.innerHTML=n.join("");e.inputmask.positionColorMask(e,d)}}function n(e){function t(e,l){function t(e){var t;var i;function n(e){if(re.valHooks&&(re.valHooks[e]===se||re.valHooks[e].inputmaskpatch!==true)){var n=re.valHooks[e]&&re.valHooks[e].get?re.valHooks[e].get:function(e){return e.value};var r=re.valHooks[e]&&re.valHooks[e].set?re.valHooks[e].set:function(e,t){e.value=t;return e};re.valHooks[e]={get:function e(t){if(t.inputmask){if(t.inputmask.opts.autoUnmask){return t.inputmask.unmaskedvalue()}else{var i=n(t);return S(se,se,t.inputmask.maskset.validPositions)!==-1||l.nullable!==true?i:""}}else return n(t)},set:function e(t,i){var n=re(t),a;a=r(t,i);if(t.inputmask){n.trigger("setvalue",[i])}return a},inputmaskpatch:true}}}function a(){if(this.inputmask){return this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():S()!==-1||l.nullable!==true?le.activeElement===this&&l.clearMaskOnLostFocus?(g?Q(C().slice()).reverse():Q(C().slice())).join(""):t.call(this):""}else return t.call(this)}function r(e){i.call(this,e);if(this.inputmask){re(this).trigger("setvalue",[e])}}function o(e){H.on(e,"mouseenter",function(e){var t=re(this),i=this,n=i.inputmask._valueGet();if(n!==C().join("")){t.trigger("setvalue")}})}if(!e.inputmask.__valueGet){if(l.noValuePatching!==true){if(Object.getOwnPropertyDescriptor){if(typeof Object.getPrototypeOf!=="function"){Object.getPrototypeOf=ge("test".__proto__)==="object"?function(e){return e.__proto__}:function(e){return e.constructor.prototype}}var s=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value"):se;if(s&&s.get&&s.set){t=s.get;i=s.set;Object.defineProperty(e,"value",{get:a,set:r,configurable:true})}else if(e.tagName!=="INPUT"){t=function e(){return this.textContent};i=function e(t){this.textContent=t};Object.defineProperty(e,"value",{get:a,set:r,configurable:true})}}else if(le.__lookupGetter__&&e.__lookupGetter__("value")){t=e.__lookupGetter__("value");i=e.__lookupSetter__("value");e.__defineGetter__("value",a);e.__defineSetter__("value",r)}e.inputmask.__valueGet=t;e.inputmask.__valueSet=i}e.inputmask._valueGet=function(e){return g&&e!==true?t.call(this.el).split("").reverse().join(""):t.call(this.el)};e.inputmask._valueSet=function(e,t){i.call(this.el,e===null||e===se?"":t!==true&&g?e.split("").reverse().join(""):e)};if(t===se){t=function e(){return this.value};i=function e(t){this.value=t};n(e.type);o(e)}}}var i=e.getAttribute("type");var n=e.tagName==="INPUT"&&re.inArray(i,l.supportsInputType)!==-1||e.isContentEditable||e.tagName==="TEXTAREA";if(!n){if(e.tagName==="INPUT"){var a=le.createElement("input");a.setAttribute("type",i);n=a.type==="text";a=null}else n="partial"}if(n!==false){t(e)}else e.inputmask=se;return n}H.off(e);var i=t(e,V);if(i!==false){u=e;r=re(u);o=u.placeholder;k=u!==se?u.maxLength:se;if(k===-1)k=se;if(V.colorMask===true){J(u)}if(fe){if("inputMode"in u){u.inputmode=V.inputmode;u.setAttribute("inputmode",V.inputmode)}if(V.disablePredictiveText===true){if("autocorrect"in u){u.autocorrect=false}else{if(V.colorMask!==true){J(u)}u.type="password"}}}if(i===true){u.setAttribute("im-insert",V.insertMode);H.on(u,"submit",U.submitEvent);H.on(u,"reset",U.resetEvent);H.on(u,"blur",U.blurEvent);H.on(u,"focus",U.focusEvent);if(V.colorMask!==true){H.on(u,"click",U.clickEvent);H.on(u,"mouseleave",U.mouseleaveEvent);H.on(u,"mouseenter",U.mouseenterEvent)}H.on(u,"paste",U.pasteEvent);H.on(u,"cut",U.cutEvent);H.on(u,"complete",V.oncomplete);H.on(u,"incomplete",V.onincomplete);H.on(u,"cleared",V.oncleared);if(!fe&&V.inputEventOnly!==true){H.on(u,"keydown",U.keydownEvent);H.on(u,"keypress",U.keypressEvent)}else{u.removeAttribute("maxLength")}H.on(u,"input",U.inputFallBackEvent);H.on(u,"beforeinput",U.beforeInputEvent)}H.on(u,"setvalue",U.setValueEvent);v=_().join("");if(u.inputmask._valueGet(true)!==""||V.clearMaskOnLostFocus===false||le.activeElement===u){var n=re.isFunction(V.onBeforeMask)?V.onBeforeMask.call(c,u.inputmask._valueGet(true),V)||u.inputmask._valueGet(true):u.inputmask._valueGet(true);if(n!=="")z(u,true,false,n.split(""));var a=C().slice();v=a.join("");if($(a)===false){if(V.clearIncomplete){P()}}if(V.clearMaskOnLostFocus&&le.activeElement!==u){if(S()===-1){a=[]}else{Q(a)}}if(V.clearMaskOnLostFocus===false||V.showMaskOnFocus&&le.activeElement===u||u.inputmask._valueGet(true)!=="")B(u,a);if(le.activeElement===u){W(u,G(S()))}}}}var X;if(e!==se){switch(e.action){case"isComplete":u=e.el;return $(C());case"unmaskedvalue":if(u===se||e.value!==se){X=e.value;X=(re.isFunction(V.onBeforeMask)?V.onBeforeMask.call(c,X,V)||X:X).split("");z.call(this,se,false,false,X);if(re.isFunction(V.onBeforeWrite))V.onBeforeWrite.call(c,se,C(),0,V)}return i(u);case"mask":n(u);break;case"format":X=(re.isFunction(V.onBeforeMask)?V.onBeforeMask.call(c,e.value,V)||e.value:e.value).split("");z.call(this,se,true,false,X);if(e.metadata){return{value:g?C().slice().reverse().join(""):C().join(""),metadata:he.call(this,{action:"getmetadata"},t,V)}}return g?C().slice().reverse().join(""):C().join("");case"isValid":if(e.value){X=e.value.split("");z.call(this,se,true,true,X)}else{e.value=C().join("")}var ee=C();var te=q(),ie=ee.length-1;for(;ie>te;ie--){if(R(ie))break}ee.splice(te,ie+1-te);return $(ee)&&e.value===C().join("");case"getemptymask":return _().join("");case"remove":if(u&&u.inputmask){re.data(u,"_inputmask_opts",null);r=re(u);u.inputmask._valueSet(V.autoUnmask?i(u):u.inputmask._valueGet(true));H.off(u);if(u.inputmask.colorMask){m=u.inputmask.colorMask;m.removeChild(u);m.parentNode.insertBefore(u,m);m.parentNode.removeChild(m)}var ne;if(Object.getOwnPropertyDescriptor&&Object.getPrototypeOf){ne=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(u),"value");if(ne){if(u.inputmask.__valueGet){Object.defineProperty(u,"value",{get:u.inputmask.__valueGet,set:u.inputmask.__valueSet,configurable:true})}}}else if(le.__lookupGetter__&&u.__lookupGetter__("value")){if(u.inputmask.__valueGet){u.__defineGetter__("value",u.inputmask.__valueGet);u.__defineSetter__("value",u.inputmask.__valueSet)}}u.inputmask=se}return u;break;case"getmetadata":if(re.isArray(t.metadata)){var ae=d(true,0,false).join("");re.each(t.metadata,function(e,t){if(t.mask===ae){ae=t;return false}});return ae}return t.metadata}}}return de.prototype={dataAttribute:"data-inputmask",defaults:{placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:re.noop,onincomplete:re.noop,oncleared:re.noop,repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,alias:null,onKeyDown:re.noop,onBeforeMask:null,onBeforePaste:function(e,t){return re.isFunction(t.onBeforeMask)?t.onBeforeMask.call(this,e,t):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:re.noop,skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123,0,229],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:se,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"verbatim",colorMask:!1,disablePredictiveText:!1,importDataAttributes:!0,shiftPositions:!0},definitions:{9:{validator:"[0-91-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ]"}},aliases:{},masksCache:{},mask:function(e){var a=this;return"string"==typeof e&&(e=le.getElementById(e)||le.querySelectorAll(e)),e=e.nodeName?[e]:e,re.each(e,function(e,t){var i=re.extend(!0,{},a.opts);if(function(i,e,n,a){if(!0===e.importDataAttributes){var t,r,o,s,l=i.getAttribute(a),u=function(e,t){null!==(t=t!==se?t:i.getAttribute(a+"-"+e))&&("string"==typeof t&&(0===e.indexOf("on")?t=oe[t]:"false"===t?t=!1:"true"===t&&(t=!0)),n[e]=t)};if(l&&""!==l&&(l=l.replace(/'/g,'"'),r=JSON.parse("{"+l+"}")),r)for(s in o=se,r)if("alias"===s.toLowerCase()){o=r[s];break}for(t in u("alias",o),n.alias&&f(n.alias,n,e),e){if(r)for(s in o=se,r)if(s.toLowerCase()===t.toLowerCase()){o=r[s];break}u(t,o)}}return re.extend(!0,e,n),"rtl"!==i.dir&&!e.rightAlign||(i.style.textAlign="right"),"rtl"!==i.dir&&!e.numericInput||(i.dir="ltr",i.removeAttribute("dir"),e.isRTL=!0),Object.keys(n).length}(t,i,re.extend(!0,{},a.userOptions),a.dataAttribute)){var n=r(i,a.noMasksCache);n!==se&&(t.inputmask!==se&&(t.inputmask.opts.autoUnmask=!0,t.inputmask.remove()),t.inputmask=new de(se,se,!0),t.inputmask.opts=i,t.inputmask.noMasksCache=a.noMasksCache,t.inputmask.userOptions=re.extend(!0,{},a.userOptions),t.inputmask.isRTL=i.isRTL||i.numericInput,(t.inputmask.el=t).inputmask.maskset=n,re.data(t,"_inputmask_opts",i),he.call(t.inputmask,{action:"mask"}))}}),e&&e[0]&&e[0].inputmask||this},option:function(e,t){return"string"==typeof e?this.opts[e]:"object"===(void 0===e?"undefined":ge(e))?(re.extend(this.userOptions,e),this.el&&!0!==t&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){return this.maskset=this.maskset||r(this.opts,this.noMasksCache),he.call(this,{action:"unmaskedvalue",value:e})},remove:function(){return he.call(this,{action:"remove"})},getemptymask:function(){return this.maskset=this.maskset||r(this.opts,this.noMasksCache),he.call(this,{action:"getemptymask"})},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||r(this.opts,this.noMasksCache),he.call(this,{action:"isComplete"})},getmetadata:function(){return this.maskset=this.maskset||r(this.opts,this.noMasksCache),he.call(this,{action:"getmetadata"})},isValid:function(e){return this.maskset=this.maskset||r(this.opts,this.noMasksCache),he.call(this,{action:"isValid",value:e})},format:function(e,t){return this.maskset=this.maskset||r(this.opts,this.noMasksCache),he.call(this,{action:"format",value:e,metadata:t})},setValue:function(e){this.el&&re(this.el).trigger("setvalue",[e])},analyseMask:function(e,r,o){var t,i,n,a,s,l,u=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?(?:\|[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g,f=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,c=!1,p=new h,d=[],m=[];function h(e,t,i,n){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=i||!1,this.isAlternator=n||!1,this.quantifier={min:1,max:1}}function g(i,e,n){n=n!==se?n:i.matches.length;var a=i.matches[n-1];if(r)0===e.indexOf("[")||c&&/\\d|\\s|\\w]/i.test(e)||"."===e?i.matches.splice(n++,0,{fn:new RegExp(e,o.casing?"i":""),optionality:!1,newBlockMarker:a===se?"master":a.def!==e,casing:null,def:e,placeholder:se,nativeDef:e}):(c&&(e=e[e.length-1]),re.each(e.split(""),function(e,t){a=i.matches[n-1],i.matches.splice(n++,0,{fn:null,optionality:!1,newBlockMarker:a===se?"master":a.def!==t&&null!==a.fn,casing:null,def:o.staticDefinitionSymbol||t,placeholder:o.staticDefinitionSymbol!==se?t:se,nativeDef:(c?"'":"")+t})})),c=!1;else{var t=(o.definitions?o.definitions[e]:se)||de.prototype.definitions[e];t&&!c?i.matches.splice(n++,0,{fn:t.validator?"string"==typeof t.validator?new RegExp(t.validator,o.casing?"i":""):new function(){this.test=t.validator}:new RegExp("."),optionality:!1,newBlockMarker:a===se?"master":a.def!==(t.definitionSymbol||e),casing:t.casing,def:t.definitionSymbol||e,placeholder:t.placeholder,nativeDef:e}):(i.matches.splice(n++,0,{fn:null,optionality:!1,newBlockMarker:a===se?"master":a.def!==e&&null!==a.fn,casing:null,def:o.staticDefinitionSymbol||e,placeholder:o.staticDefinitionSymbol!==se?e:se,nativeDef:(c?"'":"")+e}),c=!1)}}function v(){if(0=e.day)&&t}function i(e,t){var i=!0;if(t.min){if(e.rawyear){var n=e.rawyear.replace(/[^0-9]/g,""),a=t.min.year.substr(0,n.length);i=a<=n}e.year===e.rawyear&&t.min.date.getTime()==t.min.date.getTime()&&(i=t.min.date.getTime()<=e.date.getTime())}if(i&&t.max&&t.max.date.getTime()==t.max.date.getTime())i=t.max.date.getTime()>=e.date.getTime();return i}function u(e,t,i,n){var a="",r;while(r=d(i).exec(e)){if(t===undefined){if(p[r[0]]){a+="("+p[r[0]][0]+")"}else{switch(r[0]){case"[":a+="(";break;case"]":a+=")?";break;default:a+=s.escapeRegex(r[0])}}}else{if(p[r[0]]){if(n!==true&&p[r[0]][3]){var o=p[r[0]][3];a+=o.call(t.date)}else if(p[r[0]][2])a+=t["raw"+p[r[0]][2]];else a+=r[0]}else a+=r[0]}}return a}function f(e,t){e=String(e);t=t||2;while(e.lengtha.slice(0,i.length)?a.slice(i.length):t.toString().slice(i.length))}return t}function f(e,t,i){e[o]=u(t);e["raw"+o]=t;if(s!==undefined)s.call(e.date,o=="month"?parseInt(e[o])-1:e[o])}if(typeof n==="string"){while(a=d(r).exec(t)){var c=n.slice(0,a[0].length);if(p.hasOwnProperty(a[0])){l=p[a[0]][0];o=p[a[0]][2];s=p[a[0]][1];f(i,c,r)}n=n.slice(c.length)}return i}else if(n&&(typeof n==="undefined"?"undefined":m(n))==="object"&&n.hasOwnProperty("date")){return n}return undefined}return s.extendAliases({datetime:{mask:function(e){return p.S=e.i18n.ordinalSuffix.join("|"),e.inputFormat=t[e.inputFormat]||e.inputFormat,e.displayFormat=t[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=t[e.outputFormat]||e.outputFormat||e.inputFormat,e.placeholder=""!==e.placeholder?e.placeholder:e.inputFormat.replace(/[\[\]]/,""),e.regex=u(e.inputFormat,void 0,e),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:void 0,outputFormat:void 0,min:null,max:null,i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},postValidation:function(e,t,i,n){n.min=c(n.min,n.inputFormat,n),n.max=c(n.max,n.inputFormat,n);var a,r,o=i,s=c(e.join(""),n.inputFormat,n);return o&&s.date.getTime()==s.date.getTime()&&(a=s,r=o,o=(o=(!isFinite(a.rawday)||"29"==a.day&&!isFinite(a.rawyear)||new Date(a.date.getFullYear(),isFinite(a.rawmonth)?a.month:a.date.getMonth()+1,0).getDate()>=a.day)&&r)&&function(e,t){var i=!0;if(t.min){if(e.rawyear){var n=e.rawyear.replace(/[^0-9]/g,""),a=t.min.year.substr(0,n.length);i=a<=n}e.year===e.rawyear&&t.min.date.getTime()==t.min.date.getTime()&&(i=t.min.date.getTime()<=e.date.getTime())}i&&t.max&&t.max.date.getTime()==t.max.date.getTime()&&(i=t.max.date.getTime()>=e.date.getTime());return i}(s,n)),t&&o&&i.pos!==t?{buffer:u(n.inputFormat,s,n),refreshFromBuffer:{start:t,end:i.pos}}:o},onKeyDown:function(e,t,i,n){if(e.ctrlKey&&e.keyCode===s.keyCode.RIGHT){for(var a,r=new Date,o="";a=d(n).exec(n.inputFormat);)"d"===a[0].charAt(0)?o+=f(r.getDate(),a[0].length):"m"===a[0].charAt(0)?o+=f(r.getMonth()+1,a[0].length):"yyyy"===a[0]?o+=r.getFullYear().toString():"y"===a[0].charAt(0)&&(o+=f(r.getYear(),a[0].length));this.inputmask._valueSet(o),l(this).trigger("setvalue")}},onUnMask:function(e,t,i){return u(i.outputFormat,c(e,i.inputFormat,i),i,!0)},casing:function(e,t){return 0==t.nativeDef.indexOf("[ap]")?e.toLowerCase():0==t.nativeDef.indexOf("[AP]")?e.toUpperCase():e},insertMode:!1,shiftPositions:!1}}),s})?n.apply(t,a):n)||(e.exports=r)},function(e,t,i){"use strict";var n,a,r;a=[i(2)],void 0===(r="function"==typeof(n=function(g){var v=g.dependencyLib;function o(e,t){var i="";for(var n=0;n=(!1===n.isNegative?1:0)&&o=s.length-n.suffix.length-(!1===n.isNegative?1:0)&&(a[o-(s.length-n.suffix.length-(!1===n.isNegative?1:0))]="?")),r=r.join(""),a=a.join("");var u=s.join("").replace(r,"");if(u=(u=(u=(u=u.replace(a,"")).replace(new RegExp(g.escapeRegex(n.groupSeparator),"g"),"")).replace(new RegExp("[-"+g.escapeRegex(n.negationSymbol.front)+"]","g"),"")).replace(new RegExp(g.escapeRegex(n.negationSymbol.back)+"$"),""),isNaN(n.placeholder)&&(u=u.replace(new RegExp(g.escapeRegex(n.placeholder),"g"),"")),1n.max)return n.isNegative=n.max<0,n.postValidation(n.max.toString().replace(".",n.radixPoint).split(""),i,{caret:i,dopost:!0,placeholder:"0"},n)}return n.postValidation(t,i,{caret:i,placeholder:"0",event:"blur"},n);case"_checkval":return{caret:i}}var r},regex:{integerPart:function(e,t){return t?new RegExp("["+g.escapeRegex(e.negationSymbol.front)+"+]?"):new RegExp("["+g.escapeRegex(e.negationSymbol.front)+"+]?\\d+")},integerNPart:function(e){return new RegExp("[\\d"+g.escapeRegex(e.groupSeparator)+g.escapeRegex(e.placeholder.charAt(0))+"]+")}},definitions:{"~":{validator:function(e,t,i,n,a,r){var o;if("k"===e||"m"===e){o={insert:[],c:0};for(var s=0,l="k"===e?2:5;s
"),e=o.children()[0];return b("body").append(o),t=e.offsetWidth,o.css("overflow","scroll"),t===(i=e.offsetWidth)&&(i=o[0].clientWidth),o.remove(),l=t-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),o=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===i||"auto"===i&&t.widthL(P(e),P(l))?n.important="horizontal":n.important="vertical",c.using.call(this,t,n)}),f.offset(b.extend(r,{using:t}))})},b.ui.position={fit:{left:function(t,i){var o,e=i.within,l=e.isWindow?e.scrollLeft:e.offset.left,n=e.width,f=t.left-i.collisionPosition.marginLeft,s=l-f,h=f+i.collisionWidth-n-l;i.collisionWidth>n?0n?0 (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:
foo
",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(r));var t={};for(var a in r)r.hasOwnProperty(a)&&(t[a]=r[a].defaultValue);return t}var b={},t={},d={},p=a(!0),h="vanilla",_={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:a(!0),allOn:function(){"use strict";var e=a(!0),r={};for(var t in e)e.hasOwnProperty(t)&&(r[t]=!0);return r}()};function g(e,r){"use strict";var t=r?"Error in "+r+" extension->":"Error in unnamed extension",a={valid:!0,error:""};b.helper.isArray(e)||(e=[e]);for(var n=0;n").replace(/&/g,"&")};function m(e,r,t,a){"use strict";var n,s,o,i,l,c=a||"",u=-1>=0,t=String(t||" "),e.length>r?String(e):((r-=e.length)>t.length&&(t+=t.repeat(r/t.length)),String(e)+t.slice(0,r))},"undefined"==typeof console&&(console={warn:function(e){},log:function(e){},error:function(e){"use strict";throw e}}),b.helper.regexes={asteriskDashAndColon:/([*_:~])/g},b.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},b.Converter=function(t){"use strict";var s={},o=[],i=[],l={},a=h,c={parsed:{},raw:"",format:""};function n(e,r){if(r=r||null,b.helper.isString(e)){if(r=e=b.helper.stdExtName(e),b.extensions[e])return void function(e,r){"function"==typeof e&&(e=e(new b.Converter));b.helper.isArray(e)||(e=[e]);var t=g(e,r);if(!t.valid)throw Error(t.error);for(var a=0;a[ \t]+¨NBSP;<"),!r){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");r=window.document}var t=r.createElement("div");t.innerHTML=e;var a={preList:function(e){for(var r=e.querySelectorAll("pre"),t=[],a=0;a'}else t.push(r[a].innerHTML),r[a].innerHTML="",r[a].setAttribute("prenum",a.toString());return t}(t)};!function e(r){for(var t=0;t? ?(['"].*['"])?\)$/m))a="";else if(!a){if(a="#"+(t=t||r.toLowerCase().replace(/ ?\n/g," ")),b.helper.isUndefined(c.gUrls[t]))return e;a=c.gUrls[t],b.helper.isUndefined(c.gTitles[t])||(o=c.gTitles[t])}var i='"}return e=(e=(e=(e=(e=c.converter._dispatch("anchors.before",e,l,c)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r)).replace(/\[([^\[\]]+)]()()()()()/g,r),l.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,function(e,r,t,a,n){if("\\"===t)return r+a;if(!b.helper.isString(l.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=l.ghMentionsLink.replace(/\{u}/g,n),o="";return l.openLinksInNewWindow&&(o=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'"+a+""})),e=c.converter._dispatch("anchors.after",e,l,c)});function n(p){"use strict";return function(e,r,t,a,n,s,o){var i=t=t.replace(b.helper.regexes.asteriskDashAndColon,b.helper.escapeCharactersCallback),l="",c="",u=r||"",d=o||"";return/^www\./i.test(t)&&(t=t.replace(/^www\./i,"http://www.")),p.excludeTrailingPunctuationFromURLs&&s&&(l=s),p.openLinksInNewWindow&&(c=' rel="noopener noreferrer" target="¨E95Eblank"'),u+'"+i+""+l+d}}function o(n,s){"use strict";return function(e,r,t){var a="mailto:";return r=r||"",t=b.subParser("unescapeSpecialChars")(t,n,s),n.encodeEmails?(a=b.helper.encodeEmailAddress(a+t),t=b.helper.encodeEmailAddress(t)):a+=t,r+''+t+""}}var i=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,l=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,c=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,u=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,f=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi;b.subParser("autoLinks",function(e,r,t){"use strict";return e=(e=(e=t.converter._dispatch("autoLinks.before",e,r,t)).replace(c,n(r))).replace(f,o(r,t)),e=t.converter._dispatch("autoLinks.after",e,r,t)}),b.subParser("simplifiedAutoLinks",function(e,r,t){"use strict";return r.simplifiedAutoLink?(e=t.converter._dispatch("simplifiedAutoLinks.before",e,r,t),e=(e=r.excludeTrailingPunctuationFromURLs?e.replace(l,n(r)):e.replace(i,n(r))).replace(u,o(r,t)),e=t.converter._dispatch("simplifiedAutoLinks.after",e,r,t)):e}),b.subParser("blockGamut",function(e,r,t){"use strict";return e=t.converter._dispatch("blockGamut.before",e,r,t),e=b.subParser("blockQuotes")(e,r,t),e=b.subParser("headers")(e,r,t),e=b.subParser("horizontalRule")(e,r,t),e=b.subParser("lists")(e,r,t),e=b.subParser("codeBlocks")(e,r,t),e=b.subParser("tables")(e,r,t),e=b.subParser("hashHTMLBlocks")(e,r,t),e=b.subParser("paragraphs")(e,r,t),e=t.converter._dispatch("blockGamut.after",e,r,t)}),b.subParser("blockQuotes",function(e,r,t){"use strict";e=t.converter._dispatch("blockQuotes.before",e,r,t),e+="\n\n";var a=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return r.splitAdjacentBlockquotes&&(a=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(a,function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=b.subParser("githubCodeBlocks")(e,r,t),e=(e=(e=b.subParser("blockGamut")(e,r,t)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm,function(e,r){var t=r;return t=(t=t.replace(/^  /gm,"¨0")).replace(/¨0/g,"")}),b.subParser("hashBlock")("
\n"+e+"\n
",r,t)}),e=t.converter._dispatch("blockQuotes.after",e,r,t)}),b.subParser("codeBlocks",function(e,o,i){"use strict";e=i.converter._dispatch("codeBlocks.before",e,o,i);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,function(e,r,t){var a=r,n=t,s="\n";return a=b.subParser("outdent")(a,o,i),a=b.subParser("encodeCode")(a,o,i),a=(a=(a=b.subParser("detab")(a,o,i)).replace(/^\n+/g,"")).replace(/\n+$/g,""),o.omitExtraWLInCodeBlocks&&(s=""),a="
"+a+s+"
",b.subParser("hashBlock")(a,o,i)+n})).replace(/¨0/,""),e=i.converter._dispatch("codeBlocks.after",e,o,i)}),b.subParser("codeSpans",function(e,s,o){"use strict";return void 0===(e=o.converter._dispatch("codeSpans.before",e,s,o))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(e,r,t,a){var n=a;return n=(n=n.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),n=r+""+(n=b.subParser("encodeCode")(n,s,o))+"",n=b.subParser("hashHTMLSpans")(n,s,o)}),e=o.converter._dispatch("codeSpans.after",e,s,o)}),b.subParser("completeHTMLDocument",function(e,r,t){"use strict";if(!r.completeHTMLDocument)return e;e=t.converter._dispatch("completeHTMLDocument.before",e,r,t);var a="html",n="\n",s="",o='\n',i="",l="";for(var c in void 0!==t.metadata.parsed.doctype&&(n="\n","html"!==(a=t.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==a||(o='')),t.metadata.parsed)if(t.metadata.parsed.hasOwnProperty(c))switch(c.toLowerCase()){case"doctype":break;case"title":s=""+t.metadata.parsed.title+"\n";break;case"charset":o="html"===a||"html5"===a?'\n':'\n';break;case"language":case"lang":i=' lang="'+t.metadata.parsed[c]+'"',l+='\n';break;default:l+='\n'}return e=n+"\n\n"+s+o+l+"\n\n"+e.trim()+"\n\n",e=t.converter._dispatch("completeHTMLDocument.after",e,r,t)}),b.subParser("detab",function(e,r,t){"use strict";return e=(e=(e=(e=(e=(e=t.converter._dispatch("detab.before",e,r,t)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,function(e,r){for(var t=r,a=4-t.length%4,n=0;n/g,">"),e=t.converter._dispatch("encodeAmpsAndAngles.after",e,r,t)}),b.subParser("encodeBackslashEscapes",function(e,r,t){"use strict";return e=(e=(e=t.converter._dispatch("encodeBackslashEscapes.before",e,r,t)).replace(/\\(\\)/g,b.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,b.helper.escapeCharactersCallback),e=t.converter._dispatch("encodeBackslashEscapes.after",e,r,t)}),b.subParser("encodeCode",function(e,r,t){"use strict";return e=(e=t.converter._dispatch("encodeCode.before",e,r,t)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,b.helper.escapeCharactersCallback),e=t.converter._dispatch("encodeCode.after",e,r,t)}),b.subParser("escapeSpecialCharsWithinTagAttributes",function(e,r,t){"use strict";return e=(e=(e=t.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,r,t)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,b.helper.escapeCharactersCallback)})).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,function(e){return e.replace(/([\\`*_~=|])/g,b.helper.escapeCharactersCallback)}),e=t.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,r,t)}),b.subParser("githubCodeBlocks",function(e,s,o){"use strict";return s.ghCodeBlocks?(e=o.converter._dispatch("githubCodeBlocks.before",e,s,o),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(e,r,t,a){var n=s.omitExtraWLInCodeBlocks?"":"\n";return a=b.subParser("encodeCode")(a,s,o),a="
"+(a=(a=(a=b.subParser("detab")(a,s,o)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+n+"
",a=b.subParser("hashBlock")(a,s,o),"\n\n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"})).replace(/¨0/,""),o.converter._dispatch("githubCodeBlocks.after",e,s,o)):e}),b.subParser("hashBlock",function(e,r,t){"use strict";return e=(e=t.converter._dispatch("hashBlock.before",e,r,t)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(t.gHtmlBlocks.push(e)-1)+"K\n\n",e=t.converter._dispatch("hashBlock.after",e,r,t)}),b.subParser("hashCodeTags",function(e,s,o){"use strict";e=o.converter._dispatch("hashCodeTags.before",e,s,o);return e=b.helper.replaceRecursiveRegExp(e,function(e,r,t,a){var n=t+b.subParser("encodeCode")(r,s,o)+a;return"¨C"+(o.gHtmlSpans.push(n)-1)+"C"},"]*>","","gim"),e=o.converter._dispatch("hashCodeTags.after",e,s,o)}),b.subParser("hashElement",function(e,r,a){"use strict";return function(e,r){var t=r;return t=(t=(t=t.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),t="\n\n¨K"+(a.gHtmlBlocks.push(t)-1)+"K\n\n"}}),b.subParser("hashHTMLBlocks",function(e,r,s){"use strict";e=s.converter._dispatch("hashHTMLBlocks.before",e,r,s);function t(e,r,t,a){var n=e;return-1!==t.search(/\bmarkdown\b/)&&(n=t+s.converter.makeHtml(r)+a),"\n\n¨K"+(s.gHtmlBlocks.push(n)-1)+"K\n\n"}var a=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"];r.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,function(e,r){return"<"+r+">"}));for(var n=0;n]*>)","im"),l="<"+a[n]+"\\b[^>]*>",c="";-1!==(o=b.helper.regexIndexOf(e,i));){var u=b.helper.splitAtIndex(e,o),d=b.helper.replaceRecursiveRegExp(u[1],t,l,c,"im");if(d===u[1])break;e=u[0].concat(d)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,b.subParser("hashElement")(e,r,s)),e=(e=b.helper.replaceRecursiveRegExp(e,function(e){return"\n\n¨K"+(s.gHtmlBlocks.push(e)-1)+"K\n\n"},"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,b.subParser("hashElement")(e,r,s)),e=s.converter._dispatch("hashHTMLBlocks.after",e,r,s)}),b.subParser("hashHTMLSpans",function(e,r,t){"use strict";function a(e){return"¨C"+(t.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=t.converter._dispatch("hashHTMLSpans.before",e,r,t)).replace(/<[^>]+?\/>/gi,function(e){return a(e)})).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(e){return a(e)})).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(e){return a(e)})).replace(/<[^>]+?>/gi,function(e){return a(e)}),e=t.converter._dispatch("hashHTMLSpans.after",e,r,t)}),b.subParser("unhashHTMLSpans",function(e,r,t){"use strict";e=t.converter._dispatch("unhashHTMLSpans.before",e,r,t);for(var a=0;a]*>\\s*]*>","^ {0,3}\\s*
","gim"),e=o.converter._dispatch("hashPreCodeTags.after",e,s,o)}),b.subParser("headers",function(e,l,c){"use strict";e=c.converter._dispatch("headers.before",e,l,c);var u=isNaN(parseInt(l.headerLevelStart))?1:parseInt(l.headerLevelStart),r=l.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,t=l.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(r,function(e,r){var t=b.subParser("spanGamut")(r,l,c),a=l.noHeaderId?"":' id="'+d(r)+'"',n=""+t+"";return b.subParser("hashBlock")(n,l,c)})).replace(t,function(e,r){var t=b.subParser("spanGamut")(r,l,c),a=l.noHeaderId?"":' id="'+d(r)+'"',n=u+1,s=""+t+"";return b.subParser("hashBlock")(s,l,c)});var a=l.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function d(e){var r,t;if(l.customizedHeaderId){var a=e.match(/\{([^{]+?)}\s*$/);a&&a[1]&&(e=a[1])}return r=e,t=b.helper.isString(l.prefixHeaderId)?l.prefixHeaderId:!0===l.prefixHeaderId?"section-":"",l.rawPrefixHeaderId||(r=t+r),r=l.ghCompatibleHeaderId?r.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():l.rawHeaderId?r.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():r.replace(/[^\w]/g,"").toLowerCase(),l.rawPrefixHeaderId&&(r=t+r),c.hashLinkCounts[r]?r=r+"-"+c.hashLinkCounts[r]++:c.hashLinkCounts[r]=1,r}return e=e.replace(a,function(e,r,t){var a=t;l.customizedHeaderId&&(a=t.replace(/\s?\{([^{]+?)}\s*$/,""));var n=b.subParser("spanGamut")(a,l,c),s=l.noHeaderId?"":' id="'+d(t)+'"',o=u-1+r.length,i=""+n+"";return b.subParser("hashBlock")(i,l,c)}),e=c.converter._dispatch("headers.after",e,l,c)}),b.subParser("horizontalRule",function(e,r,t){"use strict";e=t.converter._dispatch("horizontalRule.before",e,r,t);var a=b.subParser("hashBlock")("
",r,t);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,a)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,a)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,a),e=t.converter._dispatch("horizontalRule.after",e,r,t)}),b.subParser("images",function(e,r,p){"use strict";function l(e,r,t,a,n,s,o,i){var l=p.gUrls,c=p.gTitles,u=p.gDimensions;if(t=t.toLowerCase(),i=i||"",-1? ?(['"].*['"])?\)$/m))a="";else if(""===a||null===a){if(""!==t&&null!==t||(t=r.toLowerCase().replace(/ ?\n/g," ")),a="#"+t,b.helper.isUndefined(l[t]))return e;a=l[t],b.helper.isUndefined(c[t])||(i=c[t]),b.helper.isUndefined(u[t])||(n=u[t].width,s=u[t].height)}r=r.replace(/"/g,""").replace(b.helper.regexes.asteriskDashAndColon,b.helper.escapeCharactersCallback);var d=''+r+'"}return e=(e=(e=(e=(e=(e=p.converter._dispatch("images.before",e,r,p)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,l)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,function(e,r,t,a,n,s,o,i){return l(e,r,t,a=a.replace(/\s/g,""),n,s,o,i)})).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,l)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,l)).replace(/!\[([^\[\]]+)]()()()()()/g,l),e=p.converter._dispatch("images.after",e,r,p)}),b.subParser("italicsAndBold",function(e,r,t){"use strict";function a(e,r,t){return r+e+t}return e=t.converter._dispatch("italicsAndBold.before",e,r,t),e=r.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,function(e,r){return a(r,"","")})).replace(/\b__(\S[\s\S]*?)__\b/g,function(e,r){return a(r,"","")})).replace(/\b_(\S[\s\S]*?)_\b/g,function(e,r){return a(r,"","")}):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,r){return/\S$/.test(r)?a(r,"",""):e})).replace(/__(\S[\s\S]*?)__/g,function(e,r){return/\S$/.test(r)?a(r,"",""):e})).replace(/_([^\s_][\s\S]*?)_/g,function(e,r){return/\S$/.test(r)?a(r,"",""):e}),e=r.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(e,r,t){return a(t,r+"","")})).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(e,r,t){return a(t,r+"","")})).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(e,r,t){return a(t,r+"","")}):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(e,r){return/\S$/.test(r)?a(r,"",""):e})).replace(/\*\*(\S[\s\S]*?)\*\*/g,function(e,r){return/\S$/.test(r)?a(r,"",""):e})).replace(/\*([^\s*][\s\S]*?)\*/g,function(e,r){return/\S$/.test(r)?a(r,"",""):e}),e=t.converter._dispatch("italicsAndBold.after",e,r,t)}),b.subParser("lists",function(e,d,u){"use strict";function p(e,r){u.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var t=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,c=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return d.disableForced4SpacesIndentedSublists&&(t=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(t,function(e,r,t,a,n,s,o){o=o&&""!==o.trim();var i=b.subParser("outdent")(n,d,u),l="";return s&&d.tasklists&&(l=' class="task-list-item" style="list-style-type: none;"',i=i.replace(/^[ \t]*\[(x|X| )?]/m,function(){var e='"+(i=(i=r||-1\n"})).replace(/¨0/g,""),u.gListLevel--,r&&(e=e.replace(/\s+$/,"")),e}function h(e,r){if("ol"===r){var t=e.match(/^ *(\d+)\./);if(t&&"1"!==t[1])return' start="'+t[1]+'"'}return""}function n(n,s,o){var i=d.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,l=d.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===s?i:l,u="";if(-1!==n.search(c))!function e(r){var t=r.search(c),a=h(n,s);-1!==t?(u+="\n\n<"+s+a+">\n"+p(r.slice(0,t),!!o)+"\n",c="ul"===(s="ul"===s?"ol":"ul")?i:l,e(r.slice(t))):u+="\n\n<"+s+a+">\n"+p(r,!!o)+"\n"}(n);else{var e=h(n,s);u="\n\n<"+s+e+">\n"+p(n,!!o)+"\n"}return u}return e=u.converter._dispatch("lists.before",e,d,u),e+="¨0",e=(e=u.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,r,t){return n(r,-1"),i+="

",n.push(i))}for(s=n.length,o=0;o]*>\s*]*>/.test(c)&&(u=!0)}n[o]=c}return e=(e=(e=n.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.converter._dispatch("paragraphs.after",e,r,t)}),b.subParser("runExtension",function(e,r,t,a){"use strict";if(e.filter)r=e.filter(r,a.converter,t);else if(e.regex){var n=e.regex;n instanceof RegExp||(n=new RegExp(n,"g")),r=r.replace(n,e.replace)}return r}),b.subParser("spanGamut",function(e,r,t){"use strict";return e=t.converter._dispatch("spanGamut.before",e,r,t),e=b.subParser("codeSpans")(e,r,t),e=b.subParser("escapeSpecialCharsWithinTagAttributes")(e,r,t),e=b.subParser("encodeBackslashEscapes")(e,r,t),e=b.subParser("images")(e,r,t),e=b.subParser("anchors")(e,r,t),e=b.subParser("autoLinks")(e,r,t),e=b.subParser("simplifiedAutoLinks")(e,r,t),e=b.subParser("emoji")(e,r,t),e=b.subParser("underline")(e,r,t),e=b.subParser("italicsAndBold")(e,r,t),e=b.subParser("strikethrough")(e,r,t),e=b.subParser("ellipsis")(e,r,t),e=b.subParser("hashHTMLSpans")(e,r,t),e=b.subParser("encodeAmpsAndAngles")(e,r,t),r.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),e=t.converter._dispatch("spanGamut.after",e,r,t)}),b.subParser("strikethrough",function(e,a,n){"use strict";return a.strikethrough&&(e=(e=n.converter._dispatch("strikethrough.before",e,a,n)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(e,r){return t=r,a.simplifiedAutoLink&&(t=b.subParser("simplifiedAutoLinks")(t,a,n)),""+t+"";var t}),e=n.converter._dispatch("strikethrough.after",e,a,n)),e}),b.subParser("stripLinkDefinitions",function(e,i,l){"use strict";function r(e,r,t,a,n,s,o){return r=r.toLowerCase(),t.match(/^data:.+?\/.+?;base64,/)?l.gUrls[r]=t.replace(/\s/g,""):l.gUrls[r]=b.subParser("encodeAmpsAndAngles")(t,i,l),s?s+o:(o&&(l.gTitles[r]=o.replace(/"|'/g,""")),i.parseImgDimensions&&a&&n&&(l.gDimensions[r]={width:a,height:n}),"")}return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,r)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,r)).replace(/¨0/,"")}),b.subParser("tables",function(e,m,f){"use strict";if(!m.tables)return e;function r(e){var r,t=e.split("\n");for(r=0;r"+(n=b.subParser("spanGamut")(n,m,f))+"\n"));for(r=0;r"+b.subParser("spanGamut")(i,m,f)+"\n"));h.push(_)}return function(e,r){for(var t="
").addClass("cw").text("#"));e.isBefore(this._viewDate.clone().endOf("w"));)t.append(E("").addClass("dow").text(e.format("dd"))),e.add(1,"d");this.widget.find(".datepicker-days thead").append(t)},P.prototype._fillMonths=function(){for(var t=[],e=this._viewDate.clone().startOf("y").startOf("d");e.isSame(this._viewDate,"y");)t.push(E("").attr("data-action","selectMonth").addClass("month").text(e.format("MMM"))),e.add(1,"M");this.widget.find(".datepicker-months td").empty().append(t)},P.prototype._updateMonths=function(){var t=this.widget.find(".datepicker-months"),e=t.find("th"),i=t.find("tbody").find("span"),s=this;e.eq(0).find("span").attr("title",this._options.tooltips.prevYear),e.eq(1).attr("title",this._options.tooltips.selectYear),e.eq(2).find("span").attr("title",this._options.tooltips.nextYear),t.find(".disabled").removeClass("disabled"),this._isValid(this._viewDate.clone().subtract(1,"y"),"y")||e.eq(0).addClass("disabled"),e.eq(1).text(this._viewDate.year()),this._isValid(this._viewDate.clone().add(1,"y"),"y")||e.eq(2).addClass("disabled"),i.removeClass("active"),this._getLastPickedDate().isSame(this._viewDate,"y")&&!this.unset&&i.eq(this._getLastPickedDate().month()).addClass("active"),i.each(function(t){s._isValid(s._viewDate.clone().month(t),"M")||E(this).addClass("disabled")})},P.prototype._getStartEndYear=function(t,e){var i=t/10,s=Math.floor(e/t)*t;return[s,s+9*i,Math.floor(e/i)*i]},P.prototype._updateYears=function(){var t=this.widget.find(".datepicker-years"),e=t.find("th"),i=this._getStartEndYear(10,this._viewDate.year()),s=this._viewDate.clone().year(i[0]),o=this._viewDate.clone().year(i[1]),a="";for(e.eq(0).find("span").attr("title",this._options.tooltips.prevDecade),e.eq(1).attr("title",this._options.tooltips.selectDecade),e.eq(2).find("span").attr("title",this._options.tooltips.nextDecade),t.find(".disabled").removeClass("disabled"),this._options.minDate&&this._options.minDate.isAfter(s,"y")&&e.eq(0).addClass("disabled"),e.eq(1).text(s.year()+"-"+o.year()),this._options.maxDate&&this._options.maxDate.isBefore(o,"y")&&e.eq(2).addClass("disabled"),a+=''+(s.year()-1)+"";!s.isAfter(o,"y");)a+=''+s.year()+"",s.add(1,"y");a+=''+s.year()+"",t.find("td").html(a)},P.prototype._updateDecades=function(){var t=this.widget.find(".datepicker-decades"),e=t.find("th"),i=this._getStartEndYear(100,this._viewDate.year()),s=this._viewDate.clone().year(i[0]),o=this._viewDate.clone().year(i[1]),a=!1,n=!1,r=void 0,d="";for(e.eq(0).find("span").attr("title",this._options.tooltips.prevCentury),e.eq(2).find("span").attr("title",this._options.tooltips.nextCentury),t.find(".disabled").removeClass("disabled"),(0===s.year()||this._options.minDate&&this._options.minDate.isAfter(s,"y"))&&e.eq(0).addClass("disabled"),e.eq(1).text(s.year()+"-"+o.year()),this._options.maxDate&&this._options.maxDate.isBefore(o,"y")&&e.eq(2).addClass("disabled"),s.year()-10<0?d+=" ":d+=''+(s.year()-10)+"";!s.isAfter(o,"y");)r=s.year()+11,a=this._options.minDate&&this._options.minDate.isAfter(s,"y")&&this._options.minDate.year()<=r,n=this._options.maxDate&&this._options.maxDate.isAfter(s,"y")&&this._options.maxDate.year()<=r,d+=''+s.year()+"",s.add(10,"y");d+=''+s.year()+"",t.find("td").html(d)},P.prototype._fillDate=function(){var t=this.widget.find(".datepicker-days"),e=t.find("th"),i=[],s=void 0,o=void 0,a=void 0,n=void 0;if(this._hasDate()){for(e.eq(0).find("span").attr("title",this._options.tooltips.prevMonth),e.eq(1).attr("title",this._options.tooltips.selectMonth),e.eq(2).find("span").attr("title",this._options.tooltips.nextMonth),t.find(".disabled").removeClass("disabled"),e.eq(1).text(this._viewDate.format(this._options.dayViewHeaderFormat)),this._isValid(this._viewDate.clone().subtract(1,"M"),"M")||e.eq(0).addClass("disabled"),this._isValid(this._viewDate.clone().add(1,"M"),"M")||e.eq(2).addClass("disabled"),s=this._viewDate.clone().startOf("M").startOf("w").startOf("d"),n=0;n<42;n++){if(0===s.weekday()&&(o=E("
'+s.week()+"'+s.date()+"
'+e.format(this.use24Hours?"HH":"hh")+"
'+e.format("mm")+"
'+e.format("ss")+"
\n\n\n",a=e.length,n=0;n\n\n\n",n=0;n\n";for(var s=0;s\n"}return t+="\n
\n"}(d,h)}return e=(e=(e=(e=f.converter._dispatch("tables.before",e,m,f)).replace(/\\(\|)/g,b.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,r)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,r),e=f.converter._dispatch("tables.after",e,m,f)}),b.subParser("underline",function(e,r,t){"use strict";return r.underline?(e=t.converter._dispatch("underline.before",e,r,t),e=(e=r.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,function(e,r){return""+r+""})).replace(/\b__(\S[\s\S]*?)__\b/g,function(e,r){return""+r+""}):(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,r){return/\S$/.test(r)?""+r+"":e})).replace(/__(\S[\s\S]*?)__/g,function(e,r){return/\S$/.test(r)?""+r+"":e})).replace(/(_)/g,b.helper.escapeCharactersCallback),e=t.converter._dispatch("underline.after",e,r,t)):e}),b.subParser("unescapeSpecialChars",function(e,r,t){"use strict";return e=(e=t.converter._dispatch("unescapeSpecialChars.before",e,r,t)).replace(/¨E(\d+)E/g,function(e,r){var t=parseInt(r);return String.fromCharCode(t)}),e=t.converter._dispatch("unescapeSpecialChars.after",e,r,t)}),b.subParser("makeMarkdown.blockquote",function(e,r){"use strict";var t="";if(e.hasChildNodes())for(var a=e.childNodes,n=a.length,s=0;s ")}),b.subParser("makeMarkdown.codeBlock",function(e,r){"use strict";var t=e.getAttribute("language"),a=e.getAttribute("precodenum");return"```"+t+"\n"+r.preList[a]+"\n```"}),b.subParser("makeMarkdown.codeSpan",function(e){"use strict";return"`"+e.innerHTML+"`"}),b.subParser("makeMarkdown.emphasis",function(e,r){"use strict";var t="";if(e.hasChildNodes()){t+="*";for(var a=e.childNodes,n=a.length,s=0;s",e.hasAttribute("width")&&e.hasAttribute("height")&&(r+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"),r}),b.subParser("makeMarkdown.links",function(e,r){"use strict";var t="";if(e.hasChildNodes()&&e.hasAttribute("href")){var a=e.childNodes,n=a.length;t="[";for(var s=0;s",e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"}return t}),b.subParser("makeMarkdown.list",function(e,r,t){"use strict";var a="";if(!e.hasChildNodes())return"";for(var n=e.childNodes,s=n.length,o=e.getAttribute("start")||1,i=0;i"+r.preList[t]+""}),b.subParser("makeMarkdown.strikethrough",function(e,r){"use strict";var t="";if(e.hasChildNodes()){t+="~~";for(var a=e.childNodes,n=a.length,s=0;str>th"),i=e.querySelectorAll("tbody>tr");for(t=0;t/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")});"function"==typeof define&&define.amd?define(function(){"use strict";return b}):"undefined"!=typeof module&&module.exports?module.exports=b:this.showdown=b}).call(this); !function(i){var u=i.Markdown=function(e){switch(typeof e){case"undefined":this.dialect=u.dialects.Gruber;break;case"object":this.dialect=e;break;default:if(!(e in u.dialects))throw new Error("Unknown Markdown dialect '"+String(e)+"'");this.dialect=u.dialects[e]}this.em_state=[],this.strong_state=[],this.debug_indent=""};function l(){return"Markdown.mk_block( "+uneval(this.toString())+", "+uneval(this.trailing)+", "+uneval(this.lineNumber)+" )"}function s(){var e=require("util");return"Markdown.mk_block( "+e.inspect(this.toString())+", "+e.inspect(this.trailing)+", "+e.inspect(this.lineNumber)+" )"}i.parse=function(e,t){return new u(t).toTree(e)},i.toHTML=function(e,t,n){var r=i.toHTMLTree(e,t,n);return i.renderJsonML(r)},i.toHTMLTree=function(e,t,n){"string"==typeof e&&(e=this.parse(e,t));var r=v(e),i={};r&&r.references&&(i=r.references);var l=function e(t,n,r){var i;r=r||{};var l=t.slice(0);"function"==typeof r.preprocessTreeNode&&(l=r.preprocessTreeNode(l,n));var s=v(l);if(s){for(i in l[1]={},s)l[1][i]=s[i];s=l[1]}if("string"==typeof l)return l;switch(l[0]){case"header":l[0]="h"+l[1].level,delete l[1].level;break;case"bulletlist":l[0]="ul";break;case"numberlist":l[0]="ol";break;case"listitem":l[0]="li";break;case"para":l[0]="p";break;case"markdown":l[0]="html",s&&delete s.references;break;case"code_block":l[0]="pre",i=s?2:1;var a=["code"];a.push.apply(a,l.splice(i,l.length-i)),l[i]=a;break;case"inlinecode":l[0]="code";break;case"img":l[1].src=l[1].href,delete l[1].href;break;case"linebreak":l[0]="br";break;case"link":l[0]="a";break;case"link_ref":l[0]="a";var c=n[s.ref];if(!c)return s.original;delete s.ref,s.href=c.href,c.title&&(s.title=c.title),delete s.original;break;case"img_ref":l[0]="img";var c=n[s.ref];if(!c)return s.original;delete s.ref,s.src=c.href,c.title&&(s.title=c.title),delete s.original}i=1;if(s){for(var o in l[1]){i=2;break}1===i&&l.splice(i,1)}for(;is.length)a=y(n),r.push(a),r=a[1]=["listitem"];else{var d=!1;for(i=0;in[0].length&&(u+=p+g.substr(n[0].length))}u.length&&(S(r,c,this.processInline(u),p),c=!1,u="");var b=A(s.length,t);0/m)){var n=[];if(">"!=e[0]){for(var r=e.split(/\n/),i=[],l=e.lineNumber;r.length&&">"!=r[0][0];)i.push(r.shift()),l++;var s=f(i.join("\n"),"\n",e.lineNumber);n.push.apply(n,this.processBlock(s,[])),e=f(r.join("\n"),e.trailing,l)}for(;t.length&&">"==t[0][0];){var a=t.shift();e=f(e+e.trailing+a,a.trailing,e.lineNumber)}var c=e.replace(/^> ?/gm,""),o=(this.tree,this.toTree(c,["blockquote"])),h=v(o);return h&&h.references&&(delete h.references,g(h)&&o.splice(1,1)),n.push(o),n}},referenceDefn:function(e,t){var n=/^\s*\[(.*?)\]:\s*(\S+)(?:\s+(?:(['"])(.*?)\3|\((.*?)\)))?\n?/;if(e.match(n)){v(this.tree)||this.tree.splice(1,0,{});var r=v(this.tree);void 0===r.references&&(r.references={});var i=this.loop_re_over_block(n,e,function(e){e[2]&&"<"==e[2][0]&&">"==e[2][e[2].length-1]&&(e[2]=e[2].substring(1,e[2].length-1));var t=r.references[e[1].toLowerCase()]={href:e[2]};void 0!==e[4]?t.title=e[4]:void 0!==e[5]&&(t.title=e[5])});return i.length&&t.unshift(f(i,e.trailing)),[]}},para:function(e){return[["para"].concat(this.processInline(e))]}}},u.dialects.Gruber.inline={__oneElement__:function(e,t,n){var r,i;return t=t||this.dialect.inline.__patterns__,(r=new RegExp("([\\s\\S]*?)("+(t.source||t)+")").exec(e))?r[1]?[r[1].length,r[1]]:(r[2]in this.dialect.inline&&(i=this.dialect.inline[r[2]].call(this,e.substr(r.index),r,n||[])),i=i||[r[2].length,r[2]]):[e.length,e]},__call__:function(e,t){var n,r=[];function i(e){"string"==typeof e&&"string"==typeof r[r.length-1]?r[r.length-1]+=e:r.push(e)}for(;0"==t[2][t[2].length-1]&&(t[2]=t[2].substring(1,t[2].length-1)),t[2]=this.dialect.inline.__call__.call(this,t[2],/\\/)[0];var n={alt:t[1],href:t[2]||""};return void 0!==t[4]&&(n.title=t[4]),[t[0].length,["img",n]]}return(t=e.match(/^!\[(.*?)\][ \t]*\[(.*?)\]/))?[t[0].length,["img_ref",{alt:t[1],ref:t[2].toLowerCase(),original:t[0]}]]:[2,"!["]},"[":function(e){var t=String(e),n=u.DialectHelpers.inline_until_char.call(this,e.substr(1),"]");if(!n)return[1,"["];var r,i,l=1+n[0],s=n[1],a=(e=e.substr(l)).match(/^\s*\([ \t]*([^"']*)(?:[ \t]+(["'])(.*?)\2)?[ \t]*\)/);if(a){var c=a[1];if(l+=a[0].length,c&&"<"==c[0]&&">"==c[c.length-1]&&(c=c.substring(1,c.length-1)),!a[3])for(var o=1,h=0;h]+)|(.*?@.*?\.[a-zA-Z]+))>/))?t[3]?[t[0].length,["link",{href:"mailto:"+t[3]},t[3]]]:"mailto"==t[2]?[t[0].length,["link",{href:t[1]},t[1].substr("mailto:".length)]]:[t[0].length,["link",{href:t[1]},t[1]]]:[1,"<"]},"`":function(e){var t=e.match(/(`+)(([\s\S]*?)\1)/);return t&&t[2]?[t[1].length+t[2].length,["inlinecode",t[3]]]:[1,"`"]}," \n":function(){return[3,["linebreak"]]}},u.dialects.Gruber.inline["**"]=e("strong","**"),u.dialects.Gruber.inline.__=e("strong","__"),u.dialects.Gruber.inline["*"]=e("em","*"),u.dialects.Gruber.inline._=e("em","_"),u.buildBlockOrder=function(e){var t=[];for(var n in e)"__order__"!=n&&"__call__"!=n&&t.push(n);e.__order__=t},u.buildInlinePatterns=function(e){var n=[];for(var t in e)if(!t.match(/^__.*__$/)){var r=t.replace(/([\\.*+?|()\[\]{}])/g,"\\$1").replace(/\n/,"\\n");n.push(1==t.length?r:"(?:"+r+")")}n=n.join("|"),e.__patterns__=n;var i=e.__call__;e.__call__=function(e,t){return null!=t?i.call(this,e,t):i.call(this,e,n)}},u.DialectHelpers={},u.DialectHelpers.inline_until_char=function(e,t){for(var n=0,r=[];;){if(e.charAt(n)==t)return[++n,r];if(n>=e.length)return null;var i=this.dialect.inline.__oneElement__.call(this,e.substr(n));n+=i[0],r.push.apply(r,i.slice(1))}},u.subclassDialect=function(e){function t(){}function n(){}return t.prototype=e.block,n.prototype=e.inline,{block:new t,inline:new n}},u.buildBlockOrder(u.dialects.Gruber.block),u.buildInlinePatterns(u.dialects.Gruber.inline),u.dialects.Maruku=u.subclassDialect(u.dialects.Gruber),u.dialects.Maruku.processMetaHash=function(e){for(var t=function(e){var t=e.split(""),n=[""],r=!1;for(;t.length;){var i=t.shift();switch(i){case" ":r?n[n.length-1]+=i:n.push("");break;case"'":case'"':r=!r;break;case"\\":i=t.shift();default:n[n.length-1]+=i}}return n}(e),n={},r=0;r/g,">").replace(/"/g,""").replace(/'/g,"'")}function _(e){if("string"==typeof e)return h(e);var t=e.shift(),n={},r=[];for(!e.length||"object"!=typeof e[0]||e[0]instanceof Array||(n=e.shift());e.length;)r.push(_(e.shift()));var i="";for(var l in n)i+=" "+l+'="'+h(n[l])+'"';return"img"==t||"br"==t||"hr"==t?"<"+t+i+"/>":"<"+t+i+">"+r.join("")+""}i.renderJsonML=function(e,t){(t=t||{}).root=t.root||!1;var n=[];if(t.root)n.push(_(e));else for(e.shift(),!e.length||"object"!=typeof e[0]||e[0]instanceof Array||e.shift();e.length;)n.push(_(e.shift()));return n.join("\n\n")}}("undefined"==typeof exports?(window.markdown={},window.markdown):exports); !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).toMarkdown=e()}}(function(){return function i(a,c,l){function u(t,e){if(!c[t]){if(!a[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(f)return f(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var o=c[t]={exports:{}};a[t][0].call(o.exports,function(e){var n=a[t][1][e];return u(n||e)},o,o.exports,i,a,c,l)}return c[t].exports}for(var f="function"==typeof require&&require,e=0;e<",">"+n+"<")},n.exports=a},{"./lib/gfm-converters":2,"./lib/html-parser":3,"./lib/md-converters":4,"collapse-whitespace":7}],2:[function(e,n,t){"use strict";function c(e,n){var t=" ";return 0===Array.prototype.indexOf.call(n.parentNode.childNodes,n)&&(t="| "),t+e+" |"}var r=/highlight highlight-(\S+)/;n.exports=[{filter:"br",replacement:function(){return"\n"}},{filter:["del","s","strike"],replacement:function(e){return"~~"+e+"~~"}},{filter:function(e){return"checkbox"===e.type&&"LI"===e.parentNode.nodeName},replacement:function(e,n){return(n.checked?"[x]":"[ ]")+" "}},{filter:["th","td"],replacement:function(e,n){return c(e,n)}},{filter:"tr",replacement:function(e,n){var t="",r={left:":--",right:"--:",center:":-:"};if("THEAD"===n.parentNode.nodeName)for(var o=0;o "))+"\n\n"}},{filter:"li",replacement:function(e,n){e=e.replace(/^\s+/,"").replace(/\n/gm,"\n ");var t=n.parentNode,r=Array.prototype.indexOf.call(t.children,n)+1;return(/ol/i.test(t.nodeName)?r+". ":"* ")+e}},{filter:["ul","ol"],replacement:function(e,n){for(var t=[],r=0;r",{class:"btn-group"});for(l=0;l")).text(" "+this.__localize(m)).addClass("btn-default btn-sm").addClass(v),v.match(/btn\-(primary|success|info|warning|danger|link)/)&&d.removeClass("btn-default"),d.attr({type:"button",title:this.__localize(f.title)+x,tabindex:b,"data-provider":i,"data-handler":p,"data-hotkey":y}),!0===f.toggle&&d.attr("data-toggle","button"),(u=k("")).addClass(g),u.prependTo(d),h.append(d),a.push(p),s.push(f.callback)}e.append(h)}}return e},__setListener:function(){var t=void 0!==this.$textarea.attr("rows"),e=5",{class:"md-editor",click:function(){e.focus()}});if(null===this.$editor){var c=k("
",{class:"md-header btn-toolbar"}),h=[];if(0r.reorderButtonGroups.indexOf(e.name)?1:0})),0
').on("click",".md-control-fullscreen",function(t){t.preventDefault(),e.setFullscreen(!0)}),l.append(c),i.is("textarea"))i.before(l),(n=i).addClass("md-input"),l.append(n);else{var d="function"==typeof toMarkdown?toMarkdown(i.html()):i.html(),u=k.trim(d);n=k("