!function(){varn,t;(function(){n={}}).call(this),function(){(function(){vart=this,r=t._,e={},i=Array.prototype,u=Object.prototype,a=Function.prototype,c=i.push,o=i.slice,l=i.concat,f=u.toString,s=u.hasOwnProperty,p=i.forEach,h=i.map,v=i.reduce,y=i.reduceRight,d=i.filter,g=i.every,m=i.some,b=i.indexOf,_=i.lastIndexOf,w=Array.isArray,x=Object.keys,j=a.bind,A=function(n){returnninstanceofA?n:thisinstanceofA?void(this._wrapped=n):newA(n)};"undefined"!=typeofn?("undefined"!=typeofmodule&&module.exports&&(n=module.exports=A),n._=A):t._=A,A.VERSION="1.5.2";vark=function(n){return"[object Arguments]"===f.call(n)};k(arguments)||(k=function(n){return!(!n||!s.call(n,"callee")||"function"!=typeofn.callee)});varO=function(n){returnn.length===+n.length&&(k(n)||n.constructor!==Object)},E=A.each=A.forEach=function(n,t,r){if(null!=n)if(p&&n.forEach===p)n.forEach(t,r);elseif(O(n)){for(vari=0,u=n.length;i<u;i++)if(t.call(r,n[i],i,n)===e)return}elsefor(vara=A.keys(n),i=0,u=a.length;i<u;i++)if(t.call(r,n[a[i]],a[i],n)===e)return};A.map=A.collect=function(n,t,r){vare=[];returnnull==n?e:h&&n.map===h?n.map(t,r):(E(n,function(n,i,u){e.push(t.call(r,n,i,u))}),e)};varF="Reduce of empty array with no initial value";A.reduce=A.foldl=A.inject=function(n,t,r,e){vari=arguments.length>2;if(null==n&&(n=[]),v&&n.reduce===v)returne&&(t=A.bind(t,e)),i?n.reduce(t,r):n.reduce(t);if(E(n,function(n,u,a){i?r=t.call(e,r,n,u,a):(r=n,i=!0)}),!i)thrownewTypeError(F);returnr},A.reduceRight=A.foldr=function(n,t,r,e){vari=arguments.length>2;if(null==n&&(n=[]),y&&n.reduceRight===y)returne&&(t=A.bind(t,e)),i?n.reduceRight(t,r):n.reduceRight(t);varu=n.length;if(!O(n)){vara=A.keys(n);u=a.length}if(E(n,function(c,o,l){o=a?a[--u]:--u,i?r=t.call(e,r,n[o],o,l):(r=n[o],i=!0)}),!i)thrownewTypeError(F);returnr},A.find=A.detect=function(n,t,r){vare;returnM(n,function(n,i,u){if(t.call(r,n,i,u))returne=n,!0}),e},A.filter=A.select=function(n,t,r){vare=[];returnnull==n?e:d&&n.filter===d?n.filter(t,r):(E(n,function(n,i,u){t.call(r,n,i,u)&&e.push(n)}),e)},A.reject=function(n,t,r){returnA.filter(n,function(n,e,i){return!t.call(r,n,e,i)},r)},A.every=A.all=function(n,t,r){t||(t=A.identity);vari=!0;returnnull==n?i:g&&n.every===g?n.every(t,r):(E(n,function(n,u,a){if(!(i=i&&t.call(r,n,u,a)))returne}),!!i)};varM=A.some=A.any=function(n,t,r){t||(t=A.identity);vari=!1;returnnull==n?i:m&&n.some===m?n.some(t,r):(E(n,function(n,u,a){if(i||(i=t.call(r,n,u,a)))returne}),!!i)};A.contains=A.include=function(n,t){returnnull!=n&&(b&&n.indexOf===b?n.indexOf(t)!=-1:M(n,function(n){returnn===t}))},A.invoke=function(n,t){varr=o.call(arguments,2),e=A.isFunction(t);returnA.map(n,function(n){return(e?t:n[t]).apply(n,r)})},A.pluck=function(n,t){returnA.map(n,function(n){returnn[t]})},A.where=function(n,t,r){returnA.isEmpty(t)?r?void0:[]:A[r?"find":"filter"](n,function(n){for(varrint)if(t[r]!==n[r])return!1;return!0})},A.findWhere=function(n,t){returnA.where(n,t,!0)},A.max=function(n,t,r){if(!t&&A.isArray(n)&&n[0]===+n[0]&&n.length<65535)returnMath.max.apply(Math,n);if(!t&&A.isEmpty(n))return-(1/0);vare={computed:-(1/0),value:-(1/0)};returnE(n,function(n,i,u){vara=t?t.call(r,n,i,u):n;a>e.computed&&(e={value:n,computed:a})}),e.value},A.min=function(n,t,r){if(!t&&A.isArray(n)&&n[0]===+n[0]&&n.length<65535)returnMath.min.apply(Math,n);if(!t&&A.isEmpty(n))return1/0;vare={computed:1/0,value:1/0};returnE(n,function(n,i,u){vara=t?t.call(r,n,i,u):n;a<e.computed&&(e={value:n,computed:a})}),e.value},A.shuffle=function(n){vart,r=0,e=[];returnE(n,function(n){t=A.random(r++),e[r-1]=e[t],e[t]=n}),e},A.sample=function(n,t,r){returnarguments.length<2||r?n[A.random(n.length-1)]:A.shuffle(n).slice(0,Math.max(0,t))};varR=function(n){returnA.isFunction(n)?n:function(t){returnt[n]}};A.sortBy=function(n,t,r){vare=R(t);returnA.pluck(A.map(n,function(n,t,i){return{value:n,index:t,criteria:e.call(r,n,t,i)}}).sort(function(n,t){varr=n.criteria,e=t.criteria;if(r!==e){if(r>e||void0===r)return1;if(r<e||void0===e)return-1}returnn.index-t.index}),"value")};varS=f
!function(){vart=Package.underscore._,e,n,r;(function(){e=this}).call(this),function(){n=__meteor_runtime_config__.meteorEnv,r={isProduction:"production"===n.NODE_ENV,isDevelopment:"production"!==n.NODE_ENV,isClient:!0,isServer:!1,isCordova:!1},"object"==typeof__meteor_runtime_config__&&__meteor_runtime_config__.PUBLIC_SETTINGS&&(r.settings={public:__meteor_runtime_config__.PUBLIC_SETTINGS})}.call(this),function(){functione(t){if(t)returnr._debug("Exception in callback of async function",t.stack?t.stack:t)}if(r.isServer)varn=Npm.require("fibers/future");"object"==typeof__meteor_runtime_config__&&__meteor_runtime_config__.meteorRelease&&(r.release=__meteor_runtime_config__.meteorRelease),t.extend(r,{_get:function(t){for(vare=1;e<arguments.length;e++){if(!(arguments[e]int))return;t=t[arguments[e]]}returnt},_ensure:function(t){for(vare=1;e<arguments.length;e++){varn=arguments[e];nint||(t[n]={}),t=t[n]}returnt},_delete:function(t){for(vare=[t],n=!0,r=1;r<arguments.length-1;r++){varo=arguments[r];if(!(oint)){n=!1;break}if(t=t[o],"object"!=typeoft)break;e.push(t)}for(varr=e.length-1;r>=0;r--){varo=arguments[r+1];if(n)n=!1;elsefor(variine[r][o])return;deletee[r][o]}},wrapAsync:function(o,i){returnfunction(){for(vara=i||this,s=t.toArray(arguments),u,c=s.length-1;c>=0;--c){varl=s[c],f=typeofl;if("undefined"!==f){"function"===f&&(u=l);break}}if(!u){if(r.isClient)u=e;else{varp=newn;u=p.resolver()}++c}s[c]=r.bindEnvironment(u);var_=o.apply(a,s);returnp?p.wait():_}},_inherits:function(e,n){for(varrinn)t.has(n,r)&&(e[r]=n[r]);varo=function(){this.constructor=e};returno.prototype=n.prototype,e.prototype=newo,e.__super__=n.prototype,e}});varo=!1;r._wrapAsync=function(t,e){returno||(r._debug("Meteor._wrapAsync has been renamed to Meteor.wrapAsync"),o=!0),r.wrapAsync.apply(r,arguments)}}.call(this),function(){"use strict";functiont(){if(o.setImmediate){vart=function(t){o.setImmediate(t)};returnt.implementation="setImmediate",t}returnnull}functione(){functiont(t,e){return"string"==typeoft&&t.substring(0,e.length)===e}functione(e){if(e.source===o&&t(e.data,s)){varn=e.data.substring(s.length);try{a[n]&&a[n]()}finally{deletea[n]}}}if(!o.postMessage||o.importScripts)returnnull;varn=!0,r=o.onmessage;if(o.onmessage=function(){n=!1},o.postMessage("","*"),o.onmessage=r,!n)returnnull;vari=0,a={},s="Meteor._setImmediate."+Math.random()+".";o.addEventListener?o.addEventListener("message",e,!1):o.attachEvent("onmessage",e);varu=function(t){++i,a[i]=t,o.postMessage(s+i,"*")};returnu.implementation="postMessage",u}functionn(){vart=function(t){o.setTimeout(t,0)};returnt.implementation="setTimeout",t}varo=this;r._setImmediate=t()||e()||n()}.call(this),function(){vare=function(t){if(Package.ddp){vare=Package.ddp.DDP._CurrentInvocation;if(e.get()&&e.get().isSimulation)thrownewError("Can't set timers inside simulations");returnfunction(){e.withValue(null,t)}}returnt},n=function(t,n){returnr.bindEnvironment(e(n),t)};t.extend(r,{setTimeout:function(t,e){returnsetTimeout(n("setTimeout callback",t),e)},setInterval:function(t,e){returnsetInterval(n("setInterval callback",t),e)},clearInterval:function(t){returnclearInterval(t)},clearTimeout:function(t){returnclearTimeout(t)},defer:function(t){r._setImmediate(n("defer callback",t))}})}.call(this),function(){r.makeErrorType=function(t,e){varn=function(){Error.captureStackTrace?Error.captureStackTrace(this,n):this.stack=(newError).stack,e.apply(this,arguments),this.errorType=t};returnr._inherits(n,Error),n},r.Error=r.makeErrorType("Meteor.Error",function(t,e,n){varr=this;r.error=t,r.reason=e,r.details=n,r.reason?r.message=r.reason+" ["+r.error+"]":r.message="["+r.error+"]"}),r.Error.prototype.clone=function(){vart=this;returnnewr.Error(t.error,t.reason,t.details)}}.call(this),function(){r._noYieldsAllowed=function(t){returnt()},r._SynchronousQueue=function(){vart=this;t._tasks=[],t._running=!1,t._runTimeout=null},t.extend(r._SynchronousQueue.prototype,{runTask:function(e){varn=this;if(!n.safeToRunTask())thrownewError("Could not sync
!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,e=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package.underscore._,u=Package.base64.Base64,a,i;(function(){a={},i={};vare={};a.addType=function(n,t){if(r.has(e,n))thrownewError("Type "+n+" already present");e[n]=t};vart=function(n){returnr.isNaN(n)||n===1/0||n===-(1/0)},o=[{matchJSONValue:function(n){returnr.has(n,"$date")&&1===r.size(n)},matchObject:function(n){returnninstanceofDate},toJSONValue:function(n){return{$date:n.getTime()}},fromJSONValue:function(n){returnnewDate(n.$date)}},{matchJSONValue:function(n){returnr.has(n,"$InfNaN")&&1===r.size(n)},matchObject:t,toJSONValue:function(n){vare;returne=r.isNaN(n)?0:n===1/0?1:-1,{$InfNaN:e}},fromJSONValue:function(n){returnn.$InfNaN/0}},{matchJSONValue:function(n){returnr.has(n,"$binary")&&1===r.size(n)},matchObject:function(n){return"undefined"!=typeofUint8Array&&ninstanceofUint8Array||n&&r.has(n,"$Uint8ArrayPolyfill")},toJSONValue:function(n){return{$binary:u.encode(n)}},fromJSONValue:function(n){returnu.decode(n.$binary)}},{matchJSONValue:function(n){returnr.has(n,"$escape")&&1===r.size(n)},matchObject:function(n){return!(r.isEmpty(n)||r.size(n)>2)&&r.any(o,function(e){returne.matchJSONValue(n)})},toJSONValue:function(n){vare={};returnr.each(n,function(n,t){e[t]=a.toJSONValue(n)}),{$escape:e}},fromJSONValue:function(n){vare={};returnr.each(n.$escape,function(n,t){e[t]=a.fromJSONValue(n)}),e}},{matchJSONValue:function(n){returnr.has(n,"$type")&&r.has(n,"$value")&&2===r.size(n)},matchObject:function(n){returna._isCustomType(n)},toJSONValue:function(e){vart=n._noYieldsAllowed(function(){returne.toJSONValue()});return{$type:e.typeName(),$value:t}},fromJSONValue:function(t){varu=t.$type;if(!r.has(e,u))thrownewError("Custom EJSON type "+u+" is not defined");vara=e[u];returnn._noYieldsAllowed(function(){returna(t.$value)})}}];a._isCustomType=function(n){returnn&&"function"==typeofn.toJSONValue&&"function"==typeofn.typeName&&r.has(e,n.typeName())},a._getTypes=function(){returne},a._getConverters=function(){returno};varf=a._adjustTypesToJSONValue=function(n){if(null===n)returnnull;vare=c(n);returnvoid0!==e?e:"object"!=typeofn?n:(r.each(n,function(e,r){if("object"==typeofe||void0===e||t(e)){varu=c(e);returnu?void(n[r]=u):voidf(e)}}),n)},c=function(n){for(vare=0;e<o.length;e++){vart=o[e];if(t.matchObject(n))returnt.toJSONValue(n)}};a.toJSONValue=function(n){vare=c(n);returnvoid0!==e?e:("object"==typeofn&&(n=a.clone(n),f(n)),n)};varl=a._adjustTypesFromJSONValue=function(n){if(null===n)returnnull;vare=s(n);returne!==n?e:"object"!=typeofn?n:(r.each(n,function(e,t){if("object"==typeofe){varr=s(e);if(e!==r)returnvoid(n[t]=r);l(e)}}),n)},s=function(n){if("object"==typeofn&&null!==n&&r.size(n)<=2&&r.all(n,function(n,e){return"string"==typeofe&&"$"===e.substr(0,1)}))for(vare=0;e<o.length;e++){vart=o[e];if(t.matchJSONValue(n))returnt.fromJSONValue(n)}returnn};a.fromJSONValue=function(n){vare=s(n);returne===n&&"object"==typeofn?(n=a.clone(n),l(n),n):e},a.stringify=function(n,e){vart=a.toJSONValue(n);returne&&(e.canonical||e.indent)?a._canonicalStringify(t,e):JSON.stringify(t)},a.parse=function(n){if("string"!=typeofn)thrownewError("EJSON.parse argument should be a string");returna.fromJSONValue(JSON.parse(n))},a.isBinary=function(n){return!!("undefined"!=typeofUint8Array&&ninstanceofUint8Array||n&&n.$Uint8ArrayPolyfill)},a.equals=function(n,e,t){varu,i=!(!t||!t.keyOrderSensitive);if(n===e)return!0;if(r.isNaN(n)&&r.isNaN(e))return!0;if(!n||!e)return!1;if("object"!=typeofn||"object"!=typeofe)return!1;if(ninstanceofDate&&einstanceofDate)returnn.valueOf()===e.valueOf();if(a.isBinary(n)&&a.isBinary(e)){if(n.length!==e.length)return!1;for(u=0;u<n.length;u++)if(n[u]!==e[u])return!1;return!0}if("function"==typeofn.equals)returnn.equals(e,t);if("function"==typeofe.equals)returne.equals(n,t);if(ninstanceofArray){if(!(einstanceofArray))return!1;if(n.length!==e.length)return!1;for(u=0;u<n.length;u++)if(!a.equals(n[u],e[u],t))return!1;return!0}switch(a._is
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.underscore._,i;(function(){vart=function(t,e,r,n){return{key:t,value:e,next:r,prev:n}};i=function(){vart=this;t._dict={},t._first=null,t._last=null,t._size=0;vare=n.toArray(arguments);t._stringify=function(t){returnt},"function"==typeofe[0]&&(t._stringify=e.shift()),n.each(e,function(e){t.putBefore(e[0],e[1],null)})},n.extend(i.prototype,{_k:function(t){return" "+this._stringify(t)},empty:function(){vart=this;return!t._first},size:function(){vart=this;returnt._size},_linkEltIn:function(t){vare=this;t.next?(t.prev=t.next.prev,t.next.prev=t,t.prev&&(t.prev.next=t)):(t.prev=e._last,e._last&&(e._last.next=t),e._last=t),null!==e._first&&e._first!==t.next||(e._first=t)},_linkEltOut:function(t){vare=this;t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next),t===e._last&&(e._last=t.prev),t===e._first&&(e._first=t.next)},putBefore:function(e,r,n){vari=this;if(i._dict[i._k(e)])thrownewError("Item "+e+" already present in OrderedDict");varo=n?t(e,r,i._dict[i._k(n)]):t(e,r,null);if(void0===o.next)thrownewError("could not find item to put this one before");i._linkEltIn(o),i._dict[i._k(e)]=o,i._size++},append:function(t,e){varr=this;r.putBefore(t,e,null)},remove:function(t){vare=this,r=e._dict[e._k(t)];if(void0===r)thrownewError("Item "+t+" not present in OrderedDict");returne._linkEltOut(r),e._size--,deletee._dict[e._k(t)],r.value},get:function(t){vare=this;if(e.has(t))returne._dict[e._k(t)].value},has:function(t){vare=this;returnn.has(e._dict,e._k(t))},forEach:function(t){for(vare=this,r=0,n=e._first;null!==n;){varo=t(n.value,n.key,r);if(o===i.BREAK)return;n=n.next,r++}},first:function(){vart=this;if(!t.empty())returnt._first.key},firstValue:function(){vart=this;if(!t.empty())returnt._first.value},last:function(){vart=this;if(!t.empty())returnt._last.key},lastValue:function(){vart=this;if(!t.empty())returnt._last.value},prev:function(t){vare=this;if(e.has(t)){varr=e._dict[e._k(t)];if(r.prev)returnr.prev.key}returnnull},next:function(t){vare=this;if(e.has(t)){varr=e._dict[e._k(t)];if(r.next)returnr.next.key}returnnull},moveBefore:function(t,e){varr=this,n=r._dict[r._k(t)],i=e?r._dict[r._k(e)]:null;if(void0===n)thrownewError("Item to move is not present");if(void0===i)thrownewError("Could not find element to move this one before");i!==n.next&&(r._linkEltOut(n),n.next=i,r._linkEltIn(n))},indexOf:function(t){vare=this,r=null;returne.forEach(function(n,o,f){if(e._k(o)===e._k(t))returnr=f,i.BREAK}),r},_checkRep:function(){vart=this;n.each(t._dict,function(t,e){if(e.next===e)thrownewError("Next is a loop");if(e.prev===e)thrownewError("Prev is a loop")})}}),i.BREAK={break:!0}}).call(this),"undefined"==typeofPackage&&(Package={}),function(t,e){for(varrine)rint||(t[r]=e[r])}(Package["ordered-dict"]={},{OrderedDict:i})}();
!function(){varn=Package.meteor.Meteor,t=Package.meteor.global,e=Package.meteor.meteorEnv,o,r;(function(){o={},o.active=!1,o.currentComputation=null;vart=function(n){o.currentComputation=n,o.active=!!n},e=function(){return"undefined"!=typeofn?n._debug:"undefined"!=typeofconsole&&console.error?function(){console.error.apply(console,arguments)}:function(){}},r=function(t){"undefined"!=typeofn&&n._suppressed_log_expected()&&n._suppress_log(t-1)},i=function(n,t){if(l)throwt;varo=["Exception from Tracker "+n+" function:"];if(t.stack&&t.message&&t.name){vari=t.stack.indexOf(t.message);if(i<0||i>t.name.length+2){vara=t.name+": "+t.message;o.push(a)}}o.push(t.stack),r(o.length);for(varu=0;u<o.length;u++)e()(o[u])},a=function(t){return"undefined"==typeofn||n.isClient?t:function(){vare=arguments;n._noYieldsAllowed(function(){t.apply(null,e)})}},u=1,c=[],p=!1,s=!1,f=!1,l=!1,d=[],h=function(){p||("undefined"!=typeofn?n._setImmediate(o._runFlush):setTimeout(o._runFlush,0),p=!0)},v=!1;o.Computation=function(n,t,e){if(!v)thrownewError("Tracker.Computation constructor is private; use Tracker.autorun");v=!1;varo=this;o.stopped=!1,o.invalidated=!1,o.firstRun=!0,o._id=u++,o._onInvalidateCallbacks=[],o._onStopCallbacks=[],o._parent=t,o._func=n,o._onError=e,o._recomputing=!1;varr=!0;try{o._compute(),r=!1}finally{o.firstRun=!1,r&&o.stop()}},o.Computation.prototype.onInvalidate=function(n){vart=this;if("function"!=typeofn)thrownewError("onInvalidate requires a function");t.invalidated?o.nonreactive(function(){a(n)(t)}):t._onInvalidateCallbacks.push(n)},o.Computation.prototype.onStop=function(n){vart=this;if("function"!=typeofn)thrownewError("onStop requires a function");t.stopped?o.nonreactive(function(){a(n)(t)}):t._onStopCallbacks.push(n)},o.Computation.prototype.invalidate=function(){varn=this;if(!n.invalidated){n._recomputing||n.stopped||(h(),c.push(this)),n.invalidated=!0;for(vart=0,e;e=n._onInvalidateCallbacks[t];t++)o.nonreactive(function(){a(e)(n)});n._onInvalidateCallbacks=[]}},o.Computation.prototype.stop=function(){varn=this;if(!n.stopped){n.stopped=!0,n.invalidate();for(vart=0,e;e=n._onStopCallbacks[t];t++)o.nonreactive(function(){a(e)(n)});n._onStopCallbacks=[]}},o.Computation.prototype._compute=function(){varn=this;n.invalidated=!1;vare=o.currentComputation;t(n);varr=f;f=!0;try{a(n._func)(n)}finally{t(e),f=r}},o.Computation.prototype._needsRecompute=function(){varn=this;returnn.invalidated&&!n.stopped},o.Computation.prototype._recompute=function(){varn=this;n._recomputing=!0;try{if(n._needsRecompute())try{n._compute()}catch(t){n._onError?n._onError(t):i("recompute",t)}}finally{n._recomputing=!1}},o.Computation.prototype.flush=function(){varn=this;n._recomputing||n._recompute()},o.Computation.prototype.run=function(){varn=this;n.invalidate(),n.flush()},o.Dependency=function(){this._dependentsById={}},o.Dependency.prototype.depend=function(n){if(!n){if(!o.active)return!1;n=o.currentComputation}vart=this,e=n._id;return!(eint._dependentsById)&&(t._dependentsById[e]=n,n.onInvalidate(function(){deletet._dependentsById[e]}),!0)},o.Dependency.prototype.changed=function(){varn=this;for(vartinn._dependentsById)n._dependentsById[t].invalidate()},o.Dependency.prototype.hasDependents=function(){varn=this;for(vartinn._dependentsById)return!0;return!1},o.flush=function(n){o._runFlush({finishSynchronously:!0,throwFirstError:n&&n._throwFirstError})},o._runFlush=function(n){if(s)thrownewError("Can't call Tracker.flush while flushing");if(f)thrownewError("Can't flush inside Tracker.autorun");n=n||{},s=!0,p=!0,l=!!n.throwFirstError;vart=0,e=!1;try{for(;c.length||d.length;){for(;c.length;){varr=c.shift();if(r._recompute(),r._needsRecompute()&&c.unshift(r),!n.finishSynchronously&&++t>1e3)returnvoid(e=!0)}if(d.length){vara=d.shift();try{a()}catch(n){i("afterFlush",n)}}}e=!0}finally{if(e||(s=!1,o._runFlush({finishSynchronously:n.finishSynchronously,throwFirstError:!1})),p=!1,s=!1,c.length||d.length){if(n.finishSynchronously)thrownewError("still have more to do?");setTimeout(h,10)}}},o.autorun=f
!function(){vare=Package.meteor.Meteor,r=Package.meteor.global,n=Package.meteor.meteorEnv,t=Package.modules.meteorInstall,a=Package.modules.Buffer,o=Package.modules.process,i=Package.promise.Promise,l,u=t({node_modules:{meteor:{"babel-runtime":{"babel-runtime.js":["meteor-babel-helpers","babel-runtime/regenerator",function(e,r){r.meteorBabelHelpers=e("meteor-babel-helpers"),r.checkHelper=functione(r){return!1};try{varn=e("babel-runtime/regenerator")}catch(e){thrownewError(["The babel-runtime npm package could not be found in your node_modules ","directory. Please run the following command to install it:",""," meteor npm install --save babel-runtime",""].join("\n"))}if(n&&"function"==typeofi&&"function"==typeofi.asyncApply){vart=n.async;n.async=function(){returni.asyncApply(t,n,arguments)}}}],node_modules:{"meteor-babel-helpers":{"package.json":function(e,r){r.name="meteor-babel-helpers",r.version="0.0.3",r.main="index.js"},"index.js":function(e,r,n){functiont(){vare={},r="t";try{Object.defineProperty(e,r,{enumerable:!1,value:e});for(varnine)if(n===r)return!1}catch(e){return!1}returne[r]===e}functiona(e){returne}functiono(e){if(Array.isArray(e)){for(varr={},n=Object.keys(e),t=n.length,a=0;a<t;++a){varo=n[a];r[o]=e[o]}returnr}returne}l=n.exports={sanitizeForInObject:t()?a:o,_sanitizeForInObjectHard:o}}}}}}}},{extensions:[".js",".json"]}),c=u("./node_modules/meteor/babel-runtime/babel-runtime.js");"undefined"==typeofPackage&&(Package={}),function(e,r){for(varninr)nine||(e[n]=r[n])}(Package["babel-runtime"]=c,{meteorBabelHelpers:l})}();
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,t=Package.underscore._,o=Package.modules.meteorInstall,a=Package.modules.Buffer,i=Package.modules.process,d=Package["ecmascript-runtime"].Symbol,u=Package["ecmascript-runtime"].Map,c=Package["ecmascript-runtime"].Set,s=Package["babel-runtime"].meteorBabelHelpers,f=Package.promise.Promise,m,p=o({node_modules:{meteor:{random:{"random.js":function(n){functionr(){returnnewd(d.Type.ALEA,{seeds:[newDate,u,c,s,Math.random()]})}if(e.isServer)vart=Npm.require("crypto");varo=functione(){functionn(){vare=4022871197,n=functionn(r){r=r.toString();for(vart=0;t<r.length;t++){e+=r.charCodeAt(t);varo=.02519603282416938*e;e=o>>>0,o-=e,o*=e,e=o>>>0,o-=e,e+=4294967296*o}return2.3283064365386963e-10*(e>>>0)};returnn.version="Mash 0.9",n}returnfunction(e){varr=0,t=0,o=0,a=1;0==e.length&&(e=[+newDate]);vari=n();r=i(" "),t=i(" "),o=i(" ");for(vard=0;d<e.length;d++)r-=i(e[d]),r<0&&(r+=1),t-=i(e[d]),t<0&&(t+=1),o-=i(e[d]),o<0&&(o+=1);i=null;varu=functione(){varn=2091639*r+2.3283064365386963e-10*a;returnr=t,t=o,o=n-(a=0|n)};returnu.uint32=function(){return4294967296*u()},u.fract53=function(){returnu()+1.1102230246251565e-16*(2097152*u()|0)},u.version="Alea 0.9",u.args=e,u}(Array.prototype.slice.call(arguments))},a="23456789ABCDEFGHJKLMNPQRSTWXYZabcdefghijkmnopqrstuvwxyz",i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",d=functione(n,r){vart=this;if(t.type=n,!e.Type[n])thrownewError("Unknown random generator type: "+n);if(n===e.Type.ALEA){if(!r.seeds)thrownewError("No seeds were provided for Alea PRNG");t.alea=o.apply(null,r.seeds)}};d.Type={NODE_CRYPTO:"NODE_CRYPTO",BROWSER_CRYPTO:"BROWSER_CRYPTO",ALEA:"ALEA"},d.prototype.fraction=function(){vare=this;if(e.type===d.Type.ALEA)returne.alea();if(e.type===d.Type.NODE_CRYPTO){varn=parseInt(e.hexString(8),16);return2.3283064365386963e-10*n}if(e.type===d.Type.BROWSER_CRYPTO){varr=newUint32Array(1);returnwindow.crypto.getRandomValues(r),2.3283064365386963e-10*r[0]}thrownewError("Unknown random generator type: "+e.type)},d.prototype.hexString=function(e){varn=this;if(n.type===d.Type.NODE_CRYPTO){varr=Math.ceil(e/2),o;try{o=t.randomBytes(r)}catch(e){o=t.pseudoRandomBytes(r)}vara=o.toString("hex");returna.substring(0,e)}returnthis._randomString(e,"0123456789abcdef")},d.prototype._randomString=function(e,n){for(varr=this,t=[],o=0;o<e;o++)t[o]=r.choice(n);returnt.join("")},d.prototype.id=function(e){varn=this;returnvoid0===e&&(e=17),n._randomString(e,a)},d.prototype.secret=function(e){varn=this;returnvoid0===e&&(e=43),n._randomString(e,i)},d.prototype.choice=function(e){varn=Math.floor(this.fraction()*e.length);return"string"==typeofe?e.substr(n,1):e[n]};varu="undefined"!=typeofwindow&&window.innerHeight||"undefined"!=typeofdocument&&document.documentElement&&document.documentElement.clientHeight||"undefined"!=typeofdocument&&document.body&&document.body.clientHeight||1,c="undefined"!=typeofwindow&&window.innerWidth||"undefined"!=typeofdocument&&document.documentElement&&document.documentElement.clientWidth||"undefined"!=typeofdocument&&document.body&&document.body.clientWidth||1,s="undefined"!=typeofnavigator&&navigator.userAgent||"";m=e.isServer?newd(d.Type.NODE_CRYPTO):"undefined"!=typeofwindow&&window.crypto&&window.crypto.getRandomValues?newd(d.Type.BROWSER_CRYPTO):r(),m.createWithSeeds=function(){for(vare=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];if(0===n.length)thrownewError("No seeds were provided");returnnewd(d.Type.ALEA,{seeds:n})},m.insecure=r()},"deprecated.js":function(){e.uuid=function(){for(vare="0123456789abcdef",n=[],r=0;r<36;r++)n[r]=m.choice(e);n[14]="4",n[19]=e.substr(3&parseInt(n[19],16)|8,1),n[8]=n[13]=n[18]=n[23]="-";vart=n.join("");returnt}}}}}},{extensions:[".js",".json"]});p("./node_modules/meteor/random/random.js"),p("./node_modules/meteor/random/deprecated.js"),"undefined"==typeofPackage&&(Package={}),function(e,n){for(varrinn)rine||(e[r]=n[r])}(Package.random={},{Random:m})}()
!function(){vart=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,o=Package.ejson.EJSON,n=Package["id-map"].IdMap,i=Package.random.Random,a;(function(){a={},a._looksLikeObjectID=function(t){return24===t.length&&t.match(/^[0-9a-f]*$/)},a.ObjectID=function(t){vare=this;if(t){if(t=t.toLowerCase(),!a._looksLikeObjectID(t))thrownewError("Invalid hexadecimal string for creating an ObjectID");e._str=t}elsee._str=i.hexString(24)},a.ObjectID.prototype.toString=function(){vart=this;return'ObjectID("'+t._str+'")'},a.ObjectID.prototype.equals=function(t){vare=this;returntinstanceofa.ObjectID&&e.valueOf()===t.valueOf()},a.ObjectID.prototype.clone=function(){vart=this;returnnewa.ObjectID(t._str)},a.ObjectID.prototype.typeName=function(){return"oid"},a.ObjectID.prototype.getTimestamp=function(){vart=this;returnparseInt(t._str.substr(0,8),16)},a.ObjectID.prototype.valueOf=a.ObjectID.prototype.toJSONValue=a.ObjectID.prototype.toHexString=function(){returnthis._str},o.addType("oid",function(t){returnnewa.ObjectID(t)}),a.idStringify=function(t){if(tinstanceofa.ObjectID)returnt.valueOf();if("string"==typeoft)return""===t?t:"-"===t.substr(0,1)||"~"===t.substr(0,1)||a._looksLikeObjectID(t)||"{"===t.substr(0,1)?"-"+t:t;if(void0===t)return"-";if("object"==typeoft&&null!==t)thrownewError("Meteor does not currently support objects other than ObjectID as ids");return"~"+JSON.stringify(t)},a.idParse=function(t){return""===t?t:"-"===t?void0:"-"===t.substr(0,1)?t.substr(1):"~"===t.substr(0,1)?JSON.parse(t.substr(1)):a._looksLikeObjectID(t)?newa.ObjectID(t):t}}).call(this),"undefined"==typeofPackage&&(Package={}),function(t,e){for(varrine)rint||(t[r]=e[r])}(Package["mongo-id"]={},{MongoID:a})}();
!function(){vare=Package.meteor.Meteor,n=Package.meteor.global,d=Package.meteor.meteorEnv,i=Package.underscore._,a=Package.ejson.EJSON,r;(function(){r={},r.diffQueryChanges=function(e,n,d,i,a){e?r.diffQueryOrderedChanges(n,d,i,a):r.diffQueryUnorderedChanges(n,d,i,a)},r.diffQueryUnorderedChanges=function(e,n,d,o){o=o||{};varf=o.projectionFn||a.clone;if(d.movedBefore)thrownewError("_diffQueryUnordered called with a movedBefore observer!");n.forEach(function(n,o){vart=e.get(o);if(t){if(d.changed&&!a.equals(t,n)){varc=f(n),u=f(t),h=r.makeChangedFields(c,u);i.isEmpty(h)||d.changed(o,h)}}elseif(d.added){varl=f(n);deletel._id,d.added(n._id,l)}}),d.removed&&e.forEach(function(e,i){n.has(i)||d.removed(i)})},r.diffQueryOrderedChanges=function(n,d,o,f){f=f||{};vart=f.projectionFn||a.clone,c={};i.each(d,function(n){c[n._id]&&e._debug("Duplicate _id in new_results"),c[n._id]=!0});varu={};i.each(n,function(n,d){n._idinu&&e._debug("Duplicate _id in old_results"),u[n._id]=d});for(varh=[],l=0,s=d.length,g=newArray(s),v=newArray(s),_=function(e){returnu[d[e]._id]},m=0;m<s;m++)if(void0!==u[d[m]._id]){for(vary=l;y>0&&!(_(g[y-1])<_(m));)y--;v[m]=0===y?-1:g[y-1],g[y]=m,y+1>l&&(l=y+1)}for(vark=0===l?-1:g[l-1];k>=0;)h.push(k),k=v[k];h.reverse(),h.push(d.length),i.each(n,function(e){c[e._id]||o.removed&&o.removed(e._id)});varp=0;i.each(h,function(e){for(vara=d[e]?d[e]._id:null,f,c,h,l,s,g=p;g<e;g++)c=d[g],i.has(u,c._id)?(f=n[u[c._id]],l=t(c),s=t(f),h=r.makeChangedFields(l,s),i.isEmpty(h)||o.changed&&o.changed(c._id,h),o.movedBefore&&o.movedBefore(c._id,a)):(h=t(c),deleteh._id,o.addedBefore&&o.addedBefore(c._id,h,a),o.added&&o.added(c._id,h));a&&(c=d[e],f=n[u[c._id]],l=t(c),s=t(f),h=r.makeChangedFields(l,s),i.isEmpty(h)||o.changed&&o.changed(c._id,h)),p=e+1})},r.diffObjects=function(e,n,d){i.each(e,function(e,a){i.has(n,a)?d.both&&d.both(a,e,n[a]):d.leftOnly&&d.leftOnly(a,e)}),d.rightOnly&&i.each(n,function(n,a){i.has(e,a)||d.rightOnly(a,n)})},r.makeChangedFields=function(e,n){vard={};returnr.diffObjects(n,e,{leftOnly:function(e,n){d[e]=void0},rightOnly:function(e,n){d[e]=n},both:function(e,n,i){a.equals(n,i)||(d[e]=i)}}),d},r.applyChanges=function(e,n){i.each(n,function(n,d){void0===n?deletee[d]:e[d]=n})}}).call(this),"undefined"==typeofPackage&&(Package={}),function(e,n){for(vardinn)dine||(e[d]=n[d])}(Package["diff-sequence"]={},{DiffSequence:r})}();
!function(){vare=Package.meteor.Meteor,r=Package.meteor.global,t=Package.meteor.meteorEnv,n=Package.underscore._,o=Package.ejson.EJSON,i=Package["id-map"].IdMap,a=Package["ordered-dict"].OrderedDict,s=Package.tracker.Tracker,c=Package.tracker.Deps,u=Package["mongo-id"].MongoID,d=Package.random.Random,f=Package["diff-sequence"].DiffSequence,l=Package["geojson-utils"].GeoJSON,h,p,v,_,m,y,g,w,$,b,E,I,C,O,k,S;(function(){h=function(r){vart=this;t.name=r,t._docs=newh._IdMap,t._observeQueue=newe._SynchronousQueue,t.next_qid=1,t.queries={},t._savedOriginals=null,t.paused=!1},p={},v={},_=function(e){varr=newError(e);returnr.name="MinimongoError",r},h.prototype.find=function(e,r){return0===arguments.length&&(e={}),newh.Cursor(this,e,r)},h.Cursor=function(e,r,t){varn=this;t||(t={}),n.collection=e,n.sorter=null,n.matcher=newp.Matcher(r),h._selectorIsId(r)?n._selectorId=r:h._selectorIsIdPerhapsAsObject(r)?n._selectorId=r._id:(n._selectorId=void0,(n.matcher.hasGeoQuery()||t.sort)&&(n.sorter=newp.Sorter(t.sort||[],{matcher:n.matcher}))),n.skip=t.skip,n.limit=t.limit,n.fields=t.fields,n._projectionFn=h._compileProjection(n.fields||{}),n._transform=h.wrapTransform(t.transform),"undefined"!=typeofs&&(n.reactive=void0===t.reactive||t.reactive)},h.Cursor.prototype.rewind=function(){},h.prototype.findOne=function(e,r){return0===arguments.length&&(e={}),r=r||{},r.limit=1,this.find(e,r).fetch()[0]},h.Cursor.prototype.forEach=function(e,r){vart=this,o=t._getRawObjects({ordered:!0});t.reactive&&t._depend({addedBefore:!0,removed:!0,changed:!0,movedBefore:!0}),n.each(o,function(n,o){n=t._projectionFn(n),t._transform&&(n=t._transform(n)),e.call(r,n,o,t)})},h.Cursor.prototype.getTransform=function(){returnthis._transform},h.Cursor.prototype.map=function(e,r){vart=this,n=[];returnt.forEach(function(o,i){n.push(e.call(r,o,i,t))}),n},h.Cursor.prototype.fetch=function(){vare=this,r=[];returne.forEach(function(e){r.push(e)}),r},h.Cursor.prototype.count=function(){vare=this;returne.reactive&&e._depend({added:!0,removed:!0},!0),e._getRawObjects({ordered:!0}).length},h.Cursor.prototype._publishCursor=function(e){varr=this;if(!r.collection.name)thrownewError("Can't publish a cursor from a collection without a name.");vart=r.collection.name;if(!Package.mongo)thrownewError("Can't publish from Minimongo without the `mongo` package.");returnPackage.mongo.Mongo.Collection._publishCursor(r,e,t)},h.Cursor.prototype._getCollectionName=function(){vare=this;returne.collection.name},h._observeChangesCallbacksAreOrdered=function(e){if(e.added&&e.addedBefore)thrownewError("Please specify only one of added() and addedBefore()");return!(!e.addedBefore&&!e.movedBefore)},h._observeCallbacksAreOrdered=function(e){if(e.addedAt&&e.added)thrownewError("Please specify only one of added() and addedAt()");if(e.changedAt&&e.changed)thrownewError("Please specify only one of changed() and changedAt()");if(e.removed&&e.removedAt)thrownewError("Please specify only one of removed() and removedAt()");return!!(e.addedAt||e.movedTo||e.changedAt||e.removedAt)},h.ObserveHandle=function(){},n.extend(h.Cursor.prototype,{observe:function(e){varr=this;returnh._observeFromObserveChanges(r,e)},observeChanges:function(e){varr=this,t=h._observeChangesCallbacksAreOrdered(e);if(!e._allow_unordered&&!t&&(r.skip||r.limit))thrownewError("must use ordered observe (ie, 'addedBefore' instead of 'added') with skip or limit");if(r.fields&&(0===r.fields._id||r.fields._id===!1))throwError("You may not observe a cursor with {fields: {_id: 0}}");vari={dirty:!1,matcher:r.matcher,sorter:t&&r.sorter,distances:r.matcher.hasGeoQuery()&&t&&newh._IdMap,resultsSnapshot:null,ordered:t,cursor:r,projectionFn:r._projectionFn},a;r.reactive&&(a=r.collection.next_qid++,r.collection.queries[a]=i),i.results=r._getRawObjects({ordered:t,distances:i.distances}),r.collection.paused&&(i.resultsSnapshot=t?[]:newh._IdMap);varc=function(e){returne?function(){vart=this,n=arguments;r.collection.paused||r.collection._observeQueue.queueTask(function(){e.apply(t,n)})}:function(){}};if(i.ad
if(!(ninstanceofArray))throw_("$each must be an array");varo=void0;if("$position"int){if("number"!=typeoft.$position)throw_("$position must be a numeric value");if(t.$position<0)throw_("$position in $push must be zero or positive");o=t.$position}vari=void0;if("$slice"int){if("number"!=typeoft.$slice)throw_("$slice must be a numeric value");if(t.$slice>0)throw_("$slice in $push must be zero or negative");i=t.$slice}vara=void0;if(t.$sort){if(void0===i)throw_("$sort requires $slice to be present");a=newp.Sorter(t.$sort).getComparator();for(vars=0;s<n.length;s++)if(3!==h._f._type(n[s]))throw_("$push like modifiers using $sort require all elements to be objects")}if(void0===o)for(varc=0;c<n.length;c++)e[r].push(n[c]);else{for(varu=[o,0],c=0;c<n.length;c++)u.push(n[c]);Array.prototype.splice.apply(e[r],u)}a&&e[r].sort(a),void0!==i&&(0===i?e[r]=[]:e[r]=e[r].slice(i))},$pushAll:function(e,r,t){if(!("object"==typeoft&&tinstanceofArray))throw_("Modifier $pushAll/pullAll allowed for arrays only");varn=e[r];if(void0===n)e[r]=t;else{if(!(ninstanceofArray))throw_("Cannot apply $pushAll modifier to non-array");for(varo=0;o<t.length;o++)n.push(t[o])}},$addToSet:function(e,r,t){varo=!1;if("object"==typeoft)for(variint){"$each"===i&&(o=!0);break}vara=o?t.$each:[t],s=e[r];if(void0===s)e[r]=a;else{if(!(sinstanceofArray))throw_("Cannot apply $addToSet modifier to non-array");n.each(a,function(e){for(varr=0;r<s.length;r++)if(h._f._equal(e,s[r]))return;s.push(e)})}},$pop:function(e,r,t){if(void0!==e){varn=e[r];if(void0!==n){if(!(ninstanceofArray))throw_("Cannot apply $pop modifier to non-array");"number"==typeoft&&t<0?n.splice(0,1):n.pop()}}},$pull:function(e,r,t){if(void0!==e){varn=e[r];if(void0!==n){if(!(ninstanceofArray))throw_("Cannot apply $pull/pullAll modifier to non-array");varo=[];if(null==t||"object"!=typeoft||tinstanceofArray)for(vari=0;i<n.length;i++)h._f._equal(n[i],t)||o.push(n[i]);elsefor(vara=newp.Matcher(t),i=0;i<n.length;i++)a.documentMatches(n[i]).result||o.push(n[i]);e[r]=o}}},$pullAll:function(e,r,t){if(!("object"==typeoft&&tinstanceofArray))throw_("Modifier $pushAll/pullAll allowed for arrays only");if(void0!==e){varn=e[r];if(void0!==n){if(!(ninstanceofArray))throw_("Cannot apply $pull/pullAll modifier to non-array");for(varo=[],i=0;i<n.length;i++){for(vara=!1,s=0;s<t.length;s++)if(h._f._equal(n[i],t[s])){a=!0;break}a||o.push(n[i])}e[r]=o}}},$rename:function(r,t,n,o,i){if(o===n)throw_("$rename source must differ from target");if(null===r)throw_("$rename source field invalid");if("string"!=typeofn)throw_("$rename target must be a string");if(void0!==r){vara=r[t];deleter[t];vars=n.split("."),c=e(i,s,{forbidArray:!0});if(null===c)throw_("$rename target field invalid");varu=s.pop();c[u]=a}},$bit:function(e,r,t){throw_("$bit is not supported")}}}.call(this),function(){h._diffQueryChanges=function(e,r,t,n,o){returnf.diffQueryChanges(e,r,t,n,o)},h._diffQueryUnorderedChanges=function(e,r,t,n){returnf.diffQueryUnorderedChanges(e,r,t,n)},h._diffQueryOrderedChanges=function(e,r,t,n){returnf.diffQueryOrderedChanges(e,r,t,n)},h._diffObjects=function(e,r,t){returnf.diffObjects(e,r,t)}}.call(this),function(){h._IdMap=function(){vare=this;i.call(e,u.idStringify,u.idParse)},e._inherits(h._IdMap,i)}.call(this),function(){h._CachingChangeObserver=function(e){varr=this;e=e||{};vart=e.callbacks&&h._observeChangesCallbacksAreOrdered(e.callbacks);if(n.has(e,"ordered")){if(r.ordered=e.ordered,e.callbacks&&e.ordered!==t)throwError("ordered option doesn't match callbacks")}else{if(!e.callbacks)throwError("must provide ordered or callbacks");r.ordered=t}vari=e.callbacks||{};r.ordered?(r.docs=newa(u.idStringify),r.applyChange={addedBefore:function(e,t,n){vara=o.clone(t);a._id=e,i.addedBefore&&i.addedBefore.call(r,e,t,n),i.added&&i.added.call(r,e,t),r.docs.putBefore(e,a,n||null)},movedBefore:function(e,t){varn=r.docs.get(e);i.movedBefore&&i.movedBefore.call(r,e,t),r.docs.moveBefore(e,t||null)}}):(r.docs=newh._IdMap,r.applyChange={added:function(e
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,a=Package.modules.Buffer,i=Package.modules.process,o=Package.underscore._,c=Package.ejson.EJSON,s,u,f=r({node_modules:{meteor:{check:{"match.js":["./isPlainObject.js",function(t,n){varr=newe.EnvironmentVariable,a=t("./isPlainObject.js").isPlainObject,i=n.check=function(e,t){varn=r.getOrNullIfOutsideFiber();n&&n.checking(e);vara=y(e,t);if(a){vari=news.Error(a.message);throwa.path&&(i.message+=" in field "+a.path,i.path=a.path),i}},s=n.Match={Optional:function(e){returnnewu(e)},Maybe:function(e){returnnewf(e)},OneOf:function(){returnnewl(o.toArray(arguments))},Any:["__any__"],Where:function(e){returnnewh(e)},ObjectIncluding:function(e){returnnewp(e)},ObjectWithValues:function(e){returnnewg(e)},Integer:["__integer__"],Error:e.makeErrorType("Match.Error",function(t){this.message="Match error: "+t,this.path="",this.sanitizedError=newe.Error(400,"Match failed")}),test:function(e,t){return!y(e,t)},_failIfArgumentsAreNotAllChecked:function(e,t,n,a){vari=newv(n,a),o=r.withValue(i,function(){returne.apply(t,n)});returni.throwUnlessAllArgumentsHaveBeenChecked(),o}},u=function(e){this.pattern=e},f=function(e){this.pattern=e},l=function(e){if(o.isEmpty(e))thrownewError("Must provide at least one choice to Match.OneOf");this.choices=e},h=function(e){this.condition=e},p=function(e){this.pattern=e},g=function(e){this.pattern=e},d=function(e,t){if(t=t||{},null===e)return"null";if(t.onlyShowType)returntypeofe;if("object"!=typeofe)returnc.stringify(e);try{JSON.stringify(e)}catch(t){if("TypeError"===t.name)returntypeofe}returnc.stringify(e)},m=[[String,"string"],[Number,"number"],[Boolean,"boolean"],[Function,"function"],[void0,"undefined"]],y=function(e,t){if(t===s.Any)return!1;for(varn=0;n<m.length;++n)if(t===m[n][0])returntypeofe!==m[n][1]&&{message:"Expected "+m[n][1]+", got "+d(e,{onlyShowType:!0}),path:""};if(null===t)returnnull!==e&&{message:"Expected null, got "+d(e),path:""};if("string"==typeoft||"number"==typeoft||"boolean"==typeoft)returne!==t&&{message:"Expected "+t+", got "+d(e),path:""};if(t===s.Integer)return("number"!=typeofe||(0|e)!==e)&&{message:"Expected Integer, got "+d(e),path:""};if(t===Object&&(t=s.ObjectIncluding({})),tinstanceofArray){if(1!==t.length)return{message:"Bad pattern: arrays must have one type element"+d(t),path:""};if(!o.isArray(e)&&!o.isArguments(e))return{message:"Expected array, got "+d(e),path:""};for(varn=0,r=e.length;n<r;n++){vari=y(e[n],t[0]);if(i)returni.path=k(n,i.path),i}return!1}if(tinstanceofh){vari;try{i=t.condition(e)}catch(e){if(!(einstanceofs.Error))throwe;return{message:e.message,path:e.path}}return!i&&{message:"Failed Match.Where validation",path:""}}if(tinstanceoff?t=s.OneOf(void0,null,t.pattern):tinstanceofu&&(t=s.OneOf(void0,t.pattern)),tinstanceofl){for(varn=0;n<t.choices.length;++n){vari=y(e,t.choices[n]);if(!i)return!1}return{message:"Failed Match.OneOf, Match.Maybe or Match.Optional validation",path:""}}if(tinstanceofFunction)return!(einstanceoft)&&{message:"Expected "+(t.name||"particular constructor"),path:""};varc=!1,v;if(tinstanceofp&&(c=!0,t=t.pattern),tinstanceofg&&(c=!0,v=[t.pattern],t={}),"object"!=typeoft)return{message:"Bad pattern: unknown pattern type",path:""};if("object"!=typeofe)return{message:"Expected object, got "+typeofe,path:""};if(null===e)return{message:"Expected object, got null",path:""};if(!a(e))return{message:"Expected plain object",path:""};varb={},w={};o.each(t,function(e,t){einstanceofu||einstanceoff?w[t]=e.pattern:b[t]=e});for(varO=function(e){vart=[];if(o.isObject(e))for(varnine)t.push(n);returnt},j=O(e),n=0,r=j.length;n<r;n++){varE=j[n],P=e[E];if(o.has(b,E)){vari=y(P,b[E]);if(i)returni.path=k(E,i.path),i;deleteb[E]}elseif(o.has(w,E)){vari=y(P,w[E]);if(i)returni.path=k(E,i.path),i}else{if(!c)return{message:"Unknown key",path:E};if(v){vari=y(P,v[0]);if(i)returni.path=k(E,i.path),i}}}varj=o.keys(b);returnj.length?{message:"Missing ke
!function(){var a=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,o=Package.underscore._,n=Package["ecmascript-runtime"].Symbol,r=Package["ecmascript-runtime"].Map,i=Package["ecmascript-runtime"].Set,c;(function(){c={};var e="Meteor_Reload",t={},n,r=null;try{r=window.sessionStorage,r?(r.setItem("__dummy__","1"),r.removeItem("__dummy__")):r=null}catch(a){r=null}c._getData=function(){return r&&r.getItem(e)},r&&(n=c._getData(),r.removeItem(e)),n||(n="{}");var i={};try{i=JSON.parse(n),"object"!=typeof i&&(a._debug("Got bad data on reload. Ignoring."),i={})}catch(e){a._debug("Got invalid JSON on reload. Ignoring.")}i.reload&&"object"==typeof i.data&&(t=i.data);var l=[];c._onMigrate=function(a,e){e||(e=a,a=void 0),l.push({name:a,callback:e})},c._migrationData=function(a){return t[a]};var d=function(a,e){a=a||function(){},e=e||{};for(var t={},n=o.clone(l),r=!0;n.length;){var i=n.shift(),c=i.callback(a,e);c[0]||(r=!1),c.length>1&&i.name&&(t[i.name]=c[1])}return r||e.immediateMigration?t:null};c._migrate=function(t,o){var n=d(t,o);if(null===n)return!1;try{var i=JSON.stringify({data:n,reload:!0})}catch(e){throw a._debug("Couldn'tserializedataformigration",n),e}if(r)try{r.setItem(e,i)}catch(e){a._debug("Couldn't save data for migration to sessionStorage",e)}else a._debug("Browser does not support sessionStorage. Not saving migration state.");return!0},c._withFreshProvidersForTest=function(a){var e=o.clone(l);l=[];try{a()}finally{l=e}};var g=!1;c._reload=function(a){if(a=a||{},!g){g=!0;var e=function(){o.defer(function(){c._migrate(e,a)&&(window.location.hash||window.location.href.endsWith("#")?window.location.reload():window.location.replace(window.location.href))})};e()}}}).call(this),function(){a._reload={onMigrate:c._onMigrate,migrationData:c._migrationData,reload:c._reload}}.call(this),"undefined"==typeof Package&&(Package={}),function(a,e){for(var t in e)t in a||(a[t]=e[t])}(Package.reload={},{Reload:c})}();
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.check.check,o=Package.check.Match,i=Package.random.Random,s=Package.ejson.EJSON,a=Package.underscore._,u=Package.tracker.Tracker,c=Package.tracker.Deps,d=Package.retry.Retry,l=Package["id-map"].IdMap,f=Package["ddp-common"].DDPCommon,_=Package["diff-sequence"].DiffSequence,p=Package["mongo-id"].MongoID,h,v,m,g,b,y,w;(function(){h={},v={}}).call(this),function(){m=function(){var e=this;l.call(e,p.idStringify,p.idParse)},e._inherits(m,l)}.call(this),function(){g=function(){var e=document,t=window,n={},r=function(){};r.prototype.addEventListener=function(e,t){this._listeners||(this._listeners={}),e in this._listeners||(this._listeners[e]=[]);var r=this._listeners[e];n.arrIndexOf(r,t)===-1&&r.push(t)},r.prototype.removeEventListener=function(e,t){if(this._listeners&&e in this._listeners){var r=this._listeners[e],o=n.arrIndexOf(r,t);return o!==-1?void(r.length>1?this._listeners[e]=r.slice(0,o).concat(r.slice(o+1)):delete this._listeners[e]):void 0}},r.prototype.dispatchEvent=function(e){var t=e.type,n=Array.prototype.slice.call(arguments,0);if(this["on"+t]&&this["on"+t].apply(this,n),this._listeners&&t in this._listeners)for(var r=0;r<this._listeners[t].length;r++)this._listeners[t][r].apply(this,n)};var o=function(e,t){if(this.type=e,"undefined"!=typeof t)for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n])};o.prototype.toString=function(){var e=[];for(var t in this)if(this.hasOwnProperty(t)){var n=this[t];"function"==typeof n&&(n="[function]"),e.push(t+"="+n)}return"SimpleEvent("+e.join(", ")+")"};var i=function(e){var t=this;t._events=e||[],t._listeners={}};i.prototype.emit=function(e){var t=this;if(t._verifyType(e),!t._nuked){var n=Array.prototype.slice.call(arguments,1);if(t["on"+e]&&t["on"+e].apply(t,n),e in t._listeners)for(var r=0;r<t._listeners[e].length;r++)t._listeners[e][r].apply(t,n)}},i.prototype.on=function(e,t){var n=this;n._verifyType(e),n._nuked||(e in n._listeners||(n._listeners[e]=[]),n._listeners[e].push(t))},i.prototype._verifyType=function(e){var t=this;n.arrIndexOf(t._events,e)===-1&&n.log("Event "+JSON.stringify(e)+" not listed "+JSON.stringify(t._events)+" in "+t)},i.prototype.nuke=function(){var e=this;e._nuked=!0;for(var t=0;t<e._events.length;t++)delete e[e._events[t]];e._listeners={}};var s="abcdefghijklmnopqrstuvwxyz0123456789_";n.random_string=function(e,t){t=t||s.length;var n,r=[];for(n=0;n<e;n++)r.push(s.substr(Math.floor(Math.random()*t),1));return r.join("")},n.random_number=function(e){return Math.floor(Math.random()*e)},n.random_number_string=function(e){var t=(""+(e-1)).length,r=Array(t+1).join("0");return(r+n.random_number(e)).slice(-t)},n.getOrigin=function(e){e+="/";var t=e.split("/").slice(0,3);return t.join("/")},n.isSameOriginUrl=function(e,n){return n||(n=t.location.href),e.split("/").slice(0,3).join("/")===n.split("/").slice(0,3).join("/")},n.isSameOriginScheme=function(e,n){return n||(n=t.location.href),e.split(":")[0]===n.split(":")[0]},n.getParentDomain=function(e){if(/^[0-9.]*$/.test(e))return e;if(/^\[/.test(e))return e;if(!/[.]/.test(e))return e;var t=e.split(".").slice(1);return t.join(".")},n.objectExtend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e};var a="_jp";n.polluteGlobalNamespace=function(){a in t||(t[a]={})},n.closeFrame=function(e,t){return"c"+JSON.stringify([e,t])},n.userSetCode=function(e){return 1e3===e||e>=3e3&&e<=4999},n.countRTO=function(e){var t;return t=e>100?3*e:e+200},n.log=function(){t.console&&console.log&&console.log.apply&&console.log.apply(console,arguments)},n.bind=function(e,t){return e.bind?e.bind(t):function(){return e.apply(t,arguments)}},n.flatUrl=function(e){return e.indexOf("?")===-1&&e.indexOf("#")===-1},n.amendUrl=function(t,r){var o;if(void 0===r)o=e.location;else{var i=/^([a-z0-9.+-]+:)/i.exec(r);if(i){var s=i[0].toLowerCase(),a=r.substring(s.length),u=/[a-z0-9\.-]+(:[0-9]+)?/.exec(a);if(u)var c=u[0]}if(!s||!c)throw new Error("relativeTo must be an absolute url");o={protocol:s,host:c}}if(!t)throw new Error("Wrong
!function(){var a=Package["ddp-client"].DDP;"undefined"==typeof Package&&(Package={}),function(a,n){for(var e in n)e in a||(a[e]=n[e])}(Package.ddp={},{DDP:a})}();
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,t=Package.underscore._,o=Package.minimongo.LocalCollection,a=Package.minimongo.Minimongo,i=Package.check.check,c=Package.check.Match,l=Package.ejson.EJSON,s=Package["ddp-client"].DDP,d=Package.modules.meteorInstall,u=Package.modules.Buffer,f=Package.modules.process,h=Package["ecmascript-runtime"].Symbol,_=Package["ecmascript-runtime"].Map,m=Package["ecmascript-runtime"].Set,v=Package["babel-runtime"].meteorBabelHelpers,p=Package.promise.Promise,w,y=d({node_modules:{meteor:{"allow-deny":{"allow-deny.js":function(){function n(e,n){return e.transform?e.transform(n):n}function r(e,n,r){var t=n;return e.transform&&(t=l.clone(n),null!==r&&(t._id=r),t=e.transform(t)),t}function a(e,n,r){var a=["insert","update","remove","fetch","transform"];if(t.each(t.keys(r),function(e){if(!t.contains(a,e))throw new Error(n+": Invalid key: "+e)}),e._restricted=!0,t.each(["insert","update","remove"],function(t){if(r.hasOwnProperty(t)){if(!(r[t]instanceof Function))throw new Error(n+": Value for `"+t+"` must be a function");void 0===r.transform?r[t].transform=e._transform:r[t].transform=o.wrapTransform(r.transform),e._validators[t][n].push(r[t])}}),r.update||r.remove||r.fetch){if(r.fetch&&!(r.fetch instanceof Array))throw new Error(n+": Value for `fetch` must be an array");e._updateFetch(r.fetch)}}function d(n,r){if(!o._selectorIsIdPerhapsAsObject(n))throw new e.Error(403,"Not permitted. Untrusted code may only "+r+" documents by ID.")}function u(){var e=s._CurrentInvocation.get();return e&&e.isSimulation}w={CollectionPrototype:{}};var f=w.CollectionPrototype;f.allow=function(e){a(this,"allow",e)},f.deny=function(e){a(this,"deny",e)},f._defineMutationMethods=function(n){var r=this;n=n||{},r._restricted=!1,r._insecure=void 0,r._validators={insert:{allow:[],deny:[]},update:{allow:[],deny:[]},remove:{allow:[],deny:[]},upsert:{allow:[],deny:[]},fetch:[],fetchAllFields:!1},r._name&&(r._prefix="/"+r._name+"/",r._connection&&(r._connection===e.server||e.isClient)&&!function(){var o={};t.each(["insert","update","remove"],function(a){var l=r._prefix+a;if(n.useExisting){var s=e.isClient?"_methodHandlers":"method_handlers";if(r._connection[s]&&"function"==typeof r._connection[s][l])return}o[l]=function(){i(arguments,[c.Any]);var n=t.toArray(arguments);try{var o=null;if("insert"!==a||t.has(n[0],"_id")||(o=r._makeNewID()),this.isSimulation)return null!==o&&(n[0]._id=o),r._collection[a].apply(r._collection,n);if("insert"!==a&&d(n[0],a),r._restricted){if(0===r._validators[a].allow.length)throw new e.Error(403,"Access denied. No allow validators set on restricted collection for method '"+a+"'.");var l="_validated"+a.charAt(0).toUpperCase()+a.slice(1);return n.unshift(this.userId),"insert"===a&&n.push(o),r[l].apply(r,n)}if(r._isInsecure())return null!==o&&(n[0]._id=o),r._collection[a].apply(r._collection,n);throw new e.Error(403,"Access denied")}catch(n){throw"MongoError"===n.name||"MinimongoError"===n.name?new e.Error(409,n.toString()):n}}}),r._connection.methods(o)}())},f._updateFetch=function(e){var n=this;n._validators.fetchAllFields||(e?n._validators.fetch=t.union(n._validators.fetch,e):(n._validators.fetchAllFields=!0,n._validators.fetch=null))},f._isInsecure=function(){var e=this;return void 0===e._insecure?!!Package.insecure:e._insecure},f._validatedInsert=function(n,o,a){var i=this;if(t.any(i._validators.insert.deny,function(e){return e(n,r(e,o,a))}))throw new e.Error(403,"Access denied");if(t.all(i._validators.insert.allow,function(e){return!e(n,r(e,o,a))}))throw new e.Error(403,"Access denied");null!==a&&(o._id=a),i._collection.insert.call(i._collection,o)},f._validatedUpdate=function(r,a,c,l){var s=this;if(i(c,Object),l=t.clone(l)||{},!o._selectorIsIdPerhapsAsObject(a))throw new Error("validated update should be of a single ID");if(l.upsert)throw new e.Error(403,"Access denied. Upserts not allowed in a restricted collection.");var d="Access denied. In a restricted collection you can only update documents, not replace them. Use a Mongo update operator, such as
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,o=Package.meteor.meteorEnv,t=Package["allow-deny"].AllowDeny,r=Package.random.Random,i=Package.ejson.EJSON,c=Package.underscore._,l=Package.minimongo.LocalCollection,a=Package.minimongo.Minimongo,s=Package["ddp-client"].DDP,u=Package.tracker.Tracker,d=Package.tracker.Deps,f=Package["diff-sequence"].DiffSequence,_=Package["mongo-id"].MongoID,p=Package.check.check,m=Package.check.Match,g=Package.modules.meteorInstall,v=Package.modules.Buffer,h=Package.modules.process,w=Package["ecmascript-runtime"].Symbol,C=Package["ecmascript-runtime"].Map,y=Package["ecmascript-runtime"].Set,k=Package["babel-runtime"].meteorBabelHelpers,O=Package.promise.Promise,b,I,P=g({node_modules:{meteor:{mongo:{"local_collection_driver.js":function(){b=function e(){var n=this;n.noConnCollections={}};var e=function e(n,o){return n in o||(o[n]=new l(n)),o[n]};c.extend(b.prototype,{open:function(){function n(n,o){var t=this;return n?o?(o._mongo_livedata_collections||(o._mongo_livedata_collections={}),e(n,o._mongo_livedata_collections)):e(n,t.noConnCollections):new l}return n}()}),b=new b},"collection.js":function(n,o,i){function a(e){p(e,RegExp);var n={$regex:e.source},o="";return e.ignoreCase&&(o+="i"),e.multiline&&(o+="m"),o&&(n.$options=o),n}function u(e,n){if(e)return n=n||c.identity,function(o,t){e(o,!o&&n(t))}}function d(e){if(e.length&&(void 0===e[e.length-1]||e[e.length-1]instanceof Function))return e.pop()}I={},I.Collection=function(n,o){var t=this;if(!(t instanceof I.Collection))throw new Error('use"new"toconstructaMongo.Collection');if(n||null===n||(e._debug("Warning: creating anonymous collection. It will not be saved or synchronized over the network. (Pass null for the collection name to turn off this warning.)"),n=null),null!==n&&"string"!=typeof n)throw new Error("First argument to new Mongo.Collection must be a string or null");switch(o&&o.methods&&(o={connection:o}),o&&o.manager&&!o.connection&&(o.connection=o.manager),o=c.extend({connection:void 0,idGeneration:"STRING",transform:null,_driver:void 0,_preventAutopublish:!1},o),o.idGeneration){case"MONGO":t._makeNewID=function(){var e=n?s.randomStream("/collection/"+n):r.insecure;return new I.ObjectID(e.hexString(24))};break;case"STRING":default:t._makeNewID=function(){var e=n?s.randomStream("/collection/"+n):r.insecure;return e.id()}}if(t._transform=l.wrapTransform(o.transform),n&&null!==o.connection?o.connection?t._connection=o.connection:e.isClient?t._connection=e.connection:t._connection=e.server:t._connection=null,o._driver||(n&&t._connection===e.server&&"undefined"!=typeof MongoInternals&&MongoInternals.defaultRemoteCollectionDriver?o._driver=MongoInternals.defaultRemoteCollectionDriver():o._driver=b),t._collection=o._driver.open(n,t._connection),t._name=n,t._driver=o._driver,t._connection&&t._connection.registerStore){var i=t._connection.registerStore(n,{beginUpdate:function(){function e(e,n){(e>1||n)&&t._collection.pauseObservers(),n&&t._collection.remove({})}return e}(),update:function(){function e(e){var n=_.idParse(e.id),o=t._collection.findOne(n);if("replace"===e.msg){var r=e.replace;return void(r?o?t._collection.update(n,r):t._collection.insert(r):o&&t._collection.remove(n))}if("added"===e.msg){if(o)throw new Error("Expected not to find a document already present for an add");t._collection.insert(c.extend({_id:n},e.fields))}else if("removed"===e.msg){if(!o)throw new Error("Expected to find a document already present for removed");t._collection.remove(n)}else{if("changed"!==e.msg)throw new Error("I don'tknowhowtodealwiththismessage");if(!o)throw new Error("Expectedtofindadocumenttochange");if(!c.isEmpty(e.fields)){var i={};c.each(e.fields,function(e,n){void 0===e?(i.$unset||(i.$unset={}),i.$unset[n]=1):(i.$set||(i.$set={}),i.$set[n]=e)}),t._collection.update(n,i)}}}return e}(),endUpdate:function(){function e(){t._collection.resumeObservers()}return e}(),saveOriginals:function(){function e(){t._collection.saveOriginals()}return e}(),retrieveOriginals:function(){function e(){return t._collection.r
!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.tracker.Tracker,r=Package.tracker.Deps,i;(function(){i=function(e,t){return this instanceof i?(this.curValue=e,this.equalsFunc=t,void(this.dep=new a.Dependency)):new i(e,t)},i._isEqual=function(e,t){var n=e,a=t;return n===a&&(!n||"number"==typeof n||"boolean"==typeof n||"string"==typeof n)},i.prototype.get=function(){return a.active&&this.dep.depend(),this.curValue},i.prototype.set=function(e){var t=this.curValue;(this.equalsFunc||i._isEqual)(t,e)||(this.curValue=e,this.dep.changed())},i.prototype.toString=function(){return"ReactiveVar{"+this.get()+"}"},i.prototype._numListeners=function(){var e=0;for(var t in this.dep._dependentsById)e++;return e}}).call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package["reactive-var"]={},{ReactiveVar:i})}();
!function(){vare=Package.meteor.Meteor,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(){var a=Package.tracker.Tracker,e=Package.tracker.Deps;"undefined"==typeof Package&&(Package={}),function(a,e){for(var c in e)c in a||(a[c]=e[c])}(Package.deps={},{Tracker:a,Deps:e})}();
!function(){var e=Package.meteor.Meteor,a=Package.meteor.global,c=Package.meteor.meteorEnv,n=Package.underscore._,o=Package["reactive-dict"].ReactiveDict,i=Package.ejson.EJSON,t;(function(){t=new o("session")}).call(this),"undefined"==typeof Package&&(Package={}),function(e,a){for(var c in a)c in e||(e[c]=a[c])}(Package.session={},{Session:t})}();
!function(){var a=Package["ddp-client"].DDP,e;"undefined"==typeof Package&&(Package={}),function(a,e){for(var n in e)n in a||(a[n]=e[n])}(Package.livedata={},{DDP:a,LivedataTest:e})}();
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,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(){var e=function(){u._suppressWarnings?u._suppressWarnings--:("undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments),u._loggedWarnings++)},n=i.idStringify,r=i.idParse;u={_suppressWarnings:0,_loggedWarnings:0,observe:function(e,n){var r=null,i=null,f=[],u=o.autorun(function(){var u=e();o.nonreactive(function(){var e;if(i&&(f=c.map(r.fetch(),function(e){return{_id:e._id,item:e}}),i.stop(),i=null),u)if(u instanceof Array)e=s(f,u,n);else{if(!a(u))throw t();var o=l(f,u,n);e=o[0],i=o[1]}else e=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(e instanceof Array)return e;if(a(e))return e.fetch();throw t()}return[]}};var t=function(){return new Error("{{#each}}currentlyonlyacceptsarrays,cursorsorfalseyvalues.")},a=function(e){return e&&c.isObject(e)&&c.isFunction(e.observe)&&c.isFunction(e.fetch)},v=function(e,o,t){var i=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){var a=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){var i=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){var o=s[n(r)];c.each(s,function(e,n){e>=o&&s[n]--}),delete s[n(r)],l--,t.removedAt(r,e[u[n(r)]].item,o)}}),c.each(d,function(n,i){var a=r(i);if(c.has(u,i)){var f=o[n].item,d=e[u[i]].item;"object"!=typeof f&&f===d||t.changedAt(a,f,d,n)}})};d=function(e,n){return[]},s=function(r,o,t){var i={},a=c.map(o,function(r,t){var a;if("string"==typeof r)a="-"+r;else if("number"==typeof r||"boolean"==typeof r||void 0===r||null===r)a=r;else{if("object"!=typeof r)throw new Error("{{#each}}doesn't support arrays with elements of type "+typeof r);a=r&&"_id"in r?r._id:t}var c=n(a);return i[c]?(r&&"object"==typeof r&&"_id"in r&&e("duplicate id "+a+" in",o),a=f.id()):i[c]=!0,{_id:a,item:r}});return a},l=function(e,n,r){var o=!0,t=[],i=n.observe({addedAt:function(e,n,i){if(o){if(null!==i)throw new Error("Expected initial data from observe in order");t.push({_id:e._id,item:e})}else r.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)}});return o=!1,[t,i]}}).call(this),"undefined"==typeof Package&&(Package={}),function(e,n){for(var r in n)r in e||(e[r]=n[r])}(Package["observe-sequence"]={},{ObserveSequence:u})}();
!function(){var t=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){return t},s=Array.prototype.slice}).call(this),function(){var t=Object.prototype.hasOwnProperty,e=function(e,i){for(var r in i)t.call(i,r)&&(e[r]=i[r]);return e};o.Visitor=function(t){e(this,t)},o.Visitor.def=function(t){e(this.prototype,t)},o.Visitor.extend=function(t){var i=this,r=function t(){o.Visitor.apply(this,arguments)};return r.prototype=new i,r.extend=i.extend,r.def=i.def,t&&e(r.prototype,t),r},o.Visitor.def({visit:function(t){if(null==t)return this.visitNull.apply(this,arguments);if("object"==typeof t){if(t.htmljsType)switch(t.htmljsType){case o.Tag.htmljsType:return this.visitTag.apply(this,arguments);case o.CharRef.htmljsType:return this.visitCharRef.apply(this,arguments);case o.Comment.htmljsType:return this.visitComment.apply(this,arguments);case o.Raw.htmljsType:return this.visitRaw.apply(this,arguments);default:throw new Error("Unknown htmljs type: "+t.htmljsType)}return o.isArray(t)?this.visitArray.apply(this,arguments):this.visitObject.apply(this,arguments)}if("string"==typeof t||"boolean"==typeof t||"number"==typeof t)return this.visitPrimitive.apply(this,arguments);if("function"==typeof t)return this.visitFunction.apply(this,arguments);throw new Error("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){throw new Error("Unexpected object in htmljs: "+t)},visitFunction:function(t){throw new Error("Unexpected function in htmljs: "+t)}}),o.TransformingVisitor=o.Visitor.extend(),o.TransformingVisitor.def({visitNull:a,visitPrimitive:a,visitArray:function(t){for(var e=s.call(arguments),i=t,r=0;r<t.length;r++){var n=t[r];e[0]=n;var o=this.visit.apply(this,e);o!==n&&(i===t&&(i=t.slice()),i[r]=o)}return i},visitComment:a,visitCharRef:a,visitRaw:a,visitObject:a,visitFunction:a,visitTag:function(t){var e=t.children,i=s.call(arguments);i[0]=e;var r=this.visitChildren.apply(this,i),n=t.attrs;i[0]=n;var a=this.visitAttributes.apply(this,i);if(a===n&&r===e)return t;var l=o.getTag(t.tagName).apply(null,r);return l.attrs=a,l},visitChildren:function(t){return this.visitArray.apply(this,arguments)},visitAttributes:function(t){if(o.isArray(t)){for(var i=s.call(arguments),r=t,n=0;n<t.length;n++){var a=t[n];i[0]=a;var l=this.visitAttributes.apply(this,i);l!==a&&(r===t&&(r=t.slice()),r[n]=l)}return r}if(t&&o.isConstructedObject(t))throw new Error("The basic HTML.TransformingVisitor does not support foreign objects in attributes. Define a custom visitAttributes for this case.");var u=t,f=u;if(u){var c=[null,null];c.push.apply(c,arguments);for(var h in u){var p=u[h];c[0]=h,c[1]=p;var m=this.visitAttribute.apply(this,c);m!==p&&(f===u&&(f=e({},u)),f[h]=m)}}return f},visitAttribute:function(t,e,i){var r=s.call(arguments,2);return r[0]=e,this.visit.apply(this,r)}}),o.ToTextVisitor=o.Visitor.extend(),o.ToTextVisitor.def({visitNull:function(t){return""},visitPrimitive:function(t){var e=String(t);return this.textMode===o.TEXTMODE.RCDATA?e.replace(/&/g,"&").replace(/</g,"<"):this.textMode===o.TEXTMODE.ATTRIBUTE?e.replace(/&/g,"&").replace(/"/g,"""):e},visitArray:function(t){for(var e=[],i=0;i<t.length;i++)e.push(this.visit(t[i]));return e.join("")},visitComment:function(t){throw new Error("Can'thaveacommenthere")},visitCharRef:function(t){return this.textMode===o.TEXTMODE.RCDATA||this.textMode===o.TEXTMODE.ATTRIBUTE?t.html:t.str},visitRaw:function(t){return t.value},visitTag:function(t){return this.visit(this.toHTML(t))},visitObject:function(t){throw new Error("UnexpectedobjectinhtmljsintoText:"+t)},toHTML:function(t){return o.toHTML(t)}}),o.ToHTMLVisitor=o.Visitor.extend(),o.ToHTMLVisitor.def({visitNull:function(t){return""},visitPrimitive:function(t){var e=String(t);return e.replace(/&/g,"&").replace(/</g,"<")},visitArray:function(t){for(var
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,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,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})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,o=Package.ejson.EJSON,i;(function(){if(Package["cmather:iron-core"])thrownewError("\n\n Sorry! The cmather:iron-{x} packages were migrated to the new package system with the wrong name, and you have duplicate copies.\n You can see which cmather:iron-{x} packages have been installed by using this command:\n\n > meteor list\n\n Can you remove any installed cmather:iron-{x} packages like this: \n\n > meteor remove cmather:iron-core\n > meteor remove cmather:iron-router\n > meteor remove cmather:iron-dynamic-template\n > meteor remove cmather:iron-dynamic-layout\n \n The new packages are named iron:{x}. For example:\n\n > meteor add iron:router\n\n Sorry for the hassle, but thank you! \n\n ")}).call(this),function(){i={},i.utils={},i.utils.assert=function(e,t){if(!e)thrownewError(t)},i.utils.warn=function(e,t){e||console&&console.warn&&console.warn(t)},i.utils.defaultValue=function(e,t,n){return"undefined"==typeofe[t]?(e[t]=n,n):e[t]},i.utils.inherits=function(e,t,n){i.utils.assert("undefined"!=typeofe,"Child is undefined in inherits function"),i.utils.assert("undefined"!=typeoft,"Parent is undefined in inherits function");for(varaint)r.has(t,a)&&(e[a]=o.clone(t[a]));vars=function(){this.constructor=e};returns.prototype=t.prototype,e.prototype=news,e.__super__=t.prototype,r.isObject(n)&&r.extend(e.prototype,n),e},i.utils.extend=function(e,t){t=t||{};varn=function(){vare;e=r.has(t,"constructor")?t.constructor:n.__super__.constructor,e.apply(this,arguments)};returni.utils.inherits(n,e,t)},i.utils.global=function(){returne.isClient?window:t}(),i.utils.namespace=function(e,t){varn=i.utils.global,r,o,a,s;i.utils.assert("string"==typeofe,"namespace must be a string"),r=e.split("."),a=r.pop(),s=n;for(varc=0;c<r.length;c++)o=r[c],s=s[o]=s[o]||{};return2===arguments.length?(s[a]=t,t):s[a]},i.utils.resolve=function(e){vart=i.utils.global,n,r;if("string"==typeofe){n=e.split("."),r=t;for(varo=0;o<n.length;o++)if(r=r[n[o]],!r)return}elser=e;returnr},i.utils.capitalize=function(e){returne.charAt(0).toUpperCase()+e.slice(1,e.length)},i.utils.classCase=function(e){vart=/_|-|\.|\//;returne?r.map(e.split(t),function(e){returni.utils.capitalize(e)}).join(""):""},i.utils.camelCase=function(e){vart=i.utils.classCase(e);returnt=t.charAt(0).toLowerCase()+t.slice(1,t.length)},i.utils.notifyDeprecated=function(e){vart,n,o,i,a="[:where] ':name' is deprecated. Please use ':instead' instead.";r.isObject(e)?(t=e.name,n=e.instead,o=e.message||a,i=e.where||"IronRouter"):(o=e,t="",n="",i=""),"undefined"!=typeofconsole&&console.warn&&console.warn("<deprecated> "+o.replace(":name",t).replace(":instead",n).replace(":where",i)+" "+(newError).stack)},i.utils.withDeprecatedNotice=function(e,t,n){returnfunction(){returnUtils.notifyDeprecated(e),t&&t.apply(n||this,arguments)}},Function.prototype.deprecate=function(e){vart=this;returni.utils.withDeprecatedNotice(e,t)},i.utils.debug=function(e){returni.utils.assert("string"==typeofe,"debug requires a package name"),functiont(){if(console&&console.log&&i.debug===!0){varn=r.toArray(arguments).join(" ");console.log("%c<"+e+"> %c"+n,"color: #999;","color: #000;")}}},i.utils.get=function(e){for(vart=1;t<arguments.length;t++){if(!(e&&arguments[t]ine))return;e=e[arguments[t]]}returne},i.utils.global.Iron=i}.call(this),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varnint)nine||(e[n]=t[n])}(Package["iron:core"]={},{Iron:i})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.ui.Blaze,r=Package.ui.UI,i=Package.ui.Handlebars,o=Package.underscore._,s=Package.jquery.$,u=Package.jquery.jQuery,c=Package.tracker.Tracker,l=Package.tracker.Deps,p=Package["reactive-var"].ReactiveVar,h=Package["templating-runtime"].Template,d=Package.random.Random,m=Package["iron:core"].Iron,f=Package.htmljs.HTML,_=Package.spacebars.Spacebars,v;(function(){if(Package["cmather:iron-dynamic-template"])thrownewError("\n\n Sorry! The cmather:iron-{x} packages were migrated to the new package system with the wrong name, and you have duplicate copies.\n You can see which cmather:iron-{x} packages have been installed by using this command:\n\n > meteor list\n\n Can you remove any installed cmather:iron-{x} packages like this: \n\n > meteor remove cmather:iron-core\n > meteor remove cmather:iron-router\n > meteor remove cmather:iron-dynamic-template\n > meteor remove cmather:iron-dynamic-layout\n \n The new packages are named iron:{x}. For example:\n\n > meteor add iron:router\n\n Sorry for the hassle, but thank you! \n\n ")}).call(this),function(){h.__checkName("__DynamicTemplateError__"),h.__DynamicTemplateError__=newh("Template.__DynamicTemplateError__",function(){vare=this;returnf.DIV({style:"margin: 0 auto; color: red;"},"\n ",a.View("lookup:msg",function(){return_.mustache(e.lookup("msg"))}),"\n ")})}.call(this),function(){vare=m.utils.debug("iron:dynamic-template"),t=m.utils.assert,n=m.utils.get,i=m.utils.camelCase,u=function(e){returnObject.prototype.toString.call(e)};v=function(e){this._id=d.id(),this.options=e=e||{},this._template=e.template,this._defaultTemplate=e.defaultTemplate,this._content=e.content,this._data=e.data,this._templateDep=newc.Dependency,this._dataDep=newc.Dependency,this._lookupHostDep=newc.Dependency,this._lookupHostValue=null,this._hooks={},this._eventMap=null,this._eventHandles=null,this._eventThisArg=null,this.name=e.name||this.constructor.prototype.name||"DynamicTemplate",this.isCreated=!1,this.isDestroyed=!1},v.prototype.template=function(e){if(1===arguments.length&&e!==this._template)returnthis._template=e,voidthis._templateDep.changed();if(!(arguments.length>0))returnthis._templateDep.depend(),this._template?"function"==typeofthis._template?this._template():this._template:this._defaultTemplate?"function"==typeofthis._defaultTemplate?this._defaultTemplate():this._defaultTemplate:void0},v.prototype.defaultTemplate=function(e){return1!==arguments.length?this._defaultTemplate:void(this._defaultTemplate=e)},v.prototype.clear=function(){this._template=void0,this._data=void0,this._templateDep.changed()},v.prototype.data=function(e){return1===arguments.length&&e!==this._data?(this._data=e,voidthis._dataDep.changed()):(this._dataDep.depend(),"function"==typeofthis._data?this._data():this._data)},v.prototype.create=function(e){vart=this;if(this.isCreated)thrownewError("DynamicTemplate view is already created");this.isCreated=!0,this.isDestroyed=!1;varn=p(null),r=a.View("DynamicTemplate",function(){vare=this,r=n.get();returna.With(function(){varn=t.data();return"undefined"!=typeofn?n:v.getParentDataContext(e)},function(){returnt.renderView(r)})});returnr.onViewCreated(function(){this.autorun(function(){n.set(t.template())})}),o.each(["onViewCreated","onViewReady","_onViewRendered","onViewDestroyed"],function(e){r[e](function(){t._runHooks(e,this)})}),r._onViewRendered(function(){t.isInserted=!0,1===r.renderCount&&t._attachEvents()}),r.onViewDestroyed(function(){t._detachEvents()}),r._templateInstance=newa.TemplateInstance(r),r.templateInstance=function(){vare=r._templateInstance;returne.data=a.getData(r),r._domrange&&!r.isDestroyed?(e.firstNode=r._domrange.firstNode(),e.lastNode=r._domrange.lastNode()):(e.firstNode=null,e.lastNode=null),e},this.view=r,r.__dynamicTemplate__=this,r.name=this.name,r},v.prototype.renderView=function(e){vart=this,n=null;return"string"==typeofe?(n=h[e],n||(n=h[i(e)]),n||(n=a.With({msg:"Coul
!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package["templating-runtime"].Template,o=Package.blaze.Blaze,i=Package.blaze.UI,a=Package.blaze.Handlebars,s=Package.underscore._,c=Package.tracker.Tracker,u=Package.tracker.Deps,h=Package["iron:core"].Iron,l=Package.htmljs.HTML,g=Package.spacebars.Spacebars,d,p,m;(function(){var e=[];if(Package["cmather:iron-layout"]&&e.push("\n\nThecmather:iron-{x}packagesweremigratedtothenewpackagesystemwiththewrongname,andyouhaveduplicatecopies.\nYoucanseewhichcmather:iron-{x}packageshavebeeninstalledbyusingthiscommand:\n\n>meteorlist\n\nCanyouremoveanyinstalledcmather:iron-{x}packageslikethis:\n\n>meteorremovecmather:iron-core\n>meteorremovecmather:iron-router\n>meteorremovecmather:iron-dynamic-template\n>meteorremovecmather:iron-dynamic-layout\n\nThenewpackagesarenamediron:{x}.Forexample:\n\n>meteoraddiron:router\n\nSorryforthehassle,butthankyou!\n\n"),Package["cmather:blaze-layout"]&&e.push("Theblaze-layoutpackagehasbeenreplacedbyiron-layout.Pleaseremovethepackagelikethis:\n>meteorremovecmather:blaze-layout\n"),e.length>0)throw new Error("Sorry!Lookslikethere's a few errors related to iron:layout\n\n"+e.join("\n\n"))}).call(this),function(){r.__checkName("__IronDefaultLayout__"),r.__IronDefaultLayout__=new r("Template.__IronDefaultLayout__",function(){var e=this;return g.include(e.lookupTemplate("yield"))})}.call(this),function(){var e=h.DynamicTemplate,n=h.utils.inherits;d=function(e){for(;e;){if("Iron.Layout"===e.name)return e.__dynamicTemplate__;e=e.parentView}return null},p=function(e){var n=this;p.__super__.constructor.apply(this,arguments),e=e||{},this.name="Iron.Layout",this._regions={},this._regionHooks={},this.defaultTemplate("__IronDefaultLayout__"),e.content&&this.render(e.content)},m=p.DEFAULT_REGION="main",n(p,h.DynamicTemplate),p.prototype.region=function(e,n){return this._ensureRegion(e,n)},p.prototype.destroyRegions=function(){s.each(this._regions,function(e){e.destroy()}),this._regions={}},p.prototype.render=function(e,n){n=n||{};var t=n.to||n.region||m,r=this.region(t);this._trackRenderedRegion(t),r.template(e),r.data(n.data)},p.prototype.has=function(e){return e=e||p.DEFAULT_REGION,!!this._regions[e]},p.prototype.regionKeys=function(){return s.keys(this._regions)},p.prototype.clear=function(e){return e=e||p.DEFAULT_REGION,this.has(e)&&this.region(e).template(null),this},p.prototype.clearAll=function(){return s.each(this._regions,function(e){e.template(null)}),this},p.prototype.beginRendering=function(e){var n=this;if(this._finishRenderingTransaction&&this._finishRenderingTransaction(),this._finishRenderingTransaction=s.once(function(){var t=n._endRendering({flush:!1});e&&e(t)}),u.afterFlush(this._finishRenderingTransaction),this._renderedRegions)throw new Error("You called beginRendering again before calling endRendering");this._renderedRegions={}},p.prototype._trackRenderedRegion=function(e){this._renderedRegions&&(this._renderedRegions[e]=!0)},p.prototype._endRendering=function(e){e=e||{},e.flush!==!1&&u.flush();var n=this._renderedRegions||{};return this._renderedRegions=null,s.keys(n)},s.each(["onRegionCreated","onRegionRendered","onRegionDestroyed"],function(e){p.prototype[e]=function(n){var t=this._regionHooks[e]=this._regionHooks[e]||[];return t.push(n),this}}),p.prototype._ensureRegion=function(e,n){return this._regions[e]=this._regions[e]||this._createDynamicTemplate(e,n)},p.prototype._createDynamicTemplate=function(e,n){var t=this,r=new h.DynamicTemplate(n),o=h.utils.capitalize;return r._region=e,s.each(["viewCreated","viewReady","viewDestroyed"],function(e){e=o(e),r["on"+e](function(n){var r=this,o={viewCreated:"regionCreated",viewReady:"regionRendered",viewDestroyed:"regionDestroyed"}[e];t._runRegionHooks("on"+o,r,n)})}),r},p.prototype._runRegionHooks=function(e,n,t){for(var r=this,o=this._regionHooks[e]||[],i,a=0;a<o.length;a++)i=o[a],i.call(n,t.region,t,this)},"un
e.webGL.shaders.uint8=t}(cornerstone),function(e){"use strict";functioni(e){if(void0===e)throw"setMaximumSizeBytes: parameter numBytes must not be undefined";if(void0===e.toFixed)throw"setMaximumSizeBytes: parameter numBytes must be a number";u=e,t()}functiont(){functioni(e,i){returne.timeStamp>i.timeStamp?-1:e.timeStamp<i.timeStamp?1:0}if(!(c<=u)){for(l.sort(i);c>u;){vart=l[l.length-1];c-=t.sizeInBytes,deletef[t.imageId],l.pop(),$(e).trigger("CornerstoneWebGLTextureRemoved",{imageId:t.imageId})}varr=e.imageCache.getCacheInfo();console.log("CornerstoneWebGLTextureCacheFull"),$(e).trigger("CornerstoneWebGLTextureCacheFull",r)}}functionr(e,i){varr=e.imageId;if(void0===e)throw"putImageTexture: image must not be undefined";if(void0===r)throw"putImageTexture: imageId must not be undefined";if(void0===i)throw"putImageTexture: imageTexture must not be undefined";if(f.hasOwnProperty(r)===!0)throw"putImageTexture: imageId already in cache";varn={imageId:r,imageTexture:i,timeStamp:newDate,sizeInBytes:i.sizeInBytes};if(f[r]=n,l.push(n),void0===i.sizeInBytes)throw"putImageTexture: imageTexture does not have sizeInBytes property or";if(void0===i.sizeInBytes.toFixed)throw"putImageTexture: imageTexture.sizeInBytes is not a number";c+=n.sizeInBytes,t()}functionn(e){if(void0===e)throw"getImageTexture: imageId must not be undefined";vari=f[e];if(void0!==i)returni.timeStamp=newDate,i.imageTexture}functiona(e){if(void0===e)throw"removeImageTexture: imageId must not be undefined";vari=f[e];if(void0===i)throw"removeImageTexture: imageId must not be undefined";returnl.splice(l.indexOf(i),1),c-=i.sizeInBytes,deletef[e],i.imageTexture}functiono(){return{maximumSizeInBytes:u,cacheSizeInBytes:c,numberOfImagesCached:l.length}}functions(){for(;l.length>0;){vare=l.pop();deletef[e.imageId]}c=0}varf={},l=[],u=268435456,c=0;e.webGL.textureCache={putImageTexture:r,getImageTexture:n,removeImageTexture:a,setMaximumSizeBytes:i,getCacheInfo:o,purgeCache:s,cachedImages:l}}(cornerstone),function(e){"use strict";e.webGL||(e.webGL={}),e.webGL.vertexShader="attribute vec2 a_position;attribute vec2 a_texCoord;uniform vec2 u_resolution;varying vec2 v_texCoord;void main() {vec2 zeroToOne = a_position / u_resolution;vec2 zeroToTwo = zeroToOne * 2.0;vec2 clipSpace = zeroToTwo - 1.0;gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);v_texCoord = a_texCoord;}"}(cornerstone);varcornerstoneMath=function(e){"use strict";returnvoid0===e&&(e={}),e.Vector3=function(e,i,t){this.x=e||0,this.y=i||0,this.z=t||0},e.Vector3.prototype={constructor:e.Vector3,set:function(e,i,t){returnthis.x=e,this.y=i,this.z=t,this},setX:function(e){returnthis.x=e,this},setY:function(e){returnthis.y=e,this},setZ:function(e){returnthis.z=e,this},setComponent:function(e,i){switch(e){case0:this.x=i;break;case1:this.y=i;break;case2:this.z=i;break;default:thrownewError("index is out of range: "+e)}},getComponent:function(e){switch(e){case0:returnthis.x;case1:returnthis.y;case2:returnthis.z;default:thrownewError("index is out of range: "+e)}},copy:function(e){returnthis.x=e.x,this.y=e.y,this.z=e.z,this},add:function(e,i){returnvoid0!==i?(console.warn("DEPRECATED: Vector3's .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(e,i)):(this.x+=e.x,this.y+=e.y,this.z+=e.z,this)},addScalar:function(e){returnthis.x+=e,this.y+=e,this.z+=e,this},addVectors:function(e,i){returnthis.x=e.x+i.x,this.y=e.y+i.y,this.z=e.z+i.z,this},sub:function(e,i){returnvoid0!==i?(console.warn("DEPRECATED: Vector3's .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(e,i)):(this.x-=e.x,this.y-=e.y,this.z-=e.z,this)},subVectors:function(e,i){returnthis.x=e.x-i.x,this.y=e.y-i.y,this.z=e.z-i.z,this},multiply:function(e,i){returnvoid0!==i?(console.warn("DEPRECATED: Vector3's .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(e,i)):(this.x*=e.x,this.y*=e.y,this.z*=e.z,this)},multiplyScalar:function(e){returnthis.x*=e,this.y*=e,this.z*=e,this},multiplyV
e.lineTo(t.x-a*Math.cos(o-Math.PI/7),t.y-a*Math.sin(o-Math.PI/7)),e.strokeStyle=r,e.lineWidth=n,e.stroke(),e.fillStyle=r,e.fill()}e.drawArrow=i}(cornerstoneTools),function(e){"use strict";functioni(e,i,t,r){varn=6;e.beginPath(),e.strokeStyle=t,e.lineWidth=r,e.arc(i.x,i.y,n,0,2*Math.PI),e.stroke()}e.drawCircle=i}(cornerstoneTools),function(e){"use strict";functioni(e,i,t,r,n){vara=.5522848,o=r/2*a,s=n/2*a,f=i+r,l=t+n,u=i+r/2,c=t+n/2;e.beginPath(),e.moveTo(i,c),e.bezierCurveTo(i,c-s,u-o,t,u,t),e.bezierCurveTo(u+o,t,f,c-s,f,c),e.bezierCurveTo(f,c+s,u+o,l,u,l),e.bezierCurveTo(u-o,l,i,c+s,i,c),e.closePath(),e.stroke()}e.drawEllipse=i}(cornerstoneTools),function(e){"use strict";functioni(i,t,r,n,a,o){"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]);vars=5,f=e.textStyle.getFont(),l=e.textStyle.getFontSize(),u=e.textStyle.getBackgroundColor();i.save(),i.font=f,i.textBaseline="top",i.strokeStyle=a;varc=0;t.forEach(function(e){vart=i.measureText(e).width;c=Math.max(c,t)}),i.fillStyle=u;vard={width:c+2*s,height:s+t.length*(l+s)};returno&&o.centering&&o.centering.x===!0&&(r-=d.width/2),o&&o.centering&&o.centering.y===!0&&(n-=d.height/2),d.left=r,d.top=n,o&&o.debug===!0&&(i.fillStyle="#FF0000"),i.fillRect(d.left,d.top,d.width,d.height),t.forEach(function(e,t){i.fillStyle=a;varo;o=0===t?n+t*(l+s):n+t*(l+2*s),i.fillText(e,r+s,n+s+t*(l+s))}),i.restore(),d}e.drawTextBox=i}(cornerstoneTools),function(e,i){"use strict";functiont(i,t,r,n,a){if(!i)throw"getLuminance: parameter element must not be undefined";t=Math.round(t),r=Math.round(r);varo=e.getEnabledElement(i),s=o.image,f=[],l=0,u=s.getPixelData(),c,d,h;if(s.color)for(d=0;d<a;d++)for(h=0;h<n;h++){c=4*((d+r)*s.columns+(h+t));varm=u[c],b=u[c+1],v=u[c+2];f[l++]=.2126*m+.7152*b+.0722*v}elsefor(d=0;d<a;d++)for(h=0;h<n;h++)c=(d+r)*s.columns+(h+t),f[l++]=u[c]*s.slope+s.intercept;returnf}i.getLuminance=t}(cornerstone,cornerstoneTools),function(e,i){"use strict";functiont(){vare=navigator.userAgent,i=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[],t;return/trident/i.test(i[1])?(t=/\brv[ :]+(\d+)/g.exec(e)||[],"IE "+(t[1]||"")):"Chrome"===i[1]&&(t=e.match(/\b(OPR|Edge)\/(\d+)/),null!==t)?t.slice(1).join(" ").replace("OPR","Opera"):(i=i[2]?[i[1],i[2]]:[navigator.appName,navigator.appVersion,"-?"],null!==(t=e.match(/version\/(\d+)/i))&&i.splice(1,1,t[1]),i.join(" "))}functionr(){vare=i.stackPrefetch.getConfiguration();if(e.maxSimultaneousRequests)returne.maxSimultaneousRequests;varr=t(),n=r.split(" "),o=n[0],s=n[1],f=a[o];returnf?f[s]?f[s]:f.default:a.default}functionn(){vare=newRegExp("Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini");return!!e.test(navigator.userAgent)}vara={default:6,IE:{9:6,10:8,default:8},Firefox:{default:6},Opera:{10:8,11:6,12:6,default:6},Chrome:{default:6},Safari:{default:6}};i.getMaxSimultaneousRequests=r,i.getBrowserInfo=t,i.isMobileDevice=n}(cornerstone,cornerstoneTools),function(e,i){"use strict";functiont(i,t,r,n,a){if(!i)throw"getRGBPixels: parameter element must not be undefined";t=Math.round(t),r=Math.round(r);varo=e.getEnabledElement(i),s=[],f=0,l=o.image.getPixelData(),u,c,d;if(o.image.color)for(c=0;c<a;c++)for(d=0;d<n;d++){u=4*((c+r)*o.image.columns+(d+t));varh=l[u],m=l[u+1],b=l[u+2],v=l[u+3];s[f++]=h,s[f++]=m,s[f++]=b,s[f++]=v}returns}i.getRGBPixels=t}(cornerstone,cornerstoneTools),function(e,i){"use strict";functiont(e,i){vart=1<<e-1;return0!==(i&t)}i.isMouseButtonEnabled=t}(cornerstone,cornerstoneTools),function(e,i,t){"use strict";functionr(e){returne.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1,!1}t.pauseEvent=r}($,cornerstone,cornerstoneTools),function(e,i){"use strict";functiont(i,t){if(i.boundingBox)returne.point.insideRect(t,i.boundingBox)}i.pointInsideBoundingBox=t}(cornerstoneMath,cornerstoneTools),function(e,i,t){"use strict";functionr(e,i){vart=e.clone().sub(i.imagePositionPatient),r=i.rowCosines.dot(t)/i.columnPixelSpacing,n=i.columnCosines.dot(t)/i.rowPixelSpacing;return{x:r,y:n}}functionn
vari;i="undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this,i.jpeg=e()}}(function(){vare,i,t;returnfunctione(i,t,r){functionn(o,s){if(!t[o]){if(!i[o]){varf="function"==typeofrequire&&require;if(!s&&f)returnf(o,!0);if(a)returna(o,!0);varl=newError("Cannot find module '"+o+"'");throwl.code="MODULE_NOT_FOUND",l}varu=t[o]={exports:{}};i[o][0].call(u.exports,function(e){vart=i[o][1][e];returnn(t?t:e)},u,u.exports,e,i,t,r)}returnt[o].exports}for(vara="function"==typeofrequire&&require,o=0;o<r.length;o++)n(r[o]);returnn}({1:[function(e,i,t){"use strict";varr=r||{};r.lossless=r.lossless||{},r.lossless.ComponentSpec=r.lossless.ComponentSpec||function(){this.hSamp=0,this.quantTableSel=0,this.vSamp=0};varn=typeofi;"undefined"!==n&&i.exports&&(i.exports=r.lossless.ComponentSpec)},{}],2:[function(e,i,t){"use strict";varr=r||{};r.lossless=r.lossless||{},r.lossless.DataStream=r.lossless.DataStream||function(e,i,t){this.buffer=newDataView(e,i,t),this.index=0},r.lossless.DataStream.prototype.get16=function(){vare=this.buffer.getUint16(this.index,!1);returnthis.index+=2,e},r.lossless.DataStream.prototype.get8=function(){vare=this.buffer.getUint8(this.index);returnthis.index+=1,e};varn=typeofi;"undefined"!==n&&i.exports&&(i.exports=r.lossless.DataStream)},{}],3:[function(e,i,t){"use strict";varr=r||{};r.lossless=r.lossless||{},r.lossless.DataStream=r.lossless.DataStream||("undefined"!=typeofe?e("./data-stream.js"):null),r.lossless.HuffmanTable=r.lossless.HuffmanTable||("undefined"!=typeofe?e("./huffman-table.js"):null),r.lossless.QuantizationTable=r.lossless.QuantizationTable||("undefined"!=typeofe?e("./quantization-table.js"):null),r.lossless.ScanHeader=r.lossless.ScanHeader||("undefined"!=typeofe?e("./scan-header.js"):null),r.lossless.FrameHeader=r.lossless.FrameHeader||("undefined"!=typeofe?e("./frame-header.js"):null),r.lossless.Utils=r.lossless.Utils||("undefined"!=typeofe?e("./utils.js"):null),r.lossless.Decoder=r.lossless.Decoder||function(e,i){this.buffer=e,this.frame=newr.lossless.FrameHeader,this.huffTable=newr.lossless.HuffmanTable,this.quantTable=newr.lossless.QuantizationTable,this.scan=newr.lossless.ScanHeader,this.DU=r.lossless.Utils.createArray(10,4,64),this.HuffTab=r.lossless.Utils.createArray(4,2,12800),this.IDCT_Source=[],this.nBlock=[],this.acTab=r.lossless.Utils.createArray(10,1),this.dcTab=r.lossless.Utils.createArray(10,1),this.qTab=r.lossless.Utils.createArray(10,1),this.marker=0,this.markerIndex=0,this.numComp=0,this.restartInterval=0,this.selection=0,this.xDim=0,this.yDim=0,this.xLoc=0,this.yLoc=0,this.numBytes=0,this.outputData=null,this.restarting=!1,this.mask=0,"undefined"!=typeofi&&(this.numBytes=i)},r.lossless.Decoder.IDCT_P=[0,5,40,16,45,2,7,42,21,56,8,61,18,47,1,4,41,23,58,13,32,24,37,10,63,17,44,3,6,43,20,57,15,34,29,48,53,26,39,9,60,19,46,22,59,12,33,31,50,55,25,36,11,62,14,35,28,49,52,27,38,30,51,54],r.lossless.Decoder.TABLE=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],r.lossless.Decoder.MAX_HUFFMAN_SUBTREE=50,r.lossless.Decoder.MSB=2147483648,r.lossless.Decoder.RESTART_MARKER_BEGIN=65488,r.lossless.Decoder.RESTART_MARKER_END=65495,r.lossless.Decoder.prototype.decompress=function(e,i,t){returnthis.decode(e,i,t).buffer},r.lossless.Decoder.prototype.decode=function(e,i,t,n){vara,o=0,s=[],f,l,u=[],c=[],d;if("undefined"!=typeofe&&(this.buffer=e),"undefined"!=typeofn&&(this.numBytes=n),this.stream=newr.lossless.DataStream(this.buffer,i,t),this.buffer=null,this.xLoc=0,this.yLoc=0,a=this.stream.get16(),65496!==a)thrownewError("Not a JPEG file");for(a=this.stream.get16();a>>4!==4092||65476===a;){switch(a){case65476:this.huffTable.read(this.stream,this.HuffTab);break;case65484:thrownewError("Program doesn't support arithmetic coding. (format throw new IOException)");case65499:this.quantTable.read(this.stream,r.lossless.Decoder.TABLE);break;case65501:this.restartInterval=th
}($,cornerstone,cornerstoneWADOImageLoader);varOpenJPEG=function(Module){functionglobalEval(e){eval.call(null,e)}functionassert(e,i){e||abort("Assertion failed: "+i)}functiongetCFunc(ident){varfunc=Module["_"+ident];if(!func)try{func=eval("_"+ident)}catch(e){}returnassert(func,"Cannot call unknown function "+ident+" (perhaps LLVM optimizations or closure removed it?)"),func}functionsetValue(e,i,t,r){switch(t=t||"i8","*"===t.charAt(t.length-1)&&(t="i32"),t){case"i1":HEAP8[e>>0]=i;break;case"i8":HEAP8[e>>0]=i;break;case"i16":HEAP16[e>>1]=i;break;case"i32":HEAP32[e>>2]=i;break;case"i64":tempI64=[i>>>0,(tempDouble=i,+Math_abs(tempDouble)>=1?tempDouble>0?(0|Math_min(+Math_floor(tempDouble/4294967296),4294967295))>>>0:~~+Math_ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[e>>2]=tempI64[0],HEAP32[e+4>>2]=tempI64[1];break;case"float":HEAPF32[e>>2]=i;break;case"double":HEAPF64[e>>3]=i;break;default:abort("invalid type for setValue: "+t)}}functiongetValue(e,i,t){switch(i=i||"i8","*"===i.charAt(i.length-1)&&(i="i32"),i){case"i1":returnHEAP8[e>>0];case"i8":returnHEAP8[e>>0];case"i16":returnHEAP16[e>>1];case"i32":returnHEAP32[e>>2];case"i64":returnHEAP32[e>>2];case"float":returnHEAPF32[e>>2];case"double":returnHEAPF64[e>>3];default:abort("invalid type for setValue: "+i)}returnnull}functionallocate(e,i,t,r){varn,a;"number"==typeofe?(n=!0,a=e):(n=!1,a=e.length);varo="string"==typeofi?i:null,s;if(s=t==ALLOC_NONE?r:[_malloc,Runtime.stackAlloc,Runtime.staticAlloc,Runtime.dynamicAlloc][void0===t?ALLOC_STATIC:t](Math.max(a,o?1:i.length)),n){varr=s,f;for(assert(0==(3&s)),f=s+(a&-4);r<f;r+=4)HEAP32[r>>2]=0;for(f=s+a;r<f;)HEAP8[r++>>0]=0;returns}if("i8"===o)returne.subarray||e.slice?HEAPU8.set(e,s):HEAPU8.set(newUint8Array(e),s),s;for(varl=0,u,c,d;l<a;){varh=e[l];"function"==typeofh&&(h=Runtime.getFunctionIndex(h)),u=o||i[l],0!==u?("i64"==u&&(u="i32"),setValue(s+l,h,u),d!==u&&(c=Runtime.getNativeTypeSize(u),d=u),l+=c):l++}returns}functiongetMemory(e){returnstaticSealed?"undefined"!=typeof_sbrk&&!_sbrk.called||!runtimeInitialized?Runtime.dynamicAlloc(e):_malloc(e):Runtime.staticAlloc(e)}functionPointer_stringify(e,i){if(0===i||!e)return"";for(vart=0,r,n=0;;){if(r=HEAPU8[e+n>>0],t|=r,0==r&&!i)break;if(n++,i&&n==i)break}i||(i=n);vara="";if(t<128){for(varo=1024,s;i>0;)s=String.fromCharCode.apply(String,HEAPU8.subarray(e,e+Math.min(i,o))),a=a?a+s:s,e+=o,i-=o;returna}returnModule.UTF8ToString(e)}functionAsciiToString(e){for(vari="";;){vart=HEAP8[e++>>0];if(!t)returni;i+=String.fromCharCode(t)}}functionstringToAscii(e,i){returnwriteAsciiToMemory(e,i,!1)}functionUTF8ArrayToString(e,i){for(vart,r,n,a,o,s,f="";;){if(t=e[i++],!t)returnf;if(128&t)if(r=63&e[i++],192!=(224&t))if(n=63&e[i++],224==(240&t)?t=(15&t)<<12|r<<6|n:(a=63&e[i++],240==(248&t)?t=(7&t)<<18|r<<12|n<<6|a:(o=63&e[i++],248==(252&t)?t=(3&t)<<24|r<<18|n<<12|a<<6|o:(s=63&e[i++],t=(1&t)<<30|r<<24|n<<18|a<<12|o<<6|s))),t<65536)f+=String.fromCharCode(t);else{varl=t-65536;f+=String.fromCharCode(55296|l>>10,56320|1023&l)}elsef+=String.fromCharCode((31&t)<<6|r);elsef+=String.fromCharCode(t)}}functionUTF8ToString(e){returnUTF8ArrayToString(HEAPU8,e)}functionstringToUTF8Array(e,i,t,r){if(!(r>0))return0;for(varn=t,a=t+r-1,o=0;o<e.length;++o){vars=e.charCodeAt(o);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++o)),s<=127){if(t>=a)break;i[t++]=s}elseif(s<=2047){if(t+1>=a)break;i[t++]=192|s>>6,i[t++]=128|63&s}elseif(s<=65535){if(t+2>=a)break;i[t++]=224|s>>12,i[t++]=128|s>>6&63,i[t++]=128|63&s}elseif(s<=2097151){if(t+3>=a)break;i[t++]=240|s>>18,i[t++]=128|s>>12&63,i[t++]=128|s>>6&63,i[t++]=128|63&s}elseif(s<=67108863){if(t+4>=a)break;i[t++]=248|s>>24,i[t++]=128|s>>18&63,i[t++]=128|s>>12&63,i[t++]=128|s>>6&63,i[t++]=128|63&s}else{if(t+5>=a)break;i[t++]=252|s>>30,i[t++]=128|s>>24&63,i[t++]=128|s>>18&63,i[t++]=128|s>>12&63,i[t++]=128|s>>6&63,i[t++]=128|63&s}}returni[t]=0,t-n}functionstringToUTF8(e,i,t){returnstringToUTF8Array(e,HEAPU8,i,t)}functionlengthBytesUTF8(e){for(vari=0,t=0;t<e.length;++t){varr=e.ch
totalMemory=Math.max(totalMemory,16777216),totalMemory!==TOTAL_MEMORY&&(TOTAL_MEMORY=totalMemory),assert("undefined"!=typeofInt32Array&&"undefined"!=typeofFloat64Array&&!!newInt32Array(1).subarray&&!!newInt32Array(1).set,"JS engine does not provide full typed array support");varbuffer;buffer=newArrayBuffer(TOTAL_MEMORY),HEAP8=newInt8Array(buffer),HEAP16=newInt16Array(buffer),HEAP32=newInt32Array(buffer),HEAPU8=newUint8Array(buffer),HEAPU16=newUint16Array(buffer),HEAPU32=newUint32Array(buffer),HEAPF32=newFloat32Array(buffer),HEAPF64=newFloat64Array(buffer),HEAP32[0]=255,assert(255===HEAPU8[0]&&0===HEAPU8[3],"Typed arrays 2 must be run on a little-endian system"),Module.HEAP=HEAP,Module.buffer=buffer,Module.HEAP8=HEAP8,Module.HEAP16=HEAP16,Module.HEAP32=HEAP32,Module.HEAPU8=HEAPU8,Module.HEAPU16=HEAPU16,Module.HEAPU32=HEAPU32,Module.HEAPF32=HEAPF32,Module.HEAPF64=HEAPF64;var__ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATEXIT__=[],__ATPOSTRUN__=[],runtimeInitialized=!1,runtimeExited=!1;Module.addOnPreRun=addOnPreRun,Module.addOnInit=addOnInit,Module.addOnPreMain=addOnPreMain,Module.addOnExit=addOnExit,Module.addOnPostRun=addOnPostRun,Module.intArrayFromString=intArrayFromString,Module.intArrayToString=intArrayToString,Module.writeStringToMemory=writeStringToMemory,Module.writeArrayToMemory=writeArrayToMemory,Module.writeAsciiToMemory=writeAsciiToMemory,Math.imul&&Math.imul(4294967295,5)===-5||(Math.imul=functione(i,t){varr=i>>>16,n=65535&i,a=t>>>16,o=65535&t;returnn*o+(r*o+n*a<<16)|0}),Math.imul=Math.imul,Math.clz32||(Math.clz32=function(e){e>>>=0;for(vari=0;i<32;i++)if(e&1<<31-i)returni;return32}),Math.clz32=Math.clz32;varMath_abs=Math.abs,Math_cos=Math.cos,Math_sin=Math.sin,Math_tan=Math.tan,Math_acos=Math.acos,Math_asin=Math.asin,Math_atan=Math.atan,Math_atan2=Math.atan2,Math_exp=Math.exp,Math_log=Math.log,Math_sqrt=Math.sqrt,Math_ceil=Math.ceil,Math_floor=Math.floor,Math_pow=Math.pow,Math_imul=Math.imul,Math_fround=Math.fround,Math_min=Math.min,Math_clz32=Math.clz32,runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;Module.addRunDependency=addRunDependency,Module.removeRunDependency=removeRunDependency,Module.preloadedImages={},Module.preloadedAudios={};varmemoryInitializer=null,ASM_CONSTS=[];STATIC_BASE=8,STATICTOP=STATIC_BASE+25680,__ATINIT__.push(),allocate([131,192,202,161,69,182,251,63,127,251,58,112,206,136,234,63,127,251,58,112,206,136,234,63,131,192,202,161,69,182,251,63,225,122,20,174,71,225,252,63,94,186,73,12,2,43,249,63,0,0,0,0,0,0,240,63,0,0,0,0,0,0,248,63,0,0,0,0,0,0,6,64,0,0,0,0,0,128,21,64,92,143,194,245,40,92,37,64,215,163,112,61,10,87,53,64,246,40,92,143,194,85,69,64,133,235,81,184,30,85,85,64,102,102,102,102,102,86,101,64,205,204,204,204,204,84,117,64,207,247,83,227,165,155,240,63,70,182,243,253,212,120,249,63,39,49,8,172,28,90,7,64,29,90,100,59,223,207,22,64,41,92,143,194,245,168,38,64,164,112,61,10,215,163,54,64,0,0,0,0,0,160,70,64,31,133,235,81,184,158,86,64,205,204,204,204,204,156,102,64,0,0,0,0,0,0,0,0,207,247,83,227,165,155,240,63,70,182,243,253,212,120,249,63,39,49,8,172,28,90,7,64,29,90,100,59,223,207,22,64,41,92,143,194,245,168,38,64,164,112,61,10,215,163,54,64,0,0,0,0,0,160,70,64,31,133,235,81,184,158,86,64,205,204,204,204,204,156,102,64,0,0,0,0,0,0,0,0,173,250,92,109,197,254,230,63,86,125,174,182,98,127,237,63,199,75,55,137,65,96,249,63,242,210,77,98,16,88,8,64,250,126,106,188,116,19,24,64,133,235,81,184,30,5,40,64,0,0,0,0,0,0,56,64,92,143,194,245,40,252,71,64,236,81,184,30,133,251,87,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,240,63,113,61,10,215,163,112,255,63,104,145,237,124,63,181,16,64,117,147,24,4,86,206,32,64,102,102,102,102,102,230,48,64,236,81,184,30,133,235,64,64,92,143,194,245,40,236,80,64,154,153,153,153,153,233,96,64,154,153,153,153,153,233,112,64,51,51,51,51,51,231,128,64,147,24,4,86,14,45,0,64,182,243,253,212,120,233,15,64,246,40,92,143,194,181,32,64,10,215,163,112,61,10,49,64,195,245,40,92,143,34,65,64,184,30,133,235,81,40,81,64,154,153,153,153,153,41,97,64,154,153,153,153,153,41,113,64,0,0,0,0,0,40,129,64,0,0,0,0,0,0,0,0,147,24,4,86,14,45,0,
Browser.mainLoop.timingValue=i,!Browser.mainLoop.func)return1;if(0==e)Browser.mainLoop.scheduler=functione(){setTimeout(Browser.mainLoop.runner,i)},Browser.mainLoop.method="timeout";elseif(1==e)Browser.mainLoop.scheduler=functione(){Browser.requestAnimationFrame(Browser.mainLoop.runner)},Browser.mainLoop.method="rAF";elseif(2==e){if(!window.setImmediate){varr=[],n="__emcc";window.addEventListener("message",t,!0),window.setImmediate=functione(i){r.push(i),window.postMessage(n,"*")}}Browser.mainLoop.scheduler=functione(){window.setImmediate(Browser.mainLoop.runner)},Browser.mainLoop.method="immediate"}return0}function_emscripten_set_main_loop(e,i,t,r,n){Module.noExitRuntime=!0,assert(!Browser.mainLoop.func,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),Browser.mainLoop.func=e,Browser.mainLoop.arg=r;vara=Browser.mainLoop.currentlyRunningMainloop;if(Browser.mainLoop.runner=functioni(){if(!ABORT){if(Browser.mainLoop.queue.length>0){vart=Date.now(),n=Browser.mainLoop.queue.shift();if(n.func(n.arg),Browser.mainLoop.remainingBlockers){varo=Browser.mainLoop.remainingBlockers,s=o%1==0?o-1:Math.floor(o);n.counted?Browser.mainLoop.remainingBlockers=s:(s+=.5,Browser.mainLoop.remainingBlockers=(8*o+s)/9)}returnconsole.log('main loop blocker "'+n.name+'" took '+(Date.now()-t)+" ms"),Browser.mainLoop.updateStatus(),voidsetTimeout(Browser.mainLoop.runner,0)}if(!(a<Browser.mainLoop.currentlyRunningMainloop)){if(Browser.mainLoop.currentFrameNumber=Browser.mainLoop.currentFrameNumber+1|0,1==Browser.mainLoop.timingMode&&Browser.mainLoop.timingValue>1&&Browser.mainLoop.currentFrameNumber%Browser.mainLoop.timingValue!=0)returnvoidBrowser.mainLoop.scheduler();"timeout"===Browser.mainLoop.method&&Module.ctx&&(Module.printErr("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!"),Browser.mainLoop.method=""),Browser.mainLoop.runIter(function(){"undefined"!=typeofr?Runtime.dynCall("vi",e,[r]):Runtime.dynCall("v",e)}),a<Browser.mainLoop.currentlyRunningMainloop||("object"==typeofSDL&&SDL.audio&&SDL.audio.queueNewAudioData&&SDL.audio.queueNewAudioData(),Browser.mainLoop.scheduler())}}},n||(i&&i>0?_emscripten_set_main_loop_timing(0,1e3/i):_emscripten_set_main_loop_timing(1,1),Browser.mainLoop.scheduler()),t)throw"SimulateInfiniteLoop"}function_pthread_setspecific(e,i){returneinPTHREAD_SPECIFIC?(PTHREAD_SPECIFIC[e]=i,0):ERRNO_CODES.EINVAL}function_malloc(e){vari=Runtime.dynamicAlloc(e+8);returni+8&4294967288}function___cxa_allocate_exception(e){return_malloc(e)}function___syscall54(e,i){SYSCALLS.varargs=i;try{return0}catch(e){return"undefined"!=typeofFS&&einstanceofFS.ErrnoError||abort(e),-e.errno}}function___cxa_pure_virtual(){throwABORT=!0,"Pure virtual function called!"}function_pthread_cleanup_push(e,i){__ATEXIT__.push(function(){Runtime.dynCall("vi",e,[i])}),_pthread_cleanup_push.level=__ATEXIT__.length}function_pthread_cond_broadcast(){return0}function___cxa_guard_acquire(e){returnHEAP8[e>>0]?0:(HEAP8[e>>0]=1,1)}function_pthread_cleanup_pop(){assert(_pthread_cleanup_push.level==__ATEXIT__.length,"cannot pop if something else added meanwhile!"),__ATEXIT__.pop(),_pthread_cleanup_push.level=__ATEXIT__.length}function___cxa_guard_release(){}function___cxa_begin_catch(e){return__ZSt18uncaught_exceptionv.uncaught_exception--,EXCEPTIONS.caught.push(e),EXCEPTIONS.addRef(EXCEPTIONS.deAdjust(e)),e}function_llvm_eh_typeid_for(e){returne}function_emscripten_memcpy_big(e,i,t){returnHEAPU8.set(HEAPU8.subarray(i,i+t),e),e}function___syscall6(e,i){SYSCALLS.varargs=i;try{vart=SYSCALLS.getStreamFromFD();returnFS.close(t),0}catch(e){return"undefined"!=typeofFS&&einstanceofFS.ErrnoError||abort(e),-e.errno}}function_pthread_mutex_lock(){}function_sbrk(e){vari=_sbrk;i.called||(DYNAMICTOP=ali
if(a<1)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'numFragments' must be > 0";if(n+a>r.fragments.length)throw"dicomParser.readEncapsulatedPixelDataFromFragments: parameter 'startFragment' + 'numFragments' < number of fragments";vars=newe.ByteStream(t.byteArrayParser,t.byteArray,r.dataOffset),f=e.readSequenceItem(s);if("xfffee000"!==f.tag)throw"dicomParser.readEncapsulatedPixelData: missing basic offset table xfffee000";s.seek(f.length);varl=s.position,u=8;if(1===a)returne.sharedCopy(s.byteArray,l+o[n].offset+u,o[n].length);for(varc=i(o,n,a),d=e.alloc(s.byteArray,c),h=0,m=n;m<n+a;m++)for(varb=l+o[m].offset+u,v=0;v<o[m].length;v++)d[h++]=s.byteArray[b++];returnd},e}(e),e=function(e){returnvoid0===e&&(e={}),e.readPart10Header=function(i,t){functionr(){a.seek(128);vare=a.readFixedString(4);if("DICM"!==e)throw"dicomParser.readPart10Header: DICM prefix not found at location 132 - this is not a valid DICOM P10 file."}functionn(){r();for(vari=[],t={};a.position<a.byteArray.length;){varn=a.position,o=e.readDicomElementExplicit(a,i);if(o.tag>"x0002ffff"){a.position=n;break}o.parser=e.littleEndianByteArrayParser,t[o.tag]=o}vars=newe.DataSet(a.byteArrayParser,a.byteArray,t);returns.warnings=a.warnings,s.position=a.position,s}if(void0===i)throw"dicomParser.readPart10Header: missing required parameter 'byteArray'";vara=newe.ByteStream(e.littleEndianByteArrayParser,i);returnn()},e}(e),e=function(e){"use strict";functioni(i,t){for(varr={};i.position<i.byteArray.length;){varn=e.readDicomElementExplicit(i,t);if(r[n.tag]=n,"xfffee00d"===n.tag)returnnewe.DataSet(i.byteArrayParser,i.byteArray,r)}returnt.push("eof encountered before finding item delimiter tag while reading sequence item of undefined length"),newe.DataSet(i.byteArrayParser,i.byteArray,r)}functiont(t,r){varn=e.readSequenceItem(t);return4294967295===n.length?(n.hadUndefinedLength=!0,n.dataSet=i(t,r),n.length=t.position-n.dataOffset):(n.dataSet=newe.DataSet(t.byteArrayParser,t.byteArray,{}),e.parseDicomDataSetExplicit(n.dataSet,t,t.position+n.length)),n}functionr(i,r,n){for(;i.position+4<=i.byteArray.length;){vara=e.readTag(i);if(i.seek(-4),"xfffee0dd"===a)returnr.length=i.position-r.dataOffset,i.seek(8),r;varo=t(i,n);r.items.push(o)}n.push("eof encountered before finding sequence delimitation tag while reading sequence of undefined length"),r.length=i.position-r.dataOffset}functionn(e,i,r){for(varn=i.dataOffset+i.length;e.position<n;){vara=t(e,r);i.items.push(a)}}returnvoid0===e&&(e={}),e.readSequenceItemsExplicit=function(e,i,t){if(void0===e)throw"dicomParser.readSequenceItemsExplicit: missing required parameter 'byteStream'";if(void0===i)throw"dicomParser.readSequenceItemsExplicit: missing required parameter 'element'";i.items=[],4294967295===i.length?r(e,i,t):n(e,i,t)},e}(e),e=function(e){"use strict";functioni(i,t){for(varr={};i.position<i.byteArray.length;){varn=e.readDicomElementImplicit(i,void0,t);if(r[n.tag]=n,"xfffee00d"===n.tag)returnnewe.DataSet(i.byteArrayParser,i.byteArray,r)}returni.warnings.push("eof encountered before finding sequence item delimiter in sequence item of undefined length"),newe.DataSet(i.byteArrayParser,i.byteArray,r)}functiont(t,r){varn=e.readSequenceItem(t);return4294967295===n.length?(n.hadUndefinedLength=!0,n.dataSet=i(t,r),n.length=t.position-n.dataOffset):(n.dataSet=newe.DataSet(t.byteArrayParser,t.byteArray,{}),e.parseDicomDataSetImplicit(n.dataSet,t,t.position+n.length,{vrCallback:r})),n}functionr(i,r,n){for(;i.position+4<=i.byteArray.length;){vara=e.readTag(i);if(i.seek(-4),"xfffee0dd"===a)returnr.length=i.position-r.dataOffset,i.seek(8),r;varo=t(i,n);r.items.push(o)}i.warnings.push("eof encountered before finding sequence delimiter in sequence of undefined length"),r.length=i.byteArray.length-r.dataOffset}functionn(e,i,r){for(varn=i.dataOffset+i.length;e.position<n;){vara=t(e,r);i.items.push(a)}}returnvoid0===e&&(e={}),e.readSequenceItemsImplicit=function(e,i,t){if(void0===e)throw"dicomParser.readSequenceItemsImplicit: missing required parameter 'by
!function(){var e=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(){function e(e,t){return e.length>t?e.slice(0,t)+"...":e}var t=500;d=function n(a,r){var o="failed["+a+"]";if(r){var c="string"==typeof r?r:r.toString();o+=""+e(c.replace(/\n/g,""),t)}return new Error(o)},m=function e(t){var n=(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}else t.data=null},h={},h.get=function(){return h.call.apply(this,["GET"].concat(a.toArray(arguments)))},h.post=function(){return h.call.apply(this,["POST"].concat(a.toArray(arguments)))},h.put=function(){return h.call.apply(this,["PUT"].concat(a.toArray(arguments)))},h.del=function(){return h.call.apply(this,["DELETE"].concat(a.toArray(arguments)))},h.patch=function(){return h.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"!=typeof o||(c=o,o=null),o=o||{},"function"!=typeof c)throw new Error("Can't make a blocking HTTP call from the client; callback required.");t=(t||"").toUpperCase();var s={},i=o.content;o.data&&(i=JSON.stringify(o.data),s["Content-Type"]="application/json");var l,p;if(i||"GET"===t||"HEAD"===t?l=o.params:p=o.params,n=r._constructUrl(n,o.query,l),o.followRedirects===!1)throw new Error("Option followRedirects:false not supported on client.");if(a.has(o,"npmRequestOptions"))throw new Error("Option npmRequestOptions not supported on client.");var f,h;if(o.auth){var g=o.auth.indexOf(":");if(g<0)throw new Error('authoptionshouldbeoftheform"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){return function(t,n){t&&n&&(t.response=n),e(t,n)}}(c),c=a.once(c);try{var y;if("undefined"!=typeof XMLHttpRequest)y=new XMLHttpRequest;else{if("undefined"==typeof ActiveXObject)throw new Error("Can'tcreateXMLHttpRequest");y=new ActiveXObject("Microsoft.XMLHttp")}y.open(t,n,!0,f,h);for(var v in u.sanitizeForInObject(s))y.setRequestHeader(v,s[v]);var P=!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(new Error("timeout"));else if(y.status){var n={};n.statusCode=y.status,n.content=y.responseText,n.headers={};var r=y.getAllResponseHeaders();""===r&&y.getResponseHeader("content-type")&&(r="content-type:"+y.getResponseHeader("content-type"));var o=r.split(/\r?\n/);a.each(o,function(e){var t=/^(.*?):(?:\s+)(.*)$/.exec(e);t&&3===t.length&&(n.headers[t[1].toLowerCase()]=t[2])}),m(n);var s=null;n.statusCode>=400&&(s=d(n.statusCode,n.content)),c(s,n)}else c(new Error("network"))},o.beforeSend){var w=a.once(o.beforeSend);if(!1===w.call(null,y,o))return y.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"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package.http={},{HTTP:h})}();
},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,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(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i;(function(){(function(){i=function(e){vart=this;if(!(tinstanceofi))thrownewError('use "new" to construct an EventEmitter');e=e||{},t._eventEmitter={onListeners:{},onceListeners:{},maxListeners:e.maxListeners||10}};vare=function(e,t){varn=this;if(n._eventEmitter.maxListeners&&t>n._eventEmitter.maxListeners)return"warning: possible EventEmitter memory leak detected. "+t+' listeners added on event "'+e+'". Use emitter.setMaxListeners() to increase limit. ('+n._eventEmitter.maxListeners+")"};i.prototype.setMaxListeners=function(e){this._eventEmitter.maxListeners=e};vart=function(t,n,r){return"undefined"==typeoft[n]&&(t[n]=[]),e.apply(this,[n,t[n].push(r)])};i.prototype.on=function(e,n){varr=t.apply(this,[this._eventEmitter.onListeners,e,n]);returnr&&console.warn(newError(r).stack),this},i.prototype.once=function(e,n){varr=t.apply(this,[this._eventEmitter.onceListeners,e,n]);returnr&&console.warn(newError(r).stack),this};varn=function(e,t){varn=this,i=0;return"undefined"!=typeofe&&r.each(e,function(e){i++,e.apply(n,t)}),i};i.prototype.emit=function(e){vart=this,i=r.rest(arguments),o=0,s=t._eventEmitter.onceListeners[e];returnt._eventEmitter.onceListeners[e]=[],o+=n.call(t,t._eventEmitter.onListeners[e],i),o+=n.call(t,s,i),o>0};varo=function(e,t){for(varn=!1,r=[],i=0;i<e.length;i++)n||e[i]!==t?r.push(e[i]):n=!0;returnr};i.prototype.off=function(e,t){varn=this;e?"function"==typeoft?("undefined"!=typeofn._eventEmitter.onListeners[e]&&(n._eventEmitter.onListeners[e]=o(n._eventEmitter.onListeners[e],t)),"undefined"!=typeofn._eventEmitter.onceListeners[e]&&(n._eventEmitter.onceListeners[e]=o(n._eventEmitter.onceListeners[e],t))):(n._eventEmitter.onListeners[e]=[],n._eventEmitter.onceListeners[e]=[]):(n._eventEmitter.onListeners={},n._eventEmitter.onceListeners={})},i.prototype.addListener=i.prototype.on,i.prototype.removeListener=i.prototype.off,i.prototype.removeAllListeners=i.prototype.off,i.prototype.one=i.prototype.once,i.prototype.trigger=i.prototype.emit}).call(this)}).call(this),"undefined"==typeofPackage&&(Package={}),function(e,t){for(varnint)nine||(e[n]=t[n])}(Package["raix:eventemitter"]={},{EventEmitter:i})}();
!function(){vare=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,i=Package["aldeed:simple-schema"].SimpleSchema,r=Package["aldeed:simple-schema"].MongoObject,o=Package.underscore._,a=Package.check.check,s=Package.check.Match,c=Package.mongo.Mongo,l=Package.minimongo.LocalCollection,u=Package.minimongo.Minimongo,m=Package.ejson.EJSON,d=Package["raix:eventemitter"].EventEmitter,f;(function(){functiont(t,i,r,l,u){functionm(e,n,i,r,a,s){E.clean(e,{mutate:!0,filter:i,autoConvert:r,getAutoValues:n,isModifier:"insert"!==t,removeEmptyStrings:a,trimStrings:s,extendAutoValueContext:o.extend({isInsert:"insert"===t,isUpdate:"update"===t&&_.upsert!==!0,isUpsert:v,userId:l,isFromTrustedCode:u,docId:I,isLocalCollection:k},_.extendAutoValueContext||{})})}vard=this,f,p,h,_,v,g,y,S;if(!i.length)thrownewError(t+" requires an argument");if("insert"===t)f=i[0],_=i[1],p=i[2],i="function"==typeof_?[f,_]:"function"==typeofp?[f,p]:[f];else{if("update"!==t)thrownewError("invalid type argument");g=i[0],f=i[1],_=i[2],p=i[3]}varC=o.isEmpty(f);p||"function"!=typeof_||(p=_,_={}),_=_||{},y=i.length-1,S="function"==typeofi[y],v="update"===t&&_.upsert===!0;varE=d.simpleSchema(f,_,g),k=null===d._connection;(e.isServer||k)&&_.getAutoValues===!1&&(r=!1);varw=_.validationContext;w?"string"==typeofw&&(w=E.namedContext(w)):w=E.namedContext(),e.isClient&&!p&&(p=function(n){n&&e._debug(t+" failed: "+(n.reason||n.stack))}),e.isClient&&S&&(p=i[y]=s(w,p));varx=E.allowsKey("_id");"insert"===t&&!f._id&&x&&(f._id=d._makeNewID());varI;"insert"===t?I=f._id:"update"===t&&g&&(I="string"==typeofg||ginstanceofc.ObjectID?g:g._id);varP;f._id&&!x&&(P=f._id,deletef._id),m(f,r,_.filter!==!1,_.autoConvert!==!1,_.removeEmptyStrings!==!1,_.trimStrings!==!1);varA={};for(varMinf)f.hasOwnProperty(M)&&(A[M]=f[M]);if(e.isServer&&v&&o.isObject(g)){varO=A.$set||{};A.$set=o.clone(g),x||deleteA.$set._id,o.extend(A.$set,O)}if(e.isClient&&!k&&m(A,!0,!1,!1,!1,!1),!C&&o.isEmpty(A))thrownewError("After filtering out keys not in the schema, your "+("update"===t?"modifier":"object")+" is now empty");varV;if(V=_.validate===!1||w.validate(A,{modifier:"update"===t||"upsert"===t,upsert:v,extendedCustomContext:o.extend({isInsert:"insert"===t,isUpdate:"update"===t&&_.upsert!==!0,isUpsert:v,userId:l,isFromTrustedCode:u,docId:I,isLocalCollection:k},_.extendedCustomContext||{})}))returnP&&(f._id=P),"insert"===t?i[0]=f:i[1]=f,e.isServer&&S&&(i[y]=a(w,i[y])),i;if(h=n(w),!p)throwh;p(h,!1)}functionn(t){varn,r=i.version>=2?t.validationErrors():t.invalidKeys();n=r.length?t.keyErrorMessage(r[0].name):"Failed validation";varo=newError(n);returno.invalidKeys=r,o.validationContext=t,e.isServer&&(o.sanitizedError=newe.Error(400,n,m.stringify(o.invalidKeys))),o}functionr(e,t){varn=t.split("c2_")[1].split(" ")[0],i=t.split("dup key:")[1].split('"')[1];e[h]([{name:n,type:"notUnique",value:i}])}functiona(e,t){returnfunctioni(a){vars=o.toArray(arguments);returna&&("MongoError"===a.name&&11001===a.code||a.message.indexOf(!0))&&a.message.indexOf("c2_")!==-1&&(r(e,a.message),s[0]=n(e)),t.apply(this,s)}}functions(t,i){returnfunctiona(s){varc=o.toArray(arguments);if(sinstanceofe.Error&&400===s.error&&"INVALID"===s.reason&&"string"==typeofs.details){varl=m.parse(s.details);t[h](l),c[0]=n(t)}elsesinstanceofe.Error&&409===s.error&&s.reason&&s.reason.indexOf("E11000")!==-1&&s.reason.indexOf("c2_")!==-1&&(r(t,s.reason),c[0]=n(t));returni.apply(this,c)}}functionu(e){Package&&Package.insecure&&!_[e._name]&&(e.allow({insert:function(){return!0},update:function(){return!0},remove:function(){return!0},fetch:[],transform:null}),_[e._name]=!0)}functionp(n,i){if(!v[n._name]){varr=null===n._connection;n.deny({insert:function(e,t){returnn.simpleSchema(t).clean(t,{mutate:!0,isModifier:!1,filter:!1,autoConvert:!1,removeEmptyStrings:!1,trimStrings:!1,extendAutoValueContext:{isInsert:!0,isUpdate:!1,isUpsert:!1,userId:e,isFromTrustedCode:!1,docId:t._id,isLocalCollection:r}}),!1},update:function(e,t,i,o){returnn.simpleSchema(o).clean(o,{mutate:!0,isModifier:!
!function(){vare=Package.meteor.Meteor,a=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package["aldeed:collection2-core"].Collection2,c=Package.underscore._,i=Package.minimongo.LocalCollection,s=Package.minimongo.Minimongo,t=Package.check.check,m=Package.check.Match,r=Package.modules.meteorInstall,l=Package.modules.Buffer,u=Package.modules.process,g=Package["ecmascript-runtime"].Symbol,d=Package["ecmascript-runtime"].Map,k=Package["ecmascript-runtime"].Set,P=Package["babel-runtime"].meteorBabelHelpers,p=Package.promise.Promise,h=Package["aldeed:simple-schema"].SimpleSchema,b=Package["aldeed:simple-schema"].MongoObject,f=Package.mongo.Mongo,x=r({node_modules:{meteor:{"aldeed:schema-index":{lib:{"indexing.js":function(){h.extendOptions({index:m.Optional(m.OneOf(Number,String,Boolean)),unique:m.Optional(Boolean),sparse:m.Optional(Boolean)}),(!h.version||h.version<2)&&h.messages({notUnique:"[label] must be unique"}),e.isServer&&o.on("schema.attached",function(a,n){functiono(n,o,c,i){e.startup(function(){a._collection._ensureIndex(n,{background:!0,name:o,unique:c,sparse:i})})}functioni(n){e.startup(function(){try{a._collection._dropIndex(n)}catch(e){}})}n.version>=2&&n.messageBox.messages({notUnique:"{{label}} must be unique"});vars=2===n.version?"mergedSchema":"schema";c.each(n[s](),function(e,a){if("index"ine||e.unique===!0){varn={},c;"index"ine?(c=e.index,c===!0&&(c=1)):c=1;vars="c2_"+a,t=a.replace(/\.\$\./g,".");n[t]=c;varm=!!e.unique&&(1===c||c===-1),r=e.sparse||!1;!r&&m&&e.optional&&(r=!0),c===!1?i(s):o(n,s,m,r)}})})}}}}}},{extensions:[".js",".json"]});x("./node_modules/meteor/aldeed:schema-index/lib/indexing.js"),"undefined"==typeofPackage&&(Package={}),Package["aldeed:schema-index"]={}}();
!function(){vare=Package.meteor.Meteor,a=Package.meteor.global,n=Package.meteor.meteorEnv,o=Package["aldeed:collection2-core"].Collection2,t=Package.underscore._,i=Package.minimongo.LocalCollection,c=Package.minimongo.Minimongo,l=Package.check.check,s=Package.check.Match,d=Package["aldeed:simple-schema"].SimpleSchema,g=Package["aldeed:simple-schema"].MongoObject,r=Package.mongo.Mongo;(function(){d.extendOptions({denyInsert:s.Optional(Boolean),denyUpdate:s.Optional(Boolean)}),(!d.version||d.version<2)&&d.messages({insertNotAllowed:"[label] cannot be set during an insert",updateNotAllowed:"[label] cannot be set during an update"}),o.on("schema.attached",function(e,a){a.version>=2&&a.messageBox.messages({insertNotAllowed:"{{label}} cannot be set during an insert",updateNotAllowed:"{{label}} cannot be set during an update"}),a.addValidator(function(){if(this.isSet){vare=this.definition;returne.denyInsert&&this.isInsert?"insertNotAllowed":e.denyUpdate&&(this.isUpdate||this.isUpsert)?"updateNotAllowed":void0}})})}).call(this),"undefined"==typeofPackage&&(Package={}),Package["aldeed:schema-deny"]={}}();
!function(){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
!function(){var e=Package.meteor.Meteor,a=Package.meteor.global,c=Package.meteor.meteorEnv,r=Package["clinical:router"].Router,o=Package["clinical:router"].RouteController,n=Package.modules.meteorInstall,g=Package.modules.Buffer,s=Package.modules.process,t=Package["ecmascript-runtime"].Symbol,i=Package["ecmascript-runtime"].Map,k=Package["ecmascript-runtime"].Set,P=Package["babel-runtime"].meteorBabelHelpers,u=Package.promise.Promise,l=Package["iron:core"].Iron,m=Package.webapp.WebApp,p=Package.logging.Log,d=Package.deps.Tracker,f=Package.deps.Deps,y=Package.session.Session,b=Package["ddp-client"].DDP,h=Package.mongo.Mongo,j=Package.ui.Blaze,S=Package.ui.UI,v=Package.ui.Handlebars,x=Package.spacebars.Spacebars,M=Package["templating-runtime"].Template,w=Package.check.check,D=Package.check.Match,L=Package.underscore._,R=Package.jquery.$,q=Package.jquery.jQuery,B=Package.random.Random,H=Package.ejson.EJSON,I=Package["launch-screen"].LaunchScreen,O=Package.htmljs.HTML,T,_=n({node_modules:{meteor:{"ohif:wadoproxy":{server:{"namespace.js":function(){T={},T.convertURL=function(e,a){return Settings.enabled?e?Settings.uri+"?"+querystring.stringify({url:e,options:a?JSON.stringify(a):null}):null:e}}}}}}},{extensions:[".js",".json"]});_("./node_modules/meteor/ohif:wadoproxy/server/namespace.js"),"undefined"==typeof Package&&(Package={}),function(e,a){for(var c in a)c in e||(e[c]=a[c])}(Package["ohif:wadoproxy"]={},{WADOProxy:T})}();
}),pt.If(function(){return ht.call(t.lookup("createdBy"))},function(){return[" by ",pt.View("lookup:getUsername",function(){return ht.mustache(t.lookup("getUsername"),t.lookup("createdBy"))})]})),"\n ",kt.P("Last modified: ",pt.View("lookup:formatJSDate",function(){return ht.mustache(t.lookup("formatJSDate"),t.lookup("modifiedDate"))}),pt.If(function(){return ht.call(t.lookup("createdBy"))},function(){return[" by ",pt.View("lookup:getUsername",function(){return ht.mustache(t.lookup("getUsername"),t.lookup("modifiedBy"))})]})),"\n ",kt.P("Number of Priors Referenced: ",pt.View("lookup:numberOfPriorsReferenced",function(){return ht.mustache(t.lookup("numberOfPriorsReferenced"))})),"\n "),"\n "),"\n ",kt.DIV({class:"row"},"\n ",kt.H3("Protocol Applicability"),"\n ",kt.HR(),"\n ",pt._TemplateWith(function(){return{level:ht.call("protocol"),rules:ht.call(t.lookup("protocolMatchingRules")),attributes:ht.call(t.lookup("studyAttributes"))}},function(){return ht.include(t.lookupTemplate("ruleTable"))}),"\n "),"\n ",kt.DIV({class:"row"},"\n ",kt.H3("Stages"),"\n ",kt.HR(),"\n ",pt._TemplateWith(function(){return{stages:ht.call(t.lookup("stages"))}},function(){return ht.include(t.lookupTemplate("stageSortable"))}),"\n "),"\n "),"\n "]}),"\n "),"\n\n ",kt.DIV({id:"activeViewportEditor",class:"tab-pane"},"\n ",pt.If(function(){return ht.call(t.lookup("activeViewportUndefined"))},function(){return["\n ",kt.DIV({class:"noActiveViewport"},"\n ",kt.H2("Select a Viewport"),"\n ",kt.HR(),"\n ",kt.P("\n Upon selecting a Viewport, this section will show a list of rules that can be used\n to determine which images will populate the specified Viewport. You can specify these\n rules to be evaluated at the study, series, or image level.\n "),"\n "),"\n "]}),"\n ",ht.With(function(){return ht.call(t.lookup("activeStage"))},function(){return["\n ",ht.include(t.lookupTemplate("stageDetails")),"\n "]}),"\n "),"\n "),"\n\n ",ht.With(function(){return ht.call(t.lookup("activeProtocol"))},function(){return["\n ",kt.DIV({id:"protocolOptions",class:"protocolEditorSection"},"\n ",pt.If(function(){return ht.call(t.lookup("locked"))},function(){return["\n ",kt.BUTTON({id:"saveProtocol",type:"button",class:"btn btn-sm",disabled:""},"\n Locked ",kt.I({class:"fa fa-lock","aria-hidden":"true"}),"\n "),"\n "]},function(){return["\n ",kt.BUTTON({id:"saveProtocol",type:"button",class:"btn btn-sm"},"\n Save Changes ",kt.I({class:"fa fa-floppy-o","aria-hidden":"true"}),"\n "),"\n "]}),"\n\n ",pt.If(function(){return ht.call(t.lookup("modifiedDate"))},function(){return["\n ",kt.P({class:"lastSavedText"},"Last saved ",pt.View("lookup:jsDateFromNow",function(){return ht.mustache(t.lookup("jsDateFromNow"),t.lookup("modifiedDate"))})),"\n "]}),"\n "),"\n ",kt.IFRAME({id:"download_iframe",style:"display:none;"}),"\n "]}),"\n ")})},"protocolEditor.js":function(){function e(){if(Et){var t=St.find().map(function(t){return t.text=t.name,t}),e=o("#protocolSelect");e.select2().empty(),e.select2({data:t}),e.select2().val(Et.protocol.id).trigger("change")}}a.protocolEditor.onRendered(function(){var n=a.instance();n.timeAgoInterval=t.setInterval(function(){ut.set("timeAgoVariable",new Date)},6e4),n.subscribe("hangingprotocols",function(){e()})}),a.prot
Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/nextPresentationGroupButton/nextPresentationGroupButton.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/matchedProtocols/template.matchedProtocols.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/matchedProtocols/matchedProtocols.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/protocolEditor/template.protocolEditor.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/protocolEditor/protocolEditor.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/ruleTable/template.ruleTable.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/ruleTable/ruleTable.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/ruleEntryDialog/template.ruleEntryDialog.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/ruleEntryDialog/ruleEntryDialog.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/settingEntryDialog/template.settingEntryDialog.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/settingEntryDialog/settingEntryDialog.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/textEntryDialog/template.textEntryDialog.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/textEntryDialog/textEntryDialog.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/settingsTable/template.settingsTable.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/settingsTable/settingsTable.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/stageDetails/template.stageDetails.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/stageDetails/stageDetails.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/stageSortable/template.stageSortable.js"),Ct("./node_modules/meteor/ohif:hanging-protocols/client/components/stageSortable/stageSortable.js"),"undefined"==typeof Package&&(Package={}),function(t,e){for(var n in e)n in t||(t[n]=e[n])}(Package["ohif:hanging-protocols"]={},{HP:Pt,HangingProtocols:St,MatchedProtocols:It})}();
!function(){var a=Package.meteor.Meteor,e=Package.meteor.global,o=Package.meteor.meteorEnv,l=Package["templating-runtime"].Template,n=Package.jquery.$,t=Package.jquery.jQuery,c=Package.blaze.Blaze,i=Package.blaze.UI,d=Package.blaze.Handlebars,r=Package.spacebars.Spacebars,u=Package.htmljs.HTML,m;(function(){var a=null;m={allowMultiple:!1,show:function(e,o,n){if(null==a||this.allowMultiple){var t=document.body,i=c.renderWithData(l[e],o,t),d=i._domrange,r=d.$(".modal");r.on("shown.bs.modal",function(a){r.find("[autofocus]").focus()}),r.on("hidden.bs.modal",function(e){c.remove(i),a=null}),a=r,r.modal(n?n:{})}},hide:function(e){e instanceof c.TemplateInstance?e.$(".modal").modal("hide"):null!=a&&a.modal("hide")}}}).call(this),"undefined"==typeof Package&&(Package={}),function(a,e){for(var o in e)o in a||(a[o]=e[o])}(Package["peppelg:bootstrap-3-modal"]={},{Modal:m})}();
!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})}();