Free javascript Hosting


total.js

Uploaded on Feb 19 2022 23:46 by geekyshout

!function(){var n,t;(function(){n={}}).call(this),function(){(function(){var t=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){return n instanceof A?n:this instanceof A?void(this._wrapped=n):new A(n)};void 0!==n?("undefined"!=typeof module&&module.exports&&(n=module.exports=A),n._=A):t._=A,A.VERSION="1.5.2";var k=function(n){return"[object Arguments]"===f.call(n)};k(arguments)||(k=function(n){return!(!n||!s.call(n,"callee")||"function"!=typeof n.callee)});var O=function(n){return n.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);else if(O(n)){for(var i=0,u=n.length;i<u;i++)if(t.call(r,n[i],i,n)===e)return}else for(var a=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){var e=[];return null==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)};var F="Reduce of empty array with no initial value";A.reduce=A.foldl=A.inject=function(n,t,r,e){var i=arguments.length>2;if(null==n&&(n=[]),v&&n.reduce===v)return e&&(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)throw new TypeError(F);return r},A.reduceRight=A.foldr=function(n,t,r,e){var i=arguments.length>2;if(null==n&&(n=[]),y&&n.reduceRight===y)return e&&(t=A.bind(t,e)),i?n.reduceRight(t,r):n.reduceRight(t);var u=n.length;if(!O(n)){var a=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)throw new TypeError(F);return r},A.find=A.detect=function(n,t,r){var e;return M(n,function(n,i,u){if(t.call(r,n,i,u))return e=n,!0}),e},A.filter=A.select=function(n,t,r){var e=[];return null==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){return A.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);var i=!0;return null==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)))return e}),!!i)};var M=A.some=A.any=function(n,t,r){t||(t=A.identity);var i=!1;return null==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)))return e}),!!i)};A.contains=A.include=function(n,t){return null!=n&&(b&&n.indexOf===b?-1!=n.indexOf(t):M(n,function(n){return n===t}))},A.invoke=function(n,t){var r=o.call(arguments,2),e=A.isFunction(t);return A.map(n,function(n){return(e?t:n[t]).apply(n,r)})},A.pluck=function(n,t){return A.map(n,function(n){return n[t]})},A.where=function(n,t,r){return A.isEmpty(t)?r?void 0:[]:A[r?"find":"filter"](n,function(n){for(var r in t)if(t[r]!==n[r])return!1;return!0})},A.findWhere=function(n,t){return A.where(n,t,!0)},A.max=function(n,t,r){if(!t&&A.isArray(n)&&n[0]===+n[0]&&n.length<65535)return Math.max.apply(Math,n);if(!t&&A.isEmpty(n))return-1/0;var e={computed:-1/0,value:-1/0};return E(n,function(n,i,u){var a=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)return Math.min.apply(Math,n);if(!t&&A.isEmpty(n))return 1/0;var e={computed:1/0,value:1/0};return E(n,function(n,i,u){var a=t?t.call(r,n,i,u):n;a<e.computed&&(e={value:n,computed:a})}),e.value},A.shuffle=function(n){var t,r=0,e=[];return E(n,function(n){t=A.random(r++),e[r-1]=e[t],e[t]=n}),e},A.sample=function(n,t,r){return arguments.length<2||r?n[A.random(n.length-1)]:A.shuffle(n).slice(0,Math.max(0,t))};var R=function(n){return A.isFunction(n)?n:function(t){return t[n]}};A.sortBy=function(n,t,r){var e=R(t);return A.pluck(A.map(n,function(n,t,i){return{value:n,index:t,criteria:e.call(r,n,t,i)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||void 0===r)return 1;if(r<e||void 0===e)return-1}return n.index-t.index}),"value")};var S=function(n){return function(t,r,e){var i={},u=null==r?A.identity:R(r);return E(t,function(r,a){var c=u.call(e,r,a,t);n(i,c,r)}),i}};A.groupBy=S(function(n,t,r){(A.has(n,t)?n[t]:n[t]=[]).push(r)}),A.indexBy=S(function(n,t,r){n[t]=r}),A.countBy=S(function(n,t){A.has(n,t)?n[t]++:n[t]=1}),A.sortedIndex=function(n,t,r,e){for(var i=(r=null==r?A.identity:R(r)).call(e,t),u=0,a=n.length;u<a;){var c=u+a>>>1;r.call(e,n[c])<i?u=c+1:a=c}return u},A.toArray=function(n){return n?A.isArray(n)?o.call(n):O(n)?A.map(n,A.identity):A.values(n):[]},A.size=function(n){return null==n?0:O(n)?n.length:A.keys(n).length},A.first=A.head=A.take=function(n,t,r){if(null!=n)return null==t||r?n[0]:o.call(n,0,t)},A.initial=function(n,t,r){return o.call(n,0,n.length-(null==t||r?1:t))},A.last=function(n,t,r){if(null!=n)return null==t||r?n[n.length-1]:o.call(n,Math.max(n.length-t,0))},A.rest=A.tail=A.drop=function(n,t,r){return o.call(n,null==t||r?1:t)},A.compact=function(n){return A.filter(n,A.identity)};var I=function(n,t,r){return t&&A.every(n,A.isArray)?l.apply(r,n):(E(n,function(n){A.isArray(n)||A.isArguments(n)?t?c.apply(r,n):I(n,t,r):r.push(n)}),r)};A.flatten=function(n,t){return I(n,t,[])},A.without=function(n){return A.difference(n,o.call(arguments,1))},A.uniq=A.unique=function(n,t,r,e){A.isFunction(t)&&(e=r,r=t,t=!1);var i=r?A.map(n,r,e):n,u=[],a=[];return E(i,function(r,e){(t?e&&a[a.length-1]===r:A.contains(a,r))||(a.push(r),u.push(n[e]))}),u},A.union=function(){return A.uniq(A.flatten(arguments,!0))},A.intersection=function(n){var t=o.call(arguments,1);return A.filter(A.uniq(n),function(n){return A.every(t,function(t){return A.indexOf(t,n)>=0})})},A.difference=function(n){var t=l.apply(i,o.call(arguments,1));return A.filter(n,function(n){return!A.contains(t,n)})},A.zip=function(){for(var n=A.max(A.pluck(arguments,"length").concat(0)),t=new Array(n),r=0;r<n;r++)t[r]=A.pluck(arguments,""+r);return t},A.object=function(n,t){if(null==n)return{};for(var r={},e=0,i=n.length;e<i;e++)t?r[n[e]]=t[e]:r[n[e][0]]=n[e][1];return r},A.indexOf=function(n,t,r){if(null==n)return-1;var e=0,i=n.length;if(r){if("number"!=typeof r)return e=A.sortedIndex(n,t),n[e]===t?e:-1;e=r<0?Math.max(0,i+r):r}if(b&&n.indexOf===b)return n.indexOf(t,r);for(;e<i;e++)if(n[e]===t)return e;return-1},A.lastIndexOf=function(n,t,r){if(null==n)return-1;var e=null!=r;if(_&&n.lastIndexOf===_)return e?n.lastIndexOf(t,r):n.lastIndexOf(t);for(var i=e?r:n.length;i--;)if(n[i]===t)return i;return-1},A.range=function(n,t,r){arguments.length<=1&&(t=n||0,n=0),r=arguments[2]||1;for(var e=Math.max(Math.ceil((t-n)/r),0),i=0,u=new Array(e);i<e;)u[i++]=n,n+=r;return u};var T=function(){};A.bind=function(n,t){var r,e;if(j&&n.bind===j)return j.apply(n,o.call(arguments,1));if(!A.isFunction(n))throw new TypeError;return r=o.call(arguments,2),e=function(){if(!(this instanceof e))return n.apply(t,r.concat(o.call(arguments)));T.prototype=n.prototype;var i=new T;T.prototype=null;var u=n.apply(i,r.concat(o.call(arguments)));return Object(u)===u?u:i}},A.partial=function(n){var t=o.call(arguments,1);return function(){return n.apply(this,t.concat(o.call(arguments)))}},A.bindAll=function(n){var t=o.call(arguments,1);if(0===t.length)throw new Error("bindAll must be passed function names");return E(t,function(t){n[t]=A.bind(n[t],n)}),n},A.memoize=function(n,t){var r={};return t||(t=A.identity),function(){var e=t.apply(this,arguments);return A.has(r,e)?r[e]:r[e]=n.apply(this,arguments)}},A.delay=function(n,t){var r=o.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},A.defer=function(n){return A.delay.apply(A,[n,1].concat(o.call(arguments,1)))},A.throttle=function(n,t,r){var e,i,u,a=null,c=0;r||(r={});var o=function(){c=!1===r.leading?0:new Date,a=null,u=n.apply(e,i)};return function(){var l=new Date;c||!1!==r.leading||(c=l);var f=t-(l-c);return e=this,i=arguments,f<=0?(clearTimeout(a),a=null,c=l,u=n.apply(e,i)):a||!1===r.trailing||(a=setTimeout(o,f)),u}},A.debounce=function(n,t,r){var e,i,u,a,c;return function(){u=this,i=arguments,a=new Date;var o=function(){var l=new Date-a;l<t?e=setTimeout(o,t-l):(e=null,r||(c=n.apply(u,i)))},l=r&&!e;return e||(e=setTimeout(o,t)),l&&(c=n.apply(u,i)),c}},A.once=function(n){var t=!1,r;return function(){return t?r:(t=!0,r=n.apply(this,arguments),n=null,r)}},A.wrap=function(n,t){return function(){var r=[n];return c.apply(r,arguments),t.apply(this,r)}},A.compose=function(){var n=arguments;return function(){for(var t=arguments,r=n.length-1;r>=0;r--)t=[n[r].apply(this,t)];return t[0]}},A.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}},A.keys=x||function(n){if(n!==Object(n))throw new TypeError("Invalid object");var t=[];for(var r in n)A.has(n,r)&&t.push(r);return t},A.values=function(n){for(var t=A.keys(n),r=t.length,e=new Array(r),i=0;i<r;i++)e[i]=n[t[i]];return e},A.pairs=function(n){for(var t=A.keys(n),r=t.length,e=new Array(r),i=0;i<r;i++)e[i]=[t[i],n[t[i]]];return e},A.invert=function(n){for(var t={},r=A.keys(n),e=0,i=r.length;e<i;e++)t[n[r[e]]]=r[e];return t},A.functions=A.methods=function(n){var t=[];for(var r in n)A.isFunction(n[r])&&t.push(r);return t.sort()},A.extend=function(n){return E(o.call(arguments,1),function(t){if(t)for(var r in t)n[r]=t[r]}),n},A.pick=function(n){var t={},r=l.apply(i,o.call(arguments,1));return E(r,function(r){r in n&&(t[r]=n[r])}),t},A.omit=function(n){var t={},r=l.apply(i,o.call(arguments,1));for(var e in n)A.contains(r,e)||(t[e]=n[e]);return t},A.defaults=function(n){return E(o.call(arguments,1),function(t){if(t)for(var r in t)void 0===n[r]&&(n[r]=t[r])}),n},A.clone=function(n){return A.isObject(n)?A.isArray(n)?n.slice():A.extend({},n):n},A.tap=function(n,t){return t(n),n};var N=function(n,t,r,e){if(n===t)return 0!==n||1/n==1/t;if(null==n||null==t)return n===t;n instanceof A&&(n=n._wrapped),t instanceof A&&(t=t._wrapped);var i=f.call(n);if(i!=f.call(t))return!1;switch(i){case"[object String]":return n==String(t);case"[object Number]":return n!=+n?t!=+t:0==n?1/n==1/t:n==+t;case"[object Date]":case"[object Boolean]":return+n==+t;case"[object RegExp]":return n.source==t.source&&n.global==t.global&&n.multiline==t.multiline&&n.ignoreCase==t.ignoreCase}if("object"!=typeof n||"object"!=typeof t)return!1;for(var u=r.length;u--;)if(r[u]==n)return e[u]==t;var a=n.constructor,c=t.constructor;if(a!==c&&!(A.isFunction(a)&&a instanceof a&&A.isFunction(c)&&c instanceof c))return!1;r.push(n),e.push(t);var o=0,l=!0;if("[object Array]"==i){if(o=n.length,l=o==t.length)for(;o--&&(l=N(n[o],t[o],r,e)););}else{for(var s in n)if(A.has(n,s)&&(o++,!(l=A.has(t,s)&&N(n[s],t[s],r,e))))break;if(l){for(s in t)if(A.has(t,s)&&!o--)break;l=!o}}return r.pop(),e.pop(),l};A.isEqual=function(n,t){return N(n,t,[],[])},A.isEmpty=function(n){if(null==n)return!0;if(A.isArray(n)||A.isString(n))return 0===n.length;for(var t in n)if(A.has(n,t))return!1;return!0},A.isElement=function(n){return!(!n||1!==n.nodeType)},A.isArray=w||function(n){return"[object Array]"==f.call(n)},A.isObject=function(n){return n===Object(n)},E(["Arguments","Function","String","Number","Date","RegExp"],function(n){A["is"+n]=function(t){return f.call(t)=="[object "+n+"]"}}),A.isArguments(arguments)||(A.isArguments=function(n){return!(!n||!A.has(n,"callee"))}),"function"!=typeof/./&&(A.isFunction=function(n){return"function"==typeof n}),A.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))},A.isNaN=function(n){return A.isNumber(n)&&n!=+n},A.isBoolean=function(n){return!0===n||!1===n||"[object Boolean]"==f.call(n)},A.isNull=function(n){return null===n},A.isUndefined=function(n){return void 0===n},A.has=function(n,t){return s.call(n,t)},A.noConflict=function(){return t._=r,this},A.identity=function(n){return n},A.times=function(n,t,r){for(var e=Array(Math.max(0,n)),i=0;i<n;i++)e[i]=t.call(r,i);return e},A.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))};var q={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}};q.unescape=A.invert(q.escape);var B={escape:new RegExp("["+A.keys(q.escape).join("")+"]","g"),unescape:new RegExp("("+A.keys(q.unescape).join("|")+")","g")};A.each(["escape","unescape"],function(n){A[n]=function(t){return null==t?"":(""+t).replace(B[n],function(t){return q[n][t]})}}),A.result=function(n,t){if(null!=n){var r=n[t];return A.isFunction(r)?r.call(n):r}},A.mixin=function(n){E(A.functions(n),function(t){var r=A[t]=n[t];A.prototype[t]=function(){var n=[this._wrapped];return c.apply(n,arguments),U.call(this,r.apply(A,n))}})};var D=0;A.uniqueId=function(n){var t=++D+"";return n?n+t:t},A.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var P=/(.)^/,z={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},C=/\\|'|\r|\n|\t|\u2028|\u2029/g;A.template=function(n,t,r){var e;r=A.defaults({},r,A.templateSettings);var i=new RegExp([(r.escape||P).source,(r.interpolate||P).source,(r.evaluate||P).source].join("|")+"|$","g"),u=0,a="__p+='";n.replace(i,function(t,r,e,i,c){return a+=n.slice(u,c).replace(C,function(n){return"\\"+z[n]}),r&&(a+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'"),e&&(a+="'+\n((__t=("+e+"))==null?'':__t)+\n'"),i&&(a+="';\n"+i+"\n__p+='"),u=c+t.length,t}),a+="';\n",r.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{e=new Function(r.variable||"obj","_",a)}catch(n){throw n.source=a,n}if(t)return e(t,A);var c=function(n){return e.call(this,n,A)};return c.source="function("+(r.variable||"obj")+"){\n"+a+"}",c},A.chain=function(n){return A(n).chain()};var U=function(n){return this._chain?A(n).chain():n};A.mixin(A),E(["pop","push","reverse","shift","sort","splice","unshift"],function(n){var t=i[n];A.prototype[n]=function(){var r=this._wrapped;return t.apply(r,arguments),"shift"!=n&&"splice"!=n||0!==r.length||delete r[0],U.call(this,r)}}),E(["concat","join","slice"],function(n){var t=i[n];A.prototype[n]=function(){return U.call(this,t.apply(this._wrapped,arguments))}}),A.extend(A.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}).call(this)}.call(this),function(){t=n._}.call(this),"undefined"==typeof Package&&(Package={}),function(n,t){for(var r in t)r in n||(n[r]=t[r])}(Package.underscore={},{_:t})}();

!function(){var t=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(){function e(t){if(t)return r._debug("Exception in callback of async function",t.stack?t.stack:t)}if(r.isServer)var n=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(var e=1;e<arguments.length;e++){if(!(arguments[e]in t))return;t=t[arguments[e]]}return t},_ensure:function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];n in t||(t[n]={}),t=t[n]}return t},_delete:function(t){for(var e=[t],n=!0,r=1;r<arguments.length-1;r++){if(!((o=arguments[r])in t)){n=!1;break}if("object"!=typeof(t=t[o]))break;e.push(t)}for(var r=e.length-1;r>=0;r--){var o=arguments[r+1];if(n)n=!1;else for(var i in e[r][o])return;delete e[r][o]}},wrapAsync:function(o,i){return function(){for(var s=i||this,a=t.toArray(arguments),u,c=a.length-1;c>=0;--c){var l=a[c],f=typeof l;if("undefined"!==f){"function"===f&&(u=l);break}}if(!u){if(r.isClient)u=e;else{var p=new n;u=p.resolver()}++c}a[c]=r.bindEnvironment(u);var _=o.apply(s,a);return p?p.wait():_}},_inherits:function(e,n){for(var r in n)t.has(n,r)&&(e[r]=n[r]);var o=function(){this.constructor=e};return o.prototype=n.prototype,e.prototype=new o,e.__super__=n.prototype,e}});var o=!1;r._wrapAsync=function(t,e){return o||(r._debug("Meteor._wrapAsync has been renamed to Meteor.wrapAsync"),o=!0),r.wrapAsync.apply(r,arguments)}}.call(this),function(){"use strict";function t(){if(o.setImmediate){var t=function(t){o.setImmediate(t)};return t.implementation="setImmediate",t}return null}function e(){function t(t,e){return"string"==typeof t&&t.substring(0,e.length)===e}function e(e){if(e.source===o&&t(e.data,a)){var n=e.data.substring(a.length);try{s[n]&&s[n]()}finally{delete s[n]}}}if(!o.postMessage||o.importScripts)return null;var n=!0,r=o.onmessage;if(o.onmessage=function(){n=!1},o.postMessage("","*"),o.onmessage=r,!n)return null;var i=0,s={},a="Meteor._setImmediate."+Math.random()+".";o.addEventListener?o.addEventListener("message",e,!1):o.attachEvent("onmessage",e);var u=function(t){s[++i]=t,o.postMessage(a+i,"*")};return u.implementation="postMessage",u}function n(){var t=function(t){o.setTimeout(t,0)};return t.implementation="setTimeout",t}var o=this;r._setImmediate=t()||e()||n()}.call(this),function(){var e=function(t){if(Package.ddp){var e=Package.ddp.DDP._CurrentInvocation;if(e.get()&&e.get().isSimulation)throw new Error("Can't set timers inside simulations");return function(){e.withValue(null,t)}}return t},n=function(t,n){return r.bindEnvironment(e(n),t)};t.extend(r,{setTimeout:function(t,e){return setTimeout(n("setTimeout callback",t),e)},setInterval:function(t,e){return setInterval(n("setInterval callback",t),e)},clearInterval:function(t){return clearInterval(t)},clearTimeout:function(t){return clearTimeout(t)},defer:function(t){r._setImmediate(n("defer callback",t))}})}.call(this),function(){r.makeErrorType=function(t,e){var n=function(){Error.captureStackTrace?Error.captureStackTrace(this,n):this.stack=(new Error).stack,e.apply(this,arguments),this.errorType=t};return r._inherits(n,Error),n},r.Error=r.makeErrorType("Meteor.Error",function(t,e,n){var r=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(){var t=this;return new r.Error(t.error,t.reason,t.details)}}.call(this),function(){r._noYieldsAllowed=function(t){return t()},r._SynchronousQueue=function(){var t=this;t._tasks=[],t._running=!1,t._runTimeout=null},t.extend(r._SynchronousQueue.prototype,{runTask:function(e){var n=this;if(!n.safeToRunTask())throw new Error("Could not synchronously run a task from a running task");n._tasks.push(e);var o=n._tasks;n._tasks=[],n._running=!0,n._runTimeout&&(clearTimeout(n._runTimeout),n._runTimeout=null);try{for(;!t.isEmpty(o);){var i=o.shift();try{i()}catch(e){if(t.isEmpty(o))throw e;r._debug("Exception in queued task: "+(e.stack||e))}}}finally{n._running=!1}},queueTask:function(e){var n=this;n._tasks.push(e),n._runTimeout||(n._runTimeout=setTimeout(t.bind(n.flush,n),0))},flush:function(){this.runTask(function(){})},drain:function(){var e=this;if(e.safeToRunTask())for(;!t.isEmpty(e._tasks);)e.flush()},safeToRunTask:function(){return!this._running}})}.call(this),function(){var t=[],e=!1,n=!1,o=0,i=function(){o++},s=function(){o--,a()},a=function(){if(!(n||!e||o>0)){for(n=!0;t.length;)t.shift()();r.isCordova&&WebAppLocalServer.startupDidComplete()}},u=function(){e||(e=!0,a())};r.isCordova&&(i(),document.addEventListener("deviceready",s,!1)),"complete"===document.readyState||"loaded"===document.readyState?window.setTimeout(u):document.addEventListener?(document.addEventListener("DOMContentLoaded",u,!1),window.addEventListener("load",u,!1)):(document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&u()}),window.attachEvent("load",u)),r.startup=function(e){var o=!document.addEventListener&&document.documentElement.doScroll;if(o&&window===top){try{o("left")}catch(t){return void setTimeout(function(){r.startup(e)},50)}e()}else n?e():t.push(e)}}.call(this),function(){var t=0;r._debug=function(){if(t)t--;else if("undefined"!=typeof console&&void 0!==console.log)if(0==arguments.length)console.log("");else if("function"==typeof console.log.apply){for(var e=!0,n=0;n<arguments.length;n++)"string"!=typeof arguments[n]&&(e=!1);e?console.log.apply(console,[Array.prototype.join.call(arguments," ")]):console.log.apply(console,arguments)}else"function"==typeof Function.prototype.bind?Function.prototype.bind.call(console.log,console).apply(console,arguments):Function.prototype.call.call(console.log,console,Array.prototype.slice.call(arguments))},r._suppress_log=function(e){t+=e},r._suppressed_log_expected=function(){return 0!==t}}.call(this),function(){r._escapeRegExp=function(t){return String(t).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}.call(this),function(){var t;t=r.isClient?n.TEST_METADATA:process.env.TEST_METADATA;var e=JSON.parse(t||"{}"),o=e.driverPackage;r.isTest=!!e.isTest,r.isAppTest=!!e.isAppTest,r.isPackageTest=!!o&&!r.isTest&&!r.isAppTest,"string"==typeof o&&r.startup(function(){var t=Package[o];if(!t)throw new Error("Can't find test driver package: "+o);if(r.isClient){if("function"!=typeof t.runTests)throw new Error("Test driver package "+o+" missing `runTests` export");t.runTests()}else"function"==typeof t.start&&t.start()})}.call(this),function(){var e=0,n=[];r.EnvironmentVariable=function(){this.slot=e++},t.extend(r.EnvironmentVariable.prototype,{get:function(){return n[this.slot]},getOrNullIfOutsideFiber:function(){return this.get()},withValue:function(t,e){var r=n[this.slot];try{n[this.slot]=t;var o=e()}finally{n[this.slot]=r}return o}}),r.bindEnvironment=function(e,o,i){var s=t.clone(n);if(!o||"string"==typeof o){var a=o||"callback of async function";o=function(t){r._debug("Exception in "+a+":",t&&t.stack||t)}}return function(){var r=n;try{n=s;var a=e.apply(i,t.toArray(arguments))}catch(t){o(t)}finally{n=r}return a}},r._nodeCodeMustBeInFiber=function(){}}.call(this),function(){r.absoluteUrl=function(e,n){n||"object"!=typeof e||(n=e,e=void 0);var o=(n=t.extend({},r.absoluteUrl.defaultOptions,n||{})).rootUrl;if(!o)throw new Error("Must pass options.rootUrl or set ROOT_URL in the server environment");return/^http[s]?:\/\//i.test(o)||(o="http://"+o),/\/$/.test(o)||(o+="/"),e&&(o+=e),n.secure&&/^http:/.test(o)&&!/http:\/\/localhost[:\/]/.test(o)&&!/http:\/\/127\.0\.0\.1[:\/]/.test(o)&&(o=o.replace(/^http:/,"https:")),n.replaceLocalhost&&(o=o.replace(/^http:\/\/localhost([:\/].*)/,"http://127.0.0.1$1")),o},r.absoluteUrl.defaultOptions={},"object"==typeof __meteor_runtime_config__&&__meteor_runtime_config__.ROOT_URL&&(r.absoluteUrl.defaultOptions.rootUrl=__meteor_runtime_config__.ROOT_URL),r._relativeToSiteRootUrl=function(t){return"object"==typeof __meteor_runtime_config__&&"/"===t.substr(0,1)&&(t=(__meteor_runtime_config__.ROOT_URL_PATH_PREFIX||"")+t),t}}.call(this),"undefined"==typeof Package&&(Package={}),function(t,e){for(var n in e)n in t||(t[n]=e[n])}(Package.meteor={},{Meteor:r,global:e,meteorEnv:n})}();

!function(){"undefined"==typeof Package&&(Package={}),Package["meteor-base"]={}}();

!function(){"undefined"==typeof Package&&(Package={}),Package["mobile-experience"]={}}();

!function(){"undefined"==typeof Package&&(Package={}),Package["babel-compiler"]={}}();

!function(){"undefined"==typeof Package&&(Package={}),Package.ecmascript={}}();

!function(){var r=Package.meteor.Meteor,n=Package.meteor.global,e=Package.meteor.meteorEnv,a;(function(){for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={},e=0;e<r.length;e++)n[r.charAt(e)]=e;(a={}).encode=function(r){if("string"==typeof r){var n=r;r=a.newBinary(n.length);for(var e=0;e<n.length;e++){var l=n.charCodeAt(e);if(l>255)throw new Error("Not ascii. Base64.encode can only take ascii strings.");r[e]=l}}for(var u=[],i=null,o=null,c=null,f=null,e=0;e<r.length;e++)switch(e%3){case 0:i=r[e]>>2&63,o=(3&r[e])<<4;break;case 1:o|=r[e]>>4&15,c=(15&r[e])<<2;break;case 2:c|=r[e]>>6&3,f=63&r[e],u.push(t(i)),u.push(t(o)),u.push(t(c)),u.push(t(f)),i=null,o=null,c=null,f=null;break}return null!=i&&(u.push(t(i)),u.push(t(o)),null==c?u.push("="):u.push(t(c)),null==f&&u.push("=")),u.join("")};var t=function(n){return r.charAt(n)},l=function(r){return"="===r?-1:n[r]};a.newBinary=function(r){if("undefined"==typeof Uint8Array||"undefined"==typeof ArrayBuffer){for(var n=[],e=0;e<r;e++)n.push(0);return n.$Uint8ArrayPolyfill=!0,n}return new Uint8Array(new ArrayBuffer(r))},a.decode=function(r){var n=Math.floor(3*r.length/4);"="==r.charAt(r.length-1)&&(n--,"="==r.charAt(r.length-2)&&n--);for(var e=a.newBinary(n),t=null,u=null,i=null,o=0,c=0;c<r.length;c++){var f=r.charAt(c),s=l(f);switch(c%4){case 0:if(s<0)throw new Error("invalid base64 string");t=s<<2;break;case 1:if(s<0)throw new Error("invalid base64 string");t|=s>>4,e[o++]=t,u=(15&s)<<4;break;case 2:s>=0&&(u|=s>>2,e[o++]=u,i=(3&s)<<6);break;case 3:s>=0&&(e[o++]=i|s);break}}return e}}).call(this),"undefined"==typeof Package&&(Package={}),function(r,n){for(var e in n)e in r||(r[e]=n[e])}(Package.base64={},{Base64:a})}();

!function(){var n=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package.underscore._,a=Package.base64.Base64,u,i;(function(){i={};var e={};(u={}).addType=function(n,t){if(r.has(e,n))throw new Error("Type "+n+" already present");e[n]=t};var t=function(n){return r.isNaN(n)||n===1/0||n===-1/0},o=[{matchJSONValue:function(n){return r.has(n,"$date")&&1===r.size(n)},matchObject:function(n){return n instanceof Date},toJSONValue:function(n){return{$date:n.getTime()}},fromJSONValue:function(n){return new Date(n.$date)}},{matchJSONValue:function(n){return r.has(n,"$InfNaN")&&1===r.size(n)},matchObject:t,toJSONValue:function(n){var e;return e=r.isNaN(n)?0:n===1/0?1:-1,{$InfNaN:e}},fromJSONValue:function(n){return n.$InfNaN/0}},{matchJSONValue:function(n){return r.has(n,"$binary")&&1===r.size(n)},matchObject:function(n){return"undefined"!=typeof Uint8Array&&n instanceof Uint8Array||n&&r.has(n,"$Uint8ArrayPolyfill")},toJSONValue:function(n){return{$binary:a.encode(n)}},fromJSONValue:function(n){return a.decode(n.$binary)}},{matchJSONValue:function(n){return r.has(n,"$escape")&&1===r.size(n)},matchObject:function(n){return!(r.isEmpty(n)||r.size(n)>2)&&r.any(o,function(e){return e.matchJSONValue(n)})},toJSONValue:function(n){var e={};return r.each(n,function(n,t){e[t]=u.toJSONValue(n)}),{$escape:e}},fromJSONValue:function(n){var e={};return r.each(n.$escape,function(n,t){e[t]=u.fromJSONValue(n)}),e}},{matchJSONValue:function(n){return r.has(n,"$type")&&r.has(n,"$value")&&2===r.size(n)},matchObject:function(n){return u._isCustomType(n)},toJSONValue:function(e){var t=n._noYieldsAllowed(function(){return e.toJSONValue()});return{$type:e.typeName(),$value:t}},fromJSONValue:function(t){var a=t.$type;if(!r.has(e,a))throw new Error("Custom EJSON type "+a+" is not defined");var u=e[a];return n._noYieldsAllowed(function(){return u(t.$value)})}}];u._isCustomType=function(n){return n&&"function"==typeof n.toJSONValue&&"function"==typeof n.typeName&&r.has(e,n.typeName())},u._getTypes=function(){return e},u._getConverters=function(){return o};var f=u._adjustTypesToJSONValue=function(n){if(null===n)return null;var e=c(n);return void 0!==e?e:"object"!=typeof n?n:(r.each(n,function(e,r){if("object"==typeof e||void 0===e||t(e)){var a=c(e);a?n[r]=a:f(e)}}),n)},c=function(n){for(var e=0;e<o.length;e++){var t=o[e];if(t.matchObject(n))return t.toJSONValue(n)}};u.toJSONValue=function(n){var e=c(n);return void 0!==e?e:("object"==typeof n&&(n=u.clone(n),f(n)),n)};var l=u._adjustTypesFromJSONValue=function(n){if(null===n)return null;var e=s(n);return e!==n?e:"object"!=typeof n?n:(r.each(n,function(e,t){if("object"==typeof e){var r=s(e);if(e!==r)return void(n[t]=r);l(e)}}),n)},s=function(n){if("object"==typeof n&&null!==n&&r.size(n)<=2&&r.all(n,function(n,e){return"string"==typeof e&&"$"===e.substr(0,1)}))for(var e=0;e<o.length;e++){var t=o[e];if(t.matchJSONValue(n))return t.fromJSONValue(n)}return n};u.fromJSONValue=function(n){var e=s(n);return e===n&&"object"==typeof n?(n=u.clone(n),l(n),n):e},u.stringify=function(n,e){var t=u.toJSONValue(n);return e&&(e.canonical||e.indent)?u._canonicalStringify(t,e):JSON.stringify(t)},u.parse=function(n){if("string"!=typeof n)throw new Error("EJSON.parse argument should be a string");return u.fromJSONValue(JSON.parse(n))},u.isBinary=function(n){return!!("undefined"!=typeof Uint8Array&&n instanceof Uint8Array||n&&n.$Uint8ArrayPolyfill)},u.equals=function(n,e,t){var a,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"!=typeof n||"object"!=typeof e)return!1;if(n instanceof Date&&e instanceof Date)return n.valueOf()===e.valueOf();if(u.isBinary(n)&&u.isBinary(e)){if(n.length!==e.length)return!1;for(a=0;a<n.length;a++)if(n[a]!==e[a])return!1;return!0}if("function"==typeof n.equals)return n.equals(e,t);if("function"==typeof e.equals)return e.equals(n,t);if(n instanceof Array){if(!(e instanceof Array))return!1;if(n.length!==e.length)return!1;for(a=0;a<n.length;a++)if(!u.equals(n[a],e[a],t))return!1;return!0}switch(u._isCustomType(n)+u._isCustomType(e)){case 1:return!1;case 2:return u.equals(u.toJSONValue(n),u.toJSONValue(e))}var o;if(i){var f=[];return r.each(e,function(n,e){f.push(e)}),a=0,(o=r.all(n,function(n,r){return!(a>=f.length)&&(r===f[a]&&(!!u.equals(n,e[f[a]],t)&&(a++,!0)))}))&&a===f.length}return a=0,(o=r.all(n,function(n,i){return!!r.has(e,i)&&(!!u.equals(n,e[i],t)&&(a++,!0))}))&&r.size(e)===a},u.clone=function(n){var e;if("object"!=typeof n)return n;if(null===n)return null;if(n instanceof Date)return new Date(n.getTime());if(n instanceof RegExp)return n;if(u.isBinary(n)){e=u.newBinary(n.length);for(var t=0;t<n.length;t++)e[t]=n[t];return e}if(r.isArray(n)||r.isArguments(n)){for(e=[],t=0;t<n.length;t++)e[t]=u.clone(n[t]);return e}return"function"==typeof n.clone?n.clone():u._isCustomType(n)?u.fromJSONValue(u.clone(u.toJSONValue(n)),!0):(e={},r.each(n,function(n,t){e[t]=u.clone(n)}),e)},u.newBinary=a.newBinary}).call(this),function(){function n(n){return JSON.stringify(n)}var e=function(t,a,u,i,o){var f,c,l,s,y=i,h,N=a[t];switch(typeof N){case"string":return n(N);case"number":return isFinite(N)?String(N):"null";case"boolean":return String(N);case"object":if(!N)return"null";if(y=i+u,h=[],r.isArray(N)||r.isArguments(N)){for(s=N.length,f=0;f<s;f+=1)h[f]=e(f,N,u,y,o)||"null";return l=0===h.length?"[]":y?"[\n"+y+h.join(",\n"+y)+"\n"+i+"]":"["+h.join(",")+"]"}var p=r.keys(N);return o&&(p=p.sort()),r.each(p,function(t){(l=e(t,N,u,y,o))&&h.push(n(t)+(y?": ":":")+l)}),l=0===h.length?"{}":y?"{\n"+y+h.join(",\n"+y)+"\n"+i+"}":"{"+h.join(",")+"}"}};u._canonicalStringify=function(n,t){if(!0===(t=r.extend({indent:"",canonical:!1},t)).indent)t.indent=" ";else if("number"==typeof t.indent){for(var a="",u=0;u<t.indent;u++)a+=" ";t.indent=a}return e("",{"":n},t.indent,"",t.canonical)}}.call(this),"undefined"==typeof Package&&(Package={}),function(n,e){for(var t in e)t in n||(n[t]=e[t])}(Package.ejson={},{EJSON:u,EJSONTest:i})}();

!function(){var i=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,e=Package.ejson.EJSON,r;(function(){r=function(i,t){var n=this;n._map={},n._idStringify=i||JSON.stringify,n._idParse=t||JSON.parse},a.extend(r.prototype,{get:function(i){var t=this,n=t._idStringify(i);return t._map[n]},set:function(i,t){var n=this,a=n._idStringify(i);n._map[a]=t},remove:function(i){var t=this,n=t._idStringify(i);delete t._map[n]},has:function(i){var t=this,n=t._idStringify(i);return a.has(t._map,n)},empty:function(){var i=this;return a.isEmpty(i._map)},clear:function(){this._map={}},forEach:function(i){for(var t=this,n=a.keys(t._map),e=0;e<n.length;e++)if(!1===i.call(null,t._map[n[e]],t._idParse(n[e])))return},size:function(){var i=this;return a.size(i._map)},setDefault:function(i,t){var n=this,e=n._idStringify(i);return a.has(n._map,e)?n._map[e]:(n._map[e]=t,t)},clone:function(){var i=this,t=new r(i._idStringify,i._idParse);return i.forEach(function(i,n){t.set(n,e.clone(i))}),t}})}).call(this),"undefined"==typeof Package&&(Package={}),function(i,t){for(var n in t)n in i||(i[n]=t[n])}(Package["id-map"]={},{IdMap:r})}();

!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.underscore._,i;(function(){var t=function(t,e,r,n){return{key:t,value:e,next:r,prev:n}};i=function(){var t=this;t._dict={},t._first=null,t._last=null,t._size=0;var e=n.toArray(arguments);t._stringify=function(t){return t},"function"==typeof e[0]&&(t._stringify=e.shift()),n.each(e,function(e){t.putBefore(e[0],e[1],null)})},n.extend(i.prototype,{_k:function(t){return" "+this._stringify(t)},empty:function(){return!this._first},size:function(){return this._size},_linkEltIn:function(t){var e=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){var e=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){var i=this;if(i._dict[i._k(e)])throw new Error("Item "+e+" already present in OrderedDict");var o=n?t(e,r,i._dict[i._k(n)]):t(e,r,null);if(void 0===o.next)throw new Error("could not find item to put this one before");i._linkEltIn(o),i._dict[i._k(e)]=o,i._size++},append:function(t,e){this.putBefore(t,e,null)},remove:function(t){var e=this,r=e._dict[e._k(t)];if(void 0===r)throw new Error("Item "+t+" not present in OrderedDict");return e._linkEltOut(r),e._size--,delete e._dict[e._k(t)],r.value},get:function(t){var e=this;if(e.has(t))return e._dict[e._k(t)].value},has:function(t){var e=this;return n.has(e._dict,e._k(t))},forEach:function(t){for(var e=0,r=this._first;null!==r;){if(t(r.value,r.key,e)===i.BREAK)return;r=r.next,e++}},first:function(){var t=this;if(!t.empty())return t._first.key},firstValue:function(){var t=this;if(!t.empty())return t._first.value},last:function(){var t=this;if(!t.empty())return t._last.key},lastValue:function(){var t=this;if(!t.empty())return t._last.value},prev:function(t){var e=this;if(e.has(t)){var r=e._dict[e._k(t)];if(r.prev)return r.prev.key}return null},next:function(t){var e=this;if(e.has(t)){var r=e._dict[e._k(t)];if(r.next)return r.next.key}return null},moveBefore:function(t,e){var r=this,n=r._dict[r._k(t)],i=e?r._dict[r._k(e)]:null;if(void 0===n)throw new Error("Item to move is not present");if(void 0===i)throw new Error("Could not find element to move this one before");i!==n.next&&(r._linkEltOut(n),n.next=i,r._linkEltIn(n))},indexOf:function(t){var e=this,r=null;return e.forEach(function(n,o,f){if(e._k(o)===e._k(t))return r=f,i.BREAK}),r},_checkRep:function(){var t=this;n.each(t._dict,function(t,e){if(e.next===e)throw new Error("Next is a loop");if(e.prev===e)throw new Error("Prev is a loop")})}}),i.BREAK={break:!0}}).call(this),"undefined"==typeof Package&&(Package={}),function(t,e){for(var r in e)r in t||(t[r]=e[r])}(Package["ordered-dict"]={},{OrderedDict:i})}();

!function(){var n=Package.meteor.Meteor,t=Package.meteor.global,o=Package.meteor.meteorEnv,e,r;(function(){(e={}).active=!1,e.currentComputation=null;var t=function(n){e.currentComputation=n,e.active=!!n},o=function(){return void 0!==n?n._debug:"undefined"!=typeof console&&console.error?function(){console.error.apply(console,arguments)}:function(){}},r=function(t){void 0!==n&&n._suppressed_log_expected()&&n._suppress_log(t-1)},i=function(n,t){if(l)throw t;var e=["Exception from Tracker "+n+" function:"];if(t.stack&&t.message&&t.name){var i=t.stack.indexOf(t.message);if(i<0||i>t.name.length+2){var a=t.name+": "+t.message;e.push(a)}}e.push(t.stack),r(e.length);for(var u=0;u<e.length;u++)o()(e[u])},a=function(t){return void 0===n||n.isClient?t:function(){var o=arguments;n._noYieldsAllowed(function(){t.apply(null,o)})}},u=1,c=[],s=!1,p=!1,f=!1,l=!1,d=[],h=function(){s||(void 0!==n?n._setImmediate(e._runFlush):setTimeout(e._runFlush,0),s=!0)},v=!1;e.Computation=function(n,t,o){if(!v)throw new Error("Tracker.Computation constructor is private; use Tracker.autorun");v=!1;var e=this;e.stopped=!1,e.invalidated=!1,e.firstRun=!0,e._id=u++,e._onInvalidateCallbacks=[],e._onStopCallbacks=[],e._parent=t,e._func=n,e._onError=o,e._recomputing=!1;var r=!0;try{e._compute(),r=!1}finally{e.firstRun=!1,r&&e.stop()}},e.Computation.prototype.onInvalidate=function(n){var t=this;if("function"!=typeof n)throw new Error("onInvalidate requires a function");t.invalidated?e.nonreactive(function(){a(n)(t)}):t._onInvalidateCallbacks.push(n)},e.Computation.prototype.onStop=function(n){var t=this;if("function"!=typeof n)throw new Error("onStop requires a function");t.stopped?e.nonreactive(function(){a(n)(t)}):t._onStopCallbacks.push(n)},e.Computation.prototype.invalidate=function(){var n=this;if(!n.invalidated){n._recomputing||n.stopped||(h(),c.push(this)),n.invalidated=!0;for(var t=0,o;o=n._onInvalidateCallbacks[t];t++)e.nonreactive(function(){a(o)(n)});n._onInvalidateCallbacks=[]}},e.Computation.prototype.stop=function(){var n=this;if(!n.stopped){n.stopped=!0,n.invalidate();for(var t=0,o;o=n._onStopCallbacks[t];t++)e.nonreactive(function(){a(o)(n)});n._onStopCallbacks=[]}},e.Computation.prototype._compute=function(){var n=this;n.invalidated=!1;var o=e.currentComputation;t(n);var r=f;f=!0;try{a(n._func)(n)}finally{t(o),f=r}},e.Computation.prototype._needsRecompute=function(){var n=this;return n.invalidated&&!n.stopped},e.Computation.prototype._recompute=function(){var n=this;n._recomputing=!0;try{if(n._needsRecompute())try{n._compute()}catch(t){n._onError?n._onError(t):i("recompute",t)}}finally{n._recomputing=!1}},e.Computation.prototype.flush=function(){var n=this;n._recomputing||n._recompute()},e.Computation.prototype.run=function(){var n=this;n.invalidate(),n.flush()},e.Dependency=function(){this._dependentsById={}},e.Dependency.prototype.depend=function(n){if(!n){if(!e.active)return!1;n=e.currentComputation}var t=this,o=n._id;return!(o in t._dependentsById)&&(t._dependentsById[o]=n,n.onInvalidate(function(){delete t._dependentsById[o]}),!0)},e.Dependency.prototype.changed=function(){var n=this;for(var t in n._dependentsById)n._dependentsById[t].invalidate()},e.Dependency.prototype.hasDependents=function(){var n=this;for(var t in n._dependentsById)return!0;return!1},e.flush=function(n){e._runFlush({finishSynchronously:!0,throwFirstError:n&&n._throwFirstError})},e.inFlush=function(){return p},e._runFlush=function(n){if(e.inFlush())throw new Error("Can't call Tracker.flush while flushing");if(f)throw new Error("Can't flush inside Tracker.autorun");p=!0,s=!0,l=!!(n=n||{}).throwFirstError;var t=0,o=!1;try{for(;c.length||d.length;){for(;c.length;){var r=c.shift();if(r._recompute(),r._needsRecompute()&&c.unshift(r),!n.finishSynchronously&&++t>1e3)return void(o=!0)}if(d.length){var a=d.shift();try{a()}catch(n){i("afterFlush",n)}}}o=!0}finally{if(o||(p=!1,e._runFlush({finishSynchronously:n.finishSynchronously,throwFirstError:!1})),s=!1,p=!1,c.length||d.length){if(n.finishSynchronously)throw new Error("still have more to do?");setTimeout(h,10)}}},e.autorun=function(n,t){if("function"!=typeof n)throw new Error("Tracker.autorun requires a function argument");t=t||{},v=!0;var o=new e.Computation(n,e.currentComputation,t.onError);return e.active&&e.onInvalidate(function(){o.stop()}),o},e.nonreactive=function(n){var o=e.currentComputation;t(null);try{return n()}finally{t(o)}},e.onInvalidate=function(n){if(!e.active)throw new Error("Tracker.onInvalidate requires a currentComputation");e.currentComputation.onInvalidate(n)},e.afterFlush=function(n){d.push(n),h()}}).call(this),function(){n.flush=e.flush,n.autorun=e.autorun,n.autosubscribe=e.autorun,e.depend=function(n){return n.depend()},r=e}.call(this),"undefined"==typeof Package&&(Package={}),function(n,t){for(var o in t)o in n||(n[o]=t[o])}(Package.tracker={},{Tracker:e,Deps:r})}();

!function(){var n=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,t,o,i;t=function(n){"use strict";function e(n,e){return o(n)&&(p(A,n,e),i(k)&&k(B)),B}function r(n){this.id=n,this.children=[],this.childrenById={}}function t(n,e){return O.call(n,e)&&n[e]}function o(n){return"object"==typeof n&&null!==n}function i(n){return"function"==typeof n}function u(n){return"string"==typeof n}function c(n){return new Error("Cannot find module '"+n+"'")}function s(n){function e(e){var r=w(n,e);if(r)return l(r,n.module);var t=c(e);if(i(E))return E(e,n.module.id,t);throw t}return i(x)&&(e=x(e,n.module)),e.extensions=h(n).slice(0),e.resolve=function(e){var r=w(n,e);if(r)return r.module.id;var t=c(e);if(E&&i(E.resolve))return E.resolve(e,n.module.id,t);throw t},e}function f(n,e){var t=this;t.parent=e=e||null,t.module=new r(n),q[n]=t,t.contents=null,t.deps={}}function l(n,e){var r=n.module;if(!O.call(r,"exports")){var t=n.contents;if(!t){if(n.stub)return n.stub;throw c(r.id)}if(e){r.parent=e;var o=e.children;Array.isArray(o)&&o.push(r)}i(r.useNode)&&r.useNode()||t(r.require=r.require||s(n),r.exports=n.stub||{},r,n.module.id,n.parent.module.id),r.loaded=!0}var u=r.runSetters||r.runModuleSetters;return i(u)&&u.call(r),r.exports}function a(n){return n&&o(n.contents)}function d(n){return n&&null===n.contents}function p(n,e,r){Array.isArray(e)?(e.forEach(function(r){u(r)?n.deps[r]=n.module.id:i(r)?e=r:o(r)&&(n.stub=n.stub||{},v(r,function(e,r){n.stub[r]=e}))}),i(e)||(e=null)):i(e)||u(e)||o(e)||(e=null),e&&(n.contents=n.contents||(o(e)?{}:e),o(e)&&a(n)&&v(e,function(e,o){if(".."===o)i=n.parent;else{var i=t(n.contents,o);i||((i=n.contents[o]=new f(n.module.id.replace(/\/*$/,"/")+o,n)).options=r)}p(i,e,r)}))}function v(n,e,r){Object.keys(n).forEach(function(r){e.call(this,n[r],r)},r)}function h(n){return n.options&&n.options.extensions||P}function m(n,e,r){for(;n&&!a(n);)n=n.parent;if(!n||!e||"."===e)return n;if(".."===e)return n.parent;var o=t(n.contents,e);if(r&&(!o||a(o)))for(var i=0;i<r.length;++i){var u=t(n.contents,e+r[i]);if(u&&!a(u))return u}return o}function y(n,e,r){var t=e.split("/");return t.every(function(e,o){return n=o<t.length-1?m(n,e):m(n,e,r)}),n}function b(n,e){var r=e&&e.module;n&&r&&(n.childrenById[r.id]=r)}function w(n,e,r,t){var r=r||n.module,o=h(n);for(n="/"===e.charAt(0)?y(A,e,o):"."===e.charAt(0)?y(n,e,o):g(n,e,o);a(n);){if((t=t||[]).indexOf(n)<0){t.push(n);var i=m(n,"package.json"),c,s=i&&l(i,r);if(s&&I.some(function(n){return u(c=s[n])})&&(b(r,i),n=y(n,c,o)||w(n,c,r,t)))continue}n=m(n,"index.js")}return n&&u(n.contents)&&(n=w(n,n.contents,r,t)),b(r,n),n}function g(n,e,r){if(i(j)&&(e=j(e,n.module.id)),u(e)){for(var t;n&&!t;n=n.parent)t=a(n)&&y(n,"node_modules/"+e,r);return t}}var P=(n=n||{}).extensions||[".js",".json"],k=n.onInstall,x=n.wrapRequire,j=n.override,E=n.fallback,I=n.mainFields||(n.browser?["browser","main"]:["main"]),O={}.hasOwnProperty,q={},A=new f("/",new f("/..")),B=s(A);e.fetch=function(n){throw new Error("fetch not implemented")},r.prototype.resolve=function(n){return this.require.resolve(n)};var M,R;return r.prototype.prefetch=function(n){function r(n){var e=t(q,n.id);d(e)&&!e.pending&&(e.pending=!0,(u=u||{})[n.id]={module:e.module,deps:Object.keys(e.deps),options:e.options,stub:e.stub},v(e.deps,function(n,r){w(e,r)}),v(n.childrenById,r))}var o=this,i=t(q,o.id),u;M=M||Promise.resolve();var c=R=R||M;return R=M.then(function(){var t=o.resolve(n);return v(o.childrenById,r),Promise.resolve(u&&e.fetch(u)).then(function(n){function r(){return n&&e(n),t}return c.then(r,r)})})},e.Module=r,e},"object"==typeof exports&&(exports.makeInstaller=t),function(){o={},"function"==typeof Profile&&process.env.METEOR_PROFILE&&(o.wrapRequire=function(n){return Profile(function(n){return"require("+JSON.stringify(n)+")"},n)})}.call(this),function(){o.browser=!0,i=t(o)}.call(this),"undefined"==typeof Package&&(Package={}),function(n,e){for(var r in e)r in n||(n[r]=e[r])}(Package["modules-runtime"]={},{meteorInstall:i})}();

!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package["modules-runtime"].meteorInstall,o,i=n({node_modules:{meteor:{modules:{"client.js":function(t,e){t("./install-packages.js"),t("./stubs.js"),t("./process.js"),t("./reify.js"),e.addStyles=t("./css").addStyles},"css.js":function(t,e){var r=document,n=r.getElementsByTagName("head").item(0);e.addStyles=function(t){var e=r.createElement("style");e.setAttribute("type","text/css");var o=e.sheet||e.styleSheet;return o?o.cssText=t:e.appendChild(r.createTextNode(t)),n.appendChild(e)}},"install-packages.js":function(t,e,r){function o(t,e){var r={};r[t+".js"]="string"==typeof e?e:function(e,r,n){n.exports=Package[t]},n({node_modules:{meteor:r}})}o("underscore"),o("meteor"),o("meteor-base"),o("mobile-experience"),o("babel-compiler"),o("ecmascript"),o("base64"),o("ejson"),o("id-map"),o("ordered-dict"),o("tracker"),o("modules-runtime"),o("modules","meteor/modules/client.js"),o("ecmascript-runtime"),o("es5-shim","meteor/es5-shim/client.js"),o("promise","meteor/promise/client.js"),o("babel-runtime","meteor/babel-runtime/babel-runtime.js"),o("ecmascript-runtime-client","meteor/ecmascript-runtime-client/runtime.js"),o("random"),o("mongo-id"),o("diff-sequence"),o("geojson-utils","meteor/geojson-utils/main.js"),o("minimongo"),o("check","meteor/check/match.js"),o("retry"),o("ddp-common"),o("reload"),o("ddp-client","meteor/ddp-client/namespace.js"),o("ddp"),o("ddp-server"),o("allow-deny"),o("insecure"),o("mongo"),o("blaze-html-templates"),o("reactive-var"),o("standard-minifier-css"),o("standard-minifier-js"),o("shell-server"),o("autopublish"),o("deps"),o("jquery","meteor/jquery/main.js"),o("observe-sequence"),o("htmljs"),o("blaze"),o("ui"),o("spacebars"),o("templating-compiler"),o("templating-runtime"),o("templating"),o("iron:core"),o("iron:dynamic-template"),o("iron:layout"),o("iron:url"),o("iron:middleware-stack"),o("iron:location"),o("reactive-dict"),o("iron:controller"),o("iron:router"),o("session"),o("url"),o("http"),o("webapp"),o("livedata"),o("dynamic-import","meteor/dynamic-import/client.js"),o("hot-code-push"),o("launch-screen"),o("autoupdate")},"process.js":function(i,s,c){try{o=e.process||i("process")}catch(t){o={}}t.isServer?n({node_modules:{"process.js":function(t,e,r){r.exports=o}}}):(o.platform="browser",o.nextTick=o.nextTick||t._setImmediate),"object"!=typeof o.env&&(o.env={});var u=Object.prototype.hasOwnProperty;for(var a in r)u.call(r,a)&&(o.env[a]=r[a])},"reify.js":function(t,e,r){var n=r.constructor.prototype;t("reify/lib/runtime").enable(n),n.importSync=n.importSync||n.import,n.import=n.import||n.importSync},"stubs.js":function(t){var e=!1;try{t.resolve("meteor-node-stubs"),e=!0}catch(t){}e&&t("meteor-node-stubs")},node_modules:{reify:{lib:{runtime:{"index.js":function(t,e,r){"use strict";function n(t,e,r){a.setESModule(this.exports),f.getOrCreate(this.exports,this),a.isObject(e)&&f.getOrCreate(t).addSetters(this,e,r)}function o(t,e,r){return this.watch(this.require(t),e,r)}function i(t,e){a.setESModule(this.exports);var r=f.getOrCreate(this.exports,this);r.addGetters(t,e),this.loaded&&r.runSetters()}function s(t){return this.export({default:function(){return t}},!0)}function c(t){var e=f.get(this.exports);return null!==e&&e.runSetters(),this.loaded&&f.getOrCreate(this.exports,this),t}function u(){var t=this;return function(e){a.assign(t.exports,e)}}var a=t("./utils.js"),f=t("./entry.js");e.enable=function(t){return("function"!=typeof t.export||"function"!=typeof t.importSync)&&(t.export=i,t.exportDefault=s,t.runSetters=c,t.watch=n,t.makeNsSetter=u,t.runModuleSetters=c,t.importSync=o,!0)}},"utils.js":function(t,e,r){"use strict";function n(t,e,r){if(d){var n=Object.getOwnPropertyDescriptor(r,t);n.configurable=!0,Object.defineProperty(e,t,n)}else e[t]=r[t]}function o(t){if(c(t)){if(l&&y.call(t,_))return!!t[_];if(y.call(t,p))return!!t[p]}return!1}function i(t){c(t)&&(l?t[_]=!0:t[p]||Object.defineProperty(t,p,{configurable:!0,enumerable:!1,value:!0,writable:!1}))}function s(t){return"object"==typeof t&&null!==t}function c(t){var e=typeof t;return"function"===e||"object"===e&&null!==t}function u(){var t=Object.create(null);return h&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module",configurable:!1,enumerable:!1,writable:!1}),i(t),t}function a(t,e){return f?Object.setPrototypeOf(t,e):t.__proto__=e,t}var f="function"==typeof Object.setPrototypeOf,l="function"==typeof Symbol,p="__esModule",_=l?Symbol.for(p):null,h=l&&"symbol"==typeof Symbol.toStringTag,d="function"==typeof Object.getOwnPropertyDescriptor,y=Object.prototype.hasOwnProperty;e.assign=function(t){for(var e=arguments.length,r=Object.create(null),o=0;o<e;++o){var i=arguments[o];c(i)&&Object.keys(i).forEach(function(t){r[t]=i})}return Object.keys(r).forEach(function(e){n(e,t,r[e])}),t},e.copyKey=n,e.valueOrGetter=function(t,e){if(d&&y.call(t,e)){var r=Object.getOwnPropertyDescriptor(t,e);if("function"==typeof r.get)return r.get}return t[e]},e.getESModule=o,e.setESModule=i,e.isObject=s,e.isObjectLike=c,e.createNamespace=u,e.setPrototypeOf=a},"entry.js":function(t,e,r){"use strict";function n(t){this.exports=t,this.getters=Object.create(null),this.setters=Object.create(null),this.namespace=p.createNamespace(),this.ownerModules=Object.create(null),this._loaded=!1}function o(t){if(!p.isObjectLike(t))return new n(t);if(void 0!==(e=b.get(t)))return e;var e=new n(t);return b.set(t,e),e}function i(t){var e=Object.keys(t),r=e.indexOf("__esModule");return r>=0&&e.splice(r,1),e}function s(t,e){var r=!1;p.getESModule(t.exports)||(t.namespace.default=t.exports,r=!0),p.isObjectLike(t.exports)&&((void 0===e||e.indexOf("*")>=0)&&(e=Object.keys(t.exports)),e.forEach(function(e){y.call(t.getters,e)||r&&"default"===e||!y.call(t.exports,e)||p.copyKey(e,t.namespace,t.exports)}))}function c(t,e,r,n){function o(e,r){var n=r;return n!==n?n=h:void 0===n&&(n=d),t.last[e]!==n&&(t.last[e]=n,!0)}if("__esModule"!==e){var s=!1;if(void 0===t.last&&(t.last=Object.create(null),s=!0),"*"===e)for(var c=i(r),u=c.length,a=0;a<u;++a){var f=c[a];o(f,p.valueOrGetter(r,f))&&(s=!0)}else o(e,r)&&(s=!0);return s?n(t,e,r):void 0}}function u(t,e,r){var n=!0;void 0===e&&(e=Object.keys(t.setters),n=!1);for(var o=e.length,i=0;i<o;++i){var s=e[i];if(!n||y.call(t.setters,s))for(var u=t.setters[s],f=Object.keys(u),l=f.length,p=0;p<l;++p){var _=f[p],h=a(t,s);c(u[_],s,h,r);var d=t.getters[s];"function"==typeof d&&d.runCount>0&&d.constant&&delete u[_]}}}function a(t,e){if("*"===e)return t.namespace;if(y.call(t.namespace,e))return t.namespace[e];var r=t.exports;if("default"===e&&!(p.getESModule(r)&&"default"in r))return r;if(null!=r)return r[e]}function f(){return Math.random().toString(36).replace("0.",++v+"$")}function l(t,e){var r=t.getters[e];try{var n=r();return++r.runCount,n}catch(t){}return _}var p=t("./utils.js"),_={},h={},d={},y=Object.prototype.hasOwnProperty,v=0,j=p.setPrototypeOf(n.prototype,null),b="function"==typeof WeakMap?new WeakMap:new function t(){var e=[],r=[];this.get=function(t){var n=e.indexOf(t);if(n>=0)return r[n]},this.set=function(t,n){var o=e.indexOf(t);o>=0?r[o]=n:(e.push(t),r.push(n))}};n.get=function(t){if(p.isObjectLike(t)){var e=b.get(t);if(void 0!==e)return e}return null},n.getOrCreate=function(t,e){var r=o(t);return p.isObject(e)&&(r.ownerModules[e.id]=e),r},j.addGetters=function(t,e){var r=i(t),n=r.length;e=!!e;for(var o=0;o<n;++o){var s=r[o],c=t[s];"function"!=typeof c||s in this.getters||(this.getters[s]=c,c.constant=e,c.runCount=0)}},j.addSetters=function(t,e,r){var n=i(e),o=n.length;if(o){r=void 0===r?f():t.id+":"+r;for(var s=0;s<o;++s){var c=n[s],u=e[c];"function"==typeof u&&(u.parent=t,c in this.setters||(this.setters[c]=Object.create(null)),this.setters[c][r]=u)}this.runSetters(n)}},j.runGetters=function(t){s(this,t),(void 0===t||t.indexOf("*")>=0)&&(t=Object.keys(this.getters));for(var e=t.length,r=0;r<e;++r){var n=t[r],o=l(this,n);o!==_&&(this.namespace[n]=o,this.exports[n]=o)}},j.hasLoaded=function(){if(this._loaded)return!0;for(var t=Object.keys(this.ownerModules),e=t.length,r=0;r<e;++r){var n=this.ownerModules[t[r]];if(!n.loaded&&n.exports===this.exports)return!1}return this._loaded=!0},j.runSetters=function(t){this.runGetters(t);var e;if(u(this,t,function(t,r,n){void 0===e&&(e=Object.create(null)),e[t.parent.id]=t.parent,t(n,r)}),e)for(var r=Object.keys(e),o=r.length,i=0;i<o;++i){var s=e[r[i]],c=n.get(s.exports);c&&c.runSetters()}},r.exports=n}}}}}}},"meteor-node-stubs":{"package.json":function(t,e){e.name="meteor-node-stubs",e.version="0.2.11",e.main="index.js"},"index.js":function(t,e,r){var o=t("./map.json"),i={};Object.keys(o).forEach(function(t){if("string"==typeof o[t]){var n=r.id.split("/");n.pop(),n.push("node_modules",o[t]),e[t]=i[t+".js"]=n.join("/")}else e[t]=o[t],i[t+".js"]=function(){}}),"function"==typeof n&&n({"..":{node_modules:i}})},"map.json":function(t,e,r){r.exports={assert:"assert/",buffer:"buffer/",child_process:null,cluster:null,console:"console-browserify",constants:"constants-browserify",crypto:"../wrappers/crypto.js",dgram:null,dns:null,domain:"domain-browser",events:"events/",fs:null,http:"http-browserify",https:"https-browserify",module:"../wrappers/module.js",net:null,os:"os-browserify/browser.js",path:"path-browserify",process:"process/browser.js",punycode:"punycode/",querystring:"querystring-es3/",readline:null,repl:null,stream:"stream-browserify",_stream_duplex:"readable-stream/duplex.js",_stream_passthrough:"readable-stream/passthrough.js",_stream_readable:"readable-stream/readable.js",_stream_transform:"readable-stream/transform.js",_stream_writable:"readable-stream/writable.js",string_decoder:"string_decoder/",sys:"util/util.js",timers:"timers-browserify",tls:null,tty:"tty-browserify",url:"url/",util:"util/util.js",vm:"vm-browserify",zlib:"browserify-zlib"}},deps:{"process.js":function(t){t("process/browser.js")},"domain.js":function(t){t("domain-browser")}},node_modules:{process:{"browser.js":function(t,e,r){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(t){if(p===setTimeout)return setTimeout(t,0);if((p===n||!p)&&setTimeout)return p=setTimeout,setTimeout(t,0);try{return p(t,0)}catch(e){try{return p.call(null,t,0)}catch(e){return p.call(this,t,0)}}}function s(t){if(_===clearTimeout)return clearTimeout(t);if((_===o||!_)&&clearTimeout)return _=clearTimeout,clearTimeout(t);try{return _(t)}catch(e){try{return _.call(null,t)}catch(e){return _.call(this,t)}}}function c(){d&&y&&(d=!1,y.length?h=y.concat(h):v=-1,h.length&&u())}function u(){if(!d){var t=i(c);d=!0;for(var e=h.length;e;){for(y=h,h=[];++v<e;)y&&y[v].run();v=-1,e=h.length}y=null,d=!1,s(t)}}function a(t,e){this.fun=t,this.array=e}function f(){}var l=r.exports={},p,_;!function(){try{p="function"==typeof setTimeout?setTimeout:n}catch(t){p=n}try{_="function"==typeof clearTimeout?clearTimeout:o}catch(t){_=o}}();var h=[],d=!1,y,v=-1;l.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];h.push(new a(t,e)),1!==h.length||d||i(u)},a.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=f,l.addListener=f,l.once=f,l.off=f,l.removeListener=f,l.removeAllListeners=f,l.emit=f,l.binding=function(t){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(t){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}}},"domain-browser":{"package.json":function(t,e){e.name="domain-browser",e.version="1.1.7",e.main="./index.js"},"index.js":function(t,e,r){"use strict";r.exports=function(){var e=t("events"),r={};return r.createDomain=r.create=function(){function t(t){r.emit("error",t)}var r=new e.EventEmitter;return r.add=function(e){e.on("error",t)},r.remove=function(e){e.removeListener("error",t)},r.bind=function(e){return function(){var r=Array.prototype.slice.call(arguments);try{e.apply(null,r)}catch(e){t(e)}}},r.intercept=function(e){return function(r){if(r)t(r);else{var n=Array.prototype.slice.call(arguments,1);try{e.apply(null,n)}catch(r){t(r)}}}},r.run=function(e){try{e()}catch(e){t(e)}return this},r.dispose=function(){return this.removeAllListeners(),this},r.enter=r.exit=function(){return this},r},r}.call(this)}},events:{"package.json":function(t,e){e.name="events",e.version="1.1.1",e.main="./events.js"},"events.js":function(t,e,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function o(t){return"function"==typeof t}function i(t){return"number"==typeof t}function s(t){return"object"==typeof t&&null!==t}function c(t){return void 0===t}r.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!i(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,r,n,i,u,a;if(this._events||(this._events={}),"error"===t&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var f=new Error('Uncaught, unspecified "error" event. ('+e+")");throw f.context=e,f}if(r=this._events[t],c(r))return!1;if(o(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),r.apply(this,i)}else if(s(r))for(i=Array.prototype.slice.call(arguments,1),n=(a=r.slice()).length,u=0;u<n;u++)a[u].apply(this,i);return!0},n.prototype.addListener=function(t,e){var r;if(!o(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,o(e.listener)?e.listener:e),this._events[t]?s(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,s(this._events[t])&&!this._events[t].warned&&(r=c(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function r(){this.removeListener(t,r),n||(n=!0,e.apply(this,arguments))}if(!o(e))throw TypeError("listener must be a function");var n=!1;return r.listener=e,this.on(t,r),this},n.prototype.removeListener=function(t,e){var r,n,i,c;if(!o(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(r=this._events[t],i=r.length,n=-1,r===e||o(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(s(r)){for(c=i;c-- >0;)if(r[c]===e||r[c].listener&&r[c].listener===e){n=c;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],o(r))this.removeListener(t,r);else if(r)for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?o(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(o(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}}}}},"babel-runtime":{regenerator:{"index.js":function(t,e,r){r.exports=t("regenerator-runtime")}},helpers:{"typeof.js":function(t,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var n=r(t("../core-js/symbol/iterator")),o=r(t("../core-js/symbol")),i="function"==typeof o.default&&"symbol"==typeof n.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};e.default="function"==typeof o.default&&"symbol"===i(n.default)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":i(t)}},"toConsumableArray.js":function(t,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var n=r(t("../core-js/array/from"));e.default=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return(0,n.default)(t)}},"classCallCheck.js":function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},"possibleConstructorReturn.js":function(t,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var n=r(t("../helpers/typeof"));e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,n.default)(e))&&"function"!=typeof e?t:e}},"inherits.js":function(t,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var n=r(t("../core-js/object/set-prototype-of")),o=r(t("../core-js/object/create")),i=r(t("../helpers/typeof"));e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,i.default)(e)));t.prototype=(0,o.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(n.default?(0,n.default)(t,e):t.__proto__=e)}},"slicedToArray.js":function(t,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var n=r(t("../core-js/is-iterable")),o=r(t("../core-js/get-iterator"));e.default=function(){function t(t,e){var r=[],n=!0,i=!1,s=void 0;try{for(var c=(0,o.default)(t),u;!(n=(u=c.next()).done)&&(r.push(u.value),!e||r.length!==e);n=!0);}catch(t){i=!0,s=t}finally{try{!n&&c.return&&c.return()}finally{if(i)throw s}}return r}return function(e,r){if(Array.isArray(e))return e;if((0,n.default)(Object(e)))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()}},"core-js":{symbol:{"iterator.js":function(t,e,r){r.exports={default:t("core-js/library/fn/symbol/iterator"),__esModule:!0}}},"symbol.js":function(t,e,r){r.exports={default:t("core-js/library/fn/symbol"),__esModule:!0}},array:{"from.js":function(t,e,r){r.exports={default:t("core-js/library/fn/array/from"),__esModule:!0}}},object:{"set-prototype-of.js":function(t,e,r){r.exports={default:t("core-js/library/fn/object/set-prototype-of"),__esModule:!0}},"create.js":function(t,e,r){r.exports={default:t("core-js/library/fn/object/create"),__esModule:!0}}},"is-iterable.js":function(t,e,r){r.exports={default:t("core-js/library/fn/is-iterable"),__esModule:!0}},"get-iterator.js":function(t,e,r){r.exports={default:t("core-js/library/fn/get-iterator"),__esModule:!0}}}},"regenerator-runtime":{"package.json":function(t,e,r){e.name="regenerator-runtime",e.version="0.10.5",e.main="runtime-module.js"},"runtime-module.js":function(t,r,n){var o="object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this,i=o.regeneratorRuntime&&Object.getOwnPropertyNames(o).indexOf("regeneratorRuntime")>=0,s=i&&o.regeneratorRuntime;if(o.regeneratorRuntime=void 0,n.exports=t("./runtime"),i)o.regeneratorRuntime=s;else try{delete o.regeneratorRuntime}catch(t){o.regeneratorRuntime=void 0}},"runtime.js":function(t,r,n){!function(t){"use strict";function e(t,e,r,n){var i=e&&e.prototype instanceof o?e:o,s=Object.create(i.prototype),c=new _(n||[]);return s._invoke=a(t,r,c),s}function r(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function o(){}function i(){}function s(){}function c(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function u(e){function n(t,o,i,s){var c=r(e[t],e,o);if("throw"!==c.type){var u=c.arg,a=u.value;return a&&"object"==typeof a&&v.call(a,"__await")?Promise.resolve(a.__await).then(function(t){n("next",t,i,s)},function(t){n("throw",t,i,s)}):Promise.resolve(a).then(function(t){u.value=t,i(u)},s)}s(c.arg)}function o(t,e){function r(){return new Promise(function(r,o){n(t,e,r,o)})}return i=i?i.then(r,r):r()}"object"==typeof t.process&&t.process.domain&&(n=t.process.domain.bind(n));var i;this._invoke=o}function a(t,e,n){var o=S;return function i(s,c){if(o===E)throw new Error("Generator is already running");if(o===M){if("throw"===s)throw c;return d()}for(n.method=s,n.arg=c;;){var u=n.delegate;if(u){var a=f(u,n);if(a){if(a===P)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===S)throw o=M,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=E;var l=r(t,e,n);if("normal"===l.type){if(o=n.done?M:k,l.arg===P)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=M,n.method="throw",n.arg=l.arg)}}}function f(t,e){var n=t.iterator[e.method];if(n===j){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=j,f(t,e),"throw"===e.method))return P;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return P}var o=r(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,P;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=j),e.delegate=null,P):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,P)}function l(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function h(t){if(t){var e=t[m];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(v.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=j,e.done=!0,e};return n.next=n}}return{next:d}}function d(){return{value:j,done:!0}}var y=Object.prototype,v=y.hasOwnProperty,j,b="function"==typeof Symbol?Symbol:{},m=b.iterator||"@@iterator",g=b.asyncIterator||"@@asyncIterator",x=b.toStringTag||"@@toStringTag",w="object"==typeof n,O=t.regeneratorRuntime;if(O)w&&(n.exports=O);else{(O=t.regeneratorRuntime=w?n.exports:{}).wrap=e;var S="suspendedStart",k="suspendedYield",E="executing",M="completed",P={},A={};A[m]=function(){return this};var F=Object.getPrototypeOf,L=F&&F(F(h([])));L&&L!==y&&v.call(L,m)&&(A=L);var T=s.prototype=o.prototype=Object.create(A);i.prototype=T.constructor=s,s.constructor=i,s[x]=i.displayName="GeneratorFunction",O.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},O.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,x in t||(t[x]="GeneratorFunction")),t.prototype=Object.create(T),t},O.awrap=function(t){return{__await:t}},c(u.prototype),u.prototype[g]=function(){return this},O.AsyncIterator=u,O.async=function(t,r,n,o){var i=new u(e(t,r,n,o));return O.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},c(T),T[x]="Generator",T[m]=function(){return this},T.toString=function(){return"[object Generator]"},O.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},O.values=h,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=j,this.done=!1,this.delegate=null,this.method="next",this.arg=j,this.tryEntries.forEach(p),!t)for(var e in this)"t"===e.charAt(0)&&v.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=j)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){function e(e,n){return i.type="throw",i.arg=t,r.next=e,n&&(r.method="next",r.arg=j),!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var s=v.call(o,"catchLoc"),c=v.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&v.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,P):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),P},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),p(r),P}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;p(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:h(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=j),P}}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}},"core-js":{modules:{"es6.symbol.js":function(t){"use strict";var e=t("./_global"),r=t("./_has"),n=t("./_descriptors"),o=t("./_export"),i=t("./_redefine"),s=t("./_meta").KEY,c=t("./_fails"),u=t("./_shared"),a=t("./_set-to-string-tag"),f=t("./_uid"),l=t("./_wks"),p=t("./_wks-ext"),_=t("./_wks-define"),h=t("./_keyof"),d=t("./_enum-keys"),y=t("./_is-array"),v=t("./_an-object"),j=t("./_to-iobject"),b=t("./_to-primitive"),m=t("./_property-desc"),g=t("./_object-create"),x=t("./_object-gopn-ext"),w=t("./_object-gopd"),O=t("./_object-dp"),S=t("./_object-keys"),k=w.f,E=O.f,M=x.f,P=e.Symbol,A=e.JSON,F=A&&A.stringify,L="prototype",T=l("_hidden"),N=l("toPrimitive"),I={}.propertyIsEnumerable,R=u("symbol-registry"),C=u("symbols"),W=u("op-symbols"),z=Object[L],G="function"==typeof P,D=e.QObject,U=!D||!D[L]||!D[L].findChild,B=n&&c(function(){return 7!=g(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=k(z,e);n&&delete z[e],E(t,e,r),n&&t!==z&&E(z,e,n)}:E,q=function(t){var e=C[t]=g(P[L]);return e._k=t,e},K=G&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},Y=function t(e,n,o){return e===z&&Y(W,n,o),v(e),n=b(n,!0),v(o),r(C,n)?(o.enumerable?(r(e,T)&&e[T][n]&&(e[T][n]=!1),o=g(o,{enumerable:m(0,!1)})):(r(e,T)||E(e,T,m(1,{})),e[T][n]=!0),B(e,n,o)):E(e,n,o)},V=function t(e,r){v(e);for(var n=d(r=j(r)),o=0,i=n.length,s;i>o;)Y(e,s=n[o++],r[s]);return e},J=function t(e,r){return void 0===r?g(e):V(g(e),r)},X=function t(e){var n=I.call(this,e=b(e,!0));return!(this===z&&r(C,e)&&!r(W,e))&&(!(n||!r(this,e)||!r(C,e)||r(this,T)&&this[T][e])||n)},$=function t(e,n){if(e=j(e),n=b(n,!0),e!==z||!r(C,n)||r(W,n)){var o=k(e,n);return!o||!r(C,n)||r(e,T)&&e[T][n]||(o.enumerable=!0),o}},Q=function t(e){for(var n=M(j(e)),o=[],i=0,c;n.length>i;)r(C,c=n[i++])||c==T||c==s||o.push(c);return o},H=function t(e){for(var n=e===z,o=M(n?W:j(e)),i=[],s=0,c;o.length>s;)!r(C,c=o[s++])||n&&!r(z,c)||i.push(C[c]);return i};G||(i((P=function t(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),o=function(t){this===z&&o.call(W,t),r(this,T)&&r(this[T],e)&&(this[T][e]=!1),B(this,e,m(1,t))};return n&&U&&B(z,e,{configurable:!0,set:o}),q(e)})[L],"toString",function t(){return this._k}),w.f=$,O.f=Y,t("./_object-gopn").f=x.f=Q,t("./_object-pie").f=X,t("./_object-gops").f=H,n&&!t("./_library")&&i(z,"propertyIsEnumerable",X,!0),p.f=function(t){return q(l(t))}),o(o.G+o.W+o.F*!G,{Symbol:P});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)l(Z[tt++]);for(var Z=S(l.store),tt=0;Z.length>tt;)_(Z[tt++]);o(o.S+o.F*!G,"Symbol",{for:function(t){return r(R,t+="")?R[t]:R[t]=P(t)},keyFor:function t(e){if(K(e))return h(R,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){U=!0},useSimple:function(){U=!1}}),o(o.S+o.F*!G,"Object",{create:J,defineProperty:Y,defineProperties:V,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:H}),A&&o(o.S+o.F*(!G||c(function(){var t=P();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function t(e){if(void 0!==e&&!K(e)){for(var r=[e],n=1,o,i;arguments.length>n;)r.push(arguments[n++]);return"function"==typeof(o=r[1])&&(i=o),!i&&y(o)||(o=function(t,e){if(i&&(e=i.call(this,t,e)),!K(e))return e}),r[1]=o,F.apply(A,r)}}}),P[L][N]||t("./_hide")(P[L],N,P[L].valueOf),a(P,"Symbol"),a(Math,"Math",!0),a(e.JSON,"JSON",!0)},"_global.js":function(t,e,r){var n=r.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"_has.js":function(t,e,r){var n={}.hasOwnProperty;r.exports=function(t,e){return n.call(t,e)}},"_descriptors.js":function(t,e,r){r.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"_fails.js":function(t,e,r){r.exports=function(t){try{return!!t()}catch(t){return!0}}},"_export.js":function(t,e,r){var n=t("./_global"),o=t("./_core"),i=t("./_hide"),s=t("./_redefine"),c=t("./_ctx"),u="prototype",a=function(t,e,r){var f=t&a.F,l=t&a.G,p=t&a.S,_=t&a.P,h=t&a.B,d=l?n:p?n[e]||(n[e]={}):(n[e]||{})[u],y=l?o:o[e]||(o[e]={}),v=y[u]||(y[u]={}),j,b,m,g;l&&(r=e);for(j in r)m=((b=!f&&d&&void 0!==d[j])?d:r)[j],g=h&&b?c(m,n):_&&"function"==typeof m?c(Function.call,m):m,d&&s(d,j,m,t&a.U),y[j]!=m&&i(y,j,g),_&&v[j]!=m&&(v[j]=m)};n.core=o,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,r.exports=a},"_core.js":function(t,e,r){var n=r.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},"_hide.js":function(t,e,r){var n=t("./_object-dp"),o=t("./_property-desc");r.exports=t("./_descriptors")?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},"_object-dp.js":function(t,e){var r=t("./_an-object"),n=t("./_ie8-dom-define"),o=t("./_to-primitive"),i=Object.defineProperty;e.f=t("./_descriptors")?Object.defineProperty:function t(e,s,c){if(r(e),s=o(s,!0),r(c),n)try{return i(e,s,c)}catch(t){}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(e[s]=c.value),e}},"_an-object.js":function(t,e,r){var n=t("./_is-object");r.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},"_is-object.js":function(t,e,r){r.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},"_ie8-dom-define.js":function(t,e,r){r.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},"_dom-create.js":function(t,e,r){var n=t("./_is-object"),o=t("./_global").document,i=n(o)&&n(o.createElement);r.exports=function(t){return i?o.createElement(t):{}}},"_to-primitive.js":function(t,e,r){var n=t("./_is-object");r.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"_property-desc.js":function(t,e,r){r.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"_redefine.js":function(t,e,r){var n=t("./_global"),o=t("./_hide"),i=t("./_has"),s=t("./_uid")("src"),c="toString",u=Function[c],a=(""+u).split(c);t("./_core").inspectSource=function(t){return u.call(t)},(r.exports=function(t,e,r,c){var u="function"==typeof r;u&&(i(r,"name")||o(r,"name",e)),t[e]!==r&&(u&&(i(r,s)||o(r,s,t[e]?""+t[e]:a.join(String(e)))),t===n?t[e]=r:c?t[e]?t[e]=r:o(t,e,r):(delete t[e],o(t,e,r)))})(Function.prototype,c,function t(){return"function"==typeof this&&this[s]||u.call(this)})},"_uid.js":function(t,e,r){var n=0,o=Math.random();r.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},"_ctx.js":function(t,e,r){var n=t("./_a-function");r.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},"_a-function.js":function(t,e,r){r.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"_meta.js":function(t,e,r){var n=t("./_uid")("meta"),o=t("./_is-object"),i=t("./_has"),s=t("./_object-dp").f,c=0,u=Object.isExtensible||function(){return!0},a=!t("./_fails")(function(){return u(Object.preventExtensions({}))}),f=function(t){s(t,n,{value:{i:"O"+ ++c,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!u(t))return"F";if(!e)return"E";f(t)}return t[n].i},p=function(t,e){if(!i(t,n)){if(!u(t))return!0;if(!e)return!1;f(t)}return t[n].w},_=function(t){return a&&h.NEED&&u(t)&&!i(t,n)&&f(t),t},h=r.exports={KEY:n,NEED:!1,fastKey:l,getWeak:p,onFreeze:_}},"_shared.js":function(t,e,r){var n=t("./_global"),o="__core-js_shared__",i=n[o]||(n[o]={});r.exports=function(t){return i[t]||(i[t]={})}},"_set-to-string-tag.js":function(t,e,r){var n=t("./_object-dp").f,o=t("./_has"),i=t("./_wks")("toStringTag");r.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},"_wks.js":function(t,e,r){var n=t("./_shared")("wks"),o=t("./_uid"),i=t("./_global").Symbol,s="function"==typeof i;(r.exports=function(t){return n[t]||(n[t]=s&&i[t]||(s?i:o)("Symbol."+t))}).store=n},"_wks-ext.js":function(t,e){e.f=t("./_wks")},"_wks-define.js":function(t,e,r){var n=t("./_global"),o=t("./_core"),i=t("./_library"),s=t("./_wks-ext"),c=t("./_object-dp").f;r.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:s.f(t)})}},"_library.js":function(t,e,r){r.exports=!1},"_keyof.js":function(t,e,r){var n=t("./_object-keys"),o=t("./_to-iobject");r.exports=function(t,e){for(var r=o(t),i=n(r),s=i.length,c=0,u;s>c;)if(r[u=i[c++]]===e)return u}},"_object-keys.js":function(t,e,r){var n=t("./_object-keys-internal"),o=t("./_enum-bug-keys");r.exports=Object.keys||function t(e){return n(e,o)}},"_object-keys-internal.js":function(t,e,r){var n=t("./_has"),o=t("./_to-iobject"),i=t("./_array-includes")(!1),s=t("./_shared-key")("IE_PROTO");r.exports=function(t,e){var r=o(t),c=0,u=[],a;for(a in r)a!=s&&n(r,a)&&u.push(a);for(;e.length>c;)n(r,a=e[c++])&&(~i(u,a)||u.push(a));return u}},"_to-iobject.js":function(t,e,r){var n=t("./_iobject"),o=t("./_defined");r.exports=function(t){return n(o(t))}},"_iobject.js":function(t,e,r){var n=t("./_cof");r.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},"_cof.js":function(t,e,r){var n={}.toString;r.exports=function(t){return n.call(t).slice(8,-1)}},"_defined.js":function(t,e,r){r.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"_array-includes.js":function(t,e,r){var n=t("./_to-iobject"),o=t("./_to-length"),i=t("./_to-index");r.exports=function(t){return function(e,r,s){var c=n(e),u=o(c.length),a=i(s,u),f;if(t&&r!=r){for(;u>a;)if((f=c[a++])!=f)return!0}else for(;u>a;a++)if((t||a in c)&&c[a]===r)return t||a||0;return!t&&-1}}},"_to-length.js":function(t,e,r){var n=t("./_to-integer"),o=Math.min;r.exports=function(t){return t>0?o(n(t),9007199254740991):0}},"_to-integer.js":function(t,e,r){var n=Math.ceil,o=Math.floor;r.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},"_to-index.js":function(t,e,r){var n=t("./_to-integer"),o=Math.max,i=Math.min;r.exports=function(t,e){return t=n(t),t<0?o(t+e,0):i(t,e)}},"_shared-key.js":function(t,e,r){var n=t("./_shared")("keys"),o=t("./_uid");r.exports=function(t){return n[t]||(n[t]=o(t))}},"_enum-bug-keys.js":function(t,e,r){r.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"_enum-keys.js":function(t,e,r){var n=t("./_object-keys"),o=t("./_object-gops"),i=t("./_object-pie");r.exports=function(t){var e=n(t),r=o.f;if(r)for(var s=r(t),c=i.f,u=0,a;s.length>u;)c.call(t,a=s[u++])&&e.push(a);return e}},"_object-gops.js":function(t,e){e.f=Object.getOwnPropertySymbols},"_object-pie.js":function(t,e){e.f={}.propertyIsEnumerable},"_is-array.js":function(t,e,r){var n=t("./_cof");r.exports=Array.isArray||function t(e){return"Array"==n(e)}},"_object-create.js":function(t,e,r){var n=t("./_an-object"),o=t("./_object-dps"),i=t("./_enum-bug-keys"),s=t("./_shared-key")("IE_PROTO"),c=function(){},u="prototype",a=function(){var e=t("./_dom-create")("iframe"),r=i.length,n="<",o=">",s;for(e.style.display="none",t("./_html").appendChild(e),e.src="javascript:",(s=e.contentWindow.document).open(),s.write("<script>document.F=Object<\/script>"),s.close(),a=s.F;r--;)delete a[u][i[r]];return a()};r.exports=Object.create||function t(e,r){var i;return null!==e?(c[u]=n(e),i=new c,c[u]=null,i[s]=e):i=a(),void 0===r?i:o(i,r)}},"_object-dps.js":function(t,e,r){var n=t("./_object-dp"),o=t("./_an-object"),i=t("./_object-keys");r.exports=t("./_descriptors")?Object.defineProperties:function t(e,r){o(e);for(var s=i(r),c=s.length,u=0,a;c>u;)n.f(e,a=s[u++],r[a]);return e}},"_html.js":function(t,e,r){r.exports=t("./_global").document&&document.documentElement},"_object-gopn-ext.js":function(t,e,r){var n=t("./_to-iobject"),o=t("./_object-gopn").f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return s.slice()}};r.exports.f=function t(e){return s&&"[object Window]"==i.call(e)?c(e):o(n(e))}},"_object-gopn.js":function(t,e){var r=t("./_object-keys-internal"),n=t("./_enum-bug-keys").concat("length","prototype");e.f=Object.getOwnPropertyNames||function t(e){return r(e,n)}},"_object-gopd.js":function(t,e){var r=t("./_object-pie"),n=t("./_property-desc"),o=t("./_to-iobject"),i=t("./_to-primitive"),s=t("./_has"),c=t("./_ie8-dom-define"),u=Object.getOwnPropertyDescriptor;e.f=t("./_descriptors")?u:function t(e,a){if(e=o(e),a=i(a,!0),c)try{return u(e,a)}catch(t){}if(s(e,a))return n(!r.f.call(e,a),e[a])}},"es6.map.js":function(t,e,r){"use strict";var n=t("./_collection-strong");r.exports=t("./_collection")("Map",function(t){return function e(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function t(e){var r=n.getEntry(this,e);return r&&r.v},set:function t(e,r){return n.def(this,0===e?0:e,r)}},n,!0)},"_collection-strong.js":function(t,e,r){"use strict";var n=t("./_object-dp").f,o=t("./_object-create"),i=t("./_redefine-all"),s=t("./_ctx"),c=t("./_an-instance"),u=t("./_defined"),a=t("./_for-of"),f=t("./_iter-define"),l=t("./_iter-step"),p=t("./_set-species"),_=t("./_descriptors"),h=t("./_meta").fastKey,d=_?"_s":"size",y=function(t,e){var r=h(e),n;if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};r.exports={getConstructor:function(t,e,r,f){var l=t(function(t,n){c(t,l,e,"_i"),t._i=o(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=n&&a(n,r,t[f],t)});return i(l.prototype,{clear:function t(){for(var e=this,r=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];e._f=e._l=void 0,e[d]=0},delete:function(t){var e=this,r=y(e,t);if(r){var n=r.n,o=r.p;delete e._i[r.i],r.r=!0,o&&(o.n=n),n&&(n.p=o),e._f==r&&(e._f=n),e._l==r&&(e._l=o),e[d]--}return!!r},forEach:function t(e){c(this,l,"forEach");for(var r=s(e,arguments.length>1?arguments[1]:void 0,3),n;n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function t(e){return!!y(this,e)}}),_&&n(l.prototype,"size",{get:function(){return u(this[d])}}),l},def:function(t,e,r){var n=y(t,e),o,i;return n?n.v=r:(t._l=n={i:i=h(e,!0),k:e,v:r,p:o=t._l,n:void 0,r:!1},t._f||(t._f=n),o&&(o.n=n),t[d]++,"F"!==i&&(t._i[i]=n)),t},getEntry:y,setStrong:function(t,e,r){f(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==e?l(0,r.k):"values"==e?l(0,r.v):l(0,[r.k,r.v]):(t._t=void 0,l(1))},r?"entries":"values",!r,!0),p(e)}}},"_redefine-all.js":function(t,e,r){var n=t("./_redefine");r.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},"_an-instance.js":function(t,e,r){r.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},"_for-of.js":function(t,e,r){var n=t("./_ctx"),o=t("./_iter-call"),i=t("./_is-array-iter"),s=t("./_an-object"),c=t("./_to-length"),u=t("./core.get-iterator-method"),a={},f={};(e=r.exports=function(t,e,r,l,p){var _=p?function(){return t}:u(t),h=n(r,l,e?2:1),d=0,y,v,j,b;if("function"!=typeof _)throw TypeError(t+" is not iterable!");if(i(_)){for(y=c(t.length);y>d;d++)if((b=e?h(s(v=t[d])[0],v[1]):h(t[d]))===a||b===f)return b}else for(j=_.call(t);!(v=j.next()).done;)if((b=o(j,h,v.value,e))===a||b===f)return b}).BREAK=a,e.RETURN=f},"_iter-call.js":function(t,e,r){var n=t("./_an-object");r.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},"_is-array-iter.js":function(t,e,r){var n=t("./_iterators"),o=t("./_wks")("iterator"),i=Array.prototype;r.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},"_iterators.js":function(t,e,r){r.exports={}},"core.get-iterator-method.js":function(t,e,r){var n=t("./_classof"),o=t("./_wks")("iterator"),i=t("./_iterators");r.exports=t("./_core").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[n(t)]}},"_classof.js":function(t,e,r){var n=t("./_cof"),o=t("./_wks")("toStringTag"),i="Arguments"==n(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};r.exports=function(t){var e,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=s(e=Object(t),o))?r:i?n(e):"Object"==(c=n(e))&&"function"==typeof e.callee?"Arguments":c}},"_iter-define.js":function(t,e,r){"use strict";var n=t("./_library"),o=t("./_export"),i=t("./_redefine"),s=t("./_hide"),c=t("./_has"),u=t("./_iterators"),a=t("./_iter-create"),f=t("./_set-to-string-tag"),l=t("./_object-gpo"),p=t("./_wks")("iterator"),_=!([].keys&&"next"in[].keys()),h="@@iterator",d="keys",y="values",v=function(){return this};r.exports=function(t,e,r,j,b,m,g){a(r,e,j);var x=function(t){if(!_&&t in k)return k[t];switch(t){case d:return function e(){return new r(this,t)};case y:return function e(){return new r(this,t)}}return function e(){return new r(this,t)}},w=e+" Iterator",O=b==y,S=!1,k=t.prototype,E=k[p]||k[h]||b&&k[b],M=E||x(b),P=b?O?x("entries"):M:void 0,A="Array"==e?k.entries||E:E,F,L,T;if(A&&(T=l(A.call(new t)))!==Object.prototype&&(f(T,w,!0),n||c(T,p)||s(T,p,v)),O&&E&&E.name!==y&&(S=!0,M=function t(){return E.call(this)}),n&&!g||!_&&!S&&k[p]||s(k,p,M),u[e]=M,u[w]=v,b)if(F={values:O?M:x(y),keys:m?M:x(d),entries:P},g)for(L in F)L in k||i(k,L,F[L]);else o(o.P+o.F*(_||S),e,F);return F}},"_iter-create.js":function(t,e,r){"use strict";var n=t("./_object-create"),o=t("./_property-desc"),i=t("./_set-to-string-tag"),s={};t("./_hide")(s,t("./_wks")("iterator"),function(){return this}),r.exports=function(t,e,r){t.prototype=n(s,{next:o(1,r)}),i(t,e+" Iterator")}},"_object-gpo.js":function(t,e,r){var n=t("./_has"),o=t("./_to-object"),i=t("./_shared-key")("IE_PROTO"),s=Object.prototype;r.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"_to-object.js":function(t,e,r){var n=t("./_defined");r.exports=function(t){return Object(n(t))}},"_iter-step.js":function(t,e,r){r.exports=function(t,e){return{value:e,done:!!t}}},"_set-species.js":function(t,e,r){"use strict";var n=t("./_global"),o=t("./_object-dp"),i=t("./_descriptors"),s=t("./_wks")("species");r.exports=function(t){var e=n[t];i&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},"_collection.js":function(t,e,r){"use strict";var n=t("./_global"),o=t("./_export"),i=t("./_redefine"),s=t("./_redefine-all"),c=t("./_meta"),u=t("./_for-of"),a=t("./_an-instance"),f=t("./_is-object"),l=t("./_fails"),p=t("./_iter-detect"),_=t("./_set-to-string-tag"),h=t("./_inherit-if-required");r.exports=function(t,e,r,d,y,v){var j=n[t],b=j,m=y?"set":"add",g=b&&b.prototype,x={},w=function(t){var e=g[t];i(g,t,"delete"==t?function(t){return!(v&&!f(t))&&e.call(this,0===t?0:t)}:"has"==t?function t(r){return!(v&&!f(r))&&e.call(this,0===r?0:r)}:"get"==t?function t(r){return v&&!f(r)?void 0:e.call(this,0===r?0:r)}:"add"==t?function t(r){return e.call(this,0===r?0:r),this}:function t(r,n){return e.call(this,0===r?0:r,n),this})};if("function"==typeof b&&(v||g.forEach&&!l(function(){(new b).entries().next()}))){var O=new b,S=O[m](v?{}:-0,1)!=O,k=l(function(){O.has(1)}),E=p(function(t){new b(t)}),M=!v&&l(function(){for(var t=new b,e=5;e--;)t[m](e,e);return!t.has(-0)});E||((b=e(function(e,r){a(e,b,t);var n=h(new j,e,b);return void 0!=r&&u(r,y,n[m],n),n})).prototype=g,g.constructor=b),(k||M)&&(w("delete"),w("has"),y&&w("get")),(M||S)&&w(m),v&&g.clear&&delete g.clear}else b=d.getConstructor(e,t,y,m),s(b.prototype,r),c.NEED=!0;return _(b,t),x[t]=b,o(o.G+o.W+o.F*(b!=j),x),v||d.setStrong(b,t,y),b}},"_iter-detect.js":function(t,e,r){var n=t("./_wks")("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}r.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],s=i[n]();s.next=function(){return{done:r=!0}},i[n]=function(){return s},t(i)}catch(t){}return r}},"_inherit-if-required.js":function(t,e,r){var n=t("./_is-object"),o=t("./_set-proto").set;r.exports=function(t,e,r){var i,s=e.constructor;return s!==r&&"function"==typeof s&&(i=s.prototype)!==r.prototype&&n(i)&&o&&o(t,i),t}},"_set-proto.js":function(t,e,r){var n=t("./_is-object"),o=t("./_an-object"),i=function(t,e){if(o(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};r.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,r,n){try{(n=t("./_ctx")(Function.call,t("./_object-gopd").f(Object.prototype,"__proto__").set,2))(e,[]),r=!(e instanceof Array)}catch(t){r=!0}return function t(e,o){return i(e,o),r?e.__proto__=o:n(e,o),e}}({},!1):void 0),check:i}},"es6.set.js":function(t,e,r){"use strict";var n=t("./_collection-strong");r.exports=t("./_collection")("Set",function(t){return function e(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function t(e){return n.def(this,e=0===e?0:e,e)}},n)},"es6.string.iterator.js":function(t){"use strict";var e=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t=this._t,r=this._i,n;return r>=t.length?{value:void 0,done:!0}:(n=e(t,r),this._i+=n.length,{value:n,done:!1})})},"_string-at.js":function(t,e,r){var n=t("./_to-integer"),o=t("./_defined");r.exports=function(t){return function(e,r){var i=String(o(e)),s=n(r),c=i.length,u,a;return s<0||s>=c?t?"":void 0:(u=i.charCodeAt(s),u<55296||u>56319||s+1===c||(a=i.charCodeAt(s+1))<56320||a>57343?t?i.charAt(s):u:t?i.slice(s,s+2):a-56320+(u-55296<<10)+65536)}}},"es6.array.is-array.js":function(t){var e=t("./_export");e(e.S,"Array",{isArray:t("./_is-array")})},"es6.array.from.js":function(t){"use strict";var e=t("./_ctx"),r=t("./_export"),n=t("./_to-object"),o=t("./_iter-call"),i=t("./_is-array-iter"),s=t("./_to-length"),c=t("./_create-property"),u=t("./core.get-iterator-method");r(r.S+r.F*!t("./_iter-detect")(function(t){Array.from(t)}),"Array",{from:function t(r){var a=n(r),f="function"==typeof this?this:Array,l=arguments.length,p=l>1?arguments[1]:void 0,_=void 0!==p,h=0,d=u(a),y,v,j,b;if(_&&(p=e(p,l>2?arguments[2]:void 0,2)),void 0==d||f==Array&&i(d))for(v=new f(y=s(a.length));y>h;h++)c(v,h,_?p(a[h],h):a[h]);else for(b=d.call(a),v=new f;!(j=b.next()).done;h++)c(v,h,_?o(b,p,[j.value,h],!0):j.value);return v.length=h,v}})},"_create-property.js":function(t,e,r){"use strict";var n=t("./_object-dp"),o=t("./_property-desc");r.exports=function(t,e,r){e in t?n.f(t,e,o(0,r)):t[e]=r}},"es6.array.of.js":function(t){"use strict";var e=t("./_export"),r=t("./_create-property");e(e.S+e.F*t("./_fails")(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function t(){for(var e=0,n=arguments.length,o=new("function"==typeof this?this:Array)(n);n>e;)r(o,e,arguments[e++]);return o.length=n,o}})},"es6.array.join.js":function(t){"use strict";var e=t("./_export"),r=t("./_to-iobject"),n=[].join;e(e.P+e.F*(t("./_iobject")!=Object||!t("./_strict-method")(n)),"Array",{join:function t(e){return n.call(r(this),void 0===e?",":e)}})},"_strict-method.js":function(t,e,r){var n=t("./_fails");r.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},"es6.array.slice.js":function(t){"use strict";var e=t("./_export"),r=t("./_html"),n=t("./_cof"),o=t("./_to-index"),i=t("./_to-length"),s=[].slice;e(e.P+e.F*t("./_fails")(function(){r&&s.call(r)}),"Array",{slice:function t(e,r){var c=i(this.length),u=n(this);if(r=void 0===r?c:r,"Array"==u)return s.call(this,e,r);for(var a=o(e,c),f=o(r,c),l=i(f-a),p=Array(l),_=0;_<l;_++)p[_]="String"==u?this.charAt(a+_):this[a+_];return p}})},"es6.array.sort.js":function(t){"use strict";var e=t("./_export"),r=t("./_a-function"),n=t("./_to-object"),o=t("./_fails"),i=[].sort,s=[1,2,3];e(e.P+e.F*(o(function(){s.sort(void 0)})||!o(function(){s.sort(null)})||!t("./_strict-method")(i)),"Array",{sort:function t(e){return void 0===e?i.call(n(this)):i.call(n(this),r(e))}})},"es6.array.for-each.js":function(t){"use strict";var e=t("./_export"),r=t("./_array-methods")(0),n=t("./_strict-method")([].forEach,!0);e(e.P+e.F*!n,"Array",{forEach:function t(e){return r(this,e,arguments[1])}})},"_array-methods.js":function(t,e,r){var n=t("./_ctx"),o=t("./_iobject"),i=t("./_to-object"),s=t("./_to-length"),c=t("./_array-species-create");r.exports=function(t,e){var r=1==t,u=2==t,a=3==t,f=4==t,l=6==t,p=5==t||l,_=e||c;return function(e,c,h){for(var d=i(e),y=o(d),v=n(c,h,3),j=s(y.length),b=0,m=r?_(e,j):u?_(e,0):void 0,g,x;j>b;b++)if((p||b in y)&&(g=y[b],x=v(g,b,d),t))if(r)m[b]=x;else if(x)switch(t){case 3:return!0;case 5:return g;case 6:return b;case 2:m.push(g)}else if(f)return!1;return l?-1:a||f?f:m}}},"_array-species-create.js":function(t,e,r){var n=t("./_array-species-constructor");r.exports=function(t,e){return new(n(t))(e)}},"_array-species-constructor.js":function(t,e,r){var n=t("./_is-object"),o=t("./_is-array"),i=t("./_wks")("species");r.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),n(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},"es6.array.map.js":function(t){"use strict";var e=t("./_export"),r=t("./_array-methods")(1);e(e.P+e.F*!t("./_strict-method")([].map,!0),"Array",{map:function t(e){return r(this,e,arguments[1])}})},"es6.array.filter.js":function(t){"use strict";var e=t("./_export"),r=t("./_array-methods")(2);e(e.P+e.F*!t("./_strict-method")([].filter,!0),"Array",{filter:function t(e){return r(this,e,arguments[1])}})},"es6.array.some.js":function(t){"use strict";var e=t("./_export"),r=t("./_array-methods")(3);e(e.P+e.F*!t("./_strict-method")([].some,!0),"Array",{some:function t(e){return r(this,e,arguments[1])}})},"es6.array.every.js":function(t){"use strict";var e=t("./_export"),r=t("./_array-methods")(4);e(e.P+e.F*!t("./_strict-method")([].every,!0),"Array",{every:function t(e){return r(this,e,arguments[1])}})},"es6.array.reduce.js":function(t){"use strict";var e=t("./_export"),r=t("./_array-reduce");e(e.P+e.F*!t("./_strict-method")([].reduce,!0),"Array",{reduce:function t(e){return r(this,e,arguments.length,arguments[1],!1)}})},"_array-reduce.js":function(t,e,r){var n=t("./_a-function"),o=t("./_to-object"),i=t("./_iobject"),s=t("./_to-length");r.exports=function(t,e,r,c,u){n(e);var a=o(t),f=i(a),l=s(a.length),p=u?l-1:0,_=u?-1:1;if(r<2)for(;;){if(p in f){c=f[p],p+=_;break}if(p+=_,u?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;u?p>=0:l>p;p+=_)p in f&&(c=e(c,f[p],p,a));return c}},"es6.array.reduce-right.js":function(t){"use strict";var e=t("./_export"),r=t("./_array-reduce");e(e.P+e.F*!t("./_strict-method")([].reduceRight,!0),"Array",{reduceRight:function t(e){return r(this,e,arguments.length,arguments[1],!0)}})},"es6.array.index-of.js":function(t){"use strict";var e=t("./_export"),r=t("./_array-includes")(!1),n=[].indexOf,o=!!n&&1/[1].indexOf(1,-0)<0;e(e.P+e.F*(o||!t("./_strict-method")(n)),"Array",{indexOf:function t(e){return o?n.apply(this,arguments)||0:r(this,e,arguments[1])}})},"es6.array.last-index-of.js":function(t){"use strict";var e=t("./_export"),r=t("./_to-iobject"),n=t("./_to-integer"),o=t("./_to-length"),i=[].lastIndexOf,s=!!i&&1/[1].lastIndexOf(1,-0)<0;e(e.P+e.F*(s||!t("./_strict-method")(i)),"Array",{lastIndexOf:function t(e){if(s)return i.apply(this,arguments)||0;var c=r(this),u=o(c.length),a=u-1;for(arguments.length>1&&(a=Math.min(a,n(arguments[1]))),a<0&&(a=u+a);a>=0;a--)if(a in c&&c[a]===e)return a||0;return-1}})},"es6.array.copy-within.js":function(t){var e=t("./_export");e(e.P,"Array",{copyWithin:t("./_array-copy-within")}),t("./_add-to-unscopables")("copyWithin")},"_array-copy-within.js":function(t,e,r){"use strict";var n=t("./_to-object"),o=t("./_to-index"),i=t("./_to-length");r.exports=[].copyWithin||function t(e,r){var s=n(this),c=i(s.length),u=o(e,c),a=o(r,c),f=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===f?c:o(f,c))-a,c-u),p=1;for(a<u&&u<a+l&&(p=-1,a+=l-1,u+=l-1);l-- >0;)a in s?s[u]=s[a]:delete s[u],u+=p,a+=p;return s}},"_add-to-unscopables.js":function(t,e,r){var n=t("./_wks")("unscopables"),o=Array.prototype;void 0==o[n]&&t("./_hide")(o,n,{}),r.exports=function(t){o[n][t]=!0}},"es6.array.fill.js":function(t){var e=t("./_export");e(e.P,"Array",{fill:t("./_array-fill")}),t("./_add-to-unscopables")("fill")},"_array-fill.js":function(t,e,r){"use strict";var n=t("./_to-object"),o=t("./_to-index"),i=t("./_to-length");r.exports=function t(e){for(var r=n(this),s=i(r.length),c=arguments.length,u=o(c>1?arguments[1]:void 0,s),a=c>2?arguments[2]:void 0,f=void 0===a?s:o(a,s);f>u;)r[u++]=e;return r}},"es6.array.find.js":function(t){"use strict";var e=t("./_export"),r=t("./_array-methods")(5),n="find",o=!0;n in[]&&Array(1)[n](function(){o=!1}),e(e.P+e.F*o,"Array",{find:function t(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),t("./_add-to-unscopables")(n)},"es6.array.find-index.js":function(t){"use strict";var e=t("./_export"),r=t("./_array-methods")(6),n="findIndex",o=!0;n in[]&&Array(1)[n](function(){o=!1}),e(e.P+e.F*o,"Array",{findIndex:function t(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),t("./_add-to-unscopables")(n)},"es6.array.species.js":function(t){t("./_set-species")("Array")},"es6.array.iterator.js":function(t,e,r){"use strict";var n=t("./_add-to-unscopables"),o=t("./_iter-step"),i=t("./_iterators"),s=t("./_to-iobject");r.exports=t("./_iter-define")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,r):"values"==e?o(0,t[r]):o(0,[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},"es6.function.bind.js":function(t){var e=t("./_export");e(e.P,"Function",{bind:t("./_bind")})},"_bind.js":function(t,e,r){"use strict";var n=t("./_a-function"),o=t("./_is-object"),i=t("./_invoke"),s=[].slice,c={},u=function(t,e,r){if(!(e in c)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";c[e]=Function("F,a","return new F("+n.join(",")+")")}return c[e](t,r)};r.exports=Function.bind||function t(e){var r=n(this),c=s.call(arguments,1),a=function(){var t=c.concat(s.call(arguments));return this instanceof a?u(r,t.length,t):i(r,t,e)};return o(r.prototype)&&(a.prototype=r.prototype),a}},"_invoke.js":function(t,e,r){r.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},"es6.function.name.js":function(t){var e=t("./_object-dp").f,r=t("./_property-desc"),n=t("./_has"),o=Function.prototype,i=/^\s*function ([^ (]*)/,s="name",c=Object.isExtensible||function(){return!0};s in o||t("./_descriptors")&&e(o,s,{configurable:!0,get:function(){try{var t=this,o=(""+t).match(i)[1];return n(t,s)||!c(t)||e(t,s,r(5,o)),o}catch(t){return""}}})},"es6.function.has-instance.js":function(t){"use strict";var e=t("./_is-object"),r=t("./_object-gpo"),n=t("./_wks")("hasInstance"),o=Function.prototype;n in o||t("./_object-dp").f(o,n,{value:function(t){if("function"!=typeof this||!e(t))return!1;if(!e(this.prototype))return t instanceof this;for(;t=r(t);)if(this.prototype===t)return!0;return!1}})},"es6.math.acosh.js":function(t){var e=t("./_export"),r=t("./_math-log1p"),n=Math.sqrt,o=Math.acosh;e(e.S+e.F*!(o&&710==Math.floor(o(Number.MAX_VALUE))&&o(1/0)==1/0),"Math",{acosh:function t(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:r(e-1+n(e-1)*n(e+1))}})},"_math-log1p.js":function(t,e,r){r.exports=Math.log1p||function t(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},"es6.math.asinh.js":function(t){function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}var r=t("./_export"),n=Math.asinh;r(r.S+r.F*!(n&&1/n(0)>0),"Math",{asinh:e})},"es6.math.atanh.js":function(t){var e=t("./_export"),r=Math.atanh;e(e.S+e.F*!(r&&1/r(-0)<0),"Math",{atanh:function t(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},"es6.math.cbrt.js":function(t){var e=t("./_export"),r=t("./_math-sign");e(e.S,"Math",{cbrt:function t(e){return r(e=+e)*Math.pow(Math.abs(e),1/3)}})},"_math-sign.js":function(t,e,r){r.exports=Math.sign||function t(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},"es6.math.clz32.js":function(t){var e=t("./_export");e(e.S,"Math",{clz32:function t(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},"es6.math.cosh.js":function(t){var e=t("./_export"),r=Math.exp;e(e.S,"Math",{cosh:function t(e){return(r(e=+e)+r(-e))/2}})},"es6.math.expm1.js":function(t){var e=t("./_export"),r=t("./_math-expm1");e(e.S+e.F*(r!=Math.expm1),"Math",{expm1:r})},"_math-expm1.js":function(t,e,r){var n=Math.expm1;r.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function t(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},"es6.math.fround.js":function(t){var e=t("./_export"),r=t("./_math-sign"),n=Math.pow,o=n(2,-52),i=n(2,-23),s=n(2,127)*(2-i),c=n(2,-126),u=function(t){return t+1/o-1/o};e(e.S,"Math",{fround:function t(e){var n=Math.abs(e),a=r(e),f,l;return n<c?a*u(n/c/i)*c*i:(f=(1+i/o)*n,l=f-(f-n),l>s||l!=l?a*(1/0):a*l)}})},"es6.math.hypot.js":function(t){var e=t("./_export"),r=Math.abs;e(e.S,"Math",{hypot:function t(e,n){for(var o=0,i=0,s=arguments.length,c=0,u,a;i<s;)c<(u=r(arguments[i++]))?(o=o*(a=c/u)*a+1,c=u):o+=u>0?(a=u/c)*a:u;return c===1/0?1/0:c*Math.sqrt(o)}})},"es6.math.imul.js":function(t){var e=t("./_export"),r=Math.imul;e(e.S+e.F*t("./_fails")(function(){return-5!=r(4294967295,5)||2!=r.length}),"Math",{imul:function t(e,r){var n=65535,o=+e,i=+r,s=65535&o,c=65535&i;return 0|s*c+((65535&o>>>16)*c+s*(65535&i>>>16)<<16>>>0)}})},"es6.math.log10.js":function(t){var e=t("./_export");e(e.S,"Math",{log10:function t(e){return Math.log(e)/Math.LN10}})},"es6.math.log1p.js":function(t){var e=t("./_export");e(e.S,"Math",{log1p:t("./_math-log1p")})},"es6.math.log2.js":function(t){var e=t("./_export");e(e.S,"Math",{log2:function t(e){return Math.log(e)/Math.LN2}})},"es6.math.sign.js":function(t){var e=t("./_export");e(e.S,"Math",{sign:t("./_math-sign")})},"es6.math.sinh.js":function(t){var e=t("./_export"),r=t("./_math-expm1"),n=Math.exp;e(e.S+e.F*t("./_fails")(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function t(e){return Math.abs(e=+e)<1?(r(e)-r(-e))/2:(n(e-1)-n(-e-1))*(Math.E/2)}})},"es6.math.tanh.js":function(t){var e=t("./_export"),r=t("./_math-expm1"),n=Math.exp;e(e.S,"Math",{tanh:function t(e){var o=r(e=+e),i=r(-e);return o==1/0?1:i==1/0?-1:(o-i)/(n(e)+n(-e))}})},"es6.math.trunc.js":function(t){var e=t("./_export");e(e.S,"Math",{trunc:function t(e){return(e>0?Math.floor:Math.ceil)(e)}})},"es6.object.create.js":function(t){var e=t("./_export");e(e.S,"Object",{create:t("./_object-create")})},"es6.object.define-property.js":function(t){var e=t("./_export");e(e.S+e.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},"es6.object.define-properties.js":function(t){var e=t("./_export");e(e.S+e.F*!t("./_descriptors"),"Object",{defineProperties:t("./_object-dps")})},"es6.object.get-own-property-descriptor.js":function(t){var e=t("./_to-iobject"),r=t("./_object-gopd").f;t("./_object-sap")("getOwnPropertyDescriptor",function(){return function t(n,o){return r(e(n),o)}})},"_object-sap.js":function(t,e,r){var n=t("./_export"),o=t("./_core"),i=t("./_fails");r.exports=function(t,e){var r=(o.Object||{})[t]||Object[t],s={};s[t]=e(r),n(n.S+n.F*i(function(){r(1)}),"Object",s)}},"es6.object.get-prototype-of.js":function(t){var e=t("./_to-object"),r=t("./_object-gpo");t("./_object-sap")("getPrototypeOf",function(){return function t(n){return r(e(n))}})},"es6.object.keys.js":function(t){var e=t("./_to-object"),r=t("./_object-keys");t("./_object-sap")("keys",function(){return function t(n){return r(e(n))}})},"es6.object.get-own-property-names.js":function(t){t("./_object-sap")("getOwnPropertyNames",function(){return t("./_object-gopn-ext").f})},"es6.object.freeze.js":function(t){var e=t("./_is-object"),r=t("./_meta").onFreeze;t("./_object-sap")("freeze",function(t){return function n(o){return t&&e(o)?t(r(o)):o}})},"es6.object.seal.js":function(t){var e=t("./_is-object"),r=t("./_meta").onFreeze;t("./_object-sap")("seal",function(t){return function n(o){return t&&e(o)?t(r(o)):o}})},"es6.object.prevent-extensions.js":function(t){var e=t("./_is-object"),r=t("./_meta").onFreeze;t("./_object-sap")("preventExtensions",function(t){return function n(o){return t&&e(o)?t(r(o)):o}})},"es6.object.is-frozen.js":function(t){var e=t("./_is-object");t("./_object-sap")("isFrozen",function(t){return function r(n){return!e(n)||!!t&&t(n)}})},"es6.object.is-sealed.js":function(t){var e=t("./_is-object");t("./_object-sap")("isSealed",function(t){return function r(n){return!e(n)||!!t&&t(n)}})},"es6.object.is-extensible.js":function(t){var e=t("./_is-object");t("./_object-sap")("isExtensible",function(t){return function r(n){return!!e(n)&&(!t||t(n))}})},"es6.object.assign.js":function(t){var e=t("./_export");e(e.S+e.F,"Object",{assign:t("./_object-assign")})},"_object-assign.js":function(t,e,r){"use strict";var n=t("./_object-keys"),o=t("./_object-gops"),i=t("./_object-pie"),s=t("./_to-object"),c=t("./_iobject"),u=Object.assign;r.exports=!u||t("./_fails")(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[r]||Object.keys(u({},e)).join("")!=n})?function t(e,r){for(var u=s(e),a=arguments.length,f=1,l=o.f,p=i.f;a>f;)for(var _=c(arguments[f++]),h=l?n(_).concat(l(_)):n(_),d=h.length,y=0,v;d>y;)p.call(_,v=h[y++])&&(u[v]=_[v]);return u}:u},"es6.object.is.js":function(t){var e=t("./_export");e(e.S,"Object",{is:t("./_same-value")})},"_same-value.js":function(t,e,r){r.exports=Object.is||function t(e,r){return e===r?0!==e||1/e==1/r:e!=e&&r!=r}},"es6.object.set-prototype-of.js":function(t){var e=t("./_export");e(e.S,"Object",{setPrototypeOf:t("./_set-proto").set})},"es6.object.to-string.js":function(t){"use strict";var e=t("./_classof"),r={};r[t("./_wks")("toStringTag")]="z",r+""!="[object z]"&&t("./_redefine")(Object.prototype,"toString",function t(){return"[object "+e(this)+"]"},!0)},"es6.string.from-code-point.js":function(t){var e=t("./_export"),r=t("./_to-index"),n=String.fromCharCode,o=String.fromCodePoint;e(e.S+e.F*(!!o&&1!=o.length),"String",{fromCodePoint:function t(e){for(var o=[],i=arguments.length,s=0,c;i>s;){if(c=+arguments[s++],r(c,1114111)!==c)throw RangeError(c+" is not a valid code point");o.push(c<65536?n(c):n(55296+((c-=65536)>>10),c%1024+56320))}return o.join("")}})},"es6.string.raw.js":function(t){var e=t("./_export"),r=t("./_to-iobject"),n=t("./_to-length");e(e.S,"String",{raw:function t(e){for(var o=r(e.raw),i=n(o.length),s=arguments.length,c=[],u=0;i>u;)c.push(String(o[u++])),u<s&&c.push(String(arguments[u]));return c.join("")}})},"es6.string.trim.js":function(t){"use strict";t("./_string-trim")("trim",function(t){return function e(){return t(this,3)}})},"_string-trim.js":function(t,e,r){var n=t("./_export"),o=t("./_defined"),i=t("./_fails"),s=t("./_string-ws"),c="["+s+"]",u="​…",a=RegExp("^"+c+c+"*"),f=RegExp(c+c+"*$"),l=function(t,e,r){var o={},c=i(function(){return!!s[t]()||u[t]()!=u}),a=o[t]=c?e(p):s[t];r&&(o[r]=a),n(n.P+n.F*c,"String",o)},p=l.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(a,"")),2&e&&(t=t.replace(f,"")),t};r.exports=l},"_string-ws.js":function(t,e,r){r.exports="\t\n\v\f\r áš€á Žâ€€â€â€‚â€ƒâ€„â€…â€†â€‡â€ˆâ€‰â€Šâ€¯âŸã€€\u2028\u2029\ufeff"},"es6.string.code-point-at.js":function(t){"use strict";var e=t("./_export"),r=t("./_string-at")(!1);e(e.P,"String",{codePointAt:function t(e){return r(this,e)}})},"es6.string.ends-with.js":function(t){"use strict";var e=t("./_export"),r=t("./_to-length"),n=t("./_string-context"),o="endsWith",i=""[o];e(e.P+e.F*t("./_fails-is-regexp")(o),"String",{endsWith:function t(e){var s=n(this,e,o),c=arguments.length>1?arguments[1]:void 0,u=r(s.length),a=void 0===c?u:Math.min(r(c),u),f=String(e);return i?i.call(s,f,a):s.slice(a-f.length,a)===f}})},"_string-context.js":function(t,e,r){var n=t("./_is-regexp"),o=t("./_defined");r.exports=function(t,e,r){if(n(e))throw TypeError("String#"+r+" doesn't accept regex!");return String(o(t))}},"_is-regexp.js":function(t,e,r){var n=t("./_is-object"),o=t("./_cof"),i=t("./_wks")("match");r.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},"_fails-is-regexp.js":function(t,e,r){var n=t("./_wks")("match");r.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,!"/./"[t](e)}catch(t){}}return!0}},"es6.string.includes.js":function(t){"use strict";var e=t("./_export"),r=t("./_string-context"),n="includes";e(e.P+e.F*t("./_fails-is-regexp")(n),"String",{includes:function t(e){return!!~r(this,e,n).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"es6.string.repeat.js":function(t){var e=t("./_export");e(e.P,"String",{repeat:t("./_string-repeat")})},"_string-repeat.js":function(t,e,r){"use strict";var n=t("./_to-integer"),o=t("./_defined");r.exports=function t(e){var r=String(o(this)),i="",s=n(e);if(s<0||s==1/0)throw RangeError("Count can't be negative");for(;s>0;(s>>>=1)&&(r+=r))1&s&&(i+=r);return i}},"es6.string.starts-with.js":function(t){"use strict";var e=t("./_export"),r=t("./_to-length"),n=t("./_string-context"),o="startsWith",i=""[o];e(e.P+e.F*t("./_fails-is-regexp")(o),"String",{startsWith:function t(e){var s=n(this,e,o),c=r(Math.min(arguments.length>1?arguments[1]:void 0,s.length)),u=String(e);return i?i.call(s,u,c):s.slice(c,c+u.length)===u}})},"es6.string.anchor.js":function(t){"use strict";t("./_string-html")("anchor",function(t){return function e(r){return t(this,"a","name",r)}})},"_string-html.js":function(t,e,r){var n=t("./_export"),o=t("./_fails"),i=t("./_defined"),s=/"/g,c=function(t,e,r,n){var o=String(i(t)),c="<"+e;return""!==r&&(c+=" "+r+'="'+String(n).replace(s,"&quot;")+'"'),c+">"+o+"</"+e+">"};r.exports=function(t,e){var r={};r[t]=e(c),n(n.P+n.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",r)}},"es6.string.big.js":function(t){"use strict";t("./_string-html")("big",function(t){return function e(){return t(this,"big","","")}})},"es6.string.blink.js":function(t){"use strict";t("./_string-html")("blink",function(t){return function e(){return t(this,"blink","","")}})},"es6.string.bold.js":function(t){"use strict";t("./_string-html")("bold",function(t){return function e(){return t(this,"b","","")}})},"es6.string.fixed.js":function(t){"use strict";t("./_string-html")("fixed",function(t){return function e(){return t(this,"tt","","")}})},"es6.string.fontcolor.js":function(t){"use strict";t("./_string-html")("fontcolor",function(t){return function e(r){return t(this,"font","color",r)}})},"es6.string.fontsize.js":function(t){"use strict";t("./_string-html")("fontsize",function(t){return function e(r){return t(this,"font","size",r)}})},"es6.string.italics.js":function(t){"use strict";t("./_string-html")("italics",function(t){return function e(){return t(this,"i","","")}})},"es6.string.link.js":function(t){"use strict";t("./_string-html")("link",function(t){return function e(r){return t(this,"a","href",r)}})},"es6.string.small.js":function(t){"use strict";t("./_string-html")("small",function(t){return function e(){return t(this,"small","","")}})},"es6.string.strike.js":function(t){"use strict";t("./_string-html")("strike",function(t){return function e(){return t(this,"strike","","")}})},"es6.string.sub.js":function(t){"use strict";t("./_string-html")("sub",function(t){return function e(){return t(this,"sub","","")}})},"es6.string.sup.js":function(t){"use strict";t("./_string-html")("sup",function(t){return function e(){return t(this,"sup","","")}})},"es6.regexp.match.js":function(t){t("./_fix-re-wks")("match",1,function(t,e,r){return[function r(n){"use strict";var o=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,o):new RegExp(n)[e](String(o))},r]})},"_fix-re-wks.js":function(t,e,r){"use strict";var n=t("./_hide"),o=t("./_redefine"),i=t("./_fails"),s=t("./_defined"),c=t("./_wks");r.exports=function(t,e,r){var u=c(t),a=r(s,u,""[t]),f=a[0],l=a[1];i(function(){var e={};return e[u]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,f),n(RegExp.prototype,u,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)}))}},"es6.regexp.replace.js":function(t){t("./_fix-re-wks")("replace",2,function(t,e,r){return[function n(o,i){"use strict";var s=t(this),c=void 0==o?void 0:o[e];return void 0!==c?c.call(o,s,i):r.call(String(s),o,i)},r]})},"es6.regexp.search.js":function(t){t("./_fix-re-wks")("search",1,function(t,e,r){return[function r(n){"use strict";var o=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,o):new RegExp(n)[e](String(o))},r]})},"es6.regexp.split.js":function(t){t("./_fix-re-wks")("split",2,function(e,r,n){"use strict";var o=t("./_is-regexp"),i=n,s=[].push,c="split",u="length",a="lastIndex";if("c"=="abbc"[c](/(b)*/)[1]||4!="test"[c](/(?:)/,-1)[u]||2!="ab"[c](/(?:ab)*/)[u]||4!="."[c](/(.?)(.?)/)[u]||"."[c](/()()/)[u]>1||""[c](/.?/)[u]){var f=void 0===/()??/.exec("")[1];n=function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!o(t))return i.call(r,t,e);var n=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,p=void 0===e?4294967295:e>>>0,_=new RegExp(t.source,c+"g"),h,d,y,v,j;for(f||(h=new RegExp("^"+_.source+"$(?!\\s)",c));(d=_.exec(r))&&!((y=d.index+d[0][u])>l&&(n.push(r.slice(l,d.index)),!f&&d[u]>1&&d[0].replace(h,function(){for(j=1;j<arguments[u]-2;j++)void 0===arguments[j]&&(d[j]=void 0)}),d[u]>1&&d.index<r[u]&&s.apply(n,d.slice(1)),v=d[0][u],l=y,n[u]>=p));)_[a]===d.index&&_[a]++;return l===r[u]?!v&&_.test("")||n.push(""):n.push(r.slice(l)),n[u]>p?n.slice(0,p):n}}else"0"[c](void 0,0)[u]&&(n=function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)});return[function t(o,i){var s=e(this),c=void 0==o?void 0:o[r];return void 0!==c?c.call(o,s,i):n.call(String(s),o,i)},n]})},"es6.weak-map.js":function(t,e,r){"use strict";var n=t("./_array-methods")(0),o=t("./_redefine"),i=t("./_meta"),s=t("./_object-assign"),c=t("./_collection-weak"),u=t("./_is-object"),a=i.getWeak,f=Object.isExtensible,l=c.ufstore,p={},_,h=function(t){return function e(){return t(this,arguments.length>0?arguments[0]:void 0)}},d={get:function t(e){if(u(e)){var r=a(e);return!0===r?l(this).get(e):r?r[this._i]:void 0}},set:function t(e,r){return c.def(this,e,r)}},y=r.exports=t("./_collection")("WeakMap",h,d,c,!0,!0);7!=(new y).set((Object.freeze||Object)(p),7).get(p)&&(s((_=c.getConstructor(h)).prototype,d),i.NEED=!0,n(["delete","has","get","set"],function(t){var e=y.prototype,r=e[t];o(e,t,function(e,n){if(u(e)&&!f(e)){this._f||(this._f=new _);var o=this._f[t](e,n);return"set"==t?this:o}return r.call(this,e,n)})}))},"_collection-weak.js":function(t,e,r){"use strict";var n=t("./_redefine-all"),o=t("./_meta").getWeak,i=t("./_an-object"),s=t("./_is-object"),c=t("./_an-instance"),u=t("./_for-of"),a=t("./_array-methods"),f=t("./_has"),l=a(5),p=a(6),_=0,h=function(t){return t._l||(t._l=new d)},d=function(){this.a=[]},y=function(t,e){return l(t.a,function(t){return t[0]===e})};d.prototype={get:function(t){var e=y(this,t);if(e)return e[1]},has:function(t){return!!y(this,t)},set:function(t,e){var r=y(this,t);r?r[1]=e:this.a.push([t,e])},delete:function(t){var e=p(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},r.exports={getConstructor:function(t,e,r,i){var a=t(function(t,n){c(t,a,e,"_i"),t._i=_++,t._l=void 0,void 0!=n&&u(n,r,t[i],t)});return n(a.prototype,{delete:function(t){if(!s(t))return!1;var e=o(t);return!0===e?h(this).delete(t):e&&f(e,this._i)&&delete e[this._i]},has:function t(e){if(!s(e))return!1;var r=o(e);return!0===r?h(this).has(e):r&&f(r,this._i)}}),a},def:function(t,e,r){var n=o(i(e),!0);return!0===n?h(t).set(e,r):n[t._i]=r,t},ufstore:h}},"web.dom.iterable.js":function(t){for(var e=t("./es6.array.iterator"),r=t("./_redefine"),n=t("./_global"),o=t("./_hide"),i=t("./_iterators"),s=t("./_wks"),c=s("iterator"),u=s("toStringTag"),a=i.Array,f=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],l=0;l<5;l++){var p=f[l],_=n[p],h=_&&_.prototype,d;if(h){h[c]||o(h,c,a),h[u]||o(h,u,p),i[p]=a;for(d in e)h[d]||r(h,d,e[d],!0)}}},"es6.weak-set.js":function(t){"use strict";var e=t("./_collection-weak");t("./_collection")("WeakSet",function(t){return function e(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function t(r){return e.def(this,r,!0)}},e,!1,!0)},"es7.array.includes.js":function(t){"use strict";var e=t("./_export"),r=t("./_array-includes")(!0);e(e.P,"Array",{includes:function t(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),t("./_add-to-unscopables")("includes")},"es7.object.get-own-property-descriptors.js":function(t){var e=t("./_export"),r=t("./_own-keys"),n=t("./_to-iobject"),o=t("./_object-gopd"),i=t("./_create-property");e(e.S,"Object",{getOwnPropertyDescriptors:function t(e){for(var s=n(e),c=o.f,u=r(s),a={},f=0,l;u.length>f;)i(a,l=u[f++],c(s,l));return a}})},"_own-keys.js":function(t,e,r){var n=t("./_object-gopn"),o=t("./_object-gops"),i=t("./_an-object"),s=t("./_global").Reflect;r.exports=s&&s.ownKeys||function t(e){var r=n.f(i(e)),s=o.f;return s?r.concat(s(e)):r}},"es7.object.values.js":function(t){var e=t("./_export"),r=t("./_object-to-array")(!1);e(e.S,"Object",{values:function t(e){return r(e)}})},"_object-to-array.js":function(t,e,r){var n=t("./_object-keys"),o=t("./_to-iobject"),i=t("./_object-pie").f;r.exports=function(t){return function(e){for(var r=o(e),s=n(r),c=s.length,u=0,a=[],f;c>u;)i.call(r,f=s[u++])&&a.push(t?[f,r[f]]:r[f]);return a}}},"es7.object.entries.js":function(t){var e=t("./_export"),r=t("./_object-to-array")(!0);e(e.S,"Object",{entries:function t(e){return r(e)}})},"es7.object.define-getter.js":function(t){"use strict";var e=t("./_export"),r=t("./_to-object"),n=t("./_a-function"),o=t("./_object-dp");t("./_descriptors")&&e(e.P+t("./_object-forced-pam"),"Object",{__defineGetter__:function t(e,i){o.f(r(this),e,{get:n(i),enumerable:!0,configurable:!0})}})},"_object-forced-pam.js":function(t,e,r){r.exports=t("./_library")||!t("./_fails")(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete t("./_global")[e]})},"es7.object.define-setter.js":function(t){"use strict";var e=t("./_export"),r=t("./_to-object"),n=t("./_a-function"),o=t("./_object-dp");t("./_descriptors")&&e(e.P+t("./_object-forced-pam"),"Object",{__defineSetter__:function t(e,i){o.f(r(this),e,{set:n(i),enumerable:!0,configurable:!0})}})},"es7.object.lookup-getter.js":function(t){"use strict";var e=t("./_export"),r=t("./_to-object"),n=t("./_to-primitive"),o=t("./_object-gpo"),i=t("./_object-gopd").f;t("./_descriptors")&&e(e.P+t("./_object-forced-pam"),"Object",{__lookupGetter__:function t(e){var s=r(this),c=n(e,!0),u;do{if(u=i(s,c))return u.get}while(s=o(s))}})},"es7.object.lookup-setter.js":function(t){"use strict";var e=t("./_export"),r=t("./_to-object"),n=t("./_to-primitive"),o=t("./_object-gpo"),i=t("./_object-gopd").f;t("./_descriptors")&&e(e.P+t("./_object-forced-pam"),"Object",{__lookupSetter__:function t(e){var s=r(this),c=n(e,!0),u;do{if(u=i(s,c))return u.set}while(s=o(s))}})},"es6.number.epsilon.js":function(t){var e=t("./_export");e(e.S,"Number",{EPSILON:Math.pow(2,-52)})},"es6.number.is-finite.js":function(t){var e=t("./_export"),r=t("./_global").isFinite;e(e.S,"Number",{isFinite:function t(e){return"number"==typeof e&&r(e)}})},"es6.number.is-integer.js":function(t){var e=t("./_export");e(e.S,"Number",{isInteger:t("./_is-integer")})},"_is-integer.js":function(t,e,r){var n=t("./_is-object"),o=Math.floor;r.exports=function t(e){return!n(e)&&isFinite(e)&&o(e)===e}},"es6.number.is-nan.js":function(t){var e=t("./_export");e(e.S,"Number",{isNaN:function t(e){return e!=e}})},"es6.number.is-safe-integer.js":function(t){var e=t("./_export"),r=t("./_is-integer"),n=Math.abs;e(e.S,"Number",{isSafeInteger:function t(e){return r(e)&&n(e)<=9007199254740991}})},"es6.number.max-safe-integer.js":function(t){var e=t("./_export");e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},"es6.number.min-safe-integer.js":function(t){var e=t("./_export");e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},"es6.number.parse-float.js":function(t){var e=t("./_export"),r=t("./_parse-float");e(e.S+e.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},"_parse-float.js":function(t,e,r){var n=t("./_global").parseFloat,o=t("./_string-trim").trim;r.exports=1/n(t("./_string-ws")+"-0")!=-1/0?function t(e){var r=o(String(e),3),i=n(r);return 0===i&&"-"==r.charAt(0)?-0:i}:n},"es6.number.parse-int.js":function(t){var e=t("./_export"),r=t("./_parse-int");e(e.S+e.F*(Number.parseInt!=r),"Number",{parseInt:r})},"_parse-int.js":function(t,e,r){var n=t("./_global").parseInt,o=t("./_string-trim").trim,i=t("./_string-ws"),s=/^[\-+]?0[xX]/;r.exports=8!==n(i+"08")||22!==n(i+"0x16")?function t(e,r){var i=o(String(e),3);return n(i,r>>>0||(s.test(i)?16:10))}:n},"es6.typed.uint8-array.js":function(t){t("./_typed-array")("Uint8",1,function(t){return function e(r,n,o){return t(this,r,n,o)}})},"_typed-array.js":function(t,e,r){"use strict";if(t("./_descriptors")){var n=t("./_library"),o=t("./_global"),i=t("./_fails"),s=t("./_export"),c=t("./_typed"),u=t("./_typed-buffer"),a=t("./_ctx"),f=t("./_an-instance"),l=t("./_property-desc"),p=t("./_hide"),_=t("./_redefine-all"),h=t("./_to-integer"),d=t("./_to-length"),y=t("./_to-index"),v=t("./_to-primitive"),j=t("./_has"),b=t("./_same-value"),m=t("./_classof"),g=t("./_is-object"),x=t("./_to-object"),w=t("./_is-array-iter"),O=t("./_object-create"),S=t("./_object-gpo"),k=t("./_object-gopn").f,E=t("./core.get-iterator-method"),M=t("./_uid"),P=t("./_wks"),A=t("./_array-methods"),F=t("./_array-includes"),L=t("./_species-constructor"),T=t("./es6.array.iterator"),N=t("./_iterators"),I=t("./_iter-detect"),R=t("./_set-species"),C=t("./_array-fill"),W=t("./_array-copy-within"),z=t("./_object-dp"),G=t("./_object-gopd"),D=z.f,U=G.f,B=o.RangeError,q=o.TypeError,K=o.Uint8Array,Y="ArrayBuffer",V="SharedArrayBuffer",J="BYTES_PER_ELEMENT",X="prototype",$=Array[X],Q=u.ArrayBuffer,H=u.DataView,Z=A(0),tt=A(2),et=A(3),rt=A(4),nt=A(5),ot=A(6),it=F(!0),st=F(!1),ct=T.values,ut=T.keys,at=T.entries,ft=$.lastIndexOf,lt=$.reduce,pt=$.reduceRight,_t=$.join,ht=$.sort,dt=$.slice,yt=$.toString,vt=$.toLocaleString,jt=P("iterator"),bt=P("toStringTag"),mt=M("typed_constructor"),gt=M("def_constructor"),xt=c.CONSTR,wt=c.TYPED,Ot=c.VIEW,St="Wrong length!",kt=A(1,function(t,e){return Lt(L(t,t[gt]),e)}),Et=i(function(){return 1===new K(new Uint16Array([1]).buffer)[0]}),Mt=!!K&&!!K[X].set&&i(function(){new K(1).set({})}),Pt=function(t,e){if(void 0===t)throw q(St);var r=+t,n=d(t);if(e&&!b(r,n))throw B(St);return n},At=function(t,e){var r=h(t);if(r<0||r%e)throw B("Wrong offset!");return r},Ft=function(t){if(g(t)&&wt in t)return t;throw q(t+" is not a typed array!")},Lt=function(t,e){if(!(g(t)&&mt in t))throw q("It is not a typed array constructor!");return new t(e)},Tt=function(t,e){return Nt(L(t,t[gt]),e)},Nt=function(t,e){for(var r=0,n=e.length,o=Lt(t,n);n>r;)o[r]=e[r++];return o},It=function(t,e,r){D(t,e,{get:function(){return this._d[r]}})},Rt=function t(e){var r=x(e),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o,s=E(r),c,u,f,l,p,_;if(void 0!=s&&!w(s)){for(_=s.call(r),f=[],c=0;!(p=_.next()).done;c++)f.push(p.value);r=f}for(i&&n>2&&(o=a(o,arguments[2],2)),c=0,u=d(r.length),l=Lt(this,u);u>c;c++)l[c]=i?o(r[c],c):r[c];return l},Ct=function t(){for(var e=0,r=arguments.length,n=Lt(this,r);r>e;)n[e]=arguments[e++];return n},Wt=!!K&&i(function(){vt.call(new K(1))}),zt=function t(){return vt.apply(Wt?dt.call(Ft(this)):Ft(this),arguments)},Gt={copyWithin:function t(e,r){return W.call(Ft(this),e,r,arguments.length>2?arguments[2]:void 0)},every:function t(e){return rt(Ft(this),e,arguments.length>1?arguments[1]:void 0)},fill:function t(e){return C.apply(Ft(this),arguments)},filter:function t(e){return Tt(this,tt(Ft(this),e,arguments.length>1?arguments[1]:void 0))},find:function t(e){return nt(Ft(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function t(e){return ot(Ft(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function t(e){Z(Ft(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function t(e){return st(Ft(this),e,arguments.length>1?arguments[1]:void 0)},includes:function t(e){return it(Ft(this),e,arguments.length>1?arguments[1]:void 0)},join:function t(e){return _t.apply(Ft(this),arguments)},lastIndexOf:function t(e){return ft.apply(Ft(this),arguments)},map:function t(e){return kt(Ft(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function t(e){return lt.apply(Ft(this),arguments)},reduceRight:function t(e){return pt.apply(Ft(this),arguments)},reverse:function t(){for(var e=this,r=Ft(e).length,n=Math.floor(r/2),o=0,i;o<n;)i=e[o],e[o++]=e[--r],e[r]=i;return e},some:function t(e){return et(Ft(this),e,arguments.length>1?arguments[1]:void 0)},sort:function t(e){return ht.call(Ft(this),e)},subarray:function t(e,r){var n=Ft(this),o=n.length,i=y(e,o);return new(L(n,n[gt]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,d((void 0===r?o:y(r,o))-i))}},Dt=function t(e,r){return Tt(this,dt.call(Ft(this),e,r))},Ut=function t(e){Ft(this);var r=At(arguments[1],1),n=this.length,o=x(e),i=d(o.length),s=0;if(i+r>n)throw B(St);for(;s<i;)this[r+s]=o[s++]},Bt={entries:function t(){return at.call(Ft(this))},keys:function t(){return ut.call(Ft(this))},values:function t(){return ct.call(Ft(this))}},qt=function(t,e){return g(t)&&t[wt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Kt=function t(e,r){return qt(e,r=v(r,!0))?l(2,e[r]):U(e,r)},Yt=function t(e,r,n){return!(qt(e,r=v(r,!0))&&g(n)&&j(n,"value"))||j(n,"get")||j(n,"set")||n.configurable||j(n,"writable")&&!n.writable||j(n,"enumerable")&&!n.enumerable?D(e,r,n):(e[r]=n.value,e)};xt||(G.f=Kt,z.f=Yt),s(s.S+s.F*!xt,"Object",{getOwnPropertyDescriptor:Kt,defineProperty:Yt}),i(function(){yt.call({})})&&(yt=vt=function t(){return _t.call(this)});var Vt=_({},Gt);_(Vt,Bt),p(Vt,jt,Bt.values),_(Vt,{slice:Dt,set:Ut,constructor:function(){},toString:yt,toLocaleString:zt}),It(Vt,"buffer","b"),It(Vt,"byteOffset","o"),It(Vt,"byteLength","l"),It(Vt,"length","e"),D(Vt,bt,{get:function(){return this[wt]}}),r.exports=function(t,e,r,u){var a=t+((u=!!u)?"Clamped":"")+"Array",l="Uint8Array"!=a,_="get"+t,h="set"+t,y=o[a],v=y||{},j=y&&S(y),b=!y||!c.ABV,x={},w=y&&y[X],E=function(t,r){var n=t._d;return n.v[_](r*e+n.o,Et)},M=function(t,r,n){var o=t._d;u&&(n=(n=Math.round(n))<0?0:n>255?255:255&n),o.v[h](r*e+o.o,n,Et)},P=function(t,e){D(t,e,{get:function(){return E(this,e)},set:function(t){return M(this,e,t)},enumerable:!0})};b?(y=r(function(t,r,n,o){f(t,y,a,"_d");var i=0,s=0,c,u,l,_;if(g(r)){if(!(r instanceof Q||(_=m(r))==Y||_==V))return wt in r?Nt(y,r):Rt.call(y,r);c=r,s=At(n,e);var h=r.byteLength;if(void 0===o){if(h%e)throw B(St);if((u=h-s)<0)throw B(St)}else if((u=d(o)*e)+s>h)throw B(St);l=u/e}else l=Pt(r,!0),c=new Q(u=l*e);for(p(t,"_d",{b:c,o:s,l:u,e:l,v:new H(c)});i<l;)P(t,i++)}),w=y[X]=O(Vt),p(w,"constructor",y)):I(function(t){new y(null),new y(t)},!0)||(y=r(function(t,r,n,o){f(t,y,a);var i;return g(r)?r instanceof Q||(i=m(r))==Y||i==V?void 0!==o?new v(r,At(n,e),o):void 0!==n?new v(r,At(n,e)):new v(r):wt in r?Nt(y,r):Rt.call(y,r):new v(Pt(r,l))}),Z(j!==Function.prototype?k(v).concat(k(j)):k(v),function(t){t in y||p(y,t,v[t])}),y[X]=w,n||(w.constructor=y));var A=w[jt],F=!!A&&("values"==A.name||void 0==A.name),L=Bt.values;p(y,mt,!0),p(w,wt,a),p(w,Ot,!0),p(w,gt,y),(u?new y(1)[bt]==a:bt in w)||D(w,bt,{get:function(){return a}}),x[a]=y,s(s.G+s.W+s.F*(y!=v),x),s(s.S,a,{BYTES_PER_ELEMENT:e,from:Rt,of:Ct}),J in w||p(w,J,e),s(s.P,a,Gt),R(a),s(s.P+s.F*Mt,a,{set:Ut}),s(s.P+s.F*!F,a,Bt),s(s.P+s.F*(w.toString!=yt),a,{toString:yt}),s(s.P+s.F*i(function(){new y(1).slice()}),a,{slice:Dt}),s(s.P+s.F*(i(function(){return[1,2].toLocaleString()!=new y([1,2]).toLocaleString()})||!i(function(){w.toLocaleString.call([1,2])})),a,{toLocaleString:zt}),N[a]=F?A:L,n||F||p(w,jt,L)}}else r.exports=function(){}},"_typed.js":function(t,e,r){for(var n=t("./_global"),o=t("./_hide"),i=t("./_uid"),s=i("typed_array"),c=i("view"),u=!(!n.ArrayBuffer||!n.DataView),a=u,f=0,l=9,p,_="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(p=n[_[f++]])?(o(p.prototype,s,!0),o(p.prototype,c,!0)):a=!1;r.exports={ABV:u,CONSTR:a,TYPED:s,VIEW:c}},"_typed-buffer.js":function(t,e){"use strict";var r=t("./_global"),n=t("./_descriptors"),o=t("./_library"),i=t("./_typed"),s=t("./_hide"),c=t("./_redefine-all"),u=t("./_fails"),a=t("./_an-instance"),f=t("./_to-integer"),l=t("./_to-length"),p=t("./_object-gopn").f,_=t("./_object-dp").f,h=t("./_array-fill"),d=t("./_set-to-string-tag"),y="ArrayBuffer",v="DataView",j="prototype",b="Wrong length!",m="Wrong index!",g=r[y],x=r[v],w=r.Math,O=r.RangeError,S=r.Infinity,k=g,E=w.abs,M=w.pow,P=w.floor,A=w.log,F=w.LN2,L="buffer",T="byteLength",N="byteOffset",I=n?"_b":L,R=n?"_l":T,C=n?"_o":N,W=function(t,e,r){var n=Array(r),o=8*r-e-1,i=(1<<o)-1,s=i>>1,c=23===e?M(2,-24)-M(2,-77):0,u=0,a=t<0||0===t&&1/t<0?1:0,f,l,p;for((t=E(t))!=t||t===S?(l=t!=t?1:0,f=i):(f=P(A(t)/F),t*(p=M(2,-f))<1&&(f--,p*=2),(t+=f+s>=1?c/p:c*M(2,1-s))*p>=2&&(f++,p/=2),f+s>=i?(l=0,f=i):f+s>=1?(l=(t*p-1)*M(2,e),f+=s):(l=t*M(2,s-1)*M(2,e),f=0));e>=8;n[u++]=255&l,l/=256,e-=8);for(f=f<<e|l,o+=e;o>0;n[u++]=255&f,f/=256,o-=8);return n[--u]|=128*a,n},z=function(t,e,r){var n=8*r-e-1,o=(1<<n)-1,i=o>>1,s=n-7,c=r-1,u=t[c--],a=127&u,f;for(u>>=7;s>0;a=256*a+t[c],c--,s-=8);for(f=a&(1<<-s)-1,a>>=-s,s+=e;s>0;f=256*f+t[c],c--,s-=8);if(0===a)a=1-i;else{if(a===o)return f?NaN:u?-S:S;f+=M(2,e),a-=i}return(u?-1:1)*f*M(2,a-e)},G=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},D=function(t){return[255&t]},U=function(t){return[255&t,t>>8&255]},B=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},q=function(t){return W(t,52,8)},K=function(t){return W(t,23,4)},Y=function(t,e,r){_(t[j],e,{get:function(){return this[r]}})},V=function(t,e,r,n){var o=+r,i=f(o);if(o!=i||i<0||i+e>t[R])throw O(m);var s=t[I]._b,c=i+t[C],u=s.slice(c,c+e);return n?u:u.reverse()},J=function(t,e,r,n,o,i){var s=+r,c=f(s);if(s!=c||c<0||c+e>t[R])throw O(m);for(var u=t[I]._b,a=c+t[C],l=n(+o),p=0;p<e;p++)u[a+p]=l[i?p:e-p-1]},X=function(t,e){a(t,g,y);var r=+e,n=l(r);if(r!=n)throw O(b);return n};if(i.ABV){if(!u(function(){new g})||!u(function(){new g(.5)})){for(var $=(g=function t(e){return new k(X(this,e))})[j]=k[j],Q=p(k),H=0,Z;Q.length>H;)(Z=Q[H++])in g||s(g,Z,k[Z]);o||($.constructor=g)}var tt=new x(new g(2)),et=x[j].setInt8;tt.setInt8(0,2147483648),tt.setInt8(1,2147483649),!tt.getInt8(0)&&tt.getInt8(1)||c(x[j],{setInt8:function t(e,r){et.call(this,e,r<<24>>24)},setUint8:function t(e,r){et.call(this,e,r<<24>>24)}},!0)}else g=function t(e){var r=X(this,e);this._b=h.call(Array(r),0),this[R]=r},x=function t(e,r,n){a(this,x,v),a(e,g,v);var o=e[R],i=f(r);if(i<0||i>o)throw O("Wrong offset!");if(n=void 0===n?o-i:l(n),i+n>o)throw O(b);this[I]=e,this[C]=i,this[R]=n},n&&(Y(g,T,"_l"),Y(x,L,"_b"),Y(x,T,"_l"),Y(x,N,"_o")),c(x[j],{getInt8:function t(e){return V(this,1,e)[0]<<24>>24},getUint8:function t(e){return V(this,1,e)[0]},getInt16:function t(e){var r=V(this,2,e,arguments[1]);return(r[1]<<8|r[0])<<16>>16},getUint16:function t(e){var r=V(this,2,e,arguments[1]);return r[1]<<8|r[0]},getInt32:function t(e){return G(V(this,4,e,arguments[1]))},getUint32:function t(e){return G(V(this,4,e,arguments[1]))>>>0},getFloat32:function t(e){return z(V(this,4,e,arguments[1]),23,4)},getFloat64:function t(e){return z(V(this,8,e,arguments[1]),52,8)},setInt8:function t(e,r){J(this,1,e,D,r)},setUint8:function t(e,r){J(this,1,e,D,r)},setInt16:function t(e,r){J(this,2,e,U,r,arguments[2])},setUint16:function t(e,r){J(this,2,e,U,r,arguments[2])},setInt32:function t(e,r){J(this,4,e,B,r,arguments[2])},setUint32:function t(e,r){J(this,4,e,B,r,arguments[2])},setFloat32:function t(e,r){J(this,4,e,K,r,arguments[2])},setFloat64:function t(e,r){J(this,8,e,q,r,arguments[2])}});d(g,y),d(x,v),s(x[j],i.VIEW,!0),e[y]=g,e[v]=x},"_species-constructor.js":function(t,e,r){var n=t("./_an-object"),o=t("./_a-function"),i=t("./_wks")("species");r.exports=function(t,e){var r=n(t).constructor,s;return void 0===r||void 0==(s=n(r)[i])?e:o(s)}},"es6.typed.uint32-array.js":function(t){t("./_typed-array")("Uint32",4,function(t){return function e(r,n,o){return t(this,r,n,o)}})}},es6:{"array.js":function(t,e,r){t("../modules/es6.string.iterator"),t("../modules/es6.array.is-array"),t("../modules/es6.array.from"),t("../modules/es6.array.of"),t("../modules/es6.array.join"),t("../modules/es6.array.slice"),t("../modules/es6.array.sort"),t("../modules/es6.array.for-each"),t("../modules/es6.array.map"),t("../modules/es6.array.filter"),t("../modules/es6.array.some"),t("../modules/es6.array.every"),t("../modules/es6.array.reduce"),t("../modules/es6.array.reduce-right"),t("../modules/es6.array.index-of"),t("../modules/es6.array.last-index-of"),t("../modules/es6.array.copy-within"),t("../modules/es6.array.fill"),t("../modules/es6.array.find"),t("../modules/es6.array.find-index"),t("../modules/es6.array.species"),t("../modules/es6.array.iterator"),r.exports=t("../modules/_core").Array},"function.js":function(t,e,r){t("../modules/es6.function.bind"),t("../modules/es6.function.name"),t("../modules/es6.function.has-instance"),r.exports=t("../modules/_core").Function},"math.js":function(t,e,r){t("../modules/es6.math.acosh"),t("../modules/es6.math.asinh"),t("../modules/es6.math.atanh"),t("../modules/es6.math.cbrt"),t("../modules/es6.math.clz32"),t("../modules/es6.math.cosh"),t("../modules/es6.math.expm1"),t("../modules/es6.math.fround"),t("../modules/es6.math.hypot"),t("../modules/es6.math.imul"),t("../modules/es6.math.log10"),t("../modules/es6.math.log1p"),t("../modules/es6.math.log2"),t("../modules/es6.math.sign"),t("../modules/es6.math.sinh"),t("../modules/es6.math.tanh"),t("../modules/es6.math.trunc"),r.exports=t("../modules/_core").Math},"object.js":function(t,e,r){t("../modules/es6.symbol"),t("../modules/es6.object.create"),t("../modules/es6.object.define-property"),t("../modules/es6.object.define-properties"),t("../modules/es6.object.get-own-property-descriptor"),t("../modules/es6.object.get-prototype-of"),t("../modules/es6.object.keys"),t("../modules/es6.object.get-own-property-names"),t("../modules/es6.object.freeze"),t("../modules/es6.object.seal"),t("../modules/es6.object.prevent-extensions"),t("../modules/es6.object.is-frozen"),t("../modules/es6.object.is-sealed"),t("../modules/es6.object.is-extensible"),t("../modules/es6.object.assign"),t("../modules/es6.object.is"),t("../modules/es6.object.set-prototype-of"),t("../modules/es6.object.to-string"),r.exports=t("../modules/_core").Object},"string.js":function(t,e,r){t("../modules/es6.string.from-code-point"),t("../modules/es6.string.raw"),t("../modules/es6.string.trim"),t("../modules/es6.string.iterator"),t("../modules/es6.string.code-point-at"),t("../modules/es6.string.ends-with"),t("../modules/es6.string.includes"),t("../modules/es6.string.repeat"),t("../modules/es6.string.starts-with"),t("../modules/es6.string.anchor"),t("../modules/es6.string.big"),t("../modules/es6.string.blink"),t("../modules/es6.string.bold"),t("../modules/es6.string.fixed"),t("../modules/es6.string.fontcolor"),t("../modules/es6.string.fontsize"),t("../modules/es6.string.italics"),t("../modules/es6.string.link"),t("../modules/es6.string.small"),t("../modules/es6.string.strike"),t("../modules/es6.string.sub"),t("../modules/es6.string.sup"),t("../modules/es6.regexp.match"),t("../modules/es6.regexp.replace"),t("../modules/es6.regexp.search"),t("../modules/es6.regexp.split"),r.exports=t("../modules/_core").String},"weak-map.js":function(t,e,r){t("../modules/es6.object.to-string"),t("../modules/es6.array.iterator"),t("../modules/es6.weak-map"),r.exports=t("../modules/_core").WeakMap},"weak-set.js":function(t,e,r){t("../modules/es6.object.to-string"),t("../modules/web.dom.iterable"),t("../modules/es6.weak-set"),r.exports=t("../modules/_core").WeakSet}},es7:{"array.js":function(t,e,r){t("../modules/es7.array.includes"),r.exports=t("../modules/_core").Array},"object.js":function(t,e,r){t("../modules/es7.object.get-own-property-descriptors"),t("../modules/es7.object.values"),t("../modules/es7.object.entries"),t("../modules/es7.object.define-getter"),t("../modules/es7.object.define-setter"),t("../modules/es7.object.lookup-getter"),t("../modules/es7.object.lookup-setter"),r.exports=t("../modules/_core").Object}},library:{fn:{symbol:{"iterator.js":function(t,e,r){t("../../modules/es6.string.iterator"),t("../../modules/web.dom.iterable"),r.exports=t("../../modules/_wks-ext").f("iterator")},"index.js":function(t,e,r){t("../../modules/es6.symbol"),t("../../modules/es6.object.to-string"),t("../../modules/es7.symbol.async-iterator"),t("../../modules/es7.symbol.observable"),r.exports=t("../../modules/_core").Symbol}},array:{"from.js":function(t,e,r){t("../../modules/es6.string.iterator"),t("../../modules/es6.array.from"),r.exports=t("../../modules/_core").Array.from}},object:{"set-prototype-of.js":function(t,e,r){t("../../modules/es6.object.set-prototype-of"),r.exports=t("../../modules/_core").Object.setPrototypeOf},"create.js":function(t,e,r){t("../../modules/es6.object.create");var n=t("../../modules/_core").Object;r.exports=function t(e,r){return n.create(e,r)}}},"is-iterable.js":function(t,e,r){t("../modules/web.dom.iterable"),t("../modules/es6.string.iterator"),r.exports=t("../modules/core.is-iterable")},"get-iterator.js":function(t,e,r){t("../modules/web.dom.iterable"),t("../modules/es6.string.iterator"),r.exports=t("../modules/core.get-iterator")}},modules:{"es6.string.iterator.js":function(t){"use strict";var e=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t=this._t,r=this._i,n;return r>=t.length?{value:void 0,done:!0}:(n=e(t,r),this._i+=n.length,{value:n,done:!1})})},"_string-at.js":function(t,e,r){var n=t("./_to-integer"),o=t("./_defined");r.exports=function(t){return function(e,r){var i=String(o(e)),s=n(r),c=i.length,u,a;return s<0||s>=c?t?"":void 0:(u=i.charCodeAt(s),u<55296||u>56319||s+1===c||(a=i.charCodeAt(s+1))<56320||a>57343?t?i.charAt(s):u:t?i.slice(s,s+2):a-56320+(u-55296<<10)+65536)}}},"_to-integer.js":function(t,e,r){var n=Math.ceil,o=Math.floor;r.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},"_defined.js":function(t,e,r){r.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"_iter-define.js":function(t,e,r){"use strict";var n=t("./_library"),o=t("./_export"),i=t("./_redefine"),s=t("./_hide"),c=t("./_has"),u=t("./_iterators"),a=t("./_iter-create"),f=t("./_set-to-string-tag"),l=t("./_object-gpo"),p=t("./_wks")("iterator"),_=!([].keys&&"next"in[].keys()),h="@@iterator",d="keys",y="values",v=function(){return this};r.exports=function(t,e,r,j,b,m,g){a(r,e,j);var x=function(t){if(!_&&t in k)return k[t];switch(t){case d:return function e(){return new r(this,t)};case y:return function e(){return new r(this,t)}}return function e(){return new r(this,t)}},w=e+" Iterator",O=b==y,S=!1,k=t.prototype,E=k[p]||k[h]||b&&k[b],M=E||x(b),P=b?O?x("entries"):M:void 0,A="Array"==e?k.entries||E:E,F,L,T;if(A&&(T=l(A.call(new t)))!==Object.prototype&&(f(T,w,!0),n||c(T,p)||s(T,p,v)),O&&E&&E.name!==y&&(S=!0,M=function t(){return E.call(this)}),n&&!g||!_&&!S&&k[p]||s(k,p,M),u[e]=M,u[w]=v,b)if(F={values:O?M:x(y),keys:m?M:x(d),entries:P},g)for(L in F)L in k||i(k,L,F[L]);else o(o.P+o.F*(_||S),e,F);return F}},"_library.js":function(t,e,r){r.exports=!0},"_export.js":function(t,e,r){var n=t("./_global"),o=t("./_core"),i=t("./_ctx"),s=t("./_hide"),c="prototype",u=function(t,e,r){var a=t&u.F,f=t&u.G,l=t&u.S,p=t&u.P,_=t&u.B,h=t&u.W,d=f?o:o[e]||(o[e]={}),y=d[c],v=f?n:l?n[e]:(n[e]||{})[c],j,b,m;f&&(r=e);for(j in r)(b=!a&&v&&void 0!==v[j])&&j in d||(m=b?v[j]:r[j],d[j]=f&&"function"!=typeof v[j]?r[j]:_&&b?i(m,n):h&&v[j]==m?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e[c]=t[c],e}(m):p&&"function"==typeof m?i(Function.call,m):m,p&&((d.virtual||(d.virtual={}))[j]=m,t&u.R&&y&&!y[j]&&s(y,j,m)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,r.exports=u},"_global.js":function(t,e,r){var n=r.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"_core.js":function(t,e,r){var n=r.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},"_ctx.js":function(t,e,r){var n=t("./_a-function");r.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},"_a-function.js":function(t,e,r){r.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"_hide.js":function(t,e,r){var n=t("./_object-dp"),o=t("./_property-desc");r.exports=t("./_descriptors")?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},"_object-dp.js":function(t,e){var r=t("./_an-object"),n=t("./_ie8-dom-define"),o=t("./_to-primitive"),i=Object.defineProperty;e.f=t("./_descriptors")?Object.defineProperty:function t(e,s,c){if(r(e),s=o(s,!0),r(c),n)try{return i(e,s,c)}catch(t){}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(e[s]=c.value),e}},"_an-object.js":function(t,e,r){var n=t("./_is-object");r.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},"_is-object.js":function(t,e,r){r.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},"_ie8-dom-define.js":function(t,e,r){r.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},"_descriptors.js":function(t,e,r){r.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"_fails.js":function(t,e,r){r.exports=function(t){try{return!!t()}catch(t){return!0}}},"_dom-create.js":function(t,e,r){var n=t("./_is-object"),o=t("./_global").document,i=n(o)&&n(o.createElement);r.exports=function(t){return i?o.createElement(t):{}}},"_to-primitive.js":function(t,e,r){var n=t("./_is-object");r.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"_property-desc.js":function(t,e,r){r.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"_redefine.js":function(t,e,r){r.exports=t("./_hide")},"_has.js":function(t,e,r){var n={}.hasOwnProperty;r.exports=function(t,e){return n.call(t,e)}},"_iterators.js":function(t,e,r){r.exports={}},"_iter-create.js":function(t,e,r){"use strict";var n=t("./_object-create"),o=t("./_property-desc"),i=t("./_set-to-string-tag"),s={};t("./_hide")(s,t("./_wks")("iterator"),function(){return this}),r.exports=function(t,e,r){t.prototype=n(s,{next:o(1,r)}),i(t,e+" Iterator")}},"_object-create.js":function(t,e,r){var n=t("./_an-object"),o=t("./_object-dps"),i=t("./_enum-bug-keys"),s=t("./_shared-key")("IE_PROTO"),c=function(){},u="prototype",a=function(){var e=t("./_dom-create")("iframe"),r=i.length,n="<",o=">",s;for(e.style.display="none",t("./_html").appendChild(e),e.src="javascript:",(s=e.contentWindow.document).open(),s.write("<script>document.F=Object<\/script>"),s.close(),a=s.F;r--;)delete a[u][i[r]];return a()};r.exports=Object.create||function t(e,r){var i;return null!==e?(c[u]=n(e),i=new c,c[u]=null,i[s]=e):i=a(),void 0===r?i:o(i,r)}},"_object-dps.js":function(t,e,r){var n=t("./_object-dp"),o=t("./_an-object"),i=t("./_object-keys");r.exports=t("./_descriptors")?Object.defineProperties:function t(e,r){o(e);for(var s=i(r),c=s.length,u=0,a;c>u;)n.f(e,a=s[u++],r[a]);return e}},"_object-keys.js":function(t,e,r){var n=t("./_object-keys-internal"),o=t("./_enum-bug-keys");r.exports=Object.keys||function t(e){return n(e,o)}},"_object-keys-internal.js":function(t,e,r){var n=t("./_has"),o=t("./_to-iobject"),i=t("./_array-includes")(!1),s=t("./_shared-key")("IE_PROTO");r.exports=function(t,e){var r=o(t),c=0,u=[],a;for(a in r)a!=s&&n(r,a)&&u.push(a);for(;e.length>c;)n(r,a=e[c++])&&(~i(u,a)||u.push(a));return u}},"_to-iobject.js":function(t,e,r){var n=t("./_iobject"),o=t("./_defined");r.exports=function(t){return n(o(t))}},"_iobject.js":function(t,e,r){var n=t("./_cof");r.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},"_cof.js":function(t,e,r){var n={}.toString;r.exports=function(t){return n.call(t).slice(8,-1)}},"_array-includes.js":function(t,e,r){var n=t("./_to-iobject"),o=t("./_to-length"),i=t("./_to-index");r.exports=function(t){return function(e,r,s){var c=n(e),u=o(c.length),a=i(s,u),f;if(t&&r!=r){for(;u>a;)if((f=c[a++])!=f)return!0}else for(;u>a;a++)if((t||a in c)&&c[a]===r)return t||a||0;return!t&&-1}}},"_to-length.js":function(t,e,r){var n=t("./_to-integer"),o=Math.min;r.exports=function(t){return t>0?o(n(t),9007199254740991):0}},"_to-index.js":function(t,e,r){var n=t("./_to-integer"),o=Math.max,i=Math.min;r.exports=function(t,e){return t=n(t),t<0?o(t+e,0):i(t,e)}},"_shared-key.js":function(t,e,r){var n=t("./_shared")("keys"),o=t("./_uid");r.exports=function(t){return n[t]||(n[t]=o(t))}},"_shared.js":function(t,e,r){var n=t("./_global"),o="__core-js_shared__",i=n[o]||(n[o]={});r.exports=function(t){return i[t]||(i[t]={})}},"_uid.js":function(t,e,r){var n=0,o=Math.random();r.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+o).toString(36))}},"_enum-bug-keys.js":function(t,e,r){r.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"_html.js":function(t,e,r){r.exports=t("./_global").document&&document.documentElement},"_set-to-string-tag.js":function(t,e,r){var n=t("./_object-dp").f,o=t("./_has"),i=t("./_wks")("toStringTag");r.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},"_wks.js":function(t,e,r){var n=t("./_shared")("wks"),o=t("./_uid"),i=t("./_global").Symbol,s="function"==typeof i;(r.exports=function(t){return n[t]||(n[t]=s&&i[t]||(s?i:o)("Symbol."+t))}).store=n},"_object-gpo.js":function(t,e,r){var n=t("./_has"),o=t("./_to-object"),i=t("./_shared-key")("IE_PROTO"),s=Object.prototype;r.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},"_to-object.js":function(t,e,r){var n=t("./_defined");r.exports=function(t){return Object(n(t))}},"web.dom.iterable.js":function(t){t("./es6.array.iterator");for(var e=t("./_global"),r=t("./_hide"),n=t("./_iterators"),o=t("./_wks")("toStringTag"),i=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],s=0;s<5;s++){var c=i[s],u=e[c],a=u&&u.prototype;a&&!a[o]&&r(a,o,c),n[c]=n.Array}},"es6.array.iterator.js":function(t,e,r){"use strict";var n=t("./_add-to-unscopables"),o=t("./_iter-step"),i=t("./_iterators"),s=t("./_to-iobject");r.exports=t("./_iter-define")(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,r):"values"==e?o(0,t[r]):o(0,[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},"_add-to-unscopables.js":function(t,e,r){r.exports=function(){}},"_iter-step.js":function(t,e,r){r.exports=function(t,e){return{value:e,done:!!t}}},"_wks-ext.js":function(t,e){e.f=t("./_wks")},"es6.symbol.js":function(t){"use strict";var e=t("./_global"),r=t("./_has"),n=t("./_descriptors"),o=t("./_export"),i=t("./_redefine"),s=t("./_meta").KEY,c=t("./_fails"),u=t("./_shared"),a=t("./_set-to-string-tag"),f=t("./_uid"),l=t("./_wks"),p=t("./_wks-ext"),_=t("./_wks-define"),h=t("./_keyof"),d=t("./_enum-keys"),y=t("./_is-array"),v=t("./_an-object"),j=t("./_to-iobject"),b=t("./_to-primitive"),m=t("./_property-desc"),g=t("./_object-create"),x=t("./_object-gopn-ext"),w=t("./_object-gopd"),O=t("./_object-dp"),S=t("./_object-keys"),k=w.f,E=O.f,M=x.f,P=e.Symbol,A=e.JSON,F=A&&A.stringify,L="prototype",T=l("_hidden"),N=l("toPrimitive"),I={}.propertyIsEnumerable,R=u("symbol-registry"),C=u("symbols"),W=u("op-symbols"),z=Object[L],G="function"==typeof P,D=e.QObject,U=!D||!D[L]||!D[L].findChild,B=n&&c(function(){return 7!=g(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=k(z,e);n&&delete z[e],E(t,e,r),n&&t!==z&&E(z,e,n)}:E,q=function(t){var e=C[t]=g(P[L]);return e._k=t,e},K=G&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},Y=function t(e,n,o){return e===z&&Y(W,n,o),v(e),n=b(n,!0),v(o),r(C,n)?(o.enumerable?(r(e,T)&&e[T][n]&&(e[T][n]=!1),o=g(o,{enumerable:m(0,!1)})):(r(e,T)||E(e,T,m(1,{})),e[T][n]=!0),B(e,n,o)):E(e,n,o)},V=function t(e,r){v(e);for(var n=d(r=j(r)),o=0,i=n.length,s;i>o;)Y(e,s=n[o++],r[s]);return e},J=function t(e,r){return void 0===r?g(e):V(g(e),r)},X=function t(e){var n=I.call(this,e=b(e,!0));return!(this===z&&r(C,e)&&!r(W,e))&&(!(n||!r(this,e)||!r(C,e)||r(this,T)&&this[T][e])||n)},$=function t(e,n){if(e=j(e),n=b(n,!0),e!==z||!r(C,n)||r(W,n)){var o=k(e,n);return!o||!r(C,n)||r(e,T)&&e[T][n]||(o.enumerable=!0),o}},Q=function t(e){for(var n=M(j(e)),o=[],i=0,c;n.length>i;)r(C,c=n[i++])||c==T||c==s||o.push(c);return o},H=function t(e){for(var n=e===z,o=M(n?W:j(e)),i=[],s=0,c;o.length>s;)!r(C,c=o[s++])||n&&!r(z,c)||i.push(C[c]);return i};G||(i((P=function t(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),o=function(t){this===z&&o.call(W,t),r(this,T)&&r(this[T],e)&&(this[T][e]=!1),B(this,e,m(1,t))};return n&&U&&B(z,e,{configurable:!0,set:o}),q(e)})[L],"toString",function t(){return this._k}),w.f=$,O.f=Y,t("./_object-gopn").f=x.f=Q,t("./_object-pie").f=X,t("./_object-gops").f=H,n&&!t("./_library")&&i(z,"propertyIsEnumerable",X,!0),p.f=function(t){return q(l(t))}),o(o.G+o.W+o.F*!G,{Symbol:P});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)l(Z[tt++]);for(var Z=S(l.store),tt=0;Z.length>tt;)_(Z[tt++]);o(o.S+o.F*!G,"Symbol",{for:function(t){return r(R,t+="")?R[t]:R[t]=P(t)},keyFor:function t(e){if(K(e))return h(R,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){U=!0},useSimple:function(){U=!1}}),o(o.S+o.F*!G,"Object",{create:J,defineProperty:Y,defineProperties:V,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:H}),A&&o(o.S+o.F*(!G||c(function(){var t=P();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function t(e){if(void 0!==e&&!K(e)){for(var r=[e],n=1,o,i;arguments.length>n;)r.push(arguments[n++]);return"function"==typeof(o=r[1])&&(i=o),!i&&y(o)||(o=function(t,e){if(i&&(e=i.call(this,t,e)),!K(e))return e}),r[1]=o,F.apply(A,r)}}}),P[L][N]||t("./_hide")(P[L],N,P[L].valueOf),a(P,"Symbol"),a(Math,"Math",!0),a(e.JSON,"JSON",!0)},"_meta.js":function(t,e,r){var n=t("./_uid")("meta"),o=t("./_is-object"),i=t("./_has"),s=t("./_object-dp").f,c=0,u=Object.isExtensible||function(){return!0},a=!t("./_fails")(function(){return u(Object.preventExtensions({}))}),f=function(t){s(t,n,{value:{i:"O"+ ++c,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!u(t))return"F";if(!e)return"E";f(t)}return t[n].i},p=function(t,e){if(!i(t,n)){if(!u(t))return!0;if(!e)return!1;f(t)}return t[n].w},_=function(t){return a&&h.NEED&&u(t)&&!i(t,n)&&f(t),t},h=r.exports={KEY:n,NEED:!1,fastKey:l,getWeak:p,onFreeze:_}},"_wks-define.js":function(t,e,r){var n=t("./_global"),o=t("./_core"),i=t("./_library"),s=t("./_wks-ext"),c=t("./_object-dp").f;r.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:s.f(t)})}},"_keyof.js":function(t,e,r){var n=t("./_object-keys"),o=t("./_to-iobject");r.exports=function(t,e){for(var r=o(t),i=n(r),s=i.length,c=0,u;s>c;)if(r[u=i[c++]]===e)return u}},"_enum-keys.js":function(t,e,r){var n=t("./_object-keys"),o=t("./_object-gops"),i=t("./_object-pie");r.exports=function(t){var e=n(t),r=o.f;if(r)for(var s=r(t),c=i.f,u=0,a;s.length>u;)c.call(t,a=s[u++])&&e.push(a);return e}},"_object-gops.js":function(t,e){e.f=Object.getOwnPropertySymbols},"_object-pie.js":function(t,e){e.f={}.propertyIsEnumerable},"_is-array.js":function(t,e,r){var n=t("./_cof");r.exports=Array.isArray||function t(e){return"Array"==n(e)}},"_object-gopn-ext.js":function(t,e,r){var n=t("./_to-iobject"),o=t("./_object-gopn").f,i={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return s.slice()}};r.exports.f=function t(e){return s&&"[object Window]"==i.call(e)?c(e):o(n(e))}},"_object-gopn.js":function(t,e){var r=t("./_object-keys-internal"),n=t("./_enum-bug-keys").concat("length","prototype");e.f=Object.getOwnPropertyNames||function t(e){return r(e,n)}},"_object-gopd.js":function(t,e){var r=t("./_object-pie"),n=t("./_property-desc"),o=t("./_to-iobject"),i=t("./_to-primitive"),s=t("./_has"),c=t("./_ie8-dom-define"),u=Object.getOwnPropertyDescriptor;e.f=t("./_descriptors")?u:function t(e,a){if(e=o(e),a=i(a,!0),c)try{return u(e,a)}catch(t){}if(s(e,a))return n(!r.f.call(e,a),e[a])}},"es6.object.to-string.js":function(){},"es7.symbol.async-iterator.js":function(t){t("./_wks-define")("asyncIterator")},"es7.symbol.observable.js":function(t){t("./_wks-define")("observable")},"es6.array.from.js":function(t){"use strict";var e=t("./_ctx"),r=t("./_export"),n=t("./_to-object"),o=t("./_iter-call"),i=t("./_is-array-iter"),s=t("./_to-length"),c=t("./_create-property"),u=t("./core.get-iterator-method");r(r.S+r.F*!t("./_iter-detect")(function(t){Array.from(t)}),"Array",{from:function t(r){var a=n(r),f="function"==typeof this?this:Array,l=arguments.length,p=l>1?arguments[1]:void 0,_=void 0!==p,h=0,d=u(a),y,v,j,b;if(_&&(p=e(p,l>2?arguments[2]:void 0,2)),void 0==d||f==Array&&i(d))for(v=new f(y=s(a.length));y>h;h++)c(v,h,_?p(a[h],h):a[h]);else for(b=d.call(a),v=new f;!(j=b.next()).done;h++)c(v,h,_?o(b,p,[j.value,h],!0):j.value);return v.length=h,v}})},"_iter-call.js":function(t,e,r){var n=t("./_an-object");r.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},"_is-array-iter.js":function(t,e,r){var n=t("./_iterators"),o=t("./_wks")("iterator"),i=Array.prototype;r.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},"_create-property.js":function(t,e,r){"use strict";var n=t("./_object-dp"),o=t("./_property-desc");r.exports=function(t,e,r){e in t?n.f(t,e,o(0,r)):t[e]=r}},"core.get-iterator-method.js":function(t,e,r){var n=t("./_classof"),o=t("./_wks")("iterator"),i=t("./_iterators");r.exports=t("./_core").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[n(t)]}},"_classof.js":function(t,e,r){var n=t("./_cof"),o=t("./_wks")("toStringTag"),i="Arguments"==n(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};r.exports=function(t){var e,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=s(e=Object(t),o))?r:i?n(e):"Object"==(c=n(e))&&"function"==typeof e.callee?"Arguments":c}},"_iter-detect.js":function(t,e,r){var n=t("./_wks")("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}r.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],s=i[n]();s.next=function(){return{done:r=!0}},i[n]=function(){return s},t(i)}catch(t){}return r}},"es6.object.set-prototype-of.js":function(t){var e=t("./_export");e(e.S,"Object",{setPrototypeOf:t("./_set-proto").set})},"_set-proto.js":function(t,e,r){var n=t("./_is-object"),o=t("./_an-object"),i=function(t,e){if(o(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};r.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,r,n){try{(n=t("./_ctx")(Function.call,t("./_object-gopd").f(Object.prototype,"__proto__").set,2))(e,[]),r=!(e instanceof Array)}catch(t){r=!0}return function t(e,o){return i(e,o),r?e.__proto__=o:n(e,o),e}}({},!1):void 0),check:i}},"es6.object.create.js":function(t){var e=t("./_export");e(e.S,"Object",{create:t("./_object-create")})},"core.is-iterable.js":function(t,e,r){var n=t("./_classof"),o=t("./_wks")("iterator"),i=t("./_iterators");r.exports=t("./_core").isIterable=function(t){var e=Object(t);return void 0!==e[o]||"@@iterator"in e||i.hasOwnProperty(n(e))}},"core.get-iterator.js":function(t,e,r){var n=t("./_an-object"),o=t("./core.get-iterator-method");r.exports=t("./_core").getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/modules/client.js");"undefined"==typeof Package&&(Package={}),function(t,e){for(var r in e)r in t||(t[r]=e[r])}(Package.modules=i,{meteorInstall:n,process:o})}();

!function(){"undefined"==typeof Package&&(Package={}),Package["ecmascript-runtime"]={}}();

!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.modules.meteorInstall,o=Package.modules.process,i,a,c,u,l=n({node_modules:{meteor:{"es5-shim":{"client.js":function(t){t("./import_globals.js"),t("es5-shim/es5-shim.js"),t("es5-shim/es5-sham.js"),t("./console.js"),t("./export_globals.js")},"console.js":function(){function t(t){var e=console[t];e&&"object"==typeof e&&(console[t]=function(){return Function.prototype.apply.call(e,console,arguments)})}var e=Object.prototype.hasOwnProperty;if("object"==typeof console&&"object"==typeof console.log)for(var r in console)e.call(console,r)&&t(r)},"export_globals.js":function(){e.Date!==i&&(e.Date=i),e.parseInt!==a&&(e.parseInt=a),e.parseFloat!==c&&(e.parseFloat=c);var t=String.prototype;t.replace!==u&&(t.replace=u)},"import_globals.js":function(){i=e.Date,a=e.parseInt,c=e.parseFloat,u=String.prototype.replace},node_modules:{"es5-shim":{"es5-shim.js":function(t,e,r){!function(t,n){"use strict";"function"==typeof define&&define.amd?define(n):"object"==typeof e?r.exports=n():t.returnExports=n()}(this,function(){var t=Array,e=t.prototype,r=Object,n=r.prototype,o=Function,u=o.prototype,l=String,s=l.prototype,f=Number,p=f.prototype,h=e.slice,y=e.splice,d=e.push,b=e.unshift,g=e.concat,v=e.join,w=u.call,j=u.apply,O=Math.max,m=Math.min,T=n.toString,E="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,x,S=Function.prototype.toString,_=/^\s*class /,P=function t(e){try{var r=S.call(e).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return _.test(r)}catch(t){return!1}},M=function t(e){try{return!P(e)&&(S.call(e),!0)}catch(t){return!1}},I="[object Function]",D="[object GeneratorFunction]",x=function t(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(E)return M(e);if(P(e))return!1;var r=T.call(e);return r===I||r===D},k,F=RegExp.prototype.exec,U=function t(e){try{return F.call(e),!0}catch(t){return!1}},N="[object RegExp]";k=function t(e){return"object"==typeof e&&(E?U(e):T.call(e)===N)};var C,A=String.prototype.valueOf,R=function t(e){try{return A.call(e),!0}catch(t){return!1}},$="[object String]";C=function t(e){return"string"==typeof e||"object"==typeof e&&(E?R(e):T.call(e)===$)};var z=r.defineProperty&&function(){try{var t={};r.defineProperty(t,"x",{enumerable:!1,value:t});for(var e in t)return!1;return t.x===t}catch(t){return!1}}(),J=function(t){var e;return e=z?function(t,e,n,o){!o&&e in t||r.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:n})}:function(t,e,r,n){!n&&e in t||(t[e]=r)},function r(n,o,i){for(var a in o)t.call(o,a)&&e(n,a,o[a],i)}}(n.hasOwnProperty),G=function t(e){var r=typeof e;return null===e||"object"!==r&&"function"!==r},Z=f.isNaN||function t(e){return e!==e},Y={ToInteger:function t(e){var r=+e;return Z(r)?r=0:0!==r&&r!==1/0&&r!==-1/0&&(r=(r>0||-1)*Math.floor(Math.abs(r))),r},ToPrimitive:function t(e){var r,n,o;if(G(e))return e;if(n=e.valueOf,x(n)&&(r=n.call(e),G(r)))return r;if(o=e.toString,x(o)&&(r=o.call(e),G(r)))return r;throw new TypeError},ToObject:function(t){if(null==t)throw new TypeError("can't convert "+t+" to object");return r(t)},ToUint32:function t(e){return e>>>0}},W=function t(){};J(u,{bind:function t(e){var n=this;if(!x(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var i=h.call(arguments,1),a,c=function(){if(this instanceof a){var t=j.call(n,this,g.call(i,h.call(arguments)));return r(t)===t?t:this}return j.call(n,e,g.call(i,h.call(arguments)))},u=O(0,n.length-i.length),l=[],s=0;s<u;s++)d.call(l,"$"+s);return a=o("binder","return function ("+v.call(l,",")+"){ return binder.apply(this, arguments); }")(c),n.prototype&&(W.prototype=n.prototype,a.prototype=new W,W.prototype=null),a}});var X=w.bind(n.hasOwnProperty),B=w.bind(n.toString),H=w.bind(h),L=j.bind(h),q=w.bind(s.slice),K=w.bind(s.split),Q=w.bind(s.indexOf),V=w.bind(d),tt=w.bind(n.propertyIsEnumerable),et=w.bind(e.sort),rt=t.isArray||function t(e){return"[object Array]"===B(e)},nt=1!==[].unshift(0);J(e,{unshift:function(){return b.apply(this,arguments),this.length}},nt),J(t,{isArray:rt});var ot=r("a"),it="a"!==ot[0]||!(0 in ot),at=function t(e){var r=!0,n=!0,o=!1;if(e)try{e.call("foo",function(t,e,n){"object"!=typeof n&&(r=!1)}),e.call([1],function(){"use strict";n="string"==typeof this},"x")}catch(t){o=!0}return!!e&&!o&&r&&n};J(e,{forEach:function t(e){var r=Y.ToObject(this),n=it&&C(this)?K(this,""):r,o=-1,i=Y.ToUint32(n.length),a;if(arguments.length>1&&(a=arguments[1]),!x(e))throw new TypeError("Array.prototype.forEach callback must be a function");for(;++o<i;)o in n&&(void 0===a?e(n[o],o,r):e.call(a,n[o],o,r))}},!at(e.forEach)),J(e,{map:function e(r){var n=Y.ToObject(this),o=it&&C(this)?K(this,""):n,i=Y.ToUint32(o.length),a=t(i),c;if(arguments.length>1&&(c=arguments[1]),!x(r))throw new TypeError("Array.prototype.map callback must be a function");for(var u=0;u<i;u++)u in o&&(a[u]=void 0===c?r(o[u],u,n):r.call(c,o[u],u,n));return a}},!at(e.map)),J(e,{filter:function t(e){var r=Y.ToObject(this),n=it&&C(this)?K(this,""):r,o=Y.ToUint32(n.length),i=[],a,c;if(arguments.length>1&&(c=arguments[1]),!x(e))throw new TypeError("Array.prototype.filter callback must be a function");for(var u=0;u<o;u++)u in n&&(a=n[u],(void 0===c?e(a,u,r):e.call(c,a,u,r))&&V(i,a));return i}},!at(e.filter)),J(e,{every:function t(e){var r=Y.ToObject(this),n=it&&C(this)?K(this,""):r,o=Y.ToUint32(n.length),i;if(arguments.length>1&&(i=arguments[1]),!x(e))throw new TypeError("Array.prototype.every callback must be a function");for(var a=0;a<o;a++)if(a in n&&!(void 0===i?e(n[a],a,r):e.call(i,n[a],a,r)))return!1;return!0}},!at(e.every)),J(e,{some:function t(e){var r=Y.ToObject(this),n=it&&C(this)?K(this,""):r,o=Y.ToUint32(n.length),i;if(arguments.length>1&&(i=arguments[1]),!x(e))throw new TypeError("Array.prototype.some callback must be a function");for(var a=0;a<o;a++)if(a in n&&(void 0===i?e(n[a],a,r):e.call(i,n[a],a,r)))return!0;return!1}},!at(e.some));var ct=!1;e.reduce&&(ct="object"==typeof e.reduce.call("es5",function(t,e,r,n){return n})),J(e,{reduce:function t(e){var r=Y.ToObject(this),n=it&&C(this)?K(this,""):r,o=Y.ToUint32(n.length);if(!x(e))throw new TypeError("Array.prototype.reduce callback must be a function");if(0===o&&1===arguments.length)throw new TypeError("reduce of empty array with no initial value");var i=0,a;if(arguments.length>=2)a=arguments[1];else for(;;){if(i in n){a=n[i++];break}if(++i>=o)throw new TypeError("reduce of empty array with no initial value")}for(;i<o;i++)i in n&&(a=e(a,n[i],i,r));return a}},!ct);var ut=!1;e.reduceRight&&(ut="object"==typeof e.reduceRight.call("es5",function(t,e,r,n){return n})),J(e,{reduceRight:function t(e){var r=Y.ToObject(this),n=it&&C(this)?K(this,""):r,o=Y.ToUint32(n.length);if(!x(e))throw new TypeError("Array.prototype.reduceRight callback must be a function");if(0===o&&1===arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var i,a=o-1;if(arguments.length>=2)i=arguments[1];else for(;;){if(a in n){i=n[a--];break}if(--a<0)throw new TypeError("reduceRight of empty array with no initial value")}if(a<0)return i;do{a in n&&(i=e(i,n[a],a,r))}while(a--);return i}},!ut);var lt=e.indexOf&&-1!==[0,1].indexOf(1,2);J(e,{indexOf:function t(e){var r=it&&C(this)?K(this,""):Y.ToObject(this),n=Y.ToUint32(r.length);if(0===n)return-1;var o=0;for(arguments.length>1&&(o=Y.ToInteger(arguments[1])),o=o>=0?o:O(0,n+o);o<n;o++)if(o in r&&r[o]===e)return o;return-1}},lt);var st=e.lastIndexOf&&-1!==[0,1].lastIndexOf(0,-3);J(e,{lastIndexOf:function t(e){var r=it&&C(this)?K(this,""):Y.ToObject(this),n=Y.ToUint32(r.length);if(0===n)return-1;var o=n-1;for(arguments.length>1&&(o=m(o,Y.ToInteger(arguments[1]))),o=o>=0?o:n-Math.abs(o);o>=0;o--)if(o in r&&e===r[o])return o;return-1}},st);var ft=function(){var t=[1,2],e=t.splice();return 2===t.length&&rt(e)&&0===e.length}();J(e,{splice:function t(e,r){return 0===arguments.length?[]:y.apply(this,arguments)}},!ft);var pt=function(){var t={};return e.splice.call(t,0,0,1),1===t.length}();J(e,{splice:function t(e,r){if(0===arguments.length)return[];var n=arguments;return this.length=O(Y.ToInteger(this.length),0),arguments.length>0&&"number"!=typeof r&&((n=H(arguments)).length<2?V(n,this.length-e):n[1]=Y.ToInteger(r)),y.apply(this,n)}},!pt);var ht=function(){var e=new t(1e5);return e[8]="x",e.splice(1,1),7===e.indexOf("x")}(),yt=function(){var t=256,e=[];return e[t]="a",e.splice(257,0,"b"),"a"===e[t]}();J(e,{splice:function t(e,r){for(var n=Y.ToObject(this),o=[],i=Y.ToUint32(n.length),a=Y.ToInteger(e),c=a<0?O(i+a,0):m(a,i),u=m(O(Y.ToInteger(r),0),i-c),s=0,f;s<u;)f=l(c+s),X(n,f)&&(o[s]=n[f]),s+=1;var p=H(arguments,2),h=p.length,y;if(h<u){s=c;for(var d=i-u;s<d;)f=l(s+u),y=l(s+h),X(n,f)?n[y]=n[f]:delete n[y],s+=1;s=i;for(var b=i-u+h;s>b;)delete n[s-1],s-=1}else if(h>u)for(s=i-u;s>c;)f=l(s+u-1),y=l(s+h-1),X(n,f)?n[y]=n[f]:delete n[y],s-=1;s=c;for(var g=0;g<p.length;++g)n[s]=p[g],s+=1;return n.length=i-u+h,o}},!ht||!yt);var dt=e.join,bt;try{bt="1,2,3"!==Array.prototype.join.call("123",",")}catch(t){bt=!0}bt&&J(e,{join:function t(e){var r=void 0===e?",":e;return dt.call(C(this)?K(this,""):this,r)}},bt);var gt="1,2"!==[1,2].join(void 0);gt&&J(e,{join:function t(e){var r=void 0===e?",":e;return dt.call(this,r)}},gt);var vt=function t(e){for(var r=Y.ToObject(this),n=Y.ToUint32(r.length),o=0;o<arguments.length;)r[n+o]=arguments[o],o+=1;return r.length=n+o,n+o},wt=function(){var t={};return 1!==Array.prototype.push.call(t,void 0)||1!==t.length||void 0!==t[0]||!X(t,0)}();J(e,{push:function t(e){return rt(this)?d.apply(this,arguments):vt.apply(this,arguments)}},wt);var jt=function(){var t=[];return 1!==t.push(void 0)||1!==t.length||void 0!==t[0]||!X(t,0)}();J(e,{push:vt},jt),J(e,{slice:function(t,e){var r=C(this)?K(this,""):this;return L(r,arguments)}},it);var Ot=function(){try{return[1,2].sort(null),[1,2].sort({}),!0}catch(t){}return!1}(),mt=function(){try{return[1,2].sort(/a/),!1}catch(t){}return!0}(),Tt=function(){try{return[1,2].sort(void 0),!0}catch(t){}return!1}();J(e,{sort:function t(e){if(void 0===e)return et(this);if(!x(e))throw new TypeError("Array.prototype.sort callback must be a function");return et(this,e)}},Ot||!Tt||!mt);var Et=!tt({toString:null},"toString"),xt=tt(function(){},"prototype"),St=!X("x","0"),_t=function(t){var e=t.constructor;return e&&e.prototype===t},Pt={$window:!0,$console:!0,$parent:!0,$self:!0,$frame:!0,$frames:!0,$frameElement:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$external:!0},Mt=function(){if("undefined"==typeof window)return!1;for(var t in window)try{!Pt["$"+t]&&X(window,t)&&null!==window[t]&&"object"==typeof window[t]&&_t(window[t])}catch(t){return!0}return!1}(),It=function(t){if("undefined"==typeof window||!Mt)return _t(t);try{return _t(t)}catch(t){return!1}},Dt=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],kt=Dt.length,Ft=function t(e){return"[object Arguments]"===B(e)},Ut=function t(e){return null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&!rt(e)&&x(e.callee)},Nt=Ft(arguments)?Ft:Ut;J(r,{keys:function t(e){var r=x(e),n=Nt(e),o=null!==e&&"object"==typeof e,i=o&&C(e);if(!o&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var a=[],c=xt&&r;if(i&&St||n)for(var u=0;u<e.length;++u)V(a,l(u));if(!n)for(var s in e)c&&"prototype"===s||!X(e,s)||V(a,l(s));if(Et)for(var f=It(e),p=0;p<kt;p++){var h=Dt[p];f&&"constructor"===h||!X(e,h)||V(a,h)}return a}});var Ct=r.keys&&function(){return 2===r.keys(arguments).length}(1,2),At=r.keys&&function(){var t=r.keys(arguments);return 1!==arguments.length||1!==t.length||1!==t[0]}(1),Rt=r.keys;J(r,{keys:function t(e){return Rt(Nt(e)?H(e):e)}},!Ct||At);var $t=0!==new i(-0xc782b5b342b24).getUTCMonth(),zt=new i(-0x55d318d56a724),Jt=new i(14496624e5),Gt="Mon, 01 Jan -45875 11:59:59 GMT"!==zt.toUTCString(),Zt,Yt;zt.getTimezoneOffset()<-720?(Zt="Tue Jan 02 -45875"!==zt.toDateString(),Yt=!/^Thu Dec 10 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Jt.toString())):(Zt="Mon Jan 01 -45875"!==zt.toDateString(),Yt=!/^Wed Dec 09 2015 \d\d:\d\d:\d\d GMT[-\+]\d\d\d\d(?: |$)/.test(Jt.toString()));var Wt=w.bind(i.prototype.getFullYear),Xt=w.bind(i.prototype.getMonth),Bt=w.bind(i.prototype.getDate),Ht=w.bind(i.prototype.getUTCFullYear),Lt=w.bind(i.prototype.getUTCMonth),qt=w.bind(i.prototype.getUTCDate),Kt=w.bind(i.prototype.getUTCDay),Qt=w.bind(i.prototype.getUTCHours),Vt=w.bind(i.prototype.getUTCMinutes),te=w.bind(i.prototype.getUTCSeconds),ee=w.bind(i.prototype.getUTCMilliseconds),re=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ne=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],oe=function t(e,r){return Bt(new i(r,e,0))};J(i.prototype,{getFullYear:function t(){if(!(this&&this instanceof i))throw new TypeError("this is not a Date object.");var e=Wt(this);return e<0&&Xt(this)>11?e+1:e},getMonth:function t(){if(!(this&&this instanceof i))throw new TypeError("this is not a Date object.");var e=Wt(this),r=Xt(this);return e<0&&r>11?0:r},getDate:function t(){if(!(this&&this instanceof i))throw new TypeError("this is not a Date object.");var e=Wt(this),r=Xt(this),n=Bt(this);return e<0&&r>11?12===r?n:oe(0,e+1)-n+1:n},getUTCFullYear:function t(){if(!(this&&this instanceof i))throw new TypeError("this is not a Date object.");var e=Ht(this);return e<0&&Lt(this)>11?e+1:e},getUTCMonth:function t(){if(!(this&&this instanceof i))throw new TypeError("this is not a Date object.");var e=Ht(this),r=Lt(this);return e<0&&r>11?0:r},getUTCDate:function t(){if(!(this&&this instanceof i))throw new TypeError("this is not a Date object.");var e=Ht(this),r=Lt(this),n=qt(this);return e<0&&r>11?12===r?n:oe(0,e+1)-n+1:n}},$t),J(i.prototype,{toUTCString:function t(){if(!(this&&this instanceof i))throw new TypeError("this is not a Date object.");var e=Kt(this),r=qt(this),n=Lt(this),o=Ht(this),a=Qt(this),c=Vt(this),u=te(this);return re[e]+", "+(r<10?"0"+r:r)+" "+ne[n]+" "+o+" "+(a<10?"0"+a:a)+":"+(c<10?"0"+c:c)+":"+(u<10?"0"+u:u)+" GMT"}},$t||Gt),J(i.prototype,{toDateString:function t(){if(!(this&&this instanceof i))throw new TypeError("this is not a Date object.");var e=this.getDay(),r=this.getDate(),n=this.getMonth(),o=this.getFullYear();return re[e]+" "+ne[n]+" "+(r<10?"0"+r:r)+" "+o}},$t||Zt),($t||Yt)&&(i.prototype.toString=function t(){if(!(this&&this instanceof i))throw new TypeError("this is not a Date object.");var e=this.getDay(),r=this.getDate(),n=this.getMonth(),o=this.getFullYear(),a=this.getHours(),c=this.getMinutes(),u=this.getSeconds(),l=this.getTimezoneOffset(),s=Math.floor(Math.abs(l)/60),f=Math.floor(Math.abs(l)%60);return re[e]+" "+ne[n]+" "+(r<10?"0"+r:r)+" "+o+" "+(a<10?"0"+a:a)+":"+(c<10?"0"+c:c)+":"+(u<10?"0"+u:u)+" GMT"+(l>0?"-":"+")+(s<10?"0"+s:s)+(f<10?"0"+f:f)},z&&r.defineProperty(i.prototype,"toString",{configurable:!0,enumerable:!1,writable:!0}));var ie=-621987552e5,ae="-000001",ce=i.prototype.toISOString&&-1===new i(-621987552e5).toISOString().indexOf("-000001"),ue=i.prototype.toISOString&&"1969-12-31T23:59:59.999Z"!==new i(-1).toISOString(),le=w.bind(i.prototype.getTime);J(i.prototype,{toISOString:function t(){if(!isFinite(this)||!isFinite(le(this)))throw new RangeError("Date.prototype.toISOString called on non-finite value.");var e=Ht(this),r=Lt(this);e+=Math.floor(r/12);var n=[(r=(r%12+12)%12)+1,qt(this),Qt(this),Vt(this),te(this)];e=(e<0?"-":e>9999?"+":"")+q("00000"+Math.abs(e),0<=e&&e<=9999?-4:-6);for(var o=0;o<n.length;++o)n[o]=q("00"+n[o],-2);return e+"-"+H(n,0,2).join("-")+"T"+H(n,2).join(":")+"."+q("000"+ee(this),-3)+"Z"}},ce||ue),function(){try{return i.prototype.toJSON&&null===new i(NaN).toJSON()&&-1!==new i(-621987552e5).toJSON().indexOf("-000001")&&i.prototype.toJSON.call({toISOString:function(){return!0}})}catch(t){return!1}}()||(i.prototype.toJSON=function t(e){var n=r(this),o=Y.ToPrimitive(n);if("number"==typeof o&&!isFinite(o))return null;var i=n.toISOString;if(!x(i))throw new TypeError("toISOString property is not callable");return i.call(n)});var se=1e15===i.parse("+033658-09-27T01:46:40.000Z"),fe=!isNaN(i.parse("2012-04-04T24:00:00.500Z"))||!isNaN(i.parse("2012-11-31T23:59:59.000Z"))||!isNaN(i.parse("2012-12-31T23:59:60.000Z"));if(isNaN(i.parse("2000-01-01T00:00:00.000Z"))||fe||!se){var pe=Math.pow(2,31)-1,he=Z(new i(1970,0,1,0,0,0,pe+1).getTime());i=function(t){var e=function r(n,o,i,a,c,u,s){var f=arguments.length,p;if(this instanceof t){var h=u,y=s;if(he&&f>=7&&s>pe){var d=Math.floor(s/pe)*pe,b=Math.floor(d/1e3);h+=b,y-=1e3*b}p=1===f&&l(n)===n?new t(e.parse(n)):f>=7?new t(n,o,i,a,c,h,y):f>=6?new t(n,o,i,a,c,h):f>=5?new t(n,o,i,a,c):f>=4?new t(n,o,i,a):f>=3?new t(n,o,i):f>=2?new t(n,o):f>=1?new t(n instanceof t?+n:n):new t}else p=t.apply(this,arguments);return G(p)||J(p,{constructor:e},!0),p},r=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),n=[0,31,59,90,120,151,181,212,243,273,304,334,365],o=function t(e,r){var o=r>1?1:0;return n[r]+Math.floor((e-1969+o)/4)-Math.floor((e-1901+o)/100)+Math.floor((e-1601+o)/400)+365*(e-1970)},i=function e(r){var n=0,o=r;if(he&&o>pe){var i=Math.floor(o/pe)*pe,a=Math.floor(i/1e3);n+=a,o-=1e3*a}return f(new t(1970,0,1,0,0,n,o))};for(var a in t)X(t,a)&&(e[a]=t[a]);return J(e,{now:t.now,UTC:t.UTC},!0),e.prototype=t.prototype,J(e.prototype,{constructor:e},!0),J(e,{parse:function e(n){var a=r.exec(n);if(a){var c=f(a[1]),u=f(a[2]||1)-1,l=f(a[3]||1)-1,s=f(a[4]||0),p=f(a[5]||0),h=f(a[6]||0),y=Math.floor(1e3*f(a[7]||0)),d=Boolean(a[4]&&!a[8]),b="-"===a[9]?1:-1,g=f(a[10]||0),v=f(a[11]||0),w;return s<(p>0||h>0||y>0?24:25)&&p<60&&h<60&&y<1e3&&u>-1&&u<12&&g<24&&v<60&&l>-1&&l<o(c,u+1)-o(c,u)&&(w=60*(24*(o(c,u)+l)+s+g*b),w=1e3*(60*(w+p+v*b)+h)+y,d&&(w=i(w)),-864e13<=w&&w<=864e13)?w:NaN}return t.parse.apply(this,arguments)}}),e}(i)}i.now||(i.now=function t(){return(new i).getTime()});var ye=p.toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0)),de={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function t(e,r){for(var n=-1,o=r;++n<de.size;)o+=e*de.data[n],de.data[n]=o%de.base,o=Math.floor(o/de.base)},divide:function t(e){for(var r=de.size,n=0;--r>=0;)n+=de.data[r],de.data[r]=Math.floor(n/e),n=n%e*de.base},numToString:function t(){for(var e=de.size,r="";--e>=0;)if(""!==r||0===e||0!==de.data[e]){var n=l(de.data[e]);""===r?r=n:r+=q("0000000",0,7-n.length)+n}return r},pow:function t(e,r,n){return 0===r?n:r%2==1?t(e,r-1,n*e):t(e*e,r/2,n)},log:function t(e){for(var r=0,n=e;n>=4096;)r+=12,n/=4096;for(;n>=2;)r+=1,n/=2;return r}};J(p,{toFixed:function t(e){var r,n,o,i,a,c,u,s;if(r=f(e),(r=Z(r)?0:Math.floor(r))<0||r>20)throw new RangeError("Number.toFixed called with invalid number of decimals");if(n=f(this),Z(n))return"NaN";if(n<=-1e21||n>=1e21)return l(n);if(o="",n<0&&(o="-",n=-n),i="0",n>1e-21)if(a=de.log(n*de.pow(2,69,1))-69,c=a<0?n*de.pow(2,-a,1):n/de.pow(2,a,1),c*=4503599627370496,(a=52-a)>0){for(de.multiply(0,c),u=r;u>=7;)de.multiply(1e7,0),u-=7;for(de.multiply(de.pow(10,u,1),0),u=a-1;u>=23;)de.divide(1<<23),u-=23;de.divide(1<<u),de.multiply(1,1),de.divide(2),i=de.numToString()}else de.multiply(0,c),de.multiply(1<<-a,0),i=de.numToString()+q("0.00000000000000000000",2,2+r);return i=r>0?(s=i.length)<=r?o+q("0.0000000000000000000",0,r-s+2)+i:o+q(i,0,s-r)+"."+q(i,s-r):o+i}},ye);var be=function(){try{return"1"===1..toPrecision(void 0)}catch(t){return!0}}(),ge=p.toPrecision;J(p,{toPrecision:function t(e){return void 0===e?ge.call(this):ge.call(this,e)}},be),2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?function(){var t=void 0===/()??/.exec("")[1],e=Math.pow(2,32)-1;s.split=function(r,n){var o=String(this);if(void 0===r&&0===n)return[];if(!k(r))return K(this,r,n);var i=[],a=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":""),c=0,u,l,s,f,p=new RegExp(r.source,a+"g");t||(u=new RegExp("^"+p.source+"$(?!\\s)",a));var h=void 0===n?e:Y.ToUint32(n);for(l=p.exec(o);l&&!((s=l.index+l[0].length)>c&&(V(i,q(o,c,l.index)),!t&&l.length>1&&l[0].replace(u,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(l[t]=void 0)}),l.length>1&&l.index<o.length&&d.apply(i,H(l,1)),f=l[0].length,c=s,i.length>=h));)p.lastIndex===l.index&&p.lastIndex++,l=p.exec(o);return c===o.length?!f&&p.test("")||V(i,""):V(i,q(o,c)),i.length>h?H(i,0,h):i}}():"0".split(void 0,0).length&&(s.split=function t(e,r){return void 0===e&&0===r?[]:K(this,e,r)});var ve=s.replace;(function(){var t=[];return"x".replace(/x(.)?/g,function(e,r){V(t,r)}),1===t.length&&void 0===t[0]})()||(s.replace=function t(e,r){var n=x(r),o=k(e)&&/\)[*?]/.test(e.source);if(n&&o){var i=function(t){var n=arguments.length,o=e.lastIndex;e.lastIndex=0;var i=e.exec(t)||[];return e.lastIndex=o,V(i,arguments[n-2],arguments[n-1]),r.apply(this,i)};return ve.call(this,e,i)}return ve.call(this,e,r)});var we=s.substr,je="".substr&&"b"!=="0b".substr(-1);J(s,{substr:function t(e,r){var n=e;return e<0&&(n=O(this.length+e,0)),we.call(this,n,r)}},je);var Oe="\t\n\v\f\r áš€á Žâ€€â€â€‚â€ƒâ€„â€…â€†â€‡â€ˆâ€‰â€Šâ€¯âŸã€€\u2028\u2029\ufeff",me="​",Te="["+Oe+"]",Ee=new RegExp("^"+Te+Te+"*"),xe=new RegExp(Te+Te+"*$"),Se=s.trim&&(Oe.trim()||!"​".trim());J(s,{trim:function t(){if(void 0===this||null===this)throw new TypeError("can't convert "+this+" to object");return l(this).replace(Ee,"").replace(xe,"")}},Se);var _e=w.bind(String.prototype.trim),Pe=s.lastIndexOf&&-1!=="abcあい".lastIndexOf("あい",2);J(s,{lastIndexOf:function t(e){if(void 0===this||null===this)throw new TypeError("can't convert "+this+" to object");for(var r=l(this),n=l(e),o=arguments.length>1?f(arguments[1]):NaN,i=Z(o)?1/0:Y.ToInteger(o),a=m(O(i,0),r.length),c=n.length,u=a+c;u>0;){u=O(0,u-c);var s=Q(q(r,u,a+c),n);if(-1!==s)return u+s}return-1}},Pe);var Me=s.lastIndexOf;if(J(s,{lastIndexOf:function t(e){return Me.apply(this,arguments)}},1!==s.lastIndexOf.length),8===a(Oe+"08")&&22===a(Oe+"0x16")||(a=function(t){var e=/^[\-+]?0[xX]/;return function r(n,o){var i=_e(String(n)),a=f(o)||(e.test(i)?16:10);return t(i,a)}}(a)),1/c("-0")!=-1/0&&(c=function(t){return function e(r){var n=_e(String(r)),o=t(n);return 0===o&&"-"===q(n,0,1)?-0:o}}(c)),"RangeError: test"!==String(new RangeError("test"))){var Ie=function t(){if(void 0===this||null===this)throw new TypeError("can't convert "+this+" to object");var e=this.name;void 0===e?e="Error":"string"!=typeof e&&(e=l(e));var r=this.message;return void 0===r?r="":"string"!=typeof r&&(r=l(r)),e?r?e+": "+r:e:r};Error.prototype.toString=Ie}if(z){var De=function(t,e){if(tt(t,e)){var r=Object.getOwnPropertyDescriptor(t,e);r.configurable&&(r.enumerable=!1,Object.defineProperty(t,e,r))}};De(Error.prototype,"message"),""!==Error.prototype.message&&(Error.prototype.message=""),De(Error.prototype,"name")}if("/a/gim"!==String(/a/gim)){var ke=function t(){var e="/"+this.source+"/";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),e};RegExp.prototype.toString=ke}})},"es5-sham.js":function(t,e,r){!function(t,n){"use strict";"function"==typeof define&&define.amd?define(n):"object"==typeof e?r.exports=n():t.returnExports=n()}(this,function(){var t=Function.call,e=Object.prototype,r=t.bind(e.hasOwnProperty),n=t.bind(e.propertyIsEnumerable),o=t.bind(e.toString),i,a,c,u,l=r(e,"__defineGetter__");l&&(i=t.bind(e.__defineGetter__),a=t.bind(e.__defineSetter__),c=t.bind(e.__lookupGetter__),u=t.bind(e.__lookupSetter__));var s=function t(e){return null==e||"object"!=typeof e&&"function"!=typeof e};Object.getPrototypeOf||(Object.getPrototypeOf=function t(r){var n=r.__proto__;return n||null===n?n:"[object Function]"===o(r.constructor)?r.constructor.prototype:r instanceof Object?e:null});var f=function t(e){try{return e.sentinel=0,0===Object.getOwnPropertyDescriptor(e,"sentinel").value}catch(t){return!1}};if(Object.defineProperty){var p=f({});if(!("undefined"==typeof document||f(document.createElement("div")))||!p)var h=Object.getOwnPropertyDescriptor}if(!Object.getOwnPropertyDescriptor||h){var y="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function t(o,i){if(s(o))throw new TypeError(y+o);if(h)try{return h.call(Object,o,i)}catch(t){}var a;if(!r(o,i))return a;if(a={enumerable:n(o,i),configurable:!0},l){var f=o.__proto__,p=o!==e;p&&(o.__proto__=e);var d=c(o,i),b=u(o,i);if(p&&(o.__proto__=f),d||b)return d&&(a.get=d),b&&(a.set=b),a}return a.value=o[i],a.writable=!0,a}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function t(e){return Object.keys(e)}),!Object.create){var d,b=!({__proto__:null}instanceof Object),g=function t(){if(!document.domain)return!1;try{return!!new ActiveXObject("htmlfile")}catch(t){return!1}},v=function t(){var e,r,n="script";return(r=new ActiveXObject("htmlfile")).write("<script><\/script>"),r.close(),e=r.parentWindow.Object.prototype,r=null,e},w=function t(){var e=document.createElement("iframe"),r=document.body||document.documentElement,n;return e.style.display="none",r.appendChild(e),e.src="javascript:",n=e.contentWindow.Object.prototype,r.removeChild(e),e=null,n};d=b||"undefined"==typeof document?function(){return{__proto__:null}}:function(){var t=g()?v():w();delete t.constructor,delete t.hasOwnProperty,delete t.propertyIsEnumerable,delete t.isPrototypeOf,delete t.toLocaleString,delete t.toString,delete t.valueOf;var e=function t(){};return e.prototype=t,d=function(){return new e},new e},Object.create=function t(e,r){var n,o=function t(){};if(null===e)n=d();else{if(null!==e&&s(e))throw new TypeError("Object prototype may only be an Object or null");o.prototype=e,(n=new o).__proto__=e}return void 0!==r&&Object.defineProperties(n,r),n}}var j=function t(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(t){return!1}};if(Object.defineProperty){var O=j({}),m="undefined"==typeof document||j(document.createElement("div"));if(!O||!m)var T=Object.defineProperty,E=Object.defineProperties}if(!Object.defineProperty||T){var x="Property description must be an object: ",S="Object.defineProperty called on non-object: ",_="getters & setters can not be defined on this javascript engine";Object.defineProperty=function t(r,n,o){if(s(r))throw new TypeError(S+r);if(s(o))throw new TypeError(x+o);if(T)try{return T.call(Object,r,n,o)}catch(t){}if("value"in o)if(l&&(c(r,n)||u(r,n))){var f=r.__proto__;r.__proto__=e,delete r[n],r[n]=o.value,r.__proto__=f}else r[n]=o.value;else{var p="get"in o,h="set"in o;if(!l&&(p||h))throw new TypeError(_);p&&i(r,n,o.get),h&&a(r,n,o.set)}return r}}Object.defineProperties&&!E||(Object.defineProperties=function t(e,r){if(E)try{return E.call(Object,e,r)}catch(t){}return Object.keys(r).forEach(function(t){"__proto__"!==t&&Object.defineProperty(e,t,r[t])}),e}),Object.seal||(Object.seal=function t(e){if(Object(e)!==e)throw new TypeError("Object.seal can only be called on Objects.");return e}),Object.freeze||(Object.freeze=function t(e){if(Object(e)!==e)throw new TypeError("Object.freeze can only be called on Objects.");return e});try{Object.freeze(function(){})}catch(t){Object.freeze=function(t){return function e(r){return"function"==typeof r?r:t(r)}}(Object.freeze)}Object.preventExtensions||(Object.preventExtensions=function t(e){if(Object(e)!==e)throw new TypeError("Object.preventExtensions can only be called on Objects.");return e}),Object.isSealed||(Object.isSealed=function t(e){if(Object(e)!==e)throw new TypeError("Object.isSealed can only be called on Objects.");return!1}),Object.isFrozen||(Object.isFrozen=function t(e){if(Object(e)!==e)throw new TypeError("Object.isFrozen can only be called on Objects.");return!1}),Object.isExtensible||(Object.isExtensible=function t(e){if(Object(e)!==e)throw new TypeError("Object.isExtensible can only be called on Objects.");for(var n="";r(e,n);)n+="?";e[n]=!0;var o=r(e,n);return delete e[n],o})})}}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/es5-shim/client.js");"undefined"==typeof Package&&(Package={}),Package["es5-shim"]=l}();

!function(){var n=Package.meteor.Meteor,t=Package.meteor.global,e=Package.meteor.meteorEnv,o=Package.modules.meteorInstall,i=Package.modules.process,r,u=o({node_modules:{meteor:{promise:{"client.js":function(n,t){n("meteor-promise").makeCompatible(t.Promise=n("./common.js").Promise)},"common.js":function(t,e){var o=this;"function"==typeof o.Promise?e.Promise=o.Promise:e.Promise=t("promise/lib/es6-extensions"),e.Promise.prototype.done=function(t,e){var o=this;arguments.length>0&&(o=this.then.apply(this,arguments)),o.then(null,function(t){n._setImmediate(function(){throw t})})}},node_modules:{"meteor-promise":{"package.json":function(n,t){t.name="meteor-promise",t.version="0.8.4",t.browser="promise_client.js",t.main="promise_server.js"},"promise_client.js":function(t,e){function o(n){throw n}e.makeCompatible=function(t){var e=t.prototype.then;t.prototype.then=function(t,i){return"object"==typeof n&&"function"==typeof n.bindEnvironment?e.call(this,t&&n.bindEnvironment(t,o),i&&n.bindEnvironment(i,o)):e.call(this,t,i)}}}},promise:{lib:{"es6-extensions.js":function(n,t,e){"use strict";function o(n){var t=new i(i._61);return t._81=1,t._65=n,t}var i=n("./core.js");e.exports=i;var r=o(!0),u=o(!1),c=o(null),f=o(void 0),s=o(0),a=o("");i.resolve=function(n){if(n instanceof i)return n;if(null===n)return c;if(void 0===n)return f;if(!0===n)return r;if(!1===n)return u;if(0===n)return s;if(""===n)return a;if("object"==typeof n||"function"==typeof n)try{var t=n.then;if("function"==typeof t)return new i(t.bind(n))}catch(n){return new i(function(t,e){e(n)})}return o(n)},i.all=function(n){var t=Array.prototype.slice.call(n);return new i(function(n,e){function o(u,c){if(c&&("object"==typeof c||"function"==typeof c)){if(c instanceof i&&c.then===i.prototype.then){for(;3===c._81;)c=c._65;return 1===c._81?o(u,c._65):(2===c._81&&e(c._65),void c.then(function(n){o(u,n)},e))}var f=c.then;if("function"==typeof f)return void new i(f.bind(c)).then(function(n){o(u,n)},e)}t[u]=c,0==--r&&n(t)}if(0===t.length)return n([]);for(var r=t.length,u=0;u<t.length;u++)o(u,t[u])})},i.reject=function(n){return new i(function(t,e){e(n)})},i.race=function(n){return new i(function(t,e){n.forEach(function(n){i.resolve(n).then(t,e)})})},i.prototype.catch=function(n){return this.then(null,n)}},"core.js":function(n,t,e){"use strict";function o(){}function i(n){try{return n.then}catch(n){return d=n,y}}function r(n,t){try{return n(t)}catch(n){return d=n,y}}function u(n,t,e){try{n(t,e)}catch(n){return d=n,y}}function c(n){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof n)throw new TypeError("not a function");this._45=0,this._81=0,this._65=null,this._54=null,n!==o&&_(n,this)}function f(n,t,e){return new n.constructor(function(i,r){var u=new c(o);u.then(i,r),s(n,new h(t,e,u))})}function s(n,t){for(;3===n._81;)n=n._65;if(c._10&&c._10(n),0===n._81)return 0===n._45?(n._45=1,void(n._54=t)):1===n._45?(n._45=2,void(n._54=[n._54,t])):void n._54.push(t);a(n,t)}function a(n,t){v(function(){var e=1===n._81?t.onFulfilled:t.onRejected;if(null!==e){var o=r(e,n._65);o===y?m(t.promise,d):l(t.promise,o)}else 1===n._81?l(t.promise,n._65):m(t.promise,n._65)})}function l(n,t){if(t===n)return m(n,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var e=i(t);if(e===y)return m(n,d);if(e===n.then&&t instanceof c)return n._81=3,n._65=t,void p(n);if("function"==typeof e)return void _(e.bind(t),n)}n._81=1,n._65=t,p(n)}function m(n,t){n._81=2,n._65=t,c._97&&c._97(n,t),p(n)}function p(n){if(1===n._45&&(s(n,n._54),n._54=null),2===n._45){for(var t=0;t<n._54.length;t++)s(n,n._54[t]);n._54=null}}function h(n,t,e){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=e}function _(n,t){var e=!1,o=u(n,function(n){e||(e=!0,l(t,n))},function(n){e||(e=!0,m(t,n))});e||o!==y||(e=!0,m(t,d))}var v=n("asap/raw"),d=null,y={};e.exports=c,c._10=null,c._97=null,c._61=o,c.prototype.then=function(n,t){if(this.constructor!==c)return f(this,n,t);var e=new c(o);return s(this,new h(n,t,e)),e}}}},asap:{"raw.js":function(n,t,e){"use strict";function o(n){s.length||(u(),a=!0),s[s.length]=n}function r(){for(;l<s.length;){var n=l;if(l+=1,s[n].call(),l>m){for(var t=0,e=s.length-l;t<e;t++)s[t]=s[t+l];s.length-=l,l=0}}s.length=0,l=0,a=!1}function u(){var t=i.domain;t&&(c||(c=n("domain")),c.active=i.domain=null),a&&f?setImmediate(r):i.nextTick(r),t&&(c.active=i.domain=t)}var c,f="function"==typeof setImmediate;e.exports=o;var s=[],a=!1,l=0,m=1024;o.requestFlush=u}}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/promise/client.js");"undefined"==typeof Package&&(Package={}),function(n,t){for(var e in t)e in n||(n[e]=t[e])}(Package.promise=u,{Promise:void 0})}();

!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,t=Package.modules.meteorInstall,o=Package.modules.process,a=Package.promise.Promise,i,l=t({node_modules:{meteor:{"babel-runtime":{"babel-runtime.js":function(e,n){n.meteorBabelHelpers=e("meteor-babel-helpers"),n.checkHelper=function e(n){return!1};try{var r=e("babel-runtime/regenerator")}catch(e){throw new Error(["The babel-runtime npm package could not be found in your node_modules ","directory. Please run the following command to install it:",""," meteor npm install --save babel-runtime",""].join("\n"))}if(r&&"function"==typeof a&&"function"==typeof a.asyncApply){var t=r.async;r.async=function(){return a.asyncApply(t,r,arguments)}}},node_modules:{"meteor-babel-helpers":{"package.json":function(e,n){n.name="meteor-babel-helpers",n.version="0.0.3",n.main="index.js"},"index.js":function(e,n,r){function t(){var e={},n="t";try{Object.defineProperty(e,"t",{enumerable:!1,value:e});for(var r in e)if("t"===r)return!1}catch(e){return!1}return e.t===e}function o(e){return e}function a(e){if(Array.isArray(e)){for(var n={},r=Object.keys(e),t=r.length,o=0;o<t;++o){var a=r[o];n[a]=e[a]}return n}return e}i=r.exports={sanitizeForInObject:t()?o:a,_sanitizeForInObjectHard:a}}}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/babel-runtime/babel-runtime.js");"undefined"==typeof Package&&(Package={}),function(e,n){for(var r in n)r in e||(e[r]=n[r])}(Package["babel-runtime"]=l,{meteorBabelHelpers:i})}();

!function(){var e=Package.meteor.Meteor,s=Package.meteor.global,o=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,n=Package.modules.process,c=Package.promise.Promise,t,m,a,u=r({node_modules:{meteor:{"ecmascript-runtime-client":{"runtime.js":function(e,s,o){try{e("core-js/modules/es6.symbol"),e("core-js/modules/es6.map"),e("core-js/modules/es6.set");var r=function(){try{return e("core-js/modules/_core")}catch(s){return e("core-js/modules/$.core")}}()}catch(e){throw new Error(["The core-js npm package could not be found in your node_modules ","directory. Please run the following command to install it:",""," meteor npm install --save core-js",""].join("\n"))}t=s.Symbol=r.Symbol,m=s.Map=r.Map,a=s.Set=r.Set,e("core-js/es6/array"),e("core-js/es6/function"),e("core-js/es6/math"),e("core-js/es6/object"),e("core-js/es6/string"),e("core-js/es6/weak-map"),e("core-js/es6/weak-set"),e("core-js/es7/array"),e("core-js/es7/object"),e("core-js/modules/es6.number.epsilon"),e("core-js/modules/es6.number.is-finite"),e("core-js/modules/es6.number.is-integer"),e("core-js/modules/es6.number.is-nan"),e("core-js/modules/es6.number.is-safe-integer"),e("core-js/modules/es6.number.max-safe-integer"),e("core-js/modules/es6.number.min-safe-integer"),e("core-js/modules/es6.number.parse-float"),e("core-js/modules/es6.number.parse-int"),e("core-js/modules/es6.typed.uint8-array"),e("core-js/modules/es6.typed.uint32-array")}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/ecmascript-runtime-client/runtime.js");"undefined"==typeof Package&&(Package={}),function(e,s){for(var o in s)o in e||(e[o]=s[o])}(Package["ecmascript-runtime-client"]=u,{Symbol:t,Map:m,Set:a})}();

!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package.underscore._,o=Package.modules.meteorInstall,i=Package.modules.process,a=Package["babel-runtime"].meteorBabelHelpers,d=Package.promise.Promise,c=Package["ecmascript-runtime-client"].Symbol,u=Package["ecmascript-runtime-client"].Map,s=Package["ecmascript-runtime-client"].Set,p,m=o({node_modules:{meteor:{random:{"random.js":function(n){function t(){return new d(d.Type.ALEA,{seeds:[new Date,c,u,s,Math.random()]})}if(e.isServer)var r=Npm.require("crypto");var o=function(){function e(){var e=4022871197,n=function(n){n=n.toString();for(var t=0;t<n.length;t++){var r=.02519603282416938*(e+=n.charCodeAt(t));r-=e=r>>>0,e=(r*=e)>>>0,e+=4294967296*(r-=e)}return 2.3283064365386963e-10*(e>>>0)};return n.version="Mash 0.9",n}return function(n){var t=0,r=0,o=0,i=1;0==n.length&&(n=[+new Date]);var a=e();t=a(" "),r=a(" "),o=a(" ");for(var d=0;d<n.length;d++)(t-=a(n[d]))<0&&(t+=1),(r-=a(n[d]))<0&&(r+=1),(o-=a(n[d]))<0&&(o+=1);a=null;var c=function(){var e=2091639*t+2.3283064365386963e-10*i;return t=r,r=o,o=e-(i=0|e)};return c.uint32=function(){return 4294967296*c()},c.fract53=function(){return c()+1.1102230246251565e-16*(2097152*c()|0)},c.version="Alea 0.9",c.args=n,c}(Array.prototype.slice.call(arguments))},i="23456789ABCDEFGHJKLMNPQRSTWXYZabcdefghijkmnopqrstuvwxyz",a="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",d=function(e,n){var t=this;if(t.type=e,!d.Type[e])throw new Error("Unknown random generator type: "+e);if(e===d.Type.ALEA){if(!n.seeds)throw new Error("No seeds were provided for Alea PRNG");t.alea=o.apply(null,n.seeds)}};d.Type={NODE_CRYPTO:"NODE_CRYPTO",BROWSER_CRYPTO:"BROWSER_CRYPTO",ALEA:"ALEA"},d.prototype.fraction=function(){var e=this;if(e.type===d.Type.ALEA)return e.alea();if(e.type===d.Type.NODE_CRYPTO)return 2.3283064365386963e-10*parseInt(e.hexString(8),16);if(e.type===d.Type.BROWSER_CRYPTO){var n=new Uint32Array(1);return window.crypto.getRandomValues(n),2.3283064365386963e-10*n[0]}throw new Error("Unknown random generator type: "+e.type)},d.prototype.hexString=function(e){if(this.type===d.Type.NODE_CRYPTO){var n=Math.ceil(e/2),t;try{t=r.randomBytes(n)}catch(e){t=r.pseudoRandomBytes(n)}return t.toString("hex").substring(0,e)}return this._randomString(e,"0123456789abcdef")},d.prototype._randomString=function(e,n){for(var t=this,r=[],o=0;o<e;o++)r[o]=t.choice(n);return r.join("")},d.prototype.id=function(e){var n=this;return void 0===e&&(e=17),n._randomString(e,i)},d.prototype.secret=function(e){var n=this;return void 0===e&&(e=43),n._randomString(e,a)},d.prototype.choice=function(e){var n=Math.floor(this.fraction()*e.length);return"string"==typeof e?e.substr(n,1):e[n]};var c="undefined"!=typeof window&&window.innerHeight||"undefined"!=typeof document&&document.documentElement&&document.documentElement.clientHeight||"undefined"!=typeof document&&document.body&&document.body.clientHeight||1,u="undefined"!=typeof window&&window.innerWidth||"undefined"!=typeof document&&document.documentElement&&document.documentElement.clientWidth||"undefined"!=typeof document&&document.body&&document.body.clientWidth||1,s="undefined"!=typeof navigator&&navigator.userAgent||"";(p=e.isServer?new d(d.Type.NODE_CRYPTO):"undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues?new d(d.Type.BROWSER_CRYPTO):t()).createWithSeeds=function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];if(0===n.length)throw new Error("No seeds were provided");return new d(d.Type.ALEA,{seeds:n})},p.insecure=t()},"deprecated.js":function(){e.uuid=function(){for(var e="0123456789abcdef",n=[],t=0;t<36;t++)n[t]=p.choice(e);return n[14]="4",n[19]=e.substr(3&parseInt(n[19],16)|8,1),n[8]=n[13]=n[18]=n[23]="-",n.join("")}}}}}},{extensions:[".js",".json"]});m("./node_modules/meteor/random/random.js"),m("./node_modules/meteor/random/deprecated.js"),"undefined"==typeof Package&&(Package={}),function(e,n){for(var t in n)t in e||(e[t]=n[t])}(Package.random={},{Random:p})}();

!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,r=Package.meteor.meteorEnv,o=Package.ejson.EJSON,n=Package["id-map"].IdMap,i=Package.random.Random,a;(function(){(a={})._looksLikeObjectID=function(t){return 24===t.length&&t.match(/^[0-9a-f]*$/)},a.ObjectID=function(t){var e=this;if(t){if(t=t.toLowerCase(),!a._looksLikeObjectID(t))throw new Error("Invalid hexadecimal string for creating an ObjectID");e._str=t}else e._str=i.hexString(24)},a.ObjectID.prototype.toString=function(){return'ObjectID("'+this._str+'")'},a.ObjectID.prototype.equals=function(t){var e=this;return t instanceof a.ObjectID&&e.valueOf()===t.valueOf()},a.ObjectID.prototype.clone=function(){var t=this;return new a.ObjectID(t._str)},a.ObjectID.prototype.typeName=function(){return"oid"},a.ObjectID.prototype.getTimestamp=function(){var t=this;return parseInt(t._str.substr(0,8),16)},a.ObjectID.prototype.valueOf=a.ObjectID.prototype.toJSONValue=a.ObjectID.prototype.toHexString=function(){return this._str},o.addType("oid",function(t){return new a.ObjectID(t)}),a.idStringify=function(t){if(t instanceof a.ObjectID)return t.valueOf();if("string"==typeof t)return""===t?t:"-"===t.substr(0,1)||"~"===t.substr(0,1)||a._looksLikeObjectID(t)||"{"===t.substr(0,1)?"-"+t:t;if(void 0===t)return"-";if("object"==typeof t&&null!==t)throw new Error("Meteor does not currently support objects other than ObjectID as ids");return"~"+JSON.stringify(t)},a.idParse=function(t){return""===t?t:"-"===t?void 0:"-"===t.substr(0,1)?t.substr(1):"~"===t.substr(0,1)?JSON.parse(t.substr(1)):a._looksLikeObjectID(t)?new a.ObjectID(t):t}}).call(this),"undefined"==typeof Package&&(Package={}),function(t,e){for(var r in e)r in t||(t[r]=e[r])}(Package["mongo-id"]={},{MongoID:a})}();

!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,d=Package.meteor.meteorEnv,i=Package.underscore._,a=Package.ejson.EJSON,r;(function(){(r={}).diffQueryChanges=function(e,n,d,i,a){e?r.diffQueryOrderedChanges(n,d,i,a):r.diffQueryUnorderedChanges(n,d,i,a)},r.diffQueryUnorderedChanges=function(e,n,d,o){var f=(o=o||{}).projectionFn||a.clone;if(d.movedBefore)throw new Error("_diffQueryUnordered called with a movedBefore observer!");n.forEach(function(n,o){var t=e.get(o);if(t){if(d.changed&&!a.equals(t,n)){var c=f(n),u=f(t),h=r.makeChangedFields(c,u);i.isEmpty(h)||d.changed(o,h)}}else if(d.added){var l=f(n);delete l._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){var t=(f=f||{}).projectionFn||a.clone,c={};i.each(d,function(n){c[n._id]&&e._debug("Duplicate _id in new_results"),c[n._id]=!0});var u={};i.each(n,function(n,d){n._id in u&&e._debug("Duplicate _id in old_results"),u[n._id]=d});for(var h=[],l=0,s=d.length,g=new Array(s),v=new Array(s),_=function(e){return u[d[e]._id]},m=0;m<s;m++)if(void 0!==u[d[m]._id]){for(var y=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(var k=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)});var p=0;i.each(h,function(e){for(var a=d[e]?d[e]._id:null,f,c,h,l,s,g=p;g<e;g++)c=d[g],i.has(u,c._id)?(f=n[u[c._id]],l=t(c),s=t(f),h=r.makeChangedFields(l,s),i.isEmpty(h)||o.changed&&o.changed(c._id,h),o.movedBefore&&o.movedBefore(c._id,a)):(delete(h=t(c))._id,o.addedBefore&&o.addedBefore(c._id,h,a),o.added&&o.added(c._id,h));a&&(c=d[e],f=n[u[c._id]],l=t(c),s=t(f),h=r.makeChangedFields(l,s),i.isEmpty(h)||o.changed&&o.changed(c._id,h)),p=e+1})},r.diffObjects=function(e,n,d){i.each(e,function(e,a){i.has(n,a)?d.both&&d.both(a,e,n[a]):d.leftOnly&&d.leftOnly(a,e)}),d.rightOnly&&i.each(n,function(n,a){i.has(e,a)||d.rightOnly(a,n)})},r.makeChangedFields=function(e,n){var d={};return r.diffObjects(n,e,{leftOnly:function(e,n){d[e]=void 0},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){void 0===n?delete e[d]:e[d]=n})}}).call(this),"undefined"==typeof Package&&(Package={}),function(e,n){for(var d in n)d in e||(e[d]=n[d])}(Package["diff-sequence"]={},{DiffSequence:r})}();

!function(){var t=Package.meteor.Meteor,n=Package.meteor.global,o=Package.meteor.meteorEnv,a=Package.modules.meteorInstall,e=Package.modules.process,r,i=a({node_modules:{meteor:{"geojson-utils":{"main.js":function(t,n){n.GeoJSON=t("./geojson-utils.js")},"geojson-utils.js":function(t,n,o){!function(){function t(t){for(var n=[],o=[],a=0;a<t[0].length;a++)n.push(t[0][a][1]),o.push(t[0][a][0]);return n=n.sort(function(t,n){return t-n}),o=o.sort(function(t,n){return t-n}),[[n[0],o[0]],[n[n.length-1],o[o.length-1]]]}function n(t,n,o){for(var a=[[0,0]],e=0;e<o.length;e++){for(var r=0;r<o[e].length;r++)a.push(o[e][r]);a.push([0,0])}for(var i=!1,e=0,r=a.length-1;e<a.length;r=e++)a[e][0]>n!=a[r][0]>n&&t<(a[r][1]-a[e][1])*(n-a[e][0])/(a[r][0]-a[e][0])+a[e][1]&&(i=!i);return i}var a={};void 0!==o&&o.exports&&(o.exports=a),a.lineStringsIntersect=function(t,n){for(var o=[],a=0;a<=t.coordinates.length-2;++a)for(var e=0;e<=n.coordinates.length-2;++e){var r={x:t.coordinates[a][1],y:t.coordinates[a][0]},i={x:t.coordinates[a+1][1],y:t.coordinates[a+1][0]},s={x:n.coordinates[e][1],y:n.coordinates[e][0]},c={x:n.coordinates[e+1][1],y:n.coordinates[e+1][0]},u=(c.x-s.x)*(r.y-s.y)-(c.y-s.y)*(r.x-s.x),h=(i.x-r.x)*(r.y-s.y)-(i.y-r.y)*(r.x-s.x),d=(c.y-s.y)*(i.x-r.x)-(c.x-s.x)*(i.y-r.y);if(0!=d){var l=u/d,g=h/d;0<=l&&l<=1&&0<=g&&g<=1&&o.push({type:"Point",coordinates:[r.x+l*(i.x-r.x),r.y+l*(i.y-r.y)]})}}return 0==o.length&&(o=!1),o},a.pointInBoundingBox=function(t,n){return!(t.coordinates[1]<n[0][0]||t.coordinates[1]>n[1][0]||t.coordinates[0]<n[0][1]||t.coordinates[0]>n[1][1])},a.pointInPolygon=function(o,e){for(var r="Polygon"==e.type?[e.coordinates]:e.coordinates,i=!1,s=0;s<r.length;s++)a.pointInBoundingBox(o,t(r[s]))&&(i=!0);if(!i)return!1;for(var c=!1,s=0;s<r.length;s++)n(o.coordinates[1],o.coordinates[0],r[s])&&(c=!0);return c},a.numberToRadius=function(t){return t*Math.PI/180},a.numberToDegree=function(t){return 180*t/Math.PI},a.drawCircle=function(t,n,o){for(var e=[n.coordinates[1],n.coordinates[0]],r=t/1e3/6371,i=[a.numberToRadius(e[0]),a.numberToRadius(e[1])],o=o||15,s=[[e[0],e[1]]],c=0;c<o;c++){var u=2*Math.PI*c/o,h=Math.asin(Math.sin(i[0])*Math.cos(r)+Math.cos(i[0])*Math.sin(r)*Math.cos(u)),d=i[1]+Math.atan2(Math.sin(u)*Math.sin(r)*Math.cos(i[0]),Math.cos(r)-Math.sin(i[0])*Math.sin(h));s[c]=[],s[c][1]=a.numberToDegree(h),s[c][0]=a.numberToDegree(d)}return{type:"Polygon",coordinates:[s]}},a.rectangleCentroid=function(t){var n=t.coordinates[0],o=n[0][0],a=n[0][1];return{type:"Point",coordinates:[o+(n[2][0]-o)/2,a+(n[2][1]-a)/2]}},a.pointDistance=function(t,n){var o=t.coordinates[0],e=t.coordinates[1],r=n.coordinates[0],i=n.coordinates[1],s=a.numberToRadius(i-e),c=a.numberToRadius(r-o),u=Math.pow(Math.sin(s/2),2)+Math.cos(a.numberToRadius(e))*Math.cos(a.numberToRadius(i))*Math.pow(Math.sin(c/2),2);return 6371*(2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u)))*1e3},a.geometryWithinRadius=function(t,n,o){if("Point"==t.type)return a.pointDistance(t,n)<=o;if("LineString"==t.type||"Polygon"==t.type){var e={},r;r="Polygon"==t.type?t.coordinates[0]:t.coordinates;for(var i in r)if(e.coordinates=r[i],a.pointDistance(e,n)>o)return!1}return!0},a.area=function(t){for(var n=0,o=t.coordinates[0],a=o.length-1,e,r,i=0;i<o.length;a=i++){var e={x:o[i][1],y:o[i][0]},r={x:o[a][1],y:o[a][0]};n+=e.x*r.y,n-=e.y*r.x}return n/=2},a.centroid=function(t){for(var n,o=0,e=0,r=t.coordinates[0],i=r.length-1,s,c,u=0;u<r.length;i=u++){var s={x:r[u][1],y:r[u][0]},c={x:r[i][1],y:r[i][0]};n=s.x*c.y-c.x*s.y,o+=(s.x+c.x)*n,e+=(s.y+c.y)*n}return n=6*a.area(t),{type:"Point",coordinates:[e/n,o/n]}},a.simplify=function(t,n){n=n||20,t=t.map(function(t){return{lng:t.coordinates[0],lat:t.coordinates[1]}});var o,a,e,r,i,s,c,u,h,d,l,g,M,y,f,x,m,p,v,P=Math.PI/180*.5,b=new Array,T=new Array,I=new Array;if(t.length<3)return t;for(o=t.length,d=360*n/(2*Math.PI*6378137),d*=d,e=0,T[0]=0,I[0]=o-1,a=1;a>0;)if(r=T[a-1],i=I[a-1],a--,i-r>1){for(l=t[i].lng()-t[r].lng(),g=t[i].lat()-t[r].lat(),Math.abs(l)>180&&(l=360-Math.abs(l)),M=(l*=Math.cos(P*(t[i].lat()+t[r].lat())))*l+g*g,s=r+1,c=r,h=-1;s<i;s++)y=t[s].lng()-t[r].lng(),f=t[s].lat()-t[r].lat(),Math.abs(y)>180&&(y=360-Math.abs(y)),x=(y*=Math.cos(P*(t[s].lat()+t[r].lat())))*y+f*f,m=t[s].lng()-t[i].lng(),p=t[s].lat()-t[i].lat(),Math.abs(m)>180&&(m=360-Math.abs(m)),(u=x>=M+(v=(m*=Math.cos(P*(t[s].lat()+t[i].lat())))*m+p*p)?v:v>=M+x?x:(y*g-f*l)*(y*g-f*l)/M)>h&&(c=s,h=u);h<d?(b[e]=r,e++):(T[++a-1]=c,I[a-1]=i,T[++a-1]=r,I[a-1]=c)}else b[e]=r,e++;b[e]=o-1,e++;for(var j=new Array,s=0;s<e;s++)j.push(t[b[s]]);return j.map(function(t){return{type:"Point",coordinates:[t.lng,t.lat]}})},a.destinationPoint=function(t,n,o){o/=6371,n=a.numberToRadius(n);var e=a.numberToRadius(t.coordinates[0]),r=a.numberToRadius(t.coordinates[1]),i=Math.asin(Math.sin(e)*Math.cos(o)+Math.cos(e)*Math.sin(o)*Math.cos(n)),s=r+Math.atan2(Math.sin(n)*Math.sin(o)*Math.cos(e),Math.cos(o)-Math.sin(e)*Math.sin(i));return s=(s+3*Math.PI)%(2*Math.PI)-Math.PI,{type:"Point",coordinates:[a.numberToDegree(i),a.numberToDegree(s)]}}}()}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/geojson-utils/main.js");"undefined"==typeof Package&&(Package={}),function(t,n){for(var o in n)o in t||(t[o]=n[o])}(Package["geojson-utils"]=i,{GeoJSON:void 0})}();

!function(){var e=Package.meteor.Meteor,r=Package.meteor.global,n=Package.meteor.meteorEnv,t=Package.underscore._,o=Package.ejson.EJSON,i=Package["id-map"].IdMap,a=Package["ordered-dict"].OrderedDict,s=Package.tracker.Tracker,u=Package.tracker.Deps,c=Package["mongo-id"].MongoID,d=Package.random.Random,f=Package["diff-sequence"].DiffSequence,l=Package["geojson-utils"].GeoJSON,h=Package.modules.meteorInstall,p=Package.modules.process,m=Package["babel-runtime"].meteorBabelHelpers,v=Package.promise.Promise,_=Package["ecmascript-runtime-client"].Symbol,y=Package["ecmascript-runtime-client"].Map,g=Package["ecmascript-runtime-client"].Set,b,w,$,E,I,j,C,O,S,k,A,M,P,x,F,q,B=h({node_modules:{meteor:{minimongo:{"minimongo.js":function(r,n,i){var a=void 0;i.watch(r("./validation.js"),{assertHasValidFieldNames:function(e){a=e}},0),w={},$={},E=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&r.field&&(e+=" for field '"+r.field+"'");var n=new Error(e);return n.name="MinimongoError",n},(b=function(r){var n=this;n.name=r,n._docs=new b._IdMap,n._observeQueue=new e._SynchronousQueue,n.next_qid=1,n.queries={},n._savedOriginals=null,n.paused=!1}).prototype.find=function(e,r){return 0===arguments.length&&(e={}),new b.Cursor(this,e,r)},b.Cursor=function(e,r,n){var t=this;n||(n={}),t.collection=e,t.sorter=null,t.matcher=new w.Matcher(r),b._selectorIsId(r)?t._selectorId=r:b._selectorIsIdPerhapsAsObject(r)?t._selectorId=r._id:(t._selectorId=void 0,(t.matcher.hasGeoQuery()||n.sort)&&(t.sorter=new w.Sorter(n.sort||[],{matcher:t.matcher}))),t.skip=n.skip,t.limit=n.limit,t.fields=n.fields,t._projectionFn=b._compileProjection(t.fields||{}),t._transform=b.wrapTransform(n.transform),void 0!==s&&(t.reactive=void 0===n.reactive||n.reactive)},b.Cursor.prototype.rewind=function(){},b.prototype.findOne=function(e,r){return 0===arguments.length&&(e={}),r=r||{},r.limit=1,this.find(e,r).fetch()[0]},b.Cursor.prototype.forEach=function(e,r){var n=this,o=n._getRawObjects({ordered:!0});n.reactive&&n._depend({addedBefore:!0,removed:!0,changed:!0,movedBefore:!0}),t.each(o,function(t,o){t=n._projectionFn(t),n._transform&&(t=n._transform(t)),e.call(r,t,o,n)})},b.Cursor.prototype.getTransform=function(){return this._transform},b.Cursor.prototype.map=function(e,r){var n=this,t=[];return n.forEach(function(o,i){t.push(e.call(r,o,i,n))}),t},b.Cursor.prototype.fetch=function(){var e=[];return this.forEach(function(r){e.push(r)}),e},b.Cursor.prototype.count=function(){var e=this;return e.reactive&&e._depend({added:!0,removed:!0},!0),e._getRawObjects({ordered:!0}).length},b.Cursor.prototype._publishCursor=function(e){var r=this;if(!r.collection.name)throw new Error("Can't publish a cursor from a collection without a name.");var n=r.collection.name;if(!Package.mongo)throw new Error("Can't publish from Minimongo without the `mongo` package.");return Package.mongo.Mongo.Collection._publishCursor(r,e,n)},b.Cursor.prototype._getCollectionName=function(){return this.collection.name},b._observeChangesCallbacksAreOrdered=function(e){if(e.added&&e.addedBefore)throw new Error("Please specify only one of added() and addedBefore()");return!(!e.addedBefore&&!e.movedBefore)},b._observeCallbacksAreOrdered=function(e){if(e.addedAt&&e.added)throw new Error("Please specify only one of added() and addedAt()");if(e.changedAt&&e.changed)throw new Error("Please specify only one of changed() and changedAt()");if(e.removed&&e.removedAt)throw new Error("Please specify only one of removed() and removedAt()");return!!(e.addedAt||e.movedTo||e.changedAt||e.removedAt)},b.ObserveHandle=function(){},t.extend(b.Cursor.prototype,{observe:function(e){var r=this;return b._observeFromObserveChanges(r,e)},observeChanges:function(e){var r=this,n=b._observeChangesCallbacksAreOrdered(e);if(!e._allow_unordered&&!n&&(r.skip||r.limit))throw new Error("must use ordered observe (ie, 'addedBefore' instead of 'added') with skip or limit");if(r.fields&&(0===r.fields._id||!1===r.fields._id))throw Error("You may not observe a cursor with {fields: {_id: 0}}");var i={dirty:!1,matcher:r.matcher,sorter:n&&r.sorter,distances:r.matcher.hasGeoQuery()&&n&&new b._IdMap,resultsSnapshot:null,ordered:n,cursor:r,projectionFn:r._projectionFn},a;r.reactive&&(a=r.collection.next_qid++,r.collection.queries[a]=i),i.results=r._getRawObjects({ordered:n,distances:i.distances}),r.collection.paused&&(i.resultsSnapshot=n?[]:new b._IdMap);var u=function(e){return e?function(){var n=this,t=arguments;r.collection.paused||r.collection._observeQueue.queueTask(function(){e.apply(n,t)})}:function(){}};i.added=u(e.added),i.changed=u(e.changed),i.removed=u(e.removed),n&&(i.addedBefore=u(e.addedBefore),i.movedBefore=u(e.movedBefore)),e._suppress_initial||r.collection.paused||(n?t.bind(t.each,null,i.results):t.bind(i.results.forEach,i.results))(function(e){var t=o.clone(e);delete t._id,n&&i.addedBefore(e._id,r._projectionFn(t),null),i.added(e._id,r._projectionFn(t))});var c=new b.ObserveHandle;return t.extend(c,{collection:r.collection,stop:function(){r.reactive&&delete r.collection.queries[a]}}),r.reactive&&s.active&&s.onInvalidate(function(){c.stop()}),r.collection._observeQueue.drain(),c}}),b.Cursor.prototype._getRawObjects=function(e){var r=this,n=(e=e||{}).ordered?[]:new b._IdMap;if(void 0!==r._selectorId){if(r.skip)return n;var t=r.collection._docs.get(r._selectorId);return t&&(e.ordered?n.push(t):n.set(r._selectorId,t)),n}var o;if(r.matcher.hasGeoQuery()&&e.ordered&&(e.distances?(o=e.distances).clear():o=new b._IdMap),r.collection._docs.forEach(function(t,i){var a=r.matcher.documentMatches(t);return a.result&&(e.ordered?(n.push(t),o&&void 0!==a.distance&&o.set(i,a.distance)):n.set(i,t)),!(r.limit&&!r.skip&&!r.sorter&&n.length===r.limit)}),!e.ordered)return n;if(r.sorter){var i=r.sorter.getComparator({distances:o});n.sort(i)}var a=r.skip||0,s=r.limit?r.limit+a:n.length;return n.slice(a,s)},b.Cursor.prototype._depend=function(e,r){var n=this;if(s.active){var o=new s.Dependency;o.depend();var i=t.bind(o.changed,o),a={_suppress_initial:!0,_allow_unordered:r};t.each(["added","changed","removed","addedBefore","movedBefore"],function(r){e[r]&&(a[r]=i)}),n.observeChanges(a)}},b.prototype.insert=function(r,n){var i=this;r=o.clone(r),a(r),t.has(r,"_id")||(r._id=b._useOID?new c.ObjectID:d.id());var s=r._id;if(i._docs.has(s))throw E("Duplicate _id '"+s+"'");i._saveOriginal(s,void 0),i._docs.set(s,r);var u=[];for(var f in m.sanitizeForInObject(i.queries)){var l=i.queries[f];if(!l.dirty){var h=l.matcher.documentMatches(r);h.result&&(l.distances&&void 0!==h.distance&&l.distances.set(s,h.distance),l.cursor.skip||l.cursor.limit?u.push(f):b._insertInResults(l,r))}}return t.each(u,function(e){i.queries[e]&&i._recomputeResults(i.queries[e])}),i._observeQueue.drain(),n&&e.defer(function(){n(null,s)}),s},b.prototype._eachPossiblyMatchingDoc=function(e,r){var n=this,t=b._idsMatchedBySelector(e);if(t)for(var o=0;o<t.length;++o){var i=t[o],a=n._docs.get(i);if(a&&!1===r(a,i))break}else n._docs.forEach(r)},b.prototype.remove=function(r,n){var i=this;if(i.paused&&!i._savedOriginals&&o.equals(r,{})){var a=i._docs.size();return i._docs.clear(),t.each(i.queries,function(e){e.ordered?e.results=[]:e.results.clear()}),n&&e.defer(function(){n(null,a)}),a}var s=new w.Matcher(r),u=[];i._eachPossiblyMatchingDoc(r,function(e,r){s.documentMatches(e).result&&u.push(r)});for(var c=[],d=[],f=0;f<u.length;f++){var l=u[f],h=i._docs.get(l);t.each(i.queries,function(e,r){e.dirty||e.matcher.documentMatches(h).result&&(e.cursor.skip||e.cursor.limit?c.push(r):d.push({qid:r,doc:h}))}),i._saveOriginal(l,h),i._docs.remove(l)}return t.each(d,function(e){var r=i.queries[e.qid];r&&(r.distances&&r.distances.remove(e.doc._id),b._removeFromResults(r,e.doc))}),t.each(c,function(e){var r=i.queries[e];r&&i._recomputeResults(r)}),i._observeQueue.drain(),a=u.length,n&&e.defer(function(){n(null,a)}),a},b.prototype.update=function(r,n,i,a){var s=this;!a&&i instanceof Function&&(a=i,i=null),i||(i={});var u=new w.Matcher(r,!0),c={},d=new b._IdMap,f=b._idsMatchedBySelector(r);t.each(s.queries,function(e,r){if((e.cursor.skip||e.cursor.limit)&&!s.paused){if(e.results instanceof b._IdMap)return void(c[r]=e.results.clone());if(!(e.results instanceof Array))throw new Error("Assertion failed: query.results not an array");var n=function(e){if(d.has(e._id))return d.get(e._id);var r;return r=f&&!t.any(f,function(r){return o.equals(r,e._id)})?e:o.clone(e),d.set(e._id,r),r};c[r]=e.results.map(n)}});var l={},h=0;s._eachPossiblyMatchingDoc(r,function(e,r){var t=u.documentMatches(e);return!(t.result&&(s._saveOriginal(r,e),s._modifyAndNotify(e,n,l,t.arrayIndices),++h,!i.multi))}),t.each(l,function(e,r){var n=s.queries[r];n&&s._recomputeResults(n,c[r])}),s._observeQueue.drain();var p;if(0===h&&i.upsert){var m=b._selectorIsId(r)?{_id:r}:r,v={};(m=b._removeDollarOperators(m))._id&&(v._id=m._id,delete m._id),b._modify(v,{$set:m}),b._modify(v,n,{isInsert:!0}),!v._id&&i.insertedId&&(v._id=i.insertedId),p=s.insert(v),h=1}var _;return i._returnObject?(_={numberAffected:h},void 0!==p&&(_.insertedId=p)):_=h,a&&e.defer(function(){a(null,_)}),_},b.prototype.upsert=function(e,r,n,o){var i=this;return o||"function"!=typeof n||(o=n,n={}),i.update(e,r,t.extend({},n,{upsert:!0,_returnObject:!0}),o)},b.prototype._modifyAndNotify=function(e,r,n,t){var i=this,a={};for(var s in m.sanitizeForInObject(i.queries)){var u=i.queries[s];u.dirty||(u.ordered?a[s]=u.matcher.documentMatches(e).result:a[s]=u.results.has(e._id))}var c=o.clone(e);b._modify(e,r,{arrayIndices:t});for(s in m.sanitizeForInObject(i.queries))if(!(u=i.queries[s]).dirty){var d=a[s],f=u.matcher.documentMatches(e),l=f.result;l&&u.distances&&void 0!==f.distance&&u.distances.set(e._id,f.distance),u.cursor.skip||u.cursor.limit?(d||l)&&(n[s]=!0):d&&!l?b._removeFromResults(u,e):!d&&l?b._insertInResults(u,e):d&&l&&b._updateInResults(u,e,c)}},b._insertInResults=function(e,r){var n=o.clone(r);if(delete n._id,e.ordered){if(e.sorter){var t=b._insertInSortedList(e.sorter.getComparator({distances:e.distances}),e.results,r),i=e.results[t+1];i=i?i._id:null,e.addedBefore(r._id,e.projectionFn(n),i)}else e.addedBefore(r._id,e.projectionFn(n),null),e.results.push(r);e.added(r._id,e.projectionFn(n))}else e.added(r._id,e.projectionFn(n)),e.results.set(r._id,r)},b._removeFromResults=function(e,r){if(e.ordered){var n=b._findInOrderedResults(e,r);e.removed(r._id),e.results.splice(n,1)}else{var t=r._id;e.removed(r._id),e.results.remove(t)}},b._updateInResults=function(e,r,n){if(!o.equals(r._id,n._id))throw new Error("Can't change a doc's _id while updating");var i=e.projectionFn,a=f.makeChangedFields(i(r),i(n));if(e.ordered){var s=b._findInOrderedResults(e,r);if(t.isEmpty(a)||e.changed(r._id,a),e.sorter){e.results.splice(s,1);var u=b._insertInSortedList(e.sorter.getComparator({distances:e.distances}),e.results,r);if(s!==u){var c=e.results[u+1];c=c?c._id:null,e.movedBefore&&e.movedBefore(r._id,c)}}}else t.isEmpty(a)||(e.changed(r._id,a),e.results.set(r._id,r))},b.prototype._recomputeResults=function(e,r){var n=this;n.paused?e.dirty=!0:(n.paused||r||(r=e.results),e.distances&&e.distances.clear(),e.results=e.cursor._getRawObjects({ordered:e.ordered,distances:e.distances}),n.paused||b._diffQueryChanges(e.ordered,r,e.results,e,{projectionFn:e.projectionFn}))},b._findInOrderedResults=function(e,r){if(!e.ordered)throw new Error("Can't call _findInOrderedResults on unordered query");for(var n=0;n<e.results.length;n++)if(e.results[n]===r)return n;throw Error("object missing from query")},b._binarySearch=function(e,r,n){for(var t=0,o=r.length;o>0;){var i=Math.floor(o/2);e(n,r[t+i])>=0?(t+=i+1,o-=i+1):o=i}return t},b._insertInSortedList=function(e,r,n){if(0===r.length)return r.push(n),0;var t=b._binarySearch(e,r,n);return r.splice(t,0,n),t},b.prototype.saveOriginals=function(){var e=this;if(e._savedOriginals)throw new Error("Called saveOriginals twice without retrieveOriginals");e._savedOriginals=new b._IdMap},b.prototype.retrieveOriginals=function(){var e=this;if(!e._savedOriginals)throw new Error("Called retrieveOriginals without saveOriginals");var r=e._savedOriginals;return e._savedOriginals=null,r},b.prototype._saveOriginal=function(e,r){var n=this;n._savedOriginals&&(n._savedOriginals.has(e)||n._savedOriginals.set(e,o.clone(r)))},b.prototype.pauseObservers=function(){if(!this.paused){this.paused=!0;for(var e in m.sanitizeForInObject(this.queries)){var r=this.queries[e];r.resultsSnapshot=o.clone(r.results)}}},b.prototype.resumeObservers=function(){var e=this;if(this.paused){this.paused=!1;for(var r in m.sanitizeForInObject(this.queries)){var n=e.queries[r];n.dirty?(n.dirty=!1,e._recomputeResults(n,n.resultsSnapshot)):b._diffQueryChanges(n.ordered,n.resultsSnapshot,n.results,n,{projectionFn:n.projectionFn}),n.resultsSnapshot=null}e._observeQueue.drain()}}},"wrap_transform.js":function(){b.wrapTransform=function(e){if(!e)return null;if(e.__wrappedTransform__)return e;var r=function(r){if(!t.has(r,"_id"))throw new Error("can only transform documents with _id");var n=r._id,i=s.nonreactive(function(){return e(r)});if(!j(i))throw new Error("transform must return object");if(t.has(i,"_id")){if(!o.equals(i._id,n))throw new Error("transformed document can't have different _id")}else i._id=n;return i};return r.__wrappedTransform__=!0,r}},"helpers.js":function(){I=function(e){return t.isArray(e)&&!o.isBinary(e)},j=b._isPlainObject=function(e){return e&&3===b._f._type(e)},C=function(e){return I(e)||j(e)},O=function(e,r){if(!j(e))return!1;var n=void 0;return t.each(e,function(t,o){var i="$"===o.substr(0,1);if(void 0===n)n=i;else if(n!==i){if(!r)throw new Error("Inconsistent operator: "+JSON.stringify(e));n=!1}}),!!n},S=function(e){return/^[0-9]+$/.test(e)}},"selector.js":function(e){function r(e){return e&&e.__esModule?e:{default:e}}var n=r(e("babel-runtime/helpers/toConsumableArray")),i=r(e("babel-runtime/helpers/typeof"));w.Matcher=function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this;n._paths={},n._hasGeoQuery=!1,n._hasWhere=!1,n._isSimple=!0,n._matchingDocument=void 0,n._selector=null,n._docMatcher=n._compileSelector(e),n._isUpdate=r},t.extend(w.Matcher.prototype,{documentMatches:function(e){if(!e||"object"!==(void 0===e?"undefined":(0,i.default)(e)))throw Error("documentMatches needs a document");return this._docMatcher(e)},hasGeoQuery:function(){return this._hasGeoQuery},hasWhere:function(){return this._hasWhere},isSimple:function(){return this._isSimple},_compileSelector:function(e){var r=this;if(e instanceof Function)return r._isSimple=!1,r._selector=e,r._recordPathUsed(""),function(r){return{result:!!e.call(r)}};if(b._selectorIsId(e))return r._selector={_id:e},r._recordPathUsed("_id"),function(r){return{result:o.equals(r._id,e)}};if(!e||"_id"in e&&!e._id)return r._isSimple=!1,q;if("boolean"==typeof e||I(e)||o.isBinary(e))throw new Error("Invalid selector: "+e);return r._selector=o.clone(e),a(e,r,{isRoot:!0})},_recordPathUsed:function(e){this._paths[e]=!0},_getPaths:function(){return t.keys(this._paths)}});var a=function(e,r,n){n=n||{};var o=[];return t.each(e,function(e,i){if("$"===i.substr(0,1)){if(!t.has(h,i))throw new Error("Unrecognized logical operator: "+i);r._isSimple=!1,o.push(h[i](e,r,n.inElemMatch))}else{n.inElemMatch||r._recordPathUsed(i);var a=P(i),u=s(e,r,n.isRoot);o.push(function(e){var r=a(e);return u(r)})}}),D(o)},s=function(e,r,n){return e instanceof RegExp?(r._isSimple=!1,u(k(e))):O(e)?d(e,r,n):u(A(e))},u=function(e,r){return r=r||{},function(n){var o=n;r.dontExpandLeafArrays||(o=x(n,r.dontIncludeLeafArrays));var i={};return i.result=t.any(o,function(r){var n=e(r.value);return"number"==typeof n&&(r.arrayIndices||(r.arrayIndices=[n]),n=!0),n&&r.arrayIndices&&(i.arrayIndices=r.arrayIndices),n}),i}};k=function(e){return function(r){return r instanceof RegExp?t.isEqual(r,e):"string"==typeof r&&(e.lastIndex=0,e.test(r))}},A=function(e){if(O(e))throw Error("Can't create equalityValueSelector for operator object");return null==e?function(e){return null==e}:function(r){return b._f._equal(e,r)}};var d=function(e,r,n){var o=[];return t.each(e,function(i,a){var s=t.contains(["$lt","$lte","$gt","$gte"],a)&&t.isNumber(i),c=t.contains(["$ne","$eq"],a)&&!t.isObject(i),d=t.contains(["$in","$nin"],a)&&t.isArray(i)&&!t.any(i,t.isObject);if(s||d||c||(r._isSimple=!1),t.has(v,a))o.push(v[a](i,e,r,n));else{if(!t.has(M,a))throw new Error("Unrecognized operator: "+a);var f=M[a];o.push(u(f.compileElementSelector(i,e,r),f))}}),N(o)},f=function(e,r,n){if(!I(e)||t.isEmpty(e))throw Error("$and/$or/$nor must be nonempty array");return t.map(e,function(e){if(!j(e))throw Error("$or/$and/$nor entries need to be full objects");return a(e,r,{inElemMatch:n})})},h={$and:function(e,r,n){var t=f(e,r,n);return D(t)},$or:function(e,r,n){var o=f(e,r,n);return 1===o.length?o[0]:function(e){return{result:t.any(o,function(r){return r(e).result})}}},$nor:function(e,r,n){var o=f(e,r,n);return function(e){return{result:t.all(o,function(r){return!r(e).result})}}},$where:function(e,r){return r._recordPathUsed(""),r._hasWhere=!0,e instanceof Function||(e=Function("obj","return "+e)),function(r){return{result:e.call(r,r)}}},$comment:function(){return function(){return{result:!0}}}},p=function(e){return function(r){return{result:!e(r).result}}},v={$eq:function(e){return u(A(e))},$not:function(e,r,n){return p(s(e,n))},$ne:function(e){return p(u(A(e)))},$nin:function(e){return p(u(M.$in.compileElementSelector(e)))},$exists:function(e){var r=u(function(e){return void 0!==e});return e?r:p(r)},$options:function(e,r){if(!t.has(r,"$regex"))throw Error("$options needs a $regex");return B},$maxDistance:function(e,r){if(!r.$near)throw Error("$maxDistance needs a $near");return B},$all:function(e,r,n){if(!I(e))throw Error("$all requires array");if(t.isEmpty(e))return q;var o=[];return t.each(e,function(e){if(O(e))throw Error("no $ expressions in $all");o.push(s(e,n))}),N(o)},$near:function(e,r,n,o){if(!o)throw Error("$near can't be inside another $ operator");n._hasGeoQuery=!0;var a,s,u;if(j(e)&&t.has(e,"$geometry"))a=e.$maxDistance,s=e.$geometry,u=function(e){return e?e.type?"Point"===e.type?l.pointDistance(s,e):l.geometryWithinRadius(e,s,a)?0:a+1:l.pointDistance(s,{type:"Point",coordinates:y(e)}):null};else{if(a=r.$maxDistance,!I(e)&&!j(e))throw Error("$near argument must be coordinate pair or GeoJSON");s=y(e),u=function(e){return I(e)||j(e)?_(s,e):null}}return function(e){e=x(e);var r={result:!1};return t.every(e,function(e){if(!n._isUpdate){if("object"!==(0,i.default)(e.value))return!0;var t=u(e.value);if(null===t||t>a)return!0;if(void 0!==r.distance&&r.distance<=t)return!0}return r.result=!0,r.distance=t,e.arrayIndices?r.arrayIndices=e.arrayIndices:delete r.arrayIndices,!n._isUpdate}),r}}},_=function(e,r){e=y(e),r=y(r);var n=e[0]-r[0],o=e[1]-r[1];return t.isNaN(n)||t.isNaN(o)?null:Math.sqrt(n*n+o*o)},y=function(e){return t.map(e,t.identity)},g=function(e){return{compileElementSelector:function(r){if(I(r))return function(){return!1};void 0===r&&(r=null);var n=b._f._type(r);return function(t){return void 0===t&&(t=null),b._f._type(t)===n&&e(b._f._cmp(t,r))}}}},E=function(e,r){if(Number.isInteger(e)&&e>=0)return new Uint8Array(new Int32Array([e]).buffer);if(o.isBinary(e))return new Uint8Array(e.buffer);if(I(e)&&e.every(function(e){return Number.isInteger(e)&&e>=0})){var t=new ArrayBuffer(1+(Math.max.apply(Math,(0,n.default)(e))>>3)),i=new Uint8Array(t);return e.forEach(function(e){i[e>>3]|=1<<(7&e)}),i}throw Error("operand to "+r+" must be a numeric bitmask (representable as a non-negative 32-bit signed integer), a bindata bitmask or an array with bit positions (non-negative integers)")},F=function(e,r){if(Number.isSafeInteger(e)){var n=new ArrayBuffer(Math.max(r,2*Uint32Array.BYTES_PER_ELEMENT)),t=new Uint32Array(n,0,2);return t[0]=e%4294967296|0,t[1]=e/4294967296|0,e<0&&(t=new Uint8Array(n,2)).forEach(function(e,r){t[r]=255}),new Uint8Array(n)}return!!o.isBinary(e)&&new Uint8Array(e.buffer)};M={$lt:g(function(e){return e<0}),$gt:g(function(e){return e>0}),$lte:g(function(e){return e<=0}),$gte:g(function(e){return e>=0}),$mod:{compileElementSelector:function(e){if(!I(e)||2!==e.length||"number"!=typeof e[0]||"number"!=typeof e[1])throw Error("argument to $mod must be an array of two numbers");var r=e[0],n=e[1];return function(e){return"number"==typeof e&&e%r===n}}},$in:{compileElementSelector:function(e){if(!I(e))throw Error("$in needs an array");var r=[];return t.each(e,function(e){if(e instanceof RegExp)r.push(k(e));else{if(O(e))throw Error("cannot nest $ under $in");r.push(A(e))}}),function(e){return void 0===e&&(e=null),t.any(r,function(r){return r(e)})}}},$size:{dontExpandLeafArrays:!0,compileElementSelector:function(e){if("string"==typeof e)e=0;else if("number"!=typeof e)throw Error("$size needs a number");return function(r){return I(r)&&r.length===e}}},$type:{dontIncludeLeafArrays:!0,compileElementSelector:function(e){if("number"!=typeof e)throw Error("$type needs a number");return function(r){return void 0!==r&&b._f._type(r)===e}}},$bitsAllSet:{compileElementSelector:function(e){var r=E(e,"$bitsAllSet");return function(e){var n=F(e,r.length);return n&&r.every(function(e,r){return(n[r]&e)==e})}}},$bitsAnySet:{compileElementSelector:function(e){var r=E(e,"$bitsAnySet");return function(e){var n=F(e,r.length);return n&&r.some(function(e,r){return(~n[r]&e)!==e})}}},$bitsAllClear:{compileElementSelector:function(e){var r=E(e,"$bitsAllClear");return function(e){var n=F(e,r.length);return n&&r.every(function(e,r){return!(n[r]&e)})}}},$bitsAnyClear:{compileElementSelector:function(e){var r=E(e,"$bitsAnyClear");return function(e){var n=F(e,r.length);return n&&r.some(function(e,r){return(n[r]&e)!==e})}}},$regex:{compileElementSelector:function(e,r){if(!("string"==typeof e||e instanceof RegExp))throw Error("$regex has to be a string or RegExp");var n;if(void 0!==r.$options){if(/[^gim]/.test(r.$options))throw new Error("Only the i, m, and g regexp options are supported");var t=e instanceof RegExp?e.source:e;n=new RegExp(t,r.$options)}else n=e instanceof RegExp?e:new RegExp(e);return k(n)}},$elemMatch:{dontExpandLeafArrays:!0,compileElementSelector:function(e,r,n){if(!j(e))throw Error("$elemMatch need an object");var o,i;return O(t.omit(e,t.keys(h)),!0)?(o=s(e,n),i=!1):(o=a(e,n,{inElemMatch:!0}),i=!0),function(e){if(!I(e))return!1;for(var r=0;r<e.length;++r){var n=e[r],t;if(i){if(!j(n)&&!I(n))return!1;t=n}else t=[{value:n,dontIterate:!0}];if(o(t).result)return r}return!1}}}},P=function(e,r){r=r||{};var n=e.split("."),o=n.length?n[0]:"",i=S(o),a=n.length>=2&&S(n[1]),s;n.length>1&&(s=P(n.slice(1).join(".")));var u=function(e){return e.dontIterate||delete e.dontIterate,e.arrayIndices&&!e.arrayIndices.length&&delete e.arrayIndices,e};return function(e,n){if(n||(n=[]),I(e)){if(!(i&&o<e.length))return[];n=n.concat(+o,"x")}var c=e[o];if(!s)return[u({value:c,dontIterate:I(e)&&I(c),arrayIndices:n})];if(!C(c))return I(e)?[]:[u({value:void 0,arrayIndices:n})];var d=[],f=function(e){Array.prototype.push.apply(d,e)};return f(s(c,n)),!I(c)||a&&r.forSort||t.each(c,function(e,r){j(e)&&f(s(e,n.concat(r)))}),d}},$.makeLookupFunction=P,x=function(e,r){var n=[];return t.each(e,function(e){var o=I(e.value);r&&o&&!e.dontIterate||n.push({value:e.value,arrayIndices:e.arrayIndices}),o&&!e.dontIterate&&t.each(e.value,function(r,t){n.push({value:r,arrayIndices:(e.arrayIndices||[]).concat(t)})})}),n};var q=function(e){return{result:!1}},B=function(e){return{result:!0}},R=function(e){return 0===e.length?B:1===e.length?e[0]:function(r){var n={};return n.result=t.all(e,function(e){var t=e(r);return t.result&&void 0!==t.distance&&void 0===n.distance&&(n.distance=t.distance),t.result&&t.arrayIndices&&(n.arrayIndices=t.arrayIndices),t.result}),n.result||(delete n.distance,delete n.arrayIndices),n}},D=R,N=R;b._f={_type:function(e){return"number"==typeof e?1:"string"==typeof e?2:"boolean"==typeof e?8:I(e)?4:null===e?10:e instanceof RegExp?11:"function"==typeof e?13:e instanceof Date?9:o.isBinary(e)?5:e instanceof c.ObjectID?7:3},_equal:function(e,r){return o.equals(e,r,{keyOrderSensitive:!0})},_typeorder:function(e){return[-1,1,2,3,4,5,-1,6,7,8,0,9,-1,100,2,100,1,8,1][e]},_cmp:function(e,r){if(void 0===e)return void 0===r?0:-1;if(void 0===r)return 1;var n=b._f._type(e),t=b._f._type(r),o=b._f._typeorder(n),i=b._f._typeorder(t);if(o!==i)return o<i?-1:1;if(n!==t)throw Error("Missing type coercion logic in _cmp");if(7===n&&(n=t=2,e=e.toHexString(),r=r.toHexString()),9===n&&(n=t=1,e=e.getTime(),r=r.getTime()),1===n)return e-r;if(2===t)return e<r?-1:e===r?0:1;if(3===n){var a=function(e){var r=[];for(var n in m.sanitizeForInObject(e))r.push(n),r.push(e[n]);return r};return b._f._cmp(a(e),a(r))}if(4===n)for(var s=0;;s++){if(s===e.length)return s===r.length?0:-1;if(s===r.length)return 1;var u=b._f._cmp(e[s],r[s]);if(0!==u)return u}if(5===n){if(e.length!==r.length)return e.length-r.length;for(s=0;s<e.length;s++){if(e[s]<r[s])return-1;if(e[s]>r[s])return 1}return 0}if(8===n)return e?r?0:1:r?-1:0;if(10===n)return 0;if(11===n)throw Error("Sorting not supported on regular expression");if(13===n)throw Error("Sorting not supported on Javascript code");throw Error("Unknown type to sort")}},b._removeDollarOperators=function(e){var r={};for(var n in m.sanitizeForInObject(e))"$"!==n.substr(0,1)&&(r[n]=e[n]);return r}},"sort.js":function(e){function r(e){return e&&e.__esModule?e:{default:e}}var n=r(e("babel-runtime/helpers/typeof"));w.Sorter=function(e,r){var i=this;r=r||{},i._sortSpecParts=[],i._sortFunction=null;var a=function(e,r){if(!e)throw Error("sort keys must be non-empty");if("$"===e.charAt(0))throw Error("unsupported sort key: "+e);i._sortSpecParts.push({path:e,lookup:P(e,{forSort:!0}),ascending:r})};if(e instanceof Array)for(var s=0;s<e.length;s++)"string"==typeof e[s]?a(e[s],!0):a(e[s][0],"desc"!==e[s][1]);else if("object"===(void 0===e?"undefined":(0,n.default)(e)))t.each(e,function(e,r){a(r,e>=0)});else{if("function"!=typeof e)throw Error("Bad sort specification: "+JSON.stringify(e));i._sortFunction=e}if(!i._sortFunction){if(i.affectedByModifier){var u={};t.each(i._sortSpecParts,function(e){u[e.path]=1}),i._selectorForAffectedByModifier=new w.Matcher(u)}i._keyComparator=o(t.map(i._sortSpecParts,function(e,r){return i._keyFieldComparator(r)})),i._keyFilter=null,r.matcher&&i._useWithMatcher(r.matcher)}},t.extend(w.Sorter.prototype,{getComparator:function(e){var r=this;if(r._sortSpecParts.length||!e||!e.distances)return r._getBaseComparator();var n=e.distances;return function(e,r){if(!n.has(e._id))throw Error("Missing distance for "+e._id);if(!n.has(r._id))throw Error("Missing distance for "+r._id);return n.get(e._id)-n.get(r._id)}},_getPaths:function(){var e=this;return t.pluck(e._sortSpecParts,"path")},_getMinKeyFromDoc:function(e){var r=this,n=null;if(r._generateKeysFromDoc(e,function(e){r._keyCompatibleWithSelector(e)&&(null!==n?r._compareKeys(e,n)<0&&(n=e):n=e)}),null===n)throw Error("sort selector found no keys in doc?");return n},_keyCompatibleWithSelector:function(e){var r=this;return!r._keyFilter||r._keyFilter(e)},_generateKeysFromDoc:function(e,r){var n=this;if(0===n._sortSpecParts.length)throw new Error("can't generate keys without a spec");var o=[],i=function(e){return e.join(",")+","},a=null;if(t.each(n._sortSpecParts,function(r,n){var s=x(r.lookup(e),!0);s.length||(s=[{value:null}]);var u=!1;if(o[n]={},t.each(s,function(e){if(e.arrayIndices){u=!0;var r=i(e.arrayIndices);if(t.has(o[n],r))throw Error("duplicate path: "+r);if(o[n][r]=e.value,a&&!t.has(a,r))throw Error("cannot index parallel arrays")}else{if(s.length>1)throw Error("multiple branches but no array used?");o[n][""]=e.value}}),a){if(!t.has(o[n],"")&&t.size(a)!==t.size(o[n]))throw Error("cannot index parallel arrays!")}else u&&(a={},t.each(o[n],function(e,r){a[r]=!0}))}),a)t.each(a,function(e,n){var i=t.map(o,function(e){if(t.has(e,""))return e[""];if(!t.has(e,n))throw Error("missing path?");return e[n]});r(i)});else{var s=t.map(o,function(e){if(!t.has(e,""))throw Error("no value in sole key case?");return e[""]});r(s)}},_compareKeys:function(e,r){var n=this;if(e.length!==n._sortSpecParts.length||r.length!==n._sortSpecParts.length)throw Error("Key has wrong length");return n._keyComparator(e,r)},_keyFieldComparator:function(e){var r=!this._sortSpecParts[e].ascending;return function(n,t){var o=b._f._cmp(n[e],t[e]);return r&&(o=-o),o}},_getBaseComparator:function(){var e=this;return e._sortFunction?e._sortFunction:e._sortSpecParts.length?function(r,n){var t=e._getMinKeyFromDoc(r),o=e._getMinKeyFromDoc(n);return e._compareKeys(t,o)}:function(e,r){return 0}},_useWithMatcher:function(e){var r=this;if(r._keyFilter)throw Error("called _useWithMatcher twice?");if(!t.isEmpty(r._sortSpecParts)){var n=e._selector;if(!(n instanceof Function)){var o={};t.each(r._sortSpecParts,function(e,r){o[e.path]=[]}),t.each(n,function(e,r){var n=o[r];if(n)if(e instanceof RegExp){if(e.ignoreCase||e.multiline)return;n.push(k(e))}else O(e)?t.each(e,function(r,o){t.contains(["$lt","$lte","$gt","$gte"],o)&&n.push(M[o].compileElementSelector(r)),"$regex"!==o||e.$options||n.push(M.$regex.compileElementSelector(r,e))}):n.push(A(e))}),t.isEmpty(o[r._sortSpecParts[0].path])||(r._keyFilter=function(e){return t.all(r._sortSpecParts,function(r,n){return t.all(o[r.path],function(r){return r(e[n])})})})}}}});var o=function(e){return function(r,n){for(var t=0;t<e.length;++t){var o=e[t](r,n);if(0!==o)return o}return 0}}},"projection.js":function(e){function r(e){return e&&e.__esModule?e:{default:e}}var n=r(e("babel-runtime/helpers/typeof"));b._compileProjection=function(e){b._checkSupportedProjection(e);var r=!!t.isUndefined(e._id)||e._id,n=F(e),i=function(e,r){if(t.isArray(e))return t.map(e,function(e){return i(e,r)});var a=n.including?{}:o.clone(e);return t.each(r,function(r,s){t.has(e,s)&&(t.isObject(r)?t.isObject(e[s])&&(a[s]=i(e[s],r)):n.including?a[s]=o.clone(e[s]):delete a[s])}),a};return function(e){var o=i(e,n.tree);return r&&t.has(e,"_id")&&(o._id=e._id),!r&&t.has(o,"_id")&&delete o._id,o}},F=function(e){var r=t.keys(e).sort();!(r.length>0)||1===r.length&&"_id"===r[0]||t.contains(r,"_id")&&e._id||(r=t.reject(r,function(e){return"_id"===e}));var n=null;return t.each(r,function(r){var t=!!e[r];if(null===n&&(n=t),n!==t)throw E("You cannot currently mix including and excluding fields.")}),{tree:q(r,function(e){return n},function(e,r,n){throw E("both "+n+" and "+r+" found in fields option, using both of them may trigger unexpected behavior. Did you mean to use only one of them?")}),including:n}},q=function(e,r,n,o){return o=o||{},t.each(e,function(e){var i=o,a=e.split(".");if(t.all(a.slice(0,-1),function(r,o){if(t.has(i,r)){if(!t.isObject(i[r])&&(i[r]=n(i[r],a.slice(0,o+1).join("."),e),!t.isObject(i[r])))return!1}else i[r]={};return i=i[r],!0})){var s=t.last(a);t.has(i,s)?i[s]=n(i[s],e,e):i[s]=r(e)}}),o},b._checkSupportedProjection=function(e){if(!t.isObject(e)||t.isArray(e))throw E("fields option must be an object");t.each(e,function(e,r){if(t.contains(r.split("."),"$"))throw E("Minimongo doesn't support $ operator in projections yet.");if("object"===(void 0===e?"undefined":(0,n.default)(e))&&t.intersection(["$elemMatch","$meta","$slice"],t.keys(e)).length>0)throw E("Minimongo doesn't support operators in projections yet.");if(-1===t.indexOf([1,0,!0,!1],e))throw E("Projection values should be one of 1, 0, true, or false")})}},"modify.js":function(e,r,n){function i(e){return e&&e.__esModule?e:{default:e}}var a=i(e("babel-runtime/helpers/typeof")),s=void 0,u=void 0;n.watch(e("./validation.js"),{assertHasValidFieldNames:function(e){s=e},assertIsValidFieldName:function(e){u=e}},0),b._modify=function(e,r,n){if(n=n||{},!j(r))throw E("Modifier must be an object");r=o.clone(r);var i;if(O(r))i=o.clone(e),t.each(r,function(e,r){var o=f[r];if(n.isInsert&&"$setOnInsert"===r&&(o=f.$set),!o)throw E("Invalid modifier specified "+r);t.each(e,function(e,a){if(""===a)throw E("An empty update path is not valid.");if("_id"===a&&"$setOnInsert"!==r)throw E("Mod on _id not allowed");var s=a.split(".");if(!t.all(s,t.identity))throw E("The update path '"+a+"' contains an empty field name, which is not allowed.");var u=t.has(d,r),f="$rename"===r,l=c(i,s,{noCreate:d[r],forbidArray:"$rename"===r,arrayIndices:n.arrayIndices}),h=s.pop();o(l,h,e,a,i)})});else{if(r._id&&!o.equals(e._id,r._id))throw E("Cannot change the _id of a document");s(r),i=r}t.each(t.keys(e),function(r){"_id"!==r&&delete e[r]}),t.each(i,function(r,n){e[n]=r})};var c=function(e,r,n){n=n||{};for(var t=!1,o=0;o<r.length;o++){var i=o===r.length-1,s=r[o];if(!C(e)){if(n.noCreate)return;var c=E("cannot use the part '"+s+"' to traverse "+e);throw c.setPropertyError=!0,c}if(e instanceof Array){if(n.forbidArray)return null;if("$"===s){if(t)throw E("Too many positional (i.e. '$') elements");if(!n.arrayIndices||!n.arrayIndices.length)throw E("The positional operator did not find the match needed from the query");s=n.arrayIndices[0],t=!0}else{if(!S(s)){if(n.noCreate)return;throw E("can't append to array using string field name ["+s+"]")}s=parseInt(s)}if(i&&(r[o]=s),n.noCreate&&s>=e.length)return;for(;e.length<s;)e.push(null);if(!i)if(e.length===s)e.push({});else if("object"!==(0,a.default)(e[s]))throw E("can't modify field '"+r[o+1]+"' of list value "+JSON.stringify(e[s]))}else if(u(s),!(s in e)){if(n.noCreate)return;i||(e[s]={})}if(i)return e;e=e[s]}},d={$unset:!0,$pop:!0,$rename:!0,$pull:!0,$pullAll:!0},f={$currentDate:function(e,r,n){if("object"===(void 0===n?"undefined":(0,a.default)(n))&&n.hasOwnProperty("$type")){if("date"!==n.$type)throw E("Minimongo does currently only support the date type in $currentDate modifiers",{field:r})}else if(!0!==n)throw E("Invalid $currentDate modifier",{field:r});e[r]=new Date},$min:function(e,r,n){if("number"!=typeof n)throw E("Modifier $min allowed for numbers only",{field:r});if(r in e){if("number"!=typeof e[r])throw E("Cannot apply $min modifier to non-number",{field:r});e[r]>n&&(e[r]=n)}else e[r]=n},$max:function(e,r,n){if("number"!=typeof n)throw E("Modifier $max allowed for numbers only",{field:r});if(r in e){if("number"!=typeof e[r])throw E("Cannot apply $max modifier to non-number",{field:r});e[r]<n&&(e[r]=n)}else e[r]=n},$inc:function(e,r,n){if("number"!=typeof n)throw E("Modifier $inc allowed for numbers only",{field:r});if(r in e){if("number"!=typeof e[r])throw E("Cannot apply $inc modifier to non-number",{field:r});e[r]+=n}else e[r]=n},$set:function(e,r,n){if(!t.isObject(e))throw(o=E("Cannot set property on non-object field",{field:r})).setPropertyError=!0,o;if(null===e){var o=E("Cannot set property on null",{field:r});throw o.setPropertyError=!0,o}s(n),e[r]=n},$setOnInsert:function(e,r,n){},$unset:function(e,r,n){void 0!==e&&(e instanceof Array?r in e&&(e[r]=null):delete e[r])},$push:function(e,r,n){if(void 0===e[r]&&(e[r]=[]),!(e[r]instanceof Array))throw E("Cannot apply $push modifier to non-array",{field:r});if(!n||!n.$each)return s(n),void e[r].push(n);var t=n.$each;if(!(t instanceof Array))throw E("$each must be an array",{field:r});s(t);var o=void 0;if("$position"in n){if("number"!=typeof n.$position)throw E("$position must be a numeric value",{field:r});if(n.$position<0)throw E("$position in $push must be zero or positive",{field:r});o=n.$position}var i=void 0;if("$slice"in n){if("number"!=typeof n.$slice)throw E("$slice must be a numeric value",{field:r});i=n.$slice}var a=void 0;if(n.$sort){if(void 0===i)throw E("$sort requires $slice to be present",{field:r});a=new w.Sorter(n.$sort).getComparator();for(var u=0;u<t.length;u++)if(3!==b._f._type(t[u]))throw E("$push like modifiers using $sort require all elements to be objects",{field:r})}if(void 0===o)for(var c=0;c<t.length;c++)e[r].push(t[c]);else{for(var d=[o,0],c=0;c<t.length;c++)d.push(t[c]);Array.prototype.splice.apply(e[r],d)}a&&e[r].sort(a),void 0!==i&&(e[r]=0===i?[]:i<0?e[r].slice(i):e[r].slice(0,i))},$pushAll:function(e,r,n){if(!("object"===(void 0===n?"undefined":(0,a.default)(n))&&n instanceof Array))throw E("Modifier $pushAll/pullAll allowed for arrays only");s(n);var t=e[r];if(void 0===t)e[r]=n;else{if(!(t instanceof Array))throw E("Cannot apply $pushAll modifier to non-array",{field:r});for(var o=0;o<n.length;o++)t.push(n[o])}},$addToSet:function(e,r,n){var o=!1;"object"===(void 0===n?"undefined":(0,a.default)(n))&&"$each"===Object.keys(n)[0]&&(o=!0);var i=o?n.$each:[n];s(i);var u=e[r];if(void 0===u)e[r]=i;else{if(!(u instanceof Array))throw E("Cannot apply $addToSet modifier to non-array",{field:r});t.each(i,function(e){for(var r=0;r<u.length;r++)if(b._f._equal(e,u[r]))return;u.push(e)})}},$pop:function(e,r,n){if(void 0!==e){var t=e[r];if(void 0!==t){if(!(t instanceof Array))throw E("Cannot apply $pop modifier to non-array",{field:r});"number"==typeof n&&n<0?t.splice(0,1):t.pop()}}},$pull:function(e,r,n){if(void 0!==e){var t=e[r];if(void 0!==t){if(!(t instanceof Array))throw E("Cannot apply $pull/pullAll modifier to non-array",{field:r});var o=[];if(null==n||"object"!==(void 0===n?"undefined":(0,a.default)(n))||n instanceof Array)for(var i=0;i<t.length;i++)b._f._equal(t[i],n)||o.push(t[i]);else for(var s=new w.Matcher(n),i=0;i<t.length;i++)s.documentMatches(t[i]).result||o.push(t[i]);e[r]=o}}},$pullAll:function(e,r,n){if(!("object"===(void 0===n?"undefined":(0,a.default)(n))&&n instanceof Array))throw E("Modifier $pushAll/pullAll allowed for arrays only",{field:r});if(void 0!==e){var t=e[r];if(void 0!==t){if(!(t instanceof Array))throw E("Cannot apply $pull/pullAll modifier to non-array",{field:r});for(var o=[],i=0;i<t.length;i++){for(var s=!1,u=0;u<n.length;u++)if(b._f._equal(t[i],n[u])){s=!0;break}s||o.push(t[i])}e[r]=o}}},$rename:function(e,r,n,t,o){if(t===n)throw E("$rename source must differ from target",{field:r});if(null===e)throw E("$rename source field invalid",{field:r});if("string"!=typeof n)throw E("$rename target must be a string",{field:r});if(n.indexOf("\0")>-1)throw E("The 'to' field for $rename cannot contain an embedded null byte",{field:r});if(void 0!==e){var i=e[r];delete e[r];var a=n.split("."),s=c(o,a,{forbidArray:!0});if(null===s)throw E("$rename target field invalid",{field:r});s[a.pop()]=i}},$bit:function(e,r,n){throw E("$bit is not supported",{field:r})}}},"diff.js":function(){b._diffQueryChanges=function(e,r,n,t,o){return f.diffQueryChanges(e,r,n,t,o)},b._diffQueryUnorderedChanges=function(e,r,n,t){return f.diffQueryUnorderedChanges(e,r,n,t)},b._diffQueryOrderedChanges=function(e,r,n,t){return f.diffQueryOrderedChanges(e,r,n,t)},b._diffObjects=function(e,r,n){return f.diffObjects(e,r,n)}},"id_map.js":function(){b._IdMap=function(){var e=this;i.call(e,c.idStringify,c.idParse)},e._inherits(b._IdMap,i)},"observe.js":function(){b._CachingChangeObserver=function(e){var r=this,n=(e=e||{}).callbacks&&b._observeChangesCallbacksAreOrdered(e.callbacks);if(t.has(e,"ordered")){if(r.ordered=e.ordered,e.callbacks&&e.ordered!==n)throw Error("ordered option doesn't match callbacks")}else{if(!e.callbacks)throw Error("must provide ordered or callbacks");r.ordered=n}var i=e.callbacks||{};r.ordered?(r.docs=new a(c.idStringify),r.applyChange={addedBefore:function(e,n,t){var a=o.clone(n);a._id=e,i.addedBefore&&i.addedBefore.call(r,e,n,t),i.added&&i.added.call(r,e,n),r.docs.putBefore(e,a,t||null)},movedBefore:function(e,n){var t=r.docs.get(e);i.movedBefore&&i.movedBefore.call(r,e,n),r.docs.moveBefore(e,n||null)}}):(r.docs=new b._IdMap,r.applyChange={added:function(e,n){var t=o.clone(n);i.added&&i.added.call(r,e,n),t._id=e,r.docs.set(e,t)}}),r.applyChange.changed=function(e,n){var t=r.docs.get(e);if(!t)throw new Error("Unknown id for changed: "+e);i.changed&&i.changed.call(r,e,o.clone(n)),f.applyChanges(t,n)},r.applyChange.removed=function(e){i.removed&&i.removed.call(r,e),r.docs.remove(e)}},b._observeFromObserveChanges=function(e,r){var n=e.getTransform()||function(e){return e},i=!!r._suppress_initial,a;if(b._observeCallbacksAreOrdered(r)){var s=!r._no_indices;a={addedBefore:function(e,o,a){var u=this;if(!i&&(r.addedAt||r.added)){var c=n(t.extend(o,{_id:e}));if(r.addedAt){var d=s?a?u.docs.indexOf(a):u.docs.size():-1;r.addedAt(c,d,a)}else r.added(c)}},changed:function(e,t){var i=this;if(r.changedAt||r.changed){var a=o.clone(i.docs.get(e));if(!a)throw new Error("Unknown id for changed: "+e);var u=n(o.clone(a));if(f.applyChanges(a,t),a=n(a),r.changedAt){var c=s?i.docs.indexOf(e):-1;r.changedAt(a,u,c)}else r.changed(a,u)}},movedBefore:function(e,t){var i=this;if(r.movedTo){var a=s?i.docs.indexOf(e):-1,u=s?t?i.docs.indexOf(t):i.docs.size():-1;u>a&&--u,r.movedTo(n(o.clone(i.docs.get(e))),a,u,t||null)}},removed:function(e){var t=this;if(r.removedAt||r.removed){var o=n(t.docs.get(e));if(r.removedAt){var i=s?t.docs.indexOf(e):-1;r.removedAt(o,i)}else r.removed(o)}}}}else a={added:function(e,o){if(!i&&r.added){var a=t.extend(o,{_id:e});r.added(n(a))}},changed:function(e,t){var i=this;if(r.changed){var a=i.docs.get(e),s=o.clone(a);f.applyChanges(s,t),r.changed(n(s),n(o.clone(a)))}},removed:function(e){var t=this;r.removed&&r.removed(n(t.docs.get(e)))}};var u=new b._CachingChangeObserver({callbacks:a}),c=e.observeChanges(u.applyChange);return i=!1,c}},"objectid.js":function(e){function r(e){return e&&e.__esModule?e:{default:e}}var n=r(e("babel-runtime/helpers/typeof"));b._selectorIsId=function(e){return"string"==typeof e||"number"==typeof e||e instanceof c.ObjectID},b._selectorIsIdPerhapsAsObject=function(e){return b._selectorIsId(e)||e&&"object"===(void 0===e?"undefined":(0,n.default)(e))&&e._id&&b._selectorIsId(e._id)&&1===t.size(e)},b._idsMatchedBySelector=function(e){if(b._selectorIsId(e))return[e];if(!e)return null;if(t.has(e,"_id"))return b._selectorIsId(e._id)?[e._id]:e._id&&e._id.$in&&t.isArray(e._id.$in)&&!t.isEmpty(e._id.$in)&&t.all(e._id.$in,b._selectorIsId)?e._id.$in:null;if(e.$and&&t.isArray(e.$and))for(var r=0;r<e.$and.length;++r){var n=b._idsMatchedBySelector(e.$and[r]);if(n)return n}return null}},"validation.js":function(e,r,n){function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var r=void 0;if(t.isString(e)&&(r=e.match(/^\$|\.|\0/)))throw E("Key "+e+" must not "+u[r[0]])}function a(e){e&&"object"===(void 0===e?"undefined":(0,s.default)(e))&&JSON.stringify(e,function(e,r){return i(e),r})}var s=o(e("babel-runtime/helpers/typeof"));n.export({assertIsValidFieldName:function(){return i},assertHasValidFieldNames:function(){return a}});var u={".":"contain '.'",$:"start with '$'","\0":"contain null bytes"}}}}}},{extensions:[".js",".json"]});B("./node_modules/meteor/minimongo/minimongo.js"),B("./node_modules/meteor/minimongo/wrap_transform.js"),B("./node_modules/meteor/minimongo/helpers.js"),B("./node_modules/meteor/minimongo/selector.js"),B("./node_modules/meteor/minimongo/sort.js"),B("./node_modules/meteor/minimongo/projection.js"),B("./node_modules/meteor/minimongo/modify.js"),B("./node_modules/meteor/minimongo/diff.js"),B("./node_modules/meteor/minimongo/id_map.js"),B("./node_modules/meteor/minimongo/observe.js"),B("./node_modules/meteor/minimongo/objectid.js"),"undefined"==typeof Package&&(Package={}),function(e,r){for(var n in r)n in e||(e[n]=r[n])}(Package.minimongo={},{LocalCollection:b,Minimongo:w,MinimongoTest:$,MinimongoError:E})}();

!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,a=Package.modules.process,i=Package.underscore._,o=Package.ejson.EJSON,c,s,u=r({node_modules:{meteor:{check:{"match.js":function(t,n){var r=new e.EnvironmentVariable,a=t("./isPlainObject.js").isPlainObject,c=n.check=function(e,t){var n=r.getOrNullIfOutsideFiber();n&&n.checking(e);var a=y(e,t);if(a){var i=new s.Error(a.message);throw a.path&&(i.message+=" in field "+a.path,i.path=a.path),i}},s=n.Match={Optional:function(e){return new u(e)},Maybe:function(e){return new f(e)},OneOf:function(){return new h(i.toArray(arguments))},Any:["__any__"],Where:function(e){return new l(e)},ObjectIncluding:function(e){return new p(e)},ObjectWithValues:function(e){return new g(e)},Integer:["__integer__"],Error:e.makeErrorType("Match.Error",function(t){this.message="Match error: "+t,this.path="",this.sanitizedError=new e.Error(400,"Match failed")}),test:function(e,t){return!y(e,t)},_failIfArgumentsAreNotAllChecked:function(e,t,n,a){var i=new v(n,a),o=r.withValue(i,function(){return e.apply(t,n)});return i.throwUnlessAllArgumentsHaveBeenChecked(),o}},u=function(e){this.pattern=e},f=function(e){this.pattern=e},h=function(e){if(i.isEmpty(e))throw new Error("Must provide at least one choice to Match.OneOf");this.choices=e},l=function(e){this.condition=e},p=function(e){this.pattern=e},g=function(e){this.pattern=e},m=function(e,t){if(t=t||{},null===e)return"null";if(t.onlyShowType)return typeof e;if("object"!=typeof e)return o.stringify(e);try{JSON.stringify(e)}catch(t){if("TypeError"===t.name)return typeof e}return o.stringify(e)},d=[[String,"string"],[Number,"number"],[Boolean,"boolean"],[Function,"function"],[void 0,"undefined"]],y=function(e,t){if(t===s.Any)return!1;for(var n=0;n<d.length;++n)if(t===d[n][0])return typeof e!==d[n][1]&&{message:"Expected "+d[n][1]+", got "+m(e,{onlyShowType:!0}),path:""};if(null===t)return null!==e&&{message:"Expected null, got "+m(e),path:""};if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return e!==t&&{message:"Expected "+t+", got "+m(e),path:""};if(t===s.Integer)return("number"!=typeof e||(0|e)!==e)&&{message:"Expected Integer, got "+m(e),path:""};if(t===Object&&(t=s.ObjectIncluding({})),t instanceof Array){if(1!==t.length)return{message:"Bad pattern: arrays must have one type element"+m(t),path:""};if(!i.isArray(e)&&!i.isArguments(e))return{message:"Expected array, got "+m(e),path:""};for(var n=0,r=e.length;n<r;n++)if(o=y(e[n],t[0]))return o.path=O(n,o.path),o;return!1}if(t instanceof l){var o;try{o=t.condition(e)}catch(e){if(!(e instanceof s.Error))throw e;return{message:e.message,path:e.path}}return!o&&{message:"Failed Match.Where validation",path:""}}if(t instanceof f?t=s.OneOf(void 0,null,t.pattern):t instanceof u&&(t=s.OneOf(void 0,t.pattern)),t instanceof h){for(var n=0;n<t.choices.length;++n)if(!(o=y(e,t.choices[n])))return!1;return{message:"Failed Match.OneOf, Match.Maybe or Match.Optional validation",path:""}}if(t instanceof Function)return!(e instanceof t)&&{message:"Expected "+(t.name||"particular constructor"),path:""};var c=!1,v;if(t instanceof p&&(c=!0,t=t.pattern),t instanceof g&&(c=!0,v=[t.pattern],t={}),"object"!=typeof t)return{message:"Bad pattern: unknown pattern type",path:""};if("object"!=typeof e)return{message:"Expected object, got "+typeof e,path:""};if(null===e)return{message:"Expected object, got null",path:""};if(!a(e))return{message:"Expected plain object",path:""};var b={},k={};i.each(t,function(e,t){e instanceof u||e instanceof f?k[t]=e.pattern:b[t]=e});for(var w=function(e){var t=[];if(i.isObject(e))for(var n in e)t.push(n);return t}(e),n=0,r=w.length;n<r;n++){var j=w[n],E=e[j];if(i.has(b,j)){if(o=y(E,b[j]))return o.path=O(j,o.path),o;delete b[j]}else if(i.has(k,j)){if(o=y(E,k[j]))return o.path=O(j,o.path),o}else{if(!c)return{message:"Unknown key",path:j};if(v&&(o=y(E,v[0])))return o.path=O(j,o.path),o}}return(w=i.keys(b)).length?{message:"Missing key '"+w[0]+"'",path:""}:void 0},v=function(e,t){var n=this;n.args=i.clone(e),n.args.reverse(),n.description=t};i.extend(v.prototype,{checking:function(e){var t=this;t._checkingOneValue(e)||(i.isArray(e)||i.isArguments(e))&&i.each(e,i.bind(t._checkingOneValue,t))},_checkingOneValue:function(e){for(var t=this,n=0;n<t.args.length;++n)if(e===t.args[n]||i.isNaN(e)&&i.isNaN(t.args[n]))return t.args.splice(n,1),!0;return!1},throwUnlessAllArgumentsHaveBeenChecked:function(){var e=this;if(!i.isEmpty(e.args))throw new Error("Did not check() all arguments during "+e.description)}});var b=["do","if","in","for","let","new","try","var","case","else","enum","eval","false","null","this","true","void","with","break","catch","class","const","super","throw","while","yield","delete","export","import","public","return","static","switch","typeof","default","extends","finally","package","private","continue","debugger","function","arguments","interface","protected","implements","instanceof"],O=function(e,t){return"number"==typeof e||e.match(/^[0-9]+$/)?e="["+e+"]":e.match(/^[a-z_$][0-9a-z_$]*$/i)&&!i.contains(b,e)||(e=JSON.stringify([e])),t&&"["!==t[0]?e+"."+t:e+t}},"isPlainObject.js":function(e,t){var n={},r=n.toString,a=n.hasOwnProperty,i=a.toString,o=i.call(Object),c=Object.getPrototypeOf;t.isPlainObject=function(e){var t,n;return!(!e||"[object Object]"!==r.call(e))&&(!(t=c(e))||"function"==typeof(n=a.call(t,"constructor")&&t.constructor)&&i.call(n)===o)}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/check/match.js");"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package.check=u,{check:c,Match:s})}();

!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,r=Package.meteor.meteorEnv,n=Package.underscore._,i=Package.random.Random,a;(function(){a=function(e){var t=this;n.extend(t,n.defaults(n.clone(e||{}),{baseTimeout:1e3,exponent:2.2,maxTimeout:3e5,minTimeout:10,minCount:2,fuzz:.5})),t.retryTimer=null},n.extend(a.prototype,{clear:function(){var e=this;e.retryTimer&&clearTimeout(e.retryTimer),e.retryTimer=null},_timeout:function(e){var t=this;if(e<t.minCount)return t.minTimeout;var r=Math.min(t.maxTimeout,t.baseTimeout*Math.pow(t.exponent,e));return r*=i.fraction()*t.fuzz+(1-t.fuzz/2)},retryLater:function(t,r){var n=this,i=n._timeout(t);return n.retryTimer&&clearTimeout(n.retryTimer),n.retryTimer=e.setTimeout(r,i),i}})}).call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var r in t)r in e||(e[r]=t[r])}(Package.retry={},{Retry:a})}();

!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,a=Package.meteor.meteorEnv,n=Package.check.check,r=Package.check.Match,i=Package.random.Random,o=Package.ejson.EJSON,c=Package.underscore._,s=Package.tracker.Tracker,l=Package.tracker.Deps,u=Package.retry.Retry,d;(function(){d={}}).call(this),function(){d.Heartbeat=function(e){var t=this;t.heartbeatInterval=e.heartbeatInterval,t.heartbeatTimeout=e.heartbeatTimeout,t._sendPing=e.sendPing,t._onTimeout=e.onTimeout,t._seenPacket=!1,t._heartbeatIntervalHandle=null,t._heartbeatTimeoutHandle=null},c.extend(d.Heartbeat.prototype,{stop:function(){var e=this;e._clearHeartbeatIntervalTimer(),e._clearHeartbeatTimeoutTimer()},start:function(){var e=this;e.stop(),e._startHeartbeatIntervalTimer()},_startHeartbeatIntervalTimer:function(){var t=this;t._heartbeatIntervalHandle=e.setInterval(c.bind(t._heartbeatIntervalFired,t),t.heartbeatInterval)},_startHeartbeatTimeoutTimer:function(){var t=this;t._heartbeatTimeoutHandle=e.setTimeout(c.bind(t._heartbeatTimeoutFired,t),t.heartbeatTimeout)},_clearHeartbeatIntervalTimer:function(){var t=this;t._heartbeatIntervalHandle&&(e.clearInterval(t._heartbeatIntervalHandle),t._heartbeatIntervalHandle=null)},_clearHeartbeatTimeoutTimer:function(){var t=this;t._heartbeatTimeoutHandle&&(e.clearTimeout(t._heartbeatTimeoutHandle),t._heartbeatTimeoutHandle=null)},_heartbeatIntervalFired:function(){var e=this;e._seenPacket||e._heartbeatTimeoutHandle||(e._sendPing(),e._startHeartbeatTimeoutTimer()),e._seenPacket=!1},_heartbeatTimeoutFired:function(){var e=this;e._heartbeatTimeoutHandle=null,e._onTimeout()},messageReceived:function(){var e=this;e._seenPacket=!0,e._heartbeatTimeoutHandle&&e._clearHeartbeatTimeoutTimer()}})}.call(this),function(){d.SUPPORTED_DDP_VERSIONS=["1","pre2","pre1"],d.parseDDP=function(t){try{var a=JSON.parse(t)}catch(a){return e._debug("Discarding message with invalid JSON",t),null}return null===a||"object"!=typeof a?(e._debug("Discarding non-object DDP message",t),null):(c.has(a,"cleared")&&(c.has(a,"fields")||(a.fields={}),c.each(a.cleared,function(e){a.fields[e]=void 0}),delete a.cleared),c.each(["fields","params","result"],function(e){c.has(a,e)&&(a[e]=o._adjustTypesFromJSONValue(a[e]))}),a)},d.stringifyDDP=function(e){var t=o.clone(e);if(c.has(e,"fields")){var a=[];c.each(e.fields,function(e,n){void 0===e&&(a.push(n),delete t.fields[n])}),c.isEmpty(a)||(t.cleared=a),c.isEmpty(t.fields)&&delete t.fields}if(c.each(["fields","params","result"],function(e){c.has(t,e)&&(t[e]=o._adjustTypesToJSONValue(t[e]))}),e.id&&"string"!=typeof e.id)throw new Error("Message id is not a string");return JSON.stringify(t)}}.call(this),function(){d.MethodInvocation=function(e){var t=this;this.isSimulation=e.isSimulation,this._unblock=e.unblock||function(){},this._calledUnblock=!1,this.userId=e.userId,this._setUserId=e.setUserId||function(){},this.connection=e.connection,this.randomSeed=e.randomSeed,this.randomStream=null},c.extend(d.MethodInvocation.prototype,{unblock:function(){var e=this;e._calledUnblock=!0,e._unblock()},setUserId:function(e){var t=this;if(t._calledUnblock)throw new Error("Can't call setUserId in a method after calling unblock");t.userId=e,t._setUserId(e)}})}.call(this),function(){function e(){return i.hexString(20)}d.RandomStream=function(t){var a=this;this.seed=[].concat(t.seed||e()),this.sequences={}},d.RandomStream.get=function(e,t){if(t||(t="default"),!e)return i.insecure;var a=e.randomStream;return a||(e.randomStream=a=new d.RandomStream({seed:e.randomSeed})),a._sequence(t)},d.makeRpcSeed=function(e,t){return d.RandomStream.get(e,"/rpc/"+t).hexString(20)},c.extend(d.RandomStream.prototype,{_sequence:function(e){var t=this,a=t.sequences[e]||null;if(null===a){for(var n=t.seed.concat(e),r=0;r<n.length;r++)c.isFunction(n[r])&&(n[r]=n[r]());t.sequences[e]=a=i.createWithSeeds.apply(null,n)}return a}})}.call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var a in t)a in e||(e[a]=t[a])}(Package["ddp-common"]={},{DDPCommon:d})}();

!function(){var a=Package.meteor.Meteor,e=Package.meteor.global,t=Package.meteor.meteorEnv,o=Package.underscore._,n=Package["ecmascript-runtime-client"].Symbol,r=Package["ecmascript-runtime-client"].Map,i=Package["ecmascript-runtime-client"].Set,c;(function(){c={};var e="Meteor_Reload",t={},n,r=null;try{(r=window.sessionStorage)?(r.setItem("__dummy__","1"),r.removeItem("__dummy__")):r=null}catch(a){r=null}c._getData=function(){return r&&r.getItem(e)},r&&(n=c._getData(),r.removeItem(e)),n||(n="{}");var i={};try{"object"!=typeof(i=JSON.parse(n))&&(a._debug("Got bad data on reload. Ignoring."),i={})}catch(e){a._debug("Got invalid JSON on reload. Ignoring.")}i.reload&&"object"==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't serialize data for migration",n),e}if(r)try{r.setItem(e,i)}catch(e){a._debug("Couldn't save data for migration to sessionStorage",e)}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,o=Package.check.check,r=Package.check.Match,i=Package.random.Random,s=Package.ejson.EJSON,a=Package.underscore._,u=Package.tracker.Tracker,c=Package.tracker.Deps,d=Package.retry.Retry,l=Package["id-map"].IdMap,f=Package["ddp-common"].DDPCommon,_=Package["diff-sequence"].DiffSequence,p=Package["mongo-id"].MongoID,h=Package.modules.meteorInstall,v=Package.modules.process,m=Package["babel-runtime"].meteorBabelHelpers,g=Package.promise.Promise,b=Package["ecmascript-runtime-client"].Symbol,y=Package["ecmascript-runtime-client"].Map,w=Package["ecmascript-runtime-client"].Set,k,S,C,O,E,D=h({node_modules:{meteor:{"ddp-client":{"sockjs-0.3.4.js":function(e){function t(e){return e&&e.__esModule?e:{default:e}}var n=t(e("babel-runtime/helpers/typeof"));k=function(){var e=document,t=window,o={},r=function(){};r.prototype.addEventListener=function(e,t){this._listeners||(this._listeners={}),e in this._listeners||(this._listeners[e]=[]);var n=this._listeners[e];-1===o.arrIndexOf(n,t)&&n.push(t)},r.prototype.removeEventListener=function(e,t){if(this._listeners&&e in this._listeners){var n=this._listeners[e],r=o.arrIndexOf(n,t);-1===r||(n.length>1?this._listeners[e]=n.slice(0,r).concat(n.slice(r+1)):delete this._listeners[e])}},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 o=0;o<this._listeners[t].length;o++)this._listeners[t][o].apply(this,n)};var i=function(e,t){if(this.type=e,void 0!==t)for(var n in m.sanitizeForInObject(t))t.hasOwnProperty(n)&&(this[n]=t[n])};i.prototype.toString=function(){var e=[];for(var t in m.sanitizeForInObject(this))if(this.hasOwnProperty(t)){var n=this[t];"function"==typeof n&&(n="[function]"),e.push(t+"="+n)}return"SimpleEvent("+e.join(", ")+")"};var s=function(e){var t=this;t._events=e||[],t._listeners={}};s.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 o=0;o<t._listeners[e].length;o++)t._listeners[e][o].apply(t,n)}},s.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))},s.prototype._verifyType=function(e){var t=this;-1===o.arrIndexOf(t._events,e)&&o.log("Event "+JSON.stringify(e)+" not listed "+JSON.stringify(t._events)+" in "+t)},s.prototype.nuke=function(){var e=this;e._nuked=!0;for(var t=0;t<e._events.length;t++)delete e[e._events[t]];e._listeners={}};var a="abcdefghijklmnopqrstuvwxyz0123456789_";o.random_string=function(e,t){t=t||a.length;var n,o=[];for(n=0;n<e;n++)o.push(a.substr(Math.floor(Math.random()*t),1));return o.join("")},o.random_number=function(e){return Math.floor(Math.random()*e)},o.random_number_string=function(e){var t=(""+(e-1)).length;return(Array(t+1).join("0")+o.random_number(e)).slice(-t)},o.getOrigin=function(e){return(e+="/").split("/").slice(0,3).join("/")},o.isSameOriginUrl=function(e,n){return n||(n=t.location.href),e.split("/").slice(0,3).join("/")===n.split("/").slice(0,3).join("/")},o.isSameOriginScheme=function(e,n){return n||(n=t.location.href),e.split(":")[0]===n.split(":")[0]},o.getParentDomain=function(e){return/^[0-9.]*$/.test(e)?e:/^\[/.test(e)?e:/[.]/.test(e)?e.split(".").slice(1).join("."):e},o.objectExtend=function(e,t){for(var n in m.sanitizeForInObject(t))t.hasOwnProperty(n)&&(e[n]=t[n]);return e};var u="_jp";o.polluteGlobalNamespace=function(){"_jp"in t||(t._jp={})},o.closeFrame=function(e,t){return"c"+JSON.stringify([e,t])},o.userSetCode=function(e){return 1e3===e||e>=3e3&&e<=4999},o.countRTO=function(e){var t;return t=e>100?3*e:e+200},o.log=function(){t.console&&console.log&&console.log.apply&&console.log.apply(console,arguments)},o.bind=function(e,t){return e.bind?e.bind(t):function(){return e.apply(t,arguments)}},o.flatUrl=function(e){return-1===e.indexOf("?")&&-1===e.indexOf("#")},o.amendUrl=function(t,n){var r;if(void 0===n)r=e.location;else{var i=/^([a-z0-9.+-]+:)/i.exec(n);if(i){var s=i[0].toLowerCase(),a=n.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");r={protocol:s,host:c}}if(!t)throw new Error("Wrong url for SockJS");if(!o.flatUrl(t))throw new Error("Only basic urls are supported in SockJS");0===t.indexOf("//")&&(t=r.protocol+t),0===t.indexOf("/")&&(t=r.protocol+"//"+r.host+t);var d=(t=t.replace(/[/]+$/,"")).split("/");return("http:"===d[0]&&/:80$/.test(d[2])||"https:"===d[0]&&/:443$/.test(d[2]))&&(d[2]=d[2].replace(/:(80|443)$/,"")),t=d.join("/")},o.arrIndexOf=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},o.arrSkip=function(e,t){var n=o.arrIndexOf(e,t);return-1===n?e.slice():e.slice(0,n).concat(e.slice(n+1))},o.isArray=Array.isArray||function(e){return{}.toString.call(e).indexOf("Array")>=0},o.delay=function(e,t){return"function"==typeof e&&(t=e,e=0),setTimeout(t,e)};var c=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,d={"\0":"\\u0000","":"\\u0001","":"\\u0002","":"\\u0003","":"\\u0004","":"\\u0005","":"\\u0006"," ":"\\u0007","\b":"\\b","\t":"\\t","\n":"\\n","\v":"\\u000b","\f":"\\f","\r":"\\r","":"\\u000e","":"\\u000f","":"\\u0010","":"\\u0011","":"\\u0012","":"\\u0013","":"\\u0014","":"\\u0015","":"\\u0016","":"\\u0017","":"\\u0018","":"\\u0019","":"\\u001a","":"\\u001b","":"\\u001c","":"\\u001d","":"\\u001e","":"\\u001f",'"':'\\"',"\\":"\\\\","":"\\u007f","€":"\\u0080","":"\\u0081","‚":"\\u0082","ƒ":"\\u0083","„":"\\u0084","Â…":"\\u0085","†":"\\u0086","‡":"\\u0087","ˆ":"\\u0088","‰":"\\u0089","Š":"\\u008a","‹":"\\u008b","ÂŒ":"\\u008c","":"\\u008d","ÂŽ":"\\u008e","":"\\u008f","":"\\u0090","‘":"\\u0091","Â’":"\\u0092","“":"\\u0093","”":"\\u0094","•":"\\u0095","–":"\\u0096","—":"\\u0097","˜":"\\u0098","™":"\\u0099","š":"\\u009a","›":"\\u009b","Âœ":"\\u009c","":"\\u009d","ž":"\\u009e","Ÿ":"\\u009f","­":"\\u00ad","Ø€":"\\u0600","؁":"\\u0601","Ø‚":"\\u0602","؃":"\\u0603","Ø„":"\\u0604","܏":"\\u070f","áž´":"\\u17b4","ážµ":"\\u17b5","‌":"\\u200c","‍":"\\u200d","‎":"\\u200e","‏":"\\u200f","\u2028":"\\u2028","\u2029":"\\u2029","‪":"\\u202a","‫":"\\u202b","‬":"\\u202c","‭":"\\u202d","‮":"\\u202e"," ":"\\u202f","⁠":"\\u2060","⁡":"\\u2061","⁢":"\\u2062","⁣":"\\u2063","⁤":"\\u2064","⁥":"\\u2065","⁦":"\\u2066","⁧":"\\u2067","⁨":"\\u2068","⁩":"\\u2069","":"\\u206a","":"\\u206b","":"\\u206c","":"\\u206d","":"\\u206e","":"\\u206f","\ufeff":"\\ufeff","ï¿°":"\\ufff0","￱":"\\ufff1","￲":"\\ufff2","￳":"\\ufff3","ï¿´":"\\ufff4","￵":"\\ufff5","￶":"\\ufff6","ï¿·":"\\ufff7","￸":"\\ufff8"," ":"\\ufff9"," ":"\\ufffa"," ":"\\ufffb"," ":"\\ufffc"," ":"\\ufffd"," ":"\\ufffe"," ":"\\uffff"},l=/[\x00-\x1f\ud800-\udfff\ufffe\uffff\u0300-\u0333\u033d-\u0346\u034a-\u034c\u0350-\u0352\u0357-\u0358\u035c-\u0362\u0374\u037e\u0387\u0591-\u05af\u05c4\u0610-\u0617\u0653-\u0654\u0657-\u065b\u065d-\u065e\u06df-\u06e2\u06eb-\u06ec\u0730\u0732-\u0733\u0735-\u0736\u073a\u073d\u073f-\u0741\u0743\u0745\u0747\u07eb-\u07f1\u0951\u0958-\u095f\u09dc-\u09dd\u09df\u0a33\u0a36\u0a59-\u0a5b\u0a5e\u0b5c-\u0b5d\u0e38-\u0e39\u0f43\u0f4d\u0f52\u0f57\u0f5c\u0f69\u0f72-\u0f76\u0f78\u0f80-\u0f83\u0f93\u0f9d\u0fa2\u0fa7\u0fac\u0fb9\u1939-\u193a\u1a17\u1b6b\u1cda-\u1cdb\u1dc0-\u1dcf\u1dfc\u1dfe\u1f71\u1f73\u1f75\u1f77\u1f79\u1f7b\u1f7d\u1fbb\u1fbe\u1fc9\u1fcb\u1fd3\u1fdb\u1fe3\u1feb\u1fee-\u1fef\u1ff9\u1ffb\u1ffd\u2000-\u2001\u20d0-\u20d1\u20d4-\u20d7\u20e7-\u20e9\u2126\u212a-\u212b\u2329-\u232a\u2adc\u302b-\u302c\uaab2-\uaab3\uf900-\ufa0d\ufa10\ufa12\ufa15-\ufa1e\ufa20\ufa22\ufa25-\ufa26\ufa2a-\ufa2d\ufa30-\ufa6d\ufa70-\ufad9\ufb1d\ufb1f\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufb4e\ufff0-\uffff]/g,f,_=JSON&&JSON.stringify||function(e){return c.lastIndex=0,c.test(e)&&(e=e.replace(c,function(e){return d[e]})),'"'+e+'"'},p=function(e){var t,n={},o=[];for(t=0;t<65536;t++)o.push(String.fromCharCode(t));return e.lastIndex=0,o.join("").replace(e,function(e){return n[e]="\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4),""}),e.lastIndex=0,n};o.quote=function(e){var t=_(e);return l.lastIndex=0,l.test(t)?(f||(f=p(l)),t.replace(l,function(e){return f[e]})):t};var h=["websocket","xdr-streaming","xhr-streaming","iframe-eventsource","iframe-htmlfile","xdr-polling","xhr-polling","iframe-xhr-polling","jsonp-polling"];o.probeProtocols=function(){for(var e={},t=0;t<h.length;t++){var n=h[t];e[n]=C[n]&&C[n].enabled()}return e},o.detectProtocols=function(e,t,n){var o={},r=[];t||(t=h);for(var i=0;i<t.length;i++){var s=t[i];o[s]=e[s]}var a=function(e){var t=e.shift();o[t]?r.push(t):e.length>0&&a(e)};return!1!==n.websocket&&a(["websocket"]),o["xhr-streaming"]&&!n.null_origin?r.push("xhr-streaming"):!o["xdr-streaming"]||n.cookie_needed||n.null_origin?a(["iframe-eventsource","iframe-htmlfile"]):r.push("xdr-streaming"),o["xhr-polling"]&&!n.null_origin?r.push("xhr-polling"):!o["xdr-polling"]||n.cookie_needed||n.null_origin?a(["iframe-xhr-polling","jsonp-polling"]):r.push("xdr-polling"),r};var v="_sockjs_global";o.createHook=function(){var e="a"+o.random_string(8);if(!(v in t)){var n={};t[v]=function(e){return e in n||(n[e]={id:e,del:function(){delete n[e]}}),n[e]}}return t[v](e)},o.attachMessage=function(e){o.attachEvent("message",e)},o.attachEvent=function(n,o){void 0!==t.addEventListener?t.addEventListener(n,o,!1):(e.attachEvent("on"+n,o),t.attachEvent("on"+n,o))},o.detachMessage=function(e){o.detachEvent("message",e)},o.detachEvent=function(n,o){void 0!==t.addEventListener?t.removeEventListener(n,o,!1):(e.detachEvent("on"+n,o),t.detachEvent("on"+n,o))};var g={},b=!1,y=function(){for(var e in m.sanitizeForInObject(g))g[e](),delete g[e]},w=function(){b||(b=!0,y())};o.attachEvent("unload",w),o.unload_add=function(e){var t=o.random_string(8);return g[t]=e,b&&o.delay(y),t},o.unload_del=function(e){e in g&&delete g[e]},o.createIframe=function(t,n){var r=e.createElement("iframe"),i,s,a=function(){clearTimeout(i);try{r.onload=null}catch(e){}r.onerror=null},u=function(){r&&(a(),setTimeout(function(){r&&r.parentNode.removeChild(r),r=null},0),o.unload_del(s))},c=function(e){r&&(u(),n(e))},d=function(e,t){try{r&&r.contentWindow&&r.contentWindow.postMessage(e,t)}catch(e){}};return r.src=t,r.style.display="none",r.style.position="absolute",r.onerror=function(){c("onerror")},r.onload=function(){clearTimeout(i),i=setTimeout(function(){c("onload timeout")},2e3)},e.body.appendChild(r),i=setTimeout(function(){c("timeout")},15e3),s=o.unload_add(u),{post:d,cleanup:u,loaded:a}},o.createHtmlfile=function(e,n){var r=new ActiveXObject("htmlfile"),i,s,a,u=function(){clearTimeout(i)},c=function(){r&&(u(),o.unload_del(s),a.parentNode.removeChild(a),a=r=null,CollectGarbage())},d=function(e){r&&(c(),n(e))},l=function(e,t){try{a&&a.contentWindow&&a.contentWindow.postMessage(e,t)}catch(e){}};r.open(),r.write('<html><script>document.domain="'+document.domain+'";<\/script></html>'),r.close(),r.parentWindow._jp=t._jp;var f=r.createElement("div");return r.body.appendChild(f),a=r.createElement("iframe"),f.appendChild(a),a.src=e,i=setTimeout(function(){d("timeout")},15e3),s=o.unload_add(c),{post:l,cleanup:c,loaded:u}};var k=function(){};(k.prototype=new s(["chunk","finish"]))._start=function(e,n,r,i){var s=this;try{s.xhr=new XMLHttpRequest}catch(e){}if(!s.xhr)try{s.xhr=new t.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}(t.ActiveXObject||t.XDomainRequest)&&(n+=(-1===n.indexOf("?")?"?":"&")+"t="+ +new Date),s.unload_ref=o.unload_add(function(){s._cleanup(!0)});try{s.xhr.open(e,n,!0)}catch(e){return s.emit("finish",0,""),void s._cleanup()}if(i&&i.no_credentials||(s.xhr.withCredentials="true"),i&&i.headers)for(var a in m.sanitizeForInObject(i.headers))s.xhr.setRequestHeader(a,i.headers[a]);s.xhr.onreadystatechange=function(){if(s.xhr){var e=s.xhr;switch(e.readyState){case 3:try{var t=e.status,n=e.responseText}catch(e){}1223===t&&(t=204),n&&n.length>0&&s.emit("chunk",t,n);break;case 4:1223===(t=e.status)&&(t=204),s.emit("finish",t,e.responseText),s._cleanup(!1);break}}},s.xhr.send(r)},k.prototype._cleanup=function(e){var t=this;if(t.xhr){if(o.unload_del(t.unload_ref),t.xhr.onreadystatechange=function(){},e)try{t.xhr.abort()}catch(e){}t.unload_ref=t.xhr=null}},k.prototype.close=function(){var e=this;e.nuke(),e._cleanup(!0)},(o.XHRCorsObject=function(){var e=this,t=arguments;o.delay(function(){e._start.apply(e,t)})}).prototype=new k,(o.XHRLocalObject=function(e,t,n){var r=this;o.delay(function(){r._start(e,t,n,{no_credentials:!0})})}).prototype=new k;var S=o.XDRObject=function(e,t,n){var r=this;o.delay(function(){r._start(e,t,n)})};S.prototype=new s(["chunk","finish"]),S.prototype._start=function(e,t,n){var r=this,i=new XDomainRequest;t+=(-1===t.indexOf("?")?"?":"&")+"t="+ +new Date;var s=i.ontimeout=i.onerror=function(){r.emit("finish",0,""),r._cleanup(!1)};i.onprogress=function(){r.emit("chunk",200,i.responseText)},i.onload=function(){r.emit("finish",200,i.responseText),r._cleanup(!1)},r.xdr=i,r.unload_ref=o.unload_add(function(){r._cleanup(!0)});try{r.xdr.open(e,t),r.xdr.send(n)}catch(e){s()}},S.prototype._cleanup=function(e){var t=this;if(t.xdr){if(o.unload_del(t.unload_ref),t.xdr.ontimeout=t.xdr.onerror=t.xdr.onprogress=t.xdr.onload=null,e)try{t.xdr.abort()}catch(e){}t.unload_ref=t.xdr=null}},S.prototype.close=function(){var e=this;e.nuke(),e._cleanup(!0)},o.isXHRCorsCapable=function(){return t.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest?1:t.XDomainRequest&&e.domain?2:A.enabled()?3:4};var C=function(e,t,n){if(!(this instanceof C))return new C(e,t,n);var r=this,i;r._options={devel:!1,debug:!1,protocols_whitelist:[],info:void 0,rtt:void 0},n&&o.objectExtend(r._options,n),r._base_url=o.amendUrl(e),r._server=r._options.server||o.random_number_string(1e3),r._options.protocols_whitelist&&r._options.protocols_whitelist.length?i=r._options.protocols_whitelist:(i="string"==typeof t&&t.length>0?[t]:o.isArray(t)?t:null)&&r._debug('Deprecated API: Use "protocols_whitelist" option instead of supplying protocol list as a second parameter to SockJS constructor.'),r._protocols=[],r.protocol=null,r.readyState=C.CONNECTING,r._ir=J(r._base_url),r._ir.onfinish=function(e,t){r._ir=null,e?(r._options.info&&(e=o.objectExtend(e,r._options.info)),r._options.rtt&&(t=r._options.rtt),r._applyInfo(e,t,i),r._didClose()):r._didClose(1002,"Can't connect to server",!0)}};C.prototype=new r,C.version="0.3.4",C.CONNECTING=0,C.OPEN=1,C.CLOSING=2,C.CLOSED=3,C.prototype._debug=function(){this._options.debug&&o.log.apply(o,arguments)},C.prototype._dispatchOpen=function(){var e=this;e.readyState===C.CONNECTING?(e._transport_tref&&(clearTimeout(e._transport_tref),e._transport_tref=null),e.readyState=C.OPEN,e.dispatchEvent(new i("open"))):e._didClose(1006,"Server lost session")},C.prototype._dispatchMessage=function(e){var t=this;t.readyState===C.OPEN&&t.dispatchEvent(new i("message",{data:e}))},C.prototype._dispatchHeartbeat=function(e){var t=this;t.readyState===C.OPEN&&t.dispatchEvent(new i("heartbeat",{}))},C.prototype._didClose=function(e,t,n){var r=this;if(r.readyState!==C.CONNECTING&&r.readyState!==C.OPEN&&r.readyState!==C.CLOSING)throw new Error("INVALID_STATE_ERR");r._ir&&(r._ir.nuke(),r._ir=null),r._transport&&(r._transport.doCleanup(),r._transport=null);var s=new i("close",{code:e,reason:t,wasClean:o.userSetCode(e)});if(!o.userSetCode(e)&&r.readyState===C.CONNECTING&&!n){if(r._try_next_protocol(s))return;s=new i("close",{code:2e3,reason:"All transports failed",wasClean:!1,last_event:s})}r.readyState=C.CLOSED,o.delay(function(){r.dispatchEvent(s)})},C.prototype._didMessage=function(e){var t=this;switch(e.slice(0,1)){case"o":t._dispatchOpen();break;case"a":for(var n=JSON.parse(e.slice(1)||"[]"),o=0;o<n.length;o++)t._dispatchMessage(n[o]);break;case"m":var n=JSON.parse(e.slice(1)||"null");t._dispatchMessage(n);break;case"c":var n=JSON.parse(e.slice(1)||"[]");t._didClose(n[0],n[1]);break;case"h":t._dispatchHeartbeat();break}},C.prototype._try_next_protocol=function(t){var n=this;for(n.protocol&&(n._debug("Closed transport:",n.protocol,""+t),n.protocol=null),n._transport_tref&&(clearTimeout(n._transport_tref),n._transport_tref=null);;){var r=n.protocol=n._protocols.shift();if(!r)return!1;if(C[r]&&!0===C[r].need_body&&(!e.body||void 0!==e.readyState&&"complete"!==e.readyState))return n._protocols.unshift(r),n.protocol="waiting-for-load",o.attachEvent("load",function(){n._try_next_protocol()}),!0;if(C[r]&&C[r].enabled(n._options)){var i=C[r].roundTrips||1,s=(n._options.rto||0)*i||5e3;n._transport_tref=o.delay(s,function(){n.readyState===C.CONNECTING&&n._didClose(2007,"Transport timeouted")});var a=o.random_string(8),u=n._base_url+"/"+n._server+"/"+a;return n._debug("Opening transport:",r," url:"+u," RTO:"+n._options.rto),n._transport=new C[r](n,u,n._base_url),!0}n._debug("Skipping transport:",r)}},C.prototype.close=function(e,t){var n=this;if(e&&!o.userSetCode(e))throw new Error("INVALID_ACCESS_ERR");return(n.readyState===C.CONNECTING||n.readyState===C.OPEN)&&(n.readyState=C.CLOSING,n._didClose(e||1e3,t||"Normal closure"),!0)},C.prototype.send=function(e){var t=this;if(t.readyState===C.CONNECTING)throw new Error("INVALID_STATE_ERR");return t.readyState===C.OPEN&&t._transport.doSend(o.quote(""+e)),!0},C.prototype._applyInfo=function(t,n,r){var i=this;i._options.info=t,i._options.rtt=n,i._options.rto=o.countRTO(n),i._options.info.null_origin=!e.domain,t.base_url&&(i._base_url=o.amendUrl(t.base_url,i._base_url));var s=o.probeProtocols();i._protocols=o.detectProtocols(s,r,t),o.isSameOriginScheme(i._base_url)||2!==o.isXHRCorsCapable()||(i._protocols=["jsonp-polling"])};var O=C.websocket=function(e,n){var r=this,i=n+"/websocket";i="https"===i.slice(0,5)?"wss"+i.slice(5):"ws"+i.slice(4),r.ri=e,r.url=i;var s=t.WebSocket||t.MozWebSocket;r.ws=new s(r.url),r.ws.onmessage=function(e){r.ri._didMessage(e.data)},r.unload_ref=o.unload_add(function(){r.ws.close()}),r.ws.onclose=function(){r.ri._didMessage(o.closeFrame(1006,"WebSocket connection broken"))}};O.prototype.doSend=function(e){this.ws.send("["+e+"]")},O.prototype.doCleanup=function(){var e=this,t=e.ws;t&&(t.onmessage=t.onclose=null,t.close(),o.unload_del(e.unload_ref),e.unload_ref=e.ri=e.ws=null)},O.enabled=function(){return!(!t.WebSocket&&!t.MozWebSocket)},O.roundTrips=2;var E=function(){};E.prototype.send_constructor=function(e){var t=this;t.send_buffer=[],t.sender=e},E.prototype.doSend=function(e){var t=this;t.send_buffer.push(e),t.send_stop||t.send_schedule()},E.prototype.send_schedule_wait=function(){var e=this,t;e.send_stop=function(){e.send_stop=null,clearTimeout(t)},t=o.delay(25,function(){e.send_stop=null,e.send_schedule()})},E.prototype.send_schedule=function(){var e=this;if(e.send_buffer.length>0){var t="["+e.send_buffer.join(",")+"]";e.send_stop=e.sender(e.trans_url,t,function(t,n){e.send_stop=null,!1===t?e.ri._didClose(1006,"Sending error "+n):e.send_schedule_wait()}),e.send_buffer=[]}},E.prototype.send_destructor=function(){var e=this;e._send_stop&&e._send_stop(),e._send_stop=null};var D=function(t,n,r){var i=this;if(!("_send_form"in i)){var s=i._send_form=e.createElement("form");(a=i._send_area=e.createElement("textarea")).name="d",s.style.display="none",s.style.position="absolute",s.method="POST",s.enctype="application/x-www-form-urlencoded",s.acceptCharset="UTF-8",s.appendChild(a),e.body.appendChild(s)}var s=i._send_form,a=i._send_area,u="a"+o.random_string(8);s.target=u,s.action=t+"/jsonp_send?i="+u;var c;try{c=e.createElement('<iframe name="'+u+'">')}catch(t){(c=e.createElement("iframe")).name=u}c.id=u,s.appendChild(c),c.style.display="none";try{a.value=n}catch(e){o.log("Your browser is seriously broken. Go home! "+e.message)}s.submit();var d=function(e){c.onerror&&(c.onreadystatechange=c.onerror=c.onload=null,o.delay(500,function(){c.parentNode.removeChild(c),c=null}),a.value="",r(!0))};return c.onerror=c.onload=d,c.onreadystatechange=function(e){"complete"==c.readyState&&d()},d},T=function(e){return function(t,n,o){return new e("POST",t+"/xhr_send",n).onfinish=function(e,t){o(200===e||204===e,"http status "+e)},function(e){o(!1,e)}}},M=function(t,n){var r,i=e.createElement("script"),s,a=function(e){s&&(s.parentNode.removeChild(s),s=null),i&&(clearTimeout(r),i.parentNode.removeChild(i),i.onreadystatechange=i.onerror=i.onload=i.onclick=null,i=null,n(e),n=null)},u=!1,c=null;if(i.id="a"+o.random_string(8),i.src=t,i.type="text/javascript",i.charset="UTF-8",i.onerror=function(e){c||(c=setTimeout(function(){u||a(o.closeFrame(1006,"JSONP script loaded abnormally (onerror)"))},1e3))},i.onload=function(e){a(o.closeFrame(1006,"JSONP script loaded abnormally (onload)"))},i.onreadystatechange=function(e){if(/loaded|closed/.test(i.readyState)){if(i&&i.htmlFor&&i.onclick){u=!0;try{i.onclick()}catch(e){}}i&&a(o.closeFrame(1006,"JSONP script loaded abnormally (onreadystatechange)"))}},void 0===i.async&&e.attachEvent)if(/opera/i.test(navigator.userAgent))(s=e.createElement("script")).text="try{var a = document.getElementById('"+i.id+"'); if(a)a.onerror();}catch(x){};",i.async=s.async=!1;else{try{i.htmlFor=i.id,i.event="onclick"}catch(e){}i.async=!0}void 0!==i.async&&(i.async=!0),r=setTimeout(function(){a(o.closeFrame(1006,"JSONP script loaded abnormally (timeout)"))},35e3);var d=e.getElementsByTagName("head")[0];return d.insertBefore(i,d.firstChild),s&&d.insertBefore(s,d.firstChild),a},x=C["jsonp-polling"]=function(e,t){o.polluteGlobalNamespace();var n=this;n.ri=e,n.trans_url=t,n.send_constructor(D),n._schedule_recv()};x.prototype=new E,x.prototype._schedule_recv=function(){var e=this,t=function(t){e._recv_stop=null,t&&(e._is_closing||e.ri._didMessage(t)),e._is_closing||e._schedule_recv()};e._recv_stop=j(e.trans_url+"/jsonp",M,t)},x.enabled=function(){return!0},x.need_body=!0,x.prototype.doCleanup=function(){var e=this;e._is_closing=!0,e._recv_stop&&e._recv_stop(),e.ri=e._recv_stop=null,e.send_destructor()};var j=function(e,n,r){var i="a"+o.random_string(6),s=0,a=n(e+"?c="+escape("_jp."+i),function(e){switch(s){case 0:delete t._jp[i],r(e);break;case 1:r(e),s=2;break;case 2:delete t._jp[i];break}});return t._jp[i]=a,function(){t._jp[i]&&(s=1,t._jp[i](o.closeFrame(1e3,"JSONP user aborted read")))}},R=function(){};(R.prototype=new E).run=function(e,t,n,o,r){var i=this;i.ri=e,i.trans_url=t,i.send_constructor(T(r)),i.poll=new Q(e,o,t+n,r)},R.prototype.doCleanup=function(){var e=this;e.poll&&(e.poll.abort(),e.poll=null)};var I=C["xhr-streaming"]=function(e,t){this.run(e,t,"/xhr_streaming",Z,o.XHRCorsObject)};I.prototype=new R,I.enabled=function(){return t.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest&&!/opera/i.test(navigator.userAgent)},I.roundTrips=2,I.need_body=!0;var P=C["xdr-streaming"]=function(e,t){this.run(e,t,"/xhr_streaming",Z,o.XDRObject)};P.prototype=new R,P.enabled=function(){return!!t.XDomainRequest},P.roundTrips=2;var N=C["xhr-polling"]=function(e,t){this.run(e,t,"/xhr",Z,o.XHRCorsObject)};N.prototype=new R,N.enabled=I.enabled,N.roundTrips=2;var B=C["xdr-polling"]=function(e,t){this.run(e,t,"/xhr",Z,o.XDRObject)};B.prototype=new R,B.enabled=P.enabled,B.roundTrips=2;var A=function(){};A.prototype.i_constructor=function(e,t,n){var r=this;r.ri=e,r.origin=o.getOrigin(n),r.base_url=n,r.trans_url=t;var i=n+"/iframe.html";r.ri._options.devel&&(i+="?t="+ +new Date),r.window_id=o.random_string(8),i+="#"+r.window_id,r.iframeObj=o.createIframe(i,function(e){r.ri._didClose(1006,"Unable to load an iframe ("+e+")")}),r.onmessage_cb=o.bind(r.onmessage,r),o.attachMessage(r.onmessage_cb)},A.prototype.doCleanup=function(){var e=this;if(e.iframeObj){o.detachMessage(e.onmessage_cb);try{e.iframeObj.iframe.contentWindow&&e.postMessage("c")}catch(e){}e.iframeObj.cleanup(),e.iframeObj=null,e.onmessage_cb=e.iframeObj=null}},A.prototype.onmessage=function(e){var t=this;if(e.origin===t.origin){var n=e.data.slice(0,8),o=e.data.slice(8,9),r=e.data.slice(9);if(n===t.window_id)switch(o){case"s":t.iframeObj.loaded(),t.postMessage("s",JSON.stringify([C.version,t.protocol,t.trans_url,t.base_url]));break;case"t":t.ri._didMessage(r);break}}},A.prototype.postMessage=function(e,t){var n=this;n.iframeObj.post(n.window_id+e+(t||""),n.origin)},A.prototype.doSend=function(e){this.postMessage("m",e)},A.enabled=function(){var e=navigator&&navigator.userAgent&&-1!==navigator.userAgent.indexOf("Konqueror");return("function"==typeof t.postMessage||"object"===(0,n.default)(t.postMessage))&&!e};var U,F=function(e,n){parent!==t?parent.postMessage(U+e+(n||""),"*"):o.log("Can't postMessage, no parent window.",e,n)},W=function(){};W.prototype._didClose=function(e,t){F("t",o.closeFrame(e,t))},W.prototype._didMessage=function(e){F("t",e)},W.prototype._doSend=function(e){this._transport.doSend(e)},W.prototype._doCleanup=function(){this._transport.doCleanup()},o.parent_origin=void 0,C.bootstrap_iframe=function(){var n;U=e.location.hash.slice(1);var r=function(e){if(e.source===parent&&(void 0===o.parent_origin&&(o.parent_origin=e.origin),e.origin===o.parent_origin)){var r=e.data.slice(0,8),i=e.data.slice(8,9),s=e.data.slice(9);if(r===U)switch(i){case"s":var a=JSON.parse(s),u=a[0],c=a[1],d=a[2],l=a[3];if(u!==C.version&&o.log('Incompatibile SockJS! Main site uses: "'+u+'", the iframe: "'+C.version+'".'),!o.flatUrl(d)||!o.flatUrl(l))return void o.log("Only basic urls are supported in SockJS");if(!o.isSameOriginUrl(d)||!o.isSameOriginUrl(l))return void o.log("Can't connect to different domain from within an iframe. ("+JSON.stringify([t.location.href,d,l])+")");(n=new W)._transport=new W[c](n,d,l);break;case"m":n._doSend(s);break;case"c":n&&n._doCleanup(),n=null;break}}};o.attachMessage(r),F("s")};var L=function(e,t){var n=this;o.delay(function(){n.doXhr(e,t)})};(L.prototype=new s(["finish"])).doXhr=function(e,t){var r=this,i=(new Date).getTime(),s=new t("GET",e+"/info?cb="+o.random_string(10)),a=o.delay(8e3,function(){s.ontimeout()});s.onfinish=function(e,t){if(clearTimeout(a),a=null,200===e){var o=(new Date).getTime()-i,s=JSON.parse(t);"object"!==(void 0===s?"undefined":(0,n.default)(s))&&(s={}),r.emit("finish",s,o)}else r.emit("finish")},s.ontimeout=function(){s.close(),r.emit("finish")}};var H=function(t){var n=this,r=function(){var e=new A;e.protocol="w-iframe-info-receiver";var o=function(t){if("string"==typeof t&&"m"===t.substr(0,1)){var o=JSON.parse(t.substr(1)),r=o[0],i=o[1];n.emit("finish",r,i)}else n.emit("finish");e.doCleanup(),e=null},r={_options:{},_didClose:o,_didMessage:o};e.i_constructor(r,t,t)};e.body?r():o.attachEvent("load",r)};H.prototype=new s(["finish"]);var X=function(){var e=this;o.delay(function(){e.emit("finish",{},2e3)})};X.prototype=new s(["finish"]);var J=function(e){if(o.isSameOriginUrl(e))return new L(e,o.XHRLocalObject);switch(o.isXHRCorsCapable()){case 1:return new L(e,o.XHRLocalObject);case 2:return o.isSameOriginScheme(e)?new L(e,o.XDRObject):new X;case 3:return new H(e);default:return new X}};(W["w-iframe-info-receiver"]=function(e,t,n){new L(n,o.XHRLocalObject).onfinish=function(t,n){e._didMessage("m"+JSON.stringify([t,n])),e._didClose()}}).prototype.doCleanup=function(){};var V=C["iframe-eventsource"]=function(){var e=this;e.protocol="w-iframe-eventsource",e.i_constructor.apply(e,arguments)};V.prototype=new A,V.enabled=function(){return"EventSource"in t&&A.enabled()},V.need_body=!0,V.roundTrips=3,(W["w-iframe-eventsource"]=function(e,t){this.run(e,t,"/eventsource",z,o.XHRLocalObject)}).prototype=new R;var q=C["iframe-xhr-polling"]=function(){var e=this;e.protocol="w-iframe-xhr-polling",e.i_constructor.apply(e,arguments)};q.prototype=new A,q.enabled=function(){return t.XMLHttpRequest&&A.enabled()},q.need_body=!0,q.roundTrips=3,(W["w-iframe-xhr-polling"]=function(e,t){this.run(e,t,"/xhr",Z,o.XHRLocalObject)}).prototype=new R;var G=C["iframe-htmlfile"]=function(){var e=this;e.protocol="w-iframe-htmlfile",e.i_constructor.apply(e,arguments)};G.prototype=new A,G.enabled=function(){return A.enabled()},G.need_body=!0,G.roundTrips=3,(W["w-iframe-htmlfile"]=function(e,t){this.run(e,t,"/htmlfile",K,o.XHRLocalObject)}).prototype=new R;var Q=function(e,t,n,o){var r=this;r.ri=e,r.Receiver=t,r.recv_url=n,r.AjaxObject=o,r._scheduleRecv()};Q.prototype._scheduleRecv=function(){var e=this,t=e.poll=new e.Receiver(e.recv_url,e.AjaxObject),n=0;t.onmessage=function(t){n+=1,e.ri._didMessage(t.data)},t.onclose=function(n){e.poll=t=t.onmessage=t.onclose=null,e.poll_is_closing||("permanent"===n.reason?e.ri._didClose(1006,"Polling error ("+n.reason+")"):e._scheduleRecv())}},Q.prototype.abort=function(){var e=this;e.poll_is_closing=!0,e.poll&&e.poll.abort()};var z=function(e){var t=this,n=new EventSource(e);n.onmessage=function(e){t.dispatchEvent(new i("message",{data:unescape(e.data)}))},t.es_close=n.onerror=function(e,r){var s=r?"user":2!==n.readyState?"network":"permanent";t.es_close=n.onmessage=n.onerror=null,n.close(),n=null,o.delay(200,function(){t.dispatchEvent(new i("close",{reason:s}))})}};z.prototype=new r,z.prototype.abort=function(){var e=this;e.es_close&&e.es_close({},!0)};var $,Y=function(){if(void 0===$)if("ActiveXObject"in t)try{$=!!new ActiveXObject("htmlfile")}catch(e){}else $=!1;return $},K=function(e){var n=this;o.polluteGlobalNamespace(),n.id="a"+o.random_string(6,26),e+=(-1===e.indexOf("?")?"?":"&")+"c="+escape("_jp."+n.id);var r=Y()?o.createHtmlfile:o.createIframe,s;t._jp[n.id]={start:function(){s.loaded()},message:function(e){n.dispatchEvent(new i("message",{data:e}))},stop:function(){n.iframe_close({},"network")}},n.iframe_close=function(e,o){s.cleanup(),n.iframe_close=s=null,delete t._jp[n.id],n.dispatchEvent(new i("close",{reason:o}))},s=r(e,function(e){n.iframe_close({},"permanent")})};K.prototype=new r,K.prototype.abort=function(){var e=this;e.iframe_close&&e.iframe_close({},"user")};var Z=function(e,t){var n=this,o=0;n.xo=new t("POST",e,null),n.xo.onchunk=function(e,t){if(200===e)for(;;){var r=t.slice(o),s=r.indexOf("\n");if(-1===s)break;o+=s+1;var a=r.slice(0,s);n.dispatchEvent(new i("message",{data:a}))}},n.xo.onfinish=function(e,t){n.xo.onchunk(e,t),n.xo=null;var o=200===e?"network":"permanent";n.dispatchEvent(new i("close",{reason:o}))}};return Z.prototype=new r,Z.prototype.abort=function(){var e=this;e.xo&&(e.xo.close(),e.dispatchEvent(new i("close",{reason:"user"})),e.xo=null)},C.getUtils=function(){return o},C.getIframeTransport=function(){return A},C}(),"_sockjs_onload"in window&&setTimeout(_sockjs_onload,1),"function"==typeof define&&define.amd&&define("sockjs",[],function(){return k})},"stream_client_sockjs.js":function(t,n,o){var r=void 0,i=void 0;o.watch(t("./namespace.js"),{DDP:function(e){r=e},LivedataTest:function(e){i=e}},0),i.ClientStream=function(e,t){var n=this;n.options=a.extend({retry:!0},t),n._initCommon(n.options),n.HEARTBEAT_TIMEOUT=1e5,n.rawUrl=e,n.socket=null,n.heartbeatTimer=null,"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("online",a.bind(n._online,n),!1),n._launchConnection()},a.extend(i.ClientStream.prototype,{send:function(e){var t=this;t.currentStatus.connected&&t.socket.send(e)},_changeUrl:function(e){this.rawUrl=e},_connected:function(){var e=this;e.connectionTimer&&(clearTimeout(e.connectionTimer),e.connectionTimer=null),e.currentStatus.connected||(e.currentStatus.status="connected",e.currentStatus.connected=!0,e.currentStatus.retryCount=0,e.statusChanged(),a.each(e.eventCallbacks.reset,function(e){e()}))},_cleanup:function(e){var t=this;t._clearConnectionAndHeartbeatTimers(),t.socket&&(t.socket.onmessage=t.socket.onclose=t.socket.onerror=t.socket.onheartbeat=function(){},t.socket.close(),t.socket=null),a.each(t.eventCallbacks.disconnect,function(t){t(e)})},_clearConnectionAndHeartbeatTimers:function(){var e=this;e.connectionTimer&&(clearTimeout(e.connectionTimer),e.connectionTimer=null),e.heartbeatTimer&&(clearTimeout(e.heartbeatTimer),e.heartbeatTimer=null)},_heartbeat_timeout:function(){var t=this;e._debug("Connection timeout. No sockjs heartbeat received."),t._lostConnection(new r.ConnectionError("Heartbeat timed out"))},_heartbeat_received:function(){var e=this;e._forcedToDisconnect||(e.heartbeatTimer&&clearTimeout(e.heartbeatTimer),e.heartbeatTimer=setTimeout(a.bind(e._heartbeat_timeout,e),e.HEARTBEAT_TIMEOUT))},_sockjsProtocolsWhitelist:function(){var e=["xdr-polling","xhr-polling","iframe-xhr-polling","jsonp-polling"];return navigator&&/iPhone|iPad|iPod/.test(navigator.userAgent)&&/OS 4_|OS 5_/.test(navigator.userAgent)||(e=["websocket"].concat(e)),e},_launchConnection:function(){var t=this;t._cleanup();var n=a.extend({protocols_whitelist:t._sockjsProtocolsWhitelist()},t.options._sockjsOptions);t.socket=new k(S(t.rawUrl),void 0,n),t.socket.onopen=function(e){t._connected()},t.socket.onmessage=function(e){t._heartbeat_received(),t.currentStatus.connected&&a.each(t.eventCallbacks.message,function(t){t(e.data)})},t.socket.onclose=function(){t._lostConnection()},t.socket.onerror=function(){e._debug("stream error",a.toArray(arguments),(new Date).toDateString())},t.socket.onheartbeat=function(){t._heartbeat_received()},t.connectionTimer&&clearTimeout(t.connectionTimer),t.connectionTimer=setTimeout(function(){t._lostConnection(new r.ConnectionError("DDP connection timed out"))},t.CONNECT_TIMEOUT)}})},"stream_client_common.js":function(t,n,o){var r=void 0,s=void 0;o.watch(t("./namespace.js"),{DDP:function(e){r=e},LivedataTest:function(e){s=e}},0);var c=function(e,t){return e.length>=t.length&&e.substring(0,t.length)===t},l=function(e,t){return e.length>=t.length&&e.substring(e.length-t.length)===t},f=function(t,n,o){n||(n="http");var r=t.match(/^ddp(i?)\+sockjs:\/\//),s=t.match(/^http(s?):\/\//),a;if(r){var u=t.substr(r[0].length);a="i"===r[1]?n:n+"s";var d=u.indexOf("/"),f=-1===d?u:u.substr(0,d),_=-1===d?"":u.substr(d);return f=f.replace(/\*/g,function(){return Math.floor(10*i.fraction())}),a+"://"+f+_}return s&&(t=(a=s[1]?n+"s":n)+"://"+t.substr(s[0].length)),-1!==t.indexOf("://")||c(t,"/")||(t=n+"://"+t),t=e._relativeToSiteRootUrl(t),l(t,"/")?t+o:t+"/"+o};S=function(e){return f(e,"http","sockjs")},C=function(e){return f(e,"ws","websocket")},s.toSockjsUrl=S,a.extend(s.ClientStream.prototype,{on:function(e,t){var n=this;if("message"!==e&&"reset"!==e&&"disconnect"!==e)throw new Error("unknown event type: "+e);n.eventCallbacks[e]||(n.eventCallbacks[e]=[]),n.eventCallbacks[e].push(t)},_initCommon:function(e){var t=this;e=e||{},t.CONNECT_TIMEOUT=e.connectTimeoutMs||1e4,t.eventCallbacks={},t._forcedToDisconnect=!1,t.currentStatus={status:"connecting",connected:!1,retryCount:0},t.statusListeners=void 0!==u&&new u.Dependency,t.statusChanged=function(){t.statusListeners&&t.statusListeners.changed()},t._retry=new d,t.connectionTimer=null},reconnect:function(e){var t=this;(e=e||{}).url&&t._changeUrl(e.url),e._sockjsOptions&&(t.options._sockjsOptions=e._sockjsOptions),t.currentStatus.connected?(e._force||e.url)&&t._lostConnection(new r.ForcedReconnectError):("connecting"===t.currentStatus.status&&t._lostConnection(),t._retry.clear(),t.currentStatus.retryCount-=1,t._retryNow())},disconnect:function(e){var t=this;e=e||{},t._forcedToDisconnect||(e._permanent&&(t._forcedToDisconnect=!0),t._cleanup(),t._retry.clear(),t.currentStatus={status:e._permanent?"failed":"offline",connected:!1,retryCount:0},e._permanent&&e._error&&(t.currentStatus.reason=e._error),t.statusChanged())},_lostConnection:function(e){var t=this;t._cleanup(e),t._retryLater(e)},_online:function(){"offline"!=this.currentStatus.status&&this.reconnect()},_retryLater:function(e){var t=this,n=0;t.options.retry||e&&"DDP.ForcedReconnectError"===e.errorType?(n=t._retry.retryLater(t.currentStatus.retryCount,a.bind(t._retryNow,t)),t.currentStatus.status="waiting",t.currentStatus.retryTime=(new Date).getTime()+n):(t.currentStatus.status="failed",delete t.currentStatus.retryTime),t.currentStatus.connected=!1,t.statusChanged()},_retryNow:function(){var e=this;e._forcedToDisconnect||(e.currentStatus.retryCount+=1,e.currentStatus.status="connecting",e.currentStatus.connected=!1,delete e.currentStatus.retryTime,e.statusChanged(),e._launchConnection())},status:function(){var e=this;return e.statusListeners&&e.statusListeners.depend(),e.currentStatus}}),r.ConnectionError=e.makeErrorType("DDP.ConnectionError",function(e){this.message=e}),r.ForcedReconnectError=e.makeErrorType("DDP.ForcedReconnectError",function(){})},"livedata_common.js":function(t,n,o){var r=void 0,i=void 0;o.watch(t("./namespace.js"),{DDP:function(e){r=e},LivedataTest:function(e){i=e}},0),i.SUPPORTED_DDP_VERSIONS=f.SUPPORTED_DDP_VERSIONS,r._CurrentInvocation=new e.EnvironmentVariable},"random_stream.js":function(e,t,n){var o=void 0;n.watch(e("./namespace.js"),{DDP:function(e){o=e}},0),o.randomStream=function(e){var t=o._CurrentInvocation.get();return f.RandomStream.get(t,e)}},"livedata_connection.js":function(t,n,o){function r(e){return e&&e.__esModule?e:{default:e}}var c=r(t("babel-runtime/helpers/typeof")),d=void 0,l=void 0;o.watch(t("./namespace.js"),{DDP:function(e){d=e},LivedataTest:function(e){l=e}},0);var h=void 0;if(o.watch(t("./id_map.js"),{MongoIDMap:function(e){h=e}},1),e.isServer)var v=Npm.require("path"),m=Npm.require("fibers"),g=Npm.require(v.join("fibers","future"));var b=function(t,n){var o=this;n=a.extend({onConnected:function(){},onDDPVersionNegotiationFailure:function(t){e._debug(t)},heartbeatInterval:17500,heartbeatTimeout:15e3,npmFayeOptions:{},reloadWithOutstanding:!1,supportedDDPVersions:f.SUPPORTED_DDP_VERSIONS,retry:!0,respondToPings:!0,bufferedWritesInterval:5,bufferedWritesMaxAge:500},n),o.onReconnect=null,"object"===(void 0===t?"undefined":(0,c.default)(t))?o._stream=t:o._stream=new l.ClientStream(t,{retry:n.retry,headers:n.headers,_sockjsOptions:n._sockjsOptions,_dontPrintErrors:n._dontPrintErrors,connectTimeoutMs:n.connectTimeoutMs,npmFayeOptions:n.npmFayeOptions}),o._lastSessionId=null,o._versionSuggestion=null,o._version=null,o._stores={},o._methodHandlers={},o._nextMethodId=1,o._supportedDDPVersions=n.supportedDDPVersions,o._heartbeatInterval=n.heartbeatInterval,o._heartbeatTimeout=n.heartbeatTimeout,o._methodInvokers={},o._outstandingMethodBlocks=[],o._documentsWrittenByStub={},o._serverDocuments={},o._afterUpdateCallbacks=[],o._messagesBufferedUntilQuiescence=[],o._methodsBlockingQuiescence={},o._subsBeingRevived={},o._resetStores=!1,o._updatesForUnknownStores={},o._retryMigrate=null,o.__flushBufferedWrites=e.bindEnvironment(o._flushBufferedWrites,"flushing DDP buffered writes",o),o._bufferedWrites={},o._bufferedWritesFlushAt=null,o._bufferedWritesFlushHandle=null,o._bufferedWritesInterval=n.bufferedWritesInterval,o._bufferedWritesMaxAge=n.bufferedWritesMaxAge,o._subscriptions={},o._userId=null,o._userIdDeps=new u.Dependency,e.isClient&&Package.reload&&!n.reloadWithOutstanding&&Package.reload.Reload._onMigrate(function(e){if(o._readyToMigrate())return[!0];if(o._retryMigrate)throw new Error("Two migrations in progress?");return o._retryMigrate=e,!1});var r=function(t){try{var r=f.parseDDP(t)}catch(t){return void e._debug("Exception while parsing DDP",t)}if(o._heartbeat&&o._heartbeat.messageReceived(),null!==r&&r.msg)if("connected"===r.msg)o._version=o._versionSuggestion,o._livedata_connected(r),n.onConnected();else if("failed"===r.msg)if(a.contains(o._supportedDDPVersions,r.version))o._versionSuggestion=r.version,o._stream.reconnect({_force:!0});else{var i="DDP version negotiation failed; server requested version "+r.version;o._stream.disconnect({_permanent:!0,_error:i}),n.onDDPVersionNegotiationFailure(i)}else"ping"===r.msg&&n.respondToPings?o._send({msg:"pong",id:r.id}):"pong"===r.msg||(a.include(["added","changed","removed","ready","updated"],r.msg)?o._livedata_data(r):"nosub"===r.msg?o._livedata_nosub(r):"result"===r.msg?o._livedata_result(r):"error"===r.msg?o._livedata_error(r):e._debug("discarding unknown livedata message type",r));else r&&r.server_id||e._debug("discarding invalid livedata message",r)},i=function(){var t={msg:"connect"};if(o._lastSessionId&&(t.session=o._lastSessionId),t.version=o._versionSuggestion||o._supportedDDPVersions[0],o._versionSuggestion=t.version,t.support=o._supportedDDPVersions,o._send(t),o._outstandingMethodBlocks.length>0){var n=o._outstandingMethodBlocks[0].methods;o._outstandingMethodBlocks[0].methods=n.filter(function(t){return t.sentMessage&&t.noRetry&&t.receiveResult(new e.Error("invocation-failed","Method invocation might have failed due to dropped connection. Failing because `noRetry` option was passed to Meteor.apply.")),!(t.sentMessage&&t.noRetry)})}!a.isEmpty(o._outstandingMethodBlocks)&&a.isEmpty(o._outstandingMethodBlocks[0].methods)&&o._outstandingMethodBlocks.shift(),a.each(o._methodInvokers,function(e){e.sentMessage=!1}),o.onReconnect?o._callOnReconnectAndSendAppropriateOutstandingMethods():o._sendOutstandingMethods(),a.each(o._subscriptions,function(e,t){o._send({msg:"sub",id:t,name:e.name,params:e.params})})},s=function(){o._heartbeat&&(o._heartbeat.stop(),o._heartbeat=null)};e.isServer?(o._stream.on("message",e.bindEnvironment(r,"handling DDP message")),o._stream.on("reset",e.bindEnvironment(i,"handling DDP reset")),o._stream.on("disconnect",e.bindEnvironment(s,"handling DDP disconnect"))):(o._stream.on("message",r),o._stream.on("reset",i),o._stream.on("disconnect",s))},y=function(e){var t=this;t.methodId=e.methodId,t.sentMessage=!1,t._callback=e.callback,t._connection=e.connection,t._message=e.message,t._onResultReceived=e.onResultReceived||function(){},t._wait=e.wait,t.noRetry=e.noRetry,t._methodResult=null,t._dataVisible=!1,t._connection._methodInvokers[t.methodId]=t};a.extend(y.prototype,{sendMessage:function(){var e=this;if(e.gotResult())throw new Error("sendingMethod is called on method with result");e._dataVisible=!1,e.sentMessage=!0,e._wait&&(e._connection._methodsBlockingQuiescence[e.methodId]=!0),e._connection._send(e._message)},_maybeInvokeCallback:function(){var e=this;e._methodResult&&e._dataVisible&&(e._callback(e._methodResult[0],e._methodResult[1]),delete e._connection._methodInvokers[e.methodId],e._connection._outstandingMethodFinished())},receiveResult:function(e,t){var n=this;if(n.gotResult())throw new Error("Methods should only receive results once");n._methodResult=[e,t],n._onResultReceived(e,t),n._maybeInvokeCallback()},dataVisible:function(){var e=this;e._dataVisible=!0,e._maybeInvokeCallback()},gotResult:function(){return!!this._methodResult}}),a.extend(b.prototype,{registerStore:function(e,t){var n=this;if(e in n._stores)return!1;var o={};a.each(["update","beginUpdate","endUpdate","saveOriginals","retrieveOriginals","getDoc","_getCollection"],function(e){o[e]=function(){return t[e]?t[e].apply(t,arguments):void 0}}),n._stores[e]=o;var r=n._updatesForUnknownStores[e];return r&&(o.beginUpdate(r.length,!1),a.each(r,function(e){o.update(e)}),o.endUpdate(),delete n._updatesForUnknownStores[e]),!0},subscribe:function(e){var t=this,n=Array.prototype.slice.call(arguments,1),o={};if(n.length){var r=n[n.length-1];a.isFunction(r)?o.onReady=n.pop():r&&a.any([r.onReady,r.onError,r.onStop],a.isFunction)&&(o=n.pop())}var c=a.find(t._subscriptions,function(t){return t.inactive&&t.name===e&&s.equals(t.params,n)}),d;c?(d=c.id,c.inactive=!1,o.onReady&&(c.ready||(c.readyCallback=o.onReady)),o.onError&&(c.errorCallback=o.onError),o.onStop&&(c.stopCallback=o.onStop)):(d=i.id(),t._subscriptions[d]={id:d,name:e,params:s.clone(n),inactive:!1,ready:!1,readyDeps:new u.Dependency,readyCallback:o.onReady,errorCallback:o.onError,stopCallback:o.onStop,connection:t,remove:function(){delete this.connection._subscriptions[this.id],this.ready&&this.readyDeps.changed()},stop:function(){this.connection._send({msg:"unsub",id:d}),this.remove(),o.onStop&&o.onStop()}},t._send({msg:"sub",id:d,name:e,params:n}));var l={stop:function(){a.has(t._subscriptions,d)&&t._subscriptions[d].stop()},ready:function(){if(!a.has(t._subscriptions,d))return!1;var e=t._subscriptions[d];return e.readyDeps.depend(),e.ready},subscriptionId:d};return u.active&&u.onInvalidate(function(e){a.has(t._subscriptions,d)&&(t._subscriptions[d].inactive=!0),u.afterFlush(function(){a.has(t._subscriptions,d)&&t._subscriptions[d].inactive&&l.stop()})}),l},_subscribeAndWait:function(e,t,n){var o=this,r=new g,i=!1,s;return(t=t||[]).push({onReady:function(){i=!0,r.return()},onError:function(e){i?n&&n.onLateError&&n.onLateError(e):r.throw(e)}}),s=o.subscribe.apply(o,[e].concat(t)),r.wait(),s},methods:function(e){var t=this;a.each(e,function(e,n){if("function"!=typeof e)throw new Error("Method '"+n+"' must be a function");if(t._methodHandlers[n])throw new Error("A method named '"+n+"' is already defined");t._methodHandlers[n]=e})},call:function(e){var t=Array.prototype.slice.call(arguments,1);if(t.length&&"function"==typeof t[t.length-1])var n=t.pop();return this.apply(e,t,n)},apply:function(t,n,o,r){var i=this;r||"function"!=typeof o||(r=o,o={}),o=o||{},r&&(r=e.bindEnvironment(r,"delivering result of invoking '"+t+"'")),n=s.clone(n);var u=function(){var e;return function(){return void 0===e&&(e=""+i._nextMethodId++),e}}(),c=d._CurrentInvocation.get(),l=c&&c.isSimulation,_=null,p=function(){return null===_&&(_=f.makeRpcSeed(c,t)),_},h=i._methodHandlers[t];if(h){var v=function(e){i.setUserId(e)},m=new f.MethodInvocation({isSimulation:!0,userId:i.userId(),setUserId:v,randomSeed:function(){return p()}});l||i._saveOriginals();try{var b=d._CurrentInvocation.withValue(m,function(){return e.isServer?e._noYieldsAllowed(function(){return h.apply(m,s.clone(n))}):h.apply(m,s.clone(n))})}catch(e){var w=e}l||i._retrieveAndStoreOriginals(u())}if(l){if(r)return void r(w,b);if(w)throw w;return b}if(w){if(o.throwStubExceptions)throw w;w.expected||e._debug("Exception while simulating the effect of invoking '"+t+"'",w,w.stack)}if(!r)if(e.isClient)r=function(n){n&&e._debug("Error invoking Method '"+t+"':",n.message)};else{var k=new g;r=k.resolver()}var S={msg:"method",method:t,params:n,id:u()};null!==_&&(S.randomSeed=_);var C=new y({methodId:u(),callback:r,connection:i,onResultReceived:o.onResultReceived,wait:!!o.wait,message:S,noRetry:!!o.noRetry});return o.wait?i._outstandingMethodBlocks.push({wait:!0,methods:[C]}):((a.isEmpty(i._outstandingMethodBlocks)||a.last(i._outstandingMethodBlocks).wait)&&i._outstandingMethodBlocks.push({wait:!1,methods:[]}),a.last(i._outstandingMethodBlocks).methods.push(C)),1===i._outstandingMethodBlocks.length&&C.sendMessage(),k?k.wait():o.returnStubValue?b:void 0},_saveOriginals:function(){var e=this;e._waitingForQuiescence()||e._flushBufferedWrites(),a.each(e._stores,function(e){e.saveOriginals()})},_retrieveAndStoreOriginals:function(e){var t=this;if(t._documentsWrittenByStub[e])throw new Error("Duplicate methodId in _retrieveAndStoreOriginals");var n=[];a.each(t._stores,function(o,r){var i=o.retrieveOriginals();i&&i.forEach(function(o,i){n.push({collection:r,id:i}),a.has(t._serverDocuments,r)||(t._serverDocuments[r]=new h);var s=t._serverDocuments[r].setDefault(i,{});s.writtenByStubs?s.writtenByStubs[e]=!0:(s.document=o,s.flushCallbacks=[],s.writtenByStubs={},s.writtenByStubs[e]=!0)})}),a.isEmpty(n)||(t._documentsWrittenByStub[e]=n)},_unsubscribeAll:function(){var e=this;a.each(a.clone(e._subscriptions),function(t,n){"meteor_autoupdate_clientVersions"!==t.name&&e._subscriptions[n].stop()})},_send:function(e){this._stream.send(f.stringifyDDP(e))},_lostConnection:function(e){this._stream._lostConnection(e)},status:function(){var e=this;return e._stream.status.apply(e._stream,arguments)},reconnect:function(){var e=this;return e._stream.reconnect.apply(e._stream,arguments)},disconnect:function(){var e=this;return e._stream.disconnect.apply(e._stream,arguments)},close:function(){return this._stream.disconnect({_permanent:!0})},userId:function(){var e=this;return e._userIdDeps&&e._userIdDeps.depend(),e._userId},setUserId:function(e){var t=this;t._userId!==e&&(t._userId=e,t._userIdDeps&&t._userIdDeps.changed())},_waitingForQuiescence:function(){var e=this;return!a.isEmpty(e._subsBeingRevived)||!a.isEmpty(e._methodsBlockingQuiescence)},_anyMethodsAreOutstanding:function(){var e=this;return a.any(a.pluck(e._methodInvokers,"sentMessage"))},_livedata_connected:function(e){var t=this;if("pre1"!==t._version&&0!==t._heartbeatInterval&&(t._heartbeat=new f.Heartbeat({heartbeatInterval:t._heartbeatInterval,heartbeatTimeout:t._heartbeatTimeout,onTimeout:function(){t._lostConnection(new d.ConnectionError("DDP heartbeat timed out"))},sendPing:function(){t._send({msg:"ping"})}}),t._heartbeat.start()),t._lastSessionId&&(t._resetStores=!0),"string"==typeof e.session){var n=t._lastSessionId===e.session;t._lastSessionId=e.session}n||(t._updatesForUnknownStores={},t._resetStores&&(t._documentsWrittenByStub={},t._serverDocuments={}),t._afterUpdateCallbacks=[],t._subsBeingRevived={},a.each(t._subscriptions,function(e,n){e.ready&&(t._subsBeingRevived[n]=!0)}),t._methodsBlockingQuiescence={},t._resetStores&&a.each(t._methodInvokers,function(e){e.gotResult()?t._afterUpdateCallbacks.push(a.bind(e.dataVisible,e)):e.sentMessage&&(t._methodsBlockingQuiescence[e.methodId]=!0)}),t._messagesBufferedUntilQuiescence=[],t._waitingForQuiescence()||(t._resetStores&&(a.each(t._stores,function(e){e.beginUpdate(0,!0),e.endUpdate()}),t._resetStores=!1),t._runAfterUpdateCallbacks()))},_processOneDataMessage:function(e,t){this["_process_"+e.msg](e,t)},_livedata_data:function(e){var t=this;if(t._waitingForQuiescence()){if(t._messagesBufferedUntilQuiescence.push(e),"nosub"===e.msg&&delete t._subsBeingRevived[e.id],a.each(e.subs||[],function(e){delete t._subsBeingRevived[e]}),a.each(e.methods||[],function(e){delete t._methodsBlockingQuiescence[e]}),t._waitingForQuiescence())return;a.each(t._messagesBufferedUntilQuiescence,function(e){t._processOneDataMessage(e,t._bufferedWrites)}),t._messagesBufferedUntilQuiescence=[]}else t._processOneDataMessage(e,t._bufferedWrites);var n=a.include(["added","changed","removed"],e.msg);if(0!==t._bufferedWritesInterval&&n){if(null===t._bufferedWritesFlushAt)t._bufferedWritesFlushAt=(new Date).valueOf()+t._bufferedWritesMaxAge;else if(t._bufferedWritesFlushAt<(new Date).valueOf())return void t._flushBufferedWrites();t._bufferedWritesFlushHandle&&clearTimeout(t._bufferedWritesFlushHandle),t._bufferedWritesFlushHandle=setTimeout(t.__flushBufferedWrites,t._bufferedWritesInterval)}else t._flushBufferedWrites()},_flushBufferedWrites:function(){var e=this;e._bufferedWritesFlushHandle&&(clearTimeout(e._bufferedWritesFlushHandle),e._bufferedWritesFlushHandle=null),e._bufferedWritesFlushAt=null;var t=e._bufferedWrites;e._bufferedWrites={},e._performWrites(t)},_performWrites:function(e){var t=this;!t._resetStores&&a.isEmpty(e)||(a.each(t._stores,function(n,o){n.beginUpdate(a.has(e,o)?e[o].length:0,t._resetStores)}),t._resetStores=!1,a.each(e,function(e,n){var o=t._stores[n];o?a.each(e,function(e){o.update(e)}):(a.has(t._updatesForUnknownStores,n)||(t._updatesForUnknownStores[n]=[]),Array.prototype.push.apply(t._updatesForUnknownStores[n],e))}),a.each(t._stores,function(e){e.endUpdate()})),t._runAfterUpdateCallbacks()},_runAfterUpdateCallbacks:function(){var e=this,t=e._afterUpdateCallbacks;e._afterUpdateCallbacks=[],a.each(t,function(e){e()})},_pushUpdate:function(e,t,n){var o=this;a.has(e,t)||(e[t]=[]),e[t].push(n)},_getServerDoc:function(e,t){var n=this;return a.has(n._serverDocuments,e)?n._serverDocuments[e].get(t)||null:null},_process_added:function(e,t){var n=this,o=p.idParse(e.id),r=n._getServerDoc(e.collection,o);if(r){var i=void 0!==r.document;if(r.document=e.fields||{},r.document._id=o,n._resetStores){var s=n._stores[e.collection].getDoc(e.id);void 0!==s&&(e.fields=s),n._pushUpdate(t,e.collection,e)}else if(i)throw new Error("Server sent add for existing id: "+e.id)}else n._pushUpdate(t,e.collection,e)},_process_changed:function(e,t){var n=this,o=n._getServerDoc(e.collection,p.idParse(e.id));if(o){if(void 0===o.document)throw new Error("Server sent changed for nonexisting id: "+e.id);_.applyChanges(o.document,e.fields)}else n._pushUpdate(t,e.collection,e)},_process_removed:function(e,t){var n=this,o=n._getServerDoc(e.collection,p.idParse(e.id));if(o){if(void 0===o.document)throw new Error("Server sent removed for nonexisting id:"+e.id);o.document=void 0}else n._pushUpdate(t,e.collection,{msg:"removed",collection:e.collection,id:e.id})},_process_updated:function(e,t){var n=this;a.each(e.methods,function(e){a.each(n._documentsWrittenByStub[e],function(o){var r=n._getServerDoc(o.collection,o.id);if(!r)throw new Error("Lost serverDoc for "+JSON.stringify(o));if(!r.writtenByStubs[e])throw new Error("Doc "+JSON.stringify(o)+" not written by method "+e);delete r.writtenByStubs[e],a.isEmpty(r.writtenByStubs)&&(n._pushUpdate(t,o.collection,{msg:"replace",id:p.idStringify(o.id),replace:r.document}),a.each(r.flushCallbacks,function(e){e()}),n._serverDocuments[o.collection].remove(o.id))}),delete n._documentsWrittenByStub[e];var o=n._methodInvokers[e];if(!o)throw new Error("No callback invoker for method "+e);n._runWhenAllServerDocsAreFlushed(a.bind(o.dataVisible,o))})},_process_ready:function(e,t){var n=this;a.each(e.subs,function(e){n._runWhenAllServerDocsAreFlushed(function(){var t=n._subscriptions[e];t&&(t.ready||(t.ready=!0,t.readyCallback&&t.readyCallback(),t.readyDeps.changed()))})})},_runWhenAllServerDocsAreFlushed:function(e){var t=this,n=function(){t._afterUpdateCallbacks.push(e)},o=0,r=function(){0===--o&&n()};a.each(t._serverDocuments,function(e){e.forEach(function(e){a.any(e.writtenByStubs,function(e,n){var o=t._methodInvokers[n];return o&&o.sentMessage})&&(++o,e.flushCallbacks.push(r))})}),0===o&&n()},_livedata_nosub:function(t){var n=this;if(n._livedata_data(t),a.has(n._subscriptions,t.id)){var o=n._subscriptions[t.id].errorCallback,r=n._subscriptions[t.id].stopCallback;n._subscriptions[t.id].remove();var i=function(t){return t&&t.error&&new e.Error(t.error.error,t.error.reason,t.error.details)};o&&t.error&&o(i(t)),r&&r(i(t))}},_process_nosub:function(){},_livedata_result:function(t){var n=this;if(a.isEmpty(n._bufferedWrites)||n._flushBufferedWrites(),a.isEmpty(n._outstandingMethodBlocks))e._debug("Received method result but no methods outstanding");else{for(var o=n._outstandingMethodBlocks[0].methods,r,i=0;i<o.length&&(r=o[i]).methodId!==t.id;i++);r?(o.splice(i,1),a.has(t,"error")?r.receiveResult(new e.Error(t.error.error,t.error.reason,t.error.details)):r.receiveResult(void 0,t.result)):e._debug("Can't match method response to original method call",t)}},_outstandingMethodFinished:function(){var e=this;if(!e._anyMethodsAreOutstanding()){if(!a.isEmpty(e._outstandingMethodBlocks)){var t=e._outstandingMethodBlocks.shift();if(!a.isEmpty(t.methods))throw new Error("No methods outstanding but nonempty block: "+JSON.stringify(t));a.isEmpty(e._outstandingMethodBlocks)||e._sendOutstandingMethods()}e._maybeMigrate()}},_sendOutstandingMethods:function(){var e=this;a.isEmpty(e._outstandingMethodBlocks)||a.each(e._outstandingMethodBlocks[0].methods,function(e){e.sendMessage()})},_livedata_error:function(t){e._debug("Received error from server: ",t.reason),t.offendingMessage&&e._debug("For: ",t.offendingMessage)},_callOnReconnectAndSendAppropriateOutstandingMethods:function(){var e=this,t=e._outstandingMethodBlocks;if(e._outstandingMethodBlocks=[],e.onReconnect(),!a.isEmpty(t)){if(a.isEmpty(e._outstandingMethodBlocks))return e._outstandingMethodBlocks=t,void e._sendOutstandingMethods();a.last(e._outstandingMethodBlocks).wait||t[0].wait||(a.each(t[0].methods,function(t){a.last(e._outstandingMethodBlocks).methods.push(t),1===e._outstandingMethodBlocks.length&&t.sendMessage()}),t.shift()),a.each(t,function(t){e._outstandingMethodBlocks.push(t)})}},_readyToMigrate:function(){var e=this;return a.isEmpty(e._methodInvokers)},_maybeMigrate:function(){var e=this;e._retryMigrate&&e._readyToMigrate()&&(e._retryMigrate(),e._retryMigrate=null)}}),l.Connection=b,d.connect=function(e,t){var n=new b(e,t);return O.push(n),n},O=[],d._allSubscriptionsReady=function(){return a.all(O,function(e){return a.all(e._subscriptions,function(e){return e.ready})})}},"client_convenience.js":function(t,n,o){var r=void 0;if(o.watch(t("./namespace.js"),{DDP:function(e){r=e}},0),e.refresh=function(e){},e.isClient){var i="/";"undefined"!=typeof __meteor_runtime_config__&&__meteor_runtime_config__.DDP_DEFAULT_CONNECTION_URL&&(i=__meteor_runtime_config__.DDP_DEFAULT_CONNECTION_URL);var s=new d,u=function(t){if(e._debug(t),Package.reload){var n=(Package.reload.Reload._migrationData("livedata")||{}).DDPVersionNegotiationFailures||0;++n,Package.reload.Reload._onMigrate("livedata",function(){return[!0,{DDPVersionNegotiationFailures:n}]}),s.retryLater(n,function(){Package.reload.Reload._reload()})}};e.connection=r.connect(i,{onDDPVersionNegotiationFailure:u}),a.each(["subscribe","methods","call","apply","status","reconnect","disconnect"],function(t){e[t]=a.bind(e.connection[t],e.connection)})}else e.connection=null;e.default_connection=e.connection,e.connect=r.connect},"namespace.js":function(e,t,n){n.export({DDP:function(){return o},LivedataTest:function(){return r}});var o={},r={}},"id_map.js":function(e,t,n){function o(e){return e&&e.__esModule?e:{default:e}}var r=o(e("babel-runtime/helpers/classCallCheck")),i=o(e("babel-runtime/helpers/possibleConstructorReturn")),s=o(e("babel-runtime/helpers/inherits"));n.export({MongoIDMap:function(){return a}});var a=function(e){function t(){return(0,r.default)(this,t),(0,i.default)(this,e.call(this,p.idStringify,p.idParse))}return(0,s.default)(t,e),t}(l)}}}}},{extensions:[".js",".json"]});D("./node_modules/meteor/ddp-client/sockjs-0.3.4.js"),D("./node_modules/meteor/ddp-client/stream_client_sockjs.js"),D("./node_modules/meteor/ddp-client/stream_client_common.js"),D("./node_modules/meteor/ddp-client/livedata_common.js"),D("./node_modules/meteor/ddp-client/random_stream.js"),D("./node_modules/meteor/ddp-client/livedata_connection.js"),D("./node_modules/meteor/ddp-client/client_convenience.js");var T=D("./node_modules/meteor/ddp-client/namespace.js");"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package["ddp-client"]=T,{DDP:E})}();

!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(){"undefined"==typeof Package&&(Package={}),Package["ddp-server"]={}}();

!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,t=Package.meteor.meteorEnv,r=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.process,f=Package["babel-runtime"].meteorBabelHelpers,h=Package.promise.Promise,_=Package["ecmascript-runtime-client"].Symbol,m=Package["ecmascript-runtime-client"].Map,v=Package["ecmascript-runtime-client"].Set,p;d({node_modules:{meteor:{"allow-deny":{"allow-deny.js":function(){function n(e,n){return e.transform?e.transform(n):n}function t(e,n,t){var r=n;return e.transform&&(r=l.clone(n),null!==t&&(r._id=t),r=e.transform(r)),r}function a(e,n,t){var a=["insert","update","remove","fetch","transform"];if(r.each(r.keys(t),function(e){if(!r.contains(a,e))throw new Error(n+": Invalid key: "+e)}),e._restricted=!0,r.each(["insert","update","remove"],function(r){if(t.hasOwnProperty(r)){if(!(t[r]instanceof Function))throw new Error(n+": Value for `"+r+"` must be a function");void 0===t.transform?t[r].transform=e._transform:t[r].transform=o.wrapTransform(t.transform),e._validators[r][n].push(t[r])}}),t.update||t.remove||t.fetch){if(t.fetch&&!(t.fetch instanceof Array))throw new Error(n+": Value for `fetch` must be an array");e._updateFetch(t.fetch)}}function d(n,t){if(!o._selectorIsIdPerhapsAsObject(n))throw new e.Error(403,"Not permitted. Untrusted code may only "+t+" documents by ID.")}function u(){var e=s._CurrentInvocation.get();return e&&e.isSimulation}var f=(p={CollectionPrototype:{}}).CollectionPrototype;f.allow=function(e){a(this,"allow",e)},f.deny=function(e){a(this,"deny",e)},f._defineMutationMethods=function(n){var t=this;if(n=n||{},t._restricted=!1,t._insecure=void 0,t._validators={insert:{allow:[],deny:[]},update:{allow:[],deny:[]},remove:{allow:[],deny:[]},upsert:{allow:[],deny:[]},fetch:[],fetchAllFields:!1},t._name&&(t._prefix="/"+t._name+"/",t._connection&&(t._connection===e.server||e.isClient))){var o={};r.each(["insert","update","remove"],function(a){var l=t._prefix+a;if(n.useExisting){var s=e.isClient?"_methodHandlers":"method_handlers";if(t._connection[s]&&"function"==typeof t._connection[s][l])return}o[l]=function(){i(arguments,[c.Any]);var n=r.toArray(arguments);try{var o=null;if("insert"!==a||r.has(n[0],"_id")||(o=t._makeNewID()),this.isSimulation)return null!==o&&(n[0]._id=o),t._collection[a].apply(t._collection,n);if("insert"!==a&&d(n[0],a),t._restricted){if(0===t._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),t[l].apply(t,n)}if(t._isInsecure())return null!==o&&(n[0]._id=o),t._collection[a].apply(t._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}}}),t._connection.methods(o)}},f._updateFetch=function(e){var n=this;n._validators.fetchAllFields||(e?n._validators.fetch=r.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(r.any(i._validators.insert.deny,function(e){return e(n,t(e,o,a))}))throw new e.Error(403,"Access denied");if(r.all(i._validators.insert.allow,function(e){return!e(n,t(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(t,a,c,l){var s=this;if(i(c,Object),l=r.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 '$set'.",u=[];if(r.isEmpty(c))throw new e.Error(403,d);r.each(c,function(n,t){if("$"!==t.charAt(0))throw new e.Error(403,d);if(!r.has(h,t))throw new e.Error(403,"Access denied. Operator "+t+" not allowed in a restricted collection.");r.each(r.keys(n),function(e){-1!==e.indexOf(".")&&(e=e.substring(0,e.indexOf("."))),r.contains(u,e)||u.push(e)})});var f={transform:null};s._validators.fetchAllFields||(f.fields={},r.each(s._validators.fetch,function(e){f.fields[e]=1}));var _=s._collection.findOne(a,f);if(!_)return 0;if(r.any(s._validators.update.deny,function(e){var r=n(e,_);return e(t,r,u,c)}))throw new e.Error(403,"Access denied");if(r.all(s._validators.update.allow,function(e){var r=n(e,_);return!e(t,r,u,c)}))throw new e.Error(403,"Access denied");return l._forbidReplace=!0,s._collection.update.call(s._collection,a,c,l)};var h={$inc:1,$set:1,$unset:1,$addToSet:1,$pop:1,$pullAll:1,$pull:1,$pushAll:1,$push:1,$bit:1};f._validatedRemove=function(t,o){var a=this,i={transform:null};a._validators.fetchAllFields||(i.fields={},r.each(a._validators.fetch,function(e){i.fields[e]=1}));var c=a._collection.findOne(o,i);if(!c)return 0;if(r.any(a._validators.remove.deny,function(e){return e(t,n(e,c))}))throw new e.Error(403,"Access denied");if(r.all(a._validators.remove.allow,function(e){return!e(t,n(e,c))}))throw new e.Error(403,"Access denied");return a._collection.remove.call(a._collection,o)},f._callMutatorMethod=function(){function n(n,t,r){!e.isClient||r||u()||(r=function(t){t&&e._debug(n+" failed: "+(t.reason||t.stack))}),("update"===n||"remove"===n)&&!u()&&d(t[0],n);var o=this._prefix+n;return this._connection.apply(o,t,{returnStubValue:!0},r)}return n}()}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/allow-deny/allow-deny.js"),"undefined"==typeof Package&&(Package={}),function(e,n){for(var t in n)t in e||(e[t]=n[t])}(Package["allow-deny"]={},{AllowDeny:p})}();

!function(){"undefined"==typeof Package&&(Package={}),Package.insecure={}}();

!function(){var e=Package.meteor.Meteor,o=Package.meteor.global,n=Package.meteor.meteorEnv,t=Package["allow-deny"].AllowDeny,r=Package.random.Random,i=Package.ejson.EJSON,c=Package.underscore._,l=Package.minimongo.LocalCollection,a=Package.minimongo.Minimongo,s=Package["ddp-client"].DDP,d=Package.tracker.Tracker,u=Package.tracker.Deps,f=Package["diff-sequence"].DiffSequence,_=Package["mongo-id"].MongoID,p=Package.check.check,m=Package.check.Match,g=Package.modules.meteorInstall,h=Package.modules.process,v=Package["babel-runtime"].meteorBabelHelpers,w=Package.promise.Promise,C=Package["ecmascript-runtime-client"].Symbol,y=Package["ecmascript-runtime-client"].Map,b=Package["ecmascript-runtime-client"].Set,k,O,I=g({node_modules:{meteor:{mongo:{"local_collection_driver.js":function(){k=function(){this.noConnCollections={}};var e=function(e,o){return e in o||(o[e]=new l(e)),o[e]};c.extend(k.prototype,{open:function(o,n){var t=this;return o?n?(n._mongo_livedata_collections||(n._mongo_livedata_collections={}),e(o,n._mongo_livedata_collections)):e(o,t.noConnCollections):new l}}),k=new k},"collection.js":function(o,n,i){function a(e){p(e,RegExp);var o={$regex:e.source},n="";return e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),n&&(o.$options=n),o}function d(e,o){if(e)return o=o||c.identity,function(n,t){e(n,!n&&o(t))}}function u(e){if(e.length&&(void 0===e[e.length-1]||e[e.length-1]instanceof Function))return e.pop()}(O={}).Collection=function(o,n){var t=this;if(!(t instanceof O.Collection))throw new Error('use "new" to construct a Mongo.Collection');if(o||null===o||(e._debug("Warning: creating anonymous collection. It will not be saved or synchronized over the network. (Pass null for the collection name to turn off this warning.)"),o=null),null!==o&&"string"!=typeof o)throw new Error("First argument to new Mongo.Collection must be a string or null");switch(n&&n.methods&&(n={connection:n}),n&&n.manager&&!n.connection&&(n.connection=n.manager),(n=c.extend({connection:void 0,idGeneration:"STRING",transform:null,_driver:void 0,_preventAutopublish:!1},n)).idGeneration){case"MONGO":t._makeNewID=function(){var e=o?s.randomStream("/collection/"+o):r.insecure;return new O.ObjectID(e.hexString(24))};break;case"STRING":default:t._makeNewID=function(){return(o?s.randomStream("/collection/"+o):r.insecure).id()};break}if(t._transform=l.wrapTransform(n.transform),o&&null!==n.connection?n.connection?t._connection=n.connection:e.isClient?t._connection=e.connection:t._connection=e.server:t._connection=null,n._driver||(o&&t._connection===e.server&&"undefined"!=typeof MongoInternals&&MongoInternals.defaultRemoteCollectionDriver?n._driver=MongoInternals.defaultRemoteCollectionDriver():n._driver=k),t._collection=n._driver.open(o,t._connection),t._name=o,t._driver=n._driver,t._connection&&t._connection.registerStore&&!t._connection.registerStore(o,{beginUpdate:function(e,o){(e>1||o)&&t._collection.pauseObservers(),o&&t._collection.remove({})},update:function(e){var o=_.idParse(e.id),n=t._collection.findOne(o);if("replace"!==e.msg)if("added"===e.msg){if(n)throw new Error("Expected not to find a document already present for an add");t._collection.insert(c.extend({_id:o},e.fields))}else if("removed"===e.msg){if(!n)throw new Error("Expected to find a document already present for removed");t._collection.remove(o)}else{if("changed"!==e.msg)throw new Error("I don't know how to deal with this message");if(!n)throw new Error("Expected to find a document to change");if(!c.isEmpty(e.fields)){var r={};c.each(e.fields,function(e,o){void 0===e?(r.$unset||(r.$unset={}),r.$unset[o]=1):(r.$set||(r.$set={}),r.$set[o]=e)}),t._collection.update(o,r)}}else{var i=e.replace;i?n?t._collection.update(o,i):t._collection.insert(i):n&&t._collection.remove(o)}},endUpdate:function(){t._collection.resumeObservers()},saveOriginals:function(){t._collection.saveOriginals()},retrieveOriginals:function(){return t._collection.retrieveOriginals()},getDoc:function(e){return t.findOne(e)},_getCollection:function(){return t}})){var i='There is already a collection named "'+o+'"';if(!0!==n._suppressSameNameError)throw new Error(i);console.warn?console.warn(i):console.log(i)}if(!1!==n.defineMutationMethods)try{t._defineMutationMethods({useExisting:!0===n._suppressSameNameError})}catch(e){if(e.message==="A method named '/"+o+"/insert' is already defined")throw new Error('There is already a collection named "'+o+'"');throw e}Package.autopublish&&!n._preventAutopublish&&t._connection&&t._connection.publish&&t._connection.publish(null,function(){return t.find()},{is_auto:!0})},c.extend(O.Collection.prototype,{_getFindSelector:function(e){return 0==e.length?{}:e[0]},_getFindOptions:function(e){var o=this;return e.length<2?{transform:o._transform}:(p(e[1],m.Optional(m.ObjectIncluding({fields:m.Optional(m.OneOf(Object,void 0)),sort:m.Optional(m.OneOf(Object,Array,Function,void 0)),limit:m.Optional(m.OneOf(Number,void 0)),skip:m.Optional(m.OneOf(Number,void 0))}))),c.extend({transform:o._transform},e[1]))},find:function(){var e=this,o=c.toArray(arguments);return e._collection.find(e._getFindSelector(o),e._getFindOptions(o))},findOne:function(){var e=this,o=c.toArray(arguments);return e._collection.findOne(e._getFindSelector(o),e._getFindOptions(o))}}),O.Collection._publishCursor=function(e,o,n){var t=e.observeChanges({added:function(e,t){o.added(n,e,t)},changed:function(e,t){o.changed(n,e,t)},removed:function(e){o.removed(n,e)}});return o.onStop(function(){t.stop()}),t},O.Collection._rewriteSelector=function(e){var o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fallbackId;if(l._selectorIsId(e)&&(e={_id:e}),c.isArray(e))throw new Error("Mongo selector can't be an array.");if(!e||"_id"in e&&!e._id)return{_id:o||r.id()};var n={};return Object.keys(e).forEach(function(o){var t=e[o];t instanceof RegExp?n[o]=a(t):t&&t.$regex instanceof RegExp?(n[o]=a(t.$regex),void 0!==t.$options&&(n[o].$options=t.$options)):c.contains(["$or","$and","$nor"],o)?n[o]=c.map(t,function(e){return O.Collection._rewriteSelector(e)}):n[o]=t}),n},O.Collection.prototype.insert=function(){function e(e,o){if(!e)throw new Error("insert requires an argument");if("_id"in(e=c.extend({},e))){if(!e._id||!("string"==typeof e._id||e._id instanceof O.ObjectID))throw new Error("Meteor requires document _id fields to be non-empty strings or ObjectIDs")}else{var n=!0;this._isRemoteCollection()&&(s._CurrentInvocation.get()||(n=!1)),n&&(e._id=this._makeNewID())}var t=function(o){return e._id?e._id:(e._id=o,o)},r=d(o,t);if(this._isRemoteCollection())return t(this._callMutatorMethod("insert",[e],r));try{return t(this._collection.insert(e,r))}catch(e){if(o)return o(e),null;throw e}}return e}(),O.Collection.prototype.update=function(){function e(e,o){for(var n=arguments.length,t=Array(n>2?n-2:0),r=2;r<n;r++)t[r-2]=arguments[r];var i=u(t),l=c.clone(t[0])||{},a=void 0;if(l&&l.upsert)if(l.insertedId){if(!("string"==typeof l.insertedId||l.insertedId instanceof O.ObjectID))throw new Error("insertedId must be string or ObjectID");a=l.insertedId}else e&&e._id||(a=this._makeNewID(),l.insertedId=a);e=O.Collection._rewriteSelector(e,{fallbackId:a});var s=d(i);if(this._isRemoteCollection()){var f=[e,o,l];return this._callMutatorMethod("update",f,s)}try{return this._collection.update(e,o,l,s)}catch(e){if(i)return i(e),null;throw e}}return e}(),O.Collection.prototype.remove=function(){function e(e,o){e=O.Collection._rewriteSelector(e);var n=d(o);if(this._isRemoteCollection())return this._callMutatorMethod("remove",[e],n);try{return this._collection.remove(e,n)}catch(e){if(o)return o(e),null;throw e}}return e}(),O.Collection.prototype._isRemoteCollection=function(){function o(){return this._connection&&this._connection!==e.server}return o}(),O.Collection.prototype.upsert=function(){function e(e,o,n,t){t||"function"!=typeof n||(t=n,n={});var r=c.extend({},n,{_returnObject:!0,upsert:!0});return this.update(e,o,r,t)}return e}(),O.Collection.prototype._ensureIndex=function(e,o){var n=this;if(!n._collection._ensureIndex)throw new Error("Can only call _ensureIndex on server collections");n._collection._ensureIndex(e,o)},O.Collection.prototype._dropIndex=function(e){var o=this;if(!o._collection._dropIndex)throw new Error("Can only call _dropIndex on server collections");o._collection._dropIndex(e)},O.Collection.prototype._dropCollection=function(){var e=this;if(!e._collection.dropCollection)throw new Error("Can only call _dropCollection on server collections");e._collection.dropCollection()},O.Collection.prototype._createCappedCollection=function(e,o){var n=this;if(!n._collection._createCappedCollection)throw new Error("Can only call _createCappedCollection on server collections");n._collection._createCappedCollection(e,o)},O.Collection.prototype.rawCollection=function(){var e=this;if(!e._collection.rawCollection)throw new Error("Can only call rawCollection on server collections");return e._collection.rawCollection()},O.Collection.prototype.rawDatabase=function(){var e=this;if(!e._driver.mongo||!e._driver.mongo.db)throw new Error("Can only call rawDatabase on server collections");return e._driver.mongo.db},O.ObjectID=_.ObjectID,O.Cursor=l.Cursor,O.Collection.Cursor=O.Cursor,O.Collection.ObjectID=O.ObjectID,e.Collection=O.Collection,c.extend(e.Collection.prototype,t.CollectionPrototype)}}}}},{extensions:[".js",".json"]});I("./node_modules/meteor/mongo/local_collection_driver.js"),I("./node_modules/meteor/mongo/collection.js"),"undefined"==typeof Package&&(Package={}),function(e,o){for(var n in o)n in e||(e[n]=o[n])}(Package.mongo={},{Mongo:O})}();

!function(){"undefined"==typeof Package&&(Package={}),Package["blaze-html-templates"]={}}();

!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){if(!(this instanceof i))return new i(e,t);this.curValue=e,this.equalsFunc=t,this.dep=new a.Dependency})._isEqual=function(e,t){var n=e;return n===t&&(!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(){"undefined"==typeof Package&&(Package={}),Package["standard-minifier-css"]={}}();

!function(){"undefined"==typeof Package&&(Package={}),Package["standard-minifier-js"]={}}();

!function(){"undefined"==typeof Package&&(Package={}),Package["shell-server"]={}}();

!function(){"undefined"==typeof Package&&(Package={}),Package.autopublish={}}();

!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,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,i=Package.modules.process,o,a,s=r({node_modules:{meteor:{jquery:{"main.js":function(e,t){var n=this;try{var r=e("jquery")}catch(t){r=e("./jquery.js")}t.$=t.jQuery=r,n.$=n.$||r,n.jQuery=n.jQuery||r},"jquery.js":function(e,t,n){!function(e,t){"object"==typeof n&&"object"==typeof n.exports?n.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=e.length,n=ie.type(e);return"function"!==n&&!ie.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}function r(e,t,n){if(ie.isFunction(t))return ie.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return ie.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(de.test(t))return ie.filter(t,e,n);t=ie.filter(t,e)}return ie.grep(e,function(e){return ie.inArray(e,t)>=0!==n})}function i(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function o(e){var t=be[e]={};return ie.each(e.match(ve)||[],function(e,n){t[n]=!0}),t}function a(){he.addEventListener?(he.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1)):(he.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(he.addEventListener||"load"===event.type||"complete"===he.readyState)&&(a(),ie.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(Ne,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:Ce.test(n)?ie.parseJSON(n):n)}catch(e){}ie.data(e,t,n)}else n=void 0}return n}function u(e){var t;for(t in e)if(("data"!==t||!ie.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,r){if(ie.acceptData(e)){var i,o,a=ie.expando,s=e.nodeType,l=s?ie.cache:e,u=s?e[a]:e[a]&&a;if(u&&l[u]&&(r||l[u].data)||void 0!==n||"string"!=typeof t)return u||(u=s?e[a]=Q.pop()||ie.guid++:a),l[u]||(l[u]=s?{}:{toJSON:ie.noop}),"object"!=typeof t&&"function"!=typeof t||(r?l[u]=ie.extend(l[u],t):l[u].data=ie.extend(l[u].data,t)),o=l[u],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[ie.camelCase(t)]=n),"string"==typeof t?null==(i=o[t])&&(i=o[ie.camelCase(t)]):i=o,i}}function f(e,t,n){if(ie.acceptData(e)){var r,i,o=e.nodeType,a=o?ie.cache:e,s=o?e[ie.expando]:ie.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){i=(t=ie.isArray(t)?t.concat(ie.map(t,ie.camelCase)):t in r?[t]:(t=ie.camelCase(t))in r?[t]:t.split(" ")).length;for(;i--;)delete r[t[i]];if(n?!u(r):!ie.isEmptyObject(r))return}(n||(delete a[s].data,u(a[s])))&&(o?ie.cleanData([e],!0):ne.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function d(){return!0}function p(){return!1}function h(){try{return he.activeElement}catch(e){}}function m(e){var t=Me.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function g(e,t){var n,r,i=0,o=typeof e.getElementsByTagName!==we?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==we?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||ie.nodeName(r,t)?o.push(r):ie.merge(o,g(r,t));return void 0===t||t&&ie.nodeName(e,t)?ie.merge([e],o):o}function y(e){Ae.test(e.type)&&(e.defaultChecked=e.checked)}function v(e,t){return ie.nodeName(e,"table")&&ie.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function b(e){return e.type=(null!==ie.find.attr(e,"type"))+"/"+e.type,e}function x(e){var t=Ue.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function w(e,t){for(var n,r=0;null!=(n=e[r]);r++)ie._data(n,"globalEval",!t||ie._data(t[r],"globalEval"))}function T(e,t){if(1===t.nodeType&&ie.hasData(e)){var n,r,i,o=ie._data(e),a=ie._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r<i;r++)ie.event.add(t,n,s[n][r])}a.data&&(a.data=ie.extend({},a.data))}}function C(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ne.noCloneEvent&&t[ie.expando]){i=ie._data(t);for(r in i.events)ie.removeEvent(t,r,i.handle);t.removeAttribute(ie.expando)}"script"===n&&t.text!==e.text?(b(t).text=e.text,x(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ne.html5Clone&&e.innerHTML&&!ie.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ae.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function N(t,n){var r,i=ie(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:ie.css(i[0],"display");return i.detach(),o}function E(e){var t=he,n=Ge[e];return n||("none"!==(n=N(e,t))&&n||((t=((Ye=(Ye||ie("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||Ye[0].contentDocument).document).write(),t.close(),n=N(e,t),Ye.detach()),Ge[e]=n),n}function k(e,t){return{get:function(){var n=e();if(null!=n){if(!n)return(this.get=t).apply(this,arguments);delete this.get}}}}function S(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=ct.length;i--;)if((t=ct[i]+n)in e)return t;return r}function j(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(o[a]=ie._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Se(r)&&(o[a]=ie._data(r,"olddisplay",E(r.nodeName)))):(i=Se(r),(n&&"none"!==n||!i)&&ie._data(r,"olddisplay",i?n:ie.css(r,"display"))));for(a=0;a<s;a++)(r=e[a]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function A(e,t,n){var r=at.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function D(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=ie.css(e,n+ke[o],!0,i)),r?("content"===n&&(a-=ie.css(e,"padding"+ke[o],!0,i)),"margin"!==n&&(a-=ie.css(e,"border"+ke[o]+"Width",!0,i))):(a+=ie.css(e,"padding"+ke[o],!0,i),"padding"!==n&&(a+=ie.css(e,"border"+ke[o]+"Width",!0,i)));return a}function L(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=et(e),a=ne.boxSizing&&"border-box"===ie.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(((i=tt(e,t,o))<0||null==i)&&(i=e.style[t]),Ze.test(i))return i;r=a&&(ne.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+D(e,t,n||(a?"border":"content"),r,o)+"px"}function H(e,t,n,r,i){return new H.prototype.init(e,t,n,r,i)}function q(){return setTimeout(function(){ft=void 0}),ft=ie.now()}function _(e,t){var n,r={height:e},i=0;for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=ke[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function M(e,t,n){for(var r,i=(yt[t]||[]).concat(yt["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function F(e,t,n){var r,i,o,a,s,l,u,c,f=this,d={},p=e.style,h=e.nodeType&&Se(e),m=ie._data(e,"fxshow");n.queue||(null==(s=ie._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,ie.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===(c="none"===(u=ie.css(e,"display"))?ie._data(e,"olddisplay")||E(e.nodeName):u)&&"none"===ie.css(e,"float")&&(ne.inlineBlockNeedsLayout&&"inline"!==E(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",ne.shrinkWrapBlocks()||f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],pt.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;h=!0}d[r]=m&&m[r]||ie.style(e,r)}else u=void 0;if(ie.isEmptyObject(d))"inline"===("none"===u?E(e.nodeName):u)&&(p.display=u);else{m?"hidden"in m&&(h=m.hidden):m=ie._data(e,"fxshow",{}),o&&(m.hidden=!h),h?ie(e).show():f.done(function(){ie(e).hide()}),f.done(function(){var t;ie._removeData(e,"fxshow");for(t in d)ie.style(e,t,d[t])});for(r in d)a=M(h?m[r]:0,r,f),r in m||(m[r]=a.start,h&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function O(e,t){var n,r,i,o,a;for(n in e)if(r=ie.camelCase(n),i=t[r],o=e[n],ie.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ie.cssHooks[r])&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function P(e,t,n){var r,i,o=0,a=gt.length,s=ie.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=ft||q(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:ie.extend({},t),opts:ie.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:ft||q(),duration:n.duration,tweens:[],createTween:function(t,n){var r=ie.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(O(c,u.opts.specialEasing);o<a;o++)if(r=gt[o].call(u,e,c,u.opts))return r;return ie.map(c,M,u),ie.isFunction(u.opts.start)&&u.opts.start.call(e,u),ie.fx.timer(ie.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function B(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(ve)||[];if(ie.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function R(e,t,n,r){function i(s){var l;return o[s]=!0,ie.each(e[s]||[],function(e,s){var u=s(t,n,r);return"string"!=typeof u||a||o[u]?a?!(l=u):void 0:(t.dataTypes.unshift(u),i(u),!1)}),l}var o={},a=e===Wt;return i(t.dataTypes[0])||!o["*"]&&i("*")}function W(e,t){var n,r,i=ie.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&ie.extend(!0,e,n),e}function $(e,t,n){for(var r,i,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),n[o]}function z(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(i in u)if((s=i.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}function I(e,t,n,r){var i;if(ie.isArray(t))ie.each(t,function(t,i){n||It.test(e)?r(e,i):I(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==ie.type(t))r(e,t);else for(i in t)I(e+"["+i+"]",t[i],n,r)}function X(){try{return new e.XMLHttpRequest}catch(e){}}function U(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function V(e){return ie.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var Q=[],J=Q.slice,Y=Q.concat,G=Q.push,K=Q.indexOf,Z={},ee=Z.toString,te=Z.hasOwnProperty,ne={},re="1.11.2",ie=function(e,t){return new ie.fn.init(e,t)},oe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ae=/^-ms-/,se=/-([\da-z])/gi,le=function(e,t){return t.toUpperCase()};ie.fn=ie.prototype={jquery:re,constructor:ie,selector:"",length:0,toArray:function(){return J.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:J.call(this)},pushStack:function(e){var t=ie.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return ie.each(this,e,t)},map:function(e){return this.pushStack(ie.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(J.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:G,sort:Q.sort,splice:Q.splice},ie.extend=ie.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||ie.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(i=arguments[s]))for(r in i)e=a[r],a!==(n=i[r])&&(u&&n&&(ie.isPlainObject(n)||(t=ie.isArray(n)))?(t?(t=!1,o=e&&ie.isArray(e)?e:[]):o=e&&ie.isPlainObject(e)?e:{},a[r]=ie.extend(u,o,n)):void 0!==n&&(a[r]=n));return a},ie.extend({expando:"jQuery"+(re+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===ie.type(e)},isArray:Array.isArray||function(e){return"array"===ie.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!ie.isArray(e)&&e-parseFloat(e)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==ie.type(e)||e.nodeType||ie.isWindow(e))return!1;try{if(e.constructor&&!te.call(e,"constructor")&&!te.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(ne.ownLast)for(t in e)return te.call(e,t);for(t in e);return void 0===t||te.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?Z[ee.call(e)]||"object":typeof e},globalEval:function(t){t&&ie.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ae,"ms-").replace(se,le)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,r){var i,o=0,a=e.length,s=n(e);if(r){if(s)for(;o<a&&!1!==(i=t.apply(e[o],r));o++);else for(o in e)if(!1===(i=t.apply(e[o],r)))break}else if(s)for(;o<a&&!1!==(i=t.call(e[o],o,e[o]));o++);else for(o in e)if(!1===(i=t.call(e[o],o,e[o])))break;return e},trim:function(e){return null==e?"":(e+"").replace(oe,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?ie.merge(r,"string"==typeof e?[e]:e):G.call(r,e)),r},inArray:function(e,t,n){var r;if(t){if(K)return K.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;)e[i++]=t[r++];if(n!==n)for(;void 0!==t[r];)e[i++]=t[r++];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,a=e.length,s=!n;o<a;o++)(r=!t(e[o],o))!==s&&i.push(e[o]);return i},map:function(e,t,r){var i,o=0,a=e.length,s=[];if(n(e))for(;o<a;o++)null!=(i=t(e[o],o,r))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,r))&&s.push(i);return Y.apply([],s)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(i=e[t],t=e,e=i),ie.isFunction(e))return n=J.call(arguments,2),r=function(){return e.apply(t||this,n.concat(J.call(arguments)))},r.guid=e.guid=e.guid||ie.guid++,r},now:function(){return+new Date},support:ne}),ie.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){Z["[object "+t+"]"]=t.toLowerCase()});var ue=function(e){function t(e,t,n,r){var i,o,a,s,l,u,f,p,h,m;if((t?t.ownerDocument||t:R)!==H&&L(t),t=t||H,n=n||[],s=t.nodeType,"string"!=typeof e||!e||1!==s&&9!==s&&11!==s)return n;if(!r&&_){if(11!==s&&(i=ve.exec(e)))if(a=i[1]){if(9===s){if(!(o=t.getElementById(a))||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&P(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return K.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&w.getElementsByClassName)return K.apply(n,t.getElementsByClassName(a)),n}if(w.qsa&&(!M||!M.test(e))){if(p=f=B,h=t,m=1!==s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(u=E(e),(f=t.getAttribute("id"))?p=f.replace(xe,"\\$&"):t.setAttribute("id",p),p="[id='"+p+"'] ",l=u.length;l--;)u[l]=p+d(u[l]);h=be.test(e)&&c(t.parentNode)||t,m=u.join(",")}if(m)try{return K.apply(n,h.querySelectorAll(m)),n}catch(e){}finally{f||t.removeAttribute("id")}}}return S(e.replace(le,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>T.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[B]=!0,e}function i(e){var t=H.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=e.length;r--;)T.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function u(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&void 0!==e.getElementsByTagName&&e}function f(){}function d(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function p(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=$++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,l,u=[W,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if(l=t[B]||(t[B]={}),(s=l[r])&&s[0]===W&&s[1]===o)return u[2]=s[2];if(l[r]=u,u[2]=e(t,n,a))return!0}}}function h(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function m(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function g(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function y(e,t,n,i,o,a){return i&&!i[B]&&(i=y(i)),o&&!o[B]&&(o=y(o,a)),r(function(r,a,s,l){var u,c,f,d=[],p=[],h=a.length,y=r||m(t||"*",s.nodeType?[s]:s,[]),v=!e||!r&&t?y:g(y,d,e,s,l),b=n?o||(r?e:h||i)?[]:a:v;if(n&&n(v,b,s,l),i)for(u=g(b,p),i(u,[],s,l),c=u.length;c--;)(f=u[c])&&(b[p[c]]=!(v[p[c]]=f));if(r){if(o||e){if(o){for(u=[],c=b.length;c--;)(f=b[c])&&u.push(v[c]=f);o(null,b=[],u,l)}for(c=b.length;c--;)(f=b[c])&&(u=o?ee(r,f):d[c])>-1&&(r[u]=!(a[u]=f))}}else b=g(b===a?b.splice(h,b.length):b),o?o(null,a,b,l):K.apply(a,b)})}function v(e){for(var t,n,r,i=e.length,o=T.relative[e[0].type],a=o||T.relative[" "],s=o?1:0,l=p(function(e){return e===t},a,!0),u=p(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==j)||((t=n).nodeType?l(e,n,r):u(e,n,r));return t=null,i}];s<i;s++)if(n=T.relative[e[s].type])c=[p(h(c),n)];else{if((n=T.filter[e[s].type].apply(null,e[s].matches))[B]){for(r=++s;r<i&&!T.relative[e[r].type];r++);return y(s>1&&h(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(le,"$1"),n,s<r&&v(e.slice(s,r)),r<i&&v(e=e.slice(r)),r<i&&d(e))}c.push(n)}return h(c)}function b(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,s,l,u){var c,f,d,p=0,h="0",m=r&&[],y=[],v=j,b=r||o&&T.find.TAG("*",u),x=W+=null==v?1:Math.random()||.1,w=b.length;for(u&&(j=a!==H&&a);h!==w&&null!=(c=b[h]);h++){if(o&&c){for(f=0;d=e[f++];)if(d(c,a,s)){l.push(c);break}u&&(W=x)}i&&((c=!d&&c)&&p--,r&&m.push(c))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(m,y,a,s);if(r){if(p>0)for(;h--;)m[h]||y[h]||(y[h]=Y.call(l));y=g(y)}K.apply(l,y),u&&!r&&y.length>0&&p+n.length>1&&t.uniqueSort(l)}return u&&(W=x,j=v),m};return i?r(a):a}var x,w,T,C,N,E,k,S,j,A,D,L,H,q,_,M,F,O,P,B="sizzle"+1*new Date,R=e.document,W=0,$=0,z=n(),I=n(),X=n(),U=function(e,t){return e===t&&(D=!0),0},V=1<<31,Q={}.hasOwnProperty,J=[],Y=J.pop,G=J.push,K=J.push,Z=J.slice,ee=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie=re.replace("w","w#"),oe="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+ne+"*\\]",ae=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",se=new RegExp(ne+"+","g"),le=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ue=new RegExp("^"+ne+"*,"+ne+"*"),ce=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),fe=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),de=new RegExp(ae),pe=new RegExp("^"+ie+"$"),he={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re.replace("w","w*")+")"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},me=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,ye=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,xe=/'|\\/g,we=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),Te=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Ce=function(){L()};try{K.apply(J=Z.call(R.childNodes),R.childNodes),J[R.childNodes.length].nodeType}catch(e){K={apply:J.length?function(e,t){G.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},N=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:R;return r!==H&&9===r.nodeType&&r.documentElement?(H=r,q=r.documentElement,(n=r.defaultView)&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",Ce,!1):n.attachEvent&&n.attachEvent("onunload",Ce)),_=!N(r),w.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=i(function(e){return e.appendChild(r.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=ye.test(r.getElementsByClassName),w.getById=i(function(e){return q.appendChild(e).id=B,!r.getElementsByName||!r.getElementsByName(B).length}),w.getById?(T.find.ID=function(e,t){if(void 0!==t.getElementById&&_){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},T.filter.ID=function(e){var t=e.replace(we,Te);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(we,Te);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=w.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},T.find.CLASS=w.getElementsByClassName&&function(e,t){if(_)return t.getElementsByClassName(e)},F=[],M=[],(w.qsa=ye.test(r.querySelectorAll))&&(i(function(e){q.appendChild(e).innerHTML="<a id='"+B+"'></a><select id='"+B+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&M.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||M.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+B+"-]").length||M.push("~="),e.querySelectorAll(":checked").length||M.push(":checked"),e.querySelectorAll("a#"+B+"+*").length||M.push(".#.+[+~]")}),i(function(e){var t=r.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&M.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||M.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),M.push(",.*:")})),(w.matchesSelector=ye.test(O=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&i(function(e){w.disconnectedMatch=O.call(e,"div"),O.call(e,"[s!='']:x"),F.push("!=",ae)}),M=M.length&&new RegExp(M.join("|")),F=F.length&&new RegExp(F.join("|")),t=ye.test(q.compareDocumentPosition),P=t||ye.test(q.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return D=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===r||e.ownerDocument===R&&P(R,e)?-1:t===r||t.ownerDocument===R&&P(R,t)?1:A?ee(A,e)-ee(A,t):0:4&n?-1:1)}:function(e,t){if(e===t)return D=!0,0;var n,i=0,o=e.parentNode,s=t.parentNode,l=[e],u=[t];if(!o||!s)return e===r?-1:t===r?1:o?-1:s?1:A?ee(A,e)-ee(A,t):0;if(o===s)return a(e,t);for(n=e;n=n.parentNode;)l.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;l[i]===u[i];)i++;return i?a(l[i],u[i]):l[i]===R?-1:u[i]===R?1:0},r):H},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==H&&L(e),n=n.replace(fe,"='$1']"),w.matchesSelector&&_&&(!F||!F.test(n))&&(!M||!M.test(n)))try{var r=O.call(e,n);if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,H,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==H&&L(e),P(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==H&&L(e);var n=T.attrHandle[t.toLowerCase()],r=n&&Q.call(T.attrHandle,t.toLowerCase())?n(e,t,!_):void 0;return void 0!==r?r:w.attributes||!_?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(D=!w.detectDuplicates,A=!w.sortStable&&e.slice(0),e.sort(U),D){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return A=null,e},C=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=C(t);return n},(T=t.selectors={cacheLength:50,createPseudo:r,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(we,Te),e[3]=(e[3]||e[4]||e[5]||"").replace(we,Te),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(we,Te).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(se," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,d,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(g){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&v){for(p=(u=(c=g[B]||(g[B]={}))[e]||[])[0]===W&&u[1],d=u[0]===W&&u[2],f=p&&g.childNodes[p];f=++p&&f&&f[m]||(d=p=0)||h.pop();)if(1===f.nodeType&&++d&&f===t){c[e]=[W,p,d];break}}else if(v&&(u=(t[B]||(t[B]={}))[e])&&u[0]===W)d=u[1];else for(;(f=++p&&f&&f[m]||(d=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++d||(v&&((f[B]||(f[B]={}))[e]=[W,d]),f!==t)););return(d-=i)===r||d%r==0&&d/r>=0}}},PSEUDO:function(e,n){var i,o=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[B]?o(n):o.length>1?(i=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)e[r=ee(e,i[a])]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(le,"$1"));return i[B]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(we,Te),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:r(function(e){return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(we,Te).toLowerCase(),function(t){var n;do{if(n=_?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===q},focus:function(e){return e===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return me.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=T.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[x]=s(x);for(x in{submit:!0,reset:!0})T.pseudos[x]=l(x);return f.prototype=T.filters=T.pseudos,T.setFilters=new f,E=t.tokenize=function(e,n){var r,i,o,a,s,l,u,c=I[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=T.preFilter;s;){r&&!(i=ue.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=ce.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(le," ")}),s=s.slice(r.length));for(a in T.filter)!(i=he[a].exec(s))||u[a]&&!(i=u[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):I(e,l).slice(0)},k=t.compile=function(e,t){var n,r=[],i=[],o=X[e+" "];if(!o){for(t||(t=E(e)),n=t.length;n--;)(o=v(t[n]))[B]?r.push(o):i.push(o);(o=X(e,b(i,r))).selector=e}return o},S=t.select=function(e,t,n,r){var i,o,a,s,l,u="function"==typeof e&&e,f=!r&&E(e=u.selector||e);if(n=n||[],1===f.length){if((o=f[0]=f[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&w.getById&&9===t.nodeType&&_&&T.relative[o[1].type]){if(!(t=(T.find.ID(a.matches[0].replace(we,Te),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=he.needsContext.test(e)?0:o.length;i--&&(a=o[i],!T.relative[s=a.type]);)if((l=T.find[s])&&(r=l(a.matches[0].replace(we,Te),be.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&d(o)))return K.apply(n,r),n;break}}return(u||k(e,f))(r,t,!_,n,be.test(e)&&c(t.parentNode)||t),n},w.sortStable=B.split("").sort(U).join("")===B,w.detectDuplicates=!!D,L(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(H.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);ie.find=ue,ie.expr=ue.selectors,ie.expr[":"]=ie.expr.pseudos,ie.unique=ue.uniqueSort,ie.text=ue.getText,ie.isXMLDoc=ue.isXML,ie.contains=ue.contains;var ce=ie.expr.match.needsContext,fe=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,de=/^.[^:#\[\.,]*$/;ie.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ie.find.matchesSelector(r,e)?[r]:[]:ie.find.matches(e,ie.grep(t,function(e){return 1===e.nodeType}))},ie.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(ie(e).filter(function(){for(t=0;t<i;t++)if(ie.contains(r[t],this))return!0}));for(t=0;t<i;t++)ie.find(e,r[t],n);return n=this.pushStack(i>1?ie.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&ce.test(e)?ie(e):e||[],!1).length}});var pe,he=e.document,me=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(ie.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(!(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:me.exec(e))||!n[1]&&t)return!t||t.jquery?(t||pe).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof ie?t[0]:t,ie.merge(this,ie.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:he,!0)),fe.test(n[1])&&ie.isPlainObject(t))for(n in t)ie.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if((r=he.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return pe.find(e);this.length=1,this[0]=r}return this.context=he,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ie.isFunction(e)?void 0!==pe.ready?pe.ready(e):e(ie):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),ie.makeArray(e,this))}).prototype=ie.fn,pe=ie(he);var ge=/^(?:parents|prev(?:Until|All))/,ye={children:!0,contents:!0,next:!0,prev:!0};ie.extend({dir:function(e,t,n){for(var r=[],i=e[t];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!ie(i).is(n));)1===i.nodeType&&r.push(i),i=i[t];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),ie.fn.extend({has:function(e){var t,n=ie(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(ie.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=ce.test(e)||"string"!=typeof e?ie(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ie.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?ie.unique(o):o)},index:function(e){return e?"string"==typeof e?ie.inArray(this[0],ie(e)):ie.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ie.unique(ie.merge(this.get(),ie(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ie.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ie.dir(e,"parentNode")},parentsUntil:function(e,t,n){return ie.dir(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return ie.dir(e,"nextSibling")},prevAll:function(e){return ie.dir(e,"previousSibling")},nextUntil:function(e,t,n){return ie.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return ie.dir(e,"previousSibling",n)},siblings:function(e){return ie.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return ie.sibling(e.firstChild)},contents:function(e){return ie.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:ie.merge([],e.childNodes)}},function(e,t){ie.fn[e]=function(n,r){var i=ie.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ie.filter(r,i)),this.length>1&&(ye[e]||(i=ie.unique(i)),ge.test(e)&&(i=i.reverse())),this.pushStack(i)}});var ve=/\S+/g,be={};ie.Callbacks=function(e){var t,n,r,i,a,s,l=[],u=!(e="string"==typeof e?be[e]||o(e):ie.extend({},e)).once&&[],c=function(o){for(n=e.memory&&o,r=!0,a=s||0,s=0,i=l.length,t=!0;l&&a<i;a++)if(!1===l[a].apply(o[0],o[1])&&e.stopOnFalse){n=!1;break}t=!1,l&&(u?u.length&&c(u.shift()):n?l=[]:f.disable())},f={add:function(){if(l){var r=l.length;!function t(n){ie.each(n,function(n,r){var i=ie.type(r);"function"===i?e.unique&&f.has(r)||l.push(r):r&&r.length&&"string"!==i&&t(r)})}(arguments),t?i=l.length:n&&(s=r,c(n))}return this},remove:function(){return l&&ie.each(arguments,function(e,n){for(var r;(r=ie.inArray(n,l,r))>-1;)l.splice(r,1),t&&(r<=i&&i--,r<=a&&a--)}),this},has:function(e){return e?ie.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],i=0,this},disable:function(){return l=u=n=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,n||f.disable(),this},locked:function(){return!u},fireWith:function(e,n){return!l||r&&!u||(n=[e,(n=n||[]).slice?n.slice():n],t?u.push(n):c(n)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!r}};return f},ie.extend({Deferred:function(e){var t=[["resolve","done",ie.Callbacks("once memory"),"resolved"],["reject","fail",ie.Callbacks("once memory"),"rejected"],["notify","progress",ie.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ie.Deferred(function(n){ie.each(t,function(t,o){var a=ie.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&ie.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?ie.extend(e,r):r}},i={};return r.pipe=r.then,ie.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=J.call(arguments),r=n.length,i=1!==r||e&&ie.isFunction(e.promise)?r:0,o=1===i?e:ie.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?J.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=new Array(r),l=new Array(r),u=new Array(r);t<r;t++)n[t]&&ie.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}});var xe;ie.fn.ready=function(e){return ie.ready.promise().done(e),this},ie.extend({isReady:!1,readyWait:1,holdReady:function(e){e?ie.readyWait++:ie.ready(!0)},ready:function(e){if(!0===e?!--ie.readyWait:!ie.isReady){if(!he.body)return setTimeout(ie.ready);ie.isReady=!0,!0!==e&&--ie.readyWait>0||(xe.resolveWith(he,[ie]),ie.fn.triggerHandler&&(ie(he).triggerHandler("ready"),ie(he).off("ready")))}}}),ie.ready.promise=function(t){if(!xe)if(xe=ie.Deferred(),"complete"===he.readyState)setTimeout(ie.ready);else if(he.addEventListener)he.addEventListener("DOMContentLoaded",s,!1),e.addEventListener("load",s,!1);else{he.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var n=!1;try{n=null==e.frameElement&&he.documentElement}catch(e){}n&&n.doScroll&&function e(){if(!ie.isReady){try{n.doScroll("left")}catch(t){return setTimeout(e,50)}a(),ie.ready()}}()}return xe.promise(t)};var we="undefined",Te;for(Te in ie(ne))break;ne.ownLast="0"!==Te,ne.inlineBlockNeedsLayout=!1,ie(function(){var e,t,n,r;(n=he.getElementsByTagName("body")[0])&&n.style&&(t=he.createElement("div"),(r=he.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==we&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ne.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}),function(){var e=he.createElement("div");if(null==ne.deleteExpando){ne.deleteExpando=!0;try{delete e.test}catch(e){ne.deleteExpando=!1}}e=null}(),ie.acceptData=function(e){var t=ie.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)};var Ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ne=/([A-Z])/g;ie.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?ie.cache[e[ie.expando]]:e[ie.expando])&&!u(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return f(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return f(e,t,!0)}}),ie.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=ie.data(o),1===o.nodeType&&!ie._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&l(o,r=ie.camelCase(r.slice(5)),i[r]);ie._data(o,"parsedAttrs",!0)}return i}return"object"==typeof e?this.each(function(){ie.data(this,e)}):arguments.length>1?this.each(function(){ie.data(this,e,t)}):o?l(o,e,ie.data(o,e)):void 0},removeData:function(e){return this.each(function(){ie.removeData(this,e)})}}),ie.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=ie._data(e,t),n&&(!r||ie.isArray(n)?r=ie._data(e,t,ie.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ie.queue(e,t),r=n.length,i=n.shift(),o=ie._queueHooks(e,t),a=function(){ie.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ie._data(e,n)||ie._data(e,n,{empty:ie.Callbacks("once memory").add(function(){ie._removeData(e,t+"queue"),ie._removeData(e,n)})})}}),ie.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?ie.queue(this[0],e):void 0===t?this:this.each(function(){var n=ie.queue(this,e,t);ie._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&ie.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ie.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ie.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=ie._data(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var Ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ke=["Top","Right","Bottom","Left"],Se=function(e,t){return e=t||e,"none"===ie.css(e,"display")||!ie.contains(e.ownerDocument,e)},je=ie.access=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===ie.type(n)){i=!0;for(s in n)ie.access(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,ie.isFunction(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(ie(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},Ae=/^(?:checkbox|radio)$/i;!function(){var e=he.createElement("input"),t=he.createElement("div"),n=he.createDocumentFragment();if(t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ne.leadingWhitespace=3===t.firstChild.nodeType,ne.tbody=!t.getElementsByTagName("tbody").length,ne.htmlSerialize=!!t.getElementsByTagName("link").length,ne.html5Clone="<:nav></:nav>"!==he.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,n.appendChild(e),ne.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",ne.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",ne.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,ne.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){ne.noCloneEvent=!1}),t.cloneNode(!0).click()),null==ne.deleteExpando){ne.deleteExpando=!0;try{delete t.test}catch(e){ne.deleteExpando=!1}}}(),function(){var t,n,r=he.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(ne[t+"Bubbles"]=n in e)||(r.setAttribute(n,"t"),ne[t+"Bubbles"]=!1===r.attributes[n].expando);r=null}();var De=/^(?:input|select|textarea)$/i,Le=/^key/,He=/^(?:mouse|pointer|contextmenu)|click/,qe=/^(?:focusinfocus|focusoutblur)$/,_e=/^([^.]*)(?:\.(.+)|)$/;ie.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,p,h,m,g=ie._data(e);if(g){for(n.handler&&(n=(l=n).handler,i=l.selector),n.guid||(n.guid=ie.guid++),(a=g.events)||(a=g.events={}),(c=g.handle)||((c=g.handle=function(e){return typeof ie===we||e&&ie.event.triggered===e.type?void 0:ie.event.dispatch.apply(c.elem,arguments)}).elem=e),s=(t=(t||"").match(ve)||[""]).length;s--;)p=m=(o=_e.exec(t[s])||[])[1],h=(o[2]||"").split(".").sort(),p&&(u=ie.event.special[p]||{},p=(i?u.delegateType:u.bindType)||p,u=ie.event.special[p]||{},f=ie.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ie.expr.match.needsContext.test(i),namespace:h.join(".")},l),(d=a[p])||((d=a[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,r,h,c)||(e.addEventListener?e.addEventListener(p,c,!1):e.attachEvent&&e.attachEvent("on"+p,c))),u.add&&(u.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,f):d.push(f),ie.event.global[p]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,f,d,p,h,m,g=ie.hasData(e)&&ie._data(e);if(g&&(c=g.events)){for(u=(t=(t||"").match(ve)||[""]).length;u--;)if(s=_e.exec(t[u])||[],p=m=s[1],h=(s[2]||"").split(".").sort(),p){for(f=ie.event.special[p]||{},d=c[p=(r?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=d.length;o--;)a=d[o],!i&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(d.splice(o,1),a.selector&&d.delegateCount--,f.remove&&f.remove.call(e,a));l&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,g.handle)||ie.removeEvent(e,p,g.handle),delete c[p])}else for(p in c)ie.event.remove(e,p+t[u],n,r,!0);ie.isEmptyObject(c)&&(delete g.handle,ie._removeData(e,"events"))}},trigger:function(t,n,r,i){var o,a,s,l,u,c,f,d=[r||he],p=te.call(t,"type")?t.type:t,h=te.call(t,"namespace")?t.namespace.split("."):[];if(s=c=r=r||he,3!==r.nodeType&&8!==r.nodeType&&!qe.test(p+ie.event.triggered)&&(p.indexOf(".")>=0&&(p=(h=p.split(".")).shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[ie.expando]?t:new ie.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:ie.makeArray(n,[t]),u=ie.event.special[p]||{},i||!u.trigger||!1!==u.trigger.apply(r,n))){if(!i&&!u.noBubble&&!ie.isWindow(r)){for(l=u.delegateType||p,qe.test(l+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),c=s;c===(r.ownerDocument||he)&&d.push(c.defaultView||c.parentWindow||e)}for(f=0;(s=d[f++])&&!t.isPropagationStopped();)t.type=f>1?l:u.bindType||p,(o=(ie._data(s,"events")||{})[t.type]&&ie._data(s,"handle"))&&o.apply(s,n),(o=a&&s[a])&&o.apply&&ie.acceptData(s)&&(t.result=o.apply(s,n),!1===t.result&&t.preventDefault());if(t.type=p,!i&&!t.isDefaultPrevented()&&(!u._default||!1===u._default.apply(d.pop(),n))&&ie.acceptData(r)&&a&&r[p]&&!ie.isWindow(r)){(c=r[a])&&(r[a]=null),ie.event.triggered=p;try{r[p]()}catch(e){}ie.event.triggered=void 0,c&&(r[a]=c)}return t.result}},dispatch:function(e){e=ie.event.fix(e);var t,n,r,i,o,a=[],s=J.call(arguments),l=(ie._data(this,"events")||{})[e.type]||[],u=ie.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(a=ie.event.handlers.call(this,e,l),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,o=0;(r=i.handlers[o++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(r.namespace)||(e.handleObj=r,e.data=r.data,void 0!==(n=((ie.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,s))&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],o=0;o<s;o++)void 0===i[n=(r=t[o]).selector+" "]&&(i[n]=r.needsContext?ie(n,this).index(l)>=0:ie.find(n,this,null,[l]).length),i[n]&&i.push(r);i.length&&a.push({elem:l,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[ie.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=He.test(i)?this.mouseHooks:Le.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new ie.Event(o),t=r.length;t--;)e[n=r[t]]=o[n];return e.target||(e.target=o.srcElement||he),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=(r=e.target.ownerDocument||he).documentElement,n=r.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==h()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===h()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(ie.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return ie.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=ie.extend(new ie.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?ie.event.trigger(i,null,t):ie.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},ie.removeEvent=he.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===we&&(e[r]=null),e.detachEvent(r,n))},ie.Event=function(e,t){if(!(this instanceof ie.Event))return new ie.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?d:p):this.type=e,t&&ie.extend(this,t),this.timeStamp=e&&e.timeStamp||ie.now(),this[ie.expando]=!0},ie.Event.prototype={isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=d,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=d,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=d,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},ie.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){ie.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||ie.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),ne.submitBubbles||(ie.event.special.submit={setup:function(){if(ie.nodeName(this,"form"))return!1;ie.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=ie.nodeName(t,"input")||ie.nodeName(t,"button")?t.form:void 0;n&&!ie._data(n,"submitBubbles")&&(ie.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),ie._data(n,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&ie.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(ie.nodeName(this,"form"))return!1;ie.event.remove(this,"._submit")}}),ne.changeBubbles||(ie.event.special.change={setup:function(){if(De.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(ie.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),ie.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),ie.event.simulate("change",this,e,!0)})),!1;ie.event.add(this,"beforeactivate._change",function(e){var t=e.target;De.test(t.nodeName)&&!ie._data(t,"changeBubbles")&&(ie.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||ie.event.simulate("change",this.parentNode,e,!0)}),ie._data(t,"changeBubbles",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return ie.event.remove(this,"._change"),!De.test(this.nodeName)}}),ne.focusinBubbles||ie.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){ie.event.simulate(t,e.target,ie.event.fix(e),!0)};ie.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=ie._data(r,t);i||r.addEventListener(e,n,!0),ie._data(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=ie._data(r,t)-1;i?ie._data(r,t,i):(r.removeEventListener(e,n,!0),ie._removeData(r,t))}}}),ie.fn.extend({on:function(e,t,n,r,i){var o,a;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(o in e)this.on(o,t,n,e[o],i);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),!1===r)r=p;else if(!r)return this;return 1===i&&(a=r,(r=function(e){return ie().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ie.guid++)),this.each(function(){ie.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ie(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=p),this.each(function(){ie.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){ie.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ie.event.trigger(e,t,n,!0)}});var Me="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Fe=/ jQuery\d+="(?:null|\d+)"/g,Oe=new RegExp("<(?:"+Me+")[\\s/>]","i"),Pe=/^\s+/,Be=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Re=/<([\w:]+)/,We=/<tbody/i,$e=/<|&#?\w+;/,ze=/<(?:script|style|link)/i,Ie=/checked\s*(?:[^=]|=\s*.checked.)/i,Xe=/^$|\/(?:java|ecma)script/i,Ue=/^true\/(.*)/,Ve=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Qe={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ne.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Je=m(he).appendChild(he.createElement("div"));Qe.optgroup=Qe.option,Qe.tbody=Qe.tfoot=Qe.colgroup=Qe.caption=Qe.thead,Qe.th=Qe.td,ie.extend({clone:function(e,t,n){var r,i,o,a,s,l=ie.contains(e.ownerDocument,e);if(ne.html5Clone||ie.isXMLDoc(e)||!Oe.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Je.innerHTML=e.outerHTML,Je.removeChild(o=Je.firstChild)),!(ne.noCloneEvent&&ne.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ie.isXMLDoc(e)))for(r=g(o),s=g(e),a=0;null!=(i=s[a]);++a)r[a]&&C(i,r[a]);if(t)if(n)for(s=s||g(e),r=r||g(o),a=0;null!=(i=s[a]);a++)T(i,r[a]);else T(e,o);return(r=g(o,"script")).length>0&&w(r,!l&&g(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){for(var i,o,a,s,l,u,c,f=e.length,d=m(t),p=[],h=0;h<f;h++)if((o=e[h])||0===o)if("object"===ie.type(o))ie.merge(p,o.nodeType?[o]:o);else if($e.test(o)){for(s=s||d.appendChild(t.createElement("div")),l=(Re.exec(o)||["",""])[1].toLowerCase(),c=Qe[l]||Qe._default,s.innerHTML=c[1]+o.replace(Be,"<$1></$2>")+c[2],i=c[0];i--;)s=s.lastChild;if(!ne.leadingWhitespace&&Pe.test(o)&&p.push(t.createTextNode(Pe.exec(o)[0])),!ne.tbody)for(i=(o="table"!==l||We.test(o)?"<table>"!==c[1]||We.test(o)?0:s:s.firstChild)&&o.childNodes.length;i--;)ie.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(ie.merge(p,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=d.lastChild}else p.push(t.createTextNode(o));for(s&&d.removeChild(s),ne.appendChecked||ie.grep(g(p,"input"),y),h=0;o=p[h++];)if((!r||-1===ie.inArray(o,r))&&(a=ie.contains(o.ownerDocument,o),s=g(d.appendChild(o),"script"),a&&w(s),n))for(i=0;o=s[i++];)Xe.test(o.type||"")&&n.push(o);return s=null,d},cleanData:function(e,t){for(var n,r,i,o,a=0,s=ie.expando,l=ie.cache,u=ne.deleteExpando,c=ie.event.special;null!=(n=e[a]);a++)if((t||ie.acceptData(n))&&(i=n[s],o=i&&l[i])){if(o.events)for(r in o.events)c[r]?ie.event.remove(n,r):ie.removeEvent(n,r,o.handle);l[i]&&(delete l[i],u?delete n[s]:typeof n.removeAttribute!==we?n.removeAttribute(s):n[s]=null,Q.push(i))}}}),ie.fn.extend({text:function(e){return je(this,function(e){return void 0===e?ie.text(this):this.empty().append((this[0]&&this[0].ownerDocument||he).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||v(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=v(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?ie.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||ie.cleanData(g(n)),n.parentNode&&(t&&ie.contains(n.ownerDocument,n)&&w(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&ie.cleanData(g(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&ie.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ie.clone(this,e,t)})},html:function(e){return je(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Fe,""):void 0;if("string"==typeof e&&!ze.test(e)&&(ne.htmlSerialize||!Oe.test(e))&&(ne.leadingWhitespace||!Pe.test(e))&&!Qe[(Re.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Be,"<$1></$2>");try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ie.cleanData(g(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,ie.cleanData(g(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=Y.apply([],e);var n,r,i,o,a,s,l=0,u=this.length,c=this,f=u-1,d=e[0],p=ie.isFunction(d);if(p||u>1&&"string"==typeof d&&!ne.checkClone&&Ie.test(d))return this.each(function(n){var r=c.eq(n);p&&(e[0]=d.call(this,n,r.html())),r.domManip(e,t)});if(u&&(s=ie.buildFragment(e,this[0].ownerDocument,!1,this),n=s.firstChild,1===s.childNodes.length&&(s=n),n)){for(i=(o=ie.map(g(s,"script"),b)).length;l<u;l++)r=s,l!==f&&(r=ie.clone(r,!0,!0),i&&ie.merge(o,g(r,"script"))),t.call(this[l],r,l);if(i)for(a=o[o.length-1].ownerDocument,ie.map(o,x),l=0;l<i;l++)r=o[l],Xe.test(r.type||"")&&!ie._data(r,"globalEval")&&ie.contains(a,r)&&(r.src?ie._evalUrl&&ie._evalUrl(r.src):ie.globalEval((r.text||r.textContent||r.innerHTML||"").replace(Ve,"")));s=n=null}return this}}),ie.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ie.fn[e]=function(e){for(var n,r=0,i=[],o=ie(e),a=o.length-1;r<=a;r++)n=r===a?this:this.clone(!0),ie(o[r])[t](n),G.apply(i,n.get());return this.pushStack(i)}});var Ye,Ge={};!function(){var e;ne.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,r;return(n=he.getElementsByTagName("body")[0])&&n.style?(t=he.createElement("div"),r=he.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==we&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(he.createElement("div")).style.width="5px",e=3!==t.offsetWidth),n.removeChild(r),e):void 0}}();var Ke=/^margin/,Ze=new RegExp("^("+Ee+")(?!px)[a-z%]+$","i"),et,tt,nt=/^(top|right|bottom|left)$/;e.getComputedStyle?(et=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)},tt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||et(e),a=n?n.getPropertyValue(t)||n[t]:void 0,n&&(""!==a||ie.contains(e.ownerDocument,e)||(a=ie.style(e,t)),Ze.test(a)&&Ke.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0===a?a:a+""}):he.documentElement.currentStyle&&(et=function(e){return e.currentStyle},tt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||et(e),null==(a=n?n[t]:void 0)&&s&&s[t]&&(a=s[t]),Ze.test(a)&&!nt.test(t)&&(r=s.left,(o=(i=e.runtimeStyle)&&i.left)&&(i.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"}),function(){function t(){var t,n,r,i;(n=he.getElementsByTagName("body")[0])&&n.style&&(t=he.createElement("div"),(r=he.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o=a=!1,l=!0,e.getComputedStyle&&(o="1%"!==(e.getComputedStyle(t,null)||{}).top,a="4px"===(e.getComputedStyle(t,null)||{width:"4px"}).width,(i=t.appendChild(he.createElement("div"))).style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",t.style.width="1px",l=!parseFloat((e.getComputedStyle(i,null)||{}).marginRight),t.removeChild(i)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",(i=t.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===i[0].offsetHeight)&&(i[0].style.display="",i[1].style.display="none",s=0===i[0].offsetHeight),n.removeChild(r))}var n,r,i,o,a,s,l;(n=he.createElement("div")).innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",(r=(i=n.getElementsByTagName("a")[0])&&i.style)&&(r.cssText="float:left;opacity:.5",ne.opacity="0.5"===r.opacity,ne.cssFloat=!!r.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",ne.clearCloneStyle="content-box"===n.style.backgroundClip,ne.boxSizing=""===r.boxSizing||""===r.MozBoxSizing||""===r.WebkitBoxSizing,ie.extend(ne,{reliableHiddenOffsets:function(){return null==s&&t(),s},boxSizingReliable:function(){return null==a&&t(),a},pixelPosition:function(){return null==o&&t(),o},reliableMarginRight:function(){return null==l&&t(),l}}))}(),ie.swap=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i};var rt=/alpha\([^)]*\)/i,it=/opacity\s*=\s*([^)]*)/,ot=/^(none|table(?!-c[ea]).+)/,at=new RegExp("^("+Ee+")(.*)$","i"),st=new RegExp("^([+-])=("+Ee+")","i"),lt={position:"absolute",visibility:"hidden",display:"block"},ut={letterSpacing:"0",fontWeight:"400"},ct=["Webkit","O","Moz","ms"];ie.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=tt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:ne.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=ie.camelCase(t),l=e.style;if(t=ie.cssProps[s]||(ie.cssProps[s]=S(l,s)),a=ie.cssHooks[t]||ie.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];if("string"===(o=typeof n)&&(i=st.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(ie.css(e,t)),o="number"),null!=n&&n===n&&("number"!==o||ie.cssNumber[s]||(n+="px"),ne.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{l[t]=n}catch(e){}}},css:function(e,t,n,r){var i,o,a,s=ie.camelCase(t);return t=ie.cssProps[s]||(ie.cssProps[s]=S(e.style,s)),(a=ie.cssHooks[t]||ie.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=tt(e,t,r)),"normal"===o&&t in ut&&(o=ut[t]),""===n||n?(i=parseFloat(o),!0===n||ie.isNumeric(i)?i||0:o):o}}),ie.each(["height","width"],function(e,t){ie.cssHooks[t]={get:function(e,n,r){if(n)return ot.test(ie.css(e,"display"))&&0===e.offsetWidth?ie.swap(e,lt,function(){return L(e,t,r)}):L(e,t,r)},set:function(e,n,r){var i=r&&et(e);return A(e,n,r?D(e,t,r,ne.boxSizing&&"border-box"===ie.css(e,"boxSizing",!1,i),i):0)}}}),ne.opacity||(ie.cssHooks.opacity={get:function(e,t){return it.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=ie.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===ie.trim(o.replace(rt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=rt.test(o)?o.replace(rt,i):o+" "+i)}}),ie.cssHooks.marginRight=k(ne.reliableMarginRight,function(e,t){if(t)return ie.swap(e,{display:"inline-block"},tt,[e,"marginRight"])}),ie.each({margin:"",padding:"",border:"Width"},function(e,t){ie.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ke[r]+t]=o[r]||o[r-2]||o[0];return i}},Ke.test(e)||(ie.cssHooks[e+t].set=A)}),ie.fn.extend({css:function(e,t){return je(this,function(e,t,n){var r,i,o={},a=0;if(ie.isArray(t)){for(r=et(e),i=t.length;a<i;a++)o[t[a]]=ie.css(e,t[a],!1,r);return o}return void 0!==n?ie.style(e,t,n):ie.css(e,t)},e,t,arguments.length>1)},show:function(){return j(this,!0)},hide:function(){return j(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Se(this)?ie(this).show():ie(this).hide()})}}),ie.Tween=H,H.prototype={constructor:H,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ie.cssNumber[n]?"":"px")},cur:function(){var e=H.propHooks[this.prop];return e&&e.get?e.get(this):H.propHooks._default.get(this)},run:function(e){var t,n=H.propHooks[this.prop];return this.options.duration?this.pos=t=ie.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=ie.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){ie.fx.step[e.prop]?ie.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[ie.cssProps[e.prop]]||ie.cssHooks[e.prop])?ie.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ie.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},ie.fx=H.prototype.init,ie.fx.step={};var ft,dt,pt=/^(?:toggle|show|hide)$/,ht=new RegExp("^(?:([+-])=|)("+Ee+")([a-z%]*)$","i"),mt=/queueHooks$/,gt=[F],yt={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=ht.exec(t),o=i&&i[3]||(ie.cssNumber[e]?"":"px"),a=(ie.cssNumber[e]||"px"!==o&&+r)&&ht.exec(ie.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do{a/=s=s||".5",ie.style(n.elem,e,a+o)}while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};ie.Animation=ie.extend(P,{tweener:function(e,t){ie.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt[n]=yt[n]||[],yt[n].unshift(t)},prefilter:function(e,t){t?gt.unshift(e):gt.push(e)}}),ie.speed=function(e,t,n){var r=e&&"object"==typeof e?ie.extend({},e):{complete:n||!n&&t||ie.isFunction(e)&&e,duration:e,easing:n&&t||t&&!ie.isFunction(t)&&t};return r.duration=ie.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in ie.fx.speeds?ie.fx.speeds[r.duration]:ie.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){ie.isFunction(r.old)&&r.old.call(this),r.queue&&ie.dequeue(this,r.queue)},r},ie.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Se).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=ie.isEmptyObject(e),o=ie.speed(t,n,r),a=function(){var t=P(this,ie.extend({},e),o);(i||ie._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=ie.timers,a=ie._data(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&mt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||ie.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=ie._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=ie.timers,a=r?r.length:0;for(n.finish=!0,ie.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),ie.each(["toggle","show","hide"],function(e,t){var n=ie.fn[t];ie.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(_(t,!0),e,r,i)}}),ie.each({slideDown:_("show"),slideUp:_("hide"),slideToggle:_("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ie.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),ie.timers=[],ie.fx.tick=function(){var e,t=ie.timers,n=0;for(ft=ie.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||ie.fx.stop(),ft=void 0},ie.fx.timer=function(e){ie.timers.push(e),e()?ie.fx.start():ie.timers.pop()},ie.fx.interval=13,ie.fx.start=function(){dt||(dt=setInterval(ie.fx.tick,ie.fx.interval))},ie.fx.stop=function(){clearInterval(dt),dt=null},ie.fx.speeds={slow:600,fast:200,_default:400},ie.fn.delay=function(e,t){return e=ie.fx?ie.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},function(){var e,t,n,r,i;(t=he.createElement("div")).setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",r=t.getElementsByTagName("a")[0],i=(n=he.createElement("select")).appendChild(he.createElement("option")),e=t.getElementsByTagName("input")[0],r.style.cssText="top:1px",ne.getSetAttribute="t"!==t.className,ne.style=/top/.test(r.getAttribute("style")),ne.hrefNormalized="/a"===r.getAttribute("href"),ne.checkOn=!!e.value,ne.optSelected=i.selected,ne.enctype=!!he.createElement("form").enctype,n.disabled=!0,ne.optDisabled=!i.disabled,(e=he.createElement("input")).setAttribute("value",""),ne.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),ne.radioValue="t"===e.value}();var vt=/\r/g;ie.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=ie.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,ie(this).val()):e)?i="":"number"==typeof i?i+="":ie.isArray(i)&&(i=ie.map(i,function(e){return null==e?"":e+""})),(t=ie.valHooks[this.type]||ie.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=ie.valHooks[i.type]||ie.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(vt,""):null==n?"":n)}}}),ie.extend({valHooks:{option:{get:function(e){var t=ie.find.attr(e,"value");return null!=t?t:ie.trim(ie.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,l=i<0?s:o?i:0;l<s;l++)if(((n=r[l]).selected||l===i)&&(ne.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ie.nodeName(n.parentNode,"optgroup"))){if(t=ie(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=ie.makeArray(t),a=i.length;a--;)if(r=i[a],ie.inArray(ie.valHooks.option.get(r),o)>=0)try{r.selected=n=!0}catch(e){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),ie.each(["radio","checkbox"],function(){ie.valHooks[this]={set:function(e,t){if(ie.isArray(t))return e.checked=ie.inArray(ie(e).val(),t)>=0}},ne.checkOn||(ie.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var bt,xt,wt=ie.expr.attrHandle,Tt=/^(?:checked|selected)$/i,Ct=ne.getSetAttribute,Nt=ne.input;ie.fn.extend({attr:function(e,t){return je(this,ie.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ie.removeAttr(this,e)})}}),ie.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return typeof e.getAttribute===we?ie.prop(e,t,n):(1===o&&ie.isXMLDoc(e)||(t=t.toLowerCase(),r=ie.attrHooks[t]||(ie.expr.match.bool.test(t)?xt:bt)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=ie.find.attr(e,t),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void ie.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(ve);if(o&&1===e.nodeType)for(;n=o[i++];)r=ie.propFix[n]||n,ie.expr.match.bool.test(n)?Nt&&Ct||!Tt.test(n)?e[r]=!1:e[ie.camelCase("default-"+n)]=e[r]=!1:ie.attr(e,n,""),e.removeAttribute(Ct?n:r)},attrHooks:{type:{set:function(e,t){if(!ne.radioValue&&"radio"===t&&ie.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),xt={set:function(e,t,n){return!1===t?ie.removeAttr(e,n):Nt&&Ct||!Tt.test(n)?e.setAttribute(!Ct&&ie.propFix[n]||n,n):e[ie.camelCase("default-"+n)]=e[n]=!0,n}},ie.each(ie.expr.match.bool.source.match(/\w+/g),function(e,t){var n=wt[t]||ie.find.attr;wt[t]=Nt&&Ct||!Tt.test(t)?function(e,t,r){var i,o;return r||(o=wt[t],wt[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,wt[t]=o),i}:function(e,t,n){if(!n)return e[ie.camelCase("default-"+t)]?t.toLowerCase():null}}),Nt&&Ct||(ie.attrHooks.value={set:function(e,t,n){if(!ie.nodeName(e,"input"))return bt&&bt.set(e,t,n);e.defaultValue=t}}),Ct||(bt={set:function(e,t,n){var r=e.getAttributeNode(n);if(r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n))return t}},wt.id=wt.name=wt.coords=function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},ie.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:bt.set},ie.attrHooks.contenteditable={set:function(e,t,n){bt.set(e,""!==t&&t,n)}},ie.each(["width","height"],function(e,t){ie.attrHooks[t]={set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}}})),ne.style||(ie.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Et=/^(?:input|select|textarea|button|object)$/i,kt=/^(?:a|area)$/i;ie.fn.extend({prop:function(e,t){return je(this,ie.prop,e,t,arguments.length>1)},removeProp:function(e){return e=ie.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),ie.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var r,i,o,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return(o=1!==a||!ie.isXMLDoc(e))&&(t=ie.propFix[t]||t,i=ie.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ie.find.attr(e,"tabindex");return t?parseInt(t,10):Et.test(e.nodeName)||kt.test(e.nodeName)&&e.href?0:-1}}}}),ne.hrefNormalized||ie.each(["href","src"],function(e,t){ie.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),ne.optSelected||(ie.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),ie.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ie.propFix[this.toLowerCase()]=this}),ne.enctype||(ie.propFix.enctype="encoding");var St=/[\t\r\n\f]/g;ie.fn.extend({addClass:function(e){var t,n,r,i,o,a,s=0,l=this.length,u="string"==typeof e&&e;if(ie.isFunction(e))return this.each(function(t){ie(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(ve)||[];s<l;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(St," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a=ie.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,r,i,o,a,s=0,l=this.length,u=0===arguments.length||"string"==typeof e&&e;if(ie.isFunction(e))return this.each(function(t){ie(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(ve)||[];s<l;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(St," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");a=e?ie.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):ie.isFunction(e)?this.each(function(n){ie(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var t,r=0,i=ie(this),o=e.match(ve)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else n!==we&&"boolean"!==n||(this.className&&ie._data(this,"__className__",this.className),this.className=this.className||!1===e?"":ie._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(St," ").indexOf(t)>=0)return!0;return!1}}),ie.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){ie.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ie.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var jt=ie.now(),At=/\?/,Dt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;ie.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,r=null,i=ie.trim(t+"");return i&&!ie.trim(i.replace(Dt,function(e,t,i,o){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!o-!i,"")}))?Function("return "+i)():ie.error("Invalid JSON: "+t)},ie.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(r=new DOMParser,n=r.parseFromString(t,"text/xml")):((n=new ActiveXObject("Microsoft.XMLDOM")).async="false",n.loadXML(t))}catch(e){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||ie.error("Invalid XML: "+t),n};var Lt,Ht,qt=/#.*$/,_t=/([?&])_=[^&]*/,Mt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ft=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ot=/^(?:GET|HEAD)$/,Pt=/^\/\//,Bt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Rt={},Wt={},$t="*/".concat("*");try{Ht=location.href}catch(e){(Ht=he.createElement("a")).href="",Ht=Ht.href}Lt=Bt.exec(Ht.toLowerCase())||[],ie.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ht,type:"GET",isLocal:Ft.test(Lt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$t,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ie.parseJSON,"text xml":ie.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?W(W(e,ie.ajaxSettings),t):W(ie.ajaxSettings,e)},ajaxPrefilter:B(Rt),ajaxTransport:B(Wt),ajax:function(e,t){function n(e,t,n,r){var i,c,y,v,x,T=t;2!==b&&(b=2,s&&clearTimeout(s),u=void 0,a=r||"",w.readyState=e>0?4:0,i=e>=200&&e<300||304===e,n&&(v=$(f,w,n)),v=z(f,v,w,i),i?(f.ifModified&&((x=w.getResponseHeader("Last-Modified"))&&(ie.lastModified[o]=x),(x=w.getResponseHeader("etag"))&&(ie.etag[o]=x)),204===e||"HEAD"===f.type?T="nocontent":304===e?T="notmodified":(T=v.state,c=v.data,i=!(y=v.error))):(y=T,!e&&T||(T="error",e<0&&(e=0))),w.status=e,w.statusText=(t||T)+"",i?h.resolveWith(d,[c,T,w]):h.rejectWith(d,[w,T,y]),w.statusCode(g),g=void 0,l&&p.trigger(i?"ajaxSuccess":"ajaxError",[w,f,i?c:y]),m.fireWith(d,[w,T]),l&&(p.trigger("ajaxComplete",[w,f]),--ie.active||ie.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,l,u,c,f=ie.ajaxSetup({},t),d=f.context||f,p=f.context&&(d.nodeType||d.jquery)?ie(d):ie.event,h=ie.Deferred(),m=ie.Callbacks("once memory"),g=f.statusCode||{},y={},v={},b=0,x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c)for(c={};t=Mt.exec(a);)c[t[1].toLowerCase()]=t[2];t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)g[t]=[g[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||x;return u&&u.abort(t),n(0,t),this}};if(h.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,f.url=((e||f.url||Ht)+"").replace(qt,"").replace(Pt,Lt[1]+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=ie.trim(f.dataType||"*").toLowerCase().match(ve)||[""],null==f.crossDomain&&(r=Bt.exec(f.url.toLowerCase()),f.crossDomain=!(!r||r[1]===Lt[1]&&r[2]===Lt[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(Lt[3]||("http:"===Lt[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=ie.param(f.data,f.traditional)),R(Rt,f,t,w),2===b)return w;(l=ie.event&&f.global)&&0==ie.active++&&ie.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ot.test(f.type),o=f.url,f.hasContent||(f.data&&(o=f.url+=(At.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=_t.test(o)?o.replace(_t,"$1_="+jt++):o+(At.test(o)?"&":"?")+"_="+jt++)),f.ifModified&&(ie.lastModified[o]&&w.setRequestHeader("If-Modified-Since",ie.lastModified[o]),ie.etag[o]&&w.setRequestHeader("If-None-Match",ie.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+$t+"; q=0.01":""):f.accepts["*"]);for(i in f.headers)w.setRequestHeader(i,f.headers[i]);if(f.beforeSend&&(!1===f.beforeSend.call(d,w,f)||2===b))return w.abort();x="abort";for(i in{success:1,error:1,complete:1})w[i](f[i]);if(u=R(Wt,f,t,w)){w.readyState=1,l&&p.trigger("ajaxSend",[w,f]),f.async&&f.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},f.timeout));try{b=1,u.send(y,n)}catch(e){if(!(b<2))throw e;n(-1,e)}}else n(-1,"No Transport");return w},getJSON:function(e,t,n){return ie.get(e,t,n,"json")},getScript:function(e,t){return ie.get(e,void 0,t,"script")}}),ie.each(["get","post"],function(e,t){ie[t]=function(e,n,r,i){return ie.isFunction(n)&&(i=i||r,r=n,n=void 0),ie.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),ie._evalUrl=function(e){return ie.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},ie.fn.extend({wrapAll:function(e){if(ie.isFunction(e))return this.each(function(t){ie(this).wrapAll(e.call(this,t))});if(this[0]){var t=ie(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return ie.isFunction(e)?this.each(function(t){ie(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ie(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ie.isFunction(e);return this.each(function(n){ie(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){ie.nodeName(this,"body")||ie(this).replaceWith(this.childNodes)}).end()}}),ie.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!ne.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||ie.css(e,"display"))},ie.expr.filters.visible=function(e){return!ie.expr.filters.hidden(e)};var zt=/%20/g,It=/\[\]$/,Xt=/\r?\n/g,Ut=/^(?:submit|button|image|reset|file)$/i,Vt=/^(?:input|select|textarea|keygen)/i;ie.param=function(e,t){var n,r=[],i=function(e,t){t=ie.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=ie.ajaxSettings&&ie.ajaxSettings.traditional),ie.isArray(e)||e.jquery&&!ie.isPlainObject(e))ie.each(e,function(){i(this.name,this.value)});else for(n in e)I(n,e[n],t,i);return r.join("&").replace(zt,"+")},ie.fn.extend({serialize:function(){return ie.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ie.prop(this,"elements");return e?ie.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ie(this).is(":disabled")&&Vt.test(this.nodeName)&&!Ut.test(e)&&(this.checked||!Ae.test(e))}).map(function(e,t){var n=ie(this).val();return null==n?null:ie.isArray(n)?ie.map(n,function(e){return{name:t.name,value:e.replace(Xt,"\r\n")}}):{name:t.name,value:n.replace(Xt,"\r\n")}}).get()}}),ie.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&X()||U()}:X;var Qt=0,Jt={},Yt=ie.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in Jt)Jt[e](void 0,!0)}),ne.cors=!!Yt&&"withCredentials"in Yt,(Yt=ne.ajax=!!Yt)&&ie.ajaxTransport(function(e){if(!e.crossDomain||ne.cors){var t;return{send:function(n,r){var i,o=e.xhr(),a=++Qt;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)void 0!==n[i]&&o.setRequestHeader(i,n[i]+"");o.send(e.hasContent&&e.data||null),t=function(n,i){var s,l,u;if(t&&(i||4===o.readyState))if(delete Jt[a],t=void 0,o.onreadystatechange=ie.noop,i)4!==o.readyState&&o.abort();else{u={},s=o.status,"string"==typeof o.responseText&&(u.text=o.responseText);try{l=o.statusText}catch(e){l=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=u.text?200:404}u&&r(s,l,u,o.getAllResponseHeaders())},e.async?4===o.readyState?setTimeout(t):o.onreadystatechange=Jt[a]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),ie.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return ie.globalEval(e),e}}}),ie.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),ie.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=he.head||ie("head")[0]||he.documentElement;return{send:function(r,i){(t=he.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var Gt=[],Kt=/(=)\?(?=&|$)|\?\?/;ie.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||ie.expando+"_"+jt++;return this[e]=!0,e}}),ie.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=!1!==t.jsonp&&(Kt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kt.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=ie.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Kt,"$1"+i):!1!==t.jsonp&&(t.url+=(At.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||ie.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Gt.push(i)),a&&ie.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),ie.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||he;var r=fe.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=ie.buildFragment([e],t,i),i&&i.length&&ie(i).remove(),ie.merge([],r.childNodes))};var Zt=ie.fn.load;ie.fn.load=function(e,t,n){if("string"!=typeof e&&Zt)return Zt.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>=0&&(r=ie.trim(e.slice(s,e.length)),e=e.slice(0,s)),ie.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&ie.ajax({url:e,type:o,dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?ie("<div>").append(ie.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){a.each(n,i||[e.responseText,t,e])}),this},ie.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ie.fn[t]=function(e){return this.on(t,e)}}),ie.expr.filters.animated=function(e){return ie.grep(ie.timers,function(t){return e===t.elem}).length};var en=e.document.documentElement;ie.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u,c=ie.css(e,"position"),f=ie(e),d={};"static"===c&&(e.style.position="relative"),s=f.offset(),o=ie.css(e,"top"),l=ie.css(e,"left"),(u=("absolute"===c||"fixed"===c)&&ie.inArray("auto",[o,l])>-1)?(a=(r=f.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),ie.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):f.css(d)}},ie.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){ie.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;if(o)return t=o.documentElement,ie.contains(t,i)?(typeof i.getBoundingClientRect!==we&&(r=i.getBoundingClientRect()),n=V(o),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===ie.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ie.nodeName(e[0],"html")||(n=e.offset()),n.top+=ie.css(e[0],"borderTopWidth",!0),n.left+=ie.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-ie.css(r,"marginTop",!0),left:t.left-n.left-ie.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||en;e&&!ie.nodeName(e,"html")&&"static"===ie.css(e,"position");)e=e.offsetParent;return e||en})}}),ie.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);ie.fn[e]=function(r){return je(this,function(e,r,i){var o=V(e);if(void 0===i)return o?t in o?o[t]:o.document.documentElement[r]:e[r];o?o.scrollTo(n?ie(o).scrollLeft():i,n?i:ie(o).scrollTop()):e[r]=i},e,r,arguments.length,null)}}),ie.each(["top","left"],function(e,t){ie.cssHooks[t]=k(ne.pixelPosition,function(e,n){if(n)return n=tt(e,t),Ze.test(n)?ie(e).position()[t]+"px":n})}),ie.each({Height:"height",Width:"width"},function(e,t){ie.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){ie.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return je(this,function(t,n,r){var i;return ie.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?ie.css(t,n,a):ie.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),ie.fn.size=function(){return this.length},ie.fn.andSelf=ie.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ie});var tn=e.jQuery,nn=e.$;return ie.noConflict=function(t){return e.$===ie&&(e.$=nn),t&&e.jQuery===ie&&(e.jQuery=tn),ie},typeof t===we&&(e.jQuery=e.$=ie),ie})}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/jquery/main.js");"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package.jquery=s,{$:o,jQuery:void 0})}();

!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,r=Package.meteor.meteorEnv,t=Package.tracker.Tracker,i=Package.tracker.Deps,o=Package["mongo-id"].MongoID,a=Package["diff-sequence"].DiffSequence,c=Package.underscore._,f=Package.random.Random,u,d,s,l;(function(){function e(e){return e instanceof Array||c.isArray(e)}var n=function(){u._suppressWarnings?u._suppressWarnings--:("undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments),u._loggedWarnings++)},r=o.idStringify,i=o.idParse;u={_suppressWarnings:0,_loggedWarnings:0,observe:function(n,r){var i=null,o=null,f=[],u=t.autorun(function(){var u=n();t.nonreactive(function(){var n;if(o&&(f=c.map(i.fetch(),function(e){return{_id:e._id,item:e}}),o.stop(),o=null),u)if(e(u))n=s(f,u,r);else{if(!v(u))throw a();var t=l(f,u,r);n=t[0],o=t[1]}else n=d(f,r);p(f,n,r),i=u,f=n})});return{stop:function(){u.stop(),o&&o.stop()}}},fetch:function(n){if(n){if(e(n))return n;if(v(n))return n.fetch();throw a()}return[]}};var a=function(){return new Error("{{#each}} currently only accepts arrays, cursors or falsey values.")},v=function(e){return e&&c.isObject(e)&&c.isFunction(e.observe)&&c.isFunction(e.fetch)},p=function(e,n,t){var o=Package["diff-sequence"].DiffSequence.diffQueryOrderedChanges,a=[],f=[],u={},d={},s={},l=e.length;c.each(n,function(e,n){f.push({_id:e._id}),d[r(e._id)]=n}),c.each(e,function(e,n){a.push({_id:e._id}),u[r(e._id)]=n,s[r(e._id)]=n}),o(a,f,{addedBefore:function(e,i,o){var a=o?s[r(o)]:l;o&&c.each(s,function(e,n){e>=a&&s[n]++}),l++,s[r(e)]=a,t.addedAt(e,n[d[r(e)]].item,a,o)},movedBefore:function(e,i){if(e!==i){var o=s[r(e)],a=i?s[r(i)]:l;a>o&&a--,c.each(s,function(e,n){o<e&&e<a?s[n]--:a<=e&&e<o&&s[n]++}),s[r(e)]=a,t.movedTo(e,n[d[r(e)]].item,o,a,i)}},removed:function(n){var i=s[r(n)];c.each(s,function(e,n){e>=i&&s[n]--}),delete s[r(n)],l--,t.removedAt(n,e[u[r(n)]].item,i)}}),c.each(d,function(r,o){var a=i(o);if(c.has(u,o)){var f=n[r].item,d=e[u[o]].item;"object"!=typeof f&&f===d||t.changedAt(a,f,d,r)}})};d=function(e,n){return[]},s=function(e,t,i){var o={};return c.map(t,function(e,i){var a;if("string"==typeof e)a="-"+e;else if("number"==typeof e||"boolean"==typeof e||void 0===e||null===e)a=e;else{if("object"!=typeof e)throw new Error("{{#each}} doesn't support arrays with elements of type "+typeof e);a=e&&"_id"in e?e._id:i}var c=r(a);return o[c]?(e&&"object"==typeof e&&"_id"in e&&n("duplicate id "+a+" in",t),a=f.id()):o[c]=!0,{_id:a,item:e}})},l=function(e,n,r){var t=!0,i=[],o=n.observe({addedAt:function(e,n,o){if(t){if(null!==o)throw new Error("Expected initial data from observe in order");i.push({_id:e._id,item:e})}else r.addedAt(e._id,e,n,o)},changedAt:function(e,n,t){r.changedAt(e._id,e,n,t)},removedAt:function(e,n){r.removedAt(e._id,e,n)},movedTo:function(e,n,t,i){r.movedTo(e._id,e,n,t,i)}});return t=!1,[i,o]}}).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,"&amp;").replace(/</g,"&lt;"):this.textMode===o.TEXTMODE.ATTRIBUTE?e.replace(/&/g,"&amp;").replace(/"/g,"&quot;"):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't have a comment here")},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("Unexpected object in htmljs in toText: "+t)},toHTML:function(t){return o.toHTML(t)}}),o.ToHTMLVisitor=o.Visitor.extend(),o.ToHTMLVisitor.def({visitNull:function(t){return""},visitPrimitive:function(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;")},visitArray:function(t){for(var e=[],i=0;i<t.length;i++)e.push(this.visit(t[i]));return e.join("")},visitComment:function(t){return"\x3c!--"+t.sanitizedValue+"--\x3e"},visitCharRef:function(t){return t.html},visitRaw:function(t){return t.value},visitTag:function(t){var e=[],i=t.tagName,r=t.children,n=t.attrs;if(n){n=o.flattenAttributes(n);for(var a in n)if("value"===a&&"textarea"===i)r=[n[a],r];else{var s=this.toText(n[a],o.TEXTMODE.ATTRIBUTE);e.push(" "+a+'="'+s+'"')}}var l="<"+i+e.join("")+">",u=[],f;if("textarea"===i){for(var c=0;c<r.length;c++)u.push(this.toText(r[c],o.TEXTMODE.RCDATA));"\n"===(f=u.join("")).slice(0,1)&&(f="\n"+f)}else{for(var c=0;c<r.length;c++)u.push(this.visit(r[c]));f=u.join("")}var h=l+f;return!r.length&&o.isVoidElement(i)||(h+="</"+i+">"),h},visitObject:function(t){throw new Error("Unexpected object in htmljs in toHTML: "+t)},toText:function(t,e){return o.toText(t,e)}})}.call(this),function(){o.Tag=function(){},o.Tag.prototype.tagName="",o.Tag.prototype.attrs=null,o.Tag.prototype.children=Object.freeze?Object.freeze([]):[],o.Tag.prototype.htmljsType=o.Tag.htmljsType=["Tag"];var t=function(t){var e=function(){var t=this instanceof o.Tag?this:new e,i=0,r=arguments.length&&arguments[0];if(r&&"object"==typeof r)if(o.isConstructedObject(r)){if(r instanceof o.Attrs){var n=r.value;1===n.length?t.attrs=n[0]:n.length>1&&(t.attrs=n),i++}}else t.attrs=r,i++;return i<arguments.length&&(t.children=s.call(arguments,i)),t};return e.prototype=new o.Tag,e.prototype.constructor=e,e.prototype.tagName=t,e},e=o.Attrs=function(){var t=this instanceof e?this:new e;return t.value=s.call(arguments),t};o.getTag=function(e){var i=o.getSymbolName(e);if(i===e)throw new Error("Use the lowercase or camelCase form of '"+e+"' here");return o[i]||(o[i]=t(e)),o[i]},o.ensureTag=function(t){o.getTag(t)},o.isTagEnsured=function(t){return o.isKnownElement(t)},o.getSymbolName=function(t){return t.toUpperCase().replace(/-/g,"_")},o.knownElementNames="a abbr acronym address applet area article aside audio b base basefont bdi bdo big blockquote body br button canvas caption center cite code col colgroup command data datagrid datalist dd del details dfn dir div dl dt em embed eventsource fieldset figcaption figure font footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins isindex kbd keygen label legend li link main map mark menu meta meter nav noframes noscript object ol optgroup option output p param pre progress q rp rt ruby s samp script section select small source span strike strong style sub summary sup table tbody td textarea tfoot th thead time title tr track tt u ul var video wbr".split(" "),o.knownSVGElementNames="altGlyph altGlyphDef altGlyphItem animate animateColor animateMotion animateTransform circle clipPath color-profile cursor defs desc ellipse feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence filter font font-face font-face-format font-face-name font-face-src font-face-uri foreignObject g glyph glyphRef hkern image line linearGradient marker mask metadata missing-glyph path pattern polygon polyline radialGradient rect set stop style svg switch symbol text textPath title tref tspan use view vkern".split(" "),o.knownElementNames=o.knownElementNames.concat(o.knownSVGElementNames),o.voidElementNames="area base br col command embed hr img input keygen link meta param source track wbr".split(" ");var i={yes:!0},r=function(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=i;return e},n=r(o.voidElementNames),a=r(o.knownElementNames),l=r(o.knownSVGElementNames);o.isKnownElement=function(t){return a[t]===i},o.isKnownSVGElement=function(t){return l[t]===i},o.isVoidElement=function(t){return n[t]===i};for(var u=0;u<o.knownElementNames.length;u++)o.ensureTag(o.knownElementNames[u]);var f=o.CharRef=function(t){if(!(this instanceof f))return new f(t);if(!(t&&t.html&&t.str))throw new Error("HTML.CharRef must be constructed with ({html:..., str:...})");this.html=t.html,this.str=t.str};f.prototype.htmljsType=f.htmljsType=["CharRef"];var c=o.Comment=function(t){if(!(this instanceof c))return new c(t);if("string"!=typeof t)throw new Error("HTML.Comment must be constructed with a string");this.value=t,this.sanitizedValue=t.replace(/^-|--+|-$/g,"")};c.prototype.htmljsType=c.htmljsType=["Comment"];var h=o.Raw=function(t){if(!(this instanceof h))return new h(t);if("string"!=typeof t)throw new Error("HTML.Raw must be constructed with a string");this.value=t};h.prototype.htmljsType=h.htmljsType=["Raw"],o.isArray=function(t){return t instanceof Array},o.isConstructedObject=function(t){return t&&"object"==typeof t&&t.constructor!==Object&&"function"==typeof t.constructor&&t instanceof t.constructor},o.isNully=function(t){if(null==t)return!0;if(o.isArray(t)){for(var e=0;e<t.length;e++)if(!o.isNully(t[e]))return!1;return!0}return!1},o.isValidAttributeName=function(t){return/^[:_A-Za-z][:_A-Za-z0-9.\-]*/.test(t)},o.flattenAttributes=function(t){if(!t)return t;var e=o.isArray(t);if(e&&0===t.length)return null;for(var i={},r=0,n=e?t.length:1;r<n;r++){var a=e?t[r]:t;if("object"!=typeof a||o.isConstructedObject(a))throw new Error("Expected plain JS object as attrs, found: "+a);for(var s in a){if(!o.isValidAttributeName(s))throw new Error("Illegal HTML attribute name: "+s);var l=a[s];o.isNully(l)||(i[s]=l)}}return i},o.toHTML=function(t){return(new o.ToHTMLVisitor).visit(t)},o.TEXTMODE={STRING:1,RCDATA:2,ATTRIBUTE:3},o.toText=function(t,e){if(!e)throw new Error("textMode required for HTML.toText");if(e!==o.TEXTMODE.STRING&&e!==o.TEXTMODE.RCDATA&&e!==o.TEXTMODE.ATTRIBUTE)throw new Error("Unknown textMode: "+e);return new o.ToTextVisitor({textMode:e}).visit(t)}}.call(this),"undefined"==typeof Package&&(Package={}),function(t,e){for(var i in e)i in t||(t[i]=e[i])}(Package.htmljs={},{HTML:o})}();

!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.jquery.$,i=Package.jquery.jQuery,a=Package.tracker.Tracker,o=Package.tracker.Deps,s=Package.check.check,l=Package.check.Match,c=Package.underscore._,u=Package["observe-sequence"].ObserveSequence,d=Package["reactive-var"].ReactiveVar,p=Package["ordered-dict"].OrderedDict,h=Package.htmljs.HTML,f,m,w,_,v;(function(){(f={})._escape=function(){var e={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#x60;","&":"&amp;"},t=function(t){return e[t]};return function(e){return e.replace(/[&<>"'`]/g,t)}}(),f._warn=function(e){e="Warning: "+e,"undefined"!=typeof console&&console.warn&&console.warn(e)};var e=Function.prototype.bind;f._bind=e?function(t,n){if(2===arguments.length)return e.call(t,n);for(var r=new Array(arguments.length),i=0;i<r.length;i++)r[i]=arguments[i];return e.apply(t,r.slice(1))}:c.bind}).call(this),function(){var e={};f._DOMBackend=e;var t=void 0!==i?i:"undefined"!=typeof Package?Package.jquery&&Package.jquery.jQuery:null;if(!t)throw new Error("jQuery not found");e._$jq=t,e.parseHTML=function(e){return t.parseHTML(e)||[]},e.Events={delegateEvents:function(e,n,r,i){t(e).on(n,r,i)},undelegateEvents:function(e,n,r){t(e).off(n,"**",r)},bindEventCapturer:function(n,r,i,a){var o=t(n),s=function(e){(e=t.event.fix(e)).currentTarget=e.target,t(e.currentTarget).is(o.find(i))&&a.call(n,e)};a._meteorui_wrapper=s,r=e.Events.parseEventType(r),n.addEventListener(r,s,!0)},unbindEventCapturer:function(t,n,r){n=e.Events.parseEventType(n),t.removeEventListener(n,r._meteorui_wrapper,!0)},parseEventType:function(e){var t=e.indexOf(".");return t>=0?e.slice(0,t):e}};var n=function(){},r=function(e){this.next=this,this.prev=this,this.func=e};r.prototype.linkBefore=function(e){this.prev=e.prev,this.next=e,e.prev.next=this,e.prev=this},r.prototype.unlink=function(){this.prev.next=this.next,this.next.prev=this.prev},r.prototype.go=function(){var e=this.func;e&&e()},r.prototype.stop=r.prototype.unlink,e.Teardown={_JQUERY_EVENT_NAME:"blaze_teardown_watcher",_CB_PROP:"$blaze_teardown_callbacks",onElementTeardown:function(i,a){var o=new r(a),s=e.Teardown._CB_PROP;return i[s]||(i[s]=new r,t(i).on(e.Teardown._JQUERY_EVENT_NAME,n)),o.linkBefore(i[s]),o},tearDownElement:function(e){for(var n=[],r=e.getElementsByTagName("*"),i=0;i<r.length;i++)n.push(r[i]);n.push(e),t.cleanData(n)}},t.event.special[e.Teardown._JQUERY_EVENT_NAME]={setup:function(){},teardown:function(){var t=this,n=t[e.Teardown._CB_PROP];if(n){for(var r=n.next;r!==n;)r.go(),r=r.next;n.go(),t[e.Teardown._CB_PROP]=null}}},e.findBySelector=function(e,n){return t(e,n)}}.call(this),function(){var e=Object.freeze?Object.freeze([]):[];f._DOMRange=function(n){if(!(this instanceof t))return new t(n);var r=n||e;if(!r||"number"!=typeof r.length)throw new Error("Expected array");for(var i=0;i<r.length;i++)this._memberIn(r[i]);this.members=r,this.emptyRangePlaceholder=null,this.attached=!1,this.parentElement=null,this.parentRange=null,this.attachedCallbacks=e};var t=f._DOMRange;t._USE_COMMENT_PLACEHOLDERS=function(){var e=!1,t=document.createTextNode("");try{t.someProp=!0}catch(t){e=!0}return e}(),t._insert=function(e,n,r,i){var a=e;a instanceof t?a.attach(n,r,i):i?t._moveNodeWithHooks(a,n,r):t._insertNodeWithHooks(a,n,r)},t._remove=function(e){var n=e;n instanceof t?n.detach():t._removeNodeWithHooks(n)},t._removeNodeWithHooks=function(e){e.parentNode&&(1===e.nodeType&&e.parentNode._uihooks&&e.parentNode._uihooks.removeElement?e.parentNode._uihooks.removeElement(e):e.parentNode.removeChild(e))},t._insertNodeWithHooks=function(e,t,n){n=n||null,1===e.nodeType&&t._uihooks&&t._uihooks.insertElement?t._uihooks.insertElement(e,n):t.insertBefore(e,n)},t._moveNodeWithHooks=function(e,t,n){e.parentNode===t&&(n=n||null,1===e.nodeType&&t._uihooks&&t._uihooks.moveElement?t._uihooks.moveElement(e,n):t.insertBefore(e,n))},t.forElement=function(e){if(1!==e.nodeType)throw new Error("Expected element, found: "+e);for(var t=null;e&&!t;)(t=e.$blaze_range||null)||(e=e.parentNode);return t},t.prototype.attach=function(e,n,r,i){if((r||i)&&(this.parentElement!==e||!this.attached))throw new Error("Can only move or replace an attached DOMRange, and only under the same parent element");var a=this.members;if(a.length){this.emptyRangePlaceholder=null;for(var o=0;o<a.length;o++)t._insert(a[o],e,n,r)}else{var s=t._USE_COMMENT_PLACEHOLDERS?document.createComment(""):document.createTextNode("");this.emptyRangePlaceholder=s,e.insertBefore(s,n||null)}if(this.attached=!0,this.parentElement=e,!r&&!i)for(var o=0;o<this.attachedCallbacks.length;o++){var l=this.attachedCallbacks[o];l.attached&&l.attached(this,e)}},t.prototype.setMembers=function(e){var t=e;if(!t||"number"!=typeof t.length)throw new Error("Expected array");for(var n=this.members,r=0;r<n.length;r++)this._memberOut(n[r]);for(var r=0;r<t.length;r++)this._memberIn(t[r]);if(this.attached){if(t.length||n.length){var i=this.lastNode().nextSibling,a=this.parentElement;this.detach(!0),this.members=t,this.attach(a,i,!1,!0)}}else this.members=t},t.prototype.firstNode=function(){if(!this.attached)throw new Error("Must be attached");if(!this.members.length)return this.emptyRangePlaceholder;var e=this.members[0];return e instanceof t?e.firstNode():e},t.prototype.lastNode=function(){if(!this.attached)throw new Error("Must be attached");if(!this.members.length)return this.emptyRangePlaceholder;var e=this.members[this.members.length-1];return e instanceof t?e.lastNode():e},t.prototype.detach=function(e){if(!this.attached)throw new Error("Must be attached");var n=this.parentElement,r=this.members;if(r.length)for(var i=0;i<r.length;i++)t._remove(r[i]);else{var a=this.emptyRangePlaceholder;this.parentElement.removeChild(a),this.emptyRangePlaceholder=null}if(!e){this.attached=!1,this.parentElement=null;for(var i=0;i<this.attachedCallbacks.length;i++){var o=this.attachedCallbacks[i];o.detached&&o.detached(this,n)}}},t.prototype.addMember=function(e,n,r){var i=this.members;if(!(n>=0&&n<=i.length))throw new Error("Bad index in range.addMember: "+n);if(r||this._memberIn(e),this.attached)if(0===i.length)this.setMembers([e]);else{var a;if(n===i.length)a=this.lastNode().nextSibling;else{var o=i[n];a=o instanceof t?o.firstNode():o}i.splice(n,0,e),t._insert(e,this.parentElement,a,r)}else i.splice(n,0,e)},t.prototype.removeMember=function(n,r){var i=this.members;if(!(n>=0&&n<i.length))throw new Error("Bad index in range.removeMember: "+n);if(r)i.splice(n,1);else{var a=i[n];this._memberOut(a),1===i.length?this.setMembers(e):(i.splice(n,1),this.attached&&t._remove(a))}},t.prototype.moveMember=function(e,t){var n=this.members[e];this.removeMember(e,!0),this.addMember(n,t,!0)},t.prototype.getMember=function(e){var t=this.members;if(!(e>=0&&e<t.length))throw new Error("Bad index in range.getMember: "+e);return this.members[e]},t.prototype._memberIn=function(e){e instanceof t?e.parentRange=this:1===e.nodeType&&(e.$blaze_range=this)},t._destroy=function(e,n){e instanceof t?e.view&&f._destroyView(e.view,n):n||1!==e.nodeType||e.$blaze_range&&(f._destroyNode(e),e.$blaze_range=null)},t.prototype._memberOut=t._destroy,t.prototype.destroyMembers=function(e){for(var t=this.members,n=0;n<t.length;n++)this._memberOut(t[n],e)},t.prototype.destroy=function(e){t._destroy(this,e)},t.prototype.containsElement=function(e){if(!this.attached)throw new Error("Must be attached");if(!f._elementContains(this.parentElement,e))return!1;for(;e.parentNode!==this.parentElement;)e=e.parentNode;for(var t=e.$blaze_range;t&&t!==this;)t=t.parentRange;return t===this},t.prototype.containsRange=function(e){if(!this.attached)throw new Error("Must be attached");if(!e.attached)return!1;if(e.parentElement!==this.parentElement)return this.containsElement(e.parentElement);if(e===this)return!1;for(;e&&e!==this;)e=e.parentRange;return e===this},t.prototype.onAttached=function(e){this.onAttachedDetached({attached:e})},t.prototype.onAttachedDetached=function(t){this.attachedCallbacks===e&&(this.attachedCallbacks=[]),this.attachedCallbacks.push(t)},t.prototype.$=function(e){var t=this,n=this.parentElement;if(!n)throw new Error("Can't select in removed DomRange");if(11===n.nodeType)throw new Error("Can't use $ on an offscreen range");var r=f._DOMBackend.findBySelector(e,n),i=function(e){return"number"==typeof e&&(e=this),t.containsElement(e)};if(r.filter)r=r.filter(i);else{for(var a=[],o=0;o<r.length;o++){var s=r[o];i(s)&&a.push(s)}r=a}return r},f._elementContains=function(e,t){return 1===e.nodeType&&(e!==t&&(e.compareDocumentPosition?16&e.compareDocumentPosition(t):!(!(t=t.parentNode)||1!==t.nodeType)&&(e===t||e.contains(t))))}}.call(this),function(){var e=f._EventSupport={},t=f._DOMBackend,n=e.eventsToDelegate={blur:1,change:1,click:1,focus:1,focusin:1,focusout:1,reset:1,submit:1},r=e.EVENT_MODE={TBD:0,BUBBLING:1,CAPTURING:2},i=1,a=function(e,a,o,s,l){this.elem=e,this.type=a,this.selector=o,this.handler=s,this.recipient=l,this.id=i++,this.mode=r.TBD,this.delegatedHandler=function(e){return function(t){if(e.selector||t.currentTarget===t.target)return e.handler.apply(e.recipient,arguments)}}(this),e.addEventListener&&!c.has(n,t.Events.parseEventType(a))?this.capturingHandler=function(e){return function(n){if(e.mode===r.TBD){if(n.bubbles)return e.mode=r.BUBBLING,void t.Events.unbindEventCapturer(e.elem,e.type,e.capturingHandler);e.mode=r.CAPTURING,t.Events.undelegateEvents(e.elem,e.type,e.delegatedHandler)}e.delegatedHandler(n)}}(this):this.mode=r.BUBBLING};e.HandlerRec=a,a.prototype.bind=function(){this.mode!==r.BUBBLING&&t.Events.bindEventCapturer(this.elem,this.type,this.selector||"*",this.capturingHandler),this.mode!==r.CAPTURING&&t.Events.delegateEvents(this.elem,this.type,this.selector||"*",this.delegatedHandler)},a.prototype.unbind=function(){this.mode!==r.BUBBLING&&t.Events.unbindEventCapturer(this.elem,this.type,this.capturingHandler),this.mode!==r.CAPTURING&&t.Events.undelegateEvents(this.elem,this.type,this.delegatedHandler)},e.listen=function(e,t,n,r,i,o){try{e=e}finally{}var s=[];t.replace(/[^ /]+/g,function(e){s.push(e)});for(var l=[],c=0,u=s.length;c<u;c++){var d=s[c],p=e.$blaze_events;p||(p=e.$blaze_events={});var h=p[d];h||((h=p[d]={}).handlers=[]);var f=h.handlers,m=new a(e,d,n,r,i);if(l.push(m),m.bind(),f.push(m),o)for(var w=o(i);w;w=o(w))for(var _=0,v=f.length;_<v;_++){var g=f[_];g.recipient===w&&(g.unbind(),g.bind(),f.splice(_,1),f.push(g),_--,v--)}}return{stop:function(){var t=e.$blaze_events;if(t){for(var n=0;n<l.length;n++){var r=l[n],i=t[r.type];if(i)for(var a=i.handlers,o=a.length-1;o>=0;o--)a[o]===r&&(r.unbind(),a.splice(o,1))}l.length=0}}}}}.call(this),function(){var t=!1;f._allowJavascriptUrls=function(){t=!0},f._javascriptUrlsAllowed=function(){return t},m=function(e,t){this.name=e,this.value=t},f._AttributeHandler=m,m.prototype.update=function(e,t,n){null===n?null!==t&&e.removeAttribute(this.name):e.setAttribute(this.name,n)},m.extend=function(e){var t=this,n=function e(){m.apply(this,arguments)};return n.prototype=new t,n.extend=t.extend,e&&c.extend(n.prototype,e),n},f._DiffingAttributeHandler=m.extend({update:function(e,t,n){if(!(this.getCurrentValue&&this.setValue&&this.parseValue&&this.joinValues))throw new Error("Missing methods in subclass of 'DiffingAttributeHandler'");var r=t?this.parseValue(t):new p,i=n?this.parseValue(n):new p,a=this.getCurrentValue(e);(a?this.parseValue(a):new p).forEach(function(e,t,n){i.has(t)||r.has(t)||i.append(t,e)});var o=[];i.forEach(function(e,t,n){o.push(e)}),this.setValue(e,this.joinValues(o))}});var n=f._DiffingAttributeHandler.extend({getCurrentValue:function(e){return e.className},setValue:function(e,t){e.className=t},parseValue:function(e){var t=new p;return c.each(e.split(" "),function(e){e&&(t.has(e)||t.append(e,e))}),t},joinValues:function(e){return e.join(" ")}}),i=n.extend({getCurrentValue:function(e){return e.className.baseVal},setValue:function(e,t){e.setAttribute("class",t)}}),a=f._DiffingAttributeHandler.extend({getCurrentValue:function(e){return e.getAttribute("style")},setValue:function(e,t){""===t?e.removeAttribute("style"):e.setAttribute("style",t)},parseValue:function(e){for(var t=new p,n=/(\*?[-#\/\*\\\w]+(?:\[[0-9a-z_-]+\])?)\s*:\s*(?:\'(?:\\\'|.)*?\'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+[;\s]*/g,i=n.exec(e);i;)t.has(i[1])&&t.remove(i[1]),t.append(i[1],i[0].trim?i[0].trim():r.trim(i[0])),i=n.exec(e);return t},joinValues:function(e){return e.join(" ")}}),o=m.extend({update:function(e,t,n){var r=this.name;null==n?null!=t&&(e[r]=!1):e[r]=!0}}),s=m.extend({update:function(e,t,n){var r=this.name;n!==e[r]&&(e[r]=n)}}),l=m.extend({update:function(e,t,n){var r="http://www.w3.org/1999/xlink";null===n?null!==t&&e.removeAttributeNS(r,this.name):e.setAttributeNS(r,this.name,this.value)}}),u=function(e){return"ownerSVGElement"in e},d=function(e,t){var n={FORM:["action"],BODY:["background"],BLOCKQUOTE:["cite"],Q:["cite"],DEL:["cite"],INS:["cite"],OBJECT:["classid","codebase","data","usemap"],APPLET:["codebase"],A:["href"],AREA:["href"],LINK:["href"],BASE:["href"],IMG:["longdesc","src","usemap"],FRAME:["longdesc","src"],IFRAME:["longdesc","src"],HEAD:["profile"],SCRIPT:["src"],INPUT:["src","usemap","formaction"],BUTTON:["formaction"],BASE:["href"],MENUITEM:["icon"],HTML:["manifest"],VIDEO:["poster"]};if("itemid"===t)return!0;var r=n[e]||[];return c.contains(r,t)};if(e.isClient)var h=document.createElement("A");var _=function(t){if(e.isClient)return h.href=t,(h.protocol||"").toLowerCase();throw new Error("getUrlProtocol not implemented on the server")},v=m.prototype.update,g=m.extend({update:function(e,t,n){var r=this,i=arguments;if(f._javascriptUrlsAllowed())v.apply(r,i);else{var a="javascript:"===_(n),o="vbscript:"===_(n);a||o?(f._warn("URLs that use the 'javascript:' or 'vbscript:' protocol are not allowed in URL attribute values. Call Blaze._allowJavascriptUrls() to enable them."),v.apply(r,[e,t,null])):v.apply(r,i)}}});f._makeAttributeHandler=function(e,t,r){return"class"===t?u(e)?new i(t,r):new n(t,r):"style"===t?new a(t,r):"OPTION"===e.tagName&&"selected"===t||"INPUT"===e.tagName&&"checked"===t||"VIDEO"===e.tagName&&"muted"===t?new o(t,r):"TEXTAREA"!==e.tagName&&"INPUT"!==e.tagName||"value"!==t?"xlink:"===t.substring(0,6)?new l(t.substring(6),r):d(e.tagName,t)?new g(t,r):new m(t,r):new s(t,r)},(w=function(e){this.elem=e,this.handlers={}}).prototype.update=function(e){var t=this.elem,n=this.handlers;for(var r in n)if(!c.has(e,r)){var i=(a=n[r]).value;a.value=null,a.update(t,i,null),delete n[r]}for(var r in e){var a=null,i=null,o=e[r];c.has(n,r)?i=(a=n[r]).value:null!==o&&(a=f._makeAttributeHandler(t,r,o),n[r]=a),i!==o&&(a.value=o,a.update(t,i,o),null===o&&delete n[r])}}}.call(this),function(){f._materializeDOM=function(t,n,r,i){var a=i||[];if(e(t,n,r,a),!i)for(;a.length;)a.pop()();return n};var e=function(e,n,r,i){if(null!=e){switch(typeof e){case"string":case"boolean":case"number":return void n.push(document.createTextNode(String(e)));case"object":if(e.htmljsType)switch(e.htmljsType){case h.Tag.htmljsType:return void n.push(t(e,r,i));case h.CharRef.htmljsType:return void n.push(document.createTextNode(e.str));case h.Comment.htmljsType:return void n.push(document.createComment(e.sanitizedValue));case h.Raw.htmljsType:for(var a=f._DOMBackend.parseHTML(e.value),o=0;o<a.length;o++)n.push(a[o]);return}else{if(h.isArray(e)){for(var o=e.length-1;o>=0;o--)i.push(f._bind(f._materializeDOM,null,e[o],n,r,i));return}if(e instanceof f.Template&&(e=e.constructView()),e instanceof f.View)return void f._materializeView(e,r,i,n)}}throw new Error("Unexpected object in htmljs: "+e)}},t=function(e,t,r){var i=e.tagName,o;o=(h.isKnownSVGElement(i)||n(e))&&document.createElementNS?document.createElementNS("http://www.w3.org/2000/svg",i):document.createElement(i);var s=e.attrs,l=e.children;if("textarea"===i&&e.children.length&&!(s&&"value"in s)){if("function"==typeof s||h.isArray(s))throw new Error("Can't have reactive children of TEXTAREA node; use the 'value' attribute instead.");(s=c.extend({},s||null)).value=f._expand(l,t),l=[]}if(s){var u=new w(o),d=function(){var e=f._expandAttributes(s,t),n=h.flattenAttributes(e),r={};for(var i in n)null==n[i]||!1===n[i]?r[i]=null:r[i]=f._toText(n[i],t,h.TEXTMODE.STRING);u.update(r)},p;p=t?t.autorun(d,void 0,"updater"):a.nonreactive(function(){return a.autorun(function(){a._withCurrentView(t,d)})}),f._DOMBackend.Teardown.onElementTeardown(o,function e(){p.stop()})}if(l.length){var m=[];r.push(function(){for(var e=0;e<m.length;e++){var t=m[e];t instanceof f._DOMRange?t.attach(o):o.appendChild(t)}}),r.push(f._bind(f._materializeDOM,null,l,m,t,r))}return o},n=function(e){return"a"===e.tagName&&e.attrs&&void 0!==e.attrs["xlink:href"]}}.call(this),function(){var t;f._throwNextException=!1,f._reportException=function(n,r){if(f._throwNextException)throw f._throwNextException=!1,n;t||(t=function(){return void 0!==e?e._debug:"undefined"!=typeof console&&console.log?console.log:function(){}}),t()(r||"Exception caught in template:",n.stack||n.message||n)},f._wrapCatchingExceptions=function(e,t){return"function"!=typeof e?e:function(){try{return e.apply(this,arguments)}catch(e){f._reportException(e,"Exception in "+t+":")}}}}.call(this),function(){f.View=function(e,t){if(!(this instanceof f.View))return new f.View(e,t);"function"==typeof e&&(t=e,e=""),this.name=e,this._render=t,this._callbacks={created:null,rendered:null,destroyed:null},this.isCreated=!1,this._isCreatedForExpansion=!1,this.isRendered=!1,this._isAttached=!1,this.isDestroyed=!1,this._isInRender=!1,this.parentView=null,this._domrange=null,this._hasGeneratedParent=!1,this._scopeBindings={},this.renderCount=0},f.View.prototype._render=function(){return null},f.View.prototype.onViewCreated=function(e){this._callbacks.created=this._callbacks.created||[],this._callbacks.created.push(e)},f.View.prototype._onViewRendered=function(e){this._callbacks.rendered=this._callbacks.rendered||[],this._callbacks.rendered.push(e)},f.View.prototype.onViewReady=function(e){var t=this,n=function(){a.afterFlush(function(){t.isDestroyed||f._withCurrentView(t,function(){e.call(t)})})};t._onViewRendered(function e(){t.isDestroyed||(t._domrange.attached?n():t._domrange.onAttached(n))})},f.View.prototype.onViewDestroyed=function(e){this._callbacks.destroyed=this._callbacks.destroyed||[],this._callbacks.destroyed.push(e)},f.View.prototype.removeViewDestroyedListener=function(e){var t=this._callbacks.destroyed;if(t){var n=c.lastIndexOf(t,e);-1!==n&&(t[n]=null)}},f.View.prototype.autorun=function(e,t,n){var r=this;if(!r.isCreated)throw new Error("View#autorun must be called from the created callback at the earliest");if(this._isInRender)throw new Error("Can't call View#autorun from inside render(); try calling it from the created or rendered callback");var i=f.Template._currentTemplateInstanceFunc,o=function n(a){return f._withCurrentView(t||r,function(){return f.Template._withTemplateInstanceFunc(i,function(){return e.call(r,a)})})};o.displayName=(r.name||"anonymous")+":"+(n||"anonymous");var s=a.autorun(o),l=function(){s.stop()};return r.onViewDestroyed(l),s.onStop(function(){r.removeViewDestroyedListener(l)}),s},f.View.prototype._errorIfShouldntCallSubscribe=function(){var e=this;if(!e.isCreated)throw new Error("View#subscribe must be called from the created callback at the earliest");if(e._isInRender)throw new Error("Can't call View#subscribe from inside render(); try calling it from the created or rendered callback");if(e.isDestroyed)throw new Error("Can't call View#subscribe from inside the destroyed callback, try calling it inside created or rendered.")},f.View.prototype.subscribe=function(t,n){var r=this;n=n||{},r._errorIfShouldntCallSubscribe();var i;return i=n.connection?n.connection.subscribe.apply(n.connection,t):e.subscribe.apply(e,t),r.onViewDestroyed(function(){i.stop()}),i},f.View.prototype.firstNode=function(){if(!this._isAttached)throw new Error("View must be attached before accessing its DOM");return this._domrange.firstNode()},f.View.prototype.lastNode=function(){if(!this._isAttached)throw new Error("View must be attached before accessing its DOM");return this._domrange.lastNode()},f._fireCallbacks=function(e,t){f._withCurrentView(e,function(){a.nonreactive(function n(){for(var r=e._callbacks[t],i=0,a=r&&r.length;i<a;i++)r[i]&&r[i].call(e)})})},f._createView=function(e,t,n){if(e.isCreated)throw new Error("Can't render the same View twice");e.parentView=t||null,e.isCreated=!0,n&&(e._isCreatedForExpansion=!0),f._fireCallbacks(e,"created")};var t=function(e,t){var n=new f._DOMRange(t);e._domrange=n,n.view=e,e.isRendered=!0,f._fireCallbacks(e,"rendered");var r=null;return n.onAttached(function t(n,i){e._isAttached=!0,r=f._DOMBackend.Teardown.onElementTeardown(i,function t(){f._destroyView(e,!0)})}),e.onViewDestroyed(function(){r&&r.stop(),r=null}),n};f._materializeView=function(e,n,r,i){f._createView(e,n);var o,s;return a.nonreactive(function(){e.autorun(function t(n){e.renderCount++,e._isInRender=!0;var r=e._render();e._isInRender=!1,n.firstRun||f._isContentEqual(s,r)||a.nonreactive(function t(){var n=f._materializeDOM(r,[],e);o.setMembers(n),f._fireCallbacks(e,"rendered")}),s=r,a.onInvalidate(function(){o&&o.destroyMembers()})},void 0,"materialize");var n;r?(n=[],r.push(function(){o=t(e,n),n=null,i.push(o)}),r.push(f._bind(f._materializeDOM,null,s,n,e,r))):(n=f._materializeDOM(s,[],e),o=t(e,n),n=null)}),r?null:o},f._expandView=function(e,t){f._createView(e,t,!0),e._isInRender=!0;var n=f._withCurrentView(e,function(){return e._render()});e._isInRender=!1;var r=f._expand(n,e);return a.active?a.onInvalidate(function(){f._destroyView(e)}):f._destroyView(e),r},f._HTMLJSExpander=h.TransformingVisitor.extend(),f._HTMLJSExpander.def({visitObject:function(e){return e instanceof f.Template&&(e=e.constructView()),e instanceof f.View?f._expandView(e,this.parentView):h.TransformingVisitor.prototype.visitObject.call(this,e)},visitAttributes:function(e){return"function"==typeof e&&(e=f._withCurrentView(this.parentView,e)),h.TransformingVisitor.prototype.visitAttributes.call(this,e)},visitAttribute:function(e,t,n){return"function"==typeof t&&(t=f._withCurrentView(this.parentView,t)),h.TransformingVisitor.prototype.visitAttribute.call(this,e,t,n)}});var n=function(){var e=f.currentView;return e&&e._isInRender?e:null};f._expand=function(e,t){return t=t||n(),new f._HTMLJSExpander({parentView:t}).visit(e)},f._expandAttributes=function(e,t){return t=t||n(),new f._HTMLJSExpander({parentView:t}).visitAttributes(e)},f._destroyView=function(e,t){e.isDestroyed||(e.isDestroyed=!0,f._fireCallbacks(e,"destroyed"),e._domrange&&e._domrange.destroyMembers(t))},f._destroyNode=function(e){1===e.nodeType&&f._DOMBackend.Teardown.tearDownElement(e)},f._isContentEqual=function(e,t){return e instanceof h.Raw?t instanceof h.Raw&&e.value===t.value:null==e?null==t:e===t&&("number"==typeof e||"boolean"==typeof e||"string"==typeof e)},f.currentView=null,f._withCurrentView=function(e,t){var n=f.currentView;try{return f.currentView=e,t()}finally{f.currentView=n}};var r=function(e){if(null===e)throw new Error("Can't render null");if(void 0===e)throw new Error("Can't render undefined");if(!(e instanceof f.View||e instanceof f.Template||"function"==typeof e))try{(new h.Visitor).visit(e)}catch(e){throw new Error("Expected Template or View")}},i=function(e){if(r(e),e instanceof f.Template)return e.constructView();if(e instanceof f.View)return e;var t=e;return"function"!=typeof t&&(t=function(){return e}),f.View("render",t)},o=function(e){return r(e),"function"!=typeof e?function(){return e}:e};f.render=function(e,t,r,a){if(t||f._warn("Blaze.render without a parent element is deprecated. You must specify where to insert the rendered content."),r instanceof f.View&&(a=r,r=null),t&&"number"!=typeof t.nodeType)throw new Error("'parentElement' must be a DOM node");if(r&&"number"!=typeof r.nodeType)throw new Error("'nextNode' must be a DOM node");a=a||n();var o=i(e);return f._materializeView(o,a),t&&o._domrange.attach(t,r),o},f.insert=function(e,t,n){if(f._warn("Blaze.insert has been deprecated. Specify where to insert the rendered content in the call to Blaze.render."),!(e&&e._domrange instanceof f._DOMRange))throw new Error("Expected template rendered with Blaze.render");e._domrange.attach(t,n)},f.renderWithData=function(e,t,n,r,i){return f.render(f._TemplateWith(t,o(e)),n,r,i)},f.remove=function(e){if(!(e&&e._domrange instanceof f._DOMRange))throw new Error("Expected template rendered with Blaze.render");for(;e;){if(!e.isDestroyed){var t=e._domrange;t.attached&&!t.parentRange&&t.detach(),t.destroy()}e=e._hasGeneratedParent&&e.parentView}},f.toHTML=function(e,t){return t=t||n(),h.toHTML(f._expandView(i(e),t))},f.toHTMLWithData=function(e,t,r){return r=r||n(),h.toHTML(f._expandView(f._TemplateWith(t,o(e)),r))},f._toText=function(e,t,r){if("function"==typeof e)throw new Error("Blaze._toText doesn't take a function, just HTMLjs");if(null==t||t instanceof f.View||(r=t,t=null),t=t||n(),!r)throw new Error("textMode required");if(r!==h.TEXTMODE.STRING&&r!==h.TEXTMODE.RCDATA&&r!==h.TEXTMODE.ATTRIBUTE)throw new Error("Unknown textMode: "+r);return h.toText(f._expand(e,t),r)},f.getData=function(e){var t;if(e)if(e instanceof f.View){var n=e;t="with"===n.name?n:f.getView(n,"with")}else{if("number"!=typeof e.nodeType)throw new Error("Expected DOM element or View");if(1!==e.nodeType)throw new Error("Expected DOM element");t=f.getView(e,"with")}else t=f.getView("with");return t?t.dataVar.get():null},f.getElementData=function(e){if(f._warn("Blaze.getElementData has been deprecated. Use Blaze.getData(element) instead."),1!==e.nodeType)throw new Error("Expected DOM element");return f.getData(e)},f.getView=function(e,t){var n=t;if("string"==typeof e&&(n=e,e=null),e){if(e instanceof f.View)return f._getParentView(e,n);if("number"==typeof e.nodeType)return f._getElementView(e,n);throw new Error("Expected DOM element or View")}return f._getCurrentView(n)},f._getCurrentView=function(e){var t=f.currentView;if(!t)throw new Error("There is no current view");if(e){for(;t&&t.name!==e;)t=t.parentView;return t||null}return t},f._getParentView=function(e,t){var n=e.parentView;if(t)for(;n&&n.name!==t;)n=n.parentView;return n||null},f._getElementView=function(e,t){for(var n=f._DOMRange.forElement(e),r=null;n&&!r;)(r=n.view||null)||(n=n.parentRange?n.parentRange:f._DOMRange.forElement(n.parentElement));if(t){for(;r&&r.name!==t;)r=r.parentView;return r||null}return r},f._addEventMap=function(e,t,n){n=n||null;var r=[];if(!e._domrange)throw new Error("View must have a DOMRange");e._domrange.onAttached(function i(a,o){c.each(t,function(t,i){var s=i.split(/,\s+/);c.each(s,function(i){var s=i.split(/\s+/);if(0!==s.length){var l=s.shift(),c=s.join(" ");r.push(f._EventSupport.listen(o,l,c,function(r){if(!a.containsElement(r.currentTarget))return null;var i=n||this,o=arguments;return f._withCurrentView(e,function(){return t.apply(i,o)})},a,function(e){return e.parentRange}))}})})}),e.onViewDestroyed(function(){c.each(r,function(e){e.stop()}),r.length=0})}}.call(this),function(){f._calculateCondition=function(e){return e instanceof Array&&0===e.length&&(e=!1),!!e},f.With=function(e,t){var n=f.View("with",t);return n.dataVar=new d,n.onViewCreated(function(){"function"==typeof e?n.autorun(function(){n.dataVar.set(e())},n.parentView,"setData"):n.dataVar.set(e)}),n},f._attachBindingsToView=function(e,t){t.onViewCreated(function(){c.each(e,function(e,n){t._scopeBindings[n]=new d,"function"==typeof e?t.autorun(function(){t._scopeBindings[n].set(e())},t.parentView):t._scopeBindings[n].set(e)})})},f.Let=function(e,t){var n=f.View("let",t);return f._attachBindingsToView(e,n),n},f.If=function(e,t,n,r){var i=new d,a=f.View(r?"unless":"if",function(){return i.get()?t():n?n():null});return a.__conditionVar=i,a.onViewCreated(function(){this.autorun(function(){var t=f._calculateCondition(e());i.set(r?!t:t)},this.parentView,"condition")}),a},f.Unless=function(e,t,n){return f.If(e,t,n,!0)},f.Each=function(e,t,n){var r=f.View("each",function(){var e=this.initialSubviews;return this.initialSubviews=null,this._isCreatedForExpansion&&(this.expandedValueDep=new a.Dependency,this.expandedValueDep.depend()),e});r.initialSubviews=[],r.numItems=0,r.inElseMode=!1,r.stopHandle=null,r.contentFunc=t,r.elseFunc=n,r.argVar=new d,r.variableName=null;var i=function(e,t){void 0===t&&(t=r.numItems-1);for(var n=e;n<=t;n++)r._domrange.members[n].view._scopeBindings["@index"].set(n)};return r.onViewCreated(function(){r.autorun(function(){var t=e();c.isObject(t)&&c.has(t,"_sequence")&&(r.variableName=t._variable||null,t=t._sequence),r.argVar.set(t)},r.parentView,"collection"),r.stopHandle=u.observe(function(){return r.argVar.get()},{addedAt:function(e,t,n){a.nonreactive(function(){var e;e=r.variableName?f.View("item",r.contentFunc):f.With(t,r.contentFunc),r.numItems++;var a={};if(a["@index"]=n,r.variableName&&(a[r.variableName]=t),f._attachBindingsToView(a,e),r.expandedValueDep)r.expandedValueDep.changed();else if(r._domrange){r.inElseMode&&(r._domrange.removeMember(0),r.inElseMode=!1);var o=f._materializeView(e,r);r._domrange.addMember(o,n),i(n)}else r.initialSubviews.splice(n,0,e)})},removedAt:function(e,t,n){a.nonreactive(function(){r.numItems--,r.expandedValueDep?r.expandedValueDep.changed():r._domrange?(r._domrange.removeMember(n),i(n),r.elseFunc&&0===r.numItems&&(r.inElseMode=!0,r._domrange.addMember(f._materializeView(f.View("each_else",r.elseFunc),r),0))):r.initialSubviews.splice(n,1)})},changedAt:function(e,t,n,i){a.nonreactive(function(){if(r.expandedValueDep)r.expandedValueDep.changed();else{var e;e=r._domrange?r._domrange.getMember(i).view:r.initialSubviews[i],r.variableName?e._scopeBindings[r.variableName].set(t):e.dataVar.set(t)}})},movedTo:function(e,t,n,o){a.nonreactive(function(){if(r.expandedValueDep)r.expandedValueDep.changed();else if(r._domrange)r._domrange.moveMember(n,o),i(Math.min(n,o),Math.max(n,o));else{var e=r.initialSubviews,t=e[n];e.splice(n,1),e.splice(o,0,t)}})}}),r.elseFunc&&0===r.numItems&&(r.inElseMode=!0,r.initialSubviews[0]=f.View("each_else",r.elseFunc))}),r.onViewDestroyed(function(){r.stopHandle&&r.stopHandle.stop()}),r},f._TemplateWith=function(e,t){var n,r=e;"function"!=typeof e&&(r=function(){return e});var i=function(){var e=null;return n.parentView&&"InOuterTemplateScope"===n.parentView.name&&(e=n.parentView.originalParentView),e?f._withCurrentView(e,r):r()},a=function(){var e=t.call(this);return e instanceof f.Template&&(e=e.constructView()),e instanceof f.View&&(e._hasGeneratedParent=!0),e};return n=f.With(i,a),n.__isTemplateWith=!0,n},f._InOuterTemplateScope=function(e,t){var n=f.View("InOuterTemplateScope",t),r=e.parentView;return r.__isTemplateWith&&(r=r.parentView),n.onViewCreated(function(){this.originalParentView=this.parentView,this.parentView=r,this.__childDoesntStartNewLexicalScope=!0}),n},f.InOuterTemplateScope=f._InOuterTemplateScope}.call(this),function(){f._globalHelpers={},f.registerHelper=function(e,t){f._globalHelpers[e]=t},f.deregisterHelper=function(e){delete f._globalHelpers[e]};var e=function(e,t){return"function"!=typeof e?e:f._bind(e,t)},t=function(e){return"function"==typeof e?function(){var t=f.getData();return null==t&&(t={}),e.apply(t,arguments)}:e};f._OLDSTYLE_HELPER={},f._getTemplateHelper=function(e,r,i){var a=!1;if(e.__helpers.has(r)){var o=e.__helpers.get(r);if(o!==f._OLDSTYLE_HELPER)return null!=o?n(t(o),i):null;a=!0}return r in e&&(a||(e.__helpers.set(r,f._OLDSTYLE_HELPER),e._NOWARN_OLDSTYLE_HELPERS||f._warn("Assigning helper with `"+e.viewName+"."+r+" = ...` is deprecated. Use `"+e.viewName+".helpers(...)` instead.")),null!=e[r])?n(t(e[r]),i):null};var n=function(e,t){return"function"!=typeof e?e:function(){var n=this,r=arguments;return f.Template._withTemplateInstanceFunc(t,function(){return f._wrapCatchingExceptions(e,"template helper").apply(n,r)})}};f._lexicalBindingLookup=function(e,t){var n=e,r=[];do{if(c.has(n._scopeBindings,t)){var i=n._scopeBindings[t];return function(){return i.get()}}}while((!n.__startsNewLexicalScope||n.parentView&&n.parentView.__childDoesntStartNewLexicalScope)&&(n=n.parentView));return null},f._getTemplate=function(e,t){return e in f.Template&&f.Template[e]instanceof f.Template?f.Template[e]:null},f._getGlobalHelper=function(e,r){return null!=f._globalHelpers[e]?n(t(f._globalHelpers[e]),r):null},f.View.prototype.lookup=function(e,t){var n=this.template,r=t&&t.template,i,a,o,s;if(this.templateInstance&&(o=f._bind(this.templateInstance,this)),/^\./.test(e)){if(!/^(\.)+$/.test(e))throw new Error("id starting with dot must be a series of dots");return f._parentData(e.length-1,!0)}return n&&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(){var t=arguments.length>0,n=f.getData(),i=n&&n[e];if(!i){if(r)throw new Error("No such template: "+e);if(t)throw new Error("No such function: "+e);if("@"===e.charAt(0)&&(null===i||void 0===i))throw new Error("Unsupported directive: "+e)}if(!n)return null;if("function"!=typeof i){if(t)throw new Error("Can't call non-function: "+i);return i}return i.apply(n,arguments)}},f._parentData=function(e,t){null==e&&(e=1);for(var n=f.getView("with"),r=0;r<e&&n;r++)n=f.getView(n,"with");return n?t?function(){return n.dataVar.get()}:n.dataVar.get():null},f.View.prototype.lookupTemplate=function(e){return this.lookup(e,{template:!0})}}.call(this),function(){f.Template=function(e,n){if(!(this instanceof f.Template))return new f.Template(e,n);if("function"==typeof e&&(n=e,e=""),"string"!=typeof e)throw new Error("viewName must be a String (or omitted)");if("function"!=typeof n)throw new Error("renderFunction must be a function");this.viewName=e,this.renderFunction=n,this.__helpers=new t,this.__eventMaps=[],this._callbacks={created:[],rendered:[],destroyed:[]}};var e=f.Template,t=function(){};t.prototype.get=function(e){return this[" "+e]},t.prototype.set=function(e,t){this[" "+e]=t},t.prototype.has=function(e){return" "+e in this},f.isTemplate=function(e){return e instanceof f.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){var t=this,n=t[e]?[t[e]]:[];return n=n.concat(t._callbacks[e])};var n=function(t,n){e._withTemplateInstanceFunc(function(){return n},function(){for(var e=0,r=t.length;e<r;e++)t[e].call(n)})};e.prototype.constructView=function(t,r){var i=this,a=f.View(i.viewName,i.renderFunction);a.template=i,a.templateContentBlock=t?new e("(contentBlock)",t):null,a.templateElseBlock=r?new e("(elseBlock)",r):null,(i.__eventMaps||"object"==typeof i.events)&&a._onViewRendered(function(){1===a.renderCount&&(i.__eventMaps.length||"object"!=typeof i.events||e.prototype.events.call(i,i.events),c.each(i.__eventMaps,function(e){f._addEventMap(a,e,a)}))}),a._templateInstance=new f.TemplateInstance(a),a.templateInstance=function(){var e=a._templateInstance;return e.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};var o=i._getCallbacks("created");a.onViewCreated(function(){n(o,a.templateInstance())});var s=i._getCallbacks("rendered");a.onViewReady(function(){n(s,a.templateInstance())});var l=i._getCallbacks("destroyed");return a.onViewDestroyed(function(){n(l,a.templateInstance())}),a},f.TemplateInstance=function(e){if(!(this instanceof f.TemplateInstance))return new f.TemplateInstance(e);if(!(e instanceof f.View))throw new Error("View required");e._templateInstance=this,this.view=e,this.data=null,this.firstNode=null,this.lastNode=null,this._allSubsReadyDep=new a.Dependency,this._allSubsReady=!1,this._subscriptionHandles={}},f.TemplateInstance.prototype.$=function(e){var t=this.view;if(!t._domrange)throw new Error("Can't use $ on template instance with no DOM");return t._domrange.$(e)},f.TemplateInstance.prototype.findAll=function(e){return Array.prototype.slice.call(this.$(e))},f.TemplateInstance.prototype.find=function(e){return this.$(e)[0]||null},f.TemplateInstance.prototype.autorun=function(e){return this.view.autorun(e)},f.TemplateInstance.prototype.subscribe=function(){var e=this,t=e._subscriptionHandles,n=c.toArray(arguments),r={};if(n.length){var i=c.last(n),a={onReady:l.Optional(Function),onError:l.Optional(Function),onStop:l.Optional(Function),connection:l.Optional(l.Any)};c.isFunction(i)?r.onReady=n.pop():i&&!c.isEmpty(i)&&l.test(i,a)&&(r=n.pop())}var o,s=r.onStop;r.onStop=function(n){delete t[o.subscriptionId],e._allSubsReady||e._allSubsReadyDep.changed(),s&&s(n)};var u=r.connection,d=c.pick(r,["onReady","onError","onStop"]);return n.push(d),o=e.view.subscribe.call(e.view,n,{connection:u}),c.has(t,o.subscriptionId)||(t[o.subscriptionId]=o,e._allSubsReady&&e._allSubsReadyDep.changed()),o},f.TemplateInstance.prototype.subscriptionsReady=function(){return this._allSubsReadyDep.depend(),this._allSubsReady=c.all(this._subscriptionHandles,function(e){return e.ready()}),this._allSubsReady},e.prototype.helpers=function(e){if(!c.isObject(e))throw new Error("Helpers dictionary has to be an object");for(var t in e)this.__helpers.set(t,e[t])},e._currentTemplateInstanceFunc=null,e._withTemplateInstanceFunc=function(t,n){if("function"!=typeof n)throw new Error("Expected function, got: "+n);var r=e._currentTemplateInstanceFunc;try{return e._currentTemplateInstanceFunc=t,n()}finally{e._currentTemplateInstanceFunc=r}},e.prototype.events=function(t){if(!c.isObject(t))throw new Error("Event map has to be an object");var n=this,r={};for(var i in t)r[i]=function(t,n){return function(t){var r=this,i=f.getData(t.currentTarget);null==i&&(i={});var a=Array.prototype.slice.call(arguments),o=f._bind(r.templateInstance,r);return a.splice(1,0,o()),e._withTemplateInstanceFunc(o,function(){return n.apply(i,a)})}}(i,t[i]);n.__eventMaps.push(r)},e.instance=function(){return e._currentTemplateInstanceFunc&&e._currentTemplateInstanceFunc()},e.currentData=f.getData,e.parentData=f._parentData,e.registerHelper=f.registerHelper,e.deregisterHelper=f.deregisterHelper}.call(this),function(){_=f,f.ReactiveVar=d,_._templateInstance=f.Template.instance,(v={}).registerHelper=f.registerHelper,v._escape=f._escape,v.SafeString=function(e){this.string=e},v.SafeString.prototype.toString=function(){return this.string.toString()}}.call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package.blaze={},{Blaze:f,UI:_,Handlebars:v})}();

!function(){var a=Package.blaze.Blaze,e=Package.blaze.UI,n=Package.blaze.Handlebars;"undefined"==typeof Package&&(Package={}),function(a,e){for(var n in e)n in a||(a[n]=e[n])}(Package.ui={},{Blaze:a,UI:e,Handlebars:n})}();

!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package["observe-sequence"].ObserveSequence,a=Package.underscore._,u=Package.tracker.Tracker,i=Package.tracker.Deps,c=Package.htmljs.HTML,l=Package.blaze.Blaze,o=Package.blaze.UI,f=Package.blaze.Handlebars,p;(function(){var e=function(e,t){return e===t};(p={}).include=function(t,n,r){if(!t)return null;if("function"!=typeof t){var a=t;if(!l.isTemplate(a))throw new Error("Expected template or null, found: "+a);return(i=t.constructView(n,r)).__startsNewLexicalScope=!0,i}var u=l.ReactiveVar(null,e),i=l.View("Spacebars.include",function(){var e=u.get();if(null===e)return null;if(!l.isTemplate(e))throw new Error("Expected template or null, found: "+e);return e.constructView(n,r)});return i.__templateVar=u,i.onViewCreated(function(){this.autorun(function(){u.set(t())})}),i.__startsNewLexicalScope=!0,i},p.mustacheImpl=function(e){var t=arguments;if(t.length>1){var n=t[t.length-1];if(n instanceof p.kw){var r={};for(var a in n.hash){var u=n.hash[a];r[a]="function"==typeof u?u():u}t[t.length-1]=p.kw(r)}else n=p.kw(),(t=Array.prototype.slice.call(arguments)).push(n)}return p.call.apply(null,t)},p.mustache=function(e){var t=p.mustacheImpl.apply(null,arguments);return t instanceof p.SafeString?c.Raw(t.toString()):null==t||!1===t?null:String(t)},p.attrMustache=function(e){var t=p.mustacheImpl.apply(null,arguments);if(null==t||""===t)return null;if("object"==typeof t)return t;if("string"==typeof t&&c.isValidAttributeName(t)){var n={};return n[t]="",n}throw new Error("Expected valid attribute name, '', null, or object")},p.dataMustache=function(e){return p.mustacheImpl.apply(null,arguments)},p.makeRaw=function(e){return null==e?null:e instanceof c.Raw?e:c.Raw(e)},p.call=function(e){if("function"==typeof e){for(var t=[],n=1;n<arguments.length;n++){var r=arguments[n];t[n-1]="function"==typeof r?r():r}return e.apply(null,t)}if(null!=e&&arguments.length>1)throw new Error("Can't call non-function: "+e);return e},p.kw=function(e){if(!(this instanceof p.kw))return new p.kw(e);this.hash=e||{}},p.SafeString=function(e){return this instanceof p.SafeString?new f.SafeString(e):new p.SafeString(e)},p.SafeString.prototype=f.SafeString.prototype,p.dot=function(e,t){if(arguments.length>2){var n=[];return n.push(p.dot(e,t)),n.push.apply(n,Array.prototype.slice.call(arguments,2)),p.dot.apply(null,n)}if("function"==typeof e&&(e=e()),!e)return e;var r=e[t];return"function"!=typeof r?r:function(){return r.apply(e,arguments)}},p.With=function(e,t,n){var r=new l.ReactiveVar,a=l.View("Spacebars_with",function(){return l.If(function(){return r.get()},function(){return l.With(function(){return r.get()},t)},n)});return a.onViewCreated(function(){this.autorun(function(){r.set(e()),u.onInvalidate(function(){r.dep.changed()})})}),a},p.TemplateWith=l._TemplateWith}).call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package.spacebars={},{Spacebars:p})}();

!function(){"undefined"==typeof Package&&(Package={}),Package["templating-compiler"]={}}();

!function(){var e=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;var e="__proto__ name".split(" ");l.__checkName=function(t){if(t in l||a.contains(e,t)){if(l[t]instanceof l&&"body"!==t)throw new Error("There are multiple templates named '"+t+"'. Each template needs a unique name.");throw new Error("This template name is reserved: "+t)}},l.__define__=function(e,t){l.__checkName(e),l[e]=new l("Template."+e,t),l[e]._NOWARN_OLDSTYLE_HELPERS=!0},l.body=new l("body",function(){var e=this;return a.map(l.body.contentRenderFuncs,function(t){return t.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){var e=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=new l("Template.__dynamic",function(){var e=this;return[o.View("lookup:checkContext",function(){return i.mustache(e.lookup("checkContext"))}),"\n ",o.If(function(){return i.call(e.lookup("dataContextPresent"))},function(){return["\n ",i.include(e.lookupTemplate("__dynamicWithDataContext"),function(){return o._InOuterTemplateScope(e,function(){return i.include(function(){return i.call(e.templateContentBlock)})})}),"\n "]},function(){return["\n \n ",o._TemplateWith(function(){return{template:i.call(e.lookup("template")),data:i.call(e.lookup(".."))}},function(){return i.include(e.lookupTemplate("__dynamicWithDataContext"),function(){return o._InOuterTemplateScope(e,function(){return i.include(function(){return i.call(e.templateContentBlock)})})})}),"\n "]})]}),l.__checkName("__dynamicWithDataContext"),l.__dynamicWithDataContext=new l("Template.__dynamicWithDataContext",function(){var e=this;return i.With(function(){return i.dataMustache(e.lookup("chooseTemplate"),e.lookup("template"))},function(){return["\n \n ",o._TemplateWith(function(){return i.call(i.dot(e.lookup(".."),"data"))},function(){return i.include(e.lookupTemplate(".."),function(){return o._InOuterTemplateScope(e,function(){return i.include(function(){return i.call(e.templateContentBlock)})})})}),"\n "]})})}.call(this),function(){var e=o.Template;e.__dynamicWithDataContext.helpers({chooseTemplate:function(t){return o._getTemplate(t,function(){return e.instance()})}}),e.__dynamic.helpers({dataContextPresent:function(){return a.has(this,"data")},checkContext:function(){if(!a.has(this,"template"))throw new Error("Must specify name in the 'template' argument to {{> Template.dynamic}}.");a.each(this,function(e,t){if("template"!==t&&"data"!==t)throw new Error("Invalid argument to {{> Template.dynamic}}: "+t)})}})}.call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package["templating-runtime"]={},{Template:l})}();

!function(){var a=Package["templating-runtime"].Template;"undefined"==typeof Package&&(Package={}),function(a,e){for(var n in e)n in a||(a[n]=e[n])}(Package.templating={},{Template:a})}();

!function(){var e=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"])throw new Error("\n\n Sorry! The cmather:iron-{x} packages were migrated to the new package system with the wrong name, and you have duplicate copies.\n You can see which cmather:iron-{x} packages have been installed by using this command:\n\n > meteor list\n\n Can you remove any installed cmather:iron-{x} packages like this: \n\n > meteor remove cmather:iron-core\n > meteor remove cmather:iron-router\n > meteor remove cmather:iron-dynamic-template\n > meteor remove cmather:iron-dynamic-layout\n \n The new packages are named iron:{x}. For example:\n\n > meteor add iron:router\n\n Sorry for the hassle, but thank you! \n\n ")}).call(this),function(){(i={}).utils={},i.utils.assert=function(e,t){if(!e)throw new Error(t)},i.utils.warn=function(e,t){e||console&&console.warn&&console.warn(t)},i.utils.defaultValue=function(e,t,n){return void 0===e[t]?(e[t]=n,n):e[t]},i.utils.inherits=function(e,t,n){i.utils.assert(void 0!==e,"Child is undefined in inherits function"),i.utils.assert(void 0!==t,"Parent is undefined in inherits function");for(var a in t)r.has(t,a)&&(e[a]=o.clone(t[a]));var s=function(){this.constructor=e};return s.prototype=t.prototype,e.prototype=new s,e.__super__=t.prototype,r.isObject(n)&&r.extend(e.prototype,n),e},i.utils.extend=function(e,t){t=t||{};var n=function(){var e;(e=r.has(t,"constructor")?t.constructor:n.__super__.constructor).apply(this,arguments)};return i.utils.inherits(n,e,t)},i.utils.global=function(){return e.isClient?window:t}(),i.utils.namespace=function(e,t){var n=i.utils.global,r,o,a,s;i.utils.assert("string"==typeof e,"namespace must be a string"),a=(r=e.split(".")).pop(),s=n;for(var c=0;c<r.length;c++)s=s[o=r[c]]=s[o]||{};return 2===arguments.length?(s[a]=t,t):s[a]},i.utils.resolve=function(e){var t=i.utils.global,n,r;if("string"==typeof e){n=e.split("."),r=t;for(var o=0;o<n.length;o++)if(!(r=r[n[o]]))return}else r=e;return r},i.utils.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1,e.length)},i.utils.classCase=function(e){var t=/_|-|\.|\//;return e?r.map(e.split(t),function(e){return i.utils.capitalize(e)}).join(""):""},i.utils.camelCase=function(e){var t=i.utils.classCase(e);return t=t.charAt(0).toLowerCase()+t.slice(1,t.length)},i.utils.notifyDeprecated=function(e){var t,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"!=typeof console&&console.warn&&console.warn("<deprecated> "+o.replace(":name",t).replace(":instead",n).replace(":where",i)+" "+(new Error).stack)},i.utils.withDeprecatedNotice=function(e,t,n){return function(){return Utils.notifyDeprecated(e),t&&t.apply(n||this,arguments)}},Function.prototype.deprecate=function(e){var t=this;return i.utils.withDeprecatedNotice(e,t)},i.utils.debug=function(e){return i.utils.assert("string"==typeof e,"debug requires a package name"),function t(){if(console&&console.log&&!0===i.debug){var n=r.toArray(arguments).join(" ");console.log("%c<"+e+"> %c"+n,"color: #999;","color: #000;")}}},i.utils.get=function(e){for(var t=1;t<arguments.length;t++){if(!(e&&arguments[t]in e))return;e=e[arguments[t]]}return e},i.utils.global.Iron=i}.call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package["iron:core"]={},{Iron:i})}();

!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.ui.Blaze,r=Package.ui.UI,i=Package.ui.Handlebars,o=Package.underscore._,s=Package.jquery.$,u=Package.jquery.jQuery,c=Package.tracker.Tracker,l=Package.tracker.Deps,p=Package["reactive-var"].ReactiveVar,h=Package["templating-runtime"].Template,d=Package.random.Random,m=Package["iron:core"].Iron,_=Package.htmljs.HTML,f=Package.spacebars.Spacebars,v;(function(){if(Package["cmather:iron-dynamic-template"])throw new Error("\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__=new h("Template.__DynamicTemplateError__",function(){var e=this;return _.DIV({style:"margin: 0 auto; color: red;"},"\n ",a.View("lookup:msg",function(){return f.mustache(e.lookup("msg"))}),"\n ")})}.call(this),function(){var e=m.utils.debug("iron:dynamic-template"),t=m.utils.assert,n=m.utils.get,i=m.utils.camelCase,u=function(e){return Object.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=new c.Dependency,this._dataDep=new c.Dependency,this._lookupHostDep=new c.Dependency,this._lookupHostValue=null,this._hooks={},this._eventMap=null,this._eventHandles=null,this._eventThisArg=null,this.name=e.name||this.constructor.prototype.name||"DynamicTemplate",this.isCreated=!1,this.isDestroyed=!1}).prototype.template=function(e){if(1===arguments.length&&e!==this._template)return this._template=e,void this._templateDep.changed();if(!(arguments.length>0))return this._templateDep.depend(),this._template?"function"==typeof this._template?this._template():this._template:this._defaultTemplate?"function"==typeof this._defaultTemplate?this._defaultTemplate():this._defaultTemplate:void 0},v.prototype.defaultTemplate=function(e){if(1!==arguments.length)return this._defaultTemplate;this._defaultTemplate=e},v.prototype.clear=function(){this._template=void 0,this._data=void 0,this._templateDep.changed()},v.prototype.data=function(e){return 1===arguments.length&&e!==this._data?(this._data=e,void this._dataDep.changed()):(this._dataDep.depend(),"function"==typeof this._data?this._data():this._data)},v.prototype.create=function(e){var t=this;if(this.isCreated)throw new Error("DynamicTemplate view is already created");this.isCreated=!0,this.isDestroyed=!1;var n=p(null),r=a.View("DynamicTemplate",function(){var e=this,r=n.get();return a.With(function(){var n=t.data();return void 0!==n?n:v.getParentDataContext(e)},function(){return t.renderView(r)})});return r.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=new a.TemplateInstance(r),r.templateInstance=function(){var e=r._templateInstance;return e.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){var t=this,n=null;return"string"==typeof e?((n=h[e])||(n=h[i(e)]),n||(n=a.With({msg:"Couldn't find a template named "+JSON.stringify(e)+" or "+JSON.stringify(i(e))+". Are you sure you defined it?"},function(){return h.__DynamicTemplateError__}))):"[object Object]"===u(e)?n=e:void 0!==t._content&&(n=t._content),n},v.prototype.destroy=function(){this.isCreated&&(a.remove(this.view),this.view=null,this.isDestroyed=!0,this.isCreated=!1)},o.each(["onViewCreated","onViewReady","_onViewRendered","onViewDestroyed"],function(e){v.prototype[e]=function(t){return(this._hooks[e]=this._hooks[e]||[]).push(t),this}}),v.prototype._runHooks=function(e,t){for(var n=this._hooks[e]||[],a,r=0;r<n.length;r++)(a=n[r]).call(t,this)},v.prototype.events=function(e,t){var n=this;this._detachEvents(),this._eventThisArg=t;var r=this._eventMap={};for(var i in e)r[i]=function(e,r){return function(e){var i=a.getData(e.currentTarget);null==i&&(i={});var o=n.view.templateInstance();return r.call(t||this,e,o,i)}}(i,e[i]);this._attachEvents()},v.prototype._attachEvents=function(){var e=this,t=e._eventThisArg,n=e._eventMap,r=e.view,i=e._eventHandles;if(r){var s=r._domrange;if(!s)throw new Error("no domrange");var u=function(t,s){o.each(n,function(n,u){var c=u.split(/,\s+/);o.each(c,function(o){var u=o.split(/\s+/);if(0!==u.length){var c=u.shift(),l=u.join(" ");i.push(a._EventSupport.listen(s,c,l,function(i){if(!t.containsElement(i.currentTarget))return null;var o=e._eventThisArg||this,s=arguments;return a._withCurrentView(r,function(){return n.apply(o,s)})},t,function(e){return e.parentRange}))}})})};s.attached?u(s,s.parentElement):s.onAttached(u)}},v.prototype._detachEvents=function(){o.each(this._eventHandles,function(e){e.stop()}),this._eventHandles=[]};var _=function(e,t,n,r){o.each(n,function(n,i){var s=i.split(/,\s+/);o.each(s,function(i){var o=i.split(/\s+/);if(0!==o.length){var s=o.shift(),u=o.join(" ");handles.push(a._EventSupport.listen(t,s,u,function(t){if(!e.containsElement(t.currentTarget))return null;var i=r||this,o=arguments;return a._withCurrentView(view,function(){return n.apply(i,o)})},e,function(e){return e.parentRange}))}})})};v.prototype.insert=function(e){if(e=e||{},!this.isInserted){this.isInserted=!0;var t=e.el||document.body,n=s(t);if(0===n.length)throw new Error("No element to insert layout into. Is your element defined? Try a Meteor.startup callback.");return this.view||this.create(e),a.render(this.view,n[0],e.nextNode,e.parentView),this}},v.prototype._getLookupHost=function(){return this._lookupHostValue},v.prototype._setLookupHost=function(e){var t=this;return t._lookupHostValue!==e&&(t._lookupHostValue=e,l.afterFlush(function(){t._lookupHostDep.changed()})),this},v.getParentDataContext=function(e){return v.getDataContext(e&&e.parentView)},v.getDataContext=function(e){for(;e;){if("with"===e.name&&!e.__isTemplateWith)return e.dataVar.get();e=e.parentView}return null},v.getInclusionArguments=function(e){var t=e&&e.parentView;return t&&t.__isTemplateWith?t.dataVar.get():null},v.args=function(e){return function(t){var n=v.getInclusionArguments(e);return n?t?n[t]:n:null}},v.extend=function(e){return m.utils.extend(this,e)},v.findFirstLookupHost=function(e){var n,r;for(t(e instanceof a.View,"view must be a Blaze.View");e;)if(e.__dynamicTemplate__){if(n=e.__dynamicTemplate__._getLookupHost())return n}else e=e.parentView},v.findLookupHostWithProperty=function(e,r){var i,o;for(t(e instanceof a.View,"view must be a Blaze.View");e;){if(e.__dynamicTemplate__&&(i=e.__dynamicTemplate__._getLookupHost())&&n(i,r))return i;e=e.parentView}},v.findLookupHostWithHelper=function(e,r){var i,o;for(t(e instanceof a.View,"view must be a Blaze.View");e;){if(e.__dynamicTemplate__&&(i=e.__dynamicTemplate__._getLookupHost())&&n(i,"constructor","_helpers",r))return i;e=e.parentView}},void 0!==h&&r.registerHelper("DynamicTemplate",new h("DynamicTemplateHelper",function(){var e=v.args(this);return new v({data:function(){return e("data")},template:function(){return e("template")},content:this.templateContentBlock}).create()})),m.DynamicTemplate=v}.call(this),function(){var e=m.utils.assert,t=m.utils.get,n=a.View.prototype.lookup;a.View.prototype.lookup=function(e){var r;return r=v.findLookupHostWithHelper(a.getView(),e),r?function n(){var a=t(r,"constructor","_helpers",e),i=[].slice.call(arguments);return"function"==typeof a?a.apply(r,i):a}:n.apply(this,arguments)}}.call(this),"undefined"==typeof Package&&(Package={}),Package["iron:dynamic-template"]={}}();

!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\n The cmather:iron-{x} packages were migrated to the new package system with the wrong name, and you have duplicate copies.\n You can see which cmather:iron-{x} packages have been installed by using this command:\n\n > meteor list\n\n Can you remove any installed cmather:iron-{x} packages like this: \n\n > meteor remove cmather:iron-core\n > meteor remove cmather:iron-router\n > meteor remove cmather:iron-dynamic-template\n > meteor remove cmather:iron-dynamic-layout\n \n The new packages are named iron:{x}. For example:\n\n > meteor add iron:router\n\n Sorry for the hassle, but thank you! \n\n "),Package["cmather:blaze-layout"]&&e.push("The blaze-layout package has been replaced by iron-layout. Please remove the package like this:\n> meteor remove cmather:blaze-layout\n"),e.length>0)throw new Error("Sorry! Looks like there's a few errors related to iron:layout\n\n"+e.join("\n\n"))}).call(this),function(){r.__checkName("__IronDefaultLayout__"),r.__IronDefaultLayout__=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},m=(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)}).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){var t=(n=n||{}).to||n.region||m,r=this.region(t);this._trackRenderedRegion(t),r.template(e),r.data(n.data)},p.prototype.has=function(e){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){!1!==(e=e||{}).flush&&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){return(this._regionHooks[e]=this._regionHooks[e]||[]).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]).call(n,t.region,t,this)},void 0!==r&&(i.registerHelper("yield",new r("yield",function(){var n=d(this);if(!n)throw new Error("No Iron.Layout found so you can't use yield!");var t=e.getInclusionArguments(this),r,o;return s.isString(t)?r=t:s.isObject(t)&&(r=t.region),r=r||m,(o=n.region(r)).isCreated&&o.destroy(),o.create()})),i.registerHelper("contentFor",new r("contentFor",function(){var n=d(this);if(!n)throw new Error("No Iron.Layout found so you can't use contentFor!");var t=e.getInclusionArguments(this)||{},r=this.templateContentBlock,o=t.template,i=t.data,a;if(s.isString(t))a=t;else{if(!s.isObject(t))throw new Error("Which region is this contentFor block supposed to be for?");a=t.region}return n.region(a).template(o||r),n._trackRenderedRegion(a),i&&n.region(a).data(i),null})),i.registerHelper("hasRegion",function(e){var n=d(o.getView());if(!n)throw new Error("No Iron.Layout found so you can't use hasRegion!");if(!s.isString(e))throw new Error("You need to provide an region argument to hasRegion");return!!n.region(e).template()}),i.registerHelper("Layout",new r("layout",function(){var e=h.DynamicTemplate.args(this);return new p({template:function(){return e("template")},data:function(){return e("data")},content:this.templateContentBlock}).create()}))),h.Layout=p}.call(this),"undefined"==typeof Package&&(Package={}),Package["iron:layout"]={}}();

!function(){var e=Package.meteor.Meteor,r=Package.meteor.global,t=Package.meteor.meteorEnv,n=Package.underscore._,i=Package["iron:core"].Iron,o,a;(function(){function e(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function r(o,a,s){a&&"[object Array]"!==t(a)&&(s=a,a=null),a=a||[];var c=(s=s||{}).strict,u=!1!==s.end,p=s.sensitive?"":"i",l=0;if(o instanceof RegExp){var h=o.source.match(/\((?!\?)/g)||[];return a.push.apply(a,h.map(function(e,r){return{name:r,delimiter:null,optional:!1,repeat:!1}})),i(o,a)}if("[object Array]"===t(o))return o=o.map(function(e){return r(e,a,s).source}),i(new RegExp("(?:"+o.join("|")+")",p),a);var f="/"===(o=o.replace(n,function(r,t,n,i,o,s,c,u){if(t)return t;if(u)return"\\"+u;var p="+"===c||"*"===c,h="?"===c||"*"===c;return a.push({name:i||l++,delimiter:n||"/",optional:h,repeat:p}),n=n?"\\"+n:"",o=e(o||s||"[^"+(n||"\\/")+"]+?"),p&&(o=o+"(?:"+n+o+")*"),h?"(?:"+n+"("+o+"))?":n+"("+o+")"}))[o.length-1];return c||(o=(f?o.slice(0,-2):o)+"(?:\\/(?=$))?"),u||(o+=c&&f?"":"(?=\\/|$)"),i(new RegExp("^"+o+(u?"$":""),p),a)}var t=function(e){return Object.prototype.toString.call(e)},n=new RegExp(["(\\\\.)","([\\/.])?(?:\\:(\\w+)(?:\\(((?:\\\\.|[^)])*)\\))?|\\(((?:\\\\.|[^)])*)\\))([+*?])?","([.+*?=^!:${}()[\\]|\\/])"].join("|"),"g"),i=function(e,r){return e.keys=r,e};o=r}).call(this),function(){function e(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(r){return void(r.constructor==URIError&&t("Tried to decode an invalid URI component: "+JSON.stringify(e)+" "+r.stack))}}function r(e){try{return decodeURI(e.replace(/\+/g," "))}catch(r){return void(r.constructor==URIError&&t("Tried to decode an invalid URI: "+JSON.stringify(e)+" "+r.stack))}}var t=i.utils.warn;(a=function(e,r){r=r||{},this.options=r,this.keys=[],this.regexp=o(e,this.keys,r),this._originalPath=e,n.extend(this,a.parse(e))}).normalize=function(e){if(e instanceof RegExp)return e;if("string"!=typeof e)return"/";var r=a.parse(e).pathname;return"/"!==r.charAt(0)&&(r="/"+r),r.length>1&&"/"===r.charAt(r.length-1)&&(r=r.slice(0,r.length-1)),r},a.isSameOrigin=function(e,r){var t=a.parse(e),n=a.parse(r);return t.origin===n.origin},a.fromQueryString=function(r){if(!r)return{};if("string"!=typeof r)throw new Error("expected string");"?"===r.charAt(0)&&(r=r.slice(1));var t=r.split("&"),i={},o;return n.each(t,function(r){var t=r.split("="),n=e(t[0]),o=e(t[1]);void 0!==n&&void 0!==o&&"[]"===n.slice(-2)?(n=n.slice(0,-2),i[n]=i[n]||[],i[n].push(o)):i[n]=o}),i},a.toQueryString=function(e){var r=[];return"string"==typeof e?"?"!==e.charAt(0)?"?"+e:e:(n.each(e,function(e,t){n.isArray(e)?n.each(e,function(e){r.push(encodeURIComponent(t)+"[]="+encodeURIComponent(e))}):r.push(encodeURIComponent(t)+"="+encodeURIComponent(e))}),r.length>0?"?"+r.join("&"):"")},a.parse=function(e){if("string"!=typeof e)return{};var r=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,t=e.match(r),n=t[1]?t[1].toLowerCase():void 0,i=!!t[3],o=t[4]?t[4].toLowerCase():void 0,s=o?o.split("@"):[],c,u;2==s.length?(u=s[0],c=s[1]):1==s.length?(c=s[0],u=void 0):(c=void 0,u=void 0);var p=c&&c.split(":")||[],l=p[0],h=p[1],f=n&&c?n+"//"+c:void 0,g=t[5],d=t[8],m=e,v=t[6],y,w=d&&d.indexOf("?")||-1;~w&&!v?(v=d.slice(w),d=d.substr(0,w),y=v.slice(1)):y=t[7];var R=g+(v||""),x=a.fromQueryString(y),U=[n||"",i?"//":"",o||""].join(""),S=[n||"",i?"//":"",o||"",g||"",v||"",d||""].join("");return{rootUrl:U||"",originalUrl:e||"",href:S||"",protocol:n||"",auth:u||"",host:c||"",hostname:l||"",port:h||"",origin:f||"",path:R||"",pathname:g||"",search:v||"",query:y||"",queryObject:x||"",hash:d||"",slashes:i}},a.prototype.test=function(e){return this.regexp.test(a.normalize(e))},a.prototype.exec=function(e){return this.regexp.exec(a.normalize(e))},a.prototype.params=function(t){if(!t)return[];var n=[],i=this.exec(t),o,s=this.keys,c,u;if(!i)throw new Error('The route named "'+this.name+'" does not match the path "'+t+'"');for(var p=1,l=i.length;p<l;++p)c=s[p-1],u="string"==typeof i[p]?e(i[p]):i[p],c?n[c.name]=void 0!==n[c.name]?n[c.name]:u:n.push(u);return void 0!==r(t)&&((o=t.split("?")[1])&&(o=o.split("#")[0]),n.hash=t.split("#")[1]||null,n.query=a.fromQueryString(o)),n},a.prototype.resolve=function(e,r){var t,i,o,s=0,c=this._originalPath,u,p,l=[],h=e;if(r=r||{},e=e||[],p=r.query,u=r.hash&&r.hash.toString(),c instanceof RegExp)throw new Error("Cannot currently resolve a regular expression path");if(c=c.replace(/(\/)?(\.)?:(\w+)(?:(\(.*?\)))?(\?)?/g,function(r,o,a,s,c,u,p){if(o=o||"",a=a||"",t=e[s],i=void 0!==t,u&&!i)t="";else if(!i)return void l.push(s);return t=n.isFunction(t)?t.call(e):t,o+a+n.map(String(t).split("/"),function(e){return encodeURIComponent(e)}).join("/")}).replace(/\*/g,function(r){if(void 0===e[s])throw new Error("You are trying to access a wild card parameter at index "+s+" but the value of params at that index is undefined");var t=String(e[s++]);return n.map(t.split("/"),function(e){return encodeURIComponent(e)}).join("/")}),c+=p=a.toQueryString(p),u&&(c=c+"#"+(u=encodeURI(u.replace("#","")))),c=c.replace(/\/+/g,"/"),c=c.replace(/^(.+)\/$/g,"$1"),0==l.length)return c;if(!0===r.throwOnMissingParams)throw new Error("Missing required parameters on path "+JSON.stringify(this._originalPath)+". The missing params are: "+JSON.stringify(l)+". The params object passed in was: "+JSON.stringify(h)+".");return null},i.Url=a}.call(this),"undefined"==typeof Package&&(Package={}),Package["iron:url"]={}}();

!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,r=Package.underscore._,i=Package.ejson.EJSON,o=Package["iron:core"].Iron,a,s;(function(){var t=o.Url;(a=function(e,n,i){r.isFunction(e)&&(i=i||n||{},n=e,e="/",this.middleware=!0,void 0===i.mount&&(i.mount=!0)),"object"==typeof n&&(n=(i=n).action||"action"),i=i||{},this.options=i,this.mount=i.mount,this.method=i.method&&i.method.toLowerCase()||!1,this.where=i.where||"client",this.mount&&(i.end=!1),i.name?this.name=i.name:"string"==typeof e&&"/"!==e.charAt(0)?this.name=e:"string"==typeof e&&"/"!==e&&(this.name=e.split("/").slice(1).join(".")),"string"==typeof(e=i.path||e)&&"/"!==e.charAt(0)&&(e="/"+e),this.path=e,this.compiledUrl=new t(e,i),r.isString(n)?this.handle=function t(){var e=this[n];if("function"!=typeof e)throw new Error("No method named "+JSON.stringify(n)+" found on handler.");return e.apply(this,arguments)}:r.isFunction(n)&&(this.handle=n)}).prototype.test=function(t,e){e=e||{};var n=this.compiledUrl.test(t),r=!0,i=!0;return this.method&&e.method&&(r=this.method==e.method.toLowerCase()),e.where&&(i=this.where==e.where),n&&r&&i},a.prototype.params=function(t){return this.compiledUrl.params(t)},a.prototype.resolve=function(t,e){return this.compiledUrl.resolve(t,e)},a.prototype.clone=function(){var t=new a(this.path,this.handle,this.options);return t.name=this.name,t}}).call(this),function(){var e=o.Url,n=o.utils.assert,h=o.utils.defaultValue;(s=function(){this._stack=[],this.length=0}).prototype._create=function(t,e,n){var i=new a(t,e,n),o=i.name;if(o){if(r.has(this._stack,o))throw new Error("Handler with name '"+o+"' already exists.");this._stack[o]=i}return i},s.prototype.findByName=function(t){return this._stack[t]},s.prototype.push=function(t,e,n){var r=this._create(t,e,n);return this._stack.push(r),this.length++,r},s.prototype.append=function(){var t=this,e=r.toArray(arguments),n={};return"object"==typeof e[e.length-1]&&(n=e.pop()),r.each(e,function(e){if(void 0!==e)if("function"==typeof e)t.push(e,n);else{if(!r.isArray(e))throw new Error("Can only append functions or arrays to the MiddlewareStack");t.append.apply(t,e.concat([n]))}}),this},s.prototype.insertAt=function(t,e,n,r){var i=this._create(e,n,r);return this._stack.splice(t,0,i),this.length=this._stack.length,this},s.prototype.insertBefore=function(t,e,n,i){var o,a;if(!(o=this._stack[t]))throw new Error("Couldn't find a handler named '"+t+"' on the path stack");return a=r.indexOf(this._stack,o),this.insertAt(a,e,n,i),this},s.prototype.insertAfter=function(t,e,n,i){var o,a;if(!(o=this._stack[t]))throw new Error("Couldn't find a handler named '"+t+"' on the path stack");return a=r.indexOf(this._stack,o),this.insertAt(a+1,e,n,i),this},s.prototype.concat=function(){var t=new s,e=Array.prototype.concat,n=i.clone(this._stack),o=r.map(r.toArray(arguments),function(t){return i.clone(t._stack)});return t._stack=e.apply(n,o),t.length=t._stack.length,t},s.prototype.dispatch=function r(i,o,a){var s=this,l=i;n("string"==typeof i,"Requires url"),n("object"==typeof o,"Requires context object"),i=e.normalize(i||"/"),h(o,"request",{}),h(o,"response",{}),h(o,"originalUrl",i),h(o,"_method",o.method),h(o,"_handlersForEnv",{client:!1,server:!1}),h(o,"_handled",!1),h(o,"isHandled",function(){return o._handled}),h(o,"willBeHandledOnClient",function(){return o._handlersForEnv.client}),h(o,"willBeHandledOnServer",function(){return o._handlersForEnv.server});var c=function(){if(a)try{a.apply(this,arguments)}catch(t){throw t._punt=!0,t}},u=0,p=t.bindEnvironment(function n(r){var a=s._stack[u++];if(o.url=o.request.url=o.originalUrl,!a)return c.call(o,r);if(!a.test(i,{method:o._method}))return p(r);var h=t.isClient?"client":"server";if(a.middleware||(o._handlersForEnv[a.where]=!0),a.where!==h)return p(r);if(o.next=p,a.mount){var l=e.normalize(a.compiledUrl.pathname),d=i.substr(l.length,i.length);d=e.normalize(d),o.url=o.request.url=d}try{var f=a.handle.length,m=o.request,y=o.response;return r&&4===f?a.handle.call(o,r,m,y,p):!r&&f<4?a.handle.call(o,m,y,p):p(r)}catch(r){if(r._punt)throw r;p(r)}finally{o._handled=!0,o.next=null}});return p(),o.next=null,o},(o=o||{}).MiddlewareStack=s}.call(this),"undefined"==typeof Package&&(Package={}),function(t,e){for(var n in e)n in t||(t[n]=e[n])}(Package["iron:middleware-stack"]={},{Handler:a})}();

!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,r=Package.tracker.Tracker,o=Package.tracker.Deps,i=Package.jquery.$,c=Package.jquery.jQuery,s=Package["iron:core"].Iron,h,u,l,f,p;(function(){var t=s.Url,e="__hash__";h=function(e){var n=t.parse(e),a=n.hash&&n.hash.replace("#",""),r=n.search,o=n.pathname,i=n.rootUrl;if(a&&"!"!==a.charAt(0)){var c="__hash__="+a;r=r?r+"&":"?",r+=c,a=""}return!a&&o?a="#!"+o.substring(1):a&&(a="#"+a),[i,a,r].join("")},u=function(e){var n=t.parse(e),r=n.hash&&n.hash.replace("#!","/"),o=n.search,i=n.rootUrl,c;return a.has(n.queryObject,"__hash__")?(c="#"+n.queryObject.__hash__,delete n.queryObject.__hash__):c="",[i,r,t.toQueryString(n.queryObject),c].join("")},l=function(e){var n=t.parse(e),a=n.queryObject;return n.hash&&(a.__hash__=n.hash.replace("#","")),["!",n.pathname.substring(1),t.toQueryString(a)].join("")}}).call(this),function(){var t=s.Url;(f=function(e,n){a.extend(this,t.parse(e),{options:n||{}})}).prototype.equals=function(t){return!!t&&(t instanceof f&&(t.pathname==this.pathname&&t.search==this.search&&t.hash==this.hash&&t.options.historyState===this.options.historyState))},f.prototype.isCancelled=function(){return!!this._isCancelled},f.prototype.cancelUrlChange=function(){this._isCancelled=!0}}.call(this),function(){var e=s.Url,n=null,r=new o.Dependency,c={go:[],popState:[]},g=function(){return/MSIE 9/.test(navigator.appVersion)},y=function(){return/MSIE 8/.test(navigator.appVersion)},_=function(){return!!Package.appcache},d=function(){return"undefined"==typeof history||"function"!=typeof history.pushState},S=function(){return p.options.useHashPaths||y()||g()||_()||d()},v=function(){return!!p.options.useHashPaths},k=function(t,e){a.each(c[t],function(t){t.call(e)})},w=function(t){if(!(t instanceof f))throw new Error("Expected a State instance");return!t.equals(n)&&(n=t,r.changed(),!0)},P=function(){var t=location.href,e;e=v()?new f(u(t)):new f(t,{historyState:history.state}),k("popState",e),w(e)},m=function(t){var e=q;e&&e(t)},j=function(t,e){var n=new f(t,e=e||{});k("go",n),w(n)&&o.afterFlush(function(){n.isCancelled()||(v()?location.hash=l(t):!0===e.replaceState?history.replaceState(e.historyState,null,t):history.pushState(e.historyState,null,t))})},q=function(t){try{var n=t.currentTarget,a=n.href,r=n.pathname+n.search+n.hash;if(r=r.replace(/(^\/?)/,"/"),t.isDefaultPrevented())return void t.preventDefault();if(t.metaKey||t.ctrlKey||t.shiftKey)return;if(n.target)return;if(!e.isSameOrigin(a,location.href))return;t.preventDefault(),j(r)}catch(e){throw t.preventDefault(),e}};(p={}).options={linkSelector:"a[href]",useHashPaths:!1},p.configure=function(t){a.extend(this.options,t||{})},p.get=function(){return r.depend(),n},p.start=function(){if(!this._isStarted){var n=e.parse(location.href);if(S()){if(n.pathname.length>1){var a=h(location.href);window.location=a}this.configure({useHashPaths:!0})}var r=location.href;if(v()){var o=new f(u(r));w(o)}else{if("!"===n.hash.replace("#","")[0])var r=u(r);var c={initial:!0};history.replaceState(c,null,r);var o=new f(r,{historyState:c});w(o)}i(window).on("popstate.iron-location",P),i(window).on("hashchange.iron-location",P),t.startup(function(){i(document).on("click.iron-location",p.options.linkSelector,m)}),this._isStarted=!0}},p.stop=function(){this._isStarted&&(i(window).on("popstate.iron-location"),i(window).on("hashchange.iron-location"),i(document).off("click.iron-location"),this._isStarted=!1)},p.onClick=function(t){q=t},p.go=function(t,e){return j(t,e)},p.onGo=function(t){c.go.push(t)},p.onPopState=function(t){c.popState.push(t)},p.start(),s.Location=p}.call(this),"undefined"==typeof Package&&(Package={}),function(t,e){for(var n in e)n in t||(t[n]=e[n])}(Package["iron:location"]={},{urlToHashStyle:h,urlFromHashStyle:u})}();

!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,a=Package.meteor.meteorEnv,i=Package.underscore._,n=Package.tracker.Tracker,r=Package.tracker.Deps,s=Package.ejson.EJSON,c=Package.modules.meteorInstall,o=Package.modules.process,u=Package["babel-runtime"].meteorBabelHelpers,l=Package.promise.Promise,d=Package["ecmascript-runtime-client"].Symbol,f=Package["ecmascript-runtime-client"].Map,k=Package["ecmascript-runtime-client"].Set,y,D=c({node_modules:{meteor:{"reactive-dict":{"reactive-dict.js":function(e){function t(e){return e&&e.__esModule?e:{default:e}}var a=t(e("babel-runtime/helpers/slicedToArray")),r=t(e("babel-runtime/helpers/typeof")),c=function(e){return void 0===e?"undefined":s.stringify(e)},o=function(e){if(void 0!==e&&"undefined"!==e)return s.parse(e)},u=function(e){e&&e.changed()};y=function(e){if(e)if("string"==typeof e)y._registerDictForMigrate(e,this),this.keys=y._loadMigratedDict(e)||{},this.name=e;else{if("object"!==(void 0===e?"undefined":(0,r.default)(e)))throw new Error("Invalid ReactiveDict argument: "+e);this.keys={};for(var t=Object.entries(e),i=Array.isArray(t),s=0,t=i?t:t[d.iterator]();;){var o;if(i){if(s>=t.length)break;o=t[s++]}else{if((s=t.next()).done)break;o=s.value}var u=o,l=(0,a.default)(u,2),f=l[0],k=l[1];this.keys[f]=c(k)}}else this.keys={};this.allDeps=new n.Dependency,this.keyDeps={},this.keyValueDeps={}},i.extend(y.prototype,{set:function(e,t){var a=this;if("object"!==(void 0===e?"undefined":(0,r.default)(e))||void 0!==t){var n=e;t=c(t);var s=i.has(a.keys,n),o=s?a.keys[n]:"undefined",l=t!==o;a.keys[n]=t,!l&&s||a.allDeps.changed(),l&&(u(a.keyDeps[n]),a.keyValueDeps[n]&&(u(a.keyValueDeps[n][o]),u(a.keyValueDeps[n][t])))}else a._setObject(e)},setDefault:function(e,t){var a=this;if("object"!==(void 0===e?"undefined":(0,r.default)(e))||void 0!==t){var n=e;i.has(a.keys,n)||a.set(n,t)}else a._setDefaultObject(e)},get:function(e){var t=this;return t._ensureKey(e),t.keyDeps[e].depend(),o(t.keys[e])},equals:function(e,t){var a=this,r=null;if(Package.mongo&&(r=Package.mongo.Mongo.ObjectID),!("string"==typeof t||"number"==typeof t||"boolean"==typeof t||void 0===t||t instanceof Date||r&&t instanceof r||null===t))throw new Error("ReactiveDict.equals: value must be scalar");var u=c(t);n.active&&(a._ensureKey(e),i.has(a.keyValueDeps[e],u)||(a.keyValueDeps[e][u]=new n.Dependency),a.keyValueDeps[e][u].depend()&&n.onInvalidate(function(){a.keyValueDeps[e][u].hasDependents()||delete a.keyValueDeps[e][u]}));var l=void 0;return i.has(a.keys,e)&&(l=o(a.keys[e])),s.equals(l,t)},all:function(){this.allDeps.depend();var e={};return i.each(this.keys,function(t,a){e[a]=o(t)}),e},clear:function(){var e=this,t=e.keys;e.keys={},e.allDeps.changed(),i.each(t,function(t,a){u(e.keyDeps[a]),e.keyValueDeps[a]&&(u(e.keyValueDeps[a][t]),u(e.keyValueDeps[a].undefined))})},delete:function(e){var t=this,a=!1;if(i.has(t.keys,e)){var n=t.keys[e];delete t.keys[e],u(t.keyDeps[e]),t.keyValueDeps[e]&&(u(t.keyValueDeps[e][n]),u(t.keyValueDeps[e].undefined)),t.allDeps.changed(),a=!0}return a},_setObject:function(e){var t=this;i.each(e,function(e,a){t.set(a,e)})},_setDefaultObject:function(e){var t=this;i.each(e,function(e,a){t.setDefault(a,e)})},_ensureKey:function(e){var t=this;e in t.keyDeps||(t.keyDeps[e]=new n.Dependency,t.keyValueDeps[e]={})},_getMigrationData:function(){return this.keys}})},"migration.js":function(){if(y._migratedDictData={},y._dictsToMigrate={},y._loadMigratedDict=function(e){return i.has(y._migratedDictData,e)?y._migratedDictData[e]:null},y._registerDictForMigrate=function(e,t){if(i.has(y._dictsToMigrate,e))throw new Error("Duplicate ReactiveDict name: "+e);y._dictsToMigrate[e]=t},e.isClient&&Package.reload){var t=Package.reload.Reload._migrationData("reactive-dict");t&&t.dicts&&(y._migratedDictData=t.dicts),Package.reload.Reload._onMigrate("reactive-dict",function(){var e=y._dictsToMigrate,t={};for(var a in u.sanitizeForInObject(e))t[a]=e[a]._getMigrationData();return[!0,{dicts:t}]})}}}}}},{extensions:[".js",".json"]});D("./node_modules/meteor/reactive-dict/reactive-dict.js"),D("./node_modules/meteor/reactive-dict/migration.js"),"undefined"==typeof Package&&(Package={}),function(e,t){for(var a in t)a in e||(e[a]=t[a])}(Package["reactive-dict"]={},{ReactiveDict:y})}();

!function(){var t=Package.meteor.Meteor,e=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.underscore._,o=Package.tracker.Tracker,i=Package.tracker.Deps,r=Package["reactive-dict"].ReactiveDict,u=Package["templating-runtime"].Template,s=Package["iron:core"].Iron,c=Package.blaze.Blaze,l=Package.blaze.UI,p=Package.blaze.Handlebars,d=Package.spacebars.Spacebars,h=Package.htmljs.HTML,y,f;(function(){var t=s.utils.assert,e=function(){for(var t={},e=i.currentComputation;e;)t[String(e._id)]=!0,e=e._parent;return t},n=function(n){var o=e(),i=a.keys(n._dependentsById);a.each(i,function(e){t(!o[e],"\n\nYou called wait() after calling ready() inside the same computation tree.\n\nYou can fix this problem in two possible ways:\n\n1) Put all of your wait() calls before any ready() calls.\n2) Put your ready() call in its own computation with Deps.autorun.")})};(y=function(){this._readyDep=new i.Dependency,this._comps=[],this._notReadyCount=0}).prototype.wait=function(t){var e=this,o=i.currentComputation;n(e._readyDep),i.nonreactive(function(){var n=null,r=i.autorun(function(a){var o=!!t(),i=e._notReadyCount;a.firstRun&&!o?e._notReadyCount++:null!==n&&o!==n&&!0===o?e._notReadyCount--:null!==n&&o!==n&&!1===o&&e._notReadyCount++,n=o,0===i&&e._notReadyCount>0?e._readyDep.changed():i>0&&0===e._notReadyCount&&e._readyDep.changed()});e._comps.push(r),o&&o.onInvalidate(function(){i.afterFlush(function(){r.stop(),e._comps.splice(a.indexOf(e._comps,r),1),!1===n&&0===--e._notReadyCount&&e._readyDep.changed()})})})},y.prototype.ready=function(){return this._readyDep.depend(),0===this._notReadyCount},y.prototype.stop=function(){a.each(this._comps,function(t){t.stop()}),this._comps=[]},s.WaitList=y}).call(this),function(){var t=s.utils.debug("iron:controller"),e=s.Layout,n=s.DynamicTemplate,o=function(t,e){return function(){return"function"==typeof t?t.apply(e,arguments):t}};(f=function(t){var n=this;this.options=t||{},this._layout=this.options.layout||new e(this.options),this._isController=!0,this._layout._setLookupHost(this);var a=f._collectEventMaps.call(this.constructor);this._layout.events(a,this),this.init(t)}).prototype.layout=function(t,e){var n=this;return this._layout.template(t),e&&a.has(e,"data")&&this._layout.data(o(e.data,this)),{data:function(t){return n._layout.data(o(t,n))}}},f.prototype.render=function(t,e){var n=this;e&&void 0!==e.data&&(e.data=o(e.data,this));var a=this._layout.render(t,e);return{data:function(t){return a.data(o(t,n))}}},f.prototype.beginRendering=function(t){return this._layout.beginRendering(t)},f.extend=function(t){return s.utils.extend(this,t)},f.events=function(t){return this._eventMap=t,this};var i=function(t,e){var n={};return t.__super__&&a.extend(n,i(t.__super__.constructor,e)),a.has(t,e)?a.extend(n,t[e]):n};f._collectEventMaps=function(){return i(this,"_eventMap")},f._helpers={},f.helpers=function(t){return a.extend(this._helpers,t),this},void 0!==u&&(s.controller=function(){return n.findLookupHostWithProperty(c.getView(),"_isController")},u.registerHelper("get",function(t){var e=s.controller();if(e&&e.state)return e.state.get(t)})),s.Controller=f}.call(this),function(){var t=s.Layout,e=s.utils.debug("iron:controller"),n=s.utils.defaultValue,o=function(t,e){return function(){return"function"==typeof t?t.apply(e,arguments):t}};f.prototype.init=function(t){this._waitlist=new y,this.state=new r},f.prototype.insert=function(t){return this._layout.insert.apply(this._layout,arguments)},f.prototype.wait=function(t){var e=this;if(t)return a.isArray(t)?a.each(t,function t(n){e.wait(n)}):t.ready?this._waitlist.wait(function(){return t.ready()}):this._waitlist.wait(t),this},f.prototype.ready=function(){return this._waitlist.ready()},f.prototype.stop=function(){this._waitlist.stop()}}.call(this),"undefined"==typeof Package&&(Package={}),Package["iron:controller"]={}}();

!function(){var t=Package.underscore._,o=Package.tracker.Tracker,e=Package.tracker.Deps,r=Package.blaze.Blaze,n=Package.blaze.UI,i=Package.blaze.Handlebars,a=Package["templating-runtime"].Template,s=Package.ejson.EJSON,u=Package.meteor.Meteor,l=Package.meteor.global,c=Package.meteor.meteorEnv,p=Package["iron:core"].Iron,h=Package.htmljs.HTML,f=Package.spacebars.Spacebars,d,_,y,m,g;(function(){d=new u.EnvironmentVariable}).call(this),function(){_=["get","post","put","delete","patch","head"]}.call(this),function(){var o=p.Controller,e=p.Url,r=p.MiddlewareStack,n=p.utils.assert;(y=o.extend({constructor:function(o){y.__super__.constructor.apply(this,arguments),o=o||{},this.options=o,this._onStopCallbacks=[],this.route=o.route,this.params=[];var e=this.lookupOption("data");"function"==typeof e?this.data=t.bind(e,this):void 0!==e&&(this.data=function(){return e}),this.init(o)}})).prototype.lookupOption=function(o){if(this.route&&this.route.options&&t.has(this.route.options,o))return this.route.options[o];if(t.has(this.options,o))return this.options[o];if(void 0!==this[o])return this[o];var e=d.get();return e&&t.has(e,o)?e[o]:this.router&&this.router.options&&t.has(this.router.options,o)?this.router.options[o]:void 0},y.prototype.configureFromUrl=function(t,o,e){n("string"==typeof t,"url must be a string"),o=o||{},this.request=o.request||{},this.response=o.response||{},this.url=o.url||t,this.originalUrl=o.originalUrl||t,this.method=this.request.method,this.route&&this.setParams(this.route.params(t),e)},y.prototype._collectHooks=function(){var o=this,e=t.toArray(arguments),r=function(e){if(!e)return[];var r=o.router.lookupHook,n=t.isArray(e)?e:[e];return t.map(n,function(t){return r(t)})},n=function(o,e){var i=[];return o.__super__&&(i=i.concat(n(o.__super__.constructor,e))),t.has(o.prototype,e)?i.concat(r(o.prototype[e])):i},i=function(t){for(var o=0;o<e.length;o++)t(e[o])},a=[];i(function(t){var e=o.route&&o.route.getName(),r=o.router.getHooks(t,e);a=a.concat(r)});var s=[];i(function(t){var e=n(o.constructor,t);s=s.concat(e)});var u=[];i(function(e){if(t.has(o,e)){var n=r(o[e]);u=u.concat(n)}});var l=[];return o.route&&i(function(t){var e=r(o.route.options[t]);l=l.concat(e)}),a.concat(l).concat(s).concat(u)},y.prototype.runHooks=function(){for(var t=this._collectHooks.apply(this,arguments),o=0,e=t.length;o<e;o++)t[o].call(this);return t.length},y.prototype.getParams=function(){return this.params},y.prototype.setParams=function(t){return this.params=t,this},p.RouteController=y}.call(this),function(){var r=p.Controller,n=p.Url,i=p.MiddlewareStack,a=p.utils.debug("iron-router:RouteController");if(y.prototype.init=function(t){y.__super__.init.apply(this,arguments),this._computation=null,this._paramsDep=new o.Dependency,this.location=p.Location},y.prototype.getParams=function(){return this._paramsDep.depend(),this.params},y.prototype.setParams=function(o,e){if(!function(o,r){if(!(o instanceof Array))throw new Error("you called equals with a non array value in setParams");if(!(r instanceof Array))return!1;if(o.length!==r.length)return!1;for(var n=0;n<o.length;n++)if(!s.equals(o[n],r[n],e))return!1;var i=t.keys(o),a=t.keys(r),u;if(i.length!==a.length)return!1;for(var n=0;n<i.length;n++){if(u=i[n],!t.has(r,u))return!1;if(!s.equals(o[u],r[u]))return!1}return!0}(this.params,o))return this.params=o,!1!==(e=e||{}).reactive&&this._paramsDep.changed(),this},y.prototype.dispatch=function(t,o,r){if(this._computation&&!this._computation.stopped)throw new Error("RouteController computation is already running. Stop it first.");var n=this;return e.nonreactive(function(){e.autorun(function(e){n._computation=e,t.dispatch(o,n,r)})}),n},y.prototype._runRoute=function(o,r,n){var a=this,s=this._collectHooks("subscriptions");t.each(s,function(t){a.wait(t.call(a))});var u=this._collectHooks("waitOn");t.each(u,function(t){a.wait(t.call(a))});var l=u.length>0,c,h,f=function(){return e.nonreactive(function(){return a._layout.template()})},d=function(){return e.nonreactive(function(){var t=a._layout._regions.main;return t&&t.template()})},_=f(),m=d();this.beginRendering(function o(e){if(!a.isStopped){var r=f(),n=d();if(_!==r||m!=n){var i=a._layout.regionKeys(),s=t.difference(i,e);t.each(s,function(t){a._layout.clear(t)})}}}),this.layout(this.lookupOption("layoutTemplate"),{data:this.lookupOption("data")});var g=new i,v=new i,k=new i;v.append(this._collectHooks("onRun","load"),{where:"client"}),k.append(this._collectHooks("onRerun"),{where:"client"}),g.append(function t(o,e,r){this._computation.firstRun&&!y._hasJustReloaded&&v.length>0?v.dispatch(o.url,this,r):r(),y._hasJustReloaded=!1},function t(o,e,r){this._computation.firstRun?r():k.length>0?k.dispatch(o.url,this,r):r()},{where:"client"}),l&&g.push(t.bind(p.Router.hooks.loading,a));var R=this._collectHooks("onBeforeAction","before");g.append(R,{where:"client"}),0===o._actionStack.length&&o._actionStack.push(o._path,"action",o.options),g=g.concat(o._actionStack),this._rendered=!1,g.dispatch(r,this,n),e.afterFlush(function(){p.utils.warn(a._rendered||a.isStopped,"Route dispatch never rendered. Did you forget to call this.next() in an onBeforeAction?")}),this.runHooks("onAfterAction","after")},y.prototype.action=function(){this.render()},y.prototype.lookupTemplate=function(){return this.lookupOption("template")||this.router&&this.router.toTemplateName(this.route.getName())},y.prototype.lookupRegionTemplates=function(){return this.lookupOption("yieldRegions")||this.lookupOption("regionTemplates")||this.lookupOption("yieldTemplates")||{}},y.prototype.render=function(t,o){if(this._rendered=!0,0===arguments.length){var t=this.lookupTemplate(),e=y.__super__.render.call(this,t);return this.renderRegions(),e}return y.__super__.render.call(this,t,o)},y.prototype.renderRegions=function(){var o=this,e=this.lookupRegionTemplates();a("regionTemplates: "+JSON.stringify(e)),t.each(e,function(t,e){o.render(e,t)})},y.prototype.stop=function(){y.__super__.stop.call(this),this._computation&&this._computation.stop(),this.runHooks("onStop","unload"),this.isStopped=!0},y.prototype.redirect=function(){return this.router.go.apply(this.router,arguments)},y.prototype.subscribe=function(){var o=this,e=u.subscribe.apply(this,arguments);return t.extend(e,{wait:function(){o.wait(this)}})},Package.reload){Package.reload.Reload._onMigrate("iron-router",function(){return[!0,!0]});var l=Package.reload.Reload._migrationData("iron-router");y._hasJustReloaded=l}}.call(this),function(){var o=p.Url,e=p.MiddlewareStack,r=p.utils.assert;(m=function(o,r,n){var i=function(t,o,e){var r=this;r.request=t,r.response=o,i.dispatch(t.url,r,e)};return"object"==typeof r&&(r=(n=r).action),n=n||{},"string"==typeof o&&"/"!==o.charAt(0)&&(o=n.path?n.path:"/"+o),t.extend(i,this.constructor.prototype),n=i.options=n||{},i._actionStack=new e,i._beforeStack=new e,i._beforeStack.append(i.options.onBeforeAction),i._beforeStack.append(i.options.before),i._afterStack=new e,i._afterStack.append(i.options.onAfterAction),i._afterStack.append(i.options.after),i._methods={},"string"==typeof r?i._actionStack.push(o,t.extend(n,{template:r})):"function"!=typeof r&&"object"!=typeof r||i._actionStack.push(o,r,n),i._path=o,i}).prototype.getName=function(){return this.handler&&this.handler.name},m.prototype.findControllerConstructor=function(){var t=this,o=function(t,o){o=o||{};var e=p.utils.resolve(t);if(e&&y.prototype.isPrototypeOf(e.prototype))return e;if(!0!==o.supressErrors)throw new Error("RouteController '"+t+"' is not defined.")},e=function(o){return t.router.toControllerName(o)},r,n=this.getName();return"function"==typeof this.options.controller?this.options.controller:"string"==typeof this.options.controller?o(this.options.controller):this.router&&this.router.options.controller?"function"==typeof this.router.options.controller?this.router.options.controller:"string"==typeof this.router.options.controller?o(this.router.options.controller):void 0:n&&(r=o(e(n),{supressErrors:!0}))?r:y},m.prototype.createController=function(t){t=t||{};var o=this.findControllerConstructor();return t.route=this,new o(t)},m.prototype.setControllerParams=function(t,o){},m.prototype.dispatch=function(t,o,e){return r(o._runRoute,"context doesn't have a _runRoute method"),o._runRoute(this,t,e)},m.prototype.path=function(t,o){return this.handler.resolve(t,o)},m.prototype.url=function(t,o){var e=this.path(t,o),r=o&&o.host||u.absoluteUrl();return"/"===r.charAt(r.length-1)&&(r=r.slice(0,r.length-1)),r+e},m.prototype.params=function(t){return this.handler.params(t)},t.each(_,function(t){m.prototype[t]=function(o){return this._methods[t]=!0,this._actionStack.push(this._path,o,{name:this.getName()+"_"+t.toLowerCase(),method:t,where:this.handler.where,mount:!1}),this}}),p.Route=m}.call(this),function(){var o=p.MiddlewareStack,e=p.Url,r=p.Layout,n=p.utils.warn,i=p.utils.assert;(g=function(e){function r(t,o,e){r.dispatch(t.url,{request:t,response:o},e)}return r._stack=new o,r._globalHooks={},r.routes=[],r.routes._byPath={},this.configure.call(r,e),t.extend(r,this.constructor.prototype),this.init.call(r,e),u.startup(function(){u.defer(function(){!1!==r.options.autoStart&&r.start()})}),r}).prototype.init=function(t){},g.prototype.configure=function(o){var e=this;o=o||{};var r=function(o){return o?t.isArray(o)?o:[o]:[]};return t.each(p.Router.HOOK_TYPES,function n(i){o[i]&&(t.each(r(o[i]),function t(o){e.addHook(i,o)}),delete o[i])}),this.options=this.options||{},t.extend(this.options,o),this},g.prototype.map=function(t){return t.call(this)},g.prototype.route=function(t,o,e){var r=function(t){return Object.prototype.toString.call(t)};i("[object String]"===r(t)||"[object RegExp]"===r(t),"Router.route requires a path that is a string or regular expression."),"object"==typeof o&&(o=(e=o).action);var n=new m(t,o,e);(e=e||{}).mount=!1;var a=this._stack.push(t,n,e);return a.route=n,n.handler=a,n.router=this,i(!this.routes._byPath[a.path],"A route for the path "+JSON.stringify(a.path)+" already exists by the name of "+JSON.stringify(a.name)+"."),this.routes._byPath[a.path]=n,this.routes.push(n),"string"==typeof a.name&&(this.routes[a.name]=n),n},g.prototype.findFirstRoute=function(t){for(var o,e,r=0;r<this.routes.length;r++)if(e=this.routes[r],o=e.handler.test(t,{where:u.isServer?"server":"client"}))return e;return null},g.prototype.path=function(t,o,e){var r=this.routes[t];return n(r,"You called Router.path for a route named "+JSON.stringify(t)+" but that route doesn't seem to exist. Are you sure you created it?"),r&&r.path(o,e)},g.prototype.url=function(t,o,e){var r=this.routes[t];return n(r,"You called Router.url for a route named "+JSON.stringify(t)+" but that route doesn't seem to exist. Are you sure you created it?"),r&&r.url(o,e)},g.prototype.createController=function(t,o){var e=this.findFirstRoute(t),r;return o=o||{},r=e?e.createController({layout:this._layout}):new y({layout:this._layout}),r.router=this,r.configureFromUrl(t,o,{reactive:!1}),r},g.prototype.setTemplateNameConverter=function(t){return this._templateNameConverter=t,this},g.prototype.setControllerNameConverter=function(t){return this._controllerNameConverter=t,this},g.prototype.toTemplateName=function(t){return this._templateNameConverter?this._templateNameConverter(t):p.utils.classCase(t)},g.prototype.toControllerName=function(t){return this._controllerNameConverter?this._controllerNameConverter(t):p.utils.classCase(t)+"Controller"},g.prototype.addHook=function(o,e,r){var n=this,i=function(o){return o?t.isArray(o)?o:[o]:[]};(r=r||{}).only&&(r.only=i(r.only)),r.except&&(r.except=i(r.except));var a=function(){var t=this,o=arguments;return d.withValue(r,function(){return n.lookupHook(e).apply(t,o)})};return(this._globalHooks[o]=this._globalHooks[o]||[]).push({options:r,hook:a}),this},g.prototype.lookupHook=function(o){var e=o;if(t.isFunction(e))return e;if(t.isString(e)&&t.isFunction(p.Router.hooks[e]))return p.Router.hooks[e];throw new Error("No hook found named: "+o)},g.prototype.getHooks=function(o,e){var r=this,n=[];return t.each(this._globalHooks[o],function(o){var r=o.options;return r.except&&t.include(r.except,e)?[]:r.only&&!t.include(r.only,e)?[]:void n.push(o.hook)}),n},g.HOOK_TYPES=["onRun","onRerun","onBeforeAction","onAfterAction","onStop","waitOn","subscriptions","load","before","after","unload"],g.hooks={},g.plugins={},t.each(g.HOOK_TYPES,function(t){g.prototype[t]=function(o,e){this.addHook(t,o,e)}}),g.prototype.plugin=function(t,o){var e;if("function"==typeof t?e=t:"string"==typeof t&&(e=p.Router.plugins[t]),!e)throw new Error("No plugin found named "+JSON.stringify(t));return e.call(this,this,o),this},p.Router=g}.call(this),function(){if(void 0!==a)var t=new a("DefaultLoadingTemplate",function(){return"Loading..."}),o=new a("DefaultDataNotFoundTemplate",function(){return"Data not found..."});g.hooks.loading=function(){if(this.ready())this.next();else{var o=this.lookupOption("loadingTemplate");this.render(o||t),this.renderRegions()}},g.hooks.dataNotFound=function(){if(this.ready()){var t=this.lookupOption("data"),e,r=this.lookupOption("notFoundTemplate");if("function"==typeof t&&!(e=t.call(this)))return this.render(r||o),void this.renderRegions();this.next()}else this.next()}}.call(this),function(){var o=p.utils.warn,e=p.DynamicTemplate,i=p.utils.debug("iron:router <helpers>");n.registerHelper("Router",new r.Template("Router",function(){return g.createView()})),n.registerHelper("pathFor",function(e){var r;arguments.length>1&&(r=arguments[0],e=arguments[1]||{});var n=e&&e.hash,i="",a=(n=n||{}).query,u=n.hash,r=r||n.route,l=t.extend({},n.data||this),c=g.routes[r];return o(c,"pathFor couldn't find a route named "+JSON.stringify(r)),c&&(t.each(c.handler.compiledUrl.keys,function(o){var e=o.name;t.has(n,e)&&(l[e]=s.clone(n[e]),delete n[e])}),i=c.path(l,{query:a,hash:u})),i}),n.registerHelper("urlFor",function(e){var r;arguments.length>1&&(r=arguments[0],e=arguments[1]||{});var n=e&&e.hash,i="",a=(n=n||{}).query,u=n.hash,r=r||n.route,l=t.extend({},n.data||this),c=g.routes[r];return o(c,"urlFor couldn't find a route named "+JSON.stringify(r)),c&&(t.each(c.handler.compiledUrl.keys,function(o){var e=o.name;t.has(n,e)&&(l[e]=s.clone(n[e]),delete n[e])}),i=c.url(l,{query:a,hash:u})),i}),n.registerHelper("linkTo",new r.Template("linkTo",function(){var n=this,i=e.getInclusionArguments(this);if("object"!=typeof i)throw new Error("linkTo options must be key value pairs such as {{#linkTo route='my.route.name'}}. You passed: "+JSON.stringify(i));var a="",u=(i=i||{}).query,l=i.hash,c=i.route,p=t.extend({},i.data||e.getParentDataContext(this)),f=g.routes[c],d;o(f,"linkTo couldn't find a route named "+JSON.stringify(c)),f&&(t.each(f.handler.compiledUrl.keys,function(o){var e=o.name;t.has(i,e)&&(p[e]=s.clone(i[e]),delete i[e])}),a=f.path(p,{query:u,hash:l}));var _=t.omit(i,"route","query","hash","data");return _.href=a,r.With(function(){return e.getParentDataContext(n)},function(){return h.A(_,n.templateContentBlock)})}))}.call(this),function(){var o=p.MiddlewareStack,r=p.Url,n=p.Layout,i=p.utils.assert,a="__IronRouterNotFound__",s="__IronRouterNoRoutes__";g.prototype.init=function(t){var o=this;o._currentController=null,o._currentRoute=null,o._currentDep=new e.Dependency,o._locationComputation=null,o._layout=new n({template:o.options.layoutTemplate}),u.startup(function(){setTimeout(function t(){!1!==o.options.autoRender&&o.insert({el:document.body})})})},g.prototype.insert=function(t){return this._layout.insert(t),this},g.prototype.createView=function(){return this._layout.create()},g.prototype.lookupNotFoundTemplate=function(){return this.options.notFoundTemplate?this.options.notFoundTemplate:0===this.routes.length?s:"__IronRouterNotFound__"},g.prototype.lookupLayoutTemplate=function(){return this.options.layoutTemplate},g.prototype.dispatch=function(t,o,r){var n=this;i("string"==typeof t,"expected url string in router dispatch");var a=this._currentController,u=this.findFirstRoute(t),l=this._currentRoute;return this._currentRoute=u,this._currentController&&this._currentController.stop(),a&&u&&l===u?a.configureFromUrl(t,o):a=this.createController(t,o),this._currentController=a,a.dispatch(n._stack,t,function t(o){if(o)throw o;if(!a.isHandled()){var i=e.nonreactive(function(){return a.location.get().options.historyState});if(i&&!0===i.initial){this.layout(this.lookupOption("layoutTemplate"),{data:{url:this.url}});var u;u=0===n.routes.length?this.lookupOption("noRoutesTemplate")||s:this.lookupOption("notFoundTemplate")||"__IronRouterNotFound__",this.render(u,{data:{url:this.url}}),this.renderRegions(),a.isHandled=function(){return!0}}return r&&r.call(a)}}),this._currentController==a&&this._currentDep.changed(),a},g.prototype.current=function(){return this._currentDep.depend(),this._currentController},g.prototype._scrollToHash=function(t){try{var o=$(t);$("html, body").scrollTop(o.offset().top)}catch(t){}},g.prototype.start=function(){var t=this,o;t._locationComputation=e.autorun(function e(r){var n,i=p.Location.get(),a,s,u,l=t._currentController;!l||o&&o.path!==i.path?n=t.dispatch(i.href,null,function t(o){this.isHandled()||(i.cancelUrlChange(),window.location=i.path)}):(t._scrollToHash(i.hash),l.configureFromUrl(i.href)),o=i})},g.prototype.stop=function(){this._isStarted&&(this._locationComputation&&this._locationComputation.stop(),this._currentController&&this._currentController.stop(),this._isStarted=!1)},g.prototype.go=function(o,e,r){var n=this,a=/^\/|http/,s;if(r=r||{},a.test(o))s=o;else{var u=n.routes[o];i(u,"No route found named "+JSON.stringify(o)),s=u.path(e,t.extend(r,{throwOnMissingParams:!0}))}p.Location.go(s,r)}}.call(this),function(){g.plugins.loading=function(t,o){t.onBeforeAction("loading",o)},g.plugins.dataNotFound=function(t,o){t.onBeforeAction("dataNotFound",o)}}.call(this),function(){g=new p.Router}.call(this),function(){a.__checkName("__IronRouterNotFound__"),a.__IronRouterNotFound__=new a("Template.__IronRouterNotFound__",function(){var t=this;return h.DIV({style:"width: 600px; margin: 0 auto; padding: 20px;"},"\n ",h.DIV({style:"font-size: 18pt; color: #999;"},"\n Oops, looks like there's no route on the client or the server for url: \"",r.View("lookup:url",function(){return f.mustache(t.lookup("url"))}),'."\n '),"\n ")}),a.__checkName("__IronRouterNoRoutes__"),a.__IronRouterNoRoutes__=new a("Template.__IronRouterNoRoutes__",function(){var t=this;return h.Raw('<div style="font-family: helvetica; color: #777; max-width: 600px; margin: 20px auto;">\n <h1 style="text-align: center; margin: 0; font-size: 48pt;">\n iron:router\n </h1>\n <p style="text-align: center; font-size: 1.3em; color: red;">\n No route definitions found.\n </p>\n <div style="margin: 50px 0px;">\n <p>To create a route:</p>\n <pre style="background: #f2f2f2; margin: 0; padding: 10px;">\nRouter.route(\'/\', function () {\n this.render(\'Home\', {\n data: function () { return Items.findOne({_id: this.params._id}); }\n });\n});\n </pre>\n <p style="text-align:center"><small>To hide this page, set \'noRoutesTemplate\' in <a href="http://iron-meteor.github.io/iron-router/#global-default-options" target="_blank">Router.configure()</a></small></p>\n </div>\n <div style="margin: 50px 0px; text-align: center;">\n Check it out on Github:<br>\n <a href="https://github.com/iron-meteor/iron-router/" target="_blank">https://github.com/iron-meteor/iron-router/</a>\n <br>\n <br>\n And check out the new Guide:<br>\n <a href="https://iron-meteor.github.io/iron-router" target="_blank">\n https://iron-meteor.github.io/iron-router\n </a>\n </div>\n </div>')})}.call(this),"undefined"==typeof Package&&(Package={}),function(t,o){for(var e in o)e in t||(t[e]=o[e])}(Package["iron:router"]={},{Router:g,RouteController:y})}();

!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 e=Package.meteor.Meteor,r=Package.meteor.global,a=Package.meteor.meteorEnv,n=Package.underscore._,c,t;(function(){var e=function(e){return encodeURIComponent(e).replace(/\*/g,"%2A")};(c={})._encodeParams=function(r,a){var n=[],c=Array.isArray(r);for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t)){var o=a?a+"["+(c?"":t)+"]":t,i=r[t];if("object"==typeof i)n.push(this._encodeParams(i,o));else{var l=e(o).replace("%5B","[").replace("%5D","]");n.push(l+"="+e(i))}}return n.join("&").replace(/%20/g,"+")},t=function(e,r,a,n){var t=e,o=r?r.slice(1):null;if("string"==typeof a&&(o=String(a)),n){o=o||"";var i=c._encodeParams(n);o&&i&&(o+="&"),o+=i}var l=t;return null!==o&&(l+="?"+o),l}}).call(this),function(){c._constructUrl=function(e,r,a){var n=/^(.*?)(\?.*)?$/.exec(e);return t(n[1],n[2],r,a)}}.call(this),"undefined"==typeof Package&&(Package={}),function(e,r){for(var a in r)a in e||(e[a]=r[a])}(Package.url={},{URL:c})}();

!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.process,s=Package["babel-runtime"].meteorBabelHelpers,i=Package.promise.Promise,l=Package["ecmascript-runtime-client"].Symbol,p=Package["ecmascript-runtime-client"].Map,u=Package["ecmascript-runtime-client"].Set,f,d,m,h=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;f=function(t,n){var a="failed ["+t+"]";return n&&(a+=" "+e(("string"==typeof n?n:n.toString()).replace(/\n/g," "),500)),new Error(a)},d=function(e){var t=(e.headers["content-type"]||";").split(";")[0];if(a.include(["application/json","text/javascript","application/javascript","application/x-javascript"],t))try{e.data=JSON.parse(e.content)}catch(t){e.data=null}else e.data=null},(m={}).get=function(){return m.call.apply(this,["GET"].concat(a.toArray(arguments)))},m.post=function(){return m.call.apply(this,["POST"].concat(a.toArray(arguments)))},m.put=function(){return m.call.apply(this,["PUT"].concat(a.toArray(arguments)))},m.del=function(){return m.call.apply(this,["DELETE"].concat(a.toArray(arguments)))},m.patch=function(){return m.call.apply(this,["PATCH"].concat(a.toArray(arguments)))}},"httpcall_client.js":function(t,n,o){m.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 i={},l=o.content;o.data&&(l=JSON.stringify(o.data),i["Content-Type"]="application/json");var p,u;if(l||"GET"===t||"HEAD"===t?p=o.params:u=o.params,n=r._constructUrl(n,o.query,p),!1===o.followRedirects)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 m,h;if(o.auth){var g=o.auth.indexOf(":");if(g<0)throw new Error('auth option should be of the form "username:password"');m=o.auth.substring(0,g),h=o.auth.substring(g+1)}u&&(l=r._encodeParams(u)),a.extend(i,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't create XMLHttpRequest");y=new ActiveXObject("Microsoft.XMLHttp")}y.open(t,n,!0,m,h);for(var v in s.sanitizeForInObject(i))y.setRequestHeader(v,i[v]);var P=!1,w;if(o.timeout&&(w=e.setTimeout(function(){P=!0,y.abort()},o.timeout)),y.onreadystatechange=function(t){if(4===y.readyState)if(w&&e.clearTimeout(w),P)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])}),d(n);var s=null;n.statusCode>=400&&(s=f(n.statusCode,n.content)),c(s,n)}else c(new Error("network"))},o.beforeSend&&!1===a.once(o.beforeSend).call(null,y,o))return y.abort();y.send(l)}catch(e){c(e)}}},"deprecated.js":function(){e.http=m}}}}},{extensions:[".js",".json"]});h("./node_modules/meteor/http/httpcall_common.js"),h("./node_modules/meteor/http/httpcall_client.js"),h("./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:m})}();

!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,a=Package.meteor.meteorEnv,n=Package.underscore._,c=Package.modules.meteorInstall,o=Package.modules.process,s=Package["babel-runtime"].meteorBabelHelpers,r=Package.promise.Promise,i=Package["ecmascript-runtime-client"].Symbol,m=Package["ecmascript-runtime-client"].Map,u=Package["ecmascript-runtime-client"].Set,l;c({node_modules:{meteor:{webapp:{"webapp_client.js":function(){l={_isCssLoaded:function(){return 0===document.styleSheets.length||n.find(document.styleSheets,function(e){return e.cssText&&!e.cssRules?!e.cssText.match(/meteor-css-not-found-error/):!n.find(e.cssRules,function(e){return".meteor-css-not-found-error"===e.selectorText})})}}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/webapp/webapp_client.js"),"undefined"==typeof Package&&(Package={}),function(e,t){for(var a in t)a in e||(e[a]=t[a])}(Package.webapp={},{WebApp:l})}();

!function(){var a=Package["ddp-client"].DDP,e;"undefined"==typeof Package&&(Package={}),function(a,e){for(var i in e)i in a||(a[i]=e[i])}(Package.livedata={},{DDP:a,LivedataTest:void 0})}();

!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,t=Package.meteor.meteorEnv,r=Package.modules.meteorInstall,o=Package.modules.process,c=Package.promise.Promise,u=Package["ddp-client"].DDP,i=Package.check.check,a=Package.check.Match,s=r({node_modules:{meteor:{"dynamic-import":{"client.js":function(n,t,o){function u(e){function n(e){e&&"object"==typeof e?Object.keys(e).forEach(function(r){t.push(r),n(e[r]),t.pop()}):"string"==typeof e&&(r[t.join("/")]=e)}var t=[""],r=Object.create(null);return n(e),r}function i(e,n,t){return function(){return(t&&t.eval||eval)("("+n+")\n//# sourceURL="+e).apply(this,arguments)}}function a(n){return new c(function(t,r){e.call("__dynamicImport",n,function(e,n){e?r(e):t(n)})})}function s(e,n){return n.split("/").every(function(n){return!n||(e=e[n])}),e}function f(e,n,t){var r=n.split("/"),o=r.length-1;r.forEach(function(n,r){n&&(e=e[n]=e[n]||(r<o?Object.create(null):t))})}function d(e,n){var t;return e.watch(e.require(n),{"*":function(e){t=e}}),Object.defineProperty(t,"__esModule",{value:!0,enumerable:!1}),t}var l=o.constructor,y=n("./cache.js");l.prototype.dynamicImport=function(e){var n=this;return n.prefetch(e).then(function(){return d(n,e)})},r.fetch=function(e){var t=Object.create(null),r=Object.create(null),o=n("./dynamic-versions.js"),c;return Object.keys(e).forEach(function(e){var n=s(o,e);n?r[e]=n:f(c=c||Object.create(null),e,1)}),y.checkMany(r).then(function(n){return Object.keys(n).forEach(function(r){var o=n[r];if(o){var u=e[r];f(t,r,i(r,o,u.options))}else f(c=c||Object.create(null),r,1)}),c&&a(c).then(function(n){var r=Object.create(null),c=u(n);Object.keys(c).forEach(function(n){var u=c[n],a=e[n];f(t,n,i(n,u,a.options));var d=s(o,n);d&&(r[n]={version:d,source:u})}),y.setMany(r)})}).then(function(){return t})}},"cache.js":function(n,t,r){function o(){return"undefined"!=typeof indexedDB?indexedDB:"undefined"!=typeof webkitIndexedDB?webkitIndexedDB:"undefined"!=typeof mozIndexedDB?mozIndexedDB:"undefined"!=typeof OIndexedDB?OIndexedDB:"undefined"!=typeof msIndexedDB?msIndexedDB:void 0}function u(e){return(f=f||new c(function(e,n){var t=o();if(!t)throw new Error("IndexedDB not available");var r=t.open("MeteorDynamicImportCache",2);r.onupgradeneeded=function(e){var n=e.target.result;Array.from(n.objectStoreNames).forEach(n.deleteObjectStore,n),Object.keys(l).forEach(function(e){n.createObjectStore(e,l[e])})},r.onerror=i(n,"indexedDB.open"),r.onsuccess=function(n){e(n.target.result)}})).then(e,function(n){return e(null)})}function i(e,n){return function(t){return e(new Error("IndexedDB failure in "+n+" "+JSON.stringify(t.target))),!0}}function a(){if(y>0)return a.timer=setTimeout(a,100);a.timer=null;var e=m;return m=Object.create(null),u(function(n){if(n){var t=n.transaction(["sourcesByVersion"],"readwrite").objectStore("sourcesByVersion");return c.all(Object.keys(e).map(function(n){var r=e[n];return new c(function(e,n){var o=t.put({version:r.version,source:r.source});o.onerror=i(n,"sourcesByVersion.put"),o.onsuccess=e})}))}})}var s=Object.prototype.hasOwnProperty,f,d=e.isClient&&!e.isCordova&&e.isProduction,l={sourcesByVersion:{keyPath:"version"}},y=0;t.checkMany=function(e){var n=Object.keys(e),t=Object.create(null);return n.forEach(function(e){t[e]=null}),d?u(function(r){function o(){return--y,t}if(!r)return t;var u=r.transaction(["sourcesByVersion"],"readonly").objectStore("sourcesByVersion");return++y,c.all(n.map(function(n){return new c(function(r,o){if(e[n]){var c=u.get(e[n]);c.onerror=i(o,"sourcesByVersion.get"),c.onsuccess=function(e){var o=e.target.result;o&&(t[n]=o.source),r()}}else r()})})).then(o,o)}):c.resolve(t)};var m=Object.create(null);t.setMany=function(e){d&&(Object.assign(m,e),a.timer||(a.timer=setTimeout(a,100)))}},"dynamic-versions.js":function(e,n,t){t.exports={}}}}}},{extensions:[".js",".json"]})("./node_modules/meteor/dynamic-import/client.js");"undefined"==typeof Package&&(Package={}),Package["dynamic-import"]=s}();

!function(){"undefined"==typeof Package&&(Package={}),Package["hot-code-push"]={}}();

!function(){var e=Package.meteor.Meteor,n=Package.meteor.global,a=Package.meteor.meteorEnv,r;(function(){var n=0,a=!1;r={hold:function(){if(!e.isCordova)return{release:function(){}};if(a)throw new Error("Can't show launch screen once it's hidden");n++;var r=!1;return{release:function(){e.isCordova&&(r||(r=!0,0===--n&&"undefined"!=typeof navigator&&navigator.splashscreen&&(a=!0,navigator.splashscreen.hide())))}}}}}).call(this),function(){var n=r.hold(),a=Package.templating&&Package.templating.Template;e.startup(function(){a?Package["iron:router"]?Package["iron:router"].Router.onAfterAction(function(){n.release()}):(a.body.onRendered(function(){n.release()}),setTimeout(function(){n.release()},6e3)):n.release()})}.call(this),"undefined"==typeof Package&&(Package={}),function(e,n){for(var a in n)a in e||(e[a]=n[a])}(Package["launch-screen"]={},{LaunchScreen:r})}();

!function(){var e=Package.meteor.Meteor,t=Package.meteor.global,n=Package.meteor.meteorEnv,a=Package.tracker.Tracker,r=Package.tracker.Deps,o=Package.retry.Retry,i=Package["ddp-client"].DDP,s=Package.mongo.Mongo,c=Package.underscore._,u,l;(function(){var t=__meteor_runtime_config__.autoupdateVersion||"unknown",n=__meteor_runtime_config__.autoupdateVersionRefreshable||"unknown";u=new s.Collection("meteor_autoupdate_clientVersions"),(l={}).newClientAvailable=function(){return!!u.findOne({_id:"version",version:{$ne:t}})||!!u.findOne({_id:"version-refreshable",version:{$ne:n}})},l._ClientVersions=u;var a=!1,r=new o({minCount:0,baseTimeout:3e4}),i=0;l._retrySubscription=function(){e.subscribe("meteor_autoupdate_clientVersions",{onError:function(t){e._debug("autoupdate subscription failed:",t),i++,r.retryLater(i,function(){l._retrySubscription()})},onReady:function(){if(Package.reload)var r=function(r){var i=this;if("version-refreshable"===r._id&&r.version!==n){n=r.version;var s=r.assets&&r.assets.allCss||[],u=[];c.each(document.getElementsByTagName("link"),function(e){"__meteor-css__"===e.className&&u.push(e)});var l=function(t,n){var r=c.once(n);if(t.onload=function(){a=!0,r()},!a)var o=e.setInterval(function(){t.sheet&&(r(),e.clearInterval(o))},50)},d=c.after(s.length,function(){c.each(u,function(e){e.parentNode.removeChild(e)})}),f=function(t){document.getElementsByTagName("head").item(0).appendChild(t),l(t,function(){e.setTimeout(d,200)})};0!==s.length?c.each(s,function(e){var t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("class","__meteor-css__"),t.setAttribute("href",e.url),f(t)}):d()}else"version"===r._id&&r.version!==t&&(o&&o.stop(),Package.reload&&Package.reload.Reload._reload())},o=u.find().observe({added:r,changed:r})}})},l._retrySubscription()}).call(this),"undefined"==typeof Package&&(Package={}),function(e,t){for(var n in t)n in e||(e[n]=t[n])}(Package.autoupdate={},{Autoupdate:l})}();

Mongo=Package.mongo.Mongo,ReactiveVar=Package["reactive-var"].ReactiveVar,Tracker=Package.tracker.Tracker,Deps=Package.tracker.Deps,Router=Package["iron:router"].Router,RouteController=Package["iron:router"].RouteController,Session=Package.session.Session,HTTP=Package.http.HTTP,Meteor=Package.meteor.Meteor,global=Package.meteor.global,meteorEnv=Package.meteor.meteorEnv,WebApp=Package.webapp.WebApp,_=Package.underscore._,DDP=Package["ddp-client"].DDP,LaunchScreen=Package["launch-screen"].LaunchScreen,Blaze=Package.ui.Blaze,UI=Package.ui.UI,Handlebars=Package.ui.Handlebars,Spacebars=Package.spacebars.Spacebars,Template=Package["templating-runtime"].Template,meteorInstall=Package.modules.meteorInstall,process=Package.modules.process,meteorBabelHelpers=Package["babel-runtime"].meteorBabelHelpers,Promise=Package.promise.Promise,Iron=Package["iron:core"].Iron,Autoupdate=Package.autoupdate.Autoupdate,Reload=Package.reload.Reload,HTML=Package.htmljs.HTML,Symbol=Package["ecmascript-runtime-client"].Symbol,Map=Package["ecmascript-runtime-client"].Map,Set=Package["ecmascript-runtime-client"].Set;

",HTML.Raw("\x3c!-- {{> leaderboardbottom}} --\x3e"),"\n "),"\n\n\n\n "),"\n\n\n\n\n ",HTML.Raw("<br>"),HTML.Raw("<br>"),HTML.Raw("<br>"),HTML.Raw("<br>"),"\n ")]}),Meteor.startup(Template.body.renderToDocument),Template.__checkName("result"),Template.result=new Template("Template.result",function(){var t=this;return HTML.TR(HTML.TD({class:"linewrap"},HTML.CODE(Blaze.View("lookup:password",function(){return Spacebars.mustache(t.lookup("password"))})),"\n ",Blaze.If(function(){return Spacebars.call(t.lookup("displayphonetic"))},function(){return["\n ",HTML.BR(),"\n ",HTML.DIV({class:"muted"},Blaze.View("lookup:phonetic",function(){return Spacebars.mustache(t.lookup("phonetic"))})),"\n "]}),"\n "))}),Template.__checkName("error"),Template.error=new Template("Template.error",function(){var t=this;return HTML.DIV({class:"alert alert-danger",role:"alert"},Blaze.View("lookup:error",function(){return Spacebars.mustache(t.lookup("error"))}))}),Template.__checkName("apiurl"),Template.apiurl=new Template("Template.apiurl",function(){var t=this;return["Direct link to these settings:\n ",HTML.DIV({class:"apiurl"},HTML.A({href:function(){return Spacebars.mustache(Spacebars.dot(t.lookup("apiurl"),"apurl"))}},Blaze.View("lookup:apiurl.apurl",function(){return Spacebars.mustache(Spacebars.dot(t.lookup("apiurl"),"apurl"))}))),"\n\n JSON API link:\n ",HTML.DIV({class:"apiurl"},HTML.A({href:function(){return Spacebars.mustache(Spacebars.dot(t.lookup("apiurl"),"jsonapiurl"))}},Blaze.View("lookup:apiurl.jsonapiurl",function(){return Spacebars.mustache(Spacebars.dot(t.lookup("apiurl"),"jsonapiurl"))})))]}),Template.__checkName("leaderboard"),Template.leaderboard=new Template("Template.leaderboard",function(){var t=this;return HTML.Raw('<div class="leaderboard"></div>')}),Template.__checkName("leaderboardbottom"),Template.leaderboardbottom=new Template("Template.leaderboardbottom",function(){var t=this;return HTML.Raw('<div class="leaderboardbottom"></div>')})},"body.js":function(t,e,n){function s(t){var e=[];if(e.upper=h(t).upper,e.lower=h(t).lower,e.numbers=h(t).numbers,e.specialCharacters=h(t).special,e.pwlength=h(t).length,e.avoid=h(t).exclude,e.repeat=h(t).repeat,e.phonetic=h(t).phonetic,Meteor.isServer)return e;for(var i in meteorBabelHelpers.sanitizeForInObject(e))if(void 0!=e[i])if("pwlength"==i)$("#length").val(e[i]);else if("avoid"==i){var n=unescape(e[i]);$("#avoid").val(n)}else"repeat"==i?$("#repeat").val(e[i]):"upper"==i?"off"==e[i]&&($("#upper").attr("checked",!1),$("#upper").bootstrapSwitch("state",!1)):"phonetic"==i?"on"==e[i]&&($("#phonetic").attr("checked",!0),$("#phonetic").bootstrapSwitch("state",!0)):"lower"==i?"off"==e[i]&&($("#lower").attr("checked",!1),$("#lower").bootstrapSwitch("state",!1)):"numbers"==i?"off"==e[i]&&($("#numbers").attr("checked",!1),$("#numbers").bootstrapSwitch("state",!1)):"specialCharacters"==i&&"off"==e[i]&&($("#specialCharacters").attr("checked",!1),$("#specialCharacters").bootstrapSwitch("state",!1))}function o(t){var e="https://passwordwolf.com/",i="?";if(0==t.upper&&(i+="upper=off&"),0==t.lower&&(i+="lower=off&"),0==t.numbers&&(i+="numbers=off&"),0==t.specialCharacters&&(i+="special=off&"),1==t.phonetic&&(i+="phonetic=on&"),15!=t.length&&(i=i+"length="+t.length+"&"),"?!<>li1I0OB8`"!=t.avoid){var n=t.avoid;for(c in meteorBabelHelpers.sanitizeForInObject(n)){var s=n[c];"&"==s?t.avoid=t.avoid.replace(/&/g,"%26"):"="==s?t.avoid=t.avoid.replace(/\=/g,"%3D"):"+"==s?t.avoid=t.avoid.replace(/\+/g,"%2B"):"`"==s?t.avoid=t.avoid.replace(/`/g,"%60"):"#"==s?t.avoid=t.avoid.replace(/\#/g,"%23"):"/"==s?t.avoid=t.avoid.replace(/\//g,"%2F"):":"==s?t.avoid=t.avoid.replace(/:/g,"%3A"):"?"==s?t.avoid=t.avoid.replace(/\?/g,"%3F"):"\\"==s&&(t.avoid=t.avoid.replace(/\\/g,"%5C"))}i=i+"exclude="+t.avoid+"&"}9!=t.repeat&&(i=i+"repeat="+t.repeat+"&"),"&"==i[i.length-1]?i=i.substring(0,i.length-1):1==i.length&&(i="");var o=e+i,r=e+"api/"+i;Session.set("apiurl",{apurl:o,jsonapiurl:r})}function r(t){var e="",n=[];n.upper="ABCDEFGHIJKLMNOPQRSTUVWXYZ",n.lower="abcdefghijklmnopqrstuvwxyz",n.numbers="0123456789",n.specialCharacters="<>`!?@#$%^&*().,_-";var s=unescape(t.avoid);for(y=0;y<s.length;y++){var o=s[y];o=o.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var r=new RegExp(o,"g");n.upper=n.upper.replace(r,""),n.lower=n.lower.replace(r,""),n.numbers=n.numbers.replace(r,""),n.specialCharacters=n.specialCharacters.replace(r,"")}t.upper&&(e+=n.upper),t.lower&&(e+=n.lower),t.numbers&&(e+=n.numbers),t.specialCharacters&&(e+=n.specialCharacters),pass="",t.length>=4&&(t.numbers&&(i=Math.floor(Math.random()*n.numbers.length),pass+=n.numbers.charAt(i)),t.upper&&(i=Math.floor(Math.random()*n.upper.length),pass+=n.upper.charAt(i)),t.lower&&(i=Math.floor(Math.random()*n.lower.length),pass+=n.lower.charAt(i)),t.specialCharacters&&(i=Math.floor(Math.random()*n.specialCharacters.length),pass+=n.specialCharacters.charAt(i))),t.length>=8&&(t.numbers&&(i=Math.floor(Math.random()*n.numbers.length),pass+=n.numbers.charAt(i)),t.upper&&(i=Math.floor(Math.random()*n.upper.length),pass+=n.upper.charAt(i)),t.lower&&(i=Math.floor(Math.random()*n.lower.length),pass+=n.lower.charAt(i)),t.specialCharacters&&(i=Math.floor(Math.random()*n.specialCharacters.length),pass+=n.specialCharacters.charAt(i)));var a=t.length-pass.length;for(x=0;x<a;x++)i=Math.floor(Math.random()*e.length),pass+=e.charAt(i);return pass.split("").sort(function(){return.5-Math.random()}).join("")}function a(t){var e="";for(var i in meteorBabelHelpers.sanitizeForInObject(t))"a"==t[i]?e+="alpha ":"b"==t[i]?e+="bravo ":"c"==t[i]?e+="charlie ":"d"==t[i]?e+="delta ":"e"==t[i]?e+="echo ":"f"==t[i]?e+="foxtrot ":"g"==t[i]?e+="golf ":"h"==t[i]?e+="hotel ":"i"==t[i]?e+="india ":"j"==t[i]?e+="juliet ":"k"==t[i]?e+="kilo ":"l"==t[i]?e+="lima ":"m"==t[i]?e+="mike ":"n"==t[i]?e+="november ":"o"==t[i]?e+="oscar ":"p"==t[i]?e+="pappa ":"q"==t[i]?e+="quebec ":"r"==t[i]?e+="romeo ":"s"==t[i]?e+="sierra ":"t"==t[i]?e+="tango ":"u"==t[i]?e+="uniform ":"v"==t[i]?e+="victor ":"w"==t[i]?e+="whiskey ":"x"==t[i]?e+="xray ":"y"==t[i]?e+="yankee ":"z"==t[i]?e+="zulu ":"A"==t[i]?e+="ALPHA ":"B"==t[i]?e+="BRAVO ":"C"==t[i]?e+="CHARLIE ":"D"==t[i]?e+="DELTA ":"E"==t[i]?e+="ECHO ":"F"==t[i]?e+="FOXTROT ":"G"==t[i]?e+="GOLF ":"H"==t[i]?e+="HOTEL ":"I"==t[i]?e+="INDIA ":"J"==t[i]?e+="JULIET ":"K"==t[i]?e+="KILO ":"L"==t[i]?e+="LIMA ":"M"==t[i]?e+="MIKE ":"N"==t[i]?e+="NOVEMBER ":"O"==t[i]?e+="OSCAR ":"P"==t[i]?e+="PAPPA ":"Q"==t[i]?e+="QUEBEC ":"R"==t[i]?e+="ROMEO ":"S"==t[i]?e+="SIERRA ":"T"==t[i]?e+="TANGO ":"U"==t[i]?e+="UNIFORM ":"V"==t[i]?e+="VICTOR ":"W"==t[i]?e+="WHISKEY ":"X"==t[i]?e+="XRAY ":"Y"==t[i]?e+="YANKEE ":"Z"==t[i]?e+="ZULU ":"<"==t[i]?e+="less-than ":">"==t[i]?e+="greater-than ":"`"==t[i]?e+="back-tick ":"@"==t[i]?e+="at ":"#"==t[i]?e+="pound ":"$"==t[i]?e+="dollar ":"%"==t[i]?e+="percent ":"^"==t[i]?e+="caret ":"&"==t[i]?e+="and ":"*"==t[i]?e+="star ":"."==t[i]?e+="dot ":","==t[i]?e+="comma ":"_"==t[i]?e+="underscore ":"-"==t[i]?e+="dash ":"("==t[i]?e+="left-paren ":")"==t[i]?e+="right-paren ":"!"==t[i]?e+="exclamation ":"?"==t[i]?e+="question-mark ":"0"==t[i]?e+="zero ":"1"==t[i]?e+="one ":"2"==t[i]?e+="two ":"3"==t[i]?e+="three ":"4"==t[i]?e+="four ":"5"==t[i]?e+="five ":"6"==t[i]?e+="six ":"7"==t[i]?e+="seven ":"8"==t[i]?e+="eight ":"9"==t[i]?e+="nine ":e=e+t[i]+" ";return e}function l(t){var e=!0;void 0===t&&(e=!1,$(".errors").hide(),(t=new Array).upper=$("#upper").is(":checked"),t.lower=$("#lower").is(":checked"),t.specialCharacters=$("#specialCharacters").is(":checked"),t.numbers=$("#numbers").is(":checked"),t.length=$("#length").val(),t.avoid=$("#avoid").val(),t.repeat=$("#repeat").val(),t.phonetic=$("#phonetic").is(":checked"));var i=[],n="";if((t.length<1||t.length>128)&&(n="Length must be between 1 and 128."),(t.repeat<1||t.repeat>128)&&(n="Number of passwords must be between 1 and 128."),0==t.upper&&0==t.lower&&0==t.specialCharacters&&0==t.numbers&&(n="There is no content chosen for the password. Please turn one of the first 4 switches on and try again."),""!=n)return $(".errors").show(),Session.set("errors",n),[{password:""}];e||o(t);for(var s=t.repeat-1;s>=0;s--){var l=r(t),h=a(l);i.push({password:l,phonetic:h})}return i}function h(t){var e={};if(void 0===t){var i=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,i,n){e[i]=n});return e}var i=t.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,i,n){e[i]=n});return e}var u=void 0;n.watch(t("meteor/templating"),{Template:function(t){u=t}},0),n.watch(t("./body.html")),Meteor.isClient&&(Router.map(function(){this.route("",{path:"/"})}),UI.body.events({"submit .generate":function(t){return t.preventDefault(),Session.set("passwords",l()),!1}}),u.body.helpers({passwords:function(){return Session.get("passwords")}}),u.result.helpers({displayphonetic:function(){return $("#phonetic").is(":checked")}}),u.error.helpers({error:function(){return Session.get("errors")}}),u.apiurl.helpers({apiurl:function(){return Session.get("apiurl")}}),u.leaderboard.rendered=function(){$.getScript("//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",function(){var t,e;return t='<ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-3148884705608664" data-ad-slot="9592468909"></ins>',$(".leaderboard").html(t),(e=window.adsbygoogle||[]).push({})})},u.leaderboardbottom.rendered=function(){$.getScript("//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",function(){var t,e;return t='<ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-3148884705608664" data-ad-slot="6837478905"></ins>',$(".leaderboardbottom").html(t),(e=window.adsbygoogle||[]).push({})})},$(document).ready(function(){s(),$(".errors").hide(),Session.set("passwords",l()),function(t,e,i,n,s,o,r){t.GoogleAnalyticsObject=s,t[s]=t[s]||function(){(t[s].q=t[s].q||[]).push(arguments)},t[s].l=1*new Date,o=e.createElement(i),r=e.getElementsByTagName(i)[0],o.async=1,o.src=n,r.parentNode.insertBefore(o,r)}(window,document,"script","//www.google-analytics.com/analytics.js","ga"),ga("create","UA-2202347-9","auto"),ga("send","pageview")}))}}},client:{lib:{"bootstrap.min.js":function(){if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",function(){i=!0});var s=function(){i||t(n).trigger(t.support.transition.end)};return setTimeout(s,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),s=i.data("bs.alert");s||i.data("bs.alert",s=new n(this)),"string"==typeof e&&s[e].call(i)})}var i='[data-dismiss="alert"]',n=function(e){t(e).on("click",i,this.close)};n.VERSION="3.3.1",n.TRANSITION_DURATION=150,n.prototype.close=function(e){function i(){r.detach().trigger("closed.bs.alert").remove()}var s=t(this),o=s.attr("data-target");o||(o=s.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var r=t(o);e&&e.preventDefault(),r.length||(r=s.closest(".alert")),r.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var s=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=s,this},t(document).on("click.bs.alert.data-api",i,n.prototype.close)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.button"),o="object"==typeof e&&e;s||n.data("bs.button",s=new i(this,o)),"toggle"==e?s.toggle():e&&s.setState(e)})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.isLoading=!1};i.VERSION="3.3.1",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",n=this.$element,s=n.is("input")?"val":"html",o=n.data();e+="Text",null==o.resetText&&n.data("resetText",n[s]()),setTimeout(t.proxy(function(){n[s](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var n=t(i.target);n.hasClass("btn")||(n=n.closest(".btn")),e.call(n,"toggle"),i.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.carousel"),o=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e),r="string"==typeof e?e:o.slide;s||n.data("bs.carousel",s=new i(this,o)),"number"==typeof e?s.to(e):r?s[r]():o.interval&&s.pause().cycle()})}var i=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.3.1",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.getItemForDirection=function(t,e){var i="prev"==t?-1:1,n=(this.getItemIndex(e)+i)%this.$items.length;return this.$items.eq(n)},i.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){return this.sliding?void 0:this.slide("next")},i.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},i.prototype.slide=function(e,n){var s=this.$element.find(".item.active"),o=n||this.getItemForDirection(e,s),r=this.interval,a="next"==e?"left":"right",l="next"==e?"first":"last",h=this;if(!o.length){if(!this.options.wrap)return;o=this.$element.find(".item")[l]()}if(o.hasClass("active"))return this.sliding=!1;var c=o[0],u=t.Event("slide.bs.carousel",{relatedTarget:c,direction:a});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=t(this.$indicators.children()[this.getItemIndex(o)]);d&&d.addClass("active")}var p=t.Event("slid.bs.carousel",{relatedTarget:c,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,s.addClass(a),o.addClass(a),s.one("bsTransitionEnd",function(){o.removeClass([e,a].join(" ")).addClass("active"),s.removeClass(["active",a].join(" ")),h.sliding=!1,setTimeout(function(){h.$element.trigger(p)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(s.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(p)),r&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this};var s=function(i){var n,s=t(this),o=t(s.attr("data-target")||(n=s.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var r=t.extend({},o.data(),s.data()),a=s.attr("data-slide-to");a&&(r.interval=!1),e.call(o,r),a&&o.data("bs.carousel").to(a),i.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",s).on("click.bs.carousel.data-api","[data-slide-to]",s),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),function(t){"use strict";function e(e){var i,n=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(n)}function i(e){return this.each(function(){var i=t(this),s=i.data("bs.collapse"),o=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e);!s&&o.toggle&&"show"==e&&(o.toggle=!1),s||i.data("bs.collapse",s=new n(this,o)),"string"==typeof e&&s[e]()})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.$trigger=t(this.options.trigger).filter('[href="#'+e.id+'"], [data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.3.1",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'},n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,s=this.$parent&&this.$parent.find("> .panel").children(".in, .collapsing");if(!(s&&s.length&&(e=s.data("bs.collapse"))&&e.transitioning)){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){s&&s.length&&(i.call(s,"hide"),e||s.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[r](this.$element[0][l])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var s=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(n.TRANSITION_DURATION):s.call(this)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,n){var s=t(n);this.addAriaAndCollapsedClass(e(s),s)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var s=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=n,t.fn.collapse.noConflict=function(){return t.fn.collapse=s,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var s=t(this);s.attr("data-target")||n.preventDefault();var o=e(s),r=o.data("bs.collapse")?"toggle":t.extend({},s.data(),{trigger:this});i.call(o,r)})}(jQuery),function(t){"use strict";function e(e){e&&3===e.which||(t(s).remove(),t(o).each(function(){var n=t(this),s=i(n),o={relatedTarget:this};s.hasClass("open")&&(s.trigger(e=t.Event("hide.bs.dropdown",o)),e.isDefaultPrevented()||(n.attr("aria-expanded","false"),s.removeClass("open").trigger("hidden.bs.dropdown",o)))}))}function i(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&t(i);return n&&n.length?n:e.parent()}function n(e){return this.each(function(){var i=t(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new r(this)),"string"==typeof e&&n[e].call(i)})}var s=".dropdown-backdrop",o='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.VERSION="3.3.1",r.prototype.toggle=function(n){var s=t(this);if(!s.is(".disabled, :disabled")){var o=i(s),r=o.hasClass("open");if(e(),!r){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e);var a={relatedTarget:this};if(o.trigger(n=t.Event("show.bs.dropdown",a)),n.isDefaultPrevented())return;s.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},r.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var n=t(this);if(e.preventDefault(),e.stopPropagation(),!n.is(".disabled, :disabled")){var s=i(n),r=s.hasClass("open");if(!r&&27!=e.which||r&&27==e.which)return 27==e.which&&s.find(o).trigger("focus"),n.trigger("click");var a=" li:not(.divider):visible a",l=s.find('[role="menu"]'+a+', [role="listbox"]'+a);if(l.length){var h=l.index(e.target);38==e.which&&h>0&&h--,40==e.which&&h<l.length-1&&h++,~h||(h=0),l.eq(h).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=n,t.fn.dropdown.Constructor=r,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,r.prototype.toggle).on("keydown.bs.dropdown.data-api",o,r.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',r.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',r.prototype.keydown)}(jQuery),function(t){"use strict";function e(e,n){return this.each(function(){var s=t(this),o=s.data("bs.modal"),r=t.extend({},i.DEFAULTS,s.data(),"object"==typeof e&&e);o||s.data("bs.modal",o=new i(this,r)),"string"==typeof e?o[e](n):r.show&&o.show(n)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.3.1",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var n=this,s=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(s),this.isShown||s.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.backdrop(function(){var s=t.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.options.backdrop&&n.adjustBackdrop(),n.adjustDialog(),s&&n.$element[0].offsetWidth,n.$element.addClass("in").attr("aria-hidden",!1),n.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});s?n.$element.find(".modal-dialog").one("bsTransitionEnd",function(){n.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(i.TRANSITION_DURATION):n.$element.trigger("focus").trigger(o)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var n=this,s=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&s;if(this.$backdrop=t('<div class="modal-backdrop '+s+'" />').prependTo(this.$element).on("click.dismiss.bs.modal",t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){n.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):r()}else e&&e()},i.prototype.handleUpdate=function(){this.options.backdrop&&this.adjustBackdrop(),this.adjustDialog()},i.prototype.adjustBackdrop=function(){this.$backdrop.css("height",0).css("height",this.$element[0].scrollHeight)},i.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){this.bodyIsOverflowing=document.body.scrollHeight>document.documentElement.clientHeight,this.scrollbarWidth=this.measureScrollbar()},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},i.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var n=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var n=t(this),s=n.attr("href"),o=t(n.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,"")),r=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(s)&&s},o.data(),n.data());n.is("a")&&i.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){n.is(":visible")&&n.trigger("focus")})}),e.call(o,r,this)})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.tooltip"),o="object"==typeof e&&e,r=o&&o.selector;(s||"destroy"!=e)&&(r?(s||n.data("bs.tooltip",s={}),s[r]||(s[r]=new i(this,o))):s||n.data("bs.tooltip",s=new i(this,o)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};i.VERSION="3.3.1",i.TRANSITION_DURATION=150,i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,n){this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport);for(var s=this.options.trigger.split(" "),o=s.length;o--;){var r=s[o];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,n){i[t]!=n&&(e[t]=n)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i&&i.$tip&&i.$tip.is(":visible")?void(i.hoverState="in"):(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},i.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var s=this,o=this.tip(),r=this.getUID(this.type);this.setContent(),o.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&o.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,h=l.test(a);h&&(a=a.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element);var c=this.getPosition(),u=o[0].offsetWidth,d=o[0].offsetHeight;if(h){var p=a,f=this.options.container?t(this.options.container):this.$element.parent(),m=this.getPosition(f);a="bottom"==a&&c.bottom+d>m.bottom?"top":"top"==a&&c.top-d<m.top?"bottom":"right"==a&&c.right+u>m.width?"left":"left"==a&&c.left-u<m.left?"right":a,o.removeClass(p).addClass(a)}var g=this.getCalculatedOffset(a,c,u,d);this.applyPlacement(g,a);var v=function(){var t=s.hoverState;s.$element.trigger("shown.bs."+s.type),s.hoverState=null,"out"==t&&s.leave(s)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",v).emulateTransitionEnd(i.TRANSITION_DURATION):v()}},i.prototype.applyPlacement=function(e,i){var n=this.tip(),s=n[0].offsetWidth,o=n[0].offsetHeight,r=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(a)&&(a=0),e.top=e.top+r,e.left=e.left+a,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");var l=n[0].offsetWidth,h=n[0].offsetHeight;"top"==i&&h!=o&&(e.top=e.top+o-h);var c=this.getViewportAdjustedDelta(i,e,l,h);c.left?e.left+=c.left:e.top+=c.top;var u=/top|bottom/.test(i),d=u?2*c.left-s+l:2*c.top-o+h,p=u?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(d,n[0][p],u)},i.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(e){function n(){"in"!=s.hoverState&&o.detach(),s.$element.removeAttr("aria-describedby").trigger("hidden.bs."+s.type),e&&e()}var s=this,o=this.tip(),r=t.Event("hide.bs."+this.type);return this.$element.trigger(r),r.isDefaultPrevented()?void 0:(o.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n(),this.hoverState=null,this)},i.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(e){var i=(e=e||this.$element)[0],n="BODY"==i.tagName,s=i.getBoundingClientRect();null==s.width&&(s=t.extend({},s,{width:s.right-s.left,height:s.bottom-s.top}));var o=n?{top:0,left:0}:e.offset(),r={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=n?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},s,r,a,o)},i.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},i.prototype.getViewportAdjustedDelta=function(t,e,i,n){var s={top:0,left:0};if(!this.$viewport)return s;var o=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-o-r.scroll,l=e.top+o-r.scroll+n;a<r.top?s.top=r.top-a:l>r.top+r.height&&(s.top=r.top+r.height-l)}else{var h=e.left-o,c=e.left+o+i;h<r.left?s.left=r.left-h:c>r.width&&(s.left=r.left+r.width-c)}return s},i.prototype.getTitle=function(){var t,e=this.$element,i=this.options;return t=e.attr("data-original-title")||("function"==typeof i.title?i.title.call(e[0]):i.title)},i.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},i.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type)})};var n=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.popover"),o="object"==typeof e&&e,r=o&&o.selector;(s||"destroy"!=e)&&(r?(s||n.data("bs.popover",s={}),s[r]||(s[r]=new i(this,o))):s||n.data("bs.popover",s=new i(this,o)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.3.1",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},i.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var n=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),function(t){"use strict";function e(i,n){var s=t.proxy(this.process,this);this.$body=t("body"),this.$scrollElement=t(t(i).is("body")?window:i),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",s),this.refresh(),this.process()}function i(i){return this.each(function(){var n=t(this),s=n.data("bs.scrollspy"),o="object"==typeof i&&i;s||n.data("bs.scrollspy",s=new e(this,o)),"string"==typeof i&&s[i]()})}e.VERSION="3.3.1",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e="offset",i=0;t.isWindow(this.$scrollElement[0])||(e="position",i=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var n=this;this.$body.find(this.selector).map(function(){var n=t(this),s=n.data("target")||n.attr("href"),o=/^#./.test(s)&&t(s);return o&&o.length&&o.is(":visible")&&[[o[e]().top+i,s]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){n.offsets.push(this[0]),n.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,o=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=n)return r!=(t=o[o.length-1])&&this.activate(t);if(r&&e<s[0])return this.activeTarget=null,this.clear();for(t=s.length;t--;)r!=o[t]&&e>=s[t]&&(!s[t+1]||e<=s[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=t(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=t.fn.scrollspy;t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=n,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);i.call(e,e.data())})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.tab");s||n.data("bs.tab",s=new i(this)),"string"==typeof e&&s[e]()})}var i=function(e){this.element=t(e)};i.VERSION="3.3.1",i.TRANSITION_DURATION=150,i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=e.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var s=i.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),r=t.Event("show.bs.tab",{relatedTarget:s[0]});if(s.trigger(o),e.trigger(r),!r.isDefaultPrevented()&&!o.isDefaultPrevented()){var a=t(n);this.activate(e.closest("li"),i),this.activate(a,a.parent(),function(){s.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:s[0]})})}}},i.prototype.activate=function(e,n,s){function o(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),s&&s()}var r=n.find("> .active"),a=s&&t.support.transition&&(r.length&&r.hasClass("fade")||!!n.find("> .fade").length);r.length&&a?r.one("bsTransitionEnd",o).emulateTransitionEnd(i.TRANSITION_DURATION):o(),r.removeClass("in")};var n=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=n,this};var s=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',s).on("click.bs.tab.data-api",'[data-toggle="pill"]',s)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.affix"),o="object"==typeof e&&e;s||n.data("bs.affix",s=new i(this,o)),"string"==typeof e&&s[e]()})}var i=function(e,n){this.options=t.extend({},i.DEFAULTS,n),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.3.1",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(t,e,i,n){var s=this.$target.scrollTop(),o=this.$element.offset(),r=this.$target.height();if(null!=i&&"top"==this.affixed)return i>s&&"top";if("bottom"==this.affixed)return null!=i?!(s+this.unpin<=o.top)&&"bottom":!(t-n>=s+r)&&"bottom";var a=null==this.affixed,l=a?s:o.top,h=a?r:e;return null!=i&&i>=l?"top":null!=n&&l+h>=t-n&&"bottom"},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),n=this.options.offset,s=n.top,o=n.bottom,r=t("body").height();"object"!=typeof n&&(o=s=n),"function"==typeof s&&(s=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var a=this.getState(r,e,s,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),h=t.Event(l+".bs.affix");if(this.$element.trigger(h),h.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:r-e-o})}};var n=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),n=i.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),e.call(i,n)})})}(jQuery)},"flat-ui.min.js":function(){if(function(t,e){function i(e,i){var s,o,r,a=e.nodeName.toLowerCase();return"area"===a?(s=e.parentNode,o=s.name,!(!e.href||!o||"map"!==s.nodeName.toLowerCase())&&(!!(r=t("img[usemap=#"+o+"]")[0])&&n(r))):(/input|select|textarea|button|object/.test(a)?!e.disabled:"a"===a?e.href||i:i)&&n(e)}function n(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}var s=0,o=/^ui-id-\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:"1.10.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({focus:function(e){return function(i,n){return"number"==typeof i?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),n&&n.call(e)},i)}):e.apply(this,arguments)}}(t.fn.focus),scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&&/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var n,s,o=t(this[0]);o.length&&o[0]!==document;){if(("absolute"===(n=o.css("position"))||"relative"===n||"fixed"===n)&&(s=parseInt(o.css("zIndex"),10),!isNaN(s)&&0!==s))return s;o=o.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++s)})},removeUniqueId:function(){return this.each(function(){o.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),s=isNaN(n);return(s||n>=0)&&i(e,!s)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(i,n){function s(e,i,n,s){return t.each(o,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),s&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var o="Width"===n?["Left","Right"]:["Top","Bottom"],r=n.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(i){return i===e?a["inner"+n].call(this):this.each(function(){t(this).css(r,s(this,i)+"px")})},t.fn["outer"+n]=function(e,i){return"number"!=typeof e?a["outer"+n].call(this,e):this.each(function(){t(this).css(r,s(this,e,!0,i)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart="onselectstart"in document.createElement("div"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,i,n){var s,o=t.ui[e].prototype;for(s in n)o.plugins[s]=o.plugins[s]||[],o.plugins[s].push([i,n[s]])},call:function(t,e,i){var n,s=t.plugins[e];if(s&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(n=0;n<s.length;n++)t.options[s[n][0]]&&s[n][1].apply(t.element,i)}},hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",s=!1;return e[n]>0||(e[n]=1,s=e[n]>0,e[n]=0,s)}})}(jQuery),function(t,e){var i=0,n=Array.prototype.slice,s=t.cleanData;t.cleanData=function(e){for(var i,n=0;null!=(i=e[n]);n++)try{t(i).triggerHandler("remove")}catch(t){}s(e)},t.widget=function(e,i,n){var s,o,r,a,l={},h=e.split(".")[0];e=e.split(".")[1],s=h+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][s.toLowerCase()]=function(e){return!!t.data(e,s)},t[h]=t[h]||{},o=t[h][e],r=t[h][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new r(t,e)},t.extend(r,o,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(n,function(e,n){return t.isFunction(n)?void(l[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},s=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=s,e=n.apply(this,arguments),this._super=i,this._superApply=o,e}}()):void(l[e]=n)}),r.prototype=t.widget.extend(a,{widgetEventPrefix:o?a.widgetEventPrefix||e:e},l,{constructor:r,namespace:h,widgetName:e,widgetFullName:s}),o?(t.each(o._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,r,i._proto)}),delete o._childConstructors):i._childConstructors.push(r),t.widget.bridge(e,r)},t.widget.extend=function(i){for(var s,o,r=n.call(arguments,1),a=0,l=r.length;l>a;a++)for(s in r[a])o=r[a][s],r[a].hasOwnProperty(s)&&o!==e&&(i[s]=t.isPlainObject(o)?t.isPlainObject(i[s])?t.widget.extend({},i[s],o):t.widget.extend({},o):o);return i},t.widget.bridge=function(i,s){var o=s.prototype.widgetFullName||i;t.fn[i]=function(r){var a="string"==typeof r,l=n.call(arguments,1),h=this;return r=!a&&l.length?t.widget.extend.apply(null,[r].concat(l)):r,this.each(a?function(){var n,s=t.data(this,o);return s?t.isFunction(s[r])&&"_"!==r.charAt(0)?(n=s[r].apply(s,l),n!==s&&n!==e?(h=n&&n.jquery?h.pushStack(n.get()):n,!1):void 0):t.error("no such method '"+r+"' for "+i+" widget instance"):t.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+r+"'")}:function(){var e=t.data(this,o);e?e.option(r||{})._init():t.data(this,o,new s(r,this))}),h}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(i,n){var s,o,r,a=i;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof i)if(a={},s=i.split("."),i=s.shift(),s.length){for(o=a[i]=t.widget.extend({},this.options[i]),r=0;r<s.length-1;r++)o[s[r]]=o[s[r]]||{},o=o[s[r]];if(i=s.pop(),1===arguments.length)return o[i]===e?null:o[i];o[i]=n}else{if(1===arguments.length)return this.options[i]===e?null:this.options[i];a[i]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(e,i,n){var s,o=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=s=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),t.each(n,function(n,r){function a(){return e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled")?("string"==typeof r?o[r]:r).apply(o,arguments):void 0}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||t.guid++);var l=n.match(/^(\w+)\s*(.*)$/),h=l[1]+o.eventNamespace,c=l[2];c?s.delegate(c,h,a):i.bind(h,a)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var s,o,r=this.options[e];if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(s in o)s in i||(i[s]=o[s]);return this.element.trigger(i,n),!(t.isFunction(r)&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,s,o){"string"==typeof s&&(s={effect:s});var r,a=s?!0===s||"number"==typeof s?i:s.effect||i:e;"number"==typeof(s=s||{})&&(s={duration:s}),r=!t.isEmptyObject(s),s.complete=o,s.delay&&n.delay(s.delay),r&&t.effects&&t.effects.effect[a]?n[e](s):a!==e&&n[a]?n[a](s.duration,s.easing,o):n.queue(function(i){t(this)[e](),o&&o.call(n[0]),i()})}})}(jQuery),function(t){var e=!1;t(document).mouseup(function(){e=!1}),t.widget("ui.mouse",{version:"1.10.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!e){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,s=1===i.which,o=!("string"!=typeof this.options.cancel||!i.target.nodeName)&&t(i.target).closest(this.options.cancel).length;return!(s&&!o&&this._mouseCapture(i))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),!0):(!0===t.data(i.target,this.widgetName+".preventClickEvent")&&t.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),e=!0,!0))}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button?this._mouseUp(e):this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(t,e){function i(t,e,i){return[parseFloat(t[0])*(p.test(t[0])?e/100:1),parseFloat(t[1])*(p.test(t[1])?i/100:1)]}function n(e,i){return parseInt(t.css(e,i),10)||0}function s(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.ui=t.ui||{};var o,r=Math.max,a=Math.abs,l=Math.round,h=/left|center|right/,c=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(o!==e)return o;var i,n,s=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),r=s.children()[0];return t("body").append(s),i=r.offsetWidth,s.css("overflow","scroll"),n=r.offsetWidth,i===n&&(n=s[0].clientWidth),s.remove(),o=i-n},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),s="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:s?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]);return{element:i,isWindow:n,isDocument:!!i[0]&&9===i[0].nodeType,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:n?i.width():i.outerWidth(),height:n?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return f.apply(this,arguments);e=t.extend({},e);var o,p,m,g,v,b,y=t(e.of),w=t.position.getWithinInfo(e.within),C=t.position.getScrollInfo(w),T=(e.collision||"flip").split(" "),x={};return b=s(y),y[0].preventDefault&&(e.at="left top"),p=b.width,m=b.height,g=b.offset,v=t.extend({},g),t.each(["my","at"],function(){var t,i,n=(e[this]||"").split(" ");1===n.length&&(n=h.test(n[0])?n.concat(["center"]):c.test(n[0])?["center"].concat(n):["center","center"]),n[0]=h.test(n[0])?n[0]:"center",n[1]=c.test(n[1])?n[1]:"center",t=u.exec(n[0]),i=u.exec(n[1]),x[this]=[t?t[0]:0,i?i[0]:0],e[this]=[d.exec(n[0])[0],d.exec(n[1])[0]]}),1===T.length&&(T[1]=T[0]),"right"===e.at[0]?v.left+=p:"center"===e.at[0]&&(v.left+=p/2),"bottom"===e.at[1]?v.top+=m:"center"===e.at[1]&&(v.top+=m/2),o=i(x.at,p,m),v.left+=o[0],v.top+=o[1],this.each(function(){var s,h,c=t(this),u=c.outerWidth(),d=c.outerHeight(),f=n(this,"marginLeft"),b=n(this,"marginTop"),S=u+f+n(this,"marginRight")+C.width,$=d+b+n(this,"marginBottom")+C.height,k=t.extend({},v),E=i(x.my,c.outerWidth(),c.outerHeight());"right"===e.my[0]?k.left-=u:"center"===e.my[0]&&(k.left-=u/2),"bottom"===e.my[1]?k.top-=d:"center"===e.my[1]&&(k.top-=d/2),k.left+=E[0],k.top+=E[1],t.support.offsetFractions||(k.left=l(k.left),k.top=l(k.top)),s={marginLeft:f,marginTop:b},t.each(["left","top"],function(i,n){t.ui.position[T[i]]&&t.ui.position[T[i]][n](k,{targetWidth:p,targetHeight:m,elemWidth:u,elemHeight:d,collisionPosition:s,collisionWidth:S,collisionHeight:$,offset:[o[0]+E[0],o[1]+E[1]],my:e.my,at:e.at,within:w,elem:c})}),e.using&&(h=function(t){var i=g.left-k.left,n=i+p-u,s=g.top-k.top,o=s+m-d,l={target:{element:y,left:g.left,top:g.top,width:p,height:m},element:{element:c,left:k.left,top:k.top,width:u,height:d},horizontal:0>n?"left":i>0?"right":"center",vertical:0>o?"top":s>0?"bottom":"middle"};u>p&&a(i+n)<p&&(l.horizontal="center"),d>m&&a(s+o)<m&&(l.vertical="middle"),l.important=r(a(i),a(n))>r(a(s),a(o))?"horizontal":"vertical",e.using.call(this,t,l)}),c.offset(t.extend(k,{using:h}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollLeft:n.offset.left,o=n.width,a=t.left-e.collisionPosition.marginLeft,l=s-a,h=a+e.collisionWidth-o-s;e.collisionWidth>o?l>0&&0>=h?(i=t.left+l+e.collisionWidth-o-s,t.left+=l-i):t.left=h>0&&0>=l?s:l>h?s+o-e.collisionWidth:s:l>0?t.left+=l:h>0?t.left-=h:t.left=r(t.left-a,t.left)},top:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollTop:n.offset.top,o=e.within.height,a=t.top-e.collisionPosition.marginTop,l=s-a,h=a+e.collisionHeight-o-s;e.collisionHeight>o?l>0&&0>=h?(i=t.top+l+e.collisionHeight-o-s,t.top+=l-i):t.top=h>0&&0>=l?s:l>h?s+o-e.collisionHeight:s:l>0?t.top+=l:h>0?t.top-=h:t.top=r(t.top-a,t.top)}},flip:{left:function(t,e){var i,n,s=e.within,o=s.offset.left+s.scrollLeft,r=s.width,l=s.isWindow?s.scrollLeft:s.offset.left,h=t.left-e.collisionPosition.marginLeft,c=h-l,u=h+e.collisionWidth-r-l,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(0>(i=t.left+d+p+f+e.collisionWidth-r-o)||i<a(c))&&(t.left+=d+p+f):u>0&&((n=t.left-e.collisionPosition.marginLeft+d+p+f-l)>0||a(n)<u)&&(t.left+=d+p+f)},top:function(t,e){var i,n,s=e.within,o=s.offset.top+s.scrollTop,r=s.height,l=s.isWindow?s.scrollTop:s.offset.top,h=t.top-e.collisionPosition.marginTop,c=h-l,u=h+e.collisionHeight-r-l,d="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,f=-2*e.offset[1];0>c?(n=t.top+d+p+f+e.collisionHeight-r-o,t.top+d+p+f>c&&(0>n||n<a(c))&&(t.top+=d+p+f)):u>0&&(i=t.top-e.collisionPosition.marginTop+d+p+f-l,t.top+d+p+f>u&&(i>0||a(i)<u)&&(t.top+=d+p+f))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,n,s,o,r=document.getElementsByTagName("body")[0],a=document.createElement("div");e=document.createElement(r?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},r&&t.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"});for(o in n)e.style[o]=n[o];e.appendChild(a),(i=r||document.documentElement).insertBefore(e,i.firstChild),a.style.cssText="position: absolute; left: 10.7432222px;",s=t(a).offset().left,t.support.offsetFractions=s>10&&11>s,e.innerHTML="",i.removeChild(e)}()}(jQuery),function(t){var e,i="ui-button ui-widget ui-state-default ui-corner-all",n="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",s=function(){var e=t(this);setTimeout(function(){e.find(":ui-button").button("refresh")},1)},o=function(e){var i=e.name,n=e.form,s=t([]);return i&&(i=i.replace(/'/g,"\\'"),s=n?t(n).find("[name='"+i+"']"):t("[name='"+i+"']",e.ownerDocument).filter(function(){return!this.form})),s};t.widget("ui.button",{version:"1.10.4",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,s),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var n=this,r=this.options,a="checkbox"===this.type||"radio"===this.type,l=a?"":"ui-state-active";null===r.label&&(r.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(i).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){r.disabled||this===e&&t(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){r.disabled||t(this).removeClass(l)}).bind("click"+this.eventNamespace,function(t){r.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}}),a&&this.element.bind("change"+this.eventNamespace,function(){n.refresh()}),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){return!r.disabled&&void 0}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(r.disabled)return!1;t(this).addClass("ui-state-active"),n.buttonElement.attr("aria-pressed","true");var e=n.element[0];o(e).not(e).map(function(){return t(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return!r.disabled&&(t(this).addClass("ui-state-active"),e=this,void n.document.one("mouseup",function(){e=null}))}).bind("mouseup"+this.eventNamespace,function(){return!r.disabled&&void t(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(e){return!r.disabled&&void((e.keyCode===t.ui.keyCode.SPACE||e.keyCode===t.ui.keyCode.ENTER)&&t(this).addClass("ui-state-active"))}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){t(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&&t(this).click()})),this._setOption("disabled",r.disabled),this._resetButton()},_determineButtonType:function(){var t,e,i;this.type=this.element.is("[type=checkbox]")?"checkbox":this.element.is("[type=radio]")?"radio":this.element.is("input")?"input":"button","checkbox"===this.type||"radio"===this.type?(t=this.element.parents().last(),e="label[for='"+this.element.attr("id")+"']",this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass("ui-helper-hidden-accessible"),(i=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(i+" ui-state-active "+n).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(t,e){return this._super(t,e),"disabled"===t?(this.element.prop("disabled",!!e),void(e&&this.buttonElement.removeClass("ui-state-focus"))):void this._resetButton()},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOption("disabled",e),"radio"===this.type?o(this.element[0]).each(function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"!==this.type){var e=this.buttonElement.removeClass(n),i=t("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),s=this.options.icons,o=s.primary&&s.secondary,r=[];s.primary||s.secondary?(this.options.text&&r.push("ui-button-text-icon"+(o?"s":s.primary?"-primary":"-secondary")),s.primary&&e.prepend("<span class='ui-button-icon-primary ui-icon "+s.primary+"'></span>"),s.secondary&&e.append("<span class='ui-button-icon-secondary ui-icon "+s.secondary+"'></span>"),this.options.text||(r.push(o?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",t.trim(i)))):r.push("ui-button-text-only"),e.addClass(r.join(" "))}else this.options.label&&this.element.val(this.options.label)}}),t.widget("ui.buttonset",{version:"1.10.4",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(t,e){"disabled"===t&&this.buttons.button("option",t,e),this._super(t,e)},refresh:function(){var e="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(jQuery),function(t){var e=5;t.widget("ui.slider",t.ui.mouse,{version:"1.10.4",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,n=this.options,s=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),o="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",r=[];for(i=n.values&&n.values.length||1,s.length>i&&(s.slice(i).remove(),s=s.slice(0,i)),e=s.length;i>e;e++)r.push(o);this.handles=s.add(t(r.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options,i="";e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=t("<div></div>").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){var t=this.handles.add(this.range).filter("a");this._off(t),this._on(t,this._handleEvents),this._hoverable(t),this._focusable(t)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var i,n,s,o,r,a,l,h,c=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(n-c.values(e));(s>i||s===i&&(e===c._lastChangedValue||c.values(e)===u.min))&&(s=i,o=t(this),r=e)}),!1!==(a=this._start(e,r))&&(this._mouseSliding=!0,this._handleIndex=r,o.addClass("ui-state-active").focus(),l=o.offset(),h=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=h?{left:0,top:0}:{left:e.pageX-l.left-o.width()/2,top:e.pageY-l.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,r,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,n,s,o;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(n=i/e)>1&&(n=1),0>n&&(n=0),"vertical"===this.orientation&&(n=1-n),s=this._valueMax()-this._valueMin(),o=this._valueMin()+n*s,this._trimAlignValue(o)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var n,s,o;this.options.values&&this.options.values.length?(n=this.values(e?0:1),2===this.options.values.length&&!0===this.options.range&&(0===e&&i>n||1===e&&n>i)&&(i=n),i!==this.values(e)&&(s=this.values(),s[e]=i,o=this._trigger("slide",t,{handle:this.handles[e],value:i,values:s}),n=this.values(e?0:1),!1!==o&&this.values(e,i))):i!==this.value()&&!1!==(o=this._trigger("slide",t,{handle:this.handles[e],value:i}))&&this.value(i)},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._lastChangedValue=e,this._trigger("change",t,i)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var n,s,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(n=this.options.values,s=arguments[0],o=0;o<n.length;o+=1)n[o]=this._trimAlignValue(s[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,i){var n,s=0;switch("range"===e&&!0===this.options.range&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(s=this.options.values.length),t.Widget.prototype._setOption.apply(this,arguments),e){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=0;s>n;n+=1)this._change(null,n);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this.options.values&&this.options.values.length){for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,n=t-i;return 2*Math.abs(i)>=e&&(n+=i>0?e:-e),parseFloat(n.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,i,n,s,o,r=this.options.range,a=this.options,l=this,h=!this._animateOff&&a.animate,c={};this.options.values&&this.options.values.length?this.handles.each(function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[h?"animate":"css"](c,a.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[h?"animate":"css"]({left:i+"%"},a.animate),1===n&&l.range[h?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===n&&l.range.stop(1,1)[h?"animate":"css"]({bottom:i+"%"},a.animate),1===n&&l.range[h?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i}):(n=this.value(),s=this._valueMin(),o=this._valueMax(),i=o!==s?(n-s)/(o-s)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[h?"animate":"css"](c,a.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({width:i+"%"},a.animate),"max"===r&&"horizontal"===this.orientation&&this.range[h?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:a.animate}),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({height:i+"%"},a.animate),"max"===r&&"vertical"===this.orientation&&this.range[h?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:a.animate}))},_handleEvents:{keydown:function(e){var i,n,s,o,r=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(e.target).addClass("ui-state-active"),!1===(i=this._start(e,r))))return}switch(o=this.options.step,n=s=this.options.values&&this.options.values.length?this.values(r):this.value(),e.keyCode){case t.ui.keyCode.HOME:s=this._valueMin();break;case t.ui.keyCode.END:s=this._valueMax();break;case t.ui.keyCode.PAGE_UP:s=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/5);break;case t.ui.keyCode.PAGE_DOWN:s=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/5);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;s=this._trimAlignValue(n+o);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;s=this._trimAlignValue(n-o)}this._slide(e,r,s)},click:function(t){t.preventDefault()},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),t(e.target).removeClass("ui-state-active"))}}})}(jQuery),function(t,e){var i="ui-effects-";t.effects={effect:{}},function(t,e){function i(t,e,i){var n=u[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:0>t?0:n.max<t?n.max:t)}function n(e){var i=h(),n=i._rgba=[];return e=e.toLowerCase(),f(l,function(t,s){var o,r=s.re.exec(e),a=r&&s.parse(r),l=s.space||"rgba";return a?(o=i[l](a),i[c[l].cache]=o[c[l].cache],n=i._rgba=o._rgba,!1):void 0}),n.length?("0,0,0,0"===n.join()&&t.extend(n,o.transparent),i):o[e]}function s(t,e,i){return i=(i+1)%1,1>6*i?t+(e-t)*i*6:1>2*i?e:2>3*i?t+(e-t)*(2/3-i)*6:t}var o,r="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",a=/^([\-+])=\s*(\d+\.?\d*)/,l=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],h=t.Color=function(e,i,n,s){return new t.Color.fn.parse(e,i,n,s)},c={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},u={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=h.support={},p=t("<p>")[0],f=t.each;p.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),h.fn=t.extend(h.prototype,{parse:function(s,r,a,l){if(s===e)return this._rgba=[null,null,null,null],this;(s.jquery||s.nodeType)&&(s=t(s).css(r),r=e);var u=this,d=t.type(s),p=this._rgba=[];return r!==e&&(s=[s,r,a,l],d="array"),"string"===d?this.parse(n(s)||o._default):"array"===d?(f(c.rgba.props,function(t,e){p[e.idx]=i(s[e.idx],e)}),this):"object"===d?(s instanceof h?f(c,function(t,e){s[e.cache]&&(u[e.cache]=s[e.cache].slice())}):f(c,function(e,n){var o=n.cache;f(n.props,function(t,e){if(!u[o]&&n.to){if("alpha"===t||null==s[t])return;u[o]=n.to(u._rgba)}u[o][e.idx]=i(s[t],e,!0)}),u[o]&&t.inArray(null,u[o].slice(0,3))<0&&(u[o][3]=1,n.from&&(u._rgba=n.from(u[o])))}),this):void 0},is:function(t){var e=h(t),i=!0,n=this;return f(c,function(t,s){var o,r=e[s.cache];return r&&(o=n[s.cache]||s.to&&s.to(n._rgba)||[],f(s.props,function(t,e){return null!=r[e.idx]?i=r[e.idx]===o[e.idx]:void 0})),i}),i},_space:function(){var t=[],e=this;return f(c,function(i,n){e[n.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var n=h(t),s=n._space(),o=c[s],r=0===this.alpha()?h("transparent"):this,a=r[o.cache]||o.to(r._rgba),l=a.slice();return n=n[o.cache],f(o.props,function(t,s){var o=s.idx,r=a[o],h=n[o],c=u[s.type]||{};null!==h&&(null===r?l[o]=h:(c.mod&&(h-r>c.mod/2?r+=c.mod:r-h>c.mod/2&&(r-=c.mod)),l[o]=i((h-r)*e+r,s)))}),this[s](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),s=h(e)._rgba;return h(t.map(i,function(t,e){return(1-n)*s[e]+n*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),n=i.pop();return e&&i.push(~~(255*n)),"#"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),h.fn.parse.prototype=h.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,n=t[0]/255,s=t[1]/255,o=t[2]/255,r=t[3],a=Math.max(n,s,o),l=Math.min(n,s,o),h=a-l,c=a+l,u=.5*c;return e=l===a?0:n===a?60*(s-o)/h+360:s===a?60*(o-n)/h+120:60*(n-s)/h+240,i=0===h?0:.5>=u?h/c:h/(2-c),[Math.round(e)%360,i,u,null==r?1:r]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],n=t[2],o=t[3],r=.5>=n?n*(1+i):n+i-n*i,a=2*n-r;return[Math.round(255*s(a,r,e+1/3)),Math.round(255*s(a,r,e)),Math.round(255*s(a,r,e-1/3)),o]},f(c,function(n,s){var o=s.props,r=s.cache,l=s.to,c=s.from;h.fn[n]=function(n){if(l&&!this[r]&&(this[r]=l(this._rgba)),n===e)return this[r].slice();var s,a=t.type(n),u="array"===a||"object"===a?n:arguments,d=this[r].slice();return f(o,function(t,e){var n=u["object"===a?t:e.idx];null==n&&(n=d[e.idx]),d[e.idx]=i(n,e)}),c?(s=h(c(d)),s[r]=d,s):h(d)},f(o,function(e,i){h.fn[e]||(h.fn[e]=function(s){var o,r=t.type(s),l="alpha"===e?this._hsla?"hsla":"rgba":n,h=this[l](),c=h[i.idx];return"undefined"===r?c:("function"===r&&(s=s.call(this,c),r=t.type(s)),null==s&&i.empty?this:("string"===r&&(o=a.exec(s))&&(s=c+parseFloat(o[2])*("+"===o[1]?1:-1)),h[i.idx]=s,this[l](h)))})})}),h.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,s){var o,r,a="";if("transparent"!==s&&("string"!==t.type(s)||(o=n(s)))){if(s=h(o||s),!d.rgba&&1!==s._rgba[3]){for(r="backgroundColor"===i?e.parentNode:e;(""===a||"transparent"===a)&&r&&r.style;)try{a=t.css(r,"backgroundColor"),r=r.parentNode}catch(t){}s=s.blend(a&&"transparent"!==a?a:"_default")}s=s.toRgbaString()}try{e.style[i]=s}catch(t){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=h(e.elem,i),e.end=h(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},h.hook(r),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,n){e["border"+n+"Color"]=t}),e}},o=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function i(e){var i,n,s=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(s&&s.length&&s[0]&&s[s[0]])for(n=s.length;n--;)i=s[n],"string"==typeof s[i]&&(o[t.camelCase(i)]=s[i]);else for(i in s)"string"==typeof s[i]&&(o[i]=s[i]);return o}function n(e,i){var n,s,r={};for(n in i)s=i[n],e[n]!==s&&(o[n]||(t.fx.step[n]||!isNaN(parseFloat(s)))&&(r[n]=s));return r}var s=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(jQuery.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(e,o,r,a){var l=t.speed(o,r,a);return this.queue(function(){var o,r=t(this),a=r.attr("class")||"",h=l.children?r.find("*").addBack():r;h=h.map(function(){return{el:t(this),start:i(this)}}),(o=function(){t.each(s,function(t,i){e[i]&&r[i+"Class"](e[i])})})(),h=h.map(function(){return this.end=i(this.el[0]),this.diff=n(this.start,this.end),this}),r.attr("class",a),h=h.map(function(){var e=this,i=t.Deferred(),n=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()}),t.when.apply(t,h.get()).done(function(){o(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(r[0])})})},t.fn.extend({addClass:function(e){return function(i,n,s,o){return n?t.effects.animateClass.call(this,{add:i},n,s,o):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,n,s,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},n,s,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(i){return function(n,s,o,r,a){return"boolean"==typeof s||s===e?o?t.effects.animateClass.call(this,s?{add:n}:{remove:n},o,r,a):i.apply(this,arguments):t.effects.animateClass.call(this,{toggle:n},s,o,r)}}(t.fn.toggleClass),switchClass:function(e,i,n,s,o){return t.effects.animateClass.call(this,{add:i,remove:e},n,s,o)}})}(),function(){function n(e,i,n,s){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(s=i,n=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(s=n,n=i,i={}),t.isFunction(n)&&(s=n,n=null),i&&t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=s||i.complete,e}function s(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||("string"==typeof e&&!t.effects.effect[e]||(!!t.isFunction(e)||"object"==typeof e&&!e.effect))}t.extend(t.effects,{version:"1.10.4",save:function(t,e){for(var n=0;n<e.length;n++)null!==e[n]&&t.data(i+e[n],t[0].style[e[n]])},restore:function(t,n){var s,o;for(o=0;o<n.length;o++)null!==n[o]&&((s=t.data(i+n[o]))===e&&(s=""),t.css(n[o],s))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},n=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),s={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return e.wrap(n),(e[0]===o||t.contains(e[0],o))&&t(o).focus(),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(s),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).focus()),e},setTransition:function(e,i,n,s){return s=s||{},t.each(i,function(t,i){var o=e.cssUnit(i);o[0]>0&&(s[i]=o[0]*n+o[1])}),s}}),t.fn.extend({effect:function(){function e(e){function n(){t.isFunction(o)&&o.call(s[0]),t.isFunction(e)&&e()}var s=t(this),o=i.complete,a=i.mode;(s.is(":hidden")?"hide"===a:"show"===a)?(s[a](),n()):r.call(s[0],i,n)}var i=n.apply(this,arguments),s=i.mode,o=i.queue,r=t.effects.effect[i.effect];return t.fx.off||!r?s?this[s](i.duration,i.complete):this.each(function(){i.complete&&i.complete.call(this)}):!1===o?this.each(e):this.queue(o||"fx",e)},show:function(t){return function(e){if(s(e))return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="show",this.effect.call(this,i)}}(t.fn.show),hide:function(t){return function(e){if(s(e))return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="hide",this.effect.call(this,i)}}(t.fn.hide),toggle:function(t){return function(e){if(s(e)||"boolean"==typeof e)return t.apply(this,arguments);var i=n.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(n=[parseFloat(i),e])}),n}})}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}})}()}(jQuery),function(t){function e(t,e){if(!(t.originalEvent.touches.length>1)){t.preventDefault();var i=t.originalEvent.changedTouches[0],n=document.createEvent("MouseEvents");n.initMouseEvent(e,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n)}}if(t.support.touch="ontouchend"in document,t.support.touch){var i,n=t.ui.mouse.prototype,s=n._mouseInit;n._touchStart=function(t){var n=this;!i&&n._mouseCapture(t.originalEvent.changedTouches[0])&&(i=!0,n._touchMoved=!1,e(t,"mouseover"),e(t,"mousemove"),e(t,"mousedown"))},n._touchMove=function(t){i&&(this._touchMoved=!0,e(t,"mousemove"))},n._touchEnd=function(t){i&&(e(t,"mouseup"),e(t,"mouseout"),this._touchMoved||e(t,"click"),i=!1)},n._mouseInit=function(){var e=this;e.element.bind("touchstart",t.proxy(e,"_touchStart")).bind("touchmove",t.proxy(e,"_touchMove")).bind("touchend",t.proxy(e,"_touchEnd")),s.call(e)}}}(jQuery),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",function(){i=!0});var s=function(){i||t(n).trigger(t.support.transition.end)};return setTimeout(s,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),s=i.data("bs.alert");s||i.data("bs.alert",s=new n(this)),"string"==typeof e&&s[e].call(i)})}var i='[data-dismiss="alert"]',n=function(e){t(e).on("click",i,this.close)};n.VERSION="3.2.0",n.prototype.close=function(e){function i(){o.detach().trigger("closed.bs.alert").remove()}var n=t(this),s=n.attr("data-target");s||(s=n.attr("href"),s=s&&s.replace(/.*(?=#[^\s]*$)/,""));var o=t(s);e&&e.preventDefault(),o.length||(o=n.hasClass("alert")?n:n.parent()),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",i).emulateTransitionEnd(150):i())};var s=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=s,this},t(document).on("click.bs.alert.data-api",i,n.prototype.close)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.button"),o="object"==typeof e&&e;s||n.data("bs.button",s=new i(this,o)),"toggle"==e?s.toggle():e&&s.setState(e)})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.isLoading=!1};i.VERSION="3.2.0",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",n=this.$element,s=n.is("input")?"val":"html",o=n.data();e+="Text",null==o.resetText&&n.data("resetText",n[s]()),n[s](null==o[e]?this.options[e]:o[e]),setTimeout(t.proxy(function(){"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var n=t(i.target);n.hasClass("btn")||(n=n.closest(".btn")),e.call(n,"toggle"),i.preventDefault()})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.carousel"),o=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e),r="string"==typeof e?e:o.slide;s||n.data("bs.carousel",s=new i(this,o)),"number"==typeof e?s.to(e):r?s[r]():o.interval&&s.pause().cycle()})}var i=function(e,i){this.$element=t(e).on("keydown.bs.carousel",t.proxy(this.keydown,this)),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.2.0",i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},i.prototype.keydown=function(t){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.to=function(e){var i=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",t(this.$items[e]))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){return this.sliding?void 0:this.slide("next")},i.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},i.prototype.slide=function(e,i){var n=this.$element.find(".item.active"),s=i||n[e](),o=this.interval,r="next"==e?"left":"right",a="next"==e?"first":"last",l=this;if(!s.length){if(!this.options.wrap)return;s=this.$element.find(".item")[a]()}if(s.hasClass("active"))return this.sliding=!1;var h=s[0],c=t.Event("slide.bs.carousel",{relatedTarget:h,direction:r});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,o&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=t(this.$indicators.children()[this.getItemIndex(s)]);u&&u.addClass("active")}var d=t.Event("slid.bs.carousel",{relatedTarget:h,direction:r});return t.support.transition&&this.$element.hasClass("slide")?(s.addClass(e),s[0].offsetWidth,n.addClass(r),s.addClass(r),n.one("bsTransitionEnd",function(){s.removeClass([e,r].join(" ")).addClass("active"),n.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(d)},0)}).emulateTransitionEnd(1e3*n.css("transition-duration").slice(0,-1))):(n.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(d)),o&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this},t(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(i){var n,s=t(this),o=t(s.attr("data-target")||(n=s.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var r=t.extend({},o.data(),s.data()),a=s.attr("data-slide-to");a&&(r.interval=!1),e.call(o,r),a&&o.data("bs.carousel").to(a),i.preventDefault()}}),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.collapse"),o=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!s&&o.toggle&&"show"==e&&(e=!e),s||n.data("bs.collapse",s=new i(this,o)),"string"==typeof e&&s[e]()})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};i.VERSION="3.2.0",i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var i=t.Event("show.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){var n=this.$parent&&this.$parent.find("> .panel > .in");if(n&&n.length){var s=n.data("bs.collapse");if(s&&s.transitioning)return;e.call(n,"hide"),s||n.data("bs.collapse",null)}var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[o](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return r.call(this);var a=t.camelCase(["scroll",o].join("-"));this.$element.one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(350)[o](this.$element[0][a])}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(n,this)).emulateTransitionEnd(350):n.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var n=t.fn.collapse;t.fn.collapse=e,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=n,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var n,s=t(this),o=s.attr("data-target")||i.preventDefault()||(n=s.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""),r=t(o),a=r.data("bs.collapse"),l=a?"toggle":s.data(),h=s.attr("data-parent"),c=h&&t(h);a&&a.transitioning||(c&&c.find('[data-toggle="collapse"][data-parent="'+h+'"]').not(s).addClass("collapsed"),s[r.hasClass("in")?"addClass":"removeClass"]("collapsed")),e.call(r,l)})}(jQuery),function(t){"use strict";function e(e){e&&3===e.which||(t(s).remove(),t(o).each(function(){var n=i(t(this)),s={relatedTarget:this};n.hasClass("open")&&(n.trigger(e=t.Event("hide.bs.dropdown",s)),e.isDefaultPrevented()||n.removeClass("open").trigger("hidden.bs.dropdown",s))}))}function i(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&t(i);return n&&n.length?n:e.parent()}function n(e){return this.each(function(){var i=t(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new r(this)),"string"==typeof e&&n[e].call(i)})}var s=".dropdown-backdrop",o='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.VERSION="3.2.0",r.prototype.toggle=function(n){var s=t(this);if(!s.is(".disabled, :disabled")){var o=i(s),r=o.hasClass("open");if(e(),!r){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e);var a={relatedTarget:this};if(o.trigger(n=t.Event("show.bs.dropdown",a)),n.isDefaultPrevented())return;s.trigger("focus"),o.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},r.prototype.keydown=function(e){if(/(38|40|27)/.test(e.keyCode)){var n=t(this);if(e.preventDefault(),e.stopPropagation(),!n.is(".disabled, :disabled")){var s=i(n),r=s.hasClass("open");if(!r||r&&27==e.keyCode)return 27==e.which&&s.find(o).trigger("focus"),n.trigger("click");var a=" li:not(.divider):visible a",l=s.find('[role="menu"]'+a+', [role="listbox"]'+a);if(l.length){var h=l.index(l.filter(":focus"));38==e.keyCode&&h>0&&h--,40==e.keyCode&&h<l.length-1&&h++,~h||(h=0),l.eq(h).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=n,t.fn.dropdown.Constructor=r,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,r.prototype.toggle).on("keydown.bs.dropdown.data-api",o+', [role="menu"], [role="listbox"]',r.prototype.keydown)}(jQuery),function(t){"use strict";function e(e,n){return this.each(function(){var s=t(this),o=s.data("bs.modal"),r=t.extend({},i.DEFAULTS,s.data(),"object"==typeof e&&e);o||s.data("bs.modal",o=new i(this,r)),"string"==typeof e?o[e](n):r.show&&o.show(n)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.2.0",i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var i=this,n=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.$body.addClass("modal-open"),this.setScrollbar(),this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.backdrop(function(){var n=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),n&&i.$element[0].offsetWidth,i.$element.addClass("in").attr("aria-hidden",!1),i.enforceFocus();var s=t.Event("shown.bs.modal",{relatedTarget:e});n?i.$element.find(".modal-dialog").one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(s)}).emulateTransitionEnd(300):i.$element.trigger("focus").trigger(s)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var i=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var s=t.support.transition&&n;if(this.$backdrop=t('<div class="modal-backdrop '+n+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;s?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(150):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var o=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(150):o()}else e&&e()},i.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},i.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var n=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var n=t(this),s=n.attr("href"),o=t(n.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,"")),r=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(s)&&s},o.data(),n.data());n.is("a")&&i.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){n.is(":visible")&&n.trigger("focus")})}),e.call(o,r,this)})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.tooltip"),o="object"==typeof e&&e;(s||"destroy"!=e)&&(s||n.data("bs.tooltip",s=new i(this,o)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};i.VERSION="3.2.0",i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,n){this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport);for(var s=this.options.trigger.split(" "),o=s.length;o--;){var r=s[o];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,n){i[t]!=n&&(e[t]=n)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show()},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},i.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(document.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var n=this,s=this.tip(),o=this.getUID(this.type);this.setContent(),s.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&s.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,l=a.test(r);l&&(r=r.replace(a,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?s.appendTo(this.options.container):s.insertAfter(this.$element);var h=this.getPosition(),c=s[0].offsetWidth,u=s[0].offsetHeight;if(l){var d=r,p=this.$element.parent(),f=this.getPosition(p);r="bottom"==r&&h.top+h.height+u-f.scroll>f.height?"top":"top"==r&&h.top-f.scroll-u<0?"bottom":"right"==r&&h.right+c>f.width?"left":"left"==r&&h.left-c<f.left?"right":r,s.removeClass(d).addClass(r)}var m=this.getCalculatedOffset(r,h,c,u);this.applyPlacement(m,r);var g=function(){n.$element.trigger("shown.bs."+n.type),n.hoverState=null};t.support.transition&&this.$tip.hasClass("fade")?s.one("bsTransitionEnd",g).emulateTransitionEnd(150):g()}},i.prototype.applyPlacement=function(e,i){var n=this.tip(),s=n[0].offsetWidth,o=n[0].offsetHeight,r=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(a)&&(a=0),e.top=e.top+r,e.left=e.left+a,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");var l=n[0].offsetWidth,h=n[0].offsetHeight;"top"==i&&h!=o&&(e.top=e.top+o-h);var c=this.getViewportAdjustedDelta(i,e,l,h);c.left?e.left+=c.left:e.top+=c.top;var u=c.left?2*c.left-s+l:2*c.top-o+h,d=c.left?"left":"top",p=c.left?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(u,n[0][p],d)},i.prototype.replaceArrow=function(t,e,i){this.arrow().css(i,t?50*(1-t/e)+"%":"")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(){function e(){"in"!=i.hoverState&&n.detach(),i.$element.trigger("hidden.bs."+i.type)}var i=this,n=this.tip(),s=t.Event("hide.bs."+this.type);return this.$element.removeAttr("aria-describedby"),this.$element.trigger(s),s.isDefaultPrevented()?void 0:(n.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",e).emulateTransitionEnd(150):e(),this.hoverState=null,this)},i.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(e){var i=(e=e||this.$element)[0],n="BODY"==i.tagName;return t.extend({},"function"==typeof i.getBoundingClientRect?i.getBoundingClientRect():null,{scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop(),width:n?t(window).width():e.outerWidth(),height:n?t(window).height():e.outerHeight()},n?{top:0,left:0}:e.offset())},i.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},i.prototype.getViewportAdjustedDelta=function(t,e,i,n){var s={top:0,left:0};if(!this.$viewport)return s;var o=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-o-r.scroll,l=e.top+o-r.scroll+n;a<r.top?s.top=r.top-a:l>r.top+r.height&&(s.top=r.top+r.height-l)}else{var h=e.left-o,c=e.left+o+i;h<r.left?s.left=r.left-h:c>r.width&&(s.left=r.left+r.width-c)}return s},i.prototype.getTitle=function(){var t,e=this.$element,i=this.options;return t=e.attr("data-original-title")||("function"==typeof i.title?i.title.call(e[0]):i.title)},i.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},i.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var n=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.popover"),o="object"==typeof e&&e;(s||"destroy"!=e)&&(s||n.data("bs.popover",s=new i(this,o)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.2.0",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").empty()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},i.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var n=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),function(t){"use strict";function e(i,n){var s=t.proxy(this.process,this);this.$body=t("body"),this.$scrollElement=t(t(i).is("body")?window:i),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",s),this.refresh(),this.process()}function i(i){return this.each(function(){var n=t(this),s=n.data("bs.scrollspy"),o="object"==typeof i&&i;s||n.data("bs.scrollspy",s=new e(this,o)),"string"==typeof i&&s[i]()})}e.VERSION="3.2.0",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e="offset",i=0;t.isWindow(this.$scrollElement[0])||(e="position",i=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var n=this;this.$body.find(this.selector).map(function(){var n=t(this),s=n.data("target")||n.attr("href"),o=/^#./.test(s)&&t(s);return o&&o.length&&o.is(":visible")&&[[o[e]().top+i,s]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){n.offsets.push(this[0]),n.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,o=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=n)return r!=(t=o[o.length-1])&&this.activate(t);if(r&&e<=s[0])return r!=(t=o[0])&&this.activate(t);for(t=s.length;t--;)r!=o[t]&&e>=s[t]&&(!s[t+1]||e<=s[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,t(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=t(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")};var n=t.fn.scrollspy;t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=n,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);i.call(e,e.data())})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.tab");s||n.data("bs.tab",s=new i(this)),"string"==typeof e&&s[e]()})}var i=function(e){this.element=t(e)};i.VERSION="3.2.0",i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=e.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var s=i.find(".active:last a")[0],o=t.Event("show.bs.tab",{relatedTarget:s});if(e.trigger(o),!o.isDefaultPrevented()){var r=t(n);this.activate(e.closest("li"),i),this.activate(r,r.parent(),function(){e.trigger({type:"shown.bs.tab",relatedTarget:s})})}}},i.prototype.activate=function(e,i,n){function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),r?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),n&&n()}var o=i.find("> .active"),r=n&&t.support.transition&&o.hasClass("fade");r?o.one("bsTransitionEnd",s).emulateTransitionEnd(150):s(),o.removeClass("in")};var n=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=n,this},t(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(i){i.preventDefault(),e.call(t(this),"show")})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.affix"),o="object"==typeof e&&e;s||n.data("bs.affix",s=new i(this,o)),"string"==typeof e&&s[e]()})}var i=function(e,n){this.options=t.extend({},i.DEFAULTS,n),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.2.0",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=t(document).height(),n=this.$target.scrollTop(),s=this.$element.offset(),o=this.options.offset,r=o.top,a=o.bottom;"object"!=typeof o&&(a=r=o),"function"==typeof r&&(r=o.top(this.$element)),"function"==typeof a&&(a=o.bottom(this.$element));var l=!(null!=this.unpin&&n+this.unpin<=s.top)&&(null!=a&&s.top+this.$element.height()>=e-a?"bottom":null!=r&&r>=n&&"top");if(this.affixed!==l){null!=this.unpin&&this.$element.css("top","");var h="affix"+(l?"-"+l:""),c=t.Event(h+".bs.affix");this.$element.trigger(c),c.isDefaultPrevented()||(this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(h).trigger(t.Event(h.replace("affix","affixed"))),"bottom"==l&&this.$element.offset({top:e-this.$element.height()-a}))}}};var n=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),n=i.data();n.offset=n.offset||{},n.offsetBottom&&(n.offset.bottom=n.offsetBottom),n.offsetTop&&(n.offset.top=n.offsetTop),e.call(i,n)})})}(jQuery),function(){var t=[].slice;!function(e,i){"use strict";var n;n=function(){function t(t,i){null==i&&(i={}),this.$element=e(t),this.options=e.extend({},e.fn.bootstrapSwitch.defaults,{state:this.$element.is(":checked"),size:this.$element.data("size"),animate:this.$element.data("animate"),disabled:this.$element.is(":disabled"),readonly:this.$element.is("[readonly]"),indeterminate:this.$element.data("indeterminate"),onColor:this.$element.data("on-color"),offColor:this.$element.data("off-color"),onText:this.$element.data("on-text"),offText:this.$element.data("off-text"),labelText:this.$element.data("label-text"),baseClass:this.$element.data("base-class"),wrapperClass:this.$element.data("wrapper-class"),radioAllOff:this.$element.data("radio-all-off")},i),this.$wrapper=e("<div>",{class:function(t){return function(){var e;return(e=[""+t.options.baseClass].concat(t._getClasses(t.options.wrapperClass))).push(t.options.state?t.options.baseClass+"-on":t.options.baseClass+"-off"),null!=t.options.size&&e.push(t.options.baseClass+"-"+t.options.size),t.options.animate&&e.push(t.options.baseClass+"-animate"),t.options.disabled&&e.push(t.options.baseClass+"-disabled"),t.options.readonly&&e.push(t.options.baseClass+"-readonly"),t.options.indeterminate&&e.push(t.options.baseClass+"-indeterminate"),t.$element.attr("id")&&e.push(t.options.baseClass+"-id-"+t.$element.attr("id")),e.join(" ")}}(this)()}),this.$container=e("<div>",{class:this.options.baseClass+"-container"}),this.$on=e("<span>",{html:this.options.onText,class:this.options.baseClass+"-handle-on "+this.options.baseClass+"-"+this.options.onColor}),this.$off=e("<span>",{html:this.options.offText,class:this.options.baseClass+"-handle-off "+this.options.baseClass+"-"+this.options.offColor}),this.$label=e("<label>",{html:this.options.labelText,class:this.options.baseClass+"-label"}),this.options.indeterminate&&this.$element.prop("indeterminate",!0),this.$element.on("init.bootstrapSwitch",function(e){return function(){return e.options.onInit.apply(t,arguments)}}(this)),this.$element.on("switchChange.bootstrapSwitch",function(e){return function(){return e.options.onSwitchChange.apply(t,arguments)}}(this)),this.$container=this.$element.wrap(this.$container).parent(),this.$wrapper=this.$container.wrap(this.$wrapper).parent(),this.$element.before(this.$on).before(this.$label).before(this.$off).trigger("init.bootstrapSwitch"),this._elementHandlers(),this._handleHandlers(),this._labelHandlers(),this._formHandler()}return t.prototype._constructor=t,t.prototype.state=function(t,e){return void 0===t?this.options.state:this.options.disabled||this.options.readonly||this.options.indeterminate?this.$element:this.options.state&&!this.options.radioAllOff&&this.$element.is(":radio")?this.$element:(t=!!t,this.$element.prop("checked",t).trigger("change.bootstrapSwitch",e),this.$element)},t.prototype.toggleState=function(t){return this.options.disabled||this.options.readonly||this.options.indeterminate?this.$element:this.$element.prop("checked",!this.options.state).trigger("change.bootstrapSwitch",t)},t.prototype.size=function(t){return void 0===t?this.options.size:(null!=this.options.size&&this.$wrapper.removeClass(this.options.baseClass+"-"+this.options.size),t&&this.$wrapper.addClass(this.options.baseClass+"-"+t),this.options.size=t,this.$element)},t.prototype.animate=function(t){return void 0===t?this.options.animate:(t=!!t,this.$wrapper[t?"addClass":"removeClass"](this.options.baseClass+"-animate"),this.options.animate=t,this.$element)},t.prototype.disabled=function(t){return void 0===t?this.options.disabled:(t=!!t,this.$wrapper[t?"addClass":"removeClass"](this.options.baseClass+"-disabled"),this.$element.prop("disabled",t),this.options.disabled=t,this.$element)},t.prototype.toggleDisabled=function(){return this.$element.prop("disabled",!this.options.disabled),this.$wrapper.toggleClass(this.options.baseClass+"-disabled"),this.options.disabled=!this.options.disabled,this.$element},t.prototype.readonly=function(t){return void 0===t?this.options.readonly:(t=!!t,this.$wrapper[t?"addClass":"removeClass"](this.options.baseClass+"-readonly"),this.$element.prop("readonly",t),this.options.readonly=t,this.$element)},t.prototype.toggleReadonly=function(){return this.$element.prop("readonly",!this.options.readonly),this.$wrapper.toggleClass(this.options.baseClass+"-readonly"),this.options.readonly=!this.options.readonly,this.$element},t.prototype.indeterminate=function(t){return void 0===t?this.options.indeterminate:(t=!!t,this.$wrapper[t?"addClass":"removeClass"](this.options.baseClass+"-indeterminate"),this.$element.prop("indeterminate",t),this.options.indeterminate=t,this.$element)},t.prototype.toggleIndeterminate=function(){return this.$element.prop("indeterminate",!this.options.indeterminate),this.$wrapper.toggleClass(this.options.baseClass+"-indeterminate"),this.options.indeterminate=!this.options.indeterminate,this.$element},t.prototype.onColor=function(t){var e;return e=this.options.onColor,void 0===t?e:(null!=e&&this.$on.removeClass(this.options.baseClass+"-"+e),this.$on.addClass(this.options.baseClass+"-"+t),this.options.onColor=t,this.$element)},t.prototype.offColor=function(t){var e;return e=this.options.offColor,void 0===t?e:(null!=e&&this.$off.removeClass(this.options.baseClass+"-"+e),this.$off.addClass(this.options.baseClass+"-"+t),this.options.offColor=t,this.$element)},t.prototype.onText=function(t){return void 0===t?this.options.onText:(this.$on.html(t),this.options.onText=t,this.$element)},t.prototype.offText=function(t){return void 0===t?this.options.offText:(this.$off.html(t),this.options.offText=t,this.$element)},t.prototype.labelText=function(t){return void 0===t?this.options.labelText:(this.$label.html(t),this.options.labelText=t,this.$element)},t.prototype.baseClass=function(){return this.options.baseClass},t.prototype.wrapperClass=function(t){return void 0===t?this.options.wrapperClass:(t||(t=e.fn.bootstrapSwitch.defaults.wrapperClass),this.$wrapper.removeClass(this._getClasses(this.options.wrapperClass).join(" ")),this.$wrapper.addClass(this._getClasses(t).join(" ")),this.options.wrapperClass=t,this.$element)},t.prototype.radioAllOff=function(t){return void 0===t?this.options.radioAllOff:(this.options.radioAllOff=t,this.$element)},t.prototype.onInit=function(t){return void 0===t?this.options.onInit:(t||(t=e.fn.bootstrapSwitch.defaults.onInit),this.options.onInit=t,this.$element)},t.prototype.onSwitchChange=function(t){return void 0===t?this.options.onSwitchChange:(t||(t=e.fn.bootstrapSwitch.defaults.onSwitchChange),this.options.onSwitchChange=t,this.$element)},t.prototype.destroy=function(){var t;return(t=this.$element.closest("form")).length&&t.off("reset.bootstrapSwitch").removeData("bootstrap-switch"),this.$container.children().not(this.$element).remove(),this.$element.unwrap().unwrap().off(".bootstrapSwitch").removeData("bootstrap-switch"),this.$element},t.prototype._elementHandlers=function(){return this.$element.on({"change.bootstrapSwitch":function(t){return function(i,n){var s;return i.preventDefault(),i.stopImmediatePropagation(),s=t.$element.is(":checked"),s!==t.options.state?(t.options.state=s,t.$wrapper.removeClass(s?t.options.baseClass+"-off":t.options.baseClass+"-on").addClass(s?t.options.baseClass+"-on":t.options.baseClass+"-off"),n?void 0:(t.$element.is(":radio")&&e("[name='"+t.$element.attr("name")+"']").not(t.$element).prop("checked",!1).trigger("change.bootstrapSwitch",!0),t.$element.trigger("switchChange.bootstrapSwitch",[s]))):void 0}}(this),"focus.bootstrapSwitch":function(t){return function(e){return e.preventDefault(),t.$wrapper.addClass(t.options.baseClass+"-focused")}}(this),"blur.bootstrapSwitch":function(t){return function(e){return e.preventDefault(),t.$wrapper.removeClass(t.options.baseClass+"-focused")}}(this),"keydown.bootstrapSwitch":function(t){return function(e){if(e.which&&!t.options.disabled&&!t.options.readonly&&!t.options.indeterminate)switch(e.which){case 37:return e.preventDefault(),e.stopImmediatePropagation(),t.state(!1);case 39:return e.preventDefault(),e.stopImmediatePropagation(),t.state(!0)}}}(this)})},t.prototype._handleHandlers=function(){return this.$on.on("click.bootstrapSwitch",function(t){return function(){return t.state(!1),t.$element.trigger("focus.bootstrapSwitch")}}(this)),this.$off.on("click.bootstrapSwitch",function(t){return function(){return t.state(!0),t.$element.trigger("focus.bootstrapSwitch")}}(this))},t.prototype._labelHandlers=function(){return this.$label.on({"mousemove.bootstrapSwitch touchmove.bootstrapSwitch":function(t){return function(e){var i,n,s,o;if(t.isLabelDragging)return e.preventDefault(),t.isLabelDragged=!0,n=e.pageX||e.originalEvent.touches[0].pageX,s=(n-t.$wrapper.offset().left)/t.$wrapper.width()*100,i=25,o=75,t.options.animate&&t.$wrapper.removeClass(t.options.baseClass+"-animate"),i>s?s=i:s>o&&(s=o),t.$container.css("margin-left",s-o+"%"),t.$element.trigger("focus.bootstrapSwitch")}}(this),"mousedown.bootstrapSwitch touchstart.bootstrapSwitch":function(t){return function(e){return t.isLabelDragging||t.options.disabled||t.options.readonly||t.options.indeterminate?void 0:(e.preventDefault(),t.isLabelDragging=!0,t.$element.trigger("focus.bootstrapSwitch"))}}(this),"mouseup.bootstrapSwitch touchend.bootstrapSwitch":function(t){return function(e){return t.isLabelDragging?(e.preventDefault(),t.isLabelDragged?(t.isLabelDragged=!1,t.state(parseInt(t.$container.css("margin-left"),10)>-t.$container.width()/6),t.options.animate&&t.$wrapper.addClass(t.options.baseClass+"-animate"),t.$container.css("margin-left","")):t.state(!t.options.state),t.isLabelDragging=!1):void 0}}(this),"mouseleave.bootstrapSwitch":function(t){return function(){return t.$label.trigger("mouseup.bootstrapSwitch")}}(this)})},t.prototype._formHandler=function(){var t;return t=this.$element.closest("form"),t.data("bootstrap-switch")?void 0:t.on("reset.bootstrapSwitch",function(){return i.setTimeout(function(){return t.find("input").filter(function(){return e(this).data("bootstrap-switch")}).each(function(){return e(this).bootstrapSwitch("state",this.checked)})},1)}).data("bootstrap-switch",!0)},t.prototype._getClasses=function(t){var i,n,s,o;if(!e.isArray(t))return[this.options.baseClass+"-"+t];for(n=[],s=0,o=t.length;o>s;s++)i=t[s],n.push(this.options.baseClass+"-"+i);return n},t}(),e.fn.bootstrapSwitch=function(){var i,s,o;return s=arguments[0],i=2<=arguments.length?t.call(arguments,1):[],o=this,this.each(function(){var t,r;return t=e(this),(r=t.data("bootstrap-switch"))||t.data("bootstrap-switch",r=new n(this,s)),"string"==typeof s?o=r[s].apply(r,i):void 0}),o},e.fn.bootstrapSwitch.Constructor=n,e.fn.bootstrapSwitch.defaults={state:!0,size:null,animate:!0,disabled:!1,readonly:!1,indeterminate:!1,onColor:"primary",offColor:"default",onText:"ON",offText:"OFF",labelText:"&nbsp;",baseClass:"bootstrap-switch",wrapperClass:"wrapper",radioAllOff:!1,onInit:function(){},onSwitchChange:function(){}}}(window.jQuery,window)}.call(this),function(t){"use strict";function e(e,i){this.itemsArray=[],this.$element=t(e),this.$element.hide(),this.isSelect="SELECT"===e.tagName,this.multiple=this.isSelect&&e.hasAttribute("multiple"),this.objectItems=i&&i.itemValue,this.placeholderText=e.hasAttribute("placeholder")?this.$element.attr("placeholder"):"",this.inputSize=Math.max(1,this.placeholderText.length),this.$container=t('<div class="bootstrap-tagsinput"></div>'),this.$input=t('<input type="text" placeholder="'+this.placeholderText+'"/>').appendTo(this.$container),this.$element.after(this.$container);var n=(this.inputSize<3?3:this.inputSize)+"em";this.$input.get(0).style.cssText="width: "+n+" !important;",this.build(i)}function i(t,e){if("function"!=typeof t[e]){var i=t[e];t[e]=function(t){return t[i]}}}function n(t,e){if("function"!=typeof t[e]){var i=t[e];t[e]=function(){return i}}}function s(t){return t?l.text(t).html():""}function o(t){var e=0;if(document.selection){t.focus();var i=document.selection.createRange();i.moveStart("character",-t.value.length),e=i.text.length}else(t.selectionStart||"0"==t.selectionStart)&&(e=t.selectionStart);return e}function r(e,i){var n=!1;return t.each(i,function(t,i){if("number"==typeof i&&e.which===i)return n=!0,!1;if(e.which===i.which){var s=!i.hasOwnProperty("altKey")||e.altKey===i.altKey,o=!i.hasOwnProperty("shiftKey")||e.shiftKey===i.shiftKey,r=!i.hasOwnProperty("ctrlKey")||e.ctrlKey===i.ctrlKey;if(s&&o&&r)return n=!0,!1}}),n}var a={tagClass:function(){return"label label-info"},itemValue:function(t){return t?t.toString():t},itemText:function(t){return this.itemValue(t)},freeInput:!0,addOnBlur:!0,maxTags:void 0,maxChars:void 0,confirmKeys:[13,44],onTagExists:function(t,e){e.hide().fadeIn()},trimValue:!1,allowDuplicates:!1};e.prototype={constructor:e,add:function(e,i){var n=this;if(!(n.options.maxTags&&n.itemsArray.length>=n.options.maxTags||!1!==e&&!e)){if("string"==typeof e&&n.options.trimValue&&(e=t.trim(e)),"object"==typeof e&&!n.objectItems)throw"Can't add objects when itemValue option is not set";if(!e.toString().match(/^\s*$/)){if(n.isSelect&&!n.multiple&&n.itemsArray.length>0&&n.remove(n.itemsArray[0]),"string"==typeof e&&"INPUT"===this.$element[0].tagName){var o=e.split(",");if(o.length>1){for(var r=0;r<o.length;r++)this.add(o[r],!0);return void(i||n.pushVal())}}var a=n.options.itemValue(e),l=n.options.itemText(e),h=n.options.tagClass(e),c=t.grep(n.itemsArray,function(t){return n.options.itemValue(t)===a})[0];if(!c||n.options.allowDuplicates){if(!(n.items().toString().length+e.length+1>n.options.maxInputLength)){var u=t.Event("beforeItemAdd",{item:e,cancel:!1});if(n.$element.trigger(u),!u.cancel){n.itemsArray.push(e);var d=t('<span class="tag '+s(h)+'">'+s(l)+'<span data-role="remove"></span></span>');if(d.data("item",e),n.findInputWrapper().before(d),d.after(" "),n.isSelect&&!t('option[value="'+encodeURIComponent(a)+'"]',n.$element)[0]){var p=t("<option selected>"+s(l)+"</option>");p.data("item",e),p.attr("value",a),n.$element.append(p)}i||n.pushVal(),(n.options.maxTags===n.itemsArray.length||n.items().toString().length===n.options.maxInputLength)&&n.$container.addClass("bootstrap-tagsinput-max"),n.$element.trigger(t.Event("itemAdded",{item:e}))}}}else if(n.options.onTagExists){var f=t(".tag",n.$container).filter(function(){return t(this).data("item")===c});n.options.onTagExists(e,f)}}}},remove:function(e,i){var n=this;if(n.objectItems&&(e="object"==typeof e?t.grep(n.itemsArray,function(t){return n.options.itemValue(t)==n.options.itemValue(e)}):t.grep(n.itemsArray,function(t){return n.options.itemValue(t)==e}),e=e[e.length-1]),e){var s=t.Event("beforeItemRemove",{item:e,cancel:!1});if(n.$element.trigger(s),s.cancel)return;t(".tag",n.$container).filter(function(){return t(this).data("item")===e}).remove(),t("option",n.$element).filter(function(){return t(this).data("item")===e}).remove(),-1!==t.inArray(e,n.itemsArray)&&n.itemsArray.splice(t.inArray(e,n.itemsArray),1)}i||n.pushVal(),n.options.maxTags>n.itemsArray.length&&n.$container.removeClass("bootstrap-tagsinput-max"),n.$element.trigger(t.Event("itemRemoved",{item:e}))},removeAll:function(){var e=this;for(t(".tag",e.$container).remove(),t("option",e.$element).remove();e.itemsArray.length>0;)e.itemsArray.pop();e.pushVal()},refresh:function(){var e=this;t(".tag",e.$container).each(function(){var i=t(this),n=i.data("item"),o=e.options.itemValue(n),r=e.options.itemText(n),a=e.options.tagClass(n);i.attr("class",null),i.addClass("tag "+s(a)),i.contents().filter(function(){return 3==this.nodeType})[0].nodeValue=s(r),e.isSelect&&t("option",e.$element).filter(function(){return t(this).data("item")===n}).attr("value",o)})},items:function(){return this.itemsArray},pushVal:function(){var e=this,i=t.map(e.items(),function(t){return e.options.itemValue(t).toString()});e.$element.val(i,!0).trigger("change")},build:function(e){var s=this;if(s.options=t.extend({},a,e),s.objectItems&&(s.options.freeInput=!1),i(s.options,"itemValue"),i(s.options,"itemText"),n(s.options,"tagClass"),s.options.typeahead){var l=s.options.typeahead||{};n(l,"source"),s.$input.typeahead(t.extend({},l,{source:function(e,i){function n(t){for(var e=[],n=0;n<t.length;n++){var r=s.options.itemText(t[n]);o[r]=t[n],e.push(r)}i(e)}this.map={};var o=this.map,r=l.source(e);t.isFunction(r.success)?r.success(n):t.isFunction(r.then)?r.then(n):t.when(r).then(n)},updater:function(t){s.add(this.map[t])},matcher:function(t){return-1!==t.toLowerCase().indexOf(this.query.trim().toLowerCase())},sorter:function(t){return t.sort()},highlighter:function(t){var e=new RegExp("("+this.query+")","gi");return t.replace(e,"<strong>$1</strong>")}}))}if(s.options.typeaheadjs){var h=s.options.typeaheadjs||{};s.$input.typeahead(null,h).on("typeahead:selected",t.proxy(function(t,e){s.add(h.valueKey?e[h.valueKey]:e),s.$input.typeahead("val","")},s))}s.$container.on("click",t.proxy(function(){s.$element.attr("disabled")||s.$input.removeAttr("disabled"),s.$input.focus()},s)),s.options.addOnBlur&&s.options.freeInput&&s.$input.on("focusout",t.proxy(function(){0===t(".typeahead, .twitter-typeahead",s.$container).length&&(s.add(s.$input.val()),s.$input.val(""))},s)),s.$container.on("keydown","input",t.proxy(function(e){var i=t(e.target),n=s.findInputWrapper();if(s.$element.attr("disabled"))s.$input.attr("disabled","disabled");else{switch(e.which){case 8:if(0===o(i[0])){var r=n.prev();r&&s.remove(r.data("item"))}break;case 46:if(0===o(i[0])){var a=n.next();a&&s.remove(a.data("item"))}break;case 37:var l=n.prev();0===i.val().length&&l[0]&&(l.before(n),i.focus());break;case 39:var h=n.next();0===i.val().length&&h[0]&&(h.after(n),i.focus())}var c=i.val().length;Math.ceil(c/5),i.attr("size",Math.max(this.inputSize,i.val().length))}},s)),s.$container.on("keypress","input",t.proxy(function(e){var i=t(e.target);if(s.$element.attr("disabled"))s.$input.attr("disabled","disabled");else{var n=i.val(),o=s.options.maxChars&&n.length>=s.options.maxChars;s.options.freeInput&&(r(e,s.options.confirmKeys)||o)&&(s.add(o?n.substr(0,s.options.maxChars):n),i.val(""),e.preventDefault());var a=i.val().length;Math.ceil(a/5),i.attr("size",Math.max(this.inputSize,i.val().length))}},s)),s.$container.on("click","[data-role=remove]",t.proxy(function(e){s.$element.attr("disabled")||s.remove(t(e.target).closest(".tag").data("item"))},s)),s.options.itemValue===a.itemValue&&("INPUT"===s.$element[0].tagName?s.add(s.$element.val()):t("option",s.$element).each(function(){s.add(t(this).attr("value"),!0)}))},destroy:function(){var t=this;t.$container.off("keypress","input"),t.$container.off("click","[role=remove]"),t.$container.remove(),t.$element.removeData("tagsinput"),t.$element.show()},focus:function(){this.$input.focus()},input:function(){return this.$input},findInputWrapper:function(){for(var e=this.$input[0],i=this.$container[0];e&&e.parentNode!==i;)e=e.parentNode;return t(e)}},t.fn.tagsinput=function(i,n){var s=[];return this.each(function(){var o=t(this).data("tagsinput");if(o)if(i||n){if(void 0!==o[i]){var r=o[i](n);void 0!==r&&s.push(r)}}else s.push(o);else o=new e(this,i),t(this).data("tagsinput",o),s.push(o),"SELECT"===this.tagName&&t("option",t(this)).attr("selected","selected"),t(this).val(t(this).val())}),"string"==typeof i?s.length>1?s:s[0]:s},t.fn.tagsinput.Constructor=e;var l=t("<div />");t(function(){t("input[data-role=tagsinput], select[multiple][data-role=tagsinput]").tagsinput()})}(window.jQuery),function(t,e,i){e[t]=i}("onDomReady",this,function(t){"use strict";function e(t){if(!C){if(!r.body)return s(e);for(C=!0;t=T.shift();)s(t)}}function i(t){(y||t.type===l||r[d]===u)&&(n(),e())}function n(){y?(r[b](g,i,h),t[b](l,i,h)):(r[f](v,i),t[f](c,i))}function s(t,e){setTimeout(t,+e>=0?e:1)}function o(t){C?s(t):T.push(t)}null==document.readyState&&document.addEventListener&&(document.addEventListener("DOMContentLoaded",function t(){document.removeEventListener("DOMContentLoaded",t,!1),document.readyState="complete"},!1),document.readyState="loading");var r=t.document,a=r.documentElement,l="load",h=!1,c="on"+l,u="complete",d="readyState",p="attachEvent",f="detachEvent",m="addEventListener",g="DOMContentLoaded",v="onreadystatechange",b="removeEventListener",y=m in r,w=h,C=h,T=[];if(r[d]===u)s(e);else if(y)r[m](g,i,h),t[m](l,i,h);else{r[p](v,i),t[p](c,i);try{w=null==t.frameElement&&a}catch(t){}w&&w.doScroll&&function t(){if(!C){try{w.doScroll("left")}catch(e){return s(t,50)}n(),e()}}()}return o.version="1.4.0",o.isReady=function(){return C},o}(this)),document.querySelectorAll||(document.querySelectorAll=function(t){var e,i=document.createElement("style"),n=[];for(document.documentElement.firstChild.appendChild(i),document._qsa=[],i.styleSheet.cssText=t+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",window.scrollBy(0,0),i.parentNode.removeChild(i);document._qsa.length;)(e=document._qsa.shift()).style.removeAttribute("x-qsa"),n.push(e);return document._qsa=null,n}),document.querySelector||(document.querySelector=function(t){var e=document.querySelectorAll(t);return e.length?e[0]:null}),document.getElementsByClassName||(document.getElementsByClassName=function(t){return t=String(t).replace(/^|\s+/g,"."),document.querySelectorAll(t)}),Object.keys||(Object.keys=function(t){if(t!==Object(t))throw TypeError("Object.keys called on non-object");var e,i=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&i.push(e);return i}),function(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.atob=t.atob||function(t){var i,n=0,s=[],o=0,r=0;if((t=(t=String(t)).replace(/\s/g,"")).length%4==0&&(t=t.replace(/=+$/,"")),t.length%4==1)throw Error("InvalidCharacterError");if(/[^+/0-9A-Za-z]/.test(t))throw Error("InvalidCharacterError");for(;n<t.length;)i=e.indexOf(t.charAt(n)),o=o<<6|i,24===(r+=6)&&(s.push(String.fromCharCode(o>>16&255)),s.push(String.fromCharCode(o>>8&255)),s.push(String.fromCharCode(255&o)),r=0,o=0),n+=1;return 12===r?(o>>=4,s.push(String.fromCharCode(255&o))):18===r&&(o>>=2,s.push(String.fromCharCode(o>>8&255)),s.push(String.fromCharCode(255&o))),s.join("")},t.btoa=t.btoa||function(t){t=String(t);var i,n,s,o,r,a,l,h=0,c=[];if(/[^\x00-\xFF]/.test(t))throw Error("InvalidCharacterError");for(;h<t.length;)i=t.charCodeAt(h++),n=t.charCodeAt(h++),s=t.charCodeAt(h++),o=i>>2,r=(3&i)<<4|n>>4,a=(15&n)<<2|s>>6,l=63&s,h===t.length+2?(a=64,l=64):h===t.length+1&&(l=64),c.push(e.charAt(o),e.charAt(r),e.charAt(a),e.charAt(l));return c.join("")}}(this),function(){function t(e,i,n){e.document;var s,o=e.currentStyle[i].match(/([\d\.]+)(%|cm|em|in|mm|pc|pt|)/)||[0,0,""],r=o[1],a=o[2];return n=n?/%|em/.test(a)&&e.parentElement?t(e.parentElement,"fontSize",null):16:n,s="fontSize"==i?n:/width/i.test(i)?e.clientWidth:e.clientHeight,"%"==a?r/100*s:"cm"==a?.3937*r*96:"em"==a?r*n:"in"==a?96*r:"mm"==a?.3937*r*96/10:"pc"==a?12*r*96/72:"pt"==a?96*r/72:r}function e(t,e){var i="border"==e?"Width":"",n=e+"Top"+i,s=e+"Right"+i,o=e+"Bottom"+i,r=e+"Left"+i;t[e]=(t[n]==t[s]&&t[n]==t[o]&&t[n]==t[r]?[t[n]]:t[n]==t[o]&&t[r]==t[s]?[t[n],t[s]]:t[r]==t[s]?[t[n],t[s],t[o]]:[t[n],t[s],t[o],t[r]]).join(" ")}function i(i){var n,s=this,o=i.currentStyle,r=t(i,"fontSize"),a=function(t){return"-"+t.toLowerCase()};for(n in o)if(Array.prototype.push.call(s,"styleFloat"==n?"float":n.replace(/[A-Z]/,a)),"width"==n)s[n]=i.offsetWidth+"px";else if("height"==n)s[n]=i.offsetHeight+"px";else if("styleFloat"==n)s.float=o[n];else if(/margin.|padding.|border.+W/.test(n)&&"auto"!=s[n])s[n]=Math.round(t(i,n,r))+"px";else if(/^outline/.test(n))try{s[n]=o[n]}catch(t){s.outlineColor=o.color,s.outlineStyle=s.outlineStyle||"none",s.outlineWidth=s.outlineWidth||"0px",s.outline=[s.outlineColor,s.outlineWidth,s.outlineStyle].join(" ")}else s[n]=o[n];e(s,"margin"),e(s,"padding"),e(s,"border"),s.fontSize=Math.round(r)+"px"}window.getComputedStyle||(i.prototype={constructor:i,getPropertyPriority:function(){throw new Error("NotSupportedError: DOM Exception 9")},getPropertyValue:function(t){return this[t.replace(/-\w/g,function(t){return t[1].toUpperCase()})]},item:function(t){return this[t]},removeProperty:function(){throw new Error("NoModificationAllowedError: DOM Exception 7")},setProperty:function(){throw new Error("NoModificationAllowedError: DOM Exception 7")},getPropertyCSSValue:function(){throw new Error("NotSupportedError: DOM Exception 9")}},window.getComputedStyle=Window.prototype.getComputedStyle=function(t){return new i(t)})}(),Object.prototype.hasOwnProperty||(Object.prototype.hasOwnProperty=function(t){var e=this.__proto__||this.constructor.prototype;return t in this&&(!(t in e)||e[t]!==this[t])}),function(t,e){t.augment=e()}(this,function(){"use strict";var t=function(){},e=Array.prototype.slice,i=function(i,n){var s=t.prototype="function"==typeof i?i.prototype:i,o=new t,r=n.apply(o,e.call(arguments,2).concat(s));if("object"==typeof r)for(var a in r)o[a]=r[a];if(!o.hasOwnProperty("constructor"))return o;var l=o.constructor;return l.prototype=o,l};return i.defclass=function(t){var e=t.constructor;return e.prototype=t,e},i.extend=function(t,e){return i(t,function(t){return this.uber=t,e})},i}),function(t,e){function i(t,e,i,o){var r=n(i.substr(i.lastIndexOf(t.domain)),t);r&&s(null,o,r,e)}function n(t,e){for(var i={theme:m(k.settings.themes.gray,null),stylesheets:e.stylesheets,holderURL:[]},n=!1,s=String.fromCharCode(11),o=t.replace(/([^\\])\//g,"$1"+s).split(s),r=/%[0-9a-f]{2}/gi,a=o.length,l=0;a>l;l++){var h=o[l];if(h.match(r))try{h=decodeURIComponent(h)}catch(t){h=o[l]}var c=!1;if(k.flags.dimensions.match(h))n=!0,i.dimensions=k.flags.dimensions.output(h),c=!0;else if(k.flags.fluid.match(h))n=!0,i.dimensions=k.flags.fluid.output(h),i.fluid=!0,c=!0;else if(k.flags.textmode.match(h))i.textmode=k.flags.textmode.output(h),c=!0;else if(k.flags.colors.match(h)){var u=k.flags.colors.output(h);i.theme=m(i.theme,u),c=!0}else if(e.themes[h])e.themes.hasOwnProperty(h)&&(i.theme=m(e.themes[h],null)),c=!0;else if(k.flags.font.match(h))i.font=k.flags.font.output(h),c=!0;else if(k.flags.auto.match(h))i.auto=!0,c=!0;else if(k.flags.text.match(h))i.text=k.flags.text.output(h),c=!0;else if(k.flags.random.match(h)){null==k.vars.cache.themeKeys&&(k.vars.cache.themeKeys=Object.keys(e.themes));var d=k.vars.cache.themeKeys[0|Math.random()*k.vars.cache.themeKeys.length];i.theme=m(e.themes[d],null),c=!0}c&&i.holderURL.push(h)}return i.holderURL.unshift(e.domain),i.holderURL=i.holderURL.join("/"),!!n&&i}function s(t,e,i,n){var s=i.dimensions,r=i.theme,a=s.width+"x"+s.height;if(t=null==t?i.fluid?"fluid":"image":t,null!=i.text&&(r.text=i.text,"object"===e.nodeName.toLowerCase())){for(var h=r.text.split("\\n"),u=0;u<h.length;u++)h[u]=C(h[u]);r.text=h.join("\\n")}var p=i.holderURL,f=m(n,null);i.font&&(r.font=i.font,!f.noFontFallback&&"img"===e.nodeName.toLowerCase()&&k.setup.supportsCanvas&&"svg"===f.renderer&&(f=m(f,{renderer:"canvas"}))),i.font&&"canvas"==f.renderer&&(f.reRender=!0),"background"==t?null==e.getAttribute("data-background-src")&&d(e,{"data-background-src":p}):d(e,{"data-src":p}),i.theme=r,e.holderData={flags:i,renderSettings:f},("image"==t||"fluid"==t)&&d(e,{alt:r.text?(r.text.length>16?r.text.substring(0,16)+"…":r.text)+" ["+a+"]":a}),"image"==t?("html"!=f.renderer&&i.auto||(e.style.width=s.width+"px",e.style.height=s.height+"px"),"html"==f.renderer?e.style.backgroundColor=r.background:(o(t,{dimensions:s,theme:r,flags:i},e,f),i.textmode&&"exact"==i.textmode&&(k.vars.resizableImages.push(e),l(e)))):"background"==t&&"html"!=f.renderer?o(t,{dimensions:s,theme:r,flags:i},e,f):"fluid"==t&&("%"==s.height.slice(-1)?e.style.height=s.height:null!=i.auto&&i.auto||(e.style.height=s.height+"px"),"%"==s.width.slice(-1)?e.style.width=s.width:null!=i.auto&&i.auto||(e.style.width=s.width+"px"),("inline"==e.style.display||""===e.style.display||"none"==e.style.display)&&(e.style.display="block"),c(e),"html"==f.renderer?e.style.backgroundColor=r.background:(k.vars.resizableImages.push(e),l(e)))}function o(t,e,i,n){function s(){var t=null;switch(n.renderer){case"canvas":t=_(l);break;case"svg":t=D(l,n);break;default:throw"Holder: invalid renderer: "+n.renderer}return t}var o=null;switch(n.renderer){case"svg":if(!k.setup.supportsSVG)return;break;case"canvas":if(!k.setup.supportsCanvas)return;break;default:return}var a={width:e.dimensions.width,height:e.dimensions.height,theme:e.theme,flags:e.flags},l=r(a);if(a.font.size,a.font.family,a.font.weight,null==(o=s()))throw"Holder: couldn't render placeholder";"background"==t?(i.style.backgroundImage="url("+o+")",i.style.backgroundSize=a.width+"px "+a.height+"px"):("img"===i.nodeName.toLowerCase()?d(i,{src:o}):"object"===i.nodeName.toLowerCase()&&(d(i,{data:o}),d(i,{type:"image/svg+xml"})),n.reRender&&setTimeout(function(){var t=s();if(null==t)throw"Holder: couldn't render placeholder";"img"===i.nodeName.toLowerCase()?d(i,{src:t}):"object"===i.nodeName.toLowerCase()&&(d(i,{data:t}),d(i,{type:"image/svg+xml"}))},100)),d(i,{"data-holder-rendered":!0})}function r(t){function e(t,e,i,n){e.width=i,e.height=n,t.width=Math.max(t.width,e.width),t.height+=e.height,t.add(e)}switch(t.font={family:t.theme.font?t.theme.font:"Arial, Helvetica, Open Sans, sans-serif",size:a(t.width,t.height,t.theme.size?t.theme.size:12),weight:t.theme.fontweight?t.theme.fontweight:"bold"},t.text=t.theme.text?t.theme.text:Math.floor(t.width)+"x"+Math.floor(t.height),t.flags.textmode){case"literal":t.text=t.flags.dimensions.width+"x"+t.flags.dimensions.height;break;case"exact":if(!t.flags.exactDimensions)break;t.text=Math.floor(t.flags.exactDimensions.width)+"x"+Math.floor(t.flags.exactDimensions.height)}var i=new M({width:t.width,height:t.height}),n=i.Shape,s=new n.Rect("holderBg",{fill:t.theme.background});s.resize(t.width,t.height),i.root.add(s);var o=new n.Group("holderTextGroup",{text:t.text,align:"center",font:t.font,fill:t.theme.foreground});o.moveTo(null,null,1),i.root.add(o);var r=o.textPositionData=E(i);if(!r)throw"Holder: staging fallback not supported yet.";o.properties.leading=r.boundingBox.height;var l=null,h=null;if(r.lineCount>1){var c=0,u=0,d=t.width*k.setup.lineWrapRatio,p=0;h=new n.Group("line"+p);for(var f=0;f<r.words.length;f++){var m=r.words[f];l=new n.Text(m.text);var g="\\n"==m.text;(c+m.width>=d||!0===g)&&(e(o,h,c,o.properties.leading),c=0,u+=o.properties.leading,p+=1,h=new n.Group("line"+p),h.y=u),!0!==g&&(l.moveTo(c,0),c+=r.spaceWidth+m.width,h.add(l))}e(o,h,c,o.properties.leading);for(var v in o.children)(h=o.children[v]).moveTo((o.width-h.width)/2,null,null);o.moveTo((t.width-o.width)/2,(t.height-o.height)/2,null),(t.height-o.height)/2<0&&o.moveTo(null,0,null)}else l=new n.Text(t.text),(h=new n.Group("line0")).add(l),o.add(h),o.moveTo((t.width-r.boundingBox.width)/2,(t.height-r.boundingBox.height)/2,null);return i}function a(t,e,i){e=parseInt(e,10),t=parseInt(t,10);var n=Math.max(e,t),s=Math.min(e,t),o=1/12,r=Math.min(.75*s,.75*n*o);return Math.round(Math.max(i,r))}function l(t){var e;e=null==t||null==t.nodeType?k.vars.resizableImages:[t];for(var i in e)if(e.hasOwnProperty(i)){var n=e[i];if(n.holderData){var s=n.holderData.flags,r=h(n,$.invisibleErrorFn(l));if(r){if(s.fluid&&s.auto){var a=n.holderData.fluidConfig;switch(a.mode){case"width":r.height=r.width/a.ratio;break;case"height":r.width=r.height*a.ratio}}var c={dimensions:r,theme:s.theme,flags:s};s.textmode&&"exact"==s.textmode&&(s.exactDimensions=r,c.dimensions=s.dimensions),o("image",c,n,n.holderData.renderSettings)}}}}function h(t,e){var i={height:t.clientHeight,width:t.clientWidth};return i.height||i.width?(t.removeAttribute("data-holder-invisible"),i):(d(t,{"data-holder-invisible":!0}),void e.call(this,t))}function c(t){if(t.holderData){var e=h(t,$.invisibleErrorFn(c));if(e){var i=t.holderData.flags,n={fluidHeight:"%"==i.dimensions.height.slice(-1),fluidWidth:"%"==i.dimensions.width.slice(-1),mode:null,initialDimensions:e};n.fluidWidth&&!n.fluidHeight?(n.mode="width",n.ratio=n.initialDimensions.width/parseFloat(i.dimensions.height)):!n.fluidWidth&&n.fluidHeight&&(n.mode="height",n.ratio=parseFloat(i.dimensions.width)/n.initialDimensions.height),t.holderData.fluidConfig=n}}}function u(t,e){return null==e?S.createElement(t):S.createElementNS(e,t)}function d(t,e){for(var i in e)t.setAttribute(i,e[i])}function p(t,e,i){if(null==t){t=u("svg",x);var n=u("defs",x);t.appendChild(n)}return t.webkitMatchesSelector&&t.setAttribute("xmlns",x),d(t,{width:e,height:i,viewBox:"0 0 "+e+" "+i,preserveAspectRatio:"none"}),t}function f(t,i){if(e.XMLSerializer){var n=new XMLSerializer,s="",o=i.stylesheets;if(t.querySelector("defs"),i.svgXMLStylesheet){for(var r=(new DOMParser).parseFromString("<xml />","application/xml"),a=o.length-1;a>=0;a--){var l=r.createProcessingInstruction("xml-stylesheet",'href="'+o[a]+'" rel="stylesheet"');r.insertBefore(l,r.firstChild)}var h=r.createProcessingInstruction("xml",'version="1.0" encoding="UTF-8" standalone="yes"');r.insertBefore(h,r.firstChild),r.removeChild(r.documentElement),s=n.serializeToString(r)}var c=n.serializeToString(t);return c=c.replace(/\&amp;(\#[0-9]{2,}\;)/g,"&$1"),s+c}}function m(t,e){var i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);if(null!=e)for(var s in e)e.hasOwnProperty(s)&&(i[s]=e[s]);return i}function g(t){var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i+":"+t[i]);return e.join(";")}function v(t){k.vars.debounceTimer||t.call(this),k.vars.debounceTimer&&clearTimeout(k.vars.debounceTimer),k.vars.debounceTimer=setTimeout(function(){k.vars.debounceTimer=null,t.call(this)},k.setup.debounce)}function b(){v(function(){l(null)})}function y(t){var i=null;return"string"==typeof t?i=S.querySelectorAll(t):e.NodeList&&t instanceof e.NodeList?i=t:e.Node&&t instanceof e.Node?i=[t]:e.HTMLCollection&&t instanceof e.HTMLCollection?i=t:null===t&&(i=[]),i}function w(t,e){var i=new Image;i.onerror=function(){e.call(this,!1,t)},i.onload=function(){e.call(this,!0,t)},i.src=t.src}function C(t){for(var e=[],i=0,n=t.length-1;n>=0;n--)i=t[n].charCodeAt(),e.unshift(i>128?["&#",i,";"].join(""):t[n]);return e.join("")}function T(t){return t.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(e)})}var x="http://www.w3.org/2000/svg",S=e.document,$={addTheme:function(t,e){return null!=t&&null!=e&&(k.settings.themes[t]=e),delete k.vars.cache.themeKeys,this},addImage:function(t,e){var i=S.querySelectorAll(e);if(i.length)for(var n=0,s=i.length;s>n;n++){var o=u("img");d(o,{"data-src":t}),i[n].appendChild(o)}return this},run:function(t){t=t||{};var o={};k.vars.preempted=!0;var r=m(k.settings,t);o.renderer=r.renderer?r.renderer:k.setup.renderer,-1===k.setup.renderers.join(",").indexOf(o.renderer)&&(o.renderer=k.setup.supportsSVG?"svg":k.setup.supportsCanvas?"canvas":"html"),r.use_canvas?o.renderer="canvas":r.use_svg&&(o.renderer="svg");var a=y(r.images),l=y(r.bgnodes),h=y(r.stylenodes),c=y(r.objects);o.stylesheets=[],o.svgXMLStylesheet=!0,o.noFontFallback=!!r.noFontFallback&&r.noFontFallback;for(var d=0;d<h.length;d++){var p=h[d];if(p.attributes.rel&&p.attributes.href&&"stylesheet"==p.attributes.rel.value){var f=p.attributes.href.value,g=u("a");g.href=f;var v=g.protocol+"//"+g.host+g.pathname+g.search;o.stylesheets.push(v)}}for(d=0;d<l.length;d++){var b=e.getComputedStyle(l[d],null).getPropertyValue("background-image"),C=l[d].getAttribute("data-background-src"),T=null;T=null==C?b:C;var x=null,S="?"+r.domain+"/";if(0===T.indexOf(S))x=T.slice(1);else if(-1!=T.indexOf(S)){var $=T.substr(T.indexOf(S)).slice(1).match(/([^\"]*)"?\)/);null!=$&&(x=$[1])}if(null!=x){var E=n(x,r);E&&s("background",l[d],E,o)}}for(d=0;d<c.length;d++){var _=c[d],D={};try{D.data=_.getAttribute("data"),D.dataSrc=_.getAttribute("data-src")}catch(t){}var M=null!=D.data&&0===D.data.indexOf(r.domain),A=null!=D.dataSrc&&0===D.dataSrc.indexOf(r.domain);M?i(r,o,D.data,_):A&&i(r,o,D.dataSrc,_)}for(d=0;d<a.length;d++){var I=a[d],L={};try{L.src=I.getAttribute("src"),L.dataSrc=I.getAttribute("data-src"),L.rendered=I.getAttribute("data-holder-rendered")}catch(t){}var O=null!=L.src,H=null!=L.dataSrc&&0===L.dataSrc.indexOf(r.domain),R=null!=L.rendered&&"true"==L.rendered;O?0===L.src.indexOf(r.domain)?i(r,o,L.src,I):H&&(R?i(r,o,L.dataSrc,I):w({src:L.src,options:r,renderSettings:o,dataSrc:L.dataSrc,image:I},function(t,e){t||i(e.options,e.renderSettings,e.dataSrc,e.image)})):H&&i(r,o,L.dataSrc,I)}return this},invisibleErrorFn:function(){return function(t){if(t.hasAttribute("data-holder-invisible"))throw"Holder: invisible placeholder"}}};$.add_theme=$.addTheme,$.add_image=$.addImage,$.invisible_error_fn=$.invisibleErrorFn;var k={settings:{domain:"holder.js",images:"img",objects:"object",bgnodes:"body .holderjs",stylenodes:"head link.holderjs",stylesheets:[],themes:{gray:{background:"#EEEEEE",foreground:"#AAAAAA"},social:{background:"#3a5a97",foreground:"#FFFFFF"},industrial:{background:"#434A52",foreground:"#C2F200"},sky:{background:"#0D8FDB",foreground:"#FFFFFF"},vine:{background:"#39DBAC",foreground:"#1E292C"},lava:{background:"#F8591A",foreground:"#1C2846",size:12}}},flags:{dimensions:{regex:/^(\d+)x(\d+)$/,output:function(t){var e=this.regex.exec(t);return{width:+e[1],height:+e[2]}}},fluid:{regex:/^([0-9]+%?)x([0-9]+%?)$/,output:function(t){var e=this.regex.exec(t);return{width:e[1],height:e[2]}}},colors:{regex:/(?:#|\^)([0-9a-f]{3,})\:(?:#|\^)([0-9a-f]{3,})/i,output:function(t){var e=this.regex.exec(t);return{foreground:"#"+e[2],background:"#"+e[1]}}},text:{regex:/text\:(.*)/,output:function(t){return this.regex.exec(t)[1].replace("\\/","/")}},font:{regex:/font\:(.*)/,output:function(t){return this.regex.exec(t)[1]}},auto:{regex:/^auto$/},textmode:{regex:/textmode\:(.*)/,output:function(t){return this.regex.exec(t)[1]}},random:{regex:/^random$/}}},E=function(){var t=null,e=null,i=null;return function(n){var s=n.root;if(k.setup.supportsSVG){var o=!1,r=function(t){return S.createTextNode(t)};null==t&&(o=!0),t=p(t,s.properties.width,s.properties.height),o&&(e=u("text",x),i=r(null),d(e,{x:0}),e.appendChild(i),t.appendChild(e),S.body.appendChild(t),t.style.visibility="hidden",t.style.position="absolute",t.style.top="-100%",t.style.left="-100%");var a=s.children.holderTextGroup.properties;d(e,{y:a.font.size,style:g({"font-weight":a.font.weight,"font-size":a.font.size+"px","font-family":a.font.family,"dominant-baseline":"middle"})}),i.nodeValue=a.text;var l=e.getBBox(),h=Math.ceil(l.width/(s.properties.width*k.setup.lineWrapRatio)),c=a.text.split(" "),f=a.text.match(/\\n/g);h+=null==f?0:f.length,i.nodeValue=a.text.replace(/[ ]+/g,"");var m=e.getComputedTextLength(),v=l.width-m,b=Math.round(v/Math.max(1,c.length-1)),y=[];if(h>1){i.nodeValue="";for(var w=0;w<c.length;w++)if(0!==c[w].length){i.nodeValue=T(c[w]);var C=e.getBBox();y.push({text:c[w],width:C.width})}}return{spaceWidth:b,lineCount:h,boundingBox:l,words:y}}return!1}}(),_=function(){var t=u("canvas"),e=null;return function(i){null==e&&(e=t.getContext("2d"));var n=i.root;t.width=k.dpr(n.properties.width),t.height=k.dpr(n.properties.height),e.textBaseline="middle",e.fillStyle=n.children.holderBg.properties.fill,e.fillRect(0,0,k.dpr(n.children.holderBg.width),k.dpr(n.children.holderBg.height));var s=n.children.holderTextGroup;s.properties,e.font=s.properties.font.weight+" "+k.dpr(s.properties.font.size)+"px "+s.properties.font.family+", monospace",e.fillStyle=s.properties.fill;for(var o in s.children){var r=s.children[o];for(var a in r.children){var l=r.children[a],h=k.dpr(s.x+r.x+l.x),c=k.dpr(s.y+r.y+l.y+s.properties.leading/2);e.fillText(l.properties.text,h,c)}}return t.toDataURL("image/png")}}(),D=function(){if(e.XMLSerializer){var t=p(null,0,0),i=u("rect",x);return t.appendChild(i),function(e,n){var s=e.root;p(t,s.properties.width,s.properties.height);for(var o=t.querySelectorAll("g"),r=0;r<o.length;r++)o[r].parentNode.removeChild(o[r]);d(i,{width:s.children.holderBg.width,height:s.children.holderBg.height,fill:s.children.holderBg.properties.fill});var a=s.children.holderTextGroup,l=a.properties,h=u("g",x);t.appendChild(h);for(var c in a.children){var m=a.children[c];for(var v in m.children){var b=m.children[v],y=a.x+m.x+b.x,w=a.y+m.y+b.y+a.properties.leading/2,C=u("text",x),T=S.createTextNode(null);d(C,{x:y,y:w,style:g({fill:l.fill,"font-weight":l.font.weight,"font-family":l.font.family+", monospace","font-size":l.font.size+"px","dominant-baseline":"central"})}),T.nodeValue=b.properties.text,C.appendChild(T),h.appendChild(C)}}return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(f(t,n))))}}}(),M=function(t){function e(t,e){for(var i in e)t[i]=e[i];return t}var i=1,n=augment.defclass({constructor:function(t){i++,this.parent=null,this.children={},this.id=i,this.name="n"+i,null!=t&&(this.name=t),this.x=0,this.y=0,this.z=0,this.width=0,this.height=0},resize:function(t,e){null!=t&&(this.width=t),null!=e&&(this.height=e)},moveTo:function(t,e,i){this.x=null!=t?t:this.x,this.y=null!=e?e:this.y,this.z=null!=i?i:this.z},add:function(t){var e=t.name;if(null!=this.children[e])throw"SceneGraph: child with that name already exists: "+e;this.children[e]=t,t.parent=this}}),s=augment(n,function(e){this.constructor=function(){e.constructor.call(this,"root"),this.properties=t}}),o=augment(n,function(t){function i(i,n){if(t.constructor.call(this,i),this.properties={fill:"#000"},null!=n)e(this.properties,n);else if(null!=i&&"string"!=typeof i)throw"SceneGraph: invalid node name"}this.Group=augment.extend(this,{constructor:i,type:"group"}),this.Rect=augment.extend(this,{constructor:i,type:"rect"}),this.Text=augment.extend(this,{constructor:function(t){i.call(this),this.properties.text=t},type:"text"})}),r=new s;return this.Shape=o,this.root=r,this};for(var A in k.flags)k.flags.hasOwnProperty(A)&&(k.flags[A].match=function(t){return t.match(this.regex)});k.setup={renderer:"html",debounce:100,ratio:1,supportsCanvas:!1,supportsSVG:!1,lineWrapRatio:.9,renderers:["html","canvas","svg"]},k.dpr=function(t){return t*k.setup.ratio},k.vars={preempted:!1,resizableImages:[],debounceTimer:null,cache:{}},function(){var t=1,i=1,n=u("canvas"),s=null;n.getContext&&-1!=n.toDataURL("image/png").indexOf("data:image/png")&&(k.setup.renderer="canvas",s=n.getContext("2d"),k.setup.supportsCanvas=!0),k.setup.supportsCanvas&&(t=e.devicePixelRatio||1,i=s.webkitBackingStorePixelRatio||s.mozBackingStorePixelRatio||s.msBackingStorePixelRatio||s.oBackingStorePixelRatio||s.backingStorePixelRatio||1),k.setup.ratio=t/i,S.createElementNS&&S.createElementNS(x,"svg").createSVGRect&&(k.setup.renderer="svg",k.setup.supportsSVG=!0)}(),t($,"Holder",e),e.onDomReady&&e.onDomReady(function(){k.vars.preempted||$.run(),e.addEventListener?(e.addEventListener("resize",b,!1),e.addEventListener("orientationchange",b,!1)):e.attachEvent("onresize",b),"object"==typeof e.Turbolinks&&e.document.addEventListener("page:change",function(){$.run()})})}(function(t,e,i){"function"==typeof define&&define.amd?define(t):i[e]=t},this),function(t){var e=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:t.isArray,isFunction:t.isFunction,isObject:t.isPlainObject,isUndefined:function(t){return void 0===t},toStr:function(t){return e.isUndefined(t)||null===t?"":t+""},bind:t.proxy,each:function(e,i){function n(t,e){return i(e,t)}t.each(e,n)},map:t.map,filter:t.grep,every:function(e,i){var n=!0;return e?(t.each(e,function(t,s){return!!(n=i.call(null,s,t,e))&&void 0}),!!n):n},some:function(e,i){var n=!1;return e?(t.each(e,function(t,s){return!(n=i.call(null,s,t,e))&&void 0}),!!n):n},mixin:t.extend,getUniqueId:function(){var t=0;return function(){return t++}}(),templatify:function(e){function i(){return String(e)}return t.isFunction(e)?e:i},defer:function(t){setTimeout(t,0)},debounce:function(t,e,i){var n,s;return function(){var o,r,a=this,l=arguments;return o=function(){n=null,i||(s=t.apply(a,l))},r=i&&!n,clearTimeout(n),n=setTimeout(o,e),r&&(s=t.apply(a,l)),s}},throttle:function(t,e){var i,n,s,o,r,a;return r=0,a=function(){r=new Date,s=null,o=t.apply(i,n)},function(){var l=new Date,h=e-(l-r);return i=this,n=arguments,0>=h?(clearTimeout(s),s=null,r=l,o=t.apply(i,n)):s||(s=setTimeout(a,h)),o}},noop:function(){}}}(),i="0.10.5",n=function(){"use strict";function t(t){return t=e.toStr(t),t?t.split(/\s+/):[]}function i(t){return t=e.toStr(t),t?t.split(/\W+/):[]}function n(t){return function(){var i=[].slice.call(arguments,0);return function(n){var s=[];return e.each(i,function(i){s=s.concat(t(e.toStr(n[i])))}),s}}}return{nonword:i,whitespace:t,obj:{nonword:n(i),whitespace:n(t)}}}(),s=function(){"use strict";function i(i){this.maxSize=e.isNumber(i)?i:100,this.reset(),this.maxSize<=0&&(this.set=this.get=t.noop)}function n(){this.head=this.tail=null}function s(t,e){this.key=t,this.val=e,this.prev=this.next=null}return e.mixin(i.prototype,{set:function(t,e){var i,n=this.list.tail;this.size>=this.maxSize&&(this.list.remove(n),delete this.hash[n.key]),(i=this.hash[t])?(i.val=e,this.list.moveToFront(i)):(i=new s(t,e),this.list.add(i),this.hash[t]=i,this.size++)},get:function(t){var e=this.hash[t];return e?(this.list.moveToFront(e),e.val):void 0},reset:function(){this.size=0,this.hash={},this.list=new n}}),e.mixin(n.prototype,{add:function(t){this.head&&(t.next=this.head,this.head.prev=t),this.head=t,this.tail=this.tail||t},remove:function(t){t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev},moveToFront:function(t){this.remove(t),this.add(t)}}),i}(),o=function(){"use strict";function t(t){this.prefix=["__",t,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+e.escapeRegExChars(this.prefix))}function i(){return(new Date).getTime()}function n(t){return JSON.stringify(e.isUndefined(t)?null:t)}function s(t){return JSON.parse(t)}var o,r;try{(o=window.localStorage).setItem("~~~","!"),o.removeItem("~~~")}catch(t){o=null}return r=o&&window.JSON?{_prefix:function(t){return this.prefix+t},_ttlKey:function(t){return this._prefix(t)+this.ttlKey},get:function(t){return this.isExpired(t)&&this.remove(t),s(o.getItem(this._prefix(t)))},set:function(t,s,r){return e.isNumber(r)?o.setItem(this._ttlKey(t),n(i()+r)):o.removeItem(this._ttlKey(t)),o.setItem(this._prefix(t),n(s))},remove:function(t){return o.removeItem(this._ttlKey(t)),o.removeItem(this._prefix(t)),this},clear:function(){var t,e,i=[],n=o.length;for(t=0;n>t;t++)(e=o.key(t)).match(this.keyMatcher)&&i.push(e.replace(this.keyMatcher,""));for(t=i.length;t--;)this.remove(i[t]);return this},isExpired:function(t){var n=s(o.getItem(this._ttlKey(t)));return!!(e.isNumber(n)&&i()>n)}}:{get:e.noop,set:e.noop,remove:e.noop,clear:e.noop,isExpired:e.noop},e.mixin(t.prototype,r),t}(),r=function(){"use strict";function i(e){e=e||{},this.cancelled=!1,this.lastUrl=null,this._send=e.transport?n(e.transport):t.ajax,this._get=e.rateLimiter?e.rateLimiter(this._get):this._get,this._cache=!1===e.cache?new s(0):l}function n(i){return function(n,s){function o(t){e.defer(function(){a.resolve(t)})}function r(t){e.defer(function(){a.reject(t)})}var a=t.Deferred();return i(n,s,o,r),a}}var o=0,r={},a=6,l=new s(10);return i.setMaxPendingRequests=function(t){a=t},i.resetCache=function(){l.reset()},e.mixin(i.prototype,{_get:function(t,e,i){function n(e){i&&i(null,e),c._cache.set(t,e)}function s(){i&&i(!0)}function l(){o--,delete r[t],c.onDeckRequestArgs&&(c._get.apply(c,c.onDeckRequestArgs),c.onDeckRequestArgs=null)}var h,c=this;this.cancelled||t!==this.lastUrl||((h=r[t])?h.done(n).fail(s):a>o?(o++,r[t]=this._send(t,e).done(n).fail(s).always(l)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(t,i,n){var s;return e.isFunction(i)&&(n=i,i={}),this.cancelled=!1,this.lastUrl=t,(s=this._cache.get(t))?e.defer(function(){n&&n(null,s)}):this._get(t,i,n),!!s},cancel:function(){this.cancelled=!0}}),i}(),a=function(){"use strict";function i(e){(e=e||{}).datumTokenizer&&e.queryTokenizer||t.error("datumTokenizer and queryTokenizer are both required"),this.datumTokenizer=e.datumTokenizer,this.queryTokenizer=e.queryTokenizer,this.reset()}function n(t){return t=e.filter(t,function(t){return!!t}),t=e.map(t,function(t){return t.toLowerCase()})}function s(){return{ids:[],children:{}}}function o(t){for(var e={},i=[],n=0,s=t.length;s>n;n++)e[t[n]]||(e[t[n]]=!0,i.push(t[n]));return i}function r(t,e){function i(t,e){return t-e}var n=0,s=0,o=[];t=t.sort(i),e=e.sort(i);for(var r=t.length,a=e.length;r>n&&a>s;)t[n]<e[s]?n++:t[n]>e[s]?s++:(o.push(t[n]),n++,s++);return o}return e.mixin(i.prototype,{bootstrap:function(t){this.datums=t.datums,this.trie=t.trie},add:function(t){var i=this;t=e.isArray(t)?t:[t],e.each(t,function(t){var s,o;s=i.datums.push(t)-1,o=n(i.datumTokenizer(t)),e.each(o,function(t){var e,n,o;for(e=i.trie,n=t.split("");o=n.shift();)(e=e.children[o]||(e.children[o]={ids:[],children:{}})).ids.push(s)})})},get:function(t){var i,s,a=this;return i=n(this.queryTokenizer(t)),e.each(i,function(t){var e,i,n,o;if(s&&0===s.length)return!1;for(e=a.trie,i=t.split("");e&&(n=i.shift());)e=e.children[n];return e&&0===i.length?(o=e.ids.slice(0),void(s=s?r(s,o):o)):(s=[],!1)}),s?e.map(o(s),function(t){return a.datums[t]}):[]},reset:function(){this.datums=[],this.trie={ids:[],children:{}}},serialize:function(){return{datums:this.datums,trie:this.trie}}}),i}(),l=function(){"use strict";function n(t){return t.local||null}function s(n){var s,o;return o={url:null,thumbprint:"",ttl:864e5,filter:null,ajax:{}},(s=n.prefetch||null)&&(s=e.isString(s)?{url:s}:s,s=e.mixin(o,s),s.thumbprint=i+s.thumbprint,s.ajax.type=s.ajax.type||"GET",s.ajax.dataType=s.ajax.dataType||"json",!s.url&&t.error("prefetch requires url to be set")),s}function o(i){function n(t){return function(i){return e.debounce(i,t)}}function s(t){return function(i){return e.throttle(i,t)}}var o,r;return r={url:null,cache:!0,wildcard:"%QUERY",replace:null,rateLimitBy:"debounce",rateLimitWait:300,send:null,filter:null,ajax:{}},(o=i.remote||null)&&(o=e.isString(o)?{url:o}:o,o=e.mixin(r,o),o.rateLimiter=/^throttle$/i.test(o.rateLimitBy)?s(o.rateLimitWait):n(o.rateLimitWait),o.ajax.type=o.ajax.type||"GET",o.ajax.dataType=o.ajax.dataType||"json",delete o.rateLimitBy,delete o.rateLimitWait,!o.url&&t.error("remote requires url to be set")),o}return{local:n,prefetch:s,remote:o}}();!function(i){"use strict";function s(e){e&&(e.local||e.prefetch||e.remote)||t.error("one of local, prefetch, or remote is required"),this.limit=e.limit||5,this.sorter=h(e.sorter),this.dupDetector=e.dupDetector||c,this.local=l.local(e),this.prefetch=l.prefetch(e),this.remote=l.remote(e),this.cacheKey=this.prefetch?this.prefetch.cacheKey||this.prefetch.url:null,this.index=new a({datumTokenizer:e.datumTokenizer,queryTokenizer:e.queryTokenizer}),this.storage=this.cacheKey?new o(this.cacheKey):null}function h(t){function i(e){return e.sort(t)}function n(t){return t}return e.isFunction(t)?i:n}function c(){return!1}var u,d;u=i.Bloodhound,d={data:"data",protocol:"protocol",thumbprint:"thumbprint"},i.Bloodhound=s,s.noConflict=function(){return i.Bloodhound=u,s},s.tokenizers=n,e.mixin(s.prototype,{_loadPrefetch:function(e){function i(t){o.clear(),o.add(e.filter?e.filter(t):t),o._saveToStorage(o.index.serialize(),e.thumbprint,e.ttl)}var n,s,o=this;return(n=this._readFromStorage(e.thumbprint))?(this.index.bootstrap(n),s=t.Deferred().resolve()):s=t.ajax(e.url,e.ajax).done(i),s},_getFromRemote:function(t,e){function i(t,i){e(t?[]:o.remote.filter?o.remote.filter(i):i)}var n,s,o=this;if(this.transport)return t=t||"",s=encodeURIComponent(t),n=this.remote.replace?this.remote.replace(this.remote.url,t):this.remote.url.replace(this.remote.wildcard,s),this.transport.get(n,this.remote.ajax,i)},_cancelLastRemoteRequest:function(){this.transport&&this.transport.cancel()},_saveToStorage:function(t,e,i){this.storage&&(this.storage.set(d.data,t,i),this.storage.set(d.protocol,location.protocol,i),this.storage.set(d.thumbprint,e,i))},_readFromStorage:function(t){var e,i={};return this.storage&&(i.data=this.storage.get(d.data),i.protocol=this.storage.get(d.protocol),i.thumbprint=this.storage.get(d.thumbprint)),e=i.thumbprint!==t||i.protocol!==location.protocol,i.data&&!e?i.data:null},_initialize:function(){function i(){s.add(e.isFunction(o)?o():o)}var n,s=this,o=this.local;return n=this.prefetch?this._loadPrefetch(this.prefetch):t.Deferred().resolve(),o&&n.done(i),this.transport=this.remote?new r(this.remote):null,this.initPromise=n.promise()},initialize:function(t){return!this.initPromise||t?this._initialize():this.initPromise},add:function(t){this.index.add(t)},get:function(t,i){function n(t){var n=o.slice(0);e.each(t,function(t){var i;return!(i=e.some(n,function(e){return s.dupDetector(t,e)}))&&n.push(t),n.length<s.limit}),i&&i(s.sorter(n))}var s=this,o=[],r=!1;o=this.index.get(t),(o=this.sorter(o).slice(0,this.limit)).length<this.limit?r=this._getFromRemote(t,n):this._cancelLastRemoteRequest(),r||(o.length>0||!this.transport)&&i&&i(o)},clear:function(){this.index.reset()},clearPrefetchCache:function(){this.storage&&this.storage.clear()},clearRemoteCache:function(){this.transport&&r.resetCache()},ttAdapter:function(){return e.bind(this.get,this)}})}(this);var h={wrapper:'<span class="twitter-typeahead"></span>',dropdown:'<span class="tt-dropdown-menu"></span>',dataset:'<div class="tt-dataset-%CLASS%"></div>',suggestions:'<span class="tt-suggestions"></span>',suggestion:'<div class="tt-suggestion"></div>'},c=function(){"use strict";var t={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return e.isMsie()&&e.mixin(t.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),e.isMsie()&&e.isMsie()<=7&&e.mixin(t.input,{marginTop:"-1px"}),t}(),u=function(){"use strict";function i(e){e&&e.el||t.error("EventBus initialized without el"),this.$el=t(e.el)}var n="typeahead:";return e.mixin(i.prototype,{trigger:function(t){var e=[].slice.call(arguments,1);this.$el.trigger(n+t,e)}}),i}(),d=function(){"use strict";function t(t,e,i,n){var s;if(!i)return this;for(e=e.split(l),i=n?a(i,n):i,this._callbacks=this._callbacks||{};s=e.shift();)this._callbacks[s]=this._callbacks[s]||{sync:[],async:[]},this._callbacks[s][t].push(i);return this}function e(e,i,n){return t.call(this,"async",e,i,n)}function i(e,i,n){return t.call(this,"sync",e,i,n)}function n(t){var e;if(!this._callbacks)return this;for(t=t.split(l);e=t.shift();)delete this._callbacks[e];return this}function s(t){var e,i,n,s,r;if(!this._callbacks)return this;for(t=t.split(l),n=[].slice.call(arguments,1);(e=t.shift())&&(i=this._callbacks[e]);)s=o(i.sync,this,[e].concat(n)),r=o(i.async,this,[e].concat(n)),s()&&h(r);return this}function o(t,e,i){function n(){for(var n,s=0,o=t.length;!n&&o>s;s+=1)n=!1===t[s].apply(e,i);return!n}return n}function r(){var t;return t=window.setImmediate?function(t){setImmediate(function(){t()})}:function(t){setTimeout(function(){t()},0)}}function a(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}var l=/\s+/,h=r();return{onSync:i,onAsync:e,off:n,trigger:s}}(),p=function(t){"use strict";function i(t,i,n){for(var s,o=[],r=0,a=t.length;a>r;r++)o.push(e.escapeRegExChars(t[r]));return s=n?"\\b("+o.join("|")+")\\b":"("+o.join("|")+")",i?new RegExp(s):new RegExp(s,"i")}var n={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(s){function o(e){var i,n,o;return(i=a.exec(e.data))&&(o=t.createElement(s.tagName),s.className&&(o.className=s.className),(n=e.splitText(i.index)).splitText(i[0].length),o.appendChild(n.cloneNode(!0)),e.parentNode.replaceChild(o,n)),!!i}function r(t,e){for(var i,n=3,s=0;s<t.childNodes.length;s++)i=t.childNodes[s],3===i.nodeType?s+=e(i)?1:0:r(i,e)}var a;(s=e.mixin({},n,s)).node&&s.pattern&&(s.pattern=e.isArray(s.pattern)?s.pattern:[s.pattern],a=i(s.pattern,s.caseSensitive,s.wordsOnly),r(s.node,o))}}(window.document),f=function(){"use strict";function i(i){var s,o,a,l,h=this;(i=i||{}).input||t.error("input is missing"),s=e.bind(this._onBlur,this),o=e.bind(this._onFocus,this),a=e.bind(this._onKeydown,this),l=e.bind(this._onInput,this),this.$hint=t(i.hint),this.$input=t(i.input).on("blur.tt",s).on("focus.tt",o).on("keydown.tt",a),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=e.noop),e.isMsie()?this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(t){r[t.which||t.keyCode]||e.defer(e.bind(h._onInput,h,t))}):this.$input.on("input.tt",l),this.query=this.$input.val(),this.$overflowHelper=n(this.$input)}function n(e){return t('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:e.css("font-family"),fontSize:e.css("font-size"),fontStyle:e.css("font-style"),fontVariant:e.css("font-variant"),fontWeight:e.css("font-weight"),wordSpacing:e.css("word-spacing"),letterSpacing:e.css("letter-spacing"),textIndent:e.css("text-indent"),textRendering:e.css("text-rendering"),textTransform:e.css("text-transform")}).insertAfter(e)}function s(t,e){return i.normalizeQuery(t)===i.normalizeQuery(e)}function o(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}var r;return r={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},i.normalizeQuery=function(t){return(t||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},e.mixin(i.prototype,d,{_onBlur:function(){this.resetInputValue(),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(t){var e=r[t.which||t.keyCode];this._managePreventDefault(e,t),e&&this._shouldTrigger(e,t)&&this.trigger(e+"Keyed",t)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(t,e){var i,n,s;switch(t){case"tab":n=this.getHint(),s=this.getInputValue(),i=n&&n!==s&&!o(e);break;case"up":case"down":i=!o(e);break;default:i=!1}i&&e.preventDefault()},_shouldTrigger:function(t,e){var i;switch(t){case"tab":i=!o(e);break;default:i=!0}return i},_checkInputValue:function(){var t,e,i;i=!!(e=s(t=this.getInputValue(),this.query))&&this.query.length!==t.length,this.query=t,e?i&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(t){this.query=t},getInputValue:function(){return this.$input.val()},setInputValue:function(t,e){this.$input.val(t),e?this.clearHint():this._checkInputValue()},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(t){this.$hint.val(t)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var t,e,i,n;i=(t=this.getInputValue())!==(e=this.getHint())&&0===e.indexOf(t),!(n=""!==t&&i&&!this.hasOverflow())&&this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t},isCursorAtEnd:function(){var t,i,n;return t=this.$input.val().length,i=this.$input[0].selectionStart,e.isNumber(i)?i===t:!document.selection||((n=document.selection.createRange()).moveStart("character",-t),t===n.text.length)},destroy:function(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$hint=this.$input=this.$overflowHelper=null}}),i}(),m=function(){"use strict";function i(i){(i=i||{}).templates=i.templates||{},i.source||t.error("missing source"),i.name&&!o(i.name)&&t.error("invalid dataset name: "+i.name),this.query=null,this.highlight=!!i.highlight,this.name=i.name||e.getUniqueId(),this.source=i.source,this.displayFn=n(i.display||i.displayKey),this.templates=s(i.templates,this.displayFn),this.$el=t(h.dataset.replace("%CLASS%",this.name))}function n(t){function i(e){return e[t]}return t=t||"value",e.isFunction(t)?t:i}function s(t,i){function n(t){return"<p>"+i(t)+"</p>"}return{empty:t.empty&&e.templatify(t.empty),header:t.header&&e.templatify(t.header),footer:t.footer&&e.templatify(t.footer),suggestion:t.suggestion||n}}function o(t){return/^[_a-zA-Z0-9-]+$/.test(t)}var r="ttDataset",a="ttValue",l="ttDatum";return i.extractDatasetName=function(e){return t(e).data(r)},i.extractValue=function(e){return t(e).data(a)},i.extractDatum=function(e){return t(e).data(l)},e.mixin(i.prototype,d,{_render:function(i,n){function s(){return m.templates.empty({query:i,isEmpty:!0})}function o(){function s(e){var i;return(i=t(h.suggestion).append(m.templates.suggestion(e)).data(r,m.name).data(a,m.displayFn(e)).data(l,e)).children().each(function(){t(this).css(c.suggestionChild)}),i}var o,u;return o=t(h.suggestions).css(c.suggestions),u=e.map(n,s),o.append.apply(o,u),m.highlight&&p({className:"tt-highlight",node:o[0],pattern:i}),o}function u(){return m.templates.header({query:i,isEmpty:!f})}function d(){return m.templates.footer({query:i,isEmpty:!f})}if(this.$el){var f,m=this;this.$el.empty(),!(f=n&&n.length)&&this.templates.empty?this.$el.html(s()).prepend(m.templates.header?u():null).append(m.templates.footer?d():null):f&&this.$el.html(o()).prepend(m.templates.header?u():null).append(m.templates.footer?d():null),this.trigger("rendered")}},getRoot:function(){return this.$el},update:function(t){function e(e){i.canceled||t!==i.query||i._render(t,e)}var i=this;this.query=t,this.canceled=!1,this.source(t,e)},cancel:function(){this.canceled=!0},clear:function(){this.cancel(),this.$el.empty(),this.trigger("rendered")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=null}}),i}(),g=function(){"use strict";function i(i){var s,o,r,a=this;(i=i||{}).menu||t.error("menu is required"),this.isOpen=!1,this.isEmpty=!0,this.datasets=e.map(i.datasets,n),s=e.bind(this._onSuggestionClick,this),o=e.bind(this._onSuggestionMouseEnter,this),r=e.bind(this._onSuggestionMouseLeave,this),this.$menu=t(i.menu).on("click.tt",".tt-suggestion",s).on("mouseenter.tt",".tt-suggestion",o).on("mouseleave.tt",".tt-suggestion",r),e.each(this.datasets,function(t){a.$menu.append(t.getRoot()),t.onSync("rendered",a._onRendered,a)})}function n(t){return new m(t)}return e.mixin(i.prototype,d,{_onSuggestionClick:function(e){this.trigger("suggestionClicked",t(e.currentTarget))},_onSuggestionMouseEnter:function(e){this._removeCursor(),this._setCursor(t(e.currentTarget),!0)},_onSuggestionMouseLeave:function(){this._removeCursor()},_onRendered:function(){function t(t){return t.isEmpty()}this.isEmpty=e.every(this.datasets,t),this.isEmpty?this._hide():this.isOpen&&this._show(),this.trigger("datasetRendered")},_hide:function(){this.$menu.hide()},_show:function(){this.$menu.css("display","block")},_getSuggestions:function(){return this.$menu.find(".tt-suggestion")},_getCursor:function(){return this.$menu.find(".tt-cursor").first()},_setCursor:function(t,e){t.first().addClass("tt-cursor"),!e&&this.trigger("cursorMoved")},_removeCursor:function(){this._getCursor().removeClass("tt-cursor")},_moveCursor:function(t){var e,i,n,s;if(this.isOpen){if(i=this._getCursor(),e=this._getSuggestions(),this._removeCursor(),n=e.index(i)+t,-1===(n=(n+1)%(e.length+1)-1))return void this.trigger("cursorRemoved");-1>n&&(n=e.length-1),this._setCursor(s=e.eq(n)),this._ensureVisible(s)}},_ensureVisible:function(t){var e,i,n,s;i=(e=t.position().top)+t.outerHeight(!0),n=this.$menu.scrollTop(),s=this.$menu.height()+parseInt(this.$menu.css("paddingTop"),10)+parseInt(this.$menu.css("paddingBottom"),10),0>e?this.$menu.scrollTop(n+e):i>s&&this.$menu.scrollTop(n+(i-s))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,!this.isEmpty&&this._show(),this.trigger("opened"))},setLanguageDirection:function(t){this.$menu.css("ltr"===t?c.ltr:c.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(t){var e=null;return t.length&&(e={raw:m.extractDatum(t),value:m.extractValue(t),datasetName:m.extractDatasetName(t)}),e},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},update:function(t){function i(e){e.update(t)}e.each(this.datasets,i)},empty:function(){function t(t){t.clear()}e.each(this.datasets,t),this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){function t(t){t.destroy()}this.$menu.off(".tt"),this.$menu=null,e.each(this.datasets,t)}}),i}(),v=function(){"use strict";function i(i){var s,o,r;(i=i||{}).input||t.error("missing input"),this.isActivated=!1,this.autoselect=!!i.autoselect,this.minLength=e.isNumber(i.minLength)?i.minLength:1,this.$node=n(i.input,i.withHint),s=this.$node.find(".tt-dropdown-menu"),o=this.$node.find(".tt-input"),r=this.$node.find(".tt-hint"),o.on("blur.tt",function(t){var i,n,r;i=document.activeElement,n=s.is(i),r=s.has(i).length>0,e.isMsie()&&(n||r)&&(t.preventDefault(),t.stopImmediatePropagation(),e.defer(function(){o.focus()}))}),s.on("mousedown.tt",function(t){t.preventDefault()}),this.eventBus=i.eventBus||new u({el:o}),this.dropdown=new g({menu:s,datasets:i.datasets}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new f({input:o,hint:r}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._setLanguageDirection()}function n(e,i){var n,o,a,l;n=t(e),o=t(h.wrapper).css(c.wrapper),a=t(h.dropdown).css(c.dropdown),(l=n.clone().css(c.hint).css(s(n))).val("").removeData().addClass("tt-hint").removeAttr("id name placeholder required").prop("readonly",!0).attr({autocomplete:"off",spellcheck:"false",tabindex:-1}),n.data(r,{dir:n.attr("dir"),autocomplete:n.attr("autocomplete"),spellcheck:n.attr("spellcheck"),style:n.attr("style")}),n.addClass("tt-input").attr({autocomplete:"off",spellcheck:!1}).css(i?c.input:c.inputWithNoHint);try{!n.attr("dir")&&n.attr("dir","auto")}catch(t){}return n.wrap(o).parent().prepend(i?l:null).append(a)}function s(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}function o(t){var i=t.find(".tt-input");e.each(i.data(r),function(t,n){e.isUndefined(t)?i.removeAttr(n):i.attr(n,t)}),i.detach().removeData(r).removeClass("tt-input").insertAfter(t),t.remove()}var r="ttAttrs";return e.mixin(i.prototype,{_onSuggestionClicked:function(t,e){var i;(i=this.dropdown.getDatumForSuggestion(e))&&this._select(i)},_onCursorMoved:function(){var t=this.dropdown.getDatumForCursor();this.input.setInputValue(t.value,!0),this.eventBus.trigger("cursorchanged",t.raw,t.datasetName)},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint()},_onDatasetRendered:function(){this._updateHint()},_onOpened:function(){this._updateHint(),this.eventBus.trigger("opened")},_onClosed:function(){this.input.clearHint(),this.eventBus.trigger("closed")},_onFocused:function(){this.isActivated=!0,this.dropdown.open()},_onBlurred:function(){this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()},_onEnterKeyed:function(t,e){var i,n;i=this.dropdown.getDatumForCursor(),n=this.dropdown.getDatumForTopSuggestion(),i?(this._select(i),e.preventDefault()):this.autoselect&&n&&(this._select(n),e.preventDefault())},_onTabKeyed:function(t,e){var i;(i=this.dropdown.getDatumForCursor())?(this._select(i),e.preventDefault()):this._autocomplete(!0)},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(t,e){this.input.clearHintIfInvalid(),e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var t;this.dir!==(t=this.input.getLanguageDirection())&&(this.dir=t,this.$node.css("direction",t),this.dropdown.setLanguageDirection(t))},_updateHint:function(){var t,i,n,s,o,r;(t=this.dropdown.getDatumForTopSuggestion())&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(i=this.input.getInputValue(),n=f.normalizeQuery(i),s=e.escapeRegExChars(n),o=new RegExp("^(?:"+s+")(.+$)","i"),r=o.exec(t.value),r?this.input.setHint(i+r[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(t){var e,i,n,s;e=this.input.getHint(),i=this.input.getQuery(),n=t||this.input.isCursorAtEnd(),e&&i!==e&&n&&((s=this.dropdown.getDatumForTopSuggestion())&&this.input.setInputValue(s.value),this.eventBus.trigger("autocompleted",s.raw,s.datasetName))},_select:function(t){this.input.setQuery(t.value),this.input.setInputValue(t.value,!0),this._setLanguageDirection(),this.eventBus.trigger("selected",t.raw,t.datasetName),this.dropdown.close(),e.defer(e.bind(this.dropdown.empty,this.dropdown))},open:function(){this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(t){t=e.toStr(t),this.isActivated?this.input.setInputValue(t):(this.input.setQuery(t),this.input.setInputValue(t,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy(),this.dropdown.destroy(),o(this.$node),this.$node=null}}),i}();!function(){"use strict";var i,n,s;i=t.fn.typeahead,n="ttTypeahead",s={initialize:function(i,s){function o(){var o,r,a=t(this);e.each(s,function(t){t.highlight=!!i.highlight}),r=new v({input:a,eventBus:o=new u({el:a}),withHint:!!e.isUndefined(i.hint)||!!i.hint,minLength:i.minLength,autoselect:i.autoselect,datasets:s}),a.data(n,r)}return s=e.isArray(s)?s:[].slice.call(arguments,1),i=i||{},this.each(o)},open:function(){function e(){var e;(e=t(this).data(n))&&e.open()}return this.each(e)},close:function(){function e(){var e;(e=t(this).data(n))&&e.close()}return this.each(e)},val:function(e){function i(){var i;(i=t(this).data(n))&&i.setVal(e)}function s(t){var e,i;return(e=t.data(n))&&(i=e.getVal()),i}return arguments.length?this.each(i):s(this.first())},destroy:function(){function e(){var e,i=t(this);(e=i.data(n))&&(e.destroy(),i.removeData(n))}return this.each(e)}},t.fn.typeahead=function(e){var i;return s[e]&&"initialize"!==e?(i=this.filter(function(){return!!t(this).data(n)}),s[e].apply(i,[].slice.call(arguments,1))):s.initialize.apply(this,arguments)},t.fn.typeahead.noConflict=function(){return t.fn.typeahead=i,this}}()}(window.jQuery),function(t){void 0===t.fn.each2&&t.extend(t.fn,{each2:function(e){for(var i=t([0]),n=-1,s=this.length;++n<s&&(i.context=i[0]=this[n])&&!1!==e.call(i[0],n,i););return this}})}(jQuery),function(t,e){"use strict";function i(e){var i=t(document.createTextNode(""));e.before(i),i.before(e),i.remove()}function n(t){function e(t){return F[t]||t}return t.replace(/[^\u0000-\u007E]/g,e)}function s(t,e){for(var i=0,n=e.length;n>i;i+=1)if(r(t,e[i]))return i;return-1}function o(){var e=t(j);e.appendTo("body");var i={width:e.width()-e[0].clientWidth,height:e.height()-e[0].clientHeight};return e.remove(),i}function r(t,i){return t===i||t!==e&&i!==e&&(null!==t&&null!==i&&(t.constructor===String?t+""==i+"":i.constructor===String&&i+""==t+""))}function a(e,i){var n,s,o;if(null===e||e.length<1)return[];for(s=0,o=(n=e.split(i)).length;o>s;s+=1)n[s]=t.trim(n[s]);return n}function l(t){return t.outerWidth(!1)-t.width()}function h(i){var n="keyup-change-value";i.on("keydown",function(){t.data(i,n)===e&&t.data(i,n,i.val())}),i.on("keyup",function(){var s=t.data(i,n);s!==e&&i.val()!==s&&(t.removeData(i,n),i.trigger("keyup-change"))})}function c(i){i.on("mousemove",function(i){var n=P;(n===e||n.x!==i.pageX||n.y!==i.pageY)&&t(i.target).trigger("mousemove-filtered",i)})}function u(t,i,n){n=n||e;var s;return function(){var e=arguments;window.clearTimeout(s),s=window.setTimeout(function(){i.apply(n,e)},t)}}function d(t,e){var i=u(t,function(t){e.trigger("scroll-debounced",t)});e.on("scroll",function(t){s(t.target,e.get())>=0&&i(t)})}function p(t){t[0]!==document.activeElement&&window.setTimeout(function(){var e,i=t[0],n=t.val().length;t.focus(),(i.offsetWidth>0||i.offsetHeight>0)&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(n,n):i.createTextRange&&((e=i.createTextRange()).collapse(!1),e.select()))},0)}function f(e){var i=0,n=0;if("selectionStart"in(e=t(e)[0]))i=e.selectionStart,n=e.selectionEnd-i;else if("selection"in document){e.focus();var s=document.selection.createRange();n=document.selection.createRange().text.length,s.moveStart("character",-e.value.length),i=s.text.length-n}return{offset:i,length:n}}function m(t){t.preventDefault(),t.stopPropagation()}function g(t){t.preventDefault(),t.stopImmediatePropagation()}function v(e){if(!H){var i=e[0].currentStyle||window.getComputedStyle(e[0],null);(H=t(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:i.fontSize,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:i.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),t("body").append(H)}return H.text(e.val()),H.width()}function b(e,i,n){var s,o,r=[];(s=t.trim(e.attr("class")))&&(s=""+s,t(s.split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&r.push(this)})),(s=t.trim(i.attr("class")))&&(s=""+s,t(s.split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(o=n(this))&&r.push(o)})),e.attr("class",r.join(" "))}function y(t,e,i,s){var o=n(t.toUpperCase()).indexOf(n(e.toUpperCase())),r=e.length;return 0>o?void i.push(s(t)):(i.push(s(t.substring(0,o))),i.push("<span class='select2-match'>"),i.push(s(t.substring(o,o+r))),i.push("</span>"),void i.push(s(t.substring(o+r,t.length))))}function w(t){var e={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(t).replace(/[&<>"'\/\\]/g,function(t){return e[t]})}function C(i){var n,s=null,o=i.quietMillis||100,r=i.url,a=this;return function(l){window.clearTimeout(n),n=window.setTimeout(function(){var n=i.data,o=r,h=i.transport||t.fn.select2.ajaxDefaults.transport,c={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||e,dataType:i.dataType||"json"},u=t.extend({},t.fn.select2.ajaxDefaults.params,c);n=n?n.call(a,l.term,l.page,l.context):null,o="function"==typeof o?o.call(a,l.term,l.page,l.context):o,s&&"function"==typeof s.abort&&s.abort(),i.params&&(t.isFunction(i.params)?t.extend(u,i.params.call(a)):t.extend(u,i.params)),t.extend(u,{url:o,dataType:i.dataType,data:n,success:function(t){var e=i.results(t,l.page,l);l.callback(e)},error:function(t,e,i){var n={hasError:!0,jqXHR:t,textStatus:e,errorThrown:i};l.callback(n)}}),s=h.call(a,u)},o)}}function T(e){var i,n,s=e,o=function(t){return""+t.text};t.isArray(s)&&(n=s,s={results:n}),!1===t.isFunction(s)&&(n=s,s=function(){return n});var r=s();return r.text&&(o=r.text,t.isFunction(o)||(i=r.text,o=function(t){return t[i]})),function(e){var i,n=e.term,r={results:[]};return""===n?void e.callback(s()):(i=function(s,r){var a,l;if((s=s[0]).children){a={};for(l in s)s.hasOwnProperty(l)&&(a[l]=s[l]);a.children=[],t(s.children).each2(function(t,e){i(e,a.children)}),(a.children.length||e.matcher(n,o(a),s))&&r.push(a)}else e.matcher(n,o(s),s)&&r.push(s)},t(s().results).each2(function(t,e){i(e,r.results)}),void e.callback(r))}}function x(i){var n=t.isFunction(i);return function(s){var o=s.term,r={results:[]},a=n?i(s):i;t.isArray(a)&&(t(a).each(function(){var t=this.text!==e,i=t?this.text:this;(""===o||s.matcher(o,i))&&r.results.push(t?this:{id:this,text:this})}),s.callback(r))}}function S(e,i){if(t.isFunction(e))return!0;if(!e)return!1;if("string"==typeof e)return!0;throw new Error(i+" must be a string, function, or falsy value")}function $(e,i){if(t.isFunction(e)){var n=Array.prototype.slice.call(arguments,2);return e.apply(i,n)}return e}function k(e){var i=0;return t.each(e,function(t,e){e.children?i+=k(e.children):i++}),i}function E(t,i,n,s){var o,a,l,h,c,u=t,d=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return e;for(;;){for(a=-1,l=0,h=s.tokenSeparators.length;h>l&&(c=s.tokenSeparators[l],!((a=t.indexOf(c))>=0));l++);if(0>a)break;if(o=t.substring(0,a),t=t.substring(a+c.length),o.length>0&&(o=s.createSearchChoice.call(this,o,i))!==e&&null!==o&&s.id(o)!==e&&null!==s.id(o)){for(d=!1,l=0,h=i.length;h>l;l++)if(r(s.id(o),s.id(i[l]))){d=!0;break}d||n(o)}}return u!==t?t:void 0}function _(){var e=this;t.each(arguments,function(t,i){e[i].remove(),e[i]=null})}function D(e,i){var n=function(){};return n.prototype=new e,n.prototype.constructor=n,n.prototype.parent=e.prototype,n.prototype=t.extend(n.prototype,i),n}if(window.Select2===e){var M,A,I,L,O,H,R,N,P={x:0,y:0},M={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(t){switch(t=t.which?t.which:t){case M.LEFT:case M.RIGHT:case M.UP:case M.DOWN:return!0}return!1},isControl:function(t){switch(t.which){case M.SHIFT:case M.CTRL:case M.ALT:return!0}return!!t.metaKey},isFunctionKey:function(t){return(t=t.which?t.which:t)>=112&&123>=t}},j="<div class='select2-measure-scrollbar'></div>",F={"â’¶":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ä€":"A","Ä‚":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ç ":"A","Ä":"A","Çž":"A","Ả":"A","Ã…":"A","Ǻ":"A","Ǎ":"A","È€":"A","È‚":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ä„":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ç¢":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","â’·":"B","ï¼¢":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Æ‚":"B","Ɓ":"B","â’¸":"C","ï¼£":"C","Ć":"C","Ĉ":"C","ÄŠ":"C","ÄŒ":"C","Ç":"C","Ḉ":"C","Ƈ":"C","È»":"C","Ꜿ":"C","â’¹":"D","D":"D","Ḋ":"D","ÄŽ":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Æ‹":"D","ÆŠ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","Ç„":"DZ","Dz":"Dz","Ç…":"Dz","â’º":"E","ï¼¥":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ä’":"E","Ḕ":"E","Ḗ":"E","Ä”":"E","Ä–":"E","Ë":"E","Ẻ":"E","Äš":"E","È„":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","ÆŽ":"E","â’»":"F","F":"F","Ḟ":"F","Æ‘":"F","Ꝼ":"F","â’¼":"G","G":"G","Ç´":"G","Äœ":"G","Ḡ":"G","Äž":"G","Ä ":"G","Ǧ":"G","Ä¢":"G","Ǥ":"G","Æ“":"G","êž ":"G","Ᵹ":"G","Ꝿ":"G","â’½":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Èž":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","â±µ":"H","Ɥ":"H","â’¾":"I","I":"I","ÃŒ":"I","Í":"I","ÃŽ":"I","Ĩ":"I","Ī":"I","Ĭ":"I","Ä°":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","ÈŠ":"I","Ị":"I","Ä®":"I","Ḭ":"I","Æ—":"I","â’¿":"J","J":"J","Ä´":"J","Ɉ":"J","â“€":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ä¿":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ä»":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","â±¢":"L","â± ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","â“‚":"M","ï¼­":"M","Ḿ":"M","á¹€":"M","Ṃ":"M","â±®":"M","Æœ":"M","Ⓝ":"N","ï¼®":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Å…":"N","Ṋ":"N","Ṉ":"N","È ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","ÇŠ":"NJ","Ç‹":"Nj","â“„":"O","O":"O","Ã’":"O","Ó":"O","Ô":"O","á»’":"O","Ố":"O","á»–":"O","á»”":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","ÅŒ":"O","Ṑ":"O","á¹’":"O","ÅŽ":"O","È®":"O","È°":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ç‘":"O","ÈŒ":"O","ÈŽ":"O","Æ ":"O","Ờ":"O","Ớ":"O","á» ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","ÆŸ":"O","Ꝋ":"O","Ꝍ":"O","Æ¢":"OI","Ꝏ":"OO","È¢":"OU","â“…":"P","ï¼°":"P","á¹”":"P","á¹–":"P","Ƥ":"P","â±£":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","ï¼±":"Q","Ꝗ":"Q","Ꝙ":"Q","ÉŠ":"Q","Ⓡ":"R","ï¼²":"R","Å”":"R","Ṙ":"R","Ř":"R","Ȑ":"R","È’":"R","Ṛ":"R","Ṝ":"R","Å–":"R","Ṟ":"R","ÉŒ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","êž‚":"R","Ⓢ":"S","ï¼³":"S","ẞ":"S","Åš":"S","Ṥ":"S","Åœ":"S","á¹ ":"S","Å ":"S","Ṧ":"S","á¹¢":"S","Ṩ":"S","Ș":"S","Åž":"S","â±¾":"S","Ꞩ":"S","êž„":"S","Ⓣ":"T","ï¼´":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Èš":"T","Å¢":"T","á¹°":"T","á¹®":"T","Ŧ":"T","Ƭ":"T","Æ®":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","â“Š":"U","ï¼µ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ãœ":"U","Ç›":"U","Ç—":"U","Ç•":"U","Ç™":"U","Ủ":"U","Å®":"U","Å°":"U","Ç“":"U","È”":"U","È–":"U","Ư":"U","Ừ":"U","Ứ":"U","á»®":"U","Ử":"U","á»°":"U","Ụ":"U","á¹²":"U","Ų":"U","Ṷ":"U","á¹´":"U","É„":"U","â“‹":"V","V":"V","á¹¼":"V","á¹¾":"V","Ʋ":"V","Ꝟ":"V","É…":"V","ê ":"VY","â“Œ":"W","ï¼·":"W","Ẁ":"W","Ẃ":"W","Å´":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","â±²":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","â“Ž":"Y","ï¼¹":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","á»´":"Y","Ƴ":"Y","ÉŽ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Å»":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à ":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","Ç¡":"a","ä":"a","ÇŸ":"a","ả":"a","Ã¥":"a","Ç»":"a","ÇŽ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","Ä…":"a","â±¥":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","Ç£":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","â“‘":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","Æ€":"b","ƃ":"b","É“":"b","â“’":"c","c":"c","ć":"c","ĉ":"c","Ä‹":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","â““":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","Ä‘":"d","ÆŒ":"d","É–":"d","É—":"d","ꝺ":"d","dz":"dz","dž":"dz","â“”":"e","ï½…":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","á»…":"e","ể":"e","ẽ":"e","Ä“":"e","ḕ":"e","ḗ":"e","Ä•":"e","Ä—":"e","ë":"e","ẻ":"e","Ä›":"e","È…":"e","ȇ":"e","ẹ":"e","ệ":"e","È©":"e","ḝ":"e","Ä™":"e","ḙ":"e","ḛ":"e","ɇ":"e","É›":"e","ǝ":"e","â“•":"f","f":"f","ḟ":"f","Æ’":"f","ꝼ":"f","â“–":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ÄŸ":"g","Ä¡":"g","ǧ":"g","Ä£":"g","Ç¥":"g","É ":"g","êž¡":"g","áµ¹":"g","ꝿ":"g","â“—":"h","h":"h","Ä¥":"h","ḣ":"h","ḧ":"h","ÈŸ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","É¥":"h","Æ•":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","Ä©":"i","Ä«":"i","Ä­":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","È‹":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","â“™":"j","j":"j","ĵ":"j","Ç°":"j","ɉ":"j","â“š":"k","k":"k","ḱ":"k","Ç©":"k","ḳ":"k","Ä·":"k","ḵ":"k","Æ™":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","â“›":"l","l":"l","Å€":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","Å¿":"l","Å‚":"l","Æš":"l","É«":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","â“œ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","Å„":"n","ñ":"n","á¹…":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","Æž":"n","ɲ":"n","ʼn":"n","êž‘":"n","ꞥ":"n","ÇŒ":"nj","â“ž":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","á»—":"o","ổ":"o","õ":"o","ṍ":"o","È­":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","È«":"o","ỏ":"o","Å‘":"o","Ç’":"o","ȍ":"o","ȏ":"o","Æ¡":"o","ờ":"o","á»›":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","á»™":"o","Ç«":"o","Ç­":"o","ø":"o","Ç¿":"o","É”":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","Æ£":"oi","È£":"ou","ꝏ":"oo","â“Ÿ":"p","p":"p","ṕ":"p","á¹—":"p","Æ¥":"p","áµ½":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","â“ ":"q","q":"q","É‹":"q","ꝗ":"q","ꝙ":"q","â“¡":"r","ï½’":"r","Å•":"r","á¹™":"r","Å™":"r","È‘":"r","È“":"r","á¹›":"r","ṝ":"r","Å—":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","â“¢":"s","s":"s","ß":"s","Å›":"s","á¹¥":"s","ŝ":"s","ṡ":"s","Å¡":"s","ṧ":"s","á¹£":"s","ṩ":"s","È™":"s","ÅŸ":"s","È¿":"s","êž©":"s","êž…":"s","ẛ":"s","â“£":"t","ï½”":"t","ṫ":"t","ẗ":"t","Å¥":"t","á¹­":"t","È›":"t","Å£":"t","á¹±":"t","ṯ":"t","ŧ":"t","Æ­":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","Å©":"u","á¹¹":"u","Å«":"u","á¹»":"u","Å­":"u","ü":"u","Çœ":"u","ǘ":"u","Ç–":"u","Çš":"u","ủ":"u","ů":"u","ű":"u","Ç”":"u","È•":"u","È—":"u","Æ°":"u","ừ":"u","ứ":"u","ữ":"u","á»­":"u","á»±":"u","ụ":"u","á¹³":"u","ų":"u","á¹·":"u","á¹µ":"u","ʉ":"u","â“¥":"v","ï½–":"v","á¹½":"v","ṿ":"v","Ê‹":"v","ꝟ":"v","ÊŒ":"v","ꝡ":"vy","ⓦ":"w","ï½—":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","â±³":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ï½™":"y","ỳ":"y","ý":"y","Å·":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","á»·":"y","ẙ":"y","ỵ":"y","Æ´":"y","ɏ":"y","ỿ":"y","â“©":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","È¥":"z","É€":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","ÎŒ":"Ο","ÎŽ":"Î¥","Ϋ":"Î¥","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ÏŠ":"ι","ΐ":"ι","ÏŒ":"ο","ύ":"Ï…","Ï‹":"Ï…","ΰ":"Ï…","ω":"ω","Ï‚":"σ"};R=t(document),O=function(){var t=1;return function(){return t++}}(),I=D(A=D(Object,{bind:function(t){var e=this;return function(){t.apply(e,arguments)}},init:function(i){var n,s,r=".select2-results";this.opts=i=this.prepareOpts(i),this.id=i.id,i.element.data("select2")!==e&&null!==i.element.data("select2")&&i.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=t("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+O()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",i.element.attr("title")),this.body=t("body"),b(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css($(i.containerCss,this.opts.element)),this.container.addClass($(i.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",m),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),b(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass($(i.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",m),this.results=n=this.container.find(r),this.search=s=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",m),c(this.results),this.dropdown.on("mousemove-filtered",r,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",r,this.bind(function(t){this._touchEvent=!0,this.highlightUnderEvent(t)})),this.dropdown.on("touchmove",r,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",r,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),d(80,this.results),this.dropdown.on("scroll-debounced",r,this.bind(this.loadMoreIfNeeded)),t(this.container).on("change",".select2-input",function(t){t.stopPropagation()}),t(this.dropdown).on("change",".select2-input",function(t){t.stopPropagation()}),t.fn.mousewheel&&n.mousewheel(function(t,e,i,s){var o=n.scrollTop();s>0&&0>=o-s?(n.scrollTop(0),m(t)):0>s&&n.get(0).scrollHeight-n.scrollTop()+s<=n.height()&&(n.scrollTop(n.get(0).scrollHeight-n.height()),m(t))}),h(s),s.on("keyup-change input paste",this.bind(this.updateResults)),s.on("focus",function(){s.addClass("select2-focused")}),s.on("blur",function(){s.removeClass("select2-focused")}),this.dropdown.on("mouseup",r,this.bind(function(e){t(e.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(e),this.selectHighlighted(e))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(t){t.stopPropagation()}),this.nextSearchTerm=e,t.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var a=i.element.prop("disabled");a===e&&(a=!1),this.enable(!a);var l=i.element.prop("readonly");l===e&&(l=!1),this.readonly(l),N=N||o(),this.autofocus=i.element.prop("autofocus"),i.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",i.searchInputPlaceholder)},destroy:function(){var t=this.opts.element,i=t.data("select2"),n=this;this.close(),t.length&&t[0].detachEvent&&t.each(function(){this.detachEvent("onpropertychange",n._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,i!==e&&(i.container.remove(),i.liveRegion.remove(),i.dropdown.remove(),t.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?t.attr({tabindex:this.elementTabIndex}):t.removeAttr("tabindex"),t.show()),_.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(t){return t.is("option")?{id:t.prop("value"),text:t.text(),element:t.get(),css:t.attr("class"),disabled:t.prop("disabled"),locked:r(t.attr("locked"),"locked")||r(t.data("locked"),!0)}:t.is("optgroup")?{text:t.attr("label"),children:[],element:t.get(),css:t.attr("class")}:void 0},prepareOpts:function(i){var n,s,o,l,h=this;if("select"===(n=i.element).get(0).tagName.toLowerCase()&&(this.select=s=i.element),s&&t.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in i)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),"function"!=typeof(i=t.extend({},{populateResults:function(n,s,o){var r,a=this.opts.id,l=this.liveRegion;(r=function(n,s,c){var u,d,p,f,m,g,v,b,y,w,C=[];for(u=0,d=(n=i.sortResults(n,s,o)).length;d>u;u+=1)p=n[u],m=!0===p.disabled,f=!m&&a(p)!==e,g=p.children&&p.children.length>0,(v=t("<li></li>")).addClass("select2-results-dept-"+c),v.addClass("select2-result"),v.addClass(f?"select2-result-selectable":"select2-result-unselectable"),m&&v.addClass("select2-disabled"),g&&v.addClass("select2-result-with-children"),v.addClass(h.opts.formatResultCssClass(p)),v.attr("role","presentation"),(b=t(document.createElement("div"))).addClass("select2-result-label"),b.attr("id","select2-result-label-"+O()),b.attr("role","option"),(w=i.formatResult(p,b,o,h.opts.escapeMarkup))!==e&&(b.html(w),v.append(b)),g&&((y=t("<ul></ul>")).addClass("select2-result-sub"),r(p.children,y,c+1),v.append(y)),v.data("select2-data",p),C.push(v[0]);s.append(C),l.text(i.formatMatches(n.length))})(s,n,0)}},t.fn.select2.defaults,i)).id&&(o=i.id,i.id=function(t){return t[o]}),t.isArray(i.element.data("select2Tags"))){if("tags"in i)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+i.element.attr("id");i.tags=i.element.data("select2Tags")}if(s?(i.query=this.bind(function(t){var i,s,o,r={results:[],more:!1},a=t.term;o=function(e,i){var n;e.is("option")?t.matcher(a,e.text(),e)&&i.push(h.optionToData(e)):e.is("optgroup")&&(n=h.optionToData(e),e.children().each2(function(t,e){o(e,n.children)}),n.children.length>0&&i.push(n))},i=n.children(),this.getPlaceholder()!==e&&i.length>0&&(s=this.getPlaceholderOption())&&(i=i.not(s)),i.each2(function(t,e){o(e,r.results)}),t.callback(r)}),i.id=function(t){return t.id}):"query"in i||("ajax"in i?((l=i.element.data("ajax-url"))&&l.length>0&&(i.ajax.url=l),i.query=C.call(i.element,i.ajax)):"data"in i?i.query=T(i.data):"tags"in i&&(i.query=x(i.tags),i.createSearchChoice===e&&(i.createSearchChoice=function(e){return{id:t.trim(e),text:t.trim(e)}}),i.initSelection===e&&(i.initSelection=function(e,n){var s=[];t(a(e.val(),i.separator)).each(function(){var e={id:this,text:this},n=i.tags;t.isFunction(n)&&(n=n()),t(n).each(function(){return r(this.id,e.id)?(e=this,!1):void 0}),s.push(e)}),n(s)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");if("top"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(t,e){t.unshift(e)};else if("bottom"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(t,e){t.push(e)};else if("function"!=typeof i.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return i},monitorSource:function(){var i,n=this.opts.element,s=this;n.on("change.select2",this.bind(function(){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),this._sync=this.bind(function(){var t=n.prop("disabled");t===e&&(t=!1),this.enable(!t);var i=n.prop("readonly");i===e&&(i=!1),this.readonly(i),b(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass($(this.opts.containerCssClass,this.opts.element)),b(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass($(this.opts.dropdownCssClass,this.opts.element))}),n.length&&n[0].attachEvent&&n.each(function(){this.attachEvent("onpropertychange",s._sync)}),(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==e&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i(function(e){t.each(e,s._sync)}),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(e){var i=t.Event("select2-selecting",{val:this.id(e),object:e,choice:e});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(e){e=e||{},e=t.extend({},e,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(e),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var t=this._enabled&&!this._readonly,e=!t;return t!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",e),this.close(),this.enabledInterface=t,!0)},enable:function(t){t===e&&(t=!0),this._enabled!==t&&(this._enabled=t,this.opts.element.prop("disabled",!t),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(t){t===e&&(t=!1),this._readonly!==t&&(this._readonly=t,this.opts.element.prop("readonly",t),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,i,n,s,o,r=this.dropdown,a=this.container.offset(),l=this.container.outerHeight(!1),h=this.container.outerWidth(!1),c=r.outerHeight(!1),u=t(window),d=u.width(),p=u.height(),f=u.scrollLeft()+d,m=u.scrollTop()+p,g=a.top+l,v=a.left,b=m>=g+c,y=a.top-c>=u.scrollTop(),w=r.outerWidth(!1),C=f>=v+w;r.hasClass("select2-drop-above")?(i=!0,!y&&b&&(n=!0,i=!1)):(i=!1,!b&&y&&(n=!0,i=!0)),n&&(r.hide(),a=this.container.offset(),l=this.container.outerHeight(!1),h=this.container.outerWidth(!1),c=r.outerHeight(!1),f=u.scrollLeft()+d,m=u.scrollTop()+p,g=a.top+l,v=a.left,w=r.outerWidth(!1),C=f>=v+w,r.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(o=t(".select2-results",r)[0],r.addClass("select2-drop-auto-width"),r.css("width",""),w=r.outerWidth(!1)+(o.scrollHeight===o.clientHeight?0:N.width),w>h?h=w:w=h,c=r.outerHeight(!1),C=f>=v+w):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(e=this.body.offset(),g-=e.top,v-=e.left),C||(v=a.left+this.container.outerWidth(!1)-w),s={left:v,width:h},i?(s.top=a.top-c,s.bottom="auto",this.container.addClass("select2-drop-above"),r.addClass("select2-drop-above")):(s.top=g,s.bottom="auto",this.container.removeClass("select2-drop-above"),r.removeClass("select2-drop-above")),s=t.extend(s,$(this.opts.dropdownCss,this.opts.element)),r.css(s)},shouldOpen:function(){var e;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(e=t.Event("select2-opening"),this.opts.element.trigger(e),!e.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),R.on("mousemove.select2Event",function(t){P.x=t.pageX,P.y=t.pageY}),!0)},opening:function(){var e,n=this.containerEventName,s="scroll."+n,o="resize."+n,r="orientationchange."+n;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),0==(e=t("#select2-drop-mask")).length&&((e=t(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),e.hide(),e.appendTo(this.body),e.on("mousedown touchstart click",function(n){i(e);var s,o=t("#select2-drop");o.length>0&&((s=o.data("select2")).opts.selectOnBlur&&s.selectHighlighted({noFocus:!0}),s.close(),n.preventDefault(),n.stopPropagation())})),this.dropdown.prev()[0]!==e[0]&&this.dropdown.before(e),t("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),e.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var a=this;this.container.parents().add(window).each(function(){t(this).on(o+" "+s+" "+r,function(){a.opened()&&a.positionDropdown()})})},close:function(){if(this.opened()){var e=this.containerEventName,i="scroll."+e,n="resize."+e,s="orientationchange."+e;this.container.parents().add(window).each(function(){t(this).off(i).off(n).off(s)}),this.clearDropdownAlignmentPreference(),t("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),R.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(t.Event("select2-close"))}},externalSearch:function(t){this.open(),this.search.val(t),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return $(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var e,i,n,s,o,r,a,l,h=this.results;if(!(0>(i=this.highlight()))){if(0==i)return void h.scrollTop(0);e=this.findHighlightableChoices().find(".select2-result-label"),s=(l=((n=t(e[i])).offset()||{}).top||0)+n.outerHeight(!0),i===e.length-1&&(a=h.find("li.select2-more-results")).length>0&&(s=a.offset().top+a.outerHeight(!0)),s>(o=h.offset().top+h.outerHeight(!0))&&h.scrollTop(h.scrollTop()+(s-o)),0>(r=l-h.offset().top)&&"none"!=n.css("display")&&h.scrollTop(h.scrollTop()+r)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(e){for(var i=this.findHighlightableChoices(),n=this.highlight();n>-1&&n<i.length;){var s=t(i[n+=e]);if(s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(e){var i,n,o=this.findHighlightableChoices();return 0===arguments.length?s(o.filter(".select2-highlighted")[0],o.get()):(e>=o.length&&(e=o.length-1),0>e&&(e=0),this.removeHighlight(),(i=t(o[e])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",i.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(i.text()),void((n=i.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(n),choice:n})))},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(e){var i=t(e.target).closest(".select2-result-selectable");if(i.length>0&&!i.is(".select2-highlighted")){var n=this.findHighlightableChoices();this.highlight(n.index(i))}else 0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var t,e=this.results,i=e.find("li.select2-more-results"),n=this.resultsPage+1,s=this,o=this.search.val(),r=this.context;0!==i.length&&(t=i.offset().top-e.offset().top-e.height())<=this.opts.loadMorePadding&&(i.addClass("select2-active"),this.opts.query({element:this.opts.element,term:o,page:n,context:r,matcher:this.opts.matcher,callback:this.bind(function(t){s.opened()&&(s.opts.populateResults.call(this,e,t.results,{term:o,page:n,context:r}),s.postprocessResults(t,!1,!1),!0===t.more?(i.detach().appendTo(e).text($(s.opts.formatLoadMore,s.opts.element,n+1)),window.setTimeout(function(){s.loadMoreIfNeeded()},10)):i.remove(),s.positionDropdown(),s.resultsPage=n,s.context=t.context,this.opts.element.trigger({type:"select2-loaded",items:t}))})}))},tokenize:function(){},updateResults:function(i){function n(){h.removeClass("select2-active"),d.positionDropdown(),d.liveRegion.text(c.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?c.text():d.opts.formatMatches(c.find(".select2-result-selectable").length))}function s(t){c.html(t),n()}var o,a,l,h=this.search,c=this.results,u=this.opts,d=this,p=h.val(),f=t.data(this.container,"select2-last-term");if((!0===i||!f||!r(p,f))&&(t.data(this.container,"select2-last-term",p),!0===i||!1!==this.showSearchInput&&this.opened())){l=++this.queryCount;var m=this.getMaximumSelectionSize();if(m>=1&&(o=this.data(),t.isArray(o)&&o.length>=m&&S(u.formatSelectionTooBig,"formatSelectionTooBig")))return void s("<li class='select2-selection-limit'>"+$(u.formatSelectionTooBig,u.element,m)+"</li>");if(h.val().length<u.minimumInputLength)return s(S(u.formatInputTooShort,"formatInputTooShort")?"<li class='select2-no-results'>"+$(u.formatInputTooShort,u.element,h.val(),u.minimumInputLength)+"</li>":""),void(i&&this.showSearch&&this.showSearch(!0));if(u.maximumInputLength&&h.val().length>u.maximumInputLength)return void s(S(u.formatInputTooLong,"formatInputTooLong")?"<li class='select2-no-results'>"+$(u.formatInputTooLong,u.element,h.val(),u.maximumInputLength)+"</li>":"");u.formatSearching&&0===this.findHighlightableChoices().length&&s("<li class='select2-searching'>"+$(u.formatSearching,u.element)+"</li>"),h.addClass("select2-active"),this.removeHighlight(),(a=this.tokenize())!=e&&null!=a&&h.val(a),this.resultsPage=1,u.query({element:u.element,term:h.val(),page:this.resultsPage,context:null,matcher:u.matcher,callback:this.bind(function(o){var a;if(l==this.queryCount){if(!this.opened())return void this.search.removeClass("select2-active");if(o.hasError!==e&&S(u.formatAjaxError,"formatAjaxError"))return void s("<li class='select2-ajax-error'>"+$(u.formatAjaxError,u.element,o.jqXHR,o.textStatus,o.errorThrown)+"</li>");if(this.context=o.context===e?null:o.context,this.opts.createSearchChoice&&""!==h.val()&&(a=this.opts.createSearchChoice.call(d,h.val(),o.results))!==e&&null!==a&&d.id(a)!==e&&null!==d.id(a)&&0===t(o.results).filter(function(){return r(d.id(this),d.id(a))}).length&&this.opts.createSearchChoicePosition(o.results,a),0===o.results.length&&S(u.formatNoMatches,"formatNoMatches"))return void s("<li class='select2-no-results'>"+$(u.formatNoMatches,u.element,h.val())+"</li>");c.empty(),d.opts.populateResults.call(this,c,o.results,{term:h.val(),page:this.resultsPage,context:null}),!0===o.more&&S(u.formatLoadMore,"formatLoadMore")&&(c.append("<li class='select2-more-results'>"+u.escapeMarkup($(u.formatLoadMore,u.element,this.resultsPage))+"</li>"),window.setTimeout(function(){d.loadMoreIfNeeded()},10)),this.postprocessResults(o,i),n(),this.opts.element.trigger({type:"select2-loaded",items:o})}})})}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){p(this.search)},selectHighlighted:function(t){if(this._touchMoved)this.clearTouchMoved();else{var e=this.highlight(),i=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");i?(this.highlight(e),this.onSelect(i,t)):t&&t.noFocus&&this.close()}},getPlaceholder:function(){var t;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((t=this.getPlaceholderOption())!==e?t.text():e)},getPlaceholderOption:function(){if(this.select){var i=this.select.children("option").first();if(this.opts.placeholderOption!==e)return"first"===this.opts.placeholderOption&&i||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===t.trim(i.text())&&""===i.val())return i}},initContainerWidth:function(){function i(){var i,n,s,o,r,a;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if((i=this.opts.element.attr("style"))!==e)for(n=i.split(";"),o=0,r=n.length;r>o;o+=1)if(a=n[o].replace(/\s/g,""),null!==(s=a.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&s.length>=1)return s[1];return"resolve"===this.opts.width?(i=this.opts.element.css("width"),i.indexOf("%")>0?i:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px"):null}return t.isFunction(this.opts.width)?this.opts.width():this.opts.width}var n=i.call(this);null!==n&&this.container.css("width",n)}}),{createContainer:function(){return t(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'"," aria-autocomplete='list' />"," </div>"," <ul class='select2-results' role='listbox'>"," </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var i,n,s;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),i=this.search.get(0),i.createTextRange?((n=i.createTextRange()).collapse(!1),n.select()):i.setSelectionRange&&(s=this.search.val().length,i.setSelectionRange(s,s))),""===this.search.val()&&this.nextSearchTerm!=e&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(t.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){t("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),_.call(this,"selection","focusser")},initContainer:function(){var e,n,s=this.container,o=this.dropdown,r=O();this.showSearch(!(this.opts.minimumResultsForSearch<0)),this.selection=e=s.find(".select2-choice"),this.focusser=s.find(".select2-focusser"),e.find(".select2-chosen").attr("id","select2-chosen-"+r),this.focusser.attr("aria-labelledby","select2-chosen-"+r),this.results.attr("id","select2-results-"+r),this.search.attr("aria-owns","select2-results-"+r),this.focusser.attr("id","s2id_autogen"+r),n=t("label[for='"+this.opts.element.attr("id")+"']"),this.focusser.prev().text(n.text()).attr("for",this.focusser.attr("id"));var a=this.opts.element.attr("title");this.opts.element.attr("title",a||n.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(t("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(t){if(this.isInterfaceEnabled()&&229!=t.keyCode){if(t.which===M.PAGE_UP||t.which===M.PAGE_DOWN)return void m(t);switch(t.which){case M.UP:case M.DOWN:return this.moveHighlight(t.which===M.UP?-1:1),void m(t);case M.ENTER:return this.selectHighlighted(),void m(t);case M.TAB:return void this.selectHighlighted({noFocus:!0});case M.ESC:return this.cancel(t),void m(t)}}})),this.search.on("blur",this.bind(function(){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(t){if(this.isInterfaceEnabled()&&t.which!==M.TAB&&!M.isControl(t)&&!M.isFunctionKey(t)&&t.which!==M.ESC){if(!1===this.opts.openOnEnter&&t.which===M.ENTER)return void m(t);if(t.which==M.DOWN||t.which==M.UP||t.which==M.ENTER&&this.opts.openOnEnter){if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return;return this.open(),void m(t)}return t.which==M.DELETE||t.which==M.BACKSPACE?(this.opts.allowClear&&this.clear(),void m(t)):void 0}})),h(this.focusser),this.focusser.on("keyup-change input",this.bind(function(t){if(this.opts.minimumResultsForSearch>=0){if(t.stopPropagation(),this.opened())return;this.open()}})),e.on("mousedown touchstart","abbr",this.bind(function(t){this.isInterfaceEnabled()&&(this.clear(),g(t),this.close(),this.selection.focus())})),e.on("mousedown touchstart",this.bind(function(n){i(e),this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),m(n)})),o.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),e.on("focus",this.bind(function(t){m(t)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(t.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(e){var i=this.selection.data("select2-data");if(i){var n=t.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var s=this.getPlaceholderOption();this.opts.element.val(s?s.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==e&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var t=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==e&&null!==i&&(t.updateSelection(i),t.close(),t.setPlaceholder(),t.nextSearchTerm=t.opts.nextSearchTerm(i,t.search.val()))})}},isPlaceholderOptionSelected:function(){var t;return this.getPlaceholder()!==e&&((t=this.getPlaceholderOption())!==e&&t.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===e||null===this.opts.element.val())},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(t,e){var n=t.find("option").filter(function(){return this.selected&&!this.disabled});e(i.optionToData(n))}:"data"in e&&(e.initSelection=e.initSelection||function(i,n){var s=i.val(),o=null;e.query({matcher:function(t,i,n){var a=r(s,e.id(n));return a&&(o=n),a},callback:t.isFunction(n)?function(){n(o)}:t.noop})}),e},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===e?e:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var t=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&t!==e){if(this.select&&this.getPlaceholderOption()===e)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(t)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(t,e,i){var n=0,s=this;if(this.findHighlightableChoices().each2(function(t,e){return r(s.id(e.data("select2-data")),s.opts.element.val())?(n=t,!1):void 0}),!1!==i&&this.highlight(!0===e&&n>=0?n:0),!0===e){var o=this.opts.minimumResultsForSearch;o>=0&&this.showSearch(k(t.results)>=o)}},showSearch:function(e){this.showSearchInput!==e&&(this.showSearchInput=e,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!e),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!e),t(this.dropdown,this.container).toggleClass("select2-with-searchbox",e))},onSelect:function(t,e){if(this.triggerSelect(t)){var i=this.opts.element.val(),n=this.data();this.opts.element.val(this.id(t)),this.updateSelection(t),this.opts.element.trigger({type:"select2-selected",val:this.id(t),choice:t}),this.nextSearchTerm=this.opts.nextSearchTerm(t,this.search.val()),this.close(),e&&e.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),r(i,this.id(t))||this.triggerChange({added:t,removed:n})}},updateSelection:function(t){var i,n,s=this.selection.find(".select2-chosen");this.selection.data("select2-data",t),s.empty(),null!==t&&(i=this.opts.formatSelection(t,s,this.opts.escapeMarkup)),i!==e&&s.append(i),(n=this.opts.formatSelectionCssClass(t,s))!==e&&s.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==e&&this.container.addClass("select2-allowclear")},val:function(){var t,i=!1,n=null,s=this,o=this.data();if(0===arguments.length)return this.opts.element.val();if(t=arguments[0],arguments.length>1&&(i=arguments[1]),this.select)this.select.val(t).find("option").filter(function(){return this.selected}).each2(function(t,e){return n=s.optionToData(e),!1}),this.updateSelection(n),this.setPlaceholder(),i&&this.triggerChange({added:n,removed:o});else{if(!t&&0!==t)return void this.clear(i);if(this.opts.initSelection===e)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(t),this.opts.initSelection(this.opts.element,function(t){s.opts.element.val(t?s.id(t):""),s.updateSelection(t),s.setPlaceholder(),i&&s.triggerChange({added:t,removed:o})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(t){var i,n=!1;return 0===arguments.length?((i=this.selection.data("select2-data"))==e&&(i=null),i):(arguments.length>1&&(n=arguments[1]),void(t?(i=this.data(),this.opts.element.val(t?this.id(t):""),this.updateSelection(t),n&&this.triggerChange({added:t,removed:i})):this.clear(n)))}}),L=D(A,{createContainer:function(){return t(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(t,e){var n=[];t.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(t,e){n.push(i.optionToData(e))}),e(n)}:"data"in e&&(e.initSelection=e.initSelection||function(i,n){var s=a(i.val(),e.separator),o=[];e.query({matcher:function(i,n,a){var l=t.grep(s,function(t){return r(t,e.id(a))}).length;return l&&o.push(a),l},callback:t.isFunction(n)?function(){for(var t=[],i=0;i<s.length;i++)for(var a=s[i],l=0;l<o.length;l++){var h=o[l];if(r(a,e.id(h))){t.push(h),o.splice(l,1);break}}n(t)}:t.noop})}),e},selectChoice:function(t){var e=this.container.find(".select2-search-choice-focus");e.length&&t&&t[0]==e[0]||(e.length&&this.opts.element.trigger("choice-deselected",e),e.removeClass("select2-search-choice-focus"),t&&t.length&&(this.close(),t.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",t)))},destroy:function(){t("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),_.call(this,"searchContainer","selection")},initContainer:function(){var e,i=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=e=this.container.find(i);var n=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",function(){n.search[0].focus(),n.selectChoice(t(this))}),this.search.attr("id","s2id_autogen"+O()),this.search.prev().text(t("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(t){if(this.isInterfaceEnabled()){++this.keydowns;var i=e.find(".select2-search-choice-focus"),n=i.prev(".select2-search-choice:not(.select2-locked)"),s=i.next(".select2-search-choice:not(.select2-locked)"),o=f(this.search);if(i.length&&(t.which==M.LEFT||t.which==M.RIGHT||t.which==M.BACKSPACE||t.which==M.DELETE||t.which==M.ENTER)){var r=i;return t.which==M.LEFT&&n.length?r=n:t.which==M.RIGHT?r=s.length?s:null:t.which===M.BACKSPACE?this.unselect(i.first())&&(this.search.width(10),r=n.length?n:s):t.which==M.DELETE?this.unselect(i.first())&&(this.search.width(10),r=s.length?s:null):t.which==M.ENTER&&(r=null),this.selectChoice(r),m(t),void(r&&r.length||this.open())}if((t.which===M.BACKSPACE&&1==this.keydowns||t.which==M.LEFT)&&0==o.offset&&!o.length)return this.selectChoice(e.find(".select2-search-choice:not(.select2-locked)").last()),void m(t);if(this.selectChoice(null),this.opened())switch(t.which){case M.UP:case M.DOWN:return this.moveHighlight(t.which===M.UP?-1:1),void m(t);case M.ENTER:return this.selectHighlighted(),void m(t);case M.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case M.ESC:return this.cancel(t),void m(t)}if(t.which!==M.TAB&&!M.isControl(t)&&!M.isFunctionKey(t)&&t.which!==M.BACKSPACE&&t.which!==M.ESC){if(t.which===M.ENTER){if(!1===this.opts.openOnEnter)return;if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return}this.open(),(t.which===M.PAGE_UP||t.which===M.PAGE_DOWN)&&m(t),t.which===M.ENTER&&m(t)}}})),this.search.on("keyup",this.bind(function(){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(e){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),e.stopImmediatePropagation(),this.opts.element.trigger(t.Event("select2-blur"))})),this.container.on("click",i,this.bind(function(e){this.isInterfaceEnabled()&&(t(e.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.open(),this.focusSearch(),e.preventDefault()))})),this.container.on("focus",i,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var t=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==e&&null!==i&&(t.updateSelection(i),t.close(),t.clearSearch())})}},clearSearch:function(){var t=this.getPlaceholder(),i=this.getMaxSearchWidth();t!==e&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(t).addClass("select2-default"),this.search.width(i>0?i:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),""===this.search.val()&&this.nextSearchTerm!=e&&(this.search.val(this.nextSearchTerm),this.search.select()),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(t.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(e){var i=[],n=[],o=this;t(e).each(function(){s(o.id(this),i)<0&&(i.push(o.id(this)),n.push(this))}),e=n,this.selection.find(".select2-search-choice").remove(),t(e).each(function(){o.addSelectedChoice(this)}),o.postprocessResults()},tokenize:function(){var t=this.search.val();null!=(t=this.opts.tokenizer.call(this,t,this.data(),this.bind(this.onSelect),this.opts))&&t!=e&&(this.search.val(t),t.length>0&&this.open())},onSelect:function(t,i){this.triggerSelect(t)&&""!==t.text&&(this.addSelectedChoice(t),this.opts.element.trigger({type:"selected",val:this.id(t),choice:t}),this.nextSearchTerm=this.opts.nextSearchTerm(t,this.search.val()),this.clearSearch(),this.updateResults(),(this.select||!this.opts.closeOnSelect)&&this.postprocessResults(t,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.nextSearchTerm!=e&&(this.search.val(this.nextSearchTerm),this.updateResults(),this.search.select()),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:t}),i&&i.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(i){var n,s,o=!i.locked,r=t("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),a=t("<li class='select2-search-choice select2-locked'><div></div></li>"),l=o?r:a,h=this.id(i),c=this.getVal();(n=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup))!=e&&l.find("div").replaceWith("<div>"+n+"</div>"),(s=this.opts.formatSelectionCssClass(i,l.find("div")))!=e&&l.addClass(s),o&&l.find(".select2-search-choice-close").on("mousedown",m).on("click dblclick",this.bind(function(e){this.isInterfaceEnabled()&&(this.unselect(t(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),m(e),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),l.data("select2-data",i),l.insertBefore(this.searchContainer),c.push(h),this.setVal(c)},unselect:function(e){var i,n,o=this.getVal();if(0===(e=e.closest(".select2-search-choice")).length)throw"Invalid argument: "+e+". Must be .select2-search-choice";if(i=e.data("select2-data")){var r=t.Event("select2-removing");if(r.val=this.id(i),r.choice=i,this.opts.element.trigger(r),r.isDefaultPrevented())return!1;for(;(n=s(this.id(i),o))>=0;)o.splice(n,1),this.setVal(o),this.select&&this.postprocessResults();return e.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}),!0}},postprocessResults:function(t,e,i){var n=this.getVal(),o=this.results.find(".select2-result"),r=this.results.find(".select2-result-with-children"),a=this;o.each2(function(t,e){s(a.id(e.data("select2-data")),n)>=0&&(e.addClass("select2-selected"),e.find(".select2-result-selectable").addClass("select2-selected"))}),r.each2(function(t,e){e.is(".select2-result-selectable")||0!==e.find(".select2-result-selectable:not(.select2-selected)").length||e.addClass("select2-selected")}),-1==this.highlight()&&!1!==i&&a.highlight(0),!this.opts.createSearchChoice&&!o.filter(".select2-result:not(.select2-selected)").length>0&&(!t||t&&!t.more&&0===this.results.find(".select2-no-results").length)&&S(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+$(a.opts.formatNoMatches,a.opts.element,a.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-l(this.search)},resizeSearch:function(){var t,e,i,n,s,o=l(this.search);t=v(this.search)+10,e=this.search.offset().left,t>(s=(i=this.selection.width())-(e-(n=this.selection.offset().left))-o)&&(s=i-o),40>s&&(s=i-o),0>=s&&(s=t),this.search.width(Math.floor(s))},getVal:function(){var t;return this.select?(t=this.select.val(),null===t?[]:t):(t=this.opts.element.val(),a(t,this.opts.separator))},setVal:function(e){var i;this.select?this.select.val(e):(i=[],t(e).each(function(){s(this,i)<0&&i.push(this)}),this.opts.element.val(0===i.length?"":i.join(this.opts.separator)))},buildChangeDetails:function(t,e){for(var e=e.slice(0),t=t.slice(0),i=0;i<e.length;i++)for(var n=0;n<t.length;n++)r(this.opts.id(e[i]),this.opts.id(t[n]))&&(e.splice(i,1),i>0&&i--,t.splice(n,1),n--);return{added:e,removed:t}},val:function(i,n){var s,o=this;if(0===arguments.length)return this.getVal();if((s=this.data()).length||(s=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:s}));if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(s,this.data()));else{if(this.opts.initSelection===e)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(e){var i=t.map(e,o.id);o.setVal(i),o.updateSelection(e),o.clearSearch(),n&&o.triggerChange(o.buildChangeDetails(s,o.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var e=[],i=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){e.push(i.opts.id(t(this).data("select2-data")))}),this.setVal(e),this.triggerChange()},data:function(e,i){var n,s,o=this;return 0===arguments.length?this.selection.children(".select2-search-choice").map(function(){return t(this).data("select2-data")}).get():(s=this.data(),e||(e=[]),n=t.map(e,function(t){return o.opts.id(t)}),this.setVal(n),this.updateSelection(e),this.clearSearch(),void(i&&this.triggerChange(this.buildChangeDetails(s,this.data()))))}}),t.fn.select2=function(){var i,n,o,r,a,l=Array.prototype.slice.call(arguments,0),h=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],c=["opened","isFocused","container","dropdown"],u=["val","data"],d={search:"externalSearch"};return this.each(function(){if(0===l.length||"object"==typeof l[0])i=0===l.length?{}:t.extend({},l[0]),i.element=t(this),"select"===i.element.get(0).tagName.toLowerCase()?a=i.element.prop("multiple"):(a=i.multiple||!1,"tags"in i&&(i.multiple=a=!0)),(n=a?new window.Select2.class.multi:new window.Select2.class.single).init(i);else{if("string"!=typeof l[0])throw"Invalid arguments to select2 plugin: "+l;if(s(l[0],h)<0)throw"Unknown method: "+l[0];if(r=e,(n=t(this).data("select2"))===e)return;if(o=l[0],"container"===o?r=n.container:"dropdown"===o?r=n.dropdown:(d[o]&&(o=d[o]),r=n[o].apply(n,l.slice(1))),s(l[0],c)>=0||s(l[0],u)>=0&&1==l.length)return!1}}),r===e?this:r},t.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(t,e,i,n){var s=[];return y(t.text,i.term,s,n),s.join("")},formatSelection:function(t,i,n){return t?n(t.text):e},sortResults:function(t){return t},formatResultCssClass:function(t){return t.css},formatSelectionCssClass:function(){return e},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(t){return t==e?null:t.id},matcher:function(t,e){return n(""+e).toUpperCase().indexOf(n(""+t).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:E,escapeMarkup:w,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(t){return t},adaptDropdownCssClass:function(){return null},nextSearchTerm:function(){return e},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(t){return!(("ontouchstart"in window||navigator.msMaxTouchPoints>0)&&t.opts.minimumResultsForSearch<0)}},t.fn.select2.locales=[],t.fn.select2.locales.en={formatMatches:function(t){return 1===t?"One result is available, press enter to select it.":t+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(){return"Loading failed"},formatInputTooShort:function(t,e){var i=e-t.length;return"Please enter "+i+" or more character"+(1==i?"":"s")},formatInputTooLong:function(t,e){var i=t.length-e;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(t){return"You can only select "+t+" item"+(1==t?"":"s")},formatLoadMore:function(){return"Loading more results…"},formatSearching:function(){return"Searching…"}},t.extend(t.fn.select2.defaults,t.fn.select2.locales.en),t.fn.select2.ajaxDefaults={transport:t.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:C,local:T,tags:x},util:{debounce:u,markMatch:y,escapeMarkup:w,stripDiacritics:n},class:{abstract:A,single:I,multi:L}}}}(jQuery),function(t,e){"use strict";function i(i){return this.each(function(){var s=e(this),o=s.data("radiocheck"),r="object"==typeof i&&i;(o||"destroy"!=i)&&(o||s.data("radiocheck",o=new n(this,r)),"string"==typeof i&&o[i](),!0===/mobile|tablet|phone|ip(ad|od)|android|silk|webos/i.test(t.navigator.userAgent)&&s.parent().hover(function(){s.addClass("nohover")},function(){s.removeClass("nohover")}))})}var n=function(t,e){this.init("radiocheck",t,e)};n.DEFAULTS={checkboxClass:"custom-checkbox",radioClass:"custom-radio",checkboxTemplate:'<span class="icons"><span class="icon-unchecked"></span><span class="icon-checked"></span></span>',radioTemplate:'<span class="icons"><span class="icon-unchecked"></span><span class="icon-checked"></span></span>'},n.prototype.init=function(t,i,s){this.$element=e(i),this.options=e.extend({},n.DEFAULTS,this.$element.data(),s),"checkbox"==this.$element.attr("type")?(this.$element.addClass(this.options.checkboxClass),this.$element.after(this.options.checkboxTemplate)):"radio"==this.$element.attr("type")&&(this.$element.addClass(this.options.radioClass),this.$element.after(this.options.radioTemplate))},n.prototype.check=function(){this.$element.prop("checked",!0),this.$element.trigger("change.radiocheck").trigger("checked.radiocheck")},n.prototype.uncheck=function(){this.$element.prop("checked",!1),this.$element.trigger("change.radiocheck").trigger("unchecked.radiocheck")},n.prototype.toggle=function(){this.$element.prop("checked",function(t,e){return!e}),this.$element.trigger("change.radiocheck").trigger("toggled.radiocheck")},n.prototype.indeterminate=function(){this.$element.prop("indeterminate",!0),this.$element.trigger("change.radiocheck").trigger("indeterminated.radiocheck")},n.prototype.determinate=function(){this.$element.prop("indeterminate",!1),this.$element.trigger("change.radiocheck").trigger("determinated.radiocheck")},n.prototype.disable=function(){this.$element.prop("disabled",!0),this.$element.trigger("change.radiocheck").trigger("disabled.radiocheck")},n.prototype.enable=function(){this.$element.prop("disabled",!1),this.$element.trigger("change.radiocheck").trigger("enabled.radiocheck")},n.prototype.destroy=function(){this.$element.removeData().removeClass(this.options.checkboxClass+" "+this.options.radioClass).next(".icons").remove(),this.$element.trigger("destroyed.radiocheck")};var s=e.fn.radiocheck;e.fn.radiocheck=i,e.fn.radiocheck.Constructor=n,e.fn.radiocheck.noConflict=function(){return e.fn.radiocheck=s,this}}(this,jQuery)},"zapplication.js":function(){String.prototype.repeat=function(t){return new Array(Math.round(t)+1).join(this)},function(t){t.fn.addSliderSegments=function(){return this.each(function(){var e=t(this),i=e.slider("option"),n=(i.max-i.min)/i.step;if("vertical"===i.orientation){var s="",o;for(console.log(n),o=1;o<=n-1;o++)s+='<div class="ui-slider-segment" style="top:'+100/n*o+'%;"></div>';e.prepend(s)}else{var r='<div class="ui-slider-segment" style="margin-left: '+(100/n+"%")+';"></div>';e.prepend(r.repeat(n-1))}})},t(function(){t(".todo").on("click","li",function(){t(this).toggleClass("todo-done")}),t('[data-toggle="select"]').length&&t('[data-toggle="select"]').select2(),t('[data-toggle="checkbox"]').radiocheck(),t('[data-toggle="radio"]').radiocheck(),t("[data-toggle=tooltip]").tooltip("show");var e=t("#slider");e.length>0&&e.slider({max:15,step:6,value:3,orientation:"horizontal",range:"min"}).addSliderSegments();var i=t("#vertical-slider");if(i.length&&i.slider({min:1,max:5,value:3,orientation:"vertical",range:"min"}).addSliderSegments(i.slider("option").max,"vertical"),t(".input-group").on("focus",".form-control",function(){t(this).closest(".input-group, .form-group").addClass("focus")}).on("blur",".form-control",function(){t(this).closest(".input-group, .form-group").removeClass("focus")}),t(".pagination").on("click","a",function(){t(this).parent().siblings("li").removeClass("active").end().addClass("active")}),t(".btn-group").on("click","a",function(){t(this).siblings().removeClass("active").end().addClass("active")}),t(document).on("click",'a[href="#fakelink"]',function(t){t.preventDefault()}),t('[data-toggle="switch"]').length&&t('[data-toggle="switch"]').bootstrapSwitch(),t("#typeahead-demo-01").length){var n=new Bloodhound({datumTokenizer:function(t){return Bloodhound.tokenizers.whitespace(t.word)},queryTokenizer:Bloodhound.tokenizers.whitespace,limit:4,local:[{word:"Alabama"},{word:"Alaska"},{word:"Arizona"},{word:"Arkansas"},{word:"California"},{word:"Colorado"}]});n.initialize(),t("#typeahead-demo-01").typeahead(null,{name:"states",displayKey:"word",source:n.ttAdapter()})}window.prettyPrint&&prettyPrint()})}(jQuery)}},"main.js":function(t,e,i){i.watch(t("../imports/ui/body.js"))}}},{extensions:[".js",".json",".html",".css"]});require("./client/lib/bootstrap.min.js"),require("./client/lib/flat-ui.min.js"),require("./client/lib/zapplication.js"),require("./client/main.js");

Back to list