-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathkennitala.min.js
1 lines (1 loc) · 22.3 KB
/
kennitala.min.js
1
!function r(i,o,a){function s(n,t){if(!o[n]){if(!i[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(u)return u(n,!0);throw new Error("Cannot find module '"+n+"'")}e=o[n]={exports:{}};i[n][0].call(e.exports,function(t){var e=i[n][1][t];return s(e||t)},e,e.exports,r,i,o,a)}return o[n].exports}for(var u="function"==typeof require&&require,t=0;t<a.length;t++)s(a[t]);return s}({1:[function(t,e,n){!function(t,e,n,r,i,o,a,s,u){"use strict";function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var l=(function(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}(c,[{key:"randomInt",value:function(t,e){return Math.floor(Math.random()*(e-t+1)+t)}},{key:"createFakeKennitala",value:function(){var t=1===(t=("person"==(Math.round(Math.random())?"person":"company")?this.randomInt(1,31):this.randomInt(41,71)).toString()).length?"0"+t:t,e=1===(e=this.randomInt(1,12).toString()).length?"0"+e:e,n=1===(n=this.randomInt(0,99).toString()).length?"0"+n:n,r=this.randomInt(0,99).toString(),i=(i=t+e+n+(r=1===r.length?"0"+r:r)).split("").map(function(t){return parseInt(t,10)});this.currentRadtala=parseInt(r,10);var o=this.calculateVartala(i);if(10===o)for(var a=10;10===a;){var s=this.calculateVartala(i,!0);10!==s&&(o=s),a=s}return t+e+n+r+o.toString()+["0","8","9"][this.randomInt(0,2)]}},{key:"existanceInYears",value:function(t){var e=new Date,n=e.getUTCFullYear()-t.getUTCFullYear(),r=e.getUTCMonth()-t.getUTCMonth();return(r<0||0==r&&e.getUTCDate()<t.getUTCDate())&&n--,n}},{key:"getAge",value:function(t){var e=t.split(""),n=void 0;"0"===e[9]?n=20:"9"===e[9]?n=19:"8"===e[9]&&(n=18);var r=new Date,i=r.getUTCMonth(),o=r.getUTCDate(),a=parseInt(e[2]+e[3],10)-1,t="person"===this.type?parseInt(e[0]+e[1],10):parseInt(e[0]-4+e[1],10),e=new Date(parseInt(n+e[4]+e[5],10),a,t),t=i===a&&o===t;return{years:this.existanceInYears(e),msAge:r-e,birthdayToday:t}}},{key:"getType",value:function(t){t=t.split(""),t=parseInt(t[0]+t[1],10);return 40<t&&t<72?"company":"person"}},{key:"isValid",value:function(t){if(10!==t.length)return{valid:!1,reason:"Kennitala is too short",errorCode:1};var e=t.split(""),t=parseInt(e[0]+e[1],10);if(!(0<t&&t<72)||31<t&&t<41)return{valid:!1,reason:"Birthdate is out of range (digits 1 and 2)",errorCode:2};t=parseInt(e[2]+e[3],10);if(!(0<t&&t<13))return{valid:!1,reason:"Month digits are out of range (digits 3 and 4)",errorCode:3};if(this.currentRadtala=parseInt(e[6]+e[7],10),e.map(function(t){return parseInt(t,10)}),!1===this.validateNine(e))return{valid:!1,reason:'Digit 9 is not valid. Read about "Níundi stafurinn" here: https://is.wikipedia.org/wiki/Kennitala',errorCode:4};e=parseInt(e[9],10);return 0!==e&&8!==e&&9!==e?{valid:!1,reason:"Century digit out of range (digit 10)",errorCode:5}:{valid:!0}}},{key:"calculateVartala",value:function(t,e){e&&this.currentRadtala++;var n=("0"+this.currentRadtala.toString()).slice(-2).split(""),e=parseInt(n[0],10),n=parseInt(n[1],10),n=(3*t[0]+2*t[1]+7*t[2]+6*t[3]+5*t[4]+4*t[5]+3*e+2*n)%11;return 0==n?0:11-n}},{key:"validateNine",value:function(t){var e=this.calculateVartala(t);if(10===e)for(var n=10;10===n;){var r=this.calculateVartala(t,!0);10!==r&&(e=r),n=r}return e===parseInt(t[8],10)}}]),c);function c(t){!function(t){if(!(t instanceof c))throw new TypeError("Cannot call a class as a function")}(this);var e=void 0;9===(e=(e="fake"===(t.toString()||"").toLowerCase()?this.createFakeKennitala():t?t.toString():"").replace(/-/g,"")).length&&(e="0"+e);var n=this.isValid(e);if(n.valid){this.type=this.getType(e);t=this.getAge(e);return{valid:n.valid,type:this.type,age:t.years,msAge:t.msAge,birthdayToday:t.birthdayToday,kt:e,formattedKt:e.substr(0,6)+"-"+e.substr(6,10)}}return{valid:n.valid,reason:n.reason,errorCode:n.errorCode}}e.Kennitala=l}.call(this,t("U9cQDF"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_841c815e.js","/")},{U9cQDF:3,buffer:4}],2:[function(t,e,m){!function(t,e,n,r,i,o,a,s,u){"use strict";var f,l,c,h,d,g,p,y,b;function w(t){t=t.charCodeAt(0);return t===c||t===y?62:t===h||t===b?63:t<d?-1:t<d+10?t-d+26+26:t<p+26?t-p:t<g+26?t-g+26:void 0}f=void 0===m?(void 0).base64js={}:m,l="undefined"!=typeof Uint8Array?Uint8Array:Array,c="+".charCodeAt(0),h="/".charCodeAt(0),d="0".charCodeAt(0),g="a".charCodeAt(0),p="A".charCodeAt(0),y="-".charCodeAt(0),b="_".charCodeAt(0),f.toByteArray=function(t){var e,n;if(0<t.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.length,r="="===t.charAt(r-2)?2:"="===t.charAt(r-1)?1:0,i=new l(3*t.length/4-r),o=0<r?t.length-4:t.length,a=0;function s(t){i[a++]=t}for(e=0;e<o;e+=4,0)s((16711680&(n=w(t.charAt(e))<<18|w(t.charAt(e+1))<<12|w(t.charAt(e+2))<<6|w(t.charAt(e+3))))>>16),s((65280&n)>>8),s(255&n);return 2==r?s(255&(n=w(t.charAt(e))<<2|w(t.charAt(e+1))>>4)):1==r&&(s((n=w(t.charAt(e))<<10|w(t.charAt(e+1))<<4|w(t.charAt(e+2))>>2)>>8&255),s(255&n)),i},f.fromByteArray=function(t){var e,n,r,i,o=t.length%3,a="";function s(t){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)}for(e=0,r=t.length-o;e<r;e+=3)n=(t[e]<<16)+(t[e+1]<<8)+t[e+2],a+=s((i=n)>>18&63)+s(i>>12&63)+s(i>>6&63)+s(63&i);switch(o){case 1:a+=s((n=t[t.length-1])>>2),a+=s(n<<4&63),a+="==";break;case 2:a+=s((n=(t[t.length-2]<<8)+t[t.length-1])>>10),a+=s(n>>4&63),a+=s(n<<2&63),a+="="}return a}}.call(this,t("U9cQDF"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\..\\..\\Óli Tómas\\jobs\\kennitalajs\\node_modules\\base64-js\\lib\\b64.js","/..\\..\\..\\..\\Óli Tómas\\jobs\\kennitalajs\\node_modules\\base64-js\\lib")},{U9cQDF:3,buffer:4}],3:[function(t,l,e){!function(t,e,n,r,i,o,a,s,u){"use strict";function f(){}(t=l.exports={}).nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",function(t){var e=t.source;e!==window&&null!==e||"process-tick"!==t.data||(t.stopPropagation(),0<n.length&&n.shift()())},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),t.title="browser",t.browser=!0,t.env={},t.argv=[],t.on=f,t.addListener=f,t.once=f,t.off=f,t.removeListener=f,t.removeAllListeners=f,t.emit=f,t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")}}.call(this,t("U9cQDF"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\..\\..\\Óli Tómas\\jobs\\kennitalajs\\node_modules\\browserify\\node_modules\\process\\browser.js","/..\\..\\..\\..\\Óli Tómas\\jobs\\kennitalajs\\node_modules\\browserify\\node_modules\\process")},{U9cQDF:3,buffer:4}],4:[function(V,t,K){!function(t,e,l,n,r,i,o,a,s){"use strict";var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=V("base64-js"),c=V("ieee754");function l(t,e,n){if(!(this instanceof l))return new l(t,e,n);var r,i,o,a,s=void 0===t?"undefined":u(t);if("base64"===e&&"string"===s)for(t=(a=t).trim?a.trim():a.replace(/^\s+|\s+$/g,"");t.length%4!=0;)t+="=";if("number"===s)r=C(t);else if("string"===s)r=l.byteLength(t,e);else{if("object"!==s)throw new Error("First argument needs to be a number, array or string.");r=C(t.length)}if(l._useTypedArrays?i=l._augment(new Uint8Array(r)):((i=this).length=r,i._isBuffer=!0),l._useTypedArrays&&"number"==typeof t.byteLength)i._set(t);else if(S(a=t)||l.isBuffer(a)||a&&"object"===(void 0===a?"undefined":u(a))&&"number"==typeof a.length)for(o=0;o<r;o++)l.isBuffer(t)?i[o]=t.readUInt8(o):i[o]=t[o];else if("string"===s)i.write(t,0,e);else if("number"===s&&!l._useTypedArrays&&!n)for(o=0;o<r;o++)i[o]=0;return i}function h(t,e,n,r){return l._charsWritten=F(function(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function d(t,e,n,r){return l._charsWritten=F(function(t){for(var e,n,r=[],i=0;i<t.length;i++)n=t.charCodeAt(i),e=n>>8,n=n%256,r.push(n),r.push(e);return r}(e),t,n,r)}function g(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;i++)r+=String.fromCharCode(t[i]);return r}function p(t,e,n,r){r||(R("boolean"==typeof n,"missing or invalid endian"),R(null!=e,"missing offset"),R(e+1<t.length,"Trying to read beyond buffer length"));var i,r=t.length;if(!(r<=e))return n?(i=t[e],e+1<r&&(i|=t[e+1]<<8)):(i=t[e]<<8,e+1<r&&(i|=t[e+1])),i}function y(t,e,n,r){r||(R("boolean"==typeof n,"missing or invalid endian"),R(null!=e,"missing offset"),R(e+3<t.length,"Trying to read beyond buffer length"));var i,r=t.length;if(!(r<=e))return n?(e+2<r&&(i=t[e+2]<<16),e+1<r&&(i|=t[e+1]<<8),i|=t[e],e+3<r&&(i+=t[e+3]<<24>>>0)):(e+1<r&&(i=t[e+1]<<16),e+2<r&&(i|=t[e+2]<<8),e+3<r&&(i|=t[e+3]),i+=t[e]<<24>>>0),i}function b(t,e,n,r){if(r||(R("boolean"==typeof n,"missing or invalid endian"),R(null!=e,"missing offset"),R(e+1<t.length,"Trying to read beyond buffer length")),!(t.length<=e)){n=p(t,e,n,!0);return 32768&n?-1*(65535-n+1):n}}function w(t,e,n,r){if(r||(R("boolean"==typeof n,"missing or invalid endian"),R(null!=e,"missing offset"),R(e+3<t.length,"Trying to read beyond buffer length")),!(t.length<=e)){n=y(t,e,n,!0);return 2147483648&n?-1*(4294967295-n+1):n}}function m(t,e,n,r){return r||(R("boolean"==typeof n,"missing or invalid endian"),R(e+3<t.length,"Trying to read beyond buffer length")),c.read(t,e,n,23,4)}function v(t,e,n,r){return r||(R("boolean"==typeof n,"missing or invalid endian"),R(e+7<t.length,"Trying to read beyond buffer length")),c.read(t,e,n,52,8)}function I(t,e,n,r,i){i||(R(null!=e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(null!=n,"missing offset"),R(n+1<t.length,"trying to write beyond buffer length"),N(e,65535));i=t.length;if(!(i<=n))for(var o=0,a=Math.min(i-n,2);o<a;o++)t[n+o]=(e&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function E(t,e,n,r,i){i||(R(null!=e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(null!=n,"missing offset"),R(n+3<t.length,"trying to write beyond buffer length"),N(e,4294967295));i=t.length;if(!(i<=n))for(var o=0,a=Math.min(i-n,4);o<a;o++)t[n+o]=e>>>8*(r?o:3-o)&255}function B(t,e,n,r,i){i||(R(null!=e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(null!=n,"missing offset"),R(n+1<t.length,"Trying to write beyond buffer length"),x(e,32767,-32768)),t.length<=n||I(t,0<=e?e:65535+e+1,n,r,i)}function A(t,e,n,r,i){i||(R(null!=e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(null!=n,"missing offset"),R(n+3<t.length,"Trying to write beyond buffer length"),x(e,2147483647,-2147483648)),t.length<=n||E(t,0<=e?e:4294967295+e+1,n,r,i)}function U(t,e,n,r,i){i||(R(null!=e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(null!=n,"missing offset"),R(n+3<t.length,"Trying to write beyond buffer length"),Q(e,34028234663852886e22,-34028234663852886e22)),t.length<=n||c.write(t,e,n,r,23,4)}function L(t,e,n,r,i){i||(R(null!=e,"missing value"),R("boolean"==typeof r,"missing or invalid endian"),R(null!=n,"missing offset"),R(n+7<t.length,"Trying to write beyond buffer length"),Q(e,17976931348623157e292,-17976931348623157e292)),t.length<=n||c.write(t,e,n,r,52,8)}K.Buffer=l,K.SlowBuffer=l,K.INSPECT_MAX_BYTES=50,l.poolSize=8192,l._useTypedArrays=function(){try{var t=new ArrayBuffer(0),t=new Uint8Array(t);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(t){return!1}}(),l.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}},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.byteLength=function(t,e){var n;switch(t+="",e||"utf8"){case"hex":n=t.length/2;break;case"utf8":case"utf-8":n=j(t).length;break;case"ascii":case"binary":case"raw":n=t.length;break;case"base64":n=M(t).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*t.length;break;default:throw new Error("Unknown encoding")}return n},l.concat=function(t,e){if(R(S(t),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===t.length)return new l(0);if(1===t.length)return t[0];if("number"!=typeof e)for(i=e=0;i<t.length;i++)e+=t[i].length;for(var n=new l(e),r=0,i=0;i<t.length;i++){var o=t[i];o.copy(n,r),r+=o.length}return n},l.prototype.write=function(t,e,n,r){isFinite(e)?isFinite(n)||(r=n,n=void 0):(f=r,r=e,e=n,n=f),e=Number(e)||0;var i,o,a,s,u,f=this.length-e;switch((!n||f<(n=Number(n)))&&(n=f),r=String(r||"utf8").toLowerCase()){case"hex":i=function(t,e,n,r){n=Number(n)||0;var i=t.length-n;(!r||i<(r=Number(r)))&&(r=i),R((i=e.length)%2==0,"Invalid hex string"),i/2<r&&(r=i/2);for(var o=0;o<r;o++){var a=parseInt(e.substr(2*o,2),16);R(!isNaN(a),"Invalid hex string"),t[n+o]=a}return l._charsWritten=2*o,o}(this,t,e,n);break;case"utf8":case"utf-8":o=this,a=t,s=e,u=n,i=l._charsWritten=F(j(a),o,s,u);break;case"ascii":case"binary":i=h(this,t,e,n);break;case"base64":a=this,o=t,s=e,u=n,i=l._charsWritten=F(M(o),a,s,u);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=d(this,t,e,n);break;default:throw new Error("Unknown encoding")}return i},l.prototype.toString=function(t,e,n){var r,i,o,a,s=this;if(t=String(t||"utf8").toLowerCase(),e=Number(e)||0,(n=void 0!==n?Number(n):s.length)===e)return"";switch(t){case"hex":r=function(t,e,n){var r=t.length;(!e||e<0)&&(e=0);(!n||n<0||r<n)&&(n=r);for(var i="",o=e;o<n;o++)i+=_(t[o]);return i}(s,e,n);break;case"utf8":case"utf-8":r=function(t,e,n){var r="",i="";n=Math.min(t.length,n);for(var o=e;o<n;o++)t[o]<=127?(r+=D(i)+String.fromCharCode(t[o]),i=""):i+="%"+t[o].toString(16);return r+D(i)}(s,e,n);break;case"ascii":case"binary":r=g(s,e,n);break;case"base64":i=s,a=n,r=0===(o=e)&&a===i.length?f.fromByteArray(i):f.fromByteArray(i.slice(o,a));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(s,e,n);break;default:throw new Error("Unknown encoding")}return r},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.copy=function(t,e,n,r){if(n=n||0,r||0===r||(r=this.length),e=e||0,r!==n&&0!==t.length&&0!==this.length){R(n<=r,"sourceEnd < sourceStart"),R(0<=e&&e<t.length,"targetStart out of bounds"),R(0<=n&&n<this.length,"sourceStart out of bounds"),R(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length);var i=(r=t.length-e<r-n?t.length-e+n:r)-n;if(i<100||!l._useTypedArrays)for(var o=0;o<i;o++)t[o+e]=this[o+n];else t._set(this.subarray(n,n+i),e)}},l.prototype.slice=function(t,e){var n=this.length;if(t=k(t,n,0),e=k(e,n,n),l._useTypedArrays)return l._augment(this.subarray(t,e));for(var r=e-t,i=new l(r,void 0,!0),o=0;o<r;o++)i[o]=this[o+t];return i},l.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},l.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},l.prototype.readUInt8=function(t,e){if(e||(R(null!=t,"missing offset"),R(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length))return this[t]},l.prototype.readUInt16LE=function(t,e){return p(this,t,!0,e)},l.prototype.readUInt16BE=function(t,e){return p(this,t,!1,e)},l.prototype.readUInt32LE=function(t,e){return y(this,t,!0,e)},l.prototype.readUInt32BE=function(t,e){return y(this,t,!1,e)},l.prototype.readInt8=function(t,e){if(e||(R(null!=t,"missing offset"),R(t<this.length,"Trying to read beyond buffer length")),!(t>=this.length))return 128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){return b(this,t,!0,e)},l.prototype.readInt16BE=function(t,e){return b(this,t,!1,e)},l.prototype.readInt32LE=function(t,e){return w(this,t,!0,e)},l.prototype.readInt32BE=function(t,e){return w(this,t,!1,e)},l.prototype.readFloatLE=function(t,e){return m(this,t,!0,e)},l.prototype.readFloatBE=function(t,e){return m(this,t,!1,e)},l.prototype.readDoubleLE=function(t,e){return v(this,t,!0,e)},l.prototype.readDoubleBE=function(t,e){return v(this,t,!1,e)},l.prototype.writeUInt8=function(t,e,n){n||(R(null!=t,"missing value"),R(null!=e,"missing offset"),R(e<this.length,"trying to write beyond buffer length"),N(t,255)),e>=this.length||(this[e]=t)},l.prototype.writeUInt16LE=function(t,e,n){I(this,t,e,!0,n)},l.prototype.writeUInt16BE=function(t,e,n){I(this,t,e,!1,n)},l.prototype.writeUInt32LE=function(t,e,n){E(this,t,e,!0,n)},l.prototype.writeUInt32BE=function(t,e,n){E(this,t,e,!1,n)},l.prototype.writeInt8=function(t,e,n){n||(R(null!=t,"missing value"),R(null!=e,"missing offset"),R(e<this.length,"Trying to write beyond buffer length"),x(t,127,-128)),e>=this.length||(0<=t?this.writeUInt8(t,e,n):this.writeUInt8(255+t+1,e,n))},l.prototype.writeInt16LE=function(t,e,n){B(this,t,e,!0,n)},l.prototype.writeInt16BE=function(t,e,n){B(this,t,e,!1,n)},l.prototype.writeInt32LE=function(t,e,n){A(this,t,e,!0,n)},l.prototype.writeInt32BE=function(t,e,n){A(this,t,e,!1,n)},l.prototype.writeFloatLE=function(t,e,n){U(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){U(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){L(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){L(this,t,e,!1,n)},l.prototype.fill=function(t,e,n){if(t=t||0,e=e||0,n=n||this.length,"string"==typeof t&&(t=t.charCodeAt(0)),R("number"==typeof t&&!isNaN(t),"value is not a number"),R(e<=n,"end < start"),n!==e&&0!==this.length){R(0<=e&&e<this.length,"start out of bounds"),R(0<=n&&n<=this.length,"end out of bounds");for(var r=e;r<n;r++)this[r]=t}},l.prototype.inspect=function(){for(var t=[],e=this.length,n=0;n<e;n++)if(t[n]=_(this[n]),n===K.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},l.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(l._useTypedArrays)return new l(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;e<n;e+=1)t[e]=this[e];return t.buffer};var T=l.prototype;function k(t,e,n){return"number"!=typeof t?n:e<=(t=~~t)?e:0<=t||0<=(t+=e)?t:0}function C(t){return(t=~~Math.ceil(+t))<0?0:t}function S(t){return(Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)})(t)}function _(t){return t<16?"0"+t.toString(16):t.toString(16)}function j(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r<=127)e.push(t.charCodeAt(n));else{var i=n;55296<=r&&r<=57343&&n++;for(var o=encodeURIComponent(t.slice(i,n+1)).substr(1).split("%"),a=0;a<o.length;a++)e.push(parseInt(o[a],16))}}return e}function M(t){return f.toByteArray(t)}function F(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);i++)e[i+n]=t[i];return i}function D(t){try{return decodeURIComponent(t)}catch(t){return String.fromCharCode(65533)}}function N(t,e){R("number"==typeof t,"cannot write a non-number as a number"),R(0<=t,"specified a negative value for writing an unsigned value"),R(t<=e,"value is larger than maximum value for type"),R(Math.floor(t)===t,"value has a fractional component")}function x(t,e,n){R("number"==typeof t,"cannot write a non-number as a number"),R(t<=e,"value larger than maximum allowed value"),R(n<=t,"value smaller than minimum allowed value"),R(Math.floor(t)===t,"value has a fractional component")}function Q(t,e,n){R("number"==typeof t,"cannot write a non-number as a number"),R(t<=e,"value larger than maximum allowed value"),R(n<=t,"value smaller than minimum allowed value")}function R(t,e){if(!t)throw new Error(e||"Failed assertion")}l._augment=function(t){return t._isBuffer=!0,t._get=t.get,t._set=t.set,t.get=T.get,t.set=T.set,t.write=T.write,t.toString=T.toString,t.toLocaleString=T.toString,t.toJSON=T.toJSON,t.copy=T.copy,t.slice=T.slice,t.readUInt8=T.readUInt8,t.readUInt16LE=T.readUInt16LE,t.readUInt16BE=T.readUInt16BE,t.readUInt32LE=T.readUInt32LE,t.readUInt32BE=T.readUInt32BE,t.readInt8=T.readInt8,t.readInt16LE=T.readInt16LE,t.readInt16BE=T.readInt16BE,t.readInt32LE=T.readInt32LE,t.readInt32BE=T.readInt32BE,t.readFloatLE=T.readFloatLE,t.readFloatBE=T.readFloatBE,t.readDoubleLE=T.readDoubleLE,t.readDoubleBE=T.readDoubleBE,t.writeUInt8=T.writeUInt8,t.writeUInt16LE=T.writeUInt16LE,t.writeUInt16BE=T.writeUInt16BE,t.writeUInt32LE=T.writeUInt32LE,t.writeUInt32BE=T.writeUInt32BE,t.writeInt8=T.writeInt8,t.writeInt16LE=T.writeInt16LE,t.writeInt16BE=T.writeInt16BE,t.writeInt32LE=T.writeInt32LE,t.writeInt32BE=T.writeInt32BE,t.writeFloatLE=T.writeFloatLE,t.writeFloatBE=T.writeFloatBE,t.writeDoubleLE=T.writeDoubleLE,t.writeDoubleBE=T.writeDoubleBE,t.fill=T.fill,t.inspect=T.inspect,t.toArrayBuffer=T.toArrayBuffer,t}}.call(this,V("U9cQDF"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},V("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\..\\..\\Óli Tómas\\jobs\\kennitalajs\\node_modules\\buffer\\index.js","/..\\..\\..\\..\\Óli Tómas\\jobs\\kennitalajs\\node_modules\\buffer")},{U9cQDF:3,"base64-js":2,buffer:4,ieee754:5}],5:[function(t,e,f){!function(t,e,n,r,i,o,a,s,u){"use strict";f.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,f=u>>1,l=-7,c=n?i-1:0,h=n?-1:1,n=t[e+c];for(c+=h,o=n&(1<<-l)-1,n>>=-l,l+=s;0<l;o=256*o+t[e+c],c+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;0<l;a=256*a+t[e+c],c+=h,l-=8);if(0===o)o=1-f;else{if(o===u)return a?NaN:1/0*(n?-1:1);a+=Math.pow(2,r),o-=f}return(n?-1:1)*a*Math.pow(2,o-r)},f.write=function(t,e,n,r,i,o){var a,s,u=8*o-i-1,f=(1<<u)-1,l=f>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,o=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(r=Math.pow(2,-a))<1&&(a--,r*=2),2<=(e+=1<=a+l?c/r:c*Math.pow(2,1-l))*r&&(a++,r/=2),f<=a+l?(s=0,a=f):1<=a+l?(s=(e*r-1)*Math.pow(2,i),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));8<=i;t[n+h]=255&s,h+=d,s/=256,i-=8);for(a=a<<i|s,u+=i;0<u;t[n+h]=255&a,h+=d,a/=256,u-=8);t[n+h-d]|=128*o}}.call(this,t("U9cQDF"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/..\\..\\..\\..\\Óli Tómas\\jobs\\kennitalajs\\node_modules\\ieee754\\index.js","/..\\..\\..\\..\\Óli Tómas\\jobs\\kennitalajs\\node_modules\\ieee754")},{U9cQDF:3,buffer:4}]},{},[1]);