!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)};"undefined"!=typeofn?("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?n.indexOf(t)!=-1: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=f
!function(){vart=Package.underscore._,e,n,r;(function(){e=this}).call(this),function(){n=__meteor_runtime_config__.meteorEnv,r={isProduction:"production"===n.NODE_ENV,isDevelopment:"production"!==n.NODE_ENV,isClient:!0,isServer:!1,isCordova:!1},"object"==typeof__meteor_runtime_config__&&__meteor_runtime_config__.PUBLIC_SETTINGS&&(r.settings={public:__meteor_runtime_config__.PUBLIC_SETTINGS})}.call(this),function(){functione(t){if(t)returnr._debug("Exception in callback of async function",t.stack?t.stack:t)}if(r.isServer)varn=Npm.require("fibers/future");"object"==typeof__meteor_runtime_config__&&__meteor_runtime_config__.meteorRelease&&(r.release=__meteor_runtime_config__.meteorRelease),t.extend(r,{_get:function(t){for(vare=1;e<arguments.length;e++){if(!(arguments[e]int))return;t=t[arguments[e]]}returnt},_ensure:function(t){for(vare=1;e<arguments.length;e++){varn=arguments[e];nint||(t[n]={}),t=t[n]}returnt},_delete:function(t){for(vare=[t],n=!0,r=1;r<arguments.length-1;r++){varo=arguments[r];if(!(oint)){n=!1;break}if(t=t[o],"object"!=typeoft)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]}},wrapAsync:function(o,i){returnfunction(){for(vara=i||this,s=t.toArray(arguments),u,c=s.length-1;c>=0;--c){varl=s[c],f=typeofl;if("undefined"!==f){"function"===f&&(u=l);break}}if(!u){if(r.isClient)u=e;else{varp=newn;u=p.resolver()}++c}s[c]=r.bindEnvironment(u);var_=o.apply(a,s);returnp?p.wait():_}},_inherits:function(e,n){for(varrinn)t.has(n,r)&&(e[r]=n[r]);varo=function(){this.constructor=e};returno.prototype=n.prototype,e.prototype=newo,e.__super__=n.prototype,e}});varo=!1;r._wrapAsync=function(t,e){returno||(r._debug("Meteor._wrapAsync has been renamed to Meteor.wrapAsync"),o=!0),r.wrapAsync.apply(r,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){++i,a[i]=t,o.postMessage(s+i,"*")};returnu.implementation="postMessage",u}functionn(){vart=function(t){o.setTimeout(t,0)};returnt.implementation="setTimeout",t}varo=this;r._setImmediate=t()||e()||n()}.call(this),function(){vare=function(t){if(Package.ddp){vare=Package.ddp.DDP._CurrentInvocation;if(e.get()&&e.get().isSimulation)thrownewError("Can't set timers inside simulations");returnfunction(){e.withValue(null,t)}}returnt},n=function(t,n){returnr.bindEnvironment(e(n),t)};t.extend(r,{setTimeout:function(t,e){returnsetTimeout(n("setTimeout callback",t),e)},setInterval:function(t,e){returnsetInterval(n("setInterval callback",t),e)},clearInterval:function(t){returnclearInterval(t)},clearTimeout:function(t){returnclearTimeout(t)},defer:function(t){r._setImmediate(n("defer callback",t))}})}.call(this),function(){r.makeErrorType=function(t,e){varn=function(){Error.captureStackTrace?Error.captureStackTrace(this,n):this.stack=(newError).stack,e.apply(this,arguments),this.errorType=t};returnr._inherits(n,Error),n},r.Error=r.makeErrorType("Meteor.Error",function(t,e,n){varr=this;r.error=t,r.reason=e,r.details=n,r.reason?r.message=r.reason+" ["+r.error+"]":r.message="["+r.error+"]"}),r.Error.prototype.clone=function(){vart=this;returnnewr.Error(t.error,t.reason,t.details)}}.call(this),function(){r._noYieldsAllowed=function(t){returnt()},r._SynchronousQueue=function(){vart=this;t._tasks=[],t._running=!1,t._runTimeout=null},t.extend(r._SynchronousQueue.prototype,{runTask:function(e){varn=this;if(!n.safeToRunTask())thrownewError("Could not sync
}}},process:{"browser.js":function(e,t,r){functionn(){thrownewError("setTimeout has not been defined")}functioni(){thrownewError("clearTimeout has not been defined")}functiono(e){if(h===setTimeout)returnsetTimeout(e,0);if((h===n||!h)&&setTimeout)returnh=setTimeout,setTimeout(e,0);try{returnh(e,0)}catch(t){try{returnh.call(null,e,0)}catch(t){returnh.call(this,e,0)}}}functions(e){if(d===clearTimeout)returnclearTimeout(e);if((d===i||!d)&&clearTimeout)returnd=clearTimeout,clearTimeout(e);try{returnd(e)}catch(t){try{returnd.call(null,e)}catch(t){returnd.call(this,e)}}}functiona(){_&&g&&(_=!1,g.length?p=g.concat(p):b=-1,p.length&&u())}functionu(){if(!_){vare=o(a);_=!0;for(vart=p.length;t;){for(g=p,p=[];++b<t;)g&&g[b].run();b=-1,t=p.length}g=null,_=!1,s(e)}}functionf(e,t){this.fun=e,this.array=t}functionc(){}varl=r.exports={},h,d;!function(){try{h="function"==typeofsetTimeout?setTimeout:n}catch(e){h=n}try{d="function"==typeofclearTimeout?clearTimeout:i}catch(e){d=i}}();varp=[],_=!1,g,b=-1;l.nextTick=function(e){vart=newArray(arguments.length-1);if(arguments.length>1)for(varr=1;r<arguments.length;r++)t[r-1]=arguments[r];p.push(newf(e,t)),1!==p.length||_||o(u)},f.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=c,l.addListener=c,l.once=c,l.off=c,l.removeListener=c,l.removeAllListeners=c,l.emit=c,l.binding=function(e){thrownewError("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(e){thrownewError("process.chdir is not supported")},l.umask=function(){return0}}},"domain-browser":{"package.json":function(e,t){t.name="domain-browser",t.version="1.1.7",t.main="./index.js"},"index.js":["events",function(e,t,r){"use strict";r.exports=function(){vart=e("events"),r={};returnr.createDomain=r.create=function(){functione(e){r.emit("error",e)}varr=newt.EventEmitter;returnr.add=function(t){t.on("error",e)},r.remove=function(t){t.removeListener("error",e)},r.bind=function(t){returnfunction(){varr=Array.prototype.slice.call(arguments);try{t.apply(null,r)}catch(t){e(t)}}},r.intercept=function(t){returnfunction(r){if(r)e(r);else{varn=Array.prototype.slice.call(arguments,1);try{t.apply(null,n)}catch(t){e(t)}}}},r.run=function(t){try{t()}catch(t){e(t)}returnthis},r.dispose=function(){returnthis.removeAllListeners(),this},r.enter=r.exit=function(){returnthis},r},r}.call(this)}]},events:{"package.json":function(e,t){t.name="events",t.version="1.1.1",t.main="./events.js"},"events.js":function(e,t,r){functionn(){this._events=this._events||{},this._maxListeners=this._maxListeners||void0}functioni(e){return"function"==typeofe}functiono(e){return"number"==typeofe}functions(e){return"object"==typeofe&&null!==e}functiona(e){returnvoid0===e}r.exports=n,n.EventEmitter=n,n.prototype._events=void0,n.prototype._maxListeners=void0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!o(e)||e<0||isNaN(e))throwTypeError("n must be a positive number");returnthis._maxListeners=e,this},n.prototype.emit=function(e){vart,r,n,o,u,f;if(this._events||(this._events={}),"error"===e&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if(t=arguments[1],tinstanceofError)throwt;varc=newError('Uncaught, unspecified "error" event. ('+t+")");throwc.context=t,c}if(r=this._events[e],a(r))return!1;if(i(r))switch(arguments.length){case1:r.call(this);break;case2:r.call(this,arguments[1]);break;case3:r.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),r.apply(this,o)}elseif(s(r))for(o=Array.prototype.slice.call(arguments,1),f=r.slice(),n=f.length,u=0;u<n;u++)f[u].apply(this,o);return!0},n.prototype.addListener=function(e,t){varr;if(!i(t))throwTypeError("listener must be a function");returnthis._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?s(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,
this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;varo=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){_(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=newk(this)}functiona(t){returnS=S||e("./_stream_duplex"),z.call(a,this)||thisinstanceofS?(this._writableState=newo(t,this),this.writable=!0,t&&("function"==typeoft.write&&(this._write=t.write),"function"==typeoft.writev&&(this._writev=t.writev)),voidO.call(this)):newa(t)}functionu(e,t){varr=newError("write after end");e.emit("error",r),E(t,r)}functionf(e,t,r,n){vari=!0,o=!1;returnnull===r?o=newTypeError("May not write null values to stream"):L.isBuffer(r)||"string"==typeofr||void0===r||t.objectMode||(o=newTypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),E(n,o),i=!1),i}functionc(e,t,r){returne.objectMode||e.decodeStrings===!1||"string"!=typeoft||(t=T.from(t,r)),t}functionl(e,t,r,n,o){r=c(t,r,n),L.isBuffer(r)&&(n="buffer");vars=t.objectMode?1:r.length;t.length+=s;vara=t.length<t.highWaterMark;if(a||(t.needDrain=!0),t.writing||t.corked){varu=t.lastBufferedRequest;t.lastBufferedRequest=newi(r,n,o),u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}elseh(e,t,!1,s,r,n,o);returna}functionh(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}functiond(e,t,r,n,i){--t.pendingcb,r?E(i,n):i(n),e._writableState.errorEmitted=!0,e.emit("error",n)}functionp(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function_(e,t){varr=e._writableState,n=r.sync,i=r.writecb;if(p(r),t)d(e,r,n,t,i);else{varo=y(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||m(e,r),n?x(g,e,r,o,i):g(e,r,o,i)}}functiong(e,t,r,n){r||b(e,t),t.pendingcb--,n(),w(e,t)}functionb(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}functionm(e,t){t.bufferProcessing=!0;varr=t.bufferedRequest;if(e._writev&&r&&r.next){varn=t.bufferedRequestCount,i=newArray(n),o=t.corkedRequestsFree;o.entry=r;for(vars=0;r;)i[s]=r,r=r.next,s+=1;h(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=newk(t)}else{for(;r;){vara=r.chunk,u=r.encoding,f=r.callback,c=t.objectMode?1:a.length;if(h(e,t,!1,c,a,u,f),r=r.next,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=r,t.bufferProcessing=!1}functiony(e){returne.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}functionv(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}functionw(e,t){varr=y(t);returnr&&(0===t.pendingcb?(v(e,t),t.finished=!0,e.emit("finish")):v(e,t)),r}functionj(e,t,r){t.ending=!0,w(e,t),r&&(t.finished?E(r):e.once("finish",r)),t.ended=!0,e.writable=!1}functionk(e){vart=this;this.next=null,this.entry=null,this.finish=function(r){varn=t.entry;for(t.entry=null;n;){vari=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}}r.exports=a;varE=e("process-nextick-args"),x=!s.browser&&["v0.10","v0.9."].indexOf(s.version.slice(0,5))>-1?setImmediate:E,S;a.WritableState=o;varA=e("core-util-is");A.inherits=e("inherits");varR={deprecate:e("util-deprecate")},O;!function(){try{O=e("stream")}catch(e){}finally{O||(O=e("events").EventEmitter)}}();varL=e("buffer").Buffer,T=e("buffer-shims");A.inherits(a,O),o.prototype.getBuffer=functione(){for(vart=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;returnr},function(){try{Object.defineProperty(o.prototype,"buffer",{get:R.deprecate(function(){returnthis.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(e){}}();varz;"function"==typeofSymbol&&Sy
"classCallCheck.js":function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}},"extends.js":["../core-js/object/assign",function(e,t){"use strict";functionr(e){returne&&e.__esModule?e:{default:e}}t.__esModule=!0;varn=e("../core-js/object/assign"),i=r(n);t.default=i.default||function(e){for(vart=1;t<arguments.length;t++){varr=arguments[t];for(varninr)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}returne}}],"possibleConstructorReturn.js":["../helpers/typeof",function(e,t){"use strict";functionr(e){returne&&e.__esModule?e:{default:e}}t.__esModule=!0;varn=e("../helpers/typeof"),i=r(n);t.default=function(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeoft?"undefined":(0,i.default)(t))&&"function"!=typeoft?e:t}}],"inherits.js":["../core-js/object/set-prototype-of","../core-js/object/create","../helpers/typeof",function(e,t){"use strict";functionr(e){returne&&e.__esModule?e:{default:e}}t.__esModule=!0;varn=e("../core-js/object/set-prototype-of"),i=r(n),o=e("../core-js/object/create"),s=r(o),a=e("../helpers/typeof"),u=r(a);t.default=function(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+("undefined"==typeoft?"undefined":(0,u.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}}],"createClass.js":["../core-js/object/define-property",function(e,t){"use strict";functionr(e){returne&&e.__esModule?e:{default:e}}t.__esModule=!0;varn=e("../core-js/object/define-property"),i=r(n);t.default=function(){functione(e,t){for(varr=0;r<t.length;r++){varn=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),(0,i.default)(e,n.key,n)}}returnfunction(t,r,n){returnr&&e(t.prototype,r),n&&e(t,n),t}}()}]},"core-js":{symbol:{"iterator.js":["core-js/library/fn/symbol/iterator",function(e,t,r){r.exports={default:e("core-js/library/fn/symbol/iterator"),__esModule:!0}}]},"symbol.js":["core-js/library/fn/symbol",function(e,t,r){r.exports={default:e("core-js/library/fn/symbol"),__esModule:!0}}],array:{"from.js":["core-js/library/fn/array/from",function(e,t,r){r.exports={default:e("core-js/library/fn/array/from"),__esModule:!0}}]},object:{"assign.js":["core-js/library/fn/object/assign",function(e,t,r){r.exports={default:e("core-js/library/fn/object/assign"),__esModule:!0}}],"set-prototype-of.js":["core-js/library/fn/object/set-prototype-of",function(e,t,r){r.exports={default:e("core-js/library/fn/object/set-prototype-of"),__esModule:!0}}],"create.js":["core-js/library/fn/object/create",function(e,t,r){r.exports={default:e("core-js/library/fn/object/create"),__esModule:!0}}],"define-property.js":["core-js/library/fn/object/define-property",function(e,t,r){r.exports={default:e("core-js/library/fn/object/define-property"),__esModule:!0}}]}}},"regenerator-runtime":{"package.json":function(e,t,r){t.name="regenerator-runtime",t.version="0.10.3",t.main="runtime-module.js"},"runtime-module.js":["./runtime",function(e,r,n){vari="object"==typeoft?t:"object"==typeofwindow?window:"object"==typeofself?self:this,o=i.regeneratorRuntime&&Object.getOwnPropertyNames(i).indexOf("regeneratorRuntime")>=0,s=o&&i.regeneratorRuntime;if(i.regeneratorRuntime=void0,n.exports=e("./runtime"),o)i.regeneratorRuntime=s;elsetry{deletei.regeneratorRuntime}catch(e){i.regeneratorRuntime=void0}}],"runtime.js":function(e,r,n){!function(e){"use strict";functiont(e,t,r,n){varo=t&&t.prototypeinstanceofi?t:i,s=Object.create(o.prototype),a=newp(n||[]);returns._invoke=c(e,r,a),s}functionr(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}functioni(){}functiono(){}functiona(){}functionu(e){["next","throw","return"].forEach(function(t){e[t]=function(e){returnthis._invoke(t,e)}})}functionf(e){functiont(n,i,o,s){vara=r(e[n],e,
}}],"_classof.js":["./_cof","./_wks",function(e,t,r){varn=e("./_cof"),i=e("./_wks")("toStringTag"),o="Arguments"==n(function(){returnarguments}()),s=function(e,t){try{returne[t]}catch(e){}};r.exports=function(e){vart,r,a;returnvoid0===e?"Undefined":null===e?"Null":"string"==typeof(r=s(t=Object(e),i))?r:o?n(t):"Object"==(a=n(t))&&"function"==typeoft.callee?"Arguments":a}}],"_iter-detect.js":["./_wks",function(e,t,r){varn=e("./_wks")("iterator"),i=!1;try{varo=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw2})}catch(e){}r.exports=function(e,t){if(!t&&!i)return!1;varr=!1;try{varo=[7],s=o[n]();s.next=function(){return{done:r=!0}},o[n]=function(){returns},e(o)}catch(e){}returnr}}],"es6.object.assign.js":["./_export","./_object-assign",function(e){vart=e("./_export");t(t.S+t.F,"Object",{assign:e("./_object-assign")})}],"_object-assign.js":["./_object-keys","./_object-gops","./_object-pie","./_to-object","./_iobject","./_fails",function(e,t,r){"use strict";varn=e("./_object-keys"),i=e("./_object-gops"),o=e("./_object-pie"),s=e("./_to-object"),a=e("./_iobject"),u=Object.assign;r.exports=!u||e("./_fails")(function(){vare={},t={},r=Symbol(),n="abcdefghijklmnopqrst";returne[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=u({},e)[r]||Object.keys(u({},t)).join("")!=n})?functione(t,r){for(varu=s(t),f=arguments.length,c=1,l=i.f,h=o.f;f>c;)for(vard=a(arguments[c++]),p=l?n(d).concat(l(d)):n(d),_=p.length,g=0,b;_>g;)h.call(d,b=p[g++])&&(u[b]=d[b]);returnu}:u}],"es6.object.set-prototype-of.js":["./_export","./_set-proto",function(e){vart=e("./_export");t(t.S,"Object",{setPrototypeOf:e("./_set-proto").set})}],"_set-proto.js":["./_is-object","./_an-object","./_ctx","./_object-gopd",function(e,t,r){varn=e("./_is-object"),i=e("./_an-object"),o=function(e,t){if(i(e),!n(t)&&null!==t)throwTypeError(t+": can't set as prototype!")};r.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,r,n){try{n=e("./_ctx")(Function.call,e("./_object-gopd").f(Object.prototype,"__proto__").set,2),n(t,[]),r=!(tinstanceofArray)}catch(e){r=!0}returnfunctione(t,i){returno(t,i),r?t.__proto__=i:n(t,i),t}}({},!1):void0),check:o}}],"es6.object.create.js":["./_export","./_object-create",function(e){vart=e("./_export");t(t.S,"Object",{create:e("./_object-create")})}],"es6.object.define-property.js":["./_export","./_descriptors","./_object-dp",function(e){vart=e("./_export");t(t.S+t.F*!e("./_descriptors"),"Object",{defineProperty:e("./_object-dp").f})}]}}}}},{extensions:[".js",".json"]}),u=a("./node_modules/meteor/modules/client.js");"undefined"==typeofPackage&&(Package={}),function(e,t){for(varrint)rine||(e[r]=t[r])}(Package.modules=u,{meteorInstall:i,Buffer:o,process:s})}();
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.modules.meteorInstall,o=Package.modules.Buffer,i=Package.modules.process,a,c,u,f,s=n({node_modules:{meteor:{"es5-shim":{"client.js":["./import_globals.js","es5-shim/es5-shim.js","es5-shim/es5-sham.js","./console.js","./export_globals.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!==a&&(e.Date=a),e.parseInt!==c&&(e.parseInt=c),e.parseFloat!==u&&(e.parseFloat=u);vart=String.prototype;t.replace!==f&&(t.replace=f)},"import_globals.js":function(){a=e.Date,c=e.parseInt,u=e.parseFloat,f=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,n=r.prototype,o=Function,i=o.prototype,f=String,s=f.prototype,l=Number,p=l.prototype,h=e.slice,y=e.splice,d=e.push,b=e.unshift,g=e.concat,v=e.join,w=i.call,j=i.apply,O=Math.max,m=Math.min,T=n.toString,E="function"==typeofSymbol&&"symbol"==typeofSymbol.toStringTag,x,S=Function.prototype.toString,_=/^\s*class /,P=functiont(e){try{varr=S.call(e),n=r.replace(/\/\/.*\n/g,""),o=n.replace(/\/\*[.\s\S]*\*\//g,""),i=o.replace(/\n/gm," ").replace(/ {2}/g," ");return_.test(i)}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)}}(n.hasOwnProperty),G=functiont(e){varr=typeofe;returnnull===e||"object"!==r&&"function"!==r},Z=l.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(i,{bind:functiont(e){varn=this;if(!x(n))thrownewTypeError("Function.prototype.bind called on incompatible "+n);for(vari=h.call(arguments,1),a,c=function(){if(thisinstanceofa){vart=j.call(n,this,g.call(i,h.call(arguments)));returnr(t)===t?t:this}returnj.call(n,e,g.call(i,h.call(arguments)))},u=O(0,n.length-i.length),f=[],s=0;s<u;s++)d.call(f,"$"+s);returna=o("binder","return function ("+v.call(f,",")+"){ return binder.apply(this, arguments); }")(c),n.prototype&&(W.prototype=n.prototype,a.prototype=newW,W.prototype=null),a}});varB=w.bind(n.hasOwnProperty),X=w.bind(n.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.b
!function(){varn=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,o=Package.modules.meteorInstall,i=Package.modules.Buffer,r=Package.modules.process,u,c=o({node_modules:{meteor:{promise:{"client.js":["meteor-promise","./common.js",function(n,e){n("meteor-promise").makeCompatible(e.Promise=n("./common.js").Promise)}],"common.js":["promise/lib/es6-extensions",function(e,t){varo=this;"function"==typeofo.Promise?t.Promise=o.Promise:t.Promise=e("promise/lib/es6-extensions"),t.Promise.prototype.done=function(e,t){varo=this;arguments.length>0&&(o=this.then.apply(this,arguments)),o.then(null,function(e){n._setImmediate(function(){throwe})})}}],node_modules:{"meteor-promise":{"package.json":function(n,e){e.name="meteor-promise",e.version="0.8.0",e.main="promise_client.js"},"promise_client.js":function(e,t){functiono(n){thrown}t.makeCompatible=function(e){vart=e.prototype.then;e.prototype.then=function(e,i){return"object"==typeofn&&"function"==typeofn.bindEnvironment?t.call(this,e&&n.bindEnvironment(e,o),i&&n.bindEnvironment(i,o)):t.call(this,e,i)}}}},promise:{lib:{"es6-extensions.js":["./core.js",function(n,e,t){"use strict";functiono(n){vare=newi(i._61);returne._81=1,e._65=n,e}vari=n("./core.js");t.exports=i;varr=o(!0),u=o(!1),c=o(null),f=o(void0),s=o(0),a=o("");i.resolve=function(n){if(ninstanceofi)returnn;if(null===n)returnc;if(void0===n)returnf;if(n===!0)returnr;if(n===!1)returnu;if(0===n)returns;if(""===n)returna;if("object"==typeofn||"function"==typeofn)try{vare=n.then;if("function"==typeofe)returnnewi(e.bind(n))}catch(n){returnnewi(function(e,t){t(n)})}returno(n)},i.all=function(n){vare=Array.prototype.slice.call(n);returnnewi(function(n,t){functiono(u,c){if(c&&("object"==typeofc||"function"==typeofc)){if(cinstanceofi&&c.then===i.prototype.then){for(;3===c._81;)c=c._65;return1===c._81?o(u,c._65):(2===c._81&&t(c._65),voidc.then(function(n){o(u,n)},t))}varf=c.then;if("function"==typeoff){vars=newi(f.bind(c));returnvoids.then(function(n){o(u,n)},t)}}e[u]=c,0===--r&&n(e)}if(0===e.length)returnn([]);for(varr=e.length,u=0;u<e.length;u++)o(u,e[u])})},i.reject=function(n){returnnewi(function(e,t){t(n)})},i.race=function(n){returnnewi(function(e,t){n.forEach(function(n){i.resolve(n).then(e,t)})})},i.prototype.catch=function(n){returnthis.then(null,n)}}],"core.js":["asap/raw",function(n,e,t){"use strict";functiono(){}functioni(n){try{returnn.then}catch(n){returnd=n,y}}functionr(n,e){try{returnn(e)}catch(n){returnd=n,y}}functionu(n,e,t){try{n(e,t)}catch(n){returnd=n,y}}functionc(n){if("object"!=typeofthis)thrownewTypeError("Promises must be constructed via new");if("function"!=typeofn)thrownewTypeError("not a function");this._45=0,this._81=0,this._65=null,this._54=null,n!==o&&_(n,this)}functionf(n,e,t){returnnewn.constructor(function(i,r){varu=newc(o);u.then(i,r),s(n,newh(e,t,u))})}functions(n,e){for(;3===n._81;)n=n._65;returnc._10&&c._10(n),0===n._81?0===n._45?(n._45=1,void(n._54=e)):1===n._45?(n._45=2,void(n._54=[n._54,e])):voidn._54.push(e):voida(n,e)}functiona(n,e){v(function(){vart=1===n._81?e.onFulfilled:e.onRejected;if(null===t)returnvoid(1===n._81?l(e.promise,n._65):m(e.promise,n._65));varo=r(t,n._65);o===y?m(e.promise,d):l(e.promise,o)})}functionl(n,e){if(e===n)returnm(n,newTypeError("A promise cannot be resolved with itself."));if(e&&("object"==typeofe||"function"==typeofe)){vart=i(e);if(t===y)returnm(n,d);if(t===n.then&&einstanceofc)returnn._81=3,n._65=e,voidp(n);if("function"==typeoft)returnvoid_(t.bind(e),n)}n._81=1,n._65=e,p(n)}functionm(n,e){n._81=2,n._65=e,c._97&&c._97(n,e),p(n)}functionp(n){if(1===n._45&&(s(n,n._54),n._54=null),2===n._45){for(vare=0;e<n._54.length;e++)s(n,n._54[e]);n._54=null}}functionh(n,e,t){this.onFulfilled="function"==typeofn?n:null,this.onRejected="function"==typeofe?e:null,this.promise=t}function_(n,e){vart=!1,o=u(n,function(n){t||(t=!0,l(e,n))},function(n){t||(t=!0,m(e,n))});t||o!==y||(t=!0,m(e,d))}varv=n("asap/raw"),d=null,y={};t.exports=c,c._10=null,c._97=n
!function(){var n=Package.meteor.Meteor,r=Package.meteor.global,e=Package.meteor.meteorEnv,a;(function(){for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={},e=0;e<n.length;e++)r[n.charAt(e)]=e;a={},a.encode=function(n){if("string"==typeof n){var r=n;n=a.newBinary(r.length);for(var e=0;e<r.length;e++){var l=r.charCodeAt(e);if(l>255)throw new Error("Not ascii. Base64.encode can only take ascii strings.");n[e]=l}}for(var u=[],i=null,o=null,c=null,f=null,e=0;e<n.length;e++)switch(e%3){case 0:i=n[e]>>2&63,o=(3&n[e])<<4;break;case 1:o|=n[e]>>4&15,c=(15&n[e])<<2;break;case 2:c|=n[e]>>6&3,f=63&n[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}return null!=i&&(u.push(t(i)),u.push(t(o)),null==c?u.push("="):u.push(t(c)),null==f&&u.push("=")),u.join("")};var t=function(r){return n.charAt(r)},l=function(n){return"="===n?-1:r[n]};a.newBinary=function(n){if("undefined"==typeof Uint8Array||"undefined"==typeof ArrayBuffer){for(var r=[],e=0;e<n;e++)r.push(0);return r.$Uint8ArrayPolyfill=!0,r}return new Uint8Array(new ArrayBuffer(n))},a.decode=function(n){var r=Math.floor(3*n.length/4);"="==n.charAt(n.length-1)&&(r--,"="==n.charAt(n.length-2)&&r--);for(var e=a.newBinary(r),t=null,u=null,i=null,o=0,c=0;c<n.length;c++){var f=n.charAt(c),s=l(f);switch(c%4){case 0:if(s<0)throw new Error("invalid base64 string");t=s<<2;break;case 1:if(s<0)throw new Error("invalid base64 string");t|=s>>4,e[o++]=t,u=(15&s)<<4;break;case 2:s>=0&&(u|=s>>2,e[o++]=u,i=(3&s)<<6);break;case 3:s>=0&&(e[o++]=i|s)}}return e}}).call(this),"undefined"==typeof Package&&(Package={}),function(n,r){for(var e in r)e in n||(n[e]=r[e])}(Package.base64={},{Base64:a})}();
!function(){varn=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package.underscore._,u=Package.base64.Base64,a,i;(function(){a={},i={};vare={};a.addType=function(n,t){if(r.has(e,n))thrownewError("Type "+n+" already present");e[n]=t};vart=function(n){returnr.isNaN(n)||n===1/0||n===-(1/0)},o=[{matchJSONValue:function(n){returnr.has(n,"$date")&&1===r.size(n)},matchObject:function(n){returnninstanceofDate},toJSONValue:function(n){return{$date:n.getTime()}},fromJSONValue:function(n){returnnewDate(n.$date)}},{matchJSONValue:function(n){returnr.has(n,"$InfNaN")&&1===r.size(n)},matchObject:t,toJSONValue:function(n){vare;returne=r.isNaN(n)?0:n===1/0?1:-1,{$InfNaN:e}},fromJSONValue:function(n){returnn.$InfNaN/0}},{matchJSONValue:function(n){returnr.has(n,"$binary")&&1===r.size(n)},matchObject:function(n){return"undefined"!=typeofUint8Array&&ninstanceofUint8Array||n&&r.has(n,"$Uint8ArrayPolyfill")},toJSONValue:function(n){return{$binary:u.encode(n)}},fromJSONValue:function(n){returnu.decode(n.$binary)}},{matchJSONValue:function(n){returnr.has(n,"$escape")&&1===r.size(n)},matchObject:function(n){return!(r.isEmpty(n)||r.size(n)>2)&&r.any(o,function(e){returne.matchJSONValue(n)})},toJSONValue:function(n){vare={};returnr.each(n,function(n,t){e[t]=a.toJSONValue(n)}),{$escape:e}},fromJSONValue:function(n){vare={};returnr.each(n.$escape,function(n,t){e[t]=a.fromJSONValue(n)}),e}},{matchJSONValue:function(n){returnr.has(n,"$type")&&r.has(n,"$value")&&2===r.size(n)},matchObject:function(n){returna._isCustomType(n)},toJSONValue:function(e){vart=n._noYieldsAllowed(function(){returne.toJSONValue()});return{$type:e.typeName(),$value:t}},fromJSONValue:function(t){varu=t.$type;if(!r.has(e,u))thrownewError("Custom EJSON type "+u+" is not defined");vara=e[u];returnn._noYieldsAllowed(function(){returna(t.$value)})}}];a._isCustomType=function(n){returnn&&"function"==typeofn.toJSONValue&&"function"==typeofn.typeName&&r.has(e,n.typeName())},a._getTypes=function(){returne},a._getConverters=function(){returno};varf=a._adjustTypesToJSONValue=function(n){if(null===n)returnnull;vare=c(n);returnvoid0!==e?e:"object"!=typeofn?n:(r.each(n,function(e,r){if("object"==typeofe||void0===e||t(e)){varu=c(e);returnu?void(n[r]=u):voidf(e)}}),n)},c=function(n){for(vare=0;e<o.length;e++){vart=o[e];if(t.matchObject(n))returnt.toJSONValue(n)}};a.toJSONValue=function(n){vare=c(n);returnvoid0!==e?e:("object"==typeofn&&(n=a.clone(n),f(n)),n)};varl=a._adjustTypesFromJSONValue=function(n){if(null===n)returnnull;vare=s(n);returne!==n?e:"object"!=typeofn?n:(r.each(n,function(e,t){if("object"==typeofe){varr=s(e);if(e!==r)returnvoid(n[t]=r);l(e)}}),n)},s=function(n){if("object"==typeofn&&null!==n&&r.size(n)<=2&&r.all(n,function(n,e){return"string"==typeofe&&"$"===e.substr(0,1)}))for(vare=0;e<o.length;e++){vart=o[e];if(t.matchJSONValue(n))returnt.fromJSONValue(n)}returnn};a.fromJSONValue=function(n){vare=s(n);returne===n&&"object"==typeofn?(n=a.clone(n),l(n),n):e},a.stringify=function(n,e){vart=a.toJSONValue(n);returne&&(e.canonical||e.indent)?a._canonicalStringify(t,e):JSON.stringify(t)},a.parse=function(n){if("string"!=typeofn)thrownewError("EJSON.parse argument should be a string");returna.fromJSONValue(JSON.parse(n))},a.isBinary=function(n){return!!("undefined"!=typeofUint8Array&&ninstanceofUint8Array||n&&n.$Uint8ArrayPolyfill)},a.equals=function(n,e,t){varu,i=!(!t||!t.keyOrderSensitive);if(n===e)return!0;if(r.isNaN(n)&&r.isNaN(e))return!0;if(!n||!e)return!1;if("object"!=typeofn||"object"!=typeofe)return!1;if(ninstanceofDate&&einstanceofDate)returnn.valueOf()===e.valueOf();if(a.isBinary(n)&&a.isBinary(e)){if(n.length!==e.length)return!1;for(u=0;u<n.length;u++)if(n[u]!==e[u])return!1;return!0}if("function"==typeofn.equals)returnn.equals(e,t);if("function"==typeofe.equals)returne.equals(n,t);if(ninstanceofArray){if(!(einstanceofArray))return!1;if(n.length!==e.length)return!1;for(u=0;u<n.length;u++)if(!a.equals(n[u],e[u],t))return!1;return!0}switch(a._is
!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(){vart=this;return!t._first},size:function(){vart=this;returnt._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){varr=this;r.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=this,r=0,n=e._first;null!==n;){varo=t(n.value,n.key,r);if(o===i.BREAK)return;n=n.next,r++}},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,e=Package.meteor.meteorEnv,o,r;(function(){o={},o.active=!1,o.currentComputation=null;vart=function(n){o.currentComputation=n,o.active=!!n},e=function(){return"undefined"!=typeofn?n._debug:"undefined"!=typeofconsole&&console.error?function(){console.error.apply(console,arguments)}:function(){}},r=function(t){"undefined"!=typeofn&&n._suppressed_log_expected()&&n._suppress_log(t-1)},i=function(n,t){if(l)throwt;varo=["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;o.push(a)}}o.push(t.stack),r(o.length);for(varu=0;u<o.length;u++)e()(o[u])},a=function(t){return"undefined"==typeofn||n.isClient?t:function(){vare=arguments;n._noYieldsAllowed(function(){t.apply(null,e)})}},u=1,c=[],p=!1,s=!1,f=!1,l=!1,d=[],h=function(){p||("undefined"!=typeofn?n._setImmediate(o._runFlush):setTimeout(o._runFlush,0),p=!0)},v=!1;o.Computation=function(n,t,e){if(!v)thrownewError("Tracker.Computation constructor is private; use Tracker.autorun");v=!1;varo=this;o.stopped=!1,o.invalidated=!1,o.firstRun=!0,o._id=u++,o._onInvalidateCallbacks=[],o._onStopCallbacks=[],o._parent=t,o._func=n,o._onError=e,o._recomputing=!1;varr=!0;try{o._compute(),r=!1}finally{o.firstRun=!1,r&&o.stop()}},o.Computation.prototype.onInvalidate=function(n){vart=this;if("function"!=typeofn)thrownewError("onInvalidate requires a function");t.invalidated?o.nonreactive(function(){a(n)(t)}):t._onInvalidateCallbacks.push(n)},o.Computation.prototype.onStop=function(n){vart=this;if("function"!=typeofn)thrownewError("onStop requires a function");t.stopped?o.nonreactive(function(){a(n)(t)}):t._onStopCallbacks.push(n)},o.Computation.prototype.invalidate=function(){varn=this;if(!n.invalidated){n._recomputing||n.stopped||(h(),c.push(this)),n.invalidated=!0;for(vart=0,e;e=n._onInvalidateCallbacks[t];t++)o.nonreactive(function(){a(e)(n)});n._onInvalidateCallbacks=[]}},o.Computation.prototype.stop=function(){varn=this;if(!n.stopped){n.stopped=!0,n.invalidate();for(vart=0,e;e=n._onStopCallbacks[t];t++)o.nonreactive(function(){a(e)(n)});n._onStopCallbacks=[]}},o.Computation.prototype._compute=function(){varn=this;n.invalidated=!1;vare=o.currentComputation;t(n);varr=f;f=!0;try{a(n._func)(n)}finally{t(e),f=r}},o.Computation.prototype._needsRecompute=function(){varn=this;returnn.invalidated&&!n.stopped},o.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}},o.Computation.prototype.flush=function(){varn=this;n._recomputing||n._recompute()},o.Computation.prototype.run=function(){varn=this;n.invalidate(),n.flush()},o.Dependency=function(){this._dependentsById={}},o.Dependency.prototype.depend=function(n){if(!n){if(!o.active)return!1;n=o.currentComputation}vart=this,e=n._id;return!(eint._dependentsById)&&(t._dependentsById[e]=n,n.onInvalidate(function(){deletet._dependentsById[e]}),!0)},o.Dependency.prototype.changed=function(){varn=this;for(vartinn._dependentsById)n._dependentsById[t].invalidate()},o.Dependency.prototype.hasDependents=function(){varn=this;for(vartinn._dependentsById)return!0;return!1},o.flush=function(n){o._runFlush({finishSynchronously:!0,throwFirstError:n&&n._throwFirstError})},o._runFlush=function(n){if(s)thrownewError("Can't call Tracker.flush while flushing");if(f)thrownewError("Can't flush inside Tracker.autorun");n=n||{},s=!0,p=!0,l=!!n.throwFirstError;vart=0,e=!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(e=!0)}if(d.length){vara=d.shift();try{a()}catch(n){i("afterFlush",n)}}}e=!0}finally{if(e||(s=!1,o._runFlush({finishSynchronously:n.finishSynchronously,throwFirstError:!1})),p=!1,s=!1,c.length||d.length){if(n.finishSynchronously)thrownewError("still have more to do?");setTimeout(h,10)}}},o.autorun=f
!function(){vare=Package.meteor.Meteor,r=Package.meteor.global,n=Package.meteor.meteorEnv,t=Package.modules.meteorInstall,a=Package.modules.Buffer,o=Package.modules.process,i=Package.promise.Promise,l,u=t({node_modules:{meteor:{"babel-runtime":{"babel-runtime.js":["meteor-babel-helpers","babel-runtime/regenerator",function(e,r){r.meteorBabelHelpers=e("meteor-babel-helpers"),r.checkHelper=functione(r){return!1};try{varn=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(n&&"function"==typeofi&&"function"==typeofi.asyncApply){vart=n.async;n.async=function(){returni.asyncApply(t,n,arguments)}}}],node_modules:{"meteor-babel-helpers":{"package.json":function(e,r){r.name="meteor-babel-helpers",r.version="0.0.3",r.main="index.js"},"index.js":function(e,r,n){functiont(){vare={},r="t";try{Object.defineProperty(e,r,{enumerable:!1,value:e});for(varnine)if(n===r)return!1}catch(e){return!1}returne[r]===e}functiona(e){returne}functiono(e){if(Array.isArray(e)){for(varr={},n=Object.keys(e),t=n.length,a=0;a<t;++a){varo=n[a];r[o]=e[o]}returnr}returne}l=n.exports={sanitizeForInObject:t()?a:o,_sanitizeForInObjectHard:o}}}}}}}},{extensions:[".js",".json"]}),c=u("./node_modules/meteor/babel-runtime/babel-runtime.js");"undefined"==typeofPackage&&(Package={}),function(e,r){for(varninr)nine||(e[n]=r[n])}(Package["babel-runtime"]=c,{meteorBabelHelpers:l})}();
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,t=Package.underscore._,o=Package.modules.meteorInstall,a=Package.modules.Buffer,i=Package.modules.process,d=Package["ecmascript-runtime"].Symbol,u=Package["ecmascript-runtime"].Map,c=Package["ecmascript-runtime"].Set,s=Package["babel-runtime"].meteorBabelHelpers,f=Package.promise.Promise,m,p=o({node_modules:{meteor:{random:{"random.js":function(n){functionr(){returnnewd(d.Type.ALEA,{seeds:[newDate,u,c,s,Math.random()]})}if(e.isServer)vart=Npm.require("crypto");varo=functione(){functionn(){vare=4022871197,n=functionn(r){r=r.toString();for(vart=0;t<r.length;t++){e+=r.charCodeAt(t);varo=.02519603282416938*e;e=o>>>0,o-=e,o*=e,e=o>>>0,o-=e,e+=4294967296*o}return2.3283064365386963e-10*(e>>>0)};returnn.version="Mash 0.9",n}returnfunction(e){varr=0,t=0,o=0,a=1;0==e.length&&(e=[+newDate]);vari=n();r=i(" "),t=i(" "),o=i(" ");for(vard=0;d<e.length;d++)r-=i(e[d]),r<0&&(r+=1),t-=i(e[d]),t<0&&(t+=1),o-=i(e[d]),o<0&&(o+=1);i=null;varu=functione(){varn=2091639*r+2.3283064365386963e-10*a;returnr=t,t=o,o=n-(a=0|n)};returnu.uint32=function(){return4294967296*u()},u.fract53=function(){returnu()+1.1102230246251565e-16*(2097152*u()|0)},u.version="Alea 0.9",u.args=e,u}(Array.prototype.slice.call(arguments))},a="23456789ABCDEFGHJKLMNPQRSTWXYZabcdefghijkmnopqrstuvwxyz",i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",d=functione(n,r){vart=this;if(t.type=n,!e.Type[n])thrownewError("Unknown random generator type: "+n);if(n===e.Type.ALEA){if(!r.seeds)thrownewError("No seeds were provided for Alea PRNG");t.alea=o.apply(null,r.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){varn=parseInt(e.hexString(8),16);return2.3283064365386963e-10*n}if(e.type===d.Type.BROWSER_CRYPTO){varr=newUint32Array(1);returnwindow.crypto.getRandomValues(r),2.3283064365386963e-10*r[0]}thrownewError("Unknown random generator type: "+e.type)},d.prototype.hexString=function(e){varn=this;if(n.type===d.Type.NODE_CRYPTO){varr=Math.ceil(e/2),o;try{o=t.randomBytes(r)}catch(e){o=t.pseudoRandomBytes(r)}vara=o.toString("hex");returna.substring(0,e)}returnthis._randomString(e,"0123456789abcdef")},d.prototype._randomString=function(e,n){for(varr=this,t=[],o=0;o<e;o++)t[o]=r.choice(n);returnt.join("")},d.prototype.id=function(e){varn=this;returnvoid0===e&&(e=17),n._randomString(e,a)},d.prototype.secret=function(e){varn=this;returnvoid0===e&&(e=43),n._randomString(e,i)},d.prototype.choice=function(e){varn=Math.floor(this.fraction()*e.length);return"string"==typeofe?e.substr(n,1):e[n]};varu="undefined"!=typeofwindow&&window.innerHeight||"undefined"!=typeofdocument&&document.documentElement&&document.documentElement.clientHeight||"undefined"!=typeofdocument&&document.body&&document.body.clientHeight||1,c="undefined"!=typeofwindow&&window.innerWidth||"undefined"!=typeofdocument&&document.documentElement&&document.documentElement.clientWidth||"undefined"!=typeofdocument&&document.body&&document.body.clientWidth||1,s="undefined"!=typeofnavigator&&navigator.userAgent||"";m=e.isServer?newd(d.Type.NODE_CRYPTO):"undefined"!=typeofwindow&&window.crypto&&window.crypto.getRandomValues?newd(d.Type.BROWSER_CRYPTO):r(),m.createWithSeeds=function(){for(vare=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];if(0===n.length)thrownewError("No seeds were provided");returnnewd(d.Type.ALEA,{seeds:n})},m.insecure=r()},"deprecated.js":function(){e.uuid=function(){for(vare="0123456789abcdef",n=[],r=0;r<36;r++)n[r]=m.choice(e);n[14]="4",n[19]=e.substr(3&parseInt(n[19],16)|8,1),n[8]=n[13]=n[18]=n[23]="-";vart=n.join("");returnt}}}}}},{extensions:[".js",".json"]});p("./node_modules/meteor/random/random.js"),p("./node_modules/meteor/random/deprecated.js"),"undefined"==typeofPackage&&(Package={}),function(e,n){for(varrinn)rine||(e[r]=n[r])}(Package.random={},{Random:m})}()
!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={},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(){vart=this;return'ObjectID("'+t._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(){vare=Package.meteor.Meteor,n=Package.meteor.global,d=Package.meteor.meteorEnv,i=Package.underscore._,a=Package.ejson.EJSON,r;(function(){r={},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){o=o||{};varf=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){f=f||{};vart=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)):(h=t(c),deleteh._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,r=Package.meteor.global,t=Package.meteor.meteorEnv,n=Package.underscore._,o=Package.ejson.EJSON,i=Package["id-map"].IdMap,a=Package["ordered-dict"].OrderedDict,s=Package.tracker.Tracker,c=Package.tracker.Deps,u=Package["mongo-id"].MongoID,d=Package.random.Random,f=Package["diff-sequence"].DiffSequence,l=Package["geojson-utils"].GeoJSON,h,p,v,_,m,y,g,w,$,b,E,I,C,O,k,S;(function(){h=function(r){vart=this;t.name=r,t._docs=newh._IdMap,t._observeQueue=newe._SynchronousQueue,t.next_qid=1,t.queries={},t._savedOriginals=null,t.paused=!1},p={},v={},_=function(e){varr=newError(e);returnr.name="MinimongoError",r},h.prototype.find=function(e,r){return0===arguments.length&&(e={}),newh.Cursor(this,e,r)},h.Cursor=function(e,r,t){varn=this;t||(t={}),n.collection=e,n.sorter=null,n.matcher=newp.Matcher(r),h._selectorIsId(r)?n._selectorId=r:h._selectorIsIdPerhapsAsObject(r)?n._selectorId=r._id:(n._selectorId=void0,(n.matcher.hasGeoQuery()||t.sort)&&(n.sorter=newp.Sorter(t.sort||[],{matcher:n.matcher}))),n.skip=t.skip,n.limit=t.limit,n.fields=t.fields,n._projectionFn=h._compileProjection(n.fields||{}),n._transform=h.wrapTransform(t.transform),"undefined"!=typeofs&&(n.reactive=void0===t.reactive||t.reactive)},h.Cursor.prototype.rewind=function(){},h.prototype.findOne=function(e,r){return0===arguments.length&&(e={}),r=r||{},r.limit=1,this.find(e,r).fetch()[0]},h.Cursor.prototype.forEach=function(e,r){vart=this,o=t._getRawObjects({ordered:!0});t.reactive&&t._depend({addedBefore:!0,removed:!0,changed:!0,movedBefore:!0}),n.each(o,function(n,o){n=t._projectionFn(n),t._transform&&(n=t._transform(n)),e.call(r,n,o,t)})},h.Cursor.prototype.getTransform=function(){returnthis._transform},h.Cursor.prototype.map=function(e,r){vart=this,n=[];returnt.forEach(function(o,i){n.push(e.call(r,o,i,t))}),n},h.Cursor.prototype.fetch=function(){vare=this,r=[];returne.forEach(function(e){r.push(e)}),r},h.Cursor.prototype.count=function(){vare=this;returne.reactive&&e._depend({added:!0,removed:!0},!0),e._getRawObjects({ordered:!0}).length},h.Cursor.prototype._publishCursor=function(e){varr=this;if(!r.collection.name)thrownewError("Can't publish a cursor from a collection without a name.");vart=r.collection.name;if(!Package.mongo)thrownewError("Can't publish from Minimongo without the `mongo` package.");returnPackage.mongo.Mongo.Collection._publishCursor(r,e,t)},h.Cursor.prototype._getCollectionName=function(){vare=this;returne.collection.name},h._observeChangesCallbacksAreOrdered=function(e){if(e.added&&e.addedBefore)thrownewError("Please specify only one of added() and addedBefore()");return!(!e.addedBefore&&!e.movedBefore)},h._observeCallbacksAreOrdered=function(e){if(e.addedAt&&e.added)thrownewError("Please specify only one of added() and addedAt()");if(e.changedAt&&e.changed)thrownewError("Please specify only one of changed() and changedAt()");if(e.removed&&e.removedAt)thrownewError("Please specify only one of removed() and removedAt()");return!!(e.addedAt||e.movedTo||e.changedAt||e.removedAt)},h.ObserveHandle=function(){},n.extend(h.Cursor.prototype,{observe:function(e){varr=this;returnh._observeFromObserveChanges(r,e)},observeChanges:function(e){varr=this,t=h._observeChangesCallbacksAreOrdered(e);if(!e._allow_unordered&&!t&&(r.skip||r.limit))thrownewError("must use ordered observe (ie, 'addedBefore' instead of 'added') with skip or limit");if(r.fields&&(0===r.fields._id||r.fields._id===!1))throwError("You may not observe a cursor with {fields: {_id: 0}}");vari={dirty:!1,matcher:r.matcher,sorter:t&&r.sorter,distances:r.matcher.hasGeoQuery()&&t&&newh._IdMap,resultsSnapshot:null,ordered:t,cursor:r,projectionFn:r._projectionFn},a;r.reactive&&(a=r.collection.next_qid++,r.collection.queries[a]=i),i.results=r._getRawObjects({ordered:t,distances:i.distances}),r.collection.paused&&(i.resultsSnapshot=t?[]:newh._IdMap);varc=function(e){returne?function(){vart=this,n=arguments;r.collection.paused||r.collection._observeQueue.queueTask(function(){e.apply(t,n)})}:function(){}};if(i.ad
if(!(ninstanceofArray))throw_("$each must be an array");varo=void0;if("$position"int){if("number"!=typeoft.$position)throw_("$position must be a numeric value");if(t.$position<0)throw_("$position in $push must be zero or positive");o=t.$position}vari=void0;if("$slice"int){if("number"!=typeoft.$slice)throw_("$slice must be a numeric value");if(t.$slice>0)throw_("$slice in $push must be zero or negative");i=t.$slice}vara=void0;if(t.$sort){if(void0===i)throw_("$sort requires $slice to be present");a=newp.Sorter(t.$sort).getComparator();for(vars=0;s<n.length;s++)if(3!==h._f._type(n[s]))throw_("$push like modifiers using $sort require all elements to be objects")}if(void0===o)for(varc=0;c<n.length;c++)e[r].push(n[c]);else{for(varu=[o,0],c=0;c<n.length;c++)u.push(n[c]);Array.prototype.splice.apply(e[r],u)}a&&e[r].sort(a),void0!==i&&(0===i?e[r]=[]:e[r]=e[r].slice(i))},$pushAll:function(e,r,t){if(!("object"==typeoft&&tinstanceofArray))throw_("Modifier $pushAll/pullAll allowed for arrays only");varn=e[r];if(void0===n)e[r]=t;else{if(!(ninstanceofArray))throw_("Cannot apply $pushAll modifier to non-array");for(varo=0;o<t.length;o++)n.push(t[o])}},$addToSet:function(e,r,t){varo=!1;if("object"==typeoft)for(variint){"$each"===i&&(o=!0);break}vara=o?t.$each:[t],s=e[r];if(void0===s)e[r]=a;else{if(!(sinstanceofArray))throw_("Cannot apply $addToSet modifier to non-array");n.each(a,function(e){for(varr=0;r<s.length;r++)if(h._f._equal(e,s[r]))return;s.push(e)})}},$pop:function(e,r,t){if(void0!==e){varn=e[r];if(void0!==n){if(!(ninstanceofArray))throw_("Cannot apply $pop modifier to non-array");"number"==typeoft&&t<0?n.splice(0,1):n.pop()}}},$pull:function(e,r,t){if(void0!==e){varn=e[r];if(void0!==n){if(!(ninstanceofArray))throw_("Cannot apply $pull/pullAll modifier to non-array");varo=[];if(null==t||"object"!=typeoft||tinstanceofArray)for(vari=0;i<n.length;i++)h._f._equal(n[i],t)||o.push(n[i]);elsefor(vara=newp.Matcher(t),i=0;i<n.length;i++)a.documentMatches(n[i]).result||o.push(n[i]);e[r]=o}}},$pullAll:function(e,r,t){if(!("object"==typeoft&&tinstanceofArray))throw_("Modifier $pushAll/pullAll allowed for arrays only");if(void0!==e){varn=e[r];if(void0!==n){if(!(ninstanceofArray))throw_("Cannot apply $pull/pullAll modifier to non-array");for(varo=[],i=0;i<n.length;i++){for(vara=!1,s=0;s<t.length;s++)if(h._f._equal(n[i],t[s])){a=!0;break}a||o.push(n[i])}e[r]=o}}},$rename:function(r,t,n,o,i){if(o===n)throw_("$rename source must differ from target");if(null===r)throw_("$rename source field invalid");if("string"!=typeofn)throw_("$rename target must be a string");if(void0!==r){vara=r[t];deleter[t];vars=n.split("."),c=e(i,s,{forbidArray:!0});if(null===c)throw_("$rename target field invalid");varu=s.pop();c[u]=a}},$bit:function(e,r,t){throw_("$bit is not supported")}}}.call(this),function(){h._diffQueryChanges=function(e,r,t,n,o){returnf.diffQueryChanges(e,r,t,n,o)},h._diffQueryUnorderedChanges=function(e,r,t,n){returnf.diffQueryUnorderedChanges(e,r,t,n)},h._diffQueryOrderedChanges=function(e,r,t,n){returnf.diffQueryOrderedChanges(e,r,t,n)},h._diffObjects=function(e,r,t){returnf.diffObjects(e,r,t)}}.call(this),function(){h._IdMap=function(){vare=this;i.call(e,u.idStringify,u.idParse)},e._inherits(h._IdMap,i)}.call(this),function(){h._CachingChangeObserver=function(e){varr=this;e=e||{};vart=e.callbacks&&h._observeChangesCallbacksAreOrdered(e.callbacks);if(n.has(e,"ordered")){if(r.ordered=e.ordered,e.callbacks&&e.ordered!==t)throwError("ordered option doesn't match callbacks")}else{if(!e.callbacks)throwError("must provide ordered or callbacks");r.ordered=t}vari=e.callbacks||{};r.ordered?(r.docs=newa(u.idStringify),r.applyChange={addedBefore:function(e,t,n){vara=o.clone(t);a._id=e,i.addedBefore&&i.addedBefore.call(r,e,t,n),i.added&&i.added.call(r,e,t),r.docs.putBefore(e,a,n||null)},movedBefore:function(e,t){varn=r.docs.get(e);i.movedBefore&&i.movedBefore.call(r,e,t),r.docs.moveBefore(e,t||null)}}):(r.docs=newh._IdMap,r.applyChange={added:function(e
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,a=Package.modules.Buffer,i=Package.modules.process,o=Package.underscore._,c=Package.ejson.EJSON,s,u,f=r({node_modules:{meteor:{check:{"match.js":["./isPlainObject.js",function(t,n){varr=newe.EnvironmentVariable,a=t("./isPlainObject.js").isPlainObject,i=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(){returnnewl(o.toArray(arguments))},Any:["__any__"],Where:function(e){returnnewh(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},l=function(e){if(o.isEmpty(e))thrownewError("Must provide at least one choice to Match.OneOf");this.choices=e},h=function(e){this.condition=e},p=function(e){this.pattern=e},g=function(e){this.pattern=e},d=function(e,t){if(t=t||{},null===e)return"null";if(t.onlyShowType)returntypeofe;if("object"!=typeofe)returnc.stringify(e);try{JSON.stringify(e)}catch(t){if("TypeError"===t.name)returntypeofe}returnc.stringify(e)},m=[[String,"string"],[Number,"number"],[Boolean,"boolean"],[Function,"function"],[void0,"undefined"]],y=function(e,t){if(t===s.Any)return!1;for(varn=0;n<m.length;++n)if(t===m[n][0])returntypeofe!==m[n][1]&&{message:"Expected "+m[n][1]+", got "+d(e,{onlyShowType:!0}),path:""};if(null===t)returnnull!==e&&{message:"Expected null, got "+d(e),path:""};if("string"==typeoft||"number"==typeoft||"boolean"==typeoft)returne!==t&&{message:"Expected "+t+", got "+d(e),path:""};if(t===s.Integer)return("number"!=typeofe||(0|e)!==e)&&{message:"Expected Integer, got "+d(e),path:""};if(t===Object&&(t=s.ObjectIncluding({})),tinstanceofArray){if(1!==t.length)return{message:"Bad pattern: arrays must have one type element"+d(t),path:""};if(!o.isArray(e)&&!o.isArguments(e))return{message:"Expected array, got "+d(e),path:""};for(varn=0,r=e.length;n<r;n++){vari=y(e[n],t[0]);if(i)returni.path=k(n,i.path),i}return!1}if(tinstanceofh){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)),tinstanceofl){for(varn=0;n<t.choices.length;++n){vari=y(e,t.choices[n]);if(!i)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(!a(e))return{message:"Expected plain object",path:""};varb={},w={};o.each(t,function(e,t){einstanceofu||einstanceoff?w[t]=e.pattern:b[t]=e});for(varO=function(e){vart=[];if(o.isObject(e))for(varnine)t.push(n);returnt},j=O(e),n=0,r=j.length;n<r;n++){varE=j[n],P=e[E];if(o.has(b,E)){vari=y(P,b[E]);if(i)returni.path=k(E,i.path),i;deleteb[E]}elseif(o.has(w,E)){vari=y(P,w[E]);if(i)returni.path=k(E,i.path),i}else{if(!c)return{message:"Unknown key",path:E};if(v){vari=y(P,v[0]);if(i)returni.path=k(E,i.path),i}}}varj=o.keys(b);returnj.length?{message:"Missing ke
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.underscore._,i=Package.random.Random,a;(function(){a=function(e){var t=this;n.extend(t,n.defaults(n.clone(e||{}),{baseTimeout:1e3,exponent:2.2,maxTimeout:3e5,minTimeout:10,minCount:2,fuzz:.5})),t.retryTimer=null},n.extend(a.prototype,{clear:function(){var e=this;e.retryTimer&&clearTimeout(e.retryTimer),e.retryTimer=null},_timeout:function(e){var t=this;if(e<t.minCount)return t.minTimeout;var r=Math.min(t.maxTimeout,t.baseTimeout*Math.pow(t.exponent,e));return r*=i.fraction()*t.fuzz+(1-t.fuzz/2)},retryLater:function(t,r){var n=this,i=n._timeout(t);return n.retryTimer&&clearTimeout(n.retryTimer),n.retryTimer=e.setTimeout(r,i),i}})}).call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var r in t)r in e||(e[r]=t[r])}(Package.retry={},{Retry:a})}();
!function(){var e=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){var t=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(){var e=this;e._clearHeartbeatIntervalTimer(),e._clearHeartbeatTimeoutTimer()},start:function(){var e=this;e.stop(),e._startHeartbeatIntervalTimer()},_startHeartbeatIntervalTimer:function(){var t=this;t._heartbeatIntervalHandle=e.setInterval(c.bind(t._heartbeatIntervalFired,t),t.heartbeatInterval)},_startHeartbeatTimeoutTimer:function(){var t=this;t._heartbeatTimeoutHandle=e.setTimeout(c.bind(t._heartbeatTimeoutFired,t),t.heartbeatTimeout)},_clearHeartbeatIntervalTimer:function(){var t=this;t._heartbeatIntervalHandle&&(e.clearInterval(t._heartbeatIntervalHandle),t._heartbeatIntervalHandle=null)},_clearHeartbeatTimeoutTimer:function(){var t=this;t._heartbeatTimeoutHandle&&(e.clearTimeout(t._heartbeatTimeoutHandle),t._heartbeatTimeoutHandle=null)},_heartbeatIntervalFired:function(){var e=this;e._seenPacket||e._heartbeatTimeoutHandle||(e._sendPing(),e._startHeartbeatTimeoutTimer()),e._seenPacket=!1},_heartbeatTimeoutFired:function(){var e=this;e._heartbeatTimeoutHandle=null,e._onTimeout()},messageReceived:function(){var e=this;e._seenPacket=!0,e._heartbeatTimeoutHandle&&e._clearHeartbeatTimeoutTimer()}})}.call(this),function(){d.SUPPORTED_DDP_VERSIONS=["1","pre2","pre1"],d.parseDDP=function(t){try{var a=JSON.parse(t)}catch(a){return e._debug("DiscardingmessagewithinvalidJSON",t),null}return null===a||"object"!=typeof a?(e._debug("Discardingnon-objectDDPmessage",t),null):(c.has(a,"cleared")&&(c.has(a,"fields")||(a.fields={}),c.each(a.cleared,function(e){a.fields[e]=void 0}),delete a.cleared),c.each(["fields","params","result"],function(e){c.has(a,e)&&(a[e]=o._adjustTypesFromJSONValue(a[e]))}),a)},d.stringifyDDP=function(e){var t=o.clone(e);if(c.has(e,"fields")){var a=[];c.each(e.fields,function(e,n){void 0===e&&(a.push(n),delete t.fields[n])}),c.isEmpty(a)||(t.cleared=a),c.isEmpty(t.fields)&&delete t.fields}if(c.each(["fields","params","result"],function(e){c.has(t,e)&&(t[e]=o._adjustTypesToJSONValue(t[e]))}),e.id&&"string"!=typeof e.id)throw new Error("Messageidisnotastring");return JSON.stringify(t)}}.call(this),function(){d.MethodInvocation=function(e){var t=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(){var e=this;e._calledUnblock=!0,e._unblock()},setUserId:function(e){var t=this;if(t._calledUnblock)throw new Error("Can't call setUserId in a method after calling unblock");t.userId=e,t._setUserId(e)}})}.call(this),function(){function e(){return i.hexString(20)}d.RandomStream=function(t){var a=this;this.seed=[].concat(t.seed||e()),this.sequences={}},d.RandomStream.get=function(e,t){if(t||(t="default"),!e)return i.insecure;var a=e.randomStream;return a||(e.randomStream=a=new d.RandomStream({seed:e.randomSeed})),a._sequence(t)},d.makeRpcSeed=function(e,t){var a=d.RandomStream.get(e,"/rpc/"+t);return a.hexString(20)},c.extend(d.RandomStream.prototype,{_sequence:function(e){var t=this,a=t.sequences[e]||null;if(null===a){for(var n=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)}return a}})}.call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var a in t)a in e||(e[a]=t[a])}(Package["ddp-common"]={},{DDPCommon:d})}();
!function(){var a=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,o=Package.underscore._,n=Package["ecmascript-runtime"].Symbol,r=Package["ecmascript-runtime"].Map,i=Package["ecmascript-runtime"].Set,c;(function(){c={};var e="Meteor_Reload",t={},n,r=null;try{r=window.sessionStorage,r?(r.setItem("__dummy__","1"),r.removeItem("__dummy__")):r=null}catch(a){r=null}c._getData=function(){return r&&r.getItem(e)},r&&(n=c._getData(),r.removeItem(e)),n||(n="{}");var i={};try{i=JSON.parse(n),"object"!=typeof i&&(a._debug("Got bad data on reload. Ignoring."),i={})}catch(e){a._debug("Got invalid JSON on reload. Ignoring.")}i.reload&&"object"==typeof i.data&&(t=i.data);var l=[];c._onMigrate=function(a,e){e||(e=a,a=void 0),l.push({name:a,callback:e})},c._migrationData=function(a){return t[a]};var d=function(a,e){a=a||function(){},e=e||{};for(var t={},n=o.clone(l),r=!0;n.length;){var i=n.shift(),c=i.callback(a,e);c[0]||(r=!1),c.length>1&&i.name&&(t[i.name]=c[1])}return r||e.immediateMigration?t:null};c._migrate=function(t,o){var n=d(t,o);if(null===n)return!1;try{var i=JSON.stringify({data:n,reload:!0})}catch(e){throw a._debug("Couldn'tserializedataformigration",n),e}if(r)try{r.setItem(e,i)}catch(e){a._debug("Couldn't save data for migration to sessionStorage",e)}else a._debug("Browser does not support sessionStorage. Not saving migration state.");return!0},c._withFreshProvidersForTest=function(a){var e=o.clone(l);l=[];try{a()}finally{l=e}};var g=!1;c._reload=function(a){if(a=a||{},!g){g=!0;var e=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"==typeof Package&&(Package={}),function(a,e){for(var t in e)t in a||(a[t]=e[t])}(Package.reload={},{Reload:c})}();
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.check.check,o=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["ddp-common"].DDPCommon,_=Package["diff-sequence"].DiffSequence,p=Package["mongo-id"].MongoID,h,v,m,g,b,y,w;(function(){h={},v={}}).call(this),function(){m=function(){var e=this;l.call(e,p.idStringify,p.idParse)},e._inherits(m,l)}.call(this),function(){g=function(){var e=document,t=window,n={},r=function(){};r.prototype.addEventListener=function(e,t){this._listeners||(this._listeners={}),e in this._listeners||(this._listeners[e]=[]);var r=this._listeners[e];n.arrIndexOf(r,t)===-1&&r.push(t)},r.prototype.removeEventListener=function(e,t){if(this._listeners&&e in this._listeners){var r=this._listeners[e],o=n.arrIndexOf(r,t);return o!==-1?void(r.length>1?this._listeners[e]=r.slice(0,o).concat(r.slice(o+1)):delete this._listeners[e]):void 0}},r.prototype.dispatchEvent=function(e){var t=e.type,n=Array.prototype.slice.call(arguments,0);if(this["on"+t]&&this["on"+t].apply(this,n),this._listeners&&t in this._listeners)for(var r=0;r<this._listeners[t].length;r++)this._listeners[t][r].apply(this,n)};var o=function(e,t){if(this.type=e,"undefined"!=typeof t)for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n])};o.prototype.toString=function(){var e=[];for(var t in this)if(this.hasOwnProperty(t)){var n=this[t];"function"==typeof n&&(n="[function]"),e.push(t+"="+n)}return"SimpleEvent("+e.join(", ")+")"};var i=function(e){var t=this;t._events=e||[],t._listeners={}};i.prototype.emit=function(e){var t=this;if(t._verifyType(e),!t._nuked){var n=Array.prototype.slice.call(arguments,1);if(t["on"+e]&&t["on"+e].apply(t,n),e in t._listeners)for(var r=0;r<t._listeners[e].length;r++)t._listeners[e][r].apply(t,n)}},i.prototype.on=function(e,t){var n=this;n._verifyType(e),n._nuked||(e in n._listeners||(n._listeners[e]=[]),n._listeners[e].push(t))},i.prototype._verifyType=function(e){var t=this;n.arrIndexOf(t._events,e)===-1&&n.log("Event "+JSON.stringify(e)+" not listed "+JSON.stringify(t._events)+" in "+t)},i.prototype.nuke=function(){var e=this;e._nuked=!0;for(var t=0;t<e._events.length;t++)delete e[e._events[t]];e._listeners={}};var s="abcdefghijklmnopqrstuvwxyz0123456789_";n.random_string=function(e,t){t=t||s.length;var n,r=[];for(n=0;n<e;n++)r.push(s.substr(Math.floor(Math.random()*t),1));return r.join("")},n.random_number=function(e){return Math.floor(Math.random()*e)},n.random_number_string=function(e){var t=(""+(e-1)).length,r=Array(t+1).join("0");return(r+n.random_number(e)).slice(-t)},n.getOrigin=function(e){e+="/";var t=e.split("/").slice(0,3);return t.join("/")},n.isSameOriginUrl=function(e,n){return n||(n=t.location.href),e.split("/").slice(0,3).join("/")===n.split("/").slice(0,3).join("/")},n.isSameOriginScheme=function(e,n){return n||(n=t.location.href),e.split(":")[0]===n.split(":")[0]},n.getParentDomain=function(e){if(/^[0-9.]*$/.test(e))return e;if(/^\[/.test(e))return e;if(!/[.]/.test(e))return e;var t=e.split(".").slice(1);return t.join(".")},n.objectExtend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e};var a="_jp";n.polluteGlobalNamespace=function(){a in t||(t[a]={})},n.closeFrame=function(e,t){return"c"+JSON.stringify([e,t])},n.userSetCode=function(e){return 1e3===e||e>=3e3&&e<=4999},n.countRTO=function(e){var t;return t=e>100?3*e:e+200},n.log=function(){t.console&&console.log&&console.log.apply&&console.log.apply(console,arguments)},n.bind=function(e,t){return e.bind?e.bind(t):function(){return e.apply(t,arguments)}},n.flatUrl=function(e){return e.indexOf("?")===-1&&e.indexOf("#")===-1},n.amendUrl=function(t,r){var o;if(void 0===r)o=e.location;else{var i=/^([a-z0-9.+-]+:)/i.exec(r);if(i){var s=i[0].toLowerCase(),a=r.substring(s.length),u=/[a-z0-9\.-]+(:[0-9]+)?/.exec(a);if(u)var c=u[0]}if(!s||!c)throw new Error("relativeTo must be an absolute url");o={protocol:s,host:c}}if(!t)throw new Error("Wrong
!function(){var a=Package["ddp-client"].DDP;"undefined"==typeof Package&&(Package={}),function(a,n){for(var e in n)e in a||(a[e]=n[e])}(Package.ddp={},{DDP:a})}();
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,t=Package.underscore._,o=Package.minimongo.LocalCollection,a=Package.minimongo.Minimongo,i=Package.check.check,c=Package.check.Match,l=Package.ejson.EJSON,s=Package["ddp-client"].DDP,d=Package.modules.meteorInstall,u=Package.modules.Buffer,f=Package.modules.process,h=Package["ecmascript-runtime"].Symbol,_=Package["ecmascript-runtime"].Map,m=Package["ecmascript-runtime"].Set,v=Package["babel-runtime"].meteorBabelHelpers,p=Package.promise.Promise,w,y=d({node_modules:{meteor:{"allow-deny":{"allow-deny.js":function(){function n(e,n){return e.transform?e.transform(n):n}function r(e,n,r){var t=n;return e.transform&&(t=l.clone(n),null!==r&&(t._id=r),t=e.transform(t)),t}function a(e,n,r){var a=["insert","update","remove","fetch","transform"];if(t.each(t.keys(r),function(e){if(!t.contains(a,e))throw new Error(n+": Invalid key: "+e)}),e._restricted=!0,t.each(["insert","update","remove"],function(t){if(r.hasOwnProperty(t)){if(!(r[t]instanceof Function))throw new Error(n+": Value for `"+t+"` must be a function");void 0===r.transform?r[t].transform=e._transform:r[t].transform=o.wrapTransform(r.transform),e._validators[t][n].push(r[t])}}),r.update||r.remove||r.fetch){if(r.fetch&&!(r.fetch instanceof Array))throw new Error(n+": Value for `fetch` must be an array");e._updateFetch(r.fetch)}}function d(n,r){if(!o._selectorIsIdPerhapsAsObject(n))throw new e.Error(403,"Not permitted. Untrusted code may only "+r+" documents by ID.")}function u(){var e=s._CurrentInvocation.get();return e&&e.isSimulation}w={CollectionPrototype:{}};var f=w.CollectionPrototype;f.allow=function(e){a(this,"allow",e)},f.deny=function(e){a(this,"deny",e)},f._defineMutationMethods=function(n){var r=this;n=n||{},r._restricted=!1,r._insecure=void 0,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)&&!function(){var o={};t.each(["insert","update","remove"],function(a){var l=r._prefix+a;if(n.useExisting){var s=e.isClient?"_methodHandlers":"method_handlers";if(r._connection[s]&&"function"==typeof r._connection[s][l])return}o[l]=function(){i(arguments,[c.Any]);var n=t.toArray(arguments);try{var o=null;if("insert"!==a||t.has(n[0],"_id")||(o=r._makeNewID()),this.isSimulation)return null!==o&&(n[0]._id=o),r._collection[a].apply(r._collection,n);if("insert"!==a&&d(n[0],a),r._restricted){if(0===r._validators[a].allow.length)throw new e.Error(403,"Access denied. No allow validators set on restricted collection for method '"+a+"'.");var l="_validated"+a.charAt(0).toUpperCase()+a.slice(1);return n.unshift(this.userId),"insert"===a&&n.push(o),r[l].apply(r,n)}if(r._isInsecure())return null!==o&&(n[0]._id=o),r._collection[a].apply(r._collection,n);throw new e.Error(403,"Access denied")}catch(n){throw"MongoError"===n.name||"MinimongoError"===n.name?new e.Error(409,n.toString()):n}}}),r._connection.methods(o)}())},f._updateFetch=function(e){var n=this;n._validators.fetchAllFields||(e?n._validators.fetch=t.union(n._validators.fetch,e):(n._validators.fetchAllFields=!0,n._validators.fetch=null))},f._isInsecure=function(){var e=this;return void 0===e._insecure?!!Package.insecure:e._insecure},f._validatedInsert=function(n,o,a){var i=this;if(t.any(i._validators.insert.deny,function(e){return e(n,r(e,o,a))}))throw new e.Error(403,"Access denied");if(t.all(i._validators.insert.allow,function(e){return!e(n,r(e,o,a))}))throw new e.Error(403,"Access denied");null!==a&&(o._id=a),i._collection.insert.call(i._collection,o)},f._validatedUpdate=function(r,a,c,l){var s=this;if(i(c,Object),l=t.clone(l)||{},!o._selectorIsIdPerhapsAsObject(a))throw new Error("validated update should be of a single ID");if(l.upsert)throw new e.Error(403,"Access denied. Upserts not allowed in a restricted collection.");var d="Access denied. In a restricted collection you can only update documents, not replace them. Use a Mongo update operator, such as
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,o=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,u=Package.tracker.Tracker,d=Package.tracker.Deps,f=Package["diff-sequence"].DiffSequence,_=Package["mongo-id"].MongoID,p=Package.check.check,m=Package.check.Match,g=Package.modules.meteorInstall,v=Package.modules.Buffer,h=Package.modules.process,w=Package["ecmascript-runtime"].Symbol,C=Package["ecmascript-runtime"].Map,y=Package["ecmascript-runtime"].Set,k=Package["babel-runtime"].meteorBabelHelpers,O=Package.promise.Promise,b,I,P=g({node_modules:{meteor:{mongo:{"local_collection_driver.js":function(){b=function e(){var n=this;n.noConnCollections={}};var e=function e(n,o){return n in o||(o[n]=new l(n)),o[n]};c.extend(b.prototype,{open:function(){function n(n,o){var t=this;return n?o?(o._mongo_livedata_collections||(o._mongo_livedata_collections={}),e(n,o._mongo_livedata_collections)):e(n,t.noConnCollections):new l}return n}()}),b=new b},"collection.js":function(n,o,i){function a(e){p(e,RegExp);var n={$regex:e.source},o="";return e.ignoreCase&&(o+="i"),e.multiline&&(o+="m"),o&&(n.$options=o),n}function u(e,n){if(e)return n=n||c.identity,function(o,t){e(o,!o&&n(t))}}function d(e){if(e.length&&(void 0===e[e.length-1]||e[e.length-1]instanceof Function))return e.pop()}I={},I.Collection=function(n,o){var t=this;if(!(t instanceof I.Collection))throw new Error('use"new"toconstructaMongo.Collection');if(n||null===n||(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.)"),n=null),null!==n&&"string"!=typeof n)throw new Error("First argument to new Mongo.Collection must be a string or null");switch(o&&o.methods&&(o={connection:o}),o&&o.manager&&!o.connection&&(o.connection=o.manager),o=c.extend({connection:void 0,idGeneration:"STRING",transform:null,_driver:void 0,_preventAutopublish:!1},o),o.idGeneration){case"MONGO":t._makeNewID=function(){var e=n?s.randomStream("/collection/"+n):r.insecure;return new I.ObjectID(e.hexString(24))};break;case"STRING":default:t._makeNewID=function(){var e=n?s.randomStream("/collection/"+n):r.insecure;return e.id()}}if(t._transform=l.wrapTransform(o.transform),n&&null!==o.connection?o.connection?t._connection=o.connection:e.isClient?t._connection=e.connection:t._connection=e.server:t._connection=null,o._driver||(n&&t._connection===e.server&&"undefined"!=typeof MongoInternals&&MongoInternals.defaultRemoteCollectionDriver?o._driver=MongoInternals.defaultRemoteCollectionDriver():o._driver=b),t._collection=o._driver.open(n,t._connection),t._name=n,t._driver=o._driver,t._connection&&t._connection.registerStore){var i=t._connection.registerStore(n,{beginUpdate:function(){function e(e,n){(e>1||n)&&t._collection.pauseObservers(),n&&t._collection.remove({})}return e}(),update:function(){function e(e){var n=_.idParse(e.id),o=t._collection.findOne(n);if("replace"===e.msg){var r=e.replace;return void(r?o?t._collection.update(n,r):t._collection.insert(r):o&&t._collection.remove(n))}if("added"===e.msg){if(o)throw new Error("Expected not to find a document already present for an add");t._collection.insert(c.extend({_id:n},e.fields))}else if("removed"===e.msg){if(!o)throw new Error("Expected to find a document already present for removed");t._collection.remove(n)}else{if("changed"!==e.msg)throw new Error("I don'tknowhowtodealwiththismessage");if(!o)throw new Error("Expectedtofindadocumenttochange");if(!c.isEmpty(e.fields)){var i={};c.each(e.fields,function(e,n){void 0===e?(i.$unset||(i.$unset={}),i.$unset[n]=1):(i.$set||(i.$set={}),i.$set[n]=e)}),t._collection.update(n,i)}}}return e}(),endUpdate:function(){function e(){t._collection.resumeObservers()}return e}(),saveOriginals:function(){function e(){t._collection.saveOriginals()}return e}(),retrieveOriginals:function(){function e(){return t._collection.r
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.tracker.Tracker,r=Package.tracker.Deps,i;(function(){i=function(e,t){return this instanceof i?(this.curValue=e,this.equalsFunc=t,void(this.dep=new a.Dependency)):new i(e,t)},i._isEqual=function(e,t){var n=e,a=t;return n===a&&(!n||"number"==typeof n||"boolean"==typeof n||"string"==typeof n)},i.prototype.get=function(){return a.active&&this.dep.depend(),this.curValue},i.prototype.set=function(e){var t=this.curValue;(this.equalsFunc||i._isEqual)(t,e)||(this.curValue=e,this.dep.changed())},i.prototype.toString=function(){return"ReactiveVar{"+this.get()+"}"},i.prototype._numListeners=function(){var e=0;for(var t in this.dep._dependentsById)e++;return e}}).call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package["reactive-var"]={},{ReactiveVar:i})}();
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,o=Package.tracker.Tracker,t=Package.tracker.Deps,i=Package["mongo-id"].MongoID,a=Package["diff-sequence"].DiffSequence,c=Package.underscore._,f=Package.random.Random,u,d,s,l;(function(){vare=function(){u._suppressWarnings?u._suppressWarnings--:("undefined"!=typeofconsole&&console.warn&&console.warn.apply(console,arguments),u._loggedWarnings++)},n=i.idStringify,r=i.idParse;u={_suppressWarnings:0,_loggedWarnings:0,observe:function(e,n){varr=null,i=null,f=[],u=o.autorun(function(){varu=e();o.nonreactive(function(){vare;if(i&&(f=c.map(r.fetch(),function(e){return{_id:e._id,item:e}}),i.stop(),i=null),u)if(uinstanceofArray)e=s(f,u,n);else{if(!a(u))throwt();varo=l(f,u,n);e=o[0],i=o[1]}elsee=d(f,n);v(f,e,n),r=u,f=e})});return{stop:function(){u.stop(),i&&i.stop()}}},fetch:function(e){if(e){if(einstanceofArray)returne;if(a(e))returne.fetch();throwt()}return[]}};vart=function(){returnnewError("{{#each}} currently only accepts arrays, cursors or falsey values.")},a=function(e){returne&&c.isObject(e)&&c.isFunction(e.observe)&&c.isFunction(e.fetch)},v=function(e,o,t){vari=Package["diff-sequence"].DiffSequence.diffQueryOrderedChanges,a=[],f=[],u={},d={},s={},l=e.length;c.each(o,function(e,r){f.push({_id:e._id}),d[n(e._id)]=r}),c.each(e,function(e,r){a.push({_id:e._id}),u[n(e._id)]=r,s[n(e._id)]=r}),i(a,f,{addedBefore:function(e,r,i){vara=i?s[n(i)]:l;i&&c.each(s,function(e,n){e>=a&&s[n]++}),l++,s[n(e)]=a,t.addedAt(e,o[d[n(e)]].item,a,i)},movedBefore:function(e,r){if(e!==r){vari=s[n(e)],a=r?s[n(r)]:l;a>i&&a--,c.each(s,function(e,n){i<e&&e<a?s[n]--:a<=e&&e<i&&s[n]++}),s[n(e)]=a,t.movedTo(e,o[d[n(e)]].item,i,a,r)}},removed:function(r){varo=s[n(r)];c.each(s,function(e,n){e>=o&&s[n]--}),deletes[n(r)],l--,t.removedAt(r,e[u[n(r)]].item,o)}}),c.each(d,function(n,i){vara=r(i);if(c.has(u,i)){varf=o[n].item,d=e[u[i]].item;"object"!=typeoff&&f===d||t.changedAt(a,f,d,n)}})};d=function(e,n){return[]},s=function(r,o,t){vari={},a=c.map(o,function(r,t){vara;if("string"==typeofr)a="-"+r;elseif("number"==typeofr||"boolean"==typeofr||void0===r||null===r)a=r;else{if("object"!=typeofr)thrownewError("{{#each}} doesn't support arrays with elements of type "+typeofr);a=r&&"_id"inr?r._id:t}varc=n(a);returni[c]?(r&&"object"==typeofr&&"_id"inr&&e("duplicate id "+a+" in",o),a=f.id()):i[c]=!0,{_id:a,item:r}});returna},l=function(e,n,r){varo=!0,t=[],i=n.observe({addedAt:function(e,n,i){if(o){if(null!==i)thrownewError("Expected initial data from observe in order");t.push({_id:e._id,item:e})}elser.addedAt(e._id,e,n,i)},changedAt:function(e,n,o){r.changedAt(e._id,e,n,o)},removedAt:function(e,n){r.removedAt(e._id,e,n)},movedTo:function(e,n,o,t){r.movedTo(e._id,e,n,o,t)}});returno=!1,[t,i]}}).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){vare=String(t);returne.replace(/&/g,"&").replace(/</g,"<")},visitArray:function(t){for(var
!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.htmljs.HTML,f,h,m,w,v;(function(){f={},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;e?f._bind=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))}:f._bind=c.bind}).call(this),function(){vare={};f._DOMBackend=e;vart="undefined"!=typeofi?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),e.currentTarget=e.target;varr=t(e.currentTarget);r.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,t||(e=e.parentNode);returnt},t.prototype.attach=function(e,n,
return"function"!=typeofe?e:function(){varn=this,r=arguments;returnf.Template._withTemplateInstanceFunc(t,function(){returnf._wrapCatchingExceptions(e,"template helper").apply(n,r)})}};f._lexicalBindingLookup=function(e,t){varn=e,r=[];doif(c.has(n._scopeBindings,t)){vari=n._scopeBindings[t];returnfunction(){returni.get()}}while((!n.__startsNewLexicalScope||n.parentView&&n.parentView.__childDoesntStartNewLexicalScope)&&(n=n.parentView));returnnull},f._getTemplate=function(e,t){returneinf.Template&&f.Template[e]instanceoff.Template?f.Template[e]:null},f._getGlobalHelper=function(e,r){returnnull!=f._globalHelpers[e]?n(t(f._globalHelpers[e]),r):null},f.View.prototype.lookup=function(e,t){varn=this.template,r=t&&t.template,i,a,o,s;if(this.templateInstance&&(o=f._bind(this.templateInstance,this)),/^\./.test(e)){if(!/^(\.)+$/.test(e))thrownewError("id starting with dot must be a series of dots");returnf._parentData(e.length-1,!0)}returnn&&null!=(i=f._getTemplateHelper(n,e,o))?i:n&&null!=(a=f._lexicalBindingLookup(f.currentView,e))?a:r&&null!=(s=f._getTemplate(e,o))?s:null!=(i=f._getGlobalHelper(e,o))?i:function(){vart=arguments.length>0,n=f.getData(),i=n&&n[e];if(!i){if(r)thrownewError("No such template: "+e);if(t)thrownewError("No such function: "+e);if("@"===e.charAt(0)&&(null===i||void0===i))thrownewError("Unsupported directive: "+e)}if(!n)returnnull;if("function"!=typeofi){if(t)thrownewError("Can't call non-function: "+i);returni}returni.apply(n,arguments)}},f._parentData=function(e,t){null==e&&(e=1);for(varn=f.getView("with"),r=0;r<e&&n;r++)n=f.getView(n,"with");returnn?t?function(){returnn.dataVar.get()}:n.dataVar.get():null},f.View.prototype.lookupTemplate=function(e){returnthis.lookup(e,{template:!0})}}.call(this),function(){f.Template=function(e,n){if(!(thisinstanceoff.Template))returnnewf.Template(e,n);if("function"==typeofe&&(n=e,e=""),"string"!=typeofe)thrownewError("viewName must be a String (or omitted)");if("function"!=typeofn)thrownewError("renderFunction must be a function");this.viewName=e,this.renderFunction=n,this.__helpers=newt,this.__eventMaps=[],this._callbacks={created:[],rendered:[],destroyed:[]}};vare=f.Template,t=function(){};t.prototype.get=function(e){returnthis[" "+e]},t.prototype.set=function(e,t){this[" "+e]=t},t.prototype.has=function(e){return" "+einthis},f.isTemplate=function(e){returneinstanceoff.Template},e.prototype.onCreated=function(e){this._callbacks.created.push(e)},e.prototype.onRendered=function(e){this._callbacks.rendered.push(e)},e.prototype.onDestroyed=function(e){this._callbacks.destroyed.push(e)},e.prototype._getCallbacks=function(e){vart=this,n=t[e]?[t[e]]:[];returnn=n.concat(t._callbacks[e])};varn=function(t,n){e._withTemplateInstanceFunc(function(){returnn},function(){for(vare=0,r=t.length;e<r;e++)t[e].call(n)})};e.prototype.constructView=function(t,r){vari=this,a=f.View(i.viewName,i.renderFunction);a.template=i,a.templateContentBlock=t?newe("(contentBlock)",t):null,a.templateElseBlock=r?newe("(elseBlock)",r):null,(i.__eventMaps||"object"==typeofi.events)&&a._onViewRendered(function(){1===a.renderCount&&(i.__eventMaps.length||"object"!=typeofi.events||e.prototype.events.call(i,i.events),c.each(i.__eventMaps,function(e){f._addEventMap(a,e,a)}))}),a._templateInstance=newf.TemplateInstance(a),a.templateInstance=function(){vare=a._templateInstance;returne.data=f.getData(a),a._domrange&&!a.isDestroyed?(e.firstNode=a._domrange.firstNode(),e.lastNode=a._domrange.lastNode()):(e.firstNode=null,e.lastNode=null),e};varo=i._getCallbacks("created");a.onViewCreated(function(){n(o,a.templateInstance())});vars=i._getCallbacks("rendered");a.onViewReady(function(){n(s,a.templateInstance())});varl=i._getCallbacks("destroyed");returna.onViewDestroyed(function(){n(l,a.templateInstance())}),a},f.TemplateInstance=function(e){if(!(thisinstanceoff.TemplateInstance))returnnewf.TemplateInstance(e);if(!(einstanceoff.View))thrownewError("View required");e._templateInstance=this,this.view=e,this.data=null,this.firstNode=null
!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,o=Package.htmljs.HTML,c=Package.blaze.Blaze,l=Package.blaze.UI,f=Package.blaze.Handlebars,p;(function(){p={};vare=function(e,t){returne===t};p.include=function(t,n,r){if(!t)returnnull;if("function"!=typeoft){vara=t;if(!c.isTemplate(a))thrownewError("Expected template or null, found: "+a);varu=t.constructView(n,r);returnu.__startsNewLexicalScope=!0,u}vari=c.ReactiveVar(null,e),u=c.View("Spacebars.include",function(){vare=i.get();if(null===e)returnnull;if(!c.isTemplate(e))thrownewError("Expected template or null, found: "+e);returne.constructView(n,r)});returnu.__templateVar=i,u.onViewCreated(function(){this.autorun(function(){i.set(t())})}),u.__startsNewLexicalScope=!0,u},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),t.push(n)}returnp.call.apply(null,t)},p.mustache=function(e){vart=p.mustacheImpl.apply(null,arguments);returntinstanceofp.SafeString?o.Raw(t.toString()):null==t||t===!1?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&&o.isValidAttributeName(t)){varn={};returnn[t]="",n}thrownewError("Expected valid attribute name, '', null, or object")},p.dataMustache=function(e){vart=p.mustacheImpl.apply(null,arguments);returnt},p.makeRaw=function(e){returnnull==e?null:einstanceofo.Raw?e:o.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){returnthisinstanceofp.kw?void(this.hash=e||{}):newp.kw(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=newc.ReactiveVar,a=c.View("Spacebars_with",function(){returnc.If(function(){returnr.get()},function(){returnc.With(function(){returnr.get()},t)},n)});returna.onViewCreated(function(){this.autorun(function(){r.set(e()),u.onInvalidate(function(){r.dep.changed()})})}),a},p.TemplateWith=c._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={},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){return"undefined"==typeofe[t]?(e[t]=n,n):e[t]},i.utils.inherits=function(e,t,n){i.utils.assert("undefined"!=typeofe,"Child is undefined in inherits function"),i.utils.assert("undefined"!=typeoft,"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,e.apply(this,arguments)};returni.utils.inherits(n,e,t)},i.utils.global=function(){returne.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"),r=e.split("."),a=r.pop(),s=n;for(varc=0;c<r.length;c++)o=r[c],s=s[o]=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]],!r)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&&i.debug===!0){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,f=Package.htmljs.HTML,_=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;returnf.DIV({style:"margin: 0 auto; color: red;"},"\n ",a.View("lookup:msg",function(){return_.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},v.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){return1!==arguments.length?this._defaultTemplate:void(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();return"undefined"!=typeofn?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||(n=h[i(e)]),n||(n=a.With({msg:"Coul
!function(){var e=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(){var e=[];if(Package["cmather:iron-layout"]&&e.push("\n\nThecmather:iron-{x}packagesweremigratedtothenewpackagesystemwiththewrongname,andyouhaveduplicatecopies.\nYoucanseewhichcmather:iron-{x}packageshavebeeninstalledbyusingthiscommand:\n\n>meteorlist\n\nCanyouremoveanyinstalledcmather:iron-{x}packageslikethis:\n\n>meteorremovecmather:iron-core\n>meteorremovecmather:iron-router\n>meteorremovecmather:iron-dynamic-template\n>meteorremovecmather:iron-dynamic-layout\n\nThenewpackagesarenamediron:{x}.Forexample:\n\n>meteoraddiron:router\n\nSorryforthehassle,butthankyou!\n\n"),Package["cmather:blaze-layout"]&&e.push("Theblaze-layoutpackagehasbeenreplacedbyiron-layout.Pleaseremovethepackagelikethis:\n>meteorremovecmather:blaze-layout\n"),e.length>0)throw new Error("Sorry!Lookslikethere's a few errors related to iron:layout\n\n"+e.join("\n\n"))}).call(this),function(){r.__checkName("__IronDefaultLayout__"),r.__IronDefaultLayout__=new r("Template.__IronDefaultLayout__",function(){var e=this;return g.include(e.lookupTemplate("yield"))})}.call(this),function(){var e=h.DynamicTemplate,n=h.utils.inherits;d=function(e){for(;e;){if("Iron.Layout"===e.name)return e.__dynamicTemplate__;e=e.parentView}return null},p=function(e){var n=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)},m=p.DEFAULT_REGION="main",n(p,h.DynamicTemplate),p.prototype.region=function(e,n){return this._ensureRegion(e,n)},p.prototype.destroyRegions=function(){s.each(this._regions,function(e){e.destroy()}),this._regions={}},p.prototype.render=function(e,n){n=n||{};var t=n.to||n.region||m,r=this.region(t);this._trackRenderedRegion(t),r.template(e),r.data(n.data)},p.prototype.has=function(e){return e=e||p.DEFAULT_REGION,!!this._regions[e]},p.prototype.regionKeys=function(){return s.keys(this._regions)},p.prototype.clear=function(e){return e=e||p.DEFAULT_REGION,this.has(e)&&this.region(e).template(null),this},p.prototype.clearAll=function(){return s.each(this._regions,function(e){e.template(null)}),this},p.prototype.beginRendering=function(e){var n=this;if(this._finishRenderingTransaction&&this._finishRenderingTransaction(),this._finishRenderingTransaction=s.once(function(){var t=n._endRendering({flush:!1});e&&e(t)}),u.afterFlush(this._finishRenderingTransaction),this._renderedRegions)throw new Error("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){e=e||{},e.flush!==!1&&u.flush();var n=this._renderedRegions||{};return this._renderedRegions=null,s.keys(n)},s.each(["onRegionCreated","onRegionRendered","onRegionDestroyed"],function(e){p.prototype[e]=function(n){var t=this._regionHooks[e]=this._regionHooks[e]||[];return t.push(n),this}}),p.prototype._ensureRegion=function(e,n){return this._regions[e]=this._regions[e]||this._createDynamicTemplate(e,n)},p.prototype._createDynamicTemplate=function(e,n){var t=this,r=new h.DynamicTemplate(n),o=h.utils.capitalize;return r._region=e,s.each(["viewCreated","viewReady","viewDestroyed"],function(e){e=o(e),r["on"+e](function(n){var r=this,o={viewCreated:"regionCreated",viewReady:"regionRendered",viewDestroyed:"regionDestroyed"}[e];t._runRegionHooks("on"+o,r,n)})}),r},p.prototype._runRegionHooks=function(e,n,t){for(var r=this,o=this._regionHooks[e]||[],i,a=0;a<o.length;a++)i=o[a],i.call(n,t.region,t,this)},"un
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,a=Package.meteor.meteorEnv,n=Package.underscore._,o=Package.modules.meteorInstall,r=Package.modules.Buffer,s=Package.modules.process,c=Package["ecmascript-runtime"].Symbol,u=Package["ecmascript-runtime"].Map,m=Package["ecmascript-runtime"].Set,i=Package["babel-runtime"].meteorBabelHelpers,l=Package.promise.Promise,p,d=o({node_modules:{meteor:{webapp:{"webapp_client.js":function(){p={_isCssLoaded:function(){function e(){return 0===document.styleSheets.length||n.find(document.styleSheets,function(e){return e.cssText&&!e.cssRules?!e.cssText.match(/meteor-css-not-found-error/):!n.find(e.cssRules,function(e){return".meteor-css-not-found-error"===e.selectorText})})}return e}()}}}}}},{extensions:[".js",".json"]});d("./node_modules/meteor/webapp/webapp_client.js"),"undefined"==typeof Package&&(Package={}),function(e,t){for(var a in t)a in e||(e[a]=t[a])}(Package.webapp={},{WebApp:p})}();
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i=Package.ejson.EJSON,a=Package.modules.meteorInstall,f=Package.modules.Buffer,o=Package.modules.process,c,l,s=a({node_modules:{meteor:{logging:{"logging.js":["cli-color",function(t){c=function(){return c.info.apply(this,arguments)};var n=0,a=[],f=0;c._intercept=function(e){n+=e},c._suppress=function(e){f+=e},c._intercepted=function(){var e=a;return a=[],n=0,e},c.outputFormat="json";var o={debug:"green",warn:"magenta",error:"red"},l="blue",s=["time","timeInexact","level","file","line","program","originApp","satellite","stderr"],u=s.concat(["app","message"]),d=function(t){var n=c.format(t),r=t.level;"undefined"!=typeof console&&console[r]?console[r](n):e._debug(n)};c._getCallerDetails=function(){var e=function(){var e=new Error,t=e.stack;return t},t=e();if(!t)return{};for(var n=t.split("\n"),r,i=1;i<n.length;++i){if(r=n[i],r.match(/^\s*at eval \(eval/))return{file:"eval"};if(!r.match(/packages\/(?:local-test[:_])?logging(?:\/|\.js)/))break}var a={},f=/(?:[@(]| at )([^(]+?):([0-9:]+)(?:\)|$)/.exec(r);return f?(a.line=f[2].split(":")[0],a.file=f[1].split("/").slice(-1)[0].split("?")[0],a):a},r.each(["debug","info","warn","error"],function(t){c[t]=function(o){if(f)return void f--;var l=!1;n&&(n--,l=!0);var u=!r.isObject(o)||r.isRegExp(o)||r.isDate(o)?{message:new String(o).toString()}:o;if(r.each(s,function(e){if(u[e])throw new Error("Can't set '"+e+"' in log message")}),r.has(u,"message")&&!r.isString(u.message))throw new Error("The 'message' field in log objects must be a string");if(u.omitCallerDetails||(u=r.extend(c._getCallerDetails(),u)),u.time=new Date,u.level=t,"debug"!==t)if(l)a.push(i.stringify(u));else if(e.isServer)if("colored-text"===c.outputFormat)console.log(c.format(u,{color:!0}));else{if("json"!==c.outputFormat)throw new Error("Unknown logging output format: "+c.outputFormat);console.log(i.stringify(u))}else d(u)}}),c.parse=function(e){var t=null;if(e&&"{"===e.charAt(0))try{t=i.parse(e)}catch(e){}return t&&t.time&&t.time instanceof Date?t:null},c.format=function(n,a){n=i.clone(n),a=a||{};var f=n.time;if(!(f instanceof Date))throw new Error("'time' must be a Date object");var c=n.timeInexact,s=n.level||"info",d=n.file,p=n.line,b=n.app||"",m=n.originApp,h=n.message||"",v=n.program||"",g=n.satellite,x=n.stderr||"";r.each(u,function(e){delete n[e]}),r.isEmpty(n)||(h&&(h+=" "),h+=i.stringify(n));var y=function(e){return e<10?"0"+e:e.toString()},j=function(e){return e<100?"0"+y(e):e.toString()},O=f.getFullYear().toString()+y(f.getMonth()+1)+y(f.getDate()),_=y(f.getHours())+":"+y(f.getMinutes())+":"+y(f.getSeconds())+"."+j(f.getMilliseconds()),w="("+-((new Date).getTimezoneOffset()/60)+")",A="";b&&(A+=b),m&&m!==b&&(A+=" via "+m),A&&(A="["+A+"] ");var N=[];v&&N.push(v),d&&N.push(d),p&&N.push(p);var S=r.isEmpty(N)?"":"("+N.join(":")+") ";g&&(S+=["[",g,"]"].join(""));var P=x?"(STDERR) ":"",z=[s.charAt(0).toUpperCase(),O,"-",_,w,c?"? ":" ",A,S,P].join(""),k=function(n,r){return a.color&&e.isServer&&r?t("cli-color")[r](n):n};return k(z,a.metaColor||l)+k(h,o[s])},c.objFromText=function(e,t){var n={message:e,level:"info",time:new Date,timeInexact:!0};return r.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":["es5-ext/lib/Object/descriptor","es5-ext/lib/Object/extend","es5-ext/lib/Object/map","es5-ext/lib/Object/reduce","es5-ext/lib/String/prototype/repeat","memoizee","tty","./_xterm-match",function(e,t,n){"use strict";var r=e("es5-ext/lib/Object/descriptor"),i=e("es5-ext/lib/Object/extend"),a=e("es5-ext/lib/Object/map"),f=e("es5-ext/lib/Object/reduce"),c=e("es5-ext/lib/String/prototype/repeat"),l=e("memoizee"),s=e("tty"),u=Array.prototype.join,d=Object.defineProperty,p=Object.defineProperties,b=Math.abs,m=Math.floor,h=Math.max,v=Math.min,g,x,y,j,O,_,w,A,N,S,P;g=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
!function(){var e=Package.meteor.Meteor,a=Package.meteor.global,c=Package.meteor.meteorEnv,n=Package.underscore._,o=Package["reactive-dict"].ReactiveDict,i=Package.ejson.EJSON,t;(function(){t=new o("session")}).call(this),"undefined"==typeof Package&&(Package={}),function(e,a){for(var c in a)c in e||(e[c]=a[c])}(Package.session={},{Session:t})}();
!function(){var a=Package["ddp-client"].DDP,e;"undefined"==typeof Package&&(Package={}),function(a,e){for(var n in e)n in a||(a[n]=e[n])}(Package.livedata={},{DDP:a,LivedataTest:e})}();
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,a=Package.meteor.meteorEnv,r;(function(){var n=0,a=!1;r={hold:function(){if(!e.isCordova)return{release:function(){}};if(a)throw new Error("Can'tshowlaunchscreenonceit's hidden");n++;var r=!1,o=function(){e.isCordova&&(r||(r=!0,n--,0===n&&"undefined"!=typeof navigator&&navigator.splashscreen&&(a=!0,navigator.splashscreen.hide())))};return{release:o}}}}).call(this),function(){var n=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"==typeof Package&&(Package={}),function(e,n){for(var a in n)a in e||(e[a]=n[a])}(Package["launch-screen"]={},{LaunchScreen:r})}();
for(rinb.sanitizeForInObject(i))i.hasOwnProperty(r)&&i[r].clear(t);return!0}if(o.children.hasOwnProperty(r))returno.children[r].clear(t),!0}}return!1}returne}(),e.prototype.probePath=function(){functione(e,t){if(e=this.getPathComponents(e),null!==e){varn=e.length-1,o=this.getNodeUpToIndex(e,n);if(null!==o){varr=e[n];if(r===c){vari=o.children,a=0;for(rinb.sanitizeForInObject(i))i.hasOwnProperty(r)&&(a+=i[r].probe(t));returna}if(o.children.hasOwnProperty(r))returno.children[r].probe(t)}}return0}returne}(),e.prototype.attachHandler=function(){functione(e,t){varn=!1;if(("undefined"==typeofe?"undefined":o(e))===l&&("undefined"==typeoft?"undefined":o(t))===u){for(varr=this.handlers,i=r.hasOwnProperty(e)?r[e]:r[e]=[],a=i.length,s=!0,c=0;c<a;++c)if(t===i[c]){s=!1;break}s&&(i[a]=t,n=!0)}returnn}returne}(),e.prototype.removeHandler=function(){functione(e,t){varn=!1;if(("undefined"==typeofe?"undefined":o(e))===l&&("undefined"==typeoft?"undefined":o(t))===u){varr=this.handlers;if(r.hasOwnProperty(e))for(vari=r[e],a=i.length,s=0;s<a;++s)if(t===i[s]){i.splice(s,1),n=!0;break}}returnn}returne}(),e.prototype.trigger=function(){functione(e,t){if(("undefined"==typeofe?"undefined":o(e))===l){varn=this.handlers;if(n.hasOwnProperty(e))for(varr=n[e],i=r.length,a=0;a<i;++a)r[a].call(null);if(t!==!0){varu=this.children;for(varsinb.sanitizeForInObject(u))u.hasOwnProperty(s)&&u[s].trigger(e)}}}returne}(),e.prototype.attachHandlerForPath=function(){functione(e,t,n){if(e=this.getPathComponents(e),null!==e){varo=this.getNodeUpToIndex(e,e.length);if(null!==o)returno.attachHandler(t,n)}return!1}returne}(),e.prototype.removeHandlerForPath=function(){functione(e,t,n){if(e=this.getPathComponents(e),null!==e){varo=this.getNodeUpToIndex(e,e.length);if(null!==o)returno.removeHandler(t,n)}return!1}returne}(),e.prototype.triggerHandlersForPath=function(){functione(e,t,n){if(e=this.getPathComponents(e),null!==e){varo=this.getNodeUpToIndex(e,e.length);null!==o&&o.trigger(t,n)}}returne}(),e}(),d=newm,f={rootNode:d,set:function(){functione(e){returnd.appendPath(e,1)}returne}(),clear:function(){functione(e,t){returnd.clearPath(e,("undefined"==typeoft?"undefined":o(t))===s||t)}returne}(),probe:function(){functione(e,t){returnd.probePath(e,("undefined"==typeoft?"undefined":o(t))===s||t)}returne}(),attachHandler:function(){functione(e,t,n){returnd.appendPath(e,0)&&d.attachHandlerForPath(e,t,n)}returne}(),removeHandler:function(){functione(e,t,n){returnd.removeHandlerForPath(e,t,n)}returne}(),trigger:function(){functione(e,t,n){d.triggerHandlersForPath(e,t,n)}returne}(),checkBeforeAction:function(){functione(e,t,n){varo=void0,r=void0,u=void0;if("function"==typeoft)if(o=this.probe(e),o>0){r=!0;varl=a.extend({title:"You have unsaved changes!",message:"Your changes will be lost if you don't save them before leaving the current page... Are you sure you want to proceed?"},n);i.ui.showDialog("dialogConfirm",l).then(function(){u=!0,t.call(null,u,r)},function(){u=!1,t.call(null,u,r)})}elser=!1,u=!0,t.call(null,u,r)}returne}(),presentProactiveDialog:function(){functione(e,t,n){varo=void0,r=void0;"function"==typeoft&&(o=this.probe(e,!0),o>0?(r=!0,i.ui.unsavedChangesDialog(function(e){t.call(null,r,e)},n)):(r=!1,t.call(null,r,null)))}returne}()};i.ui.unsavedChanges=f}]}}},both:{"index.js":["./utils","./schema.js",function(e,t,n){n.import("./utils"),n.import("./schema.js")}],"schema.js":["meteor/aldeed:simple-schema",function(e,t,n){varo;n.import("meteor/aldeed:simple-schema",{SimpleSchema:function(e){o=e}}),o.extendOptions({valuesLabels:$.Optional([String]),textOptional:$.Optional(Boolean)}),o.addValidator(function(){if(this.definition.optional!==!0&&this.definition.textOptional!==!0&&""===this.value)return"required"}),o.messages({maxCount:"[label] can not have more than [maxCount] values",minCount:"[label] must have at least [minCount] values",notAllowed:'[label] has an invalid value: "[value]"'})}],utils:{"absoluteUrl.js":["meteor/ohif:core",function(t,n,o){varr;o.import("meteor/ohif:core",{
e.setTransform(1,0,0,1,0,0),e.save(),e.beginPath(),e.strokeStyle=p,e.lineWidth=v,e.moveTo(h.x,h.y),e.lineTo(g.x,g.y),e.stroke(),e.restore()}}}}}n.referenceLines.renderActiveReferenceLine=o}(o,m,g),function(e,t){"use strict";functionn(){functionn(t,n,a,r,s,l){if(!o.hasOwnProperty(a))throw"Request type must be one of interaction, thumbnail, or prefetch";if(t&&n){varu={type:a,imageId:n,preventCache:r,doneCallback:s,failCallback:l},c=e.imageCache.getImagePromise(n);if(c)returnvoidc.then(function(e){s(e)},function(e){l(e)});o[a].push(u),"interaction"===a&&(i=t)}}functionu(e){if(!o.hasOwnProperty(e))throw"Request type must be one of interaction, thumbnail, or prefetch";o[e]=[]}functionc(){s&&setTimeout(function(){f()},l)}functiond(t){functionn(e){return"prefetch"===e.type?-5:"interactive"===e.type?0:"thumbnail"===e.type?5:void0}varo=t.type;a[o]++,s=!0;varr=t.imageId,i=t.doneCallback,l=t.failCallback,u=e.imageCache.getImagePromise(r);if(u)returnvoidu.then(function(e){a[o]--,i(e),c()},function(e){a[o]--,l(e),c()});vard=n(t),f;f=t.preventCache===!0?e.loadImage(r,{priority:d,type:t.type}):e.loadAndCacheImage(r,{priority:d,type:t.type}),f.then(function(e){a[o]--,i(e),c()},function(e){a[o]--,l(e),c()})}functionf(){vare=t.getMaxSimultaneousRequests();r={interaction:Math.max(e,1),thumbnail:Math.max(e-2,1),prefetch:Math.max(e-1,1)};for(varn=a.interaction+a.thumbnail+a.prefetch,o=e-n,i=0;i<o;i++){vars=m();s&&d(s)}}functionm(){returno.interaction.length&&a.interaction<r.interaction?o.interaction.shift():o.thumbnail.length&&a.thumbnail<r.thumbnail?o.thumbnail.shift():o.prefetch.length&&a.prefetch<r.prefetch?o.prefetch.shift():(o.interaction.length||o.thumbnail.length||o.prefetch.length||(s=!1),!1)}functionh(){returno}varg={addRequest:n,clearRequestStack:u,startGrabbing:f,getRequestPool:h};returng}varo={interaction:[],thumbnail:[],prefetch:[]},a={interaction:0,thumbnail:0,prefetch:0},r={interaction:6,thumbnail:6,prefetch:5},i,s=!1,l=20;t.requestPoolManager=n()}(m,g),function(e,t,n){"use strict";functiono(o,a){if(void0===o)throw"playClip: element must not be undefined";vari=n.getToolState(o,"stack");if(i&&i.data&&i.data.length){vars=i.data[0],l=n.getToolState(o,r),u;l&&l.data&&l.data.length?u=l.data[0]:(u={intervalId:void0,framesPerSecond:30,lastFrameTimeStamp:void0,frameRate:0,loop:!0},n.addToolState(o,r,u)),a&&(u.framesPerSecond=a),void0===u.intervalId&&(u.intervalId=setInterval(function(){vara=s.currentImageIdIndex;if(u.framesPerSecond>0?a++:a--,!u.loop&&(a>=s.imageIds.length||a<0)){varr={element:o},i=e.Event("CornerstoneToolsClipStopped",r);returne(o).trigger(i,r),clearInterval(u.intervalId),void(u.intervalId=void0)}if(a>=s.imageIds.length&&(a=0),a<0&&(a=s.imageIds.length-1),a!==s.currentImageIdIndex){varl=n.loadHandlerManager.getStartLoadHandler(),c=n.loadHandlerManager.getEndLoadHandler(),d=n.loadHandlerManager.getErrorLoadingHandler();l&&l(o);varf=t.getViewport(o),m;m=s.preventCache===!0?t.loadImage(s.imageIds[a]):t.loadAndCacheImage(s.imageIds[a]),m.then(function(e){s.currentImageIdIndex=a,t.displayImage(o,e,f),c&&c(o,e)},function(e){vart=s.imageIds[a];d&&d(o,t,e)})}},1e3/Math.abs(u.framesPerSecond)))}}functiona(e){vart=n.getToolState(e,r);if(t&&t.data&&t.data.length){varo=t.data[0];clearInterval(o.intervalId),o.intervalId=void0}}varr="playClip";n.playClip=o,n.stopClip=a}(o,m,g),function(e,t,n){"use strict";functiono(e,t){varo=t.element,r=t.enabledElement.canvas.width,i=t.enabledElement.canvas.height;if(!r||!i)return!1;vars=t.enabledElement.canvas.getContext("2d");s.setTransform(1,0,0,1,0,0),s.save();varl=n.scrollIndicator.getConfiguration();s.fillStyle=l.backgroundColor,s.fillRect(0,i-a,r,a);varu=n.getToolState(o,"stack");if(u&&u.data&&u.data.length){varc=u.data[0].imageIds,d=u.data[0].currentImageIdIndex,f=r/c.length,m=f*d;s.fillStyle=l.fillColor,s.fillRect(m,i-a,f,a),s.restore()}}vara=6,r={backgroundColor:"rgb(19, 63, 141)",fillColor:"white"};n.scrollIndicator=n.displayTool(o),n.scrollIndicator.setConfiguration(r)}(o,m,g),function(e,t,n){"use strict";functiono(e,t){returne-t}
}(g),function(e,t,n){"use strict";functiono(e,t){varn=Math.pow(10,t);returnMath.round(e*n)/n}n.roundToDecimal=o}(o,m,g),function(e,t){"use strict";functionn(e,n){varo=t.getToolState(e,"stack");if(void0!==o&&void0!==o.data&&0!==o.data.length){vara=o.data[0],r=a.currentImageIdIndex+n;r=Math.min(a.imageIds.length-1,r),r=Math.max(0,r),t.scrollToIndex(e,r)}}t.scroll=n}(m,g),function(e,t){"use strict";functionn(n,a){functionr(t){if(l.currentImageIdIndex===a){try{e.getEnabledElement(n)}catch(e){return}e.displayImage(n,t,f),c&&c(n,t)}}functioni(e){vart=l.imageIds[a];d&&d(n,t,e)}vars=t.getToolState(n,"stack");if(s&&s.data&&s.data.length){varl=s.data[0];a<0&&(a+=l.imageIds.length);varu=t.loadHandlerManager.getStartLoadHandler(),c=t.loadHandlerManager.getEndLoadHandler(),d=t.loadHandlerManager.getErrorLoadingHandler(),f=e.getViewport(n);if(a!==l.currentImageIdIndex){u&&u(n);varm={newImageIdIndex:a,direction:a-l.currentImageIdIndex};l.currentImageIdIndex=a;varh=l.imageIds[a],g=t.stackScroll.getConfiguration();if(g&&g.retryLoadOnScroll===!0){varp=e.imageCache.getImagePromise(h);p&&"rejected"===p.state()&&e.imageCache.removeImagePromise(h)}varv=!!l.preventCache,y;y=v?e.loadImage(h):e.loadAndCacheImage(h),y.then(r,i),t.requestPoolManager.startGrabbing(),o(n).trigger("CornerstoneStackScroll",m)}}}t.scrollToIndex=n,t.loadHandlers={}}(m,g),function(e,t){"use strict";functionn(t,n,o){vara=.1;e.setToPixelCoordinateSystem(t,n,a);varr=o/t.viewport.scale/a,i=o/t.viewport.scale/a;return{fontSize:r,lineHeight:i,fontScale:a}}t.setContextToDisplayFontSize=n}(m,g),"undefined"==typeofm&&(m={}),"undefined"==typeofp&&(p={wadouri:{},wadors:{},internal:{options:{beforeSend:function(e){},imageCreated:function(e){}}}}),function(e,t,n){"use strict";functiono(e){e.decache=function(){vart=n.wadouri.parseImageId(e.imageId);n.wadouri.dataSetCacheManager.unload(t.url)}}functiona(e,t){varo=e.elements.x7fe00010;returno.encapsulatedPixelData?n.wadouri.getEncapsulatedImageFrame(e,t):n.wadouri.getUncompressedImageFrame(e,t)}functionr(t,r,i,s,l){varu=(newDate).getTime();i=i||0;varc=e.Deferred();returnt.then(function(e){vart=a(e,i),s=e.string("x00020010"),d=(newDate).getTime(),f=n.createImage(r,t,s,l);f.then(function(t){t.data=e;varn=(newDate).getTime();t.loadTimeInMS=d-u,t.totalTimeInMS=n-u,o(t),c.resolve(t)})},function(e){c.reject(e)}),c.promise()}functioni(e){return"dicomweb"===e||"wadouri"===e?n.internal.xhrRequest:"dicomfile"===e?n.wadouri.loadFileRequest:void0}functions(e,t){varo=n.wadouri.parseImageId(e),a=i(o.scheme);returnn.wadouri.dataSetCacheManager.isLoaded(o.url)?r(n.wadouri.dataSetCacheManager.load(o.url,a,e),e,o.frame,o.url,t):r(n.wadouri.dataSetCacheManager.load(o.url,a,e),e,o.frame,o.url,t)}t.registerImageLoader("dicomweb",s),t.registerImageLoader("wadouri",s),t.registerImageLoader("dicomfile",s)}(o,m,p),function(e){"use strict";functiont(e,t){varn=e.columns*e.rows,o=0,a=0,r=e.pixelData,i=e.redPaletteColorLookupTableDescriptor[1],s=e.redPaletteColorLookupTableData,l=e.greenPaletteColorLookupTableData,u=e.bluePaletteColorLookupTableData,c=8===e.redPaletteColorLookupTableDescriptor[2]?0:8,d=e.redPaletteColorLookupTableData.length;0===d&&(d=65535);for(varf=0;f<n;++f){varm=r[o++];m<i?m=0:m>i+d-1?m=d-1:m-=i,t[a++]=s[m]>>c,t[a++]=l[m]>>c,t[a++]=u[m]>>c,t[a++]=255}}e.convertPALETTECOLOR=t}(p),function(e){"use strict";functiont(e,t){if(void0===e)throw"decodeRGB: rgbBuffer must not be undefined";if(e.length%3!==0)throw"decodeRGB: rgbBuffer length must be divisible by 3";for(varn=e.length/3,o=0,a=0,r=0;r<n;r++)t[a++]=e[o++],t[a++]=e[o++],t[a++]=e[o++],t[a++]=255}e.convertRGBColorByPixel=t}(p),function(e){"use strict";functiont(e,t){if(void0===e)throw"decodeRGB: rgbBuffer must not be undefined";if(e.length%3!==0)throw"decodeRGB: rgbBuffer length must be divisible by 3";for(varn=e.length/3,o=0,a=0,r=n,i=2*n,s=0;s<n;s++)t[o++]=e[a++],t[o++]=e[r++],t[o++]=e[i++],t[o++]=255}e.convertRGBColorByPlane=t}(p),function(e){"use strict";functiont(e,t){if(void0===e)throw"decodeRGB: ybrBuffer must not be undefined";if(e.
if(e&&8===e.length){varo=parseInt(e.substring(0,4),10),a=parseInt(e.substring(4,6),10),r=parseInt(e.substring(6,8),10);if(t&&n(r,a,o)!==!0)throw"invalid DA '"+e+"'";return{year:o,month:a,day:r}}if(t)throw"invalid DA '"+e+"'"},e}(e),e=function(e){"use strict";returnvoid0===e&&(e={}),e.parseTM=function(e,t){if(e.length>=2){varn=parseInt(e.substring(0,2),10),o=e.length>=4?parseInt(e.substring(2,4),10):void0,a=e.length>=6?parseInt(e.substring(4,6),10):void0,r=e.length>=8?parseInt(e.substring(7,13),10):void0;if(t&&(isNaN(n)||void0!==o&&isNaN(o)||void0!==a&&isNaN(a)||void0!==r&&isNaN(r)||n<0||n>23||o&&(o<0||o>59)||a&&(a<0||a>59)||r&&(r<0||r>999999)))throw"invalid TM '"+e+"'";return{hours:n,minutes:o,seconds:a,fractionalSeconds:r}}if(t)throw"invalid TM '"+e+"'"},e}(e),e=function(e){"use strict";void0===e&&(e={});vart={AE:!0,AS:!0,AT:!1,CS:!0,DA:!0,DS:!0,DT:!0,FL:!1,FD:!1,IS:!0,LO:!0,LT:!0,OB:!1,OD:!1,OF:!1,OW:!1,PN:!0,SH:!0,SL:!1,SQ:!1,SS:!1,ST:!0,TM:!0,UI:!0,UL:!1,UN:void0,UR:!0,US:!1,UT:!0};returne.isStringVr=function(e){returnt[e]},e.isPrivateTag=function(e){vart=parseInt(e[4]),n=t%2===1;returnn},e.parsePN=function(e){if(void0!==e){vart=e.split("^");return{familyName:t[0],givenName:t[1],middleName:t[2],prefix:t[3],suffix:t[4]}}},e}(e),e=function(e){"use strict";void0===e&&(e={});vart=!1;returne.readEncapsulatedPixelData=function(n,o,a){if(t||(t=!0,console&&console.log&&console.log("WARNING: dicomParser.readEncapsulatedPixelData() has been deprecated")),void0===n)throw"dicomParser.readEncapsulatedPixelData: missing required parameter 'dataSet'";if(void0===o)throw"dicomParser.readEncapsulatedPixelData: missing required parameter 'element'";if(void0===a)throw"dicomParser.readEncapsulatedPixelData: missing required parameter 'frame'";if("x7fe00010"!==o.tag)throw"dicomParser.readEncapsulatedPixelData: parameter 'element' refers to non pixel data tag (expected tag = x7fe00010'";if(o.encapsulatedPixelData!==!0)throw"dicomParser.readEncapsulatedPixelData: parameter 'element' refers to pixel data element that does not have encapsulated pixel data";if(o.hadUndefinedLength!==!0)throw"dicomParser.readEncapsulatedPixelData: parameter 'element' refers to pixel data element that does not have encapsulated pixel data";if(void0===o.basicOffsetTable)throw"dicomParser.readEncapsulatedPixelData: parameter 'element' refers to pixel data element that does not have encapsulated pixel data";if(void0===o.fragments)throw"dicomParser.readEncapsulatedPixelData: parameter 'element' refers to pixel data element that does not have encapsulated pixel data";if(a<0)throw"dicomParser.readEncapsulatedPixelData: parameter 'frame' must be >= 0";return0!==o.basicOffsetTable.length?e.readEncapsulatedImageFrame(n,o,a):e.readEncapsulatedPixelDataFromFragments(n,o,0,o.fragments.length)},e}(e),e=function(e){"use strict";returnvoid0===e&&(e={}),e.alloc=function(e,t){if("undefined"!=typeofi&&einstanceofi)returni.alloc(t);if(einstanceofUint8Array)returnnewUint8Array(t);throw"dicomParser.alloc: unknown type for byteArray"},e}(e),e=function(e){"use strict";returnvoid0===e&&(e={}),e.bigEndianByteArrayParser={readUint16:function(e,t){if(t<0)throw"bigEndianByteArrayParser.readUint16: position cannot be less than 0";if(t+2>e.length)throw"bigEndianByteArrayParser.readUint16: attempt to read past end of buffer";return(e[t]<<8)+e[t+1]},readInt16:function(e,t){if(t<0)throw"bigEndianByteArrayParser.readInt16: position cannot be less than 0";if(t+2>e.length)throw"bigEndianByteArrayParser.readInt16: attempt to read past end of buffer";varn=(e[t]<<8)+e[t+1];return32768&n&&(n=n-65535-1),n},readUint32:function(e,t){if(t<0)throw"bigEndianByteArrayParser.readUint32: position cannot be less than 0";if(t+4>e.length)throw"bigEndianByteArrayParser.readUint32: attempt to read past end of buffer";varn=256*(256*(256*e[t]+e[t+1])+e[t+2])+e[t+3];returnn},readInt32:function(e,t){if(t<0)throw"bigEndianByteArrayParser.readInt32: position cannot be less than 0";if(t+4>e.length)throw"bigEndianByteArrayParser.readInt32: attempt to read past end of buffer";var
Ne="function"!=typeofObject.assign?functione(t){if(t===o||null===t)thrownewTypeError("Cannot convert undefined or null to object");for(varn=Object(t),a=1;a<arguments.length;a++){varr=arguments[a];if(r!==o&&null!==r)for(variinr)r.hasOwnProperty(i)&&(n[i]=r[i])}returnn}:Object.assign;varWe=Ne,qe=1,_e="function"==typeofl&&"symbol"==typeofl.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofl&&e.constructor===l&&e!==l.prototype?"symbol":typeofe},Ye=function(){functione(e){this.value=e}functiont(t){functionn(e,t){returnnewf(function(n,o){varr={key:e,arg:t,resolve:n,reject:o,next:null};s?s=s.next=r:(i=s=r,a(e,t))})}functiona(n,o){try{vari=t[n](o),s=i.value;sinstanceofe?f.resolve(s.value).then(function(e){a("next",e)},function(e){a("throw",e)}):r(i.done?"return":"normal",i.value)}catch(e){r("throw",e)}}functionr(e,t){switch(e){case"return":i.resolve({value:t,done:!0});break;case"throw":i.reject(t);break;default:i.resolve({value:t,done:!1})}i=i.next,i?a(i.key,i.arg):s=null}vari,s;this._invoke=n,"function"!=typeoft.return&&(this.return=o)}return"function"==typeofl&&l.asyncIterator&&(t.prototype[l.asyncIterator]=function(){returnthis}),t.prototype.next=function(e){returnthis._invoke("next",e)},t.prototype.throw=function(e){returnthis._invoke("throw",e)},t.prototype.return=function(e){returnthis._invoke("return",e)},{wrap:function(e){returnfunction(){returnnewt(e.apply(this,arguments))}},await:function(t){returnnewe(t)}}}(),je=function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")},Xe=function(){functione(e,t){for(varn=0;n<t.length;n++){varo=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"ino&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}returnfunction(t,n,o){returnn&&e(t.prototype,n),o&&e(t,o),t}}(),Ge=functione(t,n,a){null===t&&(t=Function.prototype);varr=Object.getOwnPropertyDescriptor(t,n);if(r===o){vari=Object.getPrototypeOf(t);returnnull===i?o:e(i,n,a)}if("value"inr)returnr.value;vars=r.get;returns===o?o:s.call(a)},Ke=function(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Je=function(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeoft&&"function"!=typeoft?e:t},Qe=function(){functione(e,t){varn=[],a=!0,r=!1,i=o;try{for(vars=e[l.iterator](),u;!(a=(u=s.next()).done)&&(n.push(u.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{!a&&s.return&&s.return()}finally{if(r)throwi}}returnn}returnfunction(t,n){if(Array.isArray(t))returnt;if(l.iteratorinObject(t))returne(t,n);thrownewTypeError("Invalid attempt to destructure non-iterable instance")}}(),Ze=function(){functione(t){je(this,e),this.options=We({},this.defaults,t||{}),this.id=s(),this.manager=null,this.options.enable=a(this.options.enable,!0),this.state=Re,this.simultaneous={},this.requireFail=[]}returnXe(e,[{key:"set",value:functione(t){returnWe(this.options,t),this.manager&&this.manager.touchAction.update(),this}},{key:"recognizeWith",value:functione(t){if(c(t,"recognizeWith",this))returnthis;varn=this.simultaneous;returnt=h(t,this),n[t.id]||(n[t.id]=t,t.recognizeWith(this)),this}},{key:"dropRecognizeWith",value:functione(t){returnc(t,"dropRecognizeWith",this)?this:(t=h(t,this),deletethis.simultaneous[t.id],this)}},{key:"requireFailure",value:functione(t){if(c(t,"requireFailure",this))returnthis;varn=this.requireFail;returnt=h(t,this),d(n,t)===-1&&(n.push(t),t.requireFailure(this)),this}},{key:"dropRequireFailure",value:functione(t){if(c(t,"dropRequireFailure",this))returnthis;t=h(t,this);varn=d(this.requireFail,t);returnn>-1&&this.requireFail.splice(n,1),this}},{key:"hasRequireFailures",value:functione(){returnthis.requireFail.length>0}},{key:"canRecognizeWith",value:functio
!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.modules.Buffer,s=Package.modules.process,i=Package["ecmascript-runtime"].Symbol,l=Package["ecmascript-runtime"].Map,p=Package["ecmascript-runtime"].Set,u=Package["babel-runtime"].meteorBabelHelpers,f=Package.promise.Promise,d,m,h,g=o({node_modules:{meteor:{http:{"httpcall_common.js":function(){functione(e,t){returne.length>t?e.slice(0,t)+"...":e}vart=500;d=functionn(a,r){varo="failed ["+a+"]";if(r){varc="string"==typeofr?r:r.toString();o+=" "+e(c.replace(/\n/g," "),t)}returnnewError(o)},m=functione(t){varn=(t.headers["content-type"]||";").split(";")[0];if(a.include(["application/json","text/javascript","application/javascript","application/x-javascript"],n))try{t.data=JSON.parse(t.content)}catch(e){t.data=null}elset.data=null},h={},h.get=function(){returnh.call.apply(this,["GET"].concat(a.toArray(arguments)))},h.post=function(){returnh.call.apply(this,["POST"].concat(a.toArray(arguments)))},h.put=function(){returnh.call.apply(this,["PUT"].concat(a.toArray(arguments)))},h.del=function(){returnh.call.apply(this,["DELETE"].concat(a.toArray(arguments)))},h.patch=function(){returnh.call.apply(this,["PATCH"].concat(a.toArray(arguments)))}},"httpcall_client.js":function(t,n,o){h.call=function(t,n,o,c){if(c||"function"!=typeofo||(c=o,o=null),o=o||{},"function"!=typeofc)thrownewError("Can't make a blocking HTTP call from the client; callback required.");t=(t||"").toUpperCase();vars={},i=o.content;o.data&&(i=JSON.stringify(o.data),s["Content-Type"]="application/json");varl,p;if(i||"GET"===t||"HEAD"===t?l=o.params:p=o.params,n=r._constructUrl(n,o.query,l),o.followRedirects===!1)thrownewError("Option followRedirects:false not supported on client.");if(a.has(o,"npmRequestOptions"))thrownewError("Option npmRequestOptions not supported on client.");varf,h;if(o.auth){varg=o.auth.indexOf(":");if(g<0)thrownewError('auth option should be of the form "username:password"');f=o.auth.substring(0,g),h=o.auth.substring(g+1)}p&&(i=r._encodeParams(p)),a.extend(s,o.headers||{}),c=function(e){returnfunction(t,n){t&&n&&(t.response=n),e(t,n)}}(c),c=a.once(c);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,f,h);for(varvinu.sanitizeForInObject(s))y.setRequestHeader(v,s[v]);varP=!1,k;if(o.timeout&&(k=e.setTimeout(function(){P=!0,y.abort()},o.timeout)),y.onreadystatechange=function(t){if(4===y.readyState)if(k&&e.clearTimeout(k),P)c(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])}),m(n);vars=null;n.statusCode>=400&&(s=d(n.statusCode,n.content)),c(s,n)}elsec(newError("network"))},o.beforeSend){varw=a.once(o.beforeSend);if(!1===w.call(null,y,o))returny.abort()}y.send(i)}catch(e){c(e)}}},"deprecated.js":function(){e.http=h}}}}},{extensions:[".js",".json"]});g("./node_modules/meteor/http/httpcall_common.js"),g("./node_modules/meteor/http/httpcall_client.js"),g("./node_modules/meteor/http/deprecated.js"),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varnint)nine||(e[n]=t[n])}(Package.http={},{HTTP:h})}();
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,i=Package.modules.Buffer,o=Package.modules.process,u=Package["ecmascript-runtime"].Symbol,a=Package["ecmascript-runtime"].Map,s=Package["ecmascript-runtime"].Set,c=Package["babel-runtime"].meteorBabelHelpers,f=Package.promise.Promise,l,d=r({node_modules:{meteor:{validatejs:{lib:{"validate.js":["babel-runtime/helpers/typeof",function(t,e,n){varr;n.import("babel-runtime/helpers/typeof",{default:function(t){r=t}}),function(t,e,n){"use strict";vari=functiont(e,n,r){r=o.extend({},o.options,r);vari=o.runValidations(e,n,r),u,a;for(uinc.sanitizeForInObject(i))for(ainc.sanitizeForInObject(i[u]))if(o.isPromise(i[u][a]))thrownewError("Use validate.async if you want support for promises");returnt.processValidationResults(i,r)},o=i;o.extend=function(t){return[].slice.call(arguments,1).forEach(function(e){for(varninc.sanitizeForInObject(e))t[n]=e[n]}),t},o.extend(i,{version:{major:0,minor:9,patch:0,metadata:"development",toString:function(){functiont(){vart=o.format("%{major}.%{minor}.%{patch}",o.version);returno.isEmpty(o.version.metadata)||(t+="+"+o.version.metadata),t}returnt}()},Promise:"undefined"!=typeoff?f:null,EMPTY_STRING_REGEXP:/^\s*$/,runValidations:function(){functiont(t,e,n){varr=[],i,u,a,s,f,l,d;(o.isDomElement(t)||o.isJqueryElement(t))&&(t=o.collectFormValues(t));for(iinc.sanitizeForInObject(e)){a=o.getDeepObjectValue(t,i),s=o.result(e[i],a,t,i,n,e);for(uinc.sanitizeForInObject(s)){if(f=o.validators[u],!f)throwd=o.format("Unknown validator %{name}",{name:u}),newError(d);l=s[u],l=o.result(l,a,t,i,n,e),l&&r.push({attribute:i,value:a,validator:u,globalOptions:n,attributes:t,options:l,error:f.call(f,a,l,i,t,n)})}}returnr}returnt}(),processValidationResults:function(){functiont(t,e){varn;switch(t=o.pruneEmptyErrors(t,e),t=o.expandMultipleErrors(t,e),t=o.convertErrorMessages(t,e),e.format||"grouped"){case"detailed":break;case"flat":t=o.flattenErrorsToArray(t);break;case"grouped":t=o.groupErrorsByAttribute(t);for(ninc.sanitizeForInObject(t))t[n]=o.flattenErrorsToArray(t[n]);break;default:thrownewError(o.format("Unknown format %{format}",e))}returno.isEmpty(t)?void0:t}returnt}(),async:function(){functiont(t,e,n){n=o.extend({},o.async.options,n);varr=n.wrapErrors||function(t){returnt};n.cleanAttributes!==!1&&(t=o.cleanAttributes(t,e));vari=o.runValidations(t,e,n);returnnewo.Promise(function(u,a){o.waitForResults(i).then(function(){vars=o.processValidationResults(i,n);s?a(newr(s,n,t,e)):u(t)},function(t){a(t)})})}returnt}(),single:function(){functiont(t,e,n){returnn=o.extend({},o.single.options,n,{format:"flat",fullMessages:!1}),o({single:t},{single:e},n)}returnt}(),waitForResults:function(){functiont(t){returnt.reduce(function(t,e){returno.isPromise(e.error)?t.then(function(){returne.error.then(function(t){e.error=t||null},function(t){if(tinstanceofError)throwt;o.error("Rejecting promises with the result is deprecated. Please use the resolve callback instead."),e.error=t})}):t},newo.Promise(function(t){t()}))}returnt}(),result:function(){functiont(t){vare=[].slice.call(arguments,1);return"function"==typeoft&&(t=t.apply(null,e)),t}returnt}(),isNumber:function(){functiont(t){return"number"==typeoft&&!isNaN(t)}returnt}(),isFunction:function(){functiont(t){return"function"==typeoft}returnt}(),isInteger:function(){functiont(t){returno.isNumber(t)&&t%1===0}returnt}(),isObject:function(){functiont(t){returnt===Object(t)}returnt}(),isDate:function(){functiont(t){returntinstanceofDate}returnt}(),isDefined:function(){functiont(t){returnnull!==t&&void0!==t}returnt}(),isPromise:function(){functiont(t){return!!t&&o.isFunction(t.then)}returnt}(),isJqueryElement:function(){functiont(t){returnt&&o.isString(t.jquery)}returnt}(),isDomElement:function(){functiont(t){return!!t&&(!(!o.isFunction(t.querySelectorAll)||!o.isFunction(t.querySelector))&&(!(!o.isObject(document)||t!==document)||("object"===("undefined"==typeofHTMLElement?"undef
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,o=Package.meteor.meteorEnv,a=Package.random.Random;(function(){vart="_localstorage_test_"+a.id(),o;try{window.localStorage&&(window.localStorage.setItem(t,t),o=window.localStorage.getItem(t),window.localStorage.removeItem(t))}catch(e){}t===o&&(e._localStorage={getItem:function(e){returnwindow.localStorage.getItem(e)},setItem:function(e,t){window.localStorage.setItem(e,t)},removeItem:function(e){window.localStorage.removeItem(e)}}),e._localStorage||(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={_data:{},setItem:function(e,t){this._data[e]=t},removeItem:function(e){deletethis._data[e]},getItem:function(e){vart=this._data[e];returnvoid0===t?null:t}})}).call(this),"undefined"==typeofPackage&&(Package={}),Package.localstorage={}}();
!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,n.bindEnvironment===!1&&(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);vari=a.nextCallbackId++;returna.callbacks[i]=t,{stop:function(){deletea.callbacks[i]}}},each:function(e){vart=this;n._nodeCodeMustBeInFiber();for(varr=a.keys(t.callbacks),i=0;i<r.length;++i){varo=r[i];if(a.has(t.callbacks,o)){varc=t.callbacks[o];if(!e(c))break}}}});vare=function(e,t,r){if(!t||"string"==typeoft){vari=t||"callback of async function";t=function(e){n._debug("Exception in "+i+":",e&&e.stack||e)}}returnfunction(){varn=a.toArray(arguments),i=function(){try{vara=e.apply(r,n)}catch(n){t(n)}returna};returni()}}}).call(this),"undefined"==typeofPackage&&(Package={}),function(n,e){for(vartine)tinn||(n[t]=e[t])}(Package["callback-hook"]={},{Hook:r})}();
!function(){varn=Package.meteor.Meteor,e=Package.meteor.global,o=Package.meteor.meteorEnv,t=Package.underscore._,i=Package.tracker.Tracker,r=Package.tracker.Deps,c=Package.random.Random,a=Package["callback-hook"].Hook,s=Package["ddp-client"].DDP,u=Package.mongo.Mongo,l=Package.modules.meteorInstall,g=Package.modules.Buffer,_=Package.modules.process,p=Package["ecmascript-runtime"].Symbol,f=Package["ecmascript-runtime"].Map,h=Package["ecmascript-runtime"].Set,d=Package["babel-runtime"].meteorBabelHelpers,m=Package.promise.Promise,k,L,E,I=l({node_modules:{meteor:{"accounts-base":{"client_main.js":["./accounts_client.js","./url_client.js","./localstorage_token.js",function(e,o,t){t.export({AccountsClient:function(){returni},AccountsTest:function(){returnr}});vari;t.import("./accounts_client.js",{AccountsClient:function(n){i=n}});varr;t.import("./url_client.js",{AccountsTest:function(n){r=n}}),t.import("./localstorage_token.js"),k=newi,n.users=k.users}],"accounts_client.js":["babel-runtime/helpers/classCallCheck","babel-runtime/helpers/possibleConstructorReturn","babel-runtime/helpers/inherits","./accounts_common.js",function(e,o,r){r.export({AccountsClient:function(){returnl}});varc;r.import("babel-runtime/helpers/classCallCheck",{default:function(n){c=n}});vara;r.import("babel-runtime/helpers/possibleConstructorReturn",{default:function(n){a=n}});vars;r.import("babel-runtime/helpers/inherits",{default:function(n){s=n}});varu;r.import("./accounts_common.js",{AccountsCommon:function(n){u=n}});varl=function(n){functione(o){c(this,e);vart=a(this,n.call(this,o));returnt._loggingIn=!1,t._loggingInDeps=newi.Dependency,t._loginServicesHandle=t.connection.subscribe("meteor.loginServiceConfiguration"),t._pageLoadLoginCallbacks=[],t._pageLoadLoginAttemptInfo=null,t._initUrlMatching(),t._initLocalStorage(),t}returns(e,n),e.prototype.userId=function(){functionn(){returnthis.connection.userId()}returnn}(),e.prototype._setLoggingIn=function(){functionn(n){this._loggingIn!==n&&(this._loggingIn=n,this._loggingInDeps.changed())}returnn}(),e.prototype.loggingIn=function(){functionn(){returnthis._loggingInDeps.depend(),this._loggingIn}returnn}(),e.prototype.logout=function(){functionn(n){vare=this;e.connection.apply("logout",[],{wait:!0},function(o,t){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}(u),g=l.prototype;n.loggingIn=function(){returnk.loggingIn()},g.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=functionn(t,r){!t&&r&&r.token&&(e.connection.onReconnect=function(){i=!0;varn=e._storedLoginToken();n&&(r={token:n,tokenExpires:e._storedLoginTokenExpires()}),r.tokenExpires||(r.tokenExpires=e._tokenExpiration(newDate)),e._tokenExpiresSoon(r.tokenExpires)?e.makeClientLoggedOut():e.callLoginMethod({methodArguments:[{resume:r.token}],_suppressLoggingIn:!0,userCallback:function(){functionn(n){vart=e._storedLoginToken();n&&t&&t===r.token&&e.makeClientLoggedOut(),o(n)}returnn}()})})},c=functiont(r,c){if(!i){if(e._setLoggingIn(!1),r||!c)returnr=r||newError("No result from call to "+n.methodName),voido(r);try{n.validateResult(c)}catch(n){returnvoido(n)}e.makeClientLoggedIn(c.id,c.token,c.tokenExpires),o()}};n._suppressLoggingIn||e._setLoggingIn(!0),e.connection.apply(n.methodName,n.methodArguments,{wait:!0,onResultReceived:r},c)},g.makeClientLoggedOut=function(){this.connection._userId&&this._onLogoutHook.each(function(n){returnn(),!0}),this._unstoreLoginToken(),this.connection.setUserId(null),this.
!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,d;(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()};d=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(){if(t.userId){vare=t.userId();e||c.clearAuth()}}),this},d.prototype.store=functiont(e,i,s){returnthis.psKeyList=amplify.store("__PSKEYS__"+this._dictName)||[],this.psaKeyList=amplify.store("__PSAKEYS__"+this._dictName)||[],"get"==e?amplify.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)),void0)},d.prototype.old_get=function(){returnthis._dict.get.apply(this._dict,arguments)},d.prototype.get=functiont(e){vari=this.old_get(e),s,a=this.store("get",e);returnvoid0!==a&&(s=u.fromJSONValue(this.store("get",e))),void0===s||null===s?i:s},d.prototype.old_set=function(){returnthis._dict.set.apply(this._dict,arguments)},d.prototype.set=functiont(e,i,s,a){if("object"==typeofe&&void0===i)returnvoidthis._setObject(e,s,a);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)},d.prototype.all=functiont(){this._dict.allDeps&&this._dict.allDeps.depend();vare={};returnp.each(this._dict.keys,function(t,s){e[s]=i(t)}),e},d.prototype._setObject=functiont(e,i,s){vara=this;p.each(e,function(t,e){a.set(e,t,i,s)})},d.prototype._ensureKey=functiont(e){vari=this._dict;eini.keyDeps||(i.keyDeps[e]=newo.Dependency,i.keyValueDeps[e]={})},d.prototype.equals=functiont(i,s){vara=null;if(Package.mongo&&(a=Package.mongo.Mongo.ObjectID),!("string"==typeofs||"number"==typeofs||"boolean"==typeofs||"undefined"==typeofs||sinstanceofDate||a&&sinstanceof
!function(){varMeteor=Package.meteor.Meteor,global=Package.meteor.global,meteorEnv=Package.meteor.meteorEnv,Symbol=Package["ecmascript-runtime"].Symbol,Map=Package["ecmascript-runtime"].Map,Set=Package["ecmascript-runtime"].Set,meteorBabelHelpers=Package["babel-runtime"].meteorBabelHelpers,Promise=Package.promise.Promise,html,chai,__coffeescriptShare,assert,expect,should;(function(){(function(){!function(){functionrequire(e){vart=require.modules[e];if(!t)thrownewError('failed to require "'+e+'"');return"exports"int||"function"!=typeoft.definition||(t.client=t.component=!0,t.definition.call(this,t.exports={},t),deletet.definition),t.exports}require.loader="component",require.helper={},require.helper.semVerSort=function(e,t){for(vari=e.version.split("."),n=t.version.split("."),r=0;r<i.length;++r){varo=parseInt(i[r],10),s=parseInt(n[r],10);if(o!==s)returno>s?1:-1;vara=i[r].substr((""+o).length),c=n[r].substr((""+s).length);if(""===a&&""!==c)return1;if(""!==a&&""===c)return-1;if(""!==a&&""!==c)returna>c?1:-1}return0},require.latest=function(e,t){functioni(e){thrownewError('failed to find latest module of "'+e+'"')}varn=/(.*)~(.*)@v?(\d+\.\d+\.\d+[^\/]*)$/,r=/(.*)~(.*)/;r.test(e)||i(e);for(varo=Object.keys(require.modules),s=[],a=[],c=0;c<o.length;c++){varh=o[c];if(newRegExp(e+"@").test(h)){varu=h.substr(e.length+1),l=n.exec(h);null!=l?s.push({version:u,name:h}):a.push({version:u,name:h})}}if(0===s.concat(a).length&&i(e),s.length>0){varf=s.sort(require.helper.semVerSort).pop().name;returnt===!0?f:require(f)}varf=a.sort(function(e,t){returne.name>t.name})[0].name;returnt===!0?f:require(f)},require.modules={},require.register=function(e,t){require.modules[e]={definition:t}},require.define=function(e,t){require.modules[e]={exports:t}},require.register("chaijs~assertion-error@1.0.0",function(e,t){functioni(){functione(e,i){Object.keys(i).forEach(function(n){~t.indexOf(n)||(e[n]=i[n])})}vart=[].slice.call(arguments);returnfunctiont(){for(vari=[].slice.call(arguments),n=0,r={};n<i.length;n++)e(r,i[n]);returnr}}functionn(e,t,n){varr=i("name","message","stack","constructor","toJSON"),o=r(t||{});this.message=e||"Unspecified AssertionError",this.showDiff=!1;for(varsino)this[s]=o[s];n=n||arguments.callee,n&&Error.captureStackTrace&&Error.captureStackTrace(this,n)}t.exports=n,n.prototype=Object.create(Error.prototype),n.prototype.name="AssertionError",n.prototype.constructor=n,n.prototype.toJSON=function(e){vart=i("constructor","toJSON","stack"),n=t({name:this.name},this);return!1!==e&&this.stack&&(n.stack=this.stack),n}}),require.register("chaijs~type-detect@0.1.1",function(e,t){functioni(e){vart=Object.prototype.toString.call(e);returnr[t]?r[t]:null===e?"null":void0===e?"undefined":e===Object(e)?"object":typeofe}functionn(){this.tests={}}vare=t.exports=i,r={"[object Array]":"array","[object RegExp]":"regexp","[object Function]":"function","[object Arguments]":"arguments","[object Date]":"date"};e.Library=n,n.prototype.of=i,n.prototype.define=function(e,t){return1===arguments.length?this.tests[e]:(this.tests[e]=t,this)},n.prototype.test=function(e,t){if(t===i(e))return!0;varn=this.tests[t];if(n&&"regexp"===i(n))returnn.test(e);if(n&&"function"===i(n))returnn(e);thrownewReferenceError('Type test "'+t+'" not defined or invalid.')}}),require.register("chaijs~deep-eql@0.1.3",function(e,t){functioni(e,t,i){return!!n(e,t)||("date"===p(e)?o(e,t):"regexp"===p(e)?s(e,t):d.isBuffer(e)?u(e,t):"arguments"===p(e)?a(e,t,i):!!r(e,t)&&("object"!==p(e)&&"object"!==p(t)&&"array"!==p(e)&&"array"!==p(t)?n(e,t):f(e,t,i)))}functionn(e,t){returne===t?0!==e||1/e===1/t:e!==e&&t!==t}functionr(e,t){returnp(e)===p(t)}functiono(e,t){return"date"===p(t)&&n(e.getTime(),t.getTime())}functions(e,t){return"regexp"===p(t)&&n(e.toString(),t.toString())}functiona(e,t,n){return"arguments"===p(t)&&(e=[].slice.call(e),t=[].slice.call(t),i(e,t,n))}functionc(e){vart=[];for(variine)t.push(i);returnt}functionh(e,t){if(e.length!==t.length)return!1;for(vari=0,n=!0;i<e.length;i++)if(e[i]!==t[i]){n=!1;break}return
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,l=Package.meteor.meteorEnv,o=Package["practicalmeteor:chai"].chai,n=Package["practicalmeteor:chai"].assert,i=Package["practicalmeteor:chai"].expect,r=Package["practicalmeteor:chai"].should,a=Package["ecmascript-runtime"].Symbol,c=Package["ecmascript-runtime"].Map,s=Package["ecmascript-runtime"].Set,u=Package["babel-runtime"].meteorBabelHelpers,g=Package.promise.Promise,f,p,h,v,d;(function(){(function(){f=function(e){functiont(e){returntypeofconsole!==s&&(void0!==console[e]?l(console,e):void0!==console.log?l(console,"log"):c)}functionl(e,t){varl=e[t];if("function"==typeofl.bind)returnl.bind(e,a.prefix);try{returnFunction.prototype.bind.call(l,e,a.prefix)}catch(t){returnfunction(){returnFunction.prototype.apply.apply(l,[e,arguments])}}}functiono(e,t){returnfunction(){typeofconsole!==s&&(n(t),a[e].apply(a,arguments))}}functionn(e){for(vart=0;t<u.length;t++){varl=u[t];a[l]=t<e?c:a.methodFactory(l,e)}}functioni(e){vart=(u[e]||"silent").toUpperCase();try{returnvoid(window.localStorage.loglevel=t)}catch(e){}try{window.document.cookie="loglevel="+t+";"}catch(e){}}functionr(){vare;try{e=window.localStorage.loglevel}catch(e){}if(typeofe===s)try{e=/loglevel=([^;]+)/.exec(window.document.cookie)[1]}catch(e){}void0===a.levels[e]&&(e="WARN"),a.setLevel(a.levels[e])}vara={};e&&e.prefix?a.prefix=e.prefix:a.prefix="",e&&e.level?a.level=e.level:a.level="info";varc=function(){},s="undefined",u=["trace","fine","debug","info","warn","error"];a.levels={TRACE:0,FINE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,SILENT:6},a.methodFactory=function(e,l){returnt(e)||o(e,l)},a.setLevel=function(e){if("string"==typeofe&&void0!==a.levels[e.toUpperCase()]&&(e=a.levels[e.toUpperCase()]),!("number"==typeofe&&e>=0&&e<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+e;if(a.level=e,n(e),typeofconsole===s&&e<a.levels.SILENT)return"No console available for logging"},a.enableAll=function(){a.setLevel(a.levels.TRACE)},a.disableAll=function(){a.setLevel(a.levels.SILENT)};varg=typeofwindow!==s?window.log:void0;returna.noConflict=function(){returntypeofwindow!==s&&window.log===a&&(window.log=g),a},a.setPrefix=function(e){typeofe!==s&&null!==e||(e=""),a.prefix=e,a.setLevel(a.level)},a.setLevel(a.level),a},p=f({prefix:"practicalmeteor:loglevel:"})}).call(this),function(){h="object"==typeofh?h:{};vart=h;null==this.practical&&(this.practical={}),practical.LoggerFactory=function(){functiont(){}varl;returnl=null,t.get=function(){returnnull!=l?l:l=newpractical.LoggerFactory},t.prototype._getSettingsLoglevel=function(e,t){varl,o;returnnull==e&&(e=""),null==t&&(t="info"),i(e).to.be.a("string"),i(t).to.be.a("string").that.has.length.above(0),l=this._getNamespaceLoglevel("global"),null!=l?l:(e.length>0&&(o=this._getNamespaceLoglevel(e)),null==o&&(o=this._getNamespaceLoglevel("default")),null!=o?o:o=t)},t.prototype._getNamespaceLoglevel=function(t){varl,o,n,r,a,c,s;returni(t).to.be.a("string").that.has.length.above(0),l=null!=(n=e.settings)&&null!=(r=n.public)&&null!=(a=r.loglevel)?a[t]:void0,e.isServer&&(o=null!=(c=e.settings)&&null!=(s=c.loglevel)?s[t]:void0,null!=o&&(l=o)),l},t.prototype.createLogger=function(e,t){varl;returnnull==e&&(e=""),null==t&&(t="info"),p.debug("LoggerFactory.createLogger()",arguments),i(e).to.be.a("string"),i(t).to.be.a("string").that.has.length.above(0),i(f).to.be.a("function"),l={},e.length>0&&(l.prefix=e+":"),l.level=this._getSettingsLoglevel(e,t),f(l)},t.prototype.createPackageLogger=function(e,t){returnnull==t&&(t="info"),this.createLogger(e,t)},t.prototype.createAppLogger=function(e,t){returnnull==e&&(e="app"),null==t&&(t="info"),this.createLogger(e,t)},t}(),v=practical.LoggerFactory.get()}.call(this),function(){h="object"==typeofh?h:{};vare=h,t=[].slice;d=function(){functione(e,t){returnthis.className=e,this.defaultLevel=null!=t?t:"info",this.log=v.createLogger(this.className,this.defaultLevel),this.callStack=[],this.log.enter=this.bindMethod(this.enter,"debug"),this.log.fineEnter=this.bindMethod(this.enter,"fine
},zt=w(k,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,Et),r.distbits=Et.bits,zt){t.msg="invalid distances set",r.mode=lt;break}if(r.mode=$,e===A)breakt;case$:r.mode=tt;casett:if(d>=6&&l>=258){t.next_out=o,t.avail_out=l,t.next_in=s,t.avail_in=d,r.hold=u,r.bits=c,b(t,ut),o=t.next_out,a=t.output,l=t.avail_out,s=t.next_in,i=t.input,d=t.avail_in,u=r.hold,c=r.bits,r.mode===K&&(r.back=-1);break}for(r.back=0;mt=r.lencode[u&(1<<r.lenbits)-1],gt=mt>>>24,bt=mt>>>16&255,wt=65535&mt,!(gt<=c);){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}if(bt&&0===(240&bt)){for(vt=gt,yt=bt,kt=wt;mt=r.lencode[kt+((u&(1<<vt+yt)-1)>>vt)],gt=mt>>>24,bt=mt>>>16&255,wt=65535&mt,!(vt+gt<=c);){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}u>>>=vt,c-=vt,r.back+=vt}if(u>>>=gt,c-=gt,r.back+=gt,r.length=wt,0===bt){r.mode=at;break}if(32&bt){r.back=-1,r.mode=K;break}if(64&bt){t.msg="invalid literal/length code",r.mode=lt;break}r.extra=15&bt,r.mode=et;caseet:if(r.extra){for(St=r.extra;c<St;){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}r.length+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=rt;casert:for(;mt=r.distcode[u&(1<<r.distbits)-1],gt=mt>>>24,bt=mt>>>16&255,wt=65535&mt,!(gt<=c);){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}if(0===(240&bt)){for(vt=gt,yt=bt,kt=wt;mt=r.distcode[kt+((u&(1<<vt+yt)-1)>>vt)],gt=mt>>>24,bt=mt>>>16&255,wt=65535&mt,!(vt+gt<=c);){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}u>>>=vt,c-=vt,r.back+=vt}if(u>>>=gt,c-=gt,r.back+=gt,64&bt){t.msg="invalid distance code",r.mode=lt;break}r.offset=wt,r.extra=15&bt,r.mode=nt;casent:if(r.extra){for(St=r.extra;c<St;){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}r.offset+=u&(1<<r.extra)-1,u>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=lt;break}r.mode=it;caseit:if(0===l)breakt;if(ct=ut-l,r.offset>ct){if(ct=r.offset-ct,ct>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=lt;break}ct>r.wnext?(ct-=r.wnext,pt=r.wsize-ct):pt=r.wnext-ct,ct>r.length&&(ct=r.length),_t=r.window}else_t=a,pt=o-r.offset,ct=r.length;ct>l&&(ct=l),l-=ct,r.length-=ct;doa[o++]=_t[pt++];while(--ct);0===r.length&&(r.mode=tt);break;caseat:if(0===l)breakt;a[o++]=r.length,l--,r.mode=tt;break;casest:if(r.wrap){for(;c<32;){if(0===d)breakt;d--,u|=i[s++]<<c,c+=8}if(ut-=l,t.total_out+=ut,r.total+=ut,ut&&(t.adler=r.check=r.flags?g(r.check,a,ut,o-ut):m(r.check,a,ut,o-ut)),ut=l,(r.flags?u:n(u))!==r.check){t.msg="incorrect data check",r.mode=lt;break}u=0,c=0}r.mode=ot;caseot:if(r.wrap&&r.flags){for(;c<32;){if(0===d)breakt;d--,u+=i[s++]<<c,c+=8}if(u!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=lt;break}u=0,c=0}r.mode=dt;casedt:zt=S;breakt;caselt:zt=B;breakt;caseht:returnO;caseft:default:returnI}returnt.next_out=o,t.avail_out=l,t.next_in=s,t.avail_in=d,r.hold=u,r.bits=c,(r.wsize||ut!==t.avail_out&&r.mode<lt&&(r.mode<st||e!==x))&&f(t,t.output,t.next_out,ut-t.avail_out)?(r.mode=ht,O):(p-=t.avail_in,ut-=t.avail_out,t.total_in+=p,t.total_out+=ut,r.total+=ut,r.wrap&&ut&&(t.adler=r.check=r.flags?g(r.check,a,ut,t.next_out-ut):m(r.check,a,ut,t.next_out-ut)),t.data_type=r.bits+(r.last?64:0)+(r.mode===K?128:0)+(r.mode===$||r.mode===W?256:0),(0===p&&0===ut||e===x)&&zt===E&&(zt=R),zt)}functionc(t){if(!t||!t.state)returnI;vare=t.state;returne.window&&(e.window=null),t.state=null,E}functionp(t,e){varr;returnt&&t.state?(r=t.state,0===(2&r.wrap)?I:(r.head=e,e.done=!1,E)):I}var_=t("../utils/common"),m=t("./adler32"),g=t("./crc32"),b=t("./inffast"),w=t("./inftrees"),v=0,y=1,k=2,x=4,z=5,A=6,E=0,S=1,C=2,I=-2,B=-3,O=-4,R=-5,T=8,D=1,L=2,N=3,U=4,F=5,P=6,Z=7,M=8,j=9,H=10,X=11,K=12,V=13,Y=14,W=15,q=16,G=17,J=18,Q=19,$=20,tt=21,et=22,rt=23,nt=24,it=25,at=26,st=27,ot=28,dt=29,lt=30,ht=31,ft=32,ut=852,ct=592,pt=15,_t=pt,mt=!0,gt,bt;r.inflateReset=s,r.inflateReset2=o,r.inflateResetKeep=a,r.inflateInit=l,r.inflateInit2=d,r.inflate=u,r.inflateEnd=c,r.inflateGetHeader=p,r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":27,"./adler32":29,"./crc32":31,"./inffast":34,"./inftrees":36}],36:[function(t,e,r){"use strict";varn=t("../utils/common"),i=15,
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i;(function(){(function(){i=function(e){vart=this;if(!(tinstanceofi))thrownewError('use "new" to construct an EventEmitter');e=e||{},t._eventEmitter={onListeners:{},onceListeners:{},maxListeners:e.maxListeners||10}};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.prototype.setMaxListeners=function(e){this._eventEmitter.maxListeners=e};vart=function(t,n,r){return"undefined"==typeoft[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;return"undefined"!=typeofe&&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),o>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?("undefined"!=typeofn._eventEmitter.onListeners[e]&&(n._eventEmitter.onListeners[e]=o(n._eventEmitter.onListeners[e],t)),"undefined"!=typeofn._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,n=Package.meteor.meteorEnv,i=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,u=Package.minimongo.Minimongo,m=Package.ejson.EJSON,d=Package["raix:eventemitter"].EventEmitter,f;(function(){functiont(t,i,r,l,u){functionm(e,n,i,r,a,s){E.clean(e,{mutate:!0,filter:i,autoConvert:r,getAutoValues:n,isModifier:"insert"!==t,removeEmptyStrings:a,trimStrings:s,extendAutoValueContext:o.extend({isInsert:"insert"===t,isUpdate:"update"===t&&_.upsert!==!0,isUpsert:v,userId:l,isFromTrustedCode:u,docId:I,isLocalCollection:k},_.extendAutoValueContext||{})})}vard=this,f,p,h,_,v,g,y,S;if(!i.length)thrownewError(t+" requires an argument");if("insert"===t)f=i[0],_=i[1],p=i[2],i="function"==typeof_?[f,_]:"function"==typeofp?[f,p]:[f];else{if("update"!==t)thrownewError("invalid type argument");g=i[0],f=i[1],_=i[2],p=i[3]}varC=o.isEmpty(f);p||"function"!=typeof_||(p=_,_={}),_=_||{},y=i.length-1,S="function"==typeofi[y],v="update"===t&&_.upsert===!0;varE=d.simpleSchema(f,_,g),k=null===d._connection;(e.isServer||k)&&_.getAutoValues===!1&&(r=!1);varw=_.validationContext;w?"string"==typeofw&&(w=E.namedContext(w)):w=E.namedContext(),e.isClient&&!p&&(p=function(n){n&&e._debug(t+" failed: "+(n.reason||n.stack))}),e.isClient&&S&&(p=i[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),m(f,r,_.filter!==!1,_.autoConvert!==!1,_.removeEmptyStrings!==!1,_.trimStrings!==!1);varA={};for(varMinf)f.hasOwnProperty(M)&&(A[M]=f[M]);if(e.isServer&&v&&o.isObject(g)){varO=A.$set||{};A.$set=o.clone(g),x||deleteA.$set._id,o.extend(A.$set,O)}if(e.isClient&&!k&&m(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=_.validate===!1||w.validate(A,{modifier:"update"===t||"upsert"===t,upsert:v,extendedCustomContext:o.extend({isInsert:"insert"===t,isUpdate:"update"===t&&_.upsert!==!0,isUpsert:v,userId:l,isFromTrustedCode:u,docId:I,isLocalCollection:k},_.extendedCustomContext||{})}))returnP&&(f._id=P),"insert"===t?i[0]=f:i[1]=f,e.isServer&&S&&(i[y]=a(w,i[y])),i;if(h=n(w),!p)throwh;p(h,!1)}functionn(t){varn,r=i.version>=2?t.validationErrors():t.invalidKeys();n=r.length?t.keyErrorMessage(r[0].name):"Failed validation";varo=newError(n);returno.invalidKeys=r,o.validationContext=t,e.isServer&&(o.sanitizedError=newe.Error(400,n,m.stringify(o.invalidKeys))),o}functionr(e,t){varn=t.split("c2_")[1].split(" ")[0],i=t.split("dup key:")[1].split('"')[1];e[h]([{name:n,type:"notUnique",value:i}])}functiona(e,t){returnfunctioni(a){vars=o.toArray(arguments);returna&&("MongoError"===a.name&&11001===a.code||a.message.indexOf(!0))&&a.message.indexOf("c2_")!==-1&&(r(e,a.message),s[0]=n(e)),t.apply(this,s)}}functions(t,i){returnfunctiona(s){varc=o.toArray(arguments);if(sinstanceofe.Error&&400===s.error&&"INVALID"===s.reason&&"string"==typeofs.details){varl=m.parse(s.details);t[h](l),c[0]=n(t)}elsesinstanceofe.Error&&409===s.error&&s.reason&&s.reason.indexOf("E11000")!==-1&&s.reason.indexOf("c2_")!==-1&&(r(t,s.reason),c[0]=n(t));returni.apply(this,c)}}functionu(e){Package&&Package.insecure&&!_[e._name]&&(e.allow({insert:function(){return!0},update:function(){return!0},remove:function(){return!0},fetch:[],transform:null}),_[e._name]=!0)}functionp(n,i){if(!v[n._name]){varr=null===n._connection;n.deny({insert:function(e,t){returnn.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,i,o){returnn.simpleSchema(o).clean(o,{mutate:!0,isModifier:!
!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,s=Package.minimongo.Minimongo,t=Package.check.check,m=Package.check.Match,r=Package.modules.meteorInstall,l=Package.modules.Buffer,u=Package.modules.process,g=Package["ecmascript-runtime"].Symbol,d=Package["ecmascript-runtime"].Map,k=Package["ecmascript-runtime"].Set,P=Package["babel-runtime"].meteorBabelHelpers,p=Package.promise.Promise,h=Package["aldeed:simple-schema"].SimpleSchema,b=Package["aldeed:simple-schema"].MongoObject,f=Package.mongo.Mongo,x=r({node_modules:{meteor:{"aldeed:schema-index":{lib:{"indexing.js":function(){h.extendOptions({index:m.Optional(m.OneOf(Number,String,Boolean)),unique:m.Optional(Boolean),sparse:m.Optional(Boolean)}),(!h.version||h.version<2)&&h.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"});vars=2===n.version?"mergedSchema":"schema";c.each(n[s](),function(e,a){if("index"ine||e.unique===!0){varn={},c;"index"ine?(c=e.index,c===!0&&(c=1)):c=1;vars="c2_"+a,t=a.replace(/\.\$\./g,".");n[t]=c;varm=!!e.unique&&(1===c||c===-1),r=e.sparse||!1;!r&&m&&e.optional&&(r=!0),c===!1?i(s):o(n,s,m,r)}})})}}}}}},{extensions:[".js",".json"]});x("./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(){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,s=Package.blaze.Handlebars,i=Package.jquery.$,l=Package.jquery.jQuery,d=Package.underscore._,c=Package.tracker.Tracker,p=Package.tracker.Deps,u=Package.modules.meteorInstall,m=Package.modules.Buffer,f=Package.modules.process,h=Package["ecmascript-runtime"].Symbol,y=Package["ecmascript-runtime"].Map,b=Package["ecmascript-runtime"].Set,k=Package["babel-runtime"].meteorBabelHelpers,v=Package.promise.Promise,g=Package.htmljs.HTML,_=Package.spacebars.Spacebars,j,P=u({node_modules:{meteor:{"aldeed:template-extension":{lib:{"hooks.js":function(){j={global:{created:[],rendered:[],destroyed:[]},master:{created:function(){functione(){j.runGlobal("created",this,arguments)}returne}(),rendered:function(){functione(){j.runGlobal("rendered",this,arguments)}returne}(),destroyed:function(){functione(){j.runGlobal("destroyed",this,arguments)}returne}()}},j.addGlobal=function(e){e._hasTemplateExtensionMasterHooks||(e.onCreated(j.master.created),e.onRendered(j.master.rendered),e.onDestroyed(j.master.destroyed),e._hasTemplateExtensionMasterHooks=!0)},j.runGlobal=function(e,t,n){for(varr=j.global[e],a=Array.isArray(r),o=0,r=a?r:r[h.iterator]();;){vars;if(a){if(o>=r.length)break;s=r[o++]}else{if(o=r.next(),o.done)break;s=o.value}vari=s;i.apply(t,n)}}},"template-for-each.js":function(){r.forEach=function(e){vart=!1;for(varnink.sanitizeForInObject(r))if(r.hasOwnProperty(n)){varo=r[n];if(a.isTemplate(o)){vars=o.viewName;"body"===s?t||(t=!0,e(o)):"Template.__dynamic"!==s&&"Template.__dynamicWithDataContext"!==s&&e(o)}}}},"template-hooks.js":["babel-runtime/helpers/typeof",function(e,t,n){vara;n.import("babel-runtime/helpers/typeof",{default:function(e){a=e}}),r.prototype.hooks=function(e){if(!e||"object"!==("undefined"==typeofe?"undefined":a(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){j.addGlobal(e)})}),r.onCreated=function(e){j.global.created.push(e)},r.onRendered=function(e){j.global.rendered.push(e)},r.onDestroyed=function(e){j.global.destroyed.push(e)}},"template-for-each-instance.js":function(){r._renderedInstances=[],r.onRendered(function(){r._renderedInstances.push(this)}),r.onDestroyed(function(){vare=r._renderedInstances.indexOf(this);e>-1&&r._renderedInstances.splice(e,1)}),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||[],d.isArray(e)?d.each(e,t):t(e)}returne}()},"template-inherits-helpers-from.js":function(){r.prototype.inheritsHelpersFrom=function(){functione(e){functiont(e){if("string"==typeofe&&(e=r[e]),e){vart={};d.each(e.__helpers,function(e,n){" "===n.charAt(0)&&(t[n.slice(1)]=e)}),n.helpers(t)}}varn=this;d.isArray(e)?d.each(e,t):t(e)}returne}()},"template-inherits-hooks-from.js":function(){r.prototype.inheritsHooksFrom=function(){functione(e){functiont(e){if("string"==typeofe&&(e=r[e]),e){j.addGlobal(e);for(vart=e._callbacks.created,a=Array.isArray(t),o=0,t=a?t:t[h.iterator]();;){vars;if(a){if(o>=t.length)break;s=t[o++]}else{if(o=t.next(),o.done)break;s=o.value}vari=s;i!==j.master.created&&n.onCreated(i)}for(varl=e._callbacks.rendered,d=Array.isArray(l),c=0,l=d?l:l[h.iterator]();;){varp;if(d){if(c>=l.length)break;p=l[c++]}else{if(c=l.next(),c.done)break;p=c.value}varu=p;u!==j.master.rendered&&n.onRendered(u)}for(varm=e._callbacks.destroyed,f=Array.isArray(m),y=0,m=f?m:m[h.iterator]();;){varb;if(f){if(y>=m.length
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,i=Package.meteor.meteorEnv,o=Package.jquery.$,n=Package.jquery.jQuery;(function(){if("undefined"==typeofn)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=n.attr("href"),s=s&&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.car
!function(){var e=Package.meteor.Meteor,r=Package.meteor.global,a=Package.meteor.meteorEnv,t=Package.check.check,n=Package.check.Match,i=Package.modules.meteorInstall,o=Package.modules.Buffer,c=Package.modules.process,l=Package["ecmascript-runtime"].Symbol,s=Package["ecmascript-runtime"].Map,u=Package["ecmascript-runtime"].Set,m=Package["babel-runtime"].meteorBabelHelpers,d=Package.promise.Promise,g,k=i({node_modules:{meteor:{"mdg:validation-error":{"validation-error.js":["babel-runtime/helpers/classCallCheck","babel-runtime/helpers/possibleConstructorReturn","babel-runtime/helpers/inherits",function(r,a,i){var o;i.import("babel-runtime/helpers/classCallCheck",{default:function(e){o=e}});var c;i.import("babel-runtime/helpers/possibleConstructorReturn",{default:function(e){c=e}});var l;i.import("babel-runtime/helpers/inherits",{default:function(e){l=e}});var s=[n.ObjectIncluding({name:String,type:String})];g=function(r){function a(e){var n,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.DEFAULT_MESSAGE;return o(this,a),t(e,s),t(l,String),i=n=c(this,r.call(this,g.ERROR_CODE,l,e)),c(n,i)}return l(a,r),a.is=function(){function r(r){return r instanceof e.Error&&r.error===g.ERROR_CODE}return r}(),a}(e.Error),g.ERROR_CODE="validation-error",g.DEFAULT_MESSAGE="Validationfailed"}]}}}},{extensions:[".js",".json"]});k("./node_modules/meteor/mdg:validation-error/validation-error.js"),"undefined"==typeof Package&&(Package={}),function(e,r){for(var a in r)a in e||(e[a]=r[a])}(Package["mdg:validation-error"]={},{ValidationError:g})}();
!function(){var e=Package.meteor.Meteor,o=Package.meteor.global,n=Package.meteor.meteorEnv,i=Package["accounts-base"].Accounts,r=Package.mongo.Mongo,t;(function(){"undefined"==typeof t&&(t={}),t.configurations=new r.Collection("meteor_accounts_loginServiceConfiguration",{_preventAutopublish:!0,connection:e.isClient?i.connection:e.connection}),t.ConfigError=function(o){e.isClient&&!i.loginServicesConfigured()?this.message="Loginserviceconfigurationnotyetloaded":o?this.message="Service"+o+"notconfigured":this.message="Servicenotconfigured"},t.ConfigError.prototype=new Error,t.ConfigError.prototype.name="ServiceConfiguration.ConfigError"}).call(this),"undefined"==typeof Package&&(Package={}),function(e,o){for(var n in o)n in e||(e[n]=o[n])}(Package["service-configuration"]={},{ServiceConfiguration:t})}();