function parseUri(e){for(var t=parseUri.options,i=t.parser[t.strictMode?"strict":"loose"].exec(e),n={},r=14;r--;)n[t.key[r]]=i[r]||"";return n[t.q.name]={},n[t.key[12]].replace(t.q.parser,function(e,i,r){i&&(n[t.q.name][i]=r)}),n}function sanitizeURL(e){return!(!e||0!==e.indexOf("/"))||parseUri(e).host===location.host}!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){var i=[],n=i.slice,r=i.concat,a=i.push,s=i.indexOf,o={},l=o.toString,c=o.hasOwnProperty,d={},u=function(e,t){return new u.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,h=/^-ms-/,f=/-([\da-z])/gi,m=function(e,t){return t.toUpperCase()};function g(e){var t="length"in e&&e.length,i=u.type(e);return"function"!==i&&!u.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e))}u.fn=u.prototype={jquery:"1.11.3",constructor:u,selector:"",length:0,toArray:function(){return n.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:n.call(this)},pushStack:function(e){var t=u.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return u.each(this,e,t)},map:function(e){return this.pushStack(u.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(n.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==u.type(e)||e.nodeType||u.isWindow(e))return!1;try{if(e.constructor&&!c.call(e,"constructor")&&!c.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(d.ownLast)for(t in e)return c.call(e,t);for(t in e);return void 0===t||c.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?o[l.call(e)]||"object":typeof e},globalEval:function(t){t&&u.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(h,"ms-").replace(f,m)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var n=0,r=e.length,a=g(e);if(i){if(a)for(;n+~]|"+R+")"+R+"*"),G=new RegExp("="+R+"*([^\\]'\"]*?)"+R+"*\\]","g"),W=new RegExp(z),Y=new RegExp("^"+H+"$"),K={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B.replace("w","w*")+")"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ie=new RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","ig"),ne=function(e,t,i){var n="0x"+t-65536;return n!=n||i?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},re=function(){p()};try{P.apply($=M.call(_.childNodes),_.childNodes),$[_.childNodes.length].nodeType}catch(e){P={apply:$.length?function(e,t){N.apply(e,M.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function ae(e,t,n,r){var a,o,c,d,u,f,v,b,E,S;if((t?t.ownerDocument||t:_)!==h&&p(t),t=t||h,n=n||[],d=t.nodeType,"string"!=typeof e||!e||1!==d&&9!==d&&11!==d)return n;if(!r&&m){if(11!==d&&(a=J.exec(e)))if(c=a[1]){if(9===d){if(!(o=t.getElementById(c))||!o.parentNode)return n;if(o.id===c)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(c))&&y(t,o)&&o.id===c)return n.push(o),n}else{if(a[2])return P.apply(n,t.getElementsByTagName(e)),n;if((c=a[3])&&i.getElementsByClassName)return P.apply(n,t.getElementsByClassName(c)),n}if(i.qsa&&(!g||!g.test(e))){if(b=v=w,E=t,S=1!==d&&e,1===d&&"object"!==t.nodeName.toLowerCase()){for(f=s(e),(v=t.getAttribute("id"))?b=v.replace(te,"\\$&"):t.setAttribute("id",b),b="[id='"+b+"'] ",u=f.length;u--;)f[u]=b+ge(f[u]);E=ee.test(e)&&fe(t.parentNode)||t,S=f.join(",")}if(S)try{return P.apply(n,E.querySelectorAll(S)),n}catch(e){}finally{v||t.removeAttribute("id")}}}return l(e.replace(j,"$1"),t,n,r)}function se(){var e=[];return function t(i,r){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=r}}function oe(e){return e[w]=!0,e}function le(e){var t=h.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var i=e.split("|"),r=e.length;r--;)n.attrHandle[i[r]]=t}function de(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||I)-(~e.sourceIndex||I);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function ue(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function he(e){return oe(function(t){return t=+t,oe(function(i,n){for(var r,a=e([],i.length,t),s=a.length;s--;)i[r=a[s]]&&(i[r]=!(n[r]=i[r]))})})}function fe(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=ae.support={},a=ae.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=ae.setDocument=function(e){var t,r,s=e?e.ownerDocument||e:_;return s!==h&&9===s.nodeType&&s.documentElement?(h=s,f=s.documentElement,(r=s.defaultView)&&r!==r.top&&(r.addEventListener?r.addEventListener("unload",re,!1):r.attachEvent&&r.attachEvent("onunload",re)),m=!a(s),i.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),i.getElementsByTagName=le(function(e){return e.appendChild(s.createComment("")),!e.getElementsByTagName("*").length}),i.getElementsByClassName=Z.test(s.getElementsByClassName),i.getById=le(function(e){return f.appendChild(e).id=w,!s.getElementsByName||!s.getElementsByName(w).length}),i.getById?(n.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i=t.getElementById(e);return i&&i.parentNode?[i]:[]}},n.filter.ID=function(e){var t=e.replace(ie,ne);return function(e){return e.getAttribute("id")===t}}):(delete n.find.ID,n.filter.ID=function(e){var t=e.replace(ie,ne);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}}),n.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],r=0,a=t.getElementsByTagName(e);if("*"===e){for(;i=a[r++];)1===i.nodeType&&n.push(i);return n}return a},n.find.CLASS=i.getElementsByClassName&&function(e,t){if(m)return t.getElementsByClassName(e)},v=[],g=[],(i.qsa=Z.test(s.querySelectorAll))&&(le(function(e){f.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+R+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+w+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]")}),le(function(e){var t=s.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+R+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(i.matchesSelector=Z.test(b=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&le(function(e){i.disconnectedMatch=b.call(e,"div"),b.call(e,"[s!='']:x"),v.push("!=",z)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Z.test(f.compareDocumentPosition),y=t||Z.test(f.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===n?e===s||e.ownerDocument===_&&y(_,e)?-1:t===s||t.ownerDocument===_&&y(_,t)?1:d?D(d,e)-D(d,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var i,n=0,r=e.parentNode,a=t.parentNode,o=[e],l=[t];if(!r||!a)return e===s?-1:t===s?1:r?-1:a?1:d?D(d,e)-D(d,t):0;if(r===a)return de(e,t);for(i=e;i=i.parentNode;)o.unshift(i);for(i=t;i=i.parentNode;)l.unshift(i);for(;o[n]===l[n];)n++;return n?de(o[n],l[n]):o[n]===_?-1:l[n]===_?1:0},s):h},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&p(e),t=t.replace(G,"='$1']"),i.matchesSelector&&m&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var n=b.call(e,t);if(n||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return ae(t,h,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!==h&&p(e),y(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!==h&&p(e);var r=n.attrHandle[t.toLowerCase()],a=r&&A.call(n.attrHandle,t.toLowerCase())?r(e,t,!m):void 0;return void 0!==a?a:i.attributes||!m?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,n=[],r=0,a=0;if(u=!i.detectDuplicates,d=!i.sortStable&&e.slice(0),e.sort(k),u){for(;t=e[a++];)t===e[a]&&(r=n.push(a));for(;r--;)e.splice(n[r],1)}return d=null,e},r=ae.getText=function(e){var t,i="",n=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=r(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[n++];)i+=r(t);return i},(n=ae.selectors={cacheLength:50,createPseudo:oe,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ie,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(ie,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&W.test(i)&&(t=s(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ie,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(n){var r=ae.attr(n,e);return null==r?"!="===t:!t||(r+="","="===t?r===i:"!="===t?r!==i:"^="===t?i&&0===r.indexOf(i):"*="===t?i&&r.indexOf(i)>-1:"$="===t?i&&r.slice(-i.length)===i:"~="===t?(" "+r.replace(U," ")+" ").indexOf(i)>-1:"|="===t&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,r){var a="nth"!==e.slice(0,3),s="last"!==e.slice(-4),o="of-type"===t;return 1===n&&0===r?function(e){return!!e.parentNode}:function(t,i,l){var c,d,u,p,h,f,m=a!==s?"nextSibling":"previousSibling",g=t.parentNode,v=o&&t.nodeName.toLowerCase(),b=!l&&!o;if(g){if(a){for(;m;){for(u=t;u=u[m];)if(o?u.nodeName.toLowerCase()===v:1===u.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&b){for(h=(c=(d=g[w]||(g[w]={}))[e]||[])[0]===E&&c[1],p=c[0]===E&&c[2],u=h&&g.childNodes[h];u=++h&&u&&u[m]||(p=h=0)||f.pop();)if(1===u.nodeType&&++p&&u===t){d[e]=[E,h,p];break}}else if(b&&(c=(t[w]||(t[w]={}))[e])&&c[0]===E)p=c[1];else for(;(u=++h&&u&&u[m]||(p=h=0)||f.pop())&&((o?u.nodeName.toLowerCase()!==v:1!==u.nodeType)||!++p||(b&&((u[w]||(u[w]={}))[e]=[E,p]),u!==t)););return(p-=r)===n||p%n==0&&p/n>=0}}},PSEUDO:function(e,t){var i,r=n.pseudos[e]||n.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return r[w]?r(t):r.length>1?(i=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?oe(function(e,i){for(var n,a=r(e,t),s=a.length;s--;)e[n=D(e,a[s])]=!(i[n]=a[s])}):function(e){return r(e,0,i)}):r}},pseudos:{not:oe(function(e){var t=[],i=[],n=o(e.replace(j,"$1"));return n[w]?oe(function(e,t,i,r){for(var a,s=n(e,null,r,[]),o=e.length;o--;)(a=s[o])&&(e[o]=!(t[o]=a))}):function(e,r,a){return t[0]=e,n(t,null,a,i),t[0]=null,!i.pop()}}),has:oe(function(e){return function(t){return ae(e,t).length>0}}),contains:oe(function(e){return e=e.replace(ie,ne),function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}}),lang:oe(function(e){return Y.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(ie,ne).toLowerCase(),function(t){var i;do{if(i=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,i){return[i<0?i+t:i]}),even:he(function(e,t){for(var i=0;i=0;)e.push(n);return e}),gt:he(function(e,t,i){for(var n=i<0?i+t:i;++n1?function(t,i,n){for(var r=e.length;r--;)if(!e[r](t,i,n))return!1;return!0}:e[0]}function ye(e,t,i,n,r){for(var a,s=[],o=0,l=e.length,c=null!=t;o-1&&(a[c]=!(s[c]=u))}}else v=ye(v===s?v.splice(f,v.length):v),r?r(null,s,v,l):P.apply(s,v)})}function _e(e){for(var t,i,r,a=e.length,s=n.relative[e[0].type],o=s||n.relative[" "],l=s?1:0,d=ve(function(e){return e===t},o,!0),u=ve(function(e){return D(t,e)>-1},o,!0),p=[function(e,i,n){var r=!s&&(n||i!==c)||((t=i).nodeType?d(e,i,n):u(e,i,n));return t=null,r}];l1&&be(p),l>1&&ge(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(j,"$1"),i,l0,r=e.length>0,a=function(a,s,o,l,d){var u,p,f,m=0,g="0",v=a&&[],b=[],y=c,w=a||r&&n.find.TAG("*",d),_=E+=null==y?1:Math.random()||.1,S=w.length;for(d&&(c=s!==h&&s);g!==S&&null!=(u=w[g]);g++){if(r&&u){for(p=0;f=e[p++];)if(f(u,s,o)){l.push(u);break}d&&(E=_)}i&&((u=!f&&u)&&m--,a&&v.push(u))}if(m+=g,i&&g!==m){for(p=0;f=t[p++];)f(v,b,s,o);if(a){if(m>0)for(;g--;)v[g]||b[g]||(b[g]=O.call(l));b=ye(b)}P.apply(l,b),d&&!a&&b.length>0&&m+t.length>1&&ae.uniqueSort(l)}return d&&(E=_,c=y),v};return i?oe(a):a}(a,r))).selector=e}return o},l=ae.select=function(e,t,r,a){var l,c,d,u,p,h="function"==typeof e&&e,f=!a&&s(e=h.selector||e);if(r=r||[],1===f.length){if((c=f[0]=f[0].slice(0)).length>2&&"ID"===(d=c[0]).type&&i.getById&&9===t.nodeType&&m&&n.relative[c[1].type]){if(!(t=(n.find.ID(d.matches[0].replace(ie,ne),t)||[])[0]))return r;h&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(l=K.needsContext.test(e)?0:c.length;l--&&(d=c[l],!n.relative[u=d.type]);)if((p=n.find[u])&&(a=p(d.matches[0].replace(ie,ne),ee.test(c[0].type)&&fe(t.parentNode)||t))){if(c.splice(l,1),!(e=a.length&&ge(c)))return P.apply(r,a),r;break}}return(h||o(e,f))(a,t,!m,r,ee.test(e)&&fe(t.parentNode)||t),r},i.sortStable=w.split("").sort(k).join("")===w,i.detectDuplicates=!!u,p(),i.sortDetached=le(function(e){return 1&e.compareDocumentPosition(h.createElement("div"))}),le(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||ce("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),i.attributes&&le(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ce("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ce(L,function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),ae}(e);u.find=v,u.expr=v.selectors,u.expr[":"]=u.expr.pseudos,u.unique=v.uniqueSort,u.text=v.getText,u.isXMLDoc=v.isXML,u.contains=v.contains;var b=u.expr.match.needsContext,y=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function _(e,t,i){if(u.isFunction(t))return u.grep(e,function(e,n){return!!t.call(e,n,e)!==i});if(t.nodeType)return u.grep(e,function(e){return e===t!==i});if("string"==typeof t){if(w.test(t))return u.filter(t,e,i);t=u.filter(t,e)}return u.grep(e,function(e){return u.inArray(e,t)>=0!==i})}u.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?u.find.matchesSelector(n,e)?[n]:[]:u.find.matches(e,u.grep(t,function(e){return 1===e.nodeType}))},u.fn.extend({find:function(e){var t,i=[],n=this,r=n.length;if("string"!=typeof e)return this.pushStack(u(e).filter(function(){for(t=0;t1?u.unique(i):i)).selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(_(this,e||[],!1))},not:function(e){return this.pushStack(_(this,e||[],!0))},is:function(e){return!!_(this,"string"==typeof e&&b.test(e)?u(e):e||[],!1).length}});var E,S=e.document,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(u.fn.init=function(e,t){var i,n;if(!e)return this;if("string"==typeof e){if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:T.exec(e))||!i[1]&&t)return!t||t.jquery?(t||E).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof u?t[0]:t,u.merge(this,u.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:S,!0)),y.test(i[1])&&u.isPlainObject(t))for(i in t)u.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if((n=S.getElementById(i[2]))&&n.parentNode){if(n.id!==i[2])return E.find(e);this.length=1,this[0]=n}return this.context=S,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):u.isFunction(e)?void 0!==E.ready?E.ready(e):e(u):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),u.makeArray(e,this))}).prototype=u.fn,E=u(S);var x=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};function k(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}u.extend({dir:function(e,t,i){for(var n=[],r=e[t];r&&9!==r.nodeType&&(void 0===i||1!==r.nodeType||!u(r).is(i));)1===r.nodeType&&n.push(r),r=r[t];return n},sibling:function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i}}),u.fn.extend({has:function(e){var t,i=u(e,this),n=i.length;return this.filter(function(){for(t=0;t-1:1===i.nodeType&&u.find.matchesSelector(i,e))){a.push(i);break}return this.pushStack(a.length>1?u.unique(a):a)},index:function(e){return e?"string"==typeof e?u.inArray(this[0],u(e)):u.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(u.unique(u.merge(this.get(),u(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),u.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return u.dir(e,"parentNode")},parentsUntil:function(e,t,i){return u.dir(e,"parentNode",i)},next:function(e){return k(e,"nextSibling")},prev:function(e){return k(e,"previousSibling")},nextAll:function(e){return u.dir(e,"nextSibling")},prevAll:function(e){return u.dir(e,"previousSibling")},nextUntil:function(e,t,i){return u.dir(e,"nextSibling",i)},prevUntil:function(e,t,i){return u.dir(e,"previousSibling",i)},siblings:function(e){return u.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return u.sibling(e.firstChild)},contents:function(e){return u.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:u.merge([],e.childNodes)}},function(e,t){u.fn[e]=function(i,n){var r=u.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=u.filter(n,r)),this.length>1&&(C[e]||(r=u.unique(r)),x.test(e)&&(r=r.reverse())),this.pushStack(r)}});var I,A=/\S+/g,$={};function O(){S.addEventListener?(S.removeEventListener("DOMContentLoaded",N,!1),e.removeEventListener("load",N,!1)):(S.detachEvent("onreadystatechange",N),e.detachEvent("onload",N))}function N(){(S.addEventListener||"load"===event.type||"complete"===S.readyState)&&(O(),u.ready())}u.Callbacks=function(e){var t,i,n,r,a,s,o=[],l=!(e="string"==typeof e?$[e]||function(e){var t=$[e]={};return u.each(e.match(A)||[],function(e,i){t[i]=!0}),t}(e):u.extend({},e)).once&&[],c=function(u){for(i=e.memory&&u,n=!0,a=s||0,s=0,r=o.length,t=!0;o&&a-1;)o.splice(n,1),t&&(n<=r&&r--,n<=a&&a--)}),this},has:function(e){return e?u.inArray(e,o)>-1:!(!o||!o.length)},empty:function(){return o=[],r=0,this},disable:function(){return o=l=i=void 0,this},disabled:function(){return!o},lock:function(){return l=void 0,i||d.disable(),this},locked:function(){return!l},fireWith:function(e,i){return!o||n&&!l||(i=[e,(i=i||[]).slice?i.slice():i],t?l.push(i):c(i)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d},u.extend({Deferred:function(e){var t=[["resolve","done",u.Callbacks("once memory"),"resolved"],["reject","fail",u.Callbacks("once memory"),"rejected"],["notify","progress",u.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return u.Deferred(function(i){u.each(t,function(t,a){var s=u.isFunction(e[t])&&e[t];r[a[1]](function(){var e=s&&s.apply(this,arguments);e&&u.isFunction(e.promise)?e.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[a[0]+"With"](this===n?i.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?u.extend(e,n):n}},r={};return n.pipe=n.then,u.each(t,function(e,a){var s=a[2],o=a[3];n[a[1]]=s.add,o&&s.add(function(){i=o},t[1^e][2].disable,t[2][2].lock),r[a[0]]=function(){return r[a[0]+"With"](this===r?n:this,arguments),this},r[a[0]+"With"]=s.fireWith}),n.promise(r),e&&e.call(r,r),r},when:function(e){var t,i,r,a=0,s=n.call(arguments),o=s.length,l=1!==o||e&&u.isFunction(e.promise)?o:0,c=1===l?e:u.Deferred(),d=function(e,i,r){return function(a){i[e]=this,r[e]=arguments.length>1?n.call(arguments):a,r===t?c.notifyWith(i,r):--l||c.resolveWith(i,r)}};if(o>1)for(t=new Array(o),i=new Array(o),r=new Array(o);a0||(I.resolveWith(S,[u]),u.fn.triggerHandler&&(u(S).triggerHandler("ready"),u(S).off("ready")))}}}),u.ready.promise=function(t){if(!I)if(I=u.Deferred(),"complete"===S.readyState)setTimeout(u.ready);else if(S.addEventListener)S.addEventListener("DOMContentLoaded",N,!1),e.addEventListener("load",N,!1);else{S.attachEvent("onreadystatechange",N),e.attachEvent("onload",N);var i=!1;try{i=null==e.frameElement&&S.documentElement}catch(e){}i&&i.doScroll&&function e(){if(!u.isReady){try{i.doScroll("left")}catch(t){return setTimeout(e,50)}O(),u.ready()}}()}return I.promise(t)};var P,M="undefined";for(P in u(d))break;d.ownLast="0"!==P,d.inlineBlockNeedsLayout=!1,u(function(){var e,t,i,n;(i=S.getElementsByTagName("body")[0])&&i.style&&(t=S.createElement("div"),(n=S.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(t),typeof t.style.zoom!==M&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",d.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(i.style.zoom=1)),i.removeChild(n))}),function(){var e=S.createElement("div");if(null==d.deleteExpando){d.deleteExpando=!0;try{delete e.test}catch(e){d.deleteExpando=!1}}e=null}(),u.acceptData=function(e){var t=u.noData[(e.nodeName+" ").toLowerCase()],i=+e.nodeType||1;return(1===i||9===i)&&(!t||!0!==t&&e.getAttribute("classid")===t)};var D=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,L=/([A-Z])/g;function R(e,t,i){if(void 0===i&&1===e.nodeType){var n="data-"+t.replace(L,"-$1").toLowerCase();if("string"==typeof(i=e.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:D.test(i)?u.parseJSON(i):i)}catch(e){}u.data(e,t,i)}else i=void 0}return i}function B(e){var t;for(t in e)if(("data"!==t||!u.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function H(e,t,n,r){if(u.acceptData(e)){var a,s,o=u.expando,l=e.nodeType,c=l?u.cache:e,d=l?e[o]:e[o]&&o;if(d&&c[d]&&(r||c[d].data)||void 0!==n||"string"!=typeof t)return d||(d=l?e[o]=i.pop()||u.guid++:o),c[d]||(c[d]=l?{}:{toJSON:u.noop}),"object"!=typeof t&&"function"!=typeof t||(r?c[d]=u.extend(c[d],t):c[d].data=u.extend(c[d].data,t)),s=c[d],r||(s.data||(s.data={}),s=s.data),void 0!==n&&(s[u.camelCase(t)]=n),"string"==typeof t?null==(a=s[t])&&(a=s[u.camelCase(t)]):a=s,a}}function F(e,t,i){if(u.acceptData(e)){var n,r,a=e.nodeType,s=a?u.cache:e,o=a?e[u.expando]:u.expando;if(s[o]){if(t&&(n=i?s[o]:s[o].data)){r=(t=u.isArray(t)?t.concat(u.map(t,u.camelCase)):t in n?[t]:(t=u.camelCase(t))in n?[t]:t.split(" ")).length;for(;r--;)delete n[t[r]];if(i?!B(n):!u.isEmptyObject(n))return}(i||(delete s[o].data,B(s[o])))&&(a?u.cleanData([e],!0):d.deleteExpando||s!=s.window?delete s[o]:s[o]=null)}}}u.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?u.cache[e[u.expando]]:e[u.expando])&&!B(e)},data:function(e,t,i){return H(e,t,i)},removeData:function(e,t){return F(e,t)},_data:function(e,t,i){return H(e,t,i,!0)},_removeData:function(e,t){return F(e,t,!0)}}),u.fn.extend({data:function(e,t){var i,n,r,a=this[0],s=a&&a.attributes;if(void 0===e){if(this.length&&(r=u.data(a),1===a.nodeType&&!u._data(a,"parsedAttrs"))){for(i=s.length;i--;)s[i]&&0===(n=s[i].name).indexOf("data-")&&R(a,n=u.camelCase(n.slice(5)),r[n]);u._data(a,"parsedAttrs",!0)}return r}return"object"==typeof e?this.each(function(){u.data(this,e)}):arguments.length>1?this.each(function(){u.data(this,e,t)}):a?R(a,e,u.data(a,e)):void 0},removeData:function(e){return this.each(function(){u.removeData(this,e)})}}),u.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=u._data(e,t),i&&(!n||u.isArray(i)?n=u._data(e,t,u.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=u.queue(e,t),n=i.length,r=i.shift(),a=u._queueHooks(e,t);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===t&&i.unshift("inprogress"),delete a.stop,r.call(e,function(){u.dequeue(e,t)},a)),!n&&a&&a.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return u._data(e,i)||u._data(e,i,{empty:u.Callbacks("once memory").add(function(){u._removeData(e,t+"queue"),u._removeData(e,i)})})}}),u.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length
a",d.leadingWhitespace=3===t.firstChild.nodeType,d.tbody=!t.getElementsByTagName("tbody").length,d.htmlSerialize=!!t.getElementsByTagName("link").length,d.html5Clone="<:nav>"!==S.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,i.appendChild(e),d.appendChecked=e.checked,t.innerHTML="",d.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,i.appendChild(t),t.innerHTML="",d.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,d.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){d.noCloneEvent=!1}),t.cloneNode(!0).click()),null==d.deleteExpando){d.deleteExpando=!0;try{delete t.test}catch(e){d.deleteExpando=!1}}}(),function(){var t,i,n=S.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})i="on"+t,(d[t+"Bubbles"]=i in e)||(n.setAttribute(i,"t"),d[t+"Bubbles"]=!1===n.attributes[i].expando);n=null}();var G=/^(?:input|select|textarea)$/i,W=/^key/,Y=/^(?:mouse|pointer|contextmenu)|click/,K=/^(?:focusinfocus|focusoutblur)$/,X=/^([^.]*)(?:\.(.+)|)$/;function Q(){return!0}function Z(){return!1}function J(){try{return S.activeElement}catch(e){}}function ee(e){var t=te.split("|"),i=e.createDocumentFragment();if(i.createElement)for(;t.length;)i.createElement(t.pop());return i}u.event={global:{},add:function(e,t,i,n,r){var a,s,o,l,c,d,p,h,f,m,g,v=u._data(e);if(v){for(i.handler&&(i=(l=i).handler,r=l.selector),i.guid||(i.guid=u.guid++),(s=v.events)||(s=v.events={}),(d=v.handle)||((d=v.handle=function(e){return typeof u===M||e&&u.event.triggered===e.type?void 0:u.event.dispatch.apply(d.elem,arguments)}).elem=e),o=(t=(t||"").match(A)||[""]).length;o--;)f=g=(a=X.exec(t[o])||[])[1],m=(a[2]||"").split(".").sort(),f&&(c=u.event.special[f]||{},f=(r?c.delegateType:c.bindType)||f,c=u.event.special[f]||{},p=u.extend({type:f,origType:g,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&u.expr.match.needsContext.test(r),namespace:m.join(".")},l),(h=s[f])||((h=s[f]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,n,m,d)||(e.addEventListener?e.addEventListener(f,d,!1):e.attachEvent&&e.attachEvent("on"+f,d))),c.add&&(c.add.call(e,p),p.handler.guid||(p.handler.guid=i.guid)),r?h.splice(h.delegateCount++,0,p):h.push(p),u.event.global[f]=!0);e=null}},remove:function(e,t,i,n,r){var a,s,o,l,c,d,p,h,f,m,g,v=u.hasData(e)&&u._data(e);if(v&&(d=v.events)){for(c=(t=(t||"").match(A)||[""]).length;c--;)if(f=g=(o=X.exec(t[c])||[])[1],m=(o[2]||"").split(".").sort(),f){for(p=u.event.special[f]||{},h=d[f=(n?p.delegateType:p.bindType)||f]||[],o=o[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=a=h.length;a--;)s=h[a],!r&&g!==s.origType||i&&i.guid!==s.guid||o&&!o.test(s.namespace)||n&&n!==s.selector&&("**"!==n||!s.selector)||(h.splice(a,1),s.selector&&h.delegateCount--,p.remove&&p.remove.call(e,s));l&&!h.length&&(p.teardown&&!1!==p.teardown.call(e,m,v.handle)||u.removeEvent(e,f,v.handle),delete d[f])}else for(f in d)u.event.remove(e,f+t[c],i,n,!0);u.isEmptyObject(d)&&(delete v.handle,u._removeData(e,"events"))}},trigger:function(t,i,n,r){var a,s,o,l,d,p,h,f=[n||S],m=c.call(t,"type")?t.type:t,g=c.call(t,"namespace")?t.namespace.split("."):[];if(o=p=n=n||S,3!==n.nodeType&&8!==n.nodeType&&!K.test(m+u.event.triggered)&&(m.indexOf(".")>=0&&(m=(g=m.split(".")).shift(),g.sort()),s=m.indexOf(":")<0&&"on"+m,(t=t[u.expando]?t:new u.Event(m,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=g.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),i=null==i?[t]:u.makeArray(i,[t]),d=u.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(n,i))){if(!r&&!d.noBubble&&!u.isWindow(n)){for(l=d.delegateType||m,K.test(l+m)||(o=o.parentNode);o;o=o.parentNode)f.push(o),p=o;p===(n.ownerDocument||S)&&f.push(p.defaultView||p.parentWindow||e)}for(h=0;(o=f[h++])&&!t.isPropagationStopped();)t.type=h>1?l:d.bindType||m,(a=(u._data(o,"events")||{})[t.type]&&u._data(o,"handle"))&&a.apply(o,i),(a=s&&o[s])&&a.apply&&u.acceptData(o)&&(t.result=a.apply(o,i),!1===t.result&&t.preventDefault());if(t.type=m,!r&&!t.isDefaultPrevented()&&(!d._default||!1===d._default.apply(f.pop(),i))&&u.acceptData(n)&&s&&n[m]&&!u.isWindow(n)){(p=n[s])&&(n[s]=null),u.event.triggered=m;try{n[m]()}catch(e){}u.event.triggered=void 0,p&&(n[s]=p)}return t.result}},dispatch:function(e){e=u.event.fix(e);var t,i,r,a,s,o,l=n.call(arguments),c=(u._data(this,"events")||{})[e.type]||[],d=u.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,e)){for(o=u.event.handlers.call(this,e,c),t=0;(a=o[t++])&&!e.isPropagationStopped();)for(e.currentTarget=a.elem,s=0;(r=a.handlers[s++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(r.namespace)||(e.handleObj=r,e.data=r.data,void 0!==(i=((u.event.special[r.origType]||{}).handle||r.handler).apply(a.elem,l))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,e),e.result}},handlers:function(e,t){var i,n,r,a,s=[],o=t.delegateCount,l=e.target;if(o&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(r=[],a=0;a=0:u.find(i,this,null,[l]).length),r[i]&&r.push(n);r.length&&s.push({elem:l,handlers:r})}return o]","i"),re=/^\s+/,ae=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,se=/<([\w:]+)/,oe=/\s*$/g,fe={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:d.htmlSerialize?[0,"",""]:[1,"X
","
"]},me=ee(S).appendChild(S.createElement("div"));function ge(e,t){var i,n,r=0,a=typeof e.getElementsByTagName!==M?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==M?e.querySelectorAll(t||"*"):void 0;if(!a)for(a=[],i=e.childNodes||e;null!=(n=i[r]);r++)!t||u.nodeName(n,t)?a.push(n):u.merge(a,ge(n,t));return void 0===t||t&&u.nodeName(e,t)?u.merge([e],a):a}function ve(e){V.test(e.type)&&(e.defaultChecked=e.checked)}function be(e,t){return u.nodeName(e,"table")&&u.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function ye(e){return e.type=(null!==u.find.attr(e,"type"))+"/"+e.type,e}function we(e){var t=pe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _e(e,t){for(var i,n=0;null!=(i=e[n]);n++)u._data(i,"globalEval",!t||u._data(t[n],"globalEval"))}function Ee(e,t){if(1===t.nodeType&&u.hasData(e)){var i,n,r,a=u._data(e),s=u._data(t,a),o=a.events;if(o)for(i in delete s.handle,s.events={},o)for(n=0,r=o[i].length;n")?a=e.cloneNode(!0):(me.innerHTML=e.outerHTML,me.removeChild(a=me.firstChild)),!(d.noCloneEvent&&d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||u.isXMLDoc(e)))for(n=ge(a),o=ge(e),s=0;null!=(r=o[s]);++s)n[s]&&Se(r,n[s]);if(t)if(i)for(o=o||ge(e),n=n||ge(a),s=0;null!=(r=o[s]);s++)Ee(r,n[s]);else Ee(e,a);return(n=ge(a,"script")).length>0&&_e(n,!l&&ge(e,"script")),n=o=r=null,a},buildFragment:function(e,t,i,n){for(var r,a,s,o,l,c,p,h=e.length,f=ee(t),m=[],g=0;g")+p[2],r=p[0];r--;)o=o.lastChild;if(!d.leadingWhitespace&&re.test(a)&&m.push(t.createTextNode(re.exec(a)[0])),!d.tbody)for(r=(a="table"!==l||oe.test(a)?""!==p[1]||oe.test(a)?0:o:o.firstChild)&&a.childNodes.length;r--;)u.nodeName(c=a.childNodes[r],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(u.merge(m,o.childNodes),o.textContent="";o.firstChild;)o.removeChild(o.firstChild);o=f.lastChild}else m.push(t.createTextNode(a));for(o&&f.removeChild(o),d.appendChecked||u.grep(ge(m,"input"),ve),g=0;a=m[g++];)if((!n||-1===u.inArray(a,n))&&(s=u.contains(a.ownerDocument,a),o=ge(f.appendChild(a),"script"),s&&_e(o),i))for(r=0;a=o[r++];)ue.test(a.type||"")&&i.push(a);return o=null,f},cleanData:function(e,t){for(var n,r,a,s,o=0,l=u.expando,c=u.cache,p=d.deleteExpando,h=u.event.special;null!=(n=e[o]);o++)if((t||u.acceptData(n))&&(s=(a=n[l])&&c[a])){if(s.events)for(r in s.events)h[r]?u.event.remove(n,r):u.removeEvent(n,r,s.handle);c[a]&&(delete c[a],p?delete n[l]:typeof n.removeAttribute!==M?n.removeAttribute(l):n[l]=null,i.push(a))}}}),u.fn.extend({text:function(e){return q(this,function(e){return void 0===e?u.text(this):this.empty().append((this[0]&&this[0].ownerDocument||S).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||be(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=be(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var i,n=e?u.filter(e,this):this,r=0;null!=(i=n[r]);r++)t||1!==i.nodeType||u.cleanData(ge(i)),i.parentNode&&(t&&u.contains(i.ownerDocument,i)&&_e(ge(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&u.cleanData(ge(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&u.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return u.clone(this,e,t)})},html:function(e){return q(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(ie,""):void 0;if("string"==typeof e&&!ce.test(e)&&(d.htmlSerialize||!ne.test(e))&&(d.leadingWhitespace||!re.test(e))&&!fe[(se.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(ae,"<$1>");try{for(;i1&&"string"==typeof m&&!d.checkClone&&de.test(m))return this.each(function(i){var n=h.eq(i);g&&(e[0]=m.call(this,i,n.html())),n.domManip(e,t)});if(p&&(i=(l=u.buildFragment(e,this[0].ownerDocument,!1,this)).firstChild,1===l.childNodes.length&&(l=i),i)){for(a=(s=u.map(ge(l,"script"),ye)).length;c")).appendTo(t.documentElement))[0].contentWindow||Te[0].contentDocument).document).write(),t.close(),i=ke(e,t),Te.detach()),Ce[e]=i),i}d.shrinkWrapBlocks=function(){return null!=xe?xe:(xe=!1,(t=S.getElementsByTagName("body")[0])&&t.style?(e=S.createElement("div"),(i=S.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(i).appendChild(e),typeof e.style.zoom!==M&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(S.createElement("div")).style.width="5px",xe=3!==e.offsetWidth),t.removeChild(i),xe):void 0);var e,t,i};var Ae,$e,Oe=/^margin/,Ne=new RegExp("^("+z+")(?!px)[a-z%]+$","i"),Pe=/^(top|right|bottom|left)$/;function Me(e,t){return{get:function(){var i=e();if(null!=i){if(!i)return(this.get=t).apply(this,arguments);delete this.get}}}}e.getComputedStyle?(Ae=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)},$e=function(e,t,i){var n,r,a,s,o=e.style;return s=(i=i||Ae(e))?i.getPropertyValue(t)||i[t]:void 0,i&&(""!==s||u.contains(e.ownerDocument,e)||(s=u.style(e,t)),Ne.test(s)&&Oe.test(t)&&(n=o.width,r=o.minWidth,a=o.maxWidth,o.minWidth=o.maxWidth=o.width=s,s=i.width,o.width=n,o.minWidth=r,o.maxWidth=a)),void 0===s?s:s+""}):S.documentElement.currentStyle&&(Ae=function(e){return e.currentStyle},$e=function(e,t,i){var n,r,a,s,o=e.style;return null==(s=(i=i||Ae(e))?i[t]:void 0)&&o&&o[t]&&(s=o[t]),Ne.test(s)&&!Pe.test(t)&&(n=o.left,(a=(r=e.runtimeStyle)&&r.left)&&(r.left=e.currentStyle.left),o.left="fontSize"===t?"1em":s,s=o.pixelLeft+"px",o.left=n,a&&(r.left=a)),void 0===s?s:s+""||"auto"}),function(){var t,i,n,r,a,s,o;function l(){var t,i,n,l;(i=S.getElementsByTagName("body")[0])&&i.style&&(t=S.createElement("div"),(n=S.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",r=a=!1,o=!0,e.getComputedStyle&&(r="1%"!==(e.getComputedStyle(t,null)||{}).top,a="4px"===(e.getComputedStyle(t,null)||{width:"4px"}).width,(l=t.appendChild(S.createElement("div"))).style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",l.style.marginRight=l.style.width="0",t.style.width="1px",o=!parseFloat((e.getComputedStyle(l,null)||{}).marginRight),t.removeChild(l)),t.innerHTML="
t
",(l=t.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===l[0].offsetHeight)&&(l[0].style.display="",l[1].style.display="none",s=0===l[0].offsetHeight),i.removeChild(n))}(t=S.createElement("div")).innerHTML="
a",(i=(n=t.getElementsByTagName("a")[0])&&n.style)&&(i.cssText="float:left;opacity:.5",d.opacity="0.5"===i.opacity,d.cssFloat=!!i.cssFloat,t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===t.style.backgroundClip,d.boxSizing=""===i.boxSizing||""===i.MozBoxSizing||""===i.WebkitBoxSizing,u.extend(d,{reliableHiddenOffsets:function(){return null==s&&l(),s},boxSizingReliable:function(){return null==a&&l(),a},pixelPosition:function(){return null==r&&l(),r},reliableMarginRight:function(){return null==o&&l(),o}}))}(),u.swap=function(e,t,i,n){var r,a,s={};for(a in t)s[a]=e.style[a],e.style[a]=t[a];for(a in r=i.apply(e,n||[]),t)e.style[a]=s[a];return r};var De=/alpha\([^)]*\)/i,Le=/opacity\s*=\s*([^)]*)/,Re=/^(none|table(?!-c[ea]).+)/,Be=new RegExp("^("+z+")(.*)$","i"),He=new RegExp("^([+-])=("+z+")","i"),Fe={position:"absolute",visibility:"hidden",display:"block"},ze={letterSpacing:"0",fontWeight:"400"},Ue=["Webkit","O","Moz","ms"];function je(e,t){if(t in e)return t;for(var i=t.charAt(0).toUpperCase()+t.slice(1),n=t,r=Ue.length;r--;)if((t=Ue[r]+i)in e)return t;return n}function qe(e,t){for(var i,n,r,a=[],s=0,o=e.length;s=1||""===t)&&""===u.trim(a.replace(De,""))&&i.removeAttribute&&(i.removeAttribute("filter"),""===t||n&&!n.filter)||(i.filter=De.test(a)?a.replace(De,r):a+" "+r)}}),u.cssHooks.marginRight=Me(d.reliableMarginRight,function(e,t){if(t)return u.swap(e,{display:"inline-block"},$e,[e,"marginRight"])}),u.each({margin:"",padding:"",border:"Width"},function(e,t){u.cssHooks[e+t]={expand:function(i){for(var n=0,r={},a="string"==typeof i?i.split(" "):[i];n<4;n++)r[e+U[n]+t]=a[n]||a[n-2]||a[0];return r}},Oe.test(e)||(u.cssHooks[e+t].set=Ve)}),u.fn.extend({css:function(e,t){return q(this,function(e,t,i){var n,r,a={},s=0;if(u.isArray(t)){for(n=Ae(e),r=t.length;s1)},show:function(){return qe(this,!0)},hide:function(){return qe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){j(this)?u(this).show():u(this).hide()})}}),u.Tween=Ye,Ye.prototype={constructor:Ye,init:function(e,t,i,n,r,a){this.elem=e,this.prop=i,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=a||(u.cssNumber[i]?"":"px")},cur:function(){var e=Ye.propHooks[this.prop];return e&&e.get?e.get(this):Ye.propHooks._default.get(this)},run:function(e){var t,i=Ye.propHooks[this.prop];return this.options.duration?this.pos=t=u.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Ye.propHooks._default.set(this),this}},Ye.prototype.init.prototype=Ye.prototype,Ye.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=u.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){u.fx.step[e.prop]?u.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[u.cssProps[e.prop]]||u.cssHooks[e.prop])?u.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Ye.propHooks.scrollTop=Ye.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},u.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},u.fx=Ye.prototype.init,u.fx.step={};var Ke,Xe,Qe,Ze,Je,et,tt,it=/^(?:toggle|show|hide)$/,nt=new RegExp("^(?:([+-])=|)("+z+")([a-z%]*)$","i"),rt=/queueHooks$/,at=[function(e,t,i){var n,r,a,s,o,l,c,p=this,h={},f=e.style,m=e.nodeType&&j(e),g=u._data(e,"fxshow");i.queue||(null==(o=u._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,l=o.empty.fire,o.empty.fire=function(){o.unqueued||l()}),o.unqueued++,p.always(function(){p.always(function(){o.unqueued--,u.queue(e,"fx").length||o.empty.fire()})}));1===e.nodeType&&("height"in t||"width"in t)&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],c=u.css(e,"display"),"inline"===("none"===c?u._data(e,"olddisplay")||Ie(e.nodeName):c)&&"none"===u.css(e,"float")&&(d.inlineBlockNeedsLayout&&"inline"!==Ie(e.nodeName)?f.zoom=1:f.display="inline-block"));i.overflow&&(f.overflow="hidden",d.shrinkWrapBlocks()||p.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]}));for(n in t)if(r=t[n],it.exec(r)){if(delete t[n],a=a||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[n])continue;m=!0}h[n]=g&&g[n]||u.style(e,n)}else c=void 0;if(u.isEmptyObject(h))"inline"===("none"===c?Ie(e.nodeName):c)&&(f.display=c);else for(n in g?"hidden"in g&&(m=g.hidden):g=u._data(e,"fxshow",{}),a&&(g.hidden=!m),m?u(e).show():p.done(function(){u(e).hide()}),p.done(function(){var t;for(t in u._removeData(e,"fxshow"),h)u.style(e,t,h[t])}),h)s=ct(m?g[n]:0,n,p),n in g||(g[n]=s.start,m&&(s.end=s.start,s.start="width"===n||"height"===n?1:0))}],st={"*":[function(e,t){var i=this.createTween(e,t),n=i.cur(),r=nt.exec(t),a=r&&r[3]||(u.cssNumber[e]?"":"px"),s=(u.cssNumber[e]||"px"!==a&&+n)&&nt.exec(u.css(i.elem,e)),o=1,l=20;if(s&&s[3]!==a){a=a||s[3],r=r||[],s=+n||1;do{s/=o=o||".5",u.style(i.elem,e,s+a)}while(o!==(o=i.cur()/n)&&1!==o&&--l)}return r&&(s=i.start=+s||+n||0,i.unit=a,i.end=r[1]?s+(r[1]+1)*r[2]:+r[2]),i}]};function ot(){return setTimeout(function(){Ke=void 0}),Ke=u.now()}function lt(e,t){var i,n={height:e},r=0;for(t=t?1:0;r<4;r+=2-t)n["margin"+(i=U[r])]=n["padding"+i]=e;return t&&(n.opacity=n.width=e),n}function ct(e,t,i){for(var n,r=(st[t]||[]).concat(st["*"]),a=0,s=r.length;a
a",et=Ze.getElementsByTagName("a")[0],tt=(Je=S.createElement("select")).appendChild(S.createElement("option")),Qe=Ze.getElementsByTagName("input")[0],et.style.cssText="top:1px",d.getSetAttribute="t"!==Ze.className,d.style=/top/.test(et.getAttribute("style")),d.hrefNormalized="/a"===et.getAttribute("href"),d.checkOn=!!Qe.value,d.optSelected=tt.selected,d.enctype=!!S.createElement("form").enctype,Je.disabled=!0,d.optDisabled=!tt.disabled,(Qe=S.createElement("input")).setAttribute("value",""),d.input=""===Qe.getAttribute("value"),Qe.value="t",Qe.setAttribute("type","radio"),d.radioValue="t"===Qe.value;var ut=/\r/g;u.fn.extend({val:function(e){var t,i,n,r=this[0];return arguments.length?(n=u.isFunction(e),this.each(function(i){var r;1===this.nodeType&&(null==(r=n?e.call(this,i,u(this).val()):e)?r="":"number"==typeof r?r+="":u.isArray(r)&&(r=u.map(r,function(e){return null==e?"":e+""})),(t=u.valHooks[this.type]||u.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=u.valHooks[r.type]||u.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(ut,""):null==i?"":i:void 0}}),u.extend({valHooks:{option:{get:function(e){var t=u.find.attr(e,"value");return null!=t?t:u.trim(u.text(e))}},select:{get:function(e){for(var t,i,n=e.options,r=e.selectedIndex,a="select-one"===e.type||r<0,s=a?null:[],o=a?r+1:n.length,l=r<0?o:a?r:0;l=0)try{n.selected=i=!0}catch(e){n.scrollHeight}else n.selected=!1;return i||(e.selectedIndex=-1),r}}}}),u.each(["radio","checkbox"],function(){u.valHooks[this]={set:function(e,t){if(u.isArray(t))return e.checked=u.inArray(u(e).val(),t)>=0}},d.checkOn||(u.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var pt,ht,ft=u.expr.attrHandle,mt=/^(?:checked|selected)$/i,gt=d.getSetAttribute,vt=d.input;u.fn.extend({attr:function(e,t){return q(this,u.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){u.removeAttr(this,e)})}}),u.extend({attr:function(e,t,i){var n,r,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return typeof e.getAttribute===M?u.prop(e,t,i):(1===a&&u.isXMLDoc(e)||(t=t.toLowerCase(),n=u.attrHooks[t]||(u.expr.match.bool.test(t)?ht:pt)),void 0===i?n&&"get"in n&&null!==(r=n.get(e,t))?r:null==(r=u.find.attr(e,t))?void 0:r:null!==i?n&&"set"in n&&void 0!==(r=n.set(e,i,t))?r:(e.setAttribute(t,i+""),i):void u.removeAttr(e,t))},removeAttr:function(e,t){var i,n,r=0,a=t&&t.match(A);if(a&&1===e.nodeType)for(;i=a[r++];)n=u.propFix[i]||i,u.expr.match.bool.test(i)?vt&>||!mt.test(i)?e[n]=!1:e[u.camelCase("default-"+i)]=e[n]=!1:u.attr(e,i,""),e.removeAttribute(gt?i:n)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&u.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}}}),ht={set:function(e,t,i){return!1===t?u.removeAttr(e,i):vt&>||!mt.test(i)?e.setAttribute(!gt&&u.propFix[i]||i,i):e[u.camelCase("default-"+i)]=e[i]=!0,i}},u.each(u.expr.match.bool.source.match(/\w+/g),function(e,t){var i=ft[t]||u.find.attr;ft[t]=vt&>||!mt.test(t)?function(e,t,n){var r,a;return n||(a=ft[t],ft[t]=r,r=null!=i(e,t,n)?t.toLowerCase():null,ft[t]=a),r}:function(e,t,i){if(!i)return e[u.camelCase("default-"+t)]?t.toLowerCase():null}}),vt&>||(u.attrHooks.value={set:function(e,t,i){if(!u.nodeName(e,"input"))return pt&&pt.set(e,t,i);e.defaultValue=t}}),gt||(pt={set:function(e,t,i){var n=e.getAttributeNode(i);if(n||e.setAttributeNode(n=e.ownerDocument.createAttribute(i)),n.value=t+="","value"===i||t===e.getAttribute(i))return t}},ft.id=ft.name=ft.coords=function(e,t,i){var n;if(!i)return(n=e.getAttributeNode(t))&&""!==n.value?n.value:null},u.valHooks.button={get:function(e,t){var i=e.getAttributeNode(t);if(i&&i.specified)return i.value},set:pt.set},u.attrHooks.contenteditable={set:function(e,t,i){pt.set(e,""!==t&&t,i)}},u.each(["width","height"],function(e,t){u.attrHooks[t]={set:function(e,i){if(""===i)return e.setAttribute(t,"auto"),i}}})),d.style||(u.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var bt=/^(?:input|select|textarea|button|object)$/i,yt=/^(?:a|area)$/i;u.fn.extend({prop:function(e,t){return q(this,u.prop,e,t,arguments.length>1)},removeProp:function(e){return e=u.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),u.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,i){var n,r,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return(1!==a||!u.isXMLDoc(e))&&(t=u.propFix[t]||t,r=u.propHooks[t]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(e,i,t))?n:e[t]=i:r&&"get"in r&&null!==(n=r.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=u.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}}}),d.hrefNormalized||u.each(["href","src"],function(e,t){u.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),d.optSelected||(u.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),u.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){u.propFix[this.toLowerCase()]=this}),d.enctype||(u.propFix.enctype="encoding");var wt=/[\t\r\n\f]/g;u.fn.extend({addClass:function(e){var t,i,n,r,a,s,o=0,l=this.length,c="string"==typeof e&&e;if(u.isFunction(e))return this.each(function(t){u(this).addClass(e.call(this,t,this.className))});if(c)for(t=(e||"").match(A)||[];o=0;)n=n.replace(" "+r+" "," ");s=e?u.trim(n):"",i.className!==s&&(i.className=s)}return this},toggleClass:function(e,t){var i=typeof e;return"boolean"==typeof t&&"string"===i?t?this.addClass(e):this.removeClass(e):u.isFunction(e)?this.each(function(i){u(this).toggleClass(e.call(this,i,this.className,t),t)}):this.each(function(){if("string"===i)for(var t,n=0,r=u(this),a=e.match(A)||[];t=a[n++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else i!==M&&"boolean"!==i||(this.className&&u._data(this,"__className__",this.className),this.className=this.className||!1===e?"":u._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",i=0,n=this.length;i=0)return!0;return!1}}),u.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){u.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}}),u.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}});var _t=u.now(),Et=/\?/,St=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;u.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var i,n=null,r=u.trim(t+"");return r&&!u.trim(r.replace(St,function(e,t,r,a){return i&&t&&(n=0),0===n?e:(i=r||t,n+=!a-!r,"")}))?Function("return "+r)():u.error("Invalid JSON: "+t)},u.parseXML=function(t){var i;if(!t||"string"!=typeof t)return null;try{e.DOMParser?i=(new DOMParser).parseFromString(t,"text/xml"):((i=new ActiveXObject("Microsoft.XMLDOM")).async="false",i.loadXML(t))}catch(e){i=void 0}return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||u.error("Invalid XML: "+t),i};var Tt,xt,Ct=/#.*$/,kt=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,At=/^(?:GET|HEAD)$/,$t=/^\/\//,Ot=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Nt={},Pt={},Mt="*/".concat("*");try{xt=location.href}catch(e){(xt=S.createElement("a")).href="",xt=xt.href}function Dt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,r=0,a=t.toLowerCase().match(A)||[];if(u.isFunction(i))for(;n=a[r++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Lt(e,t,i,n){var r={},a=e===Pt;function s(o){var l;return r[o]=!0,u.each(e[o]||[],function(e,o){var c=o(t,i,n);return"string"!=typeof c||a||r[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)}),l}return s(t.dataTypes[0])||!r["*"]&&s("*")}function Rt(e,t){var i,n,r=u.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&u.extend(!0,e,i),e}Tt=Ot.exec(xt.toLowerCase())||[],u.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Mt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":u.parseJSON,"text xml":u.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Rt(Rt(e,u.ajaxSettings),t):Rt(u.ajaxSettings,e)},ajaxPrefilter:Dt(Nt),ajaxTransport:Dt(Pt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,n,r,a,s,o,l,c,d=u.ajaxSetup({},t),p=d.context||d,h=d.context&&(p.nodeType||p.jquery)?u(p):u.event,f=u.Deferred(),m=u.Callbacks("once memory"),g=d.statusCode||{},v={},b={},y=0,w="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(2===y){if(!c)for(c={};t=It.exec(a);)c[t[1].toLowerCase()]=t[2];t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===y?a:null},setRequestHeader:function(e,t){var i=e.toLowerCase();return y||(e=b[i]=b[i]||e,v[e]=t),this},overrideMimeType:function(e){return y||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(y<2)for(t in e)g[t]=[g[t],e[t]];else _.always(e[_.status]);return this},abort:function(e){var t=e||w;return l&&l.abort(t),E(0,t),this}};if(f.promise(_).complete=m.add,_.success=_.done,_.error=_.fail,d.url=((e||d.url||xt)+"").replace(Ct,"").replace($t,Tt[1]+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=u.trim(d.dataType||"*").toLowerCase().match(A)||[""],null==d.crossDomain&&(i=Ot.exec(d.url.toLowerCase()),d.crossDomain=!(!i||i[1]===Tt[1]&&i[2]===Tt[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(Tt[3]||("http:"===Tt[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=u.param(d.data,d.traditional)),Lt(Nt,d,t,_),2===y)return _;for(n in(o=u.event&&d.global)&&0==u.active++&&u.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!At.test(d.type),r=d.url,d.hasContent||(d.data&&(r=d.url+=(Et.test(r)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=kt.test(r)?r.replace(kt,"$1_="+_t++):r+(Et.test(r)?"&":"?")+"_="+_t++)),d.ifModified&&(u.lastModified[r]&&_.setRequestHeader("If-Modified-Since",u.lastModified[r]),u.etag[r]&&_.setRequestHeader("If-None-Match",u.etag[r])),(d.data&&d.hasContent&&!1!==d.contentType||t.contentType)&&_.setRequestHeader("Content-Type",d.contentType),_.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Mt+"; q=0.01":""):d.accepts["*"]),d.headers)_.setRequestHeader(n,d.headers[n]);if(d.beforeSend&&(!1===d.beforeSend.call(p,_,d)||2===y))return _.abort();for(n in w="abort",{success:1,error:1,complete:1})_[n](d[n]);if(l=Lt(Pt,d,t,_)){_.readyState=1,o&&h.trigger("ajaxSend",[_,d]),d.async&&d.timeout>0&&(s=setTimeout(function(){_.abort("timeout")},d.timeout));try{y=1,l.send(v,E)}catch(e){if(!(y<2))throw e;E(-1,e)}}else E(-1,"No Transport");function E(e,t,i,n){var c,v,b,w,E,S=t;2!==y&&(y=2,s&&clearTimeout(s),l=void 0,a=n||"",_.readyState=e>0?4:0,c=e>=200&&e<300||304===e,i&&(w=function(e,t,i){for(var n,r,a,s,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(s in o)if(o[s]&&o[s].test(r)){l.unshift(s);break}if(l[0]in i)a=l[0];else{for(s in i){if(!l[0]||e.converters[s+" "+l[0]]){a=s;break}n||(n=s)}a=a||n}if(a)return a!==l[0]&&l.unshift(a),i[a]}(d,_,i)),w=function(e,t,i,n){var r,a,s,o,l,c={},d=e.dataTypes.slice();if(d[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(a=d.shift();a;)if(e.responseFields[a]&&(i[e.responseFields[a]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=d.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(s=c[l+" "+a]||c["* "+a]))for(r in c)if((o=r.split(" "))[1]===a&&(s=c[l+" "+o[0]]||c["* "+o[0]])){!0===s?s=c[r]:!0!==c[r]&&(a=o[0],d.unshift(o[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(d,w,_,c),c?(d.ifModified&&((E=_.getResponseHeader("Last-Modified"))&&(u.lastModified[r]=E),(E=_.getResponseHeader("etag"))&&(u.etag[r]=E)),204===e||"HEAD"===d.type?S="nocontent":304===e?S="notmodified":(S=w.state,v=w.data,c=!(b=w.error))):(b=S,!e&&S||(S="error",e<0&&(e=0))),_.status=e,_.statusText=(t||S)+"",c?f.resolveWith(p,[v,S,_]):f.rejectWith(p,[_,S,b]),_.statusCode(g),g=void 0,o&&h.trigger(c?"ajaxSuccess":"ajaxError",[_,d,c?v:b]),m.fireWith(p,[_,S]),o&&(h.trigger("ajaxComplete",[_,d]),--u.active||u.event.trigger("ajaxStop")))}return _},getJSON:function(e,t,i){return u.get(e,t,i,"json")},getScript:function(e,t){return u.get(e,void 0,t,"script")}}),u.each(["get","post"],function(e,t){u[t]=function(e,i,n,r){return u.isFunction(i)&&(r=r||n,n=i,i=void 0),u.ajax({url:e,type:t,dataType:r,data:i,success:n})}}),u._evalUrl=function(e){return u.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},u.fn.extend({wrapAll:function(e){if(u.isFunction(e))return this.each(function(t){u(this).wrapAll(e.call(this,t))});if(this[0]){var t=u(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return u.isFunction(e)?this.each(function(t){u(this).wrapInner(e.call(this,t))}):this.each(function(){var t=u(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=u.isFunction(e);return this.each(function(i){u(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(){return this.parent().each(function(){u.nodeName(this,"body")||u(this).replaceWith(this.childNodes)}).end()}}),u.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!d.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||u.css(e,"display"))},u.expr.filters.visible=function(e){return!u.expr.filters.hidden(e)};var Bt=/%20/g,Ht=/\[\]$/,Ft=/\r?\n/g,zt=/^(?:submit|button|image|reset|file)$/i,Ut=/^(?:input|select|textarea|keygen)/i;function jt(e,t,i,n){var r;if(u.isArray(t))u.each(t,function(t,r){i||Ht.test(e)?n(e,r):jt(e+"["+("object"==typeof r?t:"")+"]",r,i,n)});else if(i||"object"!==u.type(t))n(e,t);else for(r in t)jt(e+"["+r+"]",t[r],i,n)}u.param=function(e,t){var i,n=[],r=function(e,t){t=u.isFunction(t)?t():null==t?"":t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=u.ajaxSettings&&u.ajaxSettings.traditional),u.isArray(e)||e.jquery&&!u.isPlainObject(e))u.each(e,function(){r(this.name,this.value)});else for(i in e)jt(i,e[i],t,r);return n.join("&").replace(Bt,"+")},u.fn.extend({serialize:function(){return u.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=u.prop(this,"elements");return e?u.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!u(this).is(":disabled")&&Ut.test(this.nodeName)&&!zt.test(e)&&(this.checked||!V.test(e))}).map(function(e,t){var i=u(this).val();return null==i?null:u.isArray(i)?u.map(i,function(e){return{name:t.name,value:e.replace(Ft,"\r\n")}}):{name:t.name,value:i.replace(Ft,"\r\n")}}).get()}}),u.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Wt()||function(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}()}:Wt;var qt=0,Vt={},Gt=u.ajaxSettings.xhr();function Wt(){try{return new e.XMLHttpRequest}catch(e){}}e.attachEvent&&e.attachEvent("onunload",function(){for(var e in Vt)Vt[e](void 0,!0)}),d.cors=!!Gt&&"withCredentials"in Gt,(Gt=d.ajax=!!Gt)&&u.ajaxTransport(function(e){var t;if(!e.crossDomain||d.cors)return{send:function(i,n){var r,a=e.xhr(),s=++qt;if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)a[r]=e.xhrFields[r];for(r in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)void 0!==i[r]&&a.setRequestHeader(r,i[r]+"");a.send(e.hasContent&&e.data||null),t=function(i,r){var o,l,c;if(t&&(r||4===a.readyState))if(delete Vt[s],t=void 0,a.onreadystatechange=u.noop,r)4!==a.readyState&&a.abort();else{c={},o=a.status,"string"==typeof a.responseText&&(c.text=a.responseText);try{l=a.statusText}catch(e){l=""}o||!e.isLocal||e.crossDomain?1223===o&&(o=204):o=c.text?200:404}c&&n(o,l,c,a.getAllResponseHeaders())},e.async?4===a.readyState?setTimeout(t):a.onreadystatechange=Vt[s]=t:t()},abort:function(){t&&t(void 0,!0)}}}),u.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return u.globalEval(e),e}}}),u.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),u.ajaxTransport("script",function(e){if(e.crossDomain){var t,i=S.head||u("head")[0]||S.documentElement;return{send:function(n,r){(t=S.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||r(200,"success"))},i.insertBefore(t,i.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var Yt=[],Kt=/(=)\?(?=&|$)|\?\?/;u.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Yt.pop()||u.expando+"_"+_t++;return this[e]=!0,e}}),u.ajaxPrefilter("json jsonp",function(t,i,n){var r,a,s,o=!1!==t.jsonp&&(Kt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kt.test(t.data)&&"data");if(o||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=u.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(Kt,"$1"+r):!1!==t.jsonp&&(t.url+=(Et.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||u.error(r+" was not called"),s[0]},t.dataTypes[0]="json",a=e[r],e[r]=function(){s=arguments},n.always(function(){e[r]=a,t[r]&&(t.jsonpCallback=i.jsonpCallback,Yt.push(r)),s&&u.isFunction(a)&&a(s[0]),s=a=void 0}),"script"}),u.parseHTML=function(e,t,i){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(i=t,t=!1),t=t||S;var n=y.exec(e),r=!i&&[];return n?[t.createElement(n[1])]:(n=u.buildFragment([e],t,r),r&&r.length&&u(r).remove(),u.merge([],n.childNodes))};var Xt=u.fn.load;u.fn.load=function(e,t,i){if("string"!=typeof e&&Xt)return Xt.apply(this,arguments);var n,r,a,s=this,o=e.indexOf(" ");return o>=0&&(n=u.trim(e.slice(o,e.length)),e=e.slice(0,o)),u.isFunction(t)?(i=t,t=void 0):t&&"object"==typeof t&&(a="POST"),s.length>0&&u.ajax({url:e,type:a,dataType:"html",data:t}).done(function(e){r=arguments,s.html(n?u("
").append(u.parseHTML(e)).find(n):e)}).complete(i&&function(e,t){s.each(i,r||[e.responseText,t,e])}),this},u.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){u.fn[t]=function(e){return this.on(t,e)}}),u.expr.filters.animated=function(e){return u.grep(u.timers,function(t){return e===t.elem}).length};var Qt=e.document.documentElement;function Zt(e){return u.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}u.offset={setOffset:function(e,t,i){var n,r,a,s,o,l,c=u.css(e,"position"),d=u(e),p={};"static"===c&&(e.style.position="relative"),o=d.offset(),a=u.css(e,"top"),l=u.css(e,"left"),("absolute"===c||"fixed"===c)&&u.inArray("auto",[a,l])>-1?(s=(n=d.position()).top,r=n.left):(s=parseFloat(a)||0,r=parseFloat(l)||0),u.isFunction(t)&&(t=t.call(e,i,o)),null!=t.top&&(p.top=t.top-o.top+s),null!=t.left&&(p.left=t.left-o.left+r),"using"in t?t.using.call(e,p):d.css(p)}},u.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){u.offset.setOffset(this,e,t)});var t,i,n={top:0,left:0},r=this[0],a=r&&r.ownerDocument;return a?(t=a.documentElement,u.contains(t,r)?(typeof r.getBoundingClientRect!==M&&(n=r.getBoundingClientRect()),i=Zt(a),{top:n.top+(i.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(i.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):n):void 0},position:function(){if(this[0]){var e,t,i={top:0,left:0},n=this[0];return"fixed"===u.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),u.nodeName(e[0],"html")||(i=e.offset()),i.top+=u.css(e[0],"borderTopWidth",!0),i.left+=u.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-u.css(n,"marginTop",!0),left:t.left-i.left-u.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Qt;e&&!u.nodeName(e,"html")&&"static"===u.css(e,"position");)e=e.offsetParent;return e||Qt})}}),u.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var i=/Y/.test(t);u.fn[e]=function(n){return q(this,function(e,n,r){var a=Zt(e);if(void 0===r)return a?t in a?a[t]:a.document.documentElement[n]:e[n];a?a.scrollTo(i?u(a).scrollLeft():r,i?r:u(a).scrollTop()):e[n]=r},e,n,arguments.length,null)}}),u.each(["top","left"],function(e,t){u.cssHooks[t]=Me(d.pixelPosition,function(e,i){if(i)return i=$e(e,t),Ne.test(i)?u(e).position()[t]+"px":i})}),u.each({Height:"height",Width:"width"},function(e,t){u.each({padding:"inner"+e,content:t,"":"outer"+e},function(i,n){u.fn[n]=function(n,r){var a=arguments.length&&(i||"boolean"!=typeof n),s=i||(!0===n||!0===r?"margin":"border");return q(this,function(t,i,n){var r;return u.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===n?u.css(t,i,s):u.style(t,i,n,s)},t,a?n:void 0,a,null)}})}),u.fn.size=function(){return this.length},u.fn.andSelf=u.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return u});var Jt=e.jQuery,ei=e.$;return u.noConflict=function(t){return e.$===u&&(e.$=ei),t&&e.jQuery===u&&(e.jQuery=Jt),u},typeof t===M&&(e.jQuery=e.$=u),u}),parseUri.options={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},function(e,t,i){"function"==typeof define&&define.amd?define(["jquery"],function(n){return i(n,e,t),n.mobile}):i(e.jQuery,e,t)}(this,document,function(e,t,i,n){var r;!function(e,t,n){"$:nomunge";var r,a="hashchange",s=i,o=e.event.special,l=s.documentMode,c="on"+a in t&&(void 0===l||l>7);function d(e){return"#"+(e=e||location.href).replace(/^[^#]*#?(.*)$/,"$1")}e.fn[a]=function(e){return e?this.bind(a,e):this.trigger(a)},e.fn[a].delay=50,o[a]=e.extend(o[a],{setup:function(){if(c)return!1;e(r.start)},teardown:function(){if(c)return!1;e(r.stop)}}),r=function(){var i,n,r,o={},l=d(),u=function(e){return e},p=u,h=u;function f(){var n=d(),r=h(l);if(n!==l)p(l=n,r),e(t).trigger(a);else if(r!==l){var s=location.href.replace(/#.*/,"");sanitizeURL(s)?location.href=s+r:console.warn("Possible malicious DOM-based open redirection attempt!: "+s)}i=setTimeout(f,e.fn[a].delay)}return o.start=function(){i||f()},o.stop=function(){i&&clearTimeout(i),i=void 0},t.attachEvent&&!t.addEventListener&&!c&&(o.start=function(){n||(r=(r=e.fn[a].src)&&r+d(),n=e(''),s.close(),a=s.w.frames[0].document,e=a.createElement("div")}catch(t){e=n.createElement("div"),a=n.body}var o=function(i){return function(){var n=Array.prototype.slice.call(arguments,0);n.unshift(e),a.appendChild(e),e.addBehavior("#default#userData"),e.load(r);var s=i.apply(t,n);return a.removeChild(e),s}},l=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g"),c=function(e){return e.replace(/^d/,"___$&").replace(l,"___")};t.set=o(function(e,i,n){return i=c(i),void 0===n?t.remove(i):(e.setAttribute(i,t.serialize(n)),e.save(r),n)}),t.get=o(function(e,i,n){i=c(i);var r=t.deserialize(e.getAttribute(i));return void 0===r?n:r}),t.remove=o(function(e,t){t=c(t),e.removeAttribute(t),e.save(r)}),t.clear=o(function(e){var t=e.XMLDocument.documentElement.attributes;for(e.load(r);t.length;)e.removeAttribute(t[0].name);e.save(r)}),t.getAll=function(e){var i={};return t.forEach(function(e,t){i[e]=t}),i},t.forEach=o(function(e,i){for(var n,r=e.XMLDocument.documentElement.attributes,a=0;n=r[a];++a)i(n.name,t.deserialize(e.getAttribute(n.name)))})}try{var d="__storejs__";t.set(d,d),t.get(d)!=d&&(t.disabled=!0),t.remove(d)}catch(e){t.disabled=!0}return t.enabled=!t.disabled,t}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.ES6Promise=t()}(this,function(){"use strict";function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,n=void 0,r=void 0,a=function(e,t){p[i]=e,p[i+1]=t,2===(i+=2)&&(r?r(h):b())};var s="undefined"!=typeof window?window:void 0,o=s||{},l=o.MutationObserver||o.WebKitMutationObserver,c="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function u(){var e=setTimeout;return function(){return e(h,1)}}var p=new Array(1e3);function h(){for(var e=0;e= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=d-u,S=Math.floor,T=String.fromCharCode;function x(e){throw RangeError(_[e])}function C(e,t){for(var i=e.length;i--;)e[i]=t(e[i]);return e}function k(e,t){return C(e.split(w),t).join(".")}function I(e){for(var t,i,n=[],r=0,a=e.length;r=55296&&t<=56319&&r65535&&(t+=T((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=T(e)}).join("")}function $(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function O(e,t,i){var n=0;for(e=i?S(e/f):e>>1,e+=S(e/t);e>E*p>>1;n+=d)e=S(e/E);return S(n+(E+1)*e/(e+h))}function N(e){var t,i,n,r,a,s,o,l,h,f,b,y=[],w=e.length,_=0,E=g,T=m;for((i=e.lastIndexOf(v))<0&&(i=0),n=0;n=128&&x("not-basic"),y.push(e.charCodeAt(n));for(r=i>0?i+1:0;r=w&&x("invalid-input"),((l=(b=e.charCodeAt(r++))-48<10?b-22:b-65<26?b-65:b-97<26?b-97:d)>=d||l>S((c-_)/s))&&x("overflow"),_+=l*s,!(l<(h=o<=T?u:o>=T+p?p:o-T));o+=d)s>S(c/(f=d-h))&&x("overflow"),s*=f;T=O(_-a,t=y.length+1,0==a),S(_/t)>c-E&&x("overflow"),E+=S(_/t),_%=t,y.splice(_++,0,E)}return A(y)}function P(e){var t,i,n,r,a,s,o,l,h,f,b,y,w,_,E,C=[];for(y=(e=I(e)).length,t=g,i=0,a=m,s=0;s=t&&bS((c-i)/(w=n+1))&&x("overflow"),i+=(o-t)*w,t=o,s=0;sc&&x("overflow"),b==t){for(l=i,h=d;!(l<(f=h<=a?u:h>=a+p?p:h-a));h+=d)E=l-f,_=d-f,C.push(T($(f+E%_,0))),l=S(E/_);C.push(T($(l,0))),a=O(i,w,n==r),i=0,++n}++i,++t}return C.join("")}if(o={version:"1.2.4",ucs2:{decode:I,encode:A},decode:N,encode:P,toASCII:function(e){return k(e,function(e){return y.test(e)?"xn--"+P(e):e})},toUnicode:function(e){return k(e,function(e){return b.test(e)?N(e.slice(4).toLowerCase()):e})}},r&&!r.nodeType)if(a)a.exports=o;else for(l in o)o.hasOwnProperty(l)&&(r[l]=o[l]);else n.punycode=o}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,i){var n=e("./log");function r(e,t){for(var i=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),a=e.firstChild;a;)!0!==t&&1===a.nodeType&&"SCRIPT"===a.nodeName||i.appendChild(r(a,t)),a=a.nextSibling;return 1===e.nodeType&&(i._scrollTop=e.scrollTop,i._scrollLeft=e.scrollLeft,"CANVAS"===e.nodeName?function(e,t){try{t&&(t.width=e.width,t.height=e.height,t.getContext("2d").putImageData(e.getContext("2d").getImageData(0,0,e.width,e.height),0,0))}catch(t){n("Unable to copy canvas content from",e,t)}}(e,i):"TEXTAREA"!==e.nodeName&&"SELECT"!==e.nodeName||(i.value=e.value)),i}t.exports=function(e,t,i,n,a,s,o){var l=r(e.documentElement,a.javascriptEnabled),c=t.createElement("iframe");return c.className="html2canvas-container",c.style.visibility="hidden",c.style.position="fixed",c.style.left="-10000px",c.style.top="0px",c.style.border="0",c.width=i,c.height=n,c.scrolling="no",t.body.appendChild(c),new Promise(function(t){var i=c.contentWindow.document;c.contentWindow.onload=c.onload=function(){var e=setInterval(function(){i.body.childNodes.length>0&&(!function e(t){if(1===t.nodeType){t.scrollTop=t._scrollTop,t.scrollLeft=t._scrollLeft;for(var i=t.firstChild;i;)e(i),i=i.nextSibling}}(i.documentElement),clearInterval(e),"view"===a.type&&(c.contentWindow.scrollTo(s,o),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||c.contentWindow.scrollY===o&&c.contentWindow.scrollX===s||(i.documentElement.style.top=-o+"px",i.documentElement.style.left=-s+"px",i.documentElement.style.position="absolute")),t(c))},50)},i.open(),i.write(""),function(e,t,i){!e.defaultView||t===e.defaultView.pageXOffset&&i===e.defaultView.pageYOffset||e.defaultView.scrollTo(t,i)}(e,s,o),i.replaceChild(i.adoptNode(l),i.documentElement),i.close()})}},{"./log":13}],3:[function(e,t,i){function n(e){this.r=0,this.g=0,this.b=0,this.a=null;this.fromArray(e)||this.namedColor(e)||this.rgb(e)||this.rgba(e)||this.hex6(e)||this.hex3(e)}n.prototype.darken=function(e){var t=1-e;return new n([Math.round(this.r*t),Math.round(this.g*t),Math.round(this.b*t),this.a])},n.prototype.isTransparent=function(){return 0===this.a},n.prototype.isBlack=function(){return 0===this.r&&0===this.g&&0===this.b},n.prototype.fromArray=function(e){return Array.isArray(e)&&(this.r=Math.min(e[0],255),this.g=Math.min(e[1],255),this.b=Math.min(e[2],255),e.length>3&&(this.a=e[3])),Array.isArray(e)};var r=/^#([a-f0-9]{3})$/i;n.prototype.hex3=function(e){var t;return null!==(t=e.match(r))&&(this.r=parseInt(t[1][0]+t[1][0],16),this.g=parseInt(t[1][1]+t[1][1],16),this.b=parseInt(t[1][2]+t[1][2],16)),null!==t};var a=/^#([a-f0-9]{6})$/i;n.prototype.hex6=function(e){var t=null;return null!==(t=e.match(a))&&(this.r=parseInt(t[1].substring(0,2),16),this.g=parseInt(t[1].substring(2,4),16),this.b=parseInt(t[1].substring(4,6),16)),null!==t};var s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/;n.prototype.rgb=function(e){var t;return null!==(t=e.match(s))&&(this.r=Number(t[1]),this.g=Number(t[2]),this.b=Number(t[3])),null!==t};var o=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?\.?\d+)\s*\)$/;n.prototype.rgba=function(e){var t;return null!==(t=e.match(o))&&(this.r=Number(t[1]),this.g=Number(t[2]),this.b=Number(t[3]),this.a=Number(t[4])),null!==t},n.prototype.toString=function(){return null!==this.a&&1!==this.a?"rgba("+[this.r,this.g,this.b,this.a].join(",")+")":"rgb("+[this.r,this.g,this.b].join(",")+")"},n.prototype.namedColor=function(e){e=e.toLowerCase();var t=l[e];if(t)this.r=t[0],this.g=t[1],this.b=t[2];else if("transparent"===e)return this.r=this.g=this.b=this.a=0,!0;return!!t},n.prototype.isColor=!0;var l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};t.exports=n},{}],4:[function(e,t,i){var n=e("./support"),r=e("./renderers/canvas"),a=e("./imageloader"),s=e("./nodeparser"),o=e("./nodecontainer"),l=e("./log"),c=e("./utils"),d=e("./clone"),u=e("./proxy").loadUrlDocument,p=c.getBounds,h="data-html2canvas-node",f=0;function m(e,t){var i,n,a=f++;if((t=t||{}).logging&&(l.options.logging=!0,l.options.start=Date.now()),t.async=void 0===t.async||t.async,t.allowTaint=void 0!==t.allowTaint&&t.allowTaint,t.removeContainer=void 0===t.removeContainer||t.removeContainer,t.javascriptEnabled=void 0!==t.javascriptEnabled&&t.javascriptEnabled,t.imageTimeout=void 0===t.imageTimeout?1e4:t.imageTimeout,t.renderer="function"==typeof t.renderer?t.renderer:r,t.strict=!!t.strict,"string"==typeof e){if("string"!=typeof t.proxy)return Promise.reject("Proxy must be used when rendering url");var s=null!=t.width?t.width:window.innerWidth,o=null!=t.height?t.height:window.innerHeight;return u((i=e,n=document.createElement("a"),n.href=i,n.href=n.href,n),t.proxy,document,s,o,t).then(function(e){return v(e.contentWindow.document.documentElement,e,t,s,o)})}var c=(void 0===e?[document.documentElement]:e.length?e:[e])[0];return c.setAttribute(h+a,a),function(e,t,i,n,r){return d(e,e,i,n,t,e.defaultView.pageXOffset,e.defaultView.pageYOffset).then(function(a){l("Document cloned");var s=h+r,o="["+s+"='"+r+"']";e.querySelector(o).removeAttribute(s);var c=a.contentWindow,d=c.document.querySelector(o),u="function"==typeof t.onclone?Promise.resolve(t.onclone(c.document)):Promise.resolve(!0);return u.then(function(){return v(d,a,t,i,n)})})}(c.ownerDocument,t,c.ownerDocument.defaultView.innerWidth,c.ownerDocument.defaultView.innerHeight,a).then(function(e){return"function"==typeof t.onrendered&&(l("options.onrendered is deprecated, html2canvas returns a Promise containing the canvas"),t.onrendered(e)),e})}m.CanvasRenderer=r,m.NodeContainer=o,m.log=l,m.utils=c;var g="undefined"==typeof document||"function"!=typeof Object.create||"function"!=typeof document.createElement("canvas").getContext?function(){return Promise.reject("No canvas support")}:m;function v(e,t,i,r,o){var c,d=t.contentWindow,u=new n(d.document),h=new a(i,u),f=p(e),m="view"===i.type?r:(c=d.document,Math.max(Math.max(c.body.scrollWidth,c.documentElement.scrollWidth),Math.max(c.body.offsetWidth,c.documentElement.offsetWidth),Math.max(c.body.clientWidth,c.documentElement.clientWidth))),g="view"===i.type?o:function(e){return Math.max(Math.max(e.body.scrollHeight,e.documentElement.scrollHeight),Math.max(e.body.offsetHeight,e.documentElement.offsetHeight),Math.max(e.body.clientHeight,e.documentElement.clientHeight))}(d.document),v=new i.renderer(m,g,h,i,document);return new s(e,v,u,h,i).ready.then(function(){var n;return l("Finished rendering"),n="view"===i.type?b(v.canvas,{width:v.canvas.width,height:v.canvas.height,top:0,left:0,x:0,y:0}):e===d.document.body||e===d.document.documentElement||null!=i.canvas?v.canvas:b(v.canvas,{width:null!=i.width?i.width:f.width,height:null!=i.height?i.height:f.height,top:f.top,left:f.left,x:0,y:0}),function(e,t){t.removeContainer&&(e.parentNode.removeChild(e),l("Cleaned up container"))}(t,i),n})}function b(e,t){var i=document.createElement("canvas"),n=Math.min(e.width-1,Math.max(0,t.left)),r=Math.min(e.width,Math.max(1,t.left+t.width)),a=Math.min(e.height-1,Math.max(0,t.top)),s=Math.min(e.height,Math.max(1,t.top+t.height));i.width=t.width,i.height=t.height;var o=r-n,c=s-a;return l("Cropping canvas at:","left:",t.left,"top:",t.top,"width:",o,"height:",c),l("Resulting crop with width",t.width,"and height",t.height,"with x",n,"and y",a),i.getContext("2d").drawImage(e,n,a,o,c,t.x,t.y,o,c),i}t.exports=g},{"./clone":2,"./imageloader":11,"./log":13,"./nodecontainer":14,"./nodeparser":15,"./proxy":16,"./renderers/canvas":20,"./support":22,"./utils":26}],5:[function(e,t,i){var n=e("./log"),r=e("./utils").smallImage;t.exports=function e(t){if(this.src=t,n("DummyImageContainer for",t),!this.promise||!this.image){n("Initiating DummyImageContainer"),e.prototype.image=new Image;var i=this.image;e.prototype.promise=new Promise(function(e,t){i.onload=e,i.onerror=t,i.src=r(),!0===i.complete&&e(i)})}}},{"./log":13,"./utils":26}],6:[function(e,t,i){var n=e("./utils").smallImage;t.exports=function(e,t){var i,r,a=document.createElement("div"),s=document.createElement("img"),o=document.createElement("span");a.style.visibility="hidden",a.style.fontFamily=e,a.style.fontSize=t,a.style.margin=0,a.style.padding=0,document.body.appendChild(a),s.src=n(),s.width=1,s.height=1,s.style.margin=0,s.style.padding=0,s.style.verticalAlign="baseline",o.style.fontFamily=e,o.style.fontSize=t,o.style.margin=0,o.style.padding=0,o.appendChild(document.createTextNode("Hidden Text")),a.appendChild(o),a.appendChild(s),i=s.offsetTop-o.offsetTop+1,a.removeChild(o),a.appendChild(document.createTextNode("Hidden Text")),a.style.lineHeight="normal",s.style.verticalAlign="super",r=s.offsetTop-a.offsetTop+1,document.body.removeChild(a),this.baseline=i,this.lineWidth=1,this.middle=r}},{"./utils":26}],7:[function(e,t,i){var n=e("./font");function r(){this.data={}}r.prototype.getMetrics=function(e,t){return void 0===this.data[e+"-"+t]&&(this.data[e+"-"+t]=new n(e,t)),this.data[e+"-"+t]},t.exports=r},{"./font":6}],8:[function(e,t,i){var n=e("./utils").getBounds,r=e("./proxy").loadUrlDocument;function a(t,i,r){this.image=null,this.src=t;var a=this,s=n(t);this.promise=(i?new Promise(function(e){"about:blank"===t.contentWindow.document.URL||null==t.contentWindow.document.documentElement?t.contentWindow.onload=t.onload=function(){e(t)}:e(t)}):this.proxyLoad(r.proxy,s,r)).then(function(t){return e("./core")(t.contentWindow.document.documentElement,{type:"view",width:t.width,height:t.height,proxy:r.proxy,javascriptEnabled:r.javascriptEnabled,removeContainer:r.removeContainer,allowTaint:r.allowTaint,imageTimeout:r.imageTimeout/2})}).then(function(e){return a.image=e})}a.prototype.proxyLoad=function(e,t,i){var n=this.src;return r(n.src,e,n.ownerDocument,t.width,t.height,i)},t.exports=a},{"./core":4,"./proxy":16,"./utils":26}],9:[function(e,t,i){function n(e){this.src=e.value,this.colorStops=[],this.type=null,this.x0=.5,this.y0=.5,this.x1=.5,this.y1=.5,this.promise=Promise.resolve(!0)}n.TYPES={LINEAR:1,RADIAL:2},n.REGEXP_COLORSTOP=/^\s*(rgba?\(\s*\d{1,3},\s*\d{1,3},\s*\d{1,3}(?:,\s*[0-9\.]+)?\s*\)|[a-z]{3,20}|#[a-f0-9]{3,6})(?:\s+(\d{1,3}(?:\.\d+)?)(%|px)?)?(?:\s|$)/i,t.exports=n},{}],10:[function(e,t,i){t.exports=function(e,t){this.src=e,this.image=new Image;var i=this;this.tainted=null,this.promise=new Promise(function(n,r){i.image.onload=n,i.image.onerror=r,t&&(i.image.crossOrigin="anonymous"),i.image.src=e,!0===i.image.complete&&n(i.image)})}},{}],11:[function(e,t,i){var n=e("./log"),r=e("./imagecontainer"),a=e("./dummyimagecontainer"),s=e("./proxyimagecontainer"),o=e("./framecontainer"),l=e("./svgcontainer"),c=e("./svgnodecontainer"),d=e("./lineargradientcontainer"),u=e("./webkitgradientcontainer"),p=e("./utils").bind;function h(e,t){this.link=null,this.options=e,this.support=t,this.origin=this.getOrigin(window.location.href)}h.prototype.findImages=function(e){var t=[];return e.reduce(function(e,t){switch(t.node.nodeName){case"IMG":return e.concat([{args:[t.node.src],method:"url"}]);case"svg":case"IFRAME":return e.concat([{args:[t.node],method:t.node.nodeName}])}return e},[]).forEach(this.addImage(t,this.loadImage),this),t},h.prototype.findBackgroundImage=function(e,t){return t.parseBackgroundImages().filter(this.hasImageBackground).forEach(this.addImage(e,this.loadImage),this),e},h.prototype.addImage=function(e,t){return function(i){i.args.forEach(function(r){this.imageExists(e,r)||(e.splice(0,0,t.call(this,i)),n("Added image #"+e.length,"string"==typeof r?r.substring(0,100):r))},this)}},h.prototype.hasImageBackground=function(e){return"none"!==e.method},h.prototype.loadImage=function(e){if("url"===e.method){var t=e.args[0];return!this.isSVG(t)||this.support.svg||this.options.allowTaint?t.match(/data:image\/.*;base64,/i)?new r(t.replace(/url\(['"]{0,}|['"]{0,}\)$/gi,""),!1):this.isSameOrigin(t)||!0===this.options.allowTaint||this.isSVG(t)?new r(t,!1):this.support.cors&&!this.options.allowTaint&&this.options.useCORS?new r(t,!0):this.options.proxy?new s(t,this.options.proxy):new a(t):new l(t)}return"linear-gradient"===e.method?new d(e):"gradient"===e.method?new u(e):"svg"===e.method?new c(e.args[0],this.support.svg):"IFRAME"===e.method?new o(e.args[0],this.isSameOrigin(e.args[0].src),this.options):new a(e)},h.prototype.isSVG=function(e){return"svg"===e.substring(e.length-3).toLowerCase()||l.prototype.isInline(e)},h.prototype.imageExists=function(e,t){return e.some(function(e){return e.src===t})},h.prototype.isSameOrigin=function(e){return this.getOrigin(e)===this.origin},h.prototype.getOrigin=function(e){var t=this.link||(this.link=document.createElement("a"));return t.href=e,t.href=t.href,t.protocol+t.hostname+t.port},h.prototype.getPromise=function(e){return this.timeout(e,this.options.imageTimeout).catch(function(){return new a(e.src).promise.then(function(t){e.image=t})})},h.prototype.get=function(e){var t=null;return this.images.some(function(i){return(t=i).src===e})?t:null},h.prototype.fetch=function(e){return this.images=e.reduce(p(this.findBackgroundImage,this),this.findImages(e)),this.images.forEach(function(e,t){e.promise.then(function(){n("Succesfully loaded image #"+(t+1),e)},function(i){n("Failed loading image #"+(t+1),e,i)})}),this.ready=Promise.all(this.images.map(this.getPromise,this)),n("Finished searching images"),this},h.prototype.timeout=function(e,t){var i,r=Promise.race([e.promise,new Promise(function(r,a){i=setTimeout(function(){n("Timed out loading image",e),a(e)},t)})]).then(function(e){return clearTimeout(i),e});return r.catch(function(){clearTimeout(i)}),r},t.exports=h},{"./dummyimagecontainer":5,"./framecontainer":8,"./imagecontainer":10,"./lineargradientcontainer":12,"./log":13,"./proxyimagecontainer":17,"./svgcontainer":23,"./svgnodecontainer":24,"./utils":26,"./webkitgradientcontainer":27}],12:[function(e,t,i){var n=e("./gradientcontainer"),r=e("./color");function a(e){n.apply(this,arguments),this.type=n.TYPES.LINEAR;var t=a.REGEXP_DIRECTION.test(e.args[0])||!n.REGEXP_COLORSTOP.test(e.args[0]);t?e.args[0].split(/\s+/).reverse().forEach(function(e,t){switch(e){case"left":this.x0=0,this.x1=1;break;case"top":this.y0=0,this.y1=1;break;case"right":this.x0=1,this.x1=0;break;case"bottom":this.y0=1,this.y1=0;break;case"to":var i=this.y0,n=this.x0;this.y0=this.y1,this.x0=this.x1,this.x1=n,this.y1=i;break;case"center":break;default:var r=.01*parseFloat(e,10);if(isNaN(r))break;0===t?(this.y0=r,this.y1=1-this.y0):(this.x0=r,this.x1=1-this.x0)}},this):(this.y0=0,this.y1=1),this.colorStops=e.args.slice(t?1:0).map(function(e){var t=e.match(n.REGEXP_COLORSTOP),i=+t[2],a=0===i?"%":t[3];return{color:new r(t[1]),stop:"%"===a?i/100:null}}),null===this.colorStops[0].stop&&(this.colorStops[0].stop=0),null===this.colorStops[this.colorStops.length-1].stop&&(this.colorStops[this.colorStops.length-1].stop=1),this.colorStops.forEach(function(e,t){null===e.stop&&this.colorStops.slice(t).some(function(i,n){return null!==i.stop&&(e.stop=(i.stop-this.colorStops[t-1].stop)/(n+1)+this.colorStops[t-1].stop,!0)},this)},this)}a.prototype=Object.create(n.prototype),a.REGEXP_DIRECTION=/^\s*(?:to|left|right|top|bottom|center|\d{1,3}(?:\.\d+)?%?)(?:\s|$)/i,t.exports=a},{"./color":3,"./gradientcontainer":9}],13:[function(e,t,i){var n=function(){n.options.logging&&window.console&&window.console.log&&Function.prototype.bind.call(window.console.log,window.console).apply(window.console,[Date.now()-n.options.start+"ms","html2canvas:"].concat([].slice.call(arguments,0)))};n.options={logging:!1},t.exports=n},{}],14:[function(e,t,i){var n=e("./color"),r=e("./utils"),a=r.getBounds,s=r.parseBackgrounds,o=r.offsetBounds;function l(e,t){this.node=e,this.parent=t,this.stack=null,this.bounds=null,this.borders=null,this.clip=[],this.backgroundClip=[],this.offsetBounds=null,this.visible=null,this.computedStyles=null,this.colors={},this.styles={},this.backgroundImages=null,this.transformData=null,this.transformMatrix=null,this.isPseudoElement=!1,this.opacity=null}function c(e){return-1!==e.toString().indexOf("%")}function d(e){return e.replace("px","")}function u(e){return parseFloat(e)}l.prototype.cloneTo=function(e){e.visible=this.visible,e.borders=this.borders,e.bounds=this.bounds,e.clip=this.clip,e.backgroundClip=this.backgroundClip,e.computedStyles=this.computedStyles,e.styles=this.styles,e.backgroundImages=this.backgroundImages,e.opacity=this.opacity},l.prototype.getOpacity=function(){return null===this.opacity?this.opacity=this.cssFloat("opacity"):this.opacity},l.prototype.assignStack=function(e){this.stack=e,e.children.push(this)},l.prototype.isElementVisible=function(){return this.node.nodeType===Node.TEXT_NODE?this.parent.visible:"none"!==this.css("display")&&"hidden"!==this.css("visibility")&&!this.node.hasAttribute("data-html2canvas-ignore")&&("INPUT"!==this.node.nodeName||"hidden"!==this.node.getAttribute("type"))},l.prototype.css=function(e){return this.computedStyles||(this.computedStyles=this.isPseudoElement?this.parent.computedStyle(this.before?":before":":after"):this.computedStyle(null)),this.styles[e]||(this.styles[e]=this.computedStyles[e])},l.prototype.prefixedCss=function(e){var t=this.css(e);return void 0===t&&["webkit","moz","ms","o"].some(function(i){return void 0!==(t=this.css(i+e.substr(0,1).toUpperCase()+e.substr(1)))},this),void 0===t?null:t},l.prototype.computedStyle=function(e){return this.node.ownerDocument.defaultView.getComputedStyle(this.node,e)},l.prototype.cssInt=function(e){var t=parseInt(this.css(e),10);return isNaN(t)?0:t},l.prototype.color=function(e){return this.colors[e]||(this.colors[e]=new n(this.css(e)))},l.prototype.cssFloat=function(e){var t=parseFloat(this.css(e));return isNaN(t)?0:t},l.prototype.fontWeight=function(){var e=this.css("fontWeight");switch(parseInt(e,10)){case 401:e="bold";break;case 400:e="normal"}return e},l.prototype.parseClip=function(){var e=this.css("clip").match(this.CLIP);return e?{top:parseInt(e[1],10),right:parseInt(e[2],10),bottom:parseInt(e[3],10),left:parseInt(e[4],10)}:null},l.prototype.parseBackgroundImages=function(){return this.backgroundImages||(this.backgroundImages=s(this.css("backgroundImage")))},l.prototype.cssList=function(e,t){var i=(this.css(e)||"").split(",");return 1===(i=(i=i[t||0]||i[0]||"auto").trim().split(" ")).length&&(i=[i[0],c(i[0])?"auto":i[0]]),i},l.prototype.parseBackgroundSize=function(e,t,i){var n,r,a=this.cssList("backgroundSize",i);if(c(a[0]))n=e.width*parseFloat(a[0])/100;else{if(/contain|cover/.test(a[0])){var s=e.width/e.height,o=t.width/t.height;return s0?(this.renderIndex=0,this.asyncRenderer(this.renderQueue,e)):e():(this.renderQueue.forEach(this.paint,this),e())},this))},this))}function v(e){return e.parent&&e.parent.clip.length}function b(){}g.prototype.calculateOverflowClips=function(){this.nodes.forEach(function(e){if(L(e)){R(e)&&e.appendToDOM(),e.borders=this.parseBorders(e);var t="hidden"===e.css("overflow")?[e.borders.clip]:[],i=e.parseClip();i&&-1!==["absolute","fixed"].indexOf(e.css("position"))&&t.push([["rect",e.bounds.left+i.left,e.bounds.top+i.top,i.right-i.left,i.bottom-i.top]]),e.clip=v(e)?e.parent.clip.concat(t):t,e.backgroundClip="hidden"!==e.css("overflow")?e.clip.concat([e.borders.clip]):e.clip,R(e)&&e.cleanDOM()}else B(e)&&(e.clip=v(e)?e.parent.clip:[]);R(e)||(e.bounds=null)},this)},g.prototype.asyncRenderer=function(e,t,i){i=i||Date.now(),this.paint(e[this.renderIndex++]),e.length===this.renderIndex?t():i+20>Date.now()?this.asyncRenderer(e,t,i):setTimeout(p(function(){this.asyncRenderer(e,t)},this),0)},g.prototype.createPseudoHideStyles=function(e){this.createStyles(e,"."+o.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+':before { content: "" !important; display: none !important; }.'+o.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER+':after { content: "" !important; display: none !important; }')},g.prototype.disableAnimations=function(e){this.createStyles(e,"* { -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; animation: none !important; -webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; transition: none !important;}")},g.prototype.createStyles=function(e,t){var i=e.createElement("style");i.innerHTML=t,e.body.appendChild(i)},g.prototype.getPseudoElements=function(e){var t=[[e]];if(e.node.nodeType===Node.ELEMENT_NODE){var i=this.getPseudoElement(e,":before"),n=this.getPseudoElement(e,":after");i&&t.push(i),n&&t.push(n)}return U(t)},g.prototype.getPseudoElement=function(e,t){var i=e.computedStyle(t);if(!i||!i.content||"none"===i.content||"-moz-alt-content"===i.content||"none"===i.display)return null;for(var n=function(e){var t=e.substr(0,1);return t===e.substr(e.length-1)&&t.match(/'|"/)?e.substr(1,e.length-2):e}(i.content),r="url"===n.substr(0,3),a=document.createElement(r?"img":"html2canvaspseudoelement"),l=new o(a,e,t),c=i.length-1;c>=0;c--){var d=i.item(c).replace(/(\-[a-z])/g,function(e){return e.toUpperCase().replace("-","")});a.style[d]=i[d]}if(a.className=o.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+o.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER,r)return a.src=f(n)[0].args[0],[l];var u=document.createTextNode(n);return a.appendChild(u),[l,new s(u,l)]},g.prototype.getChildren=function(e){return U([].filter.call(e.node.childNodes,N).map(function(t){var i=[t.nodeType===Node.TEXT_NODE?new s(t,e):new a(t,e)].filter(z);return t.nodeType===Node.ELEMENT_NODE&&i.length&&"TEXTAREA"!==t.tagName?i[0].isElementVisible()?i.concat(this.getChildren(i[0])):[]:i},this))},g.prototype.newStackingContext=function(e,t){var i=new d(t,e.getOpacity(),e.node,e.parent);e.cloneTo(i),(t?i.getParentStack(this):i.parent.stack).contexts.push(i),e.stack=i},g.prototype.createStackingContexts=function(){this.nodes.forEach(function(e){L(e)&&(this.isRootElement(e)||function(e){return e.getOpacity()<1}(e)||function(e){var t=e.css("position");return"auto"!==(-1!==["absolute","relative","fixed"].indexOf(t)?e.css("zIndex"):"auto")}(e)||this.isBodyWithTransparentRoot(e)||e.hasTransform())?this.newStackingContext(e,!0):L(e)&&(P(e)&&I(e)||function(e){return-1!==["inline-block","inline-table"].indexOf(e.css("display"))}(e)||M(e))?this.newStackingContext(e,!1):e.assignStack(e.parent.stack)},this)},g.prototype.isBodyWithTransparentRoot=function(e){return"BODY"===e.node.nodeName&&e.parent.color("backgroundColor").isTransparent()},g.prototype.isRootElement=function(e){return null===e.parent},g.prototype.sortStackingContexts=function(e){var t;e.contexts.sort((t=e.contexts.slice(0),function(e,i){return e.cssInt("zIndex")+t.indexOf(e)/t.length-(i.cssInt("zIndex")+t.indexOf(i)/t.length)})),e.contexts.forEach(this.sortStackingContexts,this)},g.prototype.parseTextBounds=function(e){return function(t,i,n){if("none"!==e.parent.css("textDecoration").substr(0,4)||0!==t.trim().length){if(this.support.rangeBounds&&!e.parent.hasTransform()){var r=n.slice(0,i).join("").length;return this.getRangeBounds(e.node,r,t.length)}if(e.node&&"string"==typeof e.node.data){var a=e.node.splitText(t.length),s=this.getWrapperBounds(e.node,e.parent.hasTransform());return e.node=a,s}}else this.support.rangeBounds&&!e.parent.hasTransform()||(e.node=e.node.splitText(t.length));return{}}},g.prototype.getWrapperBounds=function(e,t){var i=e.ownerDocument.createElement("html2canvaswrapper"),n=e.parentNode,r=e.cloneNode(!0);i.appendChild(e.cloneNode(!0)),n.replaceChild(i,e);var a=t?m(i):h(i);return n.replaceChild(r,i),a},g.prototype.getRangeBounds=function(e,t,i){var n=this.range||(this.range=e.ownerDocument.createRange());return n.setStart(e,t),n.setEnd(e,t+i),n.getBoundingClientRect()},g.prototype.parse=function(e){var t=e.contexts.filter(C),i=e.children.filter(L),n=i.filter(D(M)),r=n.filter(D(P)).filter(D(A)),a=i.filter(D(P)).filter(M),s=n.filter(D(P)).filter(A),o=e.contexts.concat(n.filter(P)).filter(I),l=e.children.filter(B).filter(O),c=e.contexts.filter(k);t.concat(r).concat(a).concat(s).concat(o).concat(l).concat(c).forEach(function(e){this.renderQueue.push(e),$(e)&&(this.parse(e),this.renderQueue.push(new b))},this)},g.prototype.paint=function(e){try{e instanceof b?this.renderer.ctx.restore():B(e)?(R(e.parent)&&e.parent.appendToDOM(),this.paintText(e),R(e.parent)&&e.parent.cleanDOM()):this.paintNode(e)}catch(e){if(n(e),this.options.strict)throw e}},g.prototype.paintNode=function(e){$(e)&&(this.renderer.setOpacity(e.opacity),this.renderer.ctx.save(),e.hasTransform()&&this.renderer.setTransform(e.parseTransform())),"INPUT"===e.node.nodeName&&"checkbox"===e.node.type?this.paintCheckbox(e):"INPUT"===e.node.nodeName&&"radio"===e.node.type?this.paintRadio(e):this.paintElement(e)},g.prototype.paintElement=function(e){var t=e.parseBounds();this.renderer.clip(e.backgroundClip,function(){this.renderer.renderBackground(e,t,e.borders.borders.map(F))},this),this.renderer.clip(e.clip,function(){this.renderer.renderBorders(e.borders.borders)},this),this.renderer.clip(e.backgroundClip,function(){switch(e.node.nodeName){case"svg":case"IFRAME":var i=this.images.get(e.node);i?this.renderer.renderImage(e,t,e.borders,i):n("Error loading <"+e.node.nodeName+">",e.node);break;case"IMG":var r=this.images.get(e.node.src);r?this.renderer.renderImage(e,t,e.borders,r):n("Error loading ",e.node.src);break;case"CANVAS":this.renderer.renderImage(e,t,e.borders,{image:e.node});break;case"SELECT":case"INPUT":case"TEXTAREA":this.paintFormValue(e)}},this)},g.prototype.paintCheckbox=function(e){var t=e.parseBounds(),i=Math.min(t.width,t.height),n={width:i-1,height:i-1,top:t.top,left:t.left},r=[3,3],a=[r,r,r,r],s=[1,1,1,1].map(function(e){return{color:new c("#A5A5A5"),width:e}}),o=E(n,a,s);this.renderer.clip(e.backgroundClip,function(){this.renderer.rectangle(n.left+1,n.top+1,n.width-2,n.height-2,new c("#DEDEDE")),this.renderer.renderBorders(w(s,n,o,a)),e.node.checked&&(this.renderer.font(new c("#424242"),"normal","normal","bold",i-3+"px","arial"),this.renderer.text("✔",n.left+i/6,n.top+i-1))},this)},g.prototype.paintRadio=function(e){var t=e.parseBounds(),i=Math.min(t.width,t.height)-2;this.renderer.clip(e.backgroundClip,function(){this.renderer.circleStroke(t.left+1,t.top+1,i,new c("#DEDEDE"),1,new c("#A5A5A5")),e.node.checked&&this.renderer.circle(Math.ceil(t.left+i/4)+1,Math.ceil(t.top+i/4)+1,Math.floor(i/2),new c("#424242"))},this)},g.prototype.paintFormValue=function(e){var t=e.getValue();if(t.length>0){var i=e.node.ownerDocument,r=i.createElement("html2canvaswrapper");["lineHeight","textAlign","fontFamily","fontWeight","fontSize","color","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height","borderLeftStyle","borderTopStyle","borderLeftWidth","borderTopWidth","boxSizing","whiteSpace","wordWrap"].forEach(function(t){try{r.style[t]=e.css(t)}catch(e){n("html2canvas: Parse: Exception caught in renderFormValue: "+e.message)}});var a=e.parseBounds();r.style.position="fixed",r.style.left=a.left+"px",r.style.top=a.top+"px",r.textContent=t,i.body.appendChild(r),this.paintText(new s(r.firstChild,e)),i.body.removeChild(r)}},g.prototype.paintText=function(e){e.applyTextTransform();var t,i=r.ucs2.decode(e.node.data),n=this.options.letterRendering&&!function(e){return/^(normal|none|0px)$/.test(e.parent.css("letterSpacing"))}(e)||(t=e.node.data,/[^\u0000-\u00ff]/.test(t))?i.map(function(e){return r.ucs2.encode([e])}):function(e){var t,i=[],n=0,a=!1;for(;e.length;)s=e[n],-1!==[32,13,10,9,45].indexOf(s)===a?((t=e.splice(0,n)).length&&i.push(r.ucs2.encode(t)),a=!a,n=0):n++,n>=e.length&&(t=e.splice(0,n)).length&&i.push(r.ucs2.encode(t));var s;return i}(i),a=e.parent.fontWeight(),s=e.parent.css("fontSize"),o=e.parent.css("fontFamily"),l=e.parent.parseTextShadows();this.renderer.font(e.parent.color("color"),e.parent.css("fontStyle"),e.parent.css("fontVariant"),a,s,o),l.length?this.renderer.fontShadow(l[0].color,l[0].offsetX,l[0].offsetY,l[0].blur):this.renderer.clearShadow(),this.renderer.clip(e.parent.clip,function(){n.map(this.parseTextBounds(e),this).forEach(function(t,i){t&&(this.renderer.text(n[i],t.left,t.bottom),this.renderTextDecoration(e.parent,t,this.fontMetrics.getMetrics(o,s)))},this)},this)},g.prototype.renderTextDecoration=function(e,t,i){switch(e.css("textDecoration").split(" ")[0]){case"underline":this.renderer.rectangle(t.left,Math.round(t.top+i.baseline+i.lineWidth),t.width,1,e.color("color"));break;case"overline":this.renderer.rectangle(t.left,Math.round(t.top),t.width,1,e.color("color"));break;case"line-through":this.renderer.rectangle(t.left,Math.ceil(t.top+i.middle+i.lineWidth),t.width,1,e.color("color"))}};var y={inset:[["darken",.6],["darken",.1],["darken",.1],["darken",.6]]};function w(e,t,i,n){return e.map(function(r,a){if(r.width>0){var s=t.left,o=t.top,l=t.width,c=t.height-e[2].width;switch(a){case 0:c=e[0].width,r.args=T({c1:[s,o],c2:[s+l,o],c3:[s+l-e[1].width,o+c],c4:[s+e[3].width,o+c]},n[0],n[1],i.topLeftOuter,i.topLeftInner,i.topRightOuter,i.topRightInner);break;case 1:s=t.left+t.width-e[1].width,l=e[1].width,r.args=T({c1:[s+l,o],c2:[s+l,o+c+e[2].width],c3:[s,o+c],c4:[s,o+e[0].width]},n[1],n[2],i.topRightOuter,i.topRightInner,i.bottomRightOuter,i.bottomRightInner);break;case 2:o=o+t.height-e[2].width,c=e[2].width,r.args=T({c1:[s+l,o+c],c2:[s,o+c],c3:[s+e[3].width,o],c4:[s+l-e[3].width,o]},n[2],n[3],i.bottomRightOuter,i.bottomRightInner,i.bottomLeftOuter,i.bottomLeftInner);break;case 3:l=e[3].width,r.args=T({c1:[s,o+c+e[2].width],c2:[s,o],c3:[s+l,o+e[0].width],c4:[s+l,o+c]},n[3],n[0],i.bottomLeftOuter,i.bottomLeftInner,i.topLeftOuter,i.topLeftInner)}}return r})}function _(e,t,i,n){var r=(Math.sqrt(2)-1)/3*4,a=i*r,s=n*r,o=e+i,l=t+n;return{topLeft:S({x:e,y:l},{x:e,y:l-s},{x:o-a,y:t},{x:o,y:t}),topRight:S({x:e,y:t},{x:e+a,y:t},{x:o,y:l-s},{x:o,y:l}),bottomRight:S({x:o,y:t},{x:o,y:t+s},{x:e+a,y:l},{x:e,y:l}),bottomLeft:S({x:o,y:l},{x:o-a,y:l},{x:e,y:t+s},{x:e,y:t})}}function E(e,t,i){var n=e.left,r=e.top,a=e.width,s=e.height,o=t[0][0]a+i[3].width?0:c-i[3].width,d-i[0].width).topRight.subdivide(.5),bottomRightOuter:_(n+v,r+g,u,p).bottomRight.subdivide(.5),bottomRightInner:_(n+Math.min(v,a-i[3].width),r+Math.min(g,s+i[0].width),Math.max(0,u-i[1].width),p-i[2].width).bottomRight.subdivide(.5),bottomLeftOuter:_(n,r+b,h,f).bottomLeft.subdivide(.5),bottomLeftInner:_(n+i[3].width,r+b,Math.max(0,h-i[3].width),f-i[2].width).bottomLeft.subdivide(.5)}}function S(e,t,i,n){var r=function(e,t,i){return{x:e.x+(t.x-e.x)*i,y:e.y+(t.y-e.y)*i}};return{start:e,startControl:t,endControl:i,end:n,subdivide:function(a){var s=r(e,t,a),o=r(t,i,a),l=r(i,n,a),c=r(s,o,a),d=r(o,l,a),u=r(c,d,a);return[S(e,s,c,u),S(u,d,l,n)]},curveTo:function(e){e.push(["bezierCurve",t.x,t.y,i.x,i.y,n.x,n.y])},curveToReversed:function(n){n.push(["bezierCurve",i.x,i.y,t.x,t.y,e.x,e.y])}}}function T(e,t,i,n,r,a,s){var o=[];return t[0]>0||t[1]>0?(o.push(["line",n[1].start.x,n[1].start.y]),n[1].curveTo(o)):o.push(["line",e.c1[0],e.c1[1]]),i[0]>0||i[1]>0?(o.push(["line",a[0].start.x,a[0].start.y]),a[0].curveTo(o),o.push(["line",s[0].end.x,s[0].end.y]),s[0].curveToReversed(o)):(o.push(["line",e.c2[0],e.c2[1]]),o.push(["line",e.c3[0],e.c3[1]])),t[0]>0||t[1]>0?(o.push(["line",r[1].end.x,r[1].end.y]),r[1].curveToReversed(o)):o.push(["line",e.c4[0],e.c4[1]]),o}function x(e,t,i,n,r,a,s){t[0]>0||t[1]>0?(e.push(["line",n[0].start.x,n[0].start.y]),n[0].curveTo(e),n[1].curveTo(e)):e.push(["line",a,s]),(i[0]>0||i[1]>0)&&e.push(["line",r[0].start.x,r[0].start.y])}function C(e){return e.cssInt("zIndex")<0}function k(e){return e.cssInt("zIndex")>0}function I(e){return 0===e.cssInt("zIndex")}function A(e){return-1!==["inline","inline-block","inline-table"].indexOf(e.css("display"))}function $(e){return e instanceof d}function O(e){return e.node.data.trim().length>0}function N(e){return e.nodeType===Node.TEXT_NODE||e.nodeType===Node.ELEMENT_NODE}function P(e){return"static"!==e.css("position")}function M(e){return"none"!==e.css("float")}function D(e){var t=this;return function(){return!e.apply(t,arguments)}}function L(e){return e.node.nodeType===Node.ELEMENT_NODE}function R(e){return!0===e.isPseudoElement}function B(e){return e.node.nodeType===Node.TEXT_NODE}function H(e){return parseInt(e,10)}function F(e){return e.width}function z(e){return e.node.nodeType!==Node.ELEMENT_NODE||-1===["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"].indexOf(e.node.nodeName)}function U(e){return[].concat.apply([],e)}g.prototype.parseBorders=function(e){var t=e.parseBounds(),i=function(e){return["TopLeft","TopRight","BottomRight","BottomLeft"].map(function(t){var i=e.css("border"+t+"Radius"),n=i.split(" ");return n.length<=1&&(n[1]=n[0]),n.map(H)})}(e),n=["Top","Right","Bottom","Left"].map(function(t,i){var n=e.css("border"+t+"Style"),r=e.color("border"+t+"Color");"inset"===n&&r.isBlack()&&(r=new c([255,255,255,r.a]));var a=y[n]?y[n][i]:null;return{width:e.cssInt("border"+t+"Width"),color:a?r[a[0]](a[1]):r,args:null}}),r=E(t,i,n);return{clip:this.parseBackgroundClip(e,r,n,i,t),borders:w(n,t,r,i)}},g.prototype.parseBackgroundClip=function(e,t,i,n,r){var a=[];switch(e.css("backgroundClip")){case"content-box":case"padding-box":x(a,n[0],n[1],t.topLeftInner,t.topRightInner,r.left+i[3].width,r.top+i[0].width),x(a,n[1],n[2],t.topRightInner,t.bottomRightInner,r.left+r.width-i[1].width,r.top+i[0].width),x(a,n[2],n[3],t.bottomRightInner,t.bottomLeftInner,r.left+r.width-i[1].width,r.top+r.height-i[2].width),x(a,n[3],n[0],t.bottomLeftInner,t.topLeftInner,r.left+i[3].width,r.top+r.height-i[2].width);break;default:x(a,n[0],n[1],t.topLeftOuter,t.topRightOuter,r.left,r.top),x(a,n[1],n[2],t.topRightOuter,t.bottomRightOuter,r.left+r.width,r.top),x(a,n[2],n[3],t.bottomRightOuter,t.bottomLeftOuter,r.left+r.width,r.top+r.height),x(a,n[3],n[0],t.bottomLeftOuter,t.topLeftOuter,r.left,r.top+r.height)}return a},t.exports=g},{"./color":3,"./fontmetrics":7,"./log":13,"./nodecontainer":14,"./pseudoelementcontainer":18,"./stackingcontext":21,"./textcontainer":25,"./utils":26,punycode:1}],16:[function(e,t,i){var n=e("./xhr"),r=e("./utils"),a=e("./log"),s=e("./clone"),o=r.decode64;function l(e,t,i){var r="withCredentials"in new XMLHttpRequest;if(!t)return Promise.reject("No proxy configured");var a=u(r),s=p(t,e,a);return r?n(s):d(i,s,a).then(function(e){return o(e.content)})}var c=0;function d(e,t,i){return new Promise(function(n,r){var a=e.createElement("script"),s=function(){delete window.html2canvas.proxy[i],e.body.removeChild(a)};window.html2canvas.proxy[i]=function(e){s(),n(e)},a.src=t,a.onerror=function(e){s(),r(e)},e.body.appendChild(a)})}function u(e){return e?"":"html2canvas_"+Date.now()+"_"+ ++c+"_"+Math.round(1e5*Math.random())}function p(e,t,i){return e+"?url="+encodeURIComponent(t)+(i.length?"&callback=html2canvas.proxy."+i:"")}function h(e){return function(t){var i,n=new DOMParser;try{i=n.parseFromString(t,"text/html")}catch(e){a("DOMParser not supported, falling back to createHTMLDocument"),i=document.implementation.createHTMLDocument("");try{i.open(),i.write(t),i.close()}catch(e){a("createHTMLDocument write not supported, falling back to document.body.innerHTML"),i.body.innerHTML=t}}var r=i.querySelector("base");if(!r||!r.href.host){var s=i.createElement("base");s.href=e,i.head.insertBefore(s,i.head.firstChild)}return i}}i.Proxy=l,i.ProxyURL=function(e,t,i){var n="crossOrigin"in new Image,r=u(n),a=p(t,e,r);return n?Promise.resolve(a):d(i,a,r).then(function(e){return"data:"+e.type+";base64,"+e.content})},i.loadUrlDocument=function(e,t,i,n,r,a){return new l(e,t,window.document).then(h(e)).then(function(e){return s(e,i,n,r,a,0,0)})}},{"./clone":2,"./log":13,"./utils":26,"./xhr":28}],17:[function(e,t,i){var n=e("./proxy").ProxyURL;t.exports=function(e,t){var i=document.createElement("a");i.href=e,e=i.href,this.src=e,this.image=new Image;var r=this;this.promise=new Promise(function(i,a){r.image.crossOrigin="Anonymous",r.image.onload=i,r.image.onerror=a,new n(e,t,document).then(function(e){r.image.src=e}).catch(a)})}},{"./proxy":16}],18:[function(e,t,i){var n=e("./nodecontainer");function r(e,t,i){n.call(this,e,t),this.isPseudoElement=!0,this.before=":before"===i}r.prototype.cloneTo=function(e){r.prototype.cloneTo.call(this,e),e.isPseudoElement=!0,e.before=this.before},r.prototype=Object.create(n.prototype),r.prototype.appendToDOM=function(){this.before?this.parent.node.insertBefore(this.node,this.parent.node.firstChild):this.parent.node.appendChild(this.node),this.parent.node.className+=" "+this.getHideClass()},r.prototype.cleanDOM=function(){this.node.parentNode.removeChild(this.node),this.parent.node.className=this.parent.node.className.replace(this.getHideClass(),"")},r.prototype.getHideClass=function(){return this["PSEUDO_HIDE_ELEMENT_CLASS_"+(this.before?"BEFORE":"AFTER")]},r.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before",r.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after",t.exports=r},{"./nodecontainer":14}],19:[function(e,t,i){var n=e("./log");function r(e,t,i,n,r){this.width=e,this.height=t,this.images=i,this.options=n,this.document=r}r.prototype.renderImage=function(e,t,i,n){var r=e.cssInt("paddingLeft"),a=e.cssInt("paddingTop"),s=e.cssInt("paddingRight"),o=e.cssInt("paddingBottom"),l=i.borders,c=t.width-(l[1].width+l[3].width+r+s),d=t.height-(l[0].width+l[2].width+a+o);this.drawImage(n,0,0,n.image.width||c,n.image.height||d,t.left+r+l[3].width,t.top+a+l[0].width,c,d)},r.prototype.renderBackground=function(e,t,i){t.height>0&&t.width>0&&(this.renderBackgroundColor(e,t),this.renderBackgroundImage(e,t,i))},r.prototype.renderBackgroundColor=function(e,t){var i=e.color("backgroundColor");i.isTransparent()||this.rectangle(t.left,t.top,t.width,t.height,i)},r.prototype.renderBorders=function(e){e.forEach(this.renderBorder,this)},r.prototype.renderBorder=function(e){e.color.isTransparent()||null===e.args||this.drawShape(e.args,e.color)},r.prototype.renderBackgroundImage=function(e,t,i){e.parseBackgroundImages().reverse().forEach(function(r,a,s){switch(r.method){case"url":var o=this.images.get(r.args[0]);o?this.renderBackgroundRepeating(e,t,o,s.length-(a+1),i):n("Error loading background-image",r.args[0]);break;case"linear-gradient":case"gradient":var l=this.images.get(r.value);l?this.renderBackgroundGradient(l,t,i):n("Error loading background-image",r.args[0]);break;case"none":break;default:n("Unknown background-image type",r.args[0])}},this)},r.prototype.renderBackgroundRepeating=function(e,t,i,n,r){var a=e.parseBackgroundSize(t,i.image,n),s=e.parseBackgroundPosition(t,i.image,n,a);switch(e.parseBackgroundRepeat(n)){case"repeat-x":case"repeat no-repeat":this.backgroundRepeatShape(i,s,a,t,t.left+r[3],t.top+s.top+r[0],99999,a.height,r);break;case"repeat-y":case"no-repeat repeat":this.backgroundRepeatShape(i,s,a,t,t.left+s.left+r[3],t.top+r[0],a.width,99999,r);break;case"no-repeat":this.backgroundRepeatShape(i,s,a,t,t.left+s.left+r[3],t.top+s.top+r[0],a.width,a.height,r);break;default:this.renderBackgroundRepeat(i,s,a,{top:t.top,left:t.left},r[3],r[0])}},t.exports=r},{"./log":13}],20:[function(e,t,i){var n=e("../renderer"),r=e("../lineargradientcontainer"),a=e("../log");function s(e,t){n.apply(this,arguments),this.canvas=this.options.canvas||this.document.createElement("canvas"),this.options.canvas||(this.canvas.width=e,this.canvas.height=t),this.ctx=this.canvas.getContext("2d"),this.taintCtx=this.document.createElement("canvas").getContext("2d"),this.ctx.textBaseline="bottom",this.variables={},a("Initialized CanvasRenderer with size",e,"x",t)}function o(e){return e.length>0}s.prototype=Object.create(n.prototype),s.prototype.setFillStyle=function(e){return this.ctx.fillStyle="object"==typeof e&&e.isColor?e.toString():e,this.ctx},s.prototype.rectangle=function(e,t,i,n,r){this.setFillStyle(r).fillRect(e,t,i,n)},s.prototype.circle=function(e,t,i,n){this.setFillStyle(n),this.ctx.beginPath(),this.ctx.arc(e+i/2,t+i/2,i/2,0,2*Math.PI,!0),this.ctx.closePath(),this.ctx.fill()},s.prototype.circleStroke=function(e,t,i,n,r,a){this.circle(e,t,i,n),this.ctx.strokeStyle=a.toString(),this.ctx.stroke()},s.prototype.drawShape=function(e,t){this.shape(e),this.setFillStyle(t).fill()},s.prototype.taints=function(e){if(null===e.tainted){this.taintCtx.drawImage(e.image,0,0);try{this.taintCtx.getImageData(0,0,1,1),e.tainted=!1}catch(t){this.taintCtx=document.createElement("canvas").getContext("2d"),e.tainted=!0}}return e.tainted},s.prototype.drawImage=function(e,t,i,n,r,a,s,o,l){this.taints(e)&&!this.options.allowTaint||this.ctx.drawImage(e.image,t,i,n,r,a,s,o,l)},s.prototype.clip=function(e,t,i){this.ctx.save(),e.filter(o).forEach(function(e){this.shape(e).clip()},this),t.call(i),this.ctx.restore()},s.prototype.shape=function(e){return this.ctx.beginPath(),e.forEach(function(e,t){"rect"===e[0]?this.ctx.rect.apply(this.ctx,e.slice(1)):this.ctx[0===t?"moveTo":e[0]+"To"].apply(this.ctx,e.slice(1))},this),this.ctx.closePath(),this.ctx},s.prototype.font=function(e,t,i,n,r,a){this.setFillStyle(e).font=[t,i,n,r,a].join(" ").split(",")[0]},s.prototype.fontShadow=function(e,t,i,n){this.setVariable("shadowColor",e.toString()).setVariable("shadowOffsetY",t).setVariable("shadowOffsetX",i).setVariable("shadowBlur",n)},s.prototype.clearShadow=function(){this.setVariable("shadowColor","rgba(0,0,0,0)")},s.prototype.setOpacity=function(e){this.ctx.globalAlpha=e},s.prototype.setTransform=function(e){this.ctx.translate(e.origin[0],e.origin[1]),this.ctx.transform.apply(this.ctx,e.matrix),this.ctx.translate(-e.origin[0],-e.origin[1])},s.prototype.setVariable=function(e,t){return this.variables[e]!==t&&(this.variables[e]=this.ctx[e]=t),this},s.prototype.text=function(e,t,i){this.ctx.fillText(e,t,i)},s.prototype.backgroundRepeatShape=function(e,t,i,n,r,a,s,o,l){var c=[["line",Math.round(r),Math.round(a)],["line",Math.round(r+s),Math.round(a)],["line",Math.round(r+s),Math.round(o+a)],["line",Math.round(r),Math.round(o+a)]];this.clip([c],function(){this.renderBackgroundRepeat(e,t,i,n,l[3],l[0])},this)},s.prototype.renderBackgroundRepeat=function(e,t,i,n,r,a){var s=Math.round(n.left+t.left+r),o=Math.round(n.top+t.top+a);this.setFillStyle(this.ctx.createPattern(this.resizeImage(e,i),"repeat")),this.ctx.translate(s,o),this.ctx.fill(),this.ctx.translate(-s,-o)},s.prototype.renderBackgroundGradient=function(e,t){if(e instanceof r){var i=this.ctx.createLinearGradient(t.left+t.width*e.x0,t.top+t.height*e.y0,t.left+t.width*e.x1,t.top+t.height*e.y1);e.colorStops.forEach(function(e){i.addColorStop(e.stop,e.color.toString())}),this.rectangle(t.left,t.top,t.width,t.height,i)}},s.prototype.resizeImage=function(e,t){var i=e.image;if(i.width===t.width&&i.height===t.height)return i;var n=document.createElement("canvas");return n.width=t.width,n.height=t.height,n.getContext("2d").drawImage(i,0,0,i.width,i.height,0,0,t.width,t.height),n},t.exports=s},{"../lineargradientcontainer":12,"../log":13,"../renderer":19}],21:[function(e,t,i){var n=e("./nodecontainer");function r(e,t,i,r){n.call(this,i,r),this.ownStacking=e,this.contexts=[],this.children=[],this.opacity=(this.parent?this.parent.stack.opacity:1)*t}r.prototype=Object.create(n.prototype),r.prototype.getParentStack=function(e){var t=this.parent?this.parent.stack:null;return t?t.ownStacking?t:t.getParentStack(e):e.stack},t.exports=r},{"./nodecontainer":14}],22:[function(e,t,i){function n(e){this.rangeBounds=this.testRangeBounds(e),this.cors=this.testCORS(),this.svg=this.testSVG()}n.prototype.testRangeBounds=function(e){var t,i,n=!1;return e.createRange&&(t=e.createRange()).getBoundingClientRect&&((i=e.createElement("boundtest")).style.height="123px",i.style.display="block",e.body.appendChild(i),t.selectNode(i),123===t.getBoundingClientRect().height&&(n=!0),e.body.removeChild(i)),n},n.prototype.testCORS=function(){return void 0!==(new Image).crossOrigin},n.prototype.testSVG=function(){var e=new Image,t=document.createElement("canvas"),i=t.getContext("2d");e.src="data:image/svg+xml,";try{i.drawImage(e,0,0),t.toDataURL()}catch(e){return!1}return!0},t.exports=n},{}],23:[function(e,t,i){var n=e("./xhr"),r=e("./utils").decode64;function a(e){this.src=e,this.image=null;var t=this;this.promise=this.hasFabric().then(function(){return t.isInline(e)?Promise.resolve(t.inlineFormatting(e)):n(e)}).then(function(e){return new Promise(function(i){window.html2canvas.svg.fabric.loadSVGFromString(e,t.createCanvas.call(t,i))})})}a.prototype.hasFabric=function(){return window.html2canvas.svg&&window.html2canvas.svg.fabric?Promise.resolve():Promise.reject(new Error("html2canvas.svg.js is not loaded, cannot render svg"))},a.prototype.inlineFormatting=function(e){return/^data:image\/svg\+xml;base64,/.test(e)?this.decode64(this.removeContentType(e)):this.removeContentType(e)},a.prototype.removeContentType=function(e){return e.replace(/^data:image\/svg\+xml(;base64)?,/,"")},a.prototype.isInline=function(e){return/^data:image\/svg\+xml/i.test(e)},a.prototype.createCanvas=function(e){var t=this;return function(i,n){var r=new window.html2canvas.svg.fabric.StaticCanvas("c");t.image=r.lowerCanvasEl,r.setWidth(n.width).setHeight(n.height).add(window.html2canvas.svg.fabric.util.groupSVGElements(i,n)).renderAll(),e(r.lowerCanvasEl)}},a.prototype.decode64=function(e){return"function"==typeof window.atob?window.atob(e):r(e)},t.exports=a},{"./utils":26,"./xhr":28}],24:[function(e,t,i){var n=e("./svgcontainer");function r(e,t){this.src=e,this.image=null;var i=this;this.promise=t?new Promise(function(t,n){i.image=new Image,i.image.onload=t,i.image.onerror=n,i.image.src="data:image/svg+xml,"+(new XMLSerializer).serializeToString(e),!0===i.image.complete&&t(i.image)}):this.hasFabric().then(function(){return new Promise(function(t){window.html2canvas.svg.fabric.parseSVGDocument(e,i.createCanvas.call(i,t))})})}r.prototype=Object.create(n.prototype),t.exports=r},{"./svgcontainer":23}],25:[function(e,t,i){var n=e("./nodecontainer");function r(e,t){n.call(this,e,t)}function a(e,t,i){if(e.length>0)return t+i.toUpperCase()}r.prototype=Object.create(n.prototype),r.prototype.applyTextTransform=function(){this.node.data=this.transform(this.parent.css("textTransform"))},r.prototype.transform=function(e){var t=this.node.data;switch(e){case"lowercase":return t.toLowerCase();case"capitalize":return t.replace(/(^|\s|:|-|\(|\))([a-z])/g,a);case"uppercase":return t.toUpperCase();default:return t}},t.exports=r},{"./nodecontainer":14}],26:[function(e,t,i){i.smallImage=function(){return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},i.bind=function(e,t){return function(){return e.apply(t,arguments)}},i.decode64=function(e){var t,i,n,r,a,s,o,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=e.length,d="";for(t=0;t>4,s=(15&i)<<4|(n=l.indexOf(e[t+2]))>>2,o=(3&n)<<6|(r=l.indexOf(e[t+3])),d+=64===n?String.fromCharCode(a):64===r||-1===r?String.fromCharCode(a,s):String.fromCharCode(a,s,o);return d},i.getBounds=function(e){if(e.getBoundingClientRect){var t=e.getBoundingClientRect(),i=null==e.offsetWidth?t.width:e.offsetWidth;return{top:t.top,bottom:t.bottom||t.top+t.height,right:t.left+i,left:t.left,width:i,height:null==e.offsetHeight?t.height:e.offsetHeight}}return{}},i.offsetBounds=function(e){var t=e.offsetParent?i.offsetBounds(e.offsetParent):{top:0,left:0};return{top:e.offsetTop+t.top,bottom:e.offsetTop+e.offsetHeight+t.top,right:e.offsetLeft+t.left+e.offsetWidth,left:e.offsetLeft+t.left,width:e.offsetWidth,height:e.offsetHeight}},i.parseBackgrounds=function(e){var t,i,n,r,a,s,o,l=[],c=0,d=0,u=function(){t&&('"'===i.substr(0,1)&&(i=i.substr(1,i.length-2)),i&&o.push(i),"-"===t.substr(0,1)&&(r=t.indexOf("-",1)+1)>0&&(n=t.substr(0,r),t=t.substr(r)),l.push({prefix:n,method:t.toLowerCase(),value:a,args:o,image:null})),o=[],t=n=i=a=""};return o=[],t=n=i=a="",e.split("").forEach(function(e){if(!(0===c&&" \r\n\t".indexOf(e)>-1)){switch(e){case'"':s?s===e&&(s=null):s=e;break;case"(":if(s)break;if(0===c)return c=1,void(a+=e);d++;break;case")":if(s)break;if(1===c){if(0===d)return c=0,a+=e,void u();d--}break;case",":if(s)break;if(0===c)return void u();if(1===c&&0===d&&!t.match(/^url$/i))return o.push(i),i="",void(a+=e)}a+=e,0===c?t+=e:i+=e}}),u(),l}},{}],27:[function(e,t,i){var n=e("./gradientcontainer");function r(e){n.apply(this,arguments),this.type="linear"===e.args[0]?n.TYPES.LINEAR:n.TYPES.RADIAL}r.prototype=Object.create(n.prototype),t.exports=r},{"./gradientcontainer":9}],28:[function(e,t,i){t.exports=function(e){return new Promise(function(t,i){var n=new XMLHttpRequest;n.open("GET",e),n.onload=function(){200===n.status?t(n.responseText):i(new Error(n.statusText))},n.onerror=function(){i(new Error("Network Error"))},n.send()})}},{}]},{},[4])(4)}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(window.jQuery)}(function(e){"use strict";var t,i,n,r,a,s,o,l,c,d,u,p,h,f,m,g,v,b,y,w,_,E,S,T,x,C,k,I,A,$,O,N,P,M,D,L,R,B;e.fn.fileinputLocales={},e.fn.fileinputThemes={},t="kvFileinputModal",i='style="width:{width};height:{height};"',n='\n\n\n\n\n\n',r='
\n{previewFileIcon}\n
',a=window.URL||window.webkitURL,s=function(e,t,i){return void 0!==e&&(i?e===t:e.match(t))},o=function(e){if("Microsoft Internet Explorer"!==navigator.appName)return!1;if(10===e)return new RegExp("msie\\s"+e,"i").test(navigator.userAgent);var t,i=document.createElement("div");return i.innerHTML="\x3c!--[if IE "+e+"]> 0&&!I(t)&&(t=t.split(e.initialPreviewDelimiter)),c.data[i]={content:t,config:e.initialPreviewConfig,tags:e.initialPreviewThumbTags,delimiter:e.initialPreviewDelimiter,previewFileType:e.initialPreviewFileType,previewAsData:e.initialPreviewAsData,template:e.previewGenericTemplate,showZoom:e.fileActionSettings.showZoom,showDrag:e.fileActionSettings.showDrag,getSize:function(t){return e._getSize(t)},parseTemplate:function(t,i,n,r,a,s,o){return e._generatePreviewTemplate(t,i,n,r,a,!1,null," file-preview-initial",s,o)},msg:function(t){return e._getMsgSelected(t)},initId:e.previewInitId,footer:e._getLayoutTemplate("footer").replace(/\{progress}/g,e._renderThumbProgress()),isDelete:e.initialPreviewShowDelete,caption:e.initialCaption,actions:function(t,i,n,r,a,s,o){return e._renderFileActions(t,i,n,r,a,s,o,!0)}}},fetch:function(e){return c.data[e].content.filter(function(e){return null!==e})},count:function(e,t){return c.data[e]&&c.data[e].content?t?c.data[e].content.length:c.fetch(e).length:0},get:function(t,i,n){var r,a,s,o,l,d,u="init_"+i,p=c.data[t],h=p.config[i],f=p.content[i],m=p.initId+"-"+u,g=" file-preview-initial",v=A("previewAsData",h,p.previewAsData);return n=void 0===n||n,f?(h&&h.frameClass&&(g+=" "+h.frameClass),v?(s=p.previewAsData?A("type",h,p.previewFileType||"generic"):"generic",o=A("caption",h),l=c.footer(t,i,n,h&&h.size||null),d=A("filetype",h,s),r=p.parseTemplate(s,f,o,d,m,l,u,null)):r=p.template.replace(/\{previewId}/g,m).replace(/\{frameClass}/g,g).replace(/\{fileindex}/g,u).replace(/\{content}/g,p.content[i]).replace(/\{template}/g,A("type",h,p.previewFileType)).replace(/\{footer}/g,c.footer(t,i,n,h&&h.size||null)),p.tags.length&&p.tags[i]&&(r=N(r,p.tags[i])),k(h)||k(h.frameAttr)||((a=e(document.createElement("div")).html(r)).find(".file-preview-initial").attr(h.frameAttr),r=a.html(),a.remove()),r):""},add:function(t,i,n,r,a){var s,o=e.extend(!0,{},c.data[t]);return I(i)||(i=i.split(o.delimiter)),a?(s=o.content.push(i)-1,o.config[s]=n,o.tags[s]=r):(s=i.length-1,o.content=i,o.config=n,o.tags=r),c.data[t]=o,s},set:function(t,i,n,r,a){var s,o=e.extend(!0,{},c.data[t]);if(i&&i.length&&(I(i)||(i=i.split(o.delimiter)),i.filter(function(e){return null!==e}).length)){if(void 0===o.content&&(o.content=[]),void 0===o.config&&(o.config=[]),void 0===o.tags&&(o.tags=[]),a){for(s=0;s'+t+"
",caption:i.msg(c.count(e))}},footer:function(e,t,i,n){var r=c.data[e];if(i=void 0===i||i,0===r.config.length||k(r.config[t]))return"";var a=r.config[t],s=A("caption",a),o=A("width",a,"auto"),l=A("url",a,!1),d=A("key",a,null),u=A("showDelete",a,!0),p=A("showZoom",a,r.showZoom),h=A("showDrag",a,r.showDrag),f=!1===l&&i,m=r.isDelete?r.actions(!1,u,p,h,f,l,d):"";return r.footer.replace(/\{actions}/g,m).replace(/\{caption}/g,s).replace(/\{size}/g,r.getSize(n)).replace(/\{width}/g,o).replace(/\{indicator}/g,"").replace(/\{indicatorTitle}/g,"")}},d=function(e,t){return t=t||0,"number"==typeof e?e:("string"==typeof e&&(e=parseFloat(e)),isNaN(e)?t:e)},u=function(){return!(!window.File||!window.FileReader)},p=function(){var e=document.createElement("div");return!o(9)&&(void 0!==e.draggable||void 0!==e.ondragstart&&void 0!==e.ondrop)},h=function(){return u()&&window.FormData},f=function(e,t){e.removeClass(t).addClass(t)},y={showRemove:!0,showUpload:!0,showZoom:!0,showDrag:!0,removeIcon:'',removeClass:"btn btn-xs btn-secondary",removeTitle:"Eliminar archivo",uploadIcon:'',uploadClass:"btn btn-xs btn-secondary",uploadTitle:"Subir archivo",zoomIcon:'',zoomClass:"btn btn-xs btn-secondary",zoomTitle:"Ver detalles",dragIcon:'',dragClass:"text-info",dragTitle:"Move / Rearrange",dragSettings:{},indicatorNew:'',indicatorSuccess:'',indicatorError:'',indicatorLoading:'',indicatorNewTitle:"No ha sido cargado todavía",indicatorSuccessTitle:"Cargado",indicatorErrorTitle:"Error al cargar",indicatorLoadingTitle:"Cargando ..."},w={main1:'{preview}\n
\n
\n {caption}\n
\n {remove}\n {cancel}\n {upload}\n {browse}\n
\n
',main2:'{preview}\n
\n{remove}\n{cancel}\n{upload}\n{browse}\n',preview:'
\n {close}
\n
\n
\n
\n
\n
\n
',close:'
×
\n',fileIcon:'',caption:'
\n
\n
\n',modalMain:'',modal:'\n',progress:'
\n
\n {percent}%\n
\n
',size:"
({sizeText})",footer:'',actions:'
\n \n {drag}\n
{indicator}
\n
\n
',actionDelete:'\n',actionUpload:'',actionZoom:'',actionDrag:'{dragIcon}',btnDefault:'',btnLink:'
{icon} {label}',btnBrowse:'
{icon} {label}
'},_={generic:(g=(m='
\n')+"{content}\n"+(b="
{footer}\n
\n"),html:g+('
{data}
\n")+b,image:g+('{caption}\n")+b,text:g+('\n")+b,video:(v=m+' title="{caption}" '+i+'>
\n')+('\n")+b,audio:v+('\n")+b,flash:v+('\n'+n+" "+r+"\n\n")+b,object:v+('\n\n'+n+" "+r+"\n\n")+b,pdf:v+'\n'+b,other:v+('
\n'+r+"\n
\n")+b},S=["image","html","text","video","audio","flash","pdf","object"],x={image:{width:"auto",height:"160px"},html:{width:"213px",height:"160px"},text:{width:"213px",height:"160px"},video:{width:"213px",height:"160px"},audio:{width:"213px",height:"80px"},flash:{width:"213px",height:"160px"},object:{width:"160px",height:"160px"},pdf:{width:"160px",height:"160px"},other:{width:"160px",height:"160px"}},E={image:{width:"100%",height:"100%"},html:{width:"100%",height:"100%","min-height":"480px"},text:{width:"100%",height:"100%","min-height":"480px"},video:{width:"auto",height:"100%","max-width":"100%"},audio:{width:"100%",height:"30px"},flash:{width:"auto",height:"480px"},object:{width:"auto",height:"100%","min-height":"480px"},pdf:{width:"100%",height:"100%","min-height":"480px"},other:{width:"auto",height:"100%","min-height":"480px"}},C={image:function(e,t){return s(e,"image.*")||s(t,/\.(gif|png|jpe?g)$/i)},html:function(e,t){return s(e,"text/html")||s(t,/\.(htm|html)$/i)},text:function(e,t){return s(e,"text.*")||s(t,/\.(xml|javascript)$/i)||s(t,/\.(txt|md|csv|nfo|ini|json|php|js|css)$/i)},video:function(e,t){return s(e,"video.*")&&(s(e,/(ogg|mp4|mp?g|webm|3gp)$/i)||s(t,/\.(og?|mp4|webm|mp?g|3gp)$/i))},audio:function(e,t){return s(e,"audio.*")&&(s(t,/(ogg|mp3|mp?g|wav)$/i)||s(t,/\.(og?|mp3|mp?g|wav)$/i))},flash:function(e,t){return s(e,"application/x-shockwave-flash",!0)||s(t,/\.(swf)$/i)},pdf:function(e,t){return s(e,"application/pdf",!0)||s(t,/\.(pdf)$/i)},object:function(){return!0},other:function(){return!0}},k=function(t,i){return void 0===t||null===t||0===t.length||i&&""===e.trim(t)},I=function(e){return Array.isArray(e)||"[object Array]"===Object.prototype.toString.call(e)},A=function(e,t,i){return i=i||"",t&&"object"==typeof t&&e in t?t[e]:i},T=function(t,i,n){return k(t)||k(t[i])?n:e(t[i])},$=function(){return Math.round((new Date).getTime()+100*Math.random())},O=function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},N=function(t,i){var n=t;return i?(e.each(i,function(e,t){"function"==typeof t&&(t=t()),n=n.split(e).join(t)}),n):n},P=function(e){var t=e.is("img")?e.attr("src"):e.find("source").attr("src");a.revokeObjectURL(t)},M=function(e){var t=e.lastIndexOf("/");return-1===t&&(t=e.lastIndexOf("\\")),e.split(e.substring(t,t+1)).pop()},D=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},L=function(e){e&&!D()?document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.msRequestFullscreen?document.documentElement.msRequestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},R=function(e,t,i){if(i>=e.length)for(var n=i-e.length;1+n--;)e.push(void 0);return e.splice(i,0,e.splice(t,1)[0]),e},(B=function(t,i){this.$element=e(t),this._validate()&&(this.isPreviewable=u(),this.isIE9=o(9),this.isIE10=o(10),this.isPreviewable||this.isIE9?(this._init(i),this._listen()):this.$element.removeClass("file-loading"))}).prototype={constructor:B,_init:function(t){var i,n=this,r=n.$element;e.each(t,function(e,t){switch(e){case"minFileCount":case"maxFileCount":case"maxFileSize":n[e]=d(t);break;default:n[e]=t}}),n.fileInputCleared=!1,n.fileBatchCompleted=!0,n.isPreviewable||(n.showPreview=!1),n.uploadFileAttr=k(r.attr("name"))?"file_data":r.attr("name"),n.reader=null,n.formdata={},n.clearStack(),n.uploadCount=0,n.uploadStatus={},n.uploadLog=[],n.uploadAsyncCount=0,n.loadedImages=[],n.totalImagesCount=0,n.ajaxRequests=[],n.isError=!1,n.ajaxAborted=!1,n.cancelling=!1,i=n._getLayoutTemplate("progress"),n.progressTemplate=i.replace("{class}",n.progressClass),n.progressCompleteTemplate=i.replace("{class}",n.progressCompleteClass),n.progressErrorTemplate=i.replace("{class}",n.progressErrorClass),n.dropZoneEnabled=p()&&n.dropZoneEnabled,n.isDisabled=n.$element.attr("disabled")||n.$element.attr("readonly"),n.isUploadable=h()&&!k(n.uploadUrl),n.isClickable=n.browseOnZoneClick&&n.showPreview&&(n.isUploadable&&n.dropZoneEnabled||!k(n.defaultPreviewContent)),n.slug="function"==typeof t.slugCallback?t.slugCallback:n._slugDefault,n.mainTemplate=n.showCaption?n._getLayoutTemplate("main1"):n._getLayoutTemplate("main2"),n.captionTemplate=n._getLayoutTemplate("caption"),n.previewGenericTemplate=n._getPreviewTemplate("generic"),n.resizeImage&&(n.maxImageWidth||n.maxImageHeight)&&(n.imageCanvas=document.createElement("canvas"),n.imageCanvasContext=n.imageCanvas.getContext("2d")),k(n.$element.attr("id"))&&n.$element.attr("id",$()),void 0===n.$container?n.$container=n._createContainer():n._refreshContainer(),n.$dropZone=n.$container.find(".file-drop-zone"),n.$progress=n.$container.find(".kv-upload-progress"),n.$btnUpload=n.$container.find(".fileinput-upload"),n.$captionContainer=T(t,"elCaptionContainer",n.$container.find(".file-caption")),n.$caption=T(t,"elCaptionText",n.$container.find(".file-caption-name")),n.$previewContainer=T(t,"elPreviewContainer",n.$container.find(".file-preview")),n.$preview=T(t,"elPreviewImage",n.$container.find(".file-preview-thumbnails")),n.$previewStatus=T(t,"elPreviewStatus",n.$container.find(".file-preview-status")),n.$errorContainer=T(t,"elErrorContainer",n.$previewContainer.find(".kv-fileinput-error")),k(n.msgErrorClass)||f(n.$errorContainer,n.msgErrorClass),n.$errorContainer.hide(),n.fileActionSettings=e.extend(!0,y,t.fileActionSettings),n.previewInitId="preview-"+$(),n.id=n.$element.attr("id"),c.init(n),n._initPreview(!0),n._initPreviewActions(),n.options=t,n._setFileDropZoneTitle(),n.$element.removeClass("file-loading"),n.$element.attr("disabled")&&n.disable(),n._initZoom()},_validate:function(){var e;return"file"===this.$element.attr("type")||(e='

Invalid Input Type

You must set an input type = file for bootstrap-fileinput plugin to initialize.
',this.$element.after(e),!1)},_errorsExist:function(){var t;return!!this.$errorContainer.find("li").length||((t=e(document.createElement("div")).html(this.$errorContainer.html())).find("span.kv-error-close").remove(),t.find("ul").remove(),!!e.trim(t.text()).length)},_errorHandler:function(e,t){var i=e.target.error;i.code===i.NOT_FOUND_ERR?this._showError(this.msgFileNotFound.replace("{name}",t)):i.code===i.SECURITY_ERR?this._showError(this.msgFileSecured.replace("{name}",t)):i.code===i.NOT_READABLE_ERR?this._showError(this.msgFileNotReadable.replace("{name}",t)):i.code===i.ABORT_ERR?this._showError(this.msgFilePreviewAborted.replace("{name}",t)):this._showError(this.msgFilePreviewError.replace("{name}",t))},_addError:function(e){var t=this.$errorContainer;e&&t.length&&(t.html(this.errorCloseButton+e),l(t.find(".kv-error-close"),"click",function(){t.fadeOut("slow")}))},_resetErrors:function(e){var t=this.$errorContainer;this.isError=!1,this.$container.removeClass("valid"),t.html(""),e?t.fadeOut("slow"):t.hide()},_showFolderError:function(e){var t,i=this.$errorContainer;e&&(t=this.msgFoldersNotAllowed.replace(/\{n}/g,e),this._addError(t),f(this.$container,"invalid"),i.fadeIn(800),this._raise("filefoldererror",[e,t]))},_showUploadError:function(e,t,i){var n=this.$errorContainer,r=i||"fileuploaderror",a=t&&t.id?'
  • '+e+"
  • ":"
  • "+e+"
  • ";return 0===n.find("ul").length?this._addError("
      "+a+"
    "):n.find("ul").append(a),n.fadeIn(800),this._raise(r,[t,e]),this.$container.removeClass("file-input-new"),f(this.$container,"invalid"),!0},_showError:function(e,t,i){var n=this.$errorContainer,r=i||"fileerror";return(t=t||{}).reader=this.reader,this._addError(e),n.fadeIn(800),this._raise(r,[t,e]),this.isUploadable||this._clearFileInput(),this.$container.removeClass("file-input-new"),f(this.$container,"invalid"),this.$btnUpload.attr("disabled",!0),!0},_noFilesError:function(e){var t=this.minFileCount>1?this.filePlural:this.fileSingle,i=this.msgFilesTooLess.replace("{n}",this.minFileCount).replace("{files}",t),n=this.$errorContainer;this._addError(i),this.isError=!0,this._updateFileDetails(0),n.fadeIn(800),this._raise("fileerror",[e,i]),this._clearFileInput(),f(this.$container,"invalid")},_parseError:function(t,i,n){var r=e.trim(i+""),a="."===r.slice(-1)?"":".",s=void 0!==t.responseJSON&&void 0!==t.responseJSON.error?t.responseJSON.error:t.responseText;return this.cancelling&&this.msgUploadAborted&&(r=this.msgUploadAborted),this.showAjaxErrorDetails&&s?r+=a+(s=(s=e.trim(s.replace(/\n\s*\n/g,"\n"))).length>0?"
    "+s+"
    ":""):r+=a,this.cancelling=!1,n?""+n+": "+r:r},_parseFileType:function(e){var t,i,n;for(n=0;n-1&&(n=i.split(".").pop(),r.previewFileIconSettings&&r.previewFileIconSettings[n]&&(a=r.previewFileIconSettings[n]),r.previewFileExtSettings&&e.each(r.previewFileExtSettings,function(e,t){r.previewFileIconSettings[e]&&t(n)?a=r.previewFileIconSettings[e]:!0})),t.indexOf("{previewFileIcon}")>-1?t.replace(/\{previewFileIconClass}/g,r.previewFileIconClass).replace(/\{previewFileIcon}/g,a):t},_raise:function(t,i){var n=e.Event(t);if(void 0!==i?this.$element.trigger(n,i):this.$element.trigger(n),n.isDefaultPrevented())return!1;if(!n.result)return n.result;switch(t){case"filebatchuploadcomplete":case"filebatchuploadsuccess":case"fileuploaded":case"fileclear":case"filecleared":case"filereset":case"fileerror":case"filefoldererror":case"fileuploaderror":case"filebatchuploaderror":case"filedeleteerror":case"filecustomerror":case"filesuccessremove":break;default:this.ajaxAborted=n.result}return!0},_listenFullScreen:function(e){var t,i,n=this.$modal;n&&n.length&&(t=n&&n.find(".btn-fullscreen"),i=n&&n.find(".btn-borderless"),t.length&&i.length&&(t.removeClass("active").attr("aria-pressed","false"),i.removeClass("active").attr("aria-pressed","false"),e?t.addClass("active").attr("aria-pressed","true"):i.addClass("active").attr("aria-pressed","true"),n.hasClass("file-zoom-fullscreen")?this._maximizeZoomDialog():e?this._maximizeZoomDialog():i.removeClass("active").attr("aria-pressed","false")))},_listen:function(){var t=this,i=t.$element,n=i.closest("form"),r=t.$container;l(i,"change",e.proxy(t._change,t)),t.showBrowse&&l(t.$btnFile,"click",e.proxy(t._browse,t)),l(n,"reset",e.proxy(t.reset,t)),l(r.find(".fileinput-remove:not([disabled])"),"click",e.proxy(t.clear,t)),l(r.find(".fileinput-cancel"),"click",e.proxy(t.cancel,t)),t._initDragDrop(),t.isUploadable||l(n,"submit",e.proxy(t._submitForm,t)),l(t.$container.find(".fileinput-upload"),"click",e.proxy(t._uploadClick,t)),l(e(window),"resize",function(){t._listenFullScreen(screen.width===window.innerWidth&&screen.height===window.innerHeight)}),l(e(document),"webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange",function(){t._listenFullScreen(D())}),t._initClickable()},_initClickable:function(){var t,i=this;i.isClickable&&(t=i.isUploadable?i.$dropZone:i.$preview.find(".file-default-preview"),f(t,"clickable"),t.attr("tabindex",-1),l(t,"click",function(n){var r=e(n.target);r.parents(".file-preview-thumbnails").length&&!r.parents(".file-default-preview").length||(i.$element.trigger("click"),t.blur())}))},_initDragDrop:function(){var t=this.$dropZone;this.isUploadable&&this.dropZoneEnabled&&this.showPreview&&(l(t,"dragenter dragover",e.proxy(this._zoneDragEnter,this)),l(t,"dragleave",e.proxy(this._zoneDragLeave,this)),l(t,"drop",e.proxy(this._zoneDrop,this)),l(e(document),"dragenter dragover drop",this._zoneDragDropInit))},_zoneDragDropInit:function(e){e.stopPropagation(),e.preventDefault()},_zoneDragEnter:function(t){var i=e.inArray("Files",t.originalEvent.dataTransfer.types)>-1;if(this._zoneDragDropInit(t),this.isDisabled||!i)return t.originalEvent.dataTransfer.effectAllowed="none",void(t.originalEvent.dataTransfer.dropEffect="none");f(this.$dropZone,"file-highlighted")},_zoneDragLeave:function(e){this._zoneDragDropInit(e),this.isDisabled||this.$dropZone.removeClass("file-highlighted")},_zoneDrop:function(e){e.preventDefault(),this.isDisabled||k(e.originalEvent.dataTransfer.files)||(this._change(e,"dragdrop"),this.$dropZone.removeClass("file-highlighted"))},_uploadClick:function(e){var t,i=this.$container.find(".fileinput-upload"),n=!i.hasClass("disabled")&&k(i.attr("disabled"));e&&e.isDefaultPrevented()||(this.isUploadable?(e.preventDefault(),n&&this.upload()):n&&"submit"!==i.attr("type")&&((t=i.closest("form")).length&&t.trigger("submit"),e.preventDefault()))},_submitForm:function(){var e=this.$element.get(0).files;return e&&this.minFileCount>0&&this._getFileCount(e.length)
    ");return a.attr("data-swiper-slide-index")||a.attr("data-swiper-slide-index",t),r.cache&&(i.virtual.cache[t]=a),a},appendSlide:function(e){this.virtual.slides.push(e),this.virtual.update(!0)},prependSlide:function(e){var t=this;if(t.virtual.slides.unshift(e),t.params.virtual.cache){var i=t.virtual.cache,n={};Object.keys(i).forEach(function(e){n[e+1]=i[e]}),t.virtual.cache=n}t.virtual.update(!0),t.slideNext(0)}},L={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;c.extend(e,{virtual:{update:D.update.bind(e),appendSlide:D.appendSlide.bind(e),prependSlide:D.prependSlide.bind(e),renderSlide:D.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var e=this;if(e.params.virtual.enabled){e.classNames.push(e.params.containerModifierClass+"virtual");var t={watchSlidesProgress:!0};c.extend(e.params,t),c.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},R={handle:function(i){var n=this,r=n.rtlTranslate,a=i;a.originalEvent&&(a=a.originalEvent);var s=a.keyCode||a.charCode;if(!n.allowSlideNext&&(n.isHorizontal()&&39===s||n.isVertical()&&40===s))return!1;if(!n.allowSlidePrev&&(n.isHorizontal()&&37===s||n.isVertical()&&38===s))return!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey||e.activeElement&&e.activeElement.nodeName&&("input"===e.activeElement.nodeName.toLowerCase()||"textarea"===e.activeElement.nodeName.toLowerCase()))){if(n.params.keyboard.onlyInViewport&&(37===s||39===s||38===s||40===s)){var o=!1;if(0Math.abs(o.pixelY)))return!0;a=o.pixelX*s}else{if(!(Math.abs(o.pixelY)>Math.abs(o.pixelX)))return!0;a=o.pixelY}else a=Math.abs(o.pixelX)>Math.abs(o.pixelY)?-o.pixelX*s:-o.pixelY;if(0===a)return!0;if(r.invert&&(a=-a),n.params.freeMode){n.params.loop&&n.loopFix();var l=n.getTranslate()+a*r.sensitivity,d=n.isBeginning,u=n.isEnd;if(l>=n.minTranslate()&&(l=n.minTranslate()),l<=n.maxTranslate()&&(l=n.maxTranslate()),n.setTransition(0),n.setTranslate(l),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!d&&n.isBeginning||!u&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky&&(clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=c.nextTick(function(){n.slideToClosest()},300)),n.emit("scroll",i),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),l===n.minTranslate()||l===n.maxTranslate())return!0}else{if(60a-1-2*e.loopedSlides&&(r-=a-2*e.loopedSlides),o-1i.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=i.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),l=r-e.pagination.dynamicBulletIndex,d=((c=l+(Math.min(u.length,i.dynamicMainBullets)-1))+l)/2),u.removeClass(i.bulletActiveClass+" "+i.bulletActiveClass+"-next "+i.bulletActiveClass+"-next-next "+i.bulletActiveClass+"-prev "+i.bulletActiveClass+"-prev-prev "+i.bulletActiveClass+"-main"),1";n.html(r),e.pagination.bullets=n.find("."+t.bulletClass)}"fraction"===t.type&&(r=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):' / ',n.html(r)),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'',n.html(r)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var i=n(t.el);0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&1'),a.append(s)),c.extend(t,{$el:a,el:a[0],$dragEl:s,dragEl:s[0]}),r.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},j={setTransform:function(e,t){var i=this.rtl,r=n(e),a=i?-1:1,s=r.attr("data-swiper-parallax")||"0",o=r.attr("data-swiper-parallax-x"),l=r.attr("data-swiper-parallax-y"),c=r.attr("data-swiper-parallax-scale"),d=r.attr("data-swiper-parallax-opacity");if(o||l?(o=o||"0",l=l||"0"):this.isHorizontal()?(o=s,l="0"):(l=s,o="0"),o=0<=o.indexOf("%")?parseInt(o,10)*t*a+"%":o*t*a+"px",l=0<=l.indexOf("%")?parseInt(l,10)*t+"%":l*t+"px",null!=d){var u=d-(d-1)*(1-Math.abs(t));r[0].style.opacity=u}if(null==c)r.transform("translate3d("+o+", "+l+", 0px)");else{var p=c-(c-1)*(1-Math.abs(t));r.transform("translate3d("+o+", "+l+", 0px) scale("+p+")")}},setTranslate:function(){var e=this,t=e.$el,i=e.slides,r=e.progress,a=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t,i){e.parallax.setTransform(i,r)}),i.each(function(t,i){var s=i.progress;1n.maxRatio&&(i.scale=n.maxRatio-1+Math.pow(i.scale-n.maxRatio+1,.5)),i.scaler.touchesStart.x))return void(r.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(r.minY)===Math.floor(r.startY)&&r.touchesCurrent.yr.touchesStart.y))return void(r.isTouched=!1)}e.preventDefault(),e.stopPropagation(),r.isMoved=!0,r.currentX=r.touchesCurrent.x-r.touchesStart.x+r.startX,r.currentY=r.touchesCurrent.y-r.touchesStart.y+r.startY,r.currentXr.maxX&&(r.currentX=r.maxX-1+Math.pow(r.currentX-r.maxX+1,.8)),r.currentYr.maxY&&(r.currentY=r.maxY-1+Math.pow(r.currentY-r.maxY+1,.8)),a.prevPositionX||(a.prevPositionX=r.touchesCurrent.x),a.prevPositionY||(a.prevPositionY=r.touchesCurrent.y),a.prevTime||(a.prevTime=Date.now()),a.x=(r.touchesCurrent.x-a.prevPositionX)/(Date.now()-a.prevTime)/2,a.y=(r.touchesCurrent.y-a.prevPositionY)/(Date.now()-a.prevTime)/2,Math.abs(r.touchesCurrent.x-a.prevPositionX)<2&&(a.x=0),Math.abs(r.touchesCurrent.y-a.prevPositionY)<2&&(a.y=0),a.prevPositionX=r.touchesCurrent.x,a.prevPositionY=r.touchesCurrent.y,a.prevTime=Date.now(),n.$imageWrapEl.transform("translate3d("+r.currentX+"px, "+r.currentY+"px,0)")}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,i=e.image,n=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var r=300,a=300,s=n.x*r,o=i.currentX+s,l=n.y*a,c=i.currentY+l;0!==n.x&&(r=Math.abs((o-i.currentX)/n.x)),0!==n.y&&(a=Math.abs((c-i.currentY)/n.y));var d=Math.max(r,a);i.currentX=o,i.currentY=c;var u=i.width*e.scale,p=i.height*e.scale;i.minX=Math.min(t.slideWidth/2-u/2,0),i.maxX=-i.minX,i.minY=Math.min(t.slideHeight/2-p/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),t.$imageWrapEl.transition(d).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var e=this.zoom,t=e.gesture;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl.transform("translate3d(0,0,0) scale(1)"),t.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,i,r,a,s,o,l,c,d,u,p,h,f,m,g,v,b=this,y=b.zoom,w=b.params.zoom,_=y.gesture,E=y.image;_.$slideEl||(_.$slideEl=b.clickedSlide?n(b.clickedSlide):b.slides.eq(b.activeIndex),_.$imageEl=_.$slideEl.find("img, svg, canvas"),_.$imageWrapEl=_.$imageEl.parent("."+w.containerClass)),_.$imageEl&&0!==_.$imageEl.length&&(_.$slideEl.addClass(""+w.zoomedSlideClass),void 0===E.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,i="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=E.touchesStart.x,i=E.touchesStart.y),y.scale=_.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,y.currentScale=_.$imageWrapEl.attr("data-swiper-zoom")||w.maxRatio,e?(g=_.$slideEl[0].offsetWidth,v=_.$slideEl[0].offsetHeight,r=_.$slideEl.offset().left+g/2-t,a=_.$slideEl.offset().top+v/2-i,l=_.$imageEl[0].offsetWidth,c=_.$imageEl[0].offsetHeight,d=l*y.scale,u=c*y.scale,f=-(p=Math.min(g/2-d/2,0)),m=-(h=Math.min(v/2-u/2,0)),(s=r*y.scale)>1]<=t?n=r:i=r;return i}(this.x,e),a=s-1,(e-this.x[a])*(this.y[s]-this.y[a])/(this.x[s]-this.x[a])+this.y[a]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new G.LinearSpline(t.slidesGrid,e.slidesGrid):new G.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){var i,n,r=this,a=r.controller.control;function s(e){var t=r.rtlTranslate?-r.translate:r.translate;"slide"===r.params.controller.by&&(r.controller.getInterpolateFunction(e),n=-r.controller.spline.interpolate(-t)),n&&"container"!==r.params.controller.by||(i=(e.maxTranslate()-e.minTranslate())/(r.maxTranslate()-r.minTranslate()),n=(t-r.minTranslate())*i+e.minTranslate()),r.params.controller.inverse&&(n=e.maxTranslate()-n),e.updateProgress(n),e.setTranslate(n,r),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(a))for(var o=0;o'),r.append(e)),e.css({height:s+"px"})):0===(e=i.find(".swiper-cube-shadow")).length&&(e=n('
    '),i.append(e)));for(var f=0;f'),m.append(x)),0===C.length&&(C=n('
    '),m.append(C)),x.length&&(x[0].style.opacity=Math.max(-y,0)),C.length&&(C[0].style.opacity=Math.max(y,0))}}if(r.css({"-webkit-transform-origin":"50% 50% -"+c/2+"px","-moz-transform-origin":"50% 50% -"+c/2+"px","-ms-transform-origin":"50% 50% -"+c/2+"px","transform-origin":"50% 50% -"+c/2+"px"}),d.shadow)if(u)e.transform("translate3d(0px, "+(s/2+d.shadowOffset)+"px, "+-s/2+"px) rotateX(90deg) rotateZ(0deg) scale("+d.shadowScale+")");else{var k=Math.abs(h)-90*Math.floor(Math.abs(h)/90),I=1.5-(Math.sin(2*k*Math.PI/360)/2+Math.cos(2*k*Math.PI/360)/2),A=d.shadowScale,$=d.shadowScale/I,O=d.shadowOffset;e.transform("scale3d("+A+", 1, "+$+") translate3d(0px, "+(o/2+O)+"px, "+-o/2/$+"px) rotateX(-90deg)")}var N=T.isSafari||T.isUiWebView?-c/2:0;r.transform("translate3d(0px,0,"+N+"px) rotateX("+(t.isHorizontal()?0:h)+"deg) rotateY("+(t.isHorizontal()?-h:0)+"deg)")},setTransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},J={setTranslate:function(){for(var e=this,t=e.slides,i=e.rtlTranslate,r=0;r'),a.append(u)),0===p.length&&(p=n('
    '),a.append(p)),u.length&&(u[0].style.opacity=Math.max(-s,0)),p.length&&(p[0].style.opacity=Math.max(s,0))}a.transform("translate3d("+c+"px, "+d+"px, 0px) rotateX("+l+"deg) rotateY("+o+"deg)")}},setTransition:function(e){var t=this,i=t.slides,n=t.activeIndex,r=t.$wrapperEl;if(i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var a=!1;i.eq(n).transitionEnd(function(){if(!a&&t&&!t.destroyed){a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i'),g.append(x)),0===C.length&&(C=n('
    '),g.append(C)),x.length&&(x[0].style.opacity=0')}}),Object.keys(W).forEach(function(t){e.a11y[t]=W[t].bind(e)})},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;c.extend(e,{history:{init:Y.init.bind(e),setHistory:Y.setHistory.bind(e),setHistoryPopState:Y.setHistoryPopState.bind(e),scrollToSlide:Y.scrollToSlide.bind(e),destroy:Y.destroy.bind(e)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;c.extend(e,{hashNavigation:{initialized:!1,init:K.init.bind(e),destroy:K.destroy.bind(e),setHash:K.setHash.bind(e),onHashCange:K.onHashCange.bind(e)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;c.extend(e,{autoplay:{running:!1,paused:!1,run:X.run.bind(e),start:X.start.bind(e),stop:X.stop.bind(e),pause:X.pause.bind(e),onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(e,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(e):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){c.extend(this,{fadeEffect:{setTranslate:Q.setTranslate.bind(this),setTransition:Q.setTransition.bind(this)}})},on:{beforeInit:function(){var e=this;if("fade"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};c.extend(e.params,t),c.extend(e.originalParams,t)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){c.extend(this,{cubeEffect:{setTranslate:Z.setTranslate.bind(this),setTransition:Z.setTransition.bind(this)}})},on:{beforeInit:function(){var e=this;if("cube"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"cube"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};c.extend(e.params,t),c.extend(e.originalParams,t)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){c.extend(this,{flipEffect:{setTranslate:J.setTranslate.bind(this),setTransition:J.setTransition.bind(this)}})},on:{beforeInit:function(){var e=this;if("flip"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"flip"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};c.extend(e.params,t),c.extend(e.originalParams,t)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){c.extend(this,{coverflowEffect:{setTranslate:ee.setTranslate.bind(this),setTransition:ee.setTransition.bind(this)}})},on:{beforeInit:function(){var e=this;"coverflow"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"coverflow"),e.classNames.push(e.params.containerModifierClass+"3d"),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){c.extend(this,{thumbs:{swiper:null,init:te.init.bind(this),update:te.update.bind(this),onThumbClick:te.onThumbClick.bind(this)}})},on:{beforeInit:function(){var e=this.params.thumbs;e&&e.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}}];return void 0===I.use&&(I.use=I.Class.use,I.installModule=I.Class.installModule),I.use(ie),I}),function(e,t){"object"==typeof exports?module.exports=exports=t():"function"==typeof define&&define.amd?define([],t):e.CryptoJS=t()}(this,function(){var e,t,i,n,r,a,s,o,l,c=c||function(e,t){var i=Object.create||function(){function e(){}return function(t){var i;return e.prototype=t,i=new e,e.prototype=null,i}}(),n={},r=n.lib={},a=r.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},s=r.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,i=e.words,n=this.sigBytes,r=e.sigBytes;if(this.clamp(),n%4)for(var a=0;a>>2]>>>24-a%4*8&255;t[n+a>>>2]|=s<<24-(n+a)%4*8}else for(a=0;a>>2]=i[a>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,i=this.sigBytes;t[i>>>2]&=4294967295<<32-i%4*8,t.length=e.ceil(i/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var i,n=[],r=function(t){t=t;var i=987654321,n=4294967295;return function(){var r=((i=36969*(65535&i)+(i>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return r/=4294967296,(r+=.5)*(e.random()>.5?1:-1)}},a=0;a>>2]>>>24-r%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,i=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new s.init(i,t/2)}},c=o.Latin1={stringify:function(e){for(var t=e.words,i=e.sigBytes,n=[],r=0;r>>2]>>>24-r%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,i=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new s.init(i,t)}},d=o.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},u=r.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var i=this._data,n=i.words,r=i.sigBytes,a=this.blockSize,o=r/(4*a),l=(o=t?e.ceil(o):e.max((0|o)-this._minBufferSize,0))*a,c=e.min(4*l,r);if(l){for(var d=0;d>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,o=0;o<4&&a+.75*o>>6*(3-o)&63));var l=n.charAt(64);if(l)for(;r.length%4;)r.push(l);return r.join("")},parse:function(e){var i=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var a=0;a>>6-s%4*2;r[a>>>2]|=(o|l)<<24-a%4*8,a++}return t.create(r,a)}(e,i,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(e){var t=c,i=t.lib,n=i.WordArray,r=i.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var o=a.MD5=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var i=0;i<16;i++){var n=t+i,r=e[n];e[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var a=this._hash.words,o=e[t+0],c=e[t+1],h=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],b=e[t+7],y=e[t+8],w=e[t+9],_=e[t+10],E=e[t+11],S=e[t+12],T=e[t+13],x=e[t+14],C=e[t+15],k=a[0],I=a[1],A=a[2],$=a[3];I=p(I=p(I=p(I=p(I=u(I=u(I=u(I=u(I=d(I=d(I=d(I=d(I=l(I=l(I=l(I=l(I,A=l(A,$=l($,k=l(k,I,A,$,o,7,s[0]),I,A,c,12,s[1]),k,I,h,17,s[2]),$,k,f,22,s[3]),A=l(A,$=l($,k=l(k,I,A,$,m,7,s[4]),I,A,g,12,s[5]),k,I,v,17,s[6]),$,k,b,22,s[7]),A=l(A,$=l($,k=l(k,I,A,$,y,7,s[8]),I,A,w,12,s[9]),k,I,_,17,s[10]),$,k,E,22,s[11]),A=l(A,$=l($,k=l(k,I,A,$,S,7,s[12]),I,A,T,12,s[13]),k,I,x,17,s[14]),$,k,C,22,s[15]),A=d(A,$=d($,k=d(k,I,A,$,c,5,s[16]),I,A,v,9,s[17]),k,I,E,14,s[18]),$,k,o,20,s[19]),A=d(A,$=d($,k=d(k,I,A,$,g,5,s[20]),I,A,_,9,s[21]),k,I,C,14,s[22]),$,k,m,20,s[23]),A=d(A,$=d($,k=d(k,I,A,$,w,5,s[24]),I,A,x,9,s[25]),k,I,f,14,s[26]),$,k,y,20,s[27]),A=d(A,$=d($,k=d(k,I,A,$,T,5,s[28]),I,A,h,9,s[29]),k,I,b,14,s[30]),$,k,S,20,s[31]),A=u(A,$=u($,k=u(k,I,A,$,g,4,s[32]),I,A,y,11,s[33]),k,I,E,16,s[34]),$,k,x,23,s[35]),A=u(A,$=u($,k=u(k,I,A,$,c,4,s[36]),I,A,m,11,s[37]),k,I,b,16,s[38]),$,k,_,23,s[39]),A=u(A,$=u($,k=u(k,I,A,$,T,4,s[40]),I,A,o,11,s[41]),k,I,f,16,s[42]),$,k,v,23,s[43]),A=u(A,$=u($,k=u(k,I,A,$,w,4,s[44]),I,A,S,11,s[45]),k,I,C,16,s[46]),$,k,h,23,s[47]),A=p(A,$=p($,k=p(k,I,A,$,o,6,s[48]),I,A,b,10,s[49]),k,I,x,15,s[50]),$,k,g,21,s[51]),A=p(A,$=p($,k=p(k,I,A,$,S,6,s[52]),I,A,f,10,s[53]),k,I,_,15,s[54]),$,k,c,21,s[55]),A=p(A,$=p($,k=p(k,I,A,$,y,6,s[56]),I,A,C,10,s[57]),k,I,v,15,s[58]),$,k,T,21,s[59]),A=p(A,$=p($,k=p(k,I,A,$,m,6,s[60]),I,A,E,10,s[61]),k,I,h,15,s[62]),$,k,w,21,s[63]),a[0]=a[0]+k|0,a[1]=a[1]+I|0,a[2]=a[2]+A|0,a[3]=a[3]+$|0},_doFinalize:function(){var t=this._data,i=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;i[r>>>5]|=128<<24-r%32;var a=e.floor(n/4294967296),s=n;i[15+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),i[14+(r+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(i.length+1),this._process();for(var o=this._hash,l=o.words,c=0;c<4;c++){var d=l[c];l[c]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return o},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,i,n,r,a,s){var o=e+(t&i|~t&n)+r+s;return(o<>>32-a)+t}function d(e,t,i,n,r,a,s){var o=e+(t&n|i&~n)+r+s;return(o<>>32-a)+t}function u(e,t,i,n,r,a,s){var o=e+(t^i^n)+r+s;return(o<>>32-a)+t}function p(e,t,i,n,r,a,s){var o=e+(i^(t|~n))+r+s;return(o<>>32-a)+t}t.MD5=r._createHelper(o),t.HmacMD5=r._createHmacHelper(o)}(Math),t=(e=c).lib,i=t.WordArray,n=t.Hasher,r=[],a=e.algo.SHA1=n.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var i=this._hash.words,n=i[0],a=i[1],s=i[2],o=i[3],l=i[4],c=0;c<80;c++){if(c<16)r[c]=0|e[t+c];else{var d=r[c-3]^r[c-8]^r[c-14]^r[c-16];r[c]=d<<1|d>>>31}var u=(n<<5|n>>>27)+l+r[c];u+=c<20?1518500249+(a&s|~a&o):c<40?1859775393+(a^s^o):c<60?(a&s|a&o|s&o)-1894007588:(a^s^o)-899497514,l=o,o=s,s=a<<30|a>>>2,a=n,n=u}i[0]=i[0]+n|0,i[1]=i[1]+a|0,i[2]=i[2]+s|0,i[3]=i[3]+o|0,i[4]=i[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,i=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=Math.floor(i/4294967296),t[15+(n+64>>>9<<4)]=i,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),e.SHA1=n._createHelper(a),e.HmacSHA1=n._createHmacHelper(a),function(e){var t=c,i=t.lib,n=i.WordArray,r=i.Hasher,a=t.algo,s=[],o=[];!function(){function t(t){for(var i=e.sqrt(t),n=2;n<=i;n++)if(!(t%n))return!1;return!0}function i(e){return 4294967296*(e-(0|e))|0}for(var n=2,r=0;r<64;)t(n)&&(r<8&&(s[r]=i(e.pow(n,.5))),o[r]=i(e.pow(n,1/3)),r++),n++}();var l=[],d=a.SHA256=r.extend({_doReset:function(){this._hash=new n.init(s.slice(0))},_doProcessBlock:function(e,t){for(var i=this._hash.words,n=i[0],r=i[1],a=i[2],s=i[3],c=i[4],d=i[5],u=i[6],p=i[7],h=0;h<64;h++){if(h<16)l[h]=0|e[t+h];else{var f=l[h-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=l[h-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[h]=m+l[h-7]+v+l[h-16]}var b=n&r^n&a^r&a,y=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=p+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&d^~c&u)+o[h]+l[h];p=u,u=d,d=c,c=s+w|0,s=a,a=r,r=n,n=w+(y+b)|0}i[0]=i[0]+n|0,i[1]=i[1]+r|0,i[2]=i[2]+a|0,i[3]=i[3]+s|0,i[4]=i[4]+c|0,i[5]=i[5]+d|0,i[6]=i[6]+u|0,i[7]=i[7]+p|0},_doFinalize:function(){var t=this._data,i=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return i[r>>>5]|=128<<24-r%32,i[14+(r+64>>>9<<4)]=e.floor(n/4294967296),i[15+(r+64>>>9<<4)]=n,t.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=r._createHelper(d),t.HmacSHA256=r._createHmacHelper(d)}(Math),function(){var e=c,t=e.lib.WordArray,i=e.enc;i.Utf16=i.Utf16BE={stringify:function(e){for(var t=e.words,i=e.sigBytes,n=[],r=0;r>>2]>>>16-r%4*8&65535;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var i=e.length,n=[],r=0;r>>1]|=e.charCodeAt(r)<<16-r%2*16;return t.create(n,2*i)}};function n(e){return e<<8&4278255360|e>>>8&16711935}i.Utf16LE={stringify:function(e){for(var t=e.words,i=e.sigBytes,r=[],a=0;a>>2]>>>16-a%4*8&65535);r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var i=e.length,r=[],a=0;a>>1]|=n(e.charCodeAt(a)<<16-a%2*16);return t.create(r,2*i)}}}(),function(){if("function"==typeof ArrayBuffer){var e=c.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var i=e.byteLength,n=[],r=0;r>>2]|=e[r]<<24-r%4*8;t.call(this,n,i)}else t.apply(this,arguments)}).prototype=e}}(),function(e){var t=c,i=t.lib,n=i.WordArray,r=i.Hasher,a=t.algo,s=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),o=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),l=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=n.create([0,1518500249,1859775393,2400959708,2840853838]),p=n.create([1352829926,1548603684,1836072691,2053994217,0]),h=a.RIPEMD160=r.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var i=0;i<16;i++){var n=t+i,r=e[n];e[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var a,c,h,w,_,E,S,T,x,C,k,I=this._hash.words,A=u.words,$=p.words,O=s.words,N=o.words,P=l.words,M=d.words;E=a=I[0],S=c=I[1],T=h=I[2],x=w=I[3],C=_=I[4];for(i=0;i<80;i+=1)k=a+e[t+O[i]]|0,k+=i<16?f(c,h,w)+A[0]:i<32?m(c,h,w)+A[1]:i<48?g(c,h,w)+A[2]:i<64?v(c,h,w)+A[3]:b(c,h,w)+A[4],k=(k=y(k|=0,P[i]))+_|0,a=_,_=w,w=y(h,10),h=c,c=k,k=E+e[t+N[i]]|0,k+=i<16?b(S,T,x)+$[0]:i<32?v(S,T,x)+$[1]:i<48?g(S,T,x)+$[2]:i<64?m(S,T,x)+$[3]:f(S,T,x)+$[4],k=(k=y(k|=0,M[i]))+C|0,E=C,C=x,x=y(T,10),T=S,S=k;k=I[1]+h+x|0,I[1]=I[2]+w+C|0,I[2]=I[3]+_+E|0,I[3]=I[4]+a+S|0,I[4]=I[0]+c+T|0,I[0]=k},_doFinalize:function(){var e=this._data,t=e.words,i=8*this._nDataBytes,n=8*e.sigBytes;t[n>>>5]|=128<<24-n%32,t[14+(n+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.sigBytes=4*(t.length+1),this._process();for(var r=this._hash,a=r.words,s=0;s<5;s++){var o=a[s];a[s]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}return r},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,i){return e^t^i}function m(e,t,i){return e&t|~e&i}function g(e,t,i){return(e|~t)^i}function v(e,t,i){return e&i|t&~i}function b(e,t,i){return e^(t|~i)}function y(e,t){return e<>>32-t}t.RIPEMD160=r._createHelper(h),t.HmacRIPEMD160=r._createHmacHelper(h)}(Math),function(){var e=c,t=e.lib.Base,i=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),s=this._iKey=t.clone(),o=a.words,l=s.words,c=0;c>>24)|4278255360&(a<<24|a>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(I=i[r]).high^=s,I.low^=a}for(var c=0;c<24;c++){for(var p=0;p<5;p++){for(var h=0,f=0,m=0;m<5;m++){h^=(I=i[p+5*m]).high,f^=I.low}var g=u[p];g.high=h,g.low=f}for(p=0;p<5;p++){var v=u[(p+4)%5],b=u[(p+1)%5],y=b.high,w=b.low;for(h=v.high^(y<<1|w>>>31),f=v.low^(w<<1|y>>>31),m=0;m<5;m++){(I=i[p+5*m]).high^=h,I.low^=f}}for(var _=1;_<25;_++){var E=(I=i[_]).high,S=I.low,T=o[_];if(T<32)h=E<>>32-T,f=S<>>32-T;else h=S<>>64-T,f=E<>>64-T;var x=u[l[_]];x.high=h,x.low=f}var C=u[0],k=i[0];C.high=k.high,C.low=k.low;for(p=0;p<5;p++)for(m=0;m<5;m++){var I=i[_=p+5*m],A=u[_],$=u[(p+1)%5+5*m],O=u[(p+2)%5+5*m];I.high=A.high^~$.high&O.high,I.low=A.low^~$.low&O.low}I=i[0];var N=d[c];I.high^=N.high,I.low^=N.low}},_doFinalize:function(){var t=this._data,i=t.words,r=(this._nDataBytes,8*t.sigBytes),a=32*this.blockSize;i[r>>>5]|=1<<24-r%32,i[(e.ceil((r+1)/a)*a>>>5)-1]|=128,t.sigBytes=4*i.length,this._process();for(var s=this._state,o=this.cfg.outputLength/8,l=o/8,c=[],d=0;d>>24)|4278255360&(p<<24|p>>>8),h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),c.push(h),c.push(p)}return new n.init(c,o)},clone:function(){for(var e=r.clone.call(this),t=e._state=this._state.slice(0),i=0;i<25;i++)t[i]=t[i].clone();return e}});t.SHA3=r._createHelper(p),t.HmacSHA3=r._createHmacHelper(p)}(Math),function(){var e=c,t=e.lib.Hasher,i=e.x64,n=i.Word,r=i.WordArray,a=e.algo;function s(){return n.create.apply(n,arguments)}var o=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=s()}();var d=a.SHA512=t.extend({_doReset:function(){this._hash=new r.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var i=this._hash.words,n=i[0],r=i[1],a=i[2],s=i[3],c=i[4],d=i[5],u=i[6],p=i[7],h=n.high,f=n.low,m=r.high,g=r.low,v=a.high,b=a.low,y=s.high,w=s.low,_=c.high,E=c.low,S=d.high,T=d.low,x=u.high,C=u.low,k=p.high,I=p.low,A=h,$=f,O=m,N=g,P=v,M=b,D=y,L=w,R=_,B=E,H=S,F=T,z=x,U=C,j=k,q=I,V=0;V<80;V++){var G=l[V];if(V<16)var W=G.high=0|e[t+2*V],Y=G.low=0|e[t+2*V+1];else{var K=l[V-15],X=K.high,Q=K.low,Z=(X>>>1|Q<<31)^(X>>>8|Q<<24)^X>>>7,J=(Q>>>1|X<<31)^(Q>>>8|X<<24)^(Q>>>7|X<<25),ee=l[V-2],te=ee.high,ie=ee.low,ne=(te>>>19|ie<<13)^(te<<3|ie>>>29)^te>>>6,re=(ie>>>19|te<<13)^(ie<<3|te>>>29)^(ie>>>6|te<<26),ae=l[V-7],se=ae.high,oe=ae.low,le=l[V-16],ce=le.high,de=le.low;W=(W=(W=Z+se+((Y=J+oe)>>>0>>0?1:0))+ne+((Y=Y+re)>>>0>>0?1:0))+ce+((Y=Y+de)>>>0>>0?1:0);G.high=W,G.low=Y}var ue,pe=R&H^~R&z,he=B&F^~B&U,fe=A&O^A&P^O&P,me=$&N^$&M^N&M,ge=(A>>>28|$<<4)^(A<<30|$>>>2)^(A<<25|$>>>7),ve=($>>>28|A<<4)^($<<30|A>>>2)^($<<25|A>>>7),be=(R>>>14|B<<18)^(R>>>18|B<<14)^(R<<23|B>>>9),ye=(B>>>14|R<<18)^(B>>>18|R<<14)^(B<<23|R>>>9),we=o[V],_e=we.high,Ee=we.low,Se=j+be+((ue=q+ye)>>>0>>0?1:0),Te=ve+me;j=z,q=U,z=H,U=F,H=R,F=B,R=D+(Se=(Se=(Se=Se+pe+((ue=ue+he)>>>0>>0?1:0))+_e+((ue=ue+Ee)>>>0>>0?1:0))+W+((ue=ue+Y)>>>0>>0?1:0))+((B=L+ue|0)>>>0>>0?1:0)|0,D=P,L=M,P=O,M=N,O=A,N=$,A=Se+(ge+fe+(Te>>>0>>0?1:0))+(($=ue+Te|0)>>>0>>0?1:0)|0}f=n.low=f+$,n.high=h+A+(f>>>0<$>>>0?1:0),g=r.low=g+N,r.high=m+O+(g>>>0>>0?1:0),b=a.low=b+M,a.high=v+P+(b>>>0>>0?1:0),w=s.low=w+L,s.high=y+D+(w>>>0>>0?1:0),E=c.low=E+B,c.high=_+R+(E>>>0>>0?1:0),T=d.low=T+F,d.high=S+H+(T>>>0>>0?1:0),C=u.low=C+U,u.high=x+z+(C>>>0>>0?1:0),I=p.low=I+q,p.high=k+j+(I>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,i=8*this._nDataBytes,n=8*e.sigBytes;return t[n>>>5]|=128<<24-n%32,t[30+(n+128>>>10<<5)]=Math.floor(i/4294967296),t[31+(n+128>>>10<<5)]=i,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(d),e.HmacSHA512=t._createHmacHelper(d)}(),function(){var e=c,t=e.x64,i=t.Word,n=t.WordArray,r=e.algo,a=r.SHA512,s=r.SHA384=a.extend({_doReset:function(){this._hash=new n.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),c.lib.Cipher||function(e){var t=c,i=t.lib,n=i.Base,r=i.WordArray,a=i.BufferedBlockAlgorithm,s=t.enc,o=(s.Utf8,s.Base64),l=t.algo.EvpKDF,d=i.Cipher=a.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,i){this.cfg=this.cfg.extend(i),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?y:v}return function(t){return{encrypt:function(i,n,r){return e(n).encrypt(t,i,n,r)},decrypt:function(i,n,r){return e(n).decrypt(t,i,n,r)}}}}()}),u=(i.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),p=i.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=u.CBC=function(){var t=p.extend();function i(t,i,n){var r=this._iv;if(r){var a=r;this._iv=e}else a=this._prevBlock;for(var s=0;s>>2];e.sigBytes-=t}},m=(i.BlockCipher=d.extend({cfg:d.cfg.extend({mode:h,padding:f}),reset:function(){d.reset.call(this);var e=this.cfg,t=e.iv,i=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=i.createEncryptor;else{n=i.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==n?this._mode.init(this,t&&t.words):(this._mode=n.call(i,this,t&&t.words),this._mode.__creator=n)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{t=this._process(!0);e.unpad(t)}return t},blockSize:4}),i.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),g=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,i=e.salt;if(i)var n=r.create([1398893684,1701076831]).concat(i).concat(t);else n=t;return n.toString(o)},parse:function(e){var t=o.parse(e),i=t.words;if(1398893684==i[0]&&1701076831==i[1]){var n=r.create(i.slice(2,4));i.splice(0,4),t.sigBytes-=16}return m.create({ciphertext:t,salt:n})}},v=i.SerializableCipher=n.extend({cfg:n.extend({format:g}),encrypt:function(e,t,i,n){n=this.cfg.extend(n);var r=e.createEncryptor(i,n),a=r.finalize(t),s=r.cfg;return m.create({ciphertext:a,key:i,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,i,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(i,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),b=(t.kdf={}).OpenSSL={execute:function(e,t,i,n){n||(n=r.random(8));var a=l.create({keySize:t+i}).compute(e,n),s=r.create(a.words.slice(t),4*i);return a.sigBytes=4*t,m.create({key:a,iv:s,salt:n})}},y=i.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:b}),encrypt:function(e,t,i,n){var r=(n=this.cfg.extend(n)).kdf.execute(i,e.keySize,e.ivSize);n.iv=r.iv;var a=v.encrypt.call(this,e,t,r.key,n);return a.mixIn(r),a},decrypt:function(e,t,i,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var r=n.kdf.execute(i,e.keySize,e.ivSize,t.salt);return n.iv=r.iv,v.decrypt.call(this,e,t,r.key,n)}})}(),c.mode.CFB=function(){var e=c.lib.BlockCipherMode.extend();function t(e,t,i,n){var r=this._iv;if(r){var a=r.slice(0);this._iv=void 0}else a=this._prevBlock;n.encryptBlock(a,0);for(var s=0;s>>2]|=r<<24-a%4*8,e.sigBytes+=r},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},c.pad.Iso10126={pad:function(e,t){var i=4*t,n=i-e.sigBytes%i;e.concat(c.lib.WordArray.random(n-1)).concat(c.lib.WordArray.create([n<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},c.pad.Iso97971={pad:function(e,t){e.concat(c.lib.WordArray.create([2147483648],1)),c.pad.ZeroPadding.pad(e,t)},unpad:function(e){c.pad.ZeroPadding.unpad(e),e.sigBytes--}},c.mode.OFB=(o=c.lib.BlockCipherMode.extend(),l=o.Encryptor=o.extend({processBlock:function(e,t){var i=this._cipher,n=i.blockSize,r=this._iv,a=this._keystream;r&&(a=this._keystream=r.slice(0),this._iv=void 0),i.encryptBlock(a,0);for(var s=0;s>>8^255&f^99,n[i]=f,r[f]=i;var m=e[i],g=e[m],v=e[g],b=257*e[f]^16843008*f;a[i]=b<<24|b>>>8,s[i]=b<<16|b>>>16,o[i]=b<<8|b>>>24,l[i]=b;b=16843009*v^65537*g^257*m^16843008*i;d[f]=b<<24|b>>>8,u[f]=b<<16|b>>>16,p[f]=b<<8|b>>>24,h[f]=b,i?(i=m^e[e[e[v^m]]],c^=e[e[c]]):i=c=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=i.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,i=e.sigBytes/4,r=4*((this._nRounds=i+6)+1),a=this._keySchedule=[],s=0;s6&&s%i==4&&(o=n[o>>>24]<<24|n[o>>>16&255]<<16|n[o>>>8&255]<<8|n[255&o]):(o=n[(o=o<<8|o>>>24)>>>24]<<24|n[o>>>16&255]<<16|n[o>>>8&255]<<8|n[255&o],o^=f[s/i|0]<<24),a[s]=a[s-i]^o}for(var l=this._invKeySchedule=[],c=0;c>>24]]^u[n[o>>>16&255]]^p[n[o>>>8&255]]^h[n[255&o]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,o,l,n)},decryptBlock:function(e,t){var i=e[t+1];e[t+1]=e[t+3],e[t+3]=i,this._doCryptBlock(e,t,this._invKeySchedule,d,u,p,h,r);i=e[t+1];e[t+1]=e[t+3],e[t+3]=i},_doCryptBlock:function(e,t,i,n,r,a,s,o){for(var l=this._nRounds,c=e[t]^i[0],d=e[t+1]^i[1],u=e[t+2]^i[2],p=e[t+3]^i[3],h=4,f=1;f>>24]^r[d>>>16&255]^a[u>>>8&255]^s[255&p]^i[h++],g=n[d>>>24]^r[u>>>16&255]^a[p>>>8&255]^s[255&c]^i[h++],v=n[u>>>24]^r[p>>>16&255]^a[c>>>8&255]^s[255&d]^i[h++],b=n[p>>>24]^r[c>>>16&255]^a[d>>>8&255]^s[255&u]^i[h++];c=m,d=g,u=v,p=b}m=(o[c>>>24]<<24|o[d>>>16&255]<<16|o[u>>>8&255]<<8|o[255&p])^i[h++],g=(o[d>>>24]<<24|o[u>>>16&255]<<16|o[p>>>8&255]<<8|o[255&c])^i[h++],v=(o[u>>>24]<<24|o[p>>>16&255]<<16|o[c>>>8&255]<<8|o[255&d])^i[h++],b=(o[p>>>24]<<24|o[c>>>16&255]<<16|o[d>>>8&255]<<8|o[255&u])^i[h++];e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=b},keySize:8});e.AES=t._createHelper(m)}(),function(){var e=c,t=e.lib,i=t.WordArray,n=t.BlockCipher,r=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],o=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],u=r.DES=n.extend({_doReset:function(){for(var e=this._key.words,t=[],i=0;i<56;i++){var n=a[i]-1;t[i]=e[n>>>5]>>>31-n%32&1}for(var r=this._subKeys=[],l=0;l<16;l++){var c=r[l]=[],d=o[l];for(i=0;i<24;i++)c[i/6|0]|=t[(s[i]-1+d)%28]<<31-i%6,c[4+(i/6|0)]|=t[28+(s[i+24]-1+d)%28]<<31-i%6;c[0]=c[0]<<1|c[0]>>>31;for(i=1;i<7;i++)c[i]=c[i]>>>4*(i-1)+3;c[7]=c[7]<<5|c[7]>>>27}var u=this._invSubKeys=[];for(i=0;i<16;i++)u[i]=r[15-i]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,i){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),p.call(this,1,1431655765);for(var n=0;n<16;n++){for(var r=i[n],a=this._lBlock,s=this._rBlock,o=0,c=0;c<8;c++)o|=l[c][((s^r[c])&d[c])>>>0];this._lBlock=s,this._rBlock=a^o}var u=this._lBlock;this._lBlock=this._rBlock,this._rBlock=u,p.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var i=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=i,this._lBlock^=i<>>e^this._lBlock)&t;this._lBlock^=i,this._rBlock^=i<>>2]>>>24-s%4*8&255;a=(a+n[r]+o)%256;var l=n[r];n[r]=n[a],n[a]=l}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=r.call(this)},keySize:8,ivSize:0});function r(){for(var e=this._S,t=this._i,i=this._j,n=0,r=0;r<4;r++){i=(i+e[t=(t+1)%256])%256;var a=e[t];e[t]=e[i],e[i]=a,n|=e[(e[t]+e[i])%256]<<24-8*r}return this._i=t,this._j=i,n}e.RC4=t._createHelper(n);var a=i.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)r.call(this)}});e.RC4Drop=t._createHelper(a)}(),c.mode.CTRGladman=function(){var e=c.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,i=e>>8&255,n=255&e;255===t?(t=0,255===i?(i=0,255===n?n=0:++n):++i):++t,e=0,e+=t<<16,e+=i<<8,e+=n}else e+=1<<24;return e}var i=e.Encryptor=e.extend({processBlock:function(e,i){var n=this._cipher,r=n.blockSize,a=this._iv,s=this._counter;a&&(s=this._counter=a.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(s);var o=s.slice(0);n.encryptBlock(o,0);for(var l=0;l>>24)|4278255360&(e[i]<<24|e[i]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(i=0;i<4;i++)s.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var a=t.words,o=a[0],l=a[1],c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),d=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),u=c>>>16|4294901760&d,p=d<<16|65535&c;r[0]^=c,r[1]^=u,r[2]^=d,r[3]^=p,r[4]^=c,r[5]^=u,r[6]^=d,r[7]^=p;for(i=0;i<4;i++)s.call(this)}},_doProcessBlock:function(e,t){var n=this._X;s.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,i=0;i<8;i++)n[i]=t[i];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(i=0;i<8;i++){var a=e[i]+t[i],s=65535&a,o=a>>>16,l=((s*s>>>17)+s*o>>>15)+o*o,c=((4294901760&a)*a|0)+((65535&a)*a|0);r[i]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}e.Rabbit=t._createHelper(a)}(),c.mode.CTR=function(){var e=c.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var i=this._cipher,n=i.blockSize,r=this._iv,a=this._counter;r&&(a=this._counter=r.slice(0),this._iv=void 0);var s=a.slice(0);i.encryptBlock(s,0),a[n-1]=a[n-1]+1|0;for(var o=0;o>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],n=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)s.call(this);for(r=0;r<8;r++)n[r]^=i[r+4&7];if(t){var a=t.words,o=a[0],l=a[1],c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),d=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),u=c>>>16|4294901760&d,p=d<<16|65535&c;n[0]^=c,n[1]^=u,n[2]^=d,n[3]^=p,n[4]^=c,n[5]^=u,n[6]^=d,n[7]^=p;for(r=0;r<4;r++)s.call(this)}},_doProcessBlock:function(e,t){var n=this._X;s.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,i=0;i<8;i++)n[i]=t[i];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(i=0;i<8;i++){var a=e[i]+t[i],s=65535&a,o=a>>>16,l=((s*s>>>17)+s*o>>>15)+o*o,c=((4294901760&a)*a|0)+((65535&a)*a|0);r[i]=l^c}e[0]=r[0]+(r[7]<<16|r[7]>>>16)+(r[6]<<16|r[6]>>>16)|0,e[1]=r[1]+(r[0]<<8|r[0]>>>24)+r[7]|0,e[2]=r[2]+(r[1]<<16|r[1]>>>16)+(r[0]<<16|r[0]>>>16)|0,e[3]=r[3]+(r[2]<<8|r[2]>>>24)+r[1]|0,e[4]=r[4]+(r[3]<<16|r[3]>>>16)+(r[2]<<16|r[2]>>>16)|0,e[5]=r[5]+(r[4]<<8|r[4]>>>24)+r[3]|0,e[6]=r[6]+(r[5]<<16|r[5]>>>16)+(r[4]<<16|r[4]>>>16)|0,e[7]=r[7]+(r[6]<<8|r[6]>>>24)+r[5]|0}e.RabbitLegacy=t._createHelper(a)}(),c.pad.ZeroPadding={pad:function(e,t){var i=4*t;e.clamp(),e.sigBytes+=i-(e.sigBytes%i||i)},unpad:function(e){for(var t=e.words,i=e.sigBytes-1;!(t[i>>>2]>>>24-i%4*8&255);)i--;e.sigBytes=i+1}},c});var jsPDF=function(e){"use strict";var t="1.3",i={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};function n(r,a,s,o){var l={};"object"==typeof r&&(r=(l=r).orientation,a=l.unit||a,s=l.format||s,o=l.compress||l.compressPdf||o),a=a||"mm",s=s||"a4",r=(""+(r||"P")).toLowerCase();(""+s).toLowerCase();var c,d,u,p,h,f,m,g,v,b,y=!!o&&"function"==typeof Uint8Array,w=l.textColor||"0 g",_=l.drawColor||"0 G",E=l.fontSize||16,S=l.lineHeight||1.15,T=l.lineWidth||.200025,x=2,C=!1,k=[],I={},A={},$=0,O=[],N=[],P=[],M=[],D=[],L=0,R=0,B=0,H={title:"",subject:"",author:"",keywords:"",creator:""},F={},z=new function(t){var i={};this.subscribe=function(e,t,n){if("function"!=typeof t)return!1;i.hasOwnProperty(e)||(i[e]={});var r=Math.random().toString(35);return i[e][r]=[t,!!n],r},this.unsubscribe=function(e){for(var t in i)if(i[t][e])return delete i[t][e],!0;return!1},this.publish=function(n){if(i.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),a=[];for(var s in i[n]){var o=i[n][s];try{o[0].apply(t,r)}catch(t){e.console&&console.error("jsPDF PubSub Error",t.message,t)}o[1]&&a.push(s)}a.length&&a.forEach(this.unsubscribe)}}}(F),U=function(e){return e.toFixed(2)},j=function(e){return e.toFixed(3)},q=function(e){return("0"+parseInt(e)).slice(-2)},V=function(e){C?O[p].push(e):(B+=e.length+1,M.push(e))},G=function(){return k[++x]=B,V(x+" 0 obj"),x},W=function(e){V("stream"),V(e),V("endstream")},Y=function(){for(var e in V("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),V("/Font <<"),I)I.hasOwnProperty(e)&&V("/"+e+" "+I[e].objectNumber+" 0 R");V(">>"),V("/XObject <<"),z.publish("putXobjectDict"),V(">>")},K=function(){!function(){for(var e in I)I.hasOwnProperty(e)&&((t=I[e]).objectNumber=G(),V("<>"),V("endobj"));var t}(),z.publish("putResources"),k[2]=B,V("2 0 obj"),V("<<"),Y(),V(">>"),V("endobj"),z.publish("postPutResources")},X=function(e,t,i){A.hasOwnProperty(t)||(A[t]={}),A[t][i]=e},Q=function(e,t,i,n){var r="F"+(Object.keys(I).length+1).toString(10),a=I[r]={id:r,PostScriptName:e,fontName:t,fontStyle:i,encoding:n,metadata:{}};return X(r,t,i),z.publish("addFont",a),r},Z=function(e,t){return function(e,t){var i,n,r,a,s,o,l,d,u;if(r=(t=t||{}).sourceEncoding||"Unicode",s=t.outputEncoding,(t.autoencode||s)&&I[c].metadata&&I[c].metadata[r]&&I[c].metadata[r].encoding&&(a=I[c].metadata[r].encoding,!s&&I[c].encoding&&(s=I[c].encoding),!s&&a.codePages&&(s=a.codePages[0]),"string"==typeof s&&(s=a[s]),s)){for(l=!1,o=[],i=0,n=e.length;i>8&&(l=!0);e=o.join("")}for(i=e.length;void 0===l&&0!==i;)e.charCodeAt(i-1)>>8&&(l=!0),i--;if(!l)return e;for(o=t.noBOM?[]:[254,255],i=0,n=e.length;i>8)>>8)throw new Error("Character at position "+i+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");o.push(u),o.push(d-(u<<8))}return String.fromCharCode.apply(void 0,o)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},J=function(){(function(e,t){var n="string"==typeof t&&t.toLowerCase();if("string"==typeof e){var r=e.toLowerCase();i.hasOwnProperty(r)&&(e=i[r][0]/d,t=i[r][1]/d)}if(Array.isArray(e)&&(t=e[1],e=e[0]),n){switch(n.substr(0,1)){case"l":t>e&&(n="s");break;case"p":e>t&&(n="s")}"s"===n&&(u=e,e=t,t=u)}C=!0,O[++$]=[],P[$]={width:Number(e)||h,height:Number(t)||f},N[$]={},ee($)}).apply(this,arguments),V(U(T*d)+" w"),V(_),0!==L&&V(L+" J"),0!==R&&V(R+" j"),z.publish("addPage",{pageNumber:$})},ee=function(e){e>0&&e<=$&&(p=e,h=P[e].width,f=P[e].height)},te=function(e,t){var i;switch(e=void 0!==e?e:I[c].fontName,t=void 0!==t?t:I[c].fontStyle,void 0!==e&&(e=e.toLowerCase()),e){case"sans-serif":case"verdana":case"arial":case"helvetica":e="helvetica";break;case"fixed":case"monospace":case"terminal":case"courier":e="courier";break;case"serif":case"cursive":case"fantasy":default:e="times"}try{i=A[e][t]}catch(e){}return i||null==(i=A.times[t])&&(i=A.times.normal),i},ie=function(){C=!1,x=2,B=0,M=[],k=[],D=[],z.publish("buildDocument"),V("%PDF-"+t),function(){var t,i,r,a,s,o,l,c,u,p=[];for(l=e.adler32cs||n.adler32cs,y&&void 0===l&&(y=!1),t=1;t<=$;t++){if(p.push(G()),c=(h=P[t].width)*d,u=(f=P[t].height)*d,V("<>"),V("endobj"),i=O[t].join("\n"),G(),y){for(r=[],a=i.length;a--;)r[a]=i.charCodeAt(a);o=l.from(i),(s=new Deflater(6)).append(new Uint8Array(r)),i=s.flush(),(r=new Uint8Array(i.length+6)).set(new Uint8Array([120,156])),r.set(i,2),r.set(new Uint8Array([255&o,o>>8&255,o>>16&255,o>>24&255]),i.length+2),i=String.fromCharCode.apply(null,r),V("<>")}else V("<>");W(i),V("endobj")}k[1]=B,V("1 0 obj"),V("<>"),V("endobj"),z.publish("postPutPages")}(),function(){z.publish("putAdditionalObjects");for(var e=0;e>"),V("endobj"),G(),V("<<"),function(){switch(V("/Type /Catalog"),V("/Pages 1 0 R"),g||(g="fullwidth"),g){case"fullwidth":V("/OpenAction [3 0 R /FitH null]");break;case"fullheight":V("/OpenAction [3 0 R /FitV null]");break;case"fullpage":V("/OpenAction [3 0 R /Fit]");break;case"original":V("/OpenAction [3 0 R /XYZ null null 1]");break;default:var e=""+g;"%"===e.substr(e.length-1)&&(g=parseInt(g)/100),"number"==typeof g&&V("/OpenAction [3 0 R /XYZ null null "+U(g)+"]")}switch(v||(v="continuous"),v){case"continuous":V("/PageLayout /OneColumn");break;case"single":V("/PageLayout /SinglePage");break;case"two":case"twoleft":V("/PageLayout /TwoColumnLeft");break;case"tworight":V("/PageLayout /TwoColumnRight")}m&&V("/PageMode /"+m),z.publish("putCatalog")}(),V(">>"),V("endobj");var i,r=B,a="0000000000";for(V("xref"),V("0 "+(x+1)),V(a+" 65535 f "),i=1;i<=x;i++){var s=k[i];V("function"==typeof s?(a+k[i]()).slice(-10)+" 00000 n ":(a+k[i]).slice(-10)+" 00000 n ")}return V("trailer"),V("<<"),V("/Size "+(x+1)),V("/Root "+x+" 0 R"),V("/Info "+(x-1)+" 0 R"),V(">>"),V("startxref"),V(""+r),V("%%EOF"),C=!0,M.join("\n")},ne=function(e){var t="S";return"F"===e?t="f":"FD"===e||"DF"===e?t="B":"f"!==e&&"f*"!==e&&"B"!==e&&"B*"!==e||(t=e),t},re=function(){for(var e=ie(),t=e.length,i=new ArrayBuffer(t),n=new Uint8Array(i);t--;)n[t]=e.charCodeAt(t);return i},ae=function(){return new Blob([re()],{type:"application/pdf"})},se=((b=function(t,i){var n="dataur"===(""+t).substr(0,6)?"data:application/pdf;base64,"+btoa(ie()):0;switch(t){case void 0:return ie();case"save":if(navigator.getUserMedia&&(void 0===e.URL||void 0===e.URL.createObjectURL))return F.output("dataurlnewwindow");saveAs(ae(),i),"function"==typeof saveAs.unload&&e.setTimeout&&setTimeout(saveAs.unload,911);break;case"arraybuffer":return re();case"blob":return ae();case"bloburi":case"bloburl":return e.URL&&e.URL.createObjectURL(ae())||void 0;case"datauristring":case"dataurlstring":return n;case"dataurlnewwindow":var r=e.open(n);if(r||"undefined"==typeof safari)return r;case"datauri":case"dataurl":return e.document.location.href=n;default:throw new Error('Output type "'+t+'" is not supported.')}}).foo=function(){try{return b.apply(this,arguments)}catch(n){var t=n.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var i="Error in function "+t.split("\n")[0].split("<")[0]+": "+n.message;if(!e.console)throw new Error(i);e.console.error(i,n),e.alert&&alert(i)}},b.foo.bar=b,b.foo);switch(a){case"pt":d=1;break;case"mm":d=72/25.4000508;break;case"cm":d=72/2.54000508;break;case"in":d=72;break;case"px":d=96/72;break;case"pc":case"em":d=12;break;case"ex":d=6;break;default:throw"Invalid unit: "+a}for(var oe in F.internal={pdfEscape:Z,getStyle:ne,getFont:function(){return I[te.apply(F,arguments)]},getFontSize:function(){return E},getLineHeight:function(){return E*S},write:function(e){V(1===arguments.length?e:Array.prototype.join.call(arguments," "))},getCoordinateString:function(e){return U(e*d)},getVerticalCoordinateString:function(e){return U((f-e)*d)},collections:{},newObject:G,newAdditionalObject:function(){var e=2*O.length+1,t={objId:e+=D.length,content:""};return D.push(t),t},newObjectDeferred:function(){return k[++x]=function(){return B},x},newObjectDeferredBegin:function(e){k[e]=B},putStream:W,events:z,scaleFactor:d,pageSize:{get width(){return h},get height(){return f}},output:function(e,t){return se(e,t)},getNumberOfPages:function(){return O.length-1},pages:O,out:V,f2:U,getPageInfo:function(e){return{objId:2*(e-1)+3,pageNumber:e,pageContext:N[e]}},getCurrentPageInfo:function(){return{objId:2*(p-1)+3,pageNumber:p,pageContext:N[p]}},getPDFVersion:function(){return t}},F.addPage=function(){return J.apply(this,arguments),this},F.setPage=function(){return ee.apply(this,arguments),this},F.insertPage=function(e){return this.addPage(),this.movePage(p,e),this},F.movePage=function(e,t){if(e>t){for(var i=O[e],n=P[e],r=N[e],a=e;a>t;a--)O[a]=O[a-1],P[a]=P[a-1],N[a]=N[a-1];O[t]=i,P[t]=n,N[t]=r,this.setPage(t)}else if(e0&&e<=$&&(O.splice(e,1),P.splice(e,1),p>--$&&(p=$),this.setPage(p))}.apply(this,arguments),this},F.setDisplayMode=function(e,t,i){if(g=e,v=t,m=i,-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(i))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+i+'" is not recognized.');return this},F.text=function(e,t,i,n,r,a){function s(e){return e=e.split("\t").join(Array(l.TabLen||9).join(" ")),Z(e,n)}"number"==typeof e&&(u=i,i=t,t=e,e=u),"string"==typeof e&&(e=e.match(/[\n\r]/)?e.split(/\r\n|\r|\n/g):[e]),"string"==typeof r&&(a=r,r=null),"string"==typeof n&&(a=n,n=null),"number"==typeof n&&(r=n,n=null);var o="",p="Td";if(r){r*=Math.PI/180;var h=Math.cos(r),m=Math.sin(r);o=[U(h),U(m),U(-1*m),U(h),""].join(" "),p="Tm"}"noBOM"in(n=n||{})||(n.noBOM=!0),"autoencode"in n||(n.autoencode=!0);var g,v="",b=this.internal.getCurrentPageInfo().pageContext;if(!0===n.stroke?!0!==b.lastTextWasStroke&&(v="1 Tr\n",b.lastTextWasStroke=!0):(b.lastTextWasStroke&&(v="0 Tr\n"),b.lastTextWasStroke=!1),void 0===this._runningPageHeight&&(this._runningPageHeight=0),"string"==typeof e)e=s(e);else{if("[object Array]"!==Object.prototype.toString.call(e))throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');for(var y=e.concat(),_=[],T=y.length;T--;)_.push(s(y.shift()));var x=Math.ceil((f-i-this._runningPageHeight)*d/(E*S));if(0<=x&&_.length,a){var C,k,I,A=E*S,$=e.map(function(e){return this.getStringUnitWidth(e)*E/d},this);if(I=Math.max.apply(Math,$),"center"===a)C=t-I/2,t-=$[0]/2;else{if("right"!==a)throw new Error('Unrecognized alignment option, use "center" or "right".');C=t-I,t-=$[0]}k=t,e=_[0];var O=1;for(T=_.length;O>16&255,t=n>>8&255,i=255&n}return w=0===e&&0===t&&0===i||void 0===t?j(e/255)+" g":[j(e/255),j(t/255),j(i/255),"rg"].join(" "),this},F.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},F.setLineCap=function(e){var t=this.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return L=t,V(t+" J"),this},F.setLineJoin=function(e){var t=this.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return R=t,V(t+" j"),this},F.output=se,F.save=function(e){F.output("save",e)},n.API)n.API.hasOwnProperty(oe)&&("events"===oe&&n.API.events.length?function(e,t){var i,n,r;for(r=t.length-1;-1!==r;r--)i=t[r][0],n=t[r][1],e.subscribe.apply(e,[i].concat("function"==typeof n?[n]:n))}(z,n.API.events):F[oe]=n.API[oe]);return function(){for(var e=[["Helvetica","helvetica","normal"],["Helvetica-Bold","helvetica","bold"],["Helvetica-Oblique","helvetica","italic"],["Helvetica-BoldOblique","helvetica","bolditalic"],["Courier","courier","normal"],["Courier-Bold","courier","bold"],["Courier-Oblique","courier","italic"],["Courier-BoldOblique","courier","bolditalic"],["Times-Roman","times","normal"],["Times-Bold","times","bold"],["Times-Italic","times","italic"],["Times-BoldItalic","times","bolditalic"],["ZapfDingbats","zapfdingbats"]],t=0,i=e.length;tl&&n.pagesplit){var p=function(){for(var n=0;;){var a=document.createElement("canvas");a.width=Math.min(o*s,e.width),a.height=Math.min(l*s,e.height-n),a.getContext("2d").drawImage(e,0,n,e.width,a.height,0,0,a.width,a.height);var c=[a,t,n?0:i,a.width/s,a.height/s,u,null,"SLOW"];if(this.addImage.apply(this,c),(n+=a.height)>=e.height)break;this.addPage()}r(d,n,null,c)}.bind(this);if("CANVAS"===e.nodeName){var h=new Image;h.onload=p,h.src=e.toDataURL("image/png"),e=h}else p()}else{var f=Math.random().toString(35),m=[e,t,i,d,c,u,f,"SLOW"];this.addImage.apply(this,m),r(d,c,f,m)}}.bind(this),"undefined"!=typeof html2canvas&&!n.rstz)return html2canvas(e,n);if("undefined"!=typeof rasterizeHTML){var c="drawDocument";return"string"==typeof e&&(c=/^http/.test(e)?"drawURL":"drawHTML"),n.width=n.width||o*s,rasterizeHTML[c](e,void 0,n).then(function(e){n.onrendered(e.image)},function(e){r(null,e)})}return null}}(jsPDF.API),function(e){"use strict";var t=["jpeg","jpg","png"],i=function(e){var t=this.internal.newObject(),n=this.internal.write,r=this.internal.putStream;if(e.n=t,n("<>"),"trns"in e&&e.trns.constructor==Array){for(var a="",s=0,o=e.trns.length;s>"),r(e.data),n("endobj"),"smask"in e){var l="/Predictor "+e.p+" /Colors 1 /BitsPerComponent "+e.bpc+" /Columns "+e.w,c={w:e.w,h:e.h,cs:"DeviceGray",bpc:e.bpc,dp:l,data:e.smask};"f"in e&&(c.f=e.f),i.call(this,c)}e.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),n("<< /Length "+e.pal.length+">>"),r(this.arrayBufferToBinaryString(new Uint8Array(e.pal))),n("endobj"))},n=function(){var e=this.internal.collections.addImage_images;for(var t in e)i.call(this,e[t])},r=function(){var e,t=this.internal.collections.addImage_images,i=this.internal.write;for(var n in t)i("/I"+(e=t[n]).i,e.n,"0","R")},a=function(e){return"object"==typeof e&&1===e.nodeType},s=function(e,t){var i;if(t)for(var n in t)if(e===t[n].alias){i=t[n];break}return i};e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"},e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"},e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},e.sHashCode=function(e){return Array.prototype.reduce&&e.split("").reduce(function(e,t){return(e=(e<<5)-e+t.charCodeAt(0))&e},0)},e.isString=function(e){return"string"==typeof e},e.extractInfoFromBase64DataURI=function(e){return/^data:([\w]+?\/([\w]+?));base64,(.+?)$/g.exec(e)},e.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array},e.isArrayBuffer=function(e){return!!this.supportsArrayBuffer()&&e instanceof ArrayBuffer},e.isArrayBufferView=function(e){return!!this.supportsArrayBuffer()&&("undefined"!=typeof Uint32Array&&(e instanceof Int8Array||e instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array))},e.binaryStringToUint8Array=function(e){for(var t=e.length,i=new Uint8Array(t),n=0;n>18]+n[(258048&t)>>12]+n[(4032&t)>>6]+n[63&t];return 1==s?i+=n[(252&(t=r[o]))>>2]+n[(3&t)<<4]+"==":2==s&&(i+=n[(64512&(t=r[o]<<8|r[o+1]))>>10]+n[(1008&t)>>4]+n[(15&t)<<2]+"="),i},e.createImageInfo=function(e,t,i,n,r,a,s,o,l,c,d,u,p){var h={alias:o,w:t,h:i,cs:n,bpc:r,i:s,data:e};return a&&(h.f=a),l&&(h.dp=l),c&&(h.trns=c),d&&(h.pal=d),u&&(h.smask=u),p&&(h.p=p),h},e.addImage=function(i,o,l,c,d,u,p,h,f){if("string"!=typeof o){var m=u;u=d,d=c,c=l,l=o,o=m}if("object"==typeof i&&!a(i)&&"imageData"in i){var g=i;i=g.imageData,o=g.format||o,l=g.x||l||0,c=g.y||c||0,d=g.w||d,u=g.h||u,p=g.alias||p,h=g.compression||h,f=g.rotation||g.angle||f}if(isNaN(l)||isNaN(c))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var v,b,y,w,_,E=function(){var e=this.internal.collections.addImage_images;return e||(this.internal.collections.addImage_images=e={},this.internal.events.subscribe("putResources",n),this.internal.events.subscribe("putXobjectDict",r)),e}.call(this);if(!(v=s(i,E))&&(a(i)&&(i=function(e,t,i){if("IMG"===e.nodeName&&e.hasAttribute("src")){var n=""+e.getAttribute("src");if(!i&&0===n.indexOf("data:image/"))return n;!t&&/\.png(?:[?#].*)?$/i.test(n)&&(t="png")}if("CANVAS"===e.nodeName)var r=e;else{(r=document.createElement("canvas")).width=e.clientWidth||e.width,r.height=e.clientHeight||e.height;var a=r.getContext("2d");if(!a)throw"addImage requires canvas to be supported by browser.";if(i){var s,o,l,c,d,u,p,h,f=Math.PI/180;"object"==typeof i&&(s=i.x,o=i.y,l=i.bg,i=i.angle),h=i*f,c=Math.abs(Math.cos(h)),d=Math.abs(Math.sin(h)),u=r.width,p=r.height,r.width=p*d+u*c,r.height=p*c+u*d,isNaN(s)&&(s=r.width/2),isNaN(o)&&(o=r.height/2),a.clearRect(0,0,r.width,r.height),a.fillStyle=l||"white",a.fillRect(0,0,r.width,r.height),a.save(),a.translate(s,o),a.rotate(h),a.drawImage(e,-u/2,-p/2),a.rotate(-h),a.translate(-s,-o),a.restore()}else a.drawImage(e,0,0,r.width,r.height)}return r.toDataURL("png"==(""+t).toLowerCase()?"image/png":"image/jpeg")}(i,o,f)),(void 0===(_=p)||null===_)&&(p="string"==typeof(w=i)&&e.sHashCode(w)),!(v=s(p,E)))){if(this.isString(i)){var S=this.extractInfoFromBase64DataURI(i);S?(o=S[2],i=atob(S[3])):137===i.charCodeAt(0)&&80===i.charCodeAt(1)&&78===i.charCodeAt(2)&&71===i.charCodeAt(3)&&(o="png")}if(o=(o||"JPEG").toLowerCase(),y=o,-1===t.indexOf(y))throw new Error("addImage currently only supports formats "+t+", not '"+o+"'");if(function(t){return"function"!=typeof e["process"+t.toUpperCase()]}(o))throw new Error("please ensure that the plugin for '"+o+"' support is added");if(this.supportsArrayBuffer()&&(i instanceof Uint8Array||(b=i,i=this.binaryStringToUint8Array(i))),!(v=this["process"+o.toUpperCase()](i,function(e){var t=0;return e&&(t=Object.keys?Object.keys(e).length:function(e){var t=0;for(var i in e)e.hasOwnProperty(i)&&t++;return t}(e)),t}(E),p,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in e.image_compression?t:e.image_compression.NONE}(h),b)))throw new Error("An unkwown error occurred whilst processing the image")}return function(e,t,i,n,r,a,s){var o=function(e,t,i){return e||t||(e=-96,t=-96),e<0&&(e=-1*i.w*72/e/this.internal.scaleFactor),t<0&&(t=-1*i.h*72/t/this.internal.scaleFactor),0===e&&(e=t*i.w/i.h),0===t&&(t=e*i.h/i.w),[e,t]}.call(this,i,n,r),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;i=o[0],n=o[1],s[a]=r,this.internal.write("q",l(i),"0 0",l(n),l(e),c(t+n),"cm /I"+r.i,"Do Q")}.call(this,l,c,d,u,v,v.i,E),this};var o=function(e,t){return e.subarray(t,t+5)};e.processJPEG=function(e,t,i,n,r){var a,s=this.color_spaces.DEVICE_RGB,l=this.decode.DCT_DECODE;return this.isString(e)?(a=function(e){var t;if(255===!e.charCodeAt(0)||216===!e.charCodeAt(1)||255===!e.charCodeAt(2)||224===!e.charCodeAt(3)||!e.charCodeAt(6)==="J".charCodeAt(0)||!e.charCodeAt(7)==="F".charCodeAt(0)||!e.charCodeAt(8)==="I".charCodeAt(0)||!e.charCodeAt(9)==="F".charCodeAt(0)||0===!e.charCodeAt(10))throw new Error("getJpegSize requires a binary string jpeg file");for(var i=256*e.charCodeAt(4)+e.charCodeAt(5),n=4,r=e.length;n7)return{width:((t=o(e,r+5))[2]<<8)+t[3],height:(t[0]<<8)+t[1],numcomponents:t[4]};r+=2}throw new Error("getJpegSizeFromBytes could not find the size of the image")}(e),e=r||this.arrayBufferToBinaryString(e),this.createImageInfo(e,a.width,a.height,1==a.numcomponents?this.color_spaces.DEVICE_GRAY:s,8,l,t,i)):null)},e.processJPG=function(){return this.processJPEG.apply(this,arguments)}}(jsPDF.API),$(function(){let e=function(){let e=$(".jhw-header .btn.btn-orange-topnav").clone()[0];$(".content-sup-nav .dropdown").children().remove(),$(".content-sup-nav .dropdown").addClass("jhw-header w-auto"),$(e).addClass("btn-blue-topnav d-flex"),$(".icons-buttons-sup .dropdown.jhw-header").append(e)},t=function(){let e=$(".jhw-header .btn.btn-orange-topnav").clone()[0],t=$(".nav-accesos-mob .row").children()[1];$(e).removeClass("d-flex"),$(e).addClass("btn-blue-topnav nav-link link-acceso border-right gtm_accesos_directos_menu_mobile btn--miEntel border-0"),$(t).addClass("jhw-header"),$(t).children().replaceWith(e)},i=function(){let e=$(".header-search-block").clone()[0];$(e).find("input[type=text]").attr("placeholder","Buscar"),$($(e).find(".form-control.jq-searchInput")[0]).addClass("input-search"),$(e).find(".icon-close-circle.jq-clear").remove(),$("#Buscador").replaceWith(e)};waitForElm("#header-widget").then(n=>{i(),e(),t(),waitForElm("#productDetail .cbar_banner").then(e=>{$("#productDetail .cbar_banner").css("z-index","-1")})}),$(document).on("click","#header-widget .gtm_buscador",function(){$("#header-widget").addClass("position-static"),$("#header-widget #searchInputBox").val(""),$("#header-widget .search-results").removeClass("d-none").addClass("d-block")}),$(document).on("click","#header-widget .btn-close, #header-widget .offcanvas-backdrop",function(){$("#header-widget").removeClass("position-static"),$("#header-widget .search-results").removeClass("d-block").addClass("d-none")}),$("#header-widget").on("keydown",function(e){"Escape"==e.key&&($("#header-widget").removeClass("position-static"),$("#header-widget .search-results").removeClass("d-block").addClass("d-none"))}),$(document).on("mouseover","#header-widget .dropdown.jhw-header",function(){$("#overlay").removeClass()}),$('[data-toggle="tooltip"],.btn-tooltip').tooltip(),$("body").on("touchstart",function(e){"tooltip"!==$(e.target).data("toggle")&&$(e.target).closest('[data-toggle="tooltip"]').length<=0?$('[data-toggle="tooltip"]').tooltip("hide"):$(e.target).tooltip("show")}),$(".carousel").each(function(){$(this).swiperight(function(){$(this).carousel("prev")}),$(this).swipeleft(function(){$(this).carousel("next")})}),$(".jq-img-carousel").slick({slidesToShow:3,slidesToScroll:3,infinite:!1,responsive:[{breakpoint:768,settings:{infinite:!1,arrows:!1,infinite:!0,centerMode:!0,centerPadding:"40px",slidesToShow:1,slidesToScroll:1,dots:!0}}]}),$(".jq-recommend-carousel").slick({slidesToShow:4,slidesToScroll:4,infinite:!1,arrows:!1,responsive:[{breakpoint:960,settings:{arrows:!1,infinite:!1,slidesToShow:2,slidesToScroll:2,dots:!0}},{breakpoint:768,settings:{arrows:!1,infinite:!1,centerMode:!0,slidesToShow:1,slidesToScroll:1,dots:!0}}]}),$('.jq-tab-collapse a[data-toggle="tab"]').on("shown.bs.tab",function(e){var t=$(e.target).closest(".jq-tab-collapse");t.find(".jq-tab-collapse-title a").text($(e.target).text()),t.find(".jq-tab-collapse-con").collapse("hide")}),$(".account-msg.logged").clickSpaceHide(function(){$(".logged-collapse").collapse("hide")});var n=$(".modal-login"),r=$(".modal-change-password");$(document).on("click",".login-link",function(){n.addClass("d-none"),r.removeClass("d-none")}),$(document).on("click",".back-login-link",function(){r.addClass("d-none"),n.removeClass("d-none")}),$("#modalLogin").on("shown.bs.modal",function(){n.removeClass("d-none"),r.addClass("d-none"),$(".modal-backdrop").addClass("modal-mask")})}),$(function(){var e=$("#title_main,.page_title");e.length&&(e.clone().removeClass("d-none").insertBefore($(".jhw-main-con>section")),e.remove())}),$(function(){var e=$("#planlanding-tabs-main,.bcc-tabs");e.length&&(e.clone().removeClass("d-none").insertAfter($("#Debes-saber")),e.remove())}),$(function(){var e=$("#planlanding-banner");e.length&&(e.clone().removeClass("d-none").insertAfter($("#plan-banner")),e.remove())}),$(function(){var e=$("#planlanding-center-banner");e.length&&(e.clone().removeClass("d-none").insertAfter($("#planlanding-mid-banner")),e.remove())}),$(function(){var e=$("#planlanding-offer-section");e.length&&(e.clone().removeClass("d-none").insertAfter($("#planlanding-plan-offercon")),e.remove())}),$(function(){$(document).on("click",".planc2c-promotion",function(e){e.preventDefault(),plansLandingGARDeventGTM();var t=$(this).data("id"),i=$(this).attr("href"),n=$("#storeHostUrl").html(),r=$(this).data("2x");if(t){var a=r?"multi_"+t:t;localStorage.setItem("pp.cache.ppPlanID",a),window.location.href=n+i}else window.location.href=n+i})}),$(function(){(function(){$(".jq-scrollBar").each(function(){$(this).mCustomScrollbar()}),$(".jq-modalScroll").on("shown.bs.modal",function(){$(this).find(".jq-scrollBar").each(function(){$(this).mCustomScrollbar("update")})})})()}),function(e,t,i,n){var r=function(e,t){this.$element=i(e),this.cb=t.cb,this._init()};r.prototype={constructor:constructor,_init:function(){var n=this;i(t).on("click",function(t){var i=t||e,r=i.target||i.srcElement;n.isParent(r,n.$element[0])||(n.cb?n.cb(n.$element):n.$element.hide())})},isParent:function(e,t){for(;void 0!=e&&null!=e&&"BODY"!=e.tagName.toUpperCase();){if(e==t)return!0;e=e.parentNode}return!1}},i.fn.clickSpaceHide=function(e){return this.each(function(){var t=i(this).data("clickSpaceHide");"function"==typeof e&&(e={cb:e}),t?t.cb=e.cb:(t=new r(this,e),i(this).data("clickSpaceHide",t))})},i.fn.clickSpaceHide.default={cb:function(){}}}(window,document,jQuery),$(".jq-dropdown-select li").click(function(){var e=$(this),t=e.text();return e.parents(".jq-dropdown-collapse").siblings(".jq-data").html(t).siblings(".jq-dropdown-collapse").collapse("hide"),!0}),$(".jq-dropdown-select").clickSpaceHide(function(){return $(".jq-dropdown-collapse").collapse("hide"),!0}),$(function(){$(".fixed-radio-panel").on("shown.bs.modal",function(){$("#pop-consumption-detail").modal("hide")}).on("hidden.bs.modal",function(){$("#pop-consumption-detail").modal("show")}),$(".datetimepicker-static").datetimepicker({inline:!0,sideBySide:!0,format:"DD MMMM YYYY",locale:"en"});var e=$(".datetimepicker-static").data("DateTimePicker");if(e){var t=e.getMoment().format("DD MMMM YYYY");$(".datetimepicker-static").siblings("div").find("input").val(t)}$(".popDatetimePicker2").on("click",function(){var e=$(this).siblings(".alter-date");e&&e.show()}),$(document).on("click",function(e){var t=$(".alter-date"),i=(e=e||window.event).target||e.srcElement;$(i).hasClass("alter-date")||$(i).parents(".alter-date").length>0||$(i).hasClass("popDatetimePicker2")||$(i).parents(".popDatetimePicker2").length>0||t.hide()}),$(".datetimepicker-static").on("dp.change",function(e,t){$(this).siblings("div").find("input").val(e.date.format("DD MMMM YYYY"))})}),$(document).ready(function(){$(document).on("blur","input[name=rut], input[name=rutt], input[name*=Rut], input[name*=otherPersonRut]",function(e){e.preventDefault(),"readonly"!==$(this).attr("readonly")&&$(this).val(formatRut($(this).val()))}),$(document).on("focus input","input[name=rut], input[name=rutt], input[name*=Rut], input[name*=otherPersonRut]",function(e){e.preventDefault(),"readonly"!==$(this).attr("readonly")&&$(this).val(formatRutRemoveSlashDot($(this).val()))}),$("input[name=rut],input[name=rutt] input[name*=Rut]").each(function(){$(this).val(formatRut($(this).val()))}),$(document).on("click",".check-compare-simulate",simulateCompareClick)}),$("#siteAppConfig").length?window.siteAppConf=$.parseJSON($("#siteAppConfig").text())&&$.parseJSON($("#siteAppConfig").text()).response?$.parseJSON($("#siteAppConfig").text()).response:$.parseJSON($("#siteAppConfig").text()):window.siteAppConf={},populateDataLayerValue(),$(document).ready(function(){$(document).on("blur","input[name=rut], input[name=rutt], input[name*=Rut], input[name*=otherPersonRut]",function(e){e.preventDefault(),"readonly"!==$(this).attr("readonly")&&$(this).val(formatRut($(this).val()))}),$(document).on("focus input","input[name=rut], input[name=rutt], input[name*=Rut], input[name*=otherPersonRut]",function(e){e.preventDefault(),"readonly"!==$(this).attr("readonly")&&$(this).val(formatRutRemoveSlashDot($(this).val()))}),$("input[name=rut],input[name=rutt] input[name*=Rut]").each(function(){$(this).val(formatRut($(this).val()))}),$(document).on("click",".check-compare-simulate",simulateCompareClick)});var formatRutAddSlashDot=function e(t,i,n){if(t.length=7&&n.length<=12&&(e=formatRutAddSlashDot(n,1,""))}}return e};function globalFormatPrice(e){return null==e||void 0==e?siteAppConf.currencySymbol:siteAppConf.currencySymbol+globalFormatNumber(siteAppConf.currencyFormatPattern,e)}function globalCurrencySymbol(){return siteAppConf.currencySymbol}function globalParsePrice(e){if(null==e||void 0==e)return e;e=e.trim();var t=siteAppConf.currencyFormatPattern.match(/.*([^0#])[0#]*/)[1],i=(e=(e=e.replace(siteAppConf.currencySymbol,"")).replace(new RegExp("[^\\d\\"+t+"]+","g"),"")).split("");"EntelPE"===siteAppConf.siteName&&-1!==e.indexOf(".00")?i.splice(e.indexOf(".00"),3):"EntelPE"===siteAppConf.siteName&&-1!==e.indexOf(".0")&&i.splice(e.indexOf(".0")-1,3);var n=i.filter(function(e){return!isNaN(e)}).join("");return parseFloat(n)}function isCorrectDate(e,t,i){if(isNaN(e)||isNaN(t)||isNaN(i))return!1;if(t>12||t<1)return!1;if(i<1||i>31)return!1;if((4==t||6==t||9==t||11==t)&&i>30)return!1;if(2==t){if(i>29)return!1;if((e%100==0&&e%400!=0||e%4!=0)&&i>28)return!1}return!0}function globalFormatNumber(e,t){if(!e||isNaN(+t))return t;var i=(t="-"==e.charAt(0)?-t:+t)<0?t=-t:0,n=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",r=r&&r[1]&&r[0]||",",a=(e=e.split(n),t=+(t=t.toFixed(e[1]&&e[1].length))+"",e[1]&&e[1].lastIndexOf("0")),s=t.split(".");if((!s[1]||s[1]&&s[1].length<=a)&&(t=(+t).toFixed(a+1)),a=e[0].split(r),e[0]=a.join(""),(o=e[0]&&e[0].indexOf("0"))>-1)for(;s[0].length8)&&(e=e.substring(0,e.length-1)),"0"==(t=e.substr(0,1))&&(e="");for(var i=String(e).split("").reverse(),n=0;n1?getV(e[t.shift()],t,i):e[t[0]])),void 0===n?i:n}function logEvents(e){var t=e.shift();$.ajax({url:"/REST/log/access",type:"POST",dataType:"json",contentType:"application/json;charset=UTF-8",data:JSON.stringify(t),async:!1,success:function(t,i,n){e.length>0&&logEvents(e)},error:function(i,n,r){console.error("Error while logging event! retrying..."),e.unshift(t),logEvents(e)}})}function retriveEncryptLegacyURL(e){$.ajax({url:"/REST/login/retriveLegacyURL",type:"POST",dataType:"json",contentType:"application/json;charset=UTF-8",data:JSON.stringify(e),async:!1,success:function(e){window.location.href=e.response.legacyURL},error:function(t){console.error("Error while retriving legacy URL , try again"),retriveEncryptLegacyURL(e)}})}function entel_recorded_event(){$(".jq-campaign a").unbind("click").click(function(e){var t=$(e.currentTarget);if(-1===t.attr("href").indexOf("javascript")){var i,n;i=t.closest(".jq-campaign").parent().hasClass("jq-rtd-compaign")?"rtd":"marketing",$("#renderData").size()>0&&$.trim($("#renderData").text()).length>0&&(n=$.parseJSON($("#renderData").text()).renderSkusBean.skus[0].skuId);var r,a=t.closest(".jq-campaign").data("product-offering-id")||(n&&""===n?void 0:n),s={campaignID:t.closest(".jq-campaign").data("campaign-id"),productOfferingID:a,targetURL:t.attr("href")};if((r=(r=JSON.parse(localStorage.getItem("ENTEL_RECORDED_EVENTS")))||[]).push(s),localStorage.setItem("ENTEL_RECORDED_EVENTS",JSON.stringify(r)),localStorage.setItem("poID",a),r=JSON.parse(localStorage.getItem("ENTEL_RECORDED_EVENTS"))){var o=r.map(function(e){if(e.targetURL&&(e.targetURL===window.location.href||e.targetURL===window.location.pathname)&&!e.productOfferingID){var t=$.parseJSON($("#renderData").text()).renderSkusBean.skus[0].skuId;e.productOfferingID=t&&""===t?void 0:t}var n={campaignID:e.campaignID};return n.campaignType=i,e.productOfferingID&&(n.productOfferingID=e.productOfferingID),n});localStorage.removeItem("ENTEL_RECORDED_EVENTS"),logEvents(o)}}}),$(".dashboard-addUnlimited .mensualesRec").length>1&&$(".dashboard-addUnlimited .mensualesRec").parent().slick({slidesToShow:1,slidesToScroll:1,arrows:!0,dots:!1,infinite:!0,prevArrow:'\n \n Previous\n ,',nextArrow:'\n \n Next\n '})}function setSessionCookie(e,t,i){if(-[1]){if(t){n="; expires=Session",r="";null!=i&&(r="; path="+i),document.cookie=e+"="+escape(t)+n+r}}else if(t){var n="; expires=At the end of the Session",r="";null!=i&&(r="; path="+i),document.cookie=e+"="+escape(t)+n+r}}function getCookie(e){var t,i=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return(t=document.cookie.match(i))?unescape(t[2]):null}function Base64(){_keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",this.encode=function(e){var t,i,n,r,a,s,o,l="",c=0;for(e=_utf8_encode(e);c>2,a=(3&t)<<4|(i=e.charCodeAt(c++))>>4,s=(15&i)<<2|(n=e.charCodeAt(c++))>>6,o=63&n,isNaN(i)?s=o=64:isNaN(n)&&(o=64),l=l+_keyStr.charAt(r)+_keyStr.charAt(a)+_keyStr.charAt(s)+_keyStr.charAt(o);return l},this.decode=function(e){var t,i,n,r,a,s,o="",l=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");l>4,i=(15&r)<<4|(a=_keyStr.indexOf(e.charAt(l++)))>>2,n=(3&a)<<6|(s=_keyStr.indexOf(e.charAt(l++))),o+=String.fromCharCode(t),64!=a&&(o+=String.fromCharCode(i)),64!=s&&(o+=String.fromCharCode(n));return o=_utf8_decode(o)},_utf8_encode=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",i=0;i127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t},_utf8_decode=function(e){for(var t="",i=0,n=c1=c2=0;i191&&n<224?(c2=e.charCodeAt(i+1),t+=String.fromCharCode((31&n)<<6|63&c2),i+=2):(c2=e.charCodeAt(i+1),c3=e.charCodeAt(i+2),t+=String.fromCharCode((15&n)<<12|(63&c2)<<6|63&c3),i+=3);return t}}function loadCompaigns(){if($(".jq-marketing-compaign").length>0){var e=$(".jq-marketing-compaign").data("base-url"),t=getCookie("compaignIds");if(e&&!$.isEmptyObject(t))ajaxCompaigns(".jq-marketing-compaign",e,{campaignIds:t})}if($(".jq-rtd-compaign").length>0){e=$(".jq-rtd-compaign").data("base-url");var i=$("#compain_pageName").text();e&&i&&$.ajax({url:"/REST/profile/current/recommendation/"+i,type:"GET",data:{pageName:i},success:function(t){t&&t.success&&t.response.items.length>0&&t.response.items[0].campaignId&&t.response.items[0].ProductOffering&&ajaxCompaigns(".jq-rtd-compaign",e,{campaignIds:t.response.items[0].campaignId,po:t.response.items[0].ProductOffering})}})}}function ajaxCompaigns(e,t,i){$.ajax({url:t,type:"GET",data:i,success:function(t){t&&t.trim()&&t.trim().replace("\x3c!--FTCACHE-0--\x3e","")&&($("#slider-").length>0?$("#slider-").replaceWith(t.trim()):$(e).replaceWith(t.trim()),entel_recorded_event())}})}function afterLogin(){window.isLoadCompaign||loadCompaigns()}function populateDataLayerValue(){if(siteAppConf&&siteAppConf.gtmInfo&&siteAppConf.gtmInfo.value){var e=siteAppConf.gtmInfo.value;$.extend(e.globalInfo,{pageName:window.location.pathname}),e=$("#checkoutProfileInfo").text()&&$.parseJSON($("#checkoutProfileInfo").text()).success?$.extend(e,$.parseJSON($("#checkoutProfileInfo").text()).response):e,(e=$("#checkoutOrder").data("text")&&$("#checkoutOrder").data("text").success?$.extend(e,$("#checkoutOrder").data("text").response):e).dataSource=!0,dataLayer.unshift(e)}}function getValuesFromDataLayer(){if(!$.isEmptyObject(dataLayer))for(var e in dataLayer){var t=dataLayer[e];if(t&&t.dataSource)return t}}$(document).on("click",".clickToChat",function(){var e=$(".jq-onlineChat").find("iframe");0===$.trim(e.prop("src")).length&&e.prop("src",e.data("src"))}),$(document).on("click",".jq-clickToCall",function(e){if(e.preventDefault(),window.innerWidth<=767){var t=$(".jq-clickToCall").find("p.text");t.is(":visible")?($("#click-call").modal("show"),t.hide()):t.css("display","inline-block")}else $("#click-call").modal("show")}),$(document).on("touchstart",".nav-tabs [data-toggle=tab]",function(){var e=$(this).data("target");$(e).tab("show"),$(this).trigger("click")}),$(function(){$(document).on("show.bs.collapse","#coll-userMenu",function(){$(".user").parent(".second").addClass("active")}).on("hide.bs.collapse","#coll-userMenu",function(){$(".user").parent(".second").removeClass("active")})}),$(document).ready(function(){entel_recorded_event();var e=$("#compain_pageName").text();e&&("dashboard"===e&&($(".jq-marketing-compaign").parent().append("
    "),$("#compaign-row").append($(".jq-marketing-compaign")),$("#compaign-row").append($(".jq-rtd-compaign"))))}),$(document).ready(function(){if(!window.location.pathname.startsWith("/marketing")&&"/"!=window.location.pathname){var e=getCookie("profileInfo");if(e)e=(new Base64).decode(getCookie("profileInfo")),4===getV(JSON.parse(e),"securityStatus")&&sessionStorage.setItem("SI_EXP",(new Date).getTime()+9e5)}}),window.isLoadCompaign=!1;var GrayScaleUtil={makeImgGrayScale:function(e){if(siteAppConf.enableGrayscale&&($.browser.msie||$.browser.mozilla||$.browser.msedge)){var t=this.getGrayscaleVal();if(($.browser.msie||$.browser.msedge)&&(e.hasClass("bag-icon")||e.hasClass("bottom-icon")||e.hasClass("i-ticket-phone")||e.hasClass("loading-gif"))){var i=this;e.each(function(){var e=$(this);if(!t||e.data("grayUrl")||e.data("baseUrl"))t&&e.data("grayUrl")?e.prop("src",e.data("grayUrl")):!t&&e.data("baseUrl")&&e.prop("src",e.data("baseUrl"));else{e.data("baseUrl",e.prop("src"));var n=new Image;n.src=e.prop("src"),n.id="grayscal-img2",$(n).load(function(){var t=i.gray(n);$("#grayscal-img2").detach(),e.prop("src",t),e.data("grayUrl",t)}),$("body").append(n)}})}else t?(e.each(function(){$(this).is("image")||$(this).gray(),$(this).addClass("grayscale")}),$(".grayscale").removeClass("grayscale-off")):$(".grayscale").addClass("grayscale-off")}},makeBGImgGrayScale:function(e){var t=this.getGrayscaleVal();if(siteAppConf.enableGrayscale&&$.browser.msie||$.browser.msedge){var i=this;e.each(function(){var e=$(this);if(!t||e.data("grayUrl")||e.data("baseUrl"))t&&e.data("grayUrl")?e.css("background-image","url("+e.data("grayUrl")+")"):!t&&e.data("baseUrl")&&e.css("background-image","url("+e.data("baseUrl")+")");else{var n=new Image;n.src=e.css("background-image").replace(/url\([\"]|[\"]\)$/gi,""),n.id="grayscal-img",e.data("baseUrl",n.src),$(n).load(function(){var t=i.gray(n);$(this).detach(),e.css("background-image","url("+t+")"),e.data("grayUrl",t)}),$("body").append(n)}})}else siteAppConf.enableGrayscale&&$.browser.mozilla&&t&&e.each(function(){$(this).addClass("grayscale")})},getGrayscaleVal:function(){var e=!1,t=window.localStorage.getItem("grayscale");return t&&"1"===t&&(e=!0),e},gray:function(e){var t=document.createElement("canvas"),i=t.getContext("2d"),n=e.width,r=e.height;t.width=n,t.height=r,i.drawImage(e,0,0);for(var a=i.getImageData(0,0,n,r),s=0;ss.max-s.step||(r(),s.current+=s.step,n(),a.setItem("zoom",JSON.stringify(s)))}).on("click",".jq-zoomOut",function(e){e.preventDefault(),s.current-s.step0)return window.location.href=$(".jq-typeAhead").find("li").filter(".focus").find("a").attr("href"),!1;var t=$(e).find("input[name='Ntt']").val();return $.trim(t).length>0||(alert("Por favor, introduzca una palabra clave"),!1)}$(document).ready(function(){$(".jhw-header .navbar-toggle").click(function(){isShow?($(this).addClass("nav-clicked"),isShow=!1):($(this).removeClass("nav-clicked"),isShow=!0)}),$(".n-jhw-header .navbar-toggle").click(function(){isShow?($(this).addClass("nav-clicked"),isShow=!1):($(this).removeClass("nav-clicked"),isShow=!0)}),$(".header-user .navbar-toggle").click(function(){$(this).hasClass("nav-clicked")?($(".mask").show(),$(".mask-nav").show()):($(".mask").hide(),$(".mask-nav").hide(),$(this).removeClass("nav-clicked"))}),$(".mask").click(function(){$(this).hide(),$(".mask-nav").hide(),$(".header-user .navbar-toggle").removeClass("nav-clicked")}),$(".n-header-user .navbar-toggle").click(function(){$(this).hasClass("nav-clicked")?($(".mask").show(),$(".mask-nav").show()):($(".mask").hide(),$(".mask-nav").hide(),$(this).removeClass("nav-clicked"))}),$(".mask").click(function(){$(this).hide(),$(".mask-nav").hide(),$(".n-header-user .navbar-toggle").removeClass("nav-clicked")}),$(".cont-list p").on("click",function(){var e=$(this);e.parent().siblings().children("ul").slideUp(),e.siblings(".cont").slideToggle(),e.hasClass("current")?e.removeClass("current"):e.addClass("current").parent().siblings().children().removeClass("current")})}),$(function(){function e({product:e="",brand:t=""}){return""===e&&""===t?"no aplica":""===e&&""!==t?t.trim().toLocaleLowerCase():e.trim().toLocaleLowerCase()}function t(t){const i=t.target.textContent.trim().split(">"),[n,r]=i;dataLayer.push({event:"GARDevent",eventCategory:"header - buscador",eventAction:"go to",nivel_1:"mi portal",eventLabel:e({product:r,brand:n}),search_terms:e({product:r,brand:n})})}({init:function(){this.bindSearchHeaderEvent()},bindSearchHeaderEvent:function(){var e,i="";$(document).on("click","#header-widget .gtm_buscador",function(){i=""}),$("body").on("keyup.typeAhead",".header-search-block .jq-searchInput",function(n){if(n.preventDefault(),38===n.keyCode||40===n.keyCode){var r=$(".jq-typeAhead").find("li"),a=r.index(r.filter(".focus"));r.filter(".focus").removeClass("focus"),38===n.keyCode&&a>0&&a--,40===n.keyCode&&a=2&&e!=i?(i=e,$.ajax({url:"/personas/typeAhead?Ntt="+e+"*",dataType:"html",type:"get",contentType:"text/html",success:function(e){$(".header-search-block .search-results").html(e),$(".header-search-block .search-results a").on("click",t)},error:function(){}})):$.trim(e).length<=1&&$(".header-search-block .search-results").html(null)},200)}else if(13==n.keyCode&&$(".jq-typeAhead").find("li").filter(".focus").length>0)return window.location.href=$(".jq-typeAhead").find("li").filter(".focus").find("a").attr("href"),!1}),$("body").on("click",".jq-search",function(e){e.preventDefault(),window.entel=window.entel?window.entel:{},window.entel.searchBoxIsVisible=!0,$(".jq-searchBox").show(),$(".jq-searchHide").hide(),$(".jq-searchHide").css("display, none !imprtant"),$("header .header").addClass("no-subNav"),$(".jq-searchBox .form-control").focus(),$(this).closest(".header").removeClass("fixed-subNav")}),$("body").on("click",".header-search-block .close",function(e){e.preventDefault(),window.entel=window.entel?window.entel:{},window.entel.searchBoxIsVisible=!1,$(".jq-searchBox").hide(),$(".jq-searchHide").show(),$("header .header").removeClass("no-subNav")}),$("body").on("keyup",".jq-searchInput",function(){var e=$(this).val();$.trim(e).length>0?($(".block-flex .jq-clear").addClass("show"),$(".mobile-search-con .jq-clear").addClass("show"),$.trim(e).length>=3?$(this).closest(".jq-searchBox").find(".jq-typeAhead").slideDown():$(this).closest(".jq-searchBox").find(".jq-typeAhead").slideUp()):($(".block-flex .jq-clear").removeClass("show"),$(".mobile-search-con .jq-clear").removeClass("show"),$(this).closest(".jq-searchBox").find(".jq-typeAhead").slideUp())}),$("body").on("click",".header-search-block a.jq-clear",function(e){e.preventDefault(),$(".header-search-block .jq-searchInput").val(""),$(".header-search-block .search-results").html(null),$(".header-search-block .jq-searchInput").removeClass("active")})}}).init()}),$(function(){({init:function(){this.bindEvent(),this.bindSearchPLPEvent()},bindEvent:function(){var e,t="";$("body").on("keyup.typeAhead",".jq-searchBox .jq-searchInput",function(i){if(i.preventDefault(),38===i.keyCode||40===i.keyCode){var n=$(".jq-typeAhead").find("li"),r=n.index(n.filter(".focus"));n.filter(".focus").removeClass("focus"),38===i.keyCode&&r>0&&r--,40===i.keyCode&&r=2&&e!=t&&(t=e,$.ajax({url:actionServiceMap.PAGE_TYPEAHEAD+"?Ntt="+e+"*",dataType:"html",type:"get",contentType:"text/html",success:function(e){a.closest(".jq-searchBox").find(".mCSB_container").html(e),a.closest(".jq-searchBox").find(".jq-typeAhead").show()},error:function(){}}))},200)}else if(13==i.keyCode&&$(".jq-typeAhead").find("li").filter(".focus").length>0)return window.location.href=$(".jq-typeAhead").find("li").filter(".focus").find("a").attr("href"),!1}),$("body").on("click",".jq-search",function(e){e.preventDefault(),window.entel=window.entel?window.entel:{},window.entel.searchBoxIsVisible=!0,$(".jq-searchBox").show(),$(".jq-searchHide").hide(),$(".jq-searchHide").css("display, none !imprtant"),$("header .header").addClass("no-subNav"),$(".jq-searchBox .form-control").focus(),$(this).closest(".header").removeClass("fixed-subNav")}),$("body").on("click",".jq-closeSearch, .jq-searchBox .close",".search-block .close",function(e){e.preventDefault(),window.entel=window.entel?window.entel:{},window.entel.searchBoxIsVisible=!1,$(".jq-searchBox").hide(),$(".jq-searchHide").show(),$("header .header").removeClass("no-subNav")}),$("body").on("keyup",".jq-searchInput",function(){var e=$(this).val();$.trim(e).length>0?($(".jq-searchBox .jq-clear").addClass("show"),$.trim(e).length>=3?$(this).closest(".jq-searchBox").find(".jq-typeAhead").slideDown():$(this).closest(".jq-searchBox").find(".jq-typeAhead").slideUp()):($(".jq-searchBox .jq-clear").removeClass("show"),$(this).closest(".jq-searchBox").find(".jq-typeAhead").slideUp())}),$("body").on("click",".jq-searchBox .jq-clear",".search-block .jq-clear",function(e){e.preventDefault(),$(".jq-searchBox .jq-searchInput").val(""),$(".jq-searchBox .jq-clear").removeClass("show"),$(this).closest(".jq-searchBox").find(".jq-typeAhead").slideUp()})},bindSearchPLPEvent:function(){var e,t="";$("body").on("keyup.typeAhead",".search-block .jq-searchInput",function(i){if(i.preventDefault(),38===i.keyCode||40===i.keyCode){var n=$(".jq-typeAhead").find("li"),r=n.index(n.filter(".focus"));n.filter(".focus").removeClass("focus"),38===i.keyCode&&r>0&&r--,40===i.keyCode&&r=2&&e!=t?(t=e,$.ajax({url:"/personas/typeAhead?Ntt="+e+"*",dataType:"html",type:"get",contentType:"text/html",success:function(e){$(".search-block .search-results").html(e),document.querySelectorAll(".search-results ul li a").forEach(e=>{e.addEventListener("click",t=>{const i=getOriginGTM(),n=window.location.pathname.split("/"),r=n.includes("accesorios")?"tm-acc":"tm-equ",a=`0 - catalogo ${n.includes("accesorios")?"accesorios":"equipo"} - no cliente`,s=n.includes("accesorios")?"accesorios":"equipo";window.dataLayer.push({event:"GARDevent",eventCategory:"ecommerce - catalogo - buscador recomendados",eventAction:"interaction",eventLabel:e.innerText,origen:i,mercado:"pe",segmento:r,form_step_name:a,journey_name:s})})})},error:function(){}})):$.trim(e).length<=1&&$(".search-block .search-results").html(null)},200)}else if(13==i.keyCode&&$(".jq-typeAhead").find("li").filter(".focus").length>0)return window.location.href=$(".jq-typeAhead").find("li").filter(".focus").find("a").attr("href"),!1}),$("body").on("click",".jq-search",function(e){e.preventDefault(),window.entel=window.entel?window.entel:{},window.entel.searchBoxIsVisible=!0,$(".jq-searchBox").show(),$(".jq-searchHide").hide(),$(".jq-searchHide").css("display, none !imprtant"),$("header .header").addClass("no-subNav"),$(".jq-searchBox .form-control").focus(),$(this).closest(".header").removeClass("fixed-subNav")}),$("body").on("click",".search-block .close",function(e){e.preventDefault(),window.entel=window.entel?window.entel:{},window.entel.searchBoxIsVisible=!1,$(".jq-searchBox").hide(),$(".jq-searchHide").show(),$("header .header").removeClass("no-subNav")}),$("body").on("keyup",".jq-searchInput",function(){var e=$(this).val();$.trim(e).length>0?($(".jq-searchBox .jq-clear").addClass("show"),$.trim(e).length>=3?$(this).closest(".jq-searchBox").find(".jq-typeAhead").slideDown():$(this).closest(".jq-searchBox").find(".jq-typeAhead").slideUp()):($(".jq-searchBox .jq-clear").removeClass("show"),$(this).closest(".jq-searchBox").find(".jq-typeAhead").slideUp())}),$("body").on("click",".search-block a.jq-clear",function(e){e.preventDefault(),$(".search-block .jq-searchInput").val(""),$(".search-block .search-results").html(null),$(".search-block .jq-searchInput").removeClass("active")})}}).init()}),$(document).ready(function(){var e=$(".top-selected-item"),t=$(".mobile-btn"),i=$(".top-min-title");t.clone().removeClass("d-none").insertBefore(".block-flex-mobile > .btn-orange-topnav"),t.remove(),e.clone().removeClass("d-none").insertBefore(".top-nav-toggle > ul"),e.remove(),i.clone().removeClass("d-none").insertBefore(".main-nav-mobile > ul"),e.remove(),$(document).on("click",".top-nav-toggle",function(){$(this).find("a").toggleClass("show"),$(this).find("ul").toggle()}),$(document).mouseup(function(e){var t=$(".top-nav-toggle"),i=$(".mobile-search-con"),n=$(".header-search-block");t.is(e.target)||0!==t.has(e.target).length||(t.find("ul").hide(),t.find("a").removeClass("show")),i.is(e.target)||0!==i.has(e.target).length||(i.hide(),$(".mobile-search-overlay").hide()),n.is(e.target)||0!==n.has(e.target).length||n.find(".search-results").empty()}),$(document).on("click",".mobile-search",function(){$(".mobile-search-con, .mobile-search-overlay").animate({width:"toggle"})}),$(document).on("click",".main-nav-but",function(){$(document).find(".nav-child").removeClass("active-child"),$(this).find(".main-nav-span").toggleClass("is-active"),$(document).find(".main-nav-mobile").slideToggle(),$(document).find(".main-nav-but").toggleClass("line-shadow"),$(document).find(".main-nav-bar").toggleClass("line-shadow")}),$(document).on("click",".main-nav-mobile ul li",function(e){$(this).find("ul").hasClass("active-child")?($(".main-nav-mobile ul li").find("ul").removeClass("active-child"),$(".main-nav-mobile ul li").find(".nav-link").removeClass("active")):($(".main-nav-mobile ul li").find("ul").removeClass("active-child"),$(".main-nav-mobile ul li").find(".nav-link").removeClass("active"),$(this).find(".nav-link").toggleClass("active"),$(this).find("ul").toggleClass("active-child"))})}),$(function(){$("#jhw-acordeon .cont-listado").click(function(){var e=$(this);e.siblings().children("ul").slideUp(),e.children(".cont").slideToggle(),e.hasClass("current")?e.removeClass("current"):e.addClass("current").siblings().removeClass("current")})}),$(function(){var e=$(document).height()-$("main").height()-$("header").height()-$("footer").height();e>0?$(".mask-error-con").css("bottom",e+"px"):$(".mask-error-con").css("bottom","0")});var loginRedirtPost=function(e,t){var i=$('
    ');$.each(t,function(e){var n=$('');n.prop("name",e),n.val(t[e]),i.append(n)}),i.prop({action:e,method:"post"}),$("body").append(i),$(".jq-LoginRedirtPost").submit()};window.loadplan_proxy=function(e){$(function(){window.loadplan===loadplan_proxy||window.loadplan(e)})},window.loadplan=window.loadplan||loadplan_proxy;var campaign=store.get("pp.cache.SelectedCampaign");function alignetOpenModal(){AlignetVPOS2.openModal(siteAppConf.paymeUrlBase+"/")}function textSanitizer(e){return e?e.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""):"no aplica"}function priceSanitizer(e){return Math.ceil(parseFloat(e))||0}function plansLandingGARDeventGTM(){const e="undefined"!==localStorage.getItem("defaultGTMPlanBanner")?JSON.parse(localStorage.getItem("defaultGTMPlanBanner")):{},t=document.getElementsByClassName("cont-button planc2c-promotion").item(0)?textSanitizer(document.getElementsByClassName("cont-button planc2c-promotion").item(0).textContent):"no aplica",i=document.querySelector(".plan-title h3")?textSanitizer(document.querySelector(".plan-title h3").textContent):"todos los planes",n=getOriginGTM();dataLayer.push({event:"GARDevent",eventCategory:"planesv2 - botonloquiero - banner",eventAction:"go to",eventLabel:t,description:"contrata lineas adicionales con 50% dcto.",price:priceSanitizer(e.price),origen:n,page_owner:"publico",page_type:"catalogo",page_name:i,form_name:"catalogo planes",form_step_name:"0 - catalogo planes - no cliente",journey_name:"catalogo planes"})}function launchLoader(){$("body").append('
    \n
    \n
    \n
    \n \n
    \n
    \n
    ')}function closeLoader(){$("#loader.loader").remove()}if(campaign&&campaign.url&&location.href.indexOf(campaign.url)>=0&&_getProfileInfo().ppPhoneNumber===campaign.ppPhoneNumber?window.PPSelectedCampaign=campaign.id:store.remove("pp.cache.SelectedCampaign"),"serviceWorker"in navigator){const e=$("#staticHostUrl").html();window.addEventListener("load",()=>{navigator.serviceWorker.register(`${e}/entelpp/scripts/service-worker_icomm.js`).then(()=>{},e=>{console.log("SW fallo",e)})})}function waitForElm(e){return new Promise(t=>{if(document.querySelector(e))return t(document.querySelector(e));const i=new MutationObserver(n=>{document.querySelector(e)&&(t(document.querySelector(e)),i.disconnect())});i.observe(document.body,{childList:!0,subtree:!0})})}function getGtmInfo(){return new Promise((e,t)=>{const i=window.localStorage.getItem("pp.cache.ppGTMInfo");i?e(JSON.parse(i)):t("Need to load valid localStorage data before load google tag events.")})}function vodafoneService(e){const t=e.find(e=>"string"==typeof e.id);if(void 0===typeof t)throw new Error("[error] producto not found in the payload.");return fetch(`/restpp/equipments/ranges/${t.id}`).then(e=>{if(!e.ok)throw new Error(`Network response was not ok ${e.statusText}`);return e.json()}).then(t=>{let i={};for(const e of t.response.GroupBy){const t=Object.keys(e).find(e=>"string"==typeof e),{from:n,to:r}=e[t];i={from:n,to:r};break}const n=e.map(e=>({...e,planPriceRangeFrom:i.from,planPriceRangeTo:i.to}));return fetch("/restpp/order/add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})})}$(function(){const e=Array.from(document.querySelectorAll('a[href^="tel:"]')).filter(e=>"tel:undefined"!==e.getAttribute("href"));e.length&&e[0].addEventListener("click",e=>{getGtmInfo().then(t=>{const{segmento:i="tm-equ",origen:n="entel",mercado:r="pe",journey:a="equipment",currentPath:s="no page found",journeyName:o="renovacion"}=t,l=e.target.innerText?e.target.innerText.trim():"999 999 999",c={event:"GARDevent",eventCategory:`inbound web - ${"plans"===a?"movil":"ecommerce"}`,eventAction:"click to action",eventLabel:`llamanos al ${l}`,origen:n,segmento:i,mercado:r,page_owner:"publico",page_type:s,journey_name:o,journey_type:"solicitud"};window.dataLayer.push(c)}).catch(e=>{console.error(e)})})}),window.vodafoneService=vodafoneService;