diff --git a/dist/bundle.js b/dist/bundle.js index d6d507f..9d92116 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -1,11 +1,11 @@ -webpackJsonp([0],[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n(1);var i=n(5),o=(r(i),n(7)),u=r(o),s=n(9),a=r(s),f=n(13),c=r(f);u["default"].attach(document.body);var l=new a["default"];l.push(c["default"]).setDefault("/").init()},function(t,e){},,function(t,e){"use strict";t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e=0&&w.splice(e,1)}function s(t){var e=document.createElement("style");return e.type="text/css",o(t,e),e}function a(t){var e=document.createElement("link");return e.rel="stylesheet",o(t,e),e}function f(t,e){var n,r,i;if(e.singleton){var o=_++;n=v||(v=s(e)),r=c.bind(null,n,o,!1),i=c.bind(null,n,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=a(e),r=h.bind(null,n),i=function(){u(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(e),r=l.bind(null,n),i=function(){u(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function c(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),u=t.childNodes;u[e]&&t.removeChild(u[e]),u.length?t.insertBefore(o,u[e]):t.appendChild(o)}}function l(t,e){var n=e.css,r=e.media;e.sourceMap;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function h(t,e){var n=e.css,r=(e.media,e.sourceMap);r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=t.href;t.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}var p={},d=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},g=d(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),y=d(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,_=0,w=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=g()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=i(t);return r(n,e),function(t){for(var o=[],u=0;u0?setTimeout(function(){t.parentNode.removeChild(t)},e._options.leaveTimeout):t.parentNode.removeChild(t)}();var o=document.createElement("div");n.className&&o.classList.add(n.className),i&&o.classList.add(e._options.enter),o.innerHTML=r,e._$contaienr.appendChild(o),i&&o.classList.add(e._options.enterActive),e._options.enterTimeout>0?setTimeout(function(){o.classList.remove(e._options.enter),o.classList.remove(e._options.enterActive)},e._options.enterTimeout):(o.classList.remove(e._options.enter),o.classList.remove(e._options.enterActive)),location.hash="#"+t,"function"!=typeof n.bind||n.__isBind||(n.bind(),n.__isBind=!0)}(),this}},{key:"_getRoute",value:function(t){for(var e=0,n=this._routes.length;n>e;e++){var r=this._routes[e],i=[],o=(0,a["default"])(r.url,i),u=o.exec(t);if(u){r.params={};for(var s=0,f=i.length;f>s;s++){var c=i[s],l=c.name;r.params[l]=u[s+1]}return r}}return null}}]),t}();e["default"]=l},function(t,e,n){"use strict";function r(t){for(var e,n=[],r=0,i=0,o="";null!=(e=v.exec(t));){var u=e[0],a=e[1],f=e.index;if(o+=t.slice(i,f),i=f+u.length,a)o+=a[1];else{o&&(n.push(o),o="");var c=e[2],l=e[3],h=e[4],p=e[5],d=e[6],g=e[7],y="+"===d||"*"===d,_="?"===d||"*"===d,w=c||"/",b=h||p||(g?".*":"[^"+w+"]+?");n.push({name:l||r++,prefix:c||"",delimiter:w,optional:_,repeat:y,pattern:s(b)})}}return ie;e++)0===(3&e)&&(t=4294967296*Math.random()),r[e]=t>>>((3&e)<<3)&255;return r},"undefined"!=typeof console&&console.warn&&console.warn("[SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random()")}}function s(){try{var t=n(19).randomBytes;d=h=t&&function(){return t(16)},h()}catch(e){}}function a(t,e,n){var r=e&&n||0,i=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){16>i&&(e[r+i++]=_[t])});16>i;)e[r+i++]=0;return e}function f(t,e){var n=e||0,r=v;return r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]}function c(t,e,n){var r=e&&n||0,i=e||[];t=t||{};var o=null!=t.clockseq?t.clockseq:E,u=null!=t.msecs?t.msecs:(new Date).getTime(),s=null!=t.nsecs?t.nsecs:B+1,a=u-A+(s-B)/1e4;if(0>a&&null==t.clockseq&&(o=o+1&16383),(0>a||u>A)&&null==t.nsecs&&(s=0),s>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");A=u,B=s,E=o,u+=122192928e5;var c=(1e4*(268435455&u)+s)%4294967296;i[r++]=c>>>24&255,i[r++]=c>>>16&255,i[r++]=c>>>8&255,i[r++]=255&c;var l=u/4294967296*1e4&268435455;i[r++]=l>>>8&255,i[r++]=255&l,i[r++]=l>>>24&15|16,i[r++]=l>>>16&255,i[r++]=o>>>8|128,i[r++]=255&o;for(var h=t.node||m,p=0;6>p;p++)i[r+p]=h[p];return e?e:f(i)}function l(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"===t?new y(16):null,t=null),t=t||{};var i=t.random||(t.rng||h)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e)for(var o=0;16>o;o++)e[r+o]=i[o];return e||f(i)}var h,p,d,g;o?u():s();for(var y="function"==typeof i?i:Array,v=[],_={},w=0;256>w;w++)v[w]=(w+256).toString(16).substr(1),_[v[w]]=w;var b=h(),m=[1|b[0],b[1],b[2],b[3],b[4],b[5]],E=16383&(b[6]<<8|b[7]),A=0,B=0,S=l;S.v1=c,S.v4=l,S.parse=a,S.unparse=f,S.BufferClass=y,S._rng=h,S._mathRNG=p,S._nodeRNG=d,S._whatwgRNG=g,"undefined"!=typeof t&&t.exports?t.exports=S:(r=function(){return S}.call(e,n,e,t),!(void 0!==r&&(t.exports=r)))}("undefined"!=typeof window?window:null)}).call(e,n(15).Buffer)},function(t,e,n){(function(t,r){/*! +webpackJsonp([0],[function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}n(1);var o=n(5),a=i(o);n(7);var u=n(8),s=i(u),c=n(10),f=i(c),l=n(14),h=i(l),p=n(17),d=i(p),_=n(15),v=(r(_),n(18)),g=i(v),y=n(48),w=i(y);s["default"].attach(document.body),a["default"].weui.loading("加载中..."),h["default"].read().then(function(t){a["default"].weui.hideLoading();for(var e in t)d["default"].setData(e,t[e]);var n=new f["default"];n.push(g["default"]).push(w["default"]).setDefault("/").init()})},function(t,e){},,function(t,e){"use strict";t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e=0&&w.splice(e,1)}function u(t){var e=document.createElement("style");return e.type="text/css",o(t,e),e}function s(t){var e=document.createElement("link");return e.rel="stylesheet",o(t,e),e}function c(t,e){var n,r,i;if(e.singleton){var o=y++;n=g||(g=u(e)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(e),r=h.bind(null,n),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=u(e),r=l.bind(null,n),i=function(){a(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function f(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=m(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function l(t,e){var n=e.css,r=e.media;e.sourceMap;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function h(t,e){var n=e.css,r=(e.media,e.sourceMap);r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=t.href;t.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}var p={},d=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},_=d(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=d(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,y=0,w=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=_()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=i(t);return r(n,e),function(t){for(var o=[],a=0;a0?setTimeout(function(){t.parentNode.removeChild(t)},e._options.leaveTimeout):t.parentNode.removeChild(t)}();var o=document.createElement("div");n.className&&o.classList.add(n.className),i&&o.classList.add(e._options.enter),o.innerHTML=r,e._$contaienr.appendChild(o),i&&o.classList.add(e._options.enterActive),e._options.enterTimeout>0?setTimeout(function(){o.classList.remove(e._options.enter),o.classList.remove(e._options.enterActive)},e._options.enterTimeout):(o.classList.remove(e._options.enter),o.classList.remove(e._options.enterActive)),location.hash="#"+t,"function"!=typeof n.bind||n.__isBind||(n.bind(),n.__isBind=!0)}(),this}},{key:"_getRoute",value:function(t){for(var e=0,n=this._routes.length;n>e;e++){var r=this._routes[e],i=[],o=(0,s["default"])(r.url,i),a=o.exec(t);if(a){r.params={};for(var u=0,c=i.length;c>u;u++){var f=i[u],l=f.name;r.params[l]=a[u+1]}return r}}return null}}]),t}();e["default"]=l},function(t,e,n){"use strict";function r(t){for(var e,n=[],r=0,i=0,o="";null!=(e=g.exec(t));){var a=e[0],s=e[1],c=e.index;if(o+=t.slice(i,c),i=c+a.length,s)o+=s[1];else{o&&(n.push(o),o="");var f=e[2],l=e[3],h=e[4],p=e[5],d=e[6],_=e[7],v="+"===d||"*"===d,y="?"===d||"*"===d,w=f||"/",m=h||p||(_?".*":"[^"+w+"]+?");n.push({name:l||r++,prefix:f||"",delimiter:w,optional:y,repeat:v,pattern:u(m)})}}return it?"0"+t:t}var e=new Date;return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())+"T"+t(e.getHours())+":"+t(e.getMinutes())+":"+t(e.getSeconds())}function o(t,e){var n=t.indexOf(e);return-1!=n&&t.splice(n,1),t}Object.defineProperty(e,"__esModule",{value:!0}),e.debug=r,e.getLocalISOString=i,e.removeFromArray=o},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={TODOS:"todos"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),o=r(i),a={};e["default"]={setData:function(t,e){return a[t]=e,o["default"].write(a),this},getData:function(t){var e=arguments.length<=1||void 0===arguments[1]?null:arguments[1];return a[t]||e}}},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),a=i(o);n(7);var u=n(19),s=i(u),c=n(43),f=i(c),l=n(14),h=i(l),p=n(17),d=i(p),_=n(15),v=r(_),g=n(16),y=i(g),w=n(44),m=i(w),b=n(46),E=i(b),S=n(47),A=i(S);e["default"]={url:"/",render:function(){var t=d["default"].getData(y["default"].TODOS,[]);return f["default"].compile(E["default"])({todos:t,styles:m["default"],DEBUG:!1})},bind:function(){function t(){var t=d["default"].getData(y["default"].TODOS,[]),e=f["default"].compile(A["default"])({todos:t,styles:m["default"]});(0,a["default"])(".weui_cell:not(:first-child)").remove(),(0,a["default"])("#todos").append(e)}(0,a["default"])("#container").on("keyup","#todo",function(e){if(13===e.keyCode){v.debug("enter");var n=(0,a["default"])(this).val(),r=d["default"].getData(y["default"].TODOS,[]);if(!n)return;r.unshift({id:s["default"].v4(),title:n,status:0,createTime:v.getLocalISOString(),finishTime:v.getLocalISOString(),remark:""}),d["default"].setData(y["default"].TODOS,r),t(),(0,a["default"])(this).val("")}}).on("change","label input[type=checkbox]",function(){var e=(0,a["default"])(this).is(":checked"),n=(0,a["default"])(this).data("id");v.debug("status change",n,e);var r=d["default"].getData(y["default"].TODOS,[]);r=r.map(function(t){return t.id==n&&(t.status=e?1:0),t}),d["default"].setData(y["default"].TODOS,r),t()}).on("click","#deleteAll",function(){a["default"].weui.confirm("确定要清空吗?",function(){localStorage.clear(h["default"].TODOS),location.reload()},function(){})}),(0,a["default"])("#todo").focus()}}},function(t,e,n){var r;(function(i){"use strict";!function(o){function a(){var t=o.crypto||o.msCrypto;if(!h&&t&&t.getRandomValues)try{var e=new Uint8Array(16);_=h=function(){return t.getRandomValues(e),e},h()}catch(n){}if(!h){var r=new Array(16);p=h=function(){for(var t,e=0;16>e;e++)0===(3&e)&&(t=4294967296*Math.random()),r[e]=t>>>((3&e)<<3)&255;return r},"undefined"!=typeof console&&console.warn&&console.warn("[SECURITY] node-uuid: crypto not usable, falling back to insecure Math.random()")}}function u(){try{var t=n(24).randomBytes;d=h=t&&function(){return t(16)},h()}catch(e){}}function s(t,e,n){var r=e&&n||0,i=0;for(e=e||[],t.toLowerCase().replace(/[0-9a-f]{2}/g,function(t){16>i&&(e[r+i++]=y[t])});16>i;)e[r+i++]=0;return e}function c(t,e){var n=e||0,r=g;return r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]}function f(t,e,n){var r=e&&n||0,i=e||[];t=t||{};var o=null!=t.clockseq?t.clockseq:E,a=null!=t.msecs?t.msecs:(new Date).getTime(),u=null!=t.nsecs?t.nsecs:A+1,s=a-S+(u-A)/1e4;if(0>s&&null==t.clockseq&&(o=o+1&16383),(0>s||a>S)&&null==t.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");S=a,A=u,E=o,a+=122192928e5;var f=(1e4*(268435455&a)+u)%4294967296;i[r++]=f>>>24&255,i[r++]=f>>>16&255,i[r++]=f>>>8&255,i[r++]=255&f;var l=a/4294967296*1e4&268435455;i[r++]=l>>>8&255,i[r++]=255&l,i[r++]=l>>>24&15|16,i[r++]=l>>>16&255,i[r++]=o>>>8|128,i[r++]=255&o;for(var h=t.node||b,p=0;6>p;p++)i[r+p]=h[p];return e?e:c(i)}function l(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"===t?new v(16):null,t=null),t=t||{};var i=t.random||(t.rng||h)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e)for(var o=0;16>o;o++)e[r+o]=i[o];return e||c(i)}var h,p,d,_;o?a():u();for(var v="function"==typeof i?i:Array,g=[],y={},w=0;256>w;w++)g[w]=(w+256).toString(16).substr(1),y[g[w]]=w;var m=h(),b=[1|m[0],m[1],m[2],m[3],m[4],m[5]],E=16383&(m[6]<<8|m[7]),S=0,A=0,B=l;B.v1=f,B.v4=l,B.parse=s,B.unparse=c,B.BufferClass=v,B._rng=h,B._mathRNG=p,B._nodeRNG=d,B._whatwgRNG=_,"undefined"!=typeof t&&t.exports?t.exports=B:(r=function(){return B}.call(e,n,e,t),!(void 0!==r&&(t.exports=r)))}("undefined"!=typeof window?window:null)}).call(e,n(20).Buffer)},function(t,e,n){(function(t,r){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -"use strict";function i(){function t(){}try{var e=new Uint8Array(1);return e.foo=function(){return 42},e.constructor=t,42===e.foo()&&e.constructor===t&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(n){return!1}}function o(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function t(e){return this instanceof t?(t.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof e?u(this,e):"string"==typeof e?s(this,e,arguments.length>1?arguments[1]:"utf8"):a(this,e)):arguments.length>1?new t(e,arguments[1]):new t(e)}function u(e,n){if(e=g(e,0>n?0:0|y(n)),!t.TYPED_ARRAY_SUPPORT)for(var r=0;n>r;r++)e[r]=0;return e}function s(t,e,n){"string"==typeof n&&""!==n||(n="utf8");var r=0|_(e,n);return t=g(t,r),t.write(e,n),t}function a(e,n){if(t.isBuffer(n))return f(e,n);if(Z(n))return c(e,n);if(null==n)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(n.buffer instanceof ArrayBuffer)return l(e,n);if(n instanceof ArrayBuffer)return h(e,n)}return n.length?p(e,n):d(e,n)}function f(t,e){var n=0|y(e.length);return t=g(t,n),e.copy(t,0,0,n),t}function c(t,e){var n=0|y(e.length);t=g(t,n);for(var r=0;n>r;r+=1)t[r]=255&e[r];return t}function l(t,e){var n=0|y(e.length);t=g(t,n);for(var r=0;n>r;r+=1)t[r]=255&e[r];return t}function h(e,n){return t.TYPED_ARRAY_SUPPORT?(n.byteLength,e=t._augment(new Uint8Array(n))):e=l(e,new Uint8Array(n)),e}function p(t,e){var n=0|y(e.length);t=g(t,n);for(var r=0;n>r;r+=1)t[r]=255&e[r];return t}function d(t,e){var n,r=0;"Buffer"===e.type&&Z(e.data)&&(n=e.data,r=0|y(n.length)),t=g(t,r);for(var i=0;r>i;i+=1)t[i]=255&n[i];return t}function g(e,n){t.TYPED_ARRAY_SUPPORT?(e=t._augment(new Uint8Array(n)),e.__proto__=t.prototype):(e.length=n,e._isBuffer=!0);var r=0!==n&&n<=t.poolSize>>>1;return r&&(e.parent=Q),e}function y(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function v(e,n){if(!(this instanceof v))return new v(e,n);var r=new t(e,n);return delete r.parent,r}function _(t,e){"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(t).length;default:if(r)return F(t).length;e=(""+e).toLowerCase(),r=!0}}function w(t,e,n){var r=!1;if(e=0|e,n=void 0===n||n===1/0?this.length:0|n,t||(t="utf8"),0>e&&(e=0),n>this.length&&(n=this.length),e>=n)return"";for(;;)switch(t){case"hex":return O(this,e,n);case"utf8":case"utf-8":return I(this,e,n);case"ascii":return T(this,e,n);case"binary":return U(this,e,n);case"base64":return x(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new Error("Invalid hex string");r>o/2&&(r=o/2);for(var u=0;r>u;u++){var s=parseInt(e.substr(2*u,2),16);if(isNaN(s))throw new Error("Invalid hex string");t[n+u]=s}return u}function m(t,e,n,r){return G(F(e,t.length-n),t,n,r)}function E(t,e,n,r){return G(H(e),t,n,r)}function A(t,e,n,r){return E(t,e,n,r)}function B(t,e,n,r){return G(q(e),t,n,r)}function S(t,e,n,r){return G(J(e,t.length-n),t,n,r)}function x(t,e,n){return 0===e&&n===t.length?V.fromByteArray(t):V.fromByteArray(t.slice(e,n))}function I(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;n>i;){var o=t[i],u=null,s=o>239?4:o>223?3:o>191?2:1;if(n>=i+s){var a,f,c,l;switch(s){case 1:128>o&&(u=o);break;case 2:a=t[i+1],128===(192&a)&&(l=(31&o)<<6|63&a,l>127&&(u=l));break;case 3:a=t[i+1],f=t[i+2],128===(192&a)&&128===(192&f)&&(l=(15&o)<<12|(63&a)<<6|63&f,l>2047&&(55296>l||l>57343)&&(u=l));break;case 4:a=t[i+1],f=t[i+2],c=t[i+3],128===(192&a)&&128===(192&f)&&128===(192&c)&&(l=(15&o)<<18|(63&a)<<12|(63&f)<<6|63&c,l>65535&&1114112>l&&(u=l))}}null===u?(u=65533,s=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=s}return R(r)}function R(t){var e=t.length;if(X>=e)return String.fromCharCode.apply(String,t);for(var n="",r=0;e>r;)n+=String.fromCharCode.apply(String,t.slice(r,r+=X));return n}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;n>i;i++)r+=String.fromCharCode(127&t[i]);return r}function U(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;n>i;i++)r+=String.fromCharCode(t[i]);return r}function O(t,e,n){var r=t.length;(!e||0>e)&&(e=0),(!n||0>n||n>r)&&(n=r);for(var i="",o=e;n>o;o++)i+=z(t[o]);return i}function L(t,e,n){for(var r=t.slice(e,n),i="",o=0;ot)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function P(e,n,r,i,o,u){if(!t.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(n>o||u>n)throw new RangeError("value is out of bounds");if(r+i>e.length)throw new RangeError("index out of range")}function $(t,e,n,r){0>e&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);o>i;i++)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function D(t,e,n,r){0>e&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);o>i;i++)t[n+i]=e>>>8*(r?i:3-i)&255}function j(t,e,n,r,i,o){if(e>i||o>e)throw new RangeError("value is out of bounds");if(n+r>t.length)throw new RangeError("index out of range");if(0>n)throw new RangeError("index out of range")}function C(t,e,n,r,i){return i||j(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),W.write(t,e,n,r,23,4),n+4}function M(t,e,n,r,i){return i||j(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),W.write(t,e,n,r,52,8),n+8}function Y(t){if(t=N(t).replace(tt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function N(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function z(t){return 16>t?"0"+t.toString(16):t.toString(16)}function F(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],u=0;r>u;u++){if(n=t.charCodeAt(u),n>55295&&57344>n){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(u+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(56320>n){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,128>n){if((e-=1)<0)break;o.push(n)}else if(2048>n){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(65536>n){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(1114112>n))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function q(t){return V.toByteArray(Y(t))}function G(t,e,n,r){for(var i=0;r>i&&!(i+n>=e.length||i>=t.length);i++)e[i+n]=t[i];return i}var V=n(16),W=n(17),Z=n(18);e.Buffer=t,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,t.poolSize=8192;var Q={};t.TYPED_ARRAY_SUPPORT=void 0!==r.TYPED_ARRAY_SUPPORT?r.TYPED_ARRAY_SUPPORT:i(),t.TYPED_ARRAY_SUPPORT?(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array):(t.prototype.length=void 0,t.prototype.parent=void 0),t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,n){if(!t.isBuffer(e)||!t.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var r=e.length,i=n.length,o=0,u=Math.min(r,i);u>o&&e[o]===n[o];)++o;return o!==u&&(r=e[o],i=n[o]),i>r?-1:r>i?1:0},t.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,n){if(!Z(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new t(0);var r;if(void 0===n)for(n=0,r=0;r0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},t.prototype.compare=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:t.compare(this,e)},t.prototype.indexOf=function(e,n){function r(t,e,n){for(var r=-1,i=0;n+i2147483647?n=2147483647:-2147483648>n&&(n=-2147483648),n>>=0,0===this.length)return-1;if(n>=this.length)return-1;if(0>n&&(n=Math.max(this.length+n,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,n);if(t.isBuffer(e))return r(this,e,n);if("number"==typeof e)return t.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,n):r(this,[e],n);throw new TypeError("val must be string, number or Buffer")},t.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},t.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},t.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else if(isFinite(e))e=0|e,isFinite(n)?(n=0|n,void 0===r&&(r="utf8")):(r=n,n=void 0);else{var i=r;r=e,e=0|n,n=i}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(0>n||0>e)||e>this.length)throw new RangeError("attempt to write outside buffer bounds");r||(r="utf8");for(var u=!1;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return m(this,t,e,n);case"ascii":return E(this,t,e,n);case"binary":return A(this,t,e,n);case"base64":return B(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(u)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),u=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var X=4096;t.prototype.slice=function(e,n){var r=this.length;e=~~e,n=void 0===n?r:~~n,0>e?(e+=r,0>e&&(e=0)):e>r&&(e=r),0>n?(n+=r,0>n&&(n=0)):n>r&&(n=r),e>n&&(n=e);var i;if(t.TYPED_ARRAY_SUPPORT)i=t._augment(this.subarray(e,n));else{var o=n-e;i=new t(o,void 0);for(var u=0;o>u;u++)i[u]=this[u+e]}return i.length&&(i.parent=this.parent||this),i},t.prototype.readUIntLE=function(t,e,n){t=0|t,e=0|e,n||k(t,e,this.length);for(var r=this[t],i=1,o=0;++o0&&(i*=256);)r+=this[t+--e]*i;return r},t.prototype.readUInt8=function(t,e){return e||k(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){return e||k(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){return e||k(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){return e||k(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){return e||k(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,n){t=0|t,e=0|e,n||k(t,e,this.length);for(var r=this[t],i=1,o=0;++o=i&&(r-=Math.pow(2,8*e)),r},t.prototype.readIntBE=function(t,e,n){t=0|t,e=0|e,n||k(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},t.prototype.readInt8=function(t,e){return e||k(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},t.prototype.readInt16LE=function(t,e){e||k(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(t,e){e||k(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(t,e){return e||k(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){return e||k(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){return e||k(t,4,this.length),W.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){return e||k(t,4,this.length),W.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,e){return e||k(t,8,this.length),W.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,e){return e||k(t,8,this.length),W.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,e,n,r){t=+t,e=0|e,n=0|n,r||P(this,t,e,n,Math.pow(2,8*n),0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},t.prototype.writeUInt8=function(e,n,r){return e=+e,n=0|n,r||P(this,e,n,1,255,0),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},t.prototype.writeUInt16LE=function(e,n,r){return e=+e,n=0|n,r||P(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):$(this,e,n,!0),n+2},t.prototype.writeUInt16BE=function(e,n,r){return e=+e,n=0|n,r||P(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):$(this,e,n,!1),n+2},t.prototype.writeUInt32LE=function(e,n,r){return e=+e,n=0|n,r||P(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):D(this,e,n,!0),n+4},t.prototype.writeUInt32BE=function(e,n,r){return e=+e,n=0|n,r||P(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):D(this,e,n,!1),n+4},t.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e=0|e,!r){var i=Math.pow(2,8*n-1);P(this,t,e,n,i-1,-i)}var o=0,u=1,s=0>t?1:0;for(this[e]=255&t;++o>0)-s&255;return e+n},t.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e=0|e,!r){var i=Math.pow(2,8*n-1);P(this,t,e,n,i-1,-i)}var o=n-1,u=1,s=0>t?1:0;for(this[e+o]=255&t;--o>=0&&(u*=256);)this[e+o]=(t/u>>0)-s&255;return e+n},t.prototype.writeInt8=function(e,n,r){return e=+e,n=0|n,r||P(this,e,n,1,127,-128),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[n]=255&e,n+1},t.prototype.writeInt16LE=function(e,n,r){return e=+e,n=0|n,r||P(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):$(this,e,n,!0),n+2},t.prototype.writeInt16BE=function(e,n,r){return e=+e,n=0|n,r||P(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):$(this,e,n,!1),n+2},t.prototype.writeInt32LE=function(e,n,r){return e=+e,n=0|n,r||P(this,e,n,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):D(this,e,n,!0),n+4},t.prototype.writeInt32BE=function(e,n,r){return e=+e,n=0|n,r||P(this,e,n,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):D(this,e,n,!1),n+4},t.prototype.writeFloatLE=function(t,e,n){return C(this,t,e,!0,n)},t.prototype.writeFloatBE=function(t,e,n){return C(this,t,e,!1,n)},t.prototype.writeDoubleLE=function(t,e,n){return M(this,t,e,!0,n)},t.prototype.writeDoubleBE=function(t,e,n){return M(this,t,e,!1,n)},t.prototype.copy=function(e,n,r,i){if(r||(r=0),i||0===i||(i=this.length),n>=e.length&&(n=e.length),n||(n=0),i>0&&r>i&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(0>n)throw new RangeError("targetStart out of bounds");if(0>r||r>=this.length)throw new RangeError("sourceStart out of bounds");if(0>i)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-nr&&i>n)for(o=u-1;o>=0;o--)e[o+n]=this[o+r];else if(1e3>u||!t.TYPED_ARRAY_SUPPORT)for(o=0;u>o;o++)e[o+n]=this[o+r];else e._set(this.subarray(r,r+u),n);return u},t.prototype.fill=function(t,e,n){if(t||(t=0),e||(e=0),n||(n=this.length),e>n)throw new RangeError("end < start");if(n!==e&&0!==this.length){if(0>e||e>=this.length)throw new RangeError("start out of bounds");if(0>n||n>this.length)throw new RangeError("end out of bounds");var r;if("number"==typeof t)for(r=e;n>r;r++)this[r]=t;else{var i=F(t.toString()),o=i.length;for(r=e;n>r;r++)this[r]=i[r%o]}return this}},t.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(t.TYPED_ARRAY_SUPPORT)return new t(this).buffer;for(var e=new Uint8Array(this.length),n=0,r=e.length;r>n;n+=1)e[n]=this[n];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var K=t.prototype;t._augment=function(e){return e.constructor=t,e._isBuffer=!0,e._set=e.set,e.get=K.get,e.set=K.set,e.write=K.write,e.toString=K.toString,e.toLocaleString=K.toString,e.toJSON=K.toJSON,e.equals=K.equals,e.compare=K.compare,e.indexOf=K.indexOf,e.copy=K.copy,e.slice=K.slice,e.readUIntLE=K.readUIntLE,e.readUIntBE=K.readUIntBE,e.readUInt8=K.readUInt8,e.readUInt16LE=K.readUInt16LE,e.readUInt16BE=K.readUInt16BE,e.readUInt32LE=K.readUInt32LE,e.readUInt32BE=K.readUInt32BE,e.readIntLE=K.readIntLE,e.readIntBE=K.readIntBE,e.readInt8=K.readInt8,e.readInt16LE=K.readInt16LE,e.readInt16BE=K.readInt16BE,e.readInt32LE=K.readInt32LE,e.readInt32BE=K.readInt32BE,e.readFloatLE=K.readFloatLE,e.readFloatBE=K.readFloatBE,e.readDoubleLE=K.readDoubleLE,e.readDoubleBE=K.readDoubleBE,e.writeUInt8=K.writeUInt8,e.writeUIntLE=K.writeUIntLE,e.writeUIntBE=K.writeUIntBE,e.writeUInt16LE=K.writeUInt16LE,e.writeUInt16BE=K.writeUInt16BE,e.writeUInt32LE=K.writeUInt32LE,e.writeUInt32BE=K.writeUInt32BE,e.writeIntLE=K.writeIntLE,e.writeIntBE=K.writeIntBE,e.writeInt8=K.writeInt8,e.writeInt16LE=K.writeInt16LE,e.writeInt16BE=K.writeInt16BE,e.writeInt32LE=K.writeInt32LE,e.writeInt32BE=K.writeInt32BE,e.writeFloatLE=K.writeFloatLE,e.writeFloatBE=K.writeFloatBE,e.writeDoubleLE=K.writeDoubleLE,e.writeDoubleBE=K.writeDoubleBE,e.fill=K.fill,e.inspect=K.inspect,e.toArrayBuffer=K.toArrayBuffer,e};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(15).Buffer,function(){return this}())},function(t,e,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){function e(t){var e=t.charCodeAt(0);return e===u||e===l?62:e===s||e===h?63:a>e?-1:a+10>e?e-a+26+26:c+26>e?e-c:f+26>e?e-f+26:void 0}function n(t){function n(t){f[l++]=t}var r,i,u,s,a,f;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=t.length;a="="===t.charAt(c-2)?2:"="===t.charAt(c-1)?1:0,f=new o(3*t.length/4-a),u=a>0?t.length-4:t.length;var l=0;for(r=0,i=0;u>r;r+=4,i+=3)s=e(t.charAt(r))<<18|e(t.charAt(r+1))<<12|e(t.charAt(r+2))<<6|e(t.charAt(r+3)),n((16711680&s)>>16),n((65280&s)>>8),n(255&s);return 2===a?(s=e(t.charAt(r))<<2|e(t.charAt(r+1))>>4,n(255&s)):1===a&&(s=e(t.charAt(r))<<10|e(t.charAt(r+1))<<4|e(t.charAt(r+2))>>2,n(s>>8&255),n(255&s)),f}function i(t){function e(t){return r.charAt(t)}function n(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var i,o,u,s=t.length%3,a="";for(i=0,u=t.length-s;u>i;i+=3)o=(t[i]<<16)+(t[i+1]<<8)+t[i+2],a+=n(o);switch(s){case 1:o=t[t.length-1],a+=e(o>>2),a+=e(o<<4&63),a+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1],a+=e(o>>10),a+=e(o>>4&63),a+=e(o<<2&63),a+="="}return a}var o="undefined"!=typeof Uint8Array?Uint8Array:Array,u="+".charCodeAt(0),s="/".charCodeAt(0),a="0".charCodeAt(0),f="a".charCodeAt(0),c="A".charCodeAt(0),l="-".charCodeAt(0),h="_".charCodeAt(0);t.toByteArray=n,t.fromByteArray=i}(e)},function(t,e){"use strict";e.read=function(t,e,n,r,i){var o,u,s=8*i-r-1,a=(1<>1,c=-7,l=n?i-1:0,h=n?-1:1,p=t[e+l];for(l+=h,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+t[e+l],l+=h,c-=8);for(u=o&(1<<-c)-1,o>>=-c,c+=r;c>0;u=256*u+t[e+l],l+=h,c-=8);if(0===o)o=1-f;else{if(o===a)return u?NaN:(p?-1:1)*(1/0);u+=Math.pow(2,r),o-=f}return(p?-1:1)*u*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var u,s,a,f=8*o-i-1,c=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,u=c):(u=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-u))<1&&(u--,a*=2),e+=u+l>=1?h/a:h*Math.pow(2,1-l),e*a>=2&&(u++,a/=2),u+l>=c?(s=0,u=c):u+l>=1?(s=(e*a-1)*Math.pow(2,i),u+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),u=0));i>=8;t[n+p]=255&s,p+=d,s/=256,i-=8);for(u=u<0;t[n+p]=255&u,p+=d,u/=256,f-=8);t[n+p-d]|=128*g}},function(t,e){"use strict";var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){(function(t){"use strict";function r(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}function i(t,e){for(var n in t)e(t[n],n)}var o=n(20);e.createHash=n(22),e.createHmac=n(35),e.randomBytes=function(e,n){if(!n||!n.call)return new t(o(e));try{n.call(this,void 0,new t(o(e)))}catch(r){n(r)}},e.getHashes=function(){return["sha1","sha256","sha512","md5","rmd160"]};var u=n(36)(e);e.pbkdf2=u.pbkdf2,e.pbkdf2Sync=u.pbkdf2Sync,i(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman"],function(t){e[t]=function(){r("sorry,",t,"is not implemented yet")}})}).call(e,n(15).Buffer)},function(t,e,n){(function(e,r){"use strict";!function(){var i=("undefined"==typeof window?e:window)||{};_crypto=i.crypto||i.msCrypto||n(21),t.exports=function(t){if(_crypto.getRandomValues){var e=new r(t);return _crypto.getRandomValues(e),e}if(_crypto.randomBytes)return _crypto.randomBytes(t);throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}()}).call(e,function(){return this}(),n(15).Buffer)},function(t,e){},function(t,e,n){(function(e){"use strict";function r(t){return function(){var n=[],r={update:function(t,r){return e.isBuffer(t)||(t=new e(t,r)),n.push(t),this},digest:function(r){var i=e.concat(n),o=t(i);return n=null,r?o.toString(r):o}};return r}}var i=n(23),o=r(n(32)),u=r(n(34));t.exports=function(t){return"md5"===t?new o:"rmd160"===t?new u:i(t)}}).call(e,n(15).Buffer)},function(t,e,n){"use strict";var r=t.exports=function(t){var e=r[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e},i=n(15).Buffer,o=n(24)(i);r.sha1=n(25)(i,o),r.sha256=n(30)(i,o),r.sha512=n(31)(i,o)},function(t,e){"use strict";t.exports=function(t){function e(e,n){this._block=new t(e),this._finalSize=n,this._blockSize=e,this._len=0,this._s=0}return e.prototype.init=function(){this._s=0,this._len=0},e.prototype.update=function(e,n){"string"==typeof e&&(n=n||"utf8",e=new t(e,n));for(var r=this._len+=e.length,i=this._s=this._s||0,o=0,u=this._block;r>i;){for(var s=Math.min(e.length,o+this._blockSize-i%this._blockSize),a=s-o,f=0;a>f;f++)u[i%this._blockSize+f]=e[f+o];i+=a,o+=a,i%this._blockSize===0&&this._update(u)}return this._s=i,this},e.prototype.digest=function(t){var e=8*this._len;this._block[this._len%this._blockSize]=128,this._block.fill(0,this._len%this._blockSize+1),e%(8*this._blockSize)>=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(e,this._blockSize-4);var n=this._update(this._block)||this._hash();return t?n.toString(t):n},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e}},function(t,e,n){"use strict";var r=n(26).inherits;t.exports=function(t,e){function n(){return d.length?d.pop().init():this instanceof n?(this._w=p,e.call(this,64,56),this._h=null,void this.init()):new n}function i(t,e,n,r){return 20>t?e&n|~e&r:40>t?e^n^r:60>t?e&n|e&r|n&r:e^n^r}function o(t){return 20>t?1518500249:40>t?1859775393:60>t?-1894007588:-899497514}function u(t,e){return t+e|0}function s(t,e){return t<>>32-e}var a=0,f=4,c=8,l=12,h=16,p=new("undefined"==typeof Int32Array?Array:Int32Array)(80),d=[];return r(n,e),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,e.prototype.init.call(this),this},n.prototype._POOL=d,n.prototype._update=function(t){var e,n,r,a,f,c,l,h,p,d;e=c=this._a,n=l=this._b,r=h=this._c,a=p=this._d,f=d=this._e;for(var g=this._w,y=0;80>y;y++){var v=g[y]=16>y?t.readInt32BE(4*y):s(g[y-3]^g[y-8]^g[y-14]^g[y-16],1),_=u(u(s(e,5),i(y,n,r,a)),u(u(f,v),o(y)));f=a,a=r,r=s(n,30),n=e,e=_}this._a=u(e,c),this._b=u(n,l),this._c=u(r,h),this._d=u(a,p),this._e=u(f,d)},n.prototype._hash=function(){d.length<100&&d.push(this);var e=new t(20);return e.writeInt32BE(0|this._a,a),e.writeInt32BE(0|this._b,f),e.writeInt32BE(0|this._c,c),e.writeInt32BE(0|this._d,l),e.writeInt32BE(0|this._e,h),e},n}},function(t,e,n){(function(t,r){"use strict";function i(t,n){var r={seen:[],stylize:u};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),g(n)?r.showHidden=n:n&&e._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),a(r,t,r.depth)}function o(t,e){var n=i.styles[e];return n?"["+i.colors[n][0]+"m"+t+"["+i.colors[n][1]+"m":t}function u(t,e){return t}function s(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function a(t,n,r){if(t.customInspect&&n&&x(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return w(i)||(i=a(t,i,r)),i}var o=f(t,n);if(o)return o;var u=Object.keys(n),g=s(u);if(t.showHidden&&(u=Object.getOwnPropertyNames(n)),S(n)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return c(n);if(0===u.length){if(x(n)){var y=n.name?": "+n.name:"";return t.stylize("[Function"+y+"]","special")}if(E(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(B(n))return t.stylize(Date.prototype.toString.call(n),"date");if(S(n))return c(n)}var v="",_=!1,b=["{","}"];if(d(n)&&(_=!0,b=["[","]"]),x(n)){var m=n.name?": "+n.name:"";v=" [Function"+m+"]"}if(E(n)&&(v=" "+RegExp.prototype.toString.call(n)),B(n)&&(v=" "+Date.prototype.toUTCString.call(n)),S(n)&&(v=" "+c(n)),0===u.length&&(!_||0==n.length))return b[0]+v+b[1];if(0>r)return E(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var A;return A=_?l(t,n,r,g,u):u.map(function(e){return h(t,n,r,g,e,_)}),t.seen.pop(),p(A,v,b)}function f(t,e){if(m(e))return t.stylize("undefined","undefined");if(w(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return _(e)?t.stylize(""+e,"number"):g(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function l(t,e,n,r,i){for(var o=[],u=0,s=e.length;s>u;++u)O(e,String(u))?o.push(h(t,e,n,r,String(u),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(t,e,n,r,i,!0))}),o}function h(t,e,n,r,i,o){var u,s,f;if(f=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},f.get?s=f.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):f.set&&(s=t.stylize("[Setter]","special")),O(r,i)||(u="["+i+"]"),s||(t.seen.indexOf(f.value)<0?(s=y(n)?a(t,f.value,null):a(t,f.value,n-1),s.indexOf("\n")>-1&&(s=o?s.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return" "+t}).join("\n"))):s=t.stylize("[Circular]","special")),m(u)){if(o&&i.match(/^\d+$/))return s;u=JSON.stringify(""+i),u.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=t.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=t.stylize(u,"string"))}return u+": "+s}function p(t,e,n){var r=0,i=t.reduce(function(t,e){return r++,e.indexOf("\n")>=0&&r++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function d(t){return Array.isArray(t)}function g(t){return"boolean"==typeof t}function y(t){return null===t}function v(t){return null==t}function _(t){return"number"==typeof t}function w(t){return"string"==typeof t}function b(t){return"symbol"===("undefined"==typeof t?"undefined":L(t))}function m(t){return void 0===t}function E(t){return A(t)&&"[object RegExp]"===R(t)}function A(t){return"object"===("undefined"==typeof t?"undefined":L(t))&&null!==t}function B(t){return A(t)&&"[object Date]"===R(t)}function S(t){return A(t)&&("[object Error]"===R(t)||t instanceof Error)}function x(t){return"function"==typeof t}function I(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===("undefined"==typeof t?"undefined":L(t))||"undefined"==typeof t}function R(t){return Object.prototype.toString.call(t)}function T(t){return 10>t?"0"+t.toString(10):t.toString(10)}function U(){var t=new Date,e=[T(t.getHours()),T(t.getMinutes()),T(t.getSeconds())].join(":");return[t.getDate(),D[t.getMonth()],e].join(" ")}function O(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},k=/%[sdj%]/g;e.format=function(t){if(!w(t)){for(var e=[],n=0;n=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return t}}),s=r[n];o>n;s=r[++n])u+=y(s)||!A(s)?" "+s:" "+i(s);return u},e.deprecate=function(n,i){function o(){if(!u){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?console.trace(i):console.error(i),u=!0}return n.apply(this,arguments)}if(m(t.process))return function(){return e.deprecate(n,i).apply(this,arguments)};if(r.noDeprecation===!0)return n;var u=!1;return o};var P,$={};e.debuglog=function(t){if(m(P)&&(P=r.env.NODE_DEBUG||""),t=t.toUpperCase(),!$[t])if(new RegExp("\\b"+t+"\\b","i").test(P)){var n=r.pid;$[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else $[t]=function(){};return $[t]},e.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=g,e.isNull=y,e.isNullOrUndefined=v,e.isNumber=_,e.isString=w,e.isSymbol=b,e.isUndefined=m,e.isRegExp=E,e.isObject=A,e.isDate=B,e.isError=S,e.isFunction=x,e.isPrimitive=I,e.isBuffer=n(28);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.log=function(){console.log("%s - %s",U(),e.format.apply(e,arguments))},e.inherits=n(29),e._extend=function(t,e){if(!e||!A(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}}).call(e,function(){return this}(),n(27))},function(t,e){"use strict";function n(){f=!1,u.length?a=u.concat(a):c=-1,a.length&&r()}function r(){if(!f){var t=setTimeout(n);f=!0;for(var e=a.length;e;){for(u=a,a=[];++c1)for(var n=1;n>>e|t<<32-e}function o(t,e){return t>>>e}function u(t,e,n){return t&e^~t&n}function s(t,e,n){return t&e^t&n^e&n}function a(t){return i(t,2)^i(t,13)^i(t,22)}function f(t){return i(t,6)^i(t,11)^i(t,25)}function c(t){return i(t,7)^i(t,18)^o(t,3)}function l(t){return i(t,17)^i(t,19)^o(t,10)}var h=[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=new Array(64);return r(n,e),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._len=this._s=0,this},n.prototype._update=function(t){var e,n,r,i,o,p,d,g,y,v,_=this._w;e=0|this._a,n=0|this._b,r=0|this._c,i=0|this._d,o=0|this._e,p=0|this._f,d=0|this._g,g=0|this._h;for(var w=0;64>w;w++){var b=_[w]=16>w?t.readInt32BE(4*w):l(_[w-2])+_[w-7]+c(_[w-15])+_[w-16];y=g+f(o)+u(o,p,d)+h[w]+b,v=a(e)+s(e,n,r),g=d,d=p,p=o,o=i+y,i=r,r=n,n=e,e=y+v}this._a=e+this._a|0,this._b=n+this._b|0,this._c=r+this._c|0,this._d=i+this._d|0,this._e=o+this._e|0,this._f=p+this._f|0,this._g=d+this._g|0,this._h=g+this._h|0},n.prototype._hash=function(){var e=new t(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},n}},function(t,e,n){"use strict";var r=n(26).inherits;t.exports=function(t,e){function n(){this.init(),this._w=a,e.call(this,128,112)}function i(t,e,n){return t>>>n|e<<32-n}function o(t,e,n){return t&e^~t&n}function u(t,e,n){return t&e^t&n^e&n}var s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);return r(n,e),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._al=-205731576,this._bl=-2067093701,this._cl=-23791573,this._dl=1595750129,this._el=-1377402159,this._fl=725511199,this._gl=-79577749,this._hl=327033209,this._len=this._s=0,this},n.prototype._update=function(t){var e,n,r,a,f,c,l,h,p,d,g,y,v,_,w,b,m=this._w;e=0|this._a,n=0|this._b,r=0|this._c,a=0|this._d,f=0|this._e,c=0|this._f,l=0|this._g,h=0|this._h,p=0|this._al,d=0|this._bl,g=0|this._cl,y=0|this._dl,v=0|this._el,_=0|this._fl,w=0|this._gl,b=0|this._hl;for(var E=0;80>E;E++){var A,B,S=2*E;if(16>E)A=m[S]=t.readInt32BE(4*S),B=m[S+1]=t.readInt32BE(4*S+4);else{var x=m[S-30],I=m[S-30+1],R=i(x,I,1)^i(x,I,8)^x>>>7,T=i(I,x,1)^i(I,x,8)^i(I,x,7);x=m[S-4],I=m[S-4+1];var U=i(x,I,19)^i(I,x,29)^x>>>6,O=i(I,x,19)^i(x,I,29)^i(I,x,6),L=m[S-14],k=m[S-14+1],P=m[S-32],$=m[S-32+1];B=T+k,A=R+L+(T>>>0>B>>>0?1:0),B+=O,A=A+U+(O>>>0>B>>>0?1:0),B+=$,A=A+P+($>>>0>B>>>0?1:0),m[S]=A,m[S+1]=B}var D=u(e,n,r),j=u(p,d,g),C=i(e,p,28)^i(p,e,2)^i(p,e,7),M=i(p,e,28)^i(e,p,2)^i(e,p,7),Y=i(f,v,14)^i(f,v,18)^i(v,f,9),N=i(v,f,14)^i(v,f,18)^i(f,v,9),z=s[S],F=s[S+1],H=o(f,c,l),J=o(v,_,w),q=b+N,G=h+Y+(b>>>0>q>>>0?1:0);q+=J,G=G+H+(J>>>0>q>>>0?1:0),q+=F,G=G+z+(F>>>0>q>>>0?1:0),q+=B,G=G+A+(B>>>0>q>>>0?1:0);var V=M+j,W=C+D+(M>>>0>V>>>0?1:0);h=l,b=w,l=c,w=_,c=f,_=v,v=y+q|0,f=a+G+(y>>>0>v>>>0?1:0)|0,a=r,y=g,r=n,g=d,n=e,d=p,p=q+V|0,e=G+W+(q>>>0>p>>>0?1:0)|0}this._al=this._al+p|0,this._bl=this._bl+d|0,this._cl=this._cl+g|0,this._dl=this._dl+y|0,this._el=this._el+v|0,this._fl=this._fl+_|0,this._gl=this._gl+w|0,this._hl=this._hl+b|0,this._a=this._a+e+(this._al>>>0

>>0?1:0)|0,this._b=this._b+n+(this._bl>>>0>>0?1:0)|0,this._c=this._c+r+(this._cl>>>0>>0?1:0)|0,this._d=this._d+a+(this._dl>>>0>>0?1:0)|0,this._e=this._e+f+(this._el>>>0>>0?1:0)|0,this._f=this._f+c+(this._fl>>>0<_>>>0?1:0)|0,this._g=this._g+l+(this._gl>>>0>>0?1:0)|0,this._h=this._h+h+(this._hl>>>0>>0?1:0)|0},n.prototype._hash=function(){function e(t,e,r){n.writeInt32BE(t,r),n.writeInt32BE(e,r+4)}var n=new t(64);return e(this._a,this._al,0),e(this._b,this._bl,8),e(this._c,this._cl,16),e(this._d,this._dl,24),e(this._e,this._el,32),e(this._f,this._fl,40),e(this._g,this._gl,48),e(this._h,this._hl,56),n},n}},function(t,e,n){"use strict";function r(t,e){t[e>>5]|=128<>>9<<4)+14]=e;for(var n=1732584193,r=-271733879,i=-1732584194,c=271733878,l=0;l>16)+(e>>16)+(n>>16);return r<<16|65535&n}function c(t,e){return t<>>32-e}var l=n(33);t.exports=function(t){return l.hash(t,r,16)}},function(t,e,n){(function(e){"use strict";function n(t,n){if(t.length%o!==0){var r=t.length+(o-t.length%o);t=e.concat([t,u],r)}for(var i=[],s=n?t.readInt32BE:t.readInt32LE,a=0;a>>32-e}function a(t){var n=[1732584193,4023233417,2562383102,271733878,3285377520];"string"==typeof t&&(t=new e(t,"utf8"));var r=g(t),i=8*t.length,o=8*t.length;r[i>>>5]|=128<<24-i%32,r[(i+64>>>9<<4)+14]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);for(var u=0;uu;u++){var s=n[u];n[u]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}var a=y(n);return new e(a)}t.exports=a;/** @preserve +"use strict";function i(){function t(){}try{var e=new Uint8Array(1);return e.foo=function(){return 42},e.constructor=t,42===e.foo()&&e.constructor===t&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(n){return!1}}function o(){return t.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function t(e){return this instanceof t?(t.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof e?a(this,e):"string"==typeof e?u(this,e,arguments.length>1?arguments[1]:"utf8"):s(this,e)):arguments.length>1?new t(e,arguments[1]):new t(e)}function a(e,n){if(e=_(e,0>n?0:0|v(n)),!t.TYPED_ARRAY_SUPPORT)for(var r=0;n>r;r++)e[r]=0;return e}function u(t,e,n){"string"==typeof n&&""!==n||(n="utf8");var r=0|y(e,n);return t=_(t,r),t.write(e,n),t}function s(e,n){if(t.isBuffer(n))return c(e,n);if(Q(n))return f(e,n);if(null==n)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(n.buffer instanceof ArrayBuffer)return l(e,n);if(n instanceof ArrayBuffer)return h(e,n)}return n.length?p(e,n):d(e,n)}function c(t,e){var n=0|v(e.length);return t=_(t,n),e.copy(t,0,0,n),t}function f(t,e){var n=0|v(e.length);t=_(t,n);for(var r=0;n>r;r+=1)t[r]=255&e[r];return t}function l(t,e){var n=0|v(e.length);t=_(t,n);for(var r=0;n>r;r+=1)t[r]=255&e[r];return t}function h(e,n){return t.TYPED_ARRAY_SUPPORT?(n.byteLength,e=t._augment(new Uint8Array(n))):e=l(e,new Uint8Array(n)),e}function p(t,e){var n=0|v(e.length);t=_(t,n);for(var r=0;n>r;r+=1)t[r]=255&e[r];return t}function d(t,e){var n,r=0;"Buffer"===e.type&&Q(e.data)&&(n=e.data,r=0|v(n.length)),t=_(t,r);for(var i=0;r>i;i+=1)t[i]=255&n[i];return t}function _(e,n){t.TYPED_ARRAY_SUPPORT?(e=t._augment(new Uint8Array(n)),e.__proto__=t.prototype):(e.length=n,e._isBuffer=!0);var r=0!==n&&n<=t.poolSize>>>1;return r&&(e.parent=Z),e}function v(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function g(e,n){if(!(this instanceof g))return new g(e,n);var r=new t(e,n);return delete r.parent,r}function y(t,e){"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(t).length;default:if(r)return F(t).length;e=(""+e).toLowerCase(),r=!0}}function w(t,e,n){var r=!1;if(e=0|e,n=void 0===n||n===1/0?this.length:0|n,t||(t="utf8"),0>e&&(e=0),n>this.length&&(n=this.length),e>=n)return"";for(;;)switch(t){case"hex":return k(this,e,n);case"utf8":case"utf-8":return O(this,e,n);case"ascii":return I(this,e,n);case"binary":return R(this,e,n);case"base64":return x(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new Error("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;r>a;a++){var u=parseInt(e.substr(2*a,2),16);if(isNaN(u))throw new Error("Invalid hex string");t[n+a]=u}return a}function b(t,e,n,r){return G(F(e,t.length-n),t,n,r)}function E(t,e,n,r){return G(H(e),t,n,r)}function S(t,e,n,r){return E(t,e,n,r)}function A(t,e,n,r){return G(q(e),t,n,r)}function B(t,e,n,r){return G(J(e,t.length-n),t,n,r)}function x(t,e,n){return 0===e&&n===t.length?V.fromByteArray(t):V.fromByteArray(t.slice(e,n))}function O(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;n>i;){var o=t[i],a=null,u=o>239?4:o>223?3:o>191?2:1;if(n>=i+u){var s,c,f,l;switch(u){case 1:128>o&&(a=o);break;case 2:s=t[i+1],128===(192&s)&&(l=(31&o)<<6|63&s,l>127&&(a=l));break;case 3:s=t[i+1],c=t[i+2],128===(192&s)&&128===(192&c)&&(l=(15&o)<<12|(63&s)<<6|63&c,l>2047&&(55296>l||l>57343)&&(a=l));break;case 4:s=t[i+1],c=t[i+2],f=t[i+3],128===(192&s)&&128===(192&c)&&128===(192&f)&&(l=(15&o)<<18|(63&s)<<12|(63&c)<<6|63&f,l>65535&&1114112>l&&(a=l))}}null===a?(a=65533,u=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=u}return T(r)}function T(t){var e=t.length;if(X>=e)return String.fromCharCode.apply(String,t);for(var n="",r=0;e>r;)n+=String.fromCharCode.apply(String,t.slice(r,r+=X));return n}function I(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;n>i;i++)r+=String.fromCharCode(127&t[i]);return r}function R(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;n>i;i++)r+=String.fromCharCode(t[i]);return r}function k(t,e,n){var r=t.length;(!e||0>e)&&(e=0),(!n||0>n||n>r)&&(n=r);for(var i="",o=e;n>o;o++)i+=z(t[o]);return i}function U(t,e,n){for(var r=t.slice(e,n),i="",o=0;ot)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,n,r,i,o,a){if(!t.isBuffer(e))throw new TypeError("buffer must be a Buffer instance");if(n>o||a>n)throw new RangeError("value is out of bounds");if(r+i>e.length)throw new RangeError("index out of range")}function P(t,e,n,r){0>e&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);o>i;i++)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function $(t,e,n,r){0>e&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);o>i;i++)t[n+i]=e>>>8*(r?i:3-i)&255}function M(t,e,n,r,i,o){if(e>i||o>e)throw new RangeError("value is out of bounds");if(n+r>t.length)throw new RangeError("index out of range");if(0>n)throw new RangeError("index out of range")}function j(t,e,n,r,i){return i||M(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),W.write(t,e,n,r,23,4),n+4}function C(t,e,n,r,i){return i||M(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),W.write(t,e,n,r,52,8),n+8}function Y(t){if(t=N(t).replace(tt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function N(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function z(t){return 16>t?"0"+t.toString(16):t.toString(16)}function F(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],a=0;r>a;a++){if(n=t.charCodeAt(a),n>55295&&57344>n){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(56320>n){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,128>n){if((e-=1)<0)break;o.push(n)}else if(2048>n){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(65536>n){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(1114112>n))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r);return o}function q(t){return V.toByteArray(Y(t))}function G(t,e,n,r){for(var i=0;r>i&&!(i+n>=e.length||i>=t.length);i++)e[i+n]=t[i];return i}var V=n(21),W=n(22),Q=n(23);e.Buffer=t,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,t.poolSize=8192;var Z={};t.TYPED_ARRAY_SUPPORT=void 0!==r.TYPED_ARRAY_SUPPORT?r.TYPED_ARRAY_SUPPORT:i(),t.TYPED_ARRAY_SUPPORT?(t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array):(t.prototype.length=void 0,t.prototype.parent=void 0),t.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.compare=function(e,n){if(!t.isBuffer(e)||!t.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var r=e.length,i=n.length,o=0,a=Math.min(r,i);a>o&&e[o]===n[o];)++o;return o!==a&&(r=e[o],i=n[o]),i>r?-1:r>i?1:0},t.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,n){if(!Q(e))throw new TypeError("list argument must be an Array of Buffers.");if(0===e.length)return new t(0);var r;if(void 0===n)for(n=0,r=0;r0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},t.prototype.compare=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?0:t.compare(this,e)},t.prototype.indexOf=function(e,n){function r(t,e,n){for(var r=-1,i=0;n+i2147483647?n=2147483647:-2147483648>n&&(n=-2147483648),n>>=0,0===this.length)return-1;if(n>=this.length)return-1;if(0>n&&(n=Math.max(this.length+n,0)),"string"==typeof e)return 0===e.length?-1:String.prototype.indexOf.call(this,e,n);if(t.isBuffer(e))return r(this,e,n);if("number"==typeof e)return t.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,e,n):r(this,[e],n);throw new TypeError("val must be string, number or Buffer")},t.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},t.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},t.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else if(isFinite(e))e=0|e,isFinite(n)?(n=0|n,void 0===r&&(r="utf8")):(r=n,n=void 0);else{var i=r;r=e,e=0|n,n=i}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(0>n||0>e)||e>this.length)throw new RangeError("attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return m(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return E(this,t,e,n);case"binary":return S(this,t,e,n);case"base64":return A(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var X=4096;t.prototype.slice=function(e,n){var r=this.length;e=~~e,n=void 0===n?r:~~n,0>e?(e+=r,0>e&&(e=0)):e>r&&(e=r),0>n?(n+=r,0>n&&(n=0)):n>r&&(n=r),e>n&&(n=e);var i;if(t.TYPED_ARRAY_SUPPORT)i=t._augment(this.subarray(e,n));else{var o=n-e;i=new t(o,void 0);for(var a=0;o>a;a++)i[a]=this[a+e]}return i.length&&(i.parent=this.parent||this),i},t.prototype.readUIntLE=function(t,e,n){t=0|t,e=0|e,n||D(t,e,this.length);for(var r=this[t],i=1,o=0;++o0&&(i*=256);)r+=this[t+--e]*i;return r},t.prototype.readUInt8=function(t,e){return e||D(t,1,this.length),this[t]},t.prototype.readUInt16LE=function(t,e){return e||D(t,2,this.length),this[t]|this[t+1]<<8},t.prototype.readUInt16BE=function(t,e){return e||D(t,2,this.length),this[t]<<8|this[t+1]},t.prototype.readUInt32LE=function(t,e){return e||D(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},t.prototype.readUInt32BE=function(t,e){return e||D(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},t.prototype.readIntLE=function(t,e,n){t=0|t,e=0|e,n||D(t,e,this.length);for(var r=this[t],i=1,o=0;++o=i&&(r-=Math.pow(2,8*e)),r},t.prototype.readIntBE=function(t,e,n){t=0|t,e=0|e,n||D(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},t.prototype.readInt8=function(t,e){return e||D(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},t.prototype.readInt16LE=function(t,e){e||D(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(t,e){e||D(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(t,e){return e||D(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},t.prototype.readInt32BE=function(t,e){return e||D(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},t.prototype.readFloatLE=function(t,e){return e||D(t,4,this.length),W.read(this,t,!0,23,4)},t.prototype.readFloatBE=function(t,e){return e||D(t,4,this.length),W.read(this,t,!1,23,4)},t.prototype.readDoubleLE=function(t,e){return e||D(t,8,this.length),W.read(this,t,!0,52,8)},t.prototype.readDoubleBE=function(t,e){return e||D(t,8,this.length),W.read(this,t,!1,52,8)},t.prototype.writeUIntLE=function(t,e,n,r){t=+t,e=0|e,n=0|n,r||L(this,t,e,n,Math.pow(2,8*n),0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},t.prototype.writeUInt8=function(e,n,r){return e=+e,n=0|n,r||L(this,e,n,1,255,0),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},t.prototype.writeUInt16LE=function(e,n,r){return e=+e,n=0|n,r||L(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):P(this,e,n,!0),n+2},t.prototype.writeUInt16BE=function(e,n,r){return e=+e,n=0|n,r||L(this,e,n,2,65535,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):P(this,e,n,!1),n+2},t.prototype.writeUInt32LE=function(e,n,r){return e=+e,n=0|n,r||L(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):$(this,e,n,!0),n+4},t.prototype.writeUInt32BE=function(e,n,r){return e=+e,n=0|n,r||L(this,e,n,4,4294967295,0),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):$(this,e,n,!1),n+4},t.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e=0|e,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=0,a=1,u=0>t?1:0;for(this[e]=255&t;++o>0)-u&255;return e+n},t.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e=0|e,!r){var i=Math.pow(2,8*n-1);L(this,t,e,n,i-1,-i)}var o=n-1,a=1,u=0>t?1:0;for(this[e+o]=255&t;--o>=0&&(a*=256);)this[e+o]=(t/a>>0)-u&255;return e+n},t.prototype.writeInt8=function(e,n,r){return e=+e,n=0|n,r||L(this,e,n,1,127,-128),t.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),0>e&&(e=255+e+1),this[n]=255&e,n+1},t.prototype.writeInt16LE=function(e,n,r){return e=+e,n=0|n,r||L(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):P(this,e,n,!0),n+2},t.prototype.writeInt16BE=function(e,n,r){return e=+e,n=0|n,r||L(this,e,n,2,32767,-32768),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):P(this,e,n,!1),n+2},t.prototype.writeInt32LE=function(e,n,r){return e=+e,n=0|n,r||L(this,e,n,4,2147483647,-2147483648),t.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):$(this,e,n,!0),n+4},t.prototype.writeInt32BE=function(e,n,r){return e=+e,n=0|n,r||L(this,e,n,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),t.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):$(this,e,n,!1),n+4},t.prototype.writeFloatLE=function(t,e,n){return j(this,t,e,!0,n)},t.prototype.writeFloatBE=function(t,e,n){return j(this,t,e,!1,n)},t.prototype.writeDoubleLE=function(t,e,n){return C(this,t,e,!0,n)},t.prototype.writeDoubleBE=function(t,e,n){return C(this,t,e,!1,n)},t.prototype.copy=function(e,n,r,i){if(r||(r=0),i||0===i||(i=this.length),n>=e.length&&(n=e.length),n||(n=0),i>0&&r>i&&(i=r),i===r)return 0;if(0===e.length||0===this.length)return 0;if(0>n)throw new RangeError("targetStart out of bounds");if(0>r||r>=this.length)throw new RangeError("sourceStart out of bounds");if(0>i)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-nr&&i>n)for(o=a-1;o>=0;o--)e[o+n]=this[o+r];else if(1e3>a||!t.TYPED_ARRAY_SUPPORT)for(o=0;a>o;o++)e[o+n]=this[o+r];else e._set(this.subarray(r,r+a),n);return a},t.prototype.fill=function(t,e,n){if(t||(t=0),e||(e=0),n||(n=this.length),e>n)throw new RangeError("end < start");if(n!==e&&0!==this.length){if(0>e||e>=this.length)throw new RangeError("start out of bounds");if(0>n||n>this.length)throw new RangeError("end out of bounds");var r;if("number"==typeof t)for(r=e;n>r;r++)this[r]=t;else{var i=F(t.toString()),o=i.length;for(r=e;n>r;r++)this[r]=i[r%o]}return this}},t.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(t.TYPED_ARRAY_SUPPORT)return new t(this).buffer;for(var e=new Uint8Array(this.length),n=0,r=e.length;r>n;n+=1)e[n]=this[n];return e.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var K=t.prototype;t._augment=function(e){return e.constructor=t,e._isBuffer=!0,e._set=e.set,e.get=K.get,e.set=K.set,e.write=K.write,e.toString=K.toString,e.toLocaleString=K.toString,e.toJSON=K.toJSON,e.equals=K.equals,e.compare=K.compare,e.indexOf=K.indexOf,e.copy=K.copy,e.slice=K.slice,e.readUIntLE=K.readUIntLE,e.readUIntBE=K.readUIntBE,e.readUInt8=K.readUInt8,e.readUInt16LE=K.readUInt16LE,e.readUInt16BE=K.readUInt16BE,e.readUInt32LE=K.readUInt32LE,e.readUInt32BE=K.readUInt32BE,e.readIntLE=K.readIntLE,e.readIntBE=K.readIntBE,e.readInt8=K.readInt8,e.readInt16LE=K.readInt16LE,e.readInt16BE=K.readInt16BE,e.readInt32LE=K.readInt32LE,e.readInt32BE=K.readInt32BE,e.readFloatLE=K.readFloatLE,e.readFloatBE=K.readFloatBE,e.readDoubleLE=K.readDoubleLE,e.readDoubleBE=K.readDoubleBE,e.writeUInt8=K.writeUInt8,e.writeUIntLE=K.writeUIntLE,e.writeUIntBE=K.writeUIntBE,e.writeUInt16LE=K.writeUInt16LE,e.writeUInt16BE=K.writeUInt16BE,e.writeUInt32LE=K.writeUInt32LE,e.writeUInt32BE=K.writeUInt32BE,e.writeIntLE=K.writeIntLE,e.writeIntBE=K.writeIntBE,e.writeInt8=K.writeInt8,e.writeInt16LE=K.writeInt16LE,e.writeInt16BE=K.writeInt16BE,e.writeInt32LE=K.writeInt32LE,e.writeInt32BE=K.writeInt32BE,e.writeFloatLE=K.writeFloatLE,e.writeFloatBE=K.writeFloatBE,e.writeDoubleLE=K.writeDoubleLE,e.writeDoubleBE=K.writeDoubleBE,e.fill=K.fill,e.inspect=K.inspect,e.toArrayBuffer=K.toArrayBuffer,e};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(20).Buffer,function(){return this}())},function(t,e,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){function e(t){var e=t.charCodeAt(0);return e===a||e===l?62:e===u||e===h?63:s>e?-1:s+10>e?e-s+26+26:f+26>e?e-f:c+26>e?e-c+26:void 0}function n(t){function n(t){c[l++]=t}var r,i,a,u,s,c;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=t.length;s="="===t.charAt(f-2)?2:"="===t.charAt(f-1)?1:0,c=new o(3*t.length/4-s),a=s>0?t.length-4:t.length;var l=0;for(r=0,i=0;a>r;r+=4,i+=3)u=e(t.charAt(r))<<18|e(t.charAt(r+1))<<12|e(t.charAt(r+2))<<6|e(t.charAt(r+3)),n((16711680&u)>>16),n((65280&u)>>8),n(255&u);return 2===s?(u=e(t.charAt(r))<<2|e(t.charAt(r+1))>>4,n(255&u)):1===s&&(u=e(t.charAt(r))<<10|e(t.charAt(r+1))<<4|e(t.charAt(r+2))>>2,n(u>>8&255),n(255&u)),c}function i(t){function e(t){return r.charAt(t)}function n(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var i,o,a,u=t.length%3,s="";for(i=0,a=t.length-u;a>i;i+=3)o=(t[i]<<16)+(t[i+1]<<8)+t[i+2],s+=n(o);switch(u){case 1:o=t[t.length-1],s+=e(o>>2),s+=e(o<<4&63),s+="==";break;case 2:o=(t[t.length-2]<<8)+t[t.length-1],s+=e(o>>10),s+=e(o>>4&63),s+=e(o<<2&63),s+="="}return s}var o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="+".charCodeAt(0),u="/".charCodeAt(0),s="0".charCodeAt(0),c="a".charCodeAt(0),f="A".charCodeAt(0),l="-".charCodeAt(0),h="_".charCodeAt(0);t.toByteArray=n,t.fromByteArray=i}(e)},function(t,e){"use strict";e.read=function(t,e,n,r,i){var o,a,u=8*i-r-1,s=(1<>1,f=-7,l=n?i-1:0,h=n?-1:1,p=t[e+l];for(l+=h,o=p&(1<<-f)-1,p>>=-f,f+=u;f>0;o=256*o+t[e+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=r;f>0;a=256*a+t[e+l],l+=h,f-=8);if(0===o)o=1-c;else{if(o===s)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,u,s,c=8*o-i-1,f=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,d=r?1:-1,_=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),e+=a+l>=1?h/s:h*Math.pow(2,1-l),e*s>=2&&(a++,s/=2),a+l>=f?(u=0,a=f):a+l>=1?(u=(e*s-1)*Math.pow(2,i),a+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;t[n+p]=255&u,p+=d,u/=256,i-=8);for(a=a<0;t[n+p]=255&a,p+=d,a/=256,c-=8);t[n+p-d]|=128*_}},function(t,e){"use strict";var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){(function(t){"use strict";function r(){var t=[].slice.call(arguments).join(" ");throw new Error([t,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}function i(t,e){for(var n in t)e(t[n],n)}var o=n(25);e.createHash=n(27),e.createHmac=n(40),e.randomBytes=function(e,n){if(!n||!n.call)return new t(o(e));try{n.call(this,void 0,new t(o(e)))}catch(r){n(r)}},e.getHashes=function(){return["sha1","sha256","sha512","md5","rmd160"]};var a=n(41)(e);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync,i(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman"],function(t){e[t]=function(){r("sorry,",t,"is not implemented yet")}})}).call(e,n(20).Buffer)},function(t,e,n){(function(e,r){"use strict";!function(){var i=("undefined"==typeof window?e:window)||{};_crypto=i.crypto||i.msCrypto||n(26),t.exports=function(t){if(_crypto.getRandomValues){var e=new r(t);return _crypto.getRandomValues(e),e}if(_crypto.randomBytes)return _crypto.randomBytes(t);throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}()}).call(e,function(){return this}(),n(20).Buffer)},function(t,e){},function(t,e,n){(function(e){"use strict";function r(t){return function(){var n=[],r={update:function(t,r){return e.isBuffer(t)||(t=new e(t,r)),n.push(t),this},digest:function(r){var i=e.concat(n),o=t(i);return n=null,r?o.toString(r):o}};return r}}var i=n(28),o=r(n(37)),a=r(n(39));t.exports=function(t){return"md5"===t?new o:"rmd160"===t?new a:i(t)}}).call(e,n(20).Buffer)},function(t,e,n){"use strict";var r=t.exports=function(t){var e=r[t];if(!e)throw new Error(t+" is not supported (we accept pull requests)");return new e},i=n(20).Buffer,o=n(29)(i);r.sha1=n(30)(i,o),r.sha256=n(35)(i,o),r.sha512=n(36)(i,o)},function(t,e){"use strict";t.exports=function(t){function e(e,n){this._block=new t(e),this._finalSize=n,this._blockSize=e,this._len=0,this._s=0}return e.prototype.init=function(){this._s=0,this._len=0},e.prototype.update=function(e,n){"string"==typeof e&&(n=n||"utf8",e=new t(e,n));for(var r=this._len+=e.length,i=this._s=this._s||0,o=0,a=this._block;r>i;){for(var u=Math.min(e.length,o+this._blockSize-i%this._blockSize),s=u-o,c=0;s>c;c++)a[i%this._blockSize+c]=e[c+o];i+=s,o+=s,i%this._blockSize===0&&this._update(a)}return this._s=i,this},e.prototype.digest=function(t){var e=8*this._len;this._block[this._len%this._blockSize]=128,this._block.fill(0,this._len%this._blockSize+1),e%(8*this._blockSize)>=8*this._finalSize&&(this._update(this._block),this._block.fill(0)),this._block.writeInt32BE(e,this._blockSize-4);var n=this._update(this._block)||this._hash();return t?n.toString(t):n},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e}},function(t,e,n){"use strict";var r=n(31).inherits;t.exports=function(t,e){function n(){return d.length?d.pop().init():this instanceof n?(this._w=p,e.call(this,64,56),this._h=null,void this.init()):new n}function i(t,e,n,r){return 20>t?e&n|~e&r:40>t?e^n^r:60>t?e&n|e&r|n&r:e^n^r}function o(t){return 20>t?1518500249:40>t?1859775393:60>t?-1894007588:-899497514}function a(t,e){return t+e|0}function u(t,e){return t<>>32-e}var s=0,c=4,f=8,l=12,h=16,p=new("undefined"==typeof Int32Array?Array:Int32Array)(80),d=[];return r(n,e),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,e.prototype.init.call(this),this},n.prototype._POOL=d,n.prototype._update=function(t){var e,n,r,s,c,f,l,h,p,d;e=f=this._a,n=l=this._b,r=h=this._c,s=p=this._d,c=d=this._e;for(var _=this._w,v=0;80>v;v++){var g=_[v]=16>v?t.readInt32BE(4*v):u(_[v-3]^_[v-8]^_[v-14]^_[v-16],1),y=a(a(u(e,5),i(v,n,r,s)),a(a(c,g),o(v)));c=s,s=r,r=u(n,30),n=e,e=y}this._a=a(e,f),this._b=a(n,l),this._c=a(r,h),this._d=a(s,p),this._e=a(c,d)},n.prototype._hash=function(){d.length<100&&d.push(this);var e=new t(20);return e.writeInt32BE(0|this._a,s),e.writeInt32BE(0|this._b,c),e.writeInt32BE(0|this._c,f),e.writeInt32BE(0|this._d,l),e.writeInt32BE(0|this._e,h),e},n}},function(t,e,n){(function(t,r){"use strict";function i(t,n){var r={seen:[],stylize:a};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),_(n)?r.showHidden=n:n&&e._extend(r,n),b(r.showHidden)&&(r.showHidden=!1),b(r.depth)&&(r.depth=2),b(r.colors)&&(r.colors=!1),b(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),s(r,t,r.depth)}function o(t,e){var n=i.styles[e];return n?"["+i.colors[n][0]+"m"+t+"["+i.colors[n][1]+"m":t}function a(t,e){return t}function u(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function s(t,n,r){if(t.customInspect&&n&&x(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return w(i)||(i=s(t,i,r)),i}var o=c(t,n);if(o)return o;var a=Object.keys(n),_=u(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),B(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(x(n)){var v=n.name?": "+n.name:"";return t.stylize("[Function"+v+"]","special")}if(E(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(A(n))return t.stylize(Date.prototype.toString.call(n),"date");if(B(n))return f(n)}var g="",y=!1,m=["{","}"];if(d(n)&&(y=!0,m=["[","]"]),x(n)){var b=n.name?": "+n.name:"";g=" [Function"+b+"]"}if(E(n)&&(g=" "+RegExp.prototype.toString.call(n)),A(n)&&(g=" "+Date.prototype.toUTCString.call(n)),B(n)&&(g=" "+f(n)),0===a.length&&(!y||0==n.length))return m[0]+g+m[1];if(0>r)return E(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var S;return S=y?l(t,n,r,_,a):a.map(function(e){return h(t,n,r,_,e,y)}),t.seen.pop(),p(S,g,m)}function c(t,e){if(b(e))return t.stylize("undefined","undefined");if(w(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return y(e)?t.stylize(""+e,"number"):_(e)?t.stylize(""+e,"boolean"):v(e)?t.stylize("null","null"):void 0}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function l(t,e,n,r,i){for(var o=[],a=0,u=e.length;u>a;++a)k(e,String(a))?o.push(h(t,e,n,r,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(t,e,n,r,i,!0))}),o}function h(t,e,n,r,i,o){var a,u,c;if(c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},c.get?u=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(u=t.stylize("[Setter]","special")),k(r,i)||(a="["+i+"]"),u||(t.seen.indexOf(c.value)<0?(u=v(n)?s(t,c.value,null):s(t,c.value,n-1),u.indexOf("\n")>-1&&(u=o?u.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+u.split("\n").map(function(t){return" "+t}).join("\n"))):u=t.stylize("[Circular]","special")),b(a)){if(o&&i.match(/^\d+$/))return u;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+u}function p(t,e,n){var r=0,i=t.reduce(function(t,e){return r++,e.indexOf("\n")>=0&&r++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function d(t){return Array.isArray(t)}function _(t){return"boolean"==typeof t}function v(t){return null===t}function g(t){return null==t}function y(t){return"number"==typeof t}function w(t){return"string"==typeof t}function m(t){return"symbol"===("undefined"==typeof t?"undefined":U(t))}function b(t){return void 0===t}function E(t){return S(t)&&"[object RegExp]"===T(t)}function S(t){return"object"===("undefined"==typeof t?"undefined":U(t))&&null!==t}function A(t){return S(t)&&"[object Date]"===T(t)}function B(t){return S(t)&&("[object Error]"===T(t)||t instanceof Error)}function x(t){return"function"==typeof t}function O(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===("undefined"==typeof t?"undefined":U(t))||"undefined"==typeof t}function T(t){return Object.prototype.toString.call(t)}function I(t){return 10>t?"0"+t.toString(10):t.toString(10)}function R(){var t=new Date,e=[I(t.getHours()),I(t.getMinutes()),I(t.getSeconds())].join(":");return[t.getDate(),$[t.getMonth()],e].join(" ")}function k(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},D=/%[sdj%]/g;e.format=function(t){if(!w(t)){for(var e=[],n=0;n=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return t}}),u=r[n];o>n;u=r[++n])a+=v(u)||!S(u)?" "+u:" "+i(u);return a},e.deprecate=function(n,i){function o(){if(!a){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?console.trace(i):console.error(i),a=!0}return n.apply(this,arguments)}if(b(t.process))return function(){return e.deprecate(n,i).apply(this,arguments)};if(r.noDeprecation===!0)return n;var a=!1;return o};var L,P={};e.debuglog=function(t){if(b(L)&&(L=r.env.NODE_DEBUG||""),t=t.toUpperCase(),!P[t])if(new RegExp("\\b"+t+"\\b","i").test(L)){var n=r.pid;P[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else P[t]=function(){};return P[t]},e.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=_,e.isNull=v,e.isNullOrUndefined=g,e.isNumber=y,e.isString=w,e.isSymbol=m,e.isUndefined=b,e.isRegExp=E,e.isObject=S,e.isDate=A,e.isError=B,e.isFunction=x,e.isPrimitive=O,e.isBuffer=n(33);var $=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.log=function(){console.log("%s - %s",R(),e.format.apply(e,arguments))},e.inherits=n(34),e._extend=function(t,e){if(!e||!S(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}}).call(e,function(){return this}(),n(32))},function(t,e){"use strict";function n(){c=!1,a.length?s=a.concat(s):f=-1,s.length&&r()}function r(){if(!c){var t=setTimeout(n);c=!0;for(var e=s.length;e;){for(a=s,s=[];++f1)for(var n=1;n>>e|t<<32-e}function o(t,e){return t>>>e}function a(t,e,n){return t&e^~t&n}function u(t,e,n){return t&e^t&n^e&n}function s(t){return i(t,2)^i(t,13)^i(t,22)}function c(t){return i(t,6)^i(t,11)^i(t,25)}function f(t){return i(t,7)^i(t,18)^o(t,3)}function l(t){return i(t,17)^i(t,19)^o(t,10)}var h=[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=new Array(64);return r(n,e),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._len=this._s=0,this},n.prototype._update=function(t){var e,n,r,i,o,p,d,_,v,g,y=this._w;e=0|this._a,n=0|this._b,r=0|this._c,i=0|this._d,o=0|this._e,p=0|this._f,d=0|this._g,_=0|this._h;for(var w=0;64>w;w++){var m=y[w]=16>w?t.readInt32BE(4*w):l(y[w-2])+y[w-7]+f(y[w-15])+y[w-16];v=_+c(o)+a(o,p,d)+h[w]+m,g=s(e)+u(e,n,r),_=d,d=p,p=o,o=i+v,i=r,r=n,n=e,e=v+g}this._a=e+this._a|0,this._b=n+this._b|0,this._c=r+this._c|0,this._d=i+this._d|0,this._e=o+this._e|0,this._f=p+this._f|0,this._g=d+this._g|0,this._h=_+this._h|0},n.prototype._hash=function(){var e=new t(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},n}},function(t,e,n){"use strict";var r=n(31).inherits;t.exports=function(t,e){function n(){this.init(),this._w=s,e.call(this,128,112)}function i(t,e,n){return t>>>n|e<<32-n}function o(t,e,n){return t&e^~t&n}function a(t,e,n){return t&e^t&n^e&n}var u=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);return r(n,e),n.prototype.init=function(){return this._a=1779033703,this._b=-1150833019,this._c=1013904242,this._d=-1521486534,this._e=1359893119,this._f=-1694144372,this._g=528734635,this._h=1541459225,this._al=-205731576,this._bl=-2067093701,this._cl=-23791573,this._dl=1595750129,this._el=-1377402159,this._fl=725511199,this._gl=-79577749,this._hl=327033209,this._len=this._s=0,this},n.prototype._update=function(t){var e,n,r,s,c,f,l,h,p,d,_,v,g,y,w,m,b=this._w;e=0|this._a,n=0|this._b,r=0|this._c,s=0|this._d,c=0|this._e,f=0|this._f,l=0|this._g,h=0|this._h,p=0|this._al,d=0|this._bl,_=0|this._cl,v=0|this._dl,g=0|this._el,y=0|this._fl,w=0|this._gl,m=0|this._hl;for(var E=0;80>E;E++){var S,A,B=2*E;if(16>E)S=b[B]=t.readInt32BE(4*B),A=b[B+1]=t.readInt32BE(4*B+4);else{var x=b[B-30],O=b[B-30+1],T=i(x,O,1)^i(x,O,8)^x>>>7,I=i(O,x,1)^i(O,x,8)^i(O,x,7);x=b[B-4],O=b[B-4+1];var R=i(x,O,19)^i(O,x,29)^x>>>6,k=i(O,x,19)^i(x,O,29)^i(O,x,6),U=b[B-14],D=b[B-14+1],L=b[B-32],P=b[B-32+1];A=I+D,S=T+U+(I>>>0>A>>>0?1:0),A+=k,S=S+R+(k>>>0>A>>>0?1:0),A+=P,S=S+L+(P>>>0>A>>>0?1:0),b[B]=S,b[B+1]=A}var $=a(e,n,r),M=a(p,d,_),j=i(e,p,28)^i(p,e,2)^i(p,e,7),C=i(p,e,28)^i(e,p,2)^i(e,p,7),Y=i(c,g,14)^i(c,g,18)^i(g,c,9),N=i(g,c,14)^i(g,c,18)^i(c,g,9),z=u[B],F=u[B+1],H=o(c,f,l),J=o(g,y,w),q=m+N,G=h+Y+(m>>>0>q>>>0?1:0);q+=J,G=G+H+(J>>>0>q>>>0?1:0),q+=F,G=G+z+(F>>>0>q>>>0?1:0),q+=A,G=G+S+(A>>>0>q>>>0?1:0);var V=C+M,W=j+$+(C>>>0>V>>>0?1:0);h=l,m=w,l=f,w=y,f=c,y=g,g=v+q|0,c=s+G+(v>>>0>g>>>0?1:0)|0,s=r,v=_,r=n,_=d,n=e,d=p,p=q+V|0,e=G+W+(q>>>0>p>>>0?1:0)|0}this._al=this._al+p|0,this._bl=this._bl+d|0,this._cl=this._cl+_|0,this._dl=this._dl+v|0,this._el=this._el+g|0,this._fl=this._fl+y|0,this._gl=this._gl+w|0,this._hl=this._hl+m|0,this._a=this._a+e+(this._al>>>0

>>0?1:0)|0,this._b=this._b+n+(this._bl>>>0>>0?1:0)|0,this._c=this._c+r+(this._cl>>>0<_>>>0?1:0)|0,this._d=this._d+s+(this._dl>>>0>>0?1:0)|0,this._e=this._e+c+(this._el>>>0>>0?1:0)|0,this._f=this._f+f+(this._fl>>>0>>0?1:0)|0,this._g=this._g+l+(this._gl>>>0>>0?1:0)|0,this._h=this._h+h+(this._hl>>>0>>0?1:0)|0},n.prototype._hash=function(){function e(t,e,r){n.writeInt32BE(t,r),n.writeInt32BE(e,r+4)}var n=new t(64);return e(this._a,this._al,0),e(this._b,this._bl,8),e(this._c,this._cl,16),e(this._d,this._dl,24),e(this._e,this._el,32),e(this._f,this._fl,40),e(this._g,this._gl,48),e(this._h,this._hl,56),n},n}},function(t,e,n){"use strict";function r(t,e){t[e>>5]|=128<>>9<<4)+14]=e;for(var n=1732584193,r=-271733879,i=-1732584194,f=271733878,l=0;l>16)+(e>>16)+(n>>16);return r<<16|65535&n}function f(t,e){return t<>>32-e}var l=n(38);t.exports=function(t){return l.hash(t,r,16)}},function(t,e,n){(function(e){"use strict";function n(t,n){if(t.length%o!==0){var r=t.length+(o-t.length%o);t=e.concat([t,a],r)}for(var i=[],u=n?t.readInt32BE:t.readInt32LE,s=0;s>>32-e}function s(t){var n=[1732584193,4023233417,2562383102,271733878,3285377520];"string"==typeof t&&(t=new e(t,"utf8"));var r=_(t),i=8*t.length,o=8*t.length;r[i>>>5]|=128<<24-i%32,r[(i+64>>>9<<4)+14]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);for(var a=0;aa;a++){var u=n[a];n[a]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}var s=v(n);return new e(s)}t.exports=s;/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -15,9 +15,9 @@ a.push(new i(t,e)),1!==a.length||f||setTimeout(r,0)},i.prototype.run=function(){ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -var f=[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],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],l=[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],h=[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],p=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0],g=function(t){for(var e=[],n=0,r=0;n>>5]|=t[n]<<24-r%32;return e},y=function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},v=function(t,e,a){for(var g=0;16>g;g++){var y=a+g,v=e[y];e[y]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8)}var _,w,b,m,E,A,B,S,x,I;A=_=t[0],B=w=t[1],S=b=t[2],x=m=t[3],I=E=t[4];for(var R,g=0;80>g;g+=1)R=_+e[a+f[g]]|0,R+=16>g?n(w,b,m)+p[0]:32>g?r(w,b,m)+p[1]:48>g?i(w,b,m)+p[2]:64>g?o(w,b,m)+p[3]:u(w,b,m)+p[4],R=0|R,R=s(R,l[g]),R=R+E|0,_=E,E=m,m=s(b,10),b=w,w=R,R=A+e[a+c[g]]|0,R+=16>g?u(B,S,x)+d[0]:32>g?o(B,S,x)+d[1]:48>g?i(B,S,x)+d[2]:64>g?r(B,S,x)+d[3]:n(B,S,x)+d[4],R=0|R,R=s(R,h[g]),R=R+I|0,A=I,I=x,x=s(S,10),S=B,B=R;R=t[1]+b+x|0,t[1]=t[2]+m+I|0,t[2]=t[3]+E+A|0,t[3]=t[4]+_+B|0,t[4]=t[0]+w+S|0,t[0]=R}}).call(e,n(15).Buffer)},function(t,e,n){(function(e){"use strict";function r(t,n){if(!(this instanceof r))return new r(t,n);this._opad=a,this._alg=t;var u="sha512"===t?128:64;n=this._key=e.isBuffer(n)?n:new e(n),n.length>u?n=i(t).update(n).digest():n.lengthf;f++)s[f]=54^n[f],a[f]=92^n[f];this._hash=i(t).update(s)}var i=n(22),o=new e(128);o.fill(0),t.exports=r,r.prototype.update=function(t,e){return this._hash.update(t,e),this},r.prototype.digest=function(t){var e=this._hash.digest();return i(this._alg).update(this._opad).update(e).digest(t)}}).call(e,n(15).Buffer)},function(t,e,n){"use strict";var r=n(37);t.exports=function(t,e){e=e||{};var n=r(t);return e.pbkdf2=n.pbkdf2,e.pbkdf2Sync=n.pbkdf2Sync,e}},function(t,e,n){(function(e){"use strict";t.exports=function(t){function n(t,e,n,i,o,u){if("function"==typeof o&&(u=o,o=void 0),"function"!=typeof u)throw new Error("No callback provided to pbkdf2");setTimeout(function(){var s;try{s=r(t,e,n,i,o)}catch(a){return u(a)}u(void 0,s)})}function r(n,r,i,o,u){if("number"!=typeof i)throw new TypeError("Iterations not a number");if(0>i)throw new TypeError("Bad iterations");if("number"!=typeof o)throw new TypeError("Key length not a number");if(0>o)throw new TypeError("Bad key length");u=u||"sha1",e.isBuffer(n)||(n=new e(n)),e.isBuffer(r)||(r=new e(r));var s,a,f,c=1,l=new e(o),h=new e(r.length+4);r.copy(h,0,0,r.length);for(var p=1;c>=p;p++){h.writeUInt32BE(p,r.length);var d=t.createHmac(u,n).update(h).digest();if(!s&&(s=d.length,f=new e(s),c=Math.ceil(o/s),a=o-(c-1)*s,o>(Math.pow(2,32)-1)*s))throw new TypeError("keylen exceeds maximum length");d.copy(f,0,0,s);for(var g=1;i>g;g++){d=t.createHmac(u,n).update(d).digest();for(var y=0;s>y;y++)f[y]^=d[y]}var v=(p-1)*s,_=p==c?a:s;f.copy(l,v,0,_)}return l}return{pbkdf2:n,pbkdf2Sync:r}}}).call(e,n(15).Buffer)},function(t,e,n){var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};/*! +var c=[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],f=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],l=[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],h=[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],p=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0],_=function(t){for(var e=[],n=0,r=0;n>>5]|=t[n]<<24-r%32;return e},v=function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},g=function(t,e,s){for(var _=0;16>_;_++){var v=s+_,g=e[v];e[v]=16711935&(g<<8|g>>>24)|4278255360&(g<<24|g>>>8)}var y,w,m,b,E,S,A,B,x,O;S=y=t[0],A=w=t[1],B=m=t[2],x=b=t[3],O=E=t[4];for(var T,_=0;80>_;_+=1)T=y+e[s+c[_]]|0,T+=16>_?n(w,m,b)+p[0]:32>_?r(w,m,b)+p[1]:48>_?i(w,m,b)+p[2]:64>_?o(w,m,b)+p[3]:a(w,m,b)+p[4],T=0|T,T=u(T,l[_]),T=T+E|0,y=E,E=b,b=u(m,10),m=w,w=T,T=S+e[s+f[_]]|0,T+=16>_?a(A,B,x)+d[0]:32>_?o(A,B,x)+d[1]:48>_?i(A,B,x)+d[2]:64>_?r(A,B,x)+d[3]:n(A,B,x)+d[4],T=0|T,T=u(T,h[_]),T=T+O|0,S=O,O=x,x=u(B,10),B=A,A=T;T=t[1]+m+x|0,t[1]=t[2]+b+O|0,t[2]=t[3]+E+S|0,t[3]=t[4]+y+A|0,t[4]=t[0]+w+B|0,t[0]=T}}).call(e,n(20).Buffer)},function(t,e,n){(function(e){"use strict";function r(t,n){if(!(this instanceof r))return new r(t,n);this._opad=s,this._alg=t;var a="sha512"===t?128:64;n=this._key=e.isBuffer(n)?n:new e(n),n.length>a?n=i(t).update(n).digest():n.lengthc;c++)u[c]=54^n[c],s[c]=92^n[c];this._hash=i(t).update(u)}var i=n(27),o=new e(128);o.fill(0),t.exports=r,r.prototype.update=function(t,e){return this._hash.update(t,e),this},r.prototype.digest=function(t){var e=this._hash.digest();return i(this._alg).update(this._opad).update(e).digest(t)}}).call(e,n(20).Buffer)},function(t,e,n){"use strict";var r=n(42);t.exports=function(t,e){e=e||{};var n=r(t);return e.pbkdf2=n.pbkdf2,e.pbkdf2Sync=n.pbkdf2Sync,e}},function(t,e,n){(function(e){"use strict";t.exports=function(t){function n(t,e,n,i,o,a){if("function"==typeof o&&(a=o,o=void 0),"function"!=typeof a)throw new Error("No callback provided to pbkdf2");setTimeout(function(){var u;try{u=r(t,e,n,i,o)}catch(s){return a(s)}a(void 0,u)})}function r(n,r,i,o,a){if("number"!=typeof i)throw new TypeError("Iterations not a number");if(0>i)throw new TypeError("Bad iterations");if("number"!=typeof o)throw new TypeError("Key length not a number");if(0>o)throw new TypeError("Bad key length");a=a||"sha1",e.isBuffer(n)||(n=new e(n)),e.isBuffer(r)||(r=new e(r));var u,s,c,f=1,l=new e(o),h=new e(r.length+4);r.copy(h,0,0,r.length);for(var p=1;f>=p;p++){h.writeUInt32BE(p,r.length);var d=t.createHmac(a,n).update(h).digest();if(!u&&(u=d.length,c=new e(u),f=Math.ceil(o/u),s=o-(f-1)*u,o>(Math.pow(2,32)-1)*u))throw new TypeError("keylen exceeds maximum length");d.copy(c,0,0,u);for(var _=1;i>_;_++){d=t.createHmac(a,n).update(d).digest();for(var v=0;u>v;v++)c[v]^=d[v]}var g=(p-1)*u,y=p==f?s:u;c.copy(l,g,0,y)}return l}return{pbkdf2:n,pbkdf2Sync:r}}}).call(e,n(20).Buffer)},function(t,e,n){var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};/*! * artTemplate - Template Engine * https://github.com/aui/artTemplate * Released under the MIT, BSD, and GPL Licenses */ -!function(){function o(t){return t.replace(B,"").replace(S,",").replace(x,"").replace(I,"").replace(R,"").split(T)}function u(t){return"'"+t.replace(/('|\\)/g,"\\$1").replace(/\r/g,"\\r").replace(/\n/g,"\\n")+"'"}function s(t,e){function n(t){return h+=t.split(/\n/).length-1,c&&(t=t.replace(/\s+/g," ").replace(//g,"")),t&&(t=g[1]+u(t)+g[2]+"\n"),t}function r(t){var n=h;if(f?t=f(t,e):i&&(t=t.replace(/\n/g,function(){return h++,"$line="+h+";"})),0===t.indexOf("=")){var r=l&&!/^=[=#]/.test(t);if(t=t.replace(/^=[=#]?|[\s;]*$/g,""),r){var u=t.replace(/\s*\([^\)]+\)/,"");_[u]||/^(include|print)$/.test(u)||(t="$escape("+t+")")}else t="$string("+t+")";t=g[1]+t+g[2]}return i&&(t="$line="+n+";"+t),E(o(t),function(t){if(t&&!p[t]){var e;e="print"===t?v:"include"===t?b:_[t]?"$utils."+t:w[t]?"$helpers."+t:"$data."+t,m+=t+"="+e+",",p[t]=!0}}),t+"\n"}var i=e.debug,s=e.openTag,a=e.closeTag,f=e.parser,c=e.compress,l=e.escape,h=1,p={$data:1,$filename:1,$utils:1,$helpers:1,$out:1,$line:1},d="".trim,g=d?["$out='';","$out+=",";","$out"]:["$out=[];","$out.push(",");","$out.join('')"],y=d?"$out+=text;return $out;":"$out.push(text);",v="function(){var text=''.concat.apply('',arguments);"+y+"}",b="function(filename,data){data=data||$data;var text=$utils.$include(filename,data,$filename);"+y+"}",m="'use strict';var $utils=this,$helpers=$utils.$helpers,"+(i?"$line=0,":""),A=g[0],B="return new String("+g[3]+");";E(t.split(s),function(t){t=t.split(a);var e=t[0],i=t[1];1===t.length?A+=n(e):(A+=r(e),i&&(A+=n(i)))});var S=m+A+B;i&&(S="try{"+S+"}catch(e){throw {filename:$filename,name:'Render Error',message:e.message,line:$line,source:"+u(t)+".split(/\\n/)[$line-1].replace(/^\\s+/,'')};}");try{var x=new Function("$data","$filename",S);return x.prototype=_,x}catch(I){throw I.temp="function anonymous($data,$filename) {"+S+"}",I}}var a=function(t,e){return"string"==typeof e?m(e,{filename:t}):l(t,e)};a.version="3.0.0",a.config=function(t,e){f[t]=e};var f=a.defaults={openTag:"<%",closeTag:"%>",escape:!0,cache:!0,compress:!1,parser:null},c=a.cache={};a.render=function(t,e){return m(t,e)};var l=a.renderFile=function(t,e){var n=a.get(t)||b({filename:t,name:"Render Error",message:"Template not found"});return e?n(e):n};a.get=function(t){var e;if(c[t])e=c[t];else if("object"===("undefined"==typeof document?"undefined":i(document))){var n=document.getElementById(t);if(n){var r=(n.value||n.innerHTML).replace(/^\s*|\s*$/g,"");e=m(r,{filename:t})}}return e};var h=function O(t,e){return"string"!=typeof t&&(e="undefined"==typeof t?"undefined":i(t),"number"===e?t+="":t="function"===e?O(t.call(t)):""),t},p={"<":"<",">":">",'"':""","'":"'","&":"&"},d=function(t){return p[t]},g=function(t){return h(t).replace(/&(?![\w#]+;)|[<>"']/g,d)},y=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},v=function(t,e){var n,r;if(y(t))for(n=0,r=t.length;r>n;n++)e.call(t,t[n],n,t);else for(n in t)e.call(t,t[n],n)},_=a.utils={$helpers:{},$include:l,$string:h,$escape:g,$each:v};a.helper=function(t,e){w[t]=e};var w=a.helpers=_.$helpers;a.onerror=function(t){var e="Template Error\n\n";for(var n in t)e+="<"+n+">\n"+t[n]+"\n\n";"object"===("undefined"==typeof console?"undefined":i(console))&&console.error(e)};var b=function(t){return a.onerror(t),function(){return"{Template Error}"}},m=a.compile=function(t,e){function n(n){try{return new o(n,i)+""}catch(r){return e.debug?b(r)():(e.debug=!0,m(t,e)(n))}}e=e||{};for(var r in f)void 0===e[r]&&(e[r]=f[r]);var i=e.filename;try{var o=s(t,e)}catch(u){return u.filename=i||"anonymous",u.name="Syntax Error",b(u)}return n.prototype=o.prototype,n.toString=function(){return o.toString()},i&&e.cache&&(c[i]=n),n},E=_.$each,A="break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,undefined",B=/\/\*[\w\W]*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|"(?:[^"\\]|\\[\w\W])*"|'(?:[^'\\]|\\[\w\W])*'|\s*\.\s*[$\w\.]+/g,S=/[^\w$]+/g,x=new RegExp(["\\b"+A.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),I=/^\d[^,]*|,\d[^,]*/g,R=/^,+|,+$/g,T=/^$|,+/;f.openTag="{{",f.closeTag="}}";var U=function(t,e){var n=e.split(":"),r=n.shift(),i=n.join(":")||"";return i&&(i=", "+i),"$helpers."+r+"("+t+i+")"};f.parser=function(t,e){t=t.replace(/^\s/,"");var n=t.split(" "),r=n.shift(),i=n.join(" ");switch(r){case"if":t="if("+i+"){";break;case"else":n="if"===n.shift()?" if("+n.join(" ")+")":"",t="}else"+n+"{";break;case"/if":t="}";break;case"each":var o=n[0]||"$data",u=n[1]||"as",s=n[2]||"$value",f=n[3]||"$index",c=s+","+f;"as"!==u&&(o="[]"),t="$each("+o+",function("+c+"){";break;case"/each":t="});";break;case"echo":t="print("+i+");";break;case"print":case"include":t=r+"("+n.join(",")+");";break;default:if(/^\s*\|\s*[\w\$]/.test(i)){var l=!0;0===t.indexOf("#")&&(t=t.substr(1),l=!1);for(var h=0,p=t.split("|"),d=p.length,g=p[h++];d>h;h++)g=U(g,p[h]);t=(l?"=":"=#")+g}else t=a.helpers[r]?"=#"+r+"("+n.join(",")+");":"="+t}return t},r=function(){return a}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}()},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={};e["default"]={TODOS:"todos",setData:function(t,e){return n[t]=e,this},getData:function(t){var e=arguments.length<=1||void 0===arguments[1]?null:arguments[1];return n[t]||e}}},function(t,e,n){"use strict";function r(){}Object.defineProperty(e,"__esModule",{value:!0}),e.debug=r},function(t,e,n){var r=n(42);"string"==typeof r&&(r=[[t.id,r,""]]);n(4)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(3)(),e.push([t.id,".todo__title___3xjQ7{margin:30px 0;font-weight:400;font-size:34px;color:#3cc51f;text-align:center}.todo__completed___2kevF{color:#999}",""]),e.locals={title:"todo__title___3xjQ7",completed:"todo__completed___2kevF"}},function(t,e){t.exports='

TODO

\n
\n

你想干嘛

\n
\n
\n
\n
\n \n
\n
\n
'},function(t,e){t.exports='{{each todos as todo i}}\n\n{{/each}}'}]); \ No newline at end of file +!function(){function o(t){return t.replace(A,"").replace(B,",").replace(x,"").replace(O,"").replace(T,"").split(I)}function a(t){return"'"+t.replace(/('|\\)/g,"\\$1").replace(/\r/g,"\\r").replace(/\n/g,"\\n")+"'"}function u(t,e){function n(t){return h+=t.split(/\n/).length-1,f&&(t=t.replace(/\s+/g," ").replace(//g,"")),t&&(t=_[1]+a(t)+_[2]+"\n"),t}function r(t){var n=h;if(c?t=c(t,e):i&&(t=t.replace(/\n/g,function(){return h++,"$line="+h+";"})),0===t.indexOf("=")){var r=l&&!/^=[=#]/.test(t);if(t=t.replace(/^=[=#]?|[\s;]*$/g,""),r){var a=t.replace(/\s*\([^\)]+\)/,"");y[a]||/^(include|print)$/.test(a)||(t="$escape("+t+")")}else t="$string("+t+")";t=_[1]+t+_[2]}return i&&(t="$line="+n+";"+t),E(o(t),function(t){if(t&&!p[t]){var e;e="print"===t?g:"include"===t?m:y[t]?"$utils."+t:w[t]?"$helpers."+t:"$data."+t,b+=t+"="+e+",",p[t]=!0}}),t+"\n"}var i=e.debug,u=e.openTag,s=e.closeTag,c=e.parser,f=e.compress,l=e.escape,h=1,p={$data:1,$filename:1,$utils:1,$helpers:1,$out:1,$line:1},d="".trim,_=d?["$out='';","$out+=",";","$out"]:["$out=[];","$out.push(",");","$out.join('')"],v=d?"$out+=text;return $out;":"$out.push(text);",g="function(){var text=''.concat.apply('',arguments);"+v+"}",m="function(filename,data){data=data||$data;var text=$utils.$include(filename,data,$filename);"+v+"}",b="'use strict';var $utils=this,$helpers=$utils.$helpers,"+(i?"$line=0,":""),S=_[0],A="return new String("+_[3]+");";E(t.split(u),function(t){t=t.split(s);var e=t[0],i=t[1];1===t.length?S+=n(e):(S+=r(e),i&&(S+=n(i)))});var B=b+S+A;i&&(B="try{"+B+"}catch(e){throw {filename:$filename,name:'Render Error',message:e.message,line:$line,source:"+a(t)+".split(/\\n/)[$line-1].replace(/^\\s+/,'')};}");try{var x=new Function("$data","$filename",B);return x.prototype=y,x}catch(O){throw O.temp="function anonymous($data,$filename) {"+B+"}",O}}var s=function(t,e){return"string"==typeof e?b(e,{filename:t}):l(t,e)};s.version="3.0.0",s.config=function(t,e){c[t]=e};var c=s.defaults={openTag:"<%",closeTag:"%>",escape:!0,cache:!0,compress:!1,parser:null},f=s.cache={};s.render=function(t,e){return b(t,e)};var l=s.renderFile=function(t,e){var n=s.get(t)||m({filename:t,name:"Render Error",message:"Template not found"});return e?n(e):n};s.get=function(t){var e;if(f[t])e=f[t];else if("object"===("undefined"==typeof document?"undefined":i(document))){var n=document.getElementById(t);if(n){var r=(n.value||n.innerHTML).replace(/^\s*|\s*$/g,"");e=b(r,{filename:t})}}return e};var h=function k(t,e){return"string"!=typeof t&&(e="undefined"==typeof t?"undefined":i(t),"number"===e?t+="":t="function"===e?k(t.call(t)):""),t},p={"<":"<",">":">",'"':""","'":"'","&":"&"},d=function(t){return p[t]},_=function(t){return h(t).replace(/&(?![\w#]+;)|[<>"']/g,d)},v=Array.isArray||function(t){return"[object Array]"==={}.toString.call(t)},g=function(t,e){var n,r;if(v(t))for(n=0,r=t.length;r>n;n++)e.call(t,t[n],n,t);else for(n in t)e.call(t,t[n],n)},y=s.utils={$helpers:{},$include:l,$string:h,$escape:_,$each:g};s.helper=function(t,e){w[t]=e};var w=s.helpers=y.$helpers;s.onerror=function(t){var e="Template Error\n\n";for(var n in t)e+="<"+n+">\n"+t[n]+"\n\n";"object"===("undefined"==typeof console?"undefined":i(console))&&console.error(e)};var m=function(t){return s.onerror(t),function(){return"{Template Error}"}},b=s.compile=function(t,e){function n(n){try{return new o(n,i)+""}catch(r){return e.debug?m(r)():(e.debug=!0,b(t,e)(n))}}e=e||{};for(var r in c)void 0===e[r]&&(e[r]=c[r]);var i=e.filename;try{var o=u(t,e)}catch(a){return a.filename=i||"anonymous",a.name="Syntax Error",m(a)}return n.prototype=o.prototype,n.toString=function(){return o.toString()},i&&e.cache&&(f[i]=n),n},E=y.$each,S="break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,undefined",A=/\/\*[\w\W]*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|"(?:[^"\\]|\\[\w\W])*"|'(?:[^'\\]|\\[\w\W])*'|\s*\.\s*[$\w\.]+/g,B=/[^\w$]+/g,x=new RegExp(["\\b"+S.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),O=/^\d[^,]*|,\d[^,]*/g,T=/^,+|,+$/g,I=/^$|,+/;c.openTag="{{",c.closeTag="}}";var R=function(t,e){var n=e.split(":"),r=n.shift(),i=n.join(":")||"";return i&&(i=", "+i),"$helpers."+r+"("+t+i+")"};c.parser=function(t,e){t=t.replace(/^\s/,"");var n=t.split(" "),r=n.shift(),i=n.join(" ");switch(r){case"if":t="if("+i+"){";break;case"else":n="if"===n.shift()?" if("+n.join(" ")+")":"",t="}else"+n+"{";break;case"/if":t="}";break;case"each":var o=n[0]||"$data",a=n[1]||"as",u=n[2]||"$value",c=n[3]||"$index",f=u+","+c;"as"!==a&&(o="[]"),t="$each("+o+",function("+f+"){";break;case"/each":t="});";break;case"echo":t="print("+i+");";break;case"print":case"include":t=r+"("+n.join(",")+");";break;default:if(/^\s*\|\s*[\w\$]/.test(i)){var l=!0;0===t.indexOf("#")&&(t=t.substr(1),l=!1);for(var h=0,p=t.split("|"),d=p.length,_=p[h++];d>h;h++)_=R(_,p[h]);t=(l?"=":"=#")+_}else t=s.helpers[r]?"=#"+r+"("+n.join(",")+");":"="+t}return t},r=function(){return s}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}()},function(t,e,n){var r=n(45);"string"==typeof r&&(r=[[t.id,r,""]]);n(4)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(3)(),e.push([t.id,".todo__title___3xjQ7{margin:30px 0;font-weight:400;font-size:34px;color:#3cc51f;text-align:center}.todo__item___12Stp{color:#222}.todo__completed___2kevF{color:#999!important}.todo__remark___3an0S{font-size:inherit!important}",""]),e.locals={title:"todo__title___3xjQ7",item:"todo__item___12Stp",completed:"todo__completed___2kevF",remark:"todo__remark___3an0S"}},function(t,e){t.exports='

TODO

\n
\n

你想干嘛

\n
\n\n{{if DEBUG}}\n
\n 清空\n
\n{{/if}}'},function(t,e){t.exports='{{each todos as todo i}}\n\n \n
\n {{if todo.status == 1}}\n

{{todo.title}}

\n {{else}}\n

{{todo.title}}

\n {{/if}}\n
\n
\n {{todo.remark.substring(0, 10)}}\n
\n
\n{{/each}}'},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),a=i(o);n(7);var u=n(19),s=(i(u),n(43)),c=i(s),f=n(17),l=i(f),h=n(15),p=r(h),d=n(16),_=i(d),v=n(49),g=i(v),y=n(51),w=i(y);e["default"]={url:"/detail/:id",render:function(){var t=this.params.id,e=l["default"].getData(_["default"].TODOS,[]),n=e.filter(function(e){return e.id==t})[0];return c["default"].compile(w["default"])({todo:n,styles:g["default"]})},bind:function(){var t=this;(0,a["default"])("#container").on("input","#title",function(){var e=t.params.id,n=l["default"].getData(_["default"].TODOS,[]),r=n.filter(function(t){return t.id==e})[0],i=(0,a["default"])(this).val();p.debug("inputting title",i),r.title=i,l["default"].setData(_["default"].TODOS,n)}).on("change","#finishTime",function(){var e=t.params.id,n=l["default"].getData(_["default"].TODOS,[]),r=n.filter(function(t){return t.id==e})[0],i=(0,a["default"])(this).val();p.debug("finishTime",i),r.finishTime=i,l["default"].setData(_["default"].TODOS,n)}).on("change","#status",function(){var e=t.params.id,n=l["default"].getData(_["default"].TODOS,[]),r=n.filter(function(t){return t.id==e})[0],i=(0,a["default"])(this).is(":checked");r.status=i?1:0,l["default"].setData(_["default"].TODOS,n)}).on("input","#remark",function(){var e=t.params.id,n=l["default"].getData(_["default"].TODOS,[]),r=n.filter(function(t){return t.id==e})[0],i=(0,a["default"])(this).val();p.debug("remark",i),r.remark=i,l["default"].setData(_["default"].TODOS,n)}).on("click","#back",function(){history.go(-1)}).on("click","#delete",function(){a["default"].weui.confirm("确定要删除改任务 ?",function(){var e=t.params.id,n=l["default"].getData(_["default"].TODOS,[]),r=n.filter(function(t){return t.id==e})[0];p.debug("确定删除"),l["default"].setData(_["default"].TODOS,p.removeFromArray(n,r)),history.go(-1)},function(){p.debug("不删除")})})}}},function(t,e,n){var r=n(50);"string"==typeof r&&(r=[[t.id,r,""]]);n(4)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(3)(),e.push([t.id,".detail__title___3Qw9U{margin:30px 0;font-weight:400;font-size:34px;color:#3cc51f;text-align:center}.detail__label___3gS0y{width:4em;margin-right:1em}",""]),e.locals={title:"detail__title___3Qw9U",label:"detail__label___3gS0y"}},function(t,e){t.exports='

TODO

\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n
\n

是否完成

\n
\n
\n \n
\n
\n
\n
备注说明
\n
\n
\n
\n \n
\n
\n
\n
\n 确认\n 删除\n
'}]); \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index 53de535..8fe21e1 100644 --- a/dist/index.html +++ b/dist/index.html @@ -4,6 +4,8 @@ TODO + + diff --git a/dist/vendor.bundle.js b/dist/vendor.bundle.js index 0e27989..14b4fb9 100644 --- a/dist/vendor.bundle.js +++ b/dist/vendor.bundle.js @@ -1,4 +1,4 @@ -!function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return e[n].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n=window.webpackJsonp;window.webpackJsonp=function(o,a){for(var s,u,l=0,c=[];lC.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[R]=!0,e}function r(e){var t=L.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),i=n.length;i--;)C.attrHandle[n[i]]=t}function a(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||U)-(~e.sourceIndex||U);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return i(function(t){return t=+t,i(function(n,i){for(var r,o=e([],n.length,t),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function d(e){for(var t=0,n=e.length,i="";n>t;t++)i+=e[t].value;return i}function p(e,t,n){var i=t.dir,r=n&&"parentNode"===i,o=B++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||r)return e(t,n,o)}:function(t,n,a){var s,u,l,c=[W,o];if(a){for(;t=t[i];)if((1===t.nodeType||r)&&e(t,n,a))return!0}else for(;t=t[i];)if(1===t.nodeType||r){if(l=t[R]||(t[R]={}),u=l[t.uniqueID]||(l[t.uniqueID]={}),(s=u[i])&&s[0]===W&&s[1]===o)return c[2]=s[2];if(u[i]=c,c[2]=e(t,n,a))return!0}}}function h(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function v(e,n,i){for(var r=0,o=n.length;o>r;r++)t(e,n[r],i);return i}function g(e,t,n,i,r){for(var o,a=[],s=0,u=e.length,l=null!=t;u>s;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),l&&t.push(s)));return a}function m(e,t,n,r,o,a){return r&&!r[R]&&(r=m(r)),o&&!o[R]&&(o=m(o,a)),i(function(i,a,s,u){var l,c,f,d=[],p=[],h=a.length,m=i||v(t||"*",s.nodeType?[s]:s,[]),y=!e||!i&&t?m:g(m,d,e,s,u),w=n?o||(i?e:h||r)?[]:a:y;if(n&&n(y,w,s,u),r)for(l=g(w,p),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(w[p[c]]=!(y[p[c]]=f));if(i){if(o||e){if(o){for(l=[],c=w.length;c--;)(f=w[c])&&l.push(y[c]=f);o(null,w=[],l,u)}for(c=w.length;c--;)(f=w[c])&&(l=o?ee(i,f):d[c])>-1&&(i[l]=!(a[l]=f))}}else w=g(w===a?w.splice(h,w.length):w),o?o(null,a,w,u):K.apply(a,w)})}function y(e){for(var t,n,i,r=e.length,o=C.relative[e[0].type],a=o||C.relative[" "],s=o?1:0,u=p(function(e){return e===t},a,!0),l=p(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,i){var r=!o&&(i||n!==N)||((t=n).nodeType?u(e,n,i):l(e,n,i));return t=null,r}];r>s;s++)if(n=C.relative[e[s].type])c=[p(h(c),n)];else{if(n=C.filter[e[s].type].apply(null,e[s].matches),n[R]){for(i=++s;r>i&&!C.relative[e[i].type];i++);return m(s>1&&h(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,i>s&&y(e.slice(s,i)),r>i&&y(e=e.slice(i)),r>i&&d(e))}c.push(n)}return h(c)}function w(e,n){var r=n.length>0,o=e.length>0,a=function(i,a,s,u,l){var c,f,d,p=0,h="0",v=i&&[],m=[],y=N,w=i||o&&C.find.TAG("*",l),x=W+=null==y?1:Math.random()||.1,b=w.length;for(l&&(N=a===L||a||l);h!==b&&null!=(c=w[h]);h++){if(o&&c){for(f=0,a||c.ownerDocument===L||(j(c),s=!H);d=e[f++];)if(d(c,a||L,s)){u.push(c);break}l&&(W=x)}r&&((c=!d&&c)&&p--,i&&v.push(c))}if(p+=h,r&&h!==p){for(f=0;d=n[f++];)d(v,m,a,s);if(i){if(p>0)for(;h--;)v[h]||m[h]||(m[h]=J.call(u));m=g(m)}K.apply(u,m),l&&!i&&m.length>0&&p+n.length>1&&t.uniqueSort(u)}return l&&(W=x,N=y),v};return r?i(a):a}var x,b,C,_,T,k,E,S,N,A,D,j,L,q,H,O,F,P,M,R="sizzle"+1*new Date,I=e.document,W=0,B=0,$=n(),X=n(),z=n(),Y=function(e,t){return e===t&&(D=!0),0},U=1<<31,V={}.hasOwnProperty,G=[],J=G.pop,Q=G.push,K=G.push,Z=G.slice,ee=function(e,t){for(var n=0,i=e.length;i>n;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",re="\\["+ne+"*("+ie+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+ne+"*\\]",oe=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+re+")*)|.*)\\)|)",ae=new RegExp(ne+"+","g"),se=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ue=new RegExp("^"+ne+"*,"+ne+"*"),le=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),ce=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new RegExp(oe),de=new RegExp("^"+ie+"$"),pe={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie+"|[*])"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,ve=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,me=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,we=/'|\\/g,xe=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),be=function(e,t,n){var i="0x"+t-65536;return i!==i||n?t:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},Ce=function(){j()};try{K.apply(G=Z.call(I.childNodes),I.childNodes),G[I.childNodes.length].nodeType}catch(_e){K={apply:G.length?function(e,t){Q.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}b=t.support={},T=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},j=t.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:I;return i!==L&&9===i.nodeType&&i.documentElement?(L=i,q=L.documentElement,H=!T(L),(n=L.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ce,!1):n.attachEvent&&n.attachEvent("onunload",Ce)),b.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),b.getElementsByTagName=r(function(e){return e.appendChild(L.createComment("")),!e.getElementsByTagName("*").length}),b.getElementsByClassName=ge.test(L.getElementsByClassName),b.getById=r(function(e){return q.appendChild(e).id=R,!L.getElementsByName||!L.getElementsByName(R).length}),b.getById?(C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&H){var n=t.getElementById(e);return n?[n]:[]}},C.filter.ID=function(e){var t=e.replace(xe,be);return function(e){return e.getAttribute("id")===t}}):(delete C.find.ID,C.filter.ID=function(e){var t=e.replace(xe,be);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),C.find.TAG=b.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):b.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},C.find.CLASS=b.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&H?t.getElementsByClassName(e):void 0},F=[],O=[],(b.qsa=ge.test(L.querySelectorAll))&&(r(function(e){q.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||O.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+R+"-]").length||O.push("~="),e.querySelectorAll(":checked").length||O.push(":checked"),e.querySelectorAll("a#"+R+"+*").length||O.push(".#.+[+~]")}),r(function(e){var t=L.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&O.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||O.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),O.push(",.*:")})),(b.matchesSelector=ge.test(P=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&r(function(e){b.disconnectedMatch=P.call(e,"div"),P.call(e,"[s!='']:x"),F.push("!=",oe)}),O=O.length&&new RegExp(O.join("|")),F=F.length&&new RegExp(F.join("|")),t=ge.test(q.compareDocumentPosition),M=t||ge.test(q.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Y=t?function(e,t){if(e===t)return D=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!b.sortDetached&&t.compareDocumentPosition(e)===n?e===L||e.ownerDocument===I&&M(I,e)?-1:t===L||t.ownerDocument===I&&M(I,t)?1:A?ee(A,e)-ee(A,t):0:4&n?-1:1)}:function(e,t){if(e===t)return D=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!r||!o)return e===L?-1:t===L?1:r?-1:o?1:A?ee(A,e)-ee(A,t):0;if(r===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[i]===u[i];)i++;return i?a(s[i],u[i]):s[i]===I?-1:u[i]===I?1:0},L):L},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==L&&j(e),n=n.replace(ce,"='$1']"),b.matchesSelector&&H&&!z[n+" "]&&(!F||!F.test(n))&&(!O||!O.test(n)))try{var i=P.call(e,n);if(i||b.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(r){}return t(n,L,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==L&&j(e),M(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==L&&j(e);var n=C.attrHandle[t.toLowerCase()],i=n&&V.call(C.attrHandle,t.toLowerCase())?n(e,t,!H):void 0;return void 0!==i?i:b.attributes||!H?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,r=0;if(D=!b.detectDuplicates,A=!b.sortStable&&e.slice(0),e.sort(Y),D){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return A=null,e},_=t.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=_(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=_(t);return n},C=t.selectors={cacheLength:50,createPseudo:i,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(xe,be),e[3]=(e[3]||e[4]||e[5]||"").replace(xe,be),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=k(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(xe,be).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=$[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&$(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(r){var o=t.attr(r,e);return null==o?"!="===n:n?(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(ae," ")+" ").indexOf(i)>-1:"|="===n?o===i||o.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,d,p,h,v=o!==a?"nextSibling":"previousSibling",g=t.parentNode,m=s&&t.nodeName.toLowerCase(),y=!u&&!s,w=!1;if(g){if(o){for(;v;){for(d=t;d=d[v];)if(s?d.nodeName.toLowerCase()===m:1===d.nodeType)return!1;h=v="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(d=g,f=d[R]||(d[R]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),l=c[e]||[],p=l[0]===W&&l[1],w=p&&l[2],d=p&&g.childNodes[p];d=++p&&d&&d[v]||(w=p=0)||h.pop();)if(1===d.nodeType&&++w&&d===t){c[e]=[W,p,w];break}}else if(y&&(d=t,f=d[R]||(d[R]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),l=c[e]||[],p=l[0]===W&&l[1],w=p),w===!1)for(;(d=++p&&d&&d[v]||(w=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==m:1!==d.nodeType)||!++w||(y&&(f=d[R]||(d[R]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),c[e]=[W,w]),d!==t)););return w-=r,w===i||w%i===0&&w/i>=0}}},PSEUDO:function(e,n){var r,o=C.pseudos[e]||C.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[R]?o(n):o.length>1?(r=[e,e,"",n],C.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,t){for(var i,r=o(e,n),a=r.length;a--;)i=ee(e,r[a]),e[i]=!(t[i]=r[a])}):function(e){return o(e,0,r)}):o}},pseudos:{not:i(function(e){var t=[],n=[],r=E(e.replace(se,"$1"));return r[R]?i(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:i(function(e){return function(n){return t(e,n).length>0}}),contains:i(function(e){return e=e.replace(xe,be),function(t){return(t.textContent||t.innerText||_(t)).indexOf(e)>-1}}),lang:i(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(xe,be).toLowerCase(),function(t){var n;do if(n=H?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===q},focus:function(e){return e===L.activeElement&&(!L.hasFocus||L.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return ve.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[0>n?n+t:n]}),even:l(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var i=0>n?n+t:n;--i>=0;)e.push(i);return e}),gt:l(function(e,t,n){for(var i=0>n?n+t:n;++i2&&"ID"===(a=o[0]).type&&b.getById&&9===t.nodeType&&H&&C.relative[o[1].type]){if(t=(C.find.ID(a.matches[0].replace(xe,be),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=pe.needsContext.test(e)?0:o.length;r--&&(a=o[r],!C.relative[s=a.type]);)if((u=C.find[s])&&(i=u(a.matches[0].replace(xe,be),ye.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&d(o),!e)return K.apply(n,i),n;break}}return(l||E(e,f))(i,t,!H,n,!t||ye.test(e)&&c(t.parentNode)||t),n},b.sortStable=R.split("").sort(Y).join("")===R,b.detectDuplicates=!!D,j(),b.sortDetached=r(function(e){return 1&e.compareDocumentPosition(L.createElement("div"))}),r(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),b.attributes&&r(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var i;return n?void 0:e[t]===!0?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),t}(o);ce.find=ve,ce.expr=ve.selectors,ce.expr[":"]=ce.expr.pseudos,ce.uniqueSort=ce.unique=ve.uniqueSort,ce.text=ve.getText,ce.isXMLDoc=ve.isXML,ce.contains=ve.contains;var ge=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&ce(e).is(n))break;i.push(e)}return i},me=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},ye=ce.expr.match.needsContext,we=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,xe=/^.[^:#\[\.,]*$/;ce.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?ce.find.matchesSelector(i,e)?[i]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n=this.length,i=[],r=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;n>t;t++)if(ce.contains(r[t],this))return!0}));for(t=0;n>t;t++)ce.find(e,r[t],i);return i=this.pushStack(n>1?ce.unique(i):i),i.selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(u(this,e||[],!1))},not:function(e){return this.pushStack(u(this,e||[],!0))},is:function(e){return!!u(this,"string"==typeof e&&ye.test(e)?ce(e):e||[],!1).length}});var be,Ce=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,_e=ce.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||be,"string"==typeof e){if(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Ce.exec(e),!i||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:ee,!0)),we.test(i[1])&&ce.isPlainObject(t))for(i in t)ce.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return r=ee.getElementById(i[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=ee,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ce.isFunction(e)?void 0!==n.ready?n.ready(e):e(ce):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),ce.makeArray(e,this))};_e.prototype=ce.fn,be=ce(ee);var Te=/^(?:parents|prev(?:Until|All))/,ke={children:!0,contents:!0,next:!0,prev:!0};ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,i=0,r=this.length,o=[],a=ye.test(e)||"string"!=typeof e?ce(e,t||this.context):0;r>i;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?re.call(ce(e),this[0]):re.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function Vt(e){var Vt=e.parentNode;return Vt&&11!==Vt.nodeType?Vt:null},parents:function(e){return ge(e,"parentNode")},parentsUntil:function(e,t,n){return ge(e,"parentNode",n)},next:function(e){return l(e,"nextSibling")},prev:function(e){return l(e,"previousSibling")},nextAll:function(e){return ge(e,"nextSibling")},prevAll:function(e){return ge(e,"previousSibling")},nextUntil:function(e,t,n){return ge(e,"nextSibling",n)},prevUntil:function(e,t,n){return ge(e,"previousSibling",n)},siblings:function(e){return me((e.parentNode||{}).firstChild,e)},children:function(e){return me(e.firstChild)},contents:function(e){return e.contentDocument||ce.merge([],e.childNodes)}},function(e,t){ce.fn[e]=function(n,i){var r=ce.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=ce.filter(i,r)),this.length>1&&(ke[e]||ce.uniqueSort(r),Te.test(e)&&r.reverse()),this.pushStack(r)}});var Ee=/\S+/g;ce.Callbacks=function(e){e="string"==typeof e?c(e):ce.extend({},e);var t,n,i,r,o=[],a=[],s=-1,u=function(){for(r=e.once,i=t=!0;a.length;s=-1)for(n=a.shift();++s-1;)o.splice(n,1),s>=n&&s--}),this},has:function(e){return e?ce.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!i}};return l},ce.extend({Deferred:function(e){var t=[["resolve","done",ce.Callbacks("once memory"),"resolved"],["reject","fail",ce.Callbacks("once memory"),"rejected"],["notify","progress",ce.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ce.Deferred(function(n){ce.each(t,function(t,o){var a=ce.isFunction(e[t])&&e[t];r[o[1]](function(){var e=a&&a.apply(this,arguments);e&&ce.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===i?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?ce.extend(e,i):i}},r={};return i.pipe=i.then,ce.each(t,function(e,o){var a=o[2],s=o[3];i[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=a.fireWith}),i.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,i,r=0,o=te.call(arguments),a=o.length,s=1!==a||e&&ce.isFunction(e.promise)?a:0,u=1===s?e:ce.Deferred(),l=function(e,n,i){return function(r){n[e]=this,i[e]=arguments.length>1?te.call(arguments):r,i===t?u.notifyWith(n,i):--s||u.resolveWith(n,i)}};if(a>1)for(t=new Array(a),n=new Array(a),i=new Array(a);a>r;r++)o[r]&&ce.isFunction(o[r].promise)?o[r].promise().progress(l(r,n,t)).done(l(r,i,o)).fail(u.reject):--s;return s||u.resolveWith(i,o),u.promise()}});var Se;ce.fn.ready=function(e){return ce.ready.promise().done(e),this},ce.extend({isReady:!1,readyWait:1,holdReady:function(e){e?ce.readyWait++:ce.ready(!0)},ready:function(e){(e===!0?--ce.readyWait:ce.isReady)||(ce.isReady=!0,e!==!0&&--ce.readyWait>0||(Se.resolveWith(ee,[ce]),ce.fn.triggerHandler&&(ce(ee).triggerHandler("ready"),ce(ee).off("ready"))))}}),ce.ready.promise=function(e){return Se||(Se=ce.Deferred(),"complete"===ee.readyState||"loading"!==ee.readyState&&!ee.documentElement.doScroll?o.setTimeout(ce.ready):(ee.addEventListener("DOMContentLoaded",f),o.addEventListener("load",f))),Se.promise(e)},ce.ready.promise();var Ne=function Gt(e,t,n,i,r,o,a){var s=0,u=e.length,l=null==n;if("object"===ce.type(n)){r=!0;for(s in n)Gt(e,t,s,n[s],!0,o,a)}else if(void 0!==i&&(r=!0,ce.isFunction(i)||(a=!0),l&&(a?(t.call(e,i),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;u>s;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:l?t.call(e):u?t(e[0],n):o},Ae=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};d.uid=1,d.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!Ae(e))return{};var t=e[this.expando];return t||(t={},Ae(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[t]=n;else for(i in t)r[i]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var i;return void 0===t||t&&"string"==typeof t&&void 0===n?(i=this.get(e,t),void 0!==i?i:this.get(e,ce.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i,r,o=e[this.expando];if(void 0!==o){if(void 0===t)this.register(e);else{ce.isArray(t)?i=t.concat(t.map(ce.camelCase)):(r=ce.camelCase(t),t in o?i=[t,r]:(i=r,i=i in o?[i]:i.match(Ee)||[])),n=i.length;for(;n--;)delete o[i[n]]}(void 0===t||ce.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var De=new d,je=new d,Le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,qe=/[A-Z]/g;ce.extend({hasData:function(e){return je.hasData(e)||De.hasData(e)},data:function(e,t,n){return je.access(e,t,n)},removeData:function(e,t){je.remove(e,t)},_data:function(e,t,n){return De.access(e,t,n)},_removeData:function(e,t){De.remove(e,t)}}),ce.fn.extend({data:function Jt(e,t){var i,r,Jt,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(Jt=je.get(o),1===o.nodeType&&!De.get(o,"hasDataAttrs"))){for(i=a.length;i--;)a[i]&&(r=a[i].name,0===r.indexOf("data-")&&(r=ce.camelCase(r.slice(5)),p(o,r,Jt[r])));De.set(o,"hasDataAttrs",!0)}return Jt}return"object"===("undefined"==typeof e?"undefined":n(e))?this.each(function(){je.set(this,e)}):Ne(this,function(t){var n,i;if(o&&void 0===t){if(n=je.get(o,e)||je.get(o,e.replace(qe,"-$&").toLowerCase()),void 0!==n)return n;if(i=ce.camelCase(e),n=je.get(o,i),void 0!==n)return n;if(n=p(o,i,void 0),void 0!==n)return n}else i=ce.camelCase(e),this.each(function(){var n=je.get(this,i);je.set(this,i,t),e.indexOf("-")>-1&&void 0!==n&&je.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){je.remove(this,e)})}}),ce.extend({queue:function Qt(e,t,n){var Qt;return e?(t=(t||"fx")+"queue",Qt=De.get(e,t),n&&(!Qt||ce.isArray(n)?Qt=De.access(e,t,ce.makeArray(n)):Qt.push(n)),Qt||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),i=n.length,r=n.shift(),o=ce._queueHooks(e,t),a=function(){ce.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,a,o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return De.get(e,n)||De.access(e,n,{empty:ce.Callbacks("once memory").add(function(){De.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length",""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};We.optgroup=We.option,We.tbody=We.tfoot=We.colgroup=We.caption=We.thead,We.th=We.td;var Be=/<|&#?\w+;/;!function(){var e=ee.createDocumentFragment(),t=e.appendChild(ee.createElement("div")),n=ee.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),ue.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",ue.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var $e=/^key/,Xe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ze=/^([^.]*)(?:\.(.+)|)/;ce.event={global:{},add:function(e,t,n,i,r){var o,a,s,u,l,c,f,d,p,h,v,g=De.get(e);if(g)for(n.handler&&(o=n,n=o.handler,r=o.selector),n.guid||(n.guid=ce.guid++),(u=g.events)||(u=g.events={}),(a=g.handle)||(a=g.handle=function(t){return"undefined"!=typeof ce&&ce.event.triggered!==t.type?ce.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ee)||[""],l=t.length;l--;)s=ze.exec(t[l])||[],p=v=s[1],h=(s[2]||"").split(".").sort(),p&&(f=ce.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,f=ce.event.special[p]||{},c=ce.extend({type:p,origType:v,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&ce.expr.match.needsContext.test(r),namespace:h.join(".")},o),(d=u[p])||(d=u[p]=[],d.delegateCount=0,f.setup&&f.setup.call(e,i,h,a)!==!1||e.addEventListener&&e.addEventListener(p,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,c):d.push(c),ce.event.global[p]=!0)},remove:function(e,t,n,i,r){var o,a,s,u,l,c,f,d,p,h,v,g=De.hasData(e)&&De.get(e);if(g&&(u=g.events)){for(t=(t||"").match(Ee)||[""],l=t.length;l--;)if(s=ze.exec(t[l])||[],p=v=s[1],h=(s[2]||"").split(".").sort(),p){for(f=ce.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,d=u[p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!r&&v!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(d.splice(o,1), c.selector&&d.delegateCount--,f.remove&&f.remove.call(e,c));a&&!d.length&&(f.teardown&&f.teardown.call(e,h,g.handle)!==!1||ce.removeEvent(e,p,g.handle),delete u[p])}else for(p in u)ce.event.remove(e,p+t[l],n,i,!0);ce.isEmptyObject(u)&&De.remove(e,"handle events")}},dispatch:function(e){e=ce.event.fix(e);var t,n,i,r,o,a=[],s=te.call(arguments),u=(De.get(this,"events")||{})[e.type]||[],l=ce.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(a=ce.event.handlers.call(this,e,u),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,i=((ce.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s),void 0!==i&&(e.result=i)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(i=[],n=0;s>n;n++)o=t[n],r=o.selector+" ",void 0===i[r]&&(i[r]=o.needsContext?ce(r,this).index(u)>-1:ce.find(r,this,null,[u]).length),i[r]&&i.push(o);i.length&&a.push({elem:u,handlers:i})}return s]*)\/>/gi,Ue=/\s*$/g;ce.extend({htmlPrefilter:function(e){return e.replace(Ye,"<$1>")},clone:function Kt(e,t,n){var i,r,o,a,Kt=e.cloneNode(!0),s=ce.contains(e.ownerDocument,e);if(!(ue.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=v(Kt),o=v(e),i=0,r=o.length;r>i;i++)E(o[i],a[i]);if(t)if(n)for(o=o||v(e),a=a||v(Kt),i=0,r=o.length;r>i;i++)k(o[i],a[i]);else k(e,Kt);return a=v(Kt,"script"),a.length>0&&g(a,!s&&v(e,"script")),Kt},cleanData:function(e){for(var t,n,i,r=ce.event.special,o=0;void 0!==(n=e[o]);o++)if(Ae(n)){if(t=n[De.expando]){if(t.events)for(i in t.events)r[i]?ce.event.remove(n,i):ce.removeEvent(n,i,t.handle);n[De.expando]=void 0}n[je.expando]&&(n[je.expando]=void 0)}}}),ce.fn.extend({domManip:S,detach:function(e){return N(this,e,!0)},remove:function(e){return N(this,e)},text:function(e){return Ne(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return S(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=C(this,e);t.appendChild(e)}})},prepend:function(){return S(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=C(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return S(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return S(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(v(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return Ne(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ue.test(e)&&!We[(Re.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;i>n;n++)t=this[n]||{},1===t.nodeType&&(ce.cleanData(v(t,!1)),t.innerHTML=e);t=0}catch(r){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return S(this,arguments,function(t){var n=this.parentNode;ce.inArray(this,e)<0&&(ce.cleanData(v(this)),n&&n.replaceChild(t,this))},e)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ce.fn[e]=function(e){for(var n,i=[],r=ce(e),o=r.length-1,a=0;o>=a;a++)n=a===o?this:this.clone(!0),ce(r[a])[t](n),ie.apply(i,n.get());return this.pushStack(i)}});var Qe,Ke={HTML:"block",BODY:"block"},Ze=/^margin/,et=new RegExp("^("+He+")(?!px)[a-z%]+$","i"),tt=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=o),t.getComputedStyle(e)},nt=function(e,t,n,i){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];r=n.apply(e,i||[]);for(o in t)e.style[o]=a[o];return r},it=ee.documentElement;!function(){function e(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",it.appendChild(a);var e=o.getComputedStyle(s);t="1%"!==e.top,r="2px"===e.marginLeft,n="4px"===e.width,s.style.marginRight="50%",i="4px"===e.marginRight,it.removeChild(a)}var t,n,i,r,a=ee.createElement("div"),s=ee.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",ue.clearCloneStyle="content-box"===s.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(s),ce.extend(ue,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return null==n&&e(),n},pixelMarginRight:function(){return null==n&&e(),i},reliableMarginLeft:function(){return null==n&&e(),r},reliableMarginRight:function(){var e,t=s.appendChild(ee.createElement("div"));return t.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",s.style.width="1px",it.appendChild(a),e=!parseFloat(o.getComputedStyle(t).marginRight),it.removeChild(a),s.removeChild(t),e}}))}();var rt=/^(none|table(?!-c[ea]).+)/,ot={position:"absolute",visibility:"hidden",display:"block"},at={letterSpacing:"0",fontWeight:"400"},st=["Webkit","O","Moz","ms"],ut=ee.createElement("div").style;ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=j(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function Zt(e,t,i,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=ce.camelCase(t),Zt=e.style;return t=ce.cssProps[u]||(ce.cssProps[u]=q(u)||u),s=ce.cssHooks[t]||ce.cssHooks[u],void 0===i?s&&"get"in s&&void 0!==(o=s.get(e,!1,r))?o:Zt[t]:(a="undefined"==typeof i?"undefined":n(i),"string"===a&&(o=Oe.exec(i))&&o[1]&&(i=h(e,t,o),a="number"),null!=i&&i===i&&("number"===a&&(i+=o&&o[3]||(ce.cssNumber[u]?"":"px")),ue.clearCloneStyle||""!==i||0!==t.indexOf("background")||(Zt[t]="inherit"),s&&"set"in s&&void 0===(i=s.set(e,i,r))||(Zt[t]=i)),void 0)}},css:function(e,t,n,i){var r,o,a,s=ce.camelCase(t);return t=ce.cssProps[s]||(ce.cssProps[s]=q(s)||s),a=ce.cssHooks[t]||ce.cssHooks[s],a&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=j(e,t,i)),"normal"===r&&t in at&&(r=at[t]),""===n||n?(o=parseFloat(r),n===!0||isFinite(o)?o||0:r):r}}),ce.each(["height","width"],function(e,t){ce.cssHooks[t]={get:function(e,n,i){return n?rt.test(ce.css(e,"display"))&&0===e.offsetWidth?nt(e,ot,function(){return F(e,t,i)}):F(e,t,i):void 0},set:function(e,n,i){var r,o=i&&tt(e),a=i&&O(e,t,i,"border-box"===ce.css(e,"boxSizing",!1,o),o);return a&&(r=Oe.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=ce.css(e,t)),H(e,n,a)}}}),ce.cssHooks.marginLeft=L(ue.reliableMarginLeft,function(e,t){return t?(parseFloat(j(e,"marginLeft"))||e.getBoundingClientRect().left-nt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),ce.cssHooks.marginRight=L(ue.reliableMarginRight,function(e,t){return t?nt(e,{display:"inline-block"},j,[e,"marginRight"]):void 0}),ce.each({margin:"",padding:"",border:"Width"},function(e,t){ce.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];4>i;i++)r[e+Fe[i]+t]=o[i]||o[i-2]||o[0];return r}},Ze.test(e)||(ce.cssHooks[e+t].set=H)}),ce.fn.extend({css:function(e,t){return Ne(this,function(e,t,n){var i,r,o={},a=0;if(ce.isArray(t)){for(i=tt(e),r=t.length;r>a;a++)o[t[a]]=ce.css(e,t[a],!1,i);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,arguments.length>1)},show:function(){return P(this,!0)},hide:function(){return P(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Pe(this)?ce(this).show():ce(this).hide()})}}),ce.Tween=M,M.prototype={constructor:M,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=M.propHooks[this.prop];return e&&e.get?e.get(this):M.propHooks._default.get(this)},run:function(e){var t,n=M.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):M.propHooks._default.set(this),this}},M.prototype.init.prototype=M.prototype,M.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[ce.cssProps[e.prop]]&&!ce.cssHooks[e.prop]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}},M.propHooks.scrollTop=M.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=M.prototype.init,ce.fx.step={};var lt,ct,ft=/^(?:toggle|show|hide)$/,dt=/queueHooks$/;ce.Animation=ce.extend(X,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return h(n.elem,e,Oe.exec(t),n),n}]},tweener:function(e,t){ce.isFunction(e)?(t=e,e=["*"]):e=e.match(Ee);for(var n,i=0,r=e.length;r>i;i++)n=e[i],X.tweeners[n]=X.tweeners[n]||[],X.tweeners[n].unshift(t)},prefilters:[B],prefilter:function(e,t){t?X.prefilters.unshift(e):X.prefilters.push(e)}}),ce.speed=function(e,t,i){var r=e&&"object"===("undefined"==typeof e?"undefined":n(e))?ce.extend({},e):{complete:i||!i&&t||ce.isFunction(e)&&e,duration:e,easing:i&&t||t&&!ce.isFunction(t)&&t};return r.duration=ce.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ce.fx.speeds?ce.fx.speeds[r.duration]:ce.fx.speeds._default,null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){ce.isFunction(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,i){return this.filter(Pe).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=ce.isEmptyObject(e),o=ce.speed(t,n,i),a=function(){var t=X(this,ce.extend({},e),o);(r||De.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",o=ce.timers,a=De.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&dt.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||ce.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=De.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=ce.timers,a=i?i.length:0;for(n.finish=!0,ce.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),ce.each(["toggle","show","hide"],function(e,t){var n=ce.fn[t];ce.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(I(t,!0),e,i,r)}}),ce.each({slideDown:I("show"),slideUp:I("hide"),slideToggle:I("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ce.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(lt=ce.now();t1)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(t=t.toLowerCase(),r=ce.attrHooks[t]||(ce.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=ce.find.attr(e,t),null==i?void 0:i))},attrHooks:{type:{set:function(e,t){if(!ue.radioValue&&"radio"===t&&ce.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,r=0,o=t&&t.match(Ee);if(o&&1===e.nodeType)for(;n=o[r++];)i=ce.propFix[n]||n,ce.expr.match.bool.test(n)&&(e[i]=!1),e.removeAttribute(n)}}),pt={set:function(e,t,n){return t===!1?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ht[t]||ce.find.attr;ht[t]=function(e,t,i){var r,o;return i||(o=ht[t],ht[t]=r,r=null!=n(e,t,i)?t.toLowerCase():null,ht[t]=o),r}});var vt=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;ce.fn.extend({prop:function(e,t){return Ne(this,ce.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,r=ce.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ue.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this});var mt=/[\t\r\n\f]/g;ce.fn.extend({addClass:function(e){var t,n,i,r,o,a,s,u=0;if(ce.isFunction(e))return this.each(function(t){ce(this).addClass(e.call(this,t,z(this)))});if("string"==typeof e&&e)for(t=e.match(Ee)||[];n=this[u++];)if(r=z(n),i=1===n.nodeType&&(" "+r+" ").replace(mt," ")){for(a=0;o=t[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");s=ce.trim(i),r!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,i,r,o,a,s,u=0;if(ce.isFunction(e))return this.each(function(t){ce(this).removeClass(e.call(this,t,z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Ee)||[];n=this[u++];)if(r=z(n),i=1===n.nodeType&&(" "+r+" ").replace(mt," ")){for(a=0;o=t[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");s=ce.trim(i),r!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var i="undefined"==typeof e?"undefined":n(e);return"boolean"==typeof t&&"string"===i?t?this.addClass(e):this.removeClass(e):ce.isFunction(e)?this.each(function(n){ce(this).toggleClass(e.call(this,n,z(this),t),t)}):this.each(function(){var t,n,r,o;if("string"===i)for(n=0,r=ce(this),o=e.match(Ee)||[];t=o[n++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==i||(t=z(this),t&&De.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":De.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+z(n)+" ").replace(mt," ").indexOf(t)>-1)return!0;return!1}});var yt=/\r/g,wt=/[\x20\t\r\n\f]+/g;ce.fn.extend({val:function(e){var t,n,i,r=this[0];{if(arguments.length)return i=ce.isFunction(e),this.each(function(n){var r;1===this.nodeType&&(r=i?e.call(this,n,ce(this).val()):e,null==r?r="":"number"==typeof r?r+="":ce.isArray(r)&&(r=ce.map(r,function(e){return null==e?"":e+""})),t=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))});if(r)return t=ce.valHooks[r.type]||ce.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(yt,""):null==n?"":n)}}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:ce.trim(ce.text(e)).replace(wt," ")}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,o="select-one"===e.type||0>r,a=o?null:[],s=o?r+1:i.length,u=0>r?s:o?r:0;s>u;u++)if(n=i[u],(n.selected||u===r)&&(ue.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ce.nodeName(n.parentNode,"optgroup"))){if(t=ce(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=ce.makeArray(t),a=r.length;a--;)i=r[a],(i.selected=ce.inArray(ce.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){return ce.isArray(t)?e.checked=ce.inArray(ce(e).val(),t)>-1:void 0}},ue.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var xt=/^(?:focusinfocus|focusoutblur)$/;ce.extend(ce.event,{trigger:function(e,t,i,r){var a,s,u,l,c,f,d,p=[i||ee],h=se.call(e,"type")?e.type:e,v=se.call(e,"namespace")?e.namespace.split("."):[];if(s=u=i=i||ee,3!==i.nodeType&&8!==i.nodeType&&!xt.test(h+ce.event.triggered)&&(h.indexOf(".")>-1&&(v=h.split("."),h=v.shift(),v.sort()),c=h.indexOf(":")<0&&"on"+h,e=e[ce.expando]?e:new ce.Event(h,"object"===("undefined"==typeof e?"undefined":n(e))&&e),e.isTrigger=r?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:ce.makeArray(t,[e]),d=ce.event.special[h]||{},r||!d.trigger||d.trigger.apply(i,t)!==!1)){if(!r&&!d.noBubble&&!ce.isWindow(i)){for(l=d.delegateType||h,xt.test(l+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),u=s;u===(i.ownerDocument||ee)&&p.push(u.defaultView||u.parentWindow||o)}for(a=0;(s=p[a++])&&!e.isPropagationStopped();)e.type=a>1?l:d.bindType||h,f=(De.get(s,"events")||{})[e.type]&&De.get(s,"handle"),f&&f.apply(s,t),f=c&&s[c],f&&f.apply&&Ae(s)&&(e.result=f.apply(s,t),e.result===!1&&e.preventDefault());return e.type=h,r||e.isDefaultPrevented()||d._default&&d._default.apply(p.pop(),t)!==!1||!Ae(i)||c&&ce.isFunction(i[h])&&!ce.isWindow(i)&&(u=i[c],u&&(i[c]=null),ce.event.triggered=h,i[h](),ce.event.triggered=void 0,u&&(i[c]=u)),e.result}},simulate:function(e,t,n){var i=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(i,null,t),i.isDefaultPrevented()&&n.preventDefault()}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?ce.event.trigger(e,t,n,!0):void 0}}),ce.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){ce.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ce.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ue.focusin="onfocusin"in o,ue.focusin||ce.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){ce.event.simulate(t,e.target,ce.event.fix(e))};ce.event.special[t]={setup:function(){var i=this.ownerDocument||this,r=De.access(i,t);r||i.addEventListener(e,n,!0),De.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=De.access(i,t)-1;r?De.access(i,t,r):(i.removeEventListener(e,n,!0),De.remove(i,t))}}});var bt=o.location,Ct=ce.now(),_t=/\?/;ce.parseJSON=function(e){return JSON.parse(e+"")},ce.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new o.DOMParser).parseFromString(e,"text/xml")}catch(n){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||ce.error("Invalid XML: "+e),t};var Tt=/#.*$/,kt=/([?&])_=[^&]*/,Et=/^(.*?):[ \t]*([^\r\n]*)$/gm,St=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nt=/^(?:GET|HEAD)$/,At=/^\/\//,Dt={},jt={},Lt="*/".concat("*"),qt=ee.createElement("a");qt.href=bt.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:bt.href,type:"GET",isLocal:St.test(bt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Lt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ce.parseJSON,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?V(V(e,ce.ajaxSettings),t):V(ce.ajaxSettings,e)},ajaxPrefilter:Y(Dt),ajaxTransport:Y(jt),ajax:function(e,t){function i(e,t,n,i){var u,c,d,w,x,C=t;2!==b&&(b=2,l&&o.clearTimeout(l),r=void 0,s=i||"",_.readyState=e>0?4:0,u=e>=200&&300>e||304===e,n&&(w=G(p,_,n)),w=J(p,w,_,u),u?(p.ifModified&&(x=_.getResponseHeader("Last-Modified"),x&&(ce.lastModified[a]=x),x=_.getResponseHeader("etag"),x&&(ce.etag[a]=x)),204===e||"HEAD"===p.type?C="nocontent":304===e?C="notmodified":(C=w.state,c=w.data,d=w.error,u=!d)):(d=C,!e&&C||(C="error",0>e&&(e=0))),_.status=e,_.statusText=(t||C)+"",u?g.resolveWith(h,[c,C,_]):g.rejectWith(h,[_,C,d]),_.statusCode(y),y=void 0,f&&v.trigger(u?"ajaxSuccess":"ajaxError",[_,p,u?c:d]),m.fireWith(h,[_,C]),f&&(v.trigger("ajaxComplete",[_,p]),--ce.active||ce.event.trigger("ajaxStop")))}"object"===("undefined"==typeof e?"undefined":n(e))&&(t=e,e=void 0),t=t||{};var r,a,s,u,l,c,f,d,p=ce.ajaxSetup({},t),h=p.context||p,v=p.context&&(h.nodeType||h.jquery)?ce(h):ce.event,g=ce.Deferred(),m=ce.Callbacks("once memory"),y=p.statusCode||{},w={},x={},b=0,C="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!u)for(u={};t=Et.exec(s);)u[t[1].toLowerCase()]=t[2];t=u[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=x[n]=x[n]||e,w[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)y[t]=[y[t],e[t]];else _.always(e[_.status]);return this},abort:function(e){var t=e||C;return r&&r.abort(t),i(0,t),this}};if(g.promise(_).complete=m.add,_.success=_.done,_.error=_.fail,p.url=((e||p.url||bt.href)+"").replace(Tt,"").replace(At,bt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=ce.trim(p.dataType||"*").toLowerCase().match(Ee)||[""],null==p.crossDomain){c=ee.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=qt.protocol+"//"+qt.host!=c.protocol+"//"+c.host}catch(T){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=ce.param(p.data,p.traditional)),U(Dt,p,t,_),2===b)return _;f=ce.event&&p.global,f&&0===ce.active++&&ce.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Nt.test(p.type),a=p.url,p.hasContent||(p.data&&(a=p.url+=(_t.test(a)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=kt.test(a)?a.replace(kt,"$1_="+Ct++):a+(_t.test(a)?"&":"?")+"_="+Ct++)),p.ifModified&&(ce.lastModified[a]&&_.setRequestHeader("If-Modified-Since",ce.lastModified[a]),ce.etag[a]&&_.setRequestHeader("If-None-Match",ce.etag[a])),(p.data&&p.hasContent&&p.contentType!==!1||t.contentType)&&_.setRequestHeader("Content-Type",p.contentType),_.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Lt+"; q=0.01":""):p.accepts["*"]);for(d in p.headers)_.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(p.beforeSend.call(h,_,p)===!1||2===b))return _.abort();C="abort";for(d in{success:1,error:1,complete:1})_[d](p[d]);if(r=U(jt,p,t,_)){if(_.readyState=1,f&&v.trigger("ajaxSend",[_,p]),2===b)return _;p.async&&p.timeout>0&&(l=o.setTimeout(function(){_.abort("timeout")},p.timeout));try{b=1,r.send(w,i)}catch(T){if(!(2>b))throw T;i(-1,T)}}else i(-1,"No Transport");return _},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,t){ce[t]=function(e,n,i,r){return ce.isFunction(n)&&(r=r||i,i=n,n=void 0),ce.ajax(ce.extend({url:e,type:t,dataType:r,data:n,success:i},ce.isPlainObject(e)&&e))}}),ce._evalUrl=function(e){return ce.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},ce.fn.extend({wrapAll:function(e){var t;return ce.isFunction(e)?this.each(function(t){ce(this).wrapAll(e.call(this,t))}):(this[0]&&(t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return ce.isFunction(e)?this.each(function(t){ce(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ce(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ce.isFunction(e);return this.each(function(n){ce(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){ce.nodeName(this,"body")||ce(this).replaceWith(this.childNodes)}).end()}}),ce.expr.filters.hidden=function(e){return!ce.expr.filters.visible(e)},ce.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var Ht=/%20/g,Ot=/\[\]$/,Ft=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,Mt=/^(?:input|select|textarea|keygen)/i;ce.param=function(e,t){var n,i=[],r=function(e,t){t=ce.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=ce.ajaxSettings&&ce.ajaxSettings.traditional),ce.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){r(this.name,this.value)});else for(n in e)Q(n,e[n],t,r);return i.join("&").replace(Ht,"+")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Mt.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!Me.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:ce.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Ft,"\r\n")}}):{name:t.name,value:n.replace(Ft,"\r\n")}}).get()}}),ce.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch(e){}};var Rt={0:200,1223:204},It=ce.ajaxSettings.xhr();ue.cors=!!It&&"withCredentials"in It,ue.ajax=It=!!It,ce.ajaxTransport(function(e){var t,n;return ue.cors||It&&!e.crossDomain?{send:function(i,r){ -var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?r(0,"error"):r(s.status,s.statusText):r(Rt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&o.setTimeout(function(){t&&n()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(u){if(t)throw u}},abort:function(){t&&t()}}:void 0}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(i,r){t=ce("