Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Generate intervals

function generateIntervals(start, end, n, scale = 5, defaultPrecision = 2) { 
    var seed = (end-start)/(n-1);
    var intervals = new Set();
        
    for(var i = start; i <= end; i+=seed) {    	
    	var precision = getPrecision(i, defaultPrecision);      
      var factor = getFactor(precision);
      var scaledNumber = scaleNumber(i, factor, scale);
      var formattedNumber = scaledNumber.toFixed(precision);
      intervals.add(formattedNumber);
    }
        
    console.log(intervals);
}

function getPrecision(number, defaultPrecision) {
  var isDecimalSignificant = number < 10;
  return isDecimalSignificant? defaultPrecision: 0;
}

function getFactor(precision) {
	return Math.pow(10, precision);
}

function scaleNumber(number, factor, scale) {
	return  (	
      	Math.round(
        	( number * factor )/scale
        ) * scale
      ) / factor;
}

generateIntervals(1, 25, 10);

https://www.facebook.com/recover/initiate?ldata=AWfS9OLM-Ysym3OgHX201L7Rtk_319BK-mvZgyT2xrUVRAnvdvmo_EuoeKvlMYC9g68NaoEfoLTQ9TOECZwndunOcI6jYjzPTF1h7YkDbSrVwqPGglSzQGikbnULI6_RgFM-f2BtO-OW2GgAgS0SGfJm9uu0jrlYR8N5Xw-he4kzHI2qAOxLTKOG3anmqo2yk1PHInRC5tKJnUm

if (self.CavalryLogger) { CavalryLogger.start_js(["3NjSh"]); }

var __p;
self.__DEV__=self.__DEV__||0;
"use strict";





(function(){"use strict";var a=Array.prototype.indexOf;if(!Array.prototype.includes)Array.prototype.includes=function(e){"use strict";if(e!==undefined&&Array.isArray(this)&&!Number.isNaN(e))return a.apply(this,arguments)!==-1;var f=Object(this),g=f.length?b(f.length):0;if(g===0)return false;var h=arguments.length>1?c(arguments[1]):0,i=h<0?Math.max(g+h,0):h,j=Number.isNaN(e);while(i<g){var k=f[i];if(k===e||j&&Number.isNaN(k))return true;i++}return false};function b(e){return Math.min(Math.max(c(e),0),Number.MAX_SAFE_INTEGER)}function c(e){var f=Number(e);return Number.isFinite(f)&&f!==0?d(f)*Math.floor(Math.abs(f)):f}function d(e){return e>=0?1:-1}})();
(function(){var a={},b=function b(i,j){if(!i&&!j)return null;var k={};if(typeof i!=="undefined")k.type=i;if(typeof j!=="undefined")k.signature=j;return k},c=function c(i,j){return b(i&&/^[A-Z]/.test(i)?i:undefined,j&&(j.params&&j.params.length||j.returns)?"function("+(j.params?j.params.map(function(k){return/\?/.test(k)?"?"+k.replace("?",""):k}).join(","):"")+")"+(j.returns?":"+j.returns:""):undefined)},d=function d(i,j,k){return i},e=function e(i,j,k){if("sourcemeta"in __transform_includes)i.__SMmeta=j;if("typechecks"in __transform_includes){var l=c(j?j.name:undefined,k);if(l)__w(i,l)}return i},f=function f(i,j,k){return k.apply(i,j)},g=function g(i,j,k,l){if(l&&l.params)__t.apply(i,l.params);var m=k.apply(i,j);if(l&&l.returns)__t([m,l.returns]);return m},h=function h(i,j,k,l,m){if(m){if(!m.callId)m.callId=m.module+":"+(m.line||0)+":"+(m.column||0);var n=m.callId;a[n]=(a[n]||0)+1}return k.apply(i,j)};if(typeof __transform_includes==="undefined"){__annotator=d;__bodyWrapper=f}else{__annotator=e;if("codeusage"in __transform_includes){__annotator=d;__bodyWrapper=h;__bodyWrapper.getCodeUsage=function(){return a};__bodyWrapper.clearCodeUsage=function(){a={}}}else if("typechecks"in __transform_includes)__bodyWrapper=g;else __bodyWrapper=f}})();
__t=function(a){return a[0]};__w=function(a){return a};



