!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("Couldnotsync
}}},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(){varn=Package.meteor.Meteor,r=Package.meteor.global,e=Package.meteor.meteorEnv,a;(function(){for(varn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={},e=0;e<n.length;e++)r[n.charAt(e)]=e;a={},a.encode=function(n){if("string"==typeofn){varr=n;n=a.newBinary(r.length);for(vare=0;e<r.length;e++){varl=r.charCodeAt(e);if(l>255)thrownewError("Not ascii. Base64.encode can only take ascii strings.");n[e]=l}}for(varu=[],i=null,o=null,c=null,f=null,e=0;e<n.length;e++)switch(e%3){case0:i=n[e]>>2&63,o=(3&n[e])<<4;break;case1:o|=n[e]>>4&15,c=(15&n[e])<<2;break;case2: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}returnnull!=i&&(u.push(t(i)),u.push(t(o)),null==c?u.push("="):u.push(t(c)),null==f&&u.push("=")),u.join("")};vart=function(r){returnn.charAt(r)},l=function(n){return"="===n?-1:r[n]};a.newBinary=function(n){if("undefined"==typeofUint8Array||"undefined"==typeofArrayBuffer){for(varr=[],e=0;e<n;e++)r.push(0);returnr.$Uint8ArrayPolyfill=!0,r}returnnewUint8Array(newArrayBuffer(n))},a.decode=function(n){varr=Math.floor(3*n.length/4);"="==n.charAt(n.length-1)&&(r--,"="==n.charAt(n.length-2)&&r--);for(vare=a.newBinary(r),t=null,u=null,i=null,o=0,c=0;c<n.length;c++){varf=n.charAt(c),s=l(f);switch(c%4){case0:if(s<0)thrownewError("invalid base64 string");t=s<<2;break;case1:if(s<0)thrownewError("invalid base64 string");t|=s>>4,e[o++]=t,u=(15&s)<<4;break;case2:s>=0&&(u|=s>>2,e[o++]=u,i=(3&s)<<6);break;case3:s>=0&&(e[o++]=i|s)}}returne}}).call(this),"undefined"==typeofPackage&&(Package={}),function(n,r){for(vareinr)einn||(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:"Missingke
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,a=Package.meteor.meteorEnv,n=Package.check.check,r=Package.check.Match,i=Package.random.Random,o=Package.ejson.EJSON,c=Package.underscore._,s=Package.tracker.Tracker,l=Package.tracker.Deps,u=Package.retry.Retry,d;(function(){d={}}).call(this),function(){d.Heartbeat=function(e){vart=this;t.heartbeatInterval=e.heartbeatInterval,t.heartbeatTimeout=e.heartbeatTimeout,t._sendPing=e.sendPing,t._onTimeout=e.onTimeout,t._seenPacket=!1,t._heartbeatIntervalHandle=null,t._heartbeatTimeoutHandle=null},c.extend(d.Heartbeat.prototype,{stop:function(){vare=this;e._clearHeartbeatIntervalTimer(),e._clearHeartbeatTimeoutTimer()},start:function(){vare=this;e.stop(),e._startHeartbeatIntervalTimer()},_startHeartbeatIntervalTimer:function(){vart=this;t._heartbeatIntervalHandle=e.setInterval(c.bind(t._heartbeatIntervalFired,t),t.heartbeatInterval)},_startHeartbeatTimeoutTimer:function(){vart=this;t._heartbeatTimeoutHandle=e.setTimeout(c.bind(t._heartbeatTimeoutFired,t),t.heartbeatTimeout)},_clearHeartbeatIntervalTimer:function(){vart=this;t._heartbeatIntervalHandle&&(e.clearInterval(t._heartbeatIntervalHandle),t._heartbeatIntervalHandle=null)},_clearHeartbeatTimeoutTimer:function(){vart=this;t._heartbeatTimeoutHandle&&(e.clearTimeout(t._heartbeatTimeoutHandle),t._heartbeatTimeoutHandle=null)},_heartbeatIntervalFired:function(){vare=this;e._seenPacket||e._heartbeatTimeoutHandle||(e._sendPing(),e._startHeartbeatTimeoutTimer()),e._seenPacket=!1},_heartbeatTimeoutFired:function(){vare=this;e._heartbeatTimeoutHandle=null,e._onTimeout()},messageReceived:function(){vare=this;e._seenPacket=!0,e._heartbeatTimeoutHandle&&e._clearHeartbeatTimeoutTimer()}})}.call(this),function(){d.SUPPORTED_DDP_VERSIONS=["1","pre2","pre1"],d.parseDDP=function(t){try{vara=JSON.parse(t)}catch(a){returne._debug("Discarding message with invalid JSON",t),null}returnnull===a||"object"!=typeofa?(e._debug("Discarding non-object DDP message",t),null):(c.has(a,"cleared")&&(c.has(a,"fields")||(a.fields={}),c.each(a.cleared,function(e){a.fields[e]=void0}),deletea.cleared),c.each(["fields","params","result"],function(e){c.has(a,e)&&(a[e]=o._adjustTypesFromJSONValue(a[e]))}),a)},d.stringifyDDP=function(e){vart=o.clone(e);if(c.has(e,"fields")){vara=[];c.each(e.fields,function(e,n){void0===e&&(a.push(n),deletet.fields[n])}),c.isEmpty(a)||(t.cleared=a),c.isEmpty(t.fields)&&deletet.fields}if(c.each(["fields","params","result"],function(e){c.has(t,e)&&(t[e]=o._adjustTypesToJSONValue(t[e]))}),e.id&&"string"!=typeofe.id)thrownewError("Message id is not a string");returnJSON.stringify(t)}}.call(this),function(){d.MethodInvocation=function(e){vart=this;this.isSimulation=e.isSimulation,this._unblock=e.unblock||function(){},this._calledUnblock=!1,this.userId=e.userId,this._setUserId=e.setUserId||function(){},this.connection=e.connection,this.randomSeed=e.randomSeed,this.randomStream=null},c.extend(d.MethodInvocation.prototype,{unblock:function(){vare=this;e._calledUnblock=!0,e._unblock()},setUserId:function(e){vart=this;if(t._calledUnblock)thrownewError("Can't call setUserId in a method after calling unblock");t.userId=e,t._setUserId(e)}})}.call(this),function(){functione(){returni.hexString(20)}d.RandomStream=function(t){vara=this;this.seed=[].concat(t.seed||e()),this.sequences={}},d.RandomStream.get=function(e,t){if(t||(t="default"),!e)returni.insecure;vara=e.randomStream;returna||(e.randomStream=a=newd.RandomStream({seed:e.randomSeed})),a._sequence(t)},d.makeRpcSeed=function(e,t){vara=d.RandomStream.get(e,"/rpc/"+t);returna.hexString(20)},c.extend(d.RandomStream.prototype,{_sequence:function(e){vart=this,a=t.sequences[e]||null;if(null===a){for(varn=t.seed.concat(e),r=0;r<n.length;r++)c.isFunction(n[r])&&(n[r]=n[r]());t.sequences[e]=a=i.createWithSeeds.apply(null,n)}returna}})}.call(this),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varaint)aine||(e[a]=t[a])}(Package["ddp-common"]={},{DDPCommon:d})}();
!function(){vara=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,o=Package.underscore._,n=Package["ecmascript-runtime"].Symbol,r=Package["ecmascript-runtime"].Map,i=Package["ecmascript-runtime"].Set,c;(function(){c={};vare="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(){returnr&&r.getItem(e)},r&&(n=c._getData(),r.removeItem(e)),n||(n="{}");vari={};try{i=JSON.parse(n),"object"!=typeofi&&(a._debug("Got bad data on reload. Ignoring."),i={})}catch(e){a._debug("Got invalid JSON on reload. Ignoring.")}i.reload&&"object"==typeofi.data&&(t=i.data);varl=[];c._onMigrate=function(a,e){e||(e=a,a=void0),l.push({name:a,callback:e})},c._migrationData=function(a){returnt[a]};vard=function(a,e){a=a||function(){},e=e||{};for(vart={},n=o.clone(l),r=!0;n.length;){vari=n.shift(),c=i.callback(a,e);c[0]||(r=!1),c.length>1&&i.name&&(t[i.name]=c[1])}returnr||e.immediateMigration?t:null};c._migrate=function(t,o){varn=d(t,o);if(null===n)return!1;try{vari=JSON.stringify({data:n,reload:!0})}catch(e){throwa._debug("Couldn't serialize data for migration",n),e}if(r)try{r.setItem(e,i)}catch(e){a._debug("Couldn't save data for migration to sessionStorage",e)}elsea._debug("Browser does not support sessionStorage. Not saving migration state.");return!0},c._withFreshProvidersForTest=function(a){vare=o.clone(l);l=[];try{a()}finally{l=e}};varg=!1;c._reload=function(a){if(a=a||{},!g){g=!0;vare=function(){o.defer(function(){c._migrate(e,a)&&(window.location.hash||window.location.href.endsWith("#")?window.location.reload():window.location.replace(window.location.href))})};e()}}}).call(this),function(){a._reload={onMigrate:c._onMigrate,migrationData:c._migrationData,reload:c._reload}}.call(this),"undefined"==typeofPackage&&(Package={}),function(a,e){for(vartine)tina||(a[t]=e[t])}(Package.reload={},{Reload:c})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,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(){vare=this;l.call(e,p.idStringify,p.idParse)},e._inherits(m,l)}.call(this),function(){g=function(){vare=document,t=window,n={},r=function(){};r.prototype.addEventListener=function(e,t){this._listeners||(this._listeners={}),einthis._listeners||(this._listeners[e]=[]);varr=this._listeners[e];n.arrIndexOf(r,t)===-1&&r.push(t)},r.prototype.removeEventListener=function(e,t){if(this._listeners&&einthis._listeners){varr=this._listeners[e],o=n.arrIndexOf(r,t);returno!==-1?void(r.length>1?this._listeners[e]=r.slice(0,o).concat(r.slice(o+1)):deletethis._listeners[e]):void0}},r.prototype.dispatchEvent=function(e){vart=e.type,n=Array.prototype.slice.call(arguments,0);if(this["on"+t]&&this["on"+t].apply(this,n),this._listeners&&tinthis._listeners)for(varr=0;r<this._listeners[t].length;r++)this._listeners[t][r].apply(this,n)};varo=function(e,t){if(this.type=e,"undefined"!=typeoft)for(varnint)t.hasOwnProperty(n)&&(this[n]=t[n])};o.prototype.toString=function(){vare=[];for(vartinthis)if(this.hasOwnProperty(t)){varn=this[t];"function"==typeofn&&(n="[function]"),e.push(t+"="+n)}return"SimpleEvent("+e.join(", ")+")"};vari=function(e){vart=this;t._events=e||[],t._listeners={}};i.prototype.emit=function(e){vart=this;if(t._verifyType(e),!t._nuked){varn=Array.prototype.slice.call(arguments,1);if(t["on"+e]&&t["on"+e].apply(t,n),eint._listeners)for(varr=0;r<t._listeners[e].length;r++)t._listeners[e][r].apply(t,n)}},i.prototype.on=function(e,t){varn=this;n._verifyType(e),n._nuked||(einn._listeners||(n._listeners[e]=[]),n._listeners[e].push(t))},i.prototype._verifyType=function(e){vart=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(){vare=this;e._nuked=!0;for(vart=0;t<e._events.length;t++)deletee[e._events[t]];e._listeners={}};vars="abcdefghijklmnopqrstuvwxyz0123456789_";n.random_string=function(e,t){t=t||s.length;varn,r=[];for(n=0;n<e;n++)r.push(s.substr(Math.floor(Math.random()*t),1));returnr.join("")},n.random_number=function(e){returnMath.floor(Math.random()*e)},n.random_number_string=function(e){vart=(""+(e-1)).length,r=Array(t+1).join("0");return(r+n.random_number(e)).slice(-t)},n.getOrigin=function(e){e+="/";vart=e.split("/").slice(0,3);returnt.join("/")},n.isSameOriginUrl=function(e,n){returnn||(n=t.location.href),e.split("/").slice(0,3).join("/")===n.split("/").slice(0,3).join("/")},n.isSameOriginScheme=function(e,n){returnn||(n=t.location.href),e.split(":")[0]===n.split(":")[0]},n.getParentDomain=function(e){if(/^[0-9.]*$/.test(e))returne;if(/^\[/.test(e))returne;if(!/[.]/.test(e))returne;vart=e.split(".").slice(1);returnt.join(".")},n.objectExtend=function(e,t){for(varnint)t.hasOwnProperty(n)&&(e[n]=t[n]);returne};vara="_jp";n.polluteGlobalNamespace=function(){aint||(t[a]={})},n.closeFrame=function(e,t){return"c"+JSON.stringify([e,t])},n.userSetCode=function(e){return1e3===e||e>=3e3&&e<=4999},n.countRTO=function(e){vart;returnt=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){returne.bind?e.bind(t):function(){returne.apply(t,arguments)}},n.flatUrl=function(e){returne.indexOf("?")===-1&&e.indexOf("#")===-1},n.amendUrl=function(t,r){varo;if(void0===r)o=e.location;else{vari=/^([a-z0-9.+-]+:)/i.exec(r);if(i){vars=i[0].toLowerCase(),a=r.substring(s.length),u=/[a-z0-9\.-]+(:[0-9]+)?/.exec(a);if(u)varc=u[0]}if(!s||!c)thrownewError("relativeTo must be an absolute url");o={protocol:s,host:c}}if(!t)thrownewError("Wrong
!function(){vare=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(){functionn(e,n){returne.transform?e.transform(n):n}functionr(e,n,r){vart=n;returne.transform&&(t=l.clone(n),null!==r&&(t._id=r),t=e.transform(t)),t}functiona(e,n,r){vara=["insert","update","remove","fetch","transform"];if(t.each(t.keys(r),function(e){if(!t.contains(a,e))thrownewError(n+": Invalid key: "+e)}),e._restricted=!0,t.each(["insert","update","remove"],function(t){if(r.hasOwnProperty(t)){if(!(r[t]instanceofFunction))thrownewError(n+": Value for `"+t+"` must be a function");void0===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.fetchinstanceofArray))thrownewError(n+": Value for `fetch` must be an array");e._updateFetch(r.fetch)}}functiond(n,r){if(!o._selectorIsIdPerhapsAsObject(n))thrownewe.Error(403,"Not permitted. Untrusted code may only "+r+" documents by ID.")}functionu(){vare=s._CurrentInvocation.get();returne&&e.isSimulation}w={CollectionPrototype:{}};varf=w.CollectionPrototype;f.allow=function(e){a(this,"allow",e)},f.deny=function(e){a(this,"deny",e)},f._defineMutationMethods=function(n){varr=this;n=n||{},r._restricted=!1,r._insecure=void0,r._validators={insert:{allow:[],deny:[]},update:{allow:[],deny:[]},remove:{allow:[],deny:[]},upsert:{allow:[],deny:[]},fetch:[],fetchAllFields:!1},r._name&&(r._prefix="/"+r._name+"/",r._connection&&(r._connection===e.server||e.isClient)&&!function(){varo={};t.each(["insert","update","remove"],function(a){varl=r._prefix+a;if(n.useExisting){vars=e.isClient?"_methodHandlers":"method_handlers";if(r._connection[s]&&"function"==typeofr._connection[s][l])return}o[l]=function(){i(arguments,[c.Any]);varn=t.toArray(arguments);try{varo=null;if("insert"!==a||t.has(n[0],"_id")||(o=r._makeNewID()),this.isSimulation)returnnull!==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)thrownewe.Error(403,"Access denied. No allow validators set on restricted collection for method '"+a+"'.");varl="_validated"+a.charAt(0).toUpperCase()+a.slice(1);returnn.unshift(this.userId),"insert"===a&&n.push(o),r[l].apply(r,n)}if(r._isInsecure())returnnull!==o&&(n[0]._id=o),r._collection[a].apply(r._collection,n);thrownewe.Error(403,"Access denied")}catch(n){throw"MongoError"===n.name||"MinimongoError"===n.name?newe.Error(409,n.toString()):n}}}),r._connection.methods(o)}())},f._updateFetch=function(e){varn=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(){vare=this;returnvoid0===e._insecure?!!Package.insecure:e._insecure},f._validatedInsert=function(n,o,a){vari=this;if(t.any(i._validators.insert.deny,function(e){returne(n,r(e,o,a))}))thrownewe.Error(403,"Access denied");if(t.all(i._validators.insert.allow,function(e){return!e(n,r(e,o,a))}))thrownewe.Error(403,"Access denied");null!==a&&(o._id=a),i._collection.insert.call(i._collection,o)},f._validatedUpdate=function(r,a,c,l){vars=this;if(i(c,Object),l=t.clone(l)||{},!o._selectorIsIdPerhapsAsObject(a))thrownewError("validated update should be of a single ID");if(l.upsert)thrownewe.Error(403,"Access denied. Upserts not allowed in a restricted collection.");vard="Accessdenied.Inarestrictedcollectionyoucanonlyupdatedocuments,notreplacethem.UseaMongoupdateoperator,suchas
!function(){vare=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=functione(){varn=this;n.noConnCollections={}};vare=functione(n,o){returnnino||(o[n]=newl(n)),o[n]};c.extend(b.prototype,{open:function(){functionn(n,o){vart=this;returnn?o?(o._mongo_livedata_collections||(o._mongo_livedata_collections={}),e(n,o._mongo_livedata_collections)):e(n,t.noConnCollections):newl}returnn}()}),b=newb},"collection.js":function(n,o,i){functiona(e){p(e,RegExp);varn={$regex:e.source},o="";returne.ignoreCase&&(o+="i"),e.multiline&&(o+="m"),o&&(n.$options=o),n}functionu(e,n){if(e)returnn=n||c.identity,function(o,t){e(o,!o&&n(t))}}functiond(e){if(e.length&&(void0===e[e.length-1]||e[e.length-1]instanceofFunction))returne.pop()}I={},I.Collection=function(n,o){vart=this;if(!(tinstanceofI.Collection))thrownewError('use "new" to construct a Mongo.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"!=typeofn)thrownewError("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:void0,idGeneration:"STRING",transform:null,_driver:void0,_preventAutopublish:!1},o),o.idGeneration){case"MONGO":t._makeNewID=function(){vare=n?s.randomStream("/collection/"+n):r.insecure;returnnewI.ObjectID(e.hexString(24))};break;case"STRING":default:t._makeNewID=function(){vare=n?s.randomStream("/collection/"+n):r.insecure;returne.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"!=typeofMongoInternals&&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){vari=t._connection.registerStore(n,{beginUpdate:function(){functione(e,n){(e>1||n)&&t._collection.pauseObservers(),n&&t._collection.remove({})}returne}(),update:function(){functione(e){varn=_.idParse(e.id),o=t._collection.findOne(n);if("replace"===e.msg){varr=e.replace;returnvoid(r?o?t._collection.update(n,r):t._collection.insert(r):o&&t._collection.remove(n))}if("added"===e.msg){if(o)thrownewError("Expected not to find a document already present for an add");t._collection.insert(c.extend({_id:n},e.fields))}elseif("removed"===e.msg){if(!o)thrownewError("Expected to find a document already present for removed");t._collection.remove(n)}else{if("changed"!==e.msg)thrownewError("I don't know how to deal with this message");if(!o)thrownewError("Expected to find a document to change");if(!c.isEmpty(e.fields)){vari={};c.each(e.fields,function(e,n){void0===e?(i.$unset||(i.$unset={}),i.$unset[n]=1):(i.$set||(i.$set={}),i.$set[n]=e)}),t._collection.update(n,i)}}}returne}(),endUpdate:function(){functione(){t._collection.resumeObservers()}returne}(),saveOriginals:function(){functione(){t._collection.saveOriginals()}returne}(),retrieveOriginals:function(){functione(){returnt._collection.r
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,i=Package.modules.Buffer,o=Package.modules.process,a,s,l=r({node_modules:{meteor:{jquery:{"main.js":["jquery","./jquery.js",function(e,t){varn=this;try{varr=e("jquery")}catch(t){r=e("./jquery.js")}t.$=t.jQuery=r,n.$=n.$||r,n.jQuery=n.jQuery||r}],"jquery.js":function(e,t,n){!function(e,t){"object"==typeofn&&"object"==typeofn.exports?n.exports=e.document?t(e,!0):function(e){if(!e.document)thrownewError("jQuery requires a window with a document");returnt(e)}:t(e)}("undefined"!=typeofwindow?window:this,function(e,t){functionn(e){vart=e.length,n=ie.type(e);return"function"!==n&&!ie.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeoft&&t>0&&t-1ine))}functionr(e,t,n){if(ie.isFunction(t))returnie.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)returnie.grep(e,function(e){returne===t!==n});if("string"==typeoft){if(de.test(t))returnie.filter(t,e,n);t=ie.filter(t,e)}returnie.grep(e,function(e){returnie.inArray(e,t)>=0!==n})}functioni(e,t){doe=e[t];while(e&&1!==e.nodeType);returne}functiono(e){vart=xe[e]={};returnie.each(e.match(be)||[],function(e,n){t[n]=!0}),t}functiona(){he.addEventListener?(he.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(he.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}functions(){(he.addEventListener||"load"===event.type||"complete"===he.readyState)&&(a(),ie.ready())}functionl(e,t,n){if(void0===n&&1===e.nodeType){varr="data-"+t.replace(Ee,"-$1").toLowerCase();if(n=e.getAttribute(r),"string"==typeofn){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Ne.test(n)?ie.parseJSON(n):n)}catch(e){}ie.data(e,t,n)}elsen=void0}returnn}functionu(e){vart;for(tine)if(("data"!==t||!ie.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}functionc(e,t,n,r){if(ie.acceptData(e)){vari,o,a=ie.expando,s=e.nodeType,l=s?ie.cache:e,u=s?e[a]:e[a]&&a;if(u&&l[u]&&(r||l[u].data)||void0!==n||"string"!=typeoft)returnu||(u=s?e[a]=Q.pop()||ie.guid++:a),l[u]||(l[u]=s?{}:{toJSON:ie.noop}),"object"!=typeoft&&"function"!=typeoft||(r?l[u]=ie.extend(l[u],t):l[u].data=ie.extend(l[u].data,t)),o=l[u],r||(o.data||(o.data={}),o=o.data),void0!==n&&(o[ie.camelCase(t)]=n),"string"==typeoft?(i=o[t],null==i&&(i=o[ie.camelCase(t)])):i=o,i}}functionf(e,t,n){if(ie.acceptData(e)){varr,i,o=e.nodeType,a=o?ie.cache:e,s=o?e[ie.expando]:ie.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){ie.isArray(t)?t=t.concat(ie.map(t,ie.camelCase)):tinr?t=[t]:(t=ie.camelCase(t),t=tinr?[t]:t.split(" ")),i=t.length;for(;i--;)deleter[t[i]];if(n?!u(r):!ie.isEmptyObject(r))return}(n||(deletea[s].data,u(a[s])))&&(o?ie.cleanData([e],!0):ne.deleteExpando||a!=a.window?deletea[s]:a[s]=null)}}}functiond(){return!0}functionp(){return!1}functionh(){try{returnhe.activeElement}catch(e){}}functionm(e){vart=Fe.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());returnn}functiong(e,t){varn,r,i=0,o=typeofe.getElementsByTagName!==Te?e.getElementsByTagName(t||"*"):typeofe.querySelectorAll!==Te?e.querySelectorAll(t||"*"):void0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||ie.nodeName(r,t)?o.push(r):ie.merge(o,g(r,t));returnvoid0===t||t&&ie.nodeName(e,t)?ie.merge([e],o):o}functiony(e){De.test(e.type)&&(e.defaultChecked=e.checked)}functionv(e,t){returnie.nodeName(e,"table")&&ie.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}functionb(e){returne.type=(null!==ie.find.attr(e,"type"))+"/"+e.type,e}functionx(e){vart=Ve.exec(e.type);returnt?e.type=t[1]:e.removeAttribute("type"),e}functionw(e,t){for(varn,r=0;null!=(n=e[r]);r++)ie._data(n,"globalEval",!t||ie._data(t[r],"globalEval"))}functionT(e,t){if(1===t.nodeType&&ie.hasData(e)){varn,r,i,o=ie._data(e),a=ie._data(t,o),s=o.events;if(s){deletea.handle,a.events={};for(nins)for(r=0,i=s[n].length;r<i;r++)ie.event.ad
!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(){vare=Package.meteor.Meteor,n=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package["templating-runtime"].Template,o=Package.blaze.Blaze,i=Package.blaze.UI,a=Package.blaze.Handlebars,s=Package.underscore._,c=Package.tracker.Tracker,u=Package.tracker.Deps,h=Package["iron:core"].Iron,l=Package.htmljs.HTML,g=Package.spacebars.Spacebars,d,p,m;(function(){vare=[];if(Package["cmather:iron-layout"]&&e.push("\n\n The cmather:iron-{x} packages were migrated to the new package system with the wrong name, and you have duplicate copies.\n You can see which cmather:iron-{x} packages have been installed by using this command:\n\n > meteor list\n\n Can you remove any installed cmather:iron-{x} packages like this: \n\n > meteor remove cmather:iron-core\n > meteor remove cmather:iron-router\n > meteor remove cmather:iron-dynamic-template\n > meteor remove cmather:iron-dynamic-layout\n \n The new packages are named iron:{x}. For example:\n\n > meteor add iron:router\n\n Sorry for the hassle, but thank you! \n\n "),Package["cmather:blaze-layout"]&&e.push("The blaze-layout package has been replaced by iron-layout. Please remove the package like this:\n> meteor remove cmather:blaze-layout\n"),e.length>0)thrownewError("Sorry! Looks like there's a few errors related to iron:layout\n\n"+e.join("\n\n"))}).call(this),function(){r.__checkName("__IronDefaultLayout__"),r.__IronDefaultLayout__=newr("Template.__IronDefaultLayout__",function(){vare=this;returng.include(e.lookupTemplate("yield"))})}.call(this),function(){vare=h.DynamicTemplate,n=h.utils.inherits;d=function(e){for(;e;){if("Iron.Layout"===e.name)returne.__dynamicTemplate__;e=e.parentView}returnnull},p=function(e){varn=this;p.__super__.constructor.apply(this,arguments),e=e||{},this.name="Iron.Layout",this._regions={},this._regionHooks={},this.defaultTemplate("__IronDefaultLayout__"),e.content&&this.render(e.content)},m=p.DEFAULT_REGION="main",n(p,h.DynamicTemplate),p.prototype.region=function(e,n){returnthis._ensureRegion(e,n)},p.prototype.destroyRegions=function(){s.each(this._regions,function(e){e.destroy()}),this._regions={}},p.prototype.render=function(e,n){n=n||{};vart=n.to||n.region||m,r=this.region(t);this._trackRenderedRegion(t),r.template(e),r.data(n.data)},p.prototype.has=function(e){returne=e||p.DEFAULT_REGION,!!this._regions[e]},p.prototype.regionKeys=function(){returns.keys(this._regions)},p.prototype.clear=function(e){returne=e||p.DEFAULT_REGION,this.has(e)&&this.region(e).template(null),this},p.prototype.clearAll=function(){returns.each(this._regions,function(e){e.template(null)}),this},p.prototype.beginRendering=function(e){varn=this;if(this._finishRenderingTransaction&&this._finishRenderingTransaction(),this._finishRenderingTransaction=s.once(function(){vart=n._endRendering({flush:!1});e&&e(t)}),u.afterFlush(this._finishRenderingTransaction),this._renderedRegions)thrownewError("You called beginRendering again before calling endRendering");this._renderedRegions={}},p.prototype._trackRenderedRegion=function(e){this._renderedRegions&&(this._renderedRegions[e]=!0)},p.prototype._endRendering=function(e){e=e||{},e.flush!==!1&&u.flush();varn=this._renderedRegions||{};returnthis._renderedRegions=null,s.keys(n)},s.each(["onRegionCreated","onRegionRendered","onRegionDestroyed"],function(e){p.prototype[e]=function(n){vart=this._regionHooks[e]=this._regionHooks[e]||[];returnt.push(n),this}}),p.prototype._ensureRegion=function(e,n){returnthis._regions[e]=this._regions[e]||this._createDynamicTemplate(e,n)},p.prototype._createDynamicTemplate=function(e,n){vart=this,r=newh.DynamicTemplate(n),o=h.utils.capitalize;returnr._region=e,s.each(["viewCreated","viewReady","viewDestroyed"],function(e){e=o(e),r["on"+e](function(n){varr=this,o={viewCreated:"regionCreated",viewReady:"regionRendered",viewDestroyed:"regionDestroyed"}[e];t._runRegionHooks("on"+o,r,n)})}),r},p.prototype._runRegionHooks=function(e,n,t){for(varr=this,o=this._regionHooks[e]||[],i,a=0;a<o.length;a++)i=o[a],i.call(n,t.region,t,this)},"un
!function(){vare=Package.meteor.Meteor,r=Package.meteor.global,t=Package.meteor.meteorEnv,n=Package.underscore._,i=Package["iron:core"].Iron,o,a;(function(){functione(e){returne.replace(/([=!:$\/()])/g,"\\$1")}functionr(o,a,s){a&&"[object Array]"!==t(a)&&(s=a,a=null),a=a||[],s=s||{};varc=s.strict,u=s.end!==!1,p=s.sensitive?"":"i",l=0;if(oinstanceofRegExp){varh=o.source.match(/\((?!\?)/g)||[];returna.push.apply(a,h.map(function(e,r){return{name:r,delimiter:null,optional:!1,repeat:!1}})),i(o,a)}if("[object Array]"===t(o))returno=o.map(function(e){returnr(e,a,s).source}),i(newRegExp("(?:"+o.join("|")+")",p),a);o=o.replace(n,function(r,t,n,i,o,s,c,u){if(t)returnt;if(u)return"\\"+u;varp="+"===c||"*"===c,h="?"===c||"*"===c;returna.push({name:i||l++,delimiter:n||"/",optional:h,repeat:p}),n=n?"\\"+n:"",o=e(o||s||"[^"+(n||"\\/")+"]+?"),p&&(o=o+"(?:"+n+o+")*"),h?"(?:"+n+"("+o+"))?":n+"("+o+")"});varf="/"===o[o.length-1];returnc||(o=(f?o.slice(0,-2):o)+"(?:\\/(?=$))?"),u||(o+=c&&f?"":"(?=\\/|$)"),i(newRegExp("^"+o+(u?"$":""),p),a)}vart=function(e){returnObject.prototype.toString.call(e)},n=newRegExp(["(\\\\.)","([\\/.])?(?:\\:(\\w+)(?:\\(((?:\\\\.|[^)])*)\\))?|\\(((?:\\\\.|[^)])*)\\))([+*?])?","([.+*?=^!:${}()[\\]|\\/])"].join("|"),"g"),i=function(e,r){returne.keys=r,e};o=r}).call(this),function(){functione(e){try{returndecodeURIComponent(e.replace(/\+/g," "))}catch(r){returnvoid(r.constructor==URIError&&t("Tried to decode an invalid URI component: "+JSON.stringify(e)+" "+r.stack))}}functionr(e){try{returndecodeURI(e.replace(/\+/g," "))}catch(r){returnvoid(r.constructor==URIError&&t("Tried to decode an invalid URI: "+JSON.stringify(e)+" "+r.stack))}}vart=i.utils.warn;a=function(e,r){r=r||{},this.options=r,this.keys=[],this.regexp=o(e,this.keys,r),this._originalPath=e,n.extend(this,a.parse(e))},a.normalize=function(e){if(einstanceofRegExp)returne;if("string"!=typeofe)return"/";varr=a.parse(e),t=r.pathname;return"/"!==t.charAt(0)&&(t="/"+t),t.length>1&&"/"===t.charAt(t.length-1)&&(t=t.slice(0,t.length-1)),t},a.isSameOrigin=function(e,r){vart=a.parse(e),n=a.parse(r),i=t.origin===n.origin;returni},a.fromQueryString=function(r){if(!r)return{};if("string"!=typeofr)thrownewError("expected string");"?"===r.charAt(0)&&(r=r.slice(1));vart=r.split("&"),i={},o;returnn.each(t,function(r){vart=r.split("="),n=t[0],o=e(t[1]);"[]"===n.slice(-2)?(n=n.slice(0,-2),i[n]=i[n]||[],i[n].push(o)):i[n]=o}),i},a.toQueryString=function(e){varr=[];return"string"==typeofe?"?"!==e.charAt(0)?"?"+e:e:(n.each(e,function(e,t){n.isArray(e)?n.each(e,function(e){r.push(encodeURIComponent(t)+"[]="+encodeURIComponent(e))}):r.push(encodeURIComponent(t)+"="+encodeURIComponent(e))}),r.length>0?"?"+r.join("&"):"")},a.parse=function(e){if("string"!=typeofe)return{};varr=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,t=e.match(r),n=t[1]?t[1].toLowerCase():void0,i=t[3],o=!!i,s=t[4]?t[4].toLowerCase():void0,c=s?s.split("@"):[],u,p;2==c.length?(p=c[0],u=c[1]):1==c.length?(u=c[0],p=void0):(u=void0,p=void0);varl=u&&u.split(":")||[],h=l[0],f=l[1],g=n&&u?n+"//"+u:void0,d=t[5],m=t[8],y=e,v=t[6],w,R=m&&m.indexOf("?")||-1;~R&&!v?(v=m.slice(R),m=m.substr(0,R),w=v.slice(1)):w=t[7];varx=d+(v||""),U=a.fromQueryString(w),S=[n||"",o?"//":"",s||""].join(""),k=[n||"",o?"//":"",s||"",d||"",v||"",m||""].join("");return{rootUrl:S||"",originalUrl:e||"",href:k||"",protocol:n||"",auth:p||"",host:u||"",hostname:h||"",port:f||"",origin:g||"",path:x||"",pathname:d||"",search:v||"",query:w||"",queryObject:U||"",hash:m||"",slashes:o}},a.prototype.test=function(e){returnthis.regexp.test(a.normalize(e))},a.prototype.exec=function(e){returnthis.regexp.exec(a.normalize(e))},a.prototype.params=function(t){if(!t)return[];varn=[],i=this.exec(t),o,s=this.keys,c,u;if(!i)thrownewError('The route named "'+this.name+'" does not match the path "'+t+'"');for(varp=1,l=i.length;p<l;++p)c=s[p-1],u="string"==typeofi[p]?e(i[p]):i[p],c?n[c.name]=void0!==n[c.name]?n[c.name]:u:n.push(u);returnt=r(t),"undefined"!=typeoft&&(o=t.split("?")[1],o&&(o=
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i=Package.ejson.EJSON,o=Package["iron:core"].Iron,a,s;(function(){vart=o.Url;a=function(e,n,i){r.isFunction(e)&&(i=i||n||{},n=e,e="/",this.middleware=!0,"undefined"==typeofi.mount&&(i.mount=!0)),"object"==typeofn&&(i=n,n=i.action||"action"),i=i||{},this.options=i,this.mount=i.mount,this.method=i.method&&i.method.toLowerCase()||!1,this.where=i.where||"client",this.mount&&(i.end=!1),i.name?this.name=i.name:"string"==typeofe&&"/"!==e.charAt(0)?this.name=e:"string"==typeofe&&"/"!==e&&(this.name=e.split("/").slice(1).join(".")),e=i.path||e,"string"==typeofe&&"/"!==e.charAt(0)&&(e="/"+e),this.path=e,this.compiledUrl=newt(e,i),r.isString(n)?this.handle=functiont(){vare=this[n];if("function"!=typeofe)thrownewError("No method named "+JSON.stringify(n)+" found on handler.");returne.apply(this,arguments)}:r.isFunction(n)&&(this.handle=n)},a.prototype.test=function(t,e){e=e||{};varn=this.compiledUrl.test(t),r=!0,i=!0;returnthis.method&&e.method&&(r=this.method==e.method.toLowerCase()),e.where&&(i=this.where==e.where),n&&r&&i},a.prototype.params=function(t){returnthis.compiledUrl.params(t)},a.prototype.resolve=function(t,e){returnthis.compiledUrl.resolve(t,e)},a.prototype.clone=function(){vart=newa(this.path,this.handle,this.options);returnt.name=this.name,t}}).call(this),function(){vare=o.Url,n=o.utils.assert,h=o.utils.defaultValue;s=function(){this._stack=[],this.length=0},s.prototype._create=function(t,e,n){vari=newa(t,e,n),o=i.name;if(o){if(r.has(this._stack,o))thrownewError("Handler with name '"+o+"' already exists.");this._stack[o]=i}returni},s.prototype.findByName=function(t){returnthis._stack[t]},s.prototype.push=function(t,e,n){varr=this._create(t,e,n);returnthis._stack.push(r),this.length++,r},s.prototype.append=function(){vart=this,e=r.toArray(arguments),n={};return"object"==typeofe[e.length-1]&&(n=e.pop()),r.each(e,function(e){if("undefined"!=typeofe)if("function"==typeofe)t.push(e,n);else{if(!r.isArray(e))thrownewError("Can only append functions or arrays to the MiddlewareStack");t.append.apply(t,e.concat([n]))}}),this},s.prototype.insertAt=function(t,e,n,r){vari=this._create(e,n,r);returnthis._stack.splice(t,0,i),this.length=this._stack.length,this},s.prototype.insertBefore=function(t,e,n,i){varo,a;if(!(o=this._stack[t]))thrownewError("Couldn't find a handler named '"+t+"' on the path stack");returna=r.indexOf(this._stack,o),this.insertAt(a,e,n,i),this},s.prototype.insertAfter=function(t,e,n,i){varo,a;if(!(o=this._stack[t]))thrownewError("Couldn't find a handler named '"+t+"' on the path stack");returna=r.indexOf(this._stack,o),this.insertAt(a+1,e,n,i),this},s.prototype.concat=function(){vart=news,e=Array.prototype.concat,n=i.clone(this._stack),o=r.map(r.toArray(arguments),function(t){returni.clone(t._stack)});returnt._stack=e.apply(n,o),t.length=t._stack.length,t},s.prototype.dispatch=functionr(i,o,a){vars=this,l=i;n("string"==typeofi,"Requires url"),n("object"==typeofo,"Requires context object"),i=e.normalize(i||"/"),h(o,"request",{}),h(o,"response",{}),h(o,"originalUrl",i),h(o,"_method",o.method),h(o,"_handlersForEnv",{client:!1,server:!1}),h(o,"_handled",!1),h(o,"isHandled",function(){returno._handled}),h(o,"willBeHandledOnClient",function(){returno._handlersForEnv.client}),h(o,"willBeHandledOnServer",function(){returno._handlersForEnv.server});varc=function(){if(a)try{a.apply(this,arguments)}catch(t){throwt._punt=!0,t}},u=0,p=t.bindEnvironment(functionn(r){vara=s._stack[u++];if(o.url=o.request.url=o.originalUrl,!a)returnc.call(o,r);if(!a.test(i,{method:o._method}))returnp(r);varh=t.isClient?"client":"server";if(a.middleware||(o._handlersForEnv[a.where]=!0),a.where!==h)returnp(r);if(o.next=p,a.mount){varl=e.normalize(a.compiledUrl.pathname),d=i.substr(l.length,i.length);d=e.normalize(d),o.url=o.request.url=d}try{varf=a.handle.length,m=o.request,y=o.response;returnr&&4===f?a.handle.call(o,r,m,y,p):!r&&f<4?a.handle.call(o,m,y,p):p(r)}catch
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,r=Package.tracker.Tracker,o=Package.tracker.Deps,i=Package.jquery.$,c=Package.jquery.jQuery,s=Package["iron:core"].Iron,h,u,l,f,p;(function(){vart=s.Url,e="__hash__";h=function(n){vara=t.parse(n),r=a.hash&&a.hash.replace("#",""),o=a.search,i=a.pathname,c=a.rootUrl;if(r&&"!"!==r.charAt(0)){vars=e+"="+r;o=o?o+"&":"?",o+=s,r=""}return!r&&i?r="#!"+i.substring(1):r&&(r="#"+r),[c,r,o].join("")},u=function(n){varr=t.parse(n),o=r.hash&&r.hash.replace("#!","/"),i=r.search,c=r.rootUrl,s;returna.has(r.queryObject,e)?(s="#"+r.queryObject[e],deleter.queryObject[e]):s="",[c,o,t.toQueryString(r.queryObject),s].join("")},l=function(n){vara=t.parse(n),r=a.queryObject;returna.hash&&(r[e]=a.hash.replace("#","")),["!",a.pathname.substring(1),t.toQueryString(r)].join("")}}).call(this),function(){vart=s.Url;f=function(e,n){a.extend(this,t.parse(e),{options:n||{}})},f.prototype.equals=function(t){return!!t&&(tinstanceoff&&(t.pathname==this.pathname&&t.search==this.search&&t.hash==this.hash&&t.options.historyState===this.options.historyState))},f.prototype.isCancelled=function(){return!!this._isCancelled},f.prototype.cancelUrlChange=function(){this._isCancelled=!0}}.call(this),function(){vare=s.Url,n=null,r=newo.Dependency,c={go:[],popState:[]},g=function(){return/MSIE 9/.test(navigator.appVersion)},y=function(){return/MSIE 8/.test(navigator.appVersion)},d=function(){return!!Package.appcache},S=function(){return"undefined"==typeofhistory||"function"!=typeofhistory.pushState},v=function(){returnp.options.useHashPaths||y()||g()||d()||S()},k=function(){return!!p.options.useHashPaths},w=function(t,e){a.each(c[t],function(t){t.call(e)})},P=function(t){if(!(tinstanceoff))thrownewError("Expected a State instance");return!t.equals(n)&&(n=t,r.changed(),!0)},m=function(){vart=location.href,e;e=k()?newf(u(t)):newf(t,{historyState:history.state}),w("popState",e),P(e)},j=function(t){vare=q;e&&e(t)},_=function(t,e){e=e||{};varn=newf(t,e);w("go",n),P(n)&&o.afterFlush(function(){n.isCancelled()||(k()?location.hash=l(t):e.replaceState===!0?history.replaceState(e.historyState,null,t):history.pushState(e.historyState,null,t))})},q=function(t){try{varn=t.currentTarget,a=n.href,r=n.pathname+n.search+n.hash;if(r=r.replace(/(^\/?)/,"/"),t.isDefaultPrevented())returnvoidt.preventDefault();if(t.metaKey||t.ctrlKey||t.shiftKey)return;if(n.target)return;if(!e.isSameOrigin(a,location.href))return;t.preventDefault(),_(r)}catch(e){throwt.preventDefault(),e}};p={},p.options={linkSelector:"a[href]",useHashPaths:!1},p.configure=function(t){a.extend(this.options,t||{})},p.get=function(){returnr.depend(),n},p.start=function(){if(!this._isStarted){varn=e.parse(location.href);if(v()){if(n.pathname.length>1){vara=h(location.href);window.location=a}this.configure({useHashPaths:!0})}varr=location.href;if(k()){varo=newf(u(r));P(o)}else{if("!"===n.hash.replace("#","")[0])varr=u(r);varc={initial:!0};history.replaceState(c,null,r);varo=newf(r,{historyState:c});P(o)}i(window).on("popstate.iron-location",m),i(window).on("hashchange.iron-location",m),t.startup(function(){i(document).on("click.iron-location",p.options.linkSelector,j)}),this._isStarted=!0}},p.stop=function(){this._isStarted&&(i(window).on("popstate.iron-location"),i(window).on("hashchange.iron-location"),i(document).off("click.iron-location"),this._isStarted=!1)},p.onClick=function(t){q=t},p.go=function(t,e){return_(t,e)},p.onGo=function(t){c.go.push(t)},p.onPopState=function(t){c.popState.push(t)},p.start(),s.Location=p}.call(this),"undefined"==typeofPackage&&(Package={}),function(t,e){for(varnine)nint||(t[n]=e[n])}(Package["iron:location"]={},{urlToHashStyle:h,urlFromHashStyle:u})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,i=Package.tracker.Tracker,r=Package.tracker.Deps,c=Package.ejson.EJSON,s=Package.modules.meteorInstall,o=Package.modules.Buffer,u=Package.modules.process,d=Package["ecmascript-runtime"].Symbol,f=Package["ecmascript-runtime"].Map,l=Package["ecmascript-runtime"].Set,k=Package["babel-runtime"].meteorBabelHelpers,p=Package.promise.Promise,y,g=s({node_modules:{meteor:{"reactive-dict":{"reactive-dict.js":["babel-runtime/helpers/typeof",function(e,t,n){varr;n.import("babel-runtime/helpers/typeof",{default:function(e){r=e}});vars=functione(t){returnvoid0===t?"undefined":c.stringify(t)},o=functione(t){if(void0!==t&&"undefined"!==t)returnc.parse(t)},u=functione(t){t&&t.changed()};y=function(e){functiont(t){returne.apply(this,arguments)}returnt.toString=function(){returne.toString()},t}(function(e){if(e)if("string"==typeofe)y._registerDictForMigrate(e,this),this.keys=y._loadMigratedDict(e)||{},this.name=e;else{if("object"!==("undefined"==typeofe?"undefined":r(e)))thrownewError("Invalid ReactiveDict argument: "+e);this.keys=e}elsethis.keys={};this.allDeps=newi.Dependency,this.keyDeps={},this.keyValueDeps={}}),a.extend(y.prototype,{set:function(){functione(e,t){varn=this;if("object"===("undefined"==typeofe?"undefined":r(e))&&void0===t)returnvoidn._setObject(e);vari=e;t=s(t);varc=a.has(n.keys,i),o=c?n.keys[i]:"undefined",d=t!==o;n.keys[i]=t,!d&&c||n.allDeps.changed(),d&&(u(n.keyDeps[i]),n.keyValueDeps[i]&&(u(n.keyValueDeps[i][o]),u(n.keyValueDeps[i][t])))}returne}(),setDefault:function(){functione(e,t){varn=this;if("object"===("undefined"==typeofe?"undefined":r(e))&&void0===t)returnvoidn._setDefaultObject(e);vari=e;a.has(n.keys,i)||n.set(i,t)}returne}(),get:function(){functione(e){vart=this;returnt._ensureKey(e),t.keyDeps[e].depend(),o(t.keys[e])}returne}(),equals:function(){functione(e,t){varn=this,r=null;if(Package.mongo&&(r=Package.mongo.Mongo.ObjectID),!("string"==typeoft||"number"==typeoft||"boolean"==typeoft||"undefined"==typeoft||tinstanceofDate||r&&tinstanceofr||null===t))thrownewError("ReactiveDict.equals: value must be scalar");varu=s(t);if(i.active){n._ensureKey(e),a.has(n.keyValueDeps[e],u)||(n.keyValueDeps[e][u]=newi.Dependency);vard=n.keyValueDeps[e][u].depend();d&&i.onInvalidate(function(){n.keyValueDeps[e][u].hasDependents()||deleten.keyValueDeps[e][u]})}varf=void0;returna.has(n.keys,e)&&(f=o(n.keys[e])),c.equals(f,t)}returne}(),all:function(){functione(){this.allDeps.depend();vare={};returna.each(this.keys,function(t,n){e[n]=o(t)}),e}returne}(),clear:function(){functione(){vare=this,t=e.keys;e.keys={},e.allDeps.changed(),a.each(t,function(t,n){u(e.keyDeps[n]),e.keyValueDeps[n]&&(u(e.keyValueDeps[n][t]),u(e.keyValueDeps[n].undefined))})}returne}(),delete:function(){functione(e){vart=this,n=!1;if(a.has(t.keys,e)){vari=t.keys[e];deletet.keys[e],u(t.keyDeps[e]),t.keyValueDeps[e]&&(u(t.keyValueDeps[e][i]),u(t.keyValueDeps[e].undefined)),t.allDeps.changed(),n=!0}returnn}returne}(),_setObject:function(){functione(e){vart=this;a.each(e,function(e,n){t.set(n,e)})}returne}(),_setDefaultObject:function(){functione(e){vart=this;a.each(e,function(e,n){t.setDefault(n,e)})}returne}(),_ensureKey:function(){functione(e){vart=this;eint.keyDeps||(t.keyDeps[e]=newi.Dependency,t.keyValueDeps[e]={})}returne}(),_getMigrationData:function(){functione(){returnthis.keys}returne}()})}],"migration.js":function(){if(y._migratedDictData={},y._dictsToMigrate={},y._loadMigratedDict=function(e){returna.has(y._migratedDictData,e)?y._migratedDictData[e]:null},y._registerDictForMigrate=function(e,t){if(a.has(y._dictsToMigrate,e))thrownewError("Duplicate ReactiveDict name: "+e);y._dictsToMigrate[e]=t},e.isClient&&Package.reload){vart=Package.reload.Reload._migrationData("reactive-dict");t&&t.dicts&&(y._migratedDictData=t.dicts),Package.reload.Reload._onMigrate("reactive-dict",function(){vare=y._dictsToMigrate,t={};for(varnink.sanitizeForInObject(e
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,o=Package.tracker.Tracker,i=Package.tracker.Deps,r=Package["reactive-dict"].ReactiveDict,u=Package["templating-runtime"].Template,s=Package["iron:core"].Iron,c=Package.blaze.Blaze,l=Package.blaze.UI,p=Package.blaze.Handlebars,d=Package.spacebars.Spacebars,y=Package.htmljs.HTML,h,f;(function(){vart=s.utils.assert,e=function(){for(vart={},e=i.currentComputation;e;)t[String(e._id)]=!0,e=e._parent;returnt},n=function(n){varo=e(),i=a.keys(n._dependentsById);a.each(i,function(e){t(!o[e],"\n\nYou called wait() after calling ready() inside the same computation tree.\n\nYou can fix this problem in two possible ways:\n\n1) Put all of your wait() calls before any ready() calls.\n2) Put your ready() call in its own computation with Deps.autorun.")})};h=function(){this._readyDep=newi.Dependency,this._comps=[],this._notReadyCount=0},h.prototype.wait=function(t){vare=this,o=i.currentComputation;n(e._readyDep),i.nonreactive(function(){varn=null,r=i.autorun(function(a){varo=!!t(),i=e._notReadyCount;a.firstRun&&!o?e._notReadyCount++:null!==n&&o!==n&&o===!0?e._notReadyCount--:null!==n&&o!==n&&o===!1&&e._notReadyCount++,n=o,0===i&&e._notReadyCount>0?e._readyDep.changed():i>0&&0===e._notReadyCount&&e._readyDep.changed()});e._comps.push(r),o&&o.onInvalidate(function(){i.afterFlush(function(){r.stop(),e._comps.splice(a.indexOf(e._comps,r),1),n===!1&&(e._notReadyCount--,0===e._notReadyCount&&e._readyDep.changed())})})})},h.prototype.ready=function(){returnthis._readyDep.depend(),0===this._notReadyCount},h.prototype.stop=function(){a.each(this._comps,function(t){t.stop()}),this._comps=[]},s.WaitList=h}).call(this),function(){vart=s.utils.debug("iron:controller"),e=s.Layout,n=s.DynamicTemplate,o=function(t,e){returnfunction(){return"function"==typeoft?t.apply(e,arguments):t}};f=function(t){varn=this;this.options=t||{},this._layout=this.options.layout||newe(this.options),this._isController=!0,this._layout._setLookupHost(this);vara=f._collectEventMaps.call(this.constructor);this._layout.events(a,this),this.init(t)},f.prototype.layout=function(t,e){varn=this;returnthis._layout.template(t),e&&a.has(e,"data")&&this._layout.data(o(e.data,this)),{data:function(t){returnn._layout.data(o(t,n))}}},f.prototype.render=function(t,e){varn=this;e&&"undefined"!=typeofe.data&&(e.data=o(e.data,this));vara=this._layout.render(t,e);return{data:function(t){returna.data(o(t,n))}}},f.prototype.beginRendering=function(t){returnthis._layout.beginRendering(t)},f.extend=function(t){returns.utils.extend(this,t)},f.events=function(t){returnthis._eventMap=t,this};vari=function(t,e){varn={};returnt.__super__&&a.extend(n,i(t.__super__.constructor,e)),a.has(t,e)?a.extend(n,t[e]):n};f._collectEventMaps=function(){returni(this,"_eventMap")},f._helpers={},f.helpers=function(t){returna.extend(this._helpers,t),this},"undefined"!=typeofu&&(s.controller=function(){returnn.findLookupHostWithProperty(c.getView(),"_isController")},u.registerHelper("get",function(t){vare=s.controller();if(e&&e.state)returne.state.get(t)})),s.Controller=f}.call(this),function(){vart=s.Layout,e=s.utils.debug("iron:controller"),n=s.utils.defaultValue,o=function(t,e){returnfunction(){return"function"==typeoft?t.apply(e,arguments):t}};f.prototype.init=function(t){this._waitlist=newh,this.state=newr},f.prototype.insert=function(t){returnthis._layout.insert.apply(this._layout,arguments)},f.prototype.wait=function(t){vare=this;if(t)returna.isArray(t)?a.each(t,functiont(n){e.wait(n)}):t.ready?this._waitlist.wait(function(){returnt.ready()}):this._waitlist.wait(t),this},f.prototype.ready=function(){returnthis._waitlist.ready()},f.prototype.stop=function(){this._waitlist.stop()}}.call(this),"undefined"==typeofPackage&&(Package={}),Package["iron:controller"]={}}();
!function(){vart=Package.underscore._,o=Package.tracker.Tracker,e=Package.tracker.Deps,r=Package.blaze.Blaze,n=Package.blaze.UI,i=Package.blaze.Handlebars,a=Package["templating-runtime"].Template,u=Package.ejson.EJSON,s=Package.meteor.Meteor,l=Package.meteor.global,c=Package.meteor.meteorEnv,p=Package["iron:core"].Iron,h=Package.htmljs.HTML,f=Package.spacebars.Spacebars,d,y,_,m,g;(function(){d=news.EnvironmentVariable}).call(this),function(){y=["get","post","put","delete","patch"]}.call(this),function(){varo=p.Controller,e=p.Url,r=p.MiddlewareStack,n=p.utils.assert;_=o.extend({constructor:function(o){_.__super__.constructor.apply(this,arguments),o=o||{},this.options=o,this._onStopCallbacks=[],this.route=o.route,this.params=[];vare=this.lookupOption("data");"function"==typeofe?this.data=t.bind(e,this):"undefined"!=typeofe&&(this.data=function(){returne}),this.init(o)}}),_.prototype.lookupOption=function(o){if(this.route&&this.route.options&&t.has(this.route.options,o))returnthis.route.options[o];if(t.has(this.options,o))returnthis.options[o];if("undefined"!=typeofthis[o])returnthis[o];vare=d.get();returne&&t.has(e,o)?e[o]:this.router&&this.router.options&&t.has(this.router.options,o)?this.router.options[o]:void0},_.prototype.configureFromUrl=function(t,o,e){n("string"==typeoft,"url must be a string"),o=o||{},this.request=o.request||{},this.response=o.response||{},this.url=o.url||t,this.originalUrl=o.originalUrl||t,this.method=this.request.method,this.route&&this.setParams(this.route.params(t),e)},_.prototype._collectHooks=function(){varo=this,e=t.toArray(arguments),r=function(e){if(!e)return[];varr=o.router.lookupHook,n=t.isArray(e)?e:[e];returnt.map(n,function(t){returnr(t)})},n=function(o,e){vari=[];returno.__super__&&(i=i.concat(n(o.__super__.constructor,e))),t.has(o.prototype,e)?i.concat(r(o.prototype[e])):i},i=function(t){for(varo=0;o<e.length;o++)t(e[o])},a=[];i(function(t){vare=o.route&&o.route.getName(),r=o.router.getHooks(t,e);a=a.concat(r)});varu=[];i(function(t){vare=n(o.constructor,t);u=u.concat(e)});vars=[];i(function(e){if(t.has(o,e)){varn=r(o[e]);s=s.concat(n)}});varl=[];o.route&&i(function(t){vare=r(o.route.options[t]);l=l.concat(e)});varc=a.concat(l).concat(u).concat(s);returnc},_.prototype.runHooks=function(){for(vart=this._collectHooks.apply(this,arguments),o=0,e=t.length;o<e;o++){varr=t[o];r.call(this)}returnt.length},_.prototype.getParams=function(){returnthis.params},_.prototype.setParams=function(t){returnthis.params=t,this},p.RouteController=_}.call(this),function(){varr=p.Controller,n=p.Url,i=p.MiddlewareStack,a=p.utils.debug("iron-router:RouteController");if(_.prototype.init=function(t){_.__super__.init.apply(this,arguments),this._computation=null,this._paramsDep=newo.Dependency,this.location=p.Location},_.prototype.getParams=function(){returnthis._paramsDep.depend(),this.params},_.prototype.setParams=function(o,e){varr=function(o,r){if(!(oinstanceofArray))thrownewError("you called equals with a non array value in setParams");if(!(rinstanceofArray))return!1;if(o.length!==r.length)return!1;for(varn=0;n<o.length;n++)if(!u.equals(o[n],r[n],e))return!1;vari=t.keys(o),a=t.keys(r),s;if(i.length!==a.length)return!1;for(varn=0;n<i.length;n++){if(s=i[n],!t.has(r,s))return!1;if(!u.equals(o[s],r[s]))return!1}return!0};if(!r(this.params,o))returnthis.params=o,e=e||{},e.reactive!==!1&&this._paramsDep.changed(),this},_.prototype.dispatch=function(t,o,r){if(this._computation&&!this._computation.stopped)thrownewError("RouteController computation is already running. Stop it first.");varn=this;returne.nonreactive(function(){e.autorun(function(e){n._computation=e,t.dispatch(o,n,r)})}),n},_.prototype._runRoute=function(o,r,n){vara=this,u=this._collectHooks("subscriptions");t.each(u,function(t){a.wait(t.call(a))});vars=this._collectHooks("waitOn");t.each(s,function(t){a.wait(t.call(a))});varl=s.length>0,c,h,f=function(){returne.nonreactive(function(){returna._layout.template()})},d=function(){returne.nonreactive(function(){vart=a._layout._regions.main;retu
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.jquery.$,i=Package.jquery.jQuery;!function(e){"function"==typeofdefine&&define.amd?define(["jquery"],e):e("object"==typeofexports?require("jquery"):i)}(function(e){vart=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)vart=e.fn.select2.amd;vart;returnfunction(){if(!t||!t.requirejs){t?n=t:t={};vare,n,r;!function(t){functioni(e,t){return$.call(e,t)}functiono(e,t){varn,r,i,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e&&"."===e.charAt(0))if(t){for(e=e.split("/"),s=e.length-1,y.nodeIdCompat&&b.test(e[s])&&(e[s]=e[s].replace(b,"")),e=h.slice(0,h.length-1).concat(e),u=0;u<e.length;u+=1)if(p=e[u],"."===p)e.splice(u,1),u-=1;elseif(".."===p){if(1===u&&(".."===e[2]||".."===e[0]))break;u>0&&(e.splice(u-1,2),u-=2)}e=e.join("/")}else0===e.indexOf("./")&&(e=e.substring(2));if((h||g)&&f){for(n=e.split("/"),u=n.length;u>0;u-=1){if(r=n.slice(0,u).join("/"),h)for(d=h.length;d>0;d-=1)if(i=f[h.slice(0,d).join("/")],i&&(i=i[r])){o=i,a=u;break}if(o)break;!l&&g&&g[r]&&(l=g[r],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}returne}functions(e,n){returnfunction(){varr=w.call(arguments,0);return"string"!=typeofr[0]&&1===r.length&&r.push(null),h.apply(t,r.concat([e,n]))}}functiona(e){returnfunction(t){returno(t,e)}}functionl(e){returnfunction(t){m[e]=t}}functionc(e){if(i(v,e)){varn=v[e];deletev[e],_[e]=!0,p.apply(t,n)}if(!i(m,e)&&!i(_,e))thrownewError("No "+e);returnm[e]}functionu(e){vart,n=e?e.indexOf("!"):-1;returnn>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}functiond(e){returnfunction(){returny&&y.config&&y.config[e]||{}}}varp,h,f,g,m={},v={},y={},_={},$=Object.prototype.hasOwnProperty,w=[].slice,b=/\.js$/;f=function(e,t){varn,r=u(e),i=r[0];returne=r[1],i&&(i=o(i,t),n=c(i)),i?e=n&&n.normalize?n.normalize(e,a(t)):o(e,t):(e=o(e,t),r=u(e),i=r[0],e=r[1],i&&(n=c(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},g={require:function(e){returns(e)},exports:function(e){vart=m[e];return"undefined"!=typeoft?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:d(e)}}},p=function(e,n,r,o){vara,u,d,p,h,y=[],$=typeofr,w;if(o=o||e,"undefined"===$||"function"===$){for(n=!n.length&&r.length?["require","exports","module"]:n,h=0;h<n.length;h+=1)if(p=f(n[h],o),u=p.f,"require"===u)y[h]=g.require(e);elseif("exports"===u)y[h]=g.exports(e),w=!0;elseif("module"===u)a=y[h]=g.module(e);elseif(i(m,u)||i(v,u)||i(_,u))y[h]=c(u);else{if(!p.p)thrownewError(e+" missing "+u);p.p.load(p.n,s(o,!0),l(u),{}),y[h]=m[u]}d=r?r.apply(m[e],y):void0,e&&(a&&a.exports!==t&&a.exports!==m[e]?m[e]=a.exports:d===t&&w||(m[e]=d))}elsee&&(m[e]=r)},e=n=h=function(e,n,r,i,o){if("string"==typeofe)returng[e]?g[e](n):c(f(e,n).f);if(!e.splice){if(y=e,y.deps&&h(y.deps,y.callback),!n)return;n.splice?(e=n,n=r,r=null):e=t}returnn=n||function(){},"function"==typeofr&&(r=i,i=o),i?p(t,e,n,r):setTimeout(function(){p(t,e,n,r)},4),h},h.config=function(e){returnh(e)},e._defined=m,r=function(e,t,n){if("string"!=typeofe)thrownewError("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),i(m,e)||i(v,e)||(v[e]=[e,t,n])},r.amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=r}}(),t.define("almond",function(){}),t.define("jquery",[],function(){vart=e||r;returnnull==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){functiont(e){vart=e.prototype,n=[];for(varrint){vari=t[r];"function"==typeofi&&"constructor"!==r&&n.push(r)}returnn}varn={};n.Extend=function(e,t){functionn(){this.constructor=e}varr={}.hasOwnProperty;for(variint)r.call(t,i)&&(e[i]=t[i]);returnn.prototype=t.prototype,e.prototype=newn,e.__super__=t.prototype,e},n.Decorate=function(e,n){functionr(){vart=Array.prototype.unshift,r=n.prototype.constructor.length,i=e.prototype.constructor;r>0&&(t.call(arguments,e.prototy
this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},i.prototype.render=function(){vart=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');returnt.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},i}),t.define("jquery-mousewheel",["jquery"],function(e){returne}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(e,t,n,r){if(null==e.fn.select2){vari=["open","close","destroy"];e.fn.select2=function(t){if(t=t||{},"object"==typeoft)returnthis.each(function(){varr=e.extend(!0,{},t),i=newn(e(this),r)}),this;if("string"==typeoft){varr,o=Array.prototype.slice.call(arguments,1);returnthis.each(function(){varn=e(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),r=n[t].apply(n,o)}),e.inArray(t,i)>-1?this:r}thrownewError("Invalid arguments for Select2: "+t)}}returnnull==e.fn.select2.defaults&&(e.fn.select2.defaults=r),n}),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");returne.fn.select2.amd=t,n}),"undefined"==typeofPackage&&(Package={}),Package["natestrauser:select2"]={}}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,i=Package.tracker.Tracker,r=Package.tracker.Deps,o=Package.underscore._,a=Package.check.check,s=Package.check.Match,u=Package.random.Random,l,c,f,d,p,m,y;(function(){String.prototype.startsWith||(String.prototype.startsWith=function(e,t){returnt=t||0,this.indexOf(e,t)===t}),String.prototype.trim||(String.prototype.trim=function(){returnthis.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")})}).call(this),function(){functione(e){returne=e||"",e=e.trim(),e[0]&&(e=e[0].toUpperCase()+e.substr(1).toLowerCase()),e}functiont(e){returne=e||"",e=e.toString(),e=e.trim(),e=e.replace(/([a-z\d])([A-Z]+)/g,"$1_$2"),e=e.replace(/[-\s]+/g,"_").toLowerCase()}functionn(e){vart=e.lastIndexOf("."),n=e.substring(t,e.length);returnt===-1?"":n}l=functioni(r){returnr=r||"",r=r.toString(),r=r.trim(),r=r.replace(n(r),""),r=t(r),r=r.replace(/[\W_]+/g," "),e(r)}}.call(this),function(){vare=function(e){returne===Object(e)};"function"!=typeofObject.getPrototypeOf&&("object"==typeof"".__proto__?Object.getPrototypeOf=function(e){returne.__proto__}:Object.getPrototypeOf=function(e){returne.constructor.prototype});vart=function(t){returne(t)&&Object.getPrototypeOf(t)===Object.prototype},n=functione(t){return"string"!=typeoft?null:t.replace(/\.[0-9]+\./g,".$.").replace(/\.[0-9]+$/g,".$")},i=functione(t,n){return"$each"===n?t:t?t+"."+n:n},r=functione(t){varn=t.slice(0,t.indexOf("["));return"$"===n.substring(0,1)?n:null};c=function(e,a){functions(e,r,u,c,f,d){!c&&u&&"$"===u.substring(0,1)&&(c=u,u=null);varp=!1,m,y=!1;u&&(f||("$push"===c||"$addToSet"===c||"$pop"===c?(t(e)&&"$each"ine?(e=e.$each,r+="[$each]"):u+=".0",f=!0):"$pull"===c&&(u+=".0",t(e)&&(y=!0),f=!0)),m=n(u),p=o.contains(a,m),r&&(l._affectedKeys[r]=u,l._genericAffectedKeys[r]=m,d&&l._positionsInsideArrays.push(r))),y||(o.isArray(e)&&!o.isEmpty(e)?(r&&l._parentPositions.push(r),o.each(e,function(e,t){s(e,r?r+"["+t+"]":t,u+"."+t,c,f,!0)})):(t(e)&&!p||!r)&&(r&&!o.isEmpty(e)&&(l._parentPositions.push(r),l._objectPositions.push(r)),o.each(e,function(t,n){void0===t?deletee[n]:"$slice"!==n&&s(t,r?r+"["+n+"]":n,i(u,n),c,f,d)})))}functionu(){l._affectedKeys={},l._genericAffectedKeys={},l._parentPositions=[],l._positionsInsideArrays=[],l._objectPositions=[],s(l._obj)}varl=this;l._obj=e,l._affectedKeys={},l._genericAffectedKeys={},l._parentPositions=[],l._positionsInsideArrays=[],l._objectPositions=[],s(l._obj),l.forEachNode=function(e,t){if("function"!=typeofe)thrownewError("filter requires a loop function");t=o.extend({endPointsOnly:!0},t);varn={};o.each(l._affectedKeys,function(i,a){t.endPointsOnly&&o.contains(l._parentPositions,a)||e.call({value:l.getValueForPosition(a),operator:r(a),position:a,key:i,genericKey:l._genericAffectedKeys[a],updateValue:function(e){n[a]=e},remove:function(){n[a]=void0}})}),o.each(n,function(e,t){l.setValueForPosition(t,e)})},l.getValueForPosition=function(e){for(varn,i=e.split("["),r=l._obj,a=0,s=i.length;a<s;a++)if(n=i[a],"]"===n.slice(-1)&&(n=n.slice(0,-1)),r=r[n],!o.isArray(r)&&!t(r)&&a<s-1)return;returnr},l.setValueForPosition=function(e,n){for(vari,r,a=e.split("["),s=l._obj,c=0,f=a.length;c<f;c++)if(r=a[c],"]"===r.slice(-1)&&(r=r.slice(0,-1)),c===f-1)s[r]=n,void0===n&&deletes[r];elseif(void0===s[r]&&void0!==n&&(i=a[c+1],i=parseInt(i,10),s[r]=isNaN(i)?{}:[]),s=s[r],!o.isArray(s)&&!t(s)&&c<f-1)return;u()},l.removeValueForPosition=function(e){l.setValueForPosition(e,void0)},l.getKeyForPosition=function(e){returnl._affectedKeys[e]},l.getGenericKeyForPosition=function(e){returnl._genericAffectedKeys[e]},l.getInfoForKey=function(e){vart=l.getPositionForKey(e);if(t)return{value:l.getValueForPosition(t),operator:r(t)};for(varn=l.getPositionsForGenericKey(e+".$"),i,o,a=0,s=n.length;a<s;a++)if(i=n[a],o=l.getValueForPosition(i)||l.getValueForPosition(i.slice(0,i.lastIndexOf("["))))return{value:o,operator:r(i)}},l.getPositionForKey=function(e){for(vartinl._affectedKeys)if(l._affectedKeys.hasOwnProperty(t)&&l._affectedKeys[t]===e)returnt},l.g
!function(){vare=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(){returnc.info.apply(this,arguments)};varn=0,a=[],f=0;c._intercept=function(e){n+=e},c._suppress=function(e){f+=e},c._intercepted=function(){vare=a;returna=[],n=0,e},c.outputFormat="json";varo={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){varn=c.format(t),r=t.level;"undefined"!=typeofconsole&&console[r]?console[r](n):e._debug(n)};c._getCallerDetails=function(){vare=function(){vare=newError,t=e.stack;returnt},t=e();if(!t)return{};for(varn=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}vara={},f=/(?:[@(]| at )([^(]+?):([0-9:]+)(?:\)|$)/.exec(r);returnf?(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)returnvoidf--;varl=!1;n&&(n--,l=!0);varu=!r.isObject(o)||r.isRegExp(o)||r.isDate(o)?{message:newString(o).toString()}:o;if(r.each(s,function(e){if(u[e])thrownewError("Can't set '"+e+"' in log message")}),r.has(u,"message")&&!r.isString(u.message))thrownewError("The 'message' field in log objects must be a string");if(u.omitCallerDetails||(u=r.extend(c._getCallerDetails(),u)),u.time=newDate,u.level=t,"debug"!==t)if(l)a.push(i.stringify(u));elseif(e.isServer)if("colored-text"===c.outputFormat)console.log(c.format(u,{color:!0}));else{if("json"!==c.outputFormat)thrownewError("Unknown logging output format: "+c.outputFormat);console.log(i.stringify(u))}elsed(u)}}),c.parse=function(e){vart=null;if(e&&"{"===e.charAt(0))try{t=i.parse(e)}catch(e){}returnt&&t.time&&t.timeinstanceofDate?t:null},c.format=function(n,a){n=i.clone(n),a=a||{};varf=n.time;if(!(finstanceofDate))thrownewError("'time' must be a Date object");varc=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){deleten[e]}),r.isEmpty(n)||(h&&(h+=" "),h+=i.stringify(n));vary=function(e){returne<10?"0"+e:e.toString()},j=function(e){returne<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="("+-((newDate).getTimezoneOffset()/60)+")",A="";b&&(A+=b),m&&m!==b&&(A+=" via "+m),A&&(A="["+A+"] ");varN=[];v&&N.push(v),d&&N.push(d),p&&N.push(p);varS=r.isEmpty(N)?"":"("+N.join(":")+") ";g&&(S+=["[",g,"]"].join(""));varP=x?"(STDERR) ":"",z=[s.charAt(0).toUpperCase(),O,"-",_,w,c?"? ":" ",A,S,P].join(""),k=function(n,r){returna.color&&e.isServer&&r?t("cli-color")[r](n):n};returnk(z,a.metaColor||l)+k(h,o[s])},c.objFromText=function(e,t){varn={message:e,level:"info",time:newDate,timeInexact:!0};returnr.extend(n,t)}}],node_modules:{"cli-color":{"package.json":function(e,t){t.name="cli-color",t.version="0.2.3",t.main="lib"},lib:{"index.js":["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";varr=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(){vare=Package.meteor.Meteor,n=Package.meteor.global,a=Package.meteor.meteorEnv,r;(function(){varn=0,a=!1;r={hold:function(){if(!e.isCordova)return{release:function(){}};if(a)thrownewError("Can't show launch screen once it's hidden");n++;varr=!1,o=function(){e.isCordova&&(r||(r=!0,n--,0===n&&"undefined"!=typeofnavigator&&navigator.splashscreen&&(a=!0,navigator.splashscreen.hide())))};return{release:o}}}}).call(this),function(){varn=r.hold(),a=Package.templating&&Package.templating.Template;e.startup(function(){a?Package["iron:router"]?Package["iron:router"].Router.onAfterAction(function(){n.release()}):(a.body.onRendered(function(){n.release()}),setTimeout(function(){n.release()},6e3)):n.release()})}.call(this),"undefined"==typeofPackage&&(Package={}),function(e,n){for(varainn)aine||(e[a]=n[a])}(Package["launch-screen"]={},{LaunchScreen:r})}();
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",{
returnvoid0===t&&(t=newe.Quaternion),this.applyQuaternion(t.setFromAxisAngle(n,o)),this}}(),applyMatrix3:function(e){vart=this.x,n=this.y,o=this.z,a=e.elements;returnthis.x=a[0]*t+a[3]*n+a[6]*o,this.y=a[1]*t+a[4]*n+a[7]*o,this.z=a[2]*t+a[5]*n+a[8]*o,this},applyMatrix4:function(e){vart=this.x,n=this.y,o=this.z,a=e.elements;returnthis.x=a[0]*t+a[4]*n+a[8]*o+a[12],this.y=a[1]*t+a[5]*n+a[9]*o+a[13],this.z=a[2]*t+a[6]*n+a[10]*o+a[14],this},applyProjection:function(e){vart=this.x,n=this.y,o=this.z,a=e.elements,r=1/(a[3]*t+a[7]*n+a[11]*o+a[15]);returnthis.x=(a[0]*t+a[4]*n+a[8]*o+a[12])*r,this.y=(a[1]*t+a[5]*n+a[9]*o+a[13])*r,this.z=(a[2]*t+a[6]*n+a[10]*o+a[14])*r,this},applyQuaternion:function(e){vart=this.x,n=this.y,o=this.z,a=e.x,r=e.y,i=e.z,s=e.w,l=s*t+r*o-i*n,u=s*n+i*t-a*o,c=s*o+a*n-r*t,d=-a*t-r*n-i*o;returnthis.x=l*s+d*-a+u*-i-c*-r,this.y=u*s+d*-r+c*-a-l*-i,this.z=c*s+d*-i+l*-r-u*-a,this},transformDirection:function(e){vart=this.x,n=this.y,o=this.z,a=e.elements;returnthis.x=a[0]*t+a[4]*n+a[8]*o,this.y=a[1]*t+a[5]*n+a[9]*o,this.z=a[2]*t+a[6]*n+a[10]*o,this.normalize(),this},divide:function(e){returnthis.x/=e.x,this.y/=e.y,this.z/=e.z,this},divideScalar:function(e){if(0!==e){vart=1/e;this.x*=t,this.y*=t,this.z*=t}elsethis.x=0,this.y=0,this.z=0;returnthis},min:function(e){returnthis.x>e.x&&(this.x=e.x),this.y>e.y&&(this.y=e.y),this.z>e.z&&(this.z=e.z),this},max:function(e){returnthis.x<e.x&&(this.x=e.x),this.y<e.y&&(this.y=e.y),this.z<e.z&&(this.z=e.z),this},clamp:function(e,t){returnthis.x<e.x?this.x=e.x:this.x>t.x&&(this.x=t.x),this.y<e.y?this.y=e.y:this.y>t.y&&(this.y=t.y),this.z<e.z?this.z=e.z:this.z>t.z&&(this.z=t.z),this},clampScalar:function(){vart,n;returnfunction(o,a){returnvoid0===t&&(t=newe.Vector3,n=newe.Vector3),t.set(o,o,o),n.set(a,a,a),this.clamp(t,n)}}(),floor:function(){returnthis.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this},ceil:function(){returnthis.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this},round:function(){returnthis.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this},roundToZero:function(){returnthis.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this},negate:function(){returnthis.multiplyScalar(-1)},dot:function(e){returnthis.x*e.x+this.y*e.y+this.z*e.z},lengthSq:function(){returnthis.x*this.x+this.y*this.y+this.z*this.z},length:function(){returnMath.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},lengthManhattan:function(){returnMath.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){returnthis.divideScalar(this.length())},setLength:function(e){vart=this.length();return0!==t&&e!==t&&this.multiplyScalar(e/t),this},lerp:function(e,t){returnthis.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this},cross:function(e,t){if(void0!==t)returnconsole.warn("DEPRECATED: Vector3's .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(e,t);varn=this.x,o=this.y,a=this.z;returnthis.x=o*e.z-a*e.y,this.y=a*e.x-n*e.z,this.z=n*e.y-o*e.x,this},crossVectors:function(e,t){varn=e.x,o=e.y,a=e.z,r=t.x,i=t.y,s=t.z;returnthis.x=o*s-a*i,this.y=a*r-n*s,this.z=n*i-o*r,this},projectOnVector:function(){vart,n;returnfunction(o){returnvoid0===t&&(t=newe.Vector3),t.copy(o).normalize(),n=this.dot(t),this.copy(t).multiplyScalar(n)}}(),projectOnPlane:function(){vart;returnfunction(n){returnvoid0===t&&(t=newe.Vector3),t.copy(this).projectOnVector(n),this.sub(t)}}(),reflect:function(){vart;returnfunction(n){returnvoid0===t&&(t=newe.Vector3),this.sub(t.copy(n).multiplyScalar(2*this.dot(n)))}}(),angleTo:function(t){varn=this.dot(t)/(this.length()*t.length());returnMath.acos(e.clamp(n,-1,1))},distanceTo:function(e){returnMath.sqrt(this.distanceToSquared(e))},distanceToSquared:function(e){vart=this.x-e.x,n=this.y-e.y,o=this.z-e.z;returnt*t+n*n+o*o},setEulerFromRotationMatrix:function(e,t){console.error("REMOVE
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,r=Package.meteor.meteorEnv,s=Package.jquery.$,n=Package.jquery.jQuery;(function(){(function(){!function(e,t){varr=[].slice,s={},n=e.amplify={publish:function(e){if("string"!=typeofe)thrownewError("You must provide a valid topic to publish.");vart=r.call(arguments,1),n,a,o,u=0,i;if(!s[e])return!0;for(n=s[e].slice(),o=n.length;u<o&&(a=n[u],i=a.callback.apply(a.context,t),i!==!1);u++);returni!==!1},subscribe:function(e,t,r,n){if("string"!=typeofe)thrownewError("You must provide a valid topic to create a subscription.");3===arguments.length&&"number"==typeofr&&(n=r,r=t,t=null),2===arguments.length&&(r=t,t=null),n=n||10;for(vara=0,o=e.split(/\s/),u=o.length,i;a<u;a++){e=o[a],i=!1,s[e]||(s[e]=[]);for(varc=s[e].length-1,l={callback:r,context:t,priority:n};c>=0;c--)if(s[e][c].priority<=n){s[e].splice(c+1,0,l),i=!0;break}i||s[e].unshift(l)}returnr},unsubscribe:function(e,t,r){if("string"!=typeofe)thrownewError("You must provide a valid topic to remove a subscription.");if(2===arguments.length&&(r=t,t=null),s[e])for(varn=s[e].length,a=0;a<n;a++)s[e][a].callback===r&&(t&&s[e][a].context!==t||(s[e].splice(a,1),a--,n--))}}}(this),function(e,t){functionr(e,r){s.addType(e,function(a,o,u){vari,c,l,p,f=o,d=(newDate).getTime();if(!a){f={},p=[],l=0;try{for(a=r.length;a=r.key(l++);)n.test(a)&&(c=JSON.parse(r.getItem(a)),c.expires&&c.expires<=d?p.push(a):f[a.replace(n,"")]=c.data);for(;a=p.pop();)r.removeItem(a)}catch(e){}returnf}if(a="__amplify__"+a,o===t){if(i=r.getItem(a),c=i?JSON.parse(i):{expires:-1},!(c.expires&&c.expires<=d))returnc.data;r.removeItem(a)}elseif(null===o)r.removeItem(a);else{c=JSON.stringify({data:o,expires:u.expires?d+u.expires:null});try{r.setItem(a,c)}catch(t){s[e]();try{r.setItem(a,c)}catch(e){throws.error()}}}returnf})}vars=e.store=function(e,t,r){varn=s.type;returnr&&r.type&&r.typeins.types&&(n=r.type),s.types[n](e,t,r||{})};s.types={},s.type=null,s.addType=function(e,t){s.type||(s.type=e),s.types[e]=t,s[e]=function(t,r,n){returnn=n||{},n.type=e,s(t,r,n)}},s.error=function(){return"amplify.store quota exceeded"};varn=/^__amplify__/;for(varain{localStorage:1,sessionStorage:1})try{window[a].setItem("__amplify__","x"),window[a].removeItem("__amplify__"),r(a,window[a])}catch(e){}if(!s.types.localStorage&&window.globalStorage)try{r("globalStorage",window.globalStorage[window.location.hostname]),"sessionStorage"===s.type&&(s.type="globalStorage")}catch(e){}!function(){if(!s.types.localStorage){vare=document.createElement("div"),r="amplify";e.style.display="none",document.getElementsByTagName("head")[0].appendChild(e);try{e.addBehavior("#default#userdata"),e.load(r)}catch(t){returnvoide.parentNode.removeChild(e)}s.addType("userData",function(n,a,o){e.load(r);varu,i,c,l,p,f=a,d=(newDate).getTime();if(!n){for(f={},p=[],l=0;u=e.XMLDocument.documentElement.attributes[l++];)i=JSON.parse(u.value),i.expires&&i.expires<=d?p.push(u.name):f[u.name]=i.data;for(;n=p.pop();)e.removeAttribute(n);returne.save(r),f}if(n=n.replace(/[^\-._0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c-\u200d\u203f\u2040\u2070-\u218f]/g,"-"),n=n.replace(/^-/,"_-"),a===t){if(u=e.getAttribute(n),i=u?JSON.parse(u):{expires:-1},!(i.expires&&i.expires<=d))returni.data;e.removeAttribute(n)}elsenull===a?e.removeAttribute(n):(c=e.getAttribute(n),i=JSON.stringify({data:a,expires:o.expires?d+o.expires:null}),e.setAttribute(n,i));try{e.save(r)}catch(t){null===c?e.removeAttribute(n):e.setAttribute(n,c),s.userData();try{e.setAttribute(n,i),e.save(r)}catch(t){thrownull===c?e.removeAttribute(n):e.setAttribute(n,c),s.error()}}returnf})}}(),function(){functione(e){returne===t?t:JSON.parse(JSON.stringify(e))}varr={},n={};s.addType("memory",function(s,a,o){returns?a===t?e(r[s]):(n[s]&&(clearTimeout(n[s]),deleten[s]),null===a?(deleter[s],null):(r[s]=a,o.expires&&(n[s]=setTimeout(function(){deleter[s],deleten[s]},o.expires)),a)):e(r)})}()}(this.amplify=this.amplify||{}),function(e,t){"use strict";functionr(){}functions(e){return"[objectFunction
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,o=Package.meteor.meteorEnv,a=Package.random.Random;(function(){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
this.returnValue},n.registerDialog=function(e){e.show,e.show=n.showDialog.bind(e,!1),e.showModal=n.showDialog.bind(e,!0),e.close=n.close.bind(e),e.dialogPolyfillInfo={},e.open=!1};varo=1e5,i=1e5;returnn.DialogManager=function(){this.pendingDialogStack=[],this.overlay=document.createElement("div"),this.overlay.style.width="100%",this.overlay.style.height="100%",this.overlay.style.position="fixed",this.overlay.style.left="0px",this.overlay.style.top="0px",this.overlay.style.backgroundColor="rgba(0,0,0,0.0)",this.focusPageLast=this.createFocusable(),this.overlay.appendChild(this.focusPageLast),this.overlay.addEventListener("click",function(e){vart=document.createEvent("MouseEvents");t.initMouseEvent(e.type,e.bubbles,e.cancelable,window,e.detail,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget),document.body.dispatchEvent(t)}),document.addEventListener("submit",function(t){varn=t.target.getAttribute("method");if(n=n?n.toLowerCase():"","dialog"==n){t.preventDefault();varo=e(t.target);if(o){vari,r=[document.activeElement,t.explicitOriginalTarget];r.some(function(e){if(e&&"INPUT"==e.nodeName&&e.form==t.target)returni=e.value,!0}),o.close(i)}}},!0)},n.DialogManager.prototype.createFocusable=function(e){vart=document.createElement("span");returnt.tabIndex=e||0,t.style.opacity=0,t.style.position="static",t},n.DialogManager.prototype.blockDocument=function(){document.body.contains(this.overlay)||(document.body.appendChild(this.overlay),void0===this.needsDocumentElementFocus&&(document.documentElement.focus(),this.needsDocumentElementFocus=document.activeElement!=document.documentElement),this.needsDocumentElementFocus&&(document.documentElement.tabIndex=1))},n.DialogManager.prototype.unblockDocument=function(){document.body.removeChild(this.overlay),this.needsDocumentElementFocus&&(document.documentElement.tabIndex="")},n.DialogManager.prototype.updateStacking=function(){if(0==this.pendingDialogStack.length)returnvoidthis.unblockDocument();this.blockDocument();for(vare=o,t=0;t<this.pendingDialogStack.length;t++){t==this.pendingDialogStack.length-1&&(this.overlay.style.zIndex=e++);varn=this.pendingDialogStack[t];n.dialogPolyfillInfo.backdrop.style.zIndex=e++,n.style.zIndex=e++}},n.DialogManager.prototype.handleKey=function(e){varn=this.pendingDialogStack.length;if(0!=n){varo=this.pendingDialogStack[n-1],i=o.dialogPolyfillInfo;switch(e.keyCode){case9:varr=document.activeElement,a=!e.shiftKey;a?r==document.documentElement||r==document.body||r==i.backdrop?i.focusFirst.focus():r==i.focusLast&&i.focusFirst.focus():r==i.focusFirst?i.focusLast.focus():r==this.focusPageLast&&i.focusLast.focus();break;case27:e.preventDefault(),e.stopPropagation();vars=newt("cancel",{bubbles:!1,cancelable:!0});o.dispatchEvent(s)&&o.close()}}},n.DialogManager.prototype.pushDialog=function(e){if(this.pendingDialogStack.length>=i)throw"Too many modal dialogs";vart=document.createElement("div");t.className="backdrop";varn=function(t){varn=document.createEvent("MouseEvents");n.initMouseEvent(t.type,t.bubbles,t.cancelable,window,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget),e.dispatchEvent(n)};t.addEventListener("click",n),e.parentNode.insertBefore(t,e.nextSibling),e.dialogPolyfillInfo.backdrop=t,e.dialogPolyfillInfo.clickEventListener=n,this.pendingDialogStack.push(e),this.updateStacking(),e.dialogPolyfillInfo.focusFirst=this.createFocusable(),e.dialogPolyfillInfo.focusLast=this.createFocusable(),e.appendChild(e.dialogPolyfillInfo.focusLast),e.insertBefore(e.dialogPolyfillInfo.focusFirst,e.firstChild)},n.DialogManager.prototype.removeDialog=function(e){vart=this.pendingDialogStack.indexOf(e);if(t!=-1){this.pendingDialogStack.splice(t,1);varn=e.dialogPolyfillInfo.backdrop,o=e.dialogPolyfillInfo.clickEventListener;n.removeEventListener("click",o),n.parentNode.removeChild(n),e.dialogPolyfillInfo.backdrop=null,e.dialogPolyfillInfo.clickEventListener=null,this.updateStacking(),e.removeChild(e.dialogPolyfillInfo.focusFir
},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"]={}}();
n.setDisplaySets(i),e._updateStudyCollections(n),o(n)},i)})}returnt}(),e._updateStudyCollections=function(){functiont(t){vare=t.getData();e.selected=!0,e.displaySets=t.getDisplaySets(),a.viewer.Studies.insert(e),a.viewer.StudyMetadataList.insert(t)}returnt}(),e}(a.viewerbase.StudyMetadataSource)}],"OHIFStudySummary.js":["babel-runtime/helpers/typeof","babel-runtime/helpers/classCallCheck","babel-runtime/helpers/possibleConstructorReturn","babel-runtime/helpers/inherits","meteor/ohif:core","meteor/ohif:viewerbase",function(t,e,n){n.export({OHIFStudySummary:function(){returnc}});varo;n.import("babel-runtime/helpers/typeof",{default:function(t){o=t}});vari;n.import("babel-runtime/helpers/classCallCheck",{default:function(t){i=t}});varr;n.import("babel-runtime/helpers/possibleConstructorReturn",{default:function(t){r=t}});vara;n.import("babel-runtime/helpers/inherits",{default:function(t){a=t}});vars;n.import("meteor/ohif:core",{OHIF:function(t){s=t}}),n.import("meteor/ohif:viewerbase");varl="string",u={modalities:"ModalitiesInStudy",patientBirthdate:"PatientBirthDate"},c=function(t){functione(){returni(this,e),r(this,t.apply(this,arguments))}returna(e,t),e.prototype.addTags=function(){functionn(n){varo=Object.prototype.hasOwnProperty,i=Object.create(null);for(varrinS.sanitizeForInObject(n))if(o.call(n,r)){vara=e.getStandardPropertyName(r);a&&(i[a]=n[r])}t.prototype.addTags.call(this,i)}returnn}(),e.getStandardPropertyName=function(){functiont(t){vare=void0;return("undefined"==typeoft?"undefined":o(t))===l&&"_"!==t.charAt(0)&&(tinu?e=u[u]:(e=t.replace(/^sop/,"SOP").replace(/Uid$/,"UID").replace(/Id$/,"ID"),e=e.charAt(0).toUpperCase()+e.substr(1))),e}returnt}(),e}(s.viewerbase.metadata.StudySummary)}],"exportSelectedStudies.js":["meteor/ohif:core",function(t,e,n){varo;n.import("meteor/ohif:core",{OHIF:function(t){o=t}}),o.studylist.exportSelectedStudies=function(t){vare=o.studylist.getSelectedStudies(),n=e.length,i=n>1?"Studies":"Study";o.ui.showDialog("dialogConfirm",{element:t.element,title:"Export "+i,message:"Would you like to export "+n+" "+i.toLowerCase()+"?"}).then(function(){o.studylist.exportStudies(e)})}}],"exportStudies.js":["meteor/silentcicero:jszip","meteor/ohif:core",function(t,e,n){varo;n.import("meteor/silentcicero:jszip",{JSZip:function(t){o=t}});vari;n.import("meteor/ohif:core",{OHIF:function(t){i=t}});varr=this,a=functiont(e){varn=0;returne.forEach(function(t){n+=$(t)}),n},s=functiont(e){for(varn=["B","KB","MB","GB"],o=e,i=0;o>1024;)o/=1024,i++;returno.toFixed(2)+" "+n[i]};i.studylist.exportStudies=function(t){t.length<1||U(t).then(l)};varl=functiont(e){varn=a(e),o=void0;returni.ui.showDialog("dialogProgress",{title:"Exporting Studies...",message:"Exported files: 0 / "+n,total:a(e),task:{run:function(){functiont(t){o=u(e,{notify:function(){functione(e){varn=s(e.totalBytes);t.update(e.processed),t.setMessage("Exported files: "+e.processed+" / "+e.total+" ("+n+")")}returne}()}),o.promise.then(function(){t.done()},function(){t.setMessage("Failed to export studies")})}returnt}()}}).then(null,function(t){o.cancel()})},u=functiont(e,n){varr=newo,s=[],l=[],u=a(e),m=(n||{}).notify||function(){},h=functiont(){for(;l.length;){vare=l.pop();e.cancel()}},f=0;returne.forEach(function(t){t.seriesList.forEach(function(e){e.instances.forEach(function(n){if(n.wadouri){varo=c(n);l.push(o);vara=o.promise.then(function(i){vara=l.indexOf(o);returnf+=i&&i.size?i.size:0,a>-1&&l.splice(a,1),m({total:u,processed:u-l.length,totalBytes:f}),d(t,e,n,r,i)}).catch(function(t){throwtinstanceofp||i.log.error("Failed to export studies",t),h(),t});s.push(a)}})})}),{cancel:h,promise:k.all(s).then(function(){vart=r.generate({type:"blob"});saveAs(t,"studies.zip")})}},c=functiont(e){varn=void0,o=void0,i=newk(function(t,i){o=i,n=newXMLHttpRequest,n.open("GET",e.wadouri,!0),n.responseType="blob",n.onload=function(){return4===n.readyState&&200!==n.status?i(newError("File not downloaded: "+e.wadouri)):voidt(n.response)},n.onerror=function(){i(newError("File not downloaded: "+e
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package.jquery.$,r=Package.jquery.jQuery,i=Package.random.Random,a=Package["templating-runtime"].Template,s=Package["iron:router"].Router,u=Package["iron:router"].RouteController,c=Package["momentjs:moment"].moment,l=Package.validatejs.validate,d=Package["ohif:viewerbase"].dialogPolyfill,g=Package.modules.meteorInstall,p=Package.modules.Buffer,f=Package.modules.process,m=Package["ecmascript-runtime"].Symbol,h=Package["ecmascript-runtime"].Map,v=Package["ecmascript-runtime"].Set,b=Package["babel-runtime"].meteorBabelHelpers,y=Package.promise.Promise,w=Package["iron:core"].Iron,P=Package.webapp.WebApp,S=Package.logging.Log,T=Package.deps.Tracker,R=Package.deps.Deps,M=Package.session.Session,k=Package["ddp-client"].DDP,D=Package.mongo.Mongo,x=Package.ui.Blaze,I=Package.ui.UI,E=Package.ui.Handlebars,C=Package.spacebars.Spacebars,V=Package.check.check,j=Package.check.Match,N=Package.underscore._,q=Package.ejson.EJSON,O=Package["launch-screen"].LaunchScreen,B=Package.htmljs.HTML,L,A,Z,z,_,U,H,F,W,X,G=g({node_modules:{meteor:{"ohif:hanging-protocols":{both:{"namespace.js":function(){L={}},"collections.js":function(){A=newt.Collection("hangingprotocols"),A._debugName="HangingProtocols",A.allow({insert:function(){functiont(){return!0}returnt}(),update:function(){functiont(){return!0}returnt}(),remove:function(){functiont(){return!0}returnt}()}),t.isDevelopment&&t.isServer&&t.startup(function(){A.remove({})})},"schema.js":["./classes/Protocol","./classes/Stage","./classes/Viewport","./classes/ViewportStructure","./classes/rules/ProtocolMatchingRule","./classes/rules/StudyMatchingRule","./classes/rules/SeriesMatchingRule","./classes/rules/ImageMatchingRule",function(t,e,n){n.import("./classes/Protocol"),n.import("./classes/Stage"),n.import("./classes/Viewport"),n.import("./classes/ViewportStructure"),n.import("./classes/rules/ProtocolMatchingRule"),n.import("./classes/rules/StudyMatchingRule"),n.import("./classes/rules/SeriesMatchingRule"),n.import("./classes/rules/ImageMatchingRule")}],"hardcodedData.js":function(){L.attributeDefaults={abstractPriorValue:0},L.displaySettings={invert:{id:"invert",text:"Show Grayscale Inverted",defaultValue:"NO",options:["YES","NO"]}},L.studyAttributes=[{id:"x00100020",text:"(x00100020) Patient ID"},{id:"x0020000d",text:"(x0020000d) Study Instance UID"},{id:"x00080020",text:"(x00080020) Study Date"},{id:"x00080030",text:"(x00080030) Study Time"},{id:"x00081030",text:"(x00081030) Study Description"},{id:"abstractPriorValue",text:"Abstract Prior Value"}],L.protocolAttributes=[{id:"x00100020",text:"(x00100020) Patient ID"},{id:"x0020000d",text:"(x0020000d) Study Instance UID"},{id:"x00080020",text:"(x00080020) Study Date"},{id:"x00080030",text:"(x00080030) Study Time"},{id:"x00081030",text:"(x00081030) Study Description"},{id:"anatomicRegion",text:"Anatomic Region"}],L.seriesAttributes=[{id:"x0020000e",text:"(x0020000e) Series Instance UID"},{id:"x00080060",text:"(x00080060) Modality"},{id:"x00200011",text:"(x00200011) Series Number"},{id:"x0008103e",text:"(x0008103e) Series Description"},{id:"numImages",text:"Number of Images"}],L.instanceAttributes=[{id:"x00080016",text:"(x00080016) SOP Class UID"},{id:"x00080018",text:"(x00080018) SOP Instance UID"},{id:"x00185101",text:"(x00185101) View Position"},{id:"x00200013",text:"(x00200013) Instance Number"},{id:"x00080008",text:"(x00080008) Image Type"},{id:"x00181063",text:"(x00181063) Frame Time"},{id:"x00200060",text:"(x00200060) Laterality"},{id:"x00541330",text:"(x00541330) Image Index"},{id:"x00280004",text:"(x00280004) Photometric Interpretation"},{id:"x00180050",text:"(x00180050) Slice Thickness"}]},"testData.js":function(){functiont(){vart=newL.Protocol("Default");t.id="defaultProtocol",t.locked=!0;vare=newL.ViewportStructure("grid",{rows:1,columns:1}),n=newL.Viewport,o=newL.Stage(e,"oneByOne");returno.viewports.push(n),t.stages.push(o),L.defaultProtocol=t,L.defaultProtocol}functione(){vart=newL.Protocol("MR_TwoByTwo");t.id="MR_TwoByTwo",
z=newo.Collection(null),z._debugName="Comparators",r.forEach(function(t){z.insert(t)})}],"protocolEngine.js":["babel-runtime/helpers/extends","babel-runtime/helpers/typeof","babel-runtime/helpers/classCallCheck","meteor/meteor","meteor/underscore","meteor/session","meteor/ohif:core","meteor/ohif:viewerbase","./matcher/HPMatcher","./lib/sortByScore","./customViewportSettings",function(t,e,n){varo;n.import("babel-runtime/helpers/extends",{default:function(t){o=t}});varr;n.import("babel-runtime/helpers/typeof",{default:function(t){r=t}});vari;n.import("babel-runtime/helpers/classCallCheck",{default:function(t){i=t}});vara;n.import("meteor/meteor",{Meteor:function(t){a=t}});vars;n.import("meteor/underscore",{_:function(t){s=t}});varu;n.import("meteor/session",{Session:function(t){u=t}});varc;n.import("meteor/ohif:core",{OHIF:function(t){c=t}}),n.import("meteor/ohif:viewerbase");varl;n.import("./matcher/HPMatcher",{HPMatcher:function(t){l=t}});vard;n.import("./lib/sortByScore",{sortByScore:function(t){d=t}}),n.import("./customViewportSettings");varg=c.viewerbase,p=g.OHIFError,f=g.metadata,m=f.StudyMetadata,v=f.SeriesMetadata,b=f.InstanceMetadata,y=f.StudySummary,w="abstractPriorValue";_=void0,L.setEngine=function(t){_=t},a.startup(function(){L.addCustomViewportSetting("wlPreset","Window/Level Preset",Object.create(null),function(t,e){einc.viewer.wlPresets&&c.viewerbase.wlPresets.applyWLPreset(e,t)})}),L.ProtocolEngine=function(){functiont(e,n,o,r){i(this,t);vara=c.viewerbase,s=a.LayoutManager,u=a.StudyMetadataSource;if(!(einstanceofs))thrownewp("ProtocolEngine::constructor layoutManager is not an instance of LayoutManager");if(!(rinstanceofu))thrownewp("ProtocolEngine::constructor studyMetadataSource is not an instance of StudyMetadataSource");if(!(ninstanceofArray||n.every(function(t){returntinstanceofm})))thrownewp("ProtocolEngine::constructor studies is not an array or it's items are not instances of StudyMetadata");this.LayoutManager=e,this.studies=n,this.priorStudies=oinstanceofh?o:newh,this.studyMetadataSource=r,this.reset(),this.newStageIds=[]}returnt.prototype.reset=function(){functiont(){vart=this.getBestProtocolMatch();this.setHangingProtocol(t)}returnt}(),t.prototype.getCurrentStageModel=function(){functiont(){returnthis.protocol.stages[this.stage]}returnt}(),t.prototype.findMatchByStudy=function(){functiont(t){c.log.info("ProtocolEngine::findMatchByStudy");vare=[],n=t.getFirstInstance(),o=this.getNumberOfAvailablePriors(t.getObjectID());if(L.ProtocolStore.getProtocol().forEach(function(t){varr=t.protocolMatchingRules.slice();if(r){vari=t.getNumberOfPriorsReferenced();if(!(i>o)){vara=l.match(n,r),s=a.score;s>0&&e.push({score:s,protocol:t})}}}),!e.length){varr=L.ProtocolStore.getProtocol("defaultProtocol");return[{score:1,protocol:r}]}returnd(e),c.log.info("ProtocolEngine::findMatchByStudy matched",e),e}returnt}(),t.prototype.updateProtocolMatches=function(){functiont(){vart=this;c.log.info("ProtocolEngine::updateProtocolMatches"),Z.remove({}),this.studies.forEach(function(e){varn=t.findMatchByStudy(e);n.forEach(function(t){vare=t.protocol;if(e){varn=Z.findOne({id:e.id});n||(c.log.info("ProtocolEngine::updateProtocolMatches inserting protocol match",t),Z.insert(t))}})})}returnt}(),t.prototype.getBestProtocolMatch=function(){functiont(){this.updateProtocolMatches();vart=Z.find({},{sort:{score:-1},limit:1}).fetch(),e=t[0].protocol;returnc.log.info("ProtocolEngine::getBestProtocolMatch bestMatch",e),e}returnt}(),t.prototype.getNumberOfAvailablePriors=function(){functiont(t){vare=this.getAvailableStudyPriors(t);returne.length}returnt}(),t.prototype.getAvailableStudyPriors=function(){functiont(t){vare=this.priorStudies.get(t);returneinstanceofArray?e:[]}returnt}(),t.prototype.matchImages=function(){functiont(t,e){varn=this;c.log.info("ProtocolEngine::matchImages");varo=t.studyMatchingRules,i=t.seriesMatchingRules,a=t.imageMatchingRules,s=[],u=this.studies[0],d=u.getFirstInstance(),g=0,f=0,h=0,v=void0;u.setCustomAttribute(w,0),dinstanceofb&&d.setC
!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(){vare=Package.meteor.Meteor,o=Package.meteor.global,n=Package.meteor.meteorEnv,i=Package["accounts-base"].Accounts,r=Package.mongo.Mongo,t;(function(){"undefined"==typeoft&&(t={}),t.configurations=newr.Collection("meteor_accounts_loginServiceConfiguration",{_preventAutopublish:!0,connection:e.isClient?i.connection:e.connection}),t.ConfigError=function(o){e.isClient&&!i.loginServicesConfigured()?this.message="Login service configuration not yet loaded":o?this.message="Service "+o+" not configured":this.message="Service not configured"},t.ConfigError.prototype=newError,t.ConfigError.prototype.name="ServiceConfiguration.ConfigError"}).call(this),"undefined"==typeofPackage&&(Package={}),function(e,o){for(varnino)nine||(e[n]=o[n])}(Package["service-configuration"]={},{ServiceConfiguration:t})}();