Commit 6c57cb17 authored by sajolida's avatar sajolida

Use a minified version of Forge

parent 0c8475a1
......@@ -6,6 +6,6 @@
[[!meta stylesheet="install/inc/stylesheets/steps" rel="stylesheet" title=""]]
[[!meta stylesheet="install/inc/stylesheets/download-only-iso" rel="stylesheet" title=""]]
[[!meta script="install/inc/js/download"]]
[[!meta script="install/inc/js/forge.sha256"]]
[[!meta script="install/inc/js/forge.sha256.min"]]
[[!inline pages="install/inc/steps/download.inline" raw="yes" sort="age"]]
......@@ -5,6 +5,6 @@
[[!meta stylesheet="install/inc/stylesheets/steps" rel="stylesheet" title=""]]
[[!meta stylesheet="install/inc/stylesheets/download-only-img" rel="stylesheet" title=""]]
[[!meta script="install/inc/js/download"]]
[[!meta script="install/inc/js/forge.sha256"]]
[[!meta script="install/inc/js/forge.sha256.min"]]
[[!inline pages="install/inc/steps/download.inline" raw="yes" sort="age"]]
......@@ -6,6 +6,6 @@
[[!meta stylesheet="inc/stylesheets/steps" rel="stylesheet" title=""]]
[[!meta stylesheet="inc/stylesheets/dvd" rel="stylesheet" title=""]]
[[!meta script="install/inc/js/download"]]
[[!meta script="install/inc/js/forge.sha256"]]
[[!meta script="install/inc/js/forge.sha256.min"]]
[[!inline pages="install/inc/steps/download.inline" raw="yes" sort="age"]]
/*! Forge v0.9.2 | (c) Digital Bazaar, Inc. */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.forge=e():t.forge=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var a=r[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=1)}([function(t,e){t.exports={options:{usePureJavaScript:!1}}},function(t,e,r){r(2),t.exports=r(0)},function(t,e,r){function n(){s=String.fromCharCode(128),s+=i.util.fillString(String.fromCharCode(0),64),u=[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],f=!0}function a(t,e,r){for(var n,a,i,o,s,f,h,d,c,p,l,g,y,v,m,B=r.length();B>=64;){for(h=0;h<16;++h)e[h]=r.getInt32();for(;h<64;++h)n=e[h-2],n=(n>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,a=e[h-15],a=(a>>>7|a<<25)^(a>>>18|a<<14)^a>>>3,e[h]=n+e[h-7]+a+e[h-16]|0;for(d=t.h0,c=t.h1,p=t.h2,l=t.h3,g=t.h4,y=t.h5,v=t.h6,m=t.h7,h=0;h<64;++h)o=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7),s=v^g&(y^v),i=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),f=d&c|p&(d^c),n=m+o+s+u[h]+e[h],a=i+f,m=v,v=y,y=g,g=l+n>>>0,l=p,p=c,c=d,d=n+a>>>0;t.h0=t.h0+d|0,t.h1=t.h1+c|0,t.h2=t.h2+p|0,t.h3=t.h3+l|0,t.h4=t.h4+g|0,t.h5=t.h5+y|0,t.h6=t.h6+v|0,t.h7=t.h7+m|0,B-=64}}var i=r(0);r(3),r(4);var o=t.exports=i.sha256=i.sha256||{};i.md.sha256=i.md.algorithms.sha256=o,o.create=function(){f||n();var t=null,e=i.util.createBuffer(),r=new Array(64),o={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};return o.start=function(){o.messageLength=0,o.fullMessageLength=o.messageLength64=[];for(var r=o.messageLengthSize/4,n=0;n<r;++n)o.fullMessageLength.push(0);return e=i.util.createBuffer(),t={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},o},o.start(),o.update=function(n,s){"utf8"===s&&(n=i.util.encodeUtf8(n));var f=n.length;o.messageLength+=f,f=[f/4294967296>>>0,f>>>0];for(var u=o.fullMessageLength.length-1;u>=0;--u)o.fullMessageLength[u]+=f[1],f[1]=f[0]+(o.fullMessageLength[u]/4294967296>>>0),o.fullMessageLength[u]=o.fullMessageLength[u]>>>0,f[0]=f[1]/4294967296>>>0;return e.putBytes(n),a(t,r,e),(e.read>2048||0===e.length())&&e.compact(),o},o.digest=function(){var n=i.util.createBuffer();n.putBytes(e.bytes());var f=o.fullMessageLength[o.fullMessageLength.length-1]+o.messageLengthSize,u=f&o.blockLength-1;n.putBytes(s.substr(0,o.blockLength-u));for(var h,d,c=8*o.fullMessageLength[0],p=0;p<o.fullMessageLength.length-1;++p)h=8*o.fullMessageLength[p+1],d=h/4294967296>>>0,c+=d,n.putInt32(c>>>0),c=h>>>0;n.putInt32(c);var l={h0:t.h0,h1:t.h1,h2:t.h2,h3:t.h3,h4:t.h4,h5:t.h5,h6:t.h6,h7:t.h7};a(l,r,n);var g=i.util.createBuffer();return g.putInt32(l.h0),g.putInt32(l.h1),g.putInt32(l.h2),g.putInt32(l.h3),g.putInt32(l.h4),g.putInt32(l.h5),g.putInt32(l.h6),g.putInt32(l.h7),g},o};var s=null,f=!1,u=null},function(t,e,r){var n=r(0);t.exports=n.md=n.md||{},n.md.algorithms=n.md.algorithms||{}},function(t,e,r){(function(e){function n(t){if(8!==t&&16!==t&&24!==t&&32!==t)throw new Error("Only 8, 16, 24, or 32 bits supported: "+t)}function a(t){if(this.data="",this.read=0,"string"==typeof t)this.data=t;else if(f.isArrayBuffer(t)||f.isArrayBufferView(t))if("undefined"!=typeof Buffer&&t instanceof Buffer)this.data=t.toString("binary");else{var e=new Uint8Array(t);try{this.data=String.fromCharCode.apply(null,e)}catch(t){for(var r=0;r<e.length;++r)this.putByte(e[r])}}else(t instanceof a||"object"==typeof t&&"string"==typeof t.data&&"number"==typeof t.read)&&(this.data=t.data,this.read=t.read);this._constructedStringLength=0}function i(t,e){e=e||{},this.read=e.readOffset||0,this.growSize=e.growSize||1024;var r=f.isArrayBuffer(t),n=f.isArrayBufferView(t);if(r||n)return this.data=r?new DataView(t):new DataView(t.buffer,t.byteOffset,t.byteLength),void(this.write="writeOffset"in e?e.writeOffset:this.data.byteLength);this.data=new DataView(new ArrayBuffer(0)),this.write=0,null!==t&&void 0!==t&&this.putBytes(t),"writeOffset"in e&&(this.write=e.writeOffset)}var o=r(0),s=r(6),f=t.exports=o.util=o.util||{};!function(){function t(t){if(t.source===window&&t.data===e){t.stopPropagation();var n=r.slice();r.length=0,n.forEach(function(t){t()})}}if("undefined"!=typeof process&&process.nextTick&&!process.browser)return f.nextTick=process.nextTick,void("function"==typeof setImmediate?f.setImmediate=setImmediate:f.setImmediate=f.nextTick);if("function"==typeof setImmediate)return f.setImmediate=function(){return setImmediate.apply(void 0,arguments)},void(f.nextTick=function(t){return setImmediate(t)});if(f.setImmediate=function(t){setTimeout(t,0)},"undefined"!=typeof window&&"function"==typeof window.postMessage){var e="forge.setImmediate",r=[];f.setImmediate=function(t){r.push(t),1===r.length&&window.postMessage(e,"*")},window.addEventListener("message",t,!0)}if("undefined"!=typeof MutationObserver){var n=Date.now(),a=!0,i=document.createElement("div"),r=[];new MutationObserver(function(){var t=r.slice();r.length=0,t.forEach(function(t){t()})}).observe(i,{attributes:!0});var o=f.setImmediate;f.setImmediate=function(t){Date.now()-n>15?(n=Date.now(),o(t)):(r.push(t),1===r.length&&i.setAttribute("a",a=!a))}}f.nextTick=f.setImmediate}(),f.isNodejs="undefined"!=typeof process&&process.versions&&process.versions.node,f.globalScope=function(){return f.isNodejs?e:"undefined"==typeof self?window:self}(),f.isArray=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},f.isArrayBuffer=function(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer},f.isArrayBufferView=function(t){return t&&f.isArrayBuffer(t.buffer)&&void 0!==t.byteLength},f.ByteBuffer=a,f.ByteStringBuffer=a;f.ByteStringBuffer.prototype._optimizeConstructedString=function(t){this._constructedStringLength+=t,this._constructedStringLength>4096&&(this.data.substr(0,1),this._constructedStringLength=0)},f.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},f.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},f.ByteStringBuffer.prototype.putByte=function(t){return this.putBytes(String.fromCharCode(t))},f.ByteStringBuffer.prototype.fillWithByte=function(t,e){t=String.fromCharCode(t);for(var r=this.data;e>0;)1&e&&(r+=t),(e>>>=1)>0&&(t+=t);return this.data=r,this._optimizeConstructedString(e),this},f.ByteStringBuffer.prototype.putBytes=function(t){return this.data+=t,this._optimizeConstructedString(t.length),this},f.ByteStringBuffer.prototype.putString=function(t){return this.putBytes(f.encodeUtf8(t))},f.ByteStringBuffer.prototype.putInt16=function(t){return this.putBytes(String.fromCharCode(t>>8&255)+String.fromCharCode(255&t))},f.ByteStringBuffer.prototype.putInt24=function(t){return this.putBytes(String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t))},f.ByteStringBuffer.prototype.putInt32=function(t){return this.putBytes(String.fromCharCode(t>>24&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t))},f.ByteStringBuffer.prototype.putInt16Le=function(t){return this.putBytes(String.fromCharCode(255&t)+String.fromCharCode(t>>8&255))},f.ByteStringBuffer.prototype.putInt24Le=function(t){return this.putBytes(String.fromCharCode(255&t)+String.fromCharCode(t>>8&255)+String.fromCharCode(t>>16&255))},f.ByteStringBuffer.prototype.putInt32Le=function(t){return this.putBytes(String.fromCharCode(255&t)+String.fromCharCode(t>>8&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>24&255))},f.ByteStringBuffer.prototype.putInt=function(t,e){n(e);var r="";do{e-=8,r+=String.fromCharCode(t>>e&255)}while(e>0);return this.putBytes(r)},f.ByteStringBuffer.prototype.putSignedInt=function(t,e){return t<0&&(t+=2<<e-1),this.putInt(t,e)},f.ByteStringBuffer.prototype.putBuffer=function(t){return this.putBytes(t.getBytes())},f.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},f.ByteStringBuffer.prototype.getInt16=function(){var t=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,t},f.ByteStringBuffer.prototype.getInt24=function(){var t=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,t},f.ByteStringBuffer.prototype.getInt32=function(){var t=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,t},f.ByteStringBuffer.prototype.getInt16Le=function(){var t=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,t},f.ByteStringBuffer.prototype.getInt24Le=function(){var t=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,t},f.ByteStringBuffer.prototype.getInt32Le=function(){var t=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,t},f.ByteStringBuffer.prototype.getInt=function(t){n(t);var e=0;do{e=(e<<8)+this.data.charCodeAt(this.read++),t-=8}while(t>0);return e},f.ByteStringBuffer.prototype.getSignedInt=function(t){var e=this.getInt(t),r=2<<t-2;return e>=r&&(e-=r<<1),e},f.ByteStringBuffer.prototype.getBytes=function(t){var e;return t?(t=Math.min(this.length(),t),e=this.data.slice(this.read,this.read+t),this.read+=t):0===t?e="":(e=0===this.read?this.data:this.data.slice(this.read),this.clear()),e},f.ByteStringBuffer.prototype.bytes=function(t){return void 0===t?this.data.slice(this.read):this.data.slice(this.read,this.read+t)},f.ByteStringBuffer.prototype.at=function(t){return this.data.charCodeAt(this.read+t)},f.ByteStringBuffer.prototype.setAt=function(t,e){return this.data=this.data.substr(0,this.read+t)+String.fromCharCode(e)+this.data.substr(this.read+t+1),this},f.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},f.ByteStringBuffer.prototype.copy=function(){var t=f.createBuffer(this.data);return t.read=this.read,t},f.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},f.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},f.ByteStringBuffer.prototype.truncate=function(t){var e=Math.max(0,this.length()-t);return this.data=this.data.substr(this.read,e),this.read=0,this},f.ByteStringBuffer.prototype.toHex=function(){for(var t="",e=this.read;e<this.data.length;++e){var r=this.data.charCodeAt(e);r<16&&(t+="0"),t+=r.toString(16)}return t},f.ByteStringBuffer.prototype.toString=function(){return f.decodeUtf8(this.bytes())},f.DataBuffer=i,f.DataBuffer.prototype.length=function(){return this.write-this.read},f.DataBuffer.prototype.isEmpty=function(){return this.length()<=0},f.DataBuffer.prototype.accommodate=function(t,e){if(this.length()>=t)return this;e=Math.max(e||this.growSize,t);var r=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),n=new Uint8Array(this.length()+e);return n.set(r),this.data=new DataView(n.buffer),this},f.DataBuffer.prototype.putByte=function(t){return this.accommodate(1),this.data.setUint8(this.write++,t),this},f.DataBuffer.prototype.fillWithByte=function(t,e){this.accommodate(e);for(var r=0;r<e;++r)this.data.setUint8(t);return this},f.DataBuffer.prototype.putBytes=function(t,e){if(f.isArrayBufferView(t)){var r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength),n=r.byteLength-r.byteOffset;this.accommodate(n);var a=new Uint8Array(this.data.buffer,this.write);return a.set(r),this.write+=n,this}if(f.isArrayBuffer(t)){var r=new Uint8Array(t);this.accommodate(r.byteLength);var a=new Uint8Array(this.data.buffer);return a.set(r,this.write),this.write+=r.byteLength,this}if(t instanceof f.DataBuffer||"object"==typeof t&&"number"==typeof t.read&&"number"==typeof t.write&&f.isArrayBufferView(t.data)){var r=new Uint8Array(t.data.byteLength,t.read,t.length());this.accommodate(r.byteLength);var a=new Uint8Array(t.data.byteLength,this.write);return a.set(r),this.write+=r.byteLength,this}if(t instanceof f.ByteStringBuffer&&(t=t.data,e="binary"),e=e||"binary","string"==typeof t){var i;if("hex"===e)return this.accommodate(Math.ceil(t.length/2)),i=new Uint8Array(this.data.buffer,this.write),this.write+=f.binary.hex.decode(t,i,this.write),this;if("base64"===e)return this.accommodate(3*Math.ceil(t.length/4)),i=new Uint8Array(this.data.buffer,this.write),this.write+=f.binary.base64.decode(t,i,this.write),this;if("utf8"===e&&(t=f.encodeUtf8(t),e="binary"),"binary"===e||"raw"===e)return this.accommodate(t.length),i=new Uint8Array(this.data.buffer,this.write),this.write+=f.binary.raw.decode(i),this;if("utf16"===e)return this.accommodate(2*t.length),i=new Uint16Array(this.data.buffer,this.write),this.write+=f.text.utf16.encode(i),this;throw new Error("Invalid encoding: "+e)}throw Error("Invalid parameter: "+t)},f.DataBuffer.prototype.putBuffer=function(t){return this.putBytes(t),t.clear(),this},f.DataBuffer.prototype.putString=function(t){return this.putBytes(t,"utf16")},f.DataBuffer.prototype.putInt16=function(t){return this.accommodate(2),this.data.setInt16(this.write,t),this.write+=2,this},f.DataBuffer.prototype.putInt24=function(t){return this.accommodate(3),this.data.setInt16(this.write,t>>8&65535),this.data.setInt8(this.write,t>>16&255),this.write+=3,this},f.DataBuffer.prototype.putInt32=function(t){return this.accommodate(4),this.data.setInt32(this.write,t),this.write+=4,this},f.DataBuffer.prototype.putInt16Le=function(t){return this.accommodate(2),this.data.setInt16(this.write,t,!0),this.write+=2,this},f.DataBuffer.prototype.putInt24Le=function(t){return this.accommodate(3),this.data.setInt8(this.write,t>>16&255),this.data.setInt16(this.write,t>>8&65535,!0),this.write+=3,this},f.DataBuffer.prototype.putInt32Le=function(t){return this.accommodate(4),this.data.setInt32(this.write,t,!0),this.write+=4,this},f.DataBuffer.prototype.putInt=function(t,e){n(e),this.accommodate(e/8);do{e-=8,this.data.setInt8(this.write++,t>>e&255)}while(e>0);return this},f.DataBuffer.prototype.putSignedInt=function(t,e){return n(e),this.accommodate(e/8),t<0&&(t+=2<<e-1),this.putInt(t,e)},f.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)},f.DataBuffer.prototype.getInt16=function(){var t=this.data.getInt16(this.read);return this.read+=2,t},f.DataBuffer.prototype.getInt24=function(){var t=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,t},f.DataBuffer.prototype.getInt32=function(){var t=this.data.getInt32(this.read);return this.read+=4,t},f.DataBuffer.prototype.getInt16Le=function(){var t=this.data.getInt16(this.read,!0);return this.read+=2,t},f.DataBuffer.prototype.getInt24Le=function(){var t=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,t},f.DataBuffer.prototype.getInt32Le=function(){var t=this.data.getInt32(this.read,!0);return this.read+=4,t},f.DataBuffer.prototype.getInt=function(t){n(t);var e=0;do{e=(e<<8)+this.data.getInt8(this.read++),t-=8}while(t>0);return e},f.DataBuffer.prototype.getSignedInt=function(t){var e=this.getInt(t),r=2<<t-2;return e>=r&&(e-=r<<1),e},f.DataBuffer.prototype.getBytes=function(t){var e;return t?(t=Math.min(this.length(),t),e=this.data.slice(this.read,this.read+t),this.read+=t):0===t?e="":(e=0===this.read?this.data:this.data.slice(this.read),this.clear()),e},f.DataBuffer.prototype.bytes=function(t){return void 0===t?this.data.slice(this.read):this.data.slice(this.read,this.read+t)},f.DataBuffer.prototype.at=function(t){return this.data.getUint8(this.read+t)},f.DataBuffer.prototype.setAt=function(t,e){return this.data.setUint8(t,e),this},f.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},f.DataBuffer.prototype.copy=function(){return new f.DataBuffer(this)},f.DataBuffer.prototype.compact=function(){if(this.read>0){var t=new Uint8Array(this.data.buffer,this.read),e=new Uint8Array(t.byteLength);e.set(t),this.data=new DataView(e),this.write-=this.read,this.read=0}return this},f.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},f.DataBuffer.prototype.truncate=function(t){return this.write=Math.max(0,this.length()-t),this.read=Math.min(this.read,this.write),this},f.DataBuffer.prototype.toHex=function(){for(var t="",e=this.read;e<this.data.byteLength;++e){var r=this.data.getUint8(e);r<16&&(t+="0"),t+=r.toString(16)}return t},f.DataBuffer.prototype.toString=function(t){var e=new Uint8Array(this.data,this.read,this.length());if("binary"===(t=t||"utf8")||"raw"===t)return f.binary.raw.encode(e);if("hex"===t)return f.binary.hex.encode(e);if("base64"===t)return f.binary.base64.encode(e);if("utf8"===t)return f.text.utf8.decode(e);if("utf16"===t)return f.text.utf16.decode(e);throw new Error("Invalid encoding: "+t)},f.createBuffer=function(t,e){return e=e||"raw",void 0!==t&&"utf8"===e&&(t=f.encodeUtf8(t)),new f.ByteBuffer(t)},f.fillString=function(t,e){for(var r="";e>0;)1&e&&(r+=t),(e>>>=1)>0&&(t+=t);return r},f.xorBytes=function(t,e,r){for(var n="",a="",i="",o=0,s=0;r>0;--r,++o)a=t.charCodeAt(o)^e.charCodeAt(o),s>=10&&(n+=i,i="",s=0),i+=String.fromCharCode(a),++s;return n+=i},f.hexToBytes=function(t){var e="",r=0;for(!0&t.length&&(r=1,e+=String.fromCharCode(parseInt(t[0],16)));r<t.length;r+=2)e+=String.fromCharCode(parseInt(t.substr(r,2),16));return e},f.bytesToHex=function(t){return f.createBuffer(t).toHex()},f.int32ToBytes=function(t){return String.fromCharCode(t>>24&255)+String.fromCharCode(t>>16&255)+String.fromCharCode(t>>8&255)+String.fromCharCode(255&t)};var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",h=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],d="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";f.encode64=function(t,e){for(var r,n,a,i="",o="",s=0;s<t.length;)r=t.charCodeAt(s++),n=t.charCodeAt(s++),a=t.charCodeAt(s++),i+=u.charAt(r>>2),i+=u.charAt((3&r)<<4|n>>4),isNaN(n)?i+="==":(i+=u.charAt((15&n)<<2|a>>6),i+=isNaN(a)?"=":u.charAt(63&a)),e&&i.length>e&&(o+=i.substr(0,e)+"\r\n",i=i.substr(e));return o+=i},f.decode64=function(t){t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var e,r,n,a,i="",o=0;o<t.length;)e=h[t.charCodeAt(o++)-43],r=h[t.charCodeAt(o++)-43],n=h[t.charCodeAt(o++)-43],a=h[t.charCodeAt(o++)-43],i+=String.fromCharCode(e<<2|r>>4),64!==n&&(i+=String.fromCharCode((15&r)<<4|n>>2),64!==a&&(i+=String.fromCharCode((3&n)<<6|a)));return i},f.encodeUtf8=function(t){return unescape(encodeURIComponent(t))},f.decodeUtf8=function(t){return decodeURIComponent(escape(t))},f.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:s.encode,decode:s.decode}},f.binary.raw.encode=function(t){return String.fromCharCode.apply(null,t)},f.binary.raw.decode=function(t,e,r){var n=e;n||(n=new Uint8Array(t.length)),r=r||0;for(var a=r,i=0;i<t.length;++i)n[a++]=t.charCodeAt(i);return e?a-r:n},f.binary.hex.encode=f.bytesToHex,f.binary.hex.decode=function(t,e,r){var n=e;n||(n=new Uint8Array(Math.ceil(t.length/2))),r=r||0;var a=0,i=r;for(1&t.length&&(a=1,n[i++]=parseInt(t[0],16));a<t.length;a+=2)n[i++]=parseInt(t.substr(a,2),16);return e?i-r:n},f.binary.base64.encode=function(t,e){for(var r,n,a,i="",o="",s=0;s<t.byteLength;)r=t[s++],n=t[s++],a=t[s++],i+=u.charAt(r>>2),i+=u.charAt((3&r)<<4|n>>4),isNaN(n)?i+="==":(i+=u.charAt((15&n)<<2|a>>6),i+=isNaN(a)?"=":u.charAt(63&a)),e&&i.length>e&&(o+=i.substr(0,e)+"\r\n",i=i.substr(e));return o+=i},f.binary.base64.decode=function(t,e,r){var n=e;n||(n=new Uint8Array(3*Math.ceil(t.length/4))),t=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),r=r||0;for(var a,i,o,s,f=0,u=r;f<t.length;)a=h[t.charCodeAt(f++)-43],i=h[t.charCodeAt(f++)-43],o=h[t.charCodeAt(f++)-43],s=h[t.charCodeAt(f++)-43],n[u++]=a<<2|i>>4,64!==o&&(n[u++]=(15&i)<<4|o>>2,64!==s&&(n[u++]=(3&o)<<6|s));return e?u-r:n.subarray(0,u)},f.binary.base58.encode=function(t,e){return f.binary.baseN.encode(t,d,e)},f.binary.base58.decode=function(t,e){return f.binary.baseN.decode(t,d,e)},f.text={utf8:{},utf16:{}},f.text.utf8.encode=function(t,e,r){t=f.encodeUtf8(t);var n=e;n||(n=new Uint8Array(t.length)),r=r||0;for(var a=r,i=0;i<t.length;++i)n[a++]=t.charCodeAt(i);return e?a-r:n},f.text.utf8.decode=function(t){return f.decodeUtf8(String.fromCharCode.apply(null,t))},f.text.utf16.encode=function(t,e,r){var n=e;n||(n=new Uint8Array(2*t.length));var a=new Uint16Array(n.buffer);r=r||0;for(var i=r,o=r,s=0;s<t.length;++s)a[o++]=t.charCodeAt(s),i+=2;return e?i-r:n},f.text.utf16.decode=function(t){return String.fromCharCode.apply(null,new Uint16Array(t.buffer))},f.deflate=function(t,e,r){if(e=f.decode64(t.deflate(f.encode64(e)).rval),r){var n=2;32&e.charCodeAt(1)&&(n=6),e=e.substring(n,e.length-4)}return e},f.inflate=function(t,e,r){var n=t.inflate(f.encode64(e)).rval;return null===n?null:f.decode64(n)};var c=function(t,e,r){if(!t)throw new Error("WebStorage not available.");var n;if(null===r?n=t.removeItem(e):(r=f.encode64(JSON.stringify(r)),n=t.setItem(e,r)),void 0!==n&&!0!==n.rval){var a=new Error(n.error.message);throw a.id=n.error.id,a.name=n.error.name,a}},p=function(t,e){if(!t)throw new Error("WebStorage not available.");var r=t.getItem(e);if(t.init)if(null===r.rval){if(r.error){var n=new Error(r.error.message);throw n.id=r.error.id,n.name=r.error.name,n}r=null}else r=r.rval;return null!==r&&(r=JSON.parse(f.decode64(r))),r},l=function(t,e,r,n){var a=p(t,e);null===a&&(a={}),a[r]=n,c(t,e,a)},g=function(t,e,r){var n=p(t,e);return null!==n&&(n=r in n?n[r]:null),n},y=function(t,e,r){var n=p(t,e);if(null!==n&&r in n){delete n[r];var a=!0;for(var i in n){a=!1;break}a&&(n=null),c(t,e,n)}},v=function(t,e){c(t,e,null)},m=function(t,e,r){var n=null;void 0===r&&(r=["web","flash"]);var a,i=!1,o=null;for(var s in r){a=r[s];try{if("flash"===a||"both"===a){if(null===e[0])throw new Error("Flash local storage not available.");n=t.apply(this,e),i="flash"===a}"web"!==a&&"both"!==a||(e[0]=localStorage,n=t.apply(this,e),i=!0)}catch(t){o=t}if(i)break}if(!i)throw o;return n};f.setItem=function(t,e,r,n,a){m(l,arguments,a)},f.getItem=function(t,e,r,n){return m(g,arguments,n)},f.removeItem=function(t,e,r,n){m(y,arguments,n)},f.clearItems=function(t,e,r){m(v,arguments,r)},f.parseUrl=function(t){var e=/^(https?):\/\/([^:&^\/]*):?(\d*)(.*)$/g;e.lastIndex=0;var r=e.exec(t),n=null===r?null:{full:t,scheme:r[1],host:r[2],port:r[3],path:r[4]};return n&&(n.fullHost=n.host,n.port?80!==n.port&&"http"===n.scheme?n.fullHost+=":"+n.port:443!==n.port&&"https"===n.scheme&&(n.fullHost+=":"+n.port):"http"===n.scheme?n.port=80:"https"===n.scheme&&(n.port=443),n.full=n.scheme+"://"+n.fullHost),n};var B=null;f.getQueryVariables=function(t){var e,r=function(t){for(var e={},r=t.split("&"),n=0;n<r.length;n++){var a,i,o=r[n].indexOf("=");o>0?(a=r[n].substring(0,o),i=r[n].substring(o+1)):(a=r[n],i=null),a in e||(e[a]=[]),a in Object.prototype||null===i||e[a].push(unescape(i))}return e};return void 0===t?(null===B&&(B="undefined"!=typeof window&&window.location&&window.location.search?r(window.location.search.substring(1)):{}),e=B):e=r(t),e},f.parseFragment=function(t){var e=t,r="",n=t.indexOf("?");n>0&&(e=t.substring(0,n),r=t.substring(n+1));var a=e.split("/");return a.length>0&&""===a[0]&&a.shift(),{pathString:e,queryString:r,path:a,query:""===r?{}:f.getQueryVariables(r)}},f.makeRequest=function(t){var e=f.parseFragment(t),r={path:e.pathString,query:e.queryString,getPath:function(t){return void 0===t?e.path:e.path[t]},getQuery:function(t,r){var n;return void 0===t?n=e.query:(n=e.query[t])&&void 0!==r&&(n=n[r]),n},getQueryLast:function(t,e){var n=r.getQuery(t);return n?n[n.length-1]:e}};return r},f.makeLink=function(t,e,r){t=jQuery.isArray(t)?t.join("/"):t;var n=jQuery.param(e||{});return r=r||"",t+(n.length>0?"?"+n:"")+(r.length>0?"#"+r:"")},f.setPath=function(t,e,r){if("object"==typeof t&&null!==t)for(var n=0,a=e.length;n<a;){var i=e[n++];if(n==a)t[i]=r;else{var o=i in t;(!o||o&&"object"!=typeof t[i]||o&&null===t[i])&&(t[i]={}),t=t[i]}}},f.getPath=function(t,e,r){for(var n=0,a=e.length,i=!0;i&&n<a&&"object"==typeof t&&null!==t;){var o=e[n++];i=o in t,i&&(t=t[o])}return i?t:r},f.deletePath=function(t,e){if("object"==typeof t&&null!==t)for(var r=0,n=e.length;r<n;){var a=e[r++];if(r==n)delete t[a];else{if(!(a in t)||"object"!=typeof t[a]||null===t[a])break;t=t[a]}}},f.isEmpty=function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},f.format=function(t){for(var e,r,n=/%./g,a=0,i=[],o=0;e=n.exec(t);){r=t.substring(o,n.lastIndex-2),r.length>0&&i.push(r),o=n.lastIndex;var s=e[0][1];switch(s){case"s":case"o":a<arguments.length?i.push(arguments[1+a++]):i.push("<?>");break;case"%":i.push("%");break;default:i.push("<%"+s+"?>")}}return i.push(t.substring(o)),i.join("")},f.formatNumber=function(t,e,r,n){var a=t,i=isNaN(e=Math.abs(e))?2:e,o=void 0===r?",":r,s=void 0===n?".":n,f=a<0?"-":"",u=parseInt(a=Math.abs(+a||0).toFixed(i),10)+"",h=u.length>3?u.length%3:0;return f+(h?u.substr(0,h)+s:"")+u.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+s)+(i?o+Math.abs(a-u).toFixed(i).slice(2):"")},f.formatSize=function(t){return t=t>=1073741824?f.formatNumber(t/1073741824,2,".","")+" GiB":t>=1048576?f.formatNumber(t/1048576,2,".","")+" MiB":t>=1024?f.formatNumber(t/1024,0)+" KiB":f.formatNumber(t,0)+" bytes"},f.bytesFromIP=function(t){return-1!==t.indexOf(".")?f.bytesFromIPv4(t):-1!==t.indexOf(":")?f.bytesFromIPv6(t):null},f.bytesFromIPv4=function(t){if(t=t.split("."),4!==t.length)return null;for(var e=f.createBuffer(),r=0;r<t.length;++r){var n=parseInt(t[r],10);if(isNaN(n))return null;e.putByte(n)}return e.getBytes()},f.bytesFromIPv6=function(t){var e=0;t=t.split(":").filter(function(t){return 0===t.length&&++e,!0});for(var r=2*(8-t.length+e),n=f.createBuffer(),a=0;a<8;++a)if(t[a]&&0!==t[a].length){var i=f.hexToBytes(t[a]);i.length<2&&n.putByte(0),n.putBytes(i)}else n.fillWithByte(0,r),r=0;return n.getBytes()},f.bytesToIP=function(t){return 4===t.length?f.bytesToIPv4(t):16===t.length?f.bytesToIPv6(t):null},f.bytesToIPv4=function(t){if(4!==t.length)return null;for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e.join(".")},f.bytesToIPv6=function(t){if(16!==t.length)return null;for(var e=[],r=[],n=0,a=0;a<t.length;a+=2){for(var i=f.bytesToHex(t[a]+t[a+1]);"0"===i[0]&&"0"!==i;)i=i.substr(1);if("0"===i){var o=r[r.length-1],s=e.length;o&&s===o.end+1?(o.end=s,o.end-o.start>r[n].end-r[n].start&&(n=r.length-1)):r.push({start:s,end:s})}e.push(i)}if(r.length>0){var u=r[n];u.end-u.start>0&&(e.splice(u.start,u.end-u.start+1,""),0===u.start&&e.unshift(""),7===u.end&&e.push(""))}return e.join(":")},f.estimateCores=function(t,e){function r(t,o,s){if(0===o){var u=Math.floor(t.reduce(function(t,e){return t+e},0)/t.length);return f.cores=Math.max(1,u),URL.revokeObjectURL(i),e(null,f.cores)}n(s,function(e,n){t.push(a(s,n)),r(t,o-1,s)})}function n(t,e){for(var r=[],n=[],a=0;a<t;++a){var o=new Worker(i);o.addEventListener("message",function(a){if(n.push(a.data),n.length===t){for(var i=0;i<t;++i)r[i].terminate();e(null,n)}}),r.push(o)}for(var a=0;a<t;++a)r[a].postMessage(a)}function a(t,e){for(var r=[],n=0;n<t;++n)for(var a=e[n],i=r[n]=[],o=0;o<t;++o)if(n!==o){var s=e[o];(a.st>s.st&&a.st<s.et||s.st>a.st&&s.st<a.et)&&i.push(o)}return r.reduce(function(t,e){return Math.max(t,e.length)},0)}if("function"==typeof t&&(e=t,t={}),t=t||{},"cores"in f&&!t.update)return e(null,f.cores);if("undefined"!=typeof navigator&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return f.cores=navigator.hardwareConcurrency,e(null,f.cores);if("undefined"==typeof Worker)return f.cores=1,e(null,f.cores);if("undefined"==typeof Blob)return f.cores=2,e(null,f.cores);var i=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(t){for(var e=Date.now(),r=e+4;Date.now()<r;);self.postMessage({st:e,et:r})})}.toString(),")()"],{type:"application/javascript"}));r([],5,16)}}).call(e,r(5))},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){function r(t,e){var r=0,n=e.length,a=e.charAt(0),i=[0];for(r=0;r<t.length();++r){for(var o=0,s=t.at(r);o<i.length;++o)s+=i[o]<<8,i[o]=s%n,s=s/n|0;for(;s>0;)i.push(s%n),s=s/n|0}var f="";for(r=0;0===t.at(r)&&r<t.length()-1;++r)f+=a;for(r=i.length-1;r>=0;--r)f+=e[i[r]];return f}var n={};t.exports=n;var a={};n.encode=function(t,e,n){if("string"!=typeof e)throw new TypeError('"alphabet" must be a string.');if(void 0!==n&&"number"!=typeof n)throw new TypeError('"maxline" must be a number.');var a="";if(t instanceof Uint8Array){var i=0,o=e.length,s=e.charAt(0),f=[0];for(i=0;i<t.length;++i){for(var u=0,h=t[i];u<f.length;++u)h+=f[u]<<8,f[u]=h%o,h=h/o|0;for(;h>0;)f.push(h%o),h=h/o|0}for(i=0;0===t[i]&&i<t.length-1;++i)a+=s;for(i=f.length-1;i>=0;--i)a+=e[f[i]]}else a=r(t,e);if(n){var d=new RegExp(".{1,"+n+"}","g");a=a.match(d).join("\r\n")}return a},n.decode=function(t,e){if("string"!=typeof t)throw new TypeError('"input" must be a string.');if("string"!=typeof e)throw new TypeError('"alphabet" must be a string.');var r=a[e];if(!r){r=a[e]=[];for(var n=0;n<e.length;++n)r[e.charCodeAt(n)]=n}t=t.replace(/\s/g,"");for(var i=e.length,o=e.charAt(0),s=[0],n=0;n<t.length;n++){var f=r[t.charCodeAt(n)];if(void 0===f)return;for(var u=0,h=f;u<s.length;++u)h+=s[u]*i,s[u]=255&h,h>>=8;for(;h>0;)s.push(255&h),h>>=8}for(var d=0;t[d]===o&&d<t.length-1;++d)s.push(0);return"undefined"!=typeof Buffer?Buffer.from(s.reverse()):new Uint8Array(s.reverse())}}])});
//# sourceMappingURL=forge.sha256.min.js.map
......@@ -6,6 +6,6 @@
[[!meta stylesheet="inc/stylesheets/steps" rel="stylesheet" title=""]]
[[!meta stylesheet="inc/stylesheets/linux" rel="stylesheet" title=""]]
[[!meta script="install/inc/js/download"]]
[[!meta script="install/inc/js/forge.sha256"]]
[[!meta script="install/inc/js/forge.sha256.min"]]
[[!inline pages="install/inc/steps/download.inline" raw="yes" sort="age"]]
......@@ -6,6 +6,6 @@
[[!meta stylesheet="inc/stylesheets/steps" rel="stylesheet" title=""]]
[[!meta stylesheet="inc/stylesheets/mac" rel="stylesheet" title=""]]
[[!meta script="install/inc/js/download"]]
[[!meta script="install/inc/js/forge.sha256"]]
[[!meta script="install/inc/js/forge.sha256.min"]]
[[!inline pages="install/inc/steps/download.inline" raw="yes" sort="age"]]
......@@ -6,6 +6,6 @@
[[!meta stylesheet="inc/stylesheets/steps" rel="stylesheet" title=""]]
[[!meta stylesheet="inc/stylesheets/vm" rel="stylesheet" title=""]]
[[!meta script="install/inc/js/download"]]
[[!meta script="install/inc/js/forge.sha256"]]
[[!meta script="install/inc/js/forge.sha256.min"]]
[[!inline pages="install/inc/steps/download.inline" raw="yes" sort="age"]]
......@@ -6,6 +6,6 @@
[[!meta stylesheet="inc/stylesheets/steps" rel="stylesheet" title=""]]
[[!meta stylesheet="inc/stylesheets/windows" rel="stylesheet" title=""]]
[[!meta script="install/inc/js/download"]]
[[!meta script="install/inc/js/forge.sha256"]]
[[!meta script="install/inc/js/forge.sha256.min"]]
[[!inline pages="install/inc/steps/download.inline" raw="yes" sort="age"]]
......@@ -6,6 +6,6 @@
[[!meta stylesheet="install/inc/stylesheets/steps" rel="stylesheet" title=""]]
[[!meta stylesheet="install/inc/stylesheets/upgrade-linux" rel="stylesheet" title=""]]
[[!meta script="install/inc/js/download"]]
[[!meta script="install/inc/js/forge.sha256"]]
[[!meta script="install/inc/js/forge.sha256.min"]]
[[!inline pages="install/inc/steps/download.inline" raw="yes" sort="age"]]
......@@ -6,6 +6,6 @@
[[!meta stylesheet="install/inc/stylesheets/steps" rel="stylesheet" title=""]]
[[!meta stylesheet="install/inc/stylesheets/upgrade-mac" rel="stylesheet" title=""]]
[[!meta script="install/inc/js/download"]]
[[!meta script="install/inc/js/forge.sha256"]]
[[!meta script="install/inc/js/forge.sha256.min"]]
[[!inline pages="install/inc/steps/download.inline" raw="yes" sort="age"]]
......@@ -6,6 +6,6 @@
[[!meta stylesheet="install/inc/stylesheets/steps" rel="stylesheet" title=""]]
[[!meta stylesheet="install/inc/stylesheets/upgrade-tails" rel="stylesheet" title=""]]
[[!meta script="install/inc/js/download"]]
[[!meta script="install/inc/js/forge.sha256"]]
[[!meta script="install/inc/js/forge.sha256.min"]]
[[!inline pages="install/inc/steps/download.inline" raw="yes" sort="age"]]
......@@ -6,6 +6,6 @@
[[!meta stylesheet="install/inc/stylesheets/steps" rel="stylesheet" title=""]]
[[!meta stylesheet="install/inc/stylesheets/upgrade-windows" rel="stylesheet" title=""]]
[[!meta script="install/inc/js/download"]]
[[!meta script="install/inc/js/forge.sha256"]]
[[!meta script="install/inc/js/forge.sha256.min"]]
[[!inline pages="install/inc/steps/download.inline" raw="yes" sort="age"]]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment