/*! jQuery v3.1.1 | (c) jQuery Foundation | jquery.org/license */
;!function(d,c){"object"==typeof module&&"object"==typeof module.exports?module.exports=d.document?c(d,!0):function(b){if(!b.document){throw new Error("jQuery requires a window with a document")}return c(b)}:c(d)}("undefined"!=typeof window?window:this,function(bP,bO){var bN=[],bM=bP.document,bL=Object.getPrototypeOf,bJ=bN.slice,bH=bN.concat,bG=bN.push,bF=bN.indexOf,bE={},bD=bE.toString,bC=bE.hasOwnProperty,bB=bC.toString,bA=bB.call(Object),bz={};function by(e,d){d=d||bM;var f=d.createElement("script");f.text=e,d.head.appendChild(f).parentNode.removeChild(f)}var bw="3.1.1",bv=function(d,c){return new bv.fn.init(d,c)},bu=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,bt=/^-ms-/,bs=/-([a-z])/g,br=function(d,c){return c.toUpperCase()};bv.fn=bv.prototype={jquery:bw,constructor:bv,length:0,toArray:function(){return bJ.call(this)},get:function(b){return null==b?bJ.call(this):b<0?this[b+this.length]:this[b]},pushStack:function(d){var c=bv.merge(this.constructor(),d);return c.prevObject=this,c},each:function(b){return bv.each(this,b)},map:function(b){return this.pushStack(bv.map(this,function(a,d){return b.call(a,d,a)}))},slice:function(){return this.pushStack(bJ.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var d=this.length,f=+e+(e<0?d:0);return this.pushStack(f>=0&&f<d?[this[f]]:[])},end:function(){return this.prevObject||this.constructor()},push:bG,sort:bN.sort,splice:bN.splice},bv.extend=bv.fn.extend=function(){var t,s,r,q,p,o,n=arguments[0]||{},m=1,l=arguments.length,k=!1;for("boolean"==typeof n&&(k=n,n=arguments[m]||{},m++),"object"==typeof n||bv.isFunction(n)||(n={}),m===l&&(n=this,m--);m<l;m++){if(null!=(t=arguments[m])){for(s in t){r=n[s],q=t[s],n!==q&&(k&&q&&(bv.isPlainObject(q)||(p=bv.isArray(q)))?(p?(p=!1,o=r&&bv.isArray(r)?r:[]):o=r&&bv.isPlainObject(r)?r:{},n[s]=bv.extend(k,o,q)):void 0!==q&&(n[s]=q))}}}return n},bv.extend({expando:"jQuery"+(bw+Math.random()).replace(/\D/g,""),isReady:!0,error:function(b){throw new Error(b)},noop:function(){},isFunction:function(b){return"function"===bv.type(b)},isArray:Array.isArray,isWindow:function(b){return null!=b&&b===b.window},isNumeric:function(d){var c=bv.type(d);return("number"===c||"string"===c)&&!isNaN(d-parseFloat(d))},isPlainObject:function(e){var d,f;return !(!e||"[object Object]"!==bD.call(e))&&(!(d=bL(e))||(f=bC.call(d,"constructor")&&d.constructor,"function"==typeof f&&bB.call(f)===bA))},isEmptyObject:function(d){var c;for(c in d){return !1}return !0},type:function(b){return null==b?b+"":"object"==typeof b||"function"==typeof b?bE[bD.call(b)]||"object":typeof b},globalEval:function(b){by(b)},camelCase:function(b){return b.replace(bt,"ms-").replace(bs,br)},nodeName:function(d,c){return d.nodeName&&d.nodeName.toLowerCase()===c.toLowerCase()},each:function(f,e){var h,g=0;if(bq(f)){for(h=f.length;g<h;g++){if(e.call(f[g],g,f[g])===!1){break}}}else{for(g in f){if(e.call(f[g],g,f[g])===!1){break}}}return f},trim:function(b){return null==b?"":(b+"").replace(bu,"")},makeArray:function(e,d){var f=d||[];return null!=e&&(bq(Object(e))?bv.merge(f,"string"==typeof e?[e]:e):bG.call(f,e)),f},inArray:function(e,d,f){return null==d?-1:bF.call(d,e,f)},merge:function(g,f){for(var j=+f.length,i=0,h=g.length;i<j;i++){g[h++]=f[i]}return g.length=h,g},grep:function(j,i,p){for(var o,n=[],m=0,l=j.length,k=!p;m<l;m++){o=!i(j[m],m),o!==k&&n.push(j[m])}return n},map:function(i,g,n){var m,l,k=0,j=[];if(bq(i)){for(m=i.length;k<m;k++){l=g(i[k],k,n),null!=l&&j.push(l)}}else{for(k in i){l=g(i[k],k,n),null!=l&&j.push(l)}}return bH.apply([],j)},guid:1,proxy:function(g,f){var j,i,h;if("string"==typeof f&&(j=g[f],f=g,g=j),bv.isFunction(g)){return i=bJ.call(arguments,2),h=function(){return g.apply(f||this,i.concat(bJ.call(arguments)))},h.guid=g.guid=g.guid||bv.guid++,h}},now:Date.now,support:bz}),"function"==typeof Symbol&&(bv.fn[Symbol.iterator]=bN[Symbol.iterator]),bv.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(d,c){bE["[object "+c+"]"]=c.toLowerCase()});function bq(e){var d=!!e&&"length" in e&&e.length,f=bv.type(e);return"function"!==f&&!bv.isWindow(e)&&("array"===f||0===d||"number"==typeof d&&d>0&&d-1 in e)}var bp=function(dl){var dk,dj,dh,dg,df,de,dd,db,c9,c8,c7,c6,c4,c3,c2,c1,c0,cZ,cY,cX="sizzle"+1*new Date,cW=dl.document,cV=0,cU=0,cT=dH(),cS=dH(),dR=dH(),dQ=function(d,c){return d===c&&(c7=!0),0},dP={}.hasOwnProperty,dO=[],dM=dO.pop,dL=dO.push,dK=dO.push,dJ=dO.slice,dI=function(f,e){for(var h=0,g=f.length;h<g;h++){if(f[h]===e){return h}}return -1},dG="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",dF="[\\x20\\t\\r\\n\\f]",dE="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",dD="\\["+dF+"*("+dE+")(?:"+dF+"*([*^$|!~]?=)"+dF+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+dE+"))|)"+dF+"*\\]",dC=":("+dE+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+dD+")*)|.*)\\)|)",dB=new RegExp(dF+"+","g"),dz=new RegExp("^"+dF+"+|((?:^|[^\\\\])(?:\\\\.)*)"+dF+"+$","g"),dy=new RegExp("^"+dF+"*,"+dF+"*"),dx=new RegExp("^"+dF+"*([>+~]|"+dF+")"+dF+"*"),dw=new RegExp("="+dF+"*([^\\]'\"]*?)"+dF+"*\\]","g"),dv=new RegExp(dC),du=new RegExp("^"+dE+"$"),dt={ID:new RegExp("^#("+dE+")"),CLASS:new RegExp("^\\.("+dE+")"),TAG:new RegExp("^("+dE+"|[*])"),ATTR:new RegExp("^"+dD),PSEUDO:new RegExp("^"+dC),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+dF+"*(even|odd|(([+-]|)(\\d*)n|)"+dF+"*(?:([+-]|)"+dF+"*(\\d+)|))"+dF+"*\\)|)","i"),bool:new RegExp("^(?:"+dG+")$","i"),needsContext:new RegExp("^"+dF+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+dF+"*((?:-\\d)?\\d*)"+dF+"*\\)|)(?=[^-]|$)","i")},ds=/^(?:input|select|textarea|button)$/i,dr=/^h\d$/i,dq=/^[^{]+\{\s*\[native \w/,dp=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,dX=/[+~]/,dn=new RegExp("\\\\([\\da-f]{1,6}"+dF+"?|("+dF+")|.)","ig"),dU=function(f,e,h){var g="0x"+e-65536;return g!==g||h?e:g<0?String.fromCharCode(g+65536):String.fromCharCode(g>>10|55296,1023&g|56320)},dA=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,c5=function(d,c){return c?"\0"===d?"\ufffd":d.slice(0,-1)+"\\"+d.charCodeAt(d.length-1).toString(16)+" ":"\\"+d},cO=function(){c6()},bb=dS(function(b){return b.disabled===!0&&("form" in b||"label" in b)},{dir:"parentNode",next:"legend"});try{dK.apply(dO=dJ.call(cW.childNodes),cW.childNodes),dO[cW.childNodes.length].nodeType}catch(d0){dK={apply:dO.length?function(d,c){dL.apply(d,dJ.call(c))}:function(f,e){var h=f.length,g=0;while(f[h++]=e[g++]){}f.length=h-1}}}function dV(z,v,u,t){var q,p,n,m,i,g,c,B=v&&v.ownerDocument,A=v?v.nodeType:9;if(u=u||[],"string"!=typeof z||!z||1!==A&&9!==A&&11!==A){return u}if(!t&&((v?v.ownerDocument||v:cW)!==c4&&c6(v),v=v||c4,c2)){if(11!==A&&(i=dp.exec(z))){if(q=i[1]){if(9===A){if(!(n=v.getElementById(q))){return u}if(n.id===q){return u.push(n),u}}else{if(B&&(n=B.getElementById(q))&&cY(v,n)&&n.id===q){return u.push(n),u}}}else{if(i[2]){return dK.apply(u,v.getElementsByTagName(z)),u}if((q=i[3])&&dj.getElementsByClassName&&v.getElementsByClassName){return dK.apply(u,v.getElementsByClassName(q)),u}}}if(dj.qsa&&!dR[z+" "]&&(!c1||!c1.test(z))){if(1!==A){B=v,c=z}else{if("object"!==v.nodeName.toLowerCase()){(m=v.getAttribute("id"))?m=m.replace(dA,c5):v.setAttribute("id",m=cX),g=de(z),p=g.length;while(p--){g[p]="#"+m+" "+dY(g[p])}c=g.join(","),B=dX.test(z)&&cM(v.parentNode)||v}}if(c){try{return dK.apply(u,B.querySelectorAll(c)),u}catch(y){}finally{m===cX&&v.removeAttribute("id")}}}}return db(z.replace(dz,"$1"),v,u,t)}function dH(){var d=[];function c(b,a){return d.push(b+" ")>dh.cacheLength&&delete c[d.shift()],c[b+" "]=a}return c}function dc(b){return b[cX]=!0,b}function cP(e){var d=c4.createElement("fieldset");try{return !!e(d)}catch(f){return !1}finally{d.parentNode&&d.parentNode.removeChild(d),d=null}}function cb(f,d){var h=f.split("|"),g=h.length;while(g--){dh.attrHandle[h[g]]=d}}function d1(f,e){var h=e&&f,g=h&&1===f.nodeType&&1===e.nodeType&&f.sourceIndex-e.sourceIndex;if(g){return g}if(h){while(h=h.nextSibling){if(h===e){return -1}}}return f?1:-1}function dW(b){return function(a){var d=a.nodeName.toLowerCase();return"input"===d&&a.type===b}}function dN(b){return function(a){var d=a.nodeName.toLowerCase();return("input"===d||"button"===d)&&a.type===b}}function di(b){return function(a){return"form" in a?a.parentNode&&a.disabled===!1?"label" in a?"label" in a.parentNode?a.parentNode.disabled===b:a.disabled===b:a.isDisabled===b||a.isDisabled!==!b&&bb(a)===b:a.disabled===b:"label" in a&&a.disabled===b}}function cQ(b){return dc(function(a){return a=+a,dc(function(l,k){var j,i=b([],l.length,a),h=i.length;while(h--){l[j=i[h]]&&(l[j]=!(k[j]=l[j]))}})})}function cM(b){return b&&"undefined"!=typeof b.getElementsByTagName&&b}dj=dV.support={},df=dV.isXML=function(d){var c=d&&(d.ownerDocument||d).documentElement;return !!c&&"HTML"!==c.nodeName},c6=dV.setDocument=function(d){var c,h,f=d?d.ownerDocument||d:cW;return f!==c4&&9===f.nodeType&&f.documentElement?(c4=f,c3=c4.documentElement,c2=!df(c4),cW!==c4&&(h=c4.defaultView)&&h.top!==h&&(h.addEventListener?h.addEventListener("unload",cO,!1):h.attachEvent&&h.attachEvent("onunload",cO)),dj.attributes=cP(function(b){return b.className="i",!b.getAttribute("className")}),dj.getElementsByTagName=cP(function(b){return b.appendChild(c4.createComment("")),!b.getElementsByTagName("*").length}),dj.getElementsByClassName=dq.test(c4.getElementsByClassName),dj.getById=cP(function(b){return c3.appendChild(b).id=cX,!c4.getElementsByName||!c4.getElementsByName(cX).length}),dj.getById?(dh.filter.ID=function(g){var e=g.replace(dn,dU);return function(b){return b.getAttribute("id")===e}},dh.find.ID=function(g,e){if("undefined"!=typeof e.getElementById&&c2){var i=e.getElementById(g);return i?[i]:[]}}):(dh.filter.ID=function(g){var e=g.replace(dn,dU);return function(b){var i="undefined"!=typeof b.getAttributeNode&&b.getAttributeNode("id");return i&&i.value===e}},dh.find.ID=function(i,g){if("undefined"!=typeof g.getElementById&&c2){var m,l,k,j=g.getElementById(i);if(j){if(m=j.getAttributeNode("id"),m&&m.value===i){return[j]}k=g.getElementsByName(i),l=0;while(j=k[l++]){if(m=j.getAttributeNode("id"),m&&m.value===i){return[j]}}}return[]}}),dh.find.TAG=dj.getElementsByTagName?function(g,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(g):dj.qsa?e.querySelectorAll(g):void 0}:function(i,g){var m,l=[],k=0,j=g.getElementsByTagName(i);if("*"===i){while(m=j[k++]){1===m.nodeType&&l.push(m)}return l}return j},dh.find.CLASS=dj.getElementsByClassName&&function(g,e){if("undefined"!=typeof e.getElementsByClassName&&c2){return e.getElementsByClassName(g)}},c0=[],c1=[],(dj.qsa=dq.test(c4.querySelectorAll))&&(cP(function(b){c3.appendChild(b).innerHTML="<a id='"+cX+"'></a><select id='"+cX+"-\r\\' msallowcapture=''><option selected=''></option></select>",b.querySelectorAll("[msallowcapture^='']").length&&c1.push("[*^$]="+dF+"*(?:''|\"\")"),b.querySelectorAll("[selected]").length||c1.push("\\["+dF+"*(?:value|"+dG+")"),b.querySelectorAll("[id~="+cX+"-]").length||c1.push("~="),b.querySelectorAll(":checked").length||c1.push(":checked"),b.querySelectorAll("a#"+cX+"+*").length||c1.push(".#.+[+~]")}),cP(function(g){g.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=c4.createElement("input");e.setAttribute("type","hidden"),g.appendChild(e).setAttribute("name","D"),g.querySelectorAll("[name=d]").length&&c1.push("name"+dF+"*[*^$|!~]?="),2!==g.querySelectorAll(":enabled").length&&c1.push(":enabled",":disabled"),c3.appendChild(g).disabled=!0,2!==g.querySelectorAll(":disabled").length&&c1.push(":enabled",":disabled"),g.querySelectorAll("*,:x"),c1.push(",.*:")})),(dj.matchesSelector=dq.test(cZ=c3.matches||c3.webkitMatchesSelector||c3.mozMatchesSelector||c3.oMatchesSelector||c3.msMatchesSelector))&&cP(function(b){dj.disconnectedMatch=cZ.call(b,"*"),cZ.call(b,"[s!='']:x"),c0.push("!=",dC)}),c1=c1.length&&new RegExp(c1.join("|")),c0=c0.length&&new RegExp(c0.join("|")),c=dq.test(c3.compareDocumentPosition),cY=c||dq.test(c3.contains)?function(g,e){var j=9===g.nodeType?g.documentElement:g,i=e&&e.parentNode;return g===i||!(!i||1!==i.nodeType||!(j.contains?j.contains(i):g.compareDocumentPosition&&16&g.compareDocumentPosition(i)))}:function(g,e){if(e){while(e=e.parentNode){if(e===g){return !0}}}return !1},dQ=c?function(g,e){if(g===e){return c7=!0,0}var i=!g.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(g.ownerDocument||g)===(e.ownerDocument||e)?g.compareDocumentPosition(e):1,1&i||!dj.sortDetached&&e.compareDocumentPosition(g)===i?g===c4||g.ownerDocument===cW&&cY(cW,g)?-1:e===c4||e.ownerDocument===cW&&cY(cW,e)?1:c8?dI(c8,g)-dI(c8,e):0:4&i?-1:1)}:function(j,i){if(j===i){return c7=!0,0}var p,o=0,n=j.parentNode,m=i.parentNode,l=[j],k=[i];if(!n||!m){return j===c4?-1:i===c4?1:n?-1:m?1:c8?dI(c8,j)-dI(c8,i):0}if(n===m){return d1(j,i)}p=j;while(p=p.parentNode){l.unshift(p)}p=i;while(p=p.parentNode){k.unshift(p)}while(l[o]===k[o]){o++}return o?d1(l[o],k[o]):l[o]===cW?-1:k[o]===cW?1:0},c4):c4},dV.matches=function(d,c){return dV(d,null,null,c)},dV.matchesSelector=function(f,c){if((f.ownerDocument||f)!==c4&&c6(f),c=c.replace(dw,"='$1']"),dj.matchesSelector&&c2&&!dR[c+" "]&&(!c0||!c0.test(c))&&(!c1||!c1.test(c))){try{var h=cZ.call(f,c);if(h||dj.disconnectedMatch||f.document&&11!==f.document.nodeType){return h}}catch(g){}}return dV(c,c4,null,[f]).length>0},dV.contains=function(d,c){return(d.ownerDocument||d)!==c4&&c6(d),cY(d,c)},dV.attr=function(d,c){(d.ownerDocument||d)!==c4&&c6(d);var h=dh.attrHandle[c.toLowerCase()],g=h&&dP.call(dh.attrHandle,c.toLowerCase())?h(d,c,!c2):void 0;return void 0!==g?g:dj.attributes||!c2?d.getAttribute(c):(g=d.getAttributeNode(c))&&g.specified?g.value:null},dV.escape=function(b){return(b+"").replace(dA,c5)},dV.error=function(b){throw new Error("Syntax error, unrecognized expression: "+b)},dV.uniqueSort=function(g){var c,j=[],i=0,h=0;if(c7=!dj.detectDuplicates,c8=!dj.sortStable&&g.slice(0),g.sort(dQ),c7){while(c=g[h++]){c===g[h]&&(i=j.push(h))}while(i--){g.splice(j[i],1)}}return c8=null,g},dg=dV.getText=function(g){var e,j="",i=0,h=g.nodeType;if(h){if(1===h||9===h||11===h){if("string"==typeof g.textContent){return g.textContent}for(g=g.firstChild;g;g=g.nextSibling){j+=dg(g)}}else{if(3===h||4===h){return g.nodeValue}}}else{while(e=g[i++]){j+=dg(e)}}return j},dh=dV.selectors={cacheLength:50,createPseudo:dc,match:dt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(b){return b[1]=b[1].replace(dn,dU),b[3]=(b[3]||b[4]||b[5]||"").replace(dn,dU),"~="===b[2]&&(b[3]=" "+b[3]+" "),b.slice(0,4)},CHILD:function(b){return b[1]=b[1].toLowerCase(),"nth"===b[1].slice(0,3)?(b[3]||dV.error(b[0]),b[4]=+(b[4]?b[5]+(b[6]||1):2*("even"===b[3]||"odd"===b[3])),b[5]=+(b[7]+b[8]||"odd"===b[3])):b[3]&&dV.error(b[0]),b},PSEUDO:function(e){var d,f=!e[6]&&e[2];return dt.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":f&&dv.test(f)&&(d=de(f,!0))&&(d=f.indexOf(")",f.length-d)-f.length)&&(e[0]=e[0].slice(0,d),e[2]=f.slice(0,d)),e.slice(0,3))}},filter:{TAG:function(d){var c=d.replace(dn,dU).toLowerCase();return"*"===d?function(){return !0}:function(b){return b.nodeName&&b.nodeName.toLowerCase()===c}},CLASS:function(d){var c=cT[d+" "];return c||(c=new RegExp("(^|"+dF+")"+d+"("+dF+"|$)"))&&cT(d,function(b){return c.test("string"==typeof b.className&&b.className||"undefined"!=typeof b.getAttribute&&b.getAttribute("class")||"")})},ATTR:function(e,d,f){return function(b){var a=dV.attr(b,e);return null==a?"!="===d:!d||(a+="","="===d?a===f:"!="===d?a!==f:"^="===d?f&&0===a.indexOf(f):"*="===d?f&&a.indexOf(f)>-1:"$="===d?f&&a.slice(-f.length)===f:"~="===d?(" "+a.replace(dB," ")+" ").indexOf(f)>-1:"|="===d&&(a===f||a.slice(0,f.length+1)===f+"-"))}},CHILD:function(j,i,p,o,n){var m="nth"!==j.slice(0,3),l="last"!==j.slice(-4),k="of-type"===i;return 1===o&&0===n?function(b){return !!b.parentNode}:function(z,y,x){var w,v,u,h,g,f,e=m!==l?"nextSibling":"previousSibling",d=z.parentNode,a=k&&z.nodeName.toLowerCase(),B=!x&&!k,A=!1;if(d){if(m){while(e){h=z;while(h=h[e]){if(k?h.nodeName.toLowerCase()===a:1===h.nodeType){return !1}}f=e="only"===j&&!f&&"nextSibling"}return !0}if(f=[l?d.firstChild:d.lastChild],l&&B){h=d,u=h[cX]||(h[cX]={}),v=u[h.uniqueID]||(u[h.uniqueID]={}),w=v[j]||[],g=w[0]===cV&&w[1],A=g&&w[2],h=g&&d.childNodes[g];while(h=++g&&h&&h[e]||(A=g=0)||f.pop()){if(1===h.nodeType&&++A&&h===z){v[j]=[cV,g,A];break}}}else{if(B&&(h=z,u=h[cX]||(h[cX]={}),v=u[h.uniqueID]||(u[h.uniqueID]={}),w=v[j]||[],g=w[0]===cV&&w[1],A=g),A===!1){while(h=++g&&h&&h[e]||(A=g=0)||f.pop()){if((k?h.nodeName.toLowerCase()===a:1===h.nodeType)&&++A&&(B&&(u=h[cX]||(h[cX]={}),v=u[h.uniqueID]||(u[h.uniqueID]={}),v[j]=[cV,A]),h===z)){break}}}}return A-=n,A===o||A%o===0&&A/o>=0}}},PSEUDO:function(f,d){var h,g=dh.pseudos[f]||dh.setFilters[f.toLowerCase()]||dV.error("unsupported pseudo: "+f);return g[cX]?g(d):g.length>1?(h=[f,f,"",d],dh.setFilters.hasOwnProperty(f.toLowerCase())?dc(function(b,k){var j,i=g(b,d),e=i.length;while(e--){j=dI(b,i[e]),b[j]=!(k[j]=i[e])}}):function(b){return g(b,0,h)}):g}},pseudos:{not:dc(function(f){var e=[],h=[],g=dd(f.replace(dz,"$1"));return g[cX]?dc(function(i,d,n,m){var l,k=g(i,null,m,[]),j=i.length;while(j--){(l=k[j])&&(i[j]=!(d[j]=l))}}):function(b,d,c){return e[0]=b,g(e,null,c,h),e[0]=null,!h.pop()}}),has:dc(function(b){return function(a){return dV(b,a).length>0}}),contains:dc(function(b){return b=b.replace(dn,dU),function(a){return(a.textContent||a.innerText||dg(a)).indexOf(b)>-1}}),lang:dc(function(b){return du.test(b||"")||dV.error("unsupported lang: "+b),b=b.replace(dn,dU).toLowerCase(),function(a){var d;do{if(d=c2?a.lang:a.getAttribute("xml:lang")||a.getAttribute("lang")){return d=d.toLowerCase(),d===b||0===d.indexOf(b+"-")}}while((a=a.parentNode)&&1===a.nodeType);return !1}}),target:function(a){var d=dl.location&&dl.location.hash;return d&&d.slice(1)===a.id},root:function(b){return b===c3},focus:function(b){return b===c4.activeElement&&(!c4.hasFocus||c4.hasFocus())&&!!(b.type||b.href||~b.tabIndex)},enabled:di(!1),disabled:di(!0),checked:function(d){var c=d.nodeName.toLowerCase();return"input"===c&&!!d.checked||"option"===c&&!!d.selected},selected:function(b){return b.parentNode&&b.parentNode.selectedIndex,b.selected===!0},empty:function(b){for(b=b.firstChild;b;b=b.nextSibling){if(b.nodeType<6){return !1}}return !0},parent:function(b){return !dh.pseudos.empty(b)},header:function(b){return dr.test(b.nodeName)},input:function(b){return ds.test(b.nodeName)},button:function(d){var c=d.nodeName.toLowerCase();return"input"===c&&"button"===d.type||"button"===c},text:function(d){var c;return"input"===d.nodeName.toLowerCase()&&"text"===d.type&&(null==(c=d.getAttribute("type"))||"text"===c.toLowerCase())},first:cQ(function(){return[0]}),last:cQ(function(d,c){return[c-1]}),eq:cQ(function(e,d,f){return[f<0?f+d:f]}),even:cQ(function(e,d){for(var f=0;f<d;f+=2){e.push(f)}return e}),odd:cQ(function(e,d){for(var f=1;f<d;f+=2){e.push(f)}return e}),lt:cQ(function(f,e,h){for(var g=h<0?h+e:h;--g>=0;){f.push(g)}return f}),gt:cQ(function(f,e,h){for(var g=h<0?h+e:h;++g<e;){f.push(g)}return f})}},dh.pseudos.nth=dh.pseudos.eq;for(dk in {radio:!0,checkbox:!0,file:!0,password:!0,image:!0}){dh.pseudos[dk]=dW(dk)}for(dk in {submit:!0,reset:!0}){dh.pseudos[dk]=dN(dk)}function d2(){}d2.prototype=dh.filters=dh.pseudos,dh.setFilters=new d2,de=dV.tokenize=function(t,s){var r,q,p,o,n,m,l,d=cS[t+" "];if(d){return s?0:d.slice(0)}n=t,m=[],l=dh.preFilter;while(n){r&&!(q=dy.exec(n))||(q&&(n=n.slice(q[0].length)||n),m.push(p=[])),r=!1,(q=dx.exec(n))&&(r=q.shift(),p.push({value:r,type:q[0].replace(dz," ")}),n=n.slice(r.length));for(o in dh.filter){!(q=dt[o].exec(n))||l[o]&&!(q=l[o](q))||(r=q.shift(),p.push({value:r,type:o,matches:q}),n=n.slice(r.length))}if(!r){break}}return s?n.length:n?dV.error(t):cS(t,m).slice(0)};function dY(f){for(var e=0,h=f.length,g="";e<h;e++){g+=f[e].value}return g}function dS(j,i,p){var o=i.dir,n=i.next,m=n||o,l=p&&"parentNode"===m,k=cU++;return i.first?function(a,f,d){while(a=a[o]){if(1===a.nodeType||l){return j(a,f,d)}}return !1}:function(d,q,h){var g,f,e,a=[cV,k];if(h){while(d=d[o]){if((1===d.nodeType||l)&&j(d,q,h)){return !0}}}else{while(d=d[o]){if(1===d.nodeType||l){if(e=d[cX]||(d[cX]={}),f=e[d.uniqueID]||(e[d.uniqueID]={}),n&&n===d.nodeName.toLowerCase()){d=d[o]||d}else{if((g=f[m])&&g[0]===cV&&g[1]===k){return a[2]=g[2]}if(f[m]=a,a[2]=j(d,q,h)){return !0}}}}}return !1}}function dm(b){return b.length>1?function(a,h,g){var f=b.length;while(f--){if(!b[f](a,h,g)){return !1}}return !0}:b[0]}function cR(g,f,j){for(var i=0,h=f.length;i<h;i++){dV(g,f[i],j)}return j}function cN(t,s,r,q,p){for(var o,n=[],m=0,l=t.length,k=null!=s;m<l;m++){(o=t[m])&&(r&&!r(o,q,p)||(n.push(o),k&&s.push(m)))}return n}function ab(h,g,l,k,j,i){return k&&!k[cX]&&(k=ab(k)),j&&!j[cX]&&(j=ab(j,i)),dc(function(z,y,x,w){var v,u,t,s=[],e=[],d=y.length,c=z||cR(g||"*",x.nodeType?[x]:x,[]),b=!h||!z&&g?c:cN(c,s,h,x,w),a=l?j||(z?h:d||k)?[]:y:b;if(l&&l(b,a,x,w),k){v=cN(a,e),k(v,[],x,w),u=v.length;while(u--){(t=v[u])&&(a[e[u]]=!(b[e[u]]=t))}}if(z){if(j||h){if(j){v=[],u=a.length;while(u--){(t=a[u])&&v.push(b[u]=t)}j(null,a=[],v,w)}u=a.length;while(u--){(t=a[u])&&(v=j?dI(z,t):s[u])>-1&&(z[v]=!(y[v]=t))}}}else{a=cN(a===y?a.splice(d,a.length):a),j?j(null,y,a,w):dK.apply(y,a)}})}function dZ(v){for(var u,t,s,r=v.length,q=dh.relative[v[0].type],p=q||dh.relative[" "],o=q?1:0,n=dS(function(b){return b===u},p,!0),j=dS(function(b){return dI(u,b)>-1},p,!0),d=[function(b,h,g){var f=!q&&(g||h!==c9)||((u=h).nodeType?n(b,h,g):j(b,h,g));return u=null,f}];o<r;o++){if(t=dh.relative[v[o].type]){d=[dS(dm(d),t)]}else{if(t=dh.filter[v[o].type].apply(null,v[o].matches),t[cX]){for(s=++o;s<r;s++){if(dh.relative[v[s].type]){break}}return ab(o>1&&dm(d),o>1&&dY(v.slice(0,o-1).concat({value:" "===v[o-2].type?"*":""})).replace(dz,"$1"),t,o<s&&dZ(v.slice(o,s)),s<r&&dZ(v=v.slice(s)),s<r&&dY(v))}d.push(t)}}return dm(d)}function dT(g,d){var j=d.length>0,i=g.length>0,h=function(A,w,p,n,m){var e,c,b,a=0,H="0",G=A&&[],F=[],E=c9,D=A||i&&dh.find.TAG("*",m),C=cV+=null==E?1:Math.random()||0.1,B=D.length;for(m&&(c9=w===c4||w||m);H!==B&&null!=(e=D[H]);H++){if(i&&e){c=0,w||e.ownerDocument===c4||(c6(e),p=!c2);while(b=g[c++]){if(b(e,w||c4,p)){n.push(e);break}}m&&(cV=C)}j&&((e=!b&&e)&&a--,A&&G.push(e))}if(a+=H,j&&H!==a){c=0;while(b=d[c++]){b(G,F,w,p)}if(A){if(a>0){while(H--){G[H]||F[H]||(F[H]=dM.call(n))}}F=cN(F)}dK.apply(n,F),m&&!A&&F.length>0&&a+d.length>1&&dV.uniqueSort(n)}return m&&(cV=C,c9=E),G};return j?dc(h):h}return dd=dV.compile=function(h,g){var l,k=[],j=[],i=dR[h+" "];if(!i){g||(g=de(h)),l=g.length;while(l--){i=dZ(g[l]),i[cX]?k.push(i):j.push(i)}i=dR(h,dT(j,k)),i.selector=h}return i},db=dV.select=function(v,u,t,s){var r,q,p,o,h,g="function"==typeof v&&v,d=!s&&de(v=g.selector||v);if(t=t||[],1===d.length){if(q=d[0]=d[0].slice(0),q.length>2&&"ID"===(p=q[0]).type&&9===u.nodeType&&c2&&dh.relative[q[1].type]){if(u=(dh.find.ID(p.matches[0].replace(dn,dU),u)||[])[0],!u){return t}g&&(u=u.parentNode),v=v.slice(q.shift().value.length)}r=dt.needsContext.test(v)?0:q.length;while(r--){if(p=q[r],dh.relative[o=p.type]){break}if((h=dh.find[o])&&(s=h(p.matches[0].replace(dn,dU),dX.test(q[0].type)&&cM(u.parentNode)||u))){if(q.splice(r,1),v=s.length&&dY(q),!v){return dK.apply(t,s),t}break}}}return(g||dd(v,d))(s,u,!c2,t,!u||dX.test(v)&&cM(u.parentNode)||u),t},dj.sortStable=cX.split("").sort(dQ).join("")===cX,dj.detectDuplicates=!!c7,c6(),dj.sortDetached=cP(function(b){return 1&b.compareDocumentPosition(c4.createElement("fieldset"))}),cP(function(b){return b.innerHTML="<a href='#'></a>","#"===b.firstChild.getAttribute("href")})||cb("type|href|height|width",function(e,d,f){if(!f){return e.getAttribute(d,"type"===d.toLowerCase()?1:2)}}),dj.attributes&&cP(function(b){return b.innerHTML="<input/>",b.firstChild.setAttribute("value",""),""===b.firstChild.getAttribute("value")})||cb("value",function(e,d,f){if(!f&&"input"===e.nodeName.toLowerCase()){return e.defaultValue}}),cP(function(b){return null==b.getAttribute("disabled")})||cb(dG,function(f,e,h){var g;if(!h){return f[e]===!0?e.toLowerCase():(g=f.getAttributeNode(e))&&g.specified?g.value:null}}),dV}(bP);bv.find=bp,bv.expr=bp.selectors,bv.expr[":"]=bv.expr.pseudos,bv.uniqueSort=bv.unique=bp.uniqueSort,bv.text=bp.getText,bv.isXMLDoc=bp.isXML,bv.contains=bp.contains,bv.escapeSelector=bp.escape;var bo=function(g,f,j){var i=[],h=void 0!==j;while((g=g[f])&&9!==g.nodeType){if(1===g.nodeType){if(h&&bv(g).is(j)){break}i.push(g)}}return i},bm=function(e,d){for(var f=[];e;e=e.nextSibling){1===e.nodeType&&e!==d&&f.push(e)}return f},cp=bv.expr.match.needsContext,co=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,cn=/^.[^:#\[\.,]*$/;function cm(e,d,f){return bv.isFunction(d)?bv.grep(e,function(b,c){return !!d.call(b,c,b)!==f}):d.nodeType?bv.grep(e,function(b){return b===d!==f}):"string"!=typeof d?bv.grep(e,function(b){return bF.call(d,b)>-1!==f}):cn.test(d)?bv.filter(d,e,f):(d=bv.filter(d,e),bv.grep(e,function(b){return bF.call(d,b)>-1!==f&&1===b.nodeType}))}bv.filter=function(f,e,h){var g=e[0];return h&&(f=":not("+f+")"),1===e.length&&1===g.nodeType?bv.find.matchesSelector(g,f)?[g]:[]:bv.find.matches(f,bv.grep(e,function(b){return 1===b.nodeType}))},bv.fn.extend({find:function(g){var f,j,i=this.length,h=this;if("string"!=typeof g){return this.pushStack(bv(g).filter(function(){for(f=0;f<i;f++){if(bv.contains(h[f],this)){return !0}}}))}for(j=this.pushStack([]),f=0;f<i;f++){bv.find(g,h[f],j)}return i>1?bv.uniqueSort(j):j},filter:function(b){return this.pushStack(cm(this,b||[],!1))},not:function(b){return this.pushStack(cm(this,b||[],!0))},is:function(b){return !!cm(this,"string"==typeof b&&cp.test(b)?bv(b):b||[],!1).length}});var cl,ck=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ci=bv.fn.init=function(g,d,j){var i,h;if(!g){return this}if(j=j||cl,"string"==typeof g){if(i="<"===g[0]&&">"===g[g.length-1]&&g.length>=3?[null,g,null]:ck.exec(g),!i||!i[1]&&d){return !d||d.jquery?(d||j).find(g):this.constructor(d).find(g)}if(i[1]){if(d=d instanceof bv?d[0]:d,bv.merge(this,bv.parseHTML(i[1],d&&d.nodeType?d.ownerDocument||d:bM,!0)),co.test(i[1])&&bv.isPlainObject(d)){for(i in d){bv.isFunction(this[i])?this[i](d[i]):this.attr(i,d[i])}}return this}return h=bM.getElementById(i[2]),h&&(this[0]=h,this.length=1),this}return g.nodeType?(this[0]=g,this.length=1,this):bv.isFunction(g)?void 0!==j.ready?j.ready(g):g(bv):bv.makeArray(g,this)};ci.prototype=bv.fn,cl=bv(bM);var cg=/^(?:parents|prev(?:Until|All))/,cf={children:!0,contents:!0,next:!0,prev:!0};bv.fn.extend({has:function(e){var d=bv(e,this),f=d.length;return this.filter(function(){for(var b=0;b<f;b++){if(bv.contains(this,d[b])){return !0}}})},closest:function(i,h){var n,m=0,l=this.length,k=[],j="string"!=typeof i&&bv(i);if(!cp.test(i)){for(;m<l;m++){for(n=this[m];n&&n!==h;n=n.parentNode){if(n.nodeType<11&&(j?j.index(n)>-1:1===n.nodeType&&bv.find.matchesSelector(n,i))){k.push(n);break}}}}return this.pushStack(k.length>1?bv.uniqueSort(k):k)},index:function(b){return b?"string"==typeof b?bF.call(bv(b),this[0]):bF.call(this,b.jquery?b[0]:b):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(d,c){return this.pushStack(bv.uniqueSort(bv.merge(this.get(),bv(d,c))))},addBack:function(b){return this.add(null==b?this.prevObject:this.prevObject.filter(b))}});function ce(d,c){while((d=d[c])&&1!==d.nodeType){}return d}bv.each({parent:function(d){var c=d.parentNode;return c&&11!==c.nodeType?c:null},parents:function(b){return bo(b,"parentNode")},parentsUntil:function(e,d,f){return bo(e,"parentNode",f)},next:function(b){return ce(b,"nextSibling")},prev:function(b){return ce(b,"previousSibling")},nextAll:function(b){return bo(b,"nextSibling")},prevAll:function(b){return bo(b,"previousSibling")},nextUntil:function(e,d,f){return bo(e,"nextSibling",f)},prevUntil:function(e,d,f){return bo(e,"previousSibling",f)},siblings:function(b){return bm((b.parentNode||{}).firstChild,b)},children:function(b){return bm(b.firstChild)},contents:function(b){return b.contentDocument||bv.merge([],b.childNodes)}},function(d,c){bv.fn[d]=function(f,b){var a=bv.map(this,c,f);return"Until"!==d.slice(-5)&&(b=f),b&&"string"==typeof b&&(a=bv.filter(b,a)),this.length>1&&(cf[d]||bv.uniqueSort(a),cg.test(d)&&a.reverse()),this.pushStack(a)}});var cd=/[^\x20\t\r\n\f]+/g;function cc(d){var c={};return bv.each(d.match(cd)||[],function(b,e){c[e]=!0}),c}bv.Callbacks=function(t){t="string"==typeof t?cc(t):bv.extend({},t);var s,r,q,p,o=[],n=[],m=-1,l=function(){for(p=t.once,q=s=!0;n.length;m=-1){r=n.shift();while(++m<o.length){o[m].apply(r[0],r[1])===!1&&t.stopOnFalse&&(m=o.length,r=!1)}}t.memory||(r=!1),s=!1,p&&(o=r?[]:"")},k={add:function(){return o&&(r&&!s&&(m=o.length-1,n.push(r)),function a(c){bv.each(c,function(d,e){bv.isFunction(e)?t.unique&&k.has(e)||o.push(e):e&&e.length&&"string"!==bv.type(e)&&a(e)})}(arguments),r&&!s&&l()),this},remove:function(){return bv.each(arguments,function(e,d){var f;while((f=bv.inArray(d,o,f))>-1){o.splice(f,1),f<=m&&m--}}),this},has:function(b){return b?bv.inArray(b,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return p=n=[],o=r="",this},disabled:function(){return !o},lock:function(){return p=n=[],r||s||(o=r=""),this},locked:function(){return !!p},fireWith:function(b,d){return p||(d=d||[],d=[b,d.slice?d.slice():d],n.push(d),s||l()),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return !!q}};return k};function b9(b){return b}function b8(b){throw b}function b7(f,e,h){var g;try{f&&bv.isFunction(g=f.promise)?g.call(f).done(e).fail(h):f&&bv.isFunction(g=f.then)?g.call(f,e,h):e.call(void 0,f)}catch(f){h.call(void 0,f)}}bv.extend({Deferred:function(a){var j=[["notify","progress",bv.Callbacks("memory"),bv.Callbacks("memory"),2],["resolve","done",bv.Callbacks("once memory"),bv.Callbacks("once memory"),0,"resolved"],["reject","fail",bv.Callbacks("once memory"),bv.Callbacks("once memory"),1,"rejected"]],i="pending",h={state:function(){return i},always:function(){return g.done(arguments).fail(arguments),this},"catch":function(b){return h.then(null,b)},pipe:function(){var b=arguments;return bv.Deferred(function(c){bv.each(j,function(l,k){var f=bv.isFunction(b[k[4]])&&b[k[4]];g[k[1]](function(){var d=f&&f.apply(this,arguments);d&&bv.isFunction(d.promise)?d.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[k[0]+"With"](this,f?[d]:arguments)})}),b=null}).promise()},then:function(c,n,m){var l=0;function k(f,q,p,o){return function(){var r=this,e=arguments,d=function(){var s,t;if(!(f<l)){if(s=p.apply(r,e),s===q.promise()){throw new TypeError("Thenable self-resolution")}t=s&&("object"==typeof s||"function"==typeof s)&&s.then,bv.isFunction(t)?o?t.call(s,k(l,q,b9,o),k(l,q,b8,o)):(l++,t.call(s,k(l,q,b9,o),k(l,q,b8,o),k(l,q,b9,q.notifyWith))):(p!==b9&&(r=void 0,e=[s]),(o||q.resolveWith)(r,e))}},b=o?d:function(){try{d()}catch(s){bv.Deferred.exceptionHook&&bv.Deferred.exceptionHook(s,b.stackTrace),f+1>=l&&(p!==b8&&(r=void 0,e=[s]),q.rejectWith(r,e))}};f?b():(bv.Deferred.getStackHook&&(b.stackTrace=bv.Deferred.getStackHook()),bP.setTimeout(b))}}return bv.Deferred(function(b){j[0][3].add(k(0,b,bv.isFunction(m)?m:b9,b.notifyWith)),j[1][3].add(k(0,b,bv.isFunction(c)?c:b9)),j[2][3].add(k(0,b,bv.isFunction(n)?n:b8))}).promise()},promise:function(b){return null!=b?bv.extend(b,h):h}},g={};return bv.each(j,function(d,c){var f=c[2],e=c[5];h[c[1]]=f.add,e&&f.add(function(){i=e},j[3-d][2].disable,j[0][2].lock),f.add(c[3].fire),g[c[0]]=function(){return g[c[0]+"With"](this===g?void 0:this,arguments),this},g[c[0]+"With"]=f.fireWith}),h.promise(g),a&&a.call(g,g),g},when:function(i){var f=arguments.length,n=f,m=Array(n),l=bJ.call(arguments),k=bv.Deferred(),j=function(b){return function(a){m[b]=this,l[b]=arguments.length>1?bJ.call(arguments):a,--f||k.resolveWith(m,l)}};if(f<=1&&(b7(i,k.done(j(n)).resolve,k.reject),"pending"===k.state()||bv.isFunction(l[n]&&l[n].then))){return k.then()}while(n--){b7(l[n],j(n),k.reject)}return k.promise()}});var b6=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;bv.Deferred.exceptionHook=function(a,d){bP.console&&bP.console.warn&&a&&b6.test(a.name)&&bP.console.warn("jQuery.Deferred exception: "+a.message,a.stack,d)},bv.readyException=function(a){bP.setTimeout(function(){throw a})};var b5=bv.Deferred();bv.fn.ready=function(b){return b5.then(b)["catch"](function(c){bv.readyException(c)}),this},bv.extend({isReady:!1,readyWait:1,holdReady:function(b){b?bv.readyWait++:bv.ready(!0)},ready:function(b){(b===!0?--bv.readyWait:bv.isReady)||(bv.isReady=!0,b!==!0&&--bv.readyWait>0||b5.resolveWith(bM,[bv]))}}),bv.ready.then=b5.then;function b3(){bM.removeEventListener("DOMContentLoaded",b3),bP.removeEventListener("load",b3),bv.ready()}"complete"===bM.readyState||"loading"!==bM.readyState&&!bM.documentElement.doScroll?bP.setTimeout(bv.ready):(bM.addEventListener("DOMContentLoaded",b3),bP.addEventListener("load",b3));var b2=function(t,s,r,q,p,o,n){var m=0,l=t.length,k=null==r;if("object"===bv.type(r)){p=!0;for(m in r){b2(t,s,m,r[m],!0,o,n)}}else{if(void 0!==q&&(p=!0,bv.isFunction(q)||(n=!0),k&&(n?(s.call(t,q),s=null):(k=s,s=function(e,d,f){return k.call(bv(e),f)})),s)){for(;m<l;m++){s(t[m],r,n?q:q.call(t[m],m,s(t[m],r)))}}}return p?t:k?s.call(t):l?s(t[0],r):o},b1=function(b){return 1===b.nodeType||9===b.nodeType||!+b.nodeType};function b0(){this.expando=bv.expando+b0.uid++}b0.uid=1,b0.prototype={cache:function(d){var c=d[this.expando];return c||(c={},b1(d)&&(d.nodeType?d[this.expando]=c:Object.defineProperty(d,this.expando,{value:c,configurable:!0}))),c},set:function(g,f,j){var i,h=this.cache(g);if("string"==typeof f){h[bv.camelCase(f)]=j}else{for(i in f){h[bv.camelCase(i)]=f[i]}}return h},get:function(d,c){return void 0===c?this.cache(d):d[this.expando]&&d[this.expando][bv.camelCase(c)]},access:function(e,d,f){return void 0===d||d&&"string"==typeof d&&void 0===f?this.get(e,d):(this.set(e,d,f),void 0!==f?f:d)},remove:function(f,e){var h,g=f[this.expando];if(void 0!==g){if(void 0!==e){bv.isArray(e)?e=e.map(bv.camelCase):(e=bv.camelCase(e),e=e in g?[e]:e.match(cd)||[]),h=e.length;while(h--){delete g[e[h]]}}(void 0===e||bv.isEmptyObject(g))&&(f.nodeType?f[this.expando]=void 0:delete f[this.expando])}},hasData:function(d){var c=d[this.expando];return void 0!==c&&!bv.isEmptyObject(c)}};var bZ=new b0,bY=new b0,bX=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,bW=/[A-Z]/g;function bV(b){return"true"===b||"false"!==b&&("null"===b?null:b===+b+""?+b:bX.test(b)?JSON.parse(b):b)}function cB(g,f,j){var i;if(void 0===j&&1===g.nodeType){if(i="data-"+f.replace(bW,"-$&").toLowerCase(),j=g.getAttribute(i),"string"==typeof j){try{j=bV(j)}catch(h){}bY.set(g,f,j)}else{j=void 0}}return j}bv.extend({hasData:function(b){return bY.hasData(b)||bZ.hasData(b)},data:function(e,d,f){return bY.access(e,d,f)},removeData:function(d,c){bY.remove(d,c)},_data:function(e,d,f){return bZ.access(e,d,f)},_removeData:function(d,c){bZ.remove(d,c)}}),bv.fn.extend({data:function(i,h){var n,m,l,k=this[0],j=k&&k.attributes;if(void 0===i){if(this.length&&(l=bY.get(k),1===k.nodeType&&!bZ.get(k,"hasDataAttrs"))){n=j.length;while(n--){j[n]&&(m=j[n].name,0===m.indexOf("data-")&&(m=bv.camelCase(m.slice(5)),cB(k,m,l[m])))}bZ.set(k,"hasDataAttrs",!0)}return l}return"object"==typeof i?this.each(function(){bY.set(this,i)}):b2(this,function(a){var d;if(k&&void 0===a){if(d=bY.get(k,i),void 0!==d){return d}if(d=cB(k,i),void 0!==d){return d}}else{this.each(function(){bY.set(this,i,a)})}},null,h,arguments.length>1,null,!0)},removeData:function(b){return this.each(function(){bY.remove(this,b)})}}),bv.extend({queue:function(f,e,h){var g;if(f){return e=(e||"fx")+"queue",g=bZ.get(f,e),h&&(!g||bv.isArray(h)?g=bZ.access(f,e,bv.makeArray(h)):g.push(h)),g||[]}},dequeue:function(i,h){h=h||"fx";var n=bv.queue(i,h),m=n.length,l=n.shift(),k=bv._queueHooks(i,h),j=function(){bv.dequeue(i,h)};"inprogress"===l&&(l=n.shift(),m--),l&&("fx"===h&&n.unshift("inprogress"),delete k.stop,l.call(i,j,k)),!m&&k&&k.empty.fire()},_queueHooks:function(e,d){var f=d+"queueHooks";return bZ.get(e,f)||bZ.access(e,f,{empty:bv.Callbacks("once memory").add(function(){bZ.remove(e,[d+"queue",f])})})}}),bv.fn.extend({queue:function(e,d){var f=2;return"string"!=typeof e&&(d=e,e="fx",f--),arguments.length<f?bv.queue(this[0],e):void 0===d?this:this.each(function(){var a=bv.queue(this,e,d);bv._queueHooks(this,e),"fx"===e&&"inprogress"!==a[0]&&bv.dequeue(this,e)})},dequeue:function(b){return this.each(function(){bv.dequeue(this,b)})},clearQueue:function(b){return this.queue(b||"fx",[])},promise:function(j,i){var p,o=1,n=bv.Deferred(),m=this,l=this.length,k=function(){--o||n.resolveWith(m,[m])};"string"!=typeof j&&(i=j,j=void 0),j=j||"fx";while(l--){p=bZ.get(m[l],j+"queueHooks"),p&&p.empty&&(o++,p.empty.add(k))}return k(),n.promise(i)}});var bQ=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,cA=new RegExp("^(?:([+-])=|)("+bQ+")([a-z%]*)$","i"),cj=["Top","Right","Bottom","Left"],bK=function(d,c){return d=c||d,"none"===d.style.display||""===d.style.display&&bv.contains(d.ownerDocument,d)&&"none"===bv.css(d,"display")},bi=function(i,h,n,m){var l,k,j={};for(k in h){j[k]=i.style[k],i.style[k]=h[k]}l=n.apply(i,m||[]);for(k in h){i.style[k]=j[k]}return l};function a9(v,u,t,s){var r,q=1,p=20,o=s?function(){return s.cur()}:function(){return bv.css(v,u,"")},n=o(),m=t&&t[3]||(bv.cssNumber[u]?"":"px"),l=(bv.cssNumber[u]||"px"!==m&&+n)&&cA.exec(bv.css(v,u));if(l&&l[3]!==m){m=m||l[3],t=t||[],l=+n||1;do{q=q||".5",l/=q,bv.style(v,u,l+m)}while(q!==(q=o()/n)&&1!==q&&--p)}return t&&(l=+l||+n||0,r=t[1]?l+(t[1]+1)*t[2]:+t[2],s&&(s.unit=m,s.start=l,s.end=r)),r}var a2={};function aT(g){var f,j=g.ownerDocument,i=g.nodeName,h=a2[i];return h?h:(f=j.body.appendChild(j.createElement(i)),h=bv.css(f,"display"),f.parentNode.removeChild(f),"none"===h&&(h="block"),a2[i]=h,h)}function aL(i,h){for(var n,m,l=[],k=0,j=i.length;k<j;k++){m=i[k],m.style&&(n=m.style.display,h?("none"===n&&(l[k]=bZ.get(m,"display")||null,l[k]||(m.style.display="")),""===m.style.display&&bK(m)&&(l[k]=aT(m))):"none"!==n&&(l[k]="none",bZ.set(m,"display",n)))}for(k=0;k<j;k++){null!=l[k]&&(i[k].style.display=l[k])}return i}bv.fn.extend({show:function(){return aL(this,!0)},hide:function(){return aL(this)},toggle:function(b){return"boolean"==typeof b?b?this.show():this.hide():this.each(function(){bK(this)?bv(this).show():bv(this).hide()})}});var aD=/^(?:checkbox|radio)$/i,av=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,am=/^$|\/(?:java|ecma)script/i,ad={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ad.optgroup=ad.option,ad.tbody=ad.tfoot=ad.colgroup=ad.caption=ad.thead,ad.th=ad.td;function cF(e,d){var f;return f="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(d||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(d||"*"):[],void 0===d||d&&bv.nodeName(e,d)?bv.merge([e],f):f}function cu(f,e){for(var h=0,g=f.length;h<g;h++){bZ.set(f[h],"globalEval",!e||bZ.get(e[h],"globalEval"))}}var bU=/<|&#?\w+;/;function bn(D,C,B,A,z){for(var y,x,w,v,u,t,s=C.createDocumentFragment(),r=[],q=0,p=D.length;q<p;q++){if(y=D[q],y||0===y){if("object"===bv.type(y)){bv.merge(r,y.nodeType?[y]:y)}else{if(bU.test(y)){x=x||s.appendChild(C.createElement("div")),w=(av.exec(y)||["",""])[1].toLowerCase(),v=ad[w]||ad._default,x.innerHTML=v[1]+bv.htmlPrefilter(y)+v[2],t=v[0];while(t--){x=x.lastChild}bv.merge(r,x.childNodes),x=s.firstChild,x.textContent=""}else{r.push(C.createTextNode(y))}}}}s.textContent="",q=0;while(y=r[q++]){if(A&&bv.inArray(y,A)>-1){z&&z.push(y)}else{if(u=bv.contains(y.ownerDocument,y),x=cF(s.appendChild(y),"script"),u&&cu(x),B){t=0;while(y=x[t++]){am.test(y.type||"")&&B.push(y)}}}}return s}!function(){var e=bM.createDocumentFragment(),d=e.appendChild(bM.createElement("div")),f=bM.createElement("input");f.setAttribute("type","radio"),f.setAttribute("checked","checked"),f.setAttribute("name","t"),d.appendChild(f),bz.checkClone=d.cloneNode(!0).cloneNode(!0).lastChild.checked,d.innerHTML="<textarea>x</textarea>",bz.noCloneChecked=!!d.cloneNode(!0).lastChild.defaultValue}();var bf=bM.documentElement,a6=/^key/,aX=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,aP=/^([^.]*)(?:\.(.+)|)/;function aH(){return !0}function az(){return !1}function aq(){try{return bM.activeElement}catch(b){}}function ah(j,i,p,o,n,m){var l,k;if("object"==typeof i){"string"!=typeof p&&(o=o||p,p=void 0);for(k in i){ah(j,k,p,o,i[k],m)}return j}if(null==o&&null==n?(n=p,o=p=void 0):null==n&&("string"==typeof p?(n=o,o=void 0):(n=o,o=p,p=void 0)),n===!1){n=az}else{if(!n){return j}}return 1===m&&(l=n,n=function(b){return bv().off(b),l.apply(this,arguments)},n.guid=l.guid||(l.guid=bv.guid++)),j.each(function(){bv.event.add(this,i,n,o,p)})}bv.event={global:{},add:function(H,G,F,E,D){var C,B,A,z,y,x,w,v,u,t,s,r=bZ.get(H);if(r){F.handler&&(C=F,F=C.handler,D=C.selector),D&&bv.find.matchesSelector(bf,D),F.guid||(F.guid=bv.guid++),(z=r.events)||(z=r.events={}),(B=r.handle)||(B=r.handle=function(a){return"undefined"!=typeof bv&&bv.event.triggered!==a.type?bv.event.dispatch.apply(H,arguments):void 0}),G=(G||"").match(cd)||[""],y=G.length;while(y--){A=aP.exec(G[y])||[],u=s=A[1],t=(A[2]||"").split(".").sort(),u&&(w=bv.event.special[u]||{},u=(D?w.delegateType:w.bindType)||u,w=bv.event.special[u]||{},x=bv.extend({type:u,origType:s,data:E,handler:F,guid:F.guid,selector:D,needsContext:D&&bv.expr.match.needsContext.test(D),namespace:t.join(".")},C),(v=z[u])||(v=z[u]=[],v.delegateCount=0,w.setup&&w.setup.call(H,E,t,B)!==!1||H.addEventListener&&H.addEventListener(u,B)),w.add&&(w.add.call(H,x),x.handler.guid||(x.handler.guid=F.guid)),D?v.splice(v.delegateCount++,0,x):v.push(x),bv.event.global[u]=!0)}}},remove:function(H,G,F,E,D){var C,B,A,z,y,x,w,v,u,t,s,r=bZ.hasData(H)&&bZ.get(H);if(r&&(z=r.events)){G=(G||"").match(cd)||[""],y=G.length;while(y--){if(A=aP.exec(G[y])||[],u=s=A[1],t=(A[2]||"").split(".").sort(),u){w=bv.event.special[u]||{},u=(E?w.delegateType:w.bindType)||u,v=z[u]||[],A=A[2]&&new RegExp("(^|\\.)"+t.join("\\.(?:.*\\.|)")+"(\\.|$)"),B=C=v.length;while(C--){x=v[C],!D&&s!==x.origType||F&&F.guid!==x.guid||A&&!A.test(x.namespace)||E&&E!==x.selector&&("**"!==E||!x.selector)||(v.splice(C,1),x.selector&&v.delegateCount--,w.remove&&w.remove.call(H,x))}B&&!v.length&&(w.teardown&&w.teardown.call(H,t,r.handle)!==!1||bv.removeEvent(H,u,r.handle),delete z[u])}else{for(u in z){bv.event.remove(H,u+G[y],F,E,!0)}}}bv.isEmptyObject(z)&&bZ.remove(H,"handle events")}},dispatch:function(v){var u=bv.event.fix(v),t,s,r,q,p,o,n=new Array(arguments.length),m=(bZ.get(this,"events")||{})[u.type]||[],l=bv.event.special[u.type]||{};for(n[0]=u,t=1;t<arguments.length;t++){n[t]=arguments[t]}if(u.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,u)!==!1){o=bv.event.handlers.call(this,u,m),t=0;while((q=o[t++])&&!u.isPropagationStopped()){u.currentTarget=q.elem,s=0;while((p=q.handlers[s++])&&!u.isImmediatePropagationStopped()){u.rnamespace&&!u.rnamespace.test(p.namespace)||(u.handleObj=p,u.data=p.data,r=((bv.event.special[p.origType]||{}).handle||p.handler).apply(q.elem,n),void 0!==r&&(u.result=r)===!1&&(u.preventDefault(),u.stopPropagation()))}}return l.postDispatch&&l.postDispatch.call(this,u),u.result}},handlers:function(t,s){var r,q,p,o,n,m=[],l=s.delegateCount,k=t.target;if(l&&k.nodeType&&!("click"===t.type&&t.button>=1)){for(;k!==this;k=k.parentNode||this){if(1===k.nodeType&&("click"!==t.type||k.disabled!==!0)){for(o=[],n={},r=0;r<l;r++){q=s[r],p=q.selector+" ",void 0===n[p]&&(n[p]=q.needsContext?bv(p,this).index(k)>-1:bv.find(p,this,null,[k]).length),n[p]&&o.push(q)}o.length&&m.push({elem:k,handlers:o})}}}return k=this,l<s.length&&m.push({elem:k,handlers:s.slice(l)}),m},addProp:function(d,c){Object.defineProperty(bv.Event.prototype,d,{enumerable:!0,configurable:!0,get:bv.isFunction(c)?function(){if(this.originalEvent){return c(this.originalEvent)}}:function(){if(this.originalEvent){return this.originalEvent[d]}},set:function(a){Object.defineProperty(this,d,{enumerable:!0,configurable:!0,writable:!0,value:a})}})},fix:function(b){return b[bv.expando]?b:new bv.Event(b)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==aq()&&this.focus){return this.focus(),!1}},delegateType:"focusin"},blur:{trigger:function(){if(this===aq()&&this.blur){return this.blur(),!1}},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&bv.nodeName(this,"input")){return this.click(),!1}},_default:function(b){return bv.nodeName(b.target,"a")}},beforeunload:{postDispatch:function(b){void 0!==b.result&&b.originalEvent&&(b.originalEvent.returnValue=b.result)}}}},bv.removeEvent=function(e,d,f){e.removeEventListener&&e.removeEventListener(d,f)},bv.Event=function(d,c){return this instanceof bv.Event?(d&&d.type?(this.originalEvent=d,this.type=d.type,this.isDefaultPrevented=d.defaultPrevented||void 0===d.defaultPrevented&&d.returnValue===!1?aH:az,this.target=d.target&&3===d.target.nodeType?d.target.parentNode:d.target,this.currentTarget=d.currentTarget,this.relatedTarget=d.relatedTarget):this.type=d,c&&bv.extend(this,c),this.timeStamp=d&&d.timeStamp||bv.now(),void (this[bv.expando]=!0)):new bv.Event(d,c)},bv.Event.prototype={constructor:bv.Event,isDefaultPrevented:az,isPropagationStopped:az,isImmediatePropagationStopped:az,isSimulated:!1,preventDefault:function(){var b=this.originalEvent;this.isDefaultPrevented=aH,b&&!this.isSimulated&&b.preventDefault()},stopPropagation:function(){var b=this.originalEvent;this.isPropagationStopped=aH,b&&!this.isSimulated&&b.stopPropagation()},stopImmediatePropagation:function(){var b=this.originalEvent;this.isImmediatePropagationStopped=aH,b&&!this.isSimulated&&b.stopImmediatePropagation(),this.stopPropagation()}},bv.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(d){var c=d.button;return null==d.which&&a6.test(d.type)?null!=d.charCode?d.charCode:d.keyCode:!d.which&&void 0!==c&&aX.test(d.type)?1&c?1:2&c?3:4&c?2:0:d.which}},bv.event.addProp),bv.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(d,c){bv.event.special[d]={delegateType:c,bindType:c,handle:function(b){var j,i=this,h=b.relatedTarget,g=b.handleObj;return h&&(h===i||bv.contains(i,h))||(b.type=g.origType,j=g.handler.apply(this,arguments),b.type=c),j}}}),bv.fn.extend({on:function(f,e,h,g){return ah(this,f,e,h,g)},one:function(f,e,h,g){return ah(this,f,e,h,g,1)},off:function(g,f,j){var i,h;if(g&&g.preventDefault&&g.handleObj){return i=g.handleObj,bv(g.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this}if("object"==typeof g){for(h in g){this.off(h,f,g[h])}return this}return f!==!1&&"function"!=typeof f||(j=f,f=void 0),j===!1&&(j=az),this.each(function(){bv.event.remove(this,g,j,f)})}});var cJ=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,cy=/<script|<style|<link/i,a0=/checked\s*(?:[^=]|=\s*.checked.)/i,aR=/^true\/(.*)/,aJ=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function aB(d,c){return bv.nodeName(d,"table")&&bv.nodeName(11!==c.nodeType?c:c.firstChild,"tr")?d.getElementsByTagName("tbody")[0]||d:d}function at(b){return b.type=(null!==b.getAttribute("type"))+"/"+b.type,b}function ak(d){var c=aR.exec(d.type);return c?d.type=c[1]:d.removeAttribute("type"),d}function cL(t,s){var r,q,p,o,n,m,l,k;if(1===s.nodeType){if(bZ.hasData(t)&&(o=bZ.access(t),n=bZ.set(s,o),k=o.events)){delete n.handle,n.events={};for(p in k){for(r=0,q=k[p].length;r<q;r++){bv.event.add(s,p,k[p][r])}}}bY.hasData(t)&&(m=bY.access(t),l=bv.extend({},m),bY.set(s,l))}}function cD(e,d){var f=d.nodeName.toLowerCase();"input"===f&&aD.test(e.type)?d.checked=e.checked:"input"!==f&&"textarea"!==f||(d.defaultValue=e.defaultValue)}function cs(C,B,A,z){B=bH.apply([],B);var y,x,w,v,u,t,r=0,p=C.length,o=p-1,g=B[0],D=bv.isFunction(g);if(D||p>1&&"string"==typeof g&&!bz.checkClone&&a0.test(g)){return C.each(function(b){var a=C.eq(b);D&&(B[0]=g.call(this,b,a.html())),cs(a,B,A,z)})}if(p&&(y=bn(B,C[0].ownerDocument,!1,C,z),x=y.firstChild,1===y.childNodes.length&&(y=x),x||z)){for(w=bv.map(cF(y,"script"),at),v=w.length;r<p;r++){u=y,r!==o&&(u=bv.clone(u,!0,!0),v&&bv.merge(w,cF(u,"script"))),A.call(C[r],u,r)}if(v){for(t=w[w.length-1].ownerDocument,bv.map(w,ak),r=0;r<v;r++){u=w[r],am.test(u.type||"")&&!bZ.access(u,"globalEval")&&bv.contains(t,u)&&(u.src?bv._evalUrl&&bv._evalUrl(u.src):by(u.textContent.replace(aJ,""),t))}}}return C}function bS(h,g,l){for(var k,j=g?bv.filter(g,h):h,i=0;null!=(k=j[i]);i++){l||1!==k.nodeType||bv.cleanData(cF(k)),k.parentNode&&(l&&bv.contains(k.ownerDocument,k)&&cu(cF(k,"script")),k.parentNode.removeChild(k))}return h}bv.extend({htmlPrefilter:function(b){return b.replace(cJ,"<$1></$2>")},clone:function(r,q,p){var o,n,m,l,k=r.cloneNode(!0),j=bv.contains(r.ownerDocument,r);if(!(bz.noCloneChecked||1!==r.nodeType&&11!==r.nodeType||bv.isXMLDoc(r))){for(l=cF(k),m=cF(r),o=0,n=m.length;o<n;o++){cD(m[o],l[o])}}if(q){if(p){for(m=m||cF(r),l=l||cF(k),o=0,n=m.length;o<n;o++){cL(m[o],l[o])}}else{cL(r,k)}}return l=cF(k,"script"),l.length>0&&cu(l,!j&&cF(r,"script")),k},cleanData:function(h){for(var g,l,k,j=bv.event.special,i=0;void 0!==(l=h[i]);i++){if(b1(l)){if(g=l[bZ.expando]){if(g.events){for(k in g.events){j[k]?bv.event.remove(l,k):bv.removeEvent(l,k,g.handle)}}l[bZ.expando]=void 0}l[bY.expando]&&(l[bY.expando]=void 0)}}}}),bv.fn.extend({detach:function(b){return bS(this,b,!0)},remove:function(b){return bS(this,b)},text:function(b){return b2(this,function(c){return void 0===c?bv.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=c)})},null,b,arguments.length)},append:function(){return cs(this,arguments,function(d){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var c=aB(this,d);c.appendChild(d)}})},prepend:function(){return cs(this,arguments,function(d){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var c=aB(this,d);c.insertBefore(d,c.firstChild)}})},before:function(){return cs(this,arguments,function(b){this.parentNode&&this.parentNode.insertBefore(b,this)})},after:function(){return cs(this,arguments,function(b){this.parentNode&&this.parentNode.insertBefore(b,this.nextSibling)})},empty:function(){for(var d,c=0;null!=(d=this[c]);c++){1===d.nodeType&&(bv.cleanData(cF(d,!1)),d.textContent="")}return this},clone:function(d,c){return d=null!=d&&d,c=null==c?d:c,this.map(function(){return bv.clone(this,d,c)})},html:function(b){return b2(this,function(g){var f=this[0]||{},j=0,i=this.length;if(void 0===g&&1===f.nodeType){return f.innerHTML}if("string"==typeof g&&!cy.test(g)&&!ad[(av.exec(g)||["",""])[1].toLowerCase()]){g=bv.htmlPrefilter(g);try{for(;j<i;j++){f=this[j]||{},1===f.nodeType&&(bv.cleanData(cF(f,!1)),f.innerHTML=g)}f=0}catch(h){}}f&&this.empty().append(g)},null,b,arguments.length)},replaceWith:function(){var b=[];return cs(this,arguments,function(a){var d=this.parentNode;bv.inArray(this,b)<0&&(bv.cleanData(cF(this)),d&&d.replaceChild(a,this))},b)}}),bv.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(d,c){bv.fn[d]=function(b){for(var l,k=[],j=bv(b),i=j.length-1,h=0;h<=i;h++){l=h===i?this:this.clone(!0),bv(j[h])[c](l),bG.apply(k,l.get())}return this.pushStack(k)}});var bk=/^margin/,bd=new RegExp("^("+bQ+")(?!px)[a-z%]+$","i"),a4=function(a){var d=a.ownerDocument.defaultView;return d&&d.opener||(d=bP),d.getComputedStyle(a)};!function(){function a(){if(d){d.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",d.innerHTML="",bf.appendChild(j);var c=bP.getComputedStyle(d);n="1%"!==c.top,k="2px"===c.marginLeft,m="4px"===c.width,d.style.marginRight="50%",l="4px"===c.marginRight,bf.removeChild(j),d=null}}var n,m,l,k,j=bM.createElement("div"),d=bM.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",bz.clearCloneStyle="content-box"===d.style.backgroundClip,j.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",j.appendChild(d),bv.extend(bz,{pixelPosition:function(){return a(),n},boxSizingReliable:function(){return a(),m},pixelMarginRight:function(){return a(),l},reliableMarginLeft:function(){return a(),k}}))}();function aV(j,i,p){var o,n,m,l,k=j.style;return p=p||a4(j),p&&(l=p.getPropertyValue(i)||p[i],""!==l||bv.contains(j.ownerDocument,j)||(l=bv.style(j,i)),!bz.pixelMarginRight()&&bd.test(l)&&bk.test(i)&&(o=k.width,n=k.minWidth,m=k.maxWidth,k.minWidth=k.maxWidth=k.width=l,l=p.width,k.width=o,k.minWidth=n,k.maxWidth=m)),void 0!==l?l+"":l}function aN(d,c){return{get:function(){return d()?void delete this.get:(this.get=c).apply(this,arguments)}}}var aF=/^(none|table(?!-c[ea]).+)/,ax={position:"absolute",visibility:"hidden",display:"block"},ao={letterSpacing:"0",fontWeight:"400"},af=["Webkit","Moz","ms"],cH=bM.createElement("div").style;function cw(e){if(e in cH){return e}var d=e[0].toUpperCase()+e.slice(1),f=af.length;while(f--){if(e=af[f]+d,e in cH){return e}}}function b4(f,e,h){var g=cA.exec(e);return g?Math.max(0,g[2]-(h||0))+(g[3]||"px"):e}function bx(i,h,n,m,l){var k,j=0;for(k=n===(m?"border":"content")?4:"width"===h?1:0;k<4;k+=2){"margin"===n&&(j+=bv.css(i,n+cj[k],!0,l)),m?("content"===n&&(j-=bv.css(i,"padding"+cj[k],!0,l)),"margin"!==n&&(j-=bv.css(i,"border"+cj[k]+"Width",!0,l))):(j+=bv.css(i,"padding"+cj[k],!0,l),"padding"!==n&&(j+=bv.css(i,"border"+cj[k]+"Width",!0,l)))}return j}function bg(i,h,n){var m,l=!0,k=a4(i),j="border-box"===bv.css(i,"boxSizing",!1,k);if(i.getClientRects().length&&(m=i.getBoundingClientRect()[h]),m<=0||null==m){if(m=aV(i,h,k),(m<0||null==m)&&(m=i.style[h]),bd.test(m)){return m}l=j&&(bz.boxSizingReliable()||m===i.style[h]),m=parseFloat(m)||0}return m+bx(i,h,n||(j?"border":"content"),l,k)+"px"}bv.extend({cssHooks:{opacity:{get:function(e,d){if(d){var f=aV(e,"opacity");return""===f?"1":f}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(r,q,p,o){if(r&&3!==r.nodeType&&8!==r.nodeType&&r.style){var n,m,l,k=bv.camelCase(q),j=r.style;return q=bv.cssProps[k]||(bv.cssProps[k]=cw(k)||k),l=bv.cssHooks[q]||bv.cssHooks[k],void 0===p?l&&"get" in l&&void 0!==(n=l.get(r,!1,o))?n:j[q]:(m=typeof p,"string"===m&&(n=cA.exec(p))&&n[1]&&(p=a9(r,q,n),m="number"),null!=p&&p===p&&("number"===m&&(p+=n&&n[3]||(bv.cssNumber[k]?"":"px")),bz.clearCloneStyle||""!==p||0!==q.indexOf("background")||(j[q]="inherit"),l&&"set" in l&&void 0===(p=l.set(r,p,o))||(j[q]=p)),void 0)}},css:function(j,i,p,o){var n,m,l,k=bv.camelCase(i);return i=bv.cssProps[k]||(bv.cssProps[k]=cw(k)||k),l=bv.cssHooks[i]||bv.cssHooks[k],l&&"get" in l&&(n=l.get(j,!0,p)),void 0===n&&(n=aV(j,i,o)),"normal"===n&&i in ao&&(n=ao[i]),""===p||p?(m=parseFloat(n),p===!0||isFinite(m)?m||0:n):n}}),bv.each(["height","width"],function(d,c){bv.cssHooks[c]={get:function(b,f,e){if(f){return !aF.test(bv.css(b,"display"))||b.getClientRects().length&&b.getBoundingClientRect().width?bg(b,c,e):bi(b,ax,function(){return bg(b,c,e)})}},set:function(b,l,k){var j,i=k&&a4(b),h=k&&bx(b,c,k,"border-box"===bv.css(b,"boxSizing",!1,i),i);return h&&(j=cA.exec(l))&&"px"!==(j[3]||"px")&&(b.style[c]=l,l=bv.css(b,c)),b4(b,l,h)}}}),bv.cssHooks.marginLeft=aN(bz.reliableMarginLeft,function(d,c){if(c){return(parseFloat(aV(d,"marginLeft"))||d.getBoundingClientRect().left-bi(d,{marginLeft:0},function(){return d.getBoundingClientRect().left}))+"px"}}),bv.each({margin:"",padding:"",border:"Width"},function(d,c){bv.cssHooks[d+c]={expand:function(h){for(var g=0,b={},a="string"==typeof h?h.split(" "):[h];g<4;g++){b[d+cj[g]+c]=a[g]||a[g-2]||a[0]}return b}},bk.test(d)||(bv.cssHooks[d+c].set=b4)}),bv.fn.extend({css:function(d,c){return b2(this,function(i,h,n){var m,l,k={},j=0;if(bv.isArray(h)){for(m=a4(i),l=h.length;j<l;j++){k[h[j]]=bv.css(i,h[j],!1,m)}return k}return void 0!==n?bv.style(i,h,n):bv.css(i,h)},d,c,arguments.length>1)}});function a7(g,f,j,i,h){return new a7.prototype.init(g,f,j,i,h)}bv.Tween=a7,a7.prototype={constructor:a7,init:function(h,g,l,k,j,i){this.elem=h,this.prop=l,this.easing=j||bv.easing._default,this.options=g,this.start=this.now=this.cur(),this.end=k,this.unit=i||(bv.cssNumber[l]?"":"px")},cur:function(){var b=a7.propHooks[this.prop];return b&&b.get?b.get(this):a7.propHooks._default.get(this)},run:function(e){var d,f=a7.propHooks[this.prop];return this.options.duration?this.pos=d=bv.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=d=e,this.now=(this.end-this.start)*d+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),f&&f.set?f.set(this):a7.propHooks._default.set(this),this}},a7.prototype.init.prototype=a7.prototype,a7.propHooks={_default:{get:function(d){var c;return 1!==d.elem.nodeType||null!=d.elem[d.prop]&&null==d.elem.style[d.prop]?d.elem[d.prop]:(c=bv.css(d.elem,d.prop,""),c&&"auto"!==c?c:0)},set:function(b){bv.fx.step[b.prop]?bv.fx.step[b.prop](b):1!==b.elem.nodeType||null==b.elem.style[bv.cssProps[b.prop]]&&!bv.cssHooks[b.prop]?b.elem[b.prop]=b.now:bv.style(b.elem,b.prop,b.now+b.unit)}}},a7.propHooks.scrollTop=a7.propHooks.scrollLeft={set:function(b){b.elem.nodeType&&b.elem.parentNode&&(b.elem[b.prop]=b.now)}},bv.easing={linear:function(b){return b},swing:function(b){return 0.5-Math.cos(b*Math.PI)/2},_default:"swing"},bv.fx=a7.prototype.init,bv.fx.step={};var aY,cq,ai=/^(?:toggle|show|hide)$/,cz=/queueHooks$/;function ch(){cq&&(bP.requestAnimationFrame(ch),bv.fx.tick())}function bI(){return bP.setTimeout(function(){aY=void 0}),aY=bv.now()}function bh(g,f){var j,i=0,h={height:g};for(f=f?1:0;i<4;i+=2-f){j=cj[i],h["margin"+j]=h["padding"+j]=g}return f&&(h.opacity=h.width=g),h}function a8(i,h,n){for(var m,l=(aK.tweeners[h]||[]).concat(aK.tweeners["*"]),k=0,j=l.length;k<j;k++){if(m=l[k].call(n,h,i)){return m}}}function a1(H,G,F){var E,D,C,B,A,z,y,x,w="width" in G||"height" in G,v=this,u={},t=H.style,s=H.nodeType&&bK(H),r=bZ.get(H,"fxshow");F.queue||(B=bv._queueHooks(H,"fx"),null==B.unqueued&&(B.unqueued=0,A=B.empty.fire,B.empty.fire=function(){B.unqueued||A()}),B.unqueued++,v.always(function(){v.always(function(){B.unqueued--,bv.queue(H,"fx").length||B.empty.fire()})}));for(E in G){if(D=G[E],ai.test(D)){if(delete G[E],C=C||"toggle"===D,D===(s?"hide":"show")){if("show"!==D||!r||void 0===r[E]){continue}s=!0}u[E]=r&&r[E]||bv.style(H,E)}}if(z=!bv.isEmptyObject(G),z||!bv.isEmptyObject(u)){w&&1===H.nodeType&&(F.overflow=[t.overflow,t.overflowX,t.overflowY],y=r&&r.display,null==y&&(y=bZ.get(H,"display")),x=bv.css(H,"display"),"none"===x&&(y?x=y:(aL([H],!0),y=H.style.display||y,x=bv.css(H,"display"),aL([H]))),("inline"===x||"inline-block"===x&&null!=y)&&"none"===bv.css(H,"float")&&(z||(v.done(function(){t.display=y}),null==y&&(x=t.display,y="none"===x?"":x)),t.display="inline-block")),F.overflow&&(t.overflow="hidden",v.always(function(){t.overflow=F.overflow[0],t.overflowX=F.overflow[1],t.overflowY=F.overflow[2]})),z=!1;for(E in u){z||(r?"hidden" in r&&(s=r.hidden):r=bZ.access(H,"fxshow",{display:y}),C&&(r.hidden=!s),s&&aL([H],!0),v.done(function(){s||aL([H]),bZ.remove(H,"fxshow");for(E in u){bv.style(H,E,u[E])}})),z=a8(s?r[E]:0,E,v),E in r||(r[E]=z.start,s&&(z.end=z.start,z.start=0))}}}function aS(i,h){var n,m,l,k,j;for(n in i){if(m=bv.camelCase(n),l=h[m],k=i[n],bv.isArray(k)&&(l=k[1],k=i[n]=k[0]),n!==m&&(i[m]=k,delete i[n]),j=bv.cssHooks[m],j&&"expand" in j){k=j.expand(k),delete i[m];for(n in k){n in i||(i[n]=k[n],h[n]=l)}}else{h[m]=l}}}function aK(v,u,t){var s,r,q=0,p=aK.prefilters.length,o=bv.Deferred().always(function(){delete n.elem}),n=function(){if(r){return !1}for(var a=aY||bI(),w=Math.max(0,m.startTime+m.duration-a),k=w/m.duration||0,j=1-k,h=0,e=m.tweens.length;h<e;h++){m.tweens[h].run(j)}return o.notifyWith(v,[m,j,w]),j<1&&e?w:(o.resolveWith(v,[m]),!1)},m=o.promise({elem:v,props:bv.extend({},u),opts:bv.extend(!0,{specialEasing:{},easing:bv.easing._default},t),originalProperties:u,originalOptions:t,startTime:aY||bI(),duration:t.duration,tweens:[],createTween:function(a,f){var e=bv.Tween(v,m.opts,a,f,m.opts.specialEasing[a]||m.opts.easing);return m.tweens.push(e),e},stop:function(a){var f=0,e=a?m.tweens.length:0;if(r){return this}for(r=!0;f<e;f++){m.tweens[f].run(1)}return a?(o.notifyWith(v,[m,1,0]),o.resolveWith(v,[m,a])):o.rejectWith(v,[m,a]),this}}),l=m.props;for(aS(l,m.opts.specialEasing);q<p;q++){if(s=aK.prefilters[q].call(m,v,l,m.opts)){return bv.isFunction(s.stop)&&(bv._queueHooks(m.elem,m.opts.queue).stop=bv.proxy(s.stop,s)),s}}return bv.map(l,a8,m),bv.isFunction(m.opts.start)&&m.opts.start.call(v,m),bv.fx.timer(bv.extend(n,{elem:v,anim:m,queue:m.opts.queue})),m.progress(m.opts.progress).done(m.opts.done,m.opts.complete).fail(m.opts.fail).always(m.opts.always)}bv.Animation=bv.extend(aK,{tweeners:{"*":[function(e,d){var f=this.createTween(e,d);return a9(f.elem,e,cA.exec(d),f),f}]},tweener:function(g,f){bv.isFunction(g)?(f=g,g=["*"]):g=g.match(cd);for(var j,i=0,h=g.length;i<h;i++){j=g[i],aK.tweeners[j]=aK.tweeners[j]||[],aK.tweeners[j].unshift(f)}},prefilters:[a1],prefilter:function(d,c){c?aK.prefilters.unshift(d):aK.prefilters.push(d)}}),bv.speed=function(f,d,h){var g=f&&"object"==typeof f?bv.extend({},f):{complete:h||!h&&d||bv.isFunction(f)&&f,duration:f,easing:h&&d||d&&!bv.isFunction(d)&&d};return bv.fx.off||bM.hidden?g.duration=0:"number"!=typeof g.duration&&(g.duration in bv.fx.speeds?g.duration=bv.fx.speeds[g.duration]:g.duration=bv.fx.speeds._default),null!=g.queue&&g.queue!==!0||(g.queue="fx"),g.old=g.complete,g.complete=function(){bv.isFunction(g.old)&&g.old.call(this),g.queue&&bv.dequeue(this,g.queue)},g},bv.fn.extend({fadeTo:function(f,e,h,g){return this.filter(bK).css("opacity",0).show().end().animate({opacity:e},f,h,g)},animate:function(i,h,n,m){var l=bv.isEmptyObject(i),k=bv.speed(h,n,m),j=function(){var a=aK(this,bv.extend({},i),k);(l||bZ.get(this,"finish"))&&a.stop(!0)};return j.finish=j,l||k.queue===!1?this.each(j):this.queue(k.queue,j)},stop:function(f,e,h){var g=function(d){var c=d.stop;delete d.stop,c(h)};return"string"!=typeof f&&(h=e,e=f,f=void 0),e&&f!==!1&&this.queue(f||"fx",[]),this.each(function(){var a=!0,i=null!=f&&f+"queueHooks",d=bv.timers,c=bZ.get(this);if(i){c[i]&&c[i].stop&&g(c[i])}else{for(i in c){c[i]&&c[i].stop&&cz.test(i)&&g(c[i])}}for(i=d.length;i--;){d[i].elem!==this||null!=f&&d[i].queue!==f||(d[i].anim.stop(h),a=!1,d.splice(i,1))}!a&&h||bv.dequeue(this,f)})},finish:function(b){return b!==!1&&(b=b||"fx"),this.each(function(){var a,l=bZ.get(this),k=l[b+"queue"],j=l[b+"queueHooks"],i=bv.timers,h=k?k.length:0;for(l.finish=!0,bv.queue(this,b,[]),j&&j.stop&&j.stop.call(this,!0),a=i.length;a--;){i[a].elem===this&&i[a].queue===b&&(i[a].anim.stop(!0),i.splice(a,1))}for(a=0;a<h;a++){k[a]&&k[a].finish&&k[a].finish.call(this)}delete l.finish})}}),bv.each(["toggle","show","hide"],function(e,d){var f=bv.fn[d];bv.fn[d]=function(b,g,c){return null==b||"boolean"==typeof b?f.apply(this,arguments):this.animate(bh(d,!0),b,g,c)}}),bv.each({slideDown:bh("show"),slideUp:bh("hide"),slideToggle:bh("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(d,c){bv.fn[d]=function(b,f,e){return this.animate(c,b,f,e)}}),bv.timers=[],bv.fx.tick=function(){var e,d=0,f=bv.timers;for(aY=bv.now();d<f.length;d++){e=f[d],e()||f[d]!==e||f.splice(d--,1)}f.length||bv.fx.stop(),aY=void 0},bv.fx.timer=function(b){bv.timers.push(b),b()?bv.fx.start():bv.timers.pop()},bv.fx.interval=13,bv.fx.start=function(){cq||(cq=bP.requestAnimationFrame?bP.requestAnimationFrame(ch):bP.setInterval(bv.fx.tick,bv.fx.interval))},bv.fx.stop=function(){bP.cancelAnimationFrame?bP.cancelAnimationFrame(cq):bP.clearInterval(cq),cq=null},bv.fx.speeds={slow:600,fast:200,_default:400},bv.fn.delay=function(a,d){return a=bv.fx?bv.fx.speeds[a]||a:a,d=d||"fx",this.queue(d,function(g,f){var b=bP.setTimeout(g,a);f.stop=function(){bP.clearTimeout(b)}})},function(){var e=bM.createElement("input"),d=bM.createElement("select"),f=d.appendChild(bM.createElement("option"));e.type="checkbox",bz.checkOn=""!==e.value,bz.optSelected=f.selected,e=bM.createElement("input"),e.value="t",e.type="radio",bz.radioValue="t"===e.value}();var aC,au=bv.expr.attrHandle;bv.fn.extend({attr:function(d,c){return b2(this,bv.attr,d,c,arguments.length>1)},removeAttr:function(b){return this.each(function(){bv.removeAttr(this,b)})}}),bv.extend({attr:function(h,g,l){var k,j,i=h.nodeType;if(3!==i&&8!==i&&2!==i){return"undefined"==typeof h.getAttribute?bv.prop(h,g,l):(1===i&&bv.isXMLDoc(h)||(j=bv.attrHooks[g.toLowerCase()]||(bv.expr.match.bool.test(g)?aC:void 0)),void 0!==l?null===l?void bv.removeAttr(h,g):j&&"set" in j&&void 0!==(k=j.set(h,l,g))?k:(h.setAttribute(g,l+""),l):j&&"get" in j&&null!==(k=j.get(h,g))?k:(k=bv.find.attr(h,g),null==k?void 0:k))}},attrHooks:{type:{set:function(e,d){if(!bz.radioValue&&"radio"===d&&bv.nodeName(e,"input")){var f=e.value;return e.setAttribute("type",d),f&&(e.value=f),d}}}},removeAttr:function(g,f){var j,i=0,h=f&&f.match(cd);if(h&&1===g.nodeType){while(j=h[i++]){g.removeAttribute(j)}}}}),aC={set:function(e,d,f){return d===!1?bv.removeAttr(e,f):e.setAttribute(f,f),f}},bv.each(bv.expr.match.bool.source.match(/\w+/g),function(e,d){var f=au[d]||bv.find.attr;au[d]=function(h,c,l){var k,j,i=c.toLowerCase();return l||(j=au[i],au[i]=k,k=null!=f(h,c,l)?i:null,au[i]=j),k}});var al=/^(?:input|select|textarea|button)$/i,ac=/^(?:a|area)$/i;bv.fn.extend({prop:function(d,c){return b2(this,bv.prop,d,c,arguments.length>1)},removeProp:function(b){return this.each(function(){delete this[bv.propFix[b]||b]})}}),bv.extend({prop:function(h,g,l){var k,j,i=h.nodeType;if(3!==i&&8!==i&&2!==i){return 1===i&&bv.isXMLDoc(h)||(g=bv.propFix[g]||g,j=bv.propHooks[g]),void 0!==l?j&&"set" in j&&void 0!==(k=j.set(h,l,g))?k:h[g]=l:j&&"get" in j&&null!==(k=j.get(h,g))?k:h[g]}},propHooks:{tabIndex:{get:function(d){var c=bv.find.attr(d,"tabindex");return c?parseInt(c,10):al.test(d.nodeName)||ac.test(d.nodeName)&&d.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),bz.optSelected||(bv.propHooks.selected={get:function(d){var c=d.parentNode;return c&&c.parentNode&&c.parentNode.selectedIndex,null},set:function(d){var c=d.parentNode;c&&(c.selectedIndex,c.parentNode&&c.parentNode.selectedIndex)}}),bv.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){bv.propFix[this.toLowerCase()]=this});function cE(d){var c=d.match(cd)||[];return c.join(" ")}function ct(b){return b.getAttribute&&b.getAttribute("class")||""}bv.fn.extend({addClass:function(r){var q,p,o,n,m,l,k,j=0;if(bv.isFunction(r)){return this.each(function(a){bv(this).addClass(r.call(this,a,ct(this)))})}if("string"==typeof r&&r){q=r.match(cd)||[];while(p=this[j++]){if(n=ct(p),o=1===p.nodeType&&" "+cE(n)+" "){l=0;while(m=q[l++]){o.indexOf(" "+m+" ")<0&&(o+=m+" ")}k=cE(o),n!==k&&p.setAttribute("class",k)}}}return this},removeClass:function(r){var q,p,o,n,m,l,k,j=0;if(bv.isFunction(r)){return this.each(function(a){bv(this).removeClass(r.call(this,a,ct(this)))})}if(!arguments.length){return this.attr("class","")}if("string"==typeof r&&r){q=r.match(cd)||[];while(p=this[j++]){if(n=ct(p),o=1===p.nodeType&&" "+cE(n)+" "){l=0;while(m=q[l++]){while(o.indexOf(" "+m+" ")>-1){o=o.replace(" "+m+" "," ")}}k=cE(o),n!==k&&p.setAttribute("class",k)}}}return this},toggleClass:function(e,d){var f=typeof e;return"boolean"==typeof d&&"string"===f?d?this.addClass(e):this.removeClass(e):bv.isFunction(e)?this.each(function(a){bv(this).toggleClass(e.call(this,a,ct(this),d),d)}):this.each(function(){var a,h,g,c;if("string"===f){h=0,g=bv(this),c=e.match(cd)||[];while(a=c[h++]){g.hasClass(a)?g.removeClass(a):g.addClass(a)}}else{void 0!==e&&"boolean"!==f||(a=ct(this),a&&bZ.set(this,"__className__",a),this.setAttribute&&this.setAttribute("class",a||e===!1?"":bZ.get(this,"__className__")||""))}})},hasClass:function(f){var e,h,g=0;e=" "+f+" ";while(h=this[g++]){if(1===h.nodeType&&(" "+cE(ct(h))+" ").indexOf(e)>-1){return !0}}return !1}});var bT=/\r/g;bv.fn.extend({val:function(g){var f,j,i,h=this[0];if(arguments.length){return i=bv.isFunction(g),this.each(function(b){var a;1===this.nodeType&&(a=i?g.call(this,b,bv(this).val()):g,null==a?a="":"number"==typeof a?a+="":bv.isArray(a)&&(a=bv.map(a,function(c){return null==c?"":c+""})),f=bv.valHooks[this.type]||bv.valHooks[this.nodeName.toLowerCase()],f&&"set" in f&&void 0!==f.set(this,a,"value")||(this.value=a))})}if(h){return f=bv.valHooks[h.type]||bv.valHooks[h.nodeName.toLowerCase()],f&&"get" in f&&void 0!==(j=f.get(h,"value"))?j:(j=h.value,"string"==typeof j?j.replace(bT,""):null==j?"":j)}}}),bv.extend({valHooks:{option:{get:function(d){var c=bv.find.attr(d,"value");return null!=c?c:cE(bv.text(d))}},select:{get:function(r){var q,p,o,n=r.options,m=r.selectedIndex,l="select-one"===r.type,k=l?null:[],j=l?m+1:n.length;for(o=m<0?j:l?m:0;o<j;o++){if(p=n[o],(p.selected||o===m)&&!p.disabled&&(!p.parentNode.disabled||!bv.nodeName(p.parentNode,"optgroup"))){if(q=bv(p).val(),l){return q}k.push(q)}}return k},set:function(i,h){var n,m,l=i.options,k=bv.makeArray(h),j=l.length;while(j--){m=l[j],(m.selected=bv.inArray(bv.valHooks.option.get(m),k)>-1)&&(n=!0)}return n||(i.selectedIndex=-1),k}}}}),bv.each(["radio","checkbox"],function(){bv.valHooks[this]={set:function(d,c){if(bv.isArray(c)){return d.checked=bv.inArray(bv(d).val(),c)>-1}}},bz.checkOn||(bv.valHooks[this].get=function(b){return null===b.getAttribute("value")?"on":b.value})});var bl=/^(?:focusinfocus|focusoutblur)$/;bv.extend(bv.event,{trigger:function(B,A,z,y){var x,w,v,u,t,s,r,l=[z||bM],d=bC.call(B,"type")?B.type:B,a=bC.call(B,"namespace")?B.namespace.split("."):[];if(w=v=z=z||bM,3!==z.nodeType&&8!==z.nodeType&&!bl.test(d+bv.event.triggered)&&(d.indexOf(".")>-1&&(a=d.split("."),d=a.shift(),a.sort()),t=d.indexOf(":")<0&&"on"+d,B=B[bv.expando]?B:new bv.Event(d,"object"==typeof B&&B),B.isTrigger=y?2:3,B.namespace=a.join("."),B.rnamespace=B.namespace?new RegExp("(^|\\.)"+a.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,B.result=void 0,B.target||(B.target=z),A=null==A?[B]:bv.makeArray(A,[B]),r=bv.event.special[d]||{},y||!r.trigger||r.trigger.apply(z,A)!==!1)){if(!y&&!r.noBubble&&!bv.isWindow(z)){for(u=r.delegateType||d,bl.test(u+d)||(w=w.parentNode);w;w=w.parentNode){l.push(w),v=w}v===(z.ownerDocument||bM)&&l.push(v.defaultView||v.parentWindow||bP)}x=0;while((w=l[x++])&&!B.isPropagationStopped()){B.type=x>1?u:r.bindType||d,s=(bZ.get(w,"events")||{})[B.type]&&bZ.get(w,"handle"),s&&s.apply(w,A),s=t&&w[t],s&&s.apply&&b1(w)&&(B.result=s.apply(w,A),B.result===!1&&B.preventDefault())}return B.type=d,y||B.isDefaultPrevented()||r._default&&r._default.apply(l.pop(),A)!==!1||!b1(z)||t&&bv.isFunction(z[d])&&!bv.isWindow(z)&&(v=z[t],v&&(z[t]=null),bv.event.triggered=d,z[d](),bv.event.triggered=void 0,v&&(z[t]=v)),B.result}},simulate:function(f,e,h){var g=bv.extend(new bv.Event,h,{type:f,isSimulated:!0});bv.event.trigger(g,null,e)}}),bv.fn.extend({trigger:function(d,c){return this.each(function(){bv.event.trigger(d,c,this)})},triggerHandler:function(e,d){var f=this[0];if(f){return bv.event.trigger(e,d,f,!0)}}}),bv.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(d,c){bv.fn[c]=function(b,e){return arguments.length>0?this.on(c,null,b,e):this.trigger(c)}}),bv.fn.extend({hover:function(d,c){return this.mouseenter(d).mouseleave(c||d)}}),bz.focusin="onfocusin" in bP,bz.focusin||bv.each({focus:"focusin",blur:"focusout"},function(e,d){var f=function(b){bv.event.simulate(d,b.target,bv.event.fix(b))};bv.event.special[d]={setup:function(){var b=this.ownerDocument||this,a=bZ.access(b,d);a||b.addEventListener(e,f,!0),bZ.access(b,d,(a||0)+1)},teardown:function(){var b=this.ownerDocument||this,a=bZ.access(b,d)-1;a?bZ.access(b,d,a):(b.removeEventListener(e,f,!0),bZ.remove(b,d))}}});var be=bP.location,a5=bv.now(),aW=/\?/;bv.parseXML=function(a){var f;if(!a||"string"!=typeof a){return null}try{f=(new bP.DOMParser).parseFromString(a,"text/xml")}catch(e){f=void 0}return f&&!f.getElementsByTagName("parsererror").length||bv.error("Invalid XML: "+a),f};var aO=/\[\]$/,aG=/\r?\n/g,ay=/^(?:submit|button|image|reset|file)$/i,ap=/^(?:input|select|textarea|keygen)/i;function ag(g,f,j,i){var h;if(bv.isArray(f)){bv.each(f,function(a,c){j||aO.test(g)?i(g,c):ag(g+"["+("object"==typeof c&&null!=c?a:"")+"]",c,j,i)})}else{if(j||"object"!==bv.type(f)){i(g,f)}else{for(h in f){ag(g+"["+h+"]",f[h],j,i)}}}}bv.param=function(g,f){var j,i=[],h=function(e,d){var k=bv.isFunction(d)?d():d;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==k?"":k)};if(bv.isArray(g)||g.jquery&&!bv.isPlainObject(g)){bv.each(g,function(){h(this.name,this.value)})}else{for(j in g){ag(j,g[j],f,h)}}return i.join("&")},bv.fn.extend({serialize:function(){return bv.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var b=bv.prop(this,"elements");return b?bv.makeArray(b):this}).filter(function(){var b=this.type;return this.name&&!bv(this).is(":disabled")&&ap.test(this.nodeName)&&!ay.test(b)&&(this.checked||!aD.test(b))}).map(function(e,d){var f=bv(this).val();return null==f?null:bv.isArray(f)?bv.map(f,function(b){return{name:d.name,value:b.replace(aG,"\r\n")}}):{name:d.name,value:f.replace(aG,"\r\n")}}).get()}});var cI=/%20/g,cx=/#.*$/,aZ=/([?&])_=[^&]*/,aQ=/^(.*?):[ \t]*([^\r\n]*)$/gm,aI=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,aA=/^(?:GET|HEAD)$/,ar=/^\/\//,aj={},cK={},cC="*/".concat("*"),cr=bM.createElement("a");cr.href=be.href;function bR(b){return function(a,j){"string"!=typeof a&&(j=a,a="*");var i,h=0,g=a.toLowerCase().match(cd)||[];if(bv.isFunction(j)){while(i=g[h++]){"+"===i[0]?(i=i.slice(1)||"*",(b[i]=b[i]||[]).unshift(j)):(b[i]=b[i]||[]).push(j)}}}}function bj(i,h,n,m){var l={},k=i===cK;function j(b){var a;return l[b]=!0,bv.each(i[b]||[],function(c,e){var d=e(h,n,m);return"string"!=typeof d||k||l[d]?k?!(a=d):void 0:(h.dataTypes.unshift(d),j(d),!1)}),a}return j(h.dataTypes[0])||!l["*"]&&j("*")}function bc(g,f){var j,i,h=bv.ajaxSettings.flatOptions||{};for(j in f){void 0!==f[j]&&((h[j]?g:i||(i={}))[j]=f[j])}return i&&bv.extend(!0,g,i),g}function a3(r,q,p){var o,n,m,l,k=r.contents,j=r.dataTypes;while("*"===j[0]){j.shift(),void 0===o&&(o=r.mimeType||q.getResponseHeader("Content-Type"))}if(o){for(n in k){if(k[n]&&k[n].test(o)){j.unshift(n);break}}}if(j[0] in p){m=j[0]}else{for(n in p){if(!j[0]||r.converters[n+" "+j[0]]){m=n;break}l||(l=n)}m=m||l}if(m){return m!==j[0]&&j.unshift(m),p[m]}}function aU(x,w,v,u){var t,s,r,q,p,o={},n=x.dataTypes.slice();if(n[1]){for(r in x.converters){o[r.toLowerCase()]=x.converters[r]}}s=n.shift();while(s){if(x.responseFields[s]&&(v[x.responseFields[s]]=w),!p&&u&&x.dataFilter&&(w=x.dataFilter(w,x.dataType)),p=s,s=n.shift()){if("*"===s){s=p}else{if("*"!==p&&p!==s){if(r=o[p+" "+s]||o["* "+s],!r){for(t in o){if(q=t.split(" "),q[1]===s&&(r=o[p+" "+q[0]]||o["* "+q[0]])){r===!0?r=o[t]:o[t]!==!0&&(s=q[0],n.unshift(q[1]));break}}}if(r!==!0){if(r&&x["throws"]){w=r(w)}else{try{w=r(w)}catch(m){return{state:"parsererror",error:r?m:"No conversion from "+p+" to "+s}}}}}}}}return{state:"success",data:w}}bv.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:be.href,type:"GET",isLocal:aI.test(be.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":cC,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":bv.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(d,c){return c?bc(bc(d,bv.ajaxSettings),c):bc(bv.ajaxSettings,d)},ajaxPrefilter:bR(aj),ajaxTransport:bR(cK),ajax:function(V,U){"object"==typeof V&&(U=V,V=void 0),U=U||{};var T,S,R,Q,P,O,N,M,L,K,J=bv.ajaxSetup({},U),I=J.context||J,G=J.context&&(I.nodeType||I.jquery)?bv(I):bv.event,F=bv.Deferred(),E=bv.Callbacks("once memory"),D=J.statusCode||{},C={},B={},r="canceled",d={readyState:0,getResponseHeader:function(e){var c;if(N){if(!Q){Q={};while(c=aQ.exec(R)){Q[c[1].toLowerCase()]=c[2]}}c=Q[e.toLowerCase()]}return null==c?null:c},getAllResponseHeaders:function(){return N?R:null},setRequestHeader:function(e,c){return null==N&&(e=B[e.toLowerCase()]=B[e.toLowerCase()]||e,C[e]=c),this},overrideMimeType:function(b){return null==N&&(J.mimeType=b),this},statusCode:function(e){var c;if(e){if(N){d.always(e[d.status])}else{for(c in e){D[c]=[D[c],e[c]]}}}return this},abort:function(e){var c=e||r;return T&&T.abort(c),H(0,c),this}};if(F.promise(d),J.url=((V||J.url||be.href)+"").replace(ar,be.protocol+"//"),J.type=U.method||U.type||J.method||J.type,J.dataTypes=(J.dataType||"*").toLowerCase().match(cd)||[""],null==J.crossDomain){O=bM.createElement("a");try{O.href=J.url,O.href=O.href,J.crossDomain=cr.protocol+"//"+cr.host!=O.protocol+"//"+O.host}catch(a){J.crossDomain=!0}}if(J.data&&J.processData&&"string"!=typeof J.data&&(J.data=bv.param(J.data,J.traditional)),bj(aj,J,U,d),N){return d}M=bv.event&&J.global,M&&0===bv.active++&&bv.event.trigger("ajaxStart"),J.type=J.type.toUpperCase(),J.hasContent=!aA.test(J.type),S=J.url.replace(cx,""),J.hasContent?J.data&&J.processData&&0===(J.contentType||"").indexOf("application/x-www-form-urlencoded")&&(J.data=J.data.replace(cI,"+")):(K=J.url.slice(S.length),J.data&&(S+=(aW.test(S)?"&":"?")+J.data,delete J.data),J.cache===!1&&(S=S.replace(aZ,"$1"),K=(aW.test(S)?"&":"?")+"_="+a5+++K),J.url=S+K),J.ifModified&&(bv.lastModified[S]&&d.setRequestHeader("If-Modified-Since",bv.lastModified[S]),bv.etag[S]&&d.setRequestHeader("If-None-Match",bv.etag[S])),(J.data&&J.hasContent&&J.contentType!==!1||U.contentType)&&d.setRequestHeader("Content-Type",J.contentType),d.setRequestHeader("Accept",J.dataTypes[0]&&J.accepts[J.dataTypes[0]]?J.accepts[J.dataTypes[0]]+("*"!==J.dataTypes[0]?", "+cC+"; q=0.01":""):J.accepts["*"]);for(L in J.headers){d.setRequestHeader(L,J.headers[L])}if(J.beforeSend&&(J.beforeSend.call(I,d,J)===!1||N)){return d.abort()}if(r="abort",E.add(J.complete),d.done(J.success),d.fail(J.error),T=bj(cK,J,U,d)){if(d.readyState=1,M&&G.trigger("ajaxSend",[d,J]),N){return d}J.async&&J.timeout>0&&(P=bP.setTimeout(function(){d.abort("timeout")},J.timeout));try{N=!1,T.send(C,H)}catch(a){if(N){throw a}H(-1,a)}}else{H(-1,"No Transport")}function H(o,l,k,i){var g,f,e,s,q,p=l;N||(N=!0,P&&bP.clearTimeout(P),T=void 0,R=i||"",d.readyState=o>0?4:0,g=o>=200&&o<300||304===o,k&&(s=a3(J,d,k)),s=aU(J,s,d,g),g?(J.ifModified&&(q=d.getResponseHeader("Last-Modified"),q&&(bv.lastModified[S]=q),q=d.getResponseHeader("etag"),q&&(bv.etag[S]=q)),204===o||"HEAD"===J.type?p="nocontent":304===o?p="notmodified":(p=s.state,f=s.data,e=s.error,g=!e)):(e=p,!o&&p||(p="error",o<0&&(o=0))),d.status=o,d.statusText=(l||p)+"",g?F.resolveWith(I,[f,p,d]):F.rejectWith(I,[d,p,e]),d.statusCode(D),D=void 0,M&&G.trigger(g?"ajaxSuccess":"ajaxError",[d,J,g?f:e]),E.fireWith(I,[d,p]),M&&(G.trigger("ajaxComplete",[d,J]),--bv.active||bv.event.trigger("ajaxStop")))}return d},getJSON:function(e,d,f){return bv.get(e,d,f,"json")},getScript:function(d,c){return bv.get(d,void 0,c,"script")}}),bv.each(["get","post"],function(d,c){bv[c]=function(b,h,g,f){return bv.isFunction(h)&&(f=f||g,g=h,h=void 0),bv.ajax(bv.extend({url:b,type:c,dataType:f,data:h,success:g},bv.isPlainObject(b)&&b))}}),bv._evalUrl=function(b){return bv.ajax({url:b,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},bv.fn.extend({wrapAll:function(d){var c;return this[0]&&(bv.isFunction(d)&&(d=d.call(this[0])),c=bv(d,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&c.insertBefore(this[0]),c.map(function(){var b=this;while(b.firstElementChild){b=b.firstElementChild}return b}).append(this)),this},wrapInner:function(b){return bv.isFunction(b)?this.each(function(a){bv(this).wrapInner(b.call(this,a))}):this.each(function(){var a=bv(this),d=a.contents();d.length?d.wrapAll(b):a.append(b)})},wrap:function(d){var c=bv.isFunction(d);return this.each(function(a){bv(this).wrapAll(c?d.call(this,a):d)})},unwrap:function(b){return this.parent(b).not("body").each(function(){bv(this).replaceWith(this.childNodes)}),this}}),bv.expr.pseudos.hidden=function(b){return !bv.expr.pseudos.visible(b)},bv.expr.pseudos.visible=function(b){return !!(b.offsetWidth||b.offsetHeight||b.getClientRects().length)},bv.ajaxSettings.xhr=function(){try{return new bP.XMLHttpRequest}catch(a){}};var aM={0:200,1223:204},aE=bv.ajaxSettings.xhr();bz.cors=!!aE&&"withCredentials" in aE,bz.ajax=aE=!!aE,bv.ajaxTransport(function(a){var f,e;if(bz.cors||aE&&!a.crossDomain){return{send:function(k,j){var d,c=a.xhr();if(c.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields){for(d in a.xhrFields){c[d]=a.xhrFields[d]}}a.mimeType&&c.overrideMimeType&&c.overrideMimeType(a.mimeType),a.crossDomain||k["X-Requested-With"]||(k["X-Requested-With"]="XMLHttpRequest");for(d in k){c.setRequestHeader(d,k[d])}f=function(g){return function(){f&&(f=e=c.onload=c.onerror=c.onabort=c.onreadystatechange=null,"abort"===g?c.abort():"error"===g?"number"!=typeof c.status?j(0,"error"):j(c.status,c.statusText):j(aM[c.status]||c.status,c.statusText,"text"!==(c.responseType||"text")||"string"!=typeof c.responseText?{binary:c.response}:{text:c.responseText},c.getAllResponseHeaders()))}},c.onload=f(),e=c.onerror=f("error"),void 0!==c.onabort?c.onabort=e:c.onreadystatechange=function(){4===c.readyState&&bP.setTimeout(function(){f&&e()})},f=f("abort");try{c.send(a.hasContent&&a.data||null)}catch(b){if(f){throw b}}},abort:function(){f&&f()}}}}),bv.ajaxPrefilter(function(b){b.crossDomain&&(b.contents.script=!1)}),bv.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(b){return bv.globalEval(b),b}}}),bv.ajaxPrefilter("script",function(b){void 0===b.cache&&(b.cache=!1),b.crossDomain&&(b.type="GET")}),bv.ajaxTransport("script",function(e){if(e.crossDomain){var d,f;return{send:function(b,a){d=bv("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",f=function(c){d.remove(),f=null,c&&a("error"===c.type?404:200,c.type)}),bM.head.appendChild(d[0])},abort:function(){f&&f()}}}});var aw=[],an=/(=)\?(?=&|$)|\?\?/;bv.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var b=aw.pop()||bv.expando+"_"+a5++;return this[b]=!0,b}}),bv.ajaxPrefilter("json jsonp",function(a,n,m){var l,k,j,i=a.jsonp!==!1&&(an.test(a.url)?"url":"string"==typeof a.data&&0===(a.contentType||"").indexOf("application/x-www-form-urlencoded")&&an.test(a.data)&&"data");if(i||"jsonp"===a.dataTypes[0]){return l=a.jsonpCallback=bv.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,i?a[i]=a[i].replace(an,"$1"+l):a.jsonp!==!1&&(a.url+=(aW.test(a.url)?"&":"?")+a.jsonp+"="+l),a.converters["script json"]=function(){return j||bv.error(l+" was not called"),j[0]},a.dataTypes[0]="json",k=bP[l],bP[l]=function(){j=arguments},m.always(function(){void 0===k?bv(bP).removeProp(l):bP[l]=k,a[l]&&(a.jsonpCallback=n.jsonpCallback,aw.push(l)),j&&bv.isFunction(k)&&k(j[0]),j=k=void 0}),"script"}}),bz.createHTMLDocument=function(){var b=bM.implementation.createHTMLDocument("").body;return b.innerHTML="<form></form><form></form>",2===b.childNodes.length}(),bv.parseHTML=function(h,d,l){if("string"!=typeof h){return[]}"boolean"==typeof d&&(l=d,d=!1);var k,j,i;return d||(bz.createHTMLDocument?(d=bM.implementation.createHTMLDocument(""),k=d.createElement("base"),k.href=bM.location.href,d.head.appendChild(k)):d=bM),j=co.exec(h),i=!l&&[],j?[d.createElement(j[1])]:(j=bn([h],d,i),i&&i.length&&bv(i).remove(),bv.merge([],j.childNodes))},bv.fn.load=function(j,i,p){var o,n,m,l=this,k=j.indexOf(" ");return k>-1&&(o=cE(j.slice(k)),j=j.slice(0,k)),bv.isFunction(i)?(p=i,i=void 0):i&&"object"==typeof i&&(n="POST"),l.length>0&&bv.ajax({url:j,type:n||"GET",dataType:"html",data:i}).done(function(b){m=arguments,l.html(o?bv("<div>").append(bv.parseHTML(b)).find(o):b)}).always(p&&function(d,c){l.each(function(){p.apply(this,m||[d.responseText,c,d])})}),this},bv.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(d,c){bv.fn[c]=function(b){return this.on(c,b)}}),bv.expr.pseudos.animated=function(b){return bv.grep(bv.timers,function(a){return b===a.elem}).length};function ae(b){return bv.isWindow(b)?b:9===b.nodeType&&b.defaultView}bv.offset={setOffset:function(z,y,x){var w,v,u,t,s,r,q,p=bv.css(z,"position"),o=bv(z),n={};"static"===p&&(z.style.position="relative"),s=o.offset(),u=bv.css(z,"top"),r=bv.css(z,"left"),q=("absolute"===p||"fixed"===p)&&(u+r).indexOf("auto")>-1,q?(w=o.position(),t=w.top,v=w.left):(t=parseFloat(u)||0,v=parseFloat(r)||0),bv.isFunction(y)&&(y=y.call(z,x,bv.extend({},s))),null!=y.top&&(n.top=y.top-s.top+t),null!=y.left&&(n.left=y.left-s.left+v),"using" in y?y.using.call(z,n):o.css(n)}},bv.fn.extend({offset:function(h){if(arguments.length){return void 0===h?this:this.each(function(a){bv.offset.setOffset(this,h,a)})}var g,l,k,j,i=this[0];if(i){return i.getClientRects().length?(k=i.getBoundingClientRect(),k.width||k.height?(j=i.ownerDocument,l=ae(j),g=j.documentElement,{top:k.top+l.pageYOffset-g.clientTop,left:k.left+l.pageXOffset-g.clientLeft}):k):{top:0,left:0}}},position:function(){if(this[0]){var f,e,h=this[0],g={top:0,left:0};return"fixed"===bv.css(h,"position")?e=h.getBoundingClientRect():(f=this.offsetParent(),e=this.offset(),bv.nodeName(f[0],"html")||(g=f.offset()),g={top:g.top+bv.css(f[0],"borderTopWidth",!0),left:g.left+bv.css(f[0],"borderLeftWidth",!0)}),{top:e.top-g.top-bv.css(h,"marginTop",!0),left:e.left-g.left-bv.css(h,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var b=this.offsetParent;while(b&&"static"===bv.css(b,"position")){b=b.offsetParent}return b||bf})}}),bv.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,d){var f="pageYOffset"===d;bv.fn[e]=function(a){return b2(this,function(b,h,g){var c=ae(b);return void 0===g?c?c[d]:b[h]:void (c?c.scrollTo(f?c.pageXOffset:g,f?g:c.pageYOffset):b[h]=g)},e,a,arguments.length)}}),bv.each(["top","left"],function(d,c){bv.cssHooks[c]=aN(bz.pixelPosition,function(b,e){if(e){return e=aV(b,c),bd.test(e)?bv(b).position()[c]+"px":e}})}),bv.each({Height:"height",Width:"width"},function(d,c){bv.each({padding:"inner"+d,content:c,"":"outer"+d},function(b,a){bv.fn[a]=function(l,k){var j=arguments.length&&(b||"boolean"!=typeof l),i=b||(l===!0||k===!0?"margin":"border");return b2(this,function(g,n,m){var h;return bv.isWindow(g)?0===a.indexOf("outer")?g["inner"+d]:g.document.documentElement["client"+d]:9===g.nodeType?(h=g.documentElement,Math.max(g.body["scroll"+d],h["scroll"+d],g.body["offset"+d],h["offset"+d],h["client"+d])):void 0===m?bv.css(g,n,i):bv.style(g,n,m,i)},c,j?l:void 0,j)}})}),bv.fn.extend({bind:function(e,d,f){return this.on(e,null,d,f)},unbind:function(d,c){return this.off(d,null,c)},delegate:function(f,e,h,g){return this.on(e,f,h,g)},undelegate:function(e,d,f){return 1===arguments.length?this.off(e,"**"):this.off(d,e||"**",f)}}),bv.parseJSON=JSON.parse,"function"==typeof define&&define.amd&&define("jquery",[],function(){return bv});var cG=bP.jQuery,cv=bP.$;return bv.noConflict=function(a){return bP.$===bv&&(bP.$=cv),a&&bP.jQuery===bv&&(bP.jQuery=cG),bv},bO||(bP.jQuery=bP.$=bv),bv});/*!

 handlebars v4.0.2

Copyright (C) 2011-2015 by Yehuda Katz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

@license
*/
(function webpackUniversalModuleDefinition(a,b){if(typeof exports==="object"&&typeof module==="object"){module.exports=b()}else{if(typeof define==="function"&&define.amd){define([],b)}else{if(typeof exports==="object"){exports.Handlebars=b()}else{a.Handlebars=b()}}}})(this,function(){return(function(a){var b={};function c(e){if(b[e]){return b[e].exports}var d=b[e]={exports:{},id:e,loaded:false};a[e].call(d.exports,d,d.exports,c);d.loaded=true;return d.exports}c.m=a;c.c=b;c.p="";return c(0)})([function(c,s,e){var a=e(1)["default"];s.__esModule=true;var g=e(2);var d=a(g);var b=e(21);var n=a(b);var h=e(22);var o=e(27);var i=e(28);var j=a(i);var p=e(25);var r=a(p);var l=e(20);var k=a(l);var q=d["default"].create;function m(){var t=q();t.compile=function(u,v){return o.compile(u,v,t)};t.precompile=function(u,v){return o.precompile(u,v,t)};t.AST=n["default"];t.Compiler=o.Compiler;t.JavaScriptCompiler=j["default"];t.Parser=h.parser;t.parse=h.parse;return t}var f=m();f.create=m;k["default"](f);f.Visitor=r["default"];f["default"]=f;s["default"]=f;c.exports=s["default"]},function(b,a){a["default"]=function(c){return c&&c.__esModule?c:{"default":c}};a.__esModule=true},function(b,s,d){var p=d(3)["default"];var a=d(1)["default"];s.__esModule=true;var r=d(4);var g=p(r);var q=d(18);var h=a(q);var l=d(6);var n=a(l);var m=d(5);var c=p(m);var f=d(19);var o=p(f);var j=d(20);var i=a(j);function k(){var t=new g.HandlebarsEnvironment();c.extend(t,g);t.SafeString=h["default"];t.Exception=n["default"];t.Utils=c;t.escapeExpression=c.escapeExpression;t.VM=o;t.template=function(u){return o.template(u,t)};return t}var e=k();e.create=k;i["default"](e);e["default"]=e;s["default"]=e;b.exports=s["default"]},function(b,a){a["default"]=function(e){if(e&&e.__esModule){return e}else{var c={};if(e!=null){for(var d in e){if(Object.prototype.hasOwnProperty.call(e,d)){c[d]=e[d]}}}c["default"]=e;return c}};a.__esModule=true},function(e,v,g){var c=g(1)["default"];v.__esModule=true;v.HandlebarsEnvironment=k;var n=g(5);var t=g(6);var f=c(t);var h=g(7);var w=g(15);var m=g(17);var d=c(m);var u="4.0.2";v.VERSION=u;var q=7;v.COMPILER_REVISION=q;var s={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0"};v.REVISION_CHANGES=s;var p="[object Object]";function k(z,y,x){this.helpers=z||{};this.partials=y||{};this.decorators=x||{};h.registerDefaultHelpers(this);w.registerDefaultDecorators(this)}k.prototype={constructor:k,logger:d["default"],log:d["default"].log,registerHelper:function o(x,y){if(n.toString.call(x)===p){if(y){throw new f["default"]("Arg not supported with multiple helpers")}n.extend(this.helpers,x)}else{this.helpers[x]=y}},unregisterHelper:function i(x){delete this.helpers[x]},registerPartial:function j(y,x){if(n.toString.call(y)===p){n.extend(this.partials,y)}else{if(typeof x==="undefined"){throw new f["default"]("Attempting to register a partial as undefined")}this.partials[y]=x}},unregisterPartial:function r(x){delete this.partials[x]},registerDecorator:function b(x,y){if(n.toString.call(x)===p){if(y){throw new f["default"]("Arg not supported with multiple decorators")}n.extend(this.decorators,x)}else{this.decorators[x]=y}},unregisterDecorator:function a(x){delete this.decorators[x]}};var l=d["default"].log;v.log=l;v.createFrame=n.createFrame;v.logger=d["default"]},function(d,g){g.__esModule=true;g.extend=l;g.indexOf=m;g.escapeExpression=i;g.isEmpty=h;g.createFrame=o;g.blockParams=k;g.appendContextPath=e;var n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"};var a=/[&<>"'`=]/g,f=/[&<>"'`=]/;function p(q){return n[q]}function l(s){for(var r=1;r<arguments.length;r++){for(var q in arguments[r]){if(Object.prototype.hasOwnProperty.call(arguments[r],q)){s[q]=arguments[r][q]}}}return s}var c=Object.prototype.toString;g.toString=c;var b=function b(q){return typeof q==="function"};if(b(/x/)){g.isFunction=b=function(q){return typeof q==="function"&&c.call(q)==="[object Function]"}}g.isFunction=b;var j=Array.isArray||function(q){return q&&typeof q==="object"?c.call(q)==="[object Array]":false};g.isArray=j;function m(t,s){for(var r=0,q=t.length;r<q;r++){if(t[r]===s){return r}}return -1}function i(q){if(typeof q!=="string"){if(q&&q.toHTML){return q.toHTML()}else{if(q==null){return""}else{if(!q){return q+""}}}q=""+q}if(!f.test(q)){return q}return q.replace(a,p)}function h(q){if(!q&&q!==0){return true}else{if(j(q)&&q.length===0){return true}else{return false}}}function o(q){var r=l({},q);r._parent=q;return r}function k(r,q){r.path=q;return r}function e(q,r){return(q?q+".":"")+r}},function(c,a){a.__esModule=true;var d=["description","fileName","lineNumber","message","name","number","stack"];function b(j,i){var k=i&&i.loc,f=undefined,h=undefined;if(k){f=k.start.line;h=k.start.column;j+=" - "+f+":"+h}var g=Error.prototype.constructor.call(this,j);for(var e=0;e<d.length;e++){this[d[e]]=g[d[e]]}if(Error.captureStackTrace){Error.captureStackTrace(this,b)}if(k){this.lineNumber=f;this.column=h}}b.prototype=new Error();a["default"]=b;c.exports=a["default"]},function(e,s,f){var c=f(1)["default"];s.__esModule=true;s.registerDefaultHelpers=o;var a=f(8);var m=c(a);var k=f(9);var d=c(k);var g=f(10);var r=c(g);var i=f(11);var b=c(i);var n=f(12);var p=c(n);var l=f(13);var h=c(l);var j=f(14);var q=c(j);function o(t){m["default"](t);d["default"](t);r["default"](t);b["default"](t);p["default"](t);h["default"](t);q["default"](t)}},function(b,a,d){a.__esModule=true;var c=d(5);a["default"]=function(e){e.registerHelper("blockHelperMissing",function(h,g){var f=g.inverse,i=g.fn;if(h===true){return i(this)}else{if(h===false||h==null){return f(this)}else{if(c.isArray(h)){if(h.length>0){if(g.ids){g.ids=[g.name]}return e.helpers.each(h,g)}else{return f(this)}}else{if(g.data&&g.ids){var j=c.createFrame(g.data);j.contextPath=c.appendContextPath(g.data.contextPath,g.name);g={data:j}}return i(h,g)}}}})};b.exports=a["default"]},function(c,a,f){var d=f(1)["default"];a.__esModule=true;var e=f(5);var b=f(6);var g=d(b);a["default"]=function(h){h.registerHelper("each",function(k,v){if(!v){throw new g["default"]("Must pass iterator to #each")}var t=v.fn,o=v.inverse,q=0,s="",p=undefined,l=undefined;if(v.data&&v.ids){l=e.appendContextPath(v.data.contextPath,v.ids[0])+"."}if(e.isFunction(k)){k=k.call(this)}if(v.data){p=e.createFrame(v.data)}function m(w,i,j){if(k[w]==null){return}if(p){p.key=w;p.index=i;p.first=i===0;p.last=!!j;if(l){p.contextPath=l+w}}s=s+t(k[w],{data:p,blockParams:e.blockParams([k[w],w],[l+w,null])})}if(k&&typeof k==="object"){if(e.isArray(k)){for(var n=k.length;q<n;q++){m(q,q,q===k.length-1)}}else{var r=undefined;for(var u in k){if(k.hasOwnProperty(u)){if(r!==undefined){m(r,q-1)}r=u;q++}}if(r!==undefined){m(r,q-1,true)}}}if(q===0){s=o(this)}return s})};c.exports=a["default"]},function(c,a,e){var d=e(1)["default"];a.__esModule=true;var b=e(6);var f=d(b);a["default"]=function(g){g.registerHelper("helperMissing",function(){if(arguments.length===1){return undefined}else{throw new f["default"]('Missing helper: "'+arguments[arguments.length-1].name+'"')}})};c.exports=a["default"]},function(b,a,d){a.__esModule=true;var c=d(5);a["default"]=function(e){e.registerHelper("if",function(g,f){if(c.isFunction(g)){g=g.call(this)}if(!f.hash.includeZero&&!g||c.isEmpty(g)){return f.inverse(this)}else{return f.fn(this)}});e.registerHelper("unless",function(g,f){return e.helpers["if"].call(this,g,{fn:f.inverse,inverse:f.fn,hash:f.hash})})};b.exports=a["default"]},function(b,a){a.__esModule=true;a["default"]=function(c){c.registerHelper("log",function(){var e=[undefined],d=arguments[arguments.length-1];for(var f=0;f<arguments.length-1;f++){e.push(arguments[f])}var g=1;if(d.hash.level!=null){g=d.hash.level}else{if(d.data&&d.data.level!=null){g=d.data.level}}e[0]=g;c.log.apply(c,e)})};b.exports=a["default"]},function(b,a){a.__esModule=true;a["default"]=function(c){c.registerHelper("lookup",function(e,d){return e&&e[d]})};b.exports=a["default"]},function(b,a,d){a.__esModule=true;var c=d(5);a["default"]=function(e){e.registerHelper("with",function(g,f){if(c.isFunction(g)){g=g.call(this)}var h=f.fn;if(!c.isEmpty(g)){var i=f.data;if(f.data&&f.ids){i=c.createFrame(f.data);i.contextPath=c.appendContextPath(f.data.contextPath,f.ids[0])}return h(g,{data:i,blockParams:c.blockParams([g],[i&&i.contextPath])})}else{return f.inverse(this)}})};b.exports=a["default"]},function(d,c,g){var f=g(1)["default"];c.__esModule=true;c.registerDefaultDecorators=e;var b=g(16);var a=f(b);function e(h){a["default"](h)}},function(b,a,d){a.__esModule=true;var c=d(5);a["default"]=function(e){e.registerDecorator("inline",function(j,i,f,h){var g=j;if(!i.partials){i.partials={};g=function(n,l){var m=f.partials;f.partials=c.extend({},m,i.partials);var k=j(n,l);f.partials=m;return k}}i.partials[h.args[0]]=h.fn;return g})};b.exports=a["default"]},function(c,a){a.__esModule=true;var b={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function e(g){if(typeof g==="string"){var f=b.methodMap.indexOf(g.toLowerCase());if(f>=0){g=f}else{g=parseInt(g,10)}}return g},log:function d(j){j=b.lookupLevel(j);if(typeof console!=="undefined"&&b.lookupLevel(b.level)<=j){var i=b.methodMap[j];if(!console[i]){i="log"}for(var f=arguments.length,h=Array(f>1?f-1:0),g=1;g<f;g++){h[g-1]=arguments[g]}console[i].apply(console,h)}}};a["default"]=b;c.exports=a["default"]},function(b,a){a.__esModule=true;function c(d){this.string=d}c.prototype.toString=c.prototype.toHTML=function(){return""+this.string};a["default"]=c;b.exports=a["default"]},function(b,q,e){var p=e(3)["default"];var a=e(1)["default"];q.__esModule=true;q.checkRevision=k;q.template=n;q.wrapProgram=h;q.resolvePartial=j;q.invokePartial=r;q.noop=f;var i=e(5);var d=p(i);var l=e(6);var c=a(l);var m=e(4);function k(u){var t=u&&u[0]||1,w=m.COMPILER_REVISION;if(t!==w){if(t<w){var s=m.REVISION_CHANGES[w],v=m.REVISION_CHANGES[t];throw new c["default"]("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+v+").")}else{throw new c["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+u[1]+").")}}}function n(C,w){if(!w){throw new c["default"]("No environment passed to template")}if(!C||!C.main){throw new c["default"]("Unknown template object: "+typeof C)}C.main.decorator=C.main_d;w.VM.checkRevision(C.compiler);function D(H,K,I){if(I.hash){K=d.extend({},K,I.hash);if(I.ids){I.ids[0]=true}}H=w.VM.resolvePartial.call(this,H,K,I);var E=w.VM.invokePartial.call(this,H,K,I);if(E==null&&w.compile){I.partials[I.name]=w.compile(H,C.compilerOptions,w);E=I.partials[I.name](K,I)}if(E!=null){if(I.indent){var G=E.split("\n");for(var J=0,F=G.length;J<F;J++){if(!G[J]&&J+1===F){break}G[J]=I.indent+G[J]}E=G.join("\n")}return E}else{throw new c["default"]("The partial "+I.name+" could not be compiled when running in runtime-only mode")}}var s={strict:function B(F,E){if(!(E in F)){throw new c["default"]('"'+E+'" not defined in '+F)}return F[E]},lookup:function t(H,F){var E=H.length;for(var G=0;G<E;G++){if(H[G]&&H[G][F]!=null){return H[G][F]}}},lambda:function x(F,E){return typeof F==="function"?F.call(E):F},escapeExpression:d.escapeExpression,invokePartial:D,fn:function A(F){var E=C[F];E.decorator=C[F+"_d"];return E},programs:[],program:function v(G,J,F,I,K){var E=this.programs[G],H=this.fn(G);if(J||K||I||F){E=h(this,G,H,J,F,I,K)}else{if(!E){E=this.programs[G]=h(this,G,H)}}return E},data:function u(E,F){while(E&&F--){E=E._parent}return E},merge:function z(G,E){var F=G||E;if(G&&E&&G!==E){F=d.extend({},E,G)}return F},noop:w.VM.noop,compilerInfo:C.compiler};function y(G){var F=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];var I=F.data;y._setup(F);if(!F.partial&&C.useData){I=o(G,I)}var J=undefined,H=C.useBlockParams?[]:undefined;if(C.useDepths){if(F.depths){J=G!==F.depths[0]?[G].concat(F.depths):F.depths}else{J=[G]}}function E(K){return""+C.main(s,K,s.helpers,s.partials,I,H,J)}E=g(C.main,E,s,F.depths||[],I,H);return E(G,F)}y.isTop=true;y._setup=function(E){if(!E.partial){s.helpers=s.merge(E.helpers,w.helpers);if(C.usePartial){s.partials=s.merge(E.partials,w.partials)}if(C.usePartial||C.useDecorators){s.decorators=s.merge(E.decorators,w.decorators)}}else{s.helpers=E.helpers;s.partials=E.partials;s.decorators=E.decorators}};y._child=function(E,G,F,H){if(C.useBlockParams&&!F){throw new c["default"]("must pass block params")}if(C.useDepths&&!H){throw new c["default"]("must pass parent depths")}return h(s,E,C[E],G,0,F,H)};return y}function h(s,u,v,x,t,w,z){function y(B){var A=arguments.length<=1||arguments[1]===undefined?{}:arguments[1];var C=z;if(z&&B!==z[0]){C=[B].concat(z)}return v(s,B,s.helpers,s.partials,A.data||x,w&&[A.blockParams].concat(w),C)}y=g(v,y,s,z,x,w);y.program=u;y.depth=z?z.length:0;y.blockParams=t||0;return y}function j(s,u,t){if(!s){if(t.name==="@partial-block"){s=t.data["partial-block"]}else{s=t.partials[t.name]}}else{if(!s.call&&!t.name){t.name=s;s=t.partials[s]}}return s}function r(s,u,t){t.partial=true;if(t.ids){t.data.contextPath=t.ids[0]||t.data.contextPath}var v=undefined;if(t.fn&&t.fn!==f){v=t.data["partial-block"]=t.fn;if(v.partials){t.partials=d.extend({},t.partials,v.partials)}}if(s===undefined&&v){s=v}if(s===undefined){throw new c["default"]("The partial "+t.name+" could not be found")}else{if(s instanceof Function){return s(u,t)}}}function f(){return""}function o(s,t){if(!t||!("root" in t)){t=t?m.createFrame(t):{};t.root=s}return t}function g(u,x,s,y,w,v){if(u.decorator){var t={};x=u.decorator(x,t,s,y&&y[0],w,v,y);d.extend(x,t)}return x}},function(b,a){(function(c){a.__esModule=true;a["default"]=function(f){var d=typeof c!=="undefined"?c:window,e=d.Handlebars;f.noConflict=function(){if(d.Handlebars===f){d.Handlebars=e}}};b.exports=a["default"]}.call(a,(function(){return this}())))},function(c,a){a.__esModule=true;var e={helpers:{helperExpression:function d(g){return g.type==="SubExpression"||(g.type==="MustacheStatement"||g.type==="BlockStatement")&&!!(g.params&&g.params.length||g.hash)},scopedId:function f(g){return(/^\.|this\b/.test(g.original))},simpleId:function b(g){return g.parts.length===1&&!e.helpers.scopedId(g)&&!g.depth}}};a["default"]=e;c.exports=a["default"]},function(c,e,b){var m=b(1)["default"];var g=b(3)["default"];e.__esModule=true;e.parse=d;var h=b(23);var i=m(h);var f=b(24);var l=m(f);var a=b(26);var k=g(a);var n=b(5);e.parser=i["default"];var j={};n.extend(j,k);function d(o,p){if(o.type==="Program"){return o}i["default"].yy=j;j.locInfo=function(r){return new j.SourceLocation(p&&p.srcName,r)};var q=new l["default"](p);return q.accept(i["default"].parse(o))}},function(c,b){var a=(function(){var j={trace:function f(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition_plus0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,"$accept":0,"$end":1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,1],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function e(p,q,k,r,s,t,m){var n=t.length-1;switch(s){case 1:return t[n-1];break;case 2:this.$=r.prepareProgram(t[n]);break;case 3:this.$=t[n];break;case 4:this.$=t[n];break;case 5:this.$=t[n];break;case 6:this.$=t[n];break;case 7:this.$=t[n];break;case 8:this.$=t[n];break;case 9:this.$={type:"CommentStatement",value:r.stripComment(t[n]),strip:r.stripFlags(t[n],t[n]),loc:r.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:t[n],value:t[n],loc:r.locInfo(this._$)};break;case 11:this.$=r.prepareRawBlock(t[n-2],t[n-1],t[n],this._$);break;case 12:this.$={path:t[n-3],params:t[n-2],hash:t[n-1]};break;case 13:this.$=r.prepareBlock(t[n-3],t[n-2],t[n-1],t[n],false,this._$);break;case 14:this.$=r.prepareBlock(t[n-3],t[n-2],t[n-1],t[n],true,this._$);break;case 15:this.$={open:t[n-5],path:t[n-4],params:t[n-3],hash:t[n-2],blockParams:t[n-1],strip:r.stripFlags(t[n-5],t[n])};break;case 16:this.$={path:t[n-4],params:t[n-3],hash:t[n-2],blockParams:t[n-1],strip:r.stripFlags(t[n-5],t[n])};break;case 17:this.$={path:t[n-4],params:t[n-3],hash:t[n-2],blockParams:t[n-1],strip:r.stripFlags(t[n-5],t[n])};break;case 18:this.$={strip:r.stripFlags(t[n-1],t[n-1]),program:t[n]};break;case 19:var l=r.prepareBlock(t[n-2],t[n-1],t[n],t[n],false,this._$),o=r.prepareProgram([l],t[n-1].loc);o.chained=true;this.$={strip:t[n-2].strip,program:o,chain:true};break;case 20:this.$=t[n];break;case 21:this.$={path:t[n-1],strip:r.stripFlags(t[n-2],t[n])};break;case 22:this.$=r.prepareMustache(t[n-3],t[n-2],t[n-1],t[n-4],r.stripFlags(t[n-4],t[n]),this._$);break;case 23:this.$=r.prepareMustache(t[n-3],t[n-2],t[n-1],t[n-4],r.stripFlags(t[n-4],t[n]),this._$);break;case 24:this.$={type:"PartialStatement",name:t[n-3],params:t[n-2],hash:t[n-1],indent:"",strip:r.stripFlags(t[n-4],t[n]),loc:r.locInfo(this._$)};break;case 25:this.$=r.preparePartialBlock(t[n-2],t[n-1],t[n],this._$);break;case 26:this.$={path:t[n-3],params:t[n-2],hash:t[n-1],strip:r.stripFlags(t[n-4],t[n])};break;case 27:this.$=t[n];break;case 28:this.$=t[n];break;case 29:this.$={type:"SubExpression",path:t[n-3],params:t[n-2],hash:t[n-1],loc:r.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:t[n],loc:r.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:r.id(t[n-2]),value:t[n],loc:r.locInfo(this._$)};break;case 32:this.$=r.id(t[n-1]);break;case 33:this.$=t[n];break;case 34:this.$=t[n];break;case 35:this.$={type:"StringLiteral",value:t[n],original:t[n],loc:r.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(t[n]),original:Number(t[n]),loc:r.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:t[n]==="true",original:t[n]==="true",loc:r.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:undefined,value:undefined,loc:r.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:r.locInfo(this._$)};break;case 40:this.$=t[n];break;case 41:this.$=t[n];break;case 42:this.$=r.preparePath(true,t[n],this._$);break;case 43:this.$=r.preparePath(false,t[n],this._$);break;case 44:t[n-2].push({part:r.id(t[n]),original:t[n],separator:t[n-1]});this.$=t[n-2];break;case 45:this.$=[{part:r.id(t[n]),original:t[n]}];break;case 46:this.$=[];break;case 47:t[n-1].push(t[n]);break;case 48:this.$=[t[n]];break;case 49:t[n-1].push(t[n]);break;case 50:this.$=[];break;case 51:t[n-1].push(t[n]);break;case 58:this.$=[];break;case 59:t[n-1].push(t[n]);break;case 64:this.$=[];break;case 65:t[n-1].push(t[n]);break;case 70:this.$=[];break;case 71:t[n-1].push(t[n]);break;case 78:this.$=[];break;case 79:t[n-1].push(t[n]);break;case 82:this.$=[];break;case 83:t[n-1].push(t[n]);break;case 86:this.$=[];break;case 87:t[n-1].push(t[n]);break;case 90:this.$=[];break;case 91:t[n-1].push(t[n]);break;case 94:this.$=[];break;case 95:t[n-1].push(t[n]);break;case 98:this.$=[t[n]];break;case 99:t[n-1].push(t[n]);break;case 100:this.$=[t[n]];break;case 101:t[n-1].push(t[n]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{13:40,15:[1,20],17:39},{20:42,56:41,64:43,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:45,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:48,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:42,56:49,64:43,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:50,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,51]},{72:[1,35],86:52},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:53,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:54,38:56,39:[1,58],43:57,44:[1,59],45:55,47:[2,54]},{28:60,43:61,44:[1,59],47:[2,56]},{13:63,15:[1,20],18:[1,62]},{15:[2,48],18:[2,48]},{33:[2,86],57:64,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:65,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:66,47:[1,67]},{30:68,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:69,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:70,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:71,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:75,33:[2,80],50:72,63:73,64:76,65:[1,44],69:74,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,80]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,51]},{20:75,53:81,54:[2,84],63:82,64:76,65:[1,44],69:83,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:84,47:[1,67]},{47:[2,55]},{4:85,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:86,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:87,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:88,47:[1,67]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:75,33:[2,88],58:89,63:90,64:76,65:[1,44],69:91,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:92,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:93,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,31:94,33:[2,60],63:95,64:76,65:[1,44],69:96,70:77,71:78,72:[1,79],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,33:[2,66],36:97,63:98,64:76,65:[1,44],69:99,70:77,71:78,72:[1,79],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,22:100,23:[2,52],63:101,64:76,65:[1,44],69:102,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,33:[2,92],62:103,63:104,64:76,65:[1,44],69:105,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,106]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:107,72:[1,108],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,109],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,110]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:56,39:[1,58],43:57,44:[1,59],45:112,46:111,47:[2,76]},{33:[2,70],40:113,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,114]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:75,63:116,64:76,65:[1,44],67:115,68:[2,96],69:117,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,118]},{32:119,33:[2,62],74:120,75:[1,121]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:122,74:123,75:[1,121]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,124]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,125]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,109]},{20:75,63:126,64:76,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:75,33:[2,72],41:127,63:128,64:76,65:[1,44],69:129,70:77,71:78,72:[1,79],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,130]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,131]},{33:[2,63]},{72:[1,133],76:132},{33:[1,134]},{33:[2,69]},{15:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:135,74:136,75:[1,121]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,138],77:[1,137]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,139]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],55:[2,55],57:[2,20],61:[2,57],74:[2,81],83:[2,85],87:[2,18],91:[2,89],102:[2,53],105:[2,93],111:[2,19],112:[2,77],117:[2,97],120:[2,63],123:[2,69],124:[2,12],136:[2,75],137:[2,32]},parseError:function g(l,k){throw new Error(l)},parse:function i(v){var C=this,s=[0],L=[null],x=[],M=this.table,l="",w=0,J=0,n=0,u=2,z=1;this.lexer.setInput(v);this.lexer.yy=this.yy;this.yy.lexer=this.lexer;this.yy.parser=this;if(typeof this.lexer.yylloc=="undefined"){this.lexer.yylloc={}}var m=this.lexer.yylloc;x.push(m);var o=this.lexer.options&&this.lexer.options.ranges;if(typeof this.yy.parseError==="function"){this.parseError=this.yy.parseError}function B(p){s.length=s.length-2*p;L.length=L.length-p;x.length=x.length-p}function A(){var p;p=C.lexer.lex()||1;if(typeof p!=="number"){p=C.symbols_[p]||p}return p}var I,E,q,H,N,y,G={},D,K,k,t;while(true){q=s[s.length-1];if(this.defaultActions[q]){H=this.defaultActions[q]}else{if(I===null||typeof I=="undefined"){I=A()}H=M[q]&&M[q][I]}if(typeof H==="undefined"||!H.length||!H[0]){var F="";if(!n){t=[];for(D in M[q]){if(this.terminals_[D]&&D>2){t.push("'"+this.terminals_[D]+"'")}}if(this.lexer.showPosition){F="Parse error on line "+(w+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+t.join(", ")+", got '"+(this.terminals_[I]||I)+"'"}else{F="Parse error on line "+(w+1)+": Unexpected "+(I==1?"end of input":"'"+(this.terminals_[I]||I)+"'")}this.parseError(F,{text:this.lexer.match,token:this.terminals_[I]||I,line:this.lexer.yylineno,loc:m,expected:t})}}if(H[0] instanceof Array&&H.length>1){throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+I)}switch(H[0]){case 1:s.push(I);L.push(this.lexer.yytext);x.push(this.lexer.yylloc);s.push(H[1]);I=null;if(!E){J=this.lexer.yyleng;l=this.lexer.yytext;w=this.lexer.yylineno;m=this.lexer.yylloc;if(n>0){n--}}else{I=E;E=null}break;case 2:K=this.productions_[H[1]][1];G.$=L[L.length-K];G._$={first_line:x[x.length-(K||1)].first_line,last_line:x[x.length-1].last_line,first_column:x[x.length-(K||1)].first_column,last_column:x[x.length-1].last_column};if(o){G._$.range=[x[x.length-(K||1)].range[0],x[x.length-1].range[1]]}y=this.performAction.call(G,l,J,w,this.yy,H[1],L,x);if(typeof y!=="undefined"){return y}if(K){s=s.slice(0,-1*K*2);L=L.slice(0,-1*K);x=x.slice(0,-1*K)}s.push(this.productions_[H[1]][0]);L.push(G.$);x.push(G._$);k=M[s[s.length-2]][s[s.length-1]];s.push(k);break;case 3:return true}}return true}};var d=(function(){var m={EOF:1,parseError:function o(C,B){if(this.yy.parser){this.yy.parser.parseError(C,B)}else{throw new Error(C)}},setInput:function n(B){this._input=B;this._more=this._less=this.done=false;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges){this.yylloc.range=[0,0]}this.offset=0;return this},input:function x(){var C=this._input[0];this.yytext+=C;this.yyleng++;this.offset++;this.match+=C;this.matched+=C;var B=C.match(/(?:\r\n?|\n).*/g);if(B){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges){this.yylloc.range[1]++}this._input=this._input.slice(1);return C},unput:function v(D){var B=D.length;var C=D.split(/(?:\r\n?|\n)/g);this._input=D+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-B-1);this.offset-=B;var F=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(C.length-1){this.yylineno-=C.length-1}var E=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:C?(C.length===F.length?this.yylloc.first_column:0)+F[F.length-C.length].length-C[0].length:this.yylloc.first_column-B};if(this.options.ranges){this.yylloc.range=[E[0],E[0]+this.yyleng-B]}return this},more:function t(){this._more=true;return this},less:function y(B){this.unput(this.match.slice(B))},pastInput:function r(){var B=this.matched.substr(0,this.matched.length-this.match.length);return(B.length>20?"...":"")+B.substr(-20).replace(/\n/g,"")},upcomingInput:function z(){var B=this.match;if(B.length<20){B+=this._input.substr(0,20-B.length)}return(B.substr(0,20)+(B.length>20?"...":"")).replace(/\n/g,"")},showPosition:function u(){var B=this.pastInput();var C=new Array(B.length+1).join("-");return B+this.upcomingInput()+"\n"+C+"^"},next:function q(){if(this.done){return this.EOF}if(!this._input){this.done=true}var H,F,C,E,D,B;if(!this._more){this.yytext="";this.match=""}var I=this._currentRules();for(var G=0;G<I.length;G++){C=this._input.match(this.rules[I[G]]);if(C&&(!F||C[0].length>F[0].length)){F=C;E=G;if(!this.options.flex){break}}}if(F){B=F[0].match(/(?:\r\n?|\n).*/g);if(B){this.yylineno+=B.length}this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:B?B[B.length-1].length-B[B.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+F[0].length};this.yytext+=F[0];this.match+=F[0];this.matches=F;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._input=this._input.slice(F[0].length);this.matched+=F[0];H=this.performAction.call(this,this.yy,this,I[E],this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(H){return H}else{return}}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}},lex:function k(){var B=this.next();if(typeof B!=="undefined"){return B}else{return this.lex()}},begin:function l(B){this.conditionStack.push(B)},popState:function p(){return this.conditionStack.pop()},_currentRules:function A(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function s(){return this.conditionStack[this.conditionStack.length-2]},pushState:function l(B){this.begin(B)}};m.options={};m.performAction=function w(G,C,F,B){function D(I,H){return C.yytext=C.yytext.substr(I,C.yyleng-H)}var E=B;switch(F){case 0:if(C.yytext.slice(-2)==="\\\\"){D(0,1);this.begin("mu")}else{if(C.yytext.slice(-1)==="\\"){D(0,1);this.begin("emu")}else{this.begin("mu")}}if(C.yytext){return 15}break;case 1:return 15;break;case 2:this.popState();return 15;break;case 3:this.begin("raw");return 15;break;case 4:this.popState();if(this.conditionStack[this.conditionStack.length-1]==="raw"){return 15}else{C.yytext=C.yytext.substr(5,C.yyleng-9);return"END_RAW_BLOCK"}break;case 5:return 15;break;case 6:this.popState();return 14;break;case 7:return 65;break;case 8:return 68;break;case 9:return 19;break;case 10:this.popState();this.begin("raw");return 23;break;case 11:return 55;break;case 12:return 60;break;case 13:return 29;break;case 14:return 47;break;case 15:this.popState();return 44;break;case 16:this.popState();return 44;break;case 17:return 34;break;case 18:return 39;break;case 19:return 51;break;case 20:return 48;break;case 21:this.unput(C.yytext);this.popState();this.begin("com");break;case 22:this.popState();return 14;break;case 23:return 48;break;case 24:return 73;break;case 25:return 72;break;case 26:return 72;break;case 27:return 87;break;case 28:break;case 29:this.popState();return 54;break;case 30:this.popState();return 33;break;case 31:C.yytext=D(1,2).replace(/\\"/g,'"');return 80;break;case 32:C.yytext=D(1,2).replace(/\\'/g,"'");return 80;break;case 33:return 85;break;case 34:return 82;break;case 35:return 82;break;case 36:return 83;break;case 37:return 84;break;case 38:return 81;break;case 39:return 75;break;case 40:return 77;break;case 41:return 72;break;case 42:return 72;break;case 43:return"INVALID";break;case 44:return 5;break}};m.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/];m.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:false},emu:{rules:[2],inclusive:false},com:{rules:[6],inclusive:false},raw:{rules:[3,4,5],inclusive:false},INITIAL:{rules:[0,1,44],inclusive:true}};return m})();j.lexer=d;function h(){this.yy={}}h.prototype=j;j.Parser=h;return new h()})();b.__esModule=true;b["default"]=a},function(b,c,a){var j=a(1)["default"];c.__esModule=true;var e=a(25);var k=j(e);function d(){var l=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];this.options=l}d.prototype=new k["default"]();d.prototype.Program=function(t){var v=!this.options.ignoreStandalone;var p=!this.isRootSeen;this.isRootSeen=true;var u=t.body;for(var s=0,q=u.length;s<q;s++){var w=u[s],m=this.accept(w);if(!m){continue}var o=f(u,s,p),r=h(u,s,p),n=m.openStandalone&&o,y=m.closeStandalone&&r,x=m.inlineStandalone&&o&&r;if(m.close){g(u,s,true)}if(m.open){i(u,s,true)}if(v&&x){g(u,s);if(i(u,s)){if(w.type==="PartialStatement"){w.indent=/([ \t]+$)/.exec(u[s-1].original)[1]}}}if(v&&n){g((w.program||w.inverse).body);i(u,s)}if(v&&y){g(u,s);i((w.inverse||w.program).body)}}return t};d.prototype.BlockStatement=d.prototype.DecoratorBlock=d.prototype.PartialBlockStatement=function(r){this.accept(r.program);this.accept(r.inverse);var n=r.program||r.inverse,l=r.program&&r.inverse,m=l,q=l;if(l&&l.chained){m=l.body[0].program;while(q.chained){q=q.body[q.body.length-1].program}}var o={open:r.openStrip.open,close:r.closeStrip.close,openStandalone:h(n.body),closeStandalone:f((m||n).body)};if(r.openStrip.close){g(n.body,null,true)}if(l){var p=r.inverseStrip;if(p.open){i(n.body,null,true)}if(p.close){g(m.body,null,true)}if(r.closeStrip.open){i(q.body,null,true)}if(!this.options.ignoreStandalone&&f(n.body)&&h(m.body)){i(n.body);g(m.body)}}else{if(r.closeStrip.open){i(n.body,null,true)}}return o};d.prototype.Decorator=d.prototype.MustacheStatement=function(l){return l.strip};d.prototype.PartialStatement=d.prototype.CommentStatement=function(m){var l=m.strip||{};return{inlineStandalone:true,open:l.open,close:l.close}};function f(l,n,m){if(n===undefined){n=l.length}var p=l[n-1],o=l[n-2];if(!p){return m}if(p.type==="ContentStatement"){return(o||!m?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(p.original)}}function h(l,n,m){if(n===undefined){n=-1}var p=l[n+1],o=l[n+2];if(!p){return m}if(p.type==="ContentStatement"){return(o||!m?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(p.original)}}function g(m,o,l){var p=m[o==null?0:o+1];if(!p||p.type!=="ContentStatement"||!l&&p.rightStripped){return}var n=p.value;p.value=p.value.replace(l?/^\s+/:/^[ \t]*\r?\n?/,"");p.rightStripped=p.value!==n}function i(m,o,l){var p=m[o==null?m.length-1:o-1];if(!p||p.type!=="ContentStatement"||!l&&p.leftStripped){return}var n=p.value;p.value=p.value.replace(l?/\s+$/:/[ \t]+$/,"");p.leftStripped=p.value!==n;return p.leftStripped}c["default"]=d;b.exports=c["default"]},function(c,y,e){var a=e(1)["default"];y.__esModule=true;var t=e(6);var d=a(t);function x(){this.parents=[]}x.prototype={constructor:x,mutating:false,acceptKey:function q(B,A){var C=this.accept(B[A]);if(this.mutating){if(C&&!x.prototype[C.type]){throw new d["default"]('Unexpected node type "'+C.type+'" found when accepting '+A+" on "+B.type)}B[A]=C}},acceptRequired:function u(B,A){this.acceptKey(B,A);if(!B[A]){throw new d["default"](B.type+" requires "+A)}},acceptArray:function v(C){for(var B=0,A=C.length;B<A;B++){this.acceptKey(C,B);if(!C[B]){C.splice(B,1);B--;A--}}},accept:function f(B){if(!B){return}if(!this[B.type]){throw new d["default"]("Unknown type: "+B.type,B)}if(this.current){this.parents.unshift(this.current)}this.current=B;var A=this[B.type](B);this.current=this.parents.shift();if(!this.mutating||A){return A}else{if(A!==false){return B}}},Program:function w(A){this.acceptArray(A.body)},MustacheStatement:n,Decorator:n,BlockStatement:h,DecoratorBlock:h,PartialStatement:z,PartialBlockStatement:function b(A){z.call(this,A);this.acceptKey(A,"program")},ContentStatement:function s(){},CommentStatement:function m(){},SubExpression:n,PathExpression:function g(){},StringLiteral:function p(){},NumberLiteral:function r(){},BooleanLiteral:function l(){},UndefinedLiteral:function o(){},NullLiteral:function k(){},Hash:function i(A){this.acceptArray(A.pairs)},HashPair:function j(A){this.acceptRequired(A,"value")}};function n(A){this.acceptRequired(A,"path");this.acceptArray(A.params);this.acceptKey(A,"hash")}function h(A){n.call(this,A);this.acceptKey(A,"program");this.acceptKey(A,"inverse")}function z(A){this.acceptRequired(A,"name");this.acceptArray(A.params);this.acceptKey(A,"hash")}y["default"]=x;c.exports=y["default"]},function(d,h,c){var q=c(1)["default"];h.__esModule=true;h.SourceLocation=l;h.id=b;h.stripFlags=g;h.stripComment=o;h.preparePath=f;h.prepareMustache=k;h.prepareRawBlock=n;h.prepareBlock=p;h.prepareProgram=j;h.preparePartialBlock=m;var e=c(6);var a=q(e);function i(r,t){t=t.path?t.path.original:t;if(r.path.original!==t){var s={loc:r.path.loc};throw new a["default"](r.path.original+" doesn't match "+t,s)}}function l(s,r){this.source=s;this.start={line:r.first_line,column:r.first_column};this.end={line:r.last_line,column:r.last_column}}function b(r){if(/^\[.*\]$/.test(r)){return r.substr(1,r.length-2)}else{return r}}function g(r,s){return{open:r.charAt(2)==="~",close:s.charAt(s.length-3)==="~"}}function o(r){return r.replace(/^\{\{~?\!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function f(y,w,A){A=this.locInfo(A);var u=y?"@":"",B=[],x=0,t="";for(var z=0,v=w.length;z<v;z++){var s=w[z].part,r=w[z].original!==s;u+=(w[z].separator||"")+s;if(!r&&(s===".."||s==="."||s==="this")){if(B.length>0){throw new a["default"]("Invalid path: "+u,{loc:A})}else{if(s===".."){x++;t+="../"}}}else{B.push(s)}}return{type:"PathExpression",data:y,depth:x,parts:B,original:u,loc:A}}function k(z,t,v,w,s,y){var x=w.charAt(3)||w.charAt(2),r=x!=="{"&&x!=="&";var u=/\*/.test(w);return{type:u?"Decorator":"MustacheStatement",path:z,params:t,hash:v,escaped:r,strip:s,loc:this.locInfo(y)}}function n(r,u,v,t){i(r,v);t=this.locInfo(t);var s={type:"Program",body:u,strip:{},loc:t};return{type:"BlockStatement",path:r.path,params:r.params,hash:r.hash,program:s,openStrip:{},inverseStrip:{},closeStrip:{},loc:t}}function p(w,v,x,z,s,y){if(z&&z.path){i(w,z)}var t=/\*/.test(w.open);v.blockParams=w.blockParams;var u=undefined,r=undefined;if(x){if(t){throw new a["default"]("Unexpected inverse block on decorator",x)}if(x.chain){x.program.body[0].closeStrip=z.strip}r=x.strip;u=x.program}if(s){s=u;u=v;v=s}return{type:t?"DecoratorBlock":"BlockStatement",path:w.path,params:w.params,hash:w.hash,program:v,inverse:u,openStrip:w.strip,inverseStrip:r,closeStrip:z&&z.strip,loc:this.locInfo(y)}}function j(r,u){if(!u&&r.length){var t=r[0].loc,s=r[r.length-1].loc;if(t&&s){u={source:t.source,start:{line:t.start.line,column:t.start.column},end:{line:s.end.line,column:s.end.column}}}}return{type:"Program",body:r,strip:{},loc:u}}function m(s,r,u,t){i(s,u);return{type:"PartialBlockStatement",name:s.path,params:s.params,hash:s.hash,program:r,openStrip:s.strip,closeStrip:u&&u.strip,loc:this.locInfo(t)}}},function(d,J,j){var S=j(1)["default"];J.__esModule=true;J.Compiler=x;J.precompile=R;J.compile=k;var Q=j(6);var t=S(Q);var b=j(5);var a=j(21);var e=S(a);var p=[].slice;function x(){}x.prototype={compiler:x,equals:function w(U){var T=this.opcodes.length;if(U.opcodes.length!==T){return false}for(var W=0;W<T;W++){var X=this.opcodes[W],V=U.opcodes[W];if(X.opcode!==V.opcode||!v(X.args,V.args)){return false}}T=this.children.length;for(var W=0;W<T;W++){if(!this.children[W].equals(U.children[W])){return false}}return true},guid:0,compile:function k(U,V){this.sourceNode=[];this.opcodes=[];this.children=[];this.options=V;this.stringParams=V.stringParams;this.trackIds=V.trackIds;V.blockParams=V.blockParams||[];var W=V.knownHelpers;V.knownHelpers={helperMissing:true,blockHelperMissing:true,each:true,"if":true,unless:true,"with":true,log:true,lookup:true};if(W){for(var T in W){if(T in W){V.knownHelpers[T]=W[T]}}}return this.accept(U)},compileProgram:function o(U){var W=new this.compiler(),T=W.compile(U,this.options),V=this.guid++;this.usePartial=this.usePartial||T.usePartial;this.children[V]=T;this.useDepths=this.useDepths||T.useDepths;return V},accept:function f(U){if(!this[U.type]){throw new t["default"]("Unknown type: "+U.type,U)}this.sourceNode.unshift(U);var T=this[U.type](U);this.sourceNode.shift();return T},Program:function P(U){this.options.blockParams.unshift(U.blockParams);var T=U.body,W=T.length;for(var V=0;V<W;V++){this.accept(T[V])}this.options.blockParams.shift();this.isSimple=W===1;this.blockParams=U.blockParams?U.blockParams.length:0;return this},BlockStatement:function O(W){g(W);var U=W.program,T=W.inverse;U=U&&this.compileProgram(U);T=T&&this.compileProgram(T);var V=this.classifySexpr(W);if(V==="helper"){this.helperSexpr(W,U,T)}else{if(V==="simple"){this.simpleSexpr(W);this.opcode("pushProgram",U);this.opcode("pushProgram",T);this.opcode("emptyHash");this.opcode("blockValue",W.path.original)}else{this.ambiguousSexpr(W,U,T);this.opcode("pushProgram",U);this.opcode("pushProgram",T);this.opcode("emptyHash");this.opcode("ambiguousBlockValue")}}this.opcode("append")},DecoratorBlock:function r(U){var T=U.program&&this.compileProgram(U.program);var W=this.setupFullMustacheParams(U,T,undefined),V=U.path;this.useDecorators=true;this.opcode("registerDecorator",W.length,V.original)},PartialStatement:function K(W){this.usePartial=true;var V=W.program;if(V){V=this.compileProgram(W.program)}var Y=W.params;if(Y.length>1){throw new t["default"]("Unsupported number of partial arguments: "+Y.length,W)}else{if(!Y.length){if(this.options.explicitPartialContext){this.opcode("pushLiteral","undefined")}else{Y.push({type:"PathExpression",parts:[],depth:0})}}}var X=W.name.original,U=W.name.type==="SubExpression";if(U){this.accept(W.name)}this.setupFullMustacheParams(W,V,undefined,true);var T=W.indent||"";if(this.options.preventIndent&&T){this.opcode("appendContent",T);T=""}this.opcode("invokePartial",U,X,T);this.opcode("append")},PartialBlockStatement:function G(T){this.PartialStatement(T)},MustacheStatement:function z(T){this.SubExpression(T);if(T.escaped&&!this.options.noEscape){this.opcode("appendEscaped")}else{this.opcode("append")}},Decorator:function h(T){this.DecoratorBlock(T)},ContentStatement:function i(T){if(T.value){this.opcode("appendContent",T.value)}},CommentStatement:function y(){},SubExpression:function H(U){g(U);var T=this.classifySexpr(U);if(T==="simple"){this.simpleSexpr(U)}else{if(T==="helper"){this.helperSexpr(U)}else{this.ambiguousSexpr(U)}}},ambiguousSexpr:function u(X,V,U){var Y=X.path,W=Y.parts[0],T=V!=null||U!=null;this.opcode("getContext",Y.depth);this.opcode("pushProgram",V);this.opcode("pushProgram",U);Y.strict=true;this.accept(Y);this.opcode("invokeAmbiguous",W,T)},simpleSexpr:function E(T){var U=T.path;U.strict=true;this.accept(U);this.opcode("resolvePossibleLambda")},helperSexpr:function q(W,U,T){var Y=this.setupFullMustacheParams(W,U,T),X=W.path,V=X.parts[0];if(this.options.knownHelpers[V]){this.opcode("invokeKnownHelper",Y.length,V)}else{if(this.options.knownHelpersOnly){throw new t["default"]("You specified knownHelpersOnly, but used the unknown helper "+V,W)}else{X.strict=true;X.falsy=true;this.accept(X);this.opcode("invokeHelper",Y.length,X.original,e["default"].helpers.simpleId(X))}}},PathExpression:function c(U){this.addDepth(U.depth);this.opcode("getContext",U.depth);var T=U.parts[0],W=e["default"].helpers.scopedId(U),V=!U.depth&&!W&&this.blockParamIndex(T);if(V){this.opcode("lookupBlockParam",V,U.parts)}else{if(!T){this.opcode("pushContext")}else{if(U.data){this.options.data=true;this.opcode("lookupData",U.depth,U.parts,U.strict)}else{this.opcode("lookupOnContext",U.parts,U.falsy,U.strict,W)}}}},StringLiteral:function l(T){this.opcode("pushString",T.value)},NumberLiteral:function C(T){this.opcode("pushLiteral",T.value)},BooleanLiteral:function M(T){this.opcode("pushLiteral",T.value)},UndefinedLiteral:function m(){this.opcode("pushLiteral","undefined")},NullLiteral:function N(){this.opcode("pushLiteral","null")},Hash:function B(W){var V=W.pairs,U=0,T=V.length;this.opcode("pushHash");for(;U<T;U++){this.pushParam(V[U].value)}while(U--){this.opcode("assignToHash",V[U].key)}this.opcode("popHash")},opcode:function D(T){this.opcodes.push({opcode:T,args:p.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function s(T){if(!T){return}this.useDepths=true},classifySexpr:function I(W){var X=e["default"].helpers.simpleId(W.path);var Y=X&&!!this.blockParamIndex(W.path.parts[0]);var V=!Y&&e["default"].helpers.helperExpression(W);var Z=!Y&&(V||X);if(Z&&!V){var T=W.path.parts[0],U=this.options;if(U.knownHelpers[T]){V=true}else{if(U.knownHelpersOnly){Z=false}}}if(V){return"helper"}else{if(Z){return"ambiguous"}else{return"simple"}}},pushParams:function L(V){for(var U=0,T=V.length;U<T;U++){this.pushParam(V[U])}},pushParam:function F(W){var V=W.value!=null?W.value:W.original||"";if(this.stringParams){if(V.replace){V=V.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")}if(W.depth){this.addDepth(W.depth)}this.opcode("getContext",W.depth||0);this.opcode("pushStringParam",V,W.type);if(W.type==="SubExpression"){this.accept(W)}}else{if(this.trackIds){var U=undefined;if(W.parts&&!e["default"].helpers.scopedId(W)&&!W.depth){U=this.blockParamIndex(W.parts[0])}if(U){var T=W.parts.slice(1).join(".");this.opcode("pushId","BlockParam",U,T)}else{V=W.original||V;if(V.replace){V=V.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")}this.opcode("pushId",W.type,V)}}this.accept(W)}},setupFullMustacheParams:function A(W,U,T,V){var X=W.params;this.pushParams(X);this.opcode("pushProgram",U);this.opcode("pushProgram",T);if(W.hash){this.accept(W.hash)}else{this.opcode("emptyHash",V)}return X},blockParamIndex:function n(U){for(var X=0,T=this.options.blockParams.length;X<T;X++){var V=this.options.blockParams[X],W=V&&b.indexOf(V,U);if(V&&W>=0){return[X,W]}}}};function R(V,W,X){if(V==null||typeof V!=="string"&&V.type!=="Program"){throw new t["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+V)}W=W||{};if(!("data" in W)){W.data=true}if(W.compat){W.useDepths=true}var U=X.parse(V,W),T=new X.Compiler().compile(U,W);return new X.JavaScriptCompiler().compile(T,W)}function k(T,V,W){if(V===undefined){V={}}if(T==null||typeof T!=="string"&&T.type!=="Program"){throw new t["default"]("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+T)}if(!("data" in V)){V.data=true}if(V.compat){V.useDepths=true}var Y=undefined;function X(){var ab=W.parse(T,V),aa=new W.Compiler().compile(ab,V),Z=new W.JavaScriptCompiler().compile(aa,V,undefined,true);return W.template(Z)}function U(Z,aa){if(!Y){Y=X()}return Y.call(this,Z,aa)}U._setup=function(Z){if(!Y){Y=X()}return Y._setup(Z)};U._child=function(Z,ab,aa,ac){if(!Y){Y=X()}return Y._child(Z,ab,aa,ac)};return U}function v(U,T){if(U===T){return true}if(b.isArray(U)&&b.isArray(T)&&U.length===T.length){for(var V=0;V<U.length;V++){if(!v(U[V],T[V])){return false}}return true}}function g(U){if(!U.path.parts){var T=U.path;U.path={type:"PathExpression",data:false,depth:0,parts:[T.original+""],original:T.original+"",loc:T.loc}}}},function(g,ag,p){var ap=p(1)["default"];ag.__esModule=true;var E=p(4);var al=p(6);var I=ap(al);var b=p(5);var Y=p(29);var J=ap(Y);function j(ar){this.value=ar}function c(){}c.prototype={nameLookup:function O(at,ar){if(c.isValidJavaScriptVariableName(ar)){return[at,".",ar]}else{return[at,"[",JSON.stringify(ar),"]"]}},depthedLookup:function P(ar){return[this.aliasable("container.lookup"),'(depths, "',ar,'")']},compilerInfo:function z(){var at=E.COMPILER_REVISION,ar=E.REVISION_CHANGES[at];return[at,ar]},appendToBuffer:function an(au,ar,at){if(!b.isArray(au)){au=[au]}au=this.source.wrap(au,ar);if(this.environment.isSimple){return["return ",au,";"]}else{if(at){return["buffer += ",au,";"]}else{au.appendToBuffer=true;return au}}},initializeBuffer:function aj(){return this.quotedString("")},compile:function q(aw,aF,at,az){this.environment=aw;this.options=aF;this.stringParams=this.options.stringParams;this.trackIds=this.options.trackIds;this.precompile=!az;this.name=this.environment.name;this.isChild=!!at;this.context=at||{decorators:[],programs:[],environments:[]};this.preamble();this.stackSlot=0;this.stackVars=[];this.aliases={};this.registers={list:[]};this.hashes=[];this.compileStack=[];this.inlineStack=[];this.blockParams=[];this.compileChildren(aw,aF);this.useDepths=this.useDepths||aw.useDepths||aw.useDecorators||this.options.compat;this.useBlockParams=this.useBlockParams||aw.useBlockParams;var aB=aw.opcodes,ax=undefined,aD=undefined,ay=undefined,av=undefined;for(ay=0,av=aB.length;ay<av;ay++){ax=aB[ay];this.source.currentLocation=ax.loc;aD=aD||ax.loc;this[ax.opcode].apply(this,ax.args)}this.source.currentLocation=aD;this.pushSource("");if(this.stackSlot||this.inlineStack.length||this.compileStack.length){throw new I["default"]("Compile completed with content left on stack")}if(!this.decorators.isEmpty()){this.useDecorators=true;this.decorators.prepend("var decorators = container.decorators;\n");this.decorators.push("return fn;");if(az){this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()])}else{this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n");this.decorators.push("}\n");this.decorators=this.decorators.merge()}}else{this.decorators=undefined}var aC=this.createFunctionContext(az);if(!this.isChild){var aA={compiler:this.compilerInfo(),main:aC};if(this.decorators){aA.main_d=this.decorators;aA.useDecorators=true}var ar=this.context;var au=ar.programs;var aE=ar.decorators;for(ay=0,av=au.length;ay<av;ay++){if(au[ay]){aA[ay]=au[ay];if(aE[ay]){aA[ay+"_d"]=aE[ay];aA.useDecorators=true}}}if(this.environment.usePartial){aA.usePartial=true}if(this.options.data){aA.useData=true}if(this.useDepths){aA.useDepths=true}if(this.useBlockParams){aA.useBlockParams=true}if(this.options.compat){aA.compat=true}if(!az){aA.compiler=JSON.stringify(aA.compiler);this.source.currentLocation={start:{line:1,column:0}};aA=this.objectLiteral(aA);if(aF.srcName){aA=aA.toStringWithSourceMap({file:aF.destName});aA.map=aA.map&&aA.map.toString()}else{aA=aA.toString()}}else{aA.compilerOptions=this.options}return aA}else{return aC}},preamble:function X(){this.lastContext=0;this.source=new J["default"](this.options.srcName);this.decorators=new J["default"](this.options.srcName)},createFunctionContext:function am(at){var ay="";var ax=this.stackVars.concat(this.registers.list);if(ax.length>0){ay+=", "+ax.join(", ")}var aw=0;for(var ar in this.aliases){var au=this.aliases[ar];if(this.aliases.hasOwnProperty(ar)&&au.children&&au.referenceCount>1){ay+=", alias"+ ++aw+"="+ar;au.children[0]="alias"+aw}}var az=["container","depth0","helpers","partials","data"];if(this.useBlockParams||this.useDepths){az.push("blockParams")}if(this.useDepths){az.push("depths")}var av=this.mergeSource(ay);if(at){az.push(av);return Function.apply(this,az)}else{return this.source.wrap(["function(",az.join(","),") {\n  ",av,"}"])}},mergeSource:function C(ax){var av=this.environment.isSimple,au=!this.forceBuffer,ar=undefined,at=undefined,aw=undefined,ay=undefined;this.source.each(function(az){if(az.appendToBuffer){if(aw){az.prepend("  + ")}else{aw=az}ay=az}else{if(aw){if(!at){ar=true}else{aw.prepend("buffer += ")}ay.add(";");aw=ay=undefined}at=true;if(!av){au=false}}});if(au){if(aw){aw.prepend("return ");ay.add(";")}else{if(!at){this.source.push('return "";')}}}else{ax+=", buffer = "+(ar?"":this.initializeBuffer());if(aw){aw.prepend("return buffer + ");ay.add(";")}else{this.source.push("return buffer;")}}if(ax){this.source.prepend("var "+ax.substring(2)+(ar?"":";\n"))}return this.source.merge()},blockValue:function d(at){var au=this.aliasable("helpers.blockHelperMissing"),av=[this.contextName(0)];this.setupHelperArgs(at,0,av);var ar=this.popStack();av.splice(1,0,ar);this.push(this.source.functionCall(au,"call",av))},ambiguousBlockValue:function T(){var ar=this.aliasable("helpers.blockHelperMissing"),au=[this.contextName(0)];this.setupHelperArgs("",0,au,true);this.flushInline();var at=this.topStack();au.splice(1,0,at);this.pushSource(["if (!",this.lastHelper,") { ",at," = ",this.source.functionCall(ar,"call",au),"}"])},appendContent:function f(ar){if(this.pendingContent){ar=this.pendingContent+ar}else{this.pendingLocation=this.source.currentLocation}this.pendingContent=ar},append:function aa(){if(this.isInline()){this.replaceStack(function(at){return[" != null ? ",at,' : ""']});this.pushSource(this.appendToBuffer(this.popStack()))}else{var ar=this.popStack();this.pushSource(["if (",ar," != null) { ",this.appendToBuffer(ar,undefined,true)," }"]);if(this.environment.isSimple){this.pushSource(["else { ",this.appendToBuffer("''",undefined,true)," }"])}}},appendEscaped:function m(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function A(ar){this.lastContext=ar},pushContext:function t(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function aq(av,au,ar,aw){var at=0;if(!aw&&this.options.compat&&!this.lastContext){this.push(this.depthedLookup(av[at++]))}else{this.pushContext()}this.resolvePath("context",av,at,au,ar)},lookupBlockParam:function B(at,ar){this.useBlockParams=true;this.push(["blockParams[",at[0],"][",at[1],"]"]);this.resolvePath("context",ar,1)},lookupData:function o(au,at,ar){if(!au){this.pushStackLiteral("data")}else{this.pushStackLiteral("container.data(data, "+au+")")}this.resolvePath("data",at,0,true,ar)},resolvePath:function Q(av,ax,au,aw,at){var ay=this;if(this.options.strict||this.options.assumeObjects){this.push(V(this.options.strict&&at,this,ax,av));return}var ar=ax.length;for(;au<ar;au++){this.replaceStack(function(aA){var az=ay.nameLookup(aA,ax[au],av);if(!aw){return[" != null ? ",az," : ",aA]}else{return[" && ",az]}})}},resolvePossibleLambda:function af(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function ao(ar,at){this.pushContext();this.pushString(at);if(at!=="SubExpression"){if(typeof ar==="string"){this.pushString(ar)}else{this.pushStackLiteral(ar)}}},emptyHash:function x(ar){if(this.trackIds){this.push("{}")}if(this.stringParams){this.push("{}");this.push("{}")}this.pushStackLiteral(ar?"undefined":"{}")},pushHash:function R(){if(this.hash){this.hashes.push(this.hash)}this.hash={values:[],types:[],contexts:[],ids:[]}},popHash:function N(){var ar=this.hash;this.hash=this.hashes.pop();if(this.trackIds){this.push(this.objectLiteral(ar.ids))}if(this.stringParams){this.push(this.objectLiteral(ar.contexts));this.push(this.objectLiteral(ar.types))}this.push(this.objectLiteral(ar.values))},pushString:function k(ar){this.pushStackLiteral(this.quotedString(ar))},pushLiteral:function H(ar){this.pushStackLiteral(ar)},pushProgram:function v(ar){if(ar!=null){this.pushStackLiteral(this.programExpression(ar))}else{this.pushStackLiteral(null)}},registerDecorator:function K(av,au){var ar=this.nameLookup("decorators",au,"decorator"),at=this.setupHelperArgs(au,av);this.decorators.push(["fn = ",this.decorators.functionCall(ar,"",["fn","props","container",at])," || fn;"])},invokeHelper:function Z(aw,ar,au){var ay=this.popStack(),at=this.setupHelper(aw,ar),ax=au?[at.name," || "]:"";var av=["("].concat(ax,ay);if(!this.options.strict){av.push(" || ",this.aliasable("helpers.helperMissing"))}av.push(")");this.push(this.source.functionCall(av,"call",at.callParams))},invokeKnownHelper:function n(au,ar){var at=this.setupHelper(au,ar);this.push(this.source.functionCall(at.name,"call",at.callParams))},invokeAmbiguous:function ak(ar,aw){this.useRegister("helper");var ax=this.popStack();this.emptyHash();var at=this.setupHelper(0,ar,aw);var au=this.lastHelper=this.nameLookup("helpers",ar,"helper");var av=["(","(helper = ",au," || ",ax,")"];if(!this.options.strict){av[0]="(helper = ";av.push(" != null ? helper : ",this.aliasable("helpers.helperMissing"))}this.push(["(",av,at.paramsInit?["),(",at.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",at.callParams)," : helper))"])},invokePartial:function S(at,av,ar){var aw=[],au=this.setupParams(av,1,aw);if(at){av=this.popStack();delete au.name}if(ar){au.indent=JSON.stringify(ar)}au.helpers="helpers";au.partials="partials";au.decorators="container.decorators";if(!at){aw.unshift(this.nameLookup("partials",av,"partial"))}else{aw.unshift(av)}if(this.options.compat){au.depths="depths"}au=this.objectLiteral(au);aw.push(au);this.push(this.source.functionCall("container.invokePartial","",aw))},assignToHash:function i(at){var av=this.popStack(),ar=undefined,au=undefined,ax=undefined;if(this.trackIds){ax=this.popStack()}if(this.stringParams){au=this.popStack();ar=this.popStack()}var aw=this.hash;if(ar){aw.contexts[at]=ar}if(au){aw.types[at]=au}if(ax){aw.ids[at]=ax}aw.values[at]=av},pushId:function e(at,ar,au){if(at==="BlockParam"){this.pushStackLiteral("blockParams["+ar[0]+"].path["+ar[1]+"]"+(au?" + "+JSON.stringify("."+au):""))}else{if(at==="PathExpression"){this.pushString(ar)}else{if(at==="SubExpression"){this.pushStackLiteral("true")}else{this.pushStackLiteral("null")}}}},compiler:c,compileChildren:function F(ar,av){var ax=ar.children,az=undefined,ay=undefined;for(var aw=0,at=ax.length;aw<at;aw++){az=ax[aw];ay=new this.compiler();var au=this.matchExistingProgram(az);if(au==null){this.context.programs.push("");au=this.context.programs.length;az.index=au;az.name="program"+au;this.context.programs[au]=ay.compile(az,av,this.context,!this.precompile);this.context.decorators[au]=ay.decorators;this.context.environments[au]=az;this.useDepths=this.useDepths||ay.useDepths;this.useBlockParams=this.useBlockParams||ay.useBlockParams}else{az.index=au;az.name="program"+au;this.useDepths=this.useDepths||az.useDepths;this.useBlockParams=this.useBlockParams||az.useBlockParams}}},matchExistingProgram:function s(av){for(var au=0,at=this.context.environments.length;au<at;au++){var ar=this.context.environments[au];if(ar&&ar.equals(av)){return au}}},programExpression:function G(ar){var au=this.environment.children[ar],at=[au.index,"data",au.blockParams];if(this.useBlockParams||this.useDepths){at.push("blockParams")}if(this.useDepths){at.push("depths")}return"container.program("+at.join(", ")+")"},useRegister:function W(ar){if(!this.registers[ar]){this.registers[ar]=true;this.registers.list.push(ar)}},push:function ae(ar){if(!(ar instanceof j)){ar=this.source.wrap(ar)}this.inlineStack.push(ar);return ar},pushStackLiteral:function l(ar){this.push(new j(ar))},pushSource:function u(ar){if(this.pendingContent){this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation));this.pendingContent=undefined}if(ar){this.source.push(ar)}},replaceStack:function a(az){var ax=["("],ar=undefined,aw=undefined,au=undefined;if(!this.isInline()){throw new I["default"]("replaceStack on non-inline")}var ay=this.popStack(true);if(ay instanceof j){ar=[ay.value];ax=["(",ar];au=true}else{aw=true;var at=this.incrStack();ax=["((",this.push(at)," = ",ay,")"];ar=this.topStack()}var av=az.call(this,ar);if(!au){this.popStack()}if(aw){this.stackSlot--}this.push(ax.concat(av,")"))},incrStack:function U(){this.stackSlot++;if(this.stackSlot>this.stackVars.length){this.stackVars.push("stack"+this.stackSlot)}return this.topStackName()},topStackName:function ai(){return"stack"+this.stackSlot},flushInline:function ah(){var av=this.inlineStack;this.inlineStack=[];for(var au=0,at=av.length;au<at;au++){var aw=av[au];if(aw instanceof j){this.compileStack.push(aw)}else{var ar=this.incrStack();this.pushSource([ar," = ",aw,";"]);this.compileStack.push(ar)}}},isInline:function w(){return this.inlineStack.length},popStack:function h(ar){var au=this.isInline(),at=(au?this.inlineStack:this.compileStack).pop();if(!ar&&at instanceof j){return at.value}else{if(!au){if(!this.stackSlot){throw new I["default"]("Invalid stack pop")}this.stackSlot--}return at}},topStack:function D(){var ar=this.isInline()?this.inlineStack:this.compileStack,at=ar[ar.length-1];if(at instanceof j){return at.value}else{return at}},contextName:function ad(ar){if(this.useDepths&&ar){return"depths["+ar+"]"}else{return"depth"+ar}},quotedString:function y(ar){return this.source.quotedString(ar)},objectLiteral:function r(ar){return this.source.objectLiteral(ar)},aliasable:function ac(at){var ar=this.aliases[at];if(ar){ar.referenceCount++;return ar}ar=this.aliases[at]=this.source.wrap(at);ar.aliasable=true;ar.referenceCount=1;return ar},setupHelper:function ab(aw,au,at){var av=[],ax=this.setupHelperArgs(au,aw,av,at);var ar=this.nameLookup("helpers",au,"helper");return{params:av,paramsInit:ax,name:ar,callParams:[this.contextName(0)].concat(av)}},setupParams:function M(au,ay,aw){var aD={},aB=[],aC=[],at=[],ar=!aw,av=undefined;if(ar){aw=[]}aD.name=this.quotedString(au);aD.hash=this.popStack();if(this.trackIds){aD.hashIds=this.popStack()}if(this.stringParams){aD.hashTypes=this.popStack();aD.hashContexts=this.popStack()}var ax=this.popStack(),aA=this.popStack();if(aA||ax){aD.fn=aA||"container.noop";aD.inverse=ax||"container.noop"}var az=ay;while(az--){av=this.popStack();aw[az]=av;if(this.trackIds){at[az]=this.popStack()}if(this.stringParams){aC[az]=this.popStack();aB[az]=this.popStack()}}if(ar){aD.args=this.source.generateArray(aw)}if(this.trackIds){aD.ids=this.source.generateArray(at)}if(this.stringParams){aD.types=this.source.generateArray(aC);aD.contexts=this.source.generateArray(aB)}if(this.options.data){aD.data="data"}if(this.useBlockParams){aD.blockParams="blockParams"}return aD},setupHelperArgs:function L(au,aw,av,at){var ar=this.setupParams(au,aw,av);ar=this.objectLiteral(ar);if(at){this.useRegister("options");av.push("options");return["options=",ar]}else{if(av){av.push(ar);return""}else{return ar}}}};(function(){var ar=("break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false").split(" ");var av=c.RESERVED_WORDS={};for(var au=0,at=ar.length;au<at;au++){av[ar[au]]=true}})();c.isValidJavaScriptVariableName=function(ar){return !c.RESERVED_WORDS[ar]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(ar)};function V(ay,aw,ax,av){var at=aw.popStack(),au=0,ar=ax.length;if(ay){ar--}for(;au<ar;au++){at=aw.nameLookup(at,ax[au],av)}if(ay){return[aw.aliasable("container.strict"),"(",at,", ",aw.quotedString(ax[au]),")"]}else{return at}}ag["default"]=c;g.exports=ag["default"]},function(b,x,d){x.__esModule=true;var p=d(5);var g=undefined;try{if(false){var s=require("source-map");g=s.SourceNode}}catch(h){}if(!g){g=function(y,z,A,B){this.src="";if(B){this.add(B)}};g.prototype={add:function r(y){if(p.isArray(y)){y=y.join("")}this.src+=y},prepend:function w(y){if(p.isArray(y)){y=y.join("")}this.src=y+this.src},toStringWithSourceMap:function e(){return{code:this.toString()}},toString:function u(){return this.src}}}function c(B,z,D){if(p.isArray(B)){var A=[];for(var C=0,y=B.length;C<y;C++){A.push(z.wrap(B[C],D))}return A}else{if(typeof B==="boolean"||typeof B==="number"){return B+""}}return B}function k(y){this.srcFile=y;this.source=[]}k.prototype={isEmpty:function q(){return !this.source.length},prepend:function w(y,z){this.source.unshift(this.wrap(y,z))},push:function l(y,z){this.source.push(this.wrap(y,z))},merge:function i(){var y=this.empty();this.each(function(z){y.add(["  ",z,"\n"])});return y},each:function f(z){for(var A=0,y=this.source.length;A<y;A++){z(this.source[A])}},empty:function o(){var y=this.currentLocation||{start:{}};return new g(y.start.line,y.start.column,this.srcFile)},wrap:function n(y){var z=arguments.length<=1||arguments[1]===undefined?this.currentLocation||{start:{}}:arguments[1];if(y instanceof g){return y}y=c(y,this,z);return new g(z.start.line,z.start.column,this.srcFile,y)},functionCall:function v(z,y,A){A=this.generateList(A);return this.wrap([z,y?"."+y+"(":"(",A,")"])},quotedString:function m(y){return'"'+(y+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function t(C){var B=[];for(var z in C){if(C.hasOwnProperty(z)){var A=c(C[z],this);if(A!=="undefined"){B.push([this.quotedString(z),":",A])}}}var y=this.generateList(B);y.prepend("{");y.add("}");return y},generateList:function a(z){var A=this.empty();for(var B=0,y=z.length;B<y;B++){if(B){A.add(",")}A.add(c(z[B],this))}return A},generateArray:function j(y){var z=this.generateList(y);z.prepend("[");z.add("]");return z}};x["default"]=k;b.exports=x["default"]}])});(function(j,l,e){var k={},h,c,i;k.Util={};k.Util.log=function(n){if(k.logging&&j.console&&j.console.log){j.console.log(n)}};k.Util.trimText=(function(n){return function(o){return n?n.apply(o):((o||"")+"").replace(/^\s+|\s+$/g,"")}})(String.prototype.trim);k.Util.asFloat=function(n){return parseFloat(n)};(function(){var o=/((rgba|rgb)\([^\)]+\)(\s-?\d+px){0,})/g;var n=/(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g;k.Util.parseTextShadows=function(u){if(!u||u==="none"){return[]}var t=u.match(o),q=[];for(var p=0;t&&(p<t.length);p++){var r=t[p].match(n);q.push({color:r[0],offsetX:r[1]?r[1].replace("px",""):0,offsetY:r[2]?r[2].replace("px",""):0,blur:r[3]?r[3].replace("px",""):0})}return q}})();k.Util.parseBackgroundImage=function(y){var p=" \r\n\t",o,q,v,C,r,t=[],x,u=0,z=0,n,w;var B=function(){if(o){if(q.substr(0,1)==='"'){q=q.substr(1,q.length-2)}if(q){w.push(q)}if(o.substr(0,1)==="-"&&(C=o.indexOf("-",1)+1)>0){v=o.substr(0,C);o=o.substr(C)}t.push({prefix:v,method:o.toLowerCase(),value:r,args:w})}w=[];o=v=q=r=""};B();for(var s=0,A=y.length;s<A;s++){x=y[s];if(u===0&&p.indexOf(x)>-1){continue}switch(x){case'"':if(!n){n=x}else{if(n===x){n=null}}break;case"(":if(n){break}else{if(u===0){u=1;r+=x;continue}else{z++}}break;case")":if(n){break}else{if(u===1){if(z===0){u=0;r+=x;B();continue}else{z--}}}break;case",":if(n){break}else{if(u===0){B();continue}else{if(u===1){if(z===0&&!o.match(/^url$/i)){w.push(q);q="";r+=x;continue}}}}break}r+=x;if(u===0){o+=x}else{q+=x}}B();return t};k.Util.Bounds=function(n){var p,o={};if(n.getBoundingClientRect){p=n.getBoundingClientRect();o.top=p.top;o.bottom=p.bottom||(p.top+p.height);o.left=p.left;o.width=n.offsetWidth;o.height=n.offsetHeight}return o};k.Util.OffsetBounds=function(n){var o=n.offsetParent?k.Util.OffsetBounds(n.offsetParent):{top:0,left:0};return{top:n.offsetTop+o.top,bottom:n.offsetTop+n.offsetHeight+o.top,left:n.offsetLeft+o.left,width:n.offsetWidth,height:n.offsetHeight}};function d(o,q,r){var n=o.runtimeStyle&&o.runtimeStyle[q],s,p=o.style;if(!/^-?[0-9]+\.?[0-9]*(?:px)?$/i.test(r)&&/^-?\d/.test(r)){s=p.left;if(n){o.runtimeStyle.left=o.currentStyle.left}p.left=q==="fontSize"?"1em":(r||0);r=p.pixelLeft+"px";p.left=s;if(n){o.runtimeStyle.left=n}}if(!/^(thin|medium|thick)$/i.test(r)){return Math.round(parseFloat(r))+"px"}return r}function b(n){return parseInt(n,10)}function m(q,o,p,n){q=(q||"").split(",");q=q[n||0]||q[0]||"auto";q=k.Util.trimText(q).split(" ");if(p==="backgroundSize"&&(!q[0]||q[0].match(/cover|contain|auto/))){}else{q[0]=(q[0].indexOf("%")===-1)?d(o,p+"X",q[0]):q[0];if(q[1]===e){if(p==="backgroundSize"){q[1]="auto";return q}else{q[1]=q[0]}}q[1]=(q[1].indexOf("%")===-1)?d(o,p+"Y",q[1]):q[1]}return q}k.Util.getCSS=function(p,q,o){if(h!==p){c=l.defaultView.getComputedStyle(p,null)}var r=c[q];if(/^background(Size|Position)$/.test(q)){return m(r,p,q,o)}else{if(/border(Top|Bottom)(Left|Right)Radius/.test(q)){var n=r.split(" ");if(n.length<=1){n[1]=n[0]}return n.map(b)}}return r};k.Util.resizeBounds=function(s,n,t,u,v){var q=t/u,p=s/n,o,r;if(!v||v==="auto"){o=t;r=u}else{if(q<p^v==="contain"){r=u;o=u*p}else{o=t;r=t/p}}return{width:o,height:r}};function g(o,q,n,u,p,x){var s=k.Util.getCSS(q,o,p),w,t,y,r;if(s.length===1){r=s[0];s=[];s[0]=r;s[1]=r}if(s[0].toString().indexOf("%")!==-1){y=(parseFloat(s[0])/100);t=n.width*y;if(o!=="backgroundSize"){t-=(x||u).width*y}}else{if(o==="backgroundSize"){if(s[0]==="auto"){t=u.width}else{if(/contain|cover/.test(s[0])){var v=k.Util.resizeBounds(u.width,u.height,n.width,n.height,s[0]);t=v.width;w=v.height}else{t=parseInt(s[0],10)}}}else{t=parseInt(s[0],10)}}if(s[1]==="auto"){w=t/u.width*u.height}else{if(s[1].toString().indexOf("%")!==-1){y=(parseFloat(s[1])/100);w=n.height*y;if(o!=="backgroundSize"){w-=(x||u).height*y}}else{w=parseInt(s[1],10)}}return[t,w]}k.Util.BackgroundPosition=function(q,r,s,o,p){var n=g("backgroundPosition",q,r,s,o,p);return{left:n[0],top:n[1]}};k.Util.BackgroundSize=function(p,q,r,o){var n=g("backgroundSize",p,q,r,o);return{width:n[0],height:n[1]}};k.Util.Extend=function(n,p){for(var o in n){if(n.hasOwnProperty(o)){p[o]=n[o]}}return p};k.Util.Children=function(p){var o;try{o=(p.nodeName&&p.nodeName.toUpperCase()==="IFRAME")?p.contentDocument||p.contentWindow.document:(function(r){var q=[];if(r!==null){(function(w,u){var v=w.length,t=0;if(typeof u.length==="number"){for(var s=u.length;t<s;t++){w[v++]=u[t]}}else{while(u[t]!==e){w[v++]=u[t++]}}w.length=v;return w})(q,r)}return q})(p.childNodes)}catch(n){k.Util.log("html2canvas.Util.Children failed with exception: "+n.message);o=[]}return o};k.Util.isTransparent=function(n){return(n==="transparent"||n==="rgba(0, 0, 0, 0)")};k.Util.Font=(function(){var n={};return function(q,x,u){if(n[q+"-"+x]!==e){return n[q+"-"+x]}var o=u.createElement("div"),r=u.createElement("img"),v=u.createElement("span"),p="Hidden Text",t,w,s;o.style.visibility="hidden";o.style.fontFamily=q;o.style.fontSize=x;o.style.margin=0;o.style.padding=0;u.body.appendChild(o);r.src="data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACwAAAAAAQABAAACAkQBADs=";r.width=1;r.height=1;r.style.margin=0;r.style.padding=0;r.style.verticalAlign="baseline";v.style.fontFamily=q;v.style.fontSize=x;v.style.margin=0;v.style.padding=0;v.appendChild(u.createTextNode(p));o.appendChild(v);o.appendChild(r);t=(r.offsetTop-v.offsetTop)+1;o.removeChild(v);o.appendChild(u.createTextNode(p));o.style.lineHeight="normal";r.style.verticalAlign="super";w=(r.offsetTop-o.offsetTop)+1;s={baseline:t,lineWidth:1,middle:w};n[q+"-"+x]=s;u.body.removeChild(o);return s}})();(function(){var p=k.Util,n={};k.Generate=n;var q=[/^(-webkit-linear-gradient)\(([a-z\s]+)([\w\d\.\s,%\(\)]+)\)$/,/^(-o-linear-gradient)\(([a-z\s]+)([\w\d\.\s,%\(\)]+)\)$/,/^(-webkit-gradient)\((linear|radial),\s((?:\d{1,3}%?)\s(?:\d{1,3}%?),\s(?:\d{1,3}%?)\s(?:\d{1,3}%?))([\w\d\.\s,%\(\)\-]+)\)$/,/^(-moz-linear-gradient)\(((?:\d{1,3}%?)\s(?:\d{1,3}%?))([\w\d\.\s,%\(\)]+)\)$/,/^(-webkit-radial-gradient)\(((?:\d{1,3}%?)\s(?:\d{1,3}%?)),\s(\w+)\s([a-z\-]+)([\w\d\.\s,%\(\)]+)\)$/,/^(-moz-radial-gradient)\(((?:\d{1,3}%?)\s(?:\d{1,3}%?)),\s(\w+)\s?([a-z\-]*)([\w\d\.\s,%\(\)]+)\)$/,/^(-o-radial-gradient)\(((?:\d{1,3}%?)\s(?:\d{1,3}%?)),\s(\w+)\s([a-z\-]+)([\w\d\.\s,%\(\)]+)\)$/];n.parseGradient=function(w,r){var A,v,x=q.length,F,z,C,s,u,B,E,y,D,t;for(v=0;v<x;v+=1){F=w.match(q[v]);if(F){break}}if(F){switch(F[1]){case"-webkit-linear-gradient":case"-o-linear-gradient":A={type:"linear",x0:null,y0:null,x1:null,y1:null,colorStops:[]};C=F[2].match(/\w+/g);if(C){s=C.length;for(v=0;v<s;v+=1){switch(C[v]){case"top":A.y0=0;A.y1=r.height;break;case"right":A.x0=r.width;A.x1=0;break;case"bottom":A.y0=r.height;A.y1=0;break;case"left":A.x0=0;A.x1=r.width;break}}}if(A.x0===null&&A.x1===null){A.x0=A.x1=r.width/2}if(A.y0===null&&A.y1===null){A.y0=A.y1=r.height/2}C=F[3].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\)(?:\s\d{1,3}(?:%|px))?)+/g);if(C){s=C.length;u=1/Math.max(s-1,1);for(v=0;v<s;v+=1){B=C[v].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\s*(\d{1,3})?(%|px)?/);if(B[2]){z=parseFloat(B[2]);if(B[3]==="%"){z/=100}else{z/=r.width}}else{z=v*u}A.colorStops.push({color:B[1],stop:z})}}break;case"-webkit-gradient":A={type:F[2]==="radial"?"circle":F[2],x0:0,y0:0,x1:0,y1:0,colorStops:[]};C=F[3].match(/(\d{1,3})%?\s(\d{1,3})%?,\s(\d{1,3})%?\s(\d{1,3})%?/);if(C){A.x0=(C[1]*r.width)/100;A.y0=(C[2]*r.height)/100;A.x1=(C[3]*r.width)/100;A.y1=(C[4]*r.height)/100}C=F[4].match(/((?:from|to|color-stop)\((?:[0-9\.]+,\s)?(?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\)\))+/g);if(C){s=C.length;for(v=0;v<s;v+=1){B=C[v].match(/(from|to|color-stop)\(([0-9\.]+)?(?:,\s)?((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\)/);z=parseFloat(B[2]);if(B[1]==="from"){z=0}if(B[1]==="to"){z=1}A.colorStops.push({color:B[3],stop:z})}}break;case"-moz-linear-gradient":A={type:"linear",x0:0,y0:0,x1:0,y1:0,colorStops:[]};C=F[2].match(/(\d{1,3})%?\s(\d{1,3})%?/);if(C){A.x0=(C[1]*r.width)/100;A.y0=(C[2]*r.height)/100;A.x1=r.width-A.x0;A.y1=r.height-A.y0}C=F[3].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\)(?:\s\d{1,3}%)?)+/g);if(C){s=C.length;u=1/Math.max(s-1,1);for(v=0;v<s;v+=1){B=C[v].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\s*(\d{1,3})?(%)?/);if(B[2]){z=parseFloat(B[2]);if(B[3]){z/=100}}else{z=v*u}A.colorStops.push({color:B[1],stop:z})}}break;case"-webkit-radial-gradient":case"-moz-radial-gradient":case"-o-radial-gradient":A={type:"circle",x0:0,y0:0,x1:r.width,y1:r.height,cx:0,cy:0,rx:0,ry:0,colorStops:[]};C=F[2].match(/(\d{1,3})%?\s(\d{1,3})%?/);if(C){A.cx=(C[1]*r.width)/100;A.cy=(C[2]*r.height)/100}C=F[3].match(/\w+/);B=F[4].match(/[a-z\-]*/);if(C&&B){switch(B[0]){case"farthest-corner":case"cover":case"":E=Math.sqrt(Math.pow(A.cx,2)+Math.pow(A.cy,2));y=Math.sqrt(Math.pow(A.cx,2)+Math.pow(A.y1-A.cy,2));D=Math.sqrt(Math.pow(A.x1-A.cx,2)+Math.pow(A.y1-A.cy,2));t=Math.sqrt(Math.pow(A.x1-A.cx,2)+Math.pow(A.cy,2));A.rx=A.ry=Math.max(E,y,D,t);break;case"closest-corner":E=Math.sqrt(Math.pow(A.cx,2)+Math.pow(A.cy,2));y=Math.sqrt(Math.pow(A.cx,2)+Math.pow(A.y1-A.cy,2));D=Math.sqrt(Math.pow(A.x1-A.cx,2)+Math.pow(A.y1-A.cy,2));t=Math.sqrt(Math.pow(A.x1-A.cx,2)+Math.pow(A.cy,2));A.rx=A.ry=Math.min(E,y,D,t);break;case"farthest-side":if(C[0]==="circle"){A.rx=A.ry=Math.max(A.cx,A.cy,A.x1-A.cx,A.y1-A.cy)}else{A.type=C[0];A.rx=Math.max(A.cx,A.x1-A.cx);A.ry=Math.max(A.cy,A.y1-A.cy)}break;case"closest-side":case"contain":if(C[0]==="circle"){A.rx=A.ry=Math.min(A.cx,A.cy,A.x1-A.cx,A.y1-A.cy)}else{A.type=C[0];A.rx=Math.min(A.cx,A.x1-A.cx);A.ry=Math.min(A.cy,A.y1-A.cy)}break}}C=F[5].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\)(?:\s\d{1,3}(?:%|px))?)+/g);if(C){s=C.length;u=1/Math.max(s-1,1);for(v=0;v<s;v+=1){B=C[v].match(/((?:rgb|rgba)\(\d{1,3},\s\d{1,3},\s\d{1,3}(?:,\s[0-9\.]+)?\))\s*(\d{1,3})?(%|px)?/);if(B[2]){z=parseFloat(B[2]);if(B[3]==="%"){z/=100}else{z/=r.width}}else{z=v*u}A.colorStops.push({color:B[1],stop:z})}}break}}return A};function o(r){return function(s){try{r.addColorStop(s.stop,s.color)}catch(t){p.log(["failed to add color stop: ",t,"; tried to add: ",s])}}}n.Gradient=function(r,s){if(s.width===0||s.height===0){return}var u=l.createElement("canvas"),A=u.getContext("2d"),y,z;u.width=s.width;u.height=s.height;y=k.Generate.parseGradient(r,s);if(y){switch(y.type){case"linear":z=A.createLinearGradient(y.x0,y.y0,y.x1,y.y1);y.colorStops.forEach(o(z));A.fillStyle=z;A.fillRect(0,0,s.width,s.height);break;case"circle":z=A.createRadialGradient(y.cx,y.cy,0,y.cx,y.cy,y.rx);y.colorStops.forEach(o(z));A.fillStyle=z;A.fillRect(0,0,s.width,s.height);break;case"ellipse":var v=l.createElement("canvas"),t=v.getContext("2d"),x=Math.max(y.rx,y.ry),w=x*2;v.width=v.height=w;z=t.createRadialGradient(y.rx,y.ry,0,y.rx,y.ry,x);y.colorStops.forEach(o(z));t.fillStyle=z;t.fillRect(0,0,w,w);A.fillStyle=y.colorStops[y.colorStops.length-1].color;A.fillRect(0,0,u.width,u.height);A.drawImage(v,y.cx-y.rx,y.cy-y.ry,2*y.rx,2*y.ry);break}}return u};n.ListAlpha=function(t){var s="",r;do{r=t%26;s=String.fromCharCode((r)+64)+s;t=t/26}while((t*26)>26);return s};n.ListRoman=function(w){var u=["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"],s=[1000,900,500,400,100,90,50,40,10,9,5,4,1],x="",t,r=u.length;if(w<=0||w>=4000){return w}for(t=0;t<r;t+=1){while(w>=s[t]){w-=s[t];x+=u[t]}}return x}})();function f(o,n){var p=[];return{storage:p,width:o,height:n,clip:function(){p.push({type:"function",name:"clip","arguments":arguments})},translate:function(){p.push({type:"function",name:"translate","arguments":arguments})},fill:function(){p.push({type:"function",name:"fill","arguments":arguments})},save:function(){p.push({type:"function",name:"save","arguments":arguments})},restore:function(){p.push({type:"function",name:"restore","arguments":arguments})},fillRect:function(){p.push({type:"function",name:"fillRect","arguments":arguments})},createPattern:function(){p.push({type:"function",name:"createPattern","arguments":arguments})},drawShape:function(){var q=[];p.push({type:"function",name:"drawShape","arguments":q});return{moveTo:function(){q.push({name:"moveTo","arguments":arguments})},lineTo:function(){q.push({name:"lineTo","arguments":arguments})},arcTo:function(){q.push({name:"arcTo","arguments":arguments})},bezierCurveTo:function(){q.push({name:"bezierCurveTo","arguments":arguments})},quadraticCurveTo:function(){q.push({name:"quadraticCurveTo","arguments":arguments})}}},drawImage:function(){p.push({type:"function",name:"drawImage","arguments":arguments})},fillText:function(){p.push({type:"function",name:"fillText","arguments":arguments})},setVariable:function(q,r){p.push({type:"variable",name:q,"arguments":r});return r}}}k.Parse=function(v,ac){j.scroll(0,0);var M=((ac.elements===e)?l.body:ac.elements[0]),w=0,z=M.ownerDocument,r=k.Util,aq=r.Support(ac,z),am=new RegExp("("+ac.ignoreElements+")"),Z=z.body,X=r.getCSS,Q="___html2canvas___pseudoelement",P=z.createElement("style");P.innerHTML="."+Q+'-before:before { content: "" !important; display: none !important; }.'+Q+'-after:after { content: "" !important; display: none !important; }';Z.appendChild(P);v=v||{};function ao(){return Math.max(Math.max(z.body.scrollWidth,z.documentElement.scrollWidth),Math.max(z.body.offsetWidth,z.documentElement.offsetWidth),Math.max(z.body.clientWidth,z.documentElement.clientWidth))}function K(){return Math.max(Math.max(z.body.scrollHeight,z.documentElement.scrollHeight),Math.max(z.body.offsetHeight,z.documentElement.offsetHeight),Math.max(z.body.clientHeight,z.documentElement.clientHeight))}function Y(aE,aF){var aG=parseInt(X(aE,aF),10);return(isNaN(aG))?0:aG}function aA(aH,aE,aJ,aG,aI,aF){if(aF!=="transparent"){aH.setVariable("fillStyle",aF);aH.fillRect(aE,aJ,aG,aI);w+=1}}function ae(aE,aG,aF){if(aE.length>0){return aG+aF.toUpperCase()}}function y(aF,aE){switch(aE){case"lowercase":return aF.toLowerCase();case"capitalize":return aF.replace(/(^|\s|:|-|\(|\))([a-z])/g,ae);case"uppercase":return aF.toUpperCase();default:return aF}}function aj(aE){return(/^(normal|none|0px)$/.test(aE))}function n(aG,aE,aH,aF){if(aG!==null&&r.trimText(aG).length>0){aF.fillText(aG,aE,aH);w+=1}}function S(aL,aF,aE,aG){var aJ=false,aK=X(aF,"fontWeight"),aI=X(aF,"fontFamily"),aM=X(aF,"fontSize"),aH=r.parseTextShadows(X(aF,"textShadow"));switch(parseInt(aK,10)){case 401:aK="bold";break;case 400:aK="normal";break}aL.setVariable("fillStyle",aG);aL.setVariable("font",[X(aF,"fontStyle"),X(aF,"fontVariant"),aK,aM,aI].join(" "));aL.setVariable("textAlign",(aJ)?"right":"left");if(aH.length){aL.setVariable("shadowColor",aH[0].color);aL.setVariable("shadowOffsetX",aH[0].offsetX);aL.setVariable("shadowOffsetY",aH[0].offsetY);aL.setVariable("shadowBlur",aH[0].blur)}if(aE!=="none"){return r.Font(aI,aM,z)}}function N(aE,aI,aH,aG,aF){switch(aI){case"underline":aA(aE,aH.left,Math.round(aH.top+aG.baseline+aG.lineWidth),aH.width,1,aF);break;case"overline":aA(aE,aH.left,Math.round(aH.top),aH.width,1,aF);break;case"line-through":aA(aE,aH.left,Math.ceil(aH.top+aG.middle+aG.lineWidth),aH.width,1,aF);break}}function af(aI,aK,aJ,aH,aE){var aG;if(aq.rangeBounds&&!aE){if(aJ!=="none"||r.trimText(aK).length!==0){aG=ad(aK,aI.node,aI.textOffset)}aI.textOffset+=aK.length}else{if(aI.node&&typeof aI.node.nodeValue==="string"){var aF=(aH)?aI.node.splitText(aK.length):null;aG=ai(aI.node,aE);aI.node=aF}}return aG}function ad(aH,aG,aF){var aE=z.createRange();aE.setStart(aG,aF);aE.setEnd(aG,aF+aH.length);return aE.getBoundingClientRect()}function ai(aF,aE){var aG=aF.parentNode,aJ=z.createElement("wrapper"),aI=aF.cloneNode(true);aJ.appendChild(aF.cloneNode(true));aG.replaceChild(aJ,aF);var aH=aE?r.OffsetBounds(aJ):r.Bounds(aJ);aG.replaceChild(aI,aJ);return aH}function ay(aG,aH,aL){var aM=aL.ctx,aI=X(aG,"color"),aN=X(aG,"textDecoration"),aF=X(aG,"textAlign"),aK,aJ,aE={node:aH,textOffset:0};if(r.trimText(aH.nodeValue).length>0){aH.nodeValue=y(aH.nodeValue,X(aG,"textTransform"));aF=aF.replace(["-webkit-auto"],["auto"]);aJ=(!ac.letterRendering&&/^(left|right|justify|auto)$/.test(aF)&&aj(X(aG,"letterSpacing")))?aH.nodeValue.split(/(\b| )/):aH.nodeValue.split("");aK=S(aM,aG,aN,aI);if(ac.chinese){aJ.forEach(function(aP,aO){if(/.*[\u4E00-\u9FA5].*$/.test(aP)){aP=aP.split("");aP.unshift(aO,1);aJ.splice.apply(aJ,aP)}})}aJ.forEach(function(aQ,aO){var aP=af(aE,aQ,aN,(aO<aJ.length-1),aL.transform.matrix);if(aP){n(aQ,aP.left,aP.bottom,aM);N(aM,aN,aP,aK,aI)}})}}function ah(aE,aI){var aH=z.createElement("boundelement"),aF,aG;aH.style.display="inline";aF=aE.style.listStyleType;aE.style.listStyleType="none";aH.appendChild(z.createTextNode(aI));aE.insertBefore(aH,aE.firstChild);aG=r.Bounds(aH);aE.removeChild(aH);aE.style.listStyleType=aF;return aG}function T(aF){var aE=-1,aG=1,aH=aF.parentNode.childNodes;if(aF.parentNode){while(aH[++aE]!==aF){if(aH[aE].nodeType===1){aG++}}return aG}else{return -1}}function q(aF,aG){var aE=T(aF),aH;switch(aG){case"decimal":aH=aE;break;case"decimal-leading-zero":aH=(aE.toString().length===1)?aE="0"+aE.toString():aE.toString();break;case"upper-roman":aH=k.Generate.ListRoman(aE);break;case"lower-roman":aH=k.Generate.ListRoman(aE).toLowerCase();break;case"lower-alpha":aH=k.Generate.ListAlpha(aE).toLowerCase();break;case"upper-alpha":aH=k.Generate.ListAlpha(aE);break}return aH+". "}function an(aH,aF,aK){var aE,aL,aG=aF.ctx,aI=X(aH,"listStyleType"),aJ;if(/^(decimal|decimal-leading-zero|upper-alpha|upper-latin|upper-roman|lower-alpha|lower-greek|lower-latin|lower-roman)$/i.test(aI)){aL=q(aH,aI);aJ=ah(aH,aL);S(aG,aH,"none",X(aH,"color"));if(X(aH,"listStylePosition")==="inside"){aG.setVariable("textAlign","left");aE=aK.left}else{return}n(aL,aE,aJ.bottom,aG)}}function V(aF){var aE=v[aF];return(aE&&aE.succeeded===true)?aE.img:false}function C(aH,aJ){var aE=Math.max(aH.left,aJ.left),aI=Math.max(aH.top,aJ.top),aF=Math.min((aH.left+aH.width),(aJ.left+aJ.width)),aG=Math.min((aH.top+aH.height),(aJ.top+aJ.height));return{left:aE,top:aI,width:aF-aE,height:aG-aI}}function ap(aJ,aH,aG){var aL,aF=aH.cssPosition!=="static",aK=aF?X(aJ,"zIndex"):"auto",aI=X(aJ,"opacity"),aE=X(aJ,"cssFloat")!=="none";aH.zIndex=aL=a(aK);aL.isPositioned=aF;aL.isFloated=aE;aL.opacity=aI;aL.ownStacking=(aK!=="auto"||aI<1);if(aG){aG.zIndex.children.push(aH)}}function U(aM,aJ,aI,aE,aK){var aH=Y(aJ,"paddingLeft"),aL=Y(aJ,"paddingTop"),aG=Y(aJ,"paddingRight"),aF=Y(aJ,"paddingBottom");p(aM,aI,0,0,aI.width,aI.height,aE.left+aH+aK[3].width,aE.top+aL+aK[0].width,aE.width-(aK[1].width+aK[3].width+aH+aG),aE.height-(aK[0].width+aK[2].width+aL+aF))}function A(aE){return["Top","Right","Bottom","Left"].map(function(aF){return{width:Y(aE,"border"+aF+"Width"),color:X(aE,"border"+aF+"Color")}})}function o(aE){return["TopLeft","TopRight","BottomRight","BottomLeft"].map(function(aF){return X(aE,"border"+aF+"Radius")})}var F=(function(aE){return function(aG,aM,aK,aI){var aJ=(aK)*aE,aH=(aI)*aE,aL=aG+aK,aF=aM+aI;return{topLeft:aD({x:aG,y:aF},{x:aG,y:aF-aH},{x:aL-aJ,y:aM},{x:aL,y:aM}),topRight:aD({x:aG,y:aM},{x:aG+aJ,y:aM},{x:aL,y:aF-aH},{x:aL,y:aF}),bottomRight:aD({x:aL,y:aM},{x:aL,y:aM+aH},{x:aG+aJ,y:aF},{x:aG,y:aF}),bottomLeft:aD({x:aL,y:aF},{x:aL-aJ,y:aF},{x:aG,y:aM+aH},{x:aG,y:aM})}}})(4*((Math.sqrt(2)-1)/3));function aD(aI,aH,aG,aE){var aF=function(aK,aJ,aL){return{x:aK.x+(aJ.x-aK.x)*aL,y:aK.y+(aJ.y-aK.y)*aL}};return{start:aI,startControl:aH,endControl:aG,end:aE,subdivide:function(aL){var aN=aF(aI,aH,aL),aO=aF(aH,aG,aL),aP=aF(aG,aE,aL),aM=aF(aN,aO,aL),aJ=aF(aO,aP,aL),aK=aF(aM,aJ,aL);return[aD(aI,aN,aM,aK),aD(aK,aJ,aP,aE)]},curveTo:function(aJ){aJ.push(["bezierCurve",aH.x,aH.y,aG.x,aG.y,aE.x,aE.y])},curveToReversed:function(aJ){aJ.push(["bezierCurve",aG.x,aG.y,aH.x,aH.y,aI.x,aI.y])}}}function aC(aI,aJ,aH,aG,aF,aE,aK){if(aJ[0]>0||aJ[1]>0){aI.push(["line",aG[0].start.x,aG[0].start.y]);aG[0].curveTo(aI);aG[1].curveTo(aI)}else{aI.push(["line",aE,aK])}if(aH[0]>0||aH[1]>0){aI.push(["line",aF[0].start.x,aF[0].start.y])}}function av(aK,aI,aH,aL,aF,aJ,aE){var aG=[];if(aI[0]>0||aI[1]>0){aG.push(["line",aL[1].start.x,aL[1].start.y]);aL[1].curveTo(aG)}else{aG.push(["line",aK.c1[0],aK.c1[1]])}if(aH[0]>0||aH[1]>0){aG.push(["line",aJ[0].start.x,aJ[0].start.y]);aJ[0].curveTo(aG);aG.push(["line",aE[0].end.x,aE[0].end.y]);aE[0].curveToReversed(aG)}else{aG.push(["line",aK.c2[0],aK.c2[1]]);aG.push(["line",aK.c3[0],aK.c3[1]])}if(aI[0]>0||aI[1]>0){aG.push(["line",aF[1].end.x,aF[1].end.y]);aF[1].curveToReversed(aG)}else{aG.push(["line",aK.c4[0],aK.c4[1]])}return aG}function u(aH,aE,aG){var aL=aH.left,aI=aH.top,aQ=aH.width,aP=aH.height,aR=aE[0][0],aK=aE[0][1],aU=aE[1][0],aN=aE[1][1],aV=aE[2][0],aO=aE[2][1],aT=aE[3][0],aM=aE[3][1],aJ=aQ-aU,aW=aP-aO,aF=aQ-aV,aS=aP-aM;return{topLeftOuter:F(aL,aI,aR,aK).topLeft.subdivide(0.5),topLeftInner:F(aL+aG[3].width,aI+aG[0].width,Math.max(0,aR-aG[3].width),Math.max(0,aK-aG[0].width)).topLeft.subdivide(0.5),topRightOuter:F(aL+aJ,aI,aU,aN).topRight.subdivide(0.5),topRightInner:F(aL+Math.min(aJ,aQ+aG[3].width),aI+aG[0].width,(aJ>aQ+aG[3].width)?0:aU-aG[3].width,aN-aG[0].width).topRight.subdivide(0.5),bottomRightOuter:F(aL+aF,aI+aW,aV,aO).bottomRight.subdivide(0.5),bottomRightInner:F(aL+Math.min(aF,aQ+aG[3].width),aI+Math.min(aW,aP+aG[0].width),Math.max(0,aV-aG[1].width),Math.max(0,aO-aG[2].width)).bottomRight.subdivide(0.5),bottomLeftOuter:F(aL,aI+aS,aT,aM).bottomLeft.subdivide(0.5),bottomLeftInner:F(aL+aG[3].width,aI+aS,Math.max(0,aT-aG[3].width),Math.max(0,aM-aG[2].width)).bottomLeft.subdivide(0.5)}}function az(aH,aJ,aK,aE,aI){var aG=X(aH,"backgroundClip"),aF=[];switch(aG){case"content-box":case"padding-box":aC(aF,aE[0],aE[1],aJ.topLeftInner,aJ.topRightInner,aI.left+aK[3].width,aI.top+aK[0].width);aC(aF,aE[1],aE[2],aJ.topRightInner,aJ.bottomRightInner,aI.left+aI.width-aK[1].width,aI.top+aK[0].width);aC(aF,aE[2],aE[3],aJ.bottomRightInner,aJ.bottomLeftInner,aI.left+aI.width-aK[1].width,aI.top+aI.height-aK[2].width);aC(aF,aE[3],aE[0],aJ.bottomLeftInner,aJ.topLeftInner,aI.left+aK[3].width,aI.top+aI.height-aK[2].width);break;default:aC(aF,aE[0],aE[1],aJ.topLeftOuter,aJ.topRightOuter,aI.left,aI.top);aC(aF,aE[1],aE[2],aJ.topRightOuter,aJ.bottomRightOuter,aI.left+aI.width,aI.top);aC(aF,aE[2],aE[3],aJ.bottomRightOuter,aJ.bottomLeftOuter,aI.left+aI.width,aI.top+aI.height);aC(aF,aE[3],aE[0],aJ.bottomLeftOuter,aJ.topLeftOuter,aI.left,aI.top+aI.height);break}return aF}function ab(aK,aF,aN){var aR=aF.left,aQ=aF.top,aH=aF.width,aT=aF.height,aG,aO,aM,aP,aJ,aE,aI=o(aK),aL=u(aF,aI,aN),aS={clip:az(aK,aL,aN,aI,aF),borders:[]};for(aG=0;aG<4;aG++){if(aN[aG].width>0){aO=aR;aM=aQ;aP=aH;aJ=aT-(aN[2].width);switch(aG){case 0:aJ=aN[0].width;aE=av({c1:[aO,aM],c2:[aO+aP,aM],c3:[aO+aP-aN[1].width,aM+aJ],c4:[aO+aN[3].width,aM+aJ]},aI[0],aI[1],aL.topLeftOuter,aL.topLeftInner,aL.topRightOuter,aL.topRightInner);break;case 1:aO=aR+aH-(aN[1].width);aP=aN[1].width;aE=av({c1:[aO+aP,aM],c2:[aO+aP,aM+aJ+aN[2].width],c3:[aO,aM+aJ],c4:[aO,aM+aN[0].width]},aI[1],aI[2],aL.topRightOuter,aL.topRightInner,aL.bottomRightOuter,aL.bottomRightInner);break;case 2:aM=(aM+aT)-(aN[2].width);aJ=aN[2].width;aE=av({c1:[aO+aP,aM+aJ],c2:[aO,aM+aJ],c3:[aO+aN[3].width,aM],c4:[aO+aP-aN[3].width,aM]},aI[2],aI[3],aL.bottomRightOuter,aL.bottomRightInner,aL.bottomLeftOuter,aL.bottomLeftInner);break;case 3:aP=aN[3].width;aE=av({c1:[aO,aM+aJ+aN[2].width],c2:[aO,aM],c3:[aO+aP,aM+aN[0].width],c4:[aO+aP,aM+aJ]},aI[3],aI[0],aL.bottomLeftOuter,aL.bottomLeftInner,aL.topLeftOuter,aL.topLeftInner);break}aS.borders.push({args:aE,color:aN[aG].color})}}return aS}function s(aE,aG){var aF=aE.drawShape();aG.forEach(function(aI,aH){aF[(aH===0)?"moveTo":aI[0]+"To"].apply(null,aI.slice(1))});return aF}function J(aE,aG,aF){if(aF!=="transparent"){aE.setVariable("fillStyle",aF);s(aE,aG);aE.fill();w+=1}}function at(aH,aI,aF){var aK=z.createElement("valuewrap"),aG=["lineHeight","textAlign","fontFamily","color","fontSize","paddingLeft","paddingTop","width","height","border","borderLeftWidth","borderTopWidth"],aE,aJ;aG.forEach(function(aL){try{aK.style[aL]=X(aH,aL)}catch(aM){r.log("html2canvas: Parse: Exception caught in renderFormValue: "+aM.message)}});aK.style.borderColor="black";aK.style.borderStyle="solid";aK.style.display="block";aK.style.position="absolute";if(/^(submit|reset|button|text|password)$/.test(aH.type)||aH.nodeName==="SELECT"){aK.style.lineHeight=X(aH,"height")}aK.style.top=aI.top+"px";aK.style.left=aI.left+"px";aE=(aH.nodeName==="SELECT")?(aH.options[aH.selectedIndex]||0).text:aH.value;if(!aE){aE=aH.placeholder}aJ=z.createTextNode(aE);aK.appendChild(aJ);Z.appendChild(aK);ay(aH,aJ,aF);Z.removeChild(aK)}function p(aE){aE.drawImage.apply(aE,Array.prototype.slice.call(arguments,1));w+=1}function L(aG,aJ){var aF=j.getComputedStyle(aG,aJ);if(!aF||!aF.content||aF.content==="none"||aF.content==="-moz-alt-content"||aF.display==="none"){return}var aH=aF.content+"",aI=aH.substr(0,1);if(aI===aH.substr(aH.length-1)&&aI.match(/'|"/)){aH=aH.substr(1,aH.length-2)}var aK=aH.substr(0,3)==="url",aE=l.createElement(aK?"img":"span");aE.className=Q+"-before "+Q+"-after";Object.keys(aF).filter(G).forEach(function(aM){try{aE.style[aM]=aF[aM]}catch(aL){r.log(["Tried to assign readonly property ",aM,"Error:",aL])}});if(aK){aE.src=r.parseBackgroundImage(aH)[0].args[0]}else{aE.innerHTML=aH}return aE}function G(aE){return(isNaN(j.parseInt(aE,10)))}function t(aF,aE){var aG=L(aF,":before"),aH=L(aF,":after");if(!aG&&!aH){return}if(aG){aF.className+=" "+Q+"-before";aF.parentNode.insertBefore(aG,aF);aa(aG,aE,true);aF.parentNode.removeChild(aG);aF.className=aF.className.replace(Q+"-before","").trim()}if(aH){aF.className+=" "+Q+"-after";aF.appendChild(aH);aa(aH,aE,true);aF.removeChild(aH);aF.className=aF.className.replace(Q+"-after","").trim()}}function al(aF,aI,aG,aH){var aE=Math.round(aH.left+aG.left),aJ=Math.round(aH.top+aG.top);aF.createPattern(aI);aF.translate(aE,aJ);aF.fill();aF.translate(-aE,-aJ)}function ar(aM,aI,aG,aE,aH,aK,aF,aL){var aJ=[];aJ.push(["line",Math.round(aH),Math.round(aK)]);aJ.push(["line",Math.round(aH+aF),Math.round(aK)]);aJ.push(["line",Math.round(aH+aF),Math.round(aL+aK)]);aJ.push(["line",Math.round(aH),Math.round(aL+aK)]);s(aM,aJ);aM.save();aM.clip();al(aM,aI,aG,aE);aM.restore()}function R(aF,aG,aE){aA(aF,aG.left,aG.top,aG.width,aG.height,aE)}function x(aI,aJ,aF,aL,aE){var aG=r.BackgroundSize(aI,aJ,aL,aE),aH=r.BackgroundPosition(aI,aJ,aL,aE,aG),aK=X(aI,"backgroundRepeat").split(",").map(r.trimText);aL=H(aL,aG);aK=aK[aE]||aK[0];switch(aK){case"repeat-x":ar(aF,aL,aH,aJ,aJ.left,aJ.top+aH.top,99999,aL.height);break;case"repeat-y":ar(aF,aL,aH,aJ,aJ.left+aH.left,aJ.top,aL.width,99999);break;case"no-repeat":ar(aF,aL,aH,aJ,aJ.left+aH.left,aJ.top+aH.top,aL.width,aL.height);break;default:al(aF,aL,aH,{top:aJ.top,left:aJ.left,width:aL.width,height:aL.height});break}}function aB(aI,aJ,aG){var aL=X(aI,"backgroundImage"),aF=r.parseBackgroundImage(aL),aK,aE=aF.length;while(aE--){aL=aF[aE];if(!aL.args||aL.args.length===0){continue}var aH=aL.method==="url"?aL.args[0]:aL.value;aK=V(aH);if(aK){x(aI,aJ,aG,aK,aE)}else{r.log("html2canvas: Error loading background:",aL)}}}function H(aH,aG){if(aH.width===aG.width&&aH.height===aG.height){return aH}var aE,aF=z.createElement("canvas");aF.width=aG.width;aF.height=aG.height;aE=aF.getContext("2d");p(aE,aH,0,0,aH.width,aH.height,0,0,aG.width,aG.height);return aF}function au(aF,aG,aE){return aF.setVariable("globalAlpha",X(aG,"opacity")*((aE)?aE.opacity:1))}function W(aE){return aE.replace("px","")}var aw=/(matrix)\((.+)\)/;function ak(aJ,aE){var aI=X(aJ,"transform")||X(aJ,"-webkit-transform")||X(aJ,"-moz-transform")||X(aJ,"-ms-transform")||X(aJ,"-o-transform");var aH=X(aJ,"transform-origin")||X(aJ,"-webkit-transform-origin")||X(aJ,"-moz-transform-origin")||X(aJ,"-ms-transform-origin")||X(aJ,"-o-transform-origin")||"0px 0px";aH=aH.split(" ").map(W).map(r.asFloat);var aF;if(aI&&aI!=="none"){var aG=aI.match(aw);if(aG){switch(aG[1]){case"matrix":aF=aG[2].split(",").map(r.trimText).map(r.asFloat);break}}}return{origin:aH,matrix:aF}}function B(aI,aF,aJ,aH){var aG=f((!aF)?ao():aJ.width,(!aF)?K():aJ.height),aE={ctx:aG,opacity:au(aG,aI,aF),cssPosition:X(aI,"position"),borders:A(aI),transform:aH,clip:(aF&&aF.clip)?r.Extend({},aF.clip):null};ap(aI,aE,aF);if(ac.useOverflow===true&&/(hidden|scroll|auto)/.test(X(aI,"overflow"))===true&&/(BODY)/i.test(aI.nodeName)===false){aE.clip=(aE.clip)?C(aE.clip,aJ):aJ}return aE}function E(aH,aF,aE){var aG={left:aF.left+aH[3].width,top:aF.top+aH[0].width,width:aF.width-(aH[1].width+aH[3].width),height:aF.height-(aH[0].width+aH[2].width)};if(aE){aG=C(aG,aE)}return aG}function D(aF,aE){var aG=(aE.matrix)?r.OffsetBounds(aF):r.Bounds(aF);aE.origin[0]+=aG.left;aE.origin[1]+=aG.top;return aG}function I(aJ,aK,aI,aM){var aF=ak(aJ,aK),aE=D(aJ,aF),aH,aN=B(aJ,aK,aE,aF),aL=aN.borders,aQ=aN.ctx,aG=E(aL,aE,aN.clip),aP=ab(aJ,aE,aL),aO=(am.test(aJ.nodeName))?"#efefef":X(aJ,"backgroundColor");s(aQ,aP.clip);aQ.save();aQ.clip();if(aG.height>0&&aG.width>0&&!aM){R(aQ,aE,aO);aB(aJ,aG,aQ)}else{if(aM){aN.backgroundColor=aO}}aQ.restore();aP.borders.forEach(function(aR){J(aQ,aR.args,aR.color)});if(!aI){t(aJ,aN)}switch(aJ.nodeName){case"IMG":if((aH=V(aJ.getAttribute("src")))){U(aQ,aJ,aH,aE,aL)}else{r.log("html2canvas: Error loading <img>:"+aJ.getAttribute("src"))}break;case"INPUT":if(/^(text|url|email|submit|button|reset)$/.test(aJ.type)&&(aJ.value||aJ.placeholder||"").length>0){at(aJ,aE,aN)}break;case"TEXTAREA":if((aJ.value||aJ.placeholder||"").length>0){at(aJ,aE,aN)}break;case"SELECT":if((aJ.options||aJ.placeholder||"").length>0){at(aJ,aE,aN)}break;case"LI":an(aJ,aN,aG);break;case"CANVAS":U(aQ,aJ,aJ,aE,aL);break}return aN}function ag(aE){return(X(aE,"display")!=="none"&&X(aE,"visibility")!=="hidden"&&!aE.hasAttribute("data-html2canvas-ignore"))}function aa(aF,aE,aG){if(ag(aF)){aE=I(aF,aE,aG,false)||aE;if(!am.test(aF.nodeName)){O(aF,aE,aG)}}}function O(aF,aE,aG){r.Children(aF).forEach(function(aH){if(aH.nodeType===aH.ELEMENT_NODE){aa(aH,aE,aG)}else{if(aH.nodeType===aH.TEXT_NODE){ay(aF,aH,aE)}}})}function ax(){var aG=X(l.documentElement,"backgroundColor"),aF=(r.isTransparent(aG)&&M===l.body),aE=I(M,null,false,aF);O(M,aE);if(aF){aG=aE.backgroundColor}Z.removeChild(P);return{backgroundColor:aG,stack:aE}}return ax()};function a(n){return{zindex:n,children:[]}}k.Preload=function(q){var z={numLoaded:0,numFailed:0,numTotal:0,cleanupDone:false},H,s=k.Util,I,G,t=0,o=q.elements[0]||l.body,K=o.ownerDocument,y=o.getElementsByTagName("img"),A=y.length,u=K.createElement("a"),x=(function(L){return(L.crossOrigin!==e)})(new Image()),C;u.href=j.location.href;H=u.protocol+u.host;function J(M){u.href=M;u.href=u.href;var L=u.protocol+u.host;return(L===H)}function r(){s.log("html2canvas: start: images: "+z.numLoaded+" / "+z.numTotal+" (failed: "+z.numFailed+")");if(!z.firstRun&&z.numLoaded>=z.numTotal){s.log("Finished loading images: # "+z.numTotal+" (failed: "+z.numFailed+")");if(typeof q.complete==="function"){q.complete(z)}}}function B(O,N,P){var L,Q=q.proxy,M;u.href=O;O=u.href;L="html2canvas_"+(t++);P.callbackname=L;if(Q.indexOf("?")>-1){Q+="&"}else{Q+="?"}Q+="url="+encodeURIComponent(O)+"&callback="+L;M=K.createElement("script");j[L]=function(R){if(R.substring(0,6)==="error:"){P.succeeded=false;z.numLoaded++;z.numFailed++;r()}else{F(N,P);N.src=R}j[L]=e;try{delete j[L]}catch(S){}M.parentNode.removeChild(M);M=null;delete P.script;delete P.callbackname};M.setAttribute("type","text/javascript");M.setAttribute("src",Q);P.script=M;j.document.body.appendChild(M)}function w(L,N){var M=j.getComputedStyle(L,N),O=M.content;if(O.substr(0,3)==="url"){I.loadImage(k.Util.parseBackgroundImage(O)[0].args[0])}E(M.backgroundImage,L)}function D(L){w(L,":before");w(L,":after")}function p(N,M){var L=k.Generate.Gradient(N,M);if(L!==e){z[N]={img:L,succeeded:true};z.numTotal++;z.numLoaded++;r()}}function n(L){return(L&&L.method&&L.args&&L.args.length>0)}function E(M,L){var N;k.Util.parseBackgroundImage(M).filter(n).forEach(function(O){if(O.method==="url"){I.loadImage(O.args[0])}else{if(O.method.match(/\-?gradient$/)){if(N===e){N=k.Util.Bounds(L)}p(O.value,N)}}})}function v(N){var L=false;try{s.Children(N).forEach(v)}catch(O){}try{L=N.nodeType}catch(M){L=false;s.log("html2canvas: failed to access some element's nodeType - Exception: "+M.message)}if(L===1||L===e){D(N);try{E(s.getCSS(N,"backgroundImage"),N)}catch(O){s.log("html2canvas: failed to get background-image - Exception: "+O.message)}E(N)}}function F(L,M){L.onload=function(){if(M.timer!==e){j.clearTimeout(M.timer)}z.numLoaded++;M.succeeded=true;L.onerror=L.onload=null;r()};L.onerror=function(){if(L.crossOrigin==="anonymous"){j.clearTimeout(M.timer);if(q.proxy){var N=L.src;L=new Image();M.img=L;L.src=N;B(L.src,L,M);return}}z.numLoaded++;z.numFailed++;M.succeeded=false;L.onerror=L.onload=null;r()}}I={loadImage:function(N){var L,M;if(N&&z[N]===e){L=new Image();if(N.match(/data:image\/.*;base64,/i)){L.src=N.replace(/url\(['"]{0,}|['"]{0,}\)$/ig,"");M=z[N]={img:L};z.numTotal++;F(L,M)}else{if(J(N)||q.allowTaint===true){M=z[N]={img:L};z.numTotal++;F(L,M);L.src=N}else{if(x&&!q.allowTaint&&q.useCORS){L.crossOrigin="anonymous";M=z[N]={img:L};z.numTotal++;F(L,M);L.src=N}else{if(q.proxy){M=z[N]={img:L};z.numTotal++;B(N,L,M)}}}}}},cleanupDOM:function(N){var L,O;if(!z.cleanupDone){if(N&&typeof N==="string"){s.log("html2canvas: Cleanup because: "+N)}else{s.log("html2canvas: Cleanup after timeout: "+q.timeout+" ms.")}for(O in z){if(z.hasOwnProperty(O)){L=z[O];if(typeof L==="object"&&L.callbackname&&L.succeeded===e){j[L.callbackname]=e;try{delete j[L.callbackname]}catch(M){}if(L.script&&L.script.parentNode){L.script.setAttribute("src","about:blank");L.script.parentNode.removeChild(L.script)}z.numLoaded++;z.numFailed++;s.log("html2canvas: Cleaned up failed img: '"+O+"' Steps: "+z.numLoaded+" / "+z.numTotal)}}}if(j.stop!==e){j.stop()}else{if(l.execCommand!==e){l.execCommand("Stop",false)}}if(l.close!==e){l.close()}z.cleanupDone=true;if(!(N&&typeof N==="string")){r()}}},renderingDone:function(){if(C){j.clearTimeout(C)}}};if(q.timeout>0){C=j.setTimeout(I.cleanupDOM,q.timeout)}s.log("html2canvas: Preload starts: finding background-images");z.firstRun=true;v(o);s.log("html2canvas: Preload: Finding images");for(G=0;G<A;G+=1){I.loadImage(y[G].getAttribute("src"))}z.firstRun=false;s.log("html2canvas: Preload: Done.");if(z.numTotal===z.numLoaded){r()}return I};k.Renderer=function(q,p){function n(u){var s=[],r;r=(function t(x){var w={};function y(z,B,F){var H=(B.zIndex.zindex==="auto")?0:Number(B.zIndex.zindex),D=z,G=B.zIndex.isPositioned,C=B.zIndex.isFloated,A={node:B},E=F;if(B.zIndex.ownStacking){D=A.context={"!":[{node:B,children:[]}]};E=e}else{if(G||C){E=A.children=[]}}if(H===0&&F){F.push(A)}else{if(!z[H]){z[H]=[]}z[H].push(A)}B.zIndex.children.forEach(function(I){y(D,I,E)})}y(w,x);return w})(u);function v(w){Object.keys(w).sort().forEach(function(A){var y=[],C=[],z=[],B=[];w[A].forEach(function(D){if(D.node.zIndex.isPositioned||D.node.zIndex.opacity<1){z.push(D)}else{if(D.node.zIndex.isFloated){C.push(D)}else{y.push(D)}}});(function x(D){D.forEach(function(E){B.push(E);if(E.children){x(E.children)}})})(y.concat(C,z));B.forEach(function(D){if(D.context){v(D.context)}else{s.push(D.node)}})})}v(r);return s}function o(r){var s;if(typeof p.renderer==="string"&&k.Renderer[r]!==e){s=k.Renderer[r](p)}else{if(typeof r==="function"){s=r(p)}else{throw new Error("Unknown renderer")}}if(typeof s!=="function"){throw new Error("Invalid renderer defined")}return s}return o(p.renderer)(q,p,l,n(q.stack),k)};k.Util.Support=function(o,q){function n(){var s=new Image(),t=q.createElement("canvas"),r=(t.getContext===e)?false:t.getContext("2d");if(r===false){return false}t.width=t.height=10;s.src=["data:image/svg+xml,","<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10'>","<foreignObject width='10' height='10'>","<div xmlns='http://www.w3.org/1999/xhtml' style='width:10;height:10;'>","sup","</div>","</foreignObject>","</svg>"].join("");try{r.drawImage(s,0,0);t.toDataURL()}catch(u){return false}k.Util.log("html2canvas: Parse: SVG powered rendering available");return true}function p(){var u,w,v,s,t=false;if(q.createRange){u=q.createRange();if(u.getBoundingClientRect){w=q.createElement("boundtest");w.style.height="123px";w.style.display="block";q.body.appendChild(w);u.selectNode(w);v=u.getBoundingClientRect();s=v.height;if(s===123){t=true}q.body.removeChild(w)}}return t}return{rangeBounds:p(),svgRendering:o.svgRendering&&n()}};j.html2canvas=function(r,q){r=(r.length)?r:[r];var n,p,o={logging:false,elements:r,background:"#fff",proxy:null,timeout:0,useCORS:false,allowTaint:false,svgRendering:false,ignoreElements:"IFRAME|OBJECT|PARAM",useOverflow:true,letterRendering:false,chinese:false,width:null,height:null,taintTest:true,renderer:"Canvas"};o=k.Util.Extend(q,o);k.logging=o.logging;o.complete=function(s){if(typeof o.onpreloaded==="function"){if(o.onpreloaded(s)===false){return}}n=k.Parse(s,o);if(typeof o.onparsed==="function"){if(o.onparsed(n)===false){return}}p=k.Renderer(n,o);if(typeof o.onrendered==="function"){o.onrendered(p)}};j.setTimeout(function(){k.Preload(o)},0);return{render:function(s,t){return k.Renderer(s,k.Util.Extend(t,o))},parse:function(s,t){return k.Parse(s,k.Util.Extend(t,o))},preload:function(s){return k.Preload(k.Util.Extend(s,o))},log:k.Util.log}};j.html2canvas.log=k.Util.log;j.html2canvas.Renderer={Canvas:e};k.Renderer.Canvas=function(w){w=w||{};var u=l,q=[],v=l.createElement("canvas"),r=v.getContext("2d"),t=k.Util,n=w.canvas||u.createElement("canvas");function p(x,y){x.beginPath();y.forEach(function(z){x[z.name].apply(x,z["arguments"])});x.closePath()}function s(x){if(q.indexOf(x["arguments"][0].src)===-1){r.drawImage(x["arguments"][0],0,0);try{r.getImageData(0,0,1,1)}catch(y){v=u.createElement("canvas");r=v.getContext("2d");return false}q.push(x["arguments"][0].src)}return true}function o(x,y){switch(y.type){case"variable":x[y.name]=y["arguments"];break;case"function":switch(y.name){case"createPattern":if(y["arguments"][0].width>0&&y["arguments"][0].height>0){try{x.fillStyle=x.createPattern(y["arguments"][0],"repeat")}catch(z){t.log("html2canvas: Renderer: Error creating pattern",z.message)}}break;case"drawShape":p(x,y["arguments"]);break;case"drawImage":if(y["arguments"][8]>0&&y["arguments"][7]>0){if(!w.taintTest||(w.taintTest&&s(y))){x.drawImage.apply(x,y["arguments"])}}break;default:x[y.name].apply(x,y["arguments"])}break}}return function(E,G,C,A,B){var F=n.getContext("2d"),y,x,z,D=E.stack;n.width=n.style.width=G.width||D.ctx.width;n.height=n.style.height=G.height||D.ctx.height;z=F.fillStyle;F.fillStyle=(t.isTransparent(D.backgroundColor)&&G.background!==e)?G.background:E.backgroundColor;F.fillRect(0,0,n.width,n.height);F.fillStyle=z;A.forEach(function(H){F.textBaseline="bottom";F.save();if(H.transform.matrix){F.translate(H.transform.origin[0],H.transform.origin[1]);F.transform.apply(F,H.transform.matrix);F.translate(-H.transform.origin[0],-H.transform.origin[1])}if(H.clip){F.beginPath();F.rect(H.clip.left,H.clip.top,H.clip.width,H.clip.height);F.clip()}if(H.ctx.storage){H.ctx.storage.forEach(function(I){o(F,I)})}F.restore()});t.log("html2canvas: Renderer: Canvas renderer done - returning canvas obj");if(G.elements.length===1){if(typeof G.elements[0]==="object"&&G.elements[0].nodeName!=="BODY"){x=B.Util.Bounds(G.elements[0]);y=C.createElement("canvas");y.width=Math.ceil(x.width);y.height=Math.ceil(x.height);F=y.getContext("2d");F.drawImage(n,x.left,x.top,x.width,x.height,0,0,x.width,x.height);n=null;return y}}return n}}})(window,document);/*! jQuery UI - v1.12.1 - 2016-09-14
* http://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
(function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)})(function(k){function G(a){for(var c=a.css("visibility");"inherit"===c;){a=a.parent(),c=a.css("visibility")}return"hidden"!==c}function C(c){for(var d,a;c.length&&c[0]!==document;){if(d=c.css("position"),("absolute"===d||"relative"===d||"fixed"===d)&&(a=parseInt(c.css("zIndex"),10),!isNaN(a)&&0!==a)){return a}c=c.parent()}return 0}function q(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},k.extend(this._defaults,this.regional[""]),this.regional.en=k.extend(!0,{},this.regional[""]),this.regional["en-US"]=k.extend(!0,{},this.regional.en),this.dpDiv=z(k("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function z(c){var a="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return c.on("mouseout",a,function(){k(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&k(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&k(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",a,y)}function y(){k.datepicker._isDisabledDatepicker(A.inline?A.dpDiv.parent()[0]:A.input[0])||(k(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),k(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&k(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&k(this).addClass("ui-datepicker-next-hover"))}function J(d,a){k.extend(d,a);for(var c in a){null==a[c]&&(d[c]=a[c])}return d}function w(a){return function(){var c=this.element.val();a.apply(this,arguments),this._refresh(),c!==this.element.val()&&this._trigger("change")}}k.ui=k.ui||{},k.ui.version="1.12.1";var D=0,B=Array.prototype.slice;k.cleanData=function(a){return function(d){var e,g,f;for(f=0;null!=(g=d[f]);f++){try{e=k._data(g,"events"),e&&e.remove&&k(g).triggerHandler("remove")}catch(c){}}a(d)}}(k.cleanData),k.widget=function(t,m,v){var f,d,u,c={},p=t.split(".")[0];t=t.split(".")[1];var g=p+"-"+t;return v||(v=m,m=k.Widget),k.isArray(v)&&(v=k.extend.apply(null,[{}].concat(v))),k.expr[":"][g.toLowerCase()]=function(a){return !!k.data(a,g)},k[p]=k[p]||{},f=k[p][t],d=k[p][t]=function(a,h){return this._createWidget?(arguments.length&&this._createWidget(a,h),void 0):new d(a,h)},k.extend(d,f,{version:v.version,_proto:k.extend({},v),_childConstructors:[]}),u=new m,u.options=k.widget.extend({},u.options),k.each(v,function(h,a){return k.isFunction(a)?(c[h]=function(){function e(){return m.prototype[h].apply(this,arguments)}function i(l){return m.prototype[h].apply(this,l)}return function(){var n,l=this._super,r=this._superApply;return this._super=e,this._superApply=i,n=a.apply(this,arguments),this._super=l,this._superApply=r,n}}(),void 0):(c[h]=a,void 0)}),d.prototype=k.widget.extend(u,{widgetEventPrefix:f?u.widgetEventPrefix||t:t},c,{constructor:d,namespace:p,widgetName:t,widgetFullName:g}),f?(k.each(f._childConstructors,function(l,a){var h=a.prototype;k.widget(h.namespace+"."+h.widgetName,d,a._proto)}),delete f._childConstructors):m._childConstructors.push(d),k.widget.bridge(t,d),d},k.widget.extend=function(g){for(var d,f,l=B.call(arguments,1),h=0,c=l.length;c>h;h++){for(d in l[h]){f=l[h][d],l[h].hasOwnProperty(d)&&void 0!==f&&(g[d]=k.isPlainObject(f)?k.isPlainObject(g[d])?k.widget.extend({},g[d],f):k.widget.extend({},f):f)}}return g},k.widget.bridge=function(d,a){var c=a.prototype.widgetFullName||d;k.fn[d]=function(h){var g="string"==typeof h,e=B.call(arguments,1),f=this;return g?this.length||"instance"!==h?this.each(function(){var l,m=k.data(this,c);return"instance"===h?(f=m,!1):m?k.isFunction(m[h])&&"_"!==h.charAt(0)?(l=m[h].apply(m,e),l!==m&&void 0!==l?(f=l&&l.jquery?f.pushStack(l.get()):l,!1):void 0):k.error("no such method '"+h+"' for "+d+" widget instance"):k.error("cannot call methods on "+d+" prior to initialization; attempted to call method '"+h+"'")}):f=void 0:(e.length&&(h=k.widget.extend.apply(null,[h].concat(e))),this.each(function(){var i=k.data(this,c);i?(i.option(h||{}),i._init&&i._init()):k.data(this,c,new a(h,this))})),f}},k.Widget=function(){},k.Widget._childConstructors=[],k.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(c,a){a=k(a||this.defaultElement||this)[0],this.element=k(a),this.uuid=D++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=k(),this.hoverable=k(),this.focusable=k(),this.classesElementLookup={},a!==this&&(k.data(a,this.widgetFullName,this),this._on(!0,this.element,{remove:function(d){d.target===a&&this.destroy()}}),this.document=k(a.style?a.ownerDocument:a.document||a),this.window=k(this.document[0].defaultView||this.document[0].parentWindow)),this.options=k.widget.extend({},this.options,this._getCreateOptions(),c),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:k.noop,_create:k.noop,_init:k.noop,destroy:function(){var a=this;this._destroy(),k.each(this.classesElementLookup,function(d,c){a._removeClass(c,d)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:k.noop,widget:function(){return this.element},option:function(g,d){var f,l,h,c=g;if(0===arguments.length){return k.widget.extend({},this.options)}if("string"==typeof g){if(c={},f=g.split("."),g=f.shift(),f.length){for(l=c[g]=k.widget.extend({},this.options[g]),h=0;f.length-1>h;h++){l[f[h]]=l[f[h]]||{},l=l[f[h]]}if(g=f.pop(),1===arguments.length){return void 0===l[g]?null:l[g]}l[g]=d}else{if(1===arguments.length){return void 0===this.options[g]?null:this.options[g]}c[g]=d}}return this._setOptions(c),this},_setOptions:function(a){var c;for(c in a){this._setOption(c,a[c])}return this},_setOption:function(a,c){return"classes"===a&&this._setOptionClasses(c),this.options[a]=c,"disabled"===a&&this._setOptionDisabled(c),this},_setOptionClasses:function(d){var a,c,f;for(a in d){f=this.classesElementLookup[a],d[a]!==this.options.classes[a]&&f&&f.length&&(c=k(f.get()),this._removeClass(f,a),c.addClass(this._classes({element:c,keys:a,classes:d,add:!0})))}},_setOptionDisabled:function(a){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!a),a&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(d){function a(g,l){var e,h;for(h=0;g.length>h;h++){e=f.classesElementLookup[g[h]]||k(),e=d.add?k(k.unique(e.get().concat(d.element.get()))):k(e.not(d.element).get()),f.classesElementLookup[g[h]]=e,c.push(g[h]),l&&d.classes[g[h]]&&c.push(d.classes[g[h]])}}var c=[],f=this;return d=k.extend({element:this.element,classes:this.options.classes||{}},d),this._on(d.element,{remove:"_untrackClassesElement"}),d.keys&&a(d.keys.match(/\S+/g)||[],!0),d.extra&&a(d.extra.match(/\S+/g)||[]),c.join(" ")},_untrackClassesElement:function(c){var a=this;k.each(a.classesElementLookup,function(d,e){-1!==k.inArray(c.target,e)&&(a.classesElementLookup[d]=k(e.not(c.target).get()))})},_removeClass:function(c,d,a){return this._toggleClass(c,d,a,!1)},_addClass:function(c,d,a){return this._toggleClass(c,d,a,!0)},_toggleClass:function(c,f,a,d){d="boolean"==typeof d?d:a;var h="string"==typeof c||null===c,g={extra:h?f:a,keys:h?c:f,element:h?this.element:c,add:d};return g.element.toggleClass(this._classes(g),d),this},_on:function(d,a,c){var g,f=this;"boolean"!=typeof d&&(c=a,a=d,d=!1),c?(a=g=k(a),this.bindings=this.bindings.add(a)):(c=a,a=this.element,g=this.widget()),k.each(c,function(n,i){function o(){return d||f.options.disabled!==!0&&!k(this).hasClass("ui-state-disabled")?("string"==typeof i?f[i]:i).apply(f,arguments):void 0}"string"!=typeof i&&(o.guid=i.guid=i.guid||o.guid||k.guid++);var m=n.match(/^([\w:-]*)\s*(.*)$/),e=m[1]+f.eventNamespace,p=m[2];p?g.on(e,p,o):a.on(e,o)})},_off:function(c,a){a=(a||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,c.off(a).off(a),this.bindings=k(this.bindings.not(c).get()),this.focusable=k(this.focusable.not(c).get()),this.hoverable=k(this.hoverable.not(c).get())},_delay:function(c,f){function a(){return("string"==typeof c?d[c]:c).apply(d,arguments)}var d=this;return setTimeout(a,f||0)},_hoverable:function(a){this.hoverable=this.hoverable.add(a),this._on(a,{mouseenter:function(c){this._addClass(k(c.currentTarget),null,"ui-state-hover")},mouseleave:function(c){this._removeClass(k(c.currentTarget),null,"ui-state-hover")}})},_focusable:function(a){this.focusable=this.focusable.add(a),this._on(a,{focusin:function(c){this._addClass(k(c.currentTarget),null,"ui-state-focus")},focusout:function(c){this._removeClass(k(c.currentTarget),null,"ui-state-focus")}})},_trigger:function(g,d,f){var l,h,c=this.options[g];if(f=f||{},d=k.Event(d),d.type=(g===this.widgetEventPrefix?g:this.widgetEventPrefix+g).toLowerCase(),d.target=this.element[0],h=d.originalEvent){for(l in h){l in d||(d[l]=h[l])}}return this.element.trigger(d,f),!(k.isFunction(c)&&c.apply(this.element[0],[d].concat(f))===!1||d.isDefaultPrevented())}},k.each({show:"fadeIn",hide:"fadeOut"},function(c,a){k.Widget.prototype["_"+c]=function(e,h,g){"string"==typeof h&&(h={effect:h});var d,f=h?h===!0||"number"==typeof h?a:h.effect||a:c;h=h||{},"number"==typeof h&&(h={duration:h}),d=!k.isEmptyObject(h),h.complete=g,h.delay&&e.delay(h.delay),d&&k.effects&&k.effects.effect[f]?e[c](h):f!==c&&e[f]?e[f](h.duration,h.easing,g):e.queue(function(l){k(this)[c](),g&&g.call(e[0]),l()})}}),k.widget,function(){function L(c,d,a){return[parseFloat(c[0])*(P.test(c[0])?d/100:1),parseFloat(c[1])*(P.test(c[1])?a/100:1)]}function t(c,a){return parseInt(k.css(c,a),10)||0}function Q(c){var a=c[0];return 9===a.nodeType?{width:c.width(),height:c.height(),offset:{top:0,left:0}}:k.isWindow(a)?{width:c.width(),height:c.height(),offset:{top:c.scrollTop(),left:c.scrollLeft()}}:a.preventDefault?{width:0,height:0,offset:{top:a.pageY,left:a.pageX}}:{width:c.outerWidth(),height:c.outerHeight(),offset:c.offset()}}var m,g=Math.max,O=Math.abs,f=/left|center|right/,v=/top|center|bottom/,p=/[\+\-]\d+(\.[\d]+)?%?/,N=/^\w+/,P=/%$/,M=k.fn.position;k.position={scrollbarWidth:function(){if(void 0!==m){return m}var d,a,c=k("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),h=c.children()[0];return k("body").append(c),d=h.offsetWidth,c.css("overflow","scroll"),a=h.offsetWidth,d===a&&(a=c[0].clientWidth),c.remove(),m=d-a},getScrollInfo:function(d){var a=d.isWindow||d.isDocument?"":d.element.css("overflow-x"),c=d.isWindow||d.isDocument?"":d.element.css("overflow-y"),l="scroll"===a||"auto"===a&&d.width<d.element[0].scrollWidth,h="scroll"===c||"auto"===c&&d.height<d.element[0].scrollHeight;return{width:h?k.position.scrollbarWidth():0,height:l?k.position.scrollbarWidth():0}},getWithinInfo:function(d){var a=k(d||window),c=k.isWindow(a[0]),l=!!a[0]&&9===a[0].nodeType,h=!c&&!l;return{element:a,isWindow:c,isDocument:l,offset:h?k(d).offset():{left:0,top:0},scrollLeft:a.scrollLeft(),scrollTop:a.scrollTop(),width:a.outerWidth(),height:a.outerHeight()}}},k.fn.position=function(c){if(!c||!c.of){return M.apply(this,arguments)}c=k.extend({},c);var S,a,i,h,d,s,R=k(c.of),o=k.position.getWithinInfo(c.within),l=k.position.getScrollInfo(o),r=(c.collision||"flip").split(" "),e={};return s=Q(R),R[0].preventDefault&&(c.at="left top"),a=s.width,i=s.height,h=s.offset,d=k.extend({},h),k.each(["my","at"],function(){var u,T,n=(c[this]||"").split(" ");1===n.length&&(n=f.test(n[0])?n.concat(["center"]):v.test(n[0])?["center"].concat(n):["center","center"]),n[0]=f.test(n[0])?n[0]:"center",n[1]=v.test(n[1])?n[1]:"center",u=p.exec(n[0]),T=p.exec(n[1]),e[this]=[u?u[0]:0,T?T[0]:0],c[this]=[N.exec(n[0])[0],N.exec(n[1])[0]]}),1===r.length&&(r[1]=r[0]),"right"===c.at[0]?d.left+=a:"center"===c.at[0]&&(d.left+=a/2),"bottom"===c.at[1]?d.top+=i:"center"===c.at[1]&&(d.top+=i/2),S=L(e.at,a,i),d.left+=S[0],d.top+=S[1],this.each(function(){var ab,u,V=k(this),U=V.outerWidth(),X=V.outerHeight(),W=t(this,"marginLeft"),aa=t(this,"marginTop"),Y=U+W+t(this,"marginRight")+l.width,T=X+aa+t(this,"marginBottom")+l.height,n=k.extend({},d),Z=L(e.my,V.outerWidth(),V.outerHeight());"right"===c.my[0]?n.left-=U:"center"===c.my[0]&&(n.left-=U/2),"bottom"===c.my[1]?n.top-=X:"center"===c.my[1]&&(n.top-=X/2),n.left+=Z[0],n.top+=Z[1],ab={marginLeft:W,marginTop:aa},k.each(["left","top"],function(ad,ac){k.ui.position[r[ad]]&&k.ui.position[r[ad]][ac](n,{targetWidth:a,targetHeight:i,elemWidth:U,elemHeight:X,collisionPosition:ab,collisionWidth:Y,collisionHeight:T,offset:[S[0]+Z[0],S[1]+Z[1]],my:c.my,at:c.at,within:o,elem:V})}),c.using&&(u=function(ae){var ah=h.left-n.left,ad=ah+a-U,af=h.top-n.top,ag=af+i-X,ac={target:{element:R,left:h.left,top:h.top,width:a,height:i},element:{element:V,left:n.left,top:n.top,width:U,height:X},horizontal:0>ad?"left":ah>0?"right":"center",vertical:0>ag?"top":af>0?"bottom":"middle"};U>a&&a>O(ah+ad)&&(ac.horizontal="center"),X>i&&i>O(af+ag)&&(ac.vertical="middle"),ac.important=g(O(ah),O(ad))>g(O(af),O(ag))?"horizontal":"vertical",c.using.call(this,ae,ac)}),V.offset(k.extend(n,{using:u}))})},k.ui.position={fit:{left:function(U,S){var u,V=S.within,d=V.isWindow?V.scrollLeft:V.offset.left,T=V.width,c=U.left-S.collisionPosition.marginLeft,R=d-c,o=c+S.collisionWidth-T-d;S.collisionWidth>T?R>0&&0>=o?(u=U.left+R+S.collisionWidth-T-d,U.left+=R-u):U.left=o>0&&0>=R?d:R>o?d+T-S.collisionWidth:d:R>0?U.left+=R:o>0?U.left-=o:U.left=g(U.left-c,U.left)},top:function(U,S){var u,V=S.within,d=V.isWindow?V.scrollTop:V.offset.top,T=S.within.height,c=U.top-S.collisionPosition.marginTop,R=d-c,o=c+S.collisionHeight-T-d;S.collisionHeight>T?R>0&&0>=o?(u=U.top+R+S.collisionHeight-T-d,U.top+=R-u):U.top=o>0&&0>=R?d:R>o?d+T-S.collisionHeight:d:R>0?U.top+=R:o>0?U.top-=o:U.top=g(U.top-c,U.top)}},flip:{left:function(ac,Y){var V,ad,T=Y.within,S=T.offset.left+T.scrollLeft,a=T.width,W=T.isWindow?T.scrollLeft:T.offset.left,U=ac.left-Y.collisionPosition.marginLeft,aa=U-W,ab=U+Y.collisionWidth-a-W,Z="left"===Y.my[0]?-Y.elemWidth:"right"===Y.my[0]?Y.elemWidth:0,R="left"===Y.at[0]?Y.targetWidth:"right"===Y.at[0]?-Y.targetWidth:0,X=-2*Y.offset[0];0>aa?(V=ac.left+Z+R+X+Y.collisionWidth-a-S,(0>V||O(aa)>V)&&(ac.left+=Z+R+X)):ab>0&&(ad=ac.left-Y.collisionPosition.marginLeft+Z+R+X-W,(ad>0||ab>O(ad))&&(ac.left+=Z+R+X))},top:function(ad,Z){var V,ae,T=Z.within,S=T.offset.top+T.scrollTop,a=T.height,W=T.isWindow?T.scrollTop:T.offset.top,U=ad.top-Z.collisionPosition.marginTop,ab=U-W,ac=U+Z.collisionHeight-a-W,aa="top"===Z.my[1],R=aa?-Z.elemHeight:"bottom"===Z.my[1]?Z.elemHeight:0,Y="top"===Z.at[1]?Z.targetHeight:"bottom"===Z.at[1]?-Z.targetHeight:0,X=-2*Z.offset[1];0>ab?(ae=ad.top+R+Y+X+Z.collisionHeight-a-S,(0>ae||O(ab)>ae)&&(ad.top+=R+Y+X)):ac>0&&(V=ad.top-Z.collisionPosition.marginTop+R+Y+X-W,(V>0||ac>O(V))&&(ad.top+=R+Y+X))}},flipfit:{left:function(){k.ui.position.flip.left.apply(this,arguments),k.ui.position.fit.left.apply(this,arguments)},top:function(){k.ui.position.flip.top.apply(this,arguments),k.ui.position.fit.top.apply(this,arguments)}}}}(),k.ui.position,k.extend(k.expr[":"],{data:k.expr.createPseudo?k.expr.createPseudo(function(a){return function(c){return !!k.data(c,a)}}):function(d,a,c){return !!k.data(d,c[3])}}),k.fn.extend({disableSelection:function(){var a="onselectstart" in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(a+".ui-disableSelection",function(c){c.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}});var I="ui-effects-",j="ui-effects-style",H="ui-effects-animated",x=k;k.effects={effect:{}},function(V,Q){function N(c,f,a){var d=U[f.type]||{};return null==c?a||!f.def?null:f.def:(c=d.floor?~~c:parseFloat(c),isNaN(c)?f.def:d.mod?(c+d.mod)%d.mod:0>c?0:c>d.max?d.max:c)}function W(a){var c=M(),d=c._rgba=[];return a=a.toLowerCase(),P(O,function(i,s){var f,p=s.re.exec(a),n=p&&s.parse(p),e=s.space||"rgba";return n?(f=c[e](n),c[S[e].cache]=f[S[e].cache],d=c._rgba=f._rgba,!1):Q}),d.length?("0,0,0,0"===d.join()&&V.extend(d,v.transparent),c):v[a]}function L(c,d,a){return a=(a+1)%1,1>6*a?c+6*(d-c)*a:1>2*a?d:2>3*a?c+6*(d-c)*(2/3-a):c}var v,T="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",g=/^([\-+])=\s*(\d+\.?\d*)/,O=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],a[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],M=V.Color=function(d,a,c,f){return new V.Color.fn.parse(d,a,c,f)},S={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},U={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},R=M.support={},m=V("<p>")[0],P=V.each;m.style.cssText="background-color:rgba(1,1,1,.5)",R.rgba=m.style.backgroundColor.indexOf("rgba")>-1,P(S,function(a,c){c.cache="_"+a,c.props.alpha={idx:3,type:"percent",def:1}}),M.fn=V.extend(M.prototype,{parse:function(s,c,i,f){if(s===Q){return this._rgba=[null,null,null,null],this}(s.jquery||s.nodeType)&&(s=V(s).css(c),c=Q);var e=this,o=V.type(s),l=this._rgba=[];return c!==Q&&(s=[s,c,i,f],o="array"),"string"===o?this.parse(W(s)||v._default):"array"===o?(P(S.rgba.props,function(a,d){l[d.idx]=N(s[d.idx],d)}),this):"object"===o?(s instanceof M?P(S,function(a,d){s[d.cache]&&(e[d.cache]=s[d.cache].slice())}):P(S,function(d,a){var h=a.cache;P(a.props,function(n,p){if(!e[h]&&a.to){if("alpha"===n||null==s[n]){return}e[h]=a.to(e._rgba)}e[h][p.idx]=N(s[n],p,!0)}),e[h]&&0>V.inArray(null,e[h].slice(0,3))&&(e[h][3]=1,a.from&&(e._rgba=a.from(e[h])))}),this):Q},is:function(c){var a=M(c),d=!0,e=this;return P(S,function(h,l){var f,i=a[l.cache];return i&&(f=e[l.cache]||l.to&&l.to(e._rgba)||[],P(l.props,function(o,n){return null!=i[n.idx]?d=i[n.idx]===f[n.idx]:Q})),d}),d},_space:function(){var a=[],c=this;return P(S,function(d,e){c[e.cache]&&a.push(d)}),a.pop()},transition:function(d,p){var i=M(d),X=i._space(),u=S[X],c=0===this.alpha()?M("transparent"):this,l=c[u.cache]||u.to(c._rgba),f=l.slice();return i=i[u.cache],P(u.props,function(r,Z){var s=Z.idx,h=l[s],e=i[s],Y=U[Z.type]||{};null!==e&&(null===h?f[s]=e:(Y.mod&&(e-h>Y.mod/2?h+=Y.mod:h-e>Y.mod/2&&(h-=Y.mod)),f[s]=N((e-h)*p+h,Z)))}),this[X](f)},blend:function(d){if(1===this._rgba[3]){return this}var a=this._rgba.slice(),c=a.pop(),f=M(d)._rgba;return M(V.map(a,function(h,i){return(1-c)*f[i]+c*h}))},toRgbaString:function(){var c="rgba(",a=V.map(this._rgba,function(d,f){return null==d?f>2?1:0:d});return 1===a[3]&&(a.pop(),c="rgb("),c+a.join()+")"},toHslaString:function(){var c="hsla(",a=V.map(this.hsla(),function(d,f){return null==d&&(d=f>2?1:0),f&&3>f&&(d=Math.round(100*d)+"%"),d});return 1===a[3]&&(a.pop(),c="hsl("),c+a.join()+")"},toHexString:function(d){var a=this._rgba.slice(),c=a.pop();return d&&a.push(~~(255*c)),"#"+V.map(a,function(e){return e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),M.fn.parse.prototype=M.fn,S.hsla.to=function(ae){if(null==ae[0]||null==ae[1]||null==ae[2]){return[null,null,null,ae[3]]}var aa,Y,af=ae[0]/255,p=ae[1]/255,f=ae[2]/255,ac=ae[3],d=Math.max(af,p,f),Z=Math.min(af,p,f),X=d-Z,ab=d+Z,ad=0.5*ab;return aa=Z===d?0:af===d?60*(p-f)/X+360:p===d?60*(f-af)/X+120:60*(af-p)/X+240,Y=0===X?0:0.5>=ad?X/ab:X/(2-ab),[Math.round(aa)%360,Y,ad,null==ac?1:ac]},S.hsla.from=function(f){if(null==f[0]||null==f[1]||null==f[2]){return[null,null,null,f[3]]}var n=f[0]/360,d=f[1],h=f[2],p=f[3],c=0.5>=h?h*(1+d):h+d-h*d,l=2*h-c;return[Math.round(255*L(l,c,n+1/3)),Math.round(255*L(l,c,n)),Math.round(255*L(l,c,n-1/3)),p]},P(S,function(f,p){var i=p.props,d=p.cache,e=p.to,l=p.from;M.fn[f]=function(c){if(e&&!this[d]&&(this[d]=e(this._rgba)),c===Q){return this[d].slice()}var t,h=V.type(c),a="array"===h||"object"===h?c:arguments,o=this[d].slice();return P(i,function(n,u){var r=a["object"===h?n:u.idx];null==r&&(r=o[u.idx]),o[u.idx]=N(r,u)}),l?(t=M(l(o)),t[d]=o,t):M(o)},P(i,function(c,a){M.fn[c]||(M.fn[c]=function(Y){var u,s=V.type(Y),t="alpha"===c?this._hsla?"hsla":"rgba":f,r=this[t](),X=r[a.idx];return"undefined"===s?X:("function"===s&&(Y=Y.call(this,X),s=V.type(Y)),null==Y&&a.empty?this:("string"===s&&(u=g.exec(Y),u&&(Y=X+parseFloat(u[2])*("+"===u[1]?1:-1))),r[a.idx]=Y,this[t](r)))})})}),M.hook=function(c){var a=c.split(" ");P(a,function(f,d){V.cssHooks[d]={set:function(s,u){var t,i,p="";if("transparent"!==u&&("string"!==V.type(u)||(t=W(u)))){if(u=M(t||u),!R.rgba&&1!==u._rgba[3]){for(i="backgroundColor"===d?s.parentNode:s;(""===p||"transparent"===p)&&i&&i.style;){try{p=V.css(i,"backgroundColor"),i=i.parentNode}catch(l){}}u=u.blend(p&&"transparent"!==p?p:"_default")}u=u.toRgbaString()}try{s.style[d]=u}catch(l){}}},V.fx.step[d]=function(h){h.colorInit||(h.start=M(h.elem,d),h.end=M(h.end),h.colorInit=!0),V.cssHooks[d].set(h.elem,h.start.transition(h.end,h.pos))}})},M.hook(T),V.cssHooks.borderColor={expand:function(a){var c={};return P(["Top","Right","Bottom","Left"],function(d,e){c["border"+e+"Color"]=a}),c}},v=V.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(x),function(){function d(l){var g,h,p=l.ownerDocument.defaultView?l.ownerDocument.defaultView.getComputedStyle(l,null):l.currentStyle,m={};if(p&&p.length&&p[0]&&p[p[0]]){for(h=p.length;h--;){g=p[h],"string"==typeof p[g]&&(m[k.camelCase(g)]=p[g])}}else{for(g in p){"string"==typeof p[g]&&(m[g]=p[g])}}return m}function a(m,h){var l,n,g={};for(l in h){n=h[l],m[l]!==n&&(f[l]||(k.fx.step[l]||!isNaN(parseFloat(n)))&&(g[l]=n))}return g}var c=["add","remove","toggle"],f={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};k.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(h,g){k.fx.step[g]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(x.style(e.elem,g,e.end),e.setAttr=!0)}}),k.fn.addBack||(k.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),k.effects.animateClass=function(m,l,e,i){var g=k.speed(l,e,i);return this.queue(function(){var s,n=k(this),p=n.attr("class")||"",h=g.children?n.find("*").addBack():n;h=h.map(function(){var o=k(this);return{el:o,start:d(this)}}),s=function(){k.each(c,function(o,r){m[r]&&n[r+"Class"](m[r])})},s(),h=h.map(function(){return this.end=d(this.el[0]),this.diff=a(this.start,this.end),this}),n.attr("class",p),h=h.map(function(){var t=this,o=k.Deferred(),r=k.extend({},g,{queue:!1,complete:function(){o.resolve(t)}});return this.el.animate(this.diff,r),o.promise()}),k.when.apply(k,h.get()).done(function(){s(),k.each(arguments,function(){var o=this.el;k.each(this.diff,function(r){o.css(r,"")})}),g.complete.call(n[0])})})},k.fn.extend({addClass:function(g){return function(e,h,m,l){return h?k.effects.animateClass.call(this,{add:e},h,m,l):g.apply(this,arguments)}}(k.fn.addClass),removeClass:function(g){return function(e,h,m,l){return arguments.length>1?k.effects.animateClass.call(this,{remove:e},h,m,l):g.apply(this,arguments)}}(k.fn.removeClass),toggleClass:function(g){return function(h,l,p,m,e){return"boolean"==typeof l||void 0===l?p?k.effects.animateClass.call(this,l?{add:h}:{remove:h},p,m,e):g.apply(this,arguments):k.effects.animateClass.call(this,{toggle:h},l,p,m)}}(k.fn.toggleClass),switchClass:function(l,g,h,p,m){return k.effects.animateClass.call(this,{add:g,remove:l},h,p,m)}})}(),function(){function d(h,f,g,l){return k.isPlainObject(h)&&(f=h,h=h.effect),h={effect:h},null==f&&(f={}),k.isFunction(f)&&(l=f,g=null,f={}),("number"==typeof f||k.fx.speeds[f])&&(l=g,g=f,f={}),k.isFunction(g)&&(l=g,g=null),f&&k.extend(h,f),g=g||f.duration,h.duration=k.fx.off?0:"number"==typeof g?g:g in k.fx.speeds?k.fx.speeds[g]:k.fx.speeds._default,h.complete=l||f.complete,h}function a(f){return !f||"number"==typeof f||k.fx.speeds[f]?!0:"string"!=typeof f||k.effects.effect[f]?k.isFunction(f)?!0:"object"!=typeof f||f.effect?!1:!0:!0}function c(g,l){var f=l.outerWidth(),h=l.outerHeight(),p=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,m=p.exec(g)||["",0,f,h,0];return{top:parseFloat(m[1])||0,right:"auto"===m[2]?f:parseFloat(m[2]),bottom:"auto"===m[3]?h:parseFloat(m[3]),left:parseFloat(m[4])||0}}k.expr&&k.expr.filters&&k.expr.filters.animated&&(k.expr.filters.animated=function(f){return function(e){return !!k(e).data(H)||f(e)}}(k.expr.filters.animated)),k.uiBackCompat!==!1&&k.extend(k.effects,{save:function(g,l){for(var f=0,h=l.length;h>f;f++){null!==l[f]&&g.data(I+l[f],g[0].style[l[f]])}},restore:function(g,l){for(var f,h=0,m=l.length;m>h;h++){null!==l[h]&&(f=g.data(I+l[h]),g.css(l[h],f))}},setMode:function(f,g){return"toggle"===g&&(g=f.is(":hidden")?"show":"hide"),g},createWrapper:function(l){if(l.parent().is(".ui-effects-wrapper")){return l.parent()}var g={width:l.outerWidth(!0),height:l.outerHeight(!0),"float":l.css("float")},h=k("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),p={width:l.width(),height:l.height()},m=document.activeElement;try{m.id}catch(f){m=document.body}return l.wrap(h),(l[0]===m||k.contains(l[0],m))&&k(m).trigger("focus"),h=l.parent(),"static"===l.css("position")?(h.css({position:"relative"}),l.css({position:"relative"})):(k.extend(g,{position:l.css("position"),zIndex:l.css("z-index")}),k.each(["top","left","bottom","right"],function(e,i){g[i]=l.css(i),isNaN(parseInt(g[i],10))&&(g[i]="auto")}),l.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),l.css(p),h.css(g).show()},removeWrapper:function(g){var f=document.activeElement;return g.parent().is(".ui-effects-wrapper")&&(g.parent().replaceWith(g),(g[0]===f||k.contains(g[0],f))&&k(f).trigger("focus")),g}}),k.extend(k.effects,{version:"1.12.1",define:function(h,f,g){return g||(g=f,f="effect"),k.effects.effect[h]=g,k.effects.effect[h].mode=f,g},scaledDimensions:function(g,l,f){if(0===l){return{height:0,width:0,outerHeight:0,outerWidth:0}}var h="horizontal"!==f?(l||100)/100:1,m="vertical"!==f?(l||100)/100:1;return{height:g.height()*m,width:g.width()*h,outerHeight:g.outerHeight()*m,outerWidth:g.outerWidth()*h}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(g,l,f){var h=g.queue();l>1&&h.splice.apply(h,[1,0].concat(h.splice(l,f))),g.dequeue()},saveStyle:function(e){e.data(j,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(j)||"",e.removeData(j)},mode:function(g,h){var f=g.is(":hidden");return"toggle"===h&&(h=f?"show":"hide"),(f?"hide"===h:"show"===h)&&(h="none"),h},getBaseline:function(g,l){var f,h;switch(g[0]){case"top":f=0;break;case"middle":f=0.5;break;case"bottom":f=1;break;default:f=g[0]/l.height}switch(g[1]){case"left":h=0;break;case"center":h=0.5;break;case"right":h=1;break;default:h=g[1]/l.width}return{x:h,y:f}},createPlaceholder:function(h){var f,g=h.css("position"),l=h.position();return h.css({marginTop:h.css("marginTop"),marginBottom:h.css("marginBottom"),marginLeft:h.css("marginLeft"),marginRight:h.css("marginRight")}).outerWidth(h.outerWidth()).outerHeight(h.outerHeight()),/^(static|relative)/.test(g)&&(g="absolute",f=k("<"+h[0].nodeName+">").insertAfter(h).css({display:/^(inline|ruby)/.test(h.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:h.css("marginTop"),marginBottom:h.css("marginBottom"),marginLeft:h.css("marginLeft"),marginRight:h.css("marginRight"),"float":h.css("float")}).outerWidth(h.outerWidth()).outerHeight(h.outerHeight()).addClass("ui-effects-placeholder"),h.data(I+"placeholder",f)),h.css({position:g,left:l.left,top:l.top}),f},removePlaceholder:function(g){var h=I+"placeholder",f=g.data(h);f&&(f.remove(),g.removeData(h))},cleanUp:function(f){k.effects.restoreStyle(f),k.effects.removePlaceholder(f)},setTransition:function(h,f,g,l){return l=l||{},k.each(f,function(m,e){var n=h.cssUnit(e);n[0]>0&&(l[e]=n[0]*g+n[1])}),l}}),k.fn.extend({effect:function(){function p(o){function l(){n.removeData(H),k.effects.cleanUp(n),"hide"===N.mode&&n.hide(),h()}function h(){k.isFunction(t)&&t.call(n[0]),k.isFunction(o)&&o()}var n=k(this);N.mode=v.shift(),k.uiBackCompat===!1||f?"none"===N.mode?(n[m](),h()):g.call(n[0],N,l):(n.is(":hidden")?"hide"===m:"show"===m)?(n[m](),h()):g.call(n[0],N,h)}var N=d.apply(this,arguments),g=k.effects.effect[N.effect],f=g.mode,L=N.queue,e=L||"fx",t=N.complete,m=N.mode,v=[],M=function(n){var h=k(this),l=k.effects.mode(h,m)||f;h.data(H,!0),v.push(l),f&&("show"===l||l===f&&"hide"===l)&&h.show(),f&&"none"===l||k.effects.saveStyle(h),k.isFunction(n)&&n()};return k.fx.off||!g?m?this[m](N.duration,t):this.each(function(){t&&t.call(this)}):L===!1?this.each(M).each(p):this.queue(e,M).queue(e,p)},show:function(e){return function(f){if(a(f)){return e.apply(this,arguments)}var g=d.apply(this,arguments);return g.mode="show",this.effect.call(this,g)}}(k.fn.show),hide:function(e){return function(f){if(a(f)){return e.apply(this,arguments)}var g=d.apply(this,arguments);return g.mode="hide",this.effect.call(this,g)}}(k.fn.hide),toggle:function(e){return function(f){if(a(f)||"boolean"==typeof f){return e.apply(this,arguments)}var g=d.apply(this,arguments);return g.mode="toggle",this.effect.call(this,g)}}(k.fn.toggle),cssUnit:function(h){var f=this.css(h),g=[];return k.each(["em","px","%","pt"],function(i,l){f.indexOf(l)>0&&(g=[parseFloat(f),l])}),g},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):c(this.css("clip"),this)},transfer:function(L,t){var Q=k(this),m=k(L.to),g="fixed"===m.css("position"),O=k("body"),f=g?O.scrollTop():0,v=g?O.scrollLeft():0,p=m.offset(),N={top:p.top-f,left:p.left-v,height:m.innerHeight(),width:m.innerWidth()},P=Q.offset(),M=k("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(L.className).css({top:P.top-f,left:P.left-v,height:Q.innerHeight(),width:Q.innerWidth(),position:g?"fixed":"absolute"}).animate(N,L.duration,L.easing,function(){M.remove(),k.isFunction(t)&&t()})}}),k.fx.step.clip=function(f){f.clipInit||(f.start=k(f.elem).cssClip(),"string"==typeof f.end&&(f.end=c(f.end,f.elem)),f.clipInit=!0),k(f.elem).cssClip({top:f.pos*(f.end.top-f.start.top)+f.start.top,right:f.pos*(f.end.right-f.start.right)+f.start.right,bottom:f.pos*(f.end.bottom-f.start.bottom)+f.start.bottom,left:f.pos*(f.end.left-f.start.left)+f.start.left})}}(),function(){var a={};k.each(["Quad","Cubic","Quart","Quint","Expo"],function(d,c){a[c]=function(f){return Math.pow(f,d+2)}}),k.extend(a,{Sine:function(c){return 1-Math.cos(c*Math.PI/2)},Circ:function(c){return 1-Math.sqrt(1-c*c)},Elastic:function(c){return 0===c||1===c?c:-Math.pow(2,8*(c-1))*Math.sin((80*(c-1)-7.5)*Math.PI/15)},Back:function(c){return c*c*(3*c-2)},Bounce:function(d){for(var f,c=4;((f=Math.pow(2,--c))-1)/11>d;){}return 1/Math.pow(4,3-c)-7.5625*Math.pow((3*f-2)/22-d,2)}}),k.each(a,function(d,c){k.easing["easeIn"+d]=c,k.easing["easeOut"+d]=function(e){return 1-c(1-e)},k.easing["easeInOut"+d]=function(e){return 0.5>e?c(2*e)/2:1-c(-2*e+2)/2}})}();var F=k.effects;k.effects.define("blind","hide",function(m,d){var g={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},t=k(this),p=m.direction||"up",c=t.cssClip(),l={clip:k.extend({},c)},f=k.effects.createPlaceholder(t);l.clip[g[p][0]]=l.clip[g[p][1]],"show"===m.mode&&(t.cssClip(l.clip),f&&f.css(k.effects.clipToBox(l)),l.clip=c),f&&f.animate(k.effects.clipToBox(l),m.duration,m.easing),t.animate(l,{queue:!1,duration:m.duration,easing:m.easing,complete:d})}),k.effects.define("bounce",function(X,T){var M,Q,P,ab=k(this),N=X.mode,U="hide"===N,S="show"===N,Z=X.direction||"up",L=X.distance,Y=X.times||5,O=2*Y+(S||U?1:0),W=X.duration/O,V=X.easing,R="up"===Z||"down"===Z?"top":"left",ac="up"===Z||"left"===Z,t=0,aa=ab.queue().length;for(k.effects.createPlaceholder(ab),P=ab.css(R),L||(L=ab["top"===R?"outerHeight":"outerWidth"]()/3),S&&(Q={opacity:1},Q[R]=P,ab.css("opacity",0).css(R,ac?2*-L:2*L).animate(Q,W,V)),U&&(L/=Math.pow(2,Y-1)),Q={},Q[R]=P;Y>t;t++){M={},M[R]=(ac?"-=":"+=")+L,ab.animate(M,W,V).animate(Q,W,V),L=U?2*L:L/2}U&&(M={opacity:0},M[R]=(ac?"-=":"+=")+L,ab.animate(M,W,V)),ab.queue(T),k.effects.unshift(ab,aa,O+1)}),k.effects.define("clip","hide",function(t,m){var v,f={},d=k(this),u=t.direction||"vertical",c="both"===u,p=c||"horizontal"===u,g=c||"vertical"===u;v=d.cssClip(),f.clip={top:g?(v.bottom-v.top)/2:v.top,right:p?(v.right-v.left)/2:v.right,bottom:g?(v.bottom-v.top)/2:v.bottom,left:p?(v.right-v.left)/2:v.left},k.effects.createPlaceholder(d),"show"===t.mode&&(d.cssClip(f.clip),f.clip=v),d.animate(f,{queue:!1,duration:t.duration,easing:t.easing,complete:m})}),k.effects.define("drop","hide",function(v,p){var O,g=k(this),f=v.mode,M="show"===f,d=v.direction||"left",t="up"===d||"down"===d?"top":"left",m="up"===d||"left"===d?"-=":"+=",L="+="===m?"-=":"+=",N={opacity:0};k.effects.createPlaceholder(g),O=v.distance||g["top"===t?"outerHeight":"outerWidth"](!0)/2,N[t]=m+O,M&&(g.css(N),N[t]=L+O,N.opacity=1),g.animate(N,{queue:!1,duration:v.duration,easing:v.easing,complete:p})}),k.effects.define("explode","hide",function(X,T){function M(){aa.push(this),aa.length===L*Y&&Q()}function Q(){O.css({visibility:"visible"}),k(aa).remove(),T()}var P,ab,N,U,S,Z,L=X.pieces?Math.round(Math.sqrt(X.pieces)):3,Y=L,O=k(this),W=X.mode,V="show"===W,R=O.show().css("visibility","hidden").offset(),ac=Math.ceil(O.outerWidth()/Y),t=Math.ceil(O.outerHeight()/L),aa=[];for(P=0;L>P;P++){for(U=R.top+P*t,Z=P-(L-1)/2,ab=0;Y>ab;ab++){N=R.left+ab*ac,S=ab-(Y-1)/2,O.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-ab*ac,top:-P*t}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:ac,height:t,left:N+(V?S*ac:0),top:U+(V?Z*t:0),opacity:V?0:1}).animate({left:N+(V?0:S*ac),top:U+(V?0:Z*t),opacity:V?1:0},X.duration||500,X.easing,M)}}}),k.effects.define("fade","toggle",function(d,a){var c="show"===d.mode;k(this).css("opacity",c?0:1).animate({opacity:c?1:0},{queue:!1,duration:d.duration,easing:d.easing,complete:a})}),k.effects.define("fold","hide",function(T,P){var Z=k(this),M=T.mode,L="show"===M,W="hide"===M,t=T.size||15,Q=/([0-9]+)%/.exec(t),O=!!T.horizFirst,V=O?["right","bottom"]:["bottom","right"],Y=T.duration/2,U=k.effects.createPlaceholder(Z),v=Z.cssClip(),S={clip:k.extend({},v)},R={clip:k.extend({},v)},N=[v[V[0]],v[V[1]]],X=Z.queue().length;Q&&(t=parseInt(Q[1],10)/100*N[W?0:1]),S.clip[V[0]]=t,R.clip[V[0]]=t,R.clip[V[1]]=0,L&&(Z.cssClip(R.clip),U&&U.css(k.effects.clipToBox(R)),R.clip=v),Z.queue(function(a){U&&U.animate(k.effects.clipToBox(S),Y,T.easing).animate(k.effects.clipToBox(R),Y,T.easing),a()}).animate(S,Y,T.easing).animate(R,Y,T.easing).queue(P),k.effects.unshift(Z,X,4)}),k.effects.define("highlight","show",function(d,a){var c=k(this),f={backgroundColor:c.css("backgroundColor")};"hide"===d.mode&&(f.opacity=0),k.effects.saveStyle(c),c.css({backgroundImage:"none",backgroundColor:d.color||"#ffff99"}).animate(f,{queue:!1,duration:d.duration,easing:d.easing,complete:a})}),k.effects.define("size",function(X,T){var M,Q,P,aa=k(this),N=["fontSize"],U=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],S=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],Z=X.mode,L="effect"!==Z,Y=X.scale||"both",O=X.origin||["middle","center"],W=aa.css("position"),V=aa.position(),R=k.effects.scaledDimensions(aa),ab=X.from||R,t=X.to||k.effects.scaledDimensions(aa,0);k.effects.createPlaceholder(aa),"show"===Z&&(P=ab,ab=t,t=P),Q={from:{y:ab.height/R.height,x:ab.width/R.width},to:{y:t.height/R.height,x:t.width/R.width}},("box"===Y||"both"===Y)&&(Q.from.y!==Q.to.y&&(ab=k.effects.setTransition(aa,U,Q.from.y,ab),t=k.effects.setTransition(aa,U,Q.to.y,t)),Q.from.x!==Q.to.x&&(ab=k.effects.setTransition(aa,S,Q.from.x,ab),t=k.effects.setTransition(aa,S,Q.to.x,t))),("content"===Y||"both"===Y)&&Q.from.y!==Q.to.y&&(ab=k.effects.setTransition(aa,N,Q.from.y,ab),t=k.effects.setTransition(aa,N,Q.to.y,t)),O&&(M=k.effects.getBaseline(O,R),ab.top=(R.outerHeight-ab.outerHeight)*M.y+V.top,ab.left=(R.outerWidth-ab.outerWidth)*M.x+V.left,t.top=(R.outerHeight-t.outerHeight)*M.y+V.top,t.left=(R.outerWidth-t.outerWidth)*M.x+V.left),aa.css(ab),("content"===Y||"both"===Y)&&(U=U.concat(["marginTop","marginBottom"]).concat(N),S=S.concat(["marginLeft","marginRight"]),aa.find("*[width]").each(function(){var d=k(this),e=k.effects.scaledDimensions(d),f={height:e.height*Q.from.y,width:e.width*Q.from.x,outerHeight:e.outerHeight*Q.from.y,outerWidth:e.outerWidth*Q.from.x},c={height:e.height*Q.to.y,width:e.width*Q.to.x,outerHeight:e.height*Q.to.y,outerWidth:e.width*Q.to.x};Q.from.y!==Q.to.y&&(f=k.effects.setTransition(d,U,Q.from.y,f),c=k.effects.setTransition(d,U,Q.to.y,c)),Q.from.x!==Q.to.x&&(f=k.effects.setTransition(d,S,Q.from.x,f),c=k.effects.setTransition(d,S,Q.to.x,c)),L&&k.effects.saveStyle(d),d.css(f),d.animate(c,X.duration,X.easing,function(){L&&k.effects.restoreStyle(d)})})),aa.animate(t,{queue:!1,duration:X.duration,easing:X.easing,complete:function(){var a=aa.offset();0===t.opacity&&aa.css("opacity",ab.opacity),L||(aa.css("position","static"===W?"relative":W).offset(a),k.effects.saveStyle(aa)),T()}})}),k.effects.define("scale",function(g,d){var f=k(this),l=g.mode,h=parseInt(g.percent,10)||(0===parseInt(g.percent,10)?0:"effect"!==l?0:100),c=k.extend(!0,{from:k.effects.scaledDimensions(f),to:k.effects.scaledDimensions(f,h,g.direction||"both"),origin:g.origin||["middle","center"]},g);g.fade&&(c.from.opacity=1,c.to.opacity=0),k.effects.effect.size.call(this,c,d)}),k.effects.define("puff","hide",function(d,a){var c=k.extend(!0,{},d,{fade:!0,percent:parseInt(d.percent,10)||150});k.effects.effect.scale.call(this,c,a)}),k.effects.define("pulsate","show",function(L,t){var Q=k(this),m=L.mode,g="show"===m,O="hide"===m,f=g||O,v=2*(L.times||5)+(f?1:0),p=L.duration/v,N=0,P=1,M=Q.queue().length;for((g||!Q.is(":visible"))&&(Q.css("opacity",0).show(),N=1);v>P;P++){Q.animate({opacity:N},p,L.easing),N=1-N}Q.animate({opacity:N},p,L.easing),Q.queue(t),k.effects.unshift(Q,M,v+1)}),k.effects.define("shake",function(R,N){var W=1,L=k(this),v=R.direction||"left",U=R.distance||20,m=R.times||3,O=2*m+1,M=Math.round(R.duration/O),T="up"===v||"down"===v?"top":"left",V="up"===v||"left"===v,S={},t={},Q={},P=L.queue().length;for(k.effects.createPlaceholder(L),S[T]=(V?"-=":"+=")+U,t[T]=(V?"+=":"-=")+2*U,Q[T]=(V?"-=":"+=")+2*U,L.animate(S,M,R.easing);m>W;W++){L.animate(t,M,R.easing).animate(Q,M,R.easing)}L.animate(t,M,R.easing).animate(S,M/2,R.easing).queue(N),k.effects.unshift(L,P,O+1)}),k.effects.define("slide","show",function(L,t){var Q,m,g=k(this),O={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},f=L.mode,v=L.direction||"left",p="up"===v||"down"===v?"top":"left",N="up"===v||"left"===v,P=L.distance||g["top"===p?"outerHeight":"outerWidth"](!0),M={};k.effects.createPlaceholder(g),Q=g.cssClip(),m=g.position()[p],M[p]=(N?-1:1)*P+m,M.clip=g.cssClip(),M.clip[O[v][1]]=M.clip[O[v][0]],"show"===f&&(g.cssClip(M.clip),g.css(p,M[p]),M.clip=Q,M[p]=m),g.animate(M,{queue:!1,duration:L.duration,easing:L.easing,complete:t})});var F;k.uiBackCompat!==!1&&(F=k.effects.define("transfer",function(c,a){k(this).transfer(c,a)})),k.ui.focusable=function(e,g){var t,p,d,m,f,c=e.nodeName.toLowerCase();return"area"===c?(t=e.parentNode,p=t.name,e.href&&p&&"map"===t.nodeName.toLowerCase()?(d=k("img[usemap='#"+p+"']"),d.length>0&&d.is(":visible")):!1):(/^(input|select|textarea|button|object)$/.test(c)?(m=!e.disabled,m&&(f=k(e).closest("fieldset")[0],f&&(m=!f.disabled))):m="a"===c?e.href||g:g,m&&k(e).is(":visible")&&G(k(e)))},k.extend(k.expr[":"],{focusable:function(a){return k.ui.focusable(a,null!=k.attr(a,"tabindex"))}}),k.ui.focusable,k.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):k(this[0].form)},k.ui.formResetMixin={_formResetHandler:function(){var a=k(this);setTimeout(function(){var c=a.data("ui-form-reset-instances");k.each(c,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var a=this.form.data("ui-form-reset-instances")||[];a.length||this.form.on("reset.ui-form-reset",this._formResetHandler),a.push(this),this.form.data("ui-form-reset-instances",a)}},_unbindFormResetHandler:function(){if(this.form.length){var a=this.form.data("ui-form-reset-instances");a.splice(k.inArray(this,a),1),a.length?this.form.data("ui-form-reset-instances",a):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},"1.7"===k.fn.jquery.substring(0,3)&&(k.each(["Width","Height"],function(g,d){function f(n,a,m,p){return k.each(l,function(){a-=parseFloat(k.css(n,"padding"+this))||0,m&&(a-=parseFloat(k.css(n,"border"+this+"Width"))||0),p&&(a-=parseFloat(k.css(n,"margin"+this))||0)}),a}var l="Width"===d?["Left","Right"]:["Top","Bottom"],h=d.toLowerCase(),c={innerWidth:k.fn.innerWidth,innerHeight:k.fn.innerHeight,outerWidth:k.fn.outerWidth,outerHeight:k.fn.outerHeight};k.fn["inner"+d]=function(a){return void 0===a?c["inner"+d].call(this):this.each(function(){k(this).css(h,f(this,a)+"px")})},k.fn["outer"+d]=function(a,i){return"number"!=typeof a?c["outer"+d].call(this,a):this.each(function(){k(this).css(h,f(this,a,!0,i)+"px")})}}),k.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),k.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},k.ui.escapeSelector=function(){var a=/([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g;return function(c){return c.replace(a,"\\$1")}}(),k.fn.labels=function(){var d,a,c,g,f;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(g=this.eq(0).parents("label"),c=this.attr("id"),c&&(d=this.eq(0).parents().last(),f=d.add(d.length?d.siblings():this.siblings()),a="label[for='"+k.ui.escapeSelector(c)+"']",g=g.add(f.find(a).addBack(a))),this.pushStack(g))},k.fn.scrollParent=function(d){var a=this.css("position"),c="absolute"===a,g=d?/(auto|scroll|hidden)/:/(auto|scroll)/,f=this.parents().filter(function(){var h=k(this);return c&&"static"===h.css("position")?!1:g.test(h.css("overflow")+h.css("overflow-y")+h.css("overflow-x"))}).eq(0);return"fixed"!==a&&f.length?f:k(this[0].ownerDocument||document)},k.extend(k.expr[":"],{tabbable:function(d){var a=k.attr(d,"tabindex"),c=null!=a;return(!c||a>=0)&&k.ui.focusable(d,c)}}),k.fn.extend({uniqueId:function(){var a=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++a)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&k(this).removeAttr("id")})}}),k.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var a=this.options;this.prevShow=this.prevHide=k(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),a.collapsible||a.active!==!1&&null!=a.active||(a.active=0),this._processPanels(),0>a.active&&(a.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():k()}},_createIcons:function(){var d,a,c=this.options.icons;c&&(d=k("<span>"),this._addClass(d,"ui-accordion-header-icon","ui-icon "+c.header),d.prependTo(this.headers),a=this.active.children(".ui-accordion-header-icon"),this._removeClass(a,c.header)._addClass(a,null,c.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var a;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),a=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&a.css("height","")},_setOption:function(a,c){return"active"===a?(this._activate(c),void 0):("event"===a&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(c)),this._super(a,c),"collapsible"!==a||c||this.options.active!==!1||this._activate(0),"icons"===a&&(this._destroyIcons(),c&&this._createIcons()),void 0)},_setOptionDisabled:function(a){this._super(a),this.element.attr("aria-disabled",a),this._toggleClass(null,"ui-state-disabled",!!a),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!a)},_keydown:function(d){if(!d.altKey&&!d.ctrlKey){var a=k.ui.keyCode,c=this.headers.length,g=this.headers.index(d.target),f=!1;switch(d.keyCode){case a.RIGHT:case a.DOWN:f=this.headers[(g+1)%c];break;case a.LEFT:case a.UP:f=this.headers[(g-1+c)%c];break;case a.SPACE:case a.ENTER:this._eventHandler(d);break;case a.HOME:f=this.headers[0];break;case a.END:f=this.headers[c-1]}f&&(k(d.target).attr("tabIndex",-1),k(f).attr("tabIndex",0),k(f).trigger("focus"),d.preventDefault())}},_panelKeyDown:function(a){a.keyCode===k.ui.keyCode.UP&&a.ctrlKey&&k(a.currentTarget).prev().trigger("focus")},refresh:function(){var a=this.options;this._processPanels(),a.active===!1&&a.collapsible===!0||!this.headers.length?(a.active=!1,this.active=k()):a.active===!1?this._activate(0):this.active.length&&!k.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(a.active=!1,this.active=k()):this._activate(Math.max(0,a.active-1)):a.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var a=this.headers,c=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),c&&(this._off(a.not(this.headers)),this._off(c.not(this.panels)))},_refresh:function(){var d,a=this.options,c=a.heightStyle,f=this.element.parent();this.active=this._findActive(a.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var l=k(this),g=l.uniqueId().attr("id"),h=l.next(),m=h.uniqueId().attr("id");l.attr("aria-controls",m),h.attr("aria-labelledby",g)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(a.event),"fill"===c?(d=f.height(),this.element.siblings(":visible").each(function(){var e=k(this),g=e.css("position");"absolute"!==g&&"fixed"!==g&&(d-=e.outerHeight(!0))}),this.headers.each(function(){d-=k(this).outerHeight(!0)}),this.headers.next().each(function(){k(this).height(Math.max(0,d-k(this).innerHeight()+k(this).height()))}).css("overflow","auto")):"auto"===c&&(d=0,this.headers.next().each(function(){var e=k(this).is(":visible");e||k(this).show(),d=Math.max(d,k(this).css("height","").height()),e||k(this).hide()}).height(d))},_activate:function(c){var a=this._findActive(c)[0];a!==this.active[0]&&(a=a||this.active[0],this._eventHandler({target:a,currentTarget:a,preventDefault:k.noop}))},_findActive:function(a){return"number"==typeof a?this.headers.eq(a):k()},_setupEvents:function(c){var a={keydown:"_keydown"};c&&k.each(c.split(" "),function(d,f){a[f]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,a),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(v){var p,O,g=this.options,f=this.active,M=k(v.currentTarget),d=M[0]===f[0],t=d&&g.collapsible,m=t?k():M.next(),L=f.next(),N={oldHeader:f,oldPanel:L,newHeader:t?k():M,newPanel:m};v.preventDefault(),d&&!g.collapsible||this._trigger("beforeActivate",v,N)===!1||(g.active=t?!1:this.headers.index(M),this.active=d?k():M,this._toggle(N),this._removeClass(f,"ui-accordion-header-active","ui-state-active"),g.icons&&(p=f.children(".ui-accordion-header-icon"),this._removeClass(p,null,g.icons.activeHeader)._addClass(p,null,g.icons.header)),d||(this._removeClass(M,"ui-accordion-header-collapsed")._addClass(M,"ui-accordion-header-active","ui-state-active"),g.icons&&(O=M.children(".ui-accordion-header-icon"),this._removeClass(O,null,g.icons.header)._addClass(O,null,g.icons.activeHeader)),this._addClass(M.next(),"ui-accordion-content-active")))},_toggle:function(d){var a=d.newPanel,c=this.prevShow.length?this.prevShow:d.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=a,this.prevHide=c,this.options.animate?this._animate(a,c,d):(c.hide(),a.show(),this._toggleComplete(d)),c.attr({"aria-hidden":"true"}),c.prev().attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&c.length?c.prev().attr({tabIndex:-1,"aria-expanded":"false"}):a.length&&this.headers.filter(function(){return 0===parseInt(k(this).attr("tabIndex"),10)}).attr("tabIndex",-1),a.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(R,M,v){var S,m,g,P=this,f=0,L=R.css("box-sizing"),p=R.length&&(!M.length||R.index()<M.index()),O=this.options.animate||{},Q=p&&O.down||O,N=function(){P._toggleComplete(v)};return"number"==typeof Q&&(g=Q),"string"==typeof Q&&(m=Q),m=m||Q.easing||O.easing,g=g||Q.duration||O.duration,M.length?R.length?(S=R.show().outerHeight(),M.animate(this.hideProps,{duration:g,easing:m,step:function(a,c){c.now=Math.round(a)}}),R.hide().animate(this.showProps,{duration:g,easing:m,complete:N,step:function(c,a){a.now=Math.round(c),"height"!==a.prop?"content-box"===L&&(f+=a.now):"content"!==P.options.heightStyle&&(a.now=Math.round(S-M.outerHeight()-f),f=0)}}),void 0):M.animate(this.hideProps,g,m,N):R.animate(this.showProps,g,m,N)},_toggleComplete:function(c){var d=c.oldPanel,a=d.prev();this._removeClass(d,"ui-accordion-content-active"),this._removeClass(a,"ui-accordion-header-active")._addClass(a,"ui-accordion-header-collapsed"),d.length&&(d.parent()[0].className=d.parent()[0].className),this._trigger("activate",null,c)}}),k.ui.safeActiveElement=function(c){var d;try{d=c.activeElement}catch(a){d=c.body}return d||(d=c.body),d.nodeName||(d=c.body),d},k.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(a){a.preventDefault()},"click .ui-menu-item":function(d){var a=k(d.target),c=k(k.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&a.not(".ui-state-disabled").length&&(this.select(d),d.isPropagationStopped()||(this.mouseHandled=!0),a.has(".ui-menu").length?this.expand(d):!this.element.is(":focus")&&c.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(d){if(!this.previousFilter){var a=k(d.target).closest(".ui-menu-item"),c=k(d.currentTarget);a[0]===c[0]&&(this._removeClass(c.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(d,c))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(c,d){var a=this.active||this.element.find(this.options.items).eq(0);d||this.focus(c,a)},blur:function(a){this._delay(function(){var c=!k.contains(this.element[0],k.ui.safeActiveElement(this.document[0]));c&&this.collapseAll(a)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(a){this._closeOnDocumentClick(a)&&this.collapseAll(a),this.mouseHandled=!1}})},_destroy:function(){var c=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),a=c.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),a.children().each(function(){var d=k(this);d.data("ui-menu-submenu-caret")&&d.remove()})},_keydown:function(g){var d,f,l,h,c=!0;switch(g.keyCode){case k.ui.keyCode.PAGE_UP:this.previousPage(g);break;case k.ui.keyCode.PAGE_DOWN:this.nextPage(g);break;case k.ui.keyCode.HOME:this._move("first","first",g);break;case k.ui.keyCode.END:this._move("last","last",g);break;case k.ui.keyCode.UP:this.previous(g);break;case k.ui.keyCode.DOWN:this.next(g);break;case k.ui.keyCode.LEFT:this.collapse(g);break;case k.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(g);break;case k.ui.keyCode.ENTER:case k.ui.keyCode.SPACE:this._activate(g);break;case k.ui.keyCode.ESCAPE:this.collapse(g);break;default:c=!1,f=this.previousFilter||"",h=!1,l=g.keyCode>=96&&105>=g.keyCode?""+(g.keyCode-96):String.fromCharCode(g.keyCode),clearTimeout(this.filterTimer),l===f?h=!0:l=f+l,d=this._filterMenuItems(l),d=h&&-1!==d.index(this.active.next())?this.active.nextAll(".ui-menu-item"):d,d.length||(l=String.fromCharCode(g.keyCode),d=this._filterMenuItems(l)),d.length?(this.focus(g,d),this.previousFilter=l,this.filterTimer=this._delay(function(){delete this.previousFilter},1000)):delete this.previousFilter}c&&g.preventDefault()},_activate:function(a){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(a):this.select(a))},refresh:function(){var m,d,g,t,p,c=this,l=this.options.icons.submenu,f=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),g=f.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var n=k(this),a=n.prev(),h=k("<span>").data("ui-menu-submenu-caret",!0);c._addClass(h,"ui-menu-icon","ui-icon "+l),a.attr("aria-haspopup","true").prepend(h),n.attr("aria-labelledby",a.attr("id"))}),this._addClass(g,"ui-menu","ui-widget ui-widget-content ui-front"),m=f.add(this.element),d=m.find(this.options.items),d.not(".ui-menu-item").each(function(){var a=k(this);c._isDivider(a)&&c._addClass(a,"ui-menu-divider","ui-widget-content")}),t=d.not(".ui-menu-item, .ui-menu-divider"),p=t.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(t,"ui-menu-item")._addClass(p,"ui-menu-item-wrapper"),d.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!k.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(c,d){if("icons"===c){var a=this.element.find(".ui-menu-icon");this._removeClass(a,null,this.options.icons.submenu)._addClass(a,null,d.submenu)}this._super(c,d)},_setOptionDisabled:function(a){this._super(a),this.element.attr("aria-disabled",a+""),this._toggleClass(null,"ui-state-disabled",!!a)},focus:function(c,f){var a,d,g;this.blur(c,c&&"focus"===c.type),this._scrollIntoView(f),this.active=f.first(),d=this.active.children(".ui-menu-item-wrapper"),this._addClass(d,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",d.attr("id")),g=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(g,null,"ui-state-active"),c&&"keydown"===c.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),a=f.children(".ui-menu"),a.length&&c&&/^mouse/.test(c.type)&&this._startOpening(a),this.activeMenu=f.parent(),this._trigger("focus",c,{item:f})},_scrollIntoView:function(h){var d,f,m,l,c,g;this._hasScroll()&&(d=parseFloat(k.css(this.activeMenu[0],"borderTopWidth"))||0,f=parseFloat(k.css(this.activeMenu[0],"paddingTop"))||0,m=h.offset().top-this.activeMenu.offset().top-d-f,l=this.activeMenu.scrollTop(),c=this.activeMenu.height(),g=h.outerHeight(),0>m?this.activeMenu.scrollTop(l+m):m+g>c&&this.activeMenu.scrollTop(l+m-c+g))},blur:function(a,c){c||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",a,{item:this.active}),this.active=null)},_startOpening:function(a){clearTimeout(this.timer),"true"===a.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(a)},this.delay))},_open:function(c){var a=k.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(c.parents(".ui-menu")).hide().attr("aria-hidden","true"),c.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(a)},collapseAll:function(c,a){clearTimeout(this.timer),this.timer=this._delay(function(){var d=a?this.element:k(c&&c.target).closest(this.element.find(".ui-menu"));d.length||(d=this.element),this._close(d),this.blur(c),this._removeClass(d.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=d},this.delay)},_close:function(a){a||(a=this.active?this.active.parent():this.element),a.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(a){return !k(a.target).closest(".ui-menu").length},_isDivider:function(a){return !/[^\-\u2014\u2013\s]/.test(a.text())},collapse:function(a){var c=this.active&&this.active.parent().closest(".ui-menu-item",this.element);c&&c.length&&(this._close(),this.focus(a,c))},expand:function(a){var c=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();c&&c.length&&(this._open(c.parent()),this._delay(function(){this.focus(a,c)}))},next:function(a){this._move("next","first",a)},previous:function(a){this._move("prev","last",a)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(c,f,a){var d;this.active&&(d="first"===c||"last"===c?this.active["first"===c?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[c+"All"](".ui-menu-item").eq(0)),d&&d.length&&this.active||(d=this.activeMenu.find(this.options.items)[f]()),this.focus(a,d)},nextPage:function(d){var a,c,f;return this.active?(this.isLastItem()||(this._hasScroll()?(c=this.active.offset().top,f=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return a=k(this),0>a.offset().top-c-f}),this.focus(d,a)):this.focus(d,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())),void 0):(this.next(d),void 0)},previousPage:function(d){var a,c,f;return this.active?(this.isFirstItem()||(this._hasScroll()?(c=this.active.offset().top,f=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return a=k(this),a.offset().top-c+f>0}),this.focus(d,a)):this.focus(d,this.activeMenu.find(this.options.items).first())),void 0):(this.next(d),void 0)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(c){this.active=this.active||k(c.target).closest(".ui-menu-item");var a={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(c,!0),this._trigger("select",c,a)},_filterMenuItems:function(d){var a=d.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),c=RegExp("^"+a,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return c.test(k.trim(k(this).children(".ui-menu-item-wrapper").text()))})}}),k.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var g,d,f,l=this.element[0].nodeName.toLowerCase(),h="textarea"===l,c="input"===l;this.isMultiLine=h||!c&&this._isContentEditable(this.element),this.valueMethod=this.element[h||c?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly")){return g=!0,f=!0,d=!0,void 0}g=!1,f=!1,d=!1;var a=k.ui.keyCode;switch(e.keyCode){case a.PAGE_UP:g=!0,this._move("previousPage",e);break;case a.PAGE_DOWN:g=!0,this._move("nextPage",e);break;case a.UP:g=!0,this._keyEvent("previous",e);break;case a.DOWN:g=!0,this._keyEvent("next",e);break;case a.ENTER:this.menu.active&&(g=!0,e.preventDefault(),this.menu.select(e));break;case a.TAB:this.menu.active&&this.menu.select(e);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:d=!0,this._searchTimeout(e)}},keypress:function(a){if(g){return g=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&a.preventDefault(),void 0}if(!d){var e=k.ui.keyCode;switch(a.keyCode){case e.PAGE_UP:this._move("previousPage",a);break;case e.PAGE_DOWN:this._move("nextPage",a);break;case e.UP:this._keyEvent("previous",a);break;case e.DOWN:this._keyEvent("next",a)}}},input:function(a){return f?(f=!1,a.preventDefault(),void 0):(this._searchTimeout(a),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(a){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(a),this._change(a),void 0)}}),this._initSource(),this.menu=k("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(a){a.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==k.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(o,a){var m,p;return this.isNewMenu&&(this.isNewMenu=!1,o.originalEvent&&/^mouse/.test(o.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){k(o.target).trigger(o.originalEvent)}),void 0):(p=a.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",o,{item:p})&&o.originalEvent&&/^key/.test(o.originalEvent.type)&&this._value(p.value),m=a.item.attr("aria-label")||p.value,m&&k.trim(m).length&&(this.liveRegion.children().hide(),k("<div>").text(m).appendTo(this.liveRegion)),void 0)},menuselect:function(o,a){var m=a.item.data("ui-autocomplete-item"),p=this.previous;this.element[0]!==k.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=p,this._delay(function(){this.previous=p,this.selectedItem=m})),!1!==this._trigger("select",o,{item:m})&&this._value(m.value),this.term=this._value(),this.close(o),this.selectedItem=m}}),this.liveRegion=k("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(a,c){this._super(a,c),"source"===a&&this._initSource(),"appendTo"===a&&this.menu.element.appendTo(this._appendTo()),"disabled"===a&&c&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(c){var a=this.menu.element[0];return c.target===this.element[0]||c.target===a||k.contains(a,c.target)},_closeOnClickOutside:function(a){this._isEventTargetInWidget(a)||this.close()},_appendTo:function(){var a=this.options.appendTo;return a&&(a=a.jquery||a.nodeType?k(a):this.document.find(a).eq(0)),a&&a[0]||(a=this.element.closest(".ui-front, dialog")),a.length||(a=this.document[0].body),a},_initSource:function(){var d,a,c=this;k.isArray(this.options.source)?(d=this.options.source,this.source=function(e,f){f(k.ui.autocomplete.filter(d,e.term))}):"string"==typeof this.options.source?(a=this.options.source,this.source=function(f,g){c.xhr&&c.xhr.abort(),c.xhr=k.ajax({url:a,data:f,dataType:"json",success:function(e){g(e)},error:function(){g([])}})}):this.source=this.options.source},_searchTimeout:function(a){clearTimeout(this.searching),this.searching=this._delay(function(){var f=this.term===this._value(),c=this.menu.element.is(":visible"),d=a.altKey||a.ctrlKey||a.metaKey||a.shiftKey;(!f||f&&!c&&!d)&&(this.selectedItem=null,this.search(null,a))},this.options.delay)},search:function(a,c){return a=null!=a?a:this._value(),this.term=this._value(),a.length<this.options.minLength?this.close(c):this._trigger("search",c)!==!1?this._search(a):void 0},_search:function(a){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:a},this._response())},_response:function(){var a=++this.requestIndex;return k.proxy(function(c){a===this.requestIndex&&this.__response(c),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(a){a&&(a=this._normalize(a)),this._trigger("response",null,{content:a}),!this.options.disabled&&a&&a.length&&!this.cancelSearch?(this._suggest(a),this._trigger("open")):this._close()},close:function(a){this.cancelSearch=!0,this._close(a)},_close:function(a){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",a))},_change:function(a){this.previous!==this._value()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(a){return a.length&&a[0].label&&a[0].value?a:k.map(a,function(c){return"string"==typeof c?{label:c,value:c}:k.extend({},c,{label:c.label||c.value,value:c.value||c.label})})},_suggest:function(c){var a=this.menu.element.empty();this._renderMenu(a,c),this.isNewMenu=!0,this.menu.refresh(),a.show(),this._resizeMenu(),a.position(k.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(d,a){var c=this;k.each(a,function(f,e){c._renderItemData(d,e)})},_renderItemData:function(a,c){return this._renderItem(a,c).data("ui-autocomplete-item",c)},_renderItem:function(c,a){return k("<li>").append(k("<div>").text(a.label)).appendTo(c)},_move:function(a,c){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(a)||this.menu.isLastItem()&&/^next/.test(a)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[a](c),void 0):(this.search(null,c),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(a,c){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(a,c),c.preventDefault())},_isContentEditable:function(a){if(!a.length){return !1}var c=a.prop("contentEditable");return"inherit"===c?this._isContentEditable(a.parent()):"true"===c}}),k.extend(k.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(d,a){var c=RegExp(k.ui.autocomplete.escapeRegex(a),"i");return k.grep(d,function(e){return c.test(e.label||e.value||e)})}}),k.widget("ui.autocomplete",k.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(a){return a+(a>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(c){var a;this._superApply(arguments),this.options.disabled||this.cancelSearch||(a=c&&c.length?this.options.messages.results(c.length):this.options.messages.noResults,this.liveRegion.children().hide(),k("<div>").text(a).appendTo(this.liveRegion))}}),k.ui.autocomplete;var E=/ui-corner-([a-z]){2,6}/g;k.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var c=this,a=[];k.each(this.options.items,function(e,g){var f,d={};return g?"controlgroupLabel"===e?(f=c.element.find(g),f.each(function(){var h=k(this);h.children(".ui-controlgroup-label-contents").length||h.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),c._addClass(f,null,"ui-widget ui-widget-content ui-state-default"),a=a.concat(f.get()),void 0):(k.fn[e]&&(d=c["_"+e+"Options"]?c["_"+e+"Options"]("middle"):{classes:{}},c.element.find(g).each(function(){var p=k(this),m=p[e]("instance"),l=k.widget.extend({},d);if("button"!==e||!p.parent(".ui-spinner").length){m||(m=p[e]()[e]("instance")),m&&(l.classes=c._resolveClassesValues(l.classes,m)),p[e](l);var i=p[e]("widget");k.data(i[0],"ui-controlgroup-data",m?m:p[e]("instance")),a.push(i[0])}})),void 0):void 0}),this.childWidgets=k(k.unique(a)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(a){this.childWidgets.each(function(){var c=k(this),d=c.data("ui-controlgroup-data");d&&d[a]&&d[a]()})},_updateCornerClass:function(c,f){var a="ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all",d=this._buildSimpleOptions(f,"label").classes.label;this._removeClass(c,null,a),this._addClass(c,null,d)},_buildSimpleOptions:function(c,f){var a="vertical"===this.options.direction,d={classes:{}};return d.classes[f]={middle:"",first:"ui-corner-"+(a?"top":"left"),last:"ui-corner-"+(a?"bottom":"right"),only:"ui-corner-all"}[c],d},_spinnerOptions:function(a){var c=this._buildSimpleOptions(a,"ui-spinner");return c.classes["ui-spinner-up"]="",c.classes["ui-spinner-down"]="",c},_buttonOptions:function(a){return this._buildSimpleOptions(a,"ui-button")},_checkboxradioOptions:function(a){return this._buildSimpleOptions(a,"ui-checkboxradio-label")},_selectmenuOptions:function(a){var c="vertical"===this.options.direction;return{width:c?"auto":!1,classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(c?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(c?"top":"left")},last:{"ui-selectmenu-button-open":c?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(c?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[a]}},_resolveClassesValues:function(d,a){var c={};return k.each(d,function(f){var e=a.options.classes[f]||"";e=k.trim(e.replace(E,"")),c[f]=(e+" "+d[f]).replace(/\s+/g," ")}),c},_setOption:function(a,c){return"direction"===a&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(a,c),"disabled"===a?(this._callChildMethod(c?"disable":"enable"),void 0):(this.refresh(),void 0)},refresh:function(){var c,a=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),c=this.childWidgets,this.options.onlyVisible&&(c=c.filter(":visible")),c.length&&(k.each(["first","last"],function(d,e){var g=c[e]().data("ui-controlgroup-data");if(g&&a["_"+g.widgetName+"Options"]){var f=a["_"+g.widgetName+"Options"](1===c.length?"only":e);f.classes=a._resolveClassesValues(f.classes,g),g.element[g.widgetName](f)}else{a._updateCornerClass(c[e](),e)}}),this._callChildMethod("refresh"))}}),k.widget("ui.checkboxradio",[k.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var d,a,c=this,f=this._super()||{};return this._readType(),a=this.element.labels(),this.label=k(a[a.length-1]),this.label.length||k.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){c.originalLabel+=3===this.nodeType?k(this).text():this.outerHTML}),this.originalLabel&&(f.label=this.originalLabel),d=this.element[0].disabled,null!=d&&(f.disabled=d),f},_create:function(){var a=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),a&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var a=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===a&&/radio|checkbox/.test(this.type)||k.error("Can't create checkboxradio on element.nodeName="+a+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var d,a=this.element[0].name,c="input[name='"+k.ui.escapeSelector(a)+"']";return a?(d=this.form.length?k(this.form[0].elements).filter(c):k(c).filter(function(){return 0===k(this).form().length}),d.not(this.element)):k([])},_toggleClasses:function(){var a=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",a),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",a)._toggleClass(this.icon,null,"ui-icon-blank",!a),"radio"===this.type&&this._getRadioGroup().each(function(){var c=k(this).checkboxradio("instance");c&&c._removeClass(c.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(a,c){return"label"!==a||c?(this._super(a,c),"disabled"===a?(this._toggleClass(this.label,null,"ui-state-disabled",c),this.element[0].disabled=c,void 0):(this.refresh(),void 0)):void 0},_updateIcon:function(c){var a="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=k("<span>"),this.iconSpace=k("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(a+=c?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,c?"ui-icon-blank":"ui-icon-check")):a+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",a),c||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var a=this.label.contents().not(this.element[0]);this.icon&&(a=a.not(this.icon[0])),this.iconSpace&&(a=a.not(this.iconSpace[0])),a.remove(),this.label.append(this.options.label)},refresh:function(){var a=this.element[0].checked,c=this.element[0].disabled;this._updateIcon(a),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",a),null!==this.options.label&&this._updateLabel(),c!==this.options.disabled&&this._setOptions({disabled:c})}}]),k.ui.checkboxradio,k.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var a,c=this._super()||{};return this.isInput=this.element.is("input"),a=this.element[0].disabled,null!=a&&(c.disabled=a),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(c.label=this.originalLabel),c},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(a){a.keyCode===k.ui.keyCode.SPACE&&(a.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(d,a){var c="iconPosition"!==d,g=c?this.options.iconPosition:a,f="top"===g||"bottom"===g;this.icon?c&&this._removeClass(this.icon,null,this.options.icon):(this.icon=k("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),c&&this._addClass(this.icon,null,a),this._attachIcon(g),f?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=k("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(g))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(a){this.icon[/^(?:end|bottom)/.test(a)?"before":"after"](this.iconSpace)},_attachIcon:function(a){this.element[/^(?:end|bottom)/.test(a)?"append":"prepend"](this.icon)},_setOptions:function(c){var d=void 0===c.showLabel?this.options.showLabel:c.showLabel,a=void 0===c.icon?this.options.icon:c.icon;d||a||(c.showLabel=!0),this._super(c)},_setOption:function(a,c){"icon"===a&&(c?this._updateIcon(a,c):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===a&&this._updateIcon(a,c),"showLabel"===a&&(this._toggleClass("ui-button-icon-only",null,!c),this._updateTooltip()),"label"===a&&(this.isInput?this.element.val(c):(this.element.html(c),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(a,c),"disabled"===a&&(this._toggleClass(null,"ui-state-disabled",c),this.element[0].disabled=c,c&&this.element.blur())},refresh:function(){var a=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");a!==this.options.disabled&&this._setOptions({disabled:a}),this._updateTooltip()}}),k.uiBackCompat!==!1&&(k.widget("ui.button",k.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(a,c){return"text"===a?(this._super("showLabel",c),void 0):("showLabel"===a&&(this.options.text=c),"icon"===a&&(this.options.icons.primary=c),"icons"===a&&(c.primary?(this._super("icon",c.primary),this._super("iconPosition","beginning")):c.secondary&&(this._super("icon",c.secondary),this._super("iconPosition","end"))),this._superApply(arguments),void 0)}}),k.fn.button=function(a){return function(){return !this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?a.apply(this,arguments):(k.ui.checkboxradio||k.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}}(k.fn.button),k.fn.buttonset=function(){return k.ui.controlgroup||k.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),k.ui.button,k.extend(k.ui,{datepicker:{version:"1.12.1"}});var A;k.extend(q.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){return J(this._defaults,a||{}),this},_attachDatepicker:function(d,a){var c,g,f;c=d.nodeName.toLowerCase(),g="div"===c||"span"===c,d.id||(this.uuid+=1,d.id="dp"+this.uuid),f=this._newInst(k(d),g),f.settings=k.extend({},a||{}),"input"===c?this._connectDatepicker(d,f):g&&this._inlineDatepicker(d,f)},_newInst:function(d,a){var c=d[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:c,input:d,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:a,dpDiv:a?z(k("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(d,a){var c=k(d);a.append=k([]),a.trigger=k([]),c.hasClass(this.markerClassName)||(this._attachments(c,a),c.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(a),k.data(d,"datepicker",a),a.settings.disabled&&this._disableDatepicker(d))},_attachments:function(h,d){var f,m,l,c=this._get(d,"appendText"),g=this._get(d,"isRTL");d.append&&d.append.remove(),c&&(d.append=k("<span class='"+this._appendClass+"'>"+c+"</span>"),h[g?"before":"after"](d.append)),h.off("focus",this._showDatepicker),d.trigger&&d.trigger.remove(),f=this._get(d,"showOn"),("focus"===f||"both"===f)&&h.on("focus",this._showDatepicker),("button"===f||"both"===f)&&(m=this._get(d,"buttonText"),l=this._get(d,"buttonImage"),d.trigger=k(this._get(d,"buttonImageOnly")?k("<img/>").addClass(this._triggerClass).attr({src:l,alt:m,title:m}):k("<button type='button'></button>").addClass(this._triggerClass).html(l?k("<img/>").attr({src:l,alt:m,title:m}):m)),h[g?"before":"after"](d.trigger),d.trigger.on("click",function(){return k.datepicker._datepickerShowing&&k.datepicker._lastInput===h[0]?k.datepicker._hideDatepicker():k.datepicker._datepickerShowing&&k.datepicker._lastInput!==h[0]?(k.datepicker._hideDatepicker(),k.datepicker._showDatepicker(h[0])):k.datepicker._showDatepicker(h[0]),!1}))},_autoSize:function(f){if(this._get(f,"autoSize")&&!f.inline){var h,d,g,m,l=new Date(2009,11,20),c=this._get(f,"dateFormat");c.match(/[DM]/)&&(h=function(a){for(d=0,g=0,m=0;a.length>m;m++){a[m].length>d&&(d=a[m].length,g=m)}return g},l.setMonth(h(this._get(f,c.match(/MM/)?"monthNames":"monthNamesShort"))),l.setDate(h(this._get(f,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-l.getDay())),f.input.attr("size",this._formatDate(f,l).length)}},_inlineDatepicker:function(d,a){var c=k(d);c.hasClass(this.markerClassName)||(c.addClass(this.markerClassName).append(a.dpDiv),k.data(d,"datepicker",a),this._setDate(a,this._getDefaultDate(a),!0),this._updateDatepicker(a),this._updateAlternate(a),a.settings.disabled&&this._disableDatepicker(d),a.dpDiv.css("display","block"))},_dialogDatepicker:function(v,p,O,g,f){var a,t,m,M,N,L=this._dialogInst;return L||(this.uuid+=1,a="dp"+this.uuid,this._dialogInput=k("<input type='text' id='"+a+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),k("body").append(this._dialogInput),L=this._dialogInst=this._newInst(this._dialogInput,!1),L.settings={},k.data(this._dialogInput[0],"datepicker",L)),J(L.settings,g||{}),p=p&&p.constructor===Date?this._formatDate(L,p):p,this._dialogInput.val(p),this._pos=f?f.length?f:[f.pageX,f.pageY]:null,this._pos||(t=document.documentElement.clientWidth,m=document.documentElement.clientHeight,M=document.documentElement.scrollLeft||document.body.scrollLeft,N=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[t/2-100+M,m/2-150+N]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),L.settings.onSelect=O,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),k.blockUI&&k.blockUI(this.dpDiv),k.data(this._dialogInput[0],"datepicker",L),this},_destroyDatepicker:function(d){var a,c=k(d),f=k.data(d,"datepicker");c.hasClass(this.markerClassName)&&(a=d.nodeName.toLowerCase(),k.removeData(d,"datepicker"),"input"===a?(f.append.remove(),f.trigger.remove(),c.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===a||"span"===a)&&c.removeClass(this.markerClassName).empty(),A===f&&(A=null))},_enableDatepicker:function(d){var a,c,g=k(d),f=k.data(d,"datepicker");g.hasClass(this.markerClassName)&&(a=d.nodeName.toLowerCase(),"input"===a?(d.disabled=!1,f.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===a||"span"===a)&&(c=g.children("."+this._inlineClass),c.children().removeClass("ui-state-disabled"),c.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=k.map(this._disabledInputs,function(e){return e===d?null:e}))},_disableDatepicker:function(d){var a,c,g=k(d),f=k.data(d,"datepicker");g.hasClass(this.markerClassName)&&(a=d.nodeName.toLowerCase(),"input"===a?(d.disabled=!0,f.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===a||"span"===a)&&(c=g.children("."+this._inlineClass),c.children().addClass("ui-state-disabled"),c.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=k.map(this._disabledInputs,function(e){return e===d?null:e}),this._disabledInputs[this._disabledInputs.length]=d)},_isDisabledDatepicker:function(a){if(!a){return !1}for(var c=0;this._disabledInputs.length>c;c++){if(this._disabledInputs[c]===a){return !0}}return !1},_getInst:function(c){try{return k.data(c,"datepicker")}catch(a){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(m,c,f){var t,p,g,d,a=this._getInst(m);return 2===arguments.length&&"string"==typeof c?"defaults"===c?k.extend({},k.datepicker._defaults):a?"all"===c?k.extend({},a.settings):this._get(a,c):null:(t=c||{},"string"==typeof c&&(t={},t[c]=f),a&&(this._curInst===a&&this._hideDatepicker(),p=this._getDateDatepicker(m,!0),g=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max"),J(a.settings,t),null!==g&&void 0!==t.dateFormat&&void 0===t.minDate&&(a.settings.minDate=this._formatDate(a,g)),null!==d&&void 0!==t.dateFormat&&void 0===t.maxDate&&(a.settings.maxDate=this._formatDate(a,d)),"disabled" in t&&(t.disabled?this._disableDatepicker(m):this._enableDatepicker(m)),this._attachments(k(m),a),this._autoSize(a),this._setDate(a,p),this._updateAlternate(a),this._updateDatepicker(a)),void 0)},_changeDatepicker:function(c,d,a){this._optionDatepicker(c,d,a)},_refreshDatepicker:function(a){var c=this._getInst(a);c&&this._updateDatepicker(c)},_setDateDatepicker:function(c,d){var a=this._getInst(c);a&&(this._setDate(a,d),this._updateDatepicker(a),this._updateAlternate(a))},_getDateDatepicker:function(c,d){var a=this._getInst(c);return a&&!a.inline&&this._setDateFromField(a,d),a?this._getDate(a):null},_doKeyDown:function(h){var d,f,m,l=k.datepicker._getInst(h.target),c=!0,g=l.dpDiv.is(".ui-datepicker-rtl");if(l._keyEvent=!0,k.datepicker._datepickerShowing){switch(h.keyCode){case 9:k.datepicker._hideDatepicker(),c=!1;break;case 13:return m=k("td."+k.datepicker._dayOverClass+":not(."+k.datepicker._currentClass+")",l.dpDiv),m[0]&&k.datepicker._selectDay(h.target,l.selectedMonth,l.selectedYear,m[0]),d=k.datepicker._get(l,"onSelect"),d?(f=k.datepicker._formatDate(l),d.apply(l.input?l.input[0]:null,[f,l])):k.datepicker._hideDatepicker(),!1;case 27:k.datepicker._hideDatepicker();break;case 33:k.datepicker._adjustDate(h.target,h.ctrlKey?-k.datepicker._get(l,"stepBigMonths"):-k.datepicker._get(l,"stepMonths"),"M");break;case 34:k.datepicker._adjustDate(h.target,h.ctrlKey?+k.datepicker._get(l,"stepBigMonths"):+k.datepicker._get(l,"stepMonths"),"M");break;case 35:(h.ctrlKey||h.metaKey)&&k.datepicker._clearDate(h.target),c=h.ctrlKey||h.metaKey;break;case 36:(h.ctrlKey||h.metaKey)&&k.datepicker._gotoToday(h.target),c=h.ctrlKey||h.metaKey;break;case 37:(h.ctrlKey||h.metaKey)&&k.datepicker._adjustDate(h.target,g?1:-1,"D"),c=h.ctrlKey||h.metaKey,h.originalEvent.altKey&&k.datepicker._adjustDate(h.target,h.ctrlKey?-k.datepicker._get(l,"stepBigMonths"):-k.datepicker._get(l,"stepMonths"),"M");break;case 38:(h.ctrlKey||h.metaKey)&&k.datepicker._adjustDate(h.target,-7,"D"),c=h.ctrlKey||h.metaKey;break;case 39:(h.ctrlKey||h.metaKey)&&k.datepicker._adjustDate(h.target,g?-1:1,"D"),c=h.ctrlKey||h.metaKey,h.originalEvent.altKey&&k.datepicker._adjustDate(h.target,h.ctrlKey?+k.datepicker._get(l,"stepBigMonths"):+k.datepicker._get(l,"stepMonths"),"M");break;case 40:(h.ctrlKey||h.metaKey)&&k.datepicker._adjustDate(h.target,7,"D"),c=h.ctrlKey||h.metaKey;break;default:c=!1}}else{36===h.keyCode&&h.ctrlKey?k.datepicker._showDatepicker(this):c=!1}c&&(h.preventDefault(),h.stopPropagation())},_doKeyPress:function(d){var a,c,f=k.datepicker._getInst(d.target);return k.datepicker._get(f,"constrainInput")?(a=k.datepicker._possibleChars(k.datepicker._get(f,"dateFormat")),c=String.fromCharCode(null==d.charCode?d.keyCode:d.charCode),d.ctrlKey||d.metaKey||" ">c||!a||a.indexOf(c)>-1):void 0},_doKeyUp:function(d){var a,c=k.datepicker._getInst(d.target);if(c.input.val()!==c.lastVal){try{a=k.datepicker.parseDate(k.datepicker._get(c,"dateFormat"),c.input?c.input.val():null,k.datepicker._getFormatConfig(c)),a&&(k.datepicker._setDateFromField(c),k.datepicker._updateAlternate(c),k.datepicker._updateDatepicker(c))}catch(f){}}return !0},_showDatepicker:function(i){if(i=i.target||i,"input"!==i.nodeName.toLowerCase()&&(i=k("input",i.parentNode)[0]),!k.datepicker._isDisabledDatepicker(i)&&k.datepicker._lastInput!==i){var f,t,m,g,d,a,p;f=k.datepicker._getInst(i),k.datepicker._curInst&&k.datepicker._curInst!==f&&(k.datepicker._curInst.dpDiv.stop(!0,!0),f&&k.datepicker._datepickerShowing&&k.datepicker._hideDatepicker(k.datepicker._curInst.input[0])),t=k.datepicker._get(f,"beforeShow"),m=t?t.apply(i,[i,f]):{},m!==!1&&(J(f.settings,m),f.lastVal=null,k.datepicker._lastInput=i,k.datepicker._setDateFromField(f),k.datepicker._inDialog&&(i.value=""),k.datepicker._pos||(k.datepicker._pos=k.datepicker._findPos(i),k.datepicker._pos[1]+=i.offsetHeight),g=!1,k(i).parents().each(function(){return g|="fixed"===k(this).css("position"),!g}),d={left:k.datepicker._pos[0],top:k.datepicker._pos[1]},k.datepicker._pos=null,f.dpDiv.empty(),f.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),k.datepicker._updateDatepicker(f),d=k.datepicker._checkOffset(f,d,g),f.dpDiv.css({position:k.datepicker._inDialog&&k.blockUI?"static":g?"fixed":"absolute",display:"none",left:d.left+"px",top:d.top+"px"}),f.inline||(a=k.datepicker._get(f,"showAnim"),p=k.datepicker._get(f,"duration"),f.dpDiv.css("z-index",C(k(i))+1),k.datepicker._datepickerShowing=!0,k.effects&&k.effects.effect[a]?f.dpDiv.show(a,k.datepicker._get(f,"showOptions"),p):f.dpDiv[a||"show"](a?p:null),k.datepicker._shouldFocusInput(f)&&f.input.trigger("focus"),k.datepicker._curInst=f))}},_updateDatepicker:function(h){this.maxRows=4,A=h,h.dpDiv.empty().append(this._generateHTML(h)),this._attachHandlers(h);var d,f=this._getNumberOfMonths(h),l=f[1],c=17,g=h.dpDiv.find("."+this._dayOverClass+" a");g.length>0&&y.apply(g.get(0)),h.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),l>1&&h.dpDiv.addClass("ui-datepicker-multi-"+l).css("width",c*l+"em"),h.dpDiv[(1!==f[0]||1!==f[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),h.dpDiv[(this._get(h,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),h===k.datepicker._curInst&&k.datepicker._datepickerShowing&&k.datepicker._shouldFocusInput(h)&&h.input.trigger("focus"),h.yearshtml&&(d=h.yearshtml,setTimeout(function(){d===h.yearshtml&&h.yearshtml&&h.dpDiv.find("select.ui-datepicker-year:first").replaceWith(h.yearshtml),d=h.yearshtml=null},0))},_shouldFocusInput:function(a){return a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&!a.input.is(":focus")},_checkOffset:function(t,m,v){var f=t.dpDiv.outerWidth(),d=t.dpDiv.outerHeight(),u=t.input?t.input.outerWidth():0,c=t.input?t.input.outerHeight():0,p=document.documentElement.clientWidth+(v?0:k(document).scrollLeft()),g=document.documentElement.clientHeight+(v?0:k(document).scrollTop());return m.left-=this._get(t,"isRTL")?f-u:0,m.left-=v&&m.left===t.input.offset().left?k(document).scrollLeft():0,m.top-=v&&m.top===t.input.offset().top+c?k(document).scrollTop():0,m.left-=Math.min(m.left,m.left+f>p&&p>f?Math.abs(m.left+f-p):0),m.top-=Math.min(m.top,m.top+d>g&&g>d?Math.abs(d+c):0),m},_findPos:function(d){for(var a,c=this._getInst(d),f=this._get(c,"isRTL");d&&("hidden"===d.type||1!==d.nodeType||k.expr.filters.hidden(d));){d=d[f?"previousSibling":"nextSibling"]}return a=k(d).offset(),[a.left,a.top]},_hideDatepicker:function(g){var d,f,l,h,c=this._curInst;!c||g&&c!==k.data(g,"datepicker")||this._datepickerShowing&&(d=this._get(c,"showAnim"),f=this._get(c,"duration"),l=function(){k.datepicker._tidyDialog(c)},k.effects&&(k.effects.effect[d]||k.effects[d])?c.dpDiv.hide(d,k.datepicker._get(c,"showOptions"),f,l):c.dpDiv["slideDown"===d?"slideUp":"fadeIn"===d?"fadeOut":"hide"](d?f:null,l),d||l(),this._datepickerShowing=!1,h=this._get(c,"onClose"),h&&h.apply(c.input?c.input[0]:null,[c.input?c.input.val():"",c]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),k.blockUI&&(k.unblockUI(),k("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(d){if(k.datepicker._curInst){var a=k(d.target),c=k.datepicker._getInst(a[0]);(a[0].id!==k.datepicker._mainDivId&&0===a.parents("#"+k.datepicker._mainDivId).length&&!a.hasClass(k.datepicker.markerClassName)&&!a.closest("."+k.datepicker._triggerClass).length&&k.datepicker._datepickerShowing&&(!k.datepicker._inDialog||!k.blockUI)||a.hasClass(k.datepicker.markerClassName)&&k.datepicker._curInst!==c)&&k.datepicker._hideDatepicker()}},_adjustDate:function(d,a,c){var g=k(d),f=this._getInst(g[0]);this._isDisabledDatepicker(g[0])||(this._adjustInstDate(f,a+("M"===c?this._get(f,"showCurrentAtPos"):0),c),this._updateDatepicker(f))},_gotoToday:function(d){var a,c=k(d),f=this._getInst(c[0]);this._get(f,"gotoCurrent")&&f.currentDay?(f.selectedDay=f.currentDay,f.drawMonth=f.selectedMonth=f.currentMonth,f.drawYear=f.selectedYear=f.currentYear):(a=new Date,f.selectedDay=a.getDate(),f.drawMonth=f.selectedMonth=a.getMonth(),f.drawYear=f.selectedYear=a.getFullYear()),this._notifyChange(f),this._adjustDate(c)},_selectMonthYear:function(d,a,c){var g=k(d),f=this._getInst(g[0]);f["selected"+("M"===c?"Month":"Year")]=f["draw"+("M"===c?"Month":"Year")]=parseInt(a.options[a.selectedIndex].value,10),this._notifyChange(f),this._adjustDate(g)},_selectDay:function(g,d,f,l){var h,c=k(g);k(l).hasClass(this._unselectableClass)||this._isDisabledDatepicker(c[0])||(h=this._getInst(c[0]),h.selectedDay=h.currentDay=k("a",l).html(),h.selectedMonth=h.currentMonth=d,h.selectedYear=h.currentYear=f,this._selectDate(g,this._formatDate(h,h.currentDay,h.currentMonth,h.currentYear)))},_clearDate:function(c){var a=k(c);this._selectDate(a,"")},_selectDate:function(d,a){var c,g=k(d),f=this._getInst(g[0]);a=null!=a?a:this._formatDate(f),f.input&&f.input.val(a),this._updateAlternate(f),c=this._get(f,"onSelect"),c?c.apply(f.input?f.input[0]:null,[a,f]):f.input&&f.input.trigger("change"),f.inline?this._updateDatepicker(f):(this._hideDatepicker(),this._lastInput=f.input[0],"object"!=typeof f.input[0]&&f.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(d){var a,c,g,f=this._get(d,"altField");f&&(a=this._get(d,"altFormat")||this._get(d,"dateFormat"),c=this._getDate(d),g=this.formatDate(a,c,this._getFormatConfig(d)),k(f).val(g))},noWeekends:function(a){var c=a.getDay();return[c>0&&6>c,""]},iso8601Week:function(c){var d,a=new Date(c.getTime());return a.setDate(a.getDate()+4-(a.getDay()||7)),d=a.getTime(),a.setMonth(0),a.setDate(1),Math.floor(Math.round((d-a)/86400000)/7)+1},parseDate:function(ab,X,P){if(null==ab||null==X){throw"Invalid arguments"}if(X="object"==typeof X?""+X:X+"",""===X){return null}var T,S,af,Q,Y=0,V=(P?P.shortYearCutoff:null)||this._defaults.shortYearCutoff,ad="string"!=typeof V?V:(new Date).getFullYear()%100+parseInt(V,10),O=(P?P.dayNamesShort:null)||this._defaults.dayNamesShort,ac=(P?P.dayNames:null)||this._defaults.dayNames,R=(P?P.monthNamesShort:null)||this._defaults.monthNamesShort,aa=(P?P.monthNames:null)||this._defaults.monthNames,Z=-1,U=-1,ag=-1,N=-1,ae=!1,t=function(c){var a=ab.length>T+1&&ab.charAt(T+1)===c;return a&&T++,a},M=function(d){var g=t(d),f="@"===d?14:"!"===d?20:"y"===d&&g?4:"o"===d?3:2,i="y"===d?f:1,h=RegExp("^\\d{"+i+","+f+"}"),c=X.substring(Y).match(h);if(!c){throw"Missing number at position "+Y}return Y+=c[0].length,parseInt(c[0],10)},W=function(f,d,h){var g=-1,c=k.map(t(f)?h:d,function(a,i){return[[i,a]]}).sort(function(a,i){return -(a[1].length-i[1].length)});if(k.each(c,function(a,l){var i=l[1];return X.substr(Y,i.length).toLowerCase()===i.toLowerCase()?(g=l[0],Y+=i.length,!1):void 0}),-1!==g){return g+1}throw"Unknown name at position "+Y},L=function(){if(X.charAt(Y)!==ab.charAt(T)){throw"Unexpected literal at position "+Y}Y++};for(T=0;ab.length>T;T++){if(ae){"'"!==ab.charAt(T)||t("'")?L():ae=!1}else{switch(ab.charAt(T)){case"d":ag=M("d");break;case"D":W("D",O,ac);break;case"o":N=M("o");break;case"m":U=M("m");break;case"M":U=W("M",R,aa);break;case"y":Z=M("y");break;case"@":Q=new Date(M("@")),Z=Q.getFullYear(),U=Q.getMonth()+1,ag=Q.getDate();break;case"!":Q=new Date((M("!")-this._ticksTo1970)/10000),Z=Q.getFullYear(),U=Q.getMonth()+1,ag=Q.getDate();break;case"'":t("'")?L():ae=!0;break;default:L()}}}if(X.length>Y&&(af=X.substr(Y),!/^\s+/.test(af))){throw"Extra/unparsed characters found in date: "+af}if(-1===Z?Z=(new Date).getFullYear():100>Z&&(Z+=(new Date).getFullYear()-(new Date).getFullYear()%100+(ad>=Z?0:-100)),N>-1){for(U=1,ag=N;;){if(S=this._getDaysInMonth(Z,U-1),S>=ag){break}U++,ag-=S}}if(Q=this._daylightSavingAdjust(new Date(Z,U-1,ag)),Q.getFullYear()!==Z||Q.getMonth()+1!==U||Q.getDate()!==ag){throw"Invalid date"}return Q},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:10000000*60*60*24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(R,M,v){if(!M){return""}var S,m=(v?v.dayNamesShort:null)||this._defaults.dayNamesShort,g=(v?v.dayNames:null)||this._defaults.dayNames,P=(v?v.monthNamesShort:null)||this._defaults.monthNamesShort,f=(v?v.monthNames:null)||this._defaults.monthNames,L=function(c){var a=R.length>S+1&&R.charAt(S+1)===c;return a&&S++,a},p=function(c,h,a){var d=""+h;if(L(c)){for(;a>d.length;){d="0"+d}}return d},O=function(c,h,a,d){return L(c)?d[h]:a[h]},Q="",N=!1;if(M){for(S=0;R.length>S;S++){if(N){"'"!==R.charAt(S)||L("'")?Q+=R.charAt(S):N=!1}else{switch(R.charAt(S)){case"d":Q+=p("d",M.getDate(),2);break;case"D":Q+=O("D",M.getDay(),m,g);break;case"o":Q+=p("o",Math.round((new Date(M.getFullYear(),M.getMonth(),M.getDate()).getTime()-new Date(M.getFullYear(),0,0).getTime())/86400000),3);break;case"m":Q+=p("m",M.getMonth()+1,2);break;case"M":Q+=O("M",M.getMonth(),P,f);break;case"y":Q+=L("y")?M.getFullYear():(10>M.getFullYear()%100?"0":"")+M.getFullYear()%100;break;case"@":Q+=M.getTime();break;case"!":Q+=10000*M.getTime()+this._ticksTo1970;break;case"'":L("'")?Q+="'":N=!0;break;default:Q+=R.charAt(S)}}}}return Q},_possibleChars:function(c){var f,a="",d=!1,g=function(e){var h=c.length>f+1&&c.charAt(f+1)===e;return h&&f++,h};for(f=0;c.length>f;f++){if(d){"'"!==c.charAt(f)||g("'")?a+=c.charAt(f):d=!1}else{switch(c.charAt(f)){case"d":case"m":case"y":case"@":a+="0123456789";break;case"D":case"M":return null;case"'":g("'")?a+="'":d=!0;break;default:a+=c.charAt(f)}}}return a},_get:function(a,c){return void 0!==a.settings[c]?a.settings[c]:this._defaults[c]},_setDateFromField:function(f,l){if(f.input.val()!==f.lastVal){var d=this._get(f,"dateFormat"),g=f.lastVal=f.input?f.input.val():null,p=this._getDefaultDate(f),m=p,c=this._getFormatConfig(f);try{m=this.parseDate(d,g,c)||p}catch(h){g=l?"":g}f.selectedDay=m.getDate(),f.drawMonth=f.selectedMonth=m.getMonth(),f.drawYear=f.selectedYear=m.getFullYear(),f.currentDay=g?m.getDate():0,f.currentMonth=g?m.getMonth():0,f.currentYear=g?m.getFullYear():0,this._adjustInstDate(f)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(g,d,f){var l=function(a){var i=new Date;return i.setDate(i.getDate()+a),i},h=function(p){try{return k.datepicker.parseDate(k.datepicker._get(g,"dateFormat"),p,k.datepicker._getFormatConfig(g))}catch(u){}for(var M=(p.toLowerCase().match(/^c/)?k.datepicker._getDate(g):null)||new Date,L=M.getFullYear(),m=M.getMonth(),v=M.getDate(),t=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,e=t.exec(p);e;){switch(e[2]||"d"){case"d":case"D":v+=parseInt(e[1],10);break;case"w":case"W":v+=7*parseInt(e[1],10);break;case"m":case"M":m+=parseInt(e[1],10),v=Math.min(v,k.datepicker._getDaysInMonth(L,m));break;case"y":case"Y":L+=parseInt(e[1],10),v=Math.min(v,k.datepicker._getDaysInMonth(L,m))}e=t.exec(p)}return new Date(L,m,v)},c=null==d||""===d?f:"string"==typeof d?h(d):"number"==typeof d?isNaN(d)?f:l(d):new Date(d.getTime());return c=c&&"Invalid Date"==""+c?f:c,c&&(c.setHours(0),c.setMinutes(0),c.setSeconds(0),c.setMilliseconds(0)),this._daylightSavingAdjust(c)},_daylightSavingAdjust:function(a){return a?(a.setHours(a.getHours()>12?a.getHours()+2:0),a):null},_setDate:function(f,h,d){var g=!h,m=f.selectedMonth,l=f.selectedYear,c=this._restrictMinMax(f,this._determineDate(f,h,new Date));f.selectedDay=f.currentDay=c.getDate(),f.drawMonth=f.selectedMonth=f.currentMonth=c.getMonth(),f.drawYear=f.selectedYear=f.currentYear=c.getFullYear(),m===f.selectedMonth&&l===f.selectedYear||d||this._notifyChange(f),this._adjustInstDate(f),f.input&&f.input.val(g?"":this._formatDate(f))},_getDate:function(a){var c=!a.currentYear||a.input&&""===a.input.val()?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return c},_attachHandlers:function(d){var a=this._get(d,"stepMonths"),c="#"+d.id.replace(/\\\\/g,"\\");d.dpDiv.find("[data-handler]").map(function(){var f={prev:function(){k.datepicker._adjustDate(c,-a,"M")},next:function(){k.datepicker._adjustDate(c,+a,"M")},hide:function(){k.datepicker._hideDatepicker()},today:function(){k.datepicker._gotoToday(c)},selectDay:function(){return k.datepicker._selectDay(c,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return k.datepicker._selectMonthYear(c,this,"M"),!1},selectYear:function(){return k.datepicker._selectMonthYear(c,this,"Y"),!1}};k(this).on(this.getAttribute("data-event"),f[this.getAttribute("data-handler")])})},_generateHTML:function(aJ){var aY,aU,aK,aP,aO,a2,aL,aV,aR,a0,aI,aZ,aN,aX,aW,aQ,a3,aH,a1,aE,aG,aS,aF,az,ay,at,ah,al,ao,ai,au,aD,am,aB,an,ae,ax,aw,ap,aj=new Date,aA=this._daylightSavingAdjust(new Date(aj.getFullYear(),aj.getMonth(),aj.getDate())),ab=this._get(aJ,"isRTL"),aT=this._get(aJ,"showButtonPanel"),aM=this._get(aJ,"hideIfNoPrevNext"),aq=this._get(aJ,"navigationAsDateFormat"),ag=this._getNumberOfMonths(aJ),af=this._get(aJ,"showCurrentAtPos"),aC=this._get(aJ,"stepMonths"),ac=1!==ag[0]||1!==ag[1],av=this._daylightSavingAdjust(aJ.currentDay?new Date(aJ.currentYear,aJ.currentMonth,aJ.currentDay):new Date(9999,9,9)),ak=this._getMinMaxDate(aJ,"min"),ar=this._getMinMaxDate(aJ,"max"),aa=aJ.drawMonth-af,ad=aJ.drawYear;if(0>aa&&(aa+=12,ad--),ar){for(aY=this._daylightSavingAdjust(new Date(ar.getFullYear(),ar.getMonth()-ag[0]*ag[1]+1,ar.getDate())),aY=ak&&ak>aY?ak:aY;this._daylightSavingAdjust(new Date(ad,aa,1))>aY;){aa--,0>aa&&(aa=11,ad--)}}for(aJ.drawMonth=aa,aJ.drawYear=ad,aU=this._get(aJ,"prevText"),aU=aq?this.formatDate(aU,this._daylightSavingAdjust(new Date(ad,aa-aC,1)),this._getFormatConfig(aJ)):aU,aK=this._canAdjustMonth(aJ,-1,ad,aa)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+aU+"'><span class='ui-icon ui-icon-circle-triangle-"+(ab?"e":"w")+"'>"+aU+"</span></a>":aM?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+aU+"'><span class='ui-icon ui-icon-circle-triangle-"+(ab?"e":"w")+"'>"+aU+"</span></a>",aP=this._get(aJ,"nextText"),aP=aq?this.formatDate(aP,this._daylightSavingAdjust(new Date(ad,aa+aC,1)),this._getFormatConfig(aJ)):aP,aO=this._canAdjustMonth(aJ,1,ad,aa)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+aP+"'><span class='ui-icon ui-icon-circle-triangle-"+(ab?"w":"e")+"'>"+aP+"</span></a>":aM?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+aP+"'><span class='ui-icon ui-icon-circle-triangle-"+(ab?"w":"e")+"'>"+aP+"</span></a>",a2=this._get(aJ,"currentText"),aL=this._get(aJ,"gotoCurrent")&&aJ.currentDay?av:aA,a2=aq?this.formatDate(a2,aL,this._getFormatConfig(aJ)):a2,aV=aJ.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(aJ,"closeText")+"</button>",aR=aT?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(ab?aV:"")+(this._isInRange(aJ,aL)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+a2+"</button>":"")+(ab?"":aV)+"</div>":"",a0=parseInt(this._get(aJ,"firstDay"),10),a0=isNaN(a0)?0:a0,aI=this._get(aJ,"showWeek"),aZ=this._get(aJ,"dayNames"),aN=this._get(aJ,"dayNamesMin"),aX=this._get(aJ,"monthNames"),aW=this._get(aJ,"monthNamesShort"),aQ=this._get(aJ,"beforeShowDay"),a3=this._get(aJ,"showOtherMonths"),aH=this._get(aJ,"selectOtherMonths"),a1=this._getDefaultDate(aJ),aE="",aS=0;ag[0]>aS;aS++){for(aF="",this.maxRows=4,az=0;ag[1]>az;az++){if(ay=this._daylightSavingAdjust(new Date(ad,aa,aJ.selectedDay)),at=" ui-corner-all",ah="",ac){if(ah+="<div class='ui-datepicker-group",ag[1]>1){switch(az){case 0:ah+=" ui-datepicker-group-first",at=" ui-corner-"+(ab?"right":"left");break;case ag[1]-1:ah+=" ui-datepicker-group-last",at=" ui-corner-"+(ab?"left":"right");break;default:ah+=" ui-datepicker-group-middle",at=""}}ah+="'>"}for(ah+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+at+"'>"+(/all|left/.test(at)&&0===aS?ab?aO:aK:"")+(/all|right/.test(at)&&0===aS?ab?aK:aO:"")+this._generateMonthYearHeader(aJ,aa,ad,ak,ar,aS>0||az>0,aX,aW)+"</div><table class='ui-datepicker-calendar'><thead><tr>",al=aI?"<th class='ui-datepicker-week-col'>"+this._get(aJ,"weekHeader")+"</th>":"",aG=0;7>aG;aG++){ao=(aG+a0)%7,al+="<th scope='col'"+((aG+a0+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+aZ[ao]+"'>"+aN[ao]+"</span></th>"}for(ah+=al+"</tr></thead><tbody>",ai=this._getDaysInMonth(ad,aa),ad===aJ.selectedYear&&aa===aJ.selectedMonth&&(aJ.selectedDay=Math.min(aJ.selectedDay,ai)),au=(this._getFirstDayOfMonth(ad,aa)-a0+7)%7,aD=Math.ceil((au+ai)/7),am=ac?this.maxRows>aD?this.maxRows:aD:aD,this.maxRows=am,aB=this._daylightSavingAdjust(new Date(ad,aa,1-au)),an=0;am>an;an++){for(ah+="<tr>",ae=aI?"<td class='ui-datepicker-week-col'>"+this._get(aJ,"calculateWeek")(aB)+"</td>":"",aG=0;7>aG;aG++){ax=aQ?aQ.apply(aJ.input?aJ.input[0]:null,[aB]):[!0,""],aw=aB.getMonth()!==aa,ap=aw&&!aH||!ax[0]||ak&&ak>aB||ar&&aB>ar,ae+="<td class='"+((aG+a0+6)%7>=5?" ui-datepicker-week-end":"")+(aw?" ui-datepicker-other-month":"")+(aB.getTime()===ay.getTime()&&aa===aJ.selectedMonth&&aJ._keyEvent||a1.getTime()===aB.getTime()&&a1.getTime()===ay.getTime()?" "+this._dayOverClass:"")+(ap?" "+this._unselectableClass+" ui-state-disabled":"")+(aw&&!a3?"":" "+ax[1]+(aB.getTime()===av.getTime()?" "+this._currentClass:"")+(aB.getTime()===aA.getTime()?" ui-datepicker-today":""))+"'"+(aw&&!a3||!ax[2]?"":" title='"+ax[2].replace(/'/g,"&#39;")+"'")+(ap?"":" data-handler='selectDay' data-event='click' data-month='"+aB.getMonth()+"' data-year='"+aB.getFullYear()+"'")+">"+(aw&&!a3?"&#xa0;":ap?"<span class='ui-state-default'>"+aB.getDate()+"</span>":"<a class='ui-state-default"+(aB.getTime()===aA.getTime()?" ui-state-highlight":"")+(aB.getTime()===av.getTime()?" ui-state-active":"")+(aw?" ui-priority-secondary":"")+"' href='#'>"+aB.getDate()+"</a>")+"</td>",aB.setDate(aB.getDate()+1),aB=this._daylightSavingAdjust(aB)}ah+=ae+"</tr>"}aa++,aa>11&&(aa=0,ad++),ah+="</tbody></table>"+(ac?"</div>"+(ag[0]>0&&az===ag[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),aF+=ah}aE+=aF}return aE+=aR,aJ._keyEvent=!1,aE},_generateMonthYearHeader:function(O,aa,W,P,T,S,ae,Q){var X,V,ac,N,ab,R,Z,Y,U=this._get(O,"changeMonth"),af=this._get(O,"changeYear"),M=this._get(O,"showMonthAfterYear"),ad="<div class='ui-datepicker-title'>",L="";if(S||!U){L+="<span class='ui-datepicker-month'>"+ae[aa]+"</span>"}else{for(X=P&&P.getFullYear()===W,V=T&&T.getFullYear()===W,L+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",ac=0;12>ac;ac++){(!X||ac>=P.getMonth())&&(!V||T.getMonth()>=ac)&&(L+="<option value='"+ac+"'"+(ac===aa?" selected='selected'":"")+">"+Q[ac]+"</option>")}L+="</select>"}if(M||(ad+=L+(!S&&U&&af?"":"&#xa0;")),!O.yearshtml){if(O.yearshtml="",S||!af){ad+="<span class='ui-datepicker-year'>"+W+"</span>"}else{for(N=this._get(O,"yearRange").split(":"),ab=(new Date).getFullYear(),R=function(a){var c=a.match(/c[+\-].*/)?W+parseInt(a.substring(1),10):a.match(/[+\-].*/)?ab+parseInt(a,10):parseInt(a,10);return isNaN(c)?ab:c},Z=R(N[0]),Y=Math.max(Z,R(N[1]||"")),Z=P?Math.max(Z,P.getFullYear()):Z,Y=T?Math.min(Y,T.getFullYear()):Y,O.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";Y>=Z;Z++){O.yearshtml+="<option value='"+Z+"'"+(Z===W?" selected='selected'":"")+">"+Z+"</option>"}O.yearshtml+="</select>",ad+=O.yearshtml,O.yearshtml=null}}return ad+=this._get(O,"yearSuffix"),M&&(ad+=(!S&&U&&af?"":"&#xa0;")+L),ad+="</div>"},_adjustInstDate:function(f,h,d){var g=f.selectedYear+("Y"===d?h:0),m=f.selectedMonth+("M"===d?h:0),l=Math.min(f.selectedDay,this._getDaysInMonth(g,m))+("D"===d?h:0),c=this._restrictMinMax(f,this._daylightSavingAdjust(new Date(g,m,l)));f.selectedDay=c.getDate(),f.drawMonth=f.selectedMonth=c.getMonth(),f.drawYear=f.selectedYear=c.getFullYear(),("M"===d||"Y"===d)&&this._notifyChange(f)},_restrictMinMax:function(c,f){var a=this._getMinMaxDate(c,"min"),d=this._getMinMaxDate(c,"max"),g=a&&a>f?a:f;return d&&g>d?d:g},_notifyChange:function(a){var c=this._get(a,"onChangeMonthYear");c&&c.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var c=this._get(a,"numberOfMonths");return null==c?[1,1]:"number"==typeof c?[1,c]:c},_getMinMaxDate:function(a,c){return this._determineDate(a,this._get(a,c+"Date"),null)},_getDaysInMonth:function(a,c){return 32-this._daylightSavingAdjust(new Date(a,c,32)).getDate()},_getFirstDayOfMonth:function(a,c){return new Date(a,c,1).getDay()},_canAdjustMonth:function(c,f,a,d){var h=this._getNumberOfMonths(c),g=this._daylightSavingAdjust(new Date(a,d+(0>f?f:h[0]*h[1]),1));return 0>f&&g.setDate(this._getDaysInMonth(g.getFullYear(),g.getMonth())),this._isInRange(c,g)},_isInRange:function(u,m){var g,v,f=this._getMinMaxDate(u,"min"),d=this._getMinMaxDate(u,"max"),p=null,c=null,l=this._get(u,"yearRange");return l&&(g=l.split(":"),v=(new Date).getFullYear(),p=parseInt(g[0],10),c=parseInt(g[1],10),g[0].match(/[+\-].*/)&&(p+=v),g[1].match(/[+\-].*/)&&(c+=v)),(!f||m.getTime()>=f.getTime())&&(!d||m.getTime()<=d.getTime())&&(!p||m.getFullYear()>=p)&&(!c||c>=m.getFullYear())},_getFormatConfig:function(a){var c=this._get(a,"shortYearCutoff");return c="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),{shortYearCutoff:c,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(c,f,a,d){f||(c.currentDay=c.selectedDay,c.currentMonth=c.selectedMonth,c.currentYear=c.selectedYear);var g=f?"object"==typeof f?f:this._daylightSavingAdjust(new Date(d,a,f)):this._daylightSavingAdjust(new Date(c.currentYear,c.currentMonth,c.currentDay));return this.formatDate(this._get(c,"dateFormat"),g,this._getFormatConfig(c))}}),k.fn.datepicker=function(c){if(!this.length){return this}k.datepicker.initialized||(k(document).on("mousedown",k.datepicker._checkExternalClick),k.datepicker.initialized=!0),0===k("#"+k.datepicker._mainDivId).length&&k("body").append(k.datepicker.dpDiv);var a=Array.prototype.slice.call(arguments,1);return"string"!=typeof c||"isDisabled"!==c&&"getDate"!==c&&"widget"!==c?"option"===c&&2===arguments.length&&"string"==typeof arguments[1]?k.datepicker["_"+c+"Datepicker"].apply(k.datepicker,[this[0]].concat(a)):this.each(function(){"string"==typeof c?k.datepicker["_"+c+"Datepicker"].apply(k.datepicker,[this].concat(a)):k.datepicker._attachDatepicker(this,c)}):k.datepicker["_"+c+"Datepicker"].apply(k.datepicker,[this[0]].concat(a))},k.datepicker=new q,k.datepicker.initialized=!1,k.datepicker.uuid=(new Date).getTime(),k.datepicker.version="1.12.1",k.datepicker,k.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var K=!1;k(document).on("mouseup",function(){K=!1}),k.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.on("mousedown."+this.widgetName,function(c){return a._mouseDown(c)}).on("click."+this.widgetName,function(c){return !0===k.data(c.target,a.widgetName+".preventClickEvent")?(k.removeData(c.target,a.widgetName+".preventClickEvent"),c.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(d){if(!K){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(d),this._mouseDownEvent=d;var a=this,c=1===d.which,f="string"==typeof this.options.cancel&&d.target.nodeName?k(d.target).closest(this.options.cancel).length:!1;return c&&!f&&this._mouseCapture(d)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){a.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(d)&&this._mouseDelayMet(d)&&(this._mouseStarted=this._mouseStart(d)!==!1,!this._mouseStarted)?(d.preventDefault(),!0):(!0===k.data(d.target,this.widgetName+".preventClickEvent")&&k.removeData(d.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return a._mouseMove(e)},this._mouseUpDelegate=function(e){return a._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),d.preventDefault(),K=!0,!0)):!0}},_mouseMove:function(a){if(this._mouseMoved){if(k.ui.ie&&(!document.documentMode||9>document.documentMode)&&!a.button){return this._mouseUp(a)}if(!a.which){if(a.originalEvent.altKey||a.originalEvent.ctrlKey||a.originalEvent.metaKey||a.originalEvent.shiftKey){this.ignoreMissingWhich=!0}else{if(!this.ignoreMissingWhich){return this._mouseUp(a)}}}}return(a.which||a.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(a),a.preventDefault()):(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==!1,this._mouseStarted?this._mouseDrag(a):this._mouseUp(a)),!this._mouseStarted)},_mouseUp:function(a){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,a.target===this._mouseDownEvent.target&&k.data(a.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(a)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,K=!1,a.preventDefault()},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return !0}}),k.ui.plugin={add:function(d,a,c){var g,f=k.ui[d].prototype;for(g in c){f.plugins[g]=f.plugins[g]||[],f.plugins[g].push([a,c[g]])}},call:function(c,f,a,d){var h,g=c.plugins[f];if(g&&(d||c.element[0].parentNode&&11!==c.element[0].parentNode.nodeType)){for(h=0;g.length>h;h++){c.options[g[h][0]]&&g[h][1].apply(c.element,a)}}}},k.ui.safeBlur=function(a){a&&"body"!==a.nodeName.toLowerCase()&&k(a).trigger("blur")},k.widget("ui.draggable",k.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(a,c){this._super(a,c),"handle"===a&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?(this.destroyOnClear=!0,void 0):(this._removeHandleClassName(),this._mouseDestroy(),void 0)},_mouseCapture:function(c){var a=this.options;return this.helper||a.disabled||k(c.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(c),this.handle?(this._blurActiveElement(c),this._blockFrames(a.iframeFix===!0?"iframe":a.iframeFix),!0):!1)},_blockFrames:function(a){this.iframeBlocks=this.document.find(a).map(function(){var c=k(this);return k("<div>").css("position","absolute").appendTo(c.parent()).outerWidth(c.outerWidth()).outerHeight(c.outerHeight()).offset(c.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(d){var a=k.ui.safeActiveElement(this.document[0]),c=k(d.target);c.closest(a).length||k.ui.safeBlur(a)},_mouseStart:function(c){var a=this.options;return this.helper=this._createHelper(c),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),k.ui.ddmanager&&(k.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===k(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(c),this.originalPosition=this.position=this._generatePosition(c,!1),this.originalPageX=c.pageX,this.originalPageY=c.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this._setContainment(),this._trigger("start",c)===!1?(this._clear(),!1):(this._cacheHelperProportions(),k.ui.ddmanager&&!a.dropBehaviour&&k.ui.ddmanager.prepareOffsets(this,c),this._mouseDrag(c,!0),k.ui.ddmanager&&k.ui.ddmanager.dragStart(this,c),!0)},_refreshOffsets:function(a){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:a.pageX-this.offset.left,top:a.pageY-this.offset.top}},_mouseDrag:function(d,a){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(d,!0),this.positionAbs=this._convertPositionTo("absolute"),!a){var c=this._uiHash();if(this._trigger("drag",d,c)===!1){return this._mouseUp(new k.Event("mouseup",d)),!1}this.position=c.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",k.ui.ddmanager&&k.ui.ddmanager.drag(this,d),!1},_mouseStop:function(d){var a=this,c=!1;return k.ui.ddmanager&&!this.options.dropBehaviour&&(c=k.ui.ddmanager.drop(this,d)),this.dropped&&(c=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!c||"valid"===this.options.revert&&c||this.options.revert===!0||k.isFunction(this.options.revert)&&this.options.revert.call(this.element,c)?k(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){a._trigger("stop",d)!==!1&&a._clear()}):this._trigger("stop",d)!==!1&&this._clear(),!1},_mouseUp:function(a){return this._unblockFrames(),k.ui.ddmanager&&k.ui.ddmanager.dragStop(this,a),this.handleElement.is(a.target)&&this.element.trigger("focus"),k.ui.mouse.prototype._mouseUp.call(this,a)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new k.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(a){return this.options.handle?!!k(a.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(d){var a=this.options,c=k.isFunction(a.helper),f=c?k(a.helper.apply(this.element[0],[d])):"clone"===a.helper?this.element.clone().removeAttr("id"):this.element;return f.parents("body").length||f.appendTo("parent"===a.appendTo?this.element[0].parentNode:a.appendTo),c&&f[0]===this.element[0]&&this._setPositionRelative(),f[0]===this.element[0]||/(fixed|absolute)/.test(f.css("position"))||f.css("position","absolute"),f},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(a){"string"==typeof a&&(a=a.split(" ")),k.isArray(a)&&(a={left:+a[0],top:+a[1]||0}),"left" in a&&(this.offset.click.left=a.left+this.margins.left),"right" in a&&(this.offset.click.left=this.helperProportions.width-a.right+this.margins.left),"top" in a&&(this.offset.click.top=a.top+this.margins.top),"bottom" in a&&(this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top)},_isRootNode:function(a){return/(html|body)/i.test(a.tagName)||a===this.document[0]},_getParentOffset:function(){var c=this.offsetParent.offset(),a=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==a&&k.contains(this.scrollParent[0],this.offsetParent[0])&&(c.left+=this.scrollParent.scrollLeft(),c.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(c={top:0,left:0}),{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition){return{top:0,left:0}}var a=this.element.position(),c=this._isRootNode(this.scrollParent[0]);return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+(c?0:this.scrollParent.scrollTop()),left:a.left-(parseInt(this.helper.css("left"),10)||0)+(c?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var d,a,c,g=this.options,f=this.document[0];return this.relativeContainer=null,g.containment?"window"===g.containment?(this.containment=[k(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,k(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,k(window).scrollLeft()+k(window).width()-this.helperProportions.width-this.margins.left,k(window).scrollTop()+(k(window).height()||f.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):"document"===g.containment?(this.containment=[0,0,k(f).width()-this.helperProportions.width-this.margins.left,(k(f).height()||f.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):g.containment.constructor===Array?(this.containment=g.containment,void 0):("parent"===g.containment&&(g.containment=this.helper[0].parentNode),a=k(g.containment),c=a[0],c&&(d=/(scroll|auto)/.test(a.css("overflow")),this.containment=[(parseInt(a.css("borderLeftWidth"),10)||0)+(parseInt(a.css("paddingLeft"),10)||0),(parseInt(a.css("borderTopWidth"),10)||0)+(parseInt(a.css("paddingTop"),10)||0),(d?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a.css("borderRightWidth"),10)||0)-(parseInt(a.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(d?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a.css("borderBottomWidth"),10)||0)-(parseInt(a.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=a),void 0):(this.containment=null,void 0)},_convertPositionTo:function(c,f){f||(f=this.position);var a="absolute"===c?1:-1,d=this._isRootNode(this.scrollParent[0]);return{top:f.top+this.offset.relative.top*a+this.offset.parent.top*a-("fixed"===this.cssPosition?-this.offset.scroll.top:d?0:this.offset.scroll.top)*a,left:f.left+this.offset.relative.left*a+this.offset.parent.left*a-("fixed"===this.cssPosition?-this.offset.scroll.left:d?0:this.offset.scroll.left)*a}},_generatePosition:function(L,u){var m,M,f,d,v=this.options,c=this._isRootNode(this.scrollParent[0]),p=L.pageX,g=L.pageY;return c&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),u&&(this.containment&&(this.relativeContainer?(M=this.relativeContainer.offset(),m=[this.containment[0]+M.left,this.containment[1]+M.top,this.containment[2]+M.left,this.containment[3]+M.top]):m=this.containment,L.pageX-this.offset.click.left<m[0]&&(p=m[0]+this.offset.click.left),L.pageY-this.offset.click.top<m[1]&&(g=m[1]+this.offset.click.top),L.pageX-this.offset.click.left>m[2]&&(p=m[2]+this.offset.click.left),L.pageY-this.offset.click.top>m[3]&&(g=m[3]+this.offset.click.top)),v.grid&&(f=v.grid[1]?this.originalPageY+Math.round((g-this.originalPageY)/v.grid[1])*v.grid[1]:this.originalPageY,g=m?f-this.offset.click.top>=m[1]||f-this.offset.click.top>m[3]?f:f-this.offset.click.top>=m[1]?f-v.grid[1]:f+v.grid[1]:f,d=v.grid[0]?this.originalPageX+Math.round((p-this.originalPageX)/v.grid[0])*v.grid[0]:this.originalPageX,p=m?d-this.offset.click.left>=m[0]||d-this.offset.click.left>m[2]?d:d-this.offset.click.left>=m[0]?d-v.grid[0]:d+v.grid[0]:d),"y"===v.axis&&(p=this.originalPageX),"x"===v.axis&&(g=this.originalPageY)),{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:c?0:this.offset.scroll.top),left:p-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:c?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(d,a,c){return c=c||this._uiHash(),k.ui.plugin.call(this,d,[a,c,this],!0),/^(drag|start|stop)/.test(d)&&(this.positionAbs=this._convertPositionTo("absolute"),c.offset=this.positionAbs),k.Widget.prototype._trigger.call(this,d,a,c)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),k.ui.plugin.add("draggable","connectToSortable",{start:function(d,a,c){var f=k.extend({},a,{item:c.element});c.sortables=[],k(c.options.connectToSortable).each(function(){var e=k(this).sortable("instance");e&&!e.options.disabled&&(c.sortables.push(e),e.refreshPositions(),e._trigger("activate",d,f))})},stop:function(d,a,c){var f=k.extend({},a,{item:c.element});c.cancelHelperRemoval=!1,k.each(c.sortables,function(){var e=this;e.isOver?(e.isOver=0,c.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(d),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",d,f))})},drag:function(d,a,c){k.each(c.sortables,function(){var f=!1,e=this;e.positionAbs=c.positionAbs,e.helperProportions=c.helperProportions,e.offset.click=c.offset.click,e._intersectsWith(e.containerCache)&&(f=!0,k.each(c.sortables,function(){return this.positionAbs=c.positionAbs,this.helperProportions=c.helperProportions,this.offset.click=c.offset.click,this!==e&&this._intersectsWith(this.containerCache)&&k.contains(e.element[0],this.element[0])&&(f=!1),f})),f?(e.isOver||(e.isOver=1,c._parent=a.helper.parent(),e.currentItem=a.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return a.helper[0]},d.target=e.currentItem[0],e._mouseCapture(d,!0),e._mouseStart(d,!0,!0),e.offset.click.top=c.offset.click.top,e.offset.click.left=c.offset.click.left,e.offset.parent.left-=c.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=c.offset.parent.top-e.offset.parent.top,c._trigger("toSortable",d),c.dropped=e.element,k.each(c.sortables,function(){this.refreshPositions()}),c.currentItem=c.element,e.fromOutside=c),e.currentItem&&(e._mouseDrag(d),a.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",d,e._uiHash(e)),e._mouseStop(d,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),a.helper.appendTo(c._parent),c._refreshOffsets(d),a.position=c._generatePosition(d,!0),c._trigger("fromSortable",d),c.dropped=!1,k.each(c.sortables,function(){this.refreshPositions()}))})}}),k.ui.plugin.add("draggable","cursor",{start:function(d,a,c){var g=k("body"),f=c.options;g.css("cursor")&&(f._cursor=g.css("cursor")),g.css("cursor",f.cursor)},stop:function(d,a,c){var f=c.options;f._cursor&&k("body").css("cursor",f._cursor)}}),k.ui.plugin.add("draggable","opacity",{start:function(d,a,c){var g=k(a.helper),f=c.options;g.css("opacity")&&(f._opacity=g.css("opacity")),g.css("opacity",f.opacity)},stop:function(d,a,c){var f=c.options;f._opacity&&k(a.helper).css("opacity",f._opacity)}}),k.ui.plugin.add("draggable","scroll",{start:function(c,d,a){a.scrollParentNotHidden||(a.scrollParentNotHidden=a.helper.scrollParent(!1)),a.scrollParentNotHidden[0]!==a.document[0]&&"HTML"!==a.scrollParentNotHidden[0].tagName&&(a.overflowOffset=a.scrollParentNotHidden.offset())},drag:function(h,d,f){var m=f.options,l=!1,c=f.scrollParentNotHidden[0],g=f.document[0];c!==g&&"HTML"!==c.tagName?(m.axis&&"x"===m.axis||(f.overflowOffset.top+c.offsetHeight-h.pageY<m.scrollSensitivity?c.scrollTop=l=c.scrollTop+m.scrollSpeed:h.pageY-f.overflowOffset.top<m.scrollSensitivity&&(c.scrollTop=l=c.scrollTop-m.scrollSpeed)),m.axis&&"y"===m.axis||(f.overflowOffset.left+c.offsetWidth-h.pageX<m.scrollSensitivity?c.scrollLeft=l=c.scrollLeft+m.scrollSpeed:h.pageX-f.overflowOffset.left<m.scrollSensitivity&&(c.scrollLeft=l=c.scrollLeft-m.scrollSpeed))):(m.axis&&"x"===m.axis||(h.pageY-k(g).scrollTop()<m.scrollSensitivity?l=k(g).scrollTop(k(g).scrollTop()-m.scrollSpeed):k(window).height()-(h.pageY-k(g).scrollTop())<m.scrollSensitivity&&(l=k(g).scrollTop(k(g).scrollTop()+m.scrollSpeed))),m.axis&&"y"===m.axis||(h.pageX-k(g).scrollLeft()<m.scrollSensitivity?l=k(g).scrollLeft(k(g).scrollLeft()-m.scrollSpeed):k(window).width()-(h.pageX-k(g).scrollLeft())<m.scrollSensitivity&&(l=k(g).scrollLeft(k(g).scrollLeft()+m.scrollSpeed)))),l!==!1&&k.ui.ddmanager&&!m.dropBehaviour&&k.ui.ddmanager.prepareOffsets(f,h)}}),k.ui.plugin.add("draggable","snap",{start:function(d,a,c){var f=c.options;c.snapElements=[],k(f.snap.constructor!==String?f.snap.items||":data(ui-draggable)":f.snap).each(function(){var h=k(this),g=h.offset();this!==c.element[0]&&c.snapElements.push({item:this,width:h.outerWidth(),height:h.outerHeight(),top:g.top,left:g.left})})},drag:function(X,T,M){var Q,P,ab,N,U,S,Z,L,Y,O,W=M.options,V=W.snapTolerance,R=T.offset.left,ac=R+M.helperProportions.width,t=T.offset.top,aa=t+M.helperProportions.height;for(Y=M.snapElements.length-1;Y>=0;Y--){U=M.snapElements[Y].left-M.margins.left,S=U+M.snapElements[Y].width,Z=M.snapElements[Y].top-M.margins.top,L=Z+M.snapElements[Y].height,U-V>ac||R>S+V||Z-V>aa||t>L+V||!k.contains(M.snapElements[Y].item.ownerDocument,M.snapElements[Y].item)?(M.snapElements[Y].snapping&&M.options.snap.release&&M.options.snap.release.call(M.element,X,k.extend(M._uiHash(),{snapItem:M.snapElements[Y].item})),M.snapElements[Y].snapping=!1):("inner"!==W.snapMode&&(Q=V>=Math.abs(Z-aa),P=V>=Math.abs(L-t),ab=V>=Math.abs(U-ac),N=V>=Math.abs(S-R),Q&&(T.position.top=M._convertPositionTo("relative",{top:Z-M.helperProportions.height,left:0}).top),P&&(T.position.top=M._convertPositionTo("relative",{top:L,left:0}).top),ab&&(T.position.left=M._convertPositionTo("relative",{top:0,left:U-M.helperProportions.width}).left),N&&(T.position.left=M._convertPositionTo("relative",{top:0,left:S}).left)),O=Q||P||ab||N,"outer"!==W.snapMode&&(Q=V>=Math.abs(Z-t),P=V>=Math.abs(L-aa),ab=V>=Math.abs(U-R),N=V>=Math.abs(S-ac),Q&&(T.position.top=M._convertPositionTo("relative",{top:Z,left:0}).top),P&&(T.position.top=M._convertPositionTo("relative",{top:L-M.helperProportions.height,left:0}).top),ab&&(T.position.left=M._convertPositionTo("relative",{top:0,left:U}).left),N&&(T.position.left=M._convertPositionTo("relative",{top:0,left:S-M.helperProportions.width}).left)),!M.snapElements[Y].snapping&&(Q||P||ab||N||O)&&M.options.snap.snap&&M.options.snap.snap.call(M.element,X,k.extend(M._uiHash(),{snapItem:M.snapElements[Y].item})),M.snapElements[Y].snapping=Q||P||ab||N||O)}}}),k.ui.plugin.add("draggable","stack",{start:function(g,d,f){var l,h=f.options,c=k.makeArray(k(h.stack)).sort(function(m,a){return(parseInt(k(m).css("zIndex"),10)||0)-(parseInt(k(a).css("zIndex"),10)||0)});c.length&&(l=parseInt(k(c[0]).css("zIndex"),10)||0,k(c).each(function(a){k(this).css("zIndex",l+a)}),this.css("zIndex",l+c.length))}}),k.ui.plugin.add("draggable","zIndex",{start:function(d,a,c){var g=k(a.helper),f=c.options;g.css("zIndex")&&(f._zIndex=g.css("zIndex")),g.css("zIndex",f.zIndex)},stop:function(d,a,c){var f=c.options;f._zIndex&&k(a.helper).css("zIndex",f._zIndex)}}),k.ui.draggable,k.widget("ui.resizable",k.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(a){return parseFloat(a)||0},_isNumber:function(a){return !isNaN(parseFloat(a))},_hasScroll:function(d,a){if("hidden"===k(d).css("overflow")){return !1}var c=a&&"left"===a?"scrollLeft":"scrollTop",f=!1;return d[c]>0?!0:(d[c]=1,f=d[c]>0,d[c]=0,f)},_create:function(){var d,a=this.options,c=this;this._addClass("ui-resizable"),k.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(k("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,d={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(d),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(d),this._proportionallyResize()),this._setupHandles(),a.autoHide&&k(this.element).on("mouseenter",function(){a.disabled||(c._removeClass("ui-resizable-autohide"),c._handles.show())}).on("mouseleave",function(){a.disabled||c.resizing||(c._addClass("ui-resizable-autohide"),c._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var c,a=function(d){k(d).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(a(this.element),c=this.element,this.originalElement.css({position:c.css("position"),width:c.outerWidth(),height:c.outerHeight(),top:c.css("top"),left:c.css("left")}).insertAfter(c),c.remove()),this.originalElement.css("resize",this.originalResizeStyle),a(this.originalElement),this},_setOption:function(a,c){switch(this._super(a,c),a){case"handles":this._removeHandles(),this._setupHandles();break;default:}},_setupHandles:function(){var h,d,f,m,l,c=this.options,g=this;if(this.handles=c.handles||(k(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=k(),this.handles.constructor===String){for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),f=this.handles.split(","),this.handles={},d=0;f.length>d;d++){h=k.trim(f[d]),m="ui-resizable-"+h,l=k("<div>"),this._addClass(l,"ui-resizable-handle "+m),l.css({zIndex:c.zIndex}),this.handles[h]=".ui-resizable-"+h,this.element.append(l)}}this._renderAxis=function(r){var a,p,u,t;r=r||this.element;for(a in this.handles){this.handles[a].constructor===String?this.handles[a]=this.element.children(this.handles[a]).first().show():(this.handles[a].jquery||this.handles[a].nodeType)&&(this.handles[a]=k(this.handles[a]),this._on(this.handles[a],{mousedown:g._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(p=k(this.handles[a],this.element),t=/sw|ne|nw|se|n|s/.test(a)?p.outerHeight():p.outerWidth(),u=["padding",/ne|nw|n/.test(a)?"Top":/se|sw|s/.test(a)?"Bottom":/^e$/.test(a)?"Right":"Left"].join(""),r.css(u,t),this._proportionallyResize()),this._handles=this._handles.add(this.handles[a])}},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){g.resizing||(this.className&&(l=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),g.axis=l&&l[1]?l[1]:"se")}),c.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(d){var a,c,f=!1;for(a in this.handles){c=k(this.handles[a])[0],(c===d.target||k.contains(c,d.target))&&(f=!0)}return !this.options.disabled&&f},_mouseStart:function(g){var d,f,l,h=this.options,c=this.element;return this.resizing=!0,this._renderProxy(),d=this._num(this.helper.css("left")),f=this._num(this.helper.css("top")),h.containment&&(d+=k(h.containment).scrollLeft()||0,f+=k(h.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:d,top:f},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:c.width(),height:c.height()},this.originalSize=this._helper?{width:c.outerWidth(),height:c.outerHeight()}:{width:c.width(),height:c.height()},this.sizeDiff={width:c.outerWidth()-c.width(),height:c.outerHeight()-c.height()},this.originalPosition={left:d,top:f},this.originalMousePosition={left:g.pageX,top:g.pageY},this.aspectRatio="number"==typeof h.aspectRatio?h.aspectRatio:this.originalSize.width/this.originalSize.height||1,l=k(".ui-resizable-"+this.axis).css("cursor"),k("body").css("cursor","auto"===l?this.axis+"-resize":l),this._addClass("ui-resizable-resizing"),this._propagate("start",g),!0},_mouseDrag:function(m){var d,g,t=this.originalMousePosition,p=this.axis,c=m.pageX-t.left||0,l=m.pageY-t.top||0,f=this._change[p];return this._updatePrevProperties(),f?(d=f.apply(this,[m,c,l]),this._updateVirtualBoundaries(m.shiftKey),(this._aspectRatio||m.shiftKey)&&(d=this._updateRatio(d,m)),d=this._respectSize(d,m),this._updateCache(d),this._propagate("resize",m),g=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),k.isEmptyObject(g)||(this._updatePrevProperties(),this._trigger("resize",m,this.ui()),this._applyChanges()),!1):!1},_mouseStop:function(u){this.resizing=!1;var p,M,g,f,L,d,t,m=this.options,v=this;return this._helper&&(p=this._proportionallyResizeElements,M=p.length&&/textarea/i.test(p[0].nodeName),g=M&&this._hasScroll(p[0],"left")?0:v.sizeDiff.height,f=M?0:v.sizeDiff.width,L={width:v.helper.width()-f,height:v.helper.height()-g},d=parseFloat(v.element.css("left"))+(v.position.left-v.originalPosition.left)||null,t=parseFloat(v.element.css("top"))+(v.position.top-v.originalPosition.top)||null,m.animate||this.element.css(k.extend(L,{top:t,left:d})),v.helper.height(v.size.height),v.helper.width(v.size.width),this._helper&&!m.animate&&this._proportionallyResize()),k("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",u),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var a={};return this.position.top!==this.prevPosition.top&&(a.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(a.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(a.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(a.height=this.size.height+"px"),this.helper.css(a),a},_updateVirtualBoundaries:function(f){var h,d,g,m,l,c=this.options;l={minWidth:this._isNumber(c.minWidth)?c.minWidth:0,maxWidth:this._isNumber(c.maxWidth)?c.maxWidth:1/0,minHeight:this._isNumber(c.minHeight)?c.minHeight:0,maxHeight:this._isNumber(c.maxHeight)?c.maxHeight:1/0},(this._aspectRatio||f)&&(h=l.minHeight*this.aspectRatio,g=l.minWidth/this.aspectRatio,d=l.maxHeight*this.aspectRatio,m=l.maxWidth/this.aspectRatio,h>l.minWidth&&(l.minWidth=h),g>l.minHeight&&(l.minHeight=g),l.maxWidth>d&&(l.maxWidth=d),l.maxHeight>m&&(l.maxHeight=m)),this._vBoundaries=l},_updateCache:function(a){this.offset=this.helper.offset(),this._isNumber(a.left)&&(this.position.left=a.left),this._isNumber(a.top)&&(this.position.top=a.top),this._isNumber(a.height)&&(this.size.height=a.height),this._isNumber(a.width)&&(this.size.width=a.width)},_updateRatio:function(c){var f=this.position,a=this.size,d=this.axis;return this._isNumber(c.height)?c.width=c.height*this.aspectRatio:this._isNumber(c.width)&&(c.height=c.width/this.aspectRatio),"sw"===d&&(c.left=f.left+(a.width-c.width),c.top=null),"nw"===d&&(c.top=f.top+(a.height-c.height),c.left=f.left+(a.width-c.width)),c},_respectSize:function(N){var v=this._vBoundaries,p=this.axis,O=this._isNumber(N.width)&&v.maxWidth&&v.maxWidth<N.width,g=this._isNumber(N.height)&&v.maxHeight&&v.maxHeight<N.height,f=this._isNumber(N.width)&&v.minWidth&&v.minWidth>N.width,M=this._isNumber(N.height)&&v.minHeight&&v.minHeight>N.height,d=this.originalPosition.left+this.originalSize.width,u=this.originalPosition.top+this.originalSize.height,m=/sw|nw|w/.test(p),L=/nw|ne|n/.test(p);return f&&(N.width=v.minWidth),M&&(N.height=v.minHeight),O&&(N.width=v.maxWidth),g&&(N.height=v.maxHeight),f&&m&&(N.left=d-v.minWidth),O&&m&&(N.left=d-v.maxWidth),M&&L&&(N.top=u-v.minHeight),g&&L&&(N.top=u-v.maxHeight),N.width||N.height||N.left||!N.top?N.width||N.height||N.top||!N.left||(N.left=null):N.top=null,N},_getPaddingPlusBorderDimensions:function(c){for(var f=0,a=[],d=[c.css("borderTopWidth"),c.css("borderRightWidth"),c.css("borderBottomWidth"),c.css("borderLeftWidth")],g=[c.css("paddingTop"),c.css("paddingRight"),c.css("paddingBottom"),c.css("paddingLeft")];4>f;f++){a[f]=parseFloat(d[f])||0,a[f]+=parseFloat(g[f])||0}return{height:a[0]+a[2],width:a[1]+a[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){for(var c,d=0,a=this.helper||this.element;this._proportionallyResizeElements.length>d;d++){c=this._proportionallyResizeElements[d],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(c)),c.css({height:a.height()-this.outerDimensions.height||0,width:a.width()-this.outerDimensions.width||0})}}},_renderProxy:function(){var c=this.element,a=this.options;this.elementOffset=c.offset(),this._helper?(this.helper=this.helper||k("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++a.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(a,c){return{width:this.originalSize.width+c}},w:function(c,f){var a=this.originalSize,d=this.originalPosition;return{left:d.left+f,width:a.width-f}},n:function(c,f,a){var d=this.originalSize,g=this.originalPosition;return{top:g.top+a,height:d.height-a}},s:function(c,d,a){return{height:this.originalSize.height+a}},se:function(d,a,c){return k.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[d,a,c]))},sw:function(d,a,c){return k.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[d,a,c]))},ne:function(d,a,c){return k.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[d,a,c]))},nw:function(d,a,c){return k.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[d,a,c]))}},_propagate:function(c,a){k.ui.plugin.call(this,c,[a,this.ui()]),"resize"!==c&&this._trigger(c,a,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),k.ui.plugin.add("resizable","animate",{stop:function(u){var p=k(this).resizable("instance"),M=p.options,g=p._proportionallyResizeElements,f=g.length&&/textarea/i.test(g[0].nodeName),L=f&&p._hasScroll(g[0],"left")?0:p.sizeDiff.height,d=f?0:p.sizeDiff.width,t={width:p.size.width-d,height:p.size.height-L},m=parseFloat(p.element.css("left"))+(p.position.left-p.originalPosition.left)||null,v=parseFloat(p.element.css("top"))+(p.position.top-p.originalPosition.top)||null;p.element.animate(k.extend(t,v&&m?{top:v,left:m}:{}),{duration:M.animateDuration,easing:M.animateEasing,step:function(){var a={width:parseFloat(p.element.css("width")),height:parseFloat(p.element.css("height")),top:parseFloat(p.element.css("top")),left:parseFloat(p.element.css("left"))};g&&g.length&&k(g[0]).css({width:a.width,height:a.height}),p._updateCache(a),p._propagate("resize",u)}})}}),k.ui.plugin.add("resizable","containment",{start:function(){var L,t,Q,m,g,O,f,v=k(this).resizable("instance"),p=v.options,N=v.element,P=p.containment,M=P instanceof k?P.get(0):/parent/.test(P)?N.parent().get(0):P;M&&(v.containerElement=k(M),/document/.test(P)||P===document?(v.containerOffset={left:0,top:0},v.containerPosition={left:0,top:0},v.parentData={element:k(document),left:0,top:0,width:k(document).width(),height:k(document).height()||document.body.parentNode.scrollHeight}):(L=k(M),t=[],k(["Top","Right","Left","Bottom"]).each(function(a,c){t[a]=v._num(L.css("padding"+c))}),v.containerOffset=L.offset(),v.containerPosition=L.position(),v.containerSize={height:L.innerHeight()-t[3],width:L.innerWidth()-t[1]},Q=v.containerOffset,m=v.containerSize.height,g=v.containerSize.width,O=v._hasScroll(M,"left")?M.scrollWidth:g,f=v._hasScroll(M)?M.scrollHeight:m,v.parentData={element:M,left:Q.left,top:Q.top,width:O,height:f}))},resize:function(N){var L,S,t,m,Q=k(this).resizable("instance"),f=Q.options,M=Q.containerOffset,v=Q.position,P=Q._aspectRatio||N.shiftKey,R={top:0,left:0},O=Q.containerElement,g=!0;O[0]!==document&&/static/.test(O.css("position"))&&(R=M),v.left<(Q._helper?M.left:0)&&(Q.size.width=Q.size.width+(Q._helper?Q.position.left-M.left:Q.position.left-R.left),P&&(Q.size.height=Q.size.width/Q.aspectRatio,g=!1),Q.position.left=f.helper?M.left:0),v.top<(Q._helper?M.top:0)&&(Q.size.height=Q.size.height+(Q._helper?Q.position.top-M.top:Q.position.top),P&&(Q.size.width=Q.size.height*Q.aspectRatio,g=!1),Q.position.top=Q._helper?M.top:0),t=Q.containerElement.get(0)===Q.element.parent().get(0),m=/relative|absolute/.test(Q.containerElement.css("position")),t&&m?(Q.offset.left=Q.parentData.left+Q.position.left,Q.offset.top=Q.parentData.top+Q.position.top):(Q.offset.left=Q.element.offset().left,Q.offset.top=Q.element.offset().top),L=Math.abs(Q.sizeDiff.width+(Q._helper?Q.offset.left-R.left:Q.offset.left-M.left)),S=Math.abs(Q.sizeDiff.height+(Q._helper?Q.offset.top-R.top:Q.offset.top-M.top)),L+Q.size.width>=Q.parentData.width&&(Q.size.width=Q.parentData.width-L,P&&(Q.size.height=Q.size.width/Q.aspectRatio,g=!1)),S+Q.size.height>=Q.parentData.height&&(Q.size.height=Q.parentData.height-S,P&&(Q.size.width=Q.size.height*Q.aspectRatio,g=!1)),g||(Q.position.left=Q.prevPosition.left,Q.position.top=Q.prevPosition.top,Q.size.width=Q.prevSize.width,Q.size.height=Q.prevSize.height)},stop:function(){var t=k(this).resizable("instance"),m=t.options,v=t.containerOffset,f=t.containerPosition,d=t.containerElement,u=k(t.helper),c=u.offset(),p=u.outerWidth()-t.sizeDiff.width,g=u.outerHeight()-t.sizeDiff.height;t._helper&&!m.animate&&/relative/.test(d.css("position"))&&k(this).css({left:c.left-f.left-v.left,width:p,height:g}),t._helper&&!m.animate&&/static/.test(d.css("position"))&&k(this).css({left:c.left-f.left-v.left,width:p,height:g})}}),k.ui.plugin.add("resizable","alsoResize",{start:function(){var c=k(this).resizable("instance"),a=c.options;k(a.alsoResize).each(function(){var d=k(this);d.data("ui-resizable-alsoresize",{width:parseFloat(d.width()),height:parseFloat(d.height()),left:parseFloat(d.css("left")),top:parseFloat(d.css("top"))})})},resize:function(h,d){var f=k(this).resizable("instance"),m=f.options,l=f.originalSize,c=f.originalPosition,g={height:f.size.height-l.height||0,width:f.size.width-l.width||0,top:f.position.top-c.top||0,left:f.position.left-c.left||0};k(m.alsoResize).each(function(){var i=k(this),a=k(this).data("ui-resizable-alsoresize"),r={},p=i.parents(d.originalElement[0]).length?["width","height"]:["width","height","top","left"];k.each(p,function(o,s){var n=(a[s]||0)+(g[s]||0);n&&n>=0&&(r[s]=n||null)}),i.css(r)})},stop:function(){k(this).removeData("ui-resizable-alsoresize")}}),k.ui.plugin.add("resizable","ghost",{start:function(){var c=k(this).resizable("instance"),a=c.size;c.ghost=c.originalElement.clone(),c.ghost.css({opacity:0.25,display:"block",position:"relative",height:a.height,width:a.width,margin:0,left:0,top:0}),c._addClass(c.ghost,"ui-resizable-ghost"),k.uiBackCompat!==!1&&"string"==typeof c.options.ghost&&c.ghost.addClass(this.options.ghost),c.ghost.appendTo(c.helper)},resize:function(){var a=k(this).resizable("instance");a.ghost&&a.ghost.css({position:"relative",height:a.size.height,width:a.size.width})},stop:function(){var a=k(this).resizable("instance");a.ghost&&a.helper&&a.helper.get(0).removeChild(a.ghost.get(0))}}),k.ui.plugin.add("resizable","grid",{resize:function(){var X,T=k(this).resizable("instance"),M=T.options,Q=T.size,P=T.originalSize,aa=T.originalPosition,N=T.axis,U="number"==typeof M.grid?[M.grid,M.grid]:M.grid,S=U[0]||1,Z=U[1]||1,L=Math.round((Q.width-P.width)/S)*S,Y=Math.round((Q.height-P.height)/Z)*Z,O=P.width+L,W=P.height+Y,V=M.maxWidth&&O>M.maxWidth,R=M.maxHeight&&W>M.maxHeight,ab=M.minWidth&&M.minWidth>O,t=M.minHeight&&M.minHeight>W;M.grid=U,ab&&(O+=S),t&&(W+=Z),V&&(O-=S),R&&(W-=Z),/^(se|s|e)$/.test(N)?(T.size.width=O,T.size.height=W):/^(ne)$/.test(N)?(T.size.width=O,T.size.height=W,T.position.top=aa.top-Y):/^(sw)$/.test(N)?(T.size.width=O,T.size.height=W,T.position.left=aa.left-L):((0>=W-Z||0>=O-S)&&(X=T._getPaddingPlusBorderDimensions(this)),W-Z>0?(T.size.height=W,T.position.top=aa.top-Y):(W=Z-X.height,T.size.height=W,T.position.top=aa.top+P.height-W),O-S>0?(T.size.width=O,T.position.left=aa.left-L):(O=S-X.width,T.size.width=O,T.position.left=aa.left+P.width-O))}}),k.ui.resizable,k.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(c){var a=k(this).css(c).offset().top;0>a&&k(this).css("top",c.top-a)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&k.fn.draggable&&this._makeDraggable(),this.options.resizable&&k.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var a=this.options.appendTo;return a&&(a.jquery||a.nodeType)?k(a):this.document.find(a||"body").eq(0)},_destroy:function(){var a,c=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),a=c.parent.children().eq(c.index),a.length&&a[0]!==this.element[0]?a.before(this.element):c.parent.append(this.element)},widget:function(){return this.uiDialog},disable:k.noop,enable:k.noop,close:function(c){var a=this;this._isOpen&&this._trigger("beforeClose",c)!==!1&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||k.ui.safeBlur(k.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){a._trigger("close",c)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(d,a){var c=!1,g=this.uiDialog.siblings(".ui-front:visible").map(function(){return +k(this).css("z-index")}).get(),f=Math.max.apply(null,g);return f>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",f+1),c=!0),c&&!a&&this._trigger("focus",d),c},open:function(){var a=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),void 0):(this._isOpen=!0,this.opener=k(k.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){a._focusTabbable(),a._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"),void 0)},_focusTabbable:function(){var a=this._focusedElement;a||(a=this.element.find("[autofocus]")),a.length||(a=this.element.find(":tabbable")),a.length||(a=this.uiDialogButtonPane.find(":tabbable")),a.length||(a=this.uiDialogTitlebarClose.filter(":tabbable")),a.length||(a=this.uiDialog),a.eq(0).trigger("focus")},_keepFocus:function(c){function a(){var f=k.ui.safeActiveElement(this.document[0]),d=this.uiDialog[0]===f||k.contains(this.uiDialog[0],f);d||this._focusTabbable()}c.preventDefault(),a.call(this),this._delay(a)},_createWrapper:function(){this.uiDialog=k("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(d){if(this.options.closeOnEscape&&!d.isDefaultPrevented()&&d.keyCode&&d.keyCode===k.ui.keyCode.ESCAPE){return d.preventDefault(),this.close(d),void 0}if(d.keyCode===k.ui.keyCode.TAB&&!d.isDefaultPrevented()){var a=this.uiDialog.find(":tabbable"),c=a.filter(":first"),f=a.filter(":last");d.target!==f[0]&&d.target!==this.uiDialog[0]||d.shiftKey?d.target!==c[0]&&d.target!==this.uiDialog[0]||!d.shiftKey||(this._delay(function(){f.trigger("focus")}),d.preventDefault()):(this._delay(function(){c.trigger("focus")}),d.preventDefault())}},mousedown:function(a){this._moveToTop(a)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var a;this.uiDialogTitlebar=k("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(c){k(c.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=k("<button type='button'></button>").button({label:k("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(c){c.preventDefault(),this.close(c)}}),a=k("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(a,"ui-dialog-title"),this._title(a),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":a.attr("id")})},_title:function(a){this.options.title?a.text(this.options.title):a.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=k("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=k("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var c=this,a=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),k.isEmptyObject(a)||k.isArray(a)&&!a.length?(this._removeClass(this.uiDialog,"ui-dialog-buttons"),void 0):(k.each(a,function(d,e){var g,f;e=k.isFunction(e)?{click:e,text:d}:e,e=k.extend({type:"button"},e),g=e.click,f={icon:e.icon,iconPosition:e.iconPosition,showLabel:e.showLabel,icons:e.icons,text:e.text},delete e.click,delete e.icon,delete e.iconPosition,delete e.showLabel,delete e.icons,"boolean"==typeof e.text&&delete e.text,k("<button></button>",e).button(f).appendTo(c.uiButtonSet).on("click",function(){g.apply(c.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog),void 0)},_makeDraggable:function(){function d(e){return{position:e.position,offset:e.offset}}var a=this,c=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(e,f){a._addClass(k(this),"ui-dialog-dragging"),a._blockFrames(),a._trigger("dragStart",e,d(f))},drag:function(e,f){a._trigger("drag",e,d(f))},stop:function(h,g){var e=g.offset.left-a.document.scrollLeft(),f=g.offset.top-a.document.scrollTop();c.position={my:"left top",at:"left"+(e>=0?"+":"")+e+" top"+(f>=0?"+":"")+f,of:a.window},a._removeClass(k(this),"ui-dialog-dragging"),a._unblockFrames(),a._trigger("dragStop",h,d(g))}})},_makeResizable:function(){function g(a){return{originalPosition:a.originalPosition,originalSize:a.originalSize,position:a.position,size:a.size}}var d=this,f=this.options,l=f.resizable,h=this.uiDialog.css("position"),c="string"==typeof l?l:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:this._minHeight(),handles:c,start:function(a,e){d._addClass(k(this),"ui-dialog-resizing"),d._blockFrames(),d._trigger("resizeStart",a,g(e))},resize:function(a,e){d._trigger("resize",a,g(e))},stop:function(s,p){var e=d.uiDialog.offset(),m=e.left-d.document.scrollLeft(),i=e.top-d.document.scrollTop();f.height=d.uiDialog.height(),f.width=d.uiDialog.width(),f.position={my:"left top",at:"left"+(m>=0?"+":"")+m+" top"+(i>=0?"+":"")+i,of:d.window},d._removeClass(k(this),"ui-dialog-resizing"),d._unblockFrames(),d._trigger("resizeStop",s,g(p))}}).css("position",h)},_trackFocus:function(){this._on(this.widget(),{focusin:function(a){this._makeFocusTarget(),this._focusedElement=k(a.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var c=this._trackingInstances(),a=k.inArray(this,c);-1!==a&&c.splice(a,1)},_trackingInstances:function(){var a=this.document.data("ui-dialog-instances");return a||(a=[],this.document.data("ui-dialog-instances",a)),a},_minHeight:function(){var a=this.options;return"auto"===a.height?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(){var a=this.uiDialog.is(":visible");a||this.uiDialog.show(),this.uiDialog.position(this.options.position),a||this.uiDialog.hide()},_setOptions:function(d){var a=this,c=!1,f={};k.each(d,function(g,h){a._setOption(g,h),g in a.sizeRelatedOptions&&(c=!0),g in a.resizableRelatedOptions&&(f[g]=h)}),c&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",f)},_setOption:function(d,a){var c,g,f=this.uiDialog;"disabled"!==d&&(this._super(d,a),"appendTo"===d&&this.uiDialog.appendTo(this._appendTo()),"buttons"===d&&this._createButtons(),"closeText"===d&&this.uiDialogTitlebarClose.button({label:k("<a>").text(""+this.options.closeText).html()}),"draggable"===d&&(c=f.is(":data(ui-draggable)"),c&&!a&&f.draggable("destroy"),!c&&a&&this._makeDraggable()),"position"===d&&this._position(),"resizable"===d&&(g=f.is(":data(ui-resizable)"),g&&!a&&f.resizable("destroy"),g&&"string"==typeof a&&f.resizable("option","handles",a),g||a===!1||this._makeResizable()),"title"===d&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var c,f,a,d=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),d.minWidth>d.width&&(d.width=d.minWidth),c=this.uiDialog.css({height:"auto",width:d.width}).outerHeight(),f=Math.max(0,d.minHeight-c),a="number"==typeof d.maxHeight?Math.max(0,d.maxHeight-c):"none","auto"===d.height?this.element.css({minHeight:f,maxHeight:a,height:"auto"}):this.element.height(Math.max(0,d.height-c)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var a=k(this);return k("<div>").css({position:"absolute",width:a.outerWidth(),height:a.outerHeight()}).appendTo(a.parent()).offset(a.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(a){return k(a.target).closest(".ui-dialog").length?!0:!!k(a.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var a=!0;this._delay(function(){a=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(c){a||this._allowInteraction(c)||(c.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=k("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var a=this.document.data("ui-dialog-overlays")-1;a?this.document.data("ui-dialog-overlays",a):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),k.uiBackCompat!==!1&&k.widget("ui.dialog",k.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(a,c){"dialogClass"===a&&this.uiDialog.removeClass(this.options.dialogClass).addClass(c),this._superApply(arguments)}}),k.ui.dialog,k.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var d,a=this.options,c=a.accept;this.isover=!1,this.isout=!0,this.accept=k.isFunction(c)?c:function(e){return e.is(c)},this.proportions=function(){return arguments.length?(d=arguments[0],void 0):d?d:d={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(a.scope),a.addClasses&&this._addClass("ui-droppable")},_addToManager:function(a){k.ui.ddmanager.droppables[a]=k.ui.ddmanager.droppables[a]||[],k.ui.ddmanager.droppables[a].push(this)},_splice:function(a){for(var c=0;a.length>c;c++){a[c]===this&&a.splice(c,1)}},_destroy:function(){var a=k.ui.ddmanager.droppables[this.options.scope];this._splice(a)},_setOption:function(d,a){if("accept"===d){this.accept=k.isFunction(a)?a:function(e){return e.is(a)}}else{if("scope"===d){var c=k.ui.ddmanager.droppables[this.options.scope];this._splice(c),this._addToManager(a)}}this._super(d,a)},_activate:function(c){var a=k.ui.ddmanager.current;this._addActiveClass(),a&&this._trigger("activate",c,this.ui(a))},_deactivate:function(c){var a=k.ui.ddmanager.current;this._removeActiveClass(),a&&this._trigger("deactivate",c,this.ui(a))},_over:function(c){var a=k.ui.ddmanager.current;a&&(a.currentItem||a.element)[0]!==this.element[0]&&this.accept.call(this.element[0],a.currentItem||a.element)&&(this._addHoverClass(),this._trigger("over",c,this.ui(a)))},_out:function(c){var a=k.ui.ddmanager.current;a&&(a.currentItem||a.element)[0]!==this.element[0]&&this.accept.call(this.element[0],a.currentItem||a.element)&&(this._removeHoverClass(),this._trigger("out",c,this.ui(a)))},_drop:function(d,a){var c=a||k.ui.ddmanager.current,f=!1;return c&&(c.currentItem||c.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=k(this).droppable("instance");return e.options.greedy&&!e.options.disabled&&e.options.scope===c.options.scope&&e.accept.call(e.element[0],c.currentItem||c.element)&&b(c,k.extend(e,{offset:e.element.offset()}),e.options.tolerance,d)?(f=!0,!1):void 0}),f?!1:this.accept.call(this.element[0],c.currentItem||c.element)?(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",d,this.ui(c)),this.element):!1):!1},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var b=k.ui.intersect=function(){function a(d,f,c){return d>=f&&f+c>d}return function(L,t,Q,m){if(!t.offset){return !1}var g=(L.positionAbs||L.position.absolute).left+L.margins.left,O=(L.positionAbs||L.position.absolute).top+L.margins.top,f=g+L.helperProportions.width,v=O+L.helperProportions.height,p=t.offset.left,N=t.offset.top,P=p+t.proportions().width,M=N+t.proportions().height;switch(Q){case"fit":return g>=p&&P>=f&&O>=N&&M>=v;case"intersect":return g+L.helperProportions.width/2>p&&P>f-L.helperProportions.width/2&&O+L.helperProportions.height/2>N&&M>v-L.helperProportions.height/2;case"pointer":return a(m.pageY,N,t.proportions().height)&&a(m.pageX,p,t.proportions().width);case"touch":return(O>=N&&M>=O||v>=N&&M>=v||N>O&&v>M)&&(g>=p&&P>=g||f>=p&&P>=f||p>g&&f>P);default:return !1}}}();k.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(h,d){var f,m,l=k.ui.ddmanager.droppables[h.options.scope]||[],c=d?d.type:null,g=(h.currentItem||h.element).find(":data(ui-droppable)").addBack();k:for(f=0;l.length>f;f++){if(!(l[f].options.disabled||h&&!l[f].accept.call(l[f].element[0],h.currentItem||h.element))){for(m=0;g.length>m;m++){if(g[m]===l[f].element[0]){l[f].proportions().height=0;continue k}}l[f].visible="none"!==l[f].element.css("display"),l[f].visible&&("mousedown"===c&&l[f]._activate.call(l[f],d),l[f].offset=l[f].element.offset(),l[f].proportions({width:l[f].element[0].offsetWidth,height:l[f].element[0].offsetHeight}))}}},drop:function(d,a){var c=!1;return k.each((k.ui.ddmanager.droppables[d.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&b(d,this,this.options.tolerance,a)&&(c=this._drop.call(this,a)||c),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],d.currentItem||d.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,a)))}),c},dragStart:function(c,a){c.element.parentsUntil("body").on("scroll.droppable",function(){c.options.refreshPositions||k.ui.ddmanager.prepareOffsets(c,a)})},drag:function(c,a){c.options.refreshPositions&&k.ui.ddmanager.prepareOffsets(c,a),k.each(k.ui.ddmanager.droppables[c.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var e,h,g,d=b(c,this,this.options.tolerance,a),f=!d&&this.isover?"isout":d&&!this.isover?"isover":null;f&&(this.options.greedy&&(h=this.options.scope,g=this.element.parents(":data(ui-droppable)").filter(function(){return k(this).droppable("instance").options.scope===h}),g.length&&(e=k(g[0]).droppable("instance"),e.greedyChild="isover"===f)),e&&"isover"===f&&(e.isover=!1,e.isout=!0,e._out.call(e,a)),this[f]=!0,this["isout"===f?"isover":"isout"]=!1,this["isover"===f?"_over":"_out"].call(this,a),e&&"isout"===f&&(e.isout=!1,e.isover=!0,e._over.call(e,a)))}})},dragStop:function(c,a){c.element.parentsUntil("body").off("scroll.droppable"),c.options.refreshPositions||k.ui.ddmanager.prepareOffsets(c,a)}},k.uiBackCompat!==!1&&k.widget("ui.droppable",k.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),k.ui.droppable,k.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=k("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(a){return void 0===a?this.options.value:(this.options.value=this._constrainedValue(a),this._refreshValue(),void 0)},_constrainedValue:function(a){return void 0===a&&(a=this.options.value),this.indeterminate=a===!1,"number"!=typeof a&&(a=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,a))},_setOptions:function(a){var c=a.value;delete a.value,this._super(a),this.options.value=this._constrainedValue(c),this._refreshValue()},_setOption:function(a,c){"max"===a&&(c=Math.max(this.min,c)),this._super(a,c)},_setOptionDisabled:function(a){this._super(a),this.element.attr("aria-disabled",a),this._toggleClass(null,"ui-state-disabled",!!a)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var c=this.options.value,a=this._percentage();this.valueDiv.toggle(this.indeterminate||c>this.min).width(a.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,c===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=k("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":c}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==c&&(this.oldValue=c,this._trigger("change")),c===this.options.max&&this._trigger("complete")}}),k.widget("ui.selectable",k.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var a=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){a.elementPos=k(a.element[0]).offset(),a.selectees=k(a.options.filter,a.element[0]),a._addClass(a.selectees,"ui-selectee"),a.selectees.each(function(){var c=k(this),d=c.offset(),e={left:d.left-a.elementPos.left,top:d.top-a.elementPos.top};k.data(this,"selectable-item",{element:this,$element:c,left:e.left,top:e.top,right:e.left+c.outerWidth(),bottom:e.top+c.outerHeight(),startselected:!1,selected:c.hasClass("ui-selected"),selecting:c.hasClass("ui-selecting"),unselecting:c.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=k("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(d){var a=this,c=this.options;this.opos=[d.pageX,d.pageY],this.elementPos=k(this.element[0]).offset(),this.options.disabled||(this.selectees=k(c.filter,this.element[0]),this._trigger("start",d),k(c.appendTo).append(this.helper),this.helper.css({left:d.pageX,top:d.pageY,width:0,height:0}),c.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var e=k.data(this,"selectable-item");e.startselected=!0,d.metaKey||d.ctrlKey||(a._removeClass(e.$element,"ui-selected"),e.selected=!1,a._addClass(e.$element,"ui-unselecting"),e.unselecting=!0,a._trigger("unselecting",d,{unselecting:e.element}))}),k(d.target).parents().addBack().each(function(){var e,f=k.data(this,"selectable-item");return f?(e=!d.metaKey&&!d.ctrlKey||!f.$element.hasClass("ui-selected"),a._removeClass(f.$element,e?"ui-unselecting":"ui-selected")._addClass(f.$element,e?"ui-selecting":"ui-unselecting"),f.unselecting=!e,f.selecting=e,f.selected=e,e?a._trigger("selecting",d,{selecting:f.element}):a._trigger("unselecting",d,{unselecting:f.element}),!1):void 0}))},_mouseDrag:function(m){if(this.dragged=!0,!this.options.disabled){var d,g=this,t=this.options,p=this.opos[0],c=this.opos[1],l=m.pageX,f=m.pageY;return p>l&&(d=l,l=p,p=d),c>f&&(d=f,f=c,c=d),this.helper.css({left:p,top:c,width:l-p,height:f-c}),this.selectees.each(function(){var e=k.data(this,"selectable-item"),a=!1,h={};e&&e.element!==g.element[0]&&(h.left=e.left+g.elementPos.left,h.right=e.right+g.elementPos.left,h.top=e.top+g.elementPos.top,h.bottom=e.bottom+g.elementPos.top,"touch"===t.tolerance?a=!(h.left>l||p>h.right||h.top>f||c>h.bottom):"fit"===t.tolerance&&(a=h.left>p&&l>h.right&&h.top>c&&f>h.bottom),a?(e.selected&&(g._removeClass(e.$element,"ui-selected"),e.selected=!1),e.unselecting&&(g._removeClass(e.$element,"ui-unselecting"),e.unselecting=!1),e.selecting||(g._addClass(e.$element,"ui-selecting"),e.selecting=!0,g._trigger("selecting",m,{selecting:e.element}))):(e.selecting&&((m.metaKey||m.ctrlKey)&&e.startselected?(g._removeClass(e.$element,"ui-selecting"),e.selecting=!1,g._addClass(e.$element,"ui-selected"),e.selected=!0):(g._removeClass(e.$element,"ui-selecting"),e.selecting=!1,e.startselected&&(g._addClass(e.$element,"ui-unselecting"),e.unselecting=!0),g._trigger("unselecting",m,{unselecting:e.element}))),e.selected&&(m.metaKey||m.ctrlKey||e.startselected||(g._removeClass(e.$element,"ui-selected"),e.selected=!1,g._addClass(e.$element,"ui-unselecting"),e.unselecting=!0,g._trigger("unselecting",m,{unselecting:e.element})))))}),!1}},_mouseStop:function(c){var a=this;return this.dragged=!1,k(".ui-unselecting",this.element[0]).each(function(){var d=k.data(this,"selectable-item");a._removeClass(d.$element,"ui-unselecting"),d.unselecting=!1,d.startselected=!1,a._trigger("unselected",c,{unselected:d.element})}),k(".ui-selecting",this.element[0]).each(function(){var d=k.data(this,"selectable-item");a._removeClass(d.$element,"ui-selecting")._addClass(d.$element,"ui-selected"),d.selecting=!1,d.selected=!0,d.startselected=!0,a._trigger("selected",c,{selected:d.element})}),this._trigger("stop",c),this.helper.remove(),!1}}),k.widget("ui.selectmenu",[k.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var a=this.element.uniqueId().attr("id");this.ids={element:a,button:a+"-button",menu:a+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=k()},_drawButton:function(){var d,a=this,c=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(e){this.button.focus(),e.preventDefault()}}),this.element.hide(),this.button=k("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),d=k("<span>").appendTo(this.button),this._addClass(d,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(c).appendTo(this.button),this.options.width!==!1&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){a._rendered||a._refreshMenu()})},_drawMenu:function(){var a=this;this.menu=k("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=k("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(d,c){d.preventDefault(),a._setSelection(),a._select(c.item.data("ui-selectmenu-item"),d)},focus:function(d,c){var e=c.item.data("ui-selectmenu-item");null!=a.focusIndex&&e.index!==a.focusIndex&&(a._trigger("focus",d,{item:e}),a.isOpen||a._select(e,d)),a.focusIndex=e.index,a.button.attr("aria-activedescendant",a.menuItems.eq(e.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return !1},this.menuInstance._isDivider=function(){return !1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var a,c=this.element.find("option");this.menu.empty(),this._parseOptions(c),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,c.length&&(a=this._getSelectedItem(),this.menuInstance.focus(null,a),this._setAria(a.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(a){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",a)))},_position:function(){this.menuWrap.position(k.extend({of:this.button},this.options.position))},close:function(a){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",a))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(c){var a=k("<span>");return this._setText(a,c.label),this._addClass(a,"ui-selectmenu-text"),a},_renderMenu:function(d,a){var c=this,f="";k.each(a,function(g,h){var e;h.optgroup!==f&&(e=k("<li>",{text:h.optgroup}),c._addClass(e,"ui-selectmenu-optgroup","ui-menu-divider"+(h.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),e.appendTo(d),f=h.optgroup),c._renderItemData(d,h)})},_renderItemData:function(a,c){return this._renderItem(a,c).data("ui-selectmenu-item",c)},_renderItem:function(d,a){var c=k("<li>"),f=k("<div>",{title:a.element.attr("title")});return a.disabled&&this._addClass(c,null,"ui-state-disabled"),this._setText(f,a.label),c.append(f).appendTo(d)},_setText:function(a,c){c?a.text(c):a.html("&#160;")},_move:function(c,f){var a,d,g=".ui-menu-item";this.isOpen?a=this.menuItems.eq(this.focusIndex).parent("li"):(a=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),g+=":not(.ui-state-disabled)"),d="first"===c||"last"===c?a["first"===c?"prevAll":"nextAll"](g).eq(-1):a[c+"All"](g).eq(0),d.length&&this.menuInstance.focus(f,d)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(a){this[this.isOpen?"close":"open"](a)},_setSelection:function(){var a;this.range&&(window.getSelection?(a=window.getSelection(),a.removeAllRanges(),a.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(a){this.isOpen&&(k(a.target).closest(".ui-selectmenu-menu, #"+k.ui.escapeSelector(this.ids.button)).length||this.close(a))}},_buttonEvents:{mousedown:function(){var a;window.getSelection?(a=window.getSelection(),a.rangeCount&&(this.range=a.getRangeAt(0))):this.range=document.selection.createRange()},click:function(a){this._setSelection(),this._toggle(a)},keydown:function(c){var a=!0;switch(c.keyCode){case k.ui.keyCode.TAB:case k.ui.keyCode.ESCAPE:this.close(c),a=!1;break;case k.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(c);break;case k.ui.keyCode.UP:c.altKey?this._toggle(c):this._move("prev",c);break;case k.ui.keyCode.DOWN:c.altKey?this._toggle(c):this._move("next",c);break;case k.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(c):this._toggle(c);break;case k.ui.keyCode.LEFT:this._move("prev",c);break;case k.ui.keyCode.RIGHT:this._move("next",c);break;case k.ui.keyCode.HOME:case k.ui.keyCode.PAGE_UP:this._move("first",c);break;case k.ui.keyCode.END:case k.ui.keyCode.PAGE_DOWN:this._move("last",c);break;default:this.menu.trigger(c),a=!1}a&&c.preventDefault()}},_selectFocusedItem:function(a){var c=this.menuItems.eq(this.focusIndex).parent("li");c.hasClass("ui-state-disabled")||this._select(c.data("ui-selectmenu-item"),a)},_select:function(c,d){var a=this.element[0].selectedIndex;this.element[0].selectedIndex=c.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(c)),this._setAria(c),this._trigger("select",d,{item:c}),c.index!==a&&this._trigger("change",d,{item:c}),this.close(d)},_setAria:function(a){var c=this.menuItems.eq(a.index).attr("id");this.button.attr({"aria-labelledby":c,"aria-activedescendant":c}),this.menu.attr("aria-activedescendant",c)},_setOption:function(c,d){if("icons"===c){var a=this.button.find("span.ui-icon");this._removeClass(a,null,this.options.icons.button)._addClass(a,null,d.button)}this._super(c,d),"appendTo"===c&&this.menuWrap.appendTo(this._appendTo()),"width"===c&&this._resizeButton()},_setOptionDisabled:function(a){this._super(a),this.menuInstance.option("disabled",a),this.button.attr("aria-disabled",a),this._toggleClass(this.button,null,"ui-state-disabled",a),this.element.prop("disabled",a),a?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var a=this.options.appendTo;return a&&(a=a.jquery||a.nodeType?k(a):this.document.find(a).eq(0)),a&&a[0]||(a=this.element.closest(".ui-front, dialog")),a.length||(a=this.document[0].body),a},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var a=this.options.width;return a===!1?(this.button.css("width",""),void 0):(null===a&&(a=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(a),void 0)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var a=this._super();return a.disabled=this.element.prop("disabled"),a},_parseOptions:function(d){var a=this,c=[];d.each(function(f,g){c.push(a._parseOption(k(g),f))}),this.items=c},_parseOption:function(c,d){var a=c.parent("optgroup");return{element:c,index:d,value:c.val(),label:c.text(),optgroup:a.attr("label")||"",disabled:a.prop("disabled")||c.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),k.widget("ui.slider",k.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var g,d,f=this.options,l=this.element.find(".ui-slider-handle"),h="<span tabindex='0'></span>",c=[];for(d=f.values&&f.values.length||1,l.length>d&&(l.slice(d).remove(),l=l.slice(0,d)),g=l.length;d>g;g++){c.push(h)}this.handles=l.add(k(c.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(a){k(this).data("ui-slider-handle-index",a).attr("tabIndex",0)})},_createRange:function(){var a=this.options;a.range?(a.range===!0&&(a.values?a.values.length&&2!==a.values.length?a.values=[a.values[0],a.values[0]]:k.isArray(a.values)&&(a.values=a.values.slice(0)):a.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=k("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),("min"===a.range||"max"===a.range)&&this._addClass(this.range,"ui-slider-range-"+a.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(v){var p,O,g,f,M,d,t,m,L=this,N=this.options;return N.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),p={x:v.pageX,y:v.pageY},O=this._normValueFromMouse(p),g=this._valueMax()-this._valueMin()+1,this.handles.each(function(c){var a=Math.abs(O-L.values(c));(g>a||g===a&&(c===L._lastChangedValue||L.values(c)===N.min))&&(g=a,f=k(this),M=c)}),d=this._start(v,M),d===!1?!1:(this._mouseSliding=!0,this._handleIndex=M,this._addClass(f,null,"ui-state-active"),f.trigger("focus"),t=f.offset(),m=!k(v.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=m?{left:0,top:0}:{left:v.pageX-t.left-f.width()/2,top:v.pageY-t.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(v,M,O),this._animateOff=!0,!0))},_mouseStart:function(){return !0},_mouseDrag:function(c){var d={x:c.pageX,y:c.pageY},a=this._normValueFromMouse(d);return this._slide(c,this._handleIndex,a),!1},_mouseStop:function(a){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(a,this._handleIndex),this._change(a,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(c){var f,a,d,h,g;return"horizontal"===this.orientation?(f=this.elementSize.width,a=c.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(f=this.elementSize.height,a=c.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),d=a/f,d>1&&(d=1),0>d&&(d=0),"vertical"===this.orientation&&(d=1-d),h=this._valueMax()-this._valueMin(),g=this._valueMin()+d*h,this._trimAlignValue(g)},_uiHash:function(c,f,a){var d={handle:this.handles[c],handleIndex:c,value:void 0!==f?f:this.value()};return this._hasMultipleValues()&&(d.value=void 0!==f?f:this.values(c),d.values=a||this.values()),d},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(a,c){return this._trigger("start",a,this._uiHash(c))},_slide:function(f,h,d){var g,m,l=this.value(),c=this.values();this._hasMultipleValues()&&(m=this.values(h?0:1),l=this.values(h),2===this.options.values.length&&this.options.range===!0&&(d=0===h?Math.min(m,d):Math.max(m,d)),c[h]=d),d!==l&&(g=this._trigger("slide",f,this._uiHash(h,d,c)),g!==!1&&(this._hasMultipleValues()?this.values(h,d):this.value(d)))},_stop:function(a,c){this._trigger("stop",a,this._uiHash(c))},_change:function(a,c){this._keySliding||this._mouseSliding||(this._lastChangedValue=c,this._trigger("change",a,this._uiHash(c)))},value:function(a){return arguments.length?(this.options.value=this._trimAlignValue(a),this._refreshValue(),this._change(null,0),void 0):this._value()},values:function(d,a){var c,g,f;if(arguments.length>1){return this.options.values[d]=this._trimAlignValue(a),this._refreshValue(),this._change(null,d),void 0}if(!arguments.length){return this._values()}if(!k.isArray(arguments[0])){return this._hasMultipleValues()?this._values(d):this.value()}for(c=this.options.values,g=arguments[0],f=0;c.length>f;f+=1){c[f]=this._trimAlignValue(g[f]),this._change(null,f)}this._refreshValue()},_setOption:function(d,a){var c,f=0;switch("range"===d&&this.options.range===!0&&("min"===a?(this.options.value=this._values(0),this.options.values=null):"max"===a&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),k.isArray(this.options.values)&&(f=this.options.values.length),this._super(d,a),d){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(a),this.handles.css("horizontal"===a?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),c=f-1;c>=0;c--){this._change(null,c)}this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(a){this._super(a),this._toggleClass(null,"ui-state-disabled",!!a)},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a)},_values:function(c){var f,a,d;if(arguments.length){return f=this.options.values[c],f=this._trimAlignValue(f)}if(this._hasMultipleValues()){for(a=this.options.values.slice(),d=0;a.length>d;d+=1){a[d]=this._trimAlignValue(a[d])}return a}return[]},_trimAlignValue:function(c){if(this._valueMin()>=c){return this._valueMin()}if(c>=this._valueMax()){return this._valueMax()}var f=this.options.step>0?this.options.step:1,a=(c-this._valueMin())%f,d=c-a;return 2*Math.abs(a)>=f&&(d+=a>0?f:-f),parseFloat(d.toFixed(5))},_calculateNewMax:function(){var c=this.options.max,f=this._valueMin(),a=this.options.step,d=Math.round((c-f)/a)*a;c=d+f,c>this.options.max&&(c-=a),this.max=parseFloat(c.toFixed(this._precision()))},_precision:function(){var a=this._precisionOf(this.options.step);return null!==this.options.min&&(a=Math.max(a,this._precisionOf(this.options.min))),a},_precisionOf:function(c){var d=""+c,a=d.indexOf(".");return -1===a?0:d.length-a-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(a){"vertical"===a&&this.range.css({width:"",left:""}),"horizontal"===a&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var u,p,M,g,f,L=this.options.range,d=this.options,t=this,m=this._animateOff?!1:d.animate,v={};this._hasMultipleValues()?this.handles.each(function(a){p=100*((t.values(a)-t._valueMin())/(t._valueMax()-t._valueMin())),v["horizontal"===t.orientation?"left":"bottom"]=p+"%",k(this).stop(1,1)[m?"animate":"css"](v,d.animate),t.options.range===!0&&("horizontal"===t.orientation?(0===a&&t.range.stop(1,1)[m?"animate":"css"]({left:p+"%"},d.animate),1===a&&t.range[m?"animate":"css"]({width:p-u+"%"},{queue:!1,duration:d.animate})):(0===a&&t.range.stop(1,1)[m?"animate":"css"]({bottom:p+"%"},d.animate),1===a&&t.range[m?"animate":"css"]({height:p-u+"%"},{queue:!1,duration:d.animate}))),u=p}):(M=this.value(),g=this._valueMin(),f=this._valueMax(),p=f!==g?100*((M-g)/(f-g)):0,v["horizontal"===this.orientation?"left":"bottom"]=p+"%",this.handle.stop(1,1)[m?"animate":"css"](v,d.animate),"min"===L&&"horizontal"===this.orientation&&this.range.stop(1,1)[m?"animate":"css"]({width:p+"%"},d.animate),"max"===L&&"horizontal"===this.orientation&&this.range.stop(1,1)[m?"animate":"css"]({width:100-p+"%"},d.animate),"min"===L&&"vertical"===this.orientation&&this.range.stop(1,1)[m?"animate":"css"]({height:p+"%"},d.animate),"max"===L&&"vertical"===this.orientation&&this.range.stop(1,1)[m?"animate":"css"]({height:100-p+"%"},d.animate))},_handleEvents:{keydown:function(g){var d,f,l,h,c=k(g.target).data("ui-slider-handle-index");switch(g.keyCode){case k.ui.keyCode.HOME:case k.ui.keyCode.END:case k.ui.keyCode.PAGE_UP:case k.ui.keyCode.PAGE_DOWN:case k.ui.keyCode.UP:case k.ui.keyCode.RIGHT:case k.ui.keyCode.DOWN:case k.ui.keyCode.LEFT:if(g.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(k(g.target),null,"ui-state-active"),d=this._start(g,c),d===!1)){return}}switch(h=this.options.step,f=l=this._hasMultipleValues()?this.values(c):this.value(),g.keyCode){case k.ui.keyCode.HOME:l=this._valueMin();break;case k.ui.keyCode.END:l=this._valueMax();break;case k.ui.keyCode.PAGE_UP:l=this._trimAlignValue(f+(this._valueMax()-this._valueMin())/this.numPages);break;case k.ui.keyCode.PAGE_DOWN:l=this._trimAlignValue(f-(this._valueMax()-this._valueMin())/this.numPages);break;case k.ui.keyCode.UP:case k.ui.keyCode.RIGHT:if(f===this._valueMax()){return}l=this._trimAlignValue(f+h);break;case k.ui.keyCode.DOWN:case k.ui.keyCode.LEFT:if(f===this._valueMin()){return}l=this._trimAlignValue(f-h)}this._slide(g,c,l)},keyup:function(c){var a=k(c.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(c,a),this._change(c,a),this._removeClass(k(c.target),null,"ui-state-active"))}}}),k.widget("ui.sortable",k.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(c,d,a){return c>=d&&d+a>c},_isFloating:function(a){return/left|right/.test(a.css("float"))||/inline|table-cell/.test(a.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(a,c){this._super(a,c),"handle"===a&&this._setHandleClassName()},_setHandleClassName:function(){var a=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),k.each(this.items,function(){a._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--){this.items[a].item.removeData(this.widgetName+"-item")}return this},_mouseCapture:function(d,a){var c=null,g=!1,f=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(d),k(d.target).parents().each(function(){return k.data(this,f.widgetName+"-item")===f?(c=k(this),!1):void 0}),k.data(d.target,f.widgetName+"-item")===f&&(c=k(d.target)),c?!this.options.handle||a||(k(this.options.handle,c).find("*").addBack().each(function(){this===d.target&&(g=!0)}),g)?(this.currentItem=c,this._removeCurrentsFromItems(),!0):!1:!1)},_mouseStart:function(g,d,f){var l,h,c=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(g),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},k.extend(this.offset,{click:{left:g.pageX-this.offset.left,top:g.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(g),this.originalPageX=g.pageX,this.originalPageY=g.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),c.containment&&this._setContainment(),c.cursor&&"auto"!==c.cursor&&(h=this.document.find("body"),this.storedCursor=h.css("cursor"),h.css("cursor",c.cursor),this.storedStylesheet=k("<style>*{ cursor: "+c.cursor+" !important; }</style>").appendTo(h)),c.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",c.opacity)),c.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",c.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",g,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!f){for(l=this.containers.length-1;l>=0;l--){this.containers[l]._trigger("activate",g,this._uiHash(this))}}return k.ui.ddmanager&&(k.ui.ddmanager.current=this),k.ui.ddmanager&&!c.dropBehaviour&&k.ui.ddmanager.prepareOffsets(this,g),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(g),!0},_mouseDrag:function(h){var d,f,m,l,c=this.options,g=!1;for(this.position=this._generatePosition(h),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-h.pageY<c.scrollSensitivity?this.scrollParent[0].scrollTop=g=this.scrollParent[0].scrollTop+c.scrollSpeed:h.pageY-this.overflowOffset.top<c.scrollSensitivity&&(this.scrollParent[0].scrollTop=g=this.scrollParent[0].scrollTop-c.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-h.pageX<c.scrollSensitivity?this.scrollParent[0].scrollLeft=g=this.scrollParent[0].scrollLeft+c.scrollSpeed:h.pageX-this.overflowOffset.left<c.scrollSensitivity&&(this.scrollParent[0].scrollLeft=g=this.scrollParent[0].scrollLeft-c.scrollSpeed)):(h.pageY-this.document.scrollTop()<c.scrollSensitivity?g=this.document.scrollTop(this.document.scrollTop()-c.scrollSpeed):this.window.height()-(h.pageY-this.document.scrollTop())<c.scrollSensitivity&&(g=this.document.scrollTop(this.document.scrollTop()+c.scrollSpeed)),h.pageX-this.document.scrollLeft()<c.scrollSensitivity?g=this.document.scrollLeft(this.document.scrollLeft()-c.scrollSpeed):this.window.width()-(h.pageX-this.document.scrollLeft())<c.scrollSensitivity&&(g=this.document.scrollLeft(this.document.scrollLeft()+c.scrollSpeed))),g!==!1&&k.ui.ddmanager&&!c.dropBehaviour&&k.ui.ddmanager.prepareOffsets(this,h)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),d=this.items.length-1;d>=0;d--){if(f=this.items[d],m=f.item[0],l=this._intersectsWithPointer(f),l&&f.instance===this.currentContainer&&m!==this.currentItem[0]&&this.placeholder[1===l?"next":"prev"]()[0]!==m&&!k.contains(this.placeholder[0],m)&&("semi-dynamic"===this.options.type?!k.contains(this.element[0],m):!0)){if(this.direction=1===l?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(f)){break}this._rearrange(h,f),this._trigger("change",h,this._uiHash());break}}return this._contactContainers(h),k.ui.ddmanager&&k.ui.ddmanager.drag(this,h),this._trigger("sort",h,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(g,d){if(g){if(k.ui.ddmanager&&!this.options.dropBehaviour&&k.ui.ddmanager.drop(this,g),this.options.revert){var f=this,l=this.placeholder.offset(),h=this.options.axis,c={};h&&"x"!==h||(c.left=l.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),h&&"y"!==h||(c.top=l.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,k(this.helper).animate(c,parseInt(this.options.revert,10)||500,function(){f._clear(g)})}else{this._clear(g,d)}return !1}},cancel:function(){if(this.dragging){this._mouseUp(new k.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var a=this.containers.length-1;a>=0;a--){this.containers[a]._trigger("deactivate",null,this._uiHash(this)),this.containers[a].containerCache.over&&(this.containers[a]._trigger("out",null,this._uiHash(this)),this.containers[a].containerCache.over=0)}}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),k.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?k(this.domPosition.prev).after(this.currentItem):k(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(d){var a=this._getItemsAsjQuery(d&&d.connected),c=[];return d=d||{},k(a).each(function(){var e=(k(d.item||this).attr(d.attribute||"id")||"").match(d.expression||/(.+)[\-=_](.+)/);e&&c.push((d.key||e[1]+"[]")+"="+(d.key&&d.expression?e[1]:e[2]))}),!c.length&&d.key&&c.push(d.key+"="),c.join("&")},toArray:function(d){var a=this._getItemsAsjQuery(d&&d.connected),c=[];return d=d||{},a.each(function(){c.push(k(d.item||this).attr(d.attribute||"id")||"")}),c},_intersectsWith:function(T){var O=this.positionAbs.left,M=O+this.helperProportions.width,U=this.positionAbs.top,v=U+this.helperProportions.height,m=T.left,R=m+T.width,f=T.top,N=f+T.height,L=this.offset.click.top,Q=this.offset.click.left,S="x"===this.options.axis||U+L>f&&N>U+L,P="y"===this.options.axis||O+Q>m&&R>O+Q,g=S&&P;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>T[this.floating?"width":"height"]?g:O+this.helperProportions.width/2>m&&R>M-this.helperProportions.width/2&&U+this.helperProportions.height/2>f&&N>v-this.helperProportions.height/2},_intersectsWithPointer:function(c){var f,a,d="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,c.top,c.height),h="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,c.left,c.width),g=d&&h;return g?(f=this._getDragVerticalDirection(),a=this._getDragHorizontalDirection(),this.floating?"right"===a||"down"===f?2:1:f&&("down"===f?2:1)):!1},_intersectsWithSides:function(c){var f=this._isOverAxis(this.positionAbs.top+this.offset.click.top,c.top+c.height/2,c.height),a=this._isOverAxis(this.positionAbs.left+this.offset.click.left,c.left+c.width/2,c.width),d=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();return this.floating&&g?"right"===g&&a||"left"===g&&!a:d&&("down"===d&&f||"up"===d&&!f)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return 0!==a&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return 0!==a&&(a>0?"right":"left")},refresh:function(a){return this._refreshItems(a),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var a=this.options;return a.connectWith.constructor===String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(t){function m(){c.push(this)}var v,f,d,u,c=[],p=[],g=this._connectWith();if(g&&t){for(v=g.length-1;v>=0;v--){for(d=k(g[v],this.document[0]),f=d.length-1;f>=0;f--){u=k.data(d[f],this.widgetFullName),u&&u!==this&&!u.options.disabled&&p.push([k.isFunction(u.options.items)?u.options.items.call(u.element):k(u.options.items,u.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),u])}}}for(p.push([k.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):k(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),v=p.length-1;v>=0;v--){p[v][0].each(m)}return k(c)},_removeCurrentsFromItems:function(){var a=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=k.grep(this.items,function(d){for(var c=0;a.length>c;c++){if(a[c]===d.item[0]){return !1}}return !0})},_refreshItems:function(L){this.items=[],this.containers=[this];var t,Q,m,g,O,f,v,p,N=this.items,P=[[k.isFunction(this.options.items)?this.options.items.call(this.element[0],L,{item:this.currentItem}):k(this.options.items,this.element),this]],M=this._connectWith();if(M&&this.ready){for(t=M.length-1;t>=0;t--){for(m=k(M[t],this.document[0]),Q=m.length-1;Q>=0;Q--){g=k.data(m[Q],this.widgetFullName),g&&g!==this&&!g.options.disabled&&(P.push([k.isFunction(g.options.items)?g.options.items.call(g.element[0],L,{item:this.currentItem}):k(g.options.items,g.element),g]),this.containers.push(g))}}}for(t=P.length-1;t>=0;t--){for(O=P[t][1],f=P[t][0],Q=0,p=f.length;p>Q;Q++){v=k(f[Q]),v.data(this.widgetName+"-item",O),N.push({item:v,instance:O,width:0,height:0,left:0,top:0})}}},refreshPositions:function(d){this.floating=this.items.length?"x"===this.options.axis||this._isFloating(this.items[0].item):!1,this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var a,c,g,f;for(a=this.items.length-1;a>=0;a--){c=this.items[a],c.instance!==this.currentContainer&&this.currentContainer&&c.item[0]!==this.currentItem[0]||(g=this.options.toleranceElement?k(this.options.toleranceElement,c.item):c.item,d||(c.width=g.outerWidth(),c.height=g.outerHeight()),f=g.offset(),c.left=f.left,c.top=f.top)}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(a=this.containers.length-1;a>=0;a--){f=this.containers[a].element.offset(),this.containers[a].containerCache.left=f.left,this.containers[a].containerCache.top=f.top,this.containers[a].containerCache.width=this.containers[a].element.outerWidth(),this.containers[a].containerCache.height=this.containers[a].element.outerHeight()}}return this},_createPlaceholder:function(d){d=d||this;var a,c=d.options;c.placeholder&&c.placeholder.constructor!==String||(a=c.placeholder,c.placeholder={element:function(){var e=d.currentItem[0].nodeName.toLowerCase(),f=k("<"+e+">",d.document[0]);return d._addClass(f,"ui-sortable-placeholder",a||d.currentItem[0].className)._removeClass(f,"ui-sortable-helper"),"tbody"===e?d._createTrPlaceholder(d.currentItem.find("tr").eq(0),k("<tr>",d.document[0]).appendTo(f)):"tr"===e?d._createTrPlaceholder(d.currentItem,f):"img"===e&&f.attr("src",d.currentItem.attr("src")),a||f.css("visibility","hidden"),f},update:function(e,f){(!a||c.forcePlaceholderSize)&&(f.height()||f.height(d.currentItem.innerHeight()-parseInt(d.currentItem.css("paddingTop")||0,10)-parseInt(d.currentItem.css("paddingBottom")||0,10)),f.width()||f.width(d.currentItem.innerWidth()-parseInt(d.currentItem.css("paddingLeft")||0,10)-parseInt(d.currentItem.css("paddingRight")||0,10)))}}),d.placeholder=k(c.placeholder.element.call(d.element,d.currentItem)),d.currentItem.after(d.placeholder),c.placeholder.update(d,d.placeholder)},_createTrPlaceholder:function(d,a){var c=this;d.children().each(function(){k("<td>&#160;</td>",c.document[0]).attr("colspan",k(this).attr("colspan")||1).appendTo(a)})},_contactContainers:function(N){var L,S,t,m,Q,f,M,v,P,R,O=null,g=null;for(L=this.containers.length-1;L>=0;L--){if(!k.contains(this.currentItem[0],this.containers[L].element[0])){if(this._intersectsWith(this.containers[L].containerCache)){if(O&&k.contains(this.containers[L].element[0],O.element[0])){continue}O=this.containers[L],g=L}else{this.containers[L].containerCache.over&&(this.containers[L]._trigger("out",N,this._uiHash(this)),this.containers[L].containerCache.over=0)}}}if(O){if(1===this.containers.length){this.containers[g].containerCache.over||(this.containers[g]._trigger("over",N,this._uiHash(this)),this.containers[g].containerCache.over=1)}else{for(t=10000,m=null,P=O.floating||this._isFloating(this.currentItem),Q=P?"left":"top",f=P?"width":"height",R=P?"pageX":"pageY",S=this.items.length-1;S>=0;S--){k.contains(this.containers[g].element[0],this.items[S].item[0])&&this.items[S].item[0]!==this.currentItem[0]&&(M=this.items[S].item.offset()[Q],v=!1,N[R]-M>this.items[S][f]/2&&(v=!0),t>Math.abs(N[R]-M)&&(t=Math.abs(N[R]-M),m=this.items[S],this.direction=v?"up":"down"))}if(!m&&!this.options.dropOnEmpty){return}if(this.currentContainer===this.containers[g]){return this.currentContainer.containerCache.over||(this.containers[g]._trigger("over",N,this._uiHash()),this.currentContainer.containerCache.over=1),void 0}m?this._rearrange(N,m,null,!0):this._rearrange(N,null,this.containers[g].element,!0),this._trigger("change",N,this._uiHash()),this.containers[g]._trigger("change",N,this._uiHash(this)),this.currentContainer=this.containers[g],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[g]._trigger("over",N,this._uiHash(this)),this.containers[g].containerCache.over=1}}},_createHelper:function(d){var a=this.options,c=k.isFunction(a.helper)?k(a.helper.apply(this.element[0],[d,this.currentItem])):"clone"===a.helper?this.currentItem.clone():this.currentItem;return c.parents("body").length||k("parent"!==a.appendTo?a.appendTo:this.currentItem[0].parentNode)[0].appendChild(c[0]),c[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!c[0].style.width||a.forceHelperSize)&&c.width(this.currentItem.width()),(!c[0].style.height||a.forceHelperSize)&&c.height(this.currentItem.height()),c},_adjustOffsetFromHelper:function(a){"string"==typeof a&&(a=a.split(" ")),k.isArray(a)&&(a={left:+a[0],top:+a[1]||0}),"left" in a&&(this.offset.click.left=a.left+this.margins.left),"right" in a&&(this.offset.click.left=this.helperProportions.width-a.right+this.margins.left),"top" in a&&(this.offset.click.top=a.top+this.margins.top),"bottom" in a&&(this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&k.contains(this.scrollParent[0],this.offsetParent[0])&&(a.left+=this.scrollParent.scrollLeft(),a.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&k.ui.ie)&&(a={top:0,left:0}),{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var d,a,c,f=this.options;"parent"===f.containment&&(f.containment=this.helper[0].parentNode),("document"===f.containment||"window"===f.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===f.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===f.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(f.containment)||(d=k(f.containment)[0],a=k(f.containment).offset(),c="hidden"!==k(d).css("overflow"),this.containment=[a.left+(parseInt(k(d).css("borderLeftWidth"),10)||0)+(parseInt(k(d).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(k(d).css("borderTopWidth"),10)||0)+(parseInt(k(d).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(k(d).css("borderLeftWidth"),10)||0)-(parseInt(k(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(k(d).css("borderTopWidth"),10)||0)-(parseInt(k(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(d,a){a||(a=this.position);var c="absolute"===d?1:-1,g="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&k.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(g[0].tagName);return{top:a.top+this.offset.relative.top*c+this.offset.parent.top*c-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():f?0:g.scrollTop())*c,left:a.left+this.offset.relative.left*c+this.offset.parent.left*c-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():f?0:g.scrollLeft())*c}},_generatePosition:function(m){var d,g,t=this.options,p=m.pageX,c=m.pageY,l="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&k.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(l[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(m.pageX-this.offset.click.left<this.containment[0]&&(p=this.containment[0]+this.offset.click.left),m.pageY-this.offset.click.top<this.containment[1]&&(c=this.containment[1]+this.offset.click.top),m.pageX-this.offset.click.left>this.containment[2]&&(p=this.containment[2]+this.offset.click.left),m.pageY-this.offset.click.top>this.containment[3]&&(c=this.containment[3]+this.offset.click.top)),t.grid&&(d=this.originalPageY+Math.round((c-this.originalPageY)/t.grid[1])*t.grid[1],c=this.containment?d-this.offset.click.top>=this.containment[1]&&d-this.offset.click.top<=this.containment[3]?d:d-this.offset.click.top>=this.containment[1]?d-t.grid[1]:d+t.grid[1]:d,g=this.originalPageX+Math.round((p-this.originalPageX)/t.grid[0])*t.grid[0],p=this.containment?g-this.offset.click.left>=this.containment[0]&&g-this.offset.click.left<=this.containment[2]?g:g-this.offset.click.left>=this.containment[0]?g-t.grid[0]:g+t.grid[0]:g)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():f?0:l.scrollTop()),left:p-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():f?0:l.scrollLeft())}},_rearrange:function(c,f,a,d){a?a[0].appendChild(this.placeholder[0]):f.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?f.item[0]:f.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var g=this.counter;this._delay(function(){g===this.counter&&this.refreshPositions(!d)})},_clear:function(c,f){function a(l,m,h){return function(e){h._trigger(l,e,m._uiHash(m))}}this.reverting=!1;var d,g=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(d in this._storedCSS){("auto"===this._storedCSS[d]||"static"===this._storedCSS[d])&&(this._storedCSS[d]="")}this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else{this.currentItem.show()}for(this.fromOutside&&!f&&g.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||f||g.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(f||(g.push(function(e){this._trigger("remove",e,this._uiHash())}),g.push(function(e){return function(h){e._trigger("receive",h,this._uiHash(this))}}.call(this,this.currentContainer)),g.push(function(e){return function(h){e._trigger("update",h,this._uiHash(this))}}.call(this,this.currentContainer)))),d=this.containers.length-1;d>=0;d--){f||g.push(a("deactivate",this,this.containers[d])),this.containers[d].containerCache.over&&(g.push(a("out",this,this.containers[d])),this.containers[d].containerCache.over=0)}if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,f||this._trigger("beforeStop",c,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!f){for(d=0;g.length>d;d++){g[d].call(this,c)}this._trigger("stop",c,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){k.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(c){var a=c||this;return{helper:a.helper,placeholder:a.placeholder||k([]),position:a.position,originalPosition:a.originalPosition,offset:a.positionAbs,item:a.currentItem,sender:c?c.element:null}}}),k.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var c=this._super(),a=this.element;return k.each(["min","max","step"],function(d,e){var f=a.attr(e);null!=f&&f.length&&(c[e]=f)}),c},_events:{keydown:function(a){this._start(a)&&this._keydown(a)&&a.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(a){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",a),void 0)},mousewheel:function(a,c){if(c){if(!this.spinning&&!this._start(a)){return !1}this._spin((c>0?1:-1)*this.options.step,a),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(a)},100),a.preventDefault()}},"mousedown .ui-spinner-button":function(d){function a(){var f=this.element[0]===k.ui.safeActiveElement(this.document[0]);f||(this.element.trigger("focus"),this.previous=c,this._delay(function(){this.previous=c}))}var c;c=this.element[0]===k.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),d.preventDefault(),a.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,a.call(this)}),this._start(d)!==!1&&this._repeat(null,k(d.currentTarget).hasClass("ui-spinner-up")?1:-1,d)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(a){return k(a.currentTarget).hasClass("ui-state-active")?this._start(a)===!1?!1:(this._repeat(null,k(a.currentTarget).hasClass("ui-spinner-up")?1:-1,a),void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(0.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(d){var a=this.options,c=k.ui.keyCode;switch(d.keyCode){case c.UP:return this._repeat(null,1,d),!0;case c.DOWN:return this._repeat(null,-1,d),!0;case c.PAGE_UP:return this._repeat(null,a.page,d),!0;case c.PAGE_DOWN:return this._repeat(null,-a.page,d),!0}return !1},_start:function(a){return this.spinning||this._trigger("start",a)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(c,d,a){c=c||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,d,a)},c),this._spin(d*this.options.step,a)},_spin:function(c,d){var a=this.value()||0;this.counter||(this.counter=1),a=this._adjustValue(a+c*this._increment(this.counter)),this.spinning&&this._trigger("spin",d,{value:a})===!1||(this._value(a),this.counter++)},_increment:function(c){var a=this.options.incremental;return a?k.isFunction(a)?a(c):Math.floor(c*c*c/50000-c*c/500+17*c/200+1):1},_precision:function(){var a=this._precisionOf(this.options.step);return null!==this.options.min&&(a=Math.max(a,this._precisionOf(this.options.min))),a},_precisionOf:function(c){var d=""+c,a=d.indexOf(".");return -1===a?0:d.length-a-1},_adjustValue:function(c){var f,a,d=this.options;return f=null!==d.min?d.min:0,a=c-f,a=Math.round(a/d.step)*d.step,c=f+a,c=parseFloat(c.toFixed(this._precision())),null!==d.max&&c>d.max?d.max:null!==d.min&&d.min>c?d.min:c},_stop:function(a){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",a))},_setOption:function(c,f){var a,d,g;return"culture"===c||"numberFormat"===c?(a=this._parse(this.element.val()),this.options[c]=f,this.element.val(this._format(a)),void 0):(("max"===c||"min"===c||"step"===c)&&"string"==typeof f&&(f=this._parse(f)),"icons"===c&&(d=this.buttons.first().find(".ui-icon"),this._removeClass(d,null,this.options.icons.up),this._addClass(d,null,f.up),g=this.buttons.last().find(".ui-icon"),this._removeClass(g,null,this.options.icons.down),this._addClass(g,null,f.down)),this._super(c,f),void 0)},_setOptionDisabled:function(a){this._super(a),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!a),this.element.prop("disabled",!!a),this.buttons.button(a?"disable":"enable")},_setOptions:w(function(a){this._super(a)}),_parse:function(a){return"string"==typeof a&&""!==a&&(a=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(a,10,this.options.culture):+a),""===a||isNaN(a)?null:a},_format:function(a){return""===a?"":window.Globalize&&this.options.numberFormat?Globalize.format(a,this.options.numberFormat,this.options.culture):a},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var a=this.value();return null===a?!1:a===this._adjustValue(a)},_value:function(c,d){var a;""!==c&&(a=this._parse(c),null!==a&&(d||(a=this._adjustValue(a)),c=this._format(a))),this.element.val(c),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:w(function(a){this._stepUp(a)}),_stepUp:function(a){this._start()&&(this._spin((a||1)*this.options.step),this._stop())},stepDown:w(function(a){this._stepDown(a)}),_stepDown:function(a){this._start()&&(this._spin((a||1)*-this.options.step),this._stop())},pageUp:w(function(a){this._stepUp((a||1)*this.options.page)}),pageDown:w(function(a){this._stepDown((a||1)*this.options.page)}),value:function(a){return arguments.length?(w(this._value).call(this,a),void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),k.uiBackCompat!==!1&&k.widget("ui.spinner",k.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),k.ui.spinner,k.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var a=/#.*$/;return function(f){var c,d;c=f.href.replace(a,""),d=location.href.replace(a,"");try{c=decodeURIComponent(c)}catch(g){}try{d=decodeURIComponent(d)}catch(g){}return f.hash.length>1&&c===d}}(),_create:function(){var c=this,a=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,a.collapsible),this._processTabs(),a.active=this._initialActive(),k.isArray(a.disabled)&&(a.disabled=k.unique(a.disabled.concat(k.map(this.tabs.filter(".ui-state-disabled"),function(d){return c.tabs.index(d)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(a.active):k(),this._refresh(),this.active.length&&this.load(a.active)},_initialActive:function(){var d=this.options.active,a=this.options.collapsible,c=location.hash.substring(1);return null===d&&(c&&this.tabs.each(function(e,f){return k(f).attr("aria-controls")===c?(d=e,!1):void 0}),null===d&&(d=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===d||-1===d)&&(d=this.tabs.length?0:!1)),d!==!1&&(d=this.tabs.index(this.tabs.eq(d)),-1===d&&(d=a?!1:0)),!a&&d===!1&&this.anchors.length&&(d=0),d},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):k()}},_tabKeydown:function(d){var a=k(k.ui.safeActiveElement(this.document[0])).closest("li"),c=this.tabs.index(a),f=!0;if(!this._handlePageNav(d)){switch(d.keyCode){case k.ui.keyCode.RIGHT:case k.ui.keyCode.DOWN:c++;break;case k.ui.keyCode.UP:case k.ui.keyCode.LEFT:f=!1,c--;break;case k.ui.keyCode.END:c=this.anchors.length-1;break;case k.ui.keyCode.HOME:c=0;break;case k.ui.keyCode.SPACE:return d.preventDefault(),clearTimeout(this.activating),this._activate(c),void 0;case k.ui.keyCode.ENTER:return d.preventDefault(),clearTimeout(this.activating),this._activate(c===this.options.active?!1:c),void 0;default:return}d.preventDefault(),clearTimeout(this.activating),c=this._focusNextTab(c,f),d.ctrlKey||d.metaKey||(a.attr("aria-selected","false"),this.tabs.eq(c).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",c)},this.delay))}},_panelKeydown:function(a){this._handlePageNav(a)||a.ctrlKey&&a.keyCode===k.ui.keyCode.UP&&(a.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(a){return a.altKey&&a.keyCode===k.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):a.altKey&&a.keyCode===k.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(d,a){function c(){return d>f&&(d=0),0>d&&(d=f),d}for(var f=this.tabs.length-1;-1!==k.inArray(c(),this.options.disabled);){d=a?d+1:d-1}return d},_focusNextTab:function(a,c){return a=this._findNextTab(a,c),this.tabs.eq(a).trigger("focus"),a},_setOption:function(a,c){return"active"===a?(this._activate(c),void 0):(this._super(a,c),"collapsible"===a&&(this._toggleClass("ui-tabs-collapsible",null,c),c||this.options.active!==!1||this._activate(0)),"event"===a&&this._setupEvents(c),"heightStyle"===a&&this._setupHeightStyle(c),void 0)},_sanitizeSelector:function(a){return a?a.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var c=this.options,a=this.tablist.children(":has(a[href])");c.disabled=k.map(a.filter(".ui-state-disabled"),function(d){return a.index(d)}),this._processTabs(),c.active!==!1&&this.anchors.length?this.active.length&&!k.contains(this.tablist[0],this.active[0])?this.tabs.length===c.disabled.length?(c.active=!1,this.active=k()):this._activate(this._findNextTab(Math.max(0,c.active-1),!1)):c.active=this.tabs.index(this.active):(c.active=!1,this.active=k()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var d=this,a=this.tabs,c=this.anchors,f=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(g){k(this).is(".ui-state-disabled")&&g.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){k(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return k("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=k(),this.anchors.each(function(m,t){var L,v,g,u=k(t).uniqueId().attr("id"),p=k(t).closest("li"),e=p.attr("aria-controls");d._isLocal(t)?(L=t.hash,g=L.substring(1),v=d.element.find(d._sanitizeSelector(L))):(g=p.attr("aria-controls")||k({}).uniqueId()[0].id,L="#"+g,v=d.element.find(L),v.length||(v=d._createPanel(g),v.insertAfter(d.panels[m-1]||d.tablist)),v.attr("aria-live","polite")),v.length&&(d.panels=d.panels.add(v)),e&&p.data("ui-tabs-aria-controls",e),p.attr({"aria-controls":g,"aria-labelledby":u}),v.attr("aria-labelledby",u)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),a&&(this._off(a.not(this.tabs)),this._off(c.not(this.anchors)),this._off(f.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(a){return k("<div>").attr("id",a).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(d){var a,c,f;for(k.isArray(d)&&(d.length?d.length===this.anchors.length&&(d=!0):d=!1),f=0;c=this.tabs[f];f++){a=k(c),d===!0||-1!==k.inArray(f,d)?(a.attr("aria-disabled","true"),this._addClass(a,null,"ui-state-disabled")):(a.removeAttr("aria-disabled"),this._removeClass(a,null,"ui-state-disabled"))}this.options.disabled=d,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,d===!0)},_setupEvents:function(c){var a={};c&&k.each(c.split(" "),function(d,f){a[f]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(d){d.preventDefault()}}),this._on(this.anchors,a),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(d){var a,c=this.element.parent();"fill"===d?(a=c.height(),a-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var g=k(this),f=g.css("position");"absolute"!==f&&"fixed"!==f&&(a-=g.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){a-=k(this).outerHeight(!0)}),this.panels.each(function(){k(this).height(Math.max(0,a-k(this).innerHeight()+k(this).height()))}).css("overflow","auto")):"auto"===d&&(a=0,this.panels.each(function(){a=Math.max(a,k(this).height("").height())}).height(a))},_eventHandler:function(u){var p=this.options,M=this.active,g=k(u.currentTarget),f=g.closest("li"),L=f[0]===M[0],d=L&&p.collapsible,t=d?k():this._getPanelForTab(f),m=M.length?this._getPanelForTab(M):k(),v={oldTab:M,oldPanel:m,newTab:d?k():f,newPanel:t};u.preventDefault(),f.hasClass("ui-state-disabled")||f.hasClass("ui-tabs-loading")||this.running||L&&!p.collapsible||this._trigger("beforeActivate",u,v)===!1||(p.active=d?!1:this.tabs.index(f),this.active=L?k():f,this.xhr&&this.xhr.abort(),m.length||t.length||k.error("jQuery UI Tabs: Mismatching fragment identifier."),t.length&&this.load(this.tabs.index(f),u),this._toggle(u,v))},_toggle:function(h,d){function f(){l.running=!1,l._trigger("activate",h,d)}function m(){l._addClass(d.newTab.closest("li"),"ui-tabs-active","ui-state-active"),c.length&&l.options.show?l._show(c,l.options.show,f):(c.show(),f())}var l=this,c=d.newPanel,g=d.oldPanel;this.running=!0,g.length&&this.options.hide?this._hide(g,this.options.hide,function(){l._removeClass(d.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),m()}):(this._removeClass(d.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),g.hide(),m()),g.attr("aria-hidden","true"),d.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),c.length&&g.length?d.oldTab.attr("tabIndex",-1):c.length&&this.tabs.filter(function(){return 0===k(this).attr("tabIndex")}).attr("tabIndex",-1),c.attr("aria-hidden","false"),d.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(d){var a,c=this._findActive(d);c[0]!==this.active[0]&&(c.length||(c=this.active),a=c.find(".ui-tabs-anchor")[0],this._eventHandler({target:a,currentTarget:a,preventDefault:k.noop}))},_findActive:function(a){return a===!1?k():this.tabs.eq(a)},_getIndex:function(a){return"string"==typeof a&&(a=this.anchors.index(this.anchors.filter("[href$='"+k.ui.escapeSelector(a)+"']"))),a},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){k.data(this,"ui-tabs-destroy")?k(this).remove():k(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var c=k(this),a=c.data("ui-tabs-aria-controls");a?c.attr("aria-controls",a).removeData("ui-tabs-aria-controls"):c.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(c){var a=this.options.disabled;a!==!1&&(void 0===c?a=!1:(c=this._getIndex(c),a=k.isArray(a)?k.map(a,function(d){return d!==c?d:null}):k.map(this.tabs,function(e,d){return d!==c?d:null})),this._setOptionDisabled(a))},disable:function(c){var a=this.options.disabled;if(a!==!0){if(void 0===c){a=!0}else{if(c=this._getIndex(c),-1!==k.inArray(c,a)){return}a=k.isArray(a)?k.merge([c],a).sort():[c]}this._setOptionDisabled(a)}},load:function(m,d){m=this._getIndex(m);var g=this,t=this.tabs.eq(m),p=t.find(".ui-tabs-anchor"),c=this._getPanelForTab(t),l={tab:t,panel:c},f=function(a,h){"abort"===h&&g.panels.stop(!1,!0),g._removeClass(t,"ui-tabs-loading"),c.removeAttr("aria-busy"),a===g.xhr&&delete g.xhr};this._isLocal(p[0])||(this.xhr=k.ajax(this._ajaxSettings(p,d,l)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(t,"ui-tabs-loading"),c.attr("aria-busy","true"),this.xhr.done(function(a,h,i){setTimeout(function(){c.html(a),g._trigger("load",d,l),f(i,h)},1)}).fail(function(a,h){setTimeout(function(){f(a,h)},1)})))},_ajaxSettings:function(d,a,c){var f=this;return{url:d.attr("href").replace(/#.*$/,""),beforeSend:function(g,h){return f._trigger("beforeLoad",a,k.extend({jqXHR:g,ajaxSettings:h},c))}}},_getPanelForTab:function(c){var a=k(c).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+a))}}),k.uiBackCompat!==!1&&k.widget("ui.tabs",k.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),k.ui.tabs,k.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var a=k(this).attr("title")||"";return k("<a>").text(a).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(d,a){var c=(d.attr("aria-describedby")||"").split(/\s+/);c.push(a),d.data("ui-tooltip-id",a).attr("aria-describedby",k.trim(c.join(" ")))},_removeDescribedBy:function(d){var a=d.data("ui-tooltip-id"),c=(d.attr("aria-describedby")||"").split(/\s+/),f=k.inArray(a,c);-1!==f&&c.splice(f,1),d.removeData("ui-tooltip-id"),c=k.trim(c.join(" ")),c?d.attr("aria-describedby",c):d.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=k("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=k([])},_setOption:function(d,a){var c=this;this._super(d,a),"content"===d&&k.each(this.tooltips,function(f,g){c._updateContent(g.element)})},_setOptionDisabled:function(a){this[a?"_disable":"_enable"]()},_disable:function(){var a=this;k.each(this.tooltips,function(c,d){var e=k.Event("blur");e.target=e.currentTarget=d.element[0],a.close(e,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var c=k(this);return c.is("[title]")?c.data("ui-tooltip-title",c.attr("title")).removeAttr("title"):void 0}))},_enable:function(){this.disabledTitles.each(function(){var a=k(this);a.data("ui-tooltip-title")&&a.attr("title",a.data("ui-tooltip-title"))}),this.disabledTitles=k([])},open:function(d){var a=this,c=k(d?d.target:this.element).closest(this.options.items);c.length&&!c.data("ui-tooltip-id")&&(c.attr("title")&&c.data("ui-tooltip-title",c.attr("title")),c.data("ui-tooltip-open",!0),d&&"mouseover"===d.type&&c.parents().each(function(){var g,f=k(this);f.data("ui-tooltip-open")&&(g=k.Event("blur"),g.target=g.currentTarget=this,a.close(g,!0)),f.attr("title")&&(f.uniqueId(),a.parents[this.id]={element:this,title:f.attr("title")},f.attr("title",""))}),this._registerCloseHandlers(d,c),this._updateContent(c,d))},_updateContent:function(c,f){var a,d=this.options.content,h=this,g=f?f.type:null;return"string"==typeof d||d.nodeType||d.jquery?this._open(f,c,d):(a=d.call(c[0],function(e){h._delay(function(){c.data("ui-tooltip-open")&&(f&&(f.type=g),this._open(f,c,e))})}),a&&this._open(f,c,a),void 0)},_open:function(t,m,v){function f(a){g.of=a,u.is(":hidden")||u.position(g)}var d,u,c,p,g=k.extend({},this.options.position);if(v){if(d=this._find(m)){return d.tooltip.find(".ui-tooltip-content").html(v),void 0}m.is("[title]")&&(t&&"mouseover"===t.type?m.attr("title",""):m.removeAttr("title")),d=this._tooltip(m),u=d.tooltip,this._addDescribedBy(m,u.attr("id")),u.find(".ui-tooltip-content").html(v),this.liveRegion.children().hide(),p=k("<div>").html(u.find(".ui-tooltip-content").html()),p.removeAttr("name").find("[name]").removeAttr("name"),p.removeAttr("id").find("[id]").removeAttr("id"),p.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:f}),f(t)):u.position(k.extend({of:m},this.options.position)),u.hide(),this._show(u,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(c=this.delayedShow=setInterval(function(){u.is(":visible")&&(f(g.of),clearInterval(c))},k.fx.interval)),this._trigger("open",t,{tooltip:u})}},_registerCloseHandlers:function(d,a){var c={keyup:function(g){if(g.keyCode===k.ui.keyCode.ESCAPE){var f=k.Event(g);f.currentTarget=a[0],this.close(f,!0)}}};a[0]!==this.element[0]&&(c.remove=function(){this._removeTooltip(this._find(a).tooltip)}),d&&"mouseover"!==d.type||(c.mouseleave="close"),d&&"focusin"!==d.type||(c.focusout="close"),this._on(!0,a,c)},close:function(d){var a,c=this,g=k(d?d.currentTarget:this.element),f=this._find(g);return f?(a=f.tooltip,f.closing||(clearInterval(this.delayedShow),g.data("ui-tooltip-title")&&!g.attr("title")&&g.attr("title",g.data("ui-tooltip-title")),this._removeDescribedBy(g),f.hiding=!0,a.stop(!0),this._hide(a,this.options.hide,function(){c._removeTooltip(k(this))}),g.removeData("ui-tooltip-open"),this._off(g,"mouseleave focusout keyup"),g[0]!==this.element[0]&&this._off(g,"remove"),this._off(this.document,"mousemove"),d&&"mouseleave"===d.type&&k.each(this.parents,function(l,h){k(h.element).attr("title",h.title),delete c.parents[l]}),f.closing=!0,this._trigger("close",d,{tooltip:a}),f.hiding||(f.closing=!1)),void 0):(g.removeData("ui-tooltip-open"),void 0)},_tooltip:function(d){var a=k("<div>").attr("role","tooltip"),c=k("<div>").appendTo(a),f=a.uniqueId().attr("id");return this._addClass(c,"ui-tooltip-content"),this._addClass(a,"ui-tooltip","ui-widget ui-widget-content"),a.appendTo(this._appendTo(d)),this.tooltips[f]={element:d,tooltip:a}},_find:function(a){var c=a.data("ui-tooltip-id");return c?this.tooltips[c]:null},_removeTooltip:function(a){a.remove(),delete this.tooltips[a.attr("id")]},_appendTo:function(a){var c=a.closest(".ui-front, dialog");return c.length||(c=this.document[0].body),c},_destroy:function(){var a=this;k.each(this.tooltips,function(c,d){var f=k.Event("blur"),e=d.element;f.target=f.currentTarget=e[0],a.close(f,!0),k("#"+c).remove(),e.data("ui-tooltip-title")&&(e.attr("title")||e.attr("title",e.data("ui-tooltip-title")),e.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),k.uiBackCompat!==!1&&k.widget("ui.tooltip",k.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var a=this._superApply(arguments);return this.options.tooltipClass&&a.tooltip.addClass(this.options.tooltipClass),a}}),k.ui.tooltip});(function(a){a.fn.idle=function(c){var g={idle:60000,events:"mousemove keydown mousedown touchstart",onIdle:function(){},onActive:function(){},onHide:function(){},onShow:function(){},keepTracking:true,startAtIdle:false,recurIdleCall:false},d=c.startAtIdle||false,i=!c.startAtIdle||true,e=a.extend({},g,c),h=null,b,f;a(this).on("idle:stop",{},function(j){a(this).off(e.events);e.keepTracking=false;b(h,e)});b=function(k,j){if(d){d=false;j.onActive.call()}clearTimeout(k);if(j.keepTracking){return f(j)}};f=function(j){var l=(j.recurIdleCall?setInterval:setTimeout),k;k=l(function(){d=true;j.onIdle.call()},j.idle);return k};return this.each(function(){h=f(e);a(this).on(e.events,function(j){h=b(h,e)});if(e.onShow||e.onHide){a(document).on("visibilitychange webkitvisibilitychange mozvisibilitychange msvisibilitychange",function(){if(document.hidden||document.webkitHidden||document.mozHidden||document.msHidden){if(i){i=false;e.onHide.call()}}else{if(!i){i=true;e.onShow.call()}}})}})}}(jQuery));if(jQuery){(function(a){a.extend(a.fn,{nimbleLoader:function(i,d){var f=a.extend(true,{},a.fn.nimbleLoader.settings);if(d){jQuery.extend(f,d)}function g(k,l){var j=new h(k,l);k.data("loader",j)}var b=function(){return this.each(function(){var k=a(this);if(k.data("loader")!==undefined){var j=k.data("loader");j.showLoading()}else{g(k,f);k.nimbleLoader("show")}})};var e=function(){return this.each(function(){var k=a(this);if(k.data("loader")!==undefined){var j=k.data("loader");j.hideLoading()}})};var c={show:b,hide:e};if(c[i]){return c[i].apply(this,Array.prototype.slice.call(arguments,1))}else{if(!i){return c.show.apply(this,Array.prototype.slice.call(arguments,1))}else{if(window&&window.console){console.log("[jquery.nimble.loader] -> no method '"+i+"' to apply ")}return false}}function h(k,z){var w;var q=z.debug;var v=z.speed;var t="";var u=0;var r=0;var p={isAnimated:0,callStack:[]};function A(){if(!w){var E=a("<div></div>").addClass(z.loaderClass);r=1;if(!z.overlay){w=E;if(z.loaderImgUrl){w.append("<img src='"+z.loaderImgUrl+"' />")}else{if(window&&window.console){console.log("[jquery.nimble.loader] -> loaderImgUrl should be defined when 'display' = 'inline'")}}if(k&&k.length){k.append(w)}}else{if(z.hasBackground){r++;var D=z.backgroundOpacity;var F=a("<div></div>").css({top:0,left:0,position:z.position,display:"none",height:"100%",width:"100%","background-color":z.backgroundColor,opacity:D,filter:"alpha(opacity="+Math.floor(100*D)+")"});w=F.add(E)}else{w=E}if(k&&k.length){k.prepend(w)}if(z.zIndex){w.css("z-index",z.zIndex)}if(z.position){var C=w.filter("."+z.loaderClass);C.css("position",z.position)}if(z.position==="absolute"){if(k.css("position")==="relative"||k.css("position")==="absolute"){t=k.css("position")}else{if(z.position==="absolute"&&(k[0].tagName).toLowerCase()!=="body"){k.css("position","relative")}}}}}}function B(E){if(window&&window.console){var F=k.attr("id");var C=k.attr("class");var D=[];if(F!=""){D.push("#"+F)}if(C!=""){D.push("."+C)}console.log("[jquery.nimble.loader] -> $("+D.join(" ")+").logCounter : "+E)}}function j(){var C=-1;if(u>0){u--;C=u}if(q){B(C)}return C}function o(){u++;if(q){B(u)}return u}function y(){if(p.callStack.length>0){if(p.isAnimated===0){var C=p.callStack.pop();if(C=="hideLoading"){s()}else{if(C=="showLoading"){l()}}}}}function m(){x("showLoading")}function n(){x("hideLoading")}function x(C){p.callStack.unshift(C);y()}function l(){if(o()==1){A();p.isAnimated=r;w.fadeIn(v,function(){p.isAnimated--;y()})}else{y()}}function s(){if(j()===0){p.isAnimated=r;w.fadeOut(v,function(){p.isAnimated--;a(this).remove();k.css("position",t);if(p.isAnimated===0){w=undefined}if(z.callbackOnHiding&&typeof(z.callbackOnHiding)==="function"){z.callbackOnHiding()}y()})}else{y()}}return{showLoading:m,hideLoading:n,init:A}}}});a.extend(a.fn.nimbleLoader,{settings:{overlay:true,position:"absolute",loaderImgUrl:"",loaderClass:"loading_bar",callbackOnHiding:function(){},speed:"fast",hasBackground:false,backgroundColor:"#ffffff",backgroundOpacity:0.5,debug:false},setSettings:function(b){a.extend(a.fn.nimbleLoader.settings,b)}})})(jQuery)};/*!
 * jQuery UI Touch Punch 0.2.2
 *
 * Copyright 2011, Dave Furfero
 * Dual licensed under the MIT or GPL Version 2 licenses.
 *
 * Depends:
 *  jquery.ui.widget.js
 *  jquery.ui.mouse.js
 */
(function(b){b.support.touch="ontouchend" in document;if(!b.support.touch){return}var c=b.ui.mouse.prototype,e=c._mouseInit,a;function d(g,h){if(g.originalEvent.touches.length>1){return}g.preventDefault();var i=g.originalEvent.changedTouches[0],f=document.createEvent("MouseEvents");f.initMouseEvent(h,true,true,window,1,i.screenX,i.screenY,i.clientX,i.clientY,false,false,false,false,0,null);g.target.dispatchEvent(f)}c._touchStart=function(g){var f=this;if(a||!f._mouseCapture(g.originalEvent.changedTouches[0])){return}a=true;f._touchMoved=false;d(g,"mouseover");d(g,"mousemove");d(g,"mousedown")};c._touchMove=function(f){if(!a){return}this._touchMoved=true;d(f,"mousemove")};c._touchEnd=function(f){if(!a){return}d(f,"mouseup");d(f,"mouseout");if(!this._touchMoved){d(f,"click")}a=false};c._mouseInit=function(){var f=this;f.element.bind("touchstart",b.proxy(f,"_touchStart")).bind("touchmove",b.proxy(f,"_touchMove")).bind("touchend",b.proxy(f,"_touchEnd"));e.call(f)}})(jQuery);var Fly={defined:[],autoInstance:[],instances:[],singletons:[],aliasList:[],typeList:[],paths:{assets:"../assets/js/Fly/"},namespace:function(d,a){var e=typeof d==="string"?d.split("."):d;var b=a||this;if(e[0]){var c=e.shift();b[c]=b[c]||{};return this.namespace(e,b[c])}return b},ns:function(b,a){return this.namespace(b,a)},addToDefined:function(a){this.defined.push(a)},addToAutoInstance:function(a){this.autoInstance.push(a)},addToInstances:function(a){this.instances.push(a)},addToSingletons:function(a){this.singletons.push(a)},addToList:function(b,a){this.typeList.push(b)},define:function(c,b){var a=this.namespace(c,this);var d=$.extend(true,a,b);this.addToDefined(c);if(d.instance=="auto"){this.addToAutoInstance(c);return this.create(c,b)}},get:function(c){var b=this;var d=Fly[c];if(!d){if(b.isNamespace(c)){var a=this.namespace(c,this);return a}}else{return d}},isNamespace:function(a){var b=a.split(".");if(b.length>1){return true}else{return false}},create:function(e,d,h,g){var a=this.namespace(e,this);var b={singleton:true};if(Object.keys(a).length===0){throw e+" class does not exit, class may not have loaded or script tag for the class file not added"}a=$.extend(true,b,a);var c={};if(a.singleton){if($.inArray(e,this.singletons)){c=$.extend(true,a,d)}else{console.log(e+" already exists");c=a;return c}}else{c=$.extend(true,{},a,d,c.extend)}c.ns=e;var f=e.split(".");c.className=f[f.length-1];if(a.singleton){this.addToSingletons(e)}else{this.addToInstances(e)}this.applyAlias(this,c,c.alias);this.applyTypes(this,c,c.type);if(c.di){}if(c.extend){c=this.applyExtend(c,c.extend)}Fly.callConstructor(c,d);if(h){h()}return c},getParts:function(a){return typeof a==="string"?a.split("."):a},loadTemplate:function(e,b,a,h){var g=Fly.getParts(e);var f=Fly.buildTplPath(g);console.log(f);var d=b.el?b.el+"-tpl":"tpl";var c='<div id="'+d+'"></div>';$("body").append(c);Fly.TplUtil.load({el:d,tplPath:f+b.tpl,callback:function(){if(h&&typeof h=="function"){h()}}})},applyTypes:function(a,b,c){if(!c){return}if(!a.type){a.type={}}a.type[c]=b},applyAlias:function(a,b,c){if(!c){return}if(a[c]&&a[c].className!=b.className){throw c+" - alias already exists, cannot be allowed"}else{a[c]=b;this.aliasList.push(c)}},updateAlias:function(b){var a=this;if(b.alias&&a[b.alias]){a[b.alias]=b}},applyDI:function(c,e){if(c.di){var e=c.di;for(var d in e){var b=e[d];var a=Fly.create(b.name,b.params);c[b.ref]=a}}},applyExtend:function(c,d){if($.inArray(d,this.typeList)){var b=Fly.type[d];var a=$.extend({},b);c=$.extend(true,{},a,c);if(c.init&&typeof c.init=="function"){c.init()}this.updateAlias(c);return c}else{throw"Extending "+d+"is unsupported class to extend which should have a alias (to be able to extend)"}return c},buildTplPath:function(c,b){b=b?b:"";if(c.length==1){return b}var a=c.shift();if(a){if(a=="fx"){b=Fly.paths.fx}else{b+=a+"/"}return Fly.buildTplPath(c,b)}return b},callConstructor:function(d,c){var a=this;if(!d.el||d.el=="body"){d.DOM=$("body")}else{if(d.el&&d.el.indexOf(".")>=0||d.el.indexOf("#")>=0){d.DOM=$(d.el)}else{d.DOM=$("#"+d.el)}}if(typeof d.constructor=="function"){try{d.constructor(c)}catch(b){throw"Error on calling constructor "+d.ns+" - Error - "+b}}a.applyDI(d)},widget:function(a){var b="widgets";if(a.name){b=b+"."+a.name}if(!a.extend){a.extend="Widget"}this.define(b,a);return this.create(b,a)},uuid:function(){var b=new Date().getTime();var a="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var d=(b+Math.random()*16)%16|0;b=Math.floor(b/16);return(e=="x"?d:(d&3|8)).toString(16)});return a},addClass:function(d,b,a){try{$(d).removeClass(b).addClass(a)}catch(c){}}};Fly.define("core.storage.CookieStorageManager",{singleton:true,instance:"auto",alias:"CookieStorageManager",constructor:function(){},setCookie:function(b,g,c,e){if(this.isCookieSupported()){if(typeof g!="undefined"&&g!=""&&g!=null){var f=new Date();if(e){f.setTime(f.getTime()+(e*60*1000))}else{f.setTime(f.getTime()+(c*24*60*60*1000))}var a="expires="+f.toUTCString();document.cookie=b+"="+g+";"+a+";path=/"}}},setSeoData:function(){if(!etsrc){if(!this.getCookie("etsrc")){if(whitelabel=="tp"){etsrc=Fly.Globals.SITE_NAME.SITE.TRIPPLANET}else{if(whitelabel=="tz"){etsrc=Fly.Globals.SITE_NAME.SITE.TRAVELZOO}else{etsrc=Fly.Globals.SITE_NAME.SITE.EXPLORETRIP}}this.setCookie("etsrc",etsrc,30)}}else{this.setCookie("etsrc",etsrc,30)}this.setCookie("etcmp",etcmp,1);this.setCookie("etadg",etadg,1);this.setCookie("etmed",etmed,1);this.setCookie("timeUUID",Math.floor(Date.now()/1000),1);this.setCookie("etLandingPage",etLandingPage,1);this.setCookie("etLandngTime",new Date(),1);this.setCookie("cid",cid,30);this.setCookie("tollFreeNumber",tollFreeNumber,30)},getCookie:function(d){if(this.isCookieSupported()){var b=d+"=";var f=decodeURIComponent(document.cookie);var a=f.split(";");var g="";for(var e=0;e<a.length;e++){var h=a[e];while(h.charAt(0)==" "){h=h.substring(1)}if(h.indexOf(b)==0){g=h.substring(b.length,h.length);break}}return g}},isCookieSupported:function(){if(typeof(document.cookie)!=="undefined"){return true}else{console.log("Cookies not supported ");return false}},removeCookie:function(a){if(this.isCookieSupported()){document.cookie=a+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"}}});Fly.define("core.storage.LocalStorage",{singleton:true,instance:"auto",alias:"LocalStorage",constructor:function(){},addJsonItem:function(a,b){try{var d=JSON.stringify(b);Fly.CookieStorageManager.setCookie(a,d,1)}catch(c){}},setItem:function(a,b){try{Fly.CookieStorageManager.setCookie(a,b,1)}catch(c){}},getJsonItem:function(a){try{var b=Fly.CookieStorageManager.getCookie(a);if(b){return JSON.parse(b)}return null}catch(c){}},getItem:function(a){try{var b=Fly.CookieStorageManager.getCookie(a);return b}catch(c){}},removeItem:function(a){}});Fly.define("core.storage.LocalStorageManager",{singleton:true,instance:"auto",alias:"LocalStorageManager",constructor:function(){try{if(localStorage){localStorage.setItem("test","test");this.storage=localStorage}else{var b=Fly.create("core.storage.LocalStorage");this.storage=b}}catch(a){var b=Fly.create("core.storage.LocalStorage");this.storage=b}},addJsonItem:function(a,b){try{this.storage.setItem(a,JSON.stringify(b))}catch(c){}},addItem:function(a,b){try{this.storage.setItem(a,b)}catch(c){}},getJsonItem:function(a){var b=this.storage.getItem(a);if(b){return JSON.parse(b)}return null},getItem:function(a){var b=this.storage.getItem(a);return b},listItems:function(){console.log(this.storage)},removeItem:function(a,b){this.storage.removeItem(a)},isLocalStorageSupported:function(){if(typeof(Storage)!=="undefined"){return true}else{console.log("local storage not supported ");return false}}});Fly.define("core.storage.SessionStorageManager",{singleton:true,instance:"auto",alias:"SessionStorageManager",constructor:function(){},addJsonItem:function(a,b){try{if(this.isSessionStorageSupported()){sessionStorage.setItem(a,JSON.stringify(b))}}catch(c){}},addItem:function(a,b){try{if(this.isSessionStorageSupported()){sessionStorage.setItem(a,b)}}catch(c){}},getJsonItem:function(a){try{if(this.isSessionStorageSupported()){var b=sessionStorage.getItem(a);return JSON.parse(b)}}catch(c){}},getItem:function(a){try{if(this.isSessionStorageSupported()){var b=sessionStorage.getItem(a);return b}}catch(c){}},listItems:function(){try{console.log(sessionStorage)}catch(a){}},removeItem:function(a,b){try{if(this.isSessionStorageSupported()){sessionStorage.removeItem(a)}}catch(c){}},isSessionStorageSupported:function(){try{if(typeof(Storage)!=="undefined"){return true}else{console.log("local storage not supported ");return false}}catch(a){}},addUserInfo:function(a){try{if(this.isSessionStorageSupported()){sessionStorage.setItem("FirstName",a.FirstName);sessionStorage.setItem("LastName",a.LastName);sessionStorage.setItem("Email",a.Email);sessionStorage.setItem("MobileNumber",a.MobileNumber);sessionStorage.setItem("Id",a.Id);sessionStorage.setItem("IsEmailVerified",a.IsEmailVerified);sessionStorage.setItem("IsMobileVerified",a.IsMobileVerified);sessionStorage.setItem("ReferalCode",a.ReferalCode);sessionStorage.setItem("SupportChannelId",a.SupportChannelId);sessionStorage.setItem("IsApproved",a.IsApproved);sessionStorage.setItem("AppID",a.AppID);sessionStorage.setItem("IsActive",a.IsActive);sessionStorage.setItem("AccessToken",a.AccessToken);sessionStorage.setItem("ProfilePicUrl",a.ProfilePicUrl);this.addJsonItem("UserInfo",a)}}catch(b){}}});var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(c,a,b){if(b.get||b.set){throw new TypeError("ES3 does not support getters and setters.")}c!=Array.prototype&&c!=Object.prototype&&(c[a]=b.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(a){return $jscomp.SYMBOL_PREFIX+(a||"")+$jscomp.symbolCounter_++};$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(b){var a=0;return $jscomp.iteratorPrototype(function(){return a<b.length?{done:!1,value:b[a++]}:{done:!0}})};$jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};$jscomp.array=$jscomp.array||{};$jscomp.iteratorFromArray=function(d,b){$jscomp.initSymbolIterator();d instanceof String&&(d+="");var c=0,a={next:function(){if(c<d.length){var e=c++;return{value:b(e,d[e]),done:!1}}a.next=function(){return{done:!0,value:void 0}};return a.next()}};a[Symbol.iterator]=function(){return a};return a};$jscomp.polyfill=function(f,c,d,a){if(c){d=$jscomp.global;f=f.split(".");for(a=0;a<f.length-1;a++){var b=f[a];b in d||(d[b]={});d=d[b]}f=f[f.length-1];a=d[f];c=c(a);c!=a&&null!=c&&$jscomp.defineProperty(d,f,{configurable:!0,writable:!0,value:c})}};$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(b){return b})}},"es6-impl","es3");var $jscomp$this=this;(function(b,a){"function"===typeof define&&define.amd?define([],a):"object"===typeof module&&module.exports?module.exports=a():b.anime=a()})(this,function(){function aB(e){if(!aA.col(e)){try{return document.querySelectorAll(e)}catch(h){}}}function aw(h,u){for(var q=h.length,e=2<=arguments.length?arguments[1]:void 0,p=[],r=0;r<q;r++){if(r in h){var m=h[r];u.call(e,m,r,h)&&p.push(m)}}return p}function ay(e){return e.reduce(function(h,m){return h.concat(aA.arr(m)?ay(m):m)},[])}function az(e){if(aA.arr(e)){return e}aA.str(e)&&(e=aB(e)||e);return e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e]}function av(e,h){return e.some(function(m){return m===h})}function ai(e){var m={},h;for(h in e){m[h]=e[h]}return m}function ah(h,p){var m=ai(h),e;for(e in h){m[e]=p.hasOwnProperty(e)?p[e]:h[e]}return m}function ar(h,p){var m=ai(h),e;for(e in p){m[e]=aA.und(h[e])?p[e]:h[e]}return m}function k(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(p,u,r,q){return u+u+r+r+q+q});var m=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);e=parseInt(m[1],16);var h=parseInt(m[2],16),m=parseInt(m[3],16);return"rgba("+e+","+h+","+m+",1)"}function j(h){function u(y,z,v){0>v&&(v+=1);1<v&&--v;return v<1/6?y+6*(z-y)*v:0.5>v?z:v<2/3?y+(z-y)*(2/3-v)*6:y}var q=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(h)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(h);h=parseInt(q[1])/360;var e=parseInt(q[2])/100,p=parseInt(q[3])/100,q=q[4]||1;if(0==e){p=e=h=p}else{var r=0.5>p?p*(1+e):p+e-p*e,m=2*p-r,p=u(m,r,h+1/3),e=u(m,r,h);h=u(m,r,h-1/3)}return"rgba("+255*p+","+255*e+","+255*h+","+q+")"}function at(e){if(e=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e)){return e[2]}}function i(e){if(-1<e.indexOf("translate")||"perspective"===e){return"px"}if(-1<e.indexOf("rotate")||-1<e.indexOf("skew")){return"deg"}}function ad(e,h){return aA.fnc(e)?e(h.target,h.id,h.total):e}function ag(e,h){if(h in e.style){return getComputedStyle(e).getPropertyValue(h.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())||"0"}}function ac(e,h){if(aA.dom(e)&&av(g,h)){return"transform"}if(aA.dom(e)&&(e.getAttribute(h)||aA.svg(e)&&e[h])){return"attribute"}if(aA.dom(e)&&"transform"!==h&&ag(e,h)){return"css"}if(null!=e[h]){return"object"}}function f(h,u){var q=i(u),q=-1<u.indexOf("scale")?1:0+q;h=h.style.transform;if(!h){return q}for(var e=[],p=[],r=[],m=/(\w+)\((.+?)\)/g;e=m.exec(h);){p.push(e[1]),r.push(e[2])}h=aw(r,function(y,v){return p[v]===u});return h.length?h[0]:q}function ab(e,h){switch(ac(e,h)){case"transform":return f(e,h);case"css":return ag(e,h);case"attribute":return e.getAttribute(h)}return e[h]||0}function G(h,p){var m=/^(\*=|\+=|-=)/.exec(h);if(!m){return h}var e=at(h)||0;p=parseFloat(p);h=parseFloat(h.replace(m[0],""));switch(m[0][0]){case"+":return p+h+e;case"-":return p-h+e;case"*":return p*h+e}}function af(e,h){return Math.sqrt(Math.pow(h.x-e.x,2)+Math.pow(h.y-e.y,2))}function x(h){h=h.points;for(var q=0,p,e=0;e<h.numberOfItems;e++){var m=h.getItem(e);0<e&&(q+=af(p,m));p=m}return q}function w(e){if(e.getTotalLength){return e.getTotalLength()}switch(e.tagName.toLowerCase()){case"circle":return 2*Math.PI*e.getAttribute("r");case"rect":return 2*e.getAttribute("width")+2*e.getAttribute("height");case"line":return af({x:e.getAttribute("x1"),y:e.getAttribute("y1")},{x:e.getAttribute("x2"),y:e.getAttribute("y2")});case"polyline":return x(e);case"polygon":var h=e.points;return x(e)+af(h.getItem(h.numberOfItems-1),h.getItem(0))}}function d(h,r){function p(u){u=void 0===u?0:u;return h.el.getPointAtLength(1<=r+u?r+u:0)}var e=p(),m=p(-1),q=p(1);switch(h.property){case"x":return e.x;case"y":return e.y;case"angle":return 180*Math.atan2(q.y-m.y,q.x-m.x)/Math.PI}}function t(h,q){var p=/-?\d*\.?\d+/g,e;e=aA.pth(h)?h.totalLength:h;if(aA.col(e)){if(aA.rgb(e)){var m=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);e=m?"rgba("+m[1]+",1)":e}else{e=aA.hex(e)?k(e):aA.hsl(e)?j(e):void 0}}else{m=(m=at(e))?e.substr(0,e.length-m.length):e,e=q&&!/\s/g.test(e)?m+q:m}e+="";return{original:e,numbers:e.match(p)?e.match(p).map(Number):[0],strings:aA.str(h)||q?e.split(p):[]}}function s(e){e=e?ay(aA.arr(e)?e.map(az):az(e)):[];return aw(e,function(m,p,h){return h.indexOf(m)===p})}function c(e){var h=s(e);return h.map(function(p,m){return{target:p,id:m,total:h.length}})}function al(h,p){var m=ai(p);if(aA.arr(h)){var e=h.length;2!==e||aA.obj(h[0])?aA.fnc(p.duration)||(m.duration=p.duration/e):h={value:h}}return az(h).map(function(r,q){q=q?0:p.delay;r=aA.obj(r)&&!aA.pth(r)?r:{value:r};aA.und(r.delay)&&(r.delay=q);return r}).map(function(q){return ar(q,m)})}function aC(h,q){var p={},e;for(e in h){var m=ad(h[e],q);aA.arr(m)&&(m=m.map(function(r){return ad(r,q)}),1===m.length&&(m=m[0]));p[e]=m}p.duration=parseFloat(p.duration);p.delay=parseFloat(p.delay);return p}function ao(e){return aA.arr(e)?ak.apply(this,e):o[e]}function am(e,m){var h;return e.tweens.map(function(p){p=aC(p,m);var u=p.value,v=ab(m.target,e.name),r=h?h.to.original:v,r=aA.arr(u)?u[0]:r,q=G(aA.arr(u)?u[1]:u,r),v=at(q)||at(r)||at(v);p.from=t(r,v);p.to=t(q,v);p.start=h?h.end:e.offset;p.end=p.start+p.delay+p.duration;p.easing=ao(p.easing);p.elasticity=(1000-Math.min(Math.max(p.elasticity,1),999))/1000;p.isPath=aA.pth(u);p.isColor=aA.col(p.from.original);p.isColor&&(p.round=1);return h=p})}function a(e,h){return aw(ay(e.map(function(m){return h.map(function(p){var r=ac(m.target,p.name);if(r){var q=am(p,m);p={type:r,property:p.name,animatable:m,tweens:q,duration:q[q.length-1].end,delay:q[0].delay}}else{p=void 0}return p})})),function(m){return !aA.und(m)})}function n(h,q,p,e){var m="delay"===h;return q.length?(m?Math.min:Math.max).apply(Math,q.map(function(r){return r[h]})):m?e.delay:p.offset+e.delay+e.duration}function ap(m){var v=ah(an,m),u=ah(l,m),h=c(m.targets),q=[],r=ar(v,u),p;for(p in m){r.hasOwnProperty(p)||"targets"===p||q.push({name:p,offset:r.offset,tweens:al(m[p],u)})}m=a(h,q);return ar(v,{children:[],animatables:h,animations:m,duration:n("duration",m,v,u),delay:n("delay",m,v,u)})}function ax(F){function D(){return window.Promise&&new Promise(function(e){return q=e})}function C(e){return z.reversed?z.duration-e:e}function E(V){for(var T=0,S={},R=z.animations,P=R.length;T<P;){var Q=R[T],N=Q.animatable,O=Q.tweens,K=O.length-1,M=O[K];K&&(M=aw(O,function(e){return V<e.end})[0]||M);for(var O=Math.min(Math.max(V-M.start-M.delay,0),M.duration)/M.duration,W=isNaN(O)?1:M.easing(O,M.elasticity),O=M.to.strings,J=M.round,K=[],L=void 0,L=M.to.numbers.length,X=0;X<L;X++){var U=void 0,U=M.to.numbers[X],I=M.from.numbers[X],U=M.isPath?d(M.value,W*U):I+W*(U-I);J&&(M.isColor&&2<X||(U=Math.round(U*J)/J));K.push(U)}if(M=O.length){for(L=O[0],W=0;W<M;W++){J=O[W+1],X=K[W],isNaN(X)||(L=J?L+(X+J):L+(X+" "))}}else{L=K[0]}b[Q.type](N.target,Q.property,L,S,N.id);Q.currentValue=L;T++}if(T=Object.keys(S).length){for(R=0;R<T;R++){ae||(ae=ag(document.body,"transform")?"transform":"-webkit-transform"),z.animatables[R].target.style[ae]=S[R].join(" ")}}z.currentTime=V;z.progress=V/z.duration*100}function A(e){if(z[e]){z[e](z)}}function B(){z.remaining&&!0!==z.remaining&&z.remaining--}function v(I){var p=z.duration,m=z.offset,K=m+z.delay,e=z.currentTime,J=z.reversed,h=C(I);if(z.children.length){var N=z.children,L=N.length;if(h>=z.currentTime){for(var M=0;M<L;M++){N[M].seek(h)}}else{for(;L--;){N[L].seek(h)}}}if(h>=K||!p){z.began||(z.began=!0,A("begin")),A("run")}if(h>m&&h<p){E(h)}else{if(h<=m&&0!==e&&(E(0),J&&B()),h>=p&&e!==p||!p){E(p),J||B()}}A("update");I>=p&&(z.remaining?(H=y,"alternate"===z.direction&&(z.reversed=!z.reversed)):(z.pause(),z.completed||(z.completed=!0,A("complete"),"Promise" in window&&(q(),r=D()))),u=0)}F=void 0===F?{}:F;var y,H,u=0,q=null,r=D(),z=ap(F);z.reset=function(){var e=z.direction,h=z.loop;z.currentTime=0;z.progress=0;z.paused=!0;z.began=!1;z.completed=!1;z.reversed="reverse"===e;z.remaining="alternate"===e&&1===h?2:h;E(0);for(e=z.children.length;e--;){z.children[e].reset()}};z.tick=function(e){y=e;H||(H=y);v((u+y-H)*ax.speed)};z.seek=function(e){v(C(e))};z.pause=function(){var e=au.indexOf(z);-1<e&&au.splice(e,1);z.paused=!0};z.play=function(){z.paused&&(z.paused=!1,H=0,u=C(z.currentTime),au.push(z),aj||aq())};z.reverse=function(){z.reversed=!z.reversed;H=0;u=C(z.currentTime)};z.restart=function(){z.pause();z.reset();z.play()};z.finished=r;z.reset();z.autoplay&&z.play();return z}var an={update:void 0,begin:void 0,run:void 0,complete:void 0,loop:1,direction:"normal",autoplay:!0,offset:0},l={duration:1000,delay:0,easing:"easeOutElastic",elasticity:500,round:0},g="translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "),ae,aA={arr:function(e){return Array.isArray(e)},obj:function(e){return -1<Object.prototype.toString.call(e).indexOf("Object")},pth:function(e){return aA.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},dom:function(e){return e.nodeType||aA.svg(e)},str:function(e){return"string"===typeof e},fnc:function(e){return"function"===typeof e},und:function(e){return"undefined"===typeof e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return aA.hex(e)||aA.rgb(e)||aA.hsl(e)}},ak=function(){function e(m,p,h){return(((1-3*h+3*p)*m+(3*h-6*p))*m+3*p)*m}return function(u,r,h,p){if(0<=u&&1>=u&&0<=h&&1>=h){var q=new Float32Array(11);if(u!==r||h!==p){for(var m=0;11>m;++m){q[m]=e(0.1*m,u,h)}}return function(z){if(u===r&&h===p){return z}if(0===z){return 0}if(1===z){return 1}for(var A=0,y=1;10!==y&&q[y]<=z;++y){A+=0.1}--y;var y=A+(z-q[y])/(q[y+1]-q[y])*0.1,C=3*(1-3*h+3*u)*y*y+2*(3*h-6*u)*y+3*u;if(0.001<=C){for(A=0;4>A;++A){C=3*(1-3*h+3*u)*y*y+2*(3*h-6*u)*y+3*u;if(0===C){break}var v=e(y,u,h)-z,y=y-v/C}z=y}else{if(0===C){z=y}else{var y=A,A=A+0.1,B=0;do{v=y+(A-y)/2,C=e(v,u,h)-z,0<C?A=v:y=v}while(1e-7<Math.abs(C)&&10>++B);z=v}}return e(z,r,p)}}}}(),o=function(){function m(v,e){return 0===v||1===v?v:-Math.pow(2,10*(v-1))*Math.sin(2*(v-1-e/(2*Math.PI)*Math.asin(1))*Math.PI/e)}var u="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),r={In:[[0.55,0.085,0.68,0.53],[0.55,0.055,0.675,0.19],[0.895,0.03,0.685,0.22],[0.755,0.05,0.855,0.06],[0.47,0,0.745,0.715],[0.95,0.05,0.795,0.035],[0.6,0.04,0.98,0.335],[0.6,-0.28,0.735,0.045],m],Out:[[0.25,0.46,0.45,0.94],[0.215,0.61,0.355,1],[0.165,0.84,0.44,1],[0.23,1,0.32,1],[0.39,0.575,0.565,1],[0.19,1,0.22,1],[0.075,0.82,0.165,1],[0.175,0.885,0.32,1.275],function(e,v){return 1-m(1-e,v)}],InOut:[[0.455,0.03,0.515,0.955],[0.645,0.045,0.355,1],[0.77,0,0.175,1],[0.86,0,0.07,1],[0.445,0.05,0.55,0.95],[1,0,0,1],[0.785,0.135,0.15,0.86],[0.68,-0.55,0.265,1.55],function(e,v){return 0.5>e?m(2*e,v)/2:1-m(-2*e+2,v)/2}]},h={linear:ak(0.25,0.25,0.75,0.75)},p={},q;for(q in r){p.type=q,r[p.type].forEach(function(e){return function(y,v){h["ease"+e.type+u[v]]=aA.fnc(y)?y:ak.apply($jscomp$this,y)}}(p)),p={type:p.type}}return h}(),b={css:function(e,m,h){return e.style[m]=h},attribute:function(e,m,h){return e.setAttribute(m,h)},object:function(e,m,h){return e[m]=h},transform:function(h,q,p,e,m){e[m]||(e[m]=[]);e[m].push(q+"("+p+")")}},au=[],aj=0,aq=function(){function e(){aj=requestAnimationFrame(h)}function h(q){var m=au.length;if(m){for(var p=0;p<m;){au[p]&&au[p].tick(q),p++}e()}else{cancelAnimationFrame(aj),aj=0}}return e}();ax.version="2.2.0";ax.speed=1;ax.running=au;ax.remove=function(h){h=s(h);for(var q=au.length;q--;){for(var p=au[q],e=p.animations,m=e.length;m--;){av(h,e[m].animatable.target)&&(e.splice(m,1),e.length||p.pause())}}};ax.getValue=ab;ax.path=function(h,p){var m=aA.str(h)?aB(h)[0]:h,e=p||100;return function(q){return{el:m,property:q,totalLength:w(m)*(e/100)}}};ax.setDashoffset=function(e){var h=w(e);e.setAttribute("stroke-dasharray",h);return h};ax.bezier=ak;ax.easings=o;ax.timeline=function(e){var h=ax(e);h.pause();h.duration=0;h.add=function(m){h.children.forEach(function(p){p.began=!0;p.completed=!0});az(m).forEach(function(p){var r=ar(p,ah(l,e||{}));r.targets=r.targets||e.targets;p=h.duration;var q=r.offset;r.autoplay=!1;r.direction=h.direction;r.offset=aA.und(q)?p:G(q,p);h.began=!0;h.completed=!0;h.seek(r.offset);r=ax(r);r.began=!0;r.completed=!0;r.duration>p&&(h.duration=r.duration);h.children.push(r)});h.seek(0);h.reset();h.autoplay&&h.restart();return h};return h};ax.random=function(e,h){return Math.floor(Math.random()*(h-e+1))+e};return ax});/*! FlyEx app.js
 * ================
 * Main JS application file for FlyEx v2. This file
 * should be included in all pages. It controls some layout
 * options and implements exclusive FlyEx plugins.
 *
 * @Author  FlyEx
 * @Support <http://www.almsaeedstudio.com>
 * @Email   <support@flyex.com>
 * @version 2.3.7
 * @license MIT <http://opensource.org/licenses/MIT>
 */
;function _init(){$.FlyEx.layout={activate:function(){var b=this;b.fix(),b.fixSidebar(),$(window,".wrapper").resize(function(){b.fix(),b.fixSidebar()})},fix:function(){var g=$(".main-header").outerHeight()+$(".main-footer").outerHeight(),f=$(window).height(),j=$(".sidebar").height();if($("body").hasClass("fixed")){$(".content-wrapper, .right-side").css("min-height",f-$(".main-footer").outerHeight())}else{var i;f>=j?($(".content-wrapper, .right-side").css("min-height",f-g),i=f-g):($(".content-wrapper, .right-side").css("min-height",j),i=j);var h=$($.FlyEx.options.controlSidebarOptions.selector);"undefined"!=typeof h&&h.height()>i&&$(".content-wrapper, .right-side").css("min-height",h.height())}},fixSidebar:function(){return $("body").hasClass("fixed")?("undefined"==typeof $.fn.slimScroll&&window.console&&window.console.error("Error: the fixed layout requires the slimscroll plugin!"),void ($.FlyEx.options.sidebarSlimScroll&&"undefined"!=typeof $.fn.slimScroll&&($(".sidebar").slimScroll({destroy:!0}).height("auto"),$(".sidebar").slimscroll({height:$(window).height()-$(".main-header").height()+"px",color:"rgba(0,0,0,0.2)",size:"3px"})))):void ("undefined"!=typeof $.fn.slimScroll&&$(".sidebar").slimScroll({destroy:!0}).height("auto"))}},$.FlyEx.pushMenu={activate:function(d){var c=$.FlyEx.options.screenSizes;$(document).on("click",d,function(b){b.preventDefault(),$(window).width()>c.sm-1?$("body").hasClass("sidebar-collapse")?$("body").removeClass("sidebar-collapse").trigger("expanded.pushMenu"):$("body").addClass("sidebar-collapse").trigger("collapsed.pushMenu"):$("body").hasClass("sidebar-open")?$("body").removeClass("sidebar-open").removeClass("sidebar-collapse").trigger("collapsed.pushMenu"):$("body").addClass("sidebar-open").trigger("expanded.pushMenu")}),$(".content-wrapper").click(function(){$(window).width()<=c.sm-1&&$("body").hasClass("sidebar-open")&&$("body").removeClass("sidebar-open")}),($.FlyEx.options.sidebarExpandOnHover||$("body").hasClass("fixed")&&$("body").hasClass("sidebar-mini"))&&this.expandOnHover()},expandOnHover:function(){var d=this,c=$.FlyEx.options.screenSizes.sm-1;$(".main-sidebar").hover(function(){$("body").hasClass("sidebar-mini")&&$("body").hasClass("sidebar-collapse")&&$(window).width()>c&&d.expand()},function(){$("body").hasClass("sidebar-mini")&&$("body").hasClass("sidebar-expanded-on-hover")&&$(window).width()>c&&d.collapse()})},expand:function(){$("body").removeClass("sidebar-collapse").addClass("sidebar-expanded-on-hover")},collapse:function(){$("body").hasClass("sidebar-expanded-on-hover")&&$("body").removeClass("sidebar-expanded-on-hover").addClass("sidebar-collapse")}},$.FlyEx.tree=function(e){var d=this,f=$.FlyEx.options.animationSpeed;$(document).off("click",e+" li a").on("click",e+" li a",function(b){var l=$(this),k=l.next();if(k.is(".treeview-menu")&&k.is(":visible")&&!$("body").hasClass("sidebar-collapse")){k.slideUp(f,function(){k.removeClass("menu-open")}),k.parent("li").removeClass("active")}else{if(k.is(".treeview-menu")&&!k.is(":visible")){var j=l.parents("ul").first(),i=j.find("ul:visible").slideUp(f);i.removeClass("menu-open");var c=l.parent("li");k.slideDown(f,function(){k.addClass("menu-open"),j.find("li.active").removeClass("active"),c.addClass("active"),d.layout.fix()})}}k.is(".treeview-menu")&&b.preventDefault()})},$.FlyEx.controlSidebar={activate:function(){var g=this,f=$.FlyEx.options.controlSidebarOptions,j=$(f.selector),i=$(f.toggleBtnSelector);i.on("click",function(a){a.preventDefault(),j.hasClass("control-sidebar-open")||$("body").hasClass("control-sidebar-open")?g.close(j,f.slide):g.open(j,f.slide)});var h=$(".control-sidebar-bg");g._fix(h),$("body").hasClass("fixed")?g._fixForFixed(j):$(".content-wrapper, .right-side").height()<j.height()&&g._fixForContent(j)},open:function(d,c){c?d.addClass("control-sidebar-open"):$("body").addClass("control-sidebar-open")},close:function(d,c){c?d.removeClass("control-sidebar-open"):$("body").removeClass("control-sidebar-open")},_fix:function(d){var c=this;if($("body").hasClass("layout-boxed")){if(d.css("position","absolute"),d.height($(".wrapper").height()),c.hasBindedResize){return}$(window).resize(function(){c._fix(d)}),c.hasBindedResize=!0}else{d.css({position:"fixed",height:"auto"})}},_fixForFixed:function(b){b.css({position:"fixed","max-height":"100%",overflow:"auto","padding-bottom":"50px"})},_fixForContent:function(b){$(".content-wrapper, .right-side").css("min-height",b.height())}},$.FlyEx.boxWidget={selectors:$.FlyEx.options.boxWidgetOptions.boxWidgetSelectors,icons:$.FlyEx.options.boxWidgetOptions.boxWidgetIcons,animationSpeed:$.FlyEx.options.animationSpeed,activate:function(d){var c=this;d||(d=document),$(d).on("click",c.selectors.collapse,function(b){b.preventDefault(),c.collapse($(this))}),$(d).on("click",c.selectors.remove,function(b){b.preventDefault(),c.remove($(this))})},collapse:function(f){var e=this,h=f.parents(".box").first(),g=h.find("> .box-body, > .box-footer, > form  >.box-body, > form > .box-footer");h.hasClass("collapsed-box")?(f.children(":first").removeClass(e.icons.open).addClass(e.icons.collapse),g.slideDown(e.animationSpeed,function(){h.removeClass("collapsed-box")})):(f.children(":first").removeClass(e.icons.collapse).addClass(e.icons.open),g.slideUp(e.animationSpeed,function(){h.addClass("collapsed-box")}))},remove:function(d){var c=d.parents(".box").first();c.slideUp(this.animationSpeed)}}}if("undefined"==typeof jQuery){throw new Error("FlyEx requires jQuery")}$.FlyEx={},$.FlyEx.options={navbarMenuSlimscroll:!0,navbarMenuSlimscrollWidth:"3px",navbarMenuHeight:"200px",animationSpeed:500,sidebarToggleSelector:"[data-toggle='offcanvas']",sidebarPushMenu:!0,sidebarSlimScroll:!0,sidebarExpandOnHover:!1,enableBoxRefresh:!0,enableBSToppltip:!0,BSTooltipSelector:"[data-toggle='tooltip']",enableFastclick:!1,enableControlSidebar:!0,controlSidebarOptions:{toggleBtnSelector:"[data-toggle='control-sidebar']",selector:".control-sidebar",slide:!0},enableBoxWidget:!0,boxWidgetOptions:{boxWidgetIcons:{collapse:"fa-minus",open:"fa-plus",remove:"fa-times"},boxWidgetSelectors:{remove:'[data-widget="remove"]',collapse:'[data-widget="collapse"]'}},directChat:{enable:!0,contactToggleSelector:'[data-widget="chat-pane-toggle"]'},colors:{lightBlue:"#df1e17",red:"#f56954",green:"#00a65a",aqua:"#00c0ef",yellow:"#f39c12",blue:"#0073b7",navy:"#001F3F",teal:"#39CCCC",olive:"#3D9970",lime:"#01FF70",orange:"#FF851B",fuchsia:"#F012BE",purple:"#8E24AA",maroon:"#D81B60",black:"#222222",gray:"#d2d6de"},screenSizes:{xs:480,sm:768,md:992,lg:1200}},$(function(){$("body").removeClass("hold-transition"),"undefined"!=typeof FlyExOptions&&$.extend(!0,$.FlyEx.options,FlyExOptions);var b=$.FlyEx.options;_init(),$.FlyEx.layout.activate(),$.FlyEx.tree(".sidebar"),b.enableControlSidebar&&$.FlyEx.controlSidebar.activate(),b.navbarMenuSlimscroll&&"undefined"!=typeof $.fn.slimscroll&&$(".navbar .menu").slimscroll({height:b.navbarMenuHeight,alwaysVisible:!1,size:b.navbarMenuSlimscrollWidth}).css("width","100%"),b.sidebarPushMenu&&$.FlyEx.pushMenu.activate(b.sidebarToggleSelector),b.enableBSToppltip&&$("body").tooltip({selector:b.BSTooltipSelector}),b.enableBoxWidget&&$.FlyEx.boxWidget.activate(),b.enableFastclick&&"undefined"!=typeof FastClick&&FastClick.attach(document.body),b.directChat.enable&&$(document).on("click",b.directChat.contactToggleSelector,function(){var c=$(this).parents(".direct-chat").first();c.toggleClass("direct-chat-contacts-open")}),$('.btn-group[data-toggle="btn-toggle"]').each(function(){var c=$(this);$(this).find(".btn").on("click",function(a){c.find(".btn.active").removeClass("active"),$(this).addClass("active"),a.preventDefault()})})}),function(b){b.fn.boxRefresh=function(a){function j(c){c.append(g),h.onLoadStart.call(c)}function i(c){c.find(g).remove(),h.onLoadDone.call(c)}var h=b.extend({trigger:".refresh-btn",source:"",onLoadStart:function(c){return c},onLoadDone:function(c){return c}},a),g=b('<div class="overlay"><div class="fa fa-refresh fa-spin"></div></div>');return this.each(function(){if(""===h.source){return void (window.console&&window.console.log("Please specify a source first - boxRefresh()"))}var c=b(this),d=c.find(h.trigger).first();d.on("click",function(e){e.preventDefault(),j(c),c.find(".box-body").load(h.source,function(){i(c)})})})}}(jQuery),function(b){b.fn.activateBox=function(){b.FlyEx.boxWidget.activate(this)},b.fn.toggleBox=function(){var a=b(b.FlyEx.boxWidget.selectors.collapse,this);b.FlyEx.boxWidget.collapse(a)},b.fn.removeBox=function(){var a=b(b.FlyEx.boxWidget.selectors.remove,this);b.FlyEx.boxWidget.remove(a)}}(jQuery),function(b){b.fn.todolist=function(a){var d=b.extend({onCheck:function(c){return c},onUncheck:function(c){return c}},a);return this.each(function(){"undefined"!=typeof b.fn.iCheck?(b("input",this).on("ifChecked",function(){var c=b(this).parents("li").first();c.toggleClass("done"),d.onCheck.call(c)}),b("input",this).on("ifUnchecked",function(){var c=b(this).parents("li").first();c.toggleClass("done"),d.onUncheck.call(c)})):b("input",this).on("change",function(){var c=b(this).parents("li").first();c.toggleClass("done"),b("input",c).is(":checked")?d.onCheck.call(c):d.onUncheck.call(c)})})}}(jQuery);/*!
 * Datepicker for Bootstrap v1.4.1 (https://github.com/eternicode/bootstrap-datepicker)
 *
 * Copyright 2012 Stefan Petre
 * Improvements by Andrew Rowls
 * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
 */
;!function(H,G){function F(){return new Date(Date.UTC.apply(Date,arguments))}function E(){var b=new Date;return F(b.getFullYear(),b.getMonth(),b.getDate())}function D(d,c){return d.getUTCFullYear()===c.getUTCFullYear()&&d.getUTCMonth()===c.getUTCMonth()&&d.getUTCDate()===c.getUTCDate()}function C(b){return function(){return this[b].apply(this,arguments)}}function B(a,p){function o(d,c){return c.toLowerCase()}var n,m=H(a).data(),l={},k=new RegExp("^"+p.toLowerCase()+"([A-Z])");p=new RegExp("^"+p.toLowerCase());for(var j in m){p.test(j)&&(n=j.replace(k,o),l[n]=m[j])}return l}function A(a){var f={};if(s[a]||(a=a.split("-")[0],s[a])){var e=s[a];return H.each(t,function(d,c){c in e&&(f[c]=e[c])}),f}}var z=function(){var a={get:function(b){return this.slice(b)[0]},contains:function(f){for(var e=f&&f.valueOf(),h=0,g=this.length;g>h;h++){if(this[h].valueOf()===e){return h}}return -1},remove:function(b){this.splice(b,1)},replace:function(c){c&&(H.isArray(c)||(c=[c]),this.clear(),this.push.apply(this,c))},clear:function(){this.length=0},copy:function(){var b=new z;return b.replace(this),b}};return function(){var b=[];return b.push.apply(b,arguments),H.extend(b,a),b}}(),y=function(a,d){this._process_options(d),this.dates=new z,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=H(a),this.isInline=!1,this.isInput=this.element.is("input"),this.component=this.element.hasClass("date")?this.element.find(".add-on, .input-group-addon, .btn"):!1,this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.picker=H(r.template),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("tfoot .today, tfoot .clear").attr("colspan",function(e,c){return parseInt(c)+1}),this._allow_update=!1,this.setStartDate(this._o.startDate),this.setEndDate(this._o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.setDatesDisabled(this.o.datesDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};y.prototype={constructor:y,_process_options:function(K){this._o=H.extend({},this._o,K);var J=this.o=H.extend({},this._o),I=J.language;switch(s[I]||(I=I.split("-")[0],s[I]||(I=u.language)),J.language=I,J.startView){case 2:case"decade":J.startView=2;break;case 1:case"year":J.startView=1;break;default:J.startView=0}switch(J.minViewMode){case 1:case"months":J.minViewMode=1;break;case 2:case"years":J.minViewMode=2;break;default:J.minViewMode=0}J.startView=Math.max(J.startView,J.minViewMode),J.multidate!==!0&&(J.multidate=Number(J.multidate)||!1,J.multidate!==!1&&(J.multidate=Math.max(0,J.multidate))),J.multidateSeparator=String(J.multidateSeparator),J.weekStart%=7,J.weekEnd=(J.weekStart+6)%7;var q=r.parseFormat(J.format);if(J.startDate!==-(1/0)&&(J.startDate?J.startDate instanceof Date?J.startDate=this._local_to_utc(this._zero_time(J.startDate)):J.startDate=r.parseDate(J.startDate,q,J.language):J.startDate=-(1/0)),J.endDate!==1/0&&(J.endDate?J.endDate instanceof Date?J.endDate=this._local_to_utc(this._zero_time(J.endDate)):J.endDate=r.parseDate(J.endDate,q,J.language):J.endDate=1/0),J.daysOfWeekDisabled=J.daysOfWeekDisabled||[],H.isArray(J.daysOfWeekDisabled)||(J.daysOfWeekDisabled=J.daysOfWeekDisabled.split(/[,\s]*/)),J.daysOfWeekDisabled=H.map(J.daysOfWeekDisabled,function(e){return parseInt(e,10)}),J.datesDisabled=J.datesDisabled||[],!H.isArray(J.datesDisabled)){var p=[];p.push(r.parseDate(J.datesDisabled,q,J.language)),J.datesDisabled=p}J.datesDisabled=H.map(J.datesDisabled,function(e){return r.parseDate(e,q,J.language)});var n=String(J.orientation).toLowerCase().split(/\s+/g),d=J.orientation.toLowerCase();if(n=H.grep(n,function(e){return/^auto|left|right|top|bottom$/.test(e)}),J.orientation={x:"auto",y:"auto"},d&&"auto"!==d){if(1===n.length){switch(n[0]){case"top":case"bottom":J.orientation.y=n[0];break;case"left":case"right":J.orientation.x=n[0]}}else{d=H.grep(n,function(e){return/^left|right$/.test(e)}),J.orientation.x=d[0]||"auto",d=H.grep(n,function(e){return/^top|bottom$/.test(e)}),J.orientation.y=d[0]||"auto"}}else{}if(J.defaultViewDate){var c=J.defaultViewDate.year||(new Date).getFullYear(),b=J.defaultViewDate.month||0,a=J.defaultViewDate.day||1;J.defaultViewDate=F(c,b,a)}else{J.defaultViewDate=E()}J.showOnFocus=J.showOnFocus!==G?J.showOnFocus:!0},_events:[],_secondaryEvents:[],_applyEvents:function(b){for(var j,i,h,g=0;g<b.length;g++){j=b[g][0],2===b[g].length?(i=G,h=b[g][1]):3===b[g].length&&(i=b[g][1],h=b[g][2]),j.on(h,i)}},_unapplyEvents:function(b){for(var j,i,h,g=0;g<b.length;g++){j=b[g][0],2===b[g].length?(h=G,i=b[g][1]):3===b[g].length&&(h=b[g][1],i=b[g][2]),j.off(i,h)}},_buildEvents:function(){var a={keyup:H.proxy(function(c){-1===H.inArray(c.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:H.proxy(this.keydown,this)};this.o.showOnFocus===!0&&(a.focus=H.proxy(this.show,this)),this.isInput?this._events=[[this.element,a]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),a],[this.component,{click:H.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:H.proxy(this.show,this)}]],this._events.push([this.element,"*",{blur:H.proxy(function(b){this._focused_from=b.target},this)}],[this.element,{blur:H.proxy(function(b){this._focused_from=b.target},this)}]),this._secondaryEvents=[[this.picker,{click:H.proxy(this.click,this)}],[H(window),{resize:H.proxy(this.place,this)}],[H(document),{"mousedown touchstart":H.proxy(function(b){this.element.is(b.target)||this.element.find(b.target).length||this.picker.is(b.target)||this.picker.find(b.target).length||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(a,h){var g=h||this.dates.get(-1),f=this._utc_to_local(g);this.element.trigger({type:a,date:f,dates:H.map(this.dates,this._utc_to_local),format:H.proxy(function(e,d){0===arguments.length?(e=this.dates.length-1,d=this.o.format):"string"==typeof e&&(d=e,e=this.dates.length-1),d=d||this.o.format;var i=this.dates.get(e);return r.formatDate(i,d,this.o.language)},this)})},show:function(){return this.element.attr("readonly")&&this.o.enableOnReadonly===!1?void 0:(this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart" in document)&&this.o.disableTouchKeyboard&&H(this.element).blur(),this)},hide:function(){return this.isInline?this:this.picker.is(":visible")?(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"),this):this},remove:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},_utc_to_local:function(b){return b&&new Date(b.getTime()+60000*b.getTimezoneOffset())},_local_to_utc:function(b){return b&&new Date(b.getTime()-60000*b.getTimezoneOffset())},_zero_time:function(b){return b&&new Date(b.getFullYear(),b.getMonth(),b.getDate())},_zero_utc_time:function(b){return b&&new Date(Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()))},getDates:function(){return H.map(this.dates,this._utc_to_local)},getUTCDates:function(){return H.map(this.dates,function(b){return new Date(b)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var b=this.dates.get(-1);return"undefined"!=typeof b?new Date(b):null},clearDates:function(){var b;this.isInput?b=this.element:this.component&&(b=this.element.find("input")),b&&b.val("").change(),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){var a=H.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,a),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var a=H.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,H.map(a,this._utc_to_local)),this._trigger("changeDate"),this.setValue(),this},setDate:C("setDates"),setUTCDate:C("setUTCDates"),setValue:function(){var b=this.getFormattedDate();return this.isInput?this.element.val(b).change():this.component&&this.element.find("input").val(b).change(),this},getFormattedDate:function(b){b===G&&(b=this.o.format);var a=this.o.language;return H.map(this.dates,function(c){return r.formatDate(c,b,a)}).join(this.o.multidateSeparator)},setStartDate:function(b){return this._process_options({startDate:b}),this.update(),this.updateNavArrows(),this},setEndDate:function(b){return this._process_options({endDate:b}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(b){return this._process_options({daysOfWeekDisabled:b}),this.update(),this.updateNavArrows(),this},setDatesDisabled:function(b){this._process_options({datesDisabled:b}),this.update(),this.updateNavArrows()},place:function(){if(this.isInline){return this}var Y=this.picker.outerWidth(),X=this.picker.outerHeight(),W=10,V=H(this.o.container).width(),U=H(this.o.container).height(),T=H(this.o.container).scrollTop(),S=H(this.o.container).offset(),R=[];this.element.parents().each(function(){var c=H(this).css("z-index");"auto"!==c&&0!==c&&R.push(parseInt(c))});var Q=Math.max.apply(Math,R)+10,P=this.component?this.component.parent().offset():this.element.offset(),O=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),N=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),M=P.left-S.left,L=P.top-S.top;this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(M-=Y-N)):P.left<0?(this.picker.addClass("datepicker-orient-left"),M-=P.left-W):M+Y>V?(this.picker.addClass("datepicker-orient-right"),M=P.left+N-Y):this.picker.addClass("datepicker-orient-left");var K,J,I=this.o.orientation.y;if("auto"===I&&(K=-T+L-X,J=T+U-(L+O+X),I=Math.max(K,J)===J?"top":"bottom"),this.picker.addClass("datepicker-orient-"+I),"top"===I?L+=O:L-=X+parseInt(this.picker.css("padding-top")),this.o.rtl){var a=V-(M+N);this.picker.css({top:L,right:a,zIndex:Q})}else{this.picker.css({top:L,left:M,zIndex:Q})}return this},_allow_update:!0,update:function(){if(!this._allow_update){return this}var a=this.dates.copy(),f=[],e=!1;return arguments.length?(H.each(arguments,H.proxy(function(d,c){c instanceof Date&&(c=this._local_to_utc(c)),f.push(c)},this)),e=!0):(f=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),f=f&&this.o.multidate?f.split(this.o.multidateSeparator):[f],delete this.element.data().date),f=H.map(f,H.proxy(function(b){return r.parseDate(b,this.o.format,this.o.language)},this)),f=H.grep(f,H.proxy(function(b){return b<this.o.startDate||b>this.o.endDate||!b},this),!0),this.dates.replace(f),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate&&(this.viewDate=new Date(this.o.endDate)),e?this.setValue():f.length&&String(a)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&a.length&&this._trigger("clearDate"),this.fill(),this},fillDow:function(){var e=this.o.weekStart,d="<tr>";if(this.o.calendarWeeks){this.picker.find(".datepicker-days thead tr:first-child .datepicker-switch").attr("colspan",function(g,c){return parseInt(c)+1});var f='<th class="cw">&#160;</th>';d+=f}for(;e<this.o.weekStart+7;){d+='<th class="dow">'+s[this.o.language].daysMin[e++%7]+"</th>"}d+="</tr>",this.picker.find(".datepicker-days thead").append(d)},fillMonths:function(){for(var d="",c=0;12>c;){d+='<span class="month">'+s[this.o.language].monthsShort[c++]+"</span>"}this.picker.find(".datepicker-months td").html(d)},setRange:function(a){a&&a.length?this.range=H.map(a,function(b){return b.valueOf()}):delete this.range,this.fill()},getClassNames:function(a){var j=[],i=this.viewDate.getUTCFullYear(),h=this.viewDate.getUTCMonth(),e=new Date;return a.getUTCFullYear()<i||a.getUTCFullYear()===i&&a.getUTCMonth()<h?j.push("old"):(a.getUTCFullYear()>i||a.getUTCFullYear()===i&&a.getUTCMonth()>h)&&j.push("new"),this.focusDate&&a.valueOf()===this.focusDate.valueOf()&&j.push("focused"),this.o.todayHighlight&&a.getUTCFullYear()===e.getFullYear()&&a.getUTCMonth()===e.getMonth()&&a.getUTCDate()===e.getDate()&&j.push("today"),-1!==this.dates.contains(a)&&j.push("active"),(a.valueOf()<this.o.startDate||a.valueOf()>this.o.endDate||-1!==H.inArray(a.getUTCDay(),this.o.daysOfWeekDisabled))&&j.push("disabled"),this.o.datesDisabled.length>0&&H.grep(this.o.datesDisabled,function(b){return D(a,b)}).length>0&&j.push("disabled","disabled-date"),this.range&&(a>this.range[0]&&a<this.range[this.range.length-1]&&j.push("range"),-1!==H.inArray(a.valueOf(),this.range)&&j.push("selected")),j},fill:function(){var ac,ab=new Date(this.viewDate),aa=ab.getUTCFullYear(),Z=ab.getUTCMonth(),Y=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),X=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),W=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,V=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,U=s[this.o.language].today||s.en.today||"",T=s[this.o.language].clear||s.en.clear||"";if(!isNaN(aa)&&!isNaN(Z)){this.picker.find(".datepicker-days thead .datepicker-switch").text(s[this.o.language].months[Z]+" "+aa),this.picker.find("tfoot .today").text(U).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot .clear").text(T).toggle(this.o.clearBtn!==!1),this.updateNavArrows(),this.fillMonths();var S=F(aa,Z-1,28),R=r.getDaysInMonth(S.getUTCFullYear(),S.getUTCMonth());S.setUTCDate(R),S.setUTCDate(R-(S.getUTCDay()-this.o.weekStart+7)%7);var O=new Date(S);O.setUTCDate(O.getUTCDate()+42),O=O.valueOf();for(var M,K=[];S.valueOf()<O;){if(S.getUTCDay()===this.o.weekStart&&(K.push("<tr>"),this.o.calendarWeeks)){var I=new Date(+S+(this.o.weekStart-S.getUTCDay()-7)%7*86400000),q=new Date(Number(I)+(11-I.getUTCDay())%7*86400000),p=new Date(Number(p=F(q.getUTCFullYear(),0,1))+(11-p.getUTCDay())%7*86400000),c=(q-p)/86400000/7+1;K.push('<td class="cw">'+c+"</td>")}if(M=this.getClassNames(S),M.push("day"),this.o.beforeShowDay!==H.noop){var b=this.o.beforeShowDay(this._utc_to_local(S));b===G?b={}:"boolean"==typeof b?b={enabled:b}:"string"==typeof b&&(b={classes:b}),b.enabled===!1&&M.push("disabled"),b.classes&&(M=M.concat(b.classes.split(/\s+/))),b.tooltip&&(ac=b.tooltip)}M=H.unique(M),K.push('<td class="'+M.join(" ")+'"'+(ac?' title="'+ac+'"':"")+">"+S.getUTCDate()+"</td>"),ac=null,S.getUTCDay()===this.o.weekEnd&&K.push("</tr>"),S.setUTCDate(S.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(K.join(""));var a=this.picker.find(".datepicker-months").find("th:eq(1)").text(aa).end().find("span").removeClass("active");if(H.each(this.dates,function(e,d){d.getUTCFullYear()===aa&&a.eq(d.getUTCMonth()).addClass("active")}),(Y>aa||aa>W)&&a.addClass("disabled"),aa===Y&&a.slice(0,X).addClass("disabled"),aa===W&&a.slice(V+1).addClass("disabled"),this.o.beforeShowMonth!==H.noop){var Q=this;H.each(a,function(f,i){if(!H(i).hasClass("disabled")){var h=new Date(aa,f,1),g=Q.o.beforeShowMonth(h);g===!1&&H(i).addClass("disabled")}})}K="",aa=10*parseInt(aa/10,10);var P=this.picker.find(".datepicker-years").find("th:eq(1)").text(aa+"-"+(aa+9)).end().find("td");aa-=1;for(var N,L=H.map(this.dates,function(d){return d.getUTCFullYear()}),J=-1;11>J;J++){N=["year"],-1===J?N.push("old"):10===J&&N.push("new"),-1!==H.inArray(aa,L)&&N.push("active"),(Y>aa||aa>W)&&N.push("disabled"),K+='<span class="'+N.join(" ")+'">'+aa+"</span>",aa+=1}P.html(K)}},updateNavArrows:function(){if(this._allow_update){var e=new Date(this.viewDate),d=e.getUTCFullYear(),f=e.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-(1/0)&&d<=this.o.startDate.getUTCFullYear()&&f<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&d>=this.o.endDate.getUTCFullYear()&&f>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-(1/0)&&d<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&d>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(a){a.preventDefault();var p,o,n,m=H(a.target).closest("span, td, th");if(1===m.length){switch(m[0].nodeName.toLowerCase()){case"th":switch(m[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var l=r.modes[this.viewMode].navStep*("prev"===m[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,l),this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,l),1===this.viewMode&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":var k=new Date;k=F(k.getFullYear(),k.getMonth(),k.getDate(),0,0,0),this.showMode(-2);var c="linked"===this.o.todayBtn?null:"view";this._setDate(k,c);break;case"clear":this.clearDates()}break;case"span":m.hasClass("disabled")||(this.viewDate.setUTCDate(1),m.hasClass("month")?(n=1,o=m.parent().find("span").index(m),p=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(o),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode&&this._setDate(F(p,o,n))):(n=1,o=0,p=parseInt(m.text(),10)||0,this.viewDate.setUTCFullYear(p),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(F(p,o,n))),this.showMode(-1),this.fill());break;case"td":m.hasClass("day")&&!m.hasClass("disabled")&&(n=parseInt(m.text(),10)||1,p=this.viewDate.getUTCFullYear(),o=this.viewDate.getUTCMonth(),m.hasClass("old")?0===o?(o=11,p-=1):o-=1:m.hasClass("new")&&(11===o?(o=0,p+=1):o+=1),this._setDate(F(p,o,n)))}}this.picker.is(":visible")&&this._focused_from&&H(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(d){var c=this.dates.contains(d);if(d||this.dates.clear(),-1!==c?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(c):this.o.multidate===!1?(this.dates.clear(),this.dates.push(d)):this.dates.push(d),"number"==typeof this.o.multidate){for(;this.dates.length>this.o.multidate;){this.dates.remove(0)}}},_setDate:function(e,d){d&&"date"!==d||this._toggle_multidate(e&&new Date(e)),d&&"view"!==d||(this.viewDate=e&&new Date(e)),this.fill(),this.setValue(),d&&"view"===d||this._trigger("changeDate");var f;this.isInput?f=this.element:this.component&&(f=this.element.find("input")),f&&f.change(),!this.o.autoclose||d&&"date"!==d||this.hide()},moveMonth:function(I,q){if(!I){return G}if(!q){return I}var p,o,n=new Date(I.valueOf()),m=n.getUTCDate(),l=n.getUTCMonth(),k=Math.abs(q);if(q=q>0?1:-1,1===k){o=-1===q?function(){return n.getUTCMonth()===l}:function(){return n.getUTCMonth()!==p},p=l+q,n.setUTCMonth(p),(0>p||p>11)&&(p=(p+12)%12)}else{for(var b=0;k>b;b++){n=this.moveMonth(n,q)}p=n.getUTCMonth(),n.setUTCDate(m),o=function(){return p!==n.getUTCMonth()}}for(;o();){n.setUTCDate(--m),n.setUTCMonth(p)}return n},moveYear:function(d,c){return this.moveMonth(d,12*c)},dateWithinRange:function(b){return b>=this.o.startDate&&b<=this.o.endDate},keydown:function(i){if(!this.picker.is(":visible")){return void (27===i.keyCode&&this.show())}var d,n,m,l=!1,k=this.focusDate||this.viewDate;switch(i.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),i.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation){break}d=37===i.keyCode?-1:1,i.ctrlKey?(n=this.moveYear(this.dates.get(-1)||E(),d),m=this.moveYear(k,d),this._trigger("changeYear",this.viewDate)):i.shiftKey?(n=this.moveMonth(this.dates.get(-1)||E(),d),m=this.moveMonth(k,d),this._trigger("changeMonth",this.viewDate)):(n=new Date(this.dates.get(-1)||E()),n.setUTCDate(n.getUTCDate()+d),m=new Date(k),m.setUTCDate(k.getUTCDate()+d)),this.dateWithinRange(m)&&(this.focusDate=this.viewDate=m,this.setValue(),this.fill(),i.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation){break}d=38===i.keyCode?-1:1,i.ctrlKey?(n=this.moveYear(this.dates.get(-1)||E(),d),m=this.moveYear(k,d),this._trigger("changeYear",this.viewDate)):i.shiftKey?(n=this.moveMonth(this.dates.get(-1)||E(),d),m=this.moveMonth(k,d),this._trigger("changeMonth",this.viewDate)):(n=new Date(this.dates.get(-1)||E()),n.setUTCDate(n.getUTCDate()+7*d),m=new Date(k),m.setUTCDate(k.getUTCDate()+7*d)),this.dateWithinRange(m)&&(this.focusDate=this.viewDate=m,this.setValue(),this.fill(),i.preventDefault());break;case 32:break;case 13:k=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(k),l=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(i.preventDefault(),"function"==typeof i.stopPropagation?i.stopPropagation():i.cancelBubble=!0,this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}if(l){this.dates.length?this._trigger("changeDate"):this._trigger("clearDate");var j;this.isInput?j=this.element:this.component&&(j=this.element.find("input")),j&&j.change()}},showMode:function(b){b&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+b))),this.picker.children("div").hide().filter(".datepicker-"+r.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}};var x=function(a,d){this.element=H(a),this.inputs=H.map(d.inputs,function(b){return b.jquery?b[0]:b}),delete d.inputs,v.call(H(this.inputs),d).bind("changeDate",H.proxy(this.dateUpdated,this)),this.pickers=H.map(this.inputs,function(c){return H(c).data("datepicker")}),this.updateDates()};x.prototype={updateDates:function(){this.dates=H.map(this.pickers,function(b){return b.getUTCDate()}),this.updateRanges()},updateRanges:function(){var a=H.map(this.dates,function(b){return b.valueOf()});H.each(this.pickers,function(b,d){d.setRange(a)})},dateUpdated:function(a){if(!this.updating){this.updating=!0;var n=H(a.target).data("datepicker"),m=n.getUTCDate(),l=H.inArray(a.target,this.inputs),k=l-1,j=l+1,i=this.inputs.length;if(-1!==l){if(H.each(this.pickers,function(d,c){c.getUTCDate()||c.setUTCDate(m)}),m<this.dates[k]){for(;k>=0&&m<this.dates[k];){this.pickers[k--].setUTCDate(m)}}else{if(m>this.dates[j]){for(;i>j&&m>this.dates[j];){this.pickers[j++].setUTCDate(m)}}}this.updateDates(),delete this.updating}}},remove:function(){H.map(this.pickers,function(b){b.remove()}),delete this.element.data().datepicker}};var w=H.fn.datepicker,v=function(f){var b=Array.apply(null,arguments);b.shift();var a;return this.each(function(){var j=H(this),e=j.data("datepicker"),d="object"==typeof f&&f;if(!e){var c=B(this,"date"),n=H.extend({},u,c,d),k=A(n.language),h=H.extend({},u,k,c,d);if(j.hasClass("input-daterange")||h.inputs){var g={inputs:h.inputs||j.find("input").toArray()};j.data("datepicker",e=new x(this,H.extend(h,g)))}else{j.data("datepicker",e=new y(this,h))}}return"string"==typeof f&&"function"==typeof e[f]&&(a=e[f].apply(e,b),a!==G)?!1:void 0}),a!==G?a:this};H.fn.datepicker=v;var u=H.fn.datepicker.defaults={autoclose:!1,beforeShowDay:H.noop,beforeShowMonth:H.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,container:"body"},t=H.fn.datepicker.locale_opts=["format","rtl","weekStart"];H.fn.datepicker.Constructor=y;var s=H.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}},r={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(b){return b%4===0&&b%100!==0||b%400===0},getDaysInMonth:function(d,c){return[31,r.isLeapYear(d)?29:28,31,30,31,30,31,31,30,31,30,31][c]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(e){var d=e.replace(this.validParts,"\x00").split("\x00"),f=e.match(this.validParts);if(!d||!d.length||!f||0===f.length){throw new Error("Invalid date format.")}return{separators:d,parts:f}},parseDate:function(T,S,R){function Q(){var e=this.slice(0,L[N].length),d=L[N].slice(0,e.length);return e.toLowerCase()===d.toLowerCase()}if(!T){return G}if(T instanceof Date){return T}"string"==typeof S&&(S=r.parseFormat(S));var P,O,N,M=/([\-+]\d+)([dmwy])/,L=T.match(/([\-+]\d+)([dmwy])/g);if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(T)){for(T=new Date,N=0;N<L.length;N++){switch(P=M.exec(L[N]),O=parseInt(P[1]),P[2]){case"d":T.setUTCDate(T.getUTCDate()+O);break;case"m":T=y.prototype.moveMonth.call(y.prototype,T,O);break;case"w":T.setUTCDate(T.getUTCDate()+7*O);break;case"y":T=y.prototype.moveYear.call(y.prototype,T,O)}}return F(T.getUTCFullYear(),T.getUTCMonth(),T.getUTCDate(),0,0,0)}L=T&&T.match(this.nonpunctuation)||[],T=new Date;var K,J,I={},q=["yyyy","yy","M","MM","m","mm","d","dd"],p={yyyy:function(e,d){return e.setUTCFullYear(d)},yy:function(e,d){return e.setUTCFullYear(2000+d)},m:function(e,d){if(isNaN(e)){return e}for(d-=1;0>d;){d+=12}for(d%=12,e.setUTCMonth(d);e.getUTCMonth()!==d;){e.setUTCDate(e.getUTCDate()-1)}return e},d:function(e,d){return e.setUTCDate(d)}};p.M=p.MM=p.mm=p.m,p.dd=p.d,T=F(T.getFullYear(),T.getMonth(),T.getDate(),0,0,0);var j=S.parts.slice();if(L.length!==j.length&&(j=H(j).filter(function(d,e){return -1!==H.inArray(e,q)}).toArray()),L.length===j.length){var c;for(N=0,c=j.length;c>N;N++){if(K=parseInt(L[N],10),P=j[N],isNaN(K)){switch(P){case"MM":J=H(s[R].months).filter(Q),K=H.inArray(J[0],s[R].months)+1;break;case"M":J=H(s[R].monthsShort).filter(Q),K=H.inArray(J[0],s[R].monthsShort)+1}}I[P]=K}var b,a;for(N=0;N<q.length;N++){a=q[N],a in I&&!isNaN(I[a])&&(b=new Date(T),p[a](b,I[a]),isNaN(b)||(T=b))}}return T},formatDate:function(a,n,m){if(!a){return""}"string"==typeof n&&(n=r.parseFormat(n));var l={d:a.getUTCDate(),D:s[m].daysShort[a.getUTCDay()],DD:s[m].days[a.getUTCDay()],m:a.getUTCMonth()+1,M:s[m].monthsShort[a.getUTCMonth()],MM:s[m].months[a.getUTCMonth()],yy:a.getUTCFullYear().toString().substring(2),yyyy:a.getUTCFullYear()};l.dd=(l.d<10?"0":"")+l.d,l.mm=(l.m<10?"0":"")+l.m,a=[];for(var k=H.extend([],n.separators),j=0,i=n.parts.length;i>=j;j++){k.length&&a.push(k.shift()),a.push(l[n.parts[j]])}return a.join("")},headTemplate:'<thead><tr><th class="prev">&#171;</th><th colspan="5" class="datepicker-switch"></th><th class="next">&#187;</th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};r.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+r.headTemplate+"<tbody></tbody>"+r.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+r.headTemplate+r.contTemplate+r.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+r.headTemplate+r.contTemplate+r.footTemplate+"</table></div></div>",H.fn.datepicker.DPGlobal=r,H.fn.datepicker.noConflict=function(){return H.fn.datepicker=w,this},H.fn.datepicker.version="1.4.1",H(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(a){var d=H(this);d.data("datepicker")||(a.preventDefault(),v.call(d,"show"))}),H(function(){v.call(H('[data-provide="datepicker-inline"]'))})}(window.jQuery);var gapi=window.gapi=window.gapi||{};gapi._bs=new Date().getTime();(function(){var aZ=this;var aX=String.prototype.trim?function(k){return k.trim()}:function(k){return k.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},aW=function(l,k){return l<k?-1:l>k?1:0};var aU;a:{var aS=aZ.navigator;if(aS){var aP=aS.userAgent;if(aP){aU=aP;break a}}aU=""}var a0=function(l,k){var m=ao;Object.prototype.hasOwnProperty.call(m,l)||(m[l]=k(l))};var aC=-1!=aU.indexOf("Opera"),aK=-1!=aU.indexOf("Trident")||-1!=aU.indexOf("MSIE"),ap=-1!=aU.indexOf("Edge"),aI=-1!=aU.indexOf("Gecko")&&!(-1!=aU.toLowerCase().indexOf("webkit")&&-1==aU.indexOf("Edge"))&&!(-1!=aU.indexOf("Trident")||-1!=aU.indexOf("MSIE"))&&-1==aU.indexOf("Edge"),b=-1!=aU.toLowerCase().indexOf("webkit")&&-1==aU.indexOf("Edge"),aG=function(){var k=aZ.document;return k?k.documentMode:void 0},aF;a:{var an="",am=function(){var k=aU;if(aI){return/rv\:([^\);]+)(\)|;)/.exec(k)}if(ap){return/Edge\/([\d\.]+)/.exec(k)}if(aK){return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(k)}if(b){return/WebKit\/(\S+)/.exec(k)}if(aC){return/(?:Version)[ \/]?(\S+)/.exec(k)}}();am&&(an=am?am[1]:"");if(aK){var al=aG();if(null!=al&&al>parseFloat(an)){aF=String(al);break a}}aF=an}var ak=aF,ao={},aj=function(k){a0(k,function(){for(var l=0,w=aX(String(ak)).split("."),v=aX(String(k)).split("."),r=Math.max(w.length,v.length),p=0;0==l&&p<r;p++){var m=w[p]||"",n=v[p]||"";do{m=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];n=/(\d*)(\D*)(.*)/.exec(n)||["","","",""];if(0==m[0].length&&0==n[0].length){break}l=aW(0==m[1].length?0:parseInt(m[1],10),0==n[1].length?0:parseInt(n[1],10))||aW(0==m[2].length,0==n[2].length)||aW(m[2],n[2]);m=m[3];n=n[3]}while(0==l)}return 0<=l})},aD;var c=aZ.document;aD=c&&aK?aG()||("CSS1Compat"==c.compatMode?parseInt(ak,10):5):void 0;var ai;if(!(ai=!aI&&!aK)){var ah;if(ah=aK){ah=9<=Number(aD)}ai=ah}ai||aI&&aj("1.9.1");aK&&aj("9");var ag=window,af=document,aE=ag.location,aq=function(){},f=/\[native code\]/,ad=function(l,k,m){return l[k]=l[k]||m},aH=function(l){l=l.sort();for(var k=[],p=void 0,n=0;n<l.length;n++){var m=l[n];m!=p&&k.push(m);p=m}return k},ac=function(){var l;if((l=Object.create)&&f.test(l)){l=l(null)}else{l={};for(var k in l){l[k]=void 0}}return l},T=ad(ag,"gapi",{});var G;G=ad(ag,"___jsl",ac());ad(G,"I",0);ad(G,"hel",10);var ar=function(){var l=aE.href;if(G.dpo){var k=G.h}else{k=G.h;var p=/([#].*&|[#])jsh=([^&#]*)/g,n=/([?#].*&|[?#])jsh=([^&#]*)/g;if(l=l&&(p.exec(l)||n.exec(l))){try{k=decodeURIComponent(l[2])}catch(m){}}}return k},i=function(l){var k=ad(G,"PQ",[]);G.PQ=[];var r=k.length;if(0===r){l()}else{for(var p=0,n=function(){++p===r&&l()},m=0;m<r;m++){k[m](n)}}},A=function(k){return ad(ad(G,"H",ac()),k,ac())};var u=ad(G,"perf",ac()),aJ=ad(u,"g",ac()),at=ad(u,"i",ac());ad(u,"r",[]);ac();ac();var o=function(l,k,n){var m=u.r;"function"===typeof m?m(l,k,n):m.push([l,k,n])},j=function(l,k,m){k&&0<k.length&&(k=aM(k),m&&0<m.length&&(k+="___"+aM(m)),28<k.length&&(k=k.substr(0,28)+(k.length-28)),m=k,k=ad(at,"_p",ac()),ad(k,m,ac())[l]=(new Date).getTime(),o(l,"_p",m))},aM=function(k){return k.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/\,/g,"_")};var av=ac(),h=[],g=function(k){throw Error("Bad hint"+(k?": "+k:""))};h.push(["jsl",function(l){for(var k in l){if(Object.prototype.hasOwnProperty.call(l,k)){var m=l[k];"object"==typeof m?G[k]=ad(G,k,[]).concat(m):ad(G,k,m)}}if(k=l.u){l=ad(G,"us",[]),l.push(k),(k=/^https:(.*)$/.exec(k))&&l.push("http:"+k[1])}}]);var s=/^(\/[a-zA-Z0-9_\-]+)+$/,aO=[/\/amp\//,/\/amp$/,/^\/amp$/],ax=/^[a-zA-Z0-9\-_\.,!]+$/,x=/^gapi\.loaded_[0-9]+$/,aR=/^[a-zA-Z0-9,._-]+$/,au=function(l,k,w,v){var r=l.split(";"),p=r.shift(),m=av[p],n=null;m?n=m(r,k,w,v):g("no hint processor for: "+p);n||g("failed to generate load url");k=n;w=k.match(az);(v=k.match(S))&&1===v.length&&aL.test(k)&&w&&1===w.length||g("failed sanity: "+l);return n},aw=function(l,k,p,n){l=q(l);x.test(p)||g("invalid_callback");k=aN(k);n=n&&n.length?aN(n):null;var m=function(r){return encodeURIComponent(r).replace(/%2C/g,",")};return[encodeURIComponent(l.g).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",m(l.version),"/m=",m(k),n?"/exm="+m(n):"","/rt=j/sv=1/d=1/ed=1",l.a?"/am="+m(l.a):"",l.c?"/rs="+m(l.c):"",l.f?"/t="+m(l.f):"","/cb=",m(p)].join("")},q=function(l){"/"!==l.charAt(0)&&g("relative path");for(var k=l.substring(1).split("/"),w=[];k.length;){l=k.shift();if(!l.length||0==l.indexOf(".")){g("empty/relative directory")}else{if(0<l.indexOf("=")){k.unshift(l);break}}w.push(l)}l={};for(var v=0,r=k.length;v<r;++v){var p=k[v].split("="),m=decodeURIComponent(p[0]),n=decodeURIComponent(p[1]);2==p.length&&m&&n&&(l[m]=l[m]||n)}k="/"+w.join("/");s.test(k)||g("invalid_prefix");w=0;for(v=aO.length;w<v;++w){aO[w].test(k)&&g("invalid_prefix")}w=e(l,"k",!0);v=e(l,"am");r=e(l,"rs");l=e(l,"t");return{g:k,version:w,a:v,c:r,f:l}},aN=function(l){for(var k=[],p=0,n=l.length;p<n;++p){var m=l[p].replace(/\./g,"_").replace(/-/g,"_");aR.test(m)&&k.push(m)}return k.join(",")},e=function(l,k,m){l=l[k];!l&&m&&g("missing: "+k);if(l){if(ax.test(l)){return l}g("invalid: "+k)}return null},aL=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,S=/\/cb=/g,az=/\/\//g,t=function(){var k=ar();if(!k){throw Error("Bad hint")}return k};av.m=function(l,k,n,m){(l=l[0])||g("missing_hint");return"https://apis.google.com"+aw(l,k,n,m)};var d=decodeURI("%73cript"),aQ=/^[-+_0-9\/A-Za-z]+={0,2}$/,ay=function(l,k){for(var r=[],p=0;p<l.length;++p){var n=l[p],m;if(m=n){l:{for(m=0;m<k.length;m++){if(k[m]===n){break l}}m=-1}m=0>m}m&&r.push(n)}return r},B=function(){var l=G.nonce;if(void 0!==l){return l&&l===String(l)&&l.match(aQ)?l:G.nonce=null}var k=ad(G,"us",[]);if(!k||!k.length){return G.nonce=null}for(var w=af.getElementsByTagName(d),v=0,r=w.length;v<r;++v){var p=w[v];if(p.src&&(l=String(p.nonce||p.getAttribute("nonce")||"")||null)){for(var m=0,n=k.length;m<n&&k[m]!==p.src;++m){}if(m!==n&&l&&l===String(l)&&l.match(aQ)){return G.nonce=l}}}return null},aA=function(l){if("loading"!=af.readyState){aT(l)}else{var k=B(),m="";null!==k&&(m=' nonce="'+k+'"');af.write("<"+d+' src="'+encodeURI(l)+'"'+m+"></"+d+">")}},aT=function(l){var k=af.createElement(d);k.setAttribute("src",l);l=B();null!==l&&k.setAttribute("nonce",l);k.async="true";(l=af.getElementsByTagName(d)[0])?l.parentNode.insertBefore(k,l):(af.head||af.body||af.documentElement).appendChild(k)},ab=function(l,k){var r=k&&k._c;if(r){for(var p=0;p<h.length;p++){var n=h[p][0],m=h[p][1];m&&Object.prototype.hasOwnProperty.call(r,n)&&m(r[n],l,k)}}},aB=function(l,k,m){aV(function(){var n=k===ar()?ad(T,"_",ac()):ac();n=ad(A(k),"_",n);l(n)},m)},aY=function(C,y){var w=y||{};"function"==typeof y&&(w={},w.callback=y);ab(C,w);y=C?C.split(":"):[];var v=w.h||t(),r=ad(G,"ah",ac());if(r["::"]&&y.length){C=[];for(var p=null;p=y.shift();){var m=p.split(".");m=r[p]||r[m[1]&&"ns:"+m[0]||""]||v;var n=C.length&&C[C.length-1]||null,z=n;n&&n.hint==m||(z={hint:m,b:[]},C.push(z));z.b.push(p)}var l=C.length;if(1<l){var k=w.callback;k&&(w.callback=function(){0==--l&&k()})}for(;y=C.shift();){ae(y.b,w,y.hint)}}else{ae(y||[],w,v)}},ae=function(K,J,I){K=aH(K)||[];var H=J.callback,F=J.config,E=J.timeout,C=J.ontimeout,D=J.onerror,n=void 0;"function"==typeof D&&(n=D);var z=null,w=!1;if(E&&!C||!E&&C){throw"Timeout requires both the timeout parameter and ontimeout parameter to be set"}D=ad(A(I),"r",[]).sort();var l=ad(A(I),"L",[]).sort(),p=[].concat(D),m=function(M,L){if(w){return 0}ag.clearTimeout(z);l.push.apply(l,y);var N=((T||{}).config||{}).update;N?N(F):F&&ad(G,"cu",[]).push(F);if(L){j("me0",M,p);try{aB(L,I,n)}finally{j("me1",M,p)}}return 1};0<E&&(z=ag.setTimeout(function(){w=!0;C()},E));var y=ay(K,l);if(y.length){y=ay(K,D);var v=ad(G,"CP",[]),r=v.length;v[r]=function(M){if(!M){return 0}j("ml1",y,p);var L=function(O){v[r]=null;m(y,M)&&i(function(){H&&H();O()})},N=function(){var O=v[r+1];O&&O()};0<r&&v[r-1]?v[r]=function(){L(N)}:L(N)};if(y.length){var k="loaded_"+G.I++;T[k]=function(L){v[r](L);T[k]=null};K=au(I,y,"gapi."+k,D);D.push.apply(D,y);j("ml0",y,p);J.sync||ag.___gapisync?aA(K):aT(K)}else{v[r](aq)}}else{m(y)&&H&&H()}};var aV=function(l,k){if(G.hee&&0<G.hel){try{return l()}catch(m){k&&k(m),G.hel--,aY("debug_error",function(){try{window.___jsl.hefn(m)}catch(n){throw m}})}}else{try{return l()}catch(m){throw k&&k(m),m}}};T.load=function(l,k){return aV(function(){return aY(l,k)})};aJ.bs0=window.gapi._bs||(new Date).getTime();o("bs0");aJ.bs1=(new Date).getTime();o("bs1");delete window.gapi._bs}).call(this);gapi.load("",{callback:window.gapi_onload,_c:{jsl:{ci:{deviceType:"desktop","oauth-flow":{authUrl:"https://accounts.google.com/o/oauth2/auth",proxyUrl:"https://accounts.google.com/o/oauth2/postmessageRelay",disableOpt:true,idpIframeUrl:"https://accounts.google.com/o/oauth2/iframe",usegapi:false},debug:{reportExceptionRate:0.05,forceIm:false,rethrowException:false,host:"https://apis.google.com"},enableMultilogin:true,"googleapis.config":{auth:{useFirstPartyAuthV2:true}},isPlusUser:true,inline:{css:1},disableRealtimeCallback:false,drive_share:{skipInitCommand:true},csi:{rate:0.01},client:{cors:false},isLoggedIn:true,signInDeprecation:{rate:0},include_granted_scopes:true,llang:"en",iframes:{ytsubscribe:{url:"https://www.youtube.com/subscribe_embed?usegapi\u003d1"},plus_share:{params:{url:""},url:":socialhost:/:session_prefix::se:_/+1/sharebutton?plusShare\u003dtrue\u0026usegapi\u003d1"},":source:":"3p",playemm:{url:"https://play.google.com/work/embedded/search?usegapi\u003d1\u0026usegapi\u003d1"},partnersbadge:{url:"https://www.gstatic.com/partners/badge/templates/badge.html?usegapi\u003d1"},dataconnector:{url:"https://dataconnector.corp.google.com/:session_prefix:ui/widgetview?usegapi\u003d1"},shortlists:{url:""},plus_followers:{params:{url:""},url:":socialhost:/_/im/_/widget/render/plus/followers?usegapi\u003d1"},post:{params:{url:""},url:":socialhost:/:session_prefix::im_prefix:_/widget/render/post?usegapi\u003d1"},signin:{params:{url:""},url:":socialhost:/:session_prefix:_/widget/render/signin?usegapi\u003d1",methods:["onauth"]},donation:{url:"https://onetoday.google.com/home/donationWidget?usegapi\u003d1"},plusone:{params:{count:"",size:"",url:""},url:":socialhost:/:session_prefix::se:_/+1/fastbutton?usegapi\u003d1"},":im_socialhost:":"https://plus.googleapis.com",backdrop:{url:"https://clients3.google.com/cast/chromecast/home/widget/backdrop?usegapi\u003d1"},visibility:{params:{url:""},url:":socialhost:/:session_prefix:_/widget/render/visibility?usegapi\u003d1"},additnow:{url:"https://apis.google.com/additnow/additnow.html?usegapi\u003d1",methods:["launchurl"]},":signuphost:":"https://plus.google.com",community:{url:":ctx_socialhost:/:session_prefix::im_prefix:_/widget/render/community?usegapi\u003d1"},plus:{url:":socialhost:/:session_prefix:_/widget/render/badge?usegapi\u003d1"},commentcount:{url:":socialhost:/:session_prefix:_/widget/render/commentcount?usegapi\u003d1"},zoomableimage:{url:"https://ssl.gstatic.com/microscope/embed/"},appfinder:{url:"https://gsuite.google.com/:session_prefix:marketplace/appfinder?usegapi\u003d1"},person:{url:":socialhost:/:session_prefix:_/widget/render/person?usegapi\u003d1"},savetodrive:{url:"https://drive.google.com/savetodrivebutton?usegapi\u003d1",methods:["save"]},page:{url:":socialhost:/:session_prefix:_/widget/render/page?usegapi\u003d1"},card:{url:":socialhost:/:session_prefix:_/hovercard/card"},youtube:{params:{location:["search","hash"]},url:":socialhost:/:session_prefix:_/widget/render/youtube?usegapi\u003d1",methods:["scroll","openwindow"]},plus_circle:{params:{url:""},url:":socialhost:/:session_prefix::se:_/widget/plus/circle?usegapi\u003d1"},rbr_s:{params:{url:""},url:":socialhost:/:session_prefix::se:_/widget/render/recobarsimplescroller"},udc_webconsentflow:{params:{url:""},url:"https://myaccount.google.com/webconsent?usegapi\u003d1"},savetoandroidpay:{url:"https://androidpay.google.com/a/widget/save"},blogger:{params:{location:["search","hash"]},url:":socialhost:/:session_prefix:_/widget/render/blogger?usegapi\u003d1",methods:["scroll","openwindow"]},evwidget:{params:{url:""},url:":socialhost:/:session_prefix:_/events/widget?usegapi\u003d1"},surveyoptin:{url:"https://www.google.com/shopping/customerreviews/optin?usegapi\u003d1"},":socialhost:":"https://apis.google.com",hangout:{url:"https://talkgadget.google.com/:session_prefix:talkgadget/_/widget"},":gplus_url:":"https://plus.google.com",rbr_i:{params:{url:""},url:":socialhost:/:session_prefix::se:_/widget/render/recobarinvitation"},share:{url:":socialhost:/:session_prefix::im_prefix:_/widget/render/share?usegapi\u003d1"},comments:{params:{location:["search","hash"]},url:":socialhost:/:session_prefix:_/widget/render/comments?usegapi\u003d1",methods:["scroll","openwindow"]},autocomplete:{params:{url:""},url:":socialhost:/:session_prefix:_/widget/render/autocomplete"},ratingbadge:{url:"https://www.google.com/shopping/customerreviews/badge?usegapi\u003d1"},appcirclepicker:{url:":socialhost:/:session_prefix:_/widget/render/appcirclepicker"},follow:{url:":socialhost:/:session_prefix:_/widget/render/follow?usegapi\u003d1"},sharetoclassroom:{url:"https://www.gstatic.com/classroom/sharewidget/widget_stable.html?usegapi\u003d1"},ytshare:{params:{url:""},url:":socialhost:/:session_prefix:_/widget/render/ytshare?usegapi\u003d1"},family_creation:{params:{url:""},url:"https://families.google.com/webcreation?usegapi\u003d1\u0026usegapi\u003d1"},configurator:{url:":socialhost:/:session_prefix:_/plusbuttonconfigurator?usegapi\u003d1"},savetowallet:{url:"https://androidpay.google.com/a/widget/save"}}},h:"m;/_/scs/apps-static/_/js/k\u003doz.gapi.en.54rvJIPTsq0.O/m\u003d__features__/am\u003dAQ/rt\u003dj/d\u003d1/rs\u003dAGLTcCPwWRWf9u-Qf5Xp2KlRIyI4hERCSA",u:"https://apis.google.com/js/api.js",hee:true,fp:"a0ff892455f0902b5ec8d1be46189e000c1d7e7b",dpo:false},fp:"a0ff892455f0902b5ec8d1be46189e000c1d7e7b",annotation:["interactivepost","recobar","signin2","autocomplete","profile"],bimodal:["signin","share"]}});(function(c){var b={init:function(e){var f={set_width:false,set_height:false,horizontalScroll:false,scrollInertia:950,mouseWheel:true,mouseWheelPixels:"auto",autoDraggerLength:true,autoHideScrollbar:false,alwaysShowScrollbar:false,snapAmount:null,snapOffset:0,scrollButtons:{enable:false,scrollType:"continuous",scrollSpeed:"auto",scrollAmount:40},advanced:{updateOnBrowserResize:true,updateOnContentResize:false,autoExpandHorizontalScroll:false,autoScrollOnFocus:true,normalizeMouseWheelDelta:false},contentTouchScroll:true,callbacks:{onScrollStart:function(){},onScroll:function(){},onTotalScroll:function(){},onTotalScrollBack:function(){},onTotalScrollOffset:0,onTotalScrollBackOffset:0,whileScrolling:function(){}},theme:"light"},e=c.extend(true,f,e);return this.each(function(){var m=c(this);if(e.set_width){m.css("width",e.set_width)}if(e.set_height){m.css("height",e.set_height)}if(!c(document).data("mCustomScrollbar-index")){c(document).data("mCustomScrollbar-index","1")}else{var t=parseInt(c(document).data("mCustomScrollbar-index"));c(document).data("mCustomScrollbar-index",t+1)}m.wrapInner("<div class='mCustomScrollBox mCS-"+e.theme+"' id='mCSB_"+c(document).data("mCustomScrollbar-index")+"' style='position:relative; height:100%; overflow:hidden; max-width:100%;' />").addClass("mCustomScrollbar _mCS_"+c(document).data("mCustomScrollbar-index"));var g=m.children(".mCustomScrollBox");if(e.horizontalScroll){g.addClass("mCSB_horizontal").wrapInner("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />");var k=g.children(".mCSB_h_wrapper");k.wrapInner("<div class='mCSB_container' style='position:absolute; left:0;' />").children(".mCSB_container").css({width:k.children().outerWidth(),position:"relative"}).unwrap()}else{g.wrapInner("<div class='mCSB_container' style='position:relative; top:0;' />")}var o=g.children(".mCSB_container");if(c.support.touch){o.addClass("mCS_touch")}o.after("<div class='mCSB_scrollTools' style='position:absolute;'><div class='mCSB_draggerContainer'><div class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' style='position:relative;'></div></div><div class='mCSB_draggerRail'></div></div></div>");var l=g.children(".mCSB_scrollTools"),h=l.children(".mCSB_draggerContainer"),q=h.children(".mCSB_dragger");if(e.horizontalScroll){q.data("minDraggerWidth",q.width())}else{q.data("minDraggerHeight",q.height())}if(e.scrollButtons.enable){if(e.horizontalScroll){l.prepend("<a class='mCSB_buttonLeft' oncontextmenu='return false;'></a>").append("<a class='mCSB_buttonRight' oncontextmenu='return false;'></a>")}else{l.prepend("<a class='mCSB_buttonUp' oncontextmenu='return false;'></a>").append("<a class='mCSB_buttonDown' oncontextmenu='return false;'></a>")}}g.bind("scroll",function(){if(!m.is(".mCS_disabled")){g.scrollTop(0).scrollLeft(0)}});m.data({mCS_Init:true,mCustomScrollbarIndex:c(document).data("mCustomScrollbar-index"),horizontalScroll:e.horizontalScroll,scrollInertia:e.scrollInertia,scrollEasing:"mcsEaseOut",mouseWheel:e.mouseWheel,mouseWheelPixels:e.mouseWheelPixels,autoDraggerLength:e.autoDraggerLength,autoHideScrollbar:e.autoHideScrollbar,alwaysShowScrollbar:e.alwaysShowScrollbar,snapAmount:e.snapAmount,snapOffset:e.snapOffset,scrollButtons_enable:e.scrollButtons.enable,scrollButtons_scrollType:e.scrollButtons.scrollType,scrollButtons_scrollSpeed:e.scrollButtons.scrollSpeed,scrollButtons_scrollAmount:e.scrollButtons.scrollAmount,autoExpandHorizontalScroll:e.advanced.autoExpandHorizontalScroll,autoScrollOnFocus:e.advanced.autoScrollOnFocus,normalizeMouseWheelDelta:e.advanced.normalizeMouseWheelDelta,contentTouchScroll:e.contentTouchScroll,onScrollStart_Callback:e.callbacks.onScrollStart,onScroll_Callback:e.callbacks.onScroll,onTotalScroll_Callback:e.callbacks.onTotalScroll,onTotalScrollBack_Callback:e.callbacks.onTotalScrollBack,onTotalScroll_Offset:e.callbacks.onTotalScrollOffset,onTotalScrollBack_Offset:e.callbacks.onTotalScrollBackOffset,whileScrolling_Callback:e.callbacks.whileScrolling,bindEvent_scrollbar_drag:false,bindEvent_content_touch:false,bindEvent_scrollbar_click:false,bindEvent_mousewheel:false,bindEvent_buttonsContinuous_y:false,bindEvent_buttonsContinuous_x:false,bindEvent_buttonsPixels_y:false,bindEvent_buttonsPixels_x:false,bindEvent_focusin:false,bindEvent_autoHideScrollbar:false,mCSB_buttonScrollRight:false,mCSB_buttonScrollLeft:false,mCSB_buttonScrollDown:false,mCSB_buttonScrollUp:false});if(e.horizontalScroll){if(m.css("max-width")!=="none"){if(!e.advanced.updateOnContentResize){e.advanced.updateOnContentResize=true}}}else{if(m.css("max-height")!=="none"){var s=false,r=parseInt(m.css("max-height"));if(m.css("max-height").indexOf("%")>=0){s=r,r=m.parent().height()*s/100}m.css("overflow","hidden");g.css("max-height",r)}}m.mCustomScrollbar("update");if(e.advanced.updateOnBrowserResize){var i,j=c(window).width(),u=c(window).height();c(window).bind("resize."+m.data("mCustomScrollbarIndex"),function(){if(i){clearTimeout(i)}i=setTimeout(function(){if(!m.is(".mCS_disabled")&&!m.is(".mCS_destroyed")){var w=c(window).width(),v=c(window).height();if(j!==w||u!==v){if(m.css("max-height")!=="none"&&s){g.css("max-height",m.parent().height()*s/100)}m.mCustomScrollbar("update");j=w;u=v}}},150)})}if(e.advanced.updateOnContentResize){var p;if(e.horizontalScroll){var n=o.outerWidth()}else{var n=o.outerHeight()}p=setInterval(function(){if(e.horizontalScroll){if(e.advanced.autoExpandHorizontalScroll){o.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:o.outerWidth(),position:"relative"}).unwrap()}var v=o.outerWidth()}else{var v=o.outerHeight()}if(v!=n){m.mCustomScrollbar("update");n=v}},300)}})},update:function(){var n=c(this),k=n.children(".mCustomScrollBox"),q=k.children(".mCSB_container");q.removeClass("mCS_no_scrollbar");n.removeClass("mCS_disabled mCS_destroyed");k.scrollTop(0).scrollLeft(0);var y=k.children(".mCSB_scrollTools"),o=y.children(".mCSB_draggerContainer"),m=o.children(".mCSB_dragger");if(n.data("horizontalScroll")){var A=y.children(".mCSB_buttonLeft"),t=y.children(".mCSB_buttonRight"),f=k.width();if(n.data("autoExpandHorizontalScroll")){q.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:q.outerWidth(),position:"relative"}).unwrap()}var z=q.outerWidth()}else{var w=y.children(".mCSB_buttonUp"),g=y.children(".mCSB_buttonDown"),r=k.height(),i=q.outerHeight()}if(i>r&&!n.data("horizontalScroll")){y.css("display","block");var s=o.height();if(n.data("autoDraggerLength")){var u=Math.round(r/i*s),l=m.data("minDraggerHeight");if(u<=l){m.css({height:l})}else{if(u>=s-10){var p=s-10;m.css({height:p})}else{m.css({height:u})}}m.children(".mCSB_dragger_bar").css({"line-height":m.height()+"px"})}var B=m.height(),x=(i-r)/(s-B);n.data("scrollAmount",x).mCustomScrollbar("scrolling",k,q,o,m,w,g,A,t);var D=Math.abs(q.position().top);n.mCustomScrollbar("scrollTo",D,{scrollInertia:0,trigger:"internal"})}else{if(z>f&&n.data("horizontalScroll")){y.css("display","block");var h=o.width();if(n.data("autoDraggerLength")){var j=Math.round(f/z*h),C=m.data("minDraggerWidth");if(j<=C){m.css({width:C})}else{if(j>=h-10){var e=h-10;m.css({width:e})}else{m.css({width:j})}}}var v=m.width(),x=(z-f)/(h-v);n.data("scrollAmount",x).mCustomScrollbar("scrolling",k,q,o,m,w,g,A,t);var D=Math.abs(q.position().left);n.mCustomScrollbar("scrollTo",D,{scrollInertia:0,trigger:"internal"})}else{k.unbind("mousewheel focusin");if(n.data("horizontalScroll")){m.add(q).css("left",0)}else{m.add(q).css("top",0)}if(n.data("alwaysShowScrollbar")){if(!n.data("horizontalScroll")){m.css({height:o.height()})}else{if(n.data("horizontalScroll")){m.css({width:o.width()})}}}else{y.css("display","none");q.addClass("mCS_no_scrollbar")}n.data({bindEvent_mousewheel:false,bindEvent_focusin:false})}}},scrolling:function(i,q,n,k,A,f,D,w){var l=c(this);if(!l.data("bindEvent_scrollbar_drag")){var o,p,C,z,e;if(c.support.pointer){C="pointerdown";z="pointermove";e="pointerup"}else{if(c.support.msPointer){C="MSPointerDown";z="MSPointerMove";e="MSPointerUp"}}if(c.support.pointer||c.support.msPointer){k.bind(C,function(K){K.preventDefault();l.data({on_drag:true});k.addClass("mCSB_dragger_onDrag");var J=c(this),M=J.offset(),I=K.originalEvent.pageX-M.left,L=K.originalEvent.pageY-M.top;if(I<J.width()&&I>0&&L<J.height()&&L>0){o=L;p=I}});c(document).bind(z+"."+l.data("mCustomScrollbarIndex"),function(K){K.preventDefault();if(l.data("on_drag")){var J=k,M=J.offset(),I=K.originalEvent.pageX-M.left,L=K.originalEvent.pageY-M.top;G(o,p,L,I)}}).bind(e+"."+l.data("mCustomScrollbarIndex"),function(x){l.data({on_drag:false});k.removeClass("mCSB_dragger_onDrag")})}else{k.bind("mousedown touchstart",function(K){K.preventDefault();K.stopImmediatePropagation();var J=c(this),N=J.offset(),I,M;if(K.type==="touchstart"){var L=K.originalEvent.touches[0]||K.originalEvent.changedTouches[0];I=L.pageX-N.left;M=L.pageY-N.top}else{l.data({on_drag:true});k.addClass("mCSB_dragger_onDrag");I=K.pageX-N.left;M=K.pageY-N.top}if(I<J.width()&&I>0&&M<J.height()&&M>0){o=M;p=I}}).bind("touchmove",function(K){K.preventDefault();K.stopImmediatePropagation();var N=K.originalEvent.touches[0]||K.originalEvent.changedTouches[0],J=c(this),M=J.offset(),I=N.pageX-M.left,L=N.pageY-M.top;G(o,p,L,I)});c(document).bind("mousemove."+l.data("mCustomScrollbarIndex"),function(K){if(l.data("on_drag")){var J=k,M=J.offset(),I=K.pageX-M.left,L=K.pageY-M.top;G(o,p,L,I)}}).bind("mouseup."+l.data("mCustomScrollbarIndex"),function(x){l.data({on_drag:false});k.removeClass("mCSB_dragger_onDrag")})}l.data({bindEvent_scrollbar_drag:true})}function G(J,K,L,I){if(l.data("horizontalScroll")){l.mCustomScrollbar("scrollTo",(k.position().left-(K))+I,{moveDragger:true,trigger:"internal"})}else{l.mCustomScrollbar("scrollTo",(k.position().top-(J))+L,{moveDragger:true,trigger:"internal"})}}if(c.support.touch&&l.data("contentTouchScroll")){if(!l.data("bindEvent_content_touch")){var m,E,s,t,v,F,H;q.bind("touchstart",function(x){x.stopImmediatePropagation();m=x.originalEvent.touches[0]||x.originalEvent.changedTouches[0];E=c(this);s=E.offset();v=m.pageX-s.left;t=m.pageY-s.top;F=t;H=v});q.bind("touchmove",function(x){x.preventDefault();x.stopImmediatePropagation();m=x.originalEvent.touches[0]||x.originalEvent.changedTouches[0];E=c(this).parent();s=E.offset();v=m.pageX-s.left;t=m.pageY-s.top;if(l.data("horizontalScroll")){l.mCustomScrollbar("scrollTo",H-v,{trigger:"internal"})}else{l.mCustomScrollbar("scrollTo",F-t,{trigger:"internal"})}})}}if(!l.data("bindEvent_scrollbar_click")){n.bind("click",function(I){var x=(I.pageY-n.offset().top)*l.data("scrollAmount"),y=c(I.target);if(l.data("horizontalScroll")){x=(I.pageX-n.offset().left)*l.data("scrollAmount")}if(y.hasClass("mCSB_draggerContainer")||y.hasClass("mCSB_draggerRail")){l.mCustomScrollbar("scrollTo",x,{trigger:"internal",scrollEasing:"draggerRailEase"})}});l.data({bindEvent_scrollbar_click:true})}if(l.data("mouseWheel")){if(!l.data("bindEvent_mousewheel")){i.bind("mousewheel",function(K,M){var J,I=l.data("mouseWheelPixels"),x=Math.abs(q.position().top),L=k.position().top,y=n.height()-k.height();if(l.data("normalizeMouseWheelDelta")){if(M<0){M=-1}else{M=1}}if(I==="auto"){I=100+Math.round(l.data("scrollAmount")/2)}if(l.data("horizontalScroll")){L=k.position().left;y=n.width()-k.width();x=Math.abs(q.position().left)}if((M>0&&L!==0)||(M<0&&L!==y)){K.preventDefault();K.stopImmediatePropagation()}J=x-(M*I);l.mCustomScrollbar("scrollTo",J,{trigger:"internal"})});l.data({bindEvent_mousewheel:true})}}if(l.data("scrollButtons_enable")){if(l.data("scrollButtons_scrollType")==="pixels"){if(l.data("horizontalScroll")){w.add(D).unbind("mousedown touchstart MSPointerDown pointerdown mouseup MSPointerUp pointerup mouseout MSPointerOut pointerout touchend",j,h);l.data({bindEvent_buttonsContinuous_x:false});if(!l.data("bindEvent_buttonsPixels_x")){w.bind("click",function(x){x.preventDefault();r(Math.abs(q.position().left)+l.data("scrollButtons_scrollAmount"))});D.bind("click",function(x){x.preventDefault();r(Math.abs(q.position().left)-l.data("scrollButtons_scrollAmount"))});l.data({bindEvent_buttonsPixels_x:true})}}else{f.add(A).unbind("mousedown touchstart MSPointerDown pointerdown mouseup MSPointerUp pointerup mouseout MSPointerOut pointerout touchend",j,h);l.data({bindEvent_buttonsContinuous_y:false});if(!l.data("bindEvent_buttonsPixels_y")){f.bind("click",function(x){x.preventDefault();r(Math.abs(q.position().top)+l.data("scrollButtons_scrollAmount"))});A.bind("click",function(x){x.preventDefault();r(Math.abs(q.position().top)-l.data("scrollButtons_scrollAmount"))});l.data({bindEvent_buttonsPixels_y:true})}}function r(x){if(!k.data("preventAction")){k.data("preventAction",true);l.mCustomScrollbar("scrollTo",x,{trigger:"internal"})}}}else{if(l.data("horizontalScroll")){w.add(D).unbind("click");l.data({bindEvent_buttonsPixels_x:false});if(!l.data("bindEvent_buttonsContinuous_x")){w.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=B();l.data({mCSB_buttonScrollRight:setInterval(function(){l.mCustomScrollbar("scrollTo",Math.abs(q.position().left)+x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var j=function(x){x.preventDefault();clearInterval(l.data("mCSB_buttonScrollRight"))};w.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",j);D.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=B();l.data({mCSB_buttonScrollLeft:setInterval(function(){l.mCustomScrollbar("scrollTo",Math.abs(q.position().left)-x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var h=function(x){x.preventDefault();clearInterval(l.data("mCSB_buttonScrollLeft"))};D.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",h);l.data({bindEvent_buttonsContinuous_x:true})}}else{f.add(A).unbind("click");l.data({bindEvent_buttonsPixels_y:false});if(!l.data("bindEvent_buttonsContinuous_y")){f.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=B();l.data({mCSB_buttonScrollDown:setInterval(function(){l.mCustomScrollbar("scrollTo",Math.abs(q.position().top)+x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var u=function(x){x.preventDefault();clearInterval(l.data("mCSB_buttonScrollDown"))};f.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",u);A.bind("mousedown touchstart MSPointerDown pointerdown",function(y){y.preventDefault();var x=B();l.data({mCSB_buttonScrollUp:setInterval(function(){l.mCustomScrollbar("scrollTo",Math.abs(q.position().top)-x,{trigger:"internal",scrollEasing:"easeOutCirc"})},17)})});var g=function(x){x.preventDefault();clearInterval(l.data("mCSB_buttonScrollUp"))};A.bind("mouseup touchend MSPointerUp pointerup mouseout MSPointerOut pointerout",g);l.data({bindEvent_buttonsContinuous_y:true})}}function B(){var x=l.data("scrollButtons_scrollSpeed");if(l.data("scrollButtons_scrollSpeed")==="auto"){x=Math.round((l.data("scrollInertia")+100)/40)}return x}}}if(l.data("autoScrollOnFocus")){if(!l.data("bindEvent_focusin")){i.bind("focusin",function(){i.scrollTop(0).scrollLeft(0);var x=c(document.activeElement);if(x.is("input,textarea,select,button,a[tabindex],area,object")){var J=q.position().top,y=x.position().top,I=i.height()-x.outerHeight();if(l.data("horizontalScroll")){J=q.position().left;y=x.position().left;I=i.width()-x.outerWidth()}if(J+y<0||J+y>I){l.mCustomScrollbar("scrollTo",y,{trigger:"internal"})}}});l.data({bindEvent_focusin:true})}}if(l.data("autoHideScrollbar")&&!l.data("alwaysShowScrollbar")){if(!l.data("bindEvent_autoHideScrollbar")){i.bind("mouseenter",function(x){i.addClass("mCS-mouse-over");d.showScrollbar.call(i.children(".mCSB_scrollTools"))}).bind("mouseleave touchend",function(x){i.removeClass("mCS-mouse-over");if(x.type==="mouseleave"){d.hideScrollbar.call(i.children(".mCSB_scrollTools"))}});l.data({bindEvent_autoHideScrollbar:true})}}},scrollTo:function(e,f){var i=c(this),o={moveDragger:false,trigger:"external",callbacks:true,scrollInertia:i.data("scrollInertia"),scrollEasing:i.data("scrollEasing")},f=c.extend(o,f),p,g=i.children(".mCustomScrollBox"),k=g.children(".mCSB_container"),r=g.children(".mCSB_scrollTools"),j=r.children(".mCSB_draggerContainer"),h=j.children(".mCSB_dragger"),t=draggerSpeed=f.scrollInertia,q,s,m,l;if(!k.hasClass("mCS_no_scrollbar")){i.data({mCS_trigger:f.trigger});if(i.data("mCS_Init")){f.callbacks=false}if(e||e===0){if(typeof(e)==="number"){if(f.moveDragger){p=e;if(i.data("horizontalScroll")){e=h.position().left*i.data("scrollAmount")}else{e=h.position().top*i.data("scrollAmount")}draggerSpeed=0}else{p=e/i.data("scrollAmount")}}else{if(typeof(e)==="string"){var v;if(e==="top"){v=0}else{if(e==="bottom"&&!i.data("horizontalScroll")){v=k.outerHeight()-g.height()}else{if(e==="left"){v=0}else{if(e==="right"&&i.data("horizontalScroll")){v=k.outerWidth()-g.width()}else{if(e==="first"){v=i.find(".mCSB_container").find(":first")}else{if(e==="last"){v=i.find(".mCSB_container").find(":last")}else{v=i.find(e)}}}}}}if(v.length===1){if(i.data("horizontalScroll")){e=v.position().left}else{e=v.position().top}p=e/i.data("scrollAmount")}else{p=e=v}}}if(i.data("horizontalScroll")){if(i.data("onTotalScrollBack_Offset")){s=-i.data("onTotalScrollBack_Offset")}if(i.data("onTotalScroll_Offset")){l=g.width()-k.outerWidth()+i.data("onTotalScroll_Offset")}if(p<0){p=e=0;clearInterval(i.data("mCSB_buttonScrollLeft"));if(!s){q=true}}else{if(p>=j.width()-h.width()){p=j.width()-h.width();e=g.width()-k.outerWidth();clearInterval(i.data("mCSB_buttonScrollRight"));if(!l){m=true}}else{e=-e}}var n=i.data("snapAmount");if(n){e=Math.round(e/n)*n-i.data("snapOffset")}d.mTweenAxis.call(this,h[0],"left",Math.round(p),draggerSpeed,f.scrollEasing);d.mTweenAxis.call(this,k[0],"left",Math.round(e),t,f.scrollEasing,{onStart:function(){if(f.callbacks&&!i.data("mCS_tweenRunning")){u("onScrollStart")}if(i.data("autoHideScrollbar")&&!i.data("alwaysShowScrollbar")){d.showScrollbar.call(r)}},onUpdate:function(){if(f.callbacks){u("whileScrolling")}},onComplete:function(){if(f.callbacks){u("onScroll");if(q||(s&&k.position().left>=s)){u("onTotalScrollBack")}if(m||(l&&k.position().left<=l)){u("onTotalScroll")}}h.data("preventAction",false);i.data("mCS_tweenRunning",false);if(i.data("autoHideScrollbar")&&!i.data("alwaysShowScrollbar")){if(!g.hasClass("mCS-mouse-over")){d.hideScrollbar.call(r)}}}})}else{if(i.data("onTotalScrollBack_Offset")){s=-i.data("onTotalScrollBack_Offset")}if(i.data("onTotalScroll_Offset")){l=g.height()-k.outerHeight()+i.data("onTotalScroll_Offset")}if(p<0){p=e=0;clearInterval(i.data("mCSB_buttonScrollUp"));if(!s){q=true}}else{if(p>=j.height()-h.height()){p=j.height()-h.height();e=g.height()-k.outerHeight();clearInterval(i.data("mCSB_buttonScrollDown"));if(!l){m=true}}else{e=-e}}var n=i.data("snapAmount");if(n){e=Math.round(e/n)*n-i.data("snapOffset")}d.mTweenAxis.call(this,h[0],"top",Math.round(p),draggerSpeed,f.scrollEasing);d.mTweenAxis.call(this,k[0],"top",Math.round(e),t,f.scrollEasing,{onStart:function(){if(f.callbacks&&!i.data("mCS_tweenRunning")){u("onScrollStart")}if(i.data("autoHideScrollbar")&&!i.data("alwaysShowScrollbar")){d.showScrollbar.call(r)}},onUpdate:function(){if(f.callbacks){u("whileScrolling")}},onComplete:function(){if(f.callbacks){u("onScroll");if(q||(s&&k.position().top>=s)){u("onTotalScrollBack")}if(m||(l&&k.position().top<=l)){u("onTotalScroll")}}h.data("preventAction",false);i.data("mCS_tweenRunning",false);if(i.data("autoHideScrollbar")&&!i.data("alwaysShowScrollbar")){if(!g.hasClass("mCS-mouse-over")){d.hideScrollbar.call(r)}}}})}if(i.data("mCS_Init")){i.data({mCS_Init:false})}}}function u(w){if(i.data("mCustomScrollbarIndex")){this.mcs={top:k.position().top,left:k.position().left,draggerTop:h.position().top,draggerLeft:h.position().left,topPct:Math.round((100*Math.abs(k.position().top))/Math.abs(k.outerHeight()-g.height())),leftPct:Math.round((100*Math.abs(k.position().left))/Math.abs(k.outerWidth()-g.width()))};switch(w){case"onScrollStart":i.data("mCS_tweenRunning",true).data("onScrollStart_Callback").call(i,this.mcs);break;case"whileScrolling":i.data("whileScrolling_Callback").call(i,this.mcs);break;case"onScroll":i.data("onScroll_Callback").call(i,this.mcs);break;case"onTotalScrollBack":i.data("onTotalScrollBack_Callback").call(i,this.mcs);break;case"onTotalScroll":i.data("onTotalScroll_Callback").call(i,this.mcs);break}}}},stop:function(){var g=c(this),e=g.children().children(".mCSB_container"),f=g.children().children().children().children(".mCSB_dragger");d.mTweenAxisStop.call(this,e[0]);d.mTweenAxisStop.call(this,f[0])},disable:function(e){var j=c(this),f=j.children(".mCustomScrollBox"),h=f.children(".mCSB_container"),g=f.children(".mCSB_scrollTools"),i=g.children().children(".mCSB_dragger");f.unbind("mousewheel focusin mouseenter mouseleave touchend");h.unbind("touchstart touchmove");if(e){if(j.data("horizontalScroll")){i.add(h).css("left",0)}else{i.add(h).css("top",0)}}g.css("display","none");h.addClass("mCS_no_scrollbar");j.data({bindEvent_mousewheel:false,bindEvent_focusin:false,bindEvent_content_touch:false,bindEvent_autoHideScrollbar:false}).addClass("mCS_disabled")},destroy:function(){var e=c(this);e.removeClass("mCustomScrollbar _mCS_"+e.data("mCustomScrollbarIndex")).addClass("mCS_destroyed").children().children(".mCSB_container").unwrap().children().unwrap().siblings(".mCSB_scrollTools").remove();c(document).unbind("mousemove."+e.data("mCustomScrollbarIndex")+" mouseup."+e.data("mCustomScrollbarIndex")+" MSPointerMove."+e.data("mCustomScrollbarIndex")+" MSPointerUp."+e.data("mCustomScrollbarIndex"));c(window).unbind("resize."+e.data("mCustomScrollbarIndex"))}},d={showScrollbar:function(){this.stop().animate({opacity:1},"fast")},hideScrollbar:function(){this.stop().animate({opacity:0},"fast")},mTweenAxis:function(g,i,h,f,o,y){var y=y||{},v=y.onStart||function(){},p=y.onUpdate||function(){},w=y.onComplete||function(){};var n=t(),l,j=0,r=g.offsetTop,s=g.style;if(i==="left"){r=g.offsetLeft}var m=h-r;q();e();function t(){if(window.performance&&window.performance.now){return window.performance.now()}else{if(window.performance&&window.performance.webkitNow){return window.performance.webkitNow()}else{if(Date.now){return Date.now()}else{return new Date().getTime()}}}}function x(){if(!j){v.call()}j=t()-n;u();if(j>=g._time){g._time=(j>g._time)?j+l-(j-g._time):j+l-1;if(g._time<j+1){g._time=j+1}}if(g._time<f){g._id=_request(x)}else{w.call()}}function u(){if(f>0){g.currVal=k(g._time,r,m,f,o);s[i]=Math.round(g.currVal)+"px"}else{s[i]=h+"px"}p.call()}function e(){l=1000/60;g._time=j+l;_request=(!window.requestAnimationFrame)?function(z){u();return setTimeout(z,0.01)}:window.requestAnimationFrame;g._id=_request(x)}function q(){if(g._id==null){return}if(!window.requestAnimationFrame){clearTimeout(g._id)}else{window.cancelAnimationFrame(g._id)}g._id=null}function k(B,A,F,E,C){switch(C){case"linear":return F*B/E+A;break;case"easeOutQuad":B/=E;return -F*B*(B-2)+A;break;case"easeInOutQuad":B/=E/2;if(B<1){return F/2*B*B+A}B--;return -F/2*(B*(B-2)-1)+A;break;case"easeOutCubic":B/=E;B--;return F*(B*B*B+1)+A;break;case"easeOutQuart":B/=E;B--;return -F*(B*B*B*B-1)+A;break;case"easeOutQuint":B/=E;B--;return F*(B*B*B*B*B+1)+A;break;case"easeOutCirc":B/=E;B--;return F*Math.sqrt(1-B*B)+A;break;case"easeOutSine":return F*Math.sin(B/E*(Math.PI/2))+A;break;case"easeOutExpo":return F*(-Math.pow(2,-10*B/E)+1)+A;break;case"mcsEaseOut":var D=(B/=E)*B,z=D*B;return A+F*(0.499999999999997*z*D+-2.5*D*D+5.5*z+-6.5*D+4*B);break;case"draggerRailEase":B/=E/2;if(B<1){return F/2*B*B*B+A}B-=2;return F/2*(B*B*B+2)+A;break}}},mTweenAxisStop:function(e){if(e._id==null){return}if(!window.requestAnimationFrame){clearTimeout(e._id)}else{window.cancelAnimationFrame(e._id)}e._id=null},rafPolyfill:function(){var f=["ms","moz","webkit","o"],e=f.length;while(--e>-1&&!window.requestAnimationFrame){window.requestAnimationFrame=window[f[e]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[f[e]+"CancelAnimationFrame"]||window[f[e]+"CancelRequestAnimationFrame"]}}};d.rafPolyfill.call();c.support.touch=!!("ontouchstart" in window);c.support.pointer=window.navigator.pointerEnabled;c.support.msPointer=window.navigator.msPointerEnabled;var a=("https:"==document.location.protocol)?"https:":"http:";c.event.special.mousewheel||document.write('<script src="'+a+'//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.0.6/jquery.mousewheel.min.js"><\/script>');c.fn.mCustomScrollbar=function(e){if(b[e]){return b[e].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof e==="object"||!e){return b.init.apply(this,arguments)}else{c.error("Method "+e+" does not exist")}}}})(jQuery);/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
 * Licensed under the MIT License (LICENSE.txt).
 *
 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
 * Thanks to: Seamus Leahy for adding deltaX and deltaY
 *
 * Version: 3.0.6
 * 
 * Requires: 1.2.2+
 */
(function(f){function g(a){var n=a||window.event,m=[].slice.call(arguments,1),l=0,k=!0,j=0,i=0;return a=f.event.fix(n),a.type="mousewheel",n.wheelDelta&&(l=n.wheelDelta/120),n.detail&&(l=-n.detail/3),i=l,n.axis!==undefined&&n.axis===n.HORIZONTAL_AXIS&&(i=0,j=-1*l),n.wheelDeltaY!==undefined&&(i=n.wheelDeltaY/120),n.wheelDeltaX!==undefined&&(j=-1*n.wheelDeltaX/120),m.unshift(a,l,j,i),(f.event.dispatch||f.event.handle).apply(this,m)}var e=["DOMMouseScroll","mousewheel"];if(f.event.fixHooks){for(var h=e.length;h;){f.event.fixHooks[e[--h]]=f.event.mouseHooks}}f.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var b=e.length;b;){this.addEventListener(e[--b],g,!1)}}else{this.onmousewheel=g}},teardown:function(){if(this.removeEventListener){for(var b=e.length;b;){this.removeEventListener(e[--b],g,!1)}}else{this.onmousewheel=null}}},f.fn.extend({mousewheel:function(b){return b?this.bind("mousewheel",b):this.trigger("mousewheel")},unmousewheel:function(b){return this.unbind("mousewheel",b)}})})(jQuery);/*! jQuery Validation Plugin - v1.17.0 - 7/29/2017
 * https://jqueryvalidation.org/
 * Copyright (c) 2017 Jörn Zaefferer; Licensed MIT */
;!function(b){"function"==typeof define&&define.amd?define(["jquery"],b):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(jQuery)}(function(e){e.extend(e.fn,{validate:function(a){if(!this.length){return void (a&&a.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."))}var g=e.data(this[0],"validator");return g?g:(this.attr("novalidate","novalidate"),g=new e.validator(a,this[0]),e.data(this[0],"validator",g),g.settings.onsubmit&&(this.on("click.validate",":submit",function(c){g.submitButton=c.currentTarget,e(this).hasClass("cancel")&&(g.cancelSubmit=!0),void 0!==e(this).attr("formnovalidate")&&(g.cancelSubmit=!0)}),this.on("submit.validate",function(c){function h(){var i,b;return g.submitButton&&(g.settings.submitHandler||g.formSubmitted)&&(i=e("<input type='hidden'/>").attr("name",g.submitButton.name).val(e(g.submitButton).val()).appendTo(g.currentForm)),!g.settings.submitHandler||(b=g.settings.submitHandler.call(g,g.currentForm,c),i&&i.remove(),void 0!==b&&b)}return g.settings.debug&&c.preventDefault(),g.cancelSubmit?(g.cancelSubmit=!1,h()):g.form()?g.pendingRequest?(g.formSubmitted=!0,!1):h():(g.focusInvalid(),!1)})),g)},valid:function(){var a,h,g;return e(this[0]).is("form")?a=this.validate().form():(g=[],a=!0,h=e(this[0].form).validate(),this.each(function(){a=h.element(this)&&a,a||(g=g.concat(h.errorList))}),h.errorList=g),a},rules:function(r,q){var p,o,n,m,l,k,a=this[0];if(null!=a&&(!a.form&&a.hasAttribute("contenteditable")&&(a.form=this.closest("form")[0],a.name=this.attr("name")),null!=a.form)){if(r){switch(p=e.data(a.form,"validator").settings,o=p.rules,n=e.validator.staticRules(a),r){case"add":e.extend(n,e.validator.normalizeRule(q)),delete n.messages,o[a.name]=n,q.messages&&(p.messages[a.name]=e.extend(p.messages[a.name],q.messages));break;case"remove":return q?(k={},e.each(q.split(/\s/),function(g,c){k[c]=n[c],delete n[c]}),k):(delete o[a.name],n)}}return m=e.validator.normalizeRules(e.extend({},e.validator.classRules(a),e.validator.attributeRules(a),e.validator.dataRules(a),e.validator.staticRules(a)),a),m.required&&(l=m.required,delete m.required,m=e.extend({required:l},m)),m.remote&&(l=m.remote,delete m.remote,m=e.extend(m,{remote:l})),m}}}),e.extend(e.expr.pseudos||e.expr[":"],{blank:function(a){return !e.trim(""+e(a).val())},filled:function(a){var g=e(a).val();return null!==g&&!!e.trim(""+g)},unchecked:function(a){return !e(a).prop("checked")}}),e.validator=function(a,g){this.settings=e.extend(!0,{},e.validator.defaults,a),this.currentForm=g,this.init()},e.validator.format=function(a,g){return 1===arguments.length?function(){var b=e.makeArray(arguments);return b.unshift(a),e.validator.format.apply(this,b)}:void 0===g?a:(arguments.length>2&&g.constructor!==Array&&(g=e.makeArray(arguments).slice(1)),g.constructor!==Array&&(g=[g]),e.each(g,function(b,h){a=a.replace(new RegExp("\\{"+b+"\\}","g"),function(){return h})}),a)},e.extend(e.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:e([]),errorLabelContainer:e([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(b){this.lastActive=b,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,b,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(b)))},onfocusout:function(b){this.checkable(b)||!(b.name in this.submitted)&&this.optional(b)||this.element(b)},onkeyup:function(a,h){var g=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===h.which&&""===this.elementValue(a)||e.inArray(h.keyCode,g)!==-1||(a.name in this.submitted||a.name in this.invalid)&&this.element(a)},onclick:function(b){b.name in this.submitted?this.element(b):b.parentNode.name in this.submitted&&this.element(b.parentNode)},highlight:function(a,h,g){"radio"===a.type?this.findByName(a.name).addClass(h).removeClass(g):e(a).addClass(h).removeClass(g)},unhighlight:function(a,h,g){"radio"===a.type?this.findByName(a.name).removeClass(h).addClass(g):e(a).removeClass(h).addClass(g)}},setDefaults:function(a){e.extend(e.validator.defaults,a)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:e.validator.format("Please enter no more than {0} characters."),minlength:e.validator.format("Please enter at least {0} characters."),rangelength:e.validator.format("Please enter a value between {0} and {1} characters long."),range:e.validator.format("Please enter a value between {0} and {1}."),max:e.validator.format("Please enter a value less than or equal to {0}."),min:e.validator.format("Please enter a value greater than or equal to {0}."),step:e.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function a(i){!this.form&&this.hasAttribute("contenteditable")&&(this.form=e(this).closest("form")[0],this.name=e(this).attr("name"));var l=e.data(this.form,"validator"),k="on"+i.type.replace(/^validate/,""),j=l.settings;j[k]&&!e(this).is(j.ignore)&&j[k].call(l,this,i)}this.labelContainer=e(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||e(this.currentForm),this.containers=e(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var h,g=this.groups={};e.each(this.settings.groups,function(i,j){"string"==typeof j&&(j=j.split(/\s/)),e.each(j,function(b,k){g[k]=i})}),h=this.settings.rules,e.each(h,function(c,i){h[c]=e.validator.normalizeRule(i)}),e(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",a).on("click.validate","select, option, [type='radio'], [type='checkbox']",a),this.settings.invalidHandler&&e(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),e.extend(this.submitted,this.errorMap),this.invalid=e.extend({},this.errorMap),this.valid()||e(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var g=0,c=this.currentElements=this.elements();c[g];g++){this.check(c[g])}return this.valid()},element:function(a){var n,m,l=this.clean(a),k=this.validationTargetFor(l),j=this,i=!0;return void 0===k?delete this.invalid[l.name]:(this.prepareElement(k),this.currentElements=e(k),m=this.groups[k.name],m&&e.each(this.groups,function(g,c){c===m&&g!==k.name&&(l=j.validationTargetFor(j.clean(j.findByName(g))),l&&l.name in j.invalid&&(j.currentElements.push(l),i=j.check(l)&&i))}),n=this.check(k)!==!1,i=i&&n,n?this.invalid[k.name]=!1:this.invalid[k.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),e(a).attr("aria-invalid",!n)),i},showErrors:function(a){if(a){var g=this;e.extend(this.errorMap,a),this.errorList=e.map(this.errorMap,function(h,c){return{message:h,element:g.findByName(c)[0]}}),this.successList=e.grep(this.successList,function(b){return !(b.name in a)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){e.fn.resetForm&&e(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var a=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(a)},resetElements:function(g){var c;if(this.settings.unhighlight){for(c=0;g[c];c++){this.settings.unhighlight.call(this,g[c],this.settings.errorClass,""),this.findByName(g[c].name).removeClass(this.settings.validClass)}}else{g.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)}},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(h){var g,i=0;for(g in h){void 0!==h[g]&&null!==h[g]&&h[g]!==!1&&i++}return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(b){b.not(this.containers).text(""),this.addWrapper(b).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{e(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(a){}}},findLastActive:function(){var a=this.lastActive;return a&&1===e.grep(this.errorList,function(b){return b.element.name===a.name}).length&&a},elements:function(){var a=this,g={};return e(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var b=this.name||e(this).attr("name");return !b&&a.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=e(this).closest("form")[0],this.name=b),!(b in g||!a.objectLength(e(this).rules()))&&(g[b]=!0,!0)})},clean:function(a){return e(a)[0]},errors:function(){var a=this.settings.errorClass.split(" ").join(".");return e(this.settings.errorElement+"."+a,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=e([]),this.toHide=e([])},reset:function(){this.resetInternals(),this.currentElements=e([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(b){this.reset(),this.toHide=this.errorsFor(b)},elementValue:function(a){var j,i,h=e(a),g=a.type;return"radio"===g||"checkbox"===g?this.findByName(a.name).filter(":checked").val():"number"===g&&"undefined"!=typeof a.validity?a.validity.badInput?"NaN":h.val():(j=a.hasAttribute("contenteditable")?h.text():h.val(),"file"===g?"C:\\fakepath\\"===j.substr(0,12)?j.substr(12):(i=j.lastIndexOf("/"),i>=0?j.substr(i+1):(i=j.lastIndexOf("\\"),i>=0?j.substr(i+1):j)):"string"==typeof j?j.replace(/\r/g,""):j)},check:function(t){t=this.validationTargetFor(this.clean(t));var s,r,q,p,o=e(t).rules(),n=e.map(o,function(g,c){return c}).length,m=!1,l=this.elementValue(t);if("function"==typeof o.normalizer?p=o.normalizer:"function"==typeof this.settings.normalizer&&(p=this.settings.normalizer),p){if(l=p.call(t,l),"string"!=typeof l){throw new TypeError("The normalizer should return a string value.")}delete o.normalizer}for(r in o){q={method:r,parameters:o[r]};try{if(s=e.validator.methods[r].call(this,l,t,q.parameters),"dependency-mismatch"===s&&1===n){m=!0;continue}if(m=!1,"pending"===s){return void (this.toHide=this.toHide.not(this.errorsFor(t)))}if(!s){return this.formatAndAdd(t,q),!1}}catch(a){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+q.method+"' method.",a),a instanceof TypeError&&(a.message+=".  Exception occurred when checking element "+t.id+", check the '"+q.method+"' method."),a}}if(!m){return this.objectLength(o)&&this.successList.push(t),!0}},customDataMessage:function(a,g){return e(a).data("msg"+g.charAt(0).toUpperCase()+g.substring(1).toLowerCase())||e(a).data("msg")},customMessage:function(h,g){var i=this.settings.messages[h];return i&&(i.constructor===String?i:i[g])},findDefined:function(){for(var b=0;b<arguments.length;b++){if(void 0!==arguments[b]){return arguments[b]}}},defaultMessage:function(a,i){"string"==typeof i&&(i={method:i});var h=this.findDefined(this.customMessage(a.name,i.method),this.customDataMessage(a,i.method),!this.settings.ignoreTitle&&a.title||void 0,e.validator.messages[i.method],"<strong>Warning: No message defined for "+a.name+"</strong>"),g=/\$?\{(\d+)\}/g;return"function"==typeof h?h=h.call(this,i.parameters,a):g.test(h)&&(h=e.validator.format(h.replace(g,"{$1}"),i.parameters)),h},formatAndAdd:function(h,g){var i=this.defaultMessage(h,g);this.errorList.push({message:i,element:h,method:g.method}),this.errorMap[h.name]=i,this.submitted[h.name]=i},addWrapper:function(b){return this.settings.wrapper&&(b=b.add(b.parent(this.settings.wrapper))),b},defaultShowErrors:function(){var h,g,i;for(h=0;this.errorList[h];h++){i=this.errorList[h],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success){for(h=0;this.successList[h];h++){this.showLabel(this.successList[h])}}if(this.settings.unhighlight){for(h=0,g=this.validElements();g[h];h++){this.settings.unhighlight.call(this,g[h],this.settings.errorClass,this.settings.validClass)}}this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return e(this.errorList).map(function(){return this.element})},showLabel:function(r,q){var p,o,n,m,l=this.errorsFor(r),k=this.idOrName(r),a=e(r).attr("aria-describedby");l.length?(l.removeClass(this.settings.validClass).addClass(this.settings.errorClass),l.html(q)):(l=e("<"+this.settings.errorElement+">").attr("id",k+"-error").addClass(this.settings.errorClass).html(q||""),p=l,this.settings.wrapper&&(p=l.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(p):this.settings.errorPlacement?this.settings.errorPlacement.call(this,p,e(r)):p.insertAfter(r),l.is("label")?l.attr("for",k):0===l.parents("label[for='"+this.escapeCssMeta(k)+"']").length&&(n=l.attr("id"),a?a.match(new RegExp("\\b"+this.escapeCssMeta(n)+"\\b"))||(a+=" "+n):a=n,e(r).attr("aria-describedby",a),o=this.groups[r.name],o&&(m=this,e.each(m.groups,function(g,h){h===o&&e("[name='"+m.escapeCssMeta(g)+"']",m.currentForm).attr("aria-describedby",l.attr("id"))})))),!q&&this.settings.success&&(l.text(""),"string"==typeof this.settings.success?l.addClass(this.settings.success):this.settings.success(l,r)),this.toShow=this.toShow.add(l)},errorsFor:function(a){var i=this.escapeCssMeta(this.idOrName(a)),h=e(a).attr("aria-describedby"),g="label[for='"+i+"'], label[for='"+i+"'] *";return h&&(g=g+", #"+this.escapeCssMeta(h).replace(/\s+/g,", #")),this.errors().filter(g)},escapeCssMeta:function(b){return b.replace(/([\\!"#$%&'()*+,.\/:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(b){return this.groups[b.name]||(this.checkable(b)?b.name:b.id||b.name)},validationTargetFor:function(a){return this.checkable(a)&&(a=this.findByName(a.name)),e(a).not(this.settings.ignore)[0]},checkable:function(b){return/radio|checkbox/i.test(b.type)},findByName:function(a){return e(this.currentForm).find("[name='"+this.escapeCssMeta(a)+"']")},getLength:function(a,g){switch(g.nodeName.toLowerCase()){case"select":return e("option:selected",g).length;case"input":if(this.checkable(g)){return this.findByName(g.name).filter(":checked").length}}return a.length},depend:function(g,c){return !this.dependTypes[typeof g]||this.dependTypes[typeof g](g,c)},dependTypes:{"boolean":function(b){return b},string:function(a,g){return !!e(a,g.form).length},"function":function(g,c){return g(c)}},optional:function(a){var g=this.elementValue(a);return !e.validator.methods.required.call(this,g,a)&&"dependency-mismatch"},startRequest:function(a){this.pending[a.name]||(this.pendingRequest++,e(a).addClass(this.settings.pendingClass),this.pending[a.name]=!0)},stopRequest:function(a,g){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[a.name],e(a).removeClass(this.settings.pendingClass),g&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(e(this.currentForm).submit(),this.submitButton&&e("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!g&&0===this.pendingRequest&&this.formSubmitted&&(e(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(a,g){return g="string"==typeof g&&g||"remote",e.data(a,"previousValue")||e.data(a,"previousValue",{old:null,valid:!0,message:this.defaultMessage(a,{method:g})})},destroy:function(){this.resetForm(),e(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(a,g){a.constructor===String?this.classRuleSettings[a]=g:e.extend(this.classRuleSettings,a)},classRules:function(a){var h={},g=e(a).attr("class");return g&&e.each(g.split(" "),function(){this in e.validator.classRuleSettings&&e.extend(h,e.validator.classRuleSettings[this])}),h},normalizeAttributeRule:function(h,g,j,i){/min|max|step/.test(j)&&(null===g||/number|range|text/.test(g))&&(i=Number(i),isNaN(i)&&(i=void 0)),i||0===i?h[j]=i:g===j&&"range"!==g&&(h[j]=!0)},attributeRules:function(a){var l,k,j={},i=e(a),h=a.getAttribute("type");for(l in e.validator.methods){"required"===l?(k=a.getAttribute(l),""===k&&(k=!0),k=!!k):k=i.attr(l),this.normalizeAttributeRule(j,h,l,k)}return j.maxlength&&/-1|2147483647|524288/.test(j.maxlength)&&delete j.maxlength,j},dataRules:function(a){var l,k,j={},i=e(a),h=a.getAttribute("type");for(l in e.validator.methods){k=i.data("rule"+l.charAt(0).toUpperCase()+l.substring(1).toLowerCase()),this.normalizeAttributeRule(j,h,l,k)}return j},staticRules:function(a){var h={},g=e.data(a.form,"validator");return g.settings.rules&&(h=e.validator.normalizeRule(g.settings.rules[a.name])||{}),h},normalizeRules:function(a,g){return e.each(a,function(h,c){if(c===!1){return void delete a[h]}if(c.param||c.depends){var b=!0;switch(typeof c.depends){case"string":b=!!e(c.depends,g.form).length;break;case"function":b=c.depends.call(g,g)}b?a[h]=void 0===c.param||c.param:(e.data(g.form,"validator").resetElements(e(g)),delete a[h])}}),e.each(a,function(c,b){a[c]=e.isFunction(b)&&"normalizer"!==c?b(g):b}),e.each(["minlength","maxlength"],function(){a[this]&&(a[this]=Number(a[this]))}),e.each(["rangelength","range"],function(){var b;a[this]&&(e.isArray(a[this])?a[this]=[Number(a[this][0]),Number(a[this][1])]:"string"==typeof a[this]&&(b=a[this].replace(/[\[\]]/g,"").split(/[\s,]+/),a[this]=[Number(b[0]),Number(b[1])]))}),e.validator.autoCreateRanges&&(null!=a.min&&null!=a.max&&(a.range=[a.min,a.max],delete a.min,delete a.max),null!=a.minlength&&null!=a.maxlength&&(a.rangelength=[a.minlength,a.maxlength],delete a.minlength,delete a.maxlength)),a},normalizeRule:function(a){if("string"==typeof a){var g={};e.each(a.split(/\s/),function(){g[this]=!0}),a=g}return a},addMethod:function(a,h,g){e.validator.methods[a]=h,e.validator.messages[a]=void 0!==g?g:e.validator.messages[a],h.length<3&&e.validator.addClassRules(a,e.validator.normalizeRule(a))},methods:{required:function(a,i,h){if(!this.depend(h,i)){return"dependency-mismatch"}if("select"===i.nodeName.toLowerCase()){var g=e(i).val();return g&&g.length>0}return this.checkable(i)?this.getLength(a,i)>0:a.length>0},email:function(g,c){return this.optional(c)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(g)},url:function(g,c){return this.optional(c)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i.test(g)},date:function(g,c){return this.optional(c)||!/Invalid|NaN/.test(new Date(g).toString())},dateISO:function(g,c){return this.optional(c)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(g)},number:function(g,c){return this.optional(c)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(g)},digits:function(g,c){return this.optional(c)||/^\d+$/.test(g)},minlength:function(a,i,h){var g=e.isArray(a)?a.length:this.getLength(a,i);return this.optional(i)||g>=h},maxlength:function(a,i,h){var g=e.isArray(a)?a.length:this.getLength(a,i);return this.optional(i)||g<=h},rangelength:function(a,i,h){var g=e.isArray(a)?a.length:this.getLength(a,i);return this.optional(i)||g>=h[0]&&g<=h[1]},min:function(h,g,i){return this.optional(g)||h>=i},max:function(h,g,i){return this.optional(g)||h<=i},range:function(h,g,i){return this.optional(g)||h>=i[0]&&h<=i[1]},step:function(x,w,v){var u,t=e(w).attr("type"),s="Step attribute on input type "+t+" is not supported.",r=["text","number","range"],q=new RegExp("\\b"+t+"\\b"),p=t&&!q.test(r.join()),o=function(g){var c=(""+g).match(/(?:\.(\d+))?$/);return c&&c[1]?c[1].length:0},n=function(b){return Math.round(b*Math.pow(10,u))},a=!0;if(p){throw new Error(s)}return u=o(v),(o(x)>u||n(x)%n(v)!==0)&&(a=!1),this.optional(w)||a},equalTo:function(a,i,h){var g=e(h);return this.settings.onfocusout&&g.not(".validate-equalTo-blur").length&&g.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){e(i).valid()}),a===g.val()},remote:function(a,p,o,n){if(this.optional(p)){return"dependency-mismatch"}n="string"==typeof n&&n||"remote";var m,l,k,j=this.previousValue(p,n);return this.settings.messages[p.name]||(this.settings.messages[p.name]={}),j.originalMessage=j.originalMessage||this.settings.messages[p.name][n],this.settings.messages[p.name][n]=j.message,o="string"==typeof o&&{url:o}||o,k=e.param(e.extend({data:a},o.data)),j.old===k?j.valid:(j.old=k,m=this,this.startRequest(p),l={},l[p.name]=a,e.ajax(e.extend(!0,{mode:"abort",port:"validate"+p.name,dataType:"json",data:l,context:m.currentForm,success:function(b){var r,q,i,c=b===!0||"true"===b;m.settings.messages[p.name][n]=j.originalMessage,c?(i=m.formSubmitted,m.resetInternals(),m.toHide=m.errorsFor(p),m.formSubmitted=i,m.successList.push(p),m.invalid[p.name]=!1,m.showErrors()):(r={},q=b||m.defaultMessage(p,{method:n,parameters:a}),r[p.name]=j.message=q,m.invalid[p.name]=!0,m.showErrors(r)),j.valid=c,m.stopRequest(p,c)}},o)),"pending")}}});var d,f={};return e.ajaxPrefilter?e.ajaxPrefilter(function(g,c,i){var h=g.port;"abort"===g.mode&&(f[h]&&f[h].abort(),f[h]=i)}):(d=e.ajax,e.ajax=function(c){var b=("mode" in c?c:e.ajaxSettings).mode,a=("port" in c?c:e.ajaxSettings).port;return"abort"===b?(f[a]&&f[a].abort(),f[a]=d.apply(this,arguments),f[a]):d.apply(this,arguments)}),e});/*! offline-js 0.7.19 */
(function(){var a,f,c,e,b,d,g;e=function(m,l){var i,h,k;h=[];for(i in l.prototype){try{k=l.prototype[i],null==m[i]&&"function"!=typeof k?h.push(m[i]=k):h.push(void 0)}catch(j){j}}return h},a={},a.options=window.Offline?window.Offline.options||{}:{},c={checks:{xhr:{url:function(){return"/favicon.ico?_="+new Date().getTime()},timeout:5000,type:"HEAD"},image:{url:function(){return"/favicon.ico?_="+new Date().getTime()}},active:"xhr"},checkOnLoad:!1,interceptRequests:!0,reconnect:!0,deDupBody:!1},b=function(p,n){var q,m,l,h,k,o;for(q=p,o=n.split("."),m=l=0,h=o.length;l<h&&(k=o[m],"object"==typeof(q=q[k]));m=++l){}return m===o.length-1?q:void 0},a.getOption=function(h){var i,j;return j=null!=(i=b(a.options,h))?i:b(c,h),"function"==typeof j?j():j},"function"==typeof window.addEventListener&&window.addEventListener("online",function(){return setTimeout(a.confirmUp,100)},!1),"function"==typeof window.addEventListener&&window.addEventListener("offline",function(){return a.confirmDown()},!1),a.state="up",a.markUp=function(){if(a.trigger("confirmed-up"),"up"!==a.state){return a.state="up",a.trigger("up")}},a.markDown=function(){if(a.trigger("confirmed-down"),"down"!==a.state){return a.state="down",a.trigger("down")}},d={},a.on=function(o,n,i){var p,m,k,h,l;if(m=o.split(" "),m.length>1){for(l=[],k=0,h=m.length;k<h;k++){p=m[k],l.push(a.on(p,n,i))}return l}return null==d[o]&&(d[o]=[]),d[o].push([i,n])},a.off=function(n,l){var h,k,m,j;if(null!=d[n]){if(l){for(k=0,j=[];k<d[n].length;){m=d[n][k],m[0],h=m[1],h===l?j.push(d[n].splice(k,1)):j.push(k++)}return j}return d[n]=[]}},a.trigger=function(p){var i,n,l,h,o,k,m;if(null!=d[p]){for(o=d[p].slice(0),m=[],l=0,h=o.length;l<h;l++){k=o[l],i=k[0],n=k[1],m.push(n.call(i))}return m}},f=function(n,o,m){var l,i,k,h,j;return j=function(){return n.status&&n.status<12000?o():m()},null===n.onprogress?(l=n.onerror,n.onerror=function(){return m(),"function"==typeof l?l.apply(null,arguments):void 0},h=n.ontimeout,n.ontimeout=function(){return m(),"function"==typeof h?h.apply(null,arguments):void 0},i=n.onload,n.onload=function(){return j(),"function"==typeof i?i.apply(null,arguments):void 0}):(k=n.onreadystatechange,n.onreadystatechange=function(){return 4===n.readyState?j():0===n.readyState&&m(),"function"==typeof k?k.apply(null,arguments):void 0})},a.checks={},a.checks.xhr=function(){var i;i=new XMLHttpRequest(),i.offline=!1,i.open(a.getOption("checks.xhr.type"),a.getOption("checks.xhr.url"),!0),null!=i.timeout&&(i.timeout=a.getOption("checks.xhr.timeout")),f(i,a.markUp,a.markDown);try{i.send()}catch(h){h,a.markDown()}return i},a.checks.image=function(){var h;h=document.createElement("img"),h.onerror=a.markDown,h.onload=a.markUp,h.src=a.getOption("checks.image.url")},a.checks.down=a.markDown,a.checks.up=a.markUp,a.check=function(){return a.trigger("checking"),a.checks[a.getOption("checks.active")]()},a.confirmUp=a.confirmDown=a.check,a.onXHR=function(i){var k,j,h;if(h=function(n,m){var l;return l=n.open,n.open=function(s,q,r,o,p){return i({type:s,url:q,async:r,flags:m,user:o,password:p,xhr:n}),l.apply(n,arguments)}},j=window.XMLHttpRequest,window.XMLHttpRequest=function(l){var m,o,n;return n=new j(l),h(n,l),o=n.setRequestHeader,n.headers={},n.setRequestHeader=function(p,q){return n.headers[p]=q,o.call(n,p,q)},m=n.overrideMimeType,n.overrideMimeType=function(p){return n.mimeType=p,m.call(n,p)},n},e(window.XMLHttpRequest,j),null!=window.XDomainRequest){return k=window.XDomainRequest,window.XDomainRequest=function(){var l;return l=new k(),h(l),l},e(window.XDomainRequest,k)}},g=function(){if(a.getOption("interceptRequests")&&a.onXHR(function(h){var i;if(i=h.xhr,!1!==i.offline){return f(i,a.markUp,a.confirmDown)}}),a.getOption("checkOnLoad")){return a.check()}},setTimeout(g,0),window.Offline=a}).call(this),function(){var h,e,b,a,g,i,f,c,d;if(!window.Offline){throw new Error("Offline Reconnect brought in without offline.js")}a=Offline.reconnect={},i=null,g=function(){var j;return null!=a.state&&"inactive"!==a.state&&Offline.trigger("reconnect:stopped"),a.state="inactive",a.remaining=a.delay=null!=(j=Offline.getOption("reconnect.initialDelay"))?j:3},e=function(){var j,k;return j=null!=(k=Offline.getOption("reconnect.delay"))?k:Math.min(Math.ceil(1.5*a.delay),3600),a.remaining=a.delay=j},f=function(){if("connecting"!==a.state){return a.remaining-=1,Offline.trigger("reconnect:tick"),0===a.remaining?c():void 0}},c=function(){if("waiting"===a.state){return Offline.trigger("reconnect:connecting"),a.state="connecting",Offline.check()}},h=function(){if(Offline.getOption("reconnect")){return g(),a.state="waiting",Offline.trigger("reconnect:started"),i=setInterval(f,1000)}},d=function(){return null!=i&&clearInterval(i),g()},b=function(){if(Offline.getOption("reconnect")){return"connecting"===a.state?(Offline.trigger("reconnect:failure"),a.state="waiting",e()):void 0}},a.tryNow=c,g(),Offline.on("down",h),Offline.on("confirmed-down",b),Offline.on("up",d)}.call(this),function(){var b,a,c,f,e,d;if(!window.Offline){throw new Error("Requests module brought in without offline.js")}c=[],d=!1,f=function(g){if(!1!==Offline.getOption("requests")){return Offline.trigger("requests:capture"),"down"!==Offline.state&&(d=!0),c.push(g)}},e=function(p){var l,g,n,j,m,h,k,i,o;if(o=p.xhr,h=p.url,m=p.type,k=p.user,n=p.password,l=p.body,!1!==Offline.getOption("requests")){o.abort(),o.open(m,h,!0,k,n),j=o.headers;for(g in j){i=j[g],o.setRequestHeader(g,i)}return o.mimeType&&o.overrideMimeType(o.mimeType),o.send(l)}},b=function(){return c=[]},a=function(){var h,l,k,g,m,n,j;if(!1!==Offline.getOption("requests")){for(Offline.trigger("requests:flush"),n={},l=0,g=c.length;l<g;l++){m=c[l],j=m.url.replace(/(\?|&)_=[0-9]+/,function(i,o){return"?"===o?o:""}),Offline.getOption("deDupBody")?(h=m.body,h="[object Object]"===h.toString()?JSON.stringify(h):h.toString(),n[m.type.toUpperCase()+" - "+j+" - "+h]=m):n[m.type.toUpperCase()+" - "+j]=m}for(k in n){m=n[k],e(m)}return b()}},setTimeout(function(){if(!1!==Offline.getOption("requests")){return Offline.on("confirmed-up",function(){if(d){return d=!1,b()}}),Offline.on("up",a),Offline.on("down",function(){return d=!1}),Offline.onXHR(function(j){var h,i,g,k,l;if(l=j.xhr,g=j.async,!1!==l.offline&&(k=function(){return f(j)},i=l.send,l.send=function(m){return j.body=m,i.apply(l,arguments)},g)){return null===l.onprogress?(l.addEventListener("error",k,!1),l.addEventListener("timeout",k,!1)):(h=l.onreadystatechange,l.onreadystatechange=function(){return 0===l.readyState?k():4===l.readyState&&(0===l.status||l.status>=12000)&&k(),"function"==typeof h?h.apply(null,arguments):void 0})}}),Offline.requests={flush:a,clear:b}}},0)}.call(this),function(){var f,c,a,d,b,e;if(!Offline){throw new Error("Offline simulate brought in without offline.js")}for(d=["up","down"],c=0,a=d.length;c<a;c++){e=d[c];try{b=document.querySelector("script[data-simulate='"+e+"']")||("undefined"!=typeof localStorage&&null!==localStorage?localStorage.OFFLINE_SIMULATE:void 0)===e}catch(g){g,b=!1}}b&&(null==Offline.options&&(Offline.options={}),null==(f=Offline.options).checks&&(f.checks={}),Offline.options.checks.active=e)}.call(this),function(){var d,m,k,g,h,f,b,i,c,l,j,a,e;if(!window.Offline){throw new Error("Offline UI brought in without offline.js")}m='<div class="offline-ui"><div class="offline-ui-content"></div></div>',d='<a href class="offline-ui-retry"></a>',f=function(n){var o;return o=document.createElement("div"),o.innerHTML=n,o.children[0]},b=h=null,g=function(n){return j(n),b.className+=" "+n},j=function(n){return b.className=b.className.replace(new RegExp("(^| )"+n.split(" ").join("|")+"( |$)","gi")," ")},c={},i=function(n,o){return g(n),null!=c[n]&&clearTimeout(c[n]),c[n]=setTimeout(function(){return j(n),delete c[n]},1000*o)},e=function(o){var q,p,n,r;n={day:86400,hour:3600,minute:60,second:1};for(p in n){if(q=n[p],o>=q){return r=Math.floor(o/q),[r,p]}}return["now",""]},a=function(){var n,o;return b=f(m),document.body.appendChild(b),null!=Offline.reconnect&&Offline.getOption("reconnect")&&(b.appendChild(f(d)),n=b.querySelector(".offline-ui-retry"),o=function(p){return p.preventDefault(),Offline.reconnect.tryNow()},null!=n.addEventListener?n.addEventListener("click",o,!1):n.attachEvent("click",o)),g("offline-ui-"+Offline.state),h=b.querySelector(".offline-ui-content")},l=function(){return a(),Offline.on("up",function(){return j("offline-ui-down"),g("offline-ui-up"),i("offline-ui-up-2s",2),i("offline-ui-up-5s",5)}),Offline.on("down",function(){return j("offline-ui-up"),g("offline-ui-down"),i("offline-ui-down-2s",2),i("offline-ui-down-5s",5)}),Offline.on("reconnect:connecting",function(){return g("offline-ui-connecting"),j("offline-ui-waiting")}),Offline.on("reconnect:tick",function(){var o,p,n;return g("offline-ui-waiting"),j("offline-ui-connecting"),o=e(Offline.reconnect.remaining),p=o[0],n=o[1],h.setAttribute("data-retry-in-value",p),h.setAttribute("data-retry-in-unit",n)}),Offline.on("reconnect:stopped",function(){return j("offline-ui-connecting offline-ui-waiting"),h.setAttribute("data-retry-in-value",null),h.setAttribute("data-retry-in-unit",null)}),Offline.on("reconnect:failure",function(){return i("offline-ui-reconnect-failed-2s",2),i("offline-ui-reconnect-failed-5s",5)}),Offline.on("reconnect:success",function(){return i("offline-ui-reconnect-succeeded-2s",2),i("offline-ui-reconnect-succeeded-5s",5)})},"complete"===document.readyState?l():null!=document.addEventListener?document.addEventListener("DOMContentLoaded",l,!1):(k=document.onreadystatechange,document.onreadystatechange=function(){return"complete"===document.readyState&&l(),"function"==typeof k?k.apply(null,arguments):void 0})}.call(this);/*! offline-js 0.7.19 */
(function(){var i,h,n,m,l,k,j;m=function(o,g){var s,r,q;r=[];for(s in g.prototype){try{q=g.prototype[s],null==o[s]&&"function"!=typeof q?r.push(o[s]=q):r.push(void 0)}catch(p){p}}return r},i={},i.options=window.Offline?window.Offline.options||{}:{},n={checks:{xhr:{url:function(){return"/favicon.ico?_="+(new Date).getTime()},timeout:5000,type:"HEAD"},image:{url:function(){return"/favicon.ico?_="+(new Date).getTime()}},active:"xhr"},checkOnLoad:!1,interceptRequests:!0,reconnect:!0,deDupBody:!1},l=function(p,o){var v,u,t,s,r,q;for(v=p,q=o.split("."),u=t=0,s=q.length;t<s&&(r=q[u],"object"==typeof(v=v[r]));u=++t){}return u===q.length-1?v:void 0},i.getOption=function(a){var e,c;return c=null!=(e=l(i.options,a))?e:l(n,a),"function"==typeof c?c():c},"function"==typeof window.addEventListener&&window.addEventListener("online",function(){return setTimeout(i.confirmUp,100)},!1),"function"==typeof window.addEventListener&&window.addEventListener("offline",function(){return i.confirmDown()},!1),i.state="up",i.markUp=function(){if(i.trigger("confirmed-up"),"up"!==i.state){return i.state="up",i.trigger("up")}},i.markDown=function(){if(i.trigger("confirmed-down"),"down"!==i.state){return i.state="down",i.trigger("down")}},k={},i.on=function(a,t,s){var r,q,p,o,f;if(q=a.split(" "),q.length>1){for(f=[],p=0,o=q.length;p<o;p++){r=q[p],f.push(i.on(r,t,s))}return f}return null==k[a]&&(k[a]=[]),k[a].push([s,t])},i.off=function(o,f){var s,r,q,p;if(null!=k[o]){if(f){for(r=0,p=[];r<k[o].length;){q=k[o][r],q[0],s=q[1],s===f?p.push(k[o].splice(r,1)):p.push(r++)}return p}return k[o]=[]}},i.trigger=function(o){var f,u,t,s,r,q,p;if(null!=k[o]){for(r=k[o].slice(0),p=[],t=0,s=r.length;t<s;t++){q=r[t],f=q[0],u=q[1],p.push(u.call(f))}return p}},h=function(p,o,v){var u,t,s,r,q;return q=function(){return p.status&&p.status<12000?o():v()},null===p.onprogress?(u=p.onerror,p.onerror=function(){return v(),"function"==typeof u?u.apply(null,arguments):void 0},r=p.ontimeout,p.ontimeout=function(){return v(),"function"==typeof r?r.apply(null,arguments):void 0},t=p.onload,p.onload=function(){return q(),"function"==typeof t?t.apply(null,arguments):void 0}):(s=p.onreadystatechange,p.onreadystatechange=function(){return 4===p.readyState?q():0===p.readyState&&v(),"function"==typeof s?s.apply(null,arguments):void 0})},i.checks={},i.checks.xhr=function(){var b;b=new XMLHttpRequest,b.offline=!1,b.open(i.getOption("checks.xhr.type"),i.getOption("checks.xhr.url"),!0),null!=b.timeout&&(b.timeout=i.getOption("checks.xhr.timeout")),h(b,i.markUp,i.markDown);try{b.send()}catch(a){a,i.markDown()}return b},i.checks.image=function(){var a;a=document.createElement("img"),a.onerror=i.markDown,a.onload=i.markUp,a.src=i.getOption("checks.image.url")},i.checks.down=i.markDown,i.checks.up=i.markUp,i.check=function(){return i.trigger("checking"),i.checks[i.getOption("checks.active")]()},i.confirmUp=i.confirmDown=i.check,i.onXHR=function(f){var d,o,g;if(g=function(a,p){var e;return e=a.open,a.open=function(s,r,q,c,b){return f({type:s,url:r,async:q,flags:p,user:c,password:b,xhr:a}),e.apply(a,arguments)}},o=window.XMLHttpRequest,window.XMLHttpRequest=function(e){var c,q,p;return p=new o(e),g(p,e),q=p.setRequestHeader,p.headers={},p.setRequestHeader=function(s,r){return p.headers[s]=r,q.call(p,s,r)},c=p.overrideMimeType,p.overrideMimeType=function(b){return p.mimeType=b,c.call(p,b)},p},m(window.XMLHttpRequest,o),null!=window.XDomainRequest){return d=window.XDomainRequest,window.XDomainRequest=function(){var b;return b=new d,g(b),b},m(window.XDomainRequest,d)}},j=function(){if(i.getOption("interceptRequests")&&i.onXHR(function(b){var a;if(a=b.xhr,!1!==a.offline){return h(a,i.markUp,i.confirmDown)}}),i.getOption("checkOnLoad")){return i.check()}},setTimeout(j,0),window.Offline=i}).call(this),function(){var r,q,p,o,n,m,l,k,j;if(!window.Offline){throw new Error("Offline Reconnect brought in without offline.js")}o=Offline.reconnect={},m=null,n=function(){var b;return null!=o.state&&"inactive"!==o.state&&Offline.trigger("reconnect:stopped"),o.state="inactive",o.remaining=o.delay=null!=(b=Offline.getOption("reconnect.initialDelay"))?b:3},q=function(){var d,c;return d=null!=(c=Offline.getOption("reconnect.delay"))?c:Math.min(Math.ceil(1.5*o.delay),3600),o.remaining=o.delay=d},l=function(){if("connecting"!==o.state){return o.remaining-=1,Offline.trigger("reconnect:tick"),0===o.remaining?k():void 0}},k=function(){if("waiting"===o.state){return Offline.trigger("reconnect:connecting"),o.state="connecting",Offline.check()}},r=function(){if(Offline.getOption("reconnect")){return n(),o.state="waiting",Offline.trigger("reconnect:started"),m=setInterval(l,1000)}},j=function(){return null!=m&&clearInterval(m),n()},p=function(){if(Offline.getOption("reconnect")){return"connecting"===o.state?(Offline.trigger("reconnect:failure"),o.state="waiting",q()):void 0}},o.tryNow=k,n(),Offline.on("down",r),Offline.on("confirmed-down",p),Offline.on("up",j)}.call(this),function(){var h,g,l,k,j,i;if(!window.Offline){throw new Error("Requests module brought in without offline.js")}l=[],i=!1,k=function(b){if(!1!==Offline.getOption("requests")){return Offline.trigger("requests:capture"),"down"!==Offline.state&&(i=!0),l.push(b)}},j=function(v){var u,t,s,r,q,p,o,n,m;if(m=v.xhr,p=v.url,q=v.type,o=v.user,s=v.password,u=v.body,!1!==Offline.getOption("requests")){m.abort(),m.open(q,p,!0,o,s),r=m.headers;for(t in r){n=r[t],m.setRequestHeader(t,n)}return m.mimeType&&m.overrideMimeType(m.mimeType),m.send(u)}},h=function(){return l=[]},g=function(){var a,p,o,n,m,e,c;if(!1!==Offline.getOption("requests")){for(Offline.trigger("requests:flush"),e={},p=0,n=l.length;p<n;p++){m=l[p],c=m.url.replace(/(\?|&)_=[0-9]+/,function(f,d){return"?"===d?d:""}),Offline.getOption("deDupBody")?(a=m.body,a="[object Object]"===a.toString()?JSON.stringify(a):a.toString(),e[m.type.toUpperCase()+" - "+c+" - "+a]=m):e[m.type.toUpperCase()+" - "+c]=m}for(o in e){m=e[o],j(m)}return h()}},setTimeout(function(){if(!1!==Offline.getOption("requests")){return Offline.on("confirmed-up",function(){if(i){return i=!1,h()}}),Offline.on("up",g),Offline.on("down",function(){return i=!1}),Offline.onXHR(function(m){var d,q,p,o,n;if(n=m.xhr,p=m.async,!1!==n.offline&&(o=function(){return k(m)},q=n.send,n.send=function(a){return m.body=a,q.apply(n,arguments)},p)){return null===n.onprogress?(n.addEventListener("error",o,!1),n.addEventListener("timeout",o,!1)):(d=n.onreadystatechange,n.onreadystatechange=function(){return 0===n.readyState?o():4===n.readyState&&(0===n.status||n.status>=12000)&&o(),"function"==typeof d?d.apply(null,arguments):void 0})}}),Offline.requests={flush:g,clear:h}}},0)}.call(this),function(){var i,h,n,m,l,k;if(!Offline){throw new Error("Offline simulate brought in without offline.js")}for(m=["up","down"],h=0,n=m.length;h<n;h++){k=m[h];try{l=document.querySelector("script[data-simulate='"+k+"']")||("undefined"!=typeof localStorage&&null!==localStorage?localStorage.OFFLINE_SIMULATE:void 0)===k}catch(j){j,l=!1}}l&&(null==Offline.options&&(Offline.options={}),null==(i=Offline.options).checks&&(i.checks={}),Offline.options.checks.active=k)}.call(this),function(){var z,y,x,w,v,u,t,s,r,q,p,o,n;if(!window.Offline){throw new Error("Offline UI brought in without offline.js")}y='<div class="offline-ui"><div class="offline-ui-content"></div></div>',z='<a href class="offline-ui-retry"></a>',u=function(d){var c;return c=document.createElement("div"),c.innerHTML=d,c.children[0]},t=v=null,w=function(b){return p(b),t.className+=" "+b},p=function(b){return t.className=t.className.replace(new RegExp("(^| )"+b.split(" ").join("|")+"( |$)","gi")," ")},r={},s=function(d,c){return w(d),null!=r[d]&&clearTimeout(r[d]),r[d]=setTimeout(function(){return p(d),delete r[d]},1000*c)},n=function(g){var f,j,i,h;i={day:86400,hour:3600,minute:60,second:1};for(j in i){if(f=i[j],g>=f){return h=Math.floor(g/f),[h,j]}}return["now",""]},o=function(){var b,a;return t=u(y),document.body.appendChild(t),null!=Offline.reconnect&&Offline.getOption("reconnect")&&(t.appendChild(u(z)),b=t.querySelector(".offline-ui-retry"),a=function(c){return c.preventDefault(),Offline.reconnect.tryNow()},null!=b.addEventListener?b.addEventListener("click",a,!1):b.attachEvent("click",a)),w("offline-ui-"+Offline.state),v=t.querySelector(".offline-ui-content")},q=function(){return o(),Offline.on("up",function(){return p("offline-ui-down"),w("offline-ui-up"),s("offline-ui-up-2s",2),s("offline-ui-up-5s",5)}),Offline.on("down",function(){return p("offline-ui-up"),w("offline-ui-down"),s("offline-ui-down-2s",2),s("offline-ui-down-5s",5)}),Offline.on("reconnect:connecting",function(){return w("offline-ui-connecting"),p("offline-ui-waiting")}),Offline.on("reconnect:tick",function(){var e,d,f;return w("offline-ui-waiting"),p("offline-ui-connecting"),e=n(Offline.reconnect.remaining),d=e[0],f=e[1],v.setAttribute("data-retry-in-value",d),v.setAttribute("data-retry-in-unit",f)}),Offline.on("reconnect:stopped",function(){return p("offline-ui-connecting offline-ui-waiting"),v.setAttribute("data-retry-in-value",null),v.setAttribute("data-retry-in-unit",null)}),Offline.on("reconnect:failure",function(){return s("offline-ui-reconnect-failed-2s",2),s("offline-ui-reconnect-failed-5s",5)}),Offline.on("reconnect:success",function(){return s("offline-ui-reconnect-succeeded-2s",2),s("offline-ui-reconnect-succeeded-5s",5)})},"complete"===document.readyState?q():null!=document.addEventListener?document.addEventListener("DOMContentLoaded",q,!1):(x=document.onreadystatechange,document.onreadystatechange=function(){return"complete"===document.readyState&&q(),"function"==typeof x?x.apply(null,arguments):void 0})}.call(this);/*!
 * Bootstrap v3.3.7 (http://getbootstrap.com)
 * Copyright 2011-2016 Twitter, Inc.
 * Licensed under the MIT license
 */
;if("undefined"==typeof jQuery){throw new Error("Bootstrap's JavaScript requires jQuery")}+function(d){var c=d.fn.jquery.split(" ")[0].split(".");if(c[0]<2&&c[1]<9||1==c[0]&&9==c[1]&&c[2]<1||c[0]>3){throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}}(jQuery),+function(d){function c(){var f=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var g in e){if(void 0!==f.style[g]){return{end:e[g]}}}return !1}d.fn.emulateTransitionEnd=function(a){var h=!1,g=this;d(this).one("bsTransitionEnd",function(){h=!0});var f=function(){h||d(g).trigger(d.support.transition.end)};return setTimeout(f,a),this},d(function(){d.support.transition=c(),d.support.transition&&(d.event.special.bsTransitionEnd={bindType:d.support.transition.end,delegateType:d.support.transition.end,handle:function(a){if(d(a.target).is(this)){return a.handleObj.handler.apply(this,arguments)}}})})}(jQuery),+function(g){function f(a){return this.each(function(){var d=g(this),b=d.data("bs.alert");b||d.data("bs.alert",b=new i(this)),"string"==typeof a&&b[a].call(d)})}var j='[data-dismiss="alert"]',i=function(a){g(a).on("click",j,this.close)};i.VERSION="3.3.7",i.TRANSITION_DURATION=150,i.prototype.close=function(a){function m(){d.detach().trigger("closed.bs.alert").remove()}var l=g(this),k=l.attr("data-target");k||(k=l.attr("href"),k=k&&k.replace(/.*(?=#[^\s]*$)/,""));var d=g("#"===k?[]:k);a&&a.preventDefault(),d.length||(d=l.closest(".alert")),d.trigger(a=g.Event("close.bs.alert")),a.isDefaultPrevented()||(d.removeClass("in"),g.support.transition&&d.hasClass("fade")?d.one("bsTransitionEnd",m).emulateTransitionEnd(i.TRANSITION_DURATION):m())};var h=g.fn.alert;g.fn.alert=f,g.fn.alert.Constructor=i,g.fn.alert.noConflict=function(){return g.fn.alert=h,this},g(document).on("click.bs.alert.data-api",j,i.prototype.close)}(jQuery),+function(f){function e(a){return this.each(function(){var i=f(this),c=i.data("bs.button"),b="object"==typeof a&&a;c||i.data("bs.button",c=new h(this,b)),"toggle"==a?c.toggle():a&&c.setState(a)})}var h=function(a,c){this.$element=f(a),this.options=f.extend({},h.DEFAULTS,c),this.isLoading=!1};h.VERSION="3.3.7",h.DEFAULTS={loadingText:"loading..."},h.prototype.setState=function(a){var l="disabled",k=this.$element,j=k.is("input")?"val":"html",i=k.data();a+="Text",null==i.resetText&&k.data("resetText",k[j]()),setTimeout(f.proxy(function(){k[j](null==i[a]?this.options[a]:i[a]),"loadingText"==a?(this.isLoading=!0,k.addClass(l).attr(l,l).prop(l,!0)):this.isLoading&&(this.isLoading=!1,k.removeClass(l).removeAttr(l).prop(l,!1))},this),0)},h.prototype.toggle=function(){var i=!0,d=this.$element.closest('[data-toggle="buttons"]');if(d.length){var j=this.$element.find("input");"radio"==j.prop("type")?(j.prop("checked")&&(i=!1),d.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==j.prop("type")&&(j.prop("checked")!==this.$element.hasClass("active")&&(i=!1),this.$element.toggleClass("active")),j.prop("checked",this.$element.hasClass("active")),i&&j.trigger("change")}else{this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")}};var g=f.fn.button;f.fn.button=e,f.fn.button.Constructor=h,f.fn.button.noConflict=function(){return f.fn.button=g,this},f(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(b){var a=f(b.target).closest(".btn");e.call(a,"toggle"),f(b.target).is('input[type="radio"], input[type="checkbox"]')||(b.preventDefault(),a.is("input,button")?a.trigger("focus"):a.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(a){f(a.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(a.type))})}(jQuery),+function(g){function f(a){return this.each(function(){var l=g(this),k=l.data("bs.carousel"),c=g.extend({},j.DEFAULTS,l.data(),"object"==typeof a&&a),b="string"==typeof a?a:c.slide;k||l.data("bs.carousel",k=new j(this,c)),"number"==typeof a?k.to(a):b?k[b]():c.interval&&k.pause().cycle()})}var j=function(a,d){this.$element=g(a),this.$indicators=this.$element.find(".carousel-indicators"),this.options=d,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",g.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart" in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",g.proxy(this.pause,this)).on("mouseleave.bs.carousel",g.proxy(this.cycle,this))};j.VERSION="3.3.7",j.TRANSITION_DURATION=600,j.DEFAULTS={interval:5000,pause:"hover",wrap:!0,keyboard:!0},j.prototype.keydown=function(b){if(!/input|textarea/i.test(b.target.tagName)){switch(b.which){case 37:this.prev();break;case 39:this.next();break;default:return}b.preventDefault()}},j.prototype.cycle=function(a){return a||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(g.proxy(this.next,this),this.options.interval)),this},j.prototype.getItemIndex=function(b){return this.$items=b.parent().children(".item"),this.$items.index(b||this.$active)},j.prototype.getItemForDirection=function(l,k){var p=this.getItemIndex(k),o="prev"==l&&0===p||"next"==l&&p==this.$items.length-1;if(o&&!this.options.wrap){return k}var n="prev"==l?-1:1,m=(p+n)%this.$items.length;return this.$items.eq(m)},j.prototype.to=function(e){var d=this,k=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0)){return this.sliding?this.$element.one("slid.bs.carousel",function(){d.to(e)}):k==e?this.pause().cycle():this.slide(e>k?"next":"prev",this.$items.eq(e))}},j.prototype.pause=function(a){return a||(this.paused=!0),this.$element.find(".next, .prev").length&&g.support.transition&&(this.$element.trigger(g.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},j.prototype.next=function(){if(!this.sliding){return this.slide("next")}},j.prototype.prev=function(){if(!this.sliding){return this.slide("prev")}},j.prototype.slide=function(v,u){var t=this.$element.find(".item.active"),s=u||this.getItemForDirection(v,t),r=this.interval,q="next"==v?"left":"right",p=this;if(s.hasClass("active")){return this.sliding=!1}var o=s[0],n=g.Event("slide.bs.carousel",{relatedTarget:o,direction:q});if(this.$element.trigger(n),!n.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var c=g(this.$indicators.children()[this.getItemIndex(s)]);c&&c.addClass("active")}var a=g.Event("slid.bs.carousel",{relatedTarget:o,direction:q});return g.support.transition&&this.$element.hasClass("slide")?(s.addClass(v),s[0].offsetWidth,t.addClass(q),s.addClass(q),t.one("bsTransitionEnd",function(){s.removeClass([v,q].join(" ")).addClass("active"),t.removeClass(["active",q].join(" ")),p.sliding=!1,setTimeout(function(){p.$element.trigger(a)},0)}).emulateTransitionEnd(j.TRANSITION_DURATION)):(t.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(a)),r&&this.cycle(),this}};var i=g.fn.carousel;g.fn.carousel=f,g.fn.carousel.Constructor=j,g.fn.carousel.noConflict=function(){return g.fn.carousel=i,this};var h=function(n){var m,l=g(this),k=g(l.attr("data-target")||(m=l.attr("href"))&&m.replace(/.*(?=#[^\s]+$)/,""));if(k.hasClass("carousel")){var b=g.extend({},k.data(),l.data()),a=l.attr("data-slide-to");a&&(b.interval=!1),f.call(k,b),a&&k.data("bs.carousel").to(a),n.preventDefault()}};g(document).on("click.bs.carousel.data-api","[data-slide]",h).on("click.bs.carousel.data-api","[data-slide-to]",h),g(window).on("load",function(){g('[data-ride="carousel"]').each(function(){var a=g(this);f.call(a,a.data())})})}(jQuery),+function(g){function f(a){var k,e=a.attr("data-target")||(k=a.attr("href"))&&k.replace(/.*(?=#[^\s]+$)/,"");return g(e)}function j(a){return this.each(function(){var k=g(this),d=k.data("bs.collapse"),b=g.extend({},i.DEFAULTS,k.data(),"object"==typeof a&&a);!d&&b.toggle&&/show|hide/.test(a)&&(b.toggle=!1),d||k.data("bs.collapse",d=new i(this,b)),"string"==typeof a&&d[a]()})}var i=function(a,d){this.$element=g(a),this.options=g.extend({},i.DEFAULTS,d),this.$trigger=g('[data-toggle="collapse"][href="#'+a.id+'"],[data-toggle="collapse"][data-target="#'+a.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.3.7",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var b=this.$element.hasClass("width");return b?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var a,m=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(m&&m.length&&(a=m.data("bs.collapse"),a&&a.transitioning))){var l=g.Event("show.bs.collapse");if(this.$element.trigger(l),!l.isDefaultPrevented()){m&&m.length&&(j.call(m,"hide"),a||m.data("bs.collapse",null));var k=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[k](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var d=function(){this.$element.removeClass("collapsing").addClass("collapse in")[k](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!g.support.transition){return d.call(this)}var c=g.camelCase(["scroll",k].join("-"));this.$element.one("bsTransitionEnd",g.proxy(d,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[k](this.$element[0][c])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var a=g.Event("hide.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){var k=this.dimension();this.$element[k](this.$element[k]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return g.support.transition?void this.$element[k](0).one("bsTransitionEnd",g.proxy(d,this)).emulateTransitionEnd(i.TRANSITION_DURATION):d.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return g(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(g.proxy(function(k,b){var a=g(b);this.addAriaAndCollapsedClass(f(a),a)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(e,d){var k=e.hasClass("in");e.attr("aria-expanded",k),d.toggleClass("collapsed",!k).attr("aria-expanded",k)};var h=g.fn.collapse;g.fn.collapse=j,g.fn.collapse.Constructor=i,g.fn.collapse.noConflict=function(){return g.fn.collapse=h,this},g(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(l){var k=g(this);k.attr("data-target")||l.preventDefault();var c=f(k),b=c.data("bs.collapse"),a=b?"toggle":k.data();j.call(c,a)})}(jQuery),+function(j){function i(a){var f=a.attr("data-target");f||(f=a.attr("href"),f=f&&/#[A-Za-z]/.test(f)&&f.replace(/.*(?=#[^\s]*$)/,""));var e=f&&j(f);return e&&e.length?e:a.parent()}function p(a){a&&3===a.which||(j(n).remove(),j(m).each(function(){var g=j(this),c=i(g),b={relatedTarget:this};c.hasClass("open")&&(a&&"click"==a.type&&/input|textarea/i.test(a.target.tagName)&&j.contains(c[0],a.target)||(c.trigger(a=j.Event("hide.bs.dropdown",b)),a.isDefaultPrevented()||(g.attr("aria-expanded","false"),c.removeClass("open").trigger(j.Event("hidden.bs.dropdown",b)))))}))}function o(a){return this.each(function(){var e=j(this),b=e.data("bs.dropdown");b||e.data("bs.dropdown",b=new l(this)),"string"==typeof a&&b[a].call(e)})}var n=".dropdown-backdrop",m='[data-toggle="dropdown"]',l=function(a){j(a).on("click.bs.dropdown",this.toggle)};l.VERSION="3.3.7",l.prototype.toggle=function(r){var q=j(this);if(!q.is(".disabled, :disabled")){var c=i(q),b=c.hasClass("open");if(p(),!b){"ontouchstart" in document.documentElement&&!c.closest(".navbar-nav").length&&j(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(j(this)).on("click",p);var a={relatedTarget:this};if(c.trigger(r=j.Event("show.bs.dropdown",a)),r.isDefaultPrevented()){return}q.trigger("focus").attr("aria-expanded","true"),c.toggleClass("open").trigger(j.Event("shown.bs.dropdown",a))}return !1}},l.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var s=j(this);if(t.preventDefault(),t.stopPropagation(),!s.is(".disabled, :disabled")){var r=i(s),q=r.hasClass("open");if(!q&&27!=t.which||q&&27==t.which){return 27==t.which&&r.find(m).trigger("focus"),s.trigger("click")}var f=" li:not(.disabled):visible a",b=r.find(".dropdown-menu"+f);if(b.length){var a=b.index(t.target);38==t.which&&a>0&&a--,40==t.which&&a<b.length-1&&a++,~a||(a=0),b.eq(a).trigger("focus")}}}};var k=j.fn.dropdown;j.fn.dropdown=o,j.fn.dropdown.Constructor=l,j.fn.dropdown.noConflict=function(){return j.fn.dropdown=k,this},j(document).on("click.bs.dropdown.data-api",p).on("click.bs.dropdown.data-api",".dropdown form",function(b){b.stopPropagation()}).on("click.bs.dropdown.data-api",m,l.prototype.toggle).on("keydown.bs.dropdown.data-api",m,l.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",l.prototype.keydown)}(jQuery),+function(f){function e(a,c){return this.each(function(){var i=f(this),d=i.data("bs.modal"),b=f.extend({},h.DEFAULTS,i.data(),"object"==typeof a&&a);d||i.data("bs.modal",d=new h(this,b)),"string"==typeof a?d[a](c):b.show&&d.show(c)})}var h=function(a,d){this.options=d,this.$body=f(document.body),this.$element=f(a),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,f.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};h.VERSION="3.3.7",h.TRANSITION_DURATION=300,h.BACKDROP_TRANSITION_DURATION=150,h.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},h.prototype.toggle=function(b){return this.isShown?this.hide():this.show(b)},h.prototype.show=function(a){var i=this,c=f.Event("show.bs.modal",{relatedTarget:a});this.$element.trigger(c),this.isShown||c.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',f.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(d){f(d.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var d=f.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),d&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var b=f.Event("shown.bs.modal",{relatedTarget:a});d?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(b)}).emulateTransitionEnd(h.TRANSITION_DURATION):i.$element.trigger("focus").trigger(b)}))},h.prototype.hide=function(a){a&&a.preventDefault(),a=f.Event("hide.bs.modal"),this.$element.trigger(a),this.isShown&&!a.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),f(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),f.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",f.proxy(this.hideModal,this)).emulateTransitionEnd(h.TRANSITION_DURATION):this.hideModal())},h.prototype.enforceFocus=function(){f(document).off("focusin.bs.modal").on("focusin.bs.modal",f.proxy(function(b){document===b.target||this.$element[0]===b.target||this.$element.has(b.target).length||this.$element.trigger("focus")},this))},h.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",f.proxy(function(b){27==b.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},h.prototype.resize=function(){this.isShown?f(window).on("resize.bs.modal",f.proxy(this.handleUpdate,this)):f(window).off("resize.bs.modal")},h.prototype.hideModal=function(){var b=this;this.$element.hide(),this.backdrop(function(){b.$body.removeClass("modal-open"),b.resetAdjustments(),b.resetScrollbar(),b.$element.trigger("hidden.bs.modal")})},h.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},h.prototype.backdrop=function(a){var k=this,j=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=f.support.transition&&j;if(this.$backdrop=f(document.createElement("div")).addClass("modal-backdrop "+j).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",f.proxy(function(b){return this.ignoreBackdropClick?void (this.ignoreBackdropClick=!1):void (b.target===b.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!a){return}i?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(h.BACKDROP_TRANSITION_DURATION):a()}else{if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var c=function(){k.removeBackdrop(),a&&a()};f.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",c).emulateTransitionEnd(h.BACKDROP_TRANSITION_DURATION):c()}else{a&&a()}}},h.prototype.handleUpdate=function(){this.adjustDialog()},h.prototype.adjustDialog=function(){var b=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&b?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!b?this.scrollbarWidth:""})},h.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},h.prototype.checkScrollbar=function(){var d=window.innerWidth;if(!d){var c=document.documentElement.getBoundingClientRect();d=c.right-Math.abs(c.left)}this.bodyIsOverflowing=document.body.clientWidth<d,this.scrollbarWidth=this.measureScrollbar()},h.prototype.setScrollbar=function(){var b=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",b+this.scrollbarWidth)},h.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},h.prototype.measureScrollbar=function(){var d=document.createElement("div");d.className="modal-scrollbar-measure",this.$body.append(d);var c=d.offsetWidth-d.clientWidth;return this.$body[0].removeChild(d),c};var g=f.fn.modal;f.fn.modal=e,f.fn.modal.Constructor=h,f.fn.modal.noConflict=function(){return f.fn.modal=g,this},f(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(k){var j=f(this),i=j.attr("href"),b=f(j.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),a=b.data("bs.modal")?"toggle":f.extend({remote:!/#/.test(i)&&i},b.data(),j.data());j.is("a")&&k.preventDefault(),b.one("show.bs.modal",function(c){c.isDefaultPrevented()||b.one("hidden.bs.modal",function(){j.is(":visible")&&j.trigger("focus")})}),e.call(b,a,this)})}(jQuery),+function(f){function e(a){return this.each(function(){var i=f(this),c=i.data("bs.tooltip"),b="object"==typeof a&&a;!c&&/destroy|hide/.test(a)||(c||i.data("bs.tooltip",c=new h(this,b)),"string"==typeof a&&c[a]())})}var h=function(d,c){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",d,c)};h.VERSION="3.3.7",h.TRANSITION_DURATION=150,h.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},h.prototype.init=function(a,p,o){if(this.enabled=!0,this.type=a,this.$element=f(p),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&f(f.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0] instanceof document.constructor&&!this.options.selector){throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!")}for(var n=this.options.trigger.split(" "),m=n.length;m--;){var l=n[m];if("click"==l){this.$element.on("click."+this.type,this.options.selector,f.proxy(this.toggle,this))}else{if("manual"!=l){var k="hover"==l?"mouseenter":"focusin",j="hover"==l?"mouseleave":"focusout";this.$element.on(k+"."+this.type,this.options.selector,f.proxy(this.enter,this)),this.$element.on(j+"."+this.type,this.options.selector,f.proxy(this.leave,this))}}}this.options.selector?this._options=f.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},h.prototype.getDefaults=function(){return h.DEFAULTS},h.prototype.getOptions=function(a){return a=f.extend({},this.getDefaults(),this.$element.data(),a),a.delay&&"number"==typeof a.delay&&(a.delay={show:a.delay,hide:a.delay}),a},h.prototype.getDelegateOptions=function(){var a={},d=this.getDefaults();return this._options&&f.each(this._options,function(b,c){d[b]!=c&&(a[b]=c)}),a},h.prototype.enter=function(a){var d=a instanceof this.constructor?a:f(a.currentTarget).data("bs."+this.type);return d||(d=new this.constructor(a.currentTarget,this.getDelegateOptions()),f(a.currentTarget).data("bs."+this.type,d)),a instanceof f.Event&&(d.inState["focusin"==a.type?"focus":"hover"]=!0),d.tip().hasClass("in")||"in"==d.hoverState?void (d.hoverState="in"):(clearTimeout(d.timeout),d.hoverState="in",d.options.delay&&d.options.delay.show?void (d.timeout=setTimeout(function(){"in"==d.hoverState&&d.show()},d.options.delay.show)):d.show())},h.prototype.isInStateTrue=function(){for(var b in this.inState){if(this.inState[b]){return !0}}return !1},h.prototype.leave=function(a){var d=a instanceof this.constructor?a:f(a.currentTarget).data("bs."+this.type);if(d||(d=new this.constructor(a.currentTarget,this.getDelegateOptions()),f(a.currentTarget).data("bs."+this.type,d)),a instanceof f.Event&&(d.inState["focusout"==a.type?"focus":"hover"]=!1),!d.isInStateTrue()){return clearTimeout(d.timeout),d.hoverState="out",d.options.delay&&d.options.delay.hide?void (d.timeout=setTimeout(function(){"out"==d.hoverState&&d.hide()},d.options.delay.hide)):d.hide()}},h.prototype.show=function(){var D=f.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(D);var C=f.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(D.isDefaultPrevented()||!C){return}var B=this,A=this.tip(),z=this.getUID(this.type);this.setContent(),A.attr("id",z),this.$element.attr("aria-describedby",z),this.options.animation&&A.addClass("fade");var y="function"==typeof this.options.placement?this.options.placement.call(this,A[0],this.$element[0]):this.options.placement,x=/\s?auto?\s?/i,w=x.test(y);w&&(y=y.replace(x,"")||"top"),A.detach().css({top:0,left:0,display:"block"}).addClass(y).data("bs."+this.type,this),this.options.container?A.appendTo(this.options.container):A.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var v=this.getPosition(),u=A[0].offsetWidth,t=A[0].offsetHeight;if(w){var s=y,r=this.getPosition(this.$viewport);y="bottom"==y&&v.bottom+t>r.bottom?"top":"top"==y&&v.top-t<r.top?"bottom":"right"==y&&v.right+u>r.width?"left":"left"==y&&v.left-u<r.left?"right":y,A.removeClass(s).addClass(y)}var c=this.getCalculatedOffset(y,v,u,t);this.applyPlacement(c,y);var a=function(){var b=B.hoverState;B.$element.trigger("shown.bs."+B.type),B.hoverState=null,"out"==b&&B.leave(B)};f.support.transition&&this.$tip.hasClass("fade")?A.one("bsTransitionEnd",a).emulateTransitionEnd(h.TRANSITION_DURATION):a()}},h.prototype.applyPlacement=function(z,y){var x=this.tip(),w=x[0].offsetWidth,v=x[0].offsetHeight,u=parseInt(x.css("margin-top"),10),t=parseInt(x.css("margin-left"),10);isNaN(u)&&(u=0),isNaN(t)&&(t=0),z.top+=u,z.left+=t,f.offset.setOffset(x[0],f.extend({using:function(b){x.css({top:Math.round(b.top),left:Math.round(b.left)})}},z),0),x.addClass("in");var s=x[0].offsetWidth,r=x[0].offsetHeight;"top"==y&&r!=v&&(z.top=z.top+v-r);var q=this.getViewportAdjustedDelta(y,z,s,r);q.left?z.left+=q.left:z.top+=q.top;var p=/top|bottom/.test(y),o=p?2*q.left-w+s:2*q.top-v+r,a=p?"offsetWidth":"offsetHeight";x.offset(z),this.replaceArrow(o,x[0][a],p)},h.prototype.replaceArrow=function(i,d,j){this.arrow().css(j?"left":"top",50*(1-i/d)+"%").css(j?"top":"left","")},h.prototype.setContent=function(){var d=this.tip(),c=this.getTitle();d.find(".tooltip-inner")[this.options.html?"html":"text"](c),d.removeClass("fade in top bottom left right")},h.prototype.hide=function(a){function k(){"in"!=j.hoverState&&i.detach(),j.$element&&j.$element.removeAttr("aria-describedby").trigger("hidden.bs."+j.type),a&&a()}var j=this,i=f(this.$tip),c=f.Event("hide.bs."+this.type);if(this.$element.trigger(c),!c.isDefaultPrevented()){return i.removeClass("in"),f.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",k).emulateTransitionEnd(h.TRANSITION_DURATION):k(),this.hoverState=null,this}},h.prototype.fixTitle=function(){var b=this.$element;(b.attr("title")||"string"!=typeof b.attr("data-original-title"))&&b.attr("data-original-title",b.attr("title")||"").attr("title","")},h.prototype.hasContent=function(){return this.getTitle()},h.prototype.getPosition=function(a){a=a||this.$element;var p=a[0],o="BODY"==p.tagName,n=p.getBoundingClientRect();null==n.width&&(n=f.extend({},n,{width:n.right-n.left,height:n.bottom-n.top}));var m=window.SVGElement&&p instanceof window.SVGElement,l=o?{top:0,left:0}:m?null:a.offset(),k={scroll:o?document.documentElement.scrollTop||document.body.scrollTop:a.scrollTop()},j=o?{width:f(window).width(),height:f(window).height()}:null;return f.extend({},n,k,j,l)},h.prototype.getCalculatedOffset=function(j,i,l,k){return"bottom"==j?{top:i.top+i.height,left:i.left+i.width/2-l/2}:"top"==j?{top:i.top-k,left:i.left+i.width/2-l/2}:"left"==j?{top:i.top+i.height/2-k/2,left:i.left-l}:{top:i.top+i.height/2-k/2,left:i.left+i.width}},h.prototype.getViewportAdjustedDelta=function(v,u,t,s){var r={top:0,left:0};if(!this.$viewport){return r}var q=this.options.viewport&&this.options.viewport.padding||0,p=this.getPosition(this.$viewport);if(/right|left/.test(v)){var o=u.top-q-p.scroll,n=u.top+q-p.scroll+s;o<p.top?r.top=p.top-o:n>p.top+p.height&&(r.top=p.top+p.height-n)}else{var m=u.left-q,l=u.left+q+t;m<p.left?r.left=p.left-m:l>p.right&&(r.left=p.left+p.width-l)}return r},h.prototype.getTitle=function(){var i,d=this.$element,j=this.options;return i=d.attr("data-original-title")||("function"==typeof j.title?j.title.call(d[0]):j.title)},h.prototype.getUID=function(b){do{b+=~~(1000000*Math.random())}while(document.getElementById(b));return b},h.prototype.tip=function(){if(!this.$tip&&(this.$tip=f(this.options.template),1!=this.$tip.length)){throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!")}return this.$tip},h.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},h.prototype.enable=function(){this.enabled=!0},h.prototype.disable=function(){this.enabled=!1},h.prototype.toggleEnabled=function(){this.enabled=!this.enabled},h.prototype.toggle=function(a){var d=this;a&&(d=f(a.currentTarget).data("bs."+this.type),d||(d=new this.constructor(a.currentTarget,this.getDelegateOptions()),f(a.currentTarget).data("bs."+this.type,d))),a?(d.inState.click=!d.inState.click,d.isInStateTrue()?d.enter(d):d.leave(d)):d.tip().hasClass("in")?d.leave(d):d.enter(d)},h.prototype.destroy=function(){var b=this;clearTimeout(this.timeout),this.hide(function(){b.$element.off("."+b.type).removeData("bs."+b.type),b.$tip&&b.$tip.detach(),b.$tip=null,b.$arrow=null,b.$viewport=null,b.$element=null})};var g=f.fn.tooltip;f.fn.tooltip=e,f.fn.tooltip.Constructor=h,f.fn.tooltip.noConflict=function(){return f.fn.tooltip=g,this}}(jQuery),+function(f){function e(a){return this.each(function(){var i=f(this),c=i.data("bs.popover"),b="object"==typeof a&&a;!c&&/destroy|hide/.test(a)||(c||i.data("bs.popover",c=new h(this,b)),"string"==typeof a&&c[a]())})}var h=function(d,c){this.init("popover",d,c)};if(!f.fn.tooltip){throw new Error("Popover requires tooltip.js")}h.VERSION="3.3.7",h.DEFAULTS=f.extend({},f.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),h.prototype=f.extend({},f.fn.tooltip.Constructor.prototype),h.prototype.constructor=h,h.prototype.getDefaults=function(){return h.DEFAULTS},h.prototype.setContent=function(){var i=this.tip(),d=this.getTitle(),j=this.getContent();i.find(".popover-title")[this.options.html?"html":"text"](d),i.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof j?"html":"append":"text"](j),i.removeClass("fade top bottom left right in"),i.find(".popover-title").html()||i.find(".popover-title").hide()},h.prototype.hasContent=function(){return this.getTitle()||this.getContent()},h.prototype.getContent=function(){var d=this.$element,c=this.options;return d.attr("data-content")||("function"==typeof c.content?c.content.call(d[0]):c.content)},h.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var g=f.fn.popover;f.fn.popover=e,f.fn.popover.Constructor=h,f.fn.popover.noConflict=function(){return f.fn.popover=g,this}}(jQuery),+function(f){function e(b,a){this.$body=f(document.body),this.$scrollElement=f(f(b).is(document.body)?window:b),this.options=f.extend({},e.DEFAULTS,a),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",f.proxy(this.process,this)),this.refresh(),this.process()}function h(a){return this.each(function(){var i=f(this),c=i.data("bs.scrollspy"),b="object"==typeof a&&a;c||i.data("bs.scrollspy",c=new e(this,b)),"string"==typeof a&&c[a]()})}e.VERSION="3.3.7",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var a=this,j="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),f.isWindow(this.$scrollElement[0])||(j="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var c=f(this),k=c.data("target")||c.attr("href"),d=/^#./.test(k)&&f(k);return d&&d.length&&d.is(":visible")&&[[d[j]().top+i,k]]||null}).sort(function(d,c){return d[0]-c[0]}).each(function(){a.offsets.push(this[0]),a.targets.push(this[1])})},e.prototype.process=function(){var j,i=this.$scrollElement.scrollTop()+this.options.offset,o=this.getScrollHeight(),n=this.options.offset+o-this.$scrollElement.height(),m=this.offsets,l=this.targets,k=this.activeTarget;if(this.scrollHeight!=o&&this.refresh(),i>=n){return k!=(j=l[l.length-1])&&this.activate(j)}if(k&&i<m[0]){return this.activeTarget=null,this.clear()}for(j=m.length;j--;){k!=l[j]&&i>=m[j]&&(void 0===m[j+1]||i<m[j+1])&&this.activate(l[j])}},e.prototype.activate=function(a){this.activeTarget=a,this.clear();var j=this.selector+'[data-target="'+a+'"],'+this.selector+'[href="'+a+'"]',i=f(j).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){f(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var g=f.fn.scrollspy;f.fn.scrollspy=h,f.fn.scrollspy.Constructor=e,f.fn.scrollspy.noConflict=function(){return f.fn.scrollspy=g,this},f(window).on("load.bs.scrollspy.data-api",function(){f('[data-spy="scroll"]').each(function(){var a=f(this);h.call(a,a.data())})})}(jQuery),+function(g){function f(a){return this.each(function(){var c=g(this),b=c.data("bs.tab");b||c.data("bs.tab",b=new j(this)),"string"==typeof a&&b[a]()})}var j=function(a){this.element=g(a)};j.VERSION="3.3.7",j.TRANSITION_DURATION=150,j.prototype.show=function(){var a=this.element,p=a.closest("ul:not(.dropdown-menu)"),o=a.data("target");if(o||(o=a.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,"")),!a.parent("li").hasClass("active")){var n=p.find(".active:last a"),m=g.Event("hide.bs.tab",{relatedTarget:a[0]}),l=g.Event("show.bs.tab",{relatedTarget:n[0]});if(n.trigger(m),a.trigger(l),!l.isDefaultPrevented()&&!m.isDefaultPrevented()){var k=g(o);this.activate(a.closest("li"),p),this.activate(k,k.parent(),function(){n.trigger({type:"hidden.bs.tab",relatedTarget:a[0]}),a.trigger({type:"shown.bs.tab",relatedTarget:n[0]})})}}},j.prototype.activate=function(a,n,m){function l(){k.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),a.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),c?(a[0].offsetWidth,a.addClass("in")):a.removeClass("fade"),a.parent(".dropdown-menu").length&&a.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),m&&m()}var k=n.find("> .active"),c=m&&g.support.transition&&(k.length&&k.hasClass("fade")||!!n.find("> .fade").length);k.length&&c?k.one("bsTransitionEnd",l).emulateTransitionEnd(j.TRANSITION_DURATION):l(),k.removeClass("in")};var i=g.fn.tab;g.fn.tab=f,g.fn.tab.Constructor=j,g.fn.tab.noConflict=function(){return g.fn.tab=i,this};var h=function(a){a.preventDefault(),f.call(g(this),"show")};g(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',h).on("click.bs.tab.data-api",'[data-toggle="pill"]',h)}(jQuery),+function(f){function e(a){return this.each(function(){var i=f(this),c=i.data("bs.affix"),b="object"==typeof a&&a;c||i.data("bs.affix",c=new h(this,b)),"string"==typeof a&&c[a]()})}var h=function(a,c){this.options=f.extend({},h.DEFAULTS,c),this.$target=f(this.options.target).on("scroll.bs.affix.data-api",f.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",f.proxy(this.checkPositionWithEventLoop,this)),this.$element=f(a),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};h.VERSION="3.3.7",h.RESET="affix affix-top affix-bottom",h.DEFAULTS={offset:0,target:window},h.prototype.getState=function(t,s,r,q){var p=this.$target.scrollTop(),o=this.$element.offset(),n=this.$target.height();if(null!=r&&"top"==this.affixed){return p<r&&"top"}if("bottom"==this.affixed){return null!=r?!(p+this.unpin<=o.top)&&"bottom":!(p+n<=t-q)&&"bottom"}var m=null==this.affixed,l=m?p:o.top,k=m?n:s;return null!=r&&p<=r?"top":null!=q&&l+k>=t-q&&"bottom"},h.prototype.getPinnedOffset=function(){if(this.pinnedOffset){return this.pinnedOffset}this.$element.removeClass(h.RESET).addClass("affix");var d=this.$target.scrollTop(),c=this.$element.offset();return this.pinnedOffset=c.top-d},h.prototype.checkPositionWithEventLoop=function(){setTimeout(f.proxy(this.checkPosition,this),1)},h.prototype.checkPosition=function(){if(this.$element.is(":visible")){var a=this.$element.height(),p=this.options.offset,o=p.top,n=p.bottom,m=Math.max(f(document).height(),f(document.body).height());"object"!=typeof p&&(n=o=p),"function"==typeof o&&(o=p.top(this.$element)),"function"==typeof n&&(n=p.bottom(this.$element));var l=this.getState(m,a,o,n);if(this.affixed!=l){null!=this.unpin&&this.$element.css("top","");var k="affix"+(l?"-"+l:""),c=f.Event(k+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented()){return}this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(h.RESET).addClass(k).trigger(k.replace("affix","affixed")+".bs.affix")}"bottom"==l&&this.$element.offset({top:m-a-n})}};var g=f.fn.affix;f.fn.affix=e,f.fn.affix.Constructor=h,f.fn.affix.noConflict=function(){return f.fn.affix=g,this},f(window).on("load",function(){f('[data-spy="affix"]').each(function(){var b=f(this),a=b.data();a.offset=a.offset||{},null!=a.offsetBottom&&(a.offset.bottom=a.offsetBottom),null!=a.offsetTop&&(a.offset.top=a.offsetTop),e.call(b,a)})})}(jQuery);/*!
 * Chart.js
 * http://chartjs.org/
 * Version: 1.1.1
 *
 * Copyright 2015 Nick Downie
 * Released under the MIT license
 * https://github.com/nnnick/Chart.js/blob/master/LICENSE.md
 */
(function(){var X=this,aj=X.Chart,an=function(b){this.canvas=b.canvas,this.ctx=b;var a=function(d,c){return d["offset"+c]?d["offset"+c]:document.defaultView.getComputedStyle(d).getPropertyValue(c)};this.width=a(b.canvas,"Width")||b.canvas.width,this.height=a(b.canvas,"Height")||b.canvas.height;return this.aspectRatio=this.width/this.height,Y.retinaScale(this),this};an.defaults={global:{animation:!0,animationSteps:60,animationEasing:"easeOutQuart",showScale:!0,scaleOverride:!1,scaleSteps:null,scaleStepWidth:null,scaleStartValue:null,scaleLineColor:"rgba(0,0,0,.1)",scaleLineWidth:1,scaleShowLabels:!0,scaleLabel:"<%=value%>",scaleIntegersOnly:!0,scaleBeginAtZero:!1,scaleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",scaleFontSize:12,scaleFontStyle:"normal",scaleFontColor:"#666",responsive:!1,maintainAspectRatio:!0,showTooltips:!0,customTooltips:!1,tooltipEvents:["mousemove","touchstart","touchmove","mouseout"],tooltipFillColor:"rgba(0,0,0,0.8)",tooltipFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipFontSize:14,tooltipFontStyle:"normal",tooltipFontColor:"#fff",tooltipTitleFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",tooltipTitleFontSize:14,tooltipTitleFontStyle:"bold",tooltipTitleFontColor:"#fff",tooltipTitleTemplate:"<%= label%>",tooltipYPadding:6,tooltipXPadding:6,tooltipCaretSize:8,tooltipCornerRadius:6,tooltipXOffset:10,tooltipTemplate:"<%if (label){%><%=label%>: <%}%><%= value %>",multiTooltipTemplate:"<%= datasetLabel %>: <%= value %>",multiTooltipKeyBackground:"#fff",segmentColorDefault:["#A6CEE3","#1F78B4","#B2DF8A","#33A02C","#FB9A99","#E31A1C","#FDBF6F","#FF7F00","#CAB2D6","#6A3D9A","#B4B482","#B15928"],segmentHighlightColorDefaults:["#CEF6FF","#47A0DC","#DAFFB2","#5BC854","#FFC2C1","#FF4244","#FFE797","#FFA728","#F2DAFE","#9265C2","#DCDCAA","#D98150"],onAnimationProgress:function(){},onAnimationComplete:function(){}}},an.types={};var Y=an.helpers={},af=Y.each=function(b,a,d){var c=Array.prototype.slice.call(arguments,3);if(b){if(b.length===+b.length){var g;for(g=0;g<b.length;g++){a.apply(d,[b[g],g].concat(c))}}else{for(var f in b){a.apply(d,[b[f],f].concat(c))}}}},ae=Y.clone=function(b){var a={};return af(b,function(d,c){b.hasOwnProperty(c)&&(a[c]=d)}),a},ar=Y.extend=function(a){return af(Array.prototype.slice.call(arguments,1),function(b){af(b,function(d,c){b.hasOwnProperty(c)&&(a[c]=d)})}),a},ak=Y.merge=function(b,a){var c=Array.prototype.slice.call(arguments,0);return c.unshift({}),ar.apply(null,c)},ah=Y.indexOf=function(b,a){if(Array.prototype.indexOf){return b.indexOf(a)}for(var c=0;c<b.length;c++){if(b[c]===a){return c}}return -1},aa=(Y.where=function(b,a){var c=[];return Y.each(b,function(d){a(d)&&c.push(d)}),c},Y.findNextWhere=function(b,a,d){d||(d=-1);for(var c=d+1;c<b.length;c++){var f=b[c];if(a(f)){return f}}},Y.findPreviousWhere=function(b,a,d){d||(d=b.length);for(var c=d-1;c>=0;c--){var f=b[c];if(a(f)){return f}}},Y.inherits=function(b){var a=this,d=b&&b.hasOwnProperty("constructor")?b.constructor:function(){return a.apply(this,arguments)},c=function(){this.constructor=d};return c.prototype=a.prototype,d.prototype=new c,d.extend=aa,b&&ar(d.prototype,b),d.__super__=a.prototype,d}),ap=Y.noop=function(){},V=Y.uid=function(){var a=0;return function(){return"chart-"+a++}}(),ao=Y.warn=function(a){window.console&&"function"==typeof window.console.warn&&console.warn(a)},ad=Y.amd="function"==typeof define&&define.amd,am=Y.isNumber=function(a){return !isNaN(parseFloat(a))&&isFinite(a)},al=Y.max=function(a){return Math.max.apply(Math,a)},ag=Y.min=function(a){return Math.min.apply(Math,a)},Q=(Y.cap=function(b,a,c){if(am(a)){if(b>a){return a}}else{if(am(c)&&c>b){return c}}return b},Y.getDecimalPlaces=function(b){if(b%1!==0&&am(b)){var a=b.toString();if(a.indexOf("e-")<0){return a.split(".")[1].length}if(a.indexOf(".")<0){return parseInt(a.split("e-")[1])}var c=a.split(".")[1].split("e-");return c[0].length+parseInt(c[1])}return 0}),D=Y.radians=function(a){return a*(Math.PI/180)},Z=(Y.getAngleFromPoint=function(b,a){var d=a.x-b.x,c=a.y-b.y,g=Math.sqrt(d*d+c*c),f=2*Math.PI+Math.atan2(c,d);return 0>d&&0>c&&(f+=2*Math.PI),{angle:f,distance:g}},Y.aliasPixel=function(a){return a%2===0?0:0.5}),N=(Y.splineCurve=function(d,c,k,g){var m=Math.sqrt(Math.pow(c.x-d.x,2)+Math.pow(c.y-d.y,2)),l=Math.sqrt(Math.pow(k.x-c.x,2)+Math.pow(k.y-c.y,2)),b=g*m/(m+l),f=g*l/(m+l);return{inner:{x:c.x-b*(k.x-d.x),y:c.y-b*(k.y-d.y)},outer:{x:c.x+f*(k.x-d.x),y:c.y+f*(k.y-d.y)}}},Y.calculateOrderOfMagnitude=function(a){return Math.floor(Math.log(a)/Math.LN10)}),K=(Y.calculateScaleRange=function(n,L,R,w,B){var at=2,M=Math.floor(L/(1.5*R)),F=at>=M,z=[];af(n,function(a){null==a||z.push(a)});var W=ag(z),m=al(z);m===W&&(m+=0.5,W>=0.5&&!w?W-=0.5:m+=0.5);for(var T=Math.abs(m-W),A=N(T),P=Math.ceil(m/(1*Math.pow(10,A)))*Math.pow(10,A),k=w?0:Math.floor(W/(1*Math.pow(10,A)))*Math.pow(10,A),b=P-k,x=Math.pow(10,A),g=Math.round(b/x);(g>M||M>2*g)&&!F;){if(g>M){x*=2,g=Math.round(b/x),g%1!==0&&(F=!0)}else{if(B&&A>=0){if(x/2%1!==0){break}x/=2,g=Math.round(b/x)}else{x/=2,g=Math.round(b/x)}}}return F&&(g=at,x=b/g),{steps:g,stepValue:x,min:k,max:k+g*x}},Y.template=function(b,a){function d(g,f){var h=/\W/.test(g)?new Function("obj","var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+g.replace(/[\r\t\n]/g," ").split("<%").join("	").replace(/((^|%>)[^\t]*)'/g,"$1\r").replace(/\t=(.*?)%>/g,"',$1,'").split("	").join("');").split("%>").join("p.push('").split("\r").join("\\'")+"');}return p.join('');"):c[g]=c[g];return f?h(f):h}if(b instanceof Function){return b(a)}var c={};return d(b,a)}),aq=(Y.generateLabels=function(b,a,d,c){var f=new Array(a);return b&&af(f,function(e,g){f[g]=K(b,{value:d+c*(g+1)})}),f},Y.easingEffects={linear:function(a){return a},easeInQuad:function(a){return a*a},easeOutQuad:function(a){return -1*a*(a-2)},easeInOutQuad:function(a){return(a/=0.5)<1?0.5*a*a:-0.5*(--a*(a-2)-1)},easeInCubic:function(a){return a*a*a},easeOutCubic:function(a){return 1*((a=a/1-1)*a*a+1)},easeInOutCubic:function(a){return(a/=0.5)<1?0.5*a*a*a:0.5*((a-=2)*a*a+2)},easeInQuart:function(a){return a*a*a*a},easeOutQuart:function(a){return -1*((a=a/1-1)*a*a*a-1)},easeInOutQuart:function(a){return(a/=0.5)<1?0.5*a*a*a*a:-0.5*((a-=2)*a*a*a-2)},easeInQuint:function(a){return 1*(a/=1)*a*a*a*a},easeOutQuint:function(a){return 1*((a=a/1-1)*a*a*a*a+1)},easeInOutQuint:function(a){return(a/=0.5)<1?0.5*a*a*a*a*a:0.5*((a-=2)*a*a*a*a+2)},easeInSine:function(a){return -1*Math.cos(a/1*(Math.PI/2))+1},easeOutSine:function(a){return 1*Math.sin(a/1*(Math.PI/2))},easeInOutSine:function(a){return -0.5*(Math.cos(Math.PI*a/1)-1)},easeInExpo:function(a){return 0===a?1:1*Math.pow(2,10*(a/1-1))},easeOutExpo:function(a){return 1===a?1:1*(-Math.pow(2,-10*a/1)+1)},easeInOutExpo:function(a){return 0===a?0:1===a?1:(a/=0.5)<1?0.5*Math.pow(2,10*(a-1)):0.5*(-Math.pow(2,-10*--a)+2)},easeInCirc:function(a){return a>=1?a:-1*(Math.sqrt(1-(a/=1)*a)-1)},easeOutCirc:function(a){return 1*Math.sqrt(1-(a=a/1-1)*a)},easeInOutCirc:function(a){return(a/=0.5)<1?-0.5*(Math.sqrt(1-a*a)-1):0.5*(Math.sqrt(1-(a-=2)*a)+1)},easeInElastic:function(b){var a=1.70158,d=0,c=1;return 0===b?0:1==(b/=1)?1:(d||(d=0.3),c<Math.abs(1)?(c=1,a=d/4):a=d/(2*Math.PI)*Math.asin(1/c),-(c*Math.pow(2,10*(b-=1))*Math.sin((1*b-a)*(2*Math.PI)/d)))},easeOutElastic:function(b){var a=1.70158,d=0,c=1;return 0===b?0:1==(b/=1)?1:(d||(d=0.3),c<Math.abs(1)?(c=1,a=d/4):a=d/(2*Math.PI)*Math.asin(1/c),c*Math.pow(2,-10*b)*Math.sin((1*b-a)*(2*Math.PI)/d)+1)},easeInOutElastic:function(b){var a=1.70158,d=0,c=1;return 0===b?0:2==(b/=0.5)?1:(d||(d=1*(0.3*1.5)),c<Math.abs(1)?(c=1,a=d/4):a=d/(2*Math.PI)*Math.asin(1/c),1>b?-0.5*(c*Math.pow(2,10*(b-=1))*Math.sin((1*b-a)*(2*Math.PI)/d)):c*Math.pow(2,-10*(b-=1))*Math.sin((1*b-a)*(2*Math.PI)/d)*0.5+1)},easeInBack:function(b){var a=1.70158;return 1*(b/=1)*b*((a+1)*b-a)},easeOutBack:function(b){var a=1.70158;return 1*((b=b/1-1)*b*((a+1)*b+a)+1)},easeInOutBack:function(b){var a=1.70158;return(b/=0.5)<1?0.5*(b*b*(((a*=1.525)+1)*b-a)):0.5*((b-=2)*b*(((a*=1.525)+1)*b+a)+2)},easeInBounce:function(a){return 1-aq.easeOutBounce(1-a)},easeOutBounce:function(a){return(a/=1)<1/2.75?1*(7.5625*a*a):2/2.75>a?1*(7.5625*(a-=1.5/2.75)*a+0.75):2.5/2.75>a?1*(7.5625*(a-=2.25/2.75)*a+0.9375):1*(7.5625*(a-=2.625/2.75)*a+0.984375)},easeInOutBounce:function(a){return 0.5>a?0.5*aq.easeInBounce(2*a):0.5*aq.easeOutBounce(2*a-1)+0.5}}),O=Y.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){return window.setTimeout(a,1000/60)}}(),G=(Y.cancelAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(a){return window.clearTimeout(a,1000/60)}}(),Y.animationLoop=function(p,f,k,r,c,b){var m=0,g=aq[k]||aq.linear,d=function(){m++;var h=m/f,a=g(h);p.call(b,a,h,m),r.call(b,a,h),f>m?b.animationFrame=O(d):c.apply(b)};O(d)},Y.getRelativePosition=function(b){var a,d,c=b.originalEvent||b,g=b.currentTarget||b.srcElement,f=g.getBoundingClientRect();return c.touches?(a=c.touches[0].clientX-f.left,d=c.touches[0].clientY-f.top):(a=c.clientX-f.left,d=c.clientY-f.top),{x:a,y:d}},Y.addEvent=function(b,a,c){b.addEventListener?b.addEventListener(a,c):b.attachEvent?b.attachEvent("on"+a,c):b["on"+a]=c}),I=Y.removeEvent=function(b,a,c){b.removeEventListener?b.removeEventListener(a,c,!1):b.detachEvent?b.detachEvent("on"+a,c):b["on"+a]=ap},ai=(Y.bindEvents=function(b,a,c){b.events||(b.events={}),af(a,function(d){b.events[d]=function(){c.apply(b,arguments)},G(b.chart.canvas,d,b.events[d])})},Y.unbindEvents=function(b,a){af(a,function(c,d){I(b.chart.canvas,d,c)})}),U=Y.getMaximumWidth=function(b){var a=b.parentNode,c=parseInt(E(a,"padding-left"))+parseInt(E(a,"padding-right"));return a?a.clientWidth-c:0},ac=Y.getMaximumHeight=function(b){var a=b.parentNode,c=parseInt(E(a,"padding-bottom"))+parseInt(E(a,"padding-top"));return a?a.clientHeight-c:0},E=Y.getStyle=function(b,a){return b.currentStyle?b.currentStyle[a]:document.defaultView.getComputedStyle(b,null).getPropertyValue(a)},q=(Y.getMaximumSize=Y.getMaximumWidth,Y.retinaScale=function(b){var a=b.ctx,d=b.canvas.width,c=b.canvas.height;window.devicePixelRatio&&(a.canvas.style.width=d+"px",a.canvas.style.height=c+"px",a.canvas.height=c*window.devicePixelRatio,a.canvas.width=d*window.devicePixelRatio,a.scale(window.devicePixelRatio,window.devicePixelRatio))}),H=Y.clear=function(a){a.ctx.clearRect(0,0,a.width,a.height)},j=Y.fontString=function(b,a,c){return a+" "+b+"px "+c},J=Y.longestText=function(b,a,d){b.font=a;var c=0;return af(d,function(f){var g=b.measureText(f).width;c=g>c?g:c}),c},ab=Y.drawRoundedRectangle=function(b,a,d,c,g,f){b.beginPath(),b.moveTo(a+f,d),b.lineTo(a+c-f,d),b.quadraticCurveTo(a+c,d,a+c,d+f),b.lineTo(a+c,d+g-f),b.quadraticCurveTo(a+c,d+g,a+c-f,d+g),b.lineTo(a+f,d+g),b.quadraticCurveTo(a,d+g,a,d+g-f),b.lineTo(a,d+f),b.quadraticCurveTo(a,d,a+f,d),b.closePath()};an.instances={},an.Type=function(b,a,c){this.options=a,this.chart=c,this.id=V(),an.instances[this.id]=this,a.responsive&&this.resize(),this.initialize.call(this,b)},ar(an.Type.prototype,{initialize:function(){return this},clear:function(){return H(this.chart),this},stop:function(){return an.animationService.cancelAnimation(this),this},resize:function(b){this.stop();var a=this.chart.canvas,d=U(this.chart.canvas),c=this.options.maintainAspectRatio?d/this.chart.aspectRatio:ac(this.chart.canvas);return a.width=this.chart.width=d,a.height=this.chart.height=c,q(this.chart),"function"==typeof b&&b.apply(this,Array.prototype.slice.call(arguments,1)),this},reflow:ap,render:function(b){if(b&&this.reflow(),this.options.animation&&!b){var a=new an.Animation;a.numSteps=this.options.animationSteps,a.easing=this.options.animationEasing,a.render=function(d,c){var f=Y.easingEffects[c.easing],h=c.currentStep/c.numSteps,g=f(h);d.draw(g,h,c.currentStep)},a.onAnimationProgress=this.options.onAnimationProgress,a.onAnimationComplete=this.options.onAnimationComplete,an.animationService.addAnimation(this,a)}else{this.draw(),this.options.onAnimationComplete.call(this)}return this},generateLegend:function(){return Y.template(this.options.legendTemplate,this)},destroy:function(){this.stop(),this.clear(),ai(this,this.events);var a=this.chart.canvas;a.width=this.chart.width,a.height=this.chart.height,a.style.removeProperty?(a.style.removeProperty("width"),a.style.removeProperty("height")):(a.style.removeAttribute("width"),a.style.removeAttribute("height")),delete an.instances[this.id]},showTooltip:function(p,f){"undefined"==typeof this.activeElements&&(this.activeElements=[]);var e=function(c){var a=!1;return c.length!==this.activeElements.length?a=!0:(af(c,function(d,h){d!==this.activeElements[h]&&(a=!0)},this),a)}.call(this,p);if(e||f){if(this.activeElements=p,this.draw(),this.options.customTooltips&&this.options.customTooltips(!1),p.length>0){if(this.datasets&&this.datasets.length>1){for(var m,g,b=this.datasets.length-1;b>=0&&(m=this.datasets[b].points||this.datasets[b].bars||this.datasets[b].segments,g=ah(m,p[0]),-1===g);b--){}var l=[],n=[],k=function(z){var v,w,s,h,y,u=[],c=[],x=[];return Y.each(this.datasets,function(a){v=a.points||a.bars||a.segments,v[g]&&v[g].hasValue()&&u.push(v[g])}),Y.each(u,function(a){c.push(a.x),x.push(a.y),l.push(Y.template(this.options.multiTooltipTemplate,a)),n.push({fill:a._saved.fillColor||a.fillColor,stroke:a._saved.strokeColor||a.strokeColor})},this),y=ag(x),s=al(x),h=ag(c),w=al(c),{x:h>this.chart.width/2?h:w,y:(y+s)/2}}.call(this,g);new an.MultiTooltip({x:k.x,y:k.y,xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,xOffset:this.options.tooltipXOffset,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,titleTextColor:this.options.tooltipTitleFontColor,titleFontFamily:this.options.tooltipTitleFontFamily,titleFontStyle:this.options.tooltipTitleFontStyle,titleFontSize:this.options.tooltipTitleFontSize,cornerRadius:this.options.tooltipCornerRadius,labels:l,legendColors:n,legendColorBackground:this.options.multiTooltipKeyBackground,title:K(this.options.tooltipTitleTemplate,p[0]),chart:this.chart,ctx:this.chart.ctx,custom:this.options.customTooltips}).draw()}else{af(p,function(c){var a=c.tooltipPosition();new an.Tooltip({x:Math.round(a.x),y:Math.round(a.y),xPadding:this.options.tooltipXPadding,yPadding:this.options.tooltipYPadding,fillColor:this.options.tooltipFillColor,textColor:this.options.tooltipFontColor,fontFamily:this.options.tooltipFontFamily,fontStyle:this.options.tooltipFontStyle,fontSize:this.options.tooltipFontSize,caretHeight:this.options.tooltipCaretSize,cornerRadius:this.options.tooltipCornerRadius,text:K(this.options.tooltipTemplate,c),chart:this.chart,custom:this.options.customTooltips}).draw()},this)}}return this}},toBase64Image:function(){return this.chart.canvas.toDataURL.apply(this.chart.canvas,arguments)}}),an.Type.extend=function(c){var b=this,d=function(){return b.apply(this,arguments)};if(d.prototype=ae(b.prototype),ar(d.prototype,c),d.extend=an.Type.extend,c.name||b.prototype.name){var e=c.name||b.prototype.name,a=an.defaults[b.prototype.name]?ae(an.defaults[b.prototype.name]):{};an.defaults[e]=ar(a,c.defaults),an.types[e]=d,an.prototype[e]=function(g,f){var h=ak(an.defaults.global,an.defaults[e],f||{});return new d(g,h,this)}}else{ao("Name not provided for this chart, so it hasn't been registered")}return b},an.Element=function(a){ar(this,a),this.initialize.apply(this,arguments),this.save()},ar(an.Element.prototype,{initialize:function(){},restore:function(a){return a?af(a,function(b){this[b]=this._saved[b]},this):ar(this,this._saved),this},save:function(){return this._saved=ae(this),delete this._saved._saved,this},update:function(a){return af(a,function(c,b){this._saved[b]=this[b],this[b]=c},this),this},transition:function(b,a){return af(b,function(c,d){this[d]=(c-this._saved[d])*a+this._saved[d]},this),this},tooltipPosition:function(){return{x:this.x,y:this.y}},hasValue:function(){return am(this.value)}}),an.Element.extend=aa,an.Point=an.Element.extend({display:!0,inRange:function(b,a){var c=this.hitDetectionRadius+this.radius;return Math.pow(b-this.x,2)+Math.pow(a-this.y,2)<Math.pow(c,2)},draw:function(){if(this.display){var a=this.ctx;a.beginPath(),a.arc(this.x,this.y,this.radius,0,2*Math.PI),a.closePath(),a.strokeStyle=this.strokeColor,a.lineWidth=this.strokeWidth,a.fillStyle=this.fillColor,a.fill(),a.stroke()}}}),an.Arc=an.Element.extend({inRange:function(f,d){var k=Y.getAngleFromPoint(this,{x:f,y:d}),p=k.angle%(2*Math.PI),m=(2*Math.PI+this.startAngle)%(2*Math.PI),c=(2*Math.PI+this.endAngle)%(2*Math.PI)||360,g=m>c?c>=p||p>=m:p>=m&&c>=p,b=k.distance>=this.innerRadius&&k.distance<=this.outerRadius;return g&&b},tooltipPosition:function(){var b=this.startAngle+(this.endAngle-this.startAngle)/2,a=(this.outerRadius-this.innerRadius)/2+this.innerRadius;return{x:this.x+Math.cos(b)*a,y:this.y+Math.sin(b)*a}},draw:function(b){var a=this.ctx;a.beginPath(),a.arc(this.x,this.y,this.outerRadius<0?0:this.outerRadius,this.startAngle,this.endAngle),a.arc(this.x,this.y,this.innerRadius<0?0:this.innerRadius,this.endAngle,this.startAngle,!0),a.closePath(),a.strokeStyle=this.strokeColor,a.lineWidth=this.strokeWidth,a.fillStyle=this.fillColor,a.fill(),a.lineJoin="bevel",this.showStroke&&a.stroke()}}),an.Rectangle=an.Element.extend({draw:function(){var b=this.ctx,a=this.width/2,d=this.x-a,c=this.x+a,g=this.base-(this.base-this.y),f=this.strokeWidth/2;this.showStroke&&(d+=f,c-=f,g+=f),b.beginPath(),b.fillStyle=this.fillColor,b.strokeStyle=this.strokeColor,b.lineWidth=this.strokeWidth,b.moveTo(d,this.base),b.lineTo(d,g),b.lineTo(c,g),b.lineTo(c,this.base),b.fill(),this.showStroke&&b.stroke()},height:function(){return this.base-this.y},inRange:function(b,a){return b>=this.x-this.width/2&&b<=this.x+this.width/2&&a>=this.y&&a<=this.base}}),an.Animation=an.Element.extend({currentStep:null,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),an.Tooltip=an.Element.extend({draw:function(){var d=this.chart.ctx;d.font=j(this.fontSize,this.fontStyle,this.fontFamily),this.xAlign="center",this.yAlign="above";var c=this.caretPadding=2,g=d.measureText(this.text).width+2*this.xPadding,f=this.fontSize+2*this.yPadding,k=f+this.caretHeight+c;this.x+g/2>this.chart.width?this.xAlign="left":this.x-g/2<0&&(this.xAlign="right"),this.y-k<0&&(this.yAlign="below");var h=this.x-g/2,b=this.y-k;if(d.fillStyle=this.fillColor,this.custom){this.custom(this)}else{switch(this.yAlign){case"above":d.beginPath(),d.moveTo(this.x,this.y-c),d.lineTo(this.x+this.caretHeight,this.y-(c+this.caretHeight)),d.lineTo(this.x-this.caretHeight,this.y-(c+this.caretHeight)),d.closePath(),d.fill();break;case"below":b=this.y+c+this.caretHeight,d.beginPath(),d.moveTo(this.x,this.y+c),d.lineTo(this.x+this.caretHeight,this.y+c+this.caretHeight),d.lineTo(this.x-this.caretHeight,this.y+c+this.caretHeight),d.closePath(),d.fill()}switch(this.xAlign){case"left":h=this.x-g+(this.cornerRadius+this.caretHeight);break;case"right":h=this.x-(this.cornerRadius+this.caretHeight)}ab(d,h,b,g,f,this.cornerRadius),d.fill(),d.fillStyle=this.textColor,d.textAlign="center",d.textBaseline="middle",d.fillText(this.text,h+g/2,b+f/2)}}}),an.MultiTooltip=an.Element.extend({initialize:function(){this.font=j(this.fontSize,this.fontStyle,this.fontFamily),this.titleFont=j(this.titleFontSize,this.titleFontStyle,this.titleFontFamily),this.titleHeight=this.title?1.5*this.titleFontSize:0,this.height=this.labels.length*this.fontSize+(this.labels.length-1)*(this.fontSize/2)+2*this.yPadding+this.titleHeight,this.ctx.font=this.titleFont;var b=this.ctx.measureText(this.title).width,a=J(this.ctx,this.font,this.labels)+this.fontSize+3,d=al([a,b]);this.width=d+2*this.xPadding;var c=this.height/2;this.y-c<0?this.y=c:this.y+c>this.chart.height&&(this.y=this.chart.height-c),this.x>this.chart.width/2?this.x-=this.xOffset+this.width:this.x+=this.xOffset},getLineHeight:function(b){var a=this.y-this.height/2+this.yPadding,c=b-1;return 0===b?a+this.titleHeight/3:a+(1.5*this.fontSize*c+this.fontSize/2)+this.titleHeight},draw:function(){if(this.custom){this.custom(this)}else{ab(this.ctx,this.x,this.y-this.height/2,this.width,this.height,this.cornerRadius);var a=this.ctx;a.fillStyle=this.fillColor,a.fill(),a.closePath(),a.textAlign="left",a.textBaseline="middle",a.fillStyle=this.titleTextColor,a.font=this.titleFont,a.fillText(this.title,this.x+this.xPadding,this.getLineHeight(0)),a.font=this.font,Y.each(this.labels,function(b,c){a.fillStyle=this.textColor,a.fillText(b,this.x+this.xPadding+this.fontSize+3,this.getLineHeight(c+1)),a.fillStyle=this.legendColorBackground,a.fillRect(this.x+this.xPadding,this.getLineHeight(c+1)-this.fontSize/2,this.fontSize,this.fontSize),a.fillStyle=this.legendColors[c].fill,a.fillRect(this.x+this.xPadding,this.getLineHeight(c+1)-this.fontSize/2,this.fontSize,this.fontSize)},this)}}}),an.Scale=an.Element.extend({initialize:function(){this.fit()},buildYLabels:function(){this.yLabels=[];for(var b=Q(this.stepValue),a=0;a<=this.steps;a++){this.yLabels.push(K(this.templateString,{value:(this.min+a*this.stepValue).toFixed(b)}))}this.yLabelWidth=this.display&&this.showLabels?J(this.ctx,this.font,this.yLabels)+10:0},addXLabel:function(a){this.xLabels.push(a),this.valuesCount++,this.fit()},removeXLabel:function(){this.xLabels.shift(),this.valuesCount--,this.fit()},fit:function(){this.startPoint=this.display?this.fontSize:0,this.endPoint=this.display?this.height-1.5*this.fontSize-5:this.height,this.startPoint+=this.padding,this.endPoint-=this.padding;var b,a=this.endPoint,c=this.endPoint-this.startPoint;for(this.calculateYRange(c),this.buildYLabels(),this.calculateXLabelRotation();c>this.endPoint-this.startPoint;){c=this.endPoint-this.startPoint,b=this.yLabelWidth,this.calculateYRange(c),this.buildYLabels(),b<this.yLabelWidth&&(this.endPoint=a,this.calculateXLabelRotation())}},calculateXLabelRotation:function(){this.ctx.font=this.font;var d,c,g=this.ctx.measureText(this.xLabels[0]).width,f=this.ctx.measureText(this.xLabels[this.xLabels.length-1]).width;if(this.xScalePaddingRight=f/2+3,this.xScalePaddingLeft=g/2>this.yLabelWidth?g/2:this.yLabelWidth,this.xLabelRotation=0,this.display){var k,h=J(this.ctx,this.font,this.xLabels);this.xLabelWidth=h;for(var b=Math.floor(this.calculateX(1)-this.calculateX(0))-6;this.xLabelWidth>b&&0===this.xLabelRotation||this.xLabelWidth>b&&this.xLabelRotation<=90&&this.xLabelRotation>0;){k=Math.cos(D(this.xLabelRotation)),d=k*g,c=k*f,d+this.fontSize/2>this.yLabelWidth&&(this.xScalePaddingLeft=d+this.fontSize/2),this.xScalePaddingRight=this.fontSize/2,this.xLabelRotation++,this.xLabelWidth=k*h}this.xLabelRotation>0&&(this.endPoint-=Math.sin(D(this.xLabelRotation))*h+3)}else{this.xLabelWidth=0,this.xScalePaddingRight=this.padding,this.xScalePaddingLeft=this.padding}},calculateYRange:ap,drawingArea:function(){return this.startPoint-this.endPoint},calculateY:function(b){var a=this.drawingArea()/(this.min-this.max);return this.endPoint-a*(b-this.min)},calculateX:function(b){var a=(this.xLabelRotation>0,this.width-(this.xScalePaddingLeft+this.xScalePaddingRight)),d=a/Math.max(this.valuesCount-(this.offsetGridLines?0:1),1),c=d*b+this.xScalePaddingLeft;return this.offsetGridLines&&(c+=d/2),Math.round(c)},update:function(a){Y.extend(this,a),this.fit()},draw:function(){var b=this.ctx,a=(this.endPoint-this.startPoint)/this.steps,c=Math.round(this.xScalePaddingLeft);this.display&&(b.fillStyle=this.textColor,b.font=this.font,af(this.yLabels,function(i,g){var e=this.endPoint-a*g,f=Math.round(e),d=this.showHorizontalLines;b.textAlign="right",b.textBaseline="middle",this.showLabels&&b.fillText(i,c-10,e),0!==g||d||(d=!0),d&&b.beginPath(),g>0?(b.lineWidth=this.gridLineWidth,b.strokeStyle=this.gridLineColor):(b.lineWidth=this.lineWidth,b.strokeStyle=this.lineColor),f+=Y.aliasPixel(b.lineWidth),d&&(b.moveTo(c,f),b.lineTo(this.width,f),b.stroke(),b.closePath()),b.lineWidth=this.lineWidth,b.strokeStyle=this.lineColor,b.beginPath(),b.moveTo(c-5,f),b.lineTo(c,f),b.stroke(),b.closePath()},this),af(this.xLabels,function(f,h){var g=this.calculateX(h)+Z(this.lineWidth),l=this.calculateX(h-(this.offsetGridLines?0.5:0))+Z(this.lineWidth),k=this.xLabelRotation>0,d=this.showVerticalLines;0!==h||d||(d=!0),d&&b.beginPath(),h>0?(b.lineWidth=this.gridLineWidth,b.strokeStyle=this.gridLineColor):(b.lineWidth=this.lineWidth,b.strokeStyle=this.lineColor),d&&(b.moveTo(l,this.endPoint),b.lineTo(l,this.startPoint-3),b.stroke(),b.closePath()),b.lineWidth=this.lineWidth,b.strokeStyle=this.lineColor,b.beginPath(),b.moveTo(l,this.endPoint),b.lineTo(l,this.endPoint+5),b.stroke(),b.closePath(),b.save(),b.translate(g,k?this.endPoint+12:this.endPoint+8),b.rotate(-1*D(this.xLabelRotation)),b.font=this.font,b.textAlign=k?"right":"center",b.textBaseline=k?"middle":"top",b.fillText(f,0,0),b.restore()},this))}}),an.RadialScale=an.Element.extend({initialize:function(){this.size=ag([this.height,this.width]),this.drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY):this.size/2},calculateCenterOffset:function(b){var a=this.drawingArea/(this.max-this.min);return(b-this.min)*a},update:function(){this.lineArc?this.drawingArea=this.display?this.size/2-(this.fontSize/2+this.backdropPaddingY):this.size/2:this.setScaleSize(),this.buildYLabels()},buildYLabels:function(){this.yLabels=[];for(var b=Q(this.stepValue),a=0;a<=this.steps;a++){this.yLabels.push(K(this.templateString,{value:(this.min+a*this.stepValue).toFixed(b)}))}},getCircumference:function(){return 2*Math.PI/this.valuesCount},setScaleSize:function(){var L,w,z,M,m,k,C,x,v,b,B,F,A=ag([this.height/2-this.pointLabelFontSize-5,this.width/2]),f=this.width,y=0;for(this.ctx.font=j(this.pointLabelFontSize,this.pointLabelFontStyle,this.pointLabelFontFamily),w=0;w<this.valuesCount;w++){L=this.getPointPosition(w,A),z=this.ctx.measureText(K(this.templateString,{value:this.labels[w]})).width+5,0===w||w===this.valuesCount/2?(M=z/2,L.x+M>f&&(f=L.x+M,m=w),L.x-M<y&&(y=L.x-M,C=w)):w<this.valuesCount/2?L.x+z>f&&(f=L.x+z,m=w):w>this.valuesCount/2&&L.x-z<y&&(y=L.x-z,C=w)}v=y,b=Math.ceil(f-this.width),k=this.getIndexAngle(m),x=this.getIndexAngle(C),B=b/Math.sin(k+Math.PI/2),F=v/Math.sin(x+Math.PI/2),B=am(B)?B:0,F=am(F)?F:0,this.drawingArea=A-(F+B)/2,this.setCenterPoint(F,B)},setCenterPoint:function(b,a){var d=this.width-a-this.drawingArea,c=b+this.drawingArea;this.xCenter=(c+d)/2,this.yCenter=this.height/2},getIndexAngle:function(b){var a=2*Math.PI/this.valuesCount;return b*a-Math.PI/2},getPointPosition:function(b,a){var c=this.getIndexAngle(b);return{x:Math.cos(c)*a+this.xCenter,y:Math.sin(c)*a+this.yCenter}},draw:function(){if(this.display){var C=this.ctx;if(af(this.yLabels,function(d,p){if(p>0){var l,t=p*(this.drawingArea/this.steps),r=this.yCenter-t;if(this.lineWidth>0){if(C.strokeStyle=this.lineColor,C.lineWidth=this.lineWidth,this.lineArc){C.beginPath(),C.arc(this.xCenter,this.yCenter,t,0,2*Math.PI),C.closePath(),C.stroke()}else{C.beginPath();for(var c=0;c<this.valuesCount;c++){l=this.getPointPosition(c,this.calculateCenterOffset(this.min+p*this.stepValue)),0===c?C.moveTo(l.x,l.y):C.lineTo(l.x,l.y)}C.closePath(),C.stroke()}}if(this.showLabels){if(C.font=j(this.fontSize,this.fontStyle,this.fontFamily),this.showLabelBackdrop){var f=C.measureText(d).width;C.fillStyle=this.backdropColor,C.fillRect(this.xCenter-f/2-this.backdropPaddingX,r-this.fontSize/2-this.backdropPaddingY,f+2*this.backdropPaddingX,this.fontSize+2*this.backdropPaddingY)}C.textAlign="center",C.textBaseline="middle",C.fillStyle=this.fontColor,C.fillText(d,this.xCenter,r)}}},this),!this.lineArc){C.lineWidth=this.angleLineWidth,C.strokeStyle=this.angleLineColor;for(var n=this.valuesCount-1;n>=0;n--){var x=null,F=null;if(this.angleLineWidth>0&&n%this.angleLineInterval===0&&(x=this.calculateCenterOffset(this.max),F=this.getPointPosition(n,x),C.beginPath(),C.moveTo(this.xCenter,this.yCenter),C.lineTo(F.x,F.y),C.stroke(),C.closePath()),this.backgroundColors&&this.backgroundColors.length==this.valuesCount){null==x&&(x=this.calculateCenterOffset(this.max)),null==F&&(F=this.getPointPosition(n,x));var k=this.getPointPosition(0===n?this.valuesCount-1:n-1,x),A=this.getPointPosition(n===this.valuesCount-1?0:n+1,x),v={x:(k.x+F.x)/2,y:(k.y+F.y)/2},m={x:(F.x+A.x)/2,y:(F.y+A.y)/2};C.beginPath(),C.moveTo(this.xCenter,this.yCenter),C.lineTo(v.x,v.y),C.lineTo(F.x,F.y),C.lineTo(m.x,m.y),C.fillStyle=this.backgroundColors[n],C.fill(),C.closePath()}var b=this.getPointPosition(n,this.calculateCenterOffset(this.max)+5);C.font=j(this.pointLabelFontSize,this.pointLabelFontStyle,this.pointLabelFontFamily),C.fillStyle=this.pointLabelFontColor;var z=this.labels.length,B=this.labels.length/2,y=B/2,g=y>n||n>z-y,w=n===y||n===z-y;0===n?C.textAlign="center":n===B?C.textAlign="center":B>n?C.textAlign="left":C.textAlign="right",w?C.textBaseline="middle":g?C.textBaseline="bottom":C.textBaseline="top",C.fillText(this.labels[n],b.x,b.y)}}}}}),an.animationService={frameDuration:17,animations:[],dropFrames:0,addAnimation:function(b,a){for(var c=0;c<this.animations.length;++c){if(this.animations[c].chartInstance===b){return void (this.animations[c].animationObject=a)}}this.animations.push({chartInstance:b,animationObject:a}),1==this.animations.length&&Y.requestAnimFrame.call(window,this.digestWrapper)},cancelAnimation:function(b){var a=Y.findNextWhere(this.animations,function(c){return c.chartInstance===b});a&&this.animations.splice(a,1)},digestWrapper:function(){an.animationService.startDigest.call(an.animationService)},startDigest:function(){var d=Date.now(),c=0;this.dropFrames>1&&(c=Math.floor(this.dropFrames),this.dropFrames-=c);for(var f=0;f<this.animations.length;f++){null===this.animations[f].animationObject.currentStep&&(this.animations[f].animationObject.currentStep=0),this.animations[f].animationObject.currentStep+=1+c,this.animations[f].animationObject.currentStep>this.animations[f].animationObject.numSteps&&(this.animations[f].animationObject.currentStep=this.animations[f].animationObject.numSteps),this.animations[f].animationObject.render(this.animations[f].chartInstance,this.animations[f].animationObject),this.animations[f].animationObject.currentStep==this.animations[f].animationObject.numSteps&&(this.animations[f].animationObject.onAnimationComplete.call(this.animations[f].chartInstance),this.animations.splice(f,1),f--)}var h=Date.now(),g=h-d-this.frameDuration,b=g/this.frameDuration;b>1&&(this.dropFrames+=b),this.animations.length>0&&Y.requestAnimFrame.call(window,this.digestWrapper)}},Y.addEvent(window,"resize",function(){var a;return function(){clearTimeout(a),a=setTimeout(function(){af(an.instances,function(b){b.options.responsive&&b.resize(b.render,!0)})},50)}}()),ad?define("Chart",[],function(){return an}):"object"==typeof module&&module.exports&&(module.exports=an),X.Chart=an,an.noConflict=function(){return X.Chart=aj,an}}).call(this),function(){var b=this,a=b.Chart,d=a.helpers,c={scaleBeginAtZero:!0,scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleShowHorizontalLines:!0,scaleShowVerticalLines:!0,barShowStroke:!0,barStrokeWidth:2,barValueSpacing:5,barDatasetSpacing:1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span class="<%=name.toLowerCase()%>-legend-icon" style="background-color:<%=datasets[i].fillColor%>"></span><span class="<%=name.toLowerCase()%>-legend-text"><%if(datasets[i].label){%><%=datasets[i].label%><%}%></span></li><%}%></ul>'};a.Type.extend({name:"Bar",defaults:c,initialize:function(e){var f=this.options;this.ScaleClass=a.Scale.extend({offsetGridLines:!0,calculateBarX:function(j,h,k){var m=this.calculateBaseWidth(),l=this.calculateX(k)-m/2,g=this.calculateBarWidth(j);return l+g*h+h*f.barDatasetSpacing+g/2},calculateBaseWidth:function(){return this.calculateX(1)-this.calculateX(0)-2*f.barValueSpacing},calculateBarWidth:function(h){var g=this.calculateBaseWidth()-(h-1)*f.barDatasetSpacing;return g/h}}),this.datasets=[],this.options.showTooltips&&d.bindEvents(this,this.options.tooltipEvents,function(h){var g="mouseout"!==h.type?this.getBarsAtEvent(h):[];this.eachBars(function(i){i.restore(["fillColor","strokeColor"])}),d.each(g,function(i){i&&(i.fillColor=i.highlightFill,i.strokeColor=i.highlightStroke)}),this.showTooltip(g)}),this.BarClass=a.Rectangle.extend({strokeWidth:this.options.barStrokeWidth,showStroke:this.options.barShowStroke,ctx:this.chart.ctx}),d.each(e.datasets,function(g,h){var j={label:g.label||null,fillColor:g.fillColor,strokeColor:g.strokeColor,bars:[]};this.datasets.push(j),d.each(g.data,function(k,i){j.bars.push(new this.BarClass({value:k,label:e.labels[i],datasetLabel:g.label,strokeColor:"object"==typeof g.strokeColor?g.strokeColor[i]:g.strokeColor,fillColor:"object"==typeof g.fillColor?g.fillColor[i]:g.fillColor,highlightFill:g.highlightFill?"object"==typeof g.highlightFill?g.highlightFill[i]:g.highlightFill:"object"==typeof g.fillColor?g.fillColor[i]:g.fillColor,highlightStroke:g.highlightStroke?"object"==typeof g.highlightStroke?g.highlightStroke[i]:g.highlightStroke:"object"==typeof g.strokeColor?g.strokeColor[i]:g.strokeColor}))},this)},this),this.buildScale(e.labels),this.BarClass.prototype.base=this.scale.endPoint,this.eachBars(function(h,g,j){d.extend(h,{width:this.scale.calculateBarWidth(this.datasets.length),x:this.scale.calculateBarX(this.datasets.length,j,g),y:this.scale.endPoint}),h.save()},this),this.render()},update:function(){this.scale.update(),d.each(this.activeElements,function(e){e.restore(["fillColor","strokeColor"])}),this.eachBars(function(e){e.save()}),this.render()},eachBars:function(e){d.each(this.datasets,function(f,g){d.each(f.bars,e,this,g)},this)},getBarsAtEvent:function(g){for(var f,h=[],k=d.getRelativePosition(g),j=function(i){h.push(i.bars[f])},e=0;e<this.datasets.length;e++){for(f=0;f<this.datasets[e].bars.length;f++){if(this.datasets[e].bars[f].inRange(k.x,k.y)){return d.each(this.datasets,j),h}}}return h},buildScale:function(f){var e=this,g=function(){var i=[];return e.eachBars(function(j){i.push(j.value)}),i},h={templateString:this.options.scaleLabel,height:this.chart.height,width:this.chart.width,ctx:this.chart.ctx,textColor:this.options.scaleFontColor,fontSize:this.options.scaleFontSize,fontStyle:this.options.scaleFontStyle,fontFamily:this.options.scaleFontFamily,valuesCount:f.length,beginAtZero:this.options.scaleBeginAtZero,integersOnly:this.options.scaleIntegersOnly,calculateYRange:function(k){var j=d.calculateScaleRange(g(),k,this.fontSize,this.beginAtZero,this.integersOnly);d.extend(this,j)},xLabels:f,font:d.fontString(this.options.scaleFontSize,this.options.scaleFontStyle,this.options.scaleFontFamily),lineWidth:this.options.scaleLineWidth,lineColor:this.options.scaleLineColor,showHorizontalLines:this.options.scaleShowHorizontalLines,showVerticalLines:this.options.scaleShowVerticalLines,gridLineWidth:this.options.scaleShowGridLines?this.options.scaleGridLineWidth:0,gridLineColor:this.options.scaleShowGridLines?this.options.scaleGridLineColor:"rgba(0,0,0,0)",padding:this.options.showScale?0:this.options.barShowStroke?this.options.barStrokeWidth:0,showLabels:this.options.scaleShowLabels,display:this.options.showScale};this.options.scaleOverride&&d.extend(h,{calculateYRange:d.noop,steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}),this.scale=new this.ScaleClass(h)},addData:function(f,e){d.each(f,function(g,h){this.datasets[h].bars.push(new this.BarClass({value:g,label:e,datasetLabel:this.datasets[h].label,x:this.scale.calculateBarX(this.datasets.length,h,this.scale.valuesCount+1),y:this.scale.endPoint,width:this.scale.calculateBarWidth(this.datasets.length),base:this.scale.endPoint,strokeColor:this.datasets[h].strokeColor,fillColor:this.datasets[h].fillColor}))},this),this.scale.addXLabel(e),this.update()},removeData:function(){this.scale.removeXLabel(),d.each(this.datasets,function(e){e.bars.shift()},this),this.update()},reflow:function(){d.extend(this.BarClass.prototype,{y:this.scale.endPoint,base:this.scale.endPoint});var e=d.extend({height:this.chart.height,width:this.chart.width});this.scale.update(e)},draw:function(f){var e=f||1;this.clear();this.chart.ctx;this.scale.draw(e),d.each(this.datasets,function(g,h){d.each(g.bars,function(i,j){i.hasValue()&&(i.base=this.scale.endPoint,i.transition({x:this.scale.calculateBarX(this.datasets.length,h,j),y:this.scale.calculateY(i.value),width:this.scale.calculateBarWidth(this.datasets.length)},e).draw())},this)},this)}})}.call(this),function(){var b=this,a=b.Chart,d=a.helpers,c={segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,percentageInnerCutout:50,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span class="<%=name.toLowerCase()%>-legend-icon" style="background-color:<%=segments[i].fillColor%>"></span><span class="<%=name.toLowerCase()%>-legend-text"><%if(segments[i].label){%><%=segments[i].label%><%}%></span></li><%}%></ul>'};a.Type.extend({name:"Doughnut",defaults:c,initialize:function(e){this.segments=[],this.outerRadius=(d.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2,this.SegmentArc=a.Arc.extend({ctx:this.chart.ctx,x:this.chart.width/2,y:this.chart.height/2}),this.options.showTooltips&&d.bindEvents(this,this.options.tooltipEvents,function(g){var f="mouseout"!==g.type?this.getSegmentsAtEvent(g):[];d.each(this.segments,function(h){h.restore(["fillColor"])}),d.each(f,function(h){h.fillColor=h.highlightColor}),this.showTooltip(f)}),this.calculateTotal(e),d.each(e,function(f,g){f.color||(f.color="hsl("+360*g/e.length+", 100%, 50%)"),this.addData(f,g,!0)},this),this.render()},getSegmentsAtEvent:function(f){var e=[],g=d.getRelativePosition(f);return d.each(this.segments,function(h){h.inRange(g.x,g.y)&&e.push(h)},this),e},addData:function(f,h,g){var i=void 0!==h?h:this.segments.length;"undefined"==typeof f.color&&(f.color=a.defaults.global.segmentColorDefault[i%a.defaults.global.segmentColorDefault.length],f.highlight=a.defaults.global.segmentHighlightColorDefaults[i%a.defaults.global.segmentHighlightColorDefaults.length]),this.segments.splice(i,0,new this.SegmentArc({value:f.value,outerRadius:this.options.animateScale?0:this.outerRadius,innerRadius:this.options.animateScale?0:this.outerRadius/100*this.options.percentageInnerCutout,fillColor:f.color,highlightColor:f.highlight||f.color,showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,startAngle:1.5*Math.PI,circumference:this.options.animateRotate?0:this.calculateCircumference(f.value),label:f.label})),g||(this.reflow(),this.update())},calculateCircumference:function(e){return this.total>0?2*Math.PI*(e/this.total):0},calculateTotal:function(e){this.total=0,d.each(e,function(f){this.total+=Math.abs(f.value)},this)},update:function(){this.calculateTotal(this.segments),d.each(this.activeElements,function(e){e.restore(["fillColor"])}),d.each(this.segments,function(e){e.save()}),this.render()},removeData:function(f){var e=d.isNumber(f)?f:this.segments.length-1;this.segments.splice(e,1),this.reflow(),this.update()},reflow:function(){d.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2}),this.outerRadius=(d.min([this.chart.width,this.chart.height])-this.options.segmentStrokeWidth/2)/2,d.each(this.segments,function(e){e.update({outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options.percentageInnerCutout})},this)},draw:function(f){var e=f?f:1;this.clear(),d.each(this.segments,function(g,h){g.transition({circumference:this.calculateCircumference(g.value),outerRadius:this.outerRadius,innerRadius:this.outerRadius/100*this.options.percentageInnerCutout},e),g.endAngle=g.startAngle+g.circumference,g.draw(),0===h&&(g.startAngle=1.5*Math.PI),h<this.segments.length-1&&(this.segments[h+1].startAngle=g.endAngle)},this)}}),a.types.Doughnut.extend({name:"Pie",defaults:d.merge(c,{percentageInnerCutout:0})})}.call(this),function(){var b=this,a=b.Chart,d=a.helpers,c={scaleShowGridLines:!0,scaleGridLineColor:"rgba(0,0,0,.05)",scaleGridLineWidth:1,scaleShowHorizontalLines:!0,scaleShowVerticalLines:!0,bezierCurve:!0,bezierCurveTension:0.4,pointDot:!0,pointDotRadius:4,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span class="<%=name.toLowerCase()%>-legend-icon" style="background-color:<%=datasets[i].strokeColor%>"></span><span class="<%=name.toLowerCase()%>-legend-text"><%if(datasets[i].label){%><%=datasets[i].label%><%}%></span></li><%}%></ul>',offsetGridLines:!1};a.Type.extend({name:"Line",defaults:c,initialize:function(e){this.PointClass=a.Point.extend({offsetGridLines:this.options.offsetGridLines,strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx,inRange:function(f){return Math.pow(f-this.x,2)<Math.pow(this.radius+this.hitDetectionRadius,2)}}),this.datasets=[],this.options.showTooltips&&d.bindEvents(this,this.options.tooltipEvents,function(g){var f="mouseout"!==g.type?this.getPointsAtEvent(g):[];this.eachPoints(function(h){h.restore(["fillColor","strokeColor"])}),d.each(f,function(h){h.fillColor=h.highlightFill,h.strokeColor=h.highlightStroke}),this.showTooltip(f)}),d.each(e.datasets,function(f){var g={label:f.label||null,fillColor:f.fillColor,strokeColor:f.strokeColor,pointColor:f.pointColor,pointStrokeColor:f.pointStrokeColor,points:[]};this.datasets.push(g),d.each(f.data,function(h,i){g.points.push(new this.PointClass({value:h,label:e.labels[i],datasetLabel:f.label,strokeColor:f.pointStrokeColor,fillColor:f.pointColor,highlightFill:f.pointHighlightFill||f.pointColor,highlightStroke:f.pointHighlightStroke||f.pointStrokeColor}))},this),this.buildScale(e.labels),this.eachPoints(function(j,h){d.extend(j,{x:this.scale.calculateX(h),y:this.scale.endPoint}),j.save()},this)},this),this.render()},update:function(){this.scale.update(),d.each(this.activeElements,function(e){e.restore(["fillColor","strokeColor"])}),this.eachPoints(function(e){e.save()}),this.render()},eachPoints:function(e){d.each(this.datasets,function(f){d.each(f.points,e,this)},this)},getPointsAtEvent:function(f){var e=[],g=d.getRelativePosition(f);return d.each(this.datasets,function(h){d.each(h.points,function(i){i.inRange(g.x,g.y)&&e.push(i)})},this),e},buildScale:function(e){var f=this,h=function(){var i=[];return f.eachPoints(function(j){i.push(j.value)}),i},g={templateString:this.options.scaleLabel,height:this.chart.height,width:this.chart.width,ctx:this.chart.ctx,textColor:this.options.scaleFontColor,offsetGridLines:this.options.offsetGridLines,fontSize:this.options.scaleFontSize,fontStyle:this.options.scaleFontStyle,fontFamily:this.options.scaleFontFamily,valuesCount:e.length,beginAtZero:this.options.scaleBeginAtZero,integersOnly:this.options.scaleIntegersOnly,calculateYRange:function(k){var j=d.calculateScaleRange(h(),k,this.fontSize,this.beginAtZero,this.integersOnly);d.extend(this,j)},xLabels:e,font:d.fontString(this.options.scaleFontSize,this.options.scaleFontStyle,this.options.scaleFontFamily),lineWidth:this.options.scaleLineWidth,lineColor:this.options.scaleLineColor,showHorizontalLines:this.options.scaleShowHorizontalLines,showVerticalLines:this.options.scaleShowVerticalLines,gridLineWidth:this.options.scaleShowGridLines?this.options.scaleGridLineWidth:0,gridLineColor:this.options.scaleShowGridLines?this.options.scaleGridLineColor:"rgba(0,0,0,0)",padding:this.options.showScale?0:this.options.pointDotRadius+this.options.pointDotStrokeWidth,showLabels:this.options.scaleShowLabels,display:this.options.showScale};this.options.scaleOverride&&d.extend(g,{calculateYRange:d.noop,steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}),this.scale=new a.Scale(g)},addData:function(f,e){d.each(f,function(g,h){this.datasets[h].points.push(new this.PointClass({value:g,label:e,datasetLabel:this.datasets[h].label,x:this.scale.calculateX(this.scale.valuesCount+1),y:this.scale.endPoint,strokeColor:this.datasets[h].pointStrokeColor,fillColor:this.datasets[h].pointColor}))},this),this.scale.addXLabel(e),this.update()},removeData:function(){this.scale.removeXLabel(),d.each(this.datasets,function(e){e.points.shift()},this),this.update()},reflow:function(){var e=d.extend({height:this.chart.height,width:this.chart.width});this.scale.update(e)},draw:function(g){var f=g||1;this.clear();var h=this.chart.ctx,k=function(i){return null!==i.value},j=function(m,l,n){return d.findNextWhere(l,k,n)||m},e=function(m,l,n){return d.findPreviousWhere(l,k,n)||m};this.scale&&(this.scale.draw(f),d.each(this.datasets,function(i){var l=d.where(i.points,k);d.each(i.points,function(m,n){m.hasValue()&&m.transition({y:this.scale.calculateY(m.value),x:this.scale.calculateX(n)},f)},this),this.options.bezierCurve&&d.each(l,function(n,m){var o=m>0&&m<l.length-1?this.options.bezierCurveTension:0;n.controlPoints=d.splineCurve(e(n,l,m),n,j(n,l,m),o),n.controlPoints.outer.y>this.scale.endPoint?n.controlPoints.outer.y=this.scale.endPoint:n.controlPoints.outer.y<this.scale.startPoint&&(n.controlPoints.outer.y=this.scale.startPoint),n.controlPoints.inner.y>this.scale.endPoint?n.controlPoints.inner.y=this.scale.endPoint:n.controlPoints.inner.y<this.scale.startPoint&&(n.controlPoints.inner.y=this.scale.startPoint)},this),h.lineWidth=this.options.datasetStrokeWidth,h.strokeStyle=i.strokeColor,h.beginPath(),d.each(l,function(n,m){if(0===m){h.moveTo(n.x,n.y)}else{if(this.options.bezierCurve){var o=e(n,l,m);h.bezierCurveTo(o.controlPoints.outer.x,o.controlPoints.outer.y,n.controlPoints.inner.x,n.controlPoints.inner.y,n.x,n.y)}else{h.lineTo(n.x,n.y)}}},this),this.options.datasetStroke&&h.stroke(),this.options.datasetFill&&l.length>0&&(h.lineTo(l[l.length-1].x,this.scale.endPoint),h.lineTo(l[0].x,this.scale.endPoint),h.fillStyle=i.fillColor,h.closePath(),h.fill()),d.each(l,function(m){m.draw()})},this))}})}.call(this),function(){var b=this,a=b.Chart,d=a.helpers,c={scaleShowLabelBackdrop:!0,scaleBackdropColor:"rgba(255,255,255,0.75)",scaleBeginAtZero:!0,scaleBackdropPaddingY:2,scaleBackdropPaddingX:2,scaleShowLine:!0,segmentShowStroke:!0,segmentStrokeColor:"#fff",segmentStrokeWidth:2,animationSteps:100,animationEasing:"easeOutBounce",animateRotate:!0,animateScale:!1,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<segments.length; i++){%><li><span class="<%=name.toLowerCase()%>-legend-icon" style="background-color:<%=segments[i].fillColor%>"></span><span class="<%=name.toLowerCase()%>-legend-text"><%if(segments[i].label){%><%=segments[i].label%><%}%></span></li><%}%></ul>'};a.Type.extend({name:"PolarArea",defaults:c,initialize:function(e){this.segments=[],this.SegmentArc=a.Arc.extend({showStroke:this.options.segmentShowStroke,strokeWidth:this.options.segmentStrokeWidth,strokeColor:this.options.segmentStrokeColor,ctx:this.chart.ctx,innerRadius:0,x:this.chart.width/2,y:this.chart.height/2}),this.scale=new a.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,lineArc:!0,width:this.chart.width,height:this.chart.height,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,valuesCount:e.length}),this.updateScaleRange(e),this.scale.update(),d.each(e,function(g,f){this.addData(g,f,!0)},this),this.options.showTooltips&&d.bindEvents(this,this.options.tooltipEvents,function(g){var f="mouseout"!==g.type?this.getSegmentsAtEvent(g):[];d.each(this.segments,function(h){h.restore(["fillColor"])}),d.each(f,function(h){h.fillColor=h.highlightColor}),this.showTooltip(f)}),this.render()},getSegmentsAtEvent:function(f){var e=[],g=d.getRelativePosition(f);return d.each(this.segments,function(h){h.inRange(g.x,g.y)&&e.push(h)},this),e},addData:function(g,f,j){var h=f||this.segments.length;this.segments.splice(h,0,new this.SegmentArc({fillColor:g.color,highlightColor:g.highlight||g.color,label:g.label,value:g.value,outerRadius:this.options.animateScale?0:this.scale.calculateCenterOffset(g.value),circumference:this.options.animateRotate?0:this.scale.getCircumference(),startAngle:1.5*Math.PI})),j||(this.reflow(),this.update())},removeData:function(f){var e=d.isNumber(f)?f:this.segments.length-1;this.segments.splice(e,1),this.reflow(),this.update()},calculateTotal:function(e){this.total=0,d.each(e,function(f){this.total+=f.value},this),this.scale.valuesCount=this.segments.length},updateScaleRange:function(f){var e=[];d.each(f,function(h){e.push(h.value)});var g=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:d.calculateScaleRange(e,d.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);d.extend(this.scale,g,{size:d.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2})},update:function(){this.calculateTotal(this.segments),d.each(this.segments,function(e){e.save()}),this.reflow(),this.render()},reflow:function(){d.extend(this.SegmentArc.prototype,{x:this.chart.width/2,y:this.chart.height/2}),this.updateScaleRange(this.segments),this.scale.update(),d.extend(this.scale,{xCenter:this.chart.width/2,yCenter:this.chart.height/2}),d.each(this.segments,function(e){e.update({outerRadius:this.scale.calculateCenterOffset(e.value)})},this)},draw:function(f){var e=f||1;this.clear(),d.each(this.segments,function(g,h){g.transition({circumference:this.scale.getCircumference(),outerRadius:this.scale.calculateCenterOffset(g.value)},e),g.endAngle=g.startAngle+g.circumference,0===h&&(g.startAngle=1.5*Math.PI),h<this.segments.length-1&&(this.segments[h+1].startAngle=g.endAngle),g.draw()},this),this.scale.draw()}})}.call(this),function(){var b=this,a=b.Chart,c=a.helpers;a.Type.extend({name:"Radar",defaults:{scaleShowLine:!0,angleShowLineOut:!0,scaleShowLabels:!1,scaleBeginAtZero:!0,angleLineColor:"rgba(0,0,0,.1)",angleLineWidth:1,angleLineInterval:1,pointLabelFontFamily:"'Arial'",pointLabelFontStyle:"normal",pointLabelFontSize:10,pointLabelFontColor:"#666",pointDot:!0,pointDotRadius:3,pointDotStrokeWidth:1,pointHitDetectionRadius:20,datasetStroke:!0,datasetStrokeWidth:2,datasetFill:!0,legendTemplate:'<ul class="<%=name.toLowerCase()%>-legend"><% for (var i=0; i<datasets.length; i++){%><li><span class="<%=name.toLowerCase()%>-legend-icon" style="background-color:<%=datasets[i].strokeColor%>"></span><span class="<%=name.toLowerCase()%>-legend-text"><%if(datasets[i].label){%><%=datasets[i].label%><%}%></span></li><%}%></ul>'},initialize:function(d){this.PointClass=a.Point.extend({strokeWidth:this.options.pointDotStrokeWidth,radius:this.options.pointDotRadius,display:this.options.pointDot,hitDetectionRadius:this.options.pointHitDetectionRadius,ctx:this.chart.ctx}),this.datasets=[],this.buildScale(d),this.options.showTooltips&&c.bindEvents(this,this.options.tooltipEvents,function(f){var e="mouseout"!==f.type?this.getPointsAtEvent(f):[];this.eachPoints(function(g){g.restore(["fillColor","strokeColor"])}),c.each(e,function(g){g.fillColor=g.highlightFill,g.strokeColor=g.highlightStroke}),this.showTooltip(e)}),c.each(d.datasets,function(e){var f={label:e.label||null,fillColor:e.fillColor,strokeColor:e.strokeColor,pointColor:e.pointColor,pointStrokeColor:e.pointStrokeColor,points:[]};this.datasets.push(f),c.each(e.data,function(g,i){var h;this.scale.animation||(h=this.scale.getPointPosition(i,this.scale.calculateCenterOffset(g))),f.points.push(new this.PointClass({value:g,label:d.labels[i],datasetLabel:e.label,x:this.options.animation?this.scale.xCenter:h.x,y:this.options.animation?this.scale.yCenter:h.y,strokeColor:e.pointStrokeColor,fillColor:e.pointColor,highlightFill:e.pointHighlightFill||e.pointColor,highlightStroke:e.pointHighlightStroke||e.pointStrokeColor}))},this)},this),this.render()},eachPoints:function(d){c.each(this.datasets,function(e){c.each(e.points,d,this)},this)},getPointsAtEvent:function(f){var e=c.getRelativePosition(f),g=c.getAngleFromPoint({x:this.scale.xCenter,y:this.scale.yCenter},e),j=2*Math.PI/this.scale.valuesCount,h=Math.round((g.angle-1.5*Math.PI)/j),d=[];return(h>=this.scale.valuesCount||0>h)&&(h=0),g.distance<=this.scale.drawingArea&&c.each(this.datasets,function(i){d.push(i.points[h])}),d},buildScale:function(d){this.scale=new a.RadialScale({display:this.options.showScale,fontStyle:this.options.scaleFontStyle,fontSize:this.options.scaleFontSize,fontFamily:this.options.scaleFontFamily,fontColor:this.options.scaleFontColor,showLabels:this.options.scaleShowLabels,showLabelBackdrop:this.options.scaleShowLabelBackdrop,backdropColor:this.options.scaleBackdropColor,backgroundColors:this.options.scaleBackgroundColors,backdropPaddingY:this.options.scaleBackdropPaddingY,backdropPaddingX:this.options.scaleBackdropPaddingX,lineWidth:this.options.scaleShowLine?this.options.scaleLineWidth:0,lineColor:this.options.scaleLineColor,angleLineColor:this.options.angleLineColor,angleLineWidth:this.options.angleShowLineOut?this.options.angleLineWidth:0,angleLineInterval:this.options.angleLineInterval?this.options.angleLineInterval:1,pointLabelFontColor:this.options.pointLabelFontColor,pointLabelFontSize:this.options.pointLabelFontSize,pointLabelFontFamily:this.options.pointLabelFontFamily,pointLabelFontStyle:this.options.pointLabelFontStyle,height:this.chart.height,width:this.chart.width,xCenter:this.chart.width/2,yCenter:this.chart.height/2,ctx:this.chart.ctx,templateString:this.options.scaleLabel,labels:d.labels,valuesCount:d.datasets[0].data.length}),this.scale.setScaleSize(),this.updateScaleRange(d.datasets),this.scale.buildYLabels()},updateScaleRange:function(e){var d=function(){var g=[];return c.each(e,function(h){h.data?g=g.concat(h.data):c.each(h.points,function(i){g.push(i.value)})}),g}(),f=this.options.scaleOverride?{steps:this.options.scaleSteps,stepValue:this.options.scaleStepWidth,min:this.options.scaleStartValue,max:this.options.scaleStartValue+this.options.scaleSteps*this.options.scaleStepWidth}:c.calculateScaleRange(d,c.min([this.chart.width,this.chart.height])/2,this.options.scaleFontSize,this.options.scaleBeginAtZero,this.options.scaleIntegersOnly);c.extend(this.scale,f)},addData:function(e,d){this.scale.valuesCount++,c.each(e,function(f,h){var g=this.scale.getPointPosition(this.scale.valuesCount,this.scale.calculateCenterOffset(f));this.datasets[h].points.push(new this.PointClass({value:f,label:d,datasetLabel:this.datasets[h].label,x:g.x,y:g.y,strokeColor:this.datasets[h].pointStrokeColor,fillColor:this.datasets[h].pointColor}))},this),this.scale.labels.push(d),this.reflow(),this.update()},removeData:function(){this.scale.valuesCount--,this.scale.labels.shift(),c.each(this.datasets,function(d){d.points.shift()},this),this.reflow(),this.update()},update:function(){this.eachPoints(function(d){d.save()}),this.reflow(),this.render()},reflow:function(){c.extend(this.scale,{width:this.chart.width,height:this.chart.height,size:c.min([this.chart.width,this.chart.height]),xCenter:this.chart.width/2,yCenter:this.chart.height/2}),this.updateScaleRange(this.datasets),this.scale.setScaleSize(),this.scale.buildYLabels()},draw:function(e){var d=e||1,f=this.chart.ctx;this.clear(),this.scale.draw(),c.each(this.datasets,function(g){c.each(g.points,function(h,i){h.hasValue()&&h.transition(this.scale.getPointPosition(i,this.scale.calculateCenterOffset(h.value)),d)},this),f.lineWidth=this.options.datasetStrokeWidth,f.strokeStyle=g.strokeColor,f.beginPath(),c.each(g.points,function(j,h){0===h?f.moveTo(j.x,j.y):f.lineTo(j.x,j.y)},this),f.closePath(),f.stroke(),f.fillStyle=g.fillColor,this.options.datasetFill&&f.fill(),c.each(g.points,function(h){h.hasValue()&&h.draw()})},this)}})}.call(this);(function(a){a.md5=function(s){function L(c,b){return(c<<b)|(c>>>(32-b))}function K(x,c){var G,b,k,F,d;k=(x&2147483648);F=(c&2147483648);G=(x&1073741824);b=(c&1073741824);d=(x&1073741823)+(c&1073741823);if(G&b){return(d^2147483648^k^F)}if(G|b){if(d&1073741824){return(d^3221225472^k^F)}else{return(d^1073741824^k^F)}}else{return(d^k^F)}}function r(b,d,c){return(b&d)|((~b)&c)}function q(b,d,c){return(b&c)|(d&(~c))}function p(b,d,c){return(b^d^c)}function n(b,d,c){return(d^(b|(~c)))}function u(G,F,aa,Z,k,H,I){G=K(G,K(K(r(F,aa,Z),k),I));return K(L(G,H),F)}function f(G,F,aa,Z,k,H,I){G=K(G,K(K(q(F,aa,Z),k),I));return K(L(G,H),F)}function D(G,F,aa,Z,k,H,I){G=K(G,K(K(p(F,aa,Z),k),I));return K(L(G,H),F)}function t(G,F,aa,Z,k,H,I){G=K(G,K(K(n(F,aa,Z),k),I));return K(L(G,H),F)}function e(x){var H;var k=x.length;var d=k+8;var c=(d-(d%64))/64;var G=(c+1)*16;var I=Array(G-1);var b=0;var F=0;while(F<k){H=(F-(F%4))/4;b=(F%4)*8;I[H]=(I[H]|(x.charCodeAt(F)<<b));F++}H=(F-(F%4))/4;b=(F%4)*8;I[H]=I[H]|(128<<b);I[G-2]=k<<3;I[G-1]=k>>>29;return I}function B(d){var c="",k="",x,b;for(b=0;b<=3;b++){x=(d>>>(b*8))&255;k="0"+x.toString(16);c=c+k.substr(k.length-2,2)}return c}function J(d){d=d.replace(/\r\n/g,"\n");var b="";for(var x=0;x<d.length;x++){var k=d.charCodeAt(x);if(k<128){b+=String.fromCharCode(k)}else{if((k>127)&&(k<2048)){b+=String.fromCharCode((k>>6)|192);b+=String.fromCharCode((k&63)|128)}else{b+=String.fromCharCode((k>>12)|224);b+=String.fromCharCode(((k>>6)&63)|128);b+=String.fromCharCode((k&63)|128)}}}return b}var C=Array();var P,h,E,v,g,Y,X,W,V;var S=7,Q=12,N=17,M=22;var A=5,z=9,y=14,w=20;var o=4,m=11,l=16,j=23;var U=6,T=10,R=15,O=21;s=J(s);C=e(s);Y=1732584193;X=4023233417;W=2562383102;V=271733878;for(P=0;P<C.length;P+=16){h=Y;E=X;v=W;g=V;Y=u(Y,X,W,V,C[P+0],S,3614090360);V=u(V,Y,X,W,C[P+1],Q,3905402710);W=u(W,V,Y,X,C[P+2],N,606105819);X=u(X,W,V,Y,C[P+3],M,3250441966);Y=u(Y,X,W,V,C[P+4],S,4118548399);V=u(V,Y,X,W,C[P+5],Q,1200080426);W=u(W,V,Y,X,C[P+6],N,2821735955);X=u(X,W,V,Y,C[P+7],M,4249261313);Y=u(Y,X,W,V,C[P+8],S,1770035416);V=u(V,Y,X,W,C[P+9],Q,2336552879);W=u(W,V,Y,X,C[P+10],N,4294925233);X=u(X,W,V,Y,C[P+11],M,2304563134);Y=u(Y,X,W,V,C[P+12],S,1804603682);V=u(V,Y,X,W,C[P+13],Q,4254626195);W=u(W,V,Y,X,C[P+14],N,2792965006);X=u(X,W,V,Y,C[P+15],M,1236535329);Y=f(Y,X,W,V,C[P+1],A,4129170786);V=f(V,Y,X,W,C[P+6],z,3225465664);W=f(W,V,Y,X,C[P+11],y,643717713);X=f(X,W,V,Y,C[P+0],w,3921069994);Y=f(Y,X,W,V,C[P+5],A,3593408605);V=f(V,Y,X,W,C[P+10],z,38016083);W=f(W,V,Y,X,C[P+15],y,3634488961);X=f(X,W,V,Y,C[P+4],w,3889429448);Y=f(Y,X,W,V,C[P+9],A,568446438);V=f(V,Y,X,W,C[P+14],z,3275163606);W=f(W,V,Y,X,C[P+3],y,4107603335);X=f(X,W,V,Y,C[P+8],w,1163531501);Y=f(Y,X,W,V,C[P+13],A,2850285829);V=f(V,Y,X,W,C[P+2],z,4243563512);W=f(W,V,Y,X,C[P+7],y,1735328473);X=f(X,W,V,Y,C[P+12],w,2368359562);Y=D(Y,X,W,V,C[P+5],o,4294588738);V=D(V,Y,X,W,C[P+8],m,2272392833);W=D(W,V,Y,X,C[P+11],l,1839030562);X=D(X,W,V,Y,C[P+14],j,4259657740);Y=D(Y,X,W,V,C[P+1],o,2763975236);V=D(V,Y,X,W,C[P+4],m,1272893353);W=D(W,V,Y,X,C[P+7],l,4139469664);X=D(X,W,V,Y,C[P+10],j,3200236656);Y=D(Y,X,W,V,C[P+13],o,681279174);V=D(V,Y,X,W,C[P+0],m,3936430074);W=D(W,V,Y,X,C[P+3],l,3572445317);X=D(X,W,V,Y,C[P+6],j,76029189);Y=D(Y,X,W,V,C[P+9],o,3654602809);V=D(V,Y,X,W,C[P+12],m,3873151461);W=D(W,V,Y,X,C[P+15],l,530742520);X=D(X,W,V,Y,C[P+2],j,3299628645);Y=t(Y,X,W,V,C[P+0],U,4096336452);V=t(V,Y,X,W,C[P+7],T,1126891415);W=t(W,V,Y,X,C[P+14],R,2878612391);X=t(X,W,V,Y,C[P+5],O,4237533241);Y=t(Y,X,W,V,C[P+12],U,1700485571);V=t(V,Y,X,W,C[P+3],T,2399980690);W=t(W,V,Y,X,C[P+10],R,4293915773);X=t(X,W,V,Y,C[P+1],O,2240044497);Y=t(Y,X,W,V,C[P+8],U,1873313359);V=t(V,Y,X,W,C[P+15],T,4264355552);W=t(W,V,Y,X,C[P+6],R,2734768916);X=t(X,W,V,Y,C[P+13],O,1309151649);Y=t(Y,X,W,V,C[P+4],U,4149444226);V=t(V,Y,X,W,C[P+11],T,3174756917);W=t(W,V,Y,X,C[P+2],R,718787259);X=t(X,W,V,Y,C[P+9],O,3951481745);Y=K(Y,h);X=K(X,E);W=K(W,v);V=K(V,g)}var i=B(Y)+B(X)+B(W)+B(V);return i.toLowerCase()}})(jQuery);Fly.define("core.AlertMessage",{singleton:true,alias:"AlertMessage",instance:"auto",cls:"alertMessageRedBg",constructor:function(){var a=this},showMessage:function(d){var a=this;var c="";var b='<div id="errorAlertMain"><div class="alertOverlayMain"><div class="alertOverlayContainer alert500"><div class="headerContainer"><div class="poLogo"></div><div class="textOne" id="poHeaderLabel">Info</div></div><div class="alertContainerMain"><div class="alertContent" id="poAlertContent">'+d+'</div><div class="alertButtonsMain"><div class="alertButton active" id="ok_btn">Ok</div></div></div></div><div class="alertOverlayBG"></div></div></div>';$("body").append(b);a.bindButtons(null,null,null)},showConfirmMessage:function(d,b){var a=this;var c='<div class="errorAlertMain" id="errorAlertMain"><div class="errorAlertContainer" style="width:500px; height:200px;"><div class="errorAlertContent">'+d+'</div><div class="errorAlertButtonsMain"><div class="errorAlertButton active" id="confirm_btn">Confirm</div><div class="errorAlertButton" id="cancel_btn">Cancel</div></div></div><div class="errorAlertMainBG"></div></div>';$("body").append(c);a.bindButtons(b,null,null)},showExtMotConfirmMessage:function(d,e,f,b){var a=this;var c='<div class="errorAlertMain" id="errorAlertMain"><div class="errorAlertContainer" style="width:550px; height:210px;"><div class="errorAlertContent">'+d+'</br></br> Click Confirm to proceed, cancel to modify.</div><div class="errorAlertButtonsMain"><div class="errorAlertButton active" id="confirm_btn">Confirm</div><div class="errorAlertButton" id="cancel_btn">Cancel</div></div></div><div class="errorAlertMainBG"></div></div>';$("body").append(c);a.bindButtons(b,f,e)},bindButtons:function(a,c,b){$("#ok_btn").on("click",function(){$("body > #errorAlertMain").remove()});$("#cancel_btn").on("click",function(){$("body > #errorAlertMain").remove();if(a){a(0)}});$("#confirm_btn").on("click",function(){$("body > #errorAlertMain").remove();if(a){if(c){a(1,c,b)}else{a(1)}}})}});Fly.define("core.Anim",{instance:"auto",alias:"Anim",duration:500,loopSlide:function(c){var b=this;var a=[];$(c).each(function(){a.push(this)});console.log(a);b.loopShow(a)},loopShow:function(a){var b=this;if(a[0]){var c=a.shift();console.log(c);$(c).show("slide",function(){b.loopShow(a)})}}});Fly.define("core.Browser",{singleton:true,alias:"Browser",instance:"auto",constructor:function(){},isMobile:function(){var a=false;try{if(typeof whitelabel!="undefined"&&whitelabel&&whitelabel=="et"){if(navigator.userAgent.match(/Android/i)){a=true}else{if(navigator.userAgent.match(/BlackBerry/i)){a=true}else{if(navigator.userAgent.match(/iPhone|iPad|iPod/i)){a=true}else{if(navigator.userAgent.match(/Opera Mini/i)){a=true}else{if(navigator.userAgent.match(/IEMobile/i)){a=true}}}}}}else{return false}}catch(b){}return a},isGds:function(){return false}});var DI={};Fly.define("core.Globals",{singleton:true,instance:"auto",alias:"Globals",constructor:function(){this.loadRemoteConfigs();this.loadI18N();this.init();console.log("assets path"+this.assetsRoot);console.log("assets path"+this.Templates.dashboard)},loadRemoteConfigs:function(){},loadI18N:function(){},init:function(){var a={loaderClass:"loader_min",hasBackground:true};$.fn.nimbleLoader.setSettings(a)},travelerApiToken:"A2779877-62A1-4BDD-B585-C4EFA8B03A61",aviatorApiToken:"2dbed681-29ea-4dfc-9060-f3ef9e4668d9",deviceUUID:"Web-Dummy-DeviceUUID",assetsRoot:"../assets/js/FX/",contentDisplaySectionDiv:"contentDisplaySection",dashboardTabContainerPrefix:"dashbaordTabContainer-",params:{},DEFAULT_CURRENCY_CODE:"USD",DEFAULT_CURRENCY_SYMBOL:"$",MAX_MULTICITY_LEGS:4,LocalStorageKeys:{USER_INFO:"USER_INFO"},EventKeys:{tabActivated:"tabActivated",tabDeactivated:"tabDeactivated"},Templates:{login:"../assets/js/fx/apps/widgets/landing/templates/Login.tpl",dashboard:"../assets/js/fx/apps/widgets/dashboard/Dashboard.tpl",traveler:"../assets/js/fxapps/widgets/traveler/Traveler.tpl"}});Fly.define("core.I18N",{singleton:true,alias:"I18N",instance:"auto",DATE_LABEL:"Date ",NEW_LABEL:"New",BUTTON_OK_LABEL:"Ok",BUTTON_CLOSE_LABEL:"x close",BUTTON_CANCEL_LABEL:"Cancel",BUTTON_CONFIRM_LABEL:"Confirm",BUTTON_SUBMIT_LABEL:"Submit",CC_NAMES:{VI:"VISA",AX:"AMERICAN EXPRESS",DS:"DISCOVER",CA:"MASTERCARD",MI:"MISC"},ITINERARY_DETAILS_LABEL:"Itinerary Details",ITINERARY_FARE_DETAILS_LABEL:"Fare Rules",ITINERARY_FARE_BREAKDOWN_LABEL:"Fare Breakdown",ITINERARY_PRICE_DETAILS_LABEL:"Price Details",ITINERARY_DETAILS_EMAIL_LABEL:"Itinerary Details Email",MOT_Special_ticketing_Ins:"Special Ticketing Instructions",MOT_Order_Ticket_For_Manual:"Order for Manual Processing",MOT_Passenger_Details:"Passenger Details",MOT_Enable_MCO:"Enable MCO",MOT_Update_TSA:"Update TSA",MOT_Pax_no:"Pax #",MOT_First_Last_Name:"Last Name / First Name",MOT_Pax_Type:"Pax Type",MOT_Gender:"Gender",MOT_MCO:"MCO",MOT_Travel_Preferences:"Travel Preferences",MOT_Update_Info_Only:"Update Info Only",MOT_Update_Info_and_Order_Ticket:"Update Info and Order Ticket",MOT_Airline:"Airline",MOT_Frequent_Flyer_Program:"Frequent Flyer Program",MOT_Frequent_Flyer_Number:"Frequent Flyer Number",MOT_Meal:"Meal",MOT_Seat_Preferences:"Seat Preferences",MOT_Redress:"Redress # (Optional)",MOT_Order_Ticket:"Order Ticket",MOT_Existing_Queue:"Existing Queue",MOT_New_Queue:"New Queue",MOT_IPCC:"IPCC",MOT_Q:"Q #",MOT_Tour_Code:"Tour Code",MOT_Ticket_Designator:"Ticket Designator",MOT_Tax_Exemption_Codes:"Tax Exemption Codes",MOT_Issue_One_Charge:"Issue as One Charge Total Svc Fee MCO",MOT_Issue_Invoice:"Issue Invoice",MOT_Endorsement:"Endorsement",MOT_FOP:"FOP",MOT_MERCHANT_TRANSACTION:"MERCHANT TRANSACTION",MOT_Card_Type:"Card Type",MOT_Expiry_Date:"Expiry Date (MM/DD/YYYY)",MOT_Pax:"Pax",MOT_Card_Check:"Card / Check Details",MOT_Amount:"Amount",MOT_Card_Holder_Name:"Card Holder Name",MOT_CC_NO:"CC #",MOT_Search_Label_Gds_Pnr:"GDS PNR",MOT_Search_Label_PhoneNo:"Phone No",MOT_Search_Label_AgencyName:"Agency Name",MOT_Search_Label_Agent:"Agent",MOT_Search_Label_Customer:"Customer #",MOT_Search_Label_ICT_Customer:"ICT Customer #",MOT_Search_Label_Branch:"Branch",MOT_Search_Label_AgentInitial:"Agent Initial",MOT_Search_Button_Go:"GO",MOT_Report_Button:"Report",MOT_Passport_Details:"Passport Details",MOT_PassPort_Number:"PassPort Number",MOT_Nationality:"Nationality",MOT_Country_of_Issue:"Country of Issue",MOT_SHOW:"SHOW",MOT_HIDE:"HIDE",MOT_Price_Quote:"Price Quote",MOT_ValidatingCarrier_Code:"Validating Carrier Code",MOT_Is_PFA:"Is PFA",MOT_PRICE_PNR:"Price PNR",MOT_Pricing_And_Markup_Information:"Pricing and Mark-Up Information",MOT_Currency_Information:"Currency: ",MOT_Payment_Preference_Expiry_Date:"Expiry Date ",SEARCH_RESULTS_FARE_BREAKDOWN_GDS:"GDS",SEARCH_RESULTS_FARE_BREAKDOWN_FARE_TYPE:"Fare Type",SEARCH_RESULTS_FARE_BREAKDOWN_BOOKED_CLASSES:" Booked Classes",SEARCH_RESULTS_FARE_BREAKDOWN_IPCC:"Ipcc",SEARCH_RESULTS_FARE_BREAKDOWN_CONTRACT_NAME:"Contract Name",SEARCH_RESULTS_FARE_BREAKDOWN_FARE_RULE_ID:"Fare RuleId",SEARCH_RESULTS_FARE_BREAKDOWN_FARE_BASIS:"Fare Basis",SEARCH_RESULTS_FARE_BREAKDOWN_BOOKING_CLASS:"Booking Class",SEARCH_RESULTS_FARE_BREAKDOWN_CLASS_OUT_BOUND:"Class OutBound",SEARCH_RESULTS_FARE_BREAKDOWN_CLASS_IN_BOUND:"Class InBound",SEARCH_RESULTS_FARE_BREAKDOWN_STANDARD_ROUTING_OUTBOUND:"Standard Routing OutBound",SEARCH_RESULTS_FARE_BREAKDOWN_STANDARD_ROUTING_INBOUND:"Standard Routing InBound",SEARCH_RESULTS_FARE_BREAKDOWN_WEEKEND_SURCHARGE:"WeekendSurcharge ",SEARCH_RESULTS_FARE_BREAKDOWN_FARE_BASIS_CODE:"FareBasisCode",SEARCH_RESULTS_FARE_BREAKDOWN_ADULT_PAX_CONSO_MARKUP:"Consolidator Markup",SEARCH_RESULTS_FARE_BREAKDOWN_ADULT_SP_MARKUP:"SP Markup",SEARCH_RESULTS_FARE_BREAKDOWN_ADULT_ENTERPRISE_MARKUP:"Enterprise Markup",SEARCH_RESULTS_FARE_BREAKDOWN_ADULT_AGENT_MARKUP:"Agent Markup",SEARCH_RESULTS_FARE_BREAKDOWN_ADULT_AGENCY_MARKUP:"Agency Markup",SEARCH_RESULTS_FARE_BREAKDOWN_FARE_RULE_MARKUP:"ExploreTrip Fare Rule MarkUp",SEARCH_RESULTS_FARE_BREAKDOWN_FUEL_SURCHARGE_AMOUNT:"Fuel Surcharge Amount",SEARCH_RESULTS_FARE_BREAKDOWN_SURCHARGE_AMOUNT:"SurCharge Amount",SEARCH_RESULTS_FARE_BREAKDOWN_PRICE:"PRICE",SEARCH_RESULTS_FARE_BREAKDOWN_COMMISSION_PERCENT:"Commission Percent",SEARCH_RESULTS_FARE_BREAKDOWN_NETFARE:"Net Fare",SEARCH_RESULTS_FARE_BREAKDOWN_PUBHISHED_FARE:"Published Fare",SEARCH_RESULTS_FARE_BREAKDOWN_PUBHISHED_BASE_FARE:"Published Base Fare",SEARCH_RESULTS_FARE_BREAKDOWN_BASE_FARE:"Base Fare",SEARCH_RESULTS_FARE_BREAKDOWN_BASE_FARE_COM:"Base Fare After Commission",SEARCH_RESULTS_FARE_BREAKDOWN_TAXES:"Taxes",SEARCH_RESULTS_FARE_BREAKDOWN_TOTAL_FARE:"Total Fare",SEARCH_RESULTS_FARE_BREAKDOWN_COMMISSION_AMOUNT:"Commission Amount",SEARCH_RESULTS_FARE_BREAKDOWN_OFFICE_GDS_ID:"OfficeGdsID",SEARCH_RESULTS_PRICE_DETAILS_PASSENGER:"Passenger",SEARCH_RESULTS_PRICE_DETAILS_NO_OF_PASSENGERS:"No. of Passengers",SEARCH_RESULTS_PRICE_DETAILS_BASE_FARES:"Base fare",SEARCH_RESULTS_PRICE_DETAILS_TAXES:"Taxes/Fees",SEARCH_RESULTS_PRICE_DETAILS_TOTAL_FARE:"Total Fare",SEARCH_RESULTS_PRICE_DETAILS_TOTAL_PRICE:"Total Price",SEARCH_RESULTS_PRICE_DETAILS_PAX_TYPE_ADULT:"Adult",SEARCH_RESULTS_PRICE_DETAILS_PAX_TYPE_CHILD:"Child",SEARCH_RESULTS_PRICE_DETAILS_PAX_TYPE_INFANT:"Infant",SEARCH_RESULTS_PRICE_DETAILS_COMMISSION_AMOUNT:"Comm Amount",SEARCH_RESULTS_ITINERARY_DETAILS_FLIGHTNUMBER:"Flights",SEARCH_RESULTS_ITINERARY_DETAILS_FROMLOCATIONCODE:"From",SEARCH_RESULTS_ITINERARY_DETAILS_TOLOCATIONCODE:"To",SEARCH_RESULTS_ITINERARY_DETAILS_DEPARTURE_TIME:"Departure",SEARCH_RESULTS_ITINERARY_DETAILS_ARRIVAL_TIME:"Arrival",SEARCH_RESULTS_ITINERARY_DETAILS_EMAIL_SUCCESS_MESSAGE:"Email sent successfully",SEARCH_RESULTS_ITINERARY_DETAILS_EMAIL_ERROR_MESSAGE:"Mail Could not be sent",SEARCH_RESULTS_ITINERARY_DETAILS_EMAIL_ID:"Email ID",SEARCH_RESULTS_ITINERARY_DETAILS_WITH_FARE:"With Fare",SEARCH_RESULTS_ITINERARY_DETAILS_AGENT_MARKUP:"Agent Markup",SEARCH_RESULTS_ITINERARY_DETAILS_REMARKS:"Remarks",PASSENGER_NAME_EXCEEDEDMSG:"Name length exceeded 29 characters, please abbreviate name for pax",VERIFICATION_POSSITIVE_SIGN:"should be a possitive value",Itinerary_Details_Head:"Itinerary Details",Itinerary_Details:"Itinerary Details",Itinerary_Price_Details:"Price Details",Itinerary_Fare_Rules:"Fare Rule",Itinerary_Fare_Breakdown:"Fare Breakdown",Itinarary_Fare_Total:"Total",Itinerary_Fare_Select:"Select",Itinerary_Fare_Book:"Book",Itinerary_Fare_Taxes:"Taxes & Fees",Itinerary_Fare_Base:"Base",Itinerary_Type_All:"All",Itinerary_Type_Phase_IV:"Phase IV",Itinerary_Type_Force_Fare:"Force Fare",MOT_Passenger_Details:"Passenger Details",MOT_Enable_MCO:"Enable MCO",MOT_Update_TSA:"Update TSA",MOT_Pax_no:"Pax #",MOT_First_Last_Name:"Last Name / First Name",MOT_Pax_Type:"Pax Type",MOT_Gender:"Gender",MOT_DOB:"DOB (DDMMMYY)",MOT_MCO:"MCO",MOT_Travel_Preferences:"Travel Preferences",MOT_Update_Info_Only:"Update Info Only",MOT_Update_Info_and_Order_Ticket:"Update Info and Order Ticket",MOT_Airline:"Airline",MOT_Frequent_Flyer_Program:"Frequent Flyer Program",MOT_Frequent_Flyer_Number:"Frequent Flyer Number",MOT_Meal:"Meal",MOT_Seat_Preferences:"Seat Preferences",MOT_Redress:"Redress # (Optional)",MOT_Order_Ticket:"Order Ticket",MOT_Existing_Queue:"Existing Queue",MOT_New_Queue:"New Queue",MOT_IPCC:"IPCC",MOT_Q:"Q #",MOT_Tour_Code:"Tour Code",MOT_Ticket_Designator:"Ticket Designator",MOT_Tax_Exemption_Codes:"Tax Exemption Codes",MOT_Issue_One_Charge:"Issue as One Charge Total Svc Fee MCO",MOT_Endorsement:"Endorsement",MOT_FOP:"FOP",MOT_Card_Type:"Card Type",MOT_Pax:"Pax",MOT_Card_Check:"Card / Check Details",MOT_Amount:"Amount",MOT_Card_Holder_Name:"Card Holder Name",MOT_CC_NO:"CC #",MOT_Search_Label_SubAgent:"Sub Agent:",MOT_Search_Label_Gds_Pnr:"GDS PNR",MOT_Search_Label_PhoneNo:"Phone No",MOT_Search_Label_AgencyName:"Agency Name",MOT_Search_Label_Agent:"Agent",MOT_Search_Label_Customer:"Customer #",MOT_Search_Label_Branch:"Branch",MOT_Search_Label_AgentInitial:"Agent Initial",MOT_Search_Button_Go:"GO",MOT_Search_Label_TxnOfficeIds:"Change IPCC",MOT_Search_Label_MealPreferences:"Meal Preferences",MOT_Passport_Details:"Passport Details",MOT_PassPort_Number:"PassPort Number",MOT_Nationality:"Nationality",MOT_Country_of_Issue:"Country of Issue",MOT_SHOW:"SHOW",MOT_HIDE:"HIDE",MOT_Price_Quote:"Price Quote",MOT_ValidatingCarrier_Code:"Validating Carrier Code",MOT_Is_PFA:"Is PFA",MOT_PRICE_PNR:"Price PNR",MOT_Pricing_And_Markup_Information:"Pricing and Mark-Up Information",MOT_Currency_Information:"Currency: ",MOT_Phase_IV_Pax_Type_Adult:"Adult",MOT_Phase_IV_Pax_Type_Child:"Child",MOT_Phase_IV_Pax_Type_Infant:"Infant",MOT_Validating_Carrier_Code_Change1:"Validating Carrier has been changed, Please Price PNR",MOT_Validating_Carrier_Code_Change2:"Validating Carrier has been changed, Please select the displayed FareQuote or remove and update.",MOT_Disabled:"MOT is not a valid option for this Login",SEARCH_Search_Days:"Search + / - 3 Days",SEARCH_SHOW:"SHOW",SEARCH_HIDE:"HIDE",SEARCH_RET:"RET",SEARCH_DEP:"DEP",RECONSTRAINING_ByAirline:"By Airline",RECONSTRAINING_ByStopsAndPrice:"By Others",RECONSTRAINING_ByStopsPriceAndSavings:"By Stops, Price & Savings",RECONSTRAINING_ByDurations:"By Duration",RECONSTRAINING_AnyNumberOfStops:"Connections / Stop",RECONSTRAINING_All_Airlines:"All Airlines",RECONSTRAINING_Best_Match:"Best Match",RECONSTRAINING_Price:"Price",RECONSTRAINING_Savings:"Savings",RECONSTRAINING_Sorting_Options:"Sortings",RECONSTRAINING_All:"ALL",RECONSTRAINING_HighToLow:"HIGH to LOW",RECONSTRAINING_LowToHigh:"LOW to HIGH",RECONSTRAINING_ContentsSources:"Content Source",RECONSTRAINING_FareType:"Fare Type",RECONSTRAINING_AllianceGroup:"Partner Network",RECONSTRAINING_RefundDetails:"Refund/Non Refund",RECONSTRAINING_SearchDatesStatus:"Search/Flexible Dates",RECONSTRAINING_AirportsStatus:"Exact/Near By Airports",RECONSTRAINING_All_ContentsSources:"All Content Sources",RECONSTRAINING_All_FareTypes:"All Fare Types",RECONSTRAINING_All_Groups:"All Groups",RECONSTRAINING_All_Refund_Details:"All",RECONSTRAINING_All_SearchDatesStatus:"All",RECONSTRAINING_All_AirportsStatus:"All",FLIGHT_Search_Emulator_Pcc:"PCC",RESULTS_No_Flights:"No Results Found That Match Your Request. You may want to check another date or change search options.",PAX_TYPE_ADULT_0:"Adult",PAX_TYPE_ADULT_1:"adult",PAX_TYPE_CHILD_0:"Child",PAX_TYPE_CHILD_1:"child",PAX_TYPE_INFANT_0:"Infant",PAX_TYPE_INFANT_1:"infant",VALIDATE_TICKETING_IPCC_0:" Please select Ticketing IPCC ",PRICE_VALIDATE_ERROR_RULE_0:" Please validate the fare by clicking Price PNR ",ORIGINAL_FARE_VALIDATE_ERROR_RULE_0:" Original Fare is not valid. Please select one of the available fare Option ",AGENT_BRANCH_INITIAL_ERROR_RULE_0:"Agent Initial does not belongs to the branch ",AGENT_INITIAL_ERROR_RULE_0:" Agent Initial Required ",AGENT_INITIAL_ERROR_RULE_1:" Agent Initial Must be Minimum 2 characters ",FARE_BASIS_CODE_ERROR_RULE_0:" Fare Basis Code is required ",NVB_ERROR_RULE_0:" NVB is required and it must be DDMMM format ",CONNECTION_TYPE_ERROR_RULE_0:" Connection Type should be O or X",BAGGAGE_ERROR_RULE_0:" Baggage is required",BASE_FARE_ERROR_RULE_0:"Please enter Base Fare and it should be decimal for ",QS_CHARGE_ERROR_RULE_0:" Please enter the Q/S Charge in correct Format.  Ex: Q10.10 or Q12,S56.9 for ",SELLING_BASE_EQ_BASE_QCHARGE_FARE_ERROR_RULE_0:" selling basefare must be equals to total of all segments basefare and Qcharge ",NVA_ERROR_RULE_0:" NVA is required and it must be DDMMM format ",SELLING_BASE_FARE_ERROR_RULE_0:" selling base fare is required ",LOCAL_BASE_FARE_ERROR_RULE_0:" Local Base Fare is required ",VALIDATING_CARRIER_CODE_ERROR_RULE_0:" Please enter Validating Carrier Code ",PASSPORT_NO_ERR_RULE_0:" Please Enter  Passport Number ",PASSPORT_NO_ERR_RULE_1:" Passport Number must be alpha Numeric ",NATION_CODE_ERR_RULE_0:" Please Select  Nationality Code ",ISSUE_COUNTRY_CODE_ERR_RULE_0:" Please Select  Issue Country Code  ",ERR_RULE_PASSPORT_EXPIRY_DATE_0:" Please select valid passport expiry date ",ERR_RULE_PASSPORT_EXPIRY_DATE_1:" Passport expiry date should be greater than current date",ERR_RULE_PASSPORT_EXPIRY_DATE_2:" Passport expiry date should not be greater than 30 years from current date",ERR_RULE_PASSPORT_ISSUE__DATE_0:" Please select valid passport issue date ",ERR_RULE_PASSPORT_ISSUE__DATE_1:" Passport issue date should be less than current date",ERR_RULE_PASSPORT_ISSUE__DATE_2:" Passport issue date should not be less than 70 years from current date",PASSPORT_EXP_ERR_RULE_0:" Please Enter  Passport Expiry Date ",PASSPORT_EXP_ERR_RULE_1:" The Expiry date of the passport is invalid!! Do you still want to continue ? ",REQUIRED_MOT_SEARCH_VALUE_FOR_PHONE_AGENCY_CUSTOMER:"Please enter phone number, agency name or customer number!",EMAIL_ID_RULE_0:"Please enter Customer Email ",EMAIL_ID_RULE_1:" Please enter valid Customer Email ",PHONE_NUMBER_RULE_0:" Please enter Phone Number ",PHONE_NUMBER_RULE_1:" Please enter valid Phone Number ",COUNTRY_CODE_RULE_0:" Please enter valid Country Code ",ERR_INVALID_DK_NUMBER_0:" Please enter valid Customer/DK Number ",ERR_INVALID_DK_NUMBER_1:" Unable to validate customer/DK Nubmer, please try again",GENDER_ERR_RULE_0:" Please select the gender for passenger ",PAX_TYPE_ERR_RULE_0:" Please select the Pax Type for passenger ",MCO_NO_ERR_RULE_0:" Please enter 13 digit MCO Number for passenger ",MCO_NO_ERR_RULE_1:" MCO Number must be Numberic ",CLASS_CHG_ERR_RULE_0:" The application will now change the booking class according to your selection, please press ok to proceed or cancel ",PNR_UNDER_QUOTED_ERR_RULE_0:" PNR is Underquoted , Do we want to still continue ? ",COMMISSION_ERR_RULE_0:" Commission Claimed must follow either 'P/' or 'A' ",COMMISSION_OFR_ERR_RULE_0:" Commission Offered must follow either 'P' or 'A' ",TICKET_DESG_ERR_RULE_0:" Ticket Designator must be alpha numeric ",TOUR_CODE_ERR_RULE_0:" Tour Code must be alpha numeric and accept special characters like dot,slash,hyphen and space ",ENDORSEMENT_ERR_RULE_0:" Endorsement must be alpha numeric ",TAX_EXEMPTON_ERR_RULE_0:" Please enter tax exemption code in valid format ex: xx,yy ",TAX_EXEMPTON_ERR_RULE_1:" Modify taxes as per the exemption : Cancel to modify the taxes OR Click ok if already modified. ",FARE_TYPE_ERR_RULE_0:" Please enter a valid fare type for ",FARE_TYPES:["COM","JCB","PUB","NET","PFA","PPV","RUP","VFR","MIS"],ACCOUNTING_OPT_ERR_RULE_0:" Existing IPCC is empty, Please check DK number or go with New Queue option ",ACCOUNTING_OPT_ERR_RULE_1:" Please select one of the accouting option ",DK_NUMBER_ERR_RULE_0:" Please enter Customer/DK Number ",DK_NUMBER_ERR_RULE_1:" Customer / DK Number must be alpha numeric ",DK_NUMBER_ERR_RULE_2:" Customer / DK Number size must be equal to 10 digits ",DK_NUMBER_ERR_RULE_3:"Customer / DK Number size must be equal to 6 or 7 or 10 digits ",HOMEIPCC_ERR_RULE_0:"Invalid Home IPCC entered.Please enter valid Home IPCC",BRANCH_ERR_RULE_0:"Please select the Branch before doing price PNR",AUTH_CODE_ERR_RULE_1:" Please check the Auth Code ",CC_TYPE_ERR_RULE_0:" Please select Credit Card Type ",CC_TYPE_ERR_RULE_1:" Please enter Credit Card Number ",CC_TYPE_ERR_RULE_2:" The Expiry year of the card is wrong, please select the card expiry year  ",CC_TYPE_ERR_RULE_3:" The Expiry Month of the card is wrong, please select the card expiry month ",CC_TYPE_ERR_RULE_4:" Please enter valid numeric value for the Credit Card Number ",CC_TYPE_ERR_RULE_5:" Credit Card Type selected must start with 4 ",CC_TYPE_ERR_RULE_6:" Credit Card Number length must be 16 digits ",CC_TYPE_ERR_RULE_7:" Credit Card Type selected must start with 5 ",CC_TYPE_ERR_RULE_8:" Credit Card Type selected must start with 3",CC_TYPE_ERR_RULE_9:" Credit Card Number length must be 15 digits ",CC_TYPE_ERR_RULE_10:" Credit Card Type selected must start with 6 ",CC_TYPE_ERR_RULE_11:" CVV Number length must be 3 or 4 characters ",CC_TYPE_ERR_RULE_12:" Please enter valid numeric value for the CVV Number ",CC_TYPE_ERR_RULE_13:["Unknown card type","No card number provided","Credit card number is in invalid format","Credit card number is invalid","Credit card number has an inappropriate number of digits"],CC_TYPE_ERR_RULE_14:" Please select the card expiry month ",CC_TYPE_ERR_RULE_15:" Please select the card expiry year ",CC_TYPE_ERR_RULE_16:" Please enter valid Credit Card Number ",CC_TYPE_ERR_RULE_17:" Please enter card issuing bank name ",CC_TYPE_ERR_RULE_18:" Card issuing bank name is not valid ",CREDIT_CARD_INFOCHANGE_RULE_0:" Credit card number updated do you want to continue ",MULT_FOP_PAX_CARD_ERR_RULE_0:" Same Pax cannot be associated with different cards ",MULT_FOP_PAX_CARD_ERR_RULE_1:" Multiple FOP must be associated with passengers ",MULT_FOP_PAX_CARD_ERR_RULE_2:" Multiple FOP is not allowed for this GDS ",MULT_FOP_PAX_CARD_ERR_RULE_3:" Multiple Passengers cannot be associated with multiple cards ",MULT_FOP_PAX_CARD_ERR_RULE_4:" All passengers must be associated with card if they are selected",MULT_FOP_PAX_CARD_ERR_RULE_5:" Total amount must be equal to Total fare ",MULT_FOP_PAX_CARD_ERR_RULE_6:" Total sum of the amounts must be equal to Total Charge Amount. ",CC_CHANGE_ERR_RULE_0:" Please note that the Credit Card has been changed. Do you still want to continue ? ",ERR_RULE_CC_MONTH_CHANGE_0:" Please note that the Credit Card expiry month has been changed or added. Do you still want to continue yes ? ",ERR_RULE_CC_YEAR_CHANGE_0:" Please note that the Credit Card expiry year has been changed or added. Do you still want to continue yes ? ",CARD_HOLDER_NAME_ERR_RULE_0:" Please enter the card holder name ",CARD_HOLDER_NAME_ERR_RULE_1:" Card holder name must be alphabetic ",ADDRESS_ERR_RULE0:" Please enter Billing Information Address1 ",ADDRESS_ERR_RULE1:" Invalid Address Line1 (Follwing special characters are not allowed ',\",&,<,>,-,.,,) ",ADDRESS_ERR_RULE:" Invalid Address Line (Follwing special characters are not allowed ',\",&,%,$,!<,>,-,.,,) ",CITY_NAME_ERR_RULE0:" Please enter city name under billing address ",CITY_NAME_ERR_RULE1:" City name is invalid ",COUNTRY_NAME_ERR_RULE0:" Please select the Country ",STATE_NAME_ERR_RULE0:" Please Select the State ",ZIP_CODE_ERR_RULE_0:" Please enter valid Zip Code ",ZIP_CODE_ERR_RULE_1:" Please enter valid Zip Code ",DOB_ERR_RULE_0:" Please enter the date of birth in correct Format(Ex: 25SEP12) for the passenger: ",DOB_ERR_RULE_1:" date of birth must be below current date  ",DOB_ERR_RULE_2:" Child age must be greater than or equals to 2 years and less than 12 years ",DOB_ERR_RULE_3:" Infant age must be less than 2 years ",DOB_ERR_RULE_4:" Adult age must be greater than or equals to 12 years ",DOB_ERR_RULE_5:" Invalid date of birth for the selected Pax type.Please enter correct date",DOB_ERR_RULE_6:" Please enter the date of birth in correct format( Ex: 09/25/2012 )  for the passenger:  ",DOB_ERR_RULE_7:" TSA information is mandatory, press ok to continue or cancel to modify TSA.",DOB_ERR_RULE_8:" TSA information is mandatory",DOB_ERR_RULE_8:" Please enter the date of birth in correct format( Ex: 01/31/1986 )  for the passenger:  ",DOB_ERR_RULE_9:" Please enter the date of birth in correct Format(Ex: MAY/31/1986) for the passenger:  ",DOB_ERR_RULE_10:" Enter the ",DOB_ERR_RULE_11:" data of birth correct format (MM/DD/YYYY)",AUTH_CODE_ERR_RULE_0:" AuthCode not generated ",AMOUNT_ERR_CODE_0:" Please enter Amount ",ADULT_TOTAL_FARE_ERR_CODE_0:" Please enter Adult Total Fare ",CHRG_TOT_FARE_ERR_CODE_0:" Charge Amount less than Total Fare ",PLEASE_ENTER_STRING:" Please enter ",RESERVATION_Area:"Area A",RESERVATION_PASSENGER_CONTACT_INFO_LABEL:"Passenger Contact Information",RESERVATION_PAYMENT_INFORMATION_LABEL:"Payment Information",RESERVATION_PASSENGER_INFORMATION_LABEL:"Passenger Information",RESERVATION_FLIGHT_RESERVE_LABEL:"Flight Reserve",RESERVATION_Customer_Email:"Customer Email",RESERVATION_Phone_Number:"Phone Number",RESERVATION_Alternate_Phone_Number:"Alternate Phone Number",RESERVATION_Example_Phone_Number:"Example 650-XXX-XXXX",RESERVATION_Example_Intl_Phone_Number:"Example +1 650-XXX-XXXX",RESERVATION_PAYMENT_INFORMATION_note:" One of the passenger names should match with the cardholder name.",RESERVATION_PAYMENT_INFORMATION_Card_Exp_Date:"Card Exp Date",RESERVATION_PAYMENT_INFORMATION_Card_Number:"Card Number",RESERVATION_PAYMENT_INFORMATION_Card_Type:"Card Type",RESERVATION_PAYMENT_INFORMATION_Hold:"Hold",RESERVATION_PAYMENT_INFORMATION_Credit_Card:"Credit Card",RESERVATION_PAYMENT_INFORMATION_Check:"Check",RESERVATION_PASSENGER_PROFILE_NAME:"  Passenger Profile Name",RESERVATION_Check_Availability:"Check Availability",RESERVATION_PASSENGER_INFORMATION_note:" Please ensure passenger name matches with name in passport.",RESERVATION_PASSENGER_INFORMATION_Title:"Title",RESERVATION_PASSENGER_INFORMATION_Last_Name:"Last Name",RESERVATION_PASSENGER_INFORMATION_First_Name:"First Name",RESERVATION_PASSENGER_INFORMATION_Middle_Name:"Middle Name",RESERVATION_PASSENGER_INFORMATION_Gender:"Gender",RESERVATION_PASSENGER_INFORMATION_Birth_Date:"Date Of Birth",RESERVATION_PASSENGER_INFORMATION_Passport_Number:"Passport Number",RESERVATION_PASSENGER_INFORMATION_Nationality:"Nationality",RESERVATION_PASSENGER_INFORMATION_Country_Of_Issue:"Country Of Issue",RESERVATION_PASSENGER_INFORMATION_Issue_Date:"Issue Date",RESERVATION_PASSENGER_INFORMATION_Expiry_Date:"Expiry Date",RESERVATION_Back_To_Search:" Back to search",RESERVATION_Published_Fare:"Published Fare",RESERVATION_Billing_Information:"Billing Information",RESERVATION_Card_Holders_Name:"<span>*</span> Card Holder's Name",RESERVATION_Address1:"<span>*</span> Address 1",RESERVATION_Address2:"Address 2",RESERVATION_City:"<span>*</span> City",RESERVATION_Country:"<span>*</span> Country",RESERVATION_State_Or_Prov:"<span>*</span> State/Prov",RESERVATION_Zip_Code:"<span>*</span> Zip Code",RESERVATION_PAYMENT_DETAILS_LABEL:"Payment Details",RESERVATION_PAYMENT_DETAILS_Total_Amount:"Total Amount",RESERVATION_PAYMENT_DETAILS_Agent_MarkUp:"Agent Markup",RESERVATION_PAYMENT_DETAILS_COUPON_CODE:"Promo Code",RESERVATION_Base_Fare:"Base Fare :",RESERVATION_Taxes:"Taxes :",RESERVATION_CCfees:"CC Fee :",RESERVATION_PASSENGER_INFORMATION_Age_In_Year:"Age:(In years)",RESERVATION_PASSENGER_INFORMATION_Age_In_Months:"Age:(In Months)",NAME_ERR_RULE_0:" Please enter the passenger ",NAME_ERR_RULE_1:" passenger must be alpha characters ",FIRST_NAME:" FirstName ",LAST_NAME:" LastName ",MIDDLE_NAME:" MiddleName ",CONFIRMATION_Gds_Pnr:"GDS PNR :",CONFIRMATION_Itinerary_Ref:"Itinerary Ref # :",CONFIRMATION_Payment_Mode:"Payment Mode :",CONFIRMATION_Print:"Print ",CONFIRMATION_Email:"Email",CONFIRMATION_Passenger_Information:"Passenger Information",CONFIRMATION_Total_Number_of_Passengers:"Total Number of Passengers:",CONFIRMATION_Name:"Name :",CONFIRMATION_E_ticket:"E-ticket # :",CONFIRMATION_Passenger_Type:"Passenger Type :",CONFIRMATION_Frequent_Flyer_Number:"Frequent Flyer Number :",CONFIRMATION_Onward_Flight_Info_Label:"Onward Flight Info",CONFIRMATION_Departure_Date:" Departure Date:",CONFIRMATION_Airline_Pnr:"Airline PNR # :",CONFIRMATION_Departure_Time:"Departure :",CONFIRMATION_Arrival_Time:"Arrival :",CONFIRMATION_Cabin_Class:"Cabin Class :",CONFIRMATION_Return_Flight_Info:"Return Flight Info",CONFIRMATION_Itinerary_Lable:"Itinerary",CONFIRMATION_Customer_Info:"Customer Info",CONFIRMATION_Phone_Number:"Phone Number :",CONFIRMATION_Contact_Customer_Care_Info:"Contact Customer Care Info",CONFIRMATION_From:"From:",CONFIRMATION_To:"To",ERR_PNR_NOT_GENERETED:" Unable to book this fare as the availability changed",ERR_PNR_NOT_GENERETED_NEW:" The selected Fare has expired,  click on Back to Search to select from alternate itineraries. ",GENERATE_AUTHCODE_RULE_0:" Enter Validating Carrier Code ",GENERATE_AUTHCODE_RULE_1:" Enter Amount ",GENERATE_AUTHCODE_RULE_2:" Total Charge Amount cannot be Zero ",GENERATE_AUTHCODE_RULE_4:" Charge Amount cannot be Zero ",GENERATE_AUTHCODE_RULE_3:" Charge Amount less than Total Fare ",ERR_ROLE_ALLOW_ALPHA_CHARS_0:" Please enter alpha characters only. ",ERR_ROLE_ALLOW_NUMBERS_0:" Please enter numbers only. ",ERR_ROLE_ALLOW_DECIMALS_0:" Please enter valid decimal numbers only. ",ERR_ROLE_ALLOW_ALPHA_NUMERIC_CHARS_0:"Please enter alphanumeric characters only. ",NUMERIC_ERR_RULE_0:" Enter only numeric value ",ERR_ROLE_PROFILE_NAME_0:" Please enter valid profile name ",ERR_ROLE_PROFILE_NOT_AVAILABLE_0:" Passenger profile not found ",ERR_ROLE_PROFILE_NOT_AVAILABLE_1:" This profile is not available. Try another? ",ERR_ROLE_PROFILE_AVAILABLE_0:" This profile is available ",ERR_ROLE_PROFILE_FIRST_LEVEL_NAME_0:" Please enter valid First Level Name ",ERR_ROLE_PROFILE_IPCC_0:" Please enter valid IPCC ",ERR_ROLE_GDS_PROFILE_NAME_0:"Please select valid profile name",ERR_ROLE_GDS_PROFILE_NOT_AVAILABLE_0:" No profiles found ",SEARCH_Results_More_Pax:"select the pax types",SEARCH_Results_Pax_Valid:"select correct pax types",BACK_To_Search:"Back To Search",BOOK_BUTTON_PROCESS:"BOOKING IS IN PROCESS..",CONFIRMATION_Send_Email:"Send Email",ERR_RULE_PNR_0:" Please enter valid PNR ",UC_Segments:"UC Segment! Please select valid segments ",BOOK_AND_HOLD_BUTTON_NAME:"Book &amp; Hold",SUBMIT_BUTTON_NAME:"Submit",ORDER_TICKET_BUTTON_NAME:"Order Ticket",SPECIFIED_BOOK_AND_HOLD_BUTTON_NAME:"Complete Booking",SPECIFIED_ORDER_TICKET_BUTTON_NAME:"Complete Booking",QC_ARC_DASHBOARD:"QC Reconciliation Dashboard",QC_ARC_RECONCILIATION:"QC Reconciliation",QC_DASHBOARD:"QC Dashboard",QC_SEARCH:"Search",QC_SUMMARY_BY:"Summary By",QC_PNRS:"Total Tickets",QC_OF_EXCEPTIONS_RAISED:"Exceptions Raised",QC_OF_EXCEPTIONS_OPEN:"Exceptions Open",QC_RESOLVED:"Resolved",QC_UNRESOLVED:"Un Resolved",QC_IAR_UPDATE:"IAR Update",QC_VOID_PNR:"Void PNR",QC_REISSUE:"ReIssue",QC_TOTAL_SUMMARY:"Total Summary",QC_EXCEPTION:"Exception",QC_TICKET_NUMBERS:"Ticket Numbers",QC_TOTAL_EXPNS_COUNT:"Total Exceptions Count",QC_TOTAL_EXPNS_FIXED:"Total Exceptions Fixed",QC_IN_PROGRESS:"In Progress",QC_OPEN:"Open",QC_SECURED:"Secured",QC_PRICING_FAILURES:"Pricing Failures",QC_FOP_FAILURES:"FOP Failures",QC_INVALID_EXCEPTIONS:"Invalid Exception",QC_EXCEPTION_REPORTS_Label:"Ticket Based Summary",QC_IAR_LABEL:"Iar Update",QC_EXCEPTION_REPORTS_BULK_UPDATE_ACTION:"Update",QC_EXCEPTION_REPORTS_PNRS:"Bulk Update Action",QC_EXCEPTION_REPORTS_EXCEPTIONNAME:"Exeption Name",QC_EXCEPTION_REPORTS_STATUS:"Status",QC_EXCEPTION_REPORTS_ACTION:"Action",QC_EXCEPTION_REPORTS_ASSIGNEE:"Assignee",QC_EXCEPTION_REPORTS_UPDATEDDATE:"Updated Date",QC_EXCEPTION_REPORTS_CREATEDDATE:"Created Date",QC_EXCEPTION_REPORTS_ISSUEDATE:"Issue Date",QC_EXCEPTION_DETAILS_Label:"Exception Details ",QC_EXCEPTION_DETAILS_PNR:"PNR",QC_EXCEPTION_DETAILS_PNR_TICKET:"PNR / Ticket",QC_EXCEPTION_DETAILS_ASSIGNEE:"Assignee",QC_EXCEPTION_DETAILS_ASSIGN_ACTION:"Assign Action",QC_EXCEPTION_DETAILS_EXCEPTION_CREATED_DATE:"Exception Created Date",QC_EXCEPTION_DETAILS_INHOUSE_ACTION:"Inhouse Action",QC_EXCEPTION_DETAILS_EXCEPTION_UPDATED_DATE:"Exception Updated Date",QC_EXCEPTION_DETAILS_STATUS:"Status",QC_EXCEPTION_DETAILS_ACTION_REQUIRED_BY:"Action Required By",QC_EXCEPTION_DETAILS_IAR_UPDATE:"IAR Update",QC_EXCEPTION_DETAILS_VOID_PNR:"Void PNR",QC_EXCEPTION_DETAILS_REISSUE_PNR:"Reissue PNR",QC_EXCEPTION_DETAILS_SUMMARY:"Summary",QC_EXCEPTION_DETAILS_DETAILS:"Details",QC_EXCEPTION_DETAILS_COMMENTS:"Comments",QC_EXCEPTION_DETAILS_HISTORY:"Correction Activity",QC_EXCEPTION_DETAILS_SUBMIT:"Submit",QC_EXCEPTION_DETAILS_CANCEL:"Cancel",QC_EXCEPTION_DETAILS_GO:"Go",QC_EXCEPTION_DATA_INSERTED_SUCCESSFULLY:"Exception Updated Successfully",QC_EXCEPTION_DATA_INSERTION_FAILURE:"Failed to Update Exceptions",QC_PLEASE_CHECK_ATLEAST_ONE:"Please Select Atleast One Exception",QC_NO_RESULTS_FOUND:"No Data Found",QC_DASHBOARD_PATH:"/framework/qcDashBoard.jsp",QC_EXCEPTION_DETAILS_FROM_SOURCE_ID:"From Source Id :",QC_EXCEPTION_DETAILS_FROM_SOURCE_VALUE:"From Source Value :",QC_EXCEPTION_DETAILS_TO_SOURCE_ID:"To Source Id :",QC_EXCEPTION_DETAILS_TO_SOURCE_VALUE:"To Source Value :",QC_EXCEPTION_DETAILS_DEADLINE:"Deadline",QC_EXCEPTION_DETAILS_QC_TYPE:"QC Type",QC_EXCEPTION_DETAILS_UPDATE:"Update",GDS_TYPE:"Gds Type ",CONSOLIDATOR_NAME:"Consolidator ",QC_IPCC:"PCC : ",QC_EXCEPTION_CATEGORIES:"Summary by Category",QC_EXCEPTION_SAMEDAY_QC:"Same Day QC",QC_EXCEPTION_NEXTDAY_QC:"Next Day QC",QC_SEARCH_BY_PNR:"Search By PNR / Ticket Number",QC_ARC_PERIOD:"Period",QC_NO_PNR_FOUND:"PNR does not exist",QC_EXCEPTION_DETAILS_COMPLETE:"Complete",QC_EXCEPTION_DETAILS_PARTNER_NAME:"Partner Name : ",QC_EXCEPTION_DETAILS_GDS_NAME:"GDS : ",QC_EXCEPTION_DETAILS_AUTO_RESOLVE:"Auto Resolve",QC_EXCEPTION_DETAILS_MANUAL_RESOLVE:"Manual Resolve",QC_EXCEPTION_DETAILS_ASSIGN_TO_AGENT:"Assign To Agent",QC_EXCEPTION_DETAILS_SOURCE:"Source",QC_EXCEPTION_DETAILS_TICKET_NUMBER:"Ticket Number",QC_EXCEPTION_DETAILS_CONTRACT_NAME:"Contract Name",QC_EXCEPTION_DETAILS_COMM:"Comm %",QC_EXCEPTION_DETAILS_TOUR_CODE:"Tour Code",QC_EXCEPTION_DETAILS_DESIGNATOR:"Designator",QC_EXCEPTION_DETAILS_END_DATE:"End Date",QC_EXCEPTION_DETAILS_DK_NUMBER:"DK Number",QC_UNRESOLVED_PNRS:"UnResolved PNRs",QC_RESOLVED_PNRS:"Resolved PNRs",QC_BRANCH_ARC:"Branch - ARC",QC_EXCEPTION_DETAILS_RESOLUTION:"Resolution",QC_EXCEPTION_DETAILS_CREATED_BY:"Action Taken By",QC_DASHBOARD_EXCEPTION_TICKETS:"Exception Tickets",QC_EXCEPTION_DETAILS_MSG_NO_EXCP:"No Exception is selected",QC_EXCEPTION_DETAILS_UPDATE_NOT_ALLOW:"Updation Not Allowed",QC_YEAR:"Year",QC_WEEKLY_ARC_RECONCILIATION:"Weekly ARC Reconciliation : ",QC_DASHBOARD_CASES:"Cases",QC_EXCEPTION_DETAILS_MSG_NO_EXCP:"No Exception is selected",QC_EXCEPTION_DETAILS_STATUS_SUCCESS_MSG_ASSIGN_AGENT:"has been assigned to Agent",QC_EXCEPTION_DETAILS_STATUS_SUCCESS_MSG_MANUAL_RESOLVE:"has been Resolved",QC_EXCEPTION_DETAILS_STATUS_SUCCESS_MSG_AUTO_RESOLVE:"has been submitted for Auto Resolution",QC_EXCEPTION_DETAILS_STATUS_FAILURE_MSG_ASSIGN_AGENT:"The selected Exceptions have not been assigned to Agent",QC_EXCEPTION_DETAILS_STATUS_FAILURE_MSG_MANUAL_RESOLVE:"The selected Exceptions have not been Resolved",QC_EXCEPTION_DETAILS_STATUS_FAILURE_MSG_AUTO_RESOLVE:"The selected Exceptions have not been submitted for Auto Resolution",QC_EXCEPTION_DETAILS_MSG_NO_ACTION_SELECTED:"No Action selected for the Exception - ",QC_CATEGORY:"Category",QC_CONSOLIDATOR:"Consolidator",QC_GDS:"GDS",QC_BRANCH_ARC:"Branch--ARC",QC_EXCEPTION_DETAILS_MSG_ENTER_COMMENTS:"Enter Comments",MCO_NUMBERS:"MCO Numbers",MCO_COUNT:"MCO Count",MCO_CHARGE_AMOUNT:"Charge Amount",MCO_TYPE:"MCO Type",MCO_IPCC:"IPCC",MCO_TRANSACTION_DATE:"Transaction Date",QC_DASHBOARD_SAME_DAY:"Same Day",QC_DASHBOARD_NEXT_DAY:"Next Day",QC_DASHBOARD_FAILURE:"Failure",QC_UNUSED_MCO:"Unused MCO's",QC_IAR_UPDATE_HEADING:"IAR Adjustments for Ticket # : ",QC_IAR_ADJUSTMENT_LABEL:"Iar Adjustment",QC_DOCUMENT_INFO:"Document Info",QC_VALIDATING_SUPPLIER_CODE:"Validating supplier code :",QC_COMMISSION_UPDATE:"Commission Update for : ",QC_COMMISSION_IN_TICKET_IMAGE:"Commission in Ticket Image :",QC_CORRECT_COMMISSION:"Correct Comm",QC_AMOUNT:"Amount",QC_PERCENTAGE:"Percentage",QC_UPDATE_IAR_BUTTON:"Update IAR",QC_REPORT_PERIOD_ENDING_DATE:"Report Period Ending Date :",QC_COMMISSION_IN_CONTRACT:"Commission in Contract :",QC_ORIGINAL_COMMISSION_ON_IAR:"Original Comm on IAR",QC_IAR_UPDATE_ERROR_MSG:"IAR Update Failed",QC_TICKET_IMAGE_DUMP:"Ticket Image for Document Number : ",QC_TICKET_IMAGE_MORE_PNR_INFO:"More PNR Info :",QC_EXCHANGE_TICKET:"Exch",QC_EXCEPTION_DETAILS_MSG_IAR_MANUAL:"Exchange ticket, Update IAR manually",QC_EXCEPTION_DETAILS_MSG_IAR_DIFF_EXCEPTION:"Different Exceptions selected for IAR Update",QC_LOST_OPPORTUNITIES_LABEL:"Lost Opportunities",QC_FROM:"From",QC_TO:"To",QC_TRANSACTIONS:"of Transactions",QC_LOST_OPPORTUNITIES:" Lost Opportunities",QC_DEBIT_MEMO:"Debit Memo",QC_SUMMARY_BY_ERROR:"Summary by Error",QC_AMOUNT:"Amount",QC_TYPE:"Type",QC_WARNING:"Warning",QC_CUSTOMER:"Customer",QC_IAR_UPDATE_DEADLINE_ERROR_MSG:" Issued Date Exceeded IAR Update Deadline",QC_POST_TKTNG_OPTIMIZATION_LABEL:"Post Ticketing Optimization",QC_BROWSER_WINDOW:"Browser Window",QC_REASON:"Reason",QC_CLASSES:"Classes",QC_PRICING_TYPE:"Pricing Type",QC_TICKETING_DATE:"Ticketing Date",QC_REPRICE_TIME:"Reprice Time",QC_BRANCH:"Branch",QC_PCC:"Pcc",QC_ARC:"ARC",QC_ERROR:"Error",QC_CATEGORY:"Category",QC_WINDOW_DATE:"Window Date",QC_BOS_COMM:"BOS Comm",QC_RECOMENDED_COMM:"Recomended Comm",QC_FAILURE:"Failures",QC_UPDATED_COMM:"Updated Comm",QC_LAST_UPDATED:"Last Updated",QC_COMM_ERROR_MESSAGE:"Please enter valid commission",QC_TICKET_INFO:"Ticket information",QC_DOCUMENT_INFO:"Document Info",QC_MONDEE_IAR_INFO:"Mondee IAR Info",QC_PENALTY:"Penalty",QC_GROSS_FARE:"Gross Fare",QC_COMM:"Comm",QC_COMM_ON_PENALTY:"Comm on Penalty",QC_NET_REMMIT:"Net Remit",QC_AGRESSO_INFO:"Agresso Info",QC_MISCELLANEOUS_ERROR_MESSAGE:"There are no unresolved exceptions for this PNR",HOTEL_SEARCH_ROOM_MSG:"Please select atleast one room",HOTEL_SEARCH_ADT_MSG:"Please select atleast one adult",ERR_HOTEL_BOOKING_FAILED:"SORRY!! HOTEL BOOKING FAILED ",RECONSTRAINING_Hotel_ByLocation:"By Location",RECONSTRAINING_Hotel_ByPrice:"By Price",RECONSTRAINING_Hotel_ByRating:"By Star",RECONSTRAINING_All_Hotel_Locations:"All Locations",HOTEL_CONFIRMATION:"Hotel Confirmation",HOTEL_BOOKING_DETAILS:"Hotel Booking Details",HOTEL_AIR_PNR:"Valid Air PNR",OPC_TAX_ALERT_MESSAGE:"OPC tax will be applied for this booking.",ACCOUNT_LINES_MSG_SELECT_VALIDATING_CARRIER_CODE:"Please provide Validating Carrier Code",BOOKING_PAGE_LAST_NAME_MSG:"Last Name must have more than one character",ERR_INVALID_USERR_TXN_MSG:"Invalid booking for the corporate!! Please refresh the search results for this corporate!!",Mot_Lite_Booking_Agent_Initial:"Booking Agent Initial",Mot_Lite_Ticketing_Agent_Initial:"Ticketing Agent Initial",Mot_Lite_Reason_Code:"Reason Code",MULTIPLE_BOOK_BUTTON_CLICK_MSG:"Please wait....",MOT_LITE_FIRST_LAST_NAME:"First Name / Last Name",MOT_LITE_TICKET_NUMBER:"Ticket Number",MOT_LITE_REISSUE_TICKET_NUMBER:"Reissue Ticket Number",MOT_LITE_AIRLINE_PENALTY:"Airline Penalty",MOT_LITE_FARE_DIFFERENCE:"Fare Difference / Add Collect",MOT_LITE_COMMISSION_ON_PENALTY:"Commission on Penalty",MOT_LITE_SERVICE_FEE:"Service Fee",MOT_LITE_VOID_FEE:"Void Fee",MOT_LITE_REFEND_FEE:"Refund Fee",MOT_LITE_CONSOLIDATOR_MARKUP:"Consolidator Markup",MOT_LITE_AGENT_MARKUP:"Agent Markup",MOT_LITE_TOTAL:"Total",MOT_LITE_CC_FEES:"CC Fee",MOT_LITE_TICKETING:"Ticketing",MOT_LITE_REISSUE:"ReIssues",MOT_LITE_VOID:"Void",MOT_LITE_REFUND:"Refund",MOT_LITE_REASON_CODE_ALERT:"please select reason code",MOT_LITE_CONSOLIDATOR_MARKUP_ALERT:"please enter Consolidator markUp",MOT_LITE_TICKET_NUMBER_ALERT:"please enter valid Ticket Number",MOT_LITE_AGENT_MARKUP_ALERT_MSG:"Please confirm, you have entered ",MOT_LITE_AGENT_MARKUP_ALERT_RULE1:" Agent markup to be given to the Agent. Select OK if you wish to proceed or select Cancel to enter a different amount",MOT_LITE_AGENT_MARKUP_ALERT_RULE2:" Markup to be collected from the agent. Select OK if you wish to proceed or select Cancel to enter a different amount.",MOT_LITE_AGENT_MARKUP_ALERT_RULE3:" Agent Markup, Please select OK if you wish to proceed with $0 or select Cancel to enter a different amount",MULTIPLE_SEARCH_BUTTON_CLICK_MSG:"Please wait.... previous search in process",ES_ONWARD_FARE_SELECT:"Please select Departure Date",ES_RETURN_FARE_SELECT:"Please select Return Date",DESKTOP_CHOOSE_PRICE_ITINERARY:'Seats are not available, to reprice the itinerary with available classes please click on "Ok".',DESKTOP_NO_SEATS:"Seats not available after repricing the Itinerary",GFS_SEARCH_RESULTS:"shift-g",GLOBAL_FARING_INFO:"Global Faring Solution",GFS_ITINERARY_FARE_TYPE:"Fare Type :",GFS_ITINERARY_BOOKING_CLASSES:"Booked Classes :",GFS_ITINERARY_IPCC:"IPCC :",GFS_LOWEST_AVAILABLE_INVENTORY:"Lowest Available Inventory -",GFS_LOW_FARE_SEARCH:"Low Fare Search",CROSS_MARKET_ITINERARY:"Cross Market Itinerary",GFS_INVENTORY_INFO:"GFS Inventory Info",GFS_PRICE_BUTTON:"Price",GFS_CHECK_PRICE:"Check Price",EXTERNAL_REPRICE_VALIDATE_MSG:"Please reprice to validate the charge amount",EXTERNAL_REPRICE_INPROCESS_MSG:"Pricing In process, Please wait",EXTERNAL_REPRICE_MSG:"Reprice to Get Total Fare",EXT_MOT_PAX_TYPE_VALIDATION:"Require atleast 1 adt ticket in the PNR, please update the pax type to adt to proceed with adt fare, Or send for manual issuance.",MOT_SEGMENTS_CHANGED:"Itinerary segments are changed, please reprice the pnr.",EXT_MOT_SPECIAL_TKTNG_INST_ERR:"You have selected to process pnr with Special ticketing instructions. Please select an option",EXT_MOT_SPECIAL_TKTNG_PUB_ERR:"Charge amount more than Published, Please verify",PRE_CONFIRMATION:"Do you want ",USER_SETTINGS_CONSOLIDATOR_REQUIRED:"Please select consolidator",USER_SETTINGS_AGENCY_REQUIRED:"Please select travel agency",TRAVEL_AGENCIES_NOT_EXIST_FOR_CONSOLIDATOR:"Travel agencies does not exist for the consolidator",SUB_AGENTS_NOT_EXIST_FOR_TRAVEL_AGENCY:"Sub-agents does not exist for the agency",SELECT_SUB_AGENTS:"Please select the sub-agent(s)",EXCHANGE_REISSUE_MSG:"Exchange cannot be done as itinerary has no change",INVALID_AIR_PNR_MSG:"Please Enter a Valid Air PNR",TERMS_AND_CONDITION_CHECK_BOX_ALERT:"Please Check Terms and Conditions Box",HOTEL_TERMS_AND_CONDITION_FAILURE:"SomeThing Went Wrong",REISSUE_Disabled:"REISSUE is not a valid option for this Login",REFUND_Disabled:"REFUND is not a valid option for this Login",VOID_Disabled:"VOID is not a valid option for this Login",ICT_CONS_SELECTION:"This looks like a ICT transaction, press OK to proceed",AMEX_AMADEUS_FRANCE_PCC:"PARHX215E",AMEX_AMADEUS_GERMAN_PCC:"HAJAX21BT",tpnBookedByLastName:"Please enter Booked by LastName",tpnBookedByFirstName:"Please enter Booked by FirstName",tpnInvoiceEmail:"Please enter Invoice Email",tpnCharge:"Please enter Creditcard details",tpnPhoneNum:"Please enter Phone Number",tpnCCCarrier:"Please enter Carrier code",tpnDest:"Please enter U1 Destination",tpnPaxFirstName:"Please enter Passenger FirstName",tpnPaxLastName:"Please enter Passenger LastName",tpnBookingDate:"Please enter Booking date",RESERVATION_Example_Intl_TPN_Phone_Number:"Example 123456789 Don't include hyphens",tpnBookedByLastNameInvalid:"Invalid Booked By LastName",tpnBookedByFirstNameInvalid:"Invalid  Booked By FirstName",tpnInvoiceEmailInvalid:"Invalid Invoice Email",tpnChargeInvalid:"Invalid Creditcard Details",tpnPhoneNumInvalid:"Invalid  Phone Number",tpnCCCarrierInvalid:"Invalid  Carrier Code",tpnDestInvalid:"Invalid  U1 Destination",tpnPaxFirstNameInvalid:"Invalid  Passenger FirstName",tpnPaxLastNameInvalid:"Invalid Passenger LastName",tpnBookingDateInvalid:"Invalid Booking Date",GFS_NO_DUPLICATE_BOOKING:"No duplicate booking allowed. Please initiate search again",CREDIT_AND_FRAUD_INFO:"Credit and Fraud Info",CREDIT_PROFILE_RATING_RULE0:"Credit Profile rating is poor,please contact admin",CREDIT_PROFILE_RATING_RULE1:"Credit Profile rating is moderate",CREDIT_FRAUD_INFO_MSG:"Fraud Info : Risk level is",MERCHANT_TXN_THRESHOLD_MSG:"Merchant Charge Amount is different than actaul amount",RELOAD:"reload",MERCHANT_SELECTION_MSG:"Please select atleast one Transaction",AMEX_FLEXI_TICKETING_REJECTION_REMARKS:[{id:"NoMatchFare",name:"No Matched Fare Found"},{id:"UnconfirmedSegments",name:"Unconfirmed Segments"},{id:"Departure3Days",name:"Departure Date Within 3 days"},{id:"NoEligibleAirline",name:"Airline not eligible for conversion"},{id:"ClientFare",name:"Fare booked fare is client negotiated"},{id:"ScheduleChange",name:"Unable to ticket because of schedule change"},{id:"MultiCarriers",name:"Multi-Carriers"},{id:"CCDecline",name:"Credit Card Declined"},{id:"NoSSR",name:"Missing SSR Documentation"},{id:"NoItinerary",name:"No Itinerary"},{id:"PNRTicketed",name:"PNR Ticketed"}],AMEX_FLEXI_TICKETING_REFUND_REMARKS:[{id:"NonMondeeTkt",name:"Non-Mondee Issued Ticket"},{id:"NoRefundNoReason",name:"Unable to Process Refund for Any Reason"},{id:"NoRefundTktStatus",name:"Unable to Process Refund due to ticket status"}],AMEX_FLEXI_TICKETING_VOID_REMARKS:[{id:"NonMondeeTkt",name:"Non-Mondee Issued Ticket"},{id:"NoVoidRequest",name:"Void Request unable to process"}],AMEX_FLEXI_TICKETING_EXCHANGE_REMARKS:[{id:"ExchangeTicket",name:"Exchange Ticket"}],constructor:function(){}});Fly.define("core.Loader",{singleton:true,alias:"Loader",instance:"auto",nimble:false,di:[],defaultEl:"loaderContainer",cls:"loaderRedBg",constructor:function(){var a={loaderClass:"loaderRedBg",hasBackground:true};$.fn.nimbleLoader.setSettings(a)},nimbleShow:function(a){a.nimbleLoader("show")},nimbleHide:function(a){a.nimbleLoader("hide")},flyShow:function(b){var a=Fly.LocalStorageManager.getJsonItem(Fly.Globals.LocalStorageKeys.USER_INFO);if(whitelabel=="tp"){b.append("<div class='loaderModel'><div id='"+this.defaultEl+"' class='"+this.cls+"'><img src='"+contextPath+"/assets/js/admin/"+platform+"/resources/images/loader/TripPlanet-Loading.gif'></div><div class='loadingBg'></div></div>")}else{if(a.ConsolidatorId==9151){b.append("<div class='loaderModel'><div id='"+this.defaultEl+"' class='"+this.cls+"'><img src='"+contextPath+"/assets/js/admin/"+platform+"/resources/images/loader/ET-TP-Loading.gif'></div><div class='loadingBg'></div></div>")}else{b.append("<div class='loaderModel'><div id='"+this.defaultEl+"' class='"+this.cls+"'><img src='"+contextPath+"/assets/js/admin/"+platform+"/resources/images/loader/"+platform+"GIF-White.gif'></div><div class='loadingBg'></div></div>")}}},showNewLoader:function(b){var a=Fly.LocalStorageManager.getJsonItem(Fly.Globals.LocalStorageKeys.USER_INFO);if(whitelabel=="tp"){b.append("<div class='loaderModel'><div id='"+this.defaultEl+"' class='"+this.cls+"'><img src='"+contextPath+"/assets/js/admin/"+platform+"/resources/images/loader/TripPlanet-Loading.gif'></div><div class='loadingBg'></div></div>")}else{if(a.ConsolidatorId==9151){b.append("<div class='loaderModel'><div id='"+this.defaultEl+"' class='"+this.cls+"'><img src='"+contextPath+"/assets/js/admin/"+platform+"/resources/images/loader/ET-TP-Loading.gif'></div><div class='loadingBg'></div></div>")}else{b.append("<div class='tpLoadingMain'><div class='tpLoader'><img src='"+contextPath+"/assets/js/admin/"+platform+"/resources/images/loader/"+platform+"GIF-White.gif' width='270' height='70' alt=''/></div></div>")}}},center:function(d,a){var c=Math.max(0,((d.height()-$("#"+a).outerHeight())/2)+d.scrollTop());var b=Math.max(0,((d.width()-$("#"+a).outerWidth())/2)+d.scrollLeft());console.log(" Top - "+c+" - Left - "+b);$("#"+a).css("top",c+"px");$("#"+a).css("left",b+"px")},flyHide:function(b){try{$("#"+this.defaultEl).remove();$(".loaderModel").remove()}catch(a){}try{window.parent.$("#"+this.defaultEl).remove();window.parent.$(".loaderModel").remove()}catch(a){}},hideNewLoader:function(b){try{$("#"+this.defaultEl).remove();$(".loaderModel").remove();$(".tpLoadingMain").remove()}catch(a){}try{window.parent.$("#"+this.defaultEl).remove();window.parent.$(".loaderModel").remove();window.parent.$(".tpLoadingMain").remove()}catch(a){}},show:function(a){try{this.hide(a);var c=this.getDom(a);if(this.nimble){this.nimblesShow(c)}else{this.flyShow(c)}}catch(b){}},showLoader:function(a){try{this.hide(a);var c=this.getDom(a);if(this.nimble){this.nimblesShow(c)}else{this.showNewLoader(c)}}catch(b){}},hide:function(a){var b=this.getDom(a);if(this.nimble){this.nimbleHide(b)}else{this.flyHide(b)}},hideLoader:function(a){var b=this.getDom(a);if(this.nimble){this.nimbleHide(b)}else{this.hideNewLoader(b)}},getDom:function(a){return a?$("#"+a):$("body")},showFlightLoader:function(b,a,c){Fly.Template.renderByEl(b,a,c);Fly.Template.renderByEl(b,a,c);Fly.Template.renderByEl(b,a,c);Fly.Template.renderByEl(b,a,c);Fly.Template.renderByEl(b,a,c)},hideFlightLoader:function(a){$("#"+a).html("")}});Fly.define("core.Logger",{singleton:false,mode:"server",log:"all",alias:"Logger",instance:"auto",usrId:38926,constructor:function(){this.loadDefaults()},loadDefaults:function(){var b=this;try{if(typeof accountId!="undefined"&&accountId){b.usrId=accountId}else{if(localStorage.getItem("ET_USER_INFO")){var a=localStorage.getItem("ET_USER_INFO");if(a&&!$.isEmptyObject(localStorage.getItem("ET_USER_INFO"))){var d=JSON.parse(localStorage.getItem("ET_USER_INFO"));accId=d.userId;if(accId&&!isNaN(accId)&&Number(accId)>0){b.usrId=accountId}}}}}catch(c){console.log("Exception in loadDefaults :: "+c)}},info:function(a){this.push("info",a)},debug:function(a){this.push("debug",a)},error:function(b,a){this.push("error",b,a)},trace:function(b,a){this.push("trace",b,a)},fatal:function(b,a){this.push("fatal",b,a)},warn:function(a,b){this.push("warn",a,null,b)},push:function(b,c,a,d){if(this.mode=="server"&&this.log=="all"){this.pushToServer(b,c,a,d)}},pushToServer:function(b,c,a,d){Fly.API.logger({type:b,message:c,error:a,warn:d,datetime:new Date().getTime(),userId:this.usrId})}});Fly.define("core.Preloader",{singleton:false,el:"body",template:"<div class='{{modelCls}}'></div><div class='{{loaderCls}}'>{{#if imageSrc}}<img src='{{imageSrc}}'/>{{/if}}</div>",extend:"Widget",autoRender:false,constructor:function(){},show:function(b){var c=this.getDom(b);var a=Fly.Template.htmlTemplate(this.template,this.model);this.loaderDom=$(a);c.append(this.loaderDom);return this},hide:function(b){var a=this;var c=this.getDom(b);if(this.loaderDom){a.loaderDom.remove()}return a},getDom:function(a){return a?$("#"+a):$("body")}});Fly.define("core.ProgressBar",{instance:"auto",alias:"pb",template:"<div id='pBar' class='pBar' style='overflow:hidden;'><img src='"+contextPath+"/assets/js/et/resources/images/foote-globe-logo.png' alt=''></div>",defaultEl:"body",progressPercentage:0,widget:{},maxProgressPercentage:85,totalProgress:0,constructor:function(){},init:function(){this.reach=0;this.totalProgress=0;this.progressPercentage=0},show:function(a){this.widget=Fly.widget({name:"ProgressBar",renderEl:a,el:"pBar",template:this.template,model:{},styles:{width:"700px"}});this.init();this.width=this.widget.parent().width();this.reach=this.width*this.maxProgressPercentage/100;return this},fill:function(a){if(this.canFill()){var b=this.width*a/100;this.progressPercentage=b;this.totalProgress+=this.progressPercentage;if(this.totalProgress>this.width){this.progressPercentage=this.width-this.totalProgress}this.animate()}return this},canFill:function(){return this.totalProgress<this.reach},animate:function(a){if($("#pBar").width()<=this.width){$("#pBar").animate({width:"+="+this.progressPercentage+"px"},500);$(".pBar img").animate({left:"+="+this.progressPercentage+"px"},500,a)}},continueEnd:function(b){var a=this;this.interval=setInterval(function(){a.fill(b)},2000);return this},finish:function(){var a=this;this.progressPercentage=this.width;this.animate(function(){a.remove(a)})},remove:function(a){$("#pBar").remove();a.cleanup(a)},cleanup:function(a){clearInterval(a.interval)}});Fly.define("core.SEO",{singleton:false,constructor:function(){}});Fly.define("core.Tone",{extend:"Widget",singleton:false,el:"",renderEl:"body",template:"<audio id='{{id}}' controls style='position:absolute;display:none;'><source src='{{tonePath}}.ogg' type='audio/ogg'><source src='{{tonePath}}.mp3' type='audio/mpeg'>"+ +"<source src='{{tonePath}}.m4r' type='audio/m4r'></audio>",constructor:function(){},play:function(){var a=document.getElementById(this.el);if(a){a.play()}},pause:function(){var a=document.getElementById(this.el);if(a){a.pause()}}});function HashMap(){this.clear=hashmap_clear;this.containsKey=hashmap_containsKey;this.containsValue=hashmap_containsValue;this.get=hashmap_get;this.isEmpty=hashmap_isEmpty;this.keys=hashmap_keys;this.put=hashmap_put;this.remove=hashmap_remove;this.size=hashmap_size;this.toString=hashmap_toString;this.values=hashmap_values;this.hashmap=new Array()}function hashmap_clear(){this.hashmap=new Array()}function hashmap_containsKey(b){var c=false;for(var a in this.hashmap){if(a==b&&this.hashmap[a]!=null){c=true;break}}return c}function hashmap_containsValue(c){var b=false;if(c!=null){for(var a in this.hashmap){if(this.hashmap[a]==c){b=true;break}}}return b}function hashmap_get(a){return this.hashmap[a]}function hashmap_isEmpty(){return(parseInt(this.size())==0)?true:false}function hashmap_keys(){var b=new Array();for(var a in this.hashmap){if(this.hashmap[a]!=null){b.push(a)}}return b}function hashmap_put(a,b){if(a==null||b==null){throw"NullPointerException {"+a+"},{"+b+"}"}else{this.hashmap[a]=b}}function hashmap_remove(a){var b=this.hashmap[a];this.hashmap[a]=null;return b}function hashmap_size(){var b=0;for(var a in this.hashmap){if(this.hashmap[a]!=null){b++}}return b}function hashmap_toString(){var a="";for(var b in this.hashmap){if(this.hashmap[b]!=null){a+="{"+b+"},{"+this.hashmap[b]+"}\n"}}return a}function hashmap_values(){var a=new Array();for(var b in this.hashmap){if(this.hashmap[b]!=null){a.push(this.hashmap[b])}}return a};Fly.define("core.ajax.API",{singleton:true,instance:"auto",alias:"API",baseUrl:"./resource",constructor:function(){try{var a=Fly.LocalStorageManager.getItem("AccessToken_"+whitelabel);if(a){this.defaultHeaders.AccessToken=a}else{var a=Fly.LocalStorageManager.getItem("AccessToken");Fly.LocalStorageManager.addItem("AccessToken_"+whitelabel,a);Fly.LocalStorageManager.removeItem("AccessToken",a);this.defaultHeaders.AccessToken=a}}catch(b){}},urls:{syncContextData:"resources/v1/Context/syncData",login:"api/v2/User/login",travelers:"api/v2/Aviator/Customers/list",logger:"resources/v1.1/UILogger/log",profilePicUrl:"http://be.flyex.com/resources/v2/User/ProfilePic",bookings:"api/v2/Aviator/myBookings",searchFlights:"api/v2/Flights/search",flightsRead:"api/v2/Flights/read",extremeSearch:"api/v2/Flights/extremeSearch",searchHotels:"api/v2/Hotels/search",airportsapi:"api/v2/Utility/airports",airports:"resources/v1/Context/locations",hotelsLocations:"resources/v1/Context/hotelLocation",getMessage:"api/v2/Flights/itinerary",getItinerary:"api/v2/Flights/itinerary",createTraveller:"api/v2/User/signUp",etUserProfile:"api/v2/User",bookFlight:"api/v2/Flights/bookItinerary",countrystate:"api/v2/Utility/stateCountryVOs",etBookings:"api/v2/Flights/etReadPnr",etProfileUpdate:"api/v2/User/etUpdateProfile",travelInsuranceQuote:"api/v2/Utility/quoteInsurance",totSettings:"resources/v1/Context/totSettings",landing:"api/SeoResource/fetchDeals",fareAlertURL:"api/CustomerTracking/fareAlertSubscription",signUpSubscriptionUrl:"api/CustomerTracking/signUpSubscription",marketingAppSettingsUrl:"api/CustomerTracking/marketingAppSettings",abandonLandingSubscriptionUrl:"api/CustomerTracking/abandonLandingSubscription",abandonBookingSubscriptionUrl:"api/CustomerTracking/abandonBookingSubscription",instantSearch:"api/v2/Flights/instantSearch",saveBillInfoImg:"resources/BookingImg/saveBillInfoImg",saveBillConfimImg:"resources/BookingImg/saveBillConfirmImg",traceSeoDataURL:"api/SeoResource/logSeoTrack",incremental:"api/v2/Flights/incrementalSearch",promoCodeURL:"api/v2/Offers/offerCodeApply",couponCodeURL:"api/v2/Offers/applyCoupon",manageBookings:"api/v2/ManageBooking/itinearies",managePnrInfo:"api/v2/ManageBooking/managePnrInfo",updateCCDetails:"api/v2/ManageBooking/updateCCDetails",generatePdf:"api/v2/ManageBooking/generatePdf",trackSeoBookingStatusURL:"api/SeoResource/trackSeoBookingStatus",saveFlightResultsURL:"resources/v1/Context/saveFlightResults",getFlightResultsURL:"resources/v1/Context/getFlightResults",secure3dAuthReq:"api/v1/secure3d/authreq",secure3dAuthResp:"api/v1/secure3d/authres",dashboardDataURL:"api/v2/Aviator/dashboard/agentEarnings",aviatorBookingsURL:"api/v2/Aviator/myBookings",aviatorCustomerDataURL:"api/v2/Aviator/Customers/list",travelerActivitiesURL:"api/v2/Aviator/travellersActivities",trackMetaCampaignStatusURL:"api/SeoResource/trackMetaCampaignStatus",updateRakutenConversionTag:"api/v2/Utility/updateAffiliateMarketTracking",isLegitimateCustomer:"api/v2/User/isLegitimate",userPreferences:"api/v2/User/preferences",changeUserPasswordURL:"api/v2/User/changePassword",topActivities:"api/v2/User/topActivities/",logout:"api/v2/User/signout",trackStatusURL:"api/v2/Analytics/track",shareItineraryURL:"api/v2/Aviator/share/messengerData",aviatorNotificationsURL:"api/v2/Aviator/AgentNotification",monthlySalesChatURL:"api/v2/Utility/MonthlyReport",createAgent:"api/v2/User/signUp",forgetPasswordByAgent:"api/v2/User/forgotPasswordByAgent",updatePasswordByCode:"api/v2/User/updatePasswordByCode",appCenterList:"api/v2/Apps/list/new",appCenterInstallList:"api/v2/Apps/list/installed",appInstall:"api/v2/Apps/install",appUninstall:"api/v2/Apps/uninstall",commandRequest:"api/v2/GDS/commands",menuData:"api/v2/Menu/list",menuDataWithSource:"api/v2/Menu/list",appIcon:"api/v2/Apps/icon",agentInfoList:"api/v2/User/agentInfoList",profilePaymentMethod:"api/v2/Agency/paymentMethod",profileAchInfo:"api/v2/Agency/achInfo",profilePaymentPrimaryStatus:"api/v2/Agency/paymentMethod/primary",profileACHPrimaryStatus:"api/v2/Agency/achInfo/default",profilePaymentHistory:"api/v2/Agency/paymentHistory",profilePic:"api/v2/User/ProfilePic",cropedPic:"api/v2/User/CropImage",i18NData:"resources/v1/Context/i18NData",monthlyActivityChat:"api/v2/Utility/MonthlyReport",tpDashboardRevenue:"api/v2/TpAgent/DashboardSummary",tpBookingInfo:"api/v2/TpAgent/BookingsInfo",parseCommand:"api/v2/GDS/parseCommands",getBookingFailureDetails:"api/bookingLead/failureInfo",failureStatusUpdate:"api/bookingLead/failureStatus",bookingFailureInfo:"api/bookingLead/failureInfo/",userAllApps:"api/v2/Apps/list/UserAllApps",addAppsToUser:"api/v2/Apps/list/installSelectedApps",shiftCommand:"api/v2/GDS/shift5",landingPCC:"api/v2/GDS/landingPccs",contactsList:"api/v2/Contacts/list",uploadContactsList:"api/v2/Contacts/uploadContactsList",inviteAgent:"api/v2/User/inviteUser",checkUserInvitation:"api/v2/User/checkUserInvitation",updateUserInvitation:"api/v2/User/updateUserInvitation",commissionReport:"api/v2/Commission/reportData",validateUserByEmail:"api/v2/User/validateUserByEmail",validateUserByMobileNumber:"api/v2/User/validateUserByMobileNumber",bookingsSearch:"api/bookingOperations/PnrCheck",updateContactsDetails:"api/v2/Contacts/update",landingPCCSessionRelease:"api/v2/GDS/landingPccs/releaseSession",viewItinerary:"api/v2/Operations/Pnr/viewItinerary",saveChargebackMgmt:"api/v2/DebitMemo/info",viewChargebackMgmt:"api/v2/DebitMemo/queue",validateContactsByEmail:"api/v2/Contacts/validateByEmail",sendMailToContacts:"api/v2/Contacts/sendMail",invoiceMasterDataReport:"api/v2/Reports/InvoiceMaster/Data",generateInvoiceMasterDataPdf:"api/v2/Reports/InvoiceMaster/Pdf",consolidatorAgencyList:"api/v2/Utility/ConsolidatorAgency/list",consolidators:"api/v2/Utility/Consolidators",branchNames:"api/v2/Utility/BranchNames",reasonCodes:"api/v2/Utility/ReasonCodes",voidedPnrDetails:"api/v2/Reports/VoidedPnr/Details",updateInvoiceMasterData:"api/v2/Reports/InvoiceMaster/Data",getInvoiceMasterDataObjectToUpdate:"api/v2/Reports/InvoiceMaster/DataToUpdate",emailInvoiceMasterDataPdf:"api/v2/Reports/InvoiceMaster/EmailPDF",pnrComments:"api/bookingOperations/viewComments",updateComments:"api/bookingOperations/updateComments",ccDetails:"api/bookingOperations/ccDetails",cbTicketInfo:"api/v2/DebitMemo/ticketInfoDetails",appSettings:"api/v2/Apps/appSettings",getSystemComments:"api/v2/Operations/Pnr/getSystemComments",showPnrFullHistory:"api/v2/Operations/Pnr/showPnrFullHistory",getEmailHistory:"api/v2/Operations/Pnr/getEmailHistory/",saveContactInfo:"api/v2/Operations/Pnr/saveContactInfo",externalMotDetails:"api/v2/Operations/Pnr/read",viewItinEmail:"api/v2/Operations/Pnr/sendViewItineraryEmail",applyPaymentDetails:"api/bookingOperations/paymentDetails",updatePaymentDetails:"api/bookingOperations/updatePaymentDetails",cbComment:"api/v2/DebitMemo/cbComment",blackListInfo:"api/v2/DebitMemo/blackListInfo",updateAppSettings:"api/v2/Apps/Settings",updateCCVerificationStatus:"api/bookingOperations/CC/VerificationStatus",cbMail:"api/v2/DebitMemo/cbMail",disputeLetter:"api/v2/DebitMemo/disputeLetter",fetchFile:"api/v2/DebitMemo/fetchFile",cbManualInfo:"api/v2/DebitMemo/cbManualInfo",updateTicketNumbers:"api/bookingOperations/TicketNumbers",cancelPnr:"api/bookingOperations/cancelPnr",ccdAuthForm:"api/bookingOperations/detailsForCCDeclineOrAuthForm",seatMapRequest:"api/v2/Flights/seatRequest",seatMapRequestV1:"api/v2/Flights/seatRequestV1",ccDeclineOrAuthFormEmail:"api/bookingOperations/ccDeclineOrAuthFormEmail",updateItineraryStatus:"api/bookingOperations/updateItineraryStatus",ccvAuthorization:"api/bookingOperations/ccvAuthorization",orderTicketing:"api/bookingOperations/orderTicketing",suspectFraudBooking:"api/bookingOperations/suspectFraudBooking",getEmailTemplates:"api/v2/Contacts/emailTemplates",getCcdRemarks:"api/bookingOperations/remarks",deleteContacts:"api/v2/Contacts/delete",listEmailTemplates:"api/v2/Contacts/listEmailTemplates",saveEmailTemplate:"api/v2/Contacts/emailTemplate",forexData:"resources/v1/Context/forexData",calculateExchange:"api/v2/Operations/Pnr/calculateExchange",updateProfileDetails:"api/v2/User/UpdateProfile",changePassword:"api/v2/User/changePassword",sendMail:"api/v2/Operations/Pnr/sendMail",cardCharge:"api/v2/Operations/Pnr/cardCharge",carouselCCDetails:"api/v2/Agency/cardInfo",paymentSummaryList:"api/v2/Reports/paymentSummary",paymentReportList:"api/v2/Reports/paymentDtls",carouselAgencyDetails:"api/v2/Agency/info",consolidatorsInfo:"api/v2/Agency/consolidatorInfo",appModelsInfo:"api/v2/Apps/modelsInfo",updateRegStatus:"api/v2/Agency/updateRegStatus",templateTypes:"api/v2/Contacts/templateTypes",deleteTemplates:"api/v2/Contacts/deleteTemplates",callPnrExchangereIssue:"api/v2/Operations/Pnr/reIssue",auditCustomerCareInfo:"api/v2/Operations/Pnr/auditCustomerCareInfo",hotelDetails:"api/v2/Hotels/details",hotelImages:"api/v2/Hotels/images",hotelRooms:"api/v2/Hotels/rooms",hotelPolicies:"api/v2/Hotels/policies",hotelRoomBook:"api/v2/Hotels/book",hotelPPNBundle:"api/v2/Hotels/ppnBundle",fareRules:"api/v2/Flights/fareRules",fareBreakDown:"api/v2/Flights/fareBreakDown",consPartnersList:"api/v2/Reports/ConsPartnersList",supportChatActive:"api/v2/MondeeWebHook/active",supportChatInActive:"api/v2/MondeeWebHook/inactive",supportChatUpdate:"api/v2/MondeeWebHook/update",regFlowStatus:"api/v2/Agency/userStatus",calculateRefund:"api/v2/Operations/Pnr/calculateRefund",pnrRefund:"api/v2/Operations/Pnr/refund",branchList:"api/v2/Utility/branchList",invoiceStatementSummary:"api/v2/Reports/invoiceStatementSummary",topAgentsList:"api/v2/TpAgent/Top/list",externalMotPricePnrDetails:"api/v2/Operations/Pnr/price",pricedItinerariesFromSession:"api/v2/Operations/Pnr/pricedItineriesFromSession",saveExternalStandardization:"api/v2/Operations/Pnr/externalStdzn",externalSelfTicketingDetails:"api/v2/Operations/Pnr/externalSelfTicketing",voidAndIssueTicket:"api/v2/Operations/Pnr/voidAndIssueTicket",voidMotPnr:"api/v2/Operations/Pnr/voidPnr",pollTicketingStatusDetails:"api/v2/Operations/Pnr/pollTicketingStatus",itineraryFareRules:"api/v2/Operations/Pnr/fareRules",newViewChargebackMgmt:"api/v2/DebitMemo/tpQueue",loadConsolidatorList:"api/v2/DebitMemo/loadConsolidatorList",loadBranchList:"api/v2/DebitMemo/loadBranchList",loadAgencyList:"api/v2/DebitMemo/loadAgencyList",addComments:"api/v2/Operations/Pnr/addComments",saveItineraries:"api/v2/Flights/itineraries",getItineraries:"api/v2/Flights/itineraries",getRequestItineraries:"api/v2/Flights/requestItineraries",verifySearchRequestKey:"api/v2/Flights/verifyRequestKey",invoiceStatementDetails:"api/v2/Reports/invoiceStatementDetails",versionDetailsList:"api/v2/Utility/versionDetailsList",customerList:"api/v2/Reports/customerList",invoiceDisputeList:"api/v2/Reports/dispute",agressoTripproBalanceMismatchView:"api/v2/Reports/agressoTripproBalanceMismatchView",agressoEmail:"api/v2/Reports/agressoEmail",showVersionStatus:"api/v2/Reports/showVersionStatus",updateCustomerStatement:"api/v2/Reports/updateCustomerStatement",printInvoicecPdf:"api/v2/Reports/generateInvoicePdf",createPasswordByCode:"api/v2/User/createPassword",excelDownload:"reportsExcelAdaptor/v2/Reports/FinanceReports/ExcelDownload",consolidatorsForFinancialReport:"api/v2/Utility/consolidatorsForFinancialReport",customersForFinancialReport:"api/v2/Utility/customersForFinancialReport",financeReport:"api/v2/Reports/financeReport",tripproStatementFailureReportView:"api/v2/Reports/tripproStatementFailureReportView",tripproItinerariDetails:"api/v2/Reports/ItinerariDetails",ctBookingStatus:"api/v2/Reports/CtBookingStatus",userTypeList:"api/v2/User/UserTypeList",viewCcvInfo:"api/v2/Ccv/ccvQueue",ccvPnrInfo:"api/v2/Ccv/pnrDetails",userProfile:"imageAdaptor/v2/User/Cropped/",userProfileWithOutCrop:"imageAdaptor/v2/User/ProfilePic/",allAgentsRefreshLatestVersion:"api/v2/Reports/allAgentsRefreshLatestVersion",enableFinancialReport:"api/v2/Reports/enableFinancialReport",updateFinancialDetailReport:"api/v2/Reports/updateFinancialDetailReport",saveMarketingImages:"api/v2/User/marketingImages",retirveMarketingImage:"imageAdaptor/v2/User/marketingImages/",disputeExcelDownload:"api/v2/Reports/Dispute/ExcelDownload",promoManagementData:"api/v2/Reports/promoManagementData",tripproBookingsReportData:"api/v2/Reports/TpBookingsReportData",tripproHotelBookingsReportData:"api/v2/Reports/TpHotelBookingsReportData",ccvManualInfo:"api/v2/Ccv/ccvManual",activityReport:"api/v2/Utility/ActivityReport",adminLogin:"api/v2/User/adminLogin",saveWaiverFile:"resources/BookingImg/saveWaiverFile",scheduleChanges:"api/v2/Ccv/scheduleChanges",disputeTransaction:"api/v2/Reports/disputeTransaction",branchesInfoList:"api/v2/MarkUp/branchInfo",consolidatorList:"api/v2/MarkUp/consolidatorList",searchPromoList:"api/v2/MarkUp/searchPromoList",loadMarkup:"api/v2/MarkUp/loadMarkup",saveMarkup:"api/v2/MarkUp/saveMarkup",searchItineraryEmail:"api/v2/Flights/itineraryEmail",twitterRequestToken:"resources/SocialMedia/twitterRequestToken",twitterFriends:"resources/SocialMedia/retrieveTwitterFriends/",qcPnrList:"api/v2/QcTool/PnrList",optPnrList:"api/v2/Opt/pnrList",qcExceptions:"api/v2/QcTool/QcExceptions",loadCorporateAccountDetails:"api/v2/Reports/loadCorporateAccountDetails",crmCases:"api/v2/QcTool/CrmCases",importContacts:"api/v2/Contacts/importContacts",assignPnr:"api/v2/QcTool/QcAssignment",assignOptPnr:"api/v2/Opt/optAssignment",internalAgents:"api/v2/User/internalAgents",sendEmailToQC:"api/v2/QcTool/SendEmail",ticketImageDisplay:"api/v2/QcTool/TicketImageDisplay",microList:"api/v2/QcTool/microList",yahooRequestToken:"resources/SocialMedia/yahooRequestToken",yahooFriends:"resources/SocialMedia/retrieveYahooFriends/",outlookRequestToken:"resources/SocialMedia/outlookRequestToken",outlookFriends:"resources/SocialMedia/retrieveOutlookFriends/",ccvComment:"api/v2/Ccv/ccvComment",resubmitForTicketing:"api/bookingOperations/resubmitForTicketing",itineraryInsuranceVO:"api/v2/Utility/getInsuranceVO",purchaseTravelInsurance:"api/v2/Utility/purchaseTravelInsurance",itineraryInsuranceVOEmailCall:"api/v2/Utility/getInsuranceVOEmailCall",purchaseTravelInsuranceEmailCall:"api/v2/Utility/purchaseTravelInsuranceEmailCall",cancelTravelInsurance:"api/v2/Utility/cancelInsurance",generateQCInvoicePdf:"api/v2/Reports/InvoiceMaster/QCInvoicePdf",voidPnr:"api/bookingOperations/voidPnr",realtedPnrs:"api/v2/DebitMemo/realtedPnrs",mvtLiteInfo:"api/v2/Operations/Pnr/mvtLiteInfo",mvtLite:"api/v2/Operations/Pnr/mvtLite",purchaseInsuranceWithNewCard:"api/v2/Utility/purchaseInsuranceWithNewCard",getCustEmailId:"api/v2/Operations/Pnr/getCustEmailId",updateQCManualStatus:"api/v2/QcTool/ManualStatusUpdate",generateQCMicroContractPdf:"api/v2/QcTool/MicroContractFilePath",quoteInuranceByReferenceNum:"api/v2/Utility/quoteInuranceByRef",qcContractsByPNR:"api/v2/QcTool/ContractsByPNR",appRequest:"api/v2/Apps/request",appApprove:"api/v2/Apps/approve",ccvRealtedPnrs:"api/v2/Ccv/ccvRealtedPnrs",getPastBookings:"api/v2/Operations/Pnr/pastBookings",sellItineraryUrl:"api/v2/Flights/SellItinerary",escalationInfo:"api/v2/Reports/escalationInfo",escalationDetails:"api/v2/Reports/escalationDetails",addEscalationInfo:"api/v2/Reports/addEscalationInfo",currencyList:"api/v2/Utility/currencyList",validateMobileNumber:"api/v2/Utility/validateMobileNumber",manageBookingStatus:"api/bookingOperations/manageBookingStatus",submitAppRating:"api/v2/Apps/AddAppRating",appRatingList:"api/v2/Apps/AppRatingList",appUserReviewList:"api/v2/Apps/AppUserReviewList",updateMobileUserStatus:"api/v2/User/updateMobileUserStatus",callFetchPdfDocument:"resources/BookingImg/fetchItineraryPdf/",saveEscalationsPnr:"api/v2/Reports/saveEscalationsPnr",customerEnquiryInfo:"api/v2/Flights/saveCustomerEnquiryItineraryInfo",appSettingsInfo:"api/v2/Apps/appSettingsInfo",phoneCountryExtensionInfo:"api/v2/User/phoneExtensions",campaignList:"api/v2/Contacts/campaignList",contactsForCampaign:"api/v2/Contacts/contactsListForCampaign",campaignType:"api/v2/Contacts/campaignType",updateCampaign:"api/v2/Contacts/updateCampaign",menuStatus:"api/v2/Menu/status",campaignContactList:"api/v2/Contacts/campaignContactList",updateCampaignContacts:"api/v2/Contacts/updateCampaignContacts",resetPasswordInTrippro:"api/v2/User/resetPasswordInTrippro",resetPasswordByCode:"api/v2/User/validateAndResetPassword",updateFeefoPNRDetails:"api/v2/Reports/updateFeefoPNRDetails",startCampaign:"api/v2/Contacts/startCampaign",copyCampaign:"api/v2/Contacts/copyCampaign",listApps:"api/v2/Apps/ListApps",listAppSettings:"api/v2/Apps/ListAppDefaultSettings",saveAppDefaultSettings:"api/v2/Apps/SaveUpdateAppDefaultSettings",appCategoryTypes:"api/v2/Apps/ListCategory",appTypes:"api/v2/Apps/ListType",saveUpdateApps:"api/v2/Apps/SaveUpdateApps",saveAppMenuSettings:"api/v2/Apps/SaveUpdateMenu",listAppMenus:"api/v2/Apps/ListMenu",campaignCount:"api/v2/Contacts/Campaign/counts",campaignOpenCountByDates:"api/v2/Contacts/Campaign/countByIdDates",supportConsoleOnlineData:"api/v2/Utility/liveUserForConsole/list/mondee",supportConsoleOfflineData:"api/v1/Utility/offlineUsers",getUserInfo:"api/v2/User/userInfo",updateUserInfo:"api/v2/User/updateUserInfo",getAgencies:"api/v2/User/agencies",getAgencyList:"api/v2/Utility/getAgencyList",updateRedisData:"api/v2/Utility/updateRedisData",updateAnalyticsStatus:"api/v2/Utility/updateAnalyticsStatus",getHotelBookingDetails:"api/v2/Hotels/bookingDetails",cancelHotelRooms:"api/v2/Hotels/cancel",viewCbReport:"api/v2/DebitMemo/cbReport",syncAppSettings:"api/v2/Apps/syncAppSettings",tpEmailVerification:"api/v2/User/tripproEmail",appSettingsMultiSelectList:"api/v2/Apps/appSettingMasterList",uploadCbFiles:"api/v2/DebitMemo/uploadCbFiles",uploadUserList:"api/v2/User/uploadUserList",securePaySession:"api/v1/securepay/session",secure3dpares:"api/v1/secure3d/pares",customerIDSignUp:"api/v2/User/customerIDSignUp",tpUserEmailVerification:"api/v2/User/tripproUserEmail",linkAgentWithExistUser:"api/v2/User/linkAgentAgency",appLibraryList:"api/v2/Apps/list/appLibrary",linkAgentToTrippro:"api/v2/User/linkAgentToTrippro",deleteCbRecord:"api/v2/DebitMemo/deleteCbRecord",resendEmailVerification:"api/v2/User/verifyResendEmail",updateInvoiceMasterDataObject:"api/v2/Reports/InvoiceMaster/UpdateInvoiceMasterData",forgotDKNumber:"api/v2/User/forgotDkNumber",cbexcelDownload:"reportsExcelAdaptor/v2/DebitMemo/CBExcelDownload",viewCcvReport:"api/v2/Ccv/ccvReport",ccdInfo:"api/v2/CcdMgmt/ccdInfo",ccdComment:"api/v2/CcdMgmt/ccdComment",ccdManualInfo:"api/v2/CcdMgmt/ccdManualInfo",ccdPnrInfo:"api/v2/CcdMgmt/ccdPnrInfo",ccdRealtedPnrs:"api/v2/CcdMgmt/ccdRealtedPnrs",ccdMail:"api/v2/CcdMgmt/ccdMail",viewPnrHistoryReport:"api/v2/DebitMemo/pnrHistoryReport",appModelList:"api/v2/Apps/ListAppModel",saveUpdateModels:"api/v2/Apps/SaveUpdateAppModel",listModelDefaultApps:"api/v2/Apps/ListModelDefaultApps",listUnMappedModelApps:"api/v2/Apps/ListUnMappedModelApps",saveUpdateModelDefaultApps:"api/v2/Apps/SaveUpdateModelDefaultApps",customerCasesList:"api/v2/CustomerCase/list",saveCustomerCase:"api/v2/CustomerCase/saveOrUpdate",saveCaseRemark:"api/v2/CustomerCase/saveRemarks",caseImagesRemarkslist:"api/v2/CustomerCase/imagesRemarkslist",caseAssign:"api/v2/CustomerCase/assignUser",updateOPT:"api/v2/Opt/saveUpdateOpt",creatCCVCase:"api/v2/Opt/createCCVCase",creatCCDCase:"api/v2/Opt/createCCDCase",updateOptTickets:"api/v2/Opt/updateTickets",enableStatementView:"api/v2/Reports/enableStatementView",updateEnableStatementStatus:"api/v2/Reports/updateEnableStatementStatus",bookingMetricsUrl:"api/v2/Flights/bookingMetrics",uploadMarkupList:"api/v2/MarkUp/upload",consolidatorInfo:"api/v2/MarkUp/consolidatorInfo",markupAgentInfo:"api/v2/MarkUp/agentInfo",agencyList:"api/v2/User/agencyList",ccvPnrBookingInfo:"api/v2/Ccv/ccvPnrBookingInfo",ccvFlightInfo:"api/v2/Ccv/ccvFlightInfo",saveOptPnrStatus:"api/v2/Opt/status",updateEmailResendVerification:"api/v2/User/updateEmailResendVerification",saveUpdateModelSettings:"api/v2/Apps/saveUpdateModelSettings",listModelSettings:"api/v2/Apps/listModelSettings",listModelUnMappedSettings:"api/v2/Apps/listModelUnMappedSettings",sendEmailForCCAlert:"api/v2/User/sendEmailForCCAlert",paymentCCValidator:"api/v2/User/paymentVerification",modifyUserType:"api/v2/User/modifyUserType",appsByUser:"api/v2/Utility/Apps",updateItinStatusAndSendEmail:"api/v2/User/updateItinStatusAndSendEmail",removeCampaignContacts:"api/v2/Contacts/removeCampaignContacts",accountTypeInfo:"api/v2/User/accountsByType",saveCarouselAgentInfo:"api/v2/User/agentInfo",saveCarouselAdditionalInfo:"api/v2/User/agencyInfo",agentApproval:"api/v2/Validator",reSendAgenyApprovalRequest:"api/v2/User/reSendAgenyApprovalRequest",listSites:"api/v2/Sites/list",saveSiteInfo:"api/v2/Sites/saveInfo",getSiteThemes:"api/v2/Sites/getThemes",getSiteTemplates:"api/v2/Sites/getTemplates",publishSite:"api/v2/Sites/publish",getSiteBySubomain:"api/v2/Sites/getSite/",getPagesBySiteId:"api/v2/Sites/getPages/",getPrivacyBySiteId:"api/v2/Sites/getPrivacy",getSitePage:"api/v2/Sites/getSitePage/",getSitePageWithSiteTheme:"api/v2/Sites/getSitePageWithSiteTheme/",marketingSettings:"api/v2/Utility/marketingAppSettings/",resendSupportEmailVerification:"api/v2/User/resendEmailVerification",faqInfo:"api/v2/Apps/faqInfo",pubFare:"api/v2/Flights/pubFare",viewSupportReconciliationInfo:"api/bookingOperations/supportReconciliationInfo",getSupportReconciliationCRMInfo:"api/bookingOperations/getSupportReconciliationCRMInfo",validateUserWithApp:"api/v2/User/validateUserWithApp",saveSupportReconciliationStatusDetails:"api/bookingOperations/saveSupportReconciliationStatusDetails",getSupportReconciliationRemarksHistory:"api/bookingOperations/getSupportReconciliationRemarksHistory",sendSupportReconciliationEmail:"api/bookingOperations/sendSupportReconciliationEmail",profileDeletePaymentMethod:"api/v2/Agency/deletePaymentMethod",refundManagementSystemInfo:"api/bookingOperations/refundManagementSystemInfo",sendRefundMgmtMail:"api/bookingOperations/sendRefundMgmtMail",saveRefundStatusDetails:"api/bookingOperations/saveRefundStatusDetails",templateThemeMap:"api/v2/Sites/getTemplateThemeMap",getRefundManagementSystemHistory:"api/bookingOperations/getRefundManagementSystemHistory",oldUserList:"api/v2/User/oldUserList",migrateUser:"api/v2/User/migrateUser",getMarkups:"api/v2/MarkUp/getMarkups",updateMarkup:"api/v2/MarkUp/updateMarkup",saveMarkupInfo:"api/v2/MarkUp/saveMarkupInfo",getMarkupFiltersList:"api/v2/MarkUp/getMarkupFiltersList",createSupportTicket:"api/CRM/createSupportTicket",dynamicPricingMarkupSummary:"api/v2/MarkUp/dynamicPricingMarkupSummary",dynamicPricingFareMarkupRules:"api/v2/MarkUp/dynamicPricingFareMarkupRules",dynamicPricingMarkupDetail:"api/v2/MarkUp/dynamicPricingMarkupDetail",nonExistingUsers:"api/v2/User/nonExistingUsers",viewDealCreationInfo:"api/v2/DealMgmt/viewDealCreationInfo",mondeeCustomerMigrate:"api/v2/User/mondeeCustomerMigrate",checkSiteAlreadyExists:"api/v2/Sites/isSiteExists",editDealManagementDealsInfo:"api/v2/DealMgmt/editDealManagementDealsInfo",deleteDealManagementDealsInfo:"api/v2/DealMgmt/deleteDealManagementDealsInfo",updateDealManagementDealsInfo:"api/v2/DealMgmt/updateDealManagementDealsInfo",viewDealPredictorInfo:"api/v2/DealMgmt/viewDealPredictorInfo",viewDealMonitorInfo:"api/v2/DealMgmt/viewDealMonitorInfo",invoiceReasonCodes:"api/v2/QcTool/ReasonCodes",viewDealsDashBoardInfo:"api/v2/DealMgmt/viewDealsDashBoardInfo",oldAgents:"api/v2/User/oldAgents",saveDealMonitorInfo:"api/v2/DealMgmt/saveDealMonitorInfo",migrateAgents:"api/v2/User/migrateAgents",getPublishDeal:"resources/v1/Context/getPublishDeal/",getAgents:"api/v2/User/agent",shareTripToUsers:"api/v2/User/tripEmail",getDeals:"api/v2/DealMgmt/getDeals/",agencyListByEmail:"api/v2/User/agencyListByEmailPhone",invoicesList:"api/v2/Reports/invoicesList",paymentSummaryDetails:"api/v2/Reports/paymentSummaryDetails",paymentReportDetails:"api/v2/Reports/paymentReportDetails",getTripDetailsByValidatorCode:"api/v2/User/tripValidatorCode",shareTripToUsersByPhone:"api/v2/User/tripSMS",getTripTravelerList:"api/v2/User/tripTravelerList",addTraveler:"api/v2/User/addTraveler",getTripTravelersCount:"api/v2/User/tripTravelersCount",removeTravelerFromTrip:"api/v2/User/removeTravelerFromTrip",getTravelerListToAdd:"api/v2/User/travelerListToAdd",addTravelersToTrip:"api/v2/User/addTravelersToTrip",updateUserStatusFromUM:"api/v2/User/updateUserStatusUM",getStrikedPubFare:"api/v2/Flights/getStrikedPubFare",saveRedAppCommandLogs:"api/v2/Utility/saveRedAppCommandLogs",updateInvoicesCustomerRemarks:"api/v2/Reports/updateInvoicesCustomerRemarks",bookWithoutCCVerification:"api/v2/Flights/bookWithoutCCVerification",logCCVerification:"api/v2/Flights/logCCVerification",incontactInfo:"api/v2/Utility/inContactDetails/",updateUserModel:"api/v2/User/updateModel",saveQuoteInfo:"api/SeoResource/saveBusinessClassContent",resendHotelItineraryEmail:"api/v2/Hotels/resendHotelItinerary",etUpdationOfProfile:"api/v2/User/etUpdationOfProfile",businessClassLeadReport:"api/SeoResource/businessClassLeadReport",updateBusinessClassLeadStatus:"api/SeoResource/updateBusinessClassLeadStatus",agentDisposition:"resources/v1/Context/agentDisposition",saveAgentDisposition:"resources/v1/Context/saveAgentDisposition",getAlternateItineraries:"api/v2/Flights/alternateItineraries",getAlternateItineraryByKey:"api/v2/Flights/alternateItineraryByKey",ppcTrafficTfn:"api/v2/Utility/ppcTrafficTfn",saveItinUIRenderStatus:"api/v2/Flights/saveItinUIRenderStatus",newSearchFlights:"api/Flights/metasearch",getAncillaryDetailsByType:"api/v1/ancillaries/fetchByType",saveCallOnFare:"api/SeoResource/saveCallOnFare",getBaggageInfo:"api/v3/gettravelinfo",getKiwiBaggageInfo:"api/v3/repriceitinerary"},defaultHeaders:{DeviceUUID:"Web-Dummy-DeviceUUID",AccessToken:"",AppId:Fly.Common?Fly.Common.getAppHeaders("appId"):0,AppCode:Fly.Common?Fly.Common.getAppHeaders("appCode"):"",AdminUser:Fly.Common?Fly.Common.getAppHeaders("adminUser"):"",Domain:Fly.Common?Fly.Common.getAppHeaders("domain"):"",PageName:Fly.Common?Fly.Common.getAppHeaders("pageName"):"",Source:Fly.Common?Fly.Common.getAppHeaders("source"):"",WhiteLabel:(typeof whitelabel!="undefined")?whitelabel:"",ItinGuid:""},includeUrls:{},excludeUrls:{},defaultMimeType:"application/json",mimeTypes:{json:"application/json",xml:"application/xml",xhtml:"application/xhtml+xml",txt:"text/plain",html:"text/html",param:"application/x-www-form-urlencoded; charset=UTF-8",soap:"",jsonWithCharacterSetUTF8:"application/json; charset=utf-8"},dataTypes:{json:"json"},types:{post:"POST",get:"GET",options:"option",delet:"delete",put:"put"},syncContextData:function(b,c){var a={};a.url=this.urls.syncContextData+"?type="+b+"&time="+new Date().getTime();a.callback=c;a.type=this.types.get;a.async=false;a.headers=this.defaultHeaders;this.ajax(a)},applyPromoCode:function(b,c){var a={};a.url=this.urls.promoCodeURL;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},applyCouponCode:function(b,c){var a={};a.url=this.urls.couponCodeURL;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},fareAlertSubscribe:function(b,c){var a={};a.url=this.urls.fareAlertURL;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},signUpSubscription:function(b,c){var a={};a.url=this.urls.signUpSubscriptionUrl;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getMarkups:function(c,d){var a=this;var b={};b.url=this.urls.getMarkups;b.callback=d;b.data=c;b.type=this.types.post;b.headers=this.defaultHeaders;this.ajax(b)},getMarkupFiltersList:function(c){var a=this;var b={};b.url=this.urls.getMarkupFiltersList;b.callback=c;b.type=this.types.get;b.headers=this.defaultHeaders;this.ajax(b)},updateMarkup:function(c,d){var a=this;var b={};b.url=this.urls.updateMarkup;b.callback=d;b.data=c;b.type=this.types.post;b.headers=this.defaultHeaders;this.ajax(b)},saveMarkupInfo:function(c,d){var a=this;var b={};b.url=this.urls.saveMarkupInfo;b.callback=d;b.data=c;b.type=this.types.post;b.headers=this.defaultHeaders;this.ajax(b)},marketingAppSettings:function(b,c){var a={};a.url=this.urls.marketingAppSettingsUrl;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},abandonLandingSubscription:function(b,c){var a={};a.url=this.urls.abandonLandingSubscriptionUrl;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},abandonBookingSubscription:function(b,c){var a={};a.url=this.urls.abandonBookingSubscriptionUrl;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},traceSeoData:function(b,c){var a={};a.url=this.urls.traceSeoDataURL;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},login:function(b,c){var a={};a.url=this.urls.login;a.data=b;a.callback=c;if(typeof deeplink!=="undefined"&&deeplink){a.async=false}a.headers=this.defaultHeaders;this.ajax(a)},logout:function(b){var a={};a.url=this.urls.logout;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getTravelers:function(b){var a={};a.url=this.urls.travelers;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},logger:function(b){var a={};a.url=this.urls.logger;a.data=b;this.ajax(a)},bookings:function(b,c){var a={};a.url=this.urls.bookings;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},flightsRead:function(b,h){var g=b.pnr;if(b.referenceNumber){g+="~"+b.referenceNumber}var c={RecordLocator:g,OtherInfo:{TransactionId:"READ_PNR_ON_BOOKING"}};try{var f=b.transactionFor;if(typeof f!=="undefined"&&f!==null&&f!==""){c.OtherInfo.TransactionFor=f}}catch(d){c.OtherInfo.transactionFor=""}var a={};a.url=this.urls.flightsRead;a.data=c;a.callback=h;a.headers=this.defaultHeaders;this.ajax(a)},instantSearch:function(b,c){var a={};a.url=this.urls.instantSearch;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},searchFlights:function(b,c){var a={};a.url=this.urls.searchFlights;b=this.selectedAgencyInterceptor(b);a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},incrementalSearch:function(b,c){var a={};a.url=this.urls.incremental;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},searchHotels:function(b,c){var a={};a.url=this.urls.searchHotels;a.data=b;a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.jsonWithCharacterSetUTF8;this.ajax(a)},airports:function(a,c){var b={};b.url=this.urls.airports;b.callback=c;b.data={keyText:a};if(typeof locale!="undefined"){b.data.locale=locale}b.type=this.types.get;b.headers=this.defaultHeaders;b.contentType=this.mimeTypes.text;b.dataType="";this.ajax(b)},hotelLocations:function(a,c){var b={};b.url=this.urls.hotelsLocations;b.callback=c;b.data={keyText:a};b.type=this.types.get;b.headers=this.defaultHeaders;b.contentType=this.mimeTypes.text;b.dataType="";this.ajax(b)},airportsAdapter:function(a,c){var b={};b.url=this.urls.airportsAdapter;b.callback=c;b.data={keyText:a};b.type=this.types.get;b.headers=this.defaultHeaders;b.contentType=this.mimeTypes.text;b.dataType="";this.ajax(b)},extremeSearch:function(b,c){var a={};a.url=this.urls.extremeSearch;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getMessage:function(c,d){var a={};var b="";if(typeof deeplink!=="undefined"&&deeplink){if(typeof accountId!=="undefined"&&accountId){b="?accountId="+accountId+"&remoteIp="+remoteIp+"&isFromMobile="+Fly.Browser.isMobile()}if(typeof isFrom!=="undefined"&&isFrom){if(b!=""){b+="&"}else{b="?"}b+="from="+isFrom+"&marked="+marked+"&isSupportUser=false"}}if(typeof gid!="undefined"&&gid&&!isNaN(gid)){b+="&ctGdsId="+gid}a.url=this.urls.getMessage+"/"+c+b;a.callback=d;a.async=false;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getItinerary:function(e,a,d){var b={};var c="";if(typeof deeplink!=="undefined"&&deeplink){if(typeof accountId!=="undefined"&&accountId){c="?accountId="+accountId+"&remoteIp="+remoteIp+"&isFromMobile="+Fly.Browser.isMobile()}else{c="?userId="+Fly.Common.getIdFromUserInfo(true)}if(typeof kayakclickID!=="undefined"&&kayakclickID&&kayakclickID.length>0){c+="&clkId="+kayakclickID}if(typeof isFrom!=="undefined"&&isFrom){if(c!=""){c+="&"}else{c="?"}c+="from="+isFrom+"&marked="+marked+"&isSupportUser=false"}}else{c="?userId="+Fly.Common.getIdFromUserInfo(true)}if(typeof gid!="undefined"&&gid&&!isNaN(gid)){c+="&ctGdsId="+gid}if(null!=e&&e.length>0){b.url=this.urls.getItinerary+"/"+e+"/"+a+c}else{b.url=this.urls.getMessage+"/"+a+c}b.callback=d;b.async=false;b.type=this.types.get;b.headers=this.defaultHeaders;this.ajax(b)},createTraveller:function(b,c){var a={};a.url=this.urls.createTraveller;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getUserProfile:function(b,c){var a={};a.url=this.urls.etUserProfile+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},bookFlight:function(b,c){var a={};a.url=this.urls.bookFlight;b=this.selectedAgencyInterceptorBookFlight(b);a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},countryState:function(b,c){var a={};a.url=this.urls.countrystate;a.callback=c;a.data={countryId:b};a.type=this.types.get;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.text;a.dataType="";a.async=false;this.ajax(a)},landing:function(b,c){var a={};a.url=this.urls.landing;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getEtBookings:function(b,c){var a={};a.url=this.urls.etBookings+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},etProfileUpdate:function(b,c){var a={};a.data=b;a.url=this.urls.etProfileUpdate;a.callback=c;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},travelInsuranceQuote:function(b,c){var a={};a.url=this.urls.travelInsuranceQuote;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},totSettings:function(c){var b={};var a=new Date().getTime();b.url=this.urls.totSettings+"?d="+a;b.type=this.types.get;if(typeof pageName!="undefined"&&pageName&&(pageName=="flightSearch"||pageName=="offers"||pageName=="flight-reservations"||pageName=="cheap-flight-to")){b.async=false}b.callback=c;b.headers=this.defaultHeaders;this.ajax(b)},saveBillInfoImg:function(b,c){var a={};a.url=this.urls.saveBillInfoImg;a.data=b;a.type=this.types.post;a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.json;a.processData=false;this.ajax(a)},saveBillConfimImg:function(b,c){var a={};a.url=this.urls.saveBillConfimImg;a.data=b;a.type=this.types.post;a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.json;a.processData=false;this.ajax(a)},getManageBookingItineraries:function(b,c){var a={};a.url=this.urls.manageBookings;a.data=b;a.type=this.types.post;a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.json;this.ajax(a)},getManagePnrInfo:function(b,c){var a={};a.url=this.urls.managePnrInfo;a.data=b;a.type=this.types.post;a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.json;this.ajax(a)},updateCCDetails:function(b,c){var a={};a.url=this.urls.updateCCDetails;a.data=b;a.type=this.types.post;a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.json;this.ajax(a)},generatePdf:function(b,c){var a={};a.url=this.urls.generatePdf;a.data=b;a.type=this.types.post;a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.json;this.ajax(a)},trackSeoBookingStatus:function(b,c){var a={};a.url=this.urls.trackSeoBookingStatusURL;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveFlightResults:function(b,c){var a={};a.url=this.urls.saveFlightResultsURL;a.type=this.types.post;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getFlightResults:function(b){var a={};a.url=this.urls.getFlightResultsURL;a.type=this.types.get;a.callback=b;a.headers=this.defaultHeaders;this.ajax(a)},aviatorDashboardData:function(b){var a={};a.url=this.urls.dashboardDataURL;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},aviatorBookingData:function(b){var a={};a.url=this.urls.aviatorBookingsURL;a.callback=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},aviatorCustomerData:function(b){var a={};a.url=this.urls.aviatorCustomerDataURL;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},secure3dAuthReq:function(b,c){var a={};a.url=this.urls.secure3dAuthReq;a.type=this.types.post;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},secure3dAuthResp:function(b,c){var a={};a.url=this.urls.secure3dAuthResp;a.type=this.types.post;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},travelerActivitiesData:function(c){var a={};var b={};a.url=this.urls.travelerActivitiesURL;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},trackMetaCampaignSeoStatus:function(b,c){var a={};a.url=this.urls.trackMetaCampaignStatusURL;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateRakutenConversionTag:function(b,c){var a={};a.url=this.urls.updateRakutenConversionTag;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},isLegitimateCustomer:function(b,c){var a={};a.url=this.urls.isLegitimateCustomer;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},modifyUserProfile:function(b,c){var a={};a.url=this.urls.etUserProfile+"/"+b.Id;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},getUserPreferences:function(b,c){var a={};a.url=this.urls.userPreferences+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateUserPreferences:function(b,c){var a={};a.url=this.urls.userPreferences;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},changeUserPassword:function(b,c){var a={};a.url=this.urls.changeUserPasswordURL;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getTopActivities:function(b){var a={};a.url=this.urls.topActivities;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},trackStatus:function(b,c){var a={};a.url=this.urls.trackStatusURL;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},shareItinerary:function(b,c){var a={};a.url=this.urls.shareItineraryURL;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},aviatorNotifications:function(b){var a={};a.url=this.urls.aviatorNotificationsURL;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},monthlySalesChat:function(b,c){var a={};a.url=this.urls.monthlySalesChatURL+"/"+b.from+"/"+b.to;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},createAgent:function(b,c){var a={};a.url=this.urls.createAgent;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},forgetPasswordByAgent:function(b,c){var a={};a.url=this.urls.forgetPasswordByAgent;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},updatePasswordByCode:function(b,c){var a={};a.url=this.urls.updatePasswordByCode;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},appCenterList:function(b){var a={};a.url=this.urls.appCenterList;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},appCenterInstallList:function(b){var a={};a.url=this.urls.appCenterInstallList;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},profilePaymentMethod:function(b){var a={};a.url=this.urls.profilePaymentMethod;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},profilePaymentHistory:function(b,c){var a={};a.url=this.urls.profilePaymentHistory+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},savePaymentMethod:function(b,c){var a={};a.url=this.urls.profilePaymentMethod;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},deletePaymentMethod:function(b,c){var a={};a.url=this.urls.profileDeletePaymentMethod;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveAchInfo:function(b,c){var a={};a.url=this.urls.profileAchInfo;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updatePaymentMethod:function(b,c){var a={};a.url=this.urls.profilePaymentMethod;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},updateAchMethod:function(b,c){var a={};a.url=this.urls.profileAchInfo;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},updatePaymentCardPrimaryStatus:function(b,c){var a={};a.url=this.urls.profilePaymentPrimaryStatus;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},updateAchPrimaryStatus:function(b,c){var a={};a.url=this.urls.profileACHPrimaryStatus;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},appUninstall:function(b,c){var a={};a.url=this.urls.appUninstall;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},appInstall:function(b,c){var a={};a.url=this.urls.appInstall;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},menuData:function(b){var a={};a.url=this.urls.menuData;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},menuDataWithSource:function(b,c){var a={};a.url=this.urls.menuData+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},appIcon:function(c,b){var a={};a.url=this.urls.appIcon+"/"+c;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},gdsCommandRequests:function(c,d,b){var a={};a.url=this.urls.commandRequest;a.callback=d;a.async=b;c=this.selectedAgencyInterceptorBookFlight(c);a.data=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveProfilePic:function(b,c){var a={};a.url=this.urls.profilePic;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveCropedPic:function(b,c){var a={};a.url=this.urls.cropedPic;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},i18NData:function(a,c){var b={};b.url=this.urls.i18NData+"?locale="+a;b.type=this.types.get;b.async=false;b.callback=c;b.headers=this.defaultHeaders;this.ajax(b)},monthlyActivityChat:function(b,c){var a={};a.url=this.urls.monthlyActivityChat+"/"+b.from+"/"+b.to;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},tpDashboardRevenue:function(b,c){var a={};a.url=this.urls.tpDashboardRevenue;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},tpBookingInfo:function(b,c){var a={};a.url=this.urls.tpBookingInfo;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},parseCommands:function(b,c){var a={};a.url=this.urls.parseCommand;a.callback=c;a.async=false;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getBookingFailureDetails:function(b,c){var a={};a.url=this.urls.getBookingFailureDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},businessClassLeadReport:function(b,c){var a={};a.url=this.urls.businessClassLeadReport;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},failureStatusUpdate:function(b,c){var a={};a.url=this.urls.failureStatusUpdate;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateBusinessClassLeadStatus:function(b,c){var a={};a.url=this.urls.updateBusinessClassLeadStatus;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getUserAllApps:function(b,c){var a={};a.url=this.urls.userAllApps+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},addAppsToUser:function(b,c){var a={};a.url=this.urls.addAppsToUser+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},shiftCommands:function(b,c){var a={};a.url=this.urls.shiftCommand;a.callback=c;a.async=false;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},landingPccsList:function(a,c){var b={};b.url=this.urls.landingPCC+"/"+a;b.callback=c;b.type=this.types.get;b.headers=this.defaultHeaders;this.ajax(b)},inviteAgent:function(b,c){var a={};a.url=this.urls.inviteAgent+"?"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},checkUserInvitation:function(b){var a={};a.url=this.urls.checkUserInvitation;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateUserInvitation:function(b,c){var a={};a.url=this.urls.updateUserInvitation+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},commissionReport:function(b,c){var a={};a.url=this.urls.commissionReport;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},validateUserByEmail:function(b,c){var a={};a.url=this.urls.validateUserByEmail+"?email="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},validateUserByMobileNumber:function(b,c){var a={};a.url=this.urls.validateUserByMobileNumber+"?mobileNumber="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},bookingsSearch:function(b,c){var a={};a.url=this.urls.bookingsSearch;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateContactsDetails:function(b,c){var a={};a.url=this.urls.updateContactsDetails;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},landingPCCChange:function(b,c){var a={};a.url=this.urls.landingPCCSessionRelease+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},viewItinerary:function(b,c){var a={};a.url=this.urls.viewItinerary;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveChargebackMgmt:function(b,c){var a={};a.url=this.urls.saveChargebackMgmt;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},viewChargebackMgmt:function(b,c){var a={};a.url=this.urls.viewChargebackMgmt;a.data=b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},validateContactsByEmail:function(b,c){var a={};a.url=this.urls.validateContactsByEmail+"?email="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},sendMailToContacts:function(b,c){var a={};a.url=this.urls.sendMailToContacts;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},invoiceMasterDataReport:function(b,c){var a={};a.url=this.urls.invoiceMasterDataReport;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},generateInvoiceMasterDataPdf:function(b,c){var a={};a.url=this.urls.generateInvoiceMasterDataPdf;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},consolidatorAgencyList:function(b,c){var a={};a.url=this.urls.consolidatorAgencyList;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},consolidators:function(b,c){var a={};a.url=this.urls.consolidators;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},branchNames:function(b,c){var a={};a.url=this.urls.branchNames;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},reasonCodes:function(b,c){var a={};a.url=this.urls.reasonCodes;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},voidedPnrDetails:function(b,c){var a={};a.url=this.urls.voidedPnrDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},emailInvoiceMasterDataPdf:function(b,c){var a={};a.url=this.urls.emailInvoiceMasterDataPdf;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateInvoiceMasterData:function(b,c){var a={};a.url=this.urls.updateInvoiceMasterData;a.data=b;a.callback=c;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},getInvoiceMasterDataObjectToUpdate:function(b,c){var a={};a.url=this.urls.getInvoiceMasterDataObjectToUpdate;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},pnrComments:function(b,c){var a={};a.url=this.urls.pnrComments+"/"+b.referenceNumber;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateComments:function(b,c){var a={};a.url=this.urls.updateComments;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},ccDetails:function(b,c){var a={};a.url=this.urls.ccDetails+"/"+b.referenceNum+"/"+b.consolidatorId+"/"+b.type;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},cbTicketInfo:function(b,c){var a={};a.url=this.urls.cbTicketInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},appSettings:function(c,b,d){var a={};a.url=this.urls.appSettings+"/"+c+"/"+b;a.callback=d;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getSystemComments:function(b,c){var a={};a.url=this.urls.getSystemComments;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},showPnrFullHistory:function(b,c){var a={};a.url=this.urls.showPnrFullHistory;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getEmailHistory:function(b,c){var a={};a.url=this.urls.getEmailHistory+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},saveContactInfo:function(b,c){var a={};a.url=this.urls.saveContactInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},callExchangeStatusDetails:function(b,c){var a={};a.url=this.urls.externalMotDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getApplyPaymentDetails:function(b,c){var a={};a.url=this.urls.applyPaymentDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updatePaymentDetails:function(b,c){var a={};a.url=this.urls.updatePaymentDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},cbComment:function(b,c){var a={};a.url=this.urls.cbComment;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},blackListInfo:function(b,c){var a={};a.url=this.urls.blackListInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateAppSettings:function(c,d,b,e){var a={};a.url=this.urls.updateAppSettings+"/"+d+"/"+b;a.data=c;a.callback=e;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},updateCCVerificationStatus:function(b,c){var a={};a.url=this.urls.updateCCVerificationStatus;a.data=b;a.callback=c;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},cbMail:function(b,c){var a={};a.url=this.urls.cbMail;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},disputeLetter:function(b,c){var a={};a.url=this.urls.disputeLetter;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},fetchFile:function(b,c){var a={};a.url=this.urls.fetchFile;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},cbManualInfo:function(b,c){var a={};a.url=this.urls.cbManualInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateTicketNumbers:function(b,c){var a={};a.url=this.urls.updateTicketNumbers;a.data=b;a.callback=c;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},cancelPnr:function(b,c){var a={};a.url=this.urls.cancelPnr;a.data=b;a.async=false;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},ccdAuthForm:function(b,c){var a={};a.url=this.urls.ccdAuthForm;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},seatMapRequest:function(b,c){var a={};a.url=this.urls.seatMapRequest;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},seatMapRequestV1:function(b,c){var a={};a.url=this.urls.seatMapRequestV1;a.data=b;a.callback=c;a.type=this.types.post;this.ajax(a)},sendCcdAuthFormEmail:function(b,c){var a={};a.url=this.urls.ccDeclineOrAuthFormEmail;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateItineraryStatus:function(b,c){var a={};a.url=this.urls.updateItineraryStatus;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},ccvAuthorization:function(b,c){var a={};a.url=this.urls.ccvAuthorization;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},orderTicketing:function(b,c){var a={};a.url=this.urls.orderTicketing;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},suspectFraudBooking:function(b,c){var a={};a.url=this.urls.suspectFraudBooking;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getEmailTemplates:function(b){var a={};a.url=this.urls.getEmailTemplates;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getCcdRemarks:function(b,c){var a={};a.url=this.urls.getCcdRemarks+"/"+b.referenceNum;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},deleteContacts:function(c,b){var a={};a.url=this.urls.deleteContacts+"?id="+c;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},listEmailTemplates:function(b){var a={};a.url=this.urls.listEmailTemplates;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},saveEmailTemplate:function(b,c){var a={};a.url=this.urls.saveEmailTemplate;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},forexData:function(b){var a={};a.url=this.urls.forexData;a.type=this.types.get;a.async=false;a.callback=b;a.headers=this.defaultHeaders;this.ajax(a)},callCalculateExchange:function(b,c){var a={};a.url=this.urls.calculateExchange;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateProfileDetails:function(b,c){var a={};a.url=this.urls.updateProfileDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},changePassword:function(b,c){var a={};a.url=this.urls.changePassword;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},sendMail:function(b,c){var a={};a.url=this.urls.sendMail;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},cardCharge:function(b,c){var a={};a.url=this.urls.cardCharge;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveCarouselCCDetails:function(b,c){var a={};a.url=this.urls.carouselCCDetails;a.type=this.types.post;a.async=false;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},callExternalMotDetails:function(b,c){var a={};a.url=this.urls.externalMotDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveCarouselAgencyInfo:function(b,c){var a={};a.url=this.urls.carouselAgencyDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getConsolidatorInfo:function(b){var a={};a.url=this.urls.consolidatorsInfo;a.type=this.types.get;a.callback=b;a.headers=this.defaultHeaders;this.ajax(a)},getAppModelsInfo:function(b){var a={};a.url=this.urls.appModelsInfo;a.type=this.types.get;a.async=false;a.callback=b;a.headers=this.defaultHeaders;this.ajax(a)},updateUserRegStatus:function(b,c){var a={};a.url=this.urls.updateRegStatus;a.type=this.types.post;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},deleteTemplates:function(b,c){var a={};a.url=this.urls.deleteTemplates+"?templateIds="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getEmailTemplateTypes:function(b){var a={};a.url=this.urls.templateTypes;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},callPnrExchange:function(b,c){var a={};a.url=this.urls.callPnrExchangereIssue;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},auditCustomerCareInfo:function(b,c){var a={};a.url=this.urls.auditCustomerCareInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getHotelDetails:function(b,c){var a={};a.url=this.urls.hotelDetails;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getHotelImages:function(b,c){var a={};a.url=this.urls.hotelImages;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getHotelRooms:function(b,c){var a={};a.url=this.urls.hotelRooms;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getHotelPolicies:function(b,c){var a={};a.url=this.urls.hotelPolicies;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},HotelRoomBook:function(b,c){var a={};a.url=this.urls.hotelRoomBook;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getHotelPPNBundle:function(b,c){var a={};a.url=this.urls.hotelPPNBundle;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getFareRules:function(b,c){var a={};a.url=this.urls.fareRules+"/"+b.itineraryId+"/"+b.airlineCode+"/"+b.requestKey;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getFareBreakDown:function(b,c){var a={};a.url=this.urls.fareBreakDown+"/"+b.itineraryId+"/"+b.requestKey;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},supportChatActive:function(b,c){var a={};a.url=this.urls.supportChatActive;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},supportChatInActive:function(b,c){var a={};a.url=this.urls.supportChatInActive;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},supportChatUpdate:function(b,c){var a={};a.url=this.urls.supportChatUpdate;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getRegistrationFlow:function(b,c){var a={};a.url=this.urls.regFlowStatus+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},calculateRefund:function(b,c){var a={};a.url=this.urls.calculateRefund;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},pnrRefund:function(b,c){var a={};a.url=this.urls.pnrRefund;a.data=b.requestdata;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},topAgentsList:function(b){var a={};a.url=this.urls.topAgentsList;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},externalMotPricePnrDetails:function(b,c){var a={};a.url=this.urls.externalMotPricePnrDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},pricedItinerariesFromSession:function(b,c){var a={};a.url=this.urls.pricedItinerariesFromSession;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveExternalStandardization:function(b,c){var a={};a.url=this.urls.saveExternalStandardization;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},externalSelfTicketingDetails:function(b,c){var a={};a.url=this.urls.externalSelfTicketingDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},pollTicketingStatusDetails:function(b,c){var a={};a.url=this.urls.pollTicketingStatusDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},voidAndIssueTicket:function(b,c){var a={};a.url=this.urls.voidAndIssueTicket;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},voidMotPnr:function(b,c){var a={};a.url=this.urls.voidMotPnr;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},itineraryFareRules:function(b,c){var a={};a.url=this.urls.itineraryFareRules;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},newViewChargebackMgmt:function(b,c){var a={};a.url=this.urls.newViewChargebackMgmt;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},loadConsolidatorList:function(b,c){var a={};a.url=this.urls.loadConsolidatorList;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},loadBranchList:function(b,c){var a={};a.url=this.urls.loadBranchList;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},loadAgencyList:function(b,c){var a={};a.url=this.urls.loadAgencyList+"?Consolidator="+b.consolidator+"&BranchName="+b.branchName;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},addComments:function(b,c){var a={};a.url=this.urls.addComments;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveItinerariesOnSession:function(b,c){var a={};a.url=this.urls.saveItineraries;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getItinerariesFromSession:function(c,b){var a={};a.url=this.urls.getItineraries+"/"+c;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getRequestItinerariesFromSession:function(b,c){var a={};a.url=this.urls.getRequestItineraries;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},verifySearchRequestKey:function(b,c){var a={};a.url=this.urls.verifySearchRequestKey;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},invoiceStatementSummary:function(b,c){var a={};a.url=this.urls.invoiceStatementSummary;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},invoiceStatementDetails:function(b,c){var a={};a.data=b;a.url=this.urls.invoiceStatementDetails;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},branchList:function(b,c){var a={};a.url=this.urls.branchList;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},customerList:function(b,c){var a={};a.data=b;a.url=this.urls.customerList;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},agressoTripproBalanceMismatchView:function(b,c){var a={};a.data=b;a.url=this.urls.agressoTripproBalanceMismatchView;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},agressoEmail:function(b,c){var a={};a.data=b;a.url=this.urls.agressoEmail;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},showVersionStatus:function(b,c){var a={};a.data=b;a.url=this.urls.showVersionStatus;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateCustomerStatement:function(b,c){var a={};a.data=b;a.url=this.urls.updateCustomerStatement;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},versionDetailsList:function(b,c){var a={};a.url=this.urls.versionDetailsList;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},printInvoicecPdf:function(b,c){var a={};a.data=b;a.url=this.urls.printInvoicecPdf;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},createPasswordByCode:function(b,c){var a={};a.url=this.urls.createPasswordByCode;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},excelDownload:function(b,c){var a={};a.data=b;a.url=this.urls.excelDownload;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.downloadExcelFile(a)},consolidatorsForFinancialReport:function(b,c){var a={};a.data=b;a.url=this.urls.consolidatorsForFinancialReport;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},customersForFinancialReport:function(b,c){var a={};a.data=b;a.url=this.urls.customersForFinancialReport;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},financeReport:function(b,c){var a={};a.data=b;a.url=this.urls.financeReport;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},tripproStatementFailureReportView:function(b,c){var a={};a.data=b;a.url=this.urls.tripproStatementFailureReportView;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},tripproBookingsReportData:function(b,c){var a={};a.data=b;a.url=this.urls.tripproBookingsReportData;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},tripproHotelBookingsReportData:function(b,c){var a={};a.data=b;a.url=this.urls.tripproHotelBookingsReportData;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},tripproItinerariDetails:function(b,c){var a={};a.data=b;a.url=this.urls.tripproItinerariDetails;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},userTypeList:function(b){var a={};a.url=this.urls.userTypeList+"/"+domain;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},viewCcvInfo:function(b,c){var a={};a.url=this.urls.viewCcvInfo;a.data=b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},ccvPnrInfo:function(b,c){var a={};a.url=this.urls.ccvPnrInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},allAgentsRefreshLatestVersion:function(b,c){var a={};a.url=this.urls.allAgentsRefreshLatestVersion;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},userTypeList:function(b){var a={};a.url=this.urls.userTypeList+"/"+domain;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},enableFinancialReport:function(b,c){var a={};a.url=this.urls.enableFinancialReport;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveMarketingImages:function(b,c){var a={};a.url=this.urls.saveMarketingImages;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},retirveMarketingImage:function(b,c){var a={};a.url=this.urls.retirveMarketingImage;a.data=b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},invoiceDisputeList:function(b,c){var a={};a.url=this.urls.invoiceDisputeList;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},disputeExcelDownload:function(b,c){var a={};a.data=b;a.url=this.urls.disputeExcelDownload;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateFinancialDetailReport:function(b,c){var a={};a.url=this.urls.updateFinancialDetailReport;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},ccvManualInfo:function(b,c){var a={};a.url=this.urls.ccvManualInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},activityReport:function(b,c){var a={};a.url=this.urls.activityReport+"/"+b.from+"/"+b.to+"/"+b.type;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},adminLogin:function(b,c){var a={};a.url=this.urls.adminLogin;a.data=b;a.callback=c;if(typeof deeplink!=="undefined"&&deeplink){a.async=false}a.headers=this.defaultHeaders;this.ajax(a)},saveWaiverFile:function(b,c){var a={};a.url=this.urls.saveWaiverFile;a.data=b;a.type=this.types.post;a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.json;a.processData=false;this.ajax(a)},scheduleChanges:function(b,c){var a={};a.url=this.urls.scheduleChanges;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},disputeTransaction:function(b,c){var a={};a.data=b;a.url=this.urls.disputeTransaction;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getSearchPromoList:function(b,c){var a={};a.url=this.urls.searchPromoList;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},loadMarkup:function(b,c){var a={};a.url=this.urls.loadMarkup;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},sendSearchItinEmail:function(b,c){var a={};a.url=this.urls.searchItineraryEmail+"/"+b.itinGuid+"/"+b.email+"/"+b.withFare+"/"+b.markup;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},saveMarkup:function(b,c){var a={};a.url=this.urls.saveMarkup;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},twitterRequestToken:function(b){var a={};a.url=this.urls.twitterRequestToken;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},twitterFriends:function(b,c){var a={};a.url=this.urls.twitterFriends+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},qcPnrList:function(b,c){var a={};a.url=this.urls.qcPnrList;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},optPnrList:function(b,c){var a={};a.url=this.urls.optPnrList;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},qcExceptions:function(b,c){var a={};a.url=this.urls.qcExceptions;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},saveQcExceptions:function(c,b,d){var a={};a.url=this.urls.qcExceptions+"/"+c;a.callback=d;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},loadCorporateAccountDetails:function(b){var a={};a.url=this.urls.loadCorporateAccountDetails;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},crmCases:function(b,c){var a={};a.url=this.urls.crmCases+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},importContacts:function(b,c){var a={};a.url=this.urls.importContacts;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},dialPadAppSettings:function(c,b,d){var a={};a.url=this.urls.appSettings+"/"+c+"/"+b;a.callback=d;a.async=false;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},assignPnr:function(b,c){var a={};a.url=this.urls.assignPnr;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},assignOptPnr:function(b,c){var a={};a.url=this.urls.assignOptPnr;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},sendEmailToQC:function(b,c){var a={};a.url=this.urls.sendEmailToQC;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},ticketImageDisplay:function(b,c){var a={};a.url=this.urls.ticketImageDisplay+"/"+b.pnr+"/"+b.eTicketNumbers+"/"+b.gdsId+"/"+b.ipcc+"/"+b.ticketImage;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},consolidatorList:function(b){var a={};a.url=this.urls.consolidatorList;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},microList:function(b,c){var a={};a.url=this.urls.microList;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},yahooRequestToken:function(b){var a={};a.url=this.urls.yahooRequestToken;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},yahooFriends:function(b,c){var a={};a.url=this.urls.yahooFriends+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},outlookRequestToken:function(b){var a={};a.url=this.urls.outlookRequestToken;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},outlookFriends:function(b,c){var a={};a.url=this.urls.outlookFriends+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},ccvComment:function(b,c){var a={};a.url=this.urls.ccvComment;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},resubmitForTicketing:function(b,c){var a={};a.url=this.urls.resubmitForTicketing;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},voidPnr:function(b,c){var a={};a.url=this.urls.voidPnr;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},itineraryInsuranceVO:function(b,c){var a={};a.url=this.urls.itineraryInsuranceVO+"/"+b.referenceNum;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},itineraryInsuranceVOEmailCall:function(b,c){var a={};a.url=this.urls.itineraryInsuranceVOEmailCall+"/"+b.referenceNum;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},purchaseTravelInsurance:function(b,c){var a={};a.url=this.urls.purchaseTravelInsurance;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},purchaseTravelInsuranceEmailCall:function(b,c){var a={};a.url=this.urls.purchaseTravelInsuranceEmailCall;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},cancelTravelInsurance:function(b,c){var a={};a.url=this.urls.cancelTravelInsurance;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},generateQCInvoicePdf:function(b,c){var a={};a.url=this.urls.generateQCInvoicePdf;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},qcSummaryList:function(b,c){var a={};a.url=this.urls.qcPnrList+b;a.callback=c;a.type=this.types.get;a.async=false;a.headers=this.defaultHeaders;this.ajax(a)},realtedPnrs:function(b,c){var a={};a.url=this.urls.realtedPnrs;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},mvtLiteInfo:function(b,c){var a={};a.url=this.urls.mvtLiteInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},mvtLite:function(b,c){var a={};a.url=this.urls.mvtLite;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},purchaseInsuranceWithNewCard:function(b,c){var a={};a.url=this.urls.purchaseInsuranceWithNewCard;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getCustEmailId:function(b,c){var a={};a.url=this.urls.getCustEmailId+"/"+b.Pnr;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateQCManualStatus:function(b,c){var a={};a.url=this.urls.updateQCManualStatus;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},generateQCMicroContractPdf:function(c,b){var a={};a.url=this.urls.generateQCMicroContractPdf+"?fileName="+c;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},quoteInuranceByReferenceNum:function(b,c){var a={};a.url=this.urls.quoteInuranceByReferenceNum;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},qcContractsByPNR:function(b,c){var a={};a.url=this.urls.qcContractsByPNR+"?pnr="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},appRequest:function(b,c){var a={};a.url=this.urls.appRequest;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getAllAppRequests:function(b){var a={};a.url=this.urls.appRequest;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},appApprove:function(b,c){var a={};a.url=this.urls.appApprove;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},sendViewItinEmail:function(b,c){var a={};a.url=this.urls.viewItinEmail;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},ccvRealtedPnrs:function(b,c){var a={};a.url=this.urls.ccvRealtedPnrs;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getPastBookings:function(b,c){var a={};a.url=this.urls.getPastBookings;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},sellItinerary:function(b,c){var a={};a.url=this.urls.sellItineraryUrl;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},escalationInfo:function(b,c){var a={};a.url=this.urls.escalationInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},addEscalationInfo:function(b,c){var a={};a.url=this.urls.addEscalationInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},currencyList:function(b){var a={};a.url=this.urls.currencyList;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},validateMobileNumber:function(b,c){var a={};a.url=this.urls.validateMobileNumber;a.callback=c;a.data=b;a.type=this.types.post;a.async=false;a.headers=this.defaultHeaders;this.ajax(a)},manageBookingStatus:function(b,c){var a={};a.url=this.urls.manageBookingStatus;a.data=b;a.callback=c;a.type=this.types.post;a.async=false;a.headers=this.defaultHeaders;this.ajax(a)},submitAppRating:function(b,c){var a={};a.url=this.urls.submitAppRating;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getAppRatingList:function(b,c){var a={};a.url=this.urls.appRatingList+"?appId="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getAppUserReviewList:function(b,c){var a={};a.url=this.urls.appUserReviewList+"?appId="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateMobileUserStatus:function(b,c){var a={};a.url=this.urls.updateMobileUserStatus;a.data=b;a.callback=c;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},saveEscalationsPnr:function(b,c){var a={};a.url=this.urls.saveEscalationsPnr;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveCustomerEnquiryInfo:function(b,c){var a={};a.url=this.urls.customerEnquiryInfo+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},appSettingsInfo:function(c,b,d){var a={};a.url=this.urls.appSettingsInfo+"/"+c+"/"+b;a.callback=d;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getPhoneExtensions:function(b){var a={};a.url=this.urls.phoneCountryExtensionInfo;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getCampaignType:function(b){var a={};a.url=this.urls.campaignType;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateCampaign:function(b,c){var a={};a.url=this.urls.updateCampaign;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},menuSettings:function(b,c,d){var a={};a.url=this.urls.menuStatus+"/"+b+"/"+c;a.callback=d;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateMenuStatus:function(b,c){var a={};a.url=this.urls.menuStatus;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},updateCampaignContacts:function(b,c){var a={};a.url=this.urls.updateCampaignContacts;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},resetPasswordInTrippro:function(b,c){var a={};a.url=this.urls.resetPasswordInTrippro+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},resetPasswordByCode:function(b,c){var a={};a.url=this.urls.resetPasswordByCode;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getBookingFailureInfo:function(b,c){var a={};a.url=this.urls.bookingFailureInfo+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},escalationDetails:function(b,c){var a={};a.url=this.urls.escalationDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateFeefoPNRDetails:function(b,c){var a={};a.url=this.urls.updateFeefoPNRDetails;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},startCampaign:function(b,c){var a={};a.url=this.urls.startCampaign+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},copyCampaign:function(a,c){var b={};b.url=this.urls.copyCampaign+"?campaignId="+a;b.callback=c;b.type=this.types.get;b.headers=this.defaultHeaders;this.ajax(b)},listApps:function(b){var a={};a.url=this.urls.listApps;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},listAppSettings:function(b,c){var a={};a.url=this.urls.listAppSettings+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},saveAppDefaultSettings:function(b,c){var a={};a.url=this.urls.saveAppDefaultSettings;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getAppCategoryTypes:function(b){var a={};a.url=this.urls.appCategoryTypes;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getAppTypes:function(b){var a={};a.url=this.urls.appTypes;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},saveUpdateApps:function(b,c){var a={};a.url=this.urls.saveUpdateApps;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveAppMenuSettings:function(b,c){var a={};a.url=this.urls.saveAppMenuSettings;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},listAppMenus:function(b,c){var a={};a.url=this.urls.listAppMenus+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},campaignCount:function(a,c){var b={};b.url=this.urls.campaignCount+"?campaignId="+a;b.callback=c;b.type=this.types.get;b.headers=this.defaultHeaders;this.ajax(b)},campaignOpenCountByDates:function(b,c){var a={};a.url=this.urls.campaignOpenCountByDates;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},supportConsoleOnlineData:function(b){var a={};a.url=this.urls.supportConsoleOnlineData+"/1/100";a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},supportConsoleOfflineData:function(a,c){var b={};b.url=this.urls.supportConsoleOfflineData+"/"+a+"/1/100";b.callback=c;b.type=this.types.get;b.headers=this.defaultHeaders;this.ajax(b)},getUserInfo:function(b,c){var a={};a.url=this.urls.getUserInfo+"?email="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateUserInfo:function(b,c){var a={};a.url=this.urls.updateUserInfo;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},uploadContactsList:function(b,c){var a={};a.url=this.urls.uploadContactsList;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.uploadFile(a)},getAgencies:function(b,c){var a={};a.url=this.urls.getAgencies+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;return this.ajax(a)},getAgencyList:function(b,c){var a={};a.url=this.urls.getAgencyList+"/"+b.userId+"/"+b.enteredVal;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateRedisData:function(b,c){var a={};a.url=this.urls.updateRedisData+"/"+b.type+"/"+b.userId+"/"+b.appId;a.callback=c;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},updateAnalyticsStatus:function(b,d){var a={};try{a.url=this.urls.updateAnalyticsStatus;a.callback=d;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)}catch(c){}},getHotelBookingDetails:function(b,c){var a={};a.url=this.urls.getHotelBookingDetails+"/"+b.RefNo;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},resendHotelItineraryEmail:function(b,c){var a={};a.url=this.urls.resendHotelItineraryEmail;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},cancelHotelRooms:function(b,c){var a={};a.url=this.urls.cancelHotelRooms;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},viewCbReport:function(b,c){var a={};a.url=this.urls.viewCbReport;a.data=b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},syncAppSettings:function(b,c){var a={};a.url=this.urls.syncAppSettings;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},tripproEmailVerification:function(b,c){var a={};a.url=this.urls.tpEmailVerification+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},tripproUserEmailVerification:function(b,c){var a={};a.url=this.urls.tpUserEmailVerification+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},appSettingsMultiSelectList:function(b,c){var a={};a.url=this.urls.appSettingsMultiSelectList;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},uploadCbFiles:function(b,c){var a={};a.url=this.urls.uploadCbFiles;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.uploadFile(a)},uploadUserList:function(b,c){var a={};a.url=this.urls.uploadUserList;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.uploadFile(a)},customerIDSignUp:function(b,c){var a={};a.url=this.urls.customerIDSignUp+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},linkAgentWithExistUser:function(b,c){var a={};a.url=this.urls.linkAgentWithExistUser+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},appLibraryList:function(b){var a={};a.url=this.urls.appLibraryList;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},linkAgentToTrippro:function(b,c){var a={};a.url=this.urls.linkAgentToTrippro+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},deleteCbRecord:function(b,c){var a={};a.url=this.urls.deleteCbRecord;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},reSendEmailVerification:function(b,c){var a={};a.url=this.urls.resendEmailVerification;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateInvoiceMasterDataObject:function(b,c){var a={};a.url=this.urls.updateInvoiceMasterDataObject;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},forgotDKNumberNotification:function(b,c){var a={};a.url=this.urls.forgotDKNumber+"/"+b;a.data=b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},cbexcelDownload:function(b,c){var a={};a.data=b;a.url=this.urls.cbexcelDownload;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.downloadExcelFile(a)},viewCcvReport:function(b,c){var a={};a.url=this.urls.viewCcvReport;a.data=b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},ccdInfo:function(b,c){var a={};a.url=this.urls.ccdInfo;a.data=b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},ccdComment:function(b,c){var a={};a.url=this.urls.ccdComment;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},ccdManualInfo:function(b,c){var a={};a.url=this.urls.ccdManualInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},ccdPnrInfo:function(b,c){var a={};a.url=this.urls.ccdPnrInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},ccdRealtedPnrs:function(b,c){var a={};a.url=this.urls.ccdRealtedPnrs;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},ccdMail:function(b,c){var a={};a.url=this.urls.ccdMail;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},viewPnrHistoryReport:function(b,c){var a={};a.url=this.urls.viewPnrHistoryReport;a.data=b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},appModelList:function(b){var a={};a.url=this.urls.appModelList;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},saveUpdateModels:function(b,c){var a={};a.url=this.urls.saveUpdateModels;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},listModelDefaultApps:function(c,b){var a={};a.url=this.urls.listModelDefaultApps+"/"+c;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},listUnMappedModelApps:function(c,b){var a={};a.url=this.urls.listUnMappedModelApps+"/"+c;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},saveUpdateModelDefaultApps:function(b,c){var a={};a.url=this.urls.saveUpdateModelDefaultApps;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveCustomerCase:function(b,c){var a={};a.url=this.urls.saveCustomerCase;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveCaseRemark:function(b,c){var a={};a.url=this.urls.saveCaseRemark;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},caseImagesRemarkslist:function(a,c){var b={};b.url=this.urls.caseImagesRemarkslist+"/"+a;b.callback=c;b.type=this.types.get;b.headers=this.defaultHeaders;this.ajax(b)},caseAssign:function(b,c){var a={};a.url=this.urls.caseAssign+"/"+b.caseId+"/"+b.user;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateOPT:function(b,c){var a={};a.url=this.urls.updateOPT;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},creatCCVCase:function(b,c){var a={};a.url=this.urls.creatCCVCase;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},creatCCDCase:function(b,c){var a={};a.url=this.urls.creatCCDCase;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},updateOptTickets:function(b,c){var a={};a.url=this.urls.updateOptTickets;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},enableStatementView:function(b,c){var a={};a.data=b;a.url=this.urls.enableStatementView;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateEnableStatementStatus:function(b,c){var a={};a.data=b;a.url=this.urls.updateEnableStatementStatus;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},bookingMetrics:function(b,c){var a={};a.url=this.urls.bookingMetricsUrl+"/"+b.itinid+"/"+b.time+"/"+b.typeoftrip;a.callback=c;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},uploadMarkupList:function(b,c){var a={};a.url=this.urls.uploadMarkupList;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.uploadFile(a)},consolidatorInfo:function(b,c){var a={};a.data=b;a.url=this.urls.consolidatorInfo;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},markupAgentInfo:function(b,c){var a={};a.data=b;a.url=this.urls.markupAgentInfo;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},ccvPnrBookingInfo:function(b,c){var a={};a.url=this.urls.ccvPnrBookingInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},ccvFlightInfo:function(b,c){var a={};a.url=this.urls.ccvFlightInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveOptPnrStatus:function(b,c){var a={};a.url=this.urls.saveOptPnrStatus;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateEmailResendVerification:function(b,c){var a={};a.url=this.urls.updateEmailResendVerification;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveUpdateModelSettings:function(b,c){var a={};a.url=this.urls.saveUpdateModelSettings;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},listModelSettings:function(c,b){var a={};a.url=this.urls.listModelSettings+"/"+c;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},listModelUnMappedSettings:function(c,b){var a={};a.url=this.urls.listModelUnMappedSettings+"/"+c;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},sendEmailForCCAlert:function(b,c){var a={};a.url=this.urls.sendEmailForCCAlert;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},paymentCCValidator:function(b,c){var a={};a.url=this.urls.paymentCCValidator+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},modifyUserType:function(b,c){var a={};a.url=this.urls.modifyUserType;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},appsByUser:function(b,c){var a={};a.url=this.urls.appsByUser+"/"+b.UserId1+"/"+b.UserId2;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateItinStatusAndSendEmail:function(b,c){var a={};a.url=this.urls.updateItinStatusAndSendEmail;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},removeCampaignContacts:function(b,c){var a={};a.url=this.urls.removeCampaignContacts+"?campaignDetailsIds="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},agencyList:function(b,c){var a={};a.url=this.urls.agencyList+"/"+b.AgencyData+"?id="+b.ConsolidatorId;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},accountTypeInfo:function(b,c){var a={};a.url=this.urls.accountTypeInfo+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},saveCarouselAgentInfo:function(b,c){var a={};a.url=this.urls.saveCarouselAgentInfo;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},saveCarouselAdditionalInfo:function(b,c){var a={};a.url=this.urls.saveCarouselAdditionalInfo;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},agentApproval:function(b,c){var a={};a.url=this.urls.agentApproval+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},reSendAgenyApprovalRequest:function(b,c){var a={};a.url=this.urls.reSendAgenyApprovalRequest;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},sitesByAccount:function(b,c){var a={};a.url=this.urls.listSites;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getTemplateThemeMap:function(b,c){var a={};a.url=this.urls.templateThemeMap;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},saveSiteInfo:function(b,c){var a={};a.url=this.urls.saveSiteInfo;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getSiteThemes:function(b,c){var a={};a.url=this.urls.getSiteThemes;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getSiteTemplates:function(b,c){var a={};a.url=this.urls.getSiteTemplates;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},publishSite:function(b,c){var a={};a.url=this.urls.publishSite;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getSiteBySubomain:function(b,c){var a={};a.url=this.urls.getSiteBySubomain+""+b.subdomain;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getPagesBySiteId:function(b,c){var a={};a.url=this.urls.getPagesBySiteId+""+b.siteId;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getPrivacyBySiteId:function(b,c){var a={};a.url=this.urls.getPrivacyBySiteId+"/"+b.siteId;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getSitePage:function(b,c){var a={};a.url=this.urls.getSitePage+""+b.siteId+"/"+b.page;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getSitePageWithSiteTheme:function(b,c){var a={};a.url=this.urls.getSitePageWithSiteTheme+""+b.siteId+"/"+b.page;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},marketingSettings:function(b,c){var a={};a.url=this.urls.marketingSettings+b.userId+"/"+b.appId;a.type=this.types.get;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},resendSupportEmailVerification:function(b,c){var a={};a.url=this.urls.resendSupportEmailVerification;a.type=this.types.post;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},faqInfo:function(b){var a={};a.url=this.urls.faqInfo;a.type=this.types.get;a.callback=b;a.headers=this.defaultHeaders;this.ajax(a)},getPubFare:function(b,c){var a={};a.url=this.urls.pubFare+"/"+b.flightId+"/"+b.workArea+"/"+b.sessionId;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},viewSupportReconciliationInfo:function(b,c){var a={};a.url=this.urls.viewSupportReconciliationInfo;a.data=b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getSupportReconciliationCRMInfo:function(b,c){var a={};a.url=this.urls.getSupportReconciliationCRMInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},validateUserWithApp:function(b,c){var a={};a.url=this.urls.validateUserWithApp+b;a.callback=c;a.async=true;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},saveSupportReconciliationStatusDetails:function(b,c){var a={};a.url=this.urls.saveSupportReconciliationStatusDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getSupportReconciliationRemarksHistory:function(b,c){var a={};a.url=this.urls.getSupportReconciliationRemarksHistory;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},sendSupportReconciliationEmail:function(b,c){var a={};a.url=this.urls.sendSupportReconciliationEmail;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},refundManagementSystemInfo:function(b,c){var a={};a.url=this.urls.refundManagementSystemInfo;a.data=b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},sendRefundMgmtMail:function(b,c){var a={};a.url=this.urls.sendRefundMgmtMail;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveRefundStatusDetails:function(b,c){var a={};a.url=this.urls.saveRefundStatusDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getRefundManagementSystemHistory:function(b,c){var a={};a.url=this.urls.getRefundManagementSystemHistory;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},migrateUser:function(b,c){var a={};a.url=this.urls.migrateUser;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},createSupportTicket:function(b,c){var a={};a.url=this.urls.createSupportTicket;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},dynamicPricingMarkupSummary:function(b,c){var a={};a.url=this.urls.dynamicPricingMarkupSummary;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;a.async=false;this.ajax(a)},dynamicPricingFareMarkupRules:function(b,c){var a={};a.url=this.urls.dynamicPricingFareMarkupRules;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;a.async=false;this.ajax(a)},dynamicPricingMarkupDetail:function(b,c){var a={};a.url=this.urls.dynamicPricingMarkupDetail;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},viewDealCreationInfo:function(b,c){var a={};a.url=this.urls.viewDealCreationInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},mondeeCustomerMigrate:function(b,c){var a={};a.url=this.urls.mondeeCustomerMigrate;a.data=b;a.callback=c;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},checkSiteAlreadyExists:function(b,c){var a={};a.url=this.urls.checkSiteAlreadyExists;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},editDealManagementDealsInfo:function(b,c){var a={};a.url=this.urls.editDealManagementDealsInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},deleteDealManagementDealsInfo:function(b,c){var a={};a.url=this.urls.deleteDealManagementDealsInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateDealManagementDealsInfo:function(b,c){var a={};a.url=this.urls.updateDealManagementDealsInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},viewDealPredictorInfo:function(b,c){var a={};a.url=this.urls.viewDealPredictorInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},viewDealMonitorInfo:function(b,c){var a={};a.url=this.urls.viewDealMonitorInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},viewDealsDashBoardInfo:function(b){var a={};a.url=this.urls.viewDealsDashBoardInfo;a.callback=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveDealMonitorInfo:function(b,c){var a={};a.url=this.urls.saveDealMonitorInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},migrateAgents:function(b,c){var a={};a.url=this.urls.migrateAgents;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getPublishDeal:function(b,c){var a={};a.url=this.urls.getPublishDeal+b+"?currentDateTime"+new Date().getTime();a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getAgents:function(b,c){var a={};a.url=this.urls.getAgents+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;return this.ajax(a)},shareTripToUsers:function(c,d){c.Domain="TripPro";var b=window.location.href;if(b.indexOf("tripplanet")>-1){c.Domain="Tripplanet"}var a={};a.url=this.urls.shareTripToUsers;a.callback=d;a.data=c;a.type=this.types.post;a.headers=this.defaultHeaders;return this.ajax(a)},getDeals:function(b,c){var a={};a.url=this.urls.getDeals+b+"?currentDateTime"+new Date().getTime();a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},agencyListByEmail:function(b,c){var a={};a.url=this.urls.agencyListByEmail+"/"+b.AgencyData+"?id="+b.ConsolidatorId;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;return this.ajax(a)},getTripDetailsByValidatorCode:function(b,c){var a={};a.url=this.urls.getTripDetailsByValidatorCode+"/"+b;a.callback=c;a.type=this.types.get;a.async=true;a.headers=this.defaultHeaders;return this.ajax(a)},shareTripToUsersByPhone:function(b,c){var a={};a.url=this.urls.shareTripToUsersByPhone;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;return this.ajax(a)},getTripTravelerList:function(b,c){var a={};a.url=this.urls.getTripTravelerList+"/"+b;a.callback=c;a.type=this.types.get;a.async=true;a.headers=this.defaultHeaders;return this.ajax(a)},addTraveler:function(b,c){var a={};a.url=this.urls.addTraveler;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;return this.ajax(a)},getTripTravelersCount:function(b,c){var a={};a.url=this.urls.getTripTravelersCount+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;return this.ajax(a)},removeTravelerFromTrip:function(b,c){var a={};a.url=this.urls.removeTravelerFromTrip+"/"+b.tripId+"/"+b.travelerId;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;return this.ajax(a)},getTravelerListToAdd:function(b,c){var a={};a.url=this.urls.getTravelerListToAdd+"/"+b.tripId+"/"+b.searchText;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;return this.ajax(a)},addTravelersToTrip:function(b,c){var a={};a.url=this.urls.addTravelersToTrip;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;return this.ajax(a)},invoicesList:function(b,c){var a={};a.url=this.urls.invoicesList;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},paymentSummaryDetails:function(b,c){var a={};a.url=this.urls.paymentSummaryDetails;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},paymentReportDetails:function(b,c){var a={};a.url=this.urls.paymentReportDetails;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateUserStatusFromUM:function(b,c){var a={};a.url=this.urls.updateUserStatusFromUM;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;return this.ajax(a)},getStrikedPubFare:function(b,d){var a={};try{a.url=this.urls.getStrikedPubFare+"/"+b.itinId+"/"+b.reqKey;a.callback=d;a.type=this.types.get;a.headers=this.defaultHeaders;return this.ajax(a)}catch(c){}},saveRedAppCommandLogs:function(b,c){var a={};a.url=this.urls.saveRedAppCommandLogs;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateInvoicesCustomerRemarks:function(b,c){var a={};a.url=this.urls.updateInvoicesCustomerRemarks;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},bookWithoutCCVerification:function(b,c){var a={};a.url=this.urls.bookWithoutCCVerification;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},logCCVerification:function(b,c){var a={};a.url=this.urls.logCCVerification;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},incontactInfo:function(b,c){var a={};a.url=this.urls.incontactInfo+b.userId+"/"+b.cstNumber;a.type=this.types.get;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getUserAppModelsInfo:function(b,c){var a={};a.url=this.urls.appModelsInfo+"/"+b;a.type=this.types.get;a.async=false;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},updateUserModel:function(c,b,d){var a={};a.url=this.urls.updateUserModel+"/"+b;a.callback=d;a.data=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveQuoteInfo:function(b,c){var a={};a.url=this.urls.saveQuoteInfo;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},etUpdationOfProfile:function(b,c){var a={};a.data=b;a.url=this.urls.etUpdationOfProfile;a.callback=c;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},getAgentDisposition:function(b,c){var a={};a.url=this.urls.agentDisposition;a.type=this.types.get;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},saveAgentDisposition:function(b,c){var a={};a.url=this.urls.saveAgentDisposition;a.type=this.types.get;a.data={disposition:JSON.stringify(b)};a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.text;a.dataType="";this.ajax(a)},getAlternateItineraries:function(b,c){var a={};a.url=this.urls.getAlternateItineraries+"/"+b.itinGuid;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getAlternateItineraryByKey:function(b,c){var a={};a.url=this.urls.getAlternateItineraryByKey+"/"+b.itinGuid;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},savePpcTrafficTfn:function(b,c){var a={};a.url=this.urls.ppcTrafficTfn;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveItinUIRenderStatus:function(c,a,d,e){var b={};b.url=this.urls.saveItinUIRenderStatus+"/"+(c?c:null)+"/"+(a?a:2);b.callback=e;b.type=this.types.put;b.headers=this.defaultHeaders;b.async=d;this.ajax(b)},saveCallOnFare:function(b,c){var a={};a.url=this.urls.saveCallOnFare;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getBaggageInfo:function(b,c){var a={};a.url=this.urls.getBaggageInfo;a.type=this.types.post;a.data=b;a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.text;a.dataType="";a.async=false;this.ajax(a)},getKiwiBaggageInfo:function(b,c){var a={};a.url=this.urls.getKiwiBaggageInfo;a.type=this.types.post;a.data=b;a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.text;a.dataType="";a.async=false;this.ajax(a)},newSearchFlights:function(b,c){var a={};a.url=this.urls.newSearchFlights;b=this.selectedAgencyInterceptor(b);a.data=b;a.callback=c;this.defaultHeaders.searchAccessToken="FSWEBTOKEN";if(typeof accountId!="undefined"&&accountId){if(accountId=="38907"){this.defaultHeaders.searchAccessToken="TRAVELFUSION"}else{if(accountId=="39226"){this.defaultHeaders.searchAccessToken="FSFAREALERT"}else{if(accountId=="39227"){this.defaultHeaders.searchAccessToken="FSNEWSLETTER"}else{if(accountId=="39305"||accountId=="39306"){this.defaultHeaders.searchAccessToken="FSADS"}}}}}this.defaultHeaders["m-ipAddress"]="1.1.1.1";a.headers=this.defaultHeaders;this.ajax(a)},getAncillaryDetailsByType:function(b,c){var a={};b.consolidatorId=9151;a.url=this.urls.getAncillaryDetailsByType;a.data=b;a.callback=c;a.type=this.types.post;if(typeof deeplink!=="undefined"&&deeplink){a.async=false}this.ajax(a)},ajax:function(d){var c=this;var f={processData:true,type:this.types.post,async:true,contentType:this.defaultMimeType,dataType:this.dataTypes.json};var g="";var a=0;var e=$.extend(true,{},f,d);if(typeof contextPath!="undefined"){e.url=contextPath+"/"+e.url}else{e.url="../"+e.url}c.extAppURLChange(e);if(e.dataType=="json"){e.data=JSON.stringify(e.data)}if(e.loaderContainer){$(e.loaderContainer).nimbleLoader("show")}var b={url:e.url,processData:e.processData,type:e.type,data:e.data,async:e.async,contentType:e.contentType,headers:e.headers,success:function(h){if(e.loaderContainer){$(e.loaderContainer).nimbleLoader("hide")}if($.isFunction(e.callback)){if(e.url.indexOf("login")>0){if(e.data.indexOf("Source")>0){c.loginInterceptor(h)}}e.callback(h,true)}},failure:function(h){if(e.loaderContainer){$(e.loaderContainer).nimbleLoader("hide")}if($.isFunction(e.callback)){e.callback(h,false)}},error:function(j,h,i){if(e.loaderContainer){$(e.loaderContainer).nimbleLoader("hide")}if($.isFunction(e.callback)){e.callback(j,h,i)}}};if(e.contentType){b.contentType=e.contentType}if(e.dataType){b.dataType=e.dataType}return $.ajax($.extend(true,{},b))},configureObj:function(a){},downloadExcelFile:function(a){xhttp=new XMLHttpRequest();xhttp.onreadystatechange=function(){var b;var c="DownloadStatement.xls";var f=xhttp.getResponseHeader("Content-Disposition");if(f&&f.indexOf("attachment")!==-1){var e=/filename[^;=\n]*=(([""]).*?\2|[^;\n]*)/;var d=e.exec(f);if(d!=null&&d[1]){c=d[1].replace(/[""]/g,"")}}if(xhttp.readyState===4&&xhttp.status===200){b=document.createElement("a");b.href=window.URL.createObjectURL(xhttp.response);b.download=c;b.style.display="none";document.body.appendChild(b);b.click()}};xhttp.open("POST",a.url);xhttp.setRequestHeader("Content-Type",this.defaultMimeType);xhttp.setRequestHeader("AccessToken_"+whitelabel,a.headers.AccessToken);xhttp.setRequestHeader("DeviceUUID",a.headers.DeviceUUID);xhttp.responseType="blob";xhttp.send(JSON.stringify(a.data))},loginInterceptor:function(a){this.defaultHeaders.AccessToken=a.AccessToken;Fly.LocalStorageManager.addItem(Fly.Globals.LocalStorageKeys.BE_URL,a.ProfilePicUrl);Fly.LocalStorageManager.addItem("AccessToken_"+whitelabel,a.AccessToken)},selectedAgencyInterceptor:function(b){try{if(typeof appSettingJson!="undefined"&&appSettingJson&&appSettingJson.ENABLE_AGENCIES_DROPDOWN=="true"){var a=Fly.LocalStorageManager.getJsonItem("SELECTED_AGENCY_INFO_"+whitelabel);if(a&&a.userId){b.SupportUserSelectedCorpAccId=a.userTypeAdminId;b.SuppUserSelectedUserId=a.userId;b.SuppUserSelectedMobileUserId=a.mobileUserGuid;b.SuppUserSelectdUserConsoId=a.consolidatorId;b.SuppUserSelectdUserDkNumber=a.dkNumber;b.SuppUserSlctdUserAcntType=a.userAccountType;this.defaultHeaders.AdminUser=Fly.Common.getLoginUserInfo("Email");if(Fly.Common.getAppHeaders("adminUser")){this.defaultHeaders.AdminUser+=","+Fly.Common.getAppHeaders("adminUser")}}}}catch(c){console.log("Selected Interceptor::"+c)}return b},selectedAgencyInterceptorBookFlight:function(b){try{if(typeof appSettingJson!="undefined"&&appSettingJson&&appSettingJson.ENABLE_AGENCIES_DROPDOWN=="true"){var a=Fly.LocalStorageManager.getJsonItem("SELECTED_AGENCY_INFO_"+whitelabel);if(a&&a.userId){b.SupportUserSelectedCorpAccId=a.userTypeAdminId;b.SuppUserSelectedUserId=a.userId;b.SuppUserSelectedMobileUserId=a.mobileUserGuid;b.SuppUserSelectdUserConsoId=a.consolidatorId;b.SuppUserSelectdUserDkNumber=a.dkNumber;b.SuppUserSlctdUserAcntType=a.userAccountType;b.suppUserSelectdEmailId=a.emailId;this.defaultHeaders.AdminUser=Fly.Common.getLoginUserInfo("Email");if(Fly.Common.getAppHeaders("adminUser")){this.defaultHeaders.AdminUser+=","+Fly.Common.getAppHeaders("adminUser")}}}}catch(c){console.log("Selected Interceptor :: "+c)}return b},uploadFile:function(b){var a=this;$.ajax({url:b.url,type:this.types.post,data:b.data,headers:b.headers,async:false,success:function(c){if($.isFunction(b.callback)){if(b.url.indexOf("login")>0){if(b.data.indexOf("Source")>0){a.loginInterceptor(c)}}b.callback(c,true)}},failure:function(c){if($.isFunction(b.callback)){b.callback(c,false)}},error:function(e,c,d){if($.isFunction(b.callback)){b.callback(e,c,d)}},cache:false,contentType:false,processData:false});return false},extAppURLChange:function(a){try{if(a.data&&typeof a.data.ShiftCommand!="undefined"&&a.data.ShiftCommand!="shift-5"&&a.data.ExtApp!=null&&a.data.ExtApp!=""&&typeof a.data.ExtApp!="undefined"&&(a.data.ExtApp=="Desktop"||a.data.ExtApp=="RedApp"||a.data.ExtApp=="Amadeus")){if(!(a.url.indexOf(this.urls.sellItineraryUrl)>=0)){a.url="../../../../../../../../../../../"+a.url;a.headers.AccessToken=a.data.AccessToken;a.headers.AppId=a.data.AppId;delete a.data.AccessToken;delete a.data.AppId;delete a.data.loadFromCassandra;delete a.data.resultsKey;delete a.data.selectedItinGuid}}}catch(b){console.log("extAppURLChange::"+b)}}});Fly.define("core.ajax.MultiAppAPI",{singleton:true,instance:"auto",alias:"MultiAppAPI",baseUrl:"./resource",constructor:function(){try{var a=Fly.LocalStorageManager.getItem("AccessToken_"+whitelabel);if(a){this.defaultHeaders.AccessToken=a}else{var a=Fly.LocalStorageManager.getItem("AccessToken");Fly.LocalStorageManager.addItem("AccessToken_"+whitelabel,a);Fly.LocalStorageManager.removeItem("AccessToken",a);this.defaultHeaders.AccessToken=a}}catch(b){}},urls:{syncContextData:"resources/v1/Context/syncData",login:"multiAPI/v2/User/login",travelers:"multiAPI/v2/Aviator/Customers/list",logger:"resources/v1.1/UILogger/log",profilePicUrl:"http://be.flyex.com/resources/v2/User/ProfilePic",bookings:"multiAPI/v2/Aviator/myBookings",searchFlights:"multiAPI/v2/Flights/search",flightsRead:"multiAPI/v2/Flights/read",extremeSearch:"multiAPI/v2/Flights/extremeSearch",searchHotels:"multiAPI/v2/Hotels/search",airportsapi:"multiAPI/v2/Utility/airports",airports:"resources/v1/Context/locations",hotelsLocations:"resources/v1/Context/hotelLocation",getMessage:"multiAPI/v2/Flights/itinerary",createTraveller:"multiAPI/v2/User/signUp",etUserProfile:"multiAPI/v2/User",bookFlight:"multiAPI/v2/Flights/bookItinerary",countrystate:"multiAPI/v2/Utility/stateCountryVOs",etBookings:"multiAPI/v2/Flights/etReadPnr",etProfileUpdate:"multiAPI/v2/User/etUpdateProfile",travelInsuranceQuote:"multiAPI/v2/Utility/quoteInsurance",totSettings:"resources/v1/Context/totSettings",landing:"multiAPI/SeoResource/fetchDeals",fareAlertURL:"multiAPI/CustomerTracking/fareAlertSubscription",instantSearch:"multiAPI/v2/Flights/instantSearch",saveBillInfoImg:"resources/BookingImg/saveBillInfoImg",saveBillConfimImg:"resources/BookingImg/saveBillConfirmImg",traceSeoDataURL:"multiAPI/SeoResource/logSeoTrack",incremental:"multiAPI/v2/Flights/incrementalSearch",promoCodeURL:"multiAPI/v2/Offers/offerCodeApply",couponCodeURL:"multiAPI/v2/Offers/applyCoupon",manageBookings:"multiAPI/v2/ManageBooking/itinearies",managePnrInfo:"multiAPI/v2/ManageBooking/managePnrInfo",updateCCDetails:"multiAPI/v2/ManageBooking/updateCCDetails",generatePdf:"multiAPI/v2/ManageBooking/generatePdf",trackSeoBookingStatusURL:"multiAPI/SeoResource/trackSeoBookingStatus",saveFlightResultsURL:"resources/v1/Context/saveFlightResults",getFlightResultsURL:"resources/v1/Context/getFlightResults",secure3dAuthReq:"multiAPI/v1/secure3d/authreq",secure3dAuthResp:"multiAPI/v1/secure3d/authres",dashboardDataURL:"multiAPI/v2/Aviator/dashboard/agentEarnings",aviatorBookingsURL:"multiAPI/v2/Aviator/myBookings",aviatorCustomerDataURL:"multiAPI/v2/Aviator/Customers/list",travelerActivitiesURL:"multiAPI/v2/Aviator/travellersActivities",trackMetaCampaignStatusURL:"multiAPI/SeoResource/trackMetaCampaignStatus",updateRakutenConversionTag:"multiAPI/v2/Utility/updateAffiliateMarketTracking",isLegitimateCustomer:"multiAPI/v2/User/isLegitimate",userPreferences:"multiAPI/v2/User/preferences",changeUserPasswordURL:"multiAPI/v2/User/changePassword",topActivities:"multiAPI/v2/User/topActivities/",logout:"multiAPI/v2/User/signout",trackStatusURL:"multiAPI/v2/Analytics/track",shareItineraryURL:"multiAPI/v2/Aviator/share/messengerData",aviatorNotificationsURL:"multiAPI/v2/Aviator/AgentNotification",monthlySalesChatURL:"multiAPI/v2/Utility/MonthlyReport",createAgent:"multiAPI/v2/User/signUp",forgetPasswordByAgent:"multiAPI/v2/User/forgotPasswordByAgent",updatePasswordByCode:"multiAPI/v2/User/updatePasswordByCode",appCenterList:"multiAPI/v2/Apps/list/new",appCenterInstallList:"multiAPI/v2/Apps/list/installed",appInstall:"multiAPI/v2/Apps/install",appUninstall:"multiAPI/v2/Apps/uninstall",commandRequest:"multiAPI/v2/GDS/commands",menuData:"multiAPI/v2/Menu/list",appIcon:"multiAPI/v2/Apps/icon",agentInfoList:"multiAPI/v2/User/agentInfoList",profilePaymentMethod:"multiAPI/v2/Agency/paymentMethod",profileAchInfo:"multiAPI/v2/Agency/achInfo",profilePaymentPrimaryStatus:"multiAPI/v2/Agency/paymentMethod/primary",profileACHPrimaryStatus:"multiAPI/v2/Agency/achInfo/default",profilePaymentHistory:"multiAPI/v2/Agency/paymentHistory",profilePic:"multiAPI/v2/User/ProfilePic",cropedPic:"multiAPI/v2/User/CropImage",i18NData:"resources/v1/Context/i18NData",monthlyActivityChat:"multiAPI/v2/Utility/MonthlyReport",tpDashboardRevenue:"multiAPI/v2/TpAgent/DashboardSummary",tpBookingInfo:"multiAPI/v2/TpAgent/BookingsInfo",parseCommand:"multiAPI/v2/GDS/parseCommands",getBookingFailureDetails:"multiAPI/bookingLead/failureInfo",failureStatusUpdate:"multiAPI/bookingLead/failureStatus",bookingFailureInfo:"multiAPI/bookingLead/failureInfo/",userAllApps:"multiAPI/v2/Apps/list/UserAllApps",addAppsToUser:"multiAPI/v2/Apps/list/installSelectedApps",shiftCommand:"multiAPI/v2/GDS/shift5",landingPCC:"multiAPI/v2/GDS/landingPccs",contactsList:"multiAPI/v2/Contacts/list",updateContactsList:"multiAPI/v2/Contacts/UploadContactsList",inviteAgent:"multiAPI/v2/User/inviteUser",checkUserInvitation:"multiAPI/v2/User/checkUserInvitation",updateUserInvitation:"multiAPI/v2/User/updateUserInvitation",commissionReport:"multiAPI/v2/Commission/reportData",validateUserByEmail:"multiAPI/v2/User/validateUserByEmail",validateUserByMobileNumber:"multiAPI/v2/User/validateUserByMobileNumber",bookingsSearch:"multiAPI/bookingOperations/PnrCheck",updateContactsDetails:"multiAPI/v2/Contacts/update",landingPCCSessionRelease:"multiAPI/v2/GDS/landingPccs/releaseSession",viewItinerary:"multiAPI/v2/Operations/Pnr/viewItinerary",saveChargebackMgmt:"multiAPI/v2/DebitMemo/info",viewChargebackMgmt:"multiAPI/v2/DebitMemo/queue",validateContactsByEmail:"multiAPI/v2/Contacts/validateByEmail",sendMailToContacts:"multiAPI/v2/Contacts/sendMail",invoiceMasterDataReport:"multiAPI/v2/Reports/InvoiceMaster/Data",generateInvoiceMasterDataPdf:"multiAPI/v2/Reports/InvoiceMaster/Pdf",consolidatorAgencyList:"multiAPI/v2/Utility/ConsolidatorAgency/list",consolidators:"multiAPI/v2/Utility/Consolidators",branchNames:"multiAPI/v2/Utility/BranchNames",reasonCodes:"multiAPI/v2/Utility/ReasonCodes",voidedPnrDetails:"multiAPI/v2/Reports/VoidedPnr/Details",updateInvoiceMasterData:"multiAPI/v2/Reports/InvoiceMaster/Data",getInvoiceMasterDataObjectToUpdate:"multiAPI/v2/Reports/InvoiceMaster/DataToUpdate",emailInvoiceMasterDataPdf:"multiAPI/v2/Reports/InvoiceMaster/EmailPDF",pnrComments:"multiAPI/bookingOperations/viewComments",updateComments:"multiAPI/bookingOperations/updateComments",ccDetails:"multiAPI/bookingOperations/ccDetails",cbTicketInfo:"multiAPI/v2/DebitMemo/ticketInfoDetails",appSettings:"multiAPI/v2/Apps/appSettings",getSystemComments:"multiAPI/v2/Operations/Pnr/getSystemComments",showPnrFullHistory:"multiAPI/v2/Operations/Pnr/showPnrFullHistory",getEmailHistory:"multiAPI/v2/Operations/Pnr/getEmailHistory/",saveContactInfo:"multiAPI/v2/Operations/Pnr/saveContactInfo",externalMotDetails:"multiAPI/v2/Operations/Pnr/read",viewItinEmail:"multiAPI/v2/Operations/Pnr/sendViewItineraryEmail",applyPaymentDetails:"multiAPI/bookingOperations/paymentDetails",updatePaymentDetails:"multiAPI/bookingOperations/updatePaymentDetails",cbComment:"multiAPI/v2/DebitMemo/cbComment",blackListInfo:"multiAPI/v2/DebitMemo/blackListInfo",updateAppSettings:"multiAPI/v2/Apps/Settings",updateCCVerificationStatus:"multiAPI/bookingOperations/CC/VerificationStatus",cbMail:"multiAPI/v2/DebitMemo/cbMail",disputeLetter:"multiAPI/v2/DebitMemo/disputeLetter",fetchFile:"multiAPI/v2/DebitMemo/fetchFile",cbManualInfo:"multiAPI/v2/DebitMemo/cbManualInfo",updateTicketNumbers:"multiAPI/bookingOperations/TicketNumbers",cancelPnr:"multiAPI/bookingOperations/cancelPnr",ccdAuthForm:"multiAPI/bookingOperations/detailsForCCDeclineOrAuthForm",seatMapRequest:"multiAPI/v2/Flights/seatRequest",ccDeclineOrAuthFormEmail:"multiAPI/bookingOperations/ccDeclineOrAuthFormEmail",updateItineraryStatus:"multiAPI/bookingOperations/updateItineraryStatus",orderTicketing:"multiAPI/bookingOperations/orderTicketing",suspectFraudBooking:"multiAPI/bookingOperations/suspectFraudBooking",getEmailTemplates:"multiAPI/v2/Contacts/emailTemplates",getCcdRemarks:"multiAPI/bookingOperations/remarks",deleteContacts:"multiAPI/v2/Contacts/delete",listEmailTemplates:"multiAPI/v2/Contacts/listEmailTemplates",saveEmailTemplate:"multiAPI/v2/Contacts/emailTemplate",forexData:"resources/v1/Context/forexData",calculateExchange:"multiAPI/v2/Operations/Pnr/calculateExchange",updateProfileDetails:"multiAPI/v2/User/UpdateProfile",changePassword:"multiAPI/v2/User/changePassword",sendMail:"multiAPI/v2/Operations/Pnr/sendMail",cardCharge:"multiAPI/v2/Operations/Pnr/cardCharge",carouselCCDetails:"multiAPI/v2/Agency/cardInfo",paymentSummaryList:"multiAPI/v2/Reports/paymentSummary",paymentReportList:"multiAPI/v2/Reports/paymentDtls",carouselAgencyDetails:"multiAPI/v2/Agency/info",consolidatorsInfo:"multiAPI/v2/Agency/consolidatorInfo",appModelsInfo:"multiAPI/v2/Apps/modelsInfo",updateRegStatus:"multiAPI/v2/Agency/updateRegStatus",templateTypes:"multiAPI/v2/Contacts/templateTypes",deleteTemplates:"multiAPI/v2/Contacts/deleteTemplates",callPnrExchangereIssue:"multiAPI/v2/Operations/Pnr/reIssue",auditCustomerCareInfo:"multiAPI/v2/Operations/Pnr/auditCustomerCareInfo",hotelDetails:"multiAPI/v2/Hotels/details",hotelImages:"multiAPI/v2/Hotels/images",hotelRooms:"multiAPI/v2/Hotels/rooms",hotelPolicies:"multiAPI/v2/Hotels/policies",hotelRoomBook:"multiAPI/v2/Hotels/book",hotelPPNBundle:"multiAPI/v2/Hotels/ppnBundle",fareRules:"multiAPI/v2/Flights/fareRules",fareBreakDown:"multiAPI/v2/Flights/fareBreakDown",consPartnersList:"multiAPI/v2/Reports/ConsPartnersList",supportChatActive:"multiAPI/v2/MondeeWebHook/active",supportChatInActive:"multiAPI/v2/MondeeWebHook/inactive",supportChatUpdate:"multiAPI/v2/MondeeWebHook/update",regFlowStatus:"multiAPI/v2/Agency/userStatus",calculateRefund:"multiAPI/v2/Operations/Pnr/calculateRefund",pnrRefund:"multiAPI/v2/Operations/Pnr/refund",branchList:"multiAPI/v2/Utility/branchList",invoiceStatementSummary:"multiAPI/v2/Reports/invoiceStatementSummary",topAgentsList:"multiAPI/v2/TpAgent/Top/list",externalMotPricePnrDetails:"multiAPI/v2/Operations/Pnr/price",pricedItinerariesFromSession:"multiAPI/v2/Operations/Pnr/pricedItineriesFromSession",saveExternalStandardization:"multiAPI/v2/Operations/Pnr/externalStdzn",externalSelfTicketingDetails:"multiAPI/v2/Operations/Pnr/externalSelfTicketing",voidAndIssueTicket:"multiAPI/v2/Operations/Pnr/voidAndIssueTicket",voidMotPnr:"multiAPI/v2/Operations/Pnr/voidPnr",pollTicketingStatusDetails:"multiAPI/v2/Operations/Pnr/pollTicketingStatus",itineraryFareRules:"multiAPI/v2/Operations/Pnr/fareRules",newViewChargebackMgmt:"multiAPI/v2/DebitMemo/tpQueue",loadConsolidatorList:"multiAPI/v2/DebitMemo/loadConsolidatorList",loadBranchList:"multiAPI/v2/DebitMemo/loadBranchList",loadAgencyList:"multiAPI/v2/DebitMemo/loadAgencyList",addComments:"multiAPI/v2/Operations/Pnr/addComments",saveItineraries:"multiAPI/v2/Flights/itineraries",getItineraries:"multiAPI/v2/Flights/itineraries",invoiceStatementDetails:"multiAPI/v2/Reports/invoiceStatementDetails",versionDetailsList:"multiAPI/v2/Utility/versionDetailsList",customerList:"multiAPI/v2/Reports/customerList",invoiceDisputeList:"multiAPI/v2/Reports/dispute",agressoTripproBalanceMismatchView:"multiAPI/v2/Reports/agressoTripproBalanceMismatchView",agressoEmail:"multiAPI/v2/Reports/agressoEmail",showVersionStatus:"multiAPI/v2/Reports/showVersionStatus",updateCustomerStatement:"multiAPI/v2/Reports/updateCustomerStatement",printInvoicecPdf:"multiAPI/v2/Reports/generateInvoicePdf",createPasswordByCode:"multiAPI/v2/User/createPassword",excelDownload:"reportsExcelAdaptor/v2/Reports/FinanceReports/ExcelDownload",consolidatorsForFinancialReport:"multiAPI/v2/Utility/consolidatorsForFinancialReport",customersForFinancialReport:"multiAPI/v2/Utility/customersForFinancialReport",financeReport:"multiAPI/v2/Reports/financeReport",tripproStatementFailureReportView:"multiAPI/v2/Reports/tripproStatementFailureReportView",tripproItinerariDetails:"multiAPI/v2/Reports/ItinerariDetails",ctBookingStatus:"multiAPI/v2/Reports/CtBookingStatus",userTypeList:"multiAPI/v2/User/UserTypeList",viewCcvInfo:"multiAPI/v2/Ccv/ccvQueue",ccvPnrInfo:"multiAPI/v2/Ccv/pnrDetails",userProfile:"imageAdaptor/v2/User/Cropped/",userProfileWithOutCrop:"imageAdaptor/v2/User/ProfilePic/",allAgentsRefreshLatestVersion:"multiAPI/v2/Reports/allAgentsRefreshLatestVersion",enableFinancialReport:"multiAPI/v2/Reports/enableFinancialReport",updateFinancialDetailReport:"multiAPI/v2/Reports/updateFinancialDetailReport",saveMarketingImages:"multiAPI/v2/User/marketingImages",retirveMarketingImage:"imageAdaptor/v2/User/marketingImages/",disputeExcelDownload:"multiAPI/v2/Reports/Dispute/ExcelDownload",promoManagementData:"multiAPI/v2/Reports/promoManagementData",tripproBookingsReportData:"multiAPI/v2/Reports/TpBookingsReportData",tripproHotelBookingsReportData:"multiAPI/v2/Reports/TpHotelBookingsReportData",ccvManualInfo:"multiAPI/v2/Ccv/ccvManual",activityReport:"multiAPI/v2/Utility/ActivityReport",adminLogin:"multiAPI/v2/User/adminLogin",saveWaiverFile:"resources/BookingImg/saveWaiverFile",scheduleChanges:"multiAPI/v2/Ccv/scheduleChanges",disputeTransaction:"multiAPI/v2/Reports/disputeTransaction",branchesInfoList:"multiAPI/v2/MarkUp/branchInfo",consolidatorList:"multiAPI/v2/MarkUp/consolidatorList",searchPromoList:"multiAPI/v2/MarkUp/searchPromoList",loadMarkup:"multiAPI/v2/MarkUp/loadMarkup",saveMarkup:"multiAPI/v2/MarkUp/saveMarkup",searchItineraryEmail:"multiAPI/v2/Flights/itineraryEmail",twitterRequestToken:"resources/SocialMedia/twitterRequestToken",twitterFriends:"resources/SocialMedia/retrieveTwitterFriends/",qcPnrList:"multiAPI/v2/QcTool/PnrList",qcExceptions:"multiAPI/v2/QcTool/QcExceptions",loadCorporateAccountDetails:"multiAPI/v2/Reports/loadCorporateAccountDetails",crmCases:"multiAPI/v2/QcTool/CrmCases",importContacts:"multiAPI/v2/Contacts/importContacts",assignPnr:"multiAPI/v2/QcTool/QcAssignment",internalAgents:"multiAPI/v2/User/internalAgents",sendEmailToQC:"multiAPI/v2/QcTool/SendEmail",ticketImageDisplay:"multiAPI/v2/QcTool/TicketImageDisplay",microList:"multiAPI/v2/QcTool/microList",yahooRequestToken:"resources/SocialMedia/yahooRequestToken",yahooFriends:"resources/SocialMedia/retrieveYahooFriends/",outlookRequestToken:"resources/SocialMedia/outlookRequestToken",outlookFriends:"resources/SocialMedia/retrieveOutlookFriends/",ccvComment:"multiAPI/v2/Ccv/ccvComment",resubmitForTicketing:"multiAPI/bookingOperations/resubmitForTicketing",itineraryInsuranceVO:"multiAPI/v2/Utility/getInsuranceVO",purchaseTravelInsurance:"multiAPI/v2/Utility/purchaseTravelInsurance",itineraryInsuranceVOEmailCall:"multiAPI/v2/Utility/getInsuranceVOEmailCall",purchaseTravelInsuranceEmailCall:"multiAPI/v2/Utility/purchaseTravelInsuranceEmailCall",cancelTravelInsurance:"multiAPI/v2/Utility/cancelInsurance",generateQCInvoicePdf:"multiAPI/v2/Reports/InvoiceMaster/QCInvoicePdf",voidPnr:"multiAPI/bookingOperations/voidPnr",realtedPnrs:"multiAPI/v2/DebitMemo/realtedPnrs",mvtLiteInfo:"multiAPI/v2/Operations/Pnr/mvtLiteInfo",mvtLite:"multiAPI/v2/Operations/Pnr/mvtLite",purchaseInsuranceWithNewCard:"multiAPI/v2/Utility/purchaseInsuranceWithNewCard",getCustEmailId:"multiAPI/v2/Operations/Pnr/getCustEmailId",updateQCManualStatus:"multiAPI/v2/QcTool/ManualStatusUpdate",generateQCMicroContractPdf:"multiAPI/v2/QcTool/MicroContractFilePath",quoteInuranceByReferenceNum:"multiAPI/v2/Utility/quoteInuranceByRef",qcContractsByPNR:"multiAPI/v2/QcTool/ContractsByPNR",appRequest:"multiAPI/v2/Apps/request",appApprove:"multiAPI/v2/Apps/approve",ccvRealtedPnrs:"multiAPI/v2/Ccv/ccvRealtedPnrs",getPastBookings:"multiAPI/v2/Operations/Pnr/pastBookings",sellItineraryUrl:"multiAPI/v2/Flights/SellItinerary",escalationInfo:"multiAPI/v2/Reports/escalationInfo",escalationDetails:"multiAPI/v2/Reports/escalationDetails",addEscalationInfo:"multiAPI/v2/Reports/addEscalationInfo",currencyList:"multiAPI/v2/Utility/currencyList",validateMobileNumber:"multiAPI/v2/Utility/validateMobileNumber",manageBookingStatus:"multiAPI/bookingOperations/manageBookingStatus",submitAppRating:"multiAPI/v2/Apps/AddAppRating",appRatingList:"multiAPI/v2/Apps/AppRatingList",appUserReviewList:"multiAPI/v2/Apps/AppUserReviewList",updateMobileUserStatus:"multiAPI/v2/User/updateMobileUserStatus",callFetchPdfDocument:"resources/BookingImg/fetchItineraryPdf/",saveEscalationsPnr:"multiAPI/v2/Reports/saveEscalationsPnr",customerEnquiryInfo:"multiAPI/v2/Flights/saveCustomerEnquiryItineraryInfo",appSettingsInfo:"multiAPI/v2/Apps/appSettingsInfo",phoneCountryExtensionInfo:"multiAPI/v2/User/phoneExtensions",campaignList:"multiAPI/v2/Contacts/campaignList",contactsForCampaign:"multiAPI/v2/Contacts/contactsListForCampaign",campaignType:"multiAPI/v2/Contacts/campaignType",updateCampaign:"multiAPI/v2/Contacts/updateCampaign",menuStatus:"multiAPI/v2/Menu/status",campaignContactList:"multiAPI/v2/Contacts/campaignContactList",updateCampaignContacts:"multiAPI/v2/Contacts/updateCampaignContacts",resetPasswordInTrippro:"multiAPI/v2/User/resetPasswordInTrippro",resetPasswordByCode:"multiAPI/v2/User/validateAndResetPassword",updateFeefoPNRDetails:"multiAPI/v2/Reports/updateFeefoPNRDetails",startCampaign:"multiAPI/v2/Contacts/startCampaign",copyCampaign:"multiAPI/v2/Contacts/copyCampaign",listApps:"multiAPI/v2/Apps/ListApps",listAppSettings:"multiAPI/v2/Apps/ListAppDefaultSettings",saveAppDefaultSettings:"multiAPI/v2/Apps/SaveUpdateAppDefaultSettings",appCategoryTypes:"multiAPI/v2/Apps/ListCategory",appTypes:"multiAPI/v2/Apps/ListType",saveUpdateApps:"multiAPI/v2/Apps/SaveUpdateApps",saveAppMenuSettings:"multiAPI/v2/Apps/SaveUpdateMenu",listAppMenus:"multiAPI/v2/Apps/ListMenu",campaignCount:"multiAPI/v2/Contacts/Campaign/counts",campaignOpenCountByDates:"multiAPI/v2/Contacts/Campaign/countByIdDates",supportConsoleOnlineData:"multiAPI/v2/Utility/liveUserForConsole/list/mondee",supportConsoleOfflineData:"multiAPI/v1/Utility/offlineUsers",getUserInfo:"multiAPI/v2/User/userInfo",updateUserInfo:"multiAPI/v2/User/updateUserInfo"},defaultHeaders:{DeviceUUID:"Web-Dummy-DeviceUUID",AccessToken:""},includeUrls:{},excludeUrls:{},defaultMimeType:"application/json",mimeTypes:{json:"application/json",xml:"application/xml",xhtml:"application/xhtml+xml",txt:"text/plain",html:"text/html",param:"application/x-www-form-urlencoded; charset=UTF-8",soap:""},dataTypes:{json:"json"},types:{post:"POST",get:"GET",options:"option",delet:"delete",put:"put"},syncContextData:function(b,c){var a={};a.url=this.urls.syncContextData+"?type="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},applyPromoCode:function(b,c){var a={};a.url=this.urls.promoCodeURL;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},applyCouponCode:function(b,c){var a={};a.url=this.urls.couponCodeURL;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},fareAlertSubscribe:function(b,c){var a={};a.url=this.urls.fareAlertURL;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},traceSeoData:function(b,c){var a={};a.url=this.urls.traceSeoDataURL;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},login:function(b,c){var a={};a.url=this.urls.login;a.data=b;a.callback=c;if(typeof deeplink!=="undefined"&&deeplink){a.async=false}a.headers=this.defaultHeaders;this.ajax(a)},logout:function(b){var a={};a.url=this.urls.logout;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getTravelers:function(b){var a={};a.url=this.urls.travelers;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},logger:function(b){var a={};a.url=this.urls.logger;a.data=b;this.ajax(a)},bookings:function(b,c){var a={};a.url=this.urls.bookings;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},flightsRead:function(b,e){var d=b.pnr;if(b.referenceNumber){d+="~"+b.referenceNumber}var c={RecordLocator:d,OtherInfo:{RequestedIP:"192.168.11.76",TransactionId:"123456"}};var a={};a.url=this.urls.flightsRead;a.data=c;a.callback=e;a.headers=this.defaultHeaders;this.ajax(a)},instantSearch:function(b,c){var a={};a.url=this.urls.instantSearch;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},searchFlights:function(b,c){var a={};a.url=this.urls.searchFlights;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},incrementalSearch:function(b,c){var a={};a.url=this.urls.incremental;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},searchHotels:function(b,c){var a={};a.url=this.urls.searchHotels;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},airports:function(a,c){var b={};b.url=this.urls.airports;b.callback=c;b.data={keyText:a};if(typeof locale!="undefined"){b.data.locale=locale}b.type=this.types.get;b.headers=this.defaultHeaders;b.contentType=this.mimeTypes.text;b.dataType="";this.ajax(b)},hotelLocations:function(a,c){var b={};b.url=this.urls.hotelsLocations;b.callback=c;b.data={keyText:a};b.type=this.types.get;b.headers=this.defaultHeaders;b.contentType=this.mimeTypes.text;b.dataType="";this.ajax(b)},airportsAdapter:function(a,c){var b={};b.url=this.urls.airportsAdapter;b.callback=c;b.data={keyText:a};b.type=this.types.get;b.headers=this.defaultHeaders;b.contentType=this.mimeTypes.text;b.dataType="";this.ajax(b)},extremeSearch:function(b,c){var a={};a.url=this.urls.extremeSearch;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getMessage:function(c,d){var a={};var b="";if(typeof deeplink!=="undefined"&&typeof accountId!=="undefined"&&typeof accountId!=="undefined"&&accountId&&deeplink){b="?accountId="+accountId+"&remoteIp="+remoteIp+"&isFromMobile="+Fly.Browser.isMobile()}a.url=this.urls.getMessage+"/"+c+b;a.callback=d;a.async=false;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},createTraveller:function(b,c){var a={};a.url=this.urls.createTraveller;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getUserProfile:function(b,c){var a={};a.url=this.urls.etUserProfile+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},bookFlight:function(b,c){var a={};a.url=this.urls.bookFlight;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},countryState:function(b,c){var a={};a.url=this.urls.countrystate;a.callback=c;a.data={countryId:b};a.type=this.types.get;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.text;a.dataType="";this.ajax(a)},landing:function(b,c){var a={};a.url=this.urls.landing;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getEtBookings:function(b,c){var a={};a.url=this.urls.etBookings+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},etProfileUpdate:function(b,c){var a={};a.data=b;a.url=this.urls.etProfileUpdate;a.callback=c;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},travelInsuranceQuote:function(b,c){var a={};a.url=this.urls.travelInsuranceQuote;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},totSettings:function(b){var a={};a.url=this.urls.totSettings;a.type=this.types.get;a.callback=b;a.headers=this.defaultHeaders;this.ajax(a)},saveBillInfoImg:function(b,c){var a={};a.url=this.urls.saveBillInfoImg;a.data=b;a.type=this.types.post;a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.json;a.processData=false;this.ajax(a)},saveBillConfimImg:function(b,c){var a={};a.url=this.urls.saveBillConfimImg;a.data=b;a.type=this.types.post;a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.json;a.processData=false;this.ajax(a)},getManageBookingItineraries:function(b,c){var a={};a.url=this.urls.manageBookings;a.data=b;a.type=this.types.post;a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.json;this.ajax(a)},getManagePnrInfo:function(b,c){var a={};a.url=this.urls.managePnrInfo;a.data=b;a.type=this.types.post;a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.json;this.ajax(a)},updateCCDetails:function(b,c){var a={};a.url=this.urls.updateCCDetails;a.data=b;a.type=this.types.post;a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.json;this.ajax(a)},generatePdf:function(b,c){var a={};a.url=this.urls.generatePdf;a.data=b;a.type=this.types.post;a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.json;this.ajax(a)},trackSeoBookingStatus:function(b,c){var a={};a.url=this.urls.trackSeoBookingStatusURL;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveFlightResults:function(b,c){var a={};a.url=this.urls.saveFlightResultsURL;a.type=this.types.post;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getFlightResults:function(b){var a={};a.url=this.urls.getFlightResultsURL;a.type=this.types.get;a.callback=b;a.headers=this.defaultHeaders;this.ajax(a)},aviatorDashboardData:function(b){var a={};a.url=this.urls.dashboardDataURL;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},aviatorBookingData:function(b){var a={};a.url=this.urls.aviatorBookingsURL;a.callback=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},aviatorCustomerData:function(b){var a={};a.url=this.urls.aviatorCustomerDataURL;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},secure3dAuthReq:function(b,c){var a={};a.url=this.urls.secure3dAuthReq;a.type=this.types.post;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},secure3dAuthResp:function(b,c){var a={};a.url=this.urls.secure3dAuthResp;a.type=this.types.post;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},travelerActivitiesData:function(c){var a={};var b={};a.url=this.urls.travelerActivitiesURL;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},trackMetaCampaignSeoStatus:function(b,c){var a={};a.url=this.urls.trackMetaCampaignStatusURL;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateRakutenConversionTag:function(b,c){var a={};a.url=this.urls.updateRakutenConversionTag;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},isLegitimateCustomer:function(b,c){var a={};a.url=this.urls.isLegitimateCustomer;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},modifyUserProfile:function(b,c){var a={};a.url=this.urls.etUserProfile+"/"+b.Id;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},getUserPreferences:function(b,c){var a={};a.url=this.urls.userPreferences+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateUserPreferences:function(b,c){var a={};a.url=this.urls.userPreferences;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},changeUserPassword:function(b,c){var a={};a.url=this.urls.changeUserPasswordURL;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getTopActivities:function(b){var a={};a.url=this.urls.topActivities;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},trackStatus:function(b,c){var a={};a.url=this.urls.trackStatusURL;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},shareItinerary:function(b,c){var a={};a.url=this.urls.shareItineraryURL;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},aviatorNotifications:function(b){var a={};a.url=this.urls.aviatorNotificationsURL;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},monthlySalesChat:function(b,c){var a={};a.url=this.urls.monthlySalesChatURL+"/"+b.from+"/"+b.to;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},createAgent:function(b,c){var a={};a.url=this.urls.createAgent;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},forgetPasswordByAgent:function(b,c){var a={};a.url=this.urls.forgetPasswordByAgent;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},updatePasswordByCode:function(b,c){var a={};a.url=this.urls.updatePasswordByCode;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},appCenterList:function(b){var a={};a.url=this.urls.appCenterList;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},appCenterInstallList:function(b){var a={};a.url=this.urls.appCenterInstallList;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},profilePaymentMethod:function(b){var a={};a.url=this.urls.profilePaymentMethod;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},profilePaymentHistory:function(b){var a={};a.url=this.urls.profilePaymentHistory;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},savePaymentMethod:function(b,c){var a={};a.url=this.urls.profilePaymentMethod;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveAchInfo:function(b,c){var a={};a.url=this.urls.profileAchInfo;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updatePaymentMethod:function(b,c){var a={};a.url=this.urls.profilePaymentMethod;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},updateAchMethod:function(b,c){var a={};a.url=this.urls.profileAchInfo;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},updatePaymentCardPrimaryStatus:function(b,c){var a={};a.url=this.urls.profilePaymentPrimaryStatus;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},updateAchPrimaryStatus:function(b,c){var a={};a.url=this.urls.profileACHPrimaryStatus;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},appUninstall:function(b,c){var a={};a.url=this.urls.appUninstall;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},appInstall:function(b,c){var a={};a.url=this.urls.appInstall;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},menuData:function(b){var a={};a.url=this.urls.menuData;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},appIcon:function(c,b){var a={};a.url=this.urls.appIcon+"/"+c;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},gdsCommandRequests:function(c,d,b){var a={};a.url=this.urls.commandRequest;a.callback=d;a.async=b;a.data=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveProfilePic:function(b,c){var a={};a.url=this.urls.profilePic;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveCropedPic:function(b,c){var a={};a.url=this.urls.cropedPic;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},i18NData:function(a,c){var b={};b.url=this.urls.i18NData+"?locale="+a;b.type=this.types.get;b.async=false;b.callback=c;b.headers=this.defaultHeaders;this.ajax(b)},monthlyActivityChat:function(b,c){var a={};a.url=this.urls.monthlyActivityChat+"/"+b.from+"/"+b.to;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},tpDashboardRevenue:function(b,c){var a={};a.url=this.urls.tpDashboardRevenue;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},tpBookingInfo:function(b,c){var a={};a.url=this.urls.tpBookingInfo;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},parseCommands:function(b,c){var a={};a.url=this.urls.parseCommand;a.callback=c;a.async=false;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getBookingFailureDetails:function(b,c){var a={};a.url=this.urls.getBookingFailureDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},failureStatusUpdate:function(b,c){var a={};a.url=this.urls.failureStatusUpdate;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getUserAllApps:function(b,c){var a={};a.url=this.urls.userAllApps+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},addAppsToUser:function(b,c){var a={};a.url=this.urls.addAppsToUser+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},shiftCommands:function(b,c){var a={};a.url=this.urls.shiftCommand;a.callback=c;a.async=false;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},landingPccsList:function(a,c){var b={};b.url=this.urls.landingPCC+"/"+a;b.callback=c;b.type=this.types.get;b.headers=this.defaultHeaders;this.ajax(b)},inviteAgent:function(b,c){var a={};a.url=this.urls.inviteAgent+"?"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},checkUserInvitation:function(b){var a={};a.url=this.urls.checkUserInvitation;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateUserInvitation:function(b,c){var a={};a.url=this.urls.updateUserInvitation+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},commissionReport:function(b,c){var a={};a.url=this.urls.commissionReport;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},validateUserByEmail:function(b,c){var a={};a.url=this.urls.validateUserByEmail+"?email="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},validateUserByMobileNumber:function(b,c){var a={};a.url=this.urls.validateUserByMobileNumber+"?mobileNumber="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},bookingsSearch:function(b,c){var a={};a.url=this.urls.bookingsSearch;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateContactsDetails:function(b,c){var a={};a.url=this.urls.updateContactsDetails;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},landingPCCChange:function(b,c){var a={};a.url=this.urls.landingPCCSessionRelease+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},viewItinerary:function(b,c){var a={};a.url=this.urls.viewItinerary;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveChargebackMgmt:function(b,c){var a={};a.url=this.urls.saveChargebackMgmt;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},viewChargebackMgmt:function(b,c){var a={};a.url=this.urls.viewChargebackMgmt;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},validateContactsByEmail:function(b,c){var a={};a.url=this.urls.validateContactsByEmail+"?email="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},sendMailToContacts:function(b,c){var a={};a.url=this.urls.sendMailToContacts;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},invoiceMasterDataReport:function(b,c){var a={};a.url=this.urls.invoiceMasterDataReport;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},generateInvoiceMasterDataPdf:function(b,c){var a={};a.url=this.urls.generateInvoiceMasterDataPdf;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},consolidatorAgencyList:function(b,c){var a={};a.url=this.urls.consolidatorAgencyList;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},consolidators:function(b,c){var a={};a.url=this.urls.consolidators;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},branchNames:function(b,c){var a={};a.url=this.urls.branchNames;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},reasonCodes:function(b,c){var a={};a.url=this.urls.reasonCodes;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},voidedPnrDetails:function(b,c){var a={};a.url=this.urls.voidedPnrDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},emailInvoiceMasterDataPdf:function(b,c){var a={};a.url=this.urls.emailInvoiceMasterDataPdf;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateInvoiceMasterData:function(b,c){var a={};a.url=this.urls.updateInvoiceMasterData;a.data=b;a.callback=c;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},getInvoiceMasterDataObjectToUpdate:function(b,c){var a={};a.url=this.urls.getInvoiceMasterDataObjectToUpdate;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},pnrComments:function(b,c){var a={};a.url=this.urls.pnrComments+"/"+b.referenceNumber;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateComments:function(b,c){var a={};a.url=this.urls.updateComments;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},ccDetails:function(b,c){var a={};a.url=this.urls.ccDetails+"/"+b.referenceNum+"/"+b.consolidatorId+"/"+b.type;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},cbTicketInfo:function(b,c){var a={};a.url=this.urls.cbTicketInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},appSettings:function(c,b,d){var a={};a.url=this.urls.appSettings+"/"+c+"/"+b;a.callback=d;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getSystemComments:function(b,c){var a={};a.url=this.urls.getSystemComments;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},showPnrFullHistory:function(b,c){var a={};a.url=this.urls.showPnrFullHistory;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getEmailHistory:function(b,c){var a={};a.url=this.urls.getEmailHistory+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},saveContactInfo:function(b,c){var a={};a.url=this.urls.saveContactInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},callExchangeStatusDetails:function(b,c){var a={};a.url=this.urls.externalMotDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getApplyPaymentDetails:function(b,c){var a={};a.url=this.urls.applyPaymentDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updatePaymentDetails:function(b,c){var a={};a.url=this.urls.updatePaymentDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},cbComment:function(b,c){var a={};a.url=this.urls.cbComment;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},blackListInfo:function(b,c){var a={};a.url=this.urls.blackListInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateAppSettings:function(c,d,b,e){var a={};a.url=this.urls.updateAppSettings+"/"+d+"/"+b;a.data=c;a.callback=e;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},updateCCVerificationStatus:function(b,c){var a={};a.url=this.urls.updateCCVerificationStatus;a.data=b;a.callback=c;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},cbMail:function(b,c){var a={};a.url=this.urls.cbMail;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},disputeLetter:function(b,c){var a={};a.url=this.urls.disputeLetter;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},fetchFile:function(b,c){var a={};a.url=this.urls.fetchFile;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},cbManualInfo:function(b,c){var a={};a.url=this.urls.cbManualInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateTicketNumbers:function(b,c){var a={};a.url=this.urls.updateTicketNumbers;a.data=b;a.callback=c;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},cancelPnr:function(b,c){var a={};a.url=this.urls.cancelPnr;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},ccdAuthForm:function(b,c){var a={};a.url=this.urls.ccdAuthForm;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},seatMapRequest:function(b,c){var a={};a.url=this.urls.seatMapRequest;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},sendCcdAuthFormEmail:function(b,c){var a={};a.url=this.urls.ccDeclineOrAuthFormEmail;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateItineraryStatus:function(b,c){var a={};a.url=this.urls.updateItineraryStatus;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},orderTicketing:function(b,c){var a={};a.url=this.urls.orderTicketing;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},suspectFraudBooking:function(b,c){var a={};a.url=this.urls.suspectFraudBooking;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getEmailTemplates:function(b){var a={};a.url=this.urls.getEmailTemplates;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getCcdRemarks:function(b,c){var a={};a.url=this.urls.getCcdRemarks+"/"+b.referenceNum;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},deleteContacts:function(c,b){var a={};a.url=this.urls.deleteContacts+"?id="+c;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},listEmailTemplates:function(b){var a={};a.url=this.urls.listEmailTemplates;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},saveEmailTemplate:function(b,c){var a={};a.url=this.urls.saveEmailTemplate;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},forexData:function(b){var a={};a.url=this.urls.forexData;a.type=this.types.get;a.async=false;a.callback=b;a.headers=this.defaultHeaders;this.ajax(a)},callCalculateExchange:function(b,c){var a={};a.url=this.urls.calculateExchange;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateProfileDetails:function(b,c){var a={};a.url=this.urls.updateProfileDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},changePassword:function(b,c){var a={};a.url=this.urls.changePassword;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},sendMail:function(b,c){var a={};a.url=this.urls.sendMail;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},cardCharge:function(b,c){var a={};a.url=this.urls.cardCharge;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveCarouselCCDetails:function(b,c){var a={};a.url=this.urls.carouselCCDetails;a.type=this.types.post;a.async=false;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},callExternalMotDetails:function(b,c){var a={};a.url=this.urls.externalMotDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveCarouselAgencyInfo:function(b,c){var a={};a.url=this.urls.carouselAgencyDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getConsolidatorInfo:function(b){var a={};a.url=this.urls.consolidatorsInfo;a.type=this.types.get;a.callback=b;a.headers=this.defaultHeaders;this.ajax(a)},getAppModelsInfo:function(b){var a={};a.url=this.urls.appModelsInfo;a.type=this.types.get;a.async=false;a.callback=b;a.headers=this.defaultHeaders;this.ajax(a)},updateUserRegStatus:function(b,c){var a={};a.url=this.urls.updateRegStatus;a.type=this.types.post;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},deleteTemplates:function(b,c){var a={};a.url=this.urls.deleteTemplates+"?templateIds="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getEmailTemplateTypes:function(b){var a={};a.url=this.urls.templateTypes;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},callPnrExchange:function(b,c){var a={};a.url=this.urls.callPnrExchangereIssue;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},auditCustomerCareInfo:function(b,c){var a={};a.url=this.urls.auditCustomerCareInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getHotelDetails:function(b,c){var a={};a.url=this.urls.hotelDetails;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getHotelImages:function(b,c){var a={};a.url=this.urls.hotelImages;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getHotelRooms:function(b,c){var a={};a.url=this.urls.hotelRooms;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getHotelPolicies:function(b,c){var a={};a.url=this.urls.hotelPolicies;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},HotelRoomBook:function(b,c){var a={};a.url=this.urls.hotelRoomBook;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getHotelPPNBundle:function(b,c){var a={};a.url=this.urls.hotelPPNBundle;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},getFareRules:function(b,c){var a={};a.url=this.urls.fareRules+"/"+b.itineraryId+"/"+b.airlineCode;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getFareBreakDown:function(b,c){var a={};a.url=this.urls.fareBreakDown+"/"+b.itineraryId;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},supportChatActive:function(b,c){var a={};a.url=this.urls.supportChatActive;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},supportChatInActive:function(b,c){var a={};a.url=this.urls.supportChatInActive;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},supportChatUpdate:function(b,c){var a={};a.url=this.urls.supportChatUpdate;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getRegistrationFlow:function(b,c){var a={};a.url=this.urls.regFlowStatus+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},calculateRefund:function(b,c){var a={};a.url=this.urls.calculateRefund;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},pnrRefund:function(b,c){var a={};a.url=this.urls.pnrRefund;a.data=b.requestdata;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},topAgentsList:function(b){var a={};a.url=this.urls.topAgentsList;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},externalMotPricePnrDetails:function(b,c){var a={};a.url=this.urls.externalMotPricePnrDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},pricedItinerariesFromSession:function(b,c){var a={};a.url=this.urls.pricedItinerariesFromSession;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveExternalStandardization:function(b,c){var a={};a.url=this.urls.saveExternalStandardization;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},externalSelfTicketingDetails:function(b,c){var a={};a.url=this.urls.externalSelfTicketingDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},pollTicketingStatusDetails:function(b,c){var a={};a.url=this.urls.pollTicketingStatusDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},voidAndIssueTicket:function(b,c){var a={};a.url=this.urls.voidAndIssueTicket;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},voidMotPnr:function(b,c){var a={};a.url=this.urls.voidMotPnr;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},itineraryFareRules:function(b,c){var a={};a.url=this.urls.itineraryFareRules;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},newViewChargebackMgmt:function(b,c){var a={};a.url=this.urls.newViewChargebackMgmt;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},loadConsolidatorList:function(b,c){var a={};a.url=this.urls.loadConsolidatorList;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},loadBranchList:function(b,c){var a={};a.url=this.urls.loadBranchList;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},loadAgencyList:function(b,c){var a={};a.url=this.urls.loadAgencyList+"?Consolidator="+b.consolidator+"&BranchName="+b.branchName;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},addComments:function(b,c){var a={};a.url=this.urls.addComments;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveItinerariesOnSession:function(b,c){var a={};a.url=this.urls.saveItineraries;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getItinerariesFromSession:function(c,b){var a={};a.url=this.urls.getItineraries+"/"+c;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},invoiceStatementSummary:function(b,c){var a={};a.url=this.urls.invoiceStatementSummary;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},invoiceStatementDetails:function(b,c){var a={};a.data=b;a.url=this.urls.invoiceStatementDetails;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},branchList:function(b,c){var a={};a.url=this.urls.branchList;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},customerList:function(b,c){var a={};a.data=b;a.url=this.urls.customerList;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},agressoTripproBalanceMismatchView:function(b,c){var a={};a.data=b;a.url=this.urls.agressoTripproBalanceMismatchView;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},agressoEmail:function(b,c){var a={};a.data=b;a.url=this.urls.agressoEmail;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},showVersionStatus:function(b,c){var a={};a.data=b;a.url=this.urls.showVersionStatus;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateCustomerStatement:function(b,c){var a={};a.data=b;a.url=this.urls.updateCustomerStatement;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},versionDetailsList:function(b,c){var a={};a.url=this.urls.versionDetailsList;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},printInvoicecPdf:function(b,c){var a={};a.data=b;a.url=this.urls.printInvoicecPdf;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},createPasswordByCode:function(b,c){var a={};a.url=this.urls.createPasswordByCode;a.data=b;a.callback=c;a.headers=this.defaultHeaders;this.ajax(a)},excelDownload:function(b,c){var a={};a.data=b;a.url=this.urls.excelDownload;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.downloadExcelFile(a)},consolidatorsForFinancialReport:function(b,c){var a={};a.data=b;a.url=this.urls.consolidatorsForFinancialReport;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},customersForFinancialReport:function(b,c){var a={};a.data=b;a.url=this.urls.customersForFinancialReport;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},financeReport:function(b,c){var a={};a.data=b;a.url=this.urls.financeReport;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},tripproStatementFailureReportView:function(b,c){var a={};a.data=b;a.url=this.urls.tripproStatementFailureReportView;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},tripproBookingsReportData:function(b,c){var a={};a.data=b;a.url=this.urls.tripproBookingsReportData;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},tripproHotelBookingsReportData:function(b,c){var a={};a.data=b;a.url=this.urls.tripproHotelBookingsReportData;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},tripproItinerariDetails:function(b,c){var a={};a.data=b;a.url=this.urls.tripproItinerariDetails;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},userTypeList:function(b){var a={};a.url=this.urls.userTypeList;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},viewCcvInfo:function(b,c){var a={};a.url=this.urls.viewCcvInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},ccvPnrInfo:function(b,c){var a={};a.url=this.urls.ccvPnrInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},allAgentsRefreshLatestVersion:function(b,c){var a={};a.url=this.urls.allAgentsRefreshLatestVersion;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},enableFinancialReport:function(b,c){var a={};a.url=this.urls.enableFinancialReport;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveMarketingImages:function(b,c){var a={};a.url=this.urls.saveMarketingImages;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},retirveMarketingImage:function(b,c){var a={};a.url=this.urls.retirveMarketingImage;a.data=b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},invoiceDisputeList:function(b,c){var a={};a.url=this.urls.invoiceDisputeList;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},disputeExcelDownload:function(b,c){var a={};a.data=b;a.url=this.urls.disputeExcelDownload;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateFinancialDetailReport:function(b,c){var a={};a.url=this.urls.updateFinancialDetailReport;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},ccvManualInfo:function(b,c){var a={};a.url=this.urls.ccvManualInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},activityReport:function(b,c){var a={};a.url=this.urls.activityReport+"/"+b.from+"/"+b.to+"/"+b.type;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},adminLogin:function(b,c){var a={};a.url=this.urls.adminLogin;a.data=b;a.callback=c;if(typeof deeplink!=="undefined"&&deeplink){a.async=false}a.headers=this.defaultHeaders;this.ajax(a)},saveWaiverFile:function(b,c){var a={};a.url=this.urls.saveWaiverFile;a.data=b;a.type=this.types.post;a.callback=c;a.headers=this.defaultHeaders;a.contentType=this.mimeTypes.json;a.processData=false;this.ajax(a)},scheduleChanges:function(b,c){var a={};a.url=this.urls.scheduleChanges;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},disputeTransaction:function(b,c){var a={};a.data=b;a.url=this.urls.disputeTransaction;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getSearchPromoList:function(b,c){var a={};a.url=this.urls.searchPromoList;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},loadMarkup:function(b,c){var a={};a.url=this.urls.loadMarkup;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},sendSearchItinEmail:function(b,c){var a={};a.url=this.urls.searchItineraryEmail+"/"+b.itinGuid+"/"+b.email+"/"+b.withFare+"/"+b.markup;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},saveMarkup:function(b,c){var a={};a.url=this.urls.saveMarkup;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},twitterRequestToken:function(b){var a={};a.url=this.urls.twitterRequestToken;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},twitterFriends:function(b,c){var a={};a.url=this.urls.twitterFriends+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},qcPnrList:function(b,c){var a={};a.url=this.urls.qcPnrList;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},qcExceptions:function(b,c){var a={};a.url=this.urls.qcExceptions;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},saveQcExceptions:function(c,b,d){var a={};a.url=this.urls.qcExceptions+"/"+c;a.callback=d;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},loadCorporateAccountDetails:function(b){var a={};a.url=this.urls.loadCorporateAccountDetails;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},crmCases:function(b,c){var a={};a.url=this.urls.crmCases+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},importContacts:function(b,c){var a={};a.url=this.urls.importContacts;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},dialPadAppSettings:function(c,b,d){var a={};a.url=this.urls.appSettings+"/"+c+"/"+b;a.callback=d;a.async=false;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},assignPnr:function(b,c){var a={};a.url=this.urls.assignPnr;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},sendEmailToQC:function(b,c){var a={};a.url=this.urls.sendEmailToQC;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},ticketImageDisplay:function(b,c){var a={};a.url=this.urls.ticketImageDisplay+"/"+b.pnr+"/"+b.eTicketNumbers+"/"+b.gdsId;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},consolidatorList:function(b){var a={};a.url=this.urls.consolidatorList;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},microList:function(b,c){var a={};a.url=this.urls.microList;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},yahooRequestToken:function(b){var a={};a.url=this.urls.yahooRequestToken;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},yahooFriends:function(b,c){var a={};a.url=this.urls.yahooFriends+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},outlookRequestToken:function(b){var a={};a.url=this.urls.outlookRequestToken;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},outlookFriends:function(b,c){var a={};a.url=this.urls.outlookFriends+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},ccvComment:function(b,c){var a={};a.url=this.urls.ccvComment;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},resubmitForTicketing:function(b,c){var a={};a.url=this.urls.resubmitForTicketing;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},voidPnr:function(b,c){var a={};a.url=this.urls.voidPnr;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},itineraryInsuranceVO:function(b,c){var a={};a.url=this.urls.itineraryInsuranceVO+"/"+b.referenceNum;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},itineraryInsuranceVOEmailCall:function(b,c){var a={};a.url=this.urls.itineraryInsuranceVOEmailCall+"/"+b.referenceNum;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},purchaseTravelInsurance:function(b,c){var a={};a.url=this.urls.purchaseTravelInsurance;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},purchaseTravelInsuranceEmailCall:function(b,c){var a={};a.url=this.urls.purchaseTravelInsuranceEmailCall;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},cancelTravelInsurance:function(b,c){var a={};a.url=this.urls.cancelTravelInsurance;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},generateQCInvoicePdf:function(b,c){var a={};a.url=this.urls.generateQCInvoicePdf;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},qcSummaryList:function(b,c){var a={};a.url=this.urls.qcPnrList+b;a.callback=c;a.type=this.types.get;a.async=false;a.headers=this.defaultHeaders;this.ajax(a)},realtedPnrs:function(b,c){var a={};a.url=this.urls.realtedPnrs;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},mvtLiteInfo:function(b,c){var a={};a.url=this.urls.mvtLiteInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},mvtLite:function(b,c){var a={};a.url=this.urls.mvtLite;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},purchaseInsuranceWithNewCard:function(b,c){var a={};a.url=this.urls.purchaseInsuranceWithNewCard;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getCustEmailId:function(b,c){var a={};a.url=this.urls.getCustEmailId+"/"+b.Pnr;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateQCManualStatus:function(b,c){var a={};a.url=this.urls.updateQCManualStatus;a.callback=c;a.type=this.types.post;a.data=b;a.headers=this.defaultHeaders;this.ajax(a)},generateQCMicroContractPdf:function(c,b){var a={};a.url=this.urls.generateQCMicroContractPdf+"?fileName="+c;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},quoteInuranceByReferenceNum:function(b,c){var a={};a.url=this.urls.quoteInuranceByReferenceNum;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},qcContractsByPNR:function(b,c){var a={};a.url=this.urls.qcContractsByPNR+"?pnr="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},appRequest:function(b,c){var a={};a.url=this.urls.appRequest;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getAllAppRequests:function(b){var a={};a.url=this.urls.appRequest;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},appApprove:function(b,c){var a={};a.url=this.urls.appApprove;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},sendViewItinEmail:function(b,c){var a={};a.url=this.urls.viewItinEmail;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},ccvRealtedPnrs:function(b,c){var a={};a.url=this.urls.ccvRealtedPnrs;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getPastBookings:function(b,c){var a={};a.url=this.urls.getPastBookings;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},sellItinerary:function(b,c){var a={};a.url=this.urls.sellItineraryUrl;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},escalationInfo:function(b,c){var a={};a.url=this.urls.escalationInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},addEscalationInfo:function(b,c){var a={};a.url=this.urls.addEscalationInfo;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},currencyList:function(b){var a={};a.url=this.urls.currencyList;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},validateMobileNumber:function(b,c){var a={};a.url=this.urls.validateMobileNumber;a.callback=c;a.data=b;a.type=this.types.post;a.async=false;a.headers=this.defaultHeaders;this.ajax(a)},manageBookingStatus:function(b,c){var a={};a.url=this.urls.manageBookingStatus;a.data=b;a.callback=c;a.type=this.types.post;a.async=false;a.headers=this.defaultHeaders;this.ajax(a)},submitAppRating:function(b,c){var a={};a.url=this.urls.submitAppRating;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getAppRatingList:function(b,c){var a={};a.url=this.urls.appRatingList+"?appId="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getAppUserReviewList:function(b,c){var a={};a.url=this.urls.appUserReviewList+"?appId="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateMobileUserStatus:function(b,c){var a={};a.url=this.urls.updateMobileUserStatus;a.data=b;a.callback=c;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},saveEscalationsPnr:function(b,c){var a={};a.url=this.urls.saveEscalationsPnr;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveCustomerEnquiryInfo:function(b,c){var a={};a.url=this.urls.customerEnquiryInfo+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},appSettingsInfo:function(c,b,d){var a={};a.url=this.urls.appSettingsInfo+"/"+c+"/"+b;a.callback=d;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getPhoneExtensions:function(b){var a={};a.url=this.urls.phoneCountryExtensionInfo;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getCampaignType:function(b){var a={};a.url=this.urls.campaignType;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateCampaign:function(b,c){var a={};a.url=this.urls.updateCampaign;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},menuSettings:function(b,c,d){var a={};a.url=this.urls.menuStatus+"/"+b+"/"+c;a.callback=d;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateMenuStatus:function(b,c){var a={};a.url=this.urls.menuStatus;a.callback=c;a.data=b;a.type=this.types.put;a.headers=this.defaultHeaders;this.ajax(a)},updateCampaignContacts:function(b,c){var a={};a.url=this.urls.updateCampaignContacts;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},resetPasswordInTrippro:function(b,c){var a={};a.url=this.urls.resetPasswordInTrippro+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},resetPasswordByCode:function(b,c){var a={};a.url=this.urls.resetPasswordByCode;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getBookingFailureInfo:function(b,c){var a={};a.url=this.urls.bookingFailureInfo+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},escalationDetails:function(b,c){var a={};a.url=this.urls.escalationDetails;a.data=b;a.callback=c;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},updateFeefoPNRDetails:function(b,c){var a={};a.url=this.urls.updateFeefoPNRDetails;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},startCampaign:function(a,c){var b={};b.url=this.urls.startCampaign+"?campaignId="+a;b.callback=c;b.type=this.types.get;b.headers=this.defaultHeaders;this.ajax(b)},copyCampaign:function(a,c){var b={};b.url=this.urls.copyCampaign+"?campaignId="+a;b.callback=c;b.type=this.types.get;b.headers=this.defaultHeaders;this.ajax(b)},listApps:function(b){var a={};a.url=this.urls.listApps;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},listAppSettings:function(b,c){var a={};a.url=this.urls.listAppSettings+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},saveAppDefaultSettings:function(b,c){var a={};a.url=this.urls.saveAppDefaultSettings;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},getAppCategoryTypes:function(b){var a={};a.url=this.urls.appCategoryTypes;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},getAppTypes:function(b){var a={};a.url=this.urls.appTypes;a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},saveUpdateApps:function(b,c){var a={};a.url=this.urls.saveUpdateApps;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},saveAppMenuSettings:function(b,c){var a={};a.url=this.urls.saveAppMenuSettings;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},listAppMenus:function(b,c){var a={};a.url=this.urls.listAppMenus+"/"+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},campaignCount:function(a,c){var b={};b.url=this.urls.campaignCount+"?campaignId="+a;b.callback=c;b.type=this.types.get;b.headers=this.defaultHeaders;this.ajax(b)},campaignOpenCountByDates:function(b,c){var a={};a.url=this.urls.campaignOpenCountByDates;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},supportConsoleOnlineData:function(b){var a={};a.url=this.urls.supportConsoleOnlineData+"/1/100";a.callback=b;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},supportConsoleOfflineData:function(a,c){var b={};b.url=this.urls.supportConsoleOfflineData+"/"+a+"/1/100";b.callback=c;b.type=this.types.get;b.headers=this.defaultHeaders;this.ajax(b)},getUserInfo:function(b,c){var a={};a.url=this.urls.getUserInfo+"?email="+b;a.callback=c;a.type=this.types.get;a.headers=this.defaultHeaders;this.ajax(a)},updateUserInfo:function(b,c){var a={};a.url=this.urls.updateUserInfo;a.callback=c;a.data=b;a.type=this.types.post;a.headers=this.defaultHeaders;this.ajax(a)},ajax:function(d){var c=this;var f={processData:true,type:this.types.post,async:true,contentType:this.defaultMimeType,dataType:this.dataTypes.json};var g="";var a=0;var e=$.extend(true,{},f,d);if(typeof contextPath!="undefined"){e.url=contextPath+"/"+e.url}else{e.url="../"+e.url}if(e.dataType=="json"){e.data=JSON.stringify(e.data)}if(e.loaderContainer){$(e.loaderContainer).nimbleLoader("show")}var b={url:e.url,processData:e.processData,type:e.type,data:e.data,async:e.async,contentType:e.contentType,headers:e.headers,success:function(h){if(e.loaderContainer){$(e.loaderContainer).nimbleLoader("hide")}if($.isFunction(e.callback)){if(e.url.indexOf("login")>0){if(e.data.indexOf("Source")>0){c.loginInterceptor(h)}}e.callback(h,true)}},failure:function(h){if(e.loaderContainer){$(e.loaderContainer).nimbleLoader("hide")}if($.isFunction(e.callback)){e.callback(h,false)}},error:function(j,h,i){if(e.loaderContainer){$(e.loaderContainer).nimbleLoader("hide")}if($.isFunction(e.callback)){e.callback(j,h,i)}}};if(e.contentType){b.contentType=e.contentType}if(e.dataType){b.dataType=e.dataType}$.ajax($.extend(true,{},b))},configureObj:function(a){},downloadExcelFile:function(a){xhttp=new XMLHttpRequest();xhttp.onreadystatechange=function(){var b;var c="DownloadStatement.xls";var f=xhttp.getResponseHeader("Content-Disposition");if(f&&f.indexOf("attachment")!==-1){var e=/filename[^;=\n]*=(([""]).*?\2|[^;\n]*)/;var d=e.exec(f);if(d!=null&&d[1]){c=d[1].replace(/[""]/g,"")}}if(xhttp.readyState===4&&xhttp.status===200){b=document.createElement("a");b.href=window.URL.createObjectURL(xhttp.response);b.download=c;b.style.display="none";document.body.appendChild(b);b.click()}};xhttp.open("POST",a.url);xhttp.setRequestHeader("Content-Type",this.defaultMimeType);xhttp.setRequestHeader("AccessToken_"+whitelabel,a.headers.AccessToken);xhttp.setRequestHeader("DeviceUUID",a.headers.DeviceUUID);xhttp.responseType="blob";xhttp.send(JSON.stringify(a.data))},loginInterceptor:function(a){this.defaultHeaders.AccessToken=a.AccessToken;Fly.LocalStorageManager.addItem(Fly.Globals.LocalStorageKeys.BE_URL,a.ProfilePicUrl);Fly.LocalStorageManager.addItem("AccessToken_"+whitelabel,a.AccessToken)}});Fly.define("core.analytics.Adapter",{alias:"Adapter",instance:"auto",constructor:function(){this.initGoogle();this.initAdword()},initGoogle:function(){},initAdword:function(){},getGA:function(){},track:function(){}});Fly.define("core.analytics.Analytics",{singleton:true,alias:"Analytics",instance:"auto",constructor:function(){},track:function(f,d){var a=this;try{if(f){if(d&&d.category){if(f==Fly.Globals.ANALYTICS.FLIGHT_SEARCH_HS||f==Fly.Globals.ANALYTICS.BOOK_WIDGET_MODIFY_SEARCH){var c=Fly.Common.getSearchRequestedAnalyticsLabel(d.request);d.label=d.label+"."+c}a.trackGa("event",d.category,d.action,d.label)}else{if(f.indexOf("_reserved")>-1){a.onBook(f,d)}else{if(f.indexOf("_confirm")>-1){a.onConfirm(f,d)}else{if(f.indexOf("fare_")>-1){a.onFareSight(f,d)}else{if(f==Fly.Globals.ANALYTICS.NO_RESULTS_FOUND_HC){Fly.Common.trackUserSearchStatus(d);var b=Fly.Common.getSearchRequestedAnalyticsLabel(d);a.trackGa("event","Search Result","SearchResult.NotFound."+d.pageName,b)}else{if(f==Fly.Globals.ANALYTICS.FLIGHT_RESPONSE_HC){Fly.Common.trackUserSearchStatus(d)}else{if(f.indexOf("trippro_")>-1){a.trackTripproEvents(f,d)}else{a.trackGa("event","No.Data.Tracked",d.category,f)}}}}}}}}else{a.trackGa("event","No.Data.Tracked",f,"NA")}}catch(g){}},trackGa:function(d,a,c,b){if(typeof ga!="undefined"&&ga){ga("send",{hitType:d,eventCategory:a,eventAction:c,eventLabel:b})}},trackSearch:function(c){var i=this;var h=c.OriginDestination[0].DepartureLocationCode;var e=c.OriginDestination[0].ArrivalLocationCode;var b=c.OriginDestination[0].DepartureTime;var a=(c.OriginDestination[1])?c.OriginDestination[1].DepartureTime:null;var d=(c.OriginDestination[1])?"rw":"ow";var g=data;var f=h+"-"+e+"-"+b+"-"+a+"-"+d;i.trackGa("event",g,"search",f)},onResults:function(a,b){},onBook:function(c,g){var a=this;var d="PaymentPage";var f="Payment.Back";var b="Payment.Back.Click";if(c==Fly.Globals.ANALYTICS.BACK_TO_SEARCH_RESERVE_BC){b="Payment.Back.Click"}if(c==Fly.Globals.ANALYTICS.TRAVEL_INSURANCE_CHECKBOX_BC){f="Payment.Insurance";b="Payment.Insurance.Select"}if(c==Fly.Globals.ANALYTICS.TRAVEL_INSURANCE_CONFIRMED_BC){f="Payment.InsuranceConfirmed";b="Payment.Insurance.Selected"}if(c==Fly.Globals.ANALYTICS.PROMO_CODE_APPLY_BC){f="Payment.Promo";b="Payment.Promo.Apply"}if(c==Fly.Globals.ANALYTICS.TERMS_AND_CONDITIONS_BC){f="Payment.T&C";b="Payment.T&C.CheckBox"}if(c==Fly.Globals.ANALYTICS.RESERVE_FLIGHT_BOOK_BC){f="PaymentPage.Confirm";b="PaymentPage.Confirm.Click"}if(c==Fly.Globals.ANALYTICS.MOBILE_RESERVATION_NEXT_BC){if(g){f="Payment.Next";if(g.type=="flight"){b="PaymentPage.Next -1-2"}else{if(g.type=="passenger"){b="PaymentPage.Next - 2-3"}else{b="PaymentPage.Next.Confirm"}}}}if(c==Fly.Globals.ANALYTICS.RESERVE_ERROR_MSG_PAX){f="Payment.PaxInfo";b="Payment.PaxInfo.Fill";Fly.Util.trackUserBookingStatus(g.request,Fly.Globals.ANALYTICS.PAX_INFO)}if(c==Fly.Globals.ANALYTICS.RESERVE_ERROR_MSG_PAYMENT){f="Payment.PayInfo";b="Payment.PayInfo.Fill";Fly.Util.trackUserBookingStatus(g.request,Fly.Globals.ANALYTICS.CC_INFO)}if(c==Fly.Globals.ANALYTICS.RESERVE_ERROR_MSG_BILLING){f="Payment.BillInfo";b="Payment.BillInfo.Fill";Fly.Util.trackUserBookingStatus(g.request,Fly.Globals.ANALYTICS.BILLING_INFO)}if(c==Fly.Globals.ANALYTICS.RESERVE_ERROR_MSG_CONTACT){f="Paymnet.ConInfo";b="Paymnet.ConInfo.Fill"}try{if(c==Fly.Globals.ANALYTICS.RESERVATION_PNR_CONFIRM){f="Paymnet.Pnr";if(g){b="Paymnet.Pnr."+g.PNR}}}catch(h){}try{if(c==Fly.Globals.ANALYTICS.RESERVATION_PNR_ERROR){f="Paymnet.Error";if(g.errorsList&&g.errorsList.tperror&&g.errorsList.tperror.length>0){b="Paymnet.Error."+g.errorsList.tperror[0].errorCode}}}catch(h){}a.trackGa("event",d,f,b)},onConfirm:function(c,g){var a=this;var d="ConfirmPage";var f="ConfirmPage.PNR";var b="ConfirmPage.PNR";if(g){try{b="ConfirmPage.PNR."+g.pnr}catch(h){}}a.trackGa("event",d,f,b)},onFareSight:function(c,f){var a=this;var d="FareSight";var e="FareSight.Month";var b="FareSight.Graph.Onward";if(c==Fly.Globals.ANALYTICS.FARE_SIGHT_MONTH_SELECT_FD){var b="FareSight.Graph.Month"}if(c==Fly.Globals.ANALYTICS.FARE_SIGHT_ONWARD_SELECT_FD){e="FareSight.Onward";b="FareSight.Graph.Return"}if(c==Fly.Globals.ANALYTICS.FARE_SIGHT_RETURN_SELECT_FD){e="FareSight.Return";b="FareSight.Graph.Return"}a.trackGa("event",d,e,b)},trackGtaTraffic:function(f,g,c){var b=this;var d=20;var a="confirmed";if(f==Fly.Globals.ANALYTICS.RESERVATION_PNR_CONFIRM){if(g){d=g.Amount}a="confirmed"}if(f==Fly.Globals.ANALYTICS.RESERVATION_PNR_ERROR){if(g){d=g.Amount}a="failed"}try{b.trackGta(d,"",a,c.AnalyticsStatus)}catch(h){}},trackGta:function(c,b,a,d){if(typeof dataLayer!="undefined"&&dataLayer){dataLayer.push({Fare:c,Currency:"$",BookingStatus:a,MSS:d})}},trackCriteoEvents:function(b,c){var a=this;if(b==Fly.Globals.ANALYTICS.CRITEO_HOME){a.trackCriteoSearch(c)}if(b==Fly.Globals.ANALYTICS.CRITEO_ITINERARY_VISTED){a.trackItineraryVisit(c)}if(b==Fly.Globals.ANALYTICS.RESERVE_FLIGHT_BOOK_BC){a.trackCriteoBook(c)}if(b==Fly.Globals.ANALYTICS.CRITEO_CONFIRM){a.trackCriteoSales(c)}},trackItineraryVisit:function(e){var m=this;var l=[];var g=[];var a=m.getDeviceType();var c=Fly.LocalStorageManager.getItem("MD5Email");var b=Fly.Common.getSearchInfoFromLocalStorage();var j="",i="",f=null;if(typeof b.origin!="undefined"&&typeof b.destination!="undefined"){l.push(b.origin+"-"+b.destination);j=b.origin;i=b.destination}if(typeof b.ReturnDate=="undefined"){b.ReturnDate=""}if(typeof b.ChildCount=="undefined"){b.ChildCount=0}if(typeof b.InfantCount=="undefined"){b.InfantCount=0}var h=Fly.Globals.FlightItineraries;if(h&&h.FlightItinerary){var k=Fly.Common.sortByCheapest(h.FlightItinerary);if(k.length>0){f=k[0].Fares[0].TravellerBaseFare+k[0].Fares[0].TravellerTaxes;f=parseFloat(f).toFixed(2)}}var d={PageType:"ListingPage",Email:c,din:b.OnWardDate,dout:b.ReturnDate,nbra:b.AdultCount,nbrc:b.ChildCount,nbri:b.InfantCount,ProductIDList:l,totalfare:f,from:j,to:i,pagename:"searchresults"};m.trackCriteo(d)},trackCriteoSearch:function(f){var c=this;var d=[];var e=c.getDeviceType();var b=Fly.LocalStorageManager.getItem("MD5Email");var a={PageType:"HomePage",Email:b};c.trackCriteo(a)},trackCriteoBook:function(f){var m=this;var g="";var l=[];var i=[];var a=m.getDeviceType();var c=Fly.LocalStorageManager.getItem("MD5Email");var b=Fly.Common.getSearchInfoFromLocalStorage();var k="",j="";if(typeof b.ReturnDate=="undefined"){b.ReturnDate=""}if(typeof b.ChildCount=="undefined"){b.ChildCount=0}if(typeof b.InfantCount=="undefined"){b.InfantCount=0}if(typeof b.origin!="undefined"&&typeof b.destination!="undefined"){g=b.origin+"-"+b.destination;k=b.origin;j=b.destination}if(!f.totalAmount){f.totalAmount=""}else{try{f.totalAmount=parseFloat(f.totalAmount).toFixed(2)}catch(h){}}var d={PageType:"BasketPage",Email:c,din:b.OnWardDate,dout:b.ReturnDate,nbra:b.AdultCount,nbrc:b.ChildCount,nbri:b.InfantCount,"Flight ID":g,"Flight Price":f.totalAmount,from:k,to:j,currency:b.CurrencyCode,paymentOption:null,pagename:"cart"};console.log("trackCriteoBook Analytics :: "+f.totalAmount);m.trackCriteo(d)},trackCriteoSales:function(g){var o=this;var h="";var n=[];var j=[];var b=o.getDeviceType();var d=Fly.LocalStorageManager.getItem("MD5Email");var c=Fly.Common.getSearchInfoFromLocalStorage();var l="",k="",f="",m="";if(typeof c.ReturnDate=="undefined"){c.ReturnDate=""}if(typeof c.ChildCount=="undefined"){c.ChildCount=0}if(typeof c.InfantCount=="undefined"){c.InfantCount=0}if(typeof c.origin!="undefined"&&typeof c.destination!="undefined"){h=c.origin+"-"+c.destination;l=c.origin;k=c.destination}if(typeof etcmp!="undefined"){f=etcmp}if(typeof etadg!="undefined"){m=etadg}console.log("SkyScanner Analytics :: "+g.MSS);if(g.TotalAmount){try{g.TotalAmount=parseFloat(g.TotalAmount).toFixed(2)}catch(i){}}var a={PageType:"TransactionPage",Email:d,din:c.OnWardDate,dout:c.ReturnDate,nbra:c.AdultCount,nbrc:c.ChildCount,nbri:c.InfantCount,"Flight ID":h,"Flight Price":g.TotalAmount,"Transaction ID":g.PNR,MSS:g.MSS,from:l,to:k,pagename:"purchase",etcmp:f,etadg:m};o.trackCriteo(a)},trackCriteo:function(b){if(typeof dataLayer!="undefined"&&dataLayer){b.event="Criteo";dataLayer.push(b);try{if(dataLayer.length>0){if(dataLayer[dataLayer.length-1].pagename=="searchresults"){Fly.LocalStorageManager.addJsonItem("Criteo_Search",dataLayer)}else{if(dataLayer[dataLayer.length-1].pagename=="purchase"){Fly.LocalStorageManager.addJsonItem("Criteo_Purchase",dataLayer)}else{if(dataLayer[dataLayer.length-1].pagename=="cart"){Fly.LocalStorageManager.addJsonItem("Criteo_Cart",dataLayer)}}}}}catch(a){console.log("trackCriteo Analytics :: "+a)}}},getDeviceType:function(){var a=this;var b=/iPad/.test(navigator.userAgent)?"t":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent)?"m":"d";return b},trackTripproEvents:function(e,c){var a=this;var f="Login";var g="Login.";var b="Login.Graph.Onward";if(e==Fly.Globals.TRIPPRO_ANALYTICS.LOGIN){if(c){if(c.hasOwnProperty("Email")){var d=c.Email;g="Login."+d;b="Login."+d}}}if(e==Fly.Globals.TRIPPRO_ANALYTICS.LOGOUT){f="Logout";if(c){if(c.hasOwnProperty("Email")){var d=c.Email;g="Logout."+d;b="Logout."+d}}}a.trackGa("event",f,g,b)}});Fly.define("core.analytics.Config",{});Fly.define("core.analytics.Google",{singleton:true,instance:"auto",alias:"GA",constructor:function(){},track:function(){},set:function(){}});Fly.define("core.event.EventManager",{singleton:true,alias:"EventManager",instance:"auto",eventSubscriptions:{},keys:[],keyVsEvents:{},fireOptionsDefault:{blocked:true},put:function(a,b){if(!this.eventSubscriptions[a]){this.eventSubscriptions[a]=[]}this.eventSubscriptions[a].push(b)},subscribe:function(a){if(this.isValidOptionsForSubscription(a)){this.keys.push(a.key);if(!this.keyVsEvents[a.key]){this.keyVsEvents[a.key]=[]}this.keyVsEvents[a.key].push(a.eventName);this.put(a.eventName,a)}else{this.overWriteSubsciption(a)}},subscribeAll:function(b){var a=b.eventNames;if(eventNames){for(var c in b){b.eventName=eventNames[c];this.put(eventNames[c],b)}}else{}},fire:function(i){i=$.extend(this.fireOptionsDefault,i);var e=i.eventName;var d=i.onFireCallback;var c=i.data;var h=this.eventSubscriptions[e];var g=[];for(var a in h){var b=h[a];if($.isFunction(b.callback)){var f={data:c,subscriptionData:b.subscriptionData,eventName:b.eventName,key:b.key};g.push(b.key);if(i.blocked){b.callback(f)}else{setTimeout(function(){b.callback(f)},0)}if($.isFunction(d)){d(f)}}}},isValidOptionsForSubscription:function(d){var e=d.key;var b=d.eventName;var f=d.callback;var c=d.subscriptionData;var a=this.keyVsEvents[e];if(this.isEventVsKeyExists(e,b)){return false}return true},overWriteSubsciption:function(a){var c=this.eventSubscriptions[a.eventName];for(var b in c){var d=c[b];if(d.key==a.key){c[b]=a}}},isEventVsKeyExists:function(b,a){if($.inArray(b,this.keys)>=0&&$.inArray(a,this.keyVsEvents[b])>=0){return true}}});Fly.define("core.storage.DBManager",{singleton:true,alias:"DB",instance:"auto",constructor:function(){this.createDB();this.loadSchemas();this.loadData()},createDB:function(){var a=this},loadSchemas:function(){},loadData:function(){},insert:function(a,b){},update:function(a,b){},remove:function(a,b){},select:function(b,a){}});Fly.define("core.types.Controller",{singleton:false,type:"types",instance:"auto",type:"Controller",templateLoaded:false,getClassName:function(){return this.className||"No Class Name Associated"},init:function(){var a=this;if(a.templatePath){Fly.Template.load({tplPath:a.templatePath,callback:function(){if(a.afterTemplateLoaded&&typeof a.afterTemplateLoaded=="function"){a.templateLoaded=true;a.afterTemplateLoaded()}}})}}});Fly.define("core.types.DAO",{instance:"auto",alias:"DAO"});Fly.define("core.types.Launcher",{instance:"auto",type:"Launcher",init:function(){this.preload();window.addEventListener("load",this.launch)},preload:function(){}});Fly.define("core.types.Navigation",{instance:"auto",alias:"Navigation"});Fly.define("core.types.Service",{instance:"auto"});Fly.define("core.types.Storage",{instance:"auto",alias:"Storage"});Fly.define("core.types.Template",{});Fly.define("core.types.Widget",{singleton:false,instance:"auto",type:"Widget",autoRender:true,init:function(){if(!this.el&&this.model&&this.model.id){this.el=this.model.id}this.registerHelpers();if(this.autoRender){this.doRender()}},doRender:function(){this.beforeRender();this.render();this.applyStyle();this.afterRender()},clear:function(){$("#"+this.renderEl).html("")},render:function(){var b=new Date();if(this.renderEl){this.renderHtml()}var a=new Date()-b},renderHtml:function(){if(this.html){if(this.template&&typeof this.template==="function"){Fly.Template.renderTemplateOnHtml(this.renderEl,this.template(),this.model)}else{if(this.template){Fly.Template.renderTemplateOnHtml(this.renderEl,this.template,this.model)}else{Fly.Template.htmlByEl(this.renderEl,this.templateEl,this.model)}}}else{if(this.template&&typeof this.template==="function"){Fly.Template.renderTemplate(this.renderEl,this.template(),this.model)}else{if(this.template){Fly.Template.renderTemplate(this.renderEl,this.template,this.model)}else{Fly.Template.renderByEl(this.renderEl,this.templateEl,this.model,this.insertion)}}}},applyStyle:function(){if(this.style){console.log("applying styles");console.log(this.styles);this.DOM.css(this.styles)}},registerHelpers:function(){},beforeRender:function(){},afterRender:function(){},show:function(){this.DOM.hide()},hide:function(){this.DOM.hide()},height:function(){return this.DOM.height()},width:function(){return this.DOM.width()},parent:function(){return this.DOM.parent()},autoBind:function(d,a,b,c){}});Fly.define("core.util.AWSUtil",{singleton:true,alias:"AWSUtil",instance:"auto",defaults:{awsUrl:"https://s3.amazonaws.com/",bucket:"tripproimages",accessKeyId:"AKIAI2OJOZ4LESBAG4EA",secretAccessKey:"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",region:"us-east-1"},constructor:function(){var a=this},init:function(){var a=this;try{AWS.config.update({accessKeyId:a.defaults.accessKeyId,secretAccessKey:a.defaults.secretAccessKey,region:a.defaults.region})}catch(b){console.log("init : ",b)}},uploadToAWS:function(d,e,c,b,h){var a=this;a.init();var g=new AWS.S3({params:{Bucket:(!Fly.Common.isEmptyNullUndefined(d))?d:a.defaults.bucket}});if(b){var f={Bucket:(!Fly.Common.isEmptyNullUndefined(d))?d:a.defaults.bucket,Key:e+"/"+c,ContentType:b.type,Body:b};console.log("params : ",f);console.log("aws bucket : ",g);g.putObject(f,function(l,k){if(l){Fly.AlertMessage.showMessage("Error uploading image/file : ",l)}else{var i=(!Fly.Common.isEmptyNullUndefined(d))?d:a.defaults.bucket;var j=a.defaults.awsUrl+i+"/"+e+"/"+c;console.log("url : ",j);h(j)}})}else{Fly.AlertMessage.showMessage("Uploaded file not available")}},getUploadedImages:function(b,c){var a=this;var d={};var e=new AWS.S3({params:{Bucket:(!Fly.Common.isEmptyNullUndefined(b))?b:a.defaults.bucket}});e.listObjects({Prefix:c},function(f,g){if(f){}else{var i="";var h="";g.Contents.forEach(function(j){console.log("obj.Key : ",j.Key);h=a.defaults.awsUrl+"/"+b+"/"+j.Key;d[j.key]=h})}})}});Fly.define("core.util.CommonValidatorUtils",{singleton:true,alias:"CommonValidator",instance:"auto",constructor:function(){},isValidDKNumber:function(g,b,h){var a=true;var d="";if(!Fly.Common.isNull(g)){g=g.replace(/^\s\s*/,"")}if(Fly.Common.isEmptyNullUndefined(g)){d=Fly.I18N.DK_NUMBER_ERR_RULE_0;a=false}else{g=g.toUpperCase();if(!Fly.Common.checkRegExp(g,MONDEE.constants.ALPHA_NUMERIC_REG_EXP)){d=Fly.I18N.DK_NUMBER_ERR_RULE_1;a=false}var c=[6,7,10];if(a&&2==b){if(Fly.Common.length(g)==0||Fly.Common.length(g)>10){d=Fly.I18N.DK_NUMBER_ERR_RULE_2;a=false}}else{if(h&&agenttypebl){if(a&&$.inArray(Fly.Common.length(g),c)==-1){d=Fly.I18N.DK_NUMBER_ERR_RULE_3;a=false}}else{if(a&&Fly.Common.length(g)!=10){d=Fly.I18N.DK_NUMBER_ERR_RULE_2;a=false}}}}if(!a){var f={alertMessage:d};Fly.AlertMessage.showMessage(f.alertMessage)}return a},isBranchSelected:function(f,b){var a=true;var c="";if(Fly.Common.isEmptyNullUndefined(f)){c=Fly.I18N.BRANCH_ERR_RULE_0;a=false}if(!a){var d={alertMessage:c};Fly.AlertMessage.showMessage(d.alertMessage)}return a},validateAddressFields:function(s,r,j,F){for(var w in s){var p=s[w];if(p.paymentTypeId!=6&&p.paymentTypeId!=2&&p.paymentTypeId!=0){var B=p.paymentTypeId;var C="";var v="";var D="";var m="";var t="";var q="";var b="";var a="";var f="";var o="";if(B==1||B==4){C=p.paymentType;v=$.trim(p.creditCardNum);D=p.cvvNumber;m=p.amount;t=p.authCode;q=p.cardHoldersName;b=p.expMonth;a=p.expYear;f=p.creditCardType;o=p.creditCardTypeName}if(j){var A=p.address1;var z=p.address2;var k=p.city;var d=p.country;var h=p.state;var n=p.zipCode}if(B==1||B==4){if(!this.validateCreditCard(f,v,a,b)){return false}}if(m==0&&!j&&!F.isSubmitForManulTicket){var y={alertMessage:Fly.I18N.GENERATE_AUTHCODE_RULE_4};Fly.AlertMessage.showMessage(y.alertMessage);return false}if(B==1||B==4){if(!Fly.Common.isEmptyNullUndefined(t)){var E=/^([a-zA-Z|0-9]{6})$/gi;if(!t.match(E)){var y={alertMessage:Fly.I18N.AUTH_CODE_ERR_RULE_1};Fly.AlertMessage.showMessage(y.alertMessage);return false}else{return true}}if(Fly.Common.isEmptyNullUndefined(D)){var y={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_12};if(j){Fly.AlertMessage.showMessage(y.alertMessage);return false}}else{if(D.length<3){var y={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_11};Fly.AlertMessage.showMessage(y.alertMessage);return false}else{var u=D.length;var l=0;for(var x=0;x<u;x++){if((D.charAt(x)>="0"&&D.charAt(x)<="9")){l++}}if(l==u){}else{var y={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_12};if(j){Fly.AlertMessage.showMessage(y.alertMessage);return false}}}}if(p.enableCcBankLabels){if(!this.isValidCreditCardIssuingBankName(p.bankName)){return false}var G=p.bankPhNum.split(" ");if(!G[0].match(MONDEE.constants.INTL_PHONE_NUMBER_REG_EXP)){var y={alertMessage:Fly.I18N.PHONE_NUMBER_RULE_1};Fly.AlertMessage.showMessage(y.alertMessage);return false}else{if(!this.isValidContactNumber(G[1])){return false}}}if(j){if(!this.isValidName(q,null,null)){return false}}}if(j){if(!this.isValidAddress(A)){return false}if($.trim(z).length!=""){if(!this.isValidAddress(z)){return false}}if(!this.isValidCityName(k)){return false}if(!this.isValidCountry(d)){return false}if(!this.isValidState(h)){return false}if(!this.isValidPincode(n)){return false}if(B==1||B==4){if(F.whiteLabelConsolidatorIds&&F.whiteLabelConsolidatorIds==MONDEE.constants.SELLOFFVACATIONS_CONSOLIDATOR_ID){if(d&&h&&h=="487"&&d=="37"){var c;c='<div class="text" style="float: left;align:center">'+Fly.I18N.OPC_TAX_ALERT_MESSAGE;c+="<br/>Click ok button to continue with the booking";c+="</div>";var g={element:"body",alertMessage:"",closeBtn:true,ui:c,buttons:[{id:"ok",label:Fly.I18N.BUTTON_CONFIRM_LABEL,callback:function(){return false}},{id:"cancel",label:Fly.I18N.BUTTON_CANCEL_LABEL,callback:function(){return true}},{id:Fly.I18N.BUTTON_CLOSE_LABEL,label:Fly.I18N.BUTTON_CLOSE_LABEL}]};return confirm(Fly.I18N.OPC_TAX_ALERT_MESSAGE+"\nClick ok to continue or cancel to modify.")}}}}}}return true},validateCreditCard:function(g,l,m,k){if(!Fly.Common.isEmptyNullUndefined(g)){var i=g.split("_");if(i.length==2){g=i[1]}}var a=new Date();var d=a.getFullYear();var h=a.getMonth()+1;var c=[1,2,3,4,5,6,7,8,9,10,11,12];if(g==0){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_0};Fly.AlertMessage.showMessage(f.alertMessage);return false}if(null==l||l==""){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_1};Fly.AlertMessage.showMessage(f.alertMessage);return false}var b=/^([0-9][\\d]*[0-9])+$/;if(!this.isValidCreditCardNumber(l)){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_4};Fly.AlertMessage.showMessage(f.alertMessage);return false}if(g==25){if(l.charAt(0)!=4){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_5};Fly.AlertMessage.showMessage(f.alertMessage);return false}if(l!=null&&l.length!=16){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_6};Fly.AlertMessage.showMessage(f.alertMessage);return false}}if(g==73){if(l.charAt(0)!=5){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_7};Fly.AlertMessage.showMessage(f.alertMessage);return false}if(l!=null&&l.length!=16){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_6};Fly.AlertMessage.showMessage(f.alertMessage);return false}}if(g==67){if(l.charAt(0)!=3){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_8};Fly.AlertMessage.showMessage(f.alertMessage);return false}if(l!=null&&l.length!=15){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_9};Fly.AlertMessage.showMessage(f.alertMessage);return false}}if(g==78){if(l.charAt(0)!=6){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_10};Fly.AlertMessage.showMessage(f.alertMessage);return false}if(l!=null&&l.length!=16){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_6};Fly.AlertMessage.showMessage(f.alertMessage);return false}}var j=this.getCreditCardFullName(g);if(!j){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_0};Fly.AlertMessage.showMessage(f.alertMessage);return false}if(!this.checkCreditCard(l,j)){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_13[ccErrorNo]};Fly.AlertMessage.showMessage(f.alertMessage);return false}if(k==0){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_14};Fly.AlertMessage.showMessage(f.alertMessage);return false}if((k<h)&&(m<=d)){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_2};Fly.AlertMessage.showMessage(f.alertMessage);return false}if($.inArray(parseInt(k),c)==-1){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_3};Fly.AlertMessage.showMessage(f.alertMessage);return false}if(m==0){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_15};Fly.AlertMessage.showMessage(f.alertMessage);return false}if(m<d){var f={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_2};Fly.AlertMessage.showMessage(f.alertMessage);return false}return true},isValidCreditCardNumber:function(d){var a=d.length;var c=0;for(var b=0;b<a;b++){if((d.charAt(b)>="0"&&d.charAt(b)<="9")){c++}}if(c==a){return true}else{return false}},ccErrorNo:0,checkCreditCard:function(p,c){var b=new Array();b[0]={name:Fly.I18N.CC_NAMES.VI,length:"13,16",prefixes:"4",checkdigit:true};b[1]={name:Fly.I18N.CC_NAMES.CA,length:"16",prefixes:"51,52,53,54,55",checkdigit:true};b[2]={name:Fly.I18N.CC_NAMES.AX,length:"15",prefixes:"34,37",checkdigit:true};b[3]={name:Fly.I18N.CC_NAMES.DS,length:"16",prefixes:"6011,650",checkdigit:true};var a=-1;for(var m=0;m<b.length;m++){if(c.toLowerCase()==b[m].name.toLowerCase()){a=m;break}}if(a==-1){ccErrorNo=0;return false}if(p.length==0){ccErrorNo=1;return false}p=p.replace(/\s/g,"");var t=p;var q=/^[0-9]{13,19}$/;if(!q.exec(t)){ccErrorNo=2;return false}if(b[a].checkdigit){var o=0;var s="";var l=1;var k;for(var m=t.length-1;m>=0;m--){k=Number(t.charAt(m))*l;if(k>9){o=o+1;k=k-10}o=o+k;if(l==1){l=2}else{l=1}}if(o%10!=0){ccErrorNo=3;return false}}var h=false;var r=false;var d;var n=new Array();var f=new Array();n=b[a].prefixes.split(",");for(var m=0;m<n.length;m++){var g=new RegExp("^"+n[m]);if(g.test(t)){r=true}}if(!r){ccErrorNo=3;return false}f=b[a].length.split(",");for(var l=0;l<f.length;l++){if(t.length==f[l]){h=true}}if(!h){ccErrorNo=4;return false}return true},isValidCreditCardIssuingBankName:function(d){var a=true;var c="";if(Fly.Common.isEmptyNullUndefined(d)){a=false;c=Fly.I18N.CC_TYPE_ERR_RULE_17}if(a&&!d.match(MONDEE.constants.ALPHABETIC_HYPHEN_REG_EXP)){a=false;c=Fly.I18N.CC_TYPE_ERR_RULE_18}if(!a){var b={alertMessage:c};Fly.AlertMessage.showMessage(b.alertMessage);return false}return true},paxDOBValidation:function(g,i,h,b,f){var d=this;var a=Fly.Common.getPaxTypeNameById(i);if(Fly.Common.isEmptyNullUndefined(g)){return d.dobRequiredMessage(h,a,f)}else{g=this.dateformateChange(g);if(g==""){return d.dobRequiredMessage(h,a,f)}if(!Fly.DateUtils.isBeforeCurrentDate(g)){return Fly.Common.showMessage(false,true,a+Fly.I18N.DOB_ERR_RULE_1)}var c=Fly.DateUtils.getYearDifferance(g,b);if(i==1&&c<12){return Fly.Common.showMessage(false,true,Fly.I18N.DOB_ERR_RULE_4)}else{if(i==2&&(c<2||c>=12)){return Fly.Common.showMessage(false,true,Fly.I18N.DOB_ERR_RULE_2)}else{if(i==3&&c>=2){return Fly.Common.showMessage(false,true,Fly.I18N.DOB_ERR_RULE_3)}}}}return true},getPaxTypeByDOB:function(d,a){var c=this;if(!(Fly.Common.isEmptyNullUndefined(d))){d=this.dateformateChange(d);if(d==""){return 0}if(!Fly.DateUtils.isBeforeCurrentDate(d)){return 0}var b=Fly.DateUtils.getYearDifferance(d,a);if(b>=12){return 1}else{if(b>=2&&b<12){return 2}else{if(b<2){return 3}}}}return 0},dobRequiredMessage:function(c,a,b){if(c){if(typeof b!="undefined"&&b){return Fly.Common.showMessage(false,true,Fly.I18N.DOB_ERR_RULE_8+a)}else{return Fly.Common.showMessage(false,true,Fly.I18N.DOB_ERR_RULE_6+a)}}else{if(typeof b!="undefined"&&b){return Fly.Common.showMessage(false,true,Fly.I18N.DOB_ERR_RULE_9+a)}else{return Fly.Common.showMessage(false,true,Fly.I18N.DOB_ERR_RULE_0+a)}}},getCreditCardFullName:function(a){var b="";if(a.indexOf(25)!=-1){b=Fly.I18N.CC_NAMES.VI}else{if(a.indexOf(67)!=-1){b=Fly.I18N.CC_NAMES.AX}else{if(a.indexOf(78)!=-1){b=Fly.I18N.CC_NAMES.DS}else{if(a.indexOf(73)!=-1){b=Fly.I18N.CC_NAMES.CA}else{if(a.indexOf(80)!=-1){b=Fly.I18N.CC_NAMES.MI}}}}}return b},validatePassengerList:function(k,a,E,g,p,j){for(var y in k){var d=k[y];var H=d.documentNumber;var A=d.dateOfBirth;var q=d.gender;var v=d.mcoNumber;var n=d.profileName;var c=d.firstName;var u=d.paxId;var l=d.ctPaxTypeId;var G=d.documentExpiryDate;var s=d.passengerType;var r=d.nameNumber;var x=true;var f=d.itineraryLastArrivalDate;var b=d.isFromNewSearchUi;if(p){f=d.itineraryDepartureDate}var m="0";if(d.whiteLabelConsolidatorIds){m=d.whiteLabelConsolidatorIds}if(g){x=this.isValidName(d.lastName,y,Fly.I18N.LAST_NAME);if(x){x=this.isValidName(c,y,Fly.I18N.FIRST_NAME)}if(x&&!Fly.Common.isEmptyNullUndefined(d.middleName)){x=this.isValidName(d.middleName,y,Fly.I18N.MIDDLE_NAME)}if(!x){return false}}if(E&&(Fly.Common.isEmptyNullUndefined(v)||Fly.Common.length(v)!=13)){var z={alertMessage:Fly.I18N.MCO_NO_ERR_RULE_0+c};Fly.AlertMessage.showMessage(z.alertMessage);return false}else{if(E&&!Fly.Common.checkRegExp(v,MONDEE.constants.DECIMAL_REG_EXP)){var z={alertMessage:Fly.I18N.MCO_NO_ERR_RULE_1+c};Fly.AlertMessage.showMessage(z.alertMessage);return false}}if(!g&&a&&(Fly.Common.isEmptyNullUndefined(u)||$.trim(u).toUpperCase()=="0")){var z={alertMessage:Fly.I18N.PAX_TYPE_ERR_RULE_0+c};Fly.AlertMessage.showMessage(z.alertMessage);return false}if(a&&(Fly.Common.isEmptyNullUndefined(q)||$.trim(q).toUpperCase()=="0")){var z={alertMessage:Fly.I18N.GENDER_ERR_RULE_0+c};Fly.AlertMessage.showMessage(z.alertMessage);return false}if(typeof j!="undefined"&&j&&!Fly.Common.isEmptyNullUndefined(n)){}else{if(g&&((gdsEmulatorType==6)||!Fly.Common.isEmptyNullUndefined(n)||(m&&(m==MONDEE.constants.VAXPRO_CONSOLIDATOR_ID||m==MONDEE.constants.PROTRAVEL_CONSOLIDATOR_IDS)))&&!this.paxDOBValidation(A,l,g,f,b)){return false}}try{if((m&&m==MONDEE.constants.FLYEX_CONSOLIDATOR_ID)||(consolidatorId&&typeof consolidatorId!="undefined"&&typeof consolidatorId!=undefined&&consolidatorId==MONDEE.constants.EXPLORETRIP_CONSOLIDATOR_ID)){if(Fly.Common.isEmptyNullUndefined(A)){var D=this.paxDOBValidation(A,l,g,f,b);if(!D){return false}}}}catch(B){}if(a&&!(g&&Fly.Common.isEmptyNullUndefined(A))){var D=this.paxDOBValidation(A,l,g,f,b);if(!D){return false}}else{if((!Fly.Common.isEmptyNullUndefined(A))&&A){var D=this.paxDOBValidation(A,l,g,f,b);if(!D){return false}}}if(g&&!this.validatePassportInfo(d,a,g,p,b)){return false}if(!Fly.Common.isEmptyNullUndefined(G)&&!g){G=$.trim(G);var o=G.substring(3,5);var t=G.substring(6,10);var w=new Date();var F=w.getFullYear();var h=w.getMonth()+1;if((t<F)||((o<h)&&(t<=F))||((o-h)==0&&w.getDate()>G.substring(0,2))){var C=confirm(Fly.I18N.PASSPORT_EXP_ERR_RULE_1);if(!C){return false}}}}return true},confirmEemptyDOB:function(h){for(var d in h){var g=h[d];var c=g.dateOfBirth;var f=g.gender;var b=g.paxId;if(Fly.Common.isEmptyNullUndefined(c)||Fly.Common.isEmptyNullUndefined(f)||$.trim(f).toUpperCase()=="0"||Fly.Common.isEmptyNullUndefined(b)||$.trim(b).toUpperCase()=="0"){var a=Fly.Common.getPaxTypeNameById(g.ctPaxTypeId);return confirm(a+Fly.I18N.DOB_ERR_RULE_7);break}}return true},validatePassport:function(a,c,b){for(var d in a){if(!this.validatePassportInfo(a[d],c,false,false,b)){return false}}return true},validatePassportInfo:function(g,k,h,l,d){var f=g.documentNumber;var c=g.documentExpiryDate;var i=(g.nationalityCode==0)?"":g.nationalityCode;var a=(g.issueCountryCode==0)?"":g.issueCountryCode;var m=g.firstName;var j=g.itineraryLastArrivalDate;if(l){j=g.itineraryDepartureDate}if(h){k=h}if(!Fly.Common.isEmptyNullUndefined(f)||!Fly.Common.isEmptyNullUndefined(c)||!Fly.Common.isEmptyNullUndefined(i)||!Fly.Common.isEmptyNullUndefined(a)){if(k&&(Fly.Common.isEmptyNullUndefined(f))){var b={alertMessage:Fly.I18N.PASSPORT_NO_ERR_RULE_0+m};Fly.AlertMessage.showMessage(b.alertMessage);return false}else{if(k&&!f.match(/^[a-zA-Z0-9]+$/)){var b={alertMessage:Fly.I18N.PASSPORT_NO_ERR_RULE_1+m};Fly.AlertMessage.showMessage(b.alertMessage);return false}}if(h){if(!this.passportIssueDateValidation(g.documentIssueDate)){return false}if(!this.paxDOBValidation(g.dateOfBirth,g.ctPaxTypeId,h,j,d)){return false}}if(k&&(!this.passportExpDateValidation(c))){return false}if(k&&(Fly.Common.isEmptyNullUndefined(i))){var b={alertMessage:Fly.I18N.NATION_CODE_ERR_RULE_0+m};Fly.AlertMessage.showMessage(b.alertMessage);return false}if(k&&(Fly.Common.isEmptyNullUndefined(a))){var b={alertMessage:Fly.I18N.ISSUE_COUNTRY_CODE_ERR_RULE_0+m};Fly.AlertMessage.showMessage(b.alertMessage);return false}}return true},validatePassengerContactList:function(j){var g=true;for(var d in j){var a=j[d];var b=a.emailId;var h="0";h=a.whiteLabelConsolidatorIds;if($.trim(b)==""&&((gdsEmulatorType==6)||h&&(h==MONDEE.constants.PROTRAVEL_CONSOLIDATOR_IDS||h==MONDEE.constants.FLYEX_CONSOLIDATOR_ID))){g=this.isValidEmail(b)}else{if($.trim(b)!=""){g=this.isValidEmail(b)}}var k=a.phoneNumber;if((typeof isAmexTpnUser!="undefined"&&isAmexTpnUser)||(typeof a.isCrossMrktSearch!="undefined"&&a.isCrossMrktSearch)){var f=a.countryCode;var c=a.phoneNo;g=this.isValidPhoneNumber(f,c)}else{if(($.trim(k)==""&&g)&&((gdsEmulatorType==6)||(h&&(h==MONDEE.constants.PROTRAVEL_CONSOLIDATOR_IDS||h==MONDEE.constants.FLYEX_CONSOLIDATOR_ID))||(a.isCrossMrktSearch))){g=this.isValidContactNumber(k,a.isCrossMrktSearch)}else{if($.trim(k)!=""&&g){g=this.isValidContactNumber(k,a.isCrossMrktSearch)}}}if(!g){return false}}return true},isValidEmail:function(a){if(Fly.Common.isEmptyNullUndefined(a)){var b={alertMessage:Fly.I18N.EMAIL_ID_RULE_0};Fly.AlertMessage.showMessage(b.alertMessage);return false}if(!a.match(MONDEE.constants.EMAIL_ID_REG_EXP)){var b={alertMessage:Fly.I18N.EMAIL_ID_RULE_1};Fly.AlertMessage.showMessage(b.alertMessage);return false}return true},isValidContactNumber:function(b,a){if(Fly.Common.isEmptyNullUndefined(b)){var c={alertMessage:Fly.I18N.PHONE_NUMBER_RULE_0};Fly.AlertMessage.showMessage(c.alertMessage);return false}if(a!=undefined&&a){var d=false;if(b.indexOf("+")==0){b=b.substring(1,b.length);d=true}if(d&&!b.match(MONDEE.constants.CMS_PHONE_NUMBER_REG_EXP_0)){var c={alertMessage:Fly.I18N.PHONE_NUMBER_RULE_1};Fly.AlertMessage.showMessage(c.alertMessage);return false}else{if(!d&&!b.match(MONDEE.constants.CMS_PHONE_NUMBER_REG_EXP_1)){var c={alertMessage:Fly.I18N.PHONE_NUMBER_RULE_1};Fly.AlertMessage.showMessage(c.alertMessage);return false}}}if(isAmexTpnUser){return true}else{if(!b.match(MONDEE.constants.PHONE_NUMBER_REG_EXP)){var c={alertMessage:Fly.I18N.PHONE_NUMBER_RULE_1};Fly.AlertMessage.showMessage(c.alertMessage);return false}}return true},isValidPhoneNumber:function(a,b){if(Fly.Common.isEmptyNullUndefined(b)){var c={alertMessage:Fly.I18N.PHONE_NUMBER_RULE_0};Fly.AlertMessage.showMessage(c.alertMessage);return false}if(!a.match(MONDEE.constants.TPN_COUNTRY_CODE_REG_EXP_0)){var c={alertMessage:Fly.I18N.COUNTRY_CODE_RULE_0};Fly.AlertMessage.showMessage(c.alertMessage);return false}if(!b.match(MONDEE.constants.TPN_PHONE_NUMBER_REG_EXP)){var c={alertMessage:Fly.I18N.PHONE_NUMBER_RULE_1};Fly.AlertMessage.showMessage(c.alertMessage);return false}return true},isValidName:function(c,b,f){var a=true;var d="";var g="";if(Fly.Common.isEmptyNullUndefined(c)){if(b==null){d=Fly.I18N.CARD_HOLDER_NAME_ERR_RULE_0}else{g=this.numberDisplay(parseInt(b)+1,g);d=Fly.I18N.PLEASE_ENTER_STRING+g+" "+Fly.I18N.SEARCH_RESULTS_PRICE_DETAILS_PASSENGER+" "+f}a=false}if(a){if(b==null){if(!c.match(MONDEE.constants.ALPHABETIC_HYPHEN_REG_EXP)){d=Fly.I18N.CARD_HOLDER_NAME_ERR_RULE_1;a=false}}else{if(!c.match(MONDEE.constants.ALPHABETIC_SPACE_REG_EXP)){g=this.numberDisplay(parseInt(b)+1,g);d=g+" "+Fly.I18N.SEARCH_RESULTS_PRICE_DETAILS_PASSENGER+" "+f+" must be Alphabetic ";a=false}}}if(f==Fly.I18N.LAST_NAME){if(c.length==1){d=Fly.I18N.BOOKING_PAGE_LAST_NAME_MSG;a=false}}return Fly.Common.showMessage(a,true,d)},isLengthExceeded:function(b,d,h){var a=true;var c="";var f=0;if(d=="passengerNames"){f=h.lastName.length;f+=h.firstName.length;if(!Fly.Common.isEmptyNullUndefined(h.middleName)){f+=h.middleName.length}var g=h.title;if(g=="1"||g=="3"||g=="5"){f+=2}else{if(g=="4"||g=="6"){f+=4}else{if(g=="2"){f+=3}}}if(f>29){c=Fly.I18N.PASSENGER_NAME_EXCEEDEDMSG+" "+(parseInt(b)+1)+".";a=false}}return Fly.Common.showMessage(a,true,c)},isValidAddress:function(b){var a=true;var d="";var c=/^([a-zA-Z0-9_\s\-,#.&@/\/]*)$/;if(b.match(c)){if(Fly.Common.isEmptyNullUndefined(b)){d=Fly.I18N.ADDRESS_ERR_RULE0;a=false}}else{d=Fly.I18N.ADDRESS_ERR_RULE;a=false}return Fly.Common.showMessage(a,true,d)},isValidCityName:function(c){var b="";var a=true;if(Fly.Common.isEmptyNullUndefined(c)){b=Fly.I18N.CITY_NAME_ERR_RULE0;a=false}if(a&&!c.match(MONDEE.constants.CITI_NAME_REG_EXP)){b=Fly.I18N.CITY_NAME_ERR_RULE1;a=false}return Fly.Common.showMessage(a,true,b)},isValidCountry:function(c){var b="";var a=true;if(c==0){b=Fly.I18N.COUNTRY_NAME_ERR_RULE0;a=false}return Fly.Common.showMessage(a,true,b)},isValidState:function(c){var b="";var a=true;if(c==0){b=Fly.I18N.STATE_NAME_ERR_RULE0;a=false}return Fly.Common.showMessage(a,true,b)},isValidPincode:function(c){var b="";var a=true;if(Fly.Common.isEmptyNullUndefined(c)||c.length<3){b=Fly.I18N.ZIP_CODE_ERR_RULE_0;a=false}if(a&&!c.match(MONDEE.constants.ZIP_CODE_REG_EXP)){b=Fly.I18N.ZIP_CODE_ERR_RULE_0;a=false}return Fly.Common.showMessage(a,true,b)},allowCharacters:function(c,a){var g=true;var b=0;var f=c||window.event;keyCode=f.which||f.keyCode;var d=[8,9,35,36,37,38,39,40,45,46];if(!($.inArray(keyCode,d)>-1)&&(keyCode<65||keyCode>90)&&(keyCode<97||keyCode>123)&&keyCode!=32){g=false}return Fly.Common.showMessage(g,a,Fly.I18N.ERR_ROLE_ALLOW_ALPHA_CHARS_0)},allowAlphaNumeric:function(c,a){var g=true;var b=0;var f=c||window.event;b=f.which||f.keyCode;if(c){var d=[8,9,35,36,37,38,39,40,46];if(!($.inArray(b,d)>-1)&&!((b>47&&b<58)||(b>64&&b<91)||(b>96&&b<123)||b==0)){g=false}}return Fly.Common.showMessage(g,a,Fly.I18N.ERR_ROLE_ALLOW_ALPHA_NUMERIC_CHARS_0)},allowAlphaNumericHyphenSpaceBackspace:function(c,a){var g=true;var b=0;var f=c||window.event;b=f.which||f.keyCode;if(g&&c){var d=[8,9,32,,35,36,37,38,39,40,45,46,47,173,191,220];if(!($.inArray(b,d)>-1)&&!((b>47&&b<58)||(b>64&&b<91)||(b>96&&b<123)||b==0)){g=false}}return Fly.Common.showMessage(g,a,Fly.I18N.ERR_ROLE_ALLOW_ALPHA_NUMERIC_CHARS_0)},allowAlphaNumericWithSpaceHyphenDot:function(d,a,c){var h=true;var b=0;var g=d||window.event;b=g.which||g.keyCode;if(g.key.toUpperCase().match("DEL")){return true}h=Fly.Common.isCharExistsAtEnd(c,".",b);if(h){h=Fly.Common.isCharExistsAtEnd(c,"-",b)}if(h){h=Fly.Common.isCharExistsAtEnd(c,",",b)}if(d&&h){var f=[8,9,32,,35,36,37,38,39,40,44,45,46,188];if(!($.inArray(b,f)>-1)&&!((b>47&&b<58)||(b>64&&b<91)||(b>96&&b<123)||b==0||b==32||b==173)){h=false}}return Fly.Common.showMessage(h,a,Fly.I18N.ERR_ROLE_ALLOW_ALPHA_NUMERIC_CHARS_0)},allowNumbers:function(d,a){var g=true;var b=(d.which)?d.which:d.keyCode;var c=0;c=d.keyCode;var f=[37,39];if(b>31&&(b<48||b>57)&&((!($.inArray(c,f)>-1)&&d.keyCode==0))){g=false}return Fly.Common.showMessage(g,a,Fly.I18N.ERR_ROLE_ALLOW_NUMBERS_0)},allowNumbersForFare:function(f,a,d){var i=true;var c=0;var h=f||window.event;c=h.which||h.keyCode;if(typeof h.key!="undefined"&&h.key.toUpperCase().match("DEL")){return true}if(d.indexOf(".")>-1){var b=String.fromCharCode(c);if(b=="."){i=false}}if(d.indexOf("-")>-1){var b=String.fromCharCode(c);if(b=="-"){i=false}}if(f){var g=[8,9,35,36,37,38,39,40,45,46];if(!($.inArray(c,g)>-1)&&!(c>=48&&c<=57)){i=false}}return Fly.Common.showMessage(i,a,Fly.I18N.ERR_ROLE_ALLOW_DECIMALS_0)},allowAlphaNumericWithComa:function(d,a,c){var h=true;var b=0;var g=d||window.event;b=g.which||g.keyCode;h=Fly.Common.isCharExistsAtEnd(c,",",b);var f=[8,9,35,36,37,38,39,40,44,46];if(h&&!($.inArray(b,f)>-1)&&!((b>47&&b<58)||(b>64&&b<91)||(b>96&&b<123)||b==0)){h=false}return Fly.Common.showMessage(h,a,"")},allowNumbersComm:function(c,a){var g=true;var b=0;var f=c||window.event;b=f.which||f.keyCode;if(c){var d=[8,9,35,36,37,38,39,40,45,46,65,80,97,112];if($.inArray(b,d)>-1){return Fly.Common.showMessage(g,a,Fly.I18N.ERR_ROLE_ALLOW_DECIMALS_0)}}if(!(b>=48&&b<=57)){g=false}return Fly.Common.showMessage(g,a,Fly.I18N.ERR_ROLE_ALLOW_DECIMALS_0)},allowDecimals:function(c,a){var f=true;var b=0;var d=c||window.event;b=d.which||d.keyCode;if(c){if(b==9||b==45||b==46||b==35||b==36||b==8){return Fly.Common.showMessage(f,a,Fly.I18N.ERR_ROLE_ALLOW_DECIMALS_0)}}if(!(b>=48&&b<=57)){f=false}return Fly.Common.showMessage(f,a,Fly.I18N.ERR_ROLE_ALLOW_DECIMALS_0)},allowFloat:function(c,a,d){var h=true;var b=0;e=c||window.event;var g=d.value;b=e.which||e.keyCode;if(e.key.toUpperCase().match("DEL")){return true}if(g.indexOf(".")>-1&&b==46){h=false}if(h&&g.indexOf(".")>-1){var f=g.split(".");if(f.length>1){if(f[1].length==2){h=false}}}if(h&&!((b>=48&&b<=57)||(b==46))){h=false}return Fly.Common.showMessage(h,a,Fly.I18N.ERR_ROLE_ALLOW_DECIMALS_0)},numberDisplay:function(a,b){switch(parseInt(a)){case 1:b=a+"st";break;case 2:b=a+"nd";break;case 3:b=a+"rd";break;default:b=a+"th";break}return b},isValidHomeIpcc:function(f,b){var a=true;var c="";if(!Fly.Common.isEmptyNullUndefined(f)&&!Fly.Common.isEmptyNullUndefined(b)){if(a&&2==b){if(Fly.Common.length(f)!=9){c=Fly.I18N.HOMEIPCC_ERR_RULE_0;a=false}}else{if(a&&1==b){if(Fly.Common.length(f)!=4){c=Fly.I18N.HOMEIPCC_ERR_RULE_0;a=false}}else{if(a&&5==b){if(Fly.Common.length(f)!=3){c=Fly.I18N.HOMEIPCC_ERR_RULE_0;a=false}}}}}if(!a){var d={alertMessage:c};Fly.AlertMessage.showMessage(d.alertMessage)}return a},allowNumbersCommClaimOffered:function(d,a,c){var h=true;var b=0;var g=d||window.event;b=g.which||g.keyCode;h=Fly.Common.isCharExistsAtEnd(c,"a",b);if(h){h=Fly.Common.isCharExistsAtEnd(c,"A",b)}if(h){h=Fly.Common.isCharExistsAtEnd(c,"p",b)}if(h){h=Fly.Common.isCharExistsAtEnd(c,"P",b)}if(h){h=Fly.Common.isCharExistsAtEnd(c,"-",b)}if(d){var f=[8,9,35,36,37,38,39,40,45,46,65,80,97,112];if($.inArray(b,f)>-1){return Fly.Common.showMessage(h,a,Fly.I18N.ERR_ROLE_ALLOW_DECIMALS_0)}}if(!(b>=48&&b<=57)&&b!=45&&b!=46){h=false}return Fly.Common.showMessage(h,a,Fly.I18N.ERR_ROLE_ALLOW_DECIMALS_0)},isValidPriceMarkupInfo:function(d,c,a){var b=this;var f=$("#"+c).val();if(c.indexOf("fareType")>-1){return b.allowCharacters(d,a)}else{if(c.indexOf("commClaim")>-1||c.indexOf("commOff")>-1){return b.allowNumbersCommClaimOffered(d,a,f)}else{return b.allowNumbersForFare(d,a,f)}}return true},dateformateChange:function(c){var a=$.trim(c).length;var d=true;if(c.indexOf("/")>-1){var f=c.split("/");if(f.length==3){for(var b=0;b<3;b++){if(isNaN(f[b])){d=false}}if(d&&$.trim(f[1]).length==1){c="0"+f[1]}else{if(d&&$.trim(f[1]).length==2){c=f[1]}else{d=false}}if(d&&$.trim(f[0]).length==1){c+="/0"+f[0]}else{if(d&&$.trim(f[0]).length==2){c+="/"+f[0]}else{d=false}}if(d&&$.trim(f[2]).length==2){if(parseInt($.trim(f[2]))>17){c+="/19"+f[2]}else{c+="/20"+f[2]}}else{if(d&&$.trim(f[2]).length==4){c+="/"+f[2]}else{d=false}}}else{d=false}}else{if(d&&Fly.DateUtils.changeDateFormat2(c)!=""){c=Fly.DateUtils.changeDateFormat2(c)}else{d=false}}if(!d){return""}return c},passportExpDateValidation:function(c,d){var a=Fly.Common.getPaxTypeNameById(d);if(!Fly.Common.isEmptyNullUndefined(c)){c=this.dateformateChange(c);if(c==""){return Fly.Common.showMessage(false,true,Fly.I18N.ERR_RULE_PASSPORT_EXPIRY_DATE_0+a)}if(!Fly.DateUtils.isAfterCurrentDate(c)){return Fly.Common.showMessage(false,true,a+Fly.I18N.ERR_RULE_PASSPORT_EXPIRY_DATE_1)}var b=Fly.DateUtils.getYearDiff(c);if(b<0){b=-b}if(b>=30){return Fly.Common.showMessage(false,true,a+Fly.I18N.ERR_RULE_PASSPORT_EXPIRY_DATE_2)}}return true},passportIssueDateValidation:function(c,d){var a=Fly.Common.getPaxTypeNameById(d);if(!Fly.Common.isEmptyNullUndefined(c)){c=this.dateformateChange(c);if(c==""){return Fly.Common.showMessage(false,true,Fly.I18N.ERR_RULE_PASSPORT_ISSUE__DATE_0+a)}if(!Fly.DateUtils.isBeforeCurrentDate(c)){return Fly.Common.showMessage(false,true,a+Fly.I18N.ERR_RULE_PASSPORT_ISSUE__DATE_1)}var b=Fly.DateUtils.getYearDiff(c);if(b<0){b=-b}if(b<0||b>=70){return Fly.Common.showMessage(false,true,a+Fly.I18N.ERR_RULE_PASSPORT_ISSUE__DATE_2)}}return true},isDKNumberValid:function(c,b,a){var f={};f.rqOpt=MONDEE.constants.MOT_REQUEST_OTPS.VALIDATE_DK_NUMBER;f.consolidatorId=b;f.dkNumber=c;f.fromIctInfo=a;var d=false;$.ajax({url:"servlet/MotServlet",async:false,data:f,dataType:"json",method:"POST",success:function(g){if(g.isDKNumberValid){d=true}else{var h={alertMessage:Fly.I18N.ERR_INVALID_DK_NUMBER_0};this.alertWidget=MONDEE.widgetFactory.get("Alert",h);d=false}},failure:function(g){}});return d},allowAlphaNumericForManualTicketing:function(c,a){var g=true;var b=0;var f=c||window.event;b=f.which||f.keyCode;if(c){var d=[8,9,32,46];if(!($.inArray(b,d)>-1)&&!((b>47&&b<58)||(b>64&&b<91)||(b>96&&b<123)||(f.keyCode>34&&f.keyCode<41)||b==0)){g=false}}return Fly.Common.showMessage(g,a,Fly.I18N.ERR_ROLE_ALLOW_ALPHA_NUMERIC_CHARS_0)},validateHotelReservePassengerDetails:function(D,n,u,A,l,j,I){var x=true;var r="";var H="";for(var y in D){var w=D[y];var h=w.split(",");var B=I.contactEmail;var o=I.contactPhone;var E=I.airPnr;if(E!=null){E=$.trim(E)}if(Fly.Common.isEmptyNullUndefined(h[2])){r=Fly.I18N.PLEASE_ENTER_STRING+Fly.I18N.SEARCH_RESULTS_PRICE_DETAILS_PASSENGER+" "+Fly.I18N.LAST_NAME+"<br>";x=false}if(Fly.Common.isEmptyNullUndefined(h[0])){r=r+Fly.I18N.PLEASE_ENTER_STRING+Fly.I18N.SEARCH_RESULTS_PRICE_DETAILS_PASSENGER+" "+Fly.I18N.FIRST_NAME+"<br>";x=false}if(!E||0===E.length||E.length!=6){r=r+Fly.I18N.PLEASE_ENTER_STRING+" "+Fly.I18N.HOTEL_AIR_PNR+"<br>";x=false}if(n=="CON"||n=="CAR"){if(Fly.Common.isEmptyNullUndefined(u[y])||$.trim(u[y]).toUpperCase()=="0"){r=r+Fly.I18N.GENDER_ERR_RULE_0+"<br>";x=false}if(Fly.Common.isEmptyNullUndefined(A[y])){r=r+Fly.I18N.DOB_ERR_RULE_6+"<br>";x=false}if(x){var t=Fly.DateUtils.getYearDifferance(A,l);if(j==1&&t<12){x=false;r=Fly.I18N.DOB_ERR_RULE_4}}}H=this.getEmailValidation(B);if(H!=""){r=r+H+"<br>";H="";x=false}H=this.getContactNumberValidation(o);if(H!=""){r=r+H+"<br>";H="";x=false}if(n=="EXP"){var d=I.paymentMode;if(d&&d==1){var v=I.cardNum;var G=I.cvv;var c=I.expiryMonth;var b=I.expiryYear;var g=I.cardTypeCode;var q=I.creditCardTypeName;var s=I.cardHolderName;var a=I.cardHolderFNName;var F=I.cardHolderLNName;var C=I.address1;var z=I.address2;var m=I.billingcity;var f=I.country;var k=I.state;var p=I.pincode;if((null==v||v=="")||(null==G||G=="")||(null==c||c=="")||(null==b||b=="")||(null==g||g=="")){H=Fly.I18N.PLEASE_ENTER_STRING+Fly.I18N.RESERVATION_PAYMENT_INFORMATION_LABEL;r=r+H+"<br>";H="";x=false}if((null==s||s=="")||(null==C||C=="")||(null==m||m=="")||(null==f||f=="")||(null==k||k=="")||(null==p||p=="")){H=Fly.I18N.PLEASE_ENTER_STRING+Fly.I18N.RESERVATION_Billing_Information;r=r+H+"<br>";H="";x=false}}}Fly.Common.showMessage(x,true,r);if(!x){return true}}return true},getEmailValidation:function(a){var b="";return b},getContactNumberValidation:function(a){var b="";if(Fly.Common.isEmptyNullUndefined(a)){b=Fly.I18N.PHONE_NUMBER_RULE_0}if(!a.match(MONDEE.constants.PHONE_NUMBER_REG_EXP)){b=Fly.I18N.PHONE_NUMBER_RULE_1}return b},validateHotelPassengerContactInfo:function(d){var a=true;var c=d.contactEmail;var b=d.contactPhone;a=this.isValidEmail(c);if(a){a=this.isValidContactNumber(b)}if(!a){return false}return true},validateHotelPaymentDetails:function(z){var s=true;var w="";var q="";var x="";var k="";var o="";var c="";var b="";var f="";var m="";var n="";var a="";var y="";q=$.trim(z.cardNum);x=z.cvv;c=z.expiryMonth;b=z.expiryYear;f=z.cardTypeCode;m=z.creditCardTypeName;n=z.cardHolderName;a=z.cardHolderFNName;y=z.cardHolderLNName;var v=z.address1;var u=z.address2;var h=z.billingcity;var d=z.country;var g=z.state;var l=z.pincode;if(!this.validateCreditCard(f,q,b,c)){return false}if(Fly.Common.isEmptyNullUndefined(x)){var t={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_12};Fly.AlertMessage.showMessage(t.alertMessage);return false}else{if(x.length<3){var t={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_11};Fly.AlertMessage.showMessage(t.alertMessage);return false}else{var p=x.length;var j=0;for(var r=0;r<p;r++){if((x.charAt(r)>="0"&&x.charAt(r)<="9")){j++}}if(j==p){}else{var t={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_12};Fly.AlertMessage.showMessage(t.alertMessage);return false}}}if(!this.isValidName(n,null,null)){return false}if(!this.isValidAddress(v)){return false}if($.trim(u).length!=""){if(!this.isValidAddress(u)){return false}}if(!this.isValidCityName(h)){return false}if(!this.isValidCountry(d)){return false}if(!this.isValidState(g)){return false}if(!this.isValidPincode(l)){return false}return true},validateAndGetSuggestedDkNumber:function(c,a,b){var d={};d.rqOpt=MONDEE.constants.MOT_REQUEST_OTPS.VALIDATE_AND_GET_SUGGESTED_DK_NUMBER;d.dkNumber=c;d.consId=a;d.gdsId=b;var f="";$.ajax({url:"servlet/MotServlet",data:d,dataType:"json",async:false,method:"POST",success:function(g){f=g.suggestedDKnumber},failure:function(g){}});return f},uploadedCustomerReviewInfo:function(c,b){var d={};d.rqOpt=MONDEE.constants.MOT_REQUEST_OTPS.UPLOADED_CUSTOMER_REVIEW_INFO;d.dkNumber=c;d.consolidatorId=b;var a="";$.ajax({url:"servlet/MotServlet",data:d,dataType:"json",async:false,method:"POST",success:function(f){a=f.customerReviewInfo},failure:function(f){}});return a},validateCVV:function(f){if(Fly.Common.isEmptyNullUndefined(f)){var c={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_12};Fly.AlertMessage.showMessage(c.alertMessage);return false}else{if(f.length<3){var c={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_11};Fly.AlertMessage.showMessage(c.alertMessage);return false}else{var a=f.length;var d=0;for(var b=0;b<a;b++){if((f.charAt(b)>="0"&&f.charAt(b)<="9")){d++}}if(d==a){return true}else{var c={alertMessage:Fly.I18N.CC_TYPE_ERR_RULE_12};Fly.AlertMessage.showMessage(c.alertMessage);return false}}}}});Fly.define("core.util.DateUtils",{singleton:true,alias:"DateUtils",instance:"auto",constructor:function(){},dateValidation:function(d,f){var e=false;d=d.toUpperCase();var c=new Array("JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC");var b=new Array("APR","JUN","SEP","NOV");var a=new Array("JAN","MAR","MAY","JUL","AUG","OCT","DEC");d=$.trim(d);d=d.toUpperCase();if(f=="ddMMM"){if(d.length!=5){return e}if(c.indexOf(d.substring(2,5))!=-1){if(d.substring(0,2)>0&&d.substring(0,2)<10){if(parseInt(d.substring(1,2))>0){e=true}}if(parseInt(d.substring(0,2))>0){if(b.indexOf(d.substring(2,5))!=-1&&parseInt(d.substring(0,2))<=30){e=true}else{if(a.indexOf(d.substring(2,5))!=-1&&parseInt(d.substring(0,2))<=31){e=true}else{if(parseInt(d.substring(0,2))<=28){e=true}}}}}}return e},getYearDiff:function(f){f=$.trim(f);var c=new Date();var e=f.substring(6,10);var b=(c.getFullYear())-(e);var g=f.substring(0,2);var d=c.getMonth()+1;var a=d-g;if(a<0||(a==0&&(c.getDate()<f.substring(3,5)))){b--}return b},getYearDifferance:function(d,e){d=$.trim(d);e=$.trim(e);if(e.length==11){e=this.changeDateFrmt(e)}var c=d.substring(6,10);var b=(e.substring(6,10))-(c);var f=d.substring(0,2);var a=e.substring(0,2)-f;if(a<0||(a==0&&(e.substring(3,5)<d.substring(3,5)))){b--}return b},getDaysDifferance:function(a,b){a=$.trim(a);b=$.trim(b);var e=new Date(a);var d=new Date(b);var f=Math.abs(d.getTime()-e.getTime());var c=Math.ceil(f/(1000*3600*24));return c},getWeekDay:function(b){var a=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");return a[new Date(b).getDay()]},isBeforeCurrentDate:function(c){c=$.trim(c);var a=new Date();var b=new Date(c);if(a.getTime()>b.getTime()){return true}else{return false}},getMonthVal:function(c){var b=$.trim(c).toUpperCase();var a="";if(b=="JAN"){a="01"}else{if(b=="FEB"){a="02"}else{if(b=="MAR"){a="03"}else{if(b=="APR"){a="04"}else{if(b=="MAY"){a="05"}else{if(b=="JUN"){a="06"}else{if(b=="JUL"){a="07"}else{if(b=="AUG"){a="08"}else{if(b=="SEP"){a="09"}else{if(b=="OCT"){a="10"}else{if(b=="NOV"){a="11"}else{if(b=="DEC"){a="12"}}}}}}}}}}}}return a},isDate:function(a){return(null!=a)&&!isNaN(a)&&("undefined"!==typeof a.getDate)},changeDateFormat:function(a){var b=a.split("-");if(b.length>2){return b[1]+"/"+b[2]+"/"+b[0]}return""},changeDateFormat2:function(a){if($.trim(a).length==6){a="0"+$.trim(a)}if($.trim(a).length==7&&this.getMonthVal(a.substring(2,5))!=""&&!isNaN(a.substring(0,2))&&!isNaN(a.substring(5,7))){var b="20";if(parseInt(a.substring(5,7))>17){b="19"}return this.getMonthVal(a.substring(2,5))+"/"+a.substring(0,2)+"/"+b+a.substring(5,7)}return""},getMonthNumber:function(b){b=$.trim(b).toUpperCase();var a="";if(b.indexOf("0")==0){b=b.substring(1,2)}switch(parseInt(b)){case 1:a="JAN";break;case 2:a="FEB";break;case 3:a="MAR";break;case 4:a="APR";break;case 5:a="MAY";break;case 6:a="JUN";break;case 7:a="JUL";break;case 8:a="AUG";break;case 9:a="SEP";break;case 10:a="OCT";break;case 11:a="NOV";break;case 12:a="DEC";break}return a},isAfterCurrentDate:function(c){c=$.trim(c);var a=new Date();var b=new Date(c);if(a.getTime()<b.getTime()){return true}else{return false}},getMonthsDiff:function(i,a){var e=new Date(i);var h=new Date(a);var b=0;var f={d:e.getDate(),m:e.getMonth()+1,y:e.getFullYear()};var g={d:h.getDate(),m:h.getMonth()+1,y:h.getFullYear()};var d=g.y%4!=0||(g.y%100==0&&g.y%400!=0)?28:29;var c=[0,31,d,31,30,31,30,31,31,30,31,30,31];if(g.d<f.d){g.d+=c[parseInt(g.m)];f.m+=1}if(g.m<f.m){g.m+=12;f.y+=1}if(((g.y-f.y)>0)){return 1}b=g.m-f.m;return b},getDateFormat:function(a,b){var c=a.split(b);var d=MONDEE.utils.DateUtils.getMonthNumber(c[0]);d=d.substring(0,1)+d.substring(1).toLowerCase();return c[1]+" "+d+" "+c[2]},changeDateFrmt:function(a){return this.getMonthVal(a.substring(0,4))+"/"+a.substring(4,6)+"/"+a.substring(7,a.length+1)},getDateWithMMssSSFormat:function(){var a=new Date();return a.getHours()+":"+a.getMinutes()+":"+a.getSeconds()+":"+a.getMilliseconds()}});Fly.define("core.util.TemplateUtil",{singleton:true,instance:"auto",alias:"Template",constructor:function(){this.registerDefaultHelpers()},render:function(d,c,f){var e=$("#"+c).html();if(e){var b=Handlebars.compile(e);var a=b(f);d.append(a)}else{console.log("no soruce for the templateEl - "+templateEl)}},compile:function(a){if(a){return Handlebars.compile(a)}else{console.log("no source ")}},renderWithCallback:function(d,c,f,g){var e=$("#"+c).html();var b=Handlebars.compile(e);var a=b(f);d.append(a);g()},preRender:function(d,c,f){var e=$("#"+c).html();var b=Handlebars.compile(e);var a=b(f);d.prepend(a)},renderBefore:function(f,c,e){var d=$("#"+c).html();var b=Handlebars.compile(d);var a=b(e);$(a).insertBefore(f)},renderByEl:function(b,h,g,f){var e=$("#"+h).html();if(e){var c=Handlebars.compile(e);var a=c(g);var d={};if(b=="body"){d=$(b)}else{d=$("#"+b)}f=f?f:"append";d[f](a)}else{console.log("no soruce for the templateEl - "+h)}},htmlByEl:function(b,g,f){var e=$("#"+g).html();var c=Handlebars.compile(e);var a=c(f);var d={};if(b=="body"){d=$(b)}else{d=$("#"+b)}d.html(a)},htmlByElCallback:function(b,h,f,g){var e=$("#"+h).html();var c=Handlebars.compile(e);var a=c(f);var d={};if(b=="body"){d=$(b)}else{d=$("#"+b)}d.html(a);g(f)},html:function(d,c){var b=$("#"+d).html();var a=Handlebars.compile(b);return a(c)},htmlBySource:function(c,b){if(c){b=b?b:{};var a=Handlebars.compile(c);return a(b)}else{console.log(" no source");return""}},renderTemplateOnHtml:function(b,f,e){var c=Handlebars.compile(f);var a=c(e);var d={};if(b=="body"){d=$(b)}else{d=$("#"+b)}d.html(a)},renderTemplate:function(b,g,f,e){var c=Handlebars.compile(g);var a=c(f);var d={};if(b=="body"){d=$(b)}else{d=$("#"+b)}e=e?e:"append";d[e](a)},renderTempateObj:function(b,c,f,e){var a=c(f);var d={};if(b=="body"){d=$(b)}else{d=$("#"+b)}e=e?e:"append";d[e](a)},load:function(a){var b;if(!a.el){var b=$("<div>",{id:"templateHolder","class":"templateHolder"});$("body").append(b)}else{b=$("#"+a.el)}b.load(a.tplPath,a.callback)},loadToHolder:function(a,c){var b=$("#templateHolder");if(!$(b).length){b=$("<div>",{id:"templateHolder","class":"templateHolder"});$("body").append(b)}b.get(a,c)},before:function(){},after:function(){},loadAndRender:function(b){var a=Fly.buildTplPath(b.parts);$("#"+b.el).load(a+"/"+b.tpl,function(){Fly.TplUtil.render(b.DOM,b.tplId,b.data);if(b.callback&&typeof b.callback=="function"){b.callback(b.data,b.DOM,b.tplId)}})},registerPartial:function(a,b){Handlebars.registerPartial(a,$("#"+b).html())},registerHelper:function(a,b){Handlebars.registerHelper(a,b)},registerDefaultHelpers:function(){this.registerHelper("checkIsNotSite",function(options){if(typeof site!="undefined"&&site){return options.inverse(this)}return options.fn(this)});this.registerHelper("site",function(block){return(typeof site!="undefined"&&site)?site:false});this.registerHelper("path",function(block){return(typeof contextPath!="undefined"&&contextPath)?contextPath:""});this.registerHelper("platform",function(block){return(typeof platform!="undefined"&&platform)?platform:""});this.registerHelper("platformWhitelabel",function(block){return(typeof platformWhitelabel!="undefined"&&platformWhitelabel)?platformWhitelabel:""});this.registerHelper("ifNotTrips",function(block){return(typeof tripSource!="undefined"&&tripSource=="trip")?false:true});this.registerHelper("theme",function(block){return(typeof theme!="undefined"&&theme)?theme:""});this.registerHelper("tripSource",function(block){return(typeof contextPath!="undefined"&&contextPath)?contextPath:""});this.registerHelper("justTime",function(dataTimeString){return Fly.Util.hrAndSec(dataTimeString)});this.registerHelper("justAMorPM",function(dataTimeString){return Fly.Util.amOrPm(dataTimeString)});this.registerHelper("timeaOrP",function(dataTimeString){return Fly.Util.timeap(dataTimeString)});this.registerHelper("dtConvert",function(datetime,format){return Fly.Util.convert(datetime,format)});this.registerHelper("dateSubStrConvert",function(datetime,format){return Fly.Util.dateSubStrConvert(datetime,format)});this.registerHelper("dtBookingConvert",function(datetime,format){if(datetime!=null){return Fly.Util.convert(datetime.split(" ")[0],format)}else{return""}});this.registerHelper("dtBookingStatus",function(status){if(status!=null){var val=status;switch(status){case"TICKET_ORDERED":val="TICKET ORDERED";break}return val}else{return status}});this.registerHelper("dtConvertFrom",function(datetime,fromFormat,toFormat){return Fly.Util.convertFrom(datetime,fromFormat,toFormat)});this.registerHelper("ifValue",function(conditional,options){return Fly.Util.ifValue(conditional,options)});this.registerHelper("increment",function(number,options){return Fly.Util.increment(number,options)});this.registerHelper("length",function(items){return Fly.Util.total(items)});this.registerHelper("sector",function(sector,options){return Fly.Util.sector(sector,options)});this.registerHelper("ifNot",function(conditional,options){return Fly.Util.ifNotValue(conditional,options)});this.registerHelper("hideWhen",function(index){if(index>10){return Fly.Template.safeString("style='display:none;'")}});this.registerHelper("settingType",function(type,isInternal,options){if(type==isInternal){return options.fn(this)}return options.inverse(this)});this.registerHelper("IS_NOT_EQUAL",function(arg1,arg2,options){if(arg1!=arg2){return options.fn(this)}return options.inverse(this)});this.registerHelper("IS_EQUAL",function(arg1,arg2,options){if(arg1==arg2){return options.fn(this)}return options.inverse(this)});this.registerHelper("bagsRecheckRequired",function(segments,index,options){if(segments&&segments.FlightSegment&&segments.FlightSegment.length>(index+1)&&segments.FlightSegment[index+1]&&segments.FlightSegment[index+1].bagsRecheckRequired){return options.fn(this)}return options.inverse(this)});this.registerHelper("showTripTime",function(cityPairs,options){if(cityPairs.length>1){return options.fn(this)}return options.inverse(this)});this.registerHelper("showMarketFare",function(fares,from,options){var ret=options.inverse(this);try{if(from&&from=="link"&&fares.totalStrikedPubFare==0){ret=options.fn(this)}else{if(from&&(from=="special"||from=="price")&&fares.totalStrikedPubFare>0){var totalFare=Fly.Common.getToTFareFromFares(fares.Fares);if(from=="price"&&Number(totalFare)<fares.totalStrikedPubFare){ret=options.fn(this)}else{if(from=="special"&&Number(totalFare)>=fares.totalStrikedPubFare){ret=options.fn(this)}}}}}catch(e){}return ret});this.registerHelper("isLast",function(array,index,options){var length=array.length-1;if(length==index){return options.fn(this)}return options.inverse(this)});this.registerHelper("isFirst",function(array,index,options){var length=array.length-1;if(index==0){return options.fn(this)}return options.inverse(this)});this.registerHelper("when",function(context,index,options){var fn=options.fn,inverse=options.inverse;var ret="";if(context&&context.length>0){var first=(index==0);var last=(index==(context.length-1));var rest=index>=1&&index<context.length-1;ret=ret+fn($.extend({},context[index],{first:first,rest:rest,last:last}))}else{ret=inverse(this)}return ret});this.registerHelper("baseFare",function(fares){for(fareKey in fares){var fare=fares[fareKey];if(fare.PaxType=="ADT"){return Math.round(fare.TravellerBaseFare+fare.TravellerTaxes)}if(fareKey=="data"){return Math.round(fare.root.baseFare)}}});this.registerHelper("ifSeatAmountExists",function(fares,options){var ret=options.inverse(this);seatAmount=0;try{for(fareKey in fares){var fare=fares[fareKey];seatAmount=seatAmount+(fare.SeatFee*fare.count)}if(Number(seatAmount)>0){return options.fn(this)}}catch(e){console.log("Exception in method  :: "+e)}return ret});this.registerHelper("getSeatAmount",function(fares){var seatAmount=0;for(fareKey in fares){var fare=fares[fareKey];seatAmount=seatAmount+(fare.SeatFee*fare.count)}return Number(seatAmount).toFixed(2)});this.registerHelper("totalBaseFare",function(fares){var baseFareTotal=0;for(fareKey in fares){var fare=fares[fareKey];baseFareTotal=baseFareTotal+fare.TravellerBaseFare}return Math.round(baseFareTotal)});this.registerHelper("totalTaxesFare",function(fares){var taxFareTotal=0;for(fareKey in fares){var fare=fares[fareKey];taxFareTotal=taxFareTotal+fare.TravellerTaxes}return Math.round(taxFareTotal)});this.registerHelper("totalFareSplit",function(fare){fare=Fly.Common.totalFare(fare,Fly.Globals.adultCount,Fly.Globals.childCount,Fly.Globals.infantCount);return fare.substring(0,fare.length-2)});this.registerHelper("splitValue",function(value,regex,index){var ret="";try{if(value&&value.indexOf(regex)>-1){if(index==0||index=="0"){ret=value.split(regex)[0]}else{ret=value.split(regex)[1]}}}catch(e){}return ret});this.registerHelper("totalFareSplitForSup",function(fare){fare=Fly.Common.totalFare(fare,Fly.Globals.adultCount,Fly.Globals.childCount,Fly.Globals.infantCount);return fare.substring(fare.length-2,fare.length)});this.registerHelper("getDecimals",function(fare){if(fare){fare=!isNaN(fare)?Number(fare).toFixed(2):fare;return fare.substring(fare.length-2,fare.length)}return""});this.registerHelper("getMainFare",function(fare){if(fare){fare=!isNaN(fare)?Number(fare).toFixed(2):fare;return fare.substring(0,fare.length-2)}return""});this.registerHelper("MarkupAmount",function(fares,msFare,options){var markup=0;var totalFare=Fly.Common.getToTFareFromFares(fares);markup=Number(totalFare)-Number(msFare);return markup.toFixed(2)});this.registerHelper("TotalAmount",function(fares,msFare,options){var totalFare=Fly.Common.getToTFareFromFares(fares);if(typeof msFare!=undefined&&msFare!=""){totalFare=Number(totalFare)-(Number(totalFare)-Number(msFare))}return Number(totalFare).toFixed(2)});this.registerHelper("totalFare",function(fares){return Fly.Common.getToTFareFromFares(fares)});this.registerHelper("flightNumbers",function(Citypairs){var flightNumbers="";var operatingAirline="";var i=0;for(cityPair in Citypairs){var pair=Citypairs[cityPair];if(null!=pair.FlightSegment&&pair.FlightSegment!=""&&pair.FlightSegment.length>0){for(flightSegment in pair.FlightSegment){var segment=pair.FlightSegment[flightSegment];if(segment.hasOwnProperty("MarketingAirlineName")&&segment.hasOwnProperty("OperatingAirlineName")){if(segment.MarketingAirlineName!=segment.OperatingAirlineName){operatingAirline=" Operated by  <b>"+segment.OperatingAirlineName+" - "+segment.OperatingAirline+"</b>"}}if(i==0){flightNumbers=segment.FlightNumber;i++}else{flightNumbers+="/"+segment.FlightNumber}}}}return"Flight("+flightNumbers+")"+operatingAirline});this.registerHelper("mergedFlightNumbers",function(Citypairs,value){var flightNumbers="";var operatingAirline="";var i=0;if(value==10){var pair=Citypairs[0]}else{var pair=Citypairs[1]}if(null!=pair.FlightSegment&&pair.FlightSegment!=""&&pair.FlightSegment.length>0){for(flightSegment in pair.FlightSegment){var segment=pair.FlightSegment[flightSegment];if(segment.hasOwnProperty("MarketingAirlineName")&&segment.hasOwnProperty("OperatingAirlineName")){if(segment.MarketingAirlineName!=segment.OperatingAirlineName){operatingAirline=" Operated by  <b>"+segment.OperatingAirlineName+" - "+segment.OperatingAirline+"</b>"}}flightNumbers+=segment.FlightNumber+"/"}}return"Flight("+flightNumbers+")"+operatingAirline});this.registerHelper("times",function(citiPair,index,block){var accum="",n=0;try{n=citiPair[index].NoOfStops;if(typeof whitelabel!="undefined"&&whitelabel=="et"){for(var i=0;i<n;++i){accum+="<span class='circle'></span>"}}else{for(var i=0;i<n;++i){accum+=(n==2&&citiPair[index].FlightSegment[i].ModifiedLayOver)?("<p style='font-size: 11px;top: 5px;position:  absolute;left:"+((i==0?14:60))+"%;'>"+citiPair[index].FlightSegment[i].ModifiedLayOver+"</p><span class='circle'></span>"):"<span class='circle'></span>"}}}catch(e){}return accum});this.registerHelper("starRating",function(n){var returnHtml="";var accum='<i class="fa fa-star" aria-hidden="true"></i>';var accumGold='<i class="fa fa-star starGold" aria-hidden="true"></i>';for(var i=0;i<5;++i){if(i<n){returnHtml=returnHtml+accumGold}else{returnHtml=returnHtml+accum}}return returnHtml});this.registerHelper("xif",function(expression,options){return Handlebars.helpers.x.apply(this,[expression,options])?options.fn(this):options.inverse(this)});this.registerHelper("x",function(expression,options){var result;var context=this;with(context){result=(function(){try{return eval(expression)}catch(e){console.warn("?Expression: {{x '"+expression+"'}}\n?JS-Error: ",e,"\n?Context: ",context)}}).call(context)}return result});this.registerHelper("nameNumber",function(num){var ret="";try{ret=Fly.Common.replaceAll(num,".1","")}catch(e){}return ret});this.registerHelper("amenitiesImage",function(name){return Fly.Common.getHotelAmentitiesImageName(name)});this.registerHelper("phoneNumberFormat",function(number){var phoneNumber="(";try{for(var i=0;i<number.length;i++){if(i==2){phoneNumber+=number[i]+") "}else{if(i==5){phoneNumber+=number[i]+"-"}else{phoneNumber+=number[i]}}}}catch(e){}return phoneNumber});this.registerHelper("gender",function(gender){var gen="";try{if(gender=="Male"){gen="Mr"}else{gen="Mrs"}}catch(e){}return gen});this.registerHelper("cabinClass",function(cabin){return Fly.Util.getCabinClass(cabin)});this.registerHelper("paymentSubTotal",function(paymentHistory){var subTotal=0;if(paymentHistory){for(i=0;i<paymentHistory.length;i++){var paymentInfo=paymentHistory[i];subTotal+=paymentInfo.SubTotal}}return Number(subTotal).toFixed(2)});this.registerHelper("paymentSymbol",function(currencydefaultSymbol){var currencySymbol=currencydefaultSymbol;try{var currencyCode=Fly.LocalStorageManager.getJsonItem(Fly.Globals.LocalStorageKeys.USER_INFO).CurrencyCode;if(typeof currencyCode!=="undefined"&&currencyCode!==null&&currencyCode!==""){currencySymbol=Fly.Globals.CURRENCY_MAP[currencyCode]}}catch(e){}return currencySymbol});this.registerHelper("getImageSrc",function(image){var imgSrc="";if(typeof image!=="undefined"&&image!==null){imgSrc=atob(image)}return imgSrc});this.registerHelper("math",function(arg1,arg2,arg3,count,options){if(!isNaN(arg1)&&!isNaN(arg2)&&!isNaN(arg3)&&!isNaN(count)){if(options.hash.value="add"){var total=Number(arg1)+Number(arg2)+Number(arg3);return Number(total*count).toFixed(2)}}return 0});this.registerHelper("totalFareSplit1",function(fares){return Fly.Common.totalFareSplit1(fares)});this.registerHelper("totalFareSplit2",function(fares){var totalFare=0,baseFareTotal=0,taxFareTotal=0;for(fareKey in fares){var fare=fares[fareKey];baseFareTotal=baseFareTotal+fare.TravellerBaseFare}for(fareKey in fares){var fare=fares[fareKey];taxFareTotal=taxFareTotal+fare.TravellerTaxes}totalFare=baseFareTotal+taxFareTotal;var totalFaresup=totalFare.toFixed(2);totalFaresup=totalFaresup.substring(totalFaresup.length-2,totalFaresup.length);return totalFaresup});this.registerHelper("getDepartReturn",function(itinerary){var display="";try{if(itinerary&&itinerary.length>0){var length=itinerary.length-1;if(length>0){for(var key in itinerary){var segment=itinerary[key];if(segment&&key==0){display+=segment.DepartureDisplayName+"("+segment.DepartureLocationCode+") - "}else{if(segment&&key==length){display+=segment.DisplayName+"("+segment.ArrivalLocationCode+")"}}}}else{var segment=itinerary[0];if(segment){display=segment.DepartureDisplayName+"("+segment.DepartureLocationCode+") - "+segment.DisplayName+"("+segment.ArrivalLocationCode+")"}}}}catch(e){}return display});this.registerHelper("getItineraryArrival",function(itinerary){var itinerarydisplay="";try{if(itinerary&&itinerary.FlightSegment.length>0){var length=itinerary.FlightSegment.length-1;itinerarydisplay="<span>"+Fly.Util.hrAndSec(itinerary.FlightSegment[length].ArrivalDateTime)+" <sup>"+Fly.Util.amOrPm(itinerary.FlightSegment[length].ArrivalDateTime)+"</sup></span>"+itinerary.FlightSegment[length].ArrivalLocationCode}}catch(e){}return itinerarydisplay});this.registerHelper("getMobileDepartReturn",function(itinerary){var display="";try{if(itinerary&&itinerary.length>0){var length=itinerary.length-1;if(length>0){for(var key in itinerary){var segment=itinerary[key];if(segment&&key==0){display+=segment.DepartureLocationCode+" - "}else{if(segment&&key==length){display+=segment.ArrivalLocationCode}}}}else{var segment=itinerary[0];if(segment){display=segment.DepartureLocationCode+" - "+segment.ArrivalLocationCode}}}}catch(e){}return display});this.registerHelper("getDayAndMonth",function(itinerary){var monthDayVal="";try{if(itinerary&&itinerary.length>0){var length=itinerary.length-1;if(length>0){for(var key in itinerary){var segment=itinerary[key];if(segment&&key==0){monthDayVal+=Fly.Util.convert(segment.DepartureDateTime,"D")+", ";monthDayVal+=Fly.Util.convertDateIntoMonthAndDate(segment.DepartureDateTime,true)}}}else{var segment=itinerary[0];if(segment){monthDayVal+=Fly.Util.convert(segment.DepartureDateTime,"D")+", ";monthDayVal+=Fly.Util.convertDateIntoMonthAndDate(segment.DepartureDateTime,true)}}}}catch(e){}return monthDayVal});this.registerHelper("getDuration",function(itinerary,format){try{if(itinerary&&itinerary.length>0){return Fly.Util.convert(itinerary[0].DepartureDateTime,format)}}catch(e){}return""});this.registerHelper("getCurrencyCode",function(fares,showUSD){var code="";try{for(fareKey in fares){if(!showUSD){code=fares[fareKey].CurrencyCode}else{if(Fly.Browser.isMobile()){}else{code=fares[fareKey].CurrencyCode!="USD"?fares[fareKey].CurrencyCode:""}}}}catch(e){}return code});this.registerHelper("getExactCurrencyMessage",function(fares){var code="";try{if(Fly.Browser.isMobile()){for(fareKey in fares){return"<b>Note</b>: Card will be charged in <b>"+fares[fareKey].CurrencyCode+"</b>"}}}catch(e){}return code});this.registerHelper("isTravellerBaseFareNegative",function(fare,options){var isNegativeTravellerBaseFare="";try{if(fare&&fare.TravellerBaseFare&&fare.TravellerBaseFare<0){isNegativeTravellerBaseFare=options.fn(this)}else{isNegativeTravellerBaseFare=options.inverse(this)}}catch(e){}return isNegativeTravellerBaseFare});this.registerHelper("getHotelCurrecnyCode",function(roomTypes){var code=roomTypes[0].RateInfoList[0].CurrencyCode;return code?code:""});this.registerHelper("getCCFee",function(fares,showUSD){var cCFee=0;try{for(fareKey in fares){cCFee+=fares[fareKey].CCFee}if(!isNaN(cCFee)){cCFee=cCFee.toFixed(2)}}catch(e){}return cCFee});this.registerHelper("showCCFeeNote",function(fares,options){var ret="";if(fares&&fares[0].CCFee){ret=options.fn(this)}else{ret=options.inverse(this)}return ret});this.registerHelper("adultWiseFareSplit",function(fares){if(typeof deeplink!=="undefined"&&deeplink){var baseFareTotal=0;for(fareKey in fares){var fare=fares[fareKey];if(fare&&fare.PaxType=="ADT"){baseFareTotal=fare.TravellerBaseFare+fare.TravellerTaxes}}baseFareTotal=baseFareTotal.toFixed(2);baseFareTotal=baseFareTotal.substring(0,baseFareTotal.length-2);return baseFareTotal}else{return Fly.Util.findAverageFare(fares,"averageFareSplit")}});this.registerHelper("getTripproPoints",function(fares){for(fareKey in fares){var fare=fares[fareKey];if(fare.PaxType=="ADT"){return fare.TripproPoints}}});this.registerHelper("showTripproPoints",function(fares,options){var ret=options.inverse(this);for(fareKey in fares){var fare=fares[fareKey];if(fare.PaxType=="ADT"){var tripproPoints=fare.TripproPoints;var convertOption=fare.ConvertOption;if(typeof convertOption!=undefined&&convertOption==1&&typeof tripproPoints!=undefined&&tripproPoints!=null&&tripproPoints!=""&&tripproPoints>0){ret=options.fn(this)}}}return ret});this.registerHelper("showTripproPromotion",function(fares,options){var ret=options.inverse(this);for(fareKey in fares){var fare=fares[fareKey];if(fare.PaxType=="ADT"){var convertOption=fare.ConvertOption;var pointsValue=fare.PointsValue;if((typeof convertOption!=undefined&&(convertOption==2||convertOption==3))&&typeof pointsValue!=undefined&&pointsValue!=null&&pointsValue!=""&&pointsValue>0){ret=options.fn(this)}}}return ret});this.registerHelper("getTripproPromotions",function(fares){for(fareKey in fares){var fare=fares[fareKey];if(fare.PaxType=="ADT"){return fare.PointsValue}}});this.registerHelper("intermedateStops",function(interMediateMapList){var text="";try{if(interMediateMapList&&interMediateMapList.length>0){text="<h4 style='font-size:14px;'>Stop At <b style='color:#2b81d8;'>";for(var key in interMediateMapList){var interMediateMap=interMediateMapList[key];if(interMediateMap&&interMediateMap.locationCode){text+=interMediateMap.locationCode+", "}}if(text){text=text.substring(0,text.length-2)}return text+"</b></h4>"}}catch(e){console.log("Error :: "+e)}return""});this.registerHelper("adultWiseFareSplitForSup",function(fares){if(typeof deeplink!=="undefined"&&deeplink){var baseFareTotal=0;var fareKey;for(fareKey in fares){var fare=fares[fareKey];if(fare&&fare.PaxType=="ADT"){baseFareTotal=fare.TravellerBaseFare+fare.TravellerTaxes}baseFareTotal=baseFareTotal.toFixed(2);baseFareTotal=baseFareTotal.substring(baseFareTotal.length-2,baseFareTotal.length);return baseFareTotal}}else{return Fly.Util.findAverageFare(fares,"averageFareSplitForSup")}});this.registerHelper("averageFareSplit",function(fares){return Fly.Util.findAverageFare(fares,"averageFareSplit")});this.registerHelper("getLuggageFare",function(current){return Fly.Util.getLuggageFare(current)});this.registerHelper("averageWithMarkupFareSplit",function(obj,isFor){var fares=obj.flight.flightItinerary.Fares;var markup=obj.markup;var fare=Fly.Util.findFareByPax(fares);if(typeof markup!="undefined"&&markup!=null&&markup!=""){fare=Number(fare)+Number(markup)}fare=Number(fare);fare=fare.toFixed(2);fare=fare+"";if(isFor){fare=(isFor=="main"?fare.substring(0,fare.length-2):(isFor=="sub"?fare.substring(fare.length-2,fare.length):fare))}return fare});this.registerHelper("totalWithMarkupFareSplit",function(obj,isFor){var fares=obj.flight.flightItinerary.Fares;var markup=obj.markup;var fare=Fly.Util.findFareByPax(fares);if(typeof site!="undefined"&&site){if(typeof markup!="undefined"&&markup!=null&&markup!=""){fare=Number(fare)+Number(markup)}fare=Number(fare);fare=fare.toFixed(2);fare=fare+""}if(isFor){fare=(isFor=="main"?fare.substring(0,fare.length-2):(isFor=="sub"?fare.substring(fare.length-2,fare.length):fare))}return fare});this.registerHelper("averageWithMarkupFareHotelSplit",function(obj,isFor){var fare=obj.hotel.RoomTypes[0].RateInfoList[0].MaxNightlyRate;var markup=obj.markup;if(typeof markup!="undefined"&&markup!=null&&markup!=""){fare=Number(fare)+Number(markup)}fare=Number(fare);fare=fare.toFixed(2);fare=fare+"";if(isFor){fare=(isFor=="main"?fare.substring(0,fare.length-2):(isFor=="sub"?fare.substring(fare.length-2,fare.length):fare))}return fare});this.registerHelper("totalWithMarkupFareHotelSplit",function(obj,isFor){var fare=obj.hotel.RoomTypes[0].RateInfoList[0].MaxNightlyRate;var markup=obj.markup;if(typeof site!="undefined"&&site){if(typeof markup!="undefined"&&markup!=null&&markup!=""){fare=Number(fare)+Number(markup)}}fare=Number(fare);fare=fare.toFixed(2);fare=fare+"";if(fare.indexOf(".")<=-1){fare=fare+".00"}if(isFor){fare=(isFor=="main"?fare.substring(0,fare.length-2):(isFor=="sub"?fare.substring(fare.length-2,fare.length):fare))}return fare});this.registerHelper("averageWithMarkupFareInHotelSplit",function(hotel,isFor){var fare=hotel.RoomTypes[0].RateInfoList[0].MaxNightlyRate;var markup=hotel.markup;if(typeof markup!="undefined"&&markup!=null&&markup!=""){fare=Number(fare)+Number(markup)}fare=Number(fare);fare=fare.toFixed(2);fare=fare+"";if(isFor){fare=(isFor=="main"?fare.substring(0,fare.length-2):(isFor=="sub"?fare.substring(fare.length-2,fare.length):fare))}return fare});this.registerHelper("getRoomImagePath",function(thumbPath,imagePath){var roomImagePath="";try{if(typeof imagePath!="undefined"&&imagePath!=null&&imagePath!=""){roomImagePath=imagePath}else{roomImagePath=thumbPath}}catch(e){}return roomImagePath});this.registerHelper("hotelRoomSelectedOrNot",function(obj,options){var ret=options.inverse(this);try{if(typeof obj!="undefined"&&obj!=null&&obj!=""&&typeof obj.RoomSelected!="undefined"&&obj.RoomSelected!=null&&obj.RoomSelected=="Y"){ret=options.fn(this)}}catch(e){ret=options.inverse(this)}return ret});this.registerHelper("tripBookedCheck",function(trip,options){var ret=options.inverse(this);try{if(typeof trip!="undefined"&&trip!=null&&trip!=""&&typeof trip.booking!="undefined"&&trip.booking!=null&&trip.booking=="Y"){ret=options.fn(this)}}catch(e){ret=options.inverse(this)}return ret});this.registerHelper("tripAgencyContentDetails",function(options){var agencyData="";try{var tripObj=Fly.LocalStorageManager.getJsonItem("CURRENT_TRIP_DATA");if(typeof tripObj!="undefined"&&tripObj!=null){if(typeof tripObj.agencyName!="undefined"&&tripObj.agencyName!=null){agencyData='<img src="'+basePath+"/imageAdaptor/v2/User/Cropped/"+tripObj.userId+'" alt="" style="height: 30px;width: 30px;border-radius: 15px;margin-top: -4px;"  style="padding-left: 5px;"><span> '+tripObj.agencyName+"</span>"}else{agencyData='<img src="'+basePath+"/imageAdaptor/v2/User/Cropped/"+tripObj.collaborators[0].userId+'" alt=""  style="height: 30px;width: 30px;border-radius: 15px;margin-top: -4px;"><span style="padding-left: 5px;">'+tripObj.collaborators[0].name+"</span>"}}}catch(e){agencyData=""}return agencyData});this.registerHelper("totalWithMarkupSelectedRoomSplit",function(obj,room,isFor){var fare=room.RateInfoList[0].MaxNightlyRate;var markup=obj.markup;if(typeof site!="undefined"&&site){if(typeof markup!="undefined"&&markup!=null&&markup!=""){fare=Number(fare)+Number(markup);fare=fare.toFixed(2)}}fare=Number(fare);fare=fare.toFixed(2);fare=fare+"";if(fare.indexOf(".")<=-1){fare=fare+".00"}if(isFor){fare=(isFor=="main"?fare.substring(0,fare.length-2):(isFor=="sub"?fare.substring(fare.length-2,fare.length):fare))}return fare});this.registerHelper("totalWithoutMarkupSelectedRoomSplit",function(obj,room,isFor){var fare=room.RateInfoList[0].MaxNightlyRate;var markup=obj.markup;fare=Number(fare);fare=fare.toFixed(2);fare=fare+"";if(fare.indexOf(".")<=-1){fare=fare+".00"}if(isFor){fare=(isFor=="main"?fare.substring(0,fare.length-2):(isFor=="sub"?fare.substring(fare.length-2,fare.length):fare))}return fare});this.registerHelper("averageFareSplitForSup",function(fares){return Fly.Util.findAverageFare(fares,"averageFareSplitForSup")});this.registerHelper("averageFareOfferSplit",function(fares,offerAmount){return Fly.Util.findFareOffer(fares,"averageFareSplitForSup")});this.registerHelper("showAveragePriceFlag",function(fares,options){var ret="";try{if(fares&&fares.length>0){var length=fares.length;if(length==3){ret=options.fn(this)}else{if(length==2){for(var key in fares){var fare=fares[key];if(fare&&(fare.PaxType=="CHD"||fare.PaxType=="CNN")){ret=options.fn(this)}}}}}}catch(e){}return ret});this.registerHelper("conformationBaseFare",function(fares){var totalFare=0;for(fareKey in fares){var fare=fares[fareKey];if(fare.count&&!isNaN(fare.count)){totalFare=totalFare+(fare.BaseFare*fare.count)+(fare.Taxes*fare.count)+(fare.CcFee*fare.count)}else{totalFare=totalFare+fare.BaseFare+fare.Taxes+fare.CcFee}if(fare.SpecialPromtionFare&&!isNaN(fare.SpecialPromtionFare)){totalFare+=fare.SpecialPromtionFare}}try{var flexiTicketFare=Fly.Globals.flexibleTicketFare;var chooseYourSeatFare=Fly.Globals.totalCalculatedchooseYourSeatFare;var supportPackageFare=Fly.Globals.customerSupportPackageFare;var seatChargeAmount=Fly.Globals.seatChargeAmount;var priceDropAssuranceFare=Fly.Globals.priceDropAssuranceFare;var automaticCheckInFare=Fly.Globals.automaticCheckInFare;var baggageProtectionFare=Fly.Globals.baggageProtectionFare;var baggageFare=Fly.Globals.baggageFare;var purchaseGuaranteeFare=Fly.Globals.purchaseGuaranteeFare;var insuranceAmount=Fly.Globals.insuranceAmount;if(Fly.Common.getDoubleValue(automaticCheckInFare)!=0){totalFare=Number(totalFare)+Number(automaticCheckInFare)}if(Fly.Common.getDoubleValue(baggageProtectionFare)!=0){totalFare=Number(totalFare)+Number(baggageProtectionFare)}if(Fly.Common.getDoubleValue(baggageFare)!=0){totalFare=Number(totalFare)+Number(baggageFare)}if(Fly.Common.getDoubleValue(purchaseGuaranteeFare)!=0){totalFare=Number(totalFare)+Number(purchaseGuaranteeFare)}if(Fly.Common.getDoubleValue(chooseYourSeatFare)!=0){totalFare=Number(totalFare)+Number(chooseYourSeatFare)}if(Fly.Common.getDoubleValue(seatChargeAmount)!=0){totalFare=Number(totalFare)+Number(seatChargeAmount)}if(Fly.Common.getDoubleValue(flexiTicketFare)!=0){totalFare=Number(totalFare)+Number(flexiTicketFare)}if(Fly.Common.getDoubleValue(supportPackageFare)!=0){totalFare=Number(totalFare)+Number(supportPackageFare)}if(Fly.Common.getDoubleValue(priceDropAssuranceFare)!=0){totalFare=Number(totalFare)+Number(priceDropAssuranceFare)}if(insuranceAmount&&!isNaN(insuranceAmount)){totalFare=Number(totalFare)+Number(insuranceAmount)}var luggageFee=Fly.Util.getLuggageFare(null);if(luggageFee&&!isNaN(luggageFee)&&Number(luggageFee)>0){totalFare=Number(totalFare)+Number(luggageFee)}}catch(e){}return Number(totalFare).toFixed(2)});this.registerHelper("order",function(context,index,options){var fn=options.fn,inverse=options.inverse;var ret="";if(context&&context.length>0){var odd=false;var even=false;var length=context.length/2;length=Math.ceil(length);if(index+1<=length){odd=true}else{even=true}ret=ret+fn($.extend({},context[index],{odd:odd,even:even}))}else{ret=inverse(this)}return ret});this.registerHelper("convertDateToMonth",function(dataTimeString,isDetails){try{if(Fly.Browser.isMobile()){isDetails=false}}catch(e){}return Fly.Util.convertDateIntoMonthAndDate(dataTimeString,isDetails)});this.registerHelper("convertDateToTime",function(dataTimeString){return Fly.Util.convertDateIntoTime(dataTimeString)});this.registerHelper("convertOPaqueDateToTime",function(dataTimeString){return Fly.Util.convertOpaqueDateIntoTime(dataTimeString)});this.registerHelper("getDayFromDate",function(date){return Fly.Util.getDayFromDate(date)});this.registerHelper("formatDuration",function(date){if(date&&date.indexOf("H")>-1){date=date.replace("H","hr")}if(date&&date.indexOf("M")>-1){date=date.replace("M","min")}if(date&&date.indexOf("D")>-1){date=date.replace("D","day(s)")}return date});this.registerHelper("paxType",function(fare){if(fare.PaxType=="ADT"){return"Adult"}if(fare.PaxType=="CHD"||fare.PaxType=="CNN"){return"Child"}if(fare.PaxType=="INF"){return"Infant"}});this.registerHelper("paxTypeName",function(paxType){if(paxType=="ADT"){return"Adult"}if(paxType=="CHD"||paxType=="CNN"){return"Child"}if(paxType=="INF"){return"Infant"}});this.registerHelper("isEqual",function(arg1,arg2,arg3){return Fly.Util.isEqual(arg1,arg2,arg3)});this.registerHelper("roundFare",function(fare){if(fare){return Math.round(fare)}return fare});this.registerHelper("totalSegLayOver",function(cityPairs){return Fly.Util.totalSegLayOver(cityPairs)});this.registerHelper("itinStops",function(cityPairs,noOfStops,index){var stops="";try{var pair=cityPairs[index];if(pair){for(var segKey in pair.FlightSegment){if(pair.FlightSegment.length-1>Number(segKey)){stops+=Fly.Common.getTechStopInfo(pair.FlightSegment[segKey])+pair.FlightSegment[segKey].ArrivalLocationCode+"/"}else{stops=stops+Fly.Common.getTechStopInfo(pair.FlightSegment[segKey]);stops=stops.substring(0,stops.length-1)}}}stops="("+stops+")"}catch(e){alert(e)}return stops});this.registerHelper("listItemLimit",function(from,to,context,options){var item="";if(typeof context!="undefined"&&context!=null&context!=""){if(context.length<to){to=context.length}for(var i=from,j=to;i<j;i++){item=item+options.fn(context[i])}}return item});this.registerHelper("getProperty",function(param){if(param=="SITE_URL"){if(whitelabel=="tp"){return Fly.Globals.SITE_NAME.SITE_URL.TRIP_PLANET}else{if(whitelabel=="tz"){return Fly.Globals.SITE_NAME.SITE_URL.TRAVEL_ZOO}else{return Fly.Globals.SITE_NAME.SITE_URL.EXPLORETRIP_SITE}}}else{if(param=="SITE"){if(whitelabel=="tp"){return Fly.Globals.SITE_NAME.SITE.TRIPPLANET}else{if(whitelabel=="tz"){return Fly.Globals.SITE_NAME.SITE.TRAVELZOO}else{if(whitelabel=="tp1"){return Fly.Globals.SITE_NAME.SITE.TRIPPRO}else{return Fly.Globals.SITE_NAME.SITE.EXPLORETRIP}}}}else{if(param=="WHITE_LABEL"){if(whitelabel=="tp"){return Fly.Globals.SITE_NAME.WHITE_LABEL.TP_WHITE_LABEL}else{if(whitelabel=="tz"){return Fly.Globals.SITE_NAME.WHITE_LABEL.Tz_WHITE_LABEL}else{if(typeof siteThemePath!="undefined"&&typeof siteTemplatePath!="undefined"&&siteThemePath&&siteTemplatePath.length>0){return"whitelabel/sites/"+siteTemplatePath+"/"+siteThemePath}return Fly.Globals.SITE_NAME.WHITE_LABEL.ET_WHITE_LABEL}}}}}});this.registerHelper("TOT_PROPERTY_VALUE",function(param){if(typeof Fly.Globals.configData!=="undefined"&&Fly.Globals.configData!==null&&Fly.Globals.configData!==""){return Fly.Globals.configData[param].replace("http:","https:").replace("images.exploretrip.com","images.farescan.com")}else{return""}});this.registerHelper("showOrHide",function(param,options){var ret="";if(param&&param=="bbc"){if(whitelabel=="et"){ret=options.fn(this)}else{ret=options.inverse(this)}}return ret});this.registerHelper("collaboratorsView",function(count,options){if(count<2){return options.fn(this)}else{return options.inverse(this)}});this.registerHelper("countGreaterthenTwo",function(obj){if(typeof obj!=="undefined"&&obj!==null&&obj!==""&&obj.length>2){return obj.length-2}else{return""}});this.registerHelper("reservePaxFullName",function(obj){if(typeof obj!=="undefined"&&obj!==null&&obj!==""&&obj.Gender=="M"){return"Mr. "+obj.FirstName+" "+obj.LastName}else{if(typeof obj!=="undefined"&&obj!==null&&obj!==""&&obj.Gender=="F"){return"Miss. "+obj.FirstName+" "+obj.LastName}else{return"Mrs. "+obj.FirstName+" "+obj.LastName}}});this.registerHelper("reservePaxAge",function(obj){if(typeof obj!=="undefined"&&obj!==null&&obj!==""&&obj.DateOFBirth!=""){var age=new Date().getFullYear()-new Date(obj.DateOFBirth).getFullYear();if(age>0){return age+"/"+obj.Gender}else{return obj.Gender}}else{return""}});this.registerHelper("reservePaxCount",function(index){if(typeof index!=="undefined"&&index!==null&&index!==""){return index+1}else{return"1"}});this.registerHelper("convertStartDate",function(startDate){if(typeof startDate!=="undefined"&&startDate!==null&&startDate!==""){return Fly.Util.convert(startDate,"mm/dd/yyyy")}else{return"MM/DD/YYYY"}});this.registerHelper("convertEndDate",function(startDate){if(typeof startDate!=="undefined"&&startDate!==null&&startDate!==""){var endDate=new Date(startDate);endDate.setDate(endDate.getDate()+1);return Fly.Util.convert(endDate.getTime(),"mm/dd/yyyy")}else{return"MM/DD/YYYY"}});this.registerHelper("sourceCode",function(name){if(typeof name!=="undefined"&&name!==null&&name!==""){if(name.indexOf("-")>-1){return name.split("-")[0]}return""}else{return""}});this.registerHelper("TIMELINE_SELECTED_AMOUNT",function(timelineObj,options){var amount=0;if(timelineObj!=null&&timelineObj.activities!=null&&timelineObj.activities.length>0){for(activityIndex in timelineObj.activities){var activity=timelineObj.activities[activityIndex];if(typeof activity!="undefined"&&activity!=null&&typeof activity.selected!="undefined"&&activity.selected=="Y"){if(timelineObj.timelineType=="Flight"){if(typeof activity.flight!="undefined"&&activity.flight!=null&&typeof activity.flight.flightItinerary!="undefined"&&activity.flight.flightItinerary!=null){if(typeof activity.flight.flightItinerary.Fares[0].TravellerBaseFare!="undefined"&&activity.flight.flightItinerary.Fares[0].TravellerBaseFare!=null&&activity.flight.flightItinerary.Fares[0].TravellerBaseFare!=""){amount+=activity.flight.flightItinerary.Fares[0].TravellerBaseFare}if(typeof activity.flight.flightItinerary.Fares[0].TravellerTaxes!="undefined"&&activity.flight.flightItinerary.Fares[0].TravellerTaxes!=null&&activity.flight.flightItinerary.Fares[0].TravellerTaxes!=""){amount+=activity.flight.flightItinerary.Fares[0].TravellerTaxes}if(typeof activity.markup!="undefined"&&activity.markup!=null&&activity.markup!=""){try{var markupVal=Number(activity.markup);amount+=markupVal}catch(e){console.log(e)}}amount="$"+amount.toFixed(2);break}}else{if(timelineObj.timelineType=="Hotel"){if(typeof activity.hotel!="undefined"&&activity.hotel!=null&&typeof activity.hotel.RoomTypes!="undefined"&&activity.hotel.RoomTypes!=null){var hotelAmount=activity.hotel.RoomTypes[0].RateInfoList[0].MaxNightlyRate.toFixed(2);if(typeof activity.markup!="undefined"&&activity.markup!=null&&activity.markup!=""){try{var markupVal=Number(activity.markup);hotelAmount=Number(hotelAmount)+markupVal}catch(e){console.log(e)}}amount="$"+hotelAmount;break}}}}}}return amount});this.registerHelper("TOTAL_TIMELINE_SELECTED_AMOUNT",function(timelines,options){var amount=0;if(typeof timelines!="undefined"&&timelines!=null){for(index in timelines){var timelineObj=timelines[index];if(timelineObj!=null&&timelineObj.activities!=null&&timelineObj.activities.length>0){for(activityIndex in timelineObj.activities){var activity=timelineObj.activities[activityIndex];if(typeof activity!="undefined"&&activity!=null&&typeof activity.selected!="undefined"&&activity.selected=="Y"){if(timelineObj.timelineType=="Flight"){if(typeof activity.flight!="undefined"&&activity.flight!=null&&typeof activity.flight.flightItinerary!="undefined"&&activity.flight.flightItinerary!=null){if(typeof activity.flight.flightItinerary.Fares[0].TravellerBaseFare!="undefined"&&activity.flight.flightItinerary.Fares[0].TravellerBaseFare!=null&&activity.flight.flightItinerary.Fares[0].TravellerBaseFare!=""){amount+=activity.flight.flightItinerary.Fares[0].TravellerBaseFare}if(typeof activity.flight.flightItinerary.Fares[0].TravellerTaxes!="undefined"&&activity.flight.flightItinerary.Fares[0].TravellerTaxes!=null&&activity.flight.flightItinerary.Fares[0].TravellerTaxes!=""){amount+=activity.flight.flightItinerary.Fares[0].TravellerTaxes}if(typeof activity.markup!="undefined"&&activity.markup!=null&&activity.markup!=""){try{var markupVal=Number(activity.markup);amount+=markupVal}catch(e){console.log(e)}}break}}else{if(timelineObj.timelineType=="Hotel"){if(typeof activity.hotel!="undefined"&&activity.hotel!=null&&typeof activity.hotel.RoomTypes!="undefined"&&activity.hotel.RoomTypes!=null){var hotelAmount=0;hotelAmount+=activity.hotel.RoomTypes[0].RateInfoList[0].MaxNightlyRate.toFixed(2);amount+=Number(hotelAmount);if(typeof activity.markup!="undefined"&&activity.markup!=null&&activity.markup!=""){try{var markupVal=Number(activity.markup);amount+=markupVal}catch(e){console.log(e)}}break}}}}}}}}if(amount==0){return"$"+amount}else{return"$"+amount.toFixed(2)}});this.registerHelper("IS_TIMELINE_SELECTED",function(timelineObj,options){var isSelected=false;if(timelineObj!=null&&timelineObj.activities!=null&&timelineObj.activities.length>0){for(activityIndex in timelineObj.activities){var activity=timelineObj.activities[activityIndex];if(typeof activity!="undefined"&&activity!=null&&typeof activity.selected!="undefined"&&activity.selected=="Y"){isSelected=true;break}}}else{isSelected=false}if(isSelected){return options.fn(this)}else{return options.inverse(this)}});this.registerHelper("IS_ACTIVITY_SELECTED",function(activities,options){var isSelected=false;if(typeof activities!="undefined"&&activities!=null&&typeof activities.selected!="undefined"&&activities.selected=="Y"){isSelected=true}else{isSelected=false}if(isSelected){return options.fn(this)}else{return options.inverse(this)}});this.registerHelper("isMultyCity",function(param,options){var ret="";if(Fly.Globals.TRIP_TYPE&&Fly.Globals.TRIP_TYPE==2){ret=options.fn(this)}else{ret=options.inverse(this)}return ret});this.registerHelper("itemLength",function(items,count,options){var ret="";if(items&&items.length>count){ret=options.fn(this)}else{ret=options.inverse(this)}return ret});this.registerHelper("isGreater",function(item,value,options){var ret="";try{if(!isNaN(item)&&Number(item)>value){ret=options.fn(this)}else{if(item>value){ret=options.fn(this)}else{ret=options.inverse(this)}}}catch(e){console.log("Exception in method isGreater :: "+e)}return ret});this.registerHelper("getPaxName",function(index,paxDetails){try{return paxDetails[index].FirstName+" "+paxDetails[index].LastName}catch(e){}});this.registerHelper("getPhoneNumber",function(phoneNumber){try{if(typeof phoneNumber!=="undefined"&&phoneNumber!==null&&phoneNumber!==""){phoneNumber=phoneNumber+"";return phoneNumber.split(" ").join("")}else{return""}}catch(e){}});this.registerHelper("fixedToTwoDigit",function(fare){if(typeof fare!=="undefined"&&fare!==null&&fare!==""&&fare!==0&&fare!=="0"){return Number(fare).toFixed(2)}else{return"0.00"}});this.registerHelper("getReplacedi18NText",function(i18NText,replacement){var text="";try{if(i18NText&&i18NText.indexOf("@")>-1&&replacement){text=i18NText.replace("@",replacement)}}catch(e){}return text});this.registerHelper("inc",function(value,options){return parseInt(value)+1});this.registerHelper("split",function(value,index,options){var ret="";var splitValue=value.split("-");if(index==1){if(splitValue[1]=="null"){ret=""}else{if(ret!="null"){ret=splitValue[1]}}}else{if(splitValue[0]=="null"){ret=""}else{if(ret!="null"){ret=splitValue[0]}}}return ret});this.registerHelper("hotelNightFare",function(fare){if(typeof fare!="undefined"&&fare){fare=fare+"";if(fare.indexOf(".")>-1){fare=fare.split(".");return fare[0]}}return fare});this.registerHelper("hotelNightFareSup",function(fare){if(typeof fare!="undefined"&&fare){fare=fare+"";if(fare.indexOf(".")>-1){fare=fare.split(".");if(fare[1]){if(fare[1].length>2){return fare[1].substring(0,2)}else{if(fare[1].length==1){return fare[1]+"0"}else{return fare[1]}}}}}return"00"});this.registerHelper("hiddenForList",function(index,from){if(index>4){if(from=="amenities"){return Fly.Template.safeString("style='display:none;' id='amenitiesHide_"+index+"'")}else{return Fly.Template.safeString("style='display:none;' id='localitiesHide_"+index+"'")}}});this.registerHelper("displayContent",function(contentList,from){if(from=="amenities"){if(contentList.length>5){return"Show all "+(contentList.length-5)+" Amenities"}}if(from=="localities"){if(contentList.length>5){return"Show all "+(contentList.length-5)+" Cities"}}return""});this.registerHelper("eachInMap",function(map,block){var out="";var counter=0;for(key in map){out+=block.fn({key:key,value:map[key],index:counter});counter++}return out});this.registerHelper("ifvalue",function(conditional,options){if(options.hash.value===conditional){return options.fn(this)}else{return options.inverse(this)}});this.registerHelper("isTrips",function(options){try{var siteName=options.hash.value;return(typeof tripSource!="undefined"&&tripSource=="trip")?options.fn(this):options.inverse(this)}catch(e){}});this.registerHelper("whitelabel",function(options){try{var siteName=options.hash.value;return(typeof whitelabel!="undefined"&&whitelabel==siteName)?options.fn(this):options.inverse(this)}catch(e){}});this.registerHelper("whitelableEmailItinerary",function(options){try{var siteName=options.hash.value;if(typeof whitelabel!="undefined"&&whitelabel==siteName&&typeof appSettingJson!="undefined"&&appSettingJson&&appSettingJson.ENABLE_ITINERARY_EMAIL=="true"){return options.fn(this)}else{return options.inverse(this)}}catch(e){return options.fn(this)}});this.registerHelper("pricedetailsBtn",function(options){try{if(typeof appSettingJson!="undefined"){var pricedetailsValue=appSettingJson.ENABLE_PRICE_DETAILS;return(typeof pricedetailsValue!="undefined"&&pricedetailsValue=="true")?options.fn(this):options.inverse(this)}}catch(e){}});this.registerHelper("chatSearch",function(options){try{var chatSearchValue=options.hash.value;return(typeof chatSearch!="undefined"&&chatSearch==chatSearchValue)?options.fn(this):options.inverse(this)}catch(e){}});this.registerHelper("isRecommended",function(type,options){try{if(type!=null&&type!=""&&"Premium"==type){return options.fn(this)}else{return options.inverse(this)}}catch(e){}});this.registerHelper("gdsLandingPcc",function(options){try{var gdsLandingPcc=appSettingJson.ENABLE_LANDING_PCCS_LIST;return(typeof gdsLandingPcc!="undefined"&&gdsLandingPcc=="true")?options.fn(this):options.inverse(this)}catch(e){}});this.registerHelper("optPnrStatus",function(optimizedUser,options){try{if(optimizedUser!=null&&optimizedUser!=""&&(optimizedUser).length>1){return options.fn(this)}else{return options.inverse(this)}}catch(e){}});this.registerHelper("chatBoxItinerary",function(options){try{var chatSearchValue=options.hash.value;return(typeof chatSearch!="undefined"&&chatSearch==chatSearchValue)?options.fn(this):options.inverse(this)}catch(e){}});this.registerHelper("headerLogo",function(options){try{var logo="TripProLogo.png";switch(Fly.Common.getLoginUserConsolidatorId()){case 9151:logo="ExploreTrip-TripPro.png";break;case 9169:logo="fly-tp.png";break}if(whitelabel=="tp"){logo="tp-logo.png"}return logo}catch(e){}});this.registerHelper("headerSmallLogo",function(options){try{var logo="TripProSmall.png";switch(Fly.Common.getLoginUserConsolidatorId()){case 9151:logo="ET-icon.png";break;case 9169:logo="Fly-icon.png";break}if(whitelabel=="tp"){logo="tp-favicon.png"}return logo}catch(e){}});this.registerHelper("domainLogo",function(options){try{var logo="TripProLogo.png";switch(domain){case"intele":logo="inteletravel-tp.png";break;case"tripPlanet":logo="tp-logo.png";break}if(whitelabel=="tp"){logo="tp-logo.png"}return logo}catch(e){}});this.registerHelper("ifConsolidatorId",function(consId,options){var ret="";try{if(consId&&consId==Fly.Common.getLoginUserConsolidatorId()){ret=options.fn(this)}else{ret=options.inverse(this)}}catch(e){}return ret});this.registerHelper("IS_TRIPPRO",function(consolidatorId,options){var ret="";try{if(Fly.Common.getLoginUserConsolidatorId()==consolidatorId&&typeof whitelabel!="undefined"&&whitelabel=="tp1"){ret=options.fn(this)}else{ret=options.inverse(this)}}catch(e){}return ret});this.registerHelper("IS_NOT_TRIPPRO",function(consolidatorId,options){var ret="";try{if((Fly.Common.getLoginUserConsolidatorId()==9151||Fly.Common.getLoginUserConsolidatorId()==9169)&&typeof whitelabel!="undefined"&&whitelabel=="tp1"){ret=options.fn(this)}else{ret=options.inverse(this)}}catch(e){}return ret});this.registerHelper("IS_TRIPPRO_SUPPORT_USER",function(options){var ret="";try{if(typeof whitelabel!="undefined"&&whitelabel=="tp1"&&Fly.Common.isSupportUser()){ret=options.fn(this)}else{ret=options.inverse(this)}}catch(e){}return ret});this.registerHelper("environ",function(options){try{var environment=options.hash.value;return(typeof env!="undefined"&&env==environment)?options.fn(this):options.inverse(this)}catch(e){}});this.registerHelper("getCountry",function(options){try{var countryName=options.hash.value;return(countryName&&typeof counrty!="undefined"&&counrty==countryName)?options.fn(this):options.inverse(this)}catch(e){}});this.registerHelper("IS_B2B",function(options){try{if(Fly.Globals.b2cUsers&&Fly.Globals.b2cUsers.length>0&&Fly.Globals.b2cUsers.indexOf(Fly.Common.getLoginUserConsolidatorId())<0){return options.fn(this)}else{return options.inverse(this)}}catch(e){}});this.registerHelper("uniqueObject",function(email){try{var uniqueObj=email.replace("@","");uniqueObj=uniqueObj.replace(".","");return uniqueObj}catch(e){}});this.registerHelper("domainWisePhoneNumber",function(){try{if(domain!=undefined&&domain=="intele"){return"44-800-3688425"}else{if(domain!=undefined&&domain=="et"){return"1-866-855-3984"}else{if(domain!=undefined&&domain=="uk"){return"44-800-3688425"}else{if(domain!=undefined&&domain=="fly"){return"1-866-991-69895"}else{if(Fly.Common.getLoginUserConsolidatorId()=="9151"){return"1-866-855-3984"}else{return"1-866-991-6989"}}}}}}catch(e){return"1-866-991-6989"}});this.registerHelper("agentAgencyLabel",function(value){try{var val=value;var userData=Fly.LocalStorageManager.getJsonItem(Fly.Globals.LocalStorageKeys.USER_INFO);if(typeof userData!=="undefined"&&userData!==null&&userData!==""){if(userData.RegistrationType=="Agent"||userData.RegistrationType=="Iagent"){return"Agent"}else{if(val==1){return"Agency"}else{return"Agency/ Company"}}}else{if(val==1){return"Agency"}else{return"Agency/ Company"}}}catch(e){if(val==1){return"Agency"}else{return"Agency/ Company"}}});this.registerHelper("getDomain",function(options){try{var domainName=options.hash.value;if(domainName&&domainName.indexOf(",")>0){var domainNames=domainName.split(",");for(var i in domainNames){var domainVal=domainNames[i];if(domain==domainVal){return options.fn(this)}else{if(domain=="localhost"||Number(domain)){return options.fn(this)}}}}else{if(domain==domainName){return options.fn(this)}else{if(domain=="localhost"||Number(domain)){return options.fn(this)}else{return options.inverse(this)}}}}catch(e){}});this.registerHelper("createAccountAvl",function(options){var createAccountAvailability=true;try{switch(domain){case"uk":createAccountAvailability=false;break}}catch(e){}if(createAccountAvailability){return options.fn(this)}else{return options.inverse(this)}});this.registerHelper("carouselBoxStyle",function(index){if(index==0){return"box-warning"}else{if(index==1){return"box-success"}else{return"box-danger"}}});this.registerHelper("checkseatCharacterstic",function(seat){var status="";if(seat.IsRestricted=="1"){return'"seat occupied"'}if(seat.IsPremium=="1"){if(seat.SeatDescription){if(seat.SeatDescription.includes(",")){seat.SeatDescription=seat.SeatDescription.replace(/,/g,"-")}}var SeatDescription=seat.RowNumber+""+seat.SeatColumn+"-"+seat.ChargeAmount+" "+seat.SeatDescription;status='"seat available premium" id="seat_'+seat.RowNumber+""+seat.SeatColumn+'"code="'+seat.ChargeAmount+'"\data-toggle="tooltip" title="'+SeatDescription+'"';return status}if((seat.SeatCharacteristic!=undefined)){if((seat.SeatCharacteristic).includes(",")){var seatCharac=seat.SeatCharacteristic.split(",");for(key in seatCharac){if((seatCharac[key]=="8")||(seatCharac[key]=="EX")||(seatCharac[key]=="LG")||(seatCharac[key]=="D")||(seatCharac[key]=="KN")||(seatCharac[key]=="SO")||(seatCharac[key]=="ST")||(seatCharac[key]=="701")||(seatCharac[key]=="AR")||(seatCharac[key]=="BA")||(seatCharac[key]=="CL")){status="empty";return status}else{if((seatCharac[key]=="V")){status='"seat occupied"';return status}else{if((seatCharac[key]=="LA")){status='"empty toilet"';return status}else{if((seatCharac[key]=="GN")){status='"empty cutlery"';return status}else{if((seatCharac[key]=="DE")){status='"seat deportee"';return status}else{if(seat.SeatDescription){if(seat.SeatDescription.includes(",")){seat.SeatDescription=seat.SeatDescription.replace(/,/g,"-")}}if(seat.SeatDescription==undefined||seat.SeatDescription==null){seat.SeatDescription=""}if(seat.ChargeAmount==undefined){seat.ChargeAmount=0}var SeatDescription=seat.RowNumber+""+seat.SeatColumn+"-"+seat.ChargeAmount+" "+seat.SeatDescription;status='"seat available" id="seat_'+seat.RowNumber+""+seat.SeatColumn+'"code="'+seat.ChargeAmount+'"\data-toggle="tooltip" title="'+SeatDescription+'"'}}}}}}}else{if((seat.SeatCharacteristic)=="8"||(seat.SeatCharacteristic)=="EX"||(seat.SeatCharacteristic=="LG"||(seat.SeatCharacteristic)=="D"||(seat.SeatCharacteristic)=="KN"||(seat.SeatCharacteristic)=="SO"||(seat.SeatCharacteristic)=="ST"||(seat.SeatCharacteristic)=="701"||(seat.SeatCharacteristic)=="AR"||(seat.SeatCharacteristic)=="BA"||(seat.SeatCharacteristic)=="CL")){status="empty"}else{if((seat.SeatCharacteristic=="V")){status='"seat occupied"'}else{if(seat.SeatCharacteristic=="LA"){status='"empty toilet"'}else{if(seat.SeatCharacteristic=="GN"){status='"empty cutlery"'}else{if(seat.SeatCharacteristic=="DE"){status='"seat deportee"'}else{if(seat.SeatDescription){if(seat.SeatDescription.includes(",")){seat.SeatDescription=seat.SeatDescription.replace(/,/g,"-")}}if(seat.SeatDescription==undefined||seat.SeatDescription==null){seat.SeatDescription=""}if(seat.ChargeAmount==undefined){seat.ChargeAmount=0}var SeatDescription=seat.RowNumber+""+seat.SeatColumn+"-"+seat.ChargeAmount+" "+seat.SeatDescription;status='"seat available" id="seat_'+seat.RowNumber+""+seat.SeatColumn+'"code="'+seat.ChargeAmount+'"\data-toggle="tooltip" title="'+SeatDescription+'"'}}}}}}}else{if(seat.SeatDescription){if(seat.SeatDescription.includes(",")){seat.SeatDescription=seat.SeatDescription.replace(/,/g,"-")}}if(seat.SeatDescription==undefined||seat.SeatDescription==null){seat.SeatDescription=""}if(seat.ChargeAmount==undefined){seat.ChargeAmount=0}var SeatDescription=seat.RowNumber+""+seat.SeatColumn+"-"+seat.ChargeAmount+" "+seat.SeatDescription;status='"seat available" id="seat_'+seat.RowNumber+""+seat.SeatColumn+'"code="'+seat.ChargeAmount+'"\data-toggle="tooltip" title="'+SeatDescription+'"'}return status});this.registerHelper("checkIsExit",function(rowCharac){if(rowCharac.RowCharacteristic!=undefined){if((rowCharac.RowCharacteristic).includes("E")){return"outlineWrap exitDoor"}else{return"outlineWrap "}}else{return"outlineWrap "}});this.registerHelper("checkIsWing",function(row,position){if(row.IsWing){if(row.isWingStart){return"wingStart "+Fly.Template.checkPosition(position)}else{return"wing "+Fly.Template.checkPosition(position)}}else{return"wall "+Fly.Template.checkPosition(position)}});this.registerHelper("getCurrencySymbol",function(fares){var code="USD",symbol="$";var currencySymbolMap={USD:"$",CAD:"C$",GBP:"&pound;",EUR:"&euro;",INR:"&#8377;",CNY:"&yen;"};try{for(fareKey in fares){if(fares[fareKey]&&fares[fareKey].CurrencyCode){code=fares[fareKey].CurrencyCode}}if(code&&code!="null"){symbol=currencySymbolMap[code]}}catch(e){}return symbol});this.registerHelper("getCurrencySymbolByCurrencyCode",function(currencyCode){var code="USD",symbol="$";var currencySymbolMap={USD:"$",CAD:"C$",GBP:"&pound;",EUR:"&euro;",INR:"&#8377;",CNY:"&yen;"};try{if(CurrencyCode){code=CurrencyCode}if(code&&code!="null"){symbol=currencySymbolMap[code]}}catch(e){}return symbol});this.registerHelper("businessFare",function(fare){return fare.split(".")[0]});this.registerHelper("counter",function(index){return index+1});this.registerHelper("currencySymbol",function(){var symbol="$";try{symbol=Fly.Common.getCurrencySymbol()}catch(e){symbol="$"}return symbol});this.registerHelper("getDefaultCurrency",function(){var code="USD";try{code=Fly.Globals.beforeCurrency}catch(e){}return code});this.registerHelper("presentCurrencySymbol",function(){var symbol="$";var currencyMap={USD:"$",CAD:"C$",GBP:"&pound;",EUR:"&euro;",INR:"&#8377;",CNY:"&yen;"};try{if(currencyMap&&Fly.Globals.afterCurrency&&currencyMap[Fly.Globals.afterCurrency]){symbol=currencyMap[Fly.Globals.afterCurrency]}}catch(e){symbol="$"}return symbol});this.registerHelper("ifLessThan",function(conditional,options){try{if(conditional>0){return options.fn(this)}else{return options.inverse(this)}}catch(e){}});this.registerHelper("ifGreaterThan",function(value1,options){try{if(value1&&options.hash.value&&value1>options.hash.value){return options.fn(this)}else{return options.inverse(this)}}catch(e){}});this.registerHelper("APP_SETTINGS",function(conditional,options){try{if(typeof whitelabel!="undefined"&&whitelabel=="et"){return options.fn(this)}else{if(conditional&&conditional==options.hash.value){return options.fn(this)}else{return options.inverse(this)}}}catch(e){}});this.registerHelper("IS_APP_ENABLED",function(options){try{if(options.hash.key&&Fly.Common.isAppEnable(options.hash.key)){return options.fn(this)}else{return options.inverse(this)}}catch(e){}});this.registerHelper("providerType",function(providerType,hotelFareType){try{if(providerType=="EXPEDIA"){return"1"}else{if(providerType=="PRICELINE"){if(hotelFareType=="NET"){return"2"}else{return"3"}}}}catch(e){}});this.registerHelper("globalVarUserId",function(){return userId});this.registerHelper("profileURL",function(userId){return contextPath+"/"+Fly.API.urls.userProfile+userId});this.registerHelper("contains",function(OpaqueFields,value,options){var ret="";try{var feildsSplit=OpaqueFields.split(",");if(feildsSplit.indexOf(value)!==-1){ret=options.fn(this)}else{ret=options.inverse(this)}}catch(e){}return ret});this.registerHelper("nullCheck",function(value,options){try{if(value=="null"){return""}else{if(value!="null"){return value}}}catch(e){}});this.registerHelper("toLowerCase",function(value){if(value&&isNaN(value)){return value.toLocaleLowerCase()}else{return value}});this.registerHelper("toUpperCase",function(value){if(value&&isNaN(value)){return value.toUpperCase()}else{return value}});this.registerHelper("statusVal",function(value,options){try{if(value!=""&&typeof value!="undefined"&&value=="Select"){return options.fn(this)}else{return options.inverse(this)}}catch(e){}});this.registerHelper("ifUkPub",function(options){try{if(domain!=undefined&&domain=="intele"&&options.data.root.FareType=="PUB"){return options.fn(this)}else{return options.inverse(this)}}catch(e){}});this.registerHelper("checkIfInfant",function(type,options){try{if(type=="Infant"){return options.inverse(this)}else{return options.fn(this)}}catch(e){}});this.registerHelper("APPLICATION_SOURCE",function(appSource,options){try{if(appSource&&Fly.Globals.configData.APPLICATION_SOURCE&&appSource==Fly.Globals.configData.APPLICATION_SOURCE){return options.fn(this)}else{return options.inverse(this)}}catch(e){}});this.registerHelper("getDepartDateFromCityPair",function(cityPairs){try{if(cityPairs&&cityPairs.length>0){var dateTime=cityPairs[0].FlightSegment[0].DepartureDateTime;return Fly.Util.getDayFromDate(dateTime)+" "+Fly.Util.convertDateIntoMonthAndDate(dateTime,false)}}catch(e){}});this.registerHelper("getReturnDateFromCityPair",function(cityPairs){try{if(cityPairs&&cityPairs.length>0){var dateTime=cityPairs[cityPairs.length-1].FlightSegment[0].DepartureDateTime;return Fly.Util.getDayFromDate(dateTime)+" "+Fly.Util.convertDateIntoMonthAndDate(dateTime,false)}}catch(e){}});this.registerHelper("ratingsParsed",function(rating){return rating.toFixed(1)});this.registerHelper("checkIsWing",function(row,position){if(row.IsWing){if(row.isWingStart){return"wingStart "+Fly.Template.checkPosition(position)}else{return"wing "+Fly.Template.checkPosition(position)}}else{return"wall "+Fly.Template.checkPosition(position)}});this.registerHelper("checkIsExitRow",function(row){if(row.exitRow){return"outlineWrap exitDoor"}else{return"outlineWrap "}});this.registerHelper("isWingRowCheck",function(cabinObj,rowObj,position){if(typeof cabinObj.wingRowStart!="undefined"){if(cabinObj.wingRowStart==rowObj.rowNumber||cabinObj.wingRowEnd==rowObj.rowNumber){if(cabinObj.wingRowStart==rowObj.rowNumber){return"wingStart "+Fly.Template.checkPosition(position)}else{return"wing "+Fly.Template.checkPosition(position)}}else{return"wing "+Fly.Template.checkPosition(position)}}else{return"wall "+Fly.Template.checkPosition(position)}});this.registerHelper("getSeatNumber",function(obj){return obj});this.registerHelper("checkWWWay",function(index,cabinObj,rowObj,seatObj){if(seatObj.aisle){return'<div class="seat columnNumber">'+rowObj.rowNumber+"</div>"}var exitRow="no",facilities="";if(typeof rowObj.isExitRow!="undefined"&&rowObj.isExitRow){exitRow="yes"}if(typeof seatObj.facilities!="undefined"&&seatObj.facilities&&seatObj.facilities.length>0){facilities=seatObj.facilities.join(", ")}if(seatObj.empty){return'<div class="empty"></div>'}else{if(seatObj.occupied){return'<div class="seat occupied"></div>'}else{if(typeof seatObj.chargeAmount=="undefined"){seatObj.chargeAmount=0}var SeatDescription=rowObj.rowNumber+""+seatObj.seatColumn;if(seatObj.premium){return'<div seatFacilities="'+facilities+'" exitSeat="'+exitRow+'" class="seat available premium" id="seat_'+rowObj.rowNumber+""+seatObj.seatColumn+'"code="'+seatObj.chargeAmount+'"\data-toggle="tooltip" title="'+SeatDescription+'" ></div>'}else{if(seatObj.pantry){return'<div seatFacilities="'+facilities+'" exitSeat="'+exitRow+'" class="empty cutlery"></div>'}else{if(seatObj.restRoom){return'<div seatFacilities="'+facilities+'" exitSeat="'+exitRow+'" class="empty toilet"></div>'}else{if(seatObj.chargeAmount>0){return'<div seatFacilities="'+facilities+'" exitSeat="'+exitRow+'" class="seat paid available" id="seat_'+rowObj.rowNumber+""+seatObj.seatColumn+'"code="'+seatObj.chargeAmount+'"\data-toggle="tooltip" title="'+SeatDescription+'" ></div>'}else{return'<div seatFacilities="'+facilities+'" exitSeat="'+exitRow+'" class="seat available" id="seat_'+rowObj.rowNumber+""+seatObj.seatColumn+'"code="'+seatObj.chargeAmount+'"\data-toggle="tooltip" title="'+SeatDescription+'" ></div>'}}}}}}});Fly.Template.registerHelper("paxWiseTotalBaseFare",function(fare){if(fare.PaxType=="ADT"){adultTotalBaseFare=fare.TravellerBaseFare;if(typeof whitelabel!="undefined"&&whitelabel&&whitelabel=="tp1"&&fare.CCFee){adultTotalBaseFare=adultTotalBaseFare-fare.CCFee}return parseFloat(Math.round(adultTotalBaseFare*100)/100).toFixed(2)}if(fare.PaxType=="CHD"||fare.PaxType=="CNN"){childTotalBaseFare=fare.TravellerBaseFare;if(typeof whitelabel!="undefined"&&whitelabel&&whitelabel=="tp1"&&fare.CCFee){childTotalBaseFare=childTotalBaseFare-fare.CCFee}return parseFloat(Math.round(childTotalBaseFare*100)/100).toFixed(2)}if(fare.PaxType=="INF"){infantTotalBaseFare=fare.TravellerBaseFare;if(typeof whitelabel!="undefined"&&whitelabel&&whitelabel=="tp1"&&fare.CCFee){infantTotalBaseFare=infantTotalBaseFare-fare.CCFee}return parseFloat(Math.round(infantTotalBaseFare*100)/100).toFixed(2)}});Fly.Template.registerHelper("paxWiseTotaltaxes",function(fare){if(fare.PaxType=="ADT"){adultTotalTaxes=fare.TravellerTaxes;return parseFloat(Math.round(adultTotalTaxes*100)/100).toFixed(2)}if(fare.PaxType=="CHD"||fare.PaxType=="CNN"){childTotalTaxes=fare.TravellerTaxes;return parseFloat(Math.round(childTotalTaxes*100)/100).toFixed(2)}if(fare.PaxType=="INF"){infantTotalTaxes=fare.TravellerTaxes;return parseFloat(Math.round(infantTotalTaxes*100)/100).toFixed(2)}});Fly.Template.registerHelper("isItineraryHaveTaxes",function(fares){if(Fly.Util.isItineraryHaveTaxes(fares)){return""}else{return"none"}});this.registerHelper("thumbNailUrl",function(url,searchProviderType){if(url&&url.length>0){if(searchProviderType=="EXPEDIA"){return url.replace("_t.","_b.")}else{return url}}return""});this.registerHelper("refundable",function(hotel,options){if(hotel.RoomTypes&&hotel.RoomTypes.length>0){return hotel.RoomTypes[0].IsNonRefundable?options.inverse(this):options.fn(this)}return options.inverse(this)});this.registerHelper("payLater",function(hotel,options){if(hotel.RoomTypes&&hotel.RoomTypes.length>0){var rateInfoList=hotel.RoomTypes[0].RateInfoList;return rateInfoList&&rateInfoList.payLater?options.fn(this):options.inverse(this)}return options.inverse(this)})},safeString:function(a){return new Handlebars.SafeString(a)},htmlTemplate:function(c,b){var a=Handlebars.compile(c);return a(b)},checkPosition:function(a){if(a=="start"){return"right"}else{return"left"}}});Fly.define("core.util.ValidatorUtil",{singleton:true,alias:"Validate",instance:"auto",constructor:function(){},validateMultyCityFields:function(){var d=this,c=true;try{for(var g=1;g<4;g++){if($("#multiCityWidget_"+g).attr("isOpened")=="true"){var b=$("#origin_"+g).val();var a=$("#destination_"+g).val();var f=$("#fromDate_"+g).val();if((typeof b=="undefined")||(b=="")||(b=="null")){$("#origin_"+g).focus();$("#origin_"+g).attr("placeholder",Fly.Globals.i18NData.flight_search_validation_enter_origin);$("#origin_"+g).addClass("alert-Placeholder");c=false}else{if(Fly.Validate.validateAlphaNumeric(b)){$("#origin_"+g).focus();$("#origin_"+g).val("");$("#origin_"+g).attr("placeholder",Fly.Globals.i18NData.flight_search_validation_valid_origin);$("#origin_"+g).addClass("alert-Placeholder");c=false}else{if((typeof a=="undefined")||(a=="")||(a=="null")){$("#destination_"+g).focus();$("#destination_"+g).attr("placeholder",Fly.Globals.i18NData.flight_search_validation_enter_destination);$("#destination_"+g).addClass("alert-Placeholder");c=false}else{if(Fly.Validate.validateAlphaNumeric(a)){$("#destination_"+g).focus();$("#destination_"+g).val("");$("#destination_"+g).attr("placeholder",Fly.Globals.i18NData.flight_search_origin_valid_destination);$("#destination_"+g).addClass("alert-Placeholder");c=false}else{if((typeof f=="undefined")||(f=="NaN/NaN/NaN")||(f=="")||(f=="null")){$("#mobOnward_"+g).trigger("click");$("#fromDate_"+g).focus();$("#fromDate_"+g).attr("placeholder",Fly.Globals.i18NData.home_search_flights_depart);$("#fromDate_"+g).addClass("alert-Placeholder");c=false}}}}}}else{break}}}catch(h){}return c},valiateEmail:function(f){var a=null,d=false,c=null;if(Fly.Browser.isMobile()){return true}try{a=$("#Email___input").val();if(f){if(a==f){return true}else{c="Confirmation email and email should be same"}}else{c="Please enter ConfirmEmail"}if(c){var b={message:c,divId:"contactInfo_error_message",focus:"Email___input"};Fly.Common.showAlert(b);return false}}catch(g){}return d},validateMobileNumber:function(a){},validateCreditCardNumber:function(d){var c=false;try{if(d&&d!="undefined"){var b=$("#CardType___select").val();if(b){c=Fly.Common.getCardValid(b,d,"startWith");if(c&&c==true||c=="true"){c=Fly.Common.getCardValid(b,d,"length");if(c&&c==true||c=="true"){c=Fly.Common.getCardValid(b,d,"algorithm")}else{return false}}else{return false}}else{c=false;var a={message:"Invalid Card Type",divId:Fly.Globals.ERROR_MSG_DIV.PAYMENT_INFO,mobValidation:"CardNumber_error",focus:"CardType___select"};Fly.Common.showAlert(a)}}else{return false}}catch(f){}return c},isValid:function(a){},validateInputField:function(c,f,b,a){var i="valid",d=null;try{if(null!=c&&c!=""&&typeof c!=="undefined"){if(c.length<3){i="length"}if(b){d=new RegExp(b);var h=d.test(c);if(!h){i="alpha"}}}else{if(f=="true"){i="required"}}}catch(g){}return i},validateSelectField:function(a){var b="valid";if(!(a)||$.trim(a)==""||typeof a=="undefined"||a=="0"){b="required"}return b},numberDisplay:function(a,b){switch(parseInt(a)){case 1:b=a+"st";break;case 2:b=a+"nd";break;case 3:b=a+"rd";break;default:b=a+"th";break}return b},validateAlphaNumeric:function(b){try{var a=Fly.Globals.RegExps.number;pattern=new RegExp(a);var d=pattern.test(b);if(d){return true}else{return false}}catch(c){}},validateDocumentExpiryDate:function(c){for(var f in c){var j="";var e=c[f];var d=e.documentExpiryDate;if(!Fly.Common.isEmptyNullUndefined(d)){d=$.trim(d);var g=d.substring(0,2);var k=d.substring(6,10);var b=new Date();var h=b.getFullYear();var a=b.getMonth()+1;if(k<h){j=Config.PASSPORT_EXP_ERR_RULE_1;break}else{if(k==h){if(g<a){j=Config.PASSPORT_EXP_ERR_RULE_1;break}else{if((g-a)==0&&b.getDate()>d.substring(3,5)){j=Config.PASSPORT_EXP_ERR_RULE_1;break}}}}}}return j},validatePnrStandardization:function(al,l){var ag=true;var n=2;var f=al.userType;var F=al.pricefareStatus;var L=al.hdnpricefareStatus;var aa=al.consolidatorId;var S=al.adultCount;var K=al.childCount;var D=al.infantCount;if(al.isSubmitForManulTicket){if(al&&typeof al.consolidatorId!="undefined"&&al.consolidatorId!=Fly.Globals.AMEX__CONSOLIDATOR_ID){var t=$("#branch_in").val();ag=Fly.CommonValidator.isBranchSelected(t);if(!ag){return false}}}if(f==2&&(n==2||n==3)&&!al.isSubmitForManulTicket){if(!F){var C={alertMessage:Fly.I18N.PRICE_VALIDATE_ERROR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}else{if(!L){var C={alertMessage:Fly.I18N.ORIGINAL_FARE_VALIDATE_ERROR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}}}if(Fly.Common.isEmptyNullUndefined(al.existingIpcc)&&!al.isSubmitForManulTicket){if(al&&typeof al.consolidatorId!="undefined"&&al.consolidatorId!=Fly.Globals.AMEX__CONSOLIDATOR_ID){var C={alertMessage:Fly.I18N.VALIDATE_TICKETING_IPCC_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}}ag=Fly.CommonValidator.isValidHomeIpcc(al.homeIpcc,al.gdsId);if(!ag){return false}var a=al.agentInitial;if(al.consolidatorId=="9001"&&al.externalAgent=="false"){if(Fly.Common.isEmptyNullUndefined(a)||a==0){var C={alertMessage:Fly.I18N.AGENT_INITIAL_ERROR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);if(!this.alertWidget.result){return false}}if(!Fly.Common.isEmptyNullUndefined(a)&&$.trim(a).length==1){var C={alertMessage:Fly.I18N.AGENT_INITIAL_ERROR_RULE_1};Fly.AlertMessage.showMessage(C.alertMessage);return false}if($("#agentInitial_in option")){var Y=false;var b=document.getElementById("agentInitial_in").options;for(var aj=0;aj<b.length;aj++){if(b[aj].value.toUpperCase()==a.toUpperCase()){Y=true}}if(!Y){var C={alertMessage:Fly.I18N.AGENT_BRANCH_INITIAL_ERROR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}}}var ab=al.passengerInfoList;if(ab!=null&&ab.length>0){if($("#hiddenValidatingCarrierCode").val()!=""&&l.PTCOnDepartAirlines&&l.PTCOnDepartAirlines.indexOf($("#hiddenValidatingCarrierCode").val())>-1){l.PTCOnDepart=true}ag=this.validatePassengerInfo(ab,al.updateTsa,al.clearMcoNumbers,false,l.PTCOnDepart);if(!ag){return false}ag=Fly.CommonValidator.validatePassport(ab,al.updateTsa);if(!ag){return false}}if(al.isCarrierCodeChange=="true"&&al.isPricePNRHit=="false"&&al.isFareQuoteSelect=="false"&&!al.isSubmitForManulTicket){var C={alertMessage:Fly.I18N.MOT_Validating_Carrier_Code_Change1};Fly.AlertMessage.showMessage(C.alertMessage);$("#validatingCarrierCode").focus();return false}if(al.isCarrierCodeChange=="true"&&al.isPricePNRHit=="true"&&al.isFareQuoteSelect=="false"&&!al.isSubmitForManulTicket&&!al.phaseIVChecked){var C={alertMessage:Fly.I18N.MOT_Validating_Carrier_Code_Change2};Fly.AlertMessage.showMessage(C.alertMessage);$("#validatingCarrierCode").focus();return false}if(al.isFareQuoteSelect=="true"&&al.isCarrierCodeChange=="true"&&!al.isSubmitForManulTicket){if(al.carrierCode!=al.hiddenCarrierCode){var C={alertMessage:Fly.I18N.MOT_Validating_Carrier_Code_Change1};Fly.AlertMessage.showMessage(C.alertMessage);$("#validatingCarrierCode").focus();return false}}var d=al.phaseIVChecked;delete al.isPhaseIVChecked;delete al.isForceFareChecked;if(al.orderTicketInfoVO&&al.orderTicketInfoVO.phaseIVInfoList&&!al.isSubmitForManulTicket){var G=al.orderTicketInfoVO.phaseIVInfoList;if(G&&G.length>0){for(var aj in G){phaseIVInfoVO=G[aj];var ac=phaseIVInfoVO.sellingCurrency;var ah=phaseIVInfoVO.sellingBaseFare;var M=phaseIVInfoVO.localCurrency;var P=phaseIVInfoVO.localBaseFare;var r=Fly.Common.getPaxTypeName(phaseIVInfoVO.paxType);var o=phaseIVInfoVO.phaseIVSegInfoMap;var an=0;if(d){if(S>0){if(Fly.Common.isEmptyNullUndefined(ah)){var C={alertMessage:r+Fly.I18N.SELLING_BASE_FARE_ERROR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}if(Fly.Common.trimVal(M)&&Fly.Common.isEmptyNullUndefined(P)){var C={alertMessage:r+Fly.I18N.LOCAL_BASE_FARE_ERROR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}}if(Fly.Common.isEmptyNullUndefined(al.orderTicketInfoVO.validatingCarrierCode)){var C={alertMessage:Fly.I18N.VALIDATING_CARRIER_CODE_ERROR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}}var R=1;for(var v in o){var h=o[v];var B=h.fareBasis;var z=h.isfareBasisOptChecked;var O=true;if(Fly.Common.isEmptyNullUndefined(B)&&R==1){if($.trim(r).toUpperCase()=="ADULT"){O=false}else{if(("undefined"!=z&&!z)||d){O=false}}}if(!O){var C={alertMessage:r+Fly.I18N.FARE_BASIS_CODE_ERROR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}var U=h.nvb;if(Fly.Common.isEmptyNullUndefined(U)&&!MONDEE.utils.DateUtils.dateValidation(U,"ddMMM")){var C={alertMessage:r+Fly.I18N.NVB_ERROR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}var V=h.nva;if(Fly.Common.isEmptyNullUndefined(V)&&!MONDEE.utils.DateUtils.dateValidation(V,"ddMMM")){var C={alertMessage:r+Fly.I18N.NVA_ERROR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}if(d){var am=h.connectionType;if(Fly.Common.isEmptyNullUndefined(am)&&!Fly.Common.isEquals(am,"O")&&!Fly.Common.isEquals(am,"X")){var C={alertMessage:r+Fly.I18N.CONNECTION_TYPE_ERROR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}var H=h.baggage;if(Fly.Common.isEmptyNullUndefined(H)&&R==1){var C={alertMessage:r+Fly.I18N.BAGGAGE_ERROR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}var af=h.baseFare;if(af=="undefined"||af==""){}else{if(!MONDEE.constants.DECIMAL_REG_EXP.test(af)){var C={alertMessage:Fly.I18N.BASE_FARE_ERROR_RULE_0+r.toLowerCase()};Fly.AlertMessage.showMessage(C.alertMessage);return false}else{an+=parseFloat(af)}}var q=h.qCharge;if("undefined"==q||q==""){}else{if(!MONDEE.utils.MotValidateUtils.validateQcharge(q)){var C={alertMessage:Fly.I18N.QS_CHARGE_ERROR_RULE_0+r.toLowerCase()};Fly.AlertMessage.showMessage(C.alertMessage);return false}else{var ae=q.split(",");var e=0;if(ae!=null&&ae.length>0){for(var aj=0;aj<ae.length;aj++){e+=parseFloat(ae[aj].substring(1,ae[aj].length))}}an+=parseFloat(e)}}}R=R+1}if(d){if(!Fly.Common.isEmptyNullUndefined(ah)&&!Fly.Common.isEmptyNullUndefined(an)){var Z=parseFloat(an)-parseFloat(ah);if(Z!=0){var C={alertMessage:r+Fly.I18N.SELLING_BASE_EQ_BASE_QCHARGE_FARE_ERROR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}}}}}}if(S>0&&al.adultChargeAmount&&!al.isSubmitForManulTicket){if(al.adultChargeAmount<=0){var C={alertMessage:Fly.I18N.GENERATE_AUTHCODE_RULE_4+Fly.I18N.PAX_TYPE_ADULT_1};Fly.AlertMessage.showMessage(C.alertMessage);return false}}if(K>0&&al.childChargeAmount&&!al.isSubmitForManulTicket){if(al.childChargeAmount<=0){var C={alertMessage:Fly.I18N.GENERATE_AUTHCODE_RULE_4+Fly.I18N.PAX_TYPE_CHILD_1};Fly.AlertMessage.showMessage(C.alertMessage);return false}}if(D>0&&al.infantChargeAmount&&!al.isSubmitForManulTicket){if(al.infnatChargeAmount<=0){var C={alertMessage:Fly.I18N.GENERATE_AUTHCODE_RULE_4+Fly.I18N.PAX_TYPE_INFANT_1};Fly.AlertMessage.showMessage(C.alertMessage);return false}}var T=al.paymentInfoList;if(T&&T.length>0){ag=Fly.CommonValidator.validateAddressFields(T,n,false,al);if(!ag){return false}}ag=Fly.Validate.validateExtMotMultiFop(al);if(!ag){return false}ag=Fly.Validate.validateSpecialTktngInstructions(al);if(!ag){return false}if(!true){var C={alertMessage:Fly.I18N.CC_CHANGE_ERR_RULE_0,okBtn:false,closeBtn:true,buttons:[{id:Fly.I18N.BUTTON_CONFIRM_LABEL,label:Fly.I18N.BUTTON_CONFIRM_LABEL,callback:Fly.Common.confirmCallbackBtn},{id:Fly.I18N.BUTTON_CANCEL_LABEL,label:Fly.I18N.BUTTON_CANCEL_LABEL,callback:Fly.Common.cancelCallbackBtn}]};this.alertWidget=MONDEE.widgetFactory.get("Alert",C);if(!this.alertWidget.result){return false}}if(n==1&&al.Accouting==0&&(aa=="9001"||aa=="9124")&&!al.isSubmitForManulTicket){var C={alertMessage:Fly.I18N.ACCOUNTING_OPT_ERR_RULE_1};Fly.AlertMessage.showMessage(C.alertMessage);return false}if(n==1&&!al.isSubmitForManulTicket){var N=al.optionQueue;if(N=="N"&&(aa=="9001"||aa=="9124")){if(Fly.Common.isEmptyNullUndefined(al.optionQueueIpcc)){var C={alertMessage:Fly.I18N.ACCOUNTING_OPT_ERR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage)}return false}}var ak=al.taxExemptionCodes;if(!Fly.Common.isEmptyNullUndefined(ak)&&!al.isSubmitForManulTicket){if(!MONDEE.utils.MotValidateUtils.validateTaxCode($.trim(ak))){return false}else{var Q=confirm(Fly.I18N.TAX_EXEMPTON_ERR_RULE_1);if(Q==false){return false}}}var y=al.ticketDesignator;if(!Fly.Common.isEmptyNullUndefined(y)&&!al.isSubmitForManulTicket){if(!Fly.Common.checkRegExp($.trim(y),MONDEE.constants.ALPHA_NUMERIC_REG_EXP_COMMA)){var C={alertMessage:Fly.I18N.TICKET_DESG_ERR_RULE_0,focusId:otticketdesg};this.alertWidget=MONDEE.widgetFactory.get("Alert",C);return false}}var I=al.tourCode;if(!Fly.Common.isEmptyNullUndefined(I)&&!al.isSubmitForManulTicket){if(!Fly.Common.checkRegExp($.trim(I),MONDEE.constants.ALPHA_NUMERIC_REG_EXP_2)){var C={alertMessage:Fly.I18N.TOUR_CODE_ERR_RULE_0,focusId:ottourcode};this.alertWidget=MONDEE.widgetFactory.get("Alert",C);return false}}var S=al.adultCount;if(!Fly.Common.isEmptyNullUndefined(S)&&S>0&&!al.isSubmitForManulTicket){var J=al.adultCommission;if(!Fly.Common.isEmptyNullUndefined(J)&&J.length>0&&J.toUpperCase().indexOf("P")<0&&J.toUpperCase().indexOf("A")<0){var C={alertMessage:Fly.I18N.PAX_TYPE_ADULT_0+Fly.I18N.COMMISSION_ERR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}var W=al.adultCommissionOffered;if(!Fly.Common.isEmptyNullUndefined(W)&&W.length>0&&W.toUpperCase().indexOf("P")<0&&W.toUpperCase().indexOf("A")<0){var C={alertMessage:Fly.I18N.PAX_TYPE_ADULT_0+Fly.I18N.COMMISSION_OFR_ERR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}}var K=al.childCount;if(!Fly.Common.isEmptyNullUndefined(K)&&K>0&&!al.isSubmitForManulTicket){var j=al.childCommission;if(!Fly.Common.isEmptyNullUndefined(j)&&j.length>0&&j.toUpperCase().indexOf("P")<0&&j.toUpperCase().indexOf("A")<0){var C={alertMessage:Fly.I18N.PAX_TYPE_CHILD_0+Fly.I18N.COMMISSION_ERR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}var w=al.childCommissionOffered;if(!Fly.Common.isEmptyNullUndefined(w)&&w.length>0&&w.toUpperCase().indexOf("P")<0&&w.toUpperCase().indexOf("A")<0){var C={alertMessage:Fly.I18N.PAX_TYPE_CHILD_0+Fly.I18N.COMMISSION_OFR_ERR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}}var D=al.infantCount;if(!Fly.Common.isEmptyNullUndefined(D)&&D>0&&!al.isSubmitForManulTicket){var ad=al.infantCommission;if(!Fly.Common.isEmptyNullUndefined(ad)&&ad.length>0&&ad.toUpperCase().indexOf("P")<0&&ad.toUpperCase().indexOf("A")<0){var C={alertMessage:Fly.I18N.PAX_TYPE_INFANT_0+Fly.I18N.COMMISSION_ERR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}var ai=al.infantCommissionOffered;if(!Fly.Common.isEmptyNullUndefined(ai)&&ai.length>0&&ai.toUpperCase().indexOf("P")<0&&ai.toUpperCase().indexOf("A")<0){var C={alertMessage:Fly.I18N.PAX_TYPE_INFANT_0+Fly.I18N.COMMISSION_OFR_ERR_RULE_0};Fly.AlertMessage.showMessage(C.alertMessage);return false}}var x=al.adultTotal;var c=al.sAdultTf;if(x>c&&!al.isSubmitForManulTicket){Q=confirm(Fly.I18N.PNR_UNDER_QUOTED_ERR_RULE_0);if(Q==false){return false}}else{if(K>0&&!al.isSubmitForManulTicket){var m=al.childTotal;var u=al.sChildTf;if(m>u){Q=confirm(Fly.I18N.PNR_UNDER_QUOTED_ERR_RULE_0);if(Q==false){return false}}else{if(D>0){var g=al.infantTotal;var p=al.sInfantTf;if(g>p){Q=confirm(Fly.I18N.PNR_UNDER_QUOTED_ERR_RULE_0);if(Q==false){return false}}}}}else{if(D>0&&!al.isSubmitForManulTicket){var g=al.infantTotal;var p=al.sInfantTf;if(g>p){Q=confirm(Fly.I18N.PNR_UNDER_QUOTED_ERR_RULE_0);if(Q==false){return false}}}}}var X=al.newClasses;if(X&&X!=""&&!al.isSubmitForManulTicket){var k=al.newClasses;var E=al.OriginalBookingClass.split("-");var A=k.split("-");var s="on";if(A&&E){for(var aj=0;aj<A.length;aj++){if(A[aj]&&E[aj]&&$.trim(A[aj])!=$.trim(E[aj])){if(s&&s=="on"){Q=confirm(Fly.I18N.CLASS_CHG_ERR_RULE_0);s="off";if(Q==false){return false}}}}}}return true},validateSpecialTktngInstructions:function(e){var b=0;var a=e.paymentInfoList;if(e.stiType&&e.stiType==1){for(var c in a){var f=a[c];b=(parseFloat(b)+parseFloat(f.amount)).toFixed(2)}}else{return true}if(e.strikedFare!=b){var d={alertMessage:Fly.I18N.EXT_MOT_SPECIAL_TKTNG_PUB_ERR};Fly.AlertMessage.showMessage(d.alertMessage);return false}return true},validateExtMotMultiFop:function(g){var i=parseInt(g.adultCount)+parseInt(g.childCount)+parseInt(g.infantCount);var k=0;var a=g.paymentInfoList;var h="";var c=0;if(a.length<=1){return true}for(var d in a){var f=a[d];if(f.associatedNameNumbersList&&f.associatedNameNumbersList.length>0){k=k+parseInt(f.associatedNameNumbersList.length);if(f.paymentTypeId!=3&&f.paymentTypeId!=2){for(var j in f.associatedNameNumbersList){var e=f.associatedNameNumbersList[j];if(h.indexOf(e)==-1){h+=e+","}else{var b={alertMessage:Fly.I18N.MULT_FOP_PAX_CARD_ERR_RULE_0};Fly.AlertMessage.showMessage(b.alertMessage);return false}}}}c=(parseFloat(c)+parseFloat(f.amount)).toFixed(2)}if(g.totalFare!=c){var b={alertMessage:Fly.I18N.MULT_FOP_PAX_CARD_ERR_RULE_6};Fly.AlertMessage.showMessage(b.alertMessage);return false}if(a&&a.length>1&&k==0){var b={alertMessage:Fly.I18N.MULT_FOP_PAX_CARD_ERR_RULE_1};Fly.AlertMessage.showMessage(b.alertMessage);return false}if(a&&a.length>1&&g.gdsId&&(g.gdsId!="1"&&g.gdsId!="2")){var b={alertMessage:Fly.I18N.MULT_FOP_PAX_CARD_ERR_RULE_2};Fly.AlertMessage.showMessage(b.alertMessage);return false}if(k>0){if(k>i){var b={alertMessage:Fly.I18N.MULT_FOP_PAX_CARD_ERR_RULE_3};Fly.AlertMessage.showMessage(b.alertMessage);return false}else{if(k<i){var b={alertMessage:Fly.I18N.MULT_FOP_PAX_CARD_ERR_RULE_4};Fly.AlertMessage.showMessage(b.alertMessage);return false}}}return true},validatePassengerInfo:function(j,b,A,g,n,h){for(var v in j){var e=j[v];var C=e.documentNumber;var x=e.dateOfBirth;var o=e.gender;var t=e.mcoNumber;var m=e.profileName;var d=e.firstName;var r=e.paxId;var k=e.ctPaxTypeId;var B=e.documentExpiryDate;var q=e.passengerType;var p=e.nameNumber;var u=true;var f=e.itineraryLastArrivalDate;var c=e.isFromNewSearchUi;if(n){f=e.itineraryDepartureDate}var l="0";if(e.whiteLabelConsolidatorIds){l=e.whiteLabelConsolidatorIds}if(g){u=Fly.CommonValidator.isValidName(e.lastName,v,Fly.I18N.LAST_NAME);if(u){u=Fly.CommonValidator.isValidName(d,v,Fly.I18N.FIRST_NAME)}if(u&&!Fly.Common.isEmptyNullUndefined(e.middleName)){u=Fly.CommonValidator.isValidName(e.middleName,v,Fly.I18N.MIDDLE_NAME)}if(!u){return false}}if(A&&(Fly.Common.isEmptyNullUndefined(t)||Fly.Common.length(t)!=13)){var w={alertMessage:Fly.I18N.MCO_NO_ERR_RULE_0+d};Fly.AlertMessage.showMessage(w.alertMessage);return false}else{if(A&&!Fly.Common.checkRegExp(t,MONDEE.constants.DECIMAL_REG_EXP)){var w={alertMessage:Fly.I18N.MCO_NO_ERR_RULE_1+d};Fly.AlertMessage.showMessage(w.alertMessage);return false}}if(!g&&(Fly.Common.isEmptyNullUndefined(r)||$.trim(r).toUpperCase()=="0")){var w={alertMessage:Fly.I18N.PAX_TYPE_ERR_RULE_0+d};Fly.AlertMessage.showMessage(w.alertMessage);return false}if((Fly.Common.isEmptyNullUndefined(o)||$.trim(o).toUpperCase()=="0")){var w={alertMessage:Fly.I18N.GENDER_ERR_RULE_0+d};Fly.AlertMessage.showMessage(w.alertMessage);return false}for(var v in j){var s=j[v];var a=s.dateOfBirth;var o=s.gender;var r=s.paxId;if(Fly.Common.isEmptyNullUndefined(a)){var z=Fly.Common.getPaxTypeNameById(s.ctPaxTypeId);var w={alertMessage:Fly.I18N.DOB_ERR_RULE_10+z+Fly.I18N.DOB_ERR_RULE_11};Fly.AlertMessage.showMessage(w.alertMessage);return false}}if(typeof h!="undefined"&&h&&!Fly.Common.isEmptyNullUndefined(m)){}else{if(g&&((gdsEmulatorType==6)||!Fly.Common.isEmptyNullUndefined(m)||(l&&(l==MONDEE.constants.VAXPRO_CONSOLIDATOR_ID||l==MONDEE.constants.PROTRAVEL_CONSOLIDATOR_IDS)))&&!Fly.CommonValidator.paxDOBValidation(x,k,g,f,c)){return false}}if(b&&!(g&&Fly.Common.isEmptyNullUndefined(x))){var y=Fly.CommonValidator.paxDOBValidation(x,k,g,f,c);if(!y){return false}}else{if((!Fly.Common.isEmptyNullUndefined(x))&&x){var y=Fly.CommonValidator.paxDOBValidation(x,k,g,f,c);if(!y){return false}}}if(g&&!Fly.CommonValidator.validatePassportInfo(e,b,g,n,c)){return false}}return true}});