!function(){vart,e,n;(function(){t=this}).call(this),function(){e=__meteor_runtime_config__.meteorEnv,n={isProduction:"production"===e.NODE_ENV,isDevelopment:"production"!==e.NODE_ENV,isClient:!0,isServer:!1,isCordova:!1},"object"==typeof__meteor_runtime_config__&&__meteor_runtime_config__.PUBLIC_SETTINGS&&(n.settings={public:__meteor_runtime_config__.PUBLIC_SETTINGS})}.call(this),function(){functiont(t){if(t)returnn._debug("Exception in callback of async function",t.stack?t.stack:t)}if(n.isServer)vare=Npm.require("fibers/future");"object"==typeof__meteor_runtime_config__&&__meteor_runtime_config__.meteorRelease&&(n.release=__meteor_runtime_config__.meteorRelease),n._get=function(t){for(vare=1;e<arguments.length;e++){if(!(arguments[e]int))return;t=t[arguments[e]]}returnt},n._ensure=function(t){for(vare=1;e<arguments.length;e++){varn=arguments[e];nint||(t[n]={}),t=t[n]}returnt},n._delete=function(t){for(vare=[t],n=!0,r=1;r<arguments.length-1;r++){if(!((o=arguments[r])int)){n=!1;break}if("object"!=typeof(t=t[o]))break;e.push(t)}for(varr=e.length-1;r>=0;r--){varo=arguments[r+1];if(n)n=!1;elsefor(variine[r][o])return;deletee[r][o]}},n.wrapAsync=function(r,o){returnfunction(){for(vari=o||this,a=Array.prototype.slice.call(arguments),s,u=a.length-1;u>=0;--u){varc=a[u],l=typeofc;if("undefined"!==l){"function"===l&&(s=c);break}}if(!s){if(n.isClient)s=t;else{varf=newe;s=f.resolver()}++u}a[u]=n.bindEnvironment(s);varp=r.apply(i,a);returnf?f.wait():p}};varr=Object.prototype.hasOwnProperty;n._inherits=function(t,e){for(varnine)r.call(e,n)&&(t[n]=e[n]);varo=function(){this.constructor=t};returno.prototype=e.prototype,t.prototype=newo,t.__super__=e.prototype,t};varo=!1;n._wrapAsync=function(t,e){returno||(n._debug("Meteor._wrapAsync has been renamed to Meteor.wrapAsync"),o=!0),n.wrapAsync.apply(n,arguments)}}.call(this),function(){"use strict";functiont(){if(o.setImmediate){vart=function(t){o.setImmediate(t)};returnt.implementation="setImmediate",t}returnnull}functione(){functiont(t,e){return"string"==typeoft&&t.substring(0,e.length)===e}functione(e){if(e.source===o&&t(e.data,s)){varn=e.data.substring(s.length);try{a[n]&&a[n]()}finally{deletea[n]}}}if(!o.postMessage||o.importScripts)returnnull;varn=!0,r=o.onmessage;if(o.onmessage=function(){n=!1},o.postMessage("","*"),o.onmessage=r,!n)returnnull;vari=0,a={},s="Meteor._setImmediate."+Math.random()+".";o.addEventListener?o.addEventListener("message",e,!1):o.attachEvent("onmessage",e);varu=function(t){a[++i]=t,o.postMessage(s+i,"*")};returnu.implementation="postMessage",u}functionr(){vart=function(t){o.setTimeout(t,0)};returnt.implementation="setTimeout",t}varo=this;n._setImmediate=t()||e()||r()}.call(this),function(){functiont(t){if(Package.ddp){vare=Package.ddp.DDP,n=e._CurrentMethodInvocation||e._CurrentInvocation,r=n.get();if(r&&r.isSimulation)thrownewError("Can't set timers inside simulations");returnfunction(){n.withValue(null,t)}}returnt}functione(e,r){returnn.bindEnvironment(t(r),e)}n.setTimeout=function(t,n){returnsetTimeout(e("setTimeout callback",t),n)},n.setInterval=function(t,n){returnsetInterval(e("setInterval callback",t),n)},n.clearInterval=function(t){returnclearInterval(t)},n.clearTimeout=function(t){returnclearTimeout(t)},n.defer=function(t){n._setImmediate(e("defer callback",t))}}.call(this),function(){n.makeErrorType=function(t,e){varr=function(){Error.captureStackTrace?Error.captureStackTrace(this,r):this.stack=(newError).stack,e.apply(this,arguments),this.errorType=t};returnn._inherits(r,Error),r},n.Error=n.makeErrorType("Meteor.Error",function(t,e,n){varr=this;r.isClientSafe=!0,r.error=t,r.reason=e,r.details=n,r.reason?r.message=r.reason+" ["+r.error+"]":r.message="["+r.error+"]"}),n.Error.prototype.clone=function(){vart=this;returnnewn.Error(t.error,t.reason,t.details)}}.call(this),function(){n._noYieldsAllowed=function(t){returnt()},n._SynchronousQueue=function(){vart=this;t._tasks=[],t._running=!1,t._runTimeout=null};vart=n._SynchronousQueue.prototype;t.runTask=function(t){vare=t
!function(){varn,t;(function(){n={}}).call(this),function(){(function(){vart=this,r=t._,e={},i=Array.prototype,u=Object.prototype,a=Function.prototype,c=i.push,o=i.slice,l=i.concat,f=u.toString,s=u.hasOwnProperty,p=i.forEach,h=i.map,v=i.reduce,y=i.reduceRight,d=i.filter,g=i.every,m=i.some,b=i.indexOf,_=i.lastIndexOf,w=Array.isArray,x=Object.keys,j=a.bind,A=function(n){returnninstanceofA?n:thisinstanceofA?void(this._wrapped=n):newA(n)};void0!==n?("undefined"!=typeofmodule&&module.exports&&(n=module.exports=A),n._=A):t._=A,A.VERSION="1.5.2";vark=function(n){return"[object Arguments]"===f.call(n)};k(arguments)||(k=function(n){return!(!n||!s.call(n,"callee")||"function"!=typeofn.callee)});varO=function(n){returnn.length===+n.length&&(k(n)||n.constructor!==Object)},E=A.each=A.forEach=function(n,t,r){if(null!=n)if(p&&n.forEach===p)n.forEach(t,r);elseif(O(n)){for(vari=0,u=n.length;i<u;i++)if(t.call(r,n[i],i,n)===e)return}elsefor(vara=A.keys(n),i=0,u=a.length;i<u;i++)if(t.call(r,n[a[i]],a[i],n)===e)return};A.map=A.collect=function(n,t,r){vare=[];returnnull==n?e:h&&n.map===h?n.map(t,r):(E(n,function(n,i,u){e.push(t.call(r,n,i,u))}),e)};varF="Reduce of empty array with no initial value";A.reduce=A.foldl=A.inject=function(n,t,r,e){vari=arguments.length>2;if(null==n&&(n=[]),v&&n.reduce===v)returne&&(t=A.bind(t,e)),i?n.reduce(t,r):n.reduce(t);if(E(n,function(n,u,a){i?r=t.call(e,r,n,u,a):(r=n,i=!0)}),!i)thrownewTypeError(F);returnr},A.reduceRight=A.foldr=function(n,t,r,e){vari=arguments.length>2;if(null==n&&(n=[]),y&&n.reduceRight===y)returne&&(t=A.bind(t,e)),i?n.reduceRight(t,r):n.reduceRight(t);varu=n.length;if(!O(n)){vara=A.keys(n);u=a.length}if(E(n,function(c,o,l){o=a?a[--u]:--u,i?r=t.call(e,r,n[o],o,l):(r=n[o],i=!0)}),!i)thrownewTypeError(F);returnr},A.find=A.detect=function(n,t,r){vare;returnM(n,function(n,i,u){if(t.call(r,n,i,u))returne=n,!0}),e},A.filter=A.select=function(n,t,r){vare=[];returnnull==n?e:d&&n.filter===d?n.filter(t,r):(E(n,function(n,i,u){t.call(r,n,i,u)&&e.push(n)}),e)},A.reject=function(n,t,r){returnA.filter(n,function(n,e,i){return!t.call(r,n,e,i)},r)},A.every=A.all=function(n,t,r){t||(t=A.identity);vari=!0;returnnull==n?i:g&&n.every===g?n.every(t,r):(E(n,function(n,u,a){if(!(i=i&&t.call(r,n,u,a)))returne}),!!i)};varM=A.some=A.any=function(n,t,r){t||(t=A.identity);vari=!1;returnnull==n?i:m&&n.some===m?n.some(t,r):(E(n,function(n,u,a){if(i||(i=t.call(r,n,u,a)))returne}),!!i)};A.contains=A.include=function(n,t){returnnull!=n&&(b&&n.indexOf===b?-1!=n.indexOf(t):M(n,function(n){returnn===t}))},A.invoke=function(n,t){varr=o.call(arguments,2),e=A.isFunction(t);returnA.map(n,function(n){return(e?t:n[t]).apply(n,r)})},A.pluck=function(n,t){returnA.map(n,function(n){returnn[t]})},A.where=function(n,t,r){returnA.isEmpty(t)?r?void0:[]:A[r?"find":"filter"](n,function(n){for(varrint)if(t[r]!==n[r])return!1;return!0})},A.findWhere=function(n,t){returnA.where(n,t,!0)},A.max=function(n,t,r){if(!t&&A.isArray(n)&&n[0]===+n[0]&&n.length<65535)returnMath.max.apply(Math,n);if(!t&&A.isEmpty(n))return-1/0;vare={computed:-1/0,value:-1/0};returnE(n,function(n,i,u){vara=t?t.call(r,n,i,u):n;a>e.computed&&(e={value:n,computed:a})}),e.value},A.min=function(n,t,r){if(!t&&A.isArray(n)&&n[0]===+n[0]&&n.length<65535)returnMath.min.apply(Math,n);if(!t&&A.isEmpty(n))return1/0;vare={computed:1/0,value:1/0};returnE(n,function(n,i,u){vara=t?t.call(r,n,i,u):n;a<e.computed&&(e={value:n,computed:a})}),e.value},A.shuffle=function(n){vart,r=0,e=[];returnE(n,function(n){t=A.random(r++),e[r-1]=e[t],e[t]=n}),e},A.sample=function(n,t,r){returnarguments.length<2||r?n[A.random(n.length-1)]:A.shuffle(n).slice(0,Math.max(0,t))};varR=function(n){returnA.isFunction(n)?n:function(t){returnt[n]}};A.sortBy=function(n,t,r){vare=R(t);returnA.pluck(A.map(n,function(n,t,i){return{value:n,index:t,criteria:e.call(r,n,t,i)}}).sort(function(n,t){varr=n.criteria,e=t.criteria;if(r!==e){if(r>e||void0===r)return1;if(r<e||void0===e)return-1}returnn.index-t.index}),"value")};varS=function(n){return
!function(){varr=Package.meteor.Meteor,n=Package.meteor.global,e=Package.meteor.meteorEnv,a;(function(){for(varr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={},e=0;e<r.length;e++)n[r.charAt(e)]=e;(a={}).encode=function(r){if("string"==typeofr){varn=r;r=a.newBinary(n.length);for(vare=0;e<n.length;e++){varl=n.charCodeAt(e);if(l>255)thrownewError("Not ascii. Base64.encode can only take ascii strings.");r[e]=l}}for(varu=[],i=null,o=null,c=null,f=null,e=0;e<r.length;e++)switch(e%3){case0:i=r[e]>>2&63,o=(3&r[e])<<4;break;case1:o|=r[e]>>4&15,c=(15&r[e])<<2;break;case2:c|=r[e]>>6&3,f=63&r[e],u.push(t(i)),u.push(t(o)),u.push(t(c)),u.push(t(f)),i=null,o=null,c=null,f=null;break}returnnull!=i&&(u.push(t(i)),u.push(t(o)),null==c?u.push("="):u.push(t(c)),null==f&&u.push("=")),u.join("")};vart=function(n){returnr.charAt(n)},l=function(r){return"="===r?-1:n[r]};a.newBinary=function(r){if("undefined"==typeofUint8Array||"undefined"==typeofArrayBuffer){for(varn=[],e=0;e<r;e++)n.push(0);returnn.$Uint8ArrayPolyfill=!0,n}returnnewUint8Array(newArrayBuffer(r))},a.decode=function(r){varn=Math.floor(3*r.length/4);"="==r.charAt(r.length-1)&&(n--,"="==r.charAt(r.length-2)&&n--);for(vare=a.newBinary(n),t=null,u=null,i=null,o=0,c=0;c<r.length;c++){varf=r.charAt(c),s=l(f);switch(c%4){case0:if(s<0)thrownewError("invalid base64 string");t=s<<2;break;case1:if(s<0)thrownewError("invalid base64 string");t|=s>>4,e[o++]=t,u=(15&s)<<4;break;case2:s>=0&&(u|=s>>2,e[o++]=u,i=(3&s)<<6);break;case3:s>=0&&(e[o++]=i|s);break}}returne}}).call(this),"undefined"==typeofPackage&&(Package={}),function(r,n){for(vareinn)einr||(r[e]=n[e])}(Package.base64={},{Base64:a})}();
!function(){varn=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,t,o,i;t=function(n){"use strict";functione(n,e){returno(n)&&(p(A,n,e),i(k)&&k(B)),B}functionr(n){this.id=n,this.children=[],this.childrenById={}}functiont(n,e){returnO.call(n,e)&&n[e]}functiono(n){return"object"==typeofn&&null!==n}functioni(n){return"function"==typeofn}functionu(n){return"string"==typeofn}functionc(n){returnnewError("Cannot find module '"+n+"'")}functions(n){functione(e){varr=w(n,e);if(r)returnl(r,n.module);vart=c(e);if(i(E))returnE(e,n.module.id,t);throwt}returni(x)&&(e=x(e,n.module)),e.extensions=h(n).slice(0),e.resolve=function(e){varr=w(n,e);if(r)returnr.module.id;vart=c(e);if(E&&i(E.resolve))returnE.resolve(e,n.module.id,t);throwt},e}functionf(n,e){vart=this;t.parent=e=e||null,t.module=newr(n),q[n]=t,t.contents=null,t.deps={}}functionl(n,e){varr=n.module;if(!O.call(r,"exports")){vart=n.contents;if(!t){if(n.stub)returnn.stub;throwc(r.id)}if(e){r.parent=e;varo=e.children;Array.isArray(o)&&o.push(r)}i(r.useNode)&&r.useNode()||t(r.require=r.require||s(n),r.exports=n.stub||{},r,n.module.id,n.parent.module.id),r.loaded=!0}varu=r.runSetters||r.runModuleSetters;returni(u)&&u.call(r),r.exports}functiona(n){returnn&&o(n.contents)}functiond(n){returnn&&null===n.contents}functionp(n,e,r){Array.isArray(e)?(e.forEach(function(r){u(r)?n.deps[r]=n.module.id:i(r)?e=r:o(r)&&(n.stub=n.stub||{},v(r,function(e,r){n.stub[r]=e}))}),i(e)||(e=null)):i(e)||u(e)||o(e)||(e=null),e&&(n.contents=n.contents||(o(e)?{}:e),o(e)&&a(n)&&v(e,function(e,o){if(".."===o)i=n.parent;else{vari=t(n.contents,o);i||((i=n.contents[o]=newf(n.module.id.replace(/\/*$/,"/")+o,n)).options=r)}p(i,e,r)}))}functionv(n,e,r){Object.keys(n).forEach(function(r){e.call(this,n[r],r)},r)}functionh(n){returnn.options&&n.options.extensions||P}functionm(n,e,r){for(;n&&!a(n);)n=n.parent;if(!n||!e||"."===e)returnn;if(".."===e)returnn.parent;varo=t(n.contents,e);if(r&&(!o||a(o)))for(vari=0;i<r.length;++i){varu=t(n.contents,e+r[i]);if(u&&!a(u))returnu}returno}functiony(n,e,r){vart=e.split("/");returnt.every(function(e,o){returnn=o<t.length-1?m(n,e):m(n,e,r)}),n}functionb(n,e){varr=e&&e.module;n&&r&&(n.childrenById[r.id]=r)}functionw(n,e,r,t){varr=r||n.module,o=h(n);for(n="/"===e.charAt(0)?y(A,e,o):"."===e.charAt(0)?y(n,e,o):g(n,e,o);a(n);){if((t=t||[]).indexOf(n)<0){t.push(n);vari=m(n,"package.json"),c,s=i&&l(i,r);if(s&&I.some(function(n){returnu(c=s[n])})&&(b(r,i),n=y(n,c,o)||w(n,c,r,t)))continue}n=m(n,"index.js")}returnn&&u(n.contents)&&(n=w(n,n.contents,r,t)),b(r,n),n}functiong(n,e,r){if(i(j)&&(e=j(e,n.module.id)),u(e)){for(vart;n&&!t;n=n.parent)t=a(n)&&y(n,"node_modules/"+e,r);returnt}}varP=(n=n||{}).extensions||[".js",".json"],k=n.onInstall,x=n.wrapRequire,j=n.override,E=n.fallback,I=n.mainFields||(n.browser?["browser","main"]:["main"]),O={}.hasOwnProperty,q={},A=newf("/",newf("/..")),B=s(A);e.fetch=function(n){thrownewError("fetch not implemented")},r.prototype.resolve=function(n){returnthis.require.resolve(n)};varM,R;returnr.prototype.prefetch=function(n){functionr(n){vare=t(q,n.id);d(e)&&!e.pending&&(e.pending=!0,(u=u||{})[n.id]={module:e.module,deps:Object.keys(e.deps),options:e.options,stub:e.stub},v(e.deps,function(n,r){w(e,r)}),v(n.childrenById,r))}varo=this,i=t(q,o.id),u;M=M||Promise.resolve();varc=R=R||M;returnR=M.then(function(){vart=o.resolve(n);returnv(o.childrenById,r),Promise.resolve(u&&e.fetch(u)).then(function(n){functionr(){returnn&&e(n),t}returnc.then(r,r)})})},e.Module=r,e},"object"==typeofexports&&(exports.makeInstaller=t),function(){o={},"function"==typeofProfile&&process.env.METEOR_PROFILE&&(o.wrapRequire=function(n){returnProfile(function(n){return"require("+JSON.stringify(n)+")"},n)})}.call(this),function(){o.browser=!0,i=t(o)}.call(this),"undefined"==typeofPackage&&(Package={}),function(n,e){for(varrine)rinn||(n[r]=e[r])}(Package["modules-runtime"]={},{meteorInstall:i})}();
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,n,o,i,a,c=(0,Package.modules.meteorInstall)({node_modules:{meteor:{"es5-shim":{"client.js":function(t){t("./import_globals.js"),t("es5-shim/es5-shim.js"),t("es5-shim/es5-sham.js"),t("./console.js"),t("./export_globals.js")},"console.js":function(){functiont(t){vare=console[t];e&&"object"==typeofe&&(console[t]=function(){returnFunction.prototype.apply.call(e,console,arguments)})}vare=Object.prototype.hasOwnProperty;if("object"==typeofconsole&&"object"==typeofconsole.log)for(varrinconsole)e.call(console,r)&&t(r)},"export_globals.js":function(){e.Date!==n&&(e.Date=n),e.parseInt!==o&&(e.parseInt=o),e.parseFloat!==i&&(e.parseFloat=i);vart=String.prototype;t.replace!==a&&(t.replace=a)},"import_globals.js":function(){n=e.Date,o=e.parseInt,i=e.parseFloat,a=String.prototype.replace},node_modules:{"es5-shim":{"es5-shim.js":function(t,e,r){!function(t,n){"use strict";"function"==typeofdefine&&define.amd?define(n):"object"==typeofe?r.exports=n():t.returnExports=n()}(this,function(){vart=Array,e=t.prototype,r=Object,a=r.prototype,c=Function,u=c.prototype,l=String,s=l.prototype,f=Number,p=f.prototype,h=e.slice,y=e.splice,d=e.push,b=e.unshift,v=e.concat,g=e.join,w=u.call,j=u.apply,O=Math.max,m=Math.min,T=a.toString,E="function"==typeofSymbol&&"symbol"==typeofSymbol.toStringTag,x,S=Function.prototype.toString,_=/^\s*class /,P=functiont(e){try{varr=S.call(e).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return_.test(r)}catch(t){return!1}},M=functiont(e){try{return!P(e)&&(S.call(e),!0)}catch(t){return!1}},I="[object Function]",D="[object GeneratorFunction]",x=functiont(e){if(!e)return!1;if("function"!=typeofe&&"object"!=typeofe)return!1;if(E)returnM(e);if(P(e))return!1;varr=T.call(e);returnr===I||r===D},k,F=RegExp.prototype.exec,U=functiont(e){try{returnF.call(e),!0}catch(t){return!1}},N="[object RegExp]";k=functiont(e){return"object"==typeofe&&(E?U(e):T.call(e)===N)};varC,A=String.prototype.valueOf,R=functiont(e){try{returnA.call(e),!0}catch(t){return!1}},$="[object String]";C=functiont(e){return"string"==typeofe||"object"==typeofe&&(E?R(e):T.call(e)===$)};varz=r.defineProperty&&function(){try{vart={};r.defineProperty(t,"x",{enumerable:!1,value:t});for(vareint)return!1;returnt.x===t}catch(t){return!1}}(),J=function(t){vare;returne=z?function(t,e,n,o){!o&&eint||r.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(t,e,r,n){!n&&eint||(t[e]=r)},functionr(n,o,i){for(varaino)t.call(o,a)&&e(n,a,o[a],i)}}(a.hasOwnProperty),G=functiont(e){varr=typeofe;returnnull===e||"object"!==r&&"function"!==r},Z=f.isNaN||functiont(e){returne!==e},Y={ToInteger:functiont(e){varr=+e;returnZ(r)?r=0:0!==r&&r!==1/0&&r!==-1/0&&(r=(r>0||-1)*Math.floor(Math.abs(r))),r},ToPrimitive:functiont(e){varr,n,o;if(G(e))returne;if(n=e.valueOf,x(n)&&(r=n.call(e),G(r)))returnr;if(o=e.toString,x(o)&&(r=o.call(e),G(r)))returnr;thrownewTypeError},ToObject:function(t){if(null==t)thrownewTypeError("can't convert "+t+" to object");returnr(t)},ToUint32:functiont(e){returne>>>0}},W=functiont(){};J(u,{bind:functiont(e){varn=this;if(!x(n))thrownewTypeError("Function.prototype.bind called on incompatible "+n);for(varo=h.call(arguments,1),i,a=function(){if(thisinstanceofi){vart=j.call(n,this,v.call(o,h.call(arguments)));returnr(t)===t?t:this}returnj.call(n,e,v.call(o,h.call(arguments)))},u=O(0,n.length-o.length),l=[],s=0;s<u;s++)d.call(l,"$"+s);returni=c("binder","return function ("+g.call(l,",")+"){ return binder.apply(this, arguments); }")(a),n.prototype&&(W.prototype=n.prototype,i.prototype=newW,W.prototype=null),i}});varX=w.bind(a.hasOwnProperty),B=w.bind(a.toString),H=w.bind(h),L=j.bind(h),q=w.bind(s.slice),K=w.bind(s.split),Q=w.bind(s.indexOf),V=w.bind(d),tt=w.bind(a.propertyIsEnumerable),et=w.bind(e.sort),rt=t.isArray||functiont(e){return"[object Array]"===B(e)},nt=1!==[].unshift(0);J(e,{unshift:function(){returnb.apply(this,ar
!function(){varn=Package.meteor.Meteor,t=Package.meteor.global,e=Package.meteor.meteorEnv,o,r=(0,Package.modules.meteorInstall)({node_modules:{meteor:{promise:{"client.js":function(n,t){n("meteor-promise").makeCompatible(t.Promise=n("./common.js").Promise)},"common.js":function(t,e){varo=this;"function"==typeofo.Promise?e.Promise=o.Promise:e.Promise=t("promise/lib/es6-extensions"),e.Promise.prototype.done=function(t,e){varo=this;arguments.length>0&&(o=this.then.apply(this,arguments)),o.then(null,function(t){n._setImmediate(function(){throwt})})}},node_modules:{"meteor-promise":{"package.json":function(n,t){t.name="meteor-promise",t.version="0.8.5",t.browser="promise_client.js",t.main="promise_server.js"},"promise_client.js":function(t,e){functiono(n){thrown}e.makeCompatible=function(t){vare=t.prototype.then;t.prototype.then=function(t,r){return"object"==typeofn&&"function"==typeofn.bindEnvironment?e.call(this,t&&n.bindEnvironment(t,o),r&&n.bindEnvironment(r,o)):e.call(this,t,r)}}}},promise:{lib:{"es6-extensions.js":function(n,t,e){"use strict";functiono(n){vart=newr(r._44);returnt._83=1,t._18=n,t}varr=n("./core.js");e.exports=r;vari=o(!0),u=o(!1),c=o(null),f=o(void0),s=o(0),a=o("");r.resolve=function(n){if(ninstanceofr)returnn;if(null===n)returnc;if(void0===n)returnf;if(!0===n)returni;if(!1===n)returnu;if(0===n)returns;if(""===n)returna;if("object"==typeofn||"function"==typeofn)try{vart=n.then;if("function"==typeoft)returnnewr(t.bind(n))}catch(n){returnnewr(function(t,e){e(n)})}returno(n)},r.all=function(n){vart=Array.prototype.slice.call(n);returnnewr(function(n,e){functiono(u,c){if(c&&("object"==typeofc||"function"==typeofc)){if(cinstanceofr&&c.then===r.prototype.then){for(;3===c._83;)c=c._18;return1===c._83?o(u,c._18):(2===c._83&&e(c._18),voidc.then(function(n){o(u,n)},e))}varf=c.then;if("function"==typeoff)returnvoidnewr(f.bind(c)).then(function(n){o(u,n)},e)}t[u]=c,0==--i&&n(t)}if(0===t.length)returnn([]);for(vari=t.length,u=0;u<t.length;u++)o(u,t[u])})},r.reject=function(n){returnnewr(function(t,e){e(n)})},r.race=function(n){returnnewr(function(t,e){n.forEach(function(n){r.resolve(n).then(t,e)})})},r.prototype.catch=function(n){returnthis.then(null,n)}},"core.js":function(n,t,e){"use strict";functiono(){}functionr(n){try{returnn.then}catch(n){returnd=n,y}}functioni(n,t){try{returnn(t)}catch(n){returnd=n,y}}functionu(n,t,e){try{n(t,e)}catch(n){returnd=n,y}}functionc(n){if("object"!=typeofthis)thrownewTypeError("Promises must be constructed via new");if("function"!=typeofn)thrownewTypeError("Promise constructor's argument is not a function");this._75=0,this._83=0,this._18=null,this._38=null,n!==o&&_(n,this)}functionf(n,t,e){returnnewn.constructor(function(r,i){varu=newc(o);u.then(r,i),s(n,newh(t,e,u))})}functions(n,t){for(;3===n._83;)n=n._18;if(c._47&&c._47(n),0===n._83)return0===n._75?(n._75=1,void(n._38=t)):1===n._75?(n._75=2,void(n._38=[n._38,t])):voidn._38.push(t);a(n,t)}functiona(n,t){v(function(){vare=1===n._83?t.onFulfilled:t.onRejected;if(null!==e){varo=i(e,n._18);o===y?p(t.promise,d):l(t.promise,o)}else1===n._83?l(t.promise,n._18):p(t.promise,n._18)})}functionl(n,t){if(t===n)returnp(n,newTypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeoft||"function"==typeoft)){vare=r(t);if(e===y)returnp(n,d);if(e===n.then&&tinstanceofc)returnn._83=3,n._18=t,voidm(n);if("function"==typeofe)returnvoid_(e.bind(t),n)}n._83=1,n._18=t,m(n)}functionp(n,t){n._83=2,n._18=t,c._71&&c._71(n,t),m(n)}functionm(n){if(1===n._75&&(s(n,n._38),n._38=null),2===n._75){for(vart=0;t<n._38.length;t++)s(n,n._38[t]);n._38=null}}functionh(n,t,e){this.onFulfilled="function"==typeofn?n:null,this.onRejected="function"==typeoft?t:null,this.promise=e}function_(n,t){vare=!1,o=u(n,function(n){e||(e=!0,l(t,n))},function(n){e||(e=!0,p(t,n))});e||o!==y||(e=!0,p(t,d))}varv=n("asap/raw"),d=null,y={};e.exports=c,c._47=null,c._71=null,c._44=o,c.prototype.then=function(n,t){if(this.constructor!==c)returnf(this,n,t);vare=newc
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,t=Package.modules.meteorInstall,o=Package.promise.Promise,a,i=t({node_modules:{meteor:{"babel-runtime":{"babel-runtime.js":function(e,n){n.meteorBabelHelpers=e("meteor-babel-helpers"),n.checkHelper=functione(n){return!1};try{varr=e("babel-runtime/regenerator")}catch(e){thrownewError(["The babel-runtime npm package could not be found in your node_modules ","directory. Please run the following command to install it:",""," meteor npm install --save babel-runtime",""].join("\n"))}if(r&&"function"==typeofo&&"function"==typeofo.asyncApply){vart=r.async;r.async=function(){returno.asyncApply(t,r,arguments)}}},node_modules:{"meteor-babel-helpers":{"package.json":function(e,n){n.name="meteor-babel-helpers",n.version="0.0.3",n.main="index.js"},"index.js":function(e,n,r){functiont(){vare={},n="t";try{Object.defineProperty(e,"t",{enumerable:!1,value:e});for(varrine)if("t"===r)return!1}catch(e){return!1}returne.t===e}functiono(e){returne}functioni(e){if(Array.isArray(e)){for(varn={},r=Object.keys(e),t=r.length,o=0;o<t;++o){vara=r[o];n[a]=e[a]}returnn}returne}a=r.exports={sanitizeForInObject:t()?o:i,_sanitizeForInObjectHard:i}}}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/babel-runtime/babel-runtime.js");"undefined"==typeofPackage&&(Package={}),function(e,n){for(varrinn)rine||(e[r]=n[r])}(Package["babel-runtime"]=i,{meteorBabelHelpers:a})}();
!function(){vare=Package.meteor.Meteor,s=Package.meteor.global,o=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,n=Package.promise.Promise,c,t,m,a=r({node_modules:{meteor:{"ecmascript-runtime-client":{"runtime.js":function(e,s,o){try{e("core-js/modules/es6.symbol"),e("core-js/modules/es6.map"),e("core-js/modules/es6.set");varr=function(){try{returne("core-js/modules/_core")}catch(s){returne("core-js/modules/$.core")}}()}catch(e){thrownewError(["The core-js npm package could not be found in your node_modules ","directory. Please run the following command to install it:",""," meteor npm install --save core-js",""].join("\n"))}c=s.Symbol=r.Symbol,t=s.Map=r.Map,m=s.Set=r.Set,e("core-js/es6/array"),e("core-js/es6/function"),e("core-js/es6/math"),e("core-js/es6/object"),e("core-js/es6/regexp"),e("core-js/es6/string"),e("core-js/es6/weak-map"),e("core-js/es6/weak-set"),e("core-js/es7/array"),e("core-js/es7/object"),e("core-js/modules/es6.number.epsilon"),e("core-js/modules/es6.number.is-finite"),e("core-js/modules/es6.number.is-integer"),e("core-js/modules/es6.number.is-nan"),e("core-js/modules/es6.number.is-safe-integer"),e("core-js/modules/es6.number.max-safe-integer"),e("core-js/modules/es6.number.min-safe-integer"),e("core-js/modules/es6.number.parse-float"),e("core-js/modules/es6.number.parse-int"),e("core-js/modules/es6.typed.uint8-array"),e("core-js/modules/es6.typed.uint32-array")}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/ecmascript-runtime-client/runtime.js");"undefined"==typeofPackage&&(Package={}),function(e,s){for(varoins)oine||(e[o]=s[o])}(Package["ecmascript-runtime-client"]=a,{Symbol:c,Map:t,Set:m})}();
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package.base64.Base64,u=Package.modules.meteorInstall,a=Package["babel-runtime"].meteorBabelHelpers,i=Package.promise.Promise,o=Package["ecmascript-runtime-client"].Symbol,f=Package["ecmascript-runtime-client"].Map,c=Package["ecmascript-runtime-client"].Set,l,s,d=u({node_modules:{meteor:{ejson:{"ejson.js":function(n,t,u){functiona(e){returne&&e.__esModule?e:{default:e}}vari=a(n("babel-runtime/helpers/typeof"));u.export({EJSON:function(){returno}});varo={},f={},c=function(e,n){return{}.hasOwnProperty.call(e,n)},l=function(e){returnnull!=e&&c(e,"callee")},s=function(e){returnNumber.isNaN(e)||e===1/0||e===-1/0};o.addType=function(e,n){if(c(f,e))thrownewError("Type "+e+" already present");f[e]=n};vard=[{matchJSONValue:function(e){returnc(e,"$date")&&1===Object.keys(e).length},matchObject:function(e){returneinstanceofDate},toJSONValue:function(e){return{$date:e.getTime()}},fromJSONValue:function(e){returnnewDate(e.$date)}},{matchJSONValue:function(e){returnc(e,"$regexp")&&c(e,"$flags")&&2===Object.keys(e).length},matchObject:function(e){returneinstanceofRegExp},toJSONValue:function(e){return{$regexp:e.source,$flags:e.flags}},fromJSONValue:function(e){returnnewRegExp(e.$regexp,e.$flags.slice(0,50).replace(/[^gimuy]/g,"").replace(/(.)(?=.*\1)/g,""))}},{matchJSONValue:function(e){returnc(e,"$InfNaN")&&1===Object.keys(e).length},matchObject:s,toJSONValue:function(e){varn=void0;returnn=Number.isNaN(e)?0:e===1/0?1:-1,{$InfNaN:n}},fromJSONValue:function(e){returne.$InfNaN/0}},{matchJSONValue:function(e){returnc(e,"$binary")&&1===Object.keys(e).length},matchObject:function(e){return"undefined"!=typeofUint8Array&&einstanceofUint8Array||e&&c(e,"$Uint8ArrayPolyfill")},toJSONValue:function(e){return{$binary:r.encode(e)}},fromJSONValue:function(e){returnr.decode(e.$binary)}},{matchJSONValue:function(e){returnc(e,"$escape")&&1===Object.keys(e).length},matchObject:function(e){varn=!1;if(e){vart=Object.keys(e).length;1!==t&&2!==t||(n=d.some(function(n){returnn.matchJSONValue(e)}))}returnn},toJSONValue:function(e){varn={};returnObject.keys(e).forEach(function(t){n[t]=o.toJSONValue(e[t])}),{$escape:n}},fromJSONValue:function(e){varn={};returnObject.keys(e.$escape).forEach(function(t){n[t]=o.fromJSONValue(e.$escape[t])}),n}},{matchJSONValue:function(e){returnc(e,"$type")&&c(e,"$value")&&2===Object.keys(e).length},matchObject:function(e){returno._isCustomType(e)},toJSONValue:function(n){vart=e._noYieldsAllowed(function(){returnn.toJSONValue()});return{$type:n.typeName(),$value:t}},fromJSONValue:function(n){vart=n.$type;if(!c(f,t))thrownewError("Custom EJSON type "+t+" is not defined");varr=f[t];returne._noYieldsAllowed(function(){returnr(n.$value)})}}];o._isCustomType=function(e){returne&&"function"==typeofe.toJSONValue&&"function"==typeofe.typeName&&c(f,e.typeName())},o._getTypes=function(){returnf},o._getConverters=function(){returnd};vary=function(e){for(varn=0;n<d.length;n++){vart=d[n];if(t.matchObject(e))returnt.toJSONValue(e)}},v=function(e){if(null===e)returnnull;varn=y(e);returnvoid0!==n?n:"object"!==(void0===e?"undefined":(0,i.default)(e))?e:(Object.keys(e).forEach(function(n){vart=e[n];if("object"===(void0===t?"undefined":(0,i.default)(t))||void0===t||s(t)){varr=y(t);r?e[n]=r:v(t)}}),e)};o._adjustTypesToJSONValue=v,o.toJSONValue=function(e){varn=y(e);if(void0!==n)returnn;vart=e;return"object"===(void0===e?"undefined":(0,i.default)(e))&&(t=o.clone(e),v(t)),t};varm=function(e){if("object"===(void0===e?"undefined":(0,i.default)(e))&&null!==e){varn=Object.keys(e);if(n.length<=2&&n.every(function(e){return"string"==typeofe&&"$"===e.substr(0,1)}))for(vart=0;t<d.length;t++){varr=d[t];if(r.matchJSONValue(e))returnr.fromJSONValue(e)}}returne},O=function(e){if(null===e)returnnull;varn=m(e);returnn!==e?n:"object"!==(void0===e?"undefined":(0,i.default)(e))?e:(Object.keys(e).forEach(function(n){vart=e[n];if("object"===(void0===t?"undefined":(0,i.default)(t))){varr=m(t)
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,d=Package.meteor.meteorEnv,i=Package.underscore._,a=Package.ejson.EJSON,r;(function(){(r={}).diffQueryChanges=function(e,n,d,i,a){e?r.diffQueryOrderedChanges(n,d,i,a):r.diffQueryUnorderedChanges(n,d,i,a)},r.diffQueryUnorderedChanges=function(e,n,d,o){varf=(o=o||{}).projectionFn||a.clone;if(d.movedBefore)thrownewError("_diffQueryUnordered called with a movedBefore observer!");n.forEach(function(n,o){vart=e.get(o);if(t){if(d.changed&&!a.equals(t,n)){varc=f(n),u=f(t),h=r.makeChangedFields(c,u);i.isEmpty(h)||d.changed(o,h)}}elseif(d.added){varl=f(n);deletel._id,d.added(n._id,l)}}),d.removed&&e.forEach(function(e,i){n.has(i)||d.removed(i)})},r.diffQueryOrderedChanges=function(n,d,o,f){vart=(f=f||{}).projectionFn||a.clone,c={};i.each(d,function(n){c[n._id]&&e._debug("Duplicate _id in new_results"),c[n._id]=!0});varu={};i.each(n,function(n,d){n._idinu&&e._debug("Duplicate _id in old_results"),u[n._id]=d});for(varh=[],l=0,s=d.length,g=newArray(s),v=newArray(s),_=function(e){returnu[d[e]._id]},m=0;m<s;m++)if(void0!==u[d[m]._id]){for(vary=l;y>0&&!(_(g[y-1])<_(m));)y--;v[m]=0===y?-1:g[y-1],g[y]=m,y+1>l&&(l=y+1)}for(vark=0===l?-1:g[l-1];k>=0;)h.push(k),k=v[k];h.reverse(),h.push(d.length),i.each(n,function(e){c[e._id]||o.removed&&o.removed(e._id)});varp=0;i.each(h,function(e){for(vara=d[e]?d[e]._id:null,f,c,h,l,s,g=p;g<e;g++)c=d[g],i.has(u,c._id)?(f=n[u[c._id]],l=t(c),s=t(f),h=r.makeChangedFields(l,s),i.isEmpty(h)||o.changed&&o.changed(c._id,h),o.movedBefore&&o.movedBefore(c._id,a)):(delete(h=t(c))._id,o.addedBefore&&o.addedBefore(c._id,h,a),o.added&&o.added(c._id,h));a&&(c=d[e],f=n[u[c._id]],l=t(c),s=t(f),h=r.makeChangedFields(l,s),i.isEmpty(h)||o.changed&&o.changed(c._id,h)),p=e+1})},r.diffObjects=function(e,n,d){i.each(e,function(e,a){i.has(n,a)?d.both&&d.both(a,e,n[a]):d.leftOnly&&d.leftOnly(a,e)}),d.rightOnly&&i.each(n,function(n,a){i.has(e,a)||d.rightOnly(a,n)})},r.makeChangedFields=function(e,n){vard={};returnr.diffObjects(n,e,{leftOnly:function(e,n){d[e]=void0},rightOnly:function(e,n){d[e]=n},both:function(e,n,i){a.equals(n,i)||(d[e]=i)}}),d},r.applyChanges=function(e,n){i.each(n,function(n,d){void0===n?deletee[d]:e[d]=n})}}).call(this),"undefined"==typeofPackage&&(Package={}),function(e,n){for(vardinn)dine||(e[d]=n[d])}(Package["diff-sequence"]={},{DiffSequence:r})}();
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package.underscore._,o=Package.modules.meteorInstall,i=Package["babel-runtime"].meteorBabelHelpers,a=Package.promise.Promise,d=Package["ecmascript-runtime-client"].Symbol,c=Package["ecmascript-runtime-client"].Map,u=Package["ecmascript-runtime-client"].Set,s,p=o({node_modules:{meteor:{random:{"random.js":function(n){functiont(){returnnewd(d.Type.ALEA,{seeds:[newDate,c,u,p,Math.random()]})}if(e.isServer)varr=Npm.require("crypto");varo=function(){functione(){vare=4022871197,n=function(n){n=n.toString();for(vart=0;t<n.length;t++){varr=.02519603282416938*(e+=n.charCodeAt(t));r-=e=r>>>0,e=(r*=e)>>>0,e+=4294967296*(r-=e)}return2.3283064365386963e-10*(e>>>0)};returnn.version="Mash 0.9",n}returnfunction(n){vart=0,r=0,o=0,i=1;0==n.length&&(n=[+newDate]);vara=e();t=a(" "),r=a(" "),o=a(" ");for(vard=0;d<n.length;d++)(t-=a(n[d]))<0&&(t+=1),(r-=a(n[d]))<0&&(r+=1),(o-=a(n[d]))<0&&(o+=1);a=null;varc=function(){vare=2091639*t+2.3283064365386963e-10*i;returnt=r,r=o,o=e-(i=0|e)};returnc.uint32=function(){return4294967296*c()},c.fract53=function(){returnc()+1.1102230246251565e-16*(2097152*c()|0)},c.version="Alea 0.9",c.args=n,c}(Array.prototype.slice.call(arguments))},i="23456789ABCDEFGHJKLMNPQRSTWXYZabcdefghijkmnopqrstuvwxyz",a="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",d=function(e,n){vart=this;if(t.type=e,!d.Type[e])thrownewError("Unknown random generator type: "+e);if(e===d.Type.ALEA){if(!n.seeds)thrownewError("No seeds were provided for Alea PRNG");t.alea=o.apply(null,n.seeds)}};d.Type={NODE_CRYPTO:"NODE_CRYPTO",BROWSER_CRYPTO:"BROWSER_CRYPTO",ALEA:"ALEA"},d.prototype.fraction=function(){vare=this;if(e.type===d.Type.ALEA)returne.alea();if(e.type===d.Type.NODE_CRYPTO)return2.3283064365386963e-10*parseInt(e.hexString(8),16);if(e.type===d.Type.BROWSER_CRYPTO){varn=newUint32Array(1);returnwindow.crypto.getRandomValues(n),2.3283064365386963e-10*n[0]}thrownewError("Unknown random generator type: "+e.type)},d.prototype.hexString=function(e){if(this.type===d.Type.NODE_CRYPTO){varn=Math.ceil(e/2),t;try{t=r.randomBytes(n)}catch(e){t=r.pseudoRandomBytes(n)}returnt.toString("hex").substring(0,e)}returnthis._randomString(e,"0123456789abcdef")},d.prototype._randomString=function(e,n){for(vart=this,r=[],o=0;o<e;o++)r[o]=t.choice(n);returnr.join("")},d.prototype.id=function(e){varn=this;returnvoid0===e&&(e=17),n._randomString(e,i)},d.prototype.secret=function(e){varn=this;returnvoid0===e&&(e=43),n._randomString(e,a)},d.prototype.choice=function(e){varn=Math.floor(this.fraction()*e.length);return"string"==typeofe?e.substr(n,1):e[n]};varc="undefined"!=typeofwindow&&window.innerHeight||"undefined"!=typeofdocument&&document.documentElement&&document.documentElement.clientHeight||"undefined"!=typeofdocument&&document.body&&document.body.clientHeight||1,u="undefined"!=typeofwindow&&window.innerWidth||"undefined"!=typeofdocument&&document.documentElement&&document.documentElement.clientWidth||"undefined"!=typeofdocument&&document.body&&document.body.clientWidth||1,p="undefined"!=typeofnavigator&&navigator.userAgent||"";(s=e.isServer?newd(d.Type.NODE_CRYPTO):"undefined"!=typeofwindow&&window.crypto&&window.crypto.getRandomValues?newd(d.Type.BROWSER_CRYPTO):t()).createWithSeeds=function(){for(vare=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];if(0===n.length)thrownewError("No seeds were provided");returnnewd(d.Type.ALEA,{seeds:n})},s.insecure=t()},"deprecated.js":function(){e.uuid=function(){for(vare="0123456789abcdef",n=[],t=0;t<36;t++)n[t]=s.choice(e);returnn[14]="4",n[19]=e.substr(3&parseInt(n[19],16)|8,1),n[8]=n[13]=n[18]=n[23]="-",n.join("")}}}}}},{extensions:[".js",".json"]});p("./node_modules/meteor/random/random.js"),p("./node_modules/meteor/random/deprecated.js"),"undefined"==typeofPackage&&(Package={}),function(e,n){for(vartinn)tine||(e[t]=n[t])}(Package.random={},{Random:s})}();
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,o=Package.ejson.EJSON,n=Package["id-map"].IdMap,i=Package.random.Random,a;(function(){(a={})._looksLikeObjectID=function(t){return24===t.length&&t.match(/^[0-9a-f]*$/)},a.ObjectID=function(t){vare=this;if(t){if(t=t.toLowerCase(),!a._looksLikeObjectID(t))thrownewError("Invalid hexadecimal string for creating an ObjectID");e._str=t}elsee._str=i.hexString(24)},a.ObjectID.prototype.toString=function(){return'ObjectID("'+this._str+'")'},a.ObjectID.prototype.equals=function(t){vare=this;returntinstanceofa.ObjectID&&e.valueOf()===t.valueOf()},a.ObjectID.prototype.clone=function(){vart=this;returnnewa.ObjectID(t._str)},a.ObjectID.prototype.typeName=function(){return"oid"},a.ObjectID.prototype.getTimestamp=function(){vart=this;returnparseInt(t._str.substr(0,8),16)},a.ObjectID.prototype.valueOf=a.ObjectID.prototype.toJSONValue=a.ObjectID.prototype.toHexString=function(){returnthis._str},o.addType("oid",function(t){returnnewa.ObjectID(t)}),a.idStringify=function(t){if(tinstanceofa.ObjectID)returnt.valueOf();if("string"==typeoft)return""===t?t:"-"===t.substr(0,1)||"~"===t.substr(0,1)||a._looksLikeObjectID(t)||"{"===t.substr(0,1)?"-"+t:t;if(void0===t)return"-";if("object"==typeoft&&null!==t)thrownewError("Meteor does not currently support objects other than ObjectID as ids");return"~"+JSON.stringify(t)},a.idParse=function(t){return""===t?t:"-"===t?void0:"-"===t.substr(0,1)?t.substr(1):"~"===t.substr(0,1)?JSON.parse(t.substr(1)):a._looksLikeObjectID(t)?newa.ObjectID(t):t}}).call(this),"undefined"==typeofPackage&&(Package={}),function(t,e){for(varrine)rint||(t[r]=e[r])}(Package["mongo-id"]={},{MongoID:a})}();
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.underscore._,i;(function(){vart=function(t,e,r,n){return{key:t,value:e,next:r,prev:n}};i=function(){vart=this;t._dict={},t._first=null,t._last=null,t._size=0;vare=n.toArray(arguments);t._stringify=function(t){returnt},"function"==typeofe[0]&&(t._stringify=e.shift()),n.each(e,function(e){t.putBefore(e[0],e[1],null)})},n.extend(i.prototype,{_k:function(t){return" "+this._stringify(t)},empty:function(){return!this._first},size:function(){returnthis._size},_linkEltIn:function(t){vare=this;t.next?(t.prev=t.next.prev,t.next.prev=t,t.prev&&(t.prev.next=t)):(t.prev=e._last,e._last&&(e._last.next=t),e._last=t),null!==e._first&&e._first!==t.next||(e._first=t)},_linkEltOut:function(t){vare=this;t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next),t===e._last&&(e._last=t.prev),t===e._first&&(e._first=t.next)},putBefore:function(e,r,n){vari=this;if(i._dict[i._k(e)])thrownewError("Item "+e+" already present in OrderedDict");varo=n?t(e,r,i._dict[i._k(n)]):t(e,r,null);if(void0===o.next)thrownewError("could not find item to put this one before");i._linkEltIn(o),i._dict[i._k(e)]=o,i._size++},append:function(t,e){this.putBefore(t,e,null)},remove:function(t){vare=this,r=e._dict[e._k(t)];if(void0===r)thrownewError("Item "+t+" not present in OrderedDict");returne._linkEltOut(r),e._size--,deletee._dict[e._k(t)],r.value},get:function(t){vare=this;if(e.has(t))returne._dict[e._k(t)].value},has:function(t){vare=this;returnn.has(e._dict,e._k(t))},forEach:function(t){for(vare=0,r=this._first;null!==r;){if(t(r.value,r.key,e)===i.BREAK)return;r=r.next,e++}},first:function(){vart=this;if(!t.empty())returnt._first.key},firstValue:function(){vart=this;if(!t.empty())returnt._first.value},last:function(){vart=this;if(!t.empty())returnt._last.key},lastValue:function(){vart=this;if(!t.empty())returnt._last.value},prev:function(t){vare=this;if(e.has(t)){varr=e._dict[e._k(t)];if(r.prev)returnr.prev.key}returnnull},next:function(t){vare=this;if(e.has(t)){varr=e._dict[e._k(t)];if(r.next)returnr.next.key}returnnull},moveBefore:function(t,e){varr=this,n=r._dict[r._k(t)],i=e?r._dict[r._k(e)]:null;if(void0===n)thrownewError("Item to move is not present");if(void0===i)thrownewError("Could not find element to move this one before");i!==n.next&&(r._linkEltOut(n),n.next=i,r._linkEltIn(n))},indexOf:function(t){vare=this,r=null;returne.forEach(function(n,o,f){if(e._k(o)===e._k(t))returnr=f,i.BREAK}),r},_checkRep:function(){vart=this;n.each(t._dict,function(t,e){if(e.next===e)thrownewError("Next is a loop");if(e.prev===e)thrownewError("Prev is a loop")})}}),i.BREAK={break:!0}}).call(this),"undefined"==typeofPackage&&(Package={}),function(t,e){for(varrine)rint||(t[r]=e[r])}(Package["ordered-dict"]={},{OrderedDict:i})}();
!function(){varn=Package.meteor.Meteor,t=Package.meteor.global,o=Package.meteor.meteorEnv,e,r;(function(){(e={}).active=!1,e.currentComputation=null;vart=function(n){e.currentComputation=n,e.active=!!n},o=function(){returnvoid0!==n?n._debug:"undefined"!=typeofconsole&&console.error?function(){console.error.apply(console,arguments)}:function(){}},r=function(t){void0!==n&&n._suppressed_log_expected()&&n._suppress_log(t-1)},i=function(n,t){if(l)throwt;vare=["Exception from Tracker "+n+" function:"];if(t.stack&&t.message&&t.name){vari=t.stack.indexOf(t.message);if(i<0||i>t.name.length+2){vara=t.name+": "+t.message;e.push(a)}}e.push(t.stack),r(e.length);for(varu=0;u<e.length;u++)o()(e[u])},a=function(t){returnvoid0===n||n.isClient?t:function(){varo=arguments;n._noYieldsAllowed(function(){t.apply(null,o)})}},u=1,c=[],s=!1,p=!1,f=!1,l=!1,d=[],h=function(){s||(void0!==n?n._setImmediate(e._runFlush):setTimeout(e._runFlush,0),s=!0)},v=!1;e.Computation=function(n,t,o){if(!v)thrownewError("Tracker.Computation constructor is private; use Tracker.autorun");v=!1;vare=this;e.stopped=!1,e.invalidated=!1,e.firstRun=!0,e._id=u++,e._onInvalidateCallbacks=[],e._onStopCallbacks=[],e._parent=t,e._func=n,e._onError=o,e._recomputing=!1;varr=!0;try{e._compute(),r=!1}finally{e.firstRun=!1,r&&e.stop()}},e.Computation.prototype.onInvalidate=function(n){vart=this;if("function"!=typeofn)thrownewError("onInvalidate requires a function");t.invalidated?e.nonreactive(function(){a(n)(t)}):t._onInvalidateCallbacks.push(n)},e.Computation.prototype.onStop=function(n){vart=this;if("function"!=typeofn)thrownewError("onStop requires a function");t.stopped?e.nonreactive(function(){a(n)(t)}):t._onStopCallbacks.push(n)},e.Computation.prototype.invalidate=function(){varn=this;if(!n.invalidated){n._recomputing||n.stopped||(h(),c.push(this)),n.invalidated=!0;for(vart=0,o;o=n._onInvalidateCallbacks[t];t++)e.nonreactive(function(){a(o)(n)});n._onInvalidateCallbacks=[]}},e.Computation.prototype.stop=function(){varn=this;if(!n.stopped){n.stopped=!0,n.invalidate();for(vart=0,o;o=n._onStopCallbacks[t];t++)e.nonreactive(function(){a(o)(n)});n._onStopCallbacks=[]}},e.Computation.prototype._compute=function(){varn=this;n.invalidated=!1;varo=e.currentComputation;t(n);varr=f;f=!0;try{a(n._func)(n)}finally{t(o),f=r}},e.Computation.prototype._needsRecompute=function(){varn=this;returnn.invalidated&&!n.stopped},e.Computation.prototype._recompute=function(){varn=this;n._recomputing=!0;try{if(n._needsRecompute())try{n._compute()}catch(t){n._onError?n._onError(t):i("recompute",t)}}finally{n._recomputing=!1}},e.Computation.prototype.flush=function(){varn=this;n._recomputing||n._recompute()},e.Computation.prototype.run=function(){varn=this;n.invalidate(),n.flush()},e.Dependency=function(){this._dependentsById={}},e.Dependency.prototype.depend=function(n){if(!n){if(!e.active)return!1;n=e.currentComputation}vart=this,o=n._id;return!(oint._dependentsById)&&(t._dependentsById[o]=n,n.onInvalidate(function(){deletet._dependentsById[o]}),!0)},e.Dependency.prototype.changed=function(){varn=this;for(vartinn._dependentsById)n._dependentsById[t].invalidate()},e.Dependency.prototype.hasDependents=function(){varn=this;for(vartinn._dependentsById)return!0;return!1},e.flush=function(n){e._runFlush({finishSynchronously:!0,throwFirstError:n&&n._throwFirstError})},e.inFlush=function(){returnp},e._runFlush=function(n){if(e.inFlush())thrownewError("Can't call Tracker.flush while flushing");if(f)thrownewError("Can't flush inside Tracker.autorun");p=!0,s=!0,l=!!(n=n||{}).throwFirstError;vart=0,o=!1;try{for(;c.length||d.length;){for(;c.length;){varr=c.shift();if(r._recompute(),r._needsRecompute()&&c.unshift(r),!n.finishSynchronously&&++t>1e3)returnvoid(o=!0)}if(d.length){vara=d.shift();try{a()}catch(n){i("afterFlush",n)}}}o=!0}finally{if(o||(p=!1,e._runFlush({finishSynchronously:n.finishSynchronously,throwFirstError:!1})),s=!1,p=!1,c.length||d.length){if(n.finishSynchronously)thrownewError("still have more to do?");setTimeout(h,10)}}},e.autorun=fu
!function(){vare=Package.meteor.Meteor,r=Package.meteor.global,t=Package.meteor.meteorEnv,n=Package["diff-sequence"].DiffSequence,i=Package.ejson.EJSON,o=Package["geojson-utils"].GeoJSON,a=Package["id-map"].IdMap,s=Package["mongo-id"].MongoID,c=Package["ordered-dict"].OrderedDict,u=Package.random.Random,f=Package.tracker.Tracker,d=Package.tracker.Deps,l=Package.modules.meteorInstall,h=Package["babel-runtime"].meteorBabelHelpers,p=Package.promise.Promise,v=Package["ecmascript-runtime-client"].Symbol,m=Package["ecmascript-runtime-client"].Map,y=Package["ecmascript-runtime-client"].Set,_,g,b,w,E=l({node_modules:{meteor:{minimongo:{"minimongo_client.js":function(e,r,t){t.watch(e("./minimongo_common.js"))},"common.js":function(e,r,t){functionn(e){returne&&e.__esModule?e:{default:e}}functiona(e){return0===e.length?h:1===e.length?e[0]:function(r){vart={};returnt.result=e.every(function(e){varn=e(r);returnn.result&&void0!==n.distance&&void0===t.distance&&(t.distance=n.distance),n.result&&n.arrayIndices&&(t.arrayIndices=n.arrayIndices),n.result}),t.result||(deletet.distance,deletet.arrayIndices),t}}functions(e,r,t){if(!Array.isArray(e)||0===e.length)throwError("$and/$or/$nor must be nonempty array");returne.map(function(e){if(!T._isPlainObject(e))throwError("$or/$and/$nor entries need to be full objects");returnc(e,r,{inElemMatch:t})})}functionc(e,r){vart=arguments.length>2&&void0!==arguments[2]?arguments[2]:{},n=Object.keys(e).map(function(n){vari=e[n];if("$"===n.substr(0,1)){if(!U.call(N,n))thrownewError("Unrecognized logical operator: "+n);returnr._isSimple=!1,N[n](i,r,t.inElemMatch)}if(t.inElemMatch||r._recordPathUsed(n),"function"!=typeofi){varo=j(n),a=u(i,r,t.isRoot);returnfunction(e){returna(o(e))}}}).filter(Boolean);returnK(n)}functionu(e,r,t){returneinstanceofRegExp?(r._isSimple=!1,f(q(e))):$(e)?k(e,r,t):f(l(e))}functionf(e){varr=arguments.length>1&&void0!==arguments[1]?arguments[1]:{};returnfunction(t){varn=r.dontExpandLeafArrays?t:p(t,r.dontIncludeLeafArrays),i={};returni.result=n.some(function(r){vart=e(r.value);return"number"==typeoft&&(r.arrayIndices||(r.arrayIndices=[t]),t=!0),t&&r.arrayIndices&&(i.arrayIndices=r.arrayIndices),t}),i}}functiond(e,r){vart=S(e),n=S(r);returnMath.hypot(t[0]-n[0],t[1]-n[1])}functionl(e){if($(e))throwError("Can't create equalityValueSelector for operator object");returnnull==e?function(e){returnnull==e}:function(r){returnT._f._equal(e,r)}}functionh(e){return{result:!0}}functionp(e,r){vart=[];returne.forEach(function(e){varn=Array.isArray(e.value);r&&n&&!e.dontIterate||t.push({arrayIndices:e.arrayIndices,value:e.value}),n&&!e.dontIterate&&e.value.forEach(function(r,n){t.push({arrayIndices:(e.arrayIndices||[]).concat(n),value:r})})}),t}functionv(e,r){if(Number.isInteger(e)&&e>=0)returnnewUint8Array(newInt32Array([e]).buffer);if(i.isBinary(e))returnnewUint8Array(e.buffer);if(Array.isArray(e)&&e.every(function(e){returnNumber.isInteger(e)&&e>=0})){vart=newArrayBuffer(1+(Math.max.apply(Math,(0,R.default)(e))>>3)),n=newUint8Array(t);returne.forEach(function(e){n[e>>3]|=1<<(7&e)}),n}throwError("operand to "+r+" must be a numeric bitmask (representable as a non-negative 32-bit signed integer), a bindata bitmask or an array with bit positions (non-negative integers)")}functionm(e,r){if(Number.isSafeInteger(e)){vart=newArrayBuffer(Math.max(r,2*Uint32Array.BYTES_PER_ELEMENT)),n=newUint32Array(t,0,2);returnn[0]=e%4294967296|0,n[1]=e/4294967296|0,e<0&&(n=newUint8Array(t,2)).forEach(function(e,r){n[r]=255}),newUint8Array(t)}return!!i.isBinary(e)&&newUint8Array(e.buffer)}functiony(e,r,t){Object.keys(e).forEach(function(e){if(e.length>r.length&&0===e.indexOf(r+".")||r.length>e.length&&0===r.indexOf(e+"."))thrownewError("cannot infer query fields to set, both paths '"+e+"' and '"+r+"' are matched");if(e===r)thrownewError("cannot infer query fields to set, path '"+r+"' is matched twice")}),e[r]=t}functionb(e){returnfunction(r){return{result:!e(r).result}}}functionw(e){returnArray.isArray(e)||T._isPlainObject(e)}functionE
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,a=Package.underscore._,i=Package.ejson.EJSON,o,c,s=r({node_modules:{meteor:{check:{"match.js":function(t,n){varr=newe.EnvironmentVariable,o=t("./isPlainObject.js").isPlainObject,c=n.check=function(e,t){varn=r.getOrNullIfOutsideFiber();n&&n.checking(e);vara=y(e,t);if(a){vari=news.Error(a.message);throwa.path&&(i.message+=" in field "+a.path,i.path=a.path),i}},s=n.Match={Optional:function(e){returnnewu(e)},Maybe:function(e){returnnewf(e)},OneOf:function(){returnnewh(a.toArray(arguments))},Any:["__any__"],Where:function(e){returnnewl(e)},ObjectIncluding:function(e){returnnewp(e)},ObjectWithValues:function(e){returnnewg(e)},Integer:["__integer__"],Error:e.makeErrorType("Match.Error",function(t){this.message="Match error: "+t,this.path="",this.sanitizedError=newe.Error(400,"Match failed")}),test:function(e,t){return!y(e,t)},_failIfArgumentsAreNotAllChecked:function(e,t,n,a){vari=newv(n,a),o=r.withValue(i,function(){returne.apply(t,n)});returni.throwUnlessAllArgumentsHaveBeenChecked(),o}},u=function(e){this.pattern=e},f=function(e){this.pattern=e},h=function(e){if(a.isEmpty(e))thrownewError("Must provide at least one choice to Match.OneOf");this.choices=e},l=function(e){this.condition=e},p=function(e){this.pattern=e},g=function(e){this.pattern=e},m=function(e,t){if(t=t||{},null===e)return"null";if(t.onlyShowType)returntypeofe;if("object"!=typeofe)returni.stringify(e);try{JSON.stringify(e)}catch(t){if("TypeError"===t.name)returntypeofe}returni.stringify(e)},d=[[String,"string"],[Number,"number"],[Boolean,"boolean"],[Function,"function"],[void0,"undefined"]],y=function(e,t){if(t===s.Any)return!1;for(varn=0;n<d.length;++n)if(t===d[n][0])returntypeofe!==d[n][1]&&{message:"Expected "+d[n][1]+", got "+m(e,{onlyShowType:!0}),path:""};if(null===t)returnnull!==e&&{message:"Expected null, got "+m(e),path:""};if("string"==typeoft||"number"==typeoft||"boolean"==typeoft)returne!==t&&{message:"Expected "+t+", got "+m(e),path:""};if(t===s.Integer)return("number"!=typeofe||(0|e)!==e)&&{message:"Expected Integer, got "+m(e),path:""};if(t===Object&&(t=s.ObjectIncluding({})),tinstanceofArray){if(1!==t.length)return{message:"Bad pattern: arrays must have one type element"+m(t),path:""};if(!a.isArray(e)&&!a.isArguments(e))return{message:"Expected array, got "+m(e),path:""};for(varn=0,r=e.length;n<r;n++)if(i=y(e[n],t[0]))returni.path=O(n,i.path),i;return!1}if(tinstanceofl){vari;try{i=t.condition(e)}catch(e){if(!(einstanceofs.Error))throwe;return{message:e.message,path:e.path}}return!i&&{message:"Failed Match.Where validation",path:""}}if(tinstanceoff?t=s.OneOf(void0,null,t.pattern):tinstanceofu&&(t=s.OneOf(void0,t.pattern)),tinstanceofh){for(varn=0;n<t.choices.length;++n)if(!(i=y(e,t.choices[n])))return!1;return{message:"Failed Match.OneOf, Match.Maybe or Match.Optional validation",path:""}}if(tinstanceofFunction)return!(einstanceoft)&&{message:"Expected "+(t.name||"particular constructor"),path:""};varc=!1,v;if(tinstanceofp&&(c=!0,t=t.pattern),tinstanceofg&&(c=!0,v=[t.pattern],t={}),"object"!=typeoft)return{message:"Bad pattern: unknown pattern type",path:""};if("object"!=typeofe)return{message:"Expected object, got "+typeofe,path:""};if(null===e)return{message:"Expected object, got null",path:""};if(!o(e))return{message:"Expected plain object",path:""};varb={},k={};a.each(t,function(e,t){einstanceofu||einstanceoff?k[t]=e.pattern:b[t]=e});for(varw=function(e){vart=[];if(a.isObject(e))for(varnine)t.push(n);returnt}(e),n=0,r=w.length;n<r;n++){varj=w[n],E=e[j];if(a.has(b,j)){if(i=y(E,b[j]))returni.path=O(j,i.path),i;deleteb[j]}elseif(a.has(k,j)){if(i=y(E,k[j]))returni.path=O(j,i.path),i}else{if(!c)return{message:"Unknown key",path:j};if(v&&(i=y(E,v[0])))returni.path=O(j,i.path),i}}return(w=a.keys(b)).length?{message:"Missing key '"+w[0]+"'",path:""}:void0},v=function(e,t){varn=this;n.args=a.clone(e),n.args.reverse(),n.description=t};a.ex
!function(){varn=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,a=Package.underscore._,r;(function(){r=function(n){vare=this;if(n=n||{},e.nextCallbackId=0,e.callbacks={},e.bindEnvironment=!0,!1===n.bindEnvironment&&(e.bindEnvironment=!1),n.exceptionHandler)e.exceptionHandler=n.exceptionHandler;elseif(n.debugPrintExceptions){if(!a.isString(n.debugPrintExceptions))thrownewError("Hook option debugPrintExceptions should be a string");e.exceptionHandler=n.debugPrintExceptions}},a.extend(r.prototype,{register:function(t){vara=this,r=a.exceptionHandler||function(n){thrown};t=a.bindEnvironment?n.bindEnvironment(t,r):e(t,r);varo=a.nextCallbackId++;returna.callbacks[o]=t,{stop:function(){deletea.callbacks[o]}}},each:function(e){vart=this;n._nodeCodeMustBeInFiber();for(varr=a.keys(t.callbacks),o=0;o<r.length;++o){vari=r[o];if(a.has(t.callbacks,i)&&!e(t.callbacks[i]))break}}});vare=function(e,t,r){if(!t||"string"==typeoft){varo=t||"callback of async function";t=function(e){n._debug("Exception in "+o+":",e&&e.stack||e)}}returnfunction(){varn=a.toArray(arguments);returnfunction(){try{vara=e.apply(r,n)}catch(n){t(n)}returna}()}}}).call(this),"undefined"==typeofPackage&&(Package={}),function(n,e){for(vartine)tinn||(n[t]=e[t])}(Package["callback-hook"]={},{Hook:r})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,a=Package.meteor.meteorEnv,n=Package.check.check,r=Package.check.Match,i=Package.random.Random,o=Package.ejson.EJSON,c=Package.underscore._,s=Package.tracker.Tracker,l=Package.tracker.Deps,u=Package.retry.Retry,d;(function(){d={}}).call(this),function(){d.Heartbeat=function(e){vart=this;t.heartbeatInterval=e.heartbeatInterval,t.heartbeatTimeout=e.heartbeatTimeout,t._sendPing=e.sendPing,t._onTimeout=e.onTimeout,t._seenPacket=!1,t._heartbeatIntervalHandle=null,t._heartbeatTimeoutHandle=null},c.extend(d.Heartbeat.prototype,{stop:function(){vare=this;e._clearHeartbeatIntervalTimer(),e._clearHeartbeatTimeoutTimer()},start:function(){vare=this;e.stop(),e._startHeartbeatIntervalTimer()},_startHeartbeatIntervalTimer:function(){vart=this;t._heartbeatIntervalHandle=e.setInterval(c.bind(t._heartbeatIntervalFired,t),t.heartbeatInterval)},_startHeartbeatTimeoutTimer:function(){vart=this;t._heartbeatTimeoutHandle=e.setTimeout(c.bind(t._heartbeatTimeoutFired,t),t.heartbeatTimeout)},_clearHeartbeatIntervalTimer:function(){vart=this;t._heartbeatIntervalHandle&&(e.clearInterval(t._heartbeatIntervalHandle),t._heartbeatIntervalHandle=null)},_clearHeartbeatTimeoutTimer:function(){vart=this;t._heartbeatTimeoutHandle&&(e.clearTimeout(t._heartbeatTimeoutHandle),t._heartbeatTimeoutHandle=null)},_heartbeatIntervalFired:function(){vare=this;e._seenPacket||e._heartbeatTimeoutHandle||(e._sendPing(),e._startHeartbeatTimeoutTimer()),e._seenPacket=!1},_heartbeatTimeoutFired:function(){vare=this;e._heartbeatTimeoutHandle=null,e._onTimeout()},messageReceived:function(){vare=this;e._seenPacket=!0,e._heartbeatTimeoutHandle&&e._clearHeartbeatTimeoutTimer()}})}.call(this),function(){d.SUPPORTED_DDP_VERSIONS=["1","pre2","pre1"],d.parseDDP=function(t){try{vara=JSON.parse(t)}catch(a){returne._debug("Discarding message with invalid JSON",t),null}returnnull===a||"object"!=typeofa?(e._debug("Discarding non-object DDP message",t),null):(c.has(a,"cleared")&&(c.has(a,"fields")||(a.fields={}),c.each(a.cleared,function(e){a.fields[e]=void0}),deletea.cleared),c.each(["fields","params","result"],function(e){c.has(a,e)&&(a[e]=o._adjustTypesFromJSONValue(a[e]))}),a)},d.stringifyDDP=function(e){vart=o.clone(e);if(c.has(e,"fields")){vara=[];c.each(e.fields,function(e,n){void0===e&&(a.push(n),deletet.fields[n])}),c.isEmpty(a)||(t.cleared=a),c.isEmpty(t.fields)&&deletet.fields}if(c.each(["fields","params","result"],function(e){c.has(t,e)&&(t[e]=o._adjustTypesToJSONValue(t[e]))}),e.id&&"string"!=typeofe.id)thrownewError("Message id is not a string");returnJSON.stringify(t)}}.call(this),function(){d.MethodInvocation=function(e){vart=this;this.isSimulation=e.isSimulation,this._unblock=e.unblock||function(){},this._calledUnblock=!1,this.userId=e.userId,this._setUserId=e.setUserId||function(){},this.connection=e.connection,this.randomSeed=e.randomSeed,this.randomStream=null},c.extend(d.MethodInvocation.prototype,{unblock:function(){vare=this;e._calledUnblock=!0,e._unblock()},setUserId:function(e){vart=this;if(t._calledUnblock)thrownewError("Can't call setUserId in a method after calling unblock");t.userId=e,t._setUserId(e)}})}.call(this),function(){functione(){returni.hexString(20)}d.RandomStream=function(t){vara=this;this.seed=[].concat(t.seed||e()),this.sequences={}},d.RandomStream.get=function(e,t){if(t||(t="default"),!e)returni.insecure;vara=e.randomStream;returna||(e.randomStream=a=newd.RandomStream({seed:e.randomSeed})),a._sequence(t)},d.makeRpcSeed=function(e,t){returnd.RandomStream.get(e,"/rpc/"+t).hexString(20)},c.extend(d.RandomStream.prototype,{_sequence:function(e){vart=this,a=t.sequences[e]||null;if(null===a){for(varn=t.seed.concat(e),r=0;r<n.length;r++)c.isFunction(n[r])&&(n[r]=n[r]());t.sequences[e]=a=i.createWithSeeds.apply(null,n)}returna}})}.call(this),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varaint)aine||(e[a]=t[a])}(Package["ddp-common"]={},{DDPCommon:d})}();
!function(){vara=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,o=Package.underscore._,n=Package["ecmascript-runtime-client"].Symbol,r=Package["ecmascript-runtime-client"].Map,i=Package["ecmascript-runtime-client"].Set,c;(function(){c={};vare="Meteor_Reload",t={},n,r=null;try{(r=window.sessionStorage)?(r.setItem("__dummy__","1"),r.removeItem("__dummy__")):r=null}catch(a){r=null}c._getData=function(){returnr&&r.getItem(e)},r&&(n=c._getData(),r.removeItem(e)),n||(n="{}");vari={};try{"object"!=typeof(i=JSON.parse(n))&&(a._debug("Got bad data on reload. Ignoring."),i={})}catch(e){a._debug("Got invalid JSON on reload. Ignoring.")}i.reload&&"object"==typeofi.data&&(t=i.data);varl=[];c._onMigrate=function(a,e){e||(e=a,a=void0),l.push({name:a,callback:e})},c._migrationData=function(a){returnt[a]};vard=function(a,e){a=a||function(){},e=e||{};for(vart={},n=o.clone(l),r=!0;n.length;){vari=n.shift(),c=i.callback(a,e);c[0]||(r=!1),c.length>1&&i.name&&(t[i.name]=c[1])}returnr||e.immediateMigration?t:null};c._migrate=function(t,o){varn=d(t,o);if(null===n)return!1;try{vari=JSON.stringify({data:n,reload:!0})}catch(e){throwa._debug("Couldn't serialize data for migration",n),e}if(r)try{r.setItem(e,i)}catch(e){a._debug("Couldn't save data for migration to sessionStorage",e)}elsea._debug("Browser does not support sessionStorage. Not saving migration state.");return!0},c._withFreshProvidersForTest=function(a){vare=o.clone(l);l=[];try{a()}finally{l=e}};varg=!1;c._reload=function(a){if(a=a||{},!g){g=!0;vare=function(){o.defer(function(){c._migrate(e,a)&&(window.location.hash||window.location.href.endsWith("#")?window.location.reload():window.location.replace(window.location.href))})};e()}}}).call(this),function(){a._reload={onMigrate:c._onMigrate,migrationData:c._migrationData,reload:c._reload}}.call(this),"undefined"==typeofPackage&&(Package={}),function(a,e){for(vartine)tina||(a[t]=e[t])}(Package.reload={},{Reload:c})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package.check.check,r=Package.check.Match,i=Package.random.Random,s=Package.ejson.EJSON,a=Package.underscore._,u=Package.tracker.Tracker,c=Package.tracker.Deps,d=Package.retry.Retry,l=Package["id-map"].IdMap,f=Package["callback-hook"].Hook,_=Package["ddp-common"].DDPCommon,p=Package["diff-sequence"].DiffSequence,h=Package["mongo-id"].MongoID,v=Package.modules.meteorInstall,m=Package["babel-runtime"].meteorBabelHelpers,g=Package.promise.Promise,b=Package["ecmascript-runtime-client"].Symbol,y=Package["ecmascript-runtime-client"].Map,w=Package["ecmascript-runtime-client"].Set,k,S,C,E,O,D=v({node_modules:{meteor:{"ddp-client":{"sockjs-0.3.4.js":function(e){functiont(e){returne&&e.__esModule?e:{default:e}}varn=t(e("babel-runtime/helpers/typeof"));k=function(){vare=document,t=window,o={},r=function(){};r.prototype.addEventListener=function(e,t){this._listeners||(this._listeners={}),einthis._listeners||(this._listeners[e]=[]);varn=this._listeners[e];-1===o.arrIndexOf(n,t)&&n.push(t)},r.prototype.removeEventListener=function(e,t){if(this._listeners&&einthis._listeners){varn=this._listeners[e],r=o.arrIndexOf(n,t);-1===r||(n.length>1?this._listeners[e]=n.slice(0,r).concat(n.slice(r+1)):deletethis._listeners[e])}},r.prototype.dispatchEvent=function(e){vart=e.type,n=Array.prototype.slice.call(arguments,0);if(this["on"+t]&&this["on"+t].apply(this,n),this._listeners&&tinthis._listeners)for(varo=0;o<this._listeners[t].length;o++)this._listeners[t][o].apply(this,n)};vari=function(e,t){if(this.type=e,void0!==t)for(varninm.sanitizeForInObject(t))t.hasOwnProperty(n)&&(this[n]=t[n])};i.prototype.toString=function(){vare=[];for(vartinm.sanitizeForInObject(this))if(this.hasOwnProperty(t)){varn=this[t];"function"==typeofn&&(n="[function]"),e.push(t+"="+n)}return"SimpleEvent("+e.join(", ")+")"};vars=function(e){vart=this;t._events=e||[],t._listeners={}};s.prototype.emit=function(e){vart=this;if(t._verifyType(e),!t._nuked){varn=Array.prototype.slice.call(arguments,1);if(t["on"+e]&&t["on"+e].apply(t,n),eint._listeners)for(varo=0;o<t._listeners[e].length;o++)t._listeners[e][o].apply(t,n)}},s.prototype.on=function(e,t){varn=this;n._verifyType(e),n._nuked||(einn._listeners||(n._listeners[e]=[]),n._listeners[e].push(t))},s.prototype._verifyType=function(e){vart=this;-1===o.arrIndexOf(t._events,e)&&o.log("Event "+JSON.stringify(e)+" not listed "+JSON.stringify(t._events)+" in "+t)},s.prototype.nuke=function(){vare=this;e._nuked=!0;for(vart=0;t<e._events.length;t++)deletee[e._events[t]];e._listeners={}};vara="abcdefghijklmnopqrstuvwxyz0123456789_";o.random_string=function(e,t){t=t||a.length;varn,o=[];for(n=0;n<e;n++)o.push(a.substr(Math.floor(Math.random()*t),1));returno.join("")},o.random_number=function(e){returnMath.floor(Math.random()*e)},o.random_number_string=function(e){vart=(""+(e-1)).length;return(Array(t+1).join("0")+o.random_number(e)).slice(-t)},o.getOrigin=function(e){return(e+="/").split("/").slice(0,3).join("/")},o.isSameOriginUrl=function(e,n){returnn||(n=t.location.href),e.split("/").slice(0,3).join("/")===n.split("/").slice(0,3).join("/")},o.isSameOriginScheme=function(e,n){returnn||(n=t.location.href),e.split(":")[0]===n.split(":")[0]},o.getParentDomain=function(e){return/^[0-9.]*$/.test(e)?e:/^\[/.test(e)?e:/[.]/.test(e)?e.split(".").slice(1).join("."):e},o.objectExtend=function(e,t){for(varninm.sanitizeForInObject(t))t.hasOwnProperty(n)&&(e[n]=t[n]);returne};varu="_jp";o.polluteGlobalNamespace=function(){"_jp"int||(t._jp={})},o.closeFrame=function(e,t){return"c"+JSON.stringify([e,t])},o.userSetCode=function(e){return1e3===e||e>=3e3&&e<=4999},o.countRTO=function(e){vart;returnt=e>100?3*e:e+200},o.log=function(){t.console&&console.log&&console.log.apply&&console.log.apply(console,arguments)},o.bind=function(e,t){returne.bind?e.bind(t):function(){returne.apply(t,arguments)}},o.flatUrl=function(e){return-1===e.indexOf("?")&&-1===e.indexOf("#")},o.amendUrl=function(t,n){varr;if(void0==
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.minimongo.LocalCollection,o=Package.minimongo.Minimongo,i=Package.check.check,a=Package.check.Match,c=Package.ejson.EJSON,l=Package["ddp-client"].DDP,s=Package.modules.meteorInstall,d=Package["babel-runtime"].meteorBabelHelpers,u=Package.promise.Promise,f=Package["ecmascript-runtime-client"].Symbol,h=Package["ecmascript-runtime-client"].Map,_=Package["ecmascript-runtime-client"].Set,v;s({node_modules:{meteor:{"allow-deny":{"allow-deny.js":function(){functiont(e,t){returne.transform?e.transform(t):t}functionr(e,t,r){varn=t;returne.transform&&(n=c.clone(t),null!==r&&(n._id=r),n=e.transform(n)),n}functiono(e,t,r){varo=/^(?:insert|update|remove|fetch|transform)$/;if(Object.keys(r).forEach(function(e){if(!o.test(e))thrownewError(t+": Invalid key: "+e)}),e._restricted=!0,["insert","update","remove"].forEach(function(o){if(u.call(r,o)){if(!(r[o]instanceofFunction))thrownewError(t+": Value for `"+o+"` must be a function");void0===r.transform?r[o].transform=e._transform:r[o].transform=n.wrapTransform(r.transform),e._validators[o][t].push(r[o])}}),r.update||r.remove||r.fetch){if(r.fetch&&!(r.fetchinstanceofArray))thrownewError(t+": Value for `fetch` must be an array");e._updateFetch(r.fetch)}}functions(t,r){if(!n._selectorIsIdPerhapsAsObject(t))thrownewe.Error(403,"Not permitted. Untrusted code may only "+r+" documents by ID.")}functiond(){vare=(l._CurrentMethodInvocation||l._CurrentInvocation).get();returne&&e.isSimulation}varu=Object.prototype.hasOwnProperty,f=(v={CollectionPrototype:{}}).CollectionPrototype;f.allow=function(e){o(this,"allow",e)},f.deny=function(e){o(this,"deny",e)},f._defineMutationMethods=function(t){varr=this;if(t=t||{},r._restricted=!1,r._insecure=void0,r._validators={insert:{allow:[],deny:[]},update:{allow:[],deny:[]},remove:{allow:[],deny:[]},upsert:{allow:[],deny:[]},fetch:[],fetchAllFields:!1},r._name&&(r._prefix="/"+r._name+"/",r._connection&&(r._connection===e.server||e.isClient))){varn={};["insert","update","remove"].forEach(function(o){varc=r._prefix+o;if(t.useExisting){varl=e.isClient?"_methodHandlers":"method_handlers";if(r._connection[l]&&"function"==typeofr._connection[l][c])return}n[c]=function(){i(arguments,[a.Any]);vart=Array.from(arguments);try{varn=null;if("insert"!==o||u.call(t[0],"_id")||(n=r._makeNewID()),this.isSimulation)returnnull!==n&&(t[0]._id=n),r._collection[o].apply(r._collection,t);if("insert"!==o&&s(t[0],o),r._restricted){if(0===r._validators[o].allow.length)thrownewe.Error(403,"Access denied. No allow validators set on restricted collection for method '"+o+"'.");varc="_validated"+o.charAt(0).toUpperCase()+o.slice(1);returnt.unshift(this.userId),"insert"===o&&t.push(n),r[c].apply(r,t)}if(r._isInsecure())returnnull!==n&&(t[0]._id=n),r._collection[o].apply(r._collection,t);thrownewe.Error(403,"Access denied")}catch(t){throw"MongoError"===t.name||"MinimongoError"===t.name?newe.Error(409,t.toString()):t}}}),r._connection.methods(n)}},f._updateFetch=function(e){vart=this;if(!t._validators.fetchAllFields)if(e){varr=Object.create(null),n=function(e){returne&&e.forEach(function(e){returnr[e]=1})};n(t._validators.fetch),n(e),t._validators.fetch=Object.keys(r)}elset._validators.fetchAllFields=!0,t._validators.fetch=null},f._isInsecure=function(){vare=this;returnvoid0===e._insecure?!!Package.insecure:e._insecure},f._validatedInsert=function(t,n,o){vari=this;if(i._validators.insert.deny.some(function(e){returne(t,r(e,n,o))}))thrownewe.Error(403,"Access denied");if(i._validators.insert.allow.every(function(e){return!e(t,r(e,n,o))}))thrownewe.Error(403,"Access denied");null!==o&&(n._id=o),i._collection.insert.call(i._collection,n)},f._validatedUpdate=function(r,o,a,c){varl=this;if(i(a,Object),c=Object.assign(Object.create(null),c),!n._selectorIsIdPerhapsAsObject(o))thrownewError("validated update should be of a single ID");if(c.upsert)thrownewe.Error(403,"Access denied. Upserts not allowed in a restricted collection.");vars="Access
!function(){vare=Package.meteor.Meteor,o=Package.meteor.global,n=Package.meteor.meteorEnv,t=Package["allow-deny"].AllowDeny,r=Package.random.Random,i=Package.ejson.EJSON,c=Package.underscore._,l=Package.minimongo.LocalCollection,a=Package.minimongo.Minimongo,s=Package["ddp-client"].DDP,d=Package.tracker.Tracker,u=Package.tracker.Deps,f=Package["diff-sequence"].DiffSequence,_=Package["mongo-id"].MongoID,p=Package.check.check,m=Package.check.Match,g=Package.modules.meteorInstall,h=Package["babel-runtime"].meteorBabelHelpers,v=Package.promise.Promise,w=Package["ecmascript-runtime-client"].Symbol,C=Package["ecmascript-runtime-client"].Map,y=Package["ecmascript-runtime-client"].Set,b,k,I=g({node_modules:{meteor:{mongo:{"local_collection_driver.js":function(){b=function(){this.noConnCollections={}};vare=function(e,o){returneino||(o[e]=newl(e)),o[e]};c.extend(b.prototype,{open:function(o,n){vart=this;returno?n?(n._mongo_livedata_collections||(n._mongo_livedata_collections={}),e(o,n._mongo_livedata_collections)):e(o,t.noConnCollections):newl}}),b=newb},"collection.js":function(o,n,i){functiona(e,o){if(e)returno=o||c.identity,function(n,t){e(n,!n&&o(t))}}functiond(e){if(e.length&&(void0===e[e.length-1]||e[e.length-1]instanceofFunction))returne.pop()}(k={}).Collection=function(o,n){vart=this;if(!(tinstanceofk.Collection))thrownewError('use "new" to construct a Mongo.Collection');if(o||null===o||(e._debug("Warning: creating anonymous collection. It will not be saved or synchronized over the network. (Pass null for the collection name to turn off this warning.)"),o=null),null!==o&&"string"!=typeofo)thrownewError("First argument to new Mongo.Collection must be a string or null");switch(n&&n.methods&&(n={connection:n}),n&&n.manager&&!n.connection&&(n.connection=n.manager),(n=c.extend({connection:void0,idGeneration:"STRING",transform:null,_driver:void0,_preventAutopublish:!1},n)).idGeneration){case"MONGO":t._makeNewID=function(){vare=o?s.randomStream("/collection/"+o):r.insecure;returnnewk.ObjectID(e.hexString(24))};break;case"STRING":default:t._makeNewID=function(){return(o?s.randomStream("/collection/"+o):r.insecure).id()};break}if(t._transform=l.wrapTransform(n.transform),o&&null!==n.connection?n.connection?t._connection=n.connection:e.isClient?t._connection=e.connection:t._connection=e.server:t._connection=null,n._driver||(o&&t._connection===e.server&&"undefined"!=typeofMongoInternals&&MongoInternals.defaultRemoteCollectionDriver?n._driver=MongoInternals.defaultRemoteCollectionDriver():n._driver=b),t._collection=n._driver.open(o,t._connection),t._name=o,t._driver=n._driver,t._connection&&t._connection.registerStore&&!t._connection.registerStore(o,{beginUpdate:function(e,o){(e>1||o)&&t._collection.pauseObservers(),o&&t._collection.remove({})},update:function(e){varo=_.idParse(e.id),n=t._collection.findOne(o);if("replace"!==e.msg)if("added"===e.msg){if(n)thrownewError("Expected not to find a document already present for an add");t._collection.insert(c.extend({_id:o},e.fields))}elseif("removed"===e.msg){if(!n)thrownewError("Expected to find a document already present for removed");t._collection.remove(o)}else{if("changed"!==e.msg)thrownewError("I don't know how to deal with this message");if(!n)thrownewError("Expected to find a document to change");if(!c.isEmpty(e.fields)){varr={};c.each(e.fields,function(e,o){void0===e?(r.$unset||(r.$unset={}),r.$unset[o]=1):(r.$set||(r.$set={}),r.$set[o]=e)}),t._collection.update(o,r)}}else{vari=e.replace;i?n?t._collection.update(o,i):t._collection.insert(i):n&&t._collection.remove(o)}},endUpdate:function(){t._collection.resumeObservers()},saveOriginals:function(){t._collection.saveOriginals()},retrieveOriginals:function(){returnt._collection.retrieveOriginals()},getDoc:function(e){returnt.findOne(e)},_getCollection:function(){returnt}})){vari='There is already a collection named "'+o+'"';if(!0!==n._suppressSameNameError)thrownewError(i);console.warn?console.warn(i):console.log(i)}if(!1!==n.defineMutationMethods)try{t._defineMutationMethods({useExist
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r,i,o=(0,Package.modules.meteorInstall)({node_modules:{meteor:{jquery:{"main.js":function(e,t){varn=this;try{varr=e("jquery")}catch(t){r=e("./jquery.js")}t.$=t.jQuery=r,n.$=n.$||r,n.jQuery=n.jQuery||r},"jquery.js":function(e,t,n){!function(e,t){"object"==typeofn&&"object"==typeofn.exports?n.exports=e.document?t(e,!0):function(e){if(!e.document)thrownewError("jQuery requires a window with a document");returnt(e)}:t(e)}("undefined"!=typeofwindow?window:this,function(e,t){functionn(e){vart=e.length,n=ie.type(e);return"function"!==n&&!ie.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeoft&&t>0&&t-1ine))}functionr(e,t,n){if(ie.isFunction(t))returnie.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)returnie.grep(e,function(e){returne===t!==n});if("string"==typeoft){if(de.test(t))returnie.filter(t,e,n);t=ie.filter(t,e)}returnie.grep(e,function(e){returnie.inArray(e,t)>=0!==n})}functioni(e,t){do{e=e[t]}while(e&&1!==e.nodeType);returne}functiono(e){vart=be[e]={};returnie.each(e.match(ve)||[],function(e,n){t[n]=!0}),t}functiona(){he.addEventListener?(he.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(he.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}functions(){(he.addEventListener||"load"===event.type||"complete"===he.readyState)&&(a(),ie.ready())}functionl(e,t,n){if(void0===n&&1===e.nodeType){varr="data-"+t.replace(Ne,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Ce.test(n)?ie.parseJSON(n):n)}catch(e){}ie.data(e,t,n)}elsen=void0}returnn}functionu(e){vart;for(tine)if(("data"!==t||!ie.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}functionc(e,t,n,r){if(ie.acceptData(e)){vari,o,a=ie.expando,s=e.nodeType,l=s?ie.cache:e,u=s?e[a]:e[a]&&a;if(u&&l[u]&&(r||l[u].data)||void0!==n||"string"!=typeoft)returnu||(u=s?e[a]=Q.pop()||ie.guid++:a),l[u]||(l[u]=s?{}:{toJSON:ie.noop}),"object"!=typeoft&&"function"!=typeoft||(r?l[u]=ie.extend(l[u],t):l[u].data=ie.extend(l[u].data,t)),o=l[u],r||(o.data||(o.data={}),o=o.data),void0!==n&&(o[ie.camelCase(t)]=n),"string"==typeoft?null==(i=o[t])&&(i=o[ie.camelCase(t)]):i=o,i}}functionf(e,t,n){if(ie.acceptData(e)){varr,i,o=e.nodeType,a=o?ie.cache:e,s=o?e[ie.expando]:ie.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){i=(t=ie.isArray(t)?t.concat(ie.map(t,ie.camelCase)):tinr?[t]:(t=ie.camelCase(t))inr?[t]:t.split(" ")).length;for(;i--;)deleter[t[i]];if(n?!u(r):!ie.isEmptyObject(r))return}(n||(deletea[s].data,u(a[s])))&&(o?ie.cleanData([e],!0):ne.deleteExpando||a!=a.window?deletea[s]:a[s]=null)}}}functiond(){return!0}functionp(){return!1}functionh(){try{returnhe.activeElement}catch(e){}}functionm(e){vart=Me.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());returnn}functiong(e,t){varn,r,i=0,o=typeofe.getElementsByTagName!==we?e.getElementsByTagName(t||"*"):typeofe.querySelectorAll!==we?e.querySelectorAll(t||"*"):void0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||ie.nodeName(r,t)?o.push(r):ie.merge(o,g(r,t));returnvoid0===t||t&&ie.nodeName(e,t)?ie.merge([e],o):o}functiony(e){Ae.test(e.type)&&(e.defaultChecked=e.checked)}functionv(e,t){returnie.nodeName(e,"table")&&ie.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}functionb(e){returne.type=(null!==ie.find.attr(e,"type"))+"/"+e.type,e}functionx(e){vart=Ue.exec(e.type);returnt?e.type=t[1]:e.removeAttribute("type"),e}functionw(e,t){for(varn,r=0;null!=(n=e[r]);r++)ie._data(n,"globalEval",!t||ie._data(t[r],"globalEval"))}functionT(e,t){if(1===t.nodeType&&ie.hasData(e)){varn,r,i,o=ie._data(e),a=ie._data(t,o),s=o.events;if(s){deletea.handle,a.events={};for(nins)for(r=0,i=s[n].length;r<i;r++)ie.event.add(t,n,s[n][r])}a.data&&(a.data=ie.extend({},a.data))}}functionC(e,t){varn,r,i;if(1==
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,t=Package.tracker.Tracker,i=Package.tracker.Deps,o=Package["mongo-id"].MongoID,a=Package["diff-sequence"].DiffSequence,c=Package.underscore._,f=Package.random.Random,u,d,s,l;(function(){functione(e){returneinstanceofArray||c.isArray(e)}varn=function(){u._suppressWarnings?u._suppressWarnings--:("undefined"!=typeofconsole&&console.warn&&console.warn.apply(console,arguments),u._loggedWarnings++)},r=o.idStringify,i=o.idParse;u={_suppressWarnings:0,_loggedWarnings:0,observe:function(n,r){vari=null,o=null,f=[],u=t.autorun(function(){varu=n();t.nonreactive(function(){varn;if(o&&(f=c.map(i.fetch(),function(e){return{_id:e._id,item:e}}),o.stop(),o=null),u)if(e(u))n=s(f,u,r);else{if(!v(u))throwa();vart=l(f,u,r);n=t[0],o=t[1]}elsen=d(f,r);p(f,n,r),i=u,f=n})});return{stop:function(){u.stop(),o&&o.stop()}}},fetch:function(n){if(n){if(e(n))returnn;if(v(n))returnn.fetch();throwa()}return[]}};vara=function(){returnnewError("{{#each}} currently only accepts arrays, cursors or falsey values.")},v=function(e){returne&&c.isObject(e)&&c.isFunction(e.observe)&&c.isFunction(e.fetch)},p=function(e,n,t){varo=Package["diff-sequence"].DiffSequence.diffQueryOrderedChanges,a=[],f=[],u={},d={},s={},l=e.length;c.each(n,function(e,n){f.push({_id:e._id}),d[r(e._id)]=n}),c.each(e,function(e,n){a.push({_id:e._id}),u[r(e._id)]=n,s[r(e._id)]=n}),o(a,f,{addedBefore:function(e,i,o){vara=o?s[r(o)]:l;o&&c.each(s,function(e,n){e>=a&&s[n]++}),l++,s[r(e)]=a,t.addedAt(e,n[d[r(e)]].item,a,o)},movedBefore:function(e,i){if(e!==i){varo=s[r(e)],a=i?s[r(i)]:l;a>o&&a--,c.each(s,function(e,n){o<e&&e<a?s[n]--:a<=e&&e<o&&s[n]++}),s[r(e)]=a,t.movedTo(e,n[d[r(e)]].item,o,a,i)}},removed:function(n){vari=s[r(n)];c.each(s,function(e,n){e>=i&&s[n]--}),deletes[r(n)],l--,t.removedAt(n,e[u[r(n)]].item,i)}}),c.each(d,function(r,o){vara=i(o);if(c.has(u,o)){varf=n[r].item,d=e[u[o]].item;"object"!=typeoff&&f===d||t.changedAt(a,f,d,r)}})};d=function(e,n){return[]},s=function(e,t,i){varo={};returnc.map(t,function(e,i){vara;if("string"==typeofe)a="-"+e;elseif("number"==typeofe||"boolean"==typeofe||void0===e||null===e)a=e;else{if("object"!=typeofe)thrownewError("{{#each}} doesn't support arrays with elements of type "+typeofe);a=e&&"_id"ine?e._id:i}varc=r(a);returno[c]?(e&&"object"==typeofe&&"_id"ine&&n("duplicate id "+a+" in",t),a=f.id()):o[c]=!0,{_id:a,item:e}})},l=function(e,n,r){vart=!0,i=[],o=n.observe({addedAt:function(e,n,o){if(t){if(null!==o)thrownewError("Expected initial data from observe in order");i.push({_id:e._id,item:e})}elser.addedAt(e._id,e,n,o)},changedAt:function(e,n,t){r.changedAt(e._id,e,n,t)},removedAt:function(e,n){r.removedAt(e._id,e,n)},movedTo:function(e,n,t,i){r.movedTo(e._id,e,n,t,i)}});returnt=!1,[i,o]}}).call(this),"undefined"==typeofPackage&&(Package={}),function(e,n){for(varrinn)rine||(e[r]=n[r])}(Package["observe-sequence"]={},{ObserveSequence:u})}();
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,i=Package.meteor.meteorEnv,r=Package.tracker.Tracker,n=Package.tracker.Deps,o,a,s;(function(){o={},a=function(t){returnt},s=Array.prototype.slice}).call(this),function(){vart=Object.prototype.hasOwnProperty,e=function(e,i){for(varrini)t.call(i,r)&&(e[r]=i[r]);returne};o.Visitor=function(t){e(this,t)},o.Visitor.def=function(t){e(this.prototype,t)},o.Visitor.extend=function(t){vari=this,r=functiont(){o.Visitor.apply(this,arguments)};returnr.prototype=newi,r.extend=i.extend,r.def=i.def,t&&e(r.prototype,t),r},o.Visitor.def({visit:function(t){if(null==t)returnthis.visitNull.apply(this,arguments);if("object"==typeoft){if(t.htmljsType)switch(t.htmljsType){caseo.Tag.htmljsType:returnthis.visitTag.apply(this,arguments);caseo.CharRef.htmljsType:returnthis.visitCharRef.apply(this,arguments);caseo.Comment.htmljsType:returnthis.visitComment.apply(this,arguments);caseo.Raw.htmljsType:returnthis.visitRaw.apply(this,arguments);default:thrownewError("Unknown htmljs type: "+t.htmljsType)}returno.isArray(t)?this.visitArray.apply(this,arguments):this.visitObject.apply(this,arguments)}if("string"==typeoft||"boolean"==typeoft||"number"==typeoft)returnthis.visitPrimitive.apply(this,arguments);if("function"==typeoft)returnthis.visitFunction.apply(this,arguments);thrownewError("Unexpected object in htmljs: "+t)},visitNull:function(t){},visitPrimitive:function(t){},visitArray:function(t){},visitComment:function(t){},visitCharRef:function(t){},visitRaw:function(t){},visitTag:function(t){},visitObject:function(t){thrownewError("Unexpected object in htmljs: "+t)},visitFunction:function(t){thrownewError("Unexpected function in htmljs: "+t)}}),o.TransformingVisitor=o.Visitor.extend(),o.TransformingVisitor.def({visitNull:a,visitPrimitive:a,visitArray:function(t){for(vare=s.call(arguments),i=t,r=0;r<t.length;r++){varn=t[r];e[0]=n;varo=this.visit.apply(this,e);o!==n&&(i===t&&(i=t.slice()),i[r]=o)}returni},visitComment:a,visitCharRef:a,visitRaw:a,visitObject:a,visitFunction:a,visitTag:function(t){vare=t.children,i=s.call(arguments);i[0]=e;varr=this.visitChildren.apply(this,i),n=t.attrs;i[0]=n;vara=this.visitAttributes.apply(this,i);if(a===n&&r===e)returnt;varl=o.getTag(t.tagName).apply(null,r);returnl.attrs=a,l},visitChildren:function(t){returnthis.visitArray.apply(this,arguments)},visitAttributes:function(t){if(o.isArray(t)){for(vari=s.call(arguments),r=t,n=0;n<t.length;n++){vara=t[n];i[0]=a;varl=this.visitAttributes.apply(this,i);l!==a&&(r===t&&(r=t.slice()),r[n]=l)}returnr}if(t&&o.isConstructedObject(t))thrownewError("The basic HTML.TransformingVisitor does not support foreign objects in attributes. Define a custom visitAttributes for this case.");varu=t,f=u;if(u){varc=[null,null];c.push.apply(c,arguments);for(varhinu){varp=u[h];c[0]=h,c[1]=p;varm=this.visitAttribute.apply(this,c);m!==p&&(f===u&&(f=e({},u)),f[h]=m)}}returnf},visitAttribute:function(t,e,i){varr=s.call(arguments,2);returnr[0]=e,this.visit.apply(this,r)}}),o.ToTextVisitor=o.Visitor.extend(),o.ToTextVisitor.def({visitNull:function(t){return""},visitPrimitive:function(t){vare=String(t);returnthis.textMode===o.TEXTMODE.RCDATA?e.replace(/&/g,"&").replace(/</g,"<"):this.textMode===o.TEXTMODE.ATTRIBUTE?e.replace(/&/g,"&").replace(/"/g,"""):e},visitArray:function(t){for(vare=[],i=0;i<t.length;i++)e.push(this.visit(t[i]));returne.join("")},visitComment:function(t){thrownewError("Can't have a comment here")},visitCharRef:function(t){returnthis.textMode===o.TEXTMODE.RCDATA||this.textMode===o.TEXTMODE.ATTRIBUTE?t.html:t.str},visitRaw:function(t){returnt.value},visitTag:function(t){returnthis.visit(this.toHTML(t))},visitObject:function(t){thrownewError("Unexpected object in htmljs in toText: "+t)},toHTML:function(t){returno.toHTML(t)}}),o.ToHTMLVisitor=o.Visitor.extend(),o.ToHTMLVisitor.def({visitNull:function(t){return""},visitPrimitive:function(t){returnString(t).replace(/&/g,"&").replace(/</g,"<")},visitArray:function(t){for(vare=[],i=
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.jquery.$,i=Package.jquery.jQuery,a=Package.tracker.Tracker,o=Package.tracker.Deps,s=Package.check.check,l=Package.check.Match,c=Package.underscore._,u=Package["observe-sequence"].ObserveSequence,d=Package["reactive-var"].ReactiveVar,p=Package["ordered-dict"].OrderedDict,h=Package.htmljs.HTML,f,m,w,_,v;(function(){(f={})._escape=function(){vare={"<":"<",">":">",'"':""","'":"'","/":"/","`":"`","&":"&"},t=function(t){returne[t]};returnfunction(e){returne.replace(/[&<>"'`]/g,t)}}(),f._warn=function(e){e="Warning: "+e,"undefined"!=typeofconsole&&console.warn&&console.warn(e)};vare=Function.prototype.bind;f._bind=e?function(t,n){if(2===arguments.length)returne.call(t,n);for(varr=newArray(arguments.length),i=0;i<r.length;i++)r[i]=arguments[i];returne.apply(t,r.slice(1))}:c.bind}).call(this),function(){vare={};f._DOMBackend=e;vart=void0!==i?i:"undefined"!=typeofPackage?Package.jquery&&Package.jquery.jQuery:null;if(!t)thrownewError("jQuery not found");e._$jq=t,e.parseHTML=function(e){returnt.parseHTML(e)||[]},e.Events={delegateEvents:function(e,n,r,i){t(e).on(n,r,i)},undelegateEvents:function(e,n,r){t(e).off(n,"**",r)},bindEventCapturer:function(n,r,i,a){varo=t(n),s=function(e){(e=t.event.fix(e)).currentTarget=e.target,t(e.currentTarget).is(o.find(i))&&a.call(n,e)};a._meteorui_wrapper=s,r=e.Events.parseEventType(r),n.addEventListener(r,s,!0)},unbindEventCapturer:function(t,n,r){n=e.Events.parseEventType(n),t.removeEventListener(n,r._meteorui_wrapper,!0)},parseEventType:function(e){vart=e.indexOf(".");returnt>=0?e.slice(0,t):e}};varn=function(){},r=function(e){this.next=this,this.prev=this,this.func=e};r.prototype.linkBefore=function(e){this.prev=e.prev,this.next=e,e.prev.next=this,e.prev=this},r.prototype.unlink=function(){this.prev.next=this.next,this.next.prev=this.prev},r.prototype.go=function(){vare=this.func;e&&e()},r.prototype.stop=r.prototype.unlink,e.Teardown={_JQUERY_EVENT_NAME:"blaze_teardown_watcher",_CB_PROP:"$blaze_teardown_callbacks",onElementTeardown:function(i,a){varo=newr(a),s=e.Teardown._CB_PROP;returni[s]||(i[s]=newr,t(i).on(e.Teardown._JQUERY_EVENT_NAME,n)),o.linkBefore(i[s]),o},tearDownElement:function(e){for(varn=[],r=e.getElementsByTagName("*"),i=0;i<r.length;i++)n.push(r[i]);n.push(e),t.cleanData(n)}},t.event.special[e.Teardown._JQUERY_EVENT_NAME]={setup:function(){},teardown:function(){vart=this,n=t[e.Teardown._CB_PROP];if(n){for(varr=n.next;r!==n;)r.go(),r=r.next;n.go(),t[e.Teardown._CB_PROP]=null}}},e.findBySelector=function(e,n){returnt(e,n)}}.call(this),function(){vare=Object.freeze?Object.freeze([]):[];f._DOMRange=function(n){if(!(thisinstanceoft))returnnewt(n);varr=n||e;if(!r||"number"!=typeofr.length)thrownewError("Expected array");for(vari=0;i<r.length;i++)this._memberIn(r[i]);this.members=r,this.emptyRangePlaceholder=null,this.attached=!1,this.parentElement=null,this.parentRange=null,this.attachedCallbacks=e};vart=f._DOMRange;t._USE_COMMENT_PLACEHOLDERS=function(){vare=!1,t=document.createTextNode("");try{t.someProp=!0}catch(t){e=!0}returne}(),t._insert=function(e,n,r,i){vara=e;ainstanceoft?a.attach(n,r,i):i?t._moveNodeWithHooks(a,n,r):t._insertNodeWithHooks(a,n,r)},t._remove=function(e){varn=e;ninstanceoft?n.detach():t._removeNodeWithHooks(n)},t._removeNodeWithHooks=function(e){e.parentNode&&(1===e.nodeType&&e.parentNode._uihooks&&e.parentNode._uihooks.removeElement?e.parentNode._uihooks.removeElement(e):e.parentNode.removeChild(e))},t._insertNodeWithHooks=function(e,t,n){n=n||null,1===e.nodeType&&t._uihooks&&t._uihooks.insertElement?t._uihooks.insertElement(e,n):t.insertBefore(e,n)},t._moveNodeWithHooks=function(e,t,n){e.parentNode===t&&(n=n||null,1===e.nodeType&&t._uihooks&&t._uihooks.moveElement?t._uihooks.moveElement(e,n):t.insertBefore(e,n))},t.forElement=function(e){if(1!==e.nodeType)thrownewError("Expected element, found: "+e);for(vart=null;e&&!t;)(t=e.$blaze_range||null)||(e=e.parentNode);returnt},t.protot
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package["observe-sequence"].ObserveSequence,a=Package.underscore._,u=Package.tracker.Tracker,i=Package.tracker.Deps,c=Package.htmljs.HTML,l=Package.blaze.Blaze,o=Package.blaze.UI,f=Package.blaze.Handlebars,p;(function(){vare=function(e,t){returne===t};(p={}).include=function(t,n,r){if(!t)returnnull;if("function"!=typeoft){vara=t;if(!l.isTemplate(a))thrownewError("Expected template or null, found: "+a);return(i=t.constructView(n,r)).__startsNewLexicalScope=!0,i}varu=l.ReactiveVar(null,e),i=l.View("Spacebars.include",function(){vare=u.get();if(null===e)returnnull;if(!l.isTemplate(e))thrownewError("Expected template or null, found: "+e);returne.constructView(n,r)});returni.__templateVar=u,i.onViewCreated(function(){this.autorun(function(){u.set(t())})}),i.__startsNewLexicalScope=!0,i},p.mustacheImpl=function(e){vart=arguments;if(t.length>1){varn=t[t.length-1];if(ninstanceofp.kw){varr={};for(varainn.hash){varu=n.hash[a];r[a]="function"==typeofu?u():u}t[t.length-1]=p.kw(r)}elsen=p.kw(),(t=Array.prototype.slice.call(arguments)).push(n)}returnp.call.apply(null,t)},p.mustache=function(e){vart=p.mustacheImpl.apply(null,arguments);returntinstanceofp.SafeString?c.Raw(t.toString()):null==t||!1===t?null:String(t)},p.attrMustache=function(e){vart=p.mustacheImpl.apply(null,arguments);if(null==t||""===t)returnnull;if("object"==typeoft)returnt;if("string"==typeoft&&c.isValidAttributeName(t)){varn={};returnn[t]="",n}thrownewError("Expected valid attribute name, '', null, or object")},p.dataMustache=function(e){returnp.mustacheImpl.apply(null,arguments)},p.makeRaw=function(e){returnnull==e?null:einstanceofc.Raw?e:c.Raw(e)},p.call=function(e){if("function"==typeofe){for(vart=[],n=1;n<arguments.length;n++){varr=arguments[n];t[n-1]="function"==typeofr?r():r}returne.apply(null,t)}if(null!=e&&arguments.length>1)thrownewError("Can't call non-function: "+e);returne},p.kw=function(e){if(!(thisinstanceofp.kw))returnnewp.kw(e);this.hash=e||{}},p.SafeString=function(e){returnthisinstanceofp.SafeString?newf.SafeString(e):newp.SafeString(e)},p.SafeString.prototype=f.SafeString.prototype,p.dot=function(e,t){if(arguments.length>2){varn=[];returnn.push(p.dot(e,t)),n.push.apply(n,Array.prototype.slice.call(arguments,2)),p.dot.apply(null,n)}if("function"==typeofe&&(e=e()),!e)returne;varr=e[t];return"function"!=typeofr?r:function(){returnr.apply(e,arguments)}},p.With=function(e,t,n){varr=newl.ReactiveVar,a=l.View("Spacebars_with",function(){returnl.If(function(){returnr.get()},function(){returnl.With(function(){returnr.get()},t)},n)});returna.onViewCreated(function(){this.autorun(function(){r.set(e()),u.onInvalidate(function(){r.dep.changed()})})}),a},p.TemplateWith=l._TemplateWith}).call(this),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varnint)nine||(e[n]=t[n])}(Package.spacebars={},{Spacebars:p})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,o=Package.blaze.Blaze,c=Package.blaze.UI,r=Package.blaze.Handlebars,i=Package.spacebars.Spacebars,u=Package.htmljs.HTML,l;(function(){l=o.Template;vare="__proto__ name".split(" ");l.__checkName=function(t){if(tinl||a.contains(e,t)){if(l[t]instanceofl&&"body"!==t)thrownewError("There are multiple templates named '"+t+"'. Each template needs a unique name.");thrownewError("This template name is reserved: "+t)}},l.__define__=function(e,t){l.__checkName(e),l[e]=newl("Template."+e,t),l[e]._NOWARN_OLDSTYLE_HELPERS=!0},l.body=newl("body",function(){vare=this;returna.map(l.body.contentRenderFuncs,function(t){returnt.apply(e)})}),l.body.contentRenderFuncs=[],l.body.view=null,l.body.addContent=function(e){l.body.contentRenderFuncs.push(e)},l.body.renderToDocument=function(){if(!l.body.view){vare=o.render(l.body,document.body);l.body.view=e}},c.body=l.body,l.__body__=l.body,l.__body__.__contentParts=l.body.contentViews,l.__body__.__instantiate=l.body.renderToDocument}).call(this),function(){l.__checkName("__dynamic"),l.__dynamic=newl("Template.__dynamic",function(){vare=this;return[o.View("lookup:checkContext",function(){returni.mustache(e.lookup("checkContext"))}),"\n ",o.If(function(){returni.call(e.lookup("dataContextPresent"))},function(){return["\n ",i.include(e.lookupTemplate("__dynamicWithDataContext"),function(){returno._InOuterTemplateScope(e,function(){returni.include(function(){returni.call(e.templateContentBlock)})})}),"\n "]},function(){return["\n \n ",o._TemplateWith(function(){return{template:i.call(e.lookup("template")),data:i.call(e.lookup(".."))}},function(){returni.include(e.lookupTemplate("__dynamicWithDataContext"),function(){returno._InOuterTemplateScope(e,function(){returni.include(function(){returni.call(e.templateContentBlock)})})})}),"\n "]})]}),l.__checkName("__dynamicWithDataContext"),l.__dynamicWithDataContext=newl("Template.__dynamicWithDataContext",function(){vare=this;returni.With(function(){returni.dataMustache(e.lookup("chooseTemplate"),e.lookup("template"))},function(){return["\n \n ",o._TemplateWith(function(){returni.call(i.dot(e.lookup(".."),"data"))},function(){returni.include(e.lookupTemplate(".."),function(){returno._InOuterTemplateScope(e,function(){returni.include(function(){returni.call(e.templateContentBlock)})})})}),"\n "]})})}.call(this),function(){vare=o.Template;e.__dynamicWithDataContext.helpers({chooseTemplate:function(t){returno._getTemplate(t,function(){returne.instance()})}}),e.__dynamic.helpers({dataContextPresent:function(){returna.has(this,"data")},checkContext:function(){if(!a.has(this,"template"))thrownewError("Must specify name in the 'template' argument to {{> Template.dynamic}}.");a.each(this,function(e,t){if("template"!==t&&"data"!==t)thrownewError("Invalid argument to {{> Template.dynamic}}: "+t)})}})}.call(this),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varnint)nine||(e[n]=t[n])}(Package["templating-runtime"]={},{Template:l})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,o=Package.ejson.EJSON,i;(function(){if(Package["cmather:iron-core"])thrownewError("\n\n Sorry! The cmather:iron-{x} packages were migrated to the new package system with the wrong name, and you have duplicate copies.\n You can see which cmather:iron-{x} packages have been installed by using this command:\n\n > meteor list\n\n Can you remove any installed cmather:iron-{x} packages like this: \n\n > meteor remove cmather:iron-core\n > meteor remove cmather:iron-router\n > meteor remove cmather:iron-dynamic-template\n > meteor remove cmather:iron-dynamic-layout\n \n The new packages are named iron:{x}. For example:\n\n > meteor add iron:router\n\n Sorry for the hassle, but thank you! \n\n ")}).call(this),function(){(i={}).utils={},i.utils.assert=function(e,t){if(!e)thrownewError(t)},i.utils.warn=function(e,t){e||console&&console.warn&&console.warn(t)},i.utils.defaultValue=function(e,t,n){returnvoid0===e[t]?(e[t]=n,n):e[t]},i.utils.inherits=function(e,t,n){i.utils.assert(void0!==e,"Child is undefined in inherits function"),i.utils.assert(void0!==t,"Parent is undefined in inherits function");for(varaint)r.has(t,a)&&(e[a]=o.clone(t[a]));vars=function(){this.constructor=e};returns.prototype=t.prototype,e.prototype=news,e.__super__=t.prototype,r.isObject(n)&&r.extend(e.prototype,n),e},i.utils.extend=function(e,t){t=t||{};varn=function(){vare;(e=r.has(t,"constructor")?t.constructor:n.__super__.constructor).apply(this,arguments)};returni.utils.inherits(n,e,t)},i.utils.global=e.isClient?window:t,i.utils.namespace=function(e,t){varn=i.utils.global,r,o,a,s;i.utils.assert("string"==typeofe,"namespace must be a string"),a=(r=e.split(".")).pop(),s=n;for(varc=0;c<r.length;c++)s=s[o=r[c]]=s[o]||{};return2===arguments.length?(s[a]=t,t):s[a]},i.utils.resolve=function(e){vart=i.utils.global,n,r;if("string"==typeofe){n=e.split("."),r=t;for(varo=0;o<n.length;o++)if(!(r=r[n[o]]))return}elser=e;returnr},i.utils.capitalize=function(e){returne.charAt(0).toUpperCase()+e.slice(1,e.length)},i.utils.classCase=function(e){vart=/_|-|\.|\//;returne?r.map(e.split(t),function(e){returni.utils.capitalize(e)}).join(""):""},i.utils.camelCase=function(e){vart=i.utils.classCase(e);returnt=t.charAt(0).toLowerCase()+t.slice(1,t.length)},i.utils.notifyDeprecated=function(e){vart,n,o,i,a="[:where] ':name' is deprecated. Please use ':instead' instead.";r.isObject(e)?(t=e.name,n=e.instead,o=e.message||a,i=e.where||"IronRouter"):(o=e,t="",n="",i=""),"undefined"!=typeofconsole&&console.warn&&console.warn("<deprecated> "+o.replace(":name",t).replace(":instead",n).replace(":where",i)+" "+(newError).stack)},i.utils.withDeprecatedNotice=function(e,t,n){returnfunction(){returnUtils.notifyDeprecated(e),t&&t.apply(n||this,arguments)}},Function.prototype.deprecate=function(e){vart=this;returni.utils.withDeprecatedNotice(e,t)},i.utils.debug=function(e){returni.utils.assert("string"==typeofe,"debug requires a package name"),functiont(){if(console&&console.log&&!0===i.debug){varn=r.toArray(arguments).join(" ");console.log("%c<"+e+"> %c"+n,"color: #999;","color: #000;")}}},i.utils.get=function(e){for(vart=1;t<arguments.length;t++){if(!(e&&arguments[t]ine))return;e=e[arguments[t]]}returne},i.utils.global.Iron=i}.call(this),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varnint)nine||(e[n]=t[n])}(Package["iron:core"]={},{Iron:i})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.ui.Blaze,r=Package.ui.UI,i=Package.ui.Handlebars,o=Package.underscore._,s=Package.jquery.$,u=Package.jquery.jQuery,c=Package.tracker.Tracker,l=Package.tracker.Deps,p=Package["reactive-var"].ReactiveVar,h=Package["templating-runtime"].Template,d=Package.random.Random,m=Package["iron:core"].Iron,_=Package.htmljs.HTML,f=Package.spacebars.Spacebars,v;(function(){if(Package["cmather:iron-dynamic-template"])thrownewError("\n\n Sorry! The cmather:iron-{x} packages were migrated to the new package system with the wrong name, and you have duplicate copies.\n You can see which cmather:iron-{x} packages have been installed by using this command:\n\n > meteor list\n\n Can you remove any installed cmather:iron-{x} packages like this: \n\n > meteor remove cmather:iron-core\n > meteor remove cmather:iron-router\n > meteor remove cmather:iron-dynamic-template\n > meteor remove cmather:iron-dynamic-layout\n \n The new packages are named iron:{x}. For example:\n\n > meteor add iron:router\n\n Sorry for the hassle, but thank you! \n\n ")}).call(this),function(){h.__checkName("__DynamicTemplateError__"),h.__DynamicTemplateError__=newh("Template.__DynamicTemplateError__",function(){vare=this;return_.DIV({style:"margin: 0 auto; color: red;"},"\n ",a.View("lookup:msg",function(){returnf.mustache(e.lookup("msg"))}),"\n ")})}.call(this),function(){vare=m.utils.debug("iron:dynamic-template"),t=m.utils.assert,n=m.utils.get,i=m.utils.camelCase,u=function(e){returnObject.prototype.toString.call(e)};(v=function(e){this._id=d.id(),this.options=e=e||{},this._template=e.template,this._defaultTemplate=e.defaultTemplate,this._content=e.content,this._data=e.data,this._templateDep=newc.Dependency,this._dataDep=newc.Dependency,this._lookupHostDep=newc.Dependency,this._lookupHostValue=null,this._hooks={},this._eventMap=null,this._eventHandles=null,this._eventThisArg=null,this.name=e.name||this.constructor.prototype.name||"DynamicTemplate",this.isCreated=!1,this.isDestroyed=!1}).prototype.template=function(e){if(1===arguments.length&&e!==this._template)returnthis._template=e,voidthis._templateDep.changed();if(!(arguments.length>0))returnthis._templateDep.depend(),this._template?"function"==typeofthis._template?this._template():this._template:this._defaultTemplate?"function"==typeofthis._defaultTemplate?this._defaultTemplate():this._defaultTemplate:void0},v.prototype.defaultTemplate=function(e){if(1!==arguments.length)returnthis._defaultTemplate;this._defaultTemplate=e},v.prototype.clear=function(){this._template=void0,this._data=void0,this._templateDep.changed()},v.prototype.data=function(e){return1===arguments.length&&e!==this._data?(this._data=e,voidthis._dataDep.changed()):(this._dataDep.depend(),"function"==typeofthis._data?this._data():this._data)},v.prototype.create=function(e){vart=this;if(this.isCreated)thrownewError("DynamicTemplate view is already created");this.isCreated=!0,this.isDestroyed=!1;varn=p(null),r=a.View("DynamicTemplate",function(){vare=this,r=n.get();returna.With(function(){varn=t.data();returnvoid0!==n?n:v.getParentDataContext(e)},function(){returnt.renderView(r)})});returnr.onViewCreated(function(){this.autorun(function(){n.set(t.template())})}),o.each(["onViewCreated","onViewReady","_onViewRendered","onViewDestroyed"],function(e){r[e](function(){t._runHooks(e,this)})}),r._onViewRendered(function(){t.isInserted=!0,1===r.renderCount&&t._attachEvents()}),r.onViewDestroyed(function(){t._detachEvents()}),r._templateInstance=newa.TemplateInstance(r),r.templateInstance=function(){vare=r._templateInstance;returne.data=a.getData(r),r._domrange&&!r.isDestroyed?(e.firstNode=r._domrange.firstNode(),e.lastNode=r._domrange.lastNode()):(e.firstNode=null,e.lastNode=null),e},this.view=r,r.__dynamicTemplate__=this,r.name=this.name,r},v.prototype.renderView=function(e){vart=this,n=null;return"string"==typeofe?((n=h[e])||(n=h[i(e)]),n||(n=a.With({msg:"Couldn'tfindat
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package["templating-runtime"].Template,o=Package.blaze.Blaze,i=Package.blaze.UI,a=Package.blaze.Handlebars,s=Package.underscore._,c=Package.tracker.Tracker,u=Package.tracker.Deps,h=Package["iron:core"].Iron,l=Package.htmljs.HTML,g=Package.spacebars.Spacebars,d,p,m;(function(){vare=[];if(Package["cmather:iron-layout"]&&e.push("\n\n The cmather:iron-{x} packages were migrated to the new package system with the wrong name, and you have duplicate copies.\n You can see which cmather:iron-{x} packages have been installed by using this command:\n\n > meteor list\n\n Can you remove any installed cmather:iron-{x} packages like this: \n\n > meteor remove cmather:iron-core\n > meteor remove cmather:iron-router\n > meteor remove cmather:iron-dynamic-template\n > meteor remove cmather:iron-dynamic-layout\n \n The new packages are named iron:{x}. For example:\n\n > meteor add iron:router\n\n Sorry for the hassle, but thank you! \n\n "),Package["cmather:blaze-layout"]&&e.push("The blaze-layout package has been replaced by iron-layout. Please remove the package like this:\n> meteor remove cmather:blaze-layout\n"),e.length>0)thrownewError("Sorry! Looks like there's a few errors related to iron:layout\n\n"+e.join("\n\n"))}).call(this),function(){r.__checkName("__IronDefaultLayout__"),r.__IronDefaultLayout__=newr("Template.__IronDefaultLayout__",function(){vare=this;returng.include(e.lookupTemplate("yield"))})}.call(this),function(){vare=h.DynamicTemplate,n=h.utils.inherits;d=function(e){for(;e;){if("Iron.Layout"===e.name)returne.__dynamicTemplate__;e=e.parentView}returnnull},m=(p=function(e){varn=this;p.__super__.constructor.apply(this,arguments),e=e||{},this.name="Iron.Layout",this._regions={},this._regionHooks={},this.defaultTemplate("__IronDefaultLayout__"),e.content&&this.render(e.content)}).DEFAULT_REGION="main",n(p,h.DynamicTemplate),p.prototype.region=function(e,n){returnthis._ensureRegion(e,n)},p.prototype.destroyRegions=function(){s.each(this._regions,function(e){e.destroy()}),this._regions={}},p.prototype.render=function(e,n){vart=(n=n||{}).to||n.region||m,r=this.region(t);this._trackRenderedRegion(t),r.template(e),r.data(n.data)},p.prototype.has=function(e){returne=e||p.DEFAULT_REGION,!!this._regions[e]},p.prototype.regionKeys=function(){returns.keys(this._regions)},p.prototype.clear=function(e){returne=e||p.DEFAULT_REGION,this.has(e)&&this.region(e).template(null),this},p.prototype.clearAll=function(){returns.each(this._regions,function(e){e.template(null)}),this},p.prototype.beginRendering=function(e){varn=this;if(this._finishRenderingTransaction&&this._finishRenderingTransaction(),this._finishRenderingTransaction=s.once(function(){vart=n._endRendering({flush:!1});e&&e(t)}),u.afterFlush(this._finishRenderingTransaction),this._renderedRegions)thrownewError("You called beginRendering again before calling endRendering");this._renderedRegions={}},p.prototype._trackRenderedRegion=function(e){this._renderedRegions&&(this._renderedRegions[e]=!0)},p.prototype._endRendering=function(e){!1!==(e=e||{}).flush&&u.flush();varn=this._renderedRegions||{};returnthis._renderedRegions=null,s.keys(n)},s.each(["onRegionCreated","onRegionRendered","onRegionDestroyed"],function(e){p.prototype[e]=function(n){return(this._regionHooks[e]=this._regionHooks[e]||[]).push(n),this}}),p.prototype._ensureRegion=function(e,n){returnthis._regions[e]=this._regions[e]||this._createDynamicTemplate(e,n)},p.prototype._createDynamicTemplate=function(e,n){vart=this,r=newh.DynamicTemplate(n),o=h.utils.capitalize;returnr._region=e,s.each(["viewCreated","viewReady","viewDestroyed"],function(e){e=o(e),r["on"+e](function(n){varr=this,o={viewCreated:"regionCreated",viewReady:"regionRendered",viewDestroyed:"regionDestroyed"}[e];t._runRegionHooks("on"+o,r,n)})}),r},p.prototype._runRegionHooks=function(e,n,t){for(varr=this,o=this._regionHooks[e]||[],i,a=0;a<o.length;a++)(i=o[a]).call(n,t.region,t,this)},void0!==r
!function(){vare=Package.meteor.Meteor,r=Package.meteor.global,t=Package.meteor.meteorEnv,n=Package.underscore._,i=Package["iron:core"].Iron,o,a;(function(){functione(e){returne.replace(/([=!:$\/()])/g,"\\$1")}functionr(o,a,s){a&&"[object Array]"!==t(a)&&(s=a,a=null),a=a||[];varc=(s=s||{}).strict,u=!1!==s.end,p=s.sensitive?"":"i",l=0;if(oinstanceofRegExp){varh=o.source.match(/\((?!\?)/g)||[];returna.push.apply(a,h.map(function(e,r){return{name:r,delimiter:null,optional:!1,repeat:!1}})),i(o,a)}if("[object Array]"===t(o))returno=o.map(function(e){returnr(e,a,s).source}),i(newRegExp("(?:"+o.join("|")+")",p),a);varf="/"===(o=o.replace(n,function(r,t,n,i,o,s,c,u){if(t)returnt;if(u)return"\\"+u;varp="+"===c||"*"===c,h="?"===c||"*"===c;returna.push({name:i||l++,delimiter:n||"/",optional:h,repeat:p}),n=n?"\\"+n:"",o=e(o||s||"[^"+(n||"\\/")+"]+?"),p&&(o=o+"(?:"+n+o+")*"),h?"(?:"+n+"("+o+"))?":n+"("+o+")"}))[o.length-1];returnc||(o=(f?o.slice(0,-2):o)+"(?:\\/(?=$))?"),u||(o+=c&&f?"":"(?=\\/|$)"),i(newRegExp("^"+o+(u?"$":""),p),a)}vart=function(e){returnObject.prototype.toString.call(e)},n=newRegExp(["(\\\\.)","([\\/.])?(?:\\:(\\w+)(?:\\(((?:\\\\.|[^)])*)\\))?|\\(((?:\\\\.|[^)])*)\\))([+*?])?","([.+*?=^!:${}()[\\]|\\/])"].join("|"),"g"),i=function(e,r){returne.keys=r,e};o=r}).call(this),function(){functione(e){try{returndecodeURIComponent(e.replace(/\+/g," "))}catch(r){returnvoid(r.constructor==URIError&&t("Tried to decode an invalid URI component: "+JSON.stringify(e)+" "+r.stack))}}functionr(e){try{returndecodeURI(e.replace(/\+/g," "))}catch(r){returnvoid(r.constructor==URIError&&t("Tried to decode an invalid URI: "+JSON.stringify(e)+" "+r.stack))}}vart=i.utils.warn;(a=function(e,r){r=r||{},this.options=r,this.keys=[],this.regexp=o(e,this.keys,r),this._originalPath=e,n.extend(this,a.parse(e))}).normalize=function(e){if(einstanceofRegExp)returne;if("string"!=typeofe)return"/";varr=a.parse(e).pathname;return"/"!==r.charAt(0)&&(r="/"+r),r.length>1&&"/"===r.charAt(r.length-1)&&(r=r.slice(0,r.length-1)),r},a.isSameOrigin=function(e,r){vart=a.parse(e),n=a.parse(r);returnt.origin===n.origin},a.fromQueryString=function(r){if(!r)return{};if("string"!=typeofr)thrownewError("expected string");"?"===r.charAt(0)&&(r=r.slice(1));vart=r.split("&"),i={},o;returnn.each(t,function(r){vart=r.split("="),n=e(t[0]),o=e(t[1]);void0!==n&&void0!==o&&"[]"===n.slice(-2)?(n=n.slice(0,-2),i[n]=i[n]||[],i[n].push(o)):i[n]=o}),i},a.toQueryString=function(e){varr=[];return"string"==typeofe?"?"!==e.charAt(0)?"?"+e:e:(n.each(e,function(e,t){n.isArray(e)?n.each(e,function(e){r.push(encodeURIComponent(t)+"[]="+encodeURIComponent(e))}):r.push(encodeURIComponent(t)+"="+encodeURIComponent(e))}),r.length>0?"?"+r.join("&"):"")},a.parse=function(e){if("string"!=typeofe)return{};varr=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,t=e.match(r),n=t[1]?t[1].toLowerCase():void0,i=!!t[3],o=t[4]?t[4].toLowerCase():void0,s=o?o.split("@"):[],c,u;2==s.length?(u=s[0],c=s[1]):1==s.length?(c=s[0],u=void0):(c=void0,u=void0);varp=c&&c.split(":")||[],l=p[0],h=p[1],f=n&&c?n+"//"+c:void0,g=t[5],d=t[8],m=e,v=t[6],y,w=d&&d.indexOf("?")||-1;~w&&!v?(v=d.slice(w),d=d.substr(0,w),y=v.slice(1)):y=t[7];varR=g+(v||""),x=a.fromQueryString(y),U=[n||"",i?"//":"",o||""].join(""),S=[n||"",i?"//":"",o||"",g||"",v||"",d||""].join("");return{rootUrl:U||"",originalUrl:e||"",href:S||"",protocol:n||"",auth:u||"",host:c||"",hostname:l||"",port:h||"",origin:f||"",path:R||"",pathname:g||"",search:v||"",query:y||"",queryObject:x||"",hash:d||"",slashes:i}},a.prototype.test=function(e){returnthis.regexp.test(a.normalize(e))},a.prototype.exec=function(e){returnthis.regexp.exec(a.normalize(e))},a.prototype.params=function(t){if(!t)return[];varn=[],i=this.exec(t),o,s=this.keys,c,u;if(!i)thrownewError('The route named "'+this.name+'" does not match the path "'+t+'"');for(varp=1,l=i.length;p<l;++p)c=s[p-1],u="string"==typeofi[p]?e(i[p]):i[p],c?n[c.name]=void0!==n[c.name]?n[c.name]:u:n.push(u);returnvoid0!==r(t)&&((o=t.split("?")[1])&&(o=
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i=Package.ejson.EJSON,o=Package["iron:core"].Iron,a,s;(function(){vart=o.Url;(a=function(e,n,i){r.isFunction(e)&&(i=i||n||{},n=e,e="/",this.middleware=!0,void0===i.mount&&(i.mount=!0)),"object"==typeofn&&(n=(i=n).action||"action"),i=i||{},this.options=i,this.mount=i.mount,this.method=i.method&&i.method.toLowerCase()||!1,this.where=i.where||"client",this.mount&&(i.end=!1),i.name?this.name=i.name:"string"==typeofe&&"/"!==e.charAt(0)?this.name=e:"string"==typeofe&&"/"!==e&&(this.name=e.split("/").slice(1).join(".")),"string"==typeof(e=i.path||e)&&"/"!==e.charAt(0)&&(e="/"+e),this.path=e,this.compiledUrl=newt(e,i),r.isString(n)?this.handle=functiont(){vare=this[n];if("function"!=typeofe)thrownewError("No method named "+JSON.stringify(n)+" found on handler.");returne.apply(this,arguments)}:r.isFunction(n)&&(this.handle=n)}).prototype.test=function(t,e){e=e||{};varn=this.compiledUrl.test(t),r=!0,i=!0;returnthis.method&&e.method&&(r=this.method==e.method.toLowerCase()),e.where&&(i=this.where==e.where),n&&r&&i},a.prototype.params=function(t){returnthis.compiledUrl.params(t)},a.prototype.resolve=function(t,e){returnthis.compiledUrl.resolve(t,e)},a.prototype.clone=function(){vart=newa(this.path,this.handle,this.options);returnt.name=this.name,t}}).call(this),function(){vare=o.Url,n=o.utils.assert,h=o.utils.defaultValue;(s=function(){this._stack=[],this.length=0}).prototype._create=function(t,e,n){vari=newa(t,e,n),o=i.name;if(o){if(r.has(this._stack,o))thrownewError("Handler with name '"+o+"' already exists.");this._stack[o]=i}returni},s.prototype.findByName=function(t){returnthis._stack[t]},s.prototype.push=function(t,e,n){varr=this._create(t,e,n);returnthis._stack.push(r),this.length++,r},s.prototype.append=function(){vart=this,e=r.toArray(arguments),n={};return"object"==typeofe[e.length-1]&&(n=e.pop()),r.each(e,function(e){if(void0!==e)if("function"==typeofe)t.push(e,n);else{if(!r.isArray(e))thrownewError("Can only append functions or arrays to the MiddlewareStack");t.append.apply(t,e.concat([n]))}}),this},s.prototype.insertAt=function(t,e,n,r){vari=this._create(e,n,r);returnthis._stack.splice(t,0,i),this.length=this._stack.length,this},s.prototype.insertBefore=function(t,e,n,i){varo,a;if(!(o=this._stack[t]))thrownewError("Couldn't find a handler named '"+t+"' on the path stack");returna=r.indexOf(this._stack,o),this.insertAt(a,e,n,i),this},s.prototype.insertAfter=function(t,e,n,i){varo,a;if(!(o=this._stack[t]))thrownewError("Couldn't find a handler named '"+t+"' on the path stack");returna=r.indexOf(this._stack,o),this.insertAt(a+1,e,n,i),this},s.prototype.concat=function(){vart=news,e=Array.prototype.concat,n=i.clone(this._stack),o=r.map(r.toArray(arguments),function(t){returni.clone(t._stack)});returnt._stack=e.apply(n,o),t.length=t._stack.length,t},s.prototype.dispatch=functionr(i,o,a){vars=this,l=i;n("string"==typeofi,"Requires url"),n("object"==typeofo,"Requires context object"),i=e.normalize(i||"/"),h(o,"request",{}),h(o,"response",{}),h(o,"originalUrl",i),h(o,"_method",o.method),h(o,"_handlersForEnv",{client:!1,server:!1}),h(o,"_handled",!1),h(o,"isHandled",function(){returno._handled}),h(o,"willBeHandledOnClient",function(){returno._handlersForEnv.client}),h(o,"willBeHandledOnServer",function(){returno._handlersForEnv.server});varc=function(){if(a)try{a.apply(this,arguments)}catch(t){throwt._punt=!0,t}},u=0,p=t.bindEnvironment(functionn(r){vara=s._stack[u++];if(o.url=o.request.url=o.originalUrl,!a)returnc.call(o,r);if(!a.test(i,{method:o._method}))returnp(r);varh=t.isClient?"client":"server";if(a.middleware||(o._handlersForEnv[a.where]=!0),a.where!==h)returnp(r);if(o.next=p,a.mount){varl=e.normalize(a.compiledUrl.pathname),d=i.substr(l.length,i.length);d=e.normalize(d),o.url=o.request.url=d}try{varf=a.handle.length,m=o.request,y=o.response;returnr&&4===f?a.handle.call(o,r,m,y,p):!r&&f<4?a.handle.call(o,m,y,p):p(r)}catch(r){if(r._punt)throwr;
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,r=Package.tracker.Tracker,o=Package.tracker.Deps,i=Package.jquery.$,c=Package.jquery.jQuery,s=Package["iron:core"].Iron,h,u,l,f,p;(function(){vart=s.Url,e="__hash__";h=function(e){varn=t.parse(e),a=n.hash&&n.hash.replace("#",""),r=n.search,o=n.pathname,i=n.rootUrl;if(a&&"!"!==a.charAt(0)){varc="__hash__="+a;r=r?r+"&":"?",r+=c,a=""}return!a&&o?a="#!"+o.substring(1):a&&(a="#"+a),[i,a,r].join("")},u=function(e){varn=t.parse(e),r=n.hash&&n.hash.replace("#!","/"),o=n.search,i=n.rootUrl,c;returna.has(n.queryObject,"__hash__")?(c="#"+n.queryObject.__hash__,deleten.queryObject.__hash__):c="",[i,r,t.toQueryString(n.queryObject),c].join("")},l=function(e){varn=t.parse(e),a=n.queryObject;returnn.hash&&(a.__hash__=n.hash.replace("#","")),["!",n.pathname.substring(1),t.toQueryString(a)].join("")}}).call(this),function(){vart=s.Url;(f=function(e,n){a.extend(this,t.parse(e),{options:n||{}})}).prototype.equals=function(t){return!!t&&(tinstanceoff&&(t.pathname==this.pathname&&t.search==this.search&&t.hash==this.hash&&t.options.historyState===this.options.historyState))},f.prototype.isCancelled=function(){return!!this._isCancelled},f.prototype.cancelUrlChange=function(){this._isCancelled=!0}}.call(this),function(){vare=s.Url,n=null,r=newo.Dependency,c={go:[],popState:[]},g=function(){return/MSIE 9/.test(navigator.appVersion)},y=function(){return/MSIE 8/.test(navigator.appVersion)},_=function(){return!!Package.appcache},d=function(){return"undefined"==typeofhistory||"function"!=typeofhistory.pushState},S=function(){returnp.options.useHashPaths||y()||g()||_()||d()},v=function(){return!!p.options.useHashPaths},k=function(t,e){a.each(c[t],function(t){t.call(e)})},w=function(t){if(!(tinstanceoff))thrownewError("Expected a State instance");return!t.equals(n)&&(n=t,r.changed(),!0)},P=function(){vart=location.href,e;e=v()?newf(u(t)):newf(t,{historyState:history.state}),k("popState",e),w(e)},m=function(t){vare=q;e&&e(t)},j=function(t,e){varn=newf(t,e=e||{});k("go",n),w(n)&&o.afterFlush(function(){n.isCancelled()||(v()?location.hash=l(t):!0===e.replaceState?history.replaceState(e.historyState,null,t):history.pushState(e.historyState,null,t))})},q=function(t){try{varn=t.currentTarget,a=n.href,r=n.pathname+n.search+n.hash;if(r=r.replace(/(^\/?)/,"/"),t.isDefaultPrevented())returnvoidt.preventDefault();if(t.metaKey||t.ctrlKey||t.shiftKey)return;if(n.target)return;if(!e.isSameOrigin(a,location.href))return;t.preventDefault(),j(r)}catch(e){throwt.preventDefault(),e}};(p={}).options={linkSelector:"a[href]",useHashPaths:!1},p.configure=function(t){a.extend(this.options,t||{})},p.get=function(){returnr.depend(),n},p.start=function(){if(!this._isStarted){varn=e.parse(location.href);if(S()){if(n.pathname.length>1){vara=h(location.href);window.location=a}this.configure({useHashPaths:!0})}varr=location.href;if(v()){varo=newf(u(r));w(o)}else{if("!"===n.hash.replace("#","")[0])varr=u(r);varc={initial:!0};history.replaceState(c,null,r);varo=newf(r,{historyState:c});w(o)}i(window).on("popstate.iron-location",P),i(window).on("hashchange.iron-location",P),t.startup(function(){i(document).on("click.iron-location",p.options.linkSelector,m)}),this._isStarted=!0}},p.stop=function(){this._isStarted&&(i(window).on("popstate.iron-location"),i(window).on("hashchange.iron-location"),i(document).off("click.iron-location"),this._isStarted=!1)},p.onClick=function(t){q=t},p.go=function(t,e){returnj(t,e)},p.onGo=function(t){c.go.push(t)},p.onPopState=function(t){c.popState.push(t)},p.start(),s.Location=p}.call(this),"undefined"==typeofPackage&&(Package={}),function(t,e){for(varnine)nint||(t[n]=e[n])}(Package["iron:location"]={},{urlToHashStyle:h,urlFromHashStyle:u})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,a=Package.meteor.meteorEnv,i=Package.underscore._,n=Package.tracker.Tracker,r=Package.tracker.Deps,s=Package.ejson.EJSON,c=Package.modules.meteorInstall,o=Package["babel-runtime"].meteorBabelHelpers,u=Package.promise.Promise,l=Package["ecmascript-runtime-client"].Symbol,d=Package["ecmascript-runtime-client"].Map,f=Package["ecmascript-runtime-client"].Set,k,y=c({node_modules:{meteor:{"reactive-dict":{"reactive-dict.js":function(e){functiont(e){returne&&e.__esModule?e:{default:e}}vara=t(e("babel-runtime/helpers/slicedToArray")),r=t(e("babel-runtime/helpers/typeof")),c=function(e){returnvoid0===e?"undefined":s.stringify(e)},o=function(e){if(void0!==e&&"undefined"!==e)returns.parse(e)},u=function(e){e&&e.changed()};k=function(e){if(e)if("string"==typeofe)k._registerDictForMigrate(e,this),this.keys=k._loadMigratedDict(e)||{},this.name=e;else{if("object"!==(void0===e?"undefined":(0,r.default)(e)))thrownewError("Invalid ReactiveDict argument: "+e);this.keys={};for(vart=Object.entries(e),i=Array.isArray(t),s=0,t=i?t:t[l.iterator]();;){varo;if(i){if(s>=t.length)break;o=t[s++]}else{if((s=t.next()).done)break;o=s.value}varu=o,d=(0,a.default)(u,2),f=d[0],y=d[1];this.keys[f]=c(y)}}elsethis.keys={};this.allDeps=newn.Dependency,this.keyDeps={},this.keyValueDeps={}},i.extend(k.prototype,{set:function(e,t){vara=this;if("object"!==(void0===e?"undefined":(0,r.default)(e))||void0!==t){varn=e;t=c(t);vars=i.has(a.keys,n),o=s?a.keys[n]:"undefined",l=t!==o;a.keys[n]=t,!l&&s||a.allDeps.changed(),l&&(u(a.keyDeps[n]),a.keyValueDeps[n]&&(u(a.keyValueDeps[n][o]),u(a.keyValueDeps[n][t])))}elsea._setObject(e)},setDefault:function(e,t){vara=this;if("object"!==(void0===e?"undefined":(0,r.default)(e))||void0!==t){varn=e;i.has(a.keys,n)||a.set(n,t)}elsea._setDefaultObject(e)},get:function(e){vart=this;returnt._ensureKey(e),t.keyDeps[e].depend(),o(t.keys[e])},equals:function(e,t){vara=this,r=null;if(Package.mongo&&(r=Package.mongo.Mongo.ObjectID),!("string"==typeoft||"number"==typeoft||"boolean"==typeoft||void0===t||tinstanceofDate||r&&tinstanceofr||null===t))thrownewError("ReactiveDict.equals: value must be scalar");varu=c(t);n.active&&(a._ensureKey(e),i.has(a.keyValueDeps[e],u)||(a.keyValueDeps[e][u]=newn.Dependency),a.keyValueDeps[e][u].depend()&&n.onInvalidate(function(){a.keyValueDeps[e][u].hasDependents()||deletea.keyValueDeps[e][u]}));varl=void0;returni.has(a.keys,e)&&(l=o(a.keys[e])),s.equals(l,t)},all:function(){this.allDeps.depend();vare={};returni.each(this.keys,function(t,a){e[a]=o(t)}),e},clear:function(){vare=this,t=e.keys;e.keys={},e.allDeps.changed(),i.each(t,function(t,a){u(e.keyDeps[a]),e.keyValueDeps[a]&&(u(e.keyValueDeps[a][t]),u(e.keyValueDeps[a].undefined))})},delete:function(e){vart=this,a=!1;if(i.has(t.keys,e)){varn=t.keys[e];deletet.keys[e],u(t.keyDeps[e]),t.keyValueDeps[e]&&(u(t.keyValueDeps[e][n]),u(t.keyValueDeps[e].undefined)),t.allDeps.changed(),a=!0}returna},_setObject:function(e){vart=this;i.each(e,function(e,a){t.set(a,e)})},_setDefaultObject:function(e){vart=this;i.each(e,function(e,a){t.setDefault(a,e)})},_ensureKey:function(e){vart=this;eint.keyDeps||(t.keyDeps[e]=newn.Dependency,t.keyValueDeps[e]={})},_getMigrationData:function(){returnthis.keys}})},"migration.js":function(){if(k._migratedDictData={},k._dictsToMigrate={},k._loadMigratedDict=function(e){returni.has(k._migratedDictData,e)?k._migratedDictData[e]:null},k._registerDictForMigrate=function(e,t){if(i.has(k._dictsToMigrate,e))thrownewError("Duplicate ReactiveDict name: "+e);k._dictsToMigrate[e]=t},e.isClient&&Package.reload){vart=Package.reload.Reload._migrationData("reactive-dict");t&&t.dicts&&(k._migratedDictData=t.dicts),Package.reload.Reload._onMigrate("reactive-dict",function(){vare=k._dictsToMigrate,t={};for(varaino.sanitizeForInObject(e))t[a]=e[a]._getMigrationData();return[!0,{dicts:t}]})}}}}}},{extensions:[".js",".json"]});y("./node_modules/meteor/reactive-dict/reactive-dict.js"),y("./node_modules/meteor/reactive-dict/migr
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,o=Package.tracker.Tracker,i=Package.tracker.Deps,r=Package["reactive-dict"].ReactiveDict,u=Package["templating-runtime"].Template,s=Package["iron:core"].Iron,c=Package.blaze.Blaze,l=Package.blaze.UI,p=Package.blaze.Handlebars,d=Package.spacebars.Spacebars,h=Package.htmljs.HTML,y,f;(function(){vart=s.utils.assert,e=function(){for(vart={},e=i.currentComputation;e;)t[String(e._id)]=!0,e=e._parent;returnt},n=function(n){varo=e(),i=a.keys(n._dependentsById);a.each(i,function(e){t(!o[e],"\n\nYou called wait() after calling ready() inside the same computation tree.\n\nYou can fix this problem in two possible ways:\n\n1) Put all of your wait() calls before any ready() calls.\n2) Put your ready() call in its own computation with Deps.autorun.")})};(y=function(){this._readyDep=newi.Dependency,this._comps=[],this._notReadyCount=0}).prototype.wait=function(t){vare=this,o=i.currentComputation;n(e._readyDep),i.nonreactive(function(){varn=null,r=i.autorun(function(a){varo=!!t(),i=e._notReadyCount;a.firstRun&&!o?e._notReadyCount++:null!==n&&o!==n&&!0===o?e._notReadyCount--:null!==n&&o!==n&&!1===o&&e._notReadyCount++,n=o,0===i&&e._notReadyCount>0?e._readyDep.changed():i>0&&0===e._notReadyCount&&e._readyDep.changed()});e._comps.push(r),o&&o.onInvalidate(function(){i.afterFlush(function(){r.stop(),e._comps.splice(a.indexOf(e._comps,r),1),!1===n&&(e._notReadyCount--,0===e._notReadyCount&&e._readyDep.changed())})})})},y.prototype.ready=function(){returnthis._readyDep.depend(),0===this._notReadyCount},y.prototype.stop=function(){a.each(this._comps,function(t){t.stop()}),this._comps=[]},s.WaitList=y}).call(this),function(){vart=s.utils.debug("iron:controller"),e=s.Layout,n=s.DynamicTemplate,o=function(t,e){returnfunction(){return"function"==typeoft?t.apply(e,arguments):t}};(f=function(t){varn=this;this.options=t||{},this._layout=this.options.layout||newe(this.options),this._isController=!0,this._layout._setLookupHost(this);vara=f._collectEventMaps.call(this.constructor);this._layout.events(a,this),this.init(t)}).prototype.layout=function(t,e){varn=this;returnthis._layout.template(t),e&&a.has(e,"data")&&this._layout.data(o(e.data,this)),{data:function(t){returnn._layout.data(o(t,n))}}},f.prototype.render=function(t,e){varn=this;e&&void0!==e.data&&(e.data=o(e.data,this));vara=this._layout.render(t,e);return{data:function(t){returna.data(o(t,n))}}},f.prototype.beginRendering=function(t){returnthis._layout.beginRendering(t)},f.extend=function(t){returns.utils.extend(this,t)},f.events=function(t){returnthis._eventMap=t,this};vari=function(t,e){varn={};returnt.__super__&&a.extend(n,i(t.__super__.constructor,e)),a.has(t,e)?a.extend(n,t[e]):n};f._collectEventMaps=function(){returni(this,"_eventMap")},f._helpers={},f.helpers=function(t){returna.extend(this._helpers,t),this},void0!==u&&(s.controller=function(){returnn.findLookupHostWithProperty(c.getView(),"_isController")},u.registerHelper("get",function(t){vare=s.controller();if(e&&e.state)returne.state.get(t)})),s.Controller=f}.call(this),function(){vart=s.Layout,e=s.utils.debug("iron:controller"),n=s.utils.defaultValue,o=function(t,e){returnfunction(){return"function"==typeoft?t.apply(e,arguments):t}};f.prototype.init=function(t){this._waitlist=newy,this.state=newr},f.prototype.insert=function(t){returnthis._layout.insert.apply(this._layout,arguments)},f.prototype.wait=function(t){vare=this;if(t)returna.isArray(t)?a.each(t,functiont(n){e.wait(n)}):t.ready?this._waitlist.wait(function(){returnt.ready()}):this._waitlist.wait(t),this},f.prototype.ready=function(){returnthis._waitlist.ready()},f.prototype.stop=function(){this._waitlist.stop()}}.call(this),"undefined"==typeofPackage&&(Package={}),Package["iron:controller"]={}}();
!function(){vart=Package.underscore._,o=Package.tracker.Tracker,e=Package.tracker.Deps,r=Package.blaze.Blaze,n=Package.blaze.UI,i=Package.blaze.Handlebars,a=Package["templating-runtime"].Template,s=Package.ejson.EJSON,u=Package.meteor.Meteor,l=Package.meteor.global,c=Package.meteor.meteorEnv,p=Package["iron:core"].Iron,h=Package.htmljs.HTML,f=Package.spacebars.Spacebars,d,_,y,m,g;(function(){d=newu.EnvironmentVariable}).call(this),function(){_=["get","post","put","delete","patch","head"]}.call(this),function(){varo=p.Controller,e=p.Url,r=p.MiddlewareStack,n=p.utils.assert;(y=o.extend({constructor:function(o){y.__super__.constructor.apply(this,arguments),o=o||{},this.options=o,this._onStopCallbacks=[],this.route=o.route,this.params=[];vare=this.lookupOption("data");"function"==typeofe?this.data=t.bind(e,this):void0!==e&&(this.data=function(){returne}),this.init(o)}})).prototype.lookupOption=function(o){if(this.route&&this.route.options&&t.has(this.route.options,o))returnthis.route.options[o];if(t.has(this.options,o))returnthis.options[o];if(void0!==this[o])returnthis[o];vare=d.get();returne&&t.has(e,o)?e[o]:this.router&&this.router.options&&t.has(this.router.options,o)?this.router.options[o]:void0},y.prototype.configureFromUrl=function(t,o,e){n("string"==typeoft,"url must be a string"),o=o||{},this.request=o.request||{},this.response=o.response||{},this.url=o.url||t,this.originalUrl=o.originalUrl||t,this.method=this.request.method,this.route&&this.setParams(this.route.params(t),e)},y.prototype._collectHooks=function(){varo=this,e=t.toArray(arguments),r=function(e){if(!e)return[];varr=o.router.lookupHook,n=t.isArray(e)?e:[e];returnt.map(n,function(t){returnr(t)})},n=function(o,e){vari=[];returno.__super__&&(i=i.concat(n(o.__super__.constructor,e))),t.has(o.prototype,e)?i.concat(r(o.prototype[e])):i},i=function(t){for(varo=0;o<e.length;o++)t(e[o])},a=[];i(function(t){vare=o.route&&o.route.getName(),r=o.router.getHooks(t,e);a=a.concat(r)});vars=[];i(function(t){vare=n(o.constructor,t);s=s.concat(e)});varu=[];i(function(e){if(t.has(o,e)){varn=r(o[e]);u=u.concat(n)}});varl=[];returno.route&&i(function(t){vare=r(o.route.options[t]);l=l.concat(e)}),a.concat(l).concat(s).concat(u)},y.prototype.runHooks=function(){for(vart=this._collectHooks.apply(this,arguments),o=0,e=t.length;o<e;o++)t[o].call(this);returnt.length},y.prototype.getParams=function(){returnthis.params},y.prototype.setParams=function(t){returnthis.params=t,this},p.RouteController=y}.call(this),function(){varr=p.Controller,n=p.Url,i=p.MiddlewareStack,a=p.utils.debug("iron-router:RouteController");if(y.prototype.init=function(t){y.__super__.init.apply(this,arguments),this._computation=null,this._paramsDep=newo.Dependency,this.location=p.Location},y.prototype.getParams=function(){returnthis._paramsDep.depend(),this.params},y.prototype.setParams=function(o,e){if(!function(o,r){if(!(oinstanceofArray))thrownewError("you called equals with a non array value in setParams");if(!(rinstanceofArray))return!1;if(o.length!==r.length)return!1;for(varn=0;n<o.length;n++)if(!s.equals(o[n],r[n],e))return!1;vari=t.keys(o),a=t.keys(r),u;if(i.length!==a.length)return!1;for(varn=0;n<i.length;n++){if(u=i[n],!t.has(r,u))return!1;if(!s.equals(o[u],r[u]))return!1}return!0}(this.params,o))returnthis.params=o,!1!==(e=e||{}).reactive&&this._paramsDep.changed(),this},y.prototype.dispatch=function(t,o,r){if(this._computation&&!this._computation.stopped)thrownewError("RouteController computation is already running. Stop it first.");varn=this;returne.nonreactive(function(){e.autorun(function(e){n._computation=e,t.dispatch(o,n,r)})}),n},y.prototype._runRoute=function(o,r,n){vara=this,s=this._collectHooks("subscriptions");t.each(s,function(t){a.wait(t.call(a))});varu=this._collectHooks("waitOn");t.each(u,function(t){a.wait(t.call(a))});varl=u.length>0,c,h,f=function(){returne.nonreactive(function(){returna._layout.template()})},d=function(){returne.nonreactive(function(){vart=a._layout._regions.main;returnt&&t.template()})},_=f(),m=d();this.b
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,i=Package.jquery.$,r=Package.jquery.jQuery;!function(e){"function"==typeofdefine&&define.amd?define(["jquery"],e):e("object"==typeofexports?require("jquery"):r)}(function(e){vart=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)vart=e.fn.select2.amd;vart;returnfunction(){if(!t||!t.requirejs){t?n=t:t={};vare,n,i;!function(t){functionr(e,t){return$.call(e,t)}functiono(e,t){varn,i,r,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e&&"."===e.charAt(0))if(t){for(s=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[s])&&(e[s]=e[s].replace(b,"")),e=h.slice(0,h.length-1).concat(e),u=0;u<e.length;u+=1)if("."===(p=e[u]))e.splice(u,1),u-=1;elseif(".."===p){if(1===u&&(".."===e[2]||".."===e[0]))break;u>0&&(e.splice(u-1,2),u-=2)}e=e.join("/")}else0===e.indexOf("./")&&(e=e.substring(2));if((h||g)&&f){for(u=(n=e.split("/")).length;u>0;u-=1){if(i=n.slice(0,u).join("/"),h)for(d=h.length;d>0;d-=1)if((r=f[h.slice(0,d).join("/")])&&(r=r[i])){o=r,a=u;break}if(o)break;!l&&g&&g[i]&&(l=g[i],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}returne}functions(e,n){returnfunction(){vari=w.call(arguments,0);return"string"!=typeofi[0]&&1===i.length&&i.push(null),h.apply(t,i.concat([e,n]))}}functiona(e){returnfunction(t){returno(t,e)}}functionl(e){returnfunction(t){m[e]=t}}functionc(e){if(r(v,e)){varn=v[e];deletev[e],_[e]=!0,p.apply(t,n)}if(!r(m,e)&&!r(_,e))thrownewError("No "+e);returnm[e]}functionu(e){vart,n=e?e.indexOf("!"):-1;returnn>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}functiond(e){returnfunction(){returny&&y.config&&y.config[e]||{}}}varp,h,f,g,m={},v={},y={},_={},$=Object.prototype.hasOwnProperty,w=[].slice,b=/\.js$/;f=function(e,t){varn,i=u(e),r=i[0];returne=i[1],r&&(n=c(r=o(r,t))),r?e=n&&n.normalize?n.normalize(e,a(t)):o(e,t):(r=(i=u(e=o(e,t)))[0],e=i[1],r&&(n=c(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:n}},g={require:function(e){returns(e)},exports:function(e){vart=m[e];returnvoid0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:d(e)}}},p=function(e,n,i,o){vara,u,d,p,h,y=[],$=typeofi,w;if(o=o||e,"undefined"===$||"function"===$){for(n=!n.length&&i.length?["require","exports","module"]:n,h=0;h<n.length;h+=1)if(p=f(n[h],o),"require"===(u=p.f))y[h]=g.require(e);elseif("exports"===u)y[h]=g.exports(e),w=!0;elseif("module"===u)a=y[h]=g.module(e);elseif(r(m,u)||r(v,u)||r(_,u))y[h]=c(u);else{if(!p.p)thrownewError(e+" missing "+u);p.p.load(p.n,s(o,!0),l(u),{}),y[h]=m[u]}d=i?i.apply(m[e],y):void0,e&&(a&&a.exports!==t&&a.exports!==m[e]?m[e]=a.exports:d===t&&w||(m[e]=d))}elsee&&(m[e]=i)},e=n=h=function(e,n,i,r,o){if("string"==typeofe)returng[e]?g[e](n):c(f(e,n).f);if(!e.splice){if((y=e).deps&&h(y.deps,y.callback),!n)return;n.splice?(e=n,n=i,i=null):e=t}returnn=n||function(){},"function"==typeofi&&(i=r,r=o),r?p(t,e,n,i):setTimeout(function(){p(t,e,n,i)},4),h},h.config=function(e){returnh(e)},e._defined=m,(i=function(e,t,n){if("string"!=typeofe)thrownewError("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),r(m,e)||r(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=i}}(),t.define("almond",function(){}),t.define("jquery",[],function(){vart=e||i;returnnull==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){functiont(e){vart=e.prototype,n=[];for(variint)"function"==typeoft[i]&&"constructor"!==i&&n.push(i);returnn}varn={};n.Extend=function(e,t){functionn(){this.constructor=e}vari={}.hasOwnProperty;for(varrint)i.call(t,r)&&(e[r]=t[r]);returnn.prototype=t.prototype,e.prototype=newn,e.__super__=t.prototype,e},n.Decorate=function(e,n){functioni(){vart=Array.prototype.unshift,i=n.prototype.constructor.length,r=e.prototype.constructor;i>0&&(t.call(arguments,e.prototype.constructor),r=n.pro
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,i=Package.tracker.Tracker,r=Package.tracker.Deps,o=Package.underscore._,a=Package.check.check,s=Package.check.Match,u=Package.random.Random,l,c,f,d,p,m,v;(function(){String.prototype.startsWith||(String.prototype.startsWith=function(e,t){returnt=t||0,this.indexOf(e,t)===t}),String.prototype.trim||(String.prototype.trim=function(){returnthis.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")})}).call(this),function(){functione(e){returne=e||"",(e=e.trim())[0]&&(e=e[0].toUpperCase()+e.substr(1).toLowerCase()),e}functiont(e){returne=e||"",e=e.toString(),e=e.trim(),e=e.replace(/([a-z\d])([A-Z]+)/g,"$1_$2"),e=e.replace(/[-\s]+/g,"_").toLowerCase()}functionn(e){vart=e.lastIndexOf("."),n=e.substring(t,e.length);return-1===t?"":n}l=functioni(r){returnr=r||"",r=r.toString(),r=r.trim(),r=r.replace(n(r),""),r=t(r),r=r.replace(/[\W_]+/g," "),e(r)}}.call(this),function(){vare=function(e){returne===Object(e)};"function"!=typeofObject.getPrototypeOf&&(Object.getPrototypeOf="object"==typeof"".__proto__?function(e){returne.__proto__}:function(e){returne.constructor.prototype});vart=function(t){returne(t)&&Object.getPrototypeOf(t)===Object.prototype},n=functione(t){return"string"!=typeoft?null:t.replace(/\.[0-9]+\./g,".$.").replace(/\.[0-9]+$/g,".$")},i=functione(t,n){return"$each"===n?t:t?t+"."+n:n},r=functione(t){varn=t.slice(0,t.indexOf("["));return"$"===n.substring(0,1)?n:null};(c=function(e,a){functions(e,r,u,c,f,d){!c&&u&&"$"===u.substring(0,1)&&(c=u,u=null);varp=!1,m,v=!1;u&&(f||("$push"===c||"$addToSet"===c||"$pop"===c?(t(e)&&"$each"ine?(e=e.$each,r+="[$each]"):u+=".0",f=!0):"$pull"===c&&(u+=".0",t(e)&&(v=!0),f=!0)),m=n(u),p=o.contains(a,m),r&&(l._affectedKeys[r]=u,l._genericAffectedKeys[r]=m,d&&l._positionsInsideArrays.push(r))),v||(o.isArray(e)&&!o.isEmpty(e)?(r&&l._parentPositions.push(r),o.each(e,function(e,t){s(e,r?r+"["+t+"]":t,u+"."+t,c,f,!0)})):(t(e)&&!p||!r)&&(r&&!o.isEmpty(e)&&(l._parentPositions.push(r),l._objectPositions.push(r)),o.each(e,function(t,n){void0===t?deletee[n]:"$slice"!==n&&s(t,r?r+"["+n+"]":n,i(u,n),c,f,d)})))}functionu(){l._affectedKeys={},l._genericAffectedKeys={},l._parentPositions=[],l._positionsInsideArrays=[],l._objectPositions=[],s(l._obj)}varl=this;l._obj=e,l._affectedKeys={},l._genericAffectedKeys={},l._parentPositions=[],l._positionsInsideArrays=[],l._objectPositions=[],s(l._obj),l.forEachNode=function(e,t){if("function"!=typeofe)thrownewError("filter requires a loop function");t=o.extend({endPointsOnly:!0},t);varn={};o.each(l._affectedKeys,function(i,a){t.endPointsOnly&&o.contains(l._parentPositions,a)||e.call({value:l.getValueForPosition(a),operator:r(a),position:a,key:i,genericKey:l._genericAffectedKeys[a],updateValue:function(e){n[a]=e},remove:function(){n[a]=void0}})}),o.each(n,function(e,t){l.setValueForPosition(t,e)})},l.getValueForPosition=function(e){for(varn,i=e.split("["),r=l._obj,a=0,s=i.length;a<s;a++)if("]"===(n=i[a]).slice(-1)&&(n=n.slice(0,-1)),r=r[n],!o.isArray(r)&&!t(r)&&a<s-1)return;returnr},l.setValueForPosition=function(e,n){for(vari,r,a=e.split("["),s=l._obj,c=0,f=a.length;c<f;c++)if("]"===(r=a[c]).slice(-1)&&(r=r.slice(0,-1)),c===f-1)s[r]=n,void0===n&&deletes[r];elseif(void0===s[r]&&void0!==n&&(i=a[c+1],i=parseInt(i,10),s[r]=isNaN(i)?{}:[]),s=s[r],!o.isArray(s)&&!t(s)&&c<f-1)return;u()},l.removeValueForPosition=function(e){l.setValueForPosition(e,void0)},l.getKeyForPosition=function(e){returnl._affectedKeys[e]},l.getGenericKeyForPosition=function(e){returnl._genericAffectedKeys[e]},l.getInfoForKey=function(e){vart=l.getPositionForKey(e);if(t)return{value:l.getValueForPosition(t),operator:r(t)};for(varn=l.getPositionsForGenericKey(e+".$"),i,o,a=0,s=n.length;a<s;a++)if(i=n[a],o=l.getValueForPosition(i)||l.getValueForPosition(i.slice(0,i.lastIndexOf("["))))return{value:o,operator:r(i)}},l.getPositionForKey=function(e){for(vartinl._affectedKeys)if(l._affectedKeys.hasOwnProperty(t)&&l._affectedKeys[t]===e)returnt},l.getPositionsForGenericK
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i=Package.ejson.EJSON,f,o;(0,Package.modules.meteorInstall)({node_modules:{meteor:{logging:{"logging.js":function(t){varn=0,o=[],a=0;(f=function(){returnf.info.apply(this,arguments)})._intercept=function(e){n+=e},f._suppress=function(e){a+=e},f._intercepted=function(){vare=o;returno=[],n=0,e},f.outputFormat="json";varc={debug:"green",warn:"magenta",error:"red"},s="blue",l="object"==typeofprocess&&"win32"===process.platform,u=function(e){returnl&&"string"==typeofe&&"Bright"!==e.slice(-6)?e+"Bright":e},p=["time","timeInexact","level","file","line","program","originApp","satellite","stderr"],d=p.concat(["app","message"]),h=function(t){varn=f.format(t),r=t.level;"undefined"!=typeofconsole&&console[r]?console[r](n):e._debug(n)};f._getCallerDetails=function(){vare=function(){return(newError).stack}();if(!e)return{};for(vart=e.split("\n"),n,r=1;r<t.length;++r){if((n=t[r]).match(/^\s*at eval \(eval/))return{file:"eval"};if(!n.match(/packages\/(?:local-test[:_])?logging(?:\/|\.js)/))break}vari={},f=/(?:[@(]| at )([^(]+?):([0-9:]+)(?:\)|$)/.exec(n);returnf?(i.line=f[2].split(":")[0],i.file=f[1].split("/").slice(-1)[0].split("?")[0],i):i},r.each(["debug","info","warn","error"],function(t){f[t]=function(c){if(a)a--;else{vars=!1;n&&(n--,s=!0);varl=!r.isObject(c)||r.isRegExp(c)||r.isDate(c)?{message:newString(c).toString()}:c;if(r.each(p,function(e){if(l[e])thrownewError("Can't set '"+e+"' in log message")}),r.has(l,"message")&&!r.isString(l.message))thrownewError("The 'message' field in log objects must be a string");if(l.omitCallerDetails||(l=r.extend(f._getCallerDetails(),l)),l.time=newDate,l.level=t,"debug"!==t)if(s)o.push(i.stringify(l));elseif(e.isServer)if("colored-text"===f.outputFormat)console.log(f.format(l,{color:!0}));else{if("json"!==f.outputFormat)thrownewError("Unknown logging output format: "+f.outputFormat);console.log(i.stringify(l))}elseh(l)}}}),f.parse=function(e){vart=null;if(e&&"{"===e.charAt(0))try{t=i.parse(e)}catch(e){}returnt&&t.time&&t.timeinstanceofDate?t:null},f.format=function(n,f){n=i.clone(n),f=f||{};varo=n.time;if(!(oinstanceofDate))thrownewError("'time' must be a Date object");vara=n.timeInexact,s=n.level||"info",l=n.file,p=n.line,h=n.app||"",m=n.originApp,g=n.message||"",b=n.program||"",v=n.satellite,y=n.stderr||"";r.each(d,function(e){deleten[e]}),r.isEmpty(n)||(g&&(g+=" "),g+=i.stringify(n));varx=function(e){returne<10?"0"+e:e.toString()},j=function(e){returne<100?"0"+x(e):e.toString()},O=o.getFullYear().toString()+x(o.getMonth()+1)+x(o.getDate()),w=x(o.getHours())+":"+x(o.getMinutes())+":"+x(o.getSeconds())+"."+j(o.getMilliseconds()),_="("+-(newDate).getTimezoneOffset()/60+")",A="";h&&(A+=h),m&&m!==h&&(A+=" via "+m),A&&(A="["+A+"] ");varN=[];b&&N.push(b),l&&N.push(l),p&&N.push(p);varz=r.isEmpty(N)?"":"("+N.join(":")+") ";v&&(z+=["[",v,"]"].join(""));varP=y?"(STDERR) ":"",S=function(n,r){returnf.color&&e.isServer&&r?t("cli-color")[r](n):n};returnS([s.charAt(0).toUpperCase(),O,"-",w,_,a?"? ":" ",A,z,P].join(""),u(f.metaColor||"blue"))+S(g,u(c[s]))},f.objFromText=function(e,t){varn={message:e,level:"info",time:newDate,timeInexact:!0};returnr.extend(n,t)}},node_modules:{"cli-color":{"package.json":function(e,t){t.name="cli-color",t.version="0.2.3",t.main="lib"},lib:{"index.js":function(e,t,n){"use strict";varr=e("es5-ext/lib/Object/descriptor"),i=e("es5-ext/lib/Object/extend"),f=e("es5-ext/lib/Object/map"),o=e("es5-ext/lib/Object/reduce"),a=e("es5-ext/lib/String/prototype/repeat"),c=e("memoizee"),s=e("tty"),l=Array.prototype.join,u=Object.defineProperty,p=Object.defineProperties,d=Math.abs,h=Math.floor,m=Math.max,g=Math.min,b,v,y,x,j,O,w,_,A,N,z;b=i({bold:{_bold:[1,22]},italic:{_italic:[3,23]},underline:{_underline:[4,24]},blink:{_blink:[5,25]},inverse:{_inverse:[7,27]},strike:{_strike:[9,29]}},["black","red","green","yellow","blue","magenta","cyan","white"].reduce(function(e,t,n){returne[t]={_fg:[30+n,39]},e[t+"Bright"]={_fg:[90+n,39]},
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,a=Package.meteor.meteorEnv,r;(function(){varn=0,a=!1;r={hold:function(){if(!e.isCordova)return{release:function(){}};if(a)thrownewError("Can't show launch screen once it's hidden");n++;varr=!1;return{release:function(){e.isCordova&&(r||(r=!0,0===--n&&"undefined"!=typeofnavigator&&navigator.splashscreen&&(a=!0,navigator.splashscreen.hide())))}}}}}).call(this),function(){varn=r.hold(),a=Package.templating&&Package.templating.Template;e.startup(function(){a?Package["iron:router"]?Package["iron:router"].Router.onAfterAction(function(){n.release()}):(a.body.onRendered(function(){n.release()}),setTimeout(function(){n.release()},6e3)):n.release()})}.call(this),"undefined"==typeofPackage&&(Package={}),function(e,n){for(varainn)aine||(e[a]=n[a])}(Package["launch-screen"]={},{LaunchScreen:r})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,r=Package.url.URL,o=Package.modules.meteorInstall,c=Package["babel-runtime"].meteorBabelHelpers,i=Package.promise.Promise,s=Package["ecmascript-runtime-client"].Symbol,l=Package["ecmascript-runtime-client"].Map,p=Package["ecmascript-runtime-client"].Set,u,f,d,m=o({node_modules:{meteor:{http:{"httpcall_common.js":function(){functione(e,t){returne.length>t?e.slice(0,t)+"...":e}vart=500;u=function(t,n){vara="failed ["+t+"]";returnn&&(a+=" "+e(("string"==typeofn?n:n.toString()).replace(/\n/g," "),500)),newError(a)},f=function(e){vart=(e.headers["content-type"]||";").split(";")[0];if(a.include(["application/json","text/javascript","application/javascript","application/x-javascript"],t))try{e.data=JSON.parse(e.content)}catch(t){e.data=null}elsee.data=null},(d={}).get=function(){returnd.call.apply(this,["GET"].concat(a.toArray(arguments)))},d.post=function(){returnd.call.apply(this,["POST"].concat(a.toArray(arguments)))},d.put=function(){returnd.call.apply(this,["PUT"].concat(a.toArray(arguments)))},d.del=function(){returnd.call.apply(this,["DELETE"].concat(a.toArray(arguments)))},d.patch=function(){returnd.call.apply(this,["PATCH"].concat(a.toArray(arguments)))}},"httpcall_client.js":function(t,n,o){d.call=function(t,n,o,i){if(i||"function"!=typeofo||(i=o,o=null),o=o||{},"function"!=typeofi)thrownewError("Can't make a blocking HTTP call from the client; callback required.");t=(t||"").toUpperCase();vars={},l=o.content;o.data&&(l=JSON.stringify(o.data),s["Content-Type"]="application/json");varp,d;if(l||"GET"===t||"HEAD"===t?p=o.params:d=o.params,n=r._constructUrl(n,o.query,p),!1===o.followRedirects)thrownewError("Option followRedirects:false not supported on client.");if(a.has(o,"npmRequestOptions"))thrownewError("Option npmRequestOptions not supported on client.");varm,h;if(o.auth){varg=o.auth.indexOf(":");if(g<0)thrownewError('auth option should be of the form "username:password"');m=o.auth.substring(0,g),h=o.auth.substring(g+1)}d&&(l=r._encodeParams(d)),a.extend(s,o.headers||{}),i=function(e){returnfunction(t,n){t&&n&&(t.response=n),e(t,n)}}(i),i=a.once(i);try{vary;if("undefined"!=typeofXMLHttpRequest)y=newXMLHttpRequest;else{if("undefined"==typeofActiveXObject)thrownewError("Can't create XMLHttpRequest");y=newActiveXObject("Microsoft.XMLHttp")}y.open(t,n,!0,m,h);for(varvinc.sanitizeForInObject(s))y.setRequestHeader(v,s[v]);varP=!1,w;if(o.timeout&&(w=e.setTimeout(function(){P=!0,y.abort()},o.timeout)),y.onreadystatechange=function(t){if(4===y.readyState)if(w&&e.clearTimeout(w),P)i(newError("timeout"));elseif(y.status){varn={};n.statusCode=y.status,n.content=y.responseText,n.headers={};varr=y.getAllResponseHeaders();""===r&&y.getResponseHeader("content-type")&&(r="content-type: "+y.getResponseHeader("content-type"));varo=r.split(/\r?\n/);a.each(o,function(e){vart=/^(.*?):(?:\s+)(.*)$/.exec(e);t&&3===t.length&&(n.headers[t[1].toLowerCase()]=t[2])}),f(n);varc=null;n.statusCode>=400&&(c=u(n.statusCode,n.content)),i(c,n)}elsei(newError("network"))},o.beforeSend&&!1===a.once(o.beforeSend).call(null,y,o))returny.abort();y.send(l)}catch(e){i(e)}}},"deprecated.js":function(){e.http=d}}}}},{extensions:[".js",".json"]});m("./node_modules/meteor/http/httpcall_common.js"),m("./node_modules/meteor/http/httpcall_client.js"),m("./node_modules/meteor/http/deprecated.js"),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varnint)nine||(e[n]=t[n])}(Package.http={},{HTTP:d})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,i=Package["babel-runtime"].meteorBabelHelpers,a=Package.promise.Promise,o=Package["ecmascript-runtime-client"].Symbol,s=Package["ecmascript-runtime-client"].Map,u=Package["ecmascript-runtime-client"].Set,l,c=r({node_modules:{meteor:{validatejs:{lib:{"validate.js":function(e,t,n){functionr(e){returne&&e.__esModule?e:{default:e}}varo=r(e("babel-runtime/helpers/typeof"));(function(e,t,n){"use strict";varr=function(e,t,n){n=s.extend({},s.options,n);vara=s.runValidations(e,t,n),o,u;for(oini.sanitizeForInObject(a))for(uini.sanitizeForInObject(a[o]))if(s.isPromise(a[o][u]))thrownewError("Use validate.async if you want support for promises");returnr.processValidationResults(a,n)},s=r;s.extend=function(e){return[].slice.call(arguments,1).forEach(function(t){for(varnini.sanitizeForInObject(t))e[n]=t[n]}),e},s.extend(r,{version:{major:0,minor:9,patch:0,metadata:"development",toString:function(){vare=s.format("%{major}.%{minor}.%{patch}",s.version);returns.isEmpty(s.version.metadata)||(e+="+"+s.version.metadata),e}},Promise:void0!==a?a:null,EMPTY_STRING_REGEXP:/^\s*$/,runValidations:function(e,t,n){varr=[],a,o,u,l,c,f,d;(s.isDomElement(e)||s.isJqueryElement(e))&&(e=s.collectFormValues(e));for(aini.sanitizeForInObject(t)){u=s.getDeepObjectValue(e,a),l=s.result(t[a],u,e,a,n,t);for(oini.sanitizeForInObject(l)){if(!(c=s.validators[o]))throwd=s.format("Unknown validator %{name}",{name:o}),newError(d);f=l[o],(f=s.result(f,u,e,a,n,t))&&r.push({attribute:a,value:u,validator:o,globalOptions:n,attributes:e,options:f,error:c.call(c,u,f,a,e,n)})}}returnr},processValidationResults:function(e,t){varn;switch(e=s.pruneEmptyErrors(e,t),e=s.expandMultipleErrors(e,t),e=s.convertErrorMessages(e,t),t.format||"grouped"){case"detailed":break;case"flat":e=s.flattenErrorsToArray(e);break;case"grouped":e=s.groupErrorsByAttribute(e);for(nini.sanitizeForInObject(e))e[n]=s.flattenErrorsToArray(e[n]);break;default:thrownewError(s.format("Unknown format %{format}",t))}returns.isEmpty(e)?void0:e},async:function(e,t,n){varr=(n=s.extend({},s.async.options,n)).wrapErrors||function(e){returne};!1!==n.cleanAttributes&&(e=s.cleanAttributes(e,t));vari=s.runValidations(e,t,n);returnnews.Promise(function(a,o){s.waitForResults(i).then(function(){varu=s.processValidationResults(i,n);u?o(newr(u,n,e,t)):a(e)},function(e){o(e)})})},single:function(e,t,n){returnn=s.extend({},s.single.options,n,{format:"flat",fullMessages:!1}),s({single:e},{single:t},n)},waitForResults:function(e){returne.reduce(function(e,t){returns.isPromise(t.error)?e.then(function(){returnt.error.then(function(e){t.error=e||null},function(e){if(einstanceofError)throwe;s.error("Rejecting promises with the result is deprecated. Please use the resolve callback instead."),t.error=e})}):e},news.Promise(function(e){e()}))},result:function(e){vart=[].slice.call(arguments,1);return"function"==typeofe&&(e=e.apply(null,t)),e},isNumber:function(e){return"number"==typeofe&&!isNaN(e)},isFunction:function(e){return"function"==typeofe},isInteger:function(e){returns.isNumber(e)&&e%1==0},isObject:function(e){returne===Object(e)},isDate:function(e){returneinstanceofDate},isDefined:function(e){returnnull!==e&&void0!==e},isPromise:function(e){return!!e&&s.isFunction(e.then)},isJqueryElement:function(e){returne&&s.isString(e.jquery)},isDomElement:function(e){return!!e&&(!(!s.isFunction(e.querySelectorAll)||!s.isFunction(e.querySelector))&&(!(!s.isObject(document)||e!==document)||("object"===("undefined"==typeofHTMLElement?"undefined":(0,o.default)(HTMLElement))?einstanceofHTMLElement:e&&"object"===(void0===e?"undefined":(0,o.default)(e))&&null!==e&&1===e.nodeType&&"string"==typeofe.nodeName)))},isEmpty:function(e){vart;if(!s.isDefined(e))return!0;if(s.isFunction(e))return!1;if(s.isString(e))returns.EMPTY_STRING_REGEXP.test(e);if(s.isArray(e))return0===e.length;if(s.isDate(e))return!1;if(s.isObject(e)){for(tini.sanitizeForInObject(e))return
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,r=Package.meteor.meteorEnv,s=Package.jquery.$,n=Package.jquery.jQuery;(function(){(function(){!function(e,t){varr=[].slice,s={},n=e.amplify={publish:function(e){if("string"!=typeofe)thrownewError("You must provide a valid topic to publish.");vart=r.call(arguments,1),n,o,a,u=0,i;if(!s[e])return!0;for(a=(n=s[e].slice()).length;u<a&&(o=n[u],!1!==(i=o.callback.apply(o.context,t)));u++);return!1!==i},subscribe:function(e,t,r,n){if("string"!=typeofe)thrownewError("You must provide a valid topic to create a subscription.");3===arguments.length&&"number"==typeofr&&(n=r,r=t,t=null),2===arguments.length&&(r=t,t=null),n=n||10;for(varo=0,a=e.split(/\s/),u=a.length,i;o<u;o++){e=a[o],i=!1,s[e]||(s[e]=[]);for(varc=s[e].length-1,l={callback:r,context:t,priority:n};c>=0;c--)if(s[e][c].priority<=n){s[e].splice(c+1,0,l),i=!0;break}i||s[e].unshift(l)}returnr},unsubscribe:function(e,t,r){if("string"!=typeofe)thrownewError("You must provide a valid topic to remove a subscription.");if(2===arguments.length&&(r=t,t=null),s[e])for(varn=s[e].length,o=0;o<n;o++)s[e][o].callback===r&&(t&&s[e][o].context!==t||(s[e].splice(o,1),o--,n--))}}}(this),function(e,t){functionr(e,r){s.addType(e,function(o,a,u){vari,c,l,p,f=a,d=(newDate).getTime();if(!o){f={},p=[],l=0;try{for(o=r.length;o=r.key(l++);)n.test(o)&&((c=JSON.parse(r.getItem(o))).expires&&c.expires<=d?p.push(o):f[o.replace(n,"")]=c.data);for(;o=p.pop();)r.removeItem(o)}catch(e){}returnf}if(o="__amplify__"+o,a===t){if(i=r.getItem(o),!((c=i?JSON.parse(i):{expires:-1}).expires&&c.expires<=d))returnc.data;r.removeItem(o)}elseif(null===a)r.removeItem(o);else{c=JSON.stringify({data:a,expires:u.expires?d+u.expires:null});try{r.setItem(o,c)}catch(t){s[e]();try{r.setItem(o,c)}catch(e){throws.error()}}}returnf})}vars=e.store=function(e,t,r){varn=s.type;returnr&&r.type&&r.typeins.types&&(n=r.type),s.types[n](e,t,r||{})};s.types={},s.type=null,s.addType=function(e,t){s.type||(s.type=e),s.types[e]=t,s[e]=function(t,r,n){returnn=n||{},n.type=e,s(t,r,n)}},s.error=function(){return"amplify.store quota exceeded"};varn=/^__amplify__/;for(varoin{localStorage:1,sessionStorage:1})try{window[o].setItem("__amplify__","x"),window[o].removeItem("__amplify__"),r(o,window[o])}catch(e){}if(!s.types.localStorage&&window.globalStorage)try{r("globalStorage",window.globalStorage[window.location.hostname]),"sessionStorage"===s.type&&(s.type="globalStorage")}catch(e){}!function(){if(!s.types.localStorage){vare=document.createElement("div"),r="amplify";e.style.display="none",document.getElementsByTagName("head")[0].appendChild(e);try{e.addBehavior("#default#userdata"),e.load(r)}catch(t){returnvoide.parentNode.removeChild(e)}s.addType("userData",function(n,o,a){e.load(r);varu,i,c,l,p,f=o,d=(newDate).getTime();if(!n){for(f={},p=[],l=0;u=e.XMLDocument.documentElement.attributes[l++];)(i=JSON.parse(u.value)).expires&&i.expires<=d?p.push(u.name):f[u.name]=i.data;for(;n=p.pop();)e.removeAttribute(n);returne.save(r),f}if(n=n.replace(/[^\-._0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c-\u200d\u203f\u2040\u2070-\u218f]/g,"-"),n=n.replace(/^-/,"_-"),o===t){if(u=e.getAttribute(n),!((i=u?JSON.parse(u):{expires:-1}).expires&&i.expires<=d))returni.data;e.removeAttribute(n)}elsenull===o?e.removeAttribute(n):(c=e.getAttribute(n),i=JSON.stringify({data:o,expires:a.expires?d+a.expires:null}),e.setAttribute(n,i));try{e.save(r)}catch(t){null===c?e.removeAttribute(n):e.setAttribute(n,c),s.userData();try{e.setAttribute(n,i),e.save(r)}catch(t){thrownull===c?e.removeAttribute(n):e.setAttribute(n,c),s.error()}}returnf})}}(),function(){functione(e){returne===t?t:JSON.parse(JSON.stringify(e))}varr={},n={};s.addType("memory",function(s,o,a){returns?o===t?e(r[s]):(n[s]&&(clearTimeout(n[s]),deleten[s]),null===o?(deleter[s],null):(r[s]=o,a.expires&&(n[s]=setTimeout(function(){deleter[s],deleten[s]},a.expires)),o)):e(r)})}()}(this.amplify=this.amplify||{}),function(e,t){"use strict";functionr(){}functions(e){return"[objectFunction]
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,o=Package.meteor.meteorEnv,a=Package.random.Random;(function(){varo=Object.prototype.hasOwnProperty,r="_localstorage_test_"+a.id(),n,c;try{(c=t.localStorage)&&(c.setItem(r,r),n=c.getItem(r),c.removeItem(r))}catch(e){}r===n&&(e.isServer?e._localStorage=c:["getItem","setItem","removeItem"].forEach(function(e){this[e]=function(){returnc[e].apply(c,arguments)}},e._localStorage={})),e._localStorage||(e.isClient&&e._debug("You are running a browser with no localStorage or userData support. Logging in from one tab will not cause another tab to be logged in."),e._localStorage=Object.create({setItem:function(e,t){this[e]=t},removeItem:function(e){deletethis[e]},getItem:function(e){returno.call(this,e)?this[e]:null}}))}).call(this),"undefined"==typeofPackage&&(Package={}),Package.localstorage={}}();
!function(){varn=Package.meteor.Meteor,e=Package.meteor.global,o=Package.meteor.meteorEnv,t=Package.underscore._,i=Package.tracker.Tracker,r=Package.tracker.Deps,a=Package.random.Random,c=Package["callback-hook"].Hook,s=Package["reactive-var"].ReactiveVar,u=Package["ddp-client"].DDP,l=Package.mongo.Mongo,g=Package.modules.meteorInstall,_=Package["babel-runtime"].meteorBabelHelpers,p=Package.promise.Promise,f=Package["ecmascript-runtime-client"].Symbol,h=Package["ecmascript-runtime-client"].Map,d=Package["ecmascript-runtime-client"].Set,k,m,L,E=g({node_modules:{meteor:{"accounts-base":{"client_main.js":function(e,o,t){vari=t;i.export({AccountsClient:function(){returnr},AccountsTest:function(){returna}});varr=void0;i.watch(e("./accounts_client.js"),{AccountsClient:function(n){r=n}},0);vara=void0;i.watch(e("./url_client.js"),{AccountsTest:function(n){a=n}},1),i.watch(e("./localstorage_token.js")),k=newr,n.users=k.users},"accounts_client.js":function(e,o,i){functionr(n){returnn&&n.__esModule?n:{default:n}}vara=r(e("babel-runtime/helpers/classCallCheck")),c=r(e("babel-runtime/helpers/possibleConstructorReturn")),l=r(e("babel-runtime/helpers/inherits"));i.export({AccountsClient:function(){return_}});varg=void0;i.watch(e("./accounts_common.js"),{AccountsCommon:function(n){g=n}},0);var_=function(n){functione(o){(0,a.default)(this,e);vart=(0,c.default)(this,n.call(this,o));returnt._loggingIn=news(!1),t._loggingOut=news(!1),t._loginServicesHandle=t.connection.subscribe("meteor.loginServiceConfiguration"),t._pageLoadLoginCallbacks=[],t._pageLoadLoginAttemptInfo=null,t._initUrlMatching(),t._initLocalStorage(),t._loginFuncs={},t}return(0,l.default)(e,n),e.prototype.userId=function(){functionn(){returnthis.connection.userId()}returnn}(),e.prototype._setLoggingIn=function(){functionn(n){this._loggingIn.set(n)}returnn}(),e.prototype.loggingIn=function(){functionn(){returnthis._loggingIn.get()}returnn}(),e.prototype.loggingOut=function(){functionn(){returnthis._loggingOut.get()}returnn}(),e.prototype.registerClientLoginFunction=function(){functionn(n,e){if(this._loginFuncs[n])thrownewError(n+" has been defined already");this._loginFuncs[n]=e}returnn}(),e.prototype.callLoginFunction=function(){functionn(n){if(!this._loginFuncs[n])thrownewError(n+" was not defined");for(vare=arguments.length,o=Array(e>1?e-1:0),t=1;t<e;t++)o[t-1]=arguments[t];returnthis._loginFuncs[n].apply(this,o)}returnn}(),e.prototype.applyLoginFunction=function(){functionn(n,e){if(!this._loginFuncs[n])thrownewError(n+" was not defined");returnthis._loginFuncs[n].apply(this,e)}returnn}(),e.prototype.logout=function(){functionn(n){vare=this;e._loggingOut.set(!0),e.connection.apply("logout",[],{wait:!0},function(o,t){e._loggingOut.set(!1),o?n&&n(o):(e.makeClientLoggedOut(),n&&n())})}returnn}(),e.prototype.logoutOtherClients=function(){functionn(n){vare=this;e.connection.apply("getNewToken",[],{wait:!0},function(n,o){n||e._storeLoginToken(e.userId(),o.token,o.tokenExpires)}),e.connection.apply("removeOtherTokens",[],{wait:!0},function(e){n&&n(e)})}returnn}(),e}(g),p=_.prototype;n.loggingIn=function(){returnk.loggingIn()},n.loggingOut=function(){returnk.loggingOut()},p.callLoginMethod=function(n){vare=this;n=t.extend({methodName:"login",methodArguments:[{}],_suppressLoggingIn:!1},n),t.each(["validateResult","userCallback"],function(e){n[e]||(n[e]=function(){})});varo=t.once(function(o){o?e._onLoginFailureHook.each(function(n){returnn({error:o}),!0}):e._onLoginHook.each(function(n){returnn(),!0}),n.userCallback.apply(this,arguments)}),i=!1,r=function(n,t){!n&&t&&t.token&&(e._reconnectStopper&&e._reconnectStopper.stop(),e._reconnectStopper=u.onReconnect(function(n){if(n==e.connection){i=!0;varr=e._storedLoginToken();r&&(t={token:r,tokenExpires:e._storedLoginTokenExpires()}),t.tokenExpires||(t.tokenExpires=e._tokenExpiration(newDate)),e._tokenExpiresSoon(t.tokenExpires)?e.makeClientLoggedOut():e.callLoginMethod({methodArguments:[{resume:t.token}],_suppressLoggingIn:!0,userCallback:function(n){vari=e._storedLoginToke
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,i=Package.meteor.meteorEnv,s=Package.jquery.$,a=Package.jquery.jQuery,o=Package.tracker.Tracker,n=Package.tracker.Deps,r=Package["reactive-dict"].ReactiveDict,c=Package.session.Session,p=Package.underscore._,u=Package.ejson.EJSON,h;(function(){vare=function(t){returnvoid0===t?"undefined":u.stringify(t)},i=function(t){if(void0!==t&&"undefined"!==t)returnu.parse(t)},s=function(t){t&&t.changed()};(h=function(e){functioni(){if(!(amplify.store("__PSDATAVERSION__"+c._dictName)>=1)){vart=amplify.store("__PSKEYS__"+c._dictName),e=amplify.store("__PSAKEYS__"+c._dictName);p.each([t,e],function(t){p.each(t,function(t){amplify.store(t,u.stringify(amplify.store(t)))})}),amplify.store("__PSDATAVERSION__"+c._dictName,2)}}functions(){if(!(amplify.store("__PSDATAVERSION__"+c._dictName)>=n)){vart=amplify.store("__PSKEYS__"+c._dictName),e=amplify.store("__PSAKEYS__"+c._dictName);p.each([t,e],function(t){p.each(t,function(t){vare=!1;try{u.parse(amplify.store(c._dictName+t))}catch(t){e=!0}if(!e){vari=u.parse(amplify.store(c._dictName+t)),s=u.toJSONValue(i);amplify.store(c._dictName+t,s)}})}),amplify.store("__PSDATAVERSION__"+c._dictName,4)}}if(!p.isString(e))thrownewError("dictName must be a string");this._dictName=e,"session"==e?(this._dictName="",this._dict=a):this._dict=newr(e);varn=4;this.psKeys={},this.psKeyList=[],this.psaKeys={},this.psaKeyList=[],this.default_method="temporary",t.settings&&t.settings.public&&t.settings.public.persistent_session&&(this.default_method=t.settings.public.persistent_session.default_method);varc=this;returnt.isClient&&t.startup(function(){vart;i(),s();vare=amplify.store("__PSKEYS__"+c._dictName);if("object"==typeofe&&void0!==e.length)for(vara=0;a<e.length;a++)p.has(c._dict.keys,e[a])||(t=c.get(e[a]),c.set(e[a],t,!0,!1));varo=amplify.store("__PSAKEYS__"+c._dictName);if("object"==typeofo&&void0!==o.length)for(vara=0;a<o.length;a++)p.has(c._dict.keys,o[a])||(t=c.get(o[a]),c.setAuth(o[a],t,!0,!0))}),o.autorun(function(){t.userId&&(t.userId()||c.clearAuth())}),this}).prototype.store=functiont(e,i,s){if(this.psKeyList=amplify.store("__PSKEYS__"+this._dictName)||[],this.psaKeyList=amplify.store("__PSAKEYS__"+this._dictName)||[],"get"==e)returnamplify.store(this._dictName+i);this.psKeyList=p.without(this.psKeyList,i),this.psaKeyList=p.without(this.psaKeyList,i),deletethis.psKeys[i],deletethis.psaKeys[i],void0===s||null===s||"temporary"==e?s=null:"persistent"==e?(this.psKeys[i]=u.toJSONValue(s),this.psKeyList=p.union(this.psKeyList,[i])):"authenticated"==e&&(this.psaKeys[i]=u.toJSONValue(s),this.psaKeyList=p.union(this.psaKeyList,[i])),amplify.store("__PSKEYS__",this.psKeyList),amplify.store("__PSAKEYS__",this.psaKeyList),amplify.store(this._dictName+i,u.toJSONValue(s))},h.prototype.old_get=function(){returnthis._dict.get.apply(this._dict,arguments)},h.prototype.get=functiont(e){vari=this.old_get(e),s;returnvoid0!==this.store("get",e)&&(s=u.fromJSONValue(this.store("get",e))),void0===s||null===s?i:s},h.prototype.old_set=function(){returnthis._dict.set.apply(this._dict,arguments)},h.prototype.set=functiont(e,i,s,a){if("object"!=typeofe||void0!==i){varo=e,n="temporary";(s||void0===s&&("persistent"==this.default_method||"authenticated"==this.default_method))&&(n=a||void0===s&&void0===a&&"authenticated"==this.default_method?"authenticated":"persistent"),this.store(n,o,i),this.old_set(o,i)}elsethis._setObject(e,s,a)},h.prototype.all=functiont(){this._dict.allDeps&&this._dict.allDeps.depend();vare={};returnp.each(this._dict.keys,function(t,s){e[s]=i(t)}),e},h.prototype._setObject=functiont(e,i,s){vara=this;p.each(e,function(t,e){a.set(e,t,i,s)})},h.prototype._ensureKey=functiont(e){vari=this._dict;eini.keyDeps||(i.keyDeps[e]=newo.Dependency,i.keyValueDeps[e]={})},h.prototype.equals=functiont(i,s){vara=null;if(Package.mongo&&(a=Package.mongo.Mongo.ObjectID),!("string"==typeofs||"number"==typeofs||"boolean"==typeofs||void0===s||sinstanceofDate||a&&sinstanceofa||null===s))thrownewError("Reacti
!function(){vare=Package.meteor.Meteor,o=Package.meteor.global,n=Package.meteor.meteorEnv,t=Package.modules.meteorInstall,a=Package["babel-runtime"].meteorBabelHelpers,c=Package.promise.Promise,l=Package["ecmascript-runtime-client"].Symbol,i=Package["ecmascript-runtime-client"].Map,r=Package["ecmascript-runtime-client"].Set,s=Package.webapp.WebApp,g=Package.logging.Log,u=Package.deps.Tracker,f=Package.deps.Deps,d=Package.session.Session,v=Package["ddp-client"].DDP,p=Package.mongo.Mongo,m=Package.ui.Blaze,k=Package.ui.UI,P=Package.ui.Handlebars,h=Package.spacebars.Spacebars,w=Package["templating-runtime"].Template,y=Package.check.check,b=Package.check.Match,L=Package.underscore._,E=Package.jquery.$,R=Package.jquery.jQuery,T=Package.random.Random,j=Package.ejson.EJSON,S=Package["launch-screen"].LaunchScreen,I=Package.htmljs.HTML;t({node_modules:{meteor:{"ohif:log":{"main.js":function(e,o,n){vart=void0;n.watch(e("meteor/meteor"),{Meteor:function(e){t=e}},0);vara=void0;n.watch(e("ohif-core"),{OHIF:function(e){a=e}},1);varc=void0;n.watch(e("loglevel"),{default:function(e){c=e}},2);varl=t.isProduction?"ERROR":"TRACE";a.log=c.getLogger("OHIF"),a.log.setLevel(l);varr=newi;a.log.time=function(e){varo=void0===e?"default":e;r.set(o,(newDate).getTime())},a.log.timeEnd=function(e){varo=void0===e?"default":e,n=(newDate).getTime(),t=r.get(o)||n;r.delete(o);varc=n-t;a.log.info(o+": "+c+"ms")}},node_modules:{loglevel:{"package.json":function(e,o){o.name="loglevel",o.version="1.4.1",o.main="lib/loglevel"},lib:{"loglevel.js":function(e,o,n){!function(e,o){"use strict";"function"==typeofdefine&&define.amd?define(o):"object"==typeofn&&n.exports?n.exports=o():e.log=o()}(this,function(){"use strict";functione(e){returntypeofconsole!==i&&(void0!==console[e]?o(console,e):void0!==console.log?o(console,"log"):l)}functiono(e,o){varn=e[o];if("function"==typeofn.bind)returnn.bind(e);try{returnFunction.prototype.bind.call(n,e)}catch(o){returnfunction(){returnFunction.prototype.apply.apply(n,[e,arguments])}}}functionn(e,o,n){returnfunction(){typeofconsole!==i&&(t.call(this,o,n),this[e].apply(this,arguments))}}functiont(e,o){for(varn=0;n<r.length;n++){vart=r[n];this[t]=n<e?l:this.methodFactory(t,e,o)}}functiona(o,t,a){returne(o)||n.apply(this,arguments)}functionc(e,o,n){functionc(e){varo=(r[e]||"silent").toUpperCase();try{returnvoid(window.localStorage[u]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(u)+"="+o+";"}catch(e){}}functionl(){vare;try{e=window.localStorage[u]}catch(e){}if(typeofe===i)try{varo=window.document.cookie,n=o.indexOf(encodeURIComponent(u)+"=");n&&(e=/^([^;]+)/.exec(o.slice(n))[1])}catch(e){}returnvoid0===s.levels[e]&&(e=void0),e}vars=this,g,u="loglevel";e&&(u+=":"+e),s.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},s.methodFactory=n||a,s.getLevel=function(){returng},s.setLevel=function(o,n){if("string"==typeofo&&void0!==s.levels[o.toUpperCase()]&&(o=s.levels[o.toUpperCase()]),!("number"==typeofo&&o>=0&&o<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+o;if(g=o,!1!==n&&c(o),t.call(s,o,e),typeofconsole===i&&o<s.levels.SILENT)return"No console available for logging"},s.setDefaultLevel=function(e){l()||s.setLevel(e,!1)},s.enableAll=function(e){s.setLevel(s.levels.TRACE,e)},s.disableAll=function(e){s.setLevel(s.levels.SILENT,e)};varf=l();null==f&&(f=null==o?"WARN":o),s.setLevel(f,!1)}varl=function(){},i="undefined",r=["trace","debug","info","warn","error"],s=newc,g={};s.getLogger=functione(o){if("string"!=typeofo||""===o)thrownewTypeError("You must supply a name when creating a logger.");varn=g[o];returnn||(n=g[o]=newc(o,s.getLevel(),s.methodFactory)),n};varu=typeofwindow!==i?window.log:void0;returns.noConflict=function(){returntypeofwindow!==i&&window.log===s&&(window.log=u),s},s})}}}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/ohif:log/main.js"),"undefined"==typeofPackage&&(Package={}),Package["ohif:log"]={}}();
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package["reactive-var"].ReactiveVar,r=Package.modules.meteorInstall,i=Package["babel-runtime"].meteorBabelHelpers,a=Package.promise.Promise,c=Package["ecmascript-runtime-client"].Symbol,u=Package["ecmascript-runtime-client"].Map,s=Package["ecmascript-runtime-client"].Set,f=r({node_modules:{meteor:{"ohif:commands":{"main.js":function(t,e,n){n.export({context:function(){returna},commands:function(){returnc}});varo=void0;n.watch(t("meteor/reactive-var"),{ReactiveVar:function(t){o=t}},0);varr=void0;n.watch(t("ohif-core"),{OHIF:function(t){r=t}},1);vari=void0;n.watch(t("meteor/ohif:commands/client/classes/CommandsManager"),{CommandsManager:function(t){i=t}},2);vara=newo(null);r.context=a;varc=newi(a);r.commands=c},client:{classes:{"CommandsManager.js":function(t,e,n){functiono(t){returnt&&t.__esModule?t:{default:t}}varr=o(t("babel-runtime/helpers/typeof")),i=o(t("babel-runtime/helpers/classCallCheck"));n.export({CommandsManager:function(){returns}});vara=void0;n.watch(t("meteor/reactive-var"),{ReactiveVar:function(t){a=t}},0);varc=void0;n.watch(t("meteor/underscore"),{_:function(t){c=t}},1);varu=void0;n.watch(t("ohif-core"),{OHIF:function(t){u=t}},2);vars=function(){functiont(){(0,i.default)(this,t),this.contexts={},this.last=newa("")}returnt.prototype.getContext=function(){functiont(t){vare=this.contexts[t];returne||u.log.warn('No context found with name "'+t+'"')}returnt}(),t.prototype.getCurrentContext=function(){functiont(){vart=u.context.get();returnt?this.getContext(t):u.log.warn("There is no selected context")}returnt}(),t.prototype.createContext=function(){functiont(t){if(t)returnthis.contexts[t]?this.clear(t):void(this.contexts[t]={})}returnt}(),t.prototype.set=function(){functiont(t,e){varn=arguments.length>2&&void0!==arguments[2]&&arguments[2];if("object"===(void0===e?"undefined":(0,r.default)(e))){varo=this.getContext(t);o&&(n||this.clear(t),Object.keys(e).forEach(function(t){returno[t]=e[t]}))}}returnt}(),t.prototype.register=function(){functiont(t,e,n){if("object"===(void0===n?"undefined":(0,r.default)(n))){varo=this.getContext(t);o&&(o[e]=n)}}returnt}(),t.prototype.setDisabledFunction=function(){functiont(t,e,n){if(e&&"function"==typeofn){varo=this.getContext(t);if(o){varr=o[e];if(!r)returnu.log.warn('Trying to set a disabled function to a command "'+e+'" that was not yet defined');r.disabled=n}}}returnt}(),t.prototype.clear=function(){functiont(t){t&&(this.contexts[t]={})}returnt}(),t.prototype.getDefinition=function(){functiont(t){vare=this.getCurrentContext();if(e)returne[t]}returnt}(),t.prototype.isDisabled=function(){functiont(t){vare=this.getDefinition(t);if(!e)return!1;varn=e.disabled;return!(!c.isFunction(n)||!n())||!(c.isFunction(n)||!n)}returnt}(),t.prototype.run=function(){functiont(t){vare=this.getDefinition(t);if(!e)returnu.log.warn('Command "'+t+'" not found in current context');varn=e.action,o=e.params;if(!this.isDisabled(t)){if("function"!=typeofn)returnu.log.warn('No action was defined for command "'+t+'"');varr=n(o);returnthis.last.get()===t?this.last.dep.changed():this.last.set(t),r}}returnt}(),t}()}}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/ohif:commands/main.js");"undefined"==typeofPackage&&(Package={}),Package["ohif:commands"]=f}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package["templating-runtime"].Template,r=Package["reactive-var"].ReactiveVar,i=Package.session.Session,a=Package["iron:router"].Router,s=Package["iron:router"].RouteController,u=Package["u2622:persistent-session"].PersistentSession,c=Package.modules.meteorInstall,l=Package["babel-runtime"].meteorBabelHelpers,f=Package.promise.Promise,h=Package["iron:core"].Iron,p=Package["ecmascript-runtime-client"].Symbol,m=Package["ecmascript-runtime-client"].Map,d=Package["ecmascript-runtime-client"].Set,y=Package.blaze.Blaze,k=Package.blaze.UI,v=Package.blaze.Handlebars,g=Package.spacebars.Spacebars,b=Package.htmljs.HTML,T=c({node_modules:{meteor:{"ohif:hotkeys":{"main.js":function(e,t,n){n.export({hotkeys:function(){returni}});varo=void0;n.watch(e("ohif-core"),{OHIF:function(e){o=e}},0);varr=void0;n.watch(e("meteor/ohif:hotkeys/client/classes/HotkeysManager"),{HotkeysManager:function(e){r=e}},1),n.watch(e("jquery.hotkeys"));vari=newr;o.hotkeys=i},client:{"index.js":function(e,t,n){n.watch(e("./components")),n.watch(e("./lib"))},classes:{"HotkeysContext.js":function(e,t,n){functiono(e){returne&&e.__esModule?e:{default:e}}varr=o(e("babel-runtime/helpers/typeof")),i=o(e("babel-runtime/helpers/classCallCheck"));n.export({HotkeysContext:function(){returns}});vara=void0;n.watch(e("ohif-core"),{OHIF:function(e){a=e}},0);vars=function(){functione(t,n,o){(0,i.default)(this,e),this.name=t,this.definitions=Object.assign({},n),this.enabled=o}returne.prototype.extend=function(){functione(){vare=this,t=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};"object"===(void0===t?"undefined":(0,r.default)(t))&&(this.definitions=Object.assign({},t),Object.keys(t).forEach(function(n){varo=t[n];e.unregister(n),o&&e.register(n,o),e.definitions[n]=o}))}returne}(),e.prototype.register=function(){functione(e,t){varn=this;if(t){if(!e)returna.log.warn('No command was defined for hotkey "'+t+'"');varo="keydown.hotkey."+this.name+"."+e,r=function(t){return$(document).bind(o,t,function(t){n.enabled.get()&&a.commands.run(e)})};tinstanceofArray?t.forEach(function(e){returnr(e)}):r(t)}}returne}(),e.prototype.unregister=function(){functione(e){vart="keydown.hotkey."+this.name+"."+e;this.definitions[e]&&($(document).unbind(t),deletethis.definitions[e])}returne}(),e.prototype.initialize=function(){functione(){vare=this;Object.keys(this.definitions).forEach(function(t){varn=e.definitions[t];e.register(t,n)})}returne}(),e.prototype.destroy=function(){functione(){$(document).unbind("keydown.hotkey."+this.name)}returne}(),e}()},"HotkeysManager.js":function(e,t,n){functiono(e){returne&&e.__esModule?e:{default:e}}varr=o(e("babel-runtime/helpers/classCallCheck"));n.export({HotkeysManager:function(){returnh}});vari=void0;n.watch(e("meteor/meteor"),{Meteor:function(e){i=e}},0);vara=void0;n.watch(e("meteor/reactive-var"),{ReactiveVar:function(e){a=e}},1);vars=void0;n.watch(e("meteor/tracker"),{Tracker:function(e){s=e}},2);varu=void0;n.watch(e("meteor/session"),{Session:function(e){u=e}},3);varc=void0;n.watch(e("ohif-core"),{OHIF:function(e){c=e}},4);varl=void0;n.watch(e("meteor/ohif:hotkeys/client/classes/HotkeysContext"),{HotkeysContext:function(e){l=e}},5);varh=function(){functione(){vart=this;(0,r.default)(this,e),this.contexts={},this.defaults={},this.currentContextName=null,this.enabled=newa(!0),this.retrieveFunction=null,this.storeFunction=null,this.changeObserver=news.Dependency,s.autorun(function(){vare=c.context.get();t.switchToContext(e)})}returne.prototype.setRetrieveFunction=function(){functione(e){this.retrieveFunction=e}returne}(),e.prototype.setStoreFunction=function(){functione(e){this.storeFunction=e}returne}(),e.prototype.store=function(){functione(e,t){varn=this,o="hotkeysDefinitions."+e;returnnewf(function(r,a){n.storeFunction?n.storeFunction(e,t).then(r).catch(a):i.userId()?c.user.setData(o,t).then(r).catch(a):(u.setPersistent(o,t),r())})}returne}(),e.prototype.retrieve=function(){function
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i;(function(){(function(){vare=function(e,t){varn=this;if(n._eventEmitter.maxListeners&&t>n._eventEmitter.maxListeners)return"warning: possible EventEmitter memory leak detected. "+t+' listeners added on event "'+e+'". Use emitter.setMaxListeners() to increase limit. ('+n._eventEmitter.maxListeners+")"};(i=function(e){vart=this;if(!(tinstanceofi))thrownewError('use "new" to construct an EventEmitter');e=e||{},t._eventEmitter={onListeners:{},onceListeners:{},maxListeners:e.maxListeners||10}}).prototype.setMaxListeners=function(e){this._eventEmitter.maxListeners=e};vart=function(t,n,r){returnvoid0===t[n]&&(t[n]=[]),e.apply(this,[n,t[n].push(r)])};i.prototype.on=function(e,n){varr=t.apply(this,[this._eventEmitter.onListeners,e,n]);returnr&&console.warn(newError(r).stack),this},i.prototype.once=function(e,n){varr=t.apply(this,[this._eventEmitter.onceListeners,e,n]);returnr&&console.warn(newError(r).stack),this};varn=function(e,t){varn=this,i=0;returnvoid0!==e&&r.each(e,function(e){i++,e.apply(n,t)}),i};i.prototype.emit=function(e){vart=this,i=r.rest(arguments),o=0,s=t._eventEmitter.onceListeners[e];returnt._eventEmitter.onceListeners[e]=[],o+=n.call(t,t._eventEmitter.onListeners[e],i),(o+=n.call(t,s,i))>0};varo=function(e,t){for(varn=!1,r=[],i=0;i<e.length;i++)n||e[i]!==t?r.push(e[i]):n=!0;returnr};i.prototype.off=function(e,t){varn=this;e?"function"==typeoft?(void0!==n._eventEmitter.onListeners[e]&&(n._eventEmitter.onListeners[e]=o(n._eventEmitter.onListeners[e],t)),void0!==n._eventEmitter.onceListeners[e]&&(n._eventEmitter.onceListeners[e]=o(n._eventEmitter.onceListeners[e],t))):(n._eventEmitter.onListeners[e]=[],n._eventEmitter.onceListeners[e]=[]):(n._eventEmitter.onListeners={},n._eventEmitter.onceListeners={})},i.prototype.addListener=i.prototype.on,i.prototype.removeListener=i.prototype.off,i.prototype.removeAllListeners=i.prototype.off,i.prototype.one=i.prototype.once,i.prototype.trigger=i.prototype.emit}).call(this)}).call(this),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varnint)nine||(e[n]=t[n])}(Package["raix:eventemitter"]={},{EventEmitter:i})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,i=Package.meteor.meteorEnv,n=Package["aldeed:simple-schema"].SimpleSchema,r=Package["aldeed:simple-schema"].MongoObject,o=Package.underscore._,a=Package.check.check,s=Package.check.Match,c=Package.mongo.Mongo,l=Package.minimongo.LocalCollection,m=Package.minimongo.Minimongo,u=Package.ejson.EJSON,d=Package["raix:eventemitter"].EventEmitter,f;(function(){functiont(t,n,r,l,m){functionu(e,i,n,r,a,s){E.clean(e,{mutate:!0,filter:n,autoConvert:r,getAutoValues:i,isModifier:"insert"!==t,removeEmptyStrings:a,trimStrings:s,extendAutoValueContext:o.extend({isInsert:"insert"===t,isUpdate:"update"===t&&!0!==v.upsert,isUpsert:_,userId:l,isFromTrustedCode:m,docId:I,isLocalCollection:k},v.extendAutoValueContext||{})})}vard=this,f,p,h,v,_,g,y,S;if(!n.length)thrownewError(t+" requires an argument");if("insert"===t)f=n[0],v=n[1],p=n[2],n="function"==typeofv?[f,v]:"function"==typeofp?[f,p]:[f];else{if("update"!==t)thrownewError("invalid type argument");g=n[0],f=n[1],v=n[2],p=n[3]}varC=o.isEmpty(f);p||"function"!=typeofv||(p=v,v={}),v=v||{},S="function"==typeofn[y=n.length-1],_="update"===t&&!0===v.upsert;varE=d.simpleSchema(f,v,g),k=null===d._connection;(e.isServer||k)&&!1===v.getAutoValues&&(r=!1);varw=v.validationContext;w?"string"==typeofw&&(w=E.namedContext(w)):w=E.namedContext(),e.isClient&&!p&&(p=function(i){i&&e._debug(t+" failed: "+(i.reason||i.stack))}),e.isClient&&S&&(p=n[y]=s(w,p));varx=E.allowsKey("_id");"insert"===t&&!f._id&&x&&(f._id=d._makeNewID());varI;"insert"===t?I=f._id:"update"===t&&g&&(I="string"==typeofg||ginstanceofc.ObjectID?g:g._id);varP;f._id&&!x&&(P=f._id,deletef._id),u(f,r,!1!==v.filter,!1!==v.autoConvert,!1!==v.removeEmptyStrings,!1!==v.trimStrings);varA={};for(varMinf)f.hasOwnProperty(M)&&(A[M]=f[M]);if(e.isServer&&_&&o.isObject(g)){varO=A.$set||{};A.$set=o.clone(g),x||deleteA.$set._id,o.extend(A.$set,O)}if(e.isClient&&!k&&u(A,!0,!1,!1,!1,!1),!C&&o.isEmpty(A))thrownewError("After filtering out keys not in the schema, your "+("update"===t?"modifier":"object")+" is now empty");varV;if(V=!1===v.validate||w.validate(A,{modifier:"update"===t||"upsert"===t,upsert:_,extendedCustomContext:o.extend({isInsert:"insert"===t,isUpdate:"update"===t&&!0!==v.upsert,isUpsert:_,userId:l,isFromTrustedCode:m,docId:I,isLocalCollection:k},v.extendedCustomContext||{})}))returnP&&(f._id=P),"insert"===t?n[0]=f:n[1]=f,e.isServer&&S&&(n[y]=a(w,n[y])),n;if(h=i(w),!p)throwh;p(h,!1)}functioni(t){vari,r=n.version>=2?t.validationErrors():t.invalidKeys();i=r.length?t.keyErrorMessage(r[0].name):"Failed validation";varo=newError(i);returno.invalidKeys=r,o.validationContext=t,e.isServer&&(o.sanitizedError=newe.Error(400,i,u.stringify(o.invalidKeys))),o}functionr(e,t){vari=t.split("c2_")[1].split(" ")[0],n=t.split("dup key:")[1].split('"')[1];e[h]([{name:i,type:"notUnique",value:n}])}functiona(e,t){returnfunctionn(a){vars=o.toArray(arguments);returna&&("MongoError"===a.name&&11001===a.code||a.message.indexOf(!0))&&-1!==a.message.indexOf("c2_")&&(r(e,a.message),s[0]=i(e)),t.apply(this,s)}}functions(t,n){returnfunctiona(s){varc=o.toArray(arguments);if(sinstanceofe.Error&&400===s.error&&"INVALID"===s.reason&&"string"==typeofs.details){varl=u.parse(s.details);t[h](l),c[0]=i(t)}elsesinstanceofe.Error&&409===s.error&&s.reason&&-1!==s.reason.indexOf("E11000")&&-1!==s.reason.indexOf("c2_")&&(r(t,s.reason),c[0]=i(t));returnn.apply(this,c)}}functionm(e){Package&&Package.insecure&&!v[e._name]&&(e.allow({insert:function(){return!0},update:function(){return!0},remove:function(){return!0},fetch:[],transform:null}),v[e._name]=!0)}functionp(i,n){if(!_[i._name]){varr=null===i._connection;i.deny({insert:function(e,t){returni.simpleSchema(t).clean(t,{mutate:!0,isModifier:!1,filter:!1,autoConvert:!1,removeEmptyStrings:!1,trimStrings:!1,extendAutoValueContext:{isInsert:!0,isUpdate:!1,isUpsert:!1,userId:e,isFromTrustedCode:!1,docId:t._id,isLocalCollection:r}}),!1},update:function(e,t,n,o){returni.simpleSchema(o).clean(o,{mutate:!0,isModifier:!0,
!function(){vare=Package.meteor.Meteor,a=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package["aldeed:collection2-core"].Collection2,c=Package.underscore._,i=Package.minimongo.LocalCollection,t=Package.minimongo.Minimongo,s=Package.check.check,l=Package.check.Match,m=Package.modules.meteorInstall,r=Package["babel-runtime"].meteorBabelHelpers,u=Package.promise.Promise,g=Package["aldeed:simple-schema"].SimpleSchema,d=Package["aldeed:simple-schema"].MongoObject,k=Package.mongo.Mongo,p=Package["ecmascript-runtime-client"].Symbol,P=Package["ecmascript-runtime-client"].Map,h=Package["ecmascript-runtime-client"].Set;m({node_modules:{meteor:{"aldeed:schema-index":{lib:{"indexing.js":function(){g.extendOptions({index:l.Optional(l.OneOf(Number,String,Boolean)),unique:l.Optional(Boolean),sparse:l.Optional(Boolean)}),(!g.version||g.version<2)&&g.messages({notUnique:"[label] must be unique"}),e.isServer&&o.on("schema.attached",function(a,n){functiono(n,o,c,i){e.startup(function(){a._collection._ensureIndex(n,{background:!0,name:o,unique:c,sparse:i})})}functioni(n){e.startup(function(){try{a._collection._dropIndex(n)}catch(e){}})}n.version>=2&&n.messageBox.messages({notUnique:"{{label}} must be unique"});vart=2===n.version?"mergedSchema":"schema";c.each(n[t](),function(e,a){if("index"ine||!0===e.unique){varn={},c;"index"ine?!0===(c=e.index)&&(c=1):c=1;vart="c2_"+a;n[a.replace(/\.\$\./g,".")]=c;vars=!!e.unique&&(1===c||-1===c),l=e.sparse||!1;!l&&s&&e.optional&&(l=!0),!1===c?i(t):o(n,t,s,l)}})})}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/aldeed:schema-index/lib/indexing.js"),"undefined"==typeofPackage&&(Package={}),Package["aldeed:schema-index"]={}}();
!function(){vare=Package.meteor.Meteor,a=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package["aldeed:collection2-core"].Collection2,t=Package.underscore._,i=Package.minimongo.LocalCollection,c=Package.minimongo.Minimongo,l=Package.check.check,s=Package.check.Match,d=Package["aldeed:simple-schema"].SimpleSchema,g=Package["aldeed:simple-schema"].MongoObject,r=Package.mongo.Mongo;(function(){d.extendOptions({denyInsert:s.Optional(Boolean),denyUpdate:s.Optional(Boolean)}),(!d.version||d.version<2)&&d.messages({insertNotAllowed:"[label] cannot be set during an insert",updateNotAllowed:"[label] cannot be set during an update"}),o.on("schema.attached",function(e,a){a.version>=2&&a.messageBox.messages({insertNotAllowed:"{{label}} cannot be set during an insert",updateNotAllowed:"{{label}} cannot be set during an update"}),a.addValidator(function(){if(this.isSet){vare=this.definition;returne.denyInsert&&this.isInsert?"insertNotAllowed":e.denyUpdate&&(this.isUpdate||this.isUpsert)?"updateNotAllowed":void0}})})}).call(this),"undefined"==typeofPackage&&(Package={}),Package["aldeed:schema-deny"]={}}();
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,i=Package.meteor.meteorEnv,o=Package.jquery.$,n=Package.jquery.jQuery;(function(){if(void0===n)thrownewError("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";vare=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>2)thrownewError("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(n),function(t){"use strict";functione(){vart=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(variine)if(void0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){vari=!1,o=this;t(this).one("bsTransitionEnd",function(){i=!0});varn=function(){i||t(o).trigger(t.support.transition.end)};returnsetTimeout(n,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))returne.handleObj.handler.apply(this,arguments)}})})}(n),function(t){"use strict";functione(e){returnthis.each(function(){vari=t(this),n=i.data("bs.alert");n||i.data("bs.alert",n=newo(this)),"string"==typeofe&&n[e].call(i)})}vari='[data-dismiss="alert"]',o=function(e){t(e).on("click",i,this.close)};o.VERSION="3.3.6",o.TRANSITION_DURATION=150,o.prototype.close=function(e){functioni(){a.detach().trigger("closed.bs.alert").remove()}varn=t(this),s=n.attr("data-target");s||(s=(s=n.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,""));vara=t(s);e&&e.preventDefault(),a.length||(a=n.closest(".alert")),a.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",i).emulateTransitionEnd(o.TRANSITION_DURATION):i())};varn=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=o,t.fn.alert.noConflict=function(){returnt.fn.alert=n,this},t(document).on("click.bs.alert.data-api",i,o.prototype.close)}(n),function(t){"use strict";functione(e){returnthis.each(function(){varo=t(this),n=o.data("bs.button"),s="object"==typeofe&&e;n||o.data("bs.button",n=newi(this,s)),"toggle"==e?n.toggle():e&&n.setState(e)})}vari=function(e,o){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,o),this.isLoading=!1};i.VERSION="3.3.6",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){vari="disabled",o=this.$element,n=o.is("input")?"val":"html",s=o.data();e+="Text",null==s.resetText&&o.data("resetText",o[n]()),setTimeout(t.proxy(function(){o[n](null==s[e]?this.options[e]:s[e]),"loadingText"==e?(this.isLoading=!0,o.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,o.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){vart=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){vari=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}elsethis.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};varo=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){returnt.fn.button=o,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){varo=t(i.target);o.hasClass("btn")||(o=o.closest(".btn")),e.call(o,"toggle"),t(i.target).is('input[type="radio"]')||t(i.target).is('input[type="checkbox"]')||i.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(n),function(t){"use strict";functione(e){returnthis.each(function(){varo=t(this),n=o.data("bs.carousel"),s=t.ext
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package.jquery.$,i=Package.jquery.jQuery,r=Package.random.Random,a=Package["templating-runtime"].Template,s=Package["iron:router"].Router,u=Package["iron:router"].RouteController,c=Package["momentjs:moment"].moment,l=Package.validatejs.validate,d=Package["ohif:viewerbase"].dialogPolyfill,g=Package.modules.meteorInstall,p=Package["babel-runtime"].meteorBabelHelpers,h=Package.promise.Promise,f=Package["iron:core"].Iron,m=Package["ecmascript-runtime-client"].Symbol,v=Package["ecmascript-runtime-client"].Map,w=Package["ecmascript-runtime-client"].Set,b=Package.webapp.WebApp,y=Package.logging.Log,P=Package.deps.Tracker,S=Package.deps.Deps,T=Package.session.Session,M=Package["ddp-client"].DDP,R=Package.mongo.Mongo,k=Package.ui.Blaze,D=Package.ui.UI,x=Package.ui.Handlebars,I=Package.spacebars.Spacebars,E=Package.check.check,C=Package.check.Match,V=Package.underscore._,N=Package.ejson.EJSON,j=Package["launch-screen"].LaunchScreen,O=Package.htmljs.HTML,q,B,L,Z,A,z,_,U,H,F,W=g({node_modules:{meteor:{"ohif:hanging-protocols":{both:{"namespace.js":function(){q={}},"collections.js":function(){(B=newt.Collection("hangingprotocols"))._debugName="HangingProtocols",B.allow({insert:function(){return!0},update:function(){return!0},remove:function(){return!0}}),t.isDevelopment&&t.isServer&&t.startup(function(){B.remove({})})},"schema.js":function(t,e,n){n.watch(t("./classes/Protocol")),n.watch(t("./classes/Stage")),n.watch(t("./classes/Viewport")),n.watch(t("./classes/ViewportStructure")),n.watch(t("./classes/rules/ProtocolMatchingRule")),n.watch(t("./classes/rules/StudyMatchingRule")),n.watch(t("./classes/rules/SeriesMatchingRule")),n.watch(t("./classes/rules/ImageMatchingRule"))},"hardcodedData.js":function(){q.attributeDefaults={abstractPriorValue:0},q.displaySettings={invert:{id:"invert",text:"Show Grayscale Inverted",defaultValue:"NO",options:["YES","NO"]}},q.studyAttributes=[{id:"x00100020",text:"(x00100020) Patient ID"},{id:"x0020000d",text:"(x0020000d) Study Instance UID"},{id:"x00080020",text:"(x00080020) Study Date"},{id:"x00080030",text:"(x00080030) Study Time"},{id:"x00081030",text:"(x00081030) Study Description"},{id:"abstractPriorValue",text:"Abstract Prior Value"}],q.protocolAttributes=[{id:"x00100020",text:"(x00100020) Patient ID"},{id:"x0020000d",text:"(x0020000d) Study Instance UID"},{id:"x00080020",text:"(x00080020) Study Date"},{id:"x00080030",text:"(x00080030) Study Time"},{id:"x00081030",text:"(x00081030) Study Description"},{id:"anatomicRegion",text:"Anatomic Region"}],q.seriesAttributes=[{id:"x0020000e",text:"(x0020000e) Series Instance UID"},{id:"x00080060",text:"(x00080060) Modality"},{id:"x00200011",text:"(x00200011) Series Number"},{id:"x0008103e",text:"(x0008103e) Series Description"},{id:"numImages",text:"Number of Images"}],q.instanceAttributes=[{id:"x00080016",text:"(x00080016) SOP Class UID"},{id:"x00080018",text:"(x00080018) SOP Instance UID"},{id:"x00185101",text:"(x00185101) View Position"},{id:"x00200013",text:"(x00200013) Instance Number"},{id:"x00080008",text:"(x00080008) Image Type"},{id:"x00181063",text:"(x00181063) Frame Time"},{id:"x00200060",text:"(x00200060) Laterality"},{id:"x00541330",text:"(x00541330) Image Index"},{id:"x00280004",text:"(x00280004) Photometric Interpretation"},{id:"x00180050",text:"(x00180050) Slice Thickness"}]},"testData.js":function(){functiont(){vart=newq.Protocol("Default");t.id="defaultProtocol",t.locked=!0;vare=newq.ViewportStructure("grid",{rows:1,columns:1}),n=newq.Viewport,o=newq.Stage(e,"oneByOne");returno.viewports.push(n),t.stages.push(o),q.defaultProtocol=t,q.defaultProtocol}functione(){vart=newq.Protocol("MR_TwoByTwo");t.id="MR_TwoByTwo",t.locked=!0;vare=newq.ProtocolMatchingRule("studyInstanceUid",{equals:{value:"1.2.840.113619.2.5.1762583153.215519.978957063.78"}},!0);t.addProtocolMatchingRule(e);varn=newq.ViewportStructure("grid",{rows:1,columns:2}),o=newq.Viewport,i=newq.Viewport,r=newq.SeriesMatchingRule("seriesNumber",{equals:{value:1}}),a=newq
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package["templating-runtime"].Template,a=Package.blaze.Blaze,o=Package.blaze.UI,i=Package.blaze.Handlebars,s=Package.tracker.Tracker,l=Package.tracker.Deps,c=Package.modules.meteorInstall,d=Package["babel-runtime"].meteorBabelHelpers,p=Package.promise.Promise,u=Package.htmljs.HTML,f=Package["ecmascript-runtime-client"].Symbol,m=Package["ecmascript-runtime-client"].Map,h=Package["ecmascript-runtime-client"].Set,y=Package.spacebars.Spacebars,v,b=c({node_modules:{meteor:{"aldeed:template-extension":{lib:{"hooks.js":function(){(v={global:{created:[],rendered:[],destroyed:[]},master:{created:function(){v.runGlobal("created",this,arguments)},rendered:function(){v.runGlobal("rendered",this,arguments)},destroyed:function(){v.runGlobal("destroyed",this,arguments)}}}).addGlobal=function(e){e._hasTemplateExtensionMasterHooks||(e.onCreated(v.master.created),e.onRendered(v.master.rendered),e.onDestroyed(v.master.destroyed),e._hasTemplateExtensionMasterHooks=!0)},v.runGlobal=function(e,t,n){for(varr=v.global[e],a=Array.isArray(r),o=0,r=a?r:r[f.iterator]();;){vari;if(a){if(o>=r.length)break;i=r[o++]}else{if((o=r.next()).done)break;i=o.value}i.apply(t,n)}}},"template-for-each.js":function(){r.forEach=function(e){vart=!1;for(varnind.sanitizeForInObject(r))if(r.hasOwnProperty(n)){varo=r[n];if(a.isTemplate(o)){vari=o.viewName;"body"===i?t||(t=!0,e(o)):"Template.__dynamic"!==i&&"Template.__dynamicWithDataContext"!==i&&e(o)}}}},"template-hooks.js":function(e){functiont(e){returne&&e.__esModule?e:{default:e}}varn=t(e("babel-runtime/helpers/typeof"));r.prototype.hooks=function(e){if(!e||"object"!==(void0===e?"undefined":(0,n.default)(e)))thrownewError("hooks argument must be an object with created, rendered, and/or destroyed properties, each set to a function");"function"==typeofe.created&&this.onCreated(e.created),"function"==typeofe.rendered&&this.onRendered(e.rendered),"function"==typeofe.destroyed&&this.onDestroyed(e.destroyed)}},"template-global-hooks.js":function(){e.startup(function(){r.forEach(function(e){v.addGlobal(e)})}),r.onCreated=function(e){v.global.created.push(e)},r.onRendered=function(e){v.global.rendered.push(e)},r.onDestroyed=function(e){v.global.destroyed.push(e)}},"template-for-each-instance.js":function(){r._renderedInstances=[],r.onRendered(function(){functione(){r._renderedInstances.push(this)}returne}()),r.onDestroyed(function(){functione(){vare=r._renderedInstances.indexOf(this);e>-1&&r._renderedInstances.splice(e,1)}returne}()),r.forEachCurrentlyRenderedInstance=function(e){r._renderedInstances.forEach(e)}},"template-inherits-events-from.js":function(){r.prototype.inheritsEventsFrom=function(){functione(e){functiont(e){"string"==typeofe&&(e=r[e]),e&&(n.__eventMaps=n.__eventMaps.concat(e.__eventMaps))}varn=this;n.__eventMaps=n.__eventMaps||[],Array.isArray(e)?e.forEach(t):t(e)}returne}()},"template-inherits-helpers-from.js":function(){r.prototype.inheritsHelpersFrom=function(){functione(e){vart=this,n=function(e){if("string"==typeofe&&(e=r[e]),e){varn={};for(varaind.sanitizeForInObject(e.__helpers))e.__helpers.hasOwnProperty(a)&&" "===a.charAt(0)&&(n[a.slice(1)]=e.__helpers[a]);t.helpers(n)}};Array.isArray(e)?e.forEach(n):n(e)}returne}()},"template-inherits-hooks-from.js":function(){r.prototype.inheritsHooksFrom=function(){functione(e){functiont(e){if("string"==typeofe&&(e=r[e]),e){v.addGlobal(e);for(vart=e._callbacks.created,a=Array.isArray(t),o=0,t=a?t:t[f.iterator]();;){vari;if(a){if(o>=t.length)break;i=t[o++]}else{if((o=t.next()).done)break;i=o.value}vars=i;s!==v.master.created&&n.onCreated(s)}for(varl=e._callbacks.rendered,c=Array.isArray(l),d=0,l=c?l:l[f.iterator]();;){varp;if(c){if(d>=l.length)break;p=l[d++]}else{if((d=l.next()).done)break;p=d.value}varu=p;u!==v.master.rendered&&n.onRendered(u)}for(varm=e._callbacks.destroyed,h=Array.isArray(m),y=0,m=h?m:m[f.iterator]();;){varb;if(h){if(y>=m.length)break;b=m[y++]}else{if((y=m.next()).done)break;b=y.value}var_=b;_!==v.mast
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a;(function(){(function(){(function(e){functionn(e,t,n){switch(arguments.length){case2:returnnull!=e?e:t;case3:returnnull!=e?e:null!=t?t:n;default:thrownewError("Implement me")}}functiona(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}functions(e){!1===De.suppressDeprecationWarnings&&"undefined"!=typeofconsole&&console.warn&&console.warn("Deprecation warning: "+e)}functionr(e,t){varn=!0;returnh(function(){returnn&&(s(e),n=!1),t.apply(this,arguments)},t)}functioni(e,t){mt[e]||(s(t),mt[e]=!0)}functiono(e,t){returnfunction(n){returnm(e.call(this,n),t)}}functionu(e,t){returnfunction(n){returnthis.localeData().ordinal(e.call(this,n),t)}}functionc(){}functionl(e,t){!1!==t&&F(e),f(this,e),this._d=newDate(+e._d)}functiond(e){vart=k(e),n=t.year||0,a=t.quarter||0,s=t.month||0,r=t.week||0,i=t.day||0,o=t.hour||0,u=t.minute||0,c=t.second||0,l=t.millisecond||0;this._milliseconds=+l+1e3*c+6e4*u+36e5*o,this._days=+i+7*r,this._months=+s+3*a+12*n,this._data={},this._locale=De.localeData(),this._bubble()}functionh(e,t){for(varnint)t.hasOwnProperty(n)&&(e[n]=t[n]);returnt.hasOwnProperty("toString")&&(e.toString=t.toString),t.hasOwnProperty("valueOf")&&(e.valueOf=t.valueOf),e}functionf(e,t){varn,a,s;if(void0!==t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),void0!==t._i&&(e._i=t._i),void0!==t._f&&(e._f=t._f),void0!==t._l&&(e._l=t._l),void0!==t._strict&&(e._strict=t._strict),void0!==t._tzm&&(e._tzm=t._tzm),void0!==t._isUTC&&(e._isUTC=t._isUTC),void0!==t._offset&&(e._offset=t._offset),void0!==t._pf&&(e._pf=t._pf),void0!==t._locale&&(e._locale=t._locale),Pe.length>0)for(ninPe)void0!==(s=t[a=Pe[n]])&&(e[a]=s);returne}function_(e){returne<0?Math.ceil(e):Math.floor(e)}functionm(e,t,n){for(vara=""+Math.abs(e),s=e>=0;a.length<t;)a="0"+a;return(s?n?"+":"":"-")+a}functiony(e,t){varn={milliseconds:0,months:0};returnn.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}functionp(e,t){varn;returnt=L(t,e),e.isBefore(t)?n=y(e,t):((n=y(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n}functionD(e,t){returnfunction(n,a){vars,r;returnnull===a||isNaN(+a)||(i(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),r=n,n=a,a=r),n="string"==typeofn?+n:n,s=De.duration(n,a),g(this,s,e),this}}functiong(e,t,n,a){vars=t._milliseconds,r=t._days,i=t._months;a=null==a||a,s&&e._d.setTime(+e._d+s*n),r&&he(e,"Date",de(e,"Date")+r*n),i&&le(e,de(e,"Month")+i*n),a&&De.updateOffset(e,r||i)}functionM(e){return"[object Array]"===Object.prototype.toString.call(e)}functionw(e){return"[object Date]"===Object.prototype.toString.call(e)||einstanceofDate}functionY(e,t,n){vara=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),r=0,i;for(i=0;i<a;i++)(n&&e[i]!==t[i]||!n&&S(e[i])!==S(t[i]))&&r++;returnr+s}functionv(e){if(e){vart=e.toLowerCase().replace(/(.)s$/,"$1");e=ut[e]||ct[t]||t}returne}functionk(e){vart={},n,a;for(aine)e.hasOwnProperty(a)&&(n=v(a))&&(t[n]=e[a]);returnt}functionb(t){varn,a;if(0===t.indexOf("week"))n=7,a="day";else{if(0!==t.indexOf("month"))return;n=12,a="month"}De[t]=function(s,r){vari,o,u=De._locale[t],c=[];if("number"==typeofs&&(r=s,s=e),o=function(e){vart=De().utc().set(a,e);returnu.call(De._locale,t,s||"")},null!=r)returno(r);for(i=0;i<n;i++)c.push(o(i));returnc}}functionS(e){vart=+e,n=0;return0!==t&&isFinite(t)&&(n=t>=0?Math.floor(t):Math.ceil(t)),n}functionT(e,t){returnnewDate(Date.UTC(e,t+1,0)).getUTCDate()}functionO(e,t,n){returnie(De([e,11,31+t-n]),t,n).week}functionW(e){returnG(e)?366:365}functionG(e){returne%4==0&&e%100!=0||e%400==0}functionF(e){vart;e._a&&-2===e._pf.overflow&&(t=e._a[be]<0||e._a[be]>11?be:e._a[Se]<1||e._a[Se]>T(e._a[ke],e._a[be])?Se:e._a[Te]<0||e._a[Te]>23?Te:e._a[Oe]<0||e._a[Oe]>59?Oe:e.
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,o=Package.promise.Promise,c=Package["ddp-client"].DDP,i=Package.check.check,u=Package.check.Match,a=r({node_modules:{meteor:{"dynamic-import":{"client.js":function(n,t,c){functioni(e){functionn(e){e&&"object"==typeofe?Object.keys(e).forEach(function(r){t.push(r),n(e[r]),t.pop()}):"string"==typeofe&&(r[t.join("/")]=e)}vart=[""],r=Object.create(null);returnn(e),r}functionu(e,n,t){returnfunction(){return(t&&t.eval||eval)("("+n+")\n//# sourceURL="+e).apply(this,arguments)}}functiona(n){returnnewo(function(t,r){e.call("__dynamicImport",n,function(e,n){e?r(e):t(n)})})}functions(e,n,t){varr=n.split("/"),o=r.length-1;r.forEach(function(n,r){n&&(e=e[n]=e[n]||(r<o?Object.create(null):t))})}functionf(e,n){vart;returne.watch(e.require(n),{"*":function(e){t=e}}),Object.defineProperty(t,"__esModule",{value:!0,enumerable:!1}),t}varl=c.constructor,d=n("./cache.js");l.prototype.dynamicImport=function(e){varn=this;returnn.prefetch(e).then(function(){returnf(n,e)})},r.fetch=function(e){vart=Object.create(null),r=Object.create(null),o=n("./dynamic-versions.js"),c;returnObject.keys(e).forEach(function(e){varn=o.get(e);n?r[e]=n:s(c=c||Object.create(null),e,1)}),d.checkMany(r).then(function(n){returnObject.keys(n).forEach(function(r){varo=n[r];if(o){vari=e[r];s(t,r,u(r,o,i.options))}elses(c=c||Object.create(null),r,1)}),c&&a(c).then(function(n){varr=Object.create(null),c=i(n);Object.keys(c).forEach(function(n){vari=c[n],a=e[n];s(t,n,u(n,i,a.options));varf=o.get(n);f&&(r[n]={version:f,source:i})}),d.setMany(r)})}).then(function(){returnt})}},"cache.js":function(n,t,r){functionc(){return"undefined"!=typeofindexedDB?indexedDB:"undefined"!=typeofwebkitIndexedDB?webkitIndexedDB:"undefined"!=typeofmozIndexedDB?mozIndexedDB:"undefined"!=typeofOIndexedDB?OIndexedDB:"undefined"!=typeofmsIndexedDB?msIndexedDB:void0}functioni(e){return(f=f||newo(function(e,n){vart=c();if(!t)thrownewError("IndexedDB not available");varr=t.open("MeteorDynamicImportCache",2);r.onupgradeneeded=function(e){varn=e.target.result;Array.from(n.objectStoreNames).forEach(n.deleteObjectStore,n),Object.keys(d).forEach(function(e){n.createObjectStore(e,d[e])})},r.onerror=u(n,"indexedDB.open"),r.onsuccess=function(n){e(n.target.result)}})).then(e,function(n){returne(null)})}functionu(e,n){returnfunction(t){returne(newError("IndexedDB failure in "+n+" "+JSON.stringify(t.target))),!0}}functiona(){if(v>0)returna.timer=setTimeout(a,100);a.timer=null;vare=y;returny=Object.create(null),i(function(n){if(n){vart=n.transaction(["sourcesByVersion"],"readwrite").objectStore("sourcesByVersion");returno.all(Object.keys(e).map(function(n){varr=e[n];returnnewo(function(e,n){varo=t.put({version:r.version,source:r.source});o.onerror=u(n,"sourcesByVersion.put"),o.onsuccess=e})}))}})}vars=Object.prototype.hasOwnProperty,f,l=e.isClient&&!e.isCordova&&e.isProduction,d={sourcesByVersion:{keyPath:"version"}},v=0;t.checkMany=function(e){varn=Object.keys(e),t=Object.create(null);returnn.forEach(function(e){t[e]=null}),l?i(function(r){functionc(){return--v,t}if(!r)returnt;vari=r.transaction(["sourcesByVersion"],"readonly").objectStore("sourcesByVersion");return++v,o.all(n.map(function(n){returnnewo(function(r,o){varc=e[n];if(c){vara=i.get(c);a.onerror=u(o,"sourcesByVersion.get"),a.onsuccess=function(e){varo=e.target.result;o&&(t[n]=o.source),r()}}elser()})})).then(c,c)}):o.resolve(t)};vary=Object.create(null);t.setMany=function(e){l&&(Object.assign(y,e),a.timer||(a.timer=setTimeout(a,100)))}},"dynamic-versions.js":function(e,n){vart={};n.get=function(e){varn=t,r=null;returne.split("/").some(function(e){returne&&(n=n[e]||n[e.replace(":","_")]),!n||("string"==typeofn?(r=n,!0):void0)}),r}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/dynamic-import/client.js");"undefined"==typeofPackage&&(Package={}),Package["dynamic-import"]=a}();
!function(){varo=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,i=Package["accounts-base"].Accounts,r=Package.mongo.Mongo,c;(function(){void0===c&&(c={}),c.configurations=newr.Collection("meteor_accounts_loginServiceConfiguration",{_preventAutopublish:!0,connection:o.isClient?i.connection:o.connection}),c.ConfigError=function(e){o.isClient&&!i.loginServicesConfigured()?this.message="Login service configuration not yet loaded":this.message=e?"Service "+e+" not configured":"Service not configured"},c.ConfigError.prototype=newError,c.ConfigError.prototype.name="ServiceConfiguration.ConfigError"}).call(this),"undefined"==typeofPackage&&(Package={}),function(o,e){for(varnine)nino||(o[n]=e[n])}(Package["service-configuration"]={},{ServiceConfiguration:c})}();