Skip to content
Snippets Groups Projects
all.js 422 KiB
Newer Older
function copyCode(){$("#codesnippet").select();try{var t=document.execCommand("copy");t?($("#copyButton").removeClass("btn-default"),$("#copyButton").addClass("btn-success")):($("#copyButton").removeClass("btn-default"),$("#copyButton").addClass("btn-danger"))}catch(e){$("#copyButton").removeClass("btn-default"),$("#copyButton").addClass("btn-danger")}}function auto_grow(t){t.style.height="5px",t.style.height=t.scrollHeight+10+"px"}function encrypt(){if(!window.crypto||!window.crypto.getRandomValues)return isEnglish()?window.alert("Error: Your browser is not supported. Please install an up to date browser like Mozilla Firefox."):window.alert("Fehler: Ihr Browser wird nicht unterstützt. Bitte installieren Sie einen aktuellen Broweser wie z.B. Mozilla Firefox."),!1;var t=document.getElementById("message");if(t.value.indexOf("-----BEGIN PGP MESSAGE-----")===-1||t.value.indexOf("-----END PGP MESSAGE-----")===-1){var e=openpgp.key.readArmored(document.getElementById("pubkey").innerHTML).keys[0],r=t.value,n=openpgp.encryptMessage([e],r);return t.value=n,!0}}function isEnglish(){return window.location.href.indexOf("/en/")!=-1}function tabs(){$("#foki > li.tab-selector > a").each(function(){$(this).attr("href","#"+$(this).attr("aria-controls")),$(this).attr("role","tab"),$(this).attr("data-toggle","tab")}),$("#foki > li.tab-selector > a").off(),$("#foki > li.tab-selector > a").on("show.bs.tab",function(t){var e=$(this).attr("aria-controls"),r=$("#"+e+"TabSelector a").attr("data-href");"1"!=$("#"+e+"TabSelector").attr("data-loaded")?$.get(r,function(t){$("#"+e+"TabSelector").attr("data-loaded","1"),$("#"+e).html(t),$("input[name=focus]").val($("#foki li.active a").attr("aria-controls")),getDocumentReadyForUse(e)}):getDocumentReadyForUse(e)})}function getDocumentReadyForUse(t){clickLog(),popovers(),"bilder"===t&&imageLoader(),tabs(),theme(),fokiChanger(),pluginInfo(),productWidget()}function pluginInfo(){localStorage&&("off"==localStorage.getItem("pluginInfo")&&$("#searchplugin").css("display","none"),$("#searchplugin").on("close.bs.alert",function(){$.get("/pluginClose"),localStorage.setItem("pluginInfo","off")}),$("#searchplugin a.btn").click(function(){$.get("/pluginInstall")}))}function theme(){if(localStorage){var t=localStorage.getItem("theme");null!=t&&(3!=(t.match(/,/g)||[]).length?localStorage.removeItem("theme"):(t=t.split(","),$("#theme").attr("href","/css/theme.css.php?r="+t[0]+"&g="+t[1]+"&b="+t[2]+"&a="+t[3])))}}function clickLog(){$(".result a.title, .result div.link-link a").off(),$(".result a.title, .result div.link-link a").click(function(){$.get("/clickstats",{i:$("meta[name=p]").attr("content"),s:$(this).attr("data-hoster"),q:$("meta[name=q]").attr("content"),p:$(this).attr("data-count"),url:$(this).attr("href")})})}function popovers(){$("[data-toggle=popover]").each(function(t){$(this).popover("destroy"),$(this).popover({content:$(this).parent().find(".content").html()})})}function pagination(){$(".pagination li:not(.active) > a").attr("href","#"),$(".pagination li.disabled > a").removeAttr("href"),$(".pagination li:not(.active) > a").off(),$(".pagination li:not(.active) > a").click(paginationHandler)}function paginationHandler(){var t=$(this).attr("data-href");if(0!=t.length){var e=$(".tab-pane.active");$(e).html('<div class="loader"><img src="/img/ajax-loader.gif" alt="" /></div>'),$.get(t,function(t){$(e).html(t),$(".pagination li:not(.active) > a").attr("href","#"),$(".pagination li.disabled > a").removeAttr("href"),$(".pagination li:not(.active) > a").off(),$(".pagination li:not(.active) > a").click(paginationHandler),getDocumentReadyForUse()})}}function imageLoader(){if("undefined"!=typeof $("#container").masonry){var t=$("#container").masonry({columnWidth:150,itemSelector:".item",gutter:10,isFitWidth:!0});t.imagesLoaded().progress(function(e,r){t.masonry("layout")})}}function eliminateHost(t){$(".result:not(.ad)").each(function(e){var r=$(this).find(".link-link > a").attr("data-host");0===r.indexOf(t)&&$(this).css("display","none")})}function fokiChanger(){$("#fokiChanger ul > li").click(function(){document.location.href=$(this).attr("data-href")})}function botProtection(){if($("meta[name=pqr]").length>0){var t=atob($("meta[name=pqr]").attr("content")),e=$("meta[name=pq]").attr("content");document.location.href=t+"&bot="+e}}function productWidget(){var t=!1;(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))&&(t=!0),t?$(".lightSlider").lightSlider({item:5,loop:!1,slideMove:2,easing:"cubic-bezier(0.25, 0, 0.25, 1)",speed:600,pager:!1,prevHtml:'<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span><span class="sr-only">Previous</span>',nextHtml:'<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span><span class="sr-only">Next</span>',responsive:[{breakpoint:1400,settings:{item:4,slideMove:2}},{breakpoint:1200,settings:{item:3,slideMove:2}},{breakpoint:980,settings:{item:4,slideMove:2}},{breakpoint:720,settings:{item:3,slideMove:1}},{breakpoint:520,settings:{item:2,slideMove:1}}]}):$(".lightSlider").lightSlider({item:5,loop:!1,slideMove:2,easing:"cubic-bezier(0.25, 0, 0.25, 1)",speed:600,pager:!1,enableTouch:!1,enableDrag:!1,prevHtml:'<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span><span class="sr-only">Previous</span>',nextHtml:'<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span><span class="sr-only">Next</span>',responsive:[{breakpoint:1400,settings:{item:4,slideMove:2}},{breakpoint:1200,settings:{item:3,slideMove:2}},{breakpoint:980,settings:{item:4,slideMove:2}},{breakpoint:720,settings:{item:3,slideMove:1}},{breakpoint:520,settings:{item:2,slideMove:1}}]}),$(".lightSliderContainer").removeClass("hidden")}function setSettings(){for(var t=0;t<localStorage.length;t++){var e=localStorage.key(t),r=localStorage.getItem(e);e.startsWith("param_")&&!e.endsWith("lang")&&(e=e.substring(e.indexOf("param_")+6),$("#searchForm").append('<input type="hidden" name="'+e+'" value="'+r+'">')),$("#foki input[type=radio]#angepasst").attr("checked",!0)}$("fieldset#foki.mobile").length&&($("fieldset.mobile input#bilder").val("angepasst"),$("fieldset.mobile input#bilder").prop("checked",!0),$("fieldset.mobile input#bilder").attr("id","angepasst"),$("fieldset.mobile label#bilder-label").attr("id","anpassen-label"),$("fieldset.mobile label#anpassen-label").attr("for","angepasst"),$("fieldset.mobile label#anpassen-label span.glyphicon").attr("class","glyphicon glyphicon-cog"),$("fieldset.mobile label#anpassen-label span.content").html("angepasst"))}function isUseOnce(){var t=document.location.search,e=t.indexOf("usage=");return e>=0&&"once"==t.substring(e+6,e+11)}function tickOptions(){if(localStorage&&localStorage.getItem("pers"))for(var t=0;t<localStorage.length;t++){var e=localStorage.key(t),r=localStorage.getItem(e);e.startsWith("param_")&&($("input[name="+e+"]").length?$("input[name="+e+"]").attr("checked",""):$("select[name="+e+"] > option[value="+r+"]").attr("selected",!0))}else $("div.web input").attr("checked",!0)}function resetOptions(){localStorage.removeItem("pers");for(var t=[],e=0;e<localStorage.length;e++){var r=localStorage.key(e);t.push(r)}for(var e=0;e<t.length;e++){var r=t[e];r.startsWith("param_")&&localStorage.removeItem(r)}}function isEnglish(){return window.location.href.indexOf("/en/")!=-1}if(!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function r(t){var e=t.length,r=it.type(t);return"function"!==r&&!it.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===r||0===e||"number"==typeof e&&e>0&&e-1 in t))}function n(t,e,r){if(it.isFunction(e))return it.grep(t,function(t,n){return!!e.call(t,n,t)!==r});if(e.nodeType)return it.grep(t,function(t){return t===e!==r});if("string"==typeof e){if(dt.test(e))return it.filter(e,t,r);e=it.filter(e,t)}return it.grep(t,function(t){return it.inArray(t,e)>=0!==r})}function i(t,e){do t=t[e];while(t&&1!==t.nodeType);return t}function o(t){var e=wt[t]={};return it.each(t.match(bt)||[],function(t,r){e[r]=!0}),e}function s(){pt.addEventListener?(pt.removeEventListener("DOMContentLoaded",a,!1),t.removeEventListener("load",a,!1)):(pt.detachEvent("onreadystatechange",a),t.detachEvent("onload",a))}function a(){(pt.addEventListener||"load"===event.type||"complete"===pt.readyState)&&(s(),it.ready())}function u(t,e,r){if(void 0===r&&1===t.nodeType){var n="data-"+e.replace(At,"-$1").toLowerCase();if(r=t.getAttribute(n),"string"==typeof r){try{r="true"===r||"false"!==r&&("null"===r?null:+r+""===r?+r:xt.test(r)?it.parseJSON(r):r)}catch(i){}it.data(t,e,r)}else r=void 0}return r}function c(t){var e;for(e in t)if(("data"!==e||!it.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function l(t,e,r,n){if(it.acceptData(t)){var i,o,s=it.expando,a=t.nodeType,u=a?it.cache:t,c=a?t[s]:t[s]&&s;if(c&&u[c]&&(n||u[c].data)||void 0!==r||"string"!=typeof e)return c||(c=a?t[s]=G.pop()||it.guid++:s),u[c]||(u[c]=a?{}:{toJSON:it.noop}),("object"==typeof e||"function"==typeof e)&&(n?u[c]=it.extend(u[c],e):u[c].data=it.extend(u[c].data,e)),o=u[c],n||(o.data||(o.data={}),o=o.data),void 0!==r&&(o[it.camelCase(e)]=r),"string"==typeof e?(i=o[e],null==i&&(i=o[it.camelCase(e)])):i=o,i}}function h(t,e,r){if(it.acceptData(t)){var n,i,o=t.nodeType,s=o?it.cache:t,a=o?t[it.expando]:it.expando;if(s[a]){if(e&&(n=r?s[a]:s[a].data)){it.isArray(e)?e=e.concat(it.map(e,it.camelCase)):e in n?e=[e]:(e=it.camelCase(e),e=e in n?[e]:e.split(" ")),i=e.length;for(;i--;)delete n[e[i]];if(r?!c(n):!it.isEmptyObject(n))return}(r||(delete s[a].data,c(s[a])))&&(o?it.cleanData([t],!0):rt.deleteExpando||s!=s.window?delete s[a]:s[a]=null)}}}function d(){return!0}function f(){return!1}function p(){try{return pt.activeElement}catch(t){}}function g(t){var e=Lt.split("|"),r=t.createDocumentFragment();if(r.createElement)for(;e.length;)r.createElement(e.pop());return r}function m(t,e){var r,n,i=0,o=typeof t.getElementsByTagName!==St?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==St?t.querySelectorAll(e||"*"):void 0;if(!o)for(o=[],r=t.childNodes||t;null!=(n=r[i]);i++)!e||it.nodeName(n,e)?o.push(n):it.merge(o,m(n,e));return void 0===e||e&&it.nodeName(t,e)?it.merge([t],o):o}function y(t){_t.test(t.type)&&(t.defaultChecked=t.checked)}function v(t,e){return it.nodeName(t,"table")&&it.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function b(t){return t.type=(null!==it.find.attr(t,"type"))+"/"+t.type,t}function w(t){var e=Vt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function k(t,e){for(var r,n=0;null!=(r=t[n]);n++)it._data(r,"globalEval",!e||it._data(e[n],"globalEval"))}function C(t,e){if(1===e.nodeType&&it.hasData(t)){var r,n,i,o=it._data(t),s=it._data(e,o),a=o.events;if(a){delete s.handle,s.events={};for(r in a)for(n=0,i=a[r].length;i>n;n++)it.event.add(e,r,a[r][n])}s.data&&(s.data=it.extend({},s.data))}}function S(t,e){var r,n,i;if(1===e.nodeType){if(r=e.nodeName.toLowerCase(),!rt.noCloneEvent&&e[it.expando]){i=it._data(e);for(n in i.events)it.removeEvent(e,n,i.handle);e.removeAttribute(it.expando)}"script"===r&&e.text!==t.text?(b(e).text=t.text,w(e)):"object"===r?(e.parentNode&&(e.outerHTML=t.outerHTML),rt.html5Clone&&t.innerHTML&&!it.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===r&&_t.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===r?e.defaultSelected=e.selected=t.defaultSelected:("input"===r||"textarea"===r)&&(e.defaultValue=t.defaultValue)}}function x(e,r){var n,i=it(r.createElement(e)).appendTo(r.body),o=t.getDefaultComputedStyle&&(n=t.getDefaultComputedStyle(i[0]))?n.display:it.css(i[0],"display");return i.detach(),o}function A(t){var e=pt,r=Jt[t];return r||(r=x(t,e),"none"!==r&&r||(Qt=(Qt||it("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=(Qt[0].contentWindow||Qt[0].contentDocument).document,e.write(),e.close(),r=x(t,e),Qt.detach()),Jt[t]=r),r}function T(t,e){return{get:function(){var r=t();if(null!=r)return r?void delete this.get:(this.get=e).apply(this,arguments)}}}function E(t,e){if(e in t)return e;for(var r=e.charAt(0).toUpperCase()+e.slice(1),n=e,i=de.length;i--;)if(e=de[i]+r,e in t)return e;return n}function I(t,e){for(var r,n,i,o=[],s=0,a=t.length;a>s;s++)n=t[s],n.style&&(o[s]=it._data(n,"olddisplay"),r=n.style.display,e?(o[s]||"none"!==r||(n.style.display=""),""===n.style.display&&It(n)&&(o[s]=it._data(n,"olddisplay",A(n.nodeName)))):(i=It(n),(r&&"none"!==r||!i)&&it._data(n,"olddisplay",i?r:it.css(n,"display"))));for(s=0;a>s;s++)n=t[s],n.style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?o[s]||"":"none"));return t}function j(t,e,r){var n=ue.exec(e);return n?Math.max(0,n[1]-(r||0))+(n[2]||"px"):e}function _(t,e,r,n,i){for(var o=r===(n?"border":"content")?4:"width"===e?1:0,s=0;4>o;o+=2)"margin"===r&&(s+=it.css(t,r+Et[o],!0,i)),n?("content"===r&&(s-=it.css(t,"padding"+Et[o],!0,i)),"margin"!==r&&(s-=it.css(t,"border"+Et[o]+"Width",!0,i))):(s+=it.css(t,"padding"+Et[o],!0,i),"padding"!==r&&(s+=it.css(t,"border"+Et[o]+"Width",!0,i)));return s}function O(t,e,r){var n=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=te(t),s=rt.boxSizing&&"border-box"===it.css(t,"boxSizing",!1,o);if(0>=i||null==i){if(i=ee(t,e,o),(0>i||null==i)&&(i=t.style[e]),ne.test(i))return i;n=s&&(rt.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+_(t,e,r||(s?"border":"content"),n,o)+"px"}function N(t,e,r,n,i){return new N.prototype.init(t,e,r,n,i)}function B(){return setTimeout(function(){fe=void 0}),fe=it.now()}function P(t,e){var r,n={height:t},i=0;for(e=e?1:0;4>i;i+=2-e)r=Et[i],n["margin"+r]=n["padding"+r]=t;return e&&(n.opacity=n.width=t),n}function D(t,e,r){for(var n,i=(be[e]||[]).concat(be["*"]),o=0,s=i.length;s>o;o++)if(n=i[o].call(r,e,t))return n}function L(t,e,r){var n,i,o,s,a,u,c,l,h=this,d={},f=t.style,p=t.nodeType&&It(t),g=it._data(t,"fxshow");r.queue||(a=it._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,it.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(r.overflow=[f.overflow,f.overflowX,f.overflowY],c=it.css(t,"display"),l="none"===c?it._data(t,"olddisplay")||A(t.nodeName):c,"inline"===l&&"none"===it.css(t,"float")&&(rt.inlineBlockNeedsLayout&&"inline"!==A(t.nodeName)?f.zoom=1:f.display="inline-block")),r.overflow&&(f.overflow="hidden",rt.shrinkWrapBlocks()||h.always(function(){f.overflow=r.overflow[0],f.overflowX=r.overflow[1],f.overflowY=r.overflow[2]}));for(n in e)if(i=e[n],ge.exec(i)){if(delete e[n],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!g||void 0===g[n])continue;p=!0}d[n]=g&&g[n]||it.style(t,n)}else c=void 0;if(it.isEmptyObject(d))"inline"===("none"===c?A(t.nodeName):c)&&(f.display=c);else{g?"hidden"in g&&(p=g.hidden):g=it._data(t,"fxshow",{}),o&&(g.hidden=!p),p?it(t).show():h.done(function(){it(t).hide()}),h.done(function(){var e;it._removeData(t,"fxshow");for(e in d)it.style(t,e,d[e])});for(n in d)s=D(p?g[n]:0,n,h),n in g||(g[n]=s.start,p&&(s.end=s.start,s.start="width"===n||"height"===n?1:0))}}function K(t,e){var r,n,i,o,s;for(r in t)if(n=it.camelCase(r),i=e[n],o=t[r],it.isArray(o)&&(i=o[1],o=t[r]=o[0]),r!==n&&(t[n]=o,delete t[r]),s=it.cssHooks[n],s&&"expand"in s){o=s.expand(o),delete t[n];for(r in o)r in t||(t[r]=o[r],e[r]=i)}else e[n]=i}function M(t,e,r){var n,i,o=0,s=ve.length,a=it.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var e=fe||B(),r=Math.max(0,c.startTime+c.duration-e),n=r/c.duration||0,o=1-n,s=0,u=c.tweens.length;u>s;s++)c.tweens[s].run(o);return a.notifyWith(t,[c,o,r]),1>o&&u?r:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:it.extend({},e),opts:it.extend(!0,{specialEasing:{}},r),originalProperties:e,originalOptions:r,startTime:fe||B(),duration:r.duration,tweens:[],createTween:function(e,r){var n=it.Tween(t,c.opts,e,r,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var r=0,n=e?c.tweens.length:0;if(i)return this;for(i=!0;n>r;r++)c.tweens[r].run(1);return e?a.resolveWith(t,[c,e]):a.rejectWith(t,[c,e]),this}}),l=c.props;for(K(l,c.opts.specialEasing);s>o;o++)if(n=ve[o].call(c,t,l,c.opts))return n;return it.map(l,D,c),it.isFunction(c.opts.start)&&c.opts.start.call(t,c),it.fx.timer(it.extend(u,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function $(t){return function(e,r){"string"!=typeof e&&(r=e,e="*");var n,i=0,o=e.toLowerCase().match(bt)||[];if(it.isFunction(r))for(;n=o[i++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(r)):(t[n]=t[n]||[]).push(r)}}function R(t,e,r,n){function i(a){var u;return o[a]=!0,it.each(t[a]||[],function(t,a){var c=a(e,r,n);return"string"!=typeof c||s||o[c]?s?!(u=c):void 0:(e.dataTypes.unshift(c),i(c),!1)}),u}var o={},s=t===Fe;return i(e.dataTypes[0])||!o["*"]&&i("*")}function H(t,e){var r,n,i=it.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&it.extend(!0,t,r),t}function z(t,e,r){for(var n,i,o,s,a=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(s in a)if(a[s]&&a[s].test(i)){u.unshift(s);break}if(u[0]in r)o=u[0];else{for(s in r){if(!u[0]||t.converters[s+" "+u[0]]){o=s;break}n||(n=s)}o=o||n}return o?(o!==u[0]&&u.unshift(o),r[o]):void 0}function F(t,e,r,n){var i,o,s,a,u,c={},l=t.dataTypes.slice();if(l[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=l.shift();o;)if(t.responseFields[o]&&(r[t.responseFields[o]]=e),!u&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(s=c[u+" "+o]||c["* "+o],!s)for(i in c)if(a=i.split(" "),a[1]===o&&(s=c[u+" "+a[0]]||c["* "+a[0]])){s===!0?s=c[i]:c[i]!==!0&&(o=a[0],l.unshift(a[1]));break}if(s!==!0)if(s&&t["throws"])e=s(e);else try{e=s(e)}catch(h){return{state:"parsererror",error:s?h:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}function q(t,e,r,n){var i;if(it.isArray(e))it.each(e,function(e,i){r||Ve.test(t)?n(t,i):q(t+"["+("object"==typeof i?e:"")+"]",i,r,n)});else if(r||"object"!==it.type(e))n(t,e);else for(i in e)q(t+"["+i+"]",e[i],r,n)}function U(){try{return new t.XMLHttpRequest}catch(e){}}function W(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function V(t){return it.isWindow(t)?t:9===t.nodeType&&(t.defaultView||t.parentWindow)}var G=[],X=G.slice,Y=G.concat,Z=G.push,Q=G.indexOf,J={},tt=J.toString,et=J.hasOwnProperty,rt={},nt="1.11.1",it=function(t,e){return new it.fn.init(t,e)},ot=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,st=/^-ms-/,at=/-([\da-z])/gi,ut=function(t,e){return e.toUpperCase()};it.fn=it.prototype={jquery:nt,constructor:it,selector:"",length:0,toArray:function(){return X.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:X.call(this)},pushStack:function(t){var e=it.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return it.each(this,t,e)},map:function(t){return this.pushStack(it.map(this,function(e,r){return t.call(e,r,e)}))},slice:function(){return this.pushStack(X.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,r=+t+(0>t?e:0);return this.pushStack(r>=0&&e>r?[this[r]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:Z,sort:G.sort,splice:G.splice},it.extend=it.fn.extend=function(){var t,e,r,n,i,o,s=arguments[0]||{},a=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||it.isFunction(s)||(s={}),a===u&&(s=this,a--);u>a;a++)if(null!=(i=arguments[a]))for(n in i)t=s[n],r=i[n],s!==r&&(c&&r&&(it.isPlainObject(r)||(e=it.isArray(r)))?(e?(e=!1,o=t&&it.isArray(t)?t:[]):o=t&&it.isPlainObject(t)?t:{},s[n]=it.extend(c,o,r)):void 0!==r&&(s[n]=r));return s},it.extend({expando:"jQuery"+(nt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===it.type(t)},isArray:Array.isArray||function(t){return"array"===it.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!it.isArray(t)&&t-parseFloat(t)>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==it.type(t)||t.nodeType||it.isWindow(t))return!1;try{if(t.constructor&&!et.call(t,"constructor")&&!et.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(rt.ownLast)for(e in t)return et.call(t,e);for(e in t);return void 0===e||et.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?J[tt.call(t)]||"object":typeof t},globalEval:function(e){e&&it.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(st,"ms-").replace(at,ut)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var i,o=0,s=t.length,a=r(t);if(n){if(a)for(;s>o&&(i=e.apply(t[o],n),i!==!1);o++);else for(o in t)if(i=e.apply(t[o],n),i===!1)break}else if(a)for(;s>o&&(i=e.call(t[o],o,t[o]),i!==!1);o++);else for(o in t)if(i=e.call(t[o],o,t[o]),i===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(ot,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(r(Object(t))?it.merge(n,"string"==typeof t?[t]:t):Z.call(n,t)),n},inArray:function(t,e,r){var n;if(e){if(Q)return Q.call(e,t,r);for(n=e.length,r=r?0>r?Math.max(0,n+r):r:0;n>r;r++)if(r in e&&e[r]===t)return r}return-1},merge:function(t,e){for(var r=+e.length,n=0,i=t.length;r>n;)t[i++]=e[n++];if(r!==r)for(;void 0!==e[n];)t[i++]=e[n++];return t.length=i,t},grep:function(t,e,r){for(var n,i=[],o=0,s=t.length,a=!r;s>o;o++)n=!e(t[o],o),n!==a&&i.push(t[o]);return i},map:function(t,e,n){var i,o=0,s=t.length,a=r(t),u=[];if(a)for(;s>o;o++)i=e(t[o],o,n),null!=i&&u.push(i);else for(o in t)i=e(t[o],o,n),null!=i&&u.push(i);return Y.apply([],u)},guid:1,proxy:function(t,e){var r,n,i;return"string"==typeof e&&(i=t[e],e=t,t=i),it.isFunction(t)?(r=X.call(arguments,2),n=function(){return t.apply(e||this,r.concat(X.call(arguments)))},n.guid=t.guid=t.guid||it.guid++,n):void 0},now:function(){return+new Date},support:rt}),it.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){J["[object "+e+"]"]=e.toLowerCase()});var ct=function(t){function e(t,e,r,n){var i,o,s,a,u,c,h,f,p,g;if((e?e.ownerDocument||e:R)!==N&&O(e),e=e||N,r=r||[],!t||"string"!=typeof t)return r;if(1!==(a=e.nodeType)&&9!==a)return[];if(P&&!n){if(i=vt.exec(t))if(s=i[1]){if(9===a){if(o=e.getElementById(s),!o||!o.parentNode)return r;if(o.id===s)return r.push(o),r}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(s))&&M(e,o)&&o.id===s)return r.push(o),r}else{if(i[2])return J.apply(r,e.getElementsByTagName(t)),r;if((s=i[3])&&k.getElementsByClassName&&e.getElementsByClassName)return J.apply(r,e.getElementsByClassName(s)),r}if(k.qsa&&(!D||!D.test(t))){if(f=h=$,p=e,g=9===a&&t,1===a&&"object"!==e.nodeName.toLowerCase()){for(c=A(t),(h=e.getAttribute("id"))?f=h.replace(wt,"\\$&"):e.setAttribute("id",f),f="[id='"+f+"'] ",u=c.length;u--;)c[u]=f+d(c[u]);p=bt.test(t)&&l(e.parentNode)||e,g=c.join(",")}if(g)try{return J.apply(r,p.querySelectorAll(g)),r}catch(m){}finally{h||e.removeAttribute("id")}}}return E(t.replace(ut,"$1"),e,r,n)}function r(){function t(r,n){return e.push(r+" ")>C.cacheLength&&delete t[e.shift()],t[r+" "]=n}var e=[];return t}function n(t){return t[$]=!0,t}function i(t){var e=N.createElement("div");try{return!!t(e)}catch(r){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var r=t.split("|"),n=t.length;n--;)C.attrHandle[r[n]]=e}function s(t,e){var r=e&&t,n=r&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||G)-(~t.sourceIndex||G);if(n)return n;if(r)for(;r=r.nextSibling;)if(r===e)return-1;return t?1:-1}function a(t){return function(e){var r=e.nodeName.toLowerCase();return"input"===r&&e.type===t}}function u(t){return function(e){var r=e.nodeName.toLowerCase();return("input"===r||"button"===r)&&e.type===t}}function c(t){return n(function(e){return e=+e,n(function(r,n){for(var i,o=t([],r.length,e),s=o.length;s--;)r[i=o[s]]&&(r[i]=!(n[i]=r[i]))})})}function l(t){return t&&typeof t.getElementsByTagName!==V&&t}function h(){}function d(t){for(var e=0,r=t.length,n="";r>e;e++)n+=t[e].value;return n}function f(t,e,r){var n=e.dir,i=r&&"parentNode"===n,o=z++;return e.first?function(e,r,o){for(;e=e[n];)if(1===e.nodeType||i)return t(e,r,o)}:function(e,r,s){var a,u,c=[H,o];if(s){for(;e=e[n];)if((1===e.nodeType||i)&&t(e,r,s))return!0}else for(;e=e[n];)if(1===e.nodeType||i){if(u=e[$]||(e[$]={}),(a=u[n])&&a[0]===H&&a[1]===o)return c[2]=a[2];if(u[n]=c,c[2]=t(e,r,s))return!0}}}function p(t){return t.length>1?function(e,r,n){for(var i=t.length;i--;)if(!t[i](e,r,n))return!1;return!0}:t[0]}function g(t,r,n){for(var i=0,o=r.length;o>i;i++)e(t,r[i],n);return n}function m(t,e,r,n,i){for(var o,s=[],a=0,u=t.length,c=null!=e;u>a;a++)(o=t[a])&&(!r||r(o,n,i))&&(s.push(o),c&&e.push(a));return s}function y(t,e,r,i,o,s){return i&&!i[$]&&(i=y(i)),o&&!o[$]&&(o=y(o,s)),n(function(n,s,a,u){var c,l,h,d=[],f=[],p=s.length,y=n||g(e||"*",a.nodeType?[a]:a,[]),v=!t||!n&&e?y:m(y,d,t,a,u),b=r?o||(n?t:p||i)?[]:s:v;if(r&&r(v,b,a,u),i)for(c=m(b,f),i(c,[],a,u),l=c.length;l--;)(h=c[l])&&(b[f[l]]=!(v[f[l]]=h));if(n){if(o||t){if(o){for(c=[],l=b.length;l--;)(h=b[l])&&c.push(v[l]=h);o(null,b=[],c,u)}for(l=b.length;l--;)(h=b[l])&&(c=o?et.call(n,h):d[l])>-1&&(n[c]=!(s[c]=h))}}else b=m(b===s?b.splice(p,b.length):b),o?o(null,s,b,u):J.apply(s,b)})}function v(t){for(var e,r,n,i=t.length,o=C.relative[t[0].type],s=o||C.relative[" "],a=o?1:0,u=f(function(t){return t===e},s,!0),c=f(function(t){return et.call(e,t)>-1},s,!0),l=[function(t,r,n){return!o&&(n||r!==I)||((e=r).nodeType?u(t,r,n):c(t,r,n))}];i>a;a++)if(r=C.relative[t[a].type])l=[f(p(l),r)];else{if(r=C.filter[t[a].type].apply(null,t[a].matches),r[$]){for(n=++a;i>n&&!C.relative[t[n].type];n++);return y(a>1&&p(l),a>1&&d(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(ut,"$1"),r,n>a&&v(t.slice(a,n)),i>n&&v(t=t.slice(n)),i>n&&d(t))}l.push(r)}return p(l)}function b(t,r){var i=r.length>0,o=t.length>0,s=function(n,s,a,u,c){var l,h,d,f=0,p="0",g=n&&[],y=[],v=I,b=n||o&&C.find.TAG("*",c),w=H+=null==v?1:Math.random()||.1,k=b.length;for(c&&(I=s!==N&&s);p!==k&&null!=(l=b[p]);p++){if(o&&l){for(h=0;d=t[h++];)if(d(l,s,a)){u.push(l);break}c&&(H=w)}i&&((l=!d&&l)&&f--,n&&g.push(l))}if(f+=p,i&&p!==f){for(h=0;d=r[h++];)d(g,y,s,a);if(n){if(f>0)for(;p--;)g[p]||y[p]||(y[p]=Z.call(u));y=m(y)}J.apply(u,y),c&&!n&&y.length>0&&f+r.length>1&&e.uniqueSort(u)}return c&&(H=w,I=v),g};return i?n(s):s}var w,k,C,S,x,A,T,E,I,j,_,O,N,B,P,D,L,K,M,$="sizzle"+-new Date,R=t.document,H=0,z=0,F=r(),q=r(),U=r(),W=function(t,e){return t===e&&(_=!0),0},V="undefined",G=1<<31,X={}.hasOwnProperty,Y=[],Z=Y.pop,Q=Y.push,J=Y.push,tt=Y.slice,et=Y.indexOf||function(t){for(var e=0,r=this.length;r>e;e++)if(this[e]===t)return e;return-1},rt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",it="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ot=it.replace("w","w#"),st="\\["+nt+"*("+it+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ot+"))|)"+nt+"*\\]",at=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+st+")*)|.*)\\)|)",ut=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),ct=new RegExp("^"+nt+"*,"+nt+"*"),lt=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ht=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),dt=new RegExp(at),ft=new RegExp("^"+ot+"$"),pt={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it.replace("w","w*")+")"),ATTR:new RegExp("^"+st),PSEUDO:new RegExp("^"+at),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+rt+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},gt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,yt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,wt=/'|\\/g,kt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),Ct=function(t,e,r){var n="0x"+e-65536;return n!==n||r?e:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)};try{J.apply(Y=tt.call(R.childNodes),R.childNodes),Y[R.childNodes.length].nodeType}catch(St){J={apply:Y.length?function(t,e){Q.apply(t,tt.call(e))}:function(t,e){for(var r=t.length,n=0;t[r++]=e[n++];);t.length=r-1}}}k=e.support={},x=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},O=e.setDocument=function(t){var e,r=t?t.ownerDocument||t:R,n=r.defaultView;return r!==N&&9===r.nodeType&&r.documentElement?(N=r,B=r.documentElement,P=!x(r),n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",function(){O()},!1):n.attachEvent&&n.attachEvent("onunload",function(){O()})),k.attributes=i(function(t){return t.className="i",!t.getAttribute("className")}),k.getElementsByTagName=i(function(t){return t.appendChild(r.createComment("")),!t.getElementsByTagName("*").length}),k.getElementsByClassName=yt.test(r.getElementsByClassName)&&i(function(t){return t.innerHTML="<div class='a'></div><div class='a i'></div>",t.firstChild.className="i",2===t.getElementsByClassName("i").length}),k.getById=i(function(t){return B.appendChild(t).id=$,!r.getElementsByName||!r.getElementsByName($).length;
}),k.getById?(C.find.ID=function(t,e){if(typeof e.getElementById!==V&&P){var r=e.getElementById(t);return r&&r.parentNode?[r]:[]}},C.filter.ID=function(t){var e=t.replace(kt,Ct);return function(t){return t.getAttribute("id")===e}}):(delete C.find.ID,C.filter.ID=function(t){var e=t.replace(kt,Ct);return function(t){var r=typeof t.getAttributeNode!==V&&t.getAttributeNode("id");return r&&r.value===e}}),C.find.TAG=k.getElementsByTagName?function(t,e){return typeof e.getElementsByTagName!==V?e.getElementsByTagName(t):void 0}:function(t,e){var r,n=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;r=o[i++];)1===r.nodeType&&n.push(r);return n}return o},C.find.CLASS=k.getElementsByClassName&&function(t,e){return typeof e.getElementsByClassName!==V&&P?e.getElementsByClassName(t):void 0},L=[],D=[],(k.qsa=yt.test(r.querySelectorAll))&&(i(function(t){t.innerHTML="<select msallowclip=''><option selected=''></option></select>",t.querySelectorAll("[msallowclip^='']").length&&D.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||D.push("\\["+nt+"*(?:value|"+rt+")"),t.querySelectorAll(":checked").length||D.push(":checked")}),i(function(t){var e=r.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&D.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||D.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),D.push(",.*:")})),(k.matchesSelector=yt.test(K=B.matches||B.webkitMatchesSelector||B.mozMatchesSelector||B.oMatchesSelector||B.msMatchesSelector))&&i(function(t){k.disconnectedMatch=K.call(t,"div"),K.call(t,"[s!='']:x"),L.push("!=",at)}),D=D.length&&new RegExp(D.join("|")),L=L.length&&new RegExp(L.join("|")),e=yt.test(B.compareDocumentPosition),M=e||yt.test(B.contains)?function(t,e){var r=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(r.contains?r.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},W=e?function(t,e){if(t===e)return _=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!k.sortDetached&&e.compareDocumentPosition(t)===n?t===r||t.ownerDocument===R&&M(R,t)?-1:e===r||e.ownerDocument===R&&M(R,e)?1:j?et.call(j,t)-et.call(j,e):0:4&n?-1:1)}:function(t,e){if(t===e)return _=!0,0;var n,i=0,o=t.parentNode,a=e.parentNode,u=[t],c=[e];if(!o||!a)return t===r?-1:e===r?1:o?-1:a?1:j?et.call(j,t)-et.call(j,e):0;if(o===a)return s(t,e);for(n=t;n=n.parentNode;)u.unshift(n);for(n=e;n=n.parentNode;)c.unshift(n);for(;u[i]===c[i];)i++;return i?s(u[i],c[i]):u[i]===R?-1:c[i]===R?1:0},r):N},e.matches=function(t,r){return e(t,null,null,r)},e.matchesSelector=function(t,r){if((t.ownerDocument||t)!==N&&O(t),r=r.replace(ht,"='$1']"),!(!k.matchesSelector||!P||L&&L.test(r)||D&&D.test(r)))try{var n=K.call(t,r);if(n||k.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(i){}return e(r,N,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==N&&O(t),M(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==N&&O(t);var r=C.attrHandle[e.toLowerCase()],n=r&&X.call(C.attrHandle,e.toLowerCase())?r(t,e,!P):void 0;return void 0!==n?n:k.attributes||!P?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,r=[],n=0,i=0;if(_=!k.detectDuplicates,j=!k.sortStable&&t.slice(0),t.sort(W),_){for(;e=t[i++];)e===t[i]&&(n=r.push(i));for(;n--;)t.splice(r[n],1)}return j=null,t},S=e.getText=function(t){var e,r="",n=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)r+=S(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[n++];)r+=S(e);return r},C=e.selectors={cacheLength:50,createPseudo:n,match:pt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(kt,Ct),t[3]=(t[3]||t[4]||t[5]||"").replace(kt,Ct),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,r=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":r&&dt.test(r)&&(e=A(r,!0))&&(e=r.indexOf(")",r.length-e)-r.length)&&(t[0]=t[0].slice(0,e),t[2]=r.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(kt,Ct).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=F[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&F(t,function(t){return e.test("string"==typeof t.className&&t.className||typeof t.getAttribute!==V&&t.getAttribute("class")||"")})},ATTR:function(t,r,n){return function(i){var o=e.attr(i,t);return null==o?"!="===r:!r||(o+="","="===r?o===n:"!="===r?o!==n:"^="===r?n&&0===o.indexOf(n):"*="===r?n&&o.indexOf(n)>-1:"$="===r?n&&o.slice(-n.length)===n:"~="===r?(" "+o+" ").indexOf(n)>-1:"|="===r&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,r,n,i){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===i?function(t){return!!t.parentNode}:function(e,r,u){var c,l,h,d,f,p,g=o!==s?"nextSibling":"previousSibling",m=e.parentNode,y=a&&e.nodeName.toLowerCase(),v=!u&&!a;if(m){if(o){for(;g;){for(h=e;h=h[g];)if(a?h.nodeName.toLowerCase()===y:1===h.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[s?m.firstChild:m.lastChild],s&&v){for(l=m[$]||(m[$]={}),c=l[t]||[],f=c[0]===H&&c[1],d=c[0]===H&&c[2],h=f&&m.childNodes[f];h=++f&&h&&h[g]||(d=f=0)||p.pop();)if(1===h.nodeType&&++d&&h===e){l[t]=[H,f,d];break}}else if(v&&(c=(e[$]||(e[$]={}))[t])&&c[0]===H)d=c[1];else for(;(h=++f&&h&&h[g]||(d=f=0)||p.pop())&&((a?h.nodeName.toLowerCase()!==y:1!==h.nodeType)||!++d||(v&&((h[$]||(h[$]={}))[t]=[H,d]),h!==e)););return d-=i,d===n||d%n===0&&d/n>=0}}},PSEUDO:function(t,r){var i,o=C.pseudos[t]||C.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[$]?o(r):o.length>1?(i=[t,t,"",r],C.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,i=o(t,r),s=i.length;s--;)n=et.call(t,i[s]),t[n]=!(e[n]=i[s])}):function(t){return o(t,0,i)}):o}},pseudos:{not:n(function(t){var e=[],r=[],i=T(t.replace(ut,"$1"));return i[$]?n(function(t,e,r,n){for(var o,s=i(t,null,n,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,n,o){return e[0]=t,i(e,null,o,r),!r.pop()}}),has:n(function(t){return function(r){return e(t,r).length>0}}),contains:n(function(t){return function(e){return(e.textContent||e.innerText||S(e)).indexOf(t)>-1}}),lang:n(function(t){return ft.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(kt,Ct).toLowerCase(),function(e){var r;do if(r=P?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return r=r.toLowerCase(),r===t||0===r.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var r=t.location&&t.location.hash;return r&&r.slice(1)===e.id},root:function(t){return t===B},focus:function(t){return t===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!C.pseudos.empty(t)},header:function(t){return mt.test(t.nodeName)},input:function(t){return gt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:c(function(){return[0]}),last:c(function(t,e){return[e-1]}),eq:c(function(t,e,r){return[0>r?r+e:r]}),even:c(function(t,e){for(var r=0;e>r;r+=2)t.push(r);return t}),odd:c(function(t,e){for(var r=1;e>r;r+=2)t.push(r);return t}),lt:c(function(t,e,r){for(var n=0>r?r+e:r;--n>=0;)t.push(n);return t}),gt:c(function(t,e,r){for(var n=0>r?r+e:r;++n<e;)t.push(n);return t})}},C.pseudos.nth=C.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[w]=a(w);for(w in{submit:!0,reset:!0})C.pseudos[w]=u(w);return h.prototype=C.filters=C.pseudos,C.setFilters=new h,A=e.tokenize=function(t,r){var n,i,o,s,a,u,c,l=q[t+" "];if(l)return r?0:l.slice(0);for(a=t,u=[],c=C.preFilter;a;){(!n||(i=ct.exec(a)))&&(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),n=!1,(i=lt.exec(a))&&(n=i.shift(),o.push({value:n,type:i[0].replace(ut," ")}),a=a.slice(n.length));for(s in C.filter)!(i=pt[s].exec(a))||c[s]&&!(i=c[s](i))||(n=i.shift(),o.push({value:n,type:s,matches:i}),a=a.slice(n.length));if(!n)break}return r?a.length:a?e.error(t):q(t,u).slice(0)},T=e.compile=function(t,e){var r,n=[],i=[],o=U[t+" "];if(!o){for(e||(e=A(t)),r=e.length;r--;)o=v(e[r]),o[$]?n.push(o):i.push(o);o=U(t,b(i,n)),o.selector=t}return o},E=e.select=function(t,e,r,n){var i,o,s,a,u,c="function"==typeof t&&t,h=!n&&A(t=c.selector||t);if(r=r||[],1===h.length){if(o=h[0]=h[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&k.getById&&9===e.nodeType&&P&&C.relative[o[1].type]){if(e=(C.find.ID(s.matches[0].replace(kt,Ct),e)||[])[0],!e)return r;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=pt.needsContext.test(t)?0:o.length;i--&&(s=o[i],!C.relative[a=s.type]);)if((u=C.find[a])&&(n=u(s.matches[0].replace(kt,Ct),bt.test(o[0].type)&&l(e.parentNode)||e))){if(o.splice(i,1),t=n.length&&d(o),!t)return J.apply(r,n),r;break}}return(c||T(t,h))(n,e,!P,r,bt.test(t)&&l(e.parentNode)||e),r},k.sortStable=$.split("").sort(W).join("")===$,k.detectDuplicates=!!_,O(),k.sortDetached=i(function(t){return 1&t.compareDocumentPosition(N.createElement("div"))}),i(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,r){return r?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),k.attributes&&i(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,r){return r||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),i(function(t){return null==t.getAttribute("disabled")})||o(rt,function(t,e,r){var n;return r?void 0:t[e]===!0?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(t);it.find=ct,it.expr=ct.selectors,it.expr[":"]=it.expr.pseudos,it.unique=ct.uniqueSort,it.text=ct.getText,it.isXMLDoc=ct.isXML,it.contains=ct.contains;var lt=it.expr.match.needsContext,ht=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,dt=/^.[^:#\[\.,]*$/;it.filter=function(t,e,r){var n=e[0];return r&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?it.find.matchesSelector(n,t)?[n]:[]:it.find.matches(t,it.grep(e,function(t){return 1===t.nodeType}))},it.fn.extend({find:function(t){var e,r=[],n=this,i=n.length;if("string"!=typeof t)return this.pushStack(it(t).filter(function(){for(e=0;i>e;e++)if(it.contains(n[e],this))return!0}));for(e=0;i>e;e++)it.find(t,n[e],r);return r=this.pushStack(i>1?it.unique(r):r),r.selector=this.selector?this.selector+" "+t:t,r},filter:function(t){return this.pushStack(n(this,t||[],!1))},not:function(t){return this.pushStack(n(this,t||[],!0))},is:function(t){return!!n(this,"string"==typeof t&&lt.test(t)?it(t):t||[],!1).length}});var ft,pt=t.document,gt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,mt=it.fn.init=function(t,e){var r,n;if(!t)return this;if("string"==typeof t){if(r="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:gt.exec(t),!r||!r[1]&&e)return!e||e.jquery?(e||ft).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof it?e[0]:e,it.merge(this,it.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:pt,!0)),ht.test(r[1])&&it.isPlainObject(e))for(r in e)it.isFunction(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}if(n=pt.getElementById(r[2]),n&&n.parentNode){if(n.id!==r[2])return ft.find(t);this.length=1,this[0]=n}return this.context=pt,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):it.isFunction(t)?"undefined"!=typeof ft.ready?ft.ready(t):t(it):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),it.makeArray(t,this))};mt.prototype=it.fn,ft=it(pt);var yt=/^(?:parents|prev(?:Until|All))/,vt={children:!0,contents:!0,next:!0,prev:!0};it.extend({dir:function(t,e,r){for(var n=[],i=t[e];i&&9!==i.nodeType&&(void 0===r||1!==i.nodeType||!it(i).is(r));)1===i.nodeType&&n.push(i),i=i[e];return n},sibling:function(t,e){for(var r=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&r.push(t);return r}}),it.fn.extend({has:function(t){var e,r=it(t,this),n=r.length;return this.filter(function(){for(e=0;n>e;e++)if(it.contains(this,r[e]))return!0})},closest:function(t,e){for(var r,n=0,i=this.length,o=[],s=lt.test(t)||"string"!=typeof t?it(t,e||this.context):0;i>n;n++)for(r=this[n];r&&r!==e;r=r.parentNode)if(r.nodeType<11&&(s?s.index(r)>-1:1===r.nodeType&&it.find.matchesSelector(r,t))){o.push(r);break}return this.pushStack(o.length>1?it.unique(o):o)},index:function(t){return t?"string"==typeof t?it.inArray(this[0],it(t)):it.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(it.unique(it.merge(this.get(),it(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),it.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return it.dir(t,"parentNode")},parentsUntil:function(t,e,r){return it.dir(t,"parentNode",r)},next:function(t){return i(t,"nextSibling")},prev:function(t){return i(t,"previousSibling")},nextAll:function(t){return it.dir(t,"nextSibling")},prevAll:function(t){return it.dir(t,"previousSibling")},nextUntil:function(t,e,r){return it.dir(t,"nextSibling",r)},prevUntil:function(t,e,r){return it.dir(t,"previousSibling",r)},siblings:function(t){return it.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return it.sibling(t.firstChild)},contents:function(t){return it.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:it.merge([],t.childNodes)}},function(t,e){it.fn[t]=function(r,n){var i=it.map(this,e,r);return"Until"!==t.slice(-5)&&(n=r),n&&"string"==typeof n&&(i=it.filter(n,i)),this.length>1&&(vt[t]||(i=it.unique(i)),yt.test(t)&&(i=i.reverse())),this.pushStack(i)}});var bt=/\S+/g,wt={};it.Callbacks=function(t){t="string"==typeof t?wt[t]||o(t):it.extend({},t);var e,r,n,i,s,a,u=[],c=!t.once&&[],l=function(o){for(r=t.memory&&o,n=!0,s=a||0,a=0,i=u.length,e=!0;u&&i>s;s++)if(u[s].apply(o[0],o[1])===!1&&t.stopOnFalse){r=!1;break}e=!1,u&&(c?c.length&&l(c.shift()):r?u=[]:h.disable())},h={add:function(){if(u){var n=u.length;!function o(e){it.each(e,function(e,r){var n=it.type(r);"function"===n?t.unique&&h.has(r)||u.push(r):r&&r.length&&"string"!==n&&o(r)})}(arguments),e?i=u.length:r&&(a=n,l(r))}return this},remove:function(){return u&&it.each(arguments,function(t,r){for(var n;(n=it.inArray(r,u,n))>-1;)u.splice(n,1),e&&(i>=n&&i--,s>=n&&s--)}),this},has:function(t){return t?it.inArray(t,u)>-1:!(!u||!u.length)},empty:function(){return u=[],i=0,this},disable:function(){return u=c=r=void 0,this},disabled:function(){return!u},lock:function(){return c=void 0,r||h.disable(),this},locked:function(){return!c},fireWith:function(t,r){return!u||n&&!c||(r=r||[],r=[t,r.slice?r.slice():r],e?c.push(r):l(r)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!n}};return h},it.extend({Deferred:function(t){var e=[["resolve","done",it.Callbacks("once memory"),"resolved"],["reject","fail",it.Callbacks("once memory"),"rejected"],["notify","progress",it.Callbacks("memory")]],r="pending",n={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var t=arguments;return it.Deferred(function(r){it.each(e,function(e,o){var s=it.isFunction(t[e])&&t[e];i[o[1]](function(){var t=s&&s.apply(this,arguments);t&&it.isFunction(t.promise)?t.promise().done(r.resolve).fail(r.reject).progress(r.notify):r[o[0]+"With"](this===n?r.promise():this,s?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?it.extend(t,n):n}},i={};return n.pipe=n.then,it.each(e,function(t,o){var s=o[2],a=o[3];n[o[1]]=s.add,a&&s.add(function(){r=a},e[1^t][2].disable,e[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?n:this,arguments),this},i[o[0]+"With"]=s.fireWith}),n.promise(i),t&&t.call(i,i),i},when:function(t){var e,r,n,i=0,o=X.call(arguments),s=o.length,a=1!==s||t&&it.isFunction(t.promise)?s:0,u=1===a?t:it.Deferred(),c=function(t,r,n){return function(i){r[t]=this,n[t]=arguments.length>1?X.call(arguments):i,n===e?u.notifyWith(r,n):--a||u.resolveWith(r,n)}};if(s>1)for(e=new Array(s),r=new Array(s),n=new Array(s);s>i;i++)o[i]&&it.isFunction(o[i].promise)?o[i].promise().done(c(i,n,o)).fail(u.reject).progress(c(i,r,e)):--a;return a||u.resolveWith(n,o),u.promise()}});var kt;it.fn.ready=function(t){return it.ready.promise().done(t),this},it.extend({isReady:!1,readyWait:1,holdReady:function(t){t?it.readyWait++:it.ready(!0)},ready:function(t){if(t===!0?!--it.readyWait:!it.isReady){if(!pt.body)return setTimeout(it.ready);it.isReady=!0,t!==!0&&--it.readyWait>0||(kt.resolveWith(pt,[it]),it.fn.triggerHandler&&(it(pt).triggerHandler("ready"),it(pt).off("ready")))}}}),it.ready.promise=function(e){if(!kt)if(kt=it.Deferred(),"complete"===pt.readyState)setTimeout(it.ready);else if(pt.addEventListener)pt.addEventListener("DOMContentLoaded",a,!1),t.addEventListener("load",a,!1);else{pt.attachEvent("onreadystatechange",a),t.attachEvent("onload",a);var r=!1;try{r=null==t.frameElement&&pt.documentElement}catch(n){}r&&r.doScroll&&!function i(){if(!it.isReady){try{r.doScroll("left")}catch(t){return setTimeout(i,50)}s(),it.ready()}}()}return kt.promise(e)};var Ct,St="undefined";for(Ct in it(rt))break;rt.ownLast="0"!==Ct,rt.inlineBlockNeedsLayout=!1,it(function(){var t,e,r,n;r=pt.getElementsByTagName("body")[0],r&&r.style&&(e=pt.createElement("div"),n=pt.createElement("div"),n.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",r.appendChild(n).appendChild(e),typeof e.style.zoom!==St&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",rt.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(r.style.zoom=1)),r.removeChild(n))}),function(){var t=pt.createElement("div");if(null==rt.deleteExpando){rt.deleteExpando=!0;try{delete t.test}catch(e){rt.deleteExpando=!1}}t=null}(),it.acceptData=function(t){var e=it.noData[(t.nodeName+" ").toLowerCase()],r=+t.nodeType||1;return(1===r||9===r)&&(!e||e!==!0&&t.getAttribute("classid")===e)};var xt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,At=/([A-Z])/g;it.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return t=t.nodeType?it.cache[t[it.expando]]:t[it.expando],!!t&&!c(t)},data:function(t,e,r){return l(t,e,r)},removeData:function(t,e){return h(t,e)},_data:function(t,e,r){return l(t,e,r,!0)},_removeData:function(t,e){return h(t,e,!0)}}),it.fn.extend({data:function(t,e){var r,n,i,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(i=it.data(o),1===o.nodeType&&!it._data(o,"parsedAttrs"))){for(r=s.length;r--;)s[r]&&(n=s[r].name,0===n.indexOf("data-")&&(n=it.camelCase(n.slice(5)),u(o,n,i[n])));it._data(o,"parsedAttrs",!0)}return i}return"object"==typeof t?this.each(function(){it.data(this,t)}):arguments.length>1?this.each(function(){it.data(this,t,e)}):o?u(o,t,it.data(o,t)):void 0},removeData:function(t){return this.each(function(){it.removeData(this,t)})}}),it.extend({queue:function(t,e,r){var n;return t?(e=(e||"fx")+"queue",n=it._data(t,e),r&&(!n||it.isArray(r)?n=it._data(t,e,it.makeArray(r)):n.push(r)),n||[]):void 0},dequeue:function(t,e){e=e||"fx";var r=it.queue(t,e),n=r.length,i=r.shift(),o=it._queueHooks(t,e),s=function(){it.dequeue(t,e)};"inprogress"===i&&(i=r.shift(),n--),i&&("fx"===e&&r.unshift("inprogress"),delete o.stop,i.call(t,s,o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var r=e+"queueHooks";return it._data(t,r)||it._data(t,r,{empty:it.Callbacks("once memory").add(function(){it._removeData(t,e+"queue"),it._removeData(t,r)})})}}),it.fn.extend({queue:function(t,e){var r=2;return"string"!=typeof t&&(e=t,t="fx",r--),arguments.length<r?it.queue(this[0],t):void 0===e?this:this.each(function(){var r=it.queue(this,t,e);it._queueHooks(this,t),"fx"===t&&"inprogress"!==r[0]&&it.dequeue(this,t)})},dequeue:function(t){return this.each(function(){it.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var r,n=1,i=it.Deferred(),o=this,s=this.length,a=function(){--n||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)r=it._data(o[s],t+"queueHooks"),r&&r.empty&&(n++,r.empty.add(a));return a(),i.promise(e)}});var Tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Et=["Top","Right","Bottom","Left"],It=function(t,e){return t=e||t,"none"===it.css(t,"display")||!it.contains(t.ownerDocument,t)},jt=it.access=function(t,e,r,n,i,o,s){var a=0,u=t.length,c=null==r;if("object"===it.type(r)){i=!0;for(a in r)it.access(t,e,a,r[a],!0,o,s)}else if(void 0!==n&&(i=!0,it.isFunction(n)||(s=!0),c&&(s?(e.call(t,n),e=null):(c=e,e=function(t,e,r){return c.call(it(t),r)})),e))for(;u>a;a++)e(t[a],r,s?n:n.call(t[a],a,e(t[a],r)));return i?t:c?e.call(t):u?e(t[0],r):o},_t=/^(?:checkbox|radio)$/i;!function(){var t=pt.createElement("input"),e=pt.createElement("div"),r=pt.createDocumentFragment();if(e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",rt.leadingWhitespace=3===e.firstChild.nodeType,rt.tbody=!e.getElementsByTagName("tbody").length,rt.htmlSerialize=!!e.getElementsByTagName("link").length,rt.html5Clone="<:nav></:nav>"!==pt.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,r.appendChild(t),rt.appendChecked=t.checked,e.innerHTML="<textarea>x</textarea>",rt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,r.appendChild(e),e.innerHTML="<input type='radio' checked='checked' name='t'/>",rt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,rt.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",function(){rt.noCloneEvent=!1}),e.cloneNode(!0).click()),null==rt.deleteExpando){rt.deleteExpando=!0;try{delete e.test}catch(n){rt.deleteExpando=!1}}}(),function(){var e,r,n=pt.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})r="on"+e,(rt[e+"Bubbles"]=r in t)||(n.setAttribute(r,"t"),rt[e+"Bubbles"]=n.attributes[r].expando===!1);n=null}();var Ot=/^(?:input|select|textarea)$/i,Nt=/^key/,Bt=/^(?:mouse|pointer|contextmenu)|click/,Pt=/^(?:focusinfocus|focusoutblur)$/,Dt=/^([^.]*)(?:\.(.+)|)$/;it.event={global:{},add:function(t,e,r,n,i){var o,s,a,u,c,l,h,d,f,p,g,m=it._data(t);if(m){for(r.handler&&(u=r,r=u.handler,i=u.selector),r.guid||(r.guid=it.guid++),(s=m.events)||(s=m.events={}),(l=m.handle)||(l=m.handle=function(t){return typeof it===St||t&&it.event.triggered===t.type?void 0:it.event.dispatch.apply(l.elem,arguments)},l.elem=t),e=(e||"").match(bt)||[""],a=e.length;a--;)o=Dt.exec(e[a])||[],f=g=o[1],p=(o[2]||"").split(".").sort(),f&&(c=it.event.special[f]||{},f=(i?c.delegateType:c.bindType)||f,c=it.event.special[f]||{},h=it.extend({type:f,origType:g,data:n,handler:r,guid:r.guid,selector:i,needsContext:i&&it.expr.match.needsContext.test(i),namespace:p.join(".")},u),(d=s[f])||(d=s[f]=[],d.delegateCount=0,c.setup&&c.setup.call(t,n,p,l)!==!1||(t.addEventListener?t.addEventListener(f,l,!1):t.attachEvent&&t.attachEvent("on"+f,l))),c.add&&(c.add.call(t,h),h.handler.guid||(h.handler.guid=r.guid)),i?d.splice(d.delegateCount++,0,h):d.push(h),it.event.global[f]=!0);t=null}},remove:function(t,e,r,n,i){var o,s,a,u,c,l,h,d,f,p,g,m=it.hasData(t)&&it._data(t);if(m&&(l=m.events)){for(e=(e||"").match(bt)||[""],c=e.length;c--;)if(a=Dt.exec(e[c])||[],f=g=a[1],p=(a[2]||"").split(".").sort(),f){for(h=it.event.special[f]||{},f=(n?h.delegateType:h.bindType)||f,d=l[f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=d.length;o--;)s=d[o],!i&&g!==s.origType||r&&r.guid!==s.guid||a&&!a.test(s.namespace)||n&&n!==s.selector&&("**"!==n||!s.selector)||(d.splice(o,1),s.selector&&d.delegateCount--,h.remove&&h.remove.call(t,s));u&&!d.length&&(h.teardown&&h.teardown.call(t,p,m.handle)!==!1||it.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)it.event.remove(t,f+e[c],r,n,!0);it.isEmptyObject(l)&&(delete m.handle,it._removeData(t,"events"))}},trigger:function(e,r,n,i){var o,s,a,u,c,l,h,d=[n||pt],f=et.call(e,"type")?e.type:e,p=et.call(e,"namespace")?e.namespace.split("."):[];if(a=l=n=n||pt,3!==n.nodeType&&8!==n.nodeType&&!Pt.test(f+it.event.triggered)&&(f.indexOf(".")>=0&&(p=f.split("."),f=p.shift(),p.sort()),s=f.indexOf(":")<0&&"on"+f,e=e[it.expando]?e:new it.Event(f,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=p.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),r=null==r?[e]:it.makeArray(r,[e]),c=it.event.special[f]||{},i||!c.trigger||c.trigger.apply(n,r)!==!1)){if(!i&&!c.noBubble&&!it.isWindow(n)){for(u=c.delegateType||f,Pt.test(u+f)||(a=a.parentNode);a;a=a.parentNode)d.push(a),l=a;l===(n.ownerDocument||pt)&&d.push(l.defaultView||l.parentWindow||t)}for(h=0;(a=d[h++])&&!e.isPropagationStopped();)e.type=h>1?u:c.bindType||f,o=(it._data(a,"events")||{})[e.type]&&it._data(a,"handle"),o&&o.apply(a,r),o=s&&a[s],o&&o.apply&&it.acceptData(a)&&(e.result=o.apply(a,r),e.result===!1&&e.preventDefault());if(e.type=f,!i&&!e.isDefaultPrevented()&&(!c._default||c._default.apply(d.pop(),r)===!1)&&it.acceptData(n)&&s&&n[f]&&!it.isWindow(n)){l=n[s],l&&(n[s]=null),it.event.triggered=f;try{n[f]()}catch(g){}it.event.triggered=void 0,l&&(n[s]=l)}return e.result}},dispatch:function(t){t=it.event.fix(t);var e,r,n,i,o,s=[],a=X.call(arguments),u=(it._data(this,"events")||{})[t.type]||[],c=it.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,t)!==!1){for(s=it.event.handlers.call(this,t,u),e=0;(i=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,o=0;(n=i.handlers[o++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(n.namespace))&&(t.handleObj=n,t.data=n.data,r=((it.event.special[n.origType]||{}).handle||n.handler).apply(i.elem,a),void 0!==r&&(t.result=r)===!1&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var r,n,i,o,s=[],a=e.delegateCount,u=t.target;if(a&&u.nodeType&&(!t.button||"click"!==t.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==t.type)){for(i=[],o=0;a>o;o++)n=e[o],r=n.selector+" ",void 0===i[r]&&(i[r]=n.needsContext?it(r,this).index(u)>=0:it.find(r,this,null,[u]).length),i[r]&&i.push(n);i.length&&s.push({elem:u,handlers:i})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},fix:function(t){if(t[it.expando])return t;var e,r,n,i=t.type,o=t,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=Bt.test(i)?this.mouseHooks:Nt.test(i)?this.keyHooks:{}),n=s.props?this.props.concat(s.props):this.props,t=new it.Event(o),e=n.length;e--;)r=n[e],t[r]=o[r];return t.target||(t.target=o.srcElement||pt),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,s.filter?s.filter(t,o):t},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var r,n,i,o=e.button,s=e.fromElement;return null==t.pageX&&null!=e.clientX&&(n=t.target.ownerDocument||pt,i=n.documentElement,r=n.body,t.pageX=e.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),!t.relatedTarget&&s&&(t.relatedTarget=s===t.target?e.toElement:s),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==p()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){return this===p()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return it.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(t){return it.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,r,n){var i=it.extend(new it.Event,r,{type:t,isSimulated:!0,originalEvent:{}});n?it.event.trigger(i,null,e):it.event.dispatch.call(e,i),i.isDefaultPrevented()&&r.preventDefault()}},it.removeEvent=pt.removeEventListener?function(t,e,r){t.removeEventListener&&t.removeEventListener(e,r,!1)}:function(t,e,r){var n="on"+e;t.detachEvent&&(typeof t[n]===St&&(t[n]=null),t.detachEvent(n,r))},it.Event=function(t,e){return this instanceof it.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?d:f):this.type=t,e&&it.extend(this,e),this.timeStamp=t&&t.timeStamp||it.now(),void(this[it.expando]=!0)):new it.Event(t,e)},it.Event.prototype={isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=d,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=d,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=d,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},it.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){it.event.special[t]={delegateType:e,bindType:e,handle:function(t){var r,n=this,i=t.relatedTarget,o=t.handleObj;return(!i||i!==n&&!it.contains(n,i))&&(t.type=o.origType,r=o.handler.apply(this,arguments),t.type=e),r}}}),rt.submitBubbles||(it.event.special.submit={setup:function(){return!it.nodeName(this,"form")&&void it.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,r=it.nodeName(e,"input")||it.nodeName(e,"button")?e.form:void 0;r&&!it._data(r,"submitBubbles")&&(it.event.add(r,"submit._submit",function(t){t._submit_bubble=!0}),it._data(r,"submitBubbles",!0))})},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&it.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){return!it.nodeName(this,"form")&&void it.event.remove(this,"._submit")}}),rt.changeBubbles||(it.event.special.change={setup:function(){return Ot.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(it.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),it.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),it.event.simulate("change",this,t,!0);
})),!1):void it.event.add(this,"beforeactivate._change",function(t){var e=t.target;Ot.test(e.nodeName)&&!it._data(e,"changeBubbles")&&(it.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||it.event.simulate("change",this.parentNode,t,!0)}),it._data(e,"changeBubbles",!0))})},handle:function(t){var e=t.target;return this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type?t.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return it.event.remove(this,"._change"),!Ot.test(this.nodeName)}}),rt.focusinBubbles||it.each({focus:"focusin",blur:"focusout"},function(t,e){var r=function(t){it.event.simulate(e,t.target,it.event.fix(t),!0)};it.event.special[e]={setup:function(){var n=this.ownerDocument||this,i=it._data(n,e);i||n.addEventListener(t,r,!0),it._data(n,e,(i||0)+1)},teardown:function(){var n=this.ownerDocument||this,i=it._data(n,e)-1;i?it._data(n,e,i):(n.removeEventListener(t,r,!0),it._removeData(n,e))}}}),it.fn.extend({on:function(t,e,r,n,i){var o,s;if("object"==typeof t){"string"!=typeof e&&(r=r||e,e=void 0);for(o in t)this.on(o,e,r,t[o],i);return this}if(null==r&&null==n?(n=e,r=e=void 0):null==n&&("string"==typeof e?(n=r,r=void 0):(n=r,r=e,e=void 0)),n===!1)n=f;else if(!n)return this;return 1===i&&(s=n,n=function(t){return it().off(t),s.apply(this,arguments)},n.guid=s.guid||(s.guid=it.guid++)),this.each(function(){it.event.add(this,t,n,r,e)})},one:function(t,e,r,n){return this.on(t,e,r,n,1)},off:function(t,e,r){var n,i;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,it(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return(e===!1||"function"==typeof e)&&(r=e,e=void 0),r===!1&&(r=f),this.each(function(){it.event.remove(this,t,r,e)})},trigger:function(t,e){return this.each(function(){it.event.trigger(t,e,this)})},triggerHandler:function(t,e){var r=this[0];return r?it.event.trigger(t,e,r,!0):void 0}});var Lt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Kt=/ jQuery\d+="(?:null|\d+)"/g,Mt=new RegExp("<(?:"+Lt+")[\\s/>]","i"),$t=/^\s+/,Rt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ht=/<([\w:]+)/,zt=/<tbody/i,Ft=/<|&#?\w+;/,qt=/<(?:script|style|link)/i,Ut=/checked\s*(?:[^=]|=\s*.checked.)/i,Wt=/^$|\/(?:java|ecma)script/i,Vt=/^true\/(.*)/,Gt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Xt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:rt.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Yt=g(pt),Zt=Yt.appendChild(pt.createElement("div"));Xt.optgroup=Xt.option,Xt.tbody=Xt.tfoot=Xt.colgroup=Xt.caption=Xt.thead,Xt.th=Xt.td,it.extend({clone:function(t,e,r){var n,i,o,s,a,u=it.contains(t.ownerDocument,t);if(rt.html5Clone||it.isXMLDoc(t)||!Mt.test("<"+t.nodeName+">")?o=t.cloneNode(!0):(Zt.innerHTML=t.outerHTML,Zt.removeChild(o=Zt.firstChild)),!(rt.noCloneEvent&&rt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||it.isXMLDoc(t)))for(n=m(o),a=m(t),s=0;null!=(i=a[s]);++s)n[s]&&S(i,n[s]);if(e)if(r)for(a=a||m(t),n=n||m(o),s=0;null!=(i=a[s]);s++)C(i,n[s]);else C(t,o);return n=m(o,"script"),n.length>0&&k(n,!u&&m(t,"script")),n=a=i=null,o},buildFragment:function(t,e,r,n){for(var i,o,s,a,u,c,l,h=t.length,d=g(e),f=[],p=0;h>p;p++)if(o=t[p],o||0===o)if("object"===it.type(o))it.merge(f,o.nodeType?[o]:o);else if(Ft.test(o)){for(a=a||d.appendChild(e.createElement("div")),u=(Ht.exec(o)||["",""])[1].toLowerCase(),l=Xt[u]||Xt._default,a.innerHTML=l[1]+o.replace(Rt,"<$1></$2>")+l[2],i=l[0];i--;)a=a.lastChild;if(!rt.leadingWhitespace&&$t.test(o)&&f.push(e.createTextNode($t.exec(o)[0])),!rt.tbody)for(o="table"!==u||zt.test(o)?"<table>"!==l[1]||zt.test(o)?0:a:a.firstChild,i=o&&o.childNodes.length;i--;)it.nodeName(c=o.childNodes[i],"tbody")&&!c.childNodes.length&&o.removeChild(c);for(it.merge(f,a.childNodes),a.textContent="";a.firstChild;)a.removeChild(a.firstChild);a=d.lastChild}else f.push(e.createTextNode(o));for(a&&d.removeChild(a),rt.appendChecked||it.grep(m(f,"input"),y),p=0;o=f[p++];)if((!n||-1===it.inArray(o,n))&&(s=it.contains(o.ownerDocument,o),a=m(d.appendChild(o),"script"),s&&k(a),r))for(i=0;o=a[i++];)Wt.test(o.type||"")&&r.push(o);return a=null,d},cleanData:function(t,e){for(var r,n,i,o,s=0,a=it.expando,u=it.cache,c=rt.deleteExpando,l=it.event.special;null!=(r=t[s]);s++)if((e||it.acceptData(r))&&(i=r[a],o=i&&u[i])){if(o.events)for(n in o.events)l[n]?it.event.remove(r,n):it.removeEvent(r,n,o.handle);u[i]&&(delete u[i],c?delete r[a]:typeof r.removeAttribute!==St?r.removeAttribute(a):r[a]=null,G.push(i))}}}),it.fn.extend({text:function(t){return jt(this,function(t){return void 0===t?it.text(this):this.empty().append((this[0]&&this[0].ownerDocument||pt).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=v(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=v(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var r,n=t?it.filter(t,this):this,i=0;null!=(r=n[i]);i++)e||1!==r.nodeType||it.cleanData(m(r)),r.parentNode&&(e&&it.contains(r.ownerDocument,r)&&k(m(r,"script")),r.parentNode.removeChild(r));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&it.cleanData(m(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&it.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return it.clone(this,t,e)})},html:function(t){return jt(this,function(t){var e=this[0]||{},r=0,n=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(Kt,""):void 0;if(!("string"!=typeof t||qt.test(t)||!rt.htmlSerialize&&Mt.test(t)||!rt.leadingWhitespace&&$t.test(t)||Xt[(Ht.exec(t)||["",""])[1].toLowerCase()])){t=t.replace(Rt,"<$1></$2>");try{for(;n>r;r++)e=this[r]||{},1===e.nodeType&&(it.cleanData(m(e,!1)),e.innerHTML=t);e=0}catch(i){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,it.cleanData(m(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=Y.apply([],t);var r,n,i,o,s,a,u=0,c=this.length,l=this,h=c-1,d=t[0],f=it.isFunction(d);if(f||c>1&&"string"==typeof d&&!rt.checkClone&&Ut.test(d))return this.each(function(r){var n=l.eq(r);f&&(t[0]=d.call(this,r,n.html())),n.domManip(t,e)});if(c&&(a=it.buildFragment(t,this[0].ownerDocument,!1,this),r=a.firstChild,1===a.childNodes.length&&(a=r),r)){for(o=it.map(m(a,"script"),b),i=o.length;c>u;u++)n=a,u!==h&&(n=it.clone(n,!0,!0),i&&it.merge(o,m(n,"script"))),e.call(this[u],n,u);if(i)for(s=o[o.length-1].ownerDocument,it.map(o,w),u=0;i>u;u++)n=o[u],Wt.test(n.type||"")&&!it._data(n,"globalEval")&&it.contains(s,n)&&(n.src?it._evalUrl&&it._evalUrl(n.src):it.globalEval((n.text||n.textContent||n.innerHTML||"").replace(Gt,"")));a=r=null}return this}}),it.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){it.fn[t]=function(t){for(var r,n=0,i=[],o=it(t),s=o.length-1;s>=n;n++)r=n===s?this:this.clone(!0),it(o[n])[e](r),Z.apply(i,r.get());return this.pushStack(i)}});var Qt,Jt={};!function(){var t;rt.shrinkWrapBlocks=function(){if(null!=t)return t;t=!1;var e,r,n;return r=pt.getElementsByTagName("body")[0],r&&r.style?(e=pt.createElement("div"),n=pt.createElement("div"),n.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",r.appendChild(n).appendChild(e),typeof e.style.zoom!==St&&(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(pt.createElement("div")).style.width="5px",t=3!==e.offsetWidth),r.removeChild(n),t):void 0}}();var te,ee,re=/^margin/,ne=new RegExp("^("+Tt+")(?!px)[a-z%]+$","i"),ie=/^(top|right|bottom|left)$/;t.getComputedStyle?(te=function(t){return t.ownerDocument.defaultView.getComputedStyle(t,null)},ee=function(t,e,r){var n,i,o,s,a=t.style;return r=r||te(t),s=r?r.getPropertyValue(e)||r[e]:void 0,r&&(""!==s||it.contains(t.ownerDocument,t)||(s=it.style(t,e)),ne.test(s)&&re.test(e)&&(n=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=r.width,a.width=n,a.minWidth=i,a.maxWidth=o)),void 0===s?s:s+""}):pt.documentElement.currentStyle&&(te=function(t){return t.currentStyle},ee=function(t,e,r){var n,i,o,s,a=t.style;return r=r||te(t),s=r?r[e]:void 0,null==s&&a&&a[e]&&(s=a[e]),ne.test(s)&&!ie.test(e)&&(n=a.left,i=t.runtimeStyle,o=i&&i.left,o&&(i.left=t.currentStyle.left),a.left="fontSize"===e?"1em":s,s=a.pixelLeft+"px",a.left=n,o&&(i.left=o)),void 0===s?s:s+""||"auto"}),!function(){function e(){var e,r,n,i;r=pt.getElementsByTagName("body")[0],r&&r.style&&(e=pt.createElement("div"),n=pt.createElement("div"),n.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",r.appendChild(n).appendChild(e),e.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",o=s=!1,u=!0,t.getComputedStyle&&(o="1%"!==(t.getComputedStyle(e,null)||{}).top,s="4px"===(t.getComputedStyle(e,null)||{width:"4px"}).width,i=e.appendChild(pt.createElement("div")),i.style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",e.style.width="1px",u=!parseFloat((t.getComputedStyle(i,null)||{}).marginRight)),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=e.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",a=0===i[0].offsetHeight,a&&(i[0].style.display="",i[1].style.display="none",a=0===i[0].offsetHeight),r.removeChild(n))}var r,n,i,o,s,a,u;r=pt.createElement("div"),r.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=r.getElementsByTagName("a")[0],(n=i&&i.style)&&(n.cssText="float:left;opacity:.5",rt.opacity="0.5"===n.opacity,rt.cssFloat=!!n.cssFloat,r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",rt.clearCloneStyle="content-box"===r.style.backgroundClip,rt.boxSizing=""===n.boxSizing||""===n.MozBoxSizing||""===n.WebkitBoxSizing,it.extend(rt,{reliableHiddenOffsets:function(){return null==a&&e(),a},boxSizingReliable:function(){return null==s&&e(),s},pixelPosition:function(){return null==o&&e(),o},reliableMarginRight:function(){return null==u&&e(),u}}))}(),it.swap=function(t,e,r,n){var i,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];i=r.apply(t,n||[]);for(o in e)t.style[o]=s[o];return i};var oe=/alpha\([^)]*\)/i,se=/opacity\s*=\s*([^)]*)/,ae=/^(none|table(?!-c[ea]).+)/,ue=new RegExp("^("+Tt+")(.*)$","i"),ce=new RegExp("^([+-])=("+Tt+")","i"),le={position:"absolute",visibility:"hidden",display:"block"},he={letterSpacing:"0",fontWeight:"400"},de=["Webkit","O","Moz","ms"];it.extend({cssHooks:{opacity:{get:function(t,e){if(e){var r=ee(t,"opacity");return""===r?"1":r}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":rt.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,r,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,s,a=it.camelCase(e),u=t.style;if(e=it.cssProps[a]||(it.cssProps[a]=E(u,a)),s=it.cssHooks[e]||it.cssHooks[a],void 0===r)return s&&"get"in s&&void 0!==(i=s.get(t,!1,n))?i:u[e];if(o=typeof r,"string"===o&&(i=ce.exec(r))&&(r=(i[1]+1)*i[2]+parseFloat(it.css(t,e)),o="number"),null!=r&&r===r&&("number"!==o||it.cssNumber[a]||(r+="px"),rt.clearCloneStyle||""!==r||0!==e.indexOf("background")||(u[e]="inherit"),!(s&&"set"in s&&void 0===(r=s.set(t,r,n)))))try{u[e]=r}catch(c){}}},css:function(t,e,r,n){var i,o,s,a=it.camelCase(e);return e=it.cssProps[a]||(it.cssProps[a]=E(t.style,a)),s=it.cssHooks[e]||it.cssHooks[a],s&&"get"in s&&(o=s.get(t,!0,r)),void 0===o&&(o=ee(t,e,n)),"normal"===o&&e in he&&(o=he[e]),""===r||r?(i=parseFloat(o),r===!0||it.isNumeric(i)?i||0:o):o}}),it.each(["height","width"],function(t,e){it.cssHooks[e]={get:function(t,r,n){return r?ae.test(it.css(t,"display"))&&0===t.offsetWidth?it.swap(t,le,function(){return O(t,e,n)}):O(t,e,n):void 0},set:function(t,r,n){var i=n&&te(t);return j(t,r,n?_(t,e,n,rt.boxSizing&&"border-box"===it.css(t,"boxSizing",!1,i),i):0)}}}),rt.opacity||(it.cssHooks.opacity={get:function(t,e){return se.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var r=t.style,n=t.currentStyle,i=it.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=n&&n.filter||r.filter||"";r.zoom=1,(e>=1||""===e)&&""===it.trim(o.replace(oe,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===e||n&&!n.filter)||(r.filter=oe.test(o)?o.replace(oe,i):o+" "+i)}}),it.cssHooks.marginRight=T(rt.reliableMarginRight,function(t,e){return e?it.swap(t,{display:"inline-block"},ee,[t,"marginRight"]):void 0}),it.each({margin:"",padding:"",border:"Width"},function(t,e){it.cssHooks[t+e]={expand:function(r){for(var n=0,i={},o="string"==typeof r?r.split(" "):[r];4>n;n++)i[t+Et[n]+e]=o[n]||o[n-2]||o[0];return i}},re.test(t)||(it.cssHooks[t+e].set=j)}),it.fn.extend({css:function(t,e){return jt(this,function(t,e,r){var n,i,o={},s=0;if(it.isArray(e)){for(n=te(t),i=e.length;i>s;s++)o[e[s]]=it.css(t,e[s],!1,n);return o}return void 0!==r?it.style(t,e,r):it.css(t,e)},t,e,arguments.length>1)},show:function(){return I(this,!0)},hide:function(){return I(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){It(this)?it(this).show():it(this).hide()})}}),it.Tween=N,N.prototype={constructor:N,init:function(t,e,r,n,i,o){this.elem=t,this.prop=r,this.easing=i||"swing",this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(it.cssNumber[r]?"":"px")},cur:function(){var t=N.propHooks[this.prop];return t&&t.get?t.get(this):N.propHooks._default.get(this)},run:function(t){var e,r=N.propHooks[this.prop];return this.pos=e=this.options.duration?it.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):N.propHooks._default.set(this),this}},N.prototype.init.prototype=N.prototype,N.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=it.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){it.fx.step[t.prop]?it.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[it.cssProps[t.prop]]||it.cssHooks[t.prop])?it.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},N.propHooks.scrollTop=N.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},it.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},it.fx=N.prototype.init,it.fx.step={};var fe,pe,ge=/^(?:toggle|show|hide)$/,me=new RegExp("^(?:([+-])=|)("+Tt+")([a-z%]*)$","i"),ye=/queueHooks$/,ve=[L],be={"*":[function(t,e){var r=this.createTween(t,e),n=r.cur(),i=me.exec(e),o=i&&i[3]||(it.cssNumber[t]?"":"px"),s=(it.cssNumber[t]||"px"!==o&&+n)&&me.exec(it.css(r.elem,t)),a=1,u=20;if(s&&s[3]!==o){o=o||s[3],i=i||[],s=+n||1;do a=a||".5",s/=a,it.style(r.elem,t,s+o);while(a!==(a=r.cur()/n)&&1!==a&&--u)}return i&&(s=r.start=+s||+n||0,r.unit=o,r.end=i[1]?s+(i[1]+1)*i[2]:+i[2]),r}]};it.Animation=it.extend(M,{tweener:function(t,e){it.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var r,n=0,i=t.length;i>n;n++)r=t[n],be[r]=be[r]||[],be[r].unshift(e)},prefilter:function(t,e){e?ve.unshift(t):ve.push(t)}}),it.speed=function(t,e,r){var n=t&&"object"==typeof t?it.extend({},t):{complete:r||!r&&e||it.isFunction(t)&&t,duration:t,easing:r&&e||e&&!it.isFunction(e)&&e};return n.duration=it.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in it.fx.speeds?it.fx.speeds[n.duration]:it.fx.speeds._default,(null==n.queue||n.queue===!0)&&(n.queue="fx"),n.old=n.complete,n.complete=function(){it.isFunction(n.old)&&n.old.call(this),n.queue&&it.dequeue(this,n.queue)},n},it.fn.extend({fadeTo:function(t,e,r,n){return this.filter(It).css("opacity",0).show().end().animate({opacity:e},t,r,n)},animate:function(t,e,r,n){var i=it.isEmptyObject(t),o=it.speed(e,r,n),s=function(){var e=M(this,it.extend({},t),o);(i||it._data(this,"finish"))&&e.stop(!0)};return s.finish=s,i||o.queue===!1?this.each(s):this.queue(o.queue,s)},stop:function(t,e,r){var n=function(t){var e=t.stop;delete t.stop,e(r)};return"string"!=typeof t&&(r=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,i=null!=t&&t+"queueHooks",o=it.timers,s=it._data(this);if(i)s[i]&&s[i].stop&&n(s[i]);else for(i in s)s[i]&&s[i].stop&&ye.test(i)&&n(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(r),e=!1,o.splice(i,1));(e||!r)&&it.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,r=it._data(this),n=r[t+"queue"],i=r[t+"queueHooks"],o=it.timers,s=n?n.length:0;for(r.finish=!0,it.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;s>e;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete r.finish})}}),it.each(["toggle","show","hide"],function(t,e){var r=it.fn[e];it.fn[e]=function(t,n,i){return null==t||"boolean"==typeof t?r.apply(this,arguments):this.animate(P(e,!0),t,n,i)}}),it.each({slideDown:P("show"),slideUp:P("hide"),slideToggle:P("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){it.fn[t]=function(t,r,n){return this.animate(e,t,r,n)}}),it.timers=[],it.fx.tick=function(){var t,e=it.timers,r=0;for(fe=it.now();r<e.length;r++)t=e[r],t()||e[r]!==t||e.splice(r--,1);e.length||it.fx.stop(),fe=void 0},it.fx.timer=function(t){it.timers.push(t),t()?it.fx.start():it.timers.pop()},it.fx.interval=13,it.fx.start=function(){pe||(pe=setInterval(it.fx.tick,it.fx.interval))},it.fx.stop=function(){clearInterval(pe),pe=null},it.fx.speeds={slow:600,fast:200,_default:400},it.fn.delay=function(t,e){return t=it.fx?it.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,r){var n=setTimeout(e,t);r.stop=function(){clearTimeout(n)}})},function(){var t,e,r,n,i;e=pt.createElement("div"),e.setAttribute("className","t"),e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=e.getElementsByTagName("a")[0],r=pt.createElement("select"),i=r.appendChild(pt.createElement("option")),t=e.getElementsByTagName("input")[0],n.style.cssText="top:1px",rt.getSetAttribute="t"!==e.className,rt.style=/top/.test(n.getAttribute("style")),rt.hrefNormalized="/a"===n.getAttribute("href"),rt.checkOn=!!t.value,rt.optSelected=i.selected,rt.enctype=!!pt.createElement("form").enctype,r.disabled=!0,rt.optDisabled=!i.disabled,t=pt.createElement("input"),t.setAttribute("value",""),rt.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),rt.radioValue="t"===t.value}();var we=/\r/g;it.fn.extend({val:function(t){var e,r,n,i=this[0];return arguments.length?(n=it.isFunction(t),this.each(function(r){var i;1===this.nodeType&&(i=n?t.call(this,r,it(this).val()):t,null==i?i="":"number"==typeof i?i+="":it.isArray(i)&&(i=it.map(i,function(t){return null==t?"":t+""})),e=it.valHooks[this.type]||it.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=it.valHooks[i.type]||it.valHooks[i.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(r=e.get(i,"value"))?r:(r=i.value,"string"==typeof r?r.replace(we,""):null==r?"":r)):void 0}}),it.extend({valHooks:{option:{get:function(t){var e=it.find.attr(t,"value");return null!=e?e:it.trim(it.text(t))}},select:{get:function(t){for(var e,r,n=t.options,i=t.selectedIndex,o="select-one"===t.type||0>i,s=o?null:[],a=o?i+1:n.length,u=0>i?a:o?i:0;a>u;u++)if(r=n[u],!(!r.selected&&u!==i||(rt.optDisabled?r.disabled:null!==r.getAttribute("disabled"))||r.parentNode.disabled&&it.nodeName(r.parentNode,"optgroup"))){if(e=it(r).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var r,n,i=t.options,o=it.makeArray(e),s=i.length;s--;)if(n=i[s],it.inArray(it.valHooks.option.get(n),o)>=0)try{n.selected=r=!0}catch(a){n.scrollHeight}else n.selected=!1;return r||(t.selectedIndex=-1),i}}}}),it.each(["radio","checkbox"],function(){it.valHooks[this]={set:function(t,e){return it.isArray(e)?t.checked=it.inArray(it(t).val(),e)>=0:void 0}},rt.checkOn||(it.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var ke,Ce,Se=it.expr.attrHandle,xe=/^(?:checked|selected)$/i,Ae=rt.getSetAttribute,Te=rt.input;it.fn.extend({attr:function(t,e){return jt(this,it.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){it.removeAttr(this,t)})}}),it.extend({attr:function(t,e,r){var n,i,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===St?it.prop(t,e,r):(1===o&&it.isXMLDoc(t)||(e=e.toLowerCase(),n=it.attrHooks[e]||(it.expr.match.bool.test(e)?Ce:ke)),void 0===r?n&&"get"in n&&null!==(i=n.get(t,e))?i:(i=it.find.attr(t,e),null==i?void 0:i):null!==r?n&&"set"in n&&void 0!==(i=n.set(t,r,e))?i:(t.setAttribute(e,r+""),r):void it.removeAttr(t,e))},removeAttr:function(t,e){var r,n,i=0,o=e&&e.match(bt);if(o&&1===t.nodeType)for(;r=o[i++];)n=it.propFix[r]||r,it.expr.match.bool.test(r)?Te&&Ae||!xe.test(r)?t[n]=!1:t[it.camelCase("default-"+r)]=t[n]=!1:it.attr(t,r,""),t.removeAttribute(Ae?r:n)},attrHooks:{type:{set:function(t,e){if(!rt.radioValue&&"radio"===e&&it.nodeName(t,"input")){var r=t.value;return t.setAttribute("type",e),r&&(t.value=r),e}}}}}),Ce={set:function(t,e,r){return e===!1?it.removeAttr(t,r):Te&&Ae||!xe.test(r)?t.setAttribute(!Ae&&it.propFix[r]||r,r):t[it.camelCase("default-"+r)]=t[r]=!0,r}},it.each(it.expr.match.bool.source.match(/\w+/g),function(t,e){var r=Se[e]||it.find.attr;Se[e]=Te&&Ae||!xe.test(e)?function(t,e,n){var i,o;return n||(o=Se[e],Se[e]=i,i=null!=r(t,e,n)?e.toLowerCase():null,Se[e]=o),i}:function(t,e,r){return r?void 0:t[it.camelCase("default-"+e)]?e.toLowerCase():null}}),Te&&Ae||(it.attrHooks.value={set:function(t,e,r){return it.nodeName(t,"input")?void(t.defaultValue=e):ke&&ke.set(t,e,r)}}),Ae||(ke={set:function(t,e,r){var n=t.getAttributeNode(r);return n||t.setAttributeNode(n=t.ownerDocument.createAttribute(r)),n.value=e+="","value"===r||e===t.getAttribute(r)?e:void 0}},Se.id=Se.name=Se.coords=function(t,e,r){var n;return r?void 0:(n=t.getAttributeNode(e))&&""!==n.value?n.value:null},it.valHooks.button={get:function(t,e){var r=t.getAttributeNode(e);return r&&r.specified?r.value:void 0},set:ke.set},it.attrHooks.contenteditable={set:function(t,e,r){ke.set(t,""!==e&&e,r)}},it.each(["width","height"],function(t,e){it.attrHooks[e]={set:function(t,r){return""===r?(t.setAttribute(e,"auto"),r):void 0}}})),rt.style||(it.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var Ee=/^(?:input|select|textarea|button|object)$/i,Ie=/^(?:a|area)$/i;it.fn.extend({prop:function(t,e){return jt(this,it.prop,t,e,arguments.length>1)},removeProp:function(t){return t=it.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(e){}})}}),it.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,r){var n,i,o,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return o=1!==s||!it.isXMLDoc(t),o&&(e=it.propFix[e]||e,i=it.propHooks[e]),void 0!==r?i&&"set"in i&&void 0!==(n=i.set(t,r,e))?n:t[e]=r:i&&"get"in i&&null!==(n=i.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=it.find.attr(t,"tabindex");return e?parseInt(e,10):Ee.test(t.nodeName)||Ie.test(t.nodeName)&&t.href?0:-1}}}}),rt.hrefNormalized||it.each(["href","src"],function(t,e){it.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),rt.optSelected||(it.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),it.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){it.propFix[this.toLowerCase()]=this}),rt.enctype||(it.propFix.enctype="encoding");var je=/[\t\r\n\f]/g;it.fn.extend({addClass:function(t){var e,r,n,i,o,s,a=0,u=this.length,c="string"==typeof t&&t;if(it.isFunction(t))return this.each(function(e){it(this).addClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(bt)||[];u>a;a++)if(r=this[a],n=1===r.nodeType&&(r.className?(" "+r.className+" ").replace(je," "):" ")){for(o=0;i=e[o++];)n.indexOf(" "+i+" ")<0&&(n+=i+" ");s=it.trim(n),r.className!==s&&(r.className=s)}return this},removeClass:function(t){var e,r,n,i,o,s,a=0,u=this.length,c=0===arguments.length||"string"==typeof t&&t;if(it.isFunction(t))return this.each(function(e){it(this).removeClass(t.call(this,e,this.className))});if(c)for(e=(t||"").match(bt)||[];u>a;a++)if(r=this[a],n=1===r.nodeType&&(r.className?(" "+r.className+" ").replace(je," "):"")){for(o=0;i=e[o++];)for(;n.indexOf(" "+i+" ")>=0;)n=n.replace(" "+i+" "," ");s=t?it.trim(n):"",r.className!==s&&(r.className=s)}return this},toggleClass:function(t,e){var r=typeof t;return"boolean"==typeof e&&"string"===r?e?this.addClass(t):this.removeClass(t):this.each(it.isFunction(t)?function(r){it(this).toggleClass(t.call(this,r,this.className,e),e)}:function(){if("string"===r)for(var e,n=0,i=it(this),o=t.match(bt)||[];e=o[n++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else(r===St||"boolean"===r)&&(this.className&&it._data(this,"__className__",this.className),this.className=this.className||t===!1?"":it._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",r=0,n=this.length;n>r;r++)if(1===this[r].nodeType&&(" "+this[r].className+" ").replace(je," ").indexOf(e)>=0)return!0;return!1}}),it.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(t,e){it.fn[e]=function(t,r){return arguments.length>0?this.on(e,null,t,r):this.trigger(e)}}),it.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,r){return this.on(t,null,e,r)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,r,n){return this.on(e,t,r,n)},undelegate:function(t,e,r){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",r)}});var _e=it.now(),Oe=/\?/,Ne=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;it.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var r,n=null,i=it.trim(e+"");return i&&!it.trim(i.replace(Ne,function(t,e,i,o){return r&&e&&(n=0),0===n?t:(r=i||e,n+=!o-!i,"")}))?Function("return "+i)():it.error("Invalid JSON: "+e)},it.parseXML=function(e){var r,n;if(!e||"string"!=typeof e)return null;try{t.DOMParser?(n=new DOMParser,r=n.parseFromString(e,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(e))}catch(i){r=void 0}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||it.error("Invalid XML: "+e),r};var Be,Pe,De=/#.*$/,Le=/([?&])_=[^&]*/,Ke=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Me=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,$e=/^(?:GET|HEAD)$/,Re=/^\/\//,He=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ze={},Fe={},qe="*/".concat("*");try{Pe=location.href}catch(Ue){Pe=pt.createElement("a"),Pe.href="",Pe=Pe.href}Be=He.exec(Pe.toLowerCase())||[],it.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Pe,type:"GET",isLocal:Me.test(Be[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qe,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":it.parseJSON,"text xml":it.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?H(H(t,it.ajaxSettings),e):H(it.ajaxSettings,t)},ajaxPrefilter:$(ze),ajaxTransport:$(Fe),ajax:function(t,e){function r(t,e,r,n){var i,l,y,v,w,C=e;2!==b&&(b=2,a&&clearTimeout(a),c=void 0,s=n||"",k.readyState=t>0?4:0,i=t>=200&&300>t||304===t,r&&(v=z(h,k,r)),v=F(h,v,k,i),i?(h.ifModified&&(w=k.getResponseHeader("Last-Modified"),w&&(it.lastModified[o]=w),w=k.getResponseHeader("etag"),w&&(it.etag[o]=w)),204===t||"HEAD"===h.type?C="nocontent":304===t?C="notmodified":(C=v.state,l=v.data,y=v.error,i=!y)):(y=C,(t||!C)&&(C="error",0>t&&(t=0))),k.status=t,k.statusText=(e||C)+"",i?p.resolveWith(d,[l,C,k]):p.rejectWith(d,[k,C,y]),k.statusCode(m),m=void 0,u&&f.trigger(i?"ajaxSuccess":"ajaxError",[k,h,i?l:y]),g.fireWith(d,[k,C]),u&&(f.trigger("ajaxComplete",[k,h]),--it.active||it.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i,o,s,a,u,c,l,h=it.ajaxSetup({},e),d=h.context||h,f=h.context&&(d.nodeType||d.jquery)?it(d):it.event,p=it.Deferred(),g=it.Callbacks("once memory"),m=h.statusCode||{},y={},v={},b=0,w="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!l)for(l={};e=Ke.exec(s);)l[e[1].toLowerCase()]=e[2];e=l[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(t,e){var r=t.toLowerCase();return b||(t=v[r]=v[r]||t,y[t]=e),this},overrideMimeType:function(t){return b||(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>b)for(e in t)m[e]=[m[e],t[e]];else k.always(t[k.status]);return this},abort:function(t){var e=t||w;return c&&c.abort(e),r(0,e),this}};if(p.promise(k).complete=g.add,k.success=k.done,k.error=k.fail,h.url=((t||h.url||Pe)+"").replace(De,"").replace(Re,Be[1]+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=it.trim(h.dataType||"*").toLowerCase().match(bt)||[""],null==h.crossDomain&&(n=He.exec(h.url.toLowerCase()),h.crossDomain=!(!n||n[1]===Be[1]&&n[2]===Be[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(Be[3]||("http:"===Be[1]?"80":"443")))),h.data&&h.processData&&"string"!=typeof h.data&&(h.data=it.param(h.data,h.traditional)),R(ze,h,e,k),2===b)return k;u=h.global,u&&0===it.active++&&it.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!$e.test(h.type),o=h.url,h.hasContent||(h.data&&(o=h.url+=(Oe.test(o)?"&":"?")+h.data,delete h.data),h.cache===!1&&(h.url=Le.test(o)?o.replace(Le,"$1_="+_e++):o+(Oe.test(o)?"&":"?")+"_="+_e++)),h.ifModified&&(it.lastModified[o]&&k.setRequestHeader("If-Modified-Since",it.lastModified[o]),it.etag[o]&&k.setRequestHeader("If-None-Match",it.etag[o])),(h.data&&h.hasContent&&h.contentType!==!1||e.contentType)&&k.setRequestHeader("Content-Type",h.contentType),k.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+qe+"; q=0.01":""):h.accepts["*"]);
for(i in h.headers)k.setRequestHeader(i,h.headers[i]);if(h.beforeSend&&(h.beforeSend.call(d,k,h)===!1||2===b))return k.abort();w="abort";for(i in{success:1,error:1,complete:1})k[i](h[i]);if(c=R(Fe,h,e,k)){k.readyState=1,u&&f.trigger("ajaxSend",[k,h]),h.async&&h.timeout>0&&(a=setTimeout(function(){k.abort("timeout")},h.timeout));try{b=1,c.send(y,r)}catch(C){if(!(2>b))throw C;r(-1,C)}}else r(-1,"No Transport");return k},getJSON:function(t,e,r){return it.get(t,e,r,"json")},getScript:function(t,e){return it.get(t,void 0,e,"script")}}),it.each(["get","post"],function(t,e){it[e]=function(t,r,n,i){return it.isFunction(r)&&(i=i||n,n=r,r=void 0),it.ajax({url:t,type:e,dataType:i,data:r,success:n})}}),it.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){it.fn[e]=function(t){return this.on(e,t)}}),it._evalUrl=function(t){return it.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},it.fn.extend({wrapAll:function(t){if(it.isFunction(t))return this.each(function(e){it(this).wrapAll(t.call(this,e))});if(this[0]){var e=it(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return this.each(it.isFunction(t)?function(e){it(this).wrapInner(t.call(this,e))}:function(){var e=it(this),r=e.contents();r.length?r.wrapAll(t):e.append(t)})},wrap:function(t){var e=it.isFunction(t);return this.each(function(r){it(this).wrapAll(e?t.call(this,r):t)})},unwrap:function(){return this.parent().each(function(){it.nodeName(this,"body")||it(this).replaceWith(this.childNodes)}).end()}}),it.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!rt.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||it.css(t,"display"))},it.expr.filters.visible=function(t){return!it.expr.filters.hidden(t)};var We=/%20/g,Ve=/\[\]$/,Ge=/\r?\n/g,Xe=/^(?:submit|button|image|reset|file)$/i,Ye=/^(?:input|select|textarea|keygen)/i;it.param=function(t,e){var r,n=[],i=function(t,e){e=it.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=it.ajaxSettings&&it.ajaxSettings.traditional),it.isArray(t)||t.jquery&&!it.isPlainObject(t))it.each(t,function(){i(this.name,this.value)});else for(r in t)q(r,t[r],e,i);return n.join("&").replace(We,"+")},it.fn.extend({serialize:function(){return it.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=it.prop(this,"elements");return t?it.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!it(this).is(":disabled")&&Ye.test(this.nodeName)&&!Xe.test(t)&&(this.checked||!_t.test(t))}).map(function(t,e){var r=it(this).val();return null==r?null:it.isArray(r)?it.map(r,function(t){return{name:e.name,value:t.replace(Ge,"\r\n")}}):{name:e.name,value:r.replace(Ge,"\r\n")}}).get()}}),it.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&U()||W()}:U;var Ze=0,Qe={},Je=it.ajaxSettings.xhr();t.ActiveXObject&&it(t).on("unload",function(){for(var t in Qe)Qe[t](void 0,!0)}),rt.cors=!!Je&&"withCredentials"in Je,Je=rt.ajax=!!Je,Je&&it.ajaxTransport(function(t){if(!t.crossDomain||rt.cors){var e;return{send:function(r,n){var i,o=t.xhr(),s=++Ze;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(i in t.xhrFields)o[i]=t.xhrFields[i];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(i in r)void 0!==r[i]&&o.setRequestHeader(i,r[i]+"");o.send(t.hasContent&&t.data||null),e=function(r,i){var a,u,c;if(e&&(i||4===o.readyState))if(delete Qe[s],e=void 0,o.onreadystatechange=it.noop,i)4!==o.readyState&&o.abort();else{c={},a=o.status,"string"==typeof o.responseText&&(c.text=o.responseText);try{u=o.statusText}catch(l){u=""}a||!t.isLocal||t.crossDomain?1223===a&&(a=204):a=c.text?200:404}c&&n(a,u,c,o.getAllResponseHeaders())},t.async?4===o.readyState?setTimeout(e):o.onreadystatechange=Qe[s]=e:e()},abort:function(){e&&e(void 0,!0)}}}}),it.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return it.globalEval(t),t}}}),it.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),it.ajaxTransport("script",function(t){if(t.crossDomain){var e,r=pt.head||it("head")[0]||pt.documentElement;return{send:function(n,i){e=pt.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,r){(r||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,r||i(200,"success"))},r.insertBefore(e,r.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var tr=[],er=/(=)\?(?=&|$)|\?\?/;it.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=tr.pop()||it.expando+"_"+_e++;return this[t]=!0,t}}),it.ajaxPrefilter("json jsonp",function(e,r,n){var i,o,s,a=e.jsonp!==!1&&(er.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&er.test(e.data)&&"data");return a||"jsonp"===e.dataTypes[0]?(i=e.jsonpCallback=it.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(er,"$1"+i):e.jsonp!==!1&&(e.url+=(Oe.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||it.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=t[i],t[i]=function(){s=arguments},n.always(function(){t[i]=o,e[i]&&(e.jsonpCallback=r.jsonpCallback,tr.push(i)),s&&it.isFunction(o)&&o(s[0]),s=o=void 0}),"script"):void 0}),it.parseHTML=function(t,e,r){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(r=e,e=!1),e=e||pt;var n=ht.exec(t),i=!r&&[];return n?[e.createElement(n[1])]:(n=it.buildFragment([t],e,i),i&&i.length&&it(i).remove(),it.merge([],n.childNodes))};var rr=it.fn.load;it.fn.load=function(t,e,r){if("string"!=typeof t&&rr)return rr.apply(this,arguments);var n,i,o,s=this,a=t.indexOf(" ");return a>=0&&(n=it.trim(t.slice(a,t.length)),t=t.slice(0,a)),it.isFunction(e)?(r=e,e=void 0):e&&"object"==typeof e&&(o="POST"),s.length>0&&it.ajax({url:t,type:o,dataType:"html",data:e}).done(function(t){i=arguments,s.html(n?it("<div>").append(it.parseHTML(t)).find(n):t)}).complete(r&&function(t,e){s.each(r,i||[t.responseText,e,t])}),this},it.expr.filters.animated=function(t){return it.grep(it.timers,function(e){return t===e.elem}).length};var nr=t.document.documentElement;it.offset={setOffset:function(t,e,r){var n,i,o,s,a,u,c,l=it.css(t,"position"),h=it(t),d={};"static"===l&&(t.style.position="relative"),a=h.offset(),o=it.css(t,"top"),u=it.css(t,"left"),c=("absolute"===l||"fixed"===l)&&it.inArray("auto",[o,u])>-1,c?(n=h.position(),s=n.top,i=n.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),it.isFunction(e)&&(e=e.call(t,r,a)),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+i),"using"in e?e.using.call(t,d):h.css(d)}},it.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){it.offset.setOffset(this,t,e)});var e,r,n={top:0,left:0},i=this[0],o=i&&i.ownerDocument;return o?(e=o.documentElement,it.contains(e,i)?(typeof i.getBoundingClientRect!==St&&(n=i.getBoundingClientRect()),r=V(o),{top:n.top+(r.pageYOffset||e.scrollTop)-(e.clientTop||0),left:n.left+(r.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):n):void 0},position:function(){if(this[0]){var t,e,r={top:0,left:0},n=this[0];return"fixed"===it.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),it.nodeName(t[0],"html")||(r=t.offset()),r.top+=it.css(t[0],"borderTopWidth",!0),r.left+=it.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-it.css(n,"marginTop",!0),left:e.left-r.left-it.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||nr;t&&!it.nodeName(t,"html")&&"static"===it.css(t,"position");)t=t.offsetParent;return t||nr})}}),it.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var r=/Y/.test(e);it.fn[t]=function(n){return jt(this,function(t,n,i){var o=V(t);return void 0===i?o?e in o?o[e]:o.document.documentElement[n]:t[n]:void(o?o.scrollTo(r?it(o).scrollLeft():i,r?i:it(o).scrollTop()):t[n]=i)},t,n,arguments.length,null)}}),it.each(["top","left"],function(t,e){it.cssHooks[e]=T(rt.pixelPosition,function(t,r){return r?(r=ee(t,e),ne.test(r)?it(t).position()[e]+"px":r):void 0})}),it.each({Height:"height",Width:"width"},function(t,e){it.each({padding:"inner"+t,content:e,"":"outer"+t},function(r,n){it.fn[n]=function(n,i){var o=arguments.length&&(r||"boolean"!=typeof n),s=r||(n===!0||i===!0?"margin":"border");return jt(this,function(e,r,n){var i;return it.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+t],i["scroll"+t],e.body["offset"+t],i["offset"+t],i["client"+t])):void 0===n?it.css(e,r,s):it.style(e,r,n,s)},e,o?n:void 0,o,null)}})}),it.fn.size=function(){return this.length},it.fn.andSelf=it.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return it});var ir=t.jQuery,or=t.$;return it.noConflict=function(e){return t.$===it&&(t.$=or),e&&t.jQuery===it&&(t.jQuery=ir),it},typeof e===St&&(t.jQuery=t.$=it),it}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),"string"==typeof e&&i[e].call(r)})}var r='[data-dismiss="alert"]',n=function(e){t(e).on("click",r,this.close)};n.VERSION="3.3.2",n.TRANSITION_DURATION=150,n.prototype.close=function(e){function r(){s.detach().trigger("closed.bs.alert").remove()}var i=t(this),o=i.attr("data-target");o||(o=i.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var s=t(o);e&&e.preventDefault(),s.length||(s=i.closest(".alert")),s.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",r).emulateTransitionEnd(n.TRANSITION_DURATION):r())};var i=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on("click.bs.alert.data-api",r,n.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),i=n.data("bs.button"),o="object"==typeof e&&e;i||n.data("bs.button",i=new r(this,o)),"toggle"==e?i.toggle():e&&i.setState(e)})}var r=function(e,n){this.$element=t(e),this.options=t.extend({},r.DEFAULTS,n),this.isLoading=!1};r.VERSION="3.3.2",r.DEFAULTS={loadingText:"loading..."},r.prototype.setState=function(e){var r="disabled",n=this.$element,i=n.is("input")?"val":"html",o=n.data();e+="Text",null==o.resetText&&n.data("resetText",n[i]()),setTimeout(t.proxy(function(){n[i](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,n.removeClass(r).removeAttr(r))},this),0)},r.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var r=this.$element.find("input");"radio"==r.prop("type")&&(r.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&r.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=e,t.fn.button.Constructor=r,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(r){var n=t(r.target);n.hasClass("btn")||(n=n.closest(".btn")),e.call(n,"toggle"),r.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),i=n.data("bs.carousel"),o=t.extend({},r.DEFAULTS,n.data(),"object"==typeof e&&e),s="string"==typeof e?e:o.slide;i||n.data("bs.carousel",i=new r(this,o)),"number"==typeof e?i.to(e):s?i[s]():o.interval&&i.pause().cycle()})}var r=function(e,r){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=r,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};r.VERSION="3.3.2",r.TRANSITION_DURATION=600,r.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},r.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},r.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},r.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},r.prototype.getItemForDirection=function(t,e){var r=this.getItemIndex(e),n="prev"==t&&0===r||"next"==t&&r==this.$items.length-1;if(n&&!this.options.wrap)return e;var i="prev"==t?-1:1,o=(r+i)%this.$items.length;return this.$items.eq(o)},r.prototype.to=function(t){var e=this,r=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):r==t?this.pause().cycle():this.slide(t>r?"next":"prev",this.$items.eq(t))},r.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},r.prototype.next=function(){if(!this.sliding)return this.slide("next")},r.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},r.prototype.slide=function(e,n){var i=this.$element.find(".item.active"),o=n||this.getItemForDirection(e,i),s=this.interval,a="next"==e?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var c=o[0],l=t.Event("slide.bs.carousel",{relatedTarget:c,direction:a});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=t(this.$indicators.children()[this.getItemIndex(o)]);h&&h.addClass("active")}var d=t.Event("slid.bs.carousel",{relatedTarget:c,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,i.addClass(a),o.addClass(a),i.one("bsTransitionEnd",function(){o.removeClass([e,a].join(" ")).addClass("active"),i.removeClass(["active",a].join(" ")),u.sliding=!1,setTimeout(function(){u.$element.trigger(d)},0)}).emulateTransitionEnd(r.TRANSITION_DURATION)):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),s&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=r,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this};var i=function(r){var n,i=t(this),o=t(i.attr("data-target")||(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var s=t.extend({},o.data(),i.data()),a=i.attr("data-slide-to");a&&(s.interval=!1),e.call(o,s),a&&o.data("bs.carousel").to(a),r.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var r=t(this);e.call(r,r.data())})})}(jQuery),+function(t){"use strict";function e(e){e&&3===e.which||(t(i).remove(),t(o).each(function(){var n=t(this),i=r(n),o={relatedTarget:this};i.hasClass("open")&&(i.trigger(e=t.Event("hide.bs.dropdown",o)),e.isDefaultPrevented()||(n.attr("aria-expanded","false"),i.removeClass("open").trigger("hidden.bs.dropdown",o)))}))}function r(e){var r=e.attr("data-target");r||(r=e.attr("href"),r=r&&/#[A-Za-z]/.test(r)&&r.replace(/.*(?=#[^\s]*$)/,""));var n=r&&t(r);return n&&n.length?n:e.parent()}function n(e){return this.each(function(){var r=t(this),n=r.data("bs.dropdown");n||r.data("bs.dropdown",n=new s(this)),"string"==typeof e&&n[e].call(r)})}var i=".dropdown-backdrop",o='[data-toggle="dropdown"]',s=function(e){t(e).on("click.bs.dropdown",this.toggle)};s.VERSION="3.3.2",s.prototype.toggle=function(n){var i=t(this);if(!i.is(".disabled, :disabled")){var o=r(i),s=o.hasClass("open");if(e(),!s){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e);var a={relatedTarget:this};if(o.trigger(n=t.Event("show.bs.dropdown",a)),n.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},s.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var n=t(this);if(e.preventDefault(),e.stopPropagation(),!n.is(".disabled, :disabled")){var i=r(n),s=i.hasClass("open");if(!s&&27!=e.which||s&&27==e.which)return 27==e.which&&i.find(o).trigger("focus"),n.trigger("click");var a=" li:not(.disabled):visible a",u=i.find('[role="menu"]'+a+', [role="listbox"]'+a);if(u.length){var c=u.index(e.target);38==e.which&&c>0&&c--,40==e.which&&c<u.length-1&&c++,~c||(c=0),u.eq(c).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=n,t.fn.dropdown.Constructor=s,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,s.prototype.toggle).on("keydown.bs.dropdown.data-api",o,s.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',s.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',s.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e,n){return this.each(function(){var i=t(this),o=i.data("bs.modal"),s=t.extend({},r.DEFAULTS,i.data(),"object"==typeof e&&e);o||i.data("bs.modal",o=new r(this,s)),"string"==typeof e?o[e](n):s.show&&o.show(n)})}var r=function(e,r){this.options=r,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};r.VERSION="3.3.2",r.TRANSITION_DURATION=300,r.BACKDROP_TRANSITION_DURATION=150,r.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},r.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},r.prototype.show=function(e){var n=this,i=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){n.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(n.$element)&&(n.ignoreBackdropClick=!0)})}),this.backdrop(function(){var i=t.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),i&&n.$element[0].offsetWidth,n.$element.addClass("in").attr("aria-hidden",!1),n.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});i?n.$dialog.one("bsTransitionEnd",function(){n.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(r.TRANSITION_DURATION):n.$element.trigger("focus").trigger(o)}))},r.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(r.TRANSITION_DURATION):this.hideModal())},r.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},r.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},r.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},r.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},r.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},r.prototype.backdrop=function(e){var n=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&i;if(this.$backdrop=t('<div class="modal-backdrop '+i+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){n.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):s()}else e&&e()},r.prototype.handleUpdate=function(){this.adjustDialog()},r.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},r.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},r.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},r.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},r.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},r.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var n=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=r,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(r){var n=t(this),i=n.attr("href"),o=t(n.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),s=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(i)&&i},o.data(),n.data());n.is("a")&&r.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){n.is(":visible")&&n.trigger("focus")})}),e.call(o,s,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),i=n.data("bs.tooltip"),o="object"==typeof e&&e;!i&&/destroy|hide/.test(e)||(i||n.data("bs.tooltip",i=new r(this,o)),"string"==typeof e&&i[e]())})}var r=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.init("tooltip",t,e)};r.VERSION="3.3.2",r.TRANSITION_DURATION=150,r.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},r.prototype.init=function(e,r,n){if(this.enabled=!0,this.type=e,this.$element=t(r),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport),this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var s=i[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",u="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},r.prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},r.prototype.getDelegateOptions=function(){var e={},r=this.getDefaults();return this._options&&t.each(this._options,function(t,n){r[t]!=n&&(e[t]=n)}),e},r.prototype.enter=function(e){var r=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return r&&r.$tip&&r.$tip.is(":visible")?void(r.hoverState="in"):(r||(r=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,r)),clearTimeout(r.timeout),r.hoverState="in",r.options.delay&&r.options.delay.show?void(r.timeout=setTimeout(function(){"in"==r.hoverState&&r.show()},r.options.delay.show)):r.show())},r.prototype.leave=function(e){var r=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return r||(r=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,r)),clearTimeout(r.timeout),r.hoverState="out",r.options.delay&&r.options.delay.hide?void(r.timeout=setTimeout(function(){"out"==r.hoverState&&r.hide()},r.options.delay.hide)):r.hide()},r.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var i=this,o=this.tip(),s=this.getUID(this.type);this.setContent(),o.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&o.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,u=/\s?auto?\s?/i,c=u.test(a);c&&(a=a.replace(u,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element);var l=this.getPosition(),h=o[0].offsetWidth,d=o[0].offsetHeight;if(c){var f=a,p=this.options.container?t(this.options.container):this.$element.parent(),g=this.getPosition(p);a="bottom"==a&&l.bottom+d>g.bottom?"top":"top"==a&&l.top-d<g.top?"bottom":"right"==a&&l.right+h>g.width?"left":"left"==a&&l.left-h<g.left?"right":a,o.removeClass(f).addClass(a)}var m=this.getCalculatedOffset(a,l,h,d);this.applyPlacement(m,a);var y=function(){var t=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==t&&i.leave(i)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",y).emulateTransitionEnd(r.TRANSITION_DURATION):y()}},r.prototype.applyPlacement=function(e,r){var n=this.tip(),i=n[0].offsetWidth,o=n[0].offsetHeight,s=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),e.top=e.top+s,e.left=e.left+a,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");var u=n[0].offsetWidth,c=n[0].offsetHeight;"top"==r&&c!=o&&(e.top=e.top+o-c);var l=this.getViewportAdjustedDelta(r,e,u,c);l.left?e.left+=l.left:e.top+=l.top;var h=/top|bottom/.test(r),d=h?2*l.left-i+u:2*l.top-o+c,f=h?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(d,n[0][f],h)},r.prototype.replaceArrow=function(t,e,r){this.arrow().css(r?"left":"top",50*(1-t/e)+"%").css(r?"top":"left","")},r.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},r.prototype.hide=function(e){function n(){"in"!=i.hoverState&&o.detach(),i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),e&&e()}var i=this,o=t(this.$tip),s=t.Event("hide.bs."+this.type);if(this.$element.trigger(s),!s.isDefaultPrevented())return o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(r.TRANSITION_DURATION):n(),this.hoverState=null,this},r.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},r.prototype.hasContent=function(){return this.getTitle()},r.prototype.getPosition=function(e){e=e||this.$element;var r=e[0],n="BODY"==r.tagName,i=r.getBoundingClientRect();null==i.width&&(i=t.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var o=n?{top:0,left:0}:e.offset(),s={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=n?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},i,s,a,o)},r.prototype.getCalculatedOffset=function(t,e,r,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-r/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-r/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-r}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},r.prototype.getViewportAdjustedDelta=function(t,e,r,n){var i={top:0,left:0};if(!this.$viewport)return i;var o=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-o-s.scroll,u=e.top+o-s.scroll+n;a<s.top?i.top=s.top-a:u>s.top+s.height&&(i.top=s.top+s.height-u)}else{var c=e.left-o,l=e.left+o+r;c<s.left?i.left=s.left-c:l>s.width&&(i.left=s.left+s.width-l)}return i},r.prototype.getTitle=function(){var t,e=this.$element,r=this.options;return t=e.attr("data-original-title")||("function"==typeof r.title?r.title.call(e[0]):r.title);
},r.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},r.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},r.prototype.enable=function(){this.enabled=!0},r.prototype.disable=function(){this.enabled=!1},r.prototype.toggleEnabled=function(){this.enabled=!this.enabled},r.prototype.toggle=function(e){var r=this;e&&(r=t(e.currentTarget).data("bs."+this.type),r||(r=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,r))),r.tip().hasClass("in")?r.leave(r):r.enter(r)},r.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type)})};var n=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=r,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),i=n.data("bs.popover"),o="object"==typeof e&&e;!i&&/destroy|hide/.test(e)||(i||n.data("bs.popover",i=new r(this,o)),"string"==typeof e&&i[e]())})}var r=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");r.VERSION="3.3.2",r.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),r.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),r.prototype.constructor=r,r.prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),r=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof r?"html":"append":"text"](r),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},r.prototype.hasContent=function(){return this.getTitle()||this.getContent()},r.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=r,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),i=n.data("bs.tab");i||n.data("bs.tab",i=new r(this)),"string"==typeof e&&i[e]()})}var r=function(e){this.element=t(e)};r.VERSION="3.3.2",r.TRANSITION_DURATION=150,r.prototype.show=function(){var e=this.element,r=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=e.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var i=r.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),s=t.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(o),e.trigger(s),!s.isDefaultPrevented()&&!o.isDefaultPrevented()){var a=t(n);this.activate(e.closest("li"),r),this.activate(a,a.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},r.prototype.activate=function(e,n,i){function o(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}var s=n.find("> .active"),a=i&&t.support.transition&&(s.length&&s.hasClass("fade")||!!n.find("> .fade").length);s.length&&a?s.one("bsTransitionEnd",o).emulateTransitionEnd(r.TRANSITION_DURATION):o(),s.removeClass("in")};var n=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=r,t.fn.tab.noConflict=function(){return t.fn.tab=n,this};var i=function(r){r.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),i=n.data("bs.affix"),o="object"==typeof e&&e;i||n.data("bs.affix",i=new r(this,o)),"string"==typeof e&&i[e]()})}var r=function(e,n){this.options=t.extend({},r.DEFAULTS,n),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};r.VERSION="3.3.2",r.RESET="affix affix-top affix-bottom",r.DEFAULTS={offset:0,target:window},r.prototype.getState=function(t,e,r,n){var i=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=r&&"top"==this.affixed)return i<r&&"top";if("bottom"==this.affixed)return null!=r?!(i+this.unpin<=o.top)&&"bottom":!(i+s<=t-n)&&"bottom";var a=null==this.affixed,u=a?i:o.top,c=a?s:e;return null!=r&&i<=r?"top":null!=n&&u+c>=t-n&&"bottom"},r.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(r.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},r.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},r.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),n=this.options.offset,i=n.top,o=n.bottom,s=t(document.body).height();"object"!=typeof n&&(o=i=n),"function"==typeof i&&(i=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var a=this.getState(s,e,i,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var u="affix"+(a?"-"+a:""),c=t.Event(u+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(r.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-e-o})}};var n=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=r,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var r=t(this),n=r.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),e.call(r,n)})})}(jQuery),+function(t){"use strict";function e(e){var r,n=e.attr("data-target")||(r=e.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"");return t(n)}function r(e){return this.each(function(){var r=t(this),i=r.data("bs.collapse"),o=t.extend({},n.DEFAULTS,r.data(),"object"==typeof e&&e);!i&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),i||r.data("bs.collapse",i=new n(this,o)),"string"==typeof e&&i[e]()})}var n=function(e,r){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,r),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.3.2",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(e=i.data("bs.collapse"),e&&e.transitioning))){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){i&&i.length&&(r.call(i,"hide"),e||i.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var u=t.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[s](this.$element[0][u])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[r](0).one("bsTransitionEnd",t.proxy(i,this)).emulateTransitionEnd(n.TRANSITION_DURATION):i.call(this)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(r,n){var i=t(n);this.addAriaAndCollapsedClass(e(i),i)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(t,e){var r=t.hasClass("in");t.attr("aria-expanded",r),e.toggleClass("collapsed",!r).attr("aria-expanded",r)};var i=t.fn.collapse;t.fn.collapse=r,t.fn.collapse.Constructor=n,t.fn.collapse.noConflict=function(){return t.fn.collapse=i,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var i=t(this);i.attr("data-target")||n.preventDefault();var o=e(i),s=o.data("bs.collapse"),a=s?"toggle":i.data();r.call(o,a)})}(jQuery),+function(t){"use strict";function e(r,n){this.$body=t(document.body),this.$scrollElement=t(t(r).is(document.body)?window:r),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function r(r){return this.each(function(){var n=t(this),i=n.data("bs.scrollspy"),o="object"==typeof r&&r;i||n.data("bs.scrollspy",i=new e(this,o)),"string"==typeof r&&i[r]()})}e.VERSION="3.3.2",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,r="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(r="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),i=e.data("target")||e.attr("href"),o=/^#./.test(i)&&t(i);return o&&o.length&&o.is(":visible")&&[[o[r]().top+n,i]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,r=this.getScrollHeight(),n=this.options.offset+r-this.$scrollElement.height(),i=this.offsets,o=this.targets,s=this.activeTarget;if(this.scrollHeight!=r&&this.refresh(),e>=n)return s!=(t=o[o.length-1])&&this.activate(t);if(s&&e<i[0])return this.activeTarget=null,this.clear();for(t=i.length;t--;)s!=o[t]&&e>=i[t]&&(void 0===i[t+1]||e<=i[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var r=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=t(r).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=t.fn.scrollspy;t.fn.scrollspy=r,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=n,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);r.call(e,e.data())})})}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var r in e)if(void 0!==t.style[r])return{end:e[r]};return!1}t.fn.emulateTransitionEnd=function(e){var r=!1,n=this;t(this).one("bsTransitionEnd",function(){r=!0});var i=function(){r||t(n).trigger(t.support.transition.end)};return setTimeout(i,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),window.onload=function(){$("#copyButton").bind("click",copyCode)},$(document).ready(function(){$(".hint").tooltip(),$(".language-text-area").each(function(){auto_grow(this)}),$(".language-text-area").keyup(function(){auto_grow(this)})}),$(document).ready(function(){isEnglish()?$(".encrypt-btn").html("encrypt and send"):$(".encrypt-btn").html("Verschlüsseln und senden"),$(".contact").submit(function(){return encrypt(this)})}),function(t,e){"use strict";var r={item:3,autoWidth:!1,slideMove:1,slideMargin:10,addClass:"",mode:"slide",useCSS:!0,cssEasing:"ease",easing:"linear",speed:400,auto:!1,pauseOnHover:!1,loop:!1,slideEndAnimation:!0,pause:2e3,keyPress:!1,controls:!0,prevHtml:"",nextHtml:"",rtl:!1,adaptiveHeight:!1,vertical:!1,verticalHeight:500,vThumbWidth:100,thumbItem:10,pager:!0,gallery:!1,galleryMargin:5,thumbMargin:5,currentPagerPosition:"middle",enableTouch:!0,enableDrag:!0,freeMove:!0,swipeThreshold:40,responsive:[],onBeforeStart:function(t){},onSliderLoad:function(t){},onBeforeSlide:function(t,e){},onAfterSlide:function(t,e){},onBeforeNextSlide:function(t,e){},onBeforePrevSlide:function(t,e){}};t.fn.lightSlider=function(e){if(0===this.length)return this;if(this.length>1)return this.each(function(){t(this).lightSlider(e)}),this;var n={},i=t.extend(!0,{},r,e),o={},s=this;n.$el=this,"fade"===i.mode&&(i.vertical=!1);var a=s.children(),u=t(window).width(),c=null,l=null,h=0,d=0,f=!1,p=0,g="",m=0,y=i.vertical===!0?"height":"width",v=i.vertical===!0?"margin-bottom":"margin-right",b=0,w=0,k=0,C=0,S=null,x="ontouchstart"in document.documentElement,A={};return A.chbreakpoint=function(){if(u=t(window).width(),i.responsive.length){var e;if(i.autoWidth===!1&&(e=i.item),u<i.responsive[0].breakpoint)for(var r=0;r<i.responsive.length;r++)u<i.responsive[r].breakpoint&&(c=i.responsive[r].breakpoint,l=i.responsive[r]);if("undefined"!=typeof l&&null!==l)for(var n in l.settings)l.settings.hasOwnProperty(n)&&("undefined"!=typeof o[n]&&null!==o[n]||(o[n]=i[n]),i[n]=l.settings[n]);if(!t.isEmptyObject(o)&&u>i.responsive[0].breakpoint)for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s]);i.autoWidth===!1&&b>0&&k>0&&e!==i.item&&(m=Math.round(b/((k+i.slideMargin)*i.slideMove)))}},A.calSW=function(){i.autoWidth===!1&&(k=(p-(i.item*i.slideMargin-i.slideMargin))/i.item)},A.calWidth=function(t){var e=t===!0?g.find(".lslide").length:a.length;if(i.autoWidth===!1)d=e*(k+i.slideMargin);else{d=0;for(var r=0;r<e;r++)d+=parseInt(a.eq(r).width())+i.slideMargin}return d},n={doCss:function(){var t=function(){for(var t=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],e=document.documentElement,r=0;r<t.length;r++)if(t[r]in e.style)return!0};return!(!i.useCSS||!t())},keyPress:function(){i.keyPress&&t(document).on("keyup.lightslider",function(e){t(":focus").is("input, textarea")||(e.preventDefault?e.preventDefault():e.returnValue=!1,37===e.keyCode?s.goToPrevSlide():39===e.keyCode&&s.goToNextSlide())})},controls:function(){i.controls&&(s.after('<div class="lSAction"><a class="lSPrev">'+i.prevHtml+'</a><a class="lSNext">'+i.nextHtml+"</a></div>"),i.autoWidth?A.calWidth(!1)<p&&g.find(".lSAction").hide():h<=i.item&&g.find(".lSAction").hide(),g.find(".lSAction a").on("click",function(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,"lSPrev"===t(this).attr("class")?s.goToPrevSlide():s.goToNextSlide(),!1}))},initialStyle:function(){var t=this;"fade"===i.mode&&(i.autoWidth=!1,i.slideEndAnimation=!1),i.auto&&(i.slideEndAnimation=!1),i.autoWidth&&(i.slideMove=1,i.item=1),i.loop&&(i.slideMove=1,i.freeMove=!1),i.onBeforeStart.call(this,s),A.chbreakpoint(),s.addClass("lightSlider").wrap('<div class="lSSlideOuter '+i.addClass+'"><div class="lSSlideWrapper"></div></div>'),g=s.parent(".lSSlideWrapper"),i.rtl===!0&&g.parent().addClass("lSrtl"),i.vertical?(g.parent().addClass("vertical"),p=i.verticalHeight,g.css("height",p+"px")):p=s.outerWidth(),a.addClass("lslide"),i.loop===!0&&"slide"===i.mode&&(A.calSW(),A.clone=function(){if(A.calWidth(!0)>p){for(var e=0,r=0,n=0;n<a.length&&(e+=parseInt(s.find(".lslide").eq(n).width())+i.slideMargin,r++,!(e>=p+i.slideMargin));n++);var o=i.autoWidth===!0?r:i.item;if(o<s.find(".clone.left").length)for(var u=0;u<s.find(".clone.left").length-o;u++)a.eq(u).remove();if(o<s.find(".clone.right").length)for(var c=a.length-1;c>a.length-1-s.find(".clone.right").length;c--)m--,a.eq(c).remove();for(var l=s.find(".clone.right").length;l<o;l++)s.find(".lslide").eq(l).clone().removeClass("lslide").addClass("clone right").appendTo(s),m++;for(var h=s.find(".lslide").length-s.find(".clone.left").length;h>s.find(".lslide").length-o;h--)s.find(".lslide").eq(h-1).clone().removeClass("lslide").addClass("clone left").prependTo(s);a=s.children()}else a.hasClass("clone")&&(s.find(".clone").remove(),t.move(s,0))},A.clone()),A.sSW=function(){h=a.length,i.rtl===!0&&i.vertical===!1&&(v="margin-left"),i.autoWidth===!1&&a.css(y,k+"px"),a.css(v,i.slideMargin+"px"),d=A.calWidth(!1),s.css(y,d+"px"),i.loop===!0&&"slide"===i.mode&&f===!1&&(m=s.find(".clone.left").length)},A.calL=function(){a=s.children(),h=a.length},this.doCss()&&g.addClass("usingCss"),A.calL(),"slide"===i.mode?(A.calSW(),A.sSW(),i.loop===!0&&(b=t.slideValue(),this.move(s,b)),i.vertical===!1&&this.setHeight(s,!1)):(this.setHeight(s,!0),s.addClass("lSFade"),this.doCss()||(a.fadeOut(0),a.eq(m).fadeIn(0))),i.loop===!0&&"slide"===i.mode?a.eq(m).addClass("active"):a.first().addClass("active")},pager:function(){var t=this;if(A.createPager=function(){C=(p-(i.thumbItem*i.thumbMargin-i.thumbMargin))/i.thumbItem;var e=g.find(".lslide"),r=g.find(".lslide").length,n=0,o="",a=0;for(n=0;n<r;n++){"slide"===i.mode&&(i.autoWidth?a+=(parseInt(e.eq(n).width())+i.slideMargin)*i.slideMove:a=n*((k+i.slideMargin)*i.slideMove));var u=e.eq(n*i.slideMove).attr("data-thumb");if(o+=i.gallery===!0?'<li style="width:100%;'+y+":"+C+"px;"+v+":"+i.thumbMargin+'px"><a href="#"><img src="'+u+'" /></a></li>':'<li><a href="#">'+(n+1)+"</a></li>","slide"===i.mode&&a>=d-p-i.slideMargin){n+=1;var c=2;i.autoWidth&&(o+='<li><a href="#">'+(n+1)+"</a></li>",c=1),n<c?(o=null,g.parent().addClass("noPager")):g.parent().removeClass("noPager");break}}var l=g.parent();l.find(".lSPager").html(o),i.gallery===!0&&(i.vertical===!0&&l.find(".lSPager").css("width",i.vThumbWidth+"px"),w=n*(i.thumbMargin+C)+.5,l.find(".lSPager").css({property:w+"px","transition-duration":i.speed+"ms"}),i.vertical===!0&&g.parent().css("padding-right",i.vThumbWidth+i.galleryMargin+"px"),l.find(".lSPager").css(y,w+"px"));var h=l.find(".lSPager").find("li");h.first().addClass("active"),h.on("click",function(){return i.loop===!0&&"slide"===i.mode?m+=h.index(this)-l.find(".lSPager").find("li.active").index():m=h.index(this),s.mode(!1),i.gallery===!0&&t.slideThumb(),!1})},i.pager){var e="lSpg";i.gallery&&(e="lSGallery"),g.after('<ul class="lSPager '+e+'"></ul>');var r=i.vertical?"margin-left":"margin-top";g.parent().find(".lSPager").css(r,i.galleryMargin+"px"),A.createPager()}setTimeout(function(){A.init()},0)},setHeight:function(t,e){var r=null,n=this;r=i.loop?t.children(".lslide ").first():t.children().first();var o=function(){var n=r.outerHeight(),i=0,o=n;e&&(n=0,i=100*o/p),t.css({height:n+"px","padding-bottom":i+"%"})};o(),r.find("img").length?r.find("img")[0].complete?(o(),S||n.auto()):r.find("img").load(function(){setTimeout(function(){o(),S||n.auto()},100)}):S||n.auto()},active:function(t,e){this.doCss()&&"fade"===i.mode&&g.addClass("on");var r=0;if(m*i.slideMove<h){t.removeClass("active"),this.doCss()||"fade"!==i.mode||e!==!1||t.fadeOut(i.speed),r=e===!0?m:m*i.slideMove;var n,o;e===!0&&(n=t.length,o=n-1,r+1>=n&&(r=o)),i.loop===!0&&"slide"===i.mode&&(r=e===!0?m-s.find(".clone.left").length:m*i.slideMove,e===!0&&(n=t.length,o=n-1,r+1===n?r=o:r+1>n&&(r=0))),this.doCss()||"fade"!==i.mode||e!==!1||t.eq(r).fadeIn(i.speed),t.eq(r).addClass("active")}else t.removeClass("active"),t.eq(t.length-1).addClass("active"),this.doCss()||"fade"!==i.mode||e!==!1||(t.fadeOut(i.speed),t.eq(r).fadeIn(i.speed))},move:function(t,e){i.rtl===!0&&(e=-e),this.doCss()?i.vertical===!0?t.css({transform:"translate3d(0px, "+-e+"px, 0px)","-webkit-transform":"translate3d(0px, "+-e+"px, 0px)"}):t.css({transform:"translate3d("+-e+"px, 0px, 0px)","-webkit-transform":"translate3d("+-e+"px, 0px, 0px)"}):i.vertical===!0?t.css("position","relative").animate({top:-e+"px"},i.speed,i.easing):t.css("position","relative").animate({left:-e+"px"},i.speed,i.easing);var r=g.parent().find(".lSPager").find("li");this.active(r,!0)},fade:function(){this.active(a,!1);var t=g.parent().find(".lSPager").find("li");this.active(t,!0)},slide:function(){var t=this;A.calSlide=function(){d>p&&(b=t.slideValue(),t.active(a,!1),b>d-p-i.slideMargin?b=d-p-i.slideMargin:b<0&&(b=0),t.move(s,b),i.loop===!0&&"slide"===i.mode&&(m>=h-s.find(".clone.left").length/i.slideMove&&t.resetSlide(s.find(".clone.left").length),0===m&&t.resetSlide(g.find(".lslide").length)))},A.calSlide()},resetSlide:function(t){var e=this;g.find(".lSAction a").addClass("disabled"),setTimeout(function(){m=t,g.css("transition-duration","0ms"),b=e.slideValue(),e.active(a,!1),n.move(s,b),setTimeout(function(){g.css("transition-duration",i.speed+"ms"),g.find(".lSAction a").removeClass("disabled")},50)},i.speed+100)},slideValue:function(){var t=0;if(i.autoWidth===!1)t=m*((k+i.slideMargin)*i.slideMove);else{t=0;for(var e=0;e<m;e++)t+=parseInt(a.eq(e).width())+i.slideMargin}return t},slideThumb:function(){var t;switch(i.currentPagerPosition){case"left":t=0;break;case"middle":t=p/2-C/2;break;case"right":t=p-C}var e=m-s.find(".clone.left").length,r=g.parent().find(".lSPager");"slide"===i.mode&&i.loop===!0&&(e>=r.children().length?e=0:e<0&&(e=r.children().length));var n=e*(C+i.thumbMargin)-t;n+p>w&&(n=w-p-i.thumbMargin),n<0&&(n=0),this.move(r,n)},auto:function(){i.auto&&(clearInterval(S),S=setInterval(function(){s.goToNextSlide()},i.pause))},pauseOnHover:function(){var e=this;i.auto&&i.pauseOnHover&&(g.on("mouseenter",function(){t(this).addClass("ls-hover"),s.pause(),i.auto=!0}),g.on("mouseleave",function(){t(this).removeClass("ls-hover"),g.find(".lightSlider").hasClass("lsGrabbing")||e.auto()}))},touchMove:function(t,e){if(g.css("transition-duration","0ms"),"slide"===i.mode){var r=t-e,n=b-r;if(n>=d-p-i.slideMargin)if(i.freeMove===!1)n=d-p-i.slideMargin;else{var o=d-p-i.slideMargin;n=o+(n-o)/5}else n<0&&(i.freeMove===!1?n=0:n/=5);this.move(s,n)}},touchEnd:function(t){if(g.css("transition-duration",i.speed+"ms"),"slide"===i.mode){var e=!1,r=!0;b-=t,b>d-p-i.slideMargin?(b=d-p-i.slideMargin,i.autoWidth===!1&&(e=!0)):b<0&&(b=0);var n=function(t){var r=0;if(e||t&&(r=1),i.autoWidth)for(var n=0,o=0;o<a.length&&(n+=parseInt(a.eq(o).width())+i.slideMargin,m=o+r,!(n>=b));o++);else{var s=b/((k+i.slideMargin)*i.slideMove);m=parseInt(s)+r,b>=d-p-i.slideMargin&&s%1!==0&&m++}};t>=i.swipeThreshold?(n(!1),r=!1):t<=-i.swipeThreshold&&(n(!0),r=!1),s.mode(r),this.slideThumb()}else t>=i.swipeThreshold?s.goToPrevSlide():t<=-i.swipeThreshold&&s.goToNextSlide()},enableDrag:function(){var e=this;if(!x){var r=0,n=0,o=!1;g.find(".lightSlider").addClass("lsGrab"),g.on("mousedown",function(e){return!(d<p&&0!==d)&&void("lSPrev"!==t(e.target).attr("class")&&"lSNext"!==t(e.target).attr("class")&&(r=i.vertical===!0?e.pageY:e.pageX,o=!0,e.preventDefault?e.preventDefault():e.returnValue=!1,g.scrollLeft+=1,g.scrollLeft-=1,g.find(".lightSlider").removeClass("lsGrab").addClass("lsGrabbing"),clearInterval(S)))}),t(window).on("mousemove",function(t){o&&(n=i.vertical===!0?t.pageY:t.pageX,e.touchMove(n,r))}),t(window).on("mouseup",function(s){if(o){g.find(".lightSlider").removeClass("lsGrabbing").addClass("lsGrab"),o=!1,n=i.vertical===!0?s.pageY:s.pageX;var a=n-r;Math.abs(a)>=i.swipeThreshold&&t(window).on("click.ls",function(e){e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopImmediatePropagation(),e.stopPropagation(),t(window).off("click.ls")}),e.touchEnd(a)}})}},enableTouch:function(){var t=this;if(x){var e={},r={};g.on("touchstart",function(t){r=t.originalEvent.targetTouches[0],e.pageX=t.originalEvent.targetTouches[0].pageX,e.pageY=t.originalEvent.targetTouches[0].pageY,clearInterval(S)}),g.on("touchmove",function(n){if(d<p&&0!==d)return!1;var o=n.originalEvent;r=o.targetTouches[0];var s=Math.abs(r.pageX-e.pageX),a=Math.abs(r.pageY-e.pageY);i.vertical===!0?(3*a>s&&n.preventDefault(),t.touchMove(r.pageY,e.pageY)):(3*s>a&&n.preventDefault(),t.touchMove(r.pageX,e.pageX))}),g.on("touchend",function(){if(d<p&&0!==d)return!1;var n;n=i.vertical===!0?r.pageY-e.pageY:r.pageX-e.pageX,t.touchEnd(n)})}},build:function(){var e=this;e.initialStyle(),this.doCss()&&(i.enableTouch===!0&&e.enableTouch(),i.enableDrag===!0&&e.enableDrag()),t(window).on("focus",function(){e.auto()}),t(window).on("blur",function(){clearInterval(S)}),e.pager(),e.pauseOnHover(),e.controls(),e.keyPress()}},n.build(),A.init=function(){A.chbreakpoint(),i.vertical===!0?(p=i.item>1?i.verticalHeight:a.outerHeight(),g.css("height",p+"px")):p=g.outerWidth(),i.loop===!0&&"slide"===i.mode&&A.clone(),A.calL(),"slide"===i.mode&&s.removeClass("lSSlide"),"slide"===i.mode&&(A.calSW(),A.sSW()),setTimeout(function(){"slide"===i.mode&&s.addClass("lSSlide")},1e3),i.pager&&A.createPager(),i.adaptiveHeight===!0&&i.vertical===!1&&s.css("height",a.eq(m).outerHeight(!0)),i.adaptiveHeight===!1&&("slide"===i.mode?i.vertical===!1?n.setHeight(s,!1):n.auto():n.setHeight(s,!0)),i.gallery===!0&&n.slideThumb(),"slide"===i.mode&&n.slide(),i.autoWidth===!1?a.length<=i.item?g.find(".lSAction").hide():g.find(".lSAction").show():A.calWidth(!1)<p&&0!==d?g.find(".lSAction").hide():g.find(".lSAction").show()},s.goToPrevSlide=function(){if(m>0)i.onBeforePrevSlide.call(this,s,m),m--,s.mode(!1),i.gallery===!0&&n.slideThumb();else if(i.loop===!0){if(i.onBeforePrevSlide.call(this,s,m),"fade"===i.mode){var t=h-1;m=parseInt(t/i.slideMove)}s.mode(!1),i.gallery===!0&&n.slideThumb()}else i.slideEndAnimation===!0&&(s.addClass("leftEnd"),setTimeout(function(){s.removeClass("leftEnd")},400))},s.goToNextSlide=function(){var t=!0;if("slide"===i.mode){var e=n.slideValue();t=e<d-p-i.slideMargin}m*i.slideMove<h-i.slideMove&&t?(i.onBeforeNextSlide.call(this,s,m),m++,s.mode(!1),i.gallery===!0&&n.slideThumb()):i.loop===!0?(i.onBeforeNextSlide.call(this,s,m),m=0,s.mode(!1),i.gallery===!0&&n.slideThumb()):i.slideEndAnimation===!0&&(s.addClass("rightEnd"),setTimeout(function(){s.removeClass("rightEnd")},400))},s.mode=function(t){i.adaptiveHeight===!0&&i.vertical===!1&&s.css("height",a.eq(m).outerHeight(!0)),f===!1&&("slide"===i.mode?n.doCss()&&(s.addClass("lSSlide"),""!==i.speed&&g.css("transition-duration",i.speed+"ms"),""!==i.cssEasing&&g.css("transition-timing-function",i.cssEasing)):n.doCss()&&(""!==i.speed&&s.css("transition-duration",i.speed+"ms"),""!==i.cssEasing&&s.css("transition-timing-function",i.cssEasing))),t||i.onBeforeSlide.call(this,s,m),"slide"===i.mode?n.slide():n.fade(),g.hasClass("ls-hover")||n.auto(),setTimeout(function(){t||i.onAfterSlide.call(this,s,m)},i.speed),f=!0},s.play=function(){s.goToNextSlide(),i.auto=!0,n.auto()},s.pause=function(){i.auto=!1,clearInterval(S)},s.refresh=function(){A.init()},s.getCurrentSlideCount=function(){var t=m;if(i.loop){var e=g.find(".lslide").length,r=s.find(".clone.left").length;t=m<=r-1?e+(m-r):m>=e+r?m-e-r:m-r}return t+1},s.getTotalSlideCount=function(){return g.find(".lslide").length},s.goToSlide=function(t){m=i.loop?t+s.find(".clone.left").length-1:t,s.mode(!1),i.gallery===!0&&n.slideThumb()},s.destroy=function(){s.lightSlider&&(s.goToPrevSlide=function(){},s.goToNextSlide=function(){},s.mode=function(){},s.play=function(){},s.pause=function(){},s.refresh=function(){},s.getCurrentSlideCount=function(){},s.getTotalSlideCount=function(){},s.goToSlide=function(){},s.lightSlider=null,A={init:function(){}},s.parent().parent().find(".lSAction, .lSPager").remove(),s.removeClass("lightSlider lSFade lSSlide lsGrab lsGrabbing leftEnd right").removeAttr("style").unwrap().unwrap(),s.children().removeAttr("style"),a.removeClass("lslide active"),s.find(".clone").remove(),a=null,S=null,f=!1,m=0)},setTimeout(function(){i.onSliderLoad.call(this,s)},10),t(window).on("resize orientationchange",function(t){setTimeout(function(){t.preventDefault?t.preventDefault():t.returnValue=!1,A.init()},200)}),this}}(jQuery),!function(t){function e(){}function r(t){function r(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}function i(e,r){t.fn[e]=function(i){if("string"==typeof i){for(var s=n.call(arguments,1),a=0,u=this.length;u>a;a++){var c=this[a],l=t.data(c,e);if(l)if(t.isFunction(l[i])&&"_"!==i.charAt(0)){var h=l[i].apply(l,s);if(void 0!==h)return h}else o("no such method '"+i+"' for "+e+" instance");else o("cannot call methods on "+e+" prior to initialization; attempted to call '"+i+"'")}return this}return this.each(function(){var n=t.data(this,e);n?(n.option(i),n._init()):(n=new r(this,i),t.data(this,e,n))})}}if(t){var o="undefined"==typeof console?e:function(t){};return t.bridget=function(t,e){r(e),i(t,e)},t.bridget}}var n=Array.prototype.slice;"function"==typeof define&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],r):r("object"==typeof exports?require("jquery"):t.jQuery)}(window),function(t){function e(e){var r=t.event;return r.target=r.target||r.srcElement||e,r}var r=document.documentElement,n=function(){};r.addEventListener?n=function(t,e,r){t.addEventListener(e,r,!1)}:r.attachEvent&&(n=function(t,r,n){t[r+n]=n.handleEvent?function(){var r=e(t);n.handleEvent.call(n,r)}:function(){var r=e(t);n.call(t,r)},t.attachEvent("on"+r,t[r+n])});var i=function(){};r.removeEventListener?i=function(t,e,r){t.removeEventListener(e,r,!1)}:r.detachEvent&&(i=function(t,e,r){t.detachEvent("on"+e,t[e+r]);try{delete t[e+r]}catch(n){t[e+r]=void 0}});var o={bind:n,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",o):"object"==typeof exports?module.exports=o:t.eventie=o}(window),function(){function t(){}function e(t,e){for(var r=t.length;r--;)if(t[r].listener===e)return r;return-1}function r(t){return function(){return this[t].apply(this,arguments)}}var n=t.prototype,i=this,o=i.EventEmitter;n.getListeners=function(t){var e,r,n=this._getEvents();if(t instanceof RegExp){e={};for(r in n)n.hasOwnProperty(r)&&t.test(r)&&(e[r]=n[r])}else e=n[t]||(n[t]=[]);return e},n.flattenListeners=function(t){var e,r=[];for(e=0;e<t.length;e+=1)r.push(t[e].listener);return r},n.getListenersAsObject=function(t){var e,r=this.getListeners(t);return r instanceof Array&&(e={},e[t]=r),e||r},n.addListener=function(t,r){var n,i=this.getListenersAsObject(t),o="object"==typeof r;for(n in i)i.hasOwnProperty(n)&&-1===e(i[n],r)&&i[n].push(o?r:{
listener:r,once:!1});return this},n.on=r("addListener"),n.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},n.once=r("addOnceListener"),n.defineEvent=function(t){return this.getListeners(t),this},n.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},n.removeListener=function(t,r){var n,i,o=this.getListenersAsObject(t);for(i in o)o.hasOwnProperty(i)&&(n=e(o[i],r),-1!==n&&o[i].splice(n,1));return this},n.off=r("removeListener"),n.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},n.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},n.manipulateListeners=function(t,e,r){var n,i,o=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(n=r.length;n--;)o.call(this,e,r[n]);else for(n in e)e.hasOwnProperty(n)&&(i=e[n])&&("function"==typeof i?o.call(this,n,i):s.call(this,n,i));return this},n.removeEvent=function(t){var e,r=typeof t,n=this._getEvents();if("string"===r)delete n[t];else if(t instanceof RegExp)for(e in n)n.hasOwnProperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},n.removeAllListeners=r("removeEvent"),n.emitEvent=function(t,e){var r,n,i,o,s=this.getListenersAsObject(t);for(i in s)if(s.hasOwnProperty(i))for(n=s[i].length;n--;)r=s[i][n],r.once===!0&&this.removeListener(t,r.listener),o=r.listener.apply(this,e||[]),o===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},n.trigger=r("emitEvent"),n.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},n.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},n._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},n._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return i.EventEmitter=o,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:i.EventEmitter=t}.call(this),function(t){function e(t){if(t){if("string"==typeof n[t])return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e,i=0,o=r.length;o>i;i++)if(e=r[i]+t,"string"==typeof n[e])return e}}var r="Webkit Moz ms Ms O".split(" "),n=document.documentElement.style;"function"==typeof define&&define.amd?define("get-style-property/get-style-property",[],function(){return e}):"object"==typeof exports?module.exports=e:t.getStyleProperty=e}(window),function(t){function e(t){var e=parseFloat(t),r=-1===t.indexOf("%")&&!isNaN(e);return r&&e}function r(){}function n(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,r=s.length;r>e;e++){var n=s[e];t[n]=0}return t}function i(r){function i(){if(!d){d=!0;var n=t.getComputedStyle;if(c=function(){var t=n?function(t){return n(t,null)}:function(t){return t.currentStyle};return function(e){var r=t(e);return r||o("Style returned "+r+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),r}}(),l=r("boxSizing")){var i=document.createElement("div");i.style.width="200px",i.style.padding="1px 2px 3px 4px",i.style.borderStyle="solid",i.style.borderWidth="1px 2px 3px 4px",i.style[l]="border-box";var s=document.body||document.documentElement;s.appendChild(i);var a=c(i);h=200===e(a.width),s.removeChild(i)}}}function a(t){if(i(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var r=c(t);if("none"===r.display)return n();var o={};o.width=t.offsetWidth,o.height=t.offsetHeight;for(var a=o.isBorderBox=!(!l||!r[l]||"border-box"!==r[l]),d=0,f=s.length;f>d;d++){var p=s[d],g=r[p];g=u(t,g);var m=parseFloat(g);o[p]=isNaN(m)?0:m}var y=o.paddingLeft+o.paddingRight,v=o.paddingTop+o.paddingBottom,b=o.marginLeft+o.marginRight,w=o.marginTop+o.marginBottom,k=o.borderLeftWidth+o.borderRightWidth,C=o.borderTopWidth+o.borderBottomWidth,S=a&&h,x=e(r.width);x!==!1&&(o.width=x+(S?0:y+k));var A=e(r.height);return A!==!1&&(o.height=A+(S?0:v+C)),o.innerWidth=o.width-(y+k),o.innerHeight=o.height-(v+C),o.outerWidth=o.width+b,o.outerHeight=o.height+w,o}}function u(e,r){if(t.getComputedStyle||-1===r.indexOf("%"))return r;var n=e.style,i=n.left,o=e.runtimeStyle,s=o&&o.left;return s&&(o.left=e.currentStyle.left),n.left=r,r=n.pixelLeft,n.left=i,s&&(o.left=s),r}var c,l,h,d=!1;return a}var o="undefined"==typeof console?r:function(t){},s=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],i):"object"==typeof exports?module.exports=i(require("desandro-get-style-property")):t.getSize=i(t.getStyleProperty)}(window),function(t){function e(t){"function"==typeof t&&(e.isReady?t():s.push(t))}function r(t){var r="readystatechange"===t.type&&"complete"!==o.readyState;e.isReady||r||n()}function n(){e.isReady=!0;for(var t=0,r=s.length;r>t;t++){var n=s[t];n()}}function i(i){return"complete"===o.readyState?n():(i.bind(o,"DOMContentLoaded",r),i.bind(o,"readystatechange",r),i.bind(t,"load",r)),e}var o=t.document,s=[];e.isReady=!1,"function"==typeof define&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],i):"object"==typeof exports?module.exports=i(require("eventie")):t.docReady=i(t.eventie)}(window),function(t){function e(t,e){return t[s](e)}function r(t){if(!t.parentNode){var e=document.createDocumentFragment();e.appendChild(t)}}function n(t,e){r(t);for(var n=t.parentNode.querySelectorAll(e),i=0,o=n.length;o>i;i++)if(n[i]===t)return!0;return!1}function i(t,n){return r(t),e(t,n)}var o,s=function(){if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],r=0,n=e.length;n>r;r++){var i=e[r],o=i+"MatchesSelector";if(t[o])return o}}();if(s){var a=document.createElement("div"),u=e(a,"div");o=u?e:i}else o=n;"function"==typeof define&&define.amd?define("matches-selector/matches-selector",[],function(){return o}):"object"==typeof exports?module.exports=o:window.matchesSelector=o}(Element.prototype),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(r,n){return e(t,r,n)}):"object"==typeof exports?module.exports=e(t,require("doc-ready"),require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.docReady,t.matchesSelector)}(window,function(t,e,r){var n={};n.extend=function(t,e){for(var r in e)t[r]=e[r];return t},n.modulo=function(t,e){return(t%e+e)%e};var i=Object.prototype.toString;n.isArray=function(t){return"[object Array]"==i.call(t)},n.makeArray=function(t){var e=[];if(n.isArray(t))e=t;else if(t&&"number"==typeof t.length)for(var r=0,i=t.length;i>r;r++)e.push(t[r]);else e.push(t);return e},n.indexOf=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var r=0,n=t.length;n>r;r++)if(t[r]===e)return r;return-1},n.removeFrom=function(t,e){var r=n.indexOf(t,e);-1!=r&&t.splice(r,1)},n.isElement="function"==typeof HTMLElement||"object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1==t.nodeType&&"string"==typeof t.nodeName},n.setText=function(){function t(t,r){e=e||(void 0!==document.documentElement.textContent?"textContent":"innerText"),t[e]=r}var e;return t}(),n.getParent=function(t,e){for(;t!=document.body;)if(t=t.parentNode,r(t,e))return t},n.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.filterFindElements=function(t,e){t=n.makeArray(t);for(var i=[],o=0,s=t.length;s>o;o++){var a=t[o];if(n.isElement(a))if(e){r(a,e)&&i.push(a);for(var u=a.querySelectorAll(e),c=0,l=u.length;l>c;c++)i.push(u[c])}else i.push(a)}return i},n.debounceMethod=function(t,e,r){var n=t.prototype[e],i=e+"Timeout";t.prototype[e]=function(){var t=this[i];t&&clearTimeout(t);var e=arguments,o=this;this[i]=setTimeout(function(){n.apply(o,e),delete o[i]},r||100)}},n.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,r){return e+"-"+r}).toLowerCase()};var o=t.console;return n.htmlInit=function(r,i){e(function(){for(var e=n.toDashed(i),s=document.querySelectorAll(".js-"+e),a="data-"+e+"-options",u=0,c=s.length;c>u;u++){var l,h=s[u],d=h.getAttribute(a);try{l=d&&JSON.parse(d)}catch(f){o&&o.error("Error parsing "+a+" on "+h.nodeName.toLowerCase()+(h.id?"#"+h.id:"")+": "+f);continue}var p=new r(h,l),g=t.jQuery;g&&g.data(h,i,p)}})},n}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(r,n,i,o){return e(t,r,n,i,o)}):"object"==typeof exports?module.exports=e(t,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(t.Outlayer={},t.Outlayer.Item=e(t,t.EventEmitter,t.getSize,t.getStyleProperty,t.fizzyUIUtils))}(window,function(t,e,r,n,i){function o(t){for(var e in t)return!1;return e=null,!0}function s(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var a=t.getComputedStyle,u=a?function(t){return a(t,null)}:function(t){return t.currentStyle},c=n("transition"),l=n("transform"),h=c&&l,d=!!n("perspective"),f={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[c],p=["transform","transition","transitionDuration","transitionProperty"],g=function(){for(var t={},e=0,r=p.length;r>e;e++){var i=p[e],o=n(i);o&&o!==i&&(t[i]=o)}return t}();i.extend(s.prototype,e.prototype),s.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},s.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},s.prototype.getSize=function(){this.size=r(this.element)},s.prototype.css=function(t){var e=this.element.style;for(var r in t){var n=g[r]||r;e[n]=t[r]}},s.prototype.getPosition=function(){var t=u(this.element),e=this.layout.options,r=e.isOriginLeft,n=e.isOriginTop,i=parseInt(t[r?"left":"right"],10),o=parseInt(t[n?"top":"bottom"],10);i=isNaN(i)?0:i,o=isNaN(o)?0:o;var s=this.layout.size;i-=r?s.paddingLeft:s.paddingRight,o-=n?s.paddingTop:s.paddingBottom,this.position.x=i,this.position.y=o},s.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,r={},n=e.isOriginLeft?"paddingLeft":"paddingRight",i=e.isOriginLeft?"left":"right",o=e.isOriginLeft?"right":"left",s=this.position.x+t[n];s=e.percentPosition&&!e.isHorizontal?s/t.width*100+"%":s+"px",r[i]=s,r[o]="";var a=e.isOriginTop?"paddingTop":"paddingBottom",u=e.isOriginTop?"top":"bottom",c=e.isOriginTop?"bottom":"top",l=this.position.y+t[a];l=e.percentPosition&&e.isHorizontal?l/t.height*100+"%":l+"px",r[u]=l,r[c]="",this.css(r),this.emitEvent("layout",[this])};var m=d?function(t,e){return"translate3d("+t+"px, "+e+"px, 0)"}:function(t,e){return"translate("+t+"px, "+e+"px)"};s.prototype._transitionTo=function(t,e){this.getPosition();var r=this.position.x,n=this.position.y,i=parseInt(t,10),o=parseInt(e,10),s=i===this.position.x&&o===this.position.y;if(this.setPosition(t,e),s&&!this.isTransitioning)return void this.layoutPosition();var a=t-r,u=e-n,c={},l=this.layout.options;a=l.isOriginLeft?a:-a,u=l.isOriginTop?u:-u,c.transform=m(a,u),this.transition({to:c,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},s.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},s.prototype.moveTo=h?s.prototype._transitionTo:s.prototype.goTo,s.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},s.prototype._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},s.prototype._transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var r in t.onTransitionEnd)e.onEnd[r]=t.onTransitionEnd[r];for(r in t.to)e.ingProperties[r]=!0,t.isCleaning&&(e.clean[r]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var y=l&&i.toDashed(l)+",opacity";s.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:y,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(f,this,!1))},s.prototype.transition=s.prototype[c?"_transition":"_nonTransition"],s.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},s.prototype.onotransitionend=function(t){this.ontransitionend(t)};var v={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"};s.prototype.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,r=v[t.propertyName]||t.propertyName;if(delete e.ingProperties[r],o(e.ingProperties)&&this.disableTransition(),r in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[r]),r in e.onEnd){var n=e.onEnd[r];n.call(this),delete e.onEnd[r]}this.emitEvent("transitionEnd",[this])}},s.prototype.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(f,this,!1),this.isTransitioning=!1},s.prototype._removeStyles=function(t){var e={};for(var r in t)e[r]="";this.css(e)};var b={transitionProperty:"",transitionDuration:""};return s.prototype.removeTransitionStyles=function(){this.css(b)},s.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},s.prototype.remove=function(){if(!c||!parseFloat(this.layout.options.transitionDuration))return void this.removeElem();var t=this;this.once("transitionEnd",function(){t.removeElem()}),this.hide()},s.prototype.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},r=this.getHideRevealTransitionEndProperty("visibleStyle");e[r]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},s.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},s.prototype.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var r in e)return r},s.prototype.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},r=this.getHideRevealTransitionEndProperty("hiddenStyle");e[r]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},s.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},s.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},s}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(r,n,i,o,s){return e(t,r,n,i,o,s)}):"object"==typeof exports?module.exports=e(t,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.eventie,t.EventEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,r,n,i,o){function s(t,e){var r=i.getQueryElement(t);if(!r)return void(a&&a.error("Bad element for "+this.constructor.namespace+": "+(r||t)));this.element=r,u&&(this.$element=u(this.element)),this.options=i.extend({},this.constructor.defaults),this.option(e);var n=++l;this.element.outlayerGUID=n,h[n]=this,this._create(),this.options.isInitLayout&&this.layout()}var a=t.console,u=t.jQuery,c=function(){},l=0,h={};return s.namespace="outlayer",s.Item=o,s.defaults={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},i.extend(s.prototype,r.prototype),s.prototype.option=function(t){i.extend(this.options,t)},s.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),i.extend(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},s.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},s.prototype._itemize=function(t){for(var e=this._filterFindItemElements(t),r=this.constructor.Item,n=[],i=0,o=e.length;o>i;i++){var s=e[i],a=new r(s,this);n.push(a)}return n},s.prototype._filterFindItemElements=function(t){return i.filterFindElements(t,this.options.itemSelector)},s.prototype.getItemElements=function(){for(var t=[],e=0,r=this.items.length;r>e;e++)t.push(this.items[e].element);return t},s.prototype.layout=function(){this._resetLayout(),this._manageStamps();var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},s.prototype._init=s.prototype.layout,s.prototype._resetLayout=function(){this.getSize()},s.prototype.getSize=function(){this.size=n(this.element)},s.prototype._getMeasurement=function(t,e){var r,o=this.options[t];o?("string"==typeof o?r=this.element.querySelector(o):i.isElement(o)&&(r=o),this[t]=r?n(r)[e]:o):this[t]=0},s.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},s.prototype._getItemsForLayout=function(t){for(var e=[],r=0,n=t.length;n>r;r++){var i=t[r];i.isIgnored||e.push(i)}return e},s.prototype._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){for(var r=[],n=0,i=t.length;i>n;n++){var o=t[n],s=this._getItemLayoutPosition(o);s.item=o,s.isInstant=e||o.isLayoutInstant,r.push(s)}this._processLayoutQueue(r)}},s.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},s.prototype._processLayoutQueue=function(t){for(var e=0,r=t.length;r>e;e++){var n=t[e];this._positionItem(n.item,n.x,n.y,n.isInstant)}},s.prototype._positionItem=function(t,e,r,n){n?t.goTo(e,r):t.moveTo(e,r)},s.prototype._postLayout=function(){this.resizeContainer()},s.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},s.prototype._getContainerSize=c,s.prototype._setContainerMeasure=function(t,e){if(void 0!==t){var r=this.size;r.isBorderBox&&(t+=e?r.paddingLeft+r.paddingRight+r.borderLeftWidth+r.borderRightWidth:r.paddingBottom+r.paddingTop+r.borderTopWidth+r.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},s.prototype._emitCompleteOnItems=function(t,e){function r(){i.emitEvent(t+"Complete",[e])}function n(){s++,s===o&&r()}var i=this,o=e.length;if(!e||!o)return void r();for(var s=0,a=0,u=e.length;u>a;a++){var c=e[a];c.once(t,n)}},s.prototype.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},s.prototype.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},s.prototype.stamp=function(t){if(t=this._find(t)){this.stamps=this.stamps.concat(t);for(var e=0,r=t.length;r>e;e++){var n=t[e];this.ignore(n)}}},s.prototype.unstamp=function(t){if(t=this._find(t))for(var e=0,r=t.length;r>e;e++){var n=t[e];i.removeFrom(this.stamps,n),this.unignore(n)}},s.prototype._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=i.makeArray(t)):void 0},s.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var t=0,e=this.stamps.length;e>t;t++){var r=this.stamps[t];this._manageStamp(r)}}},s.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},s.prototype._manageStamp=c,s.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),r=this._boundingRect,i=n(t),o={left:e.left-r.left-i.marginLeft,top:e.top-r.top-i.marginTop,right:r.right-e.right-i.marginRight,bottom:r.bottom-e.bottom-i.marginBottom};return o},s.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},s.prototype.bindResize=function(){this.isResizeBound||(e.bind(t,"resize",this),this.isResizeBound=!0)},s.prototype.unbindResize=function(){this.isResizeBound&&e.unbind(t,"resize",this),this.isResizeBound=!1},s.prototype.onresize=function(){function t(){e.resize(),delete e.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var e=this;this.resizeTimeout=setTimeout(t,100)},s.prototype.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},s.prototype.needsResizeLayout=function(){var t=n(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},s.prototype.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},s.prototype.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},s.prototype.prepended=function(t){var e=this._itemize(t);if(e.length){var r=this.items.slice(0);this.items=e.concat(r),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(r)}},s.prototype.reveal=function(t){this._emitCompleteOnItems("reveal",t);for(var e=t&&t.length,r=0;e&&e>r;r++){var n=t[r];n.reveal()}},s.prototype.hide=function(t){this._emitCompleteOnItems("hide",t);for(var e=t&&t.length,r=0;e&&e>r;r++){var n=t[r];n.hide()}},s.prototype.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},s.prototype.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},s.prototype.getItem=function(t){for(var e=0,r=this.items.length;r>e;e++){var n=this.items[e];if(n.element===t)return n}},s.prototype.getItems=function(t){t=i.makeArray(t);for(var e=[],r=0,n=t.length;n>r;r++){var o=t[r],s=this.getItem(o);s&&e.push(s)}return e},s.prototype.remove=function(t){var e=this.getItems(t);if(this._emitCompleteOnItems("remove",e),e&&e.length)for(var r=0,n=e.length;n>r;r++){var o=e[r];o.remove(),i.removeFrom(this.items,o)}},s.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,r=this.items.length;r>e;e++){var n=this.items[e];n.destroy()}this.unbindResize();var i=this.element.outlayerGUID;delete h[i],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=i.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&h[e]},s.create=function(t,e){function r(){s.apply(this,arguments)}return Object.create?r.prototype=Object.create(s.prototype):i.extend(r.prototype,s.prototype),r.prototype.constructor=r,r.defaults=i.extend({},s.defaults),i.extend(r.defaults,e),r.prototype.settings={},r.namespace=t,r.data=s.data,r.Item=function(){o.apply(this,arguments)},r.Item.prototype=new o,i.htmlInit(r,t),u&&u.bridget&&u.bridget(t,r),r},s.Item=o,s}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],e):"object"==typeof exports?module.exports=e(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):t.Masonry=e(t.Outlayer,t.getSize,t.fizzyUIUtils)}(window,function(t,e,r){var n=t.create("masonry");return n.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.maxY=0},n.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],r=t&&t.element;this.columnWidth=r&&e(r).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,i=this.containerWidth+this.gutter,o=i/n,s=n-i%n,a=s&&1>s?"round":"floor";o=Math[a](o),this.cols=Math.max(o,1)},n.prototype.getContainerWidth=function(){var t=this.options.isFitWidth?this.element.parentNode:this.element,r=e(t);this.containerWidth=r&&r.innerWidth},n.prototype._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,n=e&&1>e?"round":"ceil",i=Math[n](t.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var o=this._getColGroup(i),s=Math.min.apply(Math,o),a=r.indexOf(o,s),u={x:this.columnWidth*a,y:s},c=s+t.size.outerHeight,l=this.cols+1-o.length,h=0;l>h;h++)this.colYs[a+h]=c;return u},n.prototype._getColGroup=function(t){if(2>t)return this.colYs;for(var e=[],r=this.cols+1-t,n=0;r>n;n++){var i=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,i)}return e},n.prototype._manageStamp=function(t){var r=e(t),n=this._getElementOffset(t),i=this.options.isOriginLeft?n.left:n.right,o=i+r.outerWidth,s=Math.floor(i/this.columnWidth);s=Math.max(0,s);var a=Math.floor(o/this.columnWidth);a-=o%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var u=(this.options.isOriginTop?n.top:n.bottom)+r.outerHeight,c=s;a>=c;c++)this.colYs[c]=Math.max(u,this.colYs[c])},n.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this.options.isFitWidth&&(t.width=this._getContainerFitWidth()),t},n.prototype._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.prototype.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!==this.containerWidth},n}),function(){function t(){}function e(t,e){for(var r=t.length;r--;)if(t[r].listener===e)return r;return-1}function r(t){return function(){return this[t].apply(this,arguments)}}var n=t.prototype,i=this,o=i.EventEmitter;n.getListeners=function(t){var e,r,n=this._getEvents();if("object"==typeof t){e={};for(r in n)n.hasOwnProperty(r)&&t.test(r)&&(e[r]=n[r])}else e=n[t]||(n[t]=[]);return e},n.flattenListeners=function(t){var e,r=[];for(e=0;t.length>e;e+=1)r.push(t[e].listener);return r},n.getListenersAsObject=function(t){var e,r=this.getListeners(t);return r instanceof Array&&(e={},e[t]=r),e||r},n.addListener=function(t,r){var n,i=this.getListenersAsObject(t),o="object"==typeof r;for(n in i)i.hasOwnProperty(n)&&-1===e(i[n],r)&&i[n].push(o?r:{listener:r,once:!1});return this},n.on=r("addListener"),n.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},n.once=r("addOnceListener"),n.defineEvent=function(t){return this.getListeners(t),this},n.defineEvents=function(t){for(var e=0;t.length>e;e+=1)this.defineEvent(t[e]);return this},n.removeListener=function(t,r){var n,i,o=this.getListenersAsObject(t);for(i in o)o.hasOwnProperty(i)&&(n=e(o[i],r),-1!==n&&o[i].splice(n,1));return this},n.off=r("removeListener"),n.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},n.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},n.manipulateListeners=function(t,e,r){var n,i,o=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)for(n=r.length;n--;)o.call(this,e,r[n]);else for(n in e)e.hasOwnProperty(n)&&(i=e[n])&&("function"==typeof i?o.call(this,n,i):s.call(this,n,i));return this},n.removeEvent=function(t){var e,r=typeof t,n=this._getEvents();if("string"===r)delete n[t];else if("object"===r)for(e in n)n.hasOwnProperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},n.removeAllListeners=r("removeEvent"),n.emitEvent=function(t,e){var r,n,i,o,s=this.getListenersAsObject(t);for(i in s)if(s.hasOwnProperty(i))for(n=s[i].length;n--;)r=s[i][n],r.once===!0&&this.removeListener(t,r.listener),o=r.listener.apply(this,e||[]),o===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},n.trigger=r("emitEvent"),n.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},n.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},n._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},n._getEvents=function(){return this._events||(this._events={})},t.noConflict=function(){return i.EventEmitter=o,t},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):"object"==typeof module&&module.exports?module.exports=t:this.EventEmitter=t}.call(this),function(t){function e(e){var r=t.event;return r.target=r.target||r.srcElement||e,r}var r=document.documentElement,n=function(){};r.addEventListener?n=function(t,e,r){t.addEventListener(e,r,!1)}:r.attachEvent&&(n=function(t,r,n){t[r+n]=n.handleEvent?function(){var r=e(t);n.handleEvent.call(n,r)}:function(){var r=e(t);n.call(t,r)},t.attachEvent("on"+r,t[r+n])});var i=function(){};r.removeEventListener?i=function(t,e,r){t.removeEventListener(e,r,!1)}:r.detachEvent&&(i=function(t,e,r){t.detachEvent("on"+e,t[e+r]);try{delete t[e+r]}catch(n){t[e+r]=void 0}});var o={bind:n,unbind:i};"function"==typeof define&&define.amd?define("eventie/eventie",o):t.eventie=o}(this),function(t,e){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(r,n){return e(t,r,n)}):"object"==typeof exports?module.exports=e(t,require("wolfy87-eventemitter"),require("eventie")):t.imagesLoaded=e(t,t.EventEmitter,t.eventie)}(window,function(t,e,r){function n(t,e){for(var r in e)t[r]=e[r];return t}function i(t){return"[object Array]"===d.call(t)}function o(t){var e=[];if(i(t))e=t;else if("number"==typeof t.length)for(var r=0,n=t.length;n>r;r++)e.push(t[r]);else e.push(t);return e}function s(t,e,r){if(!(this instanceof s))return new s(t,e);"string"==typeof t&&(t=document.querySelectorAll(t)),this.elements=o(t),this.options=n({},this.options),"function"==typeof e?r=e:n(this.options,e),r&&this.on("always",r),this.getImages(),c&&(this.jqDeferred=new c.Deferred);var i=this;setTimeout(function(){i.check()})}function a(t){this.img=t}function u(t){this.src=t,f[t]=this}var c=t.jQuery,l=t.console,h=void 0!==l,d=Object.prototype.toString;s.prototype=new e,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var t=0,e=this.elements.length;e>t;t++){var r=this.elements[t];"IMG"===r.nodeName&&this.addImage(r);var n=r.nodeType;if(n&&(1===n||9===n||11===n))for(var i=r.querySelectorAll("img"),o=0,s=i.length;s>o;o++){var a=i[o];this.addImage(a)}}},s.prototype.addImage=function(t){var e=new a(t);this.images.push(e)},s.prototype.check=function(){function t(t,i){return e.options.debug&&h&&l.log("confirm",t,i),e.progress(t),r++,r===n&&e.complete(),!0}var e=this,r=0,n=this.images.length;if(this.hasAnyBroken=!1,!n)return void this.complete();for(var i=0;n>i;i++){var o=this.images[i];o.on("confirm",t),o.check()}},s.prototype.progress=function(t){this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded;var e=this;setTimeout(function(){e.emit("progress",e,t),e.jqDeferred&&e.jqDeferred.notify&&e.jqDeferred.notify(e,t)})},s.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var e=this;setTimeout(function(){if(e.emit(t,e),e.emit("always",e),e.jqDeferred){var r=e.hasAnyBroken?"reject":"resolve";e.jqDeferred[r](e)}})},c&&(c.fn.imagesLoaded=function(t,e){var r=new s(this,t,e);return r.jqDeferred.promise(c(this))}),a.prototype=new e,a.prototype.check=function(){var t=f[this.img.src]||new u(this.img.src);if(t.isConfirmed)return void this.confirm(t.isLoaded,"cached was confirmed");if(this.img.complete&&void 0!==this.img.naturalWidth)return void this.confirm(0!==this.img.naturalWidth,"naturalWidth");var e=this;t.on("confirm",function(t,r){return e.confirm(t.isLoaded,r),!0}),t.check()},a.prototype.confirm=function(t,e){this.isLoaded=t,this.emit("confirm",this,e)};var f={};return u.prototype=new e,u.prototype.check=function(){if(!this.isChecked){var t=new Image;
r.bind(t,"load",this),r.bind(t,"error",this),t.src=this.src,this.isChecked=!0}},u.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},u.prototype.onload=function(t){this.confirm(!0,"onload"),this.unbindProxyEvents(t)},u.prototype.onerror=function(t){this.confirm(!1,"onerror"),this.unbindProxyEvents(t)},u.prototype.confirm=function(t,e){this.isConfirmed=!0,this.isLoaded=t,this.emit("confirm",this,e)},u.prototype.unbindProxyEvents=function(t){r.unbind(t.target,"load",this),r.unbind(t.target,"error",this)},s}),!function(t){"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(t):"undefined"!=typeof window?window.openpgp=t():"undefined"!=typeof global?global.openpgp=t():"undefined"!=typeof self&&(self.openpgp=t())}(function(){return function t(e,r,n){function i(s,a){if(!r[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}var c=r[s]={exports:{}};e[s][0].call(c.exports,function(t){var r=e[s][1][t];return i(r?r:t)},c,c.exports,t,e,r,n)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(t,e,r){function n(t,e){return this instanceof n?(this.text=t.replace(/\r/g,"").replace(/[\t ]+\n/g,"\n").replace(/\n/g,"\r\n"),void(this.packets=e||new a.List)):new n(t,e)}function i(t){var e=c.decode(t);if(e.type!==u.armor.signed)throw new Error("No cleartext signed message.");var r=new a.List;r.read(e.data),o(e.headers,r);var i=new n(e.text,r);return i}function o(t,e){for(var r=function(t){for(var r=0;r<e.length;r++)if(e[r].tag===u.packet.signature&&!t.some(function(t){return e[r].hashAlgorithm===t}))return!1;return!0},n=null,i=[],o=0;o<t.length;o++){if(n=t[o].match(/Hash: (.+)/),!n)throw new Error('Only "Hash" header allowed in cleartext signed message');n=n[1].replace(/\s/g,""),n=n.split(","),n=n.map(function(t){t=t.toLowerCase();try{return u.write(u.hash,t)}catch(e){throw new Error("Unknown hash algorithm in armor header: "+t)}}),i=i.concat(n)}if(!i.length&&!r([u.hash.md5]))throw new Error('If no "Hash" header in cleartext signed message, then only MD5 signatures allowed');if(!r(i))throw new Error("Hash algorithm mismatch in armor header and signature")}var s=t("./config"),a=t("./packet"),u=t("./enums.js"),c=t("./encoding/armor.js");n.prototype.getSigningKeyIds=function(){var t=[],e=this.packets.filterByTag(u.packet.signature);return e.forEach(function(e){t.push(e.issuerKeyId)}),t},n.prototype.sign=function(t){var e=new a.List,r=new a.Literal;r.setText(this.text);for(var n=0;n<t.length;n++){var i=new a.Signature;i.signatureType=u.signature.text,i.hashAlgorithm=s.prefer_hash_algorithm;var o=t[n].getSigningKeyPacket();if(i.publicKeyAlgorithm=o.algorithm,!o.isDecrypted)throw new Error("Private key is not decrypted.");i.sign(o,r),e.push(i)}this.packets=e},n.prototype.verify=function(t){var e=[],r=this.packets.filterByTag(u.packet.signature),n=new a.Literal;return n.setText(this.text),t.forEach(function(t){for(var i=0;i<r.length;i++){var o=t.getPublicKeyPacket([r[i].issuerKeyId]);if(o){var s={};s.keyid=r[i].issuerKeyId,s.valid=r[i].verify(o,n),e.push(s);break}}}),e},n.prototype.getText=function(){return this.text.replace(/\r\n/g,"\n")},n.prototype.armor=function(){var t={hash:u.read(u.hash,s.prefer_hash_algorithm).toUpperCase(),text:this.text,data:this.packets.write()};return c.encode(u.armor.signed,t)},r.CleartextMessage=n,r.readArmored=i},{"./config":4,"./encoding/armor.js":28,"./enums.js":30,"./packet":40}],2:[function(t,e){JXG={exists:function(t){return function(e){return!(e===t||null===e)}}()},JXG.decompress=function(t){return unescape(new JXG.Util.Unzip(JXG.Util.Base64.decodeAsArray(t)).unzip()[0][0])},JXG.Util={},JXG.Util.Unzip=function(t){function e(){return D+=8,B<N.length?N[B++]:-1}function r(){P=1}function n(){var t;return D++,t=1&P,P>>=1,0===P&&(P=e(),t=1&P,P=P>>1|128),t}function i(t){for(var e=0,r=t;r--;)e=e<<1|n();return t&&(e=T[e]>>8-t),e}function o(){x=0}function s(t){y++,S[x++]=t,b.push(String.fromCharCode(t)),32768==x&&(x=0)}function a(){this.b0=0,this.b1=0,this.jump=null,this.jumppos=-1}function u(){for(;;){if(q[F]>=W)return-1;if(U[q[F]]==F)return q[F]++;q[F]++}}function c(){var t,e=z[H];if(w&&document.write("<br>len:"+F+" treepos:"+H),17==F)return-1;if(H++,F++,t=u(),w&&document.write("<br>IsPat "+t),t>=0)e.b0=t,w&&document.write("<br>b0 "+e.b0);else if(e.b0=32768,w&&document.write("<br>b0 "+e.b0),c())return-1;if(t=u(),t>=0)e.b1=t,w&&document.write("<br>b1 "+e.b1),e.jump=null;else if(e.b1=32768,w&&document.write("<br>b1 "+e.b1),e.jump=z[H],e.jumppos=H,c())return-1;return F--,0}function l(t,e,r,n){var i;for(w&&document.write("currentTree "+t+" numval "+e+" lengths "+r+" show "+n),z=t,H=0,U=r,W=e,i=0;17>i;i++)q[i]=0;if(F=0,c())return w&&alert("invalid huffman tree\n"),-1;if(w){document.write("<br>Tree: "+z.length);for(var o=0;32>o;o++)document.write("Places["+o+"].b0="+z[o].b0+"<br>"),document.write("Places["+o+"].b1="+z[o].b1+"<br>")}return 0}function h(t){for(var e,r,i,o=0,s=t[o];;)if(i=n(),w&&document.write("b="+i),i){if(!(32768&s.b1))return w&&document.write("ret1"),s.b1;for(s=s.jump,e=t.length,r=0;e>r;r++)if(t[r]===s){o=r;break}}else{if(!(32768&s.b0))return w&&document.write("ret2"),s.b0;o++,s=t[o]}}function d(){var t,u,c,d,f,p,g;do{switch(t=n(),c=i(2)){case 0:w&&alert("Stored\n");break;case 1:w&&alert("Fixed Huffman codes\n");break;case 2:w&&alert("Dynamic Huffman codes\n");break;case 3:w&&alert("Reserved block type!!\n");break;default:w&&alert("Unexpected value %d!\n",c)}if(0===c){var m,y;for(r(),m=e(),m|=e()<<8,y=e(),y|=e()<<8,65535&(m^~y)&&document.write("BlockLen checksum mismatch\n");m--;)u=e(),s(u)}else if(1==c)for(;;)if(f=T[i(7)]>>1,f>23?(f=f<<1|n(),f>199?(f-=128,f=f<<1|n()):(f-=48,f>143&&(f+=136))):f+=256,256>f)s(f);else{if(256==f)break;for(f-=257,p=i(I[f])+E[f],f=T[i(5)]>>3,_[f]>8?(g=i(8),g|=i(_[f]-8)<<8):g=i(_[f]),g+=j[f],f=0;p>f;f++)u=S[x-g&32767],s(u)}else if(2==c){var v,b,k,C,A=new Array(320);for(b=257+i(5),k=1+i(5),C=4+i(4),f=0;19>f;f++)A[f]=0;for(f=0;C>f;f++)A[O[f]]=i(3);for(p=R.length,d=0;p>d;d++)R[d]=new a;if(l(R,19,A,0))return o(),1;if(w){document.write("<br>distanceTree");for(var N=0;N<R.length;N++)document.write("<br>"+R[N].b0+" "+R[N].b1+" "+R[N].jump+" "+R[N].jumppos)}v=b+k,d=0;var B=-1;for(w&&document.write("<br>n="+v+" bits: "+D+"<br>");v>d;)if(B++,f=h(R),w&&document.write("<br>"+B+" i:"+d+" decode: "+f+"    bits "+D+"<br>"),16>f)A[d++]=f;else if(16==f){var P;if(f=3+i(2),d+f>v)return o(),1;for(P=d?A[d-1]:0;f--;)A[d++]=P}else{if(f=17==f?3+i(3):11+i(7),d+f>v)return o(),1;for(;f--;)A[d++]=0}for(p=$.length,d=0;p>d;d++)$[d]=new a;if(l($,b,A,0))return o(),1;for(p=$.length,d=0;p>d;d++)R[d]=new a;var L=[];for(d=b;d<A.length;d++)L[d-b]=A[d];if(l(R,k,L,0))return o(),1;w&&document.write("<br>literalTree");t:for(;;)if(f=h($),f>=256){if(f-=256,0===f)break;for(f--,p=i(I[f])+E[f],f=h(R),_[f]>8?(g=i(8),g|=i(_[f]-8)<<8):g=i(_[f]),g+=j[f];p--;){if(0>x-g)break t;u=S[x-g&32767],s(u)}}else s(f)}}while(!t);return o(),r(),0}function f(){w&&alert("NEXTFILE"),b=[];var t=[];if(A=!1,t[0]=e(),t[1]=e(),w&&alert("type: "+t[0]+" "+t[1]),t[0]==parseInt("78",16)&&t[1]==parseInt("da",16)&&(w&&alert("GEONExT-GZIP"),d(),w&&alert(b.join("")),C[k]=new Array(2),C[k][0]=b.join(""),C[k][1]="geonext.gxt",k++),t[0]==parseInt("78",16)&&t[1]==parseInt("9c",16)&&(w&&alert("ZLIB"),d(),w&&alert(b.join("")),C[k]=new Array(2),C[k][0]=b.join(""),C[k][1]="ZLIB",k++),t[0]==parseInt("1f",16)&&t[1]==parseInt("8b",16)&&(w&&alert("GZIP"),p(),w&&alert(b.join("")),C[k]=new Array(2),C[k][0]=b.join(""),C[k][1]="file",k++),t[0]==parseInt("50",16)&&t[1]==parseInt("4b",16)&&(A=!0,t[2]=e(),t[3]=e(),t[2]==parseInt("3",16)&&t[3]==parseInt("4",16))){t[0]=e(),t[1]=e(),w&&alert("ZIP-Version: "+t[1]+" "+t[0]/10+"."+t[0]%10),g=e(),g|=e()<<8,w&&alert("gpflags: "+g);var r=e();r|=e()<<8,w&&alert("method: "+r),e(),e(),e(),e();var n=e();n|=e()<<8,n|=e()<<16,n|=e()<<24;var i=e();i|=e()<<8,i|=e()<<16,i|=e()<<24;var o=e();o|=e()<<8,o|=e()<<16,o|=e()<<24,w&&alert("local CRC: "+n+"\nlocal Size: "+o+"\nlocal CompSize: "+i);var s=e();s|=e()<<8;var a=e();a|=e()<<8,w&&alert("filelen "+s),c=0,K=[];for(var u;s--;)u=e(),"/"==u|":"==u?c=0:L-1>c&&(K[c++]=String.fromCharCode(u));w&&alert("nameBuf: "+K),v||(v=K);for(var c=0;a>c;)u=e(),c++;m=4294967295,y=0,0===o&&"/"==fileOut.charAt(v.length-1)&&w&&alert("skipdir"),8==r&&(d(),w&&alert(b.join("")),C[k]=new Array(2),C[k][0]=b.join(""),C[k][1]=K.join(""),k++),p()}}function p(){var t,r,n,i,o,s,a=[];if(8&g&&(a[0]=e(),a[1]=e(),a[2]=e(),a[3]=e(),a[0]==parseInt("50",16)&&a[1]==parseInt("4b",16)&&a[2]==parseInt("07",16)&&a[3]==parseInt("08",16)?(t=e(),t|=e()<<8,t|=e()<<16,t|=e()<<24):t=a[0]|a[1]<<8|a[2]<<16|a[3]<<24,r=e(),r|=e()<<8,r|=e()<<16,r|=e()<<24,n=e(),n|=e()<<8,n|=e()<<16,n|=e()<<24,w&&alert("CRC:")),A&&f(),a[0]=e(),8!=a[0])return w&&alert("Unknown compression method!"),0;if(g=e(),w&&g&~parseInt("1f",16)&&alert("Unknown flags set!"),e(),e(),e(),e(),e(),i=e(),4&g)for(a[0]=e(),a[2]=e(),F=a[0]+256*a[1],w&&alert("Extra field size: "+F),o=0;F>o;o++)e();if(8&g){for(o=0,K=[];s=e();)("7"==s||":"==s)&&(o=0),L-1>o&&(K[o++]=s);w&&alert("original file name: "+K)}if(16&g)for(;s=e(););2&g&&(e(),e()),d(),t=e(),t|=e()<<8,t|=e()<<16,t|=e()<<24,n=e(),n|=e()<<8,n|=e()<<16,n|=e()<<24,A&&f()}var g,m,y,v,b=[],w=!1,k=0,C=[],S=new Array(32768),x=0,A=!1,T=[0,128,64,192,32,160,96,224,16,144,80,208,48,176,112,240,8,136,72,200,40,168,104,232,24,152,88,216,56,184,120,248,4,132,68,196,36,164,100,228,20,148,84,212,52,180,116,244,12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,3,131,67,195,35,163,99,227,19,147,83,211,51,179,115,243,11,139,75,203,43,171,107,235,27,155,91,219,59,187,123,251,7,135,71,199,39,167,103,231,23,151,87,215,55,183,119,247,15,143,79,207,47,175,111,239,31,159,95,223,63,191,127,255],E=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],I=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,99,99],j=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],_=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],N=t,B=0,P=1,D=0,L=256,K=[],M=288,$=new Array(M),R=new Array(32),H=0,z=null,F=(new Array(64),new Array(64),0),q=new Array(17);q[0]=0;var U,W;JXG.Util.Unzip.prototype.unzipFile=function(t){var e;for(this.unzip(),e=0;e<C.length;e++)if(C[e][1]==t)return C[e][0]},JXG.Util.Unzip.prototype.deflate=function(){return b=[],A=!1,d(),w&&alert(b.join("")),C[k]=new Array(2),C[k][0]=b.join(""),C[k][1]="DEFLATE",k++,C},JXG.Util.Unzip.prototype.unzip=function(){return w&&alert(N),f(),C}},JXG.Util.Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(t){var e,r,n,i,o,s,a,u=[],c=0;for(t=JXG.Util.Base64._utf8_encode(t);c<t.length;)e=t.charCodeAt(c++),r=t.charCodeAt(c++),n=t.charCodeAt(c++),i=e>>2,o=(3&e)<<4|r>>4,s=(15&r)<<2|n>>6,a=63&n,isNaN(r)?s=a=64:isNaN(n)&&(a=64),u.push([this._keyStr.charAt(i),this._keyStr.charAt(o),this._keyStr.charAt(s),this._keyStr.charAt(a)].join(""));return u.join("")},decode:function(t,e){var r,n,i,o,s,a,u,c=[],l=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");l<t.length;)o=this._keyStr.indexOf(t.charAt(l++)),s=this._keyStr.indexOf(t.charAt(l++)),a=this._keyStr.indexOf(t.charAt(l++)),u=this._keyStr.indexOf(t.charAt(l++)),r=o<<2|s>>4,n=(15&s)<<4|a>>2,i=(3&a)<<6|u,c.push(String.fromCharCode(r)),64!=a&&c.push(String.fromCharCode(n)),64!=u&&c.push(String.fromCharCode(i));return c=c.join(""),e&&(c=JXG.Util.Base64._utf8_decode(c)),c},_utf8_encode:function(t){t=t.replace(/\r\n/g,"\n");for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);128>n?e+=String.fromCharCode(n):n>127&&2048>n?(e+=String.fromCharCode(n>>6|192),e+=String.fromCharCode(63&n|128)):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128),e+=String.fromCharCode(63&n|128))}return e},_utf8_decode:function(t){for(var e=[],r=0,n=0,i=0,o=0;r<t.length;)n=t.charCodeAt(r),128>n?(e.push(String.fromCharCode(n)),r++):n>191&&224>n?(i=t.charCodeAt(r+1),e.push(String.fromCharCode((31&n)<<6|63&i)),r+=2):(i=t.charCodeAt(r+1),o=t.charCodeAt(r+2),e.push(String.fromCharCode((15&n)<<12|(63&i)<<6|63&o)),r+=3);return e.join("")},_destrip:function(t,e){var r,n,i=[],o=[];for(null===e&&(e=76),t.replace(/ /g,""),r=t.length/e,n=0;r>n;n++)i[n]=t.substr(n*e,e);for(r!=t.length/e&&(i[i.length]=t.substr(r*e,t.length-r*e)),n=0;n<i.length;n++)o.push(i[n]);return o.join("\n")},decodeAsArray:function(t){var e,r=this.decode(t),n=[];for(e=0;e<r.length;e++)n[e]=r.charCodeAt(e);return n},decodeGEONExT:function(t){return decodeAsArray(destrip(t),!1)}},JXG.Util.asciiCharCodeAt=function(t,e){var r=t.charCodeAt(e);if(r>255)switch(r){case 8364:r=128;break;case 8218:r=130;break;case 402:r=131;break;case 8222:r=132;break;case 8230:r=133;break;case 8224:r=134;break;case 8225:r=135;break;case 710:r=136;break;case 8240:r=137;break;case 352:r=138;break;case 8249:r=139;break;case 338:r=140;break;case 381:r=142;break;case 8216:r=145;break;case 8217:r=146;break;case 8220:r=147;break;case 8221:r=148;break;case 8226:r=149;break;case 8211:r=150;break;case 8212:r=151;break;case 732:r=152;break;case 8482:r=153;break;case 353:r=154;break;case 8250:r=155;break;case 339:r=156;break;case 382:r=158;break;case 376:r=159}return r},JXG.Util.utf8Decode=function(t){var e,r=[],n=0,i=0,o=0;if(!JXG.exists(t))return"";for(;n<t.length;)i=t.charCodeAt(n),128>i?(r.push(String.fromCharCode(i)),n++):i>191&&224>i?(o=t.charCodeAt(n+1),r.push(String.fromCharCode((31&i)<<6|63&o)),n+=2):(o=t.charCodeAt(n+1),e=t.charCodeAt(n+2),r.push(String.fromCharCode((15&i)<<12|(63&o)<<6|63&e)),n+=3);return r.join("")},JXG.Util.genUUID=function(){for(var t,e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=new Array(36),n=0,i=0;36>i;i++)8==i||13==i||18==i||23==i?r[i]="-":14==i?r[i]="4":(2>=n&&(n=33554432+16777216*Math.random()|0),t=15&n,n>>=4,r[i]=e[19==i?3&t|8:t]);return r.join("")},e.exports=JXG},{}],3:[function(t,e){var r=t("../enums.js");e.exports={prefer_hash_algorithm:r.hash.sha256,encryption_cipher:r.symmetric.aes256,compression:r.compression.zip,integrity_protect:!0,rsa_blinding:!0,show_version:!0,show_comment:!0,versionstring:"OpenPGP.js v0.6.0",commentstring:"http://openpgpjs.org",keyserver:"keyserver.linux.it",node_store:"./openpgp.store",debug:!1}},{"../enums.js":30}],4:[function(t,e){e.exports=t("./config.js")},{"./config.js":3}],5:[function(t,e){"use strict";var r=t("../util.js"),n=t("./cipher");e.exports={encrypt:function(t,e,i,o,s){e=new n[e](o);var a=e.blockSize,u=new Uint8Array(a),c=new Uint8Array(a);t=t+t.charAt(a-2)+t.charAt(a-1);var l,h,d,f=new Uint8Array(i.length+2+2*a),p=s?0:2;for(l=0;a>l;l++)u[l]=0;for(c=e.encrypt(u),l=0;a>l;l++)f[l]=c[l]^t.charCodeAt(l);for(u.set(f.subarray(0,a)),c=e.encrypt(u),f[a]=c[0]^t.charCodeAt(a),f[a+1]=c[1]^t.charCodeAt(a+1),u.set(s?f.subarray(2,a+2):f.subarray(0,a)),c=e.encrypt(u),l=0;a>l;l++)f[a+2+l]=c[l+p]^i.charCodeAt(l);for(h=a;h<i.length+p;h+=a)for(d=h+2-p,u.set(f.subarray(d,d+a)),c=e.encrypt(u),l=0;a>l;l++)f[a+d+l]=c[l]^i.charCodeAt(h+l-p);return f=f.subarray(0,i.length+2+a),r.Uint8Array2str(f)},mdc:function(t,e,i){t=new n[t](e);var o,s=t.blockSize,a=new Uint8Array(s),u=new Uint8Array(s);for(o=0;s>o;o++)a[o]=0;for(a=t.encrypt(a),o=0;s>o;o++)u[o]=i.charCodeAt(o),a[o]^=u[o];return u=t.encrypt(u),r.bin2str(a)+String.fromCharCode(u[0]^i.charCodeAt(s))+String.fromCharCode(u[1]^i.charCodeAt(s+1))},decrypt:function(t,e,r,i){t=new n[t](e);var o,s=t.blockSize,a=new Uint8Array(s),u=new Uint8Array(s),c="",l="";for(o=0;s>o;o++)a[o]=0;for(a=t.encrypt(a),o=0;s>o;o++)u[o]=r.charCodeAt(o),a[o]^=u[o];if(u=t.encrypt(u),a[s-2]!=(u[0]^r.charCodeAt(s))||a[s-1]!=(u[1]^r.charCodeAt(s+1)))throw new Error("CFB decrypt: invalid key");if(i){for(o=0;s>o;o++)a[o]=r.charCodeAt(o+2);for(c=s+2;c<r.length;c+=s)for(u=t.encrypt(a),o=0;s>o&&o+c<r.length;o++)a[o]=r.charCodeAt(c+o),l+=String.fromCharCode(u[o]^a[o])}else{for(o=0;s>o;o++)a[o]=r.charCodeAt(o);for(c=s;c<r.length;c+=s)for(u=t.encrypt(a),o=0;s>o&&o+c<r.length;o++)a[o]=r.charCodeAt(c+o),l+=String.fromCharCode(u[o]^a[o])}return c=i?0:2,l=l.substring(c,r.length-s-2+c)},normalEncrypt:function(t,e,i,o){t=new n[t](e);var s=t.blockSize,a="",u="",c=0,l="",h="";for(u=o.substring(0,s);i.length>s*c;){var d=t.encrypt(r.str2bin(u));a=i.substring(c*s,c*s+s);for(var f=0;f<a.length;f++)h+=String.fromCharCode(a.charCodeAt(f)^d[f]);u=h,h="",l+=u,c++}return l},normalDecrypt:function(t,e,i,o){t=new n[t](e);var s,a=t.blockSize,u="",c=0,l="",h=0;if(null===o)for(s=0;a>s;s++)u+=String.fromCharCode(0);else u=o.substring(0,a);for(;i.length>a*c;){var d=t.encrypt(r.str2bin(u));for(u=i.substring(c*a+h,c*a+a+h),s=0;s<u.length;s++)l+=String.fromCharCode(u.charCodeAt(s)^d[s]);c++}return l}}},{"../util.js":61,"./cipher":10}],6:[function(t,e){"use strict";function r(t){return 255&t}function n(t){return t>>8&255}function i(t){return t>>16&255}function o(t){return t>>24&255}function s(t,e,r,i){return n(p[255&t])|n(p[e>>8&255])<<8|n(p[r>>16&255])<<16|n(p[i>>>24])<<24}function a(t){var e,r,n=t.length,i=new Array(n/4);if(t&&!(n%4)){for(e=0,r=0;n>r;r+=4)i[e++]=t[r]|t[r+1]<<8|t[r+2]<<16|t[r+3]<<24;return i}}function u(t){var e,s=0,a=t.length,u=new Array(4*a);for(e=0;a>e;e++)u[s++]=r(t[e]),u[s++]=n(t[e]),u[s++]=i(t[e]),u[s++]=o(t[e]);return u}function c(t){var e,s,a,u,c,l,h=new Array(b+1),p=t.length,g=new Array(v),m=new Array(v),y=0;if(16==p)l=10,e=4;else if(24==p)l=12,e=6;else{if(32!=p)throw new Error("Invalid key-length for AES key:"+p);l=14,e=8}for(s=0;b+1>s;s++)h[s]=new Uint32Array(4);for(s=0,a=0;p>a;a++,s+=4)g[a]=t.charCodeAt(s)|t.charCodeAt(s+1)<<8|t.charCodeAt(s+2)<<16|t.charCodeAt(s+3)<<24;for(a=e-1;a>=0;a--)m[a]=g[a];for(u=0,c=0,a=0;e>a&&l+1>u;){for(;e>a&&4>c;a++,c++)h[u][c]=m[a];4==c&&(u++,c=0)}for(;l+1>u;){var w=m[e-1];if(m[0]^=f[n(w)]|f[i(w)]<<8|f[o(w)]<<16|f[r(w)]<<24,m[0]^=d[y++],8!=e)for(a=1;e>a;a++)m[a]^=m[a-1];else{for(a=1;e/2>a;a++)m[a]^=m[a-1];for(w=m[e/2-1],m[e/2]^=f[r(w)]|f[n(w)]<<8|f[i(w)]<<16|f[o(w)]<<24,a=e/2+1;e>a;a++)m[a]^=m[a-1]}for(a=0;e>a&&l+1>u;){for(;e>a&&4>c;a++,c++)h[u][c]=m[a];4==c&&(u++,c=0)}}return{rounds:l,rk:h}}function l(t,e,r){var n,i,o;for(o=a(t),i=e.rounds,n=0;i-1>n;n++)r[0]=o[0]^e.rk[n][0],r[1]=o[1]^e.rk[n][1],r[2]=o[2]^e.rk[n][2],r[3]=o[3]^e.rk[n][3],o[0]=p[255&r[0]]^g[r[1]>>8&255]^m[r[2]>>16&255]^y[r[3]>>>24],o[1]=p[255&r[1]]^g[r[2]>>8&255]^m[r[3]>>16&255]^y[r[0]>>>24],o[2]=p[255&r[2]]^g[r[3]>>8&255]^m[r[0]>>16&255]^y[r[1]>>>24],o[3]=p[255&r[3]]^g[r[0]>>8&255]^m[r[1]>>16&255]^y[r[2]>>>24];return n=i-1,r[0]=o[0]^e.rk[n][0],r[1]=o[1]^e.rk[n][1],r[2]=o[2]^e.rk[n][2],r[3]=o[3]^e.rk[n][3],o[0]=s(r[0],r[1],r[2],r[3])^e.rk[i][0],o[1]=s(r[1],r[2],r[3],r[0])^e.rk[i][1],o[2]=s(r[2],r[3],r[0],r[1])^e.rk[i][2],o[3]=s(r[3],r[0],r[1],r[2])^e.rk[i][3],u(o)}function h(t){var e=function(t){this.key=c(t),this._temp=new Uint32Array(this.blockSize/4),this.encrypt=function(t){return l(t,this.key,this._temp)}};return e.blockSize=e.prototype.blockSize=16,e.keySize=e.prototype.keySize=t/8,e}var d=(t("../../util.js"),new Uint8Array([1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145])),f=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),p=new Uint32Array([2774754246,2222750968,2574743534,2373680118,234025727,3177933782,2976870366,1422247313,1345335392,50397442,2842126286,2099981142,436141799,1658312629,3870010189,2591454956,1170918031,2642575903,1086966153,2273148410,368769775,3948501426,3376891790,200339707,3970805057,1742001331,4255294047,3937382213,3214711843,4154762323,2524082916,1539358875,3266819957,486407649,2928907069,1780885068,1513502316,1094664062,49805301,1338821763,1546925160,4104496465,887481809,150073849,2473685474,1943591083,1395732834,1058346282,201589768,1388824469,1696801606,1589887901,672667696,2711000631,251987210,3046808111,151455502,907153956,2608889883,1038279391,652995533,1764173646,3451040383,2675275242,453576978,2659418909,1949051992,773462580,756751158,2993581788,3998898868,4221608027,4132590244,1295727478,1641469623,3467883389,2066295122,1055122397,1898917726,2542044179,4115878822,1758581177,0,753790401,1612718144,536673507,3367088505,3982187446,3194645204,1187761037,3653156455,1262041458,3729410708,3561770136,3898103984,1255133061,1808847035,720367557,3853167183,385612781,3309519750,3612167578,1429418854,2491778321,3477423498,284817897,100794884,2172616702,4031795360,1144798328,3131023141,3819481163,4082192802,4272137053,3225436288,2324664069,2912064063,3164445985,1211644016,83228145,3753688163,3249976951,1977277103,1663115586,806359072,452984805,250868733,1842533055,1288555905,336333848,890442534,804056259,3781124030,2727843637,3427026056,957814574,1472513171,4071073621,2189328124,1195195770,2892260552,3881655738,723065138,2507371494,2690670784,2558624025,3511635870,2145180835,1713513028,2116692564,2878378043,2206763019,3393603212,703524551,3552098411,1007948840,2044649127,3797835452,487262998,1994120109,1004593371,1446130276,1312438900,503974420,3679013266,168166924,1814307912,3831258296,1573044895,1859376061,4021070915,2791465668,2828112185,2761266481,937747667,2339994098,854058965,1137232011,1496790894,3077402074,2358086913,1691735473,3528347292,3769215305,3027004632,4199962284,133494003,636152527,2942657994,2390391540,3920539207,403179536,3585784431,2289596656,1864705354,1915629148,605822008,4054230615,3350508659,1371981463,602466507,2094914977,2624877800,555687742,3712699286,3703422305,2257292045,2240449039,2423288032,1111375484,3300242801,2858837708,3628615824,84083462,32962295,302911004,2741068226,1597322602,4183250862,3501832553,2441512471,1489093017,656219450,3114180135,954327513,335083755,3013122091,856756514,3144247762,1893325225,2307821063,2811532339,3063651117,572399164,2458355477,552200649,1238290055,4283782570,2015897680,2061492133,2408352771,4171342169,2156497161,386731290,3669999461,837215959,3326231172,3093850320,3275833730,2962856233,1999449434,286199582,3417354363,4233385128,3602627437,974525996]),g=new Uint32Array([1667483301,2088564868,2004348569,2071721613,4076011277,1802229437,1869602481,3318059348,808476752,16843267,1734856361,724260477,4278118169,3621238114,2880130534,1987505306,3402272581,2189565853,3385428288,2105408135,4210749205,1499050731,1195871945,4042324747,2913812972,3570709351,2728550397,2947499498,2627478463,2762232823,1920132246,3233848155,3082253762,4261273884,2475900334,640044138,909536346,1061125697,4160222466,3435955023,875849820,2779075060,3857043764,4059166984,1903288979,3638078323,825320019,353708607,67373068,3351745874,589514341,3284376926,404238376,2526427041,84216335,2593796021,117902857,303178806,2155879323,3806519101,3958099238,656887401,2998042573,1970662047,151589403,2206408094,741103732,437924910,454768173,1852759218,1515893998,2694863867,1381147894,993752653,3604395873,3014884814,690573947,3823361342,791633521,2223248279,1397991157,3520182632,0,3991781676,538984544,4244431647,2981198280,1532737261,1785386174,3419114822,3200149465,960066123,1246401758,1280088276,1482207464,3486483786,3503340395,4025468202,2863288293,4227591446,1128498885,1296931543,859006549,2240090516,1162185423,4193904912,33686534,2139094657,1347461360,1010595908,2678007226,2829601763,1364304627,2745392638,1077969088,2408514954,2459058093,2644320700,943222856,4126535940,3166462943,3065411521,3671764853,555827811,269492272,4294960410,4092853518,3537026925,3452797260,202119188,320022069,3974939439,1600110305,2543269282,1145342156,387395129,3301217111,2812761586,2122251394,1027439175,1684326572,1566423783,421081643,1936975509,1616953504,2172721560,1330618065,3705447295,572671078,707417214,2425371563,2290617219,1179028682,4008625961,3099093971,336865340,3739133817,1583267042,185275933,3688607094,3772832571,842163286,976909390,168432670,1229558491,101059594,606357612,1549580516,3267534685,3553869166,2896970735,1650640038,2442213800,2509582756,3840201527,2038035083,3890730290,3368586051,926379609,1835915959,2374828428,3587551588,1313774802,2846444e3,1819072692,1448520954,4109693703,3941256997,1701169839,2054878350,2930657257,134746136,3132780501,2021191816,623200879,774790258,471611428,2795919345,3031724999,3334903633,3907570467,3722289532,1953818780,522141217,1263245021,3183305180,2341145990,2324303749,1886445712,1044282434,3048567236,1718013098,1212715224,50529797,4143380225,235805714,1633796771,892693087,1465364217,3115936208,2256934801,3250690392,488454695,2661164985,3789674808,4177062675,2560109491,286335539,1768542907,3654920560,2391672713,2492740519,2610638262,505297954,2273777042,3924412704,3469641545,1431677695,673730680,3755976058,2357986191,2711706104,2307459456,218962455,3216991706,3873888049,1111655622,1751699640,1094812355,2576951728,757946999,252648977,2964356043,1414834428,3149622742,370551866]),m=new Uint32Array([1673962851,2096661628,2012125559,2079755643,4076801522,1809235307,1876865391,3314635973,811618352,16909057,1741597031,727088427,4276558334,3618988759,2874009259,1995217526,3398387146,2183110018,3381215433,2113570685,4209972730,1504897881,1200539975,4042984432,2906778797,3568527316,2724199842,2940594863,2619588508,2756966308,1927583346,3231407040,3077948087,4259388669,2470293139,642542118,913070646,1065238847,4160029431,3431157708,879254580,2773611685,3855693029,4059629809,1910674289,3635114968,828527409,355090197,67636228,3348452039,591815971,3281870531,405809176,2520228246,84545285,2586817946,118360327,304363026,2149292928,3806281186,3956090603,659450151,2994720178,1978310517,152181513,2199756419,743994412,439627290,456535323,1859957358,1521806938,2690382752,1386542674,997608763,3602342358,3011366579,693271337,3822927587,794718511,2215876484,1403450707,3518589137,0,3988860141,541089824,4242743292,2977548465,1538714971,1792327274,3415033547,3194476990,963791673,1251270218,1285084236,1487988824,3481619151,3501943760,4022676207,2857362858,4226619131,1132905795,1301993293,862344499,2232521861,1166724933,4192801017,33818114,2147385727,1352724560,1014514748,2670049951,2823545768,1369633617,2740846243,1082179648,2399505039,2453646738,2636233885,946882616,4126213365,3160661948,3061301686,3668932058,557998881,270544912,4293204735,4093447923,3535760850,3447803085,202904588,321271059,3972214764,1606345055,2536874647,1149815876,388905239,3297990596,2807427751,2130477694,1031423805,1690872932,1572530013,422718233,1944491379,1623236704,2165938305,1335808335,3701702620,574907938,710180394,2419829648,2282455944,1183631942,4006029806,3094074296,338181140,3735517662,1589437022,185998603,3685578459,3772464096,845436466,980700730,169090570,1234361161,101452294,608726052,1555620956,3265224130,3552407251,2890133420,1657054818,2436475025,2503058581,3839047652,2045938553,3889509095,3364570056,929978679,1843050349,2365688973,3585172693,1318900302,2840191145,1826141292,1454176854,4109567988,3939444202,1707781989,2062847610,2923948462,135272456,3127891386,2029029496,625635109,777810478,473441308,2790781350,3027486644,3331805638,3905627112,3718347997,1961401460,524165407,1268178251,3177307325,2332919435,2316273034,1893765232,1048330814,3044132021,1724688998,1217452104,50726147,4143383030,236720654,1640145761,896163637,1471084887,3110719673,2249691526,3248052417,490350365,2653403550,3789109473,4176155640,2553000856,287453969,1775418217,3651760345,2382858638,2486413204,2603464347,507257374,2266337927,3922272489,3464972750,1437269845,676362280,3752164063,2349043596,2707028129,2299101321,219813645,3211123391,3872862694,1115997762,1758509160,1099088705,2569646233,760903469,253628687,2960903088,1420360788,3144537787,371997206]),y=new Uint32Array([3332727651,4169432188,4003034999,4136467323,4279104242,3602738027,3736170351,2438251973,1615867952,33751297,3467208551,1451043627,3877240574,3043153879,1306962859,3969545846,2403715786,530416258,2302724553,4203183485,4011195130,3001768281,2395555655,4211863792,1106029997,3009926356,1610457762,1173008303,599760028,1408738468,3835064946,2606481600,1975695287,3776773629,1034851219,1282024998,1817851446,2118205247,4110612471,2203045068,1750873140,1374987685,3509904869,4178113009,3801313649,2876496088,1649619249,708777237,135005188,2505230279,1181033251,2640233411,807933976,933336726,168756485,800430746,235472647,607523346,463175808,3745374946,3441880043,1315514151,2144187058,3936318837,303761673,496927619,1484008492,875436570,908925723,3702681198,3035519578,1543217312,2767606354,1984772923,3076642518,2110698419,1383803177,3711886307,1584475951,328696964,2801095507,3110654417,0,3240947181,1080041504,3810524412,2043195825,3069008731,3569248874,2370227147,1742323390,1917532473,2497595978,2564049996,2968016984,2236272591,3144405200,3307925487,1340451498,3977706491,2261074755,2597801293,1716859699,294946181,2328839493,3910203897,67502594,4269899647,2700103760,2017737788,632987551,1273211048,2733855057,1576969123,2160083008,92966799,1068339858,566009245,1883781176,4043634165,1675607228,2009183926,2943736538,1113792801,540020752,3843751935,4245615603,3211645650,2169294285,403966988,641012499,3274697964,3202441055,899848087,2295088196,775493399,2472002756,1441965991,4236410494,2051489085,3366741092,3135724893,841685273,3868554099,3231735904,429425025,2664517455,2743065820,1147544098,1417554474,1001099408,193169544,2362066502,3341414126,1809037496,675025940,2809781982,3168951902,371002123,2910247899,3678134496,1683370546,1951283770,337512970,2463844681,201983494,1215046692,3101973596,2673722050,3178157011,1139780780,3299238498,967348625,832869781,3543655652,4069226873,3576883175,2336475336,1851340599,3669454189,25988493,2976175573,2631028302,1239460265,3635702892,2902087254,4077384948,3475368682,3400492389,4102978170,1206496942,270010376,1876277946,4035475576,1248797989,1550986798,941890588,1475454630,1942467764,2538718918,3408128232,2709315037,3902567540,1042358047,2531085131,1641856445,226921355,260409994,3767562352,2084716094,1908716981,3433719398,2430093384,100991747,4144101110,470945294,3265487201,1784624437,2935576407,1775286713,395413126,2572730817,975641885,666476190,3644383713,3943954680,733190296,573772049,3535497577,2842745305,126455438,866620564,766942107,1008868894,361924487,3374377449,2269761230,2868860245,1350051880,2776293343,59739276,1509466529,159418761,437718285,1708834751,3610371814,2227585602,3501746280,2193834305,699439513,1517759789,504434447,2076946608,2835108948,1842789307,742004246]),v=8,b=14;e.exports={};var w=[128,192,256];for(var k in w)e.exports[w[k]]=h(w[k])},{"../../util.js":61}],7:[function(t,e){function r(){}function n(t){this.bf=new r,this.bf.init(i.str2bin(t)),this.encrypt=function(t){return this.bf.encrypt_block(t)}}r.prototype.BLOCKSIZE=8,
r.prototype.SBOXES=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]],r.prototype.PARRAY=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],r.prototype.NN=16,r.prototype._clean=function(t){if(0>t){var e=2147483647&t;t=e+2147483648}return t},r.prototype._F=function(t){var e,r,n,i,o;return i=255&t,t>>>=8,n=255&t,t>>>=8,r=255&t,t>>>=8,e=255&t,o=this.sboxes[0][e]+this.sboxes[1][r],o^=this.sboxes[2][n],o+=this.sboxes[3][i]},r.prototype._encrypt_block=function(t){var e,r=t[0],n=t[1];for(e=0;e<this.NN;++e){r^=this.parray[e],n=this._F(r)^n;var i=r;r=n,n=i}r^=this.parray[this.NN+0],n^=this.parray[this.NN+1],t[0]=this._clean(n),t[1]=this._clean(r)},r.prototype.encrypt_block=function(t){var e,r=[0,0],n=this.BLOCKSIZE/2;for(e=0;e<this.BLOCKSIZE/2;++e)r[0]=r[0]<<8|255&t[e+0],r[1]=r[1]<<8|255&t[e+n];this._encrypt_block(r);var i=[];for(e=0;e<this.BLOCKSIZE/2;++e)i[e+0]=r[0]>>>24-8*e&255,i[e+n]=r[1]>>>24-8*e&255;return i},r.prototype._decrypt_block=function(t){var e,r=t[0],n=t[1];for(e=this.NN+1;e>1;--e){r^=this.parray[e],n=this._F(r)^n;var i=r;r=n,n=i}r^=this.parray[1],n^=this.parray[0],t[0]=this._clean(n),t[1]=this._clean(r)},r.prototype.init=function(t){var e,r=0;for(this.parray=[],e=0;e<this.NN+2;++e){var n,i=0;for(n=0;4>n;++n)i=i<<8|255&t[r],++r>=t.length&&(r=0);this.parray[e]=this.PARRAY[e]^i}for(this.sboxes=[],e=0;4>e;++e)for(this.sboxes[e]=[],r=0;256>r;++r)this.sboxes[e][r]=this.SBOXES[e][r];var o=[0,0];for(e=0;e<this.NN+2;e+=2)this._encrypt_block(o),this.parray[e+0]=o[0],this.parray[e+1]=o[1];for(e=0;4>e;++e)for(r=0;256>r;r+=2)this._encrypt_block(o),this.sboxes[e][r+0]=o[0],this.sboxes[e][r+1]=o[1]};var i=t("../../util.js");e.exports=n,e.exports.keySize=n.prototype.keySize=16,e.exports.blockSize=n.prototype.blockSize=16},{"../../util.js":61}],8:[function(t,e){function r(){function t(t,e,r){var n=e+t,i=n<<r|n>>>32-r;return(o[0][i>>>24]^o[1][i>>>16&255])-o[2][i>>>8&255]+o[3][255&i]}function e(t,e,r){var n=e^t,i=n<<r|n>>>32-r;return o[0][i>>>24]-o[1][i>>>16&255]+o[2][i>>>8&255]^o[3][255&i]}function r(t,e,r){var n=e-t,i=n<<r|n>>>32-r;return(o[0][i>>>24]+o[1][i>>>16&255]^o[2][i>>>8&255])-o[3][255&i]}this.BlockSize=8,this.KeySize=16,this.setKey=function(t){if(this.masking=new Array(16),this.rotate=new Array(16),this.reset(),t.length!=this.KeySize)throw new Error("CAST-128: keys must be 16 bytes");return this.keySchedule(t),!0},this.reset=function(){for(var t=0;16>t;t++)this.masking[t]=0,this.rotate[t]=0},this.getBlockSize=function(){return BlockSize},this.encrypt=function(n){for(var i=new Array(n.length),o=0;o<n.length;o+=8){var s,a=n[o]<<24|n[o+1]<<16|n[o+2]<<8|n[o+3],u=n[o+4]<<24|n[o+5]<<16|n[o+6]<<8|n[o+7];s=u,u=a^t(u,this.masking[0],this.rotate[0]),a=s,s=u,u=a^e(u,this.masking[1],this.rotate[1]),a=s,s=u,u=a^r(u,this.masking[2],this.rotate[2]),a=s,s=u,u=a^t(u,this.masking[3],this.rotate[3]),a=s,s=u,u=a^e(u,this.masking[4],this.rotate[4]),a=s,s=u,u=a^r(u,this.masking[5],this.rotate[5]),a=s,s=u,u=a^t(u,this.masking[6],this.rotate[6]),a=s,s=u,u=a^e(u,this.masking[7],this.rotate[7]),a=s,s=u,u=a^r(u,this.masking[8],this.rotate[8]),a=s,s=u,u=a^t(u,this.masking[9],this.rotate[9]),a=s,s=u,u=a^e(u,this.masking[10],this.rotate[10]),a=s,s=u,u=a^r(u,this.masking[11],this.rotate[11]),a=s,s=u,u=a^t(u,this.masking[12],this.rotate[12]),a=s,s=u,u=a^e(u,this.masking[13],this.rotate[13]),a=s,s=u,u=a^r(u,this.masking[14],this.rotate[14]),a=s,s=u,u=a^t(u,this.masking[15],this.rotate[15]),a=s,i[o]=u>>>24&255,i[o+1]=u>>>16&255,i[o+2]=u>>>8&255,i[o+3]=255&u,i[o+4]=a>>>24&255,i[o+5]=a>>>16&255,i[o+6]=a>>>8&255,i[o+7]=255&a}return i},this.decrypt=function(n){for(var i=new Array(n.length),o=0;o<n.length;o+=8){var s,a=n[o]<<24|n[o+1]<<16|n[o+2]<<8|n[o+3],u=n[o+4]<<24|n[o+5]<<16|n[o+6]<<8|n[o+7];s=u,u=a^t(u,this.masking[15],this.rotate[15]),a=s,s=u,u=a^r(u,this.masking[14],this.rotate[14]),a=s,s=u,u=a^e(u,this.masking[13],this.rotate[13]),a=s,s=u,u=a^t(u,this.masking[12],this.rotate[12]),a=s,s=u,u=a^r(u,this.masking[11],this.rotate[11]),a=s,s=u,u=a^e(u,this.masking[10],this.rotate[10]),a=s,s=u,u=a^t(u,this.masking[9],this.rotate[9]),a=s,s=u,u=a^r(u,this.masking[8],this.rotate[8]),a=s,s=u,u=a^e(u,this.masking[7],this.rotate[7]),a=s,s=u,u=a^t(u,this.masking[6],this.rotate[6]),a=s,s=u,u=a^r(u,this.masking[5],this.rotate[5]),a=s,s=u,u=a^e(u,this.masking[4],this.rotate[4]),a=s,s=u,u=a^t(u,this.masking[3],this.rotate[3]),a=s,s=u,u=a^r(u,this.masking[2],this.rotate[2]),a=s,s=u,u=a^e(u,this.masking[1],this.rotate[1]),a=s,s=u,u=a^t(u,this.masking[0],this.rotate[0]),a=s,i[o]=u>>>24&255,i[o+1]=u>>>16&255,i[o+2]=u>>>8&255,i[o+3]=255&u,i[o+4]=a>>>24&255,i[o+5]=a>>16&255,i[o+6]=a>>8&255,i[o+7]=255&a}return i};var n=new Array(4);n[0]=new Array(4),n[0][0]=new Array(4,0,13,15,12,14,8),n[0][1]=new Array(5,2,16,18,17,19,10),n[0][2]=new Array(6,3,23,22,21,20,9),n[0][3]=new Array(7,1,26,25,27,24,11),n[1]=new Array(4),n[1][0]=new Array(0,6,21,23,20,22,16),n[1][1]=new Array(1,4,0,2,1,3,18),n[1][2]=new Array(2,5,7,6,5,4,17),n[1][3]=new Array(3,7,10,9,11,8,19),n[2]=new Array(4),n[2][0]=new Array(4,0,13,15,12,14,8),n[2][1]=new Array(5,2,16,18,17,19,10),n[2][2]=new Array(6,3,23,22,21,20,9),n[2][3]=new Array(7,1,26,25,27,24,11),n[3]=new Array(4),n[3][0]=new Array(0,6,21,23,20,22,16),n[3][1]=new Array(1,4,0,2,1,3,18),n[3][2]=new Array(2,5,7,6,5,4,17),n[3][3]=new Array(3,7,10,9,11,8,19);var i=new Array(4);i[0]=new Array(4),i[0][0]=new Array(24,25,23,22,18),i[0][1]=new Array(26,27,21,20,22),i[0][2]=new Array(28,29,19,18,25),i[0][3]=new Array(30,31,17,16,28),i[1]=new Array(4),i[1][0]=new Array(3,2,12,13,8),i[1][1]=new Array(1,0,14,15,13),i[1][2]=new Array(7,6,8,9,3),i[1][3]=new Array(5,4,10,11,7),i[2]=new Array(4),i[2][0]=new Array(19,18,28,29,25),i[2][1]=new Array(17,16,30,31,28),i[2][2]=new Array(23,22,24,25,18),i[2][3]=new Array(21,20,26,27,22),i[3]=new Array(4),i[3][0]=new Array(8,9,7,6,3),i[3][1]=new Array(10,11,5,4,7),i[3][2]=new Array(12,13,3,2,8),i[3][3]=new Array(14,15,1,0,13),this.keySchedule=function(t){var e,r,s=new Array(8),a=new Array(32);for(e=0;4>e;e++)r=4*e,s[e]=t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3];for(var u,c=[6,7,4,5],l=0,h=0;2>h;h++)for(var d=0;4>d;d++){for(r=0;4>r;r++){var f=n[d][r];u=s[f[1]],u^=o[4][s[f[2]>>>2]>>>24-8*(3&f[2])&255],u^=o[5][s[f[3]>>>2]>>>24-8*(3&f[3])&255],u^=o[6][s[f[4]>>>2]>>>24-8*(3&f[4])&255],u^=o[7][s[f[5]>>>2]>>>24-8*(3&f[5])&255],u^=o[c[r]][s[f[6]>>>2]>>>24-8*(3&f[6])&255],s[f[0]]=u}for(r=0;4>r;r++){var p=i[d][r];u=o[4][s[p[0]>>>2]>>>24-8*(3&p[0])&255],u^=o[5][s[p[1]>>>2]>>>24-8*(3&p[1])&255],u^=o[6][s[p[2]>>>2]>>>24-8*(3&p[2])&255],u^=o[7][s[p[3]>>>2]>>>24-8*(3&p[3])&255],u^=o[4+r][s[p[4]>>>2]>>>24-8*(3&p[4])&255],a[l]=u,l++}}for(e=0;16>e;e++)this.masking[e]=a[e],this.rotate[e]=31&a[16+e]};var o=new Array(8);o[0]=new Array(821772500,2678128395,1810681135,1059425402,505495343,2617265619,1610868032,3483355465,3218386727,2294005173,3791863952,2563806837,1852023008,365126098,3269944861,584384398,677919599,3229601881,4280515016,2002735330,1136869587,3744433750,2289869850,2731719981,2714362070,879511577,1639411079,575934255,717107937,2857637483,576097850,2731753936,1725645e3,2810460463,5111599,767152862,2543075244,1251459544,1383482551,3052681127,3089939183,3612463449,1878520045,1510570527,2189125840,2431448366,582008916,3163445557,1265446783,1354458274,3529918736,3202711853,3073581712,3912963487,3029263377,1275016285,4249207360,2905708351,3304509486,1442611557,3585198765,2712415662,2731849581,3248163920,2283946226,208555832,2766454743,1331405426,1447828783,3315356441,3108627284,2957404670,2981538698,3339933917,1669711173,286233437,1465092821,1782121619,3862771680,710211251,980974943,1651941557,430374111,2051154026,704238805,4128970897,3144820574,2857402727,948965521,3333752299,2227686284,718756367,2269778983,2731643755,718440111,2857816721,3616097120,1113355533,2478022182,410092745,1811985197,1944238868,2696854588,1415722873,1682284203,1060277122,1998114690,1503841958,82706478,2315155686,1068173648,845149890,2167947013,1768146376,1993038550,3566826697,3390574031,940016341,3355073782,2328040721,904371731,1205506512,4094660742,2816623006,825647681,85914773,2857843460,1249926541,1417871568,3287612,3211054559,3126306446,1975924523,1353700161,2814456437,2438597621,1800716203,722146342,2873936343,1151126914,4160483941,2877670899,458611604,2866078500,3483680063,770352098,2652916994,3367839148,3940505011,3585973912,3809620402,718646636,2504206814,2914927912,3631288169,2857486607,2860018678,575749918,2857478043,718488780,2069512688,3548183469,453416197,1106044049,3032691430,52586708,3378514636,3459808877,3211506028,1785789304,218356169,3571399134,3759170522,1194783844,1523787992,3007827094,1975193539,2555452411,1341901877,3045838698,3776907964,3217423946,2802510864,2889438986,1057244207,1636348243,3761863214,1462225785,2632663439,481089165,718503062,24497053,3332243209,3344655856,3655024856,3960371065,1195698900,2971415156,3710176158,2115785917,4027663609,3525578417,2524296189,2745972565,3564906415,1372086093,1452307862,2780501478,1476592880,3389271281,18495466,2378148571,901398090,891748256,3279637769,3157290713,2560960102,1447622437,4284372637,216884176,2086908623,1879786977,3588903153,2242455666,2938092967,3559082096,2810645491,758861177,1121993112,215018983,642190776,4169236812,1196255959,2081185372,3508738393,941322904,4124243163,2877523539,1848581667,2205260958,3180453958,2589345134,3694731276,550028657,2519456284,3789985535,2973870856,2093648313,443148163,46942275,2734146937,1117713533,1115362972,1523183689,3717140224,1551984063),o[1]=new Array(522195092,4010518363,1776537470,960447360,4267822970,4005896314,1435016340,1929119313,2913464185,1310552629,3579470798,3724818106,2579771631,1594623892,417127293,2715217907,2696228731,1508390405,3994398868,3925858569,3695444102,4019471449,3129199795,3770928635,3520741761,990456497,4187484609,2783367035,21106139,3840405339,631373633,3783325702,532942976,396095098,3548038825,4267192484,2564721535,2011709262,2039648873,620404603,3776170075,2898526339,3612357925,4159332703,1645490516,223693667,1567101217,3362177881,1029951347,3470931136,3570957959,1550265121,119497089,972513919,907948164,3840628539,1613718692,3594177948,465323573,2659255085,654439692,2575596212,2699288441,3127702412,277098644,624404830,4100943870,2717858591,546110314,2403699828,3655377447,1321679412,4236791657,1045293279,4010672264,895050893,2319792268,494945126,1914543101,2777056443,3894764339,2219737618,311263384,4275257268,3458730721,669096869,3584475730,3835122877,3319158237,3949359204,2005142349,2713102337,2228954793,3769984788,569394103,3855636576,1425027204,108000370,2736431443,3671869269,3043122623,1750473702,2211081108,762237499,3972989403,2798899386,3061857628,2943854345,867476300,964413654,1591880597,1594774276,2179821409,552026980,3026064248,3726140315,2283577634,3110545105,2152310760,582474363,1582640421,1383256631,2043843868,3322775884,1217180674,463797851,2763038571,480777679,2718707717,2289164131,3118346187,214354409,200212307,3810608407,3025414197,2674075964,3997296425,1847405948,1342460550,510035443,4080271814,815934613,833030224,1620250387,1945732119,2703661145,3966000196,1388869545,3456054182,2687178561,2092620194,562037615,1356438536,3409922145,3261847397,1688467115,2150901366,631725691,3840332284,549916902,3455104640,394546491,837744717,2114462948,751520235,2221554606,2415360136,3999097078,2063029875,803036379,2702586305,821456707,3019566164,360699898,4018502092,3511869016,3677355358,2402471449,812317050,49299192,2570164949,3259169295,2816732080,3331213574,3101303564,2156015656,3705598920,3546263921,143268808,3200304480,1638124008,3165189453,3341807610,578956953,2193977524,3638120073,2333881532,807278310,658237817,2969561766,1641658566,11683945,3086995007,148645947,1138423386,4158756760,1981396783,2401016740,3699783584,380097457,2680394679,2803068651,3334260286,441530178,4016580796,1375954390,761952171,891809099,2183123478,157052462,3683840763,1592404427,341349109,2438483839,1417898363,644327628,2233032776,2353769706,2201510100,220455161,1815641738,182899273,2995019788,3627381533,3702638151,2890684138,1052606899,588164016,1681439879,4038439418,2405343923,4229449282,167996282,1336969661,1688053129,2739224926,1543734051,1046297529,1138201970,2121126012,115334942,1819067631,1902159161,1941945968,2206692869,1159982321),o[2]=new Array(2381300288,637164959,3952098751,3893414151,1197506559,916448331,2350892612,2932787856,3199334847,4009478890,3905886544,1373570990,2450425862,4037870920,3778841987,2456817877,286293407,124026297,3001279700,1028597854,3115296800,4208886496,2691114635,2188540206,1430237888,1218109995,3572471700,308166588,570424558,2187009021,2455094765,307733056,1310360322,3135275007,1384269543,2388071438,863238079,2359263624,2801553128,3380786597,2831162807,1470087780,1728663345,4072488799,1090516929,532123132,2389430977,1132193179,2578464191,3051079243,1670234342,1434557849,2711078940,1241591150,3314043432,3435360113,3091448339,1812415473,2198440252,267246943,796911696,3619716990,38830015,1526438404,2806502096,374413614,2943401790,1489179520,1603809326,1920779204,168801282,260042626,2358705581,1563175598,2397674057,1356499128,2217211040,514611088,2037363785,2186468373,4022173083,2792511869,2913485016,1173701892,4200428547,3896427269,1334932762,2455136706,602925377,2835607854,1613172210,41346230,2499634548,2457437618,2188827595,41386358,4172255629,1313404830,2405527007,3801973774,2217704835,873260488,2528884354,2478092616,4012915883,2555359016,2006953883,2463913485,575479328,2218240648,2099895446,660001756,2341502190,3038761536,3888151779,3848713377,3286851934,1022894237,1620365795,3449594689,1551255054,15374395,3570825345,4249311020,4151111129,3181912732,310226346,1133119310,530038928,136043402,2476768958,3107506709,2544909567,1036173560,2367337196,1681395281,1758231547,3641649032,306774401,1575354324,3716085866,1990386196,3114533736,2455606671,1262092282,3124342505,2768229131,4210529083,1833535011,423410938,660763973,2187129978,1639812e3,3508421329,3467445492,310289298,272797111,2188552562,2456863912,310240523,677093832,1013118031,901835429,3892695601,1116285435,3036471170,1337354835,243122523,520626091,277223598,4244441197,4194248841,1766575121,594173102,316590669,742362309,3536858622,4176435350,3838792410,2501204839,1229605004,3115755532,1552908988,2312334149,979407927,3959474601,1148277331,176638793,3614686272,2083809052,40992502,1340822838,2731552767,3535757508,3560899520,1354035053,122129617,7215240,2732932949,3118912700,2718203926,2539075635,3609230695,3725561661,1928887091,2882293555,1988674909,2063640240,2491088897,1459647954,4189817080,2302804382,1113892351,2237858528,1927010603,4002880361,1856122846,1594404395,2944033133,3855189863,3474975698,1643104450,4054590833,3431086530,1730235576,2984608721,3084664418,2131803598,4178205752,267404349,1617849798,1616132681,1462223176,736725533,2327058232,551665188,2945899023,1749386277,2575514597,1611482493,674206544,2201269090,3642560800,728599968,1680547377,2620414464,1388111496,453204106,4156223445,1094905244,2754698257,2201108165,3757000246,2704524545,3922940700,3996465027),o[3]=new Array(2645754912,532081118,2814278639,3530793624,1246723035,1689095255,2236679235,4194438865,2116582143,3859789411,157234593,2045505824,4245003587,1687664561,4083425123,605965023,672431967,1336064205,3376611392,214114848,4258466608,3232053071,489488601,605322005,3998028058,264917351,1912574028,756637694,436560991,202637054,135989450,85393697,2152923392,3896401662,2895836408,2145855233,3535335007,115294817,3147733898,1922296357,3464822751,4117858305,1037454084,2725193275,2127856640,1417604070,1148013728,1827919605,642362335,2929772533,909348033,1346338451,3547799649,297154785,1917849091,4161712827,2883604526,3968694238,1469521537,3780077382,3375584256,1763717519,136166297,4290970789,1295325189,2134727907,2798151366,1566297257,3672928234,2677174161,2672173615,965822077,2780786062,289653839,1133871874,3491843819,35685304,1068898316,418943774,672553190,642281022,2346158704,1954014401,3037126780,4079815205,2030668546,3840588673,672283427,1776201016,359975446,3750173538,555499703,2769985273,1324923,69110472,152125443,3176785106,3822147285,1340634837,798073664,1434183902,15393959,216384236,1303690150,3881221631,3711134124,3960975413,106373927,2578434224,1455997841,1801814300,1578393881,1854262133,3188178946,3258078583,2302670060,1539295533,3505142565,3078625975,2372746020,549938159,3278284284,2620926080,181285381,2865321098,3970029511,68876850,488006234,1728155692,2608167508,836007927,2435231793,919367643,3339422534,3655756360,1457871481,40520939,1380155135,797931188,234455205,2255801827,3990488299,397000196,739833055,3077865373,2871719860,4022553888,772369276,390177364,3853951029,557662966,740064294,1640166671,1699928825,3535942136,622006121,3625353122,68743880,1742502,219489963,1664179233,1577743084,1236991741,410585305,2366487942,823226535,1050371084,3426619607,3586839478,212779912,4147118561,1819446015,1911218849,530248558,3486241071,3252585495,2886188651,3410272728,2342195030,20547779,2982490058,3032363469,3631753222,312714466,1870521650,1493008054,3491686656,615382978,4103671749,2534517445,1932181,2196105170,278426614,6369430,3274544417,2913018367,697336853,2143000447,2946413531,701099306,1558357093,2805003052,3500818408,2321334417,3567135975,216290473,3591032198,23009561,1996984579,3735042806,2024298078,3739440863,569400510,2339758983,3016033873,3097871343,3639523026,3844324983,3256173865,795471839,2951117563,4101031090,4091603803,3603732598,971261452,534414648,428311343,3389027175,2844869880,694888862,1227866773,2456207019,3043454569,2614353370,3749578031,3676663836,459166190,4132644070,1794958188,51825668,2252611902,3084671440,2036672799,3436641603,1099053433,2469121526,3059204941,1323291266,2061838604,1018778475,2233344254,2553501054,334295216,3556750194,1065731521,183467730),o[4]=new Array(2127105028,745436345,2601412319,2788391185,3093987327,500390133,1155374404,389092991,150729210,3891597772,3523549952,1935325696,716645080,946045387,2901812282,1774124410,3869435775,4039581901,3293136918,3438657920,948246080,363898952,3867875531,1286266623,1598556673,68334250,630723836,1104211938,1312863373,613332731,2377784574,1101634306,441780740,3129959883,1917973735,2510624549,3238456535,2544211978,3308894634,1299840618,4076074851,1756332096,3977027158,297047435,3790297736,2265573040,3621810518,1311375015,1667687725,47300608,3299642885,2474112369,201668394,1468347890,576830978,3594690761,3742605952,1958042578,1747032512,3558991340,1408974056,3366841779,682131401,1033214337,1545599232,4265137049,206503691,103024618,2855227313,1337551222,2428998917,2963842932,4015366655,3852247746,2796956967,3865723491,3747938335,247794022,3755824572,702416469,2434691994,397379957,851939612,2314769512,218229120,1380406772,62274761,214451378,3170103466,2276210409,3845813286,28563499,446592073,1693330814,3453727194,29968656,3093872512,220656637,2470637031,77972100,1667708854,1358280214,4064765667,2395616961,325977563,4277240721,4220025399,3605526484,3355147721,811859167,3069544926,3962126810,652502677,3075892249,4132761541,3498924215,1217549313,3250244479,3858715919,3053989961,1538642152,2279026266,2875879137,574252750,3324769229,2651358713,1758150215,141295887,2719868960,3515574750,4093007735,4194485238,1082055363,3417560400,395511885,2966884026,179534037,3646028556,3738688086,1092926436,2496269142,257381841,3772900718,1636087230,1477059743,2499234752,3811018894,2675660129,3285975680,90732309,1684827095,1150307763,1723134115,3237045386,1769919919,1240018934,815675215,750138730,2239792499,1234303040,1995484674,138143821,675421338,1145607174,1936608440,3238603024,2345230278,2105974004,323969391,779555213,3004902369,2861610098,1017501463,2098600890,2628620304,2940611490,2682542546,1171473753,3656571411,3687208071,4091869518,393037935,159126506,1662887367,1147106178,391545844,3452332695,1891500680,3016609650,1851642611,546529401,1167818917,3194020571,2848076033,3953471836,575554290,475796850,4134673196,450035699,2351251534,844027695,1080539133,86184846,1554234488,3692025454,1972511363,2018339607,1491841390,1141460869,1061690759,4244549243,2008416118,2351104703,2868147542,1598468138,722020353,1027143159,212344630,1387219594,1725294528,3745187956,2500153616,458938280,4129215917,1828119673,544571780,3503225445,2297937496,1241802790,267843827,2694610800,1397140384,1558801448,3782667683,1806446719,929573330,2234912681,400817706,616011623,4121520928,3603768725,1761550015,1968522284,4053731006,4192232858,4005120285,872482584,3140537016,3894607381,2287405443,1963876937,3663887957,1584857e3,2975024454,1833426440,4025083860),o[5]=new Array(4143615901,749497569,1285769319,3795025788,2514159847,23610292,3974978748,844452780,3214870880,3751928557,2213566365,1676510905,448177848,3730751033,4086298418,2307502392,871450977,3222878141,4110862042,3831651966,2735270553,1310974780,2043402188,1218528103,2736035353,4274605013,2702448458,3936360550,2693061421,162023535,2827510090,687910808,23484817,3784910947,3371371616,779677500,3503626546,3473927188,4157212626,3500679282,4248902014,2466621104,3899384794,1958663117,925738300,1283408968,3669349440,1840910019,137959847,2679828185,1239142320,1315376211,1547541505,1690155329,739140458,3128809933,3933172616,3876308834,905091803,1548541325,4040461708,3095483362,144808038,451078856,676114313,2861728291,2469707347,993665471,373509091,2599041286,4025009006,4170239449,2149739950,3275793571,3749616649,2794760199,1534877388,572371878,2590613551,1753320020,3467782511,1405125690,4270405205,633333386,3026356924,3475123903,632057672,2846462855,1404951397,3882875879,3915906424,195638627,2385783745,3902872553,1233155085,3355999740,2380578713,2702246304,2144565621,3663341248,3894384975,2502479241,4248018925,3094885567,1594115437,572884632,3385116731,767645374,1331858858,1475698373,3793881790,3532746431,1321687957,619889600,1121017241,3440213920,2070816767,2833025776,1933951238,4095615791,890643334,3874130214,859025556,360630002,925594799,1764062180,3920222280,4078305929,979562269,2810700344,4087740022,1949714515,546639971,1165388173,3069891591,1495988560,922170659,1291546247,2107952832,1813327274,3406010024,3306028637,4241950635,153207855,2313154747,1608695416,1150242611,1967526857,721801357,1220138373,3691287617,3356069787,2112743302,3281662835,1111556101,1778980689,250857638,2298507990,673216130,2846488510,3207751581,3562756981,3008625920,3417367384,2198807050,529510932,3547516680,3426503187,2364944742,102533054,2294910856,1617093527,1204784762,3066581635,1019391227,1069574518,1317995090,1691889997,3661132003,510022745,3238594800,1362108837,1817929911,2184153760,805817662,1953603311,3699844737,120799444,2118332377,207536705,2282301548,4120041617,145305846,2508124933,3086745533,3261524335,1877257368,2977164480,3160454186,2503252186,4221677074,759945014,254147243,2767453419,3801518371,629083197,2471014217,907280572,3900796746,940896768,2751021123,2625262786,3161476951,3661752313,3260732218,1425318020,2977912069,1496677566,3988592072,2140652971,3126511541,3069632175,977771578,1392695845,1698528874,1411812681,1369733098,1343739227,3620887944,1142123638,67414216,3102056737,3088749194,1626167401,2546293654,3941374235,697522451,33404913,143560186,2595682037,994885535,1247667115,3859094837,2699155541,3547024625,4114935275,2968073508,3199963069,2732024527,1237921620,951448369,1898488916,1211705605,2790989240,2233243581,3598044975),
o[6]=new Array(2246066201,858518887,1714274303,3485882003,713916271,2879113490,3730835617,539548191,36158695,1298409750,419087104,1358007170,749914897,2989680476,1261868530,2995193822,2690628854,3443622377,3780124940,3796824509,2976433025,4259637129,1551479e3,512490819,1296650241,951993153,2436689437,2460458047,144139966,3136204276,310820559,3068840729,643875328,1969602020,1680088954,2185813161,3283332454,672358534,198762408,896343282,276269502,3014846926,84060815,197145886,376173866,3943890818,3813173521,3545068822,1316698879,1598252827,2633424951,1233235075,859989710,2358460855,3503838400,3409603720,1203513385,1193654839,2792018475,2060853022,207403770,1144516871,3068631394,1121114134,177607304,3785736302,326409831,1929119770,2983279095,4183308101,3474579288,3200513878,3228482096,119610148,1170376745,3378393471,3163473169,951863017,3337026068,3135789130,2907618374,1183797387,2015970143,4045674555,2182986399,2952138740,3928772205,384012900,2454997643,10178499,2879818989,2596892536,111523738,2995089006,451689641,3196290696,235406569,1441906262,3890558523,3013735005,4158569349,1644036924,376726067,1006849064,3664579700,2041234796,1021632941,1374734338,2566452058,371631263,4007144233,490221539,206551450,3140638584,1053219195,1853335209,3412429660,3562156231,735133835,1623211703,3104214392,2738312436,4096837757,3366392578,3110964274,3956598718,3196820781,2038037254,3877786376,2339753847,300912036,3766732888,2372630639,1516443558,4200396704,1574567987,4069441456,4122592016,2699739776,146372218,2748961456,2043888151,35287437,2596680554,655490400,1132482787,110692520,1031794116,2188192751,1324057718,1217253157,919197030,686247489,3261139658,1028237775,3135486431,3059715558,2460921700,986174950,2661811465,4062904701,2752986992,3709736643,367056889,1353824391,731860949,1650113154,1778481506,784341916,357075625,3608602432,1074092588,2480052770,3811426202,92751289,877911070,3600361838,1231880047,480201094,3756190983,3094495953,434011822,87971354,363687820,1717726236,1901380172,3926403882,2481662265,400339184,1490350766,2661455099,1389319756,2558787174,784598401,1983468483,30828846,3550527752,2716276238,3841122214,1765724805,1955612312,1277890269,1333098070,1564029816,2704417615,1026694237,3287671188,1260819201,3349086767,1016692350,1582273796,1073413053,1995943182,694588404,1025494639,3323872702,3551898420,4146854327,453260480,1316140391,1435673405,3038941953,3486689407,1622062951,403978347,817677117,950059133,4246079218,3278066075,1486738320,1417279718,481875527,2549965225,3933690356,760697757,1452955855,3897451437,1177426808,1702951038,4085348628,2447005172,1084371187,3516436277,3068336338,1073369276,1027665953,3284188590,1230553676,1368340146,2226246512,267243139,2274220762,4070734279,2497715176,2423353163,2504755875),o[7]=new Array(3793104909,3151888380,2817252029,895778965,2005530807,3871412763,237245952,86829237,296341424,3851759377,3974600970,2475086196,709006108,1994621201,2972577594,937287164,3734691505,168608556,3189338153,2225080640,3139713551,3033610191,3025041904,77524477,185966941,1208824168,2344345178,1721625922,3354191921,1066374631,1927223579,1971335949,2483503697,1551748602,2881383779,2856329572,3003241482,48746954,1398218158,2050065058,313056748,4255789917,393167848,1912293076,940740642,3465845460,3091687853,2522601570,2197016661,1727764327,364383054,492521376,1291706479,3264136376,1474851438,1685747964,2575719748,1619776915,1814040067,970743798,1561002147,2925768690,2123093554,1880132620,3151188041,697884420,2550985770,2607674513,2659114323,110200136,1489731079,997519150,1378877361,3527870668,478029773,2766872923,1022481122,431258168,1112503832,897933369,2635587303,669726182,3383752315,918222264,163866573,3246985393,3776823163,114105080,1903216136,761148244,3571337562,1690750982,3166750252,1037045171,1888456500,2010454850,642736655,616092351,365016990,1185228132,4174898510,1043824992,2023083429,2241598885,3863320456,3279669087,3674716684,108438443,2132974366,830746235,606445527,4173263986,2204105912,1844756978,2532684181,4245352700,2969441100,3796921661,1335562986,4061524517,2720232303,2679424040,634407289,885462008,3294724487,3933892248,2094100220,339117932,4048830727,3202280980,1458155303,2689246273,1022871705,2464987878,3714515309,353796843,2822958815,4256850100,4052777845,551748367,618185374,3778635579,4020649912,1904685140,3069366075,2670879810,3407193292,2954511620,4058283405,2219449317,3135758300,1120655984,3447565834,1474845562,3577699062,550456716,3466908712,2043752612,881257467,869518812,2005220179,938474677,3305539448,3850417126,1315485940,3318264702,226533026,965733244,321539988,1136104718,804158748,573969341,3708209826,937399083,3290727049,2901666755,1461057207,4013193437,4066861423,3242773476,2421326174,1581322155,3028952165,786071460,3900391652,3918438532,1485433313,4023619836,3708277595,3678951060,953673138,1467089153,1930354364,1533292819,2492563023,1346121658,1685000834,1965281866,3765933717,4190206607,2052792609,3515332758,690371149,3125873887,2180283551,2903598061,3933952357,436236910,289419410,14314871,1242357089,2904507907,1616633776,2666382180,585885352,3471299210,2699507360,1432659641,277164553,3354103607,770115018,2303809295,3741942315,3177781868,2853364978,2269453327,3774259834,987383833,1290892879,225909803,1741533526,890078084,1496906255,1111072499,916028167,243534141,1252605537,2204162171,531204876,290011180,3916834213,102027703,237315147,209093447,1486785922,220223953,2758195998,4175039106,82940208,3127791296,2569425252,518464269,1353887104,3941492737,2377294467,3935040926)}function n(t){this.cast5=new r,this.cast5.setKey(i.str2bin(t)),this.encrypt=function(t){return this.cast5.encrypt(t)}}var i=t("../../util.js");e.exports=n,e.exports.blockSize=n.prototype.blockSize=8,e.exports.keySize=n.prototype.keySize=16},{"../../util.js":61}],9:[function(t,e){function r(t,e,r,n,i,a){var u,c,l,h,d,f,p,g,m,y,v,b,w,k,C=new Array(16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756),S=new Array((-2146402272),(-2147450880),32768,1081376,1048576,32,(-2146435040),(-2147450848),(-2147483616),(-2146402272),(-2146402304),(-2147483648),(-2147450880),1048576,32,(-2146435040),1081344,1048608,(-2147450848),0,(-2147483648),32768,1081376,(-2146435072),1048608,(-2147483616),0,1081344,32800,(-2146402304),(-2146435072),32800,0,1081376,(-2146435040),1048576,(-2147450848),(-2146435072),(-2146402304),32768,(-2146435072),(-2147450880),32,(-2146402272),1081376,32,32768,(-2147483648),32800,(-2146402304),1048576,(-2147483616),1048608,(-2147450848),(-2147483616),1048608,1081344,0,(-2147450880),32800,(-2147483648),(-2146435040),(-2146402272),1081344),x=new Array(520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584),A=new Array(8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928),T=new Array(256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080),E=new Array(536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312),I=new Array(2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154),j=new Array(268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696),_=0,O=e.length,N=0,B=32==t.length?3:9;for(g=3==B?r?new Array(0,32,2):new Array(30,(-2),(-2)):r?new Array(0,32,2,62,30,(-2),64,96,2):new Array(94,62,(-2),32,64,2,30,(-2),(-2)),r&&(e=o(e,a),O=e.length),result="",tempresult="",1==n&&(m=i.charCodeAt(_++)<<24|i.charCodeAt(_++)<<16|i.charCodeAt(_++)<<8|i.charCodeAt(_++),v=i.charCodeAt(_++)<<24|i.charCodeAt(_++)<<16|i.charCodeAt(_++)<<8|i.charCodeAt(_++),_=0);O>_;){for(f=e.charCodeAt(_++)<<24|e.charCodeAt(_++)<<16|e.charCodeAt(_++)<<8|e.charCodeAt(_++),p=e.charCodeAt(_++)<<24|e.charCodeAt(_++)<<16|e.charCodeAt(_++)<<8|e.charCodeAt(_++),1==n&&(r?(f^=m,p^=v):(y=m,b=v,m=f,v=p)),l=252645135&(f>>>4^p),p^=l,f^=l<<4,l=65535&(f>>>16^p),p^=l,f^=l<<16,l=858993459&(p>>>2^f),f^=l,p^=l<<2,l=16711935&(p>>>8^f),f^=l,p^=l<<8,l=1431655765&(f>>>1^p),p^=l,f^=l<<1,f=f<<1|f>>>31,p=p<<1|p>>>31,c=0;B>c;c+=3){for(w=g[c+1],k=g[c+2],u=g[c];u!=w;u+=k)h=p^t[u],d=(p>>>4|p<<28)^t[u+1],l=f,f=p,p=l^(S[h>>>24&63]|A[h>>>16&63]|E[h>>>8&63]|j[63&h]|C[d>>>24&63]|x[d>>>16&63]|T[d>>>8&63]|I[63&d]);l=f,f=p,p=l}f=f>>>1|f<<31,p=p>>>1|p<<31,l=1431655765&(f>>>1^p),p^=l,f^=l<<1,l=16711935&(p>>>8^f),f^=l,p^=l<<8,l=858993459&(p>>>2^f),f^=l,p^=l<<2,l=65535&(f>>>16^p),p^=l,f^=l<<16,l=252645135&(f>>>4^p),p^=l,f^=l<<4,1==n&&(r?(m=f,v=p):(f^=y,p^=b)),tempresult+=String.fromCharCode(f>>>24,f>>>16&255,f>>>8&255,255&f,p>>>24,p>>>16&255,p>>>8&255,255&p),N+=8,512==N&&(result+=tempresult,tempresult="",N=0)}return result+=tempresult,r||(result=s(result,a)),result}function n(t){pc2bytes0=new Array(0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964),pc2bytes1=new Array(0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697),pc2bytes2=new Array(0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272),pc2bytes3=new Array(0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144),pc2bytes4=new Array(0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256),pc2bytes5=new Array(0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488),pc2bytes6=new Array(0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746),pc2bytes7=new Array(0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568),pc2bytes8=new Array(0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578),pc2bytes9=new Array(0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488),pc2bytes10=new Array(0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800),pc2bytes11=new Array(0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744),pc2bytes12=new Array(0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128),pc2bytes13=new Array(0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261);for(var e,r,n,o=t.length>8?3:1,s=new Array(32*o),a=new Array(0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0),u=0,c=0,l=0;o>l;l++)for(left=t.charCodeAt(u++)<<24|t.charCodeAt(u++)<<16|t.charCodeAt(u++)<<8|t.charCodeAt(u++),right=t.charCodeAt(u++)<<24|t.charCodeAt(u++)<<16|t.charCodeAt(u++)<<8|t.charCodeAt(u++),n=252645135&(left>>>4^right),right^=n,left^=n<<4,n=65535&(right>>>-16^left),left^=n,right^=n<<-16,n=858993459&(left>>>2^right),right^=n,left^=n<<2,n=65535&(right>>>-16^left),left^=n,right^=n<<-16,n=1431655765&(left>>>1^right),right^=n,left^=n<<1,n=16711935&(right>>>8^left),left^=n,right^=n<<8,n=1431655765&(left>>>1^right),right^=n,left^=n<<1,n=left<<8|right>>>20&240,left=right<<24|right<<8&16711680|right>>>8&65280|right>>>24&240,right=n,i=0;i<a.length;i++)a[i]?(left=left<<2|left>>>26,right=right<<2|right>>>26):(left=left<<1|left>>>27,right=right<<1|right>>>27),left&=-15,right&=-15,e=pc2bytes0[left>>>28]|pc2bytes1[left>>>24&15]|pc2bytes2[left>>>20&15]|pc2bytes3[left>>>16&15]|pc2bytes4[left>>>12&15]|pc2bytes5[left>>>8&15]|pc2bytes6[left>>>4&15],r=pc2bytes7[right>>>28]|pc2bytes8[right>>>24&15]|pc2bytes9[right>>>20&15]|pc2bytes10[right>>>16&15]|pc2bytes11[right>>>12&15]|pc2bytes12[right>>>8&15]|pc2bytes13[right>>>4&15],n=65535&(r>>>16^e),s[c++]=e^n,s[c++]=r^n<<16;return s}function o(t,e){var r=8-t.length%8;return 2==e&&8>r?t+="        ".substr(0,r):1==e?t+=String.fromCharCode(r,r,r,r,r,r,r,r).substr(0,r):!e&&8>r&&(t+="\0\0\0\0\0\0\0\0".substr(0,r)),t}function s(t,e){if(2==e)t=t.replace(/ *$/g,"");else if(1==e){var r=t.charCodeAt(t.length-1);t=t.substr(0,t.length-r)}else e||(t=t.replace(/\0*$/g,""));return t}function a(t){this.key=[];for(var e=0;3>e;e++)this.key.push(t.substr(8*e,8));this.encrypt=function(t){return c.str2bin(r(n(this.key[2]),r(n(this.key[1]),r(n(this.key[0]),c.bin2str(t),!0,0,null,null),!1,0,null,null),!0,0,null,null))}}function u(t){this.key=t,this.encrypt=function(t,e){var i=n(this.key);return c.str2bin(r(i,c.bin2str(t),!0,0,null,e))},this.decrypt=function(t,e){var i=n(this.key);return c.str2bin(r(i,c.bin2str(t),!1,0,null,e))}}var c=t("../../util.js");a.keySize=a.prototype.keySize=24,a.blockSize=a.prototype.blockSize=8,e.exports={des:a,originalDes:u}},{"../../util.js":61}],10:[function(t,e){var r=t("./des.js");e.exports={des:r.originalDes,tripledes:r.des,cast5:t("./cast5.js"),twofish:t("./twofish.js"),blowfish:t("./blowfish.js"),idea:function(){throw new Error("IDEA symmetric-key algorithm not implemented")}};var n=t("./aes.js");for(var i in n)e.exports["aes"+i]=n[i]},{"./aes.js":6,"./blowfish.js":7,"./cast5.js":8,"./des.js":9,"./twofish.js":11}],11:[function(t,e){function r(t,e){return(t<<e|t>>>32-e)&c}function n(t,e){return t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24}function i(t,e,r){t.splice(e,4,255&r,r>>>8&255,r>>>16&255,r>>>24&255)}function o(t,e){return t>>>8*e&255}function s(){function t(t){function e(t){return t^t>>2^[0,90,180,238][3&t]}function i(t){return t^t>>1^t>>2^[0,238,180,90][3&t]}function s(t,e){var r,n,i;for(r=0;8>r;r++)n=e>>>24,e=e<<8&c|t>>>24,t=t<<8&c,i=n<<1,128&n&&(i^=333),e^=n^i<<16,i^=n>>>1,1&n&&(i^=166),e^=i<<24|i<<8;return e}function a(t,e){var r,n,i,o;return r=e>>4,n=15&e,i=T[t][r^n],o=E[t][_[n]^O[r]],j[t][_[o]^O[i]]<<4|I[t][i^o]}function u(t,e){var r=o(t,0),n=o(t,1),i=o(t,2),s=o(t,3);switch(m){case 4:r=N[1][r]^o(e[3],0),n=N[0][n]^o(e[3],1),i=N[0][i]^o(e[3],2),s=N[1][s]^o(e[3],3);case 3:r=N[1][r]^o(e[2],0),n=N[1][n]^o(e[2],1),i=N[0][i]^o(e[2],2),s=N[0][s]^o(e[2],3);case 2:r=N[0][N[0][r]^o(e[1],0)]^o(e[0],0),n=N[0][N[1][n]^o(e[1],1)]^o(e[0],1),i=N[1][N[0][i]^o(e[1],2)]^o(e[0],2),s=N[1][N[1][s]^o(e[1],3)]^o(e[0],3)}return B[0][r]^B[1][n]^B[2][i]^B[3][s]}p=t;var l,h,d,f,g,m,y,w,k,C=[],S=[],x=[],A=[],T=[[8,1,7,13,6,15,3,2,0,11,5,9,14,12,10,4],[2,8,11,13,15,7,6,14,3,1,9,4,0,10,12,5]],E=[[14,12,11,8,1,2,3,5,15,4,10,6,7,0,9,13],[1,14,2,11,4,12,3,7,6,13,10,5,15,9,0,8]],I=[[11,10,5,14,6,13,9,0,12,8,15,3,2,4,7,1],[4,12,7,5,1,6,9,10,0,14,13,8,2,11,3,15]],j=[[13,7,15,4,1,2,6,14,9,11,3,0,8,5,12,10],[11,9,5,1,12,3,13,14,6,4,7,15,2,0,8,10]],_=[0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15],O=[0,9,2,11,4,13,6,15,8,1,10,3,12,5,14,7],N=[[],[]],B=[[],[],[],[]];for(p=p.slice(0,32),l=p.length;16!=l&&24!=l&&32!=l;)p[l++]=0;for(l=0;l<p.length;l+=4)x[l>>2]=n(p,l);for(l=0;256>l;l++)N[0][l]=a(0,l),N[1][l]=a(1,l);for(l=0;256>l;l++)y=N[1][l],w=e(y),k=i(y),B[0][l]=y+(w<<8)+(k<<16)+(k<<24),B[2][l]=w+(k<<8)+(y<<16)+(k<<24),y=N[0][l],w=e(y),k=i(y),B[1][l]=k+(k<<8)+(w<<16)+(y<<24),B[3][l]=w+(y<<8)+(k<<16)+(w<<24);for(m=x.length/2,l=0;m>l;l++)h=x[l+l],C[l]=h,d=x[l+l+1],S[l]=d,A[m-l-1]=s(h,d);for(l=0;40>l;l+=2)h=16843009*l,d=h+16843009,h=u(h,C),d=r(u(d,S),8),v[l]=h+d&c,v[l+1]=r(h+2*d,9);for(l=0;256>l;l++)switch(h=d=f=g=l,m){case 4:h=N[1][h]^o(A[3],0),d=N[0][d]^o(A[3],1),f=N[0][f]^o(A[3],2),g=N[1][g]^o(A[3],3);case 3:h=N[1][h]^o(A[2],0),d=N[1][d]^o(A[2],1),f=N[0][f]^o(A[2],2),g=N[0][g]^o(A[2],3);case 2:b[0][l]=B[0][N[0][N[0][h]^o(A[1],0)]^o(A[0],0)],b[1][l]=B[1][N[0][N[1][d]^o(A[1],1)]^o(A[0],1)],b[2][l]=B[2][N[1][N[0][f]^o(A[1],2)]^o(A[0],2)],b[3][l]=B[3][N[1][N[1][g]^o(A[1],3)]^o(A[0],3)]}}function e(t){return b[0][o(t,0)]^b[1][o(t,1)]^b[2][o(t,2)]^b[3][o(t,3)]}function s(t){return b[0][o(t,3)]^b[1][o(t,0)]^b[2][o(t,1)]^b[3][o(t,2)]}function a(t,n){var i=e(n[0]),o=s(n[1]);n[2]=r(n[2]^i+o+v[4*t+8]&c,31),n[3]=r(n[3],1)^i+2*o+v[4*t+9]&c,i=e(n[2]),o=s(n[3]),n[0]=r(n[0]^i+o+v[4*t+10]&c,31),n[1]=r(n[1],1)^i+2*o+v[4*t+11]&c}function u(t,n){var i=e(n[0]),o=s(n[1]);n[2]=r(n[2],1)^i+o+v[4*t+10]&c,n[3]=r(n[3]^i+2*o+v[4*t+11]&c,31),i=e(n[2]),o=s(n[3]),n[0]=r(n[0],1)^i+o+v[4*t+8]&c,n[1]=r(n[1]^i+2*o+v[4*t+9]&c,31)}function l(){v=[],b=[[],[],[],[]]}function h(t,e){g=t,m=e;for(var r=[n(g,m)^v[0],n(g,m+4)^v[1],n(g,m+8)^v[2],n(g,m+12)^v[3]],o=0;8>o;o++)a(o,r);return i(g,m,r[2]^v[4]),i(g,m+4,r[3]^v[5]),i(g,m+8,r[0]^v[6]),i(g,m+12,r[1]^v[7]),m+=16,g}function d(t,e){g=t,m=e;for(var r=[n(g,m)^v[4],n(g,m+4)^v[5],n(g,m+8)^v[6],n(g,m+12)^v[7]],o=7;o>=0;o--)u(o,r);i(g,m,r[2]^v[0]),i(g,m+4,r[3]^v[1]),i(g,m+8,r[0]^v[2]),i(g,m+12,r[1]^v[3]),m+=16}function f(){return g}var p=null,g=null,m=-1,y=null;y="twofish";var v=[],b=[[],[],[],[]];return{name:"twofish",blocksize:16,open:t,close:l,encrypt:h,decrypt:d,finalize:f}}function a(t){this.tf=s(),this.tf.open(l.str2bin(t),0),this.encrypt=function(t){return this.tf.encrypt(u(t),0)}}function u(t){for(var e=[],r=0;r<t.length;r++)e[r]=t[r];return e}var c=4294967295,l=t("../../util.js");e.exports=a,e.exports.keySize=a.prototype.keySize=32,e.exports.blockSize=a.prototype.blockSize=16},{"../../util.js":61}],12:[function(t,e){var r=t("./random.js"),n=t("./cipher"),i=t("./public_key"),o=t("../type/mpi.js");e.exports={publicKeyEncrypt:function(t,e,r){var n=function(){var n;switch(t){case"rsa_encrypt":case"rsa_encrypt_sign":var o=new i.rsa,s=e[0].toBigInteger(),a=e[1].toBigInteger();return n=r.toBigInteger(),[o.encrypt(n,a,s)];case"elgamal":var u=new i.elgamal,c=e[0].toBigInteger(),l=e[1].toBigInteger(),h=e[2].toBigInteger();return n=r.toBigInteger(),u.encrypt(n,l,c,h);default:return[]}}();return n.map(function(t){var e=new o;return e.fromBigInteger(t),e})},publicKeyDecrypt:function(t,e,r){var n,s=function(){switch(t){case"rsa_encrypt_sign":case"rsa_encrypt":var o=new i.rsa,s=e[0].toBigInteger(),a=e[1].toBigInteger(),u=e[2].toBigInteger();n=e[3].toBigInteger();var c=e[4].toBigInteger(),l=e[5].toBigInteger(),h=r[0].toBigInteger();return o.decrypt(h,s,a,u,n,c,l);case"elgamal":var d=new i.elgamal,f=e[3].toBigInteger(),p=r[0].toBigInteger(),g=r[1].toBigInteger();return n=e[0].toBigInteger(),d.decrypt(p,g,n,f);default:return null}}(),a=new o;return a.fromBigInteger(s),a},getPrivateMpiCount:function(t){switch(t){case"rsa_encrypt":case"rsa_encrypt_sign":case"rsa_sign":return 4;case"elgamal":return 1;case"dsa":return 1;default:throw new Error("Unknown algorithm")}},getPublicMpiCount:function(t){switch(t){case"rsa_encrypt":case"rsa_encrypt_sign":case"rsa_sign":return 2;case"elgamal":return 3;case"dsa":return 4;default:throw new Error("Unknown algorithm.")}},generateMpi:function(t,e){var r=function(){switch(t){case"rsa_encrypt":case"rsa_encrypt_sign":case"rsa_sign":var r=new i.rsa,n=r.generate(e,"10001"),o=[];return o.push(n.n),o.push(n.ee),o.push(n.d),o.push(n.p),o.push(n.q),o.push(n.u),o;default:throw new Error("Unsupported algorithm for key generation.")}}();return r.map(function(t){var e=new o;return e.fromBigInteger(t),e})},getPrefixRandom:function(t){return r.getRandomBytes(n[t].blockSize)},generateSessionKey:function(t){return r.getRandomBytes(n[t].keySize)}}},{"../type/mpi.js":59,"./cipher":10,"./public_key":23,"./random.js":26}],13:[function(t,e){var r=e.exports={},n=t("./forge_util.js"),i=null,o=!1,s=null,a=function(){i=String.fromCharCode(128),i+=n.fillString(String.fromCharCode(0),64),s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=!0},u=function(t,e,r){for(var n,i,o,a,u,c,l,h,d,f,p,g,m,y,v,b=r.length();b>=64;){for(l=0;16>l;++l)e[l]=r.getInt32();for(;64>l;++l)n=e[l-2],n=(n>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,i=e[l-15],i=(i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,e[l]=n+e[l-7]+i+e[l-16]&4294967295;for(h=t.h0,d=t.h1,f=t.h2,p=t.h3,g=t.h4,m=t.h5,y=t.h6,v=t.h7,l=0;64>l;++l)a=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),u=y^g&(m^y),o=(h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),c=h&d|f&(h^d),n=v+a+u+s[l]+e[l],i=o+c,v=y,y=m,m=g,g=p+n&4294967295,p=f,f=d,d=h,h=n+i&4294967295;t.h0=t.h0+h&4294967295,t.h1=t.h1+d&4294967295,t.h2=t.h2+f&4294967295,t.h3=t.h3+p&4294967295,t.h4=t.h4+g&4294967295,t.h5=t.h5+m&4294967295,t.h6=t.h6+y&4294967295,t.h7=t.h7+v&4294967295,b-=64}};r.create=function(){o||a();var t=null,e=n.createBuffer(),r=new Array(64),s={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0};return s.start=function(){return s.messageLength=0,e=n.createBuffer(),t={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},s},s.start(),s.update=function(i,o){return"utf8"===o&&(i=n.encodeUtf8(i)),s.messageLength+=i.length,e.putBytes(i),u(t,r,e),(e.read>2048||0===e.length())&&e.compact(),s},s.digest=function(){var o=s.messageLength,a=n.createBuffer();a.putBytes(e.bytes()),a.putBytes(i.substr(0,64-(o+8)%64)),a.putInt32(o>>>29&255),a.putInt32(o<<3&4294967295);var c={h0:t.h0,h1:t.h1,h2:t.h2,h3:t.h3,h4:t.h4,h5:t.h5,h6:t.h6,h7:t.h7};u(c,r,a);var l=n.createBuffer();return l.putInt32(c.h0),l.putInt32(c.h1),l.putInt32(c.h2),l.putInt32(c.h3),l.putInt32(c.h4),l.putInt32(c.h5),l.putInt32(c.h6),l.putInt32(c.h7),l},s}},{"./forge_util.js":14}],14:[function(t,e){var r=e.exports={};r.isArray=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},r.isArrayBuffer=function(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer};var n=[];"undefined"!=typeof Int8Array&&n.push(Int8Array),"undefined"!=typeof Uint8Array&&n.push(Uint8Array),"undefined"!=typeof Uint8ClampedArray&&n.push(Uint8ClampedArray),"undefined"!=typeof Int16Array&&n.push(Int16Array),"undefined"!=typeof Uint16Array&&n.push(Uint16Array),"undefined"!=typeof Int32Array&&n.push(Int32Array),"undefined"!=typeof Uint32Array&&n.push(Uint32Array),"undefined"!=typeof Float32Array&&n.push(Float32Array),"undefined"!=typeof Float64Array&&n.push(Float64Array),r.isArrayBufferView=function(t){for(var e=0;e<n.length;++e)if(t instanceof n[e])return!0;return!1},r.ByteBuffer=function(t){if(this.data="",this.read=0,"string"==typeof t)this.data=t;else if(r.isArrayBuffer(t)||r.isArrayBufferView(t)){var e=new Uint8Array(t);try{this.data=String.fromCharCode.apply(null,e)}catch(n){for(var i=0;i<e.length;++i)this.putByte(e[i])}}},r.ByteBuffer.prototype.length=function(){return this.data.length-this.read},r.ByteBuffer.prototype.isEmpty=function(){return this.length()<=0},r.ByteBuffer.prototype.putByte=function(t){return this.data+=String.fromCharCode(t),this},r.ByteBuffer.prototype.fillWithByte=function(t,e){t=String.fromCharCode(t);for(var r=this.data;e>0;)1&e&&(r+=t),e>>>=1,e>0&&(t+=t);return this.data=r,this},r.ByteBuffer.prototype.putBytes=function(t){return this.data+=t,this},r.ByteBuffer.prototype.putString=function(t){return this.data+=r.encodeUtf8(t),this},r.ByteBuffer.prototype.putInt16=function(t){return this.data+=String.fromCharCode(t>>8&255)+String.fromCharCode(255&t),this},r.ByteBuffer.prototype.putInt24=function(t){return this.data+=String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t),this},r.ByteBuffer.prototype.putInt32=function(t){return this.data+=String.fromCharCode(t>>24&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t),this},r.ByteBuffer.prototype.putInt16Le=function(t){return this.data+=String.fromCharCode(255&t)+String.fromCharCode(t>>8&255),this},r.ByteBuffer.prototype.putInt24Le=function(t){return this.data+=String.fromCharCode(255&t)+String.fromCharCode(t>>8&255)+String.fromCharCode(t>>16&255),this},r.ByteBuffer.prototype.putInt32Le=function(t){return this.data+=String.fromCharCode(255&t)+String.fromCharCode(t>>8&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>24&255),this},r.ByteBuffer.prototype.putInt=function(t,e){do e-=8,this.data+=String.fromCharCode(t>>e&255);while(e>0);return this},r.ByteBuffer.prototype.putSignedInt=function(t,e){return 0>t&&(t+=2<<e-1),this.putInt(t,e)},r.ByteBuffer.prototype.putBuffer=function(t){return this.data+=t.getBytes(),this},r.ByteBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},r.ByteBuffer.prototype.getInt16=function(){var t=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,t},r.ByteBuffer.prototype.getInt24=function(){var t=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,t},r.ByteBuffer.prototype.getInt32=function(){var t=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,t},r.ByteBuffer.prototype.getInt16Le=function(){var t=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,t},r.ByteBuffer.prototype.getInt24Le=function(){var t=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,t},r.ByteBuffer.prototype.getInt32Le=function(){var t=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,t},r.ByteBuffer.prototype.getInt=function(t){var e=0;do e=(e<<8)+this.data.charCodeAt(this.read++),t-=8;while(t>0);return e},r.ByteBuffer.prototype.getSignedInt=function(t){var e=this.getInt(t),r=2<<t-2;return e>=r&&(e-=r<<1),e},r.ByteBuffer.prototype.getBytes=function(t){var e;return t?(t=Math.min(this.length(),t),e=this.data.slice(this.read,this.read+t),this.read+=t):0===t?e="":(e=0===this.read?this.data:this.data.slice(this.read),this.clear()),e},r.ByteBuffer.prototype.bytes=function(t){return"undefined"==typeof t?this.data.slice(this.read):this.data.slice(this.read,this.read+t)},r.ByteBuffer.prototype.at=function(t){return this.data.charCodeAt(this.read+t)},r.ByteBuffer.prototype.setAt=function(t,e){return this.data=this.data.substr(0,this.read+t)+String.fromCharCode(e)+this.data.substr(this.read+t+1),this},r.ByteBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},r.ByteBuffer.prototype.copy=function(){var t=r.createBuffer(this.data);return t.read=this.read,t},r.ByteBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},r.ByteBuffer.prototype.clear=function(){return this.data="",this.read=0,this},r.ByteBuffer.prototype.truncate=function(t){var e=Math.max(0,this.length()-t);return this.data=this.data.substr(this.read,e),this.read=0,this},r.ByteBuffer.prototype.toHex=function(){for(var t="",e=this.read;e<this.data.length;++e){var r=this.data.charCodeAt(e);16>r&&(t+="0"),t+=r.toString(16)}return t},r.ByteBuffer.prototype.toString=function(){return r.decodeUtf8(this.bytes())},r.createBuffer=function(t,e){return e=e||"raw",void 0!==t&&"utf8"===e&&(t=r.encodeUtf8(t)),new r.ByteBuffer(t)},r.fillString=function(t,e){for(var r="";e>0;)1&e&&(r+=t),e>>>=1,e>0&&(t+=t);return r},r.xorBytes=function(t,e,r){for(var n="",i="",o="",s=0,a=0;r>0;--r,++s)i=t.charCodeAt(s)^e.charCodeAt(s),a>=10&&(n+=o,o="",a=0),o+=String.fromCharCode(i),++a;return n+=o},r.hexToBytes=function(t){var e="",r=0;for(t.length&!0&&(r=1,e+=String.fromCharCode(parseInt(t[0],16)));r<t.length;r+=2)e+=String.fromCharCode(parseInt(t.substr(r,2),16));return e},r.bytesToHex=function(t){return r.createBuffer(t).toHex()},r.int32ToBytes=function(t){return String.fromCharCode(t>>24&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t)};var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];r.encode64=function(t,e){for(var r,n,o,s="",a="",u=0;u<t.length;)r=t.charCodeAt(u++),n=t.charCodeAt(u++),o=t.charCodeAt(u++),s+=i.charAt(r>>2),s+=i.charAt((3&r)<<4|n>>4),isNaN(n)?s+="==":(s+=i.charAt((15&n)<<2|o>>6),s+=isNaN(o)?"=":i.charAt(63&o)),e&&s.length>e&&(a+=s.substr(0,e)+"\r\n",s=s.substr(e));return a+=s},r.decode64=function(t){t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var e,r,n,i,s="",a=0;a<t.length;)e=o[t.charCodeAt(a++)-43],r=o[t.charCodeAt(a++)-43],n=o[t.charCodeAt(a++)-43],i=o[t.charCodeAt(a++)-43],s+=String.fromCharCode(e<<2|r>>4),64!==n&&(s+=String.fromCharCode((15&r)<<4|n>>2),64!==i&&(s+=String.fromCharCode((3&n)<<6|i)));return s},r.encodeUtf8=function(t){return unescape(encodeURIComponent(t))},r.decodeUtf8=function(t){return decodeURIComponent(escape(t))}},{}],15:[function(t,e){var r=t("./sha.js"),n=t("./forge_sha256.js");e.exports={md5:t("./md5.js"),sha1:r.sha1,sha224:r.sha224,sha256:r.sha256,sha384:r.sha384,sha512:r.sha512,ripemd:t("./ripe-md.js"),
digest:function(t,e){switch(t){case 1:return this.md5(e);case 2:return this.sha1(e);case 3:return this.ripemd(e);case 8:var r=n.create();return r.update(e),r.digest().getBytes();case 9:return this.sha384(e);case 10:return this.sha512(e);case 11:return this.sha224(e);default:throw new Error("Invalid hash function.")}},getHashByteLength:function(t){switch(t){case 1:return 16;case 2:case 3:return 20;case 8:return 32;case 9:return 48;case 10:return 64;case 11:return 28;default:throw new Error("Invalid hash algorithm.")}}}},{"./forge_sha256.js":13,"./md5.js":16,"./ripe-md.js":17,"./sha.js":18}],16:[function(t,e){function r(t,e){var r=t[0],n=t[1],u=t[2],c=t[3];r=i(r,n,u,c,e[0],7,-680876936),c=i(c,r,n,u,e[1],12,-389564586),u=i(u,c,r,n,e[2],17,606105819),n=i(n,u,c,r,e[3],22,-1044525330),r=i(r,n,u,c,e[4],7,-176418897),c=i(c,r,n,u,e[5],12,1200080426),u=i(u,c,r,n,e[6],17,-1473231341),n=i(n,u,c,r,e[7],22,-45705983),r=i(r,n,u,c,e[8],7,1770035416),c=i(c,r,n,u,e[9],12,-1958414417),u=i(u,c,r,n,e[10],17,-42063),n=i(n,u,c,r,e[11],22,-1990404162),r=i(r,n,u,c,e[12],7,1804603682),c=i(c,r,n,u,e[13],12,-40341101),u=i(u,c,r,n,e[14],17,-1502002290),n=i(n,u,c,r,e[15],22,1236535329),r=o(r,n,u,c,e[1],5,-165796510),c=o(c,r,n,u,e[6],9,-1069501632),u=o(u,c,r,n,e[11],14,643717713),n=o(n,u,c,r,e[0],20,-373897302),r=o(r,n,u,c,e[5],5,-701558691),c=o(c,r,n,u,e[10],9,38016083),u=o(u,c,r,n,e[15],14,-660478335),n=o(n,u,c,r,e[4],20,-405537848),r=o(r,n,u,c,e[9],5,568446438),c=o(c,r,n,u,e[14],9,-1019803690),u=o(u,c,r,n,e[3],14,-187363961),n=o(n,u,c,r,e[8],20,1163531501),r=o(r,n,u,c,e[13],5,-1444681467),c=o(c,r,n,u,e[2],9,-51403784),u=o(u,c,r,n,e[7],14,1735328473),n=o(n,u,c,r,e[12],20,-1926607734),r=s(r,n,u,c,e[5],4,-378558),c=s(c,r,n,u,e[8],11,-2022574463),u=s(u,c,r,n,e[11],16,1839030562),n=s(n,u,c,r,e[14],23,-35309556),r=s(r,n,u,c,e[1],4,-1530992060),c=s(c,r,n,u,e[4],11,1272893353),u=s(u,c,r,n,e[7],16,-155497632),n=s(n,u,c,r,e[10],23,-1094730640),r=s(r,n,u,c,e[13],4,681279174),c=s(c,r,n,u,e[0],11,-358537222),u=s(u,c,r,n,e[3],16,-722521979),n=s(n,u,c,r,e[6],23,76029189),r=s(r,n,u,c,e[9],4,-640364487),c=s(c,r,n,u,e[12],11,-421815835),u=s(u,c,r,n,e[15],16,530742520),n=s(n,u,c,r,e[2],23,-995338651),r=a(r,n,u,c,e[0],6,-198630844),c=a(c,r,n,u,e[7],10,1126891415),u=a(u,c,r,n,e[14],15,-1416354905),n=a(n,u,c,r,e[5],21,-57434055),r=a(r,n,u,c,e[12],6,1700485571),c=a(c,r,n,u,e[3],10,-1894986606),u=a(u,c,r,n,e[10],15,-1051523),n=a(n,u,c,r,e[1],21,-2054922799),r=a(r,n,u,c,e[8],6,1873313359),c=a(c,r,n,u,e[15],10,-30611744),u=a(u,c,r,n,e[6],15,-1560198380),n=a(n,u,c,r,e[13],21,1309151649),r=a(r,n,u,c,e[4],6,-145523070),c=a(c,r,n,u,e[11],10,-1120210379),u=a(u,c,r,n,e[2],15,718787259),n=a(n,u,c,r,e[9],21,-343485551),t[0]=f(r,t[0]),t[1]=f(n,t[1]),t[2]=f(u,t[2]),t[3]=f(c,t[3])}function n(t,e,r,n,i,o){return e=f(f(e,t),f(n,o)),f(e<<i|e>>>32-i,r)}function i(t,e,r,i,o,s,a){return n(e&r|~e&i,t,e,o,s,a)}function o(t,e,r,i,o,s,a){return n(e&i|r&~i,t,e,o,s,a)}function s(t,e,r,i,o,s,a){return n(e^r^i,t,e,o,s,a)}function a(t,e,r,i,o,s,a){return n(r^(e|~i),t,e,o,s,a)}function u(t){txt="";var e,n=t.length,i=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)r(i,c(t.substring(e-64,e)));t=t.substring(e-64);var o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<t.length;e++)o[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(r(i,o),e=0;16>e;e++)o[e]=0;return o[14]=8*n,r(i,o),i}function c(t){var e,r=[];for(e=0;64>e;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}function l(t){for(var e="",r=0;4>r;r++)e+=g[t>>8*r+4&15]+g[t>>8*r&15];return e}function h(t){for(var e=0;e<t.length;e++)t[e]=l(t[e]);return t.join("")}function d(t){return h(u(t))}function f(t,e){return t+e&4294967295}function f(t,e){var r=(65535&t)+(65535&e),n=(t>>16)+(e>>16)+(r>>16);return n<<16|65535&r}var p=t("../../util.js");e.exports=function(t){var e=d(t),r=p.hex2bin(e);return r};var g="0123456789abcdef".split("");"5d41402abc4b2a76b9719d911017c592"!=d("hello")},{"../../util.js":61}],17:[function(t,e){function r(t,e){return new Number(t<<e|t>>>32-e)}function n(t,e,r){return new Number(t^e^r)}function i(t,e,r){return new Number(t&e|~t&r)}function o(t,e,r){return new Number((t|~e)^r)}function s(t,e,r){return new Number(t&r|e&~r)}function a(t,e,r){return new Number(t^(e|~r))}function u(t,e,u,c,l,h,d,f){switch(f){case 0:t+=n(e,u,c)+h+0;break;case 1:t+=i(e,u,c)+h+1518500249;break;case 2:t+=o(e,u,c)+h+1859775393;break;case 3:t+=s(e,u,c)+h+2400959708;break;case 4:t+=a(e,u,c)+h+2840853838;break;case 5:t+=a(e,u,c)+h+1352829926;break;case 6:t+=s(e,u,c)+h+1548603684;break;case 7:t+=o(e,u,c)+h+1836072691;break;case 8:t+=i(e,u,c)+h+2053994217;break;case 9:t+=n(e,u,c)+h+0;break;default:throw new Error("Bogus round number")}t=r(t,d)+l,u=r(u,10),t&=4294967295,e&=4294967295,u&=4294967295,c&=4294967295,l&=4294967295;var p=[];return p[0]=t,p[1]=e,p[2]=u,p[3]=c,p[4]=l,p[5]=h,p[6]=d,p}function c(t){t[0]=1732584193,t[1]=4023233417,t[2]=2562383102,t[3]=271733878,t[4]=3285377520}function l(t,e){blockA=[],blockB=[];var r,n,i;for(n=0;5>n;n++)blockA[n]=new Number(t[n]),blockB[n]=new Number(t[n]);var o=0;for(i=0;5>i;i++)for(n=0;16>n;n++)r=u(blockA[(o+0)%5],blockA[(o+1)%5],blockA[(o+2)%5],blockA[(o+3)%5],blockA[(o+4)%5],e[v[i][n]],y[i][n],i),blockA[(o+0)%5]=r[0],blockA[(o+1)%5]=r[1],blockA[(o+2)%5]=r[2],blockA[(o+3)%5]=r[3],blockA[(o+4)%5]=r[4],o+=4;for(o=0,i=5;10>i;i++)for(n=0;16>n;n++)r=u(blockB[(o+0)%5],blockB[(o+1)%5],blockB[(o+2)%5],blockB[(o+3)%5],blockB[(o+4)%5],e[v[i][n]],y[i][n],i),blockB[(o+0)%5]=r[0],blockB[(o+1)%5]=r[1],blockB[(o+2)%5]=r[2],blockB[(o+3)%5]=r[3],blockB[(o+4)%5]=r[4],o+=4;blockB[3]+=blockA[2]+t[1],t[1]=t[2]+blockA[3]+blockB[4],t[2]=t[3]+blockA[4]+blockB[0],t[3]=t[4]+blockA[0]+blockB[1],t[4]=t[0]+blockA[1]+blockB[2],t[0]=blockB[3]}function h(t){for(var e=0;16>e;e++)t[e]=0}function d(t,e,r,n){var i=new Array(16);h(i);for(var o=0,s=0;(63&r)>s;s++)i[s>>>2]^=(255&e.charCodeAt(o++))<<8*(3&s);i[r>>>2&15]^=1<<8*(3&r)+7,(63&r)>55&&(l(t,i),i=new Array(16),h(i)),i[14]=r<<3,i[15]=r>>>29|n<<3,l(t,i)}function f(t){var e=(255&t.charCodeAt(3))<<24;return e|=(255&t.charCodeAt(2))<<16,e|=(255&t.charCodeAt(1))<<8,e|=255&t.charCodeAt(0)}function p(t){var e,r,n=new Array(m/32),i=new Array(m/8);c(n),e=t.length;var o=new Array(16);h(o);var s,a=0;for(r=e;r>63;r-=64){for(s=0;16>s;s++)o[s]=f(t.substr(a,4)),a+=4;l(n,o)}for(d(n,t.substr(a),e,0),s=0;m/8>s;s+=4)i[s]=255&n[s>>>2],i[s+1]=n[s>>>2]>>>8&255,i[s+2]=n[s>>>2]>>>16&255,i[s+3]=n[s>>>2]>>>24&255;return i}function g(t){for(var e=p(t),r="",n=0;m/8>n;n++)r+=String.fromCharCode(e[n]);return r}var m=160,y=[[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],[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]],v=[[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],[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]];e.exports=g},{}],18:[function(t,e){var r=function(){var t=8,e="",r=0,n=function(t,e){this.highOrder=t,this.lowOrder=e},i=function(e){var r,n=[],i=(1<<t)-1,o=e.length*t;for(r=0;o>r;r+=t)n[r>>5]|=(e.charCodeAt(r/t)&i)<<32-t-r%32;return n},o=function(t){var e,r,n=[],i=t.length;for(e=0;i>e;e+=2){if(r=parseInt(t.substr(e,2),16),isNaN(r))throw new Error("INVALID HEX STRING");n[e>>3]|=r<<24-4*(e%8)}return n},s=function(t){var e,n,i=r?"0123456789ABCDEF":"0123456789abcdef",o="",s=4*t.length;for(e=0;s>e;e+=1)n=t[e>>2]>>8*(3-e%4),o+=i.charAt(n>>4&15)+i.charAt(15&n);return o},a=function(t){var r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s="",a=4*t.length;for(r=0;a>r;r+=3)for(i=(t[r>>2]>>8*(3-r%4)&255)<<16|(t[r+1>>2]>>8*(3-(r+1)%4)&255)<<8|t[r+2>>2]>>8*(3-(r+2)%4)&255,n=0;4>n;n+=1)s+=8*r+6*n<=32*t.length?o.charAt(i>>6*(3-n)&63):e;return s},u=function(t){for(var e="",r=255,n=0;n<32*t.length;n+=8)e+=String.fromCharCode(t[n>>5]>>>24-n%32&r);return e},c=function(t,e){return t<<e|t>>>32-e},l=function(t,e){return t>>>e|t<<32-e},h=function(t,e){return 32>=e?new n(t.highOrder>>>e|t.lowOrder<<32-e,t.lowOrder>>>e|t.highOrder<<32-e):new n(t.lowOrder>>>e|t.highOrder<<32-e,t.highOrder>>>e|t.lowOrder<<32-e)},d=function(t,e){return t>>>e},f=function(t,e){return 32>=e?new n(t.highOrder>>>e,t.lowOrder>>>e|t.highOrder<<32-e):new n(0,t.highOrder<<32-e)},p=function(t,e,r){return t^e^r},g=function(t,e,r){return t&e^~t&r},m=function(t,e,r){return new n(t.highOrder&e.highOrder^~t.highOrder&r.highOrder,t.lowOrder&e.lowOrder^~t.lowOrder&r.lowOrder)},y=function(t,e,r){return t&e^t&r^e&r},v=function(t,e,r){return new n(t.highOrder&e.highOrder^t.highOrder&r.highOrder^e.highOrder&r.highOrder,t.lowOrder&e.lowOrder^t.lowOrder&r.lowOrder^e.lowOrder&r.lowOrder)},b=function(t){return l(t,2)^l(t,13)^l(t,22)},w=function(t){var e=h(t,28),r=h(t,34),i=h(t,39);return new n(e.highOrder^r.highOrder^i.highOrder,e.lowOrder^r.lowOrder^i.lowOrder)},k=function(t){return l(t,6)^l(t,11)^l(t,25)},C=function(t){var e=h(t,14),r=h(t,18),i=h(t,41);return new n(e.highOrder^r.highOrder^i.highOrder,e.lowOrder^r.lowOrder^i.lowOrder)},S=function(t){return l(t,7)^l(t,18)^d(t,3)},x=function(t){var e=h(t,1),r=h(t,8),i=f(t,7);return new n(e.highOrder^r.highOrder^i.highOrder,e.lowOrder^r.lowOrder^i.lowOrder)},A=function(t){return l(t,17)^l(t,19)^d(t,10)},T=function(t){var e=h(t,19),r=h(t,61),i=f(t,6);return new n(e.highOrder^r.highOrder^i.highOrder,e.lowOrder^r.lowOrder^i.lowOrder)},E=function(t,e){var r=(65535&t)+(65535&e),n=(t>>>16)+(e>>>16)+(r>>>16);return(65535&n)<<16|65535&r},I=function(t,e,r,n){var i=(65535&t)+(65535&e)+(65535&r)+(65535&n),o=(t>>>16)+(e>>>16)+(r>>>16)+(n>>>16)+(i>>>16);return(65535&o)<<16|65535&i},j=function(t,e,r,n,i){var o=(65535&t)+(65535&e)+(65535&r)+(65535&n)+(65535&i),s=(t>>>16)+(e>>>16)+(r>>>16)+(n>>>16)+(i>>>16)+(o>>>16);return(65535&s)<<16|65535&o},_=function(t,e){var r,i,o,s;return r=(65535&t.lowOrder)+(65535&e.lowOrder),i=(t.lowOrder>>>16)+(e.lowOrder>>>16)+(r>>>16),o=(65535&i)<<16|65535&r,r=(65535&t.highOrder)+(65535&e.highOrder)+(i>>>16),i=(t.highOrder>>>16)+(e.highOrder>>>16)+(r>>>16),s=(65535&i)<<16|65535&r,new n(s,o)},O=function(t,e,r,i){var o,s,a,u;return o=(65535&t.lowOrder)+(65535&e.lowOrder)+(65535&r.lowOrder)+(65535&i.lowOrder),s=(t.lowOrder>>>16)+(e.lowOrder>>>16)+(r.lowOrder>>>16)+(i.lowOrder>>>16)+(o>>>16),a=(65535&s)<<16|65535&o,o=(65535&t.highOrder)+(65535&e.highOrder)+(65535&r.highOrder)+(65535&i.highOrder)+(s>>>16),s=(t.highOrder>>>16)+(e.highOrder>>>16)+(r.highOrder>>>16)+(i.highOrder>>>16)+(o>>>16),u=(65535&s)<<16|65535&o,new n(u,a)},N=function(t,e,r,i,o){var s,a,u,c;return s=(65535&t.lowOrder)+(65535&e.lowOrder)+(65535&r.lowOrder)+(65535&i.lowOrder)+(65535&o.lowOrder),a=(t.lowOrder>>>16)+(e.lowOrder>>>16)+(r.lowOrder>>>16)+(i.lowOrder>>>16)+(o.lowOrder>>>16)+(s>>>16),u=(65535&a)<<16|65535&s,s=(65535&t.highOrder)+(65535&e.highOrder)+(65535&r.highOrder)+(65535&i.highOrder)+(65535&o.highOrder)+(a>>>16),a=(t.highOrder>>>16)+(e.highOrder>>>16)+(r.highOrder>>>16)+(i.highOrder>>>16)+(o.highOrder>>>16)+(s>>>16),c=(65535&a)<<16|65535&s,new n(c,u)},B=function(t,e){var r,n,i,o,s,a,u,l,h,d=[],f=g,m=p,v=y,b=c,w=E,k=j,C=[1732584193,4023233417,2562383102,271733878,3285377520],S=[1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1518500249,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,1859775393,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,2400959708,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782,3395469782];for(t[e>>5]|=128<<24-e%32,t[(e+65>>9<<4)+15]=e,h=t.length,u=0;h>u;u+=16){for(r=C[0],n=C[1],i=C[2],o=C[3],s=C[4],l=0;80>l;l+=1)d[l]=16>l?t[l+u]:b(d[l-3]^d[l-8]^d[l-14]^d[l-16],1),a=20>l?k(b(r,5),f(n,i,o),s,S[l],d[l]):40>l?k(b(r,5),m(n,i,o),s,S[l],d[l]):60>l?k(b(r,5),v(n,i,o),s,S[l],d[l]):k(b(r,5),m(n,i,o),s,S[l],d[l]),s=o,o=i,i=b(n,30),n=r,r=a;C[0]=w(r,C[0]),C[1]=w(n,C[1]),C[2]=w(i,C[2]),C[3]=w(o,C[3]),C[4]=w(s,C[4])}return C},P=function(t,e,r){var i,o,s,a,u,c,l,h,d,f,p,B,P,D,L,K,M,$,R,H,z,F,q,U,W,V,G,X,Y,Z=[];for("SHA-224"===r||"SHA-256"===r?(B=64,P=(e+65>>9<<4)+15,K=16,M=1,G=Number,$=E,R=I,H=j,z=S,F=A,q=b,U=k,V=y,W=g,X=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],p="SHA-224"===r?[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]:[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]):("SHA-384"===r||"SHA-512"===r)&&(B=80,P=(e+128>>10<<5)+31,K=32,M=2,G=n,$=_,R=O,H=N,z=x,F=T,q=w,U=C,V=v,W=m,X=[new G(1116352408,3609767458),new G(1899447441,602891725),new G(3049323471,3964484399),new G(3921009573,2173295548),new G(961987163,4081628472),new G(1508970993,3053834265),new G(2453635748,2937671579),new G(2870763221,3664609560),new G(3624381080,2734883394),new G(310598401,1164996542),new G(607225278,1323610764),new G(1426881987,3590304994),new G(1925078388,4068182383),new G(2162078206,991336113),new G(2614888103,633803317),new G(3248222580,3479774868),new G(3835390401,2666613458),new G(4022224774,944711139),new G(264347078,2341262773),new G(604807628,2007800933),new G(770255983,1495990901),new G(1249150122,1856431235),new G(1555081692,3175218132),new G(1996064986,2198950837),new G(2554220882,3999719339),new G(2821834349,766784016),new G(2952996808,2566594879),new G(3210313671,3203337956),new G(3336571891,1034457026),new G(3584528711,2466948901),new G(113926993,3758326383),new G(338241895,168717936),new G(666307205,1188179964),new G(773529912,1546045734),new G(1294757372,1522805485),new G(1396182291,2643833823),new G(1695183700,2343527390),new G(1986661051,1014477480),new G(2177026350,1206759142),new G(2456956037,344077627),new G(2730485921,1290863460),new G(2820302411,3158454273),new G(3259730800,3505952657),new G(3345764771,106217008),new G(3516065817,3606008344),new G(3600352804,1432725776),new G(4094571909,1467031594),new G(275423344,851169720),new G(430227734,3100823752),new G(506948616,1363258195),new G(659060556,3750685593),new G(883997877,3785050280),new G(958139571,3318307427),new G(1322822218,3812723403),new G(1537002063,2003034995),new G(1747873779,3602036899),new G(1955562222,1575990012),new G(2024104815,1125592928),new G(2227730452,2716904306),new G(2361852424,442776044),new G(2428436474,593698344),new G(2756734187,3733110249),new G(3204031479,2999351573),new G(3329325298,3815920427),new G(3391569614,3928383900),new G(3515267271,566280711),new G(3940187606,3454069534),new G(4118630271,4000239992),new G(116418474,1914138554),new G(174292421,2731055270),new G(289380356,3203993006),new G(460393269,320620315),new G(685471733,587496836),new G(852142971,1086792851),new G(1017036298,365543100),new G(1126000580,2618297676),new G(1288033470,3409855158),new G(1501505948,4234509866),new G(1607167915,987167468),new G(1816402316,1246189591)],p="SHA-384"===r?[new G(3418070365,3238371032),new G(1654270250,914150663),new G(2438529370,812702999),new G(355462360,4144912697),new G(1731405415,4290775857),new G(41048885895,1750603025),new G(3675008525,1694076839),new G(1203062813,3204075428)]:[new G(1779033703,4089235720),new G(3144134277,2227873595),new G(1013904242,4271175723),new G(2773480762,1595750129),new G(1359893119,2917565137),new G(2600822924,725511199),new G(528734635,4215389547),new G(1541459225,327033209)]),t[e>>5]|=128<<24-e%32,t[P]=e,Y=t.length,D=0;Y>D;D+=K){for(i=p[0],o=p[1],s=p[2],a=p[3],u=p[4],c=p[5],l=p[6],h=p[7],L=0;B>L;L+=1)Z[L]=16>L?new G(t[L*M+D],t[L*M+D+1]):R(F(Z[L-2]),Z[L-7],z(Z[L-15]),Z[L-16]),d=H(h,U(u),W(u,c,l),X[L],Z[L]),f=$(q(i),V(i,o,s)),h=l,l=c,c=u,u=$(a,d),a=s,s=o,o=i,i=$(d,f);p[0]=$(i,p[0]),p[1]=$(o,p[1]),p[2]=$(s,p[2]),p[3]=$(a,p[3]),p[4]=$(u,p[4]),p[5]=$(c,p[5]),p[6]=$(l,p[6]),p[7]=$(h,p[7])}switch(r){case"SHA-224":return[p[0],p[1],p[2],p[3],p[4],p[5],p[6]];case"SHA-256":return p;case"SHA-384":return[p[0].highOrder,p[0].lowOrder,p[1].highOrder,p[1].lowOrder,p[2].highOrder,p[2].lowOrder,p[3].highOrder,p[3].lowOrder,p[4].highOrder,p[4].lowOrder,p[5].highOrder,p[5].lowOrder];case"SHA-512":return[p[0].highOrder,p[0].lowOrder,p[1].highOrder,p[1].lowOrder,p[2].highOrder,p[2].lowOrder,p[3].highOrder,p[3].lowOrder,p[4].highOrder,p[4].lowOrder,p[5].highOrder,p[5].lowOrder,p[6].highOrder,p[6].lowOrder,p[7].highOrder,p[7].lowOrder];default:throw new Error("Unknown SHA variant")}},D=function(e,r){if(this.sha1=null,this.sha224=null,this.sha256=null,this.sha384=null,this.sha512=null,this.strBinLen=null,this.strToHash=null,"HEX"===r){if(0!==e.length%2)throw new Error("TEXT MUST BE IN BYTE INCREMENTS");this.strBinLen=4*e.length,this.strToHash=o(e)}else{if("ASCII"!==r&&"undefined"!=typeof r)throw new Error("UNKNOWN TEXT INPUT TYPE");this.strBinLen=e.length*t,this.strToHash=i(e)}};return D.prototype={getHash:function(t,e){var r=null,n=this.strToHash.slice();switch(e){case"HEX":r=s;break;case"B64":r=a;break;case"ASCII":r=u;break;default:throw new Error("FORMAT NOT RECOGNIZED")}switch(t){case"SHA-1":return null===this.sha1&&(this.sha1=B(n,this.strBinLen)),r(this.sha1);case"SHA-224":return null===this.sha224&&(this.sha224=P(n,this.strBinLen,t)),r(this.sha224);case"SHA-256":return null===this.sha256&&(this.sha256=P(n,this.strBinLen,t)),r(this.sha256);case"SHA-384":return null===this.sha384&&(this.sha384=P(n,this.strBinLen,t)),r(this.sha384);case"SHA-512":return null===this.sha512&&(this.sha512=P(n,this.strBinLen,t)),r(this.sha512);default:throw new Error("HASH NOT RECOGNIZED")}},getHMAC:function(e,r,n,c){var l,h,d,f,p,g,m,y,v,b=[],w=[];switch(c){case"HEX":l=s;break;case"B64":l=a;break;case"ASCII":l=u;break;default:throw new Error("FORMAT NOT RECOGNIZED")}switch(n){case"SHA-1":d=64,v=160;break;case"SHA-224":d=64,v=224;break;case"SHA-256":d=64,v=256;break;case"SHA-384":d=128,v=384;break;case"SHA-512":d=128,v=512;break;default:throw new Error("HASH NOT RECOGNIZED")}if("HEX"===r){if(0!==e.length%2)throw new Error("KEY MUST BE IN BYTE INCREMENTS");h=o(e),y=4*e.length}else{if("ASCII"!==r)throw new Error("UNKNOWN KEY INPUT TYPE");h=i(e),y=e.length*t}for(f=8*d,m=d/4-1,y/8>d?(h="SHA-1"===n?B(h,y):P(h,y,n),h[m]&=4294967040):d>y/8&&(h[m]&=4294967040),p=0;m>=p;p+=1)b[p]=909522486^h[p],w[p]=1549556828^h[p];return"SHA-1"===n?(g=B(b.concat(this.strToHash),f+this.strBinLen),g=B(w.concat(g),f+v)):(g=P(b.concat(this.strToHash),f+this.strBinLen,n),g=P(w.concat(g),f+v,n)),l(g)}},D}();e.exports={sha1:function(t){var e=new r(t,"ASCII");return e.getHash("SHA-1","ASCII")},sha224:function(t){var e=new r(t,"ASCII");return e.getHash("SHA-224","ASCII")},sha256:function(t){var e=new r(t,"ASCII");return e.getHash("SHA-256","ASCII")},sha384:function(t){var e=new r(t,"ASCII");return e.getHash("SHA-384","ASCII")},sha512:function(t){var e=new r(t,"ASCII");return e.getHash("SHA-512","ASCII")}}},{}],19:[function(t,e){e.exports={cipher:t("./cipher"),hash:t("./hash"),cfb:t("./cfb.js"),publicKey:t("./public_key"),signature:t("./signature.js"),random:t("./random.js"),pkcs1:t("./pkcs1.js")};var r=t("./crypto.js");for(var n in r)e.exports[n]=r[n]},{"./cfb.js":5,"./cipher":10,"./crypto.js":12,"./hash":15,"./pkcs1.js":20,"./public_key":23,"./random.js":26,"./signature.js":27}],20:[function(t,e){function r(t){for(var e,r="";r.length<t;)e=i.getSecureRandomOctet(),0!==e&&(r+=String.fromCharCode(e));return r}var n=[];n[1]=[48,32,48,12,6,8,42,134,72,134,247,13,2,5,5,0,4,16],n[2]=[48,33,48,9,6,5,43,14,3,2,26,5,0,4,20],n[3]=[48,33,48,9,6,5,43,36,3,2,1,5,0,4,20],n[8]=[48,49,48,13,6,9,96,134,72,1,101,3,4,2,1,5,0,4,32],n[9]=[48,65,48,13,6,9,96,134,72,1,101,3,4,2,2,5,0,4,48],n[10]=[48,81,48,13,6,9,96,134,72,1,101,3,4,2,3,5,0,4,64],n[11]=[48,45,48,13,6,9,96,134,72,1,101,3,4,2,4,5,0,4,28];var i=(t("./crypto.js"),t("./random.js")),o=t("../util.js"),s=t("./public_key/jsbn.js"),a=t("./hash");e.exports={eme:{encode:function(t,e){var n=t.length;if(n>e-11)throw new Error("Message too long");var i=r(e-n-3),o=String.fromCharCode(0)+String.fromCharCode(2)+i+String.fromCharCode(0)+t;return o},decode:function(t){0!==t.charCodeAt(0)&&(t=String.fromCharCode(0)+t);for(var e=t.charCodeAt(0),r=t.charCodeAt(1),n=2;0!==t.charCodeAt(n)&&n<t.length;)n++;var i=n-2,o=t.charCodeAt(n++);if(0===e&&2===r&&i>=8&&0===o)return t.substr(n);throw new Error("Decryption error")}},emsa:{encode:function(t,e,r){var i,u=a.digest(t,e);if(u.length!==a.getHashByteLength(t))throw new Error("Invalid hash length");var c="";for(i=0;i<n[t].length;i++)c+=String.fromCharCode(n[t][i]);c+=u;var l=c.length;if(l+11>r)throw new Error("Intended encoded message length too short");var h="";for(i=0;r-l-3>i;i++)h+=String.fromCharCode(255);var d=String.fromCharCode(0)+String.fromCharCode(1)+h+String.fromCharCode(0)+c;return new s(o.hexstrdump(d),16)}}}},{"../util.js":61,"./crypto.js":12,"./hash":15,"./public_key/jsbn.js":24,"./random.js":26}],21:[function(t,e){function r(){function t(t,e,r,a,u,c){for(var l,h,d,f=s.getLeftNBits(o.digest(t,e),u.bitLength()),p=new n(s.hexstrdump(f),16);l=i.getRandomBigIntegerInRange(n.ONE,u.subtract(n.ONE)),h=r.modPow(l,a).mod(u),d=l.modInverse(u).multiply(p.add(c.multiply(h))).mod(u),0==h||0==d;);var g=[];return g[0]=h.toMPI(),g[1]=d.toMPI(),g}function e(t){var e=a.prefer_hash_algorithm;switch(Math.round(t.bitLength()/8)){case 20:return 2!=e&&e>11&&10!=e&&8>e?2:e;case 28:return e>11&&8>e?11:e;case 32:return e>10&&8>e?8:e;default:return s.print_debug("DSA select hash algorithm: returning null for an unknown length of q"),null}}function r(t,e,r,i,a,u,c,l){var h=s.getLeftNBits(o.digest(t,i),u.bitLength()),d=new n(s.hexstrdump(h),16);if(n.ZERO.compareTo(e)>0||e.compareTo(u)>0||n.ZERO.compareTo(r)>0||r.compareTo(u)>0)return s.print_debug("invalid DSA Signature"),null;var f=r.modInverse(u),p=d.multiply(f).mod(u),g=e.multiply(f).mod(u);return c.modPow(p,a).multiply(l.modPow(g,a)).mod(a).mod(u)}this.select_hash_algorithm=e,this.sign=t,this.verify=r}var n=t("./jsbn.js"),i=t("../random.js"),o=t("../hash"),s=t("../../util.js"),a=t("../../config");e.exports=r},{"../../config":4,"../../util.js":61,"../hash":15,"../random.js":26,"./jsbn.js":24}],22:[function(t,e){function r(){function t(t,e,r,o){var s=r.subtract(n.TWO),a=i.getRandomBigIntegerInRange(n.ONE,s);a=a.mod(s).add(n.ONE);var u=[];return u[0]=e.modPow(a,r),u[1]=o.modPow(a,r).multiply(t).mod(r),u}function e(t,e,r,n){return o.print_debug("Elgamal Decrypt:\nc1:"+o.hexstrdump(t.toMPI())+"\nc2:"+o.hexstrdump(e.toMPI())+"\np:"+o.hexstrdump(r.toMPI())+"\nx:"+o.hexstrdump(n.toMPI())),t.modPow(n,r).modInverse(r).multiply(e).mod(r)}this.encrypt=t,this.decrypt=e}var n=t("./jsbn.js"),i=t("../random.js"),o=t("../../util.js");e.exports=r},{"../../util.js":61,"../random.js":26,"./jsbn.js":24}],23:[function(t,e){e.exports={rsa:t("./rsa.js"),elgamal:t("./elgamal.js"),dsa:t("./dsa.js")}},{"./dsa.js":21,"./elgamal.js":22,"./rsa.js":25}],24:[function(t,e){function r(t,e,r){null!=t&&("number"==typeof t?this.fromNumber(t,e,r):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}function n(){return new r(null)}function i(t,e,r,n,i,o){for(;--o>=0;){var s=e*this[t++]+r[n]+i;i=Math.floor(s/67108864),r[n++]=67108863&s}return i}function o(t){return ie.charAt(t)}function s(t,e){var r=oe[t.charCodeAt(e)];return null==r?-1:r}function a(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s}function u(t){this.t=1,this.s=0>t?-1:0,t>0?this[0]=t:-1>t?this[0]=t+this.DV:this.t=0}function c(t){var e=n();return e.fromInt(t),e}function l(t,e){var n;if(16==e)n=4;else if(8==e)n=3;else if(256==e)n=8;else if(2==e)n=1;else if(32==e)n=5;else{if(4!=e)return void this.fromRadix(t,e);n=2}this.t=0,this.s=0;for(var i=t.length,o=!1,a=0;--i>=0;){var u=8==n?255&t[i]:s(t,i);0>u?"-"==t.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=u:a+n>this.DB?(this[this.t-1]|=(u&(1<<this.DB-a)-1)<<a,this[this.t++]=u>>this.DB-a):this[this.t-1]|=u<<a,a+=n,a>=this.DB&&(a-=this.DB))}8==n&&0!=(128&t[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),o&&r.ZERO.subTo(this,this)}function h(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t}function d(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var r,n=(1<<e)-1,i=!1,s="",a=this.t,u=this.DB-a*this.DB%e;if(a-- >0)for(u<this.DB&&(r=this[a]>>u)>0&&(i=!0,s=o(r));a>=0;)e>u?(r=(this[a]&(1<<u)-1)<<e-u,r|=this[--a]>>(u+=this.DB-e)):(r=this[a]>>(u-=e)&n,0>=u&&(u+=this.DB,--a)),r>0&&(i=!0),i&&(s+=o(r));return i?s:"0"}function f(){var t=n();return r.ZERO.subTo(this,t),t}function p(){return this.s<0?this.negate():this}function g(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(e=r-t.t,0!=e)return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0}function m(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function y(){return this.t<=0?0:this.DB*(this.t-1)+m(this[this.t-1]^this.s&this.DM)}function v(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s}function b(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s}function w(t,e){var r,n=t%this.DB,i=this.DB-n,o=(1<<i)-1,s=Math.floor(t/this.DB),a=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)e[r+s+1]=this[r]>>i|a,a=(this[r]&o)<<n;for(r=s-1;r>=0;--r)e[r]=0;e[s]=a,e.t=this.t+s+1,e.s=this.s,e.clamp()}function k(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)return void(e.t=0);var n=t%this.DB,i=this.DB-n,o=(1<<n)-1;e[0]=this[r]>>n;for(var s=r+1;s<this.t;++s)e[s-r-1]|=(this[s]&o)<<i,e[s-r]=this[s]>>n;n>0&&(e[this.t-r-1]|=(this.s&o)<<i),e.t=this.t-r,e.clamp()}function C(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);i>r;)n+=this[r]-t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n-=t[r],e[r++]=n&this.DM,n>>=this.DB;n-=t.s}e.s=0>n?-1:0,-1>n?e[r++]=this.DV+n:n>0&&(e[r++]=n),e.t=r,e.clamp()}function S(t,e){var n=this.abs(),i=t.abs(),o=n.t;for(e.t=o+i.t;--o>=0;)e[o]=0;for(o=0;o<i.t;++o)e[o+n.t]=n.am(0,i[o],e,o,0,n.t);e.s=0,e.clamp(),this.s!=t.s&&r.ZERO.subTo(e,e)}function x(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var n=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,n,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()}function A(t,e,i){var o=t.abs();if(!(o.t<=0)){var s=this.abs();if(s.t<o.t)return null!=e&&e.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=n());var a=n(),u=this.s,c=t.s,l=this.DB-m(o[o.t-1]);l>0?(o.lShiftTo(l,a),s.lShiftTo(l,i)):(o.copyTo(a),s.copyTo(i));var h=a.t,d=a[h-1];if(0!=d){var f=d*(1<<this.F1)+(h>1?a[h-2]>>this.F2:0),p=this.FV/f,g=(1<<this.F1)/f,y=1<<this.F2,v=i.t,b=v-h,w=null==e?n():e;for(a.dlShiftTo(b,w),i.compareTo(w)>=0&&(i[i.t++]=1,i.subTo(w,i)),r.ONE.dlShiftTo(h,w),w.subTo(a,a);a.t<h;)a[a.t++]=0;for(;--b>=0;){var k=i[--v]==d?this.DM:Math.floor(i[v]*p+(i[v-1]+y)*g);if((i[v]+=a.am(0,k,i,b,0,h))<k)for(a.dlShiftTo(b,w),i.subTo(w,i);i[v]<--k;)i.subTo(w,i)}null!=e&&(i.drShiftTo(h,e),u!=c&&r.ZERO.subTo(e,e)),i.t=h,i.clamp(),l>0&&i.rShiftTo(l,i),0>u&&r.ZERO.subTo(i,i)}}}function T(t){var e=n();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(r.ZERO)>0&&t.subTo(e,e),e}function E(t){this.m=t}function I(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t}function j(t){return t}function _(t){t.divRemTo(this.m,null,t)}function O(t,e,r){t.multiplyTo(e,r),this.reduce(r)}function N(t,e){t.squareTo(e),this.reduce(e)}function B(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return e=e*(2-(15&t)*e)&15,e=e*(2-(255&t)*e)&255,e=e*(2-((65535&t)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e}function P(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function D(t){var e=n();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(r.ZERO)>0&&this.m.subTo(e,e),e}function L(t){var e=n();return t.copyTo(e),this.reduce(e),e}function K(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],n=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(r=e+this.m.t,t[r]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)}function M(t,e){t.squareTo(e),this.reduce(e)}function $(t,e,r){t.multiplyTo(e,r),this.reduce(r)}function R(){return 0==(this.t>0?1&this[0]:this.s)}function H(t,e){if(t>4294967295||1>t)return r.ONE;var i=n(),o=n(),s=e.convert(this),a=m(t)-1;for(s.copyTo(i);--a>=0;)if(e.sqrTo(i,o),(t&1<<a)>0)e.mulTo(o,s,i);else{var u=i;i=o,o=u}return e.revert(i)}function z(t,e){var r;return r=256>t||e.isEven()?new E(e):new P(e),this.exp(t,r)}function F(){var t=n();return this.copyTo(t),t}function q(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function U(){return 0==this.t?this.s:this[0]<<24>>24}function W(){return 0==this.t?this.s:this[0]<<16>>16}function V(t){return Math.floor(Math.LN2*this.DB/Math.log(t))}function G(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1}function X(t){if(null==t&&(t=10),0==this.signum()||2>t||t>36)return"0";var e=this.chunkSize(t),r=Math.pow(t,e),i=c(r),o=n(),s=n(),a="";for(this.divRemTo(i,o,s);o.signum()>0;)a=(r+s.intValue()).toString(t).substr(1)+a,o.divRemTo(i,o,s);return s.intValue().toString(t)+a}function Y(t,e){this.fromInt(0),null==e&&(e=10);for(var n=this.chunkSize(e),i=Math.pow(e,n),o=!1,a=0,u=0,c=0;c<t.length;++c){var l=s(t,c);0>l?"-"==t.charAt(c)&&0==this.signum()&&(o=!0):(u=e*u+l,++a>=n&&(this.dMultiply(i),this.dAddOffset(u,0),a=0,u=0))}a>0&&(this.dMultiply(Math.pow(e,a)),this.dAddOffset(u,0)),o&&r.ZERO.subTo(this,this)}function Z(t,e,n){if("number"==typeof e)if(2>t)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(r.ONE.shiftLeft(t-1),ot,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(r.ONE.shiftLeft(t-1),this);else{var i=new Array,o=7&t;i.length=(t>>3)+1,e.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}}function Q(){var t=this.t,e=new Array;e[0]=this.s;var r,n=this.DB-t*this.DB%8,i=0;
if(t-- >0)for(n<this.DB&&(r=this[t]>>n)!=(this.s&this.DM)>>n&&(e[i++]=r|this.s<<this.DB-n);t>=0;)8>n?(r=(this[t]&(1<<n)-1)<<8-n,r|=this[--t]>>(n+=this.DB-8)):(r=this[t]>>(n-=8)&255,0>=n&&(n+=this.DB,--t)),(i>0||r!=this.s)&&(e[i++]=r);return e}function J(t){return 0==this.compareTo(t)}function tt(t){return this.compareTo(t)<0?this:t}function et(t){return this.compareTo(t)>0?this:t}function rt(t,e,r){var n,i,o=Math.min(t.t,this.t);for(n=0;o>n;++n)r[n]=e(this[n],t[n]);if(t.t<this.t){for(i=t.s&this.DM,n=o;n<this.t;++n)r[n]=e(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=o;n<t.t;++n)r[n]=e(i,t[n]);r.t=t.t}r.s=e(this.s,t.s),r.clamp()}function nt(t,e){return t&e}function it(t){var e=n();return this.bitwiseTo(t,nt,e),e}function ot(t,e){return t|e}function st(t){var e=n();return this.bitwiseTo(t,ot,e),e}function at(t,e){return t^e}function ut(t){var e=n();return this.bitwiseTo(t,at,e),e}function ct(t,e){return t&~e}function lt(t){var e=n();return this.bitwiseTo(t,ct,e),e}function ht(){for(var t=n(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t}function dt(t){var e=n();return 0>t?this.rShiftTo(-t,e):this.lShiftTo(t,e),e}function ft(t){var e=n();return 0>t?this.lShiftTo(-t,e):this.rShiftTo(t,e),e}function pt(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function gt(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+pt(this[t]);return this.s<0?this.t*this.DB:-1}function mt(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function yt(){for(var t=0,e=this.s&this.DM,r=0;r<this.t;++r)t+=mt(this[r]^e);return t}function vt(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)}function bt(t,e){var n=r.ONE.shiftLeft(t);return this.bitwiseTo(n,e,n),n}function wt(t){return this.changeBit(t,ot)}function kt(t){return this.changeBit(t,ct)}function Ct(t){return this.changeBit(t,at)}function St(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);i>r;)n+=this[r]+t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n+=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n+=t[r],e[r++]=n&this.DM,n>>=this.DB;n+=t.s}e.s=0>n?-1:0,n>0?e[r++]=n:-1>n&&(e[r++]=this.DV+n),e.t=r,e.clamp()}function xt(t){var e=n();return this.addTo(t,e),e}function At(t){var e=n();return this.subTo(t,e),e}function Tt(t){var e=n();return this.multiplyTo(t,e),e}function Et(){var t=n();return this.squareTo(t),t}function It(t){var e=n();return this.divRemTo(t,e,null),e}function jt(t){var e=n();return this.divRemTo(t,null,e),e}function _t(t){var e=n(),r=n();return this.divRemTo(t,e,r),new Array(e,r)}function Ot(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()}function Nt(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}}function Bt(){}function Pt(t){return t}function Dt(t,e,r){t.multiplyTo(e,r)}function Lt(t,e){t.squareTo(e)}function Kt(t){return this.exp(t,new Bt)}function Mt(t,e,r){var n=Math.min(this.t+t.t,e);for(r.s=0,r.t=n;n>0;)r[--n]=0;var i;for(i=r.t-this.t;i>n;++n)r[n+this.t]=this.am(0,t[n],r,n,0,this.t);for(i=Math.min(t.t,e);i>n;++n)this.am(0,t[n],r,n,0,e-n);r.clamp()}function $t(t,e,r){--e;var n=r.t=this.t+t.t-e;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(e-this.t,0);n<t.t;++n)r[this.t+n-e]=this.am(e-n,t[n],r,0,0,this.t+n-e);r.clamp(),r.drShiftTo(1,r)}function Rt(t){this.r2=n(),this.q3=n(),r.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}function Ht(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=n();return t.copyTo(e),this.reduce(e),e}function zt(t){return t}function Ft(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)}function qt(t,e){t.squareTo(e),this.reduce(e)}function Ut(t,e,r){t.multiplyTo(e,r),this.reduce(r)}function Wt(t,e){var r,i,o=t.bitLength(),s=c(1);if(0>=o)return s;r=18>o?1:48>o?3:144>o?4:768>o?5:6,i=8>o?new E(e):e.isEven()?new Rt(e):new P(e);var a=new Array,u=3,l=r-1,h=(1<<r)-1;if(a[1]=i.convert(this),r>1){var d=n();for(i.sqrTo(a[1],d);h>=u;)a[u]=n(),i.mulTo(d,a[u-2],a[u]),u+=2}var f,p,g=t.t-1,y=!0,v=n();for(o=m(t[g])-1;g>=0;){for(o>=l?f=t[g]>>o-l&h:(f=(t[g]&(1<<o+1)-1)<<l-o,g>0&&(f|=t[g-1]>>this.DB+o-l)),u=r;0==(1&f);)f>>=1,--u;if((o-=u)<0&&(o+=this.DB,--g),y)a[f].copyTo(s),y=!1;else{for(;u>1;)i.sqrTo(s,v),i.sqrTo(v,s),u-=2;u>0?i.sqrTo(s,v):(p=s,s=v,v=p),i.mulTo(v,a[f],s)}for(;g>=0&&0==(t[g]&1<<o);)i.sqrTo(s,v),p=s,s=v,v=p,--o<0&&(o=this.DB-1,--g)}return i.revert(s)}function Vt(t){var e=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var n=e;e=r,r=n}var i=e.getLowestSetBit(),o=r.getLowestSetBit();if(0>o)return e;for(o>i&&(o=i),o>0&&(e.rShiftTo(o,e),r.rShiftTo(o,r));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),e.compareTo(r)>=0?(e.subTo(r,e),e.rShiftTo(1,e)):(r.subTo(e,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r}function Gt(t){if(0>=t)return 0;var e=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==e)r=this[0]%t;else for(var n=this.t-1;n>=0;--n)r=(e*r+this[n])%t;return r}function Xt(t){var e=t.isEven();if(this.isEven()&&e||0==t.signum())return r.ZERO;for(var n=t.clone(),i=this.clone(),o=c(1),s=c(0),a=c(0),u=c(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),e?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(t,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(t,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),e?(a.isEven()&&u.isEven()||(a.addTo(this,a),u.subTo(t,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(t,u),u.rShiftTo(1,u);n.compareTo(i)>=0?(n.subTo(i,n),e&&o.subTo(a,o),s.subTo(u,s)):(i.subTo(n,i),e&&a.subTo(o,a),u.subTo(s,u))}return 0!=i.compareTo(r.ONE)?r.ZERO:u.compareTo(t)>=0?u.subtract(t):u.signum()<0?(u.addTo(t,u),u.signum()<0?u.add(t):u):u}function Yt(t){var e,r=this.abs();if(1==r.t&&r[0]<=se[se.length-1]){for(e=0;e<se.length;++e)if(r[0]==se[e])return!0;return!1}if(r.isEven())return!1;for(e=1;e<se.length;){for(var n=se[e],i=e+1;i<se.length&&ae>n;)n*=se[i++];for(n=r.modInt(n);i>e;)if(n%se[e++]==0)return!1}return r.millerRabin(t)}function m(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}function Zt(){var t=this.toByteArray(),e=8*(t.length-1)+m(t[0]),r="";return r+=String.fromCharCode((65280&e)>>8),r+=String.fromCharCode(255&e),r+=te.bin2str(t)}function Qt(t){var e=this.subtract(r.ONE),i=e.getLowestSetBit();if(0>=i)return!1;var o=e.shiftRight(i);t=t+1>>1,t>se.length&&(t=se.length);for(var s,a=n(),u=[],c=0;t>c;++c){for(;s=se[Math.floor(Math.random()*se.length)],-1!=u.indexOf(s););u.push(s),a.fromInt(s);var l=a.modPow(o,this);if(0!=l.compareTo(r.ONE)&&0!=l.compareTo(e)){for(var s=1;s++<i&&0!=l.compareTo(e);)if(l=l.modPowInt(2,this),0==l.compareTo(r.ONE))return!1;if(0!=l.compareTo(e))return!1}}return!0}var Jt,te=t("../../util.js");r.prototype.am=i,Jt=26,r.prototype.DB=Jt,r.prototype.DM=(1<<Jt)-1,r.prototype.DV=1<<Jt;var ee=52;r.prototype.FV=Math.pow(2,ee),r.prototype.F1=ee-Jt,r.prototype.F2=2*Jt-ee;var re,ne,ie="0123456789abcdefghijklmnopqrstuvwxyz",oe=new Array;for(re="0".charCodeAt(0),ne=0;9>=ne;++ne)oe[re++]=ne;for(re="a".charCodeAt(0),ne=10;36>ne;++ne)oe[re++]=ne;for(re="A".charCodeAt(0),ne=10;36>ne;++ne)oe[re++]=ne;E.prototype.convert=I,E.prototype.revert=j,E.prototype.reduce=_,E.prototype.mulTo=O,E.prototype.sqrTo=N,P.prototype.convert=D,P.prototype.revert=L,P.prototype.reduce=K,P.prototype.mulTo=$,P.prototype.sqrTo=M,r.prototype.copyTo=a,r.prototype.fromInt=u,r.prototype.fromString=l,r.prototype.clamp=h,r.prototype.dlShiftTo=v,r.prototype.drShiftTo=b,r.prototype.lShiftTo=w,r.prototype.rShiftTo=k,r.prototype.subTo=C,r.prototype.multiplyTo=S,r.prototype.squareTo=x,r.prototype.divRemTo=A,r.prototype.invDigit=B,r.prototype.isEven=R,r.prototype.exp=H,r.prototype.toString=d,r.prototype.negate=f,r.prototype.abs=p,r.prototype.compareTo=g,r.prototype.bitLength=y,r.prototype.mod=T,r.prototype.modPowInt=z,r.ZERO=c(0),r.ONE=c(1),r.TWO=c(2),e.exports=r,Bt.prototype.convert=Pt,Bt.prototype.revert=Pt,Bt.prototype.mulTo=Dt,Bt.prototype.sqrTo=Lt,Rt.prototype.convert=Ht,Rt.prototype.revert=zt,Rt.prototype.reduce=Ft,Rt.prototype.mulTo=Ut,Rt.prototype.sqrTo=qt;var se=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],ae=(1<<26)/se[se.length-1],r=t("./jsbn.js");r.prototype.chunkSize=V,r.prototype.toRadix=X,r.prototype.fromRadix=Y,r.prototype.fromNumber=Z,r.prototype.bitwiseTo=rt,r.prototype.changeBit=bt,r.prototype.addTo=St,r.prototype.dMultiply=Ot,r.prototype.dAddOffset=Nt,r.prototype.multiplyLowerTo=Mt,r.prototype.multiplyUpperTo=$t,r.prototype.modInt=Gt,r.prototype.millerRabin=Qt,r.prototype.clone=F,r.prototype.intValue=q,r.prototype.byteValue=U,r.prototype.shortValue=W,r.prototype.signum=G,r.prototype.toByteArray=Q,r.prototype.equals=J,r.prototype.min=tt,r.prototype.max=et,r.prototype.and=it,r.prototype.or=st,r.prototype.xor=ut,r.prototype.andNot=lt,r.prototype.not=ht,r.prototype.shiftLeft=dt,r.prototype.shiftRight=ft,r.prototype.getLowestSetBit=gt,r.prototype.bitCount=yt,r.prototype.testBit=vt,r.prototype.setBit=wt,r.prototype.clearBit=kt,r.prototype.flipBit=Ct,r.prototype.add=xt,r.prototype.subtract=At,r.prototype.multiply=Tt,r.prototype.divide=It,r.prototype.remainder=jt,r.prototype.divideAndRemainder=_t,r.prototype.modPow=Wt,r.prototype.modInverse=Xt,r.prototype.pow=Kt,r.prototype.gcd=Vt,r.prototype.isProbablePrime=Yt,r.prototype.toMPI=Zt,r.prototype.square=Et},{"../../util.js":61,"./jsbn.js":24}],25:[function(t,e){function r(){function t(t){for(var e=0;e<t.length;e++)t[e]=u.getSecureRandomOctet()}this.nextBytes=t}function n(t,e,r){return h=h.bitLength()===e.bitLength()?h.square().mod(e):u.getRandomBigIntegerInRange(s.TWO,e),l=h.modInverse(e).modPow(r,e),t.multiply(l).mod(e)}function i(t,e){return t.multiply(h).mod(e)}function o(){function t(t,e,r,o,u,l,h){c.rsa_blinding&&(t=n(t,e,r));var d=t.mod(u).modPow(o.mod(u.subtract(s.ONE)),u),f=t.mod(l).modPow(o.mod(l.subtract(s.ONE)),l);a.print_debug("rsa.js decrypt\nxpn:"+a.hexstrdump(d.toMPI())+"\nxqn:"+a.hexstrdump(f.toMPI()));var p=f.subtract(d);return 0===p[0]?(p=d.subtract(f),p=p.multiply(h).mod(l),p=l.subtract(p)):p=p.multiply(h).mod(l),p=p.multiply(u).add(d),c.rsa_blinding&&(p=i(p,e)),p}function e(t,e,r){return t.modPowInt(e,r)}function o(t,e,r){return t.modPow(e,r)}function u(t,e,r){return t.modPowInt(e,r)}function l(){this.n=null,this.e=0,this.ee=null,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.u=null}function h(t,e){var n=new l,i=new r,o=t>>1;for(n.e=parseInt(e,16),n.ee=new s(e,16);;){for(;n.p=new s(t-o,1,i),0!==n.p.subtract(s.ONE).gcd(n.ee).compareTo(s.ONE)||!n.p.isProbablePrime(10););for(;n.q=new s(o,1,i),0!==n.q.subtract(s.ONE).gcd(n.ee).compareTo(s.ONE)||!n.q.isProbablePrime(10););if(n.p.compareTo(n.q)<=0){var a=n.p;n.p=n.q,n.q=a}var u=n.p.subtract(s.ONE),c=n.q.subtract(s.ONE),h=u.multiply(c);if(0===h.gcd(n.ee).compareTo(s.ONE)){n.n=n.p.multiply(n.q),n.d=n.ee.modInverse(h),n.dmp1=n.d.mod(u),n.dmq1=n.d.mod(c),n.u=n.p.modInverse(n.q);break}}return n}this.encrypt=e,this.decrypt=t,this.verify=u,this.sign=o,this.generate=h,this.keyObject=l}var s=t("./jsbn.js"),a=t("../../util.js"),u=t("../random.js"),c=t("../../config"),l=s.ZERO,h=s.ZERO;e.exports=o},{"../../config":4,"../../util.js":61,"../random.js":26,"./jsbn.js":24}],26:[function(t,e){function r(){this.buffer=null,this.size=null}var n=t("../type/mpi.js"),i=null;"undefined"==typeof window&&(i=t("crypto")),e.exports={getRandomBytes:function(t){for(var e="",r=0;t>r;r++)e+=String.fromCharCode(this.getSecureRandomOctet());return e},getSecureRandom:function(t,e){for(var r=this.getSecureRandomUint(),n=(e-t).toString(2).length;(r&Math.pow(2,n)-1)>e-t;)r=this.getSecureRandomUint();return t+Math.abs(r&Math.pow(2,n)-1)},getSecureRandomOctet:function(){var t=new Uint8Array(1);return this.getRandomValues(t),t[0]},getSecureRandomUint:function(){var t=new Uint8Array(4),e=new DataView(t.buffer);return this.getRandomValues(t),e.getUint32(0)},getRandomValues:function(t){if(!(t instanceof Uint8Array))throw new Error("Invalid type: buf not an Uint8Array");if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(t);else if("undefined"!=typeof window&&"object"==typeof window.msCrypto&&"function"==typeof window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(t);else if(i){var e=i.randomBytes(t.length);t.set(e)}else{if(!this.randomBuffer.buffer)throw new Error("No secure random number generator available.");this.randomBuffer.get(t)}},getRandomBigInteger:function(t){if(1>t)throw new Error("Illegal parameter value: bits < 1");var e=Math.floor((t+7)/8),r=this.getRandomBytes(e);t%8>0&&(r=String.fromCharCode(Math.pow(2,t%8)-1&r.charCodeAt(0))+r.substring(1));var i=new n;return i.fromBytes(r),i.toBigInteger()},getRandomBigIntegerInRange:function(t,e){if(e.compareTo(t)<=0)throw new Error("Illegal parameter value: max <= min");for(var r=e.subtract(t),n=this.getRandomBigInteger(r.bitLength());n>r;)n=this.getRandomBigInteger(r.bitLength());return t.add(n)},randomBuffer:new r},r.prototype.init=function(t){this.buffer=new Uint8Array(t),this.size=0},r.prototype.set=function(t){if(!this.buffer)throw new Error("RandomBuffer is not initialized");if(!(t instanceof Uint8Array))throw new Error("Invalid type: buf not an Uint8Array");var e=this.buffer.length-this.size;t.length>e&&(t=t.subarray(0,e)),this.buffer.set(t,this.size),this.size+=t.length},r.prototype.get=function(t){if(!this.buffer)throw new Error("RandomBuffer is not initialized");if(!(t instanceof Uint8Array))throw new Error("Invalid type: buf not an Uint8Array");if(this.size<t.length)throw new Error("Random number buffer depleted");for(var e=0;e<t.length;e++)t[e]=this.buffer[--this.size],this.buffer[this.size]=0}},{"../type/mpi.js":59,crypto:!1}],27:[function(t,e){var r=t("./public_key"),n=t("./pkcs1.js");t("./hash"),e.exports={verify:function(t,e,i,o,s){switch(t){case 1:case 2:case 3:var a=new r.rsa,u=o[0].toBigInteger(),c=o[0].byteLength(),l=o[1].toBigInteger(),h=i[0].toBigInteger(),d=a.verify(h,l,u),f=n.emsa.encode(e,s,c);return 0===d.compareTo(f);case 16:throw new Error("signing with Elgamal is not defined in the OpenPGP standard.");case 17:var p=new r.dsa,g=i[0].toBigInteger(),m=i[1].toBigInteger(),y=o[0].toBigInteger(),v=o[1].toBigInteger(),b=o[2].toBigInteger(),w=o[3].toBigInteger(),h=s,k=p.verify(e,g,m,h,y,v,b,w);return 0===k.compareTo(g);default:throw new Error("Invalid signature algorithm.")}},sign:function(t,e,i,o){var s;switch(e){case 1:case 2:case 3:var a=new r.rsa,u=i[2].toBigInteger(),c=i[0].toBigInteger();return s=n.emsa.encode(t,o,i[0].byteLength()),a.sign(s,u,c).toMPI();case 17:var l=new r.dsa,h=i[0].toBigInteger(),d=i[1].toBigInteger(),f=i[2].toBigInteger(),p=(i[3].toBigInteger(),i[4].toBigInteger());s=o;var g=l.sign(t,s,f,h,d,p);return g[0].toString()+g[1].toString();case 16:throw new Error("Signing with Elgamal is not defined in the OpenPGP standard.");default:throw new Error("Invalid signature algorithm.")}}}},{"./hash":15,"./pkcs1.js":20,"./public_key":23}],28:[function(t,e){function r(t){var e=/^-----BEGIN PGP (MESSAGE, PART \d+\/\d+|MESSAGE, PART \d+|SIGNED MESSAGE|MESSAGE|PUBLIC KEY BLOCK|PRIVATE KEY BLOCK)-----$\n/m,r=t.match(e);if(!r)throw new Error("Unknow ASCII armor type");return r[1].match(/MESSAGE, PART \d+\/\d+/)?f.armor.multipart_section:r[1].match(/MESSAGE, PART \d+/)?f.armor.multipart_last:r[1].match(/SIGNED MESSAGE/)?f.armor.signed:r[1].match(/MESSAGE/)?f.armor.message:r[1].match(/PUBLIC KEY BLOCK/)?f.armor.public_key:r[1].match(/PRIVATE KEY BLOCK/)?f.armor.private_key:void 0}function n(){var t="";return p.show_version&&(t+="Version: "+p.versionstring+"\r\n"),p.show_comment&&(t+="Comment: "+p.commentstring+"\r\n"),t+="\r\n"}function i(t){var e=s(t),r=""+String.fromCharCode(e>>16)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e);return d.encode(r)}function o(t,e){var r=i(t),n=e;return r[0]==n[0]&&r[1]==n[1]&&r[2]==n[2]&&r[3]==n[3]}function s(t){for(var e=11994318,r=0;t.length-r>16;)e=e<<8^g[255&(e>>16^t.charCodeAt(r))],e=e<<8^g[255&(e>>16^t.charCodeAt(r+1))],e=e<<8^g[255&(e>>16^t.charCodeAt(r+2))],e=e<<8^g[255&(e>>16^t.charCodeAt(r+3))],e=e<<8^g[255&(e>>16^t.charCodeAt(r+4))],e=e<<8^g[255&(e>>16^t.charCodeAt(r+5))],e=e<<8^g[255&(e>>16^t.charCodeAt(r+6))],e=e<<8^g[255&(e>>16^t.charCodeAt(r+7))],e=e<<8^g[255&(e>>16^t.charCodeAt(r+8))],e=e<<8^g[255&(e>>16^t.charCodeAt(r+9))],e=e<<8^g[255&(e>>16^t.charCodeAt(r+10))],e=e<<8^g[255&(e>>16^t.charCodeAt(r+11))],e=e<<8^g[255&(e>>16^t.charCodeAt(r+12))],e=e<<8^g[255&(e>>16^t.charCodeAt(r+13))],e=e<<8^g[255&(e>>16^t.charCodeAt(r+14))],e=e<<8^g[255&(e>>16^t.charCodeAt(r+15))],r+=16;for(var n=r;n<t.length;n++)e=e<<8^g[255&(e>>16^t.charCodeAt(r++))];return 16777215&e}function a(t){var e=/^\s*\n/m,r="",n=t,i=e.exec(t);if(null===i)throw new Error("Mandatory blank line missing between armor headers and armor data");return r=t.slice(0,i.index),n=t.slice(i.index+i[0].length),r=r.split("\n"),r.pop(),{headers:r,body:n}}function u(t){for(var e=0;e<t.length;e++)if(!t[e].match(/^(Version|Comment|MessageID|Hash|Charset): .+$/))throw new Error("Improperly formatted armor header: "+t[e])}function c(t){var e=/^=/m,r=t,n="",i=e.exec(t);return null!==i&&(r=t.slice(0,i.index),n=t.slice(i.index+1)),{body:r,checksum:n}}function l(t){var e=/^-----[^-]+-----$\n/m;t=t.replace(/[\t\r ]+\n/g,"\n");var n,s,l,h=r(t),f=t.split(e),p=1;if(t.search(e)!=f[0].length&&(p=0),2!=h){l=a(f[p]);var g=c(l.body);n={data:d.decode(g.body),headers:l.headers,type:h},s=g.checksum}else{l=a(f[p].replace(/^- /gm,""));var m=a(f[p+1].replace(/^- /gm,""));u(m.headers);var y=c(m.body);n={text:l.body.replace(/\n$/,"").replace(/\n/g,"\r\n"),data:d.decode(y.body),headers:l.headers,type:h},s=y.checksum}if(s=s.substr(0,4),!o(n.data,s))throw new Error("Ascii armor integrity check on message failed: '"+s+"' should be '"+i(n.data)+"'");return u(n.headers),n}function h(t,e,r,o){var s="";switch(t){case f.armor.multipart_section:s+="-----BEGIN PGP MESSAGE, PART "+r+"/"+o+"-----\r\n",s+=n(),s+=d.encode(e),s+="\r\n="+i(e)+"\r\n",s+="-----END PGP MESSAGE, PART "+r+"/"+o+"-----\r\n";break;case f.armor.multipart_last:s+="-----BEGIN PGP MESSAGE, PART "+r+"-----\r\n",s+=n(),s+=d.encode(e),s+="\r\n="+i(e)+"\r\n",s+="-----END PGP MESSAGE, PART "+r+"-----\r\n";break;case f.armor.signed:s+="\r\n-----BEGIN PGP SIGNED MESSAGE-----\r\n",s+="Hash: "+e.hash+"\r\n\r\n",s+=e.text.replace(/\n-/g,"\n- -"),s+="\r\n-----BEGIN PGP SIGNATURE-----\r\n",s+=n(),s+=d.encode(e.data),s+="\r\n="+i(e.data)+"\r\n",s+="-----END PGP SIGNATURE-----\r\n";break;case f.armor.message:s+="-----BEGIN PGP MESSAGE-----\r\n",s+=n(),s+=d.encode(e),s+="\r\n="+i(e)+"\r\n",s+="-----END PGP MESSAGE-----\r\n";break;case f.armor.public_key:s+="-----BEGIN PGP PUBLIC KEY BLOCK-----\r\n",s+=n(),s+=d.encode(e),s+="\r\n="+i(e)+"\r\n",s+="-----END PGP PUBLIC KEY BLOCK-----\r\n\r\n";break;case f.armor.private_key:s+="-----BEGIN PGP PRIVATE KEY BLOCK-----\r\n",s+=n(),s+=d.encode(e),s+="\r\n="+i(e)+"\r\n",s+="-----END PGP PRIVATE KEY BLOCK-----\r\n"}return s}var d=t("./base64.js"),f=t("../enums.js"),p=t("../config"),g=[0,8801531,25875725,17603062,60024545,51751450,35206124,44007191,128024889,120049090,103502900,112007375,70412248,78916387,95990485,88014382,264588937,256049778,240098180,248108927,207005800,215016595,232553829,224014750,140824496,149062475,166599357,157832774,200747345,191980970,176028764,184266919,520933865,529177874,512099556,503334943,480196360,471432179,487973381,496217854,414011600,405478443,422020573,430033190,457094705,465107658,448029500,439496647,281648992,273666971,289622637,298124950,324696449,333198714,315665548,307683447,392699481,401494690,383961940,375687087,352057528,343782467,359738805,368533838,1041867730,1050668841,1066628831,1058355748,1032471859,1024199112,1006669886,1015471301,968368875,960392720,942864358,951368477,975946762,984451313,1000411399,992435708,836562267,828023200,810956886,818967725,844041146,852051777,868605623,860066380,914189410,922427545,938981743,930215316,904825475,896059e3,878993294,887231349,555053627,563297984,547333942,538569677,579245274,570480673,588005847,596249900,649392898,640860153,658384399,666397428,623318499,631331096,615366894,606833685,785398962,777416777,794487231,802989380,759421523,767923880,751374174,743392165,695319947,704115056,687564934,679289981,719477610,711202705,728272487,737067676,2083735460,2092239711,2109313705,2101337682,2141233477,2133257662,2116711496,2125215923,2073216669,2064943718,2048398224,2057199467,2013339772,2022141063,2039215473,2030942602,1945504045,1936737750,1920785440,1929023707,1885728716,1893966647,1911503553,1902736954,1951893524,1959904495,1977441561,1968902626,2009362165,2000822798,1984871416,1992881923,1665111629,1673124534,1656046400,1647513531,1621913772,1613380695,1629922721,1637935450,1688082292,1679317903,1695859321,1704103554,1728967061,1737211246,1720132760,1711368291,1828378820,1820103743,1836060105,1844855090,1869168165,1877963486,1860430632,1852155859,1801148925,1809650950,1792118e3,1784135691,1757986588,1750004711,1765960209,1774462698,1110107254,1118611597,1134571899,1126595968,1102643863,1094667884,1077139354,1085643617,1166763343,1158490548,1140961346,1149762745,1176011694,1184812885,1200772771,1192499800,1307552511,1298785796,1281720306,1289958153,1316768798,1325007077,1341561107,1332794856,1246636998,1254647613,1271201483,1262662192,1239272743,1230733788,1213667370,1221678289,1562785183,1570797924,1554833554,1546300521,1588974462,1580441477,1597965939,1605978760,1518843046,1510078557,1527603627,1535847760,1494504007,1502748348,1486784330,1478020017,1390639894,1382365165,1399434779,1408230112,1366334967,1375129868,1358579962,1350304769,1430452783,1438955220,1422405410,1414423513,1456544974,1448562741,1465633219,1474135352];e.exports={encode:h,decode:l}},{"../config":4,"../enums.js":30,"./base64.js":29}],29:[function(t,e){function r(t){var e,r,n,o="",s=0,a=0,u=t.length;for(n=0;u>n;n++)r=t.charCodeAt(n),0===a?(o+=i.charAt(r>>2&63),e=(3&r)<<4):1==a?(o+=i.charAt(e|r>>4&15),e=(15&r)<<2):2==a&&(o+=i.charAt(e|r>>6&3),s+=1,s%60===0&&(o+="\n"),o+=i.charAt(63&r)),s+=1,s%60===0&&(o+="\n"),a+=1,3==a&&(a=0);return a>0&&(o+=i.charAt(e),s+=1,s%60===0&&(o+="\n"),o+="=",s+=1),1==a&&(s%60===0&&(o+="\n"),o+="="),o}function n(t){var e,r,n="",o=0,s=0,a=t.length;for(r=0;a>r;r++)e=i.indexOf(t.charAt(r)),e>=0&&(o&&(n+=String.fromCharCode(s|e>>6-o&255)),o=o+2&7,s=e<<o&255);return n}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports={encode:r,decode:n}},{}],30:[function(t,e){e.exports={s2k:{simple:0,salted:1,iterated:3,gnu:101},publicKey:{rsa_encrypt_sign:1,rsa_encrypt:2,rsa_sign:3,elgamal:16,dsa:17},symmetric:{plaintext:0,idea:1,tripledes:2,cast5:3,blowfish:4,aes128:7,aes192:8,aes256:9,twofish:10},compression:{uncompressed:0,zip:1,zlib:2,bzip2:3},hash:{md5:1,sha1:2,ripemd:3,sha256:8,sha384:9,sha512:10,sha224:11},packet:{publicKeyEncryptedSessionKey:1,signature:2,symEncryptedSessionKey:3,onePassSignature:4,secretKey:5,publicKey:6,secretSubkey:7,compressed:8,symmetricallyEncrypted:9,marker:10,literal:11,trust:12,userid:13,publicSubkey:14,userAttribute:17,symEncryptedIntegrityProtected:18,modificationDetectionCode:19},literal:{binary:"b".charCodeAt(),text:"t".charCodeAt(),utf8:"u".charCodeAt()},signature:{binary:0,text:1,standalone:2,cert_generic:16,cert_persona:17,cert_casual:18,cert_positive:19,cert_revocation:48,subkey_binding:24,key_binding:25,key:31,key_revocation:32,subkey_revocation:40,timestamp:64,third_party:80},signatureSubpacket:{signature_creation_time:2,signature_expiration_time:3,exportable_certification:4,trust_signature:5,regular_expression:6,revocable:7,key_expiration_time:9,placeholder_backwards_compatibility:10,preferred_symmetric_algorithms:11,revocation_key:12,issuer:16,notation_data:20,preferred_hash_algorithms:21,preferred_compression_algorithms:22,key_server_preferences:23,preferred_key_server:24,primary_user_id:25,policy_uri:26,key_flags:27,signers_user_id:28,reason_for_revocation:29,features:30,signature_target:31,embedded_signature:32},keyFlags:{certify_keys:1,sign_data:2,encrypt_communication:4,encrypt_storage:8,split_private_key:16,authentication:32,shared_private_key:128},keyStatus:{invalid:0,expired:1,revoked:2,valid:3,no_self_cert:4},armor:{multipart_section:0,multipart_last:1,signed:2,message:3,public_key:4,private_key:5},write:function(t,e){if("number"==typeof e&&(e=this.read(t,e)),void 0!==t[e])return t[e];throw new Error("Invalid enum value.")},read:function(t,e){for(var r in t)if(t[r]==e)return r;throw new Error("Invalid enum value.")}}},{}],31:[function(t,e){e.exports=t("./openpgp.js"),e.exports.key=t("./key.js"),e.exports.message=t("./message.js"),e.exports.cleartext=t("./cleartext.js"),e.exports.util=t("./util.js"),e.exports.packet=t("./packet"),e.exports.MPI=t("./type/mpi.js"),e.exports.S2K=t("./type/s2k.js"),e.exports.Keyid=t("./type/keyid.js"),e.exports.armor=t("./encoding/armor.js"),e.exports.enums=t("./enums.js"),e.exports.config=t("./config/config.js"),e.exports.crypto=t("./crypto"),e.exports.Keyring=t("./keyring"),e.exports.AsyncProxy=t("./worker/async_proxy.js")},{"./cleartext.js":1,"./config/config.js":3,"./crypto":19,"./encoding/armor.js":28,"./enums.js":30,"./key.js":32,"./keyring":33,"./message.js":36,"./openpgp.js":37,"./packet":40,"./type/keyid.js":58,"./type/mpi.js":59,"./type/s2k.js":60,"./util.js":61,"./worker/async_proxy.js":62}],32:[function(t,e,r){function n(t){if(!(this instanceof n))return new n(t);if(this.primaryKey=null,this.revocationSignature=null,this.directSignatures=null,this.users=null,this.subKeys=null,this.packetlist2structure(t),!this.primaryKey||!this.users)throw new Error("Invalid key: need at least key and user ID packet")}function i(t,e){for(var r=0;r<t.length;r++)for(var n=t[r].getKeyId(),i=0;i<e.length;i++)if(n.equals(e[i]))return t[r];return null}function o(t,e){return t.algorithm!==g.read(g.publicKey,g.publicKey.dsa)&&t.algorithm!==g.read(g.publicKey,g.publicKey.rsa_sign)&&(!e.keyFlags||0!==(e.keyFlags[0]&g.keyFlags.encrypt_communication)||0!==(e.keyFlags[0]&g.keyFlags.encrypt_storage))}function s(t,e){return!(t.algorithm!=g.read(g.publicKey,g.publicKey.dsa)&&t.algorithm!=g.read(g.publicKey,g.publicKey.rsa_sign)&&t.algorithm!=g.read(g.publicKey,g.publicKey.rsa_encrypt_sign)||e.keyFlags&&0===(e.keyFlags[0]&g.keyFlags.sign_data))}function a(t,e){return 3==t.version&&0!==t.expirationTimeV3?new Date(t.created.getTime()+24*t.expirationTimeV3*3600*1e3):4==t.version&&e.keyNeverExpires===!1?new Date(t.created.getTime()+1e3*e.keyExpirationTime):null}function u(t,e,r,n){t=t[r],t&&(e[r]?t.forEach(function(t){t.isExpired()||n&&!n(t)||e[r].some(function(e){return e.signature===t.signature})||e[r].push(t)}):e[r]=t)}function c(t){return this instanceof c?(this.userId=t.tag==g.packet.userid?t:null,this.userAttribute=t.tag==g.packet.userAttribute?t:null,this.selfCertifications=null,this.otherCertifications=null,void(this.revocationCertifications=null)):new c(t)}function l(t){return this instanceof l?(this.subKey=t,this.bindingSignature=null,void(this.revocationSignature=null)):new l(t)}function h(t){var e={};e.keys=[];try{var r=m.decode(t);if(r.type!=g.armor.public_key&&r.type!=g.armor.private_key)throw new Error("Armored text not of type key");var i=new p.List;i.read(r.data);var o=i.indexOfTag(g.packet.publicKey,g.packet.secretKey);if(0===o.length)throw new Error("No key packet found in armored text");for(var s=0;s<o.length;s++){var a=i.slice(o[s],o[s+1]);try{var u=new n(a);e.keys.push(u)}catch(c){e.err=e.err||[],e.err.push(c)}}}catch(c){e.err=e.err||[],e.err.push(c)}return e}function d(t){if(t.keyType=t.keyType||g.publicKey.rsa_encrypt_sign,t.keyType!==g.publicKey.rsa_encrypt_sign)throw new Error("Only RSA Encrypt or Sign supported");if(!t.passphrase)throw new Error("Parameter options.passphrase required");var e=new p.List,r=new p.SecretKey;r.algorithm=g.read(g.publicKey,t.keyType),r.generate(t.numBits),r.encrypt(t.passphrase);var i=new p.Userid;i.read(t.userId);var o={};o.userid=i,o.key=r;var s=new p.Signature;s.signatureType=g.signature.cert_generic,s.publicKeyAlgorithm=t.keyType,s.hashAlgorithm=y.prefer_hash_algorithm,s.keyFlags=[g.keyFlags.certify_keys|g.keyFlags.sign_data],s.preferredSymmetricAlgorithms=[],s.preferredSymmetricAlgorithms.push(g.symmetric.aes256),s.preferredSymmetricAlgorithms.push(g.symmetric.aes192),s.preferredSymmetricAlgorithms.push(g.symmetric.aes128),s.preferredSymmetricAlgorithms.push(g.symmetric.cast5),s.preferredSymmetricAlgorithms.push(g.symmetric.tripledes),s.preferredHashAlgorithms=[],s.preferredHashAlgorithms.push(g.hash.sha256),s.preferredHashAlgorithms.push(g.hash.sha1),s.preferredHashAlgorithms.push(g.hash.sha512),s.preferredCompressionAlgorithms=[],s.preferredCompressionAlgorithms.push(g.compression.zlib),s.preferredCompressionAlgorithms.push(g.compression.zip),y.integrity_protect&&(s.features=[],s.features.push(1)),s.sign(r,o);var a=new p.SecretSubkey;a.algorithm=g.read(g.publicKey,t.keyType),a.generate(t.numBits),a.encrypt(t.passphrase),o={},o.key=r,o.bind=a;var u=new p.Signature;return u.signatureType=g.signature.subkey_binding,u.publicKeyAlgorithm=t.keyType,u.hashAlgorithm=y.prefer_hash_algorithm,u.keyFlags=[g.keyFlags.encrypt_communication|g.keyFlags.encrypt_storage],u.sign(r,o),e.push(r),e.push(i),e.push(s),e.push(a),e.push(u),t.unlocked||(r.clearPrivateMPIs(),a.clearPrivateMPIs()),new n(e)}function f(t){for(var e={},r=0;r<t.length;r++){var n=t[r].getPrimaryUser();if(!n||!n.selfCertificate.preferredSymmetricAlgorithms)return y.encryption_cipher;n.selfCertificate.preferredSymmetricAlgorithms.forEach(function(t,r){var n=e[t]||(e[t]={prio:0,count:0,algo:t});n.prio+=64>>r,n.count++})}var i={prio:0,algo:y.encryption_cipher};for(var o in e)try{o!==g.symmetric.plaintext&&o!==g.symmetric.idea&&g.read(g.symmetric,o)&&e[o].count===t.length&&e[o].prio>i.prio&&(i=e[o])}catch(s){}return i.algo}var p=t("./packet"),g=t("./enums.js"),m=t("./encoding/armor.js"),y=t("./config"),v=t("./util");n.prototype.packetlist2structure=function(t){for(var e,r,n,i=0;i<t.length;i++)switch(t[i].tag){case g.packet.publicKey:case g.packet.secretKey:this.primaryKey=t[i],r=this.primaryKey.getKeyId();break;case g.packet.userid:case g.packet.userAttribute:e=new c(t[i]),this.users||(this.users=[]),this.users.push(e);break;case g.packet.publicSubkey:case g.packet.secretSubkey:e=null,this.subKeys||(this.subKeys=[]),n=new l(t[i]),this.subKeys.push(n);break;case g.packet.signature:switch(t[i].signatureType){case g.signature.cert_generic:case g.signature.cert_persona:case g.signature.cert_casual:case g.signature.cert_positive:if(!e){v.print_debug("Dropping certification signatures without preceding user packet");continue}t[i].issuerKeyId.equals(r)?(e.selfCertifications||(e.selfCertifications=[]),e.selfCertifications.push(t[i])):(e.otherCertifications||(e.otherCertifications=[]),e.otherCertifications.push(t[i]));break;case g.signature.cert_revocation:e?(e.revocationCertifications||(e.revocationCertifications=[]),
e.revocationCertifications.push(t[i])):(this.directSignatures||(this.directSignatures=[]),this.directSignatures.push(t[i]));break;case g.signature.key:this.directSignatures||(this.directSignatures=[]),this.directSignatures.push(t[i]);break;case g.signature.subkey_binding:if(!n){v.print_debug("Dropping subkey binding signature without preceding subkey packet");continue}n.bindingSignature=t[i];break;case g.signature.key_revocation:this.revocationSignature=t[i];break;case g.signature.subkey_revocation:if(!n){v.print_debug("Dropping subkey revocation signature without preceding subkey packet");continue}n.revocationSignature=t[i]}}},n.prototype.toPacketlist=function(){var t=new p.List;t.push(this.primaryKey),t.push(this.revocationSignature),t.concat(this.directSignatures);var e;for(e=0;e<this.users.length;e++)t.concat(this.users[e].toPacketlist());if(this.subKeys)for(e=0;e<this.subKeys.length;e++)t.concat(this.subKeys[e].toPacketlist());return t},n.prototype.getKeyPacket=function(){return this.primaryKey},n.prototype.getSubkeyPackets=function(){var t=[];if(this.subKeys)for(var e=0;e<this.subKeys.length;e++)t.push(this.subKeys[e].subKey);return t},n.prototype.getAllKeyPackets=function(){return[this.getKeyPacket()].concat(this.getSubkeyPackets())},n.prototype.getKeyIds=function(){for(var t=[],e=this.getAllKeyPackets(),r=0;r<e.length;r++)t.push(e[r].getKeyId());return t},n.prototype.getPublicKeyPacket=function(t){return this.primaryKey.tag==g.packet.publicKey?i(this.getAllKeyPackets(),t):null},n.prototype.getPrivateKeyPacket=function(t){return this.primaryKey.tag==g.packet.secretKey?i(this.getAllKeyPackets(),t):null},n.prototype.getUserIds=function(){for(var t=[],e=0;e<this.users.length;e++)this.users[e].userId&&t.push(this.users[e].userId.write());return t},n.prototype.isPublic=function(){return this.primaryKey.tag==g.packet.publicKey},n.prototype.isPrivate=function(){return this.primaryKey.tag==g.packet.secretKey},n.prototype.toPublic=function(){for(var t,e=new p.List,r=this.toPacketlist(),i=0;i<r.length;i++)switch(r[i].tag){case g.packet.secretKey:t=r[i].writePublicKey();var o=new p.PublicKey;o.read(t),e.push(o);break;case g.packet.secretSubkey:t=r[i].writePublicKey();var s=new p.PublicSubkey;s.read(t),e.push(s);break;default:e.push(r[i])}return new n(e)},n.prototype.armor=function(){var t=this.isPublic()?g.armor.public_key:g.armor.private_key;return m.encode(t,this.toPacketlist().write())},n.prototype.getSigningKeyPacket=function(){if(this.isPublic())throw new Error("Need private key for signing");var t=this.getPrimaryUser();if(t&&s(this.primaryKey,t.selfCertificate))return this.primaryKey;if(this.subKeys)for(var e=0;e<this.subKeys.length;e++)if(this.subKeys[e].isValidSigningKey(this.primaryKey))return this.subKeys[e].subKey;return null},n.prototype.getPreferredHashAlgorithm=function(){var t=this.getPrimaryUser();return t&&t.selfCertificate.preferredHashAlgorithms?t.selfCertificate.preferredHashAlgorithms[0]:y.prefer_hash_algorithm},n.prototype.getEncryptionKeyPacket=function(){if(this.subKeys)for(var t=0;t<this.subKeys.length;t++)if(this.subKeys[t].isValidEncryptionKey(this.primaryKey))return this.subKeys[t].subKey;var e=this.getPrimaryUser();return e&&o(this.primaryKey,e.selfCertificate)?this.primaryKey:null},n.prototype.decrypt=function(t){if(!this.isPrivate())throw new Error("Nothing to decrypt in a public key");for(var e=this.getAllKeyPackets(),r=0;r<e.length;r++){var n=e[r].decrypt(t);if(!n)return!1}return!0},n.prototype.decryptKeyPacket=function(t,e){if(!this.isPrivate())throw new Error("Nothing to decrypt in a public key");for(var r=this.getAllKeyPackets(),n=0;n<r.length;n++)for(var i=r[n].getKeyId(),o=0;o<t.length;o++)if(i.equals(t[o])){var s=r[n].decrypt(e);if(!s)return!1}return!0},n.prototype.verifyPrimaryKey=function(){if(this.revocationSignature&&!this.revocationSignature.isExpired()&&(this.revocationSignature.verified||this.revocationSignature.verify(this.primaryKey,{key:this.primaryKey})))return g.keyStatus.revoked;if(3==this.primaryKey.version&&0!==this.primaryKey.expirationTimeV3&&Date.now()>this.primaryKey.created.getTime()+24*this.primaryKey.expirationTimeV3*3600*1e3)return g.keyStatus.expired;for(var t=!1,e=0;e<this.users.length;e++)this.users[e].userId&&this.users[e].selfCertifications&&(t=!0);if(!t)return g.keyStatus.no_self_cert;var r=this.getPrimaryUser();return r?4==this.primaryKey.version&&r.selfCertificate.keyNeverExpires===!1&&Date.now()>this.primaryKey.created.getTime()+1e3*r.selfCertificate.keyExpirationTime?g.keyStatus.expired:g.keyStatus.valid:g.keyStatus.invalid},n.prototype.getExpirationTime=function(){if(3==this.primaryKey.version)return a(this.primaryKey);if(4==this.primaryKey.version){var t=this.getPrimaryUser();return t?a(this.primaryKey,t.selfCertificate):null}},n.prototype.getPrimaryUser=function(){for(var t=[],e=0;e<this.users.length;e++)if(this.users[e].userId&&this.users[e].selfCertifications)for(var r=0;r<this.users[e].selfCertifications.length;r++)t.push({user:this.users[e],selfCertificate:this.users[e].selfCertifications[r]});t=t.sort(function(t,e){return t.isPrimaryUserID>e.isPrimaryUserID?-1:t.isPrimaryUserID<e.isPrimaryUserID?1:t.created>e.created?-1:t.created<e.created?1:0});for(var e=0;e<t.length;e++)if(t[e].user.isValidSelfCertificate(this.primaryKey,t[e].selfCertificate))return t[e];return null},n.prototype.update=function(t){var e=this;if(t.verifyPrimaryKey()!==g.keyStatus.invalid){if(this.primaryKey.getFingerprint()!==t.primaryKey.getFingerprint())throw new Error("Key update method: fingerprints of keys not equal");if(this.isPublic()&&t.isPrivate()){var r=(this.subKeys&&this.subKeys.length)===(t.subKeys&&t.subKeys.length)&&(!this.subKeys||this.subKeys.every(function(e){return t.subKeys.some(function(t){return e.subKey.getFingerprint()===t.subKey.getFingerprint()})}));if(!r)throw new Error("Cannot update public key with private key if subkey mismatch");this.primaryKey=t.primaryKey}this.revocationSignature||!t.revocationSignature||t.revocationSignature.isExpired()||!t.revocationSignature.verified&&!t.revocationSignature.verify(t.primaryKey,{key:t.primaryKey})||(this.revocationSignature=t.revocationSignature),u(t,this,"directSignatures"),t.users.forEach(function(t){for(var r=!1,n=0;n<e.users.length;n++)if(t.userId&&t.userId.userid===e.users[n].userId.userid||t.userAttribute&&t.userAttribute.equals(e.users[n].userAttribute)){e.users[n].update(t,e.primaryKey),r=!0;break}r||e.users.push(t)}),t.subKeys&&t.subKeys.forEach(function(t){for(var r=!1,n=0;n<e.subKeys.length;n++)if(t.subKey.getFingerprint()===e.subKeys[n].subKey.getFingerprint()){e.subKeys[n].update(t,e.primaryKey),r=!0;break}r||e.subKeys.push(t)})}},n.prototype.revoke=function(){},c.prototype.toPacketlist=function(){var t=new p.List;return t.push(this.userId||this.userAttribute),t.concat(this.revocationCertifications),t.concat(this.selfCertifications),t.concat(this.otherCertifications),t},c.prototype.isRevoked=function(t,e){if(this.revocationCertifications){var r=this;return this.revocationCertifications.some(function(n){return n.issuerKeyId.equals(t.issuerKeyId)&&!n.isExpired()&&(n.verified||n.verify(e,{userid:r.userId||r.userAttribute,key:e}))})}return!1},c.prototype.getValidSelfCertificate=function(t){if(!this.selfCertifications)return null;for(var e=this.selfCertifications.sort(function(t,e){return t=t.created,e=e.created,t>e?-1:e>t?1:0}),r=0;r<e.length;r++)if(this.isValidSelfCertificate(t,e[r]))return e[r];return null},c.prototype.isValidSelfCertificate=function(t,e){return!this.isRevoked(e,t)&&!(e.isExpired()||!e.verified&&!e.verify(t,{userid:this.userId||this.userAttribute,key:t}))},c.prototype.verify=function(t){if(!this.selfCertifications)return g.keyStatus.no_self_cert;for(var e,r=0;r<this.selfCertifications.length;r++)if(this.isRevoked(this.selfCertifications[r],t))e=g.keyStatus.revoked;else if(this.selfCertifications[r].verified||this.selfCertifications[r].verify(t,{userid:this.userId||this.userAttribute,key:t})){if(!this.selfCertifications[r].isExpired()){e=g.keyStatus.valid;break}e=g.keyStatus.expired}else e=g.keyStatus.invalid;return e},c.prototype.update=function(t,e){var r=this;u(t,this,"selfCertifications",function(t){return t.verified||t.verify(e,{userid:r.userId||r.userAttribute,key:e})}),u(t,this,"otherCertifications"),u(t,this,"revocationCertifications")},l.prototype.toPacketlist=function(){var t=new p.List;return t.push(this.subKey),t.push(this.revocationSignature),t.push(this.bindingSignature),t},l.prototype.isValidEncryptionKey=function(t){return this.verify(t)==g.keyStatus.valid&&o(this.subKey,this.bindingSignature)},l.prototype.isValidSigningKey=function(t){return this.verify(t)==g.keyStatus.valid&&s(this.subKey,this.bindingSignature)},l.prototype.verify=function(t){return this.revocationSignature&&!this.revocationSignature.isExpired()&&(this.revocationSignature.verified||this.revocationSignature.verify(t,{key:t,bind:this.subKey}))?g.keyStatus.revoked:3==this.subKey.version&&0!==this.subKey.expirationTimeV3&&Date.now()>this.subKey.created.getTime()+24*this.subKey.expirationTimeV3*3600*1e3?g.keyStatus.expired:this.bindingSignature?this.bindingSignature.isExpired()?g.keyStatus.expired:this.bindingSignature.verified||this.bindingSignature.verify(t,{key:t,bind:this.subKey})?4==this.subKey.version&&this.bindingSignature.keyNeverExpires===!1&&Date.now()>this.subKey.created.getTime()+1e3*this.bindingSignature.keyExpirationTime?g.keyStatus.expired:g.keyStatus.valid:g.keyStatus.invalid:g.keyStatus.invalid},l.prototype.getExpirationTime=function(){return a(this.subKey,this.bindingSignature)},l.prototype.update=function(t,e){if(t.verify(e)!==g.keyStatus.invalid){if(this.subKey.getFingerprint()!==t.subKey.getFingerprint())throw new Error("SubKey update method: fingerprints of subkeys not equal");this.subKey.tag===g.packet.publicSubkey&&t.subKey.tag===g.packet.secretSubkey&&(this.subKey=t.subKey),!this.bindingSignature&&t.bindingSignature&&(t.bindingSignature.verified||t.bindingSignature.verify(e,{key:e,bind:this.subKey}))&&(this.bindingSignature=t.bindingSignature),this.revocationSignature||!t.revocationSignature||t.revocationSignature.isExpired()||!t.revocationSignature.verified&&!t.revocationSignature.verify(e,{key:e,bind:this.subKey})||(this.revocationSignature=t.revocationSignature)}},r.Key=n,r.readArmored=h,r.generate=d,r.getPreferredSymAlgo=f},{"./config":4,"./encoding/armor.js":28,"./enums.js":30,"./packet":40,"./util":61}],33:[function(t,e){e.exports=t("./keyring.js"),e.exports.localstore=t("./localstore.js")},{"./keyring.js":34,"./localstore.js":35}],34:[function(t,e){function r(e){this.storeHandler=e||new(t("./localstore.js")),this.publicKeys=new n(this.storeHandler.loadPublic()),this.privateKeys=new n(this.storeHandler.loadPrivate())}function n(t){this.keys=t}function i(t,e){t=t.toLowerCase();for(var r=e.getUserIds(),n=0;n<r.length;n++)if(keyEmail=r[n].split("<")[1].split(">")[0].trim().toLowerCase(),keyEmail==t)return!0;return!1}function o(t,e){return 16===t.length?t===e.getKeyId().toHex():t===e.getFingerprint()}var s=(t("../enums.js"),t("../key.js"));t("../util.js"),e.exports=r,r.prototype.store=function(){this.storeHandler.storePublic(this.publicKeys.keys),this.storeHandler.storePrivate(this.privateKeys.keys)},r.prototype.clear=function(){this.publicKeys.keys=[],this.privateKeys.keys=[]},r.prototype.getKeysForId=function(t,e){var r=[];return r=r.concat(this.publicKeys.getForId(t,e)||[]),r=r.concat(this.privateKeys.getForId(t,e)||[]),r.length?r:null},r.prototype.removeKeysForId=function(t){var e=[];return e=e.concat(this.publicKeys.removeForId(t)||[]),e=e.concat(this.privateKeys.removeForId(t)||[]),e.length?e:null},r.prototype.getAllKeys=function(){return this.publicKeys.keys.concat(this.privateKeys.keys)},n.prototype.getForAddress=function(t){for(var e=[],r=0;r<this.keys.length;r++)i(t,this.keys[r])&&e.push(this.keys[r]);return e},n.prototype.getForId=function(t,e){for(var r=0;r<this.keys.length;r++){if(o(t,this.keys[r].primaryKey))return this.keys[r];if(e&&this.keys[r].subKeys)for(var n=0;n<this.keys[r].subKeys.length;n++)if(o(t,this.keys[r].subKeys[n].subKey))return this.keys[r]}return null},n.prototype.importKey=function(t){var e=s.readArmored(t),r=this;return e.keys.forEach(function(t){var e=t.primaryKey.getKeyId().toHex(),n=r.getForId(e);n?n.update(t):r.push(t)}),e.err?e.err:null},n.prototype.push=function(t){return this.keys.push(t)},n.prototype.removeForId=function(t){for(var e=0;e<this.keys.length;e++)if(o(t,this.keys[e].primaryKey))return this.keys.splice(e,1)[0];return null}},{"../enums.js":30,"../key.js":32,"../util.js":61,"./localstore.js":35}],35:[function(t,e){function r(e){e=e||"openpgp-",this.publicKeysItem=e+this.publicKeysItem,this.privateKeysItem=e+this.privateKeysItem,this.storage="undefined"!=typeof window&&window.localStorage?window.localStorage:new(t("node-localstorage").LocalStorage)(o.node_store)}function n(t,e){var r=JSON.parse(t.getItem(e)),n=[];if(null!==r&&0!==r.length)for(var i,o=0;o<r.length;o++)i=s.readArmored(r[o]),i.err?a.print_debug("Error reading armored key from keyring index: "+o):n.push(i.keys[0]);return n}function i(t,e,r){for(var n=[],i=0;i<r.length;i++)n.push(r[i].armor());t.setItem(e,JSON.stringify(n))}e.exports=r;var o=t("../config"),s=t("../key.js"),a=t("../util.js");r.prototype.publicKeysItem="public-keys",r.prototype.privateKeysItem="private-keys",r.prototype.loadPublic=function(){return n(this.storage,this.publicKeysItem)},r.prototype.loadPrivate=function(){return n(this.storage,this.privateKeysItem)},r.prototype.storePublic=function(t){i(this.storage,this.publicKeysItem,t)},r.prototype.storePrivate=function(t){i(this.storage,this.privateKeysItem,t)}},{"../config":4,"../key.js":32,"../util.js":61,"node-localstorage":!1}],36:[function(t,e,r){function n(t){return this instanceof n?void(this.packets=t||new a.List):new n(t)}function i(t){var e=c.decode(t).data,r=new a.List;r.read(e);var i=new n(r);return i}function o(t){var e=new a.Literal;e.setText(t);var r=new a.List;r.push(e);var i=new n(r);return i}function s(t){var e=new a.Literal;e.setBytes(t,u.read(u.literal,u.literal.binary));var r=new a.List;r.push(e);var i=new n(r);return i}var a=t("./packet"),u=t("./enums.js"),c=t("./encoding/armor.js"),l=t("./config"),h=t("./crypto"),d=t("./key.js");n.prototype.getEncryptionKeyIds=function(){var t=[],e=this.packets.filterByTag(u.packet.publicKeyEncryptedSessionKey);return e.forEach(function(e){t.push(e.publicKeyId)}),t},n.prototype.getSigningKeyIds=function(){var t=[],e=this.unwrapCompressed(),r=e.packets.filterByTag(u.packet.onePassSignature);if(r.forEach(function(e){t.push(e.signingKeyId)}),!t.length){var n=e.packets.filterByTag(u.packet.signature);n.forEach(function(e){t.push(e.issuerKeyId)})}return t},n.prototype.decrypt=function(t){var e=this.getEncryptionKeyIds();if(!e.length)return this;var r=t.getPrivateKeyPacket(e);if(!r.isDecrypted)throw new Error("Private key is not decrypted.");for(var i,o=this.packets.filterByTag(u.packet.publicKeyEncryptedSessionKey),s=0;s<o.length;s++)if(o[s].publicKeyId.equals(r.getKeyId())){i=o[s],i.decrypt(r);break}if(i){var c=this.packets.filterByTag(u.packet.symmetricallyEncrypted,u.packet.symEncryptedIntegrityProtected);if(0!==c.length){var l=c[0];l.decrypt(i.sessionKeyAlgorithm,i.sessionKey);var h=new n(l.packets);return l.packets=new a.List,h}}},n.prototype.getLiteralData=function(){var t=this.packets.findPacket(u.packet.literal);return t&&t.data||null},n.prototype.getText=function(){var t=this.packets.findPacket(u.packet.literal);return t?t.getText():null},n.prototype.encrypt=function(t){var e=new a.List,r=d.getPreferredSymAlgo(t),i=h.generateSessionKey(u.read(u.symmetric,r));t.forEach(function(t){var n=t.getEncryptionKeyPacket();if(!n)throw new Error("Could not find valid key packet for encryption in key "+t.primaryKey.getKeyId().toHex());var o=new a.PublicKeyEncryptedSessionKey;o.publicKeyId=n.getKeyId(),o.publicKeyAlgorithm=n.algorithm,o.sessionKey=i,o.sessionKeyAlgorithm=u.read(u.symmetric,r),o.encrypt(n),e.push(o)});var o;return o=l.integrity_protect?new a.SymEncryptedIntegrityProtected:new a.SymmetricallyEncrypted,o.packets=this.packets,o.encrypt(u.read(u.symmetric,r),i),e.push(o),o.packets=new a.List,new n(e)},n.prototype.sign=function(t){var e=new a.List,r=this.packets.findPacket(u.packet.literal);if(!r)throw new Error("No literal data packet to sign.");var i,o=u.write(u.literal,r.format),s=o==u.literal.binary?u.signature.binary:u.signature.text;for(i=0;i<t.length;i++){var c=new a.OnePassSignature;c.type=s,c.hashAlgorithm=l.prefer_hash_algorithm;var h=t[i].getSigningKeyPacket();if(!h)throw new Error("Could not find valid key packet for signing in key "+t[i].primaryKey.getKeyId().toHex());c.publicKeyAlgorithm=h.algorithm,c.signingKeyId=h.getKeyId(),e.push(c)}for(e.push(r),i=t.length-1;i>=0;i--){var d=new a.Signature;if(d.signatureType=s,d.hashAlgorithm=l.prefer_hash_algorithm,d.publicKeyAlgorithm=h.algorithm,!h.isDecrypted)throw new Error("Private key is not decrypted.");d.sign(h,r),e.push(d)}return new n(e)},n.prototype.verify=function(t){var e=[],r=this.unwrapCompressed(),n=r.packets.filterByTag(u.packet.literal);if(1!==n.length)throw new Error("Can only verify message with one literal data packet.");var i=r.packets.filterByTag(u.packet.signature);return t.forEach(function(t){for(var r=0;r<i.length;r++){var o=t.getPublicKeyPacket([i[r].issuerKeyId]);if(o){var s={};s.keyid=i[r].issuerKeyId,s.valid=i[r].verify(o,n[0]),e.push(s);break}}}),e},n.prototype.unwrapCompressed=function(){var t=this.packets.filterByTag(u.packet.compressed);return t.length?new n(t[0].packets):this},n.prototype.armor=function(){return c.encode(u.armor.message,this.packets.write())},r.Message=n,r.readArmored=i,r.fromText=o,r.fromBinary=s},{"./config":4,"./crypto":19,"./encoding/armor.js":28,"./enums.js":30,"./key.js":32,"./packet":40}],37:[function(t,e,r){function n(t){f=new b(t)}function i(t,e,r){return h(r)?void f.encryptMessage(t,e,r):d(function(){var r,n;return r=m.fromText(e),r=r.encrypt(t),n=p.encode(g.armor.message,r.packets.write())},r)}function o(t,e,r,n){return h(n)?void f.signAndEncryptMessage(t,e,r,n):d(function(){var n,i;return n=m.fromText(r),n=n.sign([e]),n=n.encrypt(t),i=p.encode(g.armor.message,n.packets.write())},n)}function s(t,e,r){return h(r)?void f.decryptMessage(t,e,r):d(function(){return e=e.decrypt(t),e.getText()},r)}function a(t,e,r,n){return h(n)?void f.decryptAndVerifyMessage(t,e,r,n):d(function(){var n={};return r=r.decrypt(t),n.text=r.getText(),n.text?(n.signatures=r.verify(e),n):null},n)}function u(t,e,r){return h(r)?void f.signClearMessage(t,e,r):d(function(){var r=new y.CleartextMessage(e);return r.sign(t),r.armor()},r)}function c(t,e,r){return h(r)?void f.verifyClearSignedMessage(t,e,r):d(function(){var r={};if(!(e instanceof y.CleartextMessage))throw new Error("Parameter [message] needs to be of type CleartextMessage.");return r.text=e.getText(),r.signatures=e.verify(t),r},r)}function l(t,e){return h(e)?void f.generateKeyPair(t,e):d(function(){var e={},r=v.generate(t);return e.key=r,e.privateKeyArmored=r.armor(),e.publicKeyArmored=r.toPublic().armor(),e},e)}function h(t){if("undefined"==typeof window||!window.Worker||"function"!=typeof t)return!1;if(!f)throw new Error("You need to set the worker path!");return!0}function d(t,e){var r;try{r=t()}catch(n){if(e)return void e(n);throw n}return e?void e(null,r):r}var f,p=t("./encoding/armor.js"),g=(t("./packet"),t("./enums.js")),m=(t("./config"),t("./message.js")),y=t("./cleartext.js"),v=t("./key.js"),b=t("./worker/async_proxy.js");r.initWorker=n,r.encryptMessage=i,r.signAndEncryptMessage=o,r.decryptMessage=s,r.decryptAndVerifyMessage=a,r.signClearMessage=u,r.verifyClearSignedMessage=c,r.generateKeyPair=l},{"./cleartext.js":1,"./config":4,"./encoding/armor.js":28,"./enums.js":30,"./key.js":32,"./message.js":36,"./packet":40,"./worker/async_proxy.js":62}],38:[function(t,e){function r(t){return t.substr(0,1).toUpperCase()+t.substr(1)}var n=t("../enums.js");e.exports={Compressed:t("./compressed.js"),SymEncryptedIntegrityProtected:t("./sym_encrypted_integrity_protected.js"),PublicKeyEncryptedSessionKey:t("./public_key_encrypted_session_key.js"),SymEncryptedSessionKey:t("./sym_encrypted_session_key.js"),Literal:t("./literal.js"),PublicKey:t("./public_key.js"),SymmetricallyEncrypted:t("./symmetrically_encrypted.js"),Marker:t("./marker.js"),PublicSubkey:t("./public_subkey.js"),UserAttribute:t("./user_attribute.js"),OnePassSignature:t("./one_pass_signature.js"),SecretKey:t("./secret_key.js"),Userid:t("./userid.js"),SecretSubkey:t("./secret_subkey.js"),Signature:t("./signature.js"),Trust:t("./trust.js"),newPacketFromTag:function(t){return new(this[r(t)])},fromStructuredClone:function(t){var e=n.read(n.packet,t.tag),r=this.newPacketFromTag(e);for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);return r.postCloneTypeFix&&r.postCloneTypeFix(),r}}},{"../enums.js":30,"./compressed.js":39,"./literal.js":41,"./marker.js":42,"./one_pass_signature.js":43,"./public_key.js":46,"./public_key_encrypted_session_key.js":47,"./public_subkey.js":48,"./secret_key.js":49,"./secret_subkey.js":50,"./signature.js":51,"./sym_encrypted_integrity_protected.js":52,"./sym_encrypted_session_key.js":53,"./symmetrically_encrypted.js":54,"./trust.js":55,"./user_attribute.js":56,"./userid.js":57}],39:[function(t,e){function r(){this.tag=n.packet.compressed,this.packets=null,this.algorithm="uncompressed",this.compressed=null}e.exports=r;var n=t("../enums.js"),i=t("../compression/jxg.js"),o=t("../encoding/base64.js");r.prototype.read=function(t){this.algorithm=n.read(n.compression,t.charCodeAt(0)),this.compressed=t.substr(1),this.decompress()},r.prototype.write=function(){return null===this.compressed&&this.compress(),String.fromCharCode(n.write(n.compression,this.algorithm))+this.compressed},r.prototype.decompress=function(){var t,e;switch(this.algorithm){case"uncompressed":t=this.compressed;break;case"zip":compData=this.compressed,e=o.encode(compData).replace(/\n/g,"");var r=new i.Util.Unzip(i.Util.Base64.decodeAsArray(e));t=unescape(r.deflate()[0][0]);break;case"zlib":var n=this.compressed.charCodeAt(0)%16;if(8==n){compData=this.compressed.substring(0,this.compressed.length-4),e=o.encode(compData).replace(/\n/g,""),t=i.decompress(e);break}throw new Error("Compression algorithm ZLIB only supports DEFLATE compression method.");case"bzip2":throw new Error("Compression algorithm BZip2 [BZ2] is not implemented.");default:throw new Error("Compression algorithm unknown :"+this.alogrithm)}this.packets.read(t)},r.prototype.compress=function(){switch(this.algorithm){case"uncompressed":this.compressed=this.packets.write();break;case"zip":throw new Error("Compression algorithm ZIP [RFC1951] is not implemented.");case"zlib":throw new Error("Compression algorithm ZLIB [RFC1950] is not implemented.");case"bzip2":throw new Error("Compression algorithm BZip2 [BZ2] is not implemented.");default:throw new Error("Compression algorithm unknown :"+this.type)}}},{"../compression/jxg.js":2,"../encoding/base64.js":29,"../enums.js":30}],40:[function(t,e){t("../enums.js"),e.exports={List:t("./packetlist.js")};var r=t("./all_packets.js");for(var n in r)e.exports[n]=r[n]},{"../enums.js":30,"./all_packets.js":38,"./packetlist.js":45}],41:[function(t,e){function r(){this.tag=i.packet.literal,this.format="utf8",this.data="",this.date=new Date,this.filename="msg.txt"}e.exports=r;var n=t("../util.js"),i=t("../enums.js");r.prototype.setText=function(t){t=t.replace(/\r/g,"").replace(/\n/g,"\r\n"),this.data="utf8"==this.format?n.encode_utf8(t):t},r.prototype.getText=function(){var t=n.decode_utf8(this.data);return t.replace(/\r\n/g,"\n")},r.prototype.setBytes=function(t,e){this.format=e,this.data=t},r.prototype.getBytes=function(){return this.data},r.prototype.setFilename=function(t){this.filename=t},r.prototype.getFilename=function(){return this.filename},r.prototype.read=function(t){var e=i.read(i.literal,t.charCodeAt(0)),r=t.charCodeAt(1);this.filename=n.decode_utf8(t.substr(2,r)),this.date=n.readDate(t.substr(2+r,4));var o=t.substring(6+r);this.setBytes(o,e)},r.prototype.write=function(){var t=n.encode_utf8(this.filename),e=this.getBytes(),r="";return r+=String.fromCharCode(i.write(i.literal,this.format)),r+=String.fromCharCode(t.length),r+=t,r+=n.writeDate(this.date),r+=e}},{"../enums.js":30,"../util.js":61}],42:[function(t,e){function r(){this.tag=n.packet.marker}e.exports=r;var n=t("../enums.js");r.prototype.read=function(t){return 80==t.charCodeAt(0)&&71==t.charCodeAt(1)&&80==t.charCodeAt(2)}},{"../enums.js":30}],43:[function(t,e){function r(){this.tag=n.packet.onePassSignature,this.version=null,this.type=null,this.hashAlgorithm=null,this.publicKeyAlgorithm=null,this.signingKeyId=null,this.flags=null}e.exports=r;var n=t("../enums.js"),i=t("../type/keyid.js");r.prototype.read=function(t){var e=0;return this.version=t.charCodeAt(e++),this.type=n.read(n.signature,t.charCodeAt(e++)),this.hashAlgorithm=n.read(n.hash,t.charCodeAt(e++)),this.publicKeyAlgorithm=n.read(n.publicKey,t.charCodeAt(e++)),this.signingKeyId=new i,this.signingKeyId.read(t.substr(e)),e+=8,this.flags=t.charCodeAt(e++),this},r.prototype.write=function(){var t="";return t+=String.fromCharCode(3),t+=String.fromCharCode(n.write(n.signature,this.type)),t+=String.fromCharCode(n.write(n.hash,this.hashAlgorithm)),t+=String.fromCharCode(n.write(n.publicKey,this.publicKeyAlgorithm)),t+=this.signingKeyId.write(),t+=String.fromCharCode(this.flags)},r.prototype.postCloneTypeFix=function(){this.signingKeyId=i.fromClone(this.signingKeyId)}},{"../enums.js":30,"../type/keyid.js":58}],44:[function(t,e){var r=(t("../enums.js"),t("../util.js"));e.exports={readSimpleLength:function(t){var e,n=0,i=t.charCodeAt(0);return 192>i?(n=t.charCodeAt(0),e=1):255>i?(n=(t.charCodeAt(0)-192<<8)+t.charCodeAt(1)+192,e=2):255==i&&(n=r.readNumber(t.substr(1,4)),e=5),{len:n,offset:e}},writeSimpleLength:function(t){var e="";return 192>t?e+=String.fromCharCode(t):t>191&&8384>t?(e+=String.fromCharCode((t-192>>8)+192),e+=String.fromCharCode(t-192&255)):(e+=String.fromCharCode(255),e+=r.writeNumber(t,4)),e},writeHeader:function(t,e){var r="";return r+=String.fromCharCode(192|t),r+=this.writeSimpleLength(e)},writeOldHeader:function(t,e){var n="";return 256>e?(n+=String.fromCharCode(128|t<<2),n+=String.fromCharCode(e)):65536>e?(n+=String.fromCharCode(128|t<<2|1),n+=r.writeNumber(e,2)):(n+=String.fromCharCode(128|t<<2|2),n+=r.writeNumber(e,4)),n},read:function(t,e,n){if(null===t||t.length<=e||t.substring(e).length<2||0===(128&t.charCodeAt(e)))throw new Error("Error during parsing. This message / key is probably not containing a valid OpenPGP format.");var i,o=e,s=-1,a=-1;a=0,0!==(64&t.charCodeAt(o))&&(a=1);var u;a?s=63&t.charCodeAt(o):(s=(63&t.charCodeAt(o))>>2,u=3&t.charCodeAt(o)),o++;var c=null,l=-1;if(a)if(t.charCodeAt(o)<192)i=t.charCodeAt(o++),r.print_debug("1 byte length:"+i);else if(t.charCodeAt(o)>=192&&t.charCodeAt(o)<224)i=(t.charCodeAt(o++)-192<<8)+t.charCodeAt(o++)+192,r.print_debug("2 byte length:"+i);else if(t.charCodeAt(o)>223&&t.charCodeAt(o)<255){i=1<<(31&t.charCodeAt(o++)),r.print_debug("4 byte length:"+i);var h=o+i;c=t.substring(o,o+i);for(var d;;){if(t.charCodeAt(h)<192){d=t.charCodeAt(h++),i+=d,c+=t.substring(h,h+d),h+=d;break}if(t.charCodeAt(h)>=192&&t.charCodeAt(h)<224){d=(t.charCodeAt(h++)-192<<8)+t.charCodeAt(h++)+192,i+=d,c+=t.substring(h,h+d),h+=d;break}if(!(t.charCodeAt(h)>223&&t.charCodeAt(h)<255)){h++,d=t.charCodeAt(h++)<<24|t.charCodeAt(h++)<<16|t[h++].charCodeAt()<<8|t.charCodeAt(h++),c+=t.substring(h,h+d),i+=d,h+=d;break}d=1<<(31&t.charCodeAt(h++)),i+=d,c+=t.substring(h,h+d),h+=d}l=h-o}else o++,i=t.charCodeAt(o++)<<24|t.charCodeAt(o++)<<16|t.charCodeAt(o++)<<8|t.charCodeAt(o++);else switch(u){case 0:i=t.charCodeAt(o++);break;case 1:i=t.charCodeAt(o++)<<8|t.charCodeAt(o++);break;case 2:i=t.charCodeAt(o++)<<24|t.charCodeAt(o++)<<16|t.charCodeAt(o++)<<8|t.charCodeAt(o++);break;default:i=n}return-1==l&&(l=i),null===c&&(c=t.substring(o,o+l)),{tag:s,packet:c,offset:o+l}}}},{"../enums.js":30,"../util.js":61}],45:[function(t,e){function r(){this.length=0}e.exports=r;var n=t("./packet.js"),i=t("./all_packets.js"),o=t("../enums.js");r.prototype.read=function(t){for(var e=0;e<t.length;){var r=n.read(t,e,t.length-e);e=r.offset;var s=o.read(o.packet,r.tag),a=i.newPacketFromTag(s);this.push(a),a.read(r.packet)}},r.prototype.write=function(){for(var t="",e=0;e<this.length;e++){var r=this[e].write();t+=n.writeHeader(this[e].tag,r.length),t+=r}return t},r.prototype.push=function(t){t&&(t.packets=t.packets||new r,this[this.length]=t,this.length++)},r.prototype.filter=function(t){for(var e=new r,n=0;n<this.length;n++)t(this[n],n,this)&&e.push(this[n]);return e},r.prototype.filterByTag=function(){for(var t=Array.prototype.slice.call(arguments),e=new r,n=this,i=0;i<this.length;i++)t.some(function(t){return n[i].tag==t})&&e.push(this[i]);return e},r.prototype.forEach=function(t){for(var e=0;e<this.length;e++)t(this[e])},r.prototype.findPacket=function(t){var e=this.filterByTag(t);if(e.length)return e[0];for(var r=null,n=0;n<this.length;n++)if(this[n].packets.length&&(r=this[n].packets.findPacket(t)))return r;return null},r.prototype.indexOfTag=function(){for(var t=Array.prototype.slice.call(arguments),e=[],r=this,n=0;n<this.length;n++)t.some(function(t){return r[n].tag==t})&&e.push(n);return e},r.prototype.slice=function(t,e){e||(e=this.length);for(var n=new r,i=t;e>i;i++)n.push(this[i]);return n},r.prototype.concat=function(t){if(t)for(var e=0;e<t.length;e++)this.push(t[e])},e.exports.fromStructuredClone=function(t){for(var e=new r,n=0;n<t.length;n++)e.push(i.fromStructuredClone(t[n])),e[n].packets=0!==e[n].packets.length?this.fromStructuredClone(e[n].packets):new r;return e}},{"../enums.js":30,"./all_packets.js":38,"./packet.js":44}],46:[function(t,e){function r(){this.tag=s.packet.publicKey,this.version=4,this.created=new Date,this.mpi=[],this.algorithm="rsa_sign",this.expirationTimeV3=0,this.fingerprint=null,this.keyid=null}e.exports=r;var n=t("../util.js"),i=t("../type/mpi.js"),o=t("../type/keyid.js"),s=t("../enums.js"),a=t("../crypto");r.prototype.read=function(t){var e=0;if(this.version=t.charCodeAt(e++),3==this.version||4==this.version){this.created=n.readDate(t.substr(e,4)),e+=4,3==this.version&&(this.expirationTimeV3=n.readNumber(t.substr(e,2)),e+=2),this.algorithm=s.read(s.publicKey,t.charCodeAt(e++));var r=a.getPublicMpiCount(this.algorithm);this.mpi=[];for(var o=t.substr(e),u=0,c=0;r>c&&u<o.length;c++)if(this.mpi[c]=new i,u+=this.mpi[c].read(o.substr(u)),u>o.length)throw new Error("Error reading MPI @:"+u);return u+6}throw new Error("Version "+this.version+" of the key packet is unsupported.")},r.prototype.readPublicKey=r.prototype.read,r.prototype.write=function(){var t=String.fromCharCode(this.version);t+=n.writeDate(this.created),3==this.version&&(t+=n.writeNumber(this.expirationTimeV3,2)),t+=String.fromCharCode(s.write(s.publicKey,this.algorithm));for(var e=a.getPublicMpiCount(this.algorithm),r=0;e>r;r++)t+=this.mpi[r].write();return t},r.prototype.writePublicKey=r.prototype.write,r.prototype.writeOld=function(){var t=this.writePublicKey();return String.fromCharCode(153)+n.writeNumber(t.length,2)+t},r.prototype.getKeyId=function(){return this.keyid?this.keyid:(this.keyid=new o,4==this.version?this.keyid.read(n.hex2bin(this.getFingerprint()).substr(12,8)):3==this.version&&this.keyid.read(this.mpi[0].write().substr(-8)),this.keyid)},r.prototype.getFingerprint=function(){if(this.fingerprint)return this.fingerprint;var t="";if(4==this.version)t=this.writeOld(),this.fingerprint=a.hash.sha1(t);else if(3==this.version){for(var e=a.getPublicMpiCount(this.algorithm),r=0;e>r;r++)t+=this.mpi[r].toBytes();this.fingerprint=a.hash.md5(t)}return this.fingerprint=n.hexstrdump(this.fingerprint),this.fingerprint},r.prototype.getBitSize=function(){return 8*this.mpi[0].byteLength()},r.prototype.postCloneTypeFix=function(){for(var t=0;t<this.mpi.length;t++)this.mpi[t]=i.fromClone(this.mpi[t]);
this.keyid&&(this.keyid=o.fromClone(this.keyid))}},{"../crypto":19,"../enums.js":30,"../type/keyid.js":58,"../type/mpi.js":59,"../util.js":61}],47:[function(t,e){function r(){this.tag=s.packet.publicKeyEncryptedSessionKey,this.version=3,this.publicKeyId=new n,this.publicKeyAlgorithm="rsa_encrypt",this.sessionKey=null,this.sessionKeyAlgorithm="aes256",this.encrypted=[]}e.exports=r;var n=t("../type/keyid.js"),i=t("../util.js"),o=t("../type/mpi.js"),s=t("../enums.js"),a=t("../crypto");r.prototype.read=function(t){this.version=t.charCodeAt(0),this.publicKeyId.read(t.substr(1)),this.publicKeyAlgorithm=s.read(s.publicKey,t.charCodeAt(9));var e=10,r=function(t){switch(t){case"rsa_encrypt":case"rsa_encrypt_sign":return 1;case"elgamal":return 2;default:throw new Error("Invalid algorithm.")}}(this.publicKeyAlgorithm);this.encrypted=[];for(var n=0;r>n;n++){var i=new o;e+=i.read(t.substr(e)),this.encrypted.push(i)}},r.prototype.write=function(){var t=String.fromCharCode(this.version);t+=this.publicKeyId.write(),t+=String.fromCharCode(s.write(s.publicKey,this.publicKeyAlgorithm));for(var e=0;e<this.encrypted.length;e++)t+=this.encrypted[e].write();return t},r.prototype.encrypt=function(t){var e=String.fromCharCode(s.write(s.symmetric,this.sessionKeyAlgorithm));e+=this.sessionKey;var r=i.calc_checksum(this.sessionKey);e+=i.writeNumber(r,2);var n=new o;n.fromBytes(a.pkcs1.eme.encode(e,t.mpi[0].byteLength())),this.encrypted=a.publicKeyEncrypt(this.publicKeyAlgorithm,t.mpi,n)},r.prototype.decrypt=function(t){var e=a.publicKeyDecrypt(this.publicKeyAlgorithm,t.mpi,this.encrypted).toBytes(),r=i.readNumber(e.substr(e.length-2)),n=a.pkcs1.eme.decode(e);if(t=n.substring(1,n.length-2),r!=i.calc_checksum(t))throw new Error("Checksum mismatch");this.sessionKey=t,this.sessionKeyAlgorithm=s.read(s.symmetric,n.charCodeAt(0))},r.prototype.postCloneTypeFix=function(){this.publicKeyId=n.fromClone(this.publicKeyId);for(var t=0;t<this.encrypted.length;t++)this.encrypted[t]=o.fromClone(this.encrypted[t])}},{"../crypto":19,"../enums.js":30,"../type/keyid.js":58,"../type/mpi.js":59,"../util.js":61}],48:[function(t,e){function r(){n.call(this),this.tag=i.packet.publicSubkey}e.exports=r;var n=t("./public_key.js"),i=t("../enums.js");r.prototype=new n,r.prototype.constructor=r},{"../enums.js":30,"./public_key.js":46}],49:[function(t,e){function r(){u.call(this),this.tag=c.packet.secretKey,this.encrypted=null,this.isDecrypted=!1}function n(t){return"sha1"==t?20:2}function i(t){return"sha1"==t?h.hash.sha1:function(t){return l.writeNumber(l.calc_checksum(t),2)}}function o(t,e,r){var o=n(t),s=i(t),a=e.substr(e.length-o);e=e.substr(0,e.length-o);var u=s(e);if(u!=a)return new Error("Hash mismatch.");for(var c=h.getPrivateMpiCount(r),l=0,f=[],p=0;c>p&&l<e.length;p++)f[p]=new d,l+=f[p].read(e.substr(l));return f}function s(t,e,r){for(var n="",o=h.getPublicMpiCount(e),s=o;s<r.length;s++)n+=r[s].write();return n+=i(t)(n)}function a(t,e,r){return t.produce_key(e,h.cipher[r].keySize)}e.exports=r;var u=t("./public_key.js"),c=t("../enums.js"),l=t("../util.js"),h=t("../crypto"),d=t("../type/mpi.js"),f=t("../type/s2k.js");r.prototype=new u,r.prototype.constructor=r,r.prototype.read=function(t){var e=this.readPublicKey(t);t=t.substr(e);var r=t.charCodeAt(0);if(r)this.encrypted=t;else{var n=o("mod",t.substr(1),this.algorithm);if(n instanceof Error)throw n;this.mpi=this.mpi.concat(n),this.isDecrypted=!0}},r.prototype.write=function(){var t=this.writePublicKey();return this.encrypted?t+=this.encrypted:(t+=String.fromCharCode(0),t+=s("mod",this.algorithm,this.mpi)),t},r.prototype.encrypt=function(t){var e=new f,r="aes256",n=s("sha1",this.algorithm,this.mpi),i=a(e,t,r),o=h.cipher[r].blockSize,u=h.random.getRandomBytes(o);this.encrypted="",this.encrypted+=String.fromCharCode(254),this.encrypted+=String.fromCharCode(c.write(c.symmetric,r)),this.encrypted+=e.write(),this.encrypted+=u,this.encrypted+=h.cfb.normalEncrypt(r,i,n,u)},r.prototype.decrypt=function(t){if(this.isDecrypted)return!0;var e,r,n=0,i=this.encrypted.charCodeAt(n++);if(255==i||254==i){e=this.encrypted.charCodeAt(n++),e=c.read(c.symmetric,e);var s=new f;n+=s.read(this.encrypted.substr(n)),r=a(s,t,e)}else e=i,e=c.read(c.symmetric,e),r=h.hash.md5(t);var u=this.encrypted.substr(n,h.cipher[e].blockSize);n+=u.length;var l,d=this.encrypted.substr(n);l=h.cfb.normalDecrypt(e,r,d,u);var p=254==i?"sha1":"mod",g=o(p,l,this.algorithm);return!(g instanceof Error)&&(this.mpi=this.mpi.concat(g),this.isDecrypted=!0,!0)},r.prototype.generate=function(t){this.mpi=h.generateMpi(this.algorithm,t),this.isDecrypted=!0},r.prototype.clearPrivateMPIs=function(){this.mpi=this.mpi.slice(0,h.getPublicMpiCount(this.algorithm)),this.isDecrypted=!1}},{"../crypto":19,"../enums.js":30,"../type/mpi.js":59,"../type/s2k.js":60,"../util.js":61,"./public_key.js":46}],50:[function(t,e){function r(){n.call(this),this.tag=i.packet.secretSubkey}e.exports=r;var n=t("./secret_key.js"),i=t("../enums.js");r.prototype=new n,r.prototype.constructor=r},{"../enums.js":30,"./secret_key.js":49}],51:[function(t,e){function r(){this.tag=s.packet.signature,this.version=4,this.signatureType=null,this.hashAlgorithm=null,this.publicKeyAlgorithm=null,this.signatureData=null,this.unhashedSubpackets=null,this.signedHashValue=null,this.created=new Date,this.signatureExpirationTime=null,this.signatureNeverExpires=!0,this.exportable=null,this.trustLevel=null,this.trustAmount=null,this.regularExpression=null,this.revocable=null,this.keyExpirationTime=null,this.keyNeverExpires=null,this.preferredSymmetricAlgorithms=null,this.revocationKeyClass=null,this.revocationKeyAlgorithm=null,this.revocationKeyFingerprint=null,this.issuerKeyId=new c,this.notation=null,this.preferredHashAlgorithms=null,this.preferredCompressionAlgorithms=null,this.keyServerPreferences=null,this.preferredKeyServer=null,this.isPrimaryUserID=null,this.policyURI=null,this.keyFlags=null,this.signersUserId=null,this.reasonForRevocationFlag=null,this.reasonForRevocationString=null,this.features=null,this.signatureTargetPublicKeyAlgorithm=null,this.signatureTargetHashAlgorithm=null,this.signatureTargetHash=null,this.embeddedSignature=null,this.verified=!1}function n(t,e){var r="";return r+=o.writeSimpleLength(e.length+1),r+=String.fromCharCode(t),r+=e}e.exports=r;var i=t("../util.js"),o=t("./packet.js"),s=t("../enums.js"),a=t("../crypto"),u=t("../type/mpi.js"),c=t("../type/keyid.js");r.prototype.read=function(t){function e(t){for(var e=i.readNumber(t.substr(0,2)),r=2;2+e>r;){var n=o.readSimpleLength(t.substr(r));r+=n.offset,this.read_sub_packet(t.substr(r,n.len)),r+=n.len}return r}var r=0;switch(this.version=t.charCodeAt(r++),this.version){case 3:5!=t.charCodeAt(r++)&&i.print_debug("packet/signature.js\ninvalid One-octet length of following hashed material.MUST be 5. @:"+(r-1));var n=r;this.signatureType=t.charCodeAt(r++),this.created=i.readDate(t.substr(r,4)),r+=4,this.signatureData=t.substring(n,r),this.issuerKeyId.read(t.substring(r,r+8)),r+=8,this.publicKeyAlgorithm=t.charCodeAt(r++),this.hashAlgorithm=t.charCodeAt(r++);break;case 4:this.signatureType=t.charCodeAt(r++),this.publicKeyAlgorithm=t.charCodeAt(r++),this.hashAlgorithm=t.charCodeAt(r++),r+=e.call(this,t.substr(r),!0),this.signatureData=t.substr(0,r);var s=r;r+=e.call(this,t.substr(r),!1),this.unhashedSubpackets=t.substr(s,r-s);break;default:throw new Error("Version "+this.version+" of the signature is unsupported.")}this.signedHashValue=t.substr(r,2),r+=2,this.signature=t.substr(r)},r.prototype.write=function(){var t="";switch(this.version){case 3:t+=String.fromCharCode(3),t+=String.fromCharCode(5),t+=this.signatureData,t+=this.issuerKeyId.write(),t+=String.fromCharCode(this.publicKeyAlgorithm),t+=String.fromCharCode(this.hashAlgorithm);break;case 4:t+=this.signatureData,t+=this.unhashedSubpackets?this.unhashedSubpackets:i.writeNumber(0,2)}return t+=this.signedHashValue+this.signature},r.prototype.sign=function(t,e){var r=s.write(s.signature,this.signatureType),n=s.write(s.publicKey,this.publicKeyAlgorithm),i=s.write(s.hash,this.hashAlgorithm),o=String.fromCharCode(4);o+=String.fromCharCode(r),o+=String.fromCharCode(n),o+=String.fromCharCode(i),this.issuerKeyId=t.getKeyId(),o+=this.write_all_sub_packets(),this.signatureData=o;var u=this.calculateTrailer(),c=this.toSign(r,e)+this.signatureData+u,l=a.hash.digest(i,c);this.signedHashValue=l.substr(0,2),this.signature=a.signature.sign(i,n,t.mpi,c)},r.prototype.write_all_sub_packets=function(){var t=s.signatureSubpacket,e="",r="";if(null!==this.created&&(e+=n(t.signature_creation_time,i.writeDate(this.created))),null!==this.signatureExpirationTime&&(e+=n(t.signature_expiration_time,i.writeNumber(this.signatureExpirationTime,4))),null!==this.exportable&&(e+=n(t.exportable_certification,String.fromCharCode(this.exportable?1:0))),null!==this.trustLevel&&(r=String.fromCharCode(this.trustLevel)+String.fromCharCode(this.trustAmount),e+=n(t.trust_signature,r)),null!==this.regularExpression&&(e+=n(t.regular_expression,this.regularExpression)),null!==this.revocable&&(e+=n(t.revocable,String.fromCharCode(this.revocable?1:0))),null!==this.keyExpirationTime&&(e+=n(t.key_expiration_time,i.writeNumber(this.keyExpirationTime,4))),null!==this.preferredSymmetricAlgorithms&&(r=i.bin2str(this.preferredSymmetricAlgorithms),e+=n(t.preferred_symmetric_algorithms,r)),null!==this.revocationKeyClass&&(r=String.fromCharCode(this.revocationKeyClass),r+=String.fromCharCode(this.revocationKeyAlgorithm),r+=this.revocationKeyFingerprint,e+=n(t.revocation_key,r)),this.issuerKeyId.isNull()||(e+=n(t.issuer,this.issuerKeyId.write())),null!==this.notation)for(var o in this.notation)if(this.notation.hasOwnProperty(o)){var a=this.notation[o];r=String.fromCharCode(128),r+=String.fromCharCode(0),r+=String.fromCharCode(0),r+=String.fromCharCode(0),r+=i.writeNumber(o.length,2),r+=i.writeNumber(a.length,2),r+=o+a,e+=n(t.notation_data,r)}return null!==this.preferredHashAlgorithms&&(r=i.bin2str(this.preferredHashAlgorithms),e+=n(t.preferred_hash_algorithms,r)),null!==this.preferredCompressionAlgorithms&&(r=i.bin2str(this.preferredCompressionAlgorithms),e+=n(t.preferred_compression_algorithms,r)),null!==this.keyServerPreferences&&(r=i.bin2str(this.keyServerPreferences),e+=n(t.key_server_preferences,r)),null!==this.preferredKeyServer&&(e+=n(t.preferred_key_server,this.preferredKeyServer)),null!==this.isPrimaryUserID&&(e+=n(t.primary_user_id,String.fromCharCode(this.isPrimaryUserID?1:0))),null!==this.policyURI&&(e+=n(t.policy_uri,this.policyURI)),null!==this.keyFlags&&(r=i.bin2str(this.keyFlags),e+=n(t.key_flags,r)),null!==this.signersUserId&&(e+=n(t.signers_user_id,this.signersUserId)),null!==this.reasonForRevocationFlag&&(r=String.fromCharCode(this.reasonForRevocationFlag),r+=this.reasonForRevocationString,e+=n(t.reason_for_revocation,r)),null!==this.features&&(r=i.bin2str(this.features),e+=n(t.features,r)),null!==this.signatureTargetPublicKeyAlgorithm&&(r=String.fromCharCode(this.signatureTargetPublicKeyAlgorithm),r+=String.fromCharCode(this.signatureTargetHashAlgorithm),r+=this.signatureTargetHash,e+=n(t.signature_target,r)),null!==this.embeddedSignature&&(e+=n(t.embedded_signature,this.embeddedSignature.write())),e=i.writeNumber(e.length,2)+e},r.prototype.read_sub_packet=function(t){function e(t,e){this[t]=[];for(var r=0;r<e.length;r++)this[t].push(e.charCodeAt(r))}var n,o=0,s=127&t.charCodeAt(o++);switch(s){case 2:this.created=i.readDate(t.substr(o));break;case 3:n=i.readNumber(t.substr(o)),this.signatureNeverExpires=0===n,this.signatureExpirationTime=n;break;case 4:this.exportable=1==t.charCodeAt(o++);break;case 5:this.trustLevel=t.charCodeAt(o++),this.trustAmount=t.charCodeAt(o++);break;case 6:this.regularExpression=t.substr(o);break;case 7:this.revocable=1==t.charCodeAt(o++);break;case 9:n=i.readNumber(t.substr(o)),this.keyExpirationTime=n,this.keyNeverExpires=0===n;break;case 11:e.call(this,"preferredSymmetricAlgorithms",t.substr(o));break;case 12:this.revocationKeyClass=t.charCodeAt(o++),this.revocationKeyAlgorithm=t.charCodeAt(o++),this.revocationKeyFingerprint=t.substr(o,20);break;case 16:this.issuerKeyId.read(t.substr(o));break;case 20:if(128==t.charCodeAt(o)){o+=4;var u=i.readNumber(t.substr(o,2));o+=2;var c=i.readNumber(t.substr(o,2));o+=2;var l=t.substr(o,u),h=t.substr(o+u,c);this.notation=this.notation||{},this.notation[l]=h}else i.print_debug("Unsupported notation flag "+t.charCodeAt(o));break;case 21:e.call(this,"preferredHashAlgorithms",t.substr(o));break;case 22:e.call(this,"preferredCompressionAlgorithms",t.substr(o));break;case 23:e.call(this,"keyServerPreferencess",t.substr(o));break;case 24:this.preferredKeyServer=t.substr(o);break;case 25:this.isPrimaryUserID=0!==t[o++];break;case 26:this.policyURI=t.substr(o);break;case 27:e.call(this,"keyFlags",t.substr(o));break;case 28:this.signersUserId+=t.substr(o);break;case 29:this.reasonForRevocationFlag=t.charCodeAt(o++),this.reasonForRevocationString=t.substr(o);break;case 30:e.call(this,"features",t.substr(o));break;case 31:this.signatureTargetPublicKeyAlgorithm=t.charCodeAt(o++),this.signatureTargetHashAlgorithm=t.charCodeAt(o++);var d=a.getHashByteLength(this.signatureTargetHashAlgorithm);this.signatureTargetHash=t.substr(o,d);break;case 32:this.embeddedSignature=new r,this.embeddedSignature.read(t.substr(o));break;default:i.print_debug("Unknown signature subpacket type "+s+" @:"+o)}},r.prototype.toSign=function(t,e){var r=s.signature;switch(t){case r.binary:case r.text:return e.getBytes();case r.standalone:return"";case r.cert_generic:case r.cert_persona:case r.cert_casual:case r.cert_positive:case r.cert_revocation:var n,o;if(void 0!==e.userid)o=180,n=e.userid;else{if(void 0===e.userattribute)throw new Error("Either a userid or userattribute packet needs to be supplied for certification.");o=209,n=e.userattribute}var a=n.write();if(4==this.version)return this.toSign(r.key,e)+String.fromCharCode(o)+i.writeNumber(a.length,4)+a;if(3==this.version)return this.toSign(r.key,e)+a;break;case r.subkey_binding:case r.subkey_revocation:case r.key_binding:return this.toSign(r.key,e)+this.toSign(r.key,{key:e.bind});case r.key:if(void 0===e.key)throw new Error("Key packet is required for this signature.");return e.key.writeOld();case r.key_revocation:return this.toSign(r.key,e);case r.timestamp:return"";case r.third_party:throw new Error("Not implemented");default:throw new Error("Unknown signature type.")}},r.prototype.calculateTrailer=function(){var t="";return 3==this.version?t:(t+=String.fromCharCode(4),t+=String.fromCharCode(255),t+=i.writeNumber(this.signatureData.length,4))},r.prototype.verify=function(t,e){var r=s.write(s.signature,this.signatureType),n=s.write(s.publicKey,this.publicKeyAlgorithm),i=s.write(s.hash,this.hashAlgorithm),o=this.toSign(r,e),c=this.calculateTrailer(),l=0;n>0&&4>n?l=1:17==n&&(l=2);for(var h=[],d=0,f=0;l>f;f++)h[f]=new u,d+=h[f].read(this.signature.substr(d));return this.verified=a.signature.verify(n,i,h,t.mpi,o+this.signatureData+c),this.verified},r.prototype.isExpired=function(){return!this.signatureNeverExpires&&Date.now()>this.created.getTime()+1e3*this.signatureExpirationTime},r.prototype.postCloneTypeFix=function(){this.issuerKeyId=c.fromClone(this.issuerKeyId)}},{"../crypto":19,"../enums.js":30,"../type/keyid.js":58,"../type/mpi.js":59,"../util.js":61,"./packet.js":44}],52:[function(t,e){function r(){this.tag=i.packet.symEncryptedIntegrityProtected,this.encrypted=null,this.modification=!1,this.packets=null}e.exports=r;var n=(t("../util.js"),t("../crypto")),i=t("../enums.js");r.prototype.read=function(t){var e=t.charCodeAt(0);if(1!=e)throw new Error("Invalid packet version.");this.encrypted=t.substr(1)},r.prototype.write=function(){return String.fromCharCode(1)+this.encrypted},r.prototype.encrypt=function(t,e){var r=this.packets.write(),i=n.getPrefixRandom(t),o=i+i.charAt(i.length-2)+i.charAt(i.length-1),s=r;s+=String.fromCharCode(211),s+=String.fromCharCode(20),s+=n.hash.sha1(o+s),this.encrypted=n.cfb.encrypt(i,t,s,e,!1).substring(0,o.length+s.length)},r.prototype.decrypt=function(t,e){var r=n.cfb.decrypt(t,e,this.encrypted,!1);this.hash=n.hash.sha1(n.cfb.mdc(t,e,this.encrypted)+r.substring(0,r.length-20));var i=r.substr(r.length-20,20);if(this.hash!=i)throw new Error("Modification detected.");this.packets.read(r.substr(0,r.length-22))}},{"../crypto":19,"../enums.js":30,"../util.js":61}],53:[function(t,e){function r(){this.tag=i.packet.symEncryptedSessionKey,this.sessionKeyEncryptionAlgorithm=null,this.sessionKeyAlgorithm="aes256",this.encrypted=null,this.s2k=new n}var n=t("../type/s2k.js"),i=t("../enums.js"),o=t("../crypto");e.exports=r,r.prototype.read=function(t){this.version=t.charCodeAt(0);var e=i.read(i.symmetric,t.charCodeAt(1)),r=this.s2k.read(t.substr(2)),n=r+2;n<t.length?(this.encrypted=t.substr(n),this.sessionKeyEncryptionAlgorithm=e):this.sessionKeyAlgorithm=e},r.prototype.write=function(){var t=null===this.encrypted?this.sessionKeyAlgorithm:this.sessionKeyEncryptionAlgorithm,e=String.fromCharCode(this.version)+String.fromCharCode(i.write(i.symmetric,t))+this.s2k.write();return null!==this.encrypted&&(e+=this.encrypted),e},r.prototype.decrypt=function(t){var e=null!==this.sessionKeyEncryptionAlgorithm?this.sessionKeyEncryptionAlgorithm:this.sessionKeyAlgorithm,r=o.cipher[e].keySize,n=this.s2k.produce_key(t,r);if(null===this.encrypted)this.sessionKey=n;else{var s=o.cfb.decrypt(this.sessionKeyEncryptionAlgorithm,n,this.encrypted,!0);this.sessionKeyAlgorithm=i.read(i.symmetric,s[0].keyCodeAt()),this.sessionKey=s.substr(1)}},r.prototype.encrypt=function(t){var e=o.getKeyLength(this.sessionKeyEncryptionAlgorithm),r=this.s2k.produce_key(t,e),n=String.fromCharCode(i.write(i.symmetric,this.sessionKeyAlgorithm))+o.getRandomBytes(o.getKeyLength(this.sessionKeyAlgorithm));this.encrypted=o.cfb.encrypt(o.getPrefixRandom(this.sessionKeyEncryptionAlgorithm),this.sessionKeyEncryptionAlgorithm,r,n,!0)},r.prototype.postCloneTypeFix=function(){this.s2k=n.fromClone(this.s2k)}},{"../crypto":19,"../enums.js":30,"../type/s2k.js":60}],54:[function(t,e){function r(){this.tag=i.packet.symmetricallyEncrypted,this.encrypted=null,this.packets=null}e.exports=r;var n=t("../crypto"),i=t("../enums.js");r.prototype.read=function(t){this.encrypted=t},r.prototype.write=function(){return this.encrypted},r.prototype.decrypt=function(t,e){var r=n.cfb.decrypt(t,e,this.encrypted,!0);this.packets.read(r)},r.prototype.encrypt=function(t,e){var r=this.packets.write();this.encrypted=n.cfb.encrypt(n.getPrefixRandom(t),t,r,e,!0)}},{"../crypto":19,"../enums.js":30}],55:[function(t,e){function r(){this.tag=n.packet.trust}e.exports=r;var n=t("../enums.js");r.prototype.read=function(){}},{"../enums.js":30}],56:[function(t,e){function r(){this.tag=i.packet.userAttribute,this.attributes=[]}var n=(t("../util.js"),t("./packet.js")),i=t("../enums.js");e.exports=r,r.prototype.read=function(t){for(var e=0;e<t.length;){var r=n.readSimpleLength(t.substr(e));e+=r.offset,this.attributes.push(t.substr(e,r.len)),e+=r.len}},r.prototype.write=function(){for(var t="",e=0;e<this.attributes.length;e++)t+=n.writeSimpleLength(this.attributes[e].length),t+=this.attributes[e];return t},r.prototype.equals=function(t){return!!(t&&t instanceof r)&&this.attributes.every(function(e,r){return e===t.attributes[r]})}},{"../enums.js":30,"../util.js":61,"./packet.js":44}],57:[function(t,e){function r(){this.tag=i.packet.userid,this.userid=""}e.exports=r;var n=t("../util.js"),i=t("../enums.js");r.prototype.read=function(t){this.userid=n.decode_utf8(t)},r.prototype.write=function(){return n.encode_utf8(this.userid)}},{"../enums.js":30,"../util.js":61}],58:[function(t,e){function r(){this.bytes=""}e.exports=r;var n=t("../util.js");r.prototype.read=function(t){this.bytes=t.substr(0,8)},r.prototype.write=function(){return this.bytes},r.prototype.toHex=function(){return n.hexstrdump(this.bytes)},r.prototype.equals=function(t){return this.bytes==t.bytes},r.prototype.isNull=function(){return""===this.bytes},e.exports.mapToHex=function(t){return t.toHex()},e.exports.fromClone=function(t){var e=new r;return e.bytes=t.bytes,e}},{"../util.js":61}],59:[function(t,e){function r(){this.data=null}e.exports=r;var n=t("../crypto/public_key/jsbn.js"),i=t("../util.js");r.prototype.read=function(t){var e=t.charCodeAt(0)<<8|t.charCodeAt(1),r=Math.ceil(e/8),n=t.substr(2,r);return this.fromBytes(n),2+r},r.prototype.fromBytes=function(t){this.data=new n(i.hexstrdump(t),16)},r.prototype.toBytes=function(){return this.write().substr(2)},r.prototype.byteLength=function(){return this.toBytes().length},r.prototype.write=function(){return this.data.toMPI()},r.prototype.toBigInteger=function(){return this.data.clone()},r.prototype.fromBigInteger=function(t){this.data=t.clone()},e.exports.fromClone=function(t){t.data.copyTo=n.prototype.copyTo;var e=new n;t.data.copyTo(e);var i=new r;return i.data=e,i}},{"../crypto/public_key/jsbn.js":24,"../util.js":61}],60:[function(t,e){function r(){this.algorithm="sha256",this.type="iterated",this.c=96,this.salt=o.random.getRandomBytes(8)}e.exports=r;var n=t("../enums.js"),i=t("../util.js"),o=t("../crypto");r.prototype.get_count=function(){var t=6;return 16+(15&this.c)<<(this.c>>4)+t},r.prototype.read=function(t){var e=0;switch(this.type=n.read(n.s2k,t.charCodeAt(e++)),this.algorithm=n.read(n.hash,t.charCodeAt(e++)),this.type){case"simple":break;case"salted":this.salt=t.substr(e,8),e+=8;break;case"iterated":this.salt=t.substr(e,8),e+=8,this.c=t.charCodeAt(e++);break;case"gnu":if("GNU"!=t.substr(e,3))throw new Error("Unknown s2k type.");e+=3;var r=1e3+t.charCodeAt(e++);if(1001!=r)throw new Error("Unknown s2k gnu protection mode.");this.type=r;break;default:throw new Error("Unknown s2k type.")}return e},r.prototype.write=function(){var t=String.fromCharCode(n.write(n.s2k,this.type));switch(t+=String.fromCharCode(n.write(n.hash,this.algorithm)),this.type){case"simple":break;case"salted":t+=this.salt;break;case"iterated":t+=this.salt,t+=String.fromCharCode(this.c)}return t},r.prototype.produce_key=function(t,e){function r(e,r){var i=n.write(n.hash,r.algorithm);switch(r.type){case"simple":return o.hash.digest(i,e+t);case"salted":return o.hash.digest(i,e+r.salt+t);case"iterated":var s=[],a=r.get_count();for(data=r.salt+t;s.length*data.length<a;)s.push(data);return s=s.join(""),s.length>a&&(s=s.substr(0,a)),o.hash.digest(i,e+s)}}t=i.encode_utf8(t);for(var s="",a="";s.length<=e;)s+=r(a,this),a+=String.fromCharCode(0);return s.substr(0,e)},e.exports.fromClone=function(t){var e=new r;return this.algorithm=t.algorithm,this.type=t.type,this.c=t.c,this.salt=t.salt,e}},{"../crypto":19,"../enums.js":30,"../util.js":61}],61:[function(t,e){var r=t("./config");e.exports={readNumber:function(t){for(var e=0,r=0;r<t.length;r++)e<<=8,e+=t.charCodeAt(r);return e},writeNumber:function(t,e){for(var r="",n=0;e>n;n++)r+=String.fromCharCode(t>>8*(e-n-1)&255);return r},readDate:function(t){var e=this.readNumber(t),r=new Date;return r.setTime(1e3*e),r},writeDate:function(t){var e=Math.round(t.getTime()/1e3);return this.writeNumber(e,4)},emailRegEx:/^[+a-zA-Z0-9_.-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,6}$/,hexdump:function(t){for(var e,r=[],n=t.length,i=0,o=0;n>i;){for(e=t.charCodeAt(i++).toString(16);e.length<2;)e="0"+e;r.push(" "+e),o++,o%32===0&&r.push("\n           ")}return r.join("")},hexstrdump:function(t){if(null===t)return"";for(var e,r=[],n=t.length,i=0;n>i;){for(e=t.charCodeAt(i++).toString(16);e.length<2;)e="0"+e;r.push(""+e)}return r.join("")},hex2bin:function(t){for(var e="",r=0;r<t.length;r+=2)e+=String.fromCharCode(parseInt(t.substr(r,2),16));return e},hexidump:function(t){for(var e,r=[],n=t.length,i=0;n>i;){for(e=t[i++].toString(16);e.length<2;)e="0"+e;r.push(""+e)}return r.join("")},encode_utf8:function(t){return unescape(encodeURIComponent(t))},decode_utf8:function(t){if("string"!=typeof t)throw new Error('Parameter "utf8" is not of type string');try{return decodeURIComponent(escape(t))}catch(e){return t}},bin2str:function(t){for(var e=[],r=0;r<t.length;r++)e[r]=String.fromCharCode(t[r]);return e.join("")},str2bin:function(t){for(var e=[],r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e},str2Uint8Array:function(t){for(var e=new Uint8Array(t.length),r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e},Uint8Array2str:function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e},calc_checksum:function(t){for(var e={s:0,add:function(t){this.s=(this.s+t)%65536}},r=0;r<t.length;r++)e.add(t.charCodeAt(r));return e.s},print_debug:function(t){r.debug&&void 0},print_debug_hexstr_dump:function(t,e){r.debug&&void(t+=this.hexstrdump(e))},getLeftNBits:function(t,e){var r=e%8;if(0===r)return t.substring(0,e/8);var n=(e-r)/8+1,i=t.substring(0,n);return this.shiftRight(i,8-r)},shiftRight:function(t,e){var r=util.str2bin(t);if(e%8===0)return t;for(var n=r.length-1;n>=0;n--)r[n]>>=e%8,n>0&&(r[n]|=r[n-1]<<8-e%8&255);return util.bin2str(r)},get_hashAlgorithmString:function(t){switch(t){case 1:return"MD5";case 2:return"SHA1";case 3:return"RIPEMD160";case 8:return"SHA256";case 9:return"SHA384";case 10:return"SHA512";case 11:return"SHA224"}return"unknown"}}},{"./config":4}],62:[function(t,e){function r(t){this.worker=new Worker(t||"openpgp.worker.js"),this.worker.onmessage=this.onMessage.bind(this),this.worker.onerror=function(t){throw new Error("Unhandled error in openpgp worker: "+t.message+" ("+t.filename+":"+t.lineno+")")},this.seedRandom(a),this.tasks=[]}var n=t("../crypto"),i=t("../packet"),o=t("../key.js"),s=t("../type/keyid.js"),a=(t("../enums.js"),5e4),u=2e4;r.prototype.onMessage=function(t){var e=t.data;switch(e.event){case"method-return":this.tasks.shift()(e.err?new Error(e.err):null,e.data);break;case"request-seed":this.seedRandom(u);break;default:throw new Error("Unknown Worker Event.")}},r.prototype.seedRandom=function(t){var e=this.getRandomBuffer(t);this.worker.postMessage({event:"seed-random",buf:e})},r.prototype.getRandomBuffer=function(t){if(!t)return null;var e=new Uint8Array(t);return n.random.getRandomValues(e),e},r.prototype.terminate=function(){this.worker.terminate()},r.prototype.encryptMessage=function(t,e,r){t=t.map(function(t){return t.toPacketlist()}),this.worker.postMessage({event:"encrypt-message",keys:t,text:e}),this.tasks.push(r)},r.prototype.signAndEncryptMessage=function(t,e,r,n){t=t.map(function(t){return t.toPacketlist()}),e=e.toPacketlist(),this.worker.postMessage({event:"sign-and-encrypt-message",publicKeys:t,privateKey:e,text:r}),this.tasks.push(n)},r.prototype.decryptMessage=function(t,e,r){t=t.toPacketlist(),this.worker.postMessage({event:"decrypt-message",privateKey:t,message:e}),this.tasks.push(r)},r.prototype.decryptAndVerifyMessage=function(t,e,r,n){t=t.toPacketlist(),e=e.map(function(t){return t.toPacketlist()}),this.worker.postMessage({event:"decrypt-and-verify-message",privateKey:t,publicKeys:e,message:r}),this.tasks.push(function(t,e){e&&(e.signatures=e.signatures.map(function(t){return t.keyid=s.fromClone(t.keyid),t})),n(t,e)})},r.prototype.signClearMessage=function(t,e,r){t=t.map(function(t){return t.toPacketlist()}),this.worker.postMessage({event:"sign-clear-message",privateKeys:t,text:e}),this.tasks.push(r)},r.prototype.verifyClearSignedMessage=function(t,e,r){t=t.map(function(t){return t.toPacketlist()}),this.worker.postMessage({event:"verify-clear-signed-message",publicKeys:t,message:e}),this.tasks.push(function(t,e){e&&(e.signatures=e.signatures.map(function(t){return t.keyid=s.fromClone(t.keyid),t})),r(t,e)})},r.prototype.generateKeyPair=function(t,e){this.worker.postMessage({event:"generate-key-pair",options:t}),this.tasks.push(function(t,r){if(r){var n=i.List.fromStructuredClone(r.key);r.key=new o.Key(n)}e(t,r)})},r.prototype.decryptKey=function(t,e,r){t=t.toPacketlist(),this.worker.postMessage({event:"decrypt-key",privateKey:t,password:e}),this.tasks.push(function(t,e){if(e){var n=i.List.fromStructuredClone(e);e=new o.Key(n)}r(t,e)})},r.prototype.decryptKeyPacket=function(t,e,r,n){t=t.toPacketlist(),this.worker.postMessage({event:"decrypt-key-packet",privateKey:t,keyIds:e,password:r}),this.tasks.push(function(t,e){if(e){var r=i.List.fromStructuredClone(e);e=new o.Key(r)}n(t,e)})},e.exports=r},{"../crypto":19,"../enums.js":30,"../key.js":32,"../packet":40,"../type/keyid.js":58}]},{},[31])(31)}),$(document).ready(function(){getDocumentReadyForUse($("#foki > li.active > a").attr("aria-controls")),$("iframe").iFrameResize({autoResize:!0,heightCalculationMethod:"documentElementScroll"}),botProtection()}),function(t){var e=t("[form]").get(0),r=!window.ActiveXObject&&"ActiveXObject"in window;e&&window.HTMLFormElement&&e.form instanceof HTMLFormElement&&!r||(t.fn.appendField=function(e){if(this.is("form")){!t.isArray(e)&&e.name&&e.value&&(e=[e]);var r=this;return t.each(e,function(e,n){t("<input/>").attr("type","hidden").attr("name",n.name).val(n.value).appendTo(r)}),r}},t("form[id]").submit(function(e){var r=t(this),n=t("[form="+r.attr("id")+"]").serializeArray();r.appendField(n)}).each(function(){var e=this,r=t(e),n=t("[form="+r.attr("id")+"]");n.filter("button, input").filter("[type=reset],[type=submit]").click(function(){var r=this.type.toLowerCase();"reset"===r?(e.reset(),n.each(function(){this.value=this.defaultValue,this.checked=this.defaultChecked}).filter("select").each(function(){t(this).find("option").each(function(){this.selected=this.defaultSelected})})):r.match(/^submit|image$/i)&&t(e).appendField({name:this.name,value:this.value}).submit()})}))}(jQuery),$(document).ready(function(){if(location.href.indexOf("#plugin-modal")>-1&&$("#plugin-modal").modal("show"),$("button").popover(),localStorage){var t=localStorage.getItem("theme");null!=t&&(3!=(t.match(/,/g)||[]).length?localStorage.removeItem("theme"):(t=t.split(","),$("#theme").attr("href","/css/theme.css.php?r="+t[0]+"&g="+t[1]+"&b="+t[2]+"&a="+t[3]))),localStorage.getItem("pers")&&!isUseOnce()&&setSettings()}$("button").on("shown.bs.popover",function(){$("#color-chooser a").click(function(){var t=$(this).attr("data-rgba");localStorage&&(localStorage.setItem("theme",t),location.href="/")})}),$("#mobileFoki").change(function(){var t=$("#mobileFoki > option:selected").val();"angepasst"==t?window.location="./settings/":window.location="./?focus="+t}),$("fieldset#foki.mobile").length&&$("fieldset#foki.mobile label#anpassen-label").click(function(){window.location="./settings/"}),$("#anpassen-label").click(function(){window.location="./settings/"})}),function(t){var e=t("[form]").get(0),r=!window.ActiveXObject&&"ActiveXObject"in window;e&&window.HTMLFormElement&&e.form instanceof HTMLFormElement&&!r||(t.fn.appendField=function(e){if(this.is("form")){!t.isArray(e)&&e.name&&e.value&&(e=[e]);var r=this;return t.each(e,function(e,n){t("<input/>").attr("type","hidden").attr("name",n.name).val(n.value).appendTo(r)}),r}},t("form[id]").submit(function(e){var r=t(this),n=t("[form="+r.attr("id")+"]").serializeArray();r.appendField(n)}).each(function(){var e=this,r=t(e),n=t("[form="+r.attr("id")+"]");n.filter("button, input").filter("[type=reset],[type=submit]").click(function(){var r=this.type.toLowerCase();"reset"===r?(e.reset(),n.each(function(){this.value=this.defaultValue,this.checked=this.defaultChecked}).filter("select").each(function(){t(this).find("option").each(function(){this.selected=this.defaultSelected})})):r.match(/^submit|image$/i)&&t(e).appendField({name:this.name,value:this.value}).submit()})}))}(jQuery);var isOpera=!!window.opr&&!!opr.addons||!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0,isFirefox="undefined"!=typeof InstallTrigger,isSafari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,isIE=!!document.documentMode,isEdge=!isIE&&!!window.StyleMedia,isChrome=!!window.chrome&&!!window.chrome.webstore,isBlink=(isChrome||isOpera)&&!!window.CSS;$(document).ready(function(){tickOptions(),localStorage&&($("#save").removeClass("hidden"),localStorage.getItem("pers")&&$("#reset").removeClass("hidden"),$("#save").click(function(){resetOptions(),localStorage.setItem("pers",!0),
$("input[type=checkbox]:checked, input[type=hidden]").each(function(t){localStorage.setItem($(this).attr("name"),$(this).val())}),$("select").each(function(t){localStorage.setItem($(this).attr("name"),$(this).val())}),document.location.href=$("#save").attr("data-href")}),$("#reset").click(function(){resetOptions(),document.location.href=$("#save").attr("data-href")})),$(".checker").click(function(){var t="."+$(this).attr("data-type");$(t+" input:checked").length?$(t+" input").prop("checked",!1):$(t+" input").prop("checked",!0)}),$(".allUnchecker").click(function(){$(".focusCheckbox").prop("checked",!1)}),$("#unten").click(function(){$("#settings-form").append('<input type="hidden" name="usage" value="once">'),isEnglish()?alert("On the following startpage your settings are saved one-time. They will be lost after your first search. Though if you want to save them, you can create a bookmark for the generated startpage."):alert("Auf der folgenden Startseite sind Ihre Einstellungen nun einmalig gespeichert. Nach Ihrer ersten Suche sind diese wieder verloren. Wenn Sie diese speichern möchten, können Sie sich allerdings ein Lesezeichnen für die generierte Startseite einrichten.")}),$("#plugin").click(function(){$("form").attr("action",$("#save").attr("data-href")+"#plugin-modal"),isEnglish()?alert("Your browser plugin with personal settings was generated. Please follow the instructions on the following page to install it. Notice that beforehand you might have to delete a former MetaGer plugin."):alert("Ihr Browserplugin mit den persönlichen Sucheinstellungen wurde generiert. Folgen Sie bitte der Anleitung auf der folgenden Seite um es zu installieren. Beachten Sie: Zuvor sollten Sie ein eventuell bereits installiertes MetaGer-Plugin entfernen.")})}),!function(t){"use strict";function e(e,r,n){"addEventListener"in t?e.addEventListener(r,n,!1):"attachEvent"in t&&e.attachEvent("on"+r,n)}function r(e,r,n){"removeEventListener"in t?e.removeEventListener(r,n,!1):"detachEvent"in t&&e.detachEvent("on"+r,n)}function n(){var e,r=["moz","webkit","o","ms"];for(e=0;e<r.length&&!M;e+=1)M=t[r[e]+"RequestAnimationFrame"];M||s("setup","RequestAnimationFrame not supported")}function i(e){var r="Host page: "+e;return t.top!==t.self&&(r=t.parentIFrame&&t.parentIFrame.getId?t.parentIFrame.getId()+": "+e:"Nested host page: "+e),r}function o(t){return R[t]?R[t].log:O}function s(t,e){c("log",t,e,o(t))}function a(t,e){c("info",t,e,o(t))}function u(t,e){c("warn",t,e,!0)}function c(e,r,n,i){!0===i&&"object"==typeof t.console&&void 0}function l(n){function i(){function t(){y(V),p(G)}c("Height"),c("Width"),v(t,V,"init")}function o(){var t=W.substr(L).split(":");return{iframe:R[t[0]].iframe,id:t[0],height:t[1],width:t[2],type:t[3]}}function c(t){var e=Number(R[G]["max"+t]),r=Number(R[G]["min"+t]),n=t.toLowerCase(),i=Number(V[n]);s(G,"Checking "+n+" is in range "+r+"-"+e),r>i&&(i=r,s(G,"Set "+n+" to min value")),i>e&&(i=e,s(G,"Set "+n+" to max value")),V[n]=""+i}function l(){function t(){function t(){var t=0,n=!1;for(s(G,"Checking connection is from allowed list of origins: "+r);t<r.length;t++)if(r[t]===e){n=!0;break}return n}function n(){var t=R[G].remoteHost;return s(G,"Checking connection is from: "+t),e===t}return r.constructor===Array?t():n()}var e=n.origin,r=R[G].checkOrigin;if(r&&""+e!="null"&&!t())throw new Error("Unexpected message received from: "+e+" for "+V.iframe.id+". Message was: "+n.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}function k(){return D===(""+W).substr(0,L)&&W.substr(L).split(":")[0]in R}function S(){var t=V.type in{"true":1,"false":1,undefined:1};return t&&s(G,"Ignoring init message from meta parent page"),t}function x(t){return W.substr(W.indexOf(":")+P+t)}function A(t){s(G,"MessageCallback passed: {iframe: "+V.iframe.id+", message: "+t+"}"),$("messageCallback",{iframe:V.iframe,message:JSON.parse(t)}),s(G,"--")}function T(){var e=document.body.getBoundingClientRect(),r=V.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:r.height,iframeWidth:r.width,clientHeight:Math.max(document.documentElement.clientHeight,t.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,t.innerWidth||0),offsetTop:parseInt(r.top-e.top,10),offsetLeft:parseInt(r.left-e.left,10),scrollTop:t.pageYOffset,scrollLeft:t.pageXOffset})}function E(t,e){function r(){b("Send Page Info","pageInfo:"+T(),t,e)}C(r,32)}function I(){function n(e,r){function n(){R[a]?E(R[a].iframe,a):i()}["scroll","resize"].forEach(function(i){s(a,e+i+" listener for sendPageInfo"),r(t,i,n)})}function i(){n("Remove ",r)}function o(){n("Add ",e)}var a=G;o(),R[a].stopPageInfo=i}function j(){R[G]&&R[G].stopPageInfo&&(R[G].stopPageInfo(),delete R[G].stopPageInfo)}function _(){var t=!0;return null===V.iframe&&(u(G,"IFrame ("+V.id+") not found"),t=!1),t}function O(t){var e=t.getBoundingClientRect();return f(G),{x:Math.floor(Number(e.left)+Number(K.x)),y:Math.floor(Number(e.top)+Number(K.y))}}function N(e){function r(){K=a,B(),s(G,"--")}function n(){return{x:Number(V.width)+o.x,y:Number(V.height)+o.y}}function i(){t.parentIFrame?t.parentIFrame["scrollTo"+(e?"Offset":"")](a.x,a.y):u(G,"Unable to scroll to requested position, window.parentIFrame not found")}var o=e?O(V.iframe):{x:0,y:0},a=n();s(G,"Reposition requested from iFrame (offset x:"+o.x+" y:"+o.y+")"),t.top!==t.self?i():r()}function B(){!1!==$("scrollCallback",K)?p(G):g()}function M(e){function r(){var t=O(a);s(G,"Moving to in page link (#"+i+") at x: "+t.x+" y: "+t.y),K={x:t.x,y:t.y},B(),s(G,"--")}function n(){t.parentIFrame?t.parentIFrame.moveToAnchor(i):s(G,"In page link #"+i+" not found and window.parentIFrame not found")}var i=e.split("#")[1]||"",o=decodeURIComponent(i),a=document.getElementById(o)||document.getElementsByName(o)[0];a?r():t.top!==t.self?n():s(G,"In page link #"+i+" not found")}function $(t,e){return h(G,t,e)}function H(){switch(R[G].firstRun&&U(),V.type){case"close":d(V.iframe);break;case"message":A(x(6));break;case"scrollTo":N(!1);break;case"scrollToOffset":N(!0);break;case"pageInfo":E(R[G].iframe,G),I();break;case"pageInfoStop":j();break;case"inPageLink":M(x(9));break;case"reset":m(V);break;case"init":i(),$("initCallback",V.iframe),$("resizedCallback",V);break;default:i(),$("resizedCallback",V)}}function F(t){var e=!0;return R[t]||(e=!1,u(V.type+" No settings for "+t+". Message was: "+W)),e}function q(){for(var t in R)b("iFrame requested init",w(t),document.getElementById(t),t)}function U(){R[G].firstRun=!1}var W=n.data,V={},G=null;"[iFrameResizerChild]Ready"===W?q():k()?(V=o(),G=z=V.id,!S()&&F(G)&&(s(G,"Received: "+W),_()&&l()&&H())):a(G,"Ignored: "+W)}function h(t,e,r){var n=null,i=null;if(R[t]){if(n=R[t][e],"function"!=typeof n)throw new TypeError(e+" on iFrame["+t+"] is not a function");i=n(r)}return i}function d(t){var e=t.id;s(e,"Removing iFrame: "+e),t.parentNode.removeChild(t),h(e,"closedCallback",e),s(e,"--"),delete R[e]}function f(e){null===K&&(K={x:void 0!==t.pageXOffset?t.pageXOffset:document.documentElement.scrollLeft,y:void 0!==t.pageYOffset?t.pageYOffset:document.documentElement.scrollTop},s(e,"Get page position: "+K.x+","+K.y))}function p(e){null!==K&&(t.scrollTo(K.x,K.y),s(e,"Set page position: "+K.x+","+K.y),g())}function g(){K=null}function m(t){function e(){y(t),b("reset","reset",t.iframe,t.id)}s(t.id,"Size reset requested by "+("init"===t.type?"host page":"iFrame")),f(t.id),v(e,t,"reset")}function y(t){function e(e){t.iframe.style[e]=t[e]+"px",s(t.id,"IFrame ("+i+") "+e+" set to "+t[e]+"px")}function r(e){N||"0"!==t[e]||(N=!0,s(i,"Hidden iFrame detected, creating visibility listener"),S())}function n(t){e(t),r(t)}var i=t.iframe.id;R[i]&&(R[i].sizeHeight&&n("height"),R[i].sizeWidth&&n("width"))}function v(t,e,r){r!==e.type&&M?(s(e.id,"Requesting animation frame"),M(t)):t()}function b(t,e,r,n){function i(){var i=R[n].targetOrigin;s(n,"["+t+"] Sending msg to iframe["+n+"] ("+e+") targetOrigin: "+i),r.contentWindow.postMessage(D+e,i)}function o(){a(n,"["+t+"] IFrame("+n+") not found"),R[n]&&delete R[n]}function u(){r&&"contentWindow"in r&&null!==r.contentWindow?i():o()}n=n||r.id,R[n]&&u()}function w(t){return t+":"+R[t].bodyMarginV1+":"+R[t].sizeWidth+":"+R[t].log+":"+R[t].interval+":"+R[t].enablePublicMethods+":"+R[t].autoResize+":"+R[t].bodyMargin+":"+R[t].heightCalculationMethod+":"+R[t].bodyBackground+":"+R[t].bodyPadding+":"+R[t].tolerance+":"+R[t].inPageLinks+":"+R[t].resizeFrom+":"+R[t].widthCalculationMethod}function k(t,r){function n(){function e(e){1/0!==R[C][e]&&0!==R[C][e]&&(t.style[e]=R[C][e]+"px",s(C,"Set "+e+" = "+R[C][e]+"px"))}function r(t){if(R[C]["min"+t]>R[C]["max"+t])throw new Error("Value for min"+t+" can not be greater than max"+t)}r("Height"),r("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}function i(){var t=r&&r.id||F.id+_++;return null!==document.getElementById(t)&&(t+=_++),t}function o(e){return z=e,""===e&&(t.id=e=i(),O=(r||{}).log,z=e,s(e,"Added missing iframe ID: "+e+" ("+t.src+")")),e}function a(){s(C,"IFrame scrolling "+(R[C].scrolling?"enabled":"disabled")+" for "+C),t.style.overflow=!1===R[C].scrolling?"hidden":"auto",t.scrolling=!1===R[C].scrolling?"no":"yes"}function c(){("number"==typeof R[C].bodyMargin||"0"===R[C].bodyMargin)&&(R[C].bodyMarginV1=R[C].bodyMargin,R[C].bodyMargin=""+R[C].bodyMargin+"px")}function l(){var e=R[C].firstRun,r=R[C].heightCalculationMethod in $;!e&&r&&m({iframe:t,height:0,width:0,type:"init"})}function h(){Function.prototype.bind&&(R[C].iframe.iFrameResizer={close:d.bind(null,R[C].iframe),resize:b.bind(null,"Window resize","resize",R[C].iframe),moveToAnchor:function(t){b("Move to anchor","moveToAnchor:"+t,R[C].iframe,C)},sendMessage:function(t){t=JSON.stringify(t),b("Send Message","message:"+t,R[C].iframe,C)}})}function f(r){function n(){b("iFrame.onload",r,t),l()}e(t,"load",n),b("init",r,t)}function p(t){if("object"!=typeof t)throw new TypeError("Options is not an object")}function g(t){for(var e in F)F.hasOwnProperty(e)&&(R[C][e]=t.hasOwnProperty(e)?t[e]:F[e])}function y(t){return""===t||"file://"===t?"*":t}function v(e){e=e||{},R[C]={firstRun:!0,iframe:t,remoteHost:t.src.split("/").slice(0,3).join("/")},p(e),g(e),R[C].targetOrigin=!0===R[C].checkOrigin?y(R[C].remoteHost):"*"}function k(){return C in R&&"iFrameResizer"in t}var C=o(t.id);k()?u(C,"Ignored iFrame, already setup."):(v(r),a(),n(),c(),f(w(C)),h())}function C(t,e){null===H&&(H=setTimeout(function(){H=null,t()},e))}function S(){function e(){function t(t){function e(e){return"0px"===R[t].iframe.style[e]}function r(t){return null!==t.offsetParent}r(R[t].iframe)&&(e("height")||e("width"))&&b("Visibility change","resize",R[t].iframe,t)}for(var e in R)t(e)}function r(t){s("window","Mutation observed: "+t[0].target+" "+t[0].type),C(e,16)}function n(){var t=document.querySelector("body"),e={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0},n=new i(r);n.observe(t,e)}var i=t.MutationObserver||t.WebKitMutationObserver;i&&n()}function x(t){function e(){T("Window "+t,"resize")}s("window","Trigger event: "+t),C(e,16)}function A(){function t(){T("Tab Visable","resize")}"hidden"!==document.visibilityState&&(s("document","Trigger event: Visiblity change"),C(t,16))}function T(t,e){function r(t){return"parent"===R[t].resizeFrom&&R[t].autoResize&&!R[t].firstRun}for(var n in R)r(n)&&b(t,e,document.getElementById(n),n)}function E(){e(t,"message",l),e(t,"resize",function(){x("resize")}),e(document,"visibilitychange",A),e(document,"-webkit-visibilitychange",A),e(t,"focusin",function(){x("focus")}),e(t,"focus",function(){x("focus")})}function I(){function t(t,r){function n(){if(!r.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==r.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+r.tagName+">")}r&&(n(),k(r,t),e.push(r))}var e;return n(),E(),function(r,n){switch(e=[],typeof n){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(n||"iframe"),t.bind(void 0,r));break;case"object":t(r,n);break;default:throw new TypeError("Unexpected data type ("+typeof n+")")}return e}}function j(t){t.fn?t.fn.iFrameResize=function(t){function e(e,r){k(r,t)}return this.filter("iframe").each(e).end()}:a("","Unable to bind to jQuery, it is not fully loaded.")}var _=0,O=!1,N=!1,B="message",P=B.length,D="[iFrameSizer]",L=D.length,K=null,M=t.requestAnimationFrame,$={max:1,scroll:1,bodyScroll:1,documentElementScroll:1},R={},H=null,z="Host Page",F={autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,tolerance:0,widthCalculationMethod:"scroll",closedCallback:function(){},initCallback:function(){},messageCallback:function(){u("MessageCallback function not defined")},resizedCallback:function(){},scrollCallback:function(){return!0}};t.jQuery&&j(jQuery),"function"==typeof define&&define.amd?define([],I):"object"==typeof module&&"object"==typeof module.exports?module.exports=I():t.iFrameResize=t.iFrameResize||I()}(window||{});