!function(e){"use strict";var u,c,l,f,h,p,t,n=Object.prototype,d=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag",r="object"==typeof module,s=e.regeneratorRuntime;function g(e,t,n,r){var i,a,o,s,t=t&&t.prototype instanceof v?t:v,t=Object.create(t.prototype),r=new S(r||[]);return t._invoke=(i=e,a=n,o=r,s=c,function(e,t){if(s===f)throw new Error("Generator is already running");if(s===h){if("throw"===e)throw t;return R()}for(o.method=e,o.arg=t;;){var n=o.delegate;if(n){var r=function e(t,n){var r=t.iterator[n.method];if(r===u){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=u,e(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}r=m(r,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,p;var r=r.arg;if(!r)return n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p;{if(!r.done)return r;n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=u)}n.delegate=null;return p}(n,o);if(r){if(r===p)continue;return r}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(s===c)throw s=h,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);s=f;r=m(i,a,o);if("normal"===r.type){if(s=o.done?h:l,r.arg!==p)return{value:r.arg,done:o.done}}else"throw"===r.type&&(s=h,o.method="throw",o.arg=r.arg)}}),t}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function v(){}function y(){}function b(){}function k(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function w(o){var t;this._invoke=function(n,r){function e(){return new Promise(function(e,t){!function t(e,n,r,i){e=m(o[e],o,n);if("throw"!==e.type){var a=e.arg,n=a.value;return n&&"object"==typeof n&&d.call(n,"__await")?Promise.resolve(n.__await).then(function(e){t("next",e,r,i)},function(e){t("throw",e,r,i)}):Promise.resolve(n).then(function(e){a.value=e,r(a)},i)}i(e.arg)}(n,r,e,t)})}return t=t?t.then(e,e):e()}}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function $(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function _(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,e=function e(){for(;++n>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535>>2]=n[i>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=s.ceil(t/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(n,t/2)}},o=i.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;r>>2]>>>24-r%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new u.init(n,t)}},c=i.Utf8={stringify:function(e){try{return decodeURIComponent(escape(o.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return o.parse(unescape(encodeURIComponent(e)))}},l=t.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,n=t.words,r=t.sigBytes,i=this.blockSize,a=r/(4*i),a=e?s.ceil(a):s.max((0|a)-this._minBufferSize,0),r=s.min(4*(e=a*i),r);if(e){for(var o=0;o>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,o=0;o<4&&i+.75*o>>6*(3-o)&63));if(t=r.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var t=e.length,n=this._map;!(a=n.charAt(64))||-1!=(a=e.indexOf(a))&&(t=a);for(var r,i,a=[],o=0,s=0;s>>6-s%4*2,a[o>>>2]|=(r|i)<<24-o%4*8,o++);return u.create(a,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(a){function $(e,t,n,r,i,a,o){return((e=e+(t&n|~t&r)+i+o)<>>32-a)+t}function S(e,t,n,r,i,a,o){return((e=e+(t&r|n&~r)+i+o)<>>32-a)+t}function _(e,t,n,r,i,a,o){return((e=e+(t^n^r)+i+o)<>>32-a)+t}function R(e,t,n,r,i,a,o){return((e=e+(n^(t|~r))+i+o)<>>32-a)+t}for(var e=A,t=(r=e.lib).WordArray,n=r.Hasher,r=e.algo,I=[],i=0;i<64;i++)I[i]=4294967296*a.abs(a.sin(i+1))|0;r=r.MD5=n.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=e[i=t+n];e[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var n=this._hash.words,i=e[t+0],r=e[t+1],a=e[t+2],o=e[t+3],s=e[t+4],u=e[t+5],c=e[t+6],l=e[t+7],f=e[t+8],h=e[t+9],p=e[t+10],d=e[t+11],g=e[t+12],m=e[t+13],v=e[t+14],y=e[t+15],b=$(b=n[0],x=n[1],w=n[2],k=n[3],i,7,I[0]),k=$(k,b,x,w,r,12,I[1]),w=$(w,k,b,x,a,17,I[2]),x=$(x,w,k,b,o,22,I[3]),b=$(b,x,w,k,s,7,I[4]),k=$(k,b,x,w,u,12,I[5]),w=$(w,k,b,x,c,17,I[6]),x=$(x,w,k,b,l,22,I[7]),b=$(b,x,w,k,f,7,I[8]),k=$(k,b,x,w,h,12,I[9]),w=$(w,k,b,x,p,17,I[10]),x=$(x,w,k,b,d,22,I[11]),b=$(b,x,w,k,g,7,I[12]),k=$(k,b,x,w,m,12,I[13]),w=$(w,k,b,x,v,17,I[14]),b=S(b,x=$(x,w,k,b,y,22,I[15]),w,k,r,5,I[16]),k=S(k,b,x,w,c,9,I[17]),w=S(w,k,b,x,d,14,I[18]),x=S(x,w,k,b,i,20,I[19]),b=S(b,x,w,k,u,5,I[20]),k=S(k,b,x,w,p,9,I[21]),w=S(w,k,b,x,y,14,I[22]),x=S(x,w,k,b,s,20,I[23]),b=S(b,x,w,k,h,5,I[24]),k=S(k,b,x,w,v,9,I[25]),w=S(w,k,b,x,o,14,I[26]),x=S(x,w,k,b,f,20,I[27]),b=S(b,x,w,k,m,5,I[28]),k=S(k,b,x,w,a,9,I[29]),w=S(w,k,b,x,l,14,I[30]),b=_(b,x=S(x,w,k,b,g,20,I[31]),w,k,u,4,I[32]),k=_(k,b,x,w,f,11,I[33]),w=_(w,k,b,x,d,16,I[34]),x=_(x,w,k,b,v,23,I[35]),b=_(b,x,w,k,r,4,I[36]),k=_(k,b,x,w,s,11,I[37]),w=_(w,k,b,x,l,16,I[38]),x=_(x,w,k,b,p,23,I[39]),b=_(b,x,w,k,m,4,I[40]),k=_(k,b,x,w,i,11,I[41]),w=_(w,k,b,x,o,16,I[42]),x=_(x,w,k,b,c,23,I[43]),b=_(b,x,w,k,h,4,I[44]),k=_(k,b,x,w,g,11,I[45]),w=_(w,k,b,x,y,16,I[46]),b=R(b,x=_(x,w,k,b,a,23,I[47]),w,k,i,6,I[48]),k=R(k,b,x,w,l,10,I[49]),w=R(w,k,b,x,v,15,I[50]),x=R(x,w,k,b,u,21,I[51]),b=R(b,x,w,k,g,6,I[52]),k=R(k,b,x,w,o,10,I[53]),w=R(w,k,b,x,p,15,I[54]),x=R(x,w,k,b,r,21,I[55]),b=R(b,x,w,k,f,6,I[56]),k=R(k,b,x,w,y,10,I[57]),w=R(w,k,b,x,c,15,I[58]),x=R(x,w,k,b,m,21,I[59]),b=R(b,x,w,k,s,6,I[60]),k=R(k,b,x,w,d,10,I[61]),w=R(w,k,b,x,a,15,I[62]),x=R(x,w,k,b,h,21,I[63]);n[0]=n[0]+b|0,n[1]=n[1]+x|0,n[2]=n[2]+w|0,n[3]=n[3]+k|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32;var i=a.floor(n/4294967296);for(t[15+(64+r>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t[14+(64+r>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process(),t=(e=this._hash).words,n=0;n<4;n++)r=t[n],t[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return e},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),e.MD5=n._createHelper(r),e.HmacMD5=n._createHmacHelper(r)}(Math),U=(N=A).lib,P=U.Base,c=U.WordArray,r=(U=N.algo).EvpKDF=P.extend({cfg:P.extend({keySize:4,hasher:U.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=(o=this.cfg).hasher.create(),r=c.create(),i=r.words,a=o.keySize,o=o.iterations;i.length>>2]}},e.BlockCipher=a.extend({cfg:a.cfg.extend({mode:u,padding:c}),reset:function(){a.reset.call(this);var e,t=(n=this.cfg).iv,n=n.mode;this._xformMode==this._ENC_XFORM_MODE?e=n.createEncryptor:(e=n.createDecryptor,this._minBufferSize=1),this._mode=e.call(n,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var l=e.CipherParams=t.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),u=(h.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return((e=e.salt)?o.create([1398893684,1701076831]).concat(e).concat(t):t).toString(r)},parse:function(e){var t,n=(e=r.parse(e)).words;return 1398893684==n[0]&&1701076831==n[1]&&(t=o.create(n.slice(2,4)),n.splice(0,4),e.sigBytes-=16),l.create({ciphertext:e,salt:t})}},f=e.SerializableCipher=t.extend({cfg:t.extend({format:u}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r);return t=i.finalize(t),i=i.cfg,l.create({ciphertext:t,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),h=(h.kdf={}).OpenSSL={execute:function(e,t,n,r){return r=r||o.random(8),e=i.create({keySize:t+n}).compute(e,r),n=o.create(e.words.slice(t),4*n),e.sigBytes=4*t,l.create({key:e,iv:n,salt:r})}},p=e.PasswordBasedCipher=f.extend({cfg:f.cfg.extend({kdf:h}),encrypt:function(e,t,n,r){return n=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize),r.iv=n.iv,(e=f.encrypt.call(this,e,t,n.key,r)).mixIn(n),e},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),n=r.kdf.execute(n,e.keySize,e.ivSize,t.salt),r.iv=n.iv,f.decrypt.call(this,e,t,n.key,r)}})}(),function(){for(var e=A,t=e.lib.BlockCipher,n=e.algo,o=[],r=[],i=[],a=[],s=[],u=[],c=[],l=[],f=[],h=[],p=[],d=0;d<256;d++)p[d]=d<128?d<<1:d<<1^283;for(var g=0,m=0,d=0;d<256;d++){var v=m^m<<1^m<<2^m<<3^m<<4;o[g]=v=v>>>8^255&v^99;var y=p[r[v]=g],b=p[y],k=p[b],w=257*p[v]^16843008*v;i[g]=w<<24|w>>>8,a[g]=w<<16|w>>>16,s[g]=w<<8|w>>>24,u[g]=w,c[v]=(w=16843009*k^65537*b^257*y^16843008*g)<<24|w>>>8,l[v]=w<<16|w>>>16,f[v]=w<<8|w>>>24,h[v]=w,g?(g=y^p[p[p[k^y]]],m^=p[p[m]]):g=m=1}var x=[0,1,2,4,8,16,32,64,128,27,54],n=n.AES=t.extend({_doReset:function(){for(var e,t=(r=this._key).words,n=r.sigBytes/4,r=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],a=0;a>>24]<<24|o[e>>>16&255]<<16|o[e>>>8&255]<<8|o[255&e]):(e=o[(e=e<<8|e>>>24)>>>24]<<24|o[e>>>16&255]<<16|o[e>>>8&255]<<8|o[255&e],e^=x[a/n|0]<<24),i[a]=i[a-n]^e);for(t=this._invKeySchedule=[],n=0;n>>24]]^l[o[e>>>16&255]]^f[o[e>>>8&255]]^h[o[255&e]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,i,a,s,u,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,c,l,f,h,r),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,a,o,s){for(var u=this._nRounds,c=e[t]^n[0],l=e[t+1]^n[1],f=e[t+2]^n[2],h=e[t+3]^n[3],p=4,d=1;d>>24]^i[l>>>16&255]^a[f>>>8&255]^o[255&h]^n[p++],m=r[l>>>24]^i[f>>>16&255]^a[h>>>8&255]^o[255&c]^n[p++],v=r[f>>>24]^i[h>>>16&255]^a[c>>>8&255]^o[255&l]^n[p++],h=r[h>>>24]^i[c>>>16&255]^a[l>>>8&255]^o[255&f]^n[p++],c=g,l=m,f=v;g=(s[c>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^n[p++],m=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[p++],v=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&l])^n[p++],h=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^n[p++],e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=h},keySize:8});e.AES=t._createHelper(n)}();var s,A=A||function(s){function n(){}var e={},t=e.lib={},r=t.Base={extend:function(e){n.prototype=this;var t=new n;return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),(t.init.prototype=t).$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=t.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||a).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes;if(e=e.sigBytes,this.clamp(),r%4)for(var i=0;i>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535>>2]=n[i>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=s.ceil(t/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(n,t/2)}},o=i.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;r>>2]>>>24-r%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new u.init(n,t)}},c=i.Utf8={stringify:function(e){try{return decodeURIComponent(escape(o.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return o.parse(unescape(encodeURIComponent(e)))}},l=t.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,n=t.words,r=t.sigBytes,i=this.blockSize,a=r/(4*i),a=e?s.ceil(a):s.max((0|a)-this._minBufferSize,0),r=s.min(4*(e=a*i),r);if(e){for(var o=0;o>>7)^(n<<14|n>>>18)^n>>>3)+g[p-7]+((r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10)+g[p-16]),n=h+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&l^~c&f)+d[p]+g[p],r=((a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22))+(a&o^a&s^o&s),h=f,f=l,l=c,c=u+n|0,u=s,s=o,o=a,a=n+r|0;i[0]=i[0]+a|0,i[1]=i[1]+o|0,i[2]=i[2]+s|0,i[3]=i[3]+u|0,i[4]=i[4]+c|0,i[5]=i[5]+l|0,i[6]=i[6]+f|0,i[7]=i[7]+h|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(64+r>>>9<<4)]=i.floor(n/4294967296),t[15+(64+r>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=r._createHelper(a),t.HmacSHA256=r._createHmacHelper(a)}(Math),s=A.enc.Utf8,A.algo.HMAC=A.lib.Base.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=s.parse(t));var n=e.blockSize,r=4*n;(t=t.sigBytes>r?e.finalize(t):t).clamp();for(var e=this._oKey=t.clone(),t=this._iKey=t.clone(),i=e.words,a=t.words,o=0;o>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535>>2]=n[i>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=s.ceil(t/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(n,t/2)}},o=i.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;r>>2]>>>24-r%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new u.init(n,t)}},c=i.Utf8={stringify:function(e){try{return decodeURIComponent(escape(o.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return o.parse(unescape(encodeURIComponent(e)))}},l=t.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,n=t.words,r=t.sigBytes,i=this.blockSize,a=r/(4*i),a=e?s.ceil(a):s.max((0|a)-this._minBufferSize,0),r=s.min(4*(e=a*i),r);if(e){for(var o=0;o>>1|(q=V.low)<<31)^(J>>>8|q<<24)^J>>>7,q=(q>>>1|J<<31)^(q>>>8|J<<24)^(q>>>7|J<<25),K=((J=(K=ne[U-2]).high)>>>19|(W=K.low)<<13)^(J<<3|W>>>29)^J>>>6,W=(W>>>19|J<<13)^(W<<3|J>>>29)^(W>>>6|J<<26),G=(J=ne[U-7]).high,ee=(Y=ne[U-16]).high,Y=Y.low,J=q+J.low,z.high=V=(V=(V=V+G+(J>>>0>>0?1:0))+K+((J=J+W)>>>0>>0?1:0))+ee+((J=J+Y)>>>0>>0?1:0),z.low=J);var q,K,W,J,G=E&F^~E&B,Y=P&L^~P&j,z=R&A^R&O^A&O,X=I&C^I&M^C&M,Z=(W=te[U]).high,Q=W.low,ee=H+((E>>>14|P<<18)^(E>>>18|P<<14)^(E<<23|P>>>9))+((W=N+((P>>>14|E<<18)^(P>>>18|E<<14)^(P<<23|E>>>9)))>>>0>>0?1:0),H=B,N=j,B=F,j=L,F=E,L=P,E=D+(ee=(ee=(ee=ee+G+((W=W+Y)>>>0>>0?1:0))+Z+((W=W+Q)>>>0>>0?1:0))+V+((W=W+J)>>>0>>0?1:0))+((P=T+W|0)>>>0>>0?1:0)|0,D=O,T=M,O=A,M=C,A=R,C=I,R=ee+(z=(q=(R>>>28|I<<4)^(R<<30|I>>>2)^(R<<25|I>>>7))+z+((J=(K=(I>>>28|R<<4)^(I<<30|R>>>2)^(I<<25|R>>>7))+X)>>>0>>0?1:0))+((I=W+J|0)>>>0>>0?1:0)|0}f=n.low=f+I,n.high=l+R+(f>>>0>>0?1:0),p=r.low=p+C,r.high=h+A+(p>>>0>>0?1:0),g=i.low=g+M,i.high=d+O+(g>>>0>>0?1:0),v=a.low=v+T,a.high=m+D+(v>>>0>>0?1:0),b=o.low=b+P,o.high=y+E+(b>>>0

>>0?1:0),w=s.low=w+L,s.high=k+F+(w>>>0>>0?1:0),$=u.low=$+j,u.high=x+B+($>>>0>>0?1:0),_=c.low=_+N,c.high=S+H+(_>>>0>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(128+r>>>10<<5)]=Math.floor(n/4294967296),t[31+(128+r>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32}),t.SHA512=n._createHelper(a),t.HmacSHA512=n._createHmacHelper(a)}(),l=A.enc.Utf8,A.algo.HMAC=A.lib.Base.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=l.parse(t));var n=e.blockSize,r=4*n;(t=t.sigBytes>r?e.finalize(t):t).clamp();for(var e=this._oKey=t.clone(),t=this._iKey=t.clone(),i=e.words,a=t.words,o=0;o>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535>>2]=n[i>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=s.ceil(t/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(n,t/2)}},o=i.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;r>>2]>>>24-r%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new u.init(n,t)}},c=i.Utf8={stringify:function(e){try{return decodeURIComponent(escape(o.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return o.parse(unescape(encodeURIComponent(e)))}},l=t.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,n=t.words,r=t.sigBytes,i=this.blockSize,a=r/(4*i),a=e?s.ceil(a):s.max((0|a)-this._minBufferSize,0),r=s.min(4*(e=a*i),r);if(e){for(var o=0;o>>31),n=(i<<5|i>>>27)+u+f[c],n=c<20?n+(1518500249+(a&o|~a&s)):c<40?n+(1859775393+(a^o^s)):c<60?n+((a&o|a&s|o&s)-1894007588):n+((a^o^s)-899497514),u=s,s=o,o=a<<30|a>>>2,a=i,i=n;r[0]=r[0]+i|0,r[1]=r[1]+a|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(64+r>>>9<<4)]=Math.floor(n/4294967296),t[15+(64+r>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),q.SHA1=n._createHelper(P),q.HmacSHA1=n._createHmacHelper(P),h=A.enc.Utf8,A.algo.HMAC=A.lib.Base.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=h.parse(t));var n=e.blockSize,r=4*n;(t=t.sigBytes>r?e.finalize(t):t).clamp();for(var e=this._oKey=t.clone(),t=this._iKey=t.clone(),i=e.words,a=t.words,o=0;o>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535>>2]=n[i>>>2];else t.push.apply(t,n);return this.sigBytes+=e,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=s.ceil(t/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(n,t/2)}},o=i.Latin1={stringify:function(e){var t=e.words;e=e.sigBytes;for(var n=[],r=0;r>>2]>>>24-r%4*8&255));return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new u.init(n,t)}},c=i.Utf8={stringify:function(e){try{return decodeURIComponent(escape(o.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return o.parse(unescape(encodeURIComponent(e)))}},l=t.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,n=t.words,r=t.sigBytes,i=this.blockSize,a=r/(4*i),a=e?s.ceil(a):s.max((0|a)-this._minBufferSize,0),r=s.min(4*(e=a*i),r);if(e){for(var o=0;o>>31),n=(i<<5|i>>>27)+u+g[c],n=c<20?n+(1518500249+(a&o|~a&s)):c<40?n+(1859775393+(a^o^s)):c<60?n+((a&o|a&s|o&s)-1894007588):n+((a^o^s)-899497514),u=s,s=o,o=a<<30|a>>>2,a=i,i=n;r[0]=r[0]+i|0,r[1]=r[1]+a|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(64+r>>>9<<4)]=Math.floor(n/4294967296),t[15+(64+r>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=d.clone.call(this);return e._hash=this._hash.clone(),e}}),V.SHA1=d._createHelper(q),V.HmacSHA1=d._createHmacHelper(q),Object.defineProperty(ie,"__esModule",{value:!0}),ie.StandardFile=ie.SFItemTransformer=ie.SFCryptoWeb=ie.SFCryptoJS=ie.SFAbstractCrypto=ie.SFItemHistoryEntry=ie.SFItemHistory=ie.SFHistorySession=ie.SFPrivileges=ie.SFPredicate=ie.SFItemParams=ie.SFItem=ie.SFSyncManager=ie.SFStorageManager=ie.SFSingletonManager=ie.SFSessionHistoryManager=ie.SFPrivilegesManager=ie.SFModelManager=ie.SFMigrationManager=ie.SFHttpManager=ie.SFAuthManager=ie.SFAlertManager=void 0;var I=function(){function e(){C(this,e)}var t,n;return O(e,[{key:"alert",value:(n=S(regeneratorRuntime.mark(function e(n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,t){window.alert(n.text),e()}));case 1:case"end":return e.stop()}},e)})),function(e){return n.apply(this,arguments)})},{key:"confirm",value:(t=S(regeneratorRuntime.mark(function e(n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,t){(window.confirm(n.text)?e:t)()}));case 1:case"end":return e.stop()}},e)})),function(e){return t.apply(this,arguments)})}]),e}();ie.SFAlertManager=I;var M=function(){function m(e,t,n,r){C(this,m),m.DidSignOutEvent="DidSignOutEvent",m.WillSignInEvent="WillSignInEvent",m.DidSignInEvent="DidSignInEvent",this.httpManager=t,this.storageManager=e,this.alertManager=n||new I,this.$timeout=r||setTimeout.bind(window),this.eventHandlers=[]}var a,o,s,r,e,t,n,i,u,c;return O(m,[{key:"addEventHandler",value:function(e){return this.eventHandlers.push(e),e}},{key:"removeEventHandler",value:function(e){_.pull(this.eventHandlers,e)}},{key:"notifyEvent",value:function(e,t){var n=!0,r=!1,i=void 0;try{for(var a,o=this.eventHandlers[Symbol.iterator]();!(n=(a=o.next()).done);n=!0)(0,a.value)(e,t||{})}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}}},{key:"saveKeys",value:(c=S(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._keys=t,e.next=3,this.storageManager.setItem("mk",t.mk);case 3:return e.next=5,this.storageManager.setItem("ak",t.ak);case 5:case"end":return e.stop()}},e,this)})),function(e){return c.apply(this,arguments)})},{key:"signout",value:(u=S(regeneratorRuntime.mark(function e(t){var n=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._keys=null,this._authParams=null,t)return e.abrupt("return",this.storageManager.clearAllData().then(function(){n.notifyEvent(m.DidSignOutEvent)}));e.next=6;break;case 6:this.notifyEvent(m.DidSignOutEvent);case 7:case"end":return e.stop()}},e,this)})),function(e){return u.apply(this,arguments)})},{key:"keys",value:(i=S(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._keys){e.next=11;break}return e.next=3,this.storageManager.getItem("mk");case 3:if(t=e.sent){e.next=6;break}return e.abrupt("return",null);case 6:return e.t0=t,e.next=9,this.storageManager.getItem("ak");case 9:e.t1=e.sent,this._keys={mk:e.t0,ak:e.t1};case 11:return e.abrupt("return",this._keys);case 12:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"getAuthParams",value:(n=S(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this._authParams){e.next=5;break}return e.next=3,this.storageManager.getItem("auth_params");case 3:t=e.sent,this._authParams=JSON.parse(t);case 5:if(this._authParams&&!this._authParams.version)return e.next=8,this.defaultProtocolVersion();e.next=9;break;case 8:this._authParams.version=e.sent;case 9:return e.abrupt("return",this._authParams);case 10:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"defaultProtocolVersion",value:(t=S(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.keys();case 2:if((t=e.sent)&&t.ak)return e.abrupt("return","002");e.next=7;break;case 7:return e.abrupt("return","001");case 8:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})},{key:"protocolVersion",value:(e=S(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAuthParams();case 2:if((t=e.sent)&&t.version)return e.abrupt("return",t.version);e.next=5;break;case 5:return e.abrupt("return",this.defaultProtocolVersion());case 6:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})},{key:"getAuthParamsForEmail",value:(r=S(regeneratorRuntime.mark(function e(n,t,r){var i,a=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(i=_.merge({email:t},r)).api=T.getApiVersion(),e.abrupt("return",new Promise(function(t,e){a.httpManager.getAbsolute(n+"/auth/params",i,function(e){t(e)},function(e){console.error("Error getting auth params",e),"object"!==x(e)&&(e={error:{message:"A server error occurred while trying to sign in. Please try again."}}),t(e)})}));case 3:case"end":return e.stop()}},e)})),function(e,t,n){return r.apply(this,arguments)})},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"isLocked",value:function(){return 1==this.locked}},{key:"unlockAndResolve",value:function(e,t){this.unlock(),e(t)}},{key:"login",value:(s=S(regeneratorRuntime.mark(function e(l,f,h,p,d){var g=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var n=S(regeneratorRuntime.mark(function e(n,t){var r,i,a,o,s,u,c;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.keys();case 2:if(null!=e.sent)return n({error:{message:"Cannot log in because already signed in."}}),e.abrupt("return");e.next=6;break;case 6:if(g.isLocked())return n({error:{message:"Login already in progress."}}),e.abrupt("return");e.next=9;break;case 9:return g.lock(),g.notifyEvent(m.WillSignInEvent),e.next=13,g.getAuthParamsForEmail(l,f,d);case 13:if((r=e.sent).identifier=f,r.error)return g.unlockAndResolve(n,r),e.abrupt("return");e.next=18;break;case 18:if(r&&r.pw_cost){e.next=21;break}return g.unlockAndResolve(n,{error:{message:"Invalid email or password."}}),e.abrupt("return");case 21:if(SFJS.supportedVersions().includes(r.version)){e.next=25;break}return i=SFJS.isVersionNewerThanLibraryVersion(r.version)?"This version of the application does not support your newer account type. Please upgrade to the latest version of Standard Notes to sign in.":"The protocol version associated with your account is outdated and no longer supported by this application. Please visit standardnotes.org/help/security for more information.",g.unlockAndResolve(n,{error:{message:i}}),e.abrupt("return");case 25:if(SFJS.isProtocolVersionOutdated(r.version))return o="The encryption version for your account, ".concat(r.version,", is outdated and requires upgrade. You may proceed with login, but are advised to perform a security update using the web or desktop application. Please visit standardnotes.org/help/security for more information."),a=!1,e.next=30,g.alertManager.confirm({title:"Update Needed",text:o,confirmButtonText:"Sign In"}).catch(function(){g.unlockAndResolve(n,{error:{}}),a=!0});e.next=32;break;case 30:if(a)return e.abrupt("return");e.next=32;break;case 32:if(SFJS.supportsPasswordDerivationCost(r.pw_cost)){e.next=36;break}return g.unlockAndResolve(n,{error:{message:"Your account was created on a platform with higher security capabilities than this browser supports. If we attempted to generate your login keys here, it would take hours. Please use a browser with more up to date security capabilities, like Google Chrome or Firefox, to log in."}}),e.abrupt("return");case 36:if(o=SFJS.costMinimumForVersion(r.version),r.pw_costnew Date)return e.abrupt("return",!1);e.next=5;break;case 5:return e.next=7,this.netCredentialsForAction(t);case 7:return n=e.sent,e.abrupt("return",0=this.MaxDiscordanceBeforeOutOfSync&&(this.outOfSync||(this.outOfSync=!0,this.notifyEvent("enter-out-of-sync"))),e.abrupt("return",!1);e.next=13;break;case 13:return this.outOfSync&&(this.outOfSync=!1,this.notifyEvent("exit-out-of-sync")),this.syncDiscordance=0,e.abrupt("return",!0);case 16:case"end":return e.stop()}},e,this)})),function(e){return x.apply(this,arguments)})},{key:"isOutOfSync",value:function(){return this.outOfSync}},{key:"getServerURL",value:(w=S(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.storageManager.getItem("server");case 2:if(e.t0=e.sent,e.t0){e.next=5;break}e.t0=window._default_sf_server;case 5:return e.abrupt("return",e.t0);case 6:case"end":return e.stop()}},e,this)})),function(){return w.apply(this,arguments)})},{key:"getSyncURL",value:(k=S(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getServerURL();case 2:return e.t0=e.sent,e.abrupt("return",e.t0+"/items/sync");case 4:case"end":return e.stop()}},e,this)})),function(){return k.apply(this,arguments)})},{key:"registerSyncStatusObserver",value:function(e){e={key:new Date,callback:e};return this.syncStatusObservers.push(e),e}},{key:"removeSyncStatusObserver",value:function(e){_.pull(this.syncStatusObservers,e)}},{key:"syncStatusDidChange",value:function(){var t=this;this.syncStatusObservers.forEach(function(e){e.callback(t.syncStatus)})}},{key:"addEventHandler",value:function(e){return this.eventHandlers.push(e),e}},{key:"removeEventHandler",value:function(e){_.pull(this.eventHandlers,e)}},{key:"notifyEvent",value:function(e,t){var n=!0,r=!1,i=void 0;try{for(var a,o=this.eventHandlers[Symbol.iterator]();!(n=(a=o.next()).done);n=!0)(0,a.value)(e,t||{})}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}}},{key:"setKeyRequestHandler",value:function(e){this.keyRequestHandler=e}},{key:"getActiveKeyInfo",value:(b=S(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.keyRequestHandler(t));case 1:case"end":return e.stop()}},e,this)})),function(e){return b.apply(this,arguments)})},{key:"initialDataLoaded",value:function(){return!0===this._initialDataLoaded}},{key:"_sortLocalItems",value:function(e){var o=this;return e.sort(function(e,t){var n=new Date(t.updated_at)-new Date(e.updated_at),r=o.contentTypeLoadPriority,i=0,a=0;return r&&(i=r.indexOf(e.content_type),a=r.indexOf(t.content_type),-1==i&&(i=r.length),-1==a&&(a=r.length)),i==a?n:it.dirtiedDate})).length,a=0,o=[],s=function(){var e=S(regeneratorRuntime.mark(function e(){var t,n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.slice(a,a+c),e.next=3,l.handleItemsResponse(t,null,F.MappingSourceLocalRetrieved,I.KeyRequestLoadLocal);case 3:if(n=e.sent,o.push(n),(a+=t.length)y.lastDirtyItemsSave}),e.next=5,y.getActiveKeyInfo(I.KeyRequestLoadSaveAccount);case 5:if(a=e.sent,o=y.syncStatus.syncOpInProgress,s=y.initialDataLoaded(),o||!s)return y.performSyncAgainOnCompletion=!0,y.lastDirtyItemsSave=new Date,e.next=13,y.writeItemsToLocalStorage(i,!1);e.next=16;break;case 13:return o&&(y.queuedCallbacks.push(n),y.loggingEnabled&&console.warn("Attempting to sync while existing sync is in progress.")),s||(y.loggingEnabled&&console.warn("(1) Attempting to perform online sync before local data has loaded"),n()),e.abrupt("return");case 16:if(y.syncStatus.syncOpInProgress=!0,a.offline)return e.abrupt("return",y.syncOffline(r).then(function(e){y.syncStatus.syncOpInProgress=!1,n(e)}).catch(function(e){y.notifyEvent("sync-exception",e)}));e.next=19;break;case 19:if(y.initialDataLoaded()){e.next=22;break}return console.error("Attempting to perform online sync before local data has loaded"),e.abrupt("return");case 22:return y.loggingEnabled&&console.log("Syncing online user."),u=y.syncStatus.needsMoreSync,y.syncStatus.syncStart=new Date,y.beginCheckingIfSyncIsTakingTooLong(),c=y.PerSyncItemUploadLimit,(l=r.slice(0,c)).lengthy.syncStatus.total&&(y.syncStatus.total=y.syncStatus.current),y.syncStatusDidChange(),e.next=34,y.writeItemsToLocalStorage(i,!1);case 34:return y.lastDirtyItemsSave=new Date,v.onPreSyncSave&&v.onPreSyncSave(),y.allRetreivedItems||(y.allRetreivedItems=[]),y.allSavedItems||(y.allSavedItems=[]),(f={}).limit=y.ServerItemDownloadLimit,v.performIntegrityCheck&&(f.compute_integrity=!0),e.prev=41,e.next=44,Promise.all(l.map(function(e){e=new W(e,a.keys,a.auth_params);return e.additionalFields=v.additionalFields,e.paramsForSync()})).then(function(e){f.items=e});case 44:e.next=49;break;case 46:e.prev=46,e.t0=e.catch(41),y.notifyEvent("sync-exception",e.t0);case 49:for(p=!(h=!0),d=void 0,e.prev=52,g=l[Symbol.iterator]();!(h=(m=g.next()).done);h=!0)m.value.dirtyCount=0;e.next=60;break;case 56:e.prev=56,e.t1=e.catch(52),p=!0,d=e.t1;case 60:e.prev=60,e.prev=61,h||null==g.return||g.return();case 63:if(e.prev=63,p)throw d;e.next=66;break;case 66:return e.finish(63);case 67:return e.finish(60);case 68:return e.next=70,y.getSyncToken();case 70:return f.sync_token=e.sent,e.next=73,y.getCursorToken();case 73:return f.cursor_token=e.sent,f.api=T.getApiVersion(),y.loggingEnabled&&console.log("Syncing with params",f),e.prev=76,e.t2=y.httpManager,e.next=80,y.getSyncURL();case 80:e.t3=e.sent,e.t4=f,e.t5=function(e){y.handleSyncSuccess(l,e,v).then(function(){n(e)}).catch(function(t){console.log("Caught sync success exception:",t),y.handleSyncError(t,null,r).then(function(e){y.notifyEvent("sync-exception",t),n(e)})})},e.t6=function(e,t){y.handleSyncError(e,t,r).then(function(e){n(e)})},e.t2.postAuthenticatedAbsolute.call(e.t2,e.t3,e.t4,e.t5,e.t6),e.next=90;break;case 87:e.prev=87,e.t7=e.catch(76),console.log("Sync exception caught:",e.t7);case 90:case"end":return e.stop()}},e,null,[[41,46],[52,56,60,68],[61,,63,67],[76,87]])}));return function(e,t){return n.apply(this,arguments)}}()));case 5:case"end":return e.stop()}},e,this)})),function(){return l.apply(this,arguments)})},{key:"_awaitSleep",value:(c=S(regeneratorRuntime.mark(function e(n){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.warn("Simulating high latency sync request",n),e.abrupt("return",new Promise(function(e,t){setTimeout(function(){e()},n)}));case 2:case"end":return e.stop()}},e)})),function(e){return c.apply(this,arguments)})},{key:"handleSyncSuccess",value:(u=S(regeneratorRuntime.mark(function e(t,n,r){var i,a,o,s,u,c,l,f,h,p,d,g,m,v,y=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r.simulateHighLatency)return p=r.simulatedLatency||1e3,e.next=4,this._awaitSleep(p);e.next=4;break;case 4:for(this.syncStatus.error=null,this.loggingEnabled&&console.log("Sync response",n),i=this.allSavedItems.map(function(e){return e.uuid}),a=n.saved_items.map(function(e){return e.uuid}),n.retrieved_items=n.retrieved_items.filter(function(e){var t=i.includes(e.uuid),n=a.includes(e.uuid);if(t||n)return!1;e=y.modelManager.findItem(e.uuid);return!e||!e.dirty}),o=[],u=!(s=!0),c=void 0,e.prev=13,l=t[Symbol.iterator]();!(s=(f=l.next()).done);s=!0)0==(f=f.value).dirtyCount&&o.push(f);e.next=21;break;case 17:e.prev=17,e.t0=e.catch(13),u=!0,c=e.t0;case 21:e.prev=21,e.prev=22,s||null==l.return||l.return();case 24:if(e.prev=24,u)throw c;e.next=27;break;case 27:return e.finish(24);case 28:return e.finish(21);case 29:return this.modelManager.clearDirtyItems(o),e.next=32,this.handleItemsResponse(n.retrieved_items,null,F.MappingSourceRemoteRetrieved,I.KeyRequestLoadSaveAccount);case 32:return h=e.sent,this.allRetreivedItems=this.allRetreivedItems.concat(h),this.syncStatus.retrievedCount=this.allRetreivedItems.length,p=["content","auth_hash"],e.next=38,this.handleItemsResponse(n.saved_items,p,F.MappingSourceRemoteSaved,I.KeyRequestLoadSaveAccount);case 38:return d=e.sent,this.allSavedItems=this.allSavedItems.concat(d),g=n.unsaved,e.next=43,this.deprecated_handleUnsavedItemsResponse(g);case 43:return e.next=45,this.handleConflictsResponse(n.conflicts);case 45:if(m=e.sent,v=m&&0=this.majorDataChangeThreshold||d.length>=this.majorDataChangeThreshold||g&&g.length>=this.majorDataChangeThreshold||m&&m.length>=this.majorDataChangeThreshold)&&this.notifyEvent("major-data-change"),this.callQueuedCallbacks(n),this.notifyEvent("sync:completed",{retrievedItems:this.allRetreivedItems,savedItems:this.allSavedItems}),this.allRetreivedItems=[],this.allSavedItems=[],this.performSyncAgainOnCompletion&&(this.performSyncAgainOnCompletion=!1,setTimeout(function(){y.sync(r)},10)),e.abrupt("return",n);case 88:case"end":return e.stop()}},e,this,[[13,17,21,29],[22,,24,28]])})),function(e,t,n){return u.apply(this,arguments)})},{key:"handleSyncError",value:(s=S(regeneratorRuntime.mark(function e(t,n,r){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("Sync error: ",t),401==n&&this.notifyEvent("sync-session-invalid"),t?"string"==typeof t&&(t={error:{message:t}}):t={error:{message:"Could not connect to server."}},this.syncStatus.syncOpInProgress=!1,this.syncStatus.error=t.error,this.syncStatusDidChange(),this.writeItemsToLocalStorage(r,!1),this.modelManager.didSyncModelsOffline(r),this.stopCheckingIfSyncIsTakingTooLong(),this.notifyEvent("sync:error",t.error),this.callQueuedCallbacks({error:"Sync error"}),e.abrupt("return",t);case 12:case"end":return e.stop()}},e,this)})),function(e,t,n){return s.apply(this,arguments)})},{key:"handleItemsResponse",value:(o=S(regeneratorRuntime.mark(function e(t,n,r,i){var a,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getActiveKeyInfo(i);case 2:return o=e.sent.keys,e.next=5,SFJS.itemTransformer.decryptMultipleItems(t,o);case 5:return e.next=7,this.modelManager.mapResponseItemsToLocalModelsOmittingFields(t,n,r);case 7:return a=e.sent,0<(o=a.filter(function(e){var t=e.errorDecryptingValueChanged;return e.errorDecryptingValueChanged=!1,t})).length&&this.writeItemsToLocalStorage(o,!1),e.abrupt("return",a);case 11:case"end":return e.stop()}},e,this)})),function(e,t,n,r){return o.apply(this,arguments)})},{key:"refreshErroredItems",value:(a=S(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(0<(t=this.modelManager.allNondummyItems.filter(function(e){return 1==e.errorDecrypting})).length)return e.abrupt("return",this.handleItemsResponse(t,null,F.MappingSourceLocalRetrieved,I.KeyRequestLoadSaveAccount));e.next=3;break;case 3:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"handleConflictsResponse",value:(i=S(regeneratorRuntime.mark(function e(t){var n,r,i,a,o,s,u,c,l,f,h,p,d,g,m,v,y,b,k,w,x,$,S,_,R;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&0!=t.length){e.next=2;break}return e.abrupt("return");case 2:this.loggingEnabled&&console.log("Handle Conflicted Items:",t),n={},i=!(r=!0),a=void 0,e.prev=7,o=t[Symbol.iterator]();case 9:if(r=(s=o.next()).done){e.next=21;break}if(c=s.value,u=c.server_item||c.unsaved_item,c=this.modelManager.findItem(u.uuid)){e.next=16;break}return n[u.uuid]={},e.abrupt("continue",18);case 16:g=c.getContentCopy(),n[u.uuid]={frozenContent:g,itemRef:c};case 18:r=!0,e.next=9;break;case 21:e.next=27;break;case 23:e.prev=23,e.t0=e.catch(7),i=!0,a=e.t0;case 27:e.prev=27,e.prev=28,r||null==o.return||o.return();case 30:if(e.prev=30,i)throw a;e.next=33;break;case 33:return e.finish(30);case 34:return e.finish(27);case 35:l=[],h=!(f=!0),p=void 0,e.prev=39,d=t[Symbol.iterator]();case 41:if(f=(g=d.next()).done){e.next=91;break}return m=g.value,v=m.server_item||m.unsaved_item,e.t1=SFJS.itemTransformer,e.t2=[v],e.next=48,this.getActiveKeyInfo(I.KeyRequestLoadSaveAccount);case 48:return e.t3=e.sent.keys,e.next=51,e.t1.decryptMultipleItems.call(e.t1,e.t2,e.t3);case 51:if(w=n[v.uuid],y=w.frozenContent,b=w.itemRef){e.next=54;break}return e.abrupt("continue",88);case 54:if(l.push(b),"uuid_conflict"===m.type)return e.next=58,this.modelManager.alternateUUIDForItem(b);e.next=62;break;case 58:_=e.sent,l.push(_),e.next=88;break;case 62:if("sync_conflict"===m.type)return e.next=65,this.modelManager.createDuplicateItemFromResponseItem(v);e.next=86;break;case 65:if(k=e.sent,S=this.modelManager.duplicateItemWithCustomContent({content:y,duplicateOf:b}),w=!S.isItemContentEqualWith(k),_=!b.isItemContentEqualWith(k),S=$=x=R=!1,v.deleted||b.deleted?S=!0:w?(new Date-b.client_updated_at)/1e3<20?x=$=!0:S=R=!0:_?(_=!K.AreItemContentsEqual({leftContent:b.content,rightContent:k.content,keysToIgnore:b.keysToIgnoreWhenCheckingContentEquality().concat(["references"]),appDataKeysToIgnore:b.appDataKeysToIgnoreWhenCheckingContentEquality()}),!_?$=!0:S=R=!0):S=!0,R)return e.next=77,this.modelManager.duplicateItemWithCustomContentAndAddAsConflict({content:y,duplicateOf:b});e.next=79;break;case 77:R=e.sent,l.push(R);case 79:if(x&&(this.modelManager.addDuplicatedItemAsConflict({duplicate:k,duplicateOf:b}),l.push(k)),S)return e.next=83,this.modelManager.mapResponseItemsToLocalModelsOmittingFields([v],null,F.MappingSourceRemoteRetrieved);e.next=83;break;case 83:$&&(b.updated_at=k.updated_at,b.setDirty(!0)),e.next=88;break;case 86:return console.error("Unsupported conflict type",m.type),e.abrupt("continue",88);case 88:f=!0,e.next=41;break;case 91:e.next=97;break;case 93:e.prev=93,e.t4=e.catch(39),h=!0,p=e.t4;case 97:e.prev=97,e.prev=98,f||null==d.return||d.return();case 100:if(e.prev=100,h)throw p;e.next=103;break;case 103:return e.finish(100);case 104:return e.finish(97);case 105:return e.abrupt("return",l);case 106:case"end":return e.stop()}},e,this,[[7,23,27,35],[28,,30,34],[39,93,97,105],[98,,100,104]])})),function(e){return i.apply(this,arguments)})},{key:"deprecated_handleUnsavedItemsResponse",value:(r=S(regeneratorRuntime.mark(function e(t){var n,r,i,a,o,s,u,c,l;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&0!=t.length){e.next=2;break}return e.abrupt("return");case 2:this.loggingEnabled&&console.log("Handle Unsaved Items:",t),r=!(n=!0),i=void 0,e.prev=6,a=t[Symbol.iterator]();case 8:if(n=(l=a.next()).done){e.next=35;break}return o=l.value,s=o.item,e.t0=SFJS.itemTransformer,e.t1=[s],e.next=15,this.getActiveKeyInfo(I.KeyRequestLoadSaveAccount);case 15:return e.t2=e.sent.keys,e.next=18,e.t0.decryptMultipleItems.call(e.t0,e.t1,e.t2);case 18:if(u=this.modelManager.findItem(s.uuid)){e.next=21;break}return e.abrupt("continue",32);case 21:if("uuid_conflict"===(c=o.error).tag)return e.next=25,this.modelManager.alternateUUIDForItem(u);e.next=27;break;case 25:e.next=32;break;case 27:if("sync_conflict"===c.tag)return e.next=30,this.modelManager.createDuplicateItemFromResponseItem(s);e.next=32;break;case 30:l=e.sent,s.deleted||u.isItemContentEqualWith(l)||this.modelManager.addDuplicatedItemAsConflict({duplicate:l,duplicateOf:u});case 32:n=!0,e.next=8;break;case 35:e.next=41;break;case 37:e.prev=37,e.t3=e.catch(6),r=!0,i=e.t3;case 41:e.prev=41,e.prev=42,n||null==a.return||a.return();case 44:if(e.prev=44,r)throw i;e.next=47;break;case 47:return e.finish(44);case 48:return e.finish(41);case 49:case"end":return e.stop()}},e,this,[[6,37,41,49],[42,,44,48]])})),function(e){return r.apply(this,arguments)})},{key:"stateless_downloadAllItems",value:function(){var a=this,o=0"==t.operator?i="==t.operator?i<=c:"startsWith"==t.operator?c.startsWith(i):"in"==t.operator?-1!=i.indexOf(c):"includes"==t.operator?this.resolveIncludesPredicate(c,i):"matches"==t.operator&&new RegExp(i).test(c)}},{key:"resolveIncludesPredicate",value:function(e,t){if("string"==typeof t)return e.includes(t);var n=Array.isArray(t)?p.fromArray(t):t,r=!0,i=!1,t=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done);r=!0){var s=a.value;if(this.ObjectSatisfiesPredicate(s,n))return!0}}catch(e){i=!0,t=e}finally{try{r||null==o.return||o.return()}finally{if(i)throw t}}return!1}},{key:"ItemSatisfiesPredicate",value:function(e,t){return Array.isArray(t)&&(t=p.fromArray(t)),this.ObjectSatisfiesPredicate(e,t)}},{key:"ItemSatisfiesPredicates",value:function(e,t){var n=!0,r=!1,i=void 0;try{for(var a,o=t[Symbol.iterator]();!(n=(a=o.next()).done);n=!0){var s=a.value;if(!this.ItemSatisfiesPredicate(e,s))return!1}}catch(e){r=!0,i=e}finally{try{n||null==o.return||o.return()}finally{if(r)throw i}}return!0}},{key:"DateFromString",value:function(e){var t=e.split("."),n=t[1],e=new Date,t=parseInt(t[0]);return"days"==n?e.setDate(e.getDate()-t):"hours"==n&&e.setHours(e.getHours()-t),e}},{key:"IsRecursiveOperator",value:function(e){return["and","or"].includes(e)}}]),p}();ie.SFPredicate=J;var G=function(){function t(e){return C(this,t),(e=y(this,b(t).call(this,e))).content.desktopPrivileges||(e.content.desktopPrivileges={}),e}return k(t,K),O(t,null,[{key:"contentType",value:function(){return"SN|Privileges"}}]),O(t,[{key:"setCredentialsForAction",value:function(e,t){this.content.desktopPrivileges[e]=t}},{key:"getCredentialsForAction",value:function(e){return this.content.desktopPrivileges[e]||[]}},{key:"toggleCredentialForAction",value:function(e,t){this.isCredentialRequiredForAction(e,t)?this.removeCredentialForAction(e,t):this.addCredentialForAction(e,t)}},{key:"removeCredentialForAction",value:function(e,t){_.pull(this.content.desktopPrivileges[e],t)}},{key:"addCredentialForAction",value:function(e,t){var n=this.getCredentialsForAction(e);n.push(t),this.setCredentialsForAction(e,n)}},{key:"isCredentialRequiredForAction",value:function(e,t){return this.getCredentialsForAction(e).includes(t)}}]),t}();ie.SFPrivileges=G;var Y=function(){function t(e){var n;return C(this,t),(n=y(this,b(t).call(this,e))).content.itemUUIDToItemHistoryMapping||(n.content.itemUUIDToItemHistoryMapping={}),Object.keys(n.content.itemUUIDToItemHistoryMapping).forEach(function(e){var t=n.content.itemUUIDToItemHistoryMapping[e];n.content.itemUUIDToItemHistoryMapping[e]=new X(t)}),n}return k(t,K),O(t,[{key:"addEntryForItem",value:function(e){return this.historyForItem(e).addHistoryEntryForItem(e)}},{key:"historyForItem",value:function(e){return this.content.itemUUIDToItemHistoryMapping[e.uuid]||(this.content.itemUUIDToItemHistoryMapping[e.uuid]=new X)}},{key:"clearItemHistory",value:function(e){this.historyForItem(e).clear()}},{key:"clearAllHistory",value:function(){this.content.itemUUIDToItemHistoryMapping={}}},{key:"optimizeHistoryForItem",value:function(e){e=this.historyForItem(e);e.entries.length>t.LargeItemEntryAmountThreshold&&e.optimize()}}]),t}();(ie.SFHistorySession=Y).LargeItemEntryAmountThreshold=60;var X=function(){function u(){var e=0u.LargeEntryDeltaThreshold}function i(e,t,n){n?o.push(e):-1!==(t=o.indexOf(e))&&o.splice(t,1),n&&r(e)&&-1==e.operationVector()&&((t=a.entries[t-1])&&o.push(t))}var a=this,o=[];this.entries.forEach(function(e,t){var n;0==t||t==a.entries.length-1?i(e,t,!0):(n=r(e),i(e,t,n))}),this.entries=this.entries.filter(function(e,t){return-1!==o.indexOf(e)})}}]),u}();(ie.SFItemHistory=X).LargeEntryDeltaThreshold=15;var Z=function(){function t(e){C(this,t),this.item=K.deepMerge({},e),this.defaultContentKeyToDiffOn="text",this.textCharDiffLength=0,"string"==typeof this.item.updated_at&&(this.item.updated_at=new Date(this.item.updated_at))}return O(t,[{key:"setPreviousEntry",value:function(e){this.hasPreviousEntry=null!=e,this.item.content[this.defaultContentKeyToDiffOn]&&(this.textCharDiffLength=e?this.item.content[this.defaultContentKeyToDiffOn].length-e.item.content[this.defaultContentKeyToDiffOn].length:this.item.content[this.defaultContentKeyToDiffOn].length)}},{key:"operationVector",value:function(){return null!=this.textCharDiffLength?this.hasPreviousEntry&&0!=this.textCharDiffLength?this.textCharDiffLength<0?-1:1:0:1}},{key:"deltaSize",value:function(){return null!=this.textCharDiffLength?Math.abs(this.textCharDiffLength):1}},{key:"isSameAsEntry",value:function(e){if(!e)return!1;var t=new K(this.item),e=new K(e.item);return t.isItemContentEqualWith(e)}}]),t}();ie.SFItemHistoryEntry=Z;var D="undefined"!=typeof window?window:void 0!==e?e:null,Q=function(){function e(){C(this,e),this.DefaultPBKDF2Length=768}var n,r,t,i,a,o,s,u,c,l,f,h,p,d,g;return O(e,[{key:"generateUUIDSync",value:function(){var e=D.crypto||D.msCrypto;if(e){var n=new Uint32Array(4);e.getRandomValues(n);var r=-1;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=n[++r>>3]>>r%8*4&15;return("x"==e?t:3&t|8).toString(16)})}var i=(new Date).getTime();return D.performance&&"function"==typeof D.performance.now&&(i+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=(i+16*Math.random())%16|0;return i=Math.floor(i/16),("x"==e?t:3&t|8).toString(16)})}},{key:"generateUUID",value:(g=S(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.generateUUIDSync());case 1:case"end":return e.stop()}},e,this)})),function(){return g.apply(this,arguments)})},{key:"timingSafeEqual",value:function(e,t){var n=String(e),r=String(t),i=n.length,a=0;i!==r.length&&(r=n,a=1);for(var o=0;oparseInt(t)}},{key:"isProtocolVersionOutdated",value:function(e){e={"001":Date.parse("2018-01-01"),"002":Date.parse("2020-01-01")}[e];return!!e&&new Date>e}},{key:"costMinimumForVersion",value:function(e){return{"001":3e3,"002":3e3,"003":11e4}[e]}},{key:"defaultPasswordGenerationCost",value:function(){return this.costMinimumForVersion(this.version())}}]),t}();if(ie.StandardFile=e,D)try{D.StandardFile=e,D.SFJS=new e,D.SFCryptoWeb=ne,D.SFCryptoJS=ee,D.SFItemTransformer=re,D.SFModelManager=F,D.SFItem=K,D.SFItemParams=W,D.SFHttpManager=T,D.SFStorageManager=V,D.SFSyncManager=q,D.SFAuthManager=M,D.SFMigrationManager=P,D.SFAlertManager=I,D.SFPredicate=J,D.SFHistorySession=Y,D.SFSessionHistoryManager=N,D.SFItemHistory=X,D.SFItemHistoryEntry=Z,D.SFPrivilegesManager=L,D.SFPrivileges=G,D.SFSingletonManager=U}catch(e){console.log("Exception while exporting window variables",e)}}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}),function(){function v(e,t){return e.set(t[0],t[1]),e}function y(e,t){return e.add(t),e}function n(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n>>0,r>>>=0,i=Array(o);++a").append(e).html();try{return e[0].nodeType===qe?S(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+S(t)})}catch(e){return S(t)}}function Z(e){try{return decodeURIComponent(e)}catch(e){}}function Q(e){var i={};return me((e||"").split("&"),function(e){var t,n,r;e&&(n=e=e.replace(/\+/g,"%20"),-1!==(t=e.indexOf("="))&&(n=e.substring(0,t),r=e.substring(t+1)),I(n=Z(n))&&(r=!I(r)||Z(r),z.call(i,n)?_e(i[n])?i[n].push(r):i[n]=[i[n],r]:i[n]=r))}),i}function ee(e){return te(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function te(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}var ne=["ng-","data-ng-","ng:","x-ng-"];var re,ie,ae=(re=de.document,!(ie=re.currentScript)||(ie instanceof de.HTMLScriptElement||ie instanceof de.SVGScriptElement)&&[(ie=ie.attributes).getNamedItem("src"),ie.getNamedItem("href"),ie.getNamedItem("xlink:href")].every(function(e){if(!e)return!0;if(!e.value)return!1;var t=re.createElement("a");if(t.href=e.value,re.location.origin===t.origin)return!0;switch(t.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}}));function oe(n,e){var r,i,t={};me(ne,function(e){e+="app";!r&&n.hasAttribute&&n.hasAttribute(e)&&(i=(r=n).getAttribute(e))}),me(ne,function(e){var t,e=e+"app";!r&&(t=n.querySelector("["+e.replace(":","\\:")+"]"))&&(i=(r=t).getAttribute(e))}),r&&(ae?(t.strictDi=null!==function(e,t){for(var n,r=ne.length,i=0;i protocol indicates an extension, document.location.href does not match."))}function se(t,n,r){r=ve({strictDi:!1},r=!$e(r)?{}:r);function i(){if((t=ge(t)).injector()){var e=t[0]===de.document?"document":Le(t);throw p("btstrpd","App already bootstrapped with this element '{0}'",e.replace(//,">"))}return(n=n||[]).unshift(["$provide",function(e){e.value("$rootElement",t)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng"),(e=un(n,r.strictDi)).invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),e}var e=/^NG_ENABLE_DEBUG_INFO!/,a=/^NG_DEFER_BOOTSTRAP!/;if(de&&e.test(de.name)&&(r.debugInfoEnabled=!0,de.name=de.name.replace(e,"")),de&&!a.test(de.name))return i();de.name=de.name.replace(a,""),b.resumeBootstrap=function(e){return me(e,function(e){n.push(e)}),i()},Ie(b.resumeDeferredBootstrap)&&b.resumeDeferredBootstrap()}function ue(){de.name="NG_ENABLE_DEBUG_INFO!"+de.name,de.location.reload()}function ce(e){e=b.element(e).injector();if(!e)throw p("test","no injector found for element argument to getTestability");return e.get("$$testability")}var le=/[A-Z]/g;function Be(e,n){return n=n||"_",e.replace(le,function(e,t){return(t?n:"")+e.toLowerCase()})}var fe=!1;function he(){kt.legacyXHTMLReplacement=!0}function je(e,t,n){if(!e)throw p("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function pe(e,t,n){return je(Ie(e=n&&_e(e)?e[e.length-1]:e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function He(e,t){if("hasOwnProperty"===e)throw p("badname","hasOwnProperty is not a valid {0} name",t)}function Ne(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)!t&&e[i]===n||(t=t||ge(o.call(e,0,i))).push(n);return t||e}function Ue(){return Object.create(null)}function Ve(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!x(e)||_e(e)||M(e)?K(e):e.toString()}return e}var ze=1,qe=3,Ke=8,We=9,Je=11;function Ge(e){var f=$("$injector"),h=$("ng");function t(e,t,n){return e[t]||(e[t]=n())}e=t(e,"angular",Object);return e.$$minErr=e.$$minErr||$,t(e,"module",function(){var e={};return function(s,u,c){var l={};return function(e,t){if("hasOwnProperty"===e)throw h("badname","hasOwnProperty is not a valid {0} name",t)}(s,"module"),u&&e.hasOwnProperty(s)&&(e[s]=null),t(e,s,function(){if(!u)throw f("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",s);var a=[],e=[],t=[],n=r("$injector","invoke","push",e),o={_invokeQueue:a,_configBlocks:e,_runBlocks:t,info:function(e){if(I(e)){if(!$e(e))throw h("aobj","Argument '{0}' must be an object","value");return l=e,this}return l},requires:u,name:s,provider:i("$provide","provider"),factory:i("$provide","factory"),service:i("$provide","service"),value:r("$provide","value"),constant:r("$provide","constant","unshift"),decorator:i("$provide","decorator",e),animation:i("$animateProvider","register"),filter:i("$filterProvider","register"),controller:i("$controllerProvider","register"),directive:i("$compileProvider","directive"),component:i("$compileProvider","component"),config:n,run:function(e){return t.push(e),this}};return c&&n(c),o;function r(e,t,n,r){return r=r||a,function(){return r[n||"push"]([e,t,arguments]),o}}function i(n,r,i){return i=i||a,function(e,t){return t&&Ie(t)&&(t.$$moduleName=s),i.push([n,r,arguments]),o}}})}})}function Ye(e,t){if(_e(e)){t=t||[];for(var n=0,r=e.length;n(?:<\/\1>|)$/,ut=/<|&#?\w+;/,ct=/<([\w:-]+)/,lt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ft={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};ft.tbody=ft.tfoot=ft.colgroup=ft.caption=ft.thead,ft.th=ft.td;var ht,pt={option:[1,'"],_default:[0,"",""]};for(ht in ft){var dt=ft[ht],gt=dt.slice().reverse();pt[ht]=[gt.length,"<"+gt.join("><")+">",""]}function mt(e){return!ut.test(e)}function vt(e){e=e.nodeType;return e===ze||!e||e===We}function yt(e,t){var n,r,i,a=t.createDocumentFragment(),o=[];if(mt(e))o.push(t.createTextNode(e));else{if(n=a.appendChild(t.createElement("div")),t=(ct.exec(e)||["",""])[1].toLowerCase(),e=kt.legacyXHTMLReplacement?e.replace(lt,"<$1>"):e,ye<10)for(r=pt[t]||pt._default,n.innerHTML=r[1]+e+r[2],i=r[0];i--;)n=n.firstChild;else{for(i=(r=ft[t]||[]).length;-1<--i;)n.appendChild(de.document.createElement(r[i])),n=n.firstChild;n.innerHTML=e}o=V(o,n.childNodes),(n=a.firstChild).textContent=""}return a.textContent="",a.innerHTML="",me(o,function(e){a.appendChild(e)}),a}pt.optgroup=pt.option;var bt=de.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};function kt(e){if(e instanceof kt)return e;var t,n,r;if(Se(e)&&(e=Oe(e),r=!0),!(this instanceof kt)){if(r&&"<"!==e.charAt(0))throw it("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new kt(e)}r?Dt(this,(t=e,n=n||de.document,(r=st.exec(t))?[n.createElement(r[1])]:(r=yt(t,n))?r.childNodes:[])):Ie(e)?Lt(e):Dt(this,e)}function wt(e){return e.cloneNode(!0)}function xt(e,t){!t&&vt(e)&&ge.cleanData([e]),e.querySelectorAll&&ge.cleanData(e.querySelectorAll("*"))}function $t(e){for(var t in e)return;return 1}function St(e){var t=e.ng339,n=t&&Qe[t],r=n&&n.events,n=n&&n.data;n&&!$t(n)||r&&!$t(r)||(delete Qe[t],e.ng339=void 0)}function _t(n,e,r,t){if(I(t))throw it("offargs","jqLite#off() does not support the `selector` argument");var t=It(n),i=t&&t.events,a=t&&t.handle;if(a){if(e){var o=function(e){var t=i[e];I(r)&&De(t||[],r),I(r)&&t&&0/,en=/^[^(]*\(\s*([^)]*)\)/m,tn=/,/,nn=/^\s*(_?)(\S+?)\1\s*$/,rn=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,an=$("$injector");function on(e){return Function.prototype.toString.call(e)}function sn(e){e=on(e).replace(rn,"");return e.match(Qt)||e.match(en)}function un(e,c){c=!0===c;var a={},o="Provider",s=[],i=new Xt,l={$provide:{provider:r(h),factory:r(p),service:r(function(e,t){return p(e,["$injector",function(e){return e.instantiate(t)}])}),value:r(function(e,t){return p(e,R(t),!1)}),constant:r(function(e,t){He(e,"constant"),l[e]=t,n[e]=t}),decorator:function(e,t){var n=u.get(e+o),r=n.$get;n.$get=function(){var e=f.invoke(r,n);return f.invoke(t,null,{$delegate:e})}}}},u=l.$injector=g(l,function(e,t){throw b.isString(t)&&s.push(t),an("unpr","Unknown provider: {0}",s.join(" <- "))}),n={},t=g(n,function(e,t){t=u.get(e+o,t);return f.invoke(t.$get,t,void 0,e)}),f=t;l["$injector"+o]={$get:R(t)},f.modules=u.modules=Ue();e=d(e);return(f=t.get("$injector")).strictDi=c,me(e,function(e){e&&f.invoke(e)}),f.loadNewModules=function(e){me(d(e),function(e){e&&f.invoke(e)})},f;function r(n){return function(e,t){if(!$e(e))return n(e,t);me(e,y(n))}}function h(e,t){if(He(e,"service"),!(t=Ie(t)||_e(t)?u.instantiate(t):t).$get)throw an("pget","Provider '{0}' must define $get factory method.",e);return l[e+o]=t}function p(e,t,n){return h(e,{$get:!1!==n?(r=e,i=t,function(){var e=f.invoke(i,this);if(xe(e))throw an("undef","Provider '{0}' must return a value from $get factory method.",r);return e}):t});var r,i}function d(e){je(xe(e)||_e(e),"modulesToLoad","not an array");var n,r=[];return me(e,function(t){if(!i.get(t)){i.set(t,!0);try{Se(t)?(n=m(t),f.modules[t]=n,r=r.concat(d(n.requires)).concat(n._runBlocks),e(n._invokeQueue),e(n._configBlocks)):Ie(t)||_e(t)?r.push(u.invoke(t)):pe(t,"module")}catch(e){throw _e(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),an("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}function e(e){for(var t=0,n=e.length;t";var r=u.firstChild.attributes,t=r[0];r.removeNamedItem(t.name),t.value=n,e.attributes.setNamedItem(t)}(this.$$element[0],r,t));r=this.$$observers;r&&me(r[o],function(e){try{e(t)}catch(e){q(e)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=Ue()),i=r[e]||(r[e]=[]);return i.push(t),A.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||xe(n[e])||t(n[e])}),function(){De(i,t)}}};var t=R.startSymbol(),n=R.endSymbol(),Y="{{"===t&&"}}"===n?we:function(e){return e.replace(/\{\{/g,t).replace(/}}/g,n)},D=/^ng(Attr|Prop|On)([A-Z].*)$/,T=/^(.+)Start$/;return X.$$addBindingInfo=i?function(e,t){var n=e.data("$binding")||[];_e(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:ke,X.$$addBindingClass=i?function(e){G(e,"ng-binding")}:ke,X.$$addScopeInfo=i?function(e,t,n,r){e.data(n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope",t)}:ke,X.$$addScopeClass=i?function(e,t){G(e,t?"ng-isolate-scope":"ng-scope")}:ke,X.$$createComment=function(e,t){var n="";return i&&(n=" "+(e||"")+": ",t&&(n+=t+" ")),de.document.createComment(n)},X;function X(s,e,t,n,u){var c=Z(s=!(s instanceof ge)?ge(s):s,e,s,t,n,u);X.$$addScopeClass(s);var l=null;return function(e,t,n){if(!s)throw _n("multilink","This element has already been linked.");je(e,"scope"),u&&u.needsNewScope&&(e=e.$parent.$new());var r,i=(n=n||{}).parentBoundTranscludeFn,a=n.transcludeControllers,n=n.futureParentElement;if(i&&i.$$boundTransclude&&(i=i.$$boundTransclude),r="html"!==(l=l||function(e){e=e&&e[0];return e&&"foreignobject"!==Me(e)&&v.call(e).match(/SVG/)?"svg":"html"}(n))?ge(ce(l,ge("

").append(s).html())):t?Bt.clone.call(s):s,a)for(var o in a)r.data("$"+o+"Controller",a[o].instance);return X.$$addScopeInfo(r,e),t&&t(r,e),c&&c(e,r,r,i),t||(s=c=null),r}}function Z(e,d,t,n,r,i){for(var a,o,s,u,g,m=[],c=_e(e)||e instanceof ge,l=0;ly.priority)break;if((o=y.scope)&&(y.templateUrl||($e(o)?(ue("new/isolated scope",R||S,y,f),R=y):ue("new/isolated scope",R,y,f)),S=S||y),a=y.name,!d&&(y.replace&&(y.templateUrl||y.template)||y.transclude&&!y.$$tlb)){for(var O,M=m+1;O=e[M++];)if(O.transclude&&!O.$$tlb||O.replace&&(O.templateUrl||O.template)){g=!0;break}d=!0}if(!y.templateUrl&&y.controller&&(_=_||Ue(),ue("'"+a+"' controller",_[a],y,f),_[a]=y),o=y.transclude)if(c=!0,y.$$tlb||(ue("transclusion",u,y,f),u=y),"element"===o)A=!0,s=y.priority,P=f,f=w.$$element=ge(X.$$createComment(a,w[a])),k=f[0],le(n,Pe(P),k),p=re(g,P,t,s,h&&h.name,{nonTlbTranscludeDirective:u});else{var D=Ue();if($e(o)){var T,E,P=de.document.createDocumentFragment(),F=Ue(),L=Ue();for(T in me(o,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,F[e]=t,D[t]=null,L[t]=n}),me(f.contents(),function(e){var t=F[Mn(Me(e))];t?(L[t]=!0,D[t]=D[t]||de.document.createDocumentFragment(),D[t].appendChild(e)):P.appendChild(e)}),me(L,function(e,t){if(!e)throw _n("reqslot","Required transclusion slot `{0}` was not filled.",t)}),D)D[T]&&(E=ge(D[T].childNodes),D[T]=re(g,E,t));P=ge(P.childNodes)}else P=ge(wt(k)).contents();f.empty(),(p=re(g,P,t,void 0,void 0,{needsNewScope:y.$$isolateScope||y.$$newScope})).$$slots=D}if(y.template)if(l=!0,ue("template",I,y,f),o=Ie((I=y).template)?y.template(f,w):y.template,o=Y(o),y.replace){if(h=y,P=mt(o)?[]:Tn(ce(y.templateNamespace,Oe(o))),k=P[0],1!==P.length||k.nodeType!==ze)throw _n("tplrt","Template for directive '{0}' must have exactly one root element. {1}",a,"");le(n,f,k);var B={$attr:{}},j=ee(k,[],B),H=e.splice(m+1,e.length-(m+1));(R||S)&&oe(j,R,S),e=e.concat(j).concat(H),se(w,B),v=e.length}else f.html(o);if(y.templateUrl)l=!0,ue("template",I,y,f),(I=y).replace&&(h=y),z=function(l,f,h,p,d,g,m,v){var y,b,k=[],w=f[0],x=l.shift(),$=be(x,{templateUrl:null,transclude:null,replace:null,$$originalDirective:x}),S=Ie(x.templateUrl)?x.templateUrl(f,h):x.templateUrl,_=x.templateNamespace;return f.empty(),K(S).then(function(e){var n,t;if(e=Y(e),x.replace){if(r=mt(e)?[]:Tn(ce(_,Oe(e))),n=r[0],1!==r.length||n.nodeType!==ze)throw _n("tplrt","Template for directive '{0}' must have exactly one root element. {1}",x.name,S);t={$attr:{}},le(p,f,n);var r=ee(n,[],t);$e(x.scope)&&oe(r,!0),l=r.concat(l),se(h,t)}else n=w,f.html(e);for(l.unshift($),y=ie(l,n,h,d,f,x,g,m,v),me(p,function(e,t){e===n&&(p[t]=f[0])}),b=Z(f[0].childNodes,d);k.length;){var i,a=k.shift(),o=k.shift(),s=k.shift(),u=k.shift(),c=f[0];a.$$destroyed||(o!==w&&(i=o.className,v.hasElementTranscludeDirective&&x.replace||(c=wt(n)),le(s,ge(o),c),G(ge(c),i)),u=y.transcludeOnThisElement?Q(a,y.transclude,u):u,y(b,a,c,p,u))}k=null}).catch(function(e){Re(e)&&q(e)}),function(e,t,n,r,i){var a=i;t.$$destroyed||(k?k.push(t,n,r,a):(y.transcludeOnThisElement&&(a=Q(t,y.transclude,i)),y(b,t,n,r,a)))}}(e.splice(m,e.length-m),f,w,n,c&&p,x,$,{controllerDirectives:_,newScopeDirective:S!==y&&S,newIsolateScopeDirective:R,templateDirective:I,nonTlbTranscludeDirective:u}),v=e.length;else if(y.compile)try{var N=y.compile(f,w,p),U=y.$$originalDirective||y;Ie(N)?V(null,Fe(U,N),b,C):N&&V(Fe(U,N.pre),Fe(U,N.post),b,C)}catch(e){q(e,Le(f))}y.terminal&&(z.terminal=!0,s=Math.max(s,y.priority))}return z.scope=S&&!0===S.scope,z.transcludeOnThisElement=c,z.templateOnThisElement=l,z.transclude=p,i.hasElementTranscludeDirective=A,z;function V(e,t,n,r){e&&((e=n?ne(e,n,r):e).require=y.require,e.directiveName=a,R!==y&&!y.$$isolateScope||(e=fe(e,{isolateScope:!0})),x.push(e)),t&&((t=n?ne(t,n,r):t).require=y.require,t.directiveName=a,R!==y&&!y.$$isolateScope||(t=fe(t,{isolateScope:!0})),$.push(t))}function z(e,t,n,r,o){var i,a,s,u,c,l,f,h,p,d,g;for(g in k===n?h=(p=w).$$element:p=new J(h=ge(n),w),c=t,R?u=t.$new(!0):S&&(c=t.$parent),o&&((f=function(e,t,n,r){var i;Ae(e)||(r=n,n=t,t=e,e=void 0);A&&(i=l);n=n||(A?h.parent():h);{if(!r)return o(e,t,i,n,b);var a=o.$$slots[r];if(a)return a(e,t,i,n,b);if(xe(a))throw _n("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,Le(h))}}).$$boundTransclude=o,f.isSlotFilled=function(e){return!!o.$$slots[e]}),_&&(l=function(e,t,n,r,i,a,o){var s,u=Ue();for(s in r){var c=r[s],l={$scope:c===o||c.$$isolateScope?i:a,$element:e,$attrs:t,$transclude:n},f=c.controller;"@"===f&&(f=t[c.name]);l=W(f,l,!0,c.controllerAs);u[c.name]=l,e.data("$"+c.name+"Controller",l.instance)}return u}(h,p,f,_,u,t,R)),R&&(X.$$addScopeInfo(h,u,!0,!(I&&(I===R||I===R.$$originalDirective))),X.$$addScopeClass(h,!0),u.$$isolateBindings=R.$$isolateBindings,(d=pe(t,p,u,u.$$isolateBindings,R)).removeWatches&&u.$on("$destroy",d.removeWatches)),l){var m=_[g],v=l[g],y=m.$$bindings.bindToController;v.instance=v(),h.data("$"+m.name+"Controller",v.instance),v.bindingInfo=pe(c,p,v.instance,y,m)}for(me(_,function(e,t){var n=e.require;e.bindToController&&!_e(n)&&$e(n)&&ve(l[t].instance,ae(t,n,h,l))}),me(l,function(e){var t=e.instance;if(Ie(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){q(e)}if(Ie(t.$onInit))try{t.$onInit()}catch(e){q(e)}Ie(t.$doCheck)&&(c.$watch(function(){t.$doCheck()}),t.$doCheck()),Ie(t.$onDestroy)&&c.$on("$destroy",function(){t.$onDestroy()})}),i=0,a=x.length;ih.priority)&&-1!==h.restrict.indexOf(n)&&((h=a?be(h,{$$start:a,$$end:o}):h).$$bindings||(f=h.$$bindings=function(e,t){var n={isolateScope:null,bindToController:null};if($e(e.scope)&&(!0===e.bindToController?(n.bindToController=p(e.scope,t,!0),n.isolateScope={}):n.isolateScope=p(e.scope,t,!1)),$e(e.bindToController)&&(n.bindToController=p(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw _n("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}(h,h.name),$e(f.isolateScope)&&(h.$$isolateBindings=f.isolateScope)),e.push(h),s=h)}return s}}function se(n,r){var i=r.$attr,a=n.$attr;me(n,function(e,t){"$"!==t.charAt(0)&&(r[t]&&r[t]!==e&&(e.length?e+=("style"===t?";":" ")+r[t]:e=r[t]),n.$set(t,e,!0,i[t]))}),me(r,function(e,t){n.hasOwnProperty(t)||"$"===t.charAt(0)||(n[t]=e,"class"!==t&&"style"!==t&&(a[t]=i[t]))})}function P(e,t){var n=t.priority-e.priority;return 0!=n?n:e.name!==t.name?e.name"+t+"",n.childNodes[0].childNodes;default:return t}}function F(e){return c(C.valueOf(e),"ng-prop-srcset")}function le(e,t,n){var r,i=t[0],a=t.length,o=i.parentNode;if(e)for(f=0,r=e.length;f tag to be present!");n=a.substring(0,a.indexOf("/",a.indexOf("//")+2))+(r||"/"),t=u.history?kr:xr}else n=br(a),t=wr;var c,l=n.substr(0,br(n).lastIndexOf("/")+1);(c=new t(n,l,"#"+g)).$$parseLinkUrl(a,a),c.$$state=s.state();var f=/^\s*(javascript|mailto):/i;function h(e,t,n){var r=c.url(),i=c.$$state;try{s.url(e,t,n),c.$$state=s.state()}catch(e){throw c.url(r),c.$$state=i,e}}i.on("click",function(e){var t=m.rewriteLinks;if(t&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var n,r=ge(e.target);"a"!==Me(r[0]);)if(r[0]===i[0]||!(r=r.parent())[0])return;Se(t)&&xe(r.attr(t))||(n=r.prop("href"),t=r.attr("href")||r.attr("xlink:href"),$e(n)&&"[object SVGAnimatedString]"===n.toString()&&(n=wi(n.animVal).href),f.test(n)||!n||r.attr("target")||e.isDefaultPrevented()||c.$$parseLinkUrl(n,t)&&(e.preventDefault(),c.absUrl()!==s.url()&&o.$apply()))}}),c.absUrl()!==a&&s.url(c.absUrl(),!0);var p=!0;return s.onUrlChange(function(r,i){vr(r,l)?(o.$evalAsync(function(){var e,t=c.absUrl(),n=c.$$state;c.$$parse(r),c.$$state=i,e=o.$broadcast("$locationChangeStart",r,t,i,n).defaultPrevented,c.absUrl()===r&&(e?(c.$$parse(t),c.$$state=n,h(t,!1,n)):(p=!1,d(t,n)))}),o.$$phase||o.$digest()):e.location.href=r}),o.$watch(function(){var n,r,i,a,e,t;(p||c.$$urlUpdatedByLocation)&&(c.$$urlUpdatedByLocation=!1,n=s.url(),t=c.absUrl(),r=s.state(),i=c.$$replace,a=!((e=n)===(t=t)||wi(e).href===wi(t).href)||c.$$html5&&u.history&&r!==c.$$state,(p||a)&&(p=!1,o.$evalAsync(function(){var e=c.absUrl(),t=o.$broadcast("$locationChangeStart",e,n,c.$$state,r).defaultPrevented;c.absUrl()===e&&(t?(c.$$parse(n),c.$$state=r):(a&&h(e,i,r===c.$$state?null:c.$$state),d(n,r)))}))),c.$$replace=!1}),c;function d(e,t){o.$broadcast("$locationChangeSuccess",c.absUrl(),e,c.$$state,t)}}]}function Ir(){var r=!0,a=this;this.debugEnabled=function(e){return I(e)?(r=e,this):r},this.$get=["$window",function(t){var e,i=ye||/\bEdge\//.test(t.navigator&&t.navigator.userAgent);return{log:n("log"),info:n("info"),warn:n("warn"),error:n("error"),debug:(e=n("debug"),function(){r&&e.apply(a,arguments)})};function n(e){var n=t.console||{},r=n[e]||n.log||ke;return function(){var t=[];return me(arguments,function(e){t.push((Re(e=e)&&(e.stack&&i?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e))}),Function.prototype.apply.call(r,n,t)}}}]}me([xr,wr,kr],function(t){t.prototype=Object.create($r),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==kr||!this.$$html5)throw hr("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=xe(e)?null:e,this.$$urlUpdatedByLocation=!0,this}});var Ar=$("$parse"),Cr={}.constructor.prototype.valueOf;function Or(e){return e+""}var Mr=Ue();me("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){Mr[e]=!0});var Dr={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Tr=function(e){this.options=e};Tr.prototype={constructor:Tr,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index","<=",">=");)t={type:Er.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:Er.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:Er.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:Er.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e,t;for(this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=H(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:Er.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(e={type:Er.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:Er.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:Er.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],e={type:Er.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return e},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)for(;e.push(this.filterChain()),this.expect(","););return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:Er.Identifier,name:e.text}},constant:function(){return{type:Er.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)for(;!this.peek("]")&&(e.push(this.expression()),this.expect(",")););return this.consume("]"),{type:Er.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)for(;!this.peek("}")&&(e={type:Er.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e),this.expect(",")););return this.consume("}"),{type:Er.ObjectExpression,properties:t}},throwError:function(e,t){throw Ar("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw Ar("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw Ar("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var a=this.tokens[e],e=a.text;if(e===t||e===n||e===r||e===i||!t&&!n&&!r&&!i)return a}return!1},expect:function(e,t,n,r){r=this.peek(e,t,n,r);return!!r&&(this.tokens.shift(),r)},selfReferential:{this:{type:Er.ThisExpression},$locals:{type:Er.LocalsExpression}}};var Lr=1,Br=2;function jr(e,t,n){var r,i,a,o=e.isPure=function(e,t){switch(e.type){case Er.MemberExpression:if(e.computed)return!1;break;case Er.UnaryExpression:return Lr;case Er.BinaryExpression:return"+"!==e.operator&&Lr;case Er.CallExpression:return!1}return void 0===t?Br:t}(e,n);switch(e.type){case Er.Program:r=!0,me(e.body,function(e){jr(e.expression,t,o),r=r&&e.expression.constant}),e.constant=r;break;case Er.Literal:e.constant=!0,e.toWatch=[];break;case Er.UnaryExpression:jr(e.argument,t,o),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case Er.BinaryExpression:jr(e.left,t,o),jr(e.right,t,o),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case Er.LogicalExpression:jr(e.left,t,o),jr(e.right,t,o),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case Er.ConditionalExpression:jr(e.test,t,o),jr(e.alternate,t,o),jr(e.consequent,t,o),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case Er.Identifier:e.constant=!1,e.toWatch=[e];break;case Er.MemberExpression:jr(e.object,t,o),e.computed&&jr(e.property,t,o),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case Er.CallExpression:a=!!e.filter&&(a=e.callee.name,!t(a).$stateful),r=a,i=[],me(e.arguments,function(e){jr(e,t,o),r=r&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=r,e.toWatch=a?i:[e];break;case Er.AssignmentExpression:jr(e.left,t,o),jr(e.right,t,o),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case Er.ArrayExpression:r=!0,i=[],me(e.elements,function(e){jr(e,t,o),r=r&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=r,e.toWatch=i;break;case Er.ObjectExpression:r=!0,i=[],me(e.properties,function(e){jr(e.value,t,o),r=r&&e.value.constant,i.push.apply(i,e.value.toWatch),e.computed&&(jr(e.key,t,!1),r=r&&e.key.constant,i.push.apply(i,e.key.toWatch))}),e.constant=r,e.toWatch=i;break;case Er.ThisExpression:case Er.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Hr(e){if(1===e.length){var t=e[0].expression,e=t.toWatch;return 1!==e.length||e[0]!==t?e:void 0}}function Nr(e){return e.type===Er.Identifier||e.type===Er.MemberExpression}function Ur(e){if(1===e.body.length&&Nr(e.body[0].expression))return{type:Er.AssignmentExpression,left:e.body[0].expression,right:{type:Er.NGValueParameter},operator:"="}}function Vr(e){this.$filter=e}function zr(e){this.$filter=e}function qr(e,t,n){this.ast=new Er(e,n),this.astCompiler=new(n.csp?zr:Vr)(t)}function Kr(e){return Ie(e.valueOf)?e.valueOf():Cr.call(e)}function Wr(){var s,u,c=Ue(),l={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){l[e]=t},this.setIdentifierFns=function(e,t){return s=e,u=t,this},this.$get=["$filter",function(i){var a={csp:N().noUnsafeEval,literals:H(l),isIdentifierStart:Ie(s)&&s,isIdentifierContinue:Ie(u)&&u};return e.$$getAst=function(e){return new qr(new Tr(a),i,a).getAst(e).ast},e;function e(e,t){var n,r;switch(typeof e){case"string":return e=e.trim(),(r=c[n=e])||(r=new qr(new Tr(a),i,a).parse(e),c[n]=d(r)),o(r,t);case"function":return o(e,t);default:return o(ke,t)}}function h(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=Kr(e))&&!n)&&(e===t||e!=e&&t!=t)}function t(e,t,n,a,r){var o;if(1===(s=a.inputs).length){var i=h,s=s[0];return e.$watch(function(e){var t=s(e);return h(t,i,s.isPure)||(o=a(e,void 0,void 0,[t]),i=t&&Kr(t)),o},t,n,r)}for(var u=[],c=[],l=0,f=s.length;l":function(i,a,o){return function(e,t,n,r){r=i(e,t,n,r)>a(e,t,n,r);return o?{value:r}:r}},"binary<=":function(i,a,o){return function(e,t,n,r){r=i(e,t,n,r)<=a(e,t,n,r);return o?{value:r}:r}},"binary>=":function(i,a,o){return function(e,t,n,r){r=i(e,t,n,r)>=a(e,t,n,r);return o?{value:r}:r}},"binary&&":function(i,a,o){return function(e,t,n,r){r=i(e,t,n,r)&&a(e,t,n,r);return o?{value:r}:r}},"binary||":function(i,a,o){return function(e,t,n,r){r=i(e,t,n,r)||a(e,t,n,r);return o?{value:r}:r}},"ternary?:":function(i,a,o,s){return function(e,t,n,r){r=(i(e,t,n,r)?a:o)(e,t,n,r);return s?{value:r}:r}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(i,a,o){return function(e,t,n,r){t=t&&i in t?t:e;o&&1!==o&&t&&null==t[i]&&(t[i]={});e=t?t[i]:void 0;return a?{context:t,name:i,value:e}:e}},computedMember:function(s,u,c,l){return function(e,t,n,r){var i,a,o=s(e,t,n,r);return null!=o&&(i=u(e,t,n,r),i+="",l&&1!==l&&o&&!o[i]&&(o[i]={}),a=o[i]),c?{context:o,name:i,value:a}:a}},nonComputedMember:function(i,a,o,s){return function(e,t,n,r){n=i(e,t,n,r);s&&1!==s&&n&&null==n[a]&&(n[a]={});r=null!=n?n[a]:void 0;return o?{context:n,name:a,value:r}:r}},inputs:function(i,a){return function(e,t,n,r){return r?r[a]:i(e,t,n)}}},qr.prototype={constructor:qr,parse:function(e){var t=this.getAst(e),n=this.astCompiler.compile(t.ast);return n.literal=0===(e=t.ast).body.length||1===e.body.length&&(e.body[0].expression.type===Er.Literal||e.body[0].expression.type===Er.ArrayExpression||e.body[0].expression.type===Er.ObjectExpression),n.constant=t.ast.constant,n.oneTime=t.oneTime,n},getAst:function(e){var t=!1;return":"===(e=e.trim()).charAt(0)&&":"===e.charAt(1)&&(t=!0,e=e.substring(2)),{ast:this.ast.ast(e),oneTime:t}}};var ni=$("$sce"),ri={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},ii=/_([a-z])/g;function ai(e){return e.replace(ii,at)}function oi(e){var t=[];return I(e)&&me(e,function(e){t.push(function(e){if("self"===e)return e;if(Se(e)){if(-1 to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var i=Ye(ri);i.isEnabled=function(){return t},i.trustAs=e.trustAs,i.getTrusted=e.getTrusted,i.valueOf=e.valueOf,t||(i.trustAs=i.getTrusted=function(e,t){return t},i.valueOf=we),i.parseAs=function(t,e){var n=r(e);return n.literal&&n.constant?n:r(e,function(e){return i.getTrusted(t,e)})};var n=i.parseAs,a=i.getTrusted,o=i.trustAs;return me(ri,function(t,e){e=S(e);i[ai("parse_as_"+e)]=function(e){return n(t,e)},i[ai("get_trusted_"+e)]=function(e){return a(t,e)},i[ai("trust_as_"+e)]=function(e){return o(t,e)}}),i}]}function ci(){this.$get=["$window","$document",function(e,t){var n={},r=!(!(e.nw&&e.nw.process)&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id))&&e.history&&e.history.pushState,i=w((/android (\d+)/.exec(S((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),o=t[0]||{},s=o.body&&o.body.style,e=!1,t=!1;return s&&(e=!!("transition"in s||"webkitTransition"in s),t=!!("animation"in s||"webkitAnimation"in s)),{history:!(!r||i<4||a),hasEvent:function(e){return("input"!==e||!ye)&&(xe(n[e])&&(t=o.createElement("div"),n[e]="on"+e in t),n[e]);var t},csp:N(),transitions:e,animations:t,android:i}}]}function li(){this.$get=R(function(e){return new fi(e)})}function fi(a){var o={},r=[],s=this.ALL_TASKS_TYPE="$$all$$",u=this.DEFAULT_TASK_TYPE="$$default$$";function c(){var e=r.pop();return e&&e.cb}function l(e){for(var t=r.length-1;0<=t;--t){var n=r[t];if(n.type===e)return r.splice(t,1),n.cb}}this.completeTask=function(e,t){t=t||u;try{e()}finally{!function(e){o[e=e||u]&&(o[e]--,o[s]--)}(t);var n=o[t],e=o[s];if(!e||!n)for(var r,i=e?l:c;r=i(t);)try{r()}catch(e){a.error(e)}}},this.incTaskCount=function(e){o[e=e||u]=(o[e]||0)+1,o[s]=(o[s]||0)+1},this.notifyWhenNoPendingTasks=function(e,t){o[t=t||s]?r.push({type:t,cb:e}):e()}}var hi=$("$templateRequest");function pi(){var c;this.httpOptions=function(e){return e?(c=e,this):c},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(r,i,a,o,s){function u(t,n){u.totalPendingRequests++,Se(t)&&!xe(i.get(t))||(t=s.getTrustedResourceUrl(t));var e=a.defaults&&a.defaults.transformResponse;return _e(e)?e=e.filter(function(e){return e!==Yn}):e===Yn&&(e=null),a.get(t,ve({cache:i,transformResponse:e},c)).finally(function(){u.totalPendingRequests--}).then(function(e){return i.put(t,e.data)},function(e){n||(e=hi("tpload","Failed to load template: {0} (HTTP status: {1} {2})",t,e.status,e.statusText),r(e));return o.reject(e)})}return u.totalPendingRequests=0,u}]}function di(){this.$get=["$rootScope","$browser","$location",function(t,n,r){var e={findBindings:function(e,n,r){var e=e.getElementsByClassName("ng-binding"),i=[];return me(e,function(t){var e=b.element(t).data("$binding");e&&me(e,function(e){r?new RegExp("(^|\\s)"+L(n)+"(\\s|\\||$)").test(e)&&i.push(t):-1!==e.indexOf(n)&&i.push(t)})}),i},findModels:function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i=t.lgSize&&f.unshift(c.splice(-t.lgSize,c.length).join(""));c.length>t.gSize;)f.unshift(c.splice(-t.gSize,c.length).join(""));c.length&&f.unshift(c.join("")),u=f.join(n),s.length&&(u+=r+s.join("")),i&&(u+="e+"+i)}return e<0&&!o?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}function Fi(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length=f},n.$observe("min",function(e){e!==l&&(f=m(e),l=e,r.$validate())})),(I(n.max)||n.ngMax)&&(h=n.max||s(n.ngMax)(e),p=m(h),r.$validators.max=function(e){return!g(e)||xe(p)||k(e)<=p},n.$observe("max",function(e){e!==h&&(p=m(e),h=e,r.$validate())}))}}function _a(e,n,t,r,i){var a=n[0];(r.$$hasNativeValidators=$e(a.validity))&&r.$parsers.push(function(e){var t=n.prop(f)||{};if(!t.badInput&&!t.typeMismatch)return e;r.$$parserName=i})}function Ra(t){t.$parsers.push(function(e){return t.$isEmpty(e)?null:da.test(e)?parseFloat(e):void(t.$$parserName="number")}),t.$formatters.push(function(e){if(!t.$isEmpty(e)){if(!O(e))throw so("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e})}function Ia(e){return I(e)&&!O(e)&&(e=parseFloat(e)),C(e)?void 0:e}function Aa(e){return(0|e)===e}function Ca(e){var t=e.toString(),n=t.indexOf(".");if(-1!==n)return t.length-n-1;if(-1=a})}}}];function qo(e,t,n){if(e){if(!(e=Se(e)?new RegExp("^"+e+"$"):e).test)throw $("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",t,e,Le(n));return e}}function Ko(e){e=w(e);return C(e)?-1:e}de.angular.bootstrap?de.console&&console.log("WARNING: Tried to load AngularJS more than once."):(fe||(Bo=U(),(t=xe(Bo)?de.jQuery:Bo?de[Bo]:void 0)&&t.fn.on?ve((ge=t).fn,{scope:Bt.scope,isolateScope:Bt.isolateScope,controller:Bt.controller,injector:Bt.injector,inheritedData:Bt.inheritedData}):ge=kt,Lo=ge.cleanData,ge.cleanData=function(e){for(var t,n,r=0;null!=(n=e[r]);r++)(t=(ge._data(n)||{}).events)&&t.$destroy&&ge(n).triggerHandler("$destroy");Lo(e)},b.element=ge,fe=!0),ve(b,{errorHandlingConfig:e,bootstrap:se,copy:H,extend:ve,merge:k,equals:Ee,element:ge,forEach:me,injector:un,noop:ke,bind:Fe,toJson:K,fromJson:W,identity:we,isUndefined:xe,isDefined:I,isString:Se,isFunction:Ie,isObject:$e,isNumber:O,isElement:B,isArray:_e,version:Ze,isDate:M,callbacks:{$$counter:0},getTestability:ce,reloadWithDebugInfo:ue,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:he,$$minErr:$,$$csp:N,$$encodeUriSegment:ee,$$encodeUriQuery:te,$$lowercase:S,$$stringify:Ve,$$uppercase:c}),(m=Ge(de))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:ti}),e.provider("$compile",In).directive({a:Qi,input:Ea,textarea:Ea,form:oa,script:To,select:Fo,option:Ho,ngBind:Fa,ngBindHtml:Ba,ngBindTemplate:La,ngClass:Na,ngClassEven:Va,ngClassOdd:Ua,ngCloak:za,ngController:qa,ngForm:sa,ngHide:Ro,ngIf:Ya,ngInclude:Xa,ngInit:Qa,ngNonBindable:mo,ngPluralize:ko,ngRef:xo,ngRepeat:$o,ngShow:_o,ngStyle:Io,ngSwitch:Ao,ngSwitchWhen:Co,ngSwitchDefault:Oo,ngOptions:bo,ngTransclude:Do,ngModel:co,ngList:Ga,ngChange:ja,pattern:Uo,ngPattern:Uo,required:No,ngRequired:No,minlength:zo,ngMinlength:zo,maxlength:Vo,ngMaxlength:Vo,ngValue:Ta,ngModelOptions:ho}).directive({ngInclude:Za,input:Da}).directive(ea).directive(Ka),e.provider({$anchorScroll:cn,$animate:kn,$animateCss:bn,$$animateJs:gn,$$animateQueue:mn,$$AnimateRunner:yn,$$animateAsyncRun:vn,$browser:xn,$cacheFactory:$n,$controller:Fn,$document:Ln,$$isDocumentHidden:Bn,$exceptionHandler:jn,$filter:Ri,$$forceReflow:Hn,$interpolate:ar,$interval:sr,$$intervalFactory:ur,$http:tr,$httpParamSerializer:Jn,$httpParamSerializerJQLike:Gn,$httpBackend:rr,$xhrFactory:nr,$jsonpCallbacks:cr,$location:Rr,$log:Ir,$parse:Wr,$rootScope:ei,$q:Jr,$$q:Gr,$sce:ui,$sceDelegate:si,$sniffer:ci,$$taskTrackerFactory:li,$templateCache:Sn,$templateRequest:pi,$$testability:di,$timeout:mi,$window:$i,$$rAF:Qr,$$jqLite:Wt,$$Map:Zt,$$cookieReader:_i})}]).info({angularVersion:"1.8.0"}),b.module("ngLocale",[],["$provide",function(e){var r="one",i="other";e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var n=0|e,t=function(e,t){var n=t;void 0===n&&(n=Math.min((t=e,-1==(r=(t+="").indexOf("."))?0:t.length-r-1),3));var r=Math.pow(10,n);return{v:n,f:(e*r|0)%r}}(e,t);return 1==n&&0==t.v?r:i}})}]),ge(function(){oe(de.document,se)}))}(window),window.angular.$$csp().noInlineStyle||window.angular.element(document.head).prepend(window.angular.element("