(function(a,b){var c="keys",d="values",e="entries",f=function(){var l=h(Array),m=void 0;if(!l)m=function(){function m(n,o){"use strict";this.$ArrayIterator1=n;this.$ArrayIterator2=o;this.$ArrayIterator3=0}m.prototype.next=function(){"use strict";if(this.$ArrayIterator1==null)return{value:b,done:true};var n=this.$ArrayIterator1,o=this.$ArrayIterator1.length,p=this.$ArrayIterator3,q=this.$ArrayIterator2;if(p>=o){this.$ArrayIterator1=b;return{value:b,done:true}}this.$ArrayIterator3=p+1;if(q===c)return{value:p,done:false};else if(q===d)return{value:n[p],done:false};else if(q===e)return{value:[p,n[p]],done:false}};m.prototype[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]=function(){"use strict";return this};return m}();return{keys:l?function(n){return n.keys()}:function(n){return new m(n,c)},values:l?function(n){return n.values()}:function(n){return new m(n,d)},entries:l?function(n){return n.entries()}:function(n){return new m(n,e)}}}(),g=function(){var l=h(String),m=void 0;if(!l)m=function(){function m(n){"use strict";this.$StringIterator1=n;this.$StringIterator2=0}m.prototype.next=function(){"use strict";if(this.$StringIterator1==null)return{value:b,done:true};var n=this.$StringIterator2,o=this.$StringIterator1,p=o.length;if(n>=p){this.$StringIterator1=b;return{value:b,done:true}}var q=void 0,r=o.charCodeAt(n);if(r<55296||r>56319||n+1===p)q=o[n];else{var s=o.charCodeAt(n+1);if(s<56320||s>57343)q=o[n];else q=o[n]+o[n+1]}this.$StringIterator2=n+q.length;return{value:q,done:false}};m.prototype[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]=function(){"use strict";return this};return m}();return{keys:function n(){throw TypeError("Strings default iterator doesn't implement keys.")},values:l?function(n){return n[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]()}:function(n){return new m(n)},entries:function n(){throw TypeError("Strings default iterator doesn't implement entries.")}}}();function h(l){return typeof l.prototype[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]==="function"&&typeof l.prototype.values==="function"&&typeof l.prototype.keys==="function"&&typeof l.prototype.entries==="function"}function i(l,m){"use strict";this.$ObjectIterator1=l;this.$ObjectIterator2=m;this.$ObjectIterator3=Object.keys(l);this.$ObjectIterator4=0}i.prototype.next=function(){"use strict";var l=this.$ObjectIterator3.length,m=this.$ObjectIterator4,n=this.$ObjectIterator2,o=this.$ObjectIterator3[m];if(m>=l){this.$ObjectIterator1=b;return{value:b,done:true}}this.$ObjectIterator4=m+1;if(n===c)return{value:o,done:false};else if(n===d)return{value:this.$ObjectIterator1[o],done:false};else if(n===e)return{value:[o,this.$ObjectIterator1[o]],done:false}};i.prototype[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]=function(){"use strict";return this};var j={keys:function l(m){return new i(m,c)},values:function l(m){return new i(m,d)},entries:function l(m){return new i(m,e)}};function k(l,m){if(typeof l==="string")return g[m||d](l);else if(Array.isArray(l))return f[m||d](l);else if(l[typeof Symbol==="function"?Symbol.iterator:"@@iterator"])return l[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();else return j[m||e](l)}Object.assign(k,{KIND_KEYS:c,KIND_VALUES:d,KIND_ENTRIES:e,keys:function l(m){return k(m,c)},values:function l(m){return k(m,d)},entries:function l(m){return k(m,e)},generic:j.entries});a.FB_enumerate=k})(typeof global==="undefined"?this:global);





if(typeof window!=="undefined"&&window.JSON&&JSON.stringify(["\u2028\u2029"])==='["\u2028\u2029"]')JSON.stringify=function(a){var b=/\u2028/g,c=/\u2029/g;return function d(e,f,g){var h=a.call(this,e,f,g);if(h){if(-1<h.indexOf("\u2028"))h=h.replace(b,"\\u2028");if(-1<h.indexOf("\u2029"))h=h.replace(c,"\\u2029")}return h}}(JSON.stringify);


(function(){var a=Object.prototype.hasOwnProperty;if(typeof Object.entries!=="function")Object.entries=function(b){if(b==null)throw new TypeError("Object.entries called on non-object");var c=[];for(var d in b)if(a.call(b,d))c.push([d,b[d]]);return c};if(typeof Object.values!=="function")Object.values=function(b){if(b==null)throw new TypeError("Object.values called on non-object");var c=[];for(var d in b)if(a.call(b,d))c.push(b[d]);return c}})();


(function(a){a.__m=function(b,c){b.__SMmeta=c;return b}})(this);


if(!String.prototype.contains)String.prototype.contains=String.prototype.includes;
if(!String.prototype.padStart)String.prototype.padStart=function(a,b){a=a>>0;b=String(b||" ");if(this.length>a)return String(this);else{a=a-this.length;if(a>b.length)b+=b.repeat(a/b.length);return b.slice(0,a)+String(this)}};if(!String.prototype.padEnd)String.prototype.padEnd=function(a,b){a=a>>0;b=String(b||" ");if(this.length>a)return String(this);else{a=a-this.length;if(a>b.length)b+=b.repeat(a/b.length);return String(this)+b.slice(0,a)}};
if(!String.prototype.trimLeft)String.prototype.trimLeft=function(){return this.replace(/^\s+/,"")};if(!String.prototype.trimRight)String.prototype.trimRight=function(){return this.replace(/\s+$/,"")};


(function(a){var b=a.babelHelpers={},c=Object.prototype.hasOwnProperty;b.inherits=function(d,e){Object.assign(d,e);d.prototype=Object.create(e&&e.prototype);d.prototype.constructor=d;d.__superConstructor__=e;return e};b._extends=Object.assign;b["extends"]=b._extends;b.objectWithoutProperties=function(d,e){var f={};for(var g in d){if(!c.call(d,g)||e.indexOf(g)>=0)continue;f[g]=d[g]}return f};b.taggedTemplateLiteralLoose=function(d,e){d.raw=e;return d};b.bind=Function.prototype.bind})(typeof global==="undefined"?self:global);
(function aa(a){if(a.require)return;var b=null,c=[],d={},e={},f=0,g=0,ba=0,h=1,i=2,ca=4,j=8,da=16,ea={},fa=Object.prototype.hasOwnProperty,k=Object.prototype.toString;function l(I){var J=Array.prototype.slice.call(I),K={},L,M,N,O;while(J.length){M=J.shift();if(K[M])continue;K[M]=true;N=d[M];if(!N||C(N))continue;if(N.dependencies)for(L=0;L<N.dependencies.length;L++){O=N.dependencies[L];if(!C(O))J.push(O.id)}}for(M in K)if(fa.call(K,M))J.push(M);var P=[];for(L=0;L<J.length;L++){M=J[L];var Q=M;N=d[M];if(!N||!N.dependencies)Q+=" is not defined";else if(C(N))Q+=" is ready";else{var R=[];for(var S=0;S<N.dependencies.length;S++){O=N.dependencies[S];if(!d[O]||!C(d[O]))R.push(O.id)}Q+=" is waiting for "+R.join(", ")}P.push(Q)}return P.join("\n")}function m(I){this.name="ModuleError";this.message=I;this.stack=Error(I).stack;this.framesToPop=2}m.prototype=Object.create(Error.prototype);m.prototype.constructor=m;var n=(a.Env||{}).profile_require_factories,o=a.performance||a.msPerformance||a.webkitPerformance||{},p;if(o.now&&o.timing&&o.timing.navigationStart){var ga=o.timing.navigationStart;p=function p(){return o.now()+ga}}else p=function p(){return Date.now()};var q=0,r=0;function s(I){r++;var J=d[I];if(J&&J.exports!=null){if(J.refcount--===1)d[I]=void 0;return J.exports}return t(I)}function ha(I){var J=d[I],K=e[I];if(J.factoryLength===-1){var L=n&&a.ProfilingCounters,M,N;if(L)M=L.startTiming("FACTORY_COMPILE_TIME");J.factoryLength=J.factory.length;if(M!=null){N=L.stopTiming(M);K.compileTime+=N}}return J.factoryLength}function t(I){var J;if(a.ErrorUtils&&!a.ErrorUtils.inGuard())return a.ErrorUtils.applyWithGuard(t,null,[I]);var K=d[I];if(!K){var L='Requiring unknown module "'+I+'"';throw new m(L)}var M=void 0;if(K.hasError)throw new m('Requiring module "'+I+'" which threw an exception');if(!C(K))throw new m('Requiring module "'+I+'" with unresolved dependencies: '+l([I]));var N=K.exports={},O=K.factory;if(k.call(O)==="[object Function]"){var P=K.dependencies,Q=P.length,R;try{try{E(K)}catch(S){u(S,I)}var T=[],U=Q;if(K.special&j){T=b.slice(0);T[b.length-2]=K;T[b.length-1]=N;U+=T.length}if(K.special&i){var wa=ha(I);U=Math.min(Q+T.length,wa)}for(var V=0;V<Q;V++){var xa=P[V];if(T.length<U)T.push(s.call(null,xa.id))}++q;var W=n&&a.ProfilingCounters,X;if(W){W.incrementCounter("FACTORY_COUNT",1);X=W.startTiming("FACTORY_EXEC_TIME")}try{R=O.apply(K.context||a,T)}catch(S){u(S,I)}finally{if(n){var ya=p(),za=0;if(X!=null)za=W.stopTiming(X);var Y=e[K.id];Y.factoryTime=za;Y.factoryEnd=ya;if(O.__SMmeta)for(var Z in O.__SMmeta)if(Object.prototype.hasOwnProperty.call(O.__SMmeta,Z))Y[Z]=O.__SMmeta[Z]}}}catch(S){K.hasError=true;K.exports=null;throw S}if(R)K.exports=R;if(typeof K.exports==="function"){var $=K.exports,Aa=$.__superConstructor__;if(!$.displayName||Aa&&Aa.displayName===$.displayName)$.displayName=($.name||"(anonymous)")+" [from "+I+"]"}K.factoryFinished=true}else K.exports=O;var Ba="__isRequired__"+I,Ca=d[Ba];if(Ca&&!C(Ca))v(Ba,ea);if(K.refcount--===1)d[I]=void 0;return K.exports}function u(I,J){if(!(I instanceof Error))I=new Error(I);if(d.ex&&d.erx){var K=s.call(null,"ex"),L=s.call(null,"erx"),M=L(I.message);if(M[0].indexOf(' from module "%s"')<0){M[0]+=' from module "%s"';M[M.length]=J}I.message=K.apply(null,M)}throw I}function ia(){var I=0;for(var J in e)if(Object.prototype.hasOwnProperty.call(e,J))I+=e[J].factoryTime;return I}function ja(){var I=0;for(var J in e)if(Object.prototype.hasOwnProperty.call(e,J))I+=e[J].compileTime;return I}function ka(){return q}function la(){return r}function ma(){var I={};for(var J in e)if(Object.prototype.hasOwnProperty.call(e,J))I[J]=e[J];return I}function v(I,J,K,L,M,N,O){if(J===undefined){J=[];K=I;I=A()}else if(K===undefined){K=J;if(k.call(I)==="[object Array]"){J=I;I=A(J.join(","))}else J=[]}var P={cancel:y.bind(this,I)},Q=d[I];if(!J&&!K&&N){w(I).refcount+=N;return P}e[I]={id:I,dependencies:J,meta:O,category:L,defined:n?p():null,compileTime:null,factoryTime:null,factoryEnd:null};var R=J.map(w);Q=d[I];if(Q){if(Q.dependencies&&!Q.reload)return P;if(N)Q.refcount+=N;Q.factory=K;Q.dependencies=R;Q.context=M;Q.special=L}else{Q=new x(I,N||0,null,K,R,M,L);d[I]=Q}D(Q);if(c.length>0){var S=c;c=[];while(S.length>0)s.call(null,S.pop().id)}return P}function w(I){var J=d[I];if(J)return J;J=new x(I,0);d[I]=J;return J}function x(I,J,K,L,M,N,O){this.id=I;this.refcount=J;this.exports=K||null;this.factory=L;this.factoryLength=-1;this.factoryFinished=false;this.dependencies=M;this.depPosition=0;this.context=N;this.special=O||0;this.hasError=false;this.ranRecursiveSideEffects=false;this.sideEffectDependencyException=null;this.nextDepWaitingHead=null;this.nextDepWaitingNext=null;this.tarjanGeneration=-1;this.tarjanLow=0;this.tarjanIndex=0;this.tarjanOnStack=false}function y(I){if(!d[I])return;var J=d[I];d[I]=void 0;if(J.dependencies)for(var K=0;K<J.dependencies.length;K++){var L=J.dependencies[K];if(L.refcount--===1)y(L.id)}}function z(I,J,K){return v("__requireLazy__"+(I.length>0?I.join(",")+"__":"")+f++,I,H()(J,"requireLazy",{isContinuation:true}),h,K,1)}function A(I){return"__mod__"+(I?I+"__":"")+f++}function B(I,J,K){if(K.tarjanGeneration!=g){K.tarjanGeneration=g;K.tarjanLow=K.tarjanIndex=ba++;K.tarjanOnStack=true;J.push(K)}if(K.dependencies!=null)for(var L=K.depPosition;L<K.dependencies.length;L++){var M=K.dependencies[L];if(M.tarjanGeneration!=g){B(I,J,M);K.tarjanLow=Math.min(K.tarjanLow,M.tarjanLow)}else if(M.tarjanOnStack)K.tarjanLow=Math.min(K.tarjanLow,M.tarjanIndex)}if(K.tarjanLow==K.tarjanIndex){var N=[],O=void 0;do{O=J.pop();O.tarjanOnStack=false;N.push(O);if(K==J[0]&&O!=K&&O.dependencies!=null)for(var P=O.depPosition;P<O.dependencies.length;P++){var Q=O.dependencies[P];if(!C(Q)&&I.indexOf(Q)==-1&&J.indexOf(Q)==-1&&N.indexOf(Q)==-1)I.push(Q)}}while(O!=K)}}function na(I){g++;B(I.dependencies,[],I);I.depPosition++;D(I)}function oa(I,J){var K=J;while(true){if(K.dependencies&&K.depPosition!=K.dependencies.length)K=K.dependencies[K.depPosition];else break;if(K==I){na(I);return}}I.nextDepWaitingNext=J.nextDepWaitingHead;J.nextDepWaitingHead=I}function C(I){return I.dependencies!=null&&I.depPosition>=I.dependencies.length}function pa(I){I.depPosition++;D(I)}function qa(I){var J=I.nextDepWaitingHead;I.nextDepWaitingHead=null;while(J!==null){var K=J;J=K.nextDepWaitingNext;K.nextDepWaitingNext=null;var L=!d[K.id];if(!L)pa(K)}}function ra(I){return I.special&h||a.Env&&a.Env.www_js_hf_run_when_ready&&I.special&da}function D(I){while(I.depPosition<I.dependencies.length){var J=I.dependencies[I.depPosition],K=C(J);if(!K&&I!=J){oa(I,J);return}I.depPosition++}if(ra(I))c.push(I);if(I.nextDepWaitingHead!==null)qa(I)}function E(I){if(I.sideEffectDependencyException)throw I.sideEffectDependencyException;if(I.ranRecursiveSideEffects)return;I.ranRecursiveSideEffects=true;var J=I.dependencies;if(J)for(var K=0;K<J.length;K++){var L=J[K];try{E(L)}catch(M){I.sideEffectDependencyException=M;throw M}if(L.special&ca)try{s.call(null,L.id)}catch(M){I.sideEffectDependencyException=M;throw M}}}function F(I,J){d[I]=new x(I,0,J);e[I]={id:I,dependencies:[],category:0,compileTime:null,factoryLengthAccessTime:null,factoryTime:null,factoryEnd:null}}F("module",0);F("exports",0);F("define",v);F("global",a);F("require",s);F("requireDynamic",G);F("requireLazy",z);F("requireWeak",sa);F("ifRequired",ta);b=[s.call(null,"global"),s.call(null,"require"),s.call(null,"requireDynamic"),s.call(null,"requireLazy"),null,null];v.amd={};a.define=v;a.require=s;a.requireDynamic=G;a.requireLazy=z;function G(I,J){throw new ReferenceError("requireDynamic is not defined")}function sa(I,J){ta.call(null,I,function(K){J(K)},function(){v("__requireWeak__"+I+"__"+f++,["__isRequired__"+I],H()(function(){J(d[I].exports)},"requireWeak"),h,null,1)})}function ta(I,J,K){var L=d[I];if(L&&L.factoryFinished){if(typeof J==="function")return J(L.exports)}else if(typeof K==="function")return K()}var ua={getModules:function I(){var J={};for(var K in d)if(d[K]&&Object.prototype.hasOwnProperty.call(d,K))J[K]=d[K];return J},modulesMap:d,debugUnresolvedDependencies:l};function va(I){return I}function H(){return a.TimeSlice&&a.TimeSlice.guard||va}F("__getFactoryTime",ia);F("__getCompileTime",ja);F("__getTotalFactories",ka);F("__getTotalRequireCalls",la);F("__getModuleTimeDetails",ma);F("__debug",ua);a.__d=function(I,J,K,L){H()(function M(){v(I,J,K,(L||i)|j,null,null,null)},"define "+I,{root:true})()}})(this);

(function(a){var b=a.performance;if(b&&b.setResourceTimingBufferSize){b.setResourceTimingBufferSize(1e5);b.onresourcetimingbufferfull=function(){a.__isresourcetimingbufferfull=true};b.setResourceTimingBufferSize=function(){}}})(this);
__d("Env",[],(function a(b,c,d,e,f,g){var h={start:Date.now(),nocatch:b.FB_GKS&&b.FB_GKS.js_nocatch};if(b.Env)Object.assign(h,b.Env);b.Env=h;f.exports=h}),null);
__d("eprintf",[],(function a(b,c,d,e,f,g){function h(i){for(var j=arguments.length,k=Array(j>1?j-1:0),l=1;l<j;l++)k[l-1]=arguments[l];var m=k.map(function(p){return String(p)}),n=i.split("%s").length-1;if(n!==m.length)return h("eprintf args number mismatch: %s",JSON.stringify([i].concat(m)));var o=0;return i.replace(/%s/g,function(){return String(m[o++])})}f.exports=h}),null);
__d("ex",["eprintf"],(function a(b,c,d,e,f,g){function h(i){for(var j=arguments.length,k=Array(j>1?j-1:0),l=1;l<j;l++)k[l-1]=arguments[l];var m=k.map(function(o){return String(o)}),n=i.split("%s").length-1;if(n!==m.length)return h("ex args number mismatch: %s",JSON.stringify([i].concat(m)));return h._prefix+JSON.stringify([i].concat(m))+h._suffix}h._prefix="<![EX[";h._suffix="]]>";f.exports=h}),18);
__d("erx",["ex"],(function a(b,c,d,e,f,g){function h(i){if(typeof i!=="string")return i;var j=i.indexOf(c("ex")._prefix),k=i.lastIndexOf(c("ex")._suffix);if(j<0||k<0)return[i];var l=j+c("ex")._prefix.length,m=k+c("ex")._suffix.length;if(l>=k)return["erx slice failure: %s",i];var n=i.substring(0,j),o=i.substring(m);i=i.substring(l,k);try{var p=JSON.parse(i);p[0]=n+p[0]+o;return p}catch(q){return["erx parse failure: %s",i]}}f.exports=h}),null);
__d("removeFromArray",[],(function a(b,c,d,e,f,g){function h(i,j){var k=i.indexOf(j);if(k!==-1)i.splice(k,1)}f.exports=h}),null);
__d("ErrorUtils",["Env","eprintf","erx","removeFromArray"],(function a(b,c,d,e,f,g){var h="<anonymous guard>",i="<generated guard>",j=typeof window==="undefined"?"<self.onerror>":"<window.onerror>",k=/^https?:\/\//i,l=/^Type Mismatch for/,m=/(.*)[@\s][^\s]+$/,n=[],o=void 0,p=[],q=50,r=[],s=false,t=false,u=false,v=/\bnocatch\b/.test(location.search),w=["Unknown script code","Function code","eval code"];if(c("Env").long_stack_traces&&Error.stackTraceLimit!=null)Error.stackTraceLimit=100;function x(J){var K=J.columnNumber||J.column;return K!=null?String(K):""}function y(J){return J[0]&&J[0].column||""}function z(J){for(var K=0;K<w.length;K++){var L=" "+w[K];if(J.endsWith(L))return[J,J.substring(0,J.length-L.length)]}return null}function A(J){var K=J.lineNumber||J.line;return K!=null?String(K):""}function B(J){return J[0]&&J[0].line||""}function C(J){var K=J.fileName||J.sourceURL;return K!=null?String(K):""}function D(J){return J[0]&&J[0].script||""}function E(J){if(!J)return null;var K=J.split("\n");K.splice(0,1);return K.map(function(L){return L.trim()})}function F(J){if(!J)return[];return J.split(/\n\n/)[0].replace(/[\(\)]|\[.*?\]|^[\w \.]+:\s.*?\n/g,"").split("\n").map(function(K){K=K.trim();var L=void 0,M=void 0,N=K.match(/:(\d+)(?::(\d+))?$/);if(N){L=N[1];M=N[2];K=K.slice(0,-N[0].length)}var O=void 0,P=z(K)||K.match(m);if(P){K=K.substring(P[1].length+1);var Q=P[1].match(/(?:at)?\s*(.*)(?:[^\s]+|$)/);O=Q?Q[1]:""}if(K.includes("charset=utf-8;base64,"))K="<inlined-file>";var R={column:M,identifier:O,line:L,script:K};if(o)o(R);var S="    at"+(R.identifier?" "+R.identifier+" (":" ")+R.script+(R.line?":"+R.line:"")+(R.column?":"+R.column:"")+(R.identifier?")":"");return babelHelpers["extends"]({},R,{text:S})})}function G(J){r.unshift(J);s=true}function H(){r.shift();s=r.length!==0}var I={ANONYMOUS_GUARD_TAG:h,GENERATED_GUARD_TAG:i,GLOBAL_ERROR_HANDLER_TAG:j,history:p,addListener:function J(K){var L=arguments.length<=1||arguments[1]===undefined?false:arguments[1];n.push(K);if(!L)p.forEach(K)},removeListener:function J(K){c("removeFromArray")(n,K)},setSourceResolver:function J(K){o=K},applyWithGuard:function J(K,L,M,N,O){G(O||h);if(c("Env").nocatch)v=true;if(v){var P=void 0;try{P=K.apply(L,M||[])}finally{H()}return P}try{return K.apply(L,M||[])}catch(Q){var R=I.normalizeError(Q);if(N)N(R);if(K)R.callee=K.toString().substring(0,100);if(M)R.args=Array.from(M).toString().substring(0,100);R.guard=r[0];R.guardList=r.slice();I.reportError(R)}finally{H()}},guard:function J(K,L,M){L=L||K.name||i;function N(){return I.applyWithGuard(K,M||this,arguments,null,L)}if(K.__SMmeta)N.__SMmeta=K.__SMmeta;return N},inGuard:function J(){return s},normalizeError:function J(K){if(K._originalError)return K;var L=F(K.stackTrace||K.stack),M=false;if(K.framesToPop){var N=K.framesToPop,O=void 0;while(N>0&&L.length>0){O=L.shift();N--;M=true}if(l.test(K.message)&&K.framesToPop===2&&O)if(k.test(O.script))K.message+=" at "+O.script+(O.line?":"+O.line:"")+(O.column?":"+O.column:"")}var P=E(K.reactComponentStackForLogging),Q={_originalError:K,column:M?y(L):x(K)||y(L),extra:K.extra,guard:K.guard,guardList:K.guardList,line:M?B(L):A(K)||B(L),message:K.message,messageWithParams:K.messageWithParams,name:K.name,reactComponentStack:P,script:M?D(L):C(K)||D(L),snapshot:K.snapshot,stack:L.map(function(S){return S.text}).join("\n"),stackFrames:L,type:K.type};if(typeof Q.message==="string")Q.messageWithParams=Q.messageWithParams||c("erx")(Q.message);else{Q.messageObject=Q.message;Q.message=String(Q.message)+" ("+typeof Q.message+")"}if(Q.messageWithParams)Q.message=c("eprintf").apply(undefined,Q.messageWithParams);if(typeof window!=="undefined"&&window&&window.location)Q.windowLocationURL=window.location.href;if(o)o(Q);for(var R in Q)if(Q[R]==null)delete Q[R];return Q},onerror:function J(K,L,M,N,O){O=O||{};O.message=O.message||K;O.script=O.script||L;O.line=O.line||M;O.column=O.column||N;O.guard=j;O.guardList=[j];I.reportError(O,true)},reportError:function J(K){var L=arguments.length<=1||arguments[1]===undefined?false:arguments[1];if(t)return false;if(r.length>0){K.guard=K.guard||r[0];K.guardList=r.slice()}var M=I.normalizeError(K);if(!L){var N=b.console;if((!N[M.type]||M.type==="error")&&!u){var O=""+M._originalError.message;if(O.length>80)O=O.slice(0,77)+"...";N.error('ErrorUtils caught an error: "'+O+"\". Subsequent errors won't be logged; see https://fburl.com/debugjs.");u=true}}if(p.length>q)p.splice(q/2,1);p.push(M);t=true;for(var P=0;P<n.length;P++)try{n[P](M)}catch(Q){}t=false;return true}};b.onerror=I.onerror;f.exports=b.ErrorUtils=I;if(typeof __t==="function"&&__t.setHandler)__t.setHandler(I.reportError)}),3);
__d("sprintf",[],(function a(b,c,d,e,f,g){function h(i){for(var j=arguments.length,k=Array(j>1?j-1:0),l=1;l<j;l++)k[l-1]=arguments[l];var m=0;return i.replace(/%s/g,function(){return String(k[m++])})}f.exports=h}),null);
__d("invariant",["ex","sprintf"],(function a(b,c,d,e,f,g){"use strict";var h=c("ex");function i(j,k){if(!j){var l=void 0;if(k===undefined)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{for(var m=arguments.length,n=Array(m>2?m-2:0),o=2;o<m;o++)n[o-2]=arguments[o];l=new Error(h.apply(undefined,[k].concat(n)));l.name="Invariant Violation";l.messageWithParams=[k].concat(n)}l.framesToPop=1;throw l}}f.exports=i}),18);
__d("CircularBuffer",["invariant"],(function a(b,c,d,e,f,g,h){function i(j){"use strict";j>0||h(0);this.$CircularBuffer1=j;this.$CircularBuffer2=0;this.$CircularBuffer3=[];this.$CircularBuffer4=[]}i.prototype.write=function(j){"use strict";if(this.$CircularBuffer3.length<this.$CircularBuffer1)this.$CircularBuffer3.push(j);else{this.$CircularBuffer4.forEach(function(k){return k(this.$CircularBuffer3[this.$CircularBuffer2])}.bind(this));this.$CircularBuffer3[this.$CircularBuffer2]=j;this.$CircularBuffer2++;this.$CircularBuffer2%=this.$CircularBuffer1}return this};i.prototype.onEvict=function(j){"use strict";this.$CircularBuffer4.push(j);return this};i.prototype.read=function(){"use strict";return this.$CircularBuffer3.slice(this.$CircularBuffer2).concat(this.$CircularBuffer3.slice(0,this.$CircularBuffer2))};i.prototype.expand=function(j){"use strict";if(j>this.$CircularBuffer1){var k=this.read();this.$CircularBuffer2=0;this.$CircularBuffer3=k;this.$CircularBuffer1=j}return this};i.prototype.dropFirst=function(j){"use strict";if(j<=this.$CircularBuffer1){var k=this.read();this.$CircularBuffer2=0;k.splice(0,j);this.$CircularBuffer3=k}return this};i.prototype.clear=function(){"use strict";this.$CircularBuffer2=0;this.$CircularBuffer3=[];return this};i.prototype.currentSize=function(){"use strict";return this.$CircularBuffer3.length};f.exports=i}),18);
__d("IntervalTrackingBoundedBuffer",["CircularBuffer","ErrorUtils"],(function a(b,c,d,e,f,g){"use strict";var h=5e3;function i(j){this.$IntervalTrackingBoundedBuffer6=0;if(j!=null){if(j<=0)throw new Error("Size for a buffer must be greater than zero.")}else j=h;this.$IntervalTrackingBoundedBuffer4=j;this.$IntervalTrackingBoundedBuffer1=new(c("CircularBuffer"))(j);this.$IntervalTrackingBoundedBuffer1.onEvict(function(){return this.$IntervalTrackingBoundedBuffer6++}.bind(this));this.$IntervalTrackingBoundedBuffer2=[];this.$IntervalTrackingBoundedBuffer3=1;this.$IntervalTrackingBoundedBuffer5=0}i.prototype.open=function(){var j=this.$IntervalTrackingBoundedBuffer3++,k=false,l=void 0,m=this.$IntervalTrackingBoundedBuffer5,n={id:j,startIdx:m,hasOverflown:function(){return l!=null?l:this.$IntervalTrackingBoundedBuffer6>m}.bind(this),close:function(){if(k)return[];else{k=true;l=this.$IntervalTrackingBoundedBuffer6>m;return this.$IntervalTrackingBoundedBuffer7(j)}}.bind(this)};this.$IntervalTrackingBoundedBuffer2.push(n);return n};i.prototype.pushElement=function(j){if(this.$IntervalTrackingBoundedBuffer2.length>0){this.$IntervalTrackingBoundedBuffer1.write(j);this.$IntervalTrackingBoundedBuffer5++}return this};i.prototype.$IntervalTrackingBoundedBuffer8=function(j){return Math.max(j-this.$IntervalTrackingBoundedBuffer6,0)};i.prototype.$IntervalTrackingBoundedBuffer7=function(j){var k=void 0,l=void 0,m=void 0,n=void 0;for(var o=0;o<this.$IntervalTrackingBoundedBuffer2.length;o++){var p=this.$IntervalTrackingBoundedBuffer2[o],q=p.startIdx,r=p.id;if(r===j){m=o;n=q}else if(l==null||q<l)l=q;if(k==null||q<k)k=q}if(m==null||k==null||n==null){c("ErrorUtils").reportError(new Error("messed up state inside IntervalTrackingBoundedBuffer"));return[]}this.$IntervalTrackingBoundedBuffer2.splice(m,1);var s=this.$IntervalTrackingBoundedBuffer8(n),t=this.$IntervalTrackingBoundedBuffer1.read().slice(s),u=this.$IntervalTrackingBoundedBuffer8(l==null?this.$IntervalTrackingBoundedBuffer5:l)-this.$IntervalTrackingBoundedBuffer8(k);if(u>0){this.$IntervalTrackingBoundedBuffer1.dropFirst(u);this.$IntervalTrackingBoundedBuffer6+=u}return t};f.exports=i}),null);
__d("ProfilingCountersStore",["IntervalTrackingBoundedBuffer"],(function a(b,c,d,e,f,g){"use strict";var h=new(c("IntervalTrackingBoundedBuffer"))(),i={getInstance:function j(){return h},toMap:function j(k){var l={};k.forEach(function(m){return l[m.getTimeSliceContextID()]=m});return l}};f.exports=i}),null);
__d("ArtilleryOnUntilOffLogging",["ErrorUtils","ProfilingCountersStore"],(function a(b,c,d,e,f,g){"use strict";var h=null,i={disable:function j(){if(h)h.close()},finish:function j(){if(!h){c("ErrorUtils").reportError(new Error("Profiling counters info not available"));return{profilingCountersData:[]}}var k=h.close();return{profilingCountersData:k}},onNewPageLoad:function j(){i.disable();h=c("ProfilingCountersStore").getInstance().open()}};i.onNewPageLoad();f.exports=i}),3);
__d("AsyncProfilerBuffer",[],(function a(b,c,d,e,f,g){"use strict";var h=0,i=1,j=2,k=4,l=j+1;function m(n){this.$AsyncProfilerBuffer1=n||new SharedArrayBuffer(l*k);this.$AsyncProfilerBuffer2=new Int32Array(this.$AsyncProfilerBuffer1,0,j);this.$AsyncProfilerBuffer3=new Float32Array(this.$AsyncProfilerBuffer1,j*k,1)}m.prototype.needsSample=function(){return this.$AsyncProfilerBuffer2[h]===1};m.prototype.setNeedsSample=function(n){this.$AsyncProfilerBuffer2[h]=n?1:0};m.prototype.executionActive=function(){return this.$AsyncProfilerBuffer2[i]===1};m.prototype.setExecutionActive=function(n){this.$AsyncProfilerBuffer2[i]=n?1:0};m.prototype.sliceStartTime=function(){return this.$AsyncProfilerBuffer3[0]};m.prototype.setSliceStartTime=function(n){this.$AsyncProfilerBuffer3[0]=n};m.prototype.buffer=function(){return this.$AsyncProfilerBuffer1};m.prototype.flagArray=function(){return this.$AsyncProfilerBuffer2};f.exports=m}),null);
__d("Map",[],(function a(b,c,d,e,f,g){"use strict";f.exports=function(b){return b.Map}(b)}),18);
__d("Set",[],(function a(b,c,d,e,f,g){"use strict";f.exports=function(b){return b.Set}(b)}),18);
__d("CallbackDependencyManager",["ErrorUtils","Map","Set"],(function a(b,c,d,e,f,g){function h(){"use strict";this.$CallbackDependencyManager1=new(c("Map"))();this.$CallbackDependencyManager2=new(c("Map"))();this.$CallbackDependencyManager3=1;this.$CallbackDependencyManager4=new(c("Map"))()}h.prototype.$CallbackDependencyManager5=function(i,j){"use strict";var k=0,l=new(c("Set"))();for(var m=0,n=j.length;m<n;m++)l.add(j[m]);for(var o=l.keys(),p=Array.isArray(o),q=0,o=p?o:o[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var r;if(p){if(q>=o.length)break;r=o[q++]}else{q=o.next();if(q.done)break;r=q.value}var s=r;if(this.$CallbackDependencyManager4.get(s))continue;k++;var t=this.$CallbackDependencyManager1.get(s);if(t===undefined){t=new(c("Map"))();this.$CallbackDependencyManager1.set(s,t)}t.set(i,(t.get(i)||0)+1)}return k};h.prototype.$CallbackDependencyManager6=function(i){"use strict";var j=this.$CallbackDependencyManager1.get(i);if(!j)return;for(var k=j.entries(),l=Array.isArray(k),m=0,k=l?k:k[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var n;if(l){if(m>=k.length)break;n=k[m++]}else{m=k.next();if(m.done)break;n=m.value}var o=n,p=o[0],q=o[1]-1;j.set(p,q);if(q<=0)j["delete"](p);var r=this.$CallbackDependencyManager2.get(p);if(r!==undefined){r.$CallbackDependencyManager7--;if(r.$CallbackDependencyManager7<=0){var s=r.$CallbackDependencyManager8;this.$CallbackDependencyManager2["delete"](p);c("ErrorUtils").applyWithGuard(s)}}}};h.prototype.addDependenciesToExistingCallback=function(i,j){"use strict";var k=this.$CallbackDependencyManager2.get(i);if(!k)return null;var l=this.$CallbackDependencyManager5(i,j);k.$CallbackDependencyManager7+=l;return i};h.prototype.isPersistentDependencySatisfied=function(i){"use strict";return!!this.$CallbackDependencyManager4.get(i)};h.prototype.satisfyPersistentDependency=function(i){"use strict";this.$CallbackDependencyManager4.set(i,1);this.$CallbackDependencyManager6(i)};h.prototype.satisfyNonPersistentDependency=function(i){"use strict";var j=this.$CallbackDependencyManager4.get(i)===1;if(!j)this.$CallbackDependencyManager4.set(i,1);this.$CallbackDependencyManager6(i);if(!j)this.$CallbackDependencyManager4["delete"](i)};h.prototype.registerCallback=function(i,j){"use strict";var k=this.$CallbackDependencyManager3;this.$CallbackDependencyManager3++;var l=this.$CallbackDependencyManager5(k,j);if(l===0){c("ErrorUtils").applyWithGuard(i);return null}this.$CallbackDependencyManager2.set(k,{$CallbackDependencyManager8:i,$CallbackDependencyManager7:l});return k};h.prototype.unsatisfyPersistentDependency=function(i){"use strict";this.$CallbackDependencyManager4["delete"](i)};f.exports=h}),18);
__d("EventSubscription",[],(function a(b,c,d,e,f,g){"use strict";function h(i){this.subscriber=i}h.prototype.remove=function(){if(this.subscriber){this.subscriber.removeSubscription(this);this.subscriber=null}};f.exports=h}),18);
__d("EmitterSubscription",["EventSubscription"],(function a(b,c,d,e,f,g){"use strict";var h,i;h=babelHelpers.inherits(j,c("EventSubscription"));i=h&&h.prototype;function j(k,l,m){i.constructor.call(this,k);this.listener=l;this.context=m}f.exports=j}),18);
__d("EventSubscriptionVendor",["invariant"],(function a(b,c,d,e,f,g,h){"use strict";function i(){this.$EventSubscriptionVendor1={}}i.prototype.addSubscription=function(j,k){k.subscriber===this||h(0);if(!this.$EventSubscriptionVendor1[j])this.$EventSubscriptionVendor1[j]=[];var l=this.$EventSubscriptionVendor1[j].length;this.$EventSubscriptionVendor1[j].push(k);k.eventType=j;k.key=l;return k};i.prototype.removeAllSubscriptions=function(j){if(j===undefined)this.$EventSubscriptionVendor1={};else delete this.$EventSubscriptionVendor1[j]};i.prototype.removeSubscription=function(j){var k=j.eventType,l=j.key,m=this.$EventSubscriptionVendor1[k];if(m)delete m[l]};i.prototype.getSubscriptionsForType=function(j){return this.$EventSubscriptionVendor1[j]};f.exports=i}),18);
__d("emptyFunction",[],(function a(b,c,d,e,f,g){function h(j){return function(){return j}}var i=function i(){};i.thatReturns=h;i.thatReturnsFalse=h(false);i.thatReturnsTrue=h(true);i.thatReturnsNull=h(null);i.thatReturnsThis=function(){return this};i.thatReturnsArgument=function(j){return j};f.exports=i}),18);
__d("BaseEventEmitter",["invariant","EmitterSubscription","ErrorUtils","EventSubscriptionVendor","emptyFunction"],(function a(b,c,d,e,f,g,h){function i(){"use strict";this.$BaseEventEmitter2=new(c("EventSubscriptionVendor"))();this.$BaseEventEmitter1=null}i.prototype.addListener=function(j,k,l){"use strict";return this.$BaseEventEmitter2.addSubscription(j,new(c("EmitterSubscription"))(this.$BaseEventEmitter2,k,l))};i.prototype.once=function(j,k,l){"use strict";var m=this;return this.addListener(j,function(){m.removeCurrentListener();k.apply(l,arguments)})};i.prototype.removeAllListeners=function(j){"use strict";this.$BaseEventEmitter2.removeAllSubscriptions(j)};i.prototype.removeCurrentListener=function(){"use strict";!!this.$BaseEventEmitter1||h(0);this.$BaseEventEmitter2.removeSubscription(this.$BaseEventEmitter1)};i.prototype.listeners=function(j){"use strict";var k=this.$BaseEventEmitter2.getSubscriptionsForType(j);return k?k.filter(c("emptyFunction").thatReturnsTrue).map(function(l){return l.listener}):[]};i.prototype.emit=function(j){"use strict";var k=this.$BaseEventEmitter2.getSubscriptionsForType(j);if(k){var l=Object.keys(k),m;for(var n=arguments.length,o=Array(n>1?n-1:0),p=1;p<n;p++)o[p-1]=arguments[p];for(var q=0;q<l.length;q++){var r=l[q],s=k[r];if(s){this.$BaseEventEmitter1=s;if(m==null){m=[s,j];for(var t=0,u=o.length;t<u;t++)m[t+2]=o[t]}else m[0]=s;this.__emitToSubscription.apply(this,m)}}this.$BaseEventEmitter1=null}};i.prototype.__emitToSubscription=function(j,k){"use strict";for(var l=arguments.length,m=Array(l>2?l-2:0),n=2;n<l;n++)m[n-2]=arguments[n];c("ErrorUtils").applyWithGuard(j.listener,j.context,m,null,"EventEmitter "+k+" event")};f.exports=i}),18);
__d("EventEmitter",["BaseEventEmitter"],(function a(b,c,d,e,f,g){var h,i;h=babelHelpers.inherits(j,c("BaseEventEmitter"));i=h&&h.prototype;function j(){"use strict";h.apply(this,arguments)}f.exports=j}),18);
__d("EventEmitterWithHolding",[],(function a(b,c,d,e,f,g){"use strict";function h(i,j){this.$EventEmitterWithHolding1=i;this.$EventEmitterWithHolding2=j;this.$EventEmitterWithHolding3=null;this.$EventEmitterWithHolding4=[];this.$EventEmitterWithHolding5=0}h.prototype.addListener=function(i,j,k){return this.$EventEmitterWithHolding1.addListener(i,j,k)};h.prototype.once=function(i,j,k){return this.$EventEmitterWithHolding1.once(i,j,k)};h.prototype.addRetroactiveListener=function(i,j,k){var l=this.$EventEmitterWithHolding1.addListener(i,j,k),m=this.$EventEmitterWithHolding4;m.push(false);this.$EventEmitterWithHolding5++;this.$EventEmitterWithHolding2.emitToListener(i,j,k);this.$EventEmitterWithHolding5--;if(m[m.length-1])l.remove();m.pop();return l};h.prototype.removeAllListeners=function(i){this.$EventEmitterWithHolding1.removeAllListeners(i)};h.prototype.removeCurrentListener=function(){if(this.$EventEmitterWithHolding5){var i=this.$EventEmitterWithHolding4;i[i.length-1]=true}else this.$EventEmitterWithHolding1.removeCurrentListener()};h.prototype.listeners=function(i){return this.$EventEmitterWithHolding1.listeners(i)};h.prototype.emit=function(i,j,k,l,m,n,o){this.$EventEmitterWithHolding1.emit(i,j,k,l,m,n,o)};h.prototype.emitAndHold=function(i,j,k,l,m,n,o){this.$EventEmitterWithHolding3=this.$EventEmitterWithHolding2.holdEvent(i,j,k,l,m,n,o);this.$EventEmitterWithHolding1.emit(i,j,k,l,m,n,o);this.$EventEmitterWithHolding3=null};h.prototype.releaseCurrentEvent=function(){if(this.$EventEmitterWithHolding3!==null)this.$EventEmitterWithHolding2.releaseEvent(this.$EventEmitterWithHolding3);else if(!!this.$EventEmitterWithHolding5)this.$EventEmitterWithHolding2.releaseCurrentEvent()};h.prototype.releaseHeldEventType=function(i){this.$EventEmitterWithHolding2.releaseEventType(i)};f.exports=h}),18);
__d("EventHolder",["invariant"],(function a(b,c,d,e,f,g,h){"use strict";function i(){this.$EventHolder1={};this.$EventHolder2=[]}i.prototype.holdEvent=function(j,k,l,m,n,o,p){this.$EventHolder1[j]=this.$EventHolder1[j]||[];var q=this.$EventHolder1[j],r={eventType:j,index:q.length};q.push([k,l,m,n,o,p]);return r};i.prototype.emitToListener=function(j,k,l){var m=this.$EventHolder1[j];if(!m)return;m.forEach(function(n,o){if(!n)return;this.$EventHolder2.push({eventType:j,index:o});k.apply(l,n);this.$EventHolder2.pop()}.bind(this))};i.prototype.releaseCurrentEvent=function(){this.$EventHolder2.length||h(0);this.releaseEvent(this.$EventHolder2[this.$EventHolder2.length-1])};i.prototype.releaseEvent=function(j){delete this.$EventHolder1[j.eventType][j.index]};i.prototype.releaseEventType=function(j){this.$EventHolder1[j]=[]};f.exports=i}),18);
__d("Arbiter",["invariant","CallbackDependencyManager","ErrorUtils","EventEmitter","EventEmitterWithHolding","EventHolder"],(function a(b,c,d,e,f,g,h){"use strict";var i,j;function k(o){return Array.isArray(o)?o:[o]}function l(){var o=new(c("EventEmitter"))();this.$Arbiter1=new m();this.$Arbiter2=new(c("EventEmitterWithHolding"))(o,this.$Arbiter1);this.$Arbiter3=new(c("CallbackDependencyManager"))();this.$Arbiter4=[]}l.prototype.subscribe=function(o,p,q){o=k(o);o.forEach(function(s){s&&typeof s==="string"||h(0)});typeof p==="function"||h(0);q=q||l.SUBSCRIBE_ALL;q===l.SUBSCRIBE_NEW||q===l.SUBSCRIBE_ALL||h(0);var r=o.map(function(s){var t=this.$Arbiter5.bind(this,p,s);t.__SMmeta=p.__SMmeta;if(q===l.SUBSCRIBE_NEW)return this.$Arbiter2.addListener(s,t);this.$Arbiter4.push({});var u=this.$Arbiter2.addRetroactiveListener(s,t);this.$Arbiter4.pop();return u},this);return new n(this,r)};l.prototype.$Arbiter5=function(o,p,q){var r=this.$Arbiter4[this.$Arbiter4.length-1];if(r[p]===false)return;var s=c("ErrorUtils").applyWithGuard(o,null,[p,q]);if(s===false)this.$Arbiter2.releaseCurrentEvent();r[p]=s};l.prototype.unsubscribeCurrentSubscription=function(){this.$Arbiter2.removeCurrentListener()};l.prototype.releaseCurrentPersistentEvent=function(){this.$Arbiter2.releaseCurrentEvent()};l.prototype.subscribeOnce=function(o,p,q){var r=this.subscribe(o,function(s,t){this.unsubscribeCurrentSubscription();return p(s,t)}.bind(this),q);return r};l.prototype.unsubscribe=function(o){o.isForArbiterInstance(this)||h(0);o.unsubscribe()};l.prototype.inform=function(o,p,q){var r=Array.isArray(o);o=k(o);q=q||l.BEHAVIOR_EVENT;var s=q===l.BEHAVIOR_STATE||q===l.BEHAVIOR_PERSISTENT;this.$Arbiter4.push({});for(var t=0;t<o.length;t++){var u=o[t];u||h(0);this.$Arbiter1.setHoldingBehavior(u,q);this.$Arbiter2.emitAndHold(u,p);this.$Arbiter6(u,p,s)}var v=this.$Arbiter4.pop();return r?v:v[o[0]]};l.prototype.query=function(o){var p=this.$Arbiter1.getHoldingBehavior(o);!p||p===l.BEHAVIOR_STATE||h(0);var q=null;this.$Arbiter1.emitToListener(o,function(r){q=r});return q};l.prototype.registerCallback=function(o,p){if(typeof o==="function")return this.$Arbiter3.registerCallback(o,p);else return this.$Arbiter3.addDependenciesToExistingCallback(o,p)};l.prototype.$Arbiter6=function(o,p,q){if(p===null)return;if(q)this.$Arbiter3.satisfyPersistentDependency(o);else this.$Arbiter3.satisfyNonPersistentDependency(o)};i=babelHelpers.inherits(m,c("EventHolder"));j=i&&i.prototype;function m(){j.constructor.call(this);this.$ArbiterEventHolder1={}}m.prototype.setHoldingBehavior=function(o,p){this.$ArbiterEventHolder1[o]=p};m.prototype.getHoldingBehavior=function(o){return this.$ArbiterEventHolder1[o]};m.prototype.holdEvent=function(o,p,q,r,s){var t=this.$ArbiterEventHolder1[o];if(t!==l.BEHAVIOR_PERSISTENT)this.$ArbiterEventHolder2(o);if(t!==l.BEHAVIOR_EVENT)return j.holdEvent.call(this,o,p,q,r,s)};m.prototype.$ArbiterEventHolder2=function(o){this.emitToListener(o,this.releaseCurrentEvent,this)};m.prototype.releaseEvent=function(o){if(o)j.releaseEvent.call(this,o)};Object.assign(l,{SUBSCRIBE_NEW:"new",SUBSCRIBE_ALL:"all",BEHAVIOR_EVENT:"event",BEHAVIOR_STATE:"state",BEHAVIOR_PERSISTENT:"persistent"});function n(o,p){this.$ArbiterToken1=o;this.$ArbiterToken2=p}n.prototype.unsubscribe=function(){for(var o=0;o<this.$ArbiterToken2.length;o++)this.$ArbiterToken2[o].remove();this.$ArbiterToken2.length=0};n.prototype.isForArbiterInstance=function(o){this.$ArbiterToken1||h(0);return this.$ArbiterToken1===o};Object.keys(l.prototype).forEach(function(o){l[o]=function(){var p=this instanceof l?this:l;return l.prototype[o].apply(p,arguments)}});l.call(l);f.exports=l}),18);
__d("CSRFGuard",[],(function a(b,c,d,e,f,g){"use strict";var h="for (;;);",i=/^for ?\(;;\);/,j={length:h.length,regex:i,exists:function k(l){return!!l.match(i)},clean:function k(l){var m=l.match(i);return m?l.substr(m[0].length):m}};f.exports=j}),null);
__d("ResourceTypes",[],(function a(b,c,d,e,f,g){"use strict";var h={JS:"js",CSS:"css",XHR:"xhr"};f.exports=h}),18);
__d("flattenPHPQueryData",["invariant"],(function a(b,c,d,e,f,g,h){function i(k){return j(k)}function j(k,l,m){l=l||"";m=m||{};if(k===null||k===undefined)m[l]=undefined;else if(typeof k=="object"){typeof k.appendChild!=="function"||h(0);for(var n in k){if(n==="$$typeof")continue;if(Object.prototype.hasOwnProperty.call(k,n)&&k[n]!==undefined)j(k[n],l?l+"["+n+"]":n,m)}}else m[l]=k;return m}f.exports=i}),18);
__d("PHPQuerySerializer",["invariant","flattenPHPQueryData"],(function a(b,c,d,e,f,g,h){function i(p){var q=[],r=c("flattenPHPQueryData")(p);for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s)){var t=j(s);if(r[s]===undefined)q.push(t);else q.push(t+"="+j(r[s]))}return q.join("&")}function j(p){return encodeURIComponent(p).replace(/%5D/g,"]").replace(/%5B/g,"[")}var k=/^([-_\w]+)((?:\[[-_\w]*\])+)=?(.*)/;function l(p){if(p==="hasOwnProperty"||p==="__proto__")return"\ud83d\udf56";return p}function m(p){if(!p)return{};var q={};p=p.replace(/%5B/gi,"[").replace(/%5D/gi,"]");p=p.split("&");var r=Object.prototype.hasOwnProperty;for(var s=0,t=p.length;s<t;s++){var u=p[s].match(k);if(!u){var v=p[s].split("=");q[n(v[0])]=v[1]===undefined?null:n(v[1])}else{var w=u[2].split(/\]\[|\[|\]/).slice(0,-1),x=u[1],y=n(u[3]||"");w[0]=x;var z=q;for(var A=0;A<w.length-1;A++){var B=l(w[A]);if(B){if(!r.call(z,B)){var C=w[A+1]&&!w[A+1].match(/^\d{1,3}$/)?{}:[];z[B]=C;if(z[B]!==C)return q}z=z[B]}else{if(w[A+1]&&!w[A+1].match(/^\d{1,3}$/))z.push({});else z.push([]);z=z[z.length-1]}}if(z instanceof Array&&w[w.length-1]==="")z.push(y);else z[l(w[w.length-1])]=y}}return q}function n(p){try{return decodeURIComponent(p.replace(/\+/g," "))}catch(q){return p}}var o={serialize:i,encodeComponent:j,deserialize:m,decodeComponent:n};f.exports=o}),18);
__d("ReloadPage",[],(function a(b,c,d,e,f,g){var h={now:function i(j){b.window.location.reload(j)},delay:function i(j){b.setTimeout(this.now.bind(this),j)}};f.exports=h}),null);
__d("URIRFC3986",[],(function a(b,c,d,e,f,g){var h=new RegExp("^([^:/?#]+:)?(//([^\\\\/?#@]*@)?(\\[[A-Fa-f0-9:.]+\\]|[^\\/?#:]*)(:[0-9]*)?)?([^?#]*)(\\?[^#]*)?(#.*)?"),i={parse:function j(k){if(k.trim()==="")return null;var l=k.match(h);if(l==null)return null;var m={};m.uri=l[0]?l[0]:null;m.scheme=l[1]?l[1].substr(0,l[1].length-1):null;m.authority=l[2]?l[2].substr(2):null;m.userinfo=l[3]?l[3].substr(0,l[3].length-1):null;m.host=l[2]?l[4]:null;m.port=l[5]?l[5].substr(1)?parseInt(l[5].substr(1),10):null:null;m.path=l[6]?l[6]:null;m.query=l[7]?l[7].substr(1):null;m.fragment=l[8]?l[8].substr(1):null;m.isGenericURI=m.authority===null&&!!m.scheme;return m}};f.exports=i}),18);
__d("createObjectFrom",[],(function a(b,c,d,e,f,g){function h(i,j){var k={},l=Array.isArray(j);if(j===undefined)j=true;for(var m=i.length-1;m>=0;m--)k[i[m]]=l?j[m]:j;return k}f.exports=h}),18);
__d("URISchemes",["createObjectFrom"],(function a(b,c,d,e,f,g){var h=c("createObjectFrom")(["blob","cmms","fb","fba","fbatwork","fb-ama","fb-workchat","fb-messenger","fb-messenger-public","fb-messenger-group-thread","fb-page-messages","fb-pma","fbcf","fbconnect","fbmobilehome","fbrpc","file","ftp","http","https","mailto","ms-app","intent","itms","itms-apps","itms-services","market","svn+ssh","fbstaging","tel","sms","pebblejs","sftp","whatsapp","moments","flash","fblite","chrome-extension","webcal","fb124024574287414","fb124024574287414rc","fb124024574287414master","fb1576585912599779","fb929757330408142","designpack","fbapi20130214","fb1196383223757595","tbauth","oculus","oculus.store"]),i={isAllowed:function j(k){if(!k)return true;return Object.prototype.hasOwnProperty.call(h,k.toLowerCase())}};f.exports=i}),18);
__d("setHostSubdomain",[],(function a(b,c,d,e,f,g){function h(i,j){var k=i.split(".");if(k.length<3)k.unshift(j);else k[0]=j;return k.join(".")}f.exports=h}),null);
__d("URIBase",["invariant","URIRFC3986","URISchemes","ex","setHostSubdomain"],(function a(b,c,d,e,f,g,h){var i=new RegExp("[\\x00-\\x2c\\x2f\\x3b-\\x40\\x5c\\x5e\\x60\\x7b-\\x7f\\uFDD0-\\uFDEF\\uFFF0-\\uFFFF\\u2047\\u2048\\uFE56\\uFE5F\\uFF03\\uFF0F\\uFF1F]"),j=new RegExp("^(?:[^/]*:|[\\x00-\\x1f]*/[\\x00-\\x1f]*/)");function k(n,o,p,q){if(!o)return true;if(o instanceof m){n.setProtocol(o.getProtocol());n.setDomain(o.getDomain());n.setPort(o.getPort());n.setPath(o.getPath());n.setQueryData(q.deserialize(q.serialize(o.getQueryData())));n.setFragment(o.getFragment());n.setIsGeneric(o.getIsGeneric());n.setForceFragmentSeparator(o.getForceFragmentSeparator());return true}o=o.toString().trim();var r=c("URIRFC3986").parse(o)||{fragment:null,scheme:null};if(!p&&!c("URISchemes").isAllowed(r.scheme))return false;n.setProtocol(r.scheme||"");if(!p&&i.test(r.host||""))return false;n.setDomain(r.host||"");n.setPort(r.port||"");n.setPath(r.path||"");if(p)n.setQueryData(q.deserialize(r.query||"")||{});else try{n.setQueryData(q.deserialize(r.query||"")||{})}catch(s){return false}n.setFragment(r.fragment||"");if(r.fragment==="")n.setForceFragmentSeparator(true);n.setIsGeneric(r.isGenericURI||false);if(r.userinfo!==null)if(p)throw new Error(c("ex")("URI.parse: invalid URI (userinfo is not allowed in a URI): %s",n.toString()));else return false;if(!n.getDomain()&&n.getPath().indexOf("\\")!==-1)if(p)throw new Error(c("ex")("URI.parse: invalid URI (no domain but multiple back-slashes): %s",n.toString()));else return false;if(!n.getProtocol()&&j.test(o))if(p)throw new Error(c("ex")("URI.parse: invalid URI (unsafe protocol-relative URLs): %s",n.toString()));else return false;if(n.getDomain()&&n.getPath()&&!n.getPath().startsWith("/"))if(p)throw new Error(c("ex")("URI.parse: invalid URI (domain and path where path lacks leading slash): %s",n.toString()));else return false;return true}var l=[];m.isValidURI=function(n,o){"use strict";return k(new m(null,o),n,false,o)};function m(n,o){"use strict";o||h(0);this.$URIBase9=o;this.$URIBase7="";this.$URIBase1="";this.$URIBase6="";this.$URIBase5="";this.$URIBase3="";this.$URIBase4=false;this.$URIBase8={};this.$URIBase2=false;k(this,n,true,o)}m.prototype.setProtocol=function(n){"use strict";c("URISchemes").isAllowed(n)||h(0);this.$URIBase7=n;return this};m.prototype.getProtocol=function(){"use strict";return(this.$URIBase7||"").toLowerCase()};m.prototype.setSecure=function(n){"use strict";return this.setProtocol(n?"https":"http")};m.prototype.isSecure=function(){"use strict";return this.getProtocol()==="https"};m.prototype.setDomain=function(n){"use strict";if(i.test(n))throw new Error(c("ex")("URI.setDomain: unsafe domain specified: %s for url %s",n,this.toString()));this.$URIBase1=n;return this};m.prototype.getDomain=function(){"use strict";return this.$URIBase1};m.prototype.setPort=function(n){"use strict";this.$URIBase6=n;return this};m.prototype.getPort=function(){"use strict";return this.$URIBase6};m.prototype.setPath=function(n){"use strict";this.$URIBase5=n;return this};m.prototype.getPath=function(){"use strict";return this.$URIBase5};m.prototype.addQueryData=function(n,o){"use strict";if(Object.prototype.toString.call(n)==="[object Object]")Object.assign(this.$URIBase8,n);else this.$URIBase8[n]=o;return this};m.prototype.setQueryData=function(n){"use strict";this.$URIBase8=n;return this};m.prototype.getQueryData=function(){"use strict";return this.$URIBase8};m.prototype.removeQueryData=function(n){"use strict";if(!Array.isArray(n))n=[n];for(var o=0,p=n.length;o<p;++o)delete this.$URIBase8[n[o]];return this};m.prototype.setFragment=function(n){"use strict";this.$URIBase3=n;this.setForceFragmentSeparator(false);return this};m.prototype.getFragment=function(){"use strict";return this.$URIBase3};m.prototype.setForceFragmentSeparator=function(n){"use strict";this.$URIBase2=n;return this};m.prototype.getForceFragmentSeparator=function(){"use strict";return this.$URIBase2};m.prototype.setIsGeneric=function(n){"use strict";this.$URIBase4=n;return this};m.prototype.getIsGeneric=function(){"use strict";return this.$URIBase4};m.prototype.isEmpty=function(){"use strict";return!(this.getPath()||this.getProtocol()||this.getDomain()||this.getPort()||Object.keys(this.getQueryData()).length>0||this.getFragment())};m.prototype.toString=function(){"use strict";var n=this;for(var o=0;o<l.length;o++)n=l[o](n);return n.$URIBase10()};m.prototype.$URIBase10=function(){"use strict";var n="",o=this.getProtocol();if(o)n+=o+":"+(this.getIsGeneric()?"":"//");var p=this.getDomain();if(p)n+=p;var q=this.getPort();if(q)n+=":"+q;var r=this.getPath();if(r)n+=r;else if(n)n+="/";var s=this.$URIBase9.serialize(this.getQueryData());if(s)n+="?"+s;var t=this.getFragment();if(t)n+="#"+t;else if(this.getForceFragmentSeparator())n+="#";return n};m.registerFilter=function(n){"use strict";l.push(n)};m.prototype.getOrigin=function(){"use strict";var n=this.getPort();return this.getProtocol()+"://"+this.getDomain()+(n?":"+n:"")};m.prototype.getQualifiedURIBase=function(){"use strict";return new m(this,this.$URIBase9).qualify()};m.prototype.qualify=function(){"use strict";if(!this.getDomain()){var n=new m(window.location.href,this.$URIBase9);this.setProtocol(n.getProtocol()).setDomain(n.getDomain()).setPort(n.getPort())}return this};m.prototype.setSubdomain=function(n){"use strict";var o=this.qualify().getDomain();return this.setDomain(c("setHostSubdomain")(o,n))};m.prototype.getSubdomain=function(){"use strict";if(!this.getDomain())return"";var n=this.getDomain().split(".");if(n.length<=2)return"";else return n[0]};f.exports=m}),18);
__d("areSameOrigin",[],(function a(b,c,d,e,f,g){function h(i,j){if(i.isEmpty()||j.isEmpty())return false;if(i.getProtocol()&&i.getProtocol()!=j.getProtocol())return false;if(i.getDomain()&&i.getDomain()!=j.getDomain())return false;if(i.getPort()&&i.getPort().toString()!==j.getPort().toString())return false;return true}f.exports=h}),null);
__d("ifRequired",[],(function a(b,c,d,e,f,g){function h(i,j,k){typeof k==="function"&&k()}f.exports=h}),null);
__d("isFacebookURI",[],(function a(b,c,d,e,f,g){var h=null,i=["http","https"];function j(k){if(!h)h=new RegExp("(^|\\.)facebook\\.com$","i");if(k.isEmpty()&&k.toString()!=="#")return false;if(!k.getDomain()&&!k.getProtocol())return true;return i.indexOf(k.getProtocol())!==-1&&h.test(k.getDomain())}j.setRegex=function(k){h=k};f.exports=j}),null);
__d("memoize",["invariant"],(function a(b,c,d,e,f,g,h){function i(j){var k=void 0;return function(){!arguments.length||h(0);if(j){k=j();j=null}return k}}f.exports=i}),18);
__d("unqualifyURI",[],(function a(b,c,d,e,f,g){function h(i){i.setProtocol(null).setDomain(null).setPort(null)}f.exports=h}),null);
__d("URI",["PHPQuerySerializer","ReloadPage","URIBase","areSameOrigin","ifRequired","isFacebookURI","memoize","unqualifyURI"],(function a(b,c,d,e,f,g){var h,i,j,k=this,l=c("memoize")(function(){return new o(window.location.href)});function m(){return c("ifRequired")("PageTransitions",function(p){if(p.isInitialized())return p})}function n(p,q,r,s){var t=new o(p),u=t.toString(),v=q?q:window;c("ifRequired")("PageNavigationStageLogger",function(w){if(r)w.setNote("force");else if(!b.PageTransitions)w.setNote("no_pagetrans");w.setCookieForNavigation(u)});if(!r&&b.PageTransitions)b.PageTransitions.go(u,s);else if(window.location.href===u)c("ReloadPage").now();else if(s)v.location.replace(u);else v.location.href=u}h=babelHelpers.inherits(o,c("URIBase"));i=h&&h.prototype;function o(p){"use strict";i.constructor.call(this,p||"",c("PHPQuerySerializer"))}o.prototype.setPath=function(p){"use strict";this.path=p;return i.setPath.call(this,p)};o.prototype.getPath=function(){"use strict";var p=i.getPath.call(this);if(p)return p.replace(/^\/+/,"/");return p};o.prototype.setProtocol=function(p){"use strict";this.protocol=p;return i.setProtocol.call(this,p)};o.prototype.setDomain=function(p){"use strict";this.domain=p;return i.setDomain.call(this,p)};o.prototype.setPort=function(p){"use strict";this.port=p;return i.setPort.call(this,p)};o.prototype.setFragment=function(p){"use strict";this.fragment=p;return i.setFragment.call(this,p)};o.prototype.stripTrailingSlash=function(){"use strict";this.setPath(this.getPath().replace(/\/$/,""));return this};o.prototype.valueOf=function(){"use strict";return this.toString()};o.prototype.isFacebookURI=function(){"use strict";return c("isFacebookURI")(this)};o.prototype.isPossiblySignedURI=function(){"use strict";if("hash"in this.getQueryData()&&c("isFacebookURI")(this))return true;return false};o.prototype.isSubdomainOfDomain=function(p){"use strict";var q=this.getDomain();if(p===""||q==="")return false;if(q.endsWith(p)){var r=q.length,s=p.length,t=r-s-1;if(r===s||q[t]===".")return o.isValidURI(p)}return false};o.prototype.getRegisteredDomain=function(){"use strict";if(!this.getDomain())return"";if(!c("isFacebookURI")(this))return null;var p=this.getDomain().split("."),q=p.indexOf("facebook");return p.slice(q).join(".")};o.prototype.getUnqualifiedURI=function(){"use strict";var p=new o(this);c("unqualifyURI")(p);return p};o.prototype.getQualifiedURI=function(){"use strict";return new o(this).qualify()};o.prototype.isSameOrigin=function(p){"use strict";var q=p;if(!q)q=l();else if(!(q instanceof o))q=new o(q.toString());return c("areSameOrigin")(this,q)};o.go=function(p,q,r){"use strict";n(p,window,q,r)};o.prototype.go=function(p,q){"use strict";o.go(this,p,q)};o.isValidURI=function(p){"use strict";return c("URIBase").isValidURI(p,c("PHPQuerySerializer"))};o.getRequestURI=function(p,q){"use strict";p=p===undefined||p;if(p){var r=m();if(r)return r.getCurrentURI(!!q).getQualifiedURI()}return new o(window.location.href)};o.getMostRecentURI=function(){"use strict";var p=m();if(p)return p.getMostRecentURI().getQualifiedURI();return new o(window.location.href)};o.getNextURI=function(){"use strict";var p=m();if(p)return p.getNextURI().getQualifiedURI();return new o(window.location.href)};o.encodeComponent=function(p){"use strict";return encodeURIComponent(p).replace(/%5D/g,"]").replace(/%5B/g,"[")};o.decodeComponent=function(p){"use strict";return decodeURIComponent(p.replace(/\+/g," "))};Object.assign(o,{expression:/(((\w+):\/\/)([^\/:]*)(:(\d+))?)?([^#?]*)(\?([^#]*))?(#(.*))?/,arrayQueryExpression:/^(\w+)((?:\[\w*\])+)=?(.*)/});f.exports=o}),18);
__d("ExecutionEnvironment",[],(function a(b,c,d,e,f,g){"use strict";var h=!!(typeof window!=="undefined"&&window.document&&window.document.createElement),i={canUseDOM:h,canUseWorkers:typeof Worker!=="undefined",canUseEventListeners:h&&!!(window.addEventListener||window.attachEvent),canUseViewport:h&&!!window.screen,isInWorker:!h};f.exports=i}),null);
__d("performance",["ExecutionEnvironment"],(function a(b,c,d,e,f,g){"use strict";var h=void 0;if(c("ExecutionEnvironment").canUseDOM)h=window.performance||window.msPerformance||window.webkitPerformance;f.exports=h||{}}),null);
__d("performanceAbsoluteNow",["performance"],(function a(b,c,d,e,f,g){var h;if(c("performance").now&&c("performance").timing&&c("performance").timing.navigationStart){var i=c("performance").timing.navigationStart;h=function h(){return c("performance").now()+i}}else h=function h(){return Date.now()};f.exports=h}),null);
__d("ResourceTimingsStore",["CircularBuffer","Map","ResourceTypes","URI","performanceAbsoluteNow"],(function a(b,c,d,e,f,g){"use strict";var h=1e3,i={},j={};Object.keys(c("ResourceTypes")).forEach(function(m){var n=c("ResourceTypes")[m],o=new(c("CircularBuffer"))(h),p=new(c("Map"))();o.onEvict(function(q){return p["delete"](q)});i[n]={idx:1,entries:o};j[n]=p});function k(m,n,o){var p=void 0;switch(m){case"css":case"js":var q=l.parseMakeHasteURL(n),r=q==null?"unknown_resource":q[0];p=o+"_"+r;break;case"xhr":var s=new(c("URI"))(n).getQualifiedURI(),t=s.getDomain()+s.getPath();p=o+"_"+t;break;default:m;p="never here"}return p}var l={getUID:function m(n,o){var p=i[n],q=k(n,o,p.idx);p.entries.write(q);j[n].set(q,{uri:o,uid:q});p.idx++;return q},updateURI:function m(n,o,p){var q=j[n].get(o);if(q!=null)q.uri=p},getMapFor:function m(n){return j[n]},parseMakeHasteURL:function m(n){var o=n.match(/\/rsrc\.php\/.*\/([^\?]+)/);if(!o)return null;var p=o[1],q="",r=p.match(/\.(\w+)$/);if(r)q=r[1];return[p,q]},measureRequestSent:function m(n,o){var p=j[n],q=p.get(o);if(q==null||q.requestSent!=null)return;else q.requestSent=c("performanceAbsoluteNow")()},measureResponseReceived:function m(n,o){var p=j[n],q=p.get(o);if(q==null||q.requestSent==null||q.responseReceived!=null)return;else q.responseReceived=c("performanceAbsoluteNow")()}};f.exports=l}),18);
__d("ExecutionContextObservers",[],(function a(b,c,d,e,f,g){var h={MUTATION_COUNTING:0,PROFILING_COUNTERS_NEED_MANUAL_SYNCING:1,REFERENCE_COUNTING:2,HEARTBEAT:3,CALL_STACK:4,ASYNC_PROFILER:5},i={MUTATION_COUNTING:0,REFERENCE_COUNTING:1,PROFILING_COUNTERS_NEED_MANUAL_SYNCING:2,HEARTBEAT:3,CALL_STACK:4,ASYNC_PROFILER:5},j={beforeIDs:h,afterIDs:i};f.exports=j}),18);
__d("uniqueID",[],(function a(b,c,d,e,f,g){var h="js_",i=36,j=0;function k(){return h+(j++).toString(i)}f.exports=k}),18);
__d("CallStackExecutionObserver",["ExecutionContextObservers","ifRequired","uniqueID"],(function a(b,c,d,e,f,g){"use strict";var h={onNewContextCreated:function i(j,k,l,m){var n,o=c("ifRequired")("TimeSliceInteraction",function(r){return r}),p=o?o.getReferenceCounterActiveTimeSlices():[],q=p.filter(function(r){return r.isEnabledForMode("full")});if(m&&m.isContinuation&&q.length){var n=function(){var r=c("uniqueID")(),s=Error.stackTraceLimit;Error.stackTraceLimit=1e3;var t=new Error().stack;Error.stackTraceLimit=s;q.forEach(function(u){u.inform("created_continuation:"+k,{rawStackTrace:t}).addStringAnnotation("id",r);u.trace().addStringAnnotation("has_stack_trace","1")});return{v:{id:r,name:k,interactions:q}}}();if(typeof n==="object")return n.v}return null},onBeforeContextStarted:function i(j,k,l){return k},onAfterContextStarted:function i(j,k,l){var m;if(k)(function(){var n=k.id,o=k.name,p=k.interactions,q=Error.stackTraceLimit;Error.stackTraceLimit=1e3;var r=new Error().stack;Error.stackTraceLimit=q;p.forEach(function(s){s.inform("executing_continuation:"+o,{rawStackTrace:r}).addStringAnnotation("id",n)})})()},onAfterContextEnded:function i(j,k,l){},getBeforeID:function i(){return c("ExecutionContextObservers").beforeIDs.CALL_STACK},getAfterID:function i(){return c("ExecutionContextObservers").afterIDs.CALL_STACK}};f.exports=h}),18);
__d("LogBuffer",["CircularBuffer"],(function a(b,c,d,e,f,g){var h=b.setTimeout.nativeBackup||b.setTimeout,i=5e3,j={},k={},l={write:function m(n,o){var p=j[n]=j[n]||new(c("CircularBuffer"))(i);p.write(o);if(k[n])k[n].forEach(function(q){try{q(o)}catch(r){}})},read:function m(n){if(!j[n])return[];else return j[n].read()},tail:function m(n,o){if(typeof o!=="function")return;k[n]=k[n]||[];k[n].push(o);if(j[n]){var p=j[n];p.read().forEach(function(q){try{o(q)}catch(r){}})}},expand:function m(n,o){var p=j[n];if(p)p.expand(o);else j[n]=new(c("CircularBuffer"))(o)},clear:function m(n){if(j[n])h(function(){j[n].clear()},0)}};f.exports=l}),18);
__d("MutationObserver",[],(function a(b,c,d,e,f,g){h.prototype.observe=function(j,k){"use strict"};h.prototype.disconnect=function(){"use strict"};h.prototype.takeRecords=function(){"use strict";return null};function h(){"use strict"}var i=b.MutationObserver||b.WebKitMutationObserver||h;f.exports=i}),18);
__d("PageDOMMutationObserver",["ExecutionEnvironment","MutationObserver"],(function a(b,c,d,e,f,g){"use strict";var h=new(c("MutationObserver"))(function(){}),i={tryStart:function j(){var k=typeof h.takeRecords==="function";if(!c("ExecutionEnvironment").canUseDOM||!k){i.tryStart=function(){};i.consumePendingDOMMutations=function(){return 0};return}if(!window.Env||!document.body)return;i.tryStart=function(){};if(!window.Env.dom_mutation_flag)return;h.observe(document.body,{attributes:true,childList:true,characterData:true,subtree:true})},consumePendingDOMMutations:function j(){var k=h.takeRecords();return k!=null?k.length:0}};f.exports=i}),18);
__d("ProfilingCounters",["ErrorUtils","ProfilingCountersStore","performanceAbsoluteNow"],(function a(b,c,d,e,f,g){c("performanceAbsoluteNow")();var h={ALL:"ALL",ONLY_ON_CONTINUATIONS_AND_FIRST_EXEC:"ONLY_ON_CONTINUATIONS_AND_FIRST_EXEC"},i=100,j=[];k.prototype.onNewContextCreated=function(n,o,p,q){"use strict";return l.currentContext().getPropagatedContextForChild(!!(q&&q.isContinuation))};k.prototype.onBeforeContextStarted=function(n,o,p){"use strict";var q=p&&p.propagateCounterAttribution,r=null;if(n.executionNumber>0&&o)for(var s=Object.entries(o),t=Array.isArray(s),u=0,s=t?s:s[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var v;if(t){if(u>=s.length)break;v=s[u++]}else{u=s.next();if(u.done)break;v=u.value}var w=v,x=w[0],y=w[1],z=y.propagationType;if(z!=="ONLY_ON_CONTINUATIONS_AND_FIRST_EXEC"){r=r||{};r[x]=y}}else r=o;var A=new l(false,r,n.contextID);if(q!=null)A.addAttribution(q,h.ALL);l.nestContext(A);return null};k.prototype.onAfterContextStarted=function(n,o,p){"use strict";return null};k.prototype.onAfterContextEnded=function(n,o,p){"use strict";var q=l.unnestContext();if(n.isRoot)c("ProfilingCountersStore").getInstance().pushElement(q)};k.prototype.getBeforeID=function(){"use strict";return 1};k.prototype.getAfterID=function(){"use strict";return 2};function k(){"use strict"}l.getObserver=function(){"use strict";if(!l.$ProfilingCounters2)l.$ProfilingCounters2=new k();return l.$ProfilingCounters2};l.wrapInSingleContext=function(n){"use strict";var o=new l(false,null,0);n.forEach(function(p){return o.$ProfilingCounters3(p,false)});return o};l.startTiming=function(n){"use strict";return l.currentContext().$ProfilingCounters4().startTiming(n)};l.stopTiming=function(n){"use strict";return l.currentContext().$ProfilingCounters4().stopTiming(n)};l.incrementCounter=function(n,o){"use strict";l.currentContext().$ProfilingCounters4().incrementCounter(n,o)};l.currentContext=function(){"use strict";return j[j.length-1]};function l(n,o,p){"use strict";this.isGlobal=n;this.propagatedAttributions=o;this.newAttributions=null;this.active=null;this.processedNestedContexts=null;this.newAttributionsCount=0;this.$ProfilingCounters1=p}l.prototype.addAttribution=function(n,o){"use strict";if(!this.$ProfilingCounters5(n)){if(this.newAttributions==null)this.newAttributions={};this.newAttributions[n]={newCounterIdx:this.newAttributionsCount,propagationType:o,snapshotAtStart:this.$ProfilingCounters6()?this.$ProfilingCounters4().getTotals():null};this.newAttributionsCount++}return this};l.prototype.getNestedTotals=function(){"use strict";return l.$ProfilingCounters7(this,function(n,o){l.$ProfilingCounters8(o,n.$ProfilingCounters4().getTotals());return o},{})};l.$ProfilingCounters9=function(n,o){"use strict";if(n.length===0)return null;for(var p=n,q=Array.isArray(p),r=0,p=q?p:p[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var s;if(q){if(r>=p.length)break;s=p[r++]}else{r=p.next();if(r.done)break;s=r.value}var t=s;if(o.propagatedAttributions&&o.propagatedAttributions[t]!=null)return t}var u=null,v=null;for(var w=n,x=Array.isArray(w),y=0,w=x?w:w[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var z;if(x){if(y>=w.length)break;z=w[y++]}else{y=w.next();if(y.done)break;z=y.value}var A=z;if(o.newAttributions&&o.newAttributions[A]!=null){var B=o.newAttributions[A].newCounterIdx;if(v==null||B<v){u=A;v=B}}}return u};l.prototype.getNestedTotalsByAttributions=function(n){"use strict";return l.$ProfilingCounters7(this,function(o,p){var q=l.$ProfilingCounters9(n,o);if(q){var r=l.$ProfilingCounters10(q,o),s=r.attributed,t=r.unattributed;if(s!=null)l.$ProfilingCounters8(p.attributed,s);if(t!=null)l.$ProfilingCounters8(p.unattributed,t)}else l.$ProfilingCounters8(p.unattributed,o.$ProfilingCounters4().getTotals());return p},{attributed:{},unattributed:{}})};l.$ProfilingCounters7=function(n,o,p){"use strict";var q=p;if(n.$ProfilingCounters6())q=o(n,q);if(n.processedNestedContexts!=null)for(var r=n.processedNestedContexts,s=Array.isArray(r),t=0,r=s?r:r[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var u;if(s){if(t>=r.length)break;u=r[t++]}else{t=r.next();if(t.done)break;u=t.value}var v=u;q=l.$ProfilingCounters7(v,o,q)}return q};l.$ProfilingCounters10=function(n,o){"use strict";var p=o.$ProfilingCounters4().getTotals();if(o.propagatedAttributions!=null&&o.propagatedAttributions[n]!=null)return{attributed:p,unattributed:null};else if(o.newAttributions!=null&&o.newAttributions[n]!=null){var q=o.newAttributions[n].snapshotAtStart;if(q!=null){var r=Object.entries(q);for(var s=0;s<r.length;s++){var t=r[s],u=t[0],v=t[1],w=p[u]-v;if(w===0)delete p[u];else p[u]=w}return{attributed:p,unattributed:q}}else return{attributed:p,unattributed:null}}else return{attributed:null,unattributed:p}};l.$ProfilingCounters8=function(n,o){"use strict";for(var p=Object.entries(o),q=Array.isArray(p),r=0,p=q?p:p[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var s;if(q){if(r>=p.length)break;s=p[r++]}else{r=p.next();if(r.done)break;s=r.value}var t=s,u=t[0],v=t[1];n[u]=(n[u]||0)+v}};l.prototype.$ProfilingCounters11=function(n,o){"use strict";return o!=null&&o[n]!=null};l.prototype.$ProfilingCounters5=function(n){"use strict";return this.$ProfilingCounters11(n,this.propagatedAttributions)||this.$ProfilingCounters11(n,this.newAttributions)};l.$ProfilingCounters12=function(n,o,p){"use strict";for(var q=0;q<p.length;q++){var r=p[q],s=r[0],t=r[1],u=t.propagationType;if(u===h.ALL||o)n[s]=t}};l.prototype.getPropagatedContextForChild=function(n){"use strict";var o=void 0;if(this.newAttributions==null)if(this.propagatedAttributions==null||n)return this.propagatedAttributions;else{o=Object.entries(this.propagatedAttributions);var p=true;for(var q=0;q<o.length;q++){var r=o[q],s=r[0],t=r[1];if(t.propagationType===h.ONLY_ON_CONTINUATIONS_AND_FIRST_EXEC){p=false;break}}if(p)return this.propagatedAttributions}var u={};if(this.propagatedAttributions!=null)l.$ProfilingCounters12(u,n,o||Object.entries(this.propagatedAttributions));if(this.newAttributions!=null)l.$ProfilingCounters12(u,n,Object.entries(this.newAttributions));return u};l.prototype.$ProfilingCounters4=function(){"use strict";if(this.active==null)this.active=new m();return this.active};l.prototype.$ProfilingCounters13=function(){"use strict";return this.isGlobal};l.prototype.$ProfilingCounters6=function(){"use strict";return this.active!=null};l.nestContext=function(n){"use strict";j.push(n)};l.unnestContext=function(){"use strict";if(j.length===1)throw new Error("popping off the global context");var n=j.pop();if(n.$ProfilingCounters6())var o=n.$ProfilingCounters4();if(n.$ProfilingCounters6()||n.processedNestedContexts!=null)l.currentContext().$ProfilingCounters3(n);return n};l.prototype.$ProfilingCounters3=function(n){var o=arguments.length<=1||arguments[1]===undefined?true:arguments[1];"use strict";if(this.$ProfilingCounters13())return;else if(!(o&&this.processedNestedContexts!=null&&this.processedNestedContexts.length>=i)){this.processedNestedContexts=this.processedNestedContexts||[];this.processedNestedContexts.push(n)}};l.prototype.getTimeSliceContextID=function(){"use strict";return this.$ProfilingCounters1};l.resetState=function(){"use strict";j=[new l(true,null,0)]};l.AttributionPropagation=h;function m(){"use strict";this.$SingleProfilingCounters1=null;this.$SingleProfilingCounters2=null;this.$SingleProfilingCounters3=null;this.$SingleProfilingCounters4=null}m.prototype.startTiming=function(n){"use strict";var o=m.$SingleProfilingCounters5++,p={value:0,counter:n,id:o,lastStartTime:0},q=this.$SingleProfilingCounters1||[];this.$SingleProfilingCounters2=this.$SingleProfilingCounters2||{};this.$SingleProfilingCounters2[o]=q.length;q.push(p);var r=c("performanceAbsoluteNow")();p.lastStartTime=r;if(q.length>1){var s=q[q.length-2];s.value+=r-s.lastStartTime}this.$SingleProfilingCounters1=q;return o};m.prototype.stopTiming=function(n){"use strict";var o=c("performanceAbsoluteNow")(),p=this.$SingleProfilingCounters2,q=this.$SingleProfilingCounters1;if(p==null||q==null){c("ErrorUtils").reportError(new Error("token does not match the counter context"));return 0}var r=p[n];delete p[n];if(r==null||q[r]==null)return 0;var s=null,t=0;while(q.length-1>r){var u=q.pop();t+=u.value;delete p[u.id];if(s==null&&u.lastStartTime!=null)s=u.lastStartTime}var v=q.pop();v.value+=o-(s||v.lastStartTime);v.value+=t;var w=this.$SingleProfilingCounters4||{};w[v.counter]=w[v.counter]||0;w[v.counter]+=v.value;if(q.length>0)q[q.length-1].lastStartTime=o;this.$SingleProfilingCounters1=q;this.$SingleProfilingCounters4=w;this.$SingleProfilingCounters2=p;return v.value};m.prototype.incrementCounter=function(n,o){"use strict";var p=this.$SingleProfilingCounters3||{};p[n]=p[n]||0;p[n]+=o;this.$SingleProfilingCounters3=p};m.prototype.getTotals=function(){"use strict";return babelHelpers["extends"]({},this.$SingleProfilingCounters4||{},this.$SingleProfilingCounters3||{})};m.prototype.openCounterCount=function(){"use strict";return this.$SingleProfilingCounters1!=null?this.$SingleProfilingCounters1.length:0};m.$SingleProfilingCounters5=1;j.push(new l(true,null,0));b.ProfilingCounters=l;f.exports=l}),3);
__d("MutationCountingExecutionObserver",["ExecutionContextObservers","PageDOMMutationObserver","ProfilingCounters","ifRequired"],(function a(b,c,d,e,f,g){"use strict";var h=[],i=false;function j(){var o=c("PageDOMMutationObserver").consumePendingDOMMutations();if(o){c("ProfilingCounters").incrementCounter("DOM_MUTATION",o);var p=c("ifRequired")("TimeSliceInteraction",function(r){return r});if(p){var q=p.getReferenceCounterActiveTimeSlices();if(q.length)q.forEach(function(r){r.informPointWithOverride("display_done_ts_executed_from_client",{isPointOfInterest:true});if(!r.__mceoSeenThisRootGuardFrame){r.__mceoSeenThisRootGuardFrame=true;r.countUp();h.push(r);if(!i){i=true;n.executeOnRootGuardEnded(function(){k();i=false})}var s=c("ifRequired")("Visibility",function(s){return s});if(s)if(s.isHidden())r.trace().addStringAnnotation("hidden_during_dd","1");else r.trace().addStringAnnotation("hidden_during_dd","0")}})}}}function k(){if(h.length===0)return;h.forEach(function(r){r.informPointWithOverride("display_done",{isPointOfInterest:true});r.__mceoSeenThisRootGuardFrame=false});var o=h,p=c("ifRequired")("requestAnimationFrameAcrossTransitions",function(r){return r}),q=c("ifRequired")("setTimeoutAcrossTransitions",function(r){return r});if(!p||!q)return;p(function(){o.forEach(function(r){r.informPointWithOverride("display_done_ts_raf",{isPointOfInterest:true})});q(function(){o.forEach(function(r){r.informPointWithOverride("display_done_ts_st",{isPointOfInterest:true});r.countDown()})})});h=[]}var l=[];m.prototype.executeOnRootGuardEnded=function(o){l.push(o)};m.prototype.onNewContextCreated=function(o,p,q,r){return{}};m.prototype.onBeforeContextStarted=function(o,p,q){c("PageDOMMutationObserver").tryStart();j();return{}};m.prototype.onAfterContextStarted=function(o,p,q){return{}};m.prototype.onAfterContextEnded=function(o,p,q){j();if(o&&o.isRoot)while(l.length)l.pop()()};m.prototype.getBeforeID=function(){return c("ExecutionContextObservers").beforeIDs.MUTATION_COUNTING};m.prototype.getAfterID=function(){return c("ExecutionContextObservers").afterIDs.MUTATION_COUNTING};function m(){}var n=new m();f.exports=n}),18);
__d("nullthrows",[],(function a(b,c,d,e,f,g){var h=function h(i){var j=arguments.length<=1||arguments[1]===undefined?"Got unexpected null or undefined":arguments[1];if(i!=null)return i;throw new Error(j)};f.exports=h}),18);
__d("wrapFunction",[],(function a(b,c,d,e,f,g){var h={},i=function i(j,k,l){return function(){var m=k in h?h[k](j,l):j;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m.apply(this,o)}};i.setWrapper=function(j,k){h[k]=j};f.exports=i}),18);
__d("TimeSlice",["invariant","CallStackExecutionObserver","CircularBuffer","Env","ErrorUtils","LogBuffer","MutationCountingExecutionObserver","ProfilingCounters","nullthrows","performanceAbsoluteNow","wrapFunction"],(function a(b,c,d,e,f,aa,g){var h=[],i=[],j="time_slice",k=1,l=false,m=0,n=1,o=2,p=m,q=new(c("CircularBuffer"))(100),r=0,s=0,ba=c("Env").shouldLogCounters,t=c("Env").timesliceBufferSize;if(t)c("LogBuffer").expand(j,t);var u="stackTraceLimit"in Error,v=[],w=[];function x(){return y(v)}function y(G){return G.length>0?G[G.length-1]:null}function z(G,H){c("ErrorUtils").applyWithGuard(C,null,[G,H]);c("ErrorUtils").applyWithGuard(D,null,[G,H]);v.push(G);w.push(H)}function A(G,H,I,J){h.forEach(function(K){var L=K.onNewContextCreated(x(),H,J,I);G[K.getBeforeID()]=L})}function B(G,H){i.forEach(function(I){I.onAfterContextEnded(G,H[I.getBeforeID()],G.meta)})}function C(G,H){h.forEach(function(I){var J=H[I.getBeforeID()],K=I.onBeforeContextStarted(G,J,G.meta);H[I.getBeforeID()]=K})}function D(G,H){h.forEach(function(I){var J=H[I.getBeforeID()],K=I.onAfterContextStarted(G,J,G.meta);H[I.getBeforeID()]=K})}function E(){var G=x(),H=y(w);if(G==null||H==null){c("ErrorUtils").reportError(new Error("popped too many times off the timeslice stack"));l=false;return}c("ErrorUtils").applyWithGuard(B,null,[G,H]);l=!G.isRoot;v.pop();w.pop()}var F={guard:function G(H,I,J){typeof H==="function"||g(0);typeof I==="string"||g(0);if(H.__tsGuarded)return H;if(!J||!J.root)F.checkCoverage();var K=void 0;if(l)K=x();var L={},M=0,N=function N(){var O=l?null:c("performanceAbsoluteNow")(),P=void 0,Q=k++,R={contextID:Q,name:I,isRoot:!l,executionNumber:M++,meta:J};z(R,L);if(K!=null){var S=!!(J&&J.isContinuation);if(K.isRoot){R.indirectParentID=K.contextID;R.isEdgeContinuation=S}else{R.indirectParentID=K.indirectParentID;R.isEdgeContinuation=!!(S&&K.isEdgeContinuation)}}l=true;try{if(!R.isRoot)return H.apply(this,arguments);else{var T="TimeSlice"+(I?": "+I:"");P=c("ErrorUtils").applyWithGuard(H,this,arguments,null,T);return P}}finally{var U=x();if(U==null){c("ErrorUtils").reportError(new Error("timeslice stack misaligned, not logging the block"));l=false}else{var V=U.isRoot,W=U.contextID,X=U.indirectParentID,Y=U.isEdgeContinuation;if(V&&O!=null){var Z=c("performanceAbsoluteNow")();s+=Z-O;U.absEndTimeMs=Z;U.absBeginTimeMs=O;var $=babelHelpers["extends"]({begin:O,end:Z,id:W,indirectParentID:X,representsExecution:true,isEdgeContinuation:K&&Y,guard:I},J,H.__SMmeta);c("LogBuffer").write("time_slice",$)}E()}}};N=N;c("ErrorUtils").applyWithGuard(A,null,[L,I,J,N]);N.__tsGuarded=true;return N},inGuard:function G(){return l},checkCoverage:function G(){var H=void 0;if(p!==o&&!l){if(u){H=Error.stackTraceLimit;Error.stackTraceLimit=50}var I=new Error("Missing TimeSlice coverage");if(u)Error.stackTraceLimit=H;I.type="warn";if(p===n&&Math.random()<r)c("ErrorUtils").reportError(I);else if(p===m)c("nullthrows")(q).write(I)}},setLogging:function G(H,I){if(p!==m)return;r=I;if(H){p=n;c("nullthrows")(q).read().forEach(function(J){if(Math.random()<r)c("ErrorUtils").reportError(J)})}else p=o;c("nullthrows")(q).clear();q=undefined},getContext:function G(){return x()},getTotalTime:function G(){return s},getGuardedContinuation:function G(H){return F.guard(function I(J){for(var K=arguments.length,L=Array(K>1?K-1:0),M=1;M<K;M++)L[M-1]=arguments[M];return J.apply(this,L)},H,{isContinuation:true})},getGuardNameStack:function G(){return v.map(function(H){return H.name})},registerExecutionContextObserver:function G(H){var I=false;for(var J=0;J<h.length;J++)if(h[J].getBeforeID()>H.getBeforeID()){h.splice(J,0,H);I=true;break}if(!I)h.push(H);for(var K=0;K<i.length;K++)if(i[K].getAfterID()>H.getAfterID()){i.splice(K,0,H);return}i.push(H)},catchUpOnDemandExecutionContextObservers:function G(H){var I=H.slice().sort(function(S,T){return S.getBeforeID()-T.getBeforeID()});for(var J=0;J<v.length;J++){var K=v[J],L=w[J];for(var M=I,N=Array.isArray(M),O=0,M=N?M:M[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var P;if(N){if(O>=M.length)break;P=M[O++]}else{O=M.next();if(O.done)break;P=O.value}var Q=P,R=Q.onBeforeContextStartedWhileEnabled(K,L[Q.getBeforeID()],K.meta);L[Q.getBeforeID()]=R}}}};F.registerExecutionContextObserver(c("ProfilingCounters").getObserver());F.registerExecutionContextObserver(c("MutationCountingExecutionObserver"));if(c("Env").sample_continuation_stacktraces)F.registerExecutionContextObserver(c("CallStackExecutionObserver"));c("wrapFunction").setWrapper(F.guard,"entry");b.TimeSlice=F;f.exports=F}),19);
__d("isEmpty",["invariant"],(function a(b,c,d,e,f,g,h){"use strict";function i(k){if(Array.isArray(k))return k.length===0;else if(typeof k==="object"){if(k){!j(k)||k.size===undefined||h(0);for(var l in k)return false}return true}else return!k}function j(k){if(typeof Symbol==="undefined")return false;return k[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]}f.exports=i}),18);
__d("setIntervalAcrossTransitions",["TimeSlice"],(function a(b,c,d,e,f,g){var h=b.setInterval.nativeBackup||b.setInterval;f.exports=function(){for(var i=arguments.length,j=Array(i),k=0;k<i;k++)j[k]=arguments[k];j[0]=c("TimeSlice").guard(j[0],"setInterval");return Function.prototype.apply.call(h,b,j)}}),18);
__d("CSSLoader",["CSSLoaderConfig","ResourceTimingsStore","TimeSlice","ifRequired","isEmpty","setIntervalAcrossTransitions"],(function a(b,c,d,e,f,g){var h=20,i=c("CSSLoaderConfig").timeout,j=c("CSSLoaderConfig").loadEventSupported,k,l={},m=[],n,o={};function p(t){if(k)return;k=true;var u=document.createElement("link");u.onload=function(){j=true;u.parentNode.removeChild(u)};u.rel="stylesheet";u.href="data:text/css;base64,";t.appendChild(u)}function q(){var t,u=[],v=[];if(Date.now()>=n){for(t in o){v.push(o[t].signal);u.push(o[t].error)}o={}}else for(t in o){var w=o[t].signal,x=window.getComputedStyle?getComputedStyle(w,null):w.currentStyle;if(x&&parseInt(x.height,10)>1){u.push(o[t].load);v.push(w);delete o[t]}}for(var y=0;y<v.length;y++)v[y].parentNode.removeChild(v[y]);if(!c("isEmpty")(u)){for(y=0;y<u.length;y++)u[y]();n=Date.now()+i}return c("isEmpty")(o)}function r(t,u,v,w){var x=document.createElement("meta");x.id="bootloader_"+t.replace(/[^a-z0-9]/gi,"_");u.appendChild(x);var y=!c("isEmpty")(o);n=Date.now()+i;o[t]={signal:x,load:v,error:w};if(!y)var z=c("setIntervalAcrossTransitions")(function A(){if(q())clearInterval(z)},h)}var s={loadStyleSheet:function t(u,v,w,x,y,z){if(l[u])throw new Error("CSS component "+u+" has already been requested.");var A=c("ResourceTimingsStore").getUID("css",v);c("ifRequired")("TimeSliceInteraction",function(I){I.informGlobally("CSSLoader.loadStyleSheet").addStringAnnotation("source",v).addStringAnnotation("name",u);I.getReferenceCounterActiveTimeSlices().forEach(function(J){return J.forResourceRequest(A).addStringAnnotation("requested_in_continuation","true")});I.annotateGloballyResourceRequest(A).addStringAnnotation("name",u).addStringAnnotation("source",v).addStringAnnotation("caller","CSSLoader.loadStyleSheet")});c("ResourceTimingsStore").measureRequestSent("css",A);var B=function I(){c("ResourceTimingsStore").measureResponseReceived("css",A);y&&y()};if(document.createStyleSheet){var C;for(var D=0;D<m.length;D++)if(m[D].imports.length<31){C=D;break}if(C===undefined){try{m.push(document.createStyleSheet())}catch(E){z();return}C=m.length-1}m[C].addImport(v);l[u]={styleSheet:m[C],uri:v};r(u,w,B,z);return}var F=document.createElement("link");F.rel="stylesheet";F.type="text/css";var G=v.match(/^data:[^,]+,/);if(G&&!G[0].match(/base64/))v=G[0]+encodeURIComponent(v.substr(G[0].length));F.href=v;if(x)F.crossOrigin="anonymous";l[u]={link:F};var H=c("TimeSlice").getGuardedContinuation("CSSLoader link.onresponse");if(j){F.onload=H.bind(undefined,function I(){F.onload=F.onerror=null;B()});F.onerror=H.bind(undefined,function I(){F.onload=F.onerror=null;z()})}else{r(u,w,B,z);if(j===undefined)p(w)}w.appendChild(F)},registerLoadedStyleSheet:function t(u,v){if(l[u])return false;l[u]={link:v};return true},unloadStyleSheet:function t(u){var v=l[u];if(v==null)return;var w=v.link;if(w){w.onload=w.onerror=null;w.parentNode.removeChild(w)}else{var x=v.styleSheet;for(var y=0;y<x.imports.length;y++)if(x.imports[y].href==v.uri){x.removeImport(y);break}}delete o[u];delete l[u]},moduleName:function t(u){return c("CSSLoaderConfig").modulePrefix+u}};f.exports=s}),18);
__d("JSLog",["ErrorUtils","ex","sprintf"],(function a(b,c,d,e,f,g){"use strict";var h=c("ex"),i=["error","warn","info"];function j(l,m){if(m===undefined){k.error("JSLog.%s requires an error message argument",l);return}for(var n=arguments.length,o=Array(n>2?n-2:0),p=2;p<n;p++)o[p-2]=arguments[p];var q=new Error(h.apply(undefined,[m].concat(o)));q.name=c("sprintf")("JSLog.%s",l);q.type=l;q.messageWithParams=[m].concat(o);q.framesToPop=1;c("ErrorUtils").reportError(q)}var k=i.reduce(function(k,l){k[l]=j.bind(k,l);return k},{});f.exports=k}),null);
__d("CurrentCommunity",["CurrentCommunityInitialData"],(function a(b,c,d,e,f,g){var h={getID:function i(){return c("CurrentCommunityInitialData").COMMUNITY_ID||"0"},getName:function i(){return c("CurrentCommunityInitialData").COMMUNITY_NAME||""}};f.exports=h}),18);
__d("DTSG",["invariant","DTSGInitialData"],(function a(b,c,d,e,f,g,h){"use strict";var i=c("DTSGInitialData").token||null,j={getToken:function k(){return i},setToken:function k(l){i=l},refresh:function k(){h(0)}};f.exports=j}),null);
__d("BitMap",[],(function a(b,c,d,e,f,g){var h="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";function i(){"use strict";this.$BitMap1=[]}i.prototype.set=function(l){"use strict";this.$BitMap1[l]=1;return this};i.prototype.toString=function(){"use strict";var l=[];for(var m=0;m<this.$BitMap1.length;m++)l.push(this.$BitMap1[m]?1:0);return l.length?k(l.join("")):""};i.prototype.toCompressedString=function(){"use strict";if(this.$BitMap1.length===0)return"";var l=[],m=1,n=this.$BitMap1[0]||0,o=n.toString(2);for(var p=1;p<this.$BitMap1.length;p++){var q=this.$BitMap1[p]||0;if(q===n)m++;else{l.push(j(m));n=q;m=1}}if(m)l.push(j(m));return k(o+l.join(""))};function j(l){var m=l.toString(2),n="0".repeat(m.length-1);return n+m}function k(l){var m=(l+"00000").match(/[01]{6}/g),n="";for(var o=0;o<m.length;o++)n+=h[parseInt(m[o],2)];return n}f.exports=i}),18);
__d("ge",[],(function a(b,c,d,e,f,g){function h(k,l,m){return typeof k!="string"?k:!l?document.getElementById(k):i(k,l,m)}function i(k,l,m){var n=void 0,o=void 0,p=void 0;if(j(l)==k)return l;else if(l.getElementsByTagName){o=l.getElementsByTagName(m||"*");for(p=0;p<o.length;p++)if(j(o[p])==k)return o[p]}else{o=l.childNodes;for(p=0;p<o.length;p++){n=i(k,o[p]);if(n)return n}}return null}function j(k){return k.getAttribute?k.getAttribute("id"):null}f.exports=h}),18);
__d("replaceTransportMarkers",["Map","Set","ge","memoize"],(function a(b,c,d,e,f,g){function h(i,j,k){var l=k!==undefined?j[k]:j,m;if(Array.isArray(l))for(m=0;m<l.length;m++)h(i,l,m);else if(l&&typeof l=="object")if(l.__m)if(l.__lazy)j[k]=c("memoize")(c.bind(null,l.__m));else j[k]=c.call(null,l.__m);else if(l.__e)j[k]=c("ge")(l.__e);else if(l.__rel)j[k]=i;else{for(var n in l)h(i,l,n);if(l.__map)j[k]=new(c("Map"))(l.__map);else if(l.__set)j[k]=new(c("Set"))(l.__set)}}f.exports=h}),18);
__d("ServerJSDefine",["BitMap","replaceTransportMarkers"],(function a(b,c,d,e,f,g){var h=2,i=new(c("BitMap"))(),j={getLoadedModuleHash:function k(){return i.toCompressedString()},handleDefine:function k(l,m,n,o,p){if(o!==-42)i.set(o);define(l,m,function q(){c("replaceTransportMarkers")(p,n);if(o===-42)throw new Error(l+": "+n.__throw8367__);return n},h)},handleDefines:function k(l,m){l.forEach(function(n){if(m)n.push(m);j.handleDefine.apply(null,n)})}};f.exports=j}),18);
__d("StaticSiteData",[],(function a(b,c,d,e,f,g){f.exports={pkg_cohort_key:"__pc",be_key:"__be",spin_rev_key:"__spin_r",spin_time_key:"__spin_t",spin_branch_key:"__spin_b",spin_mhenv_key:"__spin_dev_mhenv"}}),null);
__d("CSSCore",["invariant"],(function a(b,c,d,e,f,g,h){function i(k,l){var m=k;while(m.parentNode)m=m.parentNode;if(m instanceof Element){var n=m.querySelectorAll(l);return Array.prototype.indexOf.call(n,k)!==-1}return false}var j={addClass:function k(l,m){!/\s/.test(m)||h(0);if(m)if(l.classList)l.classList.add(m);else if(!j.hasClass(l,m))l.className=l.className+" "+m;return l},removeClass:function k(l,m){!/\s/.test(m)||h(0);if(m)if(l.classList)l.classList.remove(m);else if(j.hasClass(l,m))l.className=l.className.replace(new RegExp("(^|\\s)"+m+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"");return l},conditionClass:function k(l,m,n){return(n?j.addClass:j.removeClass)(l,m)},hasClass:function k(l,m){!/\s/.test(m)||h(0);if(l.classList)return!!m&&l.classList.contains(m);return(" "+l.className+" ").indexOf(" "+m+" ")>-1},matchesSelector:function k(l,m){var n=l.matches||l.webkitMatchesSelector||l.mozMatchesSelector||l.msMatchesSelector||function(o){return i(l,o)};return n.call(l,m)}};f.exports=j}),18);
__d("isSocialPlugin",["CSSCore"],(function a(b,c,d,e,f,g){"use strict";function h(){return!!document.body&&c("CSSCore").hasClass(document.body,"plugin")}f.exports=h}),18);
__d("getAsyncParams",["CurrentCommunity","CurrentUserInitialData","DTSG","ISB","LSD","ServerJSDefine","SiteData","SprinkleConfig","StaticSiteData","isSocialPlugin"],(function a(b,c,d,e,f,g){var h=1;function i(j){var k,l=(k={__user:c("CurrentUserInitialData").USER_ID,__a:1,__dyn:c("ServerJSDefine").getLoadedModuleHash(),__af:c("SiteData").features,__req:(h++).toString(36)},k[c("StaticSiteData").be_key]=c("SiteData").be_mode,k[c("StaticSiteData").pkg_cohort_key]=c("SiteData").pkg_cohort,k.__rev=c("SiteData").client_revision,k);window.location.search.slice(1).split("&").forEach(function(p){var q=p.split("="),r=q[0],s=q[1];if(r==="locale"||r==="cxobfus"||r==="js_debug"||r.substr(0,4)==="tfc_"||r.substr(0,4)==="tfi_"||r.substr(0%2

brypt

/* Simple Hello World in Node.js */
console.log("Hello World");

Execute Node.js Online

var http = require('http');

var server =http.createServer(function(req,res){
    res.writeHead(200,{"Content-Type":"text/plain"});
    res.end("First Node server program");
});
server.listen(1234,function(){
    console.log("Server Started");
});

Execute Node.js Online

/* Simple Hello World in Node.js */
var c = 1;
var d = 5;
function randNum(c, d) { return Math.floor(Math.random() * (d - c) + 1) + c; }
var randN = randNum(c, d);
console.log(randN);

var dy = new Date();
console.log('Today is ' + dy.toDateString());
var dy2 = dy;
console.log(dy2.toDateString());
dy.setDate(dy.getDate() - randN);
console.log(randN + ' days ago was ' + dy.toDateString());
console.log();




Execute Node.js Online

/* For Assignment 4 library database */
var patrons = loadDatabaseP();
var catalog = loadDatabaseB();
var author = loadDatabaseA();

//*************************************BOOK SECTION************************************

// Regular function to load the book database
function loadDatabaseB () {
    // catalog array
	var catalog = [];
	catalog.push(new Book('The Vietnam War', null, '2017', null, '1209', 'Ken Burns'));
	catalog.push(new Book('Ethereum', null, '2017-07-01', null, '3489', 'Henning Diedrich'));
	catalog.push(new Book('Blockchain App', null, '2017-06-20', null, '5670', 'Arshdeep Bahga'));
	catalog.push(new Book('Mastering Bitcoin', null, '2015-03-06', null, '7210', 'Andrea Anton'));
	catalog.push(new Book('The Struggle for Sea Power',null, '2015', null, '9165', 'Sam Wallis'));
	return catalog;
}

//Constructor function Book
function Book(title, available, publicationDate, checkout, callNum, authors) {
    var d = new Date();
    this.title = title;
    this.available = false;
    this.publicationDate = new Date(publicationDate).toDateString();
    this.checkout = d.toDateString();
    this.callNum = callNum;
    this.authors = [];
}

//function Book prototype checkOut, to change available property from true to false;
//set checkout property to current date minus  some random number between 1 and 5
/*
Simple date query Node.js 
var d = new Date();
console.log('Today is ' + d.toLocaleString());
d.setDate(d.getDate() - 5);
console.log('5 days ago was ' + d.toLocaleString()); 
c = 1;
d = 5;
function randNum(c, d) { return Math.floor(Math.random() * (d - c) + 1) + c; }
*/
Book.prototype.checkOut = function() {
    
};

//function Book prototype checkIn, to change available property from false to true
Book.prototype.checkIn = function() {
    
};

//function isOverdue to check current date and checked Out date; if it's > 5, overdue
// returns true
function isOverdue () {
    
}

//function isCheckedOut to check that returns true if the book is checked out,
// or false if book is not checked out
function isCheckedOut () {
    
}

//*************************************BOOK SECTION*************************************

//Regular function to load the author database
function loadDatabaseA () {
    //author array
    var author = [];
    author.push(new Author('Ken', 'Burns'));
    author.push(new Author('Henning', 'Diedrich'));
    author.push(new Author('Arshdeep', 'Bahga'));
    author.push(new Author('Andrea', 'Anton'));
    author.push(new Author('Sam', 'Wallis'));
    return author;
}
//Constructor function Author
function Author(first, last) {
    this.first = first;
    this.last = last;
}

//******************************PATRON SECTION******************************************


// Regular function to load the patron database
function loadDatabaseP () {
    // patrons array
	var patrons = [];
	patrons.push(new Patron('Peter', 'Hello', '3422', null, '0.00'));
	patrons.push(new Patron('Janet', 'Hall', '8756', null, '0.00'));
	patrons.push(new Patron('Petra', 'Gumby', '3929', null, '0.00'));
	patrons.push(new Patron('Paul', 'John', '2890', null, '0.00'));
	patrons.push(new Patron('Jon', 'Jon', '1234', null, '0.00'));
	return patrons;
}

//Constructor function Patron
function Patron(first, last, libraryCN, books, fine) {
    this.first = first;
    this.last = last;
    this.libraryCN = libraryCN;
    this.books = [];
    this.fine = 0.00;
}

//function Patron prototype read: adds a book, to books property
Patron.prototype.read = function() {
    
};

//function Patron prototype return: removes a book, from books property
Patron.prototype.return = function () {
    
};

//*********************************************************************************
console.log(catalog);

Execute Node.js Online

/* Simple Hello World in Node.js */
console.log("Hello World");

SCHOOL RECORDS

/* Simple Hello World in Node.js */
console.log("Hello World");

Execute Node.js Online

/*  Node.js */
/*Problem 2h) A function called isPrime to find Prime numbers in an array and return
only Prime number in a new array.
*/

console.log();
console.log('Problem 1h');
var value = [1, 2, 3, 5, 7, 10, 12, 13, 15, 20];
var newPrime = [];
function isPrime(value) {
  for (var i = 0; i < value.length; i++) {
    if (Prme(value[i])) {newPrime.push(value[i]); }
  } return newPrime;
}

function Prme(n) {
  var prm = true;
  for (var j = 2; j < n; j++) {
    if (n % j === 0) {
      prm = false; break;
    }
  } return prm;
}

console.log('The results of calling isPrime function\n on 1,2,3,5,7,10,12,13,15,20 are the numbers ' +
isPrime(value));

Execute Node.js Online

/* For Assignment 4 library database */
var patrons = loadDatabaseP();
var catalog = loadDatabaseB();
var author = loadDatabaseA();

//*************************************BOOK SECTION************************************

// Regular function to load the book database
function loadDatabaseB () {
    // catalog array
	var catalog = [];
	catalog.push(new Book('The Vietnam War', null, '2017', null, '1209', 'Ken Burns'));
	catalog.push(new Book('Ethereum', null, '2017-07-01', null, '3489', 'Henning Diedrich'));
	catalog.push(new Book('Blockchain App', null, '2017-06-20', null, '5670', 'Arshdeep Bahga'));
	catalog.push(new Book('Mastering Bitcoin', null, '2015-03-06', null, '7210', 'Andrea Anton'));
	catalog.push(new Book('The Struggle for Sea Power',null, '2015', null, '9165', 'Sam Wallis'));
	return catalog;
}

//Constructor function Book
function Book(title, available, publicationDate, checkout, callNum, authors) {
    this.title = title;
    this.available = true;
    this.publicationDate = new Date(publicationDate).toLocaleString();
    this.checkout = new Date().toLocaleString();
    this.callNum = callNum;
    this.authors = [];
}

//function Book prototype checkOut, to change available property from true to false;
//set checkout property to current date minus  some random number between 1 and 5
Book.prototype.checkOut = function() {
var c = 1;
var d = 5;
function randNum(c, d) { return Math.floor(Math.random() * (d - c) + 1) + c; }
var randN = randNum(c, d);
console.log(randN);

var dy = new Date();
//console.log('Today is ' + dy.toDateString());
dy.setDate(dy.getDate() - randN);
return dy.toDateString();
};

//function Book prototype checkIn, to change available property from false to true
Book.prototype.checkIn = function() {
    
};

//function isOverdue to check current date and checked Out date; if it's > 5, overdue
// returns true
function isOverdue () {
    
}

//function isCheckedOut to check that returns true if the book is checked out,
// or false if book is not checked out
function isCheckedOut () {
    
}

//*************************************BOOK SECTION*************************************

//Regular function to load the author database
function loadDatabaseA () {
    //author array
    var author = [];
    author.push(new Author('Ken', 'Burns'));
    author.push(new Author('Henning', 'Diedrich'));
    author.push(new Author('Arshdeep', 'Bahga'));
    author.push(new Author('Andrea', 'Anton'));
    author.push(new Author('Sam', 'Wallis'));
    return author;
}
//Constructor function Author
function Author(first, last) {
    this.first = first;
    this.last = last;
}

//******************************PATRON SECTION******************************************


// Regular function to load the patron database
function loadDatabaseP () {
    // patrons array
	var patrons = [];
	patrons.push(new Patron('Peter', 'Hello', '3422', null, '0.00'));
	patrons.push(new Patron('Janet', 'Hall', '8756', null, '0.00'));
	patrons.push(new Patron('Petra', 'Gumby', '3929', null, '0.00'));
	patrons.push(new Patron('Paul', 'John', '2890', null, '0.00'));
	patrons.push(new Patron('Jon', 'Jon', '1234', null, '0.00'));
	return patrons;
}

//Constructor function Patron
function Patron(first, last, libraryCN, books, fine) {
    this.first = first;
    this.last = last;
    this.libraryCN = libraryCN;
    this.books = [];
    this.fine = 0.00;
}

//function Patron prototype read: adds a book, to books property
// look for a push 
Patron.prototype.read = function() {
    
};

//function Patron prototype return: removes a book, from books property
Patron.prototype.return = function () {
    
};

//*******************************LOOP SECTION**************************************************
var d = 0;
while (d < 1) {
    // Loop to start for books
    for (i = 0; i < 5; i++) {
        if (catalog[i].available === true) {
            console.log(catalog[i].available = false);
        }
}
console.log();
    d++;
}
//*******************************DISPLAY OUTPUT LOOP*************************************************
/*for (i = 0; i < 5; i++) {
    console.log(patrons[i].first + ' ' + patrons[i].last + ' has fines of ' + patrons[i].fine + '; has checked out ' + patrons[i].books);
}*/

console.log(catalog);

console.log('end');

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.