mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
562 lines
3.4 MiB
562 lines
3.4 MiB
!function(){var n,t;(function(){n={}}).call(this),function(){(function(){var t=this,r=t._,e={},u=Array.prototype,i=Object.prototype,a=Function.prototype,o=u.push,c=u.slice,l=u.concat,f=i.toString,s=i.hasOwnProperty,p=u.forEach,v=u.map,h=u.reduce,d=u.reduceRight,g=u.filter,m=u.every,y=u.some,b=u.indexOf,_=u.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)};"undefined"!=typeof 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 u=0,i=n.length;i>u;u++)if(t.call(r,n[u],u,n)===e)return}else for(var a=A.keys(n),u=0,i=a.length;i>u;u++)if(t.call(r,n[a[u]],a[u],n)===e)return};A.map=A.collect=function(n,t,r){var e=[];return null==n?e:v&&n.map===v?n.map(t,r):(E(n,function(n,u,i){e.push(t.call(r,n,u,i))}),e)};var F="Reduce of empty array with no initial value";A.reduce=A.foldl=A.inject=function(n,t,r,e){var u=arguments.length>2;if(null==n&&(n=[]),h&&n.reduce===h)return e&&(t=A.bind(t,e)),u?n.reduce(t,r):n.reduce(t);if(E(n,function(n,i,a){u?r=t.call(e,r,n,i,a):(r=n,u=!0)}),!u)throw new TypeError(F);return r},A.reduceRight=A.foldr=function(n,t,r,e){var u=arguments.length>2;if(null==n&&(n=[]),d&&n.reduceRight===d)return e&&(t=A.bind(t,e)),u?n.reduceRight(t,r):n.reduceRight(t);var i=n.length;if(!O(n)){var a=A.keys(n);i=a.length}if(E(n,function(o,c,l){c=a?a[--i]:--i,u?r=t.call(e,r,n[c],c,l):(r=n[c],u=!0)}),!u)throw new TypeError(F);return r},A.find=A.detect=function(n,t,r){var e;return M(n,function(n,u,i){return t.call(r,n,u,i)?(e=n,!0):void 0}),e},A.filter=A.select=function(n,t,r){var e=[];return null==n?e:g&&n.filter===g?n.filter(t,r):(E(n,function(n,u,i){t.call(r,n,u,i)&&e.push(n)}),e)},A.reject=function(n,t,r){return A.filter(n,function(n,e,u){return!t.call(r,n,e,u)},r)},A.every=A.all=function(n,t,r){t||(t=A.identity);var u=!0;return null==n?u:m&&n.every===m?n.every(t,r):(E(n,function(n,i,a){return(u=u&&t.call(r,n,i,a))?void 0:e}),!!u)};var M=A.some=A.any=function(n,t,r){t||(t=A.identity);var u=!1;return null==n?u:y&&n.some===y?n.some(t,r):(E(n,function(n,i,a){return u||(u=t.call(r,n,i,a))?e:void 0}),!!u)};A.contains=A.include=function(n,t){return null==n?!1:b&&n.indexOf===b?-1!=n.indexOf(t):M(n,function(n){return n===t})},A.invoke=function(n,t){var r=c.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,u,i){var a=t?t.call(r,n,u,i):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,u,i){var a=t?t.call(r,n,u,i):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,u){return{value:n,index:t,criteria:e.call(r,n,t,u)}}).sort(function(n,t){var r=n.criteria,e=t.criteria;if(r!==e){if(r>e||void 0===r)return 1;if(e>r||void 0===e)return-1}return n.index-t.index}),"value")};var S=function(n){return function(t,r,e){var u={},i=null==r?A.identity:R(r);return E(t,function(r,a){var o=i.call(e,r,a,t);n(u,o,r)}),u}};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){r=null==r?A.identity:R(r);for(var u=r.call(e,t),i=0,a=n.length;a>i;){var o=i+a>>>1;r.call(e,n[o])<u?i=o+1:a=o}return i},A.toArray=function(n){return n?A.isArray(n)?c.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){return null==n?void 0:null==t||r?n[0]:c.call(n,0,t)},A.initial=function(n,t,r){return c.call(n,0,n.length-(null==t||r?1:t))},A.last=function(n,t,r){return null==n?void 0:null==t||r?n[n.length-1]:c.call(n,Math.max(n.length-t,0))},A.rest=A.tail=A.drop=function(n,t,r){return c.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?o.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,c.call(arguments,1))},A.uniq=A.unique=function(n,t,r,e){A.isFunction(t)&&(e=r,r=t,t=!1);var u=r?A.map(n,r,e):n,i=[],a=[];return E(u,function(r,e){(t?e&&a[a.length-1]===r:A.contains(a,r))||(a.push(r),i.push(n[e]))}),i},A.union=function(){return A.uniq(A.flatten(arguments,!0))},A.intersection=function(n){var t=c.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(u,c.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;n>r;r++)t[r]=A.pluck(arguments,""+r);return t},A.object=function(n,t){if(null==n)return{};for(var r={},e=0,u=n.length;u>e;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,u=n.length;if(r){if("number"!=typeof r)return e=A.sortedIndex(n,t),n[e]===t?e:-1;e=0>r?Math.max(0,u+r):r}if(b&&n.indexOf===b)return n.indexOf(t,r);for(;u>e;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 u=e?r:n.length;u--;)if(n[u]===t)return u;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),u=0,i=new Array(e);e>u;)i[u++]=n,n+=r;return i};var T=function(){};A.bind=function(n,t){var r,e;if(j&&n.bind===j)return j.apply(n,c.call(arguments,1));if(!A.isFunction(n))throw new TypeError;return r=c.call(arguments,2),e=function(){if(!(this instanceof e))return n.apply(t,r.concat(c.call(arguments)));T.prototype=n.prototype;var u=new T;T.prototype=null;var i=n.apply(u,r.concat(c.call(arguments)));return Object(i)===i?i:u}},A.partial=function(n){var t=c.call(arguments,1);return function(){return n.apply(this,t.concat(c.call(arguments)))}},A.bindAll=function(n){var t=c.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=c.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)},A.defer=function(n){return A.delay.apply(A,[n,1].concat(c.call(arguments,1)))},A.throttle=function(n,t,r){var e,u,i,a=null,o=0;r||(r={});var c=function(){o=r.leading===!1?0:new Date,a=null,i=n.apply(e,u)};return function(){var l=new Date;o||r.leading!==!1||(o=l);var f=t-(l-o);return e=this,u=arguments,0>=f?(clearTimeout(a),a=null,o=l,i=n.apply(e,u)):a||r.trailing===!1||(a=setTimeout(c,f)),i}},A.debounce=function(n,t,r){var e,u,i,a,o;return function(){i=this,u=arguments,a=new Date;var c=function(){var l=new Date-a;t>l?e=setTimeout(c,t-l):(e=null,r||(o=n.apply(i,u)))},l=r&&!e;return e||(e=setTimeout(c,t)),l&&(o=n.apply(i,u)),o}},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 o.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(){return--n<1?t.apply(this,arguments):void 0}},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),u=0;r>u;u++)e[u]=n[t[u]];return e},A.pairs=function(n){for(var t=A.keys(n),r=t.length,e=new Array(r),u=0;r>u;u++)e[u]=[t[u],n[t[u]]];return e},A.invert=function(n){for(var t={},r=A.keys(n),e=0,u=r.length;u>e;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(c.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(u,c.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(u,c.call(arguments,1));for(var e in n)A.contains(r,e)||(t[e]=n[e]);return t},A.defaults=function(n){return E(c.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 u=f.call(n);if(u!=f.call(t))return!1;switch(u){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 i=r.length;i--;)if(r[i]==n)return e[i]==t;var a=n.constructor,o=t.constructor;if(a!==o&&!(A.isFunction(a)&&a instanceof a&&A.isFunction(o)&&o instanceof o))return!1;r.push(n),e.push(t);var c=0,l=!0;if("[object Array]"==u){if(c=n.length,l=c==t.length)for(;c--&&(l=N(n[c],t[c],r,e)););}else{for(var s in n)if(A.has(n,s)&&(c++,!(l=A.has(t,s)&&N(n[s],t[s],r,e))))break;if(l){for(s in t)if(A.has(t,s)&&!c--)break;l=!c}}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 n===!0||n===!1||"[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)),u=0;n>u;u++)e[u]=t.call(r,u);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:{"&":"&","<":"<",">":">",'"':""","'":"'"}};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)return void 0;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 o.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","\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 u=new RegExp([(r.escape||P).source,(r.interpolate||P).source,(r.evaluate||P).source].join("|")+"|$","g"),i=0,a="__p+='";n.replace(u,function(t,r,e,u,o){return a+=n.slice(i,o).replace(C,function(n){return"\\"+z[n]}),r&&(a+="'+\n((__t=("+r+"))==null?'':_.escape(__t))+\n'"),e&&(a+="'+\n((__t=("+e+"))==null?'':__t)+\n'"),u&&(a+="';\n"+u+"\n__p+='"),i=o+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(o){throw o.source=a,o}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=u[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=u[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={}),Package.underscore={_:t}}();
|
||
|
||
!function(){var t=Package.underscore._,e;(function(){e={isClient:!0,isServer:!1,isCordova:!1},"object"==typeof __meteor_runtime_config__&&__meteor_runtime_config__.PUBLIC_SETTINGS&&(e.settings={"public":__meteor_runtime_config__.PUBLIC_SETTINGS})}).call(this),function(){e.isCordova=!0}.call(this),function(){function n(t){return t?e._debug("Exception in callback of async function",t.stack?t.stack:t):void 0}if(e.isServer)var r=Npm.require("fibers/future");"object"==typeof __meteor_runtime_config__&&__meteor_runtime_config__.meteorRelease&&(e.release=__meteor_runtime_config__.meteorRelease),t.extend(e,{_get:function(t){for(var e=1;e<arguments.length;e++){if(!(arguments[e]in t))return void 0;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++){var o=arguments[r];if(!(o in t)){n=!1;break}if(t=t[o],"object"!=typeof t)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 a=i||this,s=t.toArray(arguments),u,c=s.length-1;c>=0;--c){var l=s[c],f=typeof l;if("undefined"!==f){"function"===f&&(u=l);break}}if(!u){if(e.isClient)u=n;else{var _=new r;u=_.resolver()}++c}s[c]=e.bindEnvironment(u);var p=o.apply(a,s);return _?_.wait():p}},_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;e._wrapAsync=function(t,n){return o||(e._debug("Meteor._wrapAsync has been renamed to Meteor.wrapAsync"),o=!0),e.wrapAsync.apply(e,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 n(){function t(t,e){return"string"==typeof t&&t.substring(0,e.length)===e}function e(e){if(e.source===o&&t(e.data,s)){var n=e.data.substring(s.length);try{a[n]&&a[n]()}finally{delete a[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,a={},s="Meteor._setImmediate."+Math.random()+".";o.addEventListener?o.addEventListener("message",e,!1):o.attachEvent("onmessage",e);var u=function(t){++i,a[i]=t,o.postMessage(s+i,"*")};return u.implementation="postMessage",u}function r(){var t=function(t){o.setTimeout(t,0)};return t.implementation="setTimeout",t}var o=this;e._setImmediate=t()||n()||r()}.call(this),function(){var n=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},r=function(t,r){return e.bindEnvironment(n(r),t)};t.extend(e,{setTimeout:function(t,e){return setTimeout(r("setTimeout callback",t),e)},setInterval:function(t,e){return setInterval(r("setInterval callback",t),e)},clearInterval:function(t){return clearInterval(t)},clearTimeout:function(t){return clearTimeout(t)},defer:function(t){e._setImmediate(r("defer callback",t))}})}.call(this),function(){e.makeErrorType=function(t,n){var r=function(){var e=this;if(Error.captureStackTrace)Error.captureStackTrace(e,r);else{var o=new Error;o.__proto__=r.prototype,o instanceof r&&(e=o)}return n.apply(e,arguments),e.errorType=t,e};return e._inherits(r,Error),r},e.Error=e.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+"]"}),e.Error.prototype.clone=function(){var t=this;return new e.Error(t.error,t.reason,t.details)}}.call(this),function(){e._noYieldsAllowed=function(t){return t()},e._SynchronousQueue=function(){var t=this;t._tasks=[],t._running=!1,t._runTimeout=null},t.extend(e._SynchronousQueue.prototype,{runTask:function(n){var r=this;if(!r.safeToRunTask())throw new Error("Could not synchronously run a task from a running task");r._tasks.push(n);var o=r._tasks;r._tasks=[],r._running=!0,r._runTimeout&&(clearTimeout(r._runTimeout),r._runTimeout=null);try{for(;!t.isEmpty(o);){var i=o.shift();try{i()}catch(a){if(t.isEmpty(o))throw a;e._debug("Exception in queued task: "+(a.stack||a))}}}finally{r._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(){var t=this;t.runTask(function(){})},drain:function(){var e=this;if(e.safeToRunTask())for(;!t.isEmpty(e._tasks);)e.flush()},safeToRunTask:function(){var t=this;return!t._running}})}.call(this),function(){var t=[],n=!e.isCordova&&("loaded"===document.readyState||"complete"==document.readyState),r=1,o=function(){if(r--,!(r>0)){n=!0;var o=function(){if(e.isCordova&&(!cordova.plugins||!cordova.plugins.CordovaUpdate))return void e.setTimeout(o,20);for(;t.length;)t.shift()()};o()}};document.addEventListener?(document.addEventListener("DOMContentLoaded",o,!1),e.isCordova&&(r++,document.addEventListener("deviceready",o,!1)),window.addEventListener("load",o,!1)):(document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&o()}),window.attachEvent("load",o)),e.startup=function(r){var o=!document.addEventListener&&document.documentElement.doScroll;if(o&&window===top){try{o("left")}catch(i){return void setTimeout(function(){e.startup(r)},50)}r()}else n?r():t.push(r)}}.call(this),function(){var t=0;e._debug=function(){if(t)return void t--;if("undefined"!=typeof console&&"undefined"!=typeof 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 if("function"==typeof Function.prototype.bind){var r=Function.prototype.bind.call(console.log,console);r.apply(console,arguments)}else Function.prototype.call.call(console.log,console,Array.prototype.slice.call(arguments))},e._suppress_log=function(e){t+=e},e._suppressed_log_expected=function(){return 0!==t}}.call(this),function(){e._escapeRegExp=function(t){return String(t).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}}.call(this),function(){var n=0,r=[];e.EnvironmentVariable=function(){this.slot=n++},t.extend(e.EnvironmentVariable.prototype,{get:function(){return r[this.slot]},getOrNullIfOutsideFiber:function(){return this.get()},withValue:function(t,e){var n=r[this.slot];try{r[this.slot]=t;var o=e()}finally{r[this.slot]=n}return o}}),e.bindEnvironment=function(n,o,i){var a=t.clone(r);if(!o||"string"==typeof o){var s=o||"callback of async function";o=function(t){e._debug("Exception in "+s+":",t&&t.stack||t)}}return function(){var e=r;try{r=a;var s=n.apply(i,t.toArray(arguments))}catch(u){o(u)}finally{r=e}return s}},e._nodeCodeMustBeInFiber=function(){}}.call(this),function(){e.absoluteUrl=function(n,r){r||"object"!=typeof n||(r=n,n=void 0),r=t.extend({},e.absoluteUrl.defaultOptions,r||{});var o=r.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+="/"),n&&(o+=n),r.secure&&/^http:/.test(o)&&!/http:\/\/localhost[:\/]/.test(o)&&!/http:\/\/127\.0\.0\.1[:\/]/.test(o)&&(o=o.replace(/^http:/,"https:")),r.replaceLocalhost&&(o=o.replace(/^http:\/\/localhost([:\/].*)/,"http://127.0.0.1$1")),o},e.absoluteUrl.defaultOptions={},"object"==typeof __meteor_runtime_config__&&__meteor_runtime_config__.ROOT_URL&&(e.absoluteUrl.defaultOptions.rootUrl=__meteor_runtime_config__.ROOT_URL),e._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={}),Package.meteor={Meteor:e}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;"undefined"==typeof Package&&(Package={}),Package.coffeescript={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.underscore._,n;(function(){n={_isCssLoaded:function(){return 0===document.styleSheets.length?!0:t.find(document.styleSheets,function(e){return e.cssText&&!e.cssRules?!e.cssText.match(/meteor-css-not-found-error/):!t.find(e.cssRules,function(e){return".meteor-css-not-found-error"===e.selectorText})})}}}).call(this),"undefined"==typeof Package&&(Package={}),Package.webapp={WebApp:n}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.webapp.WebApp,a;(function(){a="object"==typeof a?a:{};var t=a;e.startup(function(){return RocketChat.settings.onload("Force_SSL",function(t,a){return e.absoluteUrl.defaultOptions.secure=a})})}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:cors"]={}}();
|
||
|
||
!function(){var n=Package.meteor.Meteor,r;(function(){for(var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={},a=0;a<n.length;a++)e[n.charAt(a)]=a;r={},r.encode=function(n){if("string"==typeof n){var e=n;n=r.newBinary(e.length);for(var a=0;a<e.length;a++){var l=e.charCodeAt(a);if(l>255)throw new Error("Not ascii. Base64.encode can only take ascii strings.");n[a]=l}}for(var u=[],i=null,o=null,c=null,s=null,a=0;a<n.length;a++)switch(a%3){case 0:i=n[a]>>2&63,o=(3&n[a])<<4;break;case 1:o|=n[a]>>4&15,c=(15&n[a])<<2;break;case 2:c|=n[a]>>6&3,s=63&n[a],u.push(t(i)),u.push(t(o)),u.push(t(c)),u.push(t(s)),i=null,o=null,c=null,s=null}return null!=i&&(u.push(t(i)),u.push(t(o)),u.push(null==c?"=":t(c)),null==s&&u.push("=")),u.join("")};var t=function(r){return n.charAt(r)},l=function(n){return"="===n?-1:e[n]};r.newBinary=function(n){if("undefined"==typeof Uint8Array||"undefined"==typeof ArrayBuffer){for(var r=[],e=0;n>e;e++)r.push(0);return r.$Uint8ArrayPolyfill=!0,r}return new Uint8Array(new ArrayBuffer(n))},r.decode=function(n){var e=Math.floor(3*n.length/4);"="==n.charAt(n.length-1)&&(e--,"="==n.charAt(n.length-2)&&e--);for(var a=r.newBinary(e),t=null,u=null,i=null,o=0,c=0;c<n.length;c++){var s=n.charAt(c),f=l(s);switch(c%4){case 0:if(0>f)throw new Error("invalid base64 string");t=f<<2;break;case 1:if(0>f)throw new Error("invalid base64 string");t|=f>>4,a[o++]=t,u=(15&f)<<4;break;case 2:f>=0&&(u|=f>>2,a[o++]=u,i=(3&f)<<6);break;case 3:f>=0&&(a[o++]=i|f)}}return a}}).call(this),"undefined"==typeof Package&&(Package={}),Package.base64={Base64:r}}();
|
||
|
||
!function(){var n=Package.meteor.Meteor,e=Package.underscore._,t=Package.base64.Base64,r,u;(function(){r={},u={};var a={};r.addType=function(n,t){if(e.has(a,n))throw new Error("Type "+n+" already present");a[n]=t};var i=function(n){return e.isNaN(n)||n===1/0||n===-(1/0)},o=[{matchJSONValue:function(n){return e.has(n,"$date")&&1===e.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 e.has(n,"$InfNaN")&&1===e.size(n)},matchObject:i,toJSONValue:function(n){var t;return t=e.isNaN(n)?0:n===1/0?1:-1,{$InfNaN:t}},fromJSONValue:function(n){return n.$InfNaN/0}},{matchJSONValue:function(n){return e.has(n,"$binary")&&1===e.size(n)},matchObject:function(n){return"undefined"!=typeof Uint8Array&&n instanceof Uint8Array||n&&e.has(n,"$Uint8ArrayPolyfill")},toJSONValue:function(n){return{$binary:t.encode(n)}},fromJSONValue:function(n){return t.decode(n.$binary)}},{matchJSONValue:function(n){return e.has(n,"$escape")&&1===e.size(n)},matchObject:function(n){return e.isEmpty(n)||e.size(n)>2?!1:e.any(o,function(e){return e.matchJSONValue(n)})},toJSONValue:function(n){var t={};return e.each(n,function(n,e){t[e]=r.toJSONValue(n)}),{$escape:t}},fromJSONValue:function(n){var t={};return e.each(n.$escape,function(n,e){t[e]=r.fromJSONValue(n)}),t}},{matchJSONValue:function(n){return e.has(n,"$type")&&e.has(n,"$value")&&2===e.size(n)},matchObject:function(n){return r._isCustomType(n)},toJSONValue:function(e){var t=n._noYieldsAllowed(function(){return e.toJSONValue()});return{$type:e.typeName(),$value:t}},fromJSONValue:function(t){var r=t.$type;if(!e.has(a,r))throw new Error("Custom EJSON type "+r+" is not defined");var u=a[r];return n._noYieldsAllowed(function(){return u(t.$value)})}}];r._isCustomType=function(n){return n&&"function"==typeof n.toJSONValue&&"function"==typeof n.typeName&&e.has(a,n.typeName())},r._getTypes=function(){return a},r._getConverters=function(){return o};var f=r._adjustTypesToJSONValue=function(n){if(null===n)return null;var t=c(n);return void 0!==t?t:"object"!=typeof n?n:(e.each(n,function(e,t){if("object"==typeof e||void 0===e||i(e)){var r=c(e);return r?void(n[t]=r):void 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)}return void 0};r.toJSONValue=function(n){var e=c(n);return void 0!==e?e:("object"==typeof n&&(n=r.clone(n),f(n)),n)};var l=r._adjustTypesFromJSONValue=function(n){if(null===n)return null;var t=s(n);return t!==n?t:"object"!=typeof n?n:(e.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&&e.size(n)<=2&&e.all(n,function(n,e){return"string"==typeof e&&"$"===e.substr(0,1)}))for(var t=0;t<o.length;t++){var r=o[t];if(r.matchJSONValue(n))return r.fromJSONValue(n)}return n};r.fromJSONValue=function(n){var e=s(n);return e===n&&"object"==typeof n?(n=r.clone(n),l(n),n):e},r.stringify=function(n,e){var t=r.toJSONValue(n);return e&&(e.canonical||e.indent)?r._canonicalStringify(t,e):JSON.stringify(t)},r.parse=function(n){if("string"!=typeof n)throw new Error("EJSON.parse argument should be a string");return r.fromJSONValue(JSON.parse(n))},r.isBinary=function(n){return!!("undefined"!=typeof Uint8Array&&n instanceof Uint8Array||n&&n.$Uint8ArrayPolyfill)},r.equals=function(n,t,u){var a,i=!(!u||!u.keyOrderSensitive);if(n===t)return!0;if(e.isNaN(n)&&e.isNaN(t))return!0;if(!n||!t)return!1;if("object"!=typeof n||"object"!=typeof t)return!1;if(n instanceof Date&&t instanceof Date)return n.valueOf()===t.valueOf();if(r.isBinary(n)&&r.isBinary(t)){if(n.length!==t.length)return!1;for(a=0;a<n.length;a++)if(n[a]!==t[a])return!1;return!0}if("function"==typeof n.equals)return n.equals(t,u);if("function"==typeof t.equals)return t.equals(n,u);if(n instanceof Array){if(!(t instanceof Array))return!1;if(n.length!==t.length)return!1;for(a=0;a<n.length;a++)if(!r.equals(n[a],t[a],u))return!1;return!0}switch(r._isCustomType(n)+r._isCustomType(t)){case 1:return!1;case 2:return r.equals(r.toJSONValue(n),r.toJSONValue(t))}var o;if(i){var f=[];return e.each(t,function(n,e){f.push(e)}),a=0,o=e.all(n,function(n,e){return a>=f.length?!1:e!==f[a]?!1:r.equals(n,t[f[a]],u)?(a++,!0):!1}),o&&a===f.length}return a=0,o=e.all(n,function(n,i){return e.has(t,i)&&r.equals(n,t[i],u)?(a++,!0):!1}),o&&e.size(t)===a},r.clone=function(n){var t;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(r.isBinary(n)){t=r.newBinary(n.length);for(var u=0;u<n.length;u++)t[u]=n[u];return t}if(e.isArray(n)||e.isArguments(n)){for(t=[],u=0;u<n.length;u++)t[u]=r.clone(n[u]);return t}return"function"==typeof n.clone?n.clone():r._isCustomType(n)?r.fromJSONValue(r.clone(r.toJSONValue(n)),!0):(t={},e.each(n,function(n,e){t[e]=r.clone(n)}),t)},r.newBinary=t.newBinary}).call(this),function(){function n(n){return JSON.stringify(n)}var t=function(r,u,a,i,o){var f,c,l,s,y=i,h,N=u[r];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+a,h=[],e.isArray(N)||e.isArguments(N)){for(s=N.length,f=0;s>f;f+=1)h[f]=t(f,N,a,y,o)||"null";return l=0===h.length?"[]":y?"[\n"+y+h.join(",\n"+y)+"\n"+i+"]":"["+h.join(",")+"]"}var p=e.keys(N);return o&&(p=p.sort()),e.each(p,function(e){l=t(e,N,a,y,o),l&&h.push(n(e)+(y?": ":":")+l)}),l=0===h.length?"{}":y?"{\n"+y+h.join(",\n"+y)+"\n"+i+"}":"{"+h.join(",")+"}"}};r._canonicalStringify=function(n,r){if(r=e.extend({indent:"",canonical:!1},r),r.indent===!0)r.indent=" ";else if("number"==typeof r.indent){for(var u="",a=0;a<r.indent;a++)u+=" ";r.indent=u}return t("",{"":n},r.indent,"",r.canonical)}}.call(this),"undefined"==typeof Package&&(Package={}),Package.ejson={EJSON:r,EJSONTest:u}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.underscore._,n=Package.ejson.EJSON,r,a;(function(){var i=new e.EnvironmentVariable;r=function(e,t){var n=i.getOrNullIfOutsideFiber();n&&n.checking(e);var r=p(e,t);if(r){var o=new a.Error(r.message);throw r.path&&(o.message+=" in field "+r.path,o.path=r.path),o}},a={Optional:function(e){return new o(e)},OneOf:function(){return new s(t.toArray(arguments))},Any:["__any__"],Where:function(e){return new c(e)},ObjectIncluding:function(e){return new f(e)},ObjectWithValues:function(e){return new u(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!p(e,t)},_failIfArgumentsAreNotAllChecked:function(e,t,n,r){var a=new g(n,r),o=i.withValue(a,function(){return e.apply(t,n)});return a.throwUnlessAllArgumentsHaveBeenChecked(),o}};var o=function(e){this.pattern=e},s=function(e){if(t.isEmpty(e))throw new Error("Must provide at least one choice to Match.OneOf");this.choices=e},c=function(e){this.condition=e},f=function(e){this.pattern=e},u=function(e){this.pattern=e},h=[[String,"string"],[Number,"number"],[Boolean,"boolean"],[void 0,"undefined"]],p=function(e,r){if(r===a.Any)return!1;for(var i=0;i<h.length;++i)if(r===h[i][0])return typeof e===h[i][1]?!1:{message:"Expected "+h[i][1]+", got "+typeof e,path:""};if(null===r)return null===e?!1:{message:"Expected null, got "+n.stringify(e),path:""};if("string"==typeof r||"number"==typeof r||"boolean"==typeof r)return e===r?!1:{message:"Expected "+r+", got "+n.stringify(e),path:""};if(r===a.Integer)return"number"==typeof e&&(0|e)===e?!1:{message:"Expected Integer, got "+(e instanceof Object?n.stringify(e):e),path:""};if(r===Object&&(r=a.ObjectIncluding({})),r instanceof Array){if(1!==r.length)return{message:"Bad pattern: arrays must have one type element"+n.stringify(r),path:""};if(!t.isArray(e)&&!t.isArguments(e))return{message:"Expected array, got "+n.stringify(e),path:""};for(var i=0,g=e.length;g>i;i++){var l=p(e[i],r[0]);if(l)return l.path=d(i,l.path),l}return!1}if(r instanceof c){var l;try{l=r.condition(e)}catch(m){if(!(m instanceof a.Error))throw m;return{message:m.message,path:m.path}}return r.condition(e)?!1:{message:"Failed Match.Where validation",path:""}}if(r instanceof o&&(r=a.OneOf(void 0,r.pattern)),r instanceof s){for(var i=0;i<r.choices.length;++i){var l=p(e,r.choices[i]);if(!l)return!1}return{message:"Failed Match.OneOf or Match.Optional validation",path:""}}if(r instanceof Function)return e instanceof r?!1:{message:"Expected "+(r.name||"particular constructor"),path:""};var y=!1,v;if(r instanceof f&&(y=!0,r=r.pattern),r instanceof u&&(y=!0,v=[r.pattern],r={}),"object"!=typeof r)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(e.constructor!==Object)return{message:"Expected plain object",path:""};var k={},w={};t.each(r,function(e,t){e instanceof o?w[t]=e.pattern:k[t]=e});for(var b=t.keys(e),i=0,g=b.length;g>i;i++){var O=b[i],E=e[O];if(t.has(k,O)){var l=p(E,k[O]);if(l)return l.path=d(O,l.path),l;delete k[O]}else if(t.has(w,O)){var l=p(E,w[O]);if(l)return l.path=d(O,l.path),l}else{if(!y)return{message:"Unknown key",path:O};if(v){var l=p(E,v[0]);if(l)return l.path=d(O,l.path),l}}}var b=t.keys(k);return b.length?{message:"Missing key '"+b[0]+"'",path:""}:void 0},g=function(e,n){var r=this;r.args=t.clone(e),r.args.reverse(),r.description=n};t.extend(g.prototype,{checking:function(e){var n=this;n._checkingOneValue(e)||(t.isArray(e)||t.isArguments(e))&&t.each(e,t.bind(n._checkingOneValue,n))},_checkingOneValue:function(e){for(var n=this,r=0;r<n.args.length;++r)if(e===n.args[r]||t.isNaN(e)&&t.isNaN(n.args[r]))return n.args.splice(r,1),!0;return!1},throwUnlessAllArgumentsHaveBeenChecked:function(){var e=this;if(!t.isEmpty(e.args))throw new Error("Did not check() all arguments during "+e.description)}});var l=["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"],d=function(e,n){return"number"==typeof e||e.match(/^[0-9]+$/)?e="["+e+"]":(!e.match(/^[a-z_$][0-9a-z_$]*$/i)||t.contains(l,e))&&(e=JSON.stringify([e])),n&&"["!==n[0]?e+"."+n:e+n}}).call(this),"undefined"==typeof Package&&(Package={}),Package.check={check:r,Match:a}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a=Package.check.check,c=Package.check.Match;"undefined"==typeof Package&&(Package={}),Package["babel-compiler"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a;"undefined"==typeof Package&&(Package={}),Package.ecmascript={ECMAScript:a}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,r;(function(){function t(){var t={},r="t";try{Object.defineProperty(t,r,{enumerable:!1,value:t});for(var e in t)if(e===r)return!1}catch(n){return!1}return t[r]===t}var e=Object.prototype.hasOwnProperty;r={sanitizeForInObject:t()?function(t){return t}:function(t){if(Array.isArray(t)){for(var r={},e=Object.keys(t),n=e.length,o=0;n>o;++o){var a=e[o];r[a]=t[a]}return r}return t},taggedTemplateLiteralLoose:function(t,r){return t.raw=r,t},classCallCheck:function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")},inherits:function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);if(r){if(Object.create)t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}});else{var n=function(){this.constructor=t};n.prototype=r.prototype,t.prototype=new n}for(var o in r)e.call(r,o)&&(t[o]=r[o])}},createClass:function(){function t(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var r=!1;try{Object.defineProperty({},"x",{}),r=!0}catch(e){}return function(e,n,o){if(!r)throw new Error("Your browser does not support this type of class property. For example, Internet Explorer 8 does not support getters and setters.");return n&&t(e.prototype,n),o&&t(e,o),e}}(),_extends:Object.assign||function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)e.call(n,o)&&(t[o]=n[o])}return t},objectWithoutProperties:function(t,r){var n={};t:for(var o in t)if(e.call(t,o)){for(var a=0;a<r.length;a++)if(r[a]===o)continue t;n[o]=t[o]}return n},objectDestructuringEmpty:function(t){if(null==t)throw new TypeError("Cannot destructure undefined")},bind:Function.prototype.bind||function(){var t=function(t){return"function"==typeof t},r=Object,e=Object.prototype.toString,n=Array.prototype.slice,o=Array.prototype.concat,a=Array.prototype.push,i=Math.max,c=function u(){};return function p(e){var u=this;if(!t(u))throw new TypeError("Function.prototype.bind called on incompatible "+u);for(var p=n.call(arguments,1),l,f=function(){if(this instanceof l){var t=u.apply(this,o.call(p,n.call(arguments)));return r(t)===t?t:this}return u.apply(e,o.call(p,n.call(arguments)))},s=i(0,u.length-p.length),y=[],b=0;s>b;b++)a.call(y,"$"+b);return l=Function("binder","return function ("+y.join(",")+"){ return binder.apply(this, arguments); }")(f),u.prototype&&(c.prototype=u.prototype,l.prototype=new c,c.prototype=null),l}}(),slice:Array.prototype.slice}}).call(this),"undefined"==typeof Package&&(Package={}),Package["babel-runtime"]={babelHelpers:r}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,n,r,e,o,i;!function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={exports:{},id:e,loaded:!1};return t[e].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var r={};return n.m=t,n.c=r,n.p="",n(0)}([function(t,o,i){i(1),i(50),i(77),i(96),n=o.Symbol=i(99),r=o.Map=i(100),e=o.Set=i(108)},function(t,n,r){r(2),r(28),r(31),r(33),r(37),r(39),r(41),r(42),r(43),r(44),r(45),r(46),r(47),r(48),r(49),t.exports=r(9).Object},function(t,n,r){"use strict";var e=r(3),o=r(4),i=r(5),u=r(6),c=r(8),f=r(12),s=r(7),a=r(14),p=r(15),l=r(13),v=r(16),h=r(17),g=r(22),y=r(23),d=r(24),m=r(25),x=r(26),S=r(18),b=r(11),_=e.getDesc,w=e.setDesc,O=e.create,P=g.get,j=o.Symbol,A=o.JSON,E=A&&A.stringify,F=!1,k=v("_hidden"),M=e.isEnum,D=a("symbol-registry"),N=a("symbols"),T="function"==typeof j,C=Object.prototype,W=u&&s(function(){return 7!=O(w({},"a",{get:function(){return w(this,"a",{value:7}).a}})).a})?function(t,n,r){var e=_(C,n);e&&delete C[n],w(t,n,r),e&&t!==C&&w(C,n,e)}:w,I=function(t){var n=N[t]=O(j.prototype);return n._k=t,u&&F&&W(C,t,{configurable:!0,set:function(n){i(this,k)&&i(this[k],t)&&(this[k][t]=!1),W(this,t,b(1,n))}}),n},R=function(t){return"symbol"==typeof t},z=function Q(t,n,r){return r&&i(N,n)?(r.enumerable?(i(t,k)&&t[k][n]&&(t[k][n]=!1),r=O(r,{enumerable:b(0,!1)})):(i(t,k)||w(t,k,b(1,{})),t[k][n]=!0),W(t,n,r)):w(t,n,r)},G=function V(t,n){x(t);for(var r=y(n=S(n)),e=0,o=r.length,i;o>e;)z(t,i=r[e++],n[i]);return t},J=function X(t,n){return void 0===n?O(t):G(O(t),n)},L=function Y(t){var n=M.call(this,t);return n||!i(this,t)||!i(N,t)||i(this,k)&&this[k][t]?n:!0},K=function Z(t,n){var r=_(t=S(t),n);return!r||!i(N,n)||i(t,k)&&t[k][n]||(r.enumerable=!0),r},B=function tt(t){for(var n=P(S(t)),r=[],e=0,o;n.length>e;)i(N,o=n[e++])||o==k||r.push(o);return r},H=function nt(t){for(var n=P(S(t)),r=[],e=0,o;n.length>e;)i(N,o=n[e++])&&r.push(N[o]);return r},q=function rt(t){for(var n=[t],r=1,e,o;arguments.length>r;)n.push(arguments[r++]);return e=n[1],"function"==typeof e&&(o=e),(o||!d(e))&&(e=function(t,n){return o&&(n=o.call(this,t,n)),R(n)?void 0:n}),n[1]=e,E.apply(A,n)},U=s(function(){var t=j();return"[null]"!=E([t])||"{}"!=E({a:t})||"{}"!=E(Object(t))});T||(j=function et(){if(R(this))throw TypeError("Symbol is not a constructor");return I(l(arguments[0]))},f(j.prototype,"toString",function ot(){return this._k}),R=function(t){return t instanceof j},e.create=J,e.isEnum=L,e.getDesc=K,e.setDesc=z,e.setDescs=G,e.getNames=g.get=B,e.getSymbols=H,u&&!r(27)&&f(C,"propertyIsEnumerable",L,!0));var $={"for":function(t){return i(D,t+="")?D[t]:D[t]=j(t)},keyFor:function it(t){return h(D,t)},useSetter:function(){F=!0},useSimple:function(){F=!1}};e.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var n=v(t);$[t]=T?n:I(n)}),F=!0,c(c.G+c.W,{Symbol:j}),c(c.S,"Symbol",$),c(c.S+c.F*!T,"Object",{create:J,defineProperty:z,defineProperties:G,getOwnPropertyDescriptor:K,getOwnPropertyNames:B,getOwnPropertySymbols:H}),A&&c(c.S+c.F*(!T||U),"JSON",{stringify:q}),p(j,"Symbol"),p(Math,"Math",!0),p(o.JSON,"JSON",!0)},function(t,n){var r=Object;t.exports={create:r.create,getProto:r.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:r.getOwnPropertyDescriptor,setDesc:r.defineProperty,setDescs:r.defineProperties,getKeys:r.keys,getNames:r.getOwnPropertyNames,getSymbols:r.getOwnPropertySymbols,each:[].forEach}},function(t,n){var r="undefined",e=t.exports=typeof window!=r&&window.Math==Math?window:typeof self!=r&&self.Math==Math?self:Function("return this")();"number"==typeof o&&(o=e)},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n,r){t.exports=!r(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},function(t,n,r){var e=r(4),o=r(9),i=r(10),u=r(12),c="prototype",f=function(t,n){return function(){return t.apply(n,arguments)}},s=function(t,n,r){var a,p,l,v,h=t&s.G,g=t&s.P,y=h?e:t&s.S?e[n]||(e[n]={}):(e[n]||{})[c],d=h?o:o[n]||(o[n]={});h&&(r=n);for(a in r)p=!(t&s.F)&&y&&a in y,l=(p?y:r)[a],v=t&s.B&&p?f(l,e):g&&"function"==typeof l?f(Function.call,l):l,y&&!p&&u(y,a,l),d[a]!=l&&i(d,a,v),g&&((d[c]||(d[c]={}))[a]=l)};e.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,t.exports=s},function(t,n){var r=t.exports={version:"1.2.1"};"number"==typeof i&&(i=r)},function(t,n,r){var e=r(3),o=r(11);t.exports=r(6)?function(t,n,r){return e.setDesc(t,n,o(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,r){var e=r(4),o=r(10),i=r(13)("src"),u="toString",c=Function[u],f=(""+c).split(u);r(9).inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,r,u){"function"==typeof r&&(o(r,i,t[n]?""+t[n]:f.join(String(n))),"name"in r||(r.name=n)),t===e?t[n]=r:(u||delete t[n],o(t,n,r))})(Function.prototype,u,function s(){return"function"==typeof this&&this[i]||c.call(this)})},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+e).toString(36))}},function(t,n,r){var e=r(4),o="__core-js_shared__",i=e[o]||(e[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,n,r){var e=r(5),o=r(10),i=r(16)("toStringTag");t.exports=function(t,n,r){t&&!e(t=r?t:t.prototype,i)&&o(t,i,n)}},function(t,n,r){var e=r(14)("wks"),o=r(4).Symbol;t.exports=function(t){return e[t]||(e[t]=o&&o[t]||(o||r(13))("Symbol."+t))}},function(t,n,r){var e=r(3),o=r(18);t.exports=function(t,n){for(var r=o(t),i=e.getKeys(r),u=i.length,c=0,f;u>c;)if(r[f=i[c++]]===n)return f}},function(t,n,r){var e=r(19),o=r(21);t.exports=function(t){return e(o(t))}},function(t,n,r){var e=r(20);t.exports=0 in Object("z")?Object:function(t){return"String"==e(t)?t.split(""):Object(t)}},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,r){var e={}.toString,o=r(18),i=r(3).getNames,u="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return i(t)}catch(n){return u.slice()}};t.exports.get=function f(t){return u&&"[object Window]"==e.call(t)?c(t):i(o(t))}},function(t,n,r){var e=r(3);t.exports=function(t){var n=e.getKeys(t),r=e.getSymbols;if(r)for(var o=r(t),i=e.isEnum,u=0,c;o.length>u;)i.call(t,c=o[u++])&&n.push(c);return n}},function(t,n,r){var e=r(20);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){var e=r(25);t.exports=function(t){if(!e(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=!1},function(t,n,r){var e=r(8);e(e.S+e.F,"Object",{assign:r(29)})},function(t,r,e){var o=e(30),i=e(19),u=e(23),c=e(5);t.exports=e(7)(function(){var t=Object.assign,r={},e={},o=n(),i="abcdefghijklmnopqrst";return r[o]=7,i.split("").forEach(function(t){e[t]=t}),7!=t({},r)[o]||Object.keys(t({},e)).join("")!=i})?function f(t,n){for(var r=o(t),e=arguments.length,f=1;e>f;)for(var s=i(arguments[f++]),a=u(s),p=a.length,l=0,v;p>l;)c(s,v=a[l++])&&(r[v]=s[v]);return r}:Object.assign},function(t,n,r){var e=r(21);t.exports=function(t){return Object(e(t))}},function(t,n,r){var e=r(8);e(e.S,"Object",{is:r(32)})},function(t,n){t.exports=Object.is||function r(t,n){return t===n?0!==t||1/t===1/n:t!=t&&n!=n}},function(t,n,r){var e=r(8);e(e.S,"Object",{setPrototypeOf:r(34).set})},function(t,n,r){var e=r(3).getDesc,o=r(25),i=r(26),u=function(t,n){if(i(t),!o(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,o){try{o=r(35)(Function.call,e(Object.prototype,"__proto__").set,2),o(t,[]),n=!(t instanceof Array)}catch(i){n=!0}return function c(t,r){return u(t,r),n?t.__proto__=r:o(t,r),t}}({},!1):void 0),check:u}},function(t,n,r){var e=r(36);t.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,o){return t.call(n,r,e,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,r){"use strict";var e=r(38),o={};o[r(16)("toStringTag")]="z",o+""!="[object z]"&&r(12)(Object.prototype,"toString",function i(){return"[object "+e(this)+"]"},!0)},function(t,n,r){var e=r(20),o=r(16)("toStringTag"),i="Arguments"==e(function(){return arguments}());t.exports=function(t){var n,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=(n=Object(t))[o])?r:i?e(n):"Object"==(u=e(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,r){var e=r(25);r(40)("freeze",function(t){return function n(r){return t&&e(r)?t(r):r}})},function(t,n,r){t.exports=function(t,n){var e=r(8),o=(r(9).Object||{})[t]||Object[t],i={};i[t]=n(o),e(e.S+e.F*r(7)(function(){o(1)}),"Object",i)}},function(t,n,r){var e=r(25);r(40)("seal",function(t){return function n(r){return t&&e(r)?t(r):r}})},function(t,n,r){var e=r(25);r(40)("preventExtensions",function(t){return function n(r){return t&&e(r)?t(r):r}})},function(t,n,r){var e=r(25);r(40)("isFrozen",function(t){return function n(r){return e(r)?t?t(r):!1:!0}})},function(t,n,r){var e=r(25);r(40)("isSealed",function(t){return function n(r){return e(r)?t?t(r):!1:!0}})},function(t,n,r){var e=r(25);r(40)("isExtensible",function(t){return function n(r){return e(r)?t?t(r):!0:!1}})},function(t,n,r){var e=r(18);r(40)("getOwnPropertyDescriptor",function(t){return function n(r,o){return t(e(r),o)}})},function(t,n,r){var e=r(30);r(40)("getPrototypeOf",function(t){return function n(r){return t(e(r))}})},function(t,n,r){var e=r(30);r(40)("keys",function(t){return function n(r){return t(e(r))}})},function(t,n,r){r(40)("getOwnPropertyNames",function(){return r(22).get})},function(t,n,r){r(51),r(57),r(63),r(64),r(66),r(69),r(72),r(74),r(76),t.exports=r(9).Array},function(t,n,r){"use strict";var e=r(52)(!0);r(54)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t=this._t,n=this._i,r;return n>=t.length?{value:void 0,done:!0}:(r=e(t,n),this._i+=r.length,{value:r,done:!1})})},function(t,n,r){var e=r(53),o=r(21);t.exports=function(t){return function(n,r){var i=String(o(n)),u=e(r),c=i.length,f,s;return 0>u||u>=c?t?"":void 0:(f=i.charCodeAt(u),55296>f||f>56319||u+1===c||(s=i.charCodeAt(u+1))<56320||s>57343?t?i.charAt(u):f:t?i.slice(u,u+2):(f-55296<<10)+(s-56320)+65536)}}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){"use strict";var e=r(27),o=r(8),i=r(12),u=r(10),c=r(5),f=r(16)("iterator"),s=r(55),a=!([].keys&&"next"in[].keys()),p="@@iterator",l="keys",v="values",h=function(){return this};t.exports=function(t,n,g,y,d,m,x){r(56)(g,n,y);var S=function(t){switch(t){case l:return function n(){return new g(this,t)};case v:return function r(){return new g(this,t)}}return function e(){return new g(this,t)}},b=n+" Iterator",_=t.prototype,w=_[f]||_[p]||d&&_[d],O=w||S(d),P,j;if(w){var A=r(3).getProto(O.call(new t));r(15)(A,b,!0),!e&&c(_,p)&&u(A,f,h)}if((!e||x)&&u(_,f,O),s[n]=O,s[b]=h,d)if(P={keys:m?O:S(l),values:d==v?O:S(v),entries:d!=v?O:S("entries")},x)for(j in P)j in _||i(_,j,P[j]);else o(o.P+o.F*a,n,P)}},function(t,n){t.exports={}},function(t,n,r){"use strict";var e=r(3),o={};r(10)(o,r(16)("iterator"),function(){return this}),t.exports=function(t,n,i){t.prototype=e.create(o,{next:r(11)(1,i)}),r(15)(t,n+" Iterator")}},function(t,n,r){"use strict";var e=r(35),o=r(8),i=r(30),u=r(58),c=r(59),f=r(60),s=r(61);o(o.S+o.F*!r(62)(function(t){Array.from(t)}),"Array",{from:function a(t){var n=i(t),r="function"==typeof this?this:Array,o=arguments[1],a=void 0!==o,p=0,l=s(n),v,h,g,y;if(a&&(o=e(o,arguments[2],2)),void 0==l||r==Array&&c(l))for(v=f(n.length),h=new r(v);v>p;p++)h[p]=a?o(n[p],p):n[p];else for(y=l.call(n),h=new r;!(g=y.next()).done;p++)h[p]=a?u(y,o,[g.value,p],!0):g.value;return h.length=p,h}})},function(t,n,r){var e=r(26);t.exports=function(t,n,r,o){try{return o?n(e(r)[0],r[1]):n(r)}catch(i){var u=t["return"];throw void 0!==u&&e(u.call(t)),i}}},function(t,n,r){var e=r(55),o=r(16)("iterator");t.exports=function(t){return(e.Array||Array.prototype[o])===t}},function(t,n,r){var e=r(53),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n,r){var e=r(38),o=r(16)("iterator"),i=r(55);t.exports=r(9).getIteratorMethod=function(t){return void 0!=t?t[o]||t["@@iterator"]||i[e(t)]:void 0}},function(t,n,r){var e=r(16)("iterator"),o=!1;try{var i=[7][e]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(u){}t.exports=function(t){if(!o)return!1;var n=!1;try{var r=[7],i=r[e]();i.next=function(){n=!0},r[e]=function(){return i},t(r)}catch(u){}return n}},function(t,n,r){"use strict";var e=r(8);e(e.S+e.F*r(7)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function o(){for(var t=0,n=arguments.length,r=new("function"==typeof this?this:Array)(n);n>t;)r[t]=arguments[t++];return r.length=n,r}})},function(t,n,r){r(65)(Array)},function(t,n,r){"use strict";var e=r(3),o=r(16)("species");t.exports=function(t){!r(6)||o in t||e.setDesc(t,o,{configurable:!0,get:function(){return this}})}},function(t,n,r){"use strict";var e=r(67),o=r(68),i=r(55),u=r(18);r(54)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,r):"values"==n?o(0,t[r]):o(0,[r,t[r]])},"values"),i.Arguments=i.Array,e("keys"),e("values"),e("entries")},function(t,n,r){var e=r(16)("unscopables");void 0==[][e]&&r(10)(Array.prototype,e,{}),t.exports=function(t){[][e][t]=!0}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,r){"use strict";var e=r(8);e(e.P,"Array",{copyWithin:r(70)}),r(67)("copyWithin")},function(t,n,r){"use strict";var e=r(30),o=r(71),i=r(60);t.exports=[].copyWithin||function u(t,n){var r=e(this),u=i(r.length),c=o(t,u),f=o(n,u),s=arguments[2],a=Math.min((void 0===s?u:o(s,u))-f,u-c),p=1;for(c>f&&f+a>c&&(p=-1,f+=a-1,c+=a-1);a-->0;)f in r?r[c]=r[f]:delete r[c],c+=p,f+=p;return r}},function(t,n,r){var e=r(53),o=Math.max,i=Math.min;t.exports=function(t,n){return t=e(t),0>t?o(t+n,0):i(t,n)}},function(t,n,r){var e=r(8);e(e.P,"Array",{fill:r(73)}),r(67)("fill")},function(t,n,r){"use strict";var e=r(30),o=r(71),i=r(60);t.exports=[].fill||function u(t){for(var n=e(this,!0),r=i(n.length),u=o(arguments[1],r),c=arguments[2],f=void 0===c?r:o(c,r);f>u;)n[u++]=t;return n}},function(t,n,r){"use strict";var e="find",o=r(8),i=!0,u=r(75)(5);e in[]&&Array(1)[e](function(){i=!1}),o(o.P+o.F*i,"Array",{find:function c(t){return u(this,t,arguments[1])}}),r(67)(e)},function(t,n,r){var e=r(35),o=r(25),i=r(19),u=r(30),c=r(60),f=r(24),s=r(16)("species"),a=function(t,n){var r;return f(t)&&o(r=t.constructor)&&(r=r[s],null===r&&(r=void 0)),new(void 0===r?Array:r)(n)};t.exports=function(t){var n=1==t,r=2==t,o=3==t,f=4==t,s=6==t,p=5==t||s;return function(l,v,h){for(var g=u(l),y=i(g),d=e(v,h,3),m=c(y.length),x=0,S=n?a(l,m):r?a(l,0):void 0,b,_;m>x;x++)if((p||x in y)&&(b=y[x],_=d(b,x,g),t))if(n)S[x]=_;else if(_)switch(t){case 3:return!0;case 5:return b;case 6:return x;case 2:S.push(b)}else if(f)return!1;return s?-1:o||f?f:S}}},function(t,n,r){"use strict";var e="findIndex",o=r(8),i=!0,u=r(75)(6);e in[]&&Array(1)[e](function(){i=!1}),o(o.P+o.F*i,"Array",{findIndex:function c(t){return u(this,t,arguments[1])}}),r(67)(e)},function(t,n,r){r(78),r(79),r(80),r(51),r(82),r(83),r(87),r(88),r(90),r(91),r(93),r(94),r(95),t.exports=r(9).String},function(t,n,r){var e=r(8),o=r(71),i=String.fromCharCode,u=String.fromCodePoint;e(e.S+e.F*(!!u&&1!=u.length),"String",{fromCodePoint:function c(t){for(var n=[],r=arguments.length,e=0,u;r>e;){if(u=+arguments[e++],o(u,1114111)!==u)throw RangeError(u+" is not a valid code point");n.push(65536>u?i(u):i(((u-=65536)>>10)+55296,u%1024+56320))}return n.join("")}})},function(t,n,r){var e=r(8),o=r(18),i=r(60);e(e.S,"String",{raw:function u(t){for(var n=o(t.raw),r=i(n.length),e=arguments.length,u=[],c=0;r>c;)u.push(String(n[c++])),e>c&&u.push(String(arguments[c]));return u.join("")}})},function(t,n,r){"use strict";r(81)("trim",function(t){return function n(){return t(this,3)}})},function(t,n,r){var e=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(s,"")),2&n&&(t=t.replace(a,"")),t},o=r(8),i=r(21),u=" \n\f\r \u2028\u2029\ufeff",c="["+u+"]",f="
",s=RegExp("^"+c+c+"*"),a=RegExp(c+c+"*$");t.exports=function(t,n){var i={};i[t]=n(e),o(o.P+o.F*r(7)(function(){return!!u[t]()||f[t]()!=f}),"String",i)}},function(t,n,r){"use strict";var e=r(8),o=r(52)(!1);e(e.P,"String",{codePointAt:function i(t){return o(this,t)}})},function(t,n,r){"use strict";var e=r(8),o=r(60),i=r(84),u="endsWith",c=""[u];e(e.P+e.F*r(86)(u),"String",{endsWith:function f(t){var n=i(this,t,u),r=arguments[1],e=o(n.length),f=void 0===r?e:Math.min(o(r),e),s=String(t);return c?c.call(n,s,f):n.slice(f-s.length,f)===s}})},function(t,n,r){var e=r(85),o=r(21);t.exports=function(t,n,r){if(e(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(o(t))}},function(t,n,r){var e=r(25),o=r(20),i=r(16)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},function(t,n,r){t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r(16)("match")]=!1,!"/./"[t](n)}catch(e){}}return!0}},function(t,n,r){"use strict";var e=r(8),o=r(84),i="includes";e(e.P+e.F*r(86)(i),"String",{includes:function u(t){return!!~o(this,t,i).indexOf(t,arguments[1])}})},function(t,n,r){var e=r(8);e(e.P,"String",{repeat:r(89)})},function(t,n,r){"use strict";var e=r(53),o=r(21);t.exports=function i(t){var n=String(o(this)),r="",i=e(t);if(0>i||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(n+=n))1&i&&(r+=n);return r}},function(t,n,r){"use strict";var e=r(8),o=r(60),i=r(84),u="startsWith",c=""[u];e(e.P+e.F*r(86)(u),"String",{startsWith:function f(t){var n=i(this,t,u),r=o(Math.min(arguments[1],n.length)),e=String(t);return c?c.call(n,e,r):n.slice(r,r+e.length)===e}})},function(t,n,r){r(92)("match",1,function(t,n){return function r(e){"use strict";var o=t(this),i=void 0==e?void 0:e[n];return void 0!==i?i.call(e,o):new RegExp(e)[n](String(o))}})},function(t,n,r){"use strict";t.exports=function(t,n,e){var o=r(21),i=r(16)(t),u=""[t];r(7)(function(){var n={};return n[i]=function(){return 7},7!=""[t](n)})&&(r(12)(String.prototype,t,e(o,i,u)),r(10)(RegExp.prototype,i,2==n?function(t,n){return u.call(t,this,n)}:function(t){return u.call(t,this)}))}},function(t,n,r){r(92)("replace",2,function(t,n,r){return function e(o,i){"use strict";var u=t(this),c=void 0==o?void 0:o[n];return void 0!==c?c.call(o,u,i):r.call(String(u),o,i)}})},function(t,n,r){r(92)("search",1,function(t,n){return function r(e){"use strict";var o=t(this),i=void 0==e?void 0:e[n];return void 0!==i?i.call(e,o):new RegExp(e)[n](String(o))}})},function(t,n,r){r(92)("split",2,function(t,n,r){return function e(o,i){"use strict";var u=t(this),c=void 0==o?void 0:o[n];return void 0!==c?c.call(o,u,i):r.call(String(u),o,i)}})},function(t,n,r){r(97),r(98),t.exports=r(9).Function},function(t,n,r){var e=r(3).setDesc,o=r(11),i=r(5),u=Function.prototype,c=/^\s*function ([^ (]*)/,f="name";f in u||r(6)&&e(u,f,{configurable:!0,get:function(){var t=(""+this).match(c),n=t?t[1]:"";return i(this,f)||e(this,f,o(5,n)),n}})},function(t,n,r){"use strict";var e=r(3),o=r(25),i=r(16)("hasInstance"),u=Function.prototype;i in u||e.setDesc(u,i,{value:function(t){if("function"!=typeof this||!o(t))return!1;if(!o(this.prototype))return t instanceof this;for(;t=e.getProto(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,r){r(2),t.exports=r(9).Symbol},function(t,n,r){r(37),r(51),r(101),r(102),t.exports=r(9).Map},function(t,n,r){r(66);var e=r(4),o=r(10),i=r(55),u=r(16)("iterator"),c=e.NodeList,f=e.HTMLCollection,s=c&&c.prototype,a=f&&f.prototype,p=i.NodeList=i.HTMLCollection=i.Array;!c||u in s||o(s,u,p),!f||u in a||o(a,u,p)},function(t,n,r){"use strict";var e=r(103);r(107)("Map",function(t){return function n(){return t(this,arguments[0])}},{get:function o(t){var n=e.getEntry(this,t);return n&&n.v},set:function i(t,n){return e.def(this,0===t?0:t,n)}},e,!0)},function(t,n,r){"use strict";var e=r(3),o=r(10),i=r(35),u=r(65),c=r(104),f=r(21),s=r(105),a=r(68),p=r(13)("id"),l=r(5),v=r(25),h=Object.isExtensible||v,g=r(6),y=g?"_s":"size",d=0,m=function(t,n){if(!v(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!l(t,p)){if(!h(t))return"F";if(!n)return"E";o(t,p,++d)}return"O"+t[p]},x=function(t,n){var r=m(n),e;if("F"!==r)return t._i[r];for(e=t._f;e;e=e.n)if(e.k==n)return e};t.exports={getConstructor:function(t,n,o,u){var a=t(function(t,r){c(t,a,n),t._i=e.create(null),t._f=void 0,t._l=void 0,t[y]=0,void 0!=r&&s(r,o,t[u],t)});return r(106)(a.prototype,{clear:function p(){for(var t=this,n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[y]=0},"delete":function(t){var n=this,r=x(n,t);if(r){var e=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=e),e&&(e.p=o),n._f==r&&(n._f=e),n._l==r&&(n._l=o),n[y]--}return!!r},forEach:function l(t){for(var n=i(t,arguments[1],3),r;r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function v(t){return!!x(this,t)}}),g&&e.setDesc(a.prototype,"size",{get:function(){return f(this[y])}}),a},def:function(t,n,r){var e=x(t,n),o,i;return e?e.v=r:(t._l=e={i:i=m(n,!0),k:n,v:r,p:o=t._l,n:void 0,r:!1},t._f||(t._f=e),o&&(o.n=e),t[y]++,"F"!==i&&(t._i[i]=e)),t},getEntry:x,setStrong:function(t,n,e){r(54)(t,n,function(t,n){this._t=t,this._k=n,this._l=void 0},function(){for(var t=this,n=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==n?a(0,r.k):"values"==n?a(0,r.v):a(0,[r.k,r.v]):(t._t=void 0,a(1))},e?"entries":"values",!e,!0),u(t),u(r(9)[n])}}},function(t,n){t.exports=function(t,n,r){if(!(t instanceof n))throw TypeError(r+": use the 'new' operator!");return t}},function(t,n,r){var e=r(35),o=r(58),i=r(59),u=r(26),c=r(60),f=r(61);t.exports=function(t,n,r,s){var a=f(t),p=e(r,s,n?2:1),l=0,v,h,g;if("function"!=typeof a)throw TypeError(t+" is not iterable!");if(i(a))for(v=c(t.length);v>l;l++)n?p(u(h=t[l])[0],h[1]):p(t[l]);else for(g=a.call(t);!(h=g.next()).done;)o(g,p,h.value,n)}},function(t,n,r){var e=r(12);t.exports=function(t,n){for(var r in n)e(t,r,n[r]);return t}},function(t,n,r){"use strict";var e=r(4),o=r(8),i=r(105),u=r(104);t.exports=function(t,n,c,f,s,a){var p=e[t],l=p,v=s?"set":"add",h=l&&l.prototype,g={},y=function(t){var n=h[t];r(12)(h,t,"delete"==t?function(t){return n.call(this,0===t?0:t)}:"has"==t?function e(t){return n.call(this,0===t?0:t)}:"get"==t?function o(t){return n.call(this,0===t?0:t)}:"add"==t?function i(t){return n.call(this,0===t?0:t),this}:function u(t,r){return n.call(this,0===t?0:t,r),this})};if("function"==typeof l&&(a||h.forEach&&!r(7)(function(){(new l).entries().next()}))){var d=new l,m=d[v](a?{}:-0,1),x;r(62)(function(t){new l(t)})||(l=n(function(n,r){u(n,l,t);var e=new p;return void 0!=r&&i(r,s,e[v],e),e}),l.prototype=h,h.constructor=l),a||d.forEach(function(t,n){x=1/n===-(1/0)}),x&&(y("delete"),y("has"),s&&y("get")),(x||m!==d)&&y(v),a&&h.clear&&delete h.clear}else l=f.getConstructor(n,t,s,v),r(106)(l.prototype,c);return r(15)(l,t),g[t]=l,o(o.G+o.W+o.F*(l!=p),g),a||f.setStrong(l,t,s),l}},function(t,n,r){r(37),r(51),r(101),r(109),t.exports=r(9).Set},function(t,n,r){"use strict";var e=r(103);r(107)("Set",function(t){return function n(){return t(this,arguments[0])}},{add:function o(t){return e.def(this,t=0===t?0:t,t)}},e)}]),"undefined"==typeof Package&&(Package={}),Package["ecmascript-runtime"]={Symbol:n,Map:r,Set:e}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,n;(function(){!function(t){function n(o){if(e[o])return e[o].exports;var r=e[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(e,o,r){function i(t){throw t}var u=r(1),c=u.prototype.then;u.prototype.then=function(n,e){return"object"==typeof t&&"function"==typeof t.bindEnvironment?c.call(this,n&&t.bindEnvironment(n,i),e&&t.bindEnvironment(e,i)):c.call(this,n,e)},n=u},function(t,n,e){(function(n){function o(t,n){Object.keys(n).forEach(function(e){var o=n[e];"function"!=typeof o||r.call(t,e)||(t[e]=o)})}var r=Object.prototype.hasOwnProperty,i="object"==typeof n?n:"object"==typeof window?window:"object"==typeof self?self:this,u=i.Promise,c=e(2);"function"==typeof u?(o(u,c),o(u.prototype,c.prototype),t.exports=u):t.exports=c}).call(n,function(){return this}())},function(t,n,e){"use strict";t.exports=e(3)},function(t,n,e){"use strict";t.exports=e(4),e(6),e(7),e(8),e(9)},function(t,n,e){"use strict";function o(){}function r(t){try{return t.then}catch(n){return d=n,w}}function i(t,n){try{return t(n)}catch(e){return d=e,w}}function u(t,n,e){try{t(n,e)}catch(o){return d=o,w}}function c(t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._37=0,this._12=null,this._59=[],t!==o&&y(t,this)}function f(t,n,e){return new t.constructor(function(r,i){var u=new c(o);u.then(r,i),s(t,new h(n,e,u))})}function s(t,n){for(;3===t._37;)t=t._12;return 0===t._37?void t._59.push(n):void v(function(){var e=1===t._37?n.onFulfilled:n.onRejected;if(null===e)return void(1===t._37?a(n.promise,t._12):l(n.promise,t._12));var o=i(e,t._12);o===w?l(n.promise,d):a(n.promise,o)})}function a(t,n){if(n===t)return l(t,new TypeError("A promise cannot be resolved with itself."));if(n&&("object"==typeof n||"function"==typeof n)){var e=r(n);if(e===w)return l(t,d);if(e===t.then&&n instanceof c)return t._37=3,t._12=n,void p(t);if("function"==typeof e)return void y(e.bind(n),t)}t._37=1,t._12=n,p(t)}function l(t,n){t._37=2,t._12=n,p(t)}function p(t){for(var n=0;n<t._59.length;n++)s(t,t._59[n]);t._59=null}function h(t,n,e){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof n?n:null,this.promise=e}function y(t,n){var e=!1,o=u(t,function(t){e||(e=!0,a(n,t))},function(t){e||(e=!0,l(n,t))});e||o!==w||(e=!0,l(n,d))}var v=e(5),d=null,w={};t.exports=c,c._99=o,c.prototype.then=function(t,n){if(this.constructor!==c)return f(this,t,n);var e=new c(o);return s(this,new h(t,n,e)),e}},function(t,n){(function(n){"use strict";function e(t){u.length||(f(),c=!0),u[u.length]=t}function o(){for(;s<u.length;){var t=s;if(s+=1,u[t].call(),s>a){for(var n=0,e=u.length-s;e>n;n++)u[n]=u[n+s];u.length-=s,s=0}}u.length=0,s=0,c=!1}function r(t){var n=1,e=new l(t),o=document.createTextNode("");return e.observe(o,{characterData:!0}),function r(){n=-n,o.data=n}}function i(t){return function n(){function n(){clearTimeout(e),clearInterval(o),t()}var e=setTimeout(n,0),o=setInterval(n,50)}}t.exports=e;var u=[],c=!1,f,s=0,a=1024,l=n.MutationObserver||n.WebKitMutationObserver;f="function"==typeof l?r(o):i(o),e.requestFlush=f,e.makeRequestCallFromTimer=i}).call(n,function(){return this}())},function(t,n,e){"use strict";var o=e(4);t.exports=o,o.prototype.done=function(t,n){var e=arguments.length?this.then.apply(this,arguments):this;e.then(null,function(t){setTimeout(function(){throw t},0)})}},function(t,n,e){"use strict";var o=e(4);t.exports=o,o.prototype["finally"]=function(t){return this.then(function(n){return o.resolve(t()).then(function(){return n})},function(n){return o.resolve(t()).then(function(){throw n})})}},function(t,n,e){"use strict";function o(t){var n=new r(r._99);return n._37=1,n._12=t,n}var r=e(4);t.exports=r;var i=o(!0),u=o(!1),c=o(null),f=o(void 0),s=o(0),a=o("");r.resolve=function(t){if(t instanceof r)return t;if(null===t)return c;if(void 0===t)return f;if(t===!0)return i;if(t===!1)return u;if(0===t)return s;if(""===t)return a;if("object"==typeof t||"function"==typeof t)try{var n=t.then;if("function"==typeof n)return new r(n.bind(t))}catch(e){return new r(function(t,n){n(e)})}return o(t)},r.all=function(t){var n=Array.prototype.slice.call(t);return new r(function(t,e){function o(u,c){if(c&&("object"==typeof c||"function"==typeof c)){if(c instanceof r&&c.then===r.prototype.then){for(;3===c._37;)c=c._12;return 1===c._37?o(u,c._12):(2===c._37&&e(c._12),void c.then(function(t){o(u,t)},e))}var f=c.then;if("function"==typeof f){var s=new r(f.bind(c));return void s.then(function(t){o(u,t)},e)}}n[u]=c,0===--i&&t(n)}if(0===n.length)return t([]);for(var i=n.length,u=0;u<n.length;u++)o(u,n[u])})},r.reject=function(t){return new r(function(n,e){e(t)})},r.race=function(t){return new r(function(n,e){t.forEach(function(t){r.resolve(t).then(n,e)})})},r.prototype["catch"]=function(t){return this.then(null,t)}},function(t,n,e){"use strict";var o=e(4),r=e(10);t.exports=o,o.denodeify=function(t,n){return n=n||1/0,function(){var e=this,r=Array.prototype.slice.call(arguments,0,n>0?n:0);return new o(function(n,o){r.push(function(t,e){t?o(t):n(e)});var i=t.apply(e,r);!i||"object"!=typeof i&&"function"!=typeof i||"function"!=typeof i.then||n(i)})}},o.nodeify=function(t){return function(){var n=Array.prototype.slice.call(arguments),e="function"==typeof n[n.length-1]?n.pop():null,i=this;try{return t.apply(this,arguments).nodeify(e,i)}catch(u){if(null===e||"undefined"==typeof e)return new o(function(t,n){n(u)});r(function(){e.call(i,u)})}}},o.prototype.nodeify=function(t,n){return"function"!=typeof t?this:void this.then(function(e){r(function(){t.call(n,null,e)})},function(e){r(function(){t.call(n,e)})})}},function(t,n,e){"use strict";function o(){if(f.length)throw f.shift()}function r(t){var n;n=c.length?c.pop():new i,n.task=t,u(n)}function i(){this.task=null}var u=e(5),c=[],f=[],s=u.makeRequestCallFromTimer(o);t.exports=r,i.prototype.call=function(){try{this.task.call()}catch(t){r.onerror?r.onerror(t):(f.push(t),s())}finally{this.task=null,c[c.length]=this}}}])}).call(this),"undefined"==typeof Package&&(Package={}),Package.promise={Promise:n}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.underscore._,t=Package.ecmascript.ECMAScript,r=Package["babel-runtime"].babelHelpers,o=Package["ecmascript-runtime"].Symbol,i=Package["ecmascript-runtime"].Map,a=Package["ecmascript-runtime"].Set,c=Package.promise.Promise,u;(function(){function n(){return new a(a.Type.ALEA,{seeds:[new Date,c,d,p,Math.random()]})}if(e.isServer)var t=Npm.require("crypto");var r=function(){function e(){var e=4022871197,n=function(n){n=n.toString();for(var t=0;t<n.length;t++){e+=n.charCodeAt(t);var r=.02519603282416938*e;e=r>>>0,r-=e,r*=e,e=r>>>0,r-=e,e+=4294967296*r}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 c=0;c<n.length;c++)t-=a(n[c]),0>t&&(t+=1),r-=a(n[c]),0>r&&(r+=1),o-=a(n[c]),0>o&&(o+=1);a=null;var u=function(){var e=2091639*t+2.3283064365386963e-10*i;return t=r,r=o,o=e-(i=0|e)};return u.uint32=function(){return 4294967296*u()},u.fract53=function(){return u()+1.1102230246251565e-16*(2097152*u()|0)},u.version="Alea 0.9",u.args=n,u}(Array.prototype.slice.call(arguments))},o="23456789ABCDEFGHJKLMNPQRSTWXYZabcdefghijkmnopqrstuvwxyz",i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",a=function(e,n){var t=this;if(t.type=e,!a.Type[e])throw new Error("Unknown random generator type: "+e);if(e===a.Type.ALEA){if(!n.seeds)throw new Error("No seeds were provided for Alea PRNG");t.alea=r.apply(null,n.seeds)}};a.Type={NODE_CRYPTO:"NODE_CRYPTO",BROWSER_CRYPTO:"BROWSER_CRYPTO",ALEA:"ALEA"},a.prototype.fraction=function(){var e=this;if(e.type===a.Type.ALEA)return e.alea();if(e.type===a.Type.NODE_CRYPTO){var n=parseInt(e.hexString(8),16);return 2.3283064365386963e-10*n}if(e.type===a.Type.BROWSER_CRYPTO){var t=new Uint32Array(1);return window.crypto.getRandomValues(t),2.3283064365386963e-10*t[0]}throw new Error("Unknown random generator type: "+e.type)},a.prototype.hexString=function(e){var n=this;if(n.type===a.Type.NODE_CRYPTO){var r=Math.ceil(e/2),o;try{o=t.randomBytes(r)}catch(i){o=t.pseudoRandomBytes(r)}var c=o.toString("hex");return c.substring(0,e)}return this._randomString(e,"0123456789abcdef")},a.prototype._randomString=function(e,n){for(var t=this,r=[],o=0;e>o;o++)r[o]=t.choice(n);return r.join("")},a.prototype.id=function(e){var n=this;return void 0===e&&(e=17),n._randomString(e,o)},a.prototype.secret=function(e){var n=this;return void 0===e&&(e=43),n._randomString(e,i)},a.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,d="undefined"!=typeof window&&window.innerWidth||"undefined"!=typeof document&&document.documentElement&&document.documentElement.clientWidth||"undefined"!=typeof document&&document.body&&document.body.clientWidth||1,p="undefined"!=typeof navigator&&navigator.userAgent||"";u=e.isServer?new a(a.Type.NODE_CRYPTO):"undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues?new a(a.Type.BROWSER_CRYPTO):n(),u.createWithSeeds=function(){for(var e=arguments.length,n=Array(e),t=0;e>t;t++)n[t]=arguments[t];if(0===n.length)throw new Error("No seeds were provided");return new a(a.Type.ALEA,{seeds:n})},u.insecure=n()}).call(this),function(){e.uuid=function(){for(var e="0123456789abcdef",n=[],t=0;36>t;t++)n[t]=u.choice(e);n[14]="4",n[19]=e.substr(3&parseInt(n[19],16)|8,1),n[8]=n[13]=n[18]=n[23]="-";var r=n.join("");return r}}.call(this),"undefined"==typeof Package&&(Package={}),Package.random={Random:u}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.underscore._,n=Package.random.Random,i;(function(){var e=1e3,o=10,r=function(e,t){var i=this;i.id=n.id(),i.options=e,i._matchers=t,i._lastResetTime=(new Date).getTime(),i.counters={}};t.extend(r.prototype,{match:function(e){var n=this,i=!0;return t.every(n._matchers,function(n,i){if(null!==n){if(!t.has(e,i))return!1;if("function"==typeof n){if(!n(e[i]))return!1}else if(n!==e[i])return!1}return!0})},_generateKeyString:function(e){var n=this,i="";return t.each(n._matchers,function(t,n){null!==t&&("function"==typeof t?t(e[n])&&(i+=n+e[n]):i+=n+e[n])}),i},apply:function(e){var t=this,n=t._generateKeyString(e),i=(new Date).getTime()-t._lastResetTime,o=t.options.intervalTime-i;return{key:n,timeSinceLastReset:i,timeToNextReset:o}},resetCounter:function(){var e=this;e.counters={},e._lastResetTime=(new Date).getTime()}}),i=function(){var e=this;e.rules={}},i.prototype.check=function(e){var n=this,i={allowed:!0,timeToReset:0,numInvocationsLeft:1/0},o=n._findAllMatchingRules(e);return t.each(o,function(t){var n=t.apply(e),o=t.counters[n.key];n.timeToNextReset<0&&(t.resetCounter(),n.timeSinceLastReset=(new Date).getTime()-t._lastResetTime,n.timeToNextReset=t.options.intervalTime,o=0),o>t.options.numRequestsAllowed?(i.timeToReset<n.timeToNextReset&&(i.timeToReset=n.timeToNextReset),i.allowed=!1,i.numInvocationsLeft=0):t.options.numRequestsAllowed-o<i.numInvocationsLeft&&i.allowed&&(i.timeToReset=n.timeToNextReset,i.numInvocationsLeft=t.options.numRequestsAllowed-o)}),i},i.prototype.addRule=function(t,n,i){var s=this,a={numRequestsAllowed:n||o,intervalTime:i||e},u=new r(a,t);return this.rules[u.id]=u,u.id},i.prototype.increment=function(e){var n=this,i=n._findAllMatchingRules(e);t.each(i,function(n){var i=n.apply(e);i.timeSinceLastReset>n.options.intervalTime&&n.resetCounter(),t.has(n.counters,i.key)?n.counters[i.key]++:n.counters[i.key]=1})},i.prototype._findAllMatchingRules=function(e){var n=this;return t.filter(n.rules,function(t){return t.match(e)})},i.prototype.removeRule=function(e){var t=this;return t.rules[e]?(delete t.rules[e],!0):!1}}).call(this),"undefined"==typeof Package&&(Package={}),Package["rate-limit"]={RateLimiter:i}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package["rate-limit"].RateLimiter,n;(function(){n={};var e=function(e){return"Error, too many requests. Please slow down. You must wait "+Math.ceil(e.timeToReset/1e3)+" seconds before trying again."},r=new t;n.getErrorMessage=function(t){return"function"==typeof e?e(t):e},n.setErrorMessage=function(t){e=t},n.addRule=function(e,t,n){return r.addRule(e,t,n)},n.printRules=function(){return r.rules},n.removeRule=function(e){return r.removeRule(e)},n._increment=function(e){r.increment(e)},n._check=function(e){return r.check(e)}}).call(this),"undefined"==typeof Package&&(Package={}),Package["ddp-rate-limiter"]={DDPRateLimiter:n}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.random.Random;(function(){var o="_localstorage_test_"+t.id(),a;try{window.localStorage&&(window.localStorage.setItem(o,o),a=window.localStorage.getItem(o),window.localStorage.removeItem(o))}catch(n){}o===a&&(e._localStorage={getItem:function(e){return window.localStorage.getItem(e)},setItem:function(e,t){window.localStorage.setItem(e,t)},removeItem:function(e){window.localStorage.removeItem(e)}}),e._localStorage||(e._debug("You are running a browser with no localStorage or userData support. Logging in from one tab will not cause another tab to be logged in."),e._localStorage={_data:{},setItem:function(e,t){this._data[e]=t},removeItem:function(e){delete this._data[e]},getItem:function(e){var t=this._data[e];return void 0===t?null:t}})}).call(this),"undefined"==typeof Package&&(Package={}),Package.localstorage={}}();
|
||
|
||
!function(){var n=Package.meteor.Meteor,t,e;(function(){t={},t.active=!1,t.currentComputation=null,t._computations={};var e=function(n){t.currentComputation=n,t.active=!!n},o=function(){return"undefined"!=typeof n?n._debug:"undefined"!=typeof console&&console.error?function(){console.error.apply(console,arguments)}:function(){}},r=function(t){"undefined"!=typeof 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(0>i||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"undefined"==typeof n||n.isClient?t:function(){var e=arguments;n._noYieldsAllowed(function(){t.apply(null,e)})}},u=1,c=[],s=!1,p=!1,f=!1,l=!1,d=[],h=function(){s||("undefined"!=typeof n?n._setImmediate(t._runFlush):setTimeout(t._runFlush,0),s=!0)},v=!1;t.Computation=function(n,e,o){if(!v)throw new Error("Tracker.Computation constructor is private; use Tracker.autorun");v=!1;var r=this;r.stopped=!1,r.invalidated=!1,r.firstRun=!0,r._id=u++,r._onInvalidateCallbacks=[],r._onStopCallbacks=[],r._parent=e,r._func=n,r._onError=o,r._recomputing=!1,t._computations[r._id]=r;var i=!0;try{r._compute(),i=!1}finally{r.firstRun=!1,i&&r.stop()}},t.Computation.prototype.onInvalidate=function(n){var e=this;if("function"!=typeof n)throw new Error("onInvalidate requires a function");e.invalidated?t.nonreactive(function(){a(n)(e)}):e._onInvalidateCallbacks.push(n)},t.Computation.prototype.onStop=function(n){var e=this;if("function"!=typeof n)throw new Error("onStop requires a function");e.stopped?t.nonreactive(function(){a(n)(e)}):e._onStopCallbacks.push(n)},t.Computation.prototype.invalidate=function(){var n=this;if(!n.invalidated){n._recomputing||n.stopped||(h(),c.push(this)),n.invalidated=!0;for(var e=0,o;o=n._onInvalidateCallbacks[e];e++)t.nonreactive(function(){a(o)(n)});n._onInvalidateCallbacks=[]}},t.Computation.prototype.stop=function(){var n=this;if(!n.stopped){n.stopped=!0,n.invalidate(),delete t._computations[n._id];for(var e=0,o;o=n._onStopCallbacks[e];e++)t.nonreactive(function(){a(o)(n)});n._onStopCallbacks=[]}},t.Computation.prototype._compute=function(){var n=this;n.invalidated=!1;var o=t.currentComputation;e(n);var r=f;f=!0;try{a(n._func)(n)}finally{e(o),f=r}},t.Computation.prototype._needsRecompute=function(){var n=this;return n.invalidated&&!n.stopped},t.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}},t.Dependency=function(){this._dependentsById={}},t.Dependency.prototype.depend=function(n){if(!n){if(!t.active)return!1;n=t.currentComputation}var e=this,o=n._id;return o in e._dependentsById?!1:(e._dependentsById[o]=n,n.onInvalidate(function(){delete e._dependentsById[o]}),!0)},t.Dependency.prototype.changed=function(){var n=this;for(var t in n._dependentsById)n._dependentsById[t].invalidate()},t.Dependency.prototype.hasDependents=function(){var n=this;for(var t in n._dependentsById)return!0;return!1},t.flush=function(n){t._runFlush({finishSynchronously:!0,throwFirstError:n&&n._throwFirstError})},t._runFlush=function(n){if(p)throw new Error("Can't call Tracker.flush while flushing");if(f)throw new Error("Can't flush inside Tracker.autorun");n=n||{},p=!0,s=!0,l=!!n.throwFirstError;var e=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&&++e>1e3)return void(o=!0)}if(d.length){var a=d.shift();try{a()}catch(u){i("afterFlush",u)}}}o=!0}finally{if(o||(p=!1,t._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)}}},t.autorun=function(n,e){if("function"!=typeof n)throw new Error("Tracker.autorun requires a function argument");e=e||{},v=!0;var o=new t.Computation(n,t.currentComputation,e.onError);return t.active&&t.onInvalidate(function(){o.stop()}),o},t.nonreactive=function(n){var o=t.currentComputation;e(null);try{return n()}finally{e(o)}},t.onInvalidate=function(n){if(!t.active)throw new Error("Tracker.onInvalidate requires a currentComputation");t.currentComputation.onInvalidate(n)},t.afterFlush=function(n){d.push(n),h()}}).call(this),function(){n.flush=t.flush,n.autorun=t.autorun,n.autosubscribe=t.autorun,t.depend=function(n){return n.depend()},e=t}.call(this),"undefined"==typeof Package&&(Package={}),Package.tracker={Tracker:t,Deps:e}}();
|
||
|
||
!function(){var n=Package.meteor.Meteor,e=Package.underscore._,t;(function(){t=function(n){var t=this;if(n=n||{},t.nextCallbackId=0,t.callbacks={},t.bindEnvironment=!0,n.bindEnvironment===!1&&(t.bindEnvironment=!1),n.exceptionHandler)t.exceptionHandler=n.exceptionHandler;else if(n.debugPrintExceptions){if(!e.isString(n.debugPrintExceptions))throw new Error("Hook option debugPrintExceptions should be a string");t.exceptionHandler=n.debugPrintExceptions}},e.extend(t.prototype,{register:function(e){var t=this,r=t.exceptionHandler||function(n){throw n};e=t.bindEnvironment?n.bindEnvironment(e,r):a(e,r);var i=t.nextCallbackId++;return t.callbacks[i]=e,{stop:function(){delete t.callbacks[i]}}},each:function(t){var a=this;n._nodeCodeMustBeInFiber();for(var r=e.keys(a.callbacks),i=0;i<r.length;++i){var c=r[i];if(e.has(a.callbacks,c)){var o=a.callbacks[c];if(!t(o))break}}}});var a=function(t,a,r){if(!a||"string"==typeof a){var i=a||"callback of async function";a=function(e){n._debug("Exception in "+i+":",e&&e.stack||e)}}return function(){var n=e.toArray(arguments),i=function(){try{var e=t.apply(r,n)}catch(i){a(i)}return e};return i()}}}).call(this),"undefined"==typeof Package&&(Package={}),Package["callback-hook"]={Hook:t}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.underscore._,r=Package.random.Random,i;(function(){i=function(e){var r=this;t.extend(r,t.defaults(t.clone(e||{}),{baseTimeout:1e3,exponent:2.2,maxTimeout:3e5,minTimeout:10,minCount:2,fuzz:.5})),r.retryTimer=null},t.extend(i.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 i=Math.min(t.maxTimeout,t.baseTimeout*Math.pow(t.exponent,e));return i*=r.fraction()*t.fuzz+(1-t.fuzz/2)},retryLater:function(t,r){var i=this,n=i._timeout(t);return i.retryTimer&&clearTimeout(i.retryTimer),i.retryTimer=e.setTimeout(r,n),n}})}).call(this),"undefined"==typeof Package&&(Package={}),Package.retry={Retry:i}}();
|
||
|
||
!function(){var i=Package.meteor.Meteor,t=Package.underscore._,a=Package.ejson.EJSON,n;(function(){n=function(i,t){var a=this;a._map={},a._idStringify=i||JSON.stringify,a._idParse=t||JSON.parse},t.extend(n.prototype,{get:function(i){var t=this,a=t._idStringify(i);return t._map[a]},set:function(i,t){var a=this,n=a._idStringify(i);a._map[n]=t},remove:function(i){var t=this,a=t._idStringify(i);delete t._map[a]},has:function(i){var a=this,n=a._idStringify(i);return t.has(a._map,n)},empty:function(){var i=this;return t.isEmpty(i._map)},clear:function(){var i=this;i._map={}},forEach:function(i){for(var a=this,n=t.keys(a._map),e=0;e<n.length;e++){var r=i.call(null,a._map[n[e]],a._idParse(n[e]));if(r===!1)return}},size:function(){var i=this;return t.size(i._map)},setDefault:function(i,a){var n=this,e=n._idStringify(i);return t.has(n._map,e)?n._map[e]:(n._map[e]=a,a)},clone:function(){var i=this,t=new n(i._idStringify,i._idParse);return i.forEach(function(i,n){t.set(n,a.clone(i))}),t}})}).call(this),"undefined"==typeof Package&&(Package={}),Package["id-map"]={IdMap:n}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.check.check,a=Package.check.Match,n=Package.random.Random,r=Package.ejson.EJSON,i=Package.underscore._,o=Package.tracker.Tracker,s=Package.tracker.Deps,c=Package.retry.Retry,l;(function(){l={}}).call(this),function(){l.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},i.extend(l.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(i.bind(t._heartbeatIntervalFired,t),t.heartbeatInterval)},_startHeartbeatTimeoutTimer:function(){var t=this;t._heartbeatTimeoutHandle=e.setTimeout(i.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(){l.SUPPORTED_DDP_VERSIONS=["1","pre2","pre1"],l.parseDDP=function(t){try{var a=JSON.parse(t)}catch(n){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):(i.has(a,"cleared")&&(i.has(a,"fields")||(a.fields={}),i.each(a.cleared,function(e){a.fields[e]=void 0}),delete a.cleared),i.each(["fields","params","result"],function(e){i.has(a,e)&&(a[e]=r._adjustTypesFromJSONValue(a[e]))}),a)},l.stringifyDDP=function(e){var t=r.clone(e);if(i.has(e,"fields")){var a=[];i.each(e.fields,function(e,n){void 0===e&&(a.push(n),delete t.fields[n])}),i.isEmpty(a)||(t.cleared=a),i.isEmpty(t.fields)&&delete t.fields}if(i.each(["fields","params","result"],function(e){i.has(t,e)&&(t[e]=r._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(){l.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},i.extend(l.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 n.hexString(20)}l.RandomStream=function(t){var a=this;this.seed=[].concat(t.seed||e()),this.sequences={}},l.RandomStream.get=function(e,t){if(t||(t="default"),!e)return n.insecure;var a=e.randomStream;return a||(e.randomStream=a=new l.RandomStream({seed:e.randomSeed})),a._sequence(t)},l.makeRpcSeed=function(e,t){var a=l.RandomStream.get(e,"/rpc/"+t);return a.hexString(20)},i.extend(l.RandomStream.prototype,{_sequence:function(e){var t=this,a=t.sequences[e]||null;if(null===a){for(var r=t.seed.concat(e),o=0;o<r.length;o++)i.isFunction(r[o])&&(r[o]=r[o]());t.sequences[e]=a=n.createWithSeeds.apply(null,r)}return a}})}.call(this),"undefined"==typeof Package&&(Package={}),Package["ddp-common"]={DDPCommon:l}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,t=Package.underscore._,e;(function(){e={};var o="Meteor_Reload",r={},n,i=null;try{i=window.sessionStorage,i?(i.setItem("__dummy__","1"),i.removeItem("__dummy__")):i=null}catch(l){i=null}e._getData=function(){return i&&i.getItem(o)},i&&(n=e._getData(),i.removeItem(o)),n||(n="{}");var d={};try{d=JSON.parse(n),"object"!=typeof d&&(a._debug("Got bad data on reload. Ignoring."),d={})}catch(c){a._debug("Got invalid JSON on reload. Ignoring.")}d.reload&&"object"==typeof d.data&&(r=d.data);var g=[];e._onMigrate=function(a,t){t||(t=a,a=void 0),g.push({name:a,callback:t})},e._migrationData=function(a){return r[a]};var u=function(a,e){a=a||function(){},e=e||{};for(var o={},r=t.clone(g),n=!0;r.length;){var i=r.shift(),l=i.callback(a,e);l[0]||(n=!1),l.length>1&&i.name&&(o[i.name]=l[1])}return n||e.immediateMigration?o:null};e._migrate=function(t,e){var r=u(t,e);if(null===r)return!1;try{var n=JSON.stringify({data:r,reload:!0})}catch(l){throw a._debug("Couldn't serialize data for migration",r),l}if(i)try{i.setItem(o,n)}catch(l){a._debug("Couldn't save data for migration to sessionStorage",l)}else a._debug("Browser does not support sessionStorage. Not saving migration state.");return!0},e._withFreshProvidersForTest=function(a){var e=t.clone(g);g=[];try{a()}finally{g=e}};var s=!1;e._reload=function(a){if(a=a||{},!s){s=!0;var o=function(){t.defer(function(){e._migrate(o,a)&&window.location.reload()})};o()}}}).call(this),function(){a._reload={onMigrate:e._onMigrate,migrationData:e._migrationData,reload:e._reload}}.call(this),"undefined"==typeof Package&&(Package={}),Package.reload={Reload:e}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,d=Package.underscore._,n=Package.ejson.EJSON,i;(function(){i={},i.diffQueryChanges=function(e,d,n,a,r){e?i.diffQueryOrderedChanges(d,n,a,r):i.diffQueryUnorderedChanges(d,n,a,r)},i.diffQueryUnorderedChanges=function(e,a,r,o){o=o||{};var f=o.projectionFn||n.clone;if(r.movedBefore)throw new Error("_diffQueryUnordered called with a movedBefore observer!");a.forEach(function(a,o){var c=e.get(o);if(c){if(r.changed&&!n.equals(c,a)){var t=f(a),u=f(c),h=i.makeChangedFields(t,u);d.isEmpty(h)||r.changed(o,h)}}else if(r.added){var l=f(a);delete l._id,r.added(a._id,l)}}),r.removed&&e.forEach(function(e,d){a.has(d)||r.removed(d)})},i.diffQueryOrderedChanges=function(a,r,o,f){f=f||{};var c=f.projectionFn||n.clone,t={};d.each(r,function(d){t[d._id]&&e._debug("Duplicate _id in new_results"),t[d._id]=!0});var u={};d.each(a,function(d,n){d._id in u&&e._debug("Duplicate _id in old_results"),u[d._id]=n});for(var h=[],l=0,s=r.length,g=new Array(s),_=new Array(s),v=function(e){return u[r[e]._id]},y=0;s>y;y++)if(void 0!==u[r[y]._id]){for(var m=l;m>0&&!(v(g[m-1])<v(y));)m--;_[y]=0===m?-1:g[m-1],g[m]=y,m+1>l&&(l=m+1)}for(var p=0===l?-1:g[l-1];p>=0;)h.push(p),p=_[p];h.reverse(),h.push(r.length),d.each(a,function(e){t[e._id]||o.removed&&o.removed(e._id)});var O=0;d.each(h,function(e){for(var n=r[e]?r[e]._id:null,f,t,h,l,s,g=O;e>g;g++)t=r[g],d.has(u,t._id)?(f=a[u[t._id]],l=c(t),s=c(f),h=i.makeChangedFields(l,s),d.isEmpty(h)||o.changed&&o.changed(t._id,h),o.movedBefore&&o.movedBefore(t._id,n)):(h=c(t),delete h._id,o.addedBefore&&o.addedBefore(t._id,h,n),o.added&&o.added(t._id,h));n&&(t=r[e],f=a[u[t._id]],l=c(t),s=c(f),h=i.makeChangedFields(l,s),d.isEmpty(h)||o.changed&&o.changed(t._id,h)),O=e+1})},i.diffObjects=function(e,n,i){d.each(e,function(e,a){d.has(n,a)?i.both&&i.both(a,e,n[a]):i.leftOnly&&i.leftOnly(a,e)}),i.rightOnly&&d.each(n,function(n,a){d.has(e,a)||i.rightOnly(a,n)})},i.makeChangedFields=function(e,d){var a={};return i.diffObjects(d,e,{leftOnly:function(e,d){a[e]=void 0},rightOnly:function(e,d){a[e]=d},both:function(e,d,i){n.equals(d,i)||(a[e]=i)}}),a},i.applyChanges=function(e,n){d.each(n,function(d,n){void 0===d?delete e[n]:e[n]=d})}}).call(this),"undefined"==typeof Package&&(Package={}),Package["diff-sequence"]={DiffSequence:i}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,e=Package.ejson.EJSON,r=Package["id-map"].IdMap,o=Package.random.Random,n;(function(){n={},n._looksLikeObjectID=function(t){return 24===t.length&&t.match(/^[0-9a-f]*$/)},n.ObjectID=function(t){var e=this;if(t){if(t=t.toLowerCase(),!n._looksLikeObjectID(t))throw new Error("Invalid hexadecimal string for creating an ObjectID");e._str=t}else e._str=o.hexString(24)},n.ObjectID.prototype.toString=function(){var t=this;return'ObjectID("'+t._str+'")'},n.ObjectID.prototype.equals=function(t){var e=this;return t instanceof n.ObjectID&&e.valueOf()===t.valueOf()},n.ObjectID.prototype.clone=function(){var t=this;return new n.ObjectID(t._str)},n.ObjectID.prototype.typeName=function(){return"oid"},n.ObjectID.prototype.getTimestamp=function(){var t=this;return parseInt(t._str.substr(0,8),16)},n.ObjectID.prototype.valueOf=n.ObjectID.prototype.toJSONValue=n.ObjectID.prototype.toHexString=function(){return this._str},e.addType("oid",function(t){return new n.ObjectID(t)}),n.idStringify=function(t){if(t instanceof n.ObjectID)return t.valueOf();if("string"==typeof t)return""===t?t:"-"===t.substr(0,1)||"~"===t.substr(0,1)||n._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)},n.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)):n._looksLikeObjectID(t)?new n.ObjectID(t):t}}).call(this),"undefined"==typeof Package&&(Package={}),Package["mongo-id"]={MongoID:n}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.check.check,n=Package.check.Match,r=Package.random.Random,o=Package.ejson.EJSON,i=Package.underscore._,s=Package.tracker.Tracker,a=Package.tracker.Deps,u=Package.retry.Retry,c=Package["id-map"].IdMap,d=Package["ddp-common"].DDPCommon,l=Package["diff-sequence"].DiffSequence,f=Package["mongo-id"].MongoID,p,_,h,v,m,g,b;(function(){p={},_={}}).call(this),function(){h=function(){var e=this;c.call(e,f.idStringify,f.idParse)},e._inherits(h,c)}.call(this),function(){v=function(){var e=document,t=window,n={},r=function(){};r.prototype.addEventListener=function(e,t){this._listeners||(this._listeners={}),e in this._listeners||(this._listeners[e]=[]);var r=this._listeners[e];-1===n.arrIndexOf(r,t)&&r.push(t)},r.prototype.removeEventListener=function(e,t){if(this._listeners&&e in this._listeners){var r=this._listeners[e],o=n.arrIndexOf(r,t);return-1!==o?void(r.length>1?this._listeners[e]=r.slice(0,o).concat(r.slice(o+1)):delete this._listeners[e]):void 0}},r.prototype.dispatchEvent=function(e){var t=e.type,n=Array.prototype.slice.call(arguments,0);if(this["on"+t]&&this["on"+t].apply(this,n),this._listeners&&t in this._listeners)for(var r=0;r<this._listeners[t].length;r++)this._listeners[t][r].apply(this,n)};var o=function(e,t){if(this.type=e,"undefined"!=typeof t)for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n])};o.prototype.toString=function(){var e=[];for(var t in this)if(this.hasOwnProperty(t)){var n=this[t];"function"==typeof n&&(n="[function]"),e.push(t+"="+n)}return"SimpleEvent("+e.join(", ")+")"};var i=function(e){var t=this;t._events=e||[],t._listeners={}};i.prototype.emit=function(e){var t=this;if(t._verifyType(e),!t._nuked){var n=Array.prototype.slice.call(arguments,1);if(t["on"+e]&&t["on"+e].apply(t,n),e in t._listeners)for(var r=0;r<t._listeners[e].length;r++)t._listeners[e][r].apply(t,n)}},i.prototype.on=function(e,t){var n=this;n._verifyType(e),n._nuked||(e in n._listeners||(n._listeners[e]=[]),n._listeners[e].push(t))},i.prototype._verifyType=function(e){var t=this;-1===n.arrIndexOf(t._events,e)&&n.log("Event "+JSON.stringify(e)+" not listed "+JSON.stringify(t._events)+" in "+t)},i.prototype.nuke=function(){var e=this;e._nuked=!0;for(var t=0;t<e._events.length;t++)delete e[e._events[t]];e._listeners={}};var s="abcdefghijklmnopqrstuvwxyz0123456789_";n.random_string=function(e,t){t=t||s.length;var n,r=[];for(n=0;e>n;n++)r.push(s.substr(Math.floor(Math.random()*t),1));return r.join("")},n.random_number=function(e){return Math.floor(Math.random()*e)},n.random_number_string=function(e){var t=(""+(e-1)).length,r=Array(t+1).join("0");return(r+n.random_number(e)).slice(-t)},n.getOrigin=function(e){e+="/";var t=e.split("/").slice(0,3);return t.join("/")},n.isSameOriginUrl=function(e,n){return n||(n=t.location.href),e.split("/").slice(0,3).join("/")===n.split("/").slice(0,3).join("/")},n.isSameOriginScheme=function(e,n){return n||(n=t.location.href),e.split(":")[0]===n.split(":")[0]},n.getParentDomain=function(e){if(/^[0-9.]*$/.test(e))return e;if(/^\[/.test(e))return e;if(!/[.]/.test(e))return e;var t=e.split(".").slice(1);return t.join(".")},n.objectExtend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e};var a="_jp";n.polluteGlobalNamespace=function(){a in t||(t[a]={})},n.closeFrame=function(e,t){return"c"+JSON.stringify([e,t])},n.userSetCode=function(e){return 1e3===e||e>=3e3&&4999>=e},n.countRTO=function(e){var t;return t=e>100?3*e:e+200},n.log=function(){t.console&&console.log&&console.log.apply&&console.log.apply(console,arguments)},n.bind=function(e,t){return e.bind?e.bind(t):function(){return e.apply(t,arguments)}},n.flatUrl=function(e){return-1===e.indexOf("?")&&-1===e.indexOf("#")},n.amendUrl=function(t,r){var o;if(void 0===r)o=e.location;else{var i=/^([a-z0-9.+-]+:)/i.exec(r);if(i){var s=i[0].toLowerCase(),a=r.substring(s.length),u=/[a-z0-9\.-]+(:[0-9]+)?/.exec(a);if(u)var c=u[0]}if(!s||!c)throw new Error("relativeTo must be an absolute url");o={protocol:s,host:c}}if(!t)throw new Error("Wrong url for SockJS");if(!n.flatUrl(t))throw new Error("Only basic urls are supported in SockJS");0===t.indexOf("//")&&(t=o.protocol+t),0===t.indexOf("/")&&(t=o.protocol+"//"+o.host+t),t=t.replace(/[/]+$/,"");var d=t.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("/")},n.arrIndexOf=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},n.arrSkip=function(e,t){var r=n.arrIndexOf(e,t);if(-1===r)return e.slice();var o=e.slice(0,r);return o.concat(e.slice(r+1))},n.isArray=Array.isArray||function(e){return{}.toString.call(e).indexOf("Array")>=0},n.delay=function(e,t){return"function"==typeof e&&(t=e,e=0),setTimeout(t,e)};var u=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c={"\x00":"\\u0000","":"\\u0001","":"\\u0002","":"\\u0003","":"\\u0004","":"\\u0005","":"\\u0006","":"\\u0007","\b":"\\b"," ":"\\t","\n":"\\n","":"\\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","<22>":"\\ufffd","":"\\ufffe","":"\\uffff"},d=/[\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,l,f=JSON&&JSON.stringify||function(e){return u.lastIndex=0,u.test(e)&&(e=e.replace(u,function(e){return c[e]})),'"'+e+'"'},p=function(e){var t,n={},r=[];for(t=0;65536>t;t++)r.push(String.fromCharCode(t));return e.lastIndex=0,r.join("").replace(e,function(e){return n[e]="\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4),""}),e.lastIndex=0,n};n.quote=function(e){var t=f(e);return d.lastIndex=0,d.test(t)?(l||(l=p(d)),t.replace(d,function(e){return l[e]})):t};var _=["websocket","xdr-streaming","xhr-streaming","iframe-eventsource","iframe-htmlfile","xdr-polling","xhr-polling","iframe-xhr-polling","jsonp-polling"];n.probeProtocols=function(){for(var e={},t=0;t<_.length;t++){var n=_[t];e[n]=C[n]&&C[n].enabled()}return e},n.detectProtocols=function(e,t,n){var r={},o=[];t||(t=_);for(var i=0;i<t.length;i++){var s=t[i];r[s]=e[s]}var a=function(e){var t=e.shift();r[t]?o.push(t):e.length>0&&a(e)};return n.websocket!==!1&&a(["websocket"]),r["xhr-streaming"]&&!n.null_origin?o.push("xhr-streaming"):!r["xdr-streaming"]||n.cookie_needed||n.null_origin?a(["iframe-eventsource","iframe-htmlfile"]):o.push("xdr-streaming"),r["xhr-polling"]&&!n.null_origin?o.push("xhr-polling"):!r["xdr-polling"]||n.cookie_needed||n.null_origin?a(["iframe-xhr-polling","jsonp-polling"]):o.push("xdr-polling"),o};var h="_sockjs_global";n.createHook=function(){var e="a"+n.random_string(8);if(!(h in t)){var r={};t[h]=function(e){return e in r||(r[e]={id:e,del:function(){delete r[e]}}),r[e]}}return t[h](e)},n.attachMessage=function(e){n.attachEvent("message",e)},n.attachEvent=function(n,r){"undefined"!=typeof t.addEventListener?t.addEventListener(n,r,!1):(e.attachEvent("on"+n,r),t.attachEvent("on"+n,r))},n.detachMessage=function(e){n.detachEvent("message",e)},n.detachEvent=function(n,r){"undefined"!=typeof t.addEventListener?t.removeEventListener(n,r,!1):(e.detachEvent("on"+n,r),t.detachEvent("on"+n,r))};var v={},m=!1,g=function(){for(var e in v)v[e](),delete v[e]},b=function(){m||(m=!0,g())};n.attachEvent("unload",b),n.unload_add=function(e){var t=n.random_string(8);return v[t]=e,m&&n.delay(g),t},n.unload_del=function(e){e in v&&delete v[e]},n.createIframe=function(t,r){var o=e.createElement("iframe"),i,s,a=function(){clearTimeout(i);try{o.onload=null}catch(e){}o.onerror=null},u=function(){o&&(a(),setTimeout(function(){o&&o.parentNode.removeChild(o),o=null},0),n.unload_del(s))},c=function(e){o&&(u(),r(e))},d=function(e,t){try{o&&o.contentWindow&&o.contentWindow.postMessage(e,t)}catch(n){}};return o.src=t,o.style.display="none",o.style.position="absolute",o.onerror=function(){c("onerror")},o.onload=function(){clearTimeout(i),i=setTimeout(function(){c("onload timeout")},2e3)},e.body.appendChild(o),i=setTimeout(function(){c("timeout")},15e3),s=n.unload_add(u),{post:d,cleanup:u,loaded:a}},n.createHtmlfile=function(e,r){var o=new ActiveXObject("htmlfile"),i,s,u,c=function(){clearTimeout(i)},d=function(){o&&(c(),n.unload_del(s),u.parentNode.removeChild(u),u=o=null,CollectGarbage())},l=function(e){o&&(d(),r(e))},f=function(e,t){try{u&&u.contentWindow&&u.contentWindow.postMessage(e,t)}catch(n){}};o.open(),o.write('<html><script>document.domain="'+document.domain+'";</script></html>'),o.close(),o.parentWindow[a]=t[a];var p=o.createElement("div");return o.body.appendChild(p),u=o.createElement("iframe"),p.appendChild(u),u.src=e,i=setTimeout(function(){l("timeout")},15e3),s=n.unload_add(d),{post:f,cleanup:d,loaded:c}};var y=function(){};y.prototype=new i(["chunk","finish"]),y.prototype._start=function(e,r,o,i){var s=this;try{s.xhr=new XMLHttpRequest}catch(a){}if(!s.xhr)try{s.xhr=new t.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}(t.ActiveXObject||t.XDomainRequest)&&(r+=(-1===r.indexOf("?")?"?":"&")+"t="+ +new Date),s.unload_ref=n.unload_add(function(){s._cleanup(!0)});try{s.xhr.open(e,r,!0)}catch(u){return s.emit("finish",0,""),void s._cleanup()}if(i&&i.no_credentials||(s.xhr.withCredentials="true"),i&&i.headers)for(var c in i.headers)s.xhr.setRequestHeader(c,i.headers[c]);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:var t=e.status;1223===t&&(t=204),s.emit("finish",t,e.responseText),s._cleanup(!1)}}},s.xhr.send(o)},y.prototype._cleanup=function(e){var t=this;if(t.xhr){if(n.unload_del(t.unload_ref),t.xhr.onreadystatechange=function(){},e)try{t.xhr.abort()}catch(r){}t.unload_ref=t.xhr=null}},y.prototype.close=function(){var e=this;e.nuke(),e._cleanup(!0)};var w=n.XHRCorsObject=function(){var e=this,t=arguments;n.delay(function(){e._start.apply(e,t)})};w.prototype=new y;var S=n.XHRLocalObject=function(e,t,r){var o=this;n.delay(function(){o._start(e,t,r,{no_credentials:!0})})};S.prototype=new y;var k=n.XDRObject=function(e,t,r){var o=this;n.delay(function(){o._start(e,t,r)})};k.prototype=new i(["chunk","finish"]),k.prototype._start=function(e,t,r){var o=this,i=new XDomainRequest;t+=(-1===t.indexOf("?")?"?":"&")+"t="+ +new Date;var s=i.ontimeout=i.onerror=function(){o.emit("finish",0,""),o._cleanup(!1)};i.onprogress=function(){o.emit("chunk",200,i.responseText)},i.onload=function(){o.emit("finish",200,i.responseText),o._cleanup(!1)},o.xdr=i,o.unload_ref=n.unload_add(function(){o._cleanup(!0)});try{o.xdr.open(e,t),o.xdr.send(r)}catch(a){s()}},k.prototype._cleanup=function(e){var t=this;if(t.xdr){if(n.unload_del(t.unload_ref),t.xdr.ontimeout=t.xdr.onerror=t.xdr.onprogress=t.xdr.onload=null,e)try{t.xdr.abort()}catch(r){}t.unload_ref=t.xdr=null}},k.prototype.close=function(){var e=this;e.nuke(),e._cleanup(!0)},n.isXHRCorsCapable=function(){return t.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest?1:t.XDomainRequest&&e.domain?2:A.enabled()?3:4};var C=function(e,t,r){if(!(this instanceof C))return new C(e,t,r);var o=this,i;o._options={devel:!1,debug:!1,protocols_whitelist:[],info:void 0,rtt:void 0},r&&n.objectExtend(o._options,r),o._base_url=n.amendUrl(e),o._server=o._options.server||n.random_number_string(1e3),o._options.protocols_whitelist&&o._options.protocols_whitelist.length?i=o._options.protocols_whitelist:(i="string"==typeof t&&t.length>0?[t]:n.isArray(t)?t:null,i&&o._debug('Deprecated API: Use "protocols_whitelist" option instead of supplying protocol list as a second parameter to SockJS constructor.')),o._protocols=[],o.protocol=null,o.readyState=C.CONNECTING,o._ir=V(o._base_url),o._ir.onfinish=function(e,t){o._ir=null,e?(o._options.info&&(e=n.objectExtend(e,o._options.info)),o._options.rtt&&(t=o._options.rtt),o._applyInfo(e,t,i),o._didClose()):o._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&&n.log.apply(n,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 o("open"))):e._didClose(1006,"Server lost session")},C.prototype._dispatchMessage=function(e){var t=this;t.readyState===C.OPEN&&t.dispatchEvent(new o("message",{data:e}))},C.prototype._dispatchHeartbeat=function(e){var t=this;t.readyState===C.OPEN&&t.dispatchEvent(new o("heartbeat",{}))},C.prototype._didClose=function(e,t,r){var i=this;if(i.readyState!==C.CONNECTING&&i.readyState!==C.OPEN&&i.readyState!==C.CLOSING)throw new Error("INVALID_STATE_ERR");i._ir&&(i._ir.nuke(),i._ir=null),i._transport&&(i._transport.doCleanup(),i._transport=null);var s=new o("close",{code:e,reason:t,wasClean:n.userSetCode(e)});if(!n.userSetCode(e)&&i.readyState===C.CONNECTING&&!r){if(i._try_next_protocol(s))return;s=new o("close",{code:2e3,reason:"All transports failed",wasClean:!1,last_event:s})}i.readyState=C.CLOSED,n.delay(function(){i.dispatchEvent(s)})},C.prototype._didMessage=function(e){var t=this,n=e.slice(0,1);switch(n){case"o":t._dispatchOpen();break;case"a":for(var r=JSON.parse(e.slice(1)||"[]"),o=0;o<r.length;o++)t._dispatchMessage(r[o]);break;case"m":var r=JSON.parse(e.slice(1)||"null");t._dispatchMessage(r);break;case"c":var r=JSON.parse(e.slice(1)||"[]");t._didClose(r[0],r[1]);break;case"h":t._dispatchHeartbeat()}},C.prototype._try_next_protocol=function(t){var r=this;for(r.protocol&&(r._debug("Closed transport:",r.protocol,""+t),r.protocol=null),r._transport_tref&&(clearTimeout(r._transport_tref),r._transport_tref=null);;){var o=r.protocol=r._protocols.shift();if(!o)return!1;if(C[o]&&C[o].need_body===!0&&(!e.body||"undefined"!=typeof e.readyState&&"complete"!==e.readyState))return r._protocols.unshift(o),r.protocol="waiting-for-load",n.attachEvent("load",function(){r._try_next_protocol()}),!0;if(C[o]&&C[o].enabled(r._options)){var i=C[o].roundTrips||1,s=(r._options.rto||0)*i||5e3;r._transport_tref=n.delay(s,function(){r.readyState===C.CONNECTING&&r._didClose(2007,"Transport timeouted")});var a=n.random_string(8),u=r._base_url+"/"+r._server+"/"+a;return r._debug("Opening transport:",o," url:"+u," RTO:"+r._options.rto),r._transport=new C[o](r,u,r._base_url),!0}r._debug("Skipping transport:",o)}},C.prototype.close=function(e,t){var r=this;if(e&&!n.userSetCode(e))throw new Error("INVALID_ACCESS_ERR");return r.readyState!==C.CONNECTING&&r.readyState!==C.OPEN?!1:(r.readyState=C.CLOSING,r._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(n.quote(""+e)),!0},C.prototype._applyInfo=function(t,r,o){var i=this;i._options.info=t,i._options.rtt=r,i._options.rto=n.countRTO(r),i._options.info.null_origin=!e.domain,t.base_url&&(i._base_url=n.amendUrl(t.base_url,i._base_url));var s=n.probeProtocols();i._protocols=n.detectProtocols(s,o,t),n.isSameOriginScheme(i._base_url)||2!==n.isXHRCorsCapable()||(i._protocols=["jsonp-polling"])};var E=C.websocket=function(e,r){var o=this,i=r+"/websocket";i="https"===i.slice(0,5)?"wss"+i.slice(5):"ws"+i.slice(4),o.ri=e,o.url=i;var s=t.WebSocket||t.MozWebSocket;o.ws=new s(o.url),o.ws.onmessage=function(e){o.ri._didMessage(e.data)},o.unload_ref=n.unload_add(function(){o.ws.close()}),o.ws.onclose=function(){o.ri._didMessage(n.closeFrame(1006,"WebSocket connection broken"))}};E.prototype.doSend=function(e){this.ws.send("["+e+"]")},E.prototype.doCleanup=function(){var e=this,t=e.ws;t&&(t.onmessage=t.onclose=null,t.close(),n.unload_del(e.unload_ref),e.unload_ref=e.ri=e.ws=null)},E.enabled=function(){return!(!t.WebSocket&&!t.MozWebSocket)},E.roundTrips=2;var O=function(){};O.prototype.send_constructor=function(e){var t=this;t.send_buffer=[],t.sender=e},O.prototype.doSend=function(e){var t=this;t.send_buffer.push(e),t.send_stop||t.send_schedule()},O.prototype.send_schedule_wait=function(){var e=this,t;e.send_stop=function(){e.send_stop=null,clearTimeout(t)},t=n.delay(25,function(){e.send_stop=null,e.send_schedule()})},O.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,t===!1?e.ri._didClose(1006,"Sending error "+n):e.send_schedule_wait()}),e.send_buffer=[]}},O.prototype.send_destructor=function(){var e=this;e._send_stop&&e._send_stop(),e._send_stop=null};var T=function(t,r,o){var i=this;if(!("_send_form"in i)){var s=i._send_form=e.createElement("form"),a=i._send_area=e.createElement("textarea");a.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"+n.random_string(8);s.target=u,s.action=t+"/jsonp_send?i="+u;var c;try{c=e.createElement('<iframe name="'+u+'">')}catch(d){c=e.createElement("iframe"),c.name=u}c.id=u,s.appendChild(c),c.style.display="none";try{a.value=r}catch(l){n.log("Your browser is seriously broken. Go home! "+l.message)}s.submit();var f=function(e){c.onerror&&(c.onreadystatechange=c.onerror=c.onload=null,n.delay(500,function(){c.parentNode.removeChild(c),c=null}),a.value="",o(!0))};return c.onerror=c.onload=f,c.onreadystatechange=function(e){"complete"==c.readyState&&f()},f},D=function(e){return function(t,n,r){var o=new e("POST",t+"/xhr_send",n);return o.onfinish=function(e,t){r(200===e||204===e,"http status "+e)},function(e){r(!1,e)}}},x=function(t,r){var o,i=e.createElement("script"),s,a=function(e){s&&(s.parentNode.removeChild(s),s=null),i&&(clearTimeout(o),i.parentNode.removeChild(i),i.onreadystatechange=i.onerror=i.onload=i.onclick=null,i=null,r(e),r=null)},u=!1,c=null;if(i.id="a"+n.random_string(8),i.src=t,i.type="text/javascript",i.charset="UTF-8",i.onerror=function(e){c||(c=setTimeout(function(){u||a(n.closeFrame(1006,"JSONP script loaded abnormally (onerror)"))},1e3))},i.onload=function(e){a(n.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(t){}}i&&a(n.closeFrame(1006,"JSONP script loaded abnormally (onreadystatechange)"))}},"undefined"==typeof i.async&&e.attachEvent)if(/opera/i.test(navigator.userAgent))s=e.createElement("script"),s.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(d){}i.async=!0}"undefined"!=typeof i.async&&(i.async=!0),o=setTimeout(function(){a(n.closeFrame(1006,"JSONP script loaded abnormally (timeout)"))},35e3);var l=e.getElementsByTagName("head")[0];return l.insertBefore(i,l.firstChild),s&&l.insertBefore(s,l.firstChild),a},M=C["jsonp-polling"]=function(e,t){n.polluteGlobalNamespace();var r=this;r.ri=e,r.trans_url=t,r.send_constructor(T),r._schedule_recv()};M.prototype=new O,M.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=R(e.trans_url+"/jsonp",x,t)},M.enabled=function(){return!0},M.need_body=!0,M.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 R=function(e,r,o){var i="a"+n.random_string(6),s=e+"?c="+escape(a+"."+i),u=0,c=function(e){switch(u){case 0:delete t[a][i],o(e);break;case 1:o(e),u=2;break;case 2:delete t[a][i]}},d=r(s,c);t[a][i]=d;var l=function(){t[a][i]&&(u=1,t[a][i](n.closeFrame(1e3,"JSONP user aborted read")))};return l},I=function(){};I.prototype=new O,I.prototype.run=function(e,t,n,r,o){var i=this;i.ri=e,i.trans_url=t,i.send_constructor(D(o)),i.poll=new K(e,r,t+n,o)},I.prototype.doCleanup=function(){var e=this;e.poll&&(e.poll.abort(),e.poll=null)};var P=C["xhr-streaming"]=function(e,t){this.run(e,t,"/xhr_streaming",re,n.XHRCorsObject)};P.prototype=new I,P.enabled=function(){return t.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest&&!/opera/i.test(navigator.userAgent)},P.roundTrips=2,P.need_body=!0;var N=C["xdr-streaming"]=function(e,t){this.run(e,t,"/xhr_streaming",re,n.XDRObject)};N.prototype=new I,N.enabled=function(){return!!t.XDomainRequest},N.roundTrips=2;var j=C["xhr-polling"]=function(e,t){this.run(e,t,"/xhr",re,n.XHRCorsObject)};j.prototype=new I,j.enabled=P.enabled,j.roundTrips=2;var U=C["xdr-polling"]=function(e,t){this.run(e,t,"/xhr",re,n.XDRObject)};U.prototype=new I,U.enabled=N.enabled,U.roundTrips=2;var A=function(){};A.prototype.i_constructor=function(e,t,r){var o=this;o.ri=e,o.origin=n.getOrigin(r),o.base_url=r,o.trans_url=t;var i=r+"/iframe.html";o.ri._options.devel&&(i+="?t="+ +new Date),o.window_id=n.random_string(8),i+="#"+o.window_id,o.iframeObj=n.createIframe(i,function(e){o.ri._didClose(1006,"Unable to load an iframe ("+e+")")}),o.onmessage_cb=n.bind(o.onmessage,o),n.attachMessage(o.onmessage_cb)},A.prototype.doCleanup=function(){var e=this;if(e.iframeObj){n.detachMessage(e.onmessage_cb);try{e.iframeObj.iframe.contentWindow&&e.postMessage("c")}catch(t){}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),r=e.data.slice(8,9),o=e.data.slice(9);if(n===t.window_id)switch(r){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(o)}}},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"==typeof t.postMessage)&&!e};var B,L=function(e,r){parent!==t?parent.postMessage(B+e+(r||""),"*"):n.log("Can't postMessage, no parent window.",e,r)},F=function(){};F.prototype._didClose=function(e,t){L("t",n.closeFrame(e,t))},F.prototype._didMessage=function(e){L("t",e)},F.prototype._doSend=function(e){this._transport.doSend(e)},F.prototype._doCleanup=function(){this._transport.doCleanup()},n.parent_origin=void 0,C.bootstrap_iframe=function(){var r;B=e.location.hash.slice(1);var o=function(e){if(e.source===parent&&("undefined"==typeof n.parent_origin&&(n.parent_origin=e.origin),e.origin===n.parent_origin)){var o=e.data.slice(0,8),i=e.data.slice(8,9),s=e.data.slice(9);if(o===B)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&&n.log('Incompatibile SockJS! Main site uses: "'+u+'", the iframe: "'+C.version+'".'),!n.flatUrl(d)||!n.flatUrl(l))return void n.log("Only basic urls are supported in SockJS");if(!n.isSameOriginUrl(d)||!n.isSameOriginUrl(l))return void n.log("Can't connect to different domain from within an iframe. ("+JSON.stringify([t.location.href,d,l])+")");r=new F,r._transport=new F[c](r,d,l);break;case"m":r._doSend(s);break;case"c":r&&r._doCleanup(),r=null}}};n.attachMessage(o),L("s")};var H=function(e,t){var r=this;n.delay(function(){r.doXhr(e,t)})};H.prototype=new i(["finish"]),H.prototype.doXhr=function(e,t){var r=this,o=(new Date).getTime(),i=new t("GET",e+"/info?cb="+n.random_string(10)),s=n.delay(8e3,function(){i.ontimeout()});i.onfinish=function(e,t){if(clearTimeout(s),s=null,200===e){var n=(new Date).getTime()-o,i=JSON.parse(t);"object"!=typeof i&&(i={}),r.emit("finish",i,n)}else r.emit("finish")},i.ontimeout=function(){i.close(),r.emit("finish")}};var X=function(t){var r=this,o=function(){var e=new A;e.protocol="w-iframe-info-receiver";var n=function(t){if("string"==typeof t&&"m"===t.substr(0,1)){var n=JSON.parse(t.substr(1)),o=n[0],i=n[1];r.emit("finish",o,i)}else r.emit("finish");e.doCleanup(),e=null},o={_options:{},_didClose:n,_didMessage:n};e.i_constructor(o,t,t)};e.body?o():n.attachEvent("load",o)};X.prototype=new i(["finish"]);var J=function(){var e=this;n.delay(function(){e.emit("finish",{},2e3)})};J.prototype=new i(["finish"]);var V=function(e){if(n.isSameOriginUrl(e))return new H(e,n.XHRLocalObject);switch(n.isXHRCorsCapable()){case 1:return new H(e,n.XHRLocalObject);case 2:return n.isSameOriginScheme(e)?new H(e,n.XDRObject):new J;case 3:return new X(e);default:return new J}},W=F["w-iframe-info-receiver"]=function(e,t,r){var o=new H(r,n.XHRLocalObject);o.onfinish=function(t,n){e._didMessage("m"+JSON.stringify([t,n])),e._didClose()}};W.prototype.doCleanup=function(){};var q=C["iframe-eventsource"]=function(){var e=this;e.protocol="w-iframe-eventsource",e.i_constructor.apply(e,arguments)};q.prototype=new A,q.enabled=function(){return"EventSource"in t&&A.enabled()},q.need_body=!0,q.roundTrips=3;var G=F["w-iframe-eventsource"]=function(e,t){this.run(e,t,"/eventsource",Z,n.XHRLocalObject)};G.prototype=new I;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;var z=F["w-iframe-xhr-polling"]=function(e,t){this.run(e,t,"/xhr",re,n.XHRLocalObject)};z.prototype=new I;var $=C["iframe-htmlfile"]=function(){var e=this;e.protocol="w-iframe-htmlfile",e.i_constructor.apply(e,arguments)};$.prototype=new A,$.enabled=function(){return A.enabled()},$.need_body=!0,$.roundTrips=3;var Y=F["w-iframe-htmlfile"]=function(e,t){this.run(e,t,"/htmlfile",ne,n.XHRLocalObject)};Y.prototype=new I;var K=function(e,t,n,r){var o=this;o.ri=e,o.Receiver=t,o.recv_url=n,o.AjaxObject=r,o._scheduleRecv()};K.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())}},K.prototype.abort=function(){var e=this;e.poll_is_closing=!0,e.poll&&e.poll.abort()};var Z=function(e){var t=this,r=new EventSource(e);r.onmessage=function(e){t.dispatchEvent(new o("message",{data:unescape(e.data)}))},t.es_close=r.onerror=function(e,i){var s=i?"user":2!==r.readyState?"network":"permanent";t.es_close=r.onmessage=r.onerror=null,r.close(),r=null,n.delay(200,function(){t.dispatchEvent(new o("close",{reason:s}))})}};Z.prototype=new r,Z.prototype.abort=function(){var e=this;e.es_close&&e.es_close({},!0)};var ee,te=function(){if(void 0===ee)if("ActiveXObject"in t)try{ee=!!new ActiveXObject("htmlfile")}catch(e){}else ee=!1;return ee},ne=function(e){var r=this;n.polluteGlobalNamespace(),r.id="a"+n.random_string(6,26),e+=(-1===e.indexOf("?")?"?":"&")+"c="+escape(a+"."+r.id);var i=te()?n.createHtmlfile:n.createIframe,s;t[a][r.id]={start:function(){s.loaded()},message:function(e){r.dispatchEvent(new o("message",{data:e}))},stop:function(){r.iframe_close({},"network")}},r.iframe_close=function(e,n){s.cleanup(),r.iframe_close=s=null,delete t[a][r.id],r.dispatchEvent(new o("close",{reason:n}))},s=i(e,function(e){r.iframe_close({},"permanent")})};ne.prototype=new r,ne.prototype.abort=function(){var e=this;e.iframe_close&&e.iframe_close({},"user")};var re=function(e,t){var n=this,r=0;n.xo=new t("POST",e,null),n.xo.onchunk=function(e,t){if(200===e)for(;;){var i=t.slice(r),s=i.indexOf("\n");if(-1===s)break;r+=s+1;var a=i.slice(0,s);n.dispatchEvent(new o("message",{data:a}))}},n.xo.onfinish=function(e,t){n.xo.onchunk(e,t),n.xo=null;var r=200===e?"network":"permanent";n.dispatchEvent(new o("close",{reason:r}))}};return re.prototype=new r,re.prototype.abort=function(){var e=this;e.xo&&(e.xo.close(),e.dispatchEvent(new o("close",{reason:"user"})),e.xo=null)},C.getUtils=function(){return n},C.getIframeTransport=function(){return A},C}(),"_sockjs_onload"in window&&setTimeout(_sockjs_onload,1),"function"==typeof define&&define.amd&&define("sockjs",[],function(){return v})}.call(this),function(){_.ClientStream=function(e,t){var n=this;n.options=i.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",i.bind(n._online,n),!1),n._launchConnection()},i.extend(_.ClientStream.prototype,{send:function(e){var t=this;t.currentStatus.connected&&t.socket.send(e)},_changeUrl:function(e){var t=this;t.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(),i.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),i.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 p.ConnectionError("Heartbeat timed out"))},_heartbeat_received:function(){var e=this;e._forcedToDisconnect||(e.heartbeatTimer&&clearTimeout(e.heartbeatTimer),e.heartbeatTimer=setTimeout(i.bind(e._heartbeat_timeout,e),e.HEARTBEAT_TIMEOUT))},_sockjsProtocolsWhitelist:function(){
|
||
var e=["xdr-polling","xhr-polling","iframe-xhr-polling","jsonp-polling"],t=navigator&&/iPhone|iPad|iPod/.test(navigator.userAgent)&&/OS 4_|OS 5_/.test(navigator.userAgent);return t||(e=["websocket"].concat(e)),e},_launchConnection:function(){var t=this;t._cleanup();var n=i.extend({protocols_whitelist:t._sockjsProtocolsWhitelist()},t.options._sockjsOptions);t.socket=new v(m(t.rawUrl),void 0,n),t.socket.onopen=function(e){t._connected()},t.socket.onmessage=function(e){t._heartbeat_received(),t.currentStatus.connected&&i.each(t.eventCallbacks.message,function(t){t(e.data)})},t.socket.onclose=function(){t._lostConnection()},t.socket.onerror=function(){e._debug("stream error",i.toArray(arguments),(new Date).toDateString())},t.socket.onheartbeat=function(){t._heartbeat_received()},t.connectionTimer&&clearTimeout(t.connectionTimer),t.connectionTimer=setTimeout(function(){t._lostConnection(new p.ConnectionError("DDP connection timed out"))},t.CONNECT_TIMEOUT)}})}.call(this),function(){var t=function(e,t){return e.length>=t.length&&e.substring(0,t.length)===t},n=function(e,t){return e.length>=t.length&&e.substring(e.length-t.length)===t},o=function(o,i,s){i||(i="http");var a=o.match(/^ddp(i?)\+sockjs:\/\//),u=o.match(/^http(s?):\/\//),c;if(a){var d=o.substr(a[0].length);c="i"===a[1]?i:i+"s";var l=d.indexOf("/"),f=-1===l?d:d.substr(0,l),p=-1===l?"":d.substr(l);return f=f.replace(/\*/g,function(){return Math.floor(10*r.fraction())}),c+"://"+f+p}if(u){c=u[1]?i+"s":i;var _=o.substr(u[0].length);o=c+"://"+_}return-1!==o.indexOf("://")||t(o,"/")||(o=i+"://"+o),o=e._relativeToSiteRootUrl(o),n(o,"/")?o+s:o+"/"+s};m=function(e){return o(e,"http","sockjs")},g=function(e){var t=o(e,"ws","websocket");return t},_.toSockjsUrl=m,i.extend(_.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="undefined"!=typeof s&&new s.Dependency,t.statusChanged=function(){t.statusListeners&&t.statusListeners.changed()},t._retry=new u,t.connectionTimer=null},reconnect:function(e){var t=this;return e=e||{},e.url&&t._changeUrl(e.url),e._sockjsOptions&&(t.options._sockjsOptions=e._sockjsOptions),t.currentStatus.connected?void((e._force||e.url)&&t._lostConnection(new p.ForcedReconnectError)):("connecting"===t.currentStatus.status&&t._lostConnection(),t._retry.clear(),t.currentStatus.retryCount-=1,void 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,i.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}}),p.ConnectionError=e.makeErrorType("DDP.ConnectionError",function(e){var t=this;t.message=e}),p.ForcedReconnectError=e.makeErrorType("DDP.ForcedReconnectError",function(){})}.call(this),function(){_.SUPPORTED_DDP_VERSIONS=d.SUPPORTED_DDP_VERSIONS,p._CurrentInvocation=new e.EnvironmentVariable}.call(this),function(){p.randomStream=function(e){var t=p._CurrentInvocation.get();return d.RandomStream.get(t,e)}}.call(this),function(){if(e.isServer)var t=Npm.require("path"),n=Npm.require("fibers"),a=Npm.require(t.join("fibers","future"));var u=function(t,n){var r=this;n=i.extend({onConnected:function(){},onDDPVersionNegotiationFailure:function(t){e._debug(t)},heartbeatInterval:17500,heartbeatTimeout:15e3,reloadWithOutstanding:!1,supportedDDPVersions:d.SUPPORTED_DDP_VERSIONS,retry:!0,respondToPings:!0},n),r.onReconnect=null,"object"==typeof t?r._stream=t:r._stream=new _.ClientStream(t,{retry:n.retry,headers:n.headers,_sockjsOptions:n._sockjsOptions,_dontPrintErrors:n._dontPrintErrors,connectTimeoutMs:n.connectTimeoutMs}),r._lastSessionId=null,r._versionSuggestion=null,r._version=null,r._stores={},r._methodHandlers={},r._nextMethodId=1,r._supportedDDPVersions=n.supportedDDPVersions,r._heartbeatInterval=n.heartbeatInterval,r._heartbeatTimeout=n.heartbeatTimeout,r._methodInvokers={},r._outstandingMethodBlocks=[],r._documentsWrittenByStub={},r._serverDocuments={},r._afterUpdateCallbacks=[],r._messagesBufferedUntilQuiescence=[],r._methodsBlockingQuiescence={},r._subsBeingRevived={},r._resetStores=!1,r._updatesForUnknownStores={},r._retryMigrate=null,r._subscriptions={},r._userId=null,r._userIdDeps=new s.Dependency,e.isClient&&Package.reload&&!n.reloadWithOutstanding&&Package.reload.Reload._onMigrate(function(e){if(r._readyToMigrate())return[!0];if(r._retryMigrate)throw new Error("Two migrations in progress?");return r._retryMigrate=e,!1});var o=function(t){try{var o=d.parseDDP(t)}catch(s){return void e._debug("Exception while parsing DDP",s)}if(r._heartbeat&&r._heartbeat.messageReceived(),null===o||!o.msg)return void(o&&o.server_id||e._debug("discarding invalid livedata message",o));if("connected"===o.msg)r._version=r._versionSuggestion,r._livedata_connected(o),n.onConnected();else if("failed"===o.msg)if(i.contains(r._supportedDDPVersions,o.version))r._versionSuggestion=o.version,r._stream.reconnect({_force:!0});else{var a="DDP version negotiation failed; server requested version "+o.version;r._stream.disconnect({_permanent:!0,_error:a}),n.onDDPVersionNegotiationFailure(a)}else"ping"===o.msg&&n.respondToPings?r._send({msg:"pong",id:o.id}):"pong"===o.msg||(i.include(["added","changed","removed","ready","updated"],o.msg)?r._livedata_data(o):"nosub"===o.msg?r._livedata_nosub(o):"result"===o.msg?r._livedata_result(o):"error"===o.msg?r._livedata_error(o):e._debug("discarding unknown livedata message type",o))},a=function(){var e={msg:"connect"};r._lastSessionId&&(e.session=r._lastSessionId),e.version=r._versionSuggestion||r._supportedDDPVersions[0],r._versionSuggestion=e.version,e.support=r._supportedDDPVersions,r._send(e),!i.isEmpty(r._outstandingMethodBlocks)&&i.isEmpty(r._outstandingMethodBlocks[0].methods)&&r._outstandingMethodBlocks.shift(),i.each(r._methodInvokers,function(e){e.sentMessage=!1}),r.onReconnect?r._callOnReconnectAndSendAppropriateOutstandingMethods():r._sendOutstandingMethods(),i.each(r._subscriptions,function(e,t){r._send({msg:"sub",id:t,name:e.name,params:e.params})})},u=function(){r._heartbeat&&(r._heartbeat.stop(),r._heartbeat=null)};e.isServer?(r._stream.on("message",e.bindEnvironment(o,"handling DDP message")),r._stream.on("reset",e.bindEnvironment(a,"handling DDP reset")),r._stream.on("disconnect",e.bindEnvironment(u,"handling DDP disconnect"))):(r._stream.on("message",o),r._stream.on("reset",a),r._stream.on("disconnect",u))},c=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._methodResult=null,t._dataVisible=!1,t._connection._methodInvokers[t.methodId]=t};i.extend(c.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(){var e=this;return!!e._methodResult}}),i.extend(u.prototype,{registerStore:function(e,t){var n=this;if(e in n._stores)return!1;var r={};i.each(["update","beginUpdate","endUpdate","saveOriginals","retrieveOriginals","getDoc"],function(e){r[e]=function(){return t[e]?t[e].apply(t,arguments):void 0}}),n._stores[e]=r;var o=n._updatesForUnknownStores[e];return o&&(r.beginUpdate(o.length,!1),i.each(o,function(e){r.update(e)}),r.endUpdate(),delete n._updatesForUnknownStores[e]),!0},subscribe:function(e){var t=this,n=Array.prototype.slice.call(arguments,1),a={};if(n.length){var u=n[n.length-1];i.isFunction(u)?a.onReady=n.pop():u&&i.any([u.onReady,u.onError,u.onStop],i.isFunction)&&(a=n.pop())}var c=i.find(t._subscriptions,function(t){return t.inactive&&t.name===e&&o.equals(t.params,n)}),d;c?(d=c.id,c.inactive=!1,a.onReady&&(c.ready||(c.readyCallback=a.onReady)),a.onError&&(c.errorCallback=a.onError),a.onStop&&(c.stopCallback=a.onStop)):(d=r.id(),t._subscriptions[d]={id:d,name:e,params:o.clone(n),inactive:!1,ready:!1,readyDeps:new s.Dependency,readyCallback:a.onReady,errorCallback:a.onError,stopCallback:a.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(),a.onStop&&a.onStop()}},t._send({msg:"sub",id:d,name:e,params:n}));var l={stop:function(){i.has(t._subscriptions,d)&&t._subscriptions[d].stop()},ready:function(){if(!i.has(t._subscriptions,d))return!1;var e=t._subscriptions[d];return e.readyDeps.depend(),e.ready},subscriptionId:d};return s.active&&s.onInvalidate(function(e){i.has(t._subscriptions,d)&&(t._subscriptions[d].inactive=!0),s.afterFlush(function(){i.has(t._subscriptions,d)&&t._subscriptions[d].inactive&&l.stop()})}),l},_subscribeAndWait:function(e,t,n){var r=this,o=new a,i=!1,s;return t=t||[],t.push({onReady:function(){i=!0,o["return"]()},onError:function(e){i?n&&n.onLateError&&n.onLateError(e):o["throw"](e)}}),s=r.subscribe.apply(r,[e].concat(t)),o.wait(),s},methods:function(e){var t=this;i.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,r,s){var u=this;s||"function"!=typeof r||(s=r,r={}),r=r||{},s&&(s=e.bindEnvironment(s,"delivering result of invoking '"+t+"'")),n=o.clone(n);var l=function(){var e;return function(){return void 0===e&&(e=""+u._nextMethodId++),e}}(),f=p._CurrentInvocation.get(),_=f&&f.isSimulation,h=null,v=function(){return null===h&&(h=d.makeRpcSeed(f,t)),h},m=u._methodHandlers[t];if(m){var g=function(e){u.setUserId(e)},b=new d.MethodInvocation({isSimulation:!0,userId:u.userId(),setUserId:g,randomSeed:function(){return v()}});_||u._saveOriginals();try{var y=p._CurrentInvocation.withValue(b,function(){return e.isServer?e._noYieldsAllowed(function(){return m.apply(b,o.clone(n))}):m.apply(b,o.clone(n))})}catch(w){var S=w}_||u._retrieveAndStoreOriginals(l())}if(_){if(s)return void s(S,y);if(S)throw S;return y}if(S){if(r.throwStubExceptions)throw S;S.expected||e._debug("Exception while simulating the effect of invoking '"+t+"'",S,S.stack)}if(!s)if(e.isClient)s=function(n){n&&e._debug("Error invoking Method '"+t+"':",n.message)};else{var k=new a;s=k.resolver()}var C={msg:"method",method:t,params:n,id:l()};null!==h&&(C.randomSeed=h);var E=new c({methodId:l(),callback:s,connection:u,onResultReceived:r.onResultReceived,wait:!!r.wait,message:C});return r.wait?u._outstandingMethodBlocks.push({wait:!0,methods:[E]}):((i.isEmpty(u._outstandingMethodBlocks)||i.last(u._outstandingMethodBlocks).wait)&&u._outstandingMethodBlocks.push({wait:!1,methods:[]}),i.last(u._outstandingMethodBlocks).methods.push(E)),1===u._outstandingMethodBlocks.length&&E.sendMessage(),k?k.wait():r.returnStubValue?y:void 0},_saveOriginals:function(){var e=this;i.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=[];i.each(t._stores,function(r,o){var s=r.retrieveOriginals();s&&s.forEach(function(r,s){n.push({collection:o,id:s}),i.has(t._serverDocuments,o)||(t._serverDocuments[o]=new h);var a=t._serverDocuments[o].setDefault(s,{});a.writtenByStubs?a.writtenByStubs[e]=!0:(a.document=r,a.flushCallbacks=[],a.writtenByStubs={},a.writtenByStubs[e]=!0)})}),i.isEmpty(n)||(t._documentsWrittenByStub[e]=n)},_unsubscribeAll:function(){var e=this;i.each(i.clone(e._subscriptions),function(t,n){"meteor_autoupdate_clientVersions"!==t.name&&e._subscriptions[n].stop()})},_send:function(e){var t=this;t._stream.send(d.stringifyDDP(e))},_lostConnection:function(e){var t=this;t._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(){var e=this;return e._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!i.isEmpty(e._subsBeingRevived)||!i.isEmpty(e._methodsBlockingQuiescence)},_anyMethodsAreOutstanding:function(){var e=this;return i.any(i.pluck(e._methodInvokers,"sentMessage"))},_livedata_connected:function(e){var t=this;if("pre1"!==t._version&&0!==t._heartbeatInterval&&(t._heartbeat=new d.Heartbeat({heartbeatInterval:t._heartbeatInterval,heartbeatTimeout:t._heartbeatTimeout,onTimeout:function(){t._lostConnection(new p.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={},i.each(t._subscriptions,function(e,n){e.ready&&(t._subsBeingRevived[n]=!0)}),t._methodsBlockingQuiescence={},t._resetStores&&i.each(t._methodInvokers,function(e){e.gotResult()?t._afterUpdateCallbacks.push(i.bind(e.dataVisible,e)):e.sentMessage&&(t._methodsBlockingQuiescence[e.methodId]=!0)}),t._messagesBufferedUntilQuiescence=[],t._waitingForQuiescence()||(t._resetStores&&(i.each(t._stores,function(e){e.beginUpdate(0,!0),e.endUpdate()}),t._resetStores=!1),t._runAfterUpdateCallbacks()))},_processOneDataMessage:function(e,t){var n=this;n["_process_"+e.msg](e,t)},_livedata_data:function(e){var t=this,n={};if(t._waitingForQuiescence()){if(t._messagesBufferedUntilQuiescence.push(e),"nosub"===e.msg&&delete t._subsBeingRevived[e.id],i.each(e.subs||[],function(e){delete t._subsBeingRevived[e]}),i.each(e.methods||[],function(e){delete t._methodsBlockingQuiescence[e]}),t._waitingForQuiescence())return;i.each(t._messagesBufferedUntilQuiescence,function(e){t._processOneDataMessage(e,n)}),t._messagesBufferedUntilQuiescence=[]}else t._processOneDataMessage(e,n);(t._resetStores||!i.isEmpty(n))&&(i.each(t._stores,function(e,r){e.beginUpdate(i.has(n,r)?n[r].length:0,t._resetStores)}),t._resetStores=!1,i.each(n,function(e,n){var r=t._stores[n];r?i.each(e,function(e){r.update(e)}):(i.has(t._updatesForUnknownStores,n)||(t._updatesForUnknownStores[n]=[]),Array.prototype.push.apply(t._updatesForUnknownStores[n],e))}),i.each(t._stores,function(e){e.endUpdate()})),t._runAfterUpdateCallbacks()},_runAfterUpdateCallbacks:function(){var e=this,t=e._afterUpdateCallbacks;e._afterUpdateCallbacks=[],i.each(t,function(e){e()})},_pushUpdate:function(e,t,n){var r=this;i.has(e,t)||(e[t]=[]),e[t].push(n)},_getServerDoc:function(e,t){var n=this;if(!i.has(n._serverDocuments,e))return null;var r=n._serverDocuments[e];return r.get(t)||null},_process_added:function(e,t){var n=this,r=f.idParse(e.id),o=n._getServerDoc(e.collection,r);if(o){var i=void 0!==o.document;if(o.document=e.fields||{},o.document._id=r,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,r=n._getServerDoc(e.collection,f.idParse(e.id));if(r){if(void 0===r.document)throw new Error("Server sent changed for nonexisting id: "+e.id);l.applyChanges(r.document,e.fields)}else n._pushUpdate(t,e.collection,e)},_process_removed:function(e,t){var n=this,r=n._getServerDoc(e.collection,f.idParse(e.id));if(r){if(void 0===r.document)throw new Error("Server sent removed for nonexisting id:"+e.id);r.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;i.each(e.methods,function(e){i.each(n._documentsWrittenByStub[e],function(r){var o=n._getServerDoc(r.collection,r.id);if(!o)throw new Error("Lost serverDoc for "+JSON.stringify(r));if(!o.writtenByStubs[e])throw new Error("Doc "+JSON.stringify(r)+" not written by method "+e);delete o.writtenByStubs[e],i.isEmpty(o.writtenByStubs)&&(n._pushUpdate(t,r.collection,{msg:"replace",id:f.idStringify(r.id),replace:o.document}),i.each(o.flushCallbacks,function(e){e()}),n._serverDocuments[r.collection].remove(r.id))}),delete n._documentsWrittenByStub[e];var r=n._methodInvokers[e];if(!r)throw new Error("No callback invoker for method "+e);n._runWhenAllServerDocsAreFlushed(i.bind(r.dataVisible,r))})},_process_ready:function(e,t){var n=this;i.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)},r=0,o=function(){--r,0===r&&n()};i.each(t._serverDocuments,function(e){e.forEach(function(e){var n=i.any(e.writtenByStubs,function(e,n){var r=t._methodInvokers[n];return r&&r.sentMessage});n&&(++r,e.flushCallbacks.push(o))})}),0===r&&n()},_livedata_nosub:function(t){var n=this;if(n._livedata_data(t),i.has(n._subscriptions,t.id)){var r=n._subscriptions[t.id].errorCallback,o=n._subscriptions[t.id].stopCallback;n._subscriptions[t.id].remove();var s=function(t){return t&&t.error&&new e.Error(t.error.error,t.error.reason,t.error.details)};r&&t.error&&r(s(t)),o&&o(s(t))}},_process_nosub:function(){},_livedata_result:function(t){var n=this;if(i.isEmpty(n._outstandingMethodBlocks))return void e._debug("Received method result but no methods outstanding");for(var r=n._outstandingMethodBlocks[0].methods,o,s=0;s<r.length&&(o=r[s],o.methodId!==t.id);s++);return o?(r.splice(s,1),void(i.has(t,"error")?o.receiveResult(new e.Error(t.error.error,t.error.reason,t.error.details)):o.receiveResult(void 0,t.result))):void e._debug("Can't match method response to original method call",t)},_outstandingMethodFinished:function(){var e=this;if(!e._anyMethodsAreOutstanding()){if(!i.isEmpty(e._outstandingMethodBlocks)){var t=e._outstandingMethodBlocks.shift();if(!i.isEmpty(t.methods))throw new Error("No methods outstanding but nonempty block: "+JSON.stringify(t));i.isEmpty(e._outstandingMethodBlocks)||e._sendOutstandingMethods()}e._maybeMigrate()}},_sendOutstandingMethods:function(){var e=this;i.isEmpty(e._outstandingMethodBlocks)||i.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(),!i.isEmpty(t)){if(i.isEmpty(e._outstandingMethodBlocks))return e._outstandingMethodBlocks=t,void e._sendOutstandingMethods();i.last(e._outstandingMethodBlocks).wait||t[0].wait||(i.each(t[0].methods,function(t){i.last(e._outstandingMethodBlocks).methods.push(t),1===e._outstandingMethodBlocks.length&&t.sendMessage()}),t.shift()),i.each(t,function(t){e._outstandingMethodBlocks.push(t)})}},_readyToMigrate:function(){var e=this;return i.isEmpty(e._methodInvokers)},_maybeMigrate:function(){var e=this;e._retryMigrate&&e._readyToMigrate()&&(e._retryMigrate(),e._retryMigrate=null)}}),_.Connection=u,p.connect=function(e,t){var n=new u(e,t);return b.push(n),n},b=[],p._allSubscriptionsReady=function(){return i.all(b,function(e){return i.all(e._subscriptions,function(e){return e.ready})})}}.call(this),function(){if(e.refresh=function(e){},e.isClient){var t="/";"undefined"!=typeof __meteor_runtime_config__&&__meteor_runtime_config__.DDP_DEFAULT_CONNECTION_URL&&(t=__meteor_runtime_config__.DDP_DEFAULT_CONNECTION_URL);var n=new u,r=function(t){if(e._debug(t),Package.reload){var r=Package.reload.Reload._migrationData("livedata")||{},o=r.DDPVersionNegotiationFailures||0;++o,Package.reload.Reload._onMigrate("livedata",function(){return[!0,{DDPVersionNegotiationFailures:o}]}),n.retryLater(o,function(){Package.reload.Reload._reload()})}};e.connection=p.connect(t,{onDDPVersionNegotiationFailure:r}),i.each(["subscribe","methods","call","apply","status","reconnect","disconnect"],function(t){e[t]=i.bind(e.connection[t],e.connection)})}else e.connection=null;e.default_connection=e.connection,e.connect=p.connect}.call(this),"undefined"==typeof Package&&(Package={}),Package["ddp-client"]={DDP:p,LivedataTest:_}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a=Package["ddp-client"].DDP,a;"undefined"==typeof Package&&(Package={}),Package.ddp={DDP:a}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,e=Package.underscore._,r;(function(){var t=function(t,e,r,n){return{key:t,value:e,next:r,prev:n}};r=function(){var t=this;t._dict={},t._first=null,t._last=null,t._size=0;var r=e.toArray(arguments);t._stringify=function(t){return t},"function"==typeof r[0]&&(t._stringify=r.shift()),e.each(r,function(e){t.putBefore(e[0],e[1],null)})},e.extend(r.prototype,{_k:function(t){return" "+this._stringify(t)},empty:function(){var t=this;return!t._first},size:function(){var t=this;return t._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){var r=this;r.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;return e.has(t)?e._dict[e._k(t)].value:void 0},has:function(t){var r=this;return e.has(r._dict,r._k(t))},forEach:function(t){for(var e=this,n=0,i=e._first;null!==i;){var o=t(i.value,i.key,n);if(o===r.BREAK)return;i=i.next,n++}},first:function(){var t=this;return t.empty()?void 0:t._first.key},firstValue:function(){var t=this;return t.empty()?void 0:t._first.value},last:function(){var t=this;return t.empty()?void 0:t._last.key},lastValue:function(){var t=this;return t.empty()?void 0: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,n=null;return e.forEach(function(i,o,u){return e._k(o)===e._k(t)?(n=u,r.BREAK):void 0}),n},_checkRep:function(){var t=this;e.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")})}}),r.BREAK={"break":!0}}).call(this),"undefined"==typeof Package&&(Package={}),Package["ordered-dict"]={OrderedDict:r}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,n,o;(function(){n={exports:{}}}).call(this),function(){!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 o(t,n,o){for(var a=[[0,0]],r=0;r<o.length;r++){for(var e=0;e<o[r].length;e++)a.push(o[r][e]);a.push([0,0])}for(var i=!1,r=0,e=a.length-1;r<a.length;e=r++)a[r][0]>n!=a[e][0]>n&&t<(a[e][1]-a[r][1])*(n-a[r][0])/(a[e][0]-a[r][0])+a[r][1]&&(i=!i);return i}var a={};"undefined"!=typeof n&&n.exports&&(n.exports=a),a.lineStringsIntersect=function(t,n){for(var o=[],a=0;a<=t.coordinates.length-2;++a)for(var r=0;r<=n.coordinates.length-2;++r){var e={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[r][1],y:n.coordinates[r][0]},c={x:n.coordinates[r+1][1],y:n.coordinates[r+1][0]},u=(c.x-s.x)*(e.y-s.y)-(c.y-s.y)*(e.x-s.x),h=(i.x-e.x)*(e.y-s.y)-(i.y-e.y)*(e.x-s.x),d=(c.y-s.y)*(i.x-e.x)-(c.x-s.x)*(i.y-e.y);if(0!=d){var l=u/d,y=h/d;l>=0&&1>=l&&y>=0&&1>=y&&o.push({type:"Point",coordinates:[e.x+l*(i.x-e.x),e.y+l*(i.y-e.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(n,r){for(var e="Polygon"==r.type?[r.coordinates]:r.coordinates,i=!1,s=0;s<e.length;s++)a.pointInBoundingBox(n,t(e[s]))&&(i=!0);if(!i)return!1;for(var c=!1,s=0;s<e.length;s++)o(n.coordinates[1],n.coordinates[0],e[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 r=[n.coordinates[1],n.coordinates[0]],e=t/1e3/6371,i=[a.numberToRadius(r[0]),a.numberToRadius(r[1])],o=o||15,s=[[r[0],r[1]]],c=0;o>c;c++){var u=2*Math.PI*c/o,h=Math.asin(Math.sin(i[0])*Math.cos(e)+Math.cos(i[0])*Math.sin(e)*Math.cos(u)),d=i[1]+Math.atan2(Math.sin(u)*Math.sin(e)*Math.cos(i[0]),Math.cos(e)-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],r=n[2][0],e=n[2][1],i=r-o,s=e-a;return{type:"Point",coordinates:[o+i/2,a+s/2]}},a.pointDistance=function(t,n){var o=t.coordinates[0],r=t.coordinates[1],e=n.coordinates[0],i=n.coordinates[1],s=a.numberToRadius(i-r),c=a.numberToRadius(e-o),u=Math.pow(Math.sin(s/2),2)+Math.cos(a.numberToRadius(r))*Math.cos(a.numberToRadius(i))*Math.pow(Math.sin(c/2),2),h=2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u));return 6371*h*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 r={},e;e="Polygon"==t.type?t.coordinates[0]:t.coordinates;for(var i in e)if(r.coordinates=e[i],a.pointDistance(r,n)>o)return!1}return!0},a.area=function(t){for(var n=0,o=t.coordinates[0],a=o.length-1,r,e,i=0;i<o.length;a=i++){var r={x:o[i][1],y:o[i][0]},e={x:o[a][1],y:o[a][0]};n+=r.x*e.y,n-=r.y*e.x}return n/=2},a.centroid=function(t){for(var n,o=0,r=0,e=t.coordinates[0],i=e.length-1,s,c,u=0;u<e.length;i=u++){var s={x:e[u][1],y:e[u][0]},c={x:e[i][1],y:e[i][0]};n=s.x*c.y-c.x*s.y,o+=(s.x+c.x)*n,r+=(s.y+c.y)*n}return n=6*a.area(t),{type:"Point",coordinates:[r/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,r,e,i,s,c,u,h,d,l,y,M,f,g,x,p,v,P,b=Math.PI/180*.5,m=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,r=0,T[0]=0,I[0]=o-1,a=1;a>0;)if(e=T[a-1],i=I[a-1],a--,i-e>1){for(l=t[i].lng()-t[e].lng(),y=t[i].lat()-t[e].lat(),Math.abs(l)>180&&(l=360-Math.abs(l)),l*=Math.cos(b*(t[i].lat()+t[e].lat())),M=l*l+y*y,s=e+1,c=e,h=-1;i>s;s++)f=t[s].lng()-t[e].lng(),g=t[s].lat()-t[e].lat(),Math.abs(f)>180&&(f=360-Math.abs(f)),f*=Math.cos(b*(t[s].lat()+t[e].lat())),x=f*f+g*g,p=t[s].lng()-t[i].lng(),v=t[s].lat()-t[i].lat(),Math.abs(p)>180&&(p=360-Math.abs(p)),p*=Math.cos(b*(t[s].lat()+t[i].lat())),P=p*p+v*v,u=x>=M+P?P:P>=M+x?x:(f*y-g*l)*(f*y-g*l)/M,u>h&&(c=s,h=u);d>h?(m[r]=e,r++):(a++,T[a-1]=c,I[a-1]=i,a++,T[a-1]=e,I[a-1]=c)}else m[r]=e,r++;m[r]=o-1,r++;for(var R=new Array,s=0;r>s;s++)R.push(t[m[s]]);return R.map(function(t){return{type:"Point",coordinates:[t.lng,t.lat]}})},a.destinationPoint=function(t,n,o){o/=6371,n=a.numberToRadius(n);var r=a.numberToRadius(t.coordinates[0]),e=a.numberToRadius(t.coordinates[1]),i=Math.asin(Math.sin(r)*Math.cos(o)+Math.cos(r)*Math.sin(o)*Math.cos(n)),s=e+Math.atan2(Math.sin(n)*Math.sin(o)*Math.cos(r),Math.cos(o)-Math.sin(r)*Math.sin(i));return s=(s+3*Math.PI)%(2*Math.PI)-Math.PI,{type:"Point",coordinates:[a.numberToDegree(i),a.numberToDegree(s)]}}}()}.call(this),function(){o=n.exports}.call(this),"undefined"==typeof Package&&(Package={}),Package["geojson-utils"]={GeoJSON:o}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,r=Package.underscore._,t=Package.ejson.EJSON,n=Package["id-map"].IdMap,o=Package["ordered-dict"].OrderedDict,i=Package.tracker.Tracker,a=Package.tracker.Deps,s=Package["mongo-id"].MongoID,c=Package.random.Random,u=Package["diff-sequence"].DiffSequence,d=Package["geojson-utils"].GeoJSON,f,l,h,p,v,_,m,y,g,w,$,b,E,I,C,O;(function(){f=function(r){var t=this;t.name=r,t._docs=new f._IdMap,t._observeQueue=new e._SynchronousQueue,t.next_qid=1,t.queries={},t._savedOriginals=null,t.paused=!1},l={},h={},p=function(e){var r=new Error(e);return r.name="MinimongoError",r},f.prototype.find=function(e,r){return 0===arguments.length&&(e={}),new f.Cursor(this,e,r)},f.Cursor=function(e,r,t){var n=this;t||(t={}),n.collection=e,n.sorter=null,n.matcher=new l.Matcher(r),f._selectorIsId(r)?n._selectorId=r:f._selectorIsIdPerhapsAsObject(r)?n._selectorId=r._id:(n._selectorId=void 0,(n.matcher.hasGeoQuery()||t.sort)&&(n.sorter=new l.Sorter(t.sort||[],{matcher:n.matcher}))),n.skip=t.skip,n.limit=t.limit,n.fields=t.fields,n._projectionFn=f._compileProjection(n.fields||{}),n._transform=f.wrapTransform(t.transform),"undefined"!=typeof i&&(n.reactive=void 0===t.reactive?!0:t.reactive)},f.Cursor.prototype.rewind=function(){},f.prototype.findOne=function(e,r){return 0===arguments.length&&(e={}),r=r||{},r.limit=1,this.find(e,r).fetch()[0]},f.Cursor.prototype.forEach=function(e,t){var n=this,o=n._getRawObjects({ordered:!0});n.reactive&&n._depend({addedBefore:!0,removed:!0,changed:!0,movedBefore:!0}),r.each(o,function(r,o){r=n._projectionFn(r),n._transform&&(r=n._transform(r)),e.call(t,r,o,n)})},f.Cursor.prototype.getTransform=function(){return this._transform},f.Cursor.prototype.map=function(e,r){var t=this,n=[];return t.forEach(function(o,i){n.push(e.call(r,o,i,t))}),n},f.Cursor.prototype.fetch=function(){var e=this,r=[];return e.forEach(function(e){r.push(e)}),r},f.Cursor.prototype.count=function(){var e=this;return e.reactive&&e._depend({added:!0,removed:!0},!0),e._getRawObjects({ordered:!0}).length},f.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 t=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,t)},f.Cursor.prototype._getCollectionName=function(){var e=this;return e.collection.name},f._observeChangesCallbacksAreOrdered=function(e){if(e.added&&e.addedBefore)throw new Error("Please specify only one of added() and addedBefore()");return!(!e.addedBefore&&!e.movedBefore)},f._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)},f.ObserveHandle=function(){},r.extend(f.Cursor.prototype,{observe:function(e){var r=this;return f._observeFromObserveChanges(r,e)},observeChanges:function(e){var n=this,o=f._observeChangesCallbacksAreOrdered(e);if(!e._allow_unordered&&!o&&(n.skip||n.limit))throw new Error("must use ordered observe (ie, 'addedBefore' instead of 'added') with skip or limit");if(n.fields&&(0===n.fields._id||n.fields._id===!1))throw Error("You may not observe a cursor with {fields: {_id: 0}}");var a={matcher:n.matcher,sorter:o&&n.sorter,distances:n.matcher.hasGeoQuery()&&o&&new f._IdMap,resultsSnapshot:null,ordered:o,cursor:n,projectionFn:n._projectionFn},s;n.reactive&&(s=n.collection.next_qid++,n.collection.queries[s]=a),a.results=n._getRawObjects({ordered:o,distances:a.distances}),n.collection.paused&&(a.resultsSnapshot=o?[]:new f._IdMap);var c=function(e){return e?function(){var r=this,t=arguments;n.collection.paused||n.collection._observeQueue.queueTask(function(){e.apply(r,t)})}:function(){}};if(a.added=c(e.added),a.changed=c(e.changed),a.removed=c(e.removed),o&&(a.addedBefore=c(e.addedBefore),a.movedBefore=c(e.movedBefore)),!e._suppress_initial&&!n.collection.paused){var u=o?r.bind(r.each,null,a.results):r.bind(a.results.forEach,a.results);u(function(e){var r=t.clone(e);delete r._id,o&&a.addedBefore(e._id,n._projectionFn(r),null),a.added(e._id,n._projectionFn(r))})}var d=new f.ObserveHandle;return r.extend(d,{collection:n.collection,stop:function(){n.reactive&&delete n.collection.queries[s]}}),n.reactive&&i.active&&i.onInvalidate(function(){d.stop()}),n.collection._observeQueue.drain(),d}}),f.Cursor.prototype._getRawObjects=function(e){var r=this;e=e||{};var t=e.ordered?[]:new f._IdMap;if(void 0!==r._selectorId){if(r.skip)return t;var n=r.collection._docs.get(r._selectorId);return n&&(e.ordered?t.push(n):t.set(r._selectorId,n)),t}var o;if(r.matcher.hasGeoQuery()&&e.ordered&&(e.distances?(o=e.distances,o.clear()):o=new f._IdMap),r.collection._docs.forEach(function(n,i){var a=r.matcher.documentMatches(n);return a.result&&(e.ordered?(t.push(n),o&&void 0!==a.distance&&o.set(i,a.distance)):t.set(i,n)),!r.limit||r.skip||r.sorter||t.length!==r.limit?!0:!1}),!e.ordered)return t;if(r.sorter){var i=r.sorter.getComparator({distances:o});t.sort(i)}var a=r.skip||0,s=r.limit?r.limit+a:t.length;return t.slice(a,s)},f.Cursor.prototype._depend=function(e,t){var n=this;if(i.active){var o=new i.Dependency;o.depend();var a=r.bind(o.changed,o),s={_suppress_initial:!0,_allow_unordered:t};r.each(["added","changed","removed","addedBefore","movedBefore"],function(r){e[r]&&(s[r]=a)}),n.observeChanges(s)}},f.prototype.insert=function(n,o){var i=this;n=t.clone(n),r.has(n,"_id")||(n._id=f._useOID?new s.ObjectID:c.id());var a=n._id;if(i._docs.has(a))throw p("Duplicate _id '"+a+"'");i._saveOriginal(a,void 0),i._docs.set(a,n);var u=[];for(var d in i.queries){var l=i.queries[d],h=l.matcher.documentMatches(n);h.result&&(l.distances&&void 0!==h.distance&&l.distances.set(a,h.distance),l.cursor.skip||l.cursor.limit?u.push(d):f._insertInResults(l,n))}return r.each(u,function(e){i.queries[e]&&i._recomputeResults(i.queries[e])}),i._observeQueue.drain(),o&&e.defer(function(){o(null,a)}),a},f.prototype._eachPossiblyMatchingDoc=function(e,r){var t=this,n=f._idsMatchedBySelector(e);if(n)for(var o=0;o<n.length;++o){var i=n[o],a=t._docs.get(i);if(a){var s=r(a,i);if(s===!1)break}}else t._docs.forEach(r)},f.prototype.remove=function(n,o){var i=this;if(i.paused&&!i._savedOriginals&&t.equals(n,{})){var a=i._docs.size();return i._docs.clear(),r.each(i.queries,function(e){e.ordered?e.results=[]:e.results.clear()}),o&&e.defer(function(){o(null,a)}),a}var s=new l.Matcher(n),c=[];i._eachPossiblyMatchingDoc(n,function(e,r){s.documentMatches(e).result&&c.push(r)});for(var u=[],d=[],h=0;h<c.length;h++){var p=c[h],v=i._docs.get(p);r.each(i.queries,function(e,r){e.matcher.documentMatches(v).result&&(e.cursor.skip||e.cursor.limit?u.push(r):d.push({qid:r,doc:v}))}),i._saveOriginal(p,v),i._docs.remove(p)}return r.each(d,function(e){var r=i.queries[e.qid];r&&(r.distances&&r.distances.remove(e.doc._id),f._removeFromResults(r,e.doc))}),r.each(u,function(e){var r=i.queries[e];r&&i._recomputeResults(r)}),i._observeQueue.drain(),a=c.length,o&&e.defer(function(){o(null,a)}),a},f.prototype.update=function(n,o,i,a){var s=this;!a&&i instanceof Function&&(a=i,i=null),i||(i={});var c=new l.Matcher(n),u={};r.each(s.queries,function(e,r){!e.cursor.skip&&!e.cursor.limit||s.paused||(u[r]=t.clone(e.results))});var d={},h=0;s._eachPossiblyMatchingDoc(n,function(e,r){var t=c.documentMatches(e);return t.result&&(s._saveOriginal(r,e),s._modifyAndNotify(e,o,d,t.arrayIndices),++h,!i.multi)?!1:!0}),r.each(d,function(e,r){var t=s.queries[r];t&&s._recomputeResults(t,u[r])}),s._observeQueue.drain();var p;if(0===h&&i.upsert){var v=f._removeDollarOperators(n);f._modify(v,o,{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,_)}),_},f.prototype.upsert=function(e,t,n,o){var i=this;return o||"function"!=typeof n||(o=n,n={}),i.update(e,t,r.extend({},n,{upsert:!0,_returnObject:!0}),o)},f.prototype._modifyAndNotify=function(e,r,n,o){var i=this,a={};for(var s in i.queries){var c=i.queries[s];c.ordered?a[s]=c.matcher.documentMatches(e).result:a[s]=c.results.has(e._id)}var u=t.clone(e);f._modify(e,r,{arrayIndices:o});for(s in i.queries){c=i.queries[s];var d=a[s],l=c.matcher.documentMatches(e),h=l.result;h&&c.distances&&void 0!==l.distance&&c.distances.set(e._id,l.distance),c.cursor.skip||c.cursor.limit?(d||h)&&(n[s]=!0):d&&!h?f._removeFromResults(c,e):!d&&h?f._insertInResults(c,e):d&&h&&f._updateInResults(c,e,u)}},f._insertInResults=function(e,r){var n=t.clone(r);if(delete n._id,e.ordered){if(e.sorter){var o=f._insertInSortedList(e.sorter.getComparator({distances:e.distances}),e.results,r),i=e.results[o+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)},f._removeFromResults=function(e,r){if(e.ordered){var t=f._findInOrderedResults(e,r);e.removed(r._id),e.results.splice(t,1)}else{var n=r._id;e.removed(r._id),e.results.remove(n)}},f._updateInResults=function(e,n,o){if(!t.equals(n._id,o._id))throw new Error("Can't change a doc's _id while updating");var i=e.projectionFn,a=u.makeChangedFields(i(n),i(o));if(!e.ordered)return void(r.isEmpty(a)||(e.changed(n._id,a),e.results.set(n._id,n)));var s=f._findInOrderedResults(e,n);if(r.isEmpty(a)||e.changed(n._id,a),e.sorter){e.results.splice(s,1);var c=f._insertInSortedList(e.sorter.getComparator({distances:e.distances}),e.results,n);if(s!==c){var d=e.results[c+1];d=d?d._id:null,e.movedBefore&&e.movedBefore(n._id,d)}}},f.prototype._recomputeResults=function(e,r){var t=this;t.paused||r||(r=e.results),e.distances&&e.distances.clear(),e.results=e.cursor._getRawObjects({ordered:e.ordered,distances:e.distances}),t.paused||f._diffQueryChanges(e.ordered,r,e.results,e,{projectionFn:e.projectionFn})},f._findInOrderedResults=function(e,r){if(!e.ordered)throw new Error("Can't call _findInOrderedResults on unordered query");for(var t=0;t<e.results.length;t++)if(e.results[t]===r)return t;throw Error("object missing from query")},f._binarySearch=function(e,r,t){for(var n=0,o=r.length;o>0;){var i=Math.floor(o/2);e(t,r[n+i])>=0?(n+=i+1,o-=i+1):o=i}return n},f._insertInSortedList=function(e,r,t){if(0===r.length)return r.push(t),0;var n=f._binarySearch(e,r,t);return r.splice(n,0,t),n},f.prototype.saveOriginals=function(){var e=this;if(e._savedOriginals)throw new Error("Called saveOriginals twice without retrieveOriginals");e._savedOriginals=new f._IdMap},f.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},f.prototype._saveOriginal=function(e,r){var n=this;n._savedOriginals&&(n._savedOriginals.has(e)||n._savedOriginals.set(e,t.clone(r)))},f.prototype.pauseObservers=function(){if(!this.paused){this.paused=!0;for(var e in this.queries){var r=this.queries[e];r.resultsSnapshot=t.clone(r.results)}}},f.prototype.resumeObservers=function(){var e=this;if(this.paused){this.paused=!1;for(var r in this.queries){var t=e.queries[r];f._diffQueryChanges(t.ordered,t.resultsSnapshot,t.results,t,{projectionFn:t.projectionFn}),t.resultsSnapshot=null}e._observeQueue.drain()}}}).call(this),function(){f.wrapTransform=function(e){if(!e)return null;if(e.__wrappedTransform__)return e;var n=function(n){if(!r.has(n,"_id"))throw new Error("can only transform documents with _id");var o=n._id,a=i.nonreactive(function(){return e(n)});if(!_(a))throw new Error("transform must return object");if(r.has(a,"_id")){if(!t.equals(a._id,o))throw new Error("transformed document can't have different _id")}else a._id=o;return a};return n.__wrappedTransform__=!0,n}}.call(this),function(){v=function(e){return r.isArray(e)&&!t.isBinary(e)},_=f._isPlainObject=function(e){return e&&3===f._f._type(e)},m=function(e){return v(e)||_(e)},y=function(e,t){if(!_(e))return!1;var n=void 0;return r.each(e,function(r,o){var i="$"===o.substr(0,1);if(void 0===n)n=i;else if(n!==i){if(!t)throw new Error("Inconsistent operator: "+JSON.stringify(e));n=!1}}),!!n},g=function(e){return/^[0-9]+$/.test(e)}}.call(this),function(){l.Matcher=function(e){var r=this;r._paths={},r._hasGeoQuery=!1,r._hasWhere=!1,r._isSimple=!0,r._matchingDocument=void 0,r._selector=null,r._docMatcher=r._compileSelector(e)},r.extend(l.Matcher.prototype,{documentMatches:function(e){if(!e||"object"!=typeof 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(r){var n=this;if(r instanceof Function)return n._isSimple=!1,n._selector=r,n._recordPathUsed(""),function(e){return{result:!!r.call(e)}};if(f._selectorIsId(r))return n._selector={_id:r},n._recordPathUsed("_id"),function(e){return{result:t.equals(e._id,r)}};if(!r||"_id"in r&&!r._id)return n._isSimple=!1,S;if("boolean"==typeof r||v(r)||t.isBinary(r))throw new Error("Invalid selector: "+r);return n._selector=t.clone(r),e(r,n,{isRoot:!0})},_recordPathUsed:function(e){this._paths[e]=!0},_getPaths:function(){return r.keys(this._paths)}});var e=function(e,t,o){o=o||{};var i=[];return r.each(e,function(e,a){if("$"===a.substr(0,1)){if(!r.has(c,a))throw new Error("Unrecognized logical operator: "+a);t._isSimple=!1,i.push(c[a](e,t,o.inElemMatch))}else{o.inElemMatch||t._recordPathUsed(a);var s=E(a),u=n(e,t,o.isRoot);i.push(function(e){var r=s(e);return u(r)})}}),M(i)},n=function(e,r,t){return e instanceof RegExp?(r._isSimple=!1,o(w(e))):y(e)?i(e,r,t):o($(e))},o=function(e,t){return t=t||{},function(n){var o=n;t.dontExpandLeafArrays||(o=I(n,t.dontIncludeLeafArrays));var i={};return i.result=r.any(o,function(r){var t=e(r.value);return"number"==typeof t&&(r.arrayIndices||(r.arrayIndices=[t]),t=!0),t&&r.arrayIndices&&(i.arrayIndices=r.arrayIndices),t}),i}};w=function(e){return function(t){return t instanceof RegExp?r.isEqual(t,e):"string"!=typeof t?!1:(e.lastIndex=0,e.test(t))}},$=function(e){if(y(e))throw Error("Can't create equalityValueSelector for operator object");return null==e?function(e){return null==e}:function(r){return f._f._equal(e,r)}};var i=function(e,t,n){var i=[];return r.each(e,function(a,s){var c=r.contains(["$lt","$lte","$gt","$gte"],s)&&r.isNumber(a),u="$ne"===s&&!r.isObject(a),d=r.contains(["$in","$nin"],s)&&r.isArray(a)&&!r.any(a,r.isObject);if("$eq"===s||c||d||u||(t._isSimple=!1),r.has(p,s))i.push(p[s](a,e,t,n));else{if(!r.has(b,s))throw new Error("Unrecognized operator: "+s);var f=b[s];i.push(o(f.compileElementSelector(a,e,t),f))}}),P(i)},a=function(t,n,o){if(!v(t)||r.isEmpty(t))throw Error("$and/$or/$nor must be nonempty array");return r.map(t,function(r){if(!_(r))throw Error("$or/$and/$nor entries need to be full objects");return e(r,n,{inElemMatch:o})})},c={$and:function(e,r,t){var n=a(e,r,t);return M(n)},$or:function(e,t,n){var o=a(e,t,n);return 1===o.length?o[0]:function(e){var t=r.any(o,function(r){return r(e).result});return{result:t}}},$nor:function(e,t,n){var o=a(e,t,n);return function(e){var t=r.all(o,function(r){return!r(e).result});return{result:t}}},$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}}}},u=function(e){return function(r){var t=e(r);return{result:!t.result}}},p={$not:function(e,r,t){return u(n(e,t))},$ne:function(e){return u(o($(e)))},$nin:function(e){return u(o(b.$in.compileElementSelector(e)))},$exists:function(e){var r=o(function(e){return void 0!==e});return e?r:u(r)},$options:function(e,t){if(!r.has(t,"$regex"))throw Error("$options needs a $regex");return j},$maxDistance:function(e,r){if(!r.$near)throw Error("$maxDistance needs a $near");return j},$all:function(e,t,o){if(!v(e))throw Error("$all requires array");if(r.isEmpty(e))return S;var i=[];return r.each(e,function(e){if(y(e))throw Error("no $ expressions in $all");i.push(n(e,o))}),P(i)},$near:function(e,t,n,o){if(!o)throw Error("$near can't be inside another $ operator");n._hasGeoQuery=!0;var i,a,s;if(_(e)&&r.has(e,"$geometry"))i=e.$maxDistance,a=e.$geometry,s=function(e){return e&&e.type?"Point"===e.type?d.pointDistance(a,e):d.geometryWithinRadius(e,a,i)?0:i+1:null};else{if(i=t.$maxDistance,!v(e)&&!_(e))throw Error("$near argument must be coordinate pair or GeoJSON");a=O(e),s=function(e){return v(e)||_(e)?C(a,e):null}}return function(e){e=I(e);var t={result:!1};return r.each(e,function(e){var r=s(e.value);null===r||r>i||void 0!==t.distance&&t.distance<=r||(t.result=!0,t.distance=r,e.arrayIndices?t.arrayIndices=e.arrayIndices:delete t.arrayIndices)}),t}}},C=function(e,t){e=O(e),t=O(t);var n=e[0]-t[0],o=e[1]-t[1];return r.isNaN(n)||r.isNaN(o)?null:Math.sqrt(n*n+o*o)},O=function(e){return r.map(e,r.identity)},k=function(e){return{compileElementSelector:function(r){if(v(r))return function(){return!1};void 0===r&&(r=null);var t=f._f._type(r);return function(n){return void 0===n&&(n=null),f._f._type(n)!==t?!1:e(f._f._cmp(n,r))}}}};b={$lt:k(function(e){return 0>e}),$gt:k(function(e){return e>0}),$lte:k(function(e){return 0>=e}),$gte:k(function(e){return e>=0}),$mod:{compileElementSelector:function(e){if(!v(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],t=e[1];return function(e){return"number"==typeof e&&e%r===t}}},$in:{compileElementSelector:function(e){if(!v(e))throw Error("$in needs an array");var t=[];return r.each(e,function(e){if(e instanceof RegExp)t.push(w(e));else{if(y(e))throw Error("cannot nest $ under $in");t.push($(e))}}),function(e){return void 0===e&&(e=null),r.any(t,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 v(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&&f._f._type(r)===e}}},$regex:{compileElementSelector:function(e,r){if(!("string"==typeof e||e instanceof RegExp))throw Error("$regex has to be a string or RegExp");var t;if(void 0!==r.$options){if(/[^gim]/.test(r.$options))throw new Error("Only the i, m, and g regexp options are supported");var n=e instanceof RegExp?e.source:e;t=new RegExp(n,r.$options)}else t=e instanceof RegExp?e:new RegExp(e);return w(t)}},$elemMatch:{dontExpandLeafArrays:!0,compileElementSelector:function(r,t,o){if(!_(r))throw Error("$elemMatch need an object");var i,a;return y(r,!0)?(i=n(r,o),a=!1):(i=e(r,o,{inElemMatch:!0}),a=!0),function(e){if(!v(e))return!1;for(var r=0;r<e.length;++r){var t=e[r],n;if(a){if(!_(t)&&!v(t))return!1;n=t}else n=[{value:t,dontIterate:!0}];if(i(n).result)return r}return!1}}}},E=function(e,t){t=t||{};var n=e.split("."),o=n.length?n[0]:"",i=g(o),a=n.length>=2&&g(n[1]),s;n.length>1&&(s=E(n.slice(1).join(".")));var c=function(e){return e.dontIterate||delete e.dontIterate,e.arrayIndices&&!e.arrayIndices.length&&delete e.arrayIndices,e};return function(e,n){if(n||(n=[]),v(e)){if(!(i&&o<e.length))return[];n=n.concat(+o,"x")}var u=e[o];if(!s)return[c({value:u,dontIterate:v(e)&&v(u),arrayIndices:n})];if(!m(u))return v(e)?[]:[c({value:void 0,arrayIndices:n})];var d=[],f=function(e){Array.prototype.push.apply(d,e)};return f(s(u,n)),!v(u)||a&&t.forSort||r.each(u,function(e,r){_(e)&&f(s(e,n.concat(r)))}),d}},h.makeLookupFunction=E,I=function(e,t){var n=[];return r.each(e,function(e){var o=v(e.value);t&&o&&!e.dontIterate||n.push({value:e.value,arrayIndices:e.arrayIndices}),o&&!e.dontIterate&&r.each(e.value,function(r,t){n.push({value:r,arrayIndices:(e.arrayIndices||[]).concat(t)})})}),n};var S=function(e){return{result:!1}},j=function(e){return{result:!0}},A=function(e){return 0===e.length?j:1===e.length?e[0]:function(t){var n={};return n.result=r.all(e,function(e){var r=e(t);return r.result&&void 0!==r.distance&&void 0===n.distance&&(n.distance=r.distance),r.result&&r.arrayIndices&&(n.arrayIndices=r.arrayIndices),r.result}),n.result||(delete n.distance,delete n.arrayIndices),n}},M=A,P=A;f._f={_type:function(e){return"number"==typeof e?1:"string"==typeof e?2:"boolean"==typeof e?8:v(e)?4:null===e?10:e instanceof RegExp?11:"function"==typeof e?13:e instanceof Date?9:t.isBinary(e)?5:e instanceof s.ObjectID?7:3},_equal:function(e,r){return t.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 t=f._f._type(e),n=f._f._type(r),o=f._f._typeorder(t),i=f._f._typeorder(n);if(o!==i)return i>o?-1:1;if(t!==n)throw Error("Missing type coercion logic in _cmp");if(7===t&&(t=n=2,e=e.toHexString(),r=r.toHexString()),9===t&&(t=n=1,e=e.getTime(),r=r.getTime()),1===t)return e-r;if(2===n)return r>e?-1:e===r?0:1;if(3===t){var a=function(e){var r=[];for(var t in e)r.push(t),r.push(e[t]);return r};return f._f._cmp(a(e),a(r))}if(4===t)for(var s=0;;s++){if(s===e.length)return s===r.length?0:-1;if(s===r.length)return 1;var c=f._f._cmp(e[s],r[s]);if(0!==c)return c}if(5===t){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===t)return e?r?0:1:r?-1:0;if(10===t)return 0;if(11===t)throw Error("Sorting not supported on regular expression");if(13===t)throw Error("Sorting not supported on Javascript code");throw Error("Unknown type to sort")}},f._removeDollarOperators=function(e){var r={};for(var t in e)"$"!==t.substr(0,1)&&(r[t]=e[t]);return r}}.call(this),function(){l.Sorter=function(t,n){var o=this;n=n||{},o._sortSpecParts=[];var i=function(e,r){if(!e)throw Error("sort keys must be non-empty");if("$"===e.charAt(0))throw Error("unsupported sort key: "+e);o._sortSpecParts.push({path:e,lookup:E(e,{forSort:!0}),ascending:r})};if(t instanceof Array)for(var a=0;a<t.length;a++)"string"==typeof t[a]?i(t[a],!0):i(t[a][0],"desc"!==t[a][1]);else{if("object"!=typeof t)throw Error("Bad sort specification: "+JSON.stringify(t));r.each(t,function(e,r){i(r,e>=0)})}if(o.affectedByModifier){var s={};r.each(o._sortSpecParts,function(e){s[e.path]=1}),o._selectorForAffectedByModifier=new l.Matcher(s)}o._keyComparator=e(r.map(o._sortSpecParts,function(e,r){return o._keyFieldComparator(r)})),o._keyFilter=null,n.matcher&&o._useWithMatcher(n.matcher)},r.extend(l.Sorter.prototype,{getComparator:function(r){var t=this;if(!r||!r.distances)return t._getBaseComparator();var n=r.distances;return e([t._getBaseComparator(),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 r.pluck(e._sortSpecParts,"path")},_getMinKeyFromDoc:function(e){var r=this,t=null;if(r._generateKeysFromDoc(e,function(e){return r._keyCompatibleWithSelector(e)?null===t?void(t=e):void(r._compareKeys(e,t)<0&&(t=e)):void 0}),null===t)throw Error("sort selector found no keys in doc?");return t},_keyCompatibleWithSelector:function(e){var r=this;return!r._keyFilter||r._keyFilter(e)},_generateKeysFromDoc:function(e,t){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(r.each(n._sortSpecParts,function(t,n){var s=I(t.lookup(e),!0);s.length||(s=[{value:null}]);var c=!1;if(o[n]={},r.each(s,function(e){if(!e.arrayIndices){if(s.length>1)throw Error("multiple branches but no array used?");return void(o[n][""]=e.value)}c=!0;var t=i(e.arrayIndices);if(r.has(o[n],t))throw Error("duplicate path: "+t);if(o[n][t]=e.value,a&&!r.has(a,t))throw Error("cannot index parallel arrays")}),a){if(!r.has(o[n],"")&&r.size(a)!==r.size(o[n]))throw Error("cannot index parallel arrays!")}else c&&(a={},r.each(o[n],function(e,r){a[r]=!0}))}),!a){var s=r.map(o,function(e){if(!r.has(e,""))throw Error("no value in sole key case?");return e[""]});return void t(s)}r.each(a,function(e,n){var i=r.map(o,function(e){if(r.has(e,""))return e[""];if(!r.has(e,n))throw Error("missing path?");return e[n]});t(i)})},_compareKeys:function(e,r){var t=this;if(e.length!==t._sortSpecParts.length||r.length!==t._sortSpecParts.length)throw Error("Key has wrong length");return t._keyComparator(e,r)},_keyFieldComparator:function(e){var r=this,t=!r._sortSpecParts[e].ascending;return function(r,n){var o=f._f._cmp(r[e],n[e]);return t&&(o=-o),o}},_getBaseComparator:function(){var e=this;return e._sortSpecParts.length?function(r,t){var n=e._getMinKeyFromDoc(r),o=e._getMinKeyFromDoc(t);return e._compareKeys(n,o)}:function(e,r){return 0}},_useWithMatcher:function(e){var t=this;if(t._keyFilter)throw Error("called _useWithMatcher twice?");if(!r.isEmpty(t._sortSpecParts)){var n=e._selector;if(!(n instanceof Function)){var o={};r.each(t._sortSpecParts,function(e,r){o[e.path]=[]}),r.each(n,function(e,t){var n=o[t];if(n){if(e instanceof RegExp){if(e.ignoreCase||e.multiline)return;return void n.push(w(e))}return y(e)?void r.each(e,function(t,o){r.contains(["$lt","$lte","$gt","$gte"],o)&&n.push(b[o].compileElementSelector(t)),"$regex"!==o||e.$options||n.push(b.$regex.compileElementSelector(t,e))}):void n.push($(e))}}),r.isEmpty(o[t._sortSpecParts[0].path])||(t._keyFilter=function(e){return r.all(t._sortSpecParts,function(t,n){return r.all(o[t.path],function(r){return r(e[n])})})})}}}});var e=function(e){return function(r,t){for(var n=0;n<e.length;++n){var o=e[n](r,t);if(0!==o)return o}return 0}}}.call(this),function(){f._compileProjection=function(e){f._checkSupportedProjection(e);var n=r.isUndefined(e._id)?!0:e._id,o=C(e),i=function(e,n){if(r.isArray(e))return r.map(e,function(e){return i(e,n)});var a=o.including?{}:t.clone(e);return r.each(n,function(n,s){r.has(e,s)&&(r.isObject(n)?r.isObject(e[s])&&(a[s]=i(e[s],n)):o.including?a[s]=t.clone(e[s]):delete a[s])}),a};return function(e){var t=i(e,o.tree);return n&&r.has(e,"_id")&&(t._id=e._id),!n&&r.has(t,"_id")&&delete t._id,t}},C=function(e){var t=r.keys(e).sort();!(t.length>0)||1===t.length&&"_id"===t[0]||r.contains(t,"_id")&&e._id||(t=r.reject(t,function(e){return"_id"===e}));var n=null;r.each(t,function(r){var t=!!e[r];if(null===n&&(n=t),n!==t)throw p("You cannot currently mix including and excluding fields.")});var o=O(t,function(e){return n},function(e,r,t){var n=t,o=r;throw p("both "+n+" and "+o+" found in fields option, using both of them may trigger unexpected behavior. Did you mean to use only one of them?")});return{tree:o,including:n}},O=function(e,t,n,o){return o=o||{},r.each(e,function(e){var i=o,a=e.split("."),s=r.all(a.slice(0,-1),function(t,o){if(r.has(i,t)){if(!r.isObject(i[t])&&(i[t]=n(i[t],a.slice(0,o+1).join("."),e),!r.isObject(i[t])))return!1}else i[t]={};return i=i[t],!0});if(s){var c=r.last(a);r.has(i,c)?i[c]=n(i[c],e,e):i[c]=t(e)}}),o},f._checkSupportedProjection=function(e){if(!r.isObject(e)||r.isArray(e))throw p("fields option must be an object");r.each(e,function(e,t){if(r.contains(t.split("."),"$"))throw p("Minimongo doesn't support $ operator in projections yet.");if("object"==typeof e&&r.intersection(["$elemMatch","$meta","$slice"],r.keys(e)).length>0)throw p("Minimongo doesn't support operators in projections yet.");if(-1===r.indexOf([1,0,!0,!1],e))throw p("Projection values should be one of 1, 0, true, or false")})}}.call(this),function(){f._modify=function(i,a,s){if(s=s||{},!_(a))throw p("Modifier must be an object");a=t.clone(a);var c=y(a),u;if(c)u=t.clone(i),r.each(a,function(t,i){var a=o[i];if(s.isInsert&&"$setOnInsert"===i&&(a=o.$set),!a)throw p("Invalid modifier specified "+i);r.each(t,function(t,o){if(""===o)throw p("An empty update path is not valid.");if("_id"===o)throw p("Mod on _id not allowed");var c=o.split(".");if(!r.all(c,r.identity))throw p("The update path '"+o+"' contains an empty field name, which is not allowed.");var d=r.has(n,i),f="$rename"===i,l=e(u,c,{noCreate:n[i],forbidArray:"$rename"===i,arrayIndices:s.arrayIndices}),h=c.pop();a(l,h,t,o,u)})});else{if(a._id&&!t.equals(i._id,a._id))throw p("Cannot change the _id of a document");for(var d in a)if(/\./.test(d))throw p("When replacing document, field name may not contain '.'");u=a}r.each(r.keys(i),function(e){"_id"!==e&&delete i[e]}),r.each(u,function(e,r){i[r]=e})};var e=function(e,r,t){t=t||{};for(var n=!1,o=0;o<r.length;o++){var i=o===r.length-1,a=r[o],s=m(e);if(!s){if(t.noCreate)return void 0;var c=p("cannot use the part '"+a+"' to traverse "+e);throw c.setPropertyError=!0,c}if(e instanceof Array){if(t.forbidArray)return null;if("$"===a){if(n)throw p("Too many positional (i.e. '$') elements");if(!t.arrayIndices||!t.arrayIndices.length)throw p("The positional operator did not find the match needed from the query");a=t.arrayIndices[0],n=!0}else{if(!g(a)){if(t.noCreate)return void 0;throw p("can't append to array using string field name ["+a+"]")}a=parseInt(a)}if(i&&(r[o]=a),t.noCreate&&a>=e.length)return void 0;for(;e.length<a;)e.push(null);if(!i)if(e.length===a)e.push({});else if("object"!=typeof e[a])throw p("can't modify field '"+r[o+1]+"' of list value "+JSON.stringify(e[a]))}else{if(a.length&&"$"===a.substr(0,1))throw p("can't set field named "+a);if(!(a in e)){if(t.noCreate)return void 0;i||(e[a]={})}}if(i)return e;e=e[a]}},n={$unset:!0,$pop:!0,$rename:!0,$pull:!0,$pullAll:!0},o={$inc:function(e,r,t){if("number"!=typeof t)throw p("Modifier $inc allowed for numbers only");if(r in e){if("number"!=typeof e[r])throw p("Cannot apply $inc modifier to non-number");e[r]+=t}else e[r]=t},$set:function(e,t,n){if(!r.isObject(e)){var o=p("Cannot set property on non-object field");throw o.setPropertyError=!0,o}if(null===e){var o=p("Cannot set property on null");throw o.setPropertyError=!0,o}e[t]=n},$setOnInsert:function(e,r,t){},$unset:function(e,r,t){void 0!==e&&(e instanceof Array?r in e&&(e[r]=null):delete e[r])},$push:function(e,r,t){if(void 0===e[r]&&(e[r]=[]),!(e[r]instanceof Array))throw p("Cannot apply $push modifier to non-array");if(!t||!t.$each)return void e[r].push(t);var n=t.$each;if(!(n instanceof Array))throw p("$each must be an array");var o=void 0;if("$position"in t){if("number"!=typeof t.$position)throw p("$position must be a numeric value");if(t.$position<0)throw p("$position in $push must be zero or positive");o=t.$position}var i=void 0;if("$slice"in t){if("number"!=typeof t.$slice)throw p("$slice must be a numeric value");if(t.$slice>0)throw p("$slice in $push must be zero or negative");i=t.$slice}var a=void 0;if(t.$sort){if(void 0===i)throw p("$sort requires $slice to be present");a=new l.Sorter(t.$sort).getComparator();for(var s=0;s<n.length;s++)if(3!==f._f._type(n[s]))throw p("$push like modifiers using $sort require all elements to be objects")}if(void 0===o)for(var c=0;c<n.length;c++)e[r].push(n[c]);else{for(var u=[o,0],c=0;c<n.length;c++)u.push(n[c]);Array.prototype.splice.apply(e[r],u)}a&&e[r].sort(a),void 0!==i&&(0===i?e[r]=[]:e[r]=e[r].slice(i))},$pushAll:function(e,r,t){if(!("object"==typeof t&&t instanceof Array))throw p("Modifier $pushAll/pullAll allowed for arrays only");var n=e[r];if(void 0===n)e[r]=t;else{if(!(n instanceof Array))throw p("Cannot apply $pushAll modifier to non-array");for(var o=0;o<t.length;o++)n.push(t[o])}},$addToSet:function(e,t,n){var o=!1;if("object"==typeof n)for(var i in n){"$each"===i&&(o=!0);break}var a=o?n.$each:[n],s=e[t];if(void 0===s)e[t]=a;else{if(!(s instanceof Array))throw p("Cannot apply $addToSet modifier to non-array");
|
||
|
||
r.each(a,function(e){for(var r=0;r<s.length;r++)if(f._f._equal(e,s[r]))return;s.push(e)})}},$pop:function(e,r,t){if(void 0!==e){var n=e[r];if(void 0!==n){if(!(n instanceof Array))throw p("Cannot apply $pop modifier to non-array");"number"==typeof t&&0>t?n.splice(0,1):n.pop()}}},$pull:function(e,r,t){if(void 0!==e){var n=e[r];if(void 0!==n){if(!(n instanceof Array))throw p("Cannot apply $pull/pullAll modifier to non-array");var o=[];if(null==t||"object"!=typeof t||t instanceof Array)for(var i=0;i<n.length;i++)f._f._equal(n[i],t)||o.push(n[i]);else for(var a=new l.Matcher(t),i=0;i<n.length;i++)a.documentMatches(n[i]).result||o.push(n[i]);e[r]=o}}},$pullAll:function(e,r,t){if(!("object"==typeof t&&t instanceof Array))throw p("Modifier $pushAll/pullAll allowed for arrays only");if(void 0!==e){var n=e[r];if(void 0!==n){if(!(n instanceof Array))throw p("Cannot apply $pull/pullAll modifier to non-array");for(var o=[],i=0;i<n.length;i++){for(var a=!1,s=0;s<t.length;s++)if(f._f._equal(n[i],t[s])){a=!0;break}a||o.push(n[i])}e[r]=o}}},$rename:function(r,t,n,o,i){if(o===n)throw p("$rename source must differ from target");if(null===r)throw p("$rename source field invalid");if("string"!=typeof n)throw p("$rename target must be a string");if(void 0!==r){var a=r[t];delete r[t];var s=n.split("."),c=e(i,s,{forbidArray:!0});if(null===c)throw p("$rename target field invalid");var u=s.pop();c[u]=a}},$bit:function(e,r,t){throw p("$bit is not supported")}}}.call(this),function(){f._diffQueryChanges=function(e,r,t,n,o){return u.diffQueryChanges(e,r,t,n,o)},f._diffQueryUnorderedChanges=function(e,r,t,n){return u.diffQueryUnorderedChanges(e,r,t,n)},f._diffQueryOrderedChanges=function(e,r,t,n){return u.diffQueryOrderedChanges(e,r,t,n)},f._diffObjects=function(e,r,t){return u.diffObjects(e,r,t)}}.call(this),function(){f._IdMap=function(){var e=this;n.call(e,s.idStringify,s.idParse)},e._inherits(f._IdMap,n)}.call(this),function(){f._CachingChangeObserver=function(e){var n=this;e=e||{};var i=e.callbacks&&f._observeChangesCallbacksAreOrdered(e.callbacks);if(r.has(e,"ordered")){if(n.ordered=e.ordered,e.callbacks&&e.ordered!==i)throw Error("ordered option doesn't match callbacks")}else{if(!e.callbacks)throw Error("must provide ordered or callbacks");n.ordered=i}var a=e.callbacks||{};n.ordered?(n.docs=new o(s.idStringify),n.applyChange={addedBefore:function(e,r,o){var i=t.clone(r);i._id=e,a.addedBefore&&a.addedBefore.call(n,e,r,o),a.added&&a.added.call(n,e,r),n.docs.putBefore(e,i,o||null)},movedBefore:function(e,r){var t=n.docs.get(e);a.movedBefore&&a.movedBefore.call(n,e,r),n.docs.moveBefore(e,r||null)}}):(n.docs=new f._IdMap,n.applyChange={added:function(e,r){var o=t.clone(r);a.added&&a.added.call(n,e,r),o._id=e,n.docs.set(e,o)}}),n.applyChange.changed=function(e,r){var o=n.docs.get(e);if(!o)throw new Error("Unknown id for changed: "+e);a.changed&&a.changed.call(n,e,t.clone(r)),u.applyChanges(o,r)},n.applyChange.removed=function(e){a.removed&&a.removed.call(n,e),n.docs.remove(e)}},f._observeFromObserveChanges=function(e,n){var o=e.getTransform()||function(e){return e},i=!!n._suppress_initial,a;if(f._observeCallbacksAreOrdered(n)){var s=!n._no_indices;a={addedBefore:function(e,t,a){var c=this;if(!i&&(n.addedAt||n.added)){var u=o(r.extend(t,{_id:e}));if(n.addedAt){var d=s?a?c.docs.indexOf(a):c.docs.size():-1;n.addedAt(u,d,a)}else n.added(u)}},changed:function(e,r){var i=this;if(n.changedAt||n.changed){var a=t.clone(i.docs.get(e));if(!a)throw new Error("Unknown id for changed: "+e);var c=o(t.clone(a));if(u.applyChanges(a,r),a=o(a),n.changedAt){var d=s?i.docs.indexOf(e):-1;n.changedAt(a,c,d)}else n.changed(a,c)}},movedBefore:function(e,r){var i=this;if(n.movedTo){var a=s?i.docs.indexOf(e):-1,c=s?r?i.docs.indexOf(r):i.docs.size():-1;c>a&&--c,n.movedTo(o(t.clone(i.docs.get(e))),a,c,r||null)}},removed:function(e){var r=this;if(n.removedAt||n.removed){var t=o(r.docs.get(e));if(n.removedAt){var i=s?r.docs.indexOf(e):-1;n.removedAt(t,i)}else n.removed(t)}}}}else a={added:function(e,t){if(!i&&n.added){var a=r.extend(t,{_id:e});n.added(o(a))}},changed:function(e,r){var i=this;if(n.changed){var a=i.docs.get(e),s=t.clone(a);u.applyChanges(s,r),n.changed(o(s),o(t.clone(a)))}},removed:function(e){var r=this;n.removed&&n.removed(o(r.docs.get(e)))}};var c=new f._CachingChangeObserver({callbacks:a}),d=e.observeChanges(c.applyChange);return i=!1,d}}.call(this),function(){f._selectorIsId=function(e){return"string"==typeof e||"number"==typeof e||e instanceof s.ObjectID},f._selectorIsIdPerhapsAsObject=function(e){return f._selectorIsId(e)||e&&"object"==typeof e&&e._id&&f._selectorIsId(e._id)&&1===r.size(e)},f._idsMatchedBySelector=function(e){if(f._selectorIsId(e))return[e];if(!e)return null;if(r.has(e,"_id"))return f._selectorIsId(e._id)?[e._id]:e._id&&e._id.$in&&r.isArray(e._id.$in)&&!r.isEmpty(e._id.$in)&&r.all(e._id.$in,f._selectorIsId)?e._id.$in:null;if(e.$and&&r.isArray(e.$and))for(var t=0;t<e.$and.length;++t){var n=f._idsMatchedBySelector(e.$and[t]);if(n)return n}return null}}.call(this),"undefined"==typeof Package&&(Package={}),Package.minimongo={LocalCollection:f,Minimongo:l,MinimongoTest:h}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;"undefined"==typeof Package&&(Package={}),Package["ddp-server"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.random.Random,o=Package.ejson.EJSON,t=Package.underscore._,r=Package.minimongo.LocalCollection,i=Package.minimongo.Minimongo,c=Package["ddp-client"].DDP,l=Package.tracker.Tracker,a=Package.tracker.Deps,s=Package["diff-sequence"].DiffSequence,d=Package["mongo-id"].MongoID,u=Package.check.check,f=Package.check.Match,_,p;(function(){_=function(){var e=this;e.noConnCollections={}};var e=function(e,n){return e in n||(n[e]=new r(e)),n[e]};t.extend(_.prototype,{open:function(n,o){var t=this;return n?o?(o._mongo_livedata_collections||(o._mongo_livedata_collections={}),e(n,o._mongo_livedata_collections)):e(n,t.noConnCollections):new r}}),_=new _}).call(this),function(){p={},p.Collection=function(o,i){var l=this;if(!(l instanceof p.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(i&&i.methods&&(i={connection:i}),i&&i.manager&&!i.connection&&(i.connection=i.manager),i=t.extend({connection:void 0,idGeneration:"STRING",transform:null,_driver:void 0,_preventAutopublish:!1},i),i.idGeneration){case"MONGO":l._makeNewID=function(){var e=o?c.randomStream("/collection/"+o):n.insecure;return new p.ObjectID(e.hexString(24))};break;case"STRING":default:l._makeNewID=function(){var e=o?c.randomStream("/collection/"+o):n.insecure;return e.id()}}if(l._transform=r.wrapTransform(i.transform),o&&null!==i.connection?i.connection?l._connection=i.connection:e.isClient?l._connection=e.connection:l._connection=e.server:l._connection=null,i._driver||(o&&l._connection===e.server&&"undefined"!=typeof MongoInternals&&MongoInternals.defaultRemoteCollectionDriver?i._driver=MongoInternals.defaultRemoteCollectionDriver():i._driver=_),l._collection=i._driver.open(o,l._connection),l._name=o,l._driver=i._driver,l._connection&&l._connection.registerStore){var a=l._connection.registerStore(o,{beginUpdate:function(e,n){(e>1||n)&&l._collection.pauseObservers(),n&&l._collection.remove({})},update:function(e){var n=d.idParse(e.id),o=l._collection.findOne(n);if("replace"===e.msg){var r=e.replace;return void(r?o?l._collection.update(n,r):l._collection.insert(r):o&&l._collection.remove(n))}if("added"===e.msg){if(o)throw new Error("Expected not to find a document already present for an add");l._collection.insert(t.extend({_id:n},e.fields))}else if("removed"===e.msg){if(!o)throw new Error("Expected to find a document already present for removed");l._collection.remove(n)}else{if("changed"!==e.msg)throw new Error("I don't know how to deal with this message");if(!o)throw new Error("Expected to find a document to change");if(!t.isEmpty(e.fields)){var i={};t.each(e.fields,function(e,n){void 0===e?(i.$unset||(i.$unset={}),i.$unset[n]=1):(i.$set||(i.$set={}),i.$set[n]=e)}),l._collection.update(n,i)}}},endUpdate:function(){l._collection.resumeObservers()},saveOriginals:function(){l._collection.saveOriginals()},retrieveOriginals:function(){return l._collection.retrieveOriginals()},getDoc:function(e){return l.findOne(e)}});if(!a)throw new Error("There is already a collection named '"+o+"'")}l._defineMutationMethods(),Package.autopublish&&!i._preventAutopublish&&l._connection&&l._connection.publish&&l._connection.publish(null,function(){return l.find()},{is_auto:!0})},t.extend(p.Collection.prototype,{_getFindSelector:function(e){return 0==e.length?{}:e[0]},_getFindOptions:function(e){var n=this;return e.length<2?{transform:n._transform}:(u(e[1],f.Optional(f.ObjectIncluding({fields:f.Optional(f.OneOf(Object,void 0)),sort:f.Optional(f.OneOf(Object,Array,void 0)),limit:f.Optional(f.OneOf(Number,void 0)),skip:f.Optional(f.OneOf(Number,void 0))}))),t.extend({transform:n._transform},e[1]))},find:function(){var e=this,n=t.toArray(arguments);return e._collection.find(e._getFindSelector(n),e._getFindOptions(n))},findOne:function(){var e=this,n=t.toArray(arguments);return e._collection.findOne(e._getFindSelector(n),e._getFindOptions(n))}}),p.Collection._publishCursor=function(e,n,o){var t=e.observeChanges({added:function(e,t){n.added(o,e,t)},changed:function(e,t){n.changed(o,e,t)},removed:function(e){n.removed(o,e)}});n.onStop(function(){t.stop()})},p.Collection._rewriteSelector=function(e){if(r._selectorIsId(e)&&(e={_id:e}),t.isArray(e))throw new Error("Mongo selector can't be an array.");if(!e||"_id"in e&&!e._id)return{_id:n.id()};var o={};return t.each(e,function(e,n){e instanceof RegExp?o[n]=i(e):e&&e.$regex instanceof RegExp?(o[n]=i(e.$regex),void 0!==e.$options&&(o[n].$options=e.$options)):t.contains(["$or","$and","$nor"],n)?o[n]=t.map(e,function(e){return p.Collection._rewriteSelector(e)}):o[n]=e}),o};var i=function(e){u(e,RegExp);var n={$regex:e.source},o="";return e.ignoreCase&&(o+="i"),e.multiline&&(o+="m"),o&&(n.$options=o),n},l=function(n,o){if(!r._selectorIsIdPerhapsAsObject(n))throw new e.Error(403,"Not permitted. Untrusted code may only "+o+" documents by ID.")};t.each(["insert","update","remove"],function(n){p.Collection.prototype[n]=function(){var o=this,r=t.toArray(arguments),i,a,s;if(r.length&&(void 0===r[r.length-1]||r[r.length-1]instanceof Function)&&(i=r.pop()),"insert"===n){if(!r.length)throw new Error("insert requires an argument");if(r[0]=t.extend({},r[0]),"_id"in r[0]){if(a=r[0]._id,!a||!("string"==typeof a||a instanceof p.ObjectID))throw new Error("Meteor requires document _id fields to be non-empty strings or ObjectIDs")}else{var d=!0;if(o._connection&&o._connection!==e.server){var u=c._CurrentInvocation.get();u||(d=!1)}d&&(a=r[0]._id=o._makeNewID())}}else if(r[0]=p.Collection._rewriteSelector(r[0]),"update"===n){var f=r[2]=t.clone(r[2])||{};if(f&&"function"!=typeof f&&f.upsert)if(f.insertedId){if(!("string"==typeof f.insertedId||f.insertedId instanceof p.ObjectID))throw new Error("insertedId must be string or ObjectID")}else r[0]._id||(f.insertedId=o._makeNewID())}var _=function(e){return"insert"===n?(!a&&e&&(a=e),a):e},v;if(i&&(v=function(e,n){i(e,!e&&_(n))}),o._connection&&o._connection!==e.server){var u=c._CurrentInvocation.get(),h=u&&u.isSimulation;!e.isClient||v||h||(v=function(o){o&&e._debug(n+" failed: "+(o.reason||o.stack))}),h||"insert"===n||l(r[0],n),s=_(o._connection.apply(o._prefix+n,r,{returnStubValue:!0},v))}else{r.push(v);try{var m=o._collection[n].apply(o._collection,r);s=_(m)}catch(w){if(i)return i(w),null;throw w}}return s}}),p.Collection.prototype.upsert=function(e,n,o,r){var i=this;return r||"function"!=typeof o||(r=o,o={}),i.update(e,n,t.extend({},o,{_returnObject:!0,upsert:!0}),r)},p.Collection.prototype._ensureIndex=function(e,n){var o=this;if(!o._collection._ensureIndex)throw new Error("Can only call _ensureIndex on server collections");o._collection._ensureIndex(e,n)},p.Collection.prototype._dropIndex=function(e){var n=this;if(!n._collection._dropIndex)throw new Error("Can only call _dropIndex on server collections");n._collection._dropIndex(e)},p.Collection.prototype._dropCollection=function(){var e=this;if(!e._collection.dropCollection)throw new Error("Can only call _dropCollection on server collections");e._collection.dropCollection()},p.Collection.prototype._createCappedCollection=function(e,n){var o=this;if(!o._collection._createCappedCollection)throw new Error("Can only call _createCappedCollection on server collections");o._collection._createCappedCollection(e,n)},p.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()},p.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},p.ObjectID=d.ObjectID,p.Cursor=r.Cursor,p.Collection.Cursor=p.Cursor,p.Collection.ObjectID=p.ObjectID,function(){var e=function(e,n){var o=["insert","update","remove","fetch","transform"];t.each(t.keys(n),function(n){if(!t.contains(o,n))throw new Error(e+": Invalid key: "+n)});var i=this;if(i._restricted=!0,t.each(["insert","update","remove"],function(o){if(n.hasOwnProperty(o)){if(!(n[o]instanceof Function))throw new Error(e+": Value for `"+o+"` must be a function");void 0===n.transform?n[o].transform=i._transform:n[o].transform=r.wrapTransform(n.transform),i._validators[o][e].push(n[o])}}),n.update||n.remove||n.fetch){if(n.fetch&&!(n.fetch instanceof Array))throw new Error(e+": Value for `fetch` must be an array");i._updateFetch(n.fetch)}};p.Collection.prototype.allow=function(n){e.call(this,"allow",n)},p.Collection.prototype.deny=function(n){e.call(this,"deny",n)}}(),p.Collection.prototype._defineMutationMethods=function(){var n=this;if(n._restricted=!1,n._insecure=void 0,n._validators={insert:{allow:[],deny:[]},update:{allow:[],deny:[]},remove:{allow:[],deny:[]},upsert:{allow:[],deny:[]},fetch:[],fetchAllFields:!1},n._name&&(n._prefix="/"+n._name+"/",n._connection)){var o={};t.each(["insert","update","remove"],function(r){o[n._prefix+r]=function(){u(arguments,[f.Any]);var o=t.toArray(arguments);try{var i=null;if("insert"!==r||t.has(o[0],"_id")||(i=n._makeNewID()),this.isSimulation)return null!==i&&(o[0]._id=i),n._collection[r].apply(n._collection,o);if("insert"!==r&&l(o[0],r),n._restricted){if(0===n._validators[r].allow.length)throw new e.Error(403,"Access denied. No allow validators set on restricted collection for method '"+r+"'.");var c="_validated"+r.charAt(0).toUpperCase()+r.slice(1);return o.unshift(this.userId),"insert"===r&&o.push(i),n[c].apply(n,o)}if(n._isInsecure())return null!==i&&(o[0]._id=i),n._collection[r].apply(n._collection,o);throw new e.Error(403,"Access denied")}catch(a){throw"MongoError"===a.name||"MinimongoError"===a.name?new e.Error(409,a.toString()):a}}}),(e.isClient||n._connection===e.server)&&n._connection.methods(o)}},p.Collection.prototype._updateFetch=function(e){var n=this;n._validators.fetchAllFields||(e?n._validators.fetch=t.union(n._validators.fetch,e):(n._validators.fetchAllFields=!0,n._validators.fetch=null))},p.Collection.prototype._isInsecure=function(){var e=this;return void 0===e._insecure?!!Package.insecure:e._insecure};var a=function(e,n,t){var r=n;return e.transform&&(r=o.clone(n),null!==t&&(r._id=t),r=e.transform(r)),r};p.Collection.prototype._validatedInsert=function(n,o,r){var i=this;if(t.any(i._validators.insert.deny,function(e){return e(n,a(e,o,r))}))throw new e.Error(403,"Access denied");if(t.all(i._validators.insert.allow,function(e){return!e(n,a(e,o,r))}))throw new e.Error(403,"Access denied");null!==r&&(o._id=r),i._collection.insert.call(i._collection,o)};var s=function(e,n){return e.transform?e.transform(n):n};p.Collection.prototype._validatedUpdate=function(n,o,i,c){var l=this;if(u(i,Object),c=t.clone(c)||{},!r._selectorIsIdPerhapsAsObject(o))throw new Error("validated update should be of a single ID");if(c.upsert)throw new e.Error(403,"Access denied. Upserts not allowed in a restricted collection.");var a="Access denied. In a restricted collection you can only update documents, not replace them. Use a Mongo update operator, such as '$set'.",d=[];if(t.isEmpty(i))throw new e.Error(403,a);t.each(i,function(n,o){if("$"!==o.charAt(0))throw new e.Error(403,a);if(!t.has(v,o))throw new e.Error(403,"Access denied. Operator "+o+" not allowed in a restricted collection.");t.each(t.keys(n),function(e){-1!==e.indexOf(".")&&(e=e.substring(0,e.indexOf("."))),t.contains(d,e)||d.push(e)})});var f={transform:null};l._validators.fetchAllFields||(f.fields={},t.each(l._validators.fetch,function(e){f.fields[e]=1}));var _=l._collection.findOne(o,f);if(!_)return 0;if(t.any(l._validators.update.deny,function(e){var o=s(e,_);return e(n,o,d,i)}))throw new e.Error(403,"Access denied");if(t.all(l._validators.update.allow,function(e){var o=s(e,_);return!e(n,o,d,i)}))throw new e.Error(403,"Access denied");return c._forbidReplace=!0,l._collection.update.call(l._collection,o,i,c)};var v={$inc:1,$set:1,$unset:1,$addToSet:1,$pop:1,$pullAll:1,$pull:1,$pushAll:1,$push:1,$bit:1};p.Collection.prototype._validatedRemove=function(n,o){var r=this,i={transform:null};r._validators.fetchAllFields||(i.fields={},t.each(r._validators.fetch,function(e){i.fields[e]=1}));var c=r._collection.findOne(o,i);if(!c)return 0;if(t.any(r._validators.remove.deny,function(e){return e(n,s(e,c))}))throw new e.Error(403,"Access denied");if(t.all(r._validators.remove.allow,function(e){return!e(n,s(e,c))}))throw new e.Error(403,"Access denied");return r._collection.remove.call(r._collection,o)},e.Collection=p.Collection}.call(this),"undefined"==typeof Package&&(Package={}),Package.mongo={Mongo:p}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t,n;(function(){!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.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:1===e.nodeType&&t?!0:"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(fe.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=xe[e]={};return ie.each(e.match(be)||[],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 u(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(Ee,"-$1").toLowerCase();if(n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Ne.test(n)?ie.parseJSON(n):n}catch(i){}ie.data(e,t,n)}else n=void 0}return n}function l(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,u=s?ie.cache:e,l=s?e[a]:e[a]&&a;if(l&&u[l]&&(r||u[l].data)||void 0!==n||"string"!=typeof t)return l||(l=s?e[a]=J.pop()||ie.guid++:a),u[l]||(u[l]=s?{}:{toJSON:ie.noop}),("object"==typeof t||"function"==typeof t)&&(r?u[l]=ie.extend(u[l],t):u[l].data=ie.extend(u[l].data,t)),o=u[l],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[ie.camelCase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[ie.camelCase(t)])):i=o,i}}function d(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)){ie.isArray(t)?t=t.concat(ie.map(t,ie.camelCase)):t in r?t=[t]:(t=ie.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!l(r):!ie.isEmptyObject(r))return}(n||(delete a[s].data,l(a[s])))&&(o?ie.cleanData([e],!0):ne.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function f(){return!0}function p(){return!1}function h(){try{return he.activeElement}catch(e){}}function m(e){var t=Fe.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!==Te?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==Te?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 v(e){je.test(e.type)&&(e.defaultChecked=e.checked)}function y(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=Ve.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;i>r;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&&je.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=Ze[e];return n||(n=N(e,t),"none"!==n&&n||(Ke=(Ke||ie("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=(Ke[0].contentWindow||Ke[0].contentDocument).document,t.write(),t.close(),n=N(e,t),Ke.detach()),Ze[e]=n),n}function k(e,t){return{get:function(){var n=e();if(null!=n)return n?void delete this.get:(this.get=t).apply(this,arguments)}}}function S(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=ft.length;i--;)if(t=ft[i]+n,t in e)return t;return r}function A(e,t){for(var n,r,i,o=[],a=0,s=e.length;s>a;a++)r=e[a],r.style&&(o[a]=ie._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Ae(r)&&(o[a]=ie._data(r,"olddisplay",E(r.nodeName)))):(i=Ae(r),(n&&"none"!==n||!i)&&ie._data(r,"olddisplay",i?n:ie.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function D(e,t,n){var r=ut.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function j(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;4>o;o+=2)"margin"===n&&(a+=ie.css(e,n+Se[o],!0,i)),r?("content"===n&&(a-=ie.css(e,"padding"+Se[o],!0,i)),"margin"!==n&&(a-=ie.css(e,"border"+Se[o]+"Width",!0,i))):(a+=ie.css(e,"padding"+Se[o],!0,i),"padding"!==n&&(a+=ie.css(e,"border"+Se[o]+"Width",!0,i)));return a}function L(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=nt(e),a=ne.boxSizing&&"border-box"===ie.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=rt(e,t,o),(0>i||null==i)&&(i=e.style[t]),tt.test(i))return i;r=a&&(ne.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+j(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(){pt=void 0}),pt=ie.now()}function _(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Se[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function M(e,t,n){for(var r,i=(bt[t]||[]).concat(bt["*"]),o=0,a=i.length;a>o;o++)if(r=i[o].call(n,t,e))return r}function F(e,t,n){var r,i,o,a,s,u,l,c,d=this,f={},p=e.style,h=e.nodeType&&Ae(e),m=ie._data(e,"fxshow");n.queue||(s=ie._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,d.always(function(){d.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],l=ie.css(e,"display"),c="none"===l?ie._data(e,"olddisplay")||E(e.nodeName):l,"inline"===c&&"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()||d.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],mt.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}f[r]=m&&m[r]||ie.style(e,r)}else l=void 0;if(ie.isEmptyObject(f))"inline"===("none"===l?E(e.nodeName):l)&&(p.display=l);else{m?"hidden"in m&&(h=m.hidden):m=ie._data(e,"fxshow",{}),o&&(m.hidden=!h),h?ie(e).show():d.done(function(){ie(e).hide()}),d.done(function(){var t;ie._removeData(e,"fxshow");for(t in f)ie.style(e,t,f[t])});for(r in f)a=M(h?m[r]:0,r,d),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],a&&"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 B(e,t,n){var r,i,o=0,a=yt.length,s=ie.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=pt||q(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;u>a;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),1>o&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:ie.extend({},t),opts:ie.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:pt||q(),duration:n.duration,tweens:[],createTween:function(t,n){var r=ie.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return t?s.resolveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),c=l.props;for(O(c,l.opts.specialEasing);a>o;o++)if(r=yt[o].call(l,e,c,l.opts))return r;return ie.map(c,M,l),ie.isFunction(l.opts.start)&&l.opts.start.call(e,l),ie.fx.timer(ie.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function P(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(be)||[];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 u;return o[s]=!0,ie.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(t.dataTypes.unshift(l),i(l),!1)}),u}var o={},a=e===zt;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,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){u.unshift(a);break}if(u[0]in n)o=u[0];else{for(a in n){if(!u[0]||e.converters[a+" "+u[0]]){o=a;break}r||(r=a)}o=o||r}return o?(o!==u[0]&&u.unshift(o),n[o]):void 0}function z(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=l[u+" "+o]||l["* "+o],!a)for(i in l)if(s=i.split(" "),s[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){a===!0?a=l[i]:l[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(d){return{state:"parsererror",error:a?d:"No conversion from "+u+" 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||Vt.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(t){}}function U(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function V(e){return ie.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}var J=[],Y=J.slice,Q=J.concat,G=J.push,K=J.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,ue=function(e,t){return t.toUpperCase()};ie.fn=ie.prototype={jquery:re,constructor:ie,selector:"",length:0,toArray:function(){return Y.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:Y.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(Y.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:G,sort:J.sort,splice:J.splice},ie.extend=ie.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||ie.isFunction(a)||(a={}),s===u&&(a=this,s--);u>s;s++)if(null!=(i=arguments[s]))for(r in i)e=a[r],n=i[r],a!==n&&(l&&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(l,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(n){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,ue)},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(;a>o&&(i=t.apply(e[o],r),i!==!1);o++);else for(o in e)if(i=t.apply(e[o],r),i===!1)break}else if(s)for(;a>o&&(i=t.call(e[o],o,e[o]),i!==!1);o++);else for(o in e)if(i=t.call(e[o],o,e[o]),i===!1)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?0>n?Math.max(0,r+n):n:0;r>n;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;n>r;)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;a>o;o++)r=!t(e[o],o),r!==s&&i.push(e[o]);return i},map:function(e,t,r){var i,o=0,a=e.length,s=n(e),u=[];if(s)for(;a>o;o++)i=t(e[o],o,r),null!=i&&u.push(i);else for(o in e)i=t(e[o],o,r),null!=i&&u.push(i);return Q.apply([],u)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(i=e[t],t=e,e=i),ie.isFunction(e)?(n=Y.call(arguments,2),r=function(){return e.apply(t||this,n.concat(Y.call(arguments)))},r.guid=e.guid=e.guid||ie.guid++,r):void 0},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 le=function(e){function t(e,t,n,r){var i,o,a,s,u,l,d,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=ye.exec(e)))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&B(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=d=P,h=t,m=1!==s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(l=E(e),(d=t.getAttribute("id"))?p=d.replace(xe,"\\$&"):t.setAttribute("id",p),p="[id='"+p+"'] ",u=l.length;u--;)l[u]=p+f(l[u]);h=be.test(e)&&c(t.parentNode)||t,m=l.join(",")}if(m)try{return K.apply(n,h.querySelectorAll(m)),n}catch(g){}finally{d||t.removeAttribute("id")}}}return S(e.replace(ue,"$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[P]=!0,e}function i(e){var t=H.createElement("div");try{return!!e(t)}catch(n){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){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(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&&"undefined"!=typeof e.getElementsByTagName&&e}function d(){}function f(e){for(var t=0,n=e.length,r="";n>t;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,u,l=[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(u=t[P]||(t[P]={}),(s=u[r])&&s[0]===W&&s[1]===o)return l[2]=s[2];if(u[r]=l,l[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;o>i;i++)t(e,n[i],r);return r}function g(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;u>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),l&&t.push(s));return a}function v(e,t,n,i,o,a){return i&&!i[P]&&(i=v(i)),o&&!o[P]&&(o=v(o,a)),r(function(r,a,s,u){var l,c,d,f=[],p=[],h=a.length,v=r||m(t||"*",s.nodeType?[s]:s,[]),y=!e||!r&&t?v:g(v,f,e,s,u),b=n?o||(r?e:h||i)?[]:a:y;if(n&&n(y,b,s,u),i)for(l=g(b,p),i(l,[],s,u),c=l.length;c--;)(d=l[c])&&(b[p[c]]=!(y[p[c]]=d));if(r){if(o||e){if(o){for(l=[],c=b.length;c--;)(d=b[c])&&l.push(y[c]=d);o(null,b=[],l,u)}for(c=b.length;c--;)(d=b[c])&&(l=o?ee(r,d):f[c])>-1&&(r[l]=!(a[l]=d))}}else b=g(b===a?b.splice(h,b.length):b),o?o(null,a,b,u):K.apply(a,b)})}function y(e){for(var t,n,r,i=e.length,o=T.relative[e[0].type],a=o||T.relative[" "],s=o?1:0,u=p(function(e){return e===t},a,!0),l=p(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==A)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];i>s;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),n[P]){for(r=++s;i>r&&!T.relative[e[r].type];r++);return v(s>1&&h(c),s>1&&f(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ue,"$1"),n,r>s&&y(e.slice(s,r)),i>r&&y(e=e.slice(r)),i>r&&f(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,u,l){var c,d,f,p=0,h="0",m=r&&[],v=[],y=A,b=r||o&&T.find.TAG("*",l),x=W+=null==y?1:Math.random()||.1,w=b.length;for(l&&(A=a!==H&&a);h!==w&&null!=(c=b[h]);h++){if(o&&c){for(d=0;f=e[d++];)if(f(c,a,s)){u.push(c);break}l&&(W=x)}i&&((c=!f&&c)&&p--,r&&m.push(c))}if(p+=h,i&&h!==p){for(d=0;f=n[d++];)f(m,v,a,s);if(r){if(p>0)for(;h--;)m[h]||v[h]||(v[h]=Q.call(u));v=g(v)}K.apply(u,v),l&&!r&&v.length>0&&p+n.length>1&&t.uniqueSort(u)}return l&&(W=x,A=y),m};return i?r(a):a}var x,w,T,C,N,E,k,S,A,D,j,L,H,q,_,M,F,O,B,P="sizzle"+1*new Date,R=e.document,W=0,$=0,z=n(),I=n(),X=n(),U=function(e,t){return e===t&&(j=!0),0},V=1<<31,J={}.hasOwnProperty,Y=[],Q=Y.pop,G=Y.push,K=Y.push,Z=Y.slice,ee=function(e,t){for(var n=0,r=e.length;r>n;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"),ue=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),le=new RegExp("^"+ne+"*,"+ne+"*"),ce=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),de=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=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,ve=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\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:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Ce=function(){L()};try{K.apply(Y=Z.call(R.childNodes),R.childNodes),Y[R.childNodes.length].nodeType}catch(Ne){K={apply:Y.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:!1},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!==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=ve.test(r.getElementsByClassName),w.getById=i(function(e){return q.appendChild(e).id=P,!r.getElementsByName||!r.getElementsByName(P).length}),w.getById?(T.find.ID=function(e,t){if("undefined"!=typeof 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="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof 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){return _?t.getElementsByClassName(e):void 0},F=[],M=[],(w.qsa=ve.test(r.querySelectorAll))&&(i(function(e){q.appendChild(e).innerHTML="<a id='"+P+"'></a><select id='"+P+"-\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~="+P+"-]").length||M.push("~="),e.querySelectorAll(":checked").length||M.push(":checked"),e.querySelectorAll("a#"+P+"+*").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=ve.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=ve.test(q.compareDocumentPosition),B=t||ve.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 j=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?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&&B(R,e)?-1:t===r||t.ownerDocument===R&&B(R,t)?1:D?ee(D,e)-ee(D,t):0:4&n?-1:1)}:function(e,t){if(e===t)return j=!0,0;var n,i=0,o=e.parentNode,s=t.parentNode,u=[e],l=[t];if(!o||!s)return e===r?-1:t===r?1:o?-1:s?1:D?ee(D,e)-ee(D,t):0;if(o===s)return a(e,t);for(n=e;n=n.parentNode;)u.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;u[i]===l[i];)i++;return i?a(u[i],l[i]):u[i]===R?-1:l[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(de,"='$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(i){}return t(n,H,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==H&&L(e),B(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==H&&L(e);var n=T.attrHandle[t.toLowerCase()],r=n&&J.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(j=!w.detectDuplicates,D=!w.sortStable&&e.slice(0),e.sort(U),j){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return D=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&&fe.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||"undefined"!=typeof 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+"-":!1):!0}},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,u){var l,c,d,f,p,h,m=o!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!u&&!s;if(g){if(o){for(;m;){for(d=t;d=d[m];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(c=g[P]||(g[P]={}),l=c[e]||[],p=l[0]===W&&l[1],f=l[0]===W&&l[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(f=p=0)||h.pop();)if(1===d.nodeType&&++f&&d===t){c[e]=[W,p,f];break}}else if(y&&(l=(t[P]||(t[P]={}))[e])&&l[0]===W)f=l[1];else for(;(d=++p&&d&&d[m]||(f=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++f||(y&&((d[P]||(d[P]={}))[e]=[W,f]),d!==t)););return f-=i,f===r||f%r===0&&f/r>=0}}},PSEUDO:function(e,n){var i,o=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[P]?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--;)r=ee(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(ue,"$1"));return i[P]?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(),n===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 e.disabled===!1},disabled:function(e){return e.disabled===!0},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,e.selected===!0},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:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[0>n?n+t:n]}),even:l(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},T.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]=u(x);return d.prototype=T.filters=T.pseudos,T.setFilters=new d,E=t.tokenize=function(e,n){var r,i,o,a,s,u,l,c=I[e+" "];if(c)return n?0:c.slice(0);for(s=e,u=[],l=T.preFilter;s;){(!r||(i=le.exec(s)))&&(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=ce.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(ue," ")}),s=s.slice(r.length));
|
||
|
||
for(a in T.filter)!(i=he[a].exec(s))||l[a]&&!(i=l[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,u).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=y(t[n]),o[P]?r.push(o):i.push(o);o=X(e,b(i,r)),o.selector=e}return o},S=t.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,d=!r&&E(e=l.selector||e);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.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],!t)return n;l&&(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((u=T.find[s])&&(r=u(a.matches[0].replace(we,Te),be.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&f(o),!e)return K.apply(n,r),n;break}}return(l||k(e,d))(r,t,!_,n,be.test(e)&&c(t.parentNode)||t),n},w.sortStable=P.split("").sort(U).join("")===P,w.detectDuplicates=!!j,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){return n?void 0: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){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);ie.find=le,ie.expr=le.selectors,ie.expr[":"]=ie.expr.pseudos,ie.unique=le.uniqueSort,ie.text=le.getText,ie.isXMLDoc=le.isXML,ie.contains=le.contains;var ce=ie.expr.match.needsContext,de=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,fe=/^.[^:#\[\.,]*$/;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;i>t;t++)if(ie.contains(r[t],this))return!0}));for(t=0;i>t;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-]*))$/,ge=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||!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)),de.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&&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)?"undefined"!=typeof pe.ready?pe.ready(e):e(ie):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),ie.makeArray(e,this))};ge.prototype=ie.fn,pe=ie(he);var ve=/^(?: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;r>t;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;i>r;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)),ve.test(e)&&(i=i.reverse())),this.pushStack(i)}});var be=/\S+/g,xe={};ie.Callbacks=function(e){e="string"==typeof e?xe[e]||o(e):ie.extend({},e);var t,n,r,i,a,s,u=[],l=!e.once&&[],c=function(o){for(n=e.memory&&o,r=!0,a=s||0,s=0,i=u.length,t=!0;u&&i>a;a++)if(u[a].apply(o[0],o[1])===!1&&e.stopOnFalse){n=!1;break}t=!1,u&&(l?l.length&&c(l.shift()):n?u=[]:d.disable())},d={add:function(){if(u){var r=u.length;!function o(t){ie.each(t,function(t,n){var r=ie.type(n);"function"===r?e.unique&&d.has(n)||u.push(n):n&&n.length&&"string"!==r&&o(n)})}(arguments),t?i=u.length:n&&(s=r,c(n))}return this},remove:function(){return u&&ie.each(arguments,function(e,n){for(var r;(r=ie.inArray(n,u,r))>-1;)u.splice(r,1),t&&(i>=r&&i--,a>=r&&a--)}),this},has:function(e){return e?ie.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],i=0,this},disable:function(){return u=l=n=void 0,this},disabled:function(){return!u},lock:function(){return l=void 0,n||d.disable(),this},locked:function(){return!l},fireWith:function(e,n){return!u||r&&!l||(n=n||[],n=[e,n.slice?n.slice():n],t?l.push(n):c(n)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},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=Y.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?Y.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,u,l;if(r>1)for(s=new Array(r),u=new Array(r),l=new Array(r);r>t;t++)n[t]&&ie.isFunction(n[t].promise)?n[t].promise().done(a(t,l,n)).fail(o.reject).progress(a(t,u,s)):--i;return i||o.resolveWith(l,n),o.promise()}});var we;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(e===!0?!--ie.readyWait:!ie.isReady){if(!he.body)return setTimeout(ie.ready);ie.isReady=!0,e!==!0&&--ie.readyWait>0||(we.resolveWith(he,[ie]),ie.fn.triggerHandler&&(ie(he).triggerHandler("ready"),ie(he).off("ready")))}}}),ie.ready.promise=function(t){if(!we)if(we=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(r){}n&&n.doScroll&&!function i(){if(!ie.isReady){try{n.doScroll("left")}catch(e){return setTimeout(i,50)}a(),ie.ready()}}()}return we.promise(t)};var Te="undefined",Ce;for(Ce in ie(ne))break;ne.ownLast="0"!==Ce,ne.inlineBlockNeedsLayout=!1,ie(function(){var e,t,n,r;n=he.getElementsByTagName("body")[0],n&&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!==Te&&(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(t){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?!1:!t||t!==!0&&e.getAttribute("classid")===t};var Ne=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ee=/([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],!!e&&!l(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return d(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return d(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]&&(r=a[n].name,0===r.indexOf("data-")&&(r=ie.camelCase(r.slice(5)),u(o,r,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?u(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;return e?(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||[]):void 0},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&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ke=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Se=["Top","Right","Bottom","Left"],Ae=function(e,t){return e=t||e,"none"===ie.css(e,"display")||!ie.contains(e.ownerDocument,e)},De=ie.access=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=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),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ie(e),n)})),t))for(;u>s;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},je=/^(?: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(r){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"]=r.attributes[n].expando===!1);r=null}();var Le=/^(?:input|select|textarea)$/i,He=/^key/,qe=/^(?:mouse|pointer|contextmenu)|click/,_e=/^(?:focusinfocus|focusoutblur)$/,Me=/^([^.]*)(?:\.(.+)|)$/;ie.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,d,f,p,h,m,g=ie._data(e);if(g){for(n.handler&&(u=n,n=u.handler,i=u.selector),n.guid||(n.guid=ie.guid++),(a=g.events)||(a=g.events={}),(c=g.handle)||(c=g.handle=function(e){return typeof ie===Te||e&&ie.event.triggered===e.type?void 0:ie.event.dispatch.apply(c.elem,arguments)},c.elem=e),t=(t||"").match(be)||[""],s=t.length;s--;)o=Me.exec(t[s])||[],p=m=o[1],h=(o[2]||"").split(".").sort(),p&&(l=ie.event.special[p]||{},p=(i?l.delegateType:l.bindType)||p,l=ie.event.special[p]||{},d=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(".")},u),(f=a[p])||(f=a[p]=[],f.delegateCount=0,l.setup&&l.setup.call(e,r,h,c)!==!1||(e.addEventListener?e.addEventListener(p,c,!1):e.attachEvent&&e.attachEvent("on"+p,c))),l.add&&(l.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,d):f.push(d),ie.event.global[p]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,d,f,p,h,m,g=ie.hasData(e)&&ie._data(e);if(g&&(c=g.events)){for(t=(t||"").match(be)||[""],l=t.length;l--;)if(s=Me.exec(t[l])||[],p=m=s[1],h=(s[2]||"").split(".").sort(),p){for(d=ie.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,f=c[p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=f.length;o--;)a=f[o],!i&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,d.remove&&d.remove.call(e,a));u&&!f.length&&(d.teardown&&d.teardown.call(e,h,g.handle)!==!1||ie.removeEvent(e,p,g.handle),delete c[p])}else for(p in c)ie.event.remove(e,p+t[l],n,r,!0);ie.isEmptyObject(c)&&(delete g.handle,ie._removeData(e,"events"))}},trigger:function(t,n,r,i){var o,a,s,u,l,c,d,f=[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&&!_e.test(p+ie.event.triggered)&&(p.indexOf(".")>=0&&(h=p.split("."),p=h.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]),l=ie.event.special[p]||{},i||!l.trigger||l.trigger.apply(r,n)!==!1)){if(!i&&!l.noBubble&&!ie.isWindow(r)){for(u=l.delegateType||p,_e.test(u+p)||(s=s.parentNode);s;s=s.parentNode)f.push(s),c=s;c===(r.ownerDocument||he)&&f.push(c.defaultView||c.parentWindow||e)}for(d=0;(s=f[d++])&&!t.isPropagationStopped();)t.type=d>1?u:l.bindType||p,o=(ie._data(s,"events")||{})[t.type]&&ie._data(s,"handle"),o&&o.apply(s,n),o=a&&s[a],o&&o.apply&&ie.acceptData(s)&&(t.result=o.apply(s,n),t.result===!1&&t.preventDefault());if(t.type=p,!i&&!t.isDefaultPrevented()&&(!l._default||l._default.apply(f.pop(),n)===!1)&&ie.acceptData(r)&&a&&r[p]&&!ie.isWindow(r)){c=r[a],c&&(r[a]=null),ie.event.triggered=p;try{r[p]()}catch(m){}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=Y.call(arguments),u=(ie._data(this,"events")||{})[e.type]||[],l=ie.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(a=ie.event.handlers.call(this,e,u),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,n=((ie.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,s),void 0!==n&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(i=[],o=0;s>o;o++)r=t[o],n=r.selector+" ",void 0===i[n]&&(i[n]=r.needsContext?ie(n,this).index(u)>=0:ie.find(n,this,null,[u]).length),i[n]&&i.push(r);i.length&&a.push({elem:u,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=qe.test(i)?this.mouseHooks:He.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new ie.Event(o),t=r.length;t--;)n=r[t],e[n]=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&&(r=e.target.ownerDocument||he,i=r.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(){return this===h()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return ie.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_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]===Te&&(e[r]=null),e.detachEvent(r,n))},ie.Event=function(e,t){return this instanceof ie.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?f:p):this.type=e,t&&ie.extend(this,t),this.timeStamp=e&&e.timeStamp||ie.now(),void(this[ie.expando]=!0)):new ie.Event(e,t)},ie.Event.prototype={isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=f,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=f,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=f,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(){return ie.nodeName(this,"form")?!1:void 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(){return ie.nodeName(this,"form")?!1:void ie.event.remove(this,"._submit")}}),ne.changeBubbles||(ie.event.special.change={setup:function(){return Le.test(this.nodeName)?(("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):void ie.event.add(this,"beforeactivate._change",function(e){var t=e.target;Le.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;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return ie.event.remove(this,"._change"),!Le.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)),r===!1)r=p;else if(!r)return this;return 1===i&&(a=r,r=function(e){return ie().off(e),a.apply(this,arguments)},r.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(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(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];return n?ie.event.trigger(e,t,n,!0):void 0}});var Fe="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Oe=/ jQuery\d+="(?:null|\d+)"/g,Be=new RegExp("<(?:"+Fe+")[\\s/>]","i"),Pe=/^\s+/,Re=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,We=/<([\w:]+)/,$e=/<tbody/i,ze=/<|&#?\w+;/,Ie=/<(?:script|style|link)/i,Xe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ue=/^$|\/(?:java|ecma)script/i,Ve=/^true\/(.*)/,Je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ye={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>"]},Qe=m(he),Ge=Qe.appendChild(he.createElement("div"));Ye.optgroup=Ye.option,Ye.tbody=Ye.tfoot=Ye.colgroup=Ye.caption=Ye.thead,Ye.th=Ye.td,ie.extend({clone:function(e,t,n){var r,i,o,a,s,u=ie.contains(e.ownerDocument,e);if(ne.html5Clone||ie.isXMLDoc(e)||!Be.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Ge.innerHTML=e.outerHTML,Ge.removeChild(o=Ge.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"),r.length>0&&w(r,!u&&g(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){for(var i,o,a,s,u,l,c,d=e.length,f=m(t),p=[],h=0;d>h;h++)if(o=e[h],o||0===o)if("object"===ie.type(o))ie.merge(p,o.nodeType?[o]:o);else if(ze.test(o)){for(s=s||f.appendChild(t.createElement("div")),u=(We.exec(o)||["",""])[1].toLowerCase(),c=Ye[u]||Ye._default,s.innerHTML=c[1]+o.replace(Re,"<$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(o="table"!==u||$e.test(o)?"<table>"!==c[1]||$e.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;i--;)ie.nodeName(l=o.childNodes[i],"tbody")&&!l.childNodes.length&&o.removeChild(l);for(ie.merge(p,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=f.lastChild}else p.push(t.createTextNode(o));for(s&&f.removeChild(s),ne.appendChecked||ie.grep(g(p,"input"),v),h=0;o=p[h++];)if((!r||-1===ie.inArray(o,r))&&(a=ie.contains(o.ownerDocument,o),s=g(f.appendChild(o),"script"),a&&w(s),n))for(i=0;o=s[i++];)Ue.test(o.type||"")&&n.push(o);return s=null,f},cleanData:function(e,t){for(var n,r,i,o,a=0,s=ie.expando,u=ie.cache,l=ne.deleteExpando,c=ie.event.special;null!=(n=e[a]);a++)if((t||ie.acceptData(n))&&(i=n[s],o=i&&u[i])){if(o.events)for(r in o.events)c[r]?ie.event.remove(n,r):ie.removeEvent(n,r,o.handle);u[i]&&(delete u[i],l?delete n[s]:typeof n.removeAttribute!==Te?n.removeAttribute(s):n[s]=null,J.push(i))}}}),ie.fn.extend({text:function(e){return De(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){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=y(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=y(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?!1:e,t=null==t?e:t,this.map(function(){return ie.clone(this,e,t)})},html:function(e){return De(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Oe,""):void 0;if(!("string"!=typeof e||Ie.test(e)||!ne.htmlSerialize&&Be.test(e)||!ne.leadingWhitespace&&Pe.test(e)||Ye[(We.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(Re,"<$1></$2>");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(ie.cleanData(g(t,!1)),t.innerHTML=e);t=0}catch(i){}}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=Q.apply([],e);var n,r,i,o,a,s,u=0,l=this.length,c=this,d=l-1,f=e[0],p=ie.isFunction(f);if(p||l>1&&"string"==typeof f&&!ne.checkClone&&Xe.test(f))return this.each(function(n){var r=c.eq(n);p&&(e[0]=f.call(this,n,r.html())),r.domManip(e,t)});if(l&&(s=ie.buildFragment(e,this[0].ownerDocument,!1,this),n=s.firstChild,1===s.childNodes.length&&(s=n),n)){for(o=ie.map(g(s,"script"),b),i=o.length;l>u;u++)r=s,u!==d&&(r=ie.clone(r,!0,!0),i&&ie.merge(o,g(r,"script"))),t.call(this[u],r,u);if(i)for(a=o[o.length-1].ownerDocument,ie.map(o,x),u=0;i>u;u++)r=o[u],Ue.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(Je,"")));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;a>=r;r++)n=r===a?this:this.clone(!0),ie(o[r])[t](n),G.apply(i,n.get());return this.pushStack(i)}});var Ke,Ze={};!function(){var e;ne.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,r;return n=he.getElementsByTagName("body")[0],n&&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!==Te&&(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 et=/^margin/,tt=new RegExp("^("+ke+")(?!px)[a-z%]+$","i"),nt,rt,it=/^(top|right|bottom|left)$/;e.getComputedStyle?(nt=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)},rt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||nt(e),a=n?n.getPropertyValue(t)||n[t]:void 0,n&&(""!==a||ie.contains(e.ownerDocument,e)||(a=ie.style(e,t)),
|
||
tt.test(a)&&et.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&&(nt=function(e){return e.currentStyle},rt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||nt(e),a=n?n[t]:void 0,null==a&&s&&s[t]&&(a=s[t]),tt.test(a)&&!it.test(t)&&(r=s.left,i=e.runtimeStyle,o=i&&i.left,o&&(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&&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),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,u=!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")),i.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",u=!parseFloat((e.getComputedStyle(i,null)||{}).marginRight),t.removeChild(i)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",i=t.getElementsByTagName("td"),i[0].style.cssText="margin:0;border:0;padding:0;display:none",s=0===i[0].offsetHeight,s&&(i[0].style.display="",i[1].style.display="none",s=0===i[0].offsetHeight),n.removeChild(r))}var n,r,i,o,a,s,u;n=he.createElement("div"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=n.getElementsByTagName("a")[0],r=i&&i.style,r&&(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==u&&t(),u}}))}(),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 ot=/alpha\([^)]*\)/i,at=/opacity\s*=\s*([^)]*)/,st=/^(none|table(?!-c[ea]).+)/,ut=new RegExp("^("+ke+")(.*)$","i"),lt=new RegExp("^([+-])=("+ke+")","i"),ct={position:"absolute",visibility:"hidden",display:"block"},dt={letterSpacing:"0",fontWeight:"400"},ft=["Webkit","O","Moz","ms"];ie.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=rt(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),u=e.style;if(t=ie.cssProps[s]||(ie.cssProps[s]=S(u,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:u[t];if(o=typeof n,"string"===o&&(i=lt.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")||(u[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{u[t]=n}catch(l){}}},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],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=rt(e,t,r)),"normal"===o&&t in dt&&(o=dt[t]),""===n||n?(i=parseFloat(o),n===!0||ie.isNumeric(i)?i||0:o):o}}),ie.each(["height","width"],function(e,t){ie.cssHooks[t]={get:function(e,n,r){return n?st.test(ie.css(e,"display"))&&0===e.offsetWidth?ie.swap(e,ct,function(){return L(e,t,r)}):L(e,t,r):void 0},set:function(e,n,r){var i=r&&nt(e);return D(e,n,r?j(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 at.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(ot,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=ot.test(o)?o.replace(ot,i):o+" "+i)}}),ie.cssHooks.marginRight=k(ne.reliableMarginRight,function(e,t){return t?ie.swap(e,{display:"inline-block"},rt,[e,"marginRight"]):void 0}),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];4>r;r++)i[e+Se[r]+t]=o[r]||o[r-2]||o[0];return i}},et.test(e)||(ie.cssHooks[e+t].set=D)}),ie.fn.extend({css:function(e,t){return De(this,function(e,t,n){var r,i,o={},a=0;if(ie.isArray(t)){for(r=nt(e),i=t.length;i>a;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 A(this,!0)},hide:function(){return A(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ae(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 pt,ht,mt=/^(?:toggle|show|hide)$/,gt=new RegExp("^(?:([+-])=|)("+ke+")([a-z%]*)$","i"),vt=/queueHooks$/,yt=[F],bt={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=gt.exec(t),o=i&&i[3]||(ie.cssNumber[e]?"":"px"),a=(ie.cssNumber[e]||"px"!==o&&+r)&>.exec(ie.css(n.elem,e)),s=1,u=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,ie.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--u)}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(B,{tweener:function(e,t){ie.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;i>r;r++)n=e[r],bt[n]=bt[n]||[],bt[n].unshift(t)},prefilter:function(e,t){t?yt.unshift(e):yt.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||r.queue===!0)&&(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(Ae).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=B(this,ie.extend({},e),o);(i||ie._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?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&&e!==!1&&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&&vt.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 e!==!1&&(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;a>t;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(pt=ie.now();n<t.length;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||ie.fx.stop(),pt=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(){ht||(ht=setInterval(ie.fx.tick,ie.fx.interval))},ie.fx.stop=function(){clearInterval(ht),ht=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"),t.setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",r=t.getElementsByTagName("a")[0],n=he.createElement("select"),i=n.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"),e.setAttribute("value",""),ne.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),ne.radioValue="t"===e.value}();var xt=/\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&&(i=r?e.call(this,n,ie(this).val()):e,null==i?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()],t&&"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()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(xt,""):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||0>i,a=o?null:[],s=o?i+1:r.length,u=0>i?s:o?i:0;s>u;u++)if(n=r[u],!(!n.selected&&u!==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(s){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),ie.each(["radio","checkbox"],function(){ie.valHooks[this]={set:function(e,t){return ie.isArray(t)?e.checked=ie.inArray(ie(e).val(),t)>=0:void 0}},ne.checkOn||(ie.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var wt,Tt,Ct=ie.expr.attrHandle,Nt=/^(?:checked|selected)$/i,Et=ne.getSetAttribute,kt=ne.input;ie.fn.extend({attr:function(e,t){return De(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===Te?ie.prop(e,t,n):(1===o&&ie.isXMLDoc(e)||(t=t.toLowerCase(),r=ie.attrHooks[t]||(ie.expr.match.bool.test(t)?Tt:wt)),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(be);if(o&&1===e.nodeType)for(;n=o[i++];)r=ie.propFix[n]||n,ie.expr.match.bool.test(n)?kt&&Et||!Nt.test(n)?e[r]=!1:e[ie.camelCase("default-"+n)]=e[r]=!1:ie.attr(e,n,""),e.removeAttribute(Et?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}}}}}),Tt={set:function(e,t,n){return t===!1?ie.removeAttr(e,n):kt&&Et||!Nt.test(n)?e.setAttribute(!Et&&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=Ct[t]||ie.find.attr;Ct[t]=kt&&Et||!Nt.test(t)?function(e,t,r){var i,o;return r||(o=Ct[t],Ct[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,Ct[t]=o),i}:function(e,t,n){return n?void 0:e[ie.camelCase("default-"+t)]?t.toLowerCase():null}}),kt&&Et||(ie.attrHooks.value={set:function(e,t,n){return ie.nodeName(e,"input")?void(e.defaultValue=t):wt&&wt.set(e,t,n)}}),Et||(wt={set:function(e,t,n){var r=e.getAttributeNode(n);return r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n)?t:void 0}},Ct.id=Ct.name=Ct.coords=function(e,t,n){var r;return n?void 0:(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},ie.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:void 0},set:wt.set},ie.attrHooks.contenteditable={set:function(e,t,n){wt.set(e,""===t?!1:t,n)}},ie.each(["width","height"],function(e,t){ie.attrHooks[t]={set:function(e,n){return""===n?(e.setAttribute(t,"auto"),n):void 0}}})),ne.style||(ie.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var St=/^(?:input|select|textarea|button|object)$/i,At=/^(?:a|area)$/i;ie.fn.extend({prop:function(e,t){return De(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(t){}})}}),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),o&&(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):St.test(e.nodeName)||At.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 Dt=/[\t\r\n\f]/g;ie.fn.extend({addClass:function(e){var t,n,r,i,o,a,s=0,u=this.length,l="string"==typeof e&&e;if(ie.isFunction(e))return this.each(function(t){ie(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(be)||[];u>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Dt," "):" ")){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,u=this.length,l=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(l)for(t=(e||"").match(be)||[];u>s;s++)if(n=this[s],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Dt," "):"")){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):this.each(ie.isFunction(e)?function(n){ie(this).toggleClass(e.call(this,n,this.className,t),t)}:function(){if("string"===n)for(var t,r=0,i=ie(this),o=e.match(be)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else(n===Te||"boolean"===n)&&(this.className&&ie._data(this,"__className__",this.className),this.className=this.className||e===!1?"":ie._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Dt," ").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(),Lt=/\?/,Ht=/(,)|(\[|{)|(}|])|"(?:[^"\\\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(Ht,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"),n.async="false",n.loadXML(t))}catch(i){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||ie.error("Invalid XML: "+t),n};var qt,_t,Mt=/#.*$/,Ft=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Bt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Pt=/^(?:GET|HEAD)$/,Rt=/^\/\//,Wt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,$t={},zt={},It="*/".concat("*");try{_t=location.href}catch(Xt){_t=he.createElement("a"),_t.href="",_t=_t.href}qt=Wt.exec(_t.toLowerCase())||[],ie.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_t,type:"GET",isLocal:Bt.test(qt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,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:P($t),ajaxTransport:P(zt),ajax:function(e,t){function n(e,t,n,r){var i,c,v,y,x,T=t;2!==b&&(b=2,s&&clearTimeout(s),l=void 0,a=r||"",w.readyState=e>0?4:0,i=e>=200&&300>e||304===e,n&&(y=$(d,w,n)),y=z(d,y,w,i),i?(d.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(ie.lastModified[o]=x),x=w.getResponseHeader("etag"),x&&(ie.etag[o]=x)),204===e||"HEAD"===d.type?T="nocontent":304===e?T="notmodified":(T=y.state,c=y.data,v=y.error,i=!v)):(v=T,(e||!T)&&(T="error",0>e&&(e=0))),w.status=e,w.statusText=(t||T)+"",i?h.resolveWith(f,[c,T,w]):h.rejectWith(f,[w,T,v]),w.statusCode(g),g=void 0,u&&p.trigger(i?"ajaxSuccess":"ajaxError",[w,d,i?c:v]),m.fireWith(f,[w,T]),u&&(p.trigger("ajaxComplete",[w,d]),--ie.active||ie.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,u,l,c,d=ie.ajaxSetup({},t),f=d.context||d,p=d.context&&(f.nodeType||f.jquery)?ie(f):ie.event,h=ie.Deferred(),m=ie.Callbacks("once memory"),g=d.statusCode||{},v={},y={},b=0,x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c)for(c={};t=Ot.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=y[n]=y[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)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 l&&l.abort(t),n(0,t),this}};if(h.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,d.url=((e||d.url||_t)+"").replace(Mt,"").replace(Rt,qt[1]+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=ie.trim(d.dataType||"*").toLowerCase().match(be)||[""],null==d.crossDomain&&(r=Wt.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]===qt[1]&&r[2]===qt[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(qt[3]||("http:"===qt[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=ie.param(d.data,d.traditional)),R($t,d,t,w),2===b)return w;u=ie.event&&d.global,u&&0===ie.active++&&ie.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Pt.test(d.type),o=d.url,d.hasContent||(d.data&&(o=d.url+=(Lt.test(o)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=Ft.test(o)?o.replace(Ft,"$1_="+jt++):o+(Lt.test(o)?"&":"?")+"_="+jt++)),d.ifModified&&(ie.lastModified[o]&&w.setRequestHeader("If-Modified-Since",ie.lastModified[o]),ie.etag[o]&&w.setRequestHeader("If-None-Match",ie.etag[o])),(d.data&&d.hasContent&&d.contentType!==!1||t.contentType)&&w.setRequestHeader("Content-Type",d.contentType),w.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+It+"; q=0.01":""):d.accepts["*"]);for(i in d.headers)w.setRequestHeader(i,d.headers[i]);if(d.beforeSend&&(d.beforeSend.call(f,w,d)===!1||2===b))return w.abort();x="abort";for(i in{success:1,error:1,complete:1})w[i](d[i]);if(l=R(zt,d,t,w)){w.readyState=1,u&&p.trigger("ajaxSend",[w,d]),d.async&&d.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},d.timeout));try{b=1,l.send(v,n)}catch(T){if(!(2>b))throw T;n(-1,T)}}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 this.each(ie.isFunction(e)?function(t){ie(this).wrapInner(e.call(this,t))}: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 Ut=/%20/g,Vt=/\[\]$/,Jt=/\r?\n/g,Yt=/^(?:submit|button|image|reset|file)$/i,Qt=/^(?: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(Ut,"+")},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")&&Qt.test(this.nodeName)&&!Yt.test(e)&&(this.checked||!je.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(Jt,"\r\n")}}):{name:t.name,value:n.replace(Jt,"\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 Gt=0,Kt={},Zt=ie.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in Kt)Kt[e](void 0,!0)}),ne.cors=!!Zt&&"withCredentials"in Zt,Zt=ne.ajax=!!Zt,Zt&&ie.ajaxTransport(function(e){if(!e.crossDomain||ne.cors){var t;return{send:function(n,r){var i,o=e.xhr(),a=++Gt;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,u,l;if(t&&(i||4===o.readyState))if(delete Kt[a],t=void 0,o.onreadystatechange=ie.noop,i)4!==o.readyState&&o.abort();else{l={},s=o.status,"string"==typeof o.responseText&&(l.text=o.responseText);try{u=o.statusText}catch(c){u=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=l.text?200:404}l&&r(s,u,l,o.getAllResponseHeaders())},e.async?4===o.readyState?setTimeout(t):o.onreadystatechange=Kt[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"),t.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 en=[],tn=/(=)\?(?=&|$)|\?\?/;ie.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=en.pop()||ie.expando+"_"+jt++;return this[e]=!0,e}}),ie.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=t.jsonp!==!1&&(tn.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&tn.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(i=t.jsonpCallback=ie.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(tn,"$1"+i):t.jsonp!==!1&&(t.url+=(Lt.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,en.push(i)),a&&ie.isFunction(o)&&o(a[0]),a=o=void 0}),"script"):void 0}),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=de.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 nn=ie.fn.load;ie.fn.load=function(e,t,n){if("string"!=typeof e&&nn)return nn.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 rn=e.document.documentElement;ie.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l,c=ie.css(e,"position"),d=ie(e),f={};"static"===c&&(e.style.position="relative"),s=d.offset(),o=ie.css(e,"top"),u=ie.css(e,"left"),l=("absolute"===c||"fixed"===c)&&ie.inArray("auto",[o,u])>-1,l?(r=d.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),ie.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):d.css(f)}},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!==Te&&(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||rn;e&&!ie.nodeName(e,"html")&&"static"===ie.css(e,"position");)e=e.offsetParent;return e||rn})}}),ie.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);ie.fn[e]=function(r){return De(this,function(e,r,i){var o=V(e);return void 0===i?o?t in o?o[t]:o.document.documentElement[r]:e[r]:void(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){return n?(n=rt(e,t),tt.test(n)?ie(e).position()[t]+"px":n):void 0})}),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||(r===!0||i===!0?"margin":"border");
|
||
|
||
return De(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 on=e.jQuery,an=e.$;return ie.noConflict=function(t){return e.$===ie&&(e.$=an),t&&e.jQuery===ie&&(e.jQuery=on),ie},typeof t===Te&&(e.jQuery=e.$=ie),ie})}).call(this),function(){t=n=window.jQuery.noConflict()}.call(this),"undefined"==typeof Package&&(Package={}),Package.jquery={$:t,jQuery:n}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a=Package.tracker.Tracker,c=Package.tracker.Deps,a,c;"undefined"==typeof Package&&(Package={}),Package.deps={Tracker:a,Deps:c}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,e=Package.tracker.Tracker,r=Package.tracker.Deps,i,n,o;(function(){i={},n=function(t){return t},o=Array.prototype.slice}).call(this),function(){var t=Object.prototype.hasOwnProperty,e=function(e,r){for(var i in r)t.call(r,i)&&(e[i]=r[i]);return e};i.Visitor=function(t){e(this,t)},i.Visitor.def=function(t){e(this.prototype,t)},i.Visitor.extend=function(t){var r=this,n=function o(){i.Visitor.apply(this,arguments)};return n.prototype=new r,n.extend=r.extend,n.def=r.def,t&&e(n.prototype,t),n},i.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 i.Tag.htmljsType:return this.visitTag.apply(this,arguments);case i.CharRef.htmljsType:return this.visitCharRef.apply(this,arguments);case i.Comment.htmljsType:return this.visitComment.apply(this,arguments);case i.Raw.htmljsType:return this.visitRaw.apply(this,arguments);default:throw new Error("Unknown htmljs type: "+t.htmljsType)}return i.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: "+obj)}}),i.TransformingVisitor=i.Visitor.extend(),i.TransformingVisitor.def({visitNull:n,visitPrimitive:n,visitArray:function(t){for(var e=o.call(arguments),r=t,i=0;i<t.length;i++){var n=t[i];e[0]=n;var a=this.visit.apply(this,e);a!==n&&(r===t&&(r=t.slice()),r[i]=a)}return r},visitComment:n,visitCharRef:n,visitRaw:n,visitObject:n,visitFunction:n,visitTag:function(t){var e=t.children,r=o.call(arguments);r[0]=e;var n=this.visitChildren.apply(this,r),a=t.attrs;r[0]=a;var s=this.visitAttributes.apply(this,r);if(s===a&&n===e)return t;var u=i.getTag(t.tagName).apply(null,n);return u.attrs=s,u},visitChildren:function(t){return this.visitArray.apply(this,arguments)},visitAttributes:function(t){if(i.isArray(t)){for(var r=o.call(arguments),n=t,a=0;a<t.length;a++){var s=t[a];r[0]=s;var u=this.visitAttributes.apply(this,r);u!==s&&(n===t&&(n=t.slice()),n[a]=u)}return n}if(t&&i.isConstructedObject(t))throw new Error("The basic HTML.TransformingVisitor does not support foreign objects in attributes. Define a custom visitAttributes for this case.");var l=t,f=l;if(l){var c=[null,null];c.push.apply(c,arguments);for(var h in l){var p=l[h];c[0]=h,c[1]=p;var m=this.visitAttribute.apply(this,c);m!==p&&(f===l&&(f=e({},l)),f[h]=m)}}return f},visitAttribute:function(t,e,r){var i=o.call(arguments,2);return i[0]=e,this.visit.apply(this,i)}}),i.ToTextVisitor=i.Visitor.extend(),i.ToTextVisitor.def({visitNull:function(t){return""},visitPrimitive:function(t){var e=String(t);return this.textMode===i.TEXTMODE.RCDATA?e.replace(/&/g,"&").replace(/</g,"<"):this.textMode===i.TEXTMODE.ATTRIBUTE?e.replace(/&/g,"&").replace(/"/g,"""):e},visitArray:function(t){for(var e=[],r=0;r<t.length;r++)e.push(this.visit(t[r]));return e.join("")},visitComment:function(t){throw new Error("Can't have a comment here")},visitCharRef:function(t){return this.textMode===i.TEXTMODE.RCDATA||this.textMode===i.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 i.toHTML(t)}}),i.ToHTMLVisitor=i.Visitor.extend(),i.ToHTMLVisitor.def({visitNull:function(t){return""},visitPrimitive:function(t){var e=String(t);return e.replace(/&/g,"&").replace(/</g,"<")},visitArray:function(t){for(var e=[],r=0;r<t.length;r++)e.push(this.visit(t[r]));return e.join("")},visitComment:function(t){return"<!--"+t.sanitizedValue+"-->"},visitCharRef:function(t){return t.html},visitRaw:function(t){return t.value},visitTag:function(t){var e=[],r=t.tagName,n=t.children,o=t.attrs;if(o){o=i.flattenAttributes(o);for(var a in o)if("value"===a&&"textarea"===r)n=[o[a],n];else{var s=this.toText(o[a],i.TEXTMODE.ATTRIBUTE);e.push(" "+a+'="'+s+'"')}}var u="<"+r+e.join("")+">",l=[],f;if("textarea"===r){for(var c=0;c<n.length;c++)l.push(this.toText(n[c],i.TEXTMODE.RCDATA));f=l.join(""),"\n"===f.slice(0,1)&&(f="\n"+f)}else{for(var c=0;c<n.length;c++)l.push(this.visit(n[c]));f=l.join("")}var h=u+f;return(n.length||!i.isVoidElement(r))&&(h+="</"+r+">"),h},visitObject:function(t){throw new Error("Unexpected object in htmljs in toHTML: "+t)},toText:function(t,e){return i.toText(t,e)}})}.call(this),function(){i.Tag=function(){},i.Tag.prototype.tagName="",i.Tag.prototype.attrs=null,i.Tag.prototype.children=Object.freeze?Object.freeze([]):[],i.Tag.prototype.htmljsType=i.Tag.htmljsType=["Tag"];var t=function(t){var e=function(){var t=this instanceof i.Tag?this:new e,r=0,n=arguments.length&&arguments[0];if(n&&"object"==typeof n)if(i.isConstructedObject(n)){if(n instanceof i.Attrs){var a=n.value;1===a.length?t.attrs=a[0]:a.length>1&&(t.attrs=a),r++}}else t.attrs=n,r++;return r<arguments.length&&(t.children=o.call(arguments,r)),t};return e.prototype=new i.Tag,e.prototype.constructor=e,e.prototype.tagName=t,e},e=i.Attrs=function(){var t=this instanceof e?this:new e;return t.value=o.call(arguments),t};i.getTag=function(e){var r=i.getSymbolName(e);if(r===e)throw new Error("Use the lowercase or camelCase form of '"+e+"' here");return i[r]||(i[r]=t(e)),i[r]},i.ensureTag=function(t){i.getTag(t)},i.isTagEnsured=function(t){return i.isKnownElement(t)},i.getSymbolName=function(t){return t.toUpperCase().replace(/-/g,"_")},i.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(" "),i.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(" "),i.knownElementNames=i.knownElementNames.concat(i.knownSVGElementNames),i.voidElementNames="area base br col command embed hr img input keygen link meta param source track wbr".split(" ");var r={yes:!0},n=function(t){for(var e={},i=0;i<t.length;i++)e[t[i]]=r;return e},a=n(i.voidElementNames),s=n(i.knownElementNames),u=n(i.knownSVGElementNames);i.isKnownElement=function(t){return s[t]===r},i.isKnownSVGElement=function(t){return u[t]===r},i.isVoidElement=function(t){return a[t]===r};for(var l=0;l<i.knownElementNames.length;l++)i.ensureTag(i.knownElementNames[l]);var f=i.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=i.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=i.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"],i.isArray=function(t){return t instanceof Array},i.isConstructedObject=function(t){return t&&"object"==typeof t&&t.constructor!==Object&&"function"==typeof t.constructor&&t instanceof t.constructor},i.isNully=function(t){if(null==t)return!0;if(i.isArray(t)){for(var e=0;e<t.length;e++)if(!i.isNully(t[e]))return!1;return!0}return!1},i.isValidAttributeName=function(t){return/^[:_A-Za-z][:_A-Za-z0-9.\-]*/.test(t)},i.flattenAttributes=function(t){if(!t)return t;var e=i.isArray(t);if(e&&0===t.length)return null;for(var r={},n=0,o=e?t.length:1;o>n;n++){var a=e?t[n]:t;if("object"!=typeof a||i.isConstructedObject(a))throw new Error("Expected plain JS object as attrs, found: "+a);for(var s in a){if(!i.isValidAttributeName(s))throw new Error("Illegal HTML attribute name: "+s);var u=a[s];i.isNully(u)||(r[s]=u)}}return r},i.toHTML=function(t){return(new i.ToHTMLVisitor).visit(t)},i.TEXTMODE={STRING:1,RCDATA:2,ATTRIBUTE:3},i.toText=function(t,e){if(!e)throw new Error("textMode required for HTML.toText");if(e!==i.TEXTMODE.STRING&&e!==i.TEXTMODE.RCDATA&&e!==i.TEXTMODE.ATTRIBUTE)throw new Error("Unknown textMode: "+e);var r=new i.ToTextVisitor({textMode:e});return r.visit(t)}}.call(this),"undefined"==typeof Package&&(Package={}),Package.htmljs={HTML:i}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.tracker.Tracker,r=Package.tracker.Deps,t=Package["mongo-id"].MongoID,i=Package["diff-sequence"].DiffSequence,o=Package.underscore._,a=Package.random.Random,c,f,u,d;(function(){var e=function(){c._suppressWarnings?c._suppressWarnings--:("undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments),c._loggedWarnings++)},r=t.idStringify,i=t.idParse;c={_suppressWarnings:0,_loggedWarnings:0,observe:function(e,r){var t=null,i=null,a=[],c=n.autorun(function(){var c=e();n.nonreactive(function(){var e;if(i&&(a=o.map(t.fetch(),function(e){return{_id:e._id,item:e}}),i.stop(),i=null),c)if(c instanceof Array)e=u(a,c,r);else{if(!v(c))throw s();var n=d(a,c,r);e=n[0],i=n[1]}else e=f(a,r);p(a,e,r),t=c,a=e})});return{stop:function(){c.stop(),i&&i.stop()}}},fetch:function(e){if(e){if(e instanceof Array)return e;if(v(e))return e.fetch();throw s()}return[]}};var s=function(){return new Error("{{#each}} currently only accepts arrays, cursors or falsey values.")},v=function(e){return e&&o.isObject(e)&&o.isFunction(e.observe)&&o.isFunction(e.fetch)},p=function(e,n,t){var a=Package["diff-sequence"].DiffSequence.diffQueryOrderedChanges,c=[],f=[],u={},d={},s={},v=e.length;o.each(n,function(e,n){f.push({_id:e._id}),d[r(e._id)]=n}),o.each(e,function(e,n){c.push({_id:e._id}),u[r(e._id)]=n,s[r(e._id)]=n}),a(c,f,{addedBefore:function(e,i,a){var c=a?s[r(a)]:v;a&&o.each(s,function(e,n){e>=c&&s[n]++}),v++,s[r(e)]=c,t.addedAt(e,n[d[r(e)]].item,c,a)},movedBefore:function(e,i){if(e!==i){var a=s[r(e)],c=i?s[r(i)]:v;c>a&&c--,o.each(s,function(e,n){e>a&&c>e?s[n]--:e>=c&&a>e&&s[n]++}),s[r(e)]=c,t.movedTo(e,n[d[r(e)]].item,a,c,i)}},removed:function(n){var i=s[r(n)];o.each(s,function(e,n){e>=i&&s[n]--}),delete s[r(n)],v--,t.removedAt(n,e[u[r(n)]].item,i)}}),o.each(d,function(r,a){var c=i(a);if(o.has(u,a)){var f=n[r].item,d=e[u[a]].item;("object"==typeof f||f!==d)&&t.changedAt(c,f,d,r)}})};f=function(e,n){return[]},u=function(n,t,i){var c={},f=o.map(t,function(n,i){var f;if("string"==typeof n)f="-"+n;else if("number"==typeof n||"boolean"==typeof n||void 0===n)f=n;else{if("object"!=typeof n)throw new Error("{{#each}} doesn't support arrays with elements of type "+typeof n);f=n&&o.has(n,"_id")?n._id:i}var u=r(f);return c[u]?("object"==typeof n&&"_id"in n&&e("duplicate id "+f+" in",t),f=a.id()):c[u]=!0,{_id:f,item:n}});return f},d=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={}),Package["observe-sequence"]={ObserveSequence:c}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.tracker.Tracker,n=Package.tracker.Deps,r;(function(){r=function(e,n){return this instanceof r?(this.curValue=e,this.equalsFunc=n,void(this.dep=new t.Dependency)):new r(e,n)},r._isEqual=function(e,t){var n=e,r=t;return n!==r?!1:!n||"number"==typeof n||"boolean"==typeof n||"string"==typeof n},r.prototype.get=function(){return t.active&&this.dep.depend(),this.curValue},r.prototype.set=function(e){var t=this.curValue;(this.equalsFunc||r._isEqual)(t,e)||(this.curValue=e,this.dep.changed())},r.prototype.toString=function(){return"ReactiveVar{"+this.get()+"}"},r.prototype._numListeners=function(){var e=0;for(var t in this.dep._dependentsById)e++;return e}}).call(this),"undefined"==typeof Package&&(Package={}),Package["reactive-var"]={ReactiveVar:r}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.jquery.$,n=Package.jquery.jQuery,r=Package.tracker.Tracker,a=Package.tracker.Deps,i=Package.check.check,o=Package.check.Match,s=Package.underscore._,u=Package.htmljs.HTML,l=Package["observe-sequence"].ObserveSequence,c=Package["reactive-var"].ReactiveVar,d,p,h,f,m,w;(function(){d={},d._escape=function(){var e={"<":"<",">":">",'"':""","'":"'","`":"`","&":"&"},t=function(t){return e[t]};return function(e){return e.replace(/[&<>"'`]/g,t)}}(),d._warn=function(e){e="Warning: "+e,"undefined"!=typeof console&&console.warn&&console.warn(e)}}).call(this),function(){var e={};d._DOMBackend=e;var t="undefined"!=typeof n?n:"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,a){t(e).on(n,r,a)},undelegateEvents:function(e,n,r){t(e).off(n,"**",r)},bindEventCapturer:function(n,r,a,i){var o=t(n),s=function(e){e=t.event.fix(e),e.currentTarget=e.target;var r=t(e.currentTarget);r.is(o.find(a))&&i.call(n,e)};i._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 r=function(){},a=function(e){this.next=this,this.prev=this,this.func=e};a.prototype.linkBefore=function(e){this.prev=e.prev,this.next=e,e.prev.next=this,e.prev=this},a.prototype.unlink=function(){this.prev.next=this.next,this.next.prev=this.prev},a.prototype.go=function(){var e=this.func;e&&e()},a.prototype.stop=a.prototype.unlink,e.Teardown={_JQUERY_EVENT_NAME:"blaze_teardown_watcher",_CB_PROP:"$blaze_teardown_callbacks",onElementTeardown:function(n,i){var o=new a(i),s=e.Teardown._CB_PROP;return n[s]||(n[s]=new a,t(n).on(e.Teardown._JQUERY_EVENT_NAME,r)),o.linkBefore(n[s]),o},tearDownElement:function(e){for(var n=[],r=e.getElementsByTagName("*"),a=0;a<r.length;a++)n.push(r[a]);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([]):[];d._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 a=0;a<r.length;a++)this._memberIn(r[a]);this.members=r,this.emptyRangePlaceholder=null,this.attached=!1,this.parentElement=null,this.parentRange=null,this.attachedCallbacks=e};var t=d._DOMRange;t._USE_COMMENT_PLACEHOLDERS=function(){var e=!1,t=document.createTextNode("");try{t.someProp=!0}catch(n){e=!0}return e}(),t._insert=function(e,n,r,a){var i=e;i instanceof t?i.attach(n,r,a):a?t._moveNodeWithHooks(i,n,r):t._insertNodeWithHooks(i,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,t||(e=e.parentNode);return t},t.prototype.attach=function(e,n,r,a){if((r||a)&&(this.parentElement!==e||!this.attached))throw new Error("Can only move or replace an attached DOMRange, and only under the same parent element");var i=this.members;if(i.length){this.emptyRangePlaceholder=null;for(var o=0;o<i.length;o++)t._insert(i[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&&!a)for(var o=0;o<this.attachedCallbacks.length;o++){var u=this.attachedCallbacks[o];u.attached&&u.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 a=this.lastNode().nextSibling,i=this.parentElement;this.detach(!0),this.members=t,this.attach(i,a,!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 a=0;a<r.length;a++)t._remove(r[a]);else{var i=this.emptyRangePlaceholder;this.parentElement.removeChild(i),this.emptyRangePlaceholder=null}if(!e){this.attached=!1,this.parentElement=null;for(var a=0;a<this.attachedCallbacks.length;a++){var o=this.attachedCallbacks[a];o.detached&&o.detached(this,n)}}},t.prototype.addMember=function(e,n,r){var a=this.members;if(!(n>=0&&n<=a.length))throw new Error("Bad index in range.addMember: "+n);if(r||this._memberIn(e),this.attached)if(0===a.length)this.setMembers([e]);else{var i;if(n===a.length)i=this.lastNode().nextSibling;else{var o=a[n];i=o instanceof t?o.firstNode():o}a.splice(n,0,e),t._insert(e,this.parentElement,i,r)}else a.splice(n,0,e)},t.prototype.removeMember=function(n,r){var a=this.members;if(!(n>=0&&n<a.length))throw new Error("Bad index in range.removeMember: "+n);if(r)a.splice(n,1);else{var i=a[n];this._memberOut(i),1===a.length?this.setMembers(e):(a.splice(n,1),this.attached&&t._remove(i))}},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&&d._destroyView(e.view,n):n||1!==e.nodeType||e.$blaze_range&&(d._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(!d._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=d._DOMBackend.findBySelector(e,n),a=function(e){return"number"==typeof e&&(e=this),t.containsElement(e)};if(r.filter)r=r.filter(a);else{for(var i=[],o=0;o<r.length;o++){var s=r[o];a(s)&&i.push(s)}r=i}return r},d._elementContains=function(e,t){return 1!==e.nodeType?!1:e===t?!1:e.compareDocumentPosition?16&e.compareDocumentPosition(t):(t=t.parentNode,t&&1===t.nodeType?e===t?!0:e.contains(t):!1)}}.call(this),function(){var e=d._EventSupport={},t=d._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},a=1,i=function(e,i,o,u,l){this.elem=e,this.type=i,this.selector=o,this.handler=u,this.recipient=l,this.id=a++,this.mode=r.TBD,this.delegatedHandler=function(e){return function(t){return e.selector||t.currentTarget===t.target?e.handler.apply(e.recipient,arguments):void 0}}(this);var c=e.addEventListener&&!s.has(n,t.Events.parseEventType(i));c?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=i,i.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)},i.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,a,o){try{e=e}finally{}var s=[];t.replace(/[^ /]+/g,function(e){s.push(e)});for(var u=[],l=0,c=s.length;c>l;l++){var d=s[l],p=e.$blaze_events;p||(p=e.$blaze_events={});var h=p[d];h||(h=p[d]={},h.handlers=[]);var f=h.handlers,m=new i(e,d,n,r,a);if(u.push(m),m.bind(),f.push(m),o)for(var w=o(a);w;w=o(w))for(var v=0,_=f.length;_>v;v++){var g=f[v];g.recipient===w&&(g.unbind(),g.bind(),f.splice(v,1),f.push(g),v--,_--)}}return{stop:function(){var t=e.$blaze_events;if(t){for(var n=0;n<u.length;n++){var r=u[n],a=t[r.type];if(a)for(var i=a.handlers,o=i.length-1;o>=0;o--)i[o]===r&&(r.unbind(),i.splice(o,1))}u.length=0}}}}}.call(this),function(){var n=!1;d._allowJavascriptUrls=function(){n=!0},d._javascriptUrlsAllowed=function(){return n},p=function(e,t){this.name=e,this.value=t},d._AttributeHandler=p,p.prototype.update=function(e,t,n){null===n?null!==t&&e.removeAttribute(this.name):e.setAttribute(this.name,n)},p.extend=function(e){var t=this,n=function r(){p.apply(this,arguments)};return n.prototype=new t,n.extend=t.extend,e&&s.extend(n.prototype,e),n};var r=p.extend({update:function(e,t,n){if(!this.getCurrentValue||!this.setValue||!this.parseValue)throw new Error("Missing methods in subclass of 'DiffingAttributeHandler'");var r=t?this.parseValue(t):{},a=n?this.parseValue(n):{},i=this.getCurrentValue(e),o=i?this.parseValue(i):{};s.each(s.keys(r),function(e){e in a||delete o[e]}),s.each(s.keys(a),function(e){o[e]=a[e]}),this.setValue(e,s.values(o).join(" "))}}),a=r.extend({getCurrentValue:function(e){return e.className},setValue:function(e,t){e.className=t},parseValue:function(e){var t={};return s.each(e.split(" "),function(e){e&&(t[e]=e)}),t}}),i=a.extend({getCurrentValue:function(e){return e.className.baseVal},setValue:function(e,t){e.setAttribute("class",t)}}),o=r.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 n={},r=/(\*?[-#\/\*\\\w]+(?:\[[0-9a-z_-]+\])?)\s*:\s*(?:\'(?:\\\'|.)*?\'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+[;\s]*/g,a=r.exec(e);a;)n[" "+a[1]]=a[0].trim?a[0].trim():t.trim(a[0]),a=r.exec(e);return n}}),u=p.extend({update:function(e,t,n){var r=this.name;null==n?null!=t&&(e[r]=!1):e[r]=!0}}),l=p.extend({update:function(e,t,n){var r=this.name;n!==e[r]&&(e[r]=n)}}),c=p.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)}}),m=function(e){return"ownerSVGElement"in e},w=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 s.contains(r,t)};if(e.isClient)var v=document.createElement("A");var _=function(t){if(e.isClient)return v.href=t,(v.protocol||"").toLowerCase();throw new Error("getUrlProtocol not implemented on the server")},g=p.prototype.update,y=p.extend({update:function(e,t,n){var r=this,a=arguments;if(d._javascriptUrlsAllowed())g.apply(r,a);else{var i="javascript:"===_(n);i?(d._warn("URLs that use the 'javascript:' protocol are not allowed in URL attribute values. Call Blaze._allowJavascriptUrls() to enable them."),g.apply(r,[e,t,null])):g.apply(r,a)}}});h=function(e,t,n){return"class"===t?m(e)?new i(t,n):new a(t,n):"style"===t?new o(t,n):"OPTION"===e.tagName&&"selected"===t||"INPUT"===e.tagName&&"checked"===t?new u(t,n):"TEXTAREA"!==e.tagName&&"INPUT"!==e.tagName||"value"!==t?"xlink:"===t.substring(0,6)?new c(t.substring(6),n):w(e.tagName,t)?new y(t,n):new p(t,n):new l(t,n)},f=function(e){this.elem=e,this.handlers={}},f.prototype.update=function(e){var t=this.elem,n=this.handlers;for(var r in n)if(!s.has(e,r)){var a=n[r],i=a.value;a.value=null,a.update(t,i,null),delete n[r]}for(var r in e){var a=null,i,o=e[r];s.has(n,r)?(a=n[r],i=a.value):null!==o&&(a=h(t,r,o),n[r]=a,i=null),i!==o&&(a.value=o,a.update(t,i,o),null===o&&delete n[r])}}}.call(this),function(){d._materializeDOM=function(t,n,r,a){var i=a||[];if(e(t,n,r,i),!a)for(;i.length;){var o=i.pop();o()}return n};var e=function(e,n,r,a){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 u.Tag.htmljsType:return void n.push(t(e,r,a));case u.CharRef.htmljsType:return void n.push(document.createTextNode(e.str));case u.Comment.htmljsType:return void n.push(document.createComment(e.sanitizedValue));case u.Raw.htmljsType:for(var i=d._DOMBackend.parseHTML(e.value),o=0;o<i.length;o++)n.push(i[o]);return}else{if(u.isArray(e)){for(var o=e.length-1;o>=0;o--)a.push(s.bind(d._materializeDOM,null,e[o],n,r,a));return}if(e instanceof d.Template&&(e=e.constructView()),e instanceof d.View)return void d._materializeView(e,r,a,n)}}throw new Error("Unexpected object in htmljs: "+e)}},t=function(e,t,a){var i=e.tagName,o;o=(u.isKnownSVGElement(i)||n(e))&&document.createElementNS?document.createElementNS("http://www.w3.org/2000/svg",i):document.createElement(i);var l=e.attrs,c=e.children;if("textarea"===i&&e.children.length&&!(l&&"value"in l)){if("function"==typeof l||u.isArray(l))throw new Error("Can't have reactive children of TEXTAREA node; use the 'value' attribute instead.");l=s.extend({},l||null),l.value=d._expand(c,t),c=[]}if(l){var p=new f(o),h=function(){var e=d._expandAttributes(l,t),n=u.flattenAttributes(e),r={};for(var a in n)r[a]=d._toText(n[a],t,u.TEXTMODE.STRING);p.update(r)},m;m=t?t.autorun(h,void 0,"updater"):r.nonreactive(function(){return r.autorun(function(){r._withCurrentView(t,h)})}),d._DOMBackend.Teardown.onElementTeardown(o,function v(){m.stop()})}if(c.length){var w=[];a.push(function(){for(var e=0;e<w.length;e++){var t=w[e];t instanceof d._DOMRange?t.attach(o):o.appendChild(t)}}),a.push(s.bind(d._materializeDOM,null,c,w,t,a))}return o},n=function(e){return"a"===e.tagName&&e.attrs&&void 0!==e.attrs["xlink:href"]}}.call(this),function(){var t;d._throwNextException=!1,d._reportException=function(n,r){if(d._throwNextException)throw d._throwNextException=!1,n;t||(t=function(){return"undefined"!=typeof e?e._debug:"undefined"!=typeof console&&console.log?console.log:function(){}}),t()(r||"Exception caught in template:",n.stack||n.message||n)},d._wrapCatchingExceptions=function(e,t){return"function"!=typeof e?e:function(){try{return e.apply(this,arguments)}catch(n){d._reportException(n,"Exception in "+t+":")}}}}.call(this),function(){d.View=function(e,t){return this instanceof d.View?("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={},void(this.renderCount=0)):new d.View(e,t)},d.View.prototype._render=function(){return null},d.View.prototype.onViewCreated=function(e){this._callbacks.created=this._callbacks.created||[],this._callbacks.created.push(e)},d.View.prototype._onViewRendered=function(e){this._callbacks.rendered=this._callbacks.rendered||[],this._callbacks.rendered.push(e)},d.View.prototype.onViewReady=function(e){var t=this,n=function(){r.afterFlush(function(){t.isDestroyed||d._withCurrentView(t,function(){e.call(t)})})};t._onViewRendered(function a(){t.isDestroyed||(t._domrange.attached?n():t._domrange.onAttached(n))})},d.View.prototype.onViewDestroyed=function(e){this._callbacks.destroyed=this._callbacks.destroyed||[],this._callbacks.destroyed.push(e)},d.View.prototype.removeViewDestroyedListener=function(e){var t=this._callbacks.destroyed;if(t){var n=s.lastIndexOf(t,e);-1!==n&&(t[n]=null)}},d.View.prototype.autorun=function(e,t,n){var a=this;if(!a.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");if(r.active)throw new Error("Can't call View#autorun from a Tracker Computation; try calling it from the created or rendered callback");var i=d.Template._currentTemplateInstanceFunc,o=function l(n){return d._withCurrentView(t||a,function(){return d.Template._withTemplateInstanceFunc(i,function(){return e.call(a,n)})})};o.displayName=(a.name||"anonymous")+":"+(n||"anonymous");var s=r.autorun(o),u=function(){s.stop()};return a.onViewDestroyed(u),s.onStop(function(){a.removeViewDestroyedListener(u)}),s},d.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.")},d.View.prototype.subscribe=function(t,n){var r=this;n=n||{},r._errorIfShouldntCallSubscribe();var a;return a=n.connection?n.connection.subscribe.apply(n.connection,t):e.subscribe.apply(e,t),r.onViewDestroyed(function(){a.stop()}),a},d.View.prototype.firstNode=function(){if(!this._isAttached)throw new Error("View must be attached before accessing its DOM");return this._domrange.firstNode()},d.View.prototype.lastNode=function(){if(!this._isAttached)throw new Error("View must be attached before accessing its DOM");return this._domrange.lastNode()},d._fireCallbacks=function(e,t){d._withCurrentView(e,function(){r.nonreactive(function n(){for(var n=e._callbacks[t],r=0,a=n&&n.length;a>r;r++)n[r]&&n[r].call(e)})})},d._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),d._fireCallbacks(e,"created")};var t=function(e,t){var n=new d._DOMRange(t);e._domrange=n,n.view=e,e.isRendered=!0,d._fireCallbacks(e,"rendered");var r=null;return n.onAttached(function a(t,n){e._isAttached=!0,r=d._DOMBackend.Teardown.onElementTeardown(n,function a(){d._destroyView(e,!0)})}),e.onViewDestroyed(function(){r&&r.stop(),r=null}),n};d._materializeView=function(e,n,a,i){d._createView(e,n);var o,u;return r.nonreactive(function(){e.autorun(function l(t){e.renderCount++,e._isInRender=!0;var n=e._render();e._isInRender=!1,t.firstRun||r.nonreactive(function a(){var t=d._materializeDOM(n,[],e);d._isContentEqual(u,n)||(o.setMembers(t),d._fireCallbacks(e,"rendered"))}),u=n,r.onInvalidate(function(){o&&o.destroyMembers()})},void 0,"materialize");var n;a?(n=[],a.push(function(){o=t(e,n),n=null,i.push(o)}),a.push(s.bind(d._materializeDOM,null,u,n,e,a))):(n=d._materializeDOM(u,[],e),o=t(e,n),n=null)}),a?null:o},d._expandView=function(e,t){d._createView(e,t,!0),e._isInRender=!0;var n=d._withCurrentView(e,function(){return e._render()});e._isInRender=!1;var a=d._expand(n,e);return r.active?r.onInvalidate(function(){d._destroyView(e)}):d._destroyView(e),a},d._HTMLJSExpander=u.TransformingVisitor.extend(),d._HTMLJSExpander.def({visitObject:function(e){return e instanceof d.Template&&(e=e.constructView()),e instanceof d.View?d._expandView(e,this.parentView):u.TransformingVisitor.prototype.visitObject.call(this,e)},visitAttributes:function(e){return"function"==typeof e&&(e=d._withCurrentView(this.parentView,e)),u.TransformingVisitor.prototype.visitAttributes.call(this,e)},visitAttribute:function(e,t,n){return"function"==typeof t&&(t=d._withCurrentView(this.parentView,t)),u.TransformingVisitor.prototype.visitAttribute.call(this,e,t,n)}});var n=function(){var e=d.currentView;return e&&e._isInRender?e:null};d._expand=function(e,t){return t=t||n(),new d._HTMLJSExpander({parentView:t}).visit(e)},d._expandAttributes=function(e,t){return t=t||n(),new d._HTMLJSExpander({parentView:t}).visitAttributes(e)},d._destroyView=function(e,t){e.isDestroyed||(e.isDestroyed=!0,d._fireCallbacks(e,"destroyed"),e._domrange&&e._domrange.destroyMembers(t))},d._destroyNode=function(e){1===e.nodeType&&d._DOMBackend.Teardown.tearDownElement(e)},d._isContentEqual=function(e,t){return e instanceof u.Raw?t instanceof u.Raw&&e.value===t.value:null==e?null==t:e===t&&("number"==typeof e||"boolean"==typeof e||"string"==typeof e)},d.currentView=null,d._withCurrentView=function(e,t){var n=d.currentView;try{return d.currentView=e,t()}finally{d.currentView=n}};var a=function(e){if(null===e)throw new Error("Can't render null");if("undefined"==typeof e)throw new Error("Can't render undefined");if(!(e instanceof d.View||e instanceof d.Template||"function"==typeof e))try{(new u.Visitor).visit(e)}catch(t){throw new Error("Expected Template or View")}},i=function(e){if(a(e),e instanceof d.Template)return e.constructView();if(e instanceof d.View)return e;var t=e;return"function"!=typeof t&&(t=function(){return e}),d.View("render",t)},o=function(e){return a(e),"function"!=typeof e?function(){return e}:e};d.render=function(e,t,r,a){if(t||d._warn("Blaze.render without a parent element is deprecated. You must specify where to insert the rendered content."),r instanceof d.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 d._materializeView(o,a),t&&o._domrange.attach(t,r),o},d.insert=function(e,t,n){if(d._warn("Blaze.insert has been deprecated. Specify where to insert the rendered content in the call to Blaze.render."),!(e&&e._domrange instanceof d._DOMRange))throw new Error("Expected template rendered with Blaze.render");e._domrange.attach(t,n)},d.renderWithData=function(e,t,n,r,a){return d.render(d._TemplateWith(t,o(e)),n,r,a)},d.remove=function(e){if(!(e&&e._domrange instanceof d._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}},d.toHTML=function(e,t){return t=t||n(),u.toHTML(d._expandView(i(e),t))},d.toHTMLWithData=function(e,t,r){return r=r||n(),u.toHTML(d._expandView(d._TemplateWith(t,o(e)),r))},d._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 d.View||(r=t,t=null),t=t||n(),!r)throw new Error("textMode required");if(r!==u.TEXTMODE.STRING&&r!==u.TEXTMODE.RCDATA&&r!==u.TEXTMODE.ATTRIBUTE)throw new Error("Unknown textMode: "+r);return u.toText(d._expand(e,t),r)},d.getData=function(e){var t;if(e)if(e instanceof d.View){var n=e;t="with"===n.name?n:d.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=d.getView(e,"with")}else t=d.getView("with");return t?t.dataVar.get():null},d.getElementData=function(e){if(d._warn("Blaze.getElementData has been deprecated. Use Blaze.getData(element) instead."),1!==e.nodeType)throw new Error("Expected DOM element");return d.getData(e)},d.getView=function(e,t){var n=t;if("string"==typeof e&&(n=e,e=null),e){if(e instanceof d.View)return d._getParentView(e,n);if("number"==typeof e.nodeType)return d._getElementView(e,n);throw new Error("Expected DOM element or View")}return d._getCurrentView(n)},d._getCurrentView=function(e){var t=d.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},d._getParentView=function(e,t){var n=e.parentView;if(t)for(;n&&n.name!==t;)n=n.parentView;return n||null},d._getElementView=function(e,t){for(var n=d._DOMRange.forElement(e),r=null;n&&!r;)r=n.view||null,r||(n=n.parentRange?n.parentRange:d._DOMRange.forElement(n.parentElement));if(t){for(;r&&r.name!==t;)r=r.parentView;return r||null}return r},d._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 a(i,o){s.each(t,function(t,a){var u=a.split(/,\s+/);s.each(u,function(a){var s=a.split(/\s+/);if(0!==s.length){var u=s.shift(),l=s.join(" ");r.push(d._EventSupport.listen(o,u,l,function(r){if(!i.containsElement(r.currentTarget))return null;var a=n||this,o=arguments;return d._withCurrentView(e,function(){return t.apply(a,o)})},i,function(e){return e.parentRange}))}})})}),e.onViewDestroyed(function(){s.each(r,function(e){e.stop()}),r.length=0})}}.call(this),function(){d._calculateCondition=function(e){return e instanceof Array&&0===e.length&&(e=!1),!!e},d.With=function(e,t){var n=d.View("with",t);return n.dataVar=new c,n.onViewCreated(function(){"function"==typeof e?n.autorun(function(){n.dataVar.set(e())},n.parentView,"setData"):n.dataVar.set(e)}),n},d._attachBindingsToView=function(e,t){t.onViewCreated(function(){s.each(e,function(e,n){t._scopeBindings[n]=new c,"function"==typeof e?t.autorun(function(){t._scopeBindings[n].set(e())},t.parentView):t._scopeBindings[n].set(e)})})},d.Let=function(e,t){var n=d.View("let",t);return d._attachBindingsToView(e,n),n},d.If=function(e,t,n,r){var a=new c,i=d.View(r?"unless":"if",function(){return a.get()?t():n?n():null});return i.__conditionVar=a,i.onViewCreated(function(){this.autorun(function(){var t=d._calculateCondition(e());a.set(r?!t:t)},this.parentView,"condition")}),i},d.Unless=function(e,t,n){return d.If(e,t,n,!0)},d.Each=function(e,t,n){var a=d.View("each",function(){var e=this.initialSubviews;return this.initialSubviews=null,this._isCreatedForExpansion&&(this.expandedValueDep=new r.Dependency,this.expandedValueDep.depend()),e});a.initialSubviews=[],a.numItems=0,a.inElseMode=!1,a.stopHandle=null,a.contentFunc=t,a.elseFunc=n,a.argVar=new c,a.variableName=null;var i=function(e,t){void 0===t&&(t=a.numItems-1);for(var n=e;t>=n;n++){var r=a._domrange.members[n].view;r._scopeBindings["@index"].set(n)}};return a.onViewCreated(function(){a.autorun(function(){var t=e();s.isObject(t)&&s.has(t,"_sequence")&&(a.variableName=t._variable||null,t=t._sequence),a.argVar.set(t)},a.parentView,"collection"),a.stopHandle=l.observe(function(){return a.argVar.get()},{addedAt:function(e,t,n){r.nonreactive(function(){var e;e=a.variableName?d.View("item",a.contentFunc):d.With(t,a.contentFunc),a.numItems++;var r={};if(r["@index"]=n,a.variableName&&(r[a.variableName]=t),d._attachBindingsToView(r,e),a.expandedValueDep)a.expandedValueDep.changed();else if(a._domrange){a.inElseMode&&(a._domrange.removeMember(0),a.inElseMode=!1);var o=d._materializeView(e,a);a._domrange.addMember(o,n),i(n)}else a.initialSubviews.splice(n,0,e)})},removedAt:function(e,t,n){r.nonreactive(function(){a.numItems--,a.expandedValueDep?a.expandedValueDep.changed():a._domrange?(a._domrange.removeMember(n),i(n),a.elseFunc&&0===a.numItems&&(a.inElseMode=!0,a._domrange.addMember(d._materializeView(d.View("each_else",a.elseFunc),a),0))):a.initialSubviews.splice(n,1)})},changedAt:function(e,t,n,i){r.nonreactive(function(){if(a.expandedValueDep)a.expandedValueDep.changed();else{var e;e=a._domrange?a._domrange.getMember(i).view:a.initialSubviews[i],a.variableName?e._scopeBindings[a.variableName].set(t):e.dataVar.set(t)}})},movedTo:function(e,t,n,o){r.nonreactive(function(){if(a.expandedValueDep)a.expandedValueDep.changed();else if(a._domrange)a._domrange.moveMember(n,o),i(Math.min(n,o),Math.max(n,o));else{var e=a.initialSubviews,t=e[n];e.splice(n,1),e.splice(o,0,t)}})}}),a.elseFunc&&0===a.numItems&&(a.inElseMode=!0,a.initialSubviews[0]=d.View("each_else",a.elseFunc))}),a.onViewDestroyed(function(){a.stopHandle&&a.stopHandle.stop()}),a},d._TemplateWith=function(e,t){var n,r=e;"function"!=typeof e&&(r=function(){return e});var a=function(){var e=null;return n.parentView&&"InOuterTemplateScope"===n.parentView.name&&(e=n.parentView.originalParentView),e?d._withCurrentView(e,r):r()},i=function(){var e=t.call(this);return e instanceof d.Template&&(e=e.constructView()),e instanceof d.View&&(e._hasGeneratedParent=!0),e};return n=d.With(a,i),n.__isTemplateWith=!0,n},d._InOuterTemplateScope=function(e,t){var n=d.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},d.InOuterTemplateScope=d._InOuterTemplateScope}.call(this),function(){d._globalHelpers={},d.registerHelper=function(e,t){d._globalHelpers[e]=t};var e=function(e,t){return"function"!=typeof e?e:s.bind(e,t)},t=function(e){return"function"==typeof e?function(){var t=d.getData();return null==t&&(t={}),e.apply(t,arguments)}:e};d._OLDSTYLE_HELPER={},d._getTemplateHelper=function(e,r,a){var i=!1;if(e.__helpers.has(r)){var o=e.__helpers.get(r);if(o!==d._OLDSTYLE_HELPER)return null!=o?n(t(o),a):null;i=!0}return r in e&&(i||(e.__helpers.set(r,d._OLDSTYLE_HELPER),e._NOWARN_OLDSTYLE_HELPERS||d._warn("Assigning helper with `"+e.viewName+"."+r+" = ...` is deprecated. Use `"+e.viewName+".helpers(...)` instead.")),null!=e[r])?n(t(e[r]),a):null};var n=function(e,t){return"function"!=typeof e?e:function(){var n=this,r=arguments;return d.Template._withTemplateInstanceFunc(t,function(){return d._wrapCatchingExceptions(e,"template helper").apply(n,r)})}};d._lexicalBindingLookup=function(e,t){var n=e,r=[];do if(s.has(n._scopeBindings,t)){var a=n._scopeBindings[t];return function(){return a.get()}}while((!n.__startsNewLexicalScope||n.parentView&&n.parentView.__childDoesntStartNewLexicalScope)&&(n=n.parentView));return null},d._getTemplate=function(e,t){return e in d.Template&&d.Template[e]instanceof d.Template?d.Template[e]:null},d._getGlobalHelper=function(e,r){return null!=d._globalHelpers[e]?n(t(d._globalHelpers[e]),r):null},d.View.prototype.lookup=function(e,t){var n=this.template,r=t&&t.template,a,i,o,u;if(this.templateInstance&&(o=s.bind(this.templateInstance,this)),
|
||
/^\./.test(e)){if(!/^(\.)+$/.test(e))throw new Error("id starting with dot must be a series of dots");return d._parentData(e.length-1,!0)}return n&&null!=(a=d._getTemplateHelper(n,e,o))?a:n&&null!=(i=d._lexicalBindingLookup(d.currentView,e))?i:r&&null!=(u=d._getTemplate(e,o))?u:null!=(a=d._getGlobalHelper(e,o))?a:function(){var t=arguments.length>0,n=d.getData(),a=n&&n[e];if(!a){if(r)throw new Error("No such template: "+e);if(t)throw new Error("No such function: "+e);if("@"===e.charAt(0)&&(null===a||void 0===a))throw new Error("Unsupported directive: "+e)}if(!n)return null;if("function"!=typeof a){if(t)throw new Error("Can't call non-function: "+a);return a}return a.apply(n,arguments)}},d._parentData=function(e,t){null==e&&(e=1);for(var n=d.getView("with"),r=0;e>r&&n;r++)n=d.getView(n,"with");return n?t?function(){return n.dataVar.get()}:n.dataVar.get():null},d.View.prototype.lookupTemplate=function(e){return this.lookup(e,{template:!0})}}.call(this),function(){d.Template=function(e,n){if(!(this instanceof d.Template))return new d.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=d.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},d.isTemplate=function(e){return e instanceof d.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;r>e;e++)t[e].call(n)})};e.prototype.constructView=function(t,r){var a=this,i=d.View(a.viewName,a.renderFunction);i.template=a,i.templateContentBlock=t?new e("(contentBlock)",t):null,i.templateElseBlock=r?new e("(elseBlock)",r):null,(a.__eventMaps||"object"==typeof a.events)&&i._onViewRendered(function(){1===i.renderCount&&(a.__eventMaps.length||"object"!=typeof a.events||e.prototype.events.call(a,a.events),s.each(a.__eventMaps,function(e){d._addEventMap(i,e,i)}))}),i._templateInstance=new d.TemplateInstance(i),i.templateInstance=function(){var e=i._templateInstance;return e.data=d.getData(i),i._domrange&&!i.isDestroyed?(e.firstNode=i._domrange.firstNode(),e.lastNode=i._domrange.lastNode()):(e.firstNode=null,e.lastNode=null),e};var o=a._getCallbacks("created");i.onViewCreated(function(){n(o,i.templateInstance())});var u=a._getCallbacks("rendered");i.onViewReady(function(){n(u,i.templateInstance())});var l=a._getCallbacks("destroyed");return i.onViewDestroyed(function(){n(l,i.templateInstance())}),i},d.TemplateInstance=function(e){if(!(this instanceof d.TemplateInstance))return new d.TemplateInstance(e);if(!(e instanceof d.View))throw new Error("View required");e._templateInstance=this,this.view=e,this.data=null,this.firstNode=null,this.lastNode=null,this._allSubsReadyDep=new r.Dependency,this._allSubsReady=!1,this._subscriptionHandles={}},d.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)},d.TemplateInstance.prototype.findAll=function(e){return Array.prototype.slice.call(this.$(e))},d.TemplateInstance.prototype.find=function(e){var t=this.$(e);return t[0]||null},d.TemplateInstance.prototype.autorun=function(e){return this.view.autorun(e)},d.TemplateInstance.prototype.subscribe=function(){var e=this,t=e._subscriptionHandles,n=s.toArray(arguments),r={};if(n.length){var a=s.last(n),i={onReady:o.Optional(Function),onError:o.Optional(Function),onStop:o.Optional(Function),connection:o.Optional(o.Any)};s.isFunction(a)?r.onReady=n.pop():a&&o.test(a,i)&&(r=n.pop())}var u,l=r.onStop;r.onStop=function(n){delete t[u.subscriptionId],e._allSubsReady||e._allSubsReadyDep.changed(),l&&l(n)};var c=r.connection,d=s.pick(r,["onReady","onError","onStop"]);return n.push(d),u=e.view.subscribe.call(e.view,n,{connection:c}),s.has(t,u.subscriptionId)||(t[u.subscriptionId]=u,e._allSubsReady&&e._allSubsReadyDep.changed()),u},d.TemplateInstance.prototype.subscriptionsReady=function(){return this._allSubsReadyDep.depend(),this._allSubsReady=s.all(this._subscriptionHandles,function(e){return e.ready()}),this._allSubsReady},e.prototype.helpers=function(e){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){var n=this,r={};for(var a in t)r[a]=function(t,n){return function(t){var r=this,a=d.getData(t.currentTarget);null==a&&(a={});var i=Array.prototype.slice.call(arguments),o=s.bind(r.templateInstance,r);return i.splice(1,0,o()),e._withTemplateInstanceFunc(o,function(){return n.apply(a,i)})}}(a,t[a]);n.__eventMaps.push(r)},e.instance=function(){return e._currentTemplateInstanceFunc&&e._currentTemplateInstanceFunc()},e.currentData=d.getData,e.parentData=d._parentData,e.registerHelper=d.registerHelper}.call(this),function(){m=d,d.ReactiveVar=c,m._templateInstance=d.Template.instance,w={},w.registerHelper=d.registerHelper,w._escape=d._escape,w.SafeString=function(e){this.string=e},w.SafeString.prototype.toString=function(){return this.string.toString()}}.call(this),"undefined"==typeof Package&&(Package={}),Package.blaze={Blaze:d,UI:m,Handlebars:w}}();
|
||
|
||
!function(){var n=Package.meteor.Meteor,e=Package.underscore._,o=Package.ecmascript.ECMAScript,t=Package["ddp-rate-limiter"].DDPRateLimiter,i=Package.tracker.Tracker,r=Package.tracker.Deps,a=Package.random.Random,c=Package["callback-hook"].Hook,s=Package["ddp-client"].DDP,l=Package.mongo.Mongo,u=Package["babel-runtime"].babelHelpers,g=Package["ecmascript-runtime"].Symbol,_=Package["ecmascript-runtime"].Map,h=Package["ecmascript-runtime"].Set,d=Package.promise.Promise,f,p,k,m,L,E;(function(){f=function(){function o(n){u.classCallCheck(this,o),this._options={},this.connection=void 0,this._initConnection(n||{}),this.users=new l.Collection("users",{_preventAutopublish:!0,connection:this.connection}),this._onLoginHook=new c({bindEnvironment:!1,debugPrintExceptions:"onLogin callback"}),this._onLoginFailureHook=new c({bindEnvironment:!1,debugPrintExceptions:"onLoginFailure callback"})}return o.prototype.userId=function(){function n(){throw new Error("userId method not implemented")}return n}(),o.prototype.user=function(){function n(){var n=this.userId();return n?this.users.findOne(n):null}return n}(),o.prototype.config=function(){function o(o){var t=this;if(n.isServer?__meteor_runtime_config__.accountsConfigCalled=!0:__meteor_runtime_config__.accountsConfigCalled||n._debug("Accounts.config was called on the client but not on the server; some configuration options may not take effect."),e.has(o,"oauthSecretKey")){if(n.isClient)throw new Error("The oauthSecretKey option may only be specified on the server");if(!Package["oauth-encryption"])throw new Error("The oauth-encryption package must be loaded to set oauthSecretKey");Package["oauth-encryption"].OAuthEncryption.loadKey(o.oauthSecretKey),o=e.omit(o,"oauthSecretKey")}var i=["sendVerificationEmail","forbidClientAccountCreation","restrictCreationByEmailDomain","loginExpirationInDays"];e.each(e.keys(o),function(n){if(!e.contains(i,n))throw new Error("Accounts.config: Invalid key: "+n)}),e.each(i,function(n){if(n in o){if(n in t._options)throw new Error("Can't set `"+n+"` more than once");t._options[n]=o[n]}})}return o}(),o.prototype.onLogin=function(){function n(n){return this._onLoginHook.register(n)}return n}(),o.prototype.onLoginFailure=function(){function n(n){return this._onLoginFailureHook.register(n)}return n}(),o.prototype._initConnection=function(){function e(e){n.isClient&&(e.connection?this.connection=e.connection:e.ddpUrl?this.connection=s.connect(e.ddpUrl):"undefined"!=typeof __meteor_runtime_config__&&__meteor_runtime_config__.ACCOUNTS_CONNECTION_URL?this.connection=s.connect(__meteor_runtime_config__.ACCOUNTS_CONNECTION_URL):this.connection=n.connection)}return e}(),o.prototype._getTokenLifetimeMs=function(){function n(){return 24*(this._options.loginExpirationInDays||t)*60*60*1e3}return n}(),o.prototype._tokenExpiration=function(){function n(n){return new Date(new Date(n).getTime()+this._getTokenLifetimeMs())}return n}(),o.prototype._tokenExpiresSoon=function(){function n(n){var e=.1*this._getTokenLifetimeMs(),o=1e3*i;return e>o&&(e=o),new Date>new Date(n)-e}return n}(),o}();var o=f.prototype;n.userId=function(){return E.userId()},n.user=function(){return E.user()};var t=90,i=3600;p=6e5,k=1e4,n.startup(function(){var n=Package["service-configuration"].ServiceConfiguration;o.loginServiceConfiguration=n.configurations,o.ConfigError=n.ConfigError});var r="Accounts.LoginCancelledError";o.LoginCancelledError=n.makeErrorType(r,function(n){this.message=n}),o.LoginCancelledError.prototype.name=r,o.LoginCancelledError.numericError=145546287}).call(this),function(){var n=f.prototype,o;n.removeDefaultRateLimit=function(){var n=t.removeRule(o);return o=null,n},n.addDefaultRateLimit=function(){o||(o=t.addRule({userId:null,clientAddress:null,type:"method",name:function(n){return e.contains(["login","createUser","resetPassword","forgotPassword"],n)},connectionId:function(n){return!0}},5,1e4))},n.addDefaultRateLimit()}.call(this),function(){m=function(n){function e(o){u.classCallCheck(this,e),n.call(this,o),this._loggingIn=!1,this._loggingInDeps=new i.Dependency,this._loginServicesHandle=this.connection.subscribe("meteor.loginServiceConfiguration"),this._pageLoadLoginCallbacks=[],this._pageLoadLoginAttemptInfo=null,this._initUrlMatching(),this._initLocalStorage()}return u.inherits(e,n),e.prototype.userId=function(){function n(){return this.connection.userId()}return n}(),e.prototype._setLoggingIn=function(){function n(n){this._loggingIn!==n&&(this._loggingIn=n,this._loggingInDeps.changed())}return n}(),e.prototype.loggingIn=function(){function n(){return this._loggingInDeps.depend(),this._loggingIn}return n}(),e.prototype.logout=function(){function n(n){var e=this;e.connection.apply("logout",[],{wait:!0},function(o,t){o?n&&n(o):(e.makeClientLoggedOut(),n&&n())})}return n}(),e.prototype.logoutOtherClients=function(){function n(n){var e=this;e.connection.apply("getNewToken",[],{wait:!0},function(n,o){n||e._storeLoginToken(e.userId(),o.token,o.tokenExpires)}),e.connection.apply("removeOtherTokens",[],{wait:!0},function(e){n&&n(e)})}return n}(),e}(f);var o=m.prototype;n.loggingIn=function(){return E.loggingIn()},o.callLoginMethod=function(n){var o=this;n=e.extend({methodName:"login",methodArguments:[{}],_suppressLoggingIn:!1},n),e.each(["validateResult","userCallback"],function(e){n[e]||(n[e]=function(){})});var t=e.once(function(e){e?o._onLoginFailureHook.each(function(n){return n(),!0}):o._onLoginHook.each(function(n){return n(),!0}),n.userCallback.apply(this,arguments)}),i=!1,r=function(n,e){!n&&e&&e.token&&(o.connection.onReconnect=function(){i=!0;var n=o._storedLoginToken();n&&(e={token:n,tokenExpires:o._storedLoginTokenExpires()}),e.tokenExpires||(e.tokenExpires=o._tokenExpiration(new Date)),o._tokenExpiresSoon(e.tokenExpires)?o.makeClientLoggedOut():o.callLoginMethod({methodArguments:[{resume:e.token}],_suppressLoggingIn:!0,userCallback:function(n){var i=o._storedLoginToken();n&&i&&i===e.token&&o.makeClientLoggedOut(),t(n)}})})},a=function(e,r){if(!i){if(o._setLoggingIn(!1),e||!r)return e=e||new Error("No result from call to "+n.methodName),void t(e);try{n.validateResult(r)}catch(a){return void t(a)}o.makeClientLoggedIn(r.id,r.token,r.tokenExpires),t()}};n._suppressLoggingIn||o._setLoggingIn(!0),o.connection.apply(n.methodName,n.methodArguments,{wait:!0,onResultReceived:r},a)},o.makeClientLoggedOut=function(){this._unstoreLoginToken(),this.connection.setUserId(null),this.connection.onReconnect=null},o.makeClientLoggedIn=function(n,e,o){this._storeLoginToken(n,e,o),this.connection.setUserId(n)},n.logout=function(n){return E.logout(n)},n.logoutOtherClients=function(n){return E.logoutOtherClients(n)},o.loginServicesConfigured=function(){return this._loginServicesHandle.ready()},o.onPageLoadLogin=function(n){this._pageLoadLoginAttemptInfo?n(this._pageLoadLoginAttemptInfo):this._pageLoadLoginCallbacks.push(n)},o._pageLoadLogin=function(o){return this._pageLoadLoginAttemptInfo?void n._debug("Ignoring unexpected duplicate page load login attempt info"):(e.each(this._pageLoadLoginCallbacks,function(n){n(o)}),this._pageLoadLoginCallbacks=[],void(this._pageLoadLoginAttemptInfo=o))},Package.blaze&&(Package.blaze.Blaze.Template.registerHelper("currentUser",function(){return n.user()}),Package.blaze.Blaze.Template.registerHelper("loggingIn",function(){return n.loggingIn()}))}.call(this),function(){function o(n,o,t){e.each(r,function(e){var i,r=new RegExp("^\\#\\/"+e+"\\/(.*)$"),a=o.match(r);a&&(i=a[1],"reset-password"===e?n._resetPasswordToken=i:"verify-email"===e?n._verifyEmailToken=i:"enroll-account"===e&&(n._enrollAccountToken=i),window.location.hash="",t.call(n,i,e))})}function t(e,o){var t=this;t._autoLoginEnabled=!1,n.startup(function(){t._accountsCallbacks[o]&&t._accountsCallbacks[o](e,function(){t._enableAutoLogin()})})}var i=m.prototype,r=["reset-password","verify-email","enroll-account"],a=window.location.hash;i._initUrlMatching=function(){this._autoLoginEnabled=!0,this._accountsCallbacks={},this._attemptToMatchHash()},i._attemptToMatchHash=function(){o(this,a,t)},L={attemptToMatchHash:function(n,e){return o(E,n,e)}},i.onResetPasswordLink=function(e){this._accountsCallbacks["reset-password"]&&n._debug("Accounts.onResetPasswordLink was called more than once. Only one callback added will be executed."),this._accountsCallbacks["reset-password"]=e},i.onEmailVerificationLink=function(e){this._accountsCallbacks["verify-email"]&&n._debug("Accounts.onEmailVerificationLink was called more than once. Only one callback added will be executed."),this._accountsCallbacks["verify-email"]=e},i.onEnrollmentLink=function(e){this._accountsCallbacks["enroll-account"]&&n._debug("Accounts.onEnrollmentLink was called more than once. Only one callback added will be executed."),this._accountsCallbacks["enroll-account"]=e}}.call(this),function(){var e=m.prototype;n.loginWithToken=function(n,e){return E.loginWithToken(n,e)},e.loginWithToken=function(n,e){this.callLoginMethod({methodArguments:[{resume:n}],userCallback:e})},e._enableAutoLogin=function(){this._autoLoginEnabled=!0,this._pollStoredLoginToken()},e._isolateLoginTokenForTest=function(){this.LOGIN_TOKEN_KEY=this.LOGIN_TOKEN_KEY+a.id(),this.USER_ID_KEY=this.USER_ID_KEY+a.id()},e._storeLoginToken=function(e,o,t){n._localStorage.setItem(this.USER_ID_KEY,e),n._localStorage.setItem(this.LOGIN_TOKEN_KEY,o),t||(t=this._tokenExpiration(new Date)),n._localStorage.setItem(this.LOGIN_TOKEN_EXPIRES_KEY,t),this._lastLoginTokenWhenPolled=o},e._unstoreLoginToken=function(){n._localStorage.removeItem(this.USER_ID_KEY),n._localStorage.removeItem(this.LOGIN_TOKEN_KEY),n._localStorage.removeItem(this.LOGIN_TOKEN_EXPIRES_KEY),this._lastLoginTokenWhenPolled=null},e._storedLoginToken=function(){return n._localStorage.getItem(this.LOGIN_TOKEN_KEY)},e._storedLoginTokenExpires=function(){return n._localStorage.getItem(this.LOGIN_TOKEN_EXPIRES_KEY)},e._storedUserId=function(){return n._localStorage.getItem(this.USER_ID_KEY)},e._unstoreLoginTokenIfExpiresSoon=function(){var n=this._storedLoginTokenExpires();n&&this._tokenExpiresSoon(new Date(n))&&this._unstoreLoginToken()},e._initLocalStorage=function(){var e=this;e.LOGIN_TOKEN_KEY="Meteor.loginToken",e.LOGIN_TOKEN_EXPIRES_KEY="Meteor.loginTokenExpires",e.USER_ID_KEY="Meteor.userId";var o=__meteor_runtime_config__.ROOT_URL_PATH_PREFIX;if(o||this.connection!==n.connection){var t=":"+this.connection._stream.rawUrl;o&&(t+=":"+o),e.LOGIN_TOKEN_KEY+=t,e.LOGIN_TOKEN_EXPIRES_KEY+=t,e.USER_ID_KEY+=t}if(e._autoLoginEnabled){e._unstoreLoginTokenIfExpiresSoon();var i=e._storedLoginToken();if(i){var r=e._storedUserId();r&&e.connection.setUserId(r),e.loginWithToken(i,function(o){o&&(n._debug("Error logging in with token: "+o),e.makeClientLoggedOut()),e._pageLoadLogin({type:"resume",allowed:!o,error:o,methodName:"login",methodArguments:[{resume:i}]})})}}e._lastLoginTokenWhenPolled=i,e._pollIntervalTimer&&clearInterval(e._pollIntervalTimer),e._pollIntervalTimer=setInterval(function(){e._pollStoredLoginToken()},3e3)},e._pollStoredLoginToken=function(){var n=this;if(n._autoLoginEnabled){var e=n._storedLoginToken();n._lastLoginTokenWhenPolled!=e&&(e?n.loginWithToken(e,function(e){e&&n.makeClientLoggedOut()}):n.logout()),n._lastLoginTokenWhenPolled=e}}}.call(this),function(){E=new m,n.users=E.users}.call(this),"undefined"==typeof Package&&(Package={}),Package["accounts-base"]={Accounts:E,AccountsClient:m,AccountsTest:L}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.underscore._,r,a;(function(){r={};var e=function(e){return encodeURIComponent(e).replace(/[!'()]/g,escape).replace(/\*/g,"%2A")};r._encodeParams=function(r){var a=[];return n.each(r,function(n,r){a.length&&a.push("&"),a.push(e(r),"=",e(n))}),a.join("").replace(/%20/g,"+")},a=function(e,n,a,c){var t=e,o=n?n.slice(1):null;if("string"==typeof a&&(o=String(a)),c){o=o||"";var u=r._encodeParams(c);o&&u&&(o+="&"),o+=u}var i=t;return null!==o&&(i+="?"+o),i}}).call(this),function(){r._constructUrl=function(e,n,r){var c=/^(.*?)(\?.*)?$/.exec(e);return a(c[1],c[2],n,r)}}.call(this),"undefined"==typeof Package&&(Package={}),Package.url={URL:r}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.check.check,r=Package.check.Match,o=Package.underscore._,n=Package.reload.Reload,i=Package.base64.Base64,a=Package.url.URL,l,c;(function(){var r={};l={},l.showPopup=function(e,t,r){throw new Error("OAuth.showPopup must be implemented on this arch.")},l._loginStyle=function(t,r,n){if(e.isCordova)return"popup";var i=n&&n.loginStyle||r.loginStyle||"popup";if(!o.contains(["popup","redirect"],i))throw new Error("Invalid login style: "+i);if("redirect"===i)try{sessionStorage.setItem("Meteor.oauth.test","test"),sessionStorage.removeItem("Meteor.oauth.test")}catch(a){i="popup"}return i},l._stateParam=function(t,r,o){var n={loginStyle:t,credentialToken:r,isCordova:e.isCordova};return"redirect"===t&&(n.redirectUrl=o||""+window.location),i.encode(JSON.stringify(n))},l.saveDataForRedirect=function(e,t){n._onMigrate("oauth",function(){return[!0,{loginService:e,credentialToken:t}]}),n._migrate(null,{immediateMigration:!0})},l.getDataAfterRedirect=function(){var t=n._migrationData("oauth");if(!t||!t.credentialToken)return null;var r=t.credentialToken,o=l._storageTokenPrefix+r,i;try{i=sessionStorage.getItem(o),sessionStorage.removeItem(o)}catch(a){e._debug("error retrieving credentialSecret",a)}return{loginService:t.loginService,credentialToken:r,credentialSecret:i}},l.launchLogin=function(e){if(!e.loginService)throw new Error("loginService required");if("popup"===e.loginStyle)l.showPopup(e.loginUrl,o.bind(e.credentialRequestCompleteCallback,null,e.credentialToken),e.popupOptions);else{if("redirect"!==e.loginStyle)throw new Error("invalid login style");l.saveDataForRedirect(e.loginService,e.credentialToken),window.location=e.loginUrl}},l.initiateLogin=function(e,t,r,n){l.showPopup(t,o.bind(r,null,e),n)},l._handleCredentialSecret=function(e,n){if(t(e,String),t(n,String),o.has(r,e))throw new Error("Duplicate credential token from OAuth login");r[e]=n},l._retrieveCredentialSecret=function(t){var o=r[t];if(o)delete r[t];else{var n=l._storageTokenPrefix+t;o=e._localStorage.getItem(n),e._localStorage.removeItem(n)}return o}}).call(this),function(){l.showPopup=function(t,r,o){var n=function(t){e._debug("Error from OAuth popup: "+JSON.stringify(t))},i=!1,a=function(t){if(!i&&0===t.url.indexOf(e.absoluteUrl("_oauth"))){var o=t.url.split("#"),n=o[1];if(!n)throw new Error("No hash fragment in OAuth popup?");var a=JSON.parse(decodeURIComponent(n));l._handleCredentialSecret(a.credentialToken,a.credentialSecret),i=!0,setTimeout(function(){u.close(),r()},100)}},c=function(){u.removeEventListener("loadstop",a),u.removeEventListener("loaderror",n),u.removeEventListener("exit",c)},u=window.open(t,"_blank","location=yes,hidden=yes");u.addEventListener("loadstop",a),u.addEventListener("loaderror",n),u.addEventListener("exit",c),u.show()}}.call(this),function(){l._storageTokenPrefix="Meteor.oauth.credentialSecret-",l._redirectUri=function(t,r,n,i){var l=r.loginStyle?null:"close",c=!1,u=!1;if(n&&(n=o.clone(n),c=n.cordova,u=n.android,delete n.cordova,delete n.android,o.isEmpty(n)&&(n=void 0)),e.isServer&&c){var s=process.env.MOBILE_ROOT_URL||__meteor_runtime_config__.ROOT_URL;if(u){var d=Npm.require("url"),g=d.parse(s);"localhost"===g.hostname&&(g.hostname="10.0.2.2",delete g.host),s=d.format(g)}i=o.extend({},i,{rootUrl:s})}return a._constructUrl(e.absoluteUrl("_oauth/"+t,i),l,n)}}.call(this),function(){c=l}.call(this),"undefined"==typeof Package&&(Package={}),Package.oauth={OAuth:l,Oauth:c}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,r=Package.underscore._,a=Package.random.Random,t=Package.check.check,n=Package.check.Match,o=Package["accounts-base"].Accounts,c=Package["accounts-base"].AccountsClient,u=Package.oauth.OAuth,i=Package.oauth.Oauth;(function(){o.oauth={};var a={};o.oauth.registerService=function(t){if(r.has(a,t))throw new Error("Duplicate service: "+t);a[t]=!0,e.server&&e.users._ensureIndex("services."+t+".id",{unique:1,sparse:1})},o.oauth.unregisterService=function(e){if(!r.has(a,e))throw new Error("Service not found: "+e);delete a[e]},o.oauth.serviceNames=function(){return r.keys(a)}}).call(this),function(){var a=function(r){return r&&r instanceof e.Error&&r.error===o.LoginCancelledError.numericError?new o.LoginCancelledError(r.reason):r};e.startup(function(){var e=u.getDataAfterRedirect();if(e){var t="login",n=[{oauth:r.pick(e,"credentialToken","credentialSecret")}];o.callLoginMethod({methodArguments:n,userCallback:function(r){r=a(r),o._pageLoadLogin({type:e.loginService,allowed:!r,error:r,methodName:t,methodArguments:n})}})}}),o.oauth.tryLoginAfterPopupClosed=function(e,r){var t=u._retrieveCredentialSecret(e)||null;o.callLoginMethod({methodArguments:[{oauth:{credentialToken:e,credentialSecret:t}}],userCallback:r&&function(e){r(a(e))}})},o.oauth.credentialRequestCompleteHandler=function(e){return function(r){r&&r instanceof Error?e&&e(r):o.oauth.tryLoginAfterPopupClosed(r,e)}}}.call(this),"undefined"==typeof Package&&(Package={}),Package["accounts-oauth"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,o=Package["accounts-base"].Accounts,n=Package["accounts-base"].AccountsClient,i=Package.mongo.Mongo,c;(function(){"undefined"==typeof c&&(c={}),c.configurations=new i.Collection("meteor_accounts_loginServiceConfiguration",{_preventAutopublish:!0,connection:e.isClient?o.connection:e.connection}),c.ConfigError=function(n){e.isClient&&!o.loginServicesConfigured()?this.message="Login service configuration not yet loaded":n?this.message="Service "+n+" not configured":this.message="Service not configured"},c.ConfigError.prototype=new Error,c.ConfigError.prototype.name="ServiceConfiguration.ConfigError"}).call(this),"undefined"==typeof Package&&(Package={}),Package["service-configuration"]={ServiceConfiguration:c}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,e=Package.oauth.OAuth,c=Package.oauth.Oauth,o=Package["service-configuration"].ServiceConfiguration;"undefined"==typeof Package&&(Package={}),Package.oauth2={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.htmljs.HTML,n=Package.tracker.Tracker,r=Package.tracker.Deps,a=Package.blaze.Blaze,u=Package.blaze.UI,i=Package.blaze.Handlebars,c=Package["observe-sequence"].ObserveSequence,l=Package.underscore._,o;(function(){o={};var e=function(e,t){return e===t};o.include=function(t,n,r){if(!t)return null;if("function"!=typeof t){var u=t;if(!a.isTemplate(u))throw new Error("Expected template or null, found: "+u);var i=t.constructView(n,r);return i.__startsNewLexicalScope=!0,i}var c=a.ReactiveVar(null,e),i=a.View("Spacebars.include",function(){var e=c.get();if(null===e)return null;if(!a.isTemplate(e))throw new Error("Expected template or null, found: "+e);return e.constructView(n,r)});return i.__templateVar=c,i.onViewCreated(function(){this.autorun(function(){c.set(t())})}),i.__startsNewLexicalScope=!0,i},o.mustacheImpl=function(e){var t=arguments;if(t.length>1){var n=t[t.length-1];if(n instanceof o.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]=o.kw(r)}else n=o.kw(),t=Array.prototype.slice.call(arguments),t.push(n)}return o.call.apply(null,t)},o.mustache=function(e){var n=o.mustacheImpl.apply(null,arguments);return n instanceof o.SafeString?t.Raw(n.toString()):null==n||n===!1?null:String(n)},o.attrMustache=function(e){var n=o.mustacheImpl.apply(null,arguments);if(null==n||""===n)return null;if("object"==typeof n)return n;if("string"==typeof n&&t.isValidAttributeName(n)){var r={};return r[n]="",r}throw new Error("Expected valid attribute name, '', null, or object")},o.dataMustache=function(e){var t=o.mustacheImpl.apply(null,arguments);return t},o.makeRaw=function(e){return null==e?null:e instanceof t.Raw?e:t.Raw(e)},o.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(arguments.length>1)throw new Error("Can't call non-function: "+e);return e},o.kw=function(e){return this instanceof o.kw?void(this.hash=e||{}):new o.kw(e)},o.SafeString=function(e){return this instanceof o.SafeString?new i.SafeString(e):new o.SafeString(e)},o.SafeString.prototype=i.SafeString.prototype,o.dot=function(e,t){if(arguments.length>2){var n=[];return n.push(o.dot(e,t)),n.push.apply(n,Array.prototype.slice.call(arguments,2)),o.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)}},o.With=function(e,t,r){var u=new a.ReactiveVar,i=a.View("Spacebars_with",function(){return a.If(function(){return u.get()},function(){return a.With(function(){return u.get()},t)},r)});return i.onViewCreated(function(){this.autorun(function(){u.set(e()),n.onInvalidate(function(){u.dep.changed()})})}),i},o.TemplateWith=a._TemplateWith}).call(this),"undefined"==typeof Package&&(Package={}),Package.spacebars={Spacebars:o}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.underscore._,n=Package.blaze.Blaze,a=Package.blaze.UI,o=Package.blaze.Handlebars,c=Package.spacebars.Spacebars,r=Package.htmljs.HTML,u;(function(){u=n.Template;var e="__proto__ name".split(" ");u.__checkName=function(n){if(n in u||t.contains(e,n)){if(u[n]instanceof u&&"body"!==n)throw new Error("There are multiple templates named '"+n+"'. Each template needs a unique name.");throw new Error("This template name is reserved: "+n)}},u.__define__=function(e,t){u.__checkName(e),u[e]=new u("Template."+e,t),u[e]._NOWARN_OLDSTYLE_HELPERS=!0},u.body=new u("body",function(){var e=this;return t.map(u.body.contentRenderFuncs,function(t){return t.apply(e)})}),u.body.contentRenderFuncs=[],u.body.view=null,u.body.addContent=function(e){u.body.contentRenderFuncs.push(e)},u.body.renderToDocument=function(){if(!u.body.view){var e=n.render(u.body,document.body);u.body.view=e}},a.body=u.body,u.__body__=u.body,u.__body__.__contentParts=u.body.contentViews,u.__body__.__instantiate=u.body.renderToDocument}).call(this),function(){u.__checkName("__dynamic"),u.__dynamic=new u("Template.__dynamic",function(){var e=this;return[n.View("lookup:checkContext",function(){return c.mustache(e.lookup("checkContext"))}),"\n ",n.If(function(){return c.call(e.lookup("dataContextPresent"))},function(){return["\n ",c.include(e.lookupTemplate("__dynamicWithDataContext"),function(){return n._InOuterTemplateScope(e,function(){return c.include(function(){return c.call(e.templateContentBlock)})})}),"\n "]},function(){return["\n \n ",n._TemplateWith(function(){return{template:c.call(e.lookup("template")),data:c.call(e.lookup(".."))}},function(){return c.include(e.lookupTemplate("__dynamicWithDataContext"),function(){return n._InOuterTemplateScope(e,function(){return c.include(function(){return c.call(e.templateContentBlock)})})})}),"\n "]})]}),u.__checkName("__dynamicWithDataContext"),u.__dynamicWithDataContext=new u("Template.__dynamicWithDataContext",function(){var e=this;return c.With(function(){return c.dataMustache(e.lookup("chooseTemplate"),e.lookup("template"))},function(){return["\n \n ",n._TemplateWith(function(){return c.call(c.dot(e.lookup(".."),"data"))},function(){return c.include(e.lookupTemplate(".."),function(){return n._InOuterTemplateScope(e,function(){return c.include(function(){return c.call(e.templateContentBlock)})})})}),"\n "]})})}.call(this),function(){var e=n.Template;e.__dynamicWithDataContext.helpers({chooseTemplate:function(t){return n._getTemplate(t,function(){return e.instance()})}}),e.__dynamic.helpers({dataContextPresent:function(){return t.has(this,"data")},checkContext:function(){if(!t.has(this,"template"))throw new Error("Must specify name in the 'template' argument to {{> Template.dynamic}}.");t.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={}),Package.templating={Template:u}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a=Package.oauth.OAuth,o=Package.oauth.Oauth,i=Package.templating.Template,n=Package.random.Random,t=Package["service-configuration"].ServiceConfiguration,r=Package.blaze.Blaze,l=Package.blaze.UI,c=Package.blaze.Handlebars,s=Package.spacebars.Spacebars,p=Package.htmljs.HTML,u;(function(){i.__checkName("configureLoginServiceDialogForFacebook"),i.configureLoginServiceDialogForFacebook=new i("Template.configureLoginServiceDialogForFacebook",function(){var e=this;return[p.Raw("<p>\n First, you'll need to register your app on Facebook. Follow these steps:\n </p>\n "),p.OL("\n ",p.Raw('<li>\n Visit <a href="https://developers.facebook.com/apps" target="_blank">https://developers.facebook.com/apps</a>\n </li>'),"\n ",p.Raw('<li>\n Click "Add a New App".\n </li>'),"\n ",p.Raw('<li>\n Select "Website" and type a name for your app.\n </li>'),"\n ",p.Raw('<li>\n Click "Create New Facebook App ID".\n </li>'),"\n ",p.Raw('<li>\n Select a category in the dropdown and click "Create App ID".\n </li>'),"\n ",p.LI('\n Under "Tell us about your website", set Site URL to: ',p.SPAN({"class":"url"},r.View("lookup:siteUrl",function(){return s.mustache(e.lookup("siteUrl"))})),' and click "Next".\n '),"\n ",p.Raw('<li>\n Click "Skip to Developer Dashboard".\n </li>'),"\n ",p.Raw('<li>\n Go to the "Settings" tab and add an email address under "Contact Email". Click "Save Changes".\n </li>'),"\n ",p.Raw('<li>\n Go to the "Status & Review" tab and select Yes for "Do you want to make this app and\n all its live features available to the general public?". Click "Confirm".\n </li>'),"\n ",p.Raw("<li>\n Go back to the Dashboard tab.\n </li>"),"\n ")]})}).call(this),function(){i.configureLoginServiceDialogForFacebook.helpers({siteUrl:function(){return e.absoluteUrl()}}),i.configureLoginServiceDialogForFacebook.fields=function(){return[{property:"appId",label:"App ID"},{property:"secret",label:"App Secret"}]}}.call(this),function(){u={},u.requestCredential=function(e,o){o||"function"!=typeof e||(o=e,e={});var i=t.configurations.findOne({service:"facebook"});if(!i)return void(o&&o(new t.ConfigError));var r=n.secret(),l=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Windows Phone/i.test(navigator.userAgent),c=l?"touch":"popup",s="email";e&&e.requestPermissions&&(s=e.requestPermissions.join(","));var p=a._loginStyle("facebook",i,e),u="https://www.facebook.com/v2.2/dialog/oauth?client_id="+i.appId+"&redirect_uri="+a._redirectUri("facebook",i)+"&display="+c+"&scope="+s+"&state="+a._stateParam(p,r,e&&e.redirectUrl);a.launchLogin({loginService:"facebook",loginStyle:p,loginUrl:u,credentialRequestCompleteCallback:o,credentialToken:r})}}.call(this),"undefined"==typeof Package&&(Package={}),Package.facebook={Facebook:u}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,o=Package["accounts-base"].Accounts,a=Package["accounts-base"].AccountsClient,c=Package.facebook.Facebook;(function(){o.oauth.registerService("facebook"),e.isClient?e.loginWithFacebook=function(e,a){a||"function"!=typeof e||(a=e,e=null);var t=o.oauth.credentialRequestCompleteHandler(a);c.requestCredential(e,t)}:o.addAutopublishFields({forLoggedInUser:["services.facebook"],forOtherUsers:["services.facebook.id","services.facebook.username","services.facebook.gender"]})}).call(this),"undefined"==typeof Package&&(Package={}),Package["accounts-facebook"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.oauth.OAuth,i=Package.oauth.Oauth,a=Package.underscore._,n=Package.templating.Template,o=Package.random.Random,r=Package["service-configuration"].ServiceConfiguration,c=Package.blaze.Blaze,l=Package.blaze.UI,u=Package.blaze.Handlebars,g=Package.spacebars.Spacebars,s=Package.htmljs.HTML,h;(function(){n.__checkName("configureLoginServiceDialogForGithub"),n.configureLoginServiceDialogForGithub=new n("Template.configureLoginServiceDialogForGithub",function(){var e=this;return[s.Raw("<p>\n First, you'll need to get a Github Client ID. Follow these steps:\n </p>\n "),s.OL("\n ",s.Raw('<li>\n Visit <a href="https://github.com/settings/applications/new" target="blank">https://github.com/settings/applications/new</a>\n </li>'),"\n ",s.LI("\n Set Homepage URL to: ",s.SPAN({"class":"url"},c.View("lookup:siteUrl",function(){return g.mustache(e.lookup("siteUrl"))})),"\n "),"\n ",s.LI("\n Set Authorization callback URL to: ",s.SPAN({"class":"url"},c.View("lookup:siteUrl",function(){return g.mustache(e.lookup("siteUrl"))}),"_oauth/github"),"\n "),"\n ")]})}).call(this),function(){n.configureLoginServiceDialogForGithub.helpers({siteUrl:function(){return e.absoluteUrl()}}),n.configureLoginServiceDialogForGithub.fields=function(){return[{property:"clientId",label:"Client ID"},{property:"secret",label:"Client Secret"}]}}.call(this),function(){h={},h.requestCredential=function(e,i){i||"function"!=typeof e||(i=e,e={});var n=r.configurations.findOne({service:"github"});if(!n)return void(i&&i(new r.ConfigError));var c=o.secret(),l=e&&e.requestPermissions||["user:email"],u=a.map(l,encodeURIComponent).join("+"),g=t._loginStyle("github",n,e),s="https://github.com/login/oauth/authorize?client_id="+n.clientId+"&scope="+u+"&redirect_uri="+t._redirectUri("github",n)+"&state="+t._stateParam(g,c,e&&e.redirectUrl);t.launchLogin({loginService:"github",loginStyle:g,loginUrl:s,credentialRequestCompleteCallback:i,credentialToken:c,popupOptions:{width:900,height:450}})}}.call(this),"undefined"==typeof Package&&(Package={}),Package.github={Github:h}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package["accounts-base"].Accounts,a=Package["accounts-base"].AccountsClient,c=Package.github.Github;(function(){t.oauth.registerService("github"),e.isClient?e.loginWithGithub=function(e,a){a||"function"!=typeof e||(a=e,e=null);var i=t.oauth.credentialRequestCompleteHandler(a);c.requestCredential(e,i)}:t.addAutopublishFields({forLoggedInUser:["services.github"],forOtherUsers:["services.github.username"]})}).call(this),"undefined"==typeof Package&&(Package={}),Package["accounts-github"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,o=Package.oauth.OAuth,n=Package.oauth.Oauth,t=Package.underscore._,i=Package["service-configuration"].ServiceConfiguration,r=Package.random.Random,a=Package.templating.Template,l=Package.blaze.Blaze,c=Package.blaze.UI,s=Package.blaze.Handlebars,g=Package.spacebars.Spacebars,u=Package.htmljs.HTML,p;(function(){a.__checkName("configureLoginServiceDialogForGoogle"),a.configureLoginServiceDialogForGoogle=new a("Template.configureLoginServiceDialogForGoogle",function(){var e=this;return[u.Raw("<p>\n First, you'll need to get a Google Client ID. Follow these steps:\n </p>\n "),u.OL("\n ",u.Raw('<li>\n Visit <a href="https://console.developers.google.com/" target="blank">https://console.developers.google.com/</a>\n </li>'),"\n ",u.Raw('<li>\n "Create Project", if needed. Wait for Google to finish provisioning.\n </li>'),"\n ",u.Raw('<li>\n On the left sidebar, go to "APIs & auth" and, underneath, "Consent Screen". Make sure to enter an email address and a product name, and save.\n </li>'),"\n ",u.Raw('<li>\n On the left sidebar, go to "APIs & auth" and then, "Credentials". "Create New Client ID", then select "Web application" as the type.\n </li>'),"\n ",u.LI("\n Set Authorized Javascript Origins to: ",u.SPAN({"class":"url"},l.View("lookup:siteUrl",function(){return g.mustache(e.lookup("siteUrl"))})),"\n "),"\n ",u.LI("\n Set Authorized Redirect URI to: ",u.SPAN({"class":"url"},l.View("lookup:siteUrl",function(){return g.mustache(e.lookup("siteUrl"))}),"_oauth/google"),"\n "),"\n ",u.Raw('<li>\n Finish by clicking "Create Client ID".\n </li>'),"\n ")]})}).call(this),function(){a.configureLoginServiceDialogForGoogle.helpers({siteUrl:function(){return e.absoluteUrl()}}),a.configureLoginServiceDialogForGoogle.fields=function(){return[{property:"clientId",label:"Client ID"},{property:"secret",label:"Client secret"}]}}.call(this),function(){p={},p.requestCredential=function(e,n){n||"function"!=typeof e?e||(e={}):(n=e,e={});var a=i.configurations.findOne({service:"google"});if(!a)return void(n&&n(new i.ConfigError));var l=r.secret(),c=["profile"],s=["email"];e.requestPermissions&&(s=e.requestPermissions),s=t.union(s,c);var g={};a.loginUrlParameters&&t.extend(g,a.loginUrlParameters),e.loginUrlParameters&&t.extend(g,e.loginUrlParameters);var u=["response_type","client_id","scope","redirect_uri","state"];t.each(t.keys(g),function(e){if(t.contains(u,e))throw new Error("Google.requestCredential: Invalid loginUrlParameter: "+e)}),null!=e.requestOfflineToken&&(g.access_type=e.requestOfflineToken?"offline":"online"),null!=e.prompt?g.prompt=e.prompt:e.forceApprovalPrompt&&(g.prompt="consent"),e.loginHint&&(g.login_hint=e.loginHint);var p=o._loginStyle("google",a,e);t.extend(g,{response_type:"code",client_id:a.clientId,scope:s.join(" "),redirect_uri:o._redirectUri("google",a),state:o._stateParam(p,l,e.redirectUrl)});var d="https://accounts.google.com/o/oauth2/auth?"+t.map(g,function(e,o){return encodeURIComponent(o)+"="+encodeURIComponent(e)}).join("&");o.launchLogin({loginService:"google",loginStyle:p,loginUrl:d,credentialRequestCompleteCallback:n,credentialToken:l,popupOptions:{height:600}})}}.call(this),"undefined"==typeof Package&&(Package={}),Package.google={Google:p}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,o=Package.underscore._,t=Package.random.Random,a=Package["accounts-base"].Accounts,i=Package["accounts-base"].AccountsClient,n=Package.google.Google;(function(){a.oauth.registerService("google"),e.isClient?e.loginWithGoogle=function(e,t){t||"function"!=typeof e||(t=e,e=null),"string"==typeof a._options.restrictCreationByEmailDomain&&(e=o.extend({},e||{}),e.loginUrlParameters=o.extend({},e.loginUrlParameters||{}),e.loginUrlParameters.hd=a._options.restrictCreationByEmailDomain);var i=a.oauth.credentialRequestCompleteHandler(t);n.requestCredential(e,i)}:a.addAutopublishFields({forLoggedInUser:o.map(n.whitelistedFields.concat(["accessToken","expiresAt"]),function(e){return"services.google."+e}),forOtherUsers:o.map(o.without(n.whitelistedFields,"email","verified_email"),function(e){return"services.google."+e})})}).call(this),"undefined"==typeof Package&&(Package={}),Package["accounts-google"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,r=Package.oauth.OAuth,o=Package.oauth.Oauth,t=Package.underscore._,n=Package["service-configuration"].ServiceConfiguration,a=Package.random.Random,i=Package.templating.Template,l=Package.blaze.Blaze,c=Package.blaze.UI,s=Package.blaze.Handlebars,u=Package.spacebars.Spacebars,p=Package.htmljs.HTML,g;(function(){g={},g._server="https://www.meteor.com",g._config=function(e){e.developerAccountsServer&&(g._server=e.developerAccountsServer)}}).call(this),function(){i.__checkName("configureLoginServiceDialogForMeteorDeveloper"),i.configureLoginServiceDialogForMeteorDeveloper=new i("Template.configureLoginServiceDialogForMeteorDeveloper",function(){var e=this;return[p.Raw("<p>\n First, you'll need to get a Meteor developer account Client ID.\n Follow these steps:\n </p>\n "),p.OL("\n ",p.Raw('<li> Visit <a href="https://www.meteor.com/account-settings" target="_blank">https://www.meteor.com/account-settings</a> and sign in.\n </li>'),"\n ",p.Raw('<li> Click "New app" in the "Meteor developer account apps" section\n and give your app a name.</li>'),"\n ",p.LI(" Add\n ",p.SPAN({"class":"url"},"\n ",l.View("lookup:siteUrl",function(){return u.mustache(e.lookup("siteUrl"))}),"_oauth/meteor-developer\n "),"\n as an Allowed Redirect URL.\n "),"\n ")]})}.call(this),function(){i.configureLoginServiceDialogForMeteorDeveloper.helpers({siteUrl:function(){return e.absoluteUrl()}}),i.configureLoginServiceDialogForMeteorDeveloper.fields=function(){return[{property:"clientId",label:"App ID"},{property:"secret",label:"App secret"}]}}.call(this),function(){var e=function(e,o){o||"function"!=typeof e||(o=e,e=null);var t=n.configurations.findOne({service:"meteor-developer"});if(!t)return void(o&&o(new n.ConfigError));var i=a.secret(),l=r._loginStyle("meteor-developer",t,e),c=g._server+"/oauth2/authorize?state="+r._stateParam(l,i,e&&e.redirectUrl)+"&response_type=code&client_id="+t.clientId;e&&e.userEmail&&!e.loginHint&&(e.loginHint=e.userEmail,delete e.userEmail),e&&e.loginHint&&(c+="&user_email="+encodeURIComponent(e.loginHint)),c+="&redirect_uri="+r._redirectUri("meteor-developer",t),r.launchLogin({loginService:"meteor-developer",loginStyle:l,loginUrl:c,credentialRequestCompleteCallback:o,credentialToken:i,popupOptions:{width:470,height:490}})};g.requestCredential=e}.call(this),"undefined"==typeof Package&&(Package={}),Package["meteor-developer"]={MeteorDeveloperAccounts:g}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,o=Package.underscore._,r=Package.random.Random,t=Package["accounts-base"].Accounts,a=Package["accounts-base"].AccountsClient,c=Package["meteor-developer"].MeteorDeveloperAccounts;(function(){t.oauth.registerService("meteor-developer"),e.isClient?e.loginWithMeteorDeveloperAccount=function(e,o){o||"function"!=typeof e||(o=e,e=null);var r=t.oauth.credentialRequestCompleteHandler(o);c.requestCredential(e,r)}:t.addAutopublishFields({forLoggedInUser:["services.meteor-developer"],forOtherUsers:["services.meteor-developer.username","services.meteor-developer.profile","services.meteor-developer.id"]})}).call(this),"undefined"==typeof Package&&(Package={}),Package["accounts-meteor-developer"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;(function(){}).call(this),"undefined"==typeof Package&&(Package={}),Package["npm-bcrypt"]={}}();
|
||
|
||
!function(){var r=Package.meteor.Meteor,n;(function(){n=function(){function r(r){function n(r,n){var t=(65535&r)+(65535&n),e=(r>>16)+(n>>16)+(t>>16);return e<<16|65535&t}function t(r,n){return r>>>n|r<<32-n}function e(r,n){return r>>>n}function o(r,n,t){return r&n^~r&t}function a(r,n,t){return r&n^r&t^n&t}function u(r){return t(r,2)^t(r,13)^t(r,22)}function f(r){return t(r,6)^t(r,11)^t(r,25)}function c(r){return t(r,7)^t(r,18)^e(r,3)}function i(r){return t(r,17)^t(r,19)^e(r,10)}function h(r,t){var e=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),h=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),g=new Array(64),C,d,v,A,l,m,S,y,k,P,w,s;r[t>>5]|=128<<24-t%32,r[(t+64>>9<<4)+15]=t;for(var k=0;k<r.length;k+=16){C=h[0],d=h[1],v=h[2],A=h[3],l=h[4],m=h[5],S=h[6],y=h[7];for(var P=0;64>P;P++)16>P?g[P]=r[P+k]:g[P]=n(n(n(i(g[P-2]),g[P-7]),c(g[P-15])),g[P-16]),w=n(n(n(n(y,f(l)),o(l,m,S)),e[P]),g[P]),s=n(u(C),a(C,d,v)),y=S,S=m,m=l,l=n(A,w),A=v,v=d,d=C,C=n(w,s);h[0]=n(C,h[0]),h[1]=n(d,h[1]),h[2]=n(v,h[2]),h[3]=n(A,h[3]),h[4]=n(l,h[4]),h[5]=n(m,h[5]),h[6]=n(S,h[6]),h[7]=n(y,h[7])}return h}function g(r){for(var n=Array(),t=(1<<v)-1,e=0;e<r.length*v;e+=v)n[e>>5]|=(r.charCodeAt(e/v)&t)<<24-e%32;return n}function C(r){for(var n="",t=0;t<r.length;t++){var e=r.charCodeAt(t);128>e?n+=String.fromCharCode(e):e>127&&2048>e?(n+=String.fromCharCode(e>>6|192),n+=String.fromCharCode(63&e|128)):(n+=String.fromCharCode(e>>12|224),n+=String.fromCharCode(e>>6&63|128),n+=String.fromCharCode(63&e|128))}return n}function d(r){for(var n=A?"0123456789ABCDEF":"0123456789abcdef",t="",e=0;e<4*r.length;e++)t+=n.charAt(r[e>>2]>>8*(3-e%4)+4&15)+n.charAt(r[e>>2]>>8*(3-e%4)&15);return t}var v=8,A=0;return r=C(r),d(h(g(r),r.length*v))}return r}()}).call(this),"undefined"==typeof Package&&(Package={}),Package.sha={SHA256:n}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,i=Package.random.Random,r=Package.check.check,o=Package.check.Match,s=Package.sha.SHA256,e=Package.underscore._,h,n;(function(){h=function(){function t(t,i,r){null!=t&&("number"==typeof t?this.fromNumber(t,i,r):null==i&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,i))}function i(){return new t(null)}function r(t,i,r,o,s,e){for(;--e>=0;){var h=i*this[t++]+r[o]+s;s=Math.floor(h/67108864),r[o++]=67108863&h}return s}function o(t,i,r,o,s,e){for(var h=32767&i,n=i>>15;--e>=0;){var u=32767&this[t],f=this[t++]>>15,a=n*u+f*h;u=h*u+((32767&a)<<15)+r[o]+(1073741823&s),s=(u>>>30)+(a>>>15)+n*f+(s>>>30),r[o++]=1073741823&u}return s}function s(t,i,r,o,s,e){for(var h=16383&i,n=i>>14;--e>=0;){var u=16383&this[t],f=this[t++]>>14,a=n*u+f*h;u=h*u+((16383&a)<<14)+r[o]+s,s=(u>>28)+(a>>14)+n*f,r[o++]=268435455&u}return s}function e(t){return ii.charAt(t)}function h(t,i){var r=ri[t.charCodeAt(i)];return null==r?-1:r}function n(t){for(var i=this.t-1;i>=0;--i)t[i]=this[i];t.t=this.t,t.s=this.s}function u(t){this.t=1,this.s=0>t?-1:0,t>0?this[0]=t:-1>t?this[0]=t+DV:this.t=0}function f(t){var r=i();return r.fromInt(t),r}function a(i,r){var o;if(16==r)o=4;else if(8==r)o=3;else if(256==r)o=8;else if(2==r)o=1;else if(32==r)o=5;else{if(4!=r)return void this.fromRadix(i,r);o=2}this.t=0,this.s=0;for(var s=i.length,e=!1,n=0;--s>=0;){var u=8==o?255&i[s]:h(i,s);0>u?"-"==i.charAt(s)&&(e=!0):(e=!1,0==n?this[this.t++]=u:n+o>this.DB?(this[this.t-1]|=(u&(1<<this.DB-n)-1)<<n,this[this.t++]=u>>this.DB-n):this[this.t-1]|=u<<n,n+=o,n>=this.DB&&(n-=this.DB))}8==o&&0!=(128&i[0])&&(this.s=-1,n>0&&(this[this.t-1]|=(1<<this.DB-n)-1<<n)),this.clamp(),e&&t.ZERO.subTo(this,this)}function p(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t}function c(t){if(this.s<0)return"-"+this.negate().toString(t);var i;if(16==t)i=4;else if(8==t)i=3;else if(2==t)i=1;else if(32==t)i=5;else{if(4!=t)return this.toRadix(t);i=2}var r=(1<<i)-1,o,s=!1,h="",n=this.t,u=this.DB-n*this.DB%i;if(n-->0)for(u<this.DB&&(o=this[n]>>u)>0&&(s=!0,h=e(o));n>=0;)i>u?(o=(this[n]&(1<<u)-1)<<i-u,o|=this[--n]>>(u+=this.DB-i)):(o=this[n]>>(u-=i)&r,0>=u&&(u+=this.DB,--n)),o>0&&(s=!0),s&&(h+=e(o));return s?h:"0"}function m(){var r=i();return t.ZERO.subTo(this,r),r}function l(){return this.s<0?this.negate():this}function v(t){var i=this.s-t.s;if(0!=i)return i;var r=this.t;if(i=r-t.t,0!=i)return i;for(;--r>=0;)if(0!=(i=this[r]-t[r]))return i;return 0}function T(t){var i=1,r;return 0!=(r=t>>>16)&&(t=r,i+=16),0!=(r=t>>8)&&(t=r,i+=8),0!=(r=t>>4)&&(t=r,i+=4),0!=(r=t>>2)&&(t=r,i+=2),0!=(r=t>>1)&&(t=r,i+=1),i}function y(){return this.t<=0?0:this.DB*(this.t-1)+T(this[this.t-1]^this.s&this.DM)}function d(t,i){var r;for(r=this.t-1;r>=0;--r)i[r+t]=this[r];for(r=t-1;r>=0;--r)i[r]=0;i.t=this.t+t,i.s=this.s}function D(t,i){for(var r=t;r<this.t;++r)i[r-t]=this[r];i.t=Math.max(this.t-t,0),i.s=this.s}function g(t,i){var r=t%this.DB,o=this.DB-r,s=(1<<o)-1,e=Math.floor(t/this.DB),h=this.s<<r&this.DM,n;for(n=this.t-1;n>=0;--n)i[n+e+1]=this[n]>>o|h,h=(this[n]&s)<<r;for(n=e-1;n>=0;--n)i[n]=0;i[e]=h,i.t=this.t+e+1,i.s=this.s,i.clamp()}function B(t,i){i.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)return void(i.t=0);var o=t%this.DB,s=this.DB-o,e=(1<<o)-1;i[0]=this[r]>>o;for(var h=r+1;h<this.t;++h)i[h-r-1]|=(this[h]&e)<<s,i[h-r]=this[h]>>o;o>0&&(i[this.t-r-1]|=(this.s&e)<<s),i.t=this.t-r,i.clamp()}function b(t,i){for(var r=0,o=0,s=Math.min(t.t,this.t);s>r;)o+=this[r]-t[r],i[r++]=o&this.DM,o>>=this.DB;if(t.t<this.t){for(o-=t.s;r<this.t;)o+=this[r],i[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<t.t;)o-=t[r],i[r++]=o&this.DM,o>>=this.DB;o-=t.s}i.s=0>o?-1:0,-1>o?i[r++]=this.DV+o:o>0&&(i[r++]=o),i.t=r,i.clamp()}function S(i,r){var o=this.abs(),s=i.abs(),e=o.t;for(r.t=e+s.t;--e>=0;)r[e]=0;for(e=0;e<s.t;++e)r[e+o.t]=o.am(0,s[e],r,e,0,o.t);r.s=0,r.clamp(),this.s!=i.s&&t.ZERO.subTo(r,r)}function E(t){for(var i=this.abs(),r=t.t=2*i.t;--r>=0;)t[r]=0;for(r=0;r<i.t-1;++r){var o=i.am(r,i[r],t,2*r,0,1);(t[r+i.t]+=i.am(r+1,2*i[r],t,2*r+1,o,i.t-r-1))>=i.DV&&(t[r+i.t]-=i.DV,t[r+i.t+1]=1)}t.t>0&&(t[t.t-1]+=i.am(r,i[r],t,2*r,0,1)),t.s=0,t.clamp()}function w(r,o,s){var e=r.abs();if(!(e.t<=0)){var h=this.abs();if(h.t<e.t)return null!=o&&o.fromInt(0),void(null!=s&&this.copyTo(s));null==s&&(s=i());var n=i(),u=this.s,f=r.s,a=this.DB-T(e[e.t-1]);a>0?(e.lShiftTo(a,n),h.lShiftTo(a,s)):(e.copyTo(n),h.copyTo(s));var p=n.t,c=n[p-1];if(0!=c){var m=c*(1<<this.F1)+(p>1?n[p-2]>>this.F2:0),l=this.FV/m,v=(1<<this.F1)/m,y=1<<this.F2,d=s.t,D=d-p,g=null==o?i():o;for(n.dlShiftTo(D,g),s.compareTo(g)>=0&&(s[s.t++]=1,s.subTo(g,s)),t.ONE.dlShiftTo(p,g),g.subTo(n,n);n.t<p;)n[n.t++]=0;for(;--D>=0;){var B=s[--d]==c?this.DM:Math.floor(s[d]*l+(s[d-1]+y)*v);if((s[d]+=n.am(0,B,s,D,0,p))<B)for(n.dlShiftTo(D,g),s.subTo(g,s);s[d]<--B;)s.subTo(g,s)}null!=o&&(s.drShiftTo(p,o),u!=f&&t.ZERO.subTo(o,o)),s.t=p,s.clamp(),a>0&&s.rShiftTo(a,s),0>u&&t.ZERO.subTo(s,s)}}}function M(r){var o=i();return this.abs().divRemTo(r,null,o),this.s<0&&o.compareTo(t.ZERO)>0&&r.subTo(o,o),o}function A(t){this.m=t}function R(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t}function O(t){return t}function C(t){t.divRemTo(this.m,null,t)}function F(t,i,r){t.multiplyTo(i,r),this.reduce(r)}function V(t,i){t.squareTo(i),this.reduce(i)}function N(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var i=3&t;return i=i*(2-(15&t)*i)&15,i=i*(2-(255&t)*i)&255,i=i*(2-((65535&t)*i&65535))&65535,i=i*(2-t*i%this.DV)%this.DV,i>0?this.DV-i:-i}function k(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function q(r){var o=i();return r.abs().dlShiftTo(this.m.t,o),o.divRemTo(this.m,null,o),r.s<0&&o.compareTo(t.ZERO)>0&&this.m.subTo(o,o),o}function P(t){var r=i();return t.copyTo(r),this.reduce(r),r}function L(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var i=0;i<this.m.t;++i){var r=32767&t[i],o=r*this.mpl+((r*this.mph+(t[i]>>15)*this.mpl&this.um)<<15)&t.DM;for(r=i+this.m.t,t[r]+=this.m.am(0,o,t,i,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)}function x(t,i){t.squareTo(i),this.reduce(i)}function I(t,i,r){t.multiplyTo(i,r),this.reduce(r)}function Z(){return 0==(this.t>0?1&this[0]:this.s)}function z(r,o){if(r>4294967295||1>r)return t.ONE;var s=i(),e=i(),h=o.convert(this),n=T(r)-1;for(h.copyTo(s);--n>=0;)if(o.sqrTo(s,e),(r&1<<n)>0)o.mulTo(e,h,s);else{var u=s;s=e,e=u}return o.revert(s)}function U(t,i){var r;return r=256>t||i.isEven()?new A(i):new k(i),this.exp(t,r)}function j(){var t=i();return this.copyTo(t),t}function H(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function _(){return 0==this.t?this.s:this[0]<<24>>24}function G(){return 0==this.t?this.s:this[0]<<16>>16}function J(t){return Math.floor(Math.LN2*this.DB/Math.log(t))}function K(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1}function Q(t){if(null==t&&(t=10),0==this.signum()||2>t||t>36)return"0";var r=this.chunkSize(t),o=Math.pow(t,r),s=f(o),e=i(),h=i(),n="";for(this.divRemTo(s,e,h);e.signum()>0;)n=(o+h.intValue()).toString(t).substr(1)+n,e.divRemTo(s,e,h);return h.intValue().toString(t)+n}function W(i,r){this.fromInt(0),null==r&&(r=10);for(var o=this.chunkSize(r),s=Math.pow(r,o),e=!1,n=0,u=0,f=0;f<i.length;++f){var a=h(i,f);0>a?"-"==i.charAt(f)&&0==this.signum()&&(e=!0):(u=r*u+a,++n>=o&&(this.dMultiply(s),this.dAddOffset(u,0),n=0,u=0))}n>0&&(this.dMultiply(Math.pow(r,n)),this.dAddOffset(u,0)),e&&t.ZERO.subTo(this,this)}function X(i,r,o){if("number"==typeof r)if(2>i)this.fromInt(1);else for(this.fromNumber(i,o),this.testBit(i-1)||this.bitwiseTo(t.ONE.shiftLeft(i-1),et,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(r);)this.dAddOffset(2,0),this.bitLength()>i&&this.subTo(t.ONE.shiftLeft(i-1),this);else{var s=new Array,e=7&i;s.length=(i>>3)+1,r.nextBytes(s),e>0?s[0]&=(1<<e)-1:s[0]=0,this.fromString(s,256)}}function Y(){var t=this.t,i=new Array;i[0]=this.s;var r=this.DB-t*this.DB%8,o,s=0;if(t-->0)for(r<this.DB&&(o=this[t]>>r)!=(this.s&this.DM)>>r&&(i[s++]=o|this.s<<this.DB-r);t>=0;)8>r?(o=(this[t]&(1<<r)-1)<<8-r,o|=this[--t]>>(r+=this.DB-8)):(o=this[t]>>(r-=8)&255,0>=r&&(r+=this.DB,--t)),0!=(128&o)&&(o|=-256),0==s&&(128&this.s)!=(128&o)&&++s,(s>0||o!=this.s)&&(i[s++]=o);return i}function $(t){return 0==this.compareTo(t)}function tt(t){return this.compareTo(t)<0?this:t}function it(t){return this.compareTo(t)>0?this:t}function rt(t,i,r){var o,s,e=Math.min(t.t,this.t);for(o=0;e>o;++o)r[o]=i(this[o],t[o]);if(t.t<this.t){for(s=t.s&this.DM,o=e;o<this.t;++o)r[o]=i(this[o],s);r.t=this.t}else{for(s=this.s&this.DM,o=e;o<t.t;++o)r[o]=i(s,t[o]);r.t=t.t}r.s=i(this.s,t.s),r.clamp()}function ot(t,i){return t&i}function st(t){var r=i();return this.bitwiseTo(t,ot,r),r}function et(t,i){return t|i}function ht(t){var r=i();return this.bitwiseTo(t,et,r),r}function nt(t,i){return t^i}function ut(t){var r=i();return this.bitwiseTo(t,nt,r),r}function ft(t,i){return t&~i}function at(t){var r=i();return this.bitwiseTo(t,ft,r),r}function pt(){for(var t=i(),r=0;r<this.t;++r)t[r]=this.DM&~this[r];return t.t=this.t,t.s=~this.s,t}function ct(t){var r=i();return 0>t?this.rShiftTo(-t,r):this.lShiftTo(t,r),r}function mt(t){var r=i();return 0>t?this.lShiftTo(-t,r):this.rShiftTo(t,r),r}function lt(t){if(0==t)return-1;var i=0;return 0==(65535&t)&&(t>>=16,i+=16),0==(255&t)&&(t>>=8,i+=8),0==(15&t)&&(t>>=4,i+=4),0==(3&t)&&(t>>=2,i+=2),0==(1&t)&&++i,i}function vt(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+lt(this[t]);return this.s<0?this.t*this.DB:-1}function Tt(t){for(var i=0;0!=t;)t&=t-1,++i;return i}function yt(){for(var t=0,i=this.s&this.DM,r=0;r<this.t;++r)t+=Tt(this[r]^i);return t}function dt(t){var i=Math.floor(t/this.DB);return i>=this.t?0!=this.s:0!=(this[i]&1<<t%this.DB)}function Dt(i,r){var o=t.ONE.shiftLeft(i);return this.bitwiseTo(o,r,o),o}function gt(t){return this.changeBit(t,et)}function Bt(t){return this.changeBit(t,ft)}function bt(t){return this.changeBit(t,nt)}function St(t,i){for(var r=0,o=0,s=Math.min(t.t,this.t);s>r;)o+=this[r]+t[r],i[r++]=o&this.DM,o>>=this.DB;if(t.t<this.t){for(o+=t.s;r<this.t;)o+=this[r],i[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<t.t;)o+=t[r],i[r++]=o&this.DM,o>>=this.DB;o+=t.s}i.s=0>o?-1:0,o>0?i[r++]=o:-1>o&&(i[r++]=this.DV+o),i.t=r,i.clamp()}function Et(t){var r=i();return this.addTo(t,r),r}function wt(t){var r=i();return this.subTo(t,r),r}function Mt(t){var r=i();return this.multiplyTo(t,r),r}function At(t){var r=i();return this.divRemTo(t,r,null),r}function Rt(t){var r=i();return this.divRemTo(t,null,r),r}function Ot(t){var r=i(),o=i();return this.divRemTo(t,r,o),new Array(r,o)}function Ct(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()}function Ft(t,i){for(;this.t<=i;)this[this.t++]=0;for(this[i]+=t;this[i]>=this.DV;)this[i]-=this.DV,++i>=this.t&&(this[this.t++]=0),++this[i]}function Vt(){}function Nt(t){return t}function kt(t,i,r){t.multiplyTo(i,r)}function qt(t,i){t.squareTo(i)}function Pt(t){return this.exp(t,new Vt)}function Lt(t,i,r){var o=Math.min(this.t+t.t,i);for(r.s=0,r.t=o;o>0;)r[--o]=0;var s;for(s=r.t-this.t;s>o;++o)r[o+this.t]=this.am(0,t[o],r,o,0,this.t);for(s=Math.min(t.t,i);s>o;++o)this.am(0,t[o],r,o,0,i-o);r.clamp()}function xt(t,i,r){--i;var o=r.t=this.t+t.t-i;for(r.s=0;--o>=0;)r[o]=0;for(o=Math.max(i-this.t,0);o<t.t;++o)r[this.t+o-i]=this.am(i-o,t[o],r,0,0,this.t+o-i);r.clamp(),r.drShiftTo(1,r)}function It(r){this.r2=i(),this.q3=i(),t.ONE.dlShiftTo(2*r.t,this.r2),this.mu=this.r2.divide(r),this.m=r}function Zt(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var r=i();return t.copyTo(r),this.reduce(r),r}function zt(t){return t}function Ut(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)}function jt(t,i){t.squareTo(i),this.reduce(i)}function Ht(t,i,r){t.multiplyTo(i,r),this.reduce(r)}function _t(t,r){var o=t.bitLength(),s,e=f(1),h;if(0>=o)return e;s=18>o?1:48>o?3:144>o?4:768>o?5:6,h=8>o?new A(r):r.isEven()?new It(r):new k(r);var n=new Array,u=3,a=s-1,p=(1<<s)-1;if(n[1]=h.convert(this),s>1){var c=i();for(h.sqrTo(n[1],c);p>=u;)n[u]=i(),h.mulTo(c,n[u-2],n[u]),u+=2}var m=t.t-1,l,v=!0,y=i(),d;for(o=T(t[m])-1;m>=0;){for(o>=a?l=t[m]>>o-a&p:(l=(t[m]&(1<<o+1)-1)<<a-o,m>0&&(l|=t[m-1]>>this.DB+o-a)),u=s;0==(1&l);)l>>=1,--u;if((o-=u)<0&&(o+=this.DB,--m),v)n[l].copyTo(e),v=!1;else{for(;u>1;)h.sqrTo(e,y),h.sqrTo(y,e),u-=2;u>0?h.sqrTo(e,y):(d=e,e=y,y=d),h.mulTo(y,n[l],e)}for(;m>=0&&0==(t[m]&1<<o);)h.sqrTo(e,y),d=e,e=y,y=d,--o<0&&(o=this.DB-1,--m)}return h.revert(e)}function Gt(t){var i=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(i.compareTo(r)<0){var o=i;i=r,r=o}var s=i.getLowestSetBit(),e=r.getLowestSetBit();if(0>e)return i;for(e>s&&(e=s),e>0&&(i.rShiftTo(e,i),r.rShiftTo(e,r));i.signum()>0;)(s=i.getLowestSetBit())>0&&i.rShiftTo(s,i),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),i.compareTo(r)>=0?(i.subTo(r,i),i.rShiftTo(1,i)):(r.subTo(i,r),r.rShiftTo(1,r));return e>0&&r.lShiftTo(e,r),r}function Jt(t){if(0>=t)return 0;var i=this.DV%t,r=this.s<0?t-1:0;if(this.t>0)if(0==i)r=this[0]%t;else for(var o=this.t-1;o>=0;--o)r=(i*r+this[o])%t;return r}function Kt(i){var r=i.isEven();if(this.isEven()&&r||0==i.signum())return t.ZERO;for(var o=i.clone(),s=this.clone(),e=f(1),h=f(0),n=f(0),u=f(1);0!=o.signum();){for(;o.isEven();)o.rShiftTo(1,o),r?(e.isEven()&&h.isEven()||(e.addTo(this,e),h.subTo(i,h)),e.rShiftTo(1,e)):h.isEven()||h.subTo(i,h),h.rShiftTo(1,h);for(;s.isEven();)s.rShiftTo(1,s),r?(n.isEven()&&u.isEven()||(n.addTo(this,n),u.subTo(i,u)),n.rShiftTo(1,n)):u.isEven()||u.subTo(i,u),u.rShiftTo(1,u);o.compareTo(s)>=0?(o.subTo(s,o),r&&e.subTo(n,e),h.subTo(u,h)):(s.subTo(o,s),r&&n.subTo(e,n),u.subTo(h,u))}return 0!=s.compareTo(t.ONE)?t.ZERO:u.compareTo(i)>=0?u.subtract(i):u.signum()<0?(u.addTo(i,u),u.signum()<0?u.add(i):u):u}function Qt(t){var i,r=this.abs();if(1==r.t&&r[0]<=ei[ei.length-1]){for(i=0;i<ei.length;++i)if(r[0]==ei[i])return!0;return!1}if(r.isEven())return!1;for(i=1;i<ei.length;){for(var o=ei[i],s=i+1;s<ei.length&&hi>o;)o*=ei[s++];for(o=r.modInt(o);s>i;)if(o%ei[i++]==0)return!1}return r.millerRabin(t)}function Wt(r){var o=this.subtract(t.ONE),s=o.getLowestSetBit();if(0>=s)return!1;var e=o.shiftRight(s);r=r+1>>1,r>ei.length&&(r=ei.length);for(var h=i(),n=0;r>n;++n){h.fromInt(ei[n]);var u=h.modPow(e,this);if(0!=u.compareTo(t.ONE)&&0!=u.compareTo(o)){for(var f=1;f++<s&&0!=u.compareTo(o);)if(u=u.modPowInt(2,this),0==u.compareTo(t.ONE))return!1;if(0!=u.compareTo(o))return!1}}return!0}var Xt,Yt=0xdeadbeefcafe,$t=15715070==(16777215&Yt);t.prototype.am=s,Xt=28,t.prototype.DB=Xt,t.prototype.DM=(1<<Xt)-1,t.prototype.DV=1<<Xt;var ti=52;t.prototype.FV=Math.pow(2,ti),t.prototype.F1=ti-Xt,t.prototype.F2=2*Xt-ti;var ii="0123456789abcdefghijklmnopqrstuvwxyz",ri=new Array,oi,si;for(oi="0".charCodeAt(0),si=0;9>=si;++si)ri[oi++]=si;for(oi="a".charCodeAt(0),si=10;36>si;++si)ri[oi++]=si;for(oi="A".charCodeAt(0),si=10;36>si;++si)ri[oi++]=si;A.prototype.convert=R,A.prototype.revert=O,A.prototype.reduce=C,A.prototype.mulTo=F,A.prototype.sqrTo=V,k.prototype.convert=q,k.prototype.revert=P,k.prototype.reduce=L,k.prototype.mulTo=I,k.prototype.sqrTo=x,t.prototype.copyTo=n,t.prototype.fromInt=u,t.prototype.fromString=a,t.prototype.clamp=p,t.prototype.dlShiftTo=d,t.prototype.drShiftTo=D,t.prototype.lShiftTo=g,t.prototype.rShiftTo=B,t.prototype.subTo=b,t.prototype.multiplyTo=S,t.prototype.squareTo=E,t.prototype.divRemTo=w,t.prototype.invDigit=N,t.prototype.isEven=Z,t.prototype.exp=z,t.prototype.toString=c,t.prototype.negate=m,t.prototype.abs=l,t.prototype.compareTo=v,t.prototype.bitLength=y,t.prototype.mod=M,t.prototype.modPowInt=U,t.ZERO=f(0),t.ONE=f(1),Vt.prototype.convert=Nt,Vt.prototype.revert=Nt,Vt.prototype.mulTo=kt,Vt.prototype.sqrTo=qt,It.prototype.convert=Zt,It.prototype.revert=zt,It.prototype.reduce=Ut,It.prototype.mulTo=Ht,It.prototype.sqrTo=jt;var ei=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],hi=(1<<26)/ei[ei.length-1];return t.prototype.chunkSize=J,t.prototype.toRadix=Q,t.prototype.fromRadix=W,t.prototype.fromNumber=X,t.prototype.bitwiseTo=rt,t.prototype.changeBit=Dt,t.prototype.addTo=St,t.prototype.dMultiply=Ct,t.prototype.dAddOffset=Ft,t.prototype.multiplyLowerTo=Lt,t.prototype.multiplyUpperTo=xt,t.prototype.modInt=Jt,t.prototype.millerRabin=Wt,t.prototype.clone=j,t.prototype.intValue=H,t.prototype.byteValue=_,t.prototype.shortValue=G,t.prototype.signum=K,t.prototype.toByteArray=Y,t.prototype.equals=$,t.prototype.min=tt,t.prototype.max=it,t.prototype.and=st,t.prototype.or=ht,t.prototype.xor=ut,t.prototype.andNot=at,t.prototype.not=pt,t.prototype.shiftLeft=ct,t.prototype.shiftRight=mt,t.prototype.getLowestSetBit=vt,t.prototype.bitCount=yt,t.prototype.testBit=dt,t.prototype.setBit=gt,t.prototype.clearBit=Bt,t.prototype.flipBit=bt,t.prototype.add=Et,t.prototype.subtract=wt,t.prototype.multiply=Mt,t.prototype.divide=At,t.prototype.remainder=Rt,t.prototype.divideAndRemainder=Ot,t.prototype.modPow=_t,t.prototype.modInverse=Kt,t.prototype.pow=Pt,t.prototype.gcd=Gt,t.prototype.isProbablePrime=Qt,t}()}).call(this),function(){n={},n.generateVerifier=function(t,o){var s=r(o),e=o&&o.salt||i.secret(),n,u=o&&o.hashedIdentityAndPassword;u||(n=o&&o.identity||i.secret(),u=s.hash(n+":"+t));var f=s.hash(e+u),a=new h(f,16),p=s.g.modPow(a,s.N);return{identity:n,salt:e,verifier:p.toString(16)}},n.matchVerifier={identity:String,salt:String,verifier:String};var t={hash:function(t){return s(t).toLowerCase()},N:new h("EEAF0AB9ADB38DD69C33F80AFA8FC5E86072618775FF3C0B9EA2314C9C256576D674DF7496EA81D3383B4813D692C6E0E0D5D8E250B98BE48E495C1D6089DAD15DC7D7B46154D6B6CE8EF4AD69B15D4982559B297BCF1885C529F566660E57EC68EDBC3C05726CC02FD4CBF4976EAA9AFD5138FE8376435B9FC61D2FC0EB06E3",16),g:new h("2")};t.k=new h(t.hash(t.N.toString(16)+t.g.toString(16)),16);var r=function(i){if(!i)return t;var r=e.extend({},t);return e.each(["N","g","k"],function(t){if(i[t])if("string"==typeof i[t])r[t]=new h(i[t],16);else{if(!(i[t]instanceof h))throw new Error("Invalid parameter: "+t);r[t]=i[t]}}),i.hash&&(r.hash=function(t){return i.hash(t).toLowerCase()}),!i.k&&(i.N||i.g||i.hash)&&(r.k=r.hash(r.N.toString(16)+r.g.toString(16))),r}}.call(this),"undefined"==typeof Package&&(Package={}),Package.srp={SRP:n}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,r=Package["accounts-base"].Accounts,a=Package["accounts-base"].AccountsClient,s=Package.srp.SRP,o=Package.sha.SHA256,t=Package.ejson.EJSON,n=Package["ddp-client"].DDP,c=Package.check.check,d=Package.check.Match,i=Package.underscore._,l=Package.ecmascript.ECMAScript,u=Package["babel-runtime"].babelHelpers,g=Package["ecmascript-runtime"].Symbol,w=Package["ecmascript-runtime"].Map,P=Package["ecmascript-runtime"].Set,m=Package.promise.Promise;(function(){e.loginWithPassword=function(e,s,o){"string"==typeof e&&(e=-1===e.indexOf("@")?{username:e}:{email:e}),r.callLoginMethod({methodArguments:[{user:e,password:r._hashPassword(s)}],userCallback:function(r,t){r&&400===r.error&&"old password format"===r.reason?a({upgradeError:r,userSelector:e,plaintextPassword:s},o):r?o&&o(r):o&&o()}})},r._hashPassword=function(e){return{digest:o(e),algorithm:"sha-256"}};var a=function(a,s){var n;try{n=t.parse(a.upgradeError.details)}catch(c){}n&&"srp"===n.format?r.callLoginMethod({methodArguments:[{user:a.userSelector,srp:o(n.identity+":"+a.plaintextPassword),password:r._hashPassword(a.plaintextPassword)}],userCallback:s}):s&&s(new e.Error(400,"Password is old. Please reset your password."))};r.createUser=function(a,s){if(a=i.clone(a),"string"!=typeof a.password)throw new Error("options.password must be a string");return a.password?(a.password=r._hashPassword(a.password),void r.callLoginMethod({methodName:"createUser",methodArguments:[a],userCallback:s})):void s(new e.Error(400,"Password may not be empty"))},r.changePassword=function(s,o,t){return e.user()?(c(o,String),o?void r.connection.apply("changePassword",[s?r._hashPassword(s):null,r._hashPassword(o)],function(n,c){n||!c?n&&400===n.error&&"old password format"===n.reason?a({upgradeError:n,userSelector:{id:e.userId()},plaintextPassword:s},function(e){e?t&&t(e):r.changePassword(s,o,t)}):t&&t(n||new Error("No result from changePassword.")):t&&t()}):void t(new e.Error(400,"Password may not be empty"))):void(t&&t(new Error("Must be logged in to change password.")))},r.forgotPassword=function(e,a){if(!e.email)throw new Error("Must pass options.email");r.connection.call("forgotPassword",e,a)},r.resetPassword=function(a,s,o){return c(a,String),c(s,String),s?void r.callLoginMethod({methodName:"resetPassword",methodArguments:[a,r._hashPassword(s)],userCallback:o}):void o(new e.Error(400,"Password may not be empty"))},r.verifyEmail=function(e,a){if(!e)throw new Error("Need to pass token");r.callLoginMethod({methodName:"verifyEmail",methodArguments:[e],userCallback:a})}}).call(this),"undefined"==typeof Package&&(Package={}),Package["accounts-password"]={}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,e=Package.underscore._,n=Package.url.URL,r,a,o;(function(){r=function(t,e){var n=500,r=function(t,e){return t.length>e?t.slice(0,e)+"...":t},a="string"==typeof e?e:e.toString(),o="failed ["+t+"]";return a&&(o+=" "+r(a.replace(/\n/g," "),n)),new Error(o)},a=function(t){var n=(t.headers["content-type"]||";").split(";")[0];if(e.include(["application/json","text/javascript","application/javascript","application/x-javascript"],n))try{t.data=JSON.parse(t.content)}catch(r){t.data=null}else t.data=null},o={},o.get=function(){return o.call.apply(this,["GET"].concat(e.toArray(arguments)))},o.post=function(){return o.call.apply(this,["POST"].concat(e.toArray(arguments)))},o.put=function(){return o.call.apply(this,["PUT"].concat(e.toArray(arguments)))},o.del=function(){return o.call.apply(this,["DELETE"].concat(e.toArray(arguments)))}}).call(this),function(){o.call=function(o,c,s,i){if(i||"function"!=typeof s||(i=s,s=null),s=s||{},"function"!=typeof i)throw new Error("Can't make a blocking HTTP call from the client; callback required.");o=(o||"").toUpperCase();var u={},l=s.content;s.data&&(l=JSON.stringify(s.data),u["Content-Type"]="application/json");var p,f;if(l||"GET"===o||"HEAD"===o?p=s.params:f=s.params,c=n._constructUrl(c,s.query,p),s.followRedirects===!1)throw new Error("Option followRedirects:false not supported on client.");if(e.has(s,"npmRequestOptions"))throw new Error("Option npmRequestOptions not supported on client.");var d,h;if(s.auth){var y=s.auth.indexOf(":");if(0>y)throw new Error('auth option should be of the form "username:password"');d=s.auth.substring(0,y),h=s.auth.substring(y+1)}f&&(l=n._encodeParams(f)),e.extend(u,s.headers||{}),i=function(t){return function(e,n){e&&n&&(e.response=n),t(e,n)}}(i),i=e.once(i);try{var g;if("undefined"!=typeof XMLHttpRequest)g=new XMLHttpRequest;else{if("undefined"==typeof ActiveXObject)throw new Error("Can't create XMLHttpRequest");g=new ActiveXObject("Microsoft.XMLHttp")}g.open(o,c,!0,d,h);for(var v in u)g.setRequestHeader(v,u[v]);var w=!1,m;if(s.timeout&&(m=t.setTimeout(function(){w=!0,g.abort()},s.timeout)),g.onreadystatechange=function(n){if(4===g.readyState)if(m&&t.clearTimeout(m),w)i(new Error("timeout"));else if(g.status){var o={};o.statusCode=g.status,o.content=g.responseText,o.headers={};var c=g.getAllResponseHeaders();""===c&&g.getResponseHeader("content-type")&&(c="content-type: "+g.getResponseHeader("content-type"));var s=c.split(/\r?\n/);e.each(s,function(t){var e=/^(.*?):(?:\s+)(.*)$/.exec(t);e&&3===e.length&&(o.headers[e[1].toLowerCase()]=e[2])}),a(o);var u=null;o.statusCode>=400&&(u=r(o.statusCode,o.content)),i(u,o)}else i(new Error("network"))},s.beforeSend){var E=e.once(s.beforeSend);if(!1===E.call(null,g,s))return g.abort()}g.send(l)}catch(T){i(T)}}}.call(this),function(){t.http=o}.call(this),"undefined"==typeof Package&&(Package={}),Package.http={HTTP:o}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,e=Package.random.Random,o=Package["service-configuration"].ServiceConfiguration,c=Package.oauth.OAuth,g=Package.oauth.Oauth,n=Package.mongo.Mongo;"undefined"==typeof Package&&(Package={}),Package.oauth1={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.http.HTTP,a=Package.templating.Template,i=Package.oauth.OAuth,r=Package.oauth.Oauth,n=Package.random.Random,o=Package["service-configuration"].ServiceConfiguration,l=Package.blaze.Blaze,c=Package.blaze.UI,s=Package.blaze.Handlebars,u=Package.spacebars.Spacebars,g=Package.htmljs.HTML,p;(function(){a.__checkName("configureLoginServiceDialogForTwitter"),a.configureLoginServiceDialogForTwitter=new a("Template.configureLoginServiceDialogForTwitter",function(){var e=this;return[g.Raw("<p>\n First, you'll need to register your app on Twitter. Follow these steps:\n </p>\n "),g.OL("\n ",g.Raw('<li>\n Visit <a href="https://dev.twitter.com/apps/new" target="_blank">https://dev.twitter.com/apps/new</a>\n </li>'),"\n ",g.LI("\n Set Website to: ",g.SPAN({"class":"url"},l.View("lookup:siteUrl",function(){return u.mustache(e.lookup("siteUrl"))})),"\n "),"\n ",g.LI("\n Set Callback URL to: ",g.SPAN({"class":"url"},l.View("lookup:siteUrl",function(){return u.mustache(e.lookup("siteUrl"))}),"_oauth/twitter"),"\n "),"\n ",g.Raw('<li>\n Select "Create your Twitter application".\n </li>'),"\n ",g.Raw('<li>\n On the Settings tab, enable "Allow this application to be used to Sign in with Twitter" and click\n "Update settings".\n </li>'),"\n ",g.Raw('<li>\n Switch to the "Keys and Access Tokens" tab.\n </li>'),"\n ")]})}).call(this),function(){a.configureLoginServiceDialogForTwitter.helpers({siteUrl:function(){return e.absoluteUrl({replaceLocalhost:!0})}}),a.configureLoginServiceDialogForTwitter.fields=function(){return[{property:"consumerKey",label:"API key"},{property:"secret",label:"API secret"}]}}.call(this),function(){p={},p.requestCredential=function(t,a){a||"function"!=typeof t||(a=t,t={});var r=o.configurations.findOne({service:"twitter"});if(!r)return void(a&&a(new o.ConfigError));var l=n.secret(),c=i._loginStyle("twitter",r,t),s="_oauth/twitter/?requestTokenAndRedirect=true&state="+i._stateParam(c,l,t&&t.redirectUrl);e.isCordova&&(s+="&cordova=true",/Android/i.test(navigator.userAgent)&&(s+="&android=true"));var u=e.absoluteUrl(s);i.launchLogin({loginService:"twitter",loginStyle:c,loginUrl:u,credentialRequestCompleteCallback:a,credentialToken:l})}}.call(this),"undefined"==typeof Package&&(Package={}),Package.twitter={Twitter:p}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package["accounts-base"].Accounts,a=Package["accounts-base"].AccountsClient,c=Package.twitter.Twitter,i=Package.http.HTTP;(function(){if(t.oauth.registerService("twitter"),e.isClient)e.loginWithTwitter=function(e,a){a||"function"!=typeof e||(a=e,e=null);var i=t.oauth.credentialRequestCompleteHandler(a);c.requestCredential(e,i)};else{var a=_.map(c.whitelistedFields.concat(["id","screenName"]),function(e){return"services.twitter."+e});t.addAutopublishFields({forLoggedInUser:a,forOtherUsers:a})}}).call(this),"undefined"==typeof Package&&(Package={}),Package["accounts-twitter"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;"undefined"==typeof Package&&(Package={}),Package["blaze-html-templates"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;"undefined"==typeof Package&&(Package={}),Package.email={}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,e,n;(function(){e={exports:{}}}).call(this),function(){function t(e,n){"use strict";function i(t,e){return function(){return t.apply(e,arguments)}}var r;if(n=n||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=n.touchBoundary||10,this.layer=e,this.tapDelay=n.tapDelay||200,this.tapTimeout=n.tapTimeout||700,!t.notNeeded(e)){for(var a=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],c=this,s=0,u=a.length;u>s;s++)c[a[s]]=i(c[a[s]],c);o&&(e.addEventListener("mouseover",this.onMouse,!0),e.addEventListener("mousedown",this.onMouse,!0),e.addEventListener("mouseup",this.onMouse,!0)),e.addEventListener("click",this.onClick,!0),e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1),e.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(e.removeEventListener=function(t,n,o){var i=Node.prototype.removeEventListener;"click"===t?i.call(e,t,n.hijacked||n,o):i.call(e,t,n,o)},e.addEventListener=function(t,n,o){var i=Node.prototype.addEventListener;"click"===t?i.call(e,t,n.hijacked||(n.hijacked=function(t){t.propagationStopped||n(t)}),o):i.call(e,t,n,o)}),"function"==typeof e.onclick&&(r=e.onclick,e.addEventListener("click",function(t){r(t)},!1),e.onclick=null)}}var n=navigator.userAgent.indexOf("Windows Phone")>=0,o=navigator.userAgent.indexOf("Android")>0&&!n,i=/iP(ad|hone|od)/.test(navigator.userAgent)&&!n,r=i&&/OS 4_\d(_\d)?/.test(navigator.userAgent),a=i&&/OS [6-7]_\d/.test(navigator.userAgent),c=navigator.userAgent.indexOf("BB10")>0;t.prototype.needsClick=function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(i&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(t.className)},t.prototype.needsFocus=function(t){switch(t.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!o;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},t.prototype.sendClick=function(t,e){var n,o;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),o=e.changedTouches[0],n=document.createEvent("MouseEvents"),n.initMouseEvent(this.determineEventType(t),!0,!0,window,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,t.dispatchEvent(n)},t.prototype.determineEventType=function(t){return o&&"select"===t.tagName.toLowerCase()?"mousedown":"click"},t.prototype.focus=function(t){var e;i&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type&&"month"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},t.prototype.updateScrollParent=function(t){var e,n;if(e=t.fastClickScrollParent,!e||!e.contains(t)){n=t;do{if(n.scrollHeight>n.offsetHeight){e=n,t.fastClickScrollParent=n;break}n=n.parentElement}while(n)}e&&(e.fastClickLastScrollTop=e.scrollTop)},t.prototype.getTargetElementFromEventTarget=function(t){return t.nodeType===Node.TEXT_NODE?t.parentNode:t},t.prototype.onTouchStart=function(t){var e,n,o;if(t.targetTouches.length>1)return!0;if(e=this.getTargetElementFromEventTarget(t.target),n=t.targetTouches[0],i){if(o=window.getSelection(),o.rangeCount&&!o.isCollapsed)return!0;if(!r){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(e)}}return this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=n.pageX,this.touchStartY=n.pageY,t.timeStamp-this.lastClickTime<this.tapDelay&&t.preventDefault(),!0},t.prototype.touchHasMoved=function(t){var e=t.changedTouches[0],n=this.touchBoundary;return Math.abs(e.pageX-this.touchStartX)>n||Math.abs(e.pageY-this.touchStartY)>n?!0:!1},t.prototype.onTouchMove=function(t){return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0):!0},t.prototype.findControl=function(t){return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},t.prototype.onTouchEnd=function(t){var e,n,c,s,u,l=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(t.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=t.timeStamp,n=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,a&&(u=t.changedTouches[0],l=document.elementFromPoint(u.pageX-window.pageXOffset,u.pageY-window.pageYOffset)||l,l.fastClickScrollParent=this.targetElement.fastClickScrollParent),c=l.tagName.toLowerCase(),"label"===c){if(e=this.findControl(l)){if(this.focus(l),o)return!1;l=e}}else if(this.needsFocus(l))return t.timeStamp-n>100||i&&window.top!==window&&"input"===c?(this.targetElement=null,!1):(this.focus(l),this.sendClick(l,t),i&&"select"===c||(this.targetElement=null,t.preventDefault()),!1);return i&&!r&&(s=l.fastClickScrollParent,s&&s.fastClickLastScrollTop!==s.scrollTop)?!0:(this.needsClick(l)||(t.preventDefault(),this.sendClick(l,t)),!1)},t.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},t.prototype.onMouse=function(t){return this.targetElement?t.forwardedTouchEvent?!0:t.cancelable&&(!this.needsClick(this.targetElement)||this.cancelNextClick)?(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),!1):!0:!0},t.prototype.onClick=function(t){var e;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===t.target.type&&0===t.detail?!0:(e=this.onMouse(t),e||(this.targetElement=null),e)},t.prototype.destroy=function(){var t=this.layer;o&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},t.notNeeded=function(t){var e,n,i,r;if("undefined"==typeof window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!o)return!0;if(e=document.querySelector("meta[name=viewport]")){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(n>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(c&&(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/),i[1]>=10&&i[2]>=3&&(e=document.querySelector("meta[name=viewport]")))){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===t.style.msTouchAction||"manipulation"===t.style.touchAction?!0:(r=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1],r>=27&&(e=document.querySelector("meta[name=viewport]"),e&&(-1!==e.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))?!0:"none"===t.style.touchAction||"manipulation"===t.style.touchAction?!0:!1)},t.attach=function(e,n){return new t(e,n)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return t}):"undefined"!=typeof e&&e.exports?(e.exports=t.attach,e.exports.FastClick=t):window.FastClick=t}.call(this),function(){n=e.exports.FastClick,t.startup(function(){n.attach(document.body)})}.call(this),"undefined"==typeof Package&&(Package={}),Package.fastclick={FastClick:n}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;"undefined"==typeof Package&&(Package={}),Package.less={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.underscore._,r=Package.ejson.EJSON,n;(function(){n=function(){return n.info.apply(this,arguments)};var o=0,i=[],a=0;n._intercept=function(e){o+=e},n._suppress=function(e){a+=e},n._intercepted=function(){var e=i;return i=[],o=0,e},n.outputFormat="json";var s={debug:"green",warn:"magenta",error:"red"},l="blue",c=["time","timeInexact","level","file","line","program","originApp","satellite","stderr"],u=c.concat(["app","message"]),g=function(t){var r=n.format(t),o=t.level;"undefined"!=typeof console&&console[o]?console[o](r):e._debug(r)};n._getCallerDetails=function(){var e=function(){var e=new Error,t=e.stack;return t},t=e();if(!t)return{};for(var r=t.split("\n"),n,o=1;o<r.length;++o){if(n=r[o],n.match(/^\s*at eval \(eval/))return{file:"eval"};if(!n.match(/packages\/(?:local-test[:_])?logging(?:\/|\.js)/))break}var i={},a=/(?:[@(]| at )([^(]+?):([0-9:]+)(?:\)|$)/.exec(n);return a?(i.line=a[2].split(":")[0],i.file=a[1].split("/").slice(-1)[0].split("?")[0],i):i},t.each(["debug","info","warn","error"],function(s){n[s]=function(l){if(a)return void a--;var u=!1;o&&(o--,u=!0);var f=!t.isObject(l)||t.isRegExp(l)||t.isDate(l)?{message:new String(l).toString()}:l;if(t.each(c,function(e){if(f[e])throw new Error("Can't set '"+e+"' in log message")}),t.has(f,"message")&&!t.isString(f.message))throw new Error("The 'message' field in log objects must be a string");if(f.omitCallerDetails||(f=t.extend(n._getCallerDetails(),f)),f.time=new Date,f.level=s,"debug"!==s)if(u)i.push(r.stringify(f));else if(e.isServer)if("colored-text"===n.outputFormat)console.log(n.format(f,{color:!0}));else{if("json"!==n.outputFormat)throw new Error("Unknown logging output format: "+n.outputFormat);console.log(r.stringify(f))}else g(f)}}),n.parse=function(e){var t=null;if(e&&"{"===e.charAt(0))try{t=r.parse(e)}catch(n){}return t&&t.time&&t.time instanceof Date?t:null},n.format=function(n,o){n=r.clone(n),o=o||{};var i=n.time;if(!(i instanceof Date))throw new Error("'time' must be a Date object");var a=n.timeInexact,c=n.level||"info",g=n.file,f=n.line,m=n.app||"",p=n.originApp,v=n.message||"",d=n.program||"",h=n.satellite,w=n.stderr||"";t.each(u,function(e){delete n[e]}),t.isEmpty(n)||(v&&(v+=" "),v+=r.stringify(n));var b=function(e){return 10>e?"0"+e:e.toString()},D=function(e){return 100>e?"0"+b(e):e.toString()},j=i.getFullYear().toString()+b(i.getMonth()+1)+b(i.getDate()),E=b(i.getHours())+":"+b(i.getMinutes())+":"+b(i.getSeconds())+"."+D(i.getMilliseconds()),S="("+-((new Date).getTimezoneOffset()/60)+")",k="";m&&(k+=m),p&&p!==m&&(k+=" via "+p),k&&(k="["+k+"] ");var x=[];d&&x.push(d),g&&x.push(g),f&&x.push(f);var y=t.isEmpty(x)?"":"("+x.join(":")+") ";h&&(y+=["[",h,"]"].join(""));var _=w?"(STDERR) ":"",A=[c.charAt(0).toUpperCase(),j,"-",E,S,a?"? ":" ",k,y,_].join(""),C=function(t,r){return o.color&&e.isServer&&r?Npm.require("cli-color")[r](t):t};return C(A,o.metaColor||l)+C(v,s[c])},n.objFromText=function(e,r){var n={message:e,level:"info",time:new Date,timeInexact:!0};return t.extend(n,r)}}).call(this),function(){/Android/i.test(navigator.userAgent)||(window.onerror=function(e,t,r){t=t.replace(/^.*?\/www\//,""),console.log("Uncaught Error: "+e+":"+r+":"+t)})}.call(this),"undefined"==typeof Package&&(Package={}),Package.logging={Log:n}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;"undefined"==typeof Package&&(Package={}),Package["meteor-base"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;"undefined"==typeof Package&&(Package={}),Package["mobile-experience"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a=Package.underscore._,t=Package.tracker.Tracker,i=Package.tracker.Deps,n=Package.ejson.EJSON,s=Package.ecmascript.ECMAScript,r=Package["babel-runtime"].babelHelpers,c=Package["ecmascript-runtime"].Symbol,o=Package["ecmascript-runtime"].Map,u=Package["ecmascript-runtime"].Set,l=Package.promise.Promise,d;(function(){var e=function(e){return void 0===e?"undefined":n.stringify(e)},i=function(e){return void 0===e||"undefined"===e?void 0:n.parse(e)},s=function(e){e&&e.changed()};d=function(e){if(e)if("string"==typeof e)d._registerDictForMigrate(e,this),this.keys=d._loadMigratedDict(e)||{},this.name=e;else{if("object"!=typeof e)throw new Error("Invalid ReactiveDict argument: "+e);this.keys=e}else this.keys={};this.allDeps=new t.Dependency,this.keyDeps={},this.keyValueDeps={}},a.extend(d.prototype,{set:function(t,i){var n=this;if("object"==typeof t&&void 0===i)return void n._setObject(t);var r=t;i=e(i);var c=a.has(n.keys,r),o=c?n.keys[r]:"undefined",u=i!==o;n.keys[r]=i,(u||!c)&&n.allDeps.changed(),u&&(s(n.keyDeps[r]),n.keyValueDeps[r]&&(s(n.keyValueDeps[r][o]),s(n.keyValueDeps[r][i])))},setDefault:function(e,t){var i=this;a.has(i.keys,e)||i.set(e,t)},get:function(e){var a=this;return a._ensureKey(e),a.keyDeps[e].depend(),i(a.keys[e])},equals:function(s,r){var c=this,o=null;if(Package.mongo&&(o=Package.mongo.Mongo.ObjectID),!("string"==typeof r||"number"==typeof r||"boolean"==typeof r||"undefined"==typeof r||r instanceof Date||o&&r instanceof o||null===r))throw new Error("ReactiveDict.equals: value must be scalar");var u=e(r);if(t.active){c._ensureKey(s),a.has(c.keyValueDeps[s],u)||(c.keyValueDeps[s][u]=new t.Dependency);var l=c.keyValueDeps[s][u].depend();l&&t.onInvalidate(function(){c.keyValueDeps[s][u].hasDependents()||delete c.keyValueDeps[s][u]})}var d=void 0;return a.has(c.keys,s)&&(d=i(c.keys[s])),n.equals(d,r)},all:function(){this.allDeps.depend();var e={};return a.each(this.keys,function(a,t){e[t]=i(a)}),e},clear:function(){var e=this,t=e.keys;e.keys={},e.allDeps.changed(),a.each(t,function(a,t){s(e.keyDeps[t]),s(e.keyValueDeps[t][a]),s(e.keyValueDeps[t].undefined)})},"delete":function(e){var t=this,i=!1;if(a.has(t.keys,e)){var n=t.keys[e];delete t.keys[e],s(t.keyDeps[e]),t.keyValueDeps[e]&&(s(t.keyValueDeps[e][n]),s(t.keyValueDeps[e].undefined)),t.allDeps.changed(),i=!0}return i},_setObject:function(e){var t=this;a.each(e,function(e,a){t.set(a,e)})},_ensureKey:function(e){var a=this;e in a.keyDeps||(a.keyDeps[e]=new t.Dependency,a.keyValueDeps[e]={})},_getMigrationData:function(){return this.keys}})}).call(this),function(){if(d._migratedDictData={},d._dictsToMigrate={},d._loadMigratedDict=function(e){return a.has(d._migratedDictData,e)?d._migratedDictData[e]:null},d._registerDictForMigrate=function(e,t){if(a.has(d._dictsToMigrate,e))throw new Error("Duplicate ReactiveDict name: "+e);d._dictsToMigrate[e]=t},e.isClient&&Package.reload){var t=Package.reload.Reload._migrationData("reactive-dict");t&&t.dicts&&(d._migratedDictData=t.dicts),Package.reload.Reload._onMigrate("reactive-dict",function(){var e=d._dictsToMigrate,a={};for(var t in r.sanitizeForInObject(e))a[t]=e[t]._getMigrationData();return[!0,{dicts:a}]})}}.call(this),"undefined"==typeof Package&&(Package={}),Package["reactive-dict"]={ReactiveDict:d}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a=Package.underscore._,c=Package["reactive-dict"].ReactiveDict,n=Package.ejson.EJSON,i;(function(){i=new c("session")}).call(this),"undefined"==typeof Package&&(Package={}),Package.session={Session:i}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;"undefined"==typeof Package&&(Package={}),Package["standard-minifiers"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,r,t,n;(function(){r={},t={}}).call(this),function(){!function(e){if("object"==typeof t&&"undefined"!=typeof r)r.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.s=e()}}(function(){var e,r,t;return function n(e,r,t){function i(o,c){if(!r[o]){if(!e[o]){var p="function"==typeof require&&require;if(!c&&p)return p(o,!0);if(a)return a(o,!0);var s=new Error("Cannot find module '"+o+"'");throw s.code="MODULE_NOT_FOUND",s}var u=r[o]={exports:{}};e[o][0].call(u.exports,function(r){var t=e[o][1][r];return i(t?t:r)},u,u.exports,n,e,r,t)}return r[o].exports}for(var a="function"==typeof require&&require,o=0;o<t.length;o++)i(t[o]);return i}({1:[function(e,r,t){var n=e("./trim"),i=e("./decapitalize");r.exports=function a(e,r){return e=n(e).replace(/[-_\s]+(.)?/g,function(e,r){return r?r.toUpperCase():""}),r===!0?i(e):e}},{"./decapitalize":10,"./trim":65}],2:[function(e,r,t){var n=e("./helper/makeString");r.exports=function i(e,r){e=n(e);var t=r?e.slice(1).toLowerCase():e.slice(1);return e.charAt(0).toUpperCase()+t}},{"./helper/makeString":20}],3:[function(e,r,t){var n=e("./helper/makeString");r.exports=function i(e){return n(e).split("")}},{"./helper/makeString":20}],4:[function(e,r,t){r.exports=function n(e,r){return null==e?[]:(e=String(e),r=~~r,r>0?e.match(new RegExp(".{1,"+r+"}","g")):[e])}},{}],5:[function(e,r,t){var n=e("./capitalize"),i=e("./camelize"),a=e("./helper/makeString");r.exports=function o(e){return e=a(e),n(i(e.replace(/[\W_]/g," ")).replace(/\s/g,""))}},{"./camelize":1,"./capitalize":2,"./helper/makeString":20}],6:[function(e,r,t){var n=e("./trim");r.exports=function i(e){return n(e).replace(/\s\s+/g," ")}},{"./trim":65}],7:[function(e,r,t){var n=e("./helper/makeString"),i="ąàáäâãåæăćčĉęèéëêĝĥìíïîĵłľńňòóöőôõðøśșşšŝťțţŭùúüűûñÿýçżźž",a="aaaaaaaaaccceeeeeghiiiijllnnoooooooossssstttuuuuuunyyczzz";i+=i.toUpperCase(),a+=a.toUpperCase(),a=a.split(""),i+="ß",a.push("ss"),r.exports=function o(e){return n(e).replace(/.{1}/g,function(e){var r=i.indexOf(e);return-1===r?e:a[r]})}},{"./helper/makeString":20}],8:[function(e,r,t){var n=e("./helper/makeString");r.exports=function(e,r){return e=n(e),r=n(r),0===e.length||0===r.length?0:e.split(r).length-1}},{"./helper/makeString":20}],9:[function(e,r,t){var n=e("./trim");r.exports=function i(e){return n(e).replace(/([A-Z])/g,"-$1").replace(/[-_\s]+/g,"-").toLowerCase()}},{"./trim":65}],10:[function(e,r,t){var n=e("./helper/makeString");r.exports=function i(e){return e=n(e),e.charAt(0).toLowerCase()+e.slice(1)}},{"./helper/makeString":20}],11:[function(e,r,t){function n(e){for(var r=e.match(/^[\s\\t]*/gm),t=r[0].length,n=1;n<r.length;n++)t=Math.min(r[n].length,t);return t}var i=e("./helper/makeString");r.exports=function a(e,r){e=i(e);var t=n(e),a;return 0===t?e:(a="string"==typeof r?new RegExp("^"+r,"gm"):new RegExp("^[ \\t]{"+t+"}","gm"),e.replace(a,""))}},{"./helper/makeString":20}],12:[function(e,r,t){var n=e("./helper/makeString"),i=e("./helper/toPositive");r.exports=function a(e,r,t){return e=n(e),r=""+r,t="undefined"==typeof t?e.length-r.length:Math.min(i(t),e.length)-r.length,t>=0&&e.indexOf(r,t)===t}},{"./helper/makeString":20,"./helper/toPositive":22}],13:[function(e,r,t){var n=e("./helper/makeString"),i=e("./helper/escapeChars"),a="[";for(var o in i)a+=o;a+="]";var c=new RegExp(a,"g");r.exports=function p(e){return n(e).replace(c,function(e){return"&"+i[e]+";"})}},{"./helper/escapeChars":17,"./helper/makeString":20}],14:[function(e,r,t){r.exports=function(){var e={};for(var r in this)this.hasOwnProperty(r)&&!r.match(/^(?:include|contains|reverse|join|map|wrap)$/)&&(e[r]=this[r]);return e}},{}],15:[function(e,r,t){var n=e("./makeString");r.exports=function i(e,r){return e=n(e),0===e.length?"":e.slice(0,-1)+String.fromCharCode(e.charCodeAt(e.length-1)+r)}},{"./makeString":20}],16:[function(e,r,t){var n=e("./escapeRegExp");r.exports=function i(e){return null==e?"\\s":e.source?e.source:"["+n(e)+"]"}},{"./escapeRegExp":18}],17:[function(e,r,t){var n={"¢":"cent","£":"pound","¥":"yen","€":"euro","©":"copy","®":"reg","<":"lt",">":"gt",'"':"quot","&":"amp","'":"#39"};r.exports=n},{}],18:[function(e,r,t){var n=e("./makeString");r.exports=function i(e){return n(e).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}},{"./makeString":20}],19:[function(e,r,t){var n={nbsp:" ",cent:"¢",pound:"£",yen:"¥",euro:"€",copy:"©",reg:"®",lt:"<",gt:">",quot:'"',amp:"&",apos:"'"};r.exports=n},{}],20:[function(e,r,t){r.exports=function n(e){return null==e?"":""+e}},{}],21:[function(e,r,t){r.exports=function n(e,r){if(1>r)return"";for(var t="";r>0;)1&r&&(t+=e),r>>=1,e+=e;return t}},{}],22:[function(e,r,t){r.exports=function n(e){return 0>e?0:+e||0}},{}],23:[function(e,r,t){var n=e("./capitalize"),i=e("./underscored"),a=e("./trim");r.exports=function o(e){return n(a(i(e).replace(/_id$/,"").replace(/_/g," ")))}},{"./capitalize":2,"./trim":65,"./underscored":67}],24:[function(e,r,t){var n=e("./helper/makeString");r.exports=function i(e,r){return""===r?!0:-1!==n(e).indexOf(r)}},{"./helper/makeString":20}],25:[function(e,r,t){"use strict";function n(e){return this instanceof n?void(this._wrapped=e):new n(e)}function i(e,r){"function"==typeof r&&(n.prototype[e]=function(){var e=[this._wrapped].concat(Array.prototype.slice.call(arguments)),t=r.apply(null,e);return"string"==typeof t?new n(t):t})}function a(e){i(e,function(r){var t=Array.prototype.slice.call(arguments,1);return String.prototype[e].apply(r,t)})}n.VERSION="3.3.4",n.isBlank=e("./isBlank"),n.stripTags=e("./stripTags"),n.capitalize=e("./capitalize"),n.decapitalize=e("./decapitalize"),n.chop=e("./chop"),n.trim=e("./trim"),n.clean=e("./clean"),n.cleanDiacritics=e("./cleanDiacritics"),n.count=e("./count"),n.chars=e("./chars"),n.swapCase=e("./swapCase"),n.escapeHTML=e("./escapeHTML"),n.unescapeHTML=e("./unescapeHTML"),n.splice=e("./splice"),n.insert=e("./insert"),n.replaceAll=e("./replaceAll"),n.include=e("./include"),n.join=e("./join"),n.lines=e("./lines"),n.dedent=e("./dedent"),n.reverse=e("./reverse"),n.startsWith=e("./startsWith"),n.endsWith=e("./endsWith"),n.pred=e("./pred"),n.succ=e("./succ"),n.titleize=e("./titleize"),n.camelize=e("./camelize"),n.underscored=e("./underscored"),n.dasherize=e("./dasherize"),n.classify=e("./classify"),n.humanize=e("./humanize"),n.ltrim=e("./ltrim"),n.rtrim=e("./rtrim"),n.truncate=e("./truncate"),n.prune=e("./prune"),n.words=e("./words"),n.pad=e("./pad"),n.lpad=e("./lpad"),n.rpad=e("./rpad"),n.lrpad=e("./lrpad"),n.sprintf=e("./sprintf"),n.vsprintf=e("./vsprintf"),n.toNumber=e("./toNumber"),n.numberFormat=e("./numberFormat"),n.strRight=e("./strRight"),n.strRightBack=e("./strRightBack"),n.strLeft=e("./strLeft"),n.strLeftBack=e("./strLeftBack"),n.toSentence=e("./toSentence"),n.toSentenceSerial=e("./toSentenceSerial"),n.slugify=e("./slugify"),n.surround=e("./surround"),n.quote=e("./quote"),n.unquote=e("./unquote"),n.repeat=e("./repeat"),n.naturalCmp=e("./naturalCmp"),n.levenshtein=e("./levenshtein"),n.toBoolean=e("./toBoolean"),n.exports=e("./exports"),n.escapeRegExp=e("./helper/escapeRegExp"),n.wrap=e("./wrap"),n.map=e("./map"),n.strip=n.trim,n.lstrip=n.ltrim,n.rstrip=n.rtrim,n.center=n.lrpad,n.rjust=n.lpad,n.ljust=n.rpad,n.contains=n.include,n.q=n.quote,n.toBool=n.toBoolean,n.camelcase=n.camelize,n.mapChars=n.map,n.prototype={value:function s(){return this._wrapped}};for(var o in n)i(o,n[o]);i("tap",function u(e,r){return r(e)});var c=["toUpperCase","toLowerCase","split","replace","slice","substring","substr","concat"];for(var p in c)a(c[p]);r.exports=n},{"./camelize":1,"./capitalize":2,"./chars":3,"./chop":4,"./classify":5,"./clean":6,"./cleanDiacritics":7,"./count":8,"./dasherize":9,"./decapitalize":10,"./dedent":11,"./endsWith":12,"./escapeHTML":13,"./exports":14,"./helper/escapeRegExp":18,"./humanize":23,"./include":24,"./insert":26,"./isBlank":27,"./join":28,"./levenshtein":29,"./lines":30,"./lpad":31,"./lrpad":32,"./ltrim":33,"./map":34,"./naturalCmp":35,"./numberFormat":38,"./pad":39,"./pred":40,"./prune":41,"./quote":42,"./repeat":43,"./replaceAll":44,"./reverse":45,"./rpad":46,"./rtrim":47,"./slugify":48,"./splice":49,"./sprintf":50,"./startsWith":51,"./strLeft":52,"./strLeftBack":53,"./strRight":54,"./strRightBack":55,"./stripTags":56,"./succ":57,"./surround":58,"./swapCase":59,"./titleize":60,"./toBoolean":61,"./toNumber":62,"./toSentence":63,"./toSentenceSerial":64,"./trim":65,"./truncate":66,"./underscored":67,"./unescapeHTML":68,"./unquote":69,"./vsprintf":70,"./words":71,"./wrap":72}],26:[function(e,r,t){var n=e("./splice");r.exports=function i(e,r,t){return n(e,r,0,t)}},{"./splice":49}],27:[function(e,r,t){var n=e("./helper/makeString");r.exports=function i(e){return/^\s*$/.test(n(e))}},{"./helper/makeString":20}],28:[function(e,r,t){var n=e("./helper/makeString"),i=[].slice;r.exports=function a(){var e=i.call(arguments),r=e.shift();return e.join(n(r))}},{"./helper/makeString":20}],29:[function(e,r,t){var n=e("./helper/makeString");r.exports=function i(e,r){"use strict";if(e=n(e),r=n(r),e===r)return 0;if(!e||!r)return Math.max(e.length,r.length);for(var t=new Array(r.length+1),i=0;i<t.length;++i)t[i]=i;for(i=0;i<e.length;++i){for(var a=i+1,o=0;o<r.length;++o){var c=a;a=t[o]+(e.charAt(i)===r.charAt(o)?0:1);var p=c+1;a>p&&(a=p),p=t[o+1]+1,a>p&&(a=p),t[o]=c}t[o]=a}return a}},{"./helper/makeString":20}],30:[function(e,r,t){r.exports=function n(e){return null==e?[]:String(e).split(/\r\n?|\n/)}},{}],31:[function(e,r,t){var n=e("./pad");r.exports=function i(e,r,t){return n(e,r,t)}},{"./pad":39}],32:[function(e,r,t){var n=e("./pad");r.exports=function i(e,r,t){return n(e,r,t,"both")}},{"./pad":39}],33:[function(e,r,t){var n=e("./helper/makeString"),i=e("./helper/defaultToWhiteSpace"),a=String.prototype.trimLeft;r.exports=function o(e,r){return e=n(e),!r&&a?a.call(e):(r=i(r),e.replace(new RegExp("^"+r+"+"),""))}},{"./helper/defaultToWhiteSpace":16,"./helper/makeString":20}],34:[function(e,r,t){var n=e("./helper/makeString");r.exports=function(e,r){return e=n(e),0===e.length||"function"!=typeof r?e:e.replace(/./g,r)}},{"./helper/makeString":20}],35:[function(e,r,t){r.exports=function n(e,r){if(e==r)return 0;if(!e)return-1;if(!r)return 1;for(var t=/(\.\d+|\d+|\D+)/g,n=String(e).match(t),i=String(r).match(t),a=Math.min(n.length,i.length),o=0;a>o;o++){var c=n[o],p=i[o];if(c!==p){var s=+c,u=+p;return s===s&&u===u?s>u?1:-1:p>c?-1:1}}return n.length!=i.length?n.length-i.length:r>e?-1:1}},{}],36:[function(r,t,n){!function(r){function t(){var e=arguments[0],r=t.cache;return r[e]&&r.hasOwnProperty(e)||(r[e]=t.parse(e)),t.format.call(null,r[e],arguments)}function i(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function a(e,r){return Array(r+1).join(e)}var o={not_string:/[^s]/,number:/[diefg]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijosuxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[\+\-]/};t.format=function(e,r){var n=1,c=e.length,p="",s,u=[],l,f,h,g,m,d,v=!0,x="";for(l=0;c>l;l++)if(p=i(e[l]),"string"===p)u[u.length]=e[l];else if("array"===p){if(h=e[l],h[2])for(s=r[n],f=0;f<h[2].length;f++){if(!s.hasOwnProperty(h[2][f]))throw new Error(t("[sprintf] property '%s' does not exist",h[2][f]));s=s[h[2][f]]}else s=h[1]?r[h[1]]:r[n++];if("function"==i(s)&&(s=s()),o.not_string.test(h[8])&&o.not_json.test(h[8])&&"number"!=i(s)&&isNaN(s))throw new TypeError(t("[sprintf] expecting number but found %s",i(s)));switch(o.number.test(h[8])&&(v=s>=0),h[8]){case"b":s=s.toString(2);break;case"c":s=String.fromCharCode(s);break;case"d":case"i":s=parseInt(s,10);break;case"j":s=JSON.stringify(s,null,h[6]?parseInt(h[6]):0);break;case"e":s=h[7]?s.toExponential(h[7]):s.toExponential();break;case"f":s=h[7]?parseFloat(s).toFixed(h[7]):parseFloat(s);break;case"g":s=h[7]?parseFloat(s).toPrecision(h[7]):parseFloat(s);break;case"o":s=s.toString(8);break;case"s":s=(s=String(s))&&h[7]?s.substring(0,h[7]):s;break;case"u":s>>>=0;break;case"x":s=s.toString(16);break;case"X":s=s.toString(16).toUpperCase()}o.json.test(h[8])?u[u.length]=s:(!o.number.test(h[8])||v&&!h[3]?x="":(x=v?"+":"-",s=s.toString().replace(o.sign,"")),m=h[4]?"0"===h[4]?"0":h[4].charAt(1):" ",d=h[6]-(x+s).length,g=h[6]&&d>0?a(m,d):"",u[u.length]=h[5]?x+s+g:"0"===m?x+g+s:g+x+s)}return u.join("")},t.cache={},t.parse=function(e){for(var r=e,t=[],n=[],i=0;r;){if(null!==(t=o.text.exec(r)))n[n.length]=t[0];else if(null!==(t=o.modulo.exec(r)))n[n.length]="%";else{if(null===(t=o.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var a=[],c=t[2],p=[];if(null===(p=o.key.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a[a.length]=p[1];""!==(c=c.substring(p[0].length));)if(null!==(p=o.key_access.exec(c)))a[a.length]=p[1];else{if(null===(p=o.index_access.exec(c)))throw new SyntaxError("[sprintf] failed to parse named argument key");a[a.length]=p[1]}t[2]=a}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n[n.length]=t}r=r.substring(t[0].length)}return n};var c=function(e,r,n){return n=(r||[]).slice(0),n.splice(0,0,e),t.apply(null,n)};"undefined"!=typeof n?(n.sprintf=t,n.vsprintf=c):(r.sprintf=t,r.vsprintf=c,"function"==typeof e&&e.amd&&e(function(){return{sprintf:t,vsprintf:c}}))}("undefined"==typeof window?this:window)},{}],37:[function(e,r,t){(function(e){function t(e,r){function t(){if(!i){if(n("throwDeprecation"))throw new Error(r);n("traceDeprecation")?console.trace(r):console.warn(r),i=!0}return e.apply(this,arguments)}if(n("noDeprecation"))return e;var i=!1;return t}function n(r){try{if(!e.localStorage)return!1}catch(t){return!1}var n=e.localStorage[r];return null==n?!1:"true"===String(n).toLowerCase()}r.exports=t}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],38:[function(e,r,t){r.exports=function n(e,r,t,i){if(isNaN(e)||null==e)return"";e=e.toFixed(~~r),i="string"==typeof i?i:",";var a=e.split("."),o=a[0],c=a[1]?(t||".")+a[1]:"";return o.replace(/(\d)(?=(?:\d{3})+$)/g,"$1"+i)+c}},{}],39:[function(e,r,t){var n=e("./helper/makeString"),i=e("./helper/strRepeat");r.exports=function a(e,r,t,o){e=n(e),r=~~r;var c=0;switch(t?t.length>1&&(t=t.charAt(0)):t=" ",o){case"right":return c=r-e.length,e+i(t,c);case"both":return c=r-e.length,i(t,Math.ceil(c/2))+e+i(t,Math.floor(c/2));default:return c=r-e.length,i(t,c)+e}}},{"./helper/makeString":20,"./helper/strRepeat":21}],40:[function(e,r,t){var n=e("./helper/adjacent");r.exports=function i(e){return n(e,-1)}},{"./helper/adjacent":15}],41:[function(e,r,t){var n=e("./helper/makeString"),i=e("./rtrim");r.exports=function a(e,r,t){if(e=n(e),r=~~r,t=null!=t?String(t):"...",e.length<=r)return e;var a=function(e){return e.toUpperCase()!==e.toLowerCase()?"A":" "},o=e.slice(0,r+1).replace(/.(?=\W*\w*$)/g,a);return o=o.slice(o.length-2).match(/\w\w/)?o.replace(/\s*\S+$/,""):i(o.slice(0,o.length-1)),(o+t).length>e.length?e:e.slice(0,o.length)+t}},{"./helper/makeString":20,"./rtrim":47}],42:[function(e,r,t){var n=e("./surround");r.exports=function i(e,r){return n(e,r||'"')}},{"./surround":58}],43:[function(e,r,t){var n=e("./helper/makeString"),i=e("./helper/strRepeat");r.exports=function a(e,r,t){if(e=n(e),r=~~r,null==t)return i(e,r);for(var a=[];r>0;a[--r]=e);return a.join(t)}},{"./helper/makeString":20,"./helper/strRepeat":21}],44:[function(e,r,t){var n=e("./helper/makeString");r.exports=function i(e,r,t,a){var o=a===!0?"gi":"g",c=new RegExp(r,o);return n(e).replace(c,t)}},{"./helper/makeString":20}],45:[function(e,r,t){var n=e("./chars");r.exports=function i(e){return n(e).reverse().join("")}},{"./chars":3}],46:[function(e,r,t){var n=e("./pad");r.exports=function i(e,r,t){return n(e,r,t,"right")}},{"./pad":39}],47:[function(e,r,t){var n=e("./helper/makeString"),i=e("./helper/defaultToWhiteSpace"),a=String.prototype.trimRight;r.exports=function o(e,r){return e=n(e),!r&&a?a.call(e):(r=i(r),e.replace(new RegExp(r+"+$"),""))}},{"./helper/defaultToWhiteSpace":16,"./helper/makeString":20}],48:[function(e,r,t){var n=e("./trim"),i=e("./dasherize"),a=e("./cleanDiacritics");r.exports=function o(e){return n(i(a(e).replace(/[^\w\s-]/g,"-").toLowerCase()),"-")}},{"./cleanDiacritics":7,"./dasherize":9,"./trim":65}],49:[function(e,r,t){var n=e("./chars");r.exports=function i(e,r,t,a){var o=n(e);return o.splice(~~r,~~t,a),o.join("")}},{"./chars":3}],50:[function(e,r,t){var n=e("util-deprecate");r.exports=n(e("sprintf-js").sprintf,"sprintf() will be removed in the next major release, use the sprintf-js package instead.")},{"sprintf-js":36,"util-deprecate":37}],51:[function(e,r,t){var n=e("./helper/makeString"),i=e("./helper/toPositive");r.exports=function a(e,r,t){return e=n(e),r=""+r,t=null==t?0:Math.min(i(t),e.length),e.lastIndexOf(r,t)===t}},{"./helper/makeString":20,"./helper/toPositive":22}],52:[function(e,r,t){var n=e("./helper/makeString");r.exports=function i(e,r){e=n(e),r=n(r);var t=r?e.indexOf(r):-1;return~t?e.slice(0,t):e}},{"./helper/makeString":20}],53:[function(e,r,t){var n=e("./helper/makeString");r.exports=function i(e,r){e=n(e),r=n(r);var t=e.lastIndexOf(r);return~t?e.slice(0,t):e}},{"./helper/makeString":20}],54:[function(e,r,t){var n=e("./helper/makeString");r.exports=function i(e,r){e=n(e),r=n(r);var t=r?e.indexOf(r):-1;return~t?e.slice(t+r.length,e.length):e}},{"./helper/makeString":20}],55:[function(e,r,t){var n=e("./helper/makeString");r.exports=function i(e,r){e=n(e),r=n(r);var t=r?e.lastIndexOf(r):-1;return~t?e.slice(t+r.length,e.length):e}},{"./helper/makeString":20}],56:[function(e,r,t){var n=e("./helper/makeString");r.exports=function i(e){return n(e).replace(/<\/?[^>]+>/g,"")}},{"./helper/makeString":20}],57:[function(e,r,t){var n=e("./helper/adjacent");r.exports=function i(e){return n(e,1)}},{"./helper/adjacent":15}],58:[function(e,r,t){r.exports=function n(e,r){return[r,e,r].join("")}},{}],59:[function(e,r,t){var n=e("./helper/makeString");r.exports=function i(e){return n(e).replace(/\S/g,function(e){return e===e.toUpperCase()?e.toLowerCase():e.toUpperCase()})}},{"./helper/makeString":20}],60:[function(e,r,t){var n=e("./helper/makeString");r.exports=function i(e){return n(e).toLowerCase().replace(/(?:^|\s|-)\S/g,function(e){return e.toUpperCase()})}},{"./helper/makeString":20}],61:[function(e,r,t){function n(e,r){var t,n,i=e.toLowerCase();for(r=[].concat(r),t=0;t<r.length;t+=1)if(n=r[t]){if(n.test&&n.test(e))return!0;if(n.toLowerCase()===i)return!0}}var i=e("./trim");r.exports=function a(e,r,t){return"number"==typeof e&&(e=""+e),"string"!=typeof e?!!e:(e=i(e),n(e,r||["true","1"])?!0:n(e,t||["false","0"])?!1:void 0)}},{"./trim":65}],62:[function(e,r,t){r.exports=function n(e,r){if(null==e)return 0;var t=Math.pow(10,isFinite(r)?r:0);return Math.round(e*t)/t}},{}],63:[function(e,r,t){var n=e("./rtrim");r.exports=function i(e,r,t,a){r=r||", ",t=t||" and ";var o=e.slice(),c=o.pop();return e.length>2&&a&&(t=n(r)+t),o.length?o.join(r)+t+c:c}},{"./rtrim":47}],64:[function(e,r,t){var n=e("./toSentence");r.exports=function i(e,r,t){return n(e,r,t,!0)}},{"./toSentence":63}],65:[function(e,r,t){var n=e("./helper/makeString"),i=e("./helper/defaultToWhiteSpace"),a=String.prototype.trim;r.exports=function o(e,r){return e=n(e),!r&&a?a.call(e):(r=i(r),e.replace(new RegExp("^"+r+"+|"+r+"+$","g"),""))}},{"./helper/defaultToWhiteSpace":16,"./helper/makeString":20}],66:[function(e,r,t){var n=e("./helper/makeString");r.exports=function i(e,r,t){return e=n(e),t=t||"...",r=~~r,e.length>r?e.slice(0,r)+t:e}},{"./helper/makeString":20}],67:[function(e,r,t){var n=e("./trim");r.exports=function i(e){return n(e).replace(/([a-z\d])([A-Z]+)/g,"$1_$2").replace(/[-\s]+/g,"_").toLowerCase()}},{"./trim":65}],68:[function(e,r,t){var n=e("./helper/makeString"),i=e("./helper/htmlEntities");r.exports=function a(e){return n(e).replace(/\&([^;]+);/g,function(e,r){var t;return r in i?i[r]:(t=r.match(/^#x([\da-fA-F]+)$/))?String.fromCharCode(parseInt(t[1],16)):(t=r.match(/^#(\d+)$/))?String.fromCharCode(~~t[1]):e})}},{"./helper/htmlEntities":19,"./helper/makeString":20}],69:[function(e,r,t){r.exports=function n(e,r){return r=r||'"',e[0]===r&&e[e.length-1]===r?e.slice(1,e.length-1):e}},{}],70:[function(e,r,t){var n=e("util-deprecate");r.exports=n(e("sprintf-js").vsprintf,"vsprintf() will be removed in the next major release, use the sprintf-js package instead.")},{"sprintf-js":36,"util-deprecate":37}],71:[function(e,r,t){var n=e("./isBlank"),i=e("./trim");r.exports=function a(e,r){return n(e)?[]:i(e,r).split(r||/\s+/)}},{"./isBlank":27,"./trim":65}],72:[function(e,r,t){var n=e("./helper/makeString");r.exports=function i(e,r){e=n(e),r=r||{};var t=r.width||75,i=r.seperator||"\n",a=r.cut||!1,o=r.preserveSpaces||!1,c=r.trailingSpaces||!1,p;if(0>=t)return e;if(a){var s=0;for(p="";s<e.length;)s%t==0&&s>0&&(p+=i),p+=e.charAt(s),s++;if(c)for(;s%t>0;)p+=" ",s++;return p}var u=e.split(" "),l=0;for(p="";u.length>0;){if(1+u[0].length+l>t&&l>0){if(o)p+=" ",l++;else if(c)for(;t>l;)p+=" ",l++;p+=i,l=0}l>0&&(p+=" ",l++),p+=u[0],l+=u[0].length,u.shift()}if(c)for(;t>l;)p+=" ",l++;return p}},{"./helper/makeString":20}]},{},[25])(25)})}.call(this),function(){n=r.exports}.call(this),"undefined"==typeof Package&&(Package={}),Package["underscorestring:underscore.string"]={s:n}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;(function(){}).call(this),"undefined"==typeof Package&&(Package={}),Package["monbro:mongodb-mapreduce-aggregation"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.mongo.Mongo,n=Package.tracker.Tracker,o=Package.tracker.Deps,r=Package.underscore._,c=Package.ejson.EJSON,i=Package.minimongo.LocalCollection,a=Package.minimongo.Minimongo,s;(function(){var n={},o=Package.tracker&&Package.tracker.Tracker||Package.deps.Deps,a=e.isServer&&new e.EnvironmentVariable;if(s={defaults:{before:{insert:{},update:{},remove:{},upsert:{},find:{},findOne:{},all:{}},after:{insert:{},update:{},remove:{},find:{},findOne:{},all:{}},all:{insert:{},update:{},remove:{},find:{},findOne:{},all:{}}},directEnv:new e.EnvironmentVariable,directOp:function l(e){return this.directEnv.withValue(!0,e)},hookedOp:function f(e){return this.directEnv.withValue(!1,e)}},s.getUserId=function p(){var t;if(e.isClient&&o.nonreactive(function(){t=e.userId&&e.userId()}),e.isServer){try{t=e.userId&&e.userId()}catch(n){}t||(t=a.get())}return t},s.extendCollectionInstance=function d(t,o){r.each(["before","after"],function(o){r.each(n,function(n,r){("upsert"!==n||"after"!==o)&&(e._ensure(t,o,r),e._ensure(t,"_hookAspects",r),t._hookAspects[r][o]=[],t[o][r]=function(e,n){var c=t._hookAspects[r][o].push({aspect:e,options:s.initOptions(n,o,r)});return{replace:function(e,n){t._hookAspects[r][o].splice(c-1,1,{aspect:e,options:s.initOptions(n,o,r)})},remove:function(){t._hookAspects[r][o].splice(c-1,1)}}})})}),t.hookOptions=c.clone(s.defaults),r.each(n,function(n,c){var i=e.isClient||"upsert"===c?t:t._collection,a=i[c];e._ensure(t,"direct",c),t.direct[c]=function(){var e=arguments;return s.directOp(function(){return o.prototype[c].apply(t,e)})},i[c]=function(){return s.directEnv.get()===!0?a.apply(i,arguments):n.call(this,s.getUserId(),a,t,"upsert"===c?{insert:t._hookAspects.insert||{},update:t._hookAspects.update||{},upsert:t._hookAspects.upsert||{}}:t._hookAspects[c]||{},function(e){return r.isFunction(t._transform)?function(n){return t._transform(n||e)}:function(t){return t||e}},r.toArray(arguments),!1)}})},s.defineAdvice=function h(e,t){n[e]=t},s.getAdvice=function v(e){return n[e]},s.initOptions=function g(e,t,n){return s.extendOptions(s.defaults,e,t,n)},s.extendOptions=function _(e,t,n,o){return t=r.extend(t||{},e.all.all),t=r.extend(t,e[n].all),t=r.extend(t,e.all[o]),t=r.extend(t,e[n][o])},s.getDocs=function m(e,t,n){var o=this,r={transform:null,reactive:!1};return n&&(n.multi||(r.limit=1)),e.find(t,r)},s.getFields=function y(e){var t=[];return r.each(e,function(e,n){r.contains(["$set","$unset","$inc","$push","$pull","$pop","$rename","$pullAll","$addToSet","$bit"],n)?r.each(r.keys(e),function(e){-1!==e.indexOf(".")&&(e=e.substring(0,e.indexOf("."))),r.contains(t,e)||t.push(e)}):t.push(n)}),t},s.reassignPrototype=function k(n,o){var r="function"==typeof Object.setPrototypeOf;o||(o="undefined"!=typeof t?t.Collection:e.Collection),r?Object.setPrototypeOf(n,o.prototype):n.__proto__&&(n.__proto__=o.prototype)},s.wrapCollection=function C(e,t){t._CollectionConstructor||(t._CollectionConstructor=t.Collection),t._CollectionPrototype||(t._CollectionPrototype=new t.Collection(null));var n=t._CollectionConstructor,o=t._CollectionPrototype;e.Collection=function(){var e=n.apply(this,arguments);return s.extendCollectionInstance(this,n),e},e.Collection.prototype=o,e.Collection.prototype.constructor=e.Collection;for(var r in n)n.hasOwnProperty(r)&&(e.Collection[r]=n[r])},s.modify=i._modify,"undefined"!=typeof t?(s.wrapCollection(e,t),s.wrapCollection(t,t)):s.wrapCollection(e,e),e.isServer){var u=e.publish;e.publish=function(e,t){return u.call(this,e,function(){var e=this,n=arguments;return a.withValue(e&&e.userId,function(){return t.apply(e,n)})})},s.isWithinPublish=function O(){return void 0!==a.get()}}}).call(this),function(){s.defineAdvice("insert",function(e,t,n,o,i,a,s){function u(t,n){var u=a[0];if(t&&(u=c.clone(a[0]),u._id=t),!s){var l=r.extend({transform:i(u),_id:t,err:n},f);r.each(o.after,function(t){t.aspect.call(l,e,u)})}return t}var l=this,f={context:l,_super:t,args:a},p=r.last(a),d=r.isFunction(p),h,v;if(!s)try{if(r.each(o.before,function(t){var n=t.aspect.call(r.extend({transform:i(a[0])},f),e,a[0]);n===!1&&(h=!0)}),h)return!1}catch(g){if(d)return p.call(l,g);throw g}return d?(a[a.length-1]=function(e,t){return u(t&&t[0]&&t[0]._id||t,e),p.apply(this,arguments)},t.apply(l,a)):(v=t.apply(l,a),u(v&&v[0]&&v[0]._id||v))})}.call(this),function(){s.defineAdvice("update",function(e,t,n,o,i,a,u){function l(t,n){if(!u){var c=s.getFields(a[1]),l=s.getDocs.call(f,k,{_id:{$in:g}},a[2]).fetch();r.each(o.after,function(o){r.each(l,function(a){o.aspect.call(r.extend({transform:i(a),previous:y.docs&&y.docs[a._id],affected:t,err:n},p),e,a,c,y.mutator,y.options)})})}}var f=this,p={context:f,_super:t,args:a},d=r.last(a),h=r.isFunction(d),v,g,_,m,y={},k=r.has(f,"_collection")?f._collection:f;if(r.isFunction(a[2])&&(d=a[2],a[2]={}),!u)try{if((o.before||o.after)&&(_=s.getFields(a[1]),v=s.getDocs.call(f,k,a[0],a[2]).fetch(),g=r.map(v,function(e){return e._id})),o.after&&(y.mutator=c.clone(a[1]),y.options=c.clone(a[2]),r.some(o.after,function(e){return e.options.fetchPrevious!==!1})&&s.extendOptions(n.hookOptions,{},"after","update").fetchPrevious!==!1&&(y.docs={},r.each(v,function(e){y.docs[e._id]=c.clone(e)}))),r.each(o.before,function(t){r.each(v,function(n){var o=t.aspect.call(r.extend({transform:i(n)},p),e,n,_,a[1],a[2]);o===!1&&(m=!0)})}),m)return!1}catch(C){if(h)return d.call(f,C);throw C}if(h)return a[a.length-1]=function(e,t){return l(t,e),d.apply(this,arguments)},t.apply(this,a);var O=t.apply(f,a);return l(O),O})}.call(this),function(){s.defineAdvice("remove",function(e,t,n,o,i,a,u){function l(t){u||r.each(o.after,function(n){r.each(_,function(o){n.aspect.call(r.extend({transform:i(o),err:t},p),e,o)})})}var f=this,p={context:f,_super:t,args:a},d=r.last(a),h=r.isFunction(d),v,g,_=[],m=r.has(f,"_collection")?f._collection:f;if(!u)try{if((o.before||o.after)&&(v=s.getDocs.call(f,m,a[0]).fetch()),o.after&&r.each(v,function(e){_.push(c.clone(e))}),r.each(o.before,function(t){r.each(v,function(n){var o=t.aspect.call(r.extend({transform:i(n)},p),e,n);o===!1&&(g=!0)})}),g)return!1}catch(y){if(h)return d.call(f,y);throw y}if(h)return a[a.length-1]=function(e){return l(e),d.apply(this,arguments)},t.apply(f,a);var k=t.apply(f,a);return l(),k})}.call(this),function(){s.defineAdvice("upsert",function(e,t,n,o,i,a,u){function l(t,n){if(!u){var c=s.getFields(a[1]),l=s.getDocs.call(p,C,{_id:{$in:_}},a[2]).fetch();r.each(o.update.after,function(o){r.each(l,function(a){o.aspect.call(r.extend({transform:i(a),previous:k.docs&&k.docs[a._id],affected:t,err:n},d),e,a,c,k.mutator,k.options)})})}}function f(t,n){if(!u){var c=s.getDocs.call(p,C,{_id:t},a[0],{}).fetch()[0],l=r.extend({transform:i(c),_id:t,err:n},d);r.each(o.insert.after,function(t){t.aspect.call(l,e,c)})}}var p=this,d={context:p,_super:t,args:a},h=r.last(a),v=r.isFunction(h),g,_,m,y,k={},C=r.has(p,"_collection")?p._collection:p;if(r.isFunction(a[2])&&(h=a[2],a[2]={}),!u&&(o.upsert.before&&(m=s.getFields(a[1]),g=s.getDocs.call(p,C,a[0],a[2]).fetch(),_=r.map(g,function(e){return e._id})),o.update.after&&r.some(o.update.after,function(e){return e.options.fetchPrevious!==!1})&&s.extendOptions(n.hookOptions,{},"after","update").fetchPrevious!==!1&&(k.mutator=c.clone(a[1]),k.options=c.clone(a[2]),k.docs={},r.each(g,function(e){k.docs[e._id]=c.clone(e)})),!u&&(r.each(o.upsert.before,function(t){var n=t.aspect.call(d,e,a[0],a[1],a[2]);n===!1&&(y=!0)}),y)))return!1;if(v)return a[a.length-1]=function(e,t){return t.insertedId?f(t.insertedId,e):l(t.numberAffected,e),s.hookedOp(function(){return h.call(this,e,t)})},s.directOp(function(){return t.apply(p,a)});var O=s.directOp(function(){return t.apply(p,a)});return O.insertedId?f(O.insertedId):l(O.numberAffected),O})}.call(this),function(){s.defineAdvice("find",function(e,t,n,o,c,i,a){function s(t){a||r.each(o.after,function(n){n.aspect.call(l,e,i[0],i[1],t)})}var u=this,l={context:u,_super:t,args:i},f,p;return!a&&(r.each(o.before,function(t){var n=t.aspect.call(l,e,i[0],i[1]);n===!1&&(p=!0)}),p)?!1:(f=t.apply(u,i),s(f),f)})}.call(this),function(){s.defineAdvice("findOne",function(e,t,n,o,c,i,a){function s(t){a||r.each(o.after,function(n){n.aspect.call(l,e,i[0],i[1],t)})}var u=this,l={context:u,_super:t,args:i},f,p;return!a&&(r.each(o.before,function(t){var n=t.aspect.call(l,e,i[0],i[1]);n===!1&&(p=!0)}),p)?!1:(f=t.apply(u,i),s(f),f)})}.call(this),function(){if(e.users){s.reassignPrototype(e.users);var n="undefined"!=typeof t&&"undefined"!=typeof t.Collection?t.Collection:e.Collection;s.extendCollectionInstance(e.users,n)}}.call(this),"undefined"==typeof Package&&(Package={}),Package["matb33:collection-hooks"]={CollectionHooks:s}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,e=Package["ddp-common"].DDPCommon,n=Package.ecmascript.ECMAScript,r=Package.check.check,i=Package.check.Match,s=Package.tracker.Tracker,o=Package.tracker.Deps,c=Package["babel-runtime"].babelHelpers,a=Package["ecmascript-runtime"].Symbol,u=Package["ecmascript-runtime"].Map,l=Package["ecmascript-runtime"].Set,h=Package.promise.Promise,p,f,m;(function(){p=function(){function t(){c.classCallCheck(this,t),this.handlers={}}return t.prototype.emit=function(){function t(t){for(var e=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;n>i;i++)r[i-1]=arguments[i];this.handlers[t]&&this.handlers[t].forEach(function(t){return t.apply(e,r)})}return t}(),t.prototype.emitWithScope=function(){function t(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;n>i;i++)r[i-2]=arguments[i];this.handlers[t]&&this.handlers[t].forEach(function(t){return t.apply(e,r)})}return t}(),t.prototype.on=function(){function t(t,e){this.handlers[t]||(this.handlers[t]=[]),this.handlers[t].push(e)}return t}(),t.prototype.once=function(){function t(t,e){f=this,f.on(t,function(){function n(){e.apply(this,arguments),f.removeListener(t,n)}return n}())}return t}(),t.prototype.removeListener=function(){function t(t,e){if(this.handlers[t]){var n=this.handlers[t].indexOf(e);n>-1&&this.handlers[t].splice(n,1)}}return t}(),t.prototype.removeAllListeners=function(){function t(t){this.handlers[t]=void 0}return t}(),t}()}).call(this),function(){var n=i.Where(function(t){return r(t,String),t.length>0}),o=function(n){function r(){var i=this;c.classCallCheck(this,r),n.call(this),this.instances={},t.connection._stream.on("message",function(t){var n=e.parseDDP(t);n&&"changed"===n.msg&&n.collection&&n.fields&&n.fields.eventName&&n.fields.args&&(n.fields.args.unshift(n.fields.eventName),n.fields.args.unshift(n.collection),i.emit.apply(i,n.fields.args))})}return c.inherits(r,n),r}(p);t.StreamerCentral=new o,t.Streamer=function(e){function i(n){var r=this,s=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=s.useCollection,a=void 0===o?!1:o;return c.classCallCheck(this,i),t.StreamerCentral.instances[n]?(console.warn("Streamer instance already exists:",n),t.StreamerCentral.instances[n]):(e.call(this),t.StreamerCentral.instances[n]=this,this.name=n,this.useCollection=a,this.subscriptions={},t.StreamerCentral.on(this.subscriptionName,function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;n>s;s++)i[s-1]=arguments[s];if(r.subscriptions[t]){var o;r.subscriptions[t].lastMessage=i,(o=e.prototype.emit).call.apply(o,[r,t].concat(i))}}),void t.connection._stream.on("reset",function(){e.prototype.emit.call(r,"__reconnect__")}))}return c.inherits(i,e),i.prototype.unsubscribe=function(){function t(t){delete this.subscriptions[t]}return t}(),i.prototype.subscribe=function(){function e(e){var n=this,r=void 0;return s.nonreactive(function(){r=t.subscribe(n.subscriptionName,e,n.useCollection,{onStop:function(){n.unsubscribe(e)}})}),r}return e}(),i.prototype.onReconnect=function(){function t(t){"function"==typeof t&&e.prototype.on.call(this,"__reconnect__",t)}return t}(),i.prototype.getLastMessageFromEvent=function(){function t(t){var e=this.subscriptions[t];return e&&e.lastMessage?e.lastMessage:void 0}return t}(),i.prototype.once=function(){function t(t,i){r(t,n),r(i,Function),this.subscriptions[t]||(this.subscriptions[t]={subscription:this.subscribe(t)}),e.prototype.once.call(this,t,i)}return t}(),i.prototype.on=function(){function t(t,i){r(t,n),r(i,Function),this.subscriptions[t]||(this.subscriptions[t]={subscription:this.subscribe(t)}),e.prototype.on.call(this,t,i)}return t}(),i.prototype.emit=function(){function e(){for(var e,n=arguments.length,r=Array(n),i=0;n>i;i++)r[i]=arguments[i];(e=t).call.apply(e,[this.subscriptionName].concat(r))}return e}(),c.createClass(i,[{key:"name",get:function(){return this._name},set:function(t){r(t,String),this._name=t}},{key:"subscriptionName",get:function(){return"stream-"+this.name}},{key:"useCollection",get:function(){return this._useCollection},set:function(t){r(t,Boolean),this._useCollection=t}}]),i}(p)}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:streamer"]={Streamer:m}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;"undefined"==typeof Package&&(Package={}),Package["rocketchat:version"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;"undefined"==typeof Package&&(Package={}),Package["nooitaf:colors"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.underscore._,n;(function(){(function(){n=function(e){var t=this;if(!(t instanceof n))throw new Error('use "new" to construct an EventEmitter');e=e||{},t._eventEmitter={onListeners:{},onceListeners:{},maxListeners:e.maxListeners||10}};var e=function(e,t){var n=this;return n._eventEmitter.maxListeners&&t>n._eventEmitter.maxListeners?"warning: possible EventEmitter memory leak detected. "+t+' listeners added on event "'+e+'". Use emitter.setMaxListeners() to increase limit. ('+n._eventEmitter.maxListeners+")":void 0};n.prototype.setMaxListeners=function(e){this._eventEmitter.maxListeners=e};var r=function(t,n,r){return"undefined"==typeof t[n]&&(t[n]=[]),e.apply(this,[n,t[n].push(r)])};n.prototype.on=function(e,t){var n=r.apply(this,[this._eventEmitter.onListeners,e,t]);return n&&console.warn(new Error(n).stack),this},n.prototype.once=function(e,t){var n=r.apply(this,[this._eventEmitter.onceListeners,e,t]);return n&&console.warn(new Error(n).stack),this};var i=function(e,n){var r=this,i=0;return"undefined"!=typeof e&&t.each(e,function(e){i++,e.apply(r,n)}),i};n.prototype.emit=function(e){var n=this,r=t.rest(arguments),o=0,s=n._eventEmitter.onceListeners[e];return n._eventEmitter.onceListeners[e]=[],o+=i.call(n,n._eventEmitter.onListeners[e],r),o+=i.call(n,s,r),o>0};var o=function(e,t){for(var n=!1,r=[],i=0;i<e.length;i++)n||e[i]!==t?r.push(e[i]):n=!0;return r};n.prototype.off=function(e,t){var n=this;e?"function"==typeof t?("undefined"!=typeof n._eventEmitter.onListeners[e]&&(n._eventEmitter.onListeners[e]=o(n._eventEmitter.onListeners[e],t)),"undefined"!=typeof n._eventEmitter.onceListeners[e]&&(n._eventEmitter.onceListeners[e]=o(n._eventEmitter.onceListeners[e],t))):(n._eventEmitter.onListeners[e]=[],n._eventEmitter.onceListeners[e]=[]):(n._eventEmitter.onListeners={},n._eventEmitter.onceListeners={})},n.prototype.addListener=n.prototype.on,n.prototype.removeListener=n.prototype.off,n.prototype.removeAllListeners=n.prototype.off,n.prototype.one=n.prototype.once,n.prototype.trigger=n.prototype.emit}).call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["raix:eventemitter"]={EventEmitter:n}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.ejson.EJSON,a=Package.underscore._,n=Package.jquery.$,c=Package.jquery.jQuery,o;(function(){o={}}).call(this),function(){o._encode=function(e){var a=t.stringify(e);return encodeURIComponent(a)},o._decode=function(e){var a=decodeURIComponent(e);return a?t.parse(a):null}}.call(this),function(){e.startup(function(){var e=n('script[type="text/inject-data"]',document),t=n.trim(e.text());o._data=o._decode(t)||{}}),o.getData=function(t,a){e.startup(function(){a(o._data[t])})}}.call(this),"undefined"==typeof Package&&(Package={}),Package["meteorhacks:inject-data"]={InjectData:o}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n;(function(){(function(){n={},function(e){function n(e,n){var o={};if(t(e)&&e.length>0)for(var r=n?c:i,a=e.split(/;\s/g),u,f,s,g=0,p=a.length;p>g;g++){if(s=a[g].match(/([^=]+)=/i),s instanceof Array)try{u=c(s[1]),f=r(a[g].substring(s[1].length+1))}catch(m){}else u=c(a[g]),f="";u&&(o[u]=f)}return o}function t(e){return"string"==typeof e}function o(e){return t(e)&&""!==e}function r(e){if(!o(e))throw new TypeError("Cookie name must be a non-empty string")}function i(e){return e}var a=e,c=decodeURIComponent,u=encodeURIComponent;a.get=function(e,t){r(e),t="function"==typeof t?{converter:t}:t||{};var o=n(document.cookie,!t.raw);return(t.converter||i)(o[e])},a.set=function(e,n,t){r(e),t=t||{};var i=t.expires,a=t.domain,c=t.path;t.raw||(n=u(String(n)));var f=e+"="+n,s=i;return"number"==typeof s&&(s=new Date,s.setDate(s.getDate()+i)),s instanceof Date&&(f+="; expires="+s.toUTCString()),o(a)&&(f+="; domain="+a),o(c)&&(f+="; path="+c),t.secure&&(f+="; secure"),document.cookie=f,f},a.remove=function(e,n){return n=n||{},n.expires=new Date(0),this.set(e,"",n)}}(n)}).call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["chuangbo:cookie"]={Cookie:n}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package["meteorhacks:inject-data"].InjectData,o=Package["chuangbo:cookie"].Cookie,i=Package.minimongo.LocalCollection,t=Package.minimongo.Minimongo,a=Package.underscore._,r=Package.tracker.Tracker,c=Package.tracker.Deps,l=Package.ejson.EJSON,s=Package["accounts-base"].Accounts,g=Package["accounts-base"].AccountsClient,d,u,f,_,b,m,p;(function(){d=function(e,n){n.msg="changed",n.cleared=[],n.fields=n.fields||{},a.each(e,function(e,o){"_id"!=o&&"undefined"==typeof n.fields[o]&&n.cleared.push(o)})},u=function(e,n){var o=e?a.clone(e):{};return"added"==n.msg?a.each(n.fields,function(e,n){o[n]=e}):"changed"==n.msg?(a.each(n.fields,function(e,n){o[n]=e}),a.each(n.cleared,function(e){delete o[e]})):"removed"==n.msg&&(o=null),o},f=function e(n){var o=/#{\s*?_\s*?}/,i=Array.prototype.slice,t=Object.prototype.hasOwnProperty;return a.each(i.call(arguments,1),function(e){for(var i in e)if(t.call(e,i))if(a.isNull(n[i])||a.isUndefined(n[i])||a.isFunction(n[i])||a.isNull(e[i])||a.isDate(e[i]))n[i]=e[i];else if(a.isString(e[i])&&o.test(e[i]))a.isString(n[i])&&(n[i]=e[i].replace(o,n[i]));else if(a.isArray(n[i])||a.isArray(e[i])){if(!a.isArray(n[i])||!a.isArray(e[i]))throw"Error: Trying to combine an array with a non-array ("+i+")";n[i]=a.reject(f(n[i],e[i]),function(e){return a.isNull(e)})}else if(a.isObject(n[i])||a.isObject(e[i])){if(!a.isObject(n[i])||!a.isObject(e[i]))throw"Error: Trying to combine an object with a non-object ("+i+")";n[i]=f(n[i],e[i])}else n[i]=e[i]}),n}}).call(this),function(){if(_={},_.idParse=i._idParse,_.idStringify=i._idStringify,_.ObjectID=i._ObjectID,Package["mongo-id"]){var e=Package["mongo-id"].MongoID;_.idParse=e.idParse,_.idStringify=e.idStringify,_.ObjectID=e.ObjectID}}.call(this),function(){b={},b.enabled="undefined"!=typeof __fast_render_config,b._dataReceived=!1,b._revertedBackToOriginal=!1,b._blockDDP=void 0!=e._localStorage.getItem("__frblockddp"),b._blockDDP&&console.log("FastRender is blocking DDP messages. apply 'FastRender.debugger.unblockDDP()' to unblock again."),b._disable=void 0!=e._localStorage.getItem("__frdisable"),b._disable&&console.log("FastRender is disabled. apply 'FastRender.debugger.enableFR()' to enable it back."),b.injectDdpMessage=function(e,n){b["debugger"].log("injecting ddp message:",n);var o=e._waitingForQuiescence;e._waitingForQuiescence=function(){return!1},e._livedata_data(n),e._waitingForQuiescence=o},b.init=function(n){if(!b._disable){b._securityCheck(n),b._subscriptions=n&&n.subscriptions||{},b._subscriptionIdMap={},b._dataReceived=!0,b._payload=n;var o={};n&&a.each(n.collectionData,function(e,n){o[n]||(o[n]={}),m=o[n],e.forEach(function(e){e.forEach(function(e){m[e._id]?f(m[e._id],e):m[e._id]=e})})}),a.each(o,function(n,o){a.each(n,function(n,i){var i=_.idStringify(n._id);delete n._id;var t={msg:"added",collection:o,id:i,fields:n,frGen:!0};b.injectDdpMessage(e.connection,t)})}),"undefined"!=typeof s&&s._setLoggingIn(!1)}},b._securityCheck=function(n){if(n&&n.loginToken){var o=e._localStorage.getItem("Meteor.loginToken");if(o!=n.loginToken)throw new Error("seems like cookie tossing is happening. visit here: http://git.io/q4IRHQ")}}}.call(this),function(){b["debugger"]={},b["debugger"]._logs=[],b["debugger"].log=function n(o){"undefined"!=typeof console&&"undefined"!=typeof e._localStorage&&"1"==e._localStorage.getItem("__frlog")&&(b["debugger"]._logs.push(arguments),arguments[0]="FR: "+arguments[0],console.log.apply(console,arguments))},b["debugger"].showLogs=function(){e._localStorage.setItem("__frlog","1"),location.reload()},b["debugger"].hideLogs=function(){e._localStorage.removeItem("__frlog"),location.reload()},b["debugger"].getLogs=function(){return b["debugger"]._logs},b["debugger"].getLogsJSON=function(){return JSON.stringify(b["debugger"]._logs)},b["debugger"].blockDDP=function(){e._localStorage.setItem("__frblockddp","1"),location.reload()},b["debugger"].unblockDDP=function(){e._localStorage.removeItem("__frblockddp"),location.reload()},b["debugger"].disableFR=function(){e._localStorage.setItem("__frdisable","1"),location.reload()},b["debugger"].enableFR=function(){e._localStorage.removeItem("__frdisable"),location.reload()},b["debugger"].getPayload=function(){return b._payload},b["debugger"].getPayloadJSON=function(){return JSON.stringify(b._payload)}}.call(this),function(){var n=!1,o=e.connection._livedata_data;e.connection._livedata_data=function(e){if(b._blockDDP&&!e.frGen)return void b["debugger"].log("blocking incoming ddp",e);if("added"==e.msg){var i=_.idParse(e.id),t=this._getServerDoc(e.collection,i);if(!n&&!t){var r=this._mongo_livedata_collections[e.collection],c=this._updatesForUnknownStores[e.collection];if(r){var s=r.findOne(i);s&&(b["debugger"].log("re writing DDP for:",e),d(s,e))}else if(c){var g=null,f=a.filter(c,function(n){return n.id==e.id});a.each(f,function(e){g=u(g,e)}),g&&(b["debugger"].log("re writing DDP for:",e),d(g,e))}}}return!b._revertedBackToOriginal&&b._dataReceived&&("ready"==e.msg&&!e.frGen&&b._subscriptions&&e.subs.forEach(function(e){var n=b._subscriptionIdMap[e];if(n){b["debugger"].log("actual subscription completed:",n,e);var o=b._subscriptions[n.name]||{};delete o[n.paramsKey],l.equals(b._subscriptions[n.name],{})&&delete b._subscriptions[n.name],delete b._subscriptionIdMap[e]}}),l.equals(b._subscriptions,{})&&(b["debugger"].log("fast rendering completed!"),b._revertedBackToOriginal=!0)),o.call(this,e)};var i=e.connection._send;e.connection._send=function(e){"connect"==e.msg&&void 0!=e.session&&(b._revertedBackToOriginal=!0,n=!0);var o=this;if(!b._revertedBackToOriginal&&b._dataReceived){var t=l.stringify(e.params),a="sub"==e.msg&&b._subscriptions[e.name]&&b._subscriptions[e.name][t];b["debugger"].log("new subscription:",e.name),a&&(b["debugger"].log("sending fake ready for sub:",e.name),b.injectDdpMessage(o,{msg:"ready",subs:[e.id],frGen:!0}),b._subscriptionIdMap[e.id]={name:e.name,paramsKey:t})}return i.call(this,e)}}.call(this),function(){function n(){var n=e._localStorage.getItem("Meteor.loginToken"),o=new Date(e._localStorage.getItem("Meteor.loginTokenExpires"));n?i(n,o):i(null,-1)}function i(e,n){o.set("meteor_login_token",e,{path:"/",expires:n})}e.startup(function(){n()});var t=e._localStorage.setItem;e._localStorage.setItem=function(o,i){"Meteor.loginToken"==o&&e.defer(n),t.call(e._localStorage,o,i)};var a=e._localStorage.removeItem;e._localStorage.removeItem=function(o){"Meteor.loginToken"==o&&e.defer(n),a.call(e._localStorage,o)}}.call(this),function(){n.getData("fast-render-data",function(e){b.init(e)})}.call(this),"undefined"==typeof Package&&(Package={}),Package["meteorhacks:fast-render"]={FastRender:b,__init_fast_render:p}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;"undefined"==typeof Package&&(Package={}),Package["cosmos:browserify"]={}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,e=Package.underscore._,r=Package.tracker.Tracker,n=Package.tracker.Deps,i=Package["reactive-dict"].ReactiveDict,o=Package["reactive-var"].ReactiveVar,a=Package.ejson.EJSON,s,u,c,p,h,l,f;(function(){!function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var p=r[a]={exports:{}};e[a][0].call(p.exports,function(t){var r=e[a][1][t];return i(r?r:t)},p,p.exports,t,e,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(t,e,r){function n(){c=!1,p.length?u=p.concat(u):h=-1,u.length&&i()}function i(){if(!c){var t=setTimeout(n);c=!0;for(var e=u.length;e;){for(p=u,u=[];++h<e;)p&&p[h].run();h=-1,e=u.length}p=null,c=!1,clearTimeout(t)}}function o(t,e){this.fun=t,this.array=e}function a(){}var s=e.exports={},u=[],c=!1,p,h=-1;s.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];u.push(new o(t,e)),1!==u.length||c||setTimeout(i,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=a,s.addListener=a,s.once=a,s.off=a,s.removeListener=a,s.removeAllListeners=a,s.emit=a,s.binding=function(t){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},{}],2:[function(t,e,r){s=t("page"),u=t("qs")},{page:3,qs:6}],3:[function(t,e,r){(function(r){"use strict";function n(t,e){if("function"==typeof t)return n("*",t);if("function"==typeof e)for(var r=new s(t),i=1;i<arguments.length;++i)n.callbacks.push(r.middleware(arguments[i]));else"string"==typeof t?n["string"==typeof e?"redirect":"show"](t,e):n.start(t)}function i(t){if(!t.handled){var e;e=m?y+f.hash.replace("#!",""):f.pathname+f.search,e!==t.canonicalPath&&(n.stop(),t.handled=!1,f.href=t.canonicalPath)}}function o(t){return"string"!=typeof t?t:d?decodeURIComponent(t.replace(/\+/g," ")):t}function a(t,e){"/"===t[0]&&0!==t.indexOf(y)&&(t=y+(m?"#!":"")+t);var r=t.indexOf("?");if(this.canonicalPath=t,this.path=t.replace(y,"")||"/",m&&(this.path=this.path.replace("#!","")||"/"),this.title=document.title,this.state=e||{},this.state.path=t,this.querystring=~r?o(t.slice(r+1)):"",this.pathname=o(~r?t.slice(0,r):t),this.params={},this.hash="",!m){if(!~this.path.indexOf("#"))return;var n=this.path.split("#");this.path=n[0],this.hash=o(n[1])||"",this.querystring=this.querystring.split("#")[0]}}function s(t,e){e=e||{},this.path="*"===t?"(.*)":t,this.method="GET",this.regexp=h(this.path,this.keys=[],e)}function u(t){if(1===c(t)&&!(t.metaKey||t.ctrlKey||t.shiftKey||t.defaultPrevented)){for(var e=t.target;e&&"A"!==e.nodeName;)e=e.parentNode;if(e&&"A"===e.nodeName&&!e.hasAttribute("download")&&"external"!==e.getAttribute("rel")){var i=e.getAttribute("href");if((m||e.pathname!==f.pathname||!e.hash&&"#"!==i)&&!(i&&i.indexOf("mailto:")>-1)&&!e.target&&p(e.href)){var o=e.pathname+e.search+(e.hash||"");o="/"!==o[0]?"/"+o:o,"undefined"!=typeof r&&o.match(/^\/[a-zA-Z]:\//)&&(o=o.replace(/^\/[a-zA-Z]:\//,"/"));var a=o;0===o.indexOf(y)&&(o=o.substr(y.length)),m&&(o=o.replace("#!","")),y&&a===o||(t.preventDefault(),n.show(a))}}}}function c(t){return t=t||window.event,null===t.which?t.button:t.which}function p(t){var e=f.protocol+"//"+f.hostname;return f.port&&(e+=":"+f.port),t&&0===t.indexOf(e)}var h=t("path-to-regexp");e.exports=n;var l="undefined"!=typeof document&&document.ontouchstart?"touchstart":"click",f="undefined"!=typeof window&&(window.history.location||window.location),g=!0,d=!0,y="",v,m=!1,_;n.callbacks=[],n.exits=[],n.current="",n.len=0,n.base=function(t){return 0===arguments.length?y:void(y=t)},n.start=function(t){if(t=t||{},!v&&(v=!0,!1===t.dispatch&&(g=!1),!1===t.decodeURLComponents&&(d=!1),!1!==t.popstate&&window.addEventListener("popstate",b,!1),!1!==t.click&&document.addEventListener(l,u,!1),!0===t.hashbang&&(m=!0),g)){var e=m&&~f.hash.indexOf("#!")?f.hash.substr(2)+f.search:f.pathname+f.search+f.hash;n.replace(e,null,!0,g)}},n.stop=function(){v&&(n.current="",n.len=0,v=!1,document.removeEventListener(l,u,!1),window.removeEventListener("popstate",b,!1))},n.show=function(t,e,r,i){var o=new a(t,e);return n.current=o.path,!1!==r&&n.dispatch(o),!1!==o.handled&&!1!==i&&o.pushState(),o},n.back=function(t,e){n.len>0?(history.back(),n.len--):setTimeout(t?function(){n.show(t,e)}:function(){n.show(y,e)})},n.redirect=function(t,e){"string"==typeof t&&"string"==typeof e&&n(t,function(t){setTimeout(function(){n.replace(e)},0)}),"string"==typeof t&&"undefined"==typeof e&&setTimeout(function(){n.replace(t)},0)},n.replace=function(t,e,r,i){var o=new a(t,e);return n.current=o.path,o.init=r,o.save(),!1!==i&&n.dispatch(o),o},n.dispatch=function(t){function e(){var t=n.exits[s++];return t?void t(o,e):r()}function r(){var e=n.callbacks[a++];return t.path!==n.current?void(t.handled=!1):e?void e(t,r):i(t)}var o=_,a=0,s=0;_=t,o?e():r()},n.exit=function(t,e){if("function"==typeof t)return n.exit("*",t);for(var r=new s(t),i=1;i<arguments.length;++i)n.exits.push(r.middleware(arguments[i]))},n.Context=a,a.prototype.pushState=function(){n.len++,history.pushState(this.state,this.title,m&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},a.prototype.save=function(){history.replaceState(this.state,this.title,m&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},n.Route=s,s.prototype.middleware=function(t){var e=this;return function(r,n){return e.match(r.path,r.params)?t(r,n):void n()}},s.prototype.match=function(t,e){var r=this.keys,n=t.indexOf("?"),i=~n?t.slice(0,n):t,a=this.regexp.exec(decodeURIComponent(i));if(!a)return!1;for(var s=1,u=a.length;u>s;++s){var c=r[s-1],p=o(a[s]);void 0===p&&hasOwnProperty.call(e,c.name)||(e[c.name]=p)}return!0};var b=function(){var t=!1;if("undefined"!=typeof window)return"complete"===document.readyState?t=!0:window.addEventListener("load",function(){setTimeout(function(){t=!0},0)}),function e(r){if(t)if(r.state){var i=r.state.path;n.replace(i,r.state)}else n.show(f.pathname+f.hash,void 0,void 0,!1)}}();n.sameOrigin=p}).call(this,t("_process"))},{_process:1,"path-to-regexp":4}],4:[function(t,e,r){function n(t){for(var e=[],r=0,n=0,i="",o;null!=(o=y.exec(t));){var a=o[0],u=o[1],c=o.index;if(i+=t.slice(n,c),n=c+a.length,u)i+=u[1];else{i&&(e.push(i),i="");var p=o[2],h=o[3],l=o[4],f=o[5],g=o[6],d=o[7],v="+"===g||"*"===g,m="?"===g||"*"===g,_=p||"/",b=l||f||(d?".*":"[^"+_+"]+?");e.push({name:h||r++,prefix:p||"",delimiter:_,optional:m,repeat:v,pattern:s(b)})}}return n<t.length&&(i+=t.substr(n)),i&&e.push(i),e}function i(t){return o(n(t))}function o(t){for(var e=new Array(t.length),r=0;r<t.length;r++)"object"==typeof t[r]&&(e[r]=new RegExp("^"+t[r].pattern+"$"));return function(r){for(var n="",i=r||{},o=0;o<t.length;o++){var a=t[o];if("string"!=typeof a){var s=i[a.name],u;if(null==s){if(a.optional)continue;throw new TypeError('Expected "'+a.name+'" to be defined')}if(d(s)){if(!a.repeat)throw new TypeError('Expected "'+a.name+'" to not repeat, but received "'+s+'"');if(0===s.length){if(a.optional)continue;throw new TypeError('Expected "'+a.name+'" to not be empty')}for(var c=0;c<s.length;c++){if(u=encodeURIComponent(s[c]),!e[o].test(u))throw new TypeError('Expected all "'+a.name+'" to match "'+a.pattern+'", but received "'+u+'"');n+=(0===c?a.prefix:a.delimiter)+u}}else{if(u=encodeURIComponent(s),!e[o].test(u))throw new TypeError('Expected "'+a.name+'" to match "'+a.pattern+'", but received "'+u+'"');n+=a.prefix+u}}else n+=a}return n}}function a(t){return t.replace(/([.+*?=^!:${}()[\]|\/])/g,"\\$1")}function s(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function u(t,e){return t.keys=e,t}function c(t){return t.sensitive?"":"i"}function p(t,e){var r=t.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)e.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,pattern:null});return u(t,e)}function h(t,e,r){for(var n=[],i=0;i<t.length;i++)n.push(g(t[i],e,r).source);var o=new RegExp("(?:"+n.join("|")+")",c(r));return u(o,e)}function l(t,e,r){for(var i=n(t),o=f(i,r),a=0;a<i.length;a++)"string"!=typeof i[a]&&e.push(i[a]);return u(o,e)}function f(t,e){e=e||{};for(var r=e.strict,n=e.end!==!1,i="",o=t[t.length-1],s="string"==typeof o&&/\/$/.test(o),u=0;u<t.length;u++){var p=t[u];if("string"==typeof p)i+=a(p);else{var h=a(p.prefix),l=p.pattern;p.repeat&&(l+="(?:"+h+l+")*"),l=p.optional?h?"(?:"+h+"("+l+"))?":"("+l+")?":h+"("+l+")",i+=l}}return r||(i=(s?i.slice(0,-2):i)+"(?:\\/(?=$))?"),i+=n?"$":r&&s?"":"(?=\\/|$)",new RegExp("^"+i,c(e))}function g(t,e,r){return e=e||[],d(e)?r||(r={}):(r=e,e=[]),t instanceof RegExp?p(t,e,r):d(t)?h(t,e,r):l(t,e,r)}var d=t("isarray");e.exports=g,e.exports.parse=n,e.exports.compile=i,e.exports.tokensToFunction=o,e.exports.tokensToRegExp=f;var y=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^()])+)\\))?|\\(((?:\\\\.|[^()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},{isarray:5}],5:[function(t,e,r){e.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},{}],6:[function(t,e,r){var n=t("./stringify"),i=t("./parse"),o={};e.exports={stringify:n,parse:i}},{"./parse":7,"./stringify":8}],7:[function(t,e,r){var n=t("./utils"),i={delimiter:"&",depth:5,arrayLimit:20,parameterLimit:1e3,strictNullHandling:!1,plainObjects:!1,allowPrototypes:!1,allowDots:!1};i.parseValues=function(t,e){for(var r={},i=t.split(e.delimiter,e.parameterLimit===1/0?void 0:e.parameterLimit),o=0,a=i.length;a>o;++o){var s=i[o],u=-1===s.indexOf("]=")?s.indexOf("="):s.indexOf("]=")+1;if(-1===u)r[n.decode(s)]="",e.strictNullHandling&&(r[n.decode(s)]=null);else{var c=n.decode(s.slice(0,u)),p=n.decode(s.slice(u+1));Object.prototype.hasOwnProperty.call(r,c)?r[c]=[].concat(r[c]).concat(p):r[c]=p}}return r},i.parseObject=function(t,e,r){if(!t.length)return e;var n=t.shift(),o;if("[]"===n)o=[],o=o.concat(i.parseObject(t,e,r));else{o=r.plainObjects?Object.create(null):{};var a="["===n[0]&&"]"===n[n.length-1]?n.slice(1,n.length-1):n,s=parseInt(a,10),u=""+s;!isNaN(s)&&n!==a&&u===a&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(o=[],o[s]=i.parseObject(t,e,r)):o[a]=i.parseObject(t,e,r)}return o},i.parseKeys=function(t,e,r){if(t){r.allowDots&&(t=t.replace(/\.([^\.\[]+)/g,"[$1]"));var n=/^([^\[\]]*)/,o=/(\[[^\[\]]*\])/g,a=n.exec(t),s=[];if(a[1]){if(!r.plainObjects&&Object.prototype.hasOwnProperty(a[1])&&!r.allowPrototypes)return;s.push(a[1])}for(var u=0;null!==(a=o.exec(t))&&u<r.depth;)++u,(r.plainObjects||!Object.prototype.hasOwnProperty(a[1].replace(/\[|\]/g,""))||r.allowPrototypes)&&s.push(a[1]);return a&&s.push("["+t.slice(a.index)+"]"),i.parseObject(s,e,r)}},e.exports=function(t,e){if(e=e||{},e.delimiter="string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,e.depth="number"==typeof e.depth?e.depth:i.depth,e.arrayLimit="number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,e.parseArrays=e.parseArrays!==!1,e.allowDots="boolean"==typeof e.allowDots?e.allowDots:i.allowDots,e.plainObjects="boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,e.allowPrototypes="boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,e.parameterLimit="number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,e.strictNullHandling="boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling,""===t||null===t||"undefined"==typeof t)return e.plainObjects?Object.create(null):{};for(var r="string"==typeof t?i.parseValues(t,e):t,o=e.plainObjects?Object.create(null):{},a=Object.keys(r),s=0,u=a.length;u>s;++s){var c=a[s],p=i.parseKeys(c,r[c],e);o=n.merge(o,p,e)}return n.compact(o)}},{"./utils":9}],8:[function(t,e,r){var n=t("./utils"),i={delimiter:"&",arrayPrefixGenerators:{brackets:function(t,e){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t,e){return t}},strictNullHandling:!1,skipNulls:!1,encode:!0};i.stringify=function(t,e,r,o,a,s,u,c){if("function"==typeof u)t=u(e,t);else if(n.isBuffer(t))t=t.toString();else if(t instanceof Date)t=t.toISOString();else if(null===t){if(o)return s?n.encode(e):e;t=""}if("string"==typeof t||"number"==typeof t||"boolean"==typeof t)return s?[n.encode(e)+"="+n.encode(t)]:[e+"="+t];var p=[];if("undefined"==typeof t)return p;var h;if(Array.isArray(u))h=u;else{var l=Object.keys(t);h=c?l.sort(c):l}for(var f=0,g=h.length;g>f;++f){var d=h[f];a&&null===t[d]||(p=p.concat(Array.isArray(t)?i.stringify(t[d],r(e,d),r,o,a,s,u):i.stringify(t[d],e+"["+d+"]",r,o,a,s,u)))}return p},e.exports=function(t,e){e=e||{};var r="undefined"==typeof e.delimiter?i.delimiter:e.delimiter,n="boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling,o="boolean"==typeof e.skipNulls?e.skipNulls:i.skipNulls,a="boolean"==typeof e.encode?e.encode:i.encode,s="function"==typeof e.sort?e.sort:null,u,c;"function"==typeof e.filter?(c=e.filter,t=c("",t)):Array.isArray(e.filter)&&(u=c=e.filter);var p=[];if("object"!=typeof t||null===t)return"";var h;h=e.arrayFormat in i.arrayPrefixGenerators?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":"indices";var l=i.arrayPrefixGenerators[h];u||(u=Object.keys(t)),s&&u.sort(s);for(var f=0,g=u.length;g>f;++f){var d=u[f];o&&null===t[d]||(p=p.concat(i.stringify(t[d],d,l,n,o,a,c,s)))}return p.join(r)}},{"./utils":9}],9:[function(t,e,r){var n={};n.hexTable=new Array(256);for(var i=0;256>i;++i)n.hexTable[i]="%"+((16>i?"0":"")+i.toString(16)).toUpperCase();r.arrayToObject=function(t,e){for(var r=e.plainObjects?Object.create(null):{},n=0,i=t.length;i>n;++n)"undefined"!=typeof t[n]&&(r[n]=t[n]);return r},r.merge=function(t,e,n){if(!e)return t;if("object"!=typeof e)return Array.isArray(t)?t.push(e):"object"==typeof t?t[e]=!0:t=[t,e],t;if("object"!=typeof t)return t=[t].concat(e);Array.isArray(t)&&!Array.isArray(e)&&(t=r.arrayToObject(t,n));for(var i=Object.keys(e),o=0,a=i.length;a>o;++o){var s=i[o],u=e[s];Object.prototype.hasOwnProperty.call(t,s)?t[s]=r.merge(t[s],u,n):t[s]=u}return t},r.decode=function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},r.encode=function(t){if(0===t.length)return t;"string"!=typeof t&&(t=""+t);for(var e="",r=0,i=t.length;i>r;++r){var o=t.charCodeAt(r);45===o||46===o||95===o||126===o||o>=48&&57>=o||o>=65&&90>=o||o>=97&&122>=o?e+=t[r]:128>o?e+=n.hexTable[o]:2048>o?e+=n.hexTable[192|o>>6]+n.hexTable[128|63&o]:55296>o||o>=57344?e+=n.hexTable[224|o>>12]+n.hexTable[128|o>>6&63]+n.hexTable[128|63&o]:(++r,o=65536+((1023&o)<<10|1023&t.charCodeAt(r)),e+=n.hexTable[240|o>>18]+n.hexTable[128|o>>12&63]+n.hexTable[128|o>>6&63]+n.hexTable[128|63&o])}return e},r.compact=function(t,e){if("object"!=typeof t||null===t)return t;e=e||[];var n=e.indexOf(t);if(-1!==n)return e[n];if(e.push(t),Array.isArray(t)){for(var i=[],o=0,a=t.length;a>o;++o)"undefined"!=typeof t[o]&&i.push(t[o]);return i}var s=Object.keys(t);for(o=0,a=s.length;a>o;++o){var u=s[o];t[u]=r.compact(t[u],e)}return t},r.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},r.isBuffer=function(t){return null===t||"undefined"==typeof t?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}},{}]},{},[2])}).call(this),function(){c={},c.applyFilters=function(t,e){if(t instanceof Array||(t=[t]),!e)return t;if(e.only&&e.except)throw new Error("Triggers don't support only and except filters at once");if(e.only&&!(e.only instanceof Array))throw new Error("only filters needs to be an array");if(e.except&&!(e.except instanceof Array))throw new Error("except filters needs to be an array");if(e.only)return c.createRouteBoundTriggers(t,e.only);if(e.except)return c.createRouteBoundTriggers(t,e.except,!0);throw new Error("Provided a filter but not supported")},c.createRouteBoundTriggers=function(t,r,n){var i={};e.each(r,function(t){i[t]=!0});var o=e.map(t,function(t){var e=function(e,r){var o=e.route.name,a=i[o]?1:-1;a=n?-1*a:a,1===a&&t(e,r)};return e});return o},c.runTriggers=function(t,e,r,n){function i(t,e,n){if(u)throw new Error("already redirected");if(!s)throw new Error("redirect needs to be done in sync");if(!t)throw new Error("trigger redirect requires an URL");a=!0,u=!0,r(t,e,n)}function o(){a=!0}for(var a=!1,s=!0,u=!1,c=0;c<t.length;c++){var p=t[c];if(p(e,i,o),a)return}s=!1,n()}}.call(this),function(){p=function(){var e=this;this.globals=[],this.subscriptions=Function.prototype,this._tracker=this._buildTracker(),this._current={},this._onEveryPath=new r.Dependency,this._globalRoute=new l(this),this._onRouteCallbacks=[],this._askedToWait=!1,this._initialized=!1,this._triggersEnter=[],this._triggersExit=[],this._routes=[],this._routesMap={},this._updateCallbacks(),this.notFound=this.notfound=null,this.safeToRun=0,this._basePath=__meteor_runtime_config__.ROOT_URL_PATH_PREFIX||"",this._oldRouteChain=[],this.env={replaceState:new t.EnvironmentVariable,reload:new t.EnvironmentVariable,trailingSlash:new t.EnvironmentVariable},this._redirectFn=function(t,r,n){if(/^http(s)?:\/\//.test(t)){var i="Redirects to URLs outside of the app are not supported in this version of Flow Router. Use 'window.location = yourUrl' instead";throw new Error(i)}e.withReplaceState(function(){var i=f.path(t,r,n);e._page.redirect(i)})},this._initTriggersAPI()},p.prototype.route=function(t,e,r){if(!/^\/.*/.test(t)){var n="route's path must start with '/'";throw new Error(n)}e=e||{};var i=this,o=new l(this,t,e,r);return o._actionHandle=function(t,e){var r=i._current.route;i._oldRouteChain.push(r);var n=i._qs.parse(t.querystring);n=JSON.parse(JSON.stringify(n)),i._current={path:t.path,context:t,params:t.params,queryParams:n,route:o,oldRoute:r};var a=function(){i._invalidateTracker()},s=i._triggersEnter.concat(o._triggersEnter);c.runTriggers(s,i._current,i._redirectFn,a)},o._exitHandle=function(t,e){var r=i._triggersExit.concat(o._triggersExit);c.runTriggers(r,i._current,i._redirectFn,e)},this._routes.push(o),e.name&&(this._routesMap[e.name]=o),this._updateCallbacks(),this._triggerRouteRegister(o),o},p.prototype.group=function(t){return new h(this,t)},p.prototype.path=function(t,r,n){this._routesMap[t]&&(t=this._routesMap[t].pathDef);var i="";this._basePath&&(i+="/"+this._basePath+"/"),r=r||{};var o=/(:[\w\(\)\\\+\*\.\?]+)+/g;i+=t.replace(o,function(t){var e=t.indexOf("(");return t=t.substring(1,e>0?e:void 0),t=t.replace(/[\+\*\?]+/g,""),encodeURIComponent(encodeURIComponent(r[t]||""))}),i=i.replace(/\/\/+/g,"/"),i=i.match(/^\/{1}$/)?i:i.replace(/\/$/,""),this.env.trailingSlash.get()&&"/"!==e.last(i)&&(i+="/");var a=this._qs.stringify(n||{});return a&&(i+="?"+a),i},p.prototype.go=function(t,e,r){var n=this.path(t,e,r),i=this.env.replaceState.get();i?this._page.replace(n):this._page(n)},p.prototype.reload=function(){var t=this;t.env.reload.withValue(!0,function(){t._page.replace(t._current.path)})},p.prototype.redirect=function(t){this._page.redirect(t)},p.prototype.setParams=function(t){if(!this._current.route)return!1;var r=this._current.route.pathDef,n=this._current.params,i={};e.each(e.keys(n),function(t){i[t]=n[t]}),i=e.extend(i,t);var o=this._current.queryParams;return this.go(r,i,o),!0},p.prototype.setQueryParams=function(t){if(!this._current.route)return!1;var r=e.clone(this._current.queryParams);e.extend(r,t);for(var n in r)(null===r[n]||void 0===r[n])&&delete r[n];var i=this._current.route.pathDef,o=this._current.params;return this.go(i,o,r),!0},p.prototype.current=function(){var t=e.clone(this._current);return t.queryParams=a.clone(t.queryParams),t.params=a.clone(t.params),t};var n=["getParam","getQueryParam","getRouteName","watchPathChange"];n.forEach(function(t){p.prototype[t]=function(e){var r=this._current.route;return r?r[t].call(r,e):void this._onEveryPath.depend()}}),p.prototype.subsReady=function(){var t=null,n=e.toArray(arguments);"function"==typeof e.last(n)&&(t=n.pop());var i=this.current().route,o=this._globalRoute;if(this._onEveryPath.depend(),!i)return!1;var a;0===n.length?(a=e.values(o.getAllSubscriptions()),a=a.concat(e.values(i.getAllSubscriptions()))):a=e.map(n,function(t){return o.getSubscription(t)||i.getSubscription(t)});var s=function(){var t=e.every(a,function(t){return t&&t.ready()});return t};return t?void r.autorun(function(e){s()&&(t(),e.stop())}):s()},p.prototype.withReplaceState=function(t){return this.env.replaceState.withValue(!0,t)},p.prototype.withTrailingSlash=function(t){return this.env.trailingSlash.withValue(!0,t)},p.prototype._notfoundRoute=function(t){return this._current={path:t.path,context:t,params:[],queryParams:{}},this.notFound=this.notFound||this.notfound,this.notFound?(this._current.route=new l(this,"*",this.notFound),void this._invalidateTracker()):void console.error("There is no route for the path:",t.path)},p.prototype.initialize=function(t){if(t=t||{},this._initialized)throw new Error("FlowRouter is already initialized");var r=this;this._updateCallbacks(),e.each(["show","replace"],function(t){var e=r._page[t];r._page[t]=function(t,n,i,o){var a=r.env.reload.get();(a||r._current.path!==t)&&e.call(this,t,n,i,o)}}),this._page.base(this._basePath),this._page({decodeURLComponents:!0,hashbang:!!t.hashbang}),this._initialized=!0},p.prototype._buildTracker=function(){var t=this,e=r.autorun(function(){if(t._current&&t._current.route){var e=t._current,n=e.route,i=e.path;if(0===t.safeToRun){var o="You can't use reactive data sources like Session inside the `.subscriptions` method!";throw new Error(o)}t._globalRoute.clearSubscriptions(),t.subscriptions.call(t._globalRoute,i),n.callSubscriptions(e),r.nonreactive(function(){var i=e.oldRoute!==e.route,o=!e.oldRoute;o&&(i=!1);var a=t._oldRouteChain[0];t._oldRouteChain=[],e.route.registerRouteChange(e,i),n.callAction(e),r.afterFlush(function(){t._onEveryPath.changed(),i&&a&&a.registerRouteClose()})}),t.safeToRun--}});return e},p.prototype._invalidateTracker=function(){var e=this;if(this.safeToRun++,this._tracker.invalidate(),!r.currentComputation)try{r.flush()}catch(n){if(!/Tracker\.flush while flushing/.test(n.message))return;t.defer(function(){var t=e._nextPath;t&&(delete e._nextPath,e.env.reload.withValue(!0,function(){e.go(t)}))})}},p.prototype._updateCallbacks=function(){var t=this;t._page.callbacks=[],t._page.exits=[],e.each(t._routes,function(e){t._page(e.pathDef,e._actionHandle),t._page.exit(e.pathDef,e._exitHandle)}),t._page("*",function(e){t._notfoundRoute(e)})},p.prototype._initTriggersAPI=function(){var t=this;this.triggers={enter:function(e,r){e=c.applyFilters(e,r),e.length&&(t._triggersEnter=t._triggersEnter.concat(e))},exit:function(e,r){e=c.applyFilters(e,r),e.length&&(t._triggersExit=t._triggersExit.concat(e))}}},p.prototype.wait=function(){if(this._initialized)throw new Error("can't wait after FlowRouter has been initialized");this._askedToWait=!0},p.prototype.onRouteRegister=function(t){this._onRouteCallbacks.push(t)},p.prototype._triggerRouteRegister=function(t){var r=e.pick(t,"name","pathDef","path"),n=["triggersEnter","triggersExit","action","subscriptions","name"];r.options=e.omit(t.options,n),e.each(this._onRouteCallbacks,function(t){t(r)})},p.prototype._page=s,p.prototype._qs=u}.call(this),function(){h=function(t,e,r){if(e=e||{},e.prefix&&!/^\/.*/.test(e.prefix)){var n="group's prefix must start with '/'";throw new Error(n)}this._router=t,this.prefix=e.prefix||"",this.name=e.name,this.options=e,this._triggersEnter=e.triggersEnter||[],this._triggersExit=e.triggersExit||[],this._subscriptions=e.subscriptions||Function.prototype,this.parent=r,this.parent&&(this.prefix=r.prefix+this.prefix,this._triggersEnter=r._triggersEnter.concat(this._triggersEnter),this._triggersExit=this._triggersExit.concat(r._triggersExit))},h.prototype.route=function(t,e,r){if(e=e||{},!/^\/.*/.test(t)){var n="route's path must start with '/'";throw new Error(n)}r=r||this,t=this.prefix+t;var i=e.triggersEnter||[];e.triggersEnter=this._triggersEnter.concat(i);var o=e.triggersExit||[];return e.triggersExit=o.concat(this._triggersExit),this._router.route(t,e,r)},h.prototype.group=function(t){return new h(this._router,t,this)},h.prototype.callSubscriptions=function(t){this.parent&&this.parent.callSubscriptions(t),this._subscriptions.call(t.route,t.params,t.queryParams)}}.call(this),function(){l=function(t,e,n,o){n=n||{},this.options=n,this.pathDef=e,this.path=e,n.name&&(this.name=n.name),this._action=n.action||Function.prototype,this._subscriptions=n.subscriptions||Function.prototype,this._triggersEnter=n.triggersEnter||[],this._triggersExit=n.triggersExit||[],this._subsMap={},this._router=t,this._params=new i,this._queryParams=new i,this._routeCloseDep=new r.Dependency,this._pathChangeDep=new r.Dependency,this.group=o},l.prototype.clearSubscriptions=function(){this._subsMap={}},l.prototype.register=function(t,e,r){this._subsMap[t]=e},l.prototype.getSubscription=function(t){return this._subsMap[t]},l.prototype.getAllSubscriptions=function(){return this._subsMap},l.prototype.callAction=function(t){var e=this;e._action(t.params,t.queryParams)},l.prototype.callSubscriptions=function(t){this.clearSubscriptions(),this.group&&this.group.callSubscriptions(t),this._subscriptions(t.params,t.queryParams)},l.prototype.getRouteName=function(){return this._routeCloseDep.depend(),this.name},l.prototype.getParam=function(t){return this._routeCloseDep.depend(),this._params.get(t)},l.prototype.getQueryParam=function(t){return this._routeCloseDep.depend(),this._queryParams.get(t)},l.prototype.watchPathChange=function(){this._pathChangeDep.depend()},l.prototype.registerRouteClose=function(){this._params=new i,this._queryParams=new i,this._routeCloseDep.changed(),this._pathChangeDep.changed()},l.prototype.registerRouteChange=function(t,e){var r=t.params;this._updateReactiveDict(this._params,r);var n=t.queryParams;this._updateReactiveDict(this._queryParams,n),e||this._pathChangeDep.changed()},l.prototype._updateReactiveDict=function(t,r){var n=e.keys(r),i=e.keys(t.keyDeps);e.each(n,function(e){t.set(e,r[e])});var o=e.difference(i,n);e.each(o,function(e){t.set(e,void 0)})}}.call(this),function(){f=new p,f.Router=p,f.Route=l,t.startup(function(){f._askedToWait||f.initialize()})}.call(this),function(){p.prototype.url=function(){var e=this.path.apply(this,arguments),r=this._basePath||"/",n=e.replace(new RegExp("^"+r),"");return t.absoluteUrl(n)}}.call(this),"undefined"==typeof Package&&(Package={}),Package["kadira:flow-router"]={FlowRouter:f}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,o=Package.underscore._,n=Package.random.Random,r=Package.logging.Log,a=Package["raix:eventemitter"].EventEmitter,s=Package.templating.Template,c=Package["kadira:flow-router"].FlowRouter,i=Package.blaze.Blaze,l=Package.blaze.UI,u=Package.blaze.Handlebars,g=Package.spacebars.Spacebars,d=Package.htmljs.HTML,f,m,p;(function(){f=function(e){return e=e.replace(/>/g,">"),e=e.replace(/</g,"<"),Object.keys(f.foregroundColors).forEach(function(t){var o='<span style="color: '+f.foregroundColors[t]+'">';e=e.replace(new RegExp("\\["+t+"m","g"),o).replace(new RegExp("\\[0;"+t+"m","g"),o)}),e=e.replace(/\033\[1m/g,"<b>").replace(/\033\[22m/g,"</b>"),e=e.replace(/\033\[3m/g,"<i>").replace(/\033\[23m/g,"</i>"),e=e.replace(/\033\[m/g,"</span>"),e=e.replace(/\033\[0m/g,"</span>"),e.replace(/\033\[39m/g,"</span>")},f.foregroundColors={30:"gray",31:"red",32:"lime",33:"yellow",34:"#6B98FF",35:"#FF00FF",36:"cyan",37:"white"}}).call(this),function(){m="object"==typeof m?m:{};var e=m,t,o,n;t=Package.templating.Template,t.log=!1,t.logMatch=/.*/,t.enableLogs=function(e){return t.logMatch=/.*/,e===!1?t.log=!1:(t.log=!0,e instanceof RegExp?t.logMatch=e:void 0)},o=function(e,o,n){return function(r){var a,s,c,i;i=this,s=function(e,a){return a instanceof Function?r[e]=function(){var r,s;return s=a.apply(this,arguments),t.log===!0&&(r=o+":"+i.viewName.replace("Template.","")+"."+e,t.logMatch.test(r)&&console.log("%c"+r,"color: "+n,{args:arguments,scope:this,result:s})),s}:void 0};for(c in r)a=r[c],s(c,a);return e.call(i,r)}},t.prototype.helpers=o(t.prototype.helpers,"helper","blue"),t.prototype.events=o(t.prototype.events,"event","green"),n=function(e,o,n){return function(r){var a,s;return a=this,r instanceof Function?(s=function(){var e,s;return s=r.apply(this,arguments),t.log===!0&&(e=o+":"+a.viewName.replace("Template.",""),t.logMatch.test(e)&&console.log("%c"+e,"color: "+n+"; font-weight: bold",{args:arguments,scope:this,result:s})),s},e.call(a,s)):e.call(a,r)}},t.prototype.onCreated=n(t.prototype.onCreated,"onCreated","blue"),t.prototype.onRendered=n(t.prototype.onRendered,"onRendered","green"),t.prototype.onDestroyed=n(t.prototype.onDestroyed,"onDestroyed","red")}.call(this),function(){m="object"==typeof m?m:{};var o=m;this.stdout=new e.Collection("stdout"),e.startup(function(){return RocketChat.AdminBox.addOption({href:"admin-view-logs",i18nLabel:"View_Logs",permissionGranted:function(){return RocketChat.authz.hasAllPermission("view-logs")}})}),c.route("/admin/view-logs",{name:"admin-view-logs",action:function(e){return BlazeLayout.render("main",{center:"pageSettingsContainer",pageTitle:t("View_Logs"),pageTemplate:"viewLogs",noScroll:!0})}})}.call(this),function(){s.__checkName("viewLogs"),s.viewLogs=new s("Template.viewLogs",function(){var e=this;return i.If(function(){return g.call(e.lookup("hasPermission"))},function(){return["\n ",d.DIV({"class":"section terminal"},"\n ",i.Each(function(){return g.call(e.lookup("logs"))},function(){return["\n ",d.DIV("\n ",d.Comment(' <span class="time">{{formatTS ts}}</span> '),"\n ",i.View("lookup:ansispan",function(){return g.makeRaw(g.mustache(e.lookup("ansispan"),e.lookup("string")))}),"\n "),"\n "]}),"\n "),"\n ",d.DIV({"class":"new-logs not"},"\n ",d.I({"class":"icon-down-big"}),"\n ",d.SPAN(i.View("lookup:_",function(){return g.mustache(e.lookup("_"),"New_logs")})),"\n "),"\n "]},function(){return["\n ",i.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Not_authorized")}),"\n "]})})}.call(this),function(){m="object"==typeof m?m:{};var t=m;s.viewLogs.onCreated(function(){return this.subscribe("stdout"),this.atBottom=!0}),s.viewLogs.helpers({hasPermission:function(){return RocketChat.authz.hasAllPermission("view-logs")},logs:function(){return stdout.find({},{sort:{ts:1}})},ansispan:function(e){return e=f(e.replace(/\s/g," ").replace(/(\\n|\n)/g,"<br>")),e=e.replace(/(.\d{8}-\d\d:\d\d:\d\d\.\d\d\d\(?.{0,2}\)?)/,'<span class="time">$1</span>')},formatTS:function(e){return moment(e).format("YMMDD-HH:mm:ss.SSS(ZZ)")}}),s.viewLogs.events({"click .new-logs":function(e){return s.instance().atBottom=!0,s.instance().sendToBottomIfNecessary()}}),s.viewLogs.onRendered(function(){var t,n,r,a,s;return a=this.find(".terminal"),s=this.find(".terminal"),t=this.find(".new-logs"),r=this,r.isAtBottom=function(){return a.scrollTop>=a.scrollHeight-a.clientHeight?(t.className="new-logs not",!0):!1},r.sendToBottom=function(){return a.scrollTop=a.scrollHeight-a.clientHeight,t.className="new-logs not"},r.checkIfScrollIsAtBottom=function(){return r.atBottom=r.isAtBottom(),readMessage.enable(),readMessage.read()},r.sendToBottomIfNecessary=function(){return r.atBottom===!0&&r.isAtBottom()!==!0?r.sendToBottom():r.atBottom===!1?t.className="new-logs":void 0},r.sendToBottomIfNecessaryDebounced=o.debounce(r.sendToBottomIfNecessary,10),r.sendToBottomIfNecessary(),null==window.MutationObserver?s.addEventListener("DOMSubtreeModified",function(){return r.sendToBottomIfNecessaryDebounced()}):(n=new MutationObserver(function(e){return e.forEach(function(e){return r.sendToBottomIfNecessaryDebounced()})}),n.observe(s,{childList:!0})),r.onWindowResize=function(){return e.defer(function(){return r.sendToBottomIfNecessaryDebounced()})},window.addEventListener("resize",r.onWindowResize),a.addEventListener("mousewheel",function(){return r.atBottom=!1,e.defer(function(){return r.checkIfScrollIsAtBottom()})}),a.addEventListener("wheel",function(){return r.atBottom=!1,e.defer(function(){return r.checkIfScrollIsAtBottom()})}),a.addEventListener("touchstart",function(){return r.atBottom=!1}),a.addEventListener("touchend",function(){return e.defer(function(){return r.checkIfScrollIsAtBottom()}),e.setTimeout(function(){return r.checkIfScrollIsAtBottom()},1e3),e.setTimeout(function(){return r.checkIfScrollIsAtBottom()},2e3)})})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:logger"]={Logger:p}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,e;(function(){(function(){e={},"function"==typeof Object.create?e.inherits=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.inherits=function(t,e){t.super_=e;var o=function(){};o.prototype=e.prototype,t.prototype=new o,t.prototype.constructor=t}}).call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["meteorspark:util"]={Util:e}}();
|
||
|
||
!function(){var e=Package.underscore._,n=Package.meteor.Meteor,r=Package["raix:eventemitter"].EventEmitter,t=Package["meteorspark:util"].Util,a=Package.tracker.Tracker,u=Package.tracker.Deps,s=Package.session.Session,o=Package.jquery.$,i=Package.jquery.jQuery,l=Package.templating.Template,c=Package.blaze.Blaze,f=Package.blaze.UI,p=Package.blaze.Handlebars,m=Package.spacebars.Spacebars,g=Package.htmljs.HTML,d,b,h,v;(function(){d={fallback_language:"en",langauges_tags_regex:"([a-z]{2})(-[A-Z]{2})?",project_translations_domain:"project",browser_path:"/tap-i18n",debug:!1}}).call(this),function(){b={},function(){function e(e,n){if(!n||"function"==typeof n)return e;for(var r in n)e[r]=n[r];return e}function n(e,n,r){var t,a=0,u=e.length,s=void 0===u||"[object Array]"!==Object.prototype.toString.apply(e)||"function"==typeof e;if(r)if(s){for(t in e)if(n.apply(e[t],r)===!1)break}else for(;u>a&&n.apply(e[a++],r)!==!1;);else if(s){for(t in e)if(n.call(e[t],t,e[t])===!1)break}else for(;u>a&&n.call(e[a],a,e[a++])!==!1;);return e}function r(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return M[e]}):e}function t(e){var n=function(e){if(window.XMLHttpRequest)return e(null,new XMLHttpRequest);if(window.ActiveXObject)try{return e(null,new ActiveXObject("Msxml2.XMLHTTP"))}catch(n){return e(null,new ActiveXObject("Microsoft.XMLHTTP"))}return e(new Error)},r=function(e){if("string"==typeof e)return e;var n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return n.join("&")},t=function(e){e=e.replace(/\r\n/g,"\n");for(var n="",r=0;r<e.length;r++){var t=e.charCodeAt(r);128>t?n+=String.fromCharCode(t):t>127&&2048>t?(n+=String.fromCharCode(t>>6|192),n+=String.fromCharCode(63&t|128)):(n+=String.fromCharCode(t>>12|224),n+=String.fromCharCode(t>>6&63|128),n+=String.fromCharCode(63&t|128))}return n},a=function(e){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e=t(e);var r="",a,u,s,o,i,l,c,f=0;do a=e.charCodeAt(f++),u=e.charCodeAt(f++),s=e.charCodeAt(f++),o=a>>2,i=(3&a)<<4|u>>4,l=(15&u)<<2|s>>6,c=63&s,isNaN(u)?l=c=64:isNaN(s)&&(c=64),r+=n.charAt(o)+n.charAt(i)+n.charAt(l)+n.charAt(c),a=u=s="",o=i=l=c="";while(f<e.length);return r},u=function(){for(var e=arguments[0],n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])}return e},s=function(e,t,a,o){"function"==typeof a&&(o=a,a={}),a.cache=a.cache||!1,a.data=a.data||{},a.headers=a.headers||{},a.jsonp=a.jsonp||!1,a.async=void 0===a.async?!0:a.async;var i=u({accept:"*/*","content-type":"application/x-www-form-urlencoded;charset=UTF-8"},s.headers,a.headers),l;if(l="application/json"===i["content-type"]?JSON.stringify(a.data):r(a.data),"GET"===e){var c=[];if(l&&(c.push(l),l=null),a.cache||c.push("_="+(new Date).getTime()),a.jsonp&&(c.push("callback="+a.jsonp),c.push("jsonp="+a.jsonp)),c=c.join("&"),c.length>1&&(t+=t.indexOf("?")>-1?"&"+c:"?"+c),a.jsonp){var f=document.getElementsByTagName("head")[0],p=document.createElement("script");return p.type="text/javascript",p.src=t,void f.appendChild(p)}}n(function(n,r){if(n)return o(n);r.open(e,t,a.async);for(var u in i)i.hasOwnProperty(u)&&r.setRequestHeader(u,i[u]);r.onreadystatechange=function(){if(4===r.readyState){var e=r.responseText||"";if(!o)return;o(r.status,{text:function(){return e},json:function(){return JSON.parse(e)}})}},r.send(l)})},o={authBasic:function(e,n){s.headers.Authorization="Basic "+a(e+":"+n)},connect:function(e,n,r){return s("CONNECT",e,n,r)},del:function(e,n,r){return s("DELETE",e,n,r)},get:function(e,n,r){return s("GET",e,n,r)},head:function(e,n,r){return s("HEAD",e,n,r)},headers:function(e){s.headers=e||{}},isAllowed:function(e,n,r){this.options(e,function(e,t){r(-1!==t.text().indexOf(n))})},options:function(e,n,r){return s("OPTIONS",e,n,r)},patch:function(e,n,r){return s("PATCH",e,n,r)},post:function(e,n,r){return s("POST",e,n,r)},put:function(e,n,r){return s("PUT",e,n,r)},trace:function(e,n,r){return s("TRACE",e,n,r)}},i=e.type?e.type.toLowerCase():"get";o[i](e.url,e,function(n,r){200===n?e.success(r.json(),n,null):e.error(r.text(),n,null)})}function a(e,n){"function"==typeof e&&(n=e,e={}),e=e||{},R.extend(E,e),delete E.fixLng,"string"==typeof E.ns&&(E.ns={namespaces:[E.ns],defaultNs:E.ns}),"string"==typeof E.fallbackNS&&(E.fallbackNS=[E.fallbackNS]),("string"==typeof E.fallbackLng||"boolean"==typeof E.fallbackLng)&&(E.fallbackLng=[E.fallbackLng]),E.interpolationPrefixEscaped=R.regexEscape(E.interpolationPrefix),E.interpolationSuffixEscaped=R.regexEscape(E.interpolationSuffix),E.lng||(E.lng=R.detectLanguage()),E.lng?E.useCookie&&R.cookie.create(E.cookieName,E.lng,E.cookieExpirationTime,E.cookieDomain):(E.lng=E.fallbackLng[0],E.useCookie&&R.cookie.remove(E.cookieName)),A=R.toLanguages(E.lng),O=A[0],R.log("currentLng set to: "+O);var r=y;e.fixLng&&(r=function(e,n){return n=n||{},n.lng=n.lng||r.lng,y(e,n)},r.lng=O),z.setCurrentLng(O),P&&E.setJqueryExt&&m();var t;if(P&&P.Deferred&&(t=P.Deferred()),!E.resStore){var a=R.toLanguages(E.lng);"string"==typeof E.preload&&(E.preload=[E.preload]);for(var u=0,s=E.preload.length;s>u;u++)for(var o=R.toLanguages(E.preload[u]),i=0,l=o.length;l>i;i++)a.indexOf(o[i])<0&&a.push(o[i]);return b.sync.load(a,E,function(e,a){j=a,C=!0,n&&n(r),t&&t.resolve(r)}),t?t.promise():void 0}return j=E.resStore,C=!0,n&&n(r),t&&t.resolve(r),t?t.promise():void 0}function u(e,n){"string"==typeof e&&(e=[e]);for(var r=0,t=e.length;t>r;r++)E.preload.indexOf(e[r])<0&&E.preload.push(e[r]);return a(n)}function s(e,n,r){"string"!=typeof n?(r=n,n=E.ns.defaultNs):E.ns.namespaces.indexOf(n)<0&&E.ns.namespaces.push(n),j[e]=j[e]||{},j[e][n]=j[e][n]||{},R.extend(j[e][n],r)}function o(e,n){"string"!=typeof n&&(n=E.ns.defaultNs),j[e]=j[e]||{},j[e][n]={}}function i(e){E.ns.defaultNs=e}function l(e,n){c([e],n)}function c(e,n){var r={dynamicLoad:E.dynamicLoad,resGetPath:E.resGetPath,getAsync:E.getAsync,customLoad:E.customLoad,ns:{namespaces:e,defaultNs:""}},t=R.toLanguages(E.lng);"string"==typeof E.preload&&(E.preload=[E.preload]);for(var a=0,u=E.preload.length;u>a;a++)for(var s=R.toLanguages(E.preload[a]),o=0,i=s.length;i>o;o++)t.indexOf(s[o])<0&&t.push(s[o]);for(var l=[],c=0,f=t.length;f>c;c++){var p=!1,m=j[t[c]];if(m)for(var g=0,d=e.length;d>g;g++)m[e[g]]||(p=!0);else p=!0;p&&l.push(t[c])}l.length?b.sync._fetch(l,r,function(r,t){var a=e.length*l.length;R.each(e,function(e,r){E.ns.namespaces.indexOf(r)<0&&E.ns.namespaces.push(r),R.each(l,function(e,u){j[u]=j[u]||{},j[u][r]=t[u][r],a--,0===a&&n&&(E.useLocalStorage&&b.sync._storeLocal(j),n())})})}):n&&n()}function f(e,n,r){return"function"==typeof n?(r=n,n={}):n||(n={}),n.lng=e,a(n,r)}function p(){return O}function m(){function e(e,n,r){if(0!==n.length){var t="text";if(0===n.indexOf("[")){var a=n.split("]");n=a[1],t=a[0].substr(1,a[0].length-1)}n.indexOf(";")===n.length-1&&(n=n.substr(0,n.length-2));var u;if("html"===t)u=E.defaultValueFromContent?P.extend({defaultValue:e.html()},r):r,e.html(P.t(n,u));else if("text"===t)u=E.defaultValueFromContent?P.extend({defaultValue:e.text()},r):r,e.text(P.t(n,u));else if("prepend"===t)u=E.defaultValueFromContent?P.extend({defaultValue:e.html()},r):r,e.prepend(P.t(n,u));else if("append"===t)u=E.defaultValueFromContent?P.extend({defaultValue:e.html()},r):r,e.append(P.t(n,u));else if(0===t.indexOf("data-")){var s=t.substr("data-".length);u=E.defaultValueFromContent?P.extend({defaultValue:e.data(s)},r):r;var o=P.t(n,u);e.data(s,o),e.attr(t,o)}else u=E.defaultValueFromContent?P.extend({defaultValue:e.attr(t)},r):r,e.attr(t,P.t(n,u))}}function n(n,r){var t=n.attr(E.selectorAttr);if(t||"undefined"==typeof t||t===!1||(t=n.text()||n.val()),t){var a=n,u=n.data("i18n-target");if(u&&(a=n.find(u)||n),r||E.useDataAttrOptions!==!0||(r=n.data("i18n-options")),r=r||{},t.indexOf(";")>=0){var s=t.split(";");P.each(s,function(n,t){""!==t&&e(a,t,r)})}else e(a,t,r);E.useDataAttrOptions===!0&&n.data("i18n-options",r)}}P.t=P.t||y,P.fn.TAPi18next=function(e){return this.each(function(){n(P(this),e);var r=P(this).find("["+E.selectorAttr+"]");r.each(function(){n(P(this),e)})})}}function g(e,n,r,t){if(!e)return e;if(t=t||n,e.indexOf(t.interpolationPrefix||E.interpolationPrefix)<0)return e;var a=t.interpolationPrefix?R.regexEscape(t.interpolationPrefix):E.interpolationPrefixEscaped,u=t.interpolationSuffix?R.regexEscape(t.interpolationSuffix):E.interpolationSuffixEscaped,s="HTML"+u;return R.each(n,function(n,o){var i=r?r+E.keyseparator+n:n;"object"==typeof o&&null!==o?e=g(e,o,i,t):t.escapeInterpolation||E.escapeInterpolation?(e=e.replace(new RegExp([a,i,s].join(""),"g"),o),e=e.replace(new RegExp([a,i,u].join(""),"g"),R.escape(o))):e=e.replace(new RegExp([a,i,u].join(""),"g"),o)}),e}function d(e,n){var r=",",t="{",a="}",u=R.extend({},n);for(delete u.postProcess;-1!=e.indexOf(E.reusePrefix)&&(w++,!(w>E.maxRecursion));){var s=e.lastIndexOf(E.reusePrefix),o=e.indexOf(E.reuseSuffix,s)+E.reuseSuffix.length,i=e.substring(s,o),l=i.replace(E.reusePrefix,"").replace(E.reuseSuffix,"");if(-1!=l.indexOf(r)){var c=l.indexOf(r);if(-1!=l.indexOf(t,c)&&-1!=l.indexOf(a,c)){var f=l.indexOf(t,c),p=l.indexOf(a,f)+a.length;try{u=R.extend(u,JSON.parse(l.substring(f,p))),l=l.substring(0,c)}catch(m){}}}var g=k(l,u);e=e.replace(i,g)}return e}function h(e){return e.context&&("string"==typeof e.context||"number"==typeof e.context)}function v(e){return void 0!==e.count&&"string"!=typeof e.count&&1!==e.count}function _(e,n){n=n||{};var r=x(e,n),t=S(e,n);return void 0!==t||t===r}function y(e,n){return"undefined"==typeof n&&(n={}),C?(w=0,k.apply(null,arguments)):(R.log("i18next not finished initialization. you might have called t function before loading resources finished."),n.defaultValue||"")}function x(e,n){return void 0!==n.defaultValue?n.defaultValue:e}function N(){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);return{postProcess:"sprintf",sprintf:e}}function k(e,n){if("undefined"!=typeof n&&null!==n&&"object"!=typeof n?"sprintf"===E.shortcutFunction?n=N.apply(null,arguments):"defaultValue"===E.shortcutFunction&&(n={defaultValue:n}):n=n||{},void 0===e||null===e)return"";"string"==typeof e&&(e=[e]);var r=e[0];if(e.length>1)for(var t=0;t<e.length&&(r=e[t],!_(r,n));t++);var a=x(r,n),u=S(r,n),s=n.lng?R.toLanguages(n.lng):A,o=n.ns||E.ns.defaultNs,i;r.indexOf(E.nsseparator)>-1&&(i=r.split(E.nsseparator),o=i[0],r=i[1]),void 0===u&&E.sendMissing&&(n.lng?H.postMissing(s[0],o,r,a,s):H.postMissing(E.lng,o,r,a,s));var l=n.postProcess||E.postProcess;void 0!==u&&l&&I[l]&&(u=I[l](u,r,n));var c=a;if(a.indexOf(E.nsseparator)>-1&&(i=a.split(E.nsseparator),c=i[1]),c===r&&E.parseMissingKey&&(a=E.parseMissingKey(a)),void 0===u&&(a=g(a,n),a=d(a,n),l&&I[l])){var f=x(r,n);u=I[l](f,r,n)}return void 0!==u?u:a}function S(e,n){n=n||{};var r,t,a=x(e,n),u=A;if(!j)return a;if("cimode"===u[0].toLowerCase())return a;if(n.lng&&(u=R.toLanguages(n.lng),!j[u[0]])){var s=E.getAsync;E.getAsync=!1,b.sync.load(u,E,function(e,n){R.extend(j,n),E.getAsync=s})}var o=n.ns||E.ns.defaultNs;if(e.indexOf(E.nsseparator)>-1){var i=e.split(E.nsseparator);o=i[0],e=i[1]}if(h(n)){r=R.extend({},n),delete r.context,r.defaultValue=E.contextNotFound;var l=o+E.nsseparator+e+"_"+n.context;if(t=y(l,r),t!=E.contextNotFound)return g(t,{context:n.context})}if(v(n)){r=R.extend({},n),delete r.count,r.defaultValue=E.pluralNotFound;var c=o+E.nsseparator+e+E.pluralSuffix,f=z.get(u[0],n.count);if(f>=0?c=c+"_"+f:1===f&&(c=o+E.nsseparator+e),t=y(c,r),t!=E.pluralNotFound)return g(t,{count:n.count,interpolationPrefix:n.interpolationPrefix,interpolationSuffix:n.interpolationSuffix})}for(var p,m=e.split(E.keyseparator),_=0,N=u.length;N>_&&void 0===p;_++){for(var L=u[_],T=0,P=j[L]&&j[L][o];m[T];)P=P&&P[m[T]],T++;if(void 0!==P){var O=Object.prototype.toString.apply(P);if("string"==typeof P)P=g(P,n),P=d(P,n);else if("[object Array]"!==O||E.returnObjectTrees||n.returnObjectTrees){if(null===P&&E.fallbackOnNull===!0)P=void 0;else if(null!==P)if(E.returnObjectTrees||n.returnObjectTrees){if("[object Number]"!==O&&"[object Function]"!==O&&"[object RegExp]"!==O){var w="[object Array]"===O?[]:{};R.each(P,function(r){w[r]=k(o+E.nsseparator+e+E.keyseparator+r,n)}),P=w}}else E.objectTreeKeyHandler&&"function"==typeof E.objectTreeKeyHandler?P=E.objectTreeKeyHandler(e,P,L,o,n):(P="key '"+o+":"+e+" ("+L+")' returned an object instead of string.",R.log(P))}else P=P.join("\n"),P=g(P,n),P=d(P,n);"string"==typeof P&&""===P.trim()&&E.fallbackOnEmpty===!0&&(P=void 0),p=P}}if(void 0===p&&!n.isFallbackLookup&&(E.fallbackToDefaultNS===!0||E.fallbackNS&&E.fallbackNS.length>0))if(n.isFallbackLookup=!0,E.fallbackNS.length){for(var C=0,M=E.fallbackNS.length;M>C;C++)if(p=S(E.fallbackNS[C]+E.nsseparator+e,n)){var F=p.indexOf(E.nsseparator)>-1?p.split(E.nsseparator)[1]:p,D=a.indexOf(E.nsseparator)>-1?a.split(E.nsseparator)[1]:a;if(F!==D)break}}else p=S(e,n);return p}function L(){var e,n=[];if("undefined"!=typeof window&&(!function(){for(var e=window.location.search.substring(1),r=e.split("&"),t=0;t<r.length;t++){var a=r[t].indexOf("=");if(a>0){var u=r[t].substring(0,a),s=r[t].substring(a+1);n[u]=s}}}(),n[E.detectLngQS]&&(e=n[E.detectLngQS])),!e&&"undefined"!=typeof document&&E.useCookie){var r=R.cookie.read(E.cookieName);r&&(e=r)}return e||"undefined"==typeof navigator||(e=navigator.language?navigator.language:navigator.userLanguage),e}Array.prototype.indexOf||(Array.prototype.indexOf=function(e){"use strict";if(null==this)throw new TypeError;var n=Object(this),r=n.length>>>0;if(0===r)return-1;var t=0;if(arguments.length>0&&(t=Number(arguments[1]),t!=t?t=0:0!=t&&t!=1/0&&t!=-(1/0)&&(t=(t>0||-1)*Math.floor(Math.abs(t)))),t>=r)return-1;for(var a=t>=0?t:Math.max(r-Math.abs(t),0);r>a;a++)if(a in n&&n[a]===e)return a;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(e){"use strict";if(null==this)throw new TypeError;var n=Object(this),r=n.length>>>0;if(0===r)return-1;var t=r;arguments.length>1&&(t=Number(arguments[1]),t!=t?t=0:0!=t&&t!=1/0&&t!=-(1/0)&&(t=(t>0||-1)*Math.floor(Math.abs(t))));for(var a=t>=0?Math.min(t,r-1):r-Math.abs(t);a>=0;a--)if(a in n&&n[a]===e)return a;return-1}),"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")});var T=this,P=T.jQuery||T.Zepto,j={},O,w=0,A=[],C=!1;"undefined"!=typeof module&&module.exports?module.exports=b:(P&&(P.TAPi18next=P.TAPi18next||b),T.TAPi18next=T.TAPi18next||b);var E={lng:void 0,load:"all",preload:[],lowerCaseLng:!1,returnObjectTrees:!1,fallbackLng:["dev"],fallbackNS:[],detectLngQS:"setLng",ns:"translation",fallbackOnNull:!0,fallbackOnEmpty:!1,fallbackToDefaultNS:!1,nsseparator:":",keyseparator:".",selectorAttr:"data-i18n",debug:!1,resGetPath:"locales/__lng__/__ns__.json",resPostPath:"locales/add/__lng__/__ns__",getAsync:!0,postAsync:!0,resStore:void 0,useLocalStorage:!1,localStorageExpirationTime:6048e5,dynamicLoad:!1,sendMissing:!1,sendMissingTo:"fallback",sendType:"POST",interpolationPrefix:"__",interpolationSuffix:"__",reusePrefix:"$t(",reuseSuffix:")",pluralSuffix:"_plural",pluralNotFound:["plural_not_found",Math.random()].join(""),contextNotFound:["context_not_found",Math.random()].join(""),escapeInterpolation:!1,setJqueryExt:!1,defaultValueFromContent:!0,useDataAttrOptions:!1,cookieExpirationTime:void 0,useCookie:!0,cookieName:"TAPi18next",cookieDomain:void 0,objectTreeKeyHandler:void 0,postProcess:["sprintf"],parseMissingKey:void 0,shortcutFunction:"sprintf"},M={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},F={create:function(e,n,r,t){var a;if(r){var u=new Date;u.setTime(u.getTime()+60*r*1e3),a="; expires="+u.toGMTString()}else a="";t=t?"domain="+t+";":"",document.cookie=e+"="+n+a+";"+t+"path=/"},read:function(e){for(var n=e+"=",r=document.cookie.split(";"),t=0;t<r.length;t++){for(var a=r[t];" "==a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(n))return a.substring(n.length,a.length)}return null},remove:function(e){this.create(e,"",-1)}},D={create:function(e,n,r,t){},read:function(e){return null},remove:function(e){}},R={extend:P?P.extend:e,each:P?P.each:n,ajax:P?P.ajax:"undefined"!=typeof document?t:function(){},cookie:"undefined"!=typeof document?F:D,detectLanguage:L,escape:r,log:function(e){E.debug&&"undefined"!=typeof console&&console.log(e)},toLanguages:function(e){var n=[];if("string"==typeof e&&e.indexOf("-")>-1){var r=e.split("-");e=E.lowerCaseLng?r[0].toLowerCase()+"-"+r[1].toLowerCase():r[0].toLowerCase()+"-"+r[1].toUpperCase(),"unspecific"!==E.load&&n.push(e),"current"!==E.load&&n.push(r[0])}else n.push(e);for(var t=0;t<E.fallbackLng.length;t++)-1===n.indexOf(E.fallbackLng[t])&&E.fallbackLng[t]&&n.push(E.fallbackLng[t]);return n},regexEscape:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}};R.applyReplacement=g;var H={load:function(e,n,r){n.useLocalStorage?H._loadLocal(e,n,function(t,a){for(var u=[],s=0,o=e.length;o>s;s++)a[e[s]]||u.push(e[s]);u.length>0?H._fetch(u,n,function(e,n){R.extend(a,n),H._storeLocal(n),r(null,a)}):r(null,a)}):H._fetch(e,n,function(e,n){r(null,n)})},_loadLocal:function(e,n,r){var t={},a=(new Date).getTime();if(window.localStorage){var u=e.length;R.each(e,function(e,s){var o=window.localStorage.getItem("res_"+s);o&&(o=JSON.parse(o),o.i18nStamp&&o.i18nStamp+n.localStorageExpirationTime>a&&(t[s]=o)),u--,0===u&&r(null,t)})}},_storeLocal:function(e){if(window.localStorage)for(var n in e)e[n].i18nStamp=(new Date).getTime(),window.localStorage.setItem("res_"+n,JSON.stringify(e[n]))},_fetch:function(e,n,r){var t=n.ns,a={};if(n.dynamicLoad){var u=function(e,n){r(null,n)};if("function"==typeof n.customLoad)n.customLoad(e,t.namespaces,n,u);else{var s=g(n.resGetPath,{lng:e.join("+"),ns:t.namespaces.join("+")});R.ajax({url:s,success:function(e,n,r){R.log("loaded: "+s),u(null,e)},error:function(e,n,r){R.log("failed loading: "+s),u("failed loading resource.json error: "+r)},dataType:"json",async:n.getAsync})}}else{var o=t.namespaces.length*e.length,i;R.each(t.namespaces,function(t,u){R.each(e,function(e,t){var s=function(e,n){e&&(i=i||[],i.push(e)),a[t]=a[t]||{},a[t][u]=n,o--,0===o&&r(i,a)};"function"==typeof n.customLoad?n.customLoad(t,u,n,s):H._fetchOne(t,u,n,s)})})}},_fetchOne:function(e,n,r,t){var a=g(r.resGetPath,{lng:e,ns:n});R.ajax({url:a,success:function(e,n,r){R.log("loaded: "+a),t(null,e)},error:function(e,n,r){if(n&&200==n||e&&e.status&&200==e.status)R.log("There is a typo in: "+a);else if(n&&404==n||e&&e.status&&404==e.status)R.log("Does not exist: "+a);else{var u=n?n:e&&e.status?e.status:null;R.log(u+" when loading "+a)}t(r,{})},dataType:"json",async:r.getAsync})},postMissing:function(e,n,r,t,a){var u={};u[r]=t;var s=[];if("fallback"===E.sendMissingTo&&E.fallbackLng[0]!==!1)for(var o=0;o<E.fallbackLng.length;o++)s.push({lng:E.fallbackLng[o],url:g(E.resPostPath,{lng:E.fallbackLng[o],ns:n})});else if("current"===E.sendMissingTo||"fallback"===E.sendMissingTo&&E.fallbackLng[0]===!1)s.push({lng:e,url:g(E.resPostPath,{lng:e,ns:n})});else if("all"===E.sendMissingTo)for(var o=0,i=a.length;i>o;o++)s.push({lng:a[o],url:g(E.resPostPath,{lng:a[o],ns:n})});for(var l=0,c=s.length;c>l;l++){var f=s[l];R.ajax({url:f.url,type:E.sendType,data:u,success:function(e,a,u){R.log("posted missing key '"+r+"' to: "+f.url);for(var s=r.split("."),o=0,i=j[f.lng][n];s[o];)i=o===s.length-1?i[s[o]]=t:i[s[o]]=i[s[o]]||{},o++},error:function(e,n,t){R.log("failed posting missing key '"+r+"' to: "+f.url)},dataType:"json",async:E.postAsync})}}},z={rules:{ach:{name:"Acholi",numbers:[1,2],plurals:function(e){return Number(e>1)}},af:{name:"Afrikaans",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ak:{name:"Akan",numbers:[1,2],plurals:function(e){return Number(e>1)}},am:{name:"Amharic",numbers:[1,2],plurals:function(e){return Number(e>1)}},an:{name:"Aragonese",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ar:{name:"Arabic",numbers:[0,1,2,3,11,100],plurals:function(e){return Number(0===e?0:1==e?1:2==e?2:e%100>=3&&10>=e%100?3:e%100>=11?4:5)}},arn:{name:"Mapudungun",numbers:[1,2],plurals:function(e){return Number(e>1)}},ast:{name:"Asturian",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ay:{name:"Aymará",numbers:[1],plurals:function(e){return 0}},az:{name:"Azerbaijani",numbers:[1,2],plurals:function(e){return Number(1!=e)}},be:{name:"Belarusian",numbers:[1,2,5],plurals:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)}},bg:{name:"Bulgarian",numbers:[1,2],plurals:function(e){return Number(1!=e)}},bn:{name:"Bengali",numbers:[1,2],plurals:function(e){return Number(1!=e)}},bo:{name:"Tibetan",numbers:[1],plurals:function(e){return 0}},br:{name:"Breton",numbers:[1,2],plurals:function(e){return Number(e>1)}},bs:{name:"Bosnian",numbers:[1,2,5],plurals:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)}},ca:{name:"Catalan",numbers:[1,2],plurals:function(e){return Number(1!=e)}},cgg:{name:"Chiga",numbers:[1],plurals:function(e){return 0}},cs:{name:"Czech",numbers:[1,2,5],plurals:function(e){return Number(1==e?0:e>=2&&4>=e?1:2)}},csb:{name:"Kashubian",numbers:[1,2,5],plurals:function(e){return Number(1==e?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)}},cy:{name:"Welsh",numbers:[1,2,3,8],plurals:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)}},da:{name:"Danish",numbers:[1,2],plurals:function(e){return Number(1!=e)}},de:{name:"German",numbers:[1,2],plurals:function(e){return Number(1!=e)}},dz:{name:"Dzongkha",numbers:[1],plurals:function(e){return 0}},el:{name:"Greek",numbers:[1,2],plurals:function(e){return Number(1!=e)}},en:{name:"English",numbers:[1,2],plurals:function(e){return Number(1!=e)}},eo:{name:"Esperanto",numbers:[1,2],plurals:function(e){return Number(1!=e)}},es:{name:"Spanish",numbers:[1,2],plurals:function(e){return Number(1!=e)}},es_ar:{name:"Argentinean Spanish",numbers:[1,2],plurals:function(e){return Number(1!=e)}},et:{name:"Estonian",numbers:[1,2],plurals:function(e){return Number(1!=e)}},eu:{name:"Basque",numbers:[1,2],plurals:function(e){return Number(1!=e)}},fa:{name:"Persian",numbers:[1],plurals:function(e){return 0}},fi:{name:"Finnish",numbers:[1,2],plurals:function(e){return Number(1!=e)}},fil:{name:"Filipino",numbers:[1,2],plurals:function(e){return Number(e>1)}},fo:{name:"Faroese",numbers:[1,2],plurals:function(e){return Number(1!=e)}},fr:{name:"French",numbers:[1,2],plurals:function(e){return Number(e>1)}},fur:{name:"Friulian",numbers:[1,2],plurals:function(e){return Number(1!=e)}},fy:{name:"Frisian",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ga:{name:"Irish",numbers:[1,2,3,7,11],plurals:function(e){return Number(1==e?0:2==e?1:7>e?2:11>e?3:4)}},gd:{name:"Scottish Gaelic",numbers:[1,2,3,20],plurals:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&20>e?2:3)}},gl:{name:"Galician",numbers:[1,2],plurals:function(e){return Number(1!=e)}},gu:{name:"Gujarati",numbers:[1,2],plurals:function(e){return Number(1!=e)}},gun:{name:"Gun",numbers:[1,2],plurals:function(e){return Number(e>1)}},ha:{name:"Hausa",numbers:[1,2],plurals:function(e){return Number(1!=e)}},he:{name:"Hebrew",numbers:[1,2],plurals:function(e){return Number(1!=e)}},hi:{name:"Hindi",numbers:[1,2],plurals:function(e){return Number(1!=e)}},hr:{name:"Croatian",numbers:[1,2,5],plurals:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)}},hu:{name:"Hungarian",numbers:[1,2],plurals:function(e){return Number(1!=e)}},hy:{name:"Armenian",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ia:{name:"Interlingua",numbers:[1,2],plurals:function(e){return Number(1!=e)}},id:{name:"Indonesian",numbers:[1],plurals:function(e){return 0}},is:{name:"Icelandic",numbers:[1,2],plurals:function(e){return Number(e%10!=1||e%100==11)}},it:{name:"Italian",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ja:{name:"Japanese",numbers:[1],plurals:function(e){return 0}},jbo:{name:"Lojban",numbers:[1],plurals:function(e){return 0}},jv:{name:"Javanese",numbers:[0,1],plurals:function(e){return Number(0!==e)}},ka:{name:"Georgian",numbers:[1],plurals:function(e){return 0}},kk:{name:"Kazakh",numbers:[1],plurals:function(e){return 0}},km:{name:"Khmer",numbers:[1],plurals:function(e){return 0}},kn:{name:"Kannada",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ko:{name:"Korean",numbers:[1],plurals:function(e){return 0}},ku:{name:"Kurdish",numbers:[1,2],plurals:function(e){return Number(1!=e)}},kw:{name:"Cornish",numbers:[1,2,3,4],plurals:function(e){return Number(1==e?0:2==e?1:3==e?2:3)}},ky:{name:"Kyrgyz",numbers:[1],plurals:function(e){return 0}},lb:{name:"Letzeburgesch",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ln:{name:"Lingala",numbers:[1,2],plurals:function(e){return Number(e>1)}},lo:{name:"Lao",numbers:[1],plurals:function(e){return 0}},lt:{name:"Lithuanian",numbers:[1,2,10],plurals:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(10>e%100||e%100>=20)?1:2)}},lv:{name:"Latvian",numbers:[1,2,0],plurals:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)}},mai:{name:"Maithili",numbers:[1,2],plurals:function(e){return Number(1!=e)}},mfe:{name:"Mauritian Creole",numbers:[1,2],plurals:function(e){return Number(e>1)}},mg:{name:"Malagasy",numbers:[1,2],plurals:function(e){return Number(e>1)}},mi:{name:"Maori",numbers:[1,2],plurals:function(e){return Number(e>1)}},mk:{name:"Macedonian",numbers:[1,2],plurals:function(e){return Number(1==e||e%10==1?0:1)}},ml:{name:"Malayalam",numbers:[1,2],plurals:function(e){return Number(1!=e)}},mn:{name:"Mongolian",numbers:[1,2],plurals:function(e){return Number(1!=e)}},mnk:{name:"Mandinka",numbers:[0,1,2],plurals:function(e){return Number(0==e?0:1==e?1:2)}},mr:{name:"Marathi",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ms:{name:"Malay",numbers:[1],plurals:function(e){return 0}},mt:{name:"Maltese",numbers:[1,2,11,20],plurals:function(e){return Number(1==e?0:0===e||e%100>1&&11>e%100?1:e%100>10&&20>e%100?2:3)}},nah:{name:"Nahuatl",numbers:[1,2],plurals:function(e){return Number(1!=e)}},nap:{name:"Neapolitan",numbers:[1,2],plurals:function(e){return Number(1!=e)}},nb:{name:"Norwegian Bokmal",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ne:{name:"Nepali",numbers:[1,2],plurals:function(e){return Number(1!=e)}},nl:{name:"Dutch",numbers:[1,2],plurals:function(e){return Number(1!=e)}},nn:{name:"Norwegian Nynorsk",numbers:[1,2],plurals:function(e){return Number(1!=e)}},no:{name:"Norwegian",numbers:[1,2],plurals:function(e){return Number(1!=e)}},nso:{name:"Northern Sotho",numbers:[1,2],plurals:function(e){return Number(1!=e)}},oc:{name:"Occitan",numbers:[1,2],plurals:function(e){return Number(e>1)}},or:{name:"Oriya",numbers:[2,1],plurals:function(e){return Number(1!=e)}},pa:{name:"Punjabi",numbers:[1,2],plurals:function(e){return Number(1!=e)}},pap:{name:"Papiamento",numbers:[1,2],plurals:function(e){return Number(1!=e)}},pl:{name:"Polish",numbers:[1,2,5],plurals:function(e){return Number(1==e?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)}},pms:{name:"Piemontese",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ps:{name:"Pashto",numbers:[1,2],plurals:function(e){return Number(1!=e)}},pt:{name:"Portuguese",numbers:[1,2],plurals:function(e){return Number(1!=e)}},pt_br:{name:"Brazilian Portuguese",numbers:[1,2],plurals:function(e){return Number(1!=e)}},rm:{name:"Romansh",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ro:{name:"Romanian",numbers:[1,2,20],plurals:function(e){return Number(1==e?0:0===e||e%100>0&&20>e%100?1:2)}},ru:{name:"Russian",numbers:[1,2,5],plurals:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)}},sah:{name:"Yakut",numbers:[1],plurals:function(e){return 0}},sco:{name:"Scots",numbers:[1,2],plurals:function(e){return Number(1!=e)}},se:{name:"Northern Sami",numbers:[1,2],plurals:function(e){return Number(1!=e)}},si:{name:"Sinhala",numbers:[1,2],plurals:function(e){return Number(1!=e)}},sk:{name:"Slovak",numbers:[1,2,5],plurals:function(e){return Number(1==e?0:e>=2&&4>=e?1:2)}},sl:{name:"Slovenian",numbers:[5,1,2,3],plurals:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)}},so:{name:"Somali",numbers:[1,2],plurals:function(e){return Number(1!=e)}},son:{name:"Songhay",numbers:[1,2],plurals:function(e){return Number(1!=e)}},sq:{name:"Albanian",numbers:[1,2],plurals:function(e){return Number(1!=e)}},sr:{name:"Serbian",numbers:[1,2,5],plurals:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)}},su:{name:"Sundanese",numbers:[1],plurals:function(e){return 0}},sv:{name:"Swedish",numbers:[1,2],plurals:function(e){return Number(1!=e)}},sw:{name:"Swahili",numbers:[1,2],plurals:function(e){return Number(1!=e)}},ta:{name:"Tamil",numbers:[1,2],plurals:function(e){return Number(1!=e)}},te:{name:"Telugu",numbers:[1,2],plurals:function(e){return Number(1!=e)}},tg:{name:"Tajik",numbers:[1,2],plurals:function(e){return Number(e>1)}},th:{name:"Thai",numbers:[1],plurals:function(e){return 0}},ti:{name:"Tigrinya",numbers:[1,2],plurals:function(e){return Number(e>1)}},tk:{name:"Turkmen",numbers:[1,2],plurals:function(e){return Number(1!=e)}},tr:{name:"Turkish",numbers:[1,2],plurals:function(e){return Number(e>1)}},tt:{name:"Tatar",numbers:[1],plurals:function(e){return 0}},ug:{name:"Uyghur",numbers:[1],plurals:function(e){return 0}},uk:{name:"Ukrainian",numbers:[1,2,5],plurals:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2)}},ur:{name:"Urdu",numbers:[1,2],plurals:function(e){return Number(1!=e)}},uz:{name:"Uzbek",numbers:[1,2],plurals:function(e){return Number(e>1)}},vi:{name:"Vietnamese",numbers:[1],plurals:function(e){return 0}},wa:{name:"Walloon",numbers:[1,2],plurals:function(e){return Number(e>1)}},wo:{name:"Wolof",numbers:[1],plurals:function(e){return 0}},yo:{name:"Yoruba",numbers:[1,2],plurals:function(e){return Number(1!=e)}},zh:{name:"Chinese",numbers:[1],plurals:function(e){return 0}}},addRule:function(e,n){z.rules[e]=n},setCurrentLng:function(e){if(!z.currentRule||z.currentRule.lng!==e){var n=e.split("-");z.currentRule={lng:e,rule:z.rules[n[0]]}}},get:function(e,n){function r(n,r){var t;if(t=z.currentRule&&z.currentRule.lng===e?z.currentRule.rule:z.rules[n]){var a=t.plurals(r),u=t.numbers[a];return 2===t.numbers.length&&1===t.numbers[0]&&(2===u?u=-1:1===u&&(u=1)),u}return 1===r?"1":"-1"}var t=e.split("-");return r(t[0],n)}},I={},V=function(e,n){I[e]=n},B=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function n(e,n){for(var r=[];n>0;r[--n]=e);return r.join("")}var r=function(){return r.cache.hasOwnProperty(arguments[0])||(r.cache[arguments[0]]=r.parse(arguments[0])),r.format.call(null,r.cache[arguments[0]],arguments)};return r.format=function(r,t){var a=1,u=r.length,s="",o,i=[],l,c,f,p,m,g;for(l=0;u>l;l++)if(s=e(r[l]),"string"===s)i.push(r[l]);else if("array"===s){if(f=r[l],f[2])for(o=t[a],c=0;c<f[2].length;c++){if(!o.hasOwnProperty(f[2][c]))throw B('[sprintf] property "%s" does not exist',f[2][c]);o=o[f[2][c]]}else o=f[1]?t[f[1]]:t[a++];if(/[^s]/.test(f[8])&&"number"!=e(o))throw B("[sprintf] expecting number but found %s",e(o));switch(f[8]){case"b":o=o.toString(2);break;case"c":o=String.fromCharCode(o);break;case"d":o=parseInt(o,10);break;case"e":o=f[7]?o.toExponential(f[7]):o.toExponential();break;case"f":o=f[7]?parseFloat(o).toFixed(f[7]):parseFloat(o);break;case"o":o=o.toString(8);break;case"s":o=(o=String(o))&&f[7]?o.substring(0,f[7]):o;break;case"u":o=Math.abs(o);break;case"x":o=o.toString(16);break;case"X":o=o.toString(16).toUpperCase()}o=/[def]/.test(f[8])&&f[3]&&o>=0?"+"+o:o,m=f[4]?"0"==f[4]?"0":f[4].charAt(1):" ",g=f[6]-String(o).length,p=f[6]?n(m,g):"",i.push(f[5]?o+p:p+o)}return i.join("")},r.cache={},r.parse=function(e){for(var n=e,r=[],t=[],a=0;n;){if(null!==(r=/^[^\x25]+/.exec(n)))t.push(r[0]);else if(null!==(r=/^\x25{2}/.exec(n)))t.push("%");else{if(null===(r=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(n)))throw"[sprintf] huh?";
|
||
|
||
if(r[2]){a|=1;var u=[],s=r[2],o=[];if(null===(o=/^([a-z_][a-z_\d]*)/i.exec(s)))throw"[sprintf] huh?";for(u.push(o[1]);""!==(s=s.substring(o[0].length));)if(null!==(o=/^\.([a-z_][a-z_\d]*)/i.exec(s)))u.push(o[1]);else{if(null===(o=/^\[(\d+)\]/.exec(s)))throw"[sprintf] huh?";u.push(o[1])}r[2]=u}else a|=2;if(3===a)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";t.push(r)}n=n.substring(r[0].length)}return t},r}(),G=function(e,n){return n.unshift(e),B.apply(null,n)};V("sprintf",function(e,n,r){return r.sprintf?"[object Array]"===Object.prototype.toString.apply(r.sprintf)?G(e,r.sprintf):"object"==typeof r.sprintf?B(e,r.sprintf):e:e}),b.init=a,b.setLng=f,b.preload=u,b.addResourceBundle=s,b.removeResourceBundle=o,b.loadNamespace=l,b.loadNamespaces=c,b.setDefaultNamespace=i,b.t=y,b.translate=y,b.exists=_,b.detectLanguage=R.detectLanguage,b.pluralExtensions=z,b.sync=H,b.functions=R,b.lng=p,b.addPostProcessor=V,b.options=E}()}.call(this),function(){b.init({resStore:{},fallbackLng:d.fallback_language,useCookie:!1})}.call(this),function(){h="object"==typeof h?h:{};var e=h;e.helpers={}}.call(this),h="object"==typeof h?h:{};var _=h,y;y=d.fallback_language,v=function(){return r.call(this),this._fallback_language=y,this._language_changed_tracker=new a.Dependency,this._loaded_languages=[y],this.conf=null,this.packages={},this.languages_names={},this.translations={},n.isClient&&(s.set(this._loaded_lang_session_key,null),this._languageSpecificTranslators={},this._languageSpecificTranslatorsTrackers={}),n.isServer&&(this.server_translators={},n.startup(function(e){return function(){return e._enabled()?e._registerHTTPMethod():void 0}}(this))),this.__=this._getPackageI18nextProxy(d.project_translations_domain),b.setLng(y),this},t.inherits(v,r),e.extend(v.prototype,{_loaded_lang_session_key:"TAPi18n::loaded_lang",_enable:function(e){return this.conf=e,this._onceEnabled()},_onceEnabled:function(){},_enabled:function(){return null!=this.conf},_getPackageDomain:function(e){return e.replace(/:/g,"-")},addResourceBundle:function(e,n,r){return b.addResourceBundle(e,this._getPackageDomain(n),r)},_getSpecificLangTranslator:function(e){var n,r;return n=b.lng(),r=null,b.setLng(e,{fixLng:!0},function(e){return function(e){return r=e}}(this)),b.setLng(n),r},_getProjectLanguages:function(){return this._enabled()?e.isArray(this.conf.supported_languages)?e.union([this._fallback_language],this.conf.supported_languages):e.keys(this.languages_names):[this._fallback_language]},getLanguages:function(){var e,n,r,t,a;if(!this._enabled())return null;for(r={},a=this._getProjectLanguages(),e=0,t=a.length;t>e;e++)n=a[e],r[n]={name:this.languages_names[n][1],en:this.languages_names[n][0]};return r},_loadLangFileObject:function(n,r){var t,a,u,s;s=[];for(a in r)t=r[a],t=e.extend({},t,(null!=(u=this._loadTranslations_cache[n])?u[a]:void 0)||{}),s.push(this.addResourceBundle(n,a,t));return s},_loadTranslations_cache:{},loadTranslations:function(r,t){var a,u,s,o;u=this._getProjectLanguages(),s=[];for(a in r)o=r[a],null==this._loadTranslations_cache[a]&&(this._loadTranslations_cache[a]={}),null==this._loadTranslations_cache[a][t]&&(this._loadTranslations_cache[a][t]={}),e.extend(this._loadTranslations_cache[a][t],o),this.addResourceBundle(a,t,o),s.push(n.isClient&&this.getLanguage()===a?this._language_changed_tracker.changed():void 0);return s}}),h="object"==typeof h?h:{};var _=h,x=[].indexOf||function(e){for(var n=0,r=this.length;r>n;n++)if(n in this&&this[n]===e)return n;return-1},N=[].slice;e.extend(v.prototype,{_languageSpecificTranslators:null,_languageSpecificTranslatorsTrackers:null,_getLanguageFilePath:function(e){var r;return this._enabled()?(r=null!=this.conf.cdn_path?this.conf.cdn_path:this.conf.i18n_files_route,r=r.replace(/\/$/,""),n.isCordova&&"/"===r[0]&&(r=n.absoluteUrl().replace(/\/+$/,"")+r),r+"/"+e+".json"):null},_loadLanguage:function(e){var n,r,t,a,u;return r=new o.Deferred,this._enabled()?(u=this._getProjectLanguages(),x.call(u,e)>=0?x.call(this._loaded_languages,e)<0?(a=function(n){return function(){var t;return t=o.getJSON(n._getLanguageFilePath(e)),t.done(function(t){return n._loadLangFileObject(e,t),n._loaded_languages.push(e),r.resolve()}),t.fail(function(n,t){return r.reject("Couldn't load language '"+e+"' JSON: "+t)})}}(this),t=x.call(e,"-")>=0?e.replace(/-.*/,""):y,e!==y&&x.call(u,t)>=0?(n=this._loadLanguage(t),n.done(function(e){return function(){return a()}}(this)),n.fail(function(e){return function(e){return r.reject("Loading process failed since dependency language '"+t+"' failed to load: "+e)}}(this))):a()):r.resolve():r.reject(["Language "+e+" is not supported"]),r.promise()):r.reject("tap-i18n is not enabled in the project level, check tap-i18n README")},_registerHelpers:function(n,r){var t,a,u;return a=this._getPackageI18nextProxy(n!==d.project_translations_domain?this.packages[n].namespace:d.project_translations_domain),u=function(){var n,r,t;return r=arguments[0],n=2<=arguments.length?N.call(arguments,1):[],t=n.pop().hash,e.isEmpty(n)||(t.sprintf=n),a(r,t)},n===d.project_translations_domain?(f.registerHelper(this.conf.helper_name,u),f.registerHelper("languageTag",function(e){return function(){return e.getLanguage()}}(this))):null!=l[r]&&null!=l[r].helpers?(t={},t[this.packages[n].helper_name]=u,l[r].helpers(t)):void 0},_getRegisterHelpersProxy:function(e){return function(n){return function(r){return n._registerHelpers(e,r)}}(this)},_prepareLanguageSpecificTranslator:function(e){var n;return n=(new o.Deferred).resolve().promise(),e in this._languageSpecificTranslatorsTrackers?n:(this._languageSpecificTranslatorsTrackers[e]=new a.Dependency,e in this._languageSpecificTranslators||(n=this._loadLanguage(e).done(function(n){return function(){return n._languageSpecificTranslators[e]=n._getSpecificLangTranslator(e),n._languageSpecificTranslatorsTrackers[e].changed()}}(this))),n)},_getPackageI18nextProxy:function(e){return function(n){return function(r,t,a){return null==a&&(a=null),null!=(null!=t?t.lang:void 0)&&null==(null!=t?t.lng:void 0)&&(t.lng=t.lang),null!=(null!=t?t.lng:void 0)&&null==a&&(a=t.lng,delete t.lng),null!=a?(n._prepareLanguageSpecificTranslator(a),n._languageSpecificTranslatorsTrackers[a].depend(),a in n._languageSpecificTranslators?n._languageSpecificTranslators[a](v._getPackageDomain(e)+":"+r,t):b.t(v._getPackageDomain(e)+":"+r,t)):(n._language_changed_tracker.depend(),b.t(v._getPackageDomain(e)+":"+r,t))}}(this)},_onceEnabled:function(){return this._registerHelpers(d.project_translations_domain)},setLanguage:function(e){var n;return n=this,this._loadLanguage(e).then(function(n){return function(){return b.setLng(e),n._language_changed_tracker.changed(),s.set(n._loaded_lang_session_key,e)}}(this))},getLanguage:function(){var e;return this._enabled()?(e=s.get(this._loaded_lang_session_key),null!=e?e:this._fallback_language):null}}),h="object"==typeof h?h:{};var _=h;v=new v,"undefined"==typeof Package&&(Package={}),Package["tap:i18n"]={TAPi18next:b,TAPi18n:v}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,o=Package["rate-limit"].RateLimiter,a=Package["reactive-var"].ReactiveVar,s=Package["reactive-dict"].ReactiveDict,n=Package.ecmascript.ECMAScript,r=Package.random.Random,i=Package.check.check,_=Package.check.Match,l=Package.tracker.Tracker,c=Package.tracker.Deps,u=Package["ddp-rate-limiter"].DDPRateLimiter,d=Package.underscore._,m=Package.mongo.Mongo,g=Package["underscorestring:underscore.string"].s,p=Package["matb33:collection-hooks"].CollectionHooks,h=Package["service-configuration"].ServiceConfiguration,f=Package["rocketchat:streamer"].Streamer,y=Package["rocketchat:logger"].Logger,v=Package.templating.Template,b=Package["kadira:flow-router"].FlowRouter,w=Package["tap:i18n"].TAPi18next,A=Package["tap:i18n"].TAPi18n,S=Package["babel-runtime"].babelHelpers,k=Package["ecmascript-runtime"].Symbol,P=Package["ecmascript-runtime"].Map,U=Package["ecmascript-runtime"].Set,D=Package.promise.Promise,L=Package.blaze.Blaze,M=Package.blaze.UI,C=Package.blaze.Handlebars,T=Package.spacebars.Spacebars,R=Package.htmljs.HTML,I,E,O;(function(){I="object"==typeof I?I:{};var e=I;E={models:{}}}).call(this),function(){I="object"==typeof I?I:{};var t=I;E.settings={callbacks:{},ts:new Date,get:function(t){var o;return null!=(o=e.settings)?o[t]:void 0},get:function(t,o){var a,s,n;return null==o?null!=(n=e.settings)?n[t]:void 0:(E.settings.onload(t,o),null!=(null!=(a=e.settings)?a[t]:void 0)?o(t,null!=(s=e.settings)?s[t]:void 0):void 0)},set:function(t,o,a){return e.call("saveSetting",t,o,a)},batchSet:function(t,o){var a,s;return s=function(t){return function(o){return e.call("saveSetting",t._id,t.value,o)}},a=d.map(t,function(e){return s(e)}),d(a).reduceRight(d.wrap,function(e,t){return o(e,t)})()},load:function(e,t,o){var a,s,n,r,i,_,l,c;if(null!=E.settings.callbacks[e])for(_=E.settings.callbacks[e],s=0,r=_.length;r>s;s++)(a=_[s])(e,t,o);if(null!=E.settings.callbacks["*"]){for(l=E.settings.callbacks["*"],c=[],n=0,i=l.length;i>n;n++)a=l[n],c.push(a(e,t,o));return c}},onload:function(e,t){var o,a,s,n,r,i;for(n=[].concat(e),i=[],a=0,r=n.length;r>a;a++)s=n[a],null==(o=E.settings.callbacks)[s]&&(o[s]=[]),i.push(E.settings.callbacks[s].push(t));return i}}}.call(this),function(){I="object"==typeof I?I:{};var t=I;E.settings.get("Log_Package",function(e,t){return"undefined"!=typeof LoggerManager&&null!==LoggerManager?LoggerManager.showPackage=t:void 0}),E.settings.get("Log_File",function(e,t){return"undefined"!=typeof LoggerManager&&null!==LoggerManager?LoggerManager.showFileAndLine=t:void 0}),E.settings.get("Log_Level",function(t,o){return null!=o?("undefined"!=typeof LoggerManager&&null!==LoggerManager&&(LoggerManager.logLevel=parseInt(o)),e.setTimeout(function(){return"undefined"!=typeof LoggerManager&&null!==LoggerManager?LoggerManager.enable(!0):void 0},200)):void 0})}.call(this),function(){I="object"==typeof I?I:{};var t=I;E.callbacks={},E.callbacks.showTime=!1,E.callbacks.priority={HIGH:-1e3,MEDIUM:0,LOW:1e3},E.callbacks.add=function(e,t,o,a){var s,n,i,_,l,c;for(null==o&&(o=E.callbacks.priority.MEDIUM),d.isNumber(o)||(o=E.callbacks.priority.MEDIUM),t.priority=o,t.id=a||r.id(),null==(s=E.callbacks)[e]&&(s[e]=[]),E.callbacks.showTime===!0&&(i=new Error,t.stack=i.stack),c=E.callbacks[e],_=0,l=c.length;l>_;_++)if(n=c[_],n.id===t.id)return;E.callbacks[e].push(t)},E.callbacks.remove=function(e,t){E.callbacks[e]=d.reject(E.callbacks[e],function(e){return e.id===t})},E.callbacks.run=function(e,t,o){var a;return a=E.callbacks[e],(null!=a?a.length:void 0)?d.sortBy(a,function(e){return e.priority||E.callbacks.priority.MEDIUM}).reduce(function(t,a){var s,n;return E.callbacks.showTime===!0&&(n=Date.now()),s=a(t,o),E.callbacks.showTime===!0&&(console.log(e,Date.now()-n),console.log(a.stack.split("\n")[2])),s},t):t},E.callbacks.runAsync=function(t,o,a){var s;return s=E.callbacks[t],e.isServer&&(null!=s?s.length:void 0)?void e.defer(function(){d.sortBy(s,function(e){return e.priority||E.callbacks.priority.MEDIUM}).forEach(function(e){e(o,a)})}):o}}.call(this),function(){E.fileUploadMediaWhiteList=function(){var e=E.settings.get("FileUpload_MediaTypeWhiteList");if(e&&"*"!==e)return d.map(e.split(","),function(e){return e.trim()})},E.fileUploadIsValidContentType=function(e){var t,o,a;return t=E.fileUploadMediaWhiteList(),!t||d.contains(t,e)?!0:(o="/*",a=d.filter(t,function(e){return e.indexOf(o)>0}),d.contains(a,e.replace(/(\/.*)$/,o))?!0:!1)}}.call(this),function(){I="object"==typeof I?I:{};var t=I;E.promises={},E.promises.priority={HIGH:-1e3,MEDIUM:0,LOW:1e3},E.promises.add=function(e,t,o,a){var s,n,i,_,l;for(null==o&&(o=E.promises.priority.MEDIUM),d.isNumber(o)||(o=E.promises.priority.MEDIUM),t.priority=o,t.id=a||r.id(),null==(s=E.promises)[e]&&(s[e]=[]),l=E.promises[e],i=0,_=l.length;_>i;i++)if(n=l[i],n.id===t.id)return;E.promises[e].push(t)},E.promises.remove=function(e,t){E.promises[e]=d.reject(E.promises[e],function(e){return e.id===t})},E.promises.run=function(e,t,o){var a;return a=E.promises[e],(null!=a?a.length:void 0)?(a=d.sortBy(a,function(e){return e.priority||E.promises.priority.MEDIUM}),a.reduce(function(e,t){return new D(function(a,s){return e.then(function(e){return t(e,o).then(a,s)})})},D.resolve(t))):D.resolve(t)},E.promises.runAsync=function(t,o,a){var s;return s=E.promises[t],e.isServer&&(null!=s?s.length:void 0)?void e.defer(function(){d.sortBy(s,function(e){return e.priority||E.promises.priority.MEDIUM}).forEach(function(e){e(o,a)})}):o}}.call(this),function(){I="object"==typeof I?I:{};var o=I;E.slashCommands={commands:{}},E.slashCommands.add=function(e,t,o){E.slashCommands.commands[e]={command:e,callback:t,params:null!=o?o.params:void 0,description:null!=o?o.description:void 0}},E.slashCommands.run=function(e,t,o){var a,s;return null!=(null!=(s=E.slashCommands.commands[e])?s.callback:void 0)?(a=E.slashCommands.commands[e].callback)(e,t,o):void 0},e.methods({slashCommand:function(o){if(!e.userId())throw new e.Error(203,t("User_logged_out"));return E.slashCommands.run(o.cmd,o.params,o.msg)}})}.call(this),function(){I="object"==typeof I?I:{};var e=I;E.Message={parse:function(e,t){var o,a;return o=E.MessageTypes.getType(e),null!=(null!=o?o.render:void 0)?o.render(e):null==(null!=o?o.template:void 0)?null!=(null!=o?o.message:void 0)?(!t&&("undefined"!=typeof localStorage&&null!==localStorage?localStorage.getItem("userLanguage"):void 0)&&(t=localStorage.getItem("userLanguage")),null!=("function"==typeof o.data?o.data(e):void 0)?A.__(o.message,o.data(e),t):A.__(o.message,{},t)):(null!=(a=e.u)?a.username:void 0)===E.settings.get("Chatops_Username")?(e.html=e.msg,e.html):(e.html=e.msg,""!==d.trim(e.html)&&(e.html=d.escapeHTML(e.html)),e.html=e.html.replace(/\n/gm,"<br/>"),e.html):void 0}}}.call(this),function(){I="object"==typeof I?I:{};var t=I;E.MessageTypes=new(function(){function e(){}var t,o,a,s;return s={},a=function(e){return s[e.id]=e},t=function(e){return s[null!=e?e.t:void 0]},o=function(e){var t;return null!=(t=s[null!=e?e.t:void 0])?t.system:void 0},e.prototype.registerType=a,e.prototype.getType=t,e.prototype.isSystemMessage=o,e}()),e.startup(function(){return E.MessageTypes.registerType({id:"r",system:!0,message:"Room_name_changed",data:function(e){return{room_name:e.msg,user_by:e.u.username}}}),E.MessageTypes.registerType({id:"au",system:!0,message:"User_added_by",data:function(e){return{user_added:e.msg,user_by:e.u.username}}}),E.MessageTypes.registerType({id:"ru",system:!0,message:"User_removed_by",data:function(e){return{user_removed:e.msg,user_by:e.u.username}}}),E.MessageTypes.registerType({id:"ul",system:!0,message:"User_left",data:function(e){return{user_left:e.u.username}}}),E.MessageTypes.registerType({id:"uj",system:!0,message:"User_joined_channel",data:function(e){return{user:e.u.username}}}),E.MessageTypes.registerType({id:"wm",system:!0,message:"Welcome",data:function(e){return{user:e.u.username}}}),E.MessageTypes.registerType({id:"rm",system:!0,message:"Message_removed",data:function(e){return{user:e.u.username}}}),E.MessageTypes.registerType({id:"rtc",render:function(e){return E.callbacks.run("renderRtcMessage",e)}}),E.MessageTypes.registerType({id:"user-muted",system:!0,message:"User_muted_by",data:function(e){return{user_muted:e.msg,user_by:e.u.username}}}),E.MessageTypes.registerType({id:"user-unmuted",system:!0,message:"User_unmuted_by",data:function(e){return{user_unmuted:e.msg,user_by:e.u.username}}}),E.MessageTypes.registerType({id:"subscription-role-added",system:!0,message:"__username__was_set__role__by__user_by_",data:function(e){return{username:e.msg,role:e.role,user_by:e.u.username}}}),E.MessageTypes.registerType({id:"subscription-role-removed",system:!0,message:"__username__is_no_longer__role__defined_by__user_by_",data:function(e){return{username:e.msg,role:e.role,user_by:e.u.username}}})})}.call(this),function(){I="object"==typeof I?I:{};var t=I;E.settings.get("Site_Url",function(t,o){var a,s,n,r;return""!==(null!=o?o.trim():void 0)&&(a=o.replace(/\/$/,""),n="",s=o.match(/([^\/]+\/{2}[^\/]+)(\/.+)/),null!=s&&(a=s[1],n=s[2].replace(/\/$/,"")),__meteor_runtime_config__.ROOT_URL=a,null!=(null!=(r=e.absoluteUrl.defaultOptions)?r.rootUrl:void 0)&&(e.absoluteUrl.defaultOptions.rootUrl=a),e.isServer&&(E.hostname=a.replace(/^https?:\/\//,""),process.env.MOBILE_ROOT_URL=a,process.env.MOBILE_DDP_URL=a,"undefined"!=typeof WebAppInternals&&null!==WebAppInternals?WebAppInternals.generateBoilerplate:void 0))?WebAppInternals.generateBoilerplate():void 0})}.call(this),function(){I="object"==typeof I?I:{};var t=I,o;o=void 0,this.openRoom=function(t,a){return Session.set("openedRoom",null),e.defer(function(){return o=l.autorun(function(s){var n,r,i,_,l,c,u,d,m,g,p,h;if(RoomManager.open(t+a).ready()!==!0)return void BlazeLayout.render("main",{center:"loading"});if(h=null!=(u=e.user())?u.username:void 0){if(o=void 0,s.stop(),c={t:t,name:a},"d"===t&&(delete c.name,c.usernames={$all:[a,h]}),m=ChatRoom.findOne(c),null==m)return void("d"===t?e.call("createDirectMessage",a,function(e){return e?(Session.set("roomNotFound",{type:t,name:a}),void BlazeLayout.render("main",{center:"roomNotFound"})):openRoom("d",a)}):(Session.set("roomNotFound",{type:t,name:a}),BlazeLayout.render("main",{center:"roomNotFound"})));if($(".rocket-loader").remove(),_=document.querySelector(".main-content"),null!=_){for(d=_.children,r=0,i=d.length;i>r;r++)n=d[r],null!=n&&_.removeChild(n);g=RoomManager.getDomOfRoom(t+a,m._id),_.appendChild(g),g.classList.contains("room-container")&&(g.querySelector(".messages-box > .wrapper").scrollTop=g.oldScrollTop)}return Session.set("openedRoom",m._id),Session.set("editRoomTitle",!1),RoomManager.updateMentionsMarksOfRoom(t+a),e.setTimeout(function(){return readMessage.readNow()},2e3),e.Device.isDesktop()&&setTimeout(function(){return $(".message-form .input-message").focus()},100),p=ChatSubscription.findOne({rid:m._id}),(null!=p?p.open:void 0)===!1&&e.call("openRoom",m._id),b.getQueryParam("j")&&(l={_id:b.getQueryParam("j"),rid:m._id},RoomHistoryManager.getSurroundingMessages(l)),E.callbacks.run("enter-room",p)}})})}}.call(this),function(){I="object"==typeof I?I:{};var e=I;this.roomExit=function(){var e,t,o,a,s,n,r;if(E.callbacks.run("roomExit"),BlazeLayout.render("main",{center:"none"}),"undefined"!=typeof currentTracker&&null!==currentTracker&¤tTracker.stop(),a=document.querySelector(".main-content"),null!=a){for(s=a.children,n=[],t=0,o=s.length;o>t;t++)e=s[t],null!=e?(e.classList.contains("room-container")&&(r=e.querySelector(".messages-box > .wrapper"),r&&(r.scrollTop>=r.scrollHeight-r.clientHeight?e.oldScrollTop=1e11:e.oldScrollTop=r.scrollTop)),n.push(a.removeChild(e))):n.push(void 0);return n}}}.call(this),function(){I="object"==typeof I?I:{};var o=I;this.Settings=new e.Collection("rocketchat_settings"),E.settings.subscription=e.subscribe("settings"),E.settings.dict=new s("settings"),E.settings.get=function(e){return E.settings.dict.get(e)},E.settings.init=function(){var t;return t=!0,Settings.find().observe({added:function(o){return e.settings[o._id]=o.value,E.settings.dict.set(o._id,o.value),E.settings.load(o._id,o.value,t)},changed:function(o){return e.settings[o._id]=o.value,E.settings.dict.set(o._id,o.value),E.settings.load(o._id,o.value,t)},removed:function(o){return delete e.settings[o._id],E.settings.dict.set(o._id,void 0),E.settings.load(o._id,void 0,t)}}),t=!1},E.settings.init(),e.startup(function(){return e.isCordova===!1?l.autorun(function(o){var a;return a=E.settings.get("Site_Url"),a&&null!=e.userId()?E.authz.hasRole(e.userId(),"admin")===!1||e.settings["public"].sandstorm?o.stop():(e.setTimeout(function(){var o;return __meteor_runtime_config__.ROOT_URL!==location.origin?(o=location.origin+__meteor_runtime_config__.ROOT_URL_PATH_PREFIX,swal({type:"warning",title:t("Warning"),text:t("The_setting_s_is_configured_to_s_and_you_are_accessing_from_s",t("Site_Url"),a,o)+"<br/><br/>"+t("Do_you_want_to_change_to_s_question",o),showCancelButton:!0,confirmButtonText:t("Yes"),cancelButtonText:t("Cancel"),closeOnConfirm:!1,html:!0},function(){return e.call("saveSetting","Site_Url",o,function(){return swal({title:t("Saved"),type:"success",timer:1e3,showConfirmButton:!1})})})):void 0},100),o.stop()):void 0}):void 0})}.call(this),function(){I="object"==typeof I?I:{};var o=I;E.roomTypes=new(function(){function o(){}var a,s,n,i,_,l,c,u,m;return m=[],u={},c=1,a=function(o,a,s){var n,i,_;if(null==o&&(o=r.id()),null!=u[o])throw new e.Error("identifier-already-set",t("Room_type_identifier_already_set"));return null==a&&(a=c+10,c+=10),m.push({identifier:o,order:a}),u[o]=s,null!=(null!=(n=s.route)?n.path:void 0)&&null!=(null!=(i=s.route)?i.name:void 0)&&null!=(null!=(_=s.route)?_.action:void 0)?b.route(s.route.path,{name:s.route.name,action:s.route.action,triggersExit:[roomExit]}):void 0},l=function(t,o){if(null==u[t])throw new e.Error("route-doesnt-exists","There is no route for the type: "+t);return b.path(u[t].route.name,u[t].route.link(o))},s=function(e){return null==e.condition||e.condition()},n=function(){var e;return e=[],d.sortBy(m,"order").forEach(function(t){return e.push(u[t.identifier])}),e},i=function(e){var t;return null!=(t=u[e])?t.icon:void 0},_=function(e){var t;return e=[].concat(e),t=d.reject(m,function(t){return-1!==e.indexOf(t.identifier)}),d.map(t,function(e){return e.identifier})},o.prototype.getTypes=n,o.prototype.getIdentifiers=_,o.prototype.getIcon=i,o.prototype.getRouteLink=l,o.prototype.checkCondition=s,o.prototype.add=a,o}())}.call(this),function(){e.startup(function(){l.autorun(function(){e.userId()&&(e.call("getUserRoles",function(e,t){if(e)return toastr.error(A.__(e.error));for(var o=t,a=Array.isArray(o),s=0,o=a?o:o[k.iterator]();;){var n;if(a){if(s>=o.length)break;n=o[s++]}else{if(s=o.next(),s.done)break;n=s.value}var r=n;UserRoles.upsert({_id:r._id},r)}}),E.Notifications.onAll("roles-change",function(e){"added"===e.type?e.scope?RoomRoles.upsert({rid:e.scope,"u._id":e.u._id},{$setOnInsert:{u:e.u},$addToSet:{roles:e._id}}):(UserRoles.upsert({_id:e.u._id},{$addToSet:{roles:e._id},$set:{username:e.u.username}}),ChatMessage.update({"u._id":e.u._id},{$addToSet:{roles:e._id}},{multi:!0})):"removed"===e.type?e.scope?RoomRoles.update({rid:e.scope,"u._id":e.u._id},{$pull:{roles:e._id}}):(UserRoles.update({_id:e.u._id},{$pull:{roles:e._id}}),ChatMessage.update({"u._id":e.u._id},{$pull:{roles:e._id}},{multi:!0})):"changed"===e.type&&ChatMessage.update({roles:e._id},{$inc:{rerender:1}},{multi:!0})}))})})}.call(this),function(){I="object"==typeof I?I:{};var o=I;e.methods({sendMessage:function(o){if(!e.userId())throw new e.Error(203,t("User_logged_out"));return""!==d.trim(o.msg)?(o.ts=new Date(Date.now()+TimeSync.serverOffset()),o.u={_id:e.userId(),username:e.user().username},o.temp=!0,o=E.callbacks.run("beforeSaveMessage",o),E.promises.run("onClientMessageReceived",o).then(function(e){return ChatMessage.insert(e)})):void 0}})}.call(this),function(){I="object"==typeof I?I:{};var e=I;E.AdminBox=new(function(){function e(){}var t,o,s;return s=new a([]),t=function(e){return l.nonreactive(function(){var t;return t=s.get(),t.push(e),s.set(t)})},o=function(){return d.filter(s.get(),function(e){return null==e.permissionGranted||e.permissionGranted()?!0:void 0})},e.prototype.addOption=t,e.prototype.getOptions=o,e}())}.call(this),function(){I="object"==typeof I?I:{};var t=I,o=[].slice;E.Notifications=new(function(){function t(){this.debug=!1,this.streamAll=new e.Streamer("notify-all"),this.streamRoom=new e.Streamer("notify-room"),this.streamUser=new e.Streamer("notify-user"),this.debug===!0&&(this.onAll(function(){return console.log("RocketChat.Notifications: onAll",arguments)}),this.onUser(function(){return console.log("RocketChat.Notifications: onAll",arguments)}))}return t.prototype.notifyRoom=function(){var e,t,a;return a=arguments[0],t=arguments[1],e=3<=arguments.length?o.call(arguments,2):[],this.debug===!0&&console.log("RocketChat.Notifications: notifyRoom",arguments),e.unshift(a+"/"+t),this.streamRoom.emit.apply(this.streamRoom,e)},t.prototype.notifyUser=function(){var e,t,a;return a=arguments[0],t=arguments[1],e=3<=arguments.length?o.call(arguments,2):[],this.debug===!0&&console.log("RocketChat.Notifications: notifyUser",arguments),e.unshift(a+"/"+t),this.streamUser.emit.apply(this.streamUser,e)},t.prototype.notifyUsersOfRoom=function(){var e,t,a,s,n,r,i,_,l,c;for(l=arguments[0],a=arguments[1],e=3<=arguments.length?o.call(arguments,2):[],this.debug===!0&&console.log("RocketChat.Notifications: notifyUsersOfRoom",arguments),r=RoomManager.onlineUsers.get(),l=ChatRoom.findOne(l),i=(null!=l?l.usernames:void 0)||[],_=[],s=0,n=i.length;n>s;s++)c=i[s],null!=r[c]?(t=[r[c]._id+"/"+a].concat(e),_.push(this.streamUser.emit.apply(this.streamUser,t))):_.push(void 0);return _},t.prototype.onAll=function(e,t){return this.streamAll.on(e,t)},t.prototype.onRoom=function(e,t,o){return this.debug===!0&&this.streamRoom.on(e,function(){return console.log("RocketChat.Notifications: onRoom "+e,arguments)}),this.streamRoom.on(e+"/"+t,o)},t.prototype.onUser=function(t,o){return this.streamUser.on(e.userId()+"/"+t,o)},t.prototype.unAll=function(e){return this.streamAll.removeListener("notify",e)},t.prototype.unRoom=function(e,t,o){return this.streamRoom.removeListener(e+"/"+t,o)},t.prototype.unUser=function(t){return this.streamUser.removeListener(e.userId(),t)},t}())}.call(this),function(){I="object"==typeof I?I:{};var t=I;E.TabBar=new(function(){function t(){}var o,s,n,r,i,_,c,u,m,g,p,h,f,y,v,b,w,A,S,k,P,U,D,L,M,C,T,R;return o={},s={},_=new a({}),m={},i=!1,b=new a(!1),M=new a(""),u=new a({}),R=new a(""),U=function(e,t){return i!==!0?(M.set(e),w(t)):void 0},h=function(){return M.get()},P=function(e){return u.set(e)},p=function(){return u.get()},w=function(e){return i!==!0?C(1,e):void 0},c=function(e){return i!==!0?C(-1,e):void 0},C=function(e,t){return i!==!0?(i=!0,-1===e||1!==e&&b.get()?b.set(!1):($(".flex-tab .content").scrollTop(0),setTimeout(function(){return b.set(!0)},50)),setTimeout(function(){return i=!1,"function"==typeof t?t():void 0},500)):void 0},D=function(){return $(".flex-tab-bar").show()},y=function(){return c(),$(".flex-tab-bar").hide()},v=function(){return b.get()},n=function(t){if(!(null!=t?t.id:void 0))throw new e.Error("tabBar-addButton-error","Button id was not informed.");return l.nonreactive(function(){var e,o;return o=_.get(),o[t.id]=t,null!=m[t.id]&&(null==(e=o[t.id]).groups&&(e.groups=[]),o[t.id].groups=d.union(o[t.id].groups,m[t.id]),delete m[t.id]),_.set(o)})},A=function(e){return l.nonreactive(function(){var t;return t=_.get(),delete t[e],_.set(t)})},T=function(e,t){return l.nonreactive(function(){var o;return o=_.get(),o[e]?(o[e]=d.extend(o[e],t),_.set(o)):void 0})},g=function(){return d.sortBy(d.toArray(_.get()),"order")},S=function(){return i=!1,k(),c(),M.set(""),u.set({})},k=function(){return _.set({})},L=function(e){return R.set(e)},f=function(){return R.get()},r=function(e,t){return l.nonreactive(function(){var o,a;return a=_.get(),a[e]?(null==(o=a[e]).groups&&(o.groups=[]),a[e].groups=d.union(a[e].groups,t),_.set(a)):(null==m[e]&&(m[e]=[]),m[e]=d.union(m[e],t))})},t.prototype.setTemplate=U,t.prototype.setData=P,t.prototype.getTemplate=h,t.prototype.getData=p,t.prototype.openFlex=w,t.prototype.closeFlex=c,t.prototype.isFlexOpen=v,t.prototype.show=D,t.prototype.hide=y,t.prototype.addButton=n,t.prototype.updateButton=T,t.prototype.removeButton=A,t.prototype.getButtons=g,t.prototype.reset=S,t.prototype.resetButtons=k,t.prototype.showGroup=L,t.prototype.getVisibleGroup=f,t.prototype.addGroup=r,t}())}.call(this),function(){I="object"==typeof I?I:{};var o=I;E.MessageAction=new(function(){function t(){}var o,s,n,r,i,_,c;return s=new a({}),o=function(t){if(!(null!=t?t.id:void 0))throw new e.Error("MessageAction-addButton-error","Button id was not informed.");return l.nonreactive(function(){var e;return e=s.get(),e[t.id]=t,s.set(e)})},i=function(e){return l.nonreactive(function(){var t;return t=s.get(),delete t[e],s.set(t)})},c=function(e,t){return l.nonreactive(function(){var o;return o=s.get(),o[e]?(o[e]=d.extend(o[e],t),s.set(o)):void 0})},n=function(e){var t;return t=s.get(),t[e]},r=function(e,t){var o,a;return o=d.toArray(s.get()),a=e?d.compact(d.map(o,function(o){return(null==o.context||o.context.indexOf(t)>-1)&&(null==o.validation||o.validation(e,t))?o:void 0})):o,d.sortBy(a,"order")},_=function(){return s.set({})},t.prototype.addButton=o,t.prototype.removeButton=i,t.prototype.updateButton=c,t.prototype.getButtons=r,t.prototype.getButtonById=n,t.prototype.resetButtons=_,t}()),e.startup(function(){return $(document).click(function(e){return function(e){return $(e.target).closest(".message-cog-container").length||$(e.target).is(".message-cog-container")?void 0:$(".message-dropdown:visible").hide()}}(this)),E.MessageAction.addButton({id:"edit-message",icon:"icon-pencil",i18nLabel:"Edit",context:["message","message-mobile"],action:function(t,o){var a,s;return console.log(t),console.log(t.currentTarget),s=$(t.currentTarget).closest(".message")[0],console.log(s),chatMessages[Session.get("openedRoom")].edit(s),$("#"+s.id+" .message-dropdown").hide(),a=o.find(".input-message"),e.setTimeout(function(){return a.focus()},200)},validation:function(t){var o,a,s,n,r,i,_;return n=E.authz.hasAtLeastOnePermission("edit-message",t.rid),r=E.settings.get("Message_AllowEditing"),s=(null!=(_=t.u)?_._id:void 0)===e.userId(),n||r&&s?(o=E.settings.get("Message_AllowEditing_BlockEditInMinutes"),null!=o&&0!==o?(null!=t.ts&&(i=moment(t.ts)),null!=i&&(a=moment().diff(i,"minutes")),o>a):!0):void 0},order:1}),E.MessageAction.addButton({id:"delete-message",icon:"icon-trash-alt",i18nLabel:"Delete",context:["message","message-mobile"],action:function(e,o){var a,s;return a=this._arguments[1],s=$(e.currentTarget).closest(".message")[0],$("#"+s.id+" .message-dropdown").hide(),s.classList.contains("system")?void 0:swal({title:t("Are_you_sure"),text:t("You_will_not_be_able_to_recover"),type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:t("Yes_delete_it"),cancelButtonText:t("Cancel"),closeOnConfirm:!1,html:!1},function(){return swal({title:t("Deleted"),text:t("Your_entry_has_been_deleted"),type:"success",timer:1e3,showConfirmButton:!1}),chatMessages[Session.get("openedRoom")].editing.id===a._id&&chatMessages[Session.get("openedRoom")].clearEditing(a),chatMessages[Session.get("openedRoom")].deleteMsg(a)})},validation:function(t){var o,a,s,n,r,i,_;return n=E.authz.hasAtLeastOnePermission("delete-message",t.rid),r=E.settings.get("Message_AllowDeleting"),s=(null!=(_=t.u)?_._id:void 0)===e.userId(),n||r&&s?(o=E.settings.get("Message_AllowDeleting_BlockDeleteInMinutes"),null!=o&&0!==o?(null!=t.ts&&(i=moment(t.ts)),null!=i&&(a=moment().diff(i,"minutes")),o>a):!0):void 0},order:2}),E.MessageAction.addButton({id:"permalink",icon:"icon-link",i18nLabel:"Permalink",classes:"clipboard",context:["message","message-mobile"],action:function(e,t){var o,a;return o=this._arguments[1],a=$(e.currentTarget).closest(".message")[0],$("#"+a.id+" .message-dropdown").hide(),$(e.currentTarget).attr("data-clipboard-text",document.location.origin+document.location.pathname+"?j="+a.id),toastr.success(A.__("Copied"))},order:3})})}.call(this),function(){E.TabBar.addButton({groups:["channel","privategroup","directmessage"],id:"message-search",i18nTitle:"Search",icon:"icon-search",template:"messageSearch",order:1}),E.TabBar.addButton({groups:["directmessage"],id:"user-info",i18nTitle:"User_Info",icon:"icon-user",template:"membersList",order:2}),E.TabBar.addButton({groups:["channel","privategroup"],id:"members-list",i18nTitle:"Members_List",icon:"icon-users",template:"membersList",order:2}),E.TabBar.addButton({groups:["channel","privategroup","directmessage"],id:"uploaded-files-list",i18nTitle:"Room_uploaded_file_list",icon:"icon-attach",template:"uploadedFilesList",order:3})}.call(this),function(){I="object"==typeof I?I:{};var e=I;E.models._Base=function(){function e(){}return e.prototype._baseName=function(){return"rocketchat_"},e.prototype._initModel=function(e){return i(e,String),this.model=new m.Collection(this._baseName()+e)},e.prototype.find=function(){return this.model.find.apply(this.model,arguments)},e.prototype.findOne=function(){return this.model.findOne.apply(this.model,arguments)},e.prototype.insert=function(){return this.model.insert.apply(this.model,arguments)},e.prototype.update=function(){return this.model.update.apply(this.model,arguments)},e.prototype.upsert=function(){return this.model.upsert.apply(this.model,arguments)},e.prototype.remove=function(){return this.model.remove.apply(this.model,arguments)},e.prototype.allow=function(){return this.model.allow.apply(this.model,arguments)},e.prototype.deny=function(){return this.model.deny.apply(this.model,arguments)},e.prototype.ensureIndex=function(){},e.prototype.dropIndex=function(){},e.prototype.tryEnsureIndex=function(){},e.prototype.tryDropIndex=function(){},e}()}.call(this),function(){I="object"==typeof I?I:{};var e=I,t=function(e,t){function a(){this.constructor=e}for(var s in t)o.call(t,s)&&(e[s]=t[s]);return a.prototype=t.prototype,e.prototype=new a,e.__super__=t.prototype,e},o={}.hasOwnProperty;E.models.Uploads=new(function(e){function o(){this._initModel("uploads")}return t(o,e),o}(E.models._Base))}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.ar=["Arabic","العربية"],A._enable({helper_name:"_",supported_languages:null,i18n_files_route:"/tap-i18n",preloaded_langs:[],cdn_path:null}),A.languages_names.en=["English","English"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.cs=["Czech","čeština"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.de=["German","Deutsch"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.el=["Greek","Ελληνικά"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),O={},O[o]={500:"Internal Server Error","0_Errors_Only":"0 - Errors Only","1_Errors_and_Information":"1 - Errors and Information","2_Erros_Information_and_Debug":"2 - Erros, Information and Debug",__username__was_set__role__by__user_by_:"__username__ was set __role__ by __user_by__",__username__is_no_longer__role__defined_by__user_by_:"__username__ is no longer __role__, by __user_by__",Access_not_authorized:"Access not authorized",Access_online_demo:"Access the online demo",Access_Online_Demo:"Access the Online Demo",Access_Token_URL:"Access Token URL",Accounts:"Accounts",Accounts_AllowDeleteOwnAccount:"Allow users to delete own account",Accounts_AllowedDomainsList:"Allowed Domains List",Accounts_AllowedDomainsList_Description:"Comma-separated list of allowed domains",Accounts_AllowEmailChange:"Allow E-mail Change",Accounts_AllowPasswordChange:"Allow Password Change",Accounts_AllowUserAvatarChange:"Allow User Avatar Change",Accounts_AllowUsernameChange:"Allow Username Change",Accounts_AllowUserProfileChange:"Allow User Profile Change",Accounts_AvatarResize:"Resize Avatars",Accounts_AvatarSize:"Avatar Size",Accounts_AvatarStorePath:"Avatar Storage Path",Accounts_AvatarStoreType:"Avatar Storage Type",Accounts_BlockedDomainsList:"Blocked Domains List",Accounts_BlockedDomainsList_Description:"Comma-separated list of blocked domains",Accounts_denyUnverifiedEmail:"Deny unverified email",Accounts_EmailVerification:"E-mail Verification",Accounts_EmailVerification_Description:"Make sure you have correct SMTP settings to use this feature",Accounts_Enrollment_Email:"Enrollment E-mail",Accounts_Enrollment_Email_Description:"You may use [name], [fname], [lname] for the user's full name, first name or last name, respectively.<br />You may use [email] for the user's email.",Accounts_Iframe_api_method:"Api Method",Accounts_Iframe_api_url:"API URL",Accounts_iframe_enabled:"Enabled",Accounts_iframe_url:"Iframe Url",Accounts_LoginExpiration:"Login Expiration in Days",Accounts_ManuallyApproveNewUsers:"Manually Approve New Users",Accounts_OAuth_Custom_Token_Sent_Via:"Token Sent Via",Accounts_OAuth_Custom_Authorize_Path:"Authorize Path",Accounts_OAuth_Custom_Button_Color:"Button Color",Accounts_OAuth_Custom_Button_Label_Color:"Button Text Color",Accounts_OAuth_Custom_Button_Label_Text:"Button Text",Accounts_OAuth_Custom_Enable:"Enable",Accounts_OAuth_Custom_id:"Id",Accounts_OAuth_Custom_Identity_Path:"Identity Path",Accounts_OAuth_Custom_Login_Style:"Login Style",Accounts_OAuth_Custom_Secret:"Secret",Accounts_OAuth_Custom_Token_Path:"Token Path",Accounts_OAuth_Custom_URL:"URL",Accounts_OAuth_Facebook:"Facebook Login",Accounts_OAuth_Facebook_callback_url:"Facebook Callback URL",Accounts_OAuth_Facebook_id:"Facebook App Id",Accounts_OAuth_Facebook_secret:"Facebook Secret",Accounts_OAuth_Github:"OAuth Enabled",Accounts_OAuth_Github_callback_url:"Github Callback URL",Accounts_OAuth_GitHub_Enterprise:"OAuth Enabled",Accounts_OAuth_GitHub_Enterprise_callback_url:"GitHub Enterprise Callback URL",Accounts_OAuth_GitHub_Enterprise_id:"Client Id",Accounts_OAuth_GitHub_Enterprise_secret:"Client Secret",Accounts_OAuth_Github_id:"Client Id",Accounts_OAuth_Github_secret:"Client Secret",Accounts_OAuth_Gitlab:"OAuth Enabled",Accounts_OAuth_Gitlab_callback_url:"GitLab Callback URL",Accounts_OAuth_Gitlab_id:"GitLab Id",Accounts_OAuth_Gitlab_secret:"Client Secret",Accounts_OAuth_Google:"Google Login",Accounts_OAuth_Google_callback_url:"Google Callback URL",Accounts_OAuth_Google_id:"Google Id",Accounts_OAuth_Google_secret:"Google Secret",Accounts_OAuth_Linkedin:"LinkedIn Login",Accounts_OAuth_Linkedin_callback_url:"Linkedin Callback URL",Accounts_OAuth_Linkedin_id:"LinkedIn Id",Accounts_OAuth_Linkedin_secret:"LinkedIn Secret",Accounts_OAuth_Meteor:"Meteor Login",Accounts_OAuth_Meteor_callback_url:"Meteor Callback URL",Accounts_OAuth_Meteor_id:"Meteor Id",Accounts_OAuth_Meteor_secret:"Meteor Secret",Accounts_OAuth_Twitter:"Twitter Login",Accounts_OAuth_Twitter_callback_url:"Twitter Callback URL",Accounts_OAuth_Twitter_id:"Twitter Id",Accounts_OAuth_Twitter_secret:"Twitter Secret",Accounts_OAuth_Wordpress:"WordPress Login",Accounts_OAuth_Wordpress_callback_url:"Wordpress Callback URL",Accounts_OAuth_Wordpress_id:"WordPress Id",Accounts_OAuth_Wordpress_secret:"WordPress Secret",Accounts_PasswordReset:"Password Reset",Accounts_Registration_AuthenticationServices_Enabled:"Registration with Authentication Services",Accounts_RegistrationForm:"Registration Form",Accounts_RegistrationForm_Disabled:"Disabled",Accounts_RegistrationForm_LinkReplacementText:"Registration Form Link Replacement Text",Accounts_RegistrationForm_Public:"Public",Accounts_RegistrationForm_Secret_URL:"Secret URL",Accounts_RegistrationForm_SecretURL:"Registration Form Secret URL",
|
||
Accounts_RegistrationForm_SecretURL_Description:"You must provide a random string that will be added to your registration URL. Example: https://demo.rocket.chat/register/[secret_hash]",Accounts_RegistrationRequired:"Registration Required",Accounts_RequireNameForSignUp:"Require Name For Signup",Accounts_ShowFormLogin:"Show form-based Login",Accounts_UseDefaultBlockedDomainsList:"Use Default Blocked Domains List",Accounts_UseDNSDomainCheck:"Use DNS Domain Check",Activate:"Activate",Activity:"Activity",Add:"Add",Add_agent:"Add agent",Add_custom_oauth:"Add custom oauth",Add_manager:"Add manager",Add_Members:"Add Members",Add_User:"Add User",Add_user:"Add user",Add_users:"Add users",Additional_emails:"Additional E-mails",Additional_Feedback:"Additional Feedback",Administration:"Administration",After_OAuth2_authentication_users_will_be_redirected_to_this_URL:"After OAuth2 authentication, users will be redirected to this URL",Agent_added:"Agent added",Agent_removed:"Agent removed",Alias:"Alias",All:"All",All_channels:"All channels",All_logs:"All logs",All_messages:"All messages",Allow_Invalid_SelfSigned_Certs:"Allow Invalid Self-Signed Certs",Allow_Invalid_SelfSigned_Certs_Description:"Allow invalid and self-signed SSL certificate's for link validation and previews.",and:"and",And_more:"And more __length__...",Animals_and_Nature:"Animals & Nature",API:"API",API_Analytics:"Analytics",API_Embed:"Embed",API_EmbedDisabledFor:"Disable Embed for Users",API_EmbedDisabledFor_Description:"Comma-separated list of usernames",API_GitHub_Enterprise_URL:"Server URL",API_GitHub_Enterprise_URL_Description:"Example: http://domain.com (excluding trailing slash)",API_Gitlab_URL:"GitLab URL",API_Wordpress_URL:"WordPress URL",Appearance:"Appearance",Application_added:"Application added",Application_Name:"Application Name",Application_updated:"Application updated",Apply_and_refresh_all_clients:"Apply and refresh all clients",Archive:"Archive",Archive_Unarchive:"Archive / Unarchive",are_also_typing:"are also typing",are_typing:"are typing",Are_you_sure:"Are you sure?",Are_you_sure_you_want_to_delete_your_account:"Are you sure you want to delete your account?",Authorization_URL:"Authorization URL",Authorize:"Authorize",AutoLinker_StripPrefix:"AutoLinker Strip Prefix",AutoLinker_StripPrefix_Description:"Short display. e.g. https://rocket.chat => rocket.chat",AutoLinker_Urls:"AutoLinker URL",AutoLinker_UrlsRegExp:"AutoLinker URL Regular Expression",AutoLinker_Email:"AutoLinker Email",AutoLinker_Phone:"AutoLinker Phone",AutoLinker_Phone_Description:"Automatically linked for Phone numbers. e.g. `(123)456-7890`",Auto_Load_Images:"Auto Load Images",Available:"Available",Available_agents:"Available agents",Avatar:"Avatar",Avatar_changed_successfully:"Avatar changed successfully",Avatar_URL:"Avatar URL",Avatar_url_invalid_or_error:"The url provided is invalid or not accessible. Please try again, but with a different url.",away:"away",Away:"Away",away_female:"away",Away_female:"Away",away_male:"away",Away_male:"Away",Back:"Back",Back_to_applications:"Back to applications",Back_to_integrations:"Back to integrations",Back_to_login:"Back to login",Back_to_permissions:"Back to permissions",Body:"Body",bold:"bold",busy:"busy",Busy:"Busy",busy_female:"busy",Busy_female:"Busy",busy_male:"busy",Busy_male:"Busy",Cancel:"Cancel",Cannot_delete_a_protected_role:"Cannot delete a protected role",Cannot_delete_role_because_its_in_use:"Cannot delete role because it's in use",Cannot_invite_users_to_direct_rooms:"Cannot invite users to direct rooms",CDN_PREFIX:"CDN Prefix",Certificates_and_Keys:"Certificates and Keys",Channel:"Channel",Channel_doesnt_exist:"The channel `#%s` does not exist.",Channels:"Channels",Channels_list:"List of public channels",Chat_Rooms:"Chat Rooms",Chatops_Enabled:"Enable Chatops",Chatops_Title:"Chatops Panel",Chatops_Username:"Chatops Username",Choose_a_room:"Choose a room",Choose_messages:"Choose messages",Choose_the_alias_that_will_appear_before_the_username_in_messages:"Choose the alias that will appear before the username in messages.",Choose_the_username_that_this_integration_will_post_as:"Choose the username that this integration will post as.",Clear_all_unreads_question:"Clear all unreads?",Client_ID:"Client ID",Client_Secret:"Client Secret",Clients_will_refresh_in_a_few_seconds:"Clients will refresh in a few seconds",close:"close",Closed:"Closed",Collapse_Embedded_Media_By_Default:"Collapse embedded media by default",coming_soon:"coming soon",Commands:"Commands",Compact_View:"Compact View",Confirm_password:"Confirm your password",Contact:"Contact",Conversation:"Conversation",Convert_Ascii_Emojis:"Convert ASCII to Emoji",Copied:"Copied",COPY_TO_CLIPBOARD:"COPY TO CLIPBOARD",Copy_to_clipboard:"Copy to clipboard",Count:"Count",Create:"Create",Create_new:"Create new",Created_at:"Created at",Created_at_s_by_s:"Created at <strong>%s</strong> by <strong>%s</strong>",Custom_Fields:"Custom Fields",Custom_oauth_helper:"When setting up your OAuth Provider, you'll have to inform a Callback URL. Use <pre>%s</pre> .",Custom_oauth_unique_name:"Custom oauth unique name",Custom_Script_Logged_In:"Custom Script for logged in users",Custom_Script_Logged_Out:"Custom Script for logged out users",Dashboard:"Dashboard",days:"days",Deactivate:"Deactivate",Debug_Level:"Debug Level",Default:"Default",Delete:"Delete",Delete_my_account:"Delete my account",Delete_Room_Warning:"Deleting a room will delete all messages posted within the room. This cannot be undone.",Delete_User_Warning:"Deleting a user will delete all messages from that user as well. This cannot be undone.",Deleted:"Deleted!",Department_not_found:"Department not found",Department_removed:"Department removed",Departments:"Departments",Description:"Description",Desktop:"Desktop",Desktop_Notification_Test:"Desktop Notification Test",Desktop_Notifications:"Desktop Notifications",Desktop_Notifications_Disabled:"Desktop Notifications are Disabled. Change your browser preferences if you need Notifications enabled.",Desktop_Notifications_Enabled:"Desktop Notifications are Enabled",Direct_message_someone:"Direct message someone",Direct_Messages:"Direct Messages",Direct_Messages_list:"Direct Messages",Disable_Favorite_Rooms:"Disable Favorites",Disable_New_Message_Notification:"Disable New Message Notification",Disable_New_Room_Notification:"Disable New Room Notification",Displays_action_text:"Displays action text",Do_you_want_to_change_to_s_question:"Do you want to change to <strong>%s</strong>?",Drop_to_upload_file:"Drop to upload file",Dry_run:"Dry run",Dry_run_description:"Will only send one email, to the same address as in From. The email must belong to a valid user.",Duplicate_archived_channel_name:"An archived Channel with name '%s' exists",Duplicate_archived_private_group_name:"An archived Private Group with name '%s' exists",Duplicate_private_group_name:"A Private Group with name '%s' exists","E-mail":"E-mail",Edit:"Edit",Edit_Custom_Field:"Edit Custom Field",Edit_Department:"Edit Department",edited:"edited",Email:"Email",Email_already_exists:"Email already exists",Email_body:"E-mail body",Email_Change_Disabled:"Your Rocket.Chat administrator has disabled the changing of email",Email_from:"From",Email_Notification_Mode:"Offline Email Notifications",Email_Notification_Mode_All:"Every Mention/DM",Email_Notification_Mode_Disabled:"Disabled",Email_or_username:"Email or username",Email_subject:"Subject",Email_verified:"Email verified",Emoji:"Emoji",Empty_title:"Empty title",Enable:"Enable",Enable_Desktop_Notifications:"Enable Desktop Notifications",Enabled:"Enabled",Encrypted_message:"Encrypted message",End_OTR:"End OTR",Enter_a_regex:"Enter a regex",Enter_a_room_name:"Enter a room name",Enter_a_username:"Enter a username",Enter_info:"Enter your information",Enter_name_here:"Enter name here",Enter_to:"Enter to",Error:"Error","error-cant-invite-for-direct-room":"Can't invite user to direct rooms","error-duplicate-channel-name":"A Channel with name '%s' exists","error-invalid-custom-field":"Invalid custom field","error-invalid-custom-field-name":"Invalid custom field name. Use only letters, numbers, hyphens and underscores.","error-invalid-password":"Invalid password","error-invalid-room":"Invalid room","error-invalid-room-name":"<strong>%s</strong> is not a valid room name,<br/> use only letters, numbers, hyphens and underscores","error-invalid-user":"Invalid user","error-invalid-username":"Invalid username","error-not-allowed":"Not allowed","error-not-authorized":"Not authorized","error-remove-last-owner":"This is the last owner. Please set a new owner before removing this one.","error-role-name-required":"Role name is required","error-user-not-in-room":"User is not in this room",Error_changing_password:"Error changing password",Error_sending_confirmation_email:"Error sending confirmation email",Error_too_many_requests:"Error, too many requests. Please slow down. You must wait %s seconds before trying again",Esc_to:"Esc to",Example_s:'Example: <code class="inline">%s</code>',False:"False",Favorites:"Favorites",Field:"Field",Field_removed:"Field removed",File_exceeds_allowed_size_of_bytes:"File exceeds allowed size of __size__ bytes",FileUpload:"File Upload",FileUpload_Enabled:"File Uploads Enabled",FileUpload_File_Empty:"File empty",FileUpload_FileSystemPath:"System Path",FileUpload_MaxFileSize:"Maximum File Upload Size (in bytes)",FileUpload_MediaType_NotAccepted:"Media Types Not Accepted",FileUpload_MediaTypeWhiteList:"Accepted Media Types",FileUpload_MediaTypeWhiteListDescription:"Comma-separated list of media types. Leave it blank for accepting all media types.",FileUpload_ProtectFiles:"Protect uploaded files",FileUpload_ProtectFilesDescription:"Only authenticated users will have access",FileUpload_S3_Acl:"Amazon S3 acl",FileUpload_S3_AWSAccessKeyId:"Amazon S3 AWSAccessKeyId",FileUpload_S3_AWSSecretAccessKey:"Amazon S3 AWSSecretAccessKey",FileUpload_S3_Bucket:"Amazon S3 bucket name",FileUpload_S3_BucketURL:"Bucket URL",FileUpload_S3_CDN:"CDN domain for downloads",FileUpload_S3_Region:"Region",FileUpload_Storage_Type:"Storage Type",Flags:"Flags",Follow_social_profiles:"Follow our social profiles, fork us on github and share your thoughts about the rocket.chat app on our trello board.",Food_and_Drink:"Food & Drink",For_your_security_you_must_re_enter_your_password_to_continue:"For your security, you must re-enter your password to continue",Force_SSL:"Force SSL",Force_SSL_Description:"*Caution!* _Force SSL_ should never be used with reverse proxy. If you have a reverse proxy, you should do the redirect THERE. This option exists for deployments like Heroku, that does not allow the redirect configuration at the reverse proxy.",Forgot_password:"Forgot your password",Fork_it_on_github:"Fork it on github",Frequently_Used:"Frequently Used",From:"From",From_Email:"From Email",From_email_is_required:"From email is required",From_email_warning:"<b>Warning</b>: The field <b>From</b> is subject to your mail server settings.",General:"General",Get_to_know_the_team:"Get to know the Rocket.Team",github_no_public_email:"You don't have any email as public email in your GitHub account",Give_a_unique_name_for_the_custom_oauth:"Give a unique name for the custom oauth",Give_the_application_a_name_This_will_be_seen_by_your_users:"Give the application a name. This will be seen by your users.",Global:"Global",GoogleTagManager_id:"Google Tag Manager Id",Has_more:"Has more",Have_your_own_chat:"Have your own web chat. Developed with Meteor.com, the Rocket.Chat is a great solution for developers looking forward to build and evolve their own chat platform.",Header:"Header",Hidden:"Hidden",Hide_Group_Warning:'Are you sure you want to hide the group "%s"?',Hide_Private_Warning:'Are you sure you want to hide the discussion with "%s"?',Hide_room:"Hide room",Hide_Room_Warning:'Are you sure you want to hide the room "%s"?',Highlights:"Highlights",Highlights_How_To:"To be notified when someone mentions a word or phrase, add it here. You can separate words or phrases with commas. Highlight Words are not case sensitive.",Highlights_List:"Highlight words",History:"History",hours:"hours",How_friendly_was_the_chat_agent:"How friendly was the chat agent?",How_knowledgeable_was_the_chat_agent:"How knowledgeable was the chat agent?",How_responsive_was_the_chat_agent:"How responsive was the chat agent?",How_satisfied_were_you_with_this_chat:"How satisfied were you with this chat?",If_you_are_sure_type_in_your_password:"If you are sure type in your password:",If_you_are_sure_type_in_your_username:"If you are sure type in your username:",Importer_Archived:"Archived",Importer_done:"Importing complete!",Importer_finishing:"Finishing up the import.",Importer_From_Description:"Imports __from__'s data into Rocket.Chat.",Importer_import_cancelled:"Import cancelled.",Importer_import_failed:"An error occured while running the import.",Importer_importing_channels:"Importing the channels.",Importer_importing_messages:"Importing the messages.",Importer_importing_started:"Starting the import.",Importer_importing_users:"Importing the users.",Importer_not_defined_properly:"The importer was not defined correctly, it is missing the Import class.",Importer_not_in_progress:"The importer is currently not running.",Importer_Prepare_Restart_Import:"Restart Import",Importer_Prepare_Start_Import:"Start Importing",Importer_Prepare_Uncheck_Archived_Channels:"Uncheck Archived Channels",Importer_Prepare_Uncheck_Deleted_Users:"Uncheck Deleted Users",Importer_progress_error:"Failed to get the progress for the import.",Importer_setup_error:"An error occured while setting up the importer.",Incorrect_Password:"Incorrect Password",inline_code:"inline_code",Install_Extension:"Install Extension",Install_FxOs:"Install Rocket.Chat on your Firefox",Install_FxOs_done:"Great! You can now use Rocket.Chat via the icon on your homescreen. Have fun with Rocket.Chat!",Install_FxOs_error:"Sorry, that did not work as intended! The following error appeared:",Install_FxOs_follow_instructions:'Please confirm the app installation on your device (press "Install" when prompted).',Installation:"Installation",Integration_added:"Integration has been added",Integration_Incoming_WebHook:"Incoming WebHook Integration",Integration_New:"New Integration",Integration_Outgoing_WebHook:"Outgoing WebHook Integration",Integration_updated:"Integration has been updated",Integrations:"Integrations",Invalid_asset:"Invalid asset",Invalid_confirm_pass:"The password confirmation does not match password",Invalid_email:"The email entered is invalid",Invalid_Export_File:"The file uploaded isn't a valid %s export file.",Invalid_file_height:"Invalid file height",Invalid_file_type:"Invalid file type",Invalid_file_width:"Invalid file width",Invalid_Import_File_Type:"Invalid Import file type.",Invalid_name:"The name must not be empty",Invalid_notification_setting_s:"Invalid notification setting: %s",Invalid_pass:"The password must not be empty",Invalid_room_name:"<strong>%s</strong> is not a valid room name,<br/> use only letters, numbers, hyphens and underscores",Invalid_room_type:"<strong>%s</strong> is not a valid room type.",Invalid_Secret_URL:"Invalid Secret URL",Invalid_secret_URL_message:"The URL provided is invalid.",invisible:"invisible",Invisible:"Invisible",Invitation_HTML:"Invitation HTML",Invitation_Subject:"Invitation Subject",Invite_user_to_join_channel:"Invite one user to join this channel",Invite_Users:"Invite Users",is_also_typing:"is also typing",is_also_typing_female:"is also typing",is_also_typing_male:"is also typing",is_typing:"is typing",is_typing_female:"is typing",is_typing_male:"is typing",italics:"italics",join:"Join",Join_audio_call:"Join audio call",Join_the_Community:"Join the Community",Join_the_given_channel:"Join the given channel",Join_video_call:"Join video call",Joined:"Joined",Jump:"Jump",Jump_to_first_unread:"Jump to first unread",Jump_to_message:"Jump to message",Jump_to_recent_messages:"Jump to recent messages",Katex_Enabled:"Katex Enabled",Label:"Label",Language:"Language",Language_Version:"English Version",Last_login:"Last login",Last_message:"Last message",Last_seen:"Last seen",Layout:"Layout",Layout_Home_Body:"Home Body",Layout_Home_Title:"Home Title",Layout_Login_Terms:"Login Terms",Layout_Privacy_Policy:"Privacy Policy",Layout_Sidenav_Footer:"Side Navigation Footer",Layout_Sidenav_Footer_description:"Footer size is 260 x 70px",Layout_Terms_of_Service:"Terms of Service",LDAP:"LDAP",LDAP_CA_Cert:"CA Cert",LDAP_Custom_Domain_Search:"Custom Domain Search",LDAP_Custom_Domain_Search_Description:'A piece of JSON that governs bind and connection info and is of the form:<br/> <code>{"filter": "(&(objectCategory=person)(objectclass=user)(memberOf=CN=ROCKET_ACCESS,CN=Users,DC=domain,DC=com)(sAMAccountName=#{username}))", "scope": "sub", "userDN": "rocket.service@domain.com", "password": "urpass"}</code>',LDAP_Default_Domain:"Default Domain",LDAP_Description:"LDAP is a hierarchical database that many companies use to provide single sign on - a facility for sharing one password between multiple sites and services. For advanced configuration information and examples, please consult our wiki: https://github.com/RocketChat/Rocket.Chat/wiki/LDAP-Authentication.",LDAP_Dn:"LDAP DN",LDAP_Domain_Base:"Domain Base",LDAP_Domain_Base_Description:"The fully qualified Distinguished Name (DN) of an LDAP subtree you want to search for users and groups. You can add as many as you like; however, each group must be defined in the same domain base as the users that belong to it. If you specify restricted user groups, only users that belong to those groups will be in scope. We recommend that you specify the top level of your LDAP directory tree as your domain base and use search filter to control access.",LDAP_Domain_Search_Filter:"Domain Search Filter",LDAP_Domain_Search_Filter_Description:"If specified, only users that match this filter will be allowed to log in. If no filter is specified, all users within the scope of the specified domain base will be able to sign in.<br/>E.g. for Active Directory `memberOf=cn=ROCKET_CHAT,ou=General Groups`.<br/>E.g. for OpenLDAP (extensible match search) `ou:dn:=ROCKET_CHAT`.",LDAP_Domain_Search_Object_Category:"Domain Search Object Category",LDAP_Domain_Search_Object_Category_Description:"The *objectCategory* that identify your users.<br/>Leave empty for *OpenLDAP*.<br/>E.g. `person`, etc.",LDAP_Domain_Search_Object_Class:"Domain Search Object Class",LDAP_Domain_Search_Object_Class_Description:"The *objectclass* that identify your users. <br/>E.g. `organizationalPerson`, `user`, `inetOrgPerson`, etc.",LDAP_Domain_Search_Password:"Domain Search Password",LDAP_Domain_Search_Password_Description:"The password for the domain search user.",LDAP_Domain_Search_User:"Domain Search User",LDAP_Domain_Search_User_Description:"The LDAP user that performs user lookups to authenticate other users when they sign in. <br/>This is typically a service account created specifically for third-party integrations. Use a fully qualified name, such as `cn=Administrator,cn=Users,dc=Example,dc=com`.",LDAP_Domain_Search_User_ID:"Domain Search User ID",LDAP_Domain_Search_User_ID_Description:"The LDAP attribute that identifies the LDAP user who attempts authentication. This field should be `sAMAccountName` for most Active Directory installations, but it may be `uid` for other LDAP solutions, such as OpenLDAP. You can use `mail` to identify users by email or whatever attribute you want.<br>You can use multiple values separated by comma to allow users to login using multiple identifiers like username or email.",LDAP_Enable:"Enable",LDAP_Enable_Description:"Attempt to utilize LDAP for authentication.",LDAP_Encryption:"Encryption",LDAP_Encryption_Description:"The encryption method used to secure communications to the LDAP server. Examples include `plain` (no encryption), `SSL/LDAPS` (encrypted from the start), and `StartTLS` (upgrade to encrypted communication once connected).",LDAP_Host:"Host",LDAP_Host_Description:"The LDAP host, e.g. `ldap.example.com` or `10.0.0.30`.",LDAP_Port:"Port",LDAP_Port_Description:"Port to access LDAP. eg: `389` or `636` for LDAPS",LDAP_Reject_Unauthorized:"Reject Unauthorized",LDAP_Sync_User_Avatar:"Sync User Avatar",LDAP_Sync_User_Data:"Sync Data",LDAP_Sync_User_Data_Description:"Keep user data in sync with server on login (eg: name, email).",LDAP_Sync_User_Data_FieldMap:"User Data Field Map",LDAP_Sync_User_Data_FieldMap_Description:'Configure how user account fields (like email) are populated from a record in LDAP (once found). <br/>As an example, `{"cn":"name", "mail":"email"}` will choose a person\'s human readable name from the cn attribute, and their email from the mail attribute.<br/> Available fields include `name`, and `email`.',LDAP_Sync_Users:"Sync Users",LDAP_Test_Connection:"Test Connection",LDAP_Unique_Identifier_Field:"Unique Identifier Field",LDAP_Unique_Identifier_Field_Description:"Which field will be used to link the LDAP user and the Rocket.Chat user. You can inform multiple values separated by comma to try to get the value from LDAP record.<br/>Default value is `objectGUID,ibm-entryUUID,GUID,dominoUNID,nsuniqueId,uidNumber`",LDAP_Use_Custom_Domain_Search:"Use Custom Domain Search",LDAP_Use_Custom_Domain_Search_Description:"Write your own filter to search users in the LDAP server.",LDAP_Username_Field:"Username Field",LDAP_Username_Field_Description:"Which field will be used as *username* for new users. Leave empty to use the username informed on login page.<br/>You can use template tags too, like `#{givenName}.#{sn}`.<br/>Default value is `sAMAccountName`.",Leave_Group_Warning:'Are you sure you want to leave the group "%s"?',Leave_Private_Warning:'Are you sure you want to leave the discussion with "%s"?',Leave_room:"Leave room",Leave_Room_Warning:'Are you sure you want to leave the room "%s"?',line:"line",List_of_Direct_Messages:"List of Direct Messages",Live_sessions:"Live sessions",Livechat_agents:"Livechat agents",Livechat_Dashboard:"Livechat Dashboard",Livechat_enabled:"Livechat enabled",Livechat_Manager:"Livechat Manager",Livechat_managers:"Livechat managers",Livechat_title:"Livechat Title",Livechat_title_color:"Livechat Title Background Color",Livechat_Users:"Livechat Users",Load_more:"Load more","Loading...":"Loading...",Loading_more_from_history:"Loading more from history",Loading_suggestion:"Loading suggestions...",Localization:"Localization",Log_File:"Show File and Line",Log_Level:"Log Level",Log_Package:"Show Package",Log_View_Limit:"Log View Limit",Logged_out_of_other_clients_successfully:"Logged out of other clients successfully",Login:"Login",Login_with:"Login with %s",login_with:"Or login directly with",Logout:"Logout",Logout_Others:"Logout From Other Logged In Locations",Mail_Message_Invalid_emails:"You have provided one or more invalid emails: %s",Mail_Message_Missing_to:"You must select one or more users or provide one or more email addresses, separated by commas.",Mail_Message_No_messages_selected_select_all:"You haven't selected any messages. Would you like to <a href='#' class='select-all'>select all</a> visible messages?",Mail_Messages:"Mail Messages",Mail_Messages_Instructions:"Choose which messages you want to send via email by clicking the messages",Mail_Messages_Subject:"Here's a selected portion of %s messages",Mailer:"Mailer",Mailer_body_tags:"You <b>must</b> use [unsubscribe] for the unsubscription link.<br />You may use [name], [fname], [lname] for the user's full name, first name or last name, respectively.<br />You may use [email] for the user's email.",Make_Admin:"Make Admin",Manager_added:"Manager added",Manager_removed:"Manager removed",Mark_as_read:"Mark as read",Markdown_Headers:"Markdown Headers",Markdown_SupportSchemesForLink:"Markdown Support Schemes for Link",Markdown_SupportSchemesForLink_Description:"Comma-separated list of allowed schemes",Members_List:"Members List",Mentions:"Mentions",Mentions_default:"Mentions (default)",Message:"Message",Message_AllowDeleting:"Allow Message Deleting",Message_AllowDeleting_BlockDeleteInMinutes:"Block Message Deleting After (n) Minutes",Message_AllowDeleting_BlockDeleteInMinutesDescription:"Enter 0 to disable blocking.",Message_AllowEditing:"Allow Message Editing",Message_AllowEditing_BlockEditInMinutes:"Block Message Editing After (n) Minutes",Message_AllowEditing_BlockEditInMinutesDescription:"Enter 0 to disable blocking.",Message_AllowPinning:"Allow Message Pinning",Message_AllowPinning_Description:"Allow messages to be pinned to any of the channels.",Message_AllowStarring:"Allow Message Starring",Message_AudioRecorderEnabled:"Audio Recorder Enabled",Message_AudioRecorderEnabledDescription:"Requires 'audio/wav' files to be an accepted media type within 'File Upload' settings.",Message_DateFormat:"Date Format",Message_DateFormat_Description:'See also: <a href="http://momentjs.com/docs/#/displaying/format/" target="momemt">Moment.js</a>',Message_deleting_blocked:"This message cannot be deleted anymore",Message_deleting_not_allowed:"Message deleting not allowed",Message_editing_blocked:"This message cannot be edited anymore",Message_editing_not_allowed:"Message editing not allowed",Message_GroupingPeriod:"Grouping Period (in seconds)",Message_GroupingPeriodDescription:"Messages will be grouped with previous message if both are from the same user and the elapsed time was less than the informed time in seconds.",Message_KeepHistory:"Keep Message History",Message_MaxAllowedSize:"Maximum Allowed Message Size",Message_MaxAll:"Maximum channel size for ALL message",Message_pinned:"Message pinned",Message_pinning_not_allowed:"Message pinning not allowed",Message_removed:"Message removed",Message_ShowDeletedStatus:"Show Deleted Status",Message_ShowEditedStatus:"Show Edited Status",Message_ShowFormattingTips:"Show Formatting Tips",Message_TimeFormat:"Time Format",Message_TimeFormat_Description:'See also: <a href="http://momentjs.com/docs/#/displaying/format/" target="momemt">Moment.js</a>',Message_too_long:"Message too long",Messages:"Messages",Messages_that_are_sent_to_the_Incoming_WebHook_will_be_posted_here:"Messages that are sent to the Incoming WebHook will be posted here.",Meta:"Meta",Meta_fb_app_id:"Facebook App Id","Meta_google-site-verification":"Google Site Verification",Meta_language:"Language",Meta_msvalidate01:"MSValidate.01",Meta_robots:"Robots",minutes:"minutes",Mobile_push:"Mobile push",More_channels:"More channels",More_direct_messages:"More direct messages",More_groups:"More private groups",More_unreads:"More unreads",Msgs:"Msgs",multi:"multi",Mute_someone_in_room:"Mute someone in the room",Mute_user:"Mute user",Muted:"Muted",My_Account:"My Account",n_messages:"%s messages",N_new_messages:"%s new messages",Name:"Name",Name_cant_be_empty:"Name can't be empty",Name_of_agent:"Name of agent",Name_optional:"Name (optional)",Navigation_History_20_last_pages:"Navigation History (20 last pages)",New_Application:"New Application",New_Custom_Field:"New Custom Field",New_Department:"New Department",New_integration:"New integration",New_logs:"New logs",New_messages:"New messages",New_password:"New password",New_role:"New role","No_channel_with_name_%s_was_found":'No channel with name <strong>"%s"</strong> was found!',No_channels_yet:"You aren't part of any channel yet.",No_direct_messages_yet:"You haven't started any conversations yet.",No_Encryption:"No Encryption",No_favorites_yet:"You haven't added any favorites yet.","No_group_with_name_%s_was_found":'No private group with name <strong>"%s"</strong> was found!',No_groups_yet:"You have no private groups yet.",No_livechats:"You have no livechats.",No_mentions_found:"No mentions found",No_permission_to_view_room:"You don't have permission to view this room",No_pinned_messages:"No pinned messages",No_results_found:"No results found",No_starred_messages:"No starred messages",no_tokens_for_this_user:"There are no tokens for this user","No_user_with_username_%s_was_found":'No user with username <strong>"%s"</strong> was found!',Not_allowed:"Not allowed",Not_authorized:"Not authorized",Not_Available:"Not Available",Not_found_or_not_allowed:"Not Found or Not Allowed",Nothing:"Nothing",Nothing_found:"Nothing found",Notifications:"Notifications",Notify_all_in_this_room:"Notify all in this room",Num_Agents:"# Agents",Number_of_messages:"Number of messages",OAuth_Application:"OAuth Application",OAuth_Applications:"OAuth Applications",Objects:"Objects",Off_the_record_conversation:"Off-the-record Conversation",Off_the_record_conversation_is_not_available_for_your_browser_or_device:"Off-the-record conversation is not available for your browser or device.",Offline_DM_Email:"[__site__] You have been direct messaged by __user__",Offline_Mention_Email:"[__site__] You have been mentioned by __user__ in #__room__",Old_and_new_password_must_be_different:"The new password must be different from the old password.",Old_and_new_password_required:"You need to provide both old and new password for changing your password.",Online:"Online",Only_errors:"Only errors",Only_you_can_see_this_message:"Only you can see this message","Oops!":"Oops",Open:"Open",Opened:"Opened",Opt_out_statistics:"Don't send my statistics to Rocket.Chat",Opt_out_statistics_warning:"By sending your statistics, you'll help us identify how many instances of Rocket.Chat are deployed, as well as how good the system is behaving, so we can further improve it. Don't worry, as no user information is sent and all the information we receive is kept confidential. If you want to continue sending us your statistics, uncheck the above checkbox. Thank you.",optional:"optional",Order:"Order",OS_Arch:"OS Arch",OS_Cpus:"OS CPU Count",OS_Freemem:"OS Free Memory",OS_Loadavg:"OS Load Average",OS_Platform:"OS Platform",OS_Release:"OS Release",OS_Totalmem:"OS Total Memory",OS_Type:"OS Type",OS_Uptime:"OS Uptime",others:"others",OTR:"OTR",OTR_is_only_available_when_both_users_are_online:"OTR is only available when both users are online",Override_URL_to_which_files_are_uploaded_This_url_also_used_for_downloads_unless_a_CDN_is_given:"Override URL to which files are uploaded. This url also used for downloads unless a CDN is given",Password:"Password",Password_Change_Disabled:"Your Rocket.Chat administrator has disabled the changing of passwords",Password_changed_successfully:"Password changed successfully",Payload:"Payload",People:"People",Permissions:"Permissions",Pin_Message:"Pin Message",Pinned_a_message:"Pinned a message:",Pinned_Messages:"Pinned Messages",Placeholder_for_email_or_username_login_field:"Placeholder for email or username login field",Placeholder_for_password_login_field:"Placeholder for password login field",Please_answer_survey:"Please take a moment to answer a quick survey about this chat",Please_enter_value_for_url:"Please enter a value for the url of your avatar.",Please_enter_your_new_password_below:"Please enter your new password below:",Please_fill_a_label:"Please fill a label",Please_fill_a_name:"Please fill a name",Please_fill_a_username:"Please fill a username",Please_fill_name_and_email:"Please fill name and email",Please_re_enter_your_password:"Please re-enter your password",Please_select_enabled_yes_or_no:"Please select an option for Enabled",Please_wait:"Please wait",Please_wait_activation:"Please wait, this can take some time.",Please_wait_statistics:"Please wait, statistics are being generated.",Please_wait_while_OTR_is_being_established:"Please wait while OTR is being established",Please_wait_while_your_account_is_being_deleted:"Please wait while your account is being deleted...",Please_wait_while_your_profile_is_being_saved:"Please wait while your profile is being saved...",Post_as:"Post as",Post_to_Channel:"Post to Channel",Post_to_s_as_s:"Post to <strong>%s</strong> as <strong>%s</strong>",Powered_by:"Powered by",Preferences:"Preferences",Preferences_saved:"Preferences saved",
|
||
Privacy:"Privacy",Private_Group:"Private Group",Private_Groups:"Private Groups",Private_Groups_list:"List of Private Groups",Profile:"Profile",Profile_saved_successfully:"Profile saved successfully",Proudly_developed:"Proudly developed with Meteor",Push:"Push",Push_apn_cert:"APN Cert",Push_apn_dev_cert:"APN Dev Cert",Push_apn_dev_key:"APN Dev Key",Push_apn_dev_passphrase:"APN Dev Passphrase",Push_apn_key:"APN Key",Push_apn_passphrase:"APN Passphrase",Push_debug:"Debug",push_disabled:"Push disabled",Push_enable:"Enable",Push_enable_gateway:"Enable Gateway",Push_gateway:"Gateway",Push_gcm_api_key:"GCM API Key",Push_gcm_project_number:"GCM Project Number",Push_production:"Production",Push_show_message:"Show message in notification",Push_show_username_room:"Show channel/group/username in notification",Push_test_push:"Test",Query:"Query",Query_description:'Additional conditions for determining which users to send the email to. Unsubscribed users are automatically removed from the query. It must be a valid JSON. Example: "{"createdAt":{"$gt":{"$date": "2015-01-01T00:00:00.000Z"}}}"',Quick_Search:"Quick Search",quote:"quote",Reactions:"Reactions",Recents:"Recents",Record:"Record",Redirect_URI:"Redirect URI",Refresh_keys:"Refresh keys",Refresh_your_page_after_install_to_enable_screen_sharing:"Refresh your page after install to enable screen sharing",Register:"Register a new account",Registration_Succeeded:"Registration Succeeded",Remember_me:"Remember me",Remove:"Remove",Remove_Admin:"Remove Admin",Remove_as_moderator:"Remove as moderator",Remove_as_owner:"Remove as owner",Remove_custom_oauth:"Remove custom oauth",Remove_from_room:"Remove from room",Remove_someone_from_room:"Remove someone from the room",Removed:"Removed",Require_password_change:"Require password change",Resend_verification_email:"Resend verification email",Reset:"Reset",Reset_password:"Reset password",Restart:"Restart",Restart_the_server:"Restart the server",RocketBot_Enabled:"RocketBot Enabled",RocketBot_Name:"RocketBot Name",RocketBot_Name_Description:"RocketBot name must be a valid username registered on your server.",Role:"Role",Role_Editing:"Role Editing",Role_removed:"Role removed",Room:"Room",Room_archivation_state:"State",Room_archivation_state_false:"Active",Room_archivation_state_true:"Archived",Room_archived:"Room archived",room_changed_privacy:"Room type changed to: <em>__room_type__</em> by <em>__user_by__</em>",room_changed_topic:"Room topic changed to: <em>__room_topic__</em> by <em>__user_by__</em>",Room_has_been_deleted:"Room has been deleted",Room_Info:"Room Info",Room_name_changed:"Room name changed to: <em>__room_name__</em> by <em>__user_by__</em>",Room_name_changed_successfully:"Room name changed successfully",Room_not_found:"Room not found",Room_topic_changed_successfully:"Room topic changed successfully",Room_type_changed_successfully:"Room type changed successfully",Room_unarchived:"Room unarchived",Room_uploaded_file_list:"Files List",Room_uploaded_file_list_empty:"No files available.",room_user_count:"%s users",Rooms:"Rooms",S_new_messages_since_s:"%s new messages since %s",SAML:"SAML",SAML_Custom_Cert:"Custom Certificate",SAML_Custom_Entry_point:"Custom Entry Point",SAML_Custom_Generate_Username:"Generate Username",SAML_Custom_Issuer:"Custom Issuer",SAML_Custom_Provider:"Custom Provider",Save:"Save",Save_changes:"Save changes",Save_Mobile_Bandwidth:"Save Mobile Bandwidth",Save_to_enable_this_action:"Save to enable this action",Saved:"Saved",Saving:"Saving",Scope:"Scope",Screen_Share:"Screen Share",Script_Enabled:"Script Enabled",Search:"Search",Search_by_username:"Search by username",Search_Channels:"Search Channels",Search_Direct_Messages:"Search Direct Messages",Search_Messages:"Search Messages",Search_Private_Groups:"Search Private Groups",Search_settings:"Search settings",seconds:"seconds",See_all:"See all",See_only_online:"Only online",Select_a_department:"Select a department",Select_an_avatar:"Select an avatar",Select_file:"Select file",Select_service_to_login:"Select a service to login to load your picture or upload one directly from your computer",Select_user:"Select user",Select_users:"Select users",Selected_agents:"Selected agents",Selected_users:"Selected members",Send:"Send",Send_a_message:"Send a message",Send_a_test_mail_to_my_user:"Send a test mail to my user",Send_a_test_push_to_my_user:"Send a test push to my user",Send_confirmation_email:"Send confirmation email",Send_data_into_RocketChat_in_realtime:"Send data into Rocket.Chat in real-time.",Send_email:"Send E-mail",Send_invitation_email:"Send invitation email",Send_invitation_email_error:"You haven't provided any valid email address.",Send_invitation_email_info:"You can send multiple email invitations at once.",Send_invitation_email_success:"You have successfully sent an invitation email to the following addresses:",Send_invitation_email_warning:"In order to send invitation emails, you must first configure SMTP settings.",Send_Message:"Send Message",Send_your_JSON_payloads_to_this_URL:"Send your JSON payloads to this URL.",Sending:"Sending...",Set_as_moderator:"Set as moderator",Set_as_owner:"Set as owner",Settings:"Settings",Settings_updated:"Settings updated",Should_be_a_URL_of_an_image:"Should be a URL of an image.",Should_exists_a_user_with_this_username:"The user must already exist.",Show_all:"Show all",Show_more:"Show more",Show_only_online:"Show only online",Show_preregistration_form:"Show pre-registration form",Showing_archived_results:"<p>Showing <b>%s</b> archived results</p>",Showing_online_users:"Showing <b>__total_showing__</b> of __total__ users",Showing_results:"<p>Showing <b>%s</b> results</p>",Silence:"Silence",since_creation:"since %s",Site_Name:"Site Name",Site_Url:"Site URL",Site_Url_Description:"Example: https://chat.domain.com/",Skip:"Skip",Smileys_and_People:"Smileys & People",SMTP:"SMTP",SMTP_Host:"SMTP Host",SMTP_Password:"SMTP Password",SMTP_Port:"SMTP Port",SMTP_Test_Button:"Test SMTP Settings",SMTP_Username:"SMTP Username",Sound:"Sound",Star_Message:"Star Message",Starred_Messages:"Starred Messages",Start_audio_call:"Start audio call",Start_Chat:"Start Chat",Start_of_conversation:"Start of conversation",Start_OTR:"Start OTR",Start_video_call:"Start video call",Start_with_s_for_user_or_s_for_channel_Eg_s_or_s:'Start with <code class="inline">%s</code> for user or <code class="inline">%s</code> for channel. Eg: <code class="inline">%s</code> or <code class="inline">%s</code>',Statistics:"Statistics",Stats_Active_Users:"Active Users",Stats_Avg_Channel_Users:"Average Channel Users",Stats_Avg_Private_Group_Users:"Average Private Group Users",Stats_Away_Users:"Away Users",Stats_Max_Room_Users:"Max Rooms Users",Stats_Non_Active_Users:"Inactive Users",Stats_Offline_Users:"Offline Users",Stats_Online_Users:"Online Users",Stats_Total_Channels:"Total Channels",Stats_Total_Direct_Messages:"Total Direct Message Rooms",Stats_Total_Messages:"Total Messages",Stats_Total_Private_Groups:"Total Private Groups",Stats_Total_Rooms:"Total Rooms",Stats_Total_Users:"Total Users",Stop_Recording:"Stop Recording",strike:"strike",Subject:"Subject",Submit:"Submit",Success:"Success",Survey:"Survey",Survey_instructions:"Rate each question according to your satisfaction, 1 meaning you are completely unsatisfied and 5 meaning you are completely satisfied.",Symbols:"Symbols",Sync_success:"Sync success",Sync_Users:"Sync Users",Test_Connection:"Test Connection",Test_Desktop_Notifications:"Test Desktop Notifications",Thank_you_for_your_feedback:"Thank you for your feedback",The_application_name_is_required:"The application name is required",The_channel_name_is_required:"The channel name is required",The_emails_are_being_sent:"The emails are being sent.",The_field_is_required:"The field %s is required.",The_image_resize_will_not_work_because_we_can_not_detect_ImageMagick_or_GraphicsMagick_installed_in_your_server:"The image resize will not work because we can not detect ImageMagick or GraphicsMagick installed on your server.",The_redirectUri_is_required:"The redirectUri is required",The_server_will_restart_in_s_seconds:"The server will restart in %s seconds",The_setting_s_is_configured_to_s_and_you_are_accessing_from_s:"The setting <strong>%s</strong> is configured to <strong>%s</strong> and you are accessing from <strong>%s</strong>!",The_user_will_be_removed_from_s:"The user will be removed from %s",The_user_wont_be_able_to_type_in_s:"The user won't be able to type in %s",Theme:"Theme","theme-color-action-buttons-color":"Actions Buttons Color","theme-color-active-channel-background-color":"Active Channel Background Color","theme-color-active-channel-font-color":"Active Channel Font Color","theme-color-blockquote-background":"Blockquote Background Color","theme-color-clean-buttons-color":"Clean Buttons Color","theme-color-code-background":"Code Background Color","theme-color-code-border":"Code Border Color","theme-color-code-color":"Code Color","theme-color-content-background-color":"Content Background Color","theme-color-custom-scrollbar-color":"Custom Scrollbar Color","theme-color-info-active-font-color":"Active Info Font Color","theme-color-info-font-color":"Info Font Color","theme-color-input-font-color":"Input Font Color","theme-color-link-font-color":"Link Font Color","theme-color-message-hover-background-color":"Message Hover BG Color","theme-color-primary-background-color":"Primary Background Color","theme-color-primary-font-color":"Primary Font Color","theme-color-quaternary-font-color":"Quaternary Font Color","theme-color-secondary-background-color":"Secondary Background Color","theme-color-secondary-font-color":"Secondary Font Color","theme-color-smallprint-font-color":"Small Print Font Color","theme-color-smallprint-hover-color":"Small Print Hover Color","theme-color-status-away":"Away Status Color","theme-color-status-busy":"Busy Status Color","theme-color-status-offline":"Offline Status Color","theme-color-status-online":"Online Status Color","theme-color-tertiary-background-color":"Tertiary Background Color","theme-color-tertiary-font-color":"Tertiary Font Color","theme-color-unread-notification-color":"Unread Notifications Color","theme-custom-css":"Custom CSS",There_are_no_agents_added_to_this_department_yet:"There are no agents added to this department yet.",There_are_no_integrations:"There are no integrations",There_are_no_users_in_this_role:"There are no users in this role.",This_email_has_already_been_used_and_has_not_been_verified__Please_change_your_password:"This email has already been used and has not been verified. Please change your password.",This_is_a_desktop_notification:"This is a desktop notification",This_is_a_push_test_messsage:"This is a push test messsage",Time_in_seconds:"Time in seconds",Title_bar_color:"Title bar color",To_install_RocketChat_Livechat_in_your_website_copy_paste_this_code_above_the_last_body_tag_on_your_site:"To install Rocket.Chat Livechat in your website, copy & paste this code above the last <strong></body></strong> tag on your site.",To_users:"To Users",Topic:"Topic",Travel_and_Places:"Travel & Places",Trigger_removed:"Trigger removed",Trigger_Words:"Trigger Words",Triggers:"Triggers",True:"True",Type:"Type",Type_your_new_password:"Type your new password",Unarchive:"Unarchive",Unmute_someone_in_room:"Unmute someone in the room",Unmute_user:"Unmute user",Unnamed:"Unnamed",Unpin_Message:"Unpin Message",Unread_Rooms:"Unread Rooms",Unread_Rooms_Mode:"Unread Rooms Mode",Unstar_Message:"Remove Star",Upload_file_question:"Upload file?",Uploading_file:"Uploading file...",Use_account_preference:"Use account preference",Use_Emojis:"Use Emojis",Use_initials_avatar:"Use your username initials",use_menu:"Use the side menu to access your rooms and chats",Use_service_avatar:"Use %s avatar",Use_this_username:"Use this username",Use_uploaded_avatar:"Use uploaded avatar",Use_url_for_avatar:"Use url for avatar",User__username__is_now_a_moderator_of__room_name_:"User __username__ is now a moderator of __room_name__",User__username__is_now_a_owner_of__room_name_:"User __username__ is now a owner of __room_name__",User__username__removed_from__room_name__moderators:"User __username__ removed from __room_name__ moderators",User__username__removed_from__room_name__owners:"User __username__ removed from __room_name__ owners",User_added:"User added",User_added_by:"User <em>__user_added__</em> added by <em>__user_by__</em>.",User_added_successfully:"User added successfully",User_Channels:"User Channels",User_doesnt_exist:"No user exists by the name of `@%s`.",User_has_been_activated:"User has been activated",User_has_been_deactivated:"User has been deactivated",User_has_been_deleted:"User has been deleted",User_has_been_muted_in_s:"User has been muted in %s",User_has_been_removed_from_s:"User has been removed from %s",User_has_disconnected:"User has disconnected",User_Info:"User Info",User_is_no_longer_an_admin:"User is no longer an admin",User_is_not_activated:"User is not activated",User_is_now_an_admin:"User is now an admin",User_joined_channel:"Has joined the channel.",User_joined_channel_female:"Has joined the channel.",User_joined_channel_male:"Has joined the channel.",User_left:"Has left the channel.",User_left_female:"Has left the channel.",User_left_male:"Has left the channel.",User_logged_out:"User is logged out",User_management:"User Management",User_muted_by:"User <em>__user_muted__</em> muted by <em>__user_by__</em>.",User_muted_in_room:"User muted in room",User_not_found:"User not found",User_not_found_or_incorrect_password:"User not found or incorrect password",User_or_channel_name:"User or channel name",User_removed:"User removed",User_removed_by:"User <em>__user_removed__</em> removed by <em>__user_by__</em>.",User_removed_from_room:"The user has been removed from the room",User_Settings:"User Settings",User_unmuted_by:"User <em>__user_unmuted__</em> unmuted by <em>__user_by__</em>.",User_unmuted_in_room:"User unmuted in room",User_updated_successfully:"User updated successfully",Username:"Username",Username_and_message_must_not_be_empty:"Username and message must not be empty.",Username_cant_be_empty:"The username cannot be empty",Username_Change_Disabled:"Your Rocket.Chat administrator has disabled the changing of usernames",Username_denied_the_OTR_session:"__username__ denied the OTR session",Username_description:"The username is used to allow others to mention you in messages.",Username_doesnt_exist:"The username `%s` doesn't exist.",Username_ended_the_OTR_session:"__username__ ended the OTR session",Username_invalid:"<strong>%s</strong> is not a valid username,<br/> use only letters, numbers, dots, hyphens and underscores",Username_is_already_in_here:"`@%s` is already in here.",Username_is_not_in_this_room:"The user `#%s` is not in this room.",Username_not_found:"Username not found",Username_title:"Register username",Username_unavaliable:"<strong>%s</strong> is already in use :(",Username_wants_to_start_otr_Do_you_want_to_accept:"__username__ wants to start OTR. Do you want to accept?",Users:"Users",Users_in_role:"Users in role",UTF8_Names_Slugify:"UTF8 Names Slugify",UTF8_Names_Validation:"UTF8 Names Validation",UTF8_Names_Validation_Description:"Do not allow special characters and spaces. You can use - _ and . but not at the end of the name",Verification_email_sent:"Verification email sent",View_All:"View All",View_Logs:"View Logs",Visibility:"Visibility",Visible:"Visible",Visitor:"Visitor",Visitor_page_URL:"Visitor page URL",Visitor_time_on_site:"Visitor time on site",Wait_activation_warning:"Before you can login, your account must be manually activated by an administrator.",We_are_offline_Sorry_for_the_inconvenience:"We are offline. Sorry for the inconvenience.",We_have_sent_password_email:"We have sent you an email with password reset instructions. If you do not receive an email shortly, please come back and try again.",We_have_sent_registration_email:"We have sent you an email to confirm your registration. If you do not receive an email shortly, please come back and try again.",WebRTC_Enable_Channel:"Enable for Public Channels",WebRTC_Enable_Direct:"Enable for Direct Messages",WebRTC_Enable_Private:"Enable for Private Channels",WebRTC_Servers:"STUN/TURN Servers",WebRTC_Servers_Description:"A list of STUN and TURN servers separated by comma.<br/>Username, password and port are allowed in the format `username:password@stun:host:port` or `username:password@turn:host:port`.",Welcome:"Welcome <em>%s</em>.",Welcome_to_the:"Welcome to the",will_be_able_to:"will be able to",With_whom:"With whom",Yes:"Yes",Yes_clear_all:"Yes, clear all!",Yes_delete_it:"Yes, delete it!",Yes_hide_it:"Yes, hide it!",Yes_leave_it:"Yes, leave it!",Yes_mute_user:"Yes, mute user!",Yes_remove_user:"Yes, remove user!",you_are_in_preview_mode_of:"You are in preview mode of channel #<strong>__room_name__</strong>",You_are_logged_in_as:"You are logged in as",You_are_not_authorized_to_view_this_page:"You are not authorized to view this page.",You_are_the_last_owner_Please_set_new_owner_before_leaving_the_room:"You are the last owner. Please set new owner before leaving the room.",You_can_change_a_different_avatar_too:"You can override the avatar used to post from this integration.",You_can_use_an_emoji_as_avatar:"You can also use an emoji as an avatar.",You_have_been_muted:"You have been muted and cannot speak in this room",You_have_not_verified_your_email:"You have not verified your email.",You_have_successfully_unsubscribed:"You have successfully unsubscribed from our Mailling List.",You_informed_an_invalid_FROM_address:"You informed an invalid FROM address.",You_must_provide_the_unsubscribe_link:"You must provide the [unsubscribe] link.",You_need_confirm_email:"You need to confirm your email to login!",You_need_install_an_extension_to_allow_screen_sharing:"You need install an extension to allow screen sharing",You_need_to_change_your_password:"You need to change your password",You_need_to_type_in_your_password_in_order_to_do_this:"You need to type in your password in order to do this!",You_need_to_type_in_your_username_in_order_to_do_this:"You need to type in your username in order to do this!",You_need_to_verifiy_your_email_address_to_get_notications:"You need to verifiy your email address to get notifications",You_should_name_it_to_easily_manage_your_integrations:"You should name it to easily manage your integrations.",You_will_not_be_able_to_recover:"You will not be able to recover this message!",You_will_not_be_able_to_recover_file:"You will not be able to recover this file!",You_wont_receive_email_notifications_because_you_have_not_verified_your_email:"You won't receive email notifications because you have not verified your email.",Your_email_has_been_queued_for_sending:"Your email has been queued for sending",Your_entry_has_been_deleted:"Your entry has been deleted.",Your_file_has_been_deleted:"Your file has been deleted.",Your_mail_was_sent_to_s:"Your mail was sent to %s",Your_Open_Source_solution:"Your own Open Source chat solution",Your_password_is_wrong:"Your password is wrong!",Your_push_was_sent_to_s_devices:"Your push was sent to %s devices"},A._loadLangFileObject("en",O)}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.es=["Spanish (Spain)","Español"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.fa=["Persian","فارسی"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.fi=["Finnish","Suomi"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.fr=["French (France)","Français"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.he=["Hebrew","עברית"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.hr=["Croatian","Hrvatski"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.hu=["Hungarian","Magyar"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.it=["Italian","Italiano"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.ja=["Japanese","日本語"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.km=["Khmer","ភាសាខ្មែរ"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.ko=["Korean","한국어"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.ku=["ku","ku"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.lo=["Lao","ພາສາລາວ"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names["ms-MY"]=["ms-MY","ms-MY"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.nl=["Dutch","Nederlands"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.pl=["Polish","Polski"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.pt=["Portuguese (Portugal)","Português"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.ro=["Romanian","Română"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.ru=["Russian","Русский"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.sq=["Albanian","Shqip"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.sr=["Serbian","Српски језик"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.sv=["Swedish","Svenska"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names["ta-IN"]=["ta-IN","ta-IN"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.tr=["Turkish","Türkçe"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.ug=["Uighur","Uyƣurqə"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.uk=["Ukrainian","Українська"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names["zh-HK"]=["Chinese (Hong Kong)","繁体中文(香港)"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names["zh-TW"]=["Chinese (Taiwan)","繁体中文(台湾)"]}.call(this),function(){var e=Package.underscore._,t="project",o="project";"project"!=t&&(o=A.packages[t].namespace),A.languages_names.zh=["Chinese","中文"]}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:lib"]={RocketChat:E}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;"undefined"==typeof Package&&(Package={}),Package["simple:json-routes"]={}}();
|
||
|
||
!function(){var c=Package.meteor.Meteor,e=Package.check.check,a=Package.check.Match,k=Package.underscore._,n=Package["accounts-base"].Accounts,t=Package["accounts-base"].AccountsClient;"undefined"==typeof Package&&(Package={}),Package["nimble:restivus"]={}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,e=Package.underscore._,c=Package["rocketchat:lib"].RocketChat,t=Package["tap:i18n"].TAPi18next,k=Package["tap:i18n"].TAPi18n;"undefined"==typeof Package&&(Package={}),Package["rocketchat:api"]={}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,e=Package["rocketchat:lib"].RocketChat,c=Package["tap:i18n"].TAPi18next,t=Package["tap:i18n"].TAPi18n;"undefined"==typeof Package&&(Package={}),Package["rocketchat:file"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a;"undefined"==typeof Package&&(Package={}),Package["webapp-hashing"]={WebAppHashing:a}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,e=Package.underscore._,c=Package.webapp.WebApp,t=Package["rocketchat:lib"].RocketChat,k=Package["webapp-hashing"].WebAppHashing,g=Package["tap:i18n"].TAPi18next,P=Package["tap:i18n"].TAPi18n;"undefined"==typeof Package&&(Package={}),Package["rocketchat:assets"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.ecmascript.ECMAScript,o=Package.underscore._,r=Package["rocketchat:lib"].RocketChat,s=Package.mongo.Mongo,i=Package["kadira:flow-router"].FlowRouter,u=Package.tracker.Tracker,a=Package.tracker.Deps,c=Package.templating.Template,l=Package["babel-runtime"].babelHelpers,m=Package["ecmascript-runtime"].Symbol,p=Package["ecmascript-runtime"].Map,f=Package["ecmascript-runtime"].Set,d=Package.promise.Promise,h=Package["tap:i18n"].TAPi18next,k=Package["tap:i18n"].TAPi18n,_=Package.blaze.Blaze,g=Package.blaze.UI,R=Package.blaze.Handlebars,v=Package.spacebars.Spacebars,T=Package.htmljs.HTML,b;(function(){b="object"==typeof b?b:{};var e=b;r.authz={}}).call(this),function(){b="object"==typeof b?b:{};var n=b;this.ChatPermissions=new e.Collection("rocketchat_permissions")}.call(this),function(){b="object"==typeof b?b:{};var n=b;r.models.Roles=new e.Collection("rocketchat_roles"),r.models.Roles.findUsersInRole=function(e,n,o){var t,s,i;return s=this.findOne(e),i=(null!=s?s.scope:void 0)||"Users",null!=(t=r.models[i])&&"function"==typeof t.findUsersInRoles?t.findUsersInRoles(e,n,o):void 0},r.models.Roles.isUserInRoles=function(e,n,t){return n=[].concat(n),o.some(n,function(n){return function(o){var s,i,u;return i=n.findOne(o),u=(null!=i?i.scope:void 0)||"Users",null!=(s=r.models[u])&&"function"==typeof s.isUserInRole?s.isUserInRole(e,o,t):void 0}}(this))}}.call(this),function(){e.subscribe("scopedRoles","Users"),o.isUndefined(r.models.Users)&&(r.models.Users={}),r.models.Users.isUserInRole=function(e,n){var t={_id:e,roles:n};return!o.isUndefined(this.findOne(t))},r.models.Users.findUsersInRoles=function(e,n,o){e=[].concat(e);var t={roles:{$in:e}};return this.find(t,o)}}.call(this),function(){e.subscribe("scopedRoles","Subscriptions"),o.isUndefined(r.models.Subscriptions)&&(r.models.Subscriptions={}),r.models.Subscriptions.isUserInRole=function(e,n,t){var r={rid:t,roles:n};return!o.isUndefined(this.findOne(r))},r.models.Subscriptions.findUsersInRoles=function(e,n,t){e=[].concat(e);var s={roles:{$in:e}};n&&(s.rid=n);var i=this.find(s).fetch(),u=o.compact(o.map(i,function(e){return"undefined"!=typeof e.u&&"undefined"!=typeof e.u._id?e.u._id:void 0}));return r.models.Users.find({_id:{$in:u}},t)}}.call(this),function(){b="object"==typeof b?b:{};var n=b;e.subscribe("roles"),r.authz.subscription=e.subscribe("permissions"),r.AdminBox.addOption({href:"admin-permissions",i18nLabel:"Permissions",permissionGranted:function(){return r.authz.hasAllPermission("access-permissions")}})}.call(this),function(){b="object"==typeof b?b:{};var n=b,t,s,i;s=function(n,t){return o.some(n,function(n){var s;return s=ChatPermissions.findOne(n),o.some(s.roles,function(n){var o,s,i;return s=r.models.Roles.findOne(n),i=null!=s?s.scope:void 0,null!=(o=r.models[i])&&"function"==typeof o.isUserInRole?o.isUserInRole(e.userId(),n,t):void 0})})},t=function(n,t){return o.every(n,function(n){var s;return s=ChatPermissions.findOne(n),o.some(s.roles,function(n){var o,s,i;return s=r.models.Roles.findOne(n),i=null!=s?s.scope:void 0,null!=(o=r.models[i])&&"function"==typeof o.isUserInRole?o.isUserInRole(e.userId(),n,t):void 0})})},c.registerHelper("hasPermission",function(e,n){return i(e,n,s)}),r.authz.hasAllPermission=function(e,n){return i(e,n,t)},r.authz.hasAtLeastOnePermission=function(e,n){return i(e,n,s)},i=function(n,o,t){var s;return(s=e.userId())&&r.authz.subscription.ready()?(n=[].concat(n),t(n,o)):!1}}.call(this),function(){b="object"==typeof b?b:{};var e=b;r.authz.hasRole=function(e,n,o){return n=[].concat(n),r.models.Roles.isUserInRoles(e,n,o)}}.call(this),function(){b="object"==typeof b?b:{};var e=b;i.route("/admin/permissions",{name:"admin-permissions",action:function(e){return r.TabBar.showGroup("admin-permissions"),BlazeLayout.render("main",{center:"pageContainer",pageTitle:t("Permissions"),pageTemplate:"permissions"})}}),i.route("/admin/permissions/:name?/edit",{name:"admin-permissions-edit",action:function(e){return r.TabBar.showGroup("admin-permissions"),BlazeLayout.render("main",{center:"pageContainer",pageTitle:t("Role_Editing"),pageTemplate:"permissionsRole"})}}),i.route("/admin/permissions/new",{name:"admin-permissions-new",action:function(e){return r.TabBar.showGroup("admin-permissions"),BlazeLayout.render("main",{center:"pageContainer",pageTitle:t("Role_Editing"),pageTemplate:"permissionsRole"})}})}.call(this),function(){c.__checkName("permissions"),c.permissions=new c("Template.permissions",function(){var e=this;return T.DIV({"class":"permissions-manager"},"\n ",_.If(function(){return v.call(e.lookup("hasPermission"))},function(){return["\n ",T.A({href:function(){return v.mustache(e.lookup("pathFor"),"admin-permissions-new")},"class":"button primary new-role"},_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"New_role")})),"\n\n ",T.TABLE({border:"1","class":"permission-grid"},"\n ",T.THEAD("\n ",T.TR("\n ",T.TD(T.CharRef({html:" ",str:" "})),"\n ",_.Each(function(){return v.call(e.lookup("role"))},function(){return["\n ",T.TD({title:function(){return v.mustache(e.lookup("description"))}},"\n ",T.A({href:function(){return v.mustache(e.lookup("pathFor"),"admin-permissions-edit",v.kw({name:e.lookup("_id")}))}},"\n ",_.View("lookup:_id",function(){return v.mustache(e.lookup("_id"))}),"\n ",T.I({"class":"icon-edit"}),"\n "),"\n "),"\n "]}),"\n "),"\n "),"\n ",T.TBODY("\n ",_.Each(function(){return v.call(e.lookup("permission"))},function(){return["\n ",T.TR("\n ",T.TD(_.View("lookup:_id",function(){return v.mustache(e.lookup("_id"))})),"\n ",_.Each(function(){return v.call(e.lookup("role"))},function(){return["\n ",T.TD("\n ",T.INPUT({type:"checkbox",name:function(){return["perm[",v.mustache(e.lookup("_id")),"][",v.mustache(v.dot(e.lookup(".."),"_id")),"]"]},"class":"role-permission",value:"1",checked:function(){return v.mustache(e.lookup("granted"),v.dot(e.lookup(".."),"roles"))},"data-role":function(){return v.mustache(e.lookup("_id"))},"data-permission":function(){return v.mustache(v.dot(e.lookup(".."),"_id"))}}),"\n "),"\n "]}),"\n "),"\n "]}),"\n "),"\n "),"\n "]},function(){return["\n ",_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"Not_authorized")}),"\n "]}),"\n ")})}.call(this),function(){b="object"==typeof b?b:{};var n=b;c.permissions.helpers({role:function(){return c.instance().roles.get()},permission:function(){return ChatPermissions.find({},{sort:{_id:1}})},granted:function(e){return null!=e&&-1!==e.indexOf(this._id)?"checked":void 0},hasPermission:function(){return r.authz.hasAllPermission("access-permissions")}}),c.permissions.events({"click .role-permission":function(n,o){var t,r;return t=n.currentTarget.getAttribute("data-permission"),r=n.currentTarget.getAttribute("data-role"),-1===o.permissionByRole[t].indexOf(r)?e.call("authorization:addPermissionToRole",t,r):e.call("authorization:removeRoleFromPermission",t,r)}}),c.permissions.onCreated(function(){return this.roles=new ReactiveVar([]),this.permissionByRole={},this.actions={added:{},removed:{}},u.autorun(function(e){return function(){return e.roles.set(r.models.Roles.find().fetch())}}(this)),u.autorun(function(e){return function(){return ChatPermissions.find().observeChanges({added:function(n,o){return e.permissionByRole[n]=o.roles},changed:function(n,o){return e.permissionByRole[n]=o.roles},removed:function(n){return delete e.permissionByRole[n]}})}}(this))})}.call(this),function(){c.__checkName("permissionsRole"),c.permissionsRole=new c("Template.permissionsRole",function(){var e=this;return T.DIV({"class":"permissions-manager"},"\n ",_.If(function(){return v.call(e.lookup("hasPermission"))},function(){return["\n ",T.A({href:function(){return v.mustache(e.lookup("pathFor"),"admin-permissions")}},_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"Back_to_permissions")})),T.BR(),T.BR(),"\n\n ",v.With(function(){return v.call(e.lookup("role"))},function(){return["\n ",T.FORM({id:"form-role","class":"inline form-role"},"\n ",T.LABEL(_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"Role")})," :"),"\n ",_.If(function(){return v.call(e.lookup("editing"))},function(){return["\n ",T.SPAN(_.View("lookup:_id",function(){return v.mustache(e.lookup("_id"))})),"\n "]},function(){return["\n ",T.INPUT({type:"text",name:"name",value:""}),"\n "]}),"\n ",T.BR(),"\n ",T.LABEL(_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"Description")})," :"),"\n ",T.INPUT({type:"text",name:"description",value:function(){return v.mustache(e.lookup("description"))}}),"\n ",T.BR(),"\n ",T.LABEL(_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"Scope")})," :"),"\n ",T.SELECT({name:"scope",disabled:function(){return v.mustache(e.lookup("protected"))}},"\n ",T.OPTION({value:"Users",selected:function(){return v.mustache(e.lookup("$eq"),e.lookup("scope"),"Users")}},_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"Global")})),"\n ",T.OPTION({value:"Subscriptions",selected:function(){return v.mustache(e.lookup("$eq"),e.lookup("scope"),"Subscriptions")}},_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"Rooms")})),"\n "),"\n ",T.DIV({"class":"form-buttons"},"\n ",T.BUTTON({name:"save","class":"button primary"},_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"Save")})),"\n\n ",_.If(function(){return v.call(e.lookup("editable"))},function(){return["\n ",T.BUTTON({name:"delete","class":"button red delete-role"},_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"Delete")})),"\n "]}),"\n "),"\n "),"\n "]}),"\n\n ",_.If(function(){return v.call(e.lookup("editing"))},function(){return["\n ",T.H2(_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"Users_in_role")})),"\n ",_.If(function(){return v.dataMustache(e.lookup("$eq"),v.dot(e.lookup("role"),"scope"),"Subscriptions")},function(){return["\n ",T.FORM({id:"form-search-room","class":"inline"},"\n ",T.LABEL(_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"Choose_a_room")})),"\n \n ",_._TemplateWith(function(){return{settings:v.call(e.lookup("autocompleteChannelSettings")),name:v.call("room"),"class":v.call("search"),placeholder:v.call(v.dataMustache(e.lookup("_"),"Enter_a_room_name")),autocomplete:v.call("off")}},function(){return v.include(e.lookupTemplate("inputAutocomplete"))}),"\n "),"\n "]}),"\n ",_.If(function(){return v.dataMustache(e.lookup("$or"),v.dataMustache(e.lookup("$eq"),v.dot(e.lookup("role"),"scope"),"Users"),e.lookup("searchRoom"))},function(){return["\n ",_.If(function(){return v.call(e.templateInstance().subscriptionsReady())},function(){return["\n ",T.FORM({id:"form-users","class":"inline"},"\n ",T.LABEL(_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"Add_user")})),"\n ",T.INPUT({type:"text",name:"username",placeholder:function(){return v.mustache(e.lookup("_"),"Enter_a_username")}}),"\n ",T.BUTTON({name:"add","class":"button primary"},_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"Add")})),"\n "),"\n ",T.DIV({"class":"list"},"\n ",T.TABLE("\n ",T.THEAD("\n ",T.TR("\n ",T.TH(T.CharRef({html:" ",str:" "})),"\n ",T.TH({width:"34%"},_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"Name")})),"\n ",T.TH({width:"33%"},_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"Username")})),"\n ",T.TH({width:"33%"},_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"E-mail")})),"\n ",T.TH(T.CharRef({html:" ",str:" "})),"\n "),"\n "),"\n ",T.TBODY("\n ",_.Unless(function(){return v.call(e.lookup("hasUsers"))},function(){return["\n ",T.TR("\n ",T.TD({colspan:"5","class":"empty-role"},_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"There_are_no_users_in_this_role")})),"\n "),"\n "]}),"\n ",_.Each(function(){return v.call(e.lookup("userInRole"))},function(){return["\n ",T.TR({"class":"user-info","data-id":function(){return v.mustache(e.lookup("_id"))}},"\n ",T.TD("\n ",T.DIV({"class":function(){return["user-image status-",v.mustache(e.lookup("status"))]}},"\n ",_._TemplateWith(function(){return{username:v.call(e.lookup("username"))}},function(){return v.include(e.lookupTemplate("avatar"))}),"\n "),"\n "),"\n ",T.TD(_.View("lookup:name",function(){return v.mustache(e.lookup("name"))})),"\n ",T.TD(_.View("lookup:username",function(){return v.mustache(e.lookup("username"))})),"\n ",T.TD(_.View("lookup:emailAddress",function(){return v.mustache(e.lookup("emailAddress"))})),"\n ",T.TD(T.A({href:"#remove","class":"remove-user"},T.I({"class":"icon-block"}))),"\n "),"\n "]}),"\n "),"\n "),"\n "),"\n "]},function(){return["\n ",_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"Loading...")}),"\n "]}),"\n "]}),"\n "]}),"\n "]},function(){return["\n ",_.View("lookup:_",function(){return v.mustache(e.lookup("_"),"Not_authorized")}),"\n "]}),"\n ")})}.call(this),function(){b="object"==typeof b?b:{};var n=b;c.permissionsRole.helpers({role:function(){return r.models.Roles.findOne({_id:i.getParam("name")})||{}},userInRole:function(){return c.instance().usersInRole.get()},editing:function(){return null!=i.getParam("name")},emailAddress:function(){var e;return(null!=(e=this.emails)?e.length:void 0)>0?this.emails[0].address:void 0},hasPermission:function(){return r.authz.hasAllPermission("access-permissions")},"protected":function(){return this["protected"]},editable:function(){return null!=this._id&&!this["protected"]},hasUsers:function(){return c.instance().usersInRole.get()&&c.instance().usersInRole.get().count()>0},searchRoom:function(){return c.instance().searchRoom.get()},autocompleteChannelSettings:function(){return{limit:10,rules:[{collection:"CachedChannelList",subscription:"channelAndPrivateAutocomplete",field:"name",template:c.roomSearch,noMatchTemplate:c.roomSearchEmpty,matchAll:!0,sort:"name",selector:function(e){return{name:e}}}]}}}),c.permissionsRole.events({"click .remove-user":function(n,o){return n.preventDefault(),swal({title:t("Are_you_sure"),type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:t("Yes"),cancelButtonText:t("Cancel"),closeOnConfirm:!1,html:!1},function(n){return function(){return e.call("authorization:removeUserFromRole",i.getParam("name"),n.username,o.searchRoom.get(),function(e,n){return e?toastr.error(t(e.reason||e.error)):swal({title:t("Removed"),text:t("User_removed"),type:"success",timer:1e3,showConfirmButton:!1})})}}(this))},"submit #form-role":function(n,o){var r,s;return n.preventDefault(),r=n.currentTarget.elements.save.value,n.currentTarget.elements.save.value=t("Saving"),s={description:n.currentTarget.elements.description.value,scope:n.currentTarget.elements.scope.value},this._id?s.name=this._id:s.name=n.currentTarget.elements.name.value,e.call("authorization:saveRole",s,function(e){return function(o,u){return n.currentTarget.elements.save.value=r,o?toastr.error(t(o.reason||o.error)):(toastr.success(t("Saved")),null==e._id?i.go("admin-permissions-edit",{name:s.name}):void 0)}}(this))},"submit #form-users":function(n,o){var r;return n.preventDefault(),""===n.currentTarget.elements.username.value.trim()?toastr.error(t("Please_fill_a_username")):(r=n.currentTarget.elements.add.value,n.currentTarget.elements.add.value=t("Saving"),e.call("authorization:addUserToRole",i.getParam("name"),n.currentTarget.elements.username.value,o.searchRoom.get(),function(e){return function(e,s){return n.currentTarget.elements.add.value=r,e?toastr.error(t(e.reason||e.error)):(o.subscribe("usersInRole",i.getParam("name"),o.searchRoom.get()),toastr.success(t("User_added")),n.currentTarget.reset())}}(this)))},"submit #form-search-room":function(e){return e.preventDefault()},"click .delete-role":function(n,o){return n.preventDefault(),this["protected"]?toastr.error(t("Cannot_delete_a_protected_role")):e.call("authorization:deleteRole",this._id,function(e,n){return e?toastr.error(t(e.reason||e.error)):(toastr.success(t("Role_removed")),i.go("admin-permissions"))})},"autocompleteselect input":function(e,n,o){return n.searchRoom.set(o._id)}}),c.permissionsRole.onCreated(function(){return this.searchRoom=new ReactiveVar,this.usersInRole=new ReactiveVar,this.subscribe("roles",i.getParam("name")),this.autorun(function(e){return function(){return e.searchRoom.get()&&e.subscribe("roomSubscriptionsByRole",e.searchRoom.get(),i.getParam("name")),e.subscribe("usersInRole",i.getParam("name"),e.searchRoom.get()),e.usersInRole.set(r.models.Roles.findUsersInRole(i.getParam("name"),e.searchRoom.get(),{sort:{username:1}}))}}(this))})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:authorization"]={}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,e=Package["rocketchat:lib"].RocketChat,r=Package["tap:i18n"].TAPi18next,n=Package["tap:i18n"].TAPi18n,i;(function(){i="object"==typeof i?i:{};var r=i,n;n=function(){function r(r){var n,i,a,s,o,c,h,u,l;if(_.trim(r.html)){for(l=new RegExp(e.settings.get("AutoLinker_UrlsRegExp")),n=new Autolinker({stripPrefix:e.settings.get("AutoLinker_StripPrefix"),urls:e.settings.get("AutoLinker_Urls"),email:e.settings.get("AutoLinker_Email"),phone:e.settings.get("AutoLinker_Phone"),twitter:!1,replaceFn:function(e,r){var n;return"url"===r.getType()&&l.test(r.matchedText)?0===r.matchedText.indexOf(t.absoluteUrl())?(n=r.buildTag(),n.setAttr("target",""),n):!0:null}}),u=/(```\w*[\n ]?[\s\S]*?```+?)|(`(?:[^`]+)`)/,e.settings.get("Katex_Enabled")&&(u=/(```\w*[\n ]?[\s\S]*?```+?)|(`(?:[^`]+)`)|(\\\(\w*[\n ]?[\s\S]*?\\\)+?)/),c=r.html.split(u),s=a=0,o=c.length;o>a;s=++a)h=c[s],(null!=(null!=h?h.length:void 0))>0&&(i=h.match(u),null==i&&(c[s]=n.link(h)));r.html=c.join("")}return r}return r}(),e.callbacks.add("renderMessage",n)}).call(this),function(){!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.Autolinker=e()}(this,function(){var t=function(e){e=e||{},this.version=t.version,this.urls=this.normalizeUrlsCfg(e.urls),this.email="boolean"==typeof e.email?e.email:!0,this.twitter="boolean"==typeof e.twitter?e.twitter:!0,this.phone="boolean"==typeof e.phone?e.phone:!0,this.hashtag=e.hashtag||!1,this.newWindow="boolean"==typeof e.newWindow?e.newWindow:!0,this.stripPrefix="boolean"==typeof e.stripPrefix?e.stripPrefix:!0;var r=this.hashtag;if(r!==!1&&"twitter"!==r&&"facebook"!==r&&"instagram"!==r)throw new Error("invalid `hashtag` cfg - see docs");this.truncate=this.normalizeTruncateCfg(e.truncate),this.className=e.className||"",this.replaceFn=e.replaceFn||null,this.htmlParser=null,this.matchers=null,this.tagBuilder=null};return t.link=function(e,r){var n=new t(r);return n.link(e)},t.version="0.25.2",t.prototype={constructor:t,normalizeUrlsCfg:function(t){return null==t&&(t=!0),"boolean"==typeof t?{schemeMatches:t,wwwMatches:t,tldMatches:t}:{schemeMatches:"boolean"==typeof t.schemeMatches?t.schemeMatches:!0,wwwMatches:"boolean"==typeof t.wwwMatches?t.wwwMatches:!0,tldMatches:"boolean"==typeof t.tldMatches?t.tldMatches:!0}},normalizeTruncateCfg:function(e){return"number"==typeof e?{length:e,location:"end"}:t.Util.defaults(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})},parse:function(t){for(var e=this.getHtmlParser(),r=e.parse(t),n=0,i=[],a=0,s=r.length;s>a;a++){var o=r[a],c=o.getType();if("element"===c&&"a"===o.getTagName())o.isClosing()?n=Math.max(n-1,0):n++;else if("text"===c&&0===n){var h=this.parseText(o.getText(),o.getOffset());i.push.apply(i,h)}}return i=this.compactMatches(i),i=this.removeUnwantedMatches(i)},compactMatches:function(t){t.sort(function(t,e){return t.getOffset()-e.getOffset()});for(var e=0;e<t.length-1;e++)for(var r=t[e],n=r.getOffset()+r.getMatchedText().length;e+1<t.length&&t[e+1].getOffset()<=n;)t.splice(e+1,1);return t},removeUnwantedMatches:function(e){var r=t.Util.remove;return this.hashtag||r(e,function(t){return"hashtag"===t.getType()}),this.email||r(e,function(t){return"email"===t.getType()}),this.phone||r(e,function(t){return"phone"===t.getType()}),this.twitter||r(e,function(t){return"twitter"===t.getType()}),this.urls.schemeMatches||r(e,function(t){return"url"===t.getType()&&"scheme"===t.getUrlMatchType()}),this.urls.wwwMatches||r(e,function(t){return"url"===t.getType()&&"www"===t.getUrlMatchType()}),this.urls.tldMatches||r(e,function(t){return"url"===t.getType()&&"tld"===t.getUrlMatchType()}),e},parseText:function(t,e){e=e||0;for(var r=this.getMatchers(),n=[],i=0,a=r.length;a>i;i++){for(var s=r[i].parseMatches(t),o=0,c=s.length;c>o;o++)s[o].setOffset(e+s[o].getOffset());n.push.apply(n,s)}return n},link:function(t){if(!t)return"";for(var e=this.parse(t),r=[],n=0,i=0,a=e.length;a>i;i++){var s=e[i];r.push(t.substring(n,s.getOffset())),r.push(this.createMatchReturnVal(s)),n=s.getOffset()+s.getMatchedText().length}return r.push(t.substring(n)),r.join("")},createMatchReturnVal:function(e){var r;if(this.replaceFn&&(r=this.replaceFn.call(this,this,e)),"string"==typeof r)return r;if(r===!1)return e.getMatchedText();if(r instanceof t.HtmlTag)return r.toAnchorString();var n=e.buildTag();return n.toAnchorString()},getHtmlParser:function(){var e=this.htmlParser;return e||(e=this.htmlParser=new t.htmlParser.HtmlParser),e},getMatchers:function(){if(this.matchers)return this.matchers;var e=t.matcher,r=this.getTagBuilder(),n=[new e.Hashtag({tagBuilder:r,serviceName:this.hashtag}),new e.Email({tagBuilder:r}),new e.Phone({tagBuilder:r}),new e.Twitter({tagBuilder:r}),new e.Url({tagBuilder:r,stripPrefix:this.stripPrefix})];return this.matchers=n},getTagBuilder:function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new t.AnchorTagBuilder({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e}},t.match={},t.matcher={},t.htmlParser={},t.truncate={},t.Util={abstractMethod:function(){throw"abstract"},trimRegex:/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,assign:function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},defaults:function(t,e){for(var r in e)e.hasOwnProperty(r)&&void 0===t[r]&&(t[r]=e[r]);return t},extend:function(e,r){var n=e.prototype,i=function(){};i.prototype=n;var a;a=r.hasOwnProperty("constructor")?r.constructor:function(){n.constructor.apply(this,arguments)};var s=a.prototype=new i;return s.constructor=a,s.superclass=n,delete r.constructor,t.Util.assign(s,r),a},ellipsis:function(t,e,r){return t.length>e&&(r=null==r?"..":r,t=t.substring(0,e-r.length)+r),t},indexOf:function(t,e){if(Array.prototype.indexOf)return t.indexOf(e);for(var r=0,n=t.length;n>r;r++)if(t[r]===e)return r;return-1},remove:function(t,e){for(var r=t.length-1;r>=0;r--)e(t[r])===!0&&t.splice(r,1)},splitAndCapture:function(t,e){for(var r,n=[],i=0;r=e.exec(t);)n.push(t.substring(i,r.index)),n.push(r[0]),i=r.index+r[0].length;return n.push(t.substring(i)),n},trim:function(t){return t.replace(this.trimRegex,"")}},t.HtmlTag=t.Util.extend(Object,{whitespaceRegex:/\s+/,constructor:function(e){t.Util.assign(this,e),this.innerHtml=this.innerHtml||this.innerHTML},setTagName:function(t){return this.tagName=t,this},getTagName:function(){return this.tagName||""},setAttr:function(t,e){var r=this.getAttrs();return r[t]=e,this},getAttr:function(t){return this.getAttrs()[t]},setAttrs:function(e){var r=this.getAttrs();return t.Util.assign(r,e),this},getAttrs:function(){return this.attrs||(this.attrs={})},setClass:function(t){return this.setAttr("class",t)},addClass:function(e){for(var r,n=this.getClass(),i=this.whitespaceRegex,a=t.Util.indexOf,s=n?n.split(i):[],o=e.split(i);r=o.shift();)-1===a(s,r)&&s.push(r);return this.getAttrs()["class"]=s.join(" "),this},removeClass:function(e){for(var r,n=this.getClass(),i=this.whitespaceRegex,a=t.Util.indexOf,s=n?n.split(i):[],o=e.split(i);s.length&&(r=o.shift());){var c=a(s,r);-1!==c&&s.splice(c,1)}return this.getAttrs()["class"]=s.join(" "),this},getClass:function(){return this.getAttrs()["class"]||""},hasClass:function(t){return-1!==(" "+this.getClass()+" ").indexOf(" "+t+" ")},setInnerHtml:function(t){return this.innerHtml=t,this},getInnerHtml:function(){return this.innerHtml||""},toAnchorString:function(){var t=this.getTagName(),e=this.buildAttrsStr();return e=e?" "+e:"",["<",t,e,">",this.getInnerHtml(),"</",t,">"].join("")},buildAttrsStr:function(){if(!this.attrs)return"";var t=this.getAttrs(),e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r+'="'+t[r]+'"');return e.join(" ")}}),t.RegexLib=function(){var t="A-Za-z\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",e="0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯෦-෯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹0-9",r=t+e,n=new RegExp("["+r+".\\-]*["+r+"\\-]"),i=/(?:international|construction|contractors|enterprises|photography|productions|foundation|immobilien|industries|management|properties|technology|christmas|community|directory|education|equipment|institute|marketing|solutions|vacations|bargains|boutique|builders|catering|cleaning|clothing|computer|democrat|diamonds|graphics|holdings|lighting|partners|plumbing|supplies|training|ventures|academy|careers|company|cruises|domains|exposed|flights|florist|gallery|guitars|holiday|kitchen|neustar|okinawa|recipes|rentals|reviews|shiksha|singles|support|systems|agency|berlin|camera|center|coffee|condos|dating|estate|events|expert|futbol|kaufen|luxury|maison|monash|museum|nagoya|photos|repair|report|social|supply|tattoo|tienda|travel|viajes|villas|vision|voting|voyage|actor|build|cards|cheap|codes|dance|email|glass|house|mango|ninja|parts|photo|press|shoes|solar|today|tokyo|tools|watch|works|aero|arpa|asia|best|bike|blue|buzz|camp|club|cool|coop|farm|fish|gift|guru|info|jobs|kiwi|kred|land|limo|link|menu|mobi|moda|name|pics|pink|post|qpon|rich|ruhr|sexy|tips|vote|voto|wang|wien|wiki|zone|bar|bid|biz|cab|cat|ceo|com|edu|gov|int|kim|mil|net|onl|org|pro|pub|red|tel|uno|wed|xxx|xyz|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw)\b/;return{alphaNumericCharsStr:r,domainNameRegex:n,tldRegex:i}}(),t.AnchorTagBuilder=t.Util.extend(Object,{constructor:function(e){t.Util.assign(this,e)},build:function(e){return new t.HtmlTag({tagName:"a",attrs:this.createAttrs(e.getType(),e.getAnchorHref()),innerHtml:this.processAnchorText(e.getAnchorText())})},createAttrs:function(t,e){var r={href:e},n=this.createCssClass(t);return n&&(r["class"]=n),this.newWindow&&(r.target="_blank",r.rel="noopener noreferrer"),r},createCssClass:function(t){var e=this.className;return e?e+" "+e+"-"+t:""},processAnchorText:function(t){return t=this.doTruncate(t)},doTruncate:function(e){var r=this.truncate;if(!r||!r.length)return e;var n=r.length,i=r.location;return"smart"===i?t.truncate.TruncateSmart(e,n,".."):"middle"===i?t.truncate.TruncateMiddle(e,n,".."):t.truncate.TruncateEnd(e,n,"..")}}),t.htmlParser.HtmlParser=t.Util.extend(Object,{htmlRegex:function(){var t=/!--([\s\S]+?)--/,e=/[0-9a-zA-Z][0-9a-zA-Z:]*/,r=/[^\s\0"'>\/=\x01-\x1F\x7F]+/,n=/(?:"[^"]*?"|'[^']*?'|[^'"=<>`\s]+)/,i=r.source+"(?:\\s*=\\s*"+n.source+")?";return new RegExp(["(?:","<(!DOCTYPE)","(?:","\\s+","(?:",i,"|",n.source+")",")*",">",")","|","(?:","<(/)?","(?:",t.source,"|","(?:","("+e.source+")","(?:","\\s*",i,")*","\\s*/?",")",")",">",")"].join(""),"gi")}(),htmlCharacterEntitiesRegex:/( | |<|<|>|>|"|"|')/gi,parse:function(t){for(var e,r,n=this.htmlRegex,i=0,a=[];null!==(e=n.exec(t));){var s=e[0],o=e[3],c=e[1]||e[4],h=!!e[2],u=e.index,l=t.substring(i,u);l&&(r=this.parseTextAndEntityNodes(i,l),a.push.apply(a,r)),a.push(o?this.createCommentNode(u,s,o):this.createElementNode(u,s,c,h)),i=u+s.length}if(i<t.length){var g=t.substring(i);g&&(r=this.parseTextAndEntityNodes(i,g),a.push.apply(a,r))}return a},parseTextAndEntityNodes:function(e,r){for(var n=[],i=t.Util.splitAndCapture(r,this.htmlCharacterEntitiesRegex),a=0,s=i.length;s>a;a+=2){var o=i[a],c=i[a+1];o&&(n.push(this.createTextNode(e,o)),e+=o.length),c&&(n.push(this.createEntityNode(e,c)),e+=c.length)}return n},createCommentNode:function(e,r,n){return new t.htmlParser.CommentNode({offset:e,text:r,comment:t.Util.trim(n)})},createElementNode:function(e,r,n,i){return new t.htmlParser.ElementNode({offset:e,text:r,tagName:n.toLowerCase(),closing:i})},createEntityNode:function(e,r){return new t.htmlParser.EntityNode({offset:e,text:r})},createTextNode:function(e,r){return new t.htmlParser.TextNode({offset:e,text:r})}}),t.htmlParser.HtmlNode=t.Util.extend(Object,{offset:void 0,text:void 0,constructor:function(e){t.Util.assign(this,e)},getType:t.Util.abstractMethod,getOffset:function(){return this.offset},getText:function(){return this.text}}),t.htmlParser.CommentNode=t.Util.extend(t.htmlParser.HtmlNode,{comment:"",getType:function(){return"comment"},getComment:function(){return this.comment}}),t.htmlParser.ElementNode=t.Util.extend(t.htmlParser.HtmlNode,{tagName:"",closing:!1,getType:function(){return"element"},getTagName:function(){return this.tagName},isClosing:function(){return this.closing}}),t.htmlParser.EntityNode=t.Util.extend(t.htmlParser.HtmlNode,{getType:function(){return"entity"}}),t.htmlParser.TextNode=t.Util.extend(t.htmlParser.HtmlNode,{getType:function(){return"text"}}),t.match.Match=t.Util.extend(Object,{constructor:function(t){this.tagBuilder=t.tagBuilder,this.matchedText=t.matchedText,this.offset=t.offset},getType:t.Util.abstractMethod,getMatchedText:function(){return this.matchedText},setOffset:function(t){this.offset=t},getOffset:function(){return this.offset},getAnchorHref:t.Util.abstractMethod,getAnchorText:t.Util.abstractMethod,buildTag:function(){return this.tagBuilder.build(this)}}),t.match.Email=t.Util.extend(t.match.Match,{constructor:function(e){t.match.Match.prototype.constructor.call(this,e),this.email=e.email},getType:function(){return"email"},getEmail:function(){return this.email},getAnchorHref:function(){return"mailto:"+this.email},getAnchorText:function(){return this.email}}),t.match.Hashtag=t.Util.extend(t.match.Match,{constructor:function(e){t.match.Match.prototype.constructor.call(this,e),this.serviceName=e.serviceName,this.hashtag=e.hashtag},getType:function(){return"hashtag"},getServiceName:function(){return this.serviceName},getHashtag:function(){return this.hashtag},getAnchorHref:function(){var t=this.serviceName,e=this.hashtag;switch(t){case"twitter":return"https://twitter.com/hashtag/"+e;case"facebook":return"https://www.facebook.com/hashtag/"+e;case"instagram":return"https://instagram.com/explore/tags/"+e;default:throw new Error("Unknown service name to point hashtag to: ",t)}},getAnchorText:function(){return"#"+this.hashtag}}),t.match.Phone=t.Util.extend(t.match.Match,{constructor:function(e){t.match.Match.prototype.constructor.call(this,e),this.number=e.number,this.plusSign=e.plusSign},getType:function(){return"phone"},getNumber:function(){return this.number},getAnchorHref:function(){return"tel:"+(this.plusSign?"+":"")+this.number},getAnchorText:function(){return this.matchedText}}),t.match.Twitter=t.Util.extend(t.match.Match,{constructor:function(e){t.match.Match.prototype.constructor.call(this,e),this.twitterHandle=e.twitterHandle},getType:function(){return"twitter"},getTwitterHandle:function(){return this.twitterHandle},getAnchorHref:function(){return"https://twitter.com/"+this.twitterHandle},getAnchorText:function(){return"@"+this.twitterHandle}}),t.match.Url=t.Util.extend(t.match.Match,{constructor:function(e){t.match.Match.prototype.constructor.call(this,e),this.urlMatchType=e.urlMatchType,this.url=e.url,this.protocolUrlMatch=e.protocolUrlMatch,this.protocolRelativeMatch=e.protocolRelativeMatch,this.stripPrefix=e.stripPrefix},urlPrefixRegex:/^(https?:\/\/)?(www\.)?/i,protocolRelativeRegex:/^\/\//,protocolPrepended:!1,getType:function(){return"url"},getUrlMatchType:function(){return this.urlMatchType},getUrl:function(){var t=this.url;return this.protocolRelativeMatch||this.protocolUrlMatch||this.protocolPrepended||(t=this.url="http://"+t,this.protocolPrepended=!0),t},getAnchorHref:function(){var t=this.getUrl();return t.replace(/&/g,"&")},getAnchorText:function(){var t=this.getMatchedText();return this.protocolRelativeMatch&&(t=this.stripProtocolRelativePrefix(t)),this.stripPrefix&&(t=this.stripUrlPrefix(t)),t=this.removeTrailingSlash(t)},stripUrlPrefix:function(t){return t.replace(this.urlPrefixRegex,"")},stripProtocolRelativePrefix:function(t){return t.replace(this.protocolRelativeRegex,"")},removeTrailingSlash:function(t){return"/"===t.charAt(t.length-1)&&(t=t.slice(0,-1)),t}}),t.matcher.Matcher=t.Util.extend(Object,{constructor:function(t){this.tagBuilder=t.tagBuilder},parseMatches:t.Util.abstractMethod}),t.matcher.Email=t.Util.extend(t.matcher.Matcher,{matcherRegex:function(){var e=t.RegexLib.alphaNumericCharsStr,r=new RegExp("["+e+"\\-;:&=+$.,]+@"),n=t.RegexLib.domainNameRegex,i=t.RegexLib.tldRegex;return new RegExp([r.source,n.source,"\\.",i.source].join(""),"gi")}(),parseMatches:function(e){for(var r,n=this.matcherRegex,i=this.tagBuilder,a=[];null!==(r=n.exec(e));){var s=r[0];a.push(new t.match.Email({tagBuilder:i,matchedText:s,offset:r.index,email:s}))}return a}}),t.matcher.Hashtag=t.Util.extend(t.matcher.Matcher,{matcherRegex:new RegExp("#[_"+t.RegexLib.alphaNumericCharsStr+"]{1,139}","g"),nonWordCharRegex:new RegExp("[^"+t.RegexLib.alphaNumericCharsStr+"]"),constructor:function(e){t.matcher.Matcher.prototype.constructor.call(this,e),this.serviceName=e.serviceName},parseMatches:function(e){for(var r,n=this.matcherRegex,i=this.nonWordCharRegex,a=this.serviceName,s=this.tagBuilder,o=[];null!==(r=n.exec(e));){var c=r.index,h=e.charAt(c-1);if(0===c||i.test(h)){var u=r[0],l=r[0].slice(1);o.push(new t.match.Hashtag({tagBuilder:s,matchedText:u,offset:c,serviceName:a,hashtag:l}))}}return o}}),t.matcher.Phone=t.Util.extend(t.matcher.Matcher,{matcherRegex:/(?:(\+)?\d{1,3}[-\040.])?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]\d{4}/g,parseMatches:function(e){for(var r,n=this.matcherRegex,i=this.tagBuilder,a=[];null!==(r=n.exec(e));){var s=r[0],o=s.replace(/\D/g,""),c=!!r[1];a.push(new t.match.Phone({tagBuilder:i,matchedText:s,offset:r.index,number:o,plusSign:c}))}return a}}),t.matcher.Twitter=t.Util.extend(t.matcher.Matcher,{matcherRegex:new RegExp("@[_"+t.RegexLib.alphaNumericCharsStr+"]{1,20}","g"),nonWordCharRegex:new RegExp("[^"+t.RegexLib.alphaNumericCharsStr+"]"),parseMatches:function(e){for(var r,n=this.matcherRegex,i=this.nonWordCharRegex,a=this.tagBuilder,s=[];null!==(r=n.exec(e));){var o=r.index,c=e.charAt(o-1);if(0===o||i.test(c)){var h=r[0],u=r[0].slice(1);s.push(new t.match.Twitter({tagBuilder:a,matchedText:h,offset:o,twitterHandle:u}))}}return s}}),t.matcher.Url=t.Util.extend(t.matcher.Matcher,{matcherRegex:function(){var e=/(?:[A-Za-z][-.+A-Za-z0-9]*:(?![A-Za-z][-.+A-Za-z0-9]*:\/\/)(?!\d+\/?)(?:\/\/)?)/,r=/(?:www\.)/,n=t.RegexLib.domainNameRegex,i=t.RegexLib.tldRegex,a=t.RegexLib.alphaNumericCharsStr,s=new RegExp("["+a+"\\-+&@#/%=~_()|'$*\\[\\]?!:,.;]*["+a+"\\-+&@#/%=~_()|'$*\\[\\]]");return new RegExp(["(?:","(",e.source,n.source,")","|","(","(//)?",r.source,n.source,")","|","(","(//)?",n.source+"\\.",i.source,")",")","(?:"+s.source+")?"].join(""),"gi")}(),wordCharRegExp:/\w/,openParensRe:/\(/g,closeParensRe:/\)/g,constructor:function(e){t.matcher.Matcher.prototype.constructor.call(this,e),this.stripPrefix=e.stripPrefix},parseMatches:function(e){for(var r,n=this.matcherRegex,i=this.stripPrefix,a=this.tagBuilder,s=[];null!==(r=n.exec(e));){var o=r[0],c=r[1],h=r[2],u=r[3],l=r[5],g=r.index,f=u||l,m=e.charAt(g-1);if(t.matcher.UrlMatchValidator.isValid(o,c)&&!(g>0&&"@"===m||g>0&&f&&this.wordCharRegExp.test(m))){if(this.matchHasUnbalancedClosingParen(o))o=o.substr(0,o.length-1);else{var p=this.matchHasInvalidCharAfterTld(o,c);p>-1&&(o=o.substr(0,p))}var d=c?"scheme":h?"www":"tld",x=!!c;s.push(new t.match.Url({tagBuilder:a,matchedText:o,offset:g,urlMatchType:d,url:o,protocolUrlMatch:x,protocolRelativeMatch:!!f,stripPrefix:i}))}}return s},matchHasUnbalancedClosingParen:function(t){var e=t.charAt(t.length-1);if(")"===e){var r=t.match(this.openParensRe),n=t.match(this.closeParensRe),i=r&&r.length||0,a=n&&n.length||0;if(a>i)return!0}return!1},matchHasInvalidCharAfterTld:function(t,e){if(!t)return-1;var r=0;e&&(r=t.indexOf(":"),t=t.slice(r));var n=/^((.?\/\/)?[A-Za-z0-9\u00C0-\u017F\.\-]*[A-Za-z0-9\u00C0-\u017F\-]\.[A-Za-z]+)/,i=n.exec(t);return null===i?-1:(r+=i[1].length,t=t.slice(i[1].length),/^[^.A-Za-z:\/?#]/.test(t)?r:-1)}}),t.matcher.UrlMatchValidator={hasFullProtocolRegex:/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,uriSchemeRegex:/^[A-Za-z][-.+A-Za-z0-9]*:/,hasWordCharAfterProtocolRegex:/:[^\s]*?[A-Za-z\u00C0-\u017F]/,isValid:function(t,e){return!(e&&!this.isValidUriScheme(e)||this.urlMatchDoesNotHaveProtocolOrDot(t,e)||this.urlMatchDoesNotHaveAtLeastOneWordChar(t,e))},isValidUriScheme:function(t){var e=t.match(this.uriSchemeRegex)[0].toLowerCase();return"javascript:"!==e&&"vbscript:"!==e},urlMatchDoesNotHaveProtocolOrDot:function(t,e){return!(!t||e&&this.hasFullProtocolRegex.test(e)||-1!==t.indexOf("."))},urlMatchDoesNotHaveAtLeastOneWordChar:function(t,e){return t&&e?!this.hasWordCharAfterProtocolRegex.test(t):!1}},t.truncate.TruncateEnd=function(e,r,n){return t.Util.ellipsis(e,r,n)},t.truncate.TruncateMiddle=function(t,e,r){if(t.length<=e)return t;var n=e-r.length,i="";return n>0&&(i=t.substr(-1*Math.floor(n/2))),(t.substr(0,Math.ceil(n/2))+r+i).substr(0,e)},t.truncate.TruncateSmart=function(t,e,r){var n=function(t){var e={},r=t,n=r.match(/^([a-z]+):\/\//i);return n&&(e.scheme=n[1],r=r.substr(n[0].length)),n=r.match(/^(.*?)(?=(\?|#|\/|$))/i),n&&(e.host=n[1],r=r.substr(n[0].length)),n=r.match(/^\/(.*?)(?=(\?|#|$))/i),n&&(e.path=n[1],r=r.substr(n[0].length)),n=r.match(/^\?(.*?)(?=(#|$))/i),n&&(e.query=n[1],r=r.substr(n[0].length)),n=r.match(/^#(.*?)$/i),n&&(e.fragment=n[1]),e},i=function(t){var e="";return t.scheme&&t.host&&(e+=t.scheme+"://"),t.host&&(e+=t.host),t.path&&(e+="/"+t.path),t.query&&(e+="?"+t.query),t.fragment&&(e+="#"+t.fragment),e},a=function(t,e){var n=e/2,i=Math.ceil(n),a=-1*Math.floor(n),s="";return 0>a&&(s=t.substr(a)),t.substr(0,i)+r+s};if(t.length<=e)return t;var s=e-r.length,o=n(t);if(o.query){var c=o.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);c&&(o.query=o.query.substr(0,c[1].length),t=i(o))}if(t.length<=e)return t;if(o.host&&(o.host=o.host.replace(/^www\./,""),t=i(o)),t.length<=e)return t;var h="";if(o.host&&(h+=o.host),h.length>=s)return o.host.length==e?(o.host.substr(0,e-r.length)+r).substr(0,e):a(h,s).substr(0,e);var u="";if(o.path&&(u+="/"+o.path),o.query&&(u+="?"+o.query),u){if((h+u).length>=s){if((h+u).length==e)return(h+u).substr(0,e);var l=s-h.length;return(h+a(u,l)).substr(0,e)}h+=u}if(o.fragment){var g="#"+o.fragment;if((h+g).length>=s){if((h+g).length==e)return(h+g).substr(0,e);var f=s-h.length;return(h+a(g,f)).substr(0,e)}h+=g}if(o.scheme&&o.host){var m=o.scheme+"://";if((h+m).length<s)return(m+h).substr(0,e)}if(h.length<=e)return h;var p="";return s>0&&(p=h.substr(-1*Math.floor(s/2))),(h.substr(0,Math.ceil(s/2))+r+p).substr(0,e)},t})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:autolinker"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.underscore._,n=Package.ecmascript.ECMAScript,o=Package["babel-runtime"].babelHelpers,c=Package["ecmascript-runtime"].Symbol,i=Package["ecmascript-runtime"].Map,a=Package["ecmascript-runtime"].Set,r=Package.promise.Promise;(function(){var t=function(e,t,n){var o="undefined"!=typeof window.screenX?window.screenX:window.screenLeft,c="undefined"!=typeof window.screenY?window.screenY:window.screenTop,i="undefined"!=typeof window.outerWidth?window.outerWidth:document.body.clientWidth,a="undefined"!=typeof window.outerHeight?window.outerHeight:document.body.clientHeight-22,r=o+(i-t)/2,d=c+(a-n)/2,s="width="+t+",height="+n+",left="+r+",top="+d+",scrollbars=yes",u=window.open(e,"Login",s);return u.focus&&u.focus(),u};e.loginWithCas=function(n){var o=Random.id(),c=RocketChat.settings.get("CAS_login_url"),i=RocketChat.settings.get("CAS_popup_width"),a=RocketChat.settings.get("CAS_popup_height");if(c)var r=c+"?service="+e.absoluteUrl("_cas/")+o,d=t(r,i||800,a||600),s=setInterval(function(){var e;try{e=d.closed||void 0===d.closed}catch(t){return}e&&(clearInterval(s),Accounts.callLoginMethod({methodArguments:[{cas:{credentialToken:o}}],userCallback:n}))},100)}}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:cas"]={}}();
|
||
|
||
!function(){var n=Package.meteor.Meteor,e=Package["reactive-var"].ReactiveVar,o=Package.tracker.Tracker,a=Package.tracker.Deps,r=Package.templating.Template,i=Package["rocketchat:lib"].RocketChat,c=Package.blaze.Blaze,u=Package.blaze.UI,l=Package.blaze.Handlebars,s=Package.spacebars.Spacebars,p=Package["tap:i18n"].TAPi18next,d=Package["tap:i18n"].TAPi18n,m=Package.htmljs.HTML,f;(function(){f="object"==typeof f?f:{};var t=f;i.ChannelSettings=new(function(){function t(){}var a,r,i;return i=new e({}),a=function(t){if(!(null!=t?t.id:void 0))throw new n.Error("ChannelSettings-addOption-error","Option id was not informed.");return o.nonreactive(function(){var n;return n=i.get(),n[t.id]=t,i.set(n)})},r=function(){var n,t;return n=_.toArray(i.get()),t=_.compact(_.map(n,function(n){return null==n.validation||n.validation()?n:void 0})),_.sortBy(t,"order")},t.prototype.addOption=a,t.prototype.getOptions=r,t}())}).call(this),function(){f="object"==typeof f?f:{};var t=f;n.startup(function(){return i.MessageTypes.registerType({id:"room_changed_privacy",system:!0,message:"room_changed_privacy",data:function(n){var t;return{user_by:null!=(t=n.u)?t.username:void 0,room_type:n.msg}}}),i.MessageTypes.registerType({id:"room_changed_topic",system:!0,message:"room_changed_topic",data:function(n){var t;return{user_by:null!=(t=n.u)?t.username:void 0,room_topic:n.msg}}})})}.call(this),function(){f="object"==typeof f?f:{};var t=f;n.startup(function(){return i.TabBar.addButton({groups:["channel","privategroup","directmessage"],id:"channel-settings",i18nTitle:"Room_Info",icon:"icon-info-circled",template:"channelSettings",order:0})})}.call(this),function(){f="object"==typeof f?f:{};var t=f;n.startup(function(){var n,t;return t=function(n){return o.nonreactive(function(){var t,e,o;return"room_changed_privacy"===n.t&&Session.get("openedRoom")===n.rid?(o="channel"===FlowRouter.current().route.name?"c":"p",RoomManager.close(o+FlowRouter.getParam("name")),e=ChatSubscription.findOne({rid:n.rid}),t="c"===e.t?"channel":"group",FlowRouter.go(t,{name:e.name})):void 0}),n},i.callbacks.add("streamMessage",t,i.callbacks.priority.HIGH),n=function(n){return o.nonreactive(function(){var t;return"r"===n.t&&Session.get("openedRoom")===n.rid?(t="channel"===FlowRouter.current().route.name?"c":"p",RoomManager.close(t+FlowRouter.getParam("name")),FlowRouter.go(FlowRouter.current().route.name,{name:n.msg})):void 0}),n},i.callbacks.add("streamMessage",n,i.callbacks.priority.HIGH)})}.call(this),function(){r.__checkName("channelSettings"),r.channelSettings=new r("Template.channelSettings",function(){var n=this;return m.DIV({"class":"content"},"\n ",m.DIV({"class":"list-view channel-settings"},"\n ",m.DIV({"class":"title"},"\n ",m.H2(c.View("lookup:_",function(){return s.mustache(n.lookup("_"),"Room_Info")})),"\n "),"\n ",m.FORM("\n ",m.UL({"class":"list clearfix"},"\n ",c.If(function(){return s.call(n.lookup("notDirect"))},function(){return["\n ",m.LI("\n ",m.LABEL(c.View("lookup:_",function(){return s.mustache(n.lookup("_"),"Name")})),"\n ",m.DIV("\n ",c.If(function(){return s.dataMustache(n.lookup("editing"),"roomName")},function(){return["\n ",m.INPUT({type:"text",name:"roomName",value:function(){return s.mustache(n.lookup("roomName"))},"class":"editing"})," ",m.BUTTON({type:"button","class":"button secondary cancel"},c.View("lookup:_",function(){return s.mustache(n.lookup("_"),"Cancel")}))," ",m.BUTTON({type:"button","class":"button primary save"},c.View("lookup:_",function(){return s.mustache(n.lookup("_"),"Save")})),"\n "]},function(){return["\n ",m.SPAN(c.View("lookup:roomName",function(){return s.mustache(n.lookup("roomName"))}),c.If(function(){return s.call(n.lookup("canEdit"))},function(){return[" ",m.I({"class":"icon-pencil","data-edit":"roomName"})]})),"\n "]}),"\n "),"\n "),"\n "]}),"\n ",m.LI("\n ",m.LABEL(c.View("lookup:_",function(){return s.mustache(n.lookup("_"),"Topic")})),"\n ",m.DIV("\n ",c.If(function(){return s.dataMustache(n.lookup("editing"),"roomTopic")},function(){return["\n ",m.INPUT({type:"text",name:"roomTopic",value:function(){return s.mustache(n.lookup("roomTopic"))},"class":"editing"})," ",m.BUTTON({type:"button","class":"button secondary cancel"},c.View("lookup:_",function(){return s.mustache(n.lookup("_"),"Cancel")}))," ",m.BUTTON({type:"button","class":"button primary save"},c.View("lookup:_",function(){return s.mustache(n.lookup("_"),"Save")})),"\n "]},function(){return["\n ",m.SPAN(c.View("lookup:RocketChatMarkdown",function(){return s.makeRaw(s.mustache(n.lookup("RocketChatMarkdown"),n.lookup("roomTopic")))}),c.If(function(){return s.call(n.lookup("canEdit"))},function(){return[" ",m.I({"class":"icon-pencil","data-edit":"roomTopic"})]})),"\n "]}),"\n "),"\n "),"\n ",c.If(function(){return s.call(n.lookup("notDirect"))},function(){return["\n ",m.LI("\n ",m.LABEL(c.View("lookup:_",function(){return s.mustache(n.lookup("_"),"Type")})),"\n ",m.DIV("\n ",c.If(function(){return s.dataMustache(n.lookup("editing"),"roomType")},function(){return["\n ",m.LABEL(m.INPUT({type:"radio",name:"roomType","class":"editing",value:"c",checked:function(){return s.mustache(n.lookup("$eq"),n.lookup("roomType"),"c")}})," ",c.View("lookup:_",function(){return s.mustache(n.lookup("_"),"Channel")})),"\n ",m.LABEL(m.INPUT({type:"radio",name:"roomType",value:"p",checked:function(){return s.mustache(n.lookup("$eq"),n.lookup("roomType"),"p")}})," ",c.View("lookup:_",function(){return s.mustache(n.lookup("_"),"Private_Group")})),"\n ",m.BUTTON({type:"button","class":"button secondary cancel"},c.View("lookup:_",function(){return s.mustache(n.lookup("_"),"Cancel")})),"\n ",m.BUTTON({type:"button","class":"button primary save"},c.View("lookup:_",function(){return s.mustache(n.lookup("_"),"Save")})),"\n "]},function(){return["\n ",m.SPAN(c.View("lookup:roomTypeDescription",function(){return s.mustache(n.lookup("roomTypeDescription"))}),c.If(function(){return s.call(n.lookup("canEdit"))},function(){return[" ",m.I({"class":"icon-pencil","data-edit":"roomType"})]})),"\n "]}),"\n "),"\n "),"\n "]}),"\n ",c.If(function(){return s.call(n.lookup("notDirect"))},function(){return["\n ",m.LI("\n ",m.LABEL(c.View("lookup:_",function(){return s.mustache(n.lookup("_"),"Room_archivation_state")})),"\n ",m.DIV("\n ",c.If(function(){return s.dataMustache(n.lookup("editing"),"archivationState")},function(){return["\n ",m.LABEL(m.INPUT({type:"radio",name:"archivationState","class":"editing",value:"true",checked:function(){return s.mustache(n.lookup("$eq"),n.lookup("archivationState"),!0)}})," ",c.View("lookup:_",function(){return s.mustache(n.lookup("_"),"Room_archivation_state_true")})),"\n ",m.LABEL(m.INPUT({type:"radio",name:"archivationState",value:"false",checked:function(){return s.mustache(n.lookup("$neq"),n.lookup("archivationState"),!0)}})," ",c.View("lookup:_",function(){return s.mustache(n.lookup("_"),"Room_archivation_state_false")})),"\n ",m.BUTTON({type:"button","class":"button secondary cancel"},c.View("lookup:_",function(){return s.mustache(n.lookup("_"),"Cancel")})),"\n ",m.BUTTON({type:"button","class":"button primary save"},c.View("lookup:_",function(){return s.mustache(n.lookup("_"),"Save")})),"\n "]},function(){return["\n ",m.SPAN(c.View("lookup:archivationStateDescription",function(){return s.mustache(n.lookup("archivationStateDescription"))}),c.If(function(){return s.call(n.lookup("canArchiveOrUnarchive"))},function(){return[" ",m.I({"class":"icon-pencil","data-edit":"archivationState"})]})),"\n "]}),"\n "),"\n "),"\n "]}),"\n ",c.Each(function(){return s.call(n.lookup("channelSettings"))},function(){return["\n ",c._TemplateWith(function(){return{template:s.call(n.lookup("template")),data:s.call(n.lookup("data"))}},function(){return s.include(function(){return s.call(r.__dynamic)})}),"\n "]}),"\n "),"\n "),"\n "),"\n ")})}.call(this),function(){f="object"==typeof f?f:{};var o=f;r.channelSettings.helpers({canEdit:function(){return i.authz.hasAllPermission("edit-room",this.rid)},canArchiveOrUnarchive:function(){return i.authz.hasAtLeastOnePermission(["archive-room","unarchive-room"],this.rid)},editing:function(n){return r.instance().editing.get()===n},notDirect:function(){var n;return"d"!==(null!=(n=ChatRoom.findOne(this.rid,{fields:{t:1}}))?n.t:void 0)},roomType:function(){var n;return null!=(n=ChatRoom.findOne(this.rid,{fields:{t:1}}))?n.t:void 0},channelSettings:function(){return i.ChannelSettings.getOptions()},roomTypeDescription:function(){var n,e;return e=null!=(n=ChatRoom.findOne(this.rid,{fields:{t:1}}))?n.t:void 0,"c"===e?t("Channel"):"p"===e?t("Private_Group"):void 0},roomName:function(){var n;return null!=(n=ChatRoom.findOne(this.rid,{fields:{name:1}}))?n.name:void 0},roomTopic:function(){var n;return null!=(n=ChatRoom.findOne(this.rid,{fields:{topic:1}}))?n.topic:void 0},archivationState:function(){var n;return null!=(n=ChatRoom.findOne(this.rid,{fields:{archived:1}}))?n.archived:void 0},archivationStateDescription:function(){var n,e;return n=null!=(e=ChatRoom.findOne(this.rid,{fields:{archived:1}}))?e.archived:void 0,t(n===!0?"Room_archivation_state_true":"Room_archivation_state_false")}}),r.channelSettings.events({"keydown input[type=text]":function(n,t){return 13===n.keyCode?(n.preventDefault(),t.saveSetting()):void 0},"click [data-edit]":function(n,t){return n.preventDefault(),t.editing.set($(n.currentTarget).data("edit")),setTimeout(function(){return t.$("input.editing").focus().select()},100)},"click .cancel":function(n,t){return n.preventDefault(),t.editing.set()},"click .save":function(n,t){return n.preventDefault(),t.saveSetting()}}),r.channelSettings.onCreated(function(){return this.editing=new e,this.validateRoomType=function(n){return function(){var e;return e=n.$("input[name=roomType]:checked").val(),"c"!==e&&"p"!==e&&toastr.error(t("Invalid_room_type",e)),!0}}(this),this.validateRoomName=function(n){return function(){var e,o,a,c,u,l;if(u=null!=(a=r.currentData())?a.rid:void 0,l=ChatRoom.findOne(u),!i.authz.hasAllPermission("edit-room",n.rid)||"c"!==(c=l.t)&&"p"!==c)return toastr.error(t("Not_allowed")),!1;e=$("input[name=roomName]").val();try{o=new RegExp("^"+i.settings.get("UTF8_Names_Validation")+"$")}catch(s){o=new RegExp("^[0-9a-zA-Z-_.]+$")}return o.test(e)?!0:(toastr.error(t("Invalid_room_name",e)),!1)}}(this),this.validateRoomTopic=function(n){return function(){return!0}}(this),this.saveSetting=function(t){return function(){var e,o,a,r,i,c,u,l,s;switch(t.editing.get()){case"roomName":s=ChatRoom.findOne(null!=(e=t.data)?e.rid:void 0),$("input[name=roomName]").val()===s.name?toastr.success(d.__("Room_name_changed_successfully")):t.validateRoomName()&&n.call("saveRoomSettings",null!=(o=t.data)?o.rid:void 0,"roomName",t.$("input[name=roomName]").val(),function(n,t){var e;return n?toastr.error("duplicate-name"===(e=n.error)||"name-invalid"===e?d.__(n.reason,n.details.channelName):d.__(n.reason)):toastr.success(d.__("Room_name_changed_successfully"))});break;case"roomTopic":t.validateRoomTopic()&&n.call("saveRoomSettings",null!=(a=t.data)?a.rid:void 0,"roomTopic",t.$("input[name=roomTopic]").val(),function(n,t){return n?toastr.error(d.__(n.reason)):toastr.success(d.__("Room_topic_changed_successfully"))});break;case"roomType":t.validateRoomType()&&n.call("saveRoomSettings",null!=(r=t.data)?r.rid:void 0,"roomType",t.$("input[name=roomType]:checked").val(),function(n,t){return n?toastr.error("invalid-room-type"===n.error?d.__(n.reason,n.details.roomType):d.__(n.reason)):toastr.success(d.__("Room_type_changed_successfully"))});break;case"archivationState":"true"===t.$("input[name=archivationState]:checked").val()?(null!=(i=ChatRoom.findOne(t.data.rid))?i.archived:void 0)!==!0&&n.call("archiveRoom",null!=(c=t.data)?c.rid:void 0,function(n,t){return n?toastr.error(d.__(n.error)):toastr.success(d.__("Room_archived"))}):(null!=(u=ChatRoom.findOne(t.data.rid))?u.archived:void 0)===!0&&n.call("unarchiveRoom",null!=(l=t.data)?l.rid:void 0,function(n,t){return n?toastr.error(d.__(n.error)):toastr.success(d.__("Room_unarchived"))})}return t.editing.set()}}(this)})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:channel-settings"]={}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,e;(function(){!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return Xn.apply(null,arguments)}function e(t){Xn=t}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function i(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function s(t,e){var n=[],i;for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t,e){for(var n in e)r(e,n)&&(t[n]=e[n]);return r(e,"toString")&&(t.toString=e.toString),r(e,"valueOf")&&(t.valueOf=e.valueOf),t}function o(t,e,n,i){return Ct(t,e,n,i,!0).utc()}function u(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function d(t){return null==t._pf&&(t._pf=u()),t._pf}function l(t){if(null==t._isValid){var e=d(t);t._isValid=!(isNaN(t._d.getTime())||!(e.overflow<0)||e.empty||e.invalidMonth||e.invalidWeekday||e.nullInput||e.invalidFormat||e.userInvalidated),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function h(t){var e=o(0/0);return null!=t?a(d(e),t):d(e).userInvalidated=!0,e}function c(t){return void 0===t}function f(t,e){var n,i,s;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=d(e)),c(e._locale)||(t._locale=e._locale),Kn.length>0)for(n in Kn)i=Kn[n],s=e[i],c(s)||(t[i]=s);return t}function m(e){f(this,e),this._d=new Date(null!=e._d?e._d.getTime():0/0),ti===!1&&(ti=!0,t.updateOffset(this),ti=!1)}function _(t){return t instanceof m||null!=t&&null!=t._isAMomentObject}function y(t){return 0>t?Math.ceil(t):Math.floor(t)}function g(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=y(e)),n}function p(t,e,n){var i=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),r=0,a;for(a=0;i>a;a++)(n&&t[a]!==e[a]||!n&&g(t[a])!==g(e[a]))&&r++;return r+s}function v(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(t,e){var n=!0;return a(function(){return n&&(v(t+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),n=!1),e.apply(this,arguments)},e)}function M(t,e){ei[t]||(v(e),ei[t]=!0)}function S(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function Y(t){return"[object Object]"===Object.prototype.toString.call(t)}function w(t){var e,n;for(n in t)e=t[n],S(e)?this[n]=e:this["_"+n]=e;this._config=t,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function k(t,e){var n=a({},t),i;for(i in e)r(e,i)&&(Y(t[i])&&Y(e[i])?(n[i]={},a(n[i],t[i]),a(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);return n}function T(t){null!=t&&this.set(t)}function b(t){return t?t.toLowerCase().replace("_","-"):t}function O(t){for(var e=0,n,i,s,r;e<t.length;){for(r=b(t[e]).split("-"),n=r.length,i=b(t[e+1]),i=i?i.split("-"):null;n>0;){if(s=W(r.slice(0,n).join("-")))return s;if(i&&i.length>=n&&p(r,i,!0)>=n-1)break;n--}e++}return null}function W(t){var e=null;if(!ni[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=ii._abbr,require("./locale/"+t),x(e)}catch(n){}return ni[t]}function x(t,e){var n;return t&&(n=c(e)?G(t):U(t,e),n&&(ii=n)),ii._abbr}function U(t,e){return null!==e?(e.abbr=t,null!=ni[t]?(M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale"),e=k(ni[t]._config,e)):null!=e.parentLocale&&(null!=ni[e.parentLocale]?e=k(ni[e.parentLocale]._config,e):M("parentLocaleUndefined","specified parentLocale is not defined yet")),ni[t]=new T(e),x(t),ni[t]):(delete ni[t],null)}function P(t,e){if(null!=e){var n;null!=ni[t]&&(e=k(ni[t]._config,e)),n=new T(e),n.parentLocale=ni[t],ni[t]=n,x(t)}else null!=ni[t]&&(null!=ni[t].parentLocale?ni[t]=ni[t].parentLocale:null!=ni[t]&&delete ni[t]);return ni[t]}function G(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ii;if(!n(t)){if(e=W(t))return e;t=[t]}return O(t)}function C(){return Object.keys(ni)}function F(t,e){var n=t.toLowerCase();si[n]=si[n+"s"]=si[e]=t}function H(t){return"string"==typeof t?si[t]||si[t.toLowerCase()]:void 0}function L(t){var e={},n,i;for(i in t)r(t,i)&&(n=H(i),n&&(e[n]=t[i]));return e}function V(e,n){return function(i){return null!=i?(A(this,e,i),t.updateOffset(this,n),this):I(this,e)}}function I(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():0/0}function A(t,e,n){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](n)}function R(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else if(t=H(t),S(this[t]))return this[t](e);return this}function j(t,e,n){var i=""+Math.abs(t),s=e-i.length,r=t>=0;return(r?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+i}function E(t,e,n,i){var s=i;"string"==typeof i&&(s=function(){return this[i]()}),t&&(ui[t]=s),e&&(ui[e[0]]=function(){return j(s.apply(this,arguments),e[1],e[2])}),n&&(ui[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function z(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Z(t){var e=t.match(ri),n,i;for(n=0,i=e.length;i>n;n++)ui[e[n]]?e[n]=ui[e[n]]:e[n]=z(e[n]);return function(s){var r="";for(n=0;i>n;n++)r+=e[n]instanceof Function?e[n].call(s,t):e[n];return r}}function N(t,e){return t.isValid()?(e=$(e,t.localeData()),oi[e]=oi[e]||Z(e),oi[e](t)):t.localeData().invalidDate()}function $(t,e){function n(t){return e.longDateFormat(t)||t}var i=5;for(ai.lastIndex=0;i>=0&&ai.test(t);)t=t.replace(ai,n),ai.lastIndex=0,i-=1;return t}function q(t,e,n){Ti[t]=S(e)?e:function(t,i){return t&&n?n:e}}function J(t,e){return r(Ti,t)?Ti[t](e._strict,e._locale):new RegExp(B(t))}function B(t){return Q(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,s){return e||n||i||s}))}function Q(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function X(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(i=function(t,n){n[e]=g(t)}),n=0;n<t.length;n++)bi[t[n]]=i}function K(t,e){X(t,function(t,n,i,s){i._w=i._w||{},e(t,i._w,i,s)})}function tt(t,e,n){null!=e&&r(bi,t)&&bi[t](e,n._a,n,t)}function et(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function nt(t,e){return n(this._months)?this._months[t.month()]:this._months[Li.test(e)?"format":"standalone"][t.month()]}function it(t,e){return n(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Li.test(e)?"format":"standalone"][t.month()]}function st(t,e,n){var i,s,r;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;12>i;i++){if(s=o([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}}function rt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=g(e);else if(e=t.localeData().monthsParse(e),"number"!=typeof e)return t;return n=Math.min(t.date(),et(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function at(e){return null!=e?(rt(this,e),t.updateOffset(this,!0),this):I(this,"Month")}function ot(){return et(this.year(),this.month())}function ut(t){return this._monthsParseExact?(r(this,"_monthsRegex")||lt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex}function dt(t){return this._monthsParseExact?(r(this,"_monthsRegex")||lt.call(this),t?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex}function lt(){function t(t,e){return e.length-t.length}var e=[],n=[],i=[],s,r;for(s=0;12>s;s++)r=o([2e3,s]),e.push(this.monthsShort(r,"")),n.push(this.months(r,"")),i.push(this.months(r,"")),i.push(this.monthsShort(r,""));for(e.sort(t),n.sort(t),i.sort(t),s=0;12>s;s++)e[s]=Q(e[s]),n[s]=Q(n[s]),i[s]=Q(i[s]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")$","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")$","i")}function ht(t){var e,n=t._a;return n&&-2===d(t).overflow&&(e=n[Wi]<0||n[Wi]>11?Wi:n[xi]<1||n[xi]>et(n[Oi],n[Wi])?xi:n[Ui]<0||n[Ui]>24||24===n[Ui]&&(0!==n[Pi]||0!==n[Gi]||0!==n[Ci])?Ui:n[Pi]<0||n[Pi]>59?Pi:n[Gi]<0||n[Gi]>59?Gi:n[Ci]<0||n[Ci]>999?Ci:-1,d(t)._overflowDayOfYear&&(Oi>e||e>xi)&&(e=xi),d(t)._overflowWeeks&&-1===e&&(e=Fi),d(t)._overflowWeekday&&-1===e&&(e=Hi),d(t).overflow=e),t}function ct(t){var e,n,i=t._i,s=ji.exec(i)||Ei.exec(i),r,a,o,u;if(s){for(d(t).iso=!0,e=0,n=Zi.length;n>e;e++)if(Zi[e][1].exec(s[1])){a=Zi[e][0],r=Zi[e][2]!==!1;break}if(null==a)return void(t._isValid=!1);if(s[3]){for(e=0,n=Ni.length;n>e;e++)if(Ni[e][1].exec(s[3])){o=(s[2]||" ")+Ni[e][0];break}if(null==o)return void(t._isValid=!1)}if(!r&&null!=o)return void(t._isValid=!1);if(s[4]){if(!zi.exec(s[4]))return void(t._isValid=!1);u="Z"}t._f=a+(o||"")+(u||""),bt(t)}else t._isValid=!1}function ft(e){var n=$i.exec(e._i);return null!==n?void(e._d=new Date(+n[1])):(ct(e),void(e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e))))}function mt(t,e,n,i,s,r,a){var o=new Date(t,e,n,i,s,r,a);return 100>t&&t>=0&&isFinite(o.getFullYear())&&o.setFullYear(t),o}function _t(t){var e=new Date(Date.UTC.apply(null,arguments));return 100>t&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function yt(t){return gt(t)?366:365}function gt(t){return t%4===0&&t%100!==0||t%400===0}function pt(){return gt(this.year())}function vt(t,e,n){var i=7+e-n,s=(7+_t(t,0,i).getUTCDay()-e)%7;return-s+i-1}function Dt(t,e,n,i,s){var r=(7+n-i)%7,a=vt(t,i,s),o=1+7*(e-1)+r+a,u,d;return 0>=o?(u=t-1,d=yt(u)+o):o>yt(t)?(u=t+1,d=o-yt(t)):(u=t,d=o),{year:u,dayOfYear:d}}function Mt(t,e,n){var i=vt(t.year(),e,n),s=Math.floor((t.dayOfYear()-i-1)/7)+1,r,a;return 1>s?(a=t.year()-1,r=s+St(a,e,n)):s>St(t.year(),e,n)?(r=s-St(t.year(),e,n),a=t.year()+1):(a=t.year(),r=s),{week:r,year:a}}function St(t,e,n){var i=vt(t,e,n),s=vt(t+1,e,n);return(yt(t)-i+s)/7}function Yt(t,e,n){return null!=t?t:null!=e?e:n}function wt(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function kt(t){var e,n,i=[],s,r;if(!t._d){for(s=wt(t),t._w&&null==t._a[xi]&&null==t._a[Wi]&&Tt(t),t._dayOfYear&&(r=Yt(t._a[Oi],s[Oi]),t._dayOfYear>yt(r)&&(d(t)._overflowDayOfYear=!0),n=_t(r,0,t._dayOfYear),t._a[Wi]=n.getUTCMonth(),t._a[xi]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=i[e]=s[e];for(;7>e;e++)t._a[e]=i[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Ui]&&0===t._a[Pi]&&0===t._a[Gi]&&0===t._a[Ci]&&(t._nextDay=!0,t._a[Ui]=0),t._d=(t._useUTC?_t:mt).apply(null,i),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Ui]=24)}}function Tt(t){var e,n,i,s,r,a,o,u;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(r=1,a=4,n=Yt(e.GG,t._a[Oi],Mt(Ft(),1,4).year),i=Yt(e.W,1),s=Yt(e.E,1),(1>s||s>7)&&(u=!0)):(r=t._locale._week.dow,a=t._locale._week.doy,n=Yt(e.gg,t._a[Oi],Mt(Ft(),r,a).year),i=Yt(e.w,1),null!=e.d?(s=e.d,(0>s||s>6)&&(u=!0)):null!=e.e?(s=e.e+r,(e.e<0||e.e>6)&&(u=!0)):s=r),1>i||i>St(n,r,a)?d(t)._overflowWeeks=!0:null!=u?d(t)._overflowWeekday=!0:(o=Dt(n,i,s,r,a),t._a[Oi]=o.year,t._dayOfYear=o.dayOfYear)}function bt(e){if(e._f===t.ISO_8601)return void ct(e);e._a=[],d(e).empty=!0;var n=""+e._i,i,s,r,a,o,u=n.length,l=0;for(r=$(e._f,e._locale).match(ri)||[],i=0;i<r.length;i++)a=r[i],s=(n.match(J(a,e))||[])[0],s&&(o=n.substr(0,n.indexOf(s)),o.length>0&&d(e).unusedInput.push(o),n=n.slice(n.indexOf(s)+s.length),l+=s.length),ui[a]?(s?d(e).empty=!1:d(e).unusedTokens.push(a),tt(a,s,e)):e._strict&&!s&&d(e).unusedTokens.push(a);d(e).charsLeftOver=u-l,n.length>0&&d(e).unusedInput.push(n),d(e).bigHour===!0&&e._a[Ui]<=12&&e._a[Ui]>0&&(d(e).bigHour=void 0),e._a[Ui]=Ot(e._locale,e._a[Ui],e._meridiem),kt(e),ht(e)}function Ot(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(i=t.isPM(n),i&&12>e&&(e+=12),i||12!==e||(e=0),e):e}function Wt(t){var e,n,i,s,r;if(0===t._f.length)return d(t).invalidFormat=!0,void(t._d=new Date(0/0));for(s=0;s<t._f.length;s++)r=0,e=f({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[s],bt(e),l(e)&&(r+=d(e).charsLeftOver,r+=10*d(e).unusedTokens.length,d(e).score=r,(null==i||i>r)&&(i=r,n=e));a(t,n||e)}function xt(t){if(!t._d){var e=L(t._i);t._a=s([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),kt(t)}}function Ut(t){var e=new m(ht(Pt(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Pt(t){var e=t._i,s=t._f;return t._locale=t._locale||G(t._l),null===e||void 0===s&&""===e?h({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),_(e)?new m(ht(e)):(n(s)?Wt(t):s?bt(t):i(e)?t._d=e:Gt(t),l(t)||(t._d=null),t))}function Gt(e){var r=e._i;void 0===r?e._d=new Date(t.now()):i(r)?e._d=new Date(+r):"string"==typeof r?ft(e):n(r)?(e._a=s(r.slice(0),function(t){return parseInt(t,10)}),kt(e)):"object"==typeof r?xt(e):"number"==typeof r?e._d=new Date(r):t.createFromInputFallback(e)}function Ct(t,e,n,i,s){var r={};return"boolean"==typeof n&&(i=n,n=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=s,r._l=n,r._i=t,r._f=e,r._strict=i,Ut(r)}function Ft(t,e,n,i){return Ct(t,e,n,i,!1)}function Ht(t,e){var i,s;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return Ft();for(i=e[0],s=1;s<e.length;++s)(!e[s].isValid()||e[s][t](i))&&(i=e[s]);return i}function Lt(){var t=[].slice.call(arguments,0);return Ht("isBefore",t)}function Vt(){var t=[].slice.call(arguments,0);return Ht("isAfter",t)}function It(t){var e=L(t),n=e.year||0,i=e.quarter||0,s=e.month||0,r=e.week||0,a=e.day||0,o=e.hour||0,u=e.minute||0,d=e.second||0,l=e.millisecond||0;this._milliseconds=+l+1e3*d+6e4*u+36e5*o,this._days=+a+7*r,this._months=+s+3*i+12*n,this._data={},this._locale=G(),this._bubble()}function At(t){return t instanceof It}function Rt(t,e){E(t,0,0,function(){var t=this.utcOffset(),n="+";return 0>t&&(t=-t,n="-"),n+j(~~(t/60),2)+e+j(~~t%60,2)})}function jt(t,e){var n=(e||"").match(t)||[],i=n[n.length-1]||[],s=(i+"").match(Xi)||["-",0,0],r=+(60*s[1])+g(s[2]);return"+"===s[0]?r:-r}function Et(e,n){var s,r;return n._isUTC?(s=n.clone(),r=(_(e)||i(e)?+e:+Ft(e))-+s,s._d.setTime(+s._d+r),t.updateOffset(s,!1),s):Ft(e).local()}function zt(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Zt(e,n){var i=this._offset||0,s;return this.isValid()?null!=e?("string"==typeof e?e=jt(Yi,e):Math.abs(e)<16&&(e=60*e),!this._isUTC&&n&&(s=zt(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),i!==e&&(!n||this._changeInProgress?ue(this,ne(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:zt(this):null!=e?this:0/0}function Nt(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function $t(t){return this.utcOffset(0,t)}function qt(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(zt(this),"m")),this}function Jt(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(jt(Si,this._i)),this}function Bt(t){return this.isValid()?(t=t?Ft(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function Qt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Xt(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t={};if(f(t,this),t=Pt(t),t._a){var e=t._isUTC?o(t._a):Ft(t._a);this._isDSTShifted=this.isValid()&&p(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Kt(){return this.isValid()?!this._isUTC:!1}function te(){return this.isValid()?this._isUTC:!1}function ee(){return this.isValid()?this._isUTC&&0===this._offset:!1}function ne(t,e){var n=t,i=null,s,a,o;return At(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(n={},e?n[e]=t:n.milliseconds=t):(i=Ki.exec(t))?(s="-"===i[1]?-1:1,n={y:0,d:g(i[xi])*s,h:g(i[Ui])*s,m:g(i[Pi])*s,s:g(i[Gi])*s,ms:g(i[Ci])*s}):(i=ts.exec(t))?(s="-"===i[1]?-1:1,n={y:ie(i[2],s),M:ie(i[3],s),w:ie(i[4],s),d:ie(i[5],s),h:ie(i[6],s),m:ie(i[7],s),s:ie(i[8],s)}):null==n?n={}:"object"==typeof n&&("from"in n||"to"in n)&&(o=re(Ft(n.from),Ft(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),a=new It(n),At(t)&&r(t,"_locale")&&(a._locale=t._locale),a}function ie(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function se(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function re(t,e){var n;return t.isValid()&&e.isValid()?(e=Et(e,t),t.isBefore(e)?n=se(t,e):(n=se(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function ae(t){return 0>t?-1*Math.round(-1*t):Math.round(t)}function oe(t,e){return function(n,i){var s,r;return null===i||isNaN(+i)||(M(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period)."),r=n,n=i,i=r),n="string"==typeof n?+n:n,s=ne(n,i),ue(this,s,t),this}}function ue(e,n,i,s){var r=n._milliseconds,a=ae(n._days),o=ae(n._months);e.isValid()&&(s=null==s?!0:s,r&&e._d.setTime(+e._d+r*i),a&&A(e,"Date",I(e,"Date")+a*i),o&&rt(e,I(e,"Month")+o*i),s&&t.updateOffset(e,a||o))}function de(t,e){var n=t||Ft(),i=Et(n,this).startOf("day"),s=this.diff(i,"days",!0),r=-6>s?"sameElse":-1>s?"lastWeek":0>s?"lastDay":1>s?"sameDay":2>s?"nextDay":7>s?"nextWeek":"sameElse",a=e&&(S(e[r])?e[r]():e[r]);return this.format(a||this.localeData().calendar(r,this,Ft(n)))}function le(){return new m(this)}function he(t,e){var n=_(t)?t:Ft(t);return this.isValid()&&n.isValid()?(e=H(c(e)?"millisecond":e),"millisecond"===e?+this>+n:+n<+this.clone().startOf(e)):!1}function ce(t,e){var n=_(t)?t:Ft(t);return this.isValid()&&n.isValid()?(e=H(c(e)?"millisecond":e),"millisecond"===e?+n>+this:+this.clone().endOf(e)<+n):!1}function fe(t,e,n){return this.isAfter(t,n)&&this.isBefore(e,n)}function me(t,e){var n=_(t)?t:Ft(t),i;return this.isValid()&&n.isValid()?(e=H(e||"millisecond"),"millisecond"===e?+this===+n:(i=+n,+this.clone().startOf(e)<=i&&i<=+this.clone().endOf(e))):!1}function _e(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function ye(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function ge(t,e,n){var i,s,r,a;return this.isValid()?(i=Et(t,this),i.isValid()?(s=6e4*(i.utcOffset()-this.utcOffset()),e=H(e),"year"===e||"month"===e||"quarter"===e?(a=pe(this,i),"quarter"===e?a/=3:"year"===e&&(a/=12)):(r=this-i,a="second"===e?r/1e3:"minute"===e?r/6e4:"hour"===e?r/36e5:"day"===e?(r-s)/864e5:"week"===e?(r-s)/6048e5:r),n?a:y(a)):0/0):0/0}function pe(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months"),s,r;return 0>e-i?(s=t.clone().add(n-1,"months"),r=(e-i)/(i-s)):(s=t.clone().add(n+1,"months"),r=(e-i)/(s-i)),-(n+r)}function ve(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function De(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?S(Date.prototype.toISOString)?this.toDate().toISOString():N(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):N(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function Me(e){var n=N(this,e||t.defaultFormat);return this.localeData().postformat(n)}function Se(t,e){return this.isValid()&&(_(t)&&t.isValid()||Ft(t).isValid())?ne({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Ye(t){return this.from(Ft(),t)}function we(t,e){return this.isValid()&&(_(t)&&t.isValid()||Ft(t).isValid())?ne({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ke(t){return this.to(Ft(),t)}function Te(t){var e;return void 0===t?this._locale._abbr:(e=G(t),null!=e&&(this._locale=e),this)}function be(){return this._locale}function Oe(t){switch(t=H(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function We(t){return t=H(t),void 0===t||"millisecond"===t?this:this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")}function xe(){return+this._d-6e4*(this._offset||0)}function Ue(){return Math.floor(+this/1e3)}function Pe(){return this._offset?new Date(+this):this._d}function Ge(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Ce(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Fe(){return this.isValid()?this.toISOString():null}function He(){return l(this)}function Le(){return a({},d(this))}function Ve(){return d(this).overflow}function Ie(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ae(t,e){E(0,[t,t.length],0,e)}function Re(t){return Ze.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function je(t){return Ze.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Ee(){return St(this.year(),1,4)}function ze(){var t=this.localeData()._week;return St(this.year(),t.dow,t.doy)}function Ze(t,e,n,i,s){var r;return null==t?Mt(this,i,s).year:(r=St(t,i,s),e>r&&(e=r),Ne.call(this,t,e,n,i,s))}function Ne(t,e,n,i,s){var r=Dt(t,e,n,i,s),a=_t(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function $e(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function qe(t){return Mt(t,this._week.dow,this._week.doy).week}function Je(){return this._week.dow}function Be(){return this._week.doy}function Qe(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Xe(t){var e=Mt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ke(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function tn(t,e){return n(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]}function en(t){return this._weekdaysShort[t.day()]}function nn(t){return this._weekdaysMin[t.day()]}function sn(t,e,n){var i,s,r;for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;7>i;i++){if(s=Ft([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(s,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(s,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(s,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}}function rn(t){if(!this.isValid())return null!=t?this:0/0;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ke(t,this.localeData()),this.add(t-e,"d")):e}function an(t){if(!this.isValid())return null!=t?this:0/0;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function on(t){return this.isValid()?null==t?this.day()||7:this.day(this.day()%7?t:t-7):null!=t?this:0/0}function un(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function dn(){return this.hours()%12||12}function ln(t,e){E(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function hn(t,e){return e._meridiemParse}function cn(t){return"p"===(t+"").toLowerCase().charAt(0)}function fn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function mn(t,e){e[Ci]=g(1e3*("0."+t))}function _n(){return this._isUTC?"UTC":""}function yn(){return this._isUTC?"Coordinated Universal Time":""}function gn(t){return Ft(1e3*t)}function pn(){return Ft.apply(null,arguments).parseZone()}function vn(t,e,n){var i=this._calendar[t];return S(i)?i.call(e,n):i}function Dn(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function Mn(){return this._invalidDate}function Sn(t){return this._ordinal.replace("%d",t)}function Yn(t){return t}function wn(t,e,n,i){var s=this._relativeTime[n];return S(s)?s(t,e,n,i):s.replace(/%d/i,t)}function kn(t,e){var n=this._relativeTime[t>0?"future":"past"];return S(n)?n(e):n.replace(/%s/i,e)}function Tn(t,e,n,i){var s=G(),r=o().set(i,e);return s[n](r,t)}function bn(t,e,n,i,s){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return Tn(t,e,n,s);var r,a=[];for(r=0;i>r;r++)a[r]=Tn(t,r,n,s);return a}function On(t,e){return bn(t,e,"months",12,"month")}function Wn(t,e){return bn(t,e,"monthsShort",12,"month")}function xn(t,e){return bn(t,e,"weekdays",7,"day")}function Un(t,e){return bn(t,e,"weekdaysShort",7,"day")}function Pn(t,e){return bn(t,e,"weekdaysMin",7,"day")}function Gn(){var t=this._data;return this._milliseconds=ws(this._milliseconds),this._days=ws(this._days),this._months=ws(this._months),t.milliseconds=ws(t.milliseconds),t.seconds=ws(t.seconds),t.minutes=ws(t.minutes),t.hours=ws(t.hours),t.months=ws(t.months),t.years=ws(t.years),this}function Cn(t,e,n,i){var s=ne(e,n);return t._milliseconds+=i*s._milliseconds,t._days+=i*s._days,t._months+=i*s._months,t._bubble()}function Fn(t,e){return Cn(this,t,e,1)}function Hn(t,e){return Cn(this,t,e,-1)}function Ln(t){return 0>t?Math.floor(t):Math.ceil(t)}function Vn(){var t=this._milliseconds,e=this._days,n=this._months,i=this._data,s,r,a,o,u;return t>=0&&e>=0&&n>=0||0>=t&&0>=e&&0>=n||(t+=864e5*Ln(An(n)+e),e=0,n=0),i.milliseconds=t%1e3,s=y(t/1e3),i.seconds=s%60,r=y(s/60),i.minutes=r%60,a=y(r/60),i.hours=a%24,e+=y(a/24),u=y(In(e)),n+=u,e-=Ln(An(u)),o=y(n/12),n%=12,i.days=e,i.months=n,i.years=o,this}function In(t){return 4800*t/146097}function An(t){return 146097*t/4800}function Rn(t){var e,n,i=this._milliseconds;if(t=H(t),"month"===t||"year"===t)return e=this._days+i/864e5,n=this._months+In(e),"month"===t?n:n/12;switch(e=this._days+Math.round(An(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}}function jn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*g(this._months/12)}function En(t){return function(){return this.as(t)}}function zn(t){return t=H(t),this[t+"s"]()}function Zn(t){return function(){return this._data[t]}}function Nn(){return y(this.days()/7)}function $n(t,e,n,i,s){return s.relativeTime(e||1,!!n,t,i)}function qn(t,e,n){var i=ne(t).abs(),s=As(i.as("s")),r=As(i.as("m")),a=As(i.as("h")),o=As(i.as("d")),u=As(i.as("M")),d=As(i.as("y")),l=s<Rs.s&&["s",s]||1>=r&&["m"]||r<Rs.m&&["mm",r]||1>=a&&["h"]||a<Rs.h&&["hh",a]||1>=o&&["d"]||o<Rs.d&&["dd",o]||1>=u&&["M"]||u<Rs.M&&["MM",u]||1>=d&&["y"]||["yy",d];return l[2]=e,l[3]=+t>0,l[4]=n,$n.apply(null,l)}function Jn(t,e){return void 0===Rs[t]?!1:void 0===e?Rs[t]:(Rs[t]=e,!0)}function Bn(t){var e=this.localeData(),n=qn(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function Qn(){var t=js(this._milliseconds)/1e3,e=js(this._days),n=js(this._months),i,s,r;i=y(t/60),s=y(i/60),t%=60,i%=60,r=y(n/12),n%=12;var a=r,o=n,u=e,d=s,l=i,h=t,c=this.asSeconds();return c?(0>c?"-":"")+"P"+(a?a+"Y":"")+(o?o+"M":"")+(u?u+"D":"")+(d||l||h?"T":"")+(d?d+"H":"")+(l?l+"M":"")+(h?h+"S":""):"P0D"}var Xn,Kn=t.momentProperties=[],ti=!1,ei={};t.suppressDeprecationWarnings=!1;var ni={},ii,si={},ri=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ai=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,oi={},ui={},di=/\d/,li=/\d\d/,hi=/\d{3}/,ci=/\d{4}/,fi=/[+-]?\d{6}/,mi=/\d\d?/,_i=/\d\d\d\d?/,yi=/\d\d\d\d\d\d?/,gi=/\d{1,3}/,pi=/\d{1,4}/,vi=/[+-]?\d{1,6}/,Di=/\d+/,Mi=/[+-]?\d+/,Si=/Z|[+-]\d\d:?\d\d/gi,Yi=/Z|[+-]\d\d(?::?\d\d)?/gi,wi=/[+-]?\d+(\.\d{1,3})?/,ki=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Ti={},bi={},Oi=0,Wi=1,xi=2,Ui=3,Pi=4,Gi=5,Ci=6,Fi=7,Hi=8;E("M",["MM",2],"Mo",function(){return this.month()+1}),E("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),E("MMMM",0,0,function(t){return this.localeData().months(this,t)}),F("month","M"),q("M",mi),q("MM",mi,li),q("MMM",function(t,e){return e.monthsShortRegex(t)}),q("MMMM",function(t,e){return e.monthsRegex(t)}),X(["M","MM"],function(t,e){e[Wi]=g(t)-1}),X(["MMM","MMMM"],function(t,e,n,i){var s=n._locale.monthsParse(t,i,n._strict);null!=s?e[Wi]=s:d(n).invalidMonth=t});var Li=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,Vi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ii="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ai=ki,Ri=ki,ji=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,Ei=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,zi=/Z|[+-]\d\d(?::?\d\d)?/,Zi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ni=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],$i=/^\/?Date\((\-?\d+)/i;t.createFromInputFallback=D("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),E("Y",0,0,function(){var t=this.year();return 9999>=t?""+t:"+"+t}),E(0,["YY",2],0,function(){return this.year()%100}),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),F("year","y"),q("Y",Mi),q("YY",mi,li),q("YYYY",pi,ci),q("YYYYY",vi,fi),q("YYYYYY",vi,fi),X(["YYYYY","YYYYYY"],Oi),X("YYYY",function(e,n){
|
||
n[Oi]=2===e.length?t.parseTwoDigitYear(e):g(e)}),X("YY",function(e,n){n[Oi]=t.parseTwoDigitYear(e)}),X("Y",function(t,e){e[Oi]=parseInt(t,10)}),t.parseTwoDigitYear=function(t){return g(t)+(g(t)>68?1900:2e3)};var qi=V("FullYear",!1);t.ISO_8601=function(){};var Ji=D("moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var t=Ft.apply(null,arguments);return this.isValid()&&t.isValid()?this>t?this:t:h()}),Bi=D("moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=Ft.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:h()}),Qi=function(){return Date.now?Date.now():+new Date};Rt("Z",":"),Rt("ZZ",""),q("Z",Yi),q("ZZ",Yi),X(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=jt(Yi,t)});var Xi=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Ki=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,ts=/^(-)?P(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)W)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?$/;ne.fn=It.prototype;var es=oe(1,"add"),ns=oe(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var is=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});E(0,["gg",2],0,function(){return this.weekYear()%100}),E(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ae("gggg","weekYear"),Ae("ggggg","weekYear"),Ae("GGGG","isoWeekYear"),Ae("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),q("G",Mi),q("g",Mi),q("GG",mi,li),q("gg",mi,li),q("GGGG",pi,ci),q("gggg",pi,ci),q("GGGGG",vi,fi),q("ggggg",vi,fi),K(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=g(t)}),K(["gg","GG"],function(e,n,i,s){n[s]=t.parseTwoDigitYear(e)}),E("Q",0,"Qo","quarter"),F("quarter","Q"),q("Q",di),X("Q",function(t,e){e[Wi]=3*(g(t)-1)}),E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),q("w",mi),q("ww",mi,li),q("W",mi),q("WW",mi,li),K(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=g(t)});var ss={dow:0,doy:6};E("D",["DD",2],"Do","date"),F("date","D"),q("D",mi),q("DD",mi,li),q("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),X(["D","DD"],xi),X("Do",function(t,e){e[xi]=g(t.match(mi)[0],10)});var rs=V("Date",!0);E("d",0,"do","day"),E("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),E("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),E("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),q("d",mi),q("e",mi),q("E",mi),q("dd",ki),q("ddd",ki),q("dddd",ki),K(["dd","ddd","dddd"],function(t,e,n,i){var s=n._locale.weekdaysParse(t,i,n._strict);null!=s?e.d=s:d(n).invalidWeekday=t}),K(["d","e","E"],function(t,e,n,i){e[i]=g(t)});var as="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),os="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),us="Su_Mo_Tu_We_Th_Fr_Sa".split("_");E("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),q("DDD",gi),q("DDDD",hi),X(["DDD","DDDD"],function(t,e,n){n._dayOfYear=g(t)}),E("H",["HH",2],0,"hour"),E("h",["hh",2],0,dn),E("hmm",0,0,function(){return""+dn.apply(this)+j(this.minutes(),2)}),E("hmmss",0,0,function(){return""+dn.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),E("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),E("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)}),ln("a",!0),ln("A",!1),F("hour","h"),q("a",hn),q("A",hn),q("H",mi),q("h",mi),q("HH",mi,li),q("hh",mi,li),q("hmm",_i),q("hmmss",yi),q("Hmm",_i),q("Hmmss",yi),X(["H","HH"],Ui),X(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),X(["h","hh"],function(t,e,n){e[Ui]=g(t),d(n).bigHour=!0}),X("hmm",function(t,e,n){var i=t.length-2;e[Ui]=g(t.substr(0,i)),e[Pi]=g(t.substr(i)),d(n).bigHour=!0}),X("hmmss",function(t,e,n){var i=t.length-4,s=t.length-2;e[Ui]=g(t.substr(0,i)),e[Pi]=g(t.substr(i,2)),e[Gi]=g(t.substr(s)),d(n).bigHour=!0}),X("Hmm",function(t,e,n){var i=t.length-2;e[Ui]=g(t.substr(0,i)),e[Pi]=g(t.substr(i))}),X("Hmmss",function(t,e,n){var i=t.length-4,s=t.length-2;e[Ui]=g(t.substr(0,i)),e[Pi]=g(t.substr(i,2)),e[Gi]=g(t.substr(s))});var ds=/[ap]\.?m?\.?/i,ls=V("Hours",!0);E("m",["mm",2],0,"minute"),F("minute","m"),q("m",mi),q("mm",mi,li),X(["m","mm"],Pi);var hs=V("Minutes",!1);E("s",["ss",2],0,"second"),F("second","s"),q("s",mi),q("ss",mi,li),X(["s","ss"],Gi);var cs=V("Seconds",!1);E("S",0,0,function(){return~~(this.millisecond()/100)}),E(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,function(){return 10*this.millisecond()}),E(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),E(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),E(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),E(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),E(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),F("millisecond","ms"),q("S",gi,di),q("SS",gi,li),q("SSS",gi,hi);var fs;for(fs="SSSS";fs.length<=9;fs+="S")q(fs,Di);for(fs="S";fs.length<=9;fs+="S")X(fs,mn);var ms=V("Milliseconds",!1);E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var _s=m.prototype;_s.add=es,_s.calendar=de,_s.clone=le,_s.diff=ge,_s.endOf=We,_s.format=Me,_s.from=Se,_s.fromNow=Ye,_s.to=we,_s.toNow=ke,_s.get=R,_s.invalidAt=Ve,_s.isAfter=he,_s.isBefore=ce,_s.isBetween=fe,_s.isSame=me,_s.isSameOrAfter=_e,_s.isSameOrBefore=ye,_s.isValid=He,_s.lang=is,_s.locale=Te,_s.localeData=be,_s.max=Bi,_s.min=Ji,_s.parsingFlags=Le,_s.set=R,_s.startOf=Oe,_s.subtract=ns,_s.toArray=Ge,_s.toObject=Ce,_s.toDate=Pe,_s.toISOString=De,_s.toJSON=Fe,_s.toString=ve,_s.unix=Ue,_s.valueOf=xe,_s.creationData=Ie,_s.year=qi,_s.isLeapYear=pt,_s.weekYear=Re,_s.isoWeekYear=je,_s.quarter=_s.quarters=$e,_s.month=at,_s.daysInMonth=ot,_s.week=_s.weeks=Qe,_s.isoWeek=_s.isoWeeks=Xe,_s.weeksInYear=ze,_s.isoWeeksInYear=Ee,_s.date=rs,_s.day=_s.days=rn,_s.weekday=an,_s.isoWeekday=on,_s.dayOfYear=un,_s.hour=_s.hours=ls,_s.minute=_s.minutes=hs,_s.second=_s.seconds=cs,_s.millisecond=_s.milliseconds=ms,_s.utcOffset=Zt,_s.utc=$t,_s.local=qt,_s.parseZone=Jt,_s.hasAlignedHourOffset=Bt,_s.isDST=Qt,_s.isDSTShifted=Xt,_s.isLocal=Kt,_s.isUtcOffset=te,_s.isUtc=ee,_s.isUTC=ee,_s.zoneAbbr=_n,_s.zoneName=yn,_s.dates=D("dates accessor is deprecated. Use date instead.",rs),_s.months=D("months accessor is deprecated. Use month instead",at),_s.years=D("years accessor is deprecated. Use year instead",qi),_s.zone=D("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Nt);var ys=_s,gs={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},ps={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},vs="Invalid date",Ds="%d",Ms=/\d{1,2}/,Ss={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Ys=T.prototype;Ys._calendar=gs,Ys.calendar=vn,Ys._longDateFormat=ps,Ys.longDateFormat=Dn,Ys._invalidDate=vs,Ys.invalidDate=Mn,Ys._ordinal=Ds,Ys.ordinal=Sn,Ys._ordinalParse=Ms,Ys.preparse=Yn,Ys.postformat=Yn,Ys._relativeTime=Ss,Ys.relativeTime=wn,Ys.pastFuture=kn,Ys.set=w,Ys.months=nt,Ys._months=Vi,Ys.monthsShort=it,Ys._monthsShort=Ii,Ys.monthsParse=st,Ys._monthsRegex=Ri,Ys.monthsRegex=dt,Ys._monthsShortRegex=Ai,Ys.monthsShortRegex=ut,Ys.week=qe,Ys._week=ss,Ys.firstDayOfYear=Be,Ys.firstDayOfWeek=Je,Ys.weekdays=tn,Ys._weekdays=as,Ys.weekdaysMin=nn,Ys._weekdaysMin=us,Ys.weekdaysShort=en,Ys._weekdaysShort=os,Ys.weekdaysParse=sn,Ys.isPM=cn,Ys._meridiemParse=ds,Ys.meridiem=fn,x("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===g(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),t.lang=D("moment.lang is deprecated. Use moment.locale instead.",x),t.langData=D("moment.langData is deprecated. Use moment.localeData instead.",G);var ws=Math.abs,ks=En("ms"),Ts=En("s"),bs=En("m"),Os=En("h"),Ws=En("d"),xs=En("w"),Us=En("M"),Ps=En("y"),Gs=Zn("milliseconds"),Cs=Zn("seconds"),Fs=Zn("minutes"),Hs=Zn("hours"),Ls=Zn("days"),Vs=Zn("months"),Is=Zn("years"),As=Math.round,Rs={s:45,m:45,h:22,d:26,M:11},js=Math.abs,Es=It.prototype;Es.abs=Gn,Es.add=Fn,Es.subtract=Hn,Es.as=Rn,Es.asMilliseconds=ks,Es.asSeconds=Ts,Es.asMinutes=bs,Es.asHours=Os,Es.asDays=Ws,Es.asWeeks=xs,Es.asMonths=Us,Es.asYears=Ps,Es.valueOf=jn,Es._bubble=Vn,Es.get=zn,Es.milliseconds=Gs,Es.seconds=Cs,Es.minutes=Fs,Es.hours=Hs,Es.days=Ls,Es.weeks=Nn,Es.months=Vs,Es.years=Is,Es.humanize=Bn,Es.toISOString=Qn,Es.toString=Qn,Es.toJSON=Qn,Es.locale=Te,Es.localeData=be,Es.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),Es.lang=is,E("X",0,0,"unix"),E("x",0,0,"valueOf"),q("x",Mi),q("X",wi),X("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),X("x",function(t,e,n){n._d=new Date(g(t))}),t.version="2.12.0",e(Ft),t.fn=ys,t.min=Lt,t.max=Vt,t.now=Qi,t.utc=o,t.unix=gn,t.months=On,t.isDate=i,t.locale=x,t.invalid=h,t.duration=ne,t.isMoment=_,t.weekdays=xn,t.parseZone=pn,t.localeData=G,t.isDuration=At,t.monthsShort=Wn,t.weekdaysMin=Pn,t.defineLocale=U,t.updateLocale=P,t.locales=C,t.weekdaysShort=Un,t.normalizeUnits=H,t.relativeTimeThreshold=Jn,t.prototype=ys;var zs=t;return zs})}).call(this),function(){e=this.moment;try{delete this.moment}catch(t){}}.call(this),"undefined"==typeof Package&&(Package={}),Package["momentjs:moment"]={moment:e}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.templating.Template,n=Package["reactive-var"].ReactiveVar,s=Package["rocketchat:lib"].RocketChat,a=Package["momentjs:moment"].moment,o=Package.blaze.Blaze,l=Package.blaze.UI,i=Package.blaze.Handlebars,r=Package.spacebars.Spacebars,c=Package["tap:i18n"].TAPi18next,u=Package["tap:i18n"].TAPi18n,m=Package.htmljs.HTML,g;(function(){g="object"==typeof g?g:{};var t=g;e.startup(function(){return s.ChannelSettings.addOption({id:"mail-messages",template:"channelSettingsMailMessages",validation:function(){return s.authz.hasAllPermission("mail-messages")}}),s.callbacks.add("roomExit",function(e){var t,n,s;return n=$(".messages-box"),null!=n.get(0)?(t=null!=(s=o.getView(n.get(0)))?s.templateInstance():void 0,null!=t?t.resetSelection(!1):void 0):void 0},s.callbacks.priority.MEDIUM,"room-exit-mail-messages")})}).call(this),function(){t.__checkName("channelSettingsMailMessages"),t.channelSettingsMailMessages=new t("Template.channelSettingsMailMessages",function(){var e=this;return o.If(function(){return r.call(e.lookup("canSendEmail"))},function(){return["\n ",m.LI("\n ",m.LABEL(o.View("lookup:_",function(){return r.mustache(e.lookup("_"),"Mail_Messages")})),"\n ",m.DIV("\n ",m.BUTTON({type:"button","class":"button primary mail-messages"},o.View("lookup:_",function(){return r.mustache(e.lookup("_"),"Choose_messages")})),"\n "),"\n "),"\n "]})})}.call(this),function(){g="object"==typeof g?g:{};var e=g;t.channelSettingsMailMessages.helpers({canSendEmail:function(){return"admin-rooms"!==FlowRouter.getRouteName()}}),t.channelSettingsMailMessages.events({"click button.mail-messages":function(e,t){var n,a;return Session.set("channelSettingsMailMessages",Session.get("openedRoom")),s.TabBar.setTemplate("mailMessagesInstructions"),a=o.getView($(".messages-box")[0]),null!=a&&"function"==typeof a.templateInstance&&"function"==typeof(n=a.templateInstance()).resetSelection?n.resetSelection(!0):void 0}}),t.channelSettingsMailMessages.onCreated(function(){var e,t;return t=o.getView($(".messages-box")[0]),null!=t&&"function"==typeof t.templateInstance&&"function"==typeof(e=t.templateInstance()).resetSelection?e.resetSelection(!1):void 0})}.call(this),function(){t.__checkName("mailMessagesInstructions"),t.mailMessagesInstructions=new t("Template.mailMessagesInstructions",function(){var e=this;return m.DIV({"class":"content"},"\n ",m.DIV({"class":"list-view mail-message"},"\n ",m.DIV({"class":"title"},"\n ",m.H2(o.View("lookup:_",function(){return r.mustache(e.lookup("_"),"Mail_Messages")})),"\n "),"\n ",m.P(o.View("lookup:_",function(){return r.mustache(e.lookup("_"),"Mail_Messages_Instructions")})),"\n ",m.FORM("\n ",m.FIELDSET("\n ",m.DIV({"class":"input-line double-col"},"\n ",m.LABEL(o.View("lookup:_",function(){return r.mustache(e.lookup("_"),"From")})),"\n ",m.DIV(o.View("lookup:name",function(){return r.mustache(e.lookup("name"))})),"\n ",m.DIV(o.View("lookup:email",function(){return r.mustache(e.lookup("email"))})),"\n "),"\n ",m.DIV({"class":"input-line double-col"},"\n ",m.LABEL(o.View("lookup:_",function(){return r.mustache(e.lookup("_"),"To_users")})),"\n ",m.DIV("\n ",o._TemplateWith(function(){return{settings:r.call(e.lookup("autocompleteSettings")),id:r.call("to_users"),name:r.call("to_users"),"class":r.call("search"),autocomplete:r.call("off")}},function(){return r.include(e.lookupTemplate("inputAutocomplete"))}),"\n ",m.UL({"class":"selected-users"},"\n ",o.Each(function(){return r.call(e.lookup("selectedUsers"))},function(){return["\n ",m.LI(o.View("lookup:.",function(){return r.mustache(e.lookup("."))})," ",m.I({"class":"icon-cancel remove-to-user"})),"\n "]}),"\n "),"\n "),"\n "),"\n ",m.DIV({"class":"input-line double-col"},"\n ",m.LABEL(o.View("lookup:_",function(){return r.mustache(e.lookup("_"),"Additional_emails")})),"\n ",m.Raw('<div>\n <input type="text" name="to_emails" value="">\n </div>'),"\n "),"\n ",m.DIV({"class":"input-line double-col"},"\n ",m.LABEL(o.View("lookup:_",function(){return r.mustache(e.lookup("_"),"Subject")})),"\n ",m.DIV("\n ",m.INPUT({type:"text",name:"subject",value:function(){return r.mustache(e.lookup("_"),"Mail_Messages_Subject",e.lookup("roomName"))}}),"\n "),"\n "),"\n "),"\n "),"\n ",m.DIV({"class":"error error-missing-to alert alert-danger",style:"display: none"},"\n ",o.View("lookup:_",function(){return r.mustache(e.lookup("_"),"Mail_Message_Missing_to")}),"\n "),"\n ",m.DIV({"class":"error error-invalid-emails alert alert-danger",style:"display: none"},"\n ",o.View("lookup:_",function(){return r.mustache(e.lookup("_"),"Mail_Message_Invalid_emails",e.lookup("erroredEmails"))}),"\n "),"\n ",m.DIV({"class":"error error-select alert alert-danger",style:"display: none"},"\n ",o.View("lookup:_",function(){return r.makeRaw(r.mustache(e.lookup("_"),"Mail_Message_No_messages_selected_select_all"))}),"\n "),"\n ",m.P({style:"margin-top: 30px"},"\n ",m.BUTTON({type:"button","class":"button secondary cancel"},o.View("lookup:_",function(){return r.mustache(e.lookup("_"),"Cancel")})),"\n ",m.BUTTON({type:"button","class":"button primary send"},o.View("lookup:_",function(){return r.mustache(e.lookup("_"),"Send")})),"\n "),"\n "),"\n ")})}.call(this),function(){g="object"==typeof g?g:{};var a=g;t.mailMessagesInstructions.helpers({name:function(){return e.user().name},email:function(){var t,n;return null!=(t=e.user().emails)&&null!=(n=t[0])?n.address:void 0},roomName:function(){var e;return null!=(e=ChatRoom.findOne(Session.get("openedRoom")))?e.name:void 0},erroredEmails:function(){var e;return null!=(e=t.instance())?e.erroredEmails.get().join(", "):void 0},autocompleteSettings:function(){return{limit:10,rules:[{collection:"CachedChannelList",subscription:"userAutocomplete",field:"username",template:t.userSearch,noMatchTemplate:t.userSearchEmpty,matchAll:!0,filter:{exceptions:t.instance().selectedUsers.get()},selector:function(e){return{username:e}},sort:"username"}]}},selectedUsers:function(){return t.instance().selectedUsers.get()}}),t.mailMessagesInstructions.events({"click .cancel":function(e,t){return t.reset()},"click .send":function(t,n){var s,a,o,l,i,r,c,m,g,p,d;if(n.$(".error").hide(),s=n.$("button.send"),g=s.html(),s.html(u.__("Sending")),d=$(".messages-box .message.selected"),i=!1,0===d.length&&(n.$(".error-select").show(),i=!0),n.$("input[name=to_emails]").val().trim()){for(p=/^(?:.*<)?([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)(?:>?)$/,l=n.$("input[name=to_emails]").val().trim().split(","),r=[],c=0,m=l.length;m>c;c++)o=l[c],p.test(o.trim())||r.push(o.trim());n.erroredEmails.set(r),r.length>0&&(n.$(".error-invalid-emails").show(),i=!0)}else n.selectedUsers.get().length||(n.$(".error-missing-to").show(),i=!0);return i?s.html(g):(a={rid:Session.get("openedRoom"),to_users:n.selectedUsers.get(),to_emails:n.$("input[name=to_emails]").val().trim(),subject:n.$("input[name=subject]").val().trim(),messages:d.map(function(e,t){return t.id}).toArray(),language:localStorage.getItem("userLanguage")},e.call("mailMessages",a,function(e,t){return s.html(g),null!=e?toastr.error(e.reason||e.message):(console.log(t),toastr.success(u.__("Your_email_has_been_queued_for_sending")),n.reset())}))},"click .select-all":function(e,t){var n,s;return t.$(".error-select").hide(),s=o.getView($(".messages-box")[0]),null!=s&&"function"==typeof s.templateInstance&&(s.templateInstance().selectedMessages=_.pluck(null!=(n=ChatMessage.find({rid:Session.get("openedRoom")}))?n.fetch():void 0,"_id")),$(".messages-box .message").addClass("selected")},"autocompleteselect #to_users":function(e,t,n){return t.selectedUsers.set(t.selectedUsers.get().concat(n.username)),e.currentTarget.value="",e.currentTarget.focus()},"click .remove-to-user":function(e,n){var s,a;return s=this,a=t.instance().selectedUsers.get(),a=_.reject(t.instance().selectedUsers.get(),function(e){return e===s.valueOf()}),t.instance().selectedUsers.set(a),$("#to_users").focus()}}),t.mailMessagesInstructions.onCreated(function(){return this.autoCompleteCollection=new Mongo.Collection(null),this.selectedUsers=new n([]),this.erroredEmails=new n([]),this.reset=function(e){return function(){var t,n;return e.selectedUsers.set([]),s.TabBar.setTemplate("channelSettings"),n=o.getView($(".messages-box")[0]),null!=n&&"function"==typeof n.templateInstance&&"function"==typeof(t=n.templateInstance()).resetSelection?t.resetSelection(!1):void 0}}(this),this.autorun(function(e){return function(){return Session.get("channelSettingsMailMessages")!==Session.get("openedRoom")?e.reset():void 0}}(this))})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:channel-settings-mail-messages"]={}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,e=Package["rocketchat:lib"].RocketChat,c=Package["tap:i18n"].TAPi18next,t=Package["tap:i18n"].TAPi18n,r;(function(){r="object"==typeof r?r:{};var a=r,c;c=function(){function a(a){var e;return _.trim(a.html)&&(e=a.html,e=e.replace(/(?:^|\s|\n)(#[A-Fa-f0-9]{3}([A-Fa-f0-9]{3})?)\b/g,function(a,e){return a.replace(e,'<div class="message-color"><div class="message-color-sample" style="background-color:'+e+'"></div>'+e.toUpperCase()+"</div>")}),a.html=e),a}return a}(),e.callbacks.add("renderMessage",c,e.callbacks.priority.MEDIUM)}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:colors"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.check.check,a=Package.check.Match,r=Package.oauth.OAuth,i=Package.oauth.Oauth,n=Package.underscore._,o=Package["service-configuration"].ServiceConfiguration,c=Package["underscorestring:underscore.string"].s,s=Package.templating.Template,u=Package["accounts-base"].Accounts,h=Package["accounts-base"].AccountsClient,g=Package.blaze.Blaze,l=Package.blaze.UI,d=Package.blaze.Handlebars,f=Package.spacebars.Spacebars,P=Package.htmljs.HTML,p,k;(function(){p="object"==typeof p?p:{};var t=p;k=function(){function t(t,r){if(this.name=t,!a.test(this.name,String))throw new e.Error("CustomOAuth: Name is required and must be String");this.configure(r),u.oauth.registerService(this.name),this.configureLogin()}return t.prototype.configure=function(t){if(!a.test(t,Object))throw new e.Error("CustomOAuth: Options is required and must be Object");if(!a.test(t.serverURL,String))throw new e.Error("CustomOAuth: Options.serverURL is required and must be String");return a.test(t.authorizePath,String)||(t.authorizePath="/oauth/authorize"),this.serverURL=t.serverURL,this.authorizePath=t.authorizePath,/^https?:\/\/.+/.test(this.authorizePath)?void 0:this.authorizePath=this.serverURL+this.authorizePath},t.prototype.configureLogin=function(){var t,a;return a=this,t="loginWith"+c.capitalize(this.name),e[t]=function(e,t){var r;return t||"function"!=typeof e||(t=e,e=null),r=u.oauth.credentialRequestCompleteHandler(t),a.requestCredential(e,r)}},t.prototype.requestCredential=function(e,t){var a,i,n,c;return t||"function"!=typeof e||(t=e,e={}),(a=o.configurations.findOne({service:this.name}))?(i=Random.secret(),n=r._loginStyle(this.name,a,e),c=this.authorizePath+"?client_id="+a.clientId+"&redirect_uri="+r._redirectUri(this.name,a)+"&response_type=code&state="+r._stateParam(n,i,e.redirectUrl),r.launchLogin({loginService:this.name,loginStyle:n,loginUrl:c,credentialRequestCompleteCallback:t,credentialToken:i,popupOptions:{width:900,height:450}})):void("function"==typeof t&&t(new o.ConfigError))},t}()}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:custom-oauth"]={CustomOAuth:k}}();
|
||
|
||
!function(){var f=Package.meteor.Meteor,n=Package.blaze.Blaze,u=Package.blaze.UI,i=Package.blaze.Handlebars,a=Package.htmljs.HTML,D=Package.templating.Template,e=Package.spacebars.Spacebars,o,c;(function(){o={}}).call(this),function(){!function(f){f.emojioneList={":kiss_ww:":{unicode:["1f469-200d-2764-fe0f-200d-1f48b-200d-1f469","1f469-2764-1f48b-1f469"],isCanonical:!0},":couplekiss_ww:":{unicode:["1f469-200d-2764-fe0f-200d-1f48b-200d-1f469","1f469-2764-1f48b-1f469"],isCanonical:!1},":kiss_mm:":{unicode:["1f468-200d-2764-fe0f-200d-1f48b-200d-1f468","1f468-2764-1f48b-1f468"],isCanonical:!0},":couplekiss_mm:":{unicode:["1f468-200d-2764-fe0f-200d-1f48b-200d-1f468","1f468-2764-1f48b-1f468"],isCanonical:!1},":family_mmbb:":{unicode:["1f468-200d-1f468-200d-1f466-200d-1f466","1f468-1f468-1f466-1f466"],isCanonical:!0},":family_mmgb:":{unicode:["1f468-200d-1f468-200d-1f467-200d-1f466","1f468-1f468-1f467-1f466"],isCanonical:!0},":family_mmgg:":{unicode:["1f468-200d-1f468-200d-1f467-200d-1f467","1f468-1f468-1f467-1f467"],isCanonical:!0},":family_mwbb:":{unicode:["1f468-200d-1f469-200d-1f466-200d-1f466","1f468-1f469-1f466-1f466"],isCanonical:!0},":family_mwgb:":{unicode:["1f468-200d-1f469-200d-1f467-200d-1f466","1f468-1f469-1f467-1f466"],isCanonical:!0},":family_mwgg:":{unicode:["1f468-200d-1f469-200d-1f467-200d-1f467","1f468-1f469-1f467-1f467"],isCanonical:!0},":family_wwbb:":{unicode:["1f469-200d-1f469-200d-1f466-200d-1f466","1f469-1f469-1f466-1f466"],isCanonical:!0},":family_wwgb:":{unicode:["1f469-200d-1f469-200d-1f467-200d-1f466","1f469-1f469-1f467-1f466"],isCanonical:!0},":family_wwgg:":{unicode:["1f469-200d-1f469-200d-1f467-200d-1f467","1f469-1f469-1f467-1f467"],isCanonical:!0},":couple_ww:":{unicode:["1f469-200d-2764-fe0f-200d-1f469","1f469-2764-1f469"],isCanonical:!0},":couple_with_heart_ww:":{unicode:["1f469-200d-2764-fe0f-200d-1f469","1f469-2764-1f469"],isCanonical:!1},":couple_mm:":{unicode:["1f468-200d-2764-fe0f-200d-1f468","1f468-2764-1f468"],isCanonical:!0},":couple_with_heart_mm:":{unicode:["1f468-200d-2764-fe0f-200d-1f468","1f468-2764-1f468"],isCanonical:!1},":family_mmb:":{unicode:["1f468-200d-1f468-200d-1f466","1f468-1f468-1f466"],isCanonical:!0},":family_mmg:":{unicode:["1f468-200d-1f468-200d-1f467","1f468-1f468-1f467"],isCanonical:!0},":family_mwg:":{unicode:["1f468-200d-1f469-200d-1f467","1f468-1f469-1f467"],isCanonical:!0},":family_wwb:":{unicode:["1f469-200d-1f469-200d-1f466","1f469-1f469-1f466"],isCanonical:!0},":family_wwg:":{unicode:["1f469-200d-1f469-200d-1f467","1f469-1f469-1f467"],isCanonical:!0},":eye_in_speech_bubble:":{unicode:["1f441-200d-1f5e8","1f441-1f5e8"],isCanonical:!0},":hash:":{unicode:["0023-fe0f-20e3","0023-20e3"],isCanonical:!0},":zero:":{unicode:["0030-fe0f-20e3","0030-20e3"],isCanonical:!0},":one:":{unicode:["0031-fe0f-20e3","0031-20e3"],isCanonical:!0},":two:":{unicode:["0032-fe0f-20e3","0032-20e3"],isCanonical:!0},":three:":{unicode:["0033-fe0f-20e3","0033-20e3"],isCanonical:!0},":four:":{unicode:["0034-fe0f-20e3","0034-20e3"],isCanonical:!0},":five:":{unicode:["0035-fe0f-20e3","0035-20e3"],isCanonical:!0},":six:":{unicode:["0036-fe0f-20e3","0036-20e3"],isCanonical:!0},":seven:":{unicode:["0037-fe0f-20e3","0037-20e3"],isCanonical:!0},":eight:":{unicode:["0038-fe0f-20e3","0038-20e3"],isCanonical:!0},":nine:":{unicode:["0039-fe0f-20e3","0039-20e3"],isCanonical:!0},":asterisk:":{unicode:["002a-fe0f-20e3","002a-20e3"],isCanonical:!0},":keycap_asterisk:":{unicode:["002a-fe0f-20e3","002a-20e3"],isCanonical:!1},":metal_tone5:":{unicode:["1f918-1f3ff"],isCanonical:!0},":sign_of_the_horns_tone5:":{unicode:["1f918-1f3ff"],isCanonical:!1},":metal_tone4:":{unicode:["1f918-1f3fe"],isCanonical:!0},":sign_of_the_horns_tone4:":{unicode:["1f918-1f3fe"],isCanonical:!1},":metal_tone3:":{unicode:["1f918-1f3fd"],isCanonical:!0},":sign_of_the_horns_tone3:":{unicode:["1f918-1f3fd"],isCanonical:!1},":metal_tone2:":{unicode:["1f918-1f3fc"],isCanonical:!0},":sign_of_the_horns_tone2:":{unicode:["1f918-1f3fc"],isCanonical:!1},":metal_tone1:":{unicode:["1f918-1f3fb"],isCanonical:!0},":sign_of_the_horns_tone1:":{unicode:["1f918-1f3fb"],isCanonical:!1},":bath_tone5:":{unicode:["1f6c0-1f3ff"],isCanonical:!0},":bath_tone4:":{unicode:["1f6c0-1f3fe"],isCanonical:!0},":bath_tone3:":{unicode:["1f6c0-1f3fd"],isCanonical:!0},":bath_tone2:":{unicode:["1f6c0-1f3fc"],isCanonical:!0},":bath_tone1:":{unicode:["1f6c0-1f3fb"],isCanonical:!0},":walking_tone5:":{unicode:["1f6b6-1f3ff"],isCanonical:!0},":walking_tone4:":{unicode:["1f6b6-1f3fe"],isCanonical:!0},":walking_tone3:":{unicode:["1f6b6-1f3fd"],isCanonical:!0},":walking_tone2:":{unicode:["1f6b6-1f3fc"],isCanonical:!0},":walking_tone1:":{unicode:["1f6b6-1f3fb"],isCanonical:!0},":mountain_bicyclist_tone5:":{unicode:["1f6b5-1f3ff"],isCanonical:!0},":mountain_bicyclist_tone4:":{unicode:["1f6b5-1f3fe"],isCanonical:!0},":mountain_bicyclist_tone3:":{unicode:["1f6b5-1f3fd"],isCanonical:!0},":mountain_bicyclist_tone2:":{unicode:["1f6b5-1f3fc"],isCanonical:!0},":mountain_bicyclist_tone1:":{unicode:["1f6b5-1f3fb"],isCanonical:!0},":bicyclist_tone5:":{unicode:["1f6b4-1f3ff"],isCanonical:!0},":bicyclist_tone4:":{unicode:["1f6b4-1f3fe"],isCanonical:!0},":bicyclist_tone3:":{unicode:["1f6b4-1f3fd"],isCanonical:!0},":bicyclist_tone2:":{unicode:["1f6b4-1f3fc"],isCanonical:!0},":bicyclist_tone1:":{unicode:["1f6b4-1f3fb"],isCanonical:!0},":rowboat_tone5:":{unicode:["1f6a3-1f3ff"],isCanonical:!0},":rowboat_tone4:":{unicode:["1f6a3-1f3fe"],isCanonical:!0},":rowboat_tone3:":{unicode:["1f6a3-1f3fd"],isCanonical:!0},":rowboat_tone2:":{unicode:["1f6a3-1f3fc"],isCanonical:!0},":rowboat_tone1:":{unicode:["1f6a3-1f3fb"],isCanonical:!0},":pray_tone5:":{unicode:["1f64f-1f3ff"],isCanonical:!0},":pray_tone4:":{unicode:["1f64f-1f3fe"],isCanonical:!0},":pray_tone3:":{unicode:["1f64f-1f3fd"],isCanonical:!0},":pray_tone2:":{unicode:["1f64f-1f3fc"],isCanonical:!0},":pray_tone1:":{unicode:["1f64f-1f3fb"],isCanonical:!0},":person_with_pouting_face_tone5:":{unicode:["1f64e-1f3ff"],isCanonical:!0},":person_with_pouting_face_tone4:":{unicode:["1f64e-1f3fe"],isCanonical:!0},":person_with_pouting_face_tone3:":{unicode:["1f64e-1f3fd"],isCanonical:!0},":person_with_pouting_face_tone2:":{unicode:["1f64e-1f3fc"],isCanonical:!0},":person_with_pouting_face_tone1:":{unicode:["1f64e-1f3fb"],isCanonical:!0},":person_frowning_tone5:":{unicode:["1f64d-1f3ff"],isCanonical:!0},":person_frowning_tone4:":{unicode:["1f64d-1f3fe"],isCanonical:!0},":person_frowning_tone3:":{unicode:["1f64d-1f3fd"],isCanonical:!0},":person_frowning_tone2:":{unicode:["1f64d-1f3fc"],isCanonical:!0},":person_frowning_tone1:":{unicode:["1f64d-1f3fb"],isCanonical:!0},":raised_hands_tone5:":{unicode:["1f64c-1f3ff"],isCanonical:!0},":raised_hands_tone4:":{unicode:["1f64c-1f3fe"],isCanonical:!0},":raised_hands_tone3:":{unicode:["1f64c-1f3fd"],isCanonical:!0},":raised_hands_tone2:":{unicode:["1f64c-1f3fc"],isCanonical:!0},":raised_hands_tone1:":{unicode:["1f64c-1f3fb"],isCanonical:!0},":raising_hand_tone5:":{unicode:["1f64b-1f3ff"],isCanonical:!0},":raising_hand_tone4:":{unicode:["1f64b-1f3fe"],isCanonical:!0},":raising_hand_tone3:":{unicode:["1f64b-1f3fd"],isCanonical:!0},":raising_hand_tone2:":{unicode:["1f64b-1f3fc"],isCanonical:!0},":raising_hand_tone1:":{unicode:["1f64b-1f3fb"],isCanonical:!0},":bow_tone5:":{unicode:["1f647-1f3ff"],isCanonical:!0},":bow_tone4:":{unicode:["1f647-1f3fe"],isCanonical:!0},":bow_tone3:":{unicode:["1f647-1f3fd"],isCanonical:!0},":bow_tone2:":{unicode:["1f647-1f3fc"],isCanonical:!0},":bow_tone1:":{unicode:["1f647-1f3fb"],isCanonical:!0},":ok_woman_tone5:":{unicode:["1f646-1f3ff"],isCanonical:!0},":ok_woman_tone4:":{unicode:["1f646-1f3fe"],isCanonical:!0},":ok_woman_tone3:":{unicode:["1f646-1f3fd"],isCanonical:!0},":ok_woman_tone2:":{unicode:["1f646-1f3fc"],isCanonical:!0},":ok_woman_tone1:":{unicode:["1f646-1f3fb"],isCanonical:!0},":no_good_tone5:":{unicode:["1f645-1f3ff"],isCanonical:!0},":no_good_tone4:":{unicode:["1f645-1f3fe"],isCanonical:!0},":no_good_tone3:":{unicode:["1f645-1f3fd"],isCanonical:!0},":no_good_tone2:":{unicode:["1f645-1f3fc"],isCanonical:!0},":no_good_tone1:":{unicode:["1f645-1f3fb"],isCanonical:!0},":vulcan_tone5:":{unicode:["1f596-1f3ff"],isCanonical:!0},":raised_hand_with_part_between_middle_and_ring_fingers_tone5:":{unicode:["1f596-1f3ff"],isCanonical:!1},":vulcan_tone4:":{unicode:["1f596-1f3fe"],isCanonical:!0},":raised_hand_with_part_between_middle_and_ring_fingers_tone4:":{unicode:["1f596-1f3fe"],isCanonical:!1},":vulcan_tone3:":{unicode:["1f596-1f3fd"],isCanonical:!0},":raised_hand_with_part_between_middle_and_ring_fingers_tone3:":{unicode:["1f596-1f3fd"],isCanonical:!1},":vulcan_tone2:":{unicode:["1f596-1f3fc"],isCanonical:!0},":raised_hand_with_part_between_middle_and_ring_fingers_tone2:":{unicode:["1f596-1f3fc"],isCanonical:!1},":vulcan_tone1:":{unicode:["1f596-1f3fb"],isCanonical:!0},":raised_hand_with_part_between_middle_and_ring_fingers_tone1:":{unicode:["1f596-1f3fb"],isCanonical:!1},":middle_finger_tone5:":{unicode:["1f595-1f3ff"],isCanonical:!0},":reversed_hand_with_middle_finger_extended_tone5:":{unicode:["1f595-1f3ff"],isCanonical:!1},":middle_finger_tone4:":{unicode:["1f595-1f3fe"],isCanonical:!0},":reversed_hand_with_middle_finger_extended_tone4:":{unicode:["1f595-1f3fe"],isCanonical:!1},":middle_finger_tone3:":{unicode:["1f595-1f3fd"],isCanonical:!0},":reversed_hand_with_middle_finger_extended_tone3:":{unicode:["1f595-1f3fd"],isCanonical:!1},":middle_finger_tone2:":{unicode:["1f595-1f3fc"],isCanonical:!0},":reversed_hand_with_middle_finger_extended_tone2:":{unicode:["1f595-1f3fc"],isCanonical:!1},":middle_finger_tone1:":{unicode:["1f595-1f3fb"],isCanonical:!0},":reversed_hand_with_middle_finger_extended_tone1:":{unicode:["1f595-1f3fb"],isCanonical:!1},":hand_splayed_tone5:":{unicode:["1f590-1f3ff"],isCanonical:!0},":raised_hand_with_fingers_splayed_tone5:":{unicode:["1f590-1f3ff"],isCanonical:!1},":hand_splayed_tone4:":{unicode:["1f590-1f3fe"],isCanonical:!0},":raised_hand_with_fingers_splayed_tone4:":{unicode:["1f590-1f3fe"],isCanonical:!1},":hand_splayed_tone3:":{unicode:["1f590-1f3fd"],isCanonical:!0},":raised_hand_with_fingers_splayed_tone3:":{unicode:["1f590-1f3fd"],isCanonical:!1},":hand_splayed_tone2:":{unicode:["1f590-1f3fc"],isCanonical:!0},":raised_hand_with_fingers_splayed_tone2:":{unicode:["1f590-1f3fc"],isCanonical:!1},":hand_splayed_tone1:":{unicode:["1f590-1f3fb"],isCanonical:!0},":raised_hand_with_fingers_splayed_tone1:":{unicode:["1f590-1f3fb"],isCanonical:!1},":spy_tone5:":{unicode:["1f575-1f3ff"],isCanonical:!0},":sleuth_or_spy_tone5:":{unicode:["1f575-1f3ff"],isCanonical:!1},":spy_tone4:":{unicode:["1f575-1f3fe"],isCanonical:!0},":sleuth_or_spy_tone4:":{unicode:["1f575-1f3fe"],isCanonical:!1},":spy_tone3:":{unicode:["1f575-1f3fd"],isCanonical:!0},":sleuth_or_spy_tone3:":{unicode:["1f575-1f3fd"],isCanonical:!1},":spy_tone2:":{unicode:["1f575-1f3fc"],isCanonical:!0},":sleuth_or_spy_tone2:":{unicode:["1f575-1f3fc"],isCanonical:!1},":spy_tone1:":{unicode:["1f575-1f3fb"],isCanonical:!0},":sleuth_or_spy_tone1:":{unicode:["1f575-1f3fb"],isCanonical:!1},":muscle_tone5:":{unicode:["1f4aa-1f3ff"],isCanonical:!0},":muscle_tone4:":{unicode:["1f4aa-1f3fe"],isCanonical:!0},":muscle_tone3:":{unicode:["1f4aa-1f3fd"],isCanonical:!0},":muscle_tone2:":{unicode:["1f4aa-1f3fc"],isCanonical:!0},":muscle_tone1:":{unicode:["1f4aa-1f3fb"],isCanonical:!0},":haircut_tone5:":{unicode:["1f487-1f3ff"],isCanonical:!0},":haircut_tone4:":{unicode:["1f487-1f3fe"],isCanonical:!0},":haircut_tone3:":{unicode:["1f487-1f3fd"],isCanonical:!0},":haircut_tone2:":{unicode:["1f487-1f3fc"],isCanonical:!0},":haircut_tone1:":{unicode:["1f487-1f3fb"],isCanonical:!0},":massage_tone5:":{unicode:["1f486-1f3ff"],isCanonical:!0},":massage_tone4:":{unicode:["1f486-1f3fe"],isCanonical:!0},":massage_tone3:":{unicode:["1f486-1f3fd"],isCanonical:!0},":massage_tone2:":{unicode:["1f486-1f3fc"],isCanonical:!0},":massage_tone1:":{unicode:["1f486-1f3fb"],isCanonical:!0},":nail_care_tone5:":{unicode:["1f485-1f3ff"],isCanonical:!0},":nail_care_tone4:":{unicode:["1f485-1f3fe"],isCanonical:!0},":nail_care_tone3:":{unicode:["1f485-1f3fd"],isCanonical:!0},":nail_care_tone2:":{unicode:["1f485-1f3fc"],isCanonical:!0},":nail_care_tone1:":{unicode:["1f485-1f3fb"],isCanonical:!0},":dancer_tone5:":{unicode:["1f483-1f3ff"],isCanonical:!0},":dancer_tone4:":{unicode:["1f483-1f3fe"],isCanonical:!0},":dancer_tone3:":{unicode:["1f483-1f3fd"],isCanonical:!0},":dancer_tone2:":{unicode:["1f483-1f3fc"],isCanonical:!0},":dancer_tone1:":{unicode:["1f483-1f3fb"],isCanonical:!0},":guardsman_tone5:":{unicode:["1f482-1f3ff"],isCanonical:!0},":guardsman_tone4:":{unicode:["1f482-1f3fe"],isCanonical:!0},":guardsman_tone3:":{unicode:["1f482-1f3fd"],isCanonical:!0},":guardsman_tone2:":{unicode:["1f482-1f3fc"],isCanonical:!0},":guardsman_tone1:":{unicode:["1f482-1f3fb"],isCanonical:!0},":information_desk_person_tone5:":{unicode:["1f481-1f3ff"],isCanonical:!0},":information_desk_person_tone4:":{unicode:["1f481-1f3fe"],isCanonical:!0},":information_desk_person_tone3:":{unicode:["1f481-1f3fd"],isCanonical:!0},":information_desk_person_tone2:":{unicode:["1f481-1f3fc"],isCanonical:!0},":information_desk_person_tone1:":{unicode:["1f481-1f3fb"],isCanonical:!0},":angel_tone5:":{unicode:["1f47c-1f3ff"],isCanonical:!0},":angel_tone4:":{unicode:["1f47c-1f3fe"],isCanonical:!0},":angel_tone3:":{unicode:["1f47c-1f3fd"],isCanonical:!0},":angel_tone2:":{unicode:["1f47c-1f3fc"],isCanonical:!0},":angel_tone1:":{unicode:["1f47c-1f3fb"],isCanonical:!0},":princess_tone5:":{unicode:["1f478-1f3ff"],isCanonical:!0},":princess_tone4:":{unicode:["1f478-1f3fe"],isCanonical:!0},":princess_tone3:":{unicode:["1f478-1f3fd"],isCanonical:!0},":princess_tone2:":{unicode:["1f478-1f3fc"],isCanonical:!0},":princess_tone1:":{unicode:["1f478-1f3fb"],isCanonical:!0},":construction_worker_tone5:":{unicode:["1f477-1f3ff"],isCanonical:!0},":construction_worker_tone4:":{unicode:["1f477-1f3fe"],isCanonical:!0},":construction_worker_tone3:":{unicode:["1f477-1f3fd"],isCanonical:!0},":construction_worker_tone2:":{unicode:["1f477-1f3fc"],isCanonical:!0},":construction_worker_tone1:":{unicode:["1f477-1f3fb"],isCanonical:!0},":baby_tone5:":{unicode:["1f476-1f3ff"],isCanonical:!0},":baby_tone4:":{unicode:["1f476-1f3fe"],isCanonical:!0},":baby_tone3:":{unicode:["1f476-1f3fd"],isCanonical:!0},":baby_tone2:":{unicode:["1f476-1f3fc"],isCanonical:!0},":baby_tone1:":{unicode:["1f476-1f3fb"],isCanonical:!0},":older_woman_tone5:":{unicode:["1f475-1f3ff"],isCanonical:!0},":grandma_tone5:":{unicode:["1f475-1f3ff"],isCanonical:!1},":older_woman_tone4:":{unicode:["1f475-1f3fe"],isCanonical:!0},":grandma_tone4:":{unicode:["1f475-1f3fe"],isCanonical:!1},":older_woman_tone3:":{unicode:["1f475-1f3fd"],isCanonical:!0},":grandma_tone3:":{unicode:["1f475-1f3fd"],isCanonical:!1},":older_woman_tone2:":{unicode:["1f475-1f3fc"],isCanonical:!0},":grandma_tone2:":{unicode:["1f475-1f3fc"],isCanonical:!1},":older_woman_tone1:":{unicode:["1f475-1f3fb"],isCanonical:!0},":grandma_tone1:":{unicode:["1f475-1f3fb"],isCanonical:!1},":older_man_tone5:":{unicode:["1f474-1f3ff"],isCanonical:!0},":older_man_tone4:":{unicode:["1f474-1f3fe"],isCanonical:!0},":older_man_tone3:":{unicode:["1f474-1f3fd"],isCanonical:!0},":older_man_tone2:":{unicode:["1f474-1f3fc"],isCanonical:!0},":older_man_tone1:":{unicode:["1f474-1f3fb"],isCanonical:!0},":man_with_turban_tone5:":{unicode:["1f473-1f3ff"],isCanonical:!0},":man_with_turban_tone4:":{unicode:["1f473-1f3fe"],isCanonical:!0},":man_with_turban_tone3:":{unicode:["1f473-1f3fd"],isCanonical:!0},":man_with_turban_tone2:":{unicode:["1f473-1f3fc"],isCanonical:!0},":man_with_turban_tone1:":{unicode:["1f473-1f3fb"],isCanonical:!0},":man_with_gua_pi_mao_tone5:":{unicode:["1f472-1f3ff"],isCanonical:!0},":man_with_gua_pi_mao_tone4:":{unicode:["1f472-1f3fe"],isCanonical:!0},":man_with_gua_pi_mao_tone3:":{unicode:["1f472-1f3fd"],isCanonical:!0},":man_with_gua_pi_mao_tone2:":{unicode:["1f472-1f3fc"],isCanonical:!0},":man_with_gua_pi_mao_tone1:":{unicode:["1f472-1f3fb"],isCanonical:!0},":person_with_blond_hair_tone5:":{unicode:["1f471-1f3ff"],isCanonical:!0},":person_with_blond_hair_tone4:":{unicode:["1f471-1f3fe"],isCanonical:!0},":person_with_blond_hair_tone3:":{unicode:["1f471-1f3fd"],isCanonical:!0},":person_with_blond_hair_tone2:":{unicode:["1f471-1f3fc"],isCanonical:!0},":person_with_blond_hair_tone1:":{unicode:["1f471-1f3fb"],isCanonical:!0},":bride_with_veil_tone5:":{unicode:["1f470-1f3ff"],isCanonical:!0},":bride_with_veil_tone4:":{unicode:["1f470-1f3fe"],isCanonical:!0},":bride_with_veil_tone3:":{unicode:["1f470-1f3fd"],isCanonical:!0},":bride_with_veil_tone2:":{unicode:["1f470-1f3fc"],isCanonical:!0},":bride_with_veil_tone1:":{unicode:["1f470-1f3fb"],isCanonical:!0},":cop_tone5:":{unicode:["1f46e-1f3ff"],isCanonical:!0},":cop_tone4:":{unicode:["1f46e-1f3fe"],isCanonical:!0},":cop_tone3:":{unicode:["1f46e-1f3fd"],isCanonical:!0},":cop_tone2:":{unicode:["1f46e-1f3fc"],isCanonical:!0},":cop_tone1:":{unicode:["1f46e-1f3fb"],isCanonical:!0},":woman_tone5:":{unicode:["1f469-1f3ff"],isCanonical:!0},":woman_tone4:":{unicode:["1f469-1f3fe"],isCanonical:!0},":woman_tone3:":{unicode:["1f469-1f3fd"],isCanonical:!0},":woman_tone2:":{unicode:["1f469-1f3fc"],isCanonical:!0},":woman_tone1:":{unicode:["1f469-1f3fb"],isCanonical:!0},":man_tone5:":{unicode:["1f468-1f3ff"],isCanonical:!0},":man_tone4:":{unicode:["1f468-1f3fe"],isCanonical:!0},":man_tone3:":{unicode:["1f468-1f3fd"],isCanonical:!0},":man_tone2:":{unicode:["1f468-1f3fc"],isCanonical:!0},":man_tone1:":{unicode:["1f468-1f3fb"],isCanonical:!0},":girl_tone5:":{unicode:["1f467-1f3ff"],isCanonical:!0},":girl_tone4:":{unicode:["1f467-1f3fe"],isCanonical:!0},":girl_tone3:":{unicode:["1f467-1f3fd"],isCanonical:!0},":girl_tone2:":{unicode:["1f467-1f3fc"],isCanonical:!0},":girl_tone1:":{unicode:["1f467-1f3fb"],isCanonical:!0},":boy_tone5:":{unicode:["1f466-1f3ff"],isCanonical:!0},":boy_tone4:":{unicode:["1f466-1f3fe"],isCanonical:!0},":boy_tone3:":{unicode:["1f466-1f3fd"],isCanonical:!0},":boy_tone2:":{unicode:["1f466-1f3fc"],isCanonical:!0},":boy_tone1:":{unicode:["1f466-1f3fb"],isCanonical:!0},":open_hands_tone5:":{unicode:["1f450-1f3ff"],isCanonical:!0},":open_hands_tone4:":{unicode:["1f450-1f3fe"],isCanonical:!0},":open_hands_tone3:":{unicode:["1f450-1f3fd"],isCanonical:!0},":open_hands_tone2:":{unicode:["1f450-1f3fc"],isCanonical:!0},":open_hands_tone1:":{unicode:["1f450-1f3fb"],isCanonical:!0},":clap_tone5:":{unicode:["1f44f-1f3ff"],isCanonical:!0},":clap_tone4:":{unicode:["1f44f-1f3fe"],isCanonical:!0},":clap_tone3:":{unicode:["1f44f-1f3fd"],isCanonical:!0},":clap_tone2:":{unicode:["1f44f-1f3fc"],isCanonical:!0},":clap_tone1:":{unicode:["1f44f-1f3fb"],isCanonical:!0},":thumbsdown_tone5:":{unicode:["1f44e-1f3ff"],isCanonical:!0},":-1_tone5:":{unicode:["1f44e-1f3ff"],isCanonical:!1},":thumbdown_tone5:":{unicode:["1f44e-1f3ff"],isCanonical:!1},":thumbsdown_tone4:":{unicode:["1f44e-1f3fe"],isCanonical:!0},":-1_tone4:":{unicode:["1f44e-1f3fe"],isCanonical:!1},":thumbdown_tone4:":{unicode:["1f44e-1f3fe"],isCanonical:!1},":thumbsdown_tone3:":{unicode:["1f44e-1f3fd"],isCanonical:!0},":-1_tone3:":{unicode:["1f44e-1f3fd"],isCanonical:!1},":thumbdown_tone3:":{unicode:["1f44e-1f3fd"],isCanonical:!1},":thumbsdown_tone2:":{unicode:["1f44e-1f3fc"],isCanonical:!0},":-1_tone2:":{unicode:["1f44e-1f3fc"],isCanonical:!1},":thumbdown_tone2:":{unicode:["1f44e-1f3fc"],isCanonical:!1},":thumbsdown_tone1:":{unicode:["1f44e-1f3fb"],isCanonical:!0},":-1_tone1:":{unicode:["1f44e-1f3fb"],isCanonical:!1},":thumbdown_tone1:":{unicode:["1f44e-1f3fb"],isCanonical:!1},":thumbsup_tone5:":{unicode:["1f44d-1f3ff"],isCanonical:!0},":+1_tone5:":{unicode:["1f44d-1f3ff"],isCanonical:!1},":thumbup_tone5:":{unicode:["1f44d-1f3ff"],isCanonical:!1},":thumbsup_tone4:":{unicode:["1f44d-1f3fe"],isCanonical:!0},":+1_tone4:":{unicode:["1f44d-1f3fe"],isCanonical:!1},":thumbup_tone4:":{unicode:["1f44d-1f3fe"],isCanonical:!1},":thumbsup_tone3:":{unicode:["1f44d-1f3fd"],isCanonical:!0},":+1_tone3:":{unicode:["1f44d-1f3fd"],isCanonical:!1},":thumbup_tone3:":{unicode:["1f44d-1f3fd"],isCanonical:!1},":thumbsup_tone2:":{unicode:["1f44d-1f3fc"],isCanonical:!0},":+1_tone2:":{unicode:["1f44d-1f3fc"],isCanonical:!1},":thumbup_tone2:":{unicode:["1f44d-1f3fc"],isCanonical:!1},":thumbsup_tone1:":{unicode:["1f44d-1f3fb"],isCanonical:!0},":+1_tone1:":{unicode:["1f44d-1f3fb"],isCanonical:!1},":thumbup_tone1:":{unicode:["1f44d-1f3fb"],isCanonical:!1},":ok_hand_tone5:":{unicode:["1f44c-1f3ff"],isCanonical:!0},":ok_hand_tone4:":{unicode:["1f44c-1f3fe"],isCanonical:!0},":ok_hand_tone3:":{unicode:["1f44c-1f3fd"],isCanonical:!0},":ok_hand_tone2:":{unicode:["1f44c-1f3fc"],isCanonical:!0},":ok_hand_tone1:":{unicode:["1f44c-1f3fb"],isCanonical:!0},":wave_tone5:":{unicode:["1f44b-1f3ff"],isCanonical:!0},":wave_tone4:":{unicode:["1f44b-1f3fe"],isCanonical:!0},":wave_tone3:":{unicode:["1f44b-1f3fd"],isCanonical:!0},":wave_tone2:":{unicode:["1f44b-1f3fc"],isCanonical:!0},":wave_tone1:":{unicode:["1f44b-1f3fb"],isCanonical:!0},":punch_tone5:":{unicode:["1f44a-1f3ff"],isCanonical:!0},":punch_tone4:":{unicode:["1f44a-1f3fe"],isCanonical:!0},":punch_tone3:":{unicode:["1f44a-1f3fd"],isCanonical:!0},":punch_tone2:":{unicode:["1f44a-1f3fc"],isCanonical:!0},":punch_tone1:":{unicode:["1f44a-1f3fb"],isCanonical:!0},":point_right_tone5:":{unicode:["1f449-1f3ff"],isCanonical:!0},":point_right_tone4:":{unicode:["1f449-1f3fe"],isCanonical:!0},":point_right_tone3:":{unicode:["1f449-1f3fd"],isCanonical:!0},":point_right_tone2:":{unicode:["1f449-1f3fc"],isCanonical:!0},":point_right_tone1:":{unicode:["1f449-1f3fb"],isCanonical:!0},":point_left_tone5:":{unicode:["1f448-1f3ff"],isCanonical:!0},":point_left_tone4:":{unicode:["1f448-1f3fe"],isCanonical:!0},":point_left_tone3:":{unicode:["1f448-1f3fd"],isCanonical:!0},":point_left_tone2:":{unicode:["1f448-1f3fc"],isCanonical:!0},":point_left_tone1:":{unicode:["1f448-1f3fb"],isCanonical:!0},":point_down_tone5:":{unicode:["1f447-1f3ff"],isCanonical:!0},":point_down_tone4:":{unicode:["1f447-1f3fe"],isCanonical:!0},":point_down_tone3:":{unicode:["1f447-1f3fd"],isCanonical:!0},":point_down_tone2:":{unicode:["1f447-1f3fc"],isCanonical:!0},":point_down_tone1:":{unicode:["1f447-1f3fb"],isCanonical:!0},":point_up_2_tone5:":{unicode:["1f446-1f3ff"],isCanonical:!0},":point_up_2_tone4:":{unicode:["1f446-1f3fe"],isCanonical:!0},":point_up_2_tone3:":{unicode:["1f446-1f3fd"],isCanonical:!0},":point_up_2_tone2:":{unicode:["1f446-1f3fc"],isCanonical:!0},":point_up_2_tone1:":{unicode:["1f446-1f3fb"],isCanonical:!0},":nose_tone5:":{unicode:["1f443-1f3ff"],isCanonical:!0},":nose_tone4:":{unicode:["1f443-1f3fe"],isCanonical:!0},":nose_tone3:":{unicode:["1f443-1f3fd"],isCanonical:!0},":nose_tone2:":{unicode:["1f443-1f3fc"],isCanonical:!0},":nose_tone1:":{unicode:["1f443-1f3fb"],isCanonical:!0},":ear_tone5:":{unicode:["1f442-1f3ff"],isCanonical:!0},":ear_tone4:":{unicode:["1f442-1f3fe"],isCanonical:!0},":ear_tone3:":{unicode:["1f442-1f3fd"],isCanonical:!0},":ear_tone2:":{unicode:["1f442-1f3fc"],isCanonical:!0},":ear_tone1:":{unicode:["1f442-1f3fb"],isCanonical:!0},":lifter_tone5:":{unicode:["1f3cb-1f3ff"],isCanonical:!0},":weight_lifter_tone5:":{unicode:["1f3cb-1f3ff"],isCanonical:!1},":lifter_tone4:":{unicode:["1f3cb-1f3fe"],isCanonical:!0},":weight_lifter_tone4:":{unicode:["1f3cb-1f3fe"],isCanonical:!1},":lifter_tone3:":{unicode:["1f3cb-1f3fd"],isCanonical:!0},":weight_lifter_tone3:":{unicode:["1f3cb-1f3fd"],isCanonical:!1},":lifter_tone2:":{unicode:["1f3cb-1f3fc"],isCanonical:!0},":weight_lifter_tone2:":{unicode:["1f3cb-1f3fc"],isCanonical:!1},":lifter_tone1:":{unicode:["1f3cb-1f3fb"],isCanonical:!0},":weight_lifter_tone1:":{unicode:["1f3cb-1f3fb"],isCanonical:!1},":swimmer_tone5:":{unicode:["1f3ca-1f3ff"],isCanonical:!0},":swimmer_tone4:":{unicode:["1f3ca-1f3fe"],isCanonical:!0},":swimmer_tone3:":{unicode:["1f3ca-1f3fd"],isCanonical:!0},":swimmer_tone2:":{unicode:["1f3ca-1f3fc"],isCanonical:!0},":swimmer_tone1:":{unicode:["1f3ca-1f3fb"],isCanonical:!0},":horse_racing_tone5:":{unicode:["1f3c7-1f3ff"],isCanonical:!0},":horse_racing_tone4:":{unicode:["1f3c7-1f3fe"],isCanonical:!0},":horse_racing_tone3:":{unicode:["1f3c7-1f3fd"],isCanonical:!0},":horse_racing_tone2:":{unicode:["1f3c7-1f3fc"],isCanonical:!0},":horse_racing_tone1:":{unicode:["1f3c7-1f3fb"],isCanonical:!0},":surfer_tone5:":{unicode:["1f3c4-1f3ff"],isCanonical:!0},":surfer_tone4:":{unicode:["1f3c4-1f3fe"],isCanonical:!0},":surfer_tone3:":{unicode:["1f3c4-1f3fd"],isCanonical:!0},":surfer_tone2:":{unicode:["1f3c4-1f3fc"],isCanonical:!0},":surfer_tone1:":{unicode:["1f3c4-1f3fb"],isCanonical:!0},":runner_tone5:":{unicode:["1f3c3-1f3ff"],isCanonical:!0},":runner_tone4:":{unicode:["1f3c3-1f3fe"],isCanonical:!0},":runner_tone3:":{unicode:["1f3c3-1f3fd"],isCanonical:!0},":runner_tone2:":{unicode:["1f3c3-1f3fc"],isCanonical:!0},":runner_tone1:":{unicode:["1f3c3-1f3fb"],isCanonical:!0},":santa_tone5:":{unicode:["1f385-1f3ff"],isCanonical:!0},":santa_tone4:":{unicode:["1f385-1f3fe"],isCanonical:!0},":santa_tone3:":{unicode:["1f385-1f3fd"],isCanonical:!0},":santa_tone2:":{unicode:["1f385-1f3fc"],isCanonical:!0},":santa_tone1:":{unicode:["1f385-1f3fb"],isCanonical:!0},":flag_zw:":{unicode:["1f1ff-1f1fc"],isCanonical:!0},":zw:":{unicode:["1f1ff-1f1fc"],isCanonical:!1},":flag_zm:":{unicode:["1f1ff-1f1f2"],isCanonical:!0},":zm:":{unicode:["1f1ff-1f1f2"],isCanonical:!1},":flag_za:":{unicode:["1f1ff-1f1e6"],isCanonical:!0},":za:":{unicode:["1f1ff-1f1e6"],isCanonical:!1},":flag_yt:":{unicode:["1f1fe-1f1f9"],isCanonical:!0},":yt:":{unicode:["1f1fe-1f1f9"],isCanonical:!1},":flag_ye:":{unicode:["1f1fe-1f1ea"],isCanonical:!0},":ye:":{unicode:["1f1fe-1f1ea"],isCanonical:!1},":flag_xk:":{unicode:["1f1fd-1f1f0"],isCanonical:!0},":xk:":{unicode:["1f1fd-1f1f0"],isCanonical:!1},":flag_ws:":{unicode:["1f1fc-1f1f8"],isCanonical:!0},":ws:":{unicode:["1f1fc-1f1f8"],isCanonical:!1},":flag_wf:":{unicode:["1f1fc-1f1eb"],isCanonical:!0},":wf:":{unicode:["1f1fc-1f1eb"],isCanonical:!1},":flag_vu:":{unicode:["1f1fb-1f1fa"],isCanonical:!0},":vu:":{unicode:["1f1fb-1f1fa"],isCanonical:!1},":flag_vn:":{unicode:["1f1fb-1f1f3"],isCanonical:!0},":vn:":{unicode:["1f1fb-1f1f3"],isCanonical:!1},":flag_vi:":{unicode:["1f1fb-1f1ee"],isCanonical:!0},":vi:":{unicode:["1f1fb-1f1ee"],isCanonical:!1},":flag_vg:":{unicode:["1f1fb-1f1ec"],isCanonical:!0},":vg:":{unicode:["1f1fb-1f1ec"],isCanonical:!1},":flag_ve:":{unicode:["1f1fb-1f1ea"],isCanonical:!0},":ve:":{unicode:["1f1fb-1f1ea"],isCanonical:!1},":flag_vc:":{unicode:["1f1fb-1f1e8"],isCanonical:!0},":vc:":{unicode:["1f1fb-1f1e8"],isCanonical:!1},":flag_va:":{unicode:["1f1fb-1f1e6"],isCanonical:!0},":va:":{unicode:["1f1fb-1f1e6"],isCanonical:!1},":flag_uz:":{unicode:["1f1fa-1f1ff"],isCanonical:!0},":uz:":{unicode:["1f1fa-1f1ff"],isCanonical:!1},":flag_uy:":{unicode:["1f1fa-1f1fe"],isCanonical:!0},":uy:":{unicode:["1f1fa-1f1fe"],isCanonical:!1},":flag_us:":{unicode:["1f1fa-1f1f8"],isCanonical:!0},":us:":{unicode:["1f1fa-1f1f8"],isCanonical:!1},":flag_um:":{unicode:["1f1fa-1f1f2"],isCanonical:!0},":um:":{unicode:["1f1fa-1f1f2"],isCanonical:!1},":flag_ug:":{unicode:["1f1fa-1f1ec"],isCanonical:!0},":ug:":{unicode:["1f1fa-1f1ec"],isCanonical:!1},":flag_ua:":{unicode:["1f1fa-1f1e6"],isCanonical:!0},":ua:":{unicode:["1f1fa-1f1e6"],isCanonical:!1},":flag_tz:":{unicode:["1f1f9-1f1ff"],isCanonical:!0},":tz:":{unicode:["1f1f9-1f1ff"],isCanonical:!1},":flag_tw:":{unicode:["1f1f9-1f1fc"],isCanonical:!0},":tw:":{unicode:["1f1f9-1f1fc"],isCanonical:!1},":flag_tv:":{unicode:["1f1f9-1f1fb"],isCanonical:!0},":tuvalu:":{unicode:["1f1f9-1f1fb"],isCanonical:!1},":flag_tt:":{unicode:["1f1f9-1f1f9"],isCanonical:!0},":tt:":{unicode:["1f1f9-1f1f9"],isCanonical:!1},":flag_tr:":{unicode:["1f1f9-1f1f7"],isCanonical:!0},":tr:":{unicode:["1f1f9-1f1f7"],isCanonical:!1},":flag_to:":{unicode:["1f1f9-1f1f4"],isCanonical:!0},":to:":{unicode:["1f1f9-1f1f4"],isCanonical:!1},":flag_tn:":{unicode:["1f1f9-1f1f3"],isCanonical:!0},":tn:":{unicode:["1f1f9-1f1f3"],isCanonical:!1},":flag_tm:":{unicode:["1f1f9-1f1f2"],isCanonical:!0},":turkmenistan:":{unicode:["1f1f9-1f1f2"],isCanonical:!1},":flag_tl:":{unicode:["1f1f9-1f1f1"],isCanonical:!0},":tl:":{unicode:["1f1f9-1f1f1"],isCanonical:!1},":flag_tk:":{unicode:["1f1f9-1f1f0"],isCanonical:!0},":tk:":{unicode:["1f1f9-1f1f0"],isCanonical:!1},":flag_tj:":{unicode:["1f1f9-1f1ef"],isCanonical:!0},":tj:":{unicode:["1f1f9-1f1ef"],isCanonical:!1},":flag_th:":{unicode:["1f1f9-1f1ed"],isCanonical:!0},":th:":{unicode:["1f1f9-1f1ed"],isCanonical:!1},":flag_tg:":{unicode:["1f1f9-1f1ec"],isCanonical:!0},":tg:":{unicode:["1f1f9-1f1ec"],isCanonical:!1},":flag_tf:":{unicode:["1f1f9-1f1eb"],isCanonical:!0},":tf:":{unicode:["1f1f9-1f1eb"],isCanonical:!1},":flag_td:":{unicode:["1f1f9-1f1e9"],isCanonical:!0},":td:":{unicode:["1f1f9-1f1e9"],isCanonical:!1},":flag_tc:":{unicode:["1f1f9-1f1e8"],isCanonical:!0},":tc:":{unicode:["1f1f9-1f1e8"],isCanonical:!1},":flag_ta:":{unicode:["1f1f9-1f1e6"],isCanonical:!0},":ta:":{unicode:["1f1f9-1f1e6"],isCanonical:!1},":flag_sz:":{unicode:["1f1f8-1f1ff"],isCanonical:!0},":sz:":{unicode:["1f1f8-1f1ff"],isCanonical:!1},":flag_sy:":{unicode:["1f1f8-1f1fe"],isCanonical:!0},":sy:":{unicode:["1f1f8-1f1fe"],isCanonical:!1},":flag_sx:":{unicode:["1f1f8-1f1fd"],isCanonical:!0},":sx:":{unicode:["1f1f8-1f1fd"],isCanonical:!1},":flag_sv:":{unicode:["1f1f8-1f1fb"],isCanonical:!0},":sv:":{unicode:["1f1f8-1f1fb"],isCanonical:!1},":flag_st:":{unicode:["1f1f8-1f1f9"],isCanonical:!0},":st:":{unicode:["1f1f8-1f1f9"],isCanonical:!1},":flag_ss:":{unicode:["1f1f8-1f1f8"],isCanonical:!0},":ss:":{unicode:["1f1f8-1f1f8"],isCanonical:!1},":flag_sr:":{unicode:["1f1f8-1f1f7"],isCanonical:!0},":sr:":{unicode:["1f1f8-1f1f7"],isCanonical:!1},":flag_so:":{unicode:["1f1f8-1f1f4"],isCanonical:!0},":so:":{unicode:["1f1f8-1f1f4"],isCanonical:!1},":flag_sn:":{unicode:["1f1f8-1f1f3"],isCanonical:!0},":sn:":{unicode:["1f1f8-1f1f3"],isCanonical:!1},":flag_sm:":{unicode:["1f1f8-1f1f2"],isCanonical:!0},":sm:":{unicode:["1f1f8-1f1f2"],isCanonical:!1},":flag_sl:":{unicode:["1f1f8-1f1f1"],isCanonical:!0},":sl:":{unicode:["1f1f8-1f1f1"],isCanonical:!1},":flag_sk:":{unicode:["1f1f8-1f1f0"],isCanonical:!0},":sk:":{unicode:["1f1f8-1f1f0"],isCanonical:!1},":flag_sj:":{unicode:["1f1f8-1f1ef"],isCanonical:!0},":sj:":{unicode:["1f1f8-1f1ef"],isCanonical:!1},":flag_si:":{unicode:["1f1f8-1f1ee"],isCanonical:!0},":si:":{unicode:["1f1f8-1f1ee"],isCanonical:!1},":flag_sh:":{unicode:["1f1f8-1f1ed"],isCanonical:!0},":sh:":{unicode:["1f1f8-1f1ed"],isCanonical:!1},":flag_sg:":{unicode:["1f1f8-1f1ec"],isCanonical:!0},":sg:":{unicode:["1f1f8-1f1ec"],isCanonical:!1},":flag_se:":{unicode:["1f1f8-1f1ea"],isCanonical:!0},":se:":{unicode:["1f1f8-1f1ea"],isCanonical:!1},":flag_sd:":{unicode:["1f1f8-1f1e9"],isCanonical:!0},":sd:":{unicode:["1f1f8-1f1e9"],isCanonical:!1},":flag_sc:":{unicode:["1f1f8-1f1e8"],isCanonical:!0},":sc:":{unicode:["1f1f8-1f1e8"],isCanonical:!1},":flag_sb:":{unicode:["1f1f8-1f1e7"],isCanonical:!0},":sb:":{unicode:["1f1f8-1f1e7"],isCanonical:!1},":flag_sa:":{unicode:["1f1f8-1f1e6"],isCanonical:!0},":saudiarabia:":{unicode:["1f1f8-1f1e6"],isCanonical:!1},":saudi:":{unicode:["1f1f8-1f1e6"],isCanonical:!1},":flag_rw:":{unicode:["1f1f7-1f1fc"],isCanonical:!0},":rw:":{unicode:["1f1f7-1f1fc"],isCanonical:!1},":flag_ru:":{unicode:["1f1f7-1f1fa"],isCanonical:!0},":ru:":{unicode:["1f1f7-1f1fa"],isCanonical:!1},":flag_rs:":{unicode:["1f1f7-1f1f8"],isCanonical:!0},":rs:":{unicode:["1f1f7-1f1f8"],isCanonical:!1},":flag_ro:":{unicode:["1f1f7-1f1f4"],isCanonical:!0},":ro:":{unicode:["1f1f7-1f1f4"],isCanonical:!1},":flag_re:":{unicode:["1f1f7-1f1ea"],isCanonical:!0},":re:":{unicode:["1f1f7-1f1ea"],isCanonical:!1},":flag_qa:":{unicode:["1f1f6-1f1e6"],isCanonical:!0},":qa:":{unicode:["1f1f6-1f1e6"],isCanonical:!1},":flag_py:":{unicode:["1f1f5-1f1fe"],isCanonical:!0},":py:":{unicode:["1f1f5-1f1fe"],
|
||
isCanonical:!1},":flag_pw:":{unicode:["1f1f5-1f1fc"],isCanonical:!0},":pw:":{unicode:["1f1f5-1f1fc"],isCanonical:!1},":flag_pt:":{unicode:["1f1f5-1f1f9"],isCanonical:!0},":pt:":{unicode:["1f1f5-1f1f9"],isCanonical:!1},":flag_ps:":{unicode:["1f1f5-1f1f8"],isCanonical:!0},":ps:":{unicode:["1f1f5-1f1f8"],isCanonical:!1},":flag_pr:":{unicode:["1f1f5-1f1f7"],isCanonical:!0},":pr:":{unicode:["1f1f5-1f1f7"],isCanonical:!1},":flag_pn:":{unicode:["1f1f5-1f1f3"],isCanonical:!0},":pn:":{unicode:["1f1f5-1f1f3"],isCanonical:!1},":flag_pm:":{unicode:["1f1f5-1f1f2"],isCanonical:!0},":pm:":{unicode:["1f1f5-1f1f2"],isCanonical:!1},":flag_pl:":{unicode:["1f1f5-1f1f1"],isCanonical:!0},":pl:":{unicode:["1f1f5-1f1f1"],isCanonical:!1},":flag_pk:":{unicode:["1f1f5-1f1f0"],isCanonical:!0},":pk:":{unicode:["1f1f5-1f1f0"],isCanonical:!1},":flag_ph:":{unicode:["1f1f5-1f1ed"],isCanonical:!0},":ph:":{unicode:["1f1f5-1f1ed"],isCanonical:!1},":flag_pg:":{unicode:["1f1f5-1f1ec"],isCanonical:!0},":pg:":{unicode:["1f1f5-1f1ec"],isCanonical:!1},":flag_pf:":{unicode:["1f1f5-1f1eb"],isCanonical:!0},":pf:":{unicode:["1f1f5-1f1eb"],isCanonical:!1},":flag_pe:":{unicode:["1f1f5-1f1ea"],isCanonical:!0},":pe:":{unicode:["1f1f5-1f1ea"],isCanonical:!1},":flag_pa:":{unicode:["1f1f5-1f1e6"],isCanonical:!0},":pa:":{unicode:["1f1f5-1f1e6"],isCanonical:!1},":flag_om:":{unicode:["1f1f4-1f1f2"],isCanonical:!0},":om:":{unicode:["1f1f4-1f1f2"],isCanonical:!1},":flag_nz:":{unicode:["1f1f3-1f1ff"],isCanonical:!0},":nz:":{unicode:["1f1f3-1f1ff"],isCanonical:!1},":flag_nu:":{unicode:["1f1f3-1f1fa"],isCanonical:!0},":nu:":{unicode:["1f1f3-1f1fa"],isCanonical:!1},":flag_nr:":{unicode:["1f1f3-1f1f7"],isCanonical:!0},":nr:":{unicode:["1f1f3-1f1f7"],isCanonical:!1},":flag_np:":{unicode:["1f1f3-1f1f5"],isCanonical:!0},":np:":{unicode:["1f1f3-1f1f5"],isCanonical:!1},":flag_no:":{unicode:["1f1f3-1f1f4"],isCanonical:!0},":no:":{unicode:["1f1f3-1f1f4"],isCanonical:!1},":flag_nl:":{unicode:["1f1f3-1f1f1"],isCanonical:!0},":nl:":{unicode:["1f1f3-1f1f1"],isCanonical:!1},":flag_ni:":{unicode:["1f1f3-1f1ee"],isCanonical:!0},":ni:":{unicode:["1f1f3-1f1ee"],isCanonical:!1},":flag_ng:":{unicode:["1f1f3-1f1ec"],isCanonical:!0},":nigeria:":{unicode:["1f1f3-1f1ec"],isCanonical:!1},":flag_nf:":{unicode:["1f1f3-1f1eb"],isCanonical:!0},":nf:":{unicode:["1f1f3-1f1eb"],isCanonical:!1},":flag_ne:":{unicode:["1f1f3-1f1ea"],isCanonical:!0},":ne:":{unicode:["1f1f3-1f1ea"],isCanonical:!1},":flag_nc:":{unicode:["1f1f3-1f1e8"],isCanonical:!0},":nc:":{unicode:["1f1f3-1f1e8"],isCanonical:!1},":flag_na:":{unicode:["1f1f3-1f1e6"],isCanonical:!0},":na:":{unicode:["1f1f3-1f1e6"],isCanonical:!1},":flag_mz:":{unicode:["1f1f2-1f1ff"],isCanonical:!0},":mz:":{unicode:["1f1f2-1f1ff"],isCanonical:!1},":flag_my:":{unicode:["1f1f2-1f1fe"],isCanonical:!0},":my:":{unicode:["1f1f2-1f1fe"],isCanonical:!1},":flag_mx:":{unicode:["1f1f2-1f1fd"],isCanonical:!0},":mx:":{unicode:["1f1f2-1f1fd"],isCanonical:!1},":flag_mw:":{unicode:["1f1f2-1f1fc"],isCanonical:!0},":mw:":{unicode:["1f1f2-1f1fc"],isCanonical:!1},":flag_mv:":{unicode:["1f1f2-1f1fb"],isCanonical:!0},":mv:":{unicode:["1f1f2-1f1fb"],isCanonical:!1},":flag_mu:":{unicode:["1f1f2-1f1fa"],isCanonical:!0},":mu:":{unicode:["1f1f2-1f1fa"],isCanonical:!1},":flag_mt:":{unicode:["1f1f2-1f1f9"],isCanonical:!0},":mt:":{unicode:["1f1f2-1f1f9"],isCanonical:!1},":flag_ms:":{unicode:["1f1f2-1f1f8"],isCanonical:!0},":ms:":{unicode:["1f1f2-1f1f8"],isCanonical:!1},":flag_mr:":{unicode:["1f1f2-1f1f7"],isCanonical:!0},":mr:":{unicode:["1f1f2-1f1f7"],isCanonical:!1},":flag_mq:":{unicode:["1f1f2-1f1f6"],isCanonical:!0},":mq:":{unicode:["1f1f2-1f1f6"],isCanonical:!1},":flag_mp:":{unicode:["1f1f2-1f1f5"],isCanonical:!0},":mp:":{unicode:["1f1f2-1f1f5"],isCanonical:!1},":flag_mo:":{unicode:["1f1f2-1f1f4"],isCanonical:!0},":mo:":{unicode:["1f1f2-1f1f4"],isCanonical:!1},":flag_mn:":{unicode:["1f1f2-1f1f3"],isCanonical:!0},":mn:":{unicode:["1f1f2-1f1f3"],isCanonical:!1},":flag_mm:":{unicode:["1f1f2-1f1f2"],isCanonical:!0},":mm:":{unicode:["1f1f2-1f1f2"],isCanonical:!1},":flag_ml:":{unicode:["1f1f2-1f1f1"],isCanonical:!0},":ml:":{unicode:["1f1f2-1f1f1"],isCanonical:!1},":flag_mk:":{unicode:["1f1f2-1f1f0"],isCanonical:!0},":mk:":{unicode:["1f1f2-1f1f0"],isCanonical:!1},":flag_mh:":{unicode:["1f1f2-1f1ed"],isCanonical:!0},":mh:":{unicode:["1f1f2-1f1ed"],isCanonical:!1},":flag_mg:":{unicode:["1f1f2-1f1ec"],isCanonical:!0},":mg:":{unicode:["1f1f2-1f1ec"],isCanonical:!1},":flag_mf:":{unicode:["1f1f2-1f1eb"],isCanonical:!0},":mf:":{unicode:["1f1f2-1f1eb"],isCanonical:!1},":flag_me:":{unicode:["1f1f2-1f1ea"],isCanonical:!0},":me:":{unicode:["1f1f2-1f1ea"],isCanonical:!1},":flag_md:":{unicode:["1f1f2-1f1e9"],isCanonical:!0},":md:":{unicode:["1f1f2-1f1e9"],isCanonical:!1},":flag_mc:":{unicode:["1f1f2-1f1e8"],isCanonical:!0},":mc:":{unicode:["1f1f2-1f1e8"],isCanonical:!1},":flag_ma:":{unicode:["1f1f2-1f1e6"],isCanonical:!0},":ma:":{unicode:["1f1f2-1f1e6"],isCanonical:!1},":flag_ly:":{unicode:["1f1f1-1f1fe"],isCanonical:!0},":ly:":{unicode:["1f1f1-1f1fe"],isCanonical:!1},":flag_lv:":{unicode:["1f1f1-1f1fb"],isCanonical:!0},":lv:":{unicode:["1f1f1-1f1fb"],isCanonical:!1},":flag_lu:":{unicode:["1f1f1-1f1fa"],isCanonical:!0},":lu:":{unicode:["1f1f1-1f1fa"],isCanonical:!1},":flag_lt:":{unicode:["1f1f1-1f1f9"],isCanonical:!0},":lt:":{unicode:["1f1f1-1f1f9"],isCanonical:!1},":flag_ls:":{unicode:["1f1f1-1f1f8"],isCanonical:!0},":ls:":{unicode:["1f1f1-1f1f8"],isCanonical:!1},":flag_lr:":{unicode:["1f1f1-1f1f7"],isCanonical:!0},":lr:":{unicode:["1f1f1-1f1f7"],isCanonical:!1},":flag_lk:":{unicode:["1f1f1-1f1f0"],isCanonical:!0},":lk:":{unicode:["1f1f1-1f1f0"],isCanonical:!1},":flag_li:":{unicode:["1f1f1-1f1ee"],isCanonical:!0},":li:":{unicode:["1f1f1-1f1ee"],isCanonical:!1},":flag_lc:":{unicode:["1f1f1-1f1e8"],isCanonical:!0},":lc:":{unicode:["1f1f1-1f1e8"],isCanonical:!1},":flag_lb:":{unicode:["1f1f1-1f1e7"],isCanonical:!0},":lb:":{unicode:["1f1f1-1f1e7"],isCanonical:!1},":flag_la:":{unicode:["1f1f1-1f1e6"],isCanonical:!0},":la:":{unicode:["1f1f1-1f1e6"],isCanonical:!1},":flag_kz:":{unicode:["1f1f0-1f1ff"],isCanonical:!0},":kz:":{unicode:["1f1f0-1f1ff"],isCanonical:!1},":flag_ky:":{unicode:["1f1f0-1f1fe"],isCanonical:!0},":ky:":{unicode:["1f1f0-1f1fe"],isCanonical:!1},":flag_kw:":{unicode:["1f1f0-1f1fc"],isCanonical:!0},":kw:":{unicode:["1f1f0-1f1fc"],isCanonical:!1},":flag_kr:":{unicode:["1f1f0-1f1f7"],isCanonical:!0},":kr:":{unicode:["1f1f0-1f1f7"],isCanonical:!1},":flag_kp:":{unicode:["1f1f0-1f1f5"],isCanonical:!0},":kp:":{unicode:["1f1f0-1f1f5"],isCanonical:!1},":flag_kn:":{unicode:["1f1f0-1f1f3"],isCanonical:!0},":kn:":{unicode:["1f1f0-1f1f3"],isCanonical:!1},":flag_km:":{unicode:["1f1f0-1f1f2"],isCanonical:!0},":km:":{unicode:["1f1f0-1f1f2"],isCanonical:!1},":flag_ki:":{unicode:["1f1f0-1f1ee"],isCanonical:!0},":ki:":{unicode:["1f1f0-1f1ee"],isCanonical:!1},":flag_kh:":{unicode:["1f1f0-1f1ed"],isCanonical:!0},":kh:":{unicode:["1f1f0-1f1ed"],isCanonical:!1},":flag_kg:":{unicode:["1f1f0-1f1ec"],isCanonical:!0},":kg:":{unicode:["1f1f0-1f1ec"],isCanonical:!1},":flag_ke:":{unicode:["1f1f0-1f1ea"],isCanonical:!0},":ke:":{unicode:["1f1f0-1f1ea"],isCanonical:!1},":flag_jp:":{unicode:["1f1ef-1f1f5"],isCanonical:!0},":jp:":{unicode:["1f1ef-1f1f5"],isCanonical:!1},":flag_jo:":{unicode:["1f1ef-1f1f4"],isCanonical:!0},":jo:":{unicode:["1f1ef-1f1f4"],isCanonical:!1},":flag_jm:":{unicode:["1f1ef-1f1f2"],isCanonical:!0},":jm:":{unicode:["1f1ef-1f1f2"],isCanonical:!1},":flag_je:":{unicode:["1f1ef-1f1ea"],isCanonical:!0},":je:":{unicode:["1f1ef-1f1ea"],isCanonical:!1},":flag_it:":{unicode:["1f1ee-1f1f9"],isCanonical:!0},":it:":{unicode:["1f1ee-1f1f9"],isCanonical:!1},":flag_is:":{unicode:["1f1ee-1f1f8"],isCanonical:!0},":is:":{unicode:["1f1ee-1f1f8"],isCanonical:!1},":flag_ir:":{unicode:["1f1ee-1f1f7"],isCanonical:!0},":ir:":{unicode:["1f1ee-1f1f7"],isCanonical:!1},":flag_iq:":{unicode:["1f1ee-1f1f6"],isCanonical:!0},":iq:":{unicode:["1f1ee-1f1f6"],isCanonical:!1},":flag_io:":{unicode:["1f1ee-1f1f4"],isCanonical:!0},":io:":{unicode:["1f1ee-1f1f4"],isCanonical:!1},":flag_in:":{unicode:["1f1ee-1f1f3"],isCanonical:!0},":in:":{unicode:["1f1ee-1f1f3"],isCanonical:!1},":flag_im:":{unicode:["1f1ee-1f1f2"],isCanonical:!0},":im:":{unicode:["1f1ee-1f1f2"],isCanonical:!1},":flag_il:":{unicode:["1f1ee-1f1f1"],isCanonical:!0},":il:":{unicode:["1f1ee-1f1f1"],isCanonical:!1},":flag_ie:":{unicode:["1f1ee-1f1ea"],isCanonical:!0},":ie:":{unicode:["1f1ee-1f1ea"],isCanonical:!1},":flag_id:":{unicode:["1f1ee-1f1e9"],isCanonical:!0},":indonesia:":{unicode:["1f1ee-1f1e9"],isCanonical:!1},":flag_ic:":{unicode:["1f1ee-1f1e8"],isCanonical:!0},":ic:":{unicode:["1f1ee-1f1e8"],isCanonical:!1},":flag_hu:":{unicode:["1f1ed-1f1fa"],isCanonical:!0},":hu:":{unicode:["1f1ed-1f1fa"],isCanonical:!1},":flag_ht:":{unicode:["1f1ed-1f1f9"],isCanonical:!0},":ht:":{unicode:["1f1ed-1f1f9"],isCanonical:!1},":flag_hr:":{unicode:["1f1ed-1f1f7"],isCanonical:!0},":hr:":{unicode:["1f1ed-1f1f7"],isCanonical:!1},":flag_hn:":{unicode:["1f1ed-1f1f3"],isCanonical:!0},":hn:":{unicode:["1f1ed-1f1f3"],isCanonical:!1},":flag_hm:":{unicode:["1f1ed-1f1f2"],isCanonical:!0},":hm:":{unicode:["1f1ed-1f1f2"],isCanonical:!1},":flag_hk:":{unicode:["1f1ed-1f1f0"],isCanonical:!0},":hk:":{unicode:["1f1ed-1f1f0"],isCanonical:!1},":flag_gy:":{unicode:["1f1ec-1f1fe"],isCanonical:!0},":gy:":{unicode:["1f1ec-1f1fe"],isCanonical:!1},":flag_gw:":{unicode:["1f1ec-1f1fc"],isCanonical:!0},":gw:":{unicode:["1f1ec-1f1fc"],isCanonical:!1},":flag_gu:":{unicode:["1f1ec-1f1fa"],isCanonical:!0},":gu:":{unicode:["1f1ec-1f1fa"],isCanonical:!1},":flag_gt:":{unicode:["1f1ec-1f1f9"],isCanonical:!0},":gt:":{unicode:["1f1ec-1f1f9"],isCanonical:!1},":flag_gs:":{unicode:["1f1ec-1f1f8"],isCanonical:!0},":gs:":{unicode:["1f1ec-1f1f8"],isCanonical:!1},":flag_gr:":{unicode:["1f1ec-1f1f7"],isCanonical:!0},":gr:":{unicode:["1f1ec-1f1f7"],isCanonical:!1},":flag_gq:":{unicode:["1f1ec-1f1f6"],isCanonical:!0},":gq:":{unicode:["1f1ec-1f1f6"],isCanonical:!1},":flag_gp:":{unicode:["1f1ec-1f1f5"],isCanonical:!0},":gp:":{unicode:["1f1ec-1f1f5"],isCanonical:!1},":flag_gn:":{unicode:["1f1ec-1f1f3"],isCanonical:!0},":gn:":{unicode:["1f1ec-1f1f3"],isCanonical:!1},":flag_gm:":{unicode:["1f1ec-1f1f2"],isCanonical:!0},":gm:":{unicode:["1f1ec-1f1f2"],isCanonical:!1},":flag_gl:":{unicode:["1f1ec-1f1f1"],isCanonical:!0},":gl:":{unicode:["1f1ec-1f1f1"],isCanonical:!1},":flag_gi:":{unicode:["1f1ec-1f1ee"],isCanonical:!0},":gi:":{unicode:["1f1ec-1f1ee"],isCanonical:!1},":flag_gh:":{unicode:["1f1ec-1f1ed"],isCanonical:!0},":gh:":{unicode:["1f1ec-1f1ed"],isCanonical:!1},":flag_gg:":{unicode:["1f1ec-1f1ec"],isCanonical:!0},":gg:":{unicode:["1f1ec-1f1ec"],isCanonical:!1},":flag_gf:":{unicode:["1f1ec-1f1eb"],isCanonical:!0},":gf:":{unicode:["1f1ec-1f1eb"],isCanonical:!1},":flag_ge:":{unicode:["1f1ec-1f1ea"],isCanonical:!0},":ge:":{unicode:["1f1ec-1f1ea"],isCanonical:!1},":flag_gd:":{unicode:["1f1ec-1f1e9"],isCanonical:!0},":gd:":{unicode:["1f1ec-1f1e9"],isCanonical:!1},":flag_gb:":{unicode:["1f1ec-1f1e7"],isCanonical:!0},":gb:":{unicode:["1f1ec-1f1e7"],isCanonical:!1},":flag_ga:":{unicode:["1f1ec-1f1e6"],isCanonical:!0},":ga:":{unicode:["1f1ec-1f1e6"],isCanonical:!1},":flag_fr:":{unicode:["1f1eb-1f1f7"],isCanonical:!0},":fr:":{unicode:["1f1eb-1f1f7"],isCanonical:!1},":flag_fo:":{unicode:["1f1eb-1f1f4"],isCanonical:!0},":fo:":{unicode:["1f1eb-1f1f4"],isCanonical:!1},":flag_fm:":{unicode:["1f1eb-1f1f2"],isCanonical:!0},":fm:":{unicode:["1f1eb-1f1f2"],isCanonical:!1},":flag_fk:":{unicode:["1f1eb-1f1f0"],isCanonical:!0},":fk:":{unicode:["1f1eb-1f1f0"],isCanonical:!1},":flag_fj:":{unicode:["1f1eb-1f1ef"],isCanonical:!0},":fj:":{unicode:["1f1eb-1f1ef"],isCanonical:!1},":flag_fi:":{unicode:["1f1eb-1f1ee"],isCanonical:!0},":fi:":{unicode:["1f1eb-1f1ee"],isCanonical:!1},":flag_eu:":{unicode:["1f1ea-1f1fa"],isCanonical:!0},":eu:":{unicode:["1f1ea-1f1fa"],isCanonical:!1},":flag_et:":{unicode:["1f1ea-1f1f9"],isCanonical:!0},":et:":{unicode:["1f1ea-1f1f9"],isCanonical:!1},":flag_es:":{unicode:["1f1ea-1f1f8"],isCanonical:!0},":es:":{unicode:["1f1ea-1f1f8"],isCanonical:!1},":flag_er:":{unicode:["1f1ea-1f1f7"],isCanonical:!0},":er:":{unicode:["1f1ea-1f1f7"],isCanonical:!1},":flag_eh:":{unicode:["1f1ea-1f1ed"],isCanonical:!0},":eh:":{unicode:["1f1ea-1f1ed"],isCanonical:!1},":flag_eg:":{unicode:["1f1ea-1f1ec"],isCanonical:!0},":eg:":{unicode:["1f1ea-1f1ec"],isCanonical:!1},":flag_ee:":{unicode:["1f1ea-1f1ea"],isCanonical:!0},":ee:":{unicode:["1f1ea-1f1ea"],isCanonical:!1},":flag_ec:":{unicode:["1f1ea-1f1e8"],isCanonical:!0},":ec:":{unicode:["1f1ea-1f1e8"],isCanonical:!1},":flag_ea:":{unicode:["1f1ea-1f1e6"],isCanonical:!0},":ea:":{unicode:["1f1ea-1f1e6"],isCanonical:!1},":flag_dz:":{unicode:["1f1e9-1f1ff"],isCanonical:!0},":dz:":{unicode:["1f1e9-1f1ff"],isCanonical:!1},":flag_do:":{unicode:["1f1e9-1f1f4"],isCanonical:!0},":do:":{unicode:["1f1e9-1f1f4"],isCanonical:!1},":flag_dm:":{unicode:["1f1e9-1f1f2"],isCanonical:!0},":dm:":{unicode:["1f1e9-1f1f2"],isCanonical:!1},":flag_dk:":{unicode:["1f1e9-1f1f0"],isCanonical:!0},":dk:":{unicode:["1f1e9-1f1f0"],isCanonical:!1},":flag_dj:":{unicode:["1f1e9-1f1ef"],isCanonical:!0},":dj:":{unicode:["1f1e9-1f1ef"],isCanonical:!1},":flag_dg:":{unicode:["1f1e9-1f1ec"],isCanonical:!0},":dg:":{unicode:["1f1e9-1f1ec"],isCanonical:!1},":flag_de:":{unicode:["1f1e9-1f1ea"],isCanonical:!0},":de:":{unicode:["1f1e9-1f1ea"],isCanonical:!1},":flag_cz:":{unicode:["1f1e8-1f1ff"],isCanonical:!0},":cz:":{unicode:["1f1e8-1f1ff"],isCanonical:!1},":flag_cy:":{unicode:["1f1e8-1f1fe"],isCanonical:!0},":cy:":{unicode:["1f1e8-1f1fe"],isCanonical:!1},":flag_cx:":{unicode:["1f1e8-1f1fd"],isCanonical:!0},":cx:":{unicode:["1f1e8-1f1fd"],isCanonical:!1},":flag_cw:":{unicode:["1f1e8-1f1fc"],isCanonical:!0},":cw:":{unicode:["1f1e8-1f1fc"],isCanonical:!1},":flag_cv:":{unicode:["1f1e8-1f1fb"],isCanonical:!0},":cv:":{unicode:["1f1e8-1f1fb"],isCanonical:!1},":flag_cu:":{unicode:["1f1e8-1f1fa"],isCanonical:!0},":cu:":{unicode:["1f1e8-1f1fa"],isCanonical:!1},":flag_cr:":{unicode:["1f1e8-1f1f7"],isCanonical:!0},":cr:":{unicode:["1f1e8-1f1f7"],isCanonical:!1},":flag_cp:":{unicode:["1f1e8-1f1f5"],isCanonical:!0},":cp:":{unicode:["1f1e8-1f1f5"],isCanonical:!1},":flag_co:":{unicode:["1f1e8-1f1f4"],isCanonical:!0},":co:":{unicode:["1f1e8-1f1f4"],isCanonical:!1},":flag_cn:":{unicode:["1f1e8-1f1f3"],isCanonical:!0},":cn:":{unicode:["1f1e8-1f1f3"],isCanonical:!1},":flag_cm:":{unicode:["1f1e8-1f1f2"],isCanonical:!0},":cm:":{unicode:["1f1e8-1f1f2"],isCanonical:!1},":flag_cl:":{unicode:["1f1e8-1f1f1"],isCanonical:!0},":chile:":{unicode:["1f1e8-1f1f1"],isCanonical:!1},":flag_ck:":{unicode:["1f1e8-1f1f0"],isCanonical:!0},":ck:":{unicode:["1f1e8-1f1f0"],isCanonical:!1},":flag_ci:":{unicode:["1f1e8-1f1ee"],isCanonical:!0},":ci:":{unicode:["1f1e8-1f1ee"],isCanonical:!1},":flag_ch:":{unicode:["1f1e8-1f1ed"],isCanonical:!0},":ch:":{unicode:["1f1e8-1f1ed"],isCanonical:!1},":flag_cg:":{unicode:["1f1e8-1f1ec"],isCanonical:!0},":cg:":{unicode:["1f1e8-1f1ec"],isCanonical:!1},":flag_cf:":{unicode:["1f1e8-1f1eb"],isCanonical:!0},":cf:":{unicode:["1f1e8-1f1eb"],isCanonical:!1},":flag_cd:":{unicode:["1f1e8-1f1e9"],isCanonical:!0},":congo:":{unicode:["1f1e8-1f1e9"],isCanonical:!1},":flag_cc:":{unicode:["1f1e8-1f1e8"],isCanonical:!0},":cc:":{unicode:["1f1e8-1f1e8"],isCanonical:!1},":flag_ca:":{unicode:["1f1e8-1f1e6"],isCanonical:!0},":ca:":{unicode:["1f1e8-1f1e6"],isCanonical:!1},":flag_bz:":{unicode:["1f1e7-1f1ff"],isCanonical:!0},":bz:":{unicode:["1f1e7-1f1ff"],isCanonical:!1},":flag_by:":{unicode:["1f1e7-1f1fe"],isCanonical:!0},":by:":{unicode:["1f1e7-1f1fe"],isCanonical:!1},":flag_bw:":{unicode:["1f1e7-1f1fc"],isCanonical:!0},":bw:":{unicode:["1f1e7-1f1fc"],isCanonical:!1},":flag_bv:":{unicode:["1f1e7-1f1fb"],isCanonical:!0},":bv:":{unicode:["1f1e7-1f1fb"],isCanonical:!1},":flag_bt:":{unicode:["1f1e7-1f1f9"],isCanonical:!0},":bt:":{unicode:["1f1e7-1f1f9"],isCanonical:!1},":flag_bs:":{unicode:["1f1e7-1f1f8"],isCanonical:!0},":bs:":{unicode:["1f1e7-1f1f8"],isCanonical:!1},":flag_br:":{unicode:["1f1e7-1f1f7"],isCanonical:!0},":br:":{unicode:["1f1e7-1f1f7"],isCanonical:!1},":flag_bq:":{unicode:["1f1e7-1f1f6"],isCanonical:!0},":bq:":{unicode:["1f1e7-1f1f6"],isCanonical:!1},":flag_bo:":{unicode:["1f1e7-1f1f4"],isCanonical:!0},":bo:":{unicode:["1f1e7-1f1f4"],isCanonical:!1},":flag_bn:":{unicode:["1f1e7-1f1f3"],isCanonical:!0},":bn:":{unicode:["1f1e7-1f1f3"],isCanonical:!1},":flag_bm:":{unicode:["1f1e7-1f1f2"],isCanonical:!0},":bm:":{unicode:["1f1e7-1f1f2"],isCanonical:!1},":flag_bl:":{unicode:["1f1e7-1f1f1"],isCanonical:!0},":bl:":{unicode:["1f1e7-1f1f1"],isCanonical:!1},":flag_bj:":{unicode:["1f1e7-1f1ef"],isCanonical:!0},":bj:":{unicode:["1f1e7-1f1ef"],isCanonical:!1},":flag_bi:":{unicode:["1f1e7-1f1ee"],isCanonical:!0},":bi:":{unicode:["1f1e7-1f1ee"],isCanonical:!1},":flag_bh:":{unicode:["1f1e7-1f1ed"],isCanonical:!0},":bh:":{unicode:["1f1e7-1f1ed"],isCanonical:!1},":flag_bg:":{unicode:["1f1e7-1f1ec"],isCanonical:!0},":bg:":{unicode:["1f1e7-1f1ec"],isCanonical:!1},":flag_bf:":{unicode:["1f1e7-1f1eb"],isCanonical:!0},":bf:":{unicode:["1f1e7-1f1eb"],isCanonical:!1},":flag_be:":{unicode:["1f1e7-1f1ea"],isCanonical:!0},":be:":{unicode:["1f1e7-1f1ea"],isCanonical:!1},":flag_bd:":{unicode:["1f1e7-1f1e9"],isCanonical:!0},":bd:":{unicode:["1f1e7-1f1e9"],isCanonical:!1},":flag_bb:":{unicode:["1f1e7-1f1e7"],isCanonical:!0},":bb:":{unicode:["1f1e7-1f1e7"],isCanonical:!1},":flag_ba:":{unicode:["1f1e7-1f1e6"],isCanonical:!0},":ba:":{unicode:["1f1e7-1f1e6"],isCanonical:!1},":flag_az:":{unicode:["1f1e6-1f1ff"],isCanonical:!0},":az:":{unicode:["1f1e6-1f1ff"],isCanonical:!1},":flag_ax:":{unicode:["1f1e6-1f1fd"],isCanonical:!0},":ax:":{unicode:["1f1e6-1f1fd"],isCanonical:!1},":flag_aw:":{unicode:["1f1e6-1f1fc"],isCanonical:!0},":aw:":{unicode:["1f1e6-1f1fc"],isCanonical:!1},":flag_au:":{unicode:["1f1e6-1f1fa"],isCanonical:!0},":au:":{unicode:["1f1e6-1f1fa"],isCanonical:!1},":flag_at:":{unicode:["1f1e6-1f1f9"],isCanonical:!0},":at:":{unicode:["1f1e6-1f1f9"],isCanonical:!1},":flag_as:":{unicode:["1f1e6-1f1f8"],isCanonical:!0},":as:":{unicode:["1f1e6-1f1f8"],isCanonical:!1},":flag_ar:":{unicode:["1f1e6-1f1f7"],isCanonical:!0},":ar:":{unicode:["1f1e6-1f1f7"],isCanonical:!1},":flag_aq:":{unicode:["1f1e6-1f1f6"],isCanonical:!0},":aq:":{unicode:["1f1e6-1f1f6"],isCanonical:!1},":flag_ao:":{unicode:["1f1e6-1f1f4"],isCanonical:!0},":ao:":{unicode:["1f1e6-1f1f4"],isCanonical:!1},":flag_am:":{unicode:["1f1e6-1f1f2"],isCanonical:!0},":am:":{unicode:["1f1e6-1f1f2"],isCanonical:!1},":flag_al:":{unicode:["1f1e6-1f1f1"],isCanonical:!0},":al:":{unicode:["1f1e6-1f1f1"],isCanonical:!1},":flag_ai:":{unicode:["1f1e6-1f1ee"],isCanonical:!0},":ai:":{unicode:["1f1e6-1f1ee"],isCanonical:!1},":flag_ag:":{unicode:["1f1e6-1f1ec"],isCanonical:!0},":ag:":{unicode:["1f1e6-1f1ec"],isCanonical:!1},":flag_af:":{unicode:["1f1e6-1f1eb"],isCanonical:!0},":af:":{unicode:["1f1e6-1f1eb"],isCanonical:!1},":flag_ae:":{unicode:["1f1e6-1f1ea"],isCanonical:!0},":ae:":{unicode:["1f1e6-1f1ea"],isCanonical:!1},":flag_ad:":{unicode:["1f1e6-1f1e9"],isCanonical:!0},":ad:":{unicode:["1f1e6-1f1e9"],isCanonical:!1},":flag_ac:":{unicode:["1f1e6-1f1e8"],isCanonical:!0},":ac:":{unicode:["1f1e6-1f1e8"],isCanonical:!1},":mahjong:":{unicode:["1f004-fe0f","1f004"],isCanonical:!0},":parking:":{unicode:["1f17f-fe0f","1f17f"],isCanonical:!0},":sa:":{unicode:["1f202-fe0f","1f202"],isCanonical:!0},":u7121:":{unicode:["1f21a-fe0f","1f21a"],isCanonical:!0},":u6307:":{unicode:["1f22f-fe0f","1f22f"],isCanonical:!0},":u6708:":{unicode:["1f237-fe0f","1f237"],isCanonical:!0},":film_frames:":{unicode:["1f39e-fe0f","1f39e"],isCanonical:!0},":tickets:":{unicode:["1f39f-fe0f","1f39f"],isCanonical:!0},":admission_tickets:":{unicode:["1f39f-fe0f","1f39f"],isCanonical:!1},":lifter:":{unicode:["1f3cb-fe0f","1f3cb"],isCanonical:!0},":weight_lifter:":{unicode:["1f3cb-fe0f","1f3cb"],isCanonical:!1},":golfer:":{unicode:["1f3cc-fe0f","1f3cc"],isCanonical:!0},":motorcycle:":{unicode:["1f3cd-fe0f","1f3cd"],isCanonical:!0},":racing_motorcycle:":{unicode:["1f3cd-fe0f","1f3cd"],isCanonical:!1},":race_car:":{unicode:["1f3ce-fe0f","1f3ce"],isCanonical:!0},":racing_car:":{unicode:["1f3ce-fe0f","1f3ce"],isCanonical:!1},":military_medal:":{unicode:["1f396-fe0f","1f396"],isCanonical:!0},":reminder_ribbon:":{unicode:["1f397-fe0f","1f397"],isCanonical:!0},":hot_pepper:":{unicode:["1f336-fe0f","1f336"],isCanonical:!0},":cloud_rain:":{unicode:["1f327-fe0f","1f327"],isCanonical:!0},":cloud_with_rain:":{unicode:["1f327-fe0f","1f327"],isCanonical:!1},":cloud_snow:":{unicode:["1f328-fe0f","1f328"],isCanonical:!0},":cloud_with_snow:":{unicode:["1f328-fe0f","1f328"],isCanonical:!1},":cloud_lightning:":{unicode:["1f329-fe0f","1f329"],isCanonical:!0},":cloud_with_lightning:":{unicode:["1f329-fe0f","1f329"],isCanonical:!1},":cloud_tornado:":{unicode:["1f32a-fe0f","1f32a"],isCanonical:!0},":cloud_with_tornado:":{unicode:["1f32a-fe0f","1f32a"],isCanonical:!1},":fog:":{unicode:["1f32b-fe0f","1f32b"],isCanonical:!0},":wind_blowing_face:":{unicode:["1f32c-fe0f","1f32c"],isCanonical:!0},":chipmunk:":{unicode:["1f43f-fe0f","1f43f"],isCanonical:!0},":spider:":{unicode:["1f577-fe0f","1f577"],isCanonical:!0},":spider_web:":{unicode:["1f578-fe0f","1f578"],isCanonical:!0},":thermometer:":{unicode:["1f321-fe0f","1f321"],isCanonical:!0},":microphone2:":{unicode:["1f399-fe0f","1f399"],isCanonical:!0},":studio_microphone:":{unicode:["1f399-fe0f","1f399"],isCanonical:!1},":level_slider:":{unicode:["1f39a-fe0f","1f39a"],isCanonical:!0},":control_knobs:":{unicode:["1f39b-fe0f","1f39b"],isCanonical:!0},":flag_white:":{unicode:["1f3f3-fe0f","1f3f3"],isCanonical:!0},":waving_white_flag:":{unicode:["1f3f3-fe0f","1f3f3"],isCanonical:!1},":rosette:":{unicode:["1f3f5-fe0f","1f3f5"],isCanonical:!0},":label:":{unicode:["1f3f7-fe0f","1f3f7"],isCanonical:!0},":projector:":{unicode:["1f4fd-fe0f","1f4fd"],isCanonical:!0},":film_projector:":{unicode:["1f4fd-fe0f","1f4fd"],isCanonical:!1},":om_symbol:":{unicode:["1f549-fe0f","1f549"],isCanonical:!0},":dove:":{unicode:["1f54a-fe0f","1f54a"],isCanonical:!0},":dove_of_peace:":{unicode:["1f54a-fe0f","1f54a"],isCanonical:!1},":candle:":{unicode:["1f56f-fe0f","1f56f"],isCanonical:!0},":clock:":{unicode:["1f570-fe0f","1f570"],isCanonical:!0},":mantlepiece_clock:":{unicode:["1f570-fe0f","1f570"],isCanonical:!1},":hole:":{unicode:["1f573-fe0f","1f573"],isCanonical:!0},":dark_sunglasses:":{unicode:["1f576-fe0f","1f576"],isCanonical:!0},":joystick:":{unicode:["1f579-fe0f","1f579"],isCanonical:!0},":paperclips:":{unicode:["1f587-fe0f","1f587"],isCanonical:!0},":linked_paperclips:":{unicode:["1f587-fe0f","1f587"],isCanonical:!1},":pen_ballpoint:":{unicode:["1f58a-fe0f","1f58a"],isCanonical:!0},":lower_left_ballpoint_pen:":{unicode:["1f58a-fe0f","1f58a"],isCanonical:!1},":pen_fountain:":{unicode:["1f58b-fe0f","1f58b"],isCanonical:!0},":lower_left_fountain_pen:":{unicode:["1f58b-fe0f","1f58b"],isCanonical:!1},":paintbrush:":{unicode:["1f58c-fe0f","1f58c"],isCanonical:!0},":lower_left_paintbrush:":{unicode:["1f58c-fe0f","1f58c"],isCanonical:!1},":crayon:":{unicode:["1f58d-fe0f","1f58d"],isCanonical:!0},":lower_left_crayon:":{unicode:["1f58d-fe0f","1f58d"],isCanonical:!1},":desktop:":{unicode:["1f5a5-fe0f","1f5a5"],isCanonical:!0},":desktop_computer:":{unicode:["1f5a5-fe0f","1f5a5"],isCanonical:!1},":printer:":{unicode:["1f5a8-fe0f","1f5a8"],isCanonical:!0},":trackball:":{unicode:["1f5b2-fe0f","1f5b2"],isCanonical:!0},":frame_photo:":{unicode:["1f5bc-fe0f","1f5bc"],isCanonical:!0},":frame_with_picture:":{unicode:["1f5bc-fe0f","1f5bc"],isCanonical:!1},":dividers:":{unicode:["1f5c2-fe0f","1f5c2"],isCanonical:!0},":card_index_dividers:":{unicode:["1f5c2-fe0f","1f5c2"],isCanonical:!1},":card_box:":{unicode:["1f5c3-fe0f","1f5c3"],isCanonical:!0},":card_file_box:":{unicode:["1f5c3-fe0f","1f5c3"],isCanonical:!1},":file_cabinet:":{unicode:["1f5c4-fe0f","1f5c4"],isCanonical:!0},":wastebasket:":{unicode:["1f5d1-fe0f","1f5d1"],isCanonical:!0},":notepad_spiral:":{unicode:["1f5d2-fe0f","1f5d2"],isCanonical:!0},":spiral_note_pad:":{unicode:["1f5d2-fe0f","1f5d2"],isCanonical:!1},":calendar_spiral:":{unicode:["1f5d3-fe0f","1f5d3"],isCanonical:!0},":spiral_calendar_pad:":{unicode:["1f5d3-fe0f","1f5d3"],isCanonical:!1},":compression:":{unicode:["1f5dc-fe0f","1f5dc"],isCanonical:!0},":key2:":{unicode:["1f5dd-fe0f","1f5dd"],isCanonical:!0},":old_key:":{unicode:["1f5dd-fe0f","1f5dd"],isCanonical:!1},":newspaper2:":{unicode:["1f5de-fe0f","1f5de"],isCanonical:!0},":rolled_up_newspaper:":{unicode:["1f5de-fe0f","1f5de"],isCanonical:!1},":dagger:":{unicode:["1f5e1-fe0f","1f5e1"],isCanonical:!0},":dagger_knife:":{unicode:["1f5e1-fe0f","1f5e1"],isCanonical:!1},":speaking_head:":{unicode:["1f5e3-fe0f","1f5e3"],isCanonical:!0},":speaking_head_in_silhouette:":{unicode:["1f5e3-fe0f","1f5e3"],isCanonical:!1},":anger_right:":{unicode:["1f5ef-fe0f","1f5ef"],isCanonical:!0},":right_anger_bubble:":{unicode:["1f5ef-fe0f","1f5ef"],isCanonical:!1},":ballot_box:":{unicode:["1f5f3-fe0f","1f5f3"],isCanonical:!0},":ballot_box_with_ballot:":{unicode:["1f5f3-fe0f","1f5f3"],isCanonical:!1},":map:":{unicode:["1f5fa-fe0f","1f5fa"],isCanonical:!0},":world_map:":{unicode:["1f5fa-fe0f","1f5fa"],isCanonical:!1},":tools:":{unicode:["1f6e0-fe0f","1f6e0"],isCanonical:!0},":hammer_and_wrench:":{unicode:["1f6e0-fe0f","1f6e0"],isCanonical:!1},":shield:":{unicode:["1f6e1-fe0f","1f6e1"],isCanonical:!0},":oil:":{unicode:["1f6e2-fe0f","1f6e2"],isCanonical:!0},":oil_drum:":{unicode:["1f6e2-fe0f","1f6e2"],isCanonical:!1},":satellite_orbital:":{unicode:["1f6f0-fe0f","1f6f0"],isCanonical:!0},":fork_knife_plate:":{unicode:["1f37d-fe0f","1f37d"],isCanonical:!0},":fork_and_knife_with_plate:":{unicode:["1f37d-fe0f","1f37d"],isCanonical:!1},":eye:":{unicode:["1f441-fe0f","1f441"],isCanonical:!0},":levitate:":{unicode:["1f574-fe0f","1f574"],isCanonical:!0},":man_in_business_suit_levitating:":{unicode:["1f574-fe0f","1f574"],isCanonical:!1},":spy:":{unicode:["1f575-fe0f","1f575"],isCanonical:!0},":sleuth_or_spy:":{unicode:["1f575-fe0f","1f575"],isCanonical:!1},":hand_splayed:":{unicode:["1f590-fe0f","1f590"],isCanonical:!0},":raised_hand_with_fingers_splayed:":{unicode:["1f590-fe0f","1f590"],isCanonical:!1},":mountain_snow:":{unicode:["1f3d4-fe0f","1f3d4"],isCanonical:!0},":snow_capped_mountain:":{unicode:["1f3d4-fe0f","1f3d4"],isCanonical:!1},":camping:":{unicode:["1f3d5-fe0f","1f3d5"],isCanonical:!0},":beach:":{unicode:["1f3d6-fe0f","1f3d6"],isCanonical:!0},":beach_with_umbrella:":{unicode:["1f3d6-fe0f","1f3d6"],isCanonical:!1},":construction_site:":{unicode:["1f3d7-fe0f","1f3d7"],isCanonical:!0},":building_construction:":{unicode:["1f3d7-fe0f","1f3d7"],isCanonical:!1},":homes:":{unicode:["1f3d8-fe0f","1f3d8"],isCanonical:!0},":house_buildings:":{unicode:["1f3d8-fe0f","1f3d8"],isCanonical:!1},":cityscape:":{unicode:["1f3d9-fe0f","1f3d9"],isCanonical:!0},":house_abandoned:":{unicode:["1f3da-fe0f","1f3da"],isCanonical:!0},":derelict_house_building:":{unicode:["1f3da-fe0f","1f3da"],isCanonical:!1},":classical_building:":{unicode:["1f3db-fe0f","1f3db"],isCanonical:!0},":desert:":{unicode:["1f3dc-fe0f","1f3dc"],isCanonical:!0},":island:":{unicode:["1f3dd-fe0f","1f3dd"],isCanonical:!0},":desert_island:":{unicode:["1f3dd-fe0f","1f3dd"],isCanonical:!1},":park:":{unicode:["1f3de-fe0f","1f3de"],isCanonical:!0},":national_park:":{unicode:["1f3de-fe0f","1f3de"],isCanonical:!1},":stadium:":{unicode:["1f3df-fe0f","1f3df"],isCanonical:!0},":couch:":{unicode:["1f6cb-fe0f","1f6cb"],isCanonical:!0},":couch_and_lamp:":{unicode:["1f6cb-fe0f","1f6cb"],isCanonical:!1},":shopping_bags:":{unicode:["1f6cd-fe0f","1f6cd"],isCanonical:!0},":bellhop:":{unicode:["1f6ce-fe0f","1f6ce"],isCanonical:!0},":bellhop_bell:":{unicode:["1f6ce-fe0f","1f6ce"],isCanonical:!1},":bed:":{unicode:["1f6cf-fe0f","1f6cf"],isCanonical:!0},":motorway:":{unicode:["1f6e3-fe0f","1f6e3"],isCanonical:!0},":railway_track:":{unicode:["1f6e4-fe0f","1f6e4"],isCanonical:!0},":railroad_track:":{unicode:["1f6e4-fe0f","1f6e4"],isCanonical:!1},":motorboat:":{unicode:["1f6e5-fe0f","1f6e5"],isCanonical:!0},":airplane_small:":{unicode:["1f6e9-fe0f","1f6e9"],isCanonical:!0},":small_airplane:":{unicode:["1f6e9-fe0f","1f6e9"],isCanonical:!1},":cruise_ship:":{unicode:["1f6f3-fe0f","1f6f3"],isCanonical:!0},":passenger_ship:":{unicode:["1f6f3-fe0f","1f6f3"],isCanonical:!1},":white_sun_small_cloud:":{unicode:["1f324-fe0f","1f324"],isCanonical:!0},":white_sun_with_small_cloud:":{unicode:["1f324-fe0f","1f324"],isCanonical:!1},":white_sun_cloud:":{unicode:["1f325-fe0f","1f325"],isCanonical:!0},":white_sun_behind_cloud:":{unicode:["1f325-fe0f","1f325"],isCanonical:!1},":white_sun_rain_cloud:":{unicode:["1f326-fe0f","1f326"],isCanonical:!0},":white_sun_behind_cloud_with_rain:":{unicode:["1f326-fe0f","1f326"],isCanonical:!1},":mouse_three_button:":{unicode:["1f5b1-fe0f","1f5b1"],isCanonical:!0},":three_button_mouse:":{unicode:["1f5b1-fe0f","1f5b1"],isCanonical:!1},":point_up_tone1:":{unicode:["261d-1f3fb"],isCanonical:!0},":point_up_tone2:":{unicode:["261d-1f3fc"],isCanonical:!0},":point_up_tone3:":{unicode:["261d-1f3fd"],isCanonical:!0},":point_up_tone4:":{unicode:["261d-1f3fe"],isCanonical:!0},":point_up_tone5:":{unicode:["261d-1f3ff"],isCanonical:!0},":v_tone1:":{unicode:["270c-1f3fb"],isCanonical:!0},":v_tone2:":{unicode:["270c-1f3fc"],isCanonical:!0},":v_tone3:":{unicode:["270c-1f3fd"],isCanonical:!0},":v_tone4:":{unicode:["270c-1f3fe"],isCanonical:!0},":v_tone5:":{unicode:["270c-1f3ff"],isCanonical:!0},":fist_tone1:":{unicode:["270a-1f3fb"],isCanonical:!0},":fist_tone2:":{unicode:["270a-1f3fc"],isCanonical:!0},":fist_tone3:":{unicode:["270a-1f3fd"],isCanonical:!0},":fist_tone4:":{unicode:["270a-1f3fe"],isCanonical:!0},":fist_tone5:":{unicode:["270a-1f3ff"],isCanonical:!0},":raised_hand_tone1:":{unicode:["270b-1f3fb"],isCanonical:!0},":raised_hand_tone2:":{unicode:["270b-1f3fc"],isCanonical:!0},":raised_hand_tone3:":{unicode:["270b-1f3fd"],isCanonical:!0},":raised_hand_tone4:":{unicode:["270b-1f3fe"],isCanonical:!0},":raised_hand_tone5:":{unicode:["270b-1f3ff"],isCanonical:!0},":writing_hand_tone1:":{unicode:["270d-1f3fb"],isCanonical:!0},":writing_hand_tone2:":{unicode:["270d-1f3fc"],isCanonical:!0},":writing_hand_tone3:":{unicode:["270d-1f3fd"],isCanonical:!0},":writing_hand_tone4:":{unicode:["270d-1f3fe"],isCanonical:!0},":writing_hand_tone5:":{unicode:["270d-1f3ff"],isCanonical:!0},":basketball_player_tone1:":{unicode:["26f9-1f3fb"],isCanonical:!0},":person_with_ball_tone1:":{unicode:["26f9-1f3fb"],isCanonical:!1},":basketball_player_tone2:":{unicode:["26f9-1f3fc"],isCanonical:!0},":person_with_ball_tone2:":{unicode:["26f9-1f3fc"],isCanonical:!1},":basketball_player_tone3:":{unicode:["26f9-1f3fd"],isCanonical:!0},":person_with_ball_tone3:":{unicode:["26f9-1f3fd"],isCanonical:!1},":basketball_player_tone4:":{unicode:["26f9-1f3fe"],isCanonical:!0},":person_with_ball_tone4:":{unicode:["26f9-1f3fe"],isCanonical:!1},":basketball_player_tone5:":{unicode:["26f9-1f3ff"],isCanonical:!0},":person_with_ball_tone5:":{unicode:["26f9-1f3ff"],isCanonical:!1},":copyright:":{unicode:["00a9-fe0f","00a9"],isCanonical:!0},":registered:":{unicode:["00ae-fe0f","00ae"],isCanonical:!0},":bangbang:":{unicode:["203c-fe0f","203c"],isCanonical:!0},":interrobang:":{unicode:["2049-fe0f","2049"],isCanonical:!0},":tm:":{unicode:["2122-fe0f","2122"],isCanonical:!0},":information_source:":{unicode:["2139-fe0f","2139"],isCanonical:!0},":left_right_arrow:":{unicode:["2194-fe0f","2194"],isCanonical:!0},":arrow_up_down:":{unicode:["2195-fe0f","2195"],isCanonical:!0},":arrow_upper_left:":{unicode:["2196-fe0f","2196"],isCanonical:!0},":arrow_upper_right:":{unicode:["2197-fe0f","2197"],isCanonical:!0},":arrow_lower_right:":{unicode:["2198-fe0f","2198"],isCanonical:!0},":arrow_lower_left:":{unicode:["2199-fe0f","2199"],isCanonical:!0},":leftwards_arrow_with_hook:":{unicode:["21a9-fe0f","21a9"],
|
||
isCanonical:!0},":arrow_right_hook:":{unicode:["21aa-fe0f","21aa"],isCanonical:!0},":watch:":{unicode:["231a-fe0f","231a"],isCanonical:!0},":hourglass:":{unicode:["231b-fe0f","231b"],isCanonical:!0},":m:":{unicode:["24c2-fe0f","24c2"],isCanonical:!0},":black_small_square:":{unicode:["25aa-fe0f","25aa"],isCanonical:!0},":white_small_square:":{unicode:["25ab-fe0f","25ab"],isCanonical:!0},":arrow_forward:":{unicode:["25b6-fe0f","25b6"],isCanonical:!0},":arrow_backward:":{unicode:["25c0-fe0f","25c0"],isCanonical:!0},":white_medium_square:":{unicode:["25fb-fe0f","25fb"],isCanonical:!0},":black_medium_square:":{unicode:["25fc-fe0f","25fc"],isCanonical:!0},":white_medium_small_square:":{unicode:["25fd-fe0f","25fd"],isCanonical:!0},":black_medium_small_square:":{unicode:["25fe-fe0f","25fe"],isCanonical:!0},":sunny:":{unicode:["2600-fe0f","2600"],isCanonical:!0},":cloud:":{unicode:["2601-fe0f","2601"],isCanonical:!0},":telephone:":{unicode:["260e-fe0f","260e"],isCanonical:!0},":ballot_box_with_check:":{unicode:["2611-fe0f","2611"],isCanonical:!0},":umbrella:":{unicode:["2614-fe0f","2614"],isCanonical:!0},":coffee:":{unicode:["2615-fe0f","2615"],isCanonical:!0},":point_up:":{unicode:["261d-fe0f","261d"],isCanonical:!0},":relaxed:":{unicode:["263a-fe0f","263a"],isCanonical:!0},":aries:":{unicode:["2648-fe0f","2648"],isCanonical:!0},":taurus:":{unicode:["2649-fe0f","2649"],isCanonical:!0},":gemini:":{unicode:["264a-fe0f","264a"],isCanonical:!0},":cancer:":{unicode:["264b-fe0f","264b"],isCanonical:!0},":leo:":{unicode:["264c-fe0f","264c"],isCanonical:!0},":virgo:":{unicode:["264d-fe0f","264d"],isCanonical:!0},":libra:":{unicode:["264e-fe0f","264e"],isCanonical:!0},":scorpius:":{unicode:["264f-fe0f","264f"],isCanonical:!0},":sagittarius:":{unicode:["2650-fe0f","2650"],isCanonical:!0},":capricorn:":{unicode:["2651-fe0f","2651"],isCanonical:!0},":aquarius:":{unicode:["2652-fe0f","2652"],isCanonical:!0},":pisces:":{unicode:["2653-fe0f","2653"],isCanonical:!0},":spades:":{unicode:["2660-fe0f","2660"],isCanonical:!0},":clubs:":{unicode:["2663-fe0f","2663"],isCanonical:!0},":hearts:":{unicode:["2665-fe0f","2665"],isCanonical:!0},":diamonds:":{unicode:["2666-fe0f","2666"],isCanonical:!0},":hotsprings:":{unicode:["2668-fe0f","2668"],isCanonical:!0},":recycle:":{unicode:["267b-fe0f","267b"],isCanonical:!0},":wheelchair:":{unicode:["267f-fe0f","267f"],isCanonical:!0},":anchor:":{unicode:["2693-fe0f","2693"],isCanonical:!0},":warning:":{unicode:["26a0-fe0f","26a0"],isCanonical:!0},":zap:":{unicode:["26a1-fe0f","26a1"],isCanonical:!0},":white_circle:":{unicode:["26aa-fe0f","26aa"],isCanonical:!0},":black_circle:":{unicode:["26ab-fe0f","26ab"],isCanonical:!0},":soccer:":{unicode:["26bd-fe0f","26bd"],isCanonical:!0},":baseball:":{unicode:["26be-fe0f","26be"],isCanonical:!0},":snowman:":{unicode:["26c4-fe0f","26c4"],isCanonical:!0},":partly_sunny:":{unicode:["26c5-fe0f","26c5"],isCanonical:!0},":no_entry:":{unicode:["26d4-fe0f","26d4"],isCanonical:!0},":church:":{unicode:["26ea-fe0f","26ea"],isCanonical:!0},":fountain:":{unicode:["26f2-fe0f","26f2"],isCanonical:!0},":golf:":{unicode:["26f3-fe0f","26f3"],isCanonical:!0},":sailboat:":{unicode:["26f5-fe0f","26f5"],isCanonical:!0},":tent:":{unicode:["26fa-fe0f","26fa"],isCanonical:!0},":fuelpump:":{unicode:["26fd-fe0f","26fd"],isCanonical:!0},":scissors:":{unicode:["2702-fe0f","2702"],isCanonical:!0},":airplane:":{unicode:["2708-fe0f","2708"],isCanonical:!0},":envelope:":{unicode:["2709-fe0f","2709"],isCanonical:!0},":v:":{unicode:["270c-fe0f","270c"],isCanonical:!0},":pencil2:":{unicode:["270f-fe0f","270f"],isCanonical:!0},":black_nib:":{unicode:["2712-fe0f","2712"],isCanonical:!0},":heavy_check_mark:":{unicode:["2714-fe0f","2714"],isCanonical:!0},":heavy_multiplication_x:":{unicode:["2716-fe0f","2716"],isCanonical:!0},":eight_spoked_asterisk:":{unicode:["2733-fe0f","2733"],isCanonical:!0},":eight_pointed_black_star:":{unicode:["2734-fe0f","2734"],isCanonical:!0},":snowflake:":{unicode:["2744-fe0f","2744"],isCanonical:!0},":sparkle:":{unicode:["2747-fe0f","2747"],isCanonical:!0},":exclamation:":{unicode:["2757-fe0f","2757"],isCanonical:!0},":heart:":{unicode:["2764-fe0f","2764"],isCanonical:!0},":arrow_right:":{unicode:["27a1-fe0f","27a1"],isCanonical:!0},":arrow_heading_up:":{unicode:["2934-fe0f","2934"],isCanonical:!0},":arrow_heading_down:":{unicode:["2935-fe0f","2935"],isCanonical:!0},":arrow_left:":{unicode:["2b05-fe0f","2b05"],isCanonical:!0},":arrow_up:":{unicode:["2b06-fe0f","2b06"],isCanonical:!0},":arrow_down:":{unicode:["2b07-fe0f","2b07"],isCanonical:!0},":black_large_square:":{unicode:["2b1b-fe0f","2b1b"],isCanonical:!0},":white_large_square:":{unicode:["2b1c-fe0f","2b1c"],isCanonical:!0},":star:":{unicode:["2b50-fe0f","2b50"],isCanonical:!0},":o:":{unicode:["2b55-fe0f","2b55"],isCanonical:!0},":wavy_dash:":{unicode:["3030-fe0f","3030"],isCanonical:!0},":part_alternation_mark:":{unicode:["303d-fe0f","303d"],isCanonical:!0},":congratulations:":{unicode:["3297-fe0f","3297"],isCanonical:!0},":secret:":{unicode:["3299-fe0f","3299"],isCanonical:!0},":cross:":{unicode:["271d-fe0f","271d"],isCanonical:!0},":latin_cross:":{unicode:["271d-fe0f","271d"],isCanonical:!1},":keyboard:":{unicode:["2328-fe0f","2328"],isCanonical:!0},":writing_hand:":{unicode:["270d-fe0f","270d"],isCanonical:!0},":track_next:":{unicode:["23ed-fe0f","23ed"],isCanonical:!0},":next_track:":{unicode:["23ed-fe0f","23ed"],isCanonical:!1},":track_previous:":{unicode:["23ee-fe0f","23ee"],isCanonical:!0},":previous_track:":{unicode:["23ee-fe0f","23ee"],isCanonical:!1},":play_pause:":{unicode:["23ef-fe0f","23ef"],isCanonical:!0},":stopwatch:":{unicode:["23f1-fe0f","23f1"],isCanonical:!0},":timer:":{unicode:["23f2-fe0f","23f2"],isCanonical:!0},":timer_clock:":{unicode:["23f2-fe0f","23f2"],isCanonical:!1},":pause_button:":{unicode:["23f8-fe0f","23f8"],isCanonical:!0},":double_vertical_bar:":{unicode:["23f8-fe0f","23f8"],isCanonical:!1},":stop_button:":{unicode:["23f9-fe0f","23f9"],isCanonical:!0},":record_button:":{unicode:["23fa-fe0f","23fa"],isCanonical:!0},":umbrella2:":{unicode:["2602-fe0f","2602"],isCanonical:!0},":snowman2:":{unicode:["2603-fe0f","2603"],isCanonical:!0},":comet:":{unicode:["2604-fe0f","2604"],isCanonical:!0},":shamrock:":{unicode:["2618-fe0f","2618"],isCanonical:!0},":skull_crossbones:":{unicode:["2620-fe0f","2620"],isCanonical:!0},":skull_and_crossbones:":{unicode:["2620-fe0f","2620"],isCanonical:!1},":radioactive:":{unicode:["2622-fe0f","2622"],isCanonical:!0},":radioactive_sign:":{unicode:["2622-fe0f","2622"],isCanonical:!1},":biohazard:":{unicode:["2623-fe0f","2623"],isCanonical:!0},":biohazard_sign:":{unicode:["2623-fe0f","2623"],isCanonical:!1},":orthodox_cross:":{unicode:["2626-fe0f","2626"],isCanonical:!0},":star_and_crescent:":{unicode:["262a-fe0f","262a"],isCanonical:!0},":peace:":{unicode:["262e-fe0f","262e"],isCanonical:!0},":peace_symbol:":{unicode:["262e-fe0f","262e"],isCanonical:!1},":yin_yang:":{unicode:["262f-fe0f","262f"],isCanonical:!0},":wheel_of_dharma:":{unicode:["2638-fe0f","2638"],isCanonical:!0},":frowning2:":{unicode:["2639-fe0f","2639"],isCanonical:!0},":white_frowning_face:":{unicode:["2639-fe0f","2639"],isCanonical:!1},":hammer_pick:":{unicode:["2692-fe0f","2692"],isCanonical:!0},":hammer_and_pick:":{unicode:["2692-fe0f","2692"],isCanonical:!1},":crossed_swords:":{unicode:["2694-fe0f","2694"],isCanonical:!0},":scales:":{unicode:["2696-fe0f","2696"],isCanonical:!0},":alembic:":{unicode:["2697-fe0f","2697"],isCanonical:!0},":gear:":{unicode:["2699-fe0f","2699"],isCanonical:!0},":atom:":{unicode:["269b-fe0f","269b"],isCanonical:!0},":atom_symbol:":{unicode:["269b-fe0f","269b"],isCanonical:!1},":fleur-de-lis:":{unicode:["269c-fe0f","269c"],isCanonical:!0},":coffin:":{unicode:["26b0-fe0f","26b0"],isCanonical:!0},":urn:":{unicode:["26b1-fe0f","26b1"],isCanonical:!0},":funeral_urn:":{unicode:["26b1-fe0f","26b1"],isCanonical:!1},":thunder_cloud_rain:":{unicode:["26c8-fe0f","26c8"],isCanonical:!0},":thunder_cloud_and_rain:":{unicode:["26c8-fe0f","26c8"],isCanonical:!1},":pick:":{unicode:["26cf-fe0f","26cf"],isCanonical:!0},":helmet_with_cross:":{unicode:["26d1-fe0f","26d1"],isCanonical:!0},":helmet_with_white_cross:":{unicode:["26d1-fe0f","26d1"],isCanonical:!1},":chains:":{unicode:["26d3-fe0f","26d3"],isCanonical:!0},":shinto_shrine:":{unicode:["26e9-fe0f","26e9"],isCanonical:!0},":mountain:":{unicode:["26f0-fe0f","26f0"],isCanonical:!0},":beach_umbrella:":{unicode:["26f1-fe0f","26f1"],isCanonical:!0},":umbrella_on_ground:":{unicode:["26f1-fe0f","26f1"],isCanonical:!1},":ferry:":{unicode:["26f4-fe0f","26f4"],isCanonical:!0},":skier:":{unicode:["26f7-fe0f","26f7"],isCanonical:!0},":ice_skate:":{unicode:["26f8-fe0f","26f8"],isCanonical:!0},":basketball_player:":{unicode:["26f9-fe0f","26f9"],isCanonical:!0},":person_with_ball:":{unicode:["26f9-fe0f","26f9"],isCanonical:!1},":star_of_david:":{unicode:["2721-fe0f","2721"],isCanonical:!0},":heart_exclamation:":{unicode:["2763-fe0f","2763"],isCanonical:!0},":heavy_heart_exclamation_mark_ornament:":{unicode:["2763-fe0f","2763"],isCanonical:!1},":black_joker:":{unicode:["1f0cf"],isCanonical:!0},":a:":{unicode:["1f170"],isCanonical:!0},":b:":{unicode:["1f171"],isCanonical:!0},":o2:":{unicode:["1f17e"],isCanonical:!0},":ab:":{unicode:["1f18e"],isCanonical:!0},":cl:":{unicode:["1f191"],isCanonical:!0},":cool:":{unicode:["1f192"],isCanonical:!0},":free:":{unicode:["1f193"],isCanonical:!0},":id:":{unicode:["1f194"],isCanonical:!0},":new:":{unicode:["1f195"],isCanonical:!0},":ng:":{unicode:["1f196"],isCanonical:!0},":ok:":{unicode:["1f197"],isCanonical:!0},":sos:":{unicode:["1f198"],isCanonical:!0},":up:":{unicode:["1f199"],isCanonical:!0},":vs:":{unicode:["1f19a"],isCanonical:!0},":koko:":{unicode:["1f201"],isCanonical:!0},":u7981:":{unicode:["1f232"],isCanonical:!0},":u7a7a:":{unicode:["1f233"],isCanonical:!0},":u5408:":{unicode:["1f234"],isCanonical:!0},":u6e80:":{unicode:["1f235"],isCanonical:!0},":u6709:":{unicode:["1f236"],isCanonical:!0},":u7533:":{unicode:["1f238"],isCanonical:!0},":u5272:":{unicode:["1f239"],isCanonical:!0},":u55b6:":{unicode:["1f23a"],isCanonical:!0},":ideograph_advantage:":{unicode:["1f250"],isCanonical:!0},":accept:":{unicode:["1f251"],isCanonical:!0},":cyclone:":{unicode:["1f300"],isCanonical:!0},":foggy:":{unicode:["1f301"],isCanonical:!0},":closed_umbrella:":{unicode:["1f302"],isCanonical:!0},":night_with_stars:":{unicode:["1f303"],isCanonical:!0},":sunrise_over_mountains:":{unicode:["1f304"],isCanonical:!0},":sunrise:":{unicode:["1f305"],isCanonical:!0},":city_dusk:":{unicode:["1f306"],isCanonical:!0},":city_sunset:":{unicode:["1f307"],isCanonical:!0},":city_sunrise:":{unicode:["1f307"],isCanonical:!1},":rainbow:":{unicode:["1f308"],isCanonical:!0},":bridge_at_night:":{unicode:["1f309"],isCanonical:!0},":ocean:":{unicode:["1f30a"],isCanonical:!0},":volcano:":{unicode:["1f30b"],isCanonical:!0},":milky_way:":{unicode:["1f30c"],isCanonical:!0},":earth_asia:":{unicode:["1f30f"],isCanonical:!0},":new_moon:":{unicode:["1f311"],isCanonical:!0},":first_quarter_moon:":{unicode:["1f313"],isCanonical:!0},":waxing_gibbous_moon:":{unicode:["1f314"],isCanonical:!0},":full_moon:":{unicode:["1f315"],isCanonical:!0},":crescent_moon:":{unicode:["1f319"],isCanonical:!0},":first_quarter_moon_with_face:":{unicode:["1f31b"],isCanonical:!0},":star2:":{unicode:["1f31f"],isCanonical:!0},":stars:":{unicode:["1f320"],isCanonical:!0},":chestnut:":{unicode:["1f330"],isCanonical:!0},":seedling:":{unicode:["1f331"],isCanonical:!0},":palm_tree:":{unicode:["1f334"],isCanonical:!0},":cactus:":{unicode:["1f335"],isCanonical:!0},":tulip:":{unicode:["1f337"],isCanonical:!0},":cherry_blossom:":{unicode:["1f338"],isCanonical:!0},":rose:":{unicode:["1f339"],isCanonical:!0},":hibiscus:":{unicode:["1f33a"],isCanonical:!0},":sunflower:":{unicode:["1f33b"],isCanonical:!0},":blossom:":{unicode:["1f33c"],isCanonical:!0},":corn:":{unicode:["1f33d"],isCanonical:!0},":ear_of_rice:":{unicode:["1f33e"],isCanonical:!0},":herb:":{unicode:["1f33f"],isCanonical:!0},":four_leaf_clover:":{unicode:["1f340"],isCanonical:!0},":maple_leaf:":{unicode:["1f341"],isCanonical:!0},":fallen_leaf:":{unicode:["1f342"],isCanonical:!0},":leaves:":{unicode:["1f343"],isCanonical:!0},":mushroom:":{unicode:["1f344"],isCanonical:!0},":tomato:":{unicode:["1f345"],isCanonical:!0},":eggplant:":{unicode:["1f346"],isCanonical:!0},":grapes:":{unicode:["1f347"],isCanonical:!0},":melon:":{unicode:["1f348"],isCanonical:!0},":watermelon:":{unicode:["1f349"],isCanonical:!0},":tangerine:":{unicode:["1f34a"],isCanonical:!0},":banana:":{unicode:["1f34c"],isCanonical:!0},":pineapple:":{unicode:["1f34d"],isCanonical:!0},":apple:":{unicode:["1f34e"],isCanonical:!0},":green_apple:":{unicode:["1f34f"],isCanonical:!0},":peach:":{unicode:["1f351"],isCanonical:!0},":cherries:":{unicode:["1f352"],isCanonical:!0},":strawberry:":{unicode:["1f353"],isCanonical:!0},":hamburger:":{unicode:["1f354"],isCanonical:!0},":pizza:":{unicode:["1f355"],isCanonical:!0},":meat_on_bone:":{unicode:["1f356"],isCanonical:!0},":poultry_leg:":{unicode:["1f357"],isCanonical:!0},":rice_cracker:":{unicode:["1f358"],isCanonical:!0},":rice_ball:":{unicode:["1f359"],isCanonical:!0},":rice:":{unicode:["1f35a"],isCanonical:!0},":curry:":{unicode:["1f35b"],isCanonical:!0},":ramen:":{unicode:["1f35c"],isCanonical:!0},":spaghetti:":{unicode:["1f35d"],isCanonical:!0},":bread:":{unicode:["1f35e"],isCanonical:!0},":fries:":{unicode:["1f35f"],isCanonical:!0},":sweet_potato:":{unicode:["1f360"],isCanonical:!0},":dango:":{unicode:["1f361"],isCanonical:!0},":oden:":{unicode:["1f362"],isCanonical:!0},":sushi:":{unicode:["1f363"],isCanonical:!0},":fried_shrimp:":{unicode:["1f364"],isCanonical:!0},":fish_cake:":{unicode:["1f365"],isCanonical:!0},":icecream:":{unicode:["1f366"],isCanonical:!0},":shaved_ice:":{unicode:["1f367"],isCanonical:!0},":ice_cream:":{unicode:["1f368"],isCanonical:!0},":doughnut:":{unicode:["1f369"],isCanonical:!0},":cookie:":{unicode:["1f36a"],isCanonical:!0},":chocolate_bar:":{unicode:["1f36b"],isCanonical:!0},":candy:":{unicode:["1f36c"],isCanonical:!0},":lollipop:":{unicode:["1f36d"],isCanonical:!0},":custard:":{unicode:["1f36e"],isCanonical:!0},":pudding:":{unicode:["1f36e"],isCanonical:!1},":flan:":{unicode:["1f36e"],isCanonical:!1},":honey_pot:":{unicode:["1f36f"],isCanonical:!0},":cake:":{unicode:["1f370"],isCanonical:!0},":bento:":{unicode:["1f371"],isCanonical:!0},":stew:":{unicode:["1f372"],isCanonical:!0},":egg:":{unicode:["1f373"],isCanonical:!0},":fork_and_knife:":{unicode:["1f374"],isCanonical:!0},":tea:":{unicode:["1f375"],isCanonical:!0},":sake:":{unicode:["1f376"],isCanonical:!0},":wine_glass:":{unicode:["1f377"],isCanonical:!0},":cocktail:":{unicode:["1f378"],isCanonical:!0},":tropical_drink:":{unicode:["1f379"],isCanonical:!0},":beer:":{unicode:["1f37a"],isCanonical:!0},":beers:":{unicode:["1f37b"],isCanonical:!0},":ribbon:":{unicode:["1f380"],isCanonical:!0},":gift:":{unicode:["1f381"],isCanonical:!0},":birthday:":{unicode:["1f382"],isCanonical:!0},":jack_o_lantern:":{unicode:["1f383"],isCanonical:!0},":christmas_tree:":{unicode:["1f384"],isCanonical:!0},":santa:":{unicode:["1f385"],isCanonical:!0},":fireworks:":{unicode:["1f386"],isCanonical:!0},":sparkler:":{unicode:["1f387"],isCanonical:!0},":balloon:":{unicode:["1f388"],isCanonical:!0},":tada:":{unicode:["1f389"],isCanonical:!0},":confetti_ball:":{unicode:["1f38a"],isCanonical:!0},":tanabata_tree:":{unicode:["1f38b"],isCanonical:!0},":crossed_flags:":{unicode:["1f38c"],isCanonical:!0},":bamboo:":{unicode:["1f38d"],isCanonical:!0},":dolls:":{unicode:["1f38e"],isCanonical:!0},":flags:":{unicode:["1f38f"],isCanonical:!0},":wind_chime:":{unicode:["1f390"],isCanonical:!0},":rice_scene:":{unicode:["1f391"],isCanonical:!0},":school_satchel:":{unicode:["1f392"],isCanonical:!0},":mortar_board:":{unicode:["1f393"],isCanonical:!0},":carousel_horse:":{unicode:["1f3a0"],isCanonical:!0},":ferris_wheel:":{unicode:["1f3a1"],isCanonical:!0},":roller_coaster:":{unicode:["1f3a2"],isCanonical:!0},":fishing_pole_and_fish:":{unicode:["1f3a3"],isCanonical:!0},":microphone:":{unicode:["1f3a4"],isCanonical:!0},":movie_camera:":{unicode:["1f3a5"],isCanonical:!0},":cinema:":{unicode:["1f3a6"],isCanonical:!0},":headphones:":{unicode:["1f3a7"],isCanonical:!0},":art:":{unicode:["1f3a8"],isCanonical:!0},":tophat:":{unicode:["1f3a9"],isCanonical:!0},":circus_tent:":{unicode:["1f3aa"],isCanonical:!0},":ticket:":{unicode:["1f3ab"],isCanonical:!0},":clapper:":{unicode:["1f3ac"],isCanonical:!0},":performing_arts:":{unicode:["1f3ad"],isCanonical:!0},":video_game:":{unicode:["1f3ae"],isCanonical:!0},":dart:":{unicode:["1f3af"],isCanonical:!0},":slot_machine:":{unicode:["1f3b0"],isCanonical:!0},":8ball:":{unicode:["1f3b1"],isCanonical:!0},":game_die:":{unicode:["1f3b2"],isCanonical:!0},":bowling:":{unicode:["1f3b3"],isCanonical:!0},":flower_playing_cards:":{unicode:["1f3b4"],isCanonical:!0},":musical_note:":{unicode:["1f3b5"],isCanonical:!0},":notes:":{unicode:["1f3b6"],isCanonical:!0},":saxophone:":{unicode:["1f3b7"],isCanonical:!0},":guitar:":{unicode:["1f3b8"],isCanonical:!0},":musical_keyboard:":{unicode:["1f3b9"],isCanonical:!0},":trumpet:":{unicode:["1f3ba"],isCanonical:!0},":violin:":{unicode:["1f3bb"],isCanonical:!0},":musical_score:":{unicode:["1f3bc"],isCanonical:!0},":running_shirt_with_sash:":{unicode:["1f3bd"],isCanonical:!0},":tennis:":{unicode:["1f3be"],isCanonical:!0},":ski:":{unicode:["1f3bf"],isCanonical:!0},":basketball:":{unicode:["1f3c0"],isCanonical:!0},":checkered_flag:":{unicode:["1f3c1"],isCanonical:!0},":snowboarder:":{unicode:["1f3c2"],isCanonical:!0},":runner:":{unicode:["1f3c3"],isCanonical:!0},":surfer:":{unicode:["1f3c4"],isCanonical:!0},":trophy:":{unicode:["1f3c6"],isCanonical:!0},":football:":{unicode:["1f3c8"],isCanonical:!0},":swimmer:":{unicode:["1f3ca"],isCanonical:!0},":house:":{unicode:["1f3e0"],isCanonical:!0},":house_with_garden:":{unicode:["1f3e1"],isCanonical:!0},":office:":{unicode:["1f3e2"],isCanonical:!0},":post_office:":{unicode:["1f3e3"],isCanonical:!0},":hospital:":{unicode:["1f3e5"],isCanonical:!0},":bank:":{unicode:["1f3e6"],isCanonical:!0},":atm:":{unicode:["1f3e7"],isCanonical:!0},":hotel:":{unicode:["1f3e8"],isCanonical:!0},":love_hotel:":{unicode:["1f3e9"],isCanonical:!0},":convenience_store:":{unicode:["1f3ea"],isCanonical:!0},":school:":{unicode:["1f3eb"],isCanonical:!0},":department_store:":{unicode:["1f3ec"],isCanonical:!0},":factory:":{unicode:["1f3ed"],isCanonical:!0},":izakaya_lantern:":{unicode:["1f3ee"],isCanonical:!0},":japanese_castle:":{unicode:["1f3ef"],isCanonical:!0},":european_castle:":{unicode:["1f3f0"],isCanonical:!0},":snail:":{unicode:["1f40c"],isCanonical:!0},":snake:":{unicode:["1f40d"],isCanonical:!0},":racehorse:":{unicode:["1f40e"],isCanonical:!0},":sheep:":{unicode:["1f411"],isCanonical:!0},":monkey:":{unicode:["1f412"],isCanonical:!0},":chicken:":{unicode:["1f414"],isCanonical:!0},":boar:":{unicode:["1f417"],isCanonical:!0},":elephant:":{unicode:["1f418"],isCanonical:!0},":octopus:":{unicode:["1f419"],isCanonical:!0},":shell:":{unicode:["1f41a"],isCanonical:!0},":bug:":{unicode:["1f41b"],isCanonical:!0},":ant:":{unicode:["1f41c"],isCanonical:!0},":bee:":{unicode:["1f41d"],isCanonical:!0},":beetle:":{unicode:["1f41e"],isCanonical:!0},":fish:":{unicode:["1f41f"],isCanonical:!0},":tropical_fish:":{unicode:["1f420"],isCanonical:!0},":blowfish:":{unicode:["1f421"],isCanonical:!0},":turtle:":{unicode:["1f422"],isCanonical:!0},":hatching_chick:":{unicode:["1f423"],isCanonical:!0},":baby_chick:":{unicode:["1f424"],isCanonical:!0},":hatched_chick:":{unicode:["1f425"],isCanonical:!0},":bird:":{unicode:["1f426"],isCanonical:!0},":penguin:":{unicode:["1f427"],isCanonical:!0},":koala:":{unicode:["1f428"],isCanonical:!0},":poodle:":{unicode:["1f429"],isCanonical:!0},":camel:":{unicode:["1f42b"],isCanonical:!0},":dolphin:":{unicode:["1f42c"],isCanonical:!0},":mouse:":{unicode:["1f42d"],isCanonical:!0},":cow:":{unicode:["1f42e"],isCanonical:!0},":tiger:":{unicode:["1f42f"],isCanonical:!0},":rabbit:":{unicode:["1f430"],isCanonical:!0},":cat:":{unicode:["1f431"],isCanonical:!0},":dragon_face:":{unicode:["1f432"],isCanonical:!0},":whale:":{unicode:["1f433"],isCanonical:!0},":horse:":{unicode:["1f434"],isCanonical:!0},":monkey_face:":{unicode:["1f435"],isCanonical:!0},":dog:":{unicode:["1f436"],isCanonical:!0},":pig:":{unicode:["1f437"],isCanonical:!0},":frog:":{unicode:["1f438"],isCanonical:!0},":hamster:":{unicode:["1f439"],isCanonical:!0},":wolf:":{unicode:["1f43a"],isCanonical:!0},":bear:":{unicode:["1f43b"],isCanonical:!0},":panda_face:":{unicode:["1f43c"],isCanonical:!0},":pig_nose:":{unicode:["1f43d"],isCanonical:!0},":feet:":{unicode:["1f43e"],isCanonical:!0},":paw_prints:":{unicode:["1f43e"],isCanonical:!1},":eyes:":{unicode:["1f440"],isCanonical:!0},":ear:":{unicode:["1f442"],isCanonical:!0},":nose:":{unicode:["1f443"],isCanonical:!0},":lips:":{unicode:["1f444"],isCanonical:!0},":tongue:":{unicode:["1f445"],isCanonical:!0},":point_up_2:":{unicode:["1f446"],isCanonical:!0},":point_down:":{unicode:["1f447"],isCanonical:!0},":point_left:":{unicode:["1f448"],isCanonical:!0},":point_right:":{unicode:["1f449"],isCanonical:!0},":punch:":{unicode:["1f44a"],isCanonical:!0},":wave:":{unicode:["1f44b"],isCanonical:!0},":ok_hand:":{unicode:["1f44c"],isCanonical:!0},":thumbsup:":{unicode:["1f44d"],isCanonical:!0},":+1:":{unicode:["1f44d"],isCanonical:!1},":thumbup:":{unicode:["1f44d"],isCanonical:!1},":thumbsdown:":{unicode:["1f44e"],isCanonical:!0},":-1:":{unicode:["1f44e"],isCanonical:!1},":thumbdown:":{unicode:["1f44e"],isCanonical:!1},":clap:":{unicode:["1f44f"],isCanonical:!0},":open_hands:":{unicode:["1f450"],isCanonical:!0},":crown:":{unicode:["1f451"],isCanonical:!0},":womans_hat:":{unicode:["1f452"],isCanonical:!0},":eyeglasses:":{unicode:["1f453"],isCanonical:!0},":necktie:":{unicode:["1f454"],isCanonical:!0},":shirt:":{unicode:["1f455"],isCanonical:!0},":jeans:":{unicode:["1f456"],isCanonical:!0},":dress:":{unicode:["1f457"],isCanonical:!0},":kimono:":{unicode:["1f458"],isCanonical:!0},":bikini:":{unicode:["1f459"],isCanonical:!0},":womans_clothes:":{unicode:["1f45a"],isCanonical:!0},":purse:":{unicode:["1f45b"],isCanonical:!0},":handbag:":{unicode:["1f45c"],isCanonical:!0},":pouch:":{unicode:["1f45d"],isCanonical:!0},":mans_shoe:":{unicode:["1f45e"],isCanonical:!0},":athletic_shoe:":{unicode:["1f45f"],isCanonical:!0},":high_heel:":{unicode:["1f460"],isCanonical:!0},":sandal:":{unicode:["1f461"],isCanonical:!0},":boot:":{unicode:["1f462"],isCanonical:!0},":footprints:":{unicode:["1f463"],isCanonical:!0},":bust_in_silhouette:":{unicode:["1f464"],isCanonical:!0},":boy:":{unicode:["1f466"],isCanonical:!0},":girl:":{unicode:["1f467"],isCanonical:!0},":man:":{unicode:["1f468"],isCanonical:!0},":woman:":{unicode:["1f469"],isCanonical:!0},":family:":{unicode:["1f46a"],isCanonical:!0},":couple:":{unicode:["1f46b"],isCanonical:!0},":cop:":{unicode:["1f46e"],isCanonical:!0},":dancers:":{unicode:["1f46f"],isCanonical:!0},":bride_with_veil:":{unicode:["1f470"],isCanonical:!0},":person_with_blond_hair:":{unicode:["1f471"],isCanonical:!0},":man_with_gua_pi_mao:":{unicode:["1f472"],isCanonical:!0},":man_with_turban:":{unicode:["1f473"],isCanonical:!0},":older_man:":{unicode:["1f474"],isCanonical:!0},":older_woman:":{unicode:["1f475"],isCanonical:!0},":grandma:":{unicode:["1f475"],isCanonical:!1},":baby:":{unicode:["1f476"],isCanonical:!0},":construction_worker:":{unicode:["1f477"],isCanonical:!0},":princess:":{unicode:["1f478"],isCanonical:!0},":japanese_ogre:":{unicode:["1f479"],isCanonical:!0},":japanese_goblin:":{unicode:["1f47a"],isCanonical:!0},":ghost:":{unicode:["1f47b"],isCanonical:!0},":angel:":{unicode:["1f47c"],isCanonical:!0},":alien:":{unicode:["1f47d"],isCanonical:!0},":space_invader:":{unicode:["1f47e"],isCanonical:!0},":imp:":{unicode:["1f47f"],isCanonical:!0},":skull:":{unicode:["1f480"],isCanonical:!0},":skeleton:":{unicode:["1f480"],isCanonical:!1},":card_index:":{unicode:["1f4c7"],isCanonical:!0},":information_desk_person:":{unicode:["1f481"],isCanonical:!0},":guardsman:":{unicode:["1f482"],isCanonical:!0},":dancer:":{unicode:["1f483"],isCanonical:!0},":lipstick:":{unicode:["1f484"],isCanonical:!0},":nail_care:":{unicode:["1f485"],isCanonical:!0},":ledger:":{unicode:["1f4d2"],isCanonical:!0},":massage:":{unicode:["1f486"],isCanonical:!0},":notebook:":{unicode:["1f4d3"],isCanonical:!0},":haircut:":{unicode:["1f487"],isCanonical:!0},":notebook_with_decorative_cover:":{unicode:["1f4d4"],isCanonical:!0},":barber:":{unicode:["1f488"],isCanonical:!0},":closed_book:":{unicode:["1f4d5"],isCanonical:!0},":syringe:":{unicode:["1f489"],isCanonical:!0},":book:":{unicode:["1f4d6"],isCanonical:!0},":pill:":{unicode:["1f48a"],isCanonical:!0},":green_book:":{unicode:["1f4d7"],isCanonical:!0},":kiss:":{unicode:["1f48b"],isCanonical:!0},":blue_book:":{unicode:["1f4d8"],isCanonical:!0},":love_letter:":{unicode:["1f48c"],isCanonical:!0},":orange_book:":{unicode:["1f4d9"],isCanonical:!0},":ring:":{unicode:["1f48d"],isCanonical:!0},":books:":{unicode:["1f4da"],isCanonical:!0},":gem:":{unicode:["1f48e"],isCanonical:!0},":name_badge:":{unicode:["1f4db"],isCanonical:!0},":couplekiss:":{unicode:["1f48f"],isCanonical:!0},":scroll:":{unicode:["1f4dc"],isCanonical:!0},":bouquet:":{unicode:["1f490"],isCanonical:!0},":pencil:":{unicode:["1f4dd"],isCanonical:!0},":couple_with_heart:":{unicode:["1f491"],isCanonical:!0},":telephone_receiver:":{unicode:["1f4de"],isCanonical:!0},":wedding:":{unicode:["1f492"],isCanonical:!0},":pager:":{unicode:["1f4df"],isCanonical:!0},":fax:":{unicode:["1f4e0"],isCanonical:!0},":heartbeat:":{unicode:["1f493"],isCanonical:!0},":satellite:":{unicode:["1f4e1"],isCanonical:!0},":loudspeaker:":{unicode:["1f4e2"],isCanonical:!0},":broken_heart:":{unicode:["1f494"],isCanonical:!0},":mega:":{unicode:["1f4e3"],isCanonical:!0},":outbox_tray:":{unicode:["1f4e4"],isCanonical:!0},":two_hearts:":{unicode:["1f495"],isCanonical:!0},":inbox_tray:":{unicode:["1f4e5"],isCanonical:!0},":package:":{unicode:["1f4e6"],isCanonical:!0},":sparkling_heart:":{unicode:["1f496"],isCanonical:!0},":e-mail:":{unicode:["1f4e7"],isCanonical:!0},":email:":{unicode:["1f4e7"],isCanonical:!1},":incoming_envelope:":{unicode:["1f4e8"],isCanonical:!0},":heartpulse:":{unicode:["1f497"],isCanonical:!0},":envelope_with_arrow:":{unicode:["1f4e9"],isCanonical:!0},":mailbox_closed:":{unicode:["1f4ea"],isCanonical:!0},":cupid:":{unicode:["1f498"],isCanonical:!0},":mailbox:":{unicode:["1f4eb"],isCanonical:!0},":postbox:":{unicode:["1f4ee"],isCanonical:!0},":blue_heart:":{unicode:["1f499"],isCanonical:!0},":newspaper:":{unicode:["1f4f0"],isCanonical:!0},":iphone:":{unicode:["1f4f1"],isCanonical:!0},":green_heart:":{unicode:["1f49a"],isCanonical:!0},":calling:":{unicode:["1f4f2"],isCanonical:!0},":vibration_mode:":{unicode:["1f4f3"],isCanonical:!0},":yellow_heart:":{unicode:["1f49b"],isCanonical:!0},":mobile_phone_off:":{unicode:["1f4f4"],isCanonical:!0},":signal_strength:":{unicode:["1f4f6"],isCanonical:!0},":purple_heart:":{unicode:["1f49c"],isCanonical:!0},":camera:":{unicode:["1f4f7"],isCanonical:!0},":video_camera:":{unicode:["1f4f9"],isCanonical:!0},":gift_heart:":{unicode:["1f49d"],isCanonical:!0},":tv:":{unicode:["1f4fa"],isCanonical:!0},":radio:":{unicode:["1f4fb"],isCanonical:!0},":revolving_hearts:":{unicode:["1f49e"],isCanonical:!0},":vhs:":{unicode:["1f4fc"],isCanonical:!0},":arrows_clockwise:":{unicode:["1f503"],isCanonical:!0},":heart_decoration:":{unicode:["1f49f"],isCanonical:!0},":loud_sound:":{unicode:["1f50a"],isCanonical:!0},":battery:":{unicode:["1f50b"],isCanonical:!0},":diamond_shape_with_a_dot_inside:":{unicode:["1f4a0"],isCanonical:!0},":electric_plug:":{unicode:["1f50c"],isCanonical:!0},":mag:":{unicode:["1f50d"],isCanonical:!0},":bulb:":{unicode:["1f4a1"],isCanonical:!0},":mag_right:":{unicode:["1f50e"],isCanonical:!0},":lock_with_ink_pen:":{unicode:["1f50f"],isCanonical:!0},":anger:":{unicode:["1f4a2"],isCanonical:!0},":closed_lock_with_key:":{unicode:["1f510"],isCanonical:!0},":key:":{unicode:["1f511"],isCanonical:!0},":bomb:":{unicode:["1f4a3"],isCanonical:!0},":lock:":{unicode:["1f512"],isCanonical:!0},":unlock:":{unicode:["1f513"],isCanonical:!0},":zzz:":{unicode:["1f4a4"],isCanonical:!0},":bell:":{unicode:["1f514"],isCanonical:!0},":bookmark:":{unicode:["1f516"],isCanonical:!0},":boom:":{unicode:["1f4a5"],isCanonical:!0},":link:":{unicode:["1f517"],isCanonical:!0},":radio_button:":{unicode:["1f518"],isCanonical:!0},":sweat_drops:":{unicode:["1f4a6"],isCanonical:!0},":back:":{unicode:["1f519"],isCanonical:!0},":end:":{unicode:["1f51a"],isCanonical:!0},":droplet:":{unicode:["1f4a7"],isCanonical:!0},":on:":{unicode:["1f51b"],isCanonical:!0},":soon:":{unicode:["1f51c"],isCanonical:!0},":dash:":{unicode:["1f4a8"],isCanonical:!0},":top:":{unicode:["1f51d"],isCanonical:!0},":underage:":{unicode:["1f51e"],isCanonical:!0},":poop:":{unicode:["1f4a9"],isCanonical:!0},":shit:":{unicode:["1f4a9"],isCanonical:!1},":hankey:":{unicode:["1f4a9"],isCanonical:!1},":poo:":{unicode:["1f4a9"],isCanonical:!1},":ten:":{unicode:["1f51f"],isCanonical:!0},":muscle:":{unicode:["1f4aa"],isCanonical:!0},":capital_abcd:":{unicode:["1f520"],isCanonical:!0},":abcd:":{unicode:["1f521"],isCanonical:!0},":dizzy:":{unicode:["1f4ab"],isCanonical:!0},":1234:":{unicode:["1f522"],isCanonical:!0},":symbols:":{unicode:["1f523"],isCanonical:!0},":speech_balloon:":{unicode:["1f4ac"],isCanonical:!0},":abc:":{unicode:["1f524"],isCanonical:!0},":fire:":{unicode:["1f525"],isCanonical:!0},":flame:":{unicode:["1f525"],isCanonical:!1},":white_flower:":{unicode:["1f4ae"],isCanonical:!0},":flashlight:":{unicode:["1f526"],isCanonical:!0},":wrench:":{unicode:["1f527"],isCanonical:!0},":100:":{unicode:["1f4af"],isCanonical:!0},":hammer:":{unicode:["1f528"],isCanonical:!0},":nut_and_bolt:":{unicode:["1f529"],isCanonical:!0},":moneybag:":{unicode:["1f4b0"],isCanonical:!0},":knife:":{unicode:["1f52a"],isCanonical:!0},":gun:":{unicode:["1f52b"],isCanonical:!0},":currency_exchange:":{unicode:["1f4b1"],isCanonical:!0},":crystal_ball:":{unicode:["1f52e"],isCanonical:!0},":heavy_dollar_sign:":{unicode:["1f4b2"],isCanonical:!0},":six_pointed_star:":{unicode:["1f52f"],isCanonical:!0},":credit_card:":{unicode:["1f4b3"],isCanonical:!0},":beginner:":{unicode:["1f530"],isCanonical:!0},":trident:":{unicode:["1f531"],isCanonical:!0},":yen:":{unicode:["1f4b4"],isCanonical:!0},":black_square_button:":{unicode:["1f532"],isCanonical:!0},":white_square_button:":{unicode:["1f533"],isCanonical:!0},":dollar:":{unicode:["1f4b5"],isCanonical:!0},":red_circle:":{unicode:["1f534"],isCanonical:!0},":large_blue_circle:":{unicode:["1f535"],isCanonical:!0},":money_with_wings:":{unicode:["1f4b8"],isCanonical:!0},":large_orange_diamond:":{unicode:["1f536"],isCanonical:!0},":large_blue_diamond:":{unicode:["1f537"],isCanonical:!0},":chart:":{unicode:["1f4b9"],isCanonical:!0},":small_orange_diamond:":{unicode:["1f538"],isCanonical:!0},":small_blue_diamond:":{unicode:["1f539"],isCanonical:!0},":seat:":{unicode:["1f4ba"],isCanonical:!0},":small_red_triangle:":{unicode:["1f53a"],isCanonical:!0},":small_red_triangle_down:":{unicode:["1f53b"],isCanonical:!0},":computer:":{unicode:["1f4bb"],isCanonical:!0},":arrow_up_small:":{unicode:["1f53c"],isCanonical:!0},":briefcase:":{unicode:["1f4bc"],isCanonical:!0},":arrow_down_small:":{unicode:["1f53d"],isCanonical:!0},":clock1:":{unicode:["1f550"],isCanonical:!0},":minidisc:":{unicode:["1f4bd"],isCanonical:!0},":clock2:":{unicode:["1f551"],isCanonical:!0},":floppy_disk:":{unicode:["1f4be"],isCanonical:!0},":clock3:":{unicode:["1f552"],isCanonical:!0},":cd:":{unicode:["1f4bf"],isCanonical:!0},":clock4:":{unicode:["1f553"],isCanonical:!0},":dvd:":{unicode:["1f4c0"],isCanonical:!0},":clock5:":{unicode:["1f554"],isCanonical:!0},":clock6:":{unicode:["1f555"],isCanonical:!0},":file_folder:":{unicode:["1f4c1"],isCanonical:!0},":clock7:":{unicode:["1f556"],isCanonical:!0
|
||
},":clock8:":{unicode:["1f557"],isCanonical:!0},":open_file_folder:":{unicode:["1f4c2"],isCanonical:!0},":clock9:":{unicode:["1f558"],isCanonical:!0},":clock10:":{unicode:["1f559"],isCanonical:!0},":page_with_curl:":{unicode:["1f4c3"],isCanonical:!0},":clock11:":{unicode:["1f55a"],isCanonical:!0},":clock12:":{unicode:["1f55b"],isCanonical:!0},":page_facing_up:":{unicode:["1f4c4"],isCanonical:!0},":mount_fuji:":{unicode:["1f5fb"],isCanonical:!0},":tokyo_tower:":{unicode:["1f5fc"],isCanonical:!0},":date:":{unicode:["1f4c5"],isCanonical:!0},":statue_of_liberty:":{unicode:["1f5fd"],isCanonical:!0},":japan:":{unicode:["1f5fe"],isCanonical:!0},":calendar:":{unicode:["1f4c6"],isCanonical:!0},":moyai:":{unicode:["1f5ff"],isCanonical:!0},":grin:":{unicode:["1f601"],isCanonical:!0},":joy:":{unicode:["1f602"],isCanonical:!0},":smiley:":{unicode:["1f603"],isCanonical:!0},":chart_with_upwards_trend:":{unicode:["1f4c8"],isCanonical:!0},":smile:":{unicode:["1f604"],isCanonical:!0},":sweat_smile:":{unicode:["1f605"],isCanonical:!0},":chart_with_downwards_trend:":{unicode:["1f4c9"],isCanonical:!0},":laughing:":{unicode:["1f606"],isCanonical:!0},":satisfied:":{unicode:["1f606"],isCanonical:!1},":wink:":{unicode:["1f609"],isCanonical:!0},":bar_chart:":{unicode:["1f4ca"],isCanonical:!0},":blush:":{unicode:["1f60a"],isCanonical:!0},":yum:":{unicode:["1f60b"],isCanonical:!0},":clipboard:":{unicode:["1f4cb"],isCanonical:!0},":relieved:":{unicode:["1f60c"],isCanonical:!0},":heart_eyes:":{unicode:["1f60d"],isCanonical:!0},":pushpin:":{unicode:["1f4cc"],isCanonical:!0},":smirk:":{unicode:["1f60f"],isCanonical:!0},":unamused:":{unicode:["1f612"],isCanonical:!0},":round_pushpin:":{unicode:["1f4cd"],isCanonical:!0},":sweat:":{unicode:["1f613"],isCanonical:!0},":pensive:":{unicode:["1f614"],isCanonical:!0},":paperclip:":{unicode:["1f4ce"],isCanonical:!0},":confounded:":{unicode:["1f616"],isCanonical:!0},":kissing_heart:":{unicode:["1f618"],isCanonical:!0},":straight_ruler:":{unicode:["1f4cf"],isCanonical:!0},":kissing_closed_eyes:":{unicode:["1f61a"],isCanonical:!0},":stuck_out_tongue_winking_eye:":{unicode:["1f61c"],isCanonical:!0},":triangular_ruler:":{unicode:["1f4d0"],isCanonical:!0},":stuck_out_tongue_closed_eyes:":{unicode:["1f61d"],isCanonical:!0},":disappointed:":{unicode:["1f61e"],isCanonical:!0},":bookmark_tabs:":{unicode:["1f4d1"],isCanonical:!0},":angry:":{unicode:["1f620"],isCanonical:!0},":rage:":{unicode:["1f621"],isCanonical:!0},":cry:":{unicode:["1f622"],isCanonical:!0},":persevere:":{unicode:["1f623"],isCanonical:!0},":triumph:":{unicode:["1f624"],isCanonical:!0},":disappointed_relieved:":{unicode:["1f625"],isCanonical:!0},":fearful:":{unicode:["1f628"],isCanonical:!0},":weary:":{unicode:["1f629"],isCanonical:!0},":sleepy:":{unicode:["1f62a"],isCanonical:!0},":tired_face:":{unicode:["1f62b"],isCanonical:!0},":sob:":{unicode:["1f62d"],isCanonical:!0},":cold_sweat:":{unicode:["1f630"],isCanonical:!0},":scream:":{unicode:["1f631"],isCanonical:!0},":astonished:":{unicode:["1f632"],isCanonical:!0},":flushed:":{unicode:["1f633"],isCanonical:!0},":dizzy_face:":{unicode:["1f635"],isCanonical:!0},":mask:":{unicode:["1f637"],isCanonical:!0},":smile_cat:":{unicode:["1f638"],isCanonical:!0},":joy_cat:":{unicode:["1f639"],isCanonical:!0},":smiley_cat:":{unicode:["1f63a"],isCanonical:!0},":heart_eyes_cat:":{unicode:["1f63b"],isCanonical:!0},":smirk_cat:":{unicode:["1f63c"],isCanonical:!0},":kissing_cat:":{unicode:["1f63d"],isCanonical:!0},":pouting_cat:":{unicode:["1f63e"],isCanonical:!0},":crying_cat_face:":{unicode:["1f63f"],isCanonical:!0},":scream_cat:":{unicode:["1f640"],isCanonical:!0},":no_good:":{unicode:["1f645"],isCanonical:!0},":ok_woman:":{unicode:["1f646"],isCanonical:!0},":bow:":{unicode:["1f647"],isCanonical:!0},":see_no_evil:":{unicode:["1f648"],isCanonical:!0},":hear_no_evil:":{unicode:["1f649"],isCanonical:!0},":speak_no_evil:":{unicode:["1f64a"],isCanonical:!0},":raising_hand:":{unicode:["1f64b"],isCanonical:!0},":raised_hands:":{unicode:["1f64c"],isCanonical:!0},":person_frowning:":{unicode:["1f64d"],isCanonical:!0},":person_with_pouting_face:":{unicode:["1f64e"],isCanonical:!0},":pray:":{unicode:["1f64f"],isCanonical:!0},":rocket:":{unicode:["1f680"],isCanonical:!0},":railway_car:":{unicode:["1f683"],isCanonical:!0},":bullettrain_side:":{unicode:["1f684"],isCanonical:!0},":bullettrain_front:":{unicode:["1f685"],isCanonical:!0},":metro:":{unicode:["1f687"],isCanonical:!0},":station:":{unicode:["1f689"],isCanonical:!0},":bus:":{unicode:["1f68c"],isCanonical:!0},":busstop:":{unicode:["1f68f"],isCanonical:!0},":ambulance:":{unicode:["1f691"],isCanonical:!0},":fire_engine:":{unicode:["1f692"],isCanonical:!0},":police_car:":{unicode:["1f693"],isCanonical:!0},":taxi:":{unicode:["1f695"],isCanonical:!0},":red_car:":{unicode:["1f697"],isCanonical:!0},":blue_car:":{unicode:["1f699"],isCanonical:!0},":truck:":{unicode:["1f69a"],isCanonical:!0},":ship:":{unicode:["1f6a2"],isCanonical:!0},":speedboat:":{unicode:["1f6a4"],isCanonical:!0},":traffic_light:":{unicode:["1f6a5"],isCanonical:!0},":construction:":{unicode:["1f6a7"],isCanonical:!0},":rotating_light:":{unicode:["1f6a8"],isCanonical:!0},":triangular_flag_on_post:":{unicode:["1f6a9"],isCanonical:!0},":door:":{unicode:["1f6aa"],isCanonical:!0},":no_entry_sign:":{unicode:["1f6ab"],isCanonical:!0},":smoking:":{unicode:["1f6ac"],isCanonical:!0},":no_smoking:":{unicode:["1f6ad"],isCanonical:!0},":bike:":{unicode:["1f6b2"],isCanonical:!0},":walking:":{unicode:["1f6b6"],isCanonical:!0},":mens:":{unicode:["1f6b9"],isCanonical:!0},":womens:":{unicode:["1f6ba"],isCanonical:!0},":restroom:":{unicode:["1f6bb"],isCanonical:!0},":baby_symbol:":{unicode:["1f6bc"],isCanonical:!0},":toilet:":{unicode:["1f6bd"],isCanonical:!0},":wc:":{unicode:["1f6be"],isCanonical:!0},":bath:":{unicode:["1f6c0"],isCanonical:!0},":metal:":{unicode:["1f918"],isCanonical:!0},":sign_of_the_horns:":{unicode:["1f918"],isCanonical:!1},":grinning:":{unicode:["1f600"],isCanonical:!0},":innocent:":{unicode:["1f607"],isCanonical:!0},":smiling_imp:":{unicode:["1f608"],isCanonical:!0},":sunglasses:":{unicode:["1f60e"],isCanonical:!0},":neutral_face:":{unicode:["1f610"],isCanonical:!0},":expressionless:":{unicode:["1f611"],isCanonical:!0},":confused:":{unicode:["1f615"],isCanonical:!0},":kissing:":{unicode:["1f617"],isCanonical:!0},":kissing_smiling_eyes:":{unicode:["1f619"],isCanonical:!0},":stuck_out_tongue:":{unicode:["1f61b"],isCanonical:!0},":worried:":{unicode:["1f61f"],isCanonical:!0},":frowning:":{unicode:["1f626"],isCanonical:!0},":anguished:":{unicode:["1f627"],isCanonical:!0},":grimacing:":{unicode:["1f62c"],isCanonical:!0},":open_mouth:":{unicode:["1f62e"],isCanonical:!0},":hushed:":{unicode:["1f62f"],isCanonical:!0},":sleeping:":{unicode:["1f634"],isCanonical:!0},":no_mouth:":{unicode:["1f636"],isCanonical:!0},":helicopter:":{unicode:["1f681"],isCanonical:!0},":steam_locomotive:":{unicode:["1f682"],isCanonical:!0},":train2:":{unicode:["1f686"],isCanonical:!0},":light_rail:":{unicode:["1f688"],isCanonical:!0},":tram:":{unicode:["1f68a"],isCanonical:!0},":oncoming_bus:":{unicode:["1f68d"],isCanonical:!0},":trolleybus:":{unicode:["1f68e"],isCanonical:!0},":minibus:":{unicode:["1f690"],isCanonical:!0},":oncoming_police_car:":{unicode:["1f694"],isCanonical:!0},":oncoming_taxi:":{unicode:["1f696"],isCanonical:!0},":oncoming_automobile:":{unicode:["1f698"],isCanonical:!0},":articulated_lorry:":{unicode:["1f69b"],isCanonical:!0},":tractor:":{unicode:["1f69c"],isCanonical:!0},":monorail:":{unicode:["1f69d"],isCanonical:!0},":mountain_railway:":{unicode:["1f69e"],isCanonical:!0},":suspension_railway:":{unicode:["1f69f"],isCanonical:!0},":mountain_cableway:":{unicode:["1f6a0"],isCanonical:!0},":aerial_tramway:":{unicode:["1f6a1"],isCanonical:!0},":rowboat:":{unicode:["1f6a3"],isCanonical:!0},":vertical_traffic_light:":{unicode:["1f6a6"],isCanonical:!0},":put_litter_in_its_place:":{unicode:["1f6ae"],isCanonical:!0},":do_not_litter:":{unicode:["1f6af"],isCanonical:!0},":potable_water:":{unicode:["1f6b0"],isCanonical:!0},":non-potable_water:":{unicode:["1f6b1"],isCanonical:!0},":no_bicycles:":{unicode:["1f6b3"],isCanonical:!0},":bicyclist:":{unicode:["1f6b4"],isCanonical:!0},":mountain_bicyclist:":{unicode:["1f6b5"],isCanonical:!0},":no_pedestrians:":{unicode:["1f6b7"],isCanonical:!0},":children_crossing:":{unicode:["1f6b8"],isCanonical:!0},":shower:":{unicode:["1f6bf"],isCanonical:!0},":bathtub:":{unicode:["1f6c1"],isCanonical:!0},":passport_control:":{unicode:["1f6c2"],isCanonical:!0},":customs:":{unicode:["1f6c3"],isCanonical:!0},":baggage_claim:":{unicode:["1f6c4"],isCanonical:!0},":left_luggage:":{unicode:["1f6c5"],isCanonical:!0},":earth_africa:":{unicode:["1f30d"],isCanonical:!0},":earth_americas:":{unicode:["1f30e"],isCanonical:!0},":globe_with_meridians:":{unicode:["1f310"],isCanonical:!0},":waxing_crescent_moon:":{unicode:["1f312"],isCanonical:!0},":waning_gibbous_moon:":{unicode:["1f316"],isCanonical:!0},":last_quarter_moon:":{unicode:["1f317"],isCanonical:!0},":waning_crescent_moon:":{unicode:["1f318"],isCanonical:!0},":new_moon_with_face:":{unicode:["1f31a"],isCanonical:!0},":last_quarter_moon_with_face:":{unicode:["1f31c"],isCanonical:!0},":full_moon_with_face:":{unicode:["1f31d"],isCanonical:!0},":sun_with_face:":{unicode:["1f31e"],isCanonical:!0},":evergreen_tree:":{unicode:["1f332"],isCanonical:!0},":deciduous_tree:":{unicode:["1f333"],isCanonical:!0},":lemon:":{unicode:["1f34b"],isCanonical:!0},":pear:":{unicode:["1f350"],isCanonical:!0},":baby_bottle:":{unicode:["1f37c"],isCanonical:!0},":horse_racing:":{unicode:["1f3c7"],isCanonical:!0},":rugby_football:":{unicode:["1f3c9"],isCanonical:!0},":european_post_office:":{unicode:["1f3e4"],isCanonical:!0},":rat:":{unicode:["1f400"],isCanonical:!0},":mouse2:":{unicode:["1f401"],isCanonical:!0},":ox:":{unicode:["1f402"],isCanonical:!0},":water_buffalo:":{unicode:["1f403"],isCanonical:!0},":cow2:":{unicode:["1f404"],isCanonical:!0},":tiger2:":{unicode:["1f405"],isCanonical:!0},":leopard:":{unicode:["1f406"],isCanonical:!0},":rabbit2:":{unicode:["1f407"],isCanonical:!0},":cat2:":{unicode:["1f408"],isCanonical:!0},":dragon:":{unicode:["1f409"],isCanonical:!0},":crocodile:":{unicode:["1f40a"],isCanonical:!0},":whale2:":{unicode:["1f40b"],isCanonical:!0},":ram:":{unicode:["1f40f"],isCanonical:!0},":goat:":{unicode:["1f410"],isCanonical:!0},":rooster:":{unicode:["1f413"],isCanonical:!0},":dog2:":{unicode:["1f415"],isCanonical:!0},":pig2:":{unicode:["1f416"],isCanonical:!0},":dromedary_camel:":{unicode:["1f42a"],isCanonical:!0},":busts_in_silhouette:":{unicode:["1f465"],isCanonical:!0},":two_men_holding_hands:":{unicode:["1f46c"],isCanonical:!0},":two_women_holding_hands:":{unicode:["1f46d"],isCanonical:!0},":thought_balloon:":{unicode:["1f4ad"],isCanonical:!0},":euro:":{unicode:["1f4b6"],isCanonical:!0},":pound:":{unicode:["1f4b7"],isCanonical:!0},":mailbox_with_mail:":{unicode:["1f4ec"],isCanonical:!0},":mailbox_with_no_mail:":{unicode:["1f4ed"],isCanonical:!0},":postal_horn:":{unicode:["1f4ef"],isCanonical:!0},":no_mobile_phones:":{unicode:["1f4f5"],isCanonical:!0},":twisted_rightwards_arrows:":{unicode:["1f500"],isCanonical:!0},":repeat:":{unicode:["1f501"],isCanonical:!0},":repeat_one:":{unicode:["1f502"],isCanonical:!0},":arrows_counterclockwise:":{unicode:["1f504"],isCanonical:!0},":low_brightness:":{unicode:["1f505"],isCanonical:!0},":high_brightness:":{unicode:["1f506"],isCanonical:!0},":mute:":{unicode:["1f507"],isCanonical:!0},":sound:":{unicode:["1f509"],isCanonical:!0},":no_bell:":{unicode:["1f515"],isCanonical:!0},":microscope:":{unicode:["1f52c"],isCanonical:!0},":telescope:":{unicode:["1f52d"],isCanonical:!0},":clock130:":{unicode:["1f55c"],isCanonical:!0},":clock230:":{unicode:["1f55d"],isCanonical:!0},":clock330:":{unicode:["1f55e"],isCanonical:!0},":clock430:":{unicode:["1f55f"],isCanonical:!0},":clock530:":{unicode:["1f560"],isCanonical:!0},":clock630:":{unicode:["1f561"],isCanonical:!0},":clock730:":{unicode:["1f562"],isCanonical:!0},":clock830:":{unicode:["1f563"],isCanonical:!0},":clock930:":{unicode:["1f564"],isCanonical:!0},":clock1030:":{unicode:["1f565"],isCanonical:!0},":clock1130:":{unicode:["1f566"],isCanonical:!0},":clock1230:":{unicode:["1f567"],isCanonical:!0},":speaker:":{unicode:["1f508"],isCanonical:!0},":train:":{unicode:["1f68b"],isCanonical:!0},":medal:":{unicode:["1f3c5"],isCanonical:!0},":sports_medal:":{unicode:["1f3c5"],isCanonical:!1},":flag_black:":{unicode:["1f3f4"],isCanonical:!0},":waving_black_flag:":{unicode:["1f3f4"],isCanonical:!1},":camera_with_flash:":{unicode:["1f4f8"],isCanonical:!0},":sleeping_accommodation:":{unicode:["1f6cc"],isCanonical:!0},":middle_finger:":{unicode:["1f595"],isCanonical:!0},":reversed_hand_with_middle_finger_extended:":{unicode:["1f595"],isCanonical:!1},":vulcan:":{unicode:["1f596"],isCanonical:!0},":raised_hand_with_part_between_middle_and_ring_fingers:":{unicode:["1f596"],isCanonical:!1},":slight_frown:":{unicode:["1f641"],isCanonical:!0},":slightly_frowning_face:":{unicode:["1f641"],isCanonical:!1},":slight_smile:":{unicode:["1f642"],isCanonical:!0},":slightly_smiling_face:":{unicode:["1f642"],isCanonical:!1},":airplane_departure:":{unicode:["1f6eb"],isCanonical:!0},":airplane_arriving:":{unicode:["1f6ec"],isCanonical:!0},":tone1:":{unicode:["1f3fb"],isCanonical:!0},":tone2:":{unicode:["1f3fc"],isCanonical:!0},":tone3:":{unicode:["1f3fd"],isCanonical:!0},":tone4:":{unicode:["1f3fe"],isCanonical:!0},":tone5:":{unicode:["1f3ff"],isCanonical:!0},":upside_down:":{unicode:["1f643"],isCanonical:!0},":upside_down_face:":{unicode:["1f643"],isCanonical:!1},":money_mouth:":{unicode:["1f911"],isCanonical:!0},":money_mouth_face:":{unicode:["1f911"],isCanonical:!1},":nerd:":{unicode:["1f913"],isCanonical:!0},":nerd_face:":{unicode:["1f913"],isCanonical:!1},":hugging:":{unicode:["1f917"],isCanonical:!0},":hugging_face:":{unicode:["1f917"],isCanonical:!1},":rolling_eyes:":{unicode:["1f644"],isCanonical:!0},":face_with_rolling_eyes:":{unicode:["1f644"],isCanonical:!1},":thinking:":{unicode:["1f914"],isCanonical:!0},":thinking_face:":{unicode:["1f914"],isCanonical:!1},":zipper_mouth:":{unicode:["1f910"],isCanonical:!0},":zipper_mouth_face:":{unicode:["1f910"],isCanonical:!1},":thermometer_face:":{unicode:["1f912"],isCanonical:!0},":face_with_thermometer:":{unicode:["1f912"],isCanonical:!1},":head_bandage:":{unicode:["1f915"],isCanonical:!0},":face_with_head_bandage:":{unicode:["1f915"],isCanonical:!1},":robot:":{unicode:["1f916"],isCanonical:!0},":robot_face:":{unicode:["1f916"],isCanonical:!1},":lion_face:":{unicode:["1f981"],isCanonical:!0},":lion:":{unicode:["1f981"],isCanonical:!1},":unicorn:":{unicode:["1f984"],isCanonical:!0},":unicorn_face:":{unicode:["1f984"],isCanonical:!1},":scorpion:":{unicode:["1f982"],isCanonical:!0},":crab:":{unicode:["1f980"],isCanonical:!0},":turkey:":{unicode:["1f983"],isCanonical:!0},":cheese:":{unicode:["1f9c0"],isCanonical:!0},":cheese_wedge:":{unicode:["1f9c0"],isCanonical:!1},":hotdog:":{unicode:["1f32d"],isCanonical:!0},":hot_dog:":{unicode:["1f32d"],isCanonical:!1},":taco:":{unicode:["1f32e"],isCanonical:!0},":burrito:":{unicode:["1f32f"],isCanonical:!0},":popcorn:":{unicode:["1f37f"],isCanonical:!0},":champagne:":{unicode:["1f37e"],isCanonical:!0},":bottle_with_popping_cork:":{unicode:["1f37e"],isCanonical:!1},":bow_and_arrow:":{unicode:["1f3f9"],isCanonical:!0},":archery:":{unicode:["1f3f9"],isCanonical:!1},":amphora:":{unicode:["1f3fa"],isCanonical:!0},":place_of_worship:":{unicode:["1f6d0"],isCanonical:!0},":worship_symbol:":{unicode:["1f6d0"],isCanonical:!1},":kaaba:":{unicode:["1f54b"],isCanonical:!0},":mosque:":{unicode:["1f54c"],isCanonical:!0},":synagogue:":{unicode:["1f54d"],isCanonical:!0},":menorah:":{unicode:["1f54e"],isCanonical:!0},":prayer_beads:":{unicode:["1f4ff"],isCanonical:!0},":cricket:":{unicode:["1f3cf"],isCanonical:!0},":cricket_bat_ball:":{unicode:["1f3cf"],isCanonical:!1},":volleyball:":{unicode:["1f3d0"],isCanonical:!0},":field_hockey:":{unicode:["1f3d1"],isCanonical:!0},":hockey:":{unicode:["1f3d2"],isCanonical:!0},":ping_pong:":{unicode:["1f3d3"],isCanonical:!0},":table_tennis:":{unicode:["1f3d3"],isCanonical:!1},":badminton:":{unicode:["1f3f8"],isCanonical:!0},":fast_forward:":{unicode:["23e9"],isCanonical:!0},":rewind:":{unicode:["23ea"],isCanonical:!0},":arrow_double_up:":{unicode:["23eb"],isCanonical:!0},":arrow_double_down:":{unicode:["23ec"],isCanonical:!0},":alarm_clock:":{unicode:["23f0"],isCanonical:!0},":hourglass_flowing_sand:":{unicode:["23f3"],isCanonical:!0},":ophiuchus:":{unicode:["26ce"],isCanonical:!0},":white_check_mark:":{unicode:["2705"],isCanonical:!0},":fist:":{unicode:["270a"],isCanonical:!0},":raised_hand:":{unicode:["270b"],isCanonical:!0},":sparkles:":{unicode:["2728"],isCanonical:!0},":x:":{unicode:["274c"],isCanonical:!0},":negative_squared_cross_mark:":{unicode:["274e"],isCanonical:!0},":question:":{unicode:["2753"],isCanonical:!0},":grey_question:":{unicode:["2754"],isCanonical:!0},":grey_exclamation:":{unicode:["2755"],isCanonical:!0},":heavy_plus_sign:":{unicode:["2795"],isCanonical:!0},":heavy_minus_sign:":{unicode:["2796"],isCanonical:!0},":heavy_division_sign:":{unicode:["2797"],isCanonical:!0},":curly_loop:":{unicode:["27b0"],isCanonical:!0},":loop:":{unicode:["27bf"],isCanonical:!0}};var n=[],u;for(u in f.emojioneList)f.emojioneList.hasOwnProperty(u)&&n.push(u.replace(/[+]/g,"\\$&"));f.shortnames=n.join("|"),f.asciiList={"<3":"2764","</3":"1f494",":')":"1f602",":'-)":"1f602",":D":"1f603",":-D":"1f603","=D":"1f603",":)":"1f642",":-)":"1f642","=]":"1f642","=)":"1f642",":]":"1f642","':)":"1f605","':-)":"1f605","'=)":"1f605","':D":"1f605","':-D":"1f605","'=D":"1f605",">:)":"1f606",">;)":"1f606",">:-)":"1f606",">=)":"1f606",";)":"1f609",";-)":"1f609","*-)":"1f609","*)":"1f609",";-]":"1f609",";]":"1f609",";D":"1f609",";^)":"1f609","':(":"1f613","':-(":"1f613","'=(":"1f613",":*":"1f618",":-*":"1f618","=*":"1f618",":^*":"1f618",">:P":"1f61c","X-P":"1f61c","x-p":"1f61c",">:[":"1f61e",":-(":"1f61e",":(":"1f61e",":-[":"1f61e",":[":"1f61e","=(":"1f61e",">:(":"1f620",">:-(":"1f620",":@":"1f620",":'(":"1f622",":'-(":"1f622",";(":"1f622",";-(":"1f622",">.<":"1f623","D:":"1f628",":$":"1f633","=$":"1f633","#-)":"1f635","#)":"1f635","%-)":"1f635","%)":"1f635","X)":"1f635","X-)":"1f635","*\\0/*":"1f646","\\0/":"1f646","*\\O/*":"1f646","\\O/":"1f646","O:-)":"1f607","0:-3":"1f607","0:3":"1f607","0:-)":"1f607","0:)":"1f607","0;^)":"1f607","O:)":"1f607","O;-)":"1f607","O=)":"1f607","0;-)":"1f607","O:-3":"1f607","O:3":"1f607","B-)":"1f60e","B)":"1f60e","8)":"1f60e","8-)":"1f60e","B-D":"1f60e","8-D":"1f60e","-_-":"1f611","-__-":"1f611","-___-":"1f611",">:\\":"1f615",">:/":"1f615",":-/":"1f615",":-.":"1f615",":/":"1f615",":\\":"1f615","=/":"1f615","=\\":"1f615",":L":"1f615","=L":"1f615",":P":"1f61b",":-P":"1f61b","=P":"1f61b",":-p":"1f61b",":p":"1f61b","=p":"1f61b",":-Þ":"1f61b",":Þ":"1f61b",":þ":"1f61b",":-þ":"1f61b",":-b":"1f61b",":b":"1f61b","d:":"1f61b",":-O":"1f62e",":O":"1f62e",":-o":"1f62e",":o":"1f62e",O_O:"1f62e",">:O":"1f62e",":-X":"1f636",":X":"1f636",":-#":"1f636",":#":"1f636","=X":"1f636","=x":"1f636",":x":"1f636",":-x":"1f636","=#":"1f636"},f.asciiRegexp="(\\<3|<3|\\<\\/3|<\\/3|\\:'\\)|\\:'\\-\\)|\\:D|\\:\\-D|\\=D|\\:\\)|\\:\\-\\)|\\=\\]|\\=\\)|\\:\\]|'\\:\\)|'\\:\\-\\)|'\\=\\)|'\\:D|'\\:\\-D|'\\=D|\\>\\:\\)|>\\:\\)|\\>;\\)|>;\\)|\\>\\:\\-\\)|>\\:\\-\\)|\\>\\=\\)|>\\=\\)|;\\)|;\\-\\)|\\*\\-\\)|\\*\\)|;\\-\\]|;\\]|;D|;\\^\\)|'\\:\\(|'\\:\\-\\(|'\\=\\(|\\:\\*|\\:\\-\\*|\\=\\*|\\:\\^\\*|\\>\\:P|>\\:P|X\\-P|x\\-p|\\>\\:\\[|>\\:\\[|\\:\\-\\(|\\:\\(|\\:\\-\\[|\\:\\[|\\=\\(|\\>\\:\\(|>\\:\\(|\\>\\:\\-\\(|>\\:\\-\\(|\\:@|\\:'\\(|\\:'\\-\\(|;\\(|;\\-\\(|\\>\\.\\<|>\\.<|D\\:|\\:\\$|\\=\\$|#\\-\\)|#\\)|%\\-\\)|%\\)|X\\)|X\\-\\)|\\*\\\\0\\/\\*|\\\\0\\/|\\*\\\\O\\/\\*|\\\\O\\/|O\\:\\-\\)|0\\:\\-3|0\\:3|0\\:\\-\\)|0\\:\\)|0;\\^\\)|O\\:\\-\\)|O\\:\\)|O;\\-\\)|O\\=\\)|0;\\-\\)|O\\:\\-3|O\\:3|B\\-\\)|B\\)|8\\)|8\\-\\)|B\\-D|8\\-D|\\-_\\-|\\-__\\-|\\-___\\-|\\>\\:\\\\|>\\:\\\\|\\>\\:\\/|>\\:\\/|\\:\\-\\/|\\:\\-\\.|\\:\\/|\\:\\\\|\\=\\/|\\=\\\\|\\:L|\\=L|\\:P|\\:\\-P|\\=P|\\:\\-p|\\:p|\\=p|\\:\\-Þ|\\:\\-Þ|\\:Þ|\\:Þ|\\:þ|\\:þ|\\:\\-þ|\\:\\-þ|\\:\\-b|\\:b|d\\:|\\:\\-O|\\:O|\\:\\-o|\\:o|O_O|\\>\\:O|>\\:O|\\:\\-X|\\:X|\\:\\-#|\\:#|\\=X|\\=x|\\:x|\\:\\-x|\\=#)",f.unicodeRegexp="(\\uD83D\\uDC69\\u200D\\u2764\\uFE0F\\u200D\\uD83D\\uDC8B\\u200D\\uD83D\\uDC69|\\uD83D\\uDC68\\u200D\\u2764\\uFE0F\\u200D\\uD83D\\uDC8B\\u200D\\uD83D\\uDC68|\\uD83D\\uDC68\\u200D\\uD83D\\uDC68\\u200D\\uD83D\\uDC67\\u200D\\uD83D\\uDC66|\\uD83D\\uDC68\\u200D\\uD83D\\uDC68\\u200D\\uD83D\\uDC67\\u200D\\uD83D\\uDC67|\\uD83D\\uDC68\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC66\\u200D\\uD83D\\uDC66|\\uD83D\\uDC68\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC67\\u200D\\uD83D\\uDC66|\\uD83D\\uDC68\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC67\\u200D\\uD83D\\uDC67|\\uD83D\\uDC69\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC66\\u200D\\uD83D\\uDC66|\\uD83D\\uDC69\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC67\\u200D\\uD83D\\uDC66|\\uD83D\\uDC69\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC67\\u200D\\uD83D\\uDC67|\\uD83D\\uDC68\\u200D\\uD83D\\uDC68\\u200D\\uD83D\\uDC66\\u200D\\uD83D\\uDC66|\\uD83D\\uDC68\\u200D\\u2764\\uFE0F\\u200D\\uD83D\\uDC68|\\uD83D\\uDC68\\u200D\\uD83D\\uDC68\\u200D\\uD83D\\uDC67|\\uD83D\\uDC68\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC67|\\uD83D\\uDC69\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC66|\\uD83D\\uDC69\\u200D\\uD83D\\uDC69\\u200D\\uD83D\\uDC67|\\uD83D\\uDC69\\u200D\\u2764\\uFE0F\\u200D\\uD83D\\uDC69|\\uD83D\\uDC68\\u200D\\uD83D\\uDC68\\u200D\\uD83D\\uDC66|\\uD83D\\uDC41\\u200D\\uD83D\\uDDE8|\\uD83C\\uDDE6\\uD83C\\uDDE9|\\uD83C\\uDDE6\\uD83C\\uDDEA|\\uD83C\\uDDE6\\uD83C\\uDDEB|\\uD83C\\uDDE6\\uD83C\\uDDEC|\\uD83C\\uDDE6\\uD83C\\uDDEE|\\uD83C\\uDDE6\\uD83C\\uDDF1|\\uD83C\\uDDE6\\uD83C\\uDDF2|\\uD83C\\uDDE6\\uD83C\\uDDF4|\\uD83C\\uDDE6\\uD83C\\uDDF6|\\uD83C\\uDDE6\\uD83C\\uDDF7|\\uD83C\\uDDE6\\uD83C\\uDDF8|\\uD83E\\uDD18\\uD83C\\uDFFF|\\uD83E\\uDD18\\uD83C\\uDFFE|\\uD83E\\uDD18\\uD83C\\uDFFD|\\uD83E\\uDD18\\uD83C\\uDFFC|\\uD83E\\uDD18\\uD83C\\uDFFB|\\uD83D\\uDEC0\\uD83C\\uDFFF|\\uD83D\\uDEC0\\uD83C\\uDFFE|\\uD83D\\uDEC0\\uD83C\\uDFFD|\\uD83D\\uDEC0\\uD83C\\uDFFC|\\uD83D\\uDEC0\\uD83C\\uDFFB|\\uD83D\\uDEB6\\uD83C\\uDFFF|\\uD83D\\uDEB6\\uD83C\\uDFFE|\\uD83D\\uDEB6\\uD83C\\uDFFD|\\uD83D\\uDEB6\\uD83C\\uDFFC|\\uD83D\\uDEB6\\uD83C\\uDFFB|\\uD83D\\uDEB5\\uD83C\\uDFFF|\\uD83D\\uDEB5\\uD83C\\uDFFE|\\uD83D\\uDEB5\\uD83C\\uDFFD|\\uD83D\\uDEB5\\uD83C\\uDFFC|\\uD83D\\uDEB5\\uD83C\\uDFFB|\\uD83D\\uDEB4\\uD83C\\uDFFF|\\uD83D\\uDEB4\\uD83C\\uDFFE|\\uD83D\\uDEB4\\uD83C\\uDFFD|\\uD83D\\uDEB4\\uD83C\\uDFFC|\\uD83D\\uDEB4\\uD83C\\uDFFB|\\uD83D\\uDEA3\\uD83C\\uDFFF|\\uD83D\\uDEA3\\uD83C\\uDFFE|\\uD83D\\uDEA3\\uD83C\\uDFFD|\\uD83D\\uDEA3\\uD83C\\uDFFC|\\uD83D\\uDEA3\\uD83C\\uDFFB|\\uD83D\\uDE4F\\uD83C\\uDFFF|\\uD83D\\uDE4F\\uD83C\\uDFFE|\\uD83D\\uDE4F\\uD83C\\uDFFD|\\uD83D\\uDE4F\\uD83C\\uDFFC|\\uD83D\\uDE4F\\uD83C\\uDFFB|\\uD83D\\uDE4E\\uD83C\\uDFFF|\\uD83D\\uDE4E\\uD83C\\uDFFE|\\uD83D\\uDE4E\\uD83C\\uDFFD|\\uD83D\\uDE4E\\uD83C\\uDFFC|\\uD83D\\uDE4E\\uD83C\\uDFFB|\\uD83D\\uDE4D\\uD83C\\uDFFF|\\uD83D\\uDE4D\\uD83C\\uDFFE|\\uD83D\\uDE4D\\uD83C\\uDFFD|\\uD83D\\uDE4D\\uD83C\\uDFFC|\\uD83D\\uDE4D\\uD83C\\uDFFB|\\uD83D\\uDE4C\\uD83C\\uDFFF|\\uD83D\\uDE4C\\uD83C\\uDFFE|\\uD83D\\uDE4C\\uD83C\\uDFFD|\\uD83D\\uDE4C\\uD83C\\uDFFC|\\uD83D\\uDE4C\\uD83C\\uDFFB|\\uD83D\\uDE4B\\uD83C\\uDFFF|\\uD83D\\uDE4B\\uD83C\\uDFFE|\\uD83D\\uDE4B\\uD83C\\uDFFD|\\uD83D\\uDE4B\\uD83C\\uDFFC|\\uD83D\\uDE4B\\uD83C\\uDFFB|\\uD83D\\uDE47\\uD83C\\uDFFF|\\uD83D\\uDE47\\uD83C\\uDFFE|\\uD83D\\uDE47\\uD83C\\uDFFD|\\uD83D\\uDE47\\uD83C\\uDFFC|\\uD83D\\uDE47\\uD83C\\uDFFB|\\uD83D\\uDE46\\uD83C\\uDFFF|\\uD83D\\uDE46\\uD83C\\uDFFE|\\uD83D\\uDE46\\uD83C\\uDFFD|\\uD83D\\uDE46\\uD83C\\uDFFC|\\uD83D\\uDE46\\uD83C\\uDFFB|\\uD83D\\uDE45\\uD83C\\uDFFF|\\uD83D\\uDE45\\uD83C\\uDFFE|\\uD83D\\uDE45\\uD83C\\uDFFD|\\uD83D\\uDE45\\uD83C\\uDFFC|\\uD83D\\uDE45\\uD83C\\uDFFB|\\uD83D\\uDD96\\uD83C\\uDFFF|\\uD83D\\uDD96\\uD83C\\uDFFE|\\uD83D\\uDD96\\uD83C\\uDFFD|\\uD83D\\uDD96\\uD83C\\uDFFC|\\uD83D\\uDD96\\uD83C\\uDFFB|\\uD83D\\uDD95\\uD83C\\uDFFF|\\uD83D\\uDD95\\uD83C\\uDFFE|\\uD83D\\uDD95\\uD83C\\uDFFD|\\uD83D\\uDD95\\uD83C\\uDFFC|\\uD83D\\uDD95\\uD83C\\uDFFB|\\uD83D\\uDD90\\uD83C\\uDFFF|\\uD83D\\uDD90\\uD83C\\uDFFE|\\uD83D\\uDD90\\uD83C\\uDFFD|\\uD83D\\uDD90\\uD83C\\uDFFC|\\uD83D\\uDD90\\uD83C\\uDFFB|\\uD83D\\uDD75\\uD83C\\uDFFF|\\uD83D\\uDD75\\uD83C\\uDFFE|\\uD83D\\uDD75\\uD83C\\uDFFD|\\uD83D\\uDD75\\uD83C\\uDFFC|\\uD83D\\uDD75\\uD83C\\uDFFB|\\uD83D\\uDCAA\\uD83C\\uDFFF|\\uD83D\\uDCAA\\uD83C\\uDFFE|\\uD83D\\uDCAA\\uD83C\\uDFFD|\\uD83D\\uDCAA\\uD83C\\uDFFC|\\uD83D\\uDCAA\\uD83C\\uDFFB|\\uD83D\\uDC87\\uD83C\\uDFFF|\\uD83D\\uDC87\\uD83C\\uDFFE|\\uD83D\\uDC87\\uD83C\\uDFFD|\\uD83D\\uDC87\\uD83C\\uDFFC|\\uD83D\\uDC87\\uD83C\\uDFFB|\\uD83D\\uDC86\\uD83C\\uDFFF|\\uD83D\\uDC86\\uD83C\\uDFFE|\\uD83D\\uDC86\\uD83C\\uDFFD|\\uD83D\\uDC86\\uD83C\\uDFFC|\\uD83D\\uDC86\\uD83C\\uDFFB|\\uD83D\\uDC85\\uD83C\\uDFFF|\\uD83D\\uDC85\\uD83C\\uDFFE|\\uD83D\\uDC85\\uD83C\\uDFFD|\\uD83D\\uDC85\\uD83C\\uDFFC|\\uD83D\\uDC85\\uD83C\\uDFFB|\\uD83D\\uDC83\\uD83C\\uDFFF|\\uD83D\\uDC83\\uD83C\\uDFFE|\\uD83D\\uDC83\\uD83C\\uDFFD|\\uD83D\\uDC83\\uD83C\\uDFFC|\\uD83D\\uDC83\\uD83C\\uDFFB|\\uD83D\\uDC82\\uD83C\\uDFFF|\\uD83D\\uDC82\\uD83C\\uDFFE|\\uD83D\\uDC82\\uD83C\\uDFFD|\\uD83D\\uDC82\\uD83C\\uDFFC|\\uD83D\\uDC82\\uD83C\\uDFFB|\\uD83D\\uDC81\\uD83C\\uDFFF|\\uD83D\\uDC81\\uD83C\\uDFFE|\\uD83D\\uDC81\\uD83C\\uDFFD|\\uD83D\\uDC81\\uD83C\\uDFFC|\\uD83D\\uDC81\\uD83C\\uDFFB|\\uD83D\\uDC7C\\uD83C\\uDFFF|\\uD83D\\uDC7C\\uD83C\\uDFFE|\\uD83D\\uDC7C\\uD83C\\uDFFD|\\uD83D\\uDC7C\\uD83C\\uDFFC|\\uD83D\\uDC7C\\uD83C\\uDFFB|\\uD83D\\uDC78\\uD83C\\uDFFF|\\uD83D\\uDC78\\uD83C\\uDFFE|\\uD83D\\uDC78\\uD83C\\uDFFD|\\uD83D\\uDC78\\uD83C\\uDFFC|\\uD83D\\uDC78\\uD83C\\uDFFB|\\uD83D\\uDC77\\uD83C\\uDFFF|\\uD83D\\uDC77\\uD83C\\uDFFE|\\uD83D\\uDC77\\uD83C\\uDFFD|\\uD83D\\uDC77\\uD83C\\uDFFC|\\uD83D\\uDC77\\uD83C\\uDFFB|\\uD83D\\uDC76\\uD83C\\uDFFF|\\uD83D\\uDC76\\uD83C\\uDFFE|\\uD83D\\uDC76\\uD83C\\uDFFD|\\uD83D\\uDC76\\uD83C\\uDFFC|\\uD83D\\uDC76\\uD83C\\uDFFB|\\uD83D\\uDC75\\uD83C\\uDFFF|\\uD83D\\uDC75\\uD83C\\uDFFE|\\uD83D\\uDC75\\uD83C\\uDFFD|\\uD83D\\uDC75\\uD83C\\uDFFC|\\uD83D\\uDC75\\uD83C\\uDFFB|\\uD83D\\uDC74\\uD83C\\uDFFF|\\uD83D\\uDC74\\uD83C\\uDFFE|\\uD83D\\uDC74\\uD83C\\uDFFD|\\uD83D\\uDC74\\uD83C\\uDFFC|\\uD83D\\uDC74\\uD83C\\uDFFB|\\uD83D\\uDC73\\uD83C\\uDFFF|\\uD83D\\uDC73\\uD83C\\uDFFE|\\uD83D\\uDC73\\uD83C\\uDFFD|\\uD83D\\uDC73\\uD83C\\uDFFC|\\uD83D\\uDC73\\uD83C\\uDFFB|\\uD83D\\uDC72\\uD83C\\uDFFF|\\uD83D\\uDC72\\uD83C\\uDFFE|\\uD83D\\uDC72\\uD83C\\uDFFD|\\uD83D\\uDC72\\uD83C\\uDFFC|\\uD83D\\uDC72\\uD83C\\uDFFB|\\uD83D\\uDC71\\uD83C\\uDFFF|\\uD83D\\uDC71\\uD83C\\uDFFE|\\uD83D\\uDC71\\uD83C\\uDFFD|\\uD83D\\uDC71\\uD83C\\uDFFC|\\uD83D\\uDC71\\uD83C\\uDFFB|\\uD83D\\uDC70\\uD83C\\uDFFF|\\uD83D\\uDC70\\uD83C\\uDFFE|\\uD83D\\uDC70\\uD83C\\uDFFD|\\uD83D\\uDC70\\uD83C\\uDFFC|\\uD83D\\uDC70\\uD83C\\uDFFB|\\uD83D\\uDC6E\\uD83C\\uDFFF|\\uD83D\\uDC6E\\uD83C\\uDFFE|\\uD83D\\uDC6E\\uD83C\\uDFFD|\\uD83D\\uDC6E\\uD83C\\uDFFC|\\uD83D\\uDC6E\\uD83C\\uDFFB|\\uD83D\\uDC69\\uD83C\\uDFFF|\\uD83D\\uDC69\\uD83C\\uDFFE|\\uD83D\\uDC69\\uD83C\\uDFFD|\\uD83D\\uDC69\\uD83C\\uDFFC|\\uD83D\\uDC69\\uD83C\\uDFFB|\\uD83D\\uDC68\\uD83C\\uDFFF|\\uD83D\\uDC68\\uD83C\\uDFFE|\\uD83D\\uDC68\\uD83C\\uDFFD|\\uD83D\\uDC68\\uD83C\\uDFFC|\\uD83D\\uDC68\\uD83C\\uDFFB|\\uD83D\\uDC67\\uD83C\\uDFFF|\\uD83D\\uDC67\\uD83C\\uDFFE|\\uD83D\\uDC67\\uD83C\\uDFFD|\\uD83D\\uDC67\\uD83C\\uDFFC|\\uD83D\\uDC67\\uD83C\\uDFFB|\\uD83D\\uDC66\\uD83C\\uDFFF|\\uD83D\\uDC66\\uD83C\\uDFFE|\\uD83D\\uDC66\\uD83C\\uDFFD|\\uD83D\\uDC66\\uD83C\\uDFFC|\\uD83D\\uDC66\\uD83C\\uDFFB|\\uD83D\\uDC50\\uD83C\\uDFFF|\\uD83D\\uDC50\\uD83C\\uDFFE|\\uD83D\\uDC50\\uD83C\\uDFFD|\\uD83D\\uDC50\\uD83C\\uDFFC|\\uD83D\\uDC50\\uD83C\\uDFFB|\\uD83D\\uDC4F\\uD83C\\uDFFF|\\uD83D\\uDC4F\\uD83C\\uDFFE|\\uD83D\\uDC4F\\uD83C\\uDFFD|\\uD83D\\uDC4F\\uD83C\\uDFFC|\\uD83D\\uDC4F\\uD83C\\uDFFB|\\uD83D\\uDC4E\\uD83C\\uDFFF|\\uD83D\\uDC4E\\uD83C\\uDFFE|\\uD83D\\uDC4E\\uD83C\\uDFFD|\\uD83D\\uDC4E\\uD83C\\uDFFC|\\uD83D\\uDC4E\\uD83C\\uDFFB|\\uD83D\\uDC4D\\uD83C\\uDFFF|\\uD83D\\uDC4D\\uD83C\\uDFFE|\\uD83D\\uDC4D\\uD83C\\uDFFD|\\uD83D\\uDC4D\\uD83C\\uDFFC|\\uD83D\\uDC4D\\uD83C\\uDFFB|\\uD83D\\uDC4C\\uD83C\\uDFFF|\\uD83D\\uDC4C\\uD83C\\uDFFE|\\uD83D\\uDC4C\\uD83C\\uDFFD|\\uD83D\\uDC4C\\uD83C\\uDFFC|\\uD83D\\uDC4C\\uD83C\\uDFFB|\\uD83D\\uDC4B\\uD83C\\uDFFF|\\uD83D\\uDC4B\\uD83C\\uDFFE|\\uD83D\\uDC4B\\uD83C\\uDFFD|\\uD83D\\uDC4B\\uD83C\\uDFFC|\\uD83D\\uDC4B\\uD83C\\uDFFB|\\uD83D\\uDC4A\\uD83C\\uDFFF|\\uD83D\\uDC4A\\uD83C\\uDFFE|\\uD83D\\uDC4A\\uD83C\\uDFFD|\\uD83D\\uDC4A\\uD83C\\uDFFC|\\uD83D\\uDC4A\\uD83C\\uDFFB|\\uD83D\\uDC49\\uD83C\\uDFFF|\\uD83D\\uDC49\\uD83C\\uDFFE|\\uD83D\\uDC49\\uD83C\\uDFFD|\\uD83D\\uDC49\\uD83C\\uDFFC|\\uD83D\\uDC49\\uD83C\\uDFFB|\\uD83D\\uDC48\\uD83C\\uDFFF|\\uD83D\\uDC48\\uD83C\\uDFFE|\\uD83D\\uDC48\\uD83C\\uDFFD|\\uD83D\\uDC48\\uD83C\\uDFFC|\\uD83D\\uDC48\\uD83C\\uDFFB|\\uD83D\\uDC47\\uD83C\\uDFFF|\\uD83D\\uDC47\\uD83C\\uDFFE|\\uD83D\\uDC47\\uD83C\\uDFFD|\\uD83D\\uDC47\\uD83C\\uDFFC|\\uD83D\\uDC47\\uD83C\\uDFFB|\\uD83D\\uDC46\\uD83C\\uDFFF|\\uD83D\\uDC46\\uD83C\\uDFFE|\\uD83D\\uDC46\\uD83C\\uDFFD|\\uD83D\\uDC46\\uD83C\\uDFFC|\\uD83D\\uDC46\\uD83C\\uDFFB|\\uD83D\\uDC43\\uD83C\\uDFFF|\\uD83D\\uDC43\\uD83C\\uDFFE|\\uD83D\\uDC43\\uD83C\\uDFFD|\\uD83D\\uDC43\\uD83C\\uDFFC|\\uD83D\\uDC43\\uD83C\\uDFFB|\\uD83D\\uDC42\\uD83C\\uDFFF|\\uD83D\\uDC42\\uD83C\\uDFFE|\\uD83D\\uDC42\\uD83C\\uDFFD|\\uD83D\\uDC42\\uD83C\\uDFFC|\\uD83D\\uDC42\\uD83C\\uDFFB|\\uD83C\\uDFCB\\uD83C\\uDFFF|\\uD83C\\uDFCB\\uD83C\\uDFFE|\\uD83C\\uDFCB\\uD83C\\uDFFD|\\uD83C\\uDFCB\\uD83C\\uDFFC|\\uD83C\\uDFCB\\uD83C\\uDFFB|\\uD83C\\uDFCA\\uD83C\\uDFFF|\\uD83C\\uDFCA\\uD83C\\uDFFE|\\uD83C\\uDFCA\\uD83C\\uDFFD|\\uD83C\\uDFCA\\uD83C\\uDFFC|\\uD83C\\uDFCA\\uD83C\\uDFFB|\\uD83C\\uDFC7\\uD83C\\uDFFF|\\uD83C\\uDFC7\\uD83C\\uDFFE|\\uD83C\\uDFC7\\uD83C\\uDFFD|\\uD83C\\uDFC7\\uD83C\\uDFFC|\\uD83C\\uDFC7\\uD83C\\uDFFB|\\uD83C\\uDFC4\\uD83C\\uDFFF|\\uD83C\\uDFC4\\uD83C\\uDFFE|\\uD83C\\uDFC4\\uD83C\\uDFFD|\\uD83C\\uDFC4\\uD83C\\uDFFC|\\uD83C\\uDFC4\\uD83C\\uDFFB|\\uD83C\\uDFC3\\uD83C\\uDFFF|\\uD83C\\uDFC3\\uD83C\\uDFFE|\\uD83C\\uDFC3\\uD83C\\uDFFD|\\uD83C\\uDFC3\\uD83C\\uDFFC|\\uD83C\\uDFC3\\uD83C\\uDFFB|\\uD83C\\uDF85\\uD83C\\uDFFF|\\uD83C\\uDF85\\uD83C\\uDFFE|\\uD83C\\uDF85\\uD83C\\uDFFD|\\uD83C\\uDF85\\uD83C\\uDFFC|\\uD83C\\uDF85\\uD83C\\uDFFB|\\uD83C\\uDDFF\\uD83C\\uDDFC|\\uD83C\\uDDFF\\uD83C\\uDDF2|\\uD83C\\uDDFF\\uD83C\\uDDE6|\\uD83C\\uDDFE\\uD83C\\uDDF9|\\uD83C\\uDDFE\\uD83C\\uDDEA|\\uD83C\\uDDFD\\uD83C\\uDDF0|\\uD83C\\uDDFC\\uD83C\\uDDF8|\\uD83C\\uDDFC\\uD83C\\uDDEB|\\uD83C\\uDDFB\\uD83C\\uDDFA|\\uD83C\\uDDFB\\uD83C\\uDDF3|\\uD83C\\uDDFB\\uD83C\\uDDEE|\\uD83C\\uDDFB\\uD83C\\uDDEC|\\uD83C\\uDDFB\\uD83C\\uDDEA|\\uD83C\\uDDFB\\uD83C\\uDDE8|\\uD83C\\uDDFB\\uD83C\\uDDE6|\\uD83C\\uDDFA\\uD83C\\uDDFF|\\uD83C\\uDDFA\\uD83C\\uDDFE|\\uD83C\\uDDFA\\uD83C\\uDDF8|\\uD83C\\uDDFA\\uD83C\\uDDF2|\\uD83C\\uDDFA\\uD83C\\uDDEC|\\uD83C\\uDDFA\\uD83C\\uDDE6|\\uD83C\\uDDF9\\uD83C\\uDDFF|\\uD83C\\uDDF9\\uD83C\\uDDFC|\\uD83C\\uDDF9\\uD83C\\uDDFB|\\uD83C\\uDDF9\\uD83C\\uDDF9|\\uD83C\\uDDF9\\uD83C\\uDDF7|\\uD83C\\uDDF9\\uD83C\\uDDF4|\\uD83C\\uDDF9\\uD83C\\uDDF3|\\uD83C\\uDDF9\\uD83C\\uDDF2|\\uD83C\\uDDF9\\uD83C\\uDDF1|\\uD83C\\uDDF9\\uD83C\\uDDF0|\\uD83C\\uDDF9\\uD83C\\uDDEF|\\uD83C\\uDDF9\\uD83C\\uDDED|\\uD83C\\uDDF9\\uD83C\\uDDEC|\\uD83C\\uDDF9\\uD83C\\uDDEB|\\uD83C\\uDDE6\\uD83C\\uDDE8|\\uD83C\\uDDF9\\uD83C\\uDDE8|\\uD83C\\uDDF9\\uD83C\\uDDE6|\\uD83C\\uDDF8\\uD83C\\uDDFF|\\uD83C\\uDDF8\\uD83C\\uDDFE|\\uD83C\\uDDF8\\uD83C\\uDDFD|\\uD83C\\uDDF8\\uD83C\\uDDFB|\\uD83C\\uDDF8\\uD83C\\uDDF9|\\uD83C\\uDDF8\\uD83C\\uDDF8|\\uD83C\\uDDF8\\uD83C\\uDDF7|\\uD83C\\uDDF8\\uD83C\\uDDF4|\\uD83C\\uDDF8\\uD83C\\uDDF3|\\uD83C\\uDDF8\\uD83C\\uDDF2|\\uD83C\\uDDF8\\uD83C\\uDDF1|\\uD83C\\uDDF8\\uD83C\\uDDF0|\\uD83C\\uDDF8\\uD83C\\uDDEF|\\uD83C\\uDDF8\\uD83C\\uDDEE|\\uD83C\\uDDF8\\uD83C\\uDDED|\\uD83C\\uDDF8\\uD83C\\uDDEC|\\uD83C\\uDDF8\\uD83C\\uDDEA|\\uD83C\\uDDF8\\uD83C\\uDDE9|\\uD83C\\uDDF8\\uD83C\\uDDE8|\\uD83C\\uDDF8\\uD83C\\uDDE7|\\uD83C\\uDDF8\\uD83C\\uDDE6|\\uD83C\\uDDF7\\uD83C\\uDDFC|\\uD83C\\uDDF7\\uD83C\\uDDFA|\\uD83C\\uDDF7\\uD83C\\uDDF8|\\uD83C\\uDDF7\\uD83C\\uDDF4|\\uD83C\\uDDF7\\uD83C\\uDDEA|\\uD83C\\uDDF6\\uD83C\\uDDE6|\\uD83C\\uDDF5\\uD83C\\uDDFE|\\uD83C\\uDDF5\\uD83C\\uDDFC|\\uD83C\\uDDF5\\uD83C\\uDDF9|\\uD83C\\uDDF5\\uD83C\\uDDF8|\\uD83C\\uDDF5\\uD83C\\uDDF7|\\uD83C\\uDDF5\\uD83C\\uDDF3|\\uD83C\\uDDF5\\uD83C\\uDDF2|\\uD83C\\uDDF5\\uD83C\\uDDF1|\\uD83C\\uDDF5\\uD83C\\uDDF0|\\uD83C\\uDDF5\\uD83C\\uDDED|\\uD83C\\uDDF5\\uD83C\\uDDEC|\\uD83C\\uDDF5\\uD83C\\uDDEB|\\uD83C\\uDDF5\\uD83C\\uDDEA|\\uD83C\\uDDF5\\uD83C\\uDDE6|\\uD83C\\uDDF4\\uD83C\\uDDF2|\\uD83C\\uDDF3\\uD83C\\uDDFF|\\uD83C\\uDDF3\\uD83C\\uDDFA|\\uD83C\\uDDF3\\uD83C\\uDDF7|\\uD83C\\uDDF3\\uD83C\\uDDF5|\\uD83C\\uDDF3\\uD83C\\uDDF4|\\uD83C\\uDDF3\\uD83C\\uDDF1|\\uD83C\\uDDF3\\uD83C\\uDDEE|\\uD83C\\uDDF3\\uD83C\\uDDEC|\\uD83C\\uDDF3\\uD83C\\uDDEB|\\uD83C\\uDDF3\\uD83C\\uDDEA|\\uD83C\\uDDF3\\uD83C\\uDDE8|\\uD83C\\uDDF3\\uD83C\\uDDE6|\\uD83C\\uDDF2\\uD83C\\uDDFF|\\uD83C\\uDDF2\\uD83C\\uDDFE|\\uD83C\\uDDF2\\uD83C\\uDDFD|\\uD83C\\uDDF2\\uD83C\\uDDFC|\\uD83C\\uDDF2\\uD83C\\uDDFB|\\uD83C\\uDDF2\\uD83C\\uDDFA|\\uD83C\\uDDF2\\uD83C\\uDDF9|\\uD83C\\uDDF2\\uD83C\\uDDF8|\\uD83C\\uDDF2\\uD83C\\uDDF7|\\uD83C\\uDDF2\\uD83C\\uDDF6|\\uD83C\\uDDF2\\uD83C\\uDDF5|\\uD83C\\uDDF2\\uD83C\\uDDF4|\\uD83C\\uDDF2\\uD83C\\uDDF3|\\uD83C\\uDDF2\\uD83C\\uDDF2|\\uD83C\\uDDF2\\uD83C\\uDDF1|\\uD83C\\uDDF2\\uD83C\\uDDF0|\\uD83C\\uDDF2\\uD83C\\uDDED|\\uD83C\\uDDF2\\uD83C\\uDDEC|\\uD83C\\uDDF2\\uD83C\\uDDEB|\\uD83C\\uDDF2\\uD83C\\uDDEA|\\uD83C\\uDDF2\\uD83C\\uDDE9|\\uD83C\\uDDF2\\uD83C\\uDDE8|\\uD83C\\uDDF2\\uD83C\\uDDE6|\\uD83C\\uDDF1\\uD83C\\uDDFE|\\uD83C\\uDDF1\\uD83C\\uDDFB|\\uD83C\\uDDF1\\uD83C\\uDDFA|\\uD83C\\uDDF1\\uD83C\\uDDF9|\\uD83C\\uDDF1\\uD83C\\uDDF8|\\uD83C\\uDDF1\\uD83C\\uDDF7|\\uD83C\\uDDF1\\uD83C\\uDDF0|\\uD83C\\uDDF1\\uD83C\\uDDEE|\\uD83C\\uDDF1\\uD83C\\uDDE8|\\uD83C\\uDDF1\\uD83C\\uDDE7|\\uD83C\\uDDF1\\uD83C\\uDDE6|\\uD83C\\uDDF0\\uD83C\\uDDFF|\\uD83C\\uDDF0\\uD83C\\uDDFE|\\uD83C\\uDDF0\\uD83C\\uDDFC|\\uD83C\\uDDF0\\uD83C\\uDDF7|\\uD83C\\uDDF0\\uD83C\\uDDF5|\\uD83C\\uDDF0\\uD83C\\uDDF3|\\uD83C\\uDDF0\\uD83C\\uDDF2|\\uD83C\\uDDF0\\uD83C\\uDDEE|\\uD83C\\uDDF0\\uD83C\\uDDED|\\uD83C\\uDDF0\\uD83C\\uDDEC|\\uD83C\\uDDF0\\uD83C\\uDDEA|\\uD83C\\uDDEF\\uD83C\\uDDF5|\\uD83C\\uDDEF\\uD83C\\uDDF4|\\uD83C\\uDDEF\\uD83C\\uDDF2|\\uD83C\\uDDEF\\uD83C\\uDDEA|\\uD83C\\uDDEE\\uD83C\\uDDF9|\\uD83C\\uDDEE\\uD83C\\uDDF8|\\uD83C\\uDDEE\\uD83C\\uDDF7|\\uD83C\\uDDEE\\uD83C\\uDDF6|\\uD83C\\uDDEE\\uD83C\\uDDF4|\\uD83C\\uDDEE\\uD83C\\uDDF3|\\uD83C\\uDDEE\\uD83C\\uDDF2|\\uD83C\\uDDEE\\uD83C\\uDDF1|\\uD83C\\uDDEE\\uD83C\\uDDEA|\\uD83C\\uDDEE\\uD83C\\uDDE9|\\uD83C\\uDDEE\\uD83C\\uDDE8|\\uD83C\\uDDED\\uD83C\\uDDFA|\\uD83C\\uDDED\\uD83C\\uDDF9|\\uD83C\\uDDED\\uD83C\\uDDF7|\\uD83C\\uDDED\\uD83C\\uDDF3|\\uD83C\\uDDED\\uD83C\\uDDF2|\\uD83C\\uDDED\\uD83C\\uDDF0|\\uD83C\\uDDEC\\uD83C\\uDDFE|\\uD83C\\uDDEC\\uD83C\\uDDFC|\\uD83C\\uDDEC\\uD83C\\uDDFA|\\uD83C\\uDDEC\\uD83C\\uDDF9|\\uD83C\\uDDEC\\uD83C\\uDDF8|\\uD83C\\uDDEC\\uD83C\\uDDF7|\\uD83C\\uDDEC\\uD83C\\uDDF6|\\uD83C\\uDDEC\\uD83C\\uDDF5|\\uD83C\\uDDEC\\uD83C\\uDDF3|\\uD83C\\uDDEC\\uD83C\\uDDF2|\\uD83C\\uDDEC\\uD83C\\uDDF1|\\uD83C\\uDDEC\\uD83C\\uDDEE|\\uD83C\\uDDEC\\uD83C\\uDDED|\\uD83C\\uDDEC\\uD83C\\uDDEC|\\uD83C\\uDDEC\\uD83C\\uDDEB|\\uD83C\\uDDEC\\uD83C\\uDDEA|\\uD83C\\uDDEC\\uD83C\\uDDE9|\\uD83C\\uDDEC\\uD83C\\uDDE7|\\uD83C\\uDDEC\\uD83C\\uDDE6|\\uD83C\\uDDEB\\uD83C\\uDDF7|\\uD83C\\uDDEB\\uD83C\\uDDF4|\\uD83C\\uDDEB\\uD83C\\uDDF2|\\uD83C\\uDDEB\\uD83C\\uDDF0|\\uD83C\\uDDEB\\uD83C\\uDDEF|\\uD83C\\uDDEB\\uD83C\\uDDEE|\\uD83C\\uDDEA\\uD83C\\uDDFA|\\uD83C\\uDDEA\\uD83C\\uDDF9|\\uD83C\\uDDEA\\uD83C\\uDDF8|\\uD83C\\uDDEA\\uD83C\\uDDF7|\\uD83C\\uDDEA\\uD83C\\uDDED|\\uD83C\\uDDEA\\uD83C\\uDDEC|\\uD83C\\uDDEA\\uD83C\\uDDEA|\\uD83C\\uDDEA\\uD83C\\uDDE8|\\uD83C\\uDDEA\\uD83C\\uDDE6|\\uD83C\\uDDE9\\uD83C\\uDDFF|\\uD83C\\uDDE9\\uD83C\\uDDF4|\\uD83C\\uDDE9\\uD83C\\uDDF2|\\uD83C\\uDDE9\\uD83C\\uDDF0|\\uD83C\\uDDE9\\uD83C\\uDDEF|\\uD83C\\uDDE9\\uD83C\\uDDEC|\\uD83C\\uDDE9\\uD83C\\uDDEA|\\uD83C\\uDDE8\\uD83C\\uDDFF|\\uD83C\\uDDE8\\uD83C\\uDDFE|\\uD83C\\uDDE8\\uD83C\\uDDFD|\\uD83C\\uDDE8\\uD83C\\uDDFC|\\uD83C\\uDDE8\\uD83C\\uDDFB|\\uD83C\\uDDE8\\uD83C\\uDDFA|\\uD83C\\uDDE8\\uD83C\\uDDF7|\\uD83C\\uDDE8\\uD83C\\uDDF5|\\uD83C\\uDDE8\\uD83C\\uDDF4|\\uD83C\\uDDE8\\uD83C\\uDDF3|\\uD83C\\uDDE8\\uD83C\\uDDF2|\\uD83C\\uDDE8\\uD83C\\uDDF1|\\uD83C\\uDDE8\\uD83C\\uDDF0|\\uD83C\\uDDE8\\uD83C\\uDDEE|\\uD83C\\uDDE8\\uD83C\\uDDED|\\uD83C\\uDDE8\\uD83C\\uDDEC|\\uD83C\\uDDE8\\uD83C\\uDDEB|\\uD83C\\uDDE8\\uD83C\\uDDE9|\\uD83C\\uDDE8\\uD83C\\uDDE8|\\uD83C\\uDDE8\\uD83C\\uDDE6|\\uD83C\\uDDE7\\uD83C\\uDDFF|\\uD83C\\uDDE7\\uD83C\\uDDFE|\\uD83C\\uDDE7\\uD83C\\uDDFC|\\uD83C\\uDDE7\\uD83C\\uDDFB|\\uD83C\\uDDE7\\uD83C\\uDDF9|\\uD83C\\uDDE7\\uD83C\\uDDF8|\\uD83C\\uDDE7\\uD83C\\uDDF7|\\uD83C\\uDDE7\\uD83C\\uDDF6|\\uD83C\\uDDE7\\uD83C\\uDDF4|\\uD83C\\uDDE7\\uD83C\\uDDF3|\\uD83C\\uDDE7\\uD83C\\uDDF2|\\uD83C\\uDDE7\\uD83C\\uDDF1|\\uD83C\\uDDE7\\uD83C\\uDDEF|\\uD83C\\uDDE7\\uD83C\\uDDEE|\\uD83C\\uDDE7\\uD83C\\uDDED|\\uD83C\\uDDE7\\uD83C\\uDDEC|\\uD83C\\uDDE7\\uD83C\\uDDEB|\\uD83C\\uDDE7\\uD83C\\uDDEA|\\uD83C\\uDDE7\\uD83C\\uDDE9|\\uD83C\\uDDE7\\uD83C\\uDDE7|\\uD83C\\uDDE7\\uD83C\\uDDE6|\\uD83C\\uDDE6\\uD83C\\uDDFF|\\uD83C\\uDDE6\\uD83C\\uDDFD|\\uD83C\\uDDE6\\uD83C\\uDDFC|\\uD83C\\uDDE6\\uD83C\\uDDFA|\\uD83C\\uDDE6\\uD83C\\uDDF9|\\uD83C\\uDDF9\\uD83C\\uDDE9|\\uD83D\\uDDE1\\uFE0F|\\u26F9\\uD83C\\uDFFF|\\u26F9\\uD83C\\uDFFE|\\u26F9\\uD83C\\uDFFD|\\u26F9\\uD83C\\uDFFC|\\u26F9\\uD83C\\uDFFB|\\u270D\\uD83C\\uDFFF|\\u270D\\uD83C\\uDFFE|\\u270D\\uD83C\\uDFFD|\\u270D\\uD83C\\uDFFC|\\u270D\\uD83C\\uDFFB|\\uD83C\\uDC04\\uFE0F|\\uD83C\\uDD7F\\uFE0F|\\uD83C\\uDE02\\uFE0F|\\uD83C\\uDE1A\\uFE0F|\\uD83C\\uDE2F\\uFE0F|\\uD83C\\uDE37\\uFE0F|\\uD83C\\uDF9E\\uFE0F|\\uD83C\\uDF9F\\uFE0F|\\uD83C\\uDFCB\\uFE0F|\\uD83C\\uDFCC\\uFE0F|\\uD83C\\uDFCD\\uFE0F|\\uD83C\\uDFCE\\uFE0F|\\uD83C\\uDF96\\uFE0F|\\uD83C\\uDF97\\uFE0F|\\uD83C\\uDF36\\uFE0F|\\uD83C\\uDF27\\uFE0F|\\uD83C\\uDF28\\uFE0F|\\uD83C\\uDF29\\uFE0F|\\uD83C\\uDF2A\\uFE0F|\\uD83C\\uDF2B\\uFE0F|\\uD83C\\uDF2C\\uFE0F|\\uD83D\\uDC3F\\uFE0F|\\uD83D\\uDD77\\uFE0F|\\uD83D\\uDD78\\uFE0F|\\uD83C\\uDF21\\uFE0F|\\uD83C\\uDF99\\uFE0F|\\uD83C\\uDF9A\\uFE0F|\\uD83C\\uDF9B\\uFE0F|\\uD83C\\uDFF3\\uFE0F|\\uD83C\\uDFF5\\uFE0F|\\uD83C\\uDFF7\\uFE0F|\\uD83D\\uDCFD\\uFE0F|\\uD83D\\uDD49\\uFE0F|\\uD83D\\uDD4A\\uFE0F|\\uD83D\\uDD6F\\uFE0F|\\uD83D\\uDD70\\uFE0F|\\uD83D\\uDD73\\uFE0F|\\uD83D\\uDD76\\uFE0F|\\uD83D\\uDD79\\uFE0F|\\uD83D\\uDD87\\uFE0F|\\uD83D\\uDD8A\\uFE0F|\\uD83D\\uDD8B\\uFE0F|\\uD83D\\uDD8C\\uFE0F|\\uD83D\\uDD8D\\uFE0F|\\uD83D\\uDDA5\\uFE0F|\\uD83D\\uDDA8\\uFE0F|\\uD83D\\uDDB2\\uFE0F|\\uD83D\\uDDBC\\uFE0F|\\uD83D\\uDDC2\\uFE0F|\\uD83D\\uDDC3\\uFE0F|\\uD83D\\uDDC4\\uFE0F|\\uD83D\\uDDD1\\uFE0F|\\uD83D\\uDDD2\\uFE0F|\\uD83D\\uDDD3\\uFE0F|\\uD83D\\uDDDC\\uFE0F|\\uD83D\\uDDDD\\uFE0F|\\uD83D\\uDDDE\\uFE0F|\\u270B\\uD83C\\uDFFF|\\uD83D\\uDDE3\\uFE0F|\\uD83D\\uDDEF\\uFE0F|\\uD83D\\uDDF3\\uFE0F|\\uD83D\\uDDFA\\uFE0F|\\uD83D\\uDEE0\\uFE0F|\\uD83D\\uDEE1\\uFE0F|\\uD83D\\uDEE2\\uFE0F|\\uD83D\\uDEF0\\uFE0F|\\uD83C\\uDF7D\\uFE0F|\\uD83D\\uDC41\\uFE0F|\\uD83D\\uDD74\\uFE0F|\\uD83D\\uDD75\\uFE0F|\\uD83D\\uDD90\\uFE0F|\\uD83C\\uDFD4\\uFE0F|\\uD83C\\uDFD5\\uFE0F|\\uD83C\\uDFD6\\uFE0F|\\uD83C\\uDFD7\\uFE0F|\\uD83C\\uDFD8\\uFE0F|\\uD83C\\uDFD9\\uFE0F|\\uD83C\\uDFDA\\uFE0F|\\uD83C\\uDFDB\\uFE0F|\\uD83C\\uDFDC\\uFE0F|\\uD83C\\uDFDD\\uFE0F|\\uD83C\\uDFDE\\uFE0F|\\uD83C\\uDFDF\\uFE0F|\\uD83D\\uDECB\\uFE0F|\\uD83D\\uDECD\\uFE0F|\\uD83D\\uDECE\\uFE0F|\\uD83D\\uDECF\\uFE0F|\\uD83D\\uDEE3\\uFE0F|\\uD83D\\uDEE4\\uFE0F|\\uD83D\\uDEE5\\uFE0F|\\uD83D\\uDEE9\\uFE0F|\\uD83D\\uDEF3\\uFE0F|\\uD83C\\uDF24\\uFE0F|\\uD83C\\uDF25\\uFE0F|\\uD83C\\uDF26\\uFE0F|\\uD83D\\uDDB1\\uFE0F|\\u261D\\uD83C\\uDFFB|\\u261D\\uD83C\\uDFFC|\\u261D\\uD83C\\uDFFD|\\u261D\\uD83C\\uDFFE|\\u261D\\uD83C\\uDFFF|\\u270C\\uD83C\\uDFFB|\\u270C\\uD83C\\uDFFC|\\u270C\\uD83C\\uDFFD|\\u270C\\uD83C\\uDFFE|\\u270C\\uD83C\\uDFFF|\\u270A\\uD83C\\uDFFB|\\u270A\\uD83C\\uDFFC|\\u270A\\uD83C\\uDFFD|\\u270A\\uD83C\\uDFFE|\\u270A\\uD83C\\uDFFF|\\u270B\\uD83C\\uDFFB|\\u270B\\uD83C\\uDFFC|\\u270B\\uD83C\\uDFFD|\\u270B\\uD83C\\uDFFE|4\\uFE0F\\u20E3|9\\uFE0F\\u20E3|0\\uFE0F\\u20E3|1\\uFE0F\\u20E3|2\\uFE0F\\u20E3|3\\uFE0F\\u20E3|#\\uFE0F\\u20E3|5\\uFE0F\\u20E3|6\\uFE0F\\u20E3|7\\uFE0F\\u20E3|8\\uFE0F\\u20E3|\\*\\uFE0F\\u20E3|\\u00A9\\uFE0F|\\u00AE\\uFE0F|\\u203C\\uFE0F|\\u2049\\uFE0F|\\u2122\\uFE0F|\\u2139\\uFE0F|\\u2194\\uFE0F|\\u2195\\uFE0F|\\u2196\\uFE0F|\\u2197\\uFE0F|\\u2198\\uFE0F|\\u2199\\uFE0F|\\u21A9\\uFE0F|\\u21AA\\uFE0F|\\u231A\\uFE0F|\\u231B\\uFE0F|\\u24C2\\uFE0F|\\u25AA\\uFE0F|\\u25AB\\uFE0F|\\u25B6\\uFE0F|\\u25C0\\uFE0F|\\u25FB\\uFE0F|\\u25FC\\uFE0F|\\u25FD\\uFE0F|\\u25FE\\uFE0F|\\u2600\\uFE0F|\\u2601\\uFE0F|\\u260E\\uFE0F|\\u2611\\uFE0F|\\u2614\\uFE0F|\\u2615\\uFE0F|\\u261D\\uFE0F|\\u263A\\uFE0F|\\u2648\\uFE0F|\\u2649\\uFE0F|\\u264A\\uFE0F|\\u264B\\uFE0F|\\u264C\\uFE0F|\\u264D\\uFE0F|\\u264E\\uFE0F|\\u264F\\uFE0F|\\u2650\\uFE0F|\\u2651\\uFE0F|\\u2652\\uFE0F|\\u2653\\uFE0F|\\u2660\\uFE0F|\\u2663\\uFE0F|\\u2665\\uFE0F|\\u2666\\uFE0F|\\u2668\\uFE0F|\\u267B\\uFE0F|\\u267F\\uFE0F|\\u2693\\uFE0F|\\u26A0\\uFE0F|\\u26A1\\uFE0F|\\u26AA\\uFE0F|\\u26AB\\uFE0F|\\u26BD\\uFE0F|\\u26BE\\uFE0F|\\u26C4\\uFE0F|\\u26C5\\uFE0F|\\u26D4\\uFE0F|\\u26EA\\uFE0F|\\u26F2\\uFE0F|\\u26F3\\uFE0F|\\u26F5\\uFE0F|\\u26FA\\uFE0F|\\u26FD\\uFE0F|\\u2702\\uFE0F|\\u2708\\uFE0F|\\u2709\\uFE0F|\\u270C\\uFE0F|\\u270F\\uFE0F|\\u2712\\uFE0F|\\u2714\\uFE0F|\\u2716\\uFE0F|\\u2733\\uFE0F|\\u2734\\uFE0F|\\u2744\\uFE0F|\\u2747\\uFE0F|\\u2757\\uFE0F|\\u2764\\uFE0F|\\u27A1\\uFE0F|\\u2934\\uFE0F|\\u2935\\uFE0F|\\u2B05\\uFE0F|\\u2B06\\uFE0F|\\u2B07\\uFE0F|\\u2B1B\\uFE0F|\\u2B1C\\uFE0F|\\u2B50\\uFE0F|\\u2B55\\uFE0F|\\u3030\\uFE0F|\\u303D\\uFE0F|\\u3297\\uFE0F|\\u3299\\uFE0F|\\u271D\\uFE0F|\\u2328\\uFE0F|\\u270D\\uFE0F|\\u23ED\\uFE0F|\\u23EE\\uFE0F|\\u23EF\\uFE0F|\\u23F1\\uFE0F|\\u23F2\\uFE0F|\\u23F8\\uFE0F|\\u23F9\\uFE0F|\\u23FA\\uFE0F|\\u2602\\uFE0F|\\u2603\\uFE0F|\\u2604\\uFE0F|\\u2618\\uFE0F|\\u2620\\uFE0F|\\u2622\\uFE0F|\\u2623\\uFE0F|\\u2626\\uFE0F|\\u262A\\uFE0F|\\u262E\\uFE0F|\\u262F\\uFE0F|\\u2638\\uFE0F|\\u2639\\uFE0F|\\u2692\\uFE0F|\\u2694\\uFE0F|\\u2696\\uFE0F|\\u2697\\uFE0F|\\u2699\\uFE0F|\\u269B\\uFE0F|\\u269C\\uFE0F|\\u26B0\\uFE0F|\\u26B1\\uFE0F|\\u26C8\\uFE0F|\\u26CF\\uFE0F|\\u26D1\\uFE0F|\\u26D3\\uFE0F|\\u26E9\\uFE0F|\\u26F0\\uFE0F|\\u26F1\\uFE0F|\\u26F4\\uFE0F|\\u26F7\\uFE0F|\\u26F8\\uFE0F|\\u26F9\\uFE0F|\\u2721\\uFE0F|\\u2763\\uFE0F|\\uD83C\\uDCCF|\\uD83C\\uDD70|\\uD83C\\uDD71|\\uD83C\\uDD7E|\\uD83C\\uDD8E|\\uD83C\\uDD91|\\uD83C\\uDD92|\\uD83C\\uDD93|\\uD83C\\uDD94|\\uD83C\\uDD95|\\uD83C\\uDD96|\\uD83C\\uDD97|\\uD83C\\uDD98|\\uD83C\\uDD99|\\uD83C\\uDD9A|\\uD83C\\uDE01|\\uD83C\\uDE32|\\uD83C\\uDE33|\\uD83C\\uDE34|\\uD83C\\uDE35|\\uD83C\\uDE36|\\uD83C\\uDE38|\\uD83C\\uDE39|\\uD83C\\uDE3A|\\uD83C\\uDE50|\\uD83C\\uDE51|\\uD83C\\uDF00|\\uD83C\\uDF01|\\uD83C\\uDF02|\\uD83C\\uDF03|\\uD83C\\uDF04|\\uD83C\\uDF05|\\uD83C\\uDF06|\\uD83C\\uDF07|\\uD83C\\uDF08|\\uD83C\\uDF09|\\uD83C\\uDF0A|\\uD83C\\uDF0B|\\uD83C\\uDF0C|\\uD83C\\uDF0F|\\uD83C\\uDF11|\\uD83C\\uDF13|\\uD83C\\uDF14|\\uD83C\\uDF15|\\uD83C\\uDF19|\\uD83C\\uDF1B|\\uD83C\\uDF1F|\\uD83C\\uDF20|\\uD83C\\uDF30|\\uD83C\\uDF31|\\uD83C\\uDF34|\\uD83C\\uDF35|\\uD83C\\uDF37|\\uD83C\\uDF38|\\uD83C\\uDF39|\\uD83C\\uDF3A|\\uD83C\\uDF3B|\\uD83C\\uDF3C|\\uD83C\\uDF3D|\\uD83C\\uDF3E|\\uD83C\\uDF3F|\\uD83C\\uDF40|\\uD83C\\uDF41|\\uD83C\\uDF42|\\uD83C\\uDF43|\\uD83C\\uDF44|\\uD83C\\uDF45|\\uD83C\\uDF46|\\uD83C\\uDF47|\\uD83C\\uDF48|\\uD83C\\uDF49|\\uD83C\\uDF4A|\\uD83C\\uDF4C|\\uD83C\\uDF4D|\\uD83C\\uDF4E|\\uD83C\\uDF4F|\\uD83C\\uDF51|\\uD83C\\uDF52|\\uD83C\\uDF53|\\uD83C\\uDF54|\\uD83C\\uDF55|\\uD83C\\uDF56|\\uD83C\\uDF57|\\uD83C\\uDF58|\\uD83C\\uDF59|\\uD83C\\uDF5A|\\uD83C\\uDF5B|\\uD83C\\uDF5C|\\uD83C\\uDF5D|\\uD83C\\uDF5E|\\uD83C\\uDF5F|\\uD83C\\uDF60|\\uD83C\\uDF61|\\uD83C\\uDF62|\\uD83C\\uDF63|\\uD83C\\uDF64|\\uD83C\\uDF65|\\uD83C\\uDF66|\\uD83C\\uDF67|\\uD83C\\uDF68|\\uD83C\\uDF69|\\uD83C\\uDF6A|\\uD83C\\uDF6B|\\uD83C\\uDF6C|\\uD83C\\uDF6D|\\uD83C\\uDF6E|\\uD83C\\uDF6F|\\uD83C\\uDF70|\\uD83C\\uDF71|\\uD83C\\uDF72|\\uD83C\\uDF73|\\uD83C\\uDF74|\\uD83C\\uDF75|\\uD83C\\uDF76|\\uD83C\\uDF77|\\uD83C\\uDF78|\\uD83C\\uDF79|\\uD83C\\uDF7A|\\uD83C\\uDF7B|\\uD83C\\uDF80|\\uD83C\\uDF81|\\uD83C\\uDF82|\\uD83C\\uDF83|\\uD83C\\uDF84|\\uD83C\\uDF85|\\uD83C\\uDF86|\\uD83C\\uDF87|\\uD83C\\uDF88|\\uD83C\\uDF89|\\uD83C\\uDF8A|\\uD83C\\uDF8B|\\uD83C\\uDF8C|\\uD83C\\uDF8D|\\uD83C\\uDF8E|\\uD83C\\uDF8F|\\uD83C\\uDF90|\\uD83C\\uDF91|\\uD83C\\uDF92|\\uD83C\\uDF93|\\uD83C\\uDFA0|\\uD83C\\uDFA1|\\uD83C\\uDFA2|\\uD83C\\uDFA3|\\uD83C\\uDFA4|\\uD83C\\uDFA5|\\uD83C\\uDFA6|\\uD83C\\uDFA7|\\uD83C\\uDFA8|\\uD83C\\uDFA9|\\uD83C\\uDFAA|\\uD83C\\uDFAB|\\uD83C\\uDFAC|\\uD83C\\uDFAD|\\uD83C\\uDFAE|\\uD83C\\uDFAF|\\uD83C\\uDFB0|\\uD83C\\uDFB1|\\uD83C\\uDFB2|\\uD83C\\uDFB3|\\uD83C\\uDFB4|\\uD83C\\uDFB5|\\uD83C\\uDFB6|\\uD83C\\uDFB7|\\uD83C\\uDFB8|\\uD83C\\uDFB9|\\uD83C\\uDFBA|\\uD83C\\uDFBB|\\uD83C\\uDFBC|\\uD83C\\uDFBD|\\uD83C\\uDFBE|\\uD83C\\uDFBF|\\uD83C\\uDFC0|\\uD83C\\uDFC1|\\uD83C\\uDFC2|\\uD83C\\uDFC3|\\uD83C\\uDFC4|\\uD83C\\uDFC6|\\uD83C\\uDFC8|\\uD83C\\uDFCA|\\uD83C\\uDFE0|\\uD83D\\uDDB1|\\uD83C\\uDFE2|\\uD83C\\uDFE3|\\uD83C\\uDFE5|\\uD83C\\uDFE6|\\uD83C\\uDFE7|\\uD83C\\uDFE8|\\uD83C\\uDFE9|\\uD83C\\uDFEA|\\uD83C\\uDFEB|\\uD83C\\uDFEC|\\uD83C\\uDFED|\\uD83C\\uDFEE|\\uD83C\\uDFEF|\\uD83C\\uDFF0|\\uD83D\\uDC0C|\\uD83D\\uDC0D|\\uD83D\\uDC0E|\\uD83D\\uDC11|\\uD83D\\uDC12|\\uD83D\\uDC14|\\uD83D\\uDC17|\\uD83D\\uDC18|\\uD83D\\uDC19|\\uD83D\\uDC1A|\\uD83D\\uDC1B|\\uD83D\\uDC1C|\\uD83D\\uDC1D|\\uD83D\\uDC1E|\\uD83D\\uDC1F|\\uD83D\\uDC20|\\uD83D\\uDC21|\\uD83D\\uDC22|\\uD83D\\uDC23|\\uD83D\\uDC24|\\uD83D\\uDC25|\\uD83D\\uDC26|\\uD83D\\uDC27|\\uD83D\\uDC28|\\uD83D\\uDC29|\\uD83D\\uDC2B|\\uD83D\\uDC2C|\\uD83D\\uDC2D|\\uD83D\\uDC2E|\\uD83D\\uDC2F|\\uD83D\\uDC30|\\uD83D\\uDC31|\\uD83D\\uDC32|\\uD83D\\uDC33|\\uD83D\\uDC34|\\uD83D\\uDC35|\\uD83D\\uDC36|\\uD83D\\uDC37|\\uD83D\\uDC38|\\uD83D\\uDC39|\\uD83D\\uDC3A|\\uD83D\\uDC3B|\\uD83D\\uDC3C|\\uD83D\\uDC3D|\\uD83D\\uDC3E|\\uD83D\\uDC40|\\uD83D\\uDC42|\\uD83D\\uDC43|\\uD83D\\uDC44|\\uD83D\\uDC45|\\uD83D\\uDC46|\\uD83D\\uDC47|\\uD83D\\uDC48|\\uD83D\\uDC49|\\uD83D\\uDC4A|\\uD83D\\uDC4B|\\uD83D\\uDC4C|\\uD83D\\uDC4D|\\uD83D\\uDC4E|\\uD83D\\uDC4F|\\uD83D\\uDC50|\\uD83D\\uDC51|\\uD83D\\uDC52|\\uD83D\\uDC53|\\uD83D\\uDC54|\\uD83D\\uDC55|\\uD83D\\uDC56|\\uD83D\\uDC57|\\uD83D\\uDC58|\\uD83D\\uDC59|\\uD83D\\uDC5A|\\uD83D\\uDC5B|\\uD83D\\uDC5C|\\uD83D\\uDC5D|\\uD83D\\uDC5E|\\uD83D\\uDC5F|\\uD83D\\uDC60|\\uD83D\\uDC61|\\uD83D\\uDC62|\\uD83D\\uDC63|\\uD83D\\uDC64|\\uD83D\\uDC66|\\uD83D\\uDC67|\\uD83D\\uDC68|\\uD83D\\uDC69|\\uD83D\\uDC6A|\\uD83D\\uDC6B|\\uD83D\\uDC6E|\\uD83D\\uDC6F|\\uD83D\\uDC70|\\uD83D\\uDC71|\\uD83D\\uDC72|\\uD83D\\uDC73|\\uD83D\\uDC74|\\uD83D\\uDC75|\\uD83D\\uDC76|\\uD83D\\uDC77|\\uD83D\\uDC78|\\uD83D\\uDC79|\\uD83D\\uDC7A|\\uD83D\\uDC7B|\\uD83D\\uDC7C|\\uD83D\\uDC7D|\\uD83D\\uDC7E|\\uD83D\\uDC7F|\\uD83D\\uDC80|\\uD83D\\uDCC7|\\uD83D\\uDC81|\\uD83D\\uDC82|\\uD83D\\uDC83|\\uD83D\\uDC84|\\uD83D\\uDC85|\\uD83D\\uDCD2|\\uD83D\\uDC86|\\uD83D\\uDCD3|\\uD83D\\uDC87|\\uD83D\\uDCD4|\\uD83D\\uDC88|\\uD83D\\uDCD5|\\uD83D\\uDC89|\\uD83D\\uDCD6|\\uD83D\\uDC8A|\\uD83D\\uDCD7|\\uD83D\\uDC8B|\\uD83D\\uDCD8|\\uD83D\\uDC8C|\\uD83D\\uDCD9|\\uD83D\\uDC8D|\\uD83D\\uDCDA|\\uD83D\\uDC8E|\\uD83D\\uDCDB|\\uD83D\\uDC8F|\\uD83D\\uDCDC|\\uD83D\\uDC90|\\uD83D\\uDCDD|\\uD83D\\uDC91|\\uD83D\\uDCDE|\\uD83D\\uDC92|\\uD83D\\uDCDF|\\uD83D\\uDCE0|\\uD83D\\uDC93|\\uD83D\\uDCE1|\\uD83D\\uDCE2|\\uD83D\\uDC94|\\uD83D\\uDCE3|\\uD83D\\uDCE4|\\uD83D\\uDC95|\\uD83D\\uDCE5|\\uD83D\\uDCE6|\\uD83D\\uDC96|\\uD83D\\uDCE7|\\uD83D\\uDCE8|\\uD83D\\uDC97|\\uD83D\\uDCE9|\\uD83D\\uDCEA|\\uD83D\\uDC98|\\uD83D\\uDCEB|\\uD83D\\uDCEE|\\uD83D\\uDC99|\\uD83D\\uDCF0|\\uD83D\\uDCF1|\\uD83D\\uDC9A|\\uD83D\\uDCF2|\\uD83D\\uDCF3|\\uD83D\\uDC9B|\\uD83D\\uDCF4|\\uD83D\\uDCF6|\\uD83D\\uDC9C|\\uD83D\\uDCF7|\\uD83D\\uDCF9|\\uD83D\\uDC9D|\\uD83D\\uDCFA|\\uD83D\\uDCFB|\\uD83D\\uDC9E|\\uD83D\\uDCFC|\\uD83D\\uDD03|\\uD83D\\uDC9F|\\uD83D\\uDD0A|\\uD83D\\uDD0B|\\uD83D\\uDCA0|\\uD83D\\uDD0C|\\uD83D\\uDD0D|\\uD83D\\uDCA1|\\uD83D\\uDD0E|\\uD83D\\uDD0F|\\uD83D\\uDCA2|\\uD83D\\uDD10|\\uD83D\\uDD11|\\uD83D\\uDCA3|\\uD83D\\uDD12|\\uD83D\\uDD13|\\uD83D\\uDCA4|\\uD83D\\uDD14|\\uD83D\\uDD16|\\uD83D\\uDCA5|\\uD83D\\uDD17|\\uD83D\\uDD18|\\uD83D\\uDCA6|\\uD83D\\uDD19|\\uD83D\\uDD1A|\\uD83D\\uDCA7|\\uD83D\\uDD1B|\\uD83D\\uDD1C|\\uD83D\\uDCA8|\\uD83D\\uDD1D|\\uD83D\\uDD1E|\\uD83D\\uDCA9|\\uD83D\\uDD1F|\\uD83D\\uDCAA|\\uD83D\\uDD20|\\uD83D\\uDD21|\\uD83D\\uDCAB|\\uD83D\\uDD22|\\uD83D\\uDD23|\\uD83D\\uDCAC|\\uD83D\\uDD24|\\uD83D\\uDD25|\\uD83D\\uDCAE|\\uD83D\\uDD26|\\uD83D\\uDD27|\\uD83D\\uDCAF|\\uD83D\\uDD28|\\uD83D\\uDD29|\\uD83D\\uDCB0|\\uD83D\\uDD2A|\\uD83D\\uDD2B|\\uD83D\\uDCB1|\\uD83D\\uDD2E|\\uD83D\\uDCB2|\\uD83D\\uDD2F|\\uD83D\\uDCB3|\\uD83D\\uDD30|\\uD83D\\uDD31|\\uD83D\\uDCB4|\\uD83D\\uDD32|\\uD83D\\uDD33|\\uD83D\\uDCB5|\\uD83D\\uDD34|\\uD83D\\uDD35|\\uD83D\\uDCB8|\\uD83D\\uDD36|\\uD83D\\uDD37|\\uD83D\\uDCB9|\\uD83D\\uDD38|\\uD83D\\uDD39|\\uD83D\\uDCBA|\\uD83D\\uDD3A|\\uD83D\\uDD3B|\\uD83D\\uDCBB|\\uD83D\\uDD3C|\\uD83D\\uDCBC|\\uD83D\\uDD3D|\\uD83D\\uDD50|\\uD83D\\uDCBD|\\uD83D\\uDD51|\\uD83D\\uDCBE|\\uD83D\\uDD52|\\uD83D\\uDCBF|\\uD83D\\uDD53|\\uD83D\\uDCC0|\\uD83D\\uDD54|\\uD83D\\uDD55|\\uD83D\\uDCC1|\\uD83D\\uDD56|\\uD83D\\uDD57|\\uD83D\\uDCC2|\\uD83D\\uDD58|\\uD83D\\uDD59|\\uD83D\\uDCC3|\\uD83D\\uDD5A|\\uD83D\\uDD5B|\\uD83D\\uDCC4|\\uD83D\\uDDFB|\\uD83D\\uDDFC|\\uD83D\\uDCC5|\\uD83D\\uDDFD|\\uD83D\\uDDFE|\\uD83D\\uDCC6|\\uD83D\\uDDFF|\\uD83D\\uDE01|\\uD83D\\uDE02|\\uD83D\\uDE03|\\uD83D\\uDCC8|\\uD83D\\uDE04|\\uD83D\\uDE05|\\uD83D\\uDCC9|\\uD83D\\uDE06|\\uD83D\\uDE09|\\uD83D\\uDCCA|\\uD83D\\uDE0A|\\uD83D\\uDE0B|\\uD83D\\uDCCB|\\uD83D\\uDE0C|\\uD83D\\uDE0D|\\uD83D\\uDCCC|\\uD83D\\uDE0F|\\uD83D\\uDE12|\\uD83D\\uDCCD|\\uD83D\\uDE13|\\uD83D\\uDE14|\\uD83D\\uDCCE|\\uD83D\\uDE16|\\uD83D\\uDE18|\\uD83D\\uDCCF|\\uD83D\\uDE1A|\\uD83D\\uDE1C|\\uD83D\\uDCD0|\\uD83D\\uDE1D|\\uD83D\\uDE1E|\\uD83D\\uDCD1|\\uD83D\\uDE20|\\uD83D\\uDE21|\\uD83D\\uDE22|\\uD83D\\uDE23|\\uD83D\\uDE24|\\uD83D\\uDE25|\\uD83D\\uDE28|\\uD83D\\uDE29|\\uD83D\\uDE2A|\\uD83D\\uDE2B|\\uD83D\\uDE2D|\\uD83D\\uDE30|\\uD83D\\uDE31|\\uD83D\\uDE32|\\uD83D\\uDE33|\\uD83D\\uDE35|\\uD83D\\uDE37|\\uD83D\\uDE38|\\uD83D\\uDE39|\\uD83D\\uDE3A|\\uD83D\\uDE3B|\\uD83D\\uDE3C|\\uD83D\\uDE3D|\\uD83D\\uDE3E|\\uD83D\\uDE3F|\\uD83D\\uDE40|\\uD83D\\uDE45|\\uD83D\\uDE46|\\uD83D\\uDE47|\\uD83D\\uDE48|\\uD83D\\uDE49|\\uD83D\\uDE4A|\\uD83D\\uDE4B|\\uD83D\\uDE4C|\\uD83D\\uDE4D|\\uD83D\\uDE4E|\\uD83D\\uDE4F|\\uD83D\\uDE80|\\uD83D\\uDE83|\\uD83D\\uDE84|\\uD83D\\uDE85|\\uD83D\\uDE87|\\uD83D\\uDE89|\\uD83D\\uDE8C|\\uD83D\\uDE8F|\\uD83D\\uDE91|\\uD83D\\uDE92|\\uD83D\\uDE93|\\uD83D\\uDE95|\\uD83D\\uDE97|\\uD83D\\uDE99|\\uD83D\\uDE9A|\\uD83D\\uDEA2|\\uD83D\\uDEA4|\\uD83D\\uDEA5|\\uD83D\\uDEA7|\\uD83D\\uDEA8|\\uD83D\\uDEA9|\\uD83D\\uDEAA|\\uD83D\\uDEAB|\\uD83D\\uDEAC|\\uD83D\\uDEAD|\\uD83D\\uDEB2|\\uD83D\\uDEB6|\\uD83D\\uDEB9|\\uD83D\\uDEBA|\\uD83D\\uDEBB|\\uD83D\\uDEBC|\\uD83D\\uDEBD|\\uD83D\\uDEBE|\\uD83D\\uDEC0|\\uD83E\\uDD18|\\uD83D\\uDE00|\\uD83D\\uDE07|\\uD83D\\uDE08|\\uD83D\\uDE0E|\\uD83D\\uDE10|\\uD83D\\uDE11|\\uD83D\\uDE15|\\uD83D\\uDE17|\\uD83D\\uDE19|\\uD83D\\uDE1B|\\uD83D\\uDE1F|\\uD83D\\uDE26|\\uD83D\\uDE27|\\uD83D\\uDE2C|\\uD83D\\uDE2E|\\uD83D\\uDE2F|\\uD83D\\uDE34|\\uD83D\\uDE36|\\uD83D\\uDE81|\\uD83D\\uDE82|\\uD83D\\uDE86|\\uD83D\\uDE88|\\uD83D\\uDE8A|\\uD83D\\uDE8D|\\uD83D\\uDE8E|\\uD83D\\uDE90|\\uD83D\\uDE94|\\uD83D\\uDE96|\\uD83D\\uDE98|\\uD83D\\uDE9B|\\uD83D\\uDE9C|\\uD83D\\uDE9D|\\uD83D\\uDE9E|\\uD83D\\uDE9F|\\uD83D\\uDEA0|\\uD83D\\uDEA1|\\uD83D\\uDEA3|\\uD83D\\uDEA6|\\uD83D\\uDEAE|\\uD83D\\uDEAF|\\uD83D\\uDEB0|\\uD83D\\uDEB1|\\uD83D\\uDEB3|\\uD83D\\uDEB4|\\uD83D\\uDEB5|\\uD83D\\uDEB7|\\uD83D\\uDEB8|\\uD83D\\uDEBF|\\uD83D\\uDEC1|\\uD83D\\uDEC2|\\uD83D\\uDEC3|\\uD83D\\uDEC4|\\uD83D\\uDEC5|\\uD83C\\uDF0D|\\uD83C\\uDF0E|\\uD83C\\uDF10|\\uD83C\\uDF12|\\uD83C\\uDF16|\\uD83C\\uDF17|\\uD83C\\uDF18|\\uD83C\\uDF1A|\\uD83C\\uDF1C|\\uD83C\\uDF1D|\\uD83C\\uDF1E|\\uD83C\\uDF32|\\uD83C\\uDF33|\\uD83C\\uDF4B|\\uD83C\\uDF50|\\uD83C\\uDF7C|\\uD83C\\uDFC7|\\uD83C\\uDFC9|\\uD83C\\uDFE4|\\uD83D\\uDC00|\\uD83D\\uDC01|\\uD83D\\uDC02|\\uD83D\\uDC03|\\uD83D\\uDC04|\\uD83D\\uDC05|\\uD83D\\uDC06|\\uD83D\\uDC07|\\uD83D\\uDC08|\\uD83D\\uDC09|\\uD83D\\uDC0A|\\uD83D\\uDC0B|\\uD83D\\uDC0F|\\uD83D\\uDC10|\\uD83D\\uDC13|\\uD83D\\uDC15|\\uD83D\\uDC16|\\uD83D\\uDC2A|\\uD83D\\uDC65|\\uD83D\\uDC6C|\\uD83D\\uDC6D|\\uD83D\\uDCAD|\\uD83D\\uDCB6|\\uD83D\\uDCB7|\\uD83D\\uDCEC|\\uD83D\\uDCED|\\uD83D\\uDCEF|\\uD83D\\uDCF5|\\uD83D\\uDD00|\\uD83D\\uDD01|\\uD83D\\uDD02|\\uD83D\\uDD04|\\uD83D\\uDD05|\\uD83D\\uDD06|\\uD83D\\uDD07|\\uD83D\\uDD09|\\uD83D\\uDD15|\\uD83D\\uDD2C|\\uD83D\\uDD2D|\\uD83D\\uDD5C|\\uD83D\\uDD5D|\\uD83D\\uDD5E|\\uD83D\\uDD5F|\\uD83D\\uDD60|\\uD83D\\uDD61|\\uD83D\\uDD62|\\uD83D\\uDD63|\\uD83D\\uDD64|\\uD83D\\uDD65|\\uD83D\\uDD66|\\uD83D\\uDD67|\\uD83D\\uDD08|\\uD83D\\uDE8B|\\uD83C\\uDFC5|\\uD83C\\uDFF4|\\uD83D\\uDCF8|\\uD83D\\uDECC|\\uD83D\\uDD95|\\uD83D\\uDD96|\\uD83D\\uDE41|\\uD83D\\uDE42|\\uD83D\\uDEEB|\\uD83D\\uDEEC|\\uD83C\\uDFFB|\\uD83C\\uDFFC|\\uD83C\\uDFFD|\\uD83C\\uDFFE|\\uD83C\\uDFFF|\\uD83D\\uDE43|\\uD83E\\uDD11|\\uD83E\\uDD13|\\uD83E\\uDD17|\\uD83D\\uDE44|\\uD83E\\uDD14|\\uD83E\\uDD10|\\uD83E\\uDD12|\\uD83E\\uDD15|\\uD83E\\uDD16|\\uD83E\\uDD81|\\uD83E\\uDD84|\\uD83E\\uDD82|\\uD83E\\uDD80|\\uD83E\\uDD83|\\uD83E\\uDDC0|\\uD83C\\uDF2D|\\uD83C\\uDF2E|\\uD83C\\uDF2F|\\uD83C\\uDF7F|\\uD83C\\uDF7E|\\uD83C\\uDFF9|\\uD83C\\uDFFA|\\uD83D\\uDED0|\\uD83D\\uDD4B|\\uD83D\\uDD4C|\\uD83D\\uDD4D|\\uD83D\\uDD4E|\\uD83D\\uDCFF|\\uD83C\\uDFCF|\\uD83C\\uDFD0|\\uD83C\\uDFD1|\\uD83C\\uDFD2|\\uD83C\\uDFD3|\\uD83C\\uDFF8|\\uD83C\\uDF26|\\uD83C\\uDF25|\\uD83C\\uDF24|\\uD83D\\uDEF3|\\uD83D\\uDEE9|\\uD83D\\uDEE5|\\uD83D\\uDEE4|\\uD83D\\uDEE3|\\uD83D\\uDECF|\\uD83D\\uDECE|\\uD83D\\uDECD|\\uD83D\\uDECB|\\uD83C\\uDFDF|\\uD83C\\uDFDE|\\uD83C\\uDFDD|\\uD83C\\uDFDC|\\uD83C\\uDFDB|\\uD83C\\uDFDA|\\uD83C\\uDFD9|\\uD83C\\uDFD8|\\uD83C\\uDFD7|\\uD83C\\uDFD6|\\uD83C\\uDFD5|\\uD83C\\uDFD4|\\uD83D\\uDD90|\\uD83D\\uDD75|\\uD83D\\uDD74|\\uD83D\\uDC41|\\uD83C\\uDF7D|\\uD83D\\uDEF0|\\uD83D\\uDEE2|\\uD83D\\uDEE1|\\uD83D\\uDEE0|\\uD83D\\uDDFA|\\uD83D\\uDDF3|\\uD83D\\uDDEF|\\uD83D\\uDDE3|\\uD83D\\uDDE1|\\uD83D\\uDDDE|\\uD83D\\uDDDD|\\uD83D\\uDDDC|\\uD83D\\uDDD3|\\uD83D\\uDDD2|\\uD83D\\uDDD1|\\uD83D\\uDDC4|\\uD83D\\uDDC3|\\uD83D\\uDDC2|\\uD83D\\uDDBC|\\uD83D\\uDDB2|\\uD83D\\uDDA8|\\uD83D\\uDDA5|\\uD83D\\uDD8D|\\uD83D\\uDD8C|\\uD83D\\uDD8B|\\uD83D\\uDD8A|\\uD83D\\uDD87|\\uD83D\\uDD79|\\uD83D\\uDD76|\\uD83D\\uDD73|\\uD83D\\uDD70|\\uD83D\\uDD6F|\\uD83D\\uDD4A|\\uD83D\\uDD49|\\uD83D\\uDCFD|\\uD83C\\uDFF7|\\uD83C\\uDFF5|\\uD83C\\uDFF3|\\uD83C\\uDF9B|\\uD83C\\uDF9A|\\uD83C\\uDF99|\\uD83C\\uDF21|\\uD83D\\uDD78|\\uD83D\\uDD77|\\uD83D\\uDC3F|\\uD83C\\uDF2C|\\uD83C\\uDF2B|\\uD83C\\uDF2A|\\uD83C\\uDF29|\\uD83C\\uDF28|\\uD83C\\uDF27|\\uD83C\\uDF36|\\uD83C\\uDF97|\\uD83C\\uDF96|\\uD83C\\uDFCE|\\uD83C\\uDFCD|\\uD83C\\uDFCC|\\uD83C\\uDFCB|\\uD83C\\uDF9F|\\uD83C\\uDF9E|\\uD83C\\uDE37|\\uD83C\\uDE2F|\\uD83C\\uDE1A|\\uD83C\\uDE02|\\uD83C\\uDD7F|\\uD83C\\uDC04|\\uD83C\\uDFE1|\\u2714|\\u2733|\\u2734|\\u2744|\\u2747|\\u2757|\\u2764|\\u27A1|\\u2934|\\u2935|\\u2B05|\\u2B06|\\u2B07|\\u2B1B|\\u2B1C|\\u2B50|\\u2B55|\\u3030|\\u303D|\\u3297|\\u3299|\\u2712|\\u270F|\\u270C|\\u2709|\\u2708|\\u2702|\\u26FD|\\u26FA|\\u26F5|\\u26F3|\\u26F2|\\u26EA|\\u26D4|\\u26C5|\\u26C4|\\u26BE|\\u26BD|\\u26AB|\\u26AA|\\u26A1|\\u26A0|\\u2693|\\u267F|\\u267B|\\u2668|\\u2666|\\u2665|\\u2663|\\u2660|\\u2653|\\u2652|\\u2651|\\u271D|\\u2650|\\u264F|\\u264E|\\u264D|\\u264C|\\u264B|\\u264A|\\u2649|\\u2648|\\u263A|\\u261D|\\u2615|\\u2614|\\u2611|\\u2328|\\u260E|\\u2601|\\u2600|\\u25FE|\\u25FD|\\u25FC|\\u25FB|\\u25C0|\\u25B6|\\u25AB|\\u25AA|\\u24C2|\\u2716|\\u231A|\\u21AA|\\u21A9|\\u2199|\\u2198|\\u2197|\\u2196|\\u2195|\\u2194|\\u2139|\\u2122|\\u270D|\\u2049|\\u203C|\\u00AE|\\u00A9|\\u27BF|\\u27B0|\\u2797|\\u2796|\\u2795|\\u2755|\\u2754|\\u2753|\\u274E|\\u274C|\\u2728|\\u270B|\\u270A|\\u2705|\\u26CE|\\u23F3|\\u23F0|\\u23EC|\\u23ED|\\u23EE|\\u23EF|\\u23F1|\\u23F2|\\u23F8|\\u23F9|\\u23FA|\\u2602|\\u2603|\\u2604|\\u2618|\\u2620|\\u2622|\\u2623|\\u2626|\\u262A|\\u262E|\\u262F|\\u2638|\\u2639|\\u2692|\\u2694|\\u2696|\\u2697|\\u2699|\\u269B|\\u269C|\\u26B0|\\u26B1|\\u26C8|\\u26CF|\\u26D1|\\u26D3|\\u26E9|\\u26F0|\\u26F1|\\u26F4|\\u26F7|\\u26F8|\\u26F9|\\u2721|\\u2763|\\u23EB|\\u23EA|\\u23E9|\\u231B)",
|
||
f.jsEscapeMap={"👩❤️💋👩":"1f469-2764-1f48b-1f469","👨❤️💋👨":"1f468-2764-1f48b-1f468","👨👨👦👦":"1f468-1f468-1f466-1f466","👨👨👧👦":"1f468-1f468-1f467-1f466","👨👨👧👧":"1f468-1f468-1f467-1f467","👨👩👦👦":"1f468-1f469-1f466-1f466","👨👩👧👦":"1f468-1f469-1f467-1f466","👨👩👧👧":"1f468-1f469-1f467-1f467","👩👩👦👦":"1f469-1f469-1f466-1f466","👩👩👧👦":"1f469-1f469-1f467-1f466","👩👩👧👧":"1f469-1f469-1f467-1f467","👩❤️👩":"1f469-2764-1f469","👨❤️👨":"1f468-2764-1f468","👨👨👦":"1f468-1f468-1f466","👨👨👧":"1f468-1f468-1f467","👨👩👧":"1f468-1f469-1f467","👩👩👦":"1f469-1f469-1f466","👩👩👧":"1f469-1f469-1f467","👁🗨":"1f441-1f5e8","#️⃣":"0023-20e3","0️⃣":"0030-20e3","1️⃣":"0031-20e3","2️⃣":"0032-20e3","3️⃣":"0033-20e3","4️⃣":"0034-20e3","5️⃣":"0035-20e3","6️⃣":"0036-20e3","7️⃣":"0037-20e3","8️⃣":"0038-20e3","9️⃣":"0039-20e3","*️⃣":"002a-20e3","🤘🏿":"1f918-1f3ff","🤘🏾":"1f918-1f3fe","🤘🏽":"1f918-1f3fd","🤘🏼":"1f918-1f3fc","🤘🏻":"1f918-1f3fb","🛀🏿":"1f6c0-1f3ff","🛀🏾":"1f6c0-1f3fe","🛀🏽":"1f6c0-1f3fd","🛀🏼":"1f6c0-1f3fc","🛀🏻":"1f6c0-1f3fb","🚶🏿":"1f6b6-1f3ff","🚶🏾":"1f6b6-1f3fe","🚶🏽":"1f6b6-1f3fd","🚶🏼":"1f6b6-1f3fc","🚶🏻":"1f6b6-1f3fb","🚵🏿":"1f6b5-1f3ff","🚵🏾":"1f6b5-1f3fe","🚵🏽":"1f6b5-1f3fd","🚵🏼":"1f6b5-1f3fc","🚵🏻":"1f6b5-1f3fb","🚴🏿":"1f6b4-1f3ff","🚴🏾":"1f6b4-1f3fe","🚴🏽":"1f6b4-1f3fd","🚴🏼":"1f6b4-1f3fc","🚴🏻":"1f6b4-1f3fb","🚣🏿":"1f6a3-1f3ff","🚣🏾":"1f6a3-1f3fe","🚣🏽":"1f6a3-1f3fd","🚣🏼":"1f6a3-1f3fc","🚣🏻":"1f6a3-1f3fb","🙏🏿":"1f64f-1f3ff","🙏🏾":"1f64f-1f3fe","🙏🏽":"1f64f-1f3fd","🙏🏼":"1f64f-1f3fc","🙏🏻":"1f64f-1f3fb","🙎🏿":"1f64e-1f3ff","🙎🏾":"1f64e-1f3fe","🙎🏽":"1f64e-1f3fd","🙎🏼":"1f64e-1f3fc","🙎🏻":"1f64e-1f3fb","🙍🏿":"1f64d-1f3ff","🙍🏾":"1f64d-1f3fe","🙍🏽":"1f64d-1f3fd","🙍🏼":"1f64d-1f3fc","🙍🏻":"1f64d-1f3fb","🙌🏿":"1f64c-1f3ff","🙌🏾":"1f64c-1f3fe","🙌🏽":"1f64c-1f3fd","🙌🏼":"1f64c-1f3fc","🙌🏻":"1f64c-1f3fb","🙋🏿":"1f64b-1f3ff","🙋🏾":"1f64b-1f3fe","🙋🏽":"1f64b-1f3fd","🙋🏼":"1f64b-1f3fc","🙋🏻":"1f64b-1f3fb","🙇🏿":"1f647-1f3ff","🙇🏾":"1f647-1f3fe","🙇🏽":"1f647-1f3fd","🙇🏼":"1f647-1f3fc","🙇🏻":"1f647-1f3fb","🙆🏿":"1f646-1f3ff","🙆🏾":"1f646-1f3fe","🙆🏽":"1f646-1f3fd","🙆🏼":"1f646-1f3fc","🙆🏻":"1f646-1f3fb","🙅🏿":"1f645-1f3ff","🙅🏾":"1f645-1f3fe","🙅🏽":"1f645-1f3fd","🙅🏼":"1f645-1f3fc","🙅🏻":"1f645-1f3fb","🖖🏿":"1f596-1f3ff","🖖🏾":"1f596-1f3fe","🖖🏽":"1f596-1f3fd","🖖🏼":"1f596-1f3fc","🖖🏻":"1f596-1f3fb","🖕🏿":"1f595-1f3ff","🖕🏾":"1f595-1f3fe","🖕🏽":"1f595-1f3fd","🖕🏼":"1f595-1f3fc","🖕🏻":"1f595-1f3fb","🖐🏿":"1f590-1f3ff","🖐🏾":"1f590-1f3fe","🖐🏽":"1f590-1f3fd","🖐🏼":"1f590-1f3fc","🖐🏻":"1f590-1f3fb","🕵🏿":"1f575-1f3ff","🕵🏾":"1f575-1f3fe","🕵🏽":"1f575-1f3fd","🕵🏼":"1f575-1f3fc","🕵🏻":"1f575-1f3fb","💪🏿":"1f4aa-1f3ff","💪🏾":"1f4aa-1f3fe","💪🏽":"1f4aa-1f3fd","💪🏼":"1f4aa-1f3fc","💪🏻":"1f4aa-1f3fb","💇🏿":"1f487-1f3ff","💇🏾":"1f487-1f3fe","💇🏽":"1f487-1f3fd","💇🏼":"1f487-1f3fc","💇🏻":"1f487-1f3fb","💆🏿":"1f486-1f3ff","💆🏾":"1f486-1f3fe","💆🏽":"1f486-1f3fd","💆🏼":"1f486-1f3fc","💆🏻":"1f486-1f3fb","💅🏿":"1f485-1f3ff","💅🏾":"1f485-1f3fe","💅🏽":"1f485-1f3fd","💅🏼":"1f485-1f3fc","💅🏻":"1f485-1f3fb","💃🏿":"1f483-1f3ff","💃🏾":"1f483-1f3fe","💃🏽":"1f483-1f3fd","💃🏼":"1f483-1f3fc","💃🏻":"1f483-1f3fb","💂🏿":"1f482-1f3ff","💂🏾":"1f482-1f3fe","💂🏽":"1f482-1f3fd","💂🏼":"1f482-1f3fc","💂🏻":"1f482-1f3fb","💁🏿":"1f481-1f3ff","💁🏾":"1f481-1f3fe","💁🏽":"1f481-1f3fd","💁🏼":"1f481-1f3fc","💁🏻":"1f481-1f3fb","👼🏿":"1f47c-1f3ff","👼🏾":"1f47c-1f3fe","👼🏽":"1f47c-1f3fd","👼🏼":"1f47c-1f3fc","👼🏻":"1f47c-1f3fb","👸🏿":"1f478-1f3ff","👸🏾":"1f478-1f3fe","👸🏽":"1f478-1f3fd","👸🏼":"1f478-1f3fc","👸🏻":"1f478-1f3fb","👷🏿":"1f477-1f3ff","👷🏾":"1f477-1f3fe","👷🏽":"1f477-1f3fd","👷🏼":"1f477-1f3fc","👷🏻":"1f477-1f3fb","👶🏿":"1f476-1f3ff","👶🏾":"1f476-1f3fe","👶🏽":"1f476-1f3fd","👶🏼":"1f476-1f3fc","👶🏻":"1f476-1f3fb","👵🏿":"1f475-1f3ff","👵🏾":"1f475-1f3fe","👵🏽":"1f475-1f3fd","👵🏼":"1f475-1f3fc","👵🏻":"1f475-1f3fb","👴🏿":"1f474-1f3ff","👴🏾":"1f474-1f3fe","👴🏽":"1f474-1f3fd","👴🏼":"1f474-1f3fc","👴🏻":"1f474-1f3fb","👳🏿":"1f473-1f3ff","👳🏾":"1f473-1f3fe","👳🏽":"1f473-1f3fd","👳🏼":"1f473-1f3fc","👳🏻":"1f473-1f3fb","👲🏿":"1f472-1f3ff","👲🏾":"1f472-1f3fe","👲🏽":"1f472-1f3fd","👲🏼":"1f472-1f3fc","👲🏻":"1f472-1f3fb","👱🏿":"1f471-1f3ff","👱🏾":"1f471-1f3fe","👱🏽":"1f471-1f3fd","👱🏼":"1f471-1f3fc","👱🏻":"1f471-1f3fb","👰🏿":"1f470-1f3ff","👰🏾":"1f470-1f3fe","👰🏽":"1f470-1f3fd","👰🏼":"1f470-1f3fc","👰🏻":"1f470-1f3fb","👮🏿":"1f46e-1f3ff","👮🏾":"1f46e-1f3fe","👮🏽":"1f46e-1f3fd","👮🏼":"1f46e-1f3fc","👮🏻":"1f46e-1f3fb","👩🏿":"1f469-1f3ff","👩🏾":"1f469-1f3fe","👩🏽":"1f469-1f3fd","👩🏼":"1f469-1f3fc","👩🏻":"1f469-1f3fb","👨🏿":"1f468-1f3ff","👨🏾":"1f468-1f3fe","👨🏽":"1f468-1f3fd","👨🏼":"1f468-1f3fc","👨🏻":"1f468-1f3fb","👧🏿":"1f467-1f3ff","👧🏾":"1f467-1f3fe","👧🏽":"1f467-1f3fd","👧🏼":"1f467-1f3fc","👧🏻":"1f467-1f3fb","👦🏿":"1f466-1f3ff","👦🏾":"1f466-1f3fe","👦🏽":"1f466-1f3fd","👦🏼":"1f466-1f3fc","👦🏻":"1f466-1f3fb","👐🏿":"1f450-1f3ff","👐🏾":"1f450-1f3fe","👐🏽":"1f450-1f3fd","👐🏼":"1f450-1f3fc","👐🏻":"1f450-1f3fb","👏🏿":"1f44f-1f3ff","👏🏾":"1f44f-1f3fe","👏🏽":"1f44f-1f3fd","👏🏼":"1f44f-1f3fc","👏🏻":"1f44f-1f3fb","👎🏿":"1f44e-1f3ff","👎🏾":"1f44e-1f3fe","👎🏽":"1f44e-1f3fd","👎🏼":"1f44e-1f3fc","👎🏻":"1f44e-1f3fb","👍🏿":"1f44d-1f3ff","👍🏾":"1f44d-1f3fe","👍🏽":"1f44d-1f3fd","👍🏼":"1f44d-1f3fc","👍🏻":"1f44d-1f3fb","👌🏿":"1f44c-1f3ff","👌🏾":"1f44c-1f3fe","👌🏽":"1f44c-1f3fd","👌🏼":"1f44c-1f3fc","👌🏻":"1f44c-1f3fb","👋🏿":"1f44b-1f3ff","👋🏾":"1f44b-1f3fe","👋🏽":"1f44b-1f3fd","👋🏼":"1f44b-1f3fc","👋🏻":"1f44b-1f3fb","👊🏿":"1f44a-1f3ff","👊🏾":"1f44a-1f3fe","👊🏽":"1f44a-1f3fd","👊🏼":"1f44a-1f3fc","👊🏻":"1f44a-1f3fb","👉🏿":"1f449-1f3ff","👉🏾":"1f449-1f3fe","👉🏽":"1f449-1f3fd","👉🏼":"1f449-1f3fc","👉🏻":"1f449-1f3fb","👈🏿":"1f448-1f3ff","👈🏾":"1f448-1f3fe","👈🏽":"1f448-1f3fd","👈🏼":"1f448-1f3fc","👈🏻":"1f448-1f3fb","👇🏿":"1f447-1f3ff","👇🏾":"1f447-1f3fe","👇🏽":"1f447-1f3fd","👇🏼":"1f447-1f3fc","👇🏻":"1f447-1f3fb","👆🏿":"1f446-1f3ff","👆🏾":"1f446-1f3fe","👆🏽":"1f446-1f3fd","👆🏼":"1f446-1f3fc","👆🏻":"1f446-1f3fb","👃🏿":"1f443-1f3ff","👃🏾":"1f443-1f3fe","👃🏽":"1f443-1f3fd","👃🏼":"1f443-1f3fc","👃🏻":"1f443-1f3fb","👂🏿":"1f442-1f3ff","👂🏾":"1f442-1f3fe","👂🏽":"1f442-1f3fd","👂🏼":"1f442-1f3fc","👂🏻":"1f442-1f3fb","🏋🏿":"1f3cb-1f3ff","🏋🏾":"1f3cb-1f3fe","🏋🏽":"1f3cb-1f3fd","🏋🏼":"1f3cb-1f3fc","🏋🏻":"1f3cb-1f3fb","🏊🏿":"1f3ca-1f3ff","🏊🏾":"1f3ca-1f3fe","🏊🏽":"1f3ca-1f3fd","🏊🏼":"1f3ca-1f3fc","🏊🏻":"1f3ca-1f3fb","🏇🏿":"1f3c7-1f3ff","🏇🏾":"1f3c7-1f3fe","🏇🏽":"1f3c7-1f3fd","🏇🏼":"1f3c7-1f3fc","🏇🏻":"1f3c7-1f3fb","🏄🏿":"1f3c4-1f3ff","🏄🏾":"1f3c4-1f3fe","🏄🏽":"1f3c4-1f3fd","🏄🏼":"1f3c4-1f3fc","🏄🏻":"1f3c4-1f3fb","🏃🏿":"1f3c3-1f3ff","🏃🏾":"1f3c3-1f3fe","🏃🏽":"1f3c3-1f3fd","🏃🏼":"1f3c3-1f3fc","🏃🏻":"1f3c3-1f3fb","🎅🏿":"1f385-1f3ff","🎅🏾":"1f385-1f3fe","🎅🏽":"1f385-1f3fd","🎅🏼":"1f385-1f3fc","🎅🏻":"1f385-1f3fb","🇿🇼":"1f1ff-1f1fc","🇿🇲":"1f1ff-1f1f2","🇿🇦":"1f1ff-1f1e6","🇾🇹":"1f1fe-1f1f9","🇾🇪":"1f1fe-1f1ea","🇽🇰":"1f1fd-1f1f0","🇼🇸":"1f1fc-1f1f8","🇼🇫":"1f1fc-1f1eb","🇻🇺":"1f1fb-1f1fa","🇻🇳":"1f1fb-1f1f3","🇻🇮":"1f1fb-1f1ee","🇻🇬":"1f1fb-1f1ec","🇻🇪":"1f1fb-1f1ea","🇻🇨":"1f1fb-1f1e8","🇻🇦":"1f1fb-1f1e6","🇺🇿":"1f1fa-1f1ff","🇺🇾":"1f1fa-1f1fe","🇺🇸":"1f1fa-1f1f8","🇺🇲":"1f1fa-1f1f2","🇺🇬":"1f1fa-1f1ec","🇺🇦":"1f1fa-1f1e6","🇹🇿":"1f1f9-1f1ff","🇹🇼":"1f1f9-1f1fc","🇹🇻":"1f1f9-1f1fb","🇹🇹":"1f1f9-1f1f9","🇹🇷":"1f1f9-1f1f7","🇹🇴":"1f1f9-1f1f4","🇹🇳":"1f1f9-1f1f3","🇹🇲":"1f1f9-1f1f2","🇹🇱":"1f1f9-1f1f1","🇹🇰":"1f1f9-1f1f0","🇹🇯":"1f1f9-1f1ef","🇹🇭":"1f1f9-1f1ed","🇹🇬":"1f1f9-1f1ec","🇹🇫":"1f1f9-1f1eb","🇹🇩":"1f1f9-1f1e9","🇹🇨":"1f1f9-1f1e8","🇹🇦":"1f1f9-1f1e6","🇸🇿":"1f1f8-1f1ff","🇸🇾":"1f1f8-1f1fe","🇸🇽":"1f1f8-1f1fd","🇸🇻":"1f1f8-1f1fb","🇸🇹":"1f1f8-1f1f9","🇸🇸":"1f1f8-1f1f8","🇸🇷":"1f1f8-1f1f7","🇸🇴":"1f1f8-1f1f4","🇸🇳":"1f1f8-1f1f3","🇸🇲":"1f1f8-1f1f2","🇸🇱":"1f1f8-1f1f1","🇸🇰":"1f1f8-1f1f0","🇸🇯":"1f1f8-1f1ef","🇸🇮":"1f1f8-1f1ee","🇸🇭":"1f1f8-1f1ed","🇸🇬":"1f1f8-1f1ec","🇸🇪":"1f1f8-1f1ea","🇸🇩":"1f1f8-1f1e9","🇸🇨":"1f1f8-1f1e8","🇸🇧":"1f1f8-1f1e7","🇸🇦":"1f1f8-1f1e6","🇷🇼":"1f1f7-1f1fc","🇷🇺":"1f1f7-1f1fa","🇷🇸":"1f1f7-1f1f8","🇷🇴":"1f1f7-1f1f4","🇷🇪":"1f1f7-1f1ea","🇶🇦":"1f1f6-1f1e6","🇵🇾":"1f1f5-1f1fe","🇵🇼":"1f1f5-1f1fc","🇵🇹":"1f1f5-1f1f9","🇵🇸":"1f1f5-1f1f8","🇵🇷":"1f1f5-1f1f7","🇵🇳":"1f1f5-1f1f3","🇵🇲":"1f1f5-1f1f2","🇵🇱":"1f1f5-1f1f1","🇵🇰":"1f1f5-1f1f0","🇵🇭":"1f1f5-1f1ed","🇵🇬":"1f1f5-1f1ec","🇵🇫":"1f1f5-1f1eb","🇵🇪":"1f1f5-1f1ea","🇵🇦":"1f1f5-1f1e6","🇴🇲":"1f1f4-1f1f2","🇳🇿":"1f1f3-1f1ff","🇳🇺":"1f1f3-1f1fa","🇳🇷":"1f1f3-1f1f7","🇳🇵":"1f1f3-1f1f5","🇳🇴":"1f1f3-1f1f4","🇳🇱":"1f1f3-1f1f1","🇳🇮":"1f1f3-1f1ee","🇳🇬":"1f1f3-1f1ec","🇳🇫":"1f1f3-1f1eb","🇳🇪":"1f1f3-1f1ea","🇳🇨":"1f1f3-1f1e8","🇳🇦":"1f1f3-1f1e6","🇲🇿":"1f1f2-1f1ff","🇲🇾":"1f1f2-1f1fe","🇲🇽":"1f1f2-1f1fd","🇲🇼":"1f1f2-1f1fc","🇲🇻":"1f1f2-1f1fb","🇲🇺":"1f1f2-1f1fa","🇲🇹":"1f1f2-1f1f9","🇲🇸":"1f1f2-1f1f8","🇲🇷":"1f1f2-1f1f7","🇲🇶":"1f1f2-1f1f6","🇲🇵":"1f1f2-1f1f5","🇲🇴":"1f1f2-1f1f4","🇲🇳":"1f1f2-1f1f3","🇲🇲":"1f1f2-1f1f2","🇲🇱":"1f1f2-1f1f1","🇲🇰":"1f1f2-1f1f0","🇲🇭":"1f1f2-1f1ed","🇲🇬":"1f1f2-1f1ec","🇲🇫":"1f1f2-1f1eb","🇲🇪":"1f1f2-1f1ea","🇲🇩":"1f1f2-1f1e9","🇲🇨":"1f1f2-1f1e8","🇲🇦":"1f1f2-1f1e6","🇱🇾":"1f1f1-1f1fe","🇱🇻":"1f1f1-1f1fb","🇱🇺":"1f1f1-1f1fa","🇱🇹":"1f1f1-1f1f9","🇱🇸":"1f1f1-1f1f8","🇱🇷":"1f1f1-1f1f7","🇱🇰":"1f1f1-1f1f0","🇱🇮":"1f1f1-1f1ee","🇱🇨":"1f1f1-1f1e8","🇱🇧":"1f1f1-1f1e7","🇱🇦":"1f1f1-1f1e6","🇰🇿":"1f1f0-1f1ff","🇰🇾":"1f1f0-1f1fe","🇰🇼":"1f1f0-1f1fc","🇰🇷":"1f1f0-1f1f7","🇰🇵":"1f1f0-1f1f5","🇰🇳":"1f1f0-1f1f3","🇰🇲":"1f1f0-1f1f2","🇰🇮":"1f1f0-1f1ee","🇰🇭":"1f1f0-1f1ed","🇰🇬":"1f1f0-1f1ec","🇰🇪":"1f1f0-1f1ea","🇯🇵":"1f1ef-1f1f5","🇯🇴":"1f1ef-1f1f4","🇯🇲":"1f1ef-1f1f2","🇯🇪":"1f1ef-1f1ea","🇮🇹":"1f1ee-1f1f9","🇮🇸":"1f1ee-1f1f8","🇮🇷":"1f1ee-1f1f7","🇮🇶":"1f1ee-1f1f6","🇮🇴":"1f1ee-1f1f4","🇮🇳":"1f1ee-1f1f3","🇮🇲":"1f1ee-1f1f2","🇮🇱":"1f1ee-1f1f1","🇮🇪":"1f1ee-1f1ea","🇮🇩":"1f1ee-1f1e9","🇮🇨":"1f1ee-1f1e8","🇭🇺":"1f1ed-1f1fa","🇭🇹":"1f1ed-1f1f9","🇭🇷":"1f1ed-1f1f7","🇭🇳":"1f1ed-1f1f3","🇭🇲":"1f1ed-1f1f2","🇭🇰":"1f1ed-1f1f0","🇬🇾":"1f1ec-1f1fe","🇬🇼":"1f1ec-1f1fc","🇬🇺":"1f1ec-1f1fa","🇬🇹":"1f1ec-1f1f9","🇬🇸":"1f1ec-1f1f8","🇬🇷":"1f1ec-1f1f7","🇬🇶":"1f1ec-1f1f6","🇬🇵":"1f1ec-1f1f5","🇬🇳":"1f1ec-1f1f3","🇬🇲":"1f1ec-1f1f2","🇬🇱":"1f1ec-1f1f1","🇬🇮":"1f1ec-1f1ee","🇬🇭":"1f1ec-1f1ed","🇬🇬":"1f1ec-1f1ec","🇬🇫":"1f1ec-1f1eb","🇬🇪":"1f1ec-1f1ea","🇬🇩":"1f1ec-1f1e9","🇬🇧":"1f1ec-1f1e7","🇬🇦":"1f1ec-1f1e6","🇫🇷":"1f1eb-1f1f7","🇫🇴":"1f1eb-1f1f4","🇫🇲":"1f1eb-1f1f2","🇫🇰":"1f1eb-1f1f0","🇫🇯":"1f1eb-1f1ef","🇫🇮":"1f1eb-1f1ee","🇪🇺":"1f1ea-1f1fa","🇪🇹":"1f1ea-1f1f9","🇪🇸":"1f1ea-1f1f8","🇪🇷":"1f1ea-1f1f7","🇪🇭":"1f1ea-1f1ed","🇪🇬":"1f1ea-1f1ec","🇪🇪":"1f1ea-1f1ea","🇪🇨":"1f1ea-1f1e8","🇪🇦":"1f1ea-1f1e6","🇩🇿":"1f1e9-1f1ff","🇩🇴":"1f1e9-1f1f4","🇩🇲":"1f1e9-1f1f2","🇩🇰":"1f1e9-1f1f0","🇩🇯":"1f1e9-1f1ef","🇩🇬":"1f1e9-1f1ec","🇩🇪":"1f1e9-1f1ea","🇨🇿":"1f1e8-1f1ff","🇨🇾":"1f1e8-1f1fe","🇨🇽":"1f1e8-1f1fd","🇨🇼":"1f1e8-1f1fc","🇨🇻":"1f1e8-1f1fb","🇨🇺":"1f1e8-1f1fa","🇨🇷":"1f1e8-1f1f7","🇨🇵":"1f1e8-1f1f5","🇨🇴":"1f1e8-1f1f4","🇨🇳":"1f1e8-1f1f3","🇨🇲":"1f1e8-1f1f2","🇨🇱":"1f1e8-1f1f1","🇨🇰":"1f1e8-1f1f0","🇨🇮":"1f1e8-1f1ee","🇨🇭":"1f1e8-1f1ed","🇨🇬":"1f1e8-1f1ec","🇨🇫":"1f1e8-1f1eb","🇨🇩":"1f1e8-1f1e9","🇨🇨":"1f1e8-1f1e8","🇨🇦":"1f1e8-1f1e6","🇧🇿":"1f1e7-1f1ff","🇧🇾":"1f1e7-1f1fe","🇧🇼":"1f1e7-1f1fc","🇧🇻":"1f1e7-1f1fb","🇧🇹":"1f1e7-1f1f9","🇧🇸":"1f1e7-1f1f8","🇧🇷":"1f1e7-1f1f7","🇧🇶":"1f1e7-1f1f6","🇧🇴":"1f1e7-1f1f4","🇧🇳":"1f1e7-1f1f3","🇧🇲":"1f1e7-1f1f2","🇧🇱":"1f1e7-1f1f1","🇧🇯":"1f1e7-1f1ef","🇧🇮":"1f1e7-1f1ee","🇧🇭":"1f1e7-1f1ed","🇧🇬":"1f1e7-1f1ec","🇧🇫":"1f1e7-1f1eb","🇧🇪":"1f1e7-1f1ea","🇧🇩":"1f1e7-1f1e9","🇧🇧":"1f1e7-1f1e7","🇧🇦":"1f1e7-1f1e6","🇦🇿":"1f1e6-1f1ff","🇦🇽":"1f1e6-1f1fd","🇦🇼":"1f1e6-1f1fc","🇦🇺":"1f1e6-1f1fa","🇦🇹":"1f1e6-1f1f9","🇦🇸":"1f1e6-1f1f8","🇦🇷":"1f1e6-1f1f7","🇦🇶":"1f1e6-1f1f6","🇦🇴":"1f1e6-1f1f4","🇦🇲":"1f1e6-1f1f2","🇦🇱":"1f1e6-1f1f1","🇦🇮":"1f1e6-1f1ee","🇦🇬":"1f1e6-1f1ec","🇦🇫":"1f1e6-1f1eb","🇦🇪":"1f1e6-1f1ea","🇦🇩":"1f1e6-1f1e9","🇦🇨":"1f1e6-1f1e8","🀄️":"1f004","🅿️":"1f17f","🈂️":"1f202","🈚️":"1f21a","🈯️":"1f22f","🈷️":"1f237","🎞️":"1f39e","🎟️":"1f39f","🏋️":"1f3cb","🏌️":"1f3cc","🏍️":"1f3cd","🏎️":"1f3ce","🎖️":"1f396","🎗️":"1f397","🌶️":"1f336","🌧️":"1f327","🌨️":"1f328","🌩️":"1f329","🌪️":"1f32a","🌫️":"1f32b","🌬️":"1f32c","🐿️":"1f43f","🕷️":"1f577","🕸️":"1f578","🌡️":"1f321","🎙️":"1f399","🎚️":"1f39a","🎛️":"1f39b","🏳️":"1f3f3","🏵️":"1f3f5","🏷️":"1f3f7","📽️":"1f4fd","🕉️":"1f549","🕊️":"1f54a","🕯️":"1f56f","🕰️":"1f570","🕳️":"1f573","🕶️":"1f576","🕹️":"1f579","🖇️":"1f587","🖊️":"1f58a","🖋️":"1f58b","🖌️":"1f58c","🖍️":"1f58d","🖥️":"1f5a5","🖨️":"1f5a8","🖲️":"1f5b2","🖼️":"1f5bc","🗂️":"1f5c2","🗃️":"1f5c3","🗄️":"1f5c4","🗑️":"1f5d1","🗒️":"1f5d2","🗓️":"1f5d3","🗜️":"1f5dc","🗝️":"1f5dd","🗞️":"1f5de","🗡️":"1f5e1","🗣️":"1f5e3","🗯️":"1f5ef","🗳️":"1f5f3","🗺️":"1f5fa","🛠️":"1f6e0","🛡️":"1f6e1","🛢️":"1f6e2","🛰️":"1f6f0","🍽️":"1f37d","👁️":"1f441","🕴️":"1f574","🕵️":"1f575","🖐️":"1f590","🏔️":"1f3d4","🏕️":"1f3d5","🏖️":"1f3d6","🏗️":"1f3d7","🏘️":"1f3d8","🏙️":"1f3d9","🏚️":"1f3da","🏛️":"1f3db","🏜️":"1f3dc","🏝️":"1f3dd","🏞️":"1f3de","🏟️":"1f3df","🛋️":"1f6cb","🛍️":"1f6cd","🛎️":"1f6ce","🛏️":"1f6cf","🛣️":"1f6e3","🛤️":"1f6e4","🛥️":"1f6e5","🛩️":"1f6e9","🛳️":"1f6f3","🌤️":"1f324","🌥️":"1f325","🌦️":"1f326","🖱️":"1f5b1","☝🏻":"261d-1f3fb","☝🏼":"261d-1f3fc","☝🏽":"261d-1f3fd","☝🏾":"261d-1f3fe","☝🏿":"261d-1f3ff","✌🏻":"270c-1f3fb","✌🏼":"270c-1f3fc","✌🏽":"270c-1f3fd","✌🏾":"270c-1f3fe","✌🏿":"270c-1f3ff","✊🏻":"270a-1f3fb","✊🏼":"270a-1f3fc","✊🏽":"270a-1f3fd","✊🏾":"270a-1f3fe","✊🏿":"270a-1f3ff","✋🏻":"270b-1f3fb","✋🏼":"270b-1f3fc","✋🏽":"270b-1f3fd","✋🏾":"270b-1f3fe","✋🏿":"270b-1f3ff","✍🏻":"270d-1f3fb","✍🏼":"270d-1f3fc","✍🏽":"270d-1f3fd","✍🏾":"270d-1f3fe","✍🏿":"270d-1f3ff","⛹🏻":"26f9-1f3fb","⛹🏼":"26f9-1f3fc","⛹🏽":"26f9-1f3fd","⛹🏾":"26f9-1f3fe","⛹🏿":"26f9-1f3ff","©️":"00a9","®️":"00ae","‼️":"203c","⁉️":"2049","™️":"2122","ℹ️":"2139","↔️":"2194","↕️":"2195","↖️":"2196","↗️":"2197","↘️":"2198","↙️":"2199","↩️":"21a9","↪️":"21aa","⌚️":"231a","⌛️":"231b","Ⓜ️":"24c2","▪️":"25aa","▫️":"25ab","▶️":"25b6","◀️":"25c0","◻️":"25fb","◼️":"25fc","◽️":"25fd","◾️":"25fe","☀️":"2600","☁️":"2601","☎️":"260e","☑️":"2611","☔️":"2614","☕️":"2615","☝️":"261d","☺️":"263a","♈️":"2648","♉️":"2649","♊️":"264a","♋️":"264b","♌️":"264c","♍️":"264d","♎️":"264e","♏️":"264f","♐️":"2650","♑️":"2651","♒️":"2652","♓️":"2653","♠️":"2660","♣️":"2663","♥️":"2665","♦️":"2666","♨️":"2668","♻️":"267b","♿️":"267f","⚓️":"2693","⚠️":"26a0","⚡️":"26a1","⚪️":"26aa","⚫️":"26ab","⚽️":"26bd","⚾️":"26be","⛄️":"26c4","⛅️":"26c5","⛔️":"26d4","⛪️":"26ea","⛲️":"26f2","⛳️":"26f3","⛵️":"26f5","⛺️":"26fa","⛽️":"26fd","✂️":"2702","✈️":"2708","✉️":"2709","✌️":"270c","✏️":"270f","✒️":"2712","✔️":"2714","✖️":"2716","✳️":"2733","✴️":"2734","❄️":"2744","❇️":"2747","❗️":"2757","❤️":"2764","➡️":"27a1","⤴️":"2934","⤵️":"2935","⬅️":"2b05","⬆️":"2b06","⬇️":"2b07","⬛️":"2b1b","⬜️":"2b1c","⭐️":"2b50","⭕️":"2b55","〰️":"3030","〽️":"303d","㊗️":"3297","㊙️":"3299","✝️":"271d","⌨️":"2328","✍️":"270d","⏭️":"23ed","⏮️":"23ee","⏯️":"23ef","⏱️":"23f1","⏲️":"23f2","⏸️":"23f8","⏹️":"23f9","⏺️":"23fa","☂️":"2602","☃️":"2603","☄️":"2604","☘️":"2618","☠️":"2620","☢️":"2622","☣️":"2623","☦️":"2626","☪️":"262a","☮️":"262e","☯️":"262f","☸️":"2638","☹️":"2639","⚒️":"2692","⚔️":"2694","⚖️":"2696","⚗️":"2697","⚙️":"2699","⚛️":"269b","⚜️":"269c","⚰️":"26b0","⚱️":"26b1","⛈️":"26c8","⛏️":"26cf","⛑️":"26d1","⛓️":"26d3","⛩️":"26e9","⛰️":"26f0","⛱️":"26f1","⛴️":"26f4","⛷️":"26f7","⛸️":"26f8","⛹️":"26f9","✡️":"2721","❣️":"2763","🃏":"1f0cf","🅰":"1f170","🅱":"1f171","🅾":"1f17e","🆎":"1f18e","🆑":"1f191","🆒":"1f192","🆓":"1f193","🆔":"1f194","🆕":"1f195","🆖":"1f196","🆗":"1f197","🆘":"1f198","🆙":"1f199","🆚":"1f19a","🈁":"1f201","🈲":"1f232","🈳":"1f233","🈴":"1f234","🈵":"1f235","🈶":"1f236","🈸":"1f238","🈹":"1f239","🈺":"1f23a","🉐":"1f250","🉑":"1f251","🌀":"1f300","🌁":"1f301","🌂":"1f302","🌃":"1f303","🌄":"1f304","🌅":"1f305","🌆":"1f306","🌇":"1f307","🌈":"1f308","🌉":"1f309","🌊":"1f30a","🌋":"1f30b","🌌":"1f30c","🌏":"1f30f","🌑":"1f311","🌓":"1f313","🌔":"1f314","🌕":"1f315","🌙":"1f319","🌛":"1f31b","🌟":"1f31f","🌠":"1f320","🌰":"1f330","🌱":"1f331","🌴":"1f334","🌵":"1f335","🌷":"1f337","🌸":"1f338","🌹":"1f339","🌺":"1f33a","🌻":"1f33b","🌼":"1f33c","🌽":"1f33d","🌾":"1f33e","🌿":"1f33f","🍀":"1f340","🍁":"1f341","🍂":"1f342","🍃":"1f343","🍄":"1f344","🍅":"1f345","🍆":"1f346","🍇":"1f347","🍈":"1f348","🍉":"1f349","🍊":"1f34a","🍌":"1f34c","🍍":"1f34d","🍎":"1f34e","🍏":"1f34f","🍑":"1f351","🍒":"1f352","🍓":"1f353","🍔":"1f354","🍕":"1f355","🍖":"1f356","🍗":"1f357","🍘":"1f358","🍙":"1f359","🍚":"1f35a","🍛":"1f35b","🍜":"1f35c","🍝":"1f35d","🍞":"1f35e","🍟":"1f35f","🍠":"1f360","🍡":"1f361","🍢":"1f362","🍣":"1f363","🍤":"1f364","🍥":"1f365","🍦":"1f366","🍧":"1f367","🍨":"1f368","🍩":"1f369","🍪":"1f36a","🍫":"1f36b","🍬":"1f36c","🍭":"1f36d","🍮":"1f36e","🍯":"1f36f","🍰":"1f370","🍱":"1f371","🍲":"1f372","🍳":"1f373","🍴":"1f374","🍵":"1f375","🍶":"1f376","🍷":"1f377","🍸":"1f378","🍹":"1f379","🍺":"1f37a","🍻":"1f37b","🎀":"1f380","🎁":"1f381","🎂":"1f382","🎃":"1f383","🎄":"1f384","🎅":"1f385","🎆":"1f386","🎇":"1f387","🎈":"1f388","🎉":"1f389","🎊":"1f38a","🎋":"1f38b","🎌":"1f38c","🎍":"1f38d","🎎":"1f38e","🎏":"1f38f","🎐":"1f390","🎑":"1f391","🎒":"1f392","🎓":"1f393","🎠":"1f3a0","🎡":"1f3a1","🎢":"1f3a2","🎣":"1f3a3","🎤":"1f3a4","🎥":"1f3a5","🎦":"1f3a6","🎧":"1f3a7","🎨":"1f3a8","🎩":"1f3a9","🎪":"1f3aa","🎫":"1f3ab","🎬":"1f3ac","🎭":"1f3ad","🎮":"1f3ae","🎯":"1f3af","🎰":"1f3b0","🎱":"1f3b1","🎲":"1f3b2","🎳":"1f3b3","🎴":"1f3b4","🎵":"1f3b5","🎶":"1f3b6","🎷":"1f3b7","🎸":"1f3b8","🎹":"1f3b9","🎺":"1f3ba","🎻":"1f3bb","🎼":"1f3bc","🎽":"1f3bd","🎾":"1f3be","🎿":"1f3bf","🏀":"1f3c0","🏁":"1f3c1","🏂":"1f3c2","🏃":"1f3c3","🏄":"1f3c4","🏆":"1f3c6","🏈":"1f3c8","🏊":"1f3ca","🏠":"1f3e0","🏡":"1f3e1","🏢":"1f3e2","🏣":"1f3e3","🏥":"1f3e5","🏦":"1f3e6","🏧":"1f3e7","🏨":"1f3e8","🏩":"1f3e9","🏪":"1f3ea","🏫":"1f3eb","🏬":"1f3ec","🏭":"1f3ed","🏮":"1f3ee","🏯":"1f3ef","🏰":"1f3f0","🐌":"1f40c","🐍":"1f40d","🐎":"1f40e","🐑":"1f411","🐒":"1f412","🐔":"1f414","🐗":"1f417","🐘":"1f418","🐙":"1f419","🐚":"1f41a","🐛":"1f41b","🐜":"1f41c","🐝":"1f41d","🐞":"1f41e","🐟":"1f41f","🐠":"1f420","🐡":"1f421","🐢":"1f422","🐣":"1f423","🐤":"1f424","🐥":"1f425","🐦":"1f426","🐧":"1f427","🐨":"1f428","🐩":"1f429","🐫":"1f42b","🐬":"1f42c","🐭":"1f42d","🐮":"1f42e","🐯":"1f42f","🐰":"1f430","🐱":"1f431","🐲":"1f432","🐳":"1f433","🐴":"1f434","🐵":"1f435","🐶":"1f436","🐷":"1f437","🐸":"1f438","🐹":"1f439","🐺":"1f43a","🐻":"1f43b","🐼":"1f43c","🐽":"1f43d","🐾":"1f43e","👀":"1f440","👂":"1f442","👃":"1f443","👄":"1f444","👅":"1f445","👆":"1f446","👇":"1f447","👈":"1f448","👉":"1f449","👊":"1f44a","👋":"1f44b","👌":"1f44c","👍":"1f44d","👎":"1f44e","👏":"1f44f","👐":"1f450","👑":"1f451","👒":"1f452","👓":"1f453","👔":"1f454","👕":"1f455","👖":"1f456","👗":"1f457","👘":"1f458","👙":"1f459","👚":"1f45a","👛":"1f45b","👜":"1f45c","👝":"1f45d","👞":"1f45e","👟":"1f45f","👠":"1f460","👡":"1f461","👢":"1f462","👣":"1f463","👤":"1f464","👦":"1f466","👧":"1f467","👨":"1f468","👩":"1f469","👪":"1f46a","👫":"1f46b","👮":"1f46e","👯":"1f46f","👰":"1f470","👱":"1f471","👲":"1f472","👳":"1f473","👴":"1f474","👵":"1f475","👶":"1f476","👷":"1f477","👸":"1f478","👹":"1f479","👺":"1f47a","👻":"1f47b","👼":"1f47c","👽":"1f47d","👾":"1f47e","👿":"1f47f","💀":"1f480","📇":"1f4c7","💁":"1f481","💂":"1f482","💃":"1f483","💄":"1f484","💅":"1f485","📒":"1f4d2","💆":"1f486","📓":"1f4d3","💇":"1f487","📔":"1f4d4","💈":"1f488","📕":"1f4d5","💉":"1f489","📖":"1f4d6","💊":"1f48a","📗":"1f4d7","💋":"1f48b","📘":"1f4d8","💌":"1f48c","📙":"1f4d9","💍":"1f48d","📚":"1f4da","💎":"1f48e","📛":"1f4db","💏":"1f48f","📜":"1f4dc","💐":"1f490","📝":"1f4dd","💑":"1f491","📞":"1f4de","💒":"1f492","📟":"1f4df","📠":"1f4e0","💓":"1f493","📡":"1f4e1","📢":"1f4e2","💔":"1f494","📣":"1f4e3","📤":"1f4e4","💕":"1f495","📥":"1f4e5","📦":"1f4e6","💖":"1f496","📧":"1f4e7","📨":"1f4e8","💗":"1f497","📩":"1f4e9","📪":"1f4ea","💘":"1f498","📫":"1f4eb","📮":"1f4ee","💙":"1f499","📰":"1f4f0","📱":"1f4f1","💚":"1f49a","📲":"1f4f2","📳":"1f4f3","💛":"1f49b","📴":"1f4f4","📶":"1f4f6","💜":"1f49c","📷":"1f4f7","📹":"1f4f9","💝":"1f49d","📺":"1f4fa","📻":"1f4fb","💞":"1f49e","📼":"1f4fc","🔃":"1f503","💟":"1f49f","🔊":"1f50a","🔋":"1f50b","💠":"1f4a0","🔌":"1f50c","🔍":"1f50d","💡":"1f4a1","🔎":"1f50e","🔏":"1f50f","💢":"1f4a2","🔐":"1f510","🔑":"1f511","💣":"1f4a3","🔒":"1f512","🔓":"1f513","💤":"1f4a4","🔔":"1f514","🔖":"1f516","💥":"1f4a5","🔗":"1f517","🔘":"1f518","💦":"1f4a6","🔙":"1f519","🔚":"1f51a","💧":"1f4a7","🔛":"1f51b","🔜":"1f51c","💨":"1f4a8","🔝":"1f51d","🔞":"1f51e","💩":"1f4a9","🔟":"1f51f","💪":"1f4aa","🔠":"1f520","🔡":"1f521","💫":"1f4ab","🔢":"1f522","🔣":"1f523","💬":"1f4ac","🔤":"1f524","🔥":"1f525","💮":"1f4ae","🔦":"1f526","🔧":"1f527","💯":"1f4af","🔨":"1f528","🔩":"1f529","💰":"1f4b0","🔪":"1f52a","🔫":"1f52b","💱":"1f4b1","🔮":"1f52e","💲":"1f4b2","🔯":"1f52f","💳":"1f4b3","🔰":"1f530","🔱":"1f531","💴":"1f4b4","🔲":"1f532","🔳":"1f533","💵":"1f4b5","🔴":"1f534","🔵":"1f535","💸":"1f4b8","🔶":"1f536","🔷":"1f537","💹":"1f4b9","🔸":"1f538","🔹":"1f539","💺":"1f4ba","🔺":"1f53a","🔻":"1f53b","💻":"1f4bb","🔼":"1f53c","💼":"1f4bc","🔽":"1f53d","🕐":"1f550","💽":"1f4bd","🕑":"1f551","💾":"1f4be","🕒":"1f552","💿":"1f4bf","🕓":"1f553","📀":"1f4c0","🕔":"1f554","🕕":"1f555","📁":"1f4c1","🕖":"1f556","🕗":"1f557","📂":"1f4c2","🕘":"1f558","🕙":"1f559","📃":"1f4c3","🕚":"1f55a","🕛":"1f55b","📄":"1f4c4","🗻":"1f5fb","🗼":"1f5fc","📅":"1f4c5","🗽":"1f5fd","🗾":"1f5fe","📆":"1f4c6","🗿":"1f5ff","😁":"1f601","😂":"1f602","😃":"1f603","📈":"1f4c8","😄":"1f604","😅":"1f605","📉":"1f4c9","😆":"1f606","😉":"1f609","📊":"1f4ca","😊":"1f60a","😋":"1f60b","📋":"1f4cb","😌":"1f60c","😍":"1f60d","📌":"1f4cc","😏":"1f60f","😒":"1f612","📍":"1f4cd","😓":"1f613","😔":"1f614","📎":"1f4ce","😖":"1f616","😘":"1f618","📏":"1f4cf","😚":"1f61a","😜":"1f61c","📐":"1f4d0","😝":"1f61d","😞":"1f61e","📑":"1f4d1","😠":"1f620","😡":"1f621","😢":"1f622","😣":"1f623","😤":"1f624","😥":"1f625","😨":"1f628","😩":"1f629","😪":"1f62a","😫":"1f62b","😭":"1f62d","😰":"1f630","😱":"1f631","😲":"1f632","😳":"1f633","😵":"1f635","😷":"1f637","😸":"1f638","😹":"1f639","😺":"1f63a","😻":"1f63b","😼":"1f63c","😽":"1f63d","😾":"1f63e","😿":"1f63f","🙀":"1f640","🙅":"1f645","🙆":"1f646","🙇":"1f647","🙈":"1f648","🙉":"1f649","🙊":"1f64a","🙋":"1f64b","🙌":"1f64c","🙍":"1f64d","🙎":"1f64e","🙏":"1f64f","🚀":"1f680","🚃":"1f683","🚄":"1f684","🚅":"1f685","🚇":"1f687","🚉":"1f689","🚌":"1f68c","🚏":"1f68f","🚑":"1f691","🚒":"1f692","🚓":"1f693","🚕":"1f695","🚗":"1f697","🚙":"1f699","🚚":"1f69a","🚢":"1f6a2","🚤":"1f6a4","🚥":"1f6a5","🚧":"1f6a7","🚨":"1f6a8","🚩":"1f6a9","🚪":"1f6aa","🚫":"1f6ab","🚬":"1f6ac","🚭":"1f6ad","🚲":"1f6b2","🚶":"1f6b6","🚹":"1f6b9","🚺":"1f6ba","🚻":"1f6bb","🚼":"1f6bc","🚽":"1f6bd","🚾":"1f6be","🛀":"1f6c0","🤘":"1f918","😀":"1f600","😇":"1f607","😈":"1f608","😎":"1f60e","😐":"1f610","😑":"1f611","😕":"1f615","😗":"1f617","😙":"1f619","😛":"1f61b","😟":"1f61f","😦":"1f626","😧":"1f627","😬":"1f62c","😮":"1f62e","😯":"1f62f","😴":"1f634","😶":"1f636","🚁":"1f681","🚂":"1f682","🚆":"1f686","🚈":"1f688","🚊":"1f68a","🚍":"1f68d","🚎":"1f68e","🚐":"1f690","🚔":"1f694","🚖":"1f696","🚘":"1f698","🚛":"1f69b","🚜":"1f69c","🚝":"1f69d","🚞":"1f69e","🚟":"1f69f","🚠":"1f6a0","🚡":"1f6a1","🚣":"1f6a3","🚦":"1f6a6","🚮":"1f6ae","🚯":"1f6af","🚰":"1f6b0","🚱":"1f6b1","🚳":"1f6b3","🚴":"1f6b4","🚵":"1f6b5","🚷":"1f6b7","🚸":"1f6b8","🚿":"1f6bf","🛁":"1f6c1","🛂":"1f6c2","🛃":"1f6c3","🛄":"1f6c4","🛅":"1f6c5","🌍":"1f30d","🌎":"1f30e","🌐":"1f310","🌒":"1f312","🌖":"1f316","🌗":"1f317","🌘":"1f318","🌚":"1f31a","🌜":"1f31c","🌝":"1f31d","🌞":"1f31e","🌲":"1f332","🌳":"1f333","🍋":"1f34b","🍐":"1f350","🍼":"1f37c","🏇":"1f3c7","🏉":"1f3c9","🏤":"1f3e4","🐀":"1f400","🐁":"1f401","🐂":"1f402","🐃":"1f403","🐄":"1f404","🐅":"1f405","🐆":"1f406","🐇":"1f407","🐈":"1f408","🐉":"1f409","🐊":"1f40a","🐋":"1f40b","🐏":"1f40f","🐐":"1f410","🐓":"1f413","🐕":"1f415","🐖":"1f416","🐪":"1f42a","👥":"1f465","👬":"1f46c","👭":"1f46d","💭":"1f4ad","💶":"1f4b6","💷":"1f4b7","📬":"1f4ec","📭":"1f4ed","📯":"1f4ef","📵":"1f4f5","🔀":"1f500","🔁":"1f501","🔂":"1f502","🔄":"1f504","🔅":"1f505","🔆":"1f506","🔇":"1f507","🔉":"1f509","🔕":"1f515","🔬":"1f52c","🔭":"1f52d","🕜":"1f55c","🕝":"1f55d","🕞":"1f55e","🕟":"1f55f","🕠":"1f560","🕡":"1f561","🕢":"1f562","🕣":"1f563","🕤":"1f564","🕥":"1f565","🕦":"1f566","🕧":"1f567","🔈":"1f508","🚋":"1f68b","🏅":"1f3c5","🏴":"1f3f4","📸":"1f4f8","🛌":"1f6cc","🖕":"1f595","🖖":"1f596","🙁":"1f641","🙂":"1f642","🛫":"1f6eb","🛬":"1f6ec","🏻":"1f3fb","🏼":"1f3fc","🏽":"1f3fd","🏾":"1f3fe","🏿":"1f3ff","🙃":"1f643","🤑":"1f911","🤓":"1f913","🤗":"1f917","🙄":"1f644","🤔":"1f914","🤐":"1f910","🤒":"1f912","🤕":"1f915","🤖":"1f916","🦁":"1f981","🦄":"1f984","🦂":"1f982","🦀":"1f980","🦃":"1f983","🧀":"1f9c0","🌭":"1f32d","🌮":"1f32e","🌯":"1f32f","🍿":"1f37f","🍾":"1f37e","🏹":"1f3f9","🏺":"1f3fa","🛐":"1f6d0","🕋":"1f54b","🕌":"1f54c","🕍":"1f54d","🕎":"1f54e","📿":"1f4ff","🏏":"1f3cf","🏐":"1f3d0","🏑":"1f3d1","🏒":"1f3d2","🏓":"1f3d3","🏸":"1f3f8","⏩":"23e9","⏪":"23ea","⏫":"23eb","⏬":"23ec","⏰":"23f0","⏳":"23f3","⛎":"26ce","✅":"2705","✊":"270a","✋":"270b","✨":"2728","❌":"274c","❎":"274e","❓":"2753","❔":"2754","❕":"2755","➕":"2795","➖":"2796","➗":"2797","➰":"27b0","➿":"27bf","©":"00a9","®":"00ae","‼":"203c","⁉":"2049","™":"2122","ℹ":"2139","↔":"2194","↕":"2195","↖":"2196","↗":"2197","↘":"2198","↙":"2199","↩":"21a9","↪":"21aa","⌚":"231a","⌛":"231b","Ⓜ":"24c2","▪":"25aa","▫":"25ab","▶":"25b6","◀":"25c0","◻":"25fb","◼":"25fc","◽":"25fd","◾":"25fe","☀":"2600","☁":"2601","☎":"260e","☑":"2611","☔":"2614","☕":"2615","☝":"261d","☺":"263a","♈":"2648","♉":"2649","♊":"264a","♋":"264b","♌":"264c","♍":"264d","♎":"264e","♏":"264f","♐":"2650","♑":"2651","♒":"2652","♓":"2653","♠":"2660","♣":"2663","♥":"2665","♦":"2666","♨":"2668","♻":"267b","♿":"267f","⚓":"2693","⚠":"26a0","⚡":"26a1","⚪":"26aa","⚫":"26ab","⚽":"26bd","⚾":"26be","⛄":"26c4","⛅":"26c5","⛔":"26d4","⛪":"26ea","⛲":"26f2","⛳":"26f3","⛵":"26f5","⛺":"26fa","⛽":"26fd","✂":"2702","✈":"2708","✉":"2709","✌":"270c","✏":"270f","✒":"2712","✔":"2714","✖":"2716","✳":"2733","✴":"2734","❄":"2744","❇":"2747","❗":"2757","❤":"2764","➡":"27a1","⤴":"2934","⤵":"2935","⬅":"2b05","⬆":"2b06","⬇":"2b07","⬛":"2b1b","⬜":"2b1c","⭐":"2b50","⭕":"2b55","〰":"3030","〽":"303d","㊗":"3297","㊙":"3299","🀄":"1f004","🅿":"1f17f","🈂":"1f202","🈚":"1f21a","🈯":"1f22f","🈷":"1f237","🎞":"1f39e","🎟":"1f39f","🏋":"1f3cb","🏌":"1f3cc","🏍":"1f3cd","🏎":"1f3ce","🎖":"1f396","🎗":"1f397","🌶":"1f336","🌧":"1f327","🌨":"1f328","🌩":"1f329","🌪":"1f32a","🌫":"1f32b","🌬":"1f32c","🐿":"1f43f","🕷":"1f577","🕸":"1f578","🌡":"1f321","🎙":"1f399","🎚":"1f39a","🎛":"1f39b","🏳":"1f3f3","🏵":"1f3f5","🏷":"1f3f7","📽":"1f4fd","✝":"271d","🕉":"1f549","🕊":"1f54a","🕯":"1f56f","🕰":"1f570","🕳":"1f573","🕶":"1f576","🕹":"1f579","🖇":"1f587","🖊":"1f58a","🖋":"1f58b","🖌":"1f58c","🖍":"1f58d","🖥":"1f5a5","🖨":"1f5a8","⌨":"2328","🖲":"1f5b2","🖼":"1f5bc","🗂":"1f5c2","🗃":"1f5c3","🗄":"1f5c4","🗑":"1f5d1","🗒":"1f5d2","🗓":"1f5d3","🗜":"1f5dc","🗝":"1f5dd","🗞":"1f5de","🗡":"1f5e1","🗣":"1f5e3","🗯":"1f5ef","🗳":"1f5f3","🗺":"1f5fa","🛠":"1f6e0","🛡":"1f6e1","🛢":"1f6e2","🛰":"1f6f0","🍽":"1f37d","👁":"1f441","🕴":"1f574","🕵":"1f575","✍":"270d","🖐":"1f590","🏔":"1f3d4","🏕":"1f3d5","🏖":"1f3d6","🏗":"1f3d7","🏘":"1f3d8","🏙":"1f3d9","🏚":"1f3da","🏛":"1f3db","🏜":"1f3dc","🏝":"1f3dd","🏞":"1f3de","🏟":"1f3df","🛋":"1f6cb","🛍":"1f6cd","🛎":"1f6ce","🛏":"1f6cf","🛣":"1f6e3","🛤":"1f6e4","🛥":"1f6e5","🛩":"1f6e9","🛳":"1f6f3","⏭":"23ed","⏮":"23ee","⏯":"23ef","⏱":"23f1","⏲":"23f2","⏸":"23f8","⏹":"23f9","⏺":"23fa","☂":"2602","☃":"2603","☄":"2604","☘":"2618","☠":"2620","☢":"2622","☣":"2623","☦":"2626","☪":"262a","☮":"262e","☯":"262f","☸":"2638","☹":"2639","⚒":"2692","⚔":"2694","⚖":"2696","⚗":"2697","⚙":"2699","⚛":"269b","⚜":"269c","⚰":"26b0","⚱":"26b1","⛈":"26c8","⛏":"26cf","⛑":"26d1","⛓":"26d3","⛩":"26e9","⛰":"26f0","⛱":"26f1","⛴":"26f4","⛷":"26f7","⛸":"26f8","⛹":"26f9","✡":"2721","❣":"2763","🌤":"1f324","🌥":"1f325","🌦":"1f326","🖱":"1f5b1"},f.imagePathPNG="//cdn.jsdelivr.net/emojione/assets/png/",f.imagePathSVG="//cdn.jsdelivr.net/emojione/assets/svg/",f.imagePathSVGSprites="./../assets/sprites/emojione.sprites.svg",f.imageType="png",f.sprites=!1,f.unicodeAlt=!0,f.ascii=!1,f.cacheBustParam="?v=2.1.4",f.regShortNames=new RegExp("<object[^>]*>.*?</object>|<span[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|("+f.shortnames+")","gi"),f.regAscii=new RegExp("<object[^>]*>.*?</object>|<span[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|((\\s|^)"+f.asciiRegexp+"(?=\\s|$|[!,.?]))","g"),f.regUnicode=new RegExp("<object[^>]*>.*?</object>|<span[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|("+f.unicodeRegexp+")","gi"),f.toImage=function(n){return n=f.unicodeToImage(n),n=f.shortnameToImage(n)},f.unifyUnicode=function(n){return n=f.toShort(n),n=f.shortnameToUnicode(n)},f.shortnameToAscii=function(n){var u,i=f.objectFlip(f.asciiList);return n=n.replace(f.regShortNames,function(n){return"undefined"!=typeof n&&""!==n&&n in f.emojioneList?(u=f.emojioneList[n].unicode[f.emojioneList[n].unicode.length-1],"undefined"!=typeof i[u]?i[u]:n):n})},f.shortnameToUnicode=function(n){var u;return n=n.replace(f.regShortNames,function(n){return"undefined"!=typeof n&&""!==n&&n in f.emojioneList?(u=f.emojioneList[n].unicode[0].toUpperCase(),f.convert(u)):n}),f.ascii&&(n=n.replace(f.regAscii,function(n,i,a,D){return"undefined"!=typeof D&&""!==D&&f.unescapeHTML(D)in f.asciiList?(D=f.unescapeHTML(D),u=f.asciiList[D].toUpperCase(),a+f.convert(u)):n})),n},f.shortnameToImage=function(n){var u,i,a;return n=n.replace(f.regShortNames,function(n){return"undefined"!=typeof n&&""!==n&&n in f.emojioneList?(i=f.emojioneList[n].unicode[f.emojioneList[n].unicode.length-1],a=f.unicodeAlt?f.convert(i.toUpperCase()):n,u="png"===f.imageType?f.sprites?'<span class="emojione emojione-'+i+'" title="'+n+'">'+a+"</span>":'<img class="emojione" alt="'+a+'" src="'+f.imagePathPNG+i+".png"+f.cacheBustParam+'"/>':f.sprites?'<svg class="emojione"><description>'+a+'</description><use xlink:href="'+f.imagePathSVGSprites+"#emoji-"+i+'"></use></svg>':'<object class="emojione" data="'+f.imagePathSVG+i+".svg"+f.cacheBustParam+'" type="image/svg+xml" standby="'+a+'">'+a+"</object>"):n}),f.ascii&&(n=n.replace(f.regAscii,function(n,D,e,o){return"undefined"!=typeof o&&""!==o&&f.unescapeHTML(o)in f.asciiList?(o=f.unescapeHTML(o),i=f.asciiList[o],a=f.unicodeAlt?f.convert(i.toUpperCase()):f.escapeHTML(o),u="png"===f.imageType?f.sprites?e+'<span class="emojione emojione-'+i+'" title="'+f.escapeHTML(o)+'">'+a+"</span>":e+'<img class="emojione" alt="'+a+'" src="'+f.imagePathPNG+i+".png"+f.cacheBustParam+'"/>':f.sprites?'<svg class="emojione"><description>'+a+'</description><use xlink:href="'+f.imagePathSVGSprites+"#emoji-"+i+'"></use></svg>':e+'<object class="emojione" data="'+f.imagePathSVG+i+".svg"+f.cacheBustParam+'" type="image/svg+xml" standby="'+a+'">'+a+"</object>"):n})),n},f.unicodeToImage=function(n){var u,i,a;if(!f.unicodeAlt||f.sprites)var D=f.mapUnicodeToShort();return n=n.replace(f.regUnicode,function(n){
|
||
return"undefined"!=typeof n&&""!==n&&n in f.jsEscapeMap?(i=f.jsEscapeMap[n],a=f.unicodeAlt?f.convert(i.toUpperCase()):D[i],u="png"===f.imageType?f.sprites?'<span class="emojione emojione-'+i+'" title="'+D[i]+'">'+a+"</span>":'<img class="emojione" alt="'+a+'" src="'+f.imagePathPNG+i+".png"+f.cacheBustParam+'"/>':f.sprites?'<svg class="emojione"><description>'+a+'</description><use xlink:href="'+f.imagePathSVGSprites+"#emoji-"+i+'"></use></svg>':'<img class="emojione" alt="'+a+'" src="'+f.imagePathSVG+i+".svg"+f.cacheBustParam+'"/>'):n})},f.toShort=function(n){var u=f.getUnicodeReplacementRegEx(),i=f.mapUnicodeCharactersToShort();return f.replaceAll(n,u,i)},f.convert=function(f){if(f.indexOf("-")>-1){for(var n=[],u=f.split("-"),i=0;i<u.length;i++){var a=parseInt(u[i],16);if(a>=65536&&1114111>=a){var D=Math.floor((a-65536)/1024)+55296,e=(a-65536)%1024+56320;a=String.fromCharCode(D)+String.fromCharCode(e)}else a=String.fromCharCode(a);n.push(a)}return n.join("")}var u=parseInt(f,16);if(u>=65536&&1114111>=u){var D=Math.floor((u-65536)/1024)+55296,e=(u-65536)%1024+56320;return String.fromCharCode(D)+String.fromCharCode(e)}return String.fromCharCode(u)},f.escapeHTML=function(f){var n={"&":"&","<":"<",">":">",'"':""","'":"'"};return f.replace(/[&<>"']/g,function(f){return n[f]})},f.unescapeHTML=function(f){var n={"&":"&","&":"&","&":"&","<":"<","<":"<","<":"<",">":">",">":">",">":">",""":'"',""":'"',""":'"',"'":"'","'":"'","'":"'"};return f.replace(/&(?:amp|#38|#x26|lt|#60|#x3C|gt|#62|#x3E|apos|#39|#x27|quot|#34|#x22);/gi,function(f){return n[f]})},f.mapEmojioneList=function(n){for(var u in f.emojioneList)if(f.emojioneList.hasOwnProperty(u))for(var i=0,a=f.emojioneList[u].unicode.length;a>i;i++){var D=f.emojioneList[u].unicode[i];n(D,u)}},f.mapUnicodeToShort=function(){return f.memMapShortToUnicode||(f.memMapShortToUnicode={},f.mapEmojioneList(function(n,u){f.memMapShortToUnicode[n]=u})),f.memMapShortToUnicode},f.memoizeReplacement=function(){if(!f.unicodeReplacementRegEx||!f.memMapShortToUnicodeCharacters){var n=[];f.memMapShortToUnicodeCharacters={},f.mapEmojioneList(function(u,i){var a=f.convert(u);f.emojioneList[i].isCanonical&&(f.memMapShortToUnicodeCharacters[a]=i),n.push(a)}),f.unicodeReplacementRegEx=n.join("|")}},f.mapUnicodeCharactersToShort=function(){return f.memoizeReplacement(),f.memMapShortToUnicodeCharacters},f.getUnicodeReplacementRegEx=function(){return f.memoizeReplacement(),f.unicodeReplacementRegEx},f.objectFlip=function(f){var n,u={};for(n in f)f.hasOwnProperty(n)&&(u[f[n]]=n);return u},f.escapeRegExp=function(f){return f.replace(/[-[\]{}()*+?.,;:&\\^$#\s]/g,"\\$&")},f.replaceAll=function(n,u,i){var a=f.escapeRegExp(u),D=new RegExp("<object[^>]*>.*?</object>|<span[^>]*>.*?</span>|<(?:object|embed|svg|img|div|span|p|a)[^>]*>|("+a+")","gi"),e=function(f,n){return n?i[n]:f};return n.replace(D,e)}}(this.emojione=this.emojione||{}),"object"==typeof o&&(o.exports=this.emojione)}.call(this),function(){c=o.exports}.call(this),function(){D.registerHelper("emojione",new D("emojione",function(){var f=this,u;return u=f.templateContentBlock?n._toText(f.templateContentBlock,a.TEXTMODE.STRING):n.getData(f),a.Raw(c.toImage(u))}))}.call(this),"undefined"==typeof Package&&(Package={}),Package["emojione:emojione"]={emojione:c}}();
|
||
|
||
!function(){var i=Package.meteor.Meteor,t=Package["rocketchat:lib"].RocketChat,a=Package["rocketchat:logger"].Logger,o=Package.underscore._,n=Package.webapp.WebApp,s=Package["webapp-hashing"].WebAppHashing,e=Package.templating.Template,r=Package["tap:i18n"].TAPi18next,c=Package["tap:i18n"].TAPi18n,l=Package.blaze.Blaze,h=Package.blaze.UI,d=Package.blaze.Handlebars,g=Package.spacebars.Spacebars,p=Package.htmljs.HTML,u,m,f,b;(function(){!function(i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof exports?module.exports=i(require("jquery")):i(jQuery)}(function(i){function t(t,a){var o=i('<div class="minicolors" />'),n=i.minicolors.defaults,s=t.attr("data-format"),e=t.attr("data-keywords"),c=t.attr("data-opacity");t.data("minicolors-initialized")||(a=i.extend(!0,{},n,a),o.addClass("minicolors-theme-"+a.theme).toggleClass("minicolors-with-opacity",a.opacity).toggleClass("minicolors-no-data-uris",a.dataUris!==!0),void 0!==a.position&&i.each(a.position.split(" "),function(){o.addClass("minicolors-position-"+this)}),u="rgb"===s?c?"25":"20":e?"11":"7",t.addClass("minicolors-input").data("minicolors-initialized",!1).data("minicolors-settings",a).prop("size",u).wrap(o).after('<div class="minicolors-panel minicolors-slider-'+a.control+'"><div class="minicolors-slider minicolors-sprite"><div class="minicolors-picker"></div></div><div class="minicolors-opacity-slider minicolors-sprite"><div class="minicolors-picker"></div></div><div class="minicolors-grid minicolors-sprite"><div class="minicolors-grid-inner"></div><div class="minicolors-picker"><div></div></div></div></div>'),a.inline||(t.after('<span class="minicolors-swatch minicolors-sprite"><span class="minicolors-swatch-color"></span></span>'),t.next(".minicolors-swatch").on("click",function(i){i.preventDefault(),t.focus()})),t.parent().find(".minicolors-panel").on("selectstart",function(){return!1}).end(),a.inline&&t.parent().addClass("minicolors-inline"),r(t,!1),t.data("minicolors-initialized",!0))}function a(i){var t=i.parent();i.removeData("minicolors-initialized").removeData("minicolors-settings").removeProp("size").removeClass("minicolors-input"),t.before(i).remove()}function o(i){var t=i.parent(),a=t.find(".minicolors-panel"),o=i.data("minicolors-settings");!i.data("minicolors-initialized")||i.prop("disabled")||t.hasClass("minicolors-inline")||t.hasClass("minicolors-focus")||(n(),t.addClass("minicolors-focus"),a.stop(!0,!0).fadeIn(o.showSpeed,function(){o.show&&o.show.call(i.get(0))}))}function n(){i(".minicolors-focus").each(function(){var t=i(this),a=t.find(".minicolors-input"),o=t.find(".minicolors-panel"),n=a.data("minicolors-settings");o.fadeOut(n.hideSpeed,function(){n.hide&&n.hide.call(a.get(0)),t.removeClass("minicolors-focus")})})}function s(i,t,a){var o=i.parents(".minicolors").find(".minicolors-input"),n=o.data("minicolors-settings"),s=i.find("[class$=-picker]"),r=i.offset().left,c=i.offset().top,l=Math.round(t.pageX-r),h=Math.round(t.pageY-c),d=a?n.animationSpeed:0,g,p,u,m;t.originalEvent.changedTouches&&(l=t.originalEvent.changedTouches[0].pageX-r,h=t.originalEvent.changedTouches[0].pageY-c),0>l&&(l=0),0>h&&(h=0),l>i.width()&&(l=i.width()),h>i.height()&&(h=i.height()),i.parent().is(".minicolors-slider-wheel")&&s.parent().is(".minicolors-grid")&&(g=75-l,p=75-h,u=Math.sqrt(g*g+p*p),m=Math.atan2(p,g),0>m&&(m+=2*Math.PI),u>75&&(u=75,l=75-75*Math.cos(m),h=75-75*Math.sin(m)),l=Math.round(l),h=Math.round(h)),i.is(".minicolors-grid")?s.stop(!0).animate({top:h+"px",left:l+"px"},d,n.animationEasing,function(){e(o,i)}):s.stop(!0).animate({top:h+"px"},d,n.animationEasing,function(){e(o,i)})}function e(i,t){function a(i,t){var a,o;return i.length&&t?(a=i.offset().left,o=i.offset().top,{x:a-t.offset().left+i.outerWidth()/2,y:o-t.offset().top+i.outerHeight()/2}):null}var o,n,s,e,r,l,h,g=i.val(),p=i.attr("data-format"),u=i.attr("data-keywords"),f=i.attr("data-opacity"),b=i.parent(),v=i.data("minicolors-settings"),k=b.find(".minicolors-swatch"),w=b.find(".minicolors-grid"),M=b.find(".minicolors-slider"),C=b.find(".minicolors-opacity-slider"),x=w.find("[class$=-picker]"),z=M.find("[class$=-picker]"),I=C.find("[class$=-picker]"),F=a(x,w),T=a(z,M),j=a(I,C);if(t.is(".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider")){switch(v.control){case"wheel":e=w.width()/2-F.x,r=w.height()/2-F.y,l=Math.sqrt(e*e+r*r),h=Math.atan2(r,e),0>h&&(h+=2*Math.PI),l>75&&(l=75,F.x=69-75*Math.cos(h),F.y=69-75*Math.sin(h)),n=y(l/.75,0,100),o=y(180*h/Math.PI,0,360),s=y(100-Math.floor(T.y*(100/M.height())),0,100),g=P({h:o,s:n,b:s}),M.css("backgroundColor",P({h:o,s:n,b:100}));break;case"saturation":o=y(parseInt(F.x*(360/w.width()),10),0,360),n=y(100-Math.floor(T.y*(100/M.height())),0,100),s=y(100-Math.floor(F.y*(100/w.height())),0,100),g=P({h:o,s:n,b:s}),M.css("backgroundColor",P({h:o,s:100,b:s})),b.find(".minicolors-grid-inner").css("opacity",n/100);break;case"brightness":o=y(parseInt(F.x*(360/w.width()),10),0,360),n=y(100-Math.floor(F.y*(100/w.height())),0,100),s=y(100-Math.floor(T.y*(100/M.height())),0,100),g=P({h:o,s:n,b:s}),M.css("backgroundColor",P({h:o,s:n,b:100})),b.find(".minicolors-grid-inner").css("opacity",1-s/100);break;default:o=y(360-parseInt(T.y*(360/M.height()),10),0,360),n=y(Math.floor(F.x*(100/w.width())),0,100),s=y(100-Math.floor(F.y*(100/w.height())),0,100),g=P({h:o,s:n,b:s}),w.css("backgroundColor",P({h:o,s:100,b:100}))}if(f=v.opacity?parseFloat(1-j.y/C.height()).toFixed(2):1,v.opacity&&i.attr("data-opacity",f),"rgb"===p){var D=S(g),f=""===i.attr("data-opacity")?1:y(parseFloat(i.attr("data-opacity")).toFixed(2),0,1);isNaN(f)&&(f=1),m=i.minicolors("rgbObject").a<1&&D?"rgba("+D.r+", "+D.g+", "+D.b+", "+parseFloat(f)+")":"rgb("+D.r+", "+D.g+", "+D.b+")"}else m=d(g,v.letterCase);i.val(m)}k.find("span").css({backgroundColor:g,opacity:f}),c(i,m,f)}function r(t,a){var o,n,s=t.attr("data-format"),e=t.attr("data-keywords"),r,l,h,u,b,M=t.parent(),x=t.data("minicolors-settings"),I=M.find(".minicolors-swatch"),S=M.find(".minicolors-grid"),F=M.find(".minicolors-slider"),T=M.find(".minicolors-opacity-slider"),j=S.find("[class$=-picker]"),D=F.find("[class$=-picker]"),L=T.find("[class$=-picker]");switch(k(t.val())?(o=C(t.val()),f=y(parseFloat(w(t.val())).toFixed(2),0,1),f&&t.attr("data-opacity",f)):o=d(g(t.val(),!0),x.letterCase),o||(o=d(v(x.defaultValue,!0),x.letterCase)),n=z(o),e=e?i.map(e.split(","),function(t){return i.trim(t.toLowerCase())}):[],m=""!==t.val()&&i.inArray(t.val().toLowerCase(),e)>-1?d(t.val()):k(t.val())?p(t.val()):o,a||t.val(m),x.opacity&&(r=""===t.attr("data-opacity")?1:y(parseFloat(t.attr("data-opacity")).toFixed(2),0,1),isNaN(r)&&(r=1),t.attr("data-opacity",r),I.find("span").css("opacity",r),h=y(T.height()-T.height()*r,0,T.height()),L.css("top",h+"px")),"transparent"===t.val().toLowerCase()&&I.find("span").css("opacity",0),I.find("span").css("backgroundColor",o),x.control){case"wheel":u=y(Math.ceil(.75*n.s),0,S.height()/2),b=n.h*Math.PI/180,l=y(75-Math.cos(b)*u,0,S.width()),h=y(75-Math.sin(b)*u,0,S.height()),j.css({top:h+"px",left:l+"px"}),h=150-n.b/(100/S.height()),""===o&&(h=0),D.css("top",h+"px"),F.css("backgroundColor",P({h:n.h,s:n.s,b:100}));break;case"saturation":l=y(5*n.h/12,0,150),h=y(S.height()-Math.ceil(n.b/(100/S.height())),0,S.height()),j.css({top:h+"px",left:l+"px"}),h=y(F.height()-n.s*(F.height()/100),0,F.height()),D.css("top",h+"px"),F.css("backgroundColor",P({h:n.h,s:100,b:n.b})),M.find(".minicolors-grid-inner").css("opacity",n.s/100);break;case"brightness":l=y(5*n.h/12,0,150),h=y(S.height()-Math.ceil(n.s/(100/S.height())),0,S.height()),j.css({top:h+"px",left:l+"px"}),h=y(F.height()-n.b*(F.height()/100),0,F.height()),D.css("top",h+"px"),F.css("backgroundColor",P({h:n.h,s:n.s,b:100})),M.find(".minicolors-grid-inner").css("opacity",1-n.b/100);break;default:l=y(Math.ceil(n.s/(100/S.width())),0,S.width()),h=y(S.height()-Math.ceil(n.b/(100/S.height())),0,S.height()),j.css({top:h+"px",left:l+"px"}),h=y(F.height()-n.h/(360/F.height()),0,F.height()),D.css("top",h+"px"),S.css("backgroundColor",P({h:n.h,s:100,b:100}))}t.data("minicolors-initialized")&&c(t,m,r)}function c(i,t,a){var o=i.data("minicolors-settings"),n=i.data("minicolors-lastChange");n&&n.value===t&&n.opacity===a||(i.data("minicolors-lastChange",{value:t,opacity:a}),o.change&&(o.changeDelay?(clearTimeout(i.data("minicolors-changeTimeout")),i.data("minicolors-changeTimeout",setTimeout(function(){o.change.call(i.get(0),t,a)},o.changeDelay))):o.change.call(i.get(0),t,a)),i.trigger("change").trigger("input"))}function l(t){var a=g(i(t).val(),!0),o=S(a),n=i(t).attr("data-opacity");return o?(void 0!==n&&i.extend(o,{a:parseFloat(n)}),o):null}function h(t,a){var o=g(i(t).val(),!0),n=S(o),s=i(t).attr("data-opacity");return n?(void 0===s&&(s=1),a?"rgba("+n.r+", "+n.g+", "+n.b+", "+parseFloat(s)+")":"rgb("+n.r+", "+n.g+", "+n.b+")"):null}function d(i,t){return"uppercase"===t?i.toUpperCase():i.toLowerCase()}function g(i,t){return i=i.replace(/^#/g,""),i.match(/^[A-F0-9]{3,6}/gi)?3!==i.length&&6!==i.length?"":(3===i.length&&t&&(i=i[0]+i[0]+i[1]+i[1]+i[2]+i[2]),"#"+i):""}function p(i,t){var a=i.replace(/[^\d,.]/g,""),o=a.split(","),n;return o[0]=y(parseInt(o[0],10),0,255),o[1]=y(parseInt(o[1],10),0,255),o[2]=y(parseInt(o[2],10),0,255),o[3]&&(o[3]=y(parseFloat(o[3],10),0,1)),t?{r:o[0],g:o[1],b:o[2],a:o[3]?o[3]:null}:o[3]?"rgba("+o[0]+", "+o[1]+", "+o[2]+", "+o[3]+")":"rgb("+o[0]+", "+o[1]+", "+o[2]+")"}function v(i,t){return k(i)?p(i):g(i,t)}function y(i,t,a){return t>i&&(i=t),i>a&&(i=a),i}function k(i){return b=i.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i),b&&4===b.length?!0:!1}function w(i){return i=i.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+(\.\d{1,2})?|\.\d{1,2})[\s+]?/i),i&&6===i.length?i[4]:"1"}function M(i){var t={},a=Math.round(i.h),o=Math.round(255*i.s/100),n=Math.round(255*i.b/100);if(0===o)t.r=t.g=t.b=n;else{var s=n,e=(255-o)*n/255,r=(s-e)*(a%60)/60;360===a&&(a=0),60>a?(t.r=s,t.b=e,t.g=e+r):120>a?(t.g=s,t.b=e,t.r=s-r):180>a?(t.g=s,t.r=e,t.b=e+r):240>a?(t.b=s,t.r=e,t.g=s-r):300>a?(t.b=s,t.g=e,t.r=e+r):360>a?(t.r=s,t.g=e,t.b=s-r):(t.r=0,t.g=0,t.b=0)}return{r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)}}function C(i){return i=i.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i),i&&4===i.length?"#"+("0"+parseInt(i[1],10).toString(16)).slice(-2)+("0"+parseInt(i[2],10).toString(16)).slice(-2)+("0"+parseInt(i[3],10).toString(16)).slice(-2):""}function x(t){var a=[t.r.toString(16),t.g.toString(16),t.b.toString(16)];return i.each(a,function(i,t){1===t.length&&(a[i]="0"+t)}),"#"+a.join("")}function P(i){return x(M(i))}function z(i){var t=I(S(i));return 0===t.s&&(t.h=360),t}function I(i){var t={h:0,s:0,b:0},a=Math.min(i.r,i.g,i.b),o=Math.max(i.r,i.g,i.b),n=o-a;return t.b=o,t.s=0!==o?255*n/o:0,0!==t.s?i.r===o?t.h=(i.g-i.b)/n:i.g===o?t.h=2+(i.b-i.r)/n:t.h=4+(i.r-i.g)/n:t.h=-1,t.h*=60,t.h<0&&(t.h+=360),t.s*=100/255,t.b*=100/255,t}function S(i){return i=parseInt(i.indexOf("#")>-1?i.substring(1):i,16),{r:i>>16,g:(65280&i)>>8,b:255&i}}i.minicolors={defaults:{animationSpeed:50,animationEasing:"swing",change:null,changeDelay:0,control:"hue",dataUris:!0,defaultValue:"",format:"hex",hide:null,hideSpeed:100,inline:!1,keywords:"",letterCase:"lowercase",opacity:!1,position:"bottom left",show:null,showSpeed:100,theme:"default"}},i.extend(i.fn,{minicolors:function(s,e){switch(s){case"destroy":return i(this).each(function(){a(i(this))}),i(this);case"hide":return n(),i(this);case"opacity":return void 0===e?i(this).attr("data-opacity"):(i(this).each(function(){r(i(this).attr("data-opacity",e))}),i(this));case"rgbObject":return l(i(this),"rgbaObject"===s);case"rgbString":case"rgbaString":return h(i(this),"rgbaString"===s);case"settings":return void 0===e?i(this).data("minicolors-settings"):(i(this).each(function(){var t=i(this).data("minicolors-settings")||{};a(i(this)),i(this).minicolors(i.extend(!0,t,e))}),i(this));case"show":return o(i(this).eq(0)),i(this);case"value":return void 0===e?i(this).val():(i(this).each(function(){r(i(this).val(e))}),i(this));default:return"create"!==s&&(e=s),i(this).each(function(){t(i(this),e)}),i(this)}}}),i(document).on("mousedown.minicolors touchstart.minicolors",function(t){i(t.target).parents().add(t.target).hasClass("minicolors")||n()}).on("mousedown.minicolors touchstart.minicolors",".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider",function(t){var a=i(this);t.preventDefault(),i(document).data("minicolors-target",a),s(a,t,!0)}).on("mousemove.minicolors touchmove.minicolors",function(t){var a=i(document).data("minicolors-target");a&&s(a,t)}).on("mouseup.minicolors touchend.minicolors",function(){i(this).removeData("minicolors-target")}).on("mousedown.minicolors touchstart.minicolors",".minicolors-swatch",function(t){var a=i(this).parent().find(".minicolors-input");t.preventDefault(),o(a)}).on("focus.minicolors",".minicolors-input",function(){var t=i(this);t.data("minicolors-initialized")&&o(t)}).on("blur.minicolors",".minicolors-input",function(){var t=i(this),a=t.attr("data-keywords"),o=t.data("minicolors-settings"),n,s,e;t.data("minicolors-initialized")&&(a=a?i.map(a.split(","),function(t){return i.trim(t.toLowerCase())}):[],""!==t.val()&&i.inArray(t.val().toLowerCase(),a)>-1?m=t.val():(k(t.val())?s=p(t.val(),!0):(n=g(t.val(),!0),s=n?S(n):null),m=null===s?o.defaultValue:"rgb"===o.format?p(o.opacity?"rgba("+s.r+","+s.g+","+s.b+","+t.attr("data-opacity")+")":"rgb("+s.r+","+s.g+","+s.b+")"):x(s)),e=o.opacity?t.attr("data-opacity"):1,"transparent"===m.toLowerCase()&&(e=0),t.closest(".minicolors").find(".minicolors-swatch > span").css("opacity",e),t.val(m),""===t.val()&&t.val(v(o.defaultValue,!0)),t.val(d(t.val(),o.letterCase)))}).on("keydown.minicolors",".minicolors-input",function(t){var a=i(this);if(a.data("minicolors-initialized"))switch(t.keyCode){case 9:n();break;case 13:case 27:n(),a.blur()}}).on("keyup.minicolors",".minicolors-input",function(){var t=i(this);t.data("minicolors-initialized")&&r(t,!0)}).on("paste.minicolors",".minicolors-input",function(){var t=i(this);t.data("minicolors-initialized")&&setTimeout(function(){r(t,!0)},1)})})}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:theme"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.mongo.Mongo,o=Package.ecmascript.ECMAScript,u=Package.templating.Template,s=Package.underscore._,i=Package.tracker.Tracker,a=Package.tracker.Deps,r=Package["rocketchat:lib"].RocketChat,l=Package["babel-runtime"].babelHelpers,c=Package["ecmascript-runtime"].Symbol,p=Package["ecmascript-runtime"].Map,m=Package["ecmascript-runtime"].Set,d=Package.promise.Promise,f=Package.blaze.Blaze,h=Package.blaze.UI,g=Package.blaze.Handlebars,k=Package.spacebars.Spacebars,v=Package["tap:i18n"].TAPi18next,_=Package["tap:i18n"].TAPi18n,w=Package.htmljs.HTML,b,y;(function(){u.__checkName("message"),u.message=new u("Template.message",function(){var e=this;return w.LI({id:function(){return k.mustache(e.lookup("_id"))},"class":function(){return["message ",k.mustache(e.lookup("isSequential"))," ",k.mustache(e.lookup("system"))," ",k.mustache(e.lookup("t"))," ",k.mustache(e.lookup("own"))," ",k.mustache(e.lookup("isTemp"))," ",k.mustache(e.lookup("chatops"))]},"data-username":function(){return k.mustache(k.dot(e.lookup("u"),"username"))},"data-groupable":function(){return k.mustache(e.lookup("isGroupable"))},"data-date":function(){return k.mustache(e.lookup("date"))},"data-timestamp":function(){return k.mustache(e.lookup("timestamp"))}},"\n ",f.If(function(){return k.call(e.lookup("avatar"))},function(){return["\n ",f.If(function(){return k.call(e.lookup("avatarFromUsername"))},function(){return["\n ",w.A({"class":"thumb user-card-message","data-username":function(){return k.mustache(k.dot(e.lookup("u"),"username"))},tabindex:"1"},f._TemplateWith(function(){return{username:k.call(e.lookup("avatarFromUsername"))}},function(){return k.include(e.lookupTemplate("avatar"))})),"\n "]},function(){return["\n ",w.A({"class":"thumb user-card-message","data-username":function(){return k.mustache(k.dot(e.lookup("u"),"username"))},tabindex:"1"},"\n ",w.DIV({"class":"avatar"},"\n ",w.DIV({"class":"avatar-image",style:function(){return["background-image:url(",k.mustache(e.lookup("avatar")),");"]}}),"\n "),"\n "),"\n "]}),"\n "]},function(){return["\n ",f.If(function(){return k.call(e.lookup("emoji"))},function(){return["\n ",w.A({"class":"thumb user-card-message","data-username":function(){return k.mustache(k.dot(e.lookup("u"),"username"))},tabindex:"1"},"\n ",w.DIV({"class":"avatar"},"\n ",f.View("lookup:getEmoji",function(){return k.makeRaw(k.mustache(e.lookup("getEmoji"),e.lookup("emoji")))}),"\n "),"\n "),"\n "]},function(){return["\n ",w.A({"class":"thumb user-card-message","data-username":function(){return k.mustache(k.dot(e.lookup("u"),"username"))},tabindex:"1"},f._TemplateWith(function(){return{username:k.call(k.dot(e.lookup("u"),"username"))}},function(){return k.include(e.lookupTemplate("avatar"))})),"\n "]}),"\n "]}),"\n ",f.If(function(){return k.call(e.lookup("alias"))},function(){return["\n ",w.A({"class":"user user-card-message","data-username":function(){return k.mustache(k.dot(e.lookup("u"),"username"))},tabindex:"1"},f.View("lookup:alias",function(){return k.mustache(e.lookup("alias"))})," ",w.SPAN({"class":"message-alias"},"@",f.View("lookup:u.username",function(){return k.mustache(k.dot(e.lookup("u"),"username"))}))),"\n "]},function(){return["\n ",w.A({"class":"user user-card-message","data-username":function(){return k.mustache(k.dot(e.lookup("u"),"username"))},tabindex:"1"},f.View("lookup:u.username",function(){return k.mustache(k.dot(e.lookup("u"),"username"))})),"\n "]}),"\n ",w.SPAN({"class":"info"},"\n ",f.Each(function(){return k.call(e.lookup("roleTags"))},function(){return["\n ",w.SPAN({"class":"role-tag"},f.View("lookup:.",function(){return k.mustache(e.lookup("."))})),"\n "]}),"\n ",f.If(function(){return k.call(e.lookup("isBot"))},function(){return["\n ",w.SPAN({"class":"is-bot"},"BOT"),"\n "]}),"\n ",f.If(function(){return k.call(e.lookup("edited"))},function(){return["\n ",w.SPAN({title:function(){return[k.mustache(e.lookup("_"),"edited")," at ",k.mustache(e.lookup("editTime"))," ",k.mustache(e.lookup("_"),"by")," ",k.mustache(e.lookup("editedBy"))]},"class":"time"},"\n ",f.View("lookup:time",function(){return k.mustache(e.lookup("time"))}),"\n "),"\n ",w.SPAN({"class":"edited",title:function(){return[k.mustache(e.lookup("_"),"edited")," at ",k.mustache(e.lookup("editTime"))," ",k.mustache(e.lookup("_"),"by")," ",k.mustache(e.lookup("editedBy"))]}},"\n ",w.I({"class":"icon-edit","aria-label":function(){return k.mustache(e.lookup("_"),"Edited")}}),"\n ",f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"by")}),"\n ",w.A({"class":"thumb thumb-small user-card-message","data-username":function(){return k.mustache(e.lookup("editedBy"))},tabindex:"1"},"\n ",f._TemplateWith(function(){return{username:k.call(e.lookup("editedBy"))}},function(){return k.include(e.lookupTemplate("avatar"))}),"\n "),"\n "),"\n "]},function(){return["\n ",w.SPAN({"class":"time"},f.View("lookup:time",function(){return k.mustache(e.lookup("time"))})),"\n "]}),"\n ",f.If(function(){return k.call(e.lookup("private"))},function(){return["\n ",w.SPAN({"class":"private"},f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"Only_you_can_see_this_message")})),"\n "]}),"\n\n ",w.DIV({"class":"message-cog-container"},"\n ",w.I({"class":"icon-cog message-cog","aria-label":function(){return k.mustache(e.lookup("_"),"Actions")}}),"\n "),"\n "),"\n ",w.DIV({"class":"body",dir:"auto"},"\n ",f.View("lookup:body",function(){return k.makeRaw(k.mustache(e.lookup("body")))}),"\n ",f.If(function(){return k.call(e.lookup("hasOembed"))},function(){return["\n ",f.Each(function(){return k.call(e.lookup("urls"))},function(){return["\n ",f.View("lookup:injectIndex",function(){return k.mustache(e.lookup("injectIndex"),e.lookup("."),e.lookup("@index"))}),"\n ",k.include(e.lookupTemplate("oembedBaseWidget")),"\n "]}),"\n "]}),"\n ",f.Each(function(){return k.call(e.lookup("attachments"))},function(){return["\n ",f.View("lookup:injectIndex",function(){return k.mustache(e.lookup("injectIndex"),e.lookup("."),e.lookup("@index"))}),"\n ",k.include(e.lookupTemplate("messageAttachment")),"\n "]}),"\n "),"\n ",w.UL({"class":function(){return["reactions ",k.mustache(e.lookup("hideReactions"))]}},"\n ",f.Each(function(){return{_sequence:k.call(e.lookup("reactions")),_variable:"reaction"}},function(){return["\n ",w.LI({"data-emoji":function(){return k.mustache(k.dot(e.lookup("reaction"),"emoji"))}},"\n ",w.SPAN({"class":"reaction-emoji"},f._TemplateWith(function(){return k.call(k.dot(e.lookup("reaction"),"emoji"))},function(){return k.include(e.lookupTemplate("emojione"))})),"\n ",w.SPAN({"class":"reaction-count"},f.View("lookup:reaction.count",function(){return k.mustache(k.dot(e.lookup("reaction"),"count"))})),"\n ",w.UL({"class":"people"},"\n ",f.Each(function(){return k.call(k.dot(e.lookup("reaction"),"usernames"))},function(){return["\n ",w.LI(f.View("lookup:.",function(){return k.mustache(e.lookup("."))})),"\n "]}),"\n "),"\n "),"\n "]}),"\n ",w.Raw('<li class="add-reaction">\n <span class="icon-people-plus"></span>\n </li>'),"\n "),"\n ")})}).call(this),function(){u.__checkName("messageBox"),u.messageBox=new u("Template.messageBox",function(){var e=this;return f.If(function(){return k.call(e.lookup("subscribed"))},function(){return["\n ",w.FORM({"class":"message-form",method:"post",action:"/"},"\n ",f._TemplateWith(function(){return k.call(e.lookup("getPopupConfig"))},function(){return k.include(e.lookupTemplate("messagePopupConfig"))}),"\n ",w.DIV({"class":"message-input"},"\n ",w.DIV({"class":"message-buttons file"},"\n ",w.I({"class":"icon-attach file"}),"\n ",w.INPUT({type:"file",accept:function(){return k.mustache(e.lookup("fileUploadAllowedMediaTypes"))}}),"\n "),"\n ",w.DIV({"class":"input-message-container"},"\n ",w.TEXTAREA({dir:"auto",name:"msg",maxlength:function(){return k.mustache(e.lookup("maxMessageLength"))},"class":"input-message autogrow-short",placeholder:function(){return k.mustache(e.lookup("_"),"Message")}}),"\n\n ",w.DIV({"class":"inner-right-toolbar"},"\n ",w.I({"class":"emoji-picker-icon icon-people"}),"\n "),"\n "),"\n\n ",w.DIV({"class":function(){return["message-buttons ",k.mustache(e.lookup("showMic"))," ",k.mustache(e.lookup("showSend"))]}},"\n ",w.DIV({"class":"mic"},"\n ",w.I({"class":"icon-mic","aria-label":function(){return k.mustache(e.lookup("_"),"Record")}}),"\n "),"\n ",w.DIV({"class":"stop-mic hidden"},"\n ",w.I({"class":"icon-stop","aria-label":function(){return k.mustache(e.lookup("_"),"Stop_Recording")}}),"\n "),"\n ",w.DIV({"class":"send-button"},"\n ",w.I({"class":"icon-paper-plane","aria-label":function(){return k.mustache(e.lookup("_"),"Send")}}),"\n "),"\n "),"\n "),"\n ",w.DIV({"class":"users-typing"},"\n ",k.With(function(){return k.call(e.lookup("usersTyping"))},function(){return["\n ",w.STRONG(f.View("lookup:users",function(){return k.mustache(e.lookup("users"))})),"\n ",f.If(function(){return k.call(e.lookup("multi"))},function(){return["\n ",f.If(function(){return k.call(e.lookup("selfTyping"))},function(){return["\n ",f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"are_also_typing")}),"\n "]},function(){return["\n ",f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"are_typing")}),"\n "]}),"\n "]},function(){return["\n ",f.If(function(){return k.call(e.lookup("selfTyping"))},function(){return["\n ",f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"is_also_typing",k.kw({context:"male"}))}),"\n "]},function(){return["\n ",f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"is_typing",k.kw({context:"male"}))}),"\n "]}),"\n "]}),"\n "]}),"\n "),"\n\n ",f.If(function(){return k.call(e.lookup("showFormattingTips"))},function(){return["\n ",w.DIV({"class":"formatting-tips","aria-hidden":"true",dir:"auto"},"\n ",f.If(function(){return k.call(e.lookup("showMarkdown"))},function(){return["\n ",w.B("*",f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"bold")}),"*"),"\n ",w.I("_",f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"italics")}),"_"),"\n ",w.SPAN("~",w.STRIKE(f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"strike")})),"~"),"\n ",w.CODE({"class":"inline"},"`",f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"inline_code")}),"`"),"\n "]}),"\n ",f.If(function(){return k.call(e.lookup("showHighlight"))},function(){return["\n ",w.CODE({"class":"inline"},w.SPAN({"class":"hidden-br"},w.BR()),"```",w.SPAN({"class":"hidden-br"},w.BR()),w.I({"class":"icon-level-down"}),f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"multi")}),w.SPAN({"class":"hidden-br"},w.BR()),w.I({"class":"icon-level-down"}),f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"line")}),w.SPAN({"class":"hidden-br"},w.BR()),w.I({"class":"icon-level-down"}),"```"),"\n "]}),"\n ",f.If(function(){return k.call(e.lookup("showMarkdown"))},function(){return["\n ",w.Q(w.SPAN({"class":"hidden-br"},w.BR()),w.CharRef({html:">",str:">"}),f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"quote")})),"\n "]}),"\n\n "),"\n "]}),"\n ",w.DIV({"class":"editing-commands","aria-hidden":"true",dir:"auto"},"\n ",w.DIV({"class":"editing-commands-cancel"},f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"Esc_to")})," ",w.A(f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"Cancel")}))),"\n ",w.DIV({"class":"editing-commands-save"},f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"Enter_to")})," ",w.A(f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"Save_changes")}))),"\n "),"\n "),"\n "]},function(){return["\n ",f.If(function(){return k.call(e.lookup("canJoin"))},function(){return["\n ",w.DIV("\n ",f.View("lookup:_",function(){return k.makeRaw(k.mustache(e.lookup("_"),"you_are_in_preview_mode_of",k.kw({room_name:e.lookup("roomName")})))}),"\n ",w.BUTTON({"class":"button join"},w.SPAN(w.I({"class":"icon-login"})," ",f.View("lookup:_",function(){return k.mustache(e.lookup("_"),"join")}))),"\n "),"\n "]}),"\n "]})})}.call(this),function(){u.__checkName("messageDropdown"),u.messageDropdown=new u("Template.messageDropdown",function(){var e=this;return w.DIV({"class":"message-dropdown"},"\n ",w.UL("\n ",w.LI({"class":"message-dropdown-close"},w.I({"class":" icon-angle-left","aria-label":function(){return k.mustache(e.lookup("_"),"Close")}})),"\n ",f.If(function(){return k.call(k.dot(e.lookup("actions"),"length"))},function(){return["\n ",f.Each(function(){return k.call(e.lookup("actions"))},function(){return["\n ",w.LI({"class":function(){return[k.mustache(e.lookup("id"))," ",k.mustache(e.lookup("classes"))," message-action"]},title:function(){return k.mustache(e.lookup("_"),e.lookup("i18nLabel"))},"data-id":function(){return k.mustache(e.lookup("id"))}},w.I({"class":function(){return k.mustache(e.lookup("icon"))},"aria-label":function(){return k.mustache(e.lookup("_"),e.lookup("i18nLabel"))}})),"\n "]}),"\n "]}),"\n "),"\n ")})}.call(this),function(){u.__checkName("messagePopup"),u.messagePopup=new u("Template.messagePopup",function(){var e=this;return f.If(function(){return k.call(e.lookup("isOpen"))},function(){return["\n ",w.DIV({"class":"message-popup-position"},"\n ",w.DIV({"class":"message-popup"},"\n ",w.DIV({"class":"message-popup-title"},"\n ",f.View("lookup:title",function(){return k.mustache(e.lookup("title"))}),"\n "),"\n ",w.DIV({"class":"message-popup-items"},"\n ",f.Each(function(){return k.call(e.lookup("data"))},function(){return["\n ",w.DIV({"class":"popup-item","data-id":function(){return k.mustache(e.lookup("_id"))}},"\n ",f._TemplateWith(function(){return{template:k.call(k.dot(e.lookup(".."),"template"))}},function(){return k.include(function(){return k.call(u.__dynamic)})}),"\n "),"\n "]}),"\n "),"\n "),"\n "),"\n "]})})}.call(this),function(){u.__checkName("messagePopupChannel"),u.messagePopupChannel=new u("Template.messagePopupChannel",function(){var e=this;return f.View("lookup:name",function(){return k.mustache(e.lookup("name"))})})}.call(this),function(){u.__checkName("messagePopupConfig"),u.messagePopupConfig=new u("Template.messagePopupConfig",function(){var e=this;return w.DIV({"class":function(){return["message-popup-results ",k.mustache(e.lookup("subscriptionNotReady"))]}},"\n ",f.If(function(){return k.call(e.lookup("emojiEnabled"))},function(){return["\n ",f._TemplateWith(function(){return k.call(e.lookup("popupEmojiConfig"))},function(){return k.include(e.lookupTemplate("messagePopup"))}),"\n "]}),"\n ",f._TemplateWith(function(){return k.call(e.lookup("popupChannelConfig"))},function(){return k.include(e.lookupTemplate("messagePopup"))}),"\n ",f._TemplateWith(function(){return k.call(e.lookup("popupUserConfig"))},function(){return k.include(e.lookupTemplate("messagePopup"))}),"\n ",f._TemplateWith(function(){return k.call(e.lookup("popupSlashCommandsConfig"))},function(){return k.include(e.lookupTemplate("messagePopup"))}),"\n ")})}.call(this),function(){u.__checkName("messagePopupEmoji"),u.messagePopupEmoji=new u("Template.messagePopupEmoji",function(){var e=this;return[f._TemplateWith(function(){return k.call(e.lookup("_id"))},function(){return k.include(e.lookupTemplate("emojione"))}),"\n ",f.View("lookup:_id",function(){return k.mustache(e.lookup("_id"))})]})}.call(this),function(){u.__checkName("messagePopupSlashCommand"),u.messagePopupSlashCommand=new u("Template.messagePopupSlashCommand",function(){var e=this;return[w.STRONG("/",f.View("lookup:_id",function(){return k.mustache(e.lookup("_id"))})),f.If(function(){return k.call(e.lookup("params"))},function(){return[" ",f.View("lookup:params",function(){return k.mustache(e.lookup("params"))})]}),"\n ",w.DIV({"class":"popup-slash-command-description"},w.I(f.View("lookup:description",function(){return k.mustache(e.lookup("description"))})))]})}.call(this),function(){u.__checkName("messagePopupUser"),u.messagePopupUser=new u("Template.messagePopupUser",function(){var e=this;return[f.Unless(function(){return k.call(e.lookup("system"))},function(){return["\n ",w.DIV({"class":function(){return["popup-user-status popup-user-status-",k.mustache(e.lookup("status"))]}}),"\n ",w.DIV({"class":"popup-user-avatar",style:function(){return["background-image:url(",k.mustache(e.lookup("avatarUrlFromUsername"),e.lookup("username")),");"]}}),"\n "]}),"\n ",w.STRONG(f.View("lookup:username",function(){return k.mustache(e.lookup("username"))}))," ",f.View("lookup:name",function(){return k.mustache(e.lookup("name"))})]})}.call(this),function(){b="object"==typeof b?b:{};var n=b,o=[].indexOf||function(e){for(var n=0,t=this.length;t>n;n++)if(n in this&&this[n]===e)return n;return-1};u.message.helpers({isBot:function(){return null!=this.bot?"bot":void 0},roleTags:function(){var e,n,t,o,u;return u=s.union(null!=(e=UserRoles.findOne(null!=(n=this.u)?n._id:void 0))?e.roles:void 0,null!=(t=RoomRoles.findOne({"u._id":null!=(o=this.u)?o._id:void 0,rid:this.rid}))?t.roles:void 0),s.compact(s.map(u,function(e){var n;return null!=(n=r.models.Roles.findOne({_id:e,description:{$exists:1}}))?n.description:void 0}))},isGroupable:function(){return this.groupable===!1?"false":void 0},isSequential:function(){return this.groupable!==!1?"sequential":void 0},avatarFromUsername:function(){return null!=this.avatar&&"@"===this.avatar[0]?this.avatar.replace(/^@/,""):void 0},getEmoji:function(e){return emojione.toImage(e)},own:function(){var n;return(null!=(n=this.u)?n._id:void 0)===e.userId()?"own":void 0},timestamp:function(){return+this.ts},chatops:function(){var e;return(null!=(e=this.u)?e.username:void 0)===r.settings.get("Chatops_Username")?"chatops-message":void 0},time:function(){return moment(this.ts).format(r.settings.get("Message_TimeFormat"))},date:function(){return moment(this.ts).format(r.settings.get("Message_DateFormat"))},isTemp:function(){return this.temp===!0?"temp":void 0},body:function(){return u.instance().body},system:function(){return r.MessageTypes.isSystemMessage(this)?"system":void 0},edited:function(){return u.instance().wasEdited},editTime:function(){return u.instance().wasEdited?moment(this.editedAt).format("LL LT"):void 0},editedBy:function(){var e;return u.instance().wasEdited?(null!=(e=this.editedBy)?e.username:void 0)||"?":""},canEdit:function(){var n,t,o,u,s,i,a;return u=r.authz.hasAtLeastOnePermission("edit-message",this.rid),s=r.settings.get("Message_AllowEditing"),o=(null!=(a=this.u)?a._id:void 0)===e.userId(),u||s&&o?(n=r.settings.get("Message_AllowEditing_BlockEditInMinutes"),null!=n&&0!==n?(null!=this.ts&&(i=moment(this.ts)),null!=i&&(t=moment().diff(i,"minutes")),n>t):!0):void 0},canDelete:function(){var n,t,o,u,s,i,a;return u=r.authz.hasAtLeastOnePermission("delete-message",this.rid),s=r.settings.get("Message_AllowDeleting"),o=(null!=(a=this.u)?a._id:void 0)===e.userId(),u||s&&o?(n=r.settings.get("Message_AllowDeleting_BlockDeleteInMinutes"),null!=n&&0!==n?(null!=this.ts&&(i=moment(this.ts)),null!=i&&(t=moment().diff(i,"minutes")),n>t):!0):void 0},showEditedStatus:function(){return r.settings.get("Message_ShowEditedStatus")},label:function(){return this.i18nLabel?t(this.i18nLabel):this.label?this.label:void 0},hasOembed:function(){var e,n,t,s;return(null!=(e=this.urls)?e.length:void 0)>0&&null!=u.oembedBaseWidget&&r.settings.get("API_Embed")?(n=null!=(t=this.u)?t.username:void 0,o.call(null!=(s=r.settings.get("API_EmbedDisabledFor"))?s.split(","):void 0,n)>=0?!1:!0):!1},reactions:function(){var e,n,o,u,s,i;n=[],u=this.reactions;for(e in u)o=u[e],s=o.usernames.length,i=o.usernames.sort().slice(0,15),s>15&&i.push(t("And_more",{length:s-15})),n.push({emoji:e,count:o.usernames.length,usernames:i});return n},hideReactions:function(){return s.isEmpty(this.reactions)?"hidden":void 0},injectIndex:function(e,n){e.index=n}}),u.message.onCreated(function(){var e;return e=u.currentData(),this.wasEdited=null!=e.editedAt&&!r.MessageTypes.isSystemMessage(e),this.body=function(){var n,t,o;return n=r.MessageTypes.isSystemMessage(e),t=r.MessageTypes.getType(e),null!=(null!=t?t.render:void 0)?e=t.render(e):null!=(null!=t?t.template:void 0)||(null!=(null!=t?t.message:void 0)?e=null!=("function"==typeof t.data?t.data(e):void 0)?_.__(t.message,t.data(e)):_.__(t.message):(null!=(o=e.u)?o.username:void 0)===r.settings.get("Chatops_Username")?(e.html=e.msg,e=r.callbacks.run("renderMentions",e),e=e.html):e=y(e)),n?r.Markdown(e):e}()}),u.message.onViewRendered=function(e){var n;return n=this,this._domrange.onAttached(function(e){var n,t,o,u,s,i,a,l,c,p,m,d;if(s=e.lastNode(),u=s.dataset,p=s.previousElementSibling,l=s.nextElementSibling,n=$(s),o=$(p),t=$(l),null==p?n.addClass("new-day").removeClass("sequential"):null!=(null!=p?p.dataset:void 0)&&(c=p.dataset,c.date!==u.date?n.addClass("new-day").removeClass("sequential"):n.removeClass("new-day"),"false"===c.groupable||"false"===u.groupable?n.removeClass("sequential"):c.username!==u.username||parseInt(u.timestamp)-parseInt(c.timestamp)>1e3*r.settings.get("Message_GroupingPeriod")?n.removeClass("sequential"):n.hasClass("new-day")||n.addClass("sequential")),null!=(null!=l?l.dataset:void 0)&&(a=l.dataset,a.date!==u.date?t.addClass("new-day").removeClass("sequential"):t.removeClass("new-day"),"false"!==a.groupable&&(a.username!==u.username||parseInt(a.timestamp)-parseInt(u.timestamp)>1e3*r.settings.get("Message_GroupingPeriod")?t.removeClass("sequential"):t.hasClass("new-day")||t.addClass("sequential"))),null==l){if(d=$(".messages-container")[0]?null!=(m=f.getView($(".messages-container")[0]))?m.templateInstance():void 0:null,s.classList.contains("own")===!0)return null!=d?d.atBottom=!0:void 0;if((null!=d?d.firstNode:void 0)&&(null!=d?d.atBottom:void 0)===!1)return i=null!=d?d.find(".new-message"):void 0,null!=i?i.className="new-message":void 0}})}}.call(this),function(){b="object"==typeof b?b:{};var n=b,o;o=function(e){return ChatSubscription.find({rid:e}).count()>0},u.messageBox.helpers({roomName:function(){var e,n;return n=Session.get("roomData"+this._id),n?"d"===n.t?null!=(e=ChatSubscription.findOne({rid:this._id},{fields:{name:1}}))?e.name:void 0:n.name:""},showMarkdown:function(){return r.Markdown},showFormattingTips:function(){return r.settings.get("Message_ShowFormattingTips")&&(r.Markdown||r.Highlight)},canJoin:function(){return!!ChatRoom.findOne({_id:this._id,t:"c"})},subscribed:function(){return o(this._id)},getPopupConfig:function(){var e;return e=u.instance(),{getInput:function(){return e.find(".input-message")}}},canRecordAudio:function(){var e,n;return n=/audio\/wav|audio\/\*/i,e=!r.settings.get("FileUpload_MediaTypeWhiteList")||r.settings.get("FileUpload_MediaTypeWhiteList").match(n),r.settings.get("Message_AudioRecorderEnabled")&&(null!=navigator.getUserMedia||null!=navigator.webkitGetUserMedia)&&e&&r.settings.get("FileUpload_Enabled")},usersTyping:function(){var e,n,o;return o=MsgTyping.get(this._id),0!==o.length?1===o.length?{multi:!1,selfTyping:MsgTyping.selfTyping.get(),users:o[0]}:(e=o.pop(),o.length>4&&(e=t("others")),n=o.join(", "),n=[n,e],{multi:!0,selfTyping:MsgTyping.selfTyping.get(),users:n.join(" "+t("and")+" ")}):void 0},fileUploadAllowedMediaTypes:function(){return r.settings.get("FileUpload_MediaTypeWhiteList")},showMic:function(){return u.instance().isMessageFieldEmpty.get()&&u.instance().showMicButton.get()?"show-mic":void 0},showSend:function(){return u.instance().isMessageFieldEmpty.get()&&u.instance().showMicButton.get()?void 0:"show-send"}}),u.messageBox.events({"click .join":function(n){return n.stopPropagation(),n.preventDefault(),e.call("joinRoom",this._id)},"focus .input-message":function(e){return KonchatNotification.removeRoomNotification(this._id)},"click .send-button":function(e,n){var t;return t=n.find(".input-message"),chatMessages[this._id].send(this._id,t),t.focus(),t.updateAutogrow(),n.isMessageFieldEmpty.set(chatMessages[this._id].isEmpty())},"keyup .input-message":function(e,n){return chatMessages[this._id].keyup(this._id,e,n),n.isMessageFieldEmpty.set(chatMessages[this._id].isEmpty())},"paste .input-message":function(e){var n,t,o,u,s;if(null!=e.originalEvent.clipboardData){for(u=e.originalEvent.clipboardData.items,n=[],t=0,s=u.length;s>t;t++)o=u[t],"file"===o.kind&&-1!==o.type.indexOf("image/")&&(e.preventDefault(),n.push({file:o.getAsFile(),name:"Clipboard"}));return n.length>0?fileUpload(n):void 0}},"keydown .input-message":function(e){return chatMessages[this._id].keydown(this._id,e,u.instance())},"click .editing-commands-cancel > a":function(e){return chatMessages[this._id].clearEditing()},"click .editing-commands-save > a":function(e){return chatMessages[this._id].send(this._id,chatMessages.input)},"change .message-form input[type=file]":function(e,n){var t,o,u,s,i,a,r;for(t=e.originalEvent||e,u=t.target.files,u&&0!==u.length||(u=(null!=(r=t.dataTransfer)?r.files:void 0)||[]),s=[],i=0,a=u.length;a>i;i++)o=u[i],s.push({file:o,name:o.name});return fileUpload(s)},"click .message-form .mic":function(e,n){return AudioRecorder.start(function(){return n.$(".stop-mic").removeClass("hidden"),n.$(".mic").addClass("hidden")})},"click .message-form .stop-mic":function(e,n){return AudioRecorder.stop(function(e){return fileUpload([{file:e,type:"audio",name:_.__("Audio record")+".wav"}])}),n.$(".stop-mic").addClass("hidden"),n.$(".mic").removeClass("hidden")}}),u.messageBox.onCreated(function(){return this.isMessageFieldEmpty=new ReactiveVar(!0),this.showMicButton=new ReactiveVar(!1),this.autorun(function(e){return function(){var n,t;return t=/audio\/wav|audio\/\*/i,n=!r.settings.get("FileUpload_MediaTypeWhiteList")||r.settings.get("FileUpload_MediaTypeWhiteList").match(t),e.showMicButton.set(r.settings.get("Message_AudioRecorderEnabled")&&(null!=navigator.getUserMedia||null!=navigator.webkitGetUserMedia)&&n&&r.settings.get("FileUpload_Enabled")?!0:!1)}}(this))})}.call(this),function(){b="object"==typeof b?b:{};var n=b,t,o,a;t=function(e){var n,t;if(null!=e)return null!=e.selectionStart?e.selectionStart:null!=document.selection?(e.focus(),n=document.selection.createRange(),t=document.selection.createRange().text.length,n.moveStart("character",-e.value.length),n.text.length-t):void 0},o=function(e,n){var t;if(null!=e)return null!=e.selectionStart?(e.focus(),e.setSelectionRange(n,n)):null!=document.selection?(t=e.createTextRange(),t.move("character",n),t.select()):void 0},a=function(e,n){return null!=e?e:n},u.messagePopup.onCreated(function(){var n;return n=this,n.textFilter=new ReactiveVar(""),n.textFilterDelay=a(n.data.textFilterDelay,0),n.open=new ReactiveVar(!1),n.hasData=new ReactiveVar(!1),n.value=new ReactiveVar,n.trigger=a(n.data.trigger,"@"),n.triggerAnywhere=a(n.data.triggerAnywhere,!0),n.prefix=a(n.data.prefix,n.trigger),n.suffix=a(n.data.suffix," "),n.triggerAnywhere===!0?n.matchSelectorRegex=a(n.data.matchSelectorRegex,new RegExp("(?:^| )"+n.trigger+"[^\\s]*$")):n.matchSelectorRegex=a(n.data.matchSelectorRegex,new RegExp("(?:^)"+n.trigger+"[^\\s]*$")),n.selectorRegex=a(n.data.selectorRegex,new RegExp(n.trigger+"([^\\s]*)$")),n.replaceRegex=a(n.data.replaceRegex,new RegExp(n.trigger+"[^\\s]*$")),n.getValue=a(n.data.getValue,function(e){return e}),n.up=function(e){return function(){var e,t;return e=n.find(".popup-item.selected"),t=e.previousElementSibling||n.find(".popup-item:last-child"),null!=t?(e.className=e.className.replace(/\sselected/,""),t.className+=" selected",n.value.set(t.getAttribute("data-id"))):void 0}}(this),n.down=function(e){return function(){var e,t;return e=n.find(".popup-item.selected"),t=e.nextElementSibling||n.find(".popup-item"),null!=t?(e.className=e.className.replace(/\sselected/,""),t.className+=" selected",n.value.set(t.getAttribute("data-id"))):void 0}}(this),n.verifySelection=function(e){return function(){var e,t;return e=n.find(".popup-item.selected"),null==e?(t=n.find(".popup-item"),null!=t?(t.className+=" selected",n.value.set(t.getAttribute("data-id"))):n.value.set(void 0)):void 0}}(this),n.onInputKeydown=function(e){return function(e){var t,o;if(n.open.curValue===!0&&n.hasData.curValue===!0)return(38===(t=e.which)||40===t)&&(e.preventDefault(),e.stopPropagation()),13===(o=e.which)||9===o?(n.open.set(!1),n.enterValue(),e.preventDefault(),e.stopPropagation()):void 0}}(this),n.setTextFilter=s.debounce(function(e){return n.textFilter.set(e)},n.textFilterDelay),n.onInputKeyup=function(o){return function(o){var u;return n.open.curValue===!0&&27===o.which?(n.open.set(!1),o.preventDefault(),void o.stopPropagation()):(u=n.input.value,u=u.substr(0,t(n.input)),n.matchSelectorRegex.test(u)?(n.setTextFilter(u.match(n.selectorRegex)[1]),n.open.set(!0)):n.open.set(!1),n.open.curValue===!0?38===o.which?n.up():40===o.which?n.down():e.defer(function(){return n.verifySelection()}):void 0)}}(this),n.enterValue=function(){var e,u,s,i;if(null!=n.value.curValue)return i=n.input.value,e=t(n.input),u=i.substr(0,e),s=i.substr(e),u=u.replace(n.selectorRegex,n.prefix+this.getValue(n.value.curValue,n.data.collection,u)+n.suffix),n.input.value=u+s,o(n.input,u.length)},n.records=new ReactiveVar([]),i.autorun(function(){var t,o;return null!=n.data.collection.find&&n.data.collection.find().count(),t=n.textFilter.get(),null!=t?(o=n.data.getFilter(n.data.collection,t),n.hasData.set(n.data.collection instanceof e.Collection&&null!=o.count&&0===o.count()||0===(null!=o?o.length:void 0)?!1:!0),n.records.set(o),e.defer(function(e){return function(){return n.verifySelection()}}(this))):void 0})}),u.messagePopup.onRendered(function(){var e;return this.input="function"==typeof(e=this.data).getInput?e.getInput():void 0,$(this.input).on("keyup",this.onInputKeyup.bind(this)),$(this.input).on("keydown",this.onInputKeydown.bind(this))}),u.messagePopup.onDestroyed(function(){return $(this.input).off("keyup",this.onInputKeyup),$(this.input).off("keydown",this.onInputKeydown)}),u.messagePopup.events({"mouseenter .popup-item":function(e){var n,t;if(!(e.currentTarget.className.indexOf("selected")>-1))return t=u.instance(),n=t.find(".popup-item.selected"),null!=n&&(n.className=n.className.replace(/\sselected/,"")),e.currentTarget.className+=" selected",t.value.set(this._id)},"click .popup-item":function(e){var n;return n=u.instance(),n.value.set(this._id),n.enterValue(),n.open.set(!1)}}),u.messagePopup.helpers({isOpen:function(){return u.instance().open.get()&&(u.instance().hasData.get()||!u.instance().parentTemplate(1).subscriptionsReady())},data:function(){var e;return e=u.instance(),e.records.get()}})}.call(this),function(){b="object"==typeof b?b:{};var o=b;this.filteredUsers=new n.Collection("filtered-users"),this.filteredUsersMemory=new n.Collection(null),this.channelAutocomplete=new n.Collection("channel-autocomplete"),e.startup(function(){return i.autorun(function(){var n,t;if(null!=e.user()&&null!=Session.get("openedRoom"))return filteredUsersMemory.remove({}),n=r.models.Messages.find({rid:Session.get("openedRoom"),"u.username":{$ne:e.user().username}},{fields:{"u.username":1,ts:1},sort:{ts:-1}}).fetch(),t={},n.forEach(function(e){return null==t[e.u.username]?(t[e.u.username]=!0,filteredUsersMemory.upsert(e.u.username,{_id:e.u.username,username:e.u.username,status:Session.get("user_"+e.u.username+"_status")||"offline",ts:e.ts})):void 0})})}),u.messagePopupConfig.helpers({popupUserConfig:function(){var n,o,a;return o=this,a=u.instance(),n={title:t("People"),collection:filteredUsersMemory,template:"messagePopupUser",getInput:o.getInput,textFilterDelay:200,getFilter:function(n,o){var u,l,c,p;return l=new RegExp(""+RegExp.escape(o),"i"),c=filteredUsersMemory.find({
|
||
ts:{$exists:!0},username:l},{limit:5,sort:{ts:-1}}).fetch(),c.length<5&&""!==(null!=o?o.trim():void 0)&&(p=s.pluck(c,"username"),e.users.find({$and:[{username:l},{username:{$nin:[e.user().username].concat(p)}}]},{limit:5-p.length}).fetch().forEach(function(e){return c.push({_id:e.username,username:e.username,status:e.status})})),c.length<5&&""!==(null!=o?o.trim():void 0)&&(p=s.pluck(c,"username"),i.nonreactive(function(){var e,n,t,o,u;for(u=r.models.Rooms.findOne(Session.get("openedRoom")).usernames,t=[],e=0,n=u.length;n>e;e++)if(o=u[e],-1===p.indexOf(o)&&l.test(o)){if(c.push({_id:o,username:o,status:Session.get("user_"+o+"_status")||"offline"}),c.length>=5)break;t.push(void 0)}else t.push(void 0);return t})),c.length<5&&""!==(null!=o?o.trim():void 0)&&(p=s.pluck(c,"username"),a.userFilter.set({name:o,except:p}),a.subscriptionsReady()&&filteredUsers.find({username:l},{limit:5-p.length}).fetch().forEach(function(e){return c.push({_id:e.username,username:e.username,status:"offline"})})),u={_id:"@all",username:"all",system:!0,name:t("Notify_all_in_this_room"),compatibility:"channel group"},l=new RegExp("(^|\\s)"+RegExp.escape(o),"i"),(l.test(u.username)||l.test(u.compatibility))&&c.unshift(u),a.resultsLength.set(c.length),c},getValue:function(e,n,t){return"@all"===e?t.indexOf(" ")>-1?"all":"all:":t.indexOf(" ")>-1?e:e+":"}}},popupChannelConfig:function(){var e,n,o;return n=this,o=u.instance(),e={title:t("Channels"),collection:channelAutocomplete,trigger:"#",template:"messagePopupChannel",getInput:n.getInput,textFilterDelay:200,getFilter:function(e,n){var t,u;return t=new RegExp(n,"i"),o.channelFilter.set(n),u=o.channelSubscription.ready()?e.find({name:t},{limit:5}).fetch():[],o.resultsLength.set(u.length),u},getValue:function(e,n){var t;return null!=(t=n.findOne(e))?t.name:void 0}}},popupSlashCommandsConfig:function(){var e,n,o;return n=this,o=u.instance(),e={title:t("Commands"),collection:r.slashCommands.commands,trigger:"/",triggerAnywhere:!1,template:"messagePopupSlashCommand",getInput:n.getInput,getFilter:function(e,n){var t,u,s;u=[];for(t in e)if(s=e[t],t.indexOf(n)>-1&&u.push({_id:t,params:s.params,description:_.__(s.description)}),u.length>10)break;return u=u.sort(function(e,n){return e._id>n._id}),o.resultsLength.set(u.length),u}}},emojiEnabled:function(){return null!=r.emoji},popupEmojiConfig:function(){var e,n,o;return null!=r.emoji&&(n=this,o=u.instance(),e={title:t("Emoji"),collection:r.emoji.list,template:"messagePopupEmoji",trigger:":",prefix:"",getInput:n.getInput,getFilter:function(e,n){var t,u,s,i,a,l,c,p,m;if(c=[],i=":"+n,""===n){for(t=[":laughing:",":smiley:",":stuck_out_tongue:",":sunglasses:",":wink:",":innocent:",":flushed:",":disappointed:",":cry:",":heart:",":broken_heart:"],s=0,a=t.length;a>s;s++)p=t[s],c.push({_id:p,data:e[p]});return c}l=r.emoji.asciiList;for(p in l){if(m=l[p],c.length>10)break;p.startsWith(i)&&c.push({_id:p,data:[m]})}for(p in e){if(u=e[p],c.length>10)break;p.startsWith(i)&&c.push({_id:p,data:u})}return c.sort(function(e,n){return e._id.length-n._id.length}),o.resultsLength.set(c.length),c}}),e},subscriptionNotReady:function(){var e;return e=u.instance(),0!==e.resultsLength.get()||e.subscriptionsReady()?void 0:"notready"}}),u.messagePopupConfig.onCreated(function(){var e;return this.userFilter=new ReactiveVar({}),this.channelFilter=new ReactiveVar(""),this.resultsLength=new ReactiveVar(0),e=this,this.autorun(function(){return e.userSubscription=e.subscribe("filteredUsers",e.userFilter.get())}),this.autorun(function(){return e.channelSubscription=e.subscribe("channelAutocomplete",e.channelFilter.get())})})}.call(this),function(){b="object"==typeof b?b:{};var e=b;u.messagePopupEmoji.helpers({value:function(){var e;return e=this.data.length,this.data[e-1]}})}.call(this),function(){y=function(e){var n;if(e.html=e.msg,""!==s.trim(e.html)&&(e.html=s.escapeHTML(e.html)),n=r.callbacks.run("renderMessage",e),n.tokens&&n.tokens.length>0)for(var t=0,o=n.tokens.length;o>t;t++){var u=n.tokens[t];u.text=u.text.replace(/([^\$])(\$[^\$])/gm,"$1$$$2"),n.html=n.html.replace(u.token,u.text)}return e.html=n.html.replace(/\n/gm,"<br/>"),e.html}}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:ui-message"]={renderMessageBody:y}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a=Package["emojione:emojione"].emojione,o=Package["rocketchat:lib"].RocketChat,t=Package["rocketchat:ui-message"].renderMessageBody,n=Package["reactive-var"].ReactiveVar,l=Package.templating.Template,i=Package.ecmascript.ECMAScript,r=Package["tap:i18n"].TAPi18next,s=Package["tap:i18n"].TAPi18n,c=Package.blaze.Blaze,g=Package.blaze.UI,f=Package.blaze.Handlebars,u=Package.spacebars.Spacebars,m=Package["babel-runtime"].babelHelpers,p=Package["ecmascript-runtime"].Symbol,h=Package["ecmascript-runtime"].Map,d=Package["ecmascript-runtime"].Set,b=Package.promise.Promise,k=Package.htmljs.HTML,w;(function(){w="object"==typeof w?w:{};var t=w,n;n=function(){function e(e){return _.trim(e.html)&&(e.html=a.toImage(e.html)),e}return e}(),o.callbacks.add("renderMessage",n,o.callbacks.priority.LOW,"emoji"),e.isClient&&e.startup(function(){return Tracker.autorun(function(){var a,t,l,i,r,s;return(null!=(a=e.user())&&null!=(t=a.settings)&&null!=(l=t.preferences)?l.useEmojis:void 0)||null==(null!=(i=e.user())&&null!=(r=i.settings)&&null!=(s=r.preferences)?s.useEmojis:void 0)?o.callbacks.add("renderMessage",n,o.callbacks.priority.LOW,"emoji"):o.callbacks.remove("renderMessage","emoji")})})}).call(this),function(){w="object"==typeof w?w:{};var t=w;o.emoji=a,o.emoji.imageType="png",o.emoji.sprites=!0,o.emoji.list=a.emojioneList,o.emoji["class"]="Emojione",e.startup(function(){return Tracker.autorun(function(){var o,t,n;return"undefined"!=typeof a&&null!==a?a.ascii=null!=(null!=(o=e.user())&&null!=(t=o.settings)&&null!=(n=t.preferences)?n.convertAsciiEmoji:void 0)?e.user().settings.preferences.convertAsciiEmoji:!0:void 0})})}.call(this),function(){l.__checkName("emojiPicker"),l.emojiPicker=new l("Template.emojiPicker",function(){var e=this;return k.DIV({"class":"emoji-picker"},"\n ",k.DIV({"class":"filter"},"\n ",k.UL("\n ",k.LI({"class":function(){return u.mustache(e.lookup("activeCategory"),"recent")},title:function(){return u.mustache(e.lookup("_"),"Frequently_Used")}},"\n ",k.Raw('<a href="#recent" class="category-link"><i class="icon-recent"></i></a>'),"\n "),"\n ",k.LI({"class":function(){return u.mustache(e.lookup("activeCategory"),"people")},title:function(){return u.mustache(e.lookup("_"),"Smileys_and_People")}},"\n ",k.Raw('<a href="#people" class="category-link"><i class="icon-people"></i></a>'),"\n "),"\n ",k.LI({"class":function(){return u.mustache(e.lookup("activeCategory"),"nature")},title:function(){return u.mustache(e.lookup("_"),"Animals_and_Nature")}},"\n ",k.Raw('<a href="#nature" class="category-link"><i class="icon-nature"></i></a>'),"\n "),"\n ",k.LI({"class":function(){return u.mustache(e.lookup("activeCategory"),"food")},title:function(){return u.mustache(e.lookup("_"),"Food_and_Drink")}},"\n ",k.Raw('<a href="#food" class="category-link"><i class="icon-foods"></i></a>'),"\n "),"\n ",k.LI({"class":function(){return u.mustache(e.lookup("activeCategory"),"activity")},title:function(){return u.mustache(e.lookup("_"),"Activity")}},"\n ",k.Raw('<a href="#activity" class="category-link"><i class="icon-activity"></i></a>'),"\n "),"\n ",k.LI({"class":function(){return u.mustache(e.lookup("activeCategory"),"travel")},title:function(){return u.mustache(e.lookup("_"),"Travel_and_Places")}},"\n ",k.Raw('<a href="#travel" class="category-link"><i class="icon-travel"></i></a>'),"\n "),"\n ",k.LI({"class":function(){return u.mustache(e.lookup("activeCategory"),"objects")},title:function(){return u.mustache(e.lookup("_"),"Objects")}},"\n ",k.Raw('<a href="#objects" class="category-link"><i class="icon-objects"></i></a>'),"\n "),"\n ",k.LI({"class":function(){return u.mustache(e.lookup("activeCategory"),"symbols")},title:function(){return u.mustache(e.lookup("_"),"Symbols")}},"\n ",k.Raw('<a href="#symbols" class="category-link"><i class="icon-symbols"></i></a>'),"\n "),"\n ",k.LI({"class":function(){return u.mustache(e.lookup("activeCategory"),"flags")},title:function(){return u.mustache(e.lookup("_"),"Flags")}},"\n ",k.Raw('<a href="#flags" class="category-link"><i class="icon-flags"></i></a>'),"\n "),"\n ",k.LI({"class":"change-tone"},"\n ",k.A({href:"#change-tone"},k.SPAN({"class":function(){return["current-tone ",u.mustache(e.lookup("currentTone"))]}})),"\n ",k.Raw('<ul class="tone-selector">\n <li><a href="#tone" class="tone" data-tone="0"><span class="tone-0"></span></a></li>\n <li><a href="#tone" class="tone" data-tone="1"><span class="tone-1"></span></a></li>\n <li><a href="#tone" class="tone" data-tone="2"><span class="tone-2"></span></a></li>\n <li><a href="#tone" class="tone" data-tone="3"><span class="tone-3"></span></a></li>\n <li><a href="#tone" class="tone" data-tone="4"><span class="tone-4"></span></a></li>\n <li><a href="#tone" class="tone" data-tone="5"><span class="tone-5"></span></a></li>\n </ul>'),"\n "),"\n "),"\n "),"\n ",k.DIV({"class":"emojis"},"\n ",c.Each(function(){return u.call(e.lookup("category"))},function(){return["\n ",k.UL({"class":function(){return[u.mustache(e.lookup("."))," emoji-list ",u.mustache(e.lookup("isVisible"),e.lookup("."))]}},"\n ",c.View("lookup:emojisByCategory",function(){return u.makeRaw(u.mustache(e.lookup("emojisByCategory"),e.lookup(".")))}),"\n "),"\n "]}),"\n "),"\n ")})}.call(this),function(){var e,t;l.emojiPicker.helpers({category:function(){return Object.keys(e)},emojiByCategory:function(a){return e[a]?e[a]:[]},isVisible:function(e){return l.instance().currentCategory.get()===e?"visible":""},emojisByCategory:function(o){for(var n=e[o].length,i="",r=l.instance().tone,s=0;n>s;s++){var _=e[o][s],c="";r>0&&t.hasOwnProperty(_)&&(c="_tone"+r),i+='<li class="emoji-'+_+'" data-emoji="'+_+'" title="'+_+'">'+a.toImage(":"+_+c+":")+"</li>"}return i},currentTone:function(){return"tone-"+l.instance().tone},activeCategory:function(e){return l.instance().currentCategory.get()===e?"active":""}}),l.emojiPicker.events({"click .emoji-picker":function(e){e.stopPropagation(),e.preventDefault()},"click .category-link":function(e,a){return e.stopPropagation(),e.preventDefault(),a.currentCategory.set(e.currentTarget.hash.substr(1)),!1},"click .change-tone > a":function(e,a){e.stopPropagation(),e.preventDefault(),a.$(".tone-selector").toggleClass("show")},"click .tone-selector .tone":function(e,n){e.stopPropagation(),e.preventDefault();var l=parseInt(e.currentTarget.dataset.tone),i=void 0;i=l>0?"_tone"+l:"";for(var r in m.sanitizeForInObject(t))t.hasOwnProperty(r)&&$(".emoji-"+r).html(a.toImage(":"+r+i+":"));o.EmojiPicker.setTone(l),n.setCurrentTone(l),$(".tone-selector").toggleClass("show")},"click .emoji-list li":function(e){e.stopPropagation();var a=e.currentTarget.dataset.emoji,n=l.instance().tone,i="";n>0&&t.hasOwnProperty(a)&&(i="_tone"+n),o.EmojiPicker.pickEmoji(a+i)}}),l.emojiPicker.onCreated(function(){var a=this;this.tone=o.EmojiPicker.getTone();var t=o.EmojiPicker.getRecent();this.currentCategory=new n(t.length>0?"recent":"people"),t.forEach(function(a){e.recent.push(a)}),this.setCurrentTone=function(e){$(".current-tone").removeClass("tone-"+a.tone),$(".current-tone").addClass("tone-"+e),a.tone=e}}),t={raised_hands:1,clap:1,wave:1,thumbsup:1,thumbsdown:1,punch:1,fist:1,v:1,ok_hand:1,raised_hand:1,open_hands:1,muscle:1,pray:1,point_up:1,point_up_2:1,point_down:1,point_left:1,point_right:1,middle_finger:1,hand_splayed:1,metal:1,vulcan:1,writing_hand:1,nail_care:1,ear:1,nose:1,baby:1,boy:1,girl:1,man:1,woman:1,person_with_blond_hair:1,older_man:1,older_woman:1,man_with_gua_pi_mao:1,man_with_turban:1,cop:1,construction_worker:1,guardsman:1,santa:1,angel:1,princess:1,bride_with_veil:1,walking:1,runner:1,dancer:1,bow:1,information_desk_person:1,no_good:1,ok_woman:1,raising_hand:1,person_with_pouting_face:1,person_frowning:1,haircut:1,massage:1,rowboat:1,swimmer:1,surfer:1,bath:1,basketball_player:1,lifter:1,bicyclist:1,mountain_bicyclist:1,horse_racing:1,spy:1},e={recent:[],symbols:["100","1234","heart","yellow_heart","green_heart","blue_heart","purple_heart","broken_heart","heart_exclamation","two_hearts","revolving_hearts","heartbeat","heartpulse","sparkling_heart","cupid","gift_heart","heart_decoration","peace","cross","star_and_crescent","om_symbol","wheel_of_dharma","star_of_david","six_pointed_star","menorah","yin_yang","orthodox_cross","place_of_worship","ophiuchus","aries","taurus","gemini","cancer","leo","virgo","libra","scorpius","sagittarius","capricorn","aquarius","pisces","id","atom","u7a7a","u5272","radioactive","biohazard","mobile_phone_off","vibration_mode","u6709","u7121","u7533","u55b6","u6708","eight_pointed_black_star","vs","accept","white_flower","ideograph_advantage","secret","congratulations","u5408","u6e80","u7981","a","b","ab","cl","o2","sos","no_entry","name_badge","no_entry_sign","x","o","anger","hotsprings","no_pedestrians","do_not_litter","no_bicycles","non-potable_water","underage","no_mobile_phones","exclamation","grey_exclamation","question","grey_question","bangbang","interrobang","low_brightness","high_brightness","trident","fleur-de-lis","part_alternation_mark","warning","children_crossing","beginner","recycle","u6307","chart","sparkle","eight_spoked_asterisk","negative_squared_cross_mark","white_check_mark","diamond_shape_with_a_dot_inside","cyclone","loop","globe_with_meridians","m","atm","sa","passport_control","customs","baggage_claim","left_luggage","wheelchair","no_smoking","wc","parking","potable_water","mens","womens","baby_symbol","restroom","put_litter_in_its_place","cinema","signal_strength","koko","ng","ok","up","cool","new","free","zero","one","two","three","four","five","six","seven","eight","nine","ten","arrow_forward","pause_button","play_pause","stop_button","record_button","track_next","track_previous","fast_forward","rewind","twisted_rightwards_arrows","repeat","repeat_one","arrow_backward","arrow_up_small","arrow_down_small","arrow_double_up","arrow_double_down","arrow_right","arrow_left","arrow_up","arrow_down","arrow_upper_right","arrow_lower_right","arrow_lower_left","arrow_upper_left","arrow_up_down","left_right_arrow","arrows_counterclockwise","arrow_right_hook","leftwards_arrow_with_hook","arrow_heading_up","arrow_heading_down","hash","asterisk","information_source","abc","abcd","capital_abcd","symbols","musical_note","notes","wavy_dash","curly_loop","heavy_check_mark","arrows_clockwise","heavy_plus_sign","heavy_minus_sign","heavy_division_sign","heavy_multiplication_x","heavy_dollar_sign","currency_exchange","copyright","registered","tm","end","back","on","top","soon","ballot_box_with_check","radio_button","white_circle","black_circle","red_circle","large_blue_circle","small_orange_diamond","small_blue_diamond","large_orange_diamond","large_blue_diamond","small_red_triangle","black_small_square","white_small_square","black_large_square","white_large_square","small_red_triangle_down","black_medium_square","white_medium_square","black_medium_small_square","white_medium_small_square","black_square_button","white_square_button","speaker","sound","loud_sound","mute","mega","loudspeaker","bell","no_bell","black_joker","mahjong","spades","clubs","hearts","diamonds","flower_playing_cards","thought_balloon","anger_right","speech_balloon","clock1","clock2","clock3","clock4","clock5","clock6","clock7","clock8","clock9","clock10","clock11","clock12","clock130","clock230","clock330","clock430","clock530","clock630","clock730","clock830","clock930","clock1030","clock1130","clock1230","eye_in_speech_bubble"],people:["grinning","grimacing","grin","joy","smiley","smile","sweat_smile","laughing","innocent","wink","blush","slight_smile","upside_down","relaxed","yum","relieved","heart_eyes","kissing_heart","kissing","kissing_smiling_eyes","kissing_closed_eyes","stuck_out_tongue_winking_eye","stuck_out_tongue_closed_eyes","stuck_out_tongue","money_mouth","nerd","sunglasses","hugging","smirk","no_mouth","neutral_face","expressionless","unamused","rolling_eyes","thinking","flushed","disappointed","worried","angry","rage","pensive","confused","slight_frown","frowning2","persevere","confounded","tired_face","weary","triumph","open_mouth","scream","fearful","cold_sweat","hushed","frowning","anguished","cry","disappointed_relieved","sleepy","sweat","sob","dizzy_face","astonished","zipper_mouth","mask","thermometer_face","head_bandage","sleeping","zzz","poop","smiling_imp","imp","japanese_ogre","japanese_goblin","skull","ghost","alien","robot","smiley_cat","smile_cat","joy_cat","heart_eyes_cat","smirk_cat","kissing_cat","scream_cat","crying_cat_face","pouting_cat","raised_hands","clap","wave","thumbsup","thumbsdown","punch","fist","v","ok_hand","raised_hand","open_hands","muscle","pray","point_up","point_up_2","point_down","point_left","point_right","middle_finger","hand_splayed","metal","vulcan","writing_hand","nail_care","lips","tongue","ear","nose","eye","eyes","bust_in_silhouette","busts_in_silhouette","speaking_head","baby","boy","girl","man","woman","person_with_blond_hair","older_man","older_woman","man_with_gua_pi_mao","man_with_turban","cop","construction_worker","guardsman","spy","santa","angel","princess","bride_with_veil","walking","runner","dancer","dancers","couple","two_men_holding_hands","two_women_holding_hands","bow","information_desk_person","no_good","ok_woman","raising_hand","person_with_pouting_face","person_frowning","haircut","massage","couple_with_heart","couple_ww","couple_mm","couplekiss","kiss_ww","kiss_mm","family","family_mwg","family_mwgb","family_mwbb","family_mwgg","family_wwb","family_wwg","family_wwgb","family_wwbb","family_wwgg","family_mmb","family_mmg","family_mmgb","family_mmbb","family_mmgg","womans_clothes","shirt","jeans","necktie","dress","bikini","kimono","lipstick","kiss","footprints","high_heel","sandal","boot","mans_shoe","athletic_shoe","womans_hat","tophat","helmet_with_cross","mortar_board","crown","school_satchel","pouch","purse","handbag","briefcase","eyeglasses","dark_sunglasses","ring","closed_umbrella"],nature:["dog","cat","mouse","hamster","rabbit","bear","panda_face","koala","tiger","lion_face","cow","pig","pig_nose","frog","octopus","monkey_face","see_no_evil","hear_no_evil","speak_no_evil","monkey","chicken","penguin","bird","baby_chick","hatching_chick","hatched_chick","wolf","boar","horse","unicorn","bee","bug","snail","beetle","ant","spider","scorpion","crab","snake","turtle","tropical_fish","fish","blowfish","dolphin","whale","whale2","crocodile","leopard","tiger2","water_buffalo","ox","cow2","dromedary_camel","camel","elephant","goat","ram","sheep","racehorse","pig2","rat","mouse2","rooster","turkey","dove","dog2","poodle","cat2","rabbit2","chipmunk","feet","dragon","dragon_face","cactus","christmas_tree","evergreen_tree","deciduous_tree","palm_tree","seedling","herb","shamrock","four_leaf_clover","bamboo","tanabata_tree","leaves","fallen_leaf","maple_leaf","ear_of_rice","hibiscus","sunflower","rose","tulip","blossom","cherry_blossom","bouquet","mushroom","chestnut","jack_o_lantern","shell","spider_web","earth_americas","earth_africa","earth_asia","full_moon","waning_gibbous_moon","last_quarter_moon","waning_crescent_moon","new_moon","waxing_crescent_moon","first_quarter_moon","waxing_gibbous_moon","new_moon_with_face","full_moon_with_face","first_quarter_moon_with_face","last_quarter_moon_with_face","sun_with_face","crescent_moon","star","star2","dizzy","sparkles","comet","sunny","white_sun_small_cloud","partly_sunny","white_sun_cloud","white_sun_rain_cloud","cloud","cloud_rain","thunder_cloud_rain","cloud_lightning","zap","fire","boom","snowflake","cloud_snow","snowman2","snowman","wind_blowing_face","dash","cloud_tornado","fog","umbrella2","umbrella","droplet","sweat_drops","ocean"],food:["green_apple","apple","pear","tangerine","lemon","banana","watermelon","grapes","strawberry","melon","cherries","peach","pineapple","tomato","eggplant","hot_pepper","corn","sweet_potato","honey_pot","bread","cheese","poultry_leg","meat_on_bone","fried_shrimp","egg","hamburger","fries","hotdog","pizza","spaghetti","taco","burrito","ramen","stew","fish_cake","sushi","bento","curry","rice_ball","rice","rice_cracker","oden","dango","shaved_ice","ice_cream","icecream","cake","birthday","custard","candy","lollipop","chocolate_bar","popcorn","doughnut","cookie","beer","beers","wine_glass","cocktail","tropical_drink","champagne","sake","tea","coffee","baby_bottle","fork_and_knife","fork_knife_plate"],activity:["soccer","basketball","football","baseball","tennis","volleyball","rugby_football","8ball","golf","golfer","ping_pong","badminton","hockey","field_hockey","cricket","ski","skier","snowboarder","ice_skate","bow_and_arrow","fishing_pole_and_fish","rowboat","swimmer","surfer","bath","basketball_player","lifter","bicyclist","mountain_bicyclist","horse_racing","levitate","trophy","running_shirt_with_sash","medal","military_medal","reminder_ribbon","rosette","ticket","tickets","performing_arts","art","circus_tent","microphone","headphones","musical_score","musical_keyboard","saxophone","trumpet","guitar","violin","clapper","video_game","space_invader","dart","game_die","slot_machine","bowling"],travel:["red_car","taxi","blue_car","bus","trolleybus","race_car","police_car","ambulance","fire_engine","minibus","truck","articulated_lorry","tractor","motorcycle","bike","rotating_light","oncoming_police_car","oncoming_bus","oncoming_automobile","oncoming_taxi","aerial_tramway","mountain_cableway","suspension_railway","railway_car","train","monorail","bullettrain_side","bullettrain_front","light_rail","mountain_railway","steam_locomotive","train2","metro","tram","station","helicopter","airplane_small","airplane","airplane_departure","airplane_arriving","sailboat","motorboat","speedboat","ferry","cruise_ship","rocket","satellite_orbital","seat","anchor","construction","fuelpump","busstop","vertical_traffic_light","traffic_light","checkered_flag","ship","ferris_wheel","roller_coaster","carousel_horse","construction_site","foggy","tokyo_tower","factory","fountain","rice_scene","mountain","mountain_snow","mount_fuji","volcano","japan","camping","tent","park","motorway","railway_track","sunrise","sunrise_over_mountains","desert","beach","island","city_sunset","city_dusk","cityscape","night_with_stars","bridge_at_night","milky_way","stars","sparkler","fireworks","rainbow","homes","european_castle","japanese_castle","stadium","statue_of_liberty","house","house_with_garden","house_abandoned","office","department_store","post_office","european_post_office","hospital","bank","hotel","convenience_store","school","love_hotel","wedding","classical_building","church","mosque","synagogue","kaaba","shinto_shrine"],objects:["watch","iphone","calling","computer","keyboard","desktop","printer","mouse_three_button","trackball","joystick","compression","minidisc","floppy_disk","cd","dvd","vhs","camera","camera_with_flash","video_camera","movie_camera","projector","film_frames","telephone_receiver","telephone","pager","fax","tv","radio","microphone2","level_slider","control_knobs","stopwatch","timer","alarm_clock","clock","hourglass_flowing_sand","hourglass","satellite","battery","electric_plug","bulb","flashlight","candle","wastebasket","oil","money_with_wings","dollar","yen","euro","pound","moneybag","credit_card","gem","scales","wrench","hammer","hammer_pick","tools","pick","nut_and_bolt","gear","chains","gun","bomb","knife","dagger","crossed_swords","shield","smoking","skull_crossbones","coffin","urn","amphora","crystal_ball","prayer_beads","barber","alembic","telescope","microscope","hole","pill","syringe","thermometer","label","bookmark","toilet","shower","bathtub","key","key2","couch","sleeping_accommodation","bed","door","bellhop","frame_photo","map","beach_umbrella","moyai","shopping_bags","balloon","flags","ribbon","gift","confetti_ball","tada","dolls","wind_chime","crossed_flags","izakaya_lantern","envelope","envelope_with_arrow","incoming_envelope","e-mail","love_letter","postbox","mailbox_closed","mailbox","mailbox_with_mail","mailbox_with_no_mail","package","postal_horn","inbox_tray","outbox_tray","scroll","page_with_curl","bookmark_tabs","bar_chart","chart_with_upwards_trend","chart_with_downwards_trend","page_facing_up","date","calendar","calendar_spiral","card_index","card_box","ballot_box","file_cabinet","clipboard","notepad_spiral","file_folder","open_file_folder","dividers","newspaper2","newspaper","notebook","closed_book","green_book","blue_book","orange_book","notebook_with_decorative_cover","ledger","books","book","link","paperclip","paperclips","scissors","triangular_ruler","straight_ruler","pushpin","round_pushpin","triangular_flag_on_post","flag_white","flag_black","closed_lock_with_key","lock","unlock","lock_with_ink_pen","pen_ballpoint","pen_fountain","black_nib","pencil","pencil2","crayon","paintbrush","mag","mag_right"],flags:["flag_ac","flag_af","flag_al","flag_dz","flag_ad","flag_ao","flag_ai","flag_ag","flag_ar","flag_am","flag_aw","flag_au","flag_at","flag_az","flag_bs","flag_bh","flag_bd","flag_bb","flag_by","flag_be","flag_bz","flag_bj","flag_bm","flag_bt","flag_bo","flag_ba","flag_bw","flag_br","flag_bn","flag_bg","flag_bf","flag_bi","flag_cv","flag_kh","flag_cm","flag_ca","flag_ky","flag_cf","flag_td","flag_cl","flag_cn","flag_co","flag_km","flag_cg","flag_cd","flag_cr","flag_hr","flag_cu","flag_cy","flag_cz","flag_dk","flag_dj","flag_dm","flag_do","flag_ec","flag_eg","flag_sv","flag_gq","flag_er","flag_ee","flag_et","flag_fk","flag_fo","flag_fj","flag_fi","flag_fr","flag_pf","flag_ga","flag_gm","flag_ge","flag_de","flag_gh","flag_gi","flag_gr","flag_gl","flag_gd","flag_gu","flag_gt","flag_gn","flag_gw","flag_gy","flag_ht","flag_hn","flag_hk","flag_hu","flag_is","flag_in","flag_id","flag_ir","flag_iq","flag_ie","flag_il","flag_it","flag_ci","flag_jm","flag_jp","flag_je","flag_jo","flag_kz","flag_ke","flag_ki","flag_xk","flag_kw","flag_kg","flag_la","flag_lv","flag_lb","flag_ls","flag_lr","flag_ly","flag_li","flag_lt","flag_lu","flag_mo","flag_mk","flag_mg","flag_mw","flag_my","flag_mv","flag_ml","flag_mt","flag_mh","flag_mr","flag_mu","flag_mx","flag_fm","flag_md","flag_mc","flag_mn","flag_me","flag_ms","flag_ma","flag_mz","flag_mm","flag_na","flag_nr","flag_np","flag_nl","flag_nc","flag_nz","flag_ni","flag_ne","flag_ng","flag_nu","flag_kp","flag_no","flag_om","flag_pk","flag_pw","flag_ps","flag_pa","flag_pg","flag_py","flag_pe","flag_ph","flag_pl","flag_pt","flag_pr","flag_qa","flag_ro","flag_ru","flag_rw","flag_sh","flag_kn","flag_lc","flag_vc","flag_ws","flag_sm","flag_st","flag_sa","flag_sn","flag_rs","flag_sc","flag_sl","flag_sg","flag_sk","flag_si","flag_sb","flag_so","flag_za","flag_kr","flag_es","flag_lk","flag_sd","flag_sr","flag_sz","flag_se","flag_ch","flag_sy","flag_tw","flag_tj","flag_tz","flag_th","flag_tl","flag_tg","flag_to","flag_tt","flag_tn","flag_tr","flag_tm","flag_tv","flag_ug","flag_ua","flag_ae","flag_gb","flag_us","flag_vi","flag_uy","flag_uz","flag_vu","flag_va","flag_ve","flag_vn","flag_wf","flag_eh","flag_ye","flag_zm","flag_zw","flag_re","flag_ax","flag_ta","flag_io","flag_bq","flag_cx","flag_cc","flag_gg","flag_im","flag_yt","flag_nf","flag_pn","flag_bl","flag_pm","flag_gs","flag_tk","flag_bv","flag_hm","flag_sj","flag_um","flag_ic","flag_ea","flag_cp","flag_dg","flag_as","flag_aq","flag_vg","flag_ck","flag_cw","flag_eu","flag_gf","flag_tf","flag_gp","flag_mq","flag_mp","flag_sx","flag_ss","flag_tc","flag_mf"],modifier:["tone1","tone2","tone3","tone4","tone5"]}}.call(this),function(){o.EmojiPicker={width:390,height:203,initiated:!1,input:null,source:null,recent:[],tone:null,opened:!1,pickCallback:null,init:function(){var e=this;this.initiated||(this.initiated=!0,this.recent=window.localStorage.getItem("emoji.recent")?window.localStorage.getItem("emoji.recent").split(","):[],this.tone=window.localStorage.getItem("emoji.tone")||0,c.render(l.emojiPicker,document.body),$(document).click(function(a){e.opened&&($(a.target).closest(".emoji-picker").length||$(a.target).is(".emoji-picker")||e.opened&&e.close())}),$(window).resize(_.debounce(function(){e.opened&&e.setPosition()},300)))},isOpened:function(){return this.opened},setTone:function(e){this.tone=e,window.localStorage.setItem("emoji.tone",e)},getTone:function(){return this.tone},getRecent:function(){return this.recent},setPosition:function(){var e=$(this.source).offset(),a=e.left-this.width+65,o=e.top-this.height-5;return 0>a&&(a=10),0>o&&(o=10),$(".emoji-picker").css({top:o+"px",left:a+"px"})},open:function(e,a){this.initiated||this.init(),this.pickCallback=a,this.source=e,this.setPosition().addClass("show"),this.opened=!0},close:function(){$(".emoji-picker").removeClass("show"),this.opened=!1},pickEmoji:function(e){this.pickCallback(e),this.close(),this.addRecent(e)},addRecent:function(e){var a=this.recent.indexOf(e);-1!==a&&this.recent.splice(a,1),this.recent.unshift(e),window.localStorage.setItem("emoji.recent",this.recent),this.updateRecent()},updateRecent:function(){for(var e=this.recent.length,o="",t=0;e>t;t++){var n=this.recent[t],l="";o+='<li class="emoji-'+n+'" data-emoji="'+n+'">'+a.toImage(":"+n+l+":")+"</li>"}$(".recent.emoji-list").html(o)}}}.call(this),function(){l.messageBox.events({"click .emoji-picker-icon":function(e){e.stopPropagation(),o.EmojiPicker.isOpened()?o.EmojiPicker.close():o.EmojiPicker.open(e.currentTarget,function(a){var o=$(e.currentTarget).parent().parent().find(".input-message"),t=":"+a+":",n=o.prop("selectionStart"),l=o.val();o.val(l.substring(0,n)+t+l.substring(n)),o.focus(),o.prop("selectionStart",n+t.length),o.prop("selectionEnd",n+t.length)})}}),l.messageBox.onCreated(function(){o.EmojiPicker.init()})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:emojione"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;(function(){!function(){var e=function(e){"use strict";function t(e){if(e.paused||e.ended||x)return!1;try{c.clearRect(0,0,f,s),c.drawImage(e,0,0,f,s)}catch(o){}b=setTimeout(function(){t(e)},O.duration),L.setIcon(h)}function o(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(e,t,o,n){return t+t+o+o+n+n});var o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16)}:!1}function n(e,t){var o={},n;for(n in e)o[n]=e[n];for(n in t)o[n]=t[n];return o}function r(){return v.hidden||v.msHidden||v.webkitHidden||v.mozHidden}e=e?e:{};var i={bgColor:"#d00",textColor:"#fff",fontFamily:"sans-serif",fontStyle:"bold",type:"circle",position:"down",animation:"slide",elementId:!1,dataUrl:!1,win:window},a,l,s,f,h,c,d,u,y,w,g,x,p,m,b,v;p={},p.ff="undefined"!=typeof InstallTrigger,p.chrome=!!window.chrome,p.opera=!!window.opera||navigator.userAgent.indexOf("Opera")>=0,p.ie=!1,p.safari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,p.supported=p.chrome||p.ff||p.opera;var C=[];g=function(){},u=x=!1;var M=function(){a=n(i,e),a.bgColor=o(a.bgColor),a.textColor=o(a.textColor),a.position=a.position.toLowerCase(),a.animation=O.types[""+a.animation]?a.animation:i.animation,v=a.win.document;var t=a.position.indexOf("up")>-1,r=a.position.indexOf("left")>-1;if(t||r)for(var u in O.types)for(var y=0;y<O.types[u].length;y++){var w=O.types[u][y];t&&(w.y<.6?w.y=w.y-.4:w.y=w.y-2*w.y+(1-w.w)),r&&(w.x<.6?w.x=w.x-.4:w.x=w.x-2*w.x+(1-w.h)),O.types[u][y]=w}a.type=A[""+a.type]?a.type:i.type,l=L.getIcon(),h=document.createElement("canvas"),d=document.createElement("img"),l.hasAttribute("href")?(d.setAttribute("crossOrigin","anonymous"),d.onload=function(){s=d.height>0?d.height:32,f=d.width>0?d.width:32,h.height=s,h.width=f,c=h.getContext("2d"),E.ready()},d.setAttribute("src",l.getAttribute("href"))):(d.onload=function(){s=32,f=32,d.height=s,d.width=f,h.height=s,h.width=f,c=h.getContext("2d"),E.ready()},d.setAttribute("src",""))},E={};E.ready=function(){u=!0,E.reset(),g()},E.reset=function(){u&&(C=[],y=!1,w=!1,c.clearRect(0,0,f,s),c.drawImage(d,0,0,f,s),L.setIcon(h),window.clearTimeout(m),window.clearTimeout(b))},E.start=function(){if(u&&!w){var e=function(){y=C[0],w=!1,C.length>0&&(C.shift(),E.start())};if(C.length>0){w=!0;var t=function(){["type","animation","bgColor","textColor","fontFamily","fontStyle"].forEach(function(e){e in C[0].options&&(a[e]=C[0].options[e])}),O.run(C[0].options,function(){e()},!1)};y?O.run(y.options,function(){t()},!0):t()}}};var A={},I=function(e){return e.n="number"==typeof e.n?Math.abs(0|e.n):e.n,e.x=f*e.x,e.y=s*e.y,e.w=f*e.w,e.h=s*e.h,e.len=(""+e.n).length,e};A.circle=function(e){e=I(e);var t=!1;2===e.len?(e.x=e.x-.4*e.w,e.w=1.4*e.w,t=!0):e.len>=3&&(e.x=e.x-.65*e.w,e.w=1.65*e.w,t=!0),c.clearRect(0,0,f,s),c.drawImage(d,0,0,f,s),c.beginPath(),c.font=a.fontStyle+" "+Math.floor(e.h*(e.n>99?.85:1))+"px "+a.fontFamily,c.textAlign="center",t?(c.moveTo(e.x+e.w/2,e.y),c.lineTo(e.x+e.w-e.h/2,e.y),c.quadraticCurveTo(e.x+e.w,e.y,e.x+e.w,e.y+e.h/2),c.lineTo(e.x+e.w,e.y+e.h-e.h/2),c.quadraticCurveTo(e.x+e.w,e.y+e.h,e.x+e.w-e.h/2,e.y+e.h),c.lineTo(e.x+e.h/2,e.y+e.h),c.quadraticCurveTo(e.x,e.y+e.h,e.x,e.y+e.h-e.h/2),c.lineTo(e.x,e.y+e.h/2),c.quadraticCurveTo(e.x,e.y,e.x+e.h/2,e.y)):c.arc(e.x+e.w/2,e.y+e.h/2,e.h/2,0,2*Math.PI),c.fillStyle="rgba("+a.bgColor.r+","+a.bgColor.g+","+a.bgColor.b+","+e.o+")",c.fill(),c.closePath(),c.beginPath(),c.stroke(),c.fillStyle="rgba("+a.textColor.r+","+a.textColor.g+","+a.textColor.b+","+e.o+")","number"==typeof e.n&&e.n>999?c.fillText((e.n>9999?9:Math.floor(e.n/1e3))+"k+",Math.floor(e.x+e.w/2),Math.floor(e.y+e.h-.2*e.h)):c.fillText(e.n,Math.floor(e.x+e.w/2),Math.floor(e.y+e.h-.15*e.h)),c.closePath()},A.rectangle=function(e){e=I(e);var t=!1;2===e.len?(e.x=e.x-.4*e.w,e.w=1.4*e.w,t=!0):e.len>=3&&(e.x=e.x-.65*e.w,e.w=1.65*e.w,t=!0),c.clearRect(0,0,f,s),c.drawImage(d,0,0,f,s),c.beginPath(),c.font=a.fontStyle+" "+Math.floor(e.h*(e.n>99?.9:1))+"px "+a.fontFamily,c.textAlign="center",c.fillStyle="rgba("+a.bgColor.r+","+a.bgColor.g+","+a.bgColor.b+","+e.o+")",c.fillRect(e.x,e.y,e.w,e.h),c.fillStyle="rgba("+a.textColor.r+","+a.textColor.g+","+a.textColor.b+","+e.o+")","number"==typeof e.n&&e.n>999?c.fillText((e.n>9999?9:Math.floor(e.n/1e3))+"k+",Math.floor(e.x+e.w/2),Math.floor(e.y+e.h-.2*e.h)):c.fillText(e.n,Math.floor(e.x+e.w/2),Math.floor(e.y+e.h-.15*e.h)),c.closePath()};var T=function(e,t){t=("string"==typeof t?{animation:t}:t)||{},g=function(){try{if("number"==typeof e?e>0:""!==e){var n={type:"badge",options:{n:e}};if("animation"in t&&O.types[""+t.animation]&&(n.options.animation=""+t.animation),"type"in t&&A[""+t.type]&&(n.options.type=""+t.type),["bgColor","textColor"].forEach(function(e){e in t&&(n.options[e]=o(t[e]))}),["fontStyle","fontFamily"].forEach(function(e){e in t&&(n.options[e]=t[e])}),C.push(n),C.length>100)throw new Error("Too many badges requests in queue.");E.start()}else E.reset()}catch(r){throw new Error("Error setting badge. Message: "+r.message)}},u&&g()},U=function(e){g=function(){try{var t=e.width,o=e.height,n=document.createElement("img"),r=o/s>t/f?t/f:o/s;n.setAttribute("crossOrigin","anonymous"),n.onload=function(){c.clearRect(0,0,f,s),c.drawImage(n,0,0,f,s),L.setIcon(h)},n.setAttribute("src",e.getAttribute("src")),n.height=o/r,n.width=t/r}catch(i){throw new Error("Error setting image. Message: "+i.message)}},u&&g()},R=function(e){g=function(){try{if("stop"===e)return x=!0,E.reset(),void(x=!1);e.addEventListener("play",function(){t(this)},!1)}catch(o){throw new Error("Error setting video. Message: "+o.message)}},u&&g()},k=function(e){if(window.URL&&window.URL.createObjectURL||(window.URL=window.URL||{},window.URL.createObjectURL=function(e){return e}),p.supported){var o=!1;navigator.getUserMedia=navigator.getUserMedia||navigator.oGetUserMedia||navigator.msGetUserMedia||navigator.mozGetUserMedia||navigator.webkitGetUserMedia,g=function(){try{if("stop"===e)return x=!0,E.reset(),void(x=!1);o=document.createElement("video"),o.width=f,o.height=s,navigator.getUserMedia({video:!0,audio:!1},function(e){o.src=URL.createObjectURL(e),o.play(),t(o)},function(){})}catch(n){throw new Error("Error setting webcam. Message: "+n.message)}},u&&g()}},L={};L.getIcon=function(){var e=!1,t=function(){for(var e=v.getElementsByTagName("head")[0].getElementsByTagName("link"),t=e.length,o=t-1;o>=0;o--)if(/(^|\s)icon(\s|$)/i.test(e[o].getAttribute("rel")))return e[o];return!1};return a.element?e=a.element:a.elementId?(e=v.getElementById(a.elementId),e.setAttribute("href",e.getAttribute("src"))):(e=t(),e===!1&&(e=v.createElement("link"),e.setAttribute("rel","icon"),v.getElementsByTagName("head")[0].appendChild(e))),e.setAttribute("type","image/png"),e},L.setIcon=function(e){var t=e.toDataURL("image/png");if(a.dataUrl&&a.dataUrl(t),a.element)a.element.setAttribute("href",t),a.element.setAttribute("src",t);else if(a.elementId){var o=v.getElementById(a.elementId);o.setAttribute("href",t),o.setAttribute("src",t)}else if(p.ff||p.opera){var n=l;l=v.createElement("link"),p.opera&&l.setAttribute("rel","icon"),l.setAttribute("rel","icon"),l.setAttribute("type","image/png"),v.getElementsByTagName("head")[0].appendChild(l),l.setAttribute("href",t),n.parentNode&&n.parentNode.removeChild(n)}else l.setAttribute("href",t)};var O={};return O.duration=40,O.types={},O.types.fade=[{x:.4,y:.4,w:.6,h:.6,o:0},{x:.4,y:.4,w:.6,h:.6,o:.1},{x:.4,y:.4,w:.6,h:.6,o:.2},{x:.4,y:.4,w:.6,h:.6,o:.3},{x:.4,y:.4,w:.6,h:.6,o:.4},{x:.4,y:.4,w:.6,h:.6,o:.5},{x:.4,y:.4,w:.6,h:.6,o:.6},{x:.4,y:.4,w:.6,h:.6,o:.7},{x:.4,y:.4,w:.6,h:.6,o:.8},{x:.4,y:.4,w:.6,h:.6,o:.9},{x:.4,y:.4,w:.6,h:.6,o:1}],O.types.none=[{x:.4,y:.4,w:.6,h:.6,o:1}],O.types.pop=[{x:1,y:1,w:0,h:0,o:1},{x:.9,y:.9,w:.1,h:.1,o:1},{x:.8,y:.8,w:.2,h:.2,o:1},{x:.7,y:.7,w:.3,h:.3,o:1},{x:.6,y:.6,w:.4,h:.4,o:1},{x:.5,y:.5,w:.5,h:.5,o:1},{x:.4,y:.4,w:.6,h:.6,o:1}],O.types.popFade=[{x:.75,y:.75,w:0,h:0,o:0},{x:.65,y:.65,w:.1,h:.1,o:.2},{x:.6,y:.6,w:.2,h:.2,o:.4},{x:.55,y:.55,w:.3,h:.3,o:.6},{x:.5,y:.5,w:.4,h:.4,o:.8},{x:.45,y:.45,w:.5,h:.5,o:.9},{x:.4,y:.4,w:.6,h:.6,o:1}],O.types.slide=[{x:.4,y:1,w:.6,h:.6,o:1},{x:.4,y:.9,w:.6,h:.6,o:1},{x:.4,y:.9,w:.6,h:.6,o:1},{x:.4,y:.8,w:.6,h:.6,o:1},{x:.4,y:.7,w:.6,h:.6,o:1},{x:.4,y:.6,w:.6,h:.6,o:1},{x:.4,y:.5,w:.6,h:.6,o:1},{x:.4,y:.4,w:.6,h:.6,o:1}],O.run=function(e,t,o,i){var l=O.types[r()?"none":a.animation];return i=o===!0?"undefined"!=typeof i?i:l.length-1:"undefined"!=typeof i?i:0,t=t?t:function(){},i<l.length&&i>=0?(A[a.type](n(e,l[i])),m=setTimeout(function(){o?i-=1:i+=1,O.run(e,t,o,i)},O.duration),L.setIcon(h),void 0):void t()},M(),{badge:T,video:R,image:U,webcam:k,reset:E.reset,browser:{supported:p.supported}}};"undefined"!=typeof define&&define.amd?define([],function(){return e}):"undefined"!=typeof module&&module.exports?module.exports=e:this.Favico=e}()}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:favico"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.check.check,o=Package.check.Match,n=Package["matb33:collection-hooks"].CollectionHooks,r=Package.mongo.Mongo,i=Package["reactive-var"].ReactiveVar,a=Package.templating.Template,s=Package.underscore._,l=Package.blaze.Blaze,f=Package.blaze.UI,p=Package.blaze.Handlebars,c=Package.spacebars.Spacebars,u=Package.htmljs.HTML,y;(function(){var t={};y={store:{},getTempFilePath:function(e){return y.config.tmpDir+"/"+e},getStore:function(e){return t[e]},getStores:function(){return t},importFromURL:function(t,o,n,r){e.call("ufsImportURL",t,o,n&&n.getName(),r)}},e.isServer&&(y.generateToken=function(e){return(e||"xyxyxyxyxy").replace(/[xy]/g,function(e){var t=16*Math.random()|0,o="x"==e?t:3&t|8,n=o.toString(16);return Math.round(Math.random())?n.toUpperCase():n})}),e.isClient&&(y.readAsArrayBuffer=function(e,t){if("function"!=typeof t)throw new TypeError("callback is not a function");for(var o=e.target.files,n=0;n<o.length;n+=1){var r=o[n];!function(e){var o=new FileReader;o.onload=function(o){t.call(y,o.target.result,e)},o.readAsArrayBuffer(e)}(r)}},y.selectFiles=function(e){var t=document.createElement("input");t.type="file",t.onchange=e,t.click()})}).call(this),function(){y.Config=function(t){if(t=s.extend({https:!1,simulateReadDelay:0,simulateUploadSpeed:0,simulateWriteDelay:0,storesPath:"ufs",tmpDir:"/tmp/ufs"},t),"boolean"!=typeof t.https)throw new TypeError("https is not a function");if("number"!=typeof t.simulateReadDelay)throw new e.Error("simulateReadDelay is not a number");if("number"!=typeof t.simulateUploadSpeed)throw new e.Error("simulateUploadSpeed is not a number");if("number"!=typeof t.simulateWriteDelay)throw new e.Error("simulateWriteDelay is not a number");if("string"!=typeof t.storesPath)throw new e.Error("storesPath is not a string");if("string"!=typeof t.tmpDir)throw new e.Error("tmpDir is not a string");this.https=t.https,this.simulateReadDelay=parseInt(t.simulateReadDelay),this.simulateUploadSpeed=parseInt(t.simulateUploadSpeed),this.simulateWriteDelay=parseInt(t.simulateWriteDelay),this.storesPath=t.storesPath,this.tmpDir=t.tmpDir},y.Config.prototype.simulateReadDelay=0,y.Config.prototype.simulateUploadSpeed=0,y.Config.prototype.simulateWriteDelay=0,y.Config.prototype.storesPath=null,y.Config.prototype.tmpDir=null,y.config=new y.Config}.call(this),function(){function t(e,t){if(s.contains(t,e))return!0;var o="/*",n=s.filter(t,function(e){return e.indexOf(o)>0});return s.contains(n,e.replace(/(\/.*)$/,o))?!0:!1}y.Filter=function(o){var n=this;if(o=s.extend({contentTypes:null,extensions:null,minSize:1,maxSize:0,onCheck:null},o),o.contentTypes&&!(o.contentTypes instanceof Array))throw new TypeError("contentTypes is not an Array");if(o.extensions&&!(o.extensions instanceof Array))throw new TypeError("extensions is not an Array");if("number"!=typeof o.minSize)throw new TypeError("minSize is not a number");if("number"!=typeof o.maxSize)throw new TypeError("maxSize is not a number");if(o.onCheck&&"function"!=typeof o.onCheck)throw new TypeError("onCheck is not a function");var r=o.contentTypes,i=o.extensions,a=o.onCheck,l=parseInt(o.maxSize),f=parseInt(o.minSize);n.check=function(o){if(o.size<=0||o.size<n.getMinSize())throw new e.Error("file-too-small","File is too small (min ="+n.getMinSize()+")");if(n.getMaxSize()>0&&o.size>n.getMaxSize())throw new e.Error("file-too-large","File is too large (max = "+n.getMaxSize()+")");if(n.getExtensions()&&!s.contains(n.getExtensions(),o.extension))throw new e.Error("invalid-file-extension","File extension is not accepted");if(n.getContentTypes()&&!t(o.type,n.getContentTypes()))throw new e.Error("invalid-file-type","File type is not accepted");if("function"==typeof a&&!a.call(n,o))throw new e.Error("invalid-file","File does not match filter")},n.getContentTypes=function(){return r},n.getExtensions=function(){return i},n.getMaxSize=function(){return l},n.getMinSize=function(){return f},n.isValid=function(e){return!(e.size<=0||e.size<n.getMinSize()||n.getMaxSize()>0&&e.size>n.getMaxSize()||n.getExtensions()&&!s.contains(n.getExtensions(),e.extension)||n.getContentTypes()&&!t(e.type,n.getContentTypes())||"function"==typeof a&&!a.call(n,e))}}}.call(this),function(){y.Store=function(o){var n=this;if(o=s.extend({collection:null,filter:null,name:null,onCopyError:null,onFinishUpload:null,onRead:null,onReadError:null,onWriteError:null,transformRead:null,transformWrite:null},o),!(n instanceof y.Store))throw new Error("UploadFS.Store is not an instance");if(!(o.collection instanceof r.Collection))throw new TypeError("collection is not a Mongo.Collection");if(o.filter&&!(o.filter instanceof y.Filter))throw new TypeError("filter is not an UploadFS.Filter");if("string"!=typeof o.name)throw new TypeError("name is not a string");if(y.getStore(o.name))throw new TypeError("name already exists");if(o.onCopyError&&"function"!=typeof o.onCopyError)throw new TypeError("onCopyError is not a function");if(o.onFinishUpload&&"function"!=typeof o.onFinishUpload)throw new TypeError("onFinishUpload is not a function");if(o.onRead&&"function"!=typeof o.onRead)throw new TypeError("onRead is not a function");if(o.onReadError&&"function"!=typeof o.onReadError)throw new TypeError("onReadError is not a function");if(o.onWriteError&&"function"!=typeof o.onWriteError)throw new TypeError("onWriteError is not a function");if(o.transformRead&&"function"!=typeof o.transformRead)throw new TypeError("transformRead is not a function");if(o.transformWrite&&"function"!=typeof o.transformWrite)throw new TypeError("transformWrite is not a function");n.onCopyError=o.onCopyError||n.onCopyError,n.onFinishUpload=o.onFinishUpload||n.onFinishUpload,n.onRead=o.onRead||n.onRead,n.onReadError=o.onReadError||n.onReadError,n.onWriteError=o.onWriteError||n.onWriteError;var i=o.collection,a=o.copyTo,l=o.filter,f=o.name,p=o.transformRead,c=o.transformWrite;y.getStores()[f]=n,n.create=function(e){return t(e,Object),e.store=f,n.getCollection().insert(e)},n.getCollection=function(){return i},n.getFilter=function(){return l},n.getName=function(){return f},e.isServer&&(n.copy=function(o,r,i){if(t(o,String),!(r instanceof y.Store))throw new TypeError("store is not an UploadFS.store.Store");var a=n.getCollection().findOne(o);if(!a)throw new e.Error(404,"File not found");var l=s.omit(a,"_id","url");l.originalStore=n.getName(),l.originalId=o;var f=r.create(l),p=n.getReadStream(o,a);r.write(p,f,e.bindEnvironment(function(e){e&&(r.getCollection().remove(f),n.onCopyError.call(n,e,o,a)),"function"==typeof i&&i.call(n,e,f,l,r)}))},n.transformRead=function(e,t,o,r,i,a){"function"==typeof p?p.call(n,e,t,o,r,i,a):e.pipe(t)},n.transformWrite=function(e,t,o,r){"function"==typeof c?c.call(n,e,t,o,r):e.pipe(t)},n.write=function(t,o,r){var i=n.getCollection().findOne(o),s=n.getWriteStream(o,i),l=e.bindEnvironment(function(e){n.getCollection().remove(o),n.onWriteError.call(n,e,o,i),r.call(n,e)});s.on("error",l),s.on("finish",e.bindEnvironment(function(){var t=0,s=n.getReadStream(o,i);s.on("data",function(e){t+=e.length}),s.on("end",e.bindEnvironment(function(){if(i.complete=!0,i.progress=1,i.size=t,i.token=y.generateToken(),i.uploading=!1,i.uploadedAt=new Date,i.url=n.getFileURL(o),n.getCollection().update(o,{$set:{complete:i.complete,progress:i.progress,size:i.size,token:i.token,uploading:i.uploading,uploadedAt:i.uploadedAt,url:i.url}}),r.call(n,null,i),"function"==typeof n.onFinishUpload&&n.onFinishUpload.call(n,i),y.config.simulateWriteDelay&&e._sleepForMs(y.config.simulateWriteDelay),a instanceof Array)for(var s=0;s<a.length;s+=1){var l=a[s];(!l.getFilter()||l.getFilter().isValid(i))&&n.copy(o,l)}}))})),n.transformWrite(t,s,o,i)}),i.before.insert(function(t,o){if("string"!=typeof o.name||!o.name.length)throw new e.Error(400,"file name not defined");if("string"!=typeof o.store||!o.store.length)throw new e.Error(400,"file store not defined");"boolean"!=typeof o.complete&&(o.complete=!1),"boolean"!=typeof o.uploading&&(o.uploading=!0),o.extension=o.name&&o.name.substr((~-o.name.lastIndexOf(".")>>>0)+2).toLowerCase(),o.progress=parseFloat(o.progress)||0,o.size=parseInt(o.size)||0,o.userId=o.userId||t}),i.after.remove(function(t,o){if(e.isServer&&a instanceof Array)for(var n=0;n<a.length;n+=1)a[n].getCollection().remove({originalId:o._id})}),i.before.remove(function(t,o){if(e.isServer){n["delete"](o._id);var r=y.getTempFilePath(o._id);fs.stat(r,function(e){!e&&fs.unlink(r,function(e){e&&console.error("ufs: cannot delete temp file at "+r+" ("+e.message+")")})})}}),i.deny({insert:function(e,t){return l instanceof y.Filter&&l.check(t),"function"==typeof o.insert&&!o.insert.apply(this,arguments)}})},y.Store.prototype.getFileURL=function(e){var t=this.getCollection().findOne(e,{fields:{name:1}});return t&&this.getURL()+"/"+e+"/"+encodeURIComponent(t.name)},y.Store.prototype.getURL=function(){return e.absoluteUrl(y.config.storesPath+"/"+this.getName(),{secure:y.config.https})},e.isServer&&(y.Store.prototype["delete"]=function(e,t){throw new Error("delete is not implemented")},y.Store.prototype.getReadStream=function(e,t){throw new Error("getReadStream is not implemented")},y.Store.prototype.getWriteStream=function(e,t){throw new Error("getWriteStream is not implemented")},y.Store.prototype.onCopyError=function(e,t,o){console.error('ufs: cannot copy file "'+t+'" ('+e.message+")")},y.Store.prototype.onFinishUpload=function(e){},y.Store.prototype.onRead=function(e,t,o,n){return!0},y.Store.prototype.onReadError=function(e,t,o){console.error('ufs: cannot read file "'+t+'" ('+e.message+")")},y.Store.prototype.onWriteError=function(e,t,o){console.error('ufs: cannot write file "'+t+'" ('+e.message+")")})}.call(this),function(){var e=function(e,t){return"string"==typeof e&&"string"==typeof t&&0===t.indexOf(e+"/")};a.registerHelper("isAudio",function(t){return e("audio",this.type||t)}),a.registerHelper("isImage",function(t){return e("image",this.type||t)}),a.registerHelper("isText",function(t){return e("text",this.type||t)}),a.registerHelper("isVideo",function(t){return e("video",this.type||t)})}.call(this),function(){y.Uploader=function(t){var o=this;if(t=s.extend({adaptive:!0,capacity:.9,chunkSize:8192,data:null,file:null,maxChunkSize:0,maxTries:5,onAbort:y.Uploader.prototype.onAbort,onComplete:y.Uploader.prototype.onComplete,onCreate:y.Uploader.prototype.onCreate,onError:y.Uploader.prototype.onError,onProgress:y.Uploader.prototype.onProgress,onStart:y.Uploader.prototype.onStart,onStop:y.Uploader.prototype.onStop,store:null},t),!(o instanceof y.Uploader))throw new Error("UploadFS.Uploader is not an instance");if("boolean"!=typeof t.adaptive)throw new TypeError("adaptive is not a number");if("number"!=typeof t.capacity)throw new TypeError("capacity is not a number");if(t.capacity<=0||t.capacity>1)throw new RangeError("capacity must be a float between 0.1 and 1.0");if("number"!=typeof t.chunkSize)throw new TypeError("chunkSize is not a number");if(!(t.data instanceof ArrayBuffer))throw new TypeError("data is not an ArrayBuffer");if(null===t.file||"object"!=typeof t.file)throw new TypeError("file is not an object");if("number"!=typeof t.maxChunkSize)throw new TypeError("maxChunkSize is not a number");if("number"!=typeof t.maxTries)throw new TypeError("maxTries is not a number");if("function"!=typeof t.onAbort)throw new TypeError("onAbort is not a function");if("function"!=typeof t.onComplete)throw new TypeError("onComplete is not a function");if("function"!=typeof t.onCreate)throw new TypeError("onCreate is not a function");if("function"!=typeof t.onError)throw new TypeError("onError is not a function");if("function"!=typeof t.onProgress)throw new TypeError("onProgress is not a function");if("function"!=typeof t.onStart)throw new TypeError("onStart is not a function");if("function"!=typeof t.onStop)throw new TypeError("onStop is not a function");if(!(t.store instanceof y.Store))throw new TypeError("store is not an UploadFS.Store");o.adaptive=t.adaptive,o.capacity=parseFloat(t.capacity),o.chunkSize=parseInt(t.chunkSize),o.maxChunkSize=parseInt(t.maxChunkSize),o.maxTries=parseInt(t.maxTries),o.onAbort=t.onAbort,o.onComplete=t.onComplete,o.onCreate=t.onCreate,o.onError=t.onError,o.onProgress=t.onProgress,o.onStart=t.onStart,o.onStop=t.onStop;var n=t.store,r=t.data,a=10,l=t.file,f=null,p=0,c=t.data.byteLength,u=0,d=new i(!1),g=new i(0),m=new i(!1),h=null,w=null;l.store=n.getName(),o.abort=function(){m.set(!1),n.getCollection().remove(f,function(e){e?console.error("ufs: cannot remove file "+f+" ("+e.message+")"):(f=null,p=0,u=0,g.set(0),d.set(!1),o.onAbort(l))})},o.getFile=function(){return l},o.getLoaded=function(){return g.get()},o.getProgress=function(){return parseFloat((g.get()/c).toFixed(2))},o.getTotal=function(){return c},o.isComplete=function(){return d.get()},o.isUploading=function(){return m.get()},o.start=function(){function t(){function t(){if(m.get()&&!d.get())if(p+i>c&&(i=c-p),c>p){var y=new Uint8Array(r,p,i),E=(p+i)/c;h=Date.now(),e.call("ufsWrite",y,f,n.getName(),E,function(n,r){if(w=Date.now(),n||!r)u<o.maxTries&&!s.contains([400,404],n.error)?(u+=1,e.setTimeout(t,1e3)):(o.abort(),o.onError(n));else{if(p+=r,g.set(g.get()+r),o.adaptive&&h&&w&&w>h){var f=(w-h)/1e3,c=o.capacity*(1+a/100),y=o.capacity*(1-a/100);f>=c?i=Math.abs(Math.round(r*(c-f))):y>f&&(i=Math.round(r*(y/f))),o.maxChunkSize>0&&i>o.maxChunkSize&&(i=o.maxChunkSize)}o.onProgress(l,o.getProgress()),t()}})}else e.call("ufsComplete",f,n.getName(),function(e,t){e?o.abort():t&&(m.set(!1),d.set(!0),l=t,o.onProgress(t,g.get()/E),o.onComplete(t))})}m.set(!0);var i=o.chunkSize;t()}m.get()||d.get()||(o.onStart(l),f?n.getCollection().update(f,{$set:{uploading:!0}},function(e,o){!e&&o&&t()}):n.getCollection().insert(l,function(e,n){e?o.onError(e):(f=n,l._id=f,o.onCreate(l),t())}))},o.stop=function(){m.get()&&(m.set(!1),n.getCollection().update(f,{$set:{uploading:!1}}),o.onStop(l))}},y.Uploader.prototype.onAbort=function(e){},y.Uploader.prototype.onComplete=function(e){},y.Uploader.prototype.onCreate=function(e){},y.Uploader.prototype.onError=function(e){console.error(e.message)},y.Uploader.prototype.onProgress=function(e,t){},y.Uploader.prototype.onStart=function(e){},y.Uploader.prototype.onStop=function(e){}}.call(this),"undefined"==typeof Package&&(Package={}),Package["jalik:ufs"]={UploadFS:y}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.check.check,n=Package.check.Match,r=Package["jalik:ufs"].UploadFS,o=Package.underscore._;(function(){if(e.isServer)var t=Npm.require("fs"),n=Npm.require("mkdirp");r.store.Local=function(a){if(a=o.extend({mode:"0744",path:"ufs/uploads",writeMode:"0744"},a),"string"!=typeof a.mode)throw new TypeError("mode is not a string");if("string"!=typeof a.path)throw new TypeError("path is not a string");if("string"!=typeof a.writeMode)throw new TypeError("writeMode is not a string");var i=a.mode,s=a.path,c=a.writeMode;e.isServer&&t.stat(s,function(e){e?n(s,{mode:i},function(e){e?console.error("ufs: cannot create store at "+s+" ("+e.message+")"):console.info("ufs: store created at "+s)}):t.chmod(s,i,function(e){e&&console.error("ufs: cannot set store permissions "+i+" ("+e.message+")")})});var f=new r.Store(a);return f.getFilePath=function(e,t){return t=t||f.getCollection().findOne(e,{fields:{extension:1}}),t&&f.getPath(e+(t.extension?"."+t.extension:""))},f.getPath=function(e){return s+(e?"/"+e:"")},e.isServer&&(f["delete"]=function(n,r){var o=f.getFilePath(n);"function"!=typeof r&&(r=function(e){e&&console.error('ufs: cannot delete file "'+n+'" at '+o+" ("+e.message+")")}),t.stat(o,e.bindEnvironment(function(n,a){!n&&a&&a.isFile()&&t.unlink(o,e.bindEnvironment(r))}))},f.getReadStream=function(e,n){return t.createReadStream(f.getFilePath(e,n),{flags:"r",encoding:null,autoClose:!0})},f.getWriteStream=function(e,n){return t.createWriteStream(f.getFilePath(e,n),{flags:"a",encoding:null,mode:c})}),f}}).call(this),"undefined"==typeof Package&&(Package={}),Package["jalik:ufs-local"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.underscore._,n=Package.check.check,r=Package.check.Match,i=Package.tracker.Tracker,o=Package.tracker.Deps,a=Package["reactive-var"].ReactiveVar,s,u;(function(){(function(){s={},u=r.OneOf(String,[String],RegExp,null),s._restrictions={},s.fileRestrictions=function(i,o){if(n(o,{authorize:r.Optional(Function),maxSize:r.Optional(r.OneOf(Number,null)),allowedFileTypes:r.Optional(u)}),e.isServer){var a=s.getDirective(i);a&&t.extend(a._directive,o)}return s._restrictions[i]=t.extend(s._restrictions[i]||{},o)},s.getRestrictions=function(e){return this._restrictions[e]||{}}}).call(this),function(){function n(e){for(var t=["Bytes","KB","MB","GB","TB"],n=t.shift();e>=1024&&t.length;)e/=1024,n=t.shift();return Math.round(100*e)/100+" "+n}s.Validators={checkAll:function(e,t,n,r){return this.checkFileSize(t.size,r.maxSize)&&this.checkFileType(t.type,r.allowedFileTypes)&&("function"!=typeof r.authorize||r.authorize.call(e,t,n))},checkFileSize:function(t,r){if(r=Math.min(r,1/0),r&&t>r)throw new e.Error("Upload denied","File exceeds allowed size of "+n(r));return!0},checkFileType:function(n,r){if(r instanceof RegExp){if(!r.test(n))throw new e.Error("Upload denied",n+" is not an allowed file type");return!0}if(t.isArray(r)){if(r.indexOf(n)<0)throw new e.Error("Upload denied",n+" is not one of the followed allowed file types: "+r.join(", "));return!0}if(r&&r!==n)throw new e.Error("Upload denied","Only files of type "+r+" can be uploaded");return!0}}}.call(this),function(){function n(e,t){var n=new window.Image;n.onload=t,n.src=e}function r(e,t){var n=new window.FileReader;n.onloadend=function(){t(n.result)},n.readAsDataURL(e)}s.Upload=function(o,u){function c(){var e=new window.FormData;return t.each(l.instructions.postData,function(t){e.append(t.name,t.value)}),e.append("file",l.file),e}if(!window.File||!window.FormData)throw new Error("Browser does not support HTML5 uploads");var l=this,d=new a,f=new a,w=new a("idle"),p,h;t.extend(l,{status:function(){return w.get()},progress:function(){return l.uploaded()/f.get()},uploaded:function(){return d.get()},validate:function(t){var n={userId:e.userId&&e.userId()};try{var r=s.Validators,i=s.getRestrictions(o);r.checkAll(n,t,u,i)&&null}catch(a){return a}},send:function(e,t){if(!(e instanceof window.File||e instanceof window.Blob))throw new Error("Not a file");return l.file=e,l.request(function(e,n){return e?t(e):(l.instructions=n,void l.transfer(t))}),l},request:function(n){l.file||n(new Error("No file to request upload for"));var r=t.pick(l.file,"name","size","type");w.set("authorizing");var i=this.validate(r);return i?(w.set("failed"),n(i),l):(e.call("slingshot/uploadRequest",o,r,u,function(e,t){w.set(e?"failed":"authorized"),n(e,t)}),l)},transfer:function(n){function r(){return new e.Error(i.statusText+" - "+i.status,"Failed to upload file to cloud storage")}if("authorized"!==w.curValue)throw new Error("Cannot transfer file at upload status: "+w.curValue);w.set("transferring"),d.set(0);var i=new XMLHttpRequest;return i.upload.addEventListener("progress",function(e){e.lengthComputable&&(d.set(e.loaded),f.set(e.total))},!1),i.addEventListener("load",function(){i.status<400?(w.set("done"),d.set(f.get()),n(null,l.instructions.download)):(w.set("failed"),n(r()))}),i.addEventListener("error",function(){w.set("failed"),n(r())}),i.addEventListener("abort",function(){w.set("aborted"),n(new e.Error("Aborted","The upload has been aborted by the user"))}),i.open("POST",l.instructions.upload,!0),t.each(l.instructions.headers,function(e,t){i.setRequestHeader(t,e)}),i.send(c()),l.xhr=i,l},isImage:function(){return l.status(),Boolean(l.file&&"image"===l.file.type.split("/")[0])},url:function(e){if(!p){var t=new a,o=window.URL||window.webkitURL;p=new a,i.nonreactive(function(){var e=new i.Dependency;i.autorun(function(n){l.file?o?(t.set(o.createObjectURL(l.file)),n.stop()):i.active&&window.FileReader&&r(l.file,function(e){t.set(e),n.stop()}):e.depend()}),i.autorun(function(n){var r=l.status();l.instructions&&"done"===r?(n.stop(),p.set(l.instructions.download)):"failed"===r||"aborted"===r?n.stop():l.file&&!p.curValue&&(e.changed(),p.set(t.get()))})})}if(e){if(l.file&&!l.isImage())throw new Error("Cannot pre-load anything other than images");return h||i.nonreactive(function(){h=new a,i.autorun(function(e){var t=p.get();l.instructions?n(t,function(){e.stop(),h.set(t)}):h.set(t)})}),h.get()}return p.get()},param:function(e){l.status();var n=l.instructions&&l.instructions.postData,r=n&&t.findWhere(n,{name:e});return r&&r.value}})}}.call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["edgee:slingshot"]={Slingshot:s}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a=Package.underscore._,c;(function(){}).call(this),"undefined"==typeof Package&&(Package={}),Package["peerlibrary:blocking"]={blocking:c}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package["peerlibrary:blocking"].blocking,r=Package.underscore._,a;(function(){(function(){!function e(t,r,a){function o(i,s){if(!r[i]){if(!t[i]){var u="function"==typeof require&&require;if(!s&&u)return u(i,!0);if(n)return n(i,!0);throw new Error("Cannot find module '"+i+"'")}var c=r[i]={exports:{}};t[i][0].call(c.exports,function(e){var r=t[i][1][e];return o(r?r:e)},c,c.exports,e,t,r,a)}return r[i].exports}for(var n="function"==typeof require&&require,i=0;i<a.length;i++)o(a[i]);return o}({1:[function(e,t,r){var a=e("./core");a.apiLoader=function(e,t){return a.apiLoader.services[e][t]},a.apiLoader.services={},a.XML.Parser=e("./xml/browser_parser"),e("./http/xhr"),"undefined"!=typeof window&&(window.AWS=a),"undefined"!=typeof t&&(t.exports=a),"undefined"!=typeof self&&(self.AWS=a),a.apiLoader.services.acm={},a.ACM=a.Service.defineService("acm",["2015-12-08"]),a.apiLoader.services.acm["2015-12-08"]={version:"2.0",metadata:{apiVersion:"2015-12-08",endpointPrefix:"acm",jsonVersion:"1.1",serviceAbbreviation:"ACM",serviceFullName:"AWS Certificate Manager",signatureVersion:"v4",targetPrefix:"CertificateManager",protocol:"json"},operations:{DeleteCertificate:{input:{type:"structure",required:["CertificateArn"],members:{CertificateArn:{}}},http:{}},DescribeCertificate:{input:{type:"structure",required:["CertificateArn"],members:{CertificateArn:{}}},output:{type:"structure",members:{Certificate:{type:"structure",members:{CertificateArn:{},DomainName:{},SubjectAlternativeNames:{shape:"S7"},DomainValidationOptions:{type:"list",member:{type:"structure",required:["DomainName"],members:{DomainName:{},ValidationEmails:{type:"list",member:{}},ValidationDomain:{}}}},Serial:{},Subject:{},Issuer:{},CreatedAt:{type:"timestamp"},IssuedAt:{type:"timestamp"},Status:{},RevokedAt:{type:"timestamp"},RevocationReason:{},NotBefore:{type:"timestamp"},NotAfter:{type:"timestamp"},KeyAlgorithm:{},SignatureAlgorithm:{},InUseBy:{type:"list",member:{}}}}}},http:{}},GetCertificate:{input:{type:"structure",required:["CertificateArn"],members:{CertificateArn:{}}},output:{type:"structure",members:{Certificate:{},CertificateChain:{}}},http:{}},ListCertificates:{input:{type:"structure",members:{CertificateStatuses:{type:"list",member:{}},NextToken:{},MaxItems:{type:"integer"}}},output:{type:"structure",members:{NextToken:{},CertificateSummaryList:{type:"list",member:{type:"structure",members:{CertificateArn:{},DomainName:{}}}}}},http:{}},RequestCertificate:{input:{type:"structure",required:["DomainName"],members:{DomainName:{},SubjectAlternativeNames:{shape:"S7"},IdempotencyToken:{},DomainValidationOptions:{type:"list",member:{type:"structure",required:["DomainName","ValidationDomain"],members:{DomainName:{},ValidationDomain:{}}}}}},output:{type:"structure",members:{CertificateArn:{}}},http:{}},ResendValidationEmail:{input:{type:"structure",required:["CertificateArn","Domain","ValidationDomain"],members:{CertificateArn:{},Domain:{},ValidationDomain:{}}},http:{}}},shapes:{S7:{type:"list",member:{}}},examples:{},paginators:{ListCertificates:{limit_key:"MaxItems",input_token:"NextToken",output_token:"NextToken",result_key:"CertificateSummaryList"}}},a.apiLoader.services.cloudfront={},a.CloudFront=a.Service.defineService("cloudfront",["2016-01-28"]),e("./services/cloudfront"),a.apiLoader.services.cloudfront["2016-01-28"]={version:"2.0",metadata:{apiVersion:"2016-01-28",endpointPrefix:"cloudfront",globalEndpoint:"cloudfront.amazonaws.com",protocol:"rest-xml",serviceAbbreviation:"CloudFront",serviceFullName:"Amazon CloudFront",signatureVersion:"v4"},operations:{CreateCloudFrontOriginAccessIdentity:{http:{requestUri:"/2016-01-28/origin-access-identity/cloudfront",responseCode:201},input:{type:"structure",required:["CloudFrontOriginAccessIdentityConfig"],members:{CloudFrontOriginAccessIdentityConfig:{shape:"S2",locationName:"CloudFrontOriginAccessIdentityConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2016-01-28/"}}},payload:"CloudFrontOriginAccessIdentityConfig"},output:{type:"structure",members:{CloudFrontOriginAccessIdentity:{shape:"S5"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"CloudFrontOriginAccessIdentity"}},CreateDistribution:{http:{requestUri:"/2016-01-28/distribution",responseCode:201},input:{type:"structure",required:["DistributionConfig"],members:{DistributionConfig:{shape:"S7",locationName:"DistributionConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2016-01-28/"}}},payload:"DistributionConfig"},output:{type:"structure",members:{Distribution:{shape:"S1l"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"Distribution"}},CreateInvalidation:{http:{requestUri:"/2016-01-28/distribution/{DistributionId}/invalidation",responseCode:201},input:{type:"structure",required:["DistributionId","InvalidationBatch"],members:{DistributionId:{location:"uri",locationName:"DistributionId"},InvalidationBatch:{shape:"S1t",locationName:"InvalidationBatch",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2016-01-28/"}}},payload:"InvalidationBatch"},output:{type:"structure",members:{Location:{location:"header",locationName:"Location"},Invalidation:{shape:"S1x"}},payload:"Invalidation"}},CreateStreamingDistribution:{http:{requestUri:"/2016-01-28/streaming-distribution",responseCode:201},input:{type:"structure",required:["StreamingDistributionConfig"],members:{StreamingDistributionConfig:{shape:"S1z",locationName:"StreamingDistributionConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2016-01-28/"}}},payload:"StreamingDistributionConfig"},output:{type:"structure",members:{StreamingDistribution:{shape:"S23"},Location:{location:"header",locationName:"Location"},ETag:{location:"header",locationName:"ETag"}},payload:"StreamingDistribution"}},DeleteCloudFrontOriginAccessIdentity:{http:{method:"DELETE",requestUri:"/2016-01-28/origin-access-identity/cloudfront/{Id}",responseCode:204},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}}}},DeleteDistribution:{http:{method:"DELETE",requestUri:"/2016-01-28/distribution/{Id}",responseCode:204},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}}}},DeleteStreamingDistribution:{http:{method:"DELETE",requestUri:"/2016-01-28/streaming-distribution/{Id}",responseCode:204},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}}}},GetCloudFrontOriginAccessIdentity:{http:{method:"GET",requestUri:"/2016-01-28/origin-access-identity/cloudfront/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{CloudFrontOriginAccessIdentity:{shape:"S5"},ETag:{location:"header",locationName:"ETag"}},payload:"CloudFrontOriginAccessIdentity"}},GetCloudFrontOriginAccessIdentityConfig:{http:{method:"GET",requestUri:"/2016-01-28/origin-access-identity/cloudfront/{Id}/config"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{CloudFrontOriginAccessIdentityConfig:{shape:"S2"},ETag:{location:"header",locationName:"ETag"}},payload:"CloudFrontOriginAccessIdentityConfig"}},GetDistribution:{http:{method:"GET",requestUri:"/2016-01-28/distribution/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{Distribution:{shape:"S1l"},ETag:{location:"header",locationName:"ETag"}},payload:"Distribution"}},GetDistributionConfig:{http:{method:"GET",requestUri:"/2016-01-28/distribution/{Id}/config"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{DistributionConfig:{shape:"S7"},ETag:{location:"header",locationName:"ETag"}},payload:"DistributionConfig"}},GetInvalidation:{http:{method:"GET",requestUri:"/2016-01-28/distribution/{DistributionId}/invalidation/{Id}"},input:{type:"structure",required:["DistributionId","Id"],members:{DistributionId:{location:"uri",locationName:"DistributionId"},Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{Invalidation:{shape:"S1x"}},payload:"Invalidation"}},GetStreamingDistribution:{http:{method:"GET",requestUri:"/2016-01-28/streaming-distribution/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{StreamingDistribution:{shape:"S23"},ETag:{location:"header",locationName:"ETag"}},payload:"StreamingDistribution"}},GetStreamingDistributionConfig:{http:{method:"GET",requestUri:"/2016-01-28/streaming-distribution/{Id}/config"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{StreamingDistributionConfig:{shape:"S1z"},ETag:{location:"header",locationName:"ETag"}},payload:"StreamingDistributionConfig"}},ListCloudFrontOriginAccessIdentities:{http:{method:"GET",requestUri:"/2016-01-28/origin-access-identity/cloudfront"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{CloudFrontOriginAccessIdentityList:{type:"structure",required:["Marker","MaxItems","IsTruncated","Quantity"],members:{Marker:{},NextMarker:{},MaxItems:{type:"integer"},IsTruncated:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"CloudFrontOriginAccessIdentitySummary",type:"structure",required:["Id","S3CanonicalUserId","Comment"],members:{Id:{},S3CanonicalUserId:{},Comment:{}}}}}}},payload:"CloudFrontOriginAccessIdentityList"}},ListDistributions:{http:{method:"GET",requestUri:"/2016-01-28/distribution"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{DistributionList:{shape:"S2s"}},payload:"DistributionList"}},ListDistributionsByWebACLId:{http:{method:"GET",requestUri:"/2016-01-28/distributionsByWebACLId/{WebACLId}"},input:{type:"structure",required:["WebACLId"],members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"},WebACLId:{location:"uri",locationName:"WebACLId"}}},output:{type:"structure",members:{DistributionList:{shape:"S2s"}},payload:"DistributionList"}},ListInvalidations:{http:{method:"GET",requestUri:"/2016-01-28/distribution/{DistributionId}/invalidation"},input:{type:"structure",required:["DistributionId"],members:{DistributionId:{location:"uri",locationName:"DistributionId"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{InvalidationList:{type:"structure",required:["Marker","MaxItems","IsTruncated","Quantity"],members:{Marker:{},NextMarker:{},MaxItems:{type:"integer"},IsTruncated:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"InvalidationSummary",type:"structure",required:["Id","CreateTime","Status"],members:{Id:{},CreateTime:{type:"timestamp"},Status:{}}}}}}},payload:"InvalidationList"}},ListStreamingDistributions:{http:{method:"GET",requestUri:"/2016-01-28/streaming-distribution"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems"}}},output:{type:"structure",members:{StreamingDistributionList:{type:"structure",required:["Marker","MaxItems","IsTruncated","Quantity"],members:{Marker:{},NextMarker:{},MaxItems:{type:"integer"},IsTruncated:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"StreamingDistributionSummary",type:"structure",required:["Id","Status","LastModifiedTime","DomainName","S3Origin","Aliases","TrustedSigners","Comment","PriceClass","Enabled"],members:{Id:{},Status:{},LastModifiedTime:{type:"timestamp"},DomainName:{},S3Origin:{shape:"S20"},Aliases:{shape:"S8"},TrustedSigners:{shape:"Sw"},Comment:{},PriceClass:{},Enabled:{type:"boolean"}}}}}}},payload:"StreamingDistributionList"}},UpdateCloudFrontOriginAccessIdentity:{http:{method:"PUT",requestUri:"/2016-01-28/origin-access-identity/cloudfront/{Id}/config"},input:{type:"structure",required:["CloudFrontOriginAccessIdentityConfig","Id"],members:{CloudFrontOriginAccessIdentityConfig:{shape:"S2",locationName:"CloudFrontOriginAccessIdentityConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2016-01-28/"}},Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}},payload:"CloudFrontOriginAccessIdentityConfig"},output:{type:"structure",members:{CloudFrontOriginAccessIdentity:{shape:"S5"},ETag:{location:"header",locationName:"ETag"}},payload:"CloudFrontOriginAccessIdentity"}},UpdateDistribution:{http:{method:"PUT",requestUri:"/2016-01-28/distribution/{Id}/config"},input:{type:"structure",required:["DistributionConfig","Id"],members:{DistributionConfig:{shape:"S7",locationName:"DistributionConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2016-01-28/"}},Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}},payload:"DistributionConfig"},output:{type:"structure",members:{Distribution:{shape:"S1l"},ETag:{location:"header",locationName:"ETag"}},payload:"Distribution"}},UpdateStreamingDistribution:{http:{method:"PUT",requestUri:"/2016-01-28/streaming-distribution/{Id}/config"},input:{type:"structure",required:["StreamingDistributionConfig","Id"],members:{StreamingDistributionConfig:{shape:"S1z",locationName:"StreamingDistributionConfig",xmlNamespace:{uri:"http://cloudfront.amazonaws.com/doc/2016-01-28/"}},Id:{location:"uri",locationName:"Id"},IfMatch:{location:"header",locationName:"If-Match"}},payload:"StreamingDistributionConfig"},output:{type:"structure",members:{StreamingDistribution:{shape:"S23"},ETag:{location:"header",locationName:"ETag"}},payload:"StreamingDistribution"}}},shapes:{S2:{type:"structure",required:["CallerReference","Comment"],members:{CallerReference:{},Comment:{}}},S5:{type:"structure",required:["Id","S3CanonicalUserId"],members:{Id:{},S3CanonicalUserId:{},CloudFrontOriginAccessIdentityConfig:{shape:"S2"}}},S7:{type:"structure",required:["CallerReference","Origins","DefaultCacheBehavior","Comment","Enabled"],members:{CallerReference:{},Aliases:{shape:"S8"},DefaultRootObject:{},Origins:{shape:"Sb"},DefaultCacheBehavior:{shape:"Sn"},CacheBehaviors:{shape:"S14"},CustomErrorResponses:{shape:"S17"},Comment:{},Logging:{type:"structure",required:["Enabled","IncludeCookies","Bucket","Prefix"],members:{Enabled:{type:"boolean"},IncludeCookies:{type:"boolean"},Bucket:{},Prefix:{}}},PriceClass:{},Enabled:{type:"boolean"},ViewerCertificate:{shape:"S1c"},Restrictions:{shape:"S1g"},WebACLId:{}}},S8:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"CNAME"}}}},Sb:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Origin",type:"structure",required:["Id","DomainName"],members:{Id:{},DomainName:{},OriginPath:{},CustomHeaders:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"OriginCustomHeader",type:"structure",required:["HeaderName","HeaderValue"],members:{HeaderName:{},HeaderValue:{}}}}}},S3OriginConfig:{type:"structure",required:["OriginAccessIdentity"],members:{OriginAccessIdentity:{}}},CustomOriginConfig:{type:"structure",required:["HTTPPort","HTTPSPort","OriginProtocolPolicy"],members:{HTTPPort:{type:"integer"},HTTPSPort:{type:"integer"},OriginProtocolPolicy:{},OriginSslProtocols:{type:"structure",required:["Quantity","Items"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"SslProtocol"}}}}}}}}}}},Sn:{type:"structure",required:["TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],members:{TargetOriginId:{},ForwardedValues:{shape:"So"},TrustedSigners:{shape:"Sw"},ViewerProtocolPolicy:{},MinTTL:{type:"long"},AllowedMethods:{shape:"S10"},SmoothStreaming:{type:"boolean"},DefaultTTL:{type:"long"},MaxTTL:{type:"long"},Compress:{type:"boolean"}}},So:{type:"structure",required:["QueryString","Cookies"],members:{QueryString:{type:"boolean"},Cookies:{type:"structure",required:["Forward"],members:{Forward:{},WhitelistedNames:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Name"}}}}}},Headers:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Name"}}}}}},Sw:{type:"structure",required:["Enabled","Quantity"],members:{Enabled:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"AwsAccountNumber"}}}},S10:{type:"structure",required:["Quantity","Items"],members:{Quantity:{type:"integer"},Items:{shape:"S11"},CachedMethods:{type:"structure",required:["Quantity","Items"],members:{Quantity:{type:"integer"},Items:{shape:"S11"}}}}},S11:{type:"list",member:{locationName:"Method"}},S14:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"CacheBehavior",type:"structure",required:["PathPattern","TargetOriginId","ForwardedValues","TrustedSigners","ViewerProtocolPolicy","MinTTL"],members:{PathPattern:{},TargetOriginId:{},ForwardedValues:{shape:"So"},TrustedSigners:{shape:"Sw"},ViewerProtocolPolicy:{},MinTTL:{type:"long"},AllowedMethods:{shape:"S10"},SmoothStreaming:{type:"boolean"},DefaultTTL:{type:"long"},MaxTTL:{type:"long"},Compress:{type:"boolean"}}}}}},S17:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"CustomErrorResponse",type:"structure",required:["ErrorCode"],members:{ErrorCode:{type:"integer"},ResponsePagePath:{},ResponseCode:{},ErrorCachingMinTTL:{type:"long"}}}}}},S1c:{type:"structure",members:{CloudFrontDefaultCertificate:{type:"boolean"},IAMCertificateId:{},ACMCertificateArn:{},SSLSupportMethod:{},MinimumProtocolVersion:{},Certificate:{deprecated:!0},CertificateSource:{deprecated:!0}}},S1g:{type:"structure",required:["GeoRestriction"],members:{GeoRestriction:{type:"structure",required:["RestrictionType","Quantity"],members:{RestrictionType:{},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Location"}}}}}},S1l:{type:"structure",required:["Id","Status","LastModifiedTime","InProgressInvalidationBatches","DomainName","ActiveTrustedSigners","DistributionConfig"],members:{Id:{},Status:{},LastModifiedTime:{type:"timestamp"},InProgressInvalidationBatches:{type:"integer"},DomainName:{},ActiveTrustedSigners:{shape:"S1n"},DistributionConfig:{shape:"S7"}}},S1n:{type:"structure",required:["Enabled","Quantity"],members:{Enabled:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Signer",type:"structure",members:{AwsAccountNumber:{},KeyPairIds:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"KeyPairId"}}}}}}}}},S1t:{type:"structure",required:["Paths","CallerReference"],members:{Paths:{type:"structure",required:["Quantity"],members:{Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"Path"}}}},CallerReference:{}}},S1x:{type:"structure",required:["Id","Status","CreateTime","InvalidationBatch"],members:{Id:{},Status:{},CreateTime:{type:"timestamp"},InvalidationBatch:{shape:"S1t"}}},S1z:{type:"structure",required:["CallerReference","S3Origin","Comment","TrustedSigners","Enabled"],members:{CallerReference:{},S3Origin:{shape:"S20"},Aliases:{shape:"S8"},Comment:{},Logging:{type:"structure",required:["Enabled","Bucket","Prefix"],members:{Enabled:{type:"boolean"},Bucket:{},Prefix:{}}},TrustedSigners:{shape:"Sw"},PriceClass:{},Enabled:{type:"boolean"}}},S20:{type:"structure",required:["DomainName","OriginAccessIdentity"],members:{DomainName:{},OriginAccessIdentity:{}}},S23:{type:"structure",required:["Id","Status","DomainName","ActiveTrustedSigners","StreamingDistributionConfig"],members:{Id:{},Status:{},LastModifiedTime:{type:"timestamp"},DomainName:{},ActiveTrustedSigners:{shape:"S1n"},StreamingDistributionConfig:{shape:"S1z"}}},S2s:{type:"structure",required:["Marker","MaxItems","IsTruncated","Quantity"],members:{Marker:{},NextMarker:{},MaxItems:{type:"integer"},IsTruncated:{type:"boolean"},Quantity:{type:"integer"},Items:{type:"list",member:{locationName:"DistributionSummary",type:"structure",required:["Id","Status","LastModifiedTime","DomainName","Aliases","Origins","DefaultCacheBehavior","CacheBehaviors","CustomErrorResponses","Comment","PriceClass","Enabled","ViewerCertificate","Restrictions","WebACLId"],members:{Id:{},Status:{},LastModifiedTime:{type:"timestamp"},DomainName:{},Aliases:{shape:"S8"},Origins:{shape:"Sb"},DefaultCacheBehavior:{shape:"Sn"},CacheBehaviors:{shape:"S14"},CustomErrorResponses:{shape:"S17"},Comment:{},PriceClass:{},Enabled:{type:"boolean"},ViewerCertificate:{shape:"S1c"},Restrictions:{shape:"S1g"},WebACLId:{}}}}}}},paginators:{ListCloudFrontOriginAccessIdentities:{input_token:"Marker",output_token:"CloudFrontOriginAccessIdentityList.NextMarker",limit_key:"MaxItems",more_results:"CloudFrontOriginAccessIdentityList.IsTruncated",result_key:"CloudFrontOriginAccessIdentityList.Items"},ListDistributions:{input_token:"Marker",output_token:"DistributionList.NextMarker",limit_key:"MaxItems",more_results:"DistributionList.IsTruncated",result_key:"DistributionList.Items"},ListInvalidations:{input_token:"Marker",output_token:"InvalidationList.NextMarker",limit_key:"MaxItems",more_results:"InvalidationList.IsTruncated",result_key:"InvalidationList.Items"},ListStreamingDistributions:{input_token:"Marker",output_token:"StreamingDistributionList.NextMarker",limit_key:"MaxItems",more_results:"StreamingDistributionList.IsTruncated",result_key:"StreamingDistributionList.Items"}},waiters:{__default__:{success_type:"output",success_path:"Status"},StreamingDistributionDeployed:{operation:"GetStreamingDistribution",description:"Wait until a streaming distribution is deployed.",interval:60,max_attempts:25,success_value:"Deployed"},DistributionDeployed:{operation:"GetDistribution",description:"Wait until a distribution is deployed.",interval:60,max_attempts:25,success_value:"Deployed"},InvalidationCompleted:{operation:"GetInvalidation",description:"Wait until an invalidation has completed.",interval:20,max_attempts:30,success_value:"Completed"}}},a.apiLoader.services.cloudtrail={},a.CloudTrail=a.Service.defineService("cloudtrail",["2013-11-01"]),a.apiLoader.services.cloudtrail["2013-11-01"]={version:"2.0",metadata:{apiVersion:"2013-11-01",endpointPrefix:"cloudtrail",jsonVersion:"1.1",protocol:"json",serviceAbbreviation:"CloudTrail",serviceFullName:"AWS CloudTrail",signatureVersion:"v4",targetPrefix:"com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101"},operations:{AddTags:{input:{type:"structure",required:["ResourceId"],members:{ResourceId:{},TagsList:{shape:"S3"}}},output:{type:"structure",members:{}},http:{}},CreateTrail:{input:{type:"structure",required:["Name","S3BucketName"],members:{Name:{},S3BucketName:{},S3KeyPrefix:{},SnsTopicName:{},IncludeGlobalServiceEvents:{type:"boolean"},IsMultiRegionTrail:{type:"boolean"},EnableLogFileValidation:{type:"boolean"},CloudWatchLogsLogGroupArn:{},CloudWatchLogsRoleArn:{},KmsKeyId:{}}},output:{type:"structure",members:{Name:{},S3BucketName:{},S3KeyPrefix:{},SnsTopicName:{},IncludeGlobalServiceEvents:{type:"boolean"},IsMultiRegionTrail:{type:"boolean"},TrailARN:{},LogFileValidationEnabled:{type:"boolean"},CloudWatchLogsLogGroupArn:{},CloudWatchLogsRoleArn:{},KmsKeyId:{}}},http:{}},DeleteTrail:{input:{type:"structure",required:["Name"],members:{Name:{}}},output:{type:"structure",members:{}},http:{}},DescribeTrails:{input:{type:"structure",members:{trailNameList:{type:"list",member:{}},includeShadowTrails:{type:"boolean"}}},output:{type:"structure",members:{trailList:{type:"list",member:{type:"structure",members:{Name:{},S3BucketName:{},S3KeyPrefix:{},SnsTopicName:{},IncludeGlobalServiceEvents:{type:"boolean"},IsMultiRegionTrail:{type:"boolean"},HomeRegion:{},TrailARN:{},LogFileValidationEnabled:{type:"boolean"},CloudWatchLogsLogGroupArn:{},CloudWatchLogsRoleArn:{},KmsKeyId:{}}}}}},http:{}},GetTrailStatus:{input:{type:"structure",required:["Name"],members:{Name:{}}},output:{type:"structure",members:{IsLogging:{type:"boolean"},LatestDeliveryError:{},LatestNotificationError:{},LatestDeliveryTime:{type:"timestamp"},LatestNotificationTime:{type:"timestamp"},StartLoggingTime:{type:"timestamp"},StopLoggingTime:{type:"timestamp"},LatestCloudWatchLogsDeliveryError:{},LatestCloudWatchLogsDeliveryTime:{type:"timestamp"},LatestDigestDeliveryTime:{type:"timestamp"},LatestDigestDeliveryError:{},LatestDeliveryAttemptTime:{},LatestNotificationAttemptTime:{},LatestNotificationAttemptSucceeded:{},LatestDeliveryAttemptSucceeded:{},TimeLoggingStarted:{},TimeLoggingStopped:{}}},http:{}},ListPublicKeys:{input:{type:"structure",members:{StartTime:{type:"timestamp"},EndTime:{type:"timestamp"},NextToken:{}}},output:{type:"structure",members:{PublicKeyList:{type:"list",member:{type:"structure",members:{Value:{type:"blob"},ValidityStartTime:{type:"timestamp"},ValidityEndTime:{type:"timestamp"},Fingerprint:{}}}},NextToken:{}}},http:{}},ListTags:{input:{type:"structure",required:["ResourceIdList"],members:{ResourceIdList:{type:"list",member:{}},NextToken:{}}},output:{type:"structure",members:{ResourceTagList:{type:"list",member:{type:"structure",members:{ResourceId:{},TagsList:{shape:"S3"}}}},NextToken:{}}},http:{}},LookupEvents:{input:{type:"structure",members:{LookupAttributes:{type:"list",member:{type:"structure",required:["AttributeKey","AttributeValue"],members:{AttributeKey:{},AttributeValue:{}}}},StartTime:{type:"timestamp"},EndTime:{type:"timestamp"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{Events:{type:"list",member:{type:"structure",members:{EventId:{},EventName:{},EventTime:{type:"timestamp"},Username:{},Resources:{type:"list",member:{type:"structure",members:{ResourceType:{},ResourceName:{}}}},CloudTrailEvent:{}}}},NextToken:{}}},http:{}},RemoveTags:{input:{type:"structure",required:["ResourceId"],members:{ResourceId:{},TagsList:{shape:"S3"}}},output:{type:"structure",members:{}},http:{}},StartLogging:{input:{type:"structure",required:["Name"],members:{Name:{}}},output:{type:"structure",members:{}},http:{}},StopLogging:{input:{type:"structure",required:["Name"],members:{Name:{}}},output:{type:"structure",members:{}},http:{}},UpdateTrail:{input:{type:"structure",required:["Name"],members:{Name:{},S3BucketName:{},S3KeyPrefix:{},SnsTopicName:{},IncludeGlobalServiceEvents:{type:"boolean"},IsMultiRegionTrail:{type:"boolean"},EnableLogFileValidation:{type:"boolean"},CloudWatchLogsLogGroupArn:{},CloudWatchLogsRoleArn:{},KmsKeyId:{}}},output:{type:"structure",members:{Name:{},S3BucketName:{},S3KeyPrefix:{},SnsTopicName:{},IncludeGlobalServiceEvents:{type:"boolean"},IsMultiRegionTrail:{type:"boolean"},TrailARN:{},LogFileValidationEnabled:{type:"boolean"},CloudWatchLogsLogGroupArn:{},CloudWatchLogsRoleArn:{},KmsKeyId:{}}},http:{}}},shapes:{S3:{type:"list",member:{type:"structure",required:["Key"],members:{Key:{},Value:{}}}}},paginators:{DescribeTrails:{result_key:"trailList"}}},a.apiLoader.services.cloudwatch={},a.CloudWatch=a.Service.defineService("cloudwatch",["2010-08-01"]),a.apiLoader.services.cloudwatch["2010-08-01"]={version:"2.0",metadata:{apiVersion:"2010-08-01",endpointPrefix:"monitoring",protocol:"query",serviceAbbreviation:"CloudWatch",serviceFullName:"Amazon CloudWatch",signatureVersion:"v4",xmlNamespace:"http://monitoring.amazonaws.com/doc/2010-08-01/"},operations:{DeleteAlarms:{input:{type:"structure",required:["AlarmNames"],members:{AlarmNames:{shape:"S2"}}},http:{}},DescribeAlarmHistory:{input:{type:"structure",members:{AlarmName:{},HistoryItemType:{},StartDate:{type:"timestamp"},EndDate:{type:"timestamp"},MaxRecords:{type:"integer"},NextToken:{}}},output:{resultWrapper:"DescribeAlarmHistoryResult",type:"structure",members:{AlarmHistoryItems:{type:"list",member:{type:"structure",members:{AlarmName:{},Timestamp:{type:"timestamp"},HistoryItemType:{},HistorySummary:{},HistoryData:{}}}},NextToken:{}}},http:{}},DescribeAlarms:{input:{type:"structure",members:{AlarmNames:{shape:"S2"},AlarmNamePrefix:{},StateValue:{},ActionPrefix:{},MaxRecords:{type:"integer"},NextToken:{}}},output:{resultWrapper:"DescribeAlarmsResult",type:"structure",members:{MetricAlarms:{shape:"Sj"},NextToken:{}}},http:{}},DescribeAlarmsForMetric:{input:{type:"structure",required:["MetricName","Namespace"],members:{MetricName:{},Namespace:{},Statistic:{},Dimensions:{shape:"Sv"},Period:{type:"integer"},Unit:{}}},output:{resultWrapper:"DescribeAlarmsForMetricResult",type:"structure",members:{MetricAlarms:{shape:"Sj"}}},http:{}},DisableAlarmActions:{input:{type:"structure",required:["AlarmNames"],members:{AlarmNames:{shape:"S2"}}},http:{}},EnableAlarmActions:{input:{type:"structure",required:["AlarmNames"],members:{AlarmNames:{shape:"S2"}}},http:{}},GetMetricStatistics:{input:{type:"structure",required:["Namespace","MetricName","StartTime","EndTime","Period","Statistics"],members:{Namespace:{},MetricName:{},Dimensions:{shape:"Sv"},StartTime:{type:"timestamp"},EndTime:{type:"timestamp"},Period:{type:"integer"},Statistics:{type:"list",member:{}},Unit:{}}},output:{resultWrapper:"GetMetricStatisticsResult",type:"structure",members:{Label:{},Datapoints:{type:"list",member:{type:"structure",members:{Timestamp:{type:"timestamp"},SampleCount:{type:"double"},Average:{type:"double"},Sum:{type:"double"},Minimum:{type:"double"},Maximum:{type:"double"},Unit:{}},xmlOrder:["Timestamp","SampleCount","Average","Sum","Minimum","Maximum","Unit"]}}}},http:{}},ListMetrics:{input:{type:"structure",members:{Namespace:{},MetricName:{},Dimensions:{type:"list",member:{type:"structure",required:["Name"],members:{Name:{},Value:{}}}},NextToken:{}}},output:{resultWrapper:"ListMetricsResult",type:"structure",members:{Metrics:{type:"list",member:{type:"structure",members:{Namespace:{},MetricName:{},Dimensions:{shape:"Sv"}},xmlOrder:["Namespace","MetricName","Dimensions"]}},NextToken:{}},xmlOrder:["Metrics","NextToken"]},http:{}},PutMetricAlarm:{input:{type:"structure",required:["AlarmName","MetricName","Namespace","Statistic","Period","EvaluationPeriods","Threshold","ComparisonOperator"],members:{AlarmName:{},AlarmDescription:{},ActionsEnabled:{type:"boolean"},OKActions:{shape:"So"},AlarmActions:{shape:"So"},InsufficientDataActions:{shape:"So"},MetricName:{},Namespace:{},Statistic:{},Dimensions:{shape:"Sv"},Period:{type:"integer"},Unit:{},EvaluationPeriods:{type:"integer"},Threshold:{type:"double"},ComparisonOperator:{}}},http:{}},PutMetricData:{input:{type:"structure",required:["Namespace","MetricData"],members:{Namespace:{},MetricData:{type:"list",member:{type:"structure",required:["MetricName"],members:{MetricName:{},Dimensions:{shape:"Sv"},Timestamp:{type:"timestamp"},Value:{type:"double"},StatisticValues:{type:"structure",required:["SampleCount","Sum","Minimum","Maximum"],members:{SampleCount:{type:"double"},Sum:{type:"double"},Minimum:{type:"double"},Maximum:{type:"double"}}},Unit:{}}}}}},http:{}},SetAlarmState:{input:{type:"structure",required:["AlarmName","StateValue","StateReason"],members:{AlarmName:{},StateValue:{},StateReason:{},StateReasonData:{}}},http:{}}},shapes:{S2:{type:"list",member:{}},Sj:{type:"list",member:{type:"structure",members:{AlarmName:{},AlarmArn:{},AlarmDescription:{},AlarmConfigurationUpdatedTimestamp:{
|
||
type:"timestamp"},ActionsEnabled:{type:"boolean"},OKActions:{shape:"So"},AlarmActions:{shape:"So"},InsufficientDataActions:{shape:"So"},StateValue:{},StateReason:{},StateReasonData:{},StateUpdatedTimestamp:{type:"timestamp"},MetricName:{},Namespace:{},Statistic:{},Dimensions:{shape:"Sv"},Period:{type:"integer"},Unit:{},EvaluationPeriods:{type:"integer"},Threshold:{type:"double"},ComparisonOperator:{}},xmlOrder:["AlarmName","AlarmArn","AlarmDescription","AlarmConfigurationUpdatedTimestamp","ActionsEnabled","OKActions","AlarmActions","InsufficientDataActions","StateValue","StateReason","StateReasonData","StateUpdatedTimestamp","MetricName","Namespace","Statistic","Dimensions","Period","Unit","EvaluationPeriods","Threshold","ComparisonOperator"]}},So:{type:"list",member:{}},Sv:{type:"list",member:{type:"structure",required:["Name","Value"],members:{Name:{},Value:{}},xmlOrder:["Name","Value"]}}},paginators:{DescribeAlarmHistory:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxRecords",result_key:"AlarmHistoryItems"},DescribeAlarms:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxRecords",result_key:"MetricAlarms"},DescribeAlarmsForMetric:{result_key:"MetricAlarms"},ListMetrics:{input_token:"NextToken",output_token:"NextToken",result_key:"Metrics"}}},a.apiLoader.services.cloudwatchlogs={},a.CloudWatchLogs=a.Service.defineService("cloudwatchlogs",["2014-03-28"]),a.apiLoader.services.cloudwatchlogs["2014-03-28"]={version:"2.0",metadata:{apiVersion:"2014-03-28",endpointPrefix:"logs",jsonVersion:"1.1",protocol:"json",serviceFullName:"Amazon CloudWatch Logs",signatureVersion:"v4",targetPrefix:"Logs_20140328"},operations:{CancelExportTask:{input:{type:"structure",required:["taskId"],members:{taskId:{}}},http:{}},CreateExportTask:{input:{type:"structure",required:["logGroupName","from","to","destination"],members:{taskName:{},logGroupName:{},logStreamNamePrefix:{},from:{type:"long"},to:{type:"long"},destination:{},destinationPrefix:{}}},output:{type:"structure",members:{taskId:{}}},http:{}},CreateLogGroup:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{}}},http:{}},CreateLogStream:{input:{type:"structure",required:["logGroupName","logStreamName"],members:{logGroupName:{},logStreamName:{}}},http:{}},DeleteDestination:{input:{type:"structure",required:["destinationName"],members:{destinationName:{}}},http:{}},DeleteLogGroup:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{}}},http:{}},DeleteLogStream:{input:{type:"structure",required:["logGroupName","logStreamName"],members:{logGroupName:{},logStreamName:{}}},http:{}},DeleteMetricFilter:{input:{type:"structure",required:["logGroupName","filterName"],members:{logGroupName:{},filterName:{}}},http:{}},DeleteRetentionPolicy:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{}}},http:{}},DeleteSubscriptionFilter:{input:{type:"structure",required:["logGroupName","filterName"],members:{logGroupName:{},filterName:{}}},http:{}},DescribeDestinations:{input:{type:"structure",members:{DestinationNamePrefix:{},nextToken:{},limit:{type:"integer"}}},output:{type:"structure",members:{destinations:{type:"list",member:{shape:"Sq"}},nextToken:{}}},http:{}},DescribeExportTasks:{input:{type:"structure",members:{taskId:{},statusCode:{},nextToken:{},limit:{type:"integer"}}},output:{type:"structure",members:{exportTasks:{type:"list",member:{type:"structure",members:{taskId:{},taskName:{},logGroupName:{},from:{type:"long"},to:{type:"long"},destination:{},destinationPrefix:{},status:{type:"structure",members:{code:{},message:{}}},executionInfo:{type:"structure",members:{creationTime:{type:"long"},completionTime:{type:"long"}}}}}},nextToken:{}}},http:{}},DescribeLogGroups:{input:{type:"structure",members:{logGroupNamePrefix:{},nextToken:{},limit:{type:"integer"}}},output:{type:"structure",members:{logGroups:{type:"list",member:{type:"structure",members:{logGroupName:{},creationTime:{type:"long"},retentionInDays:{type:"integer"},metricFilterCount:{type:"integer"},arn:{},storedBytes:{type:"long"}}}},nextToken:{}}},http:{}},DescribeLogStreams:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{},logStreamNamePrefix:{},orderBy:{},descending:{type:"boolean"},nextToken:{},limit:{type:"integer"}}},output:{type:"structure",members:{logStreams:{type:"list",member:{type:"structure",members:{logStreamName:{},creationTime:{type:"long"},firstEventTimestamp:{type:"long"},lastEventTimestamp:{type:"long"},lastIngestionTime:{type:"long"},uploadSequenceToken:{},arn:{},storedBytes:{type:"long"}}}},nextToken:{}}},http:{}},DescribeMetricFilters:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{},filterNamePrefix:{},nextToken:{},limit:{type:"integer"}}},output:{type:"structure",members:{metricFilters:{type:"list",member:{type:"structure",members:{filterName:{},filterPattern:{},metricTransformations:{shape:"S1m"},creationTime:{type:"long"}}}},nextToken:{}}},http:{}},DescribeSubscriptionFilters:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{},filterNamePrefix:{},nextToken:{},limit:{type:"integer"}}},output:{type:"structure",members:{subscriptionFilters:{type:"list",member:{type:"structure",members:{filterName:{},logGroupName:{},filterPattern:{},destinationArn:{},roleArn:{},creationTime:{type:"long"}}}},nextToken:{}}},http:{}},FilterLogEvents:{input:{type:"structure",required:["logGroupName"],members:{logGroupName:{},logStreamNames:{type:"list",member:{}},startTime:{type:"long"},endTime:{type:"long"},filterPattern:{},nextToken:{},limit:{type:"integer"},interleaved:{type:"boolean"}}},output:{type:"structure",members:{events:{type:"list",member:{type:"structure",members:{logStreamName:{},timestamp:{type:"long"},message:{},ingestionTime:{type:"long"},eventId:{}}}},searchedLogStreams:{type:"list",member:{type:"structure",members:{logStreamName:{},searchedCompletely:{type:"boolean"}}}},nextToken:{}}},http:{}},GetLogEvents:{input:{type:"structure",required:["logGroupName","logStreamName"],members:{logGroupName:{},logStreamName:{},startTime:{type:"long"},endTime:{type:"long"},nextToken:{},limit:{type:"integer"},startFromHead:{type:"boolean"}}},output:{type:"structure",members:{events:{type:"list",member:{type:"structure",members:{timestamp:{type:"long"},message:{},ingestionTime:{type:"long"}}}},nextForwardToken:{},nextBackwardToken:{}}},http:{}},PutDestination:{input:{type:"structure",required:["destinationName","targetArn","roleArn"],members:{destinationName:{},targetArn:{},roleArn:{}}},output:{type:"structure",members:{destination:{shape:"Sq"}}},http:{}},PutDestinationPolicy:{input:{type:"structure",required:["destinationName","accessPolicy"],members:{destinationName:{},accessPolicy:{}}},http:{}},PutLogEvents:{input:{type:"structure",required:["logGroupName","logStreamName","logEvents"],members:{logGroupName:{},logStreamName:{},logEvents:{type:"list",member:{type:"structure",required:["timestamp","message"],members:{timestamp:{type:"long"},message:{}}}},sequenceToken:{}}},output:{type:"structure",members:{nextSequenceToken:{},rejectedLogEventsInfo:{type:"structure",members:{tooNewLogEventStartIndex:{type:"integer"},tooOldLogEventEndIndex:{type:"integer"},expiredLogEventEndIndex:{type:"integer"}}}}},http:{}},PutMetricFilter:{input:{type:"structure",required:["logGroupName","filterName","filterPattern","metricTransformations"],members:{logGroupName:{},filterName:{},filterPattern:{},metricTransformations:{shape:"S1m"}}},http:{}},PutRetentionPolicy:{input:{type:"structure",required:["logGroupName","retentionInDays"],members:{logGroupName:{},retentionInDays:{type:"integer"}}},http:{}},PutSubscriptionFilter:{input:{type:"structure",required:["logGroupName","filterName","filterPattern","destinationArn"],members:{logGroupName:{},filterName:{},filterPattern:{},destinationArn:{},roleArn:{}}},http:{}},TestMetricFilter:{input:{type:"structure",required:["filterPattern","logEventMessages"],members:{filterPattern:{},logEventMessages:{type:"list",member:{}}}},output:{type:"structure",members:{matches:{type:"list",member:{type:"structure",members:{eventNumber:{type:"long"},eventMessage:{},extractedValues:{type:"map",key:{},value:{}}}}}}},http:{}}},shapes:{Sq:{type:"structure",members:{destinationName:{},targetArn:{},roleArn:{},accessPolicy:{},arn:{},creationTime:{type:"long"}}},S1m:{type:"list",member:{type:"structure",required:["metricName","metricNamespace","metricValue"],members:{metricName:{},metricNamespace:{},metricValue:{}}}}},paginators:{DescribeDestinations:{input_token:"nextToken",output_token:"nextToken",limit_key:"limit",result_key:"destinations"},DescribeLogGroups:{input_token:"nextToken",output_token:"nextToken",limit_key:"limit",result_key:"logGroups"},DescribeLogStreams:{input_token:"nextToken",output_token:"nextToken",limit_key:"limit",result_key:"logStreams"},DescribeMetricFilters:{input_token:"nextToken",output_token:"nextToken",limit_key:"limit",result_key:"metricFilters"},DescribeSubscriptionFilters:{input_token:"nextToken",output_token:"nextToken",limit_key:"limit",result_key:"subscriptionFilters"},FilterLogEvents:{input_token:"nextToken",output_token:"nextToken",limit_key:"limit",result_key:["events","searchedLogStreams"]},GetLogEvents:{input_token:"nextToken",output_token:"nextForwardToken",limit_key:"limit",result_key:"events"}}},a.apiLoader.services.codecommit={},a.CodeCommit=a.Service.defineService("codecommit",["2015-04-13"]),a.apiLoader.services.codecommit["2015-04-13"]={version:"2.0",metadata:{apiVersion:"2015-04-13",endpointPrefix:"codecommit",jsonVersion:"1.1",protocol:"json",serviceAbbreviation:"CodeCommit",serviceFullName:"AWS CodeCommit",signatureVersion:"v4",targetPrefix:"CodeCommit_20150413"},operations:{BatchGetRepositories:{input:{type:"structure",required:["repositoryNames"],members:{repositoryNames:{type:"list",member:{}}}},output:{type:"structure",members:{repositories:{type:"list",member:{shape:"S6"}},repositoriesNotFound:{type:"list",member:{}}}},http:{}},CreateBranch:{input:{type:"structure",required:["repositoryName","branchName","commitId"],members:{repositoryName:{},branchName:{},commitId:{}}},http:{}},CreateRepository:{input:{type:"structure",required:["repositoryName"],members:{repositoryName:{},repositoryDescription:{}}},output:{type:"structure",members:{repositoryMetadata:{shape:"S6"}}},http:{}},DeleteRepository:{input:{type:"structure",required:["repositoryName"],members:{repositoryName:{}}},output:{type:"structure",members:{repositoryId:{}}},http:{}},GetBranch:{input:{type:"structure",members:{repositoryName:{},branchName:{}}},output:{type:"structure",members:{branch:{type:"structure",members:{branchName:{},commitId:{}}}}},http:{}},GetCommit:{input:{type:"structure",required:["repositoryName","commitId"],members:{repositoryName:{},commitId:{}}},output:{type:"structure",required:["commit"],members:{commit:{type:"structure",members:{treeId:{},parents:{type:"list",member:{}},message:{},author:{shape:"Sw"},committer:{shape:"Sw"},additionalData:{}}}}},http:{}},GetRepository:{input:{type:"structure",required:["repositoryName"],members:{repositoryName:{}}},output:{type:"structure",members:{repositoryMetadata:{shape:"S6"}}},http:{}},GetRepositoryTriggers:{input:{type:"structure",members:{repositoryName:{}}},output:{type:"structure",members:{configurationId:{},triggers:{shape:"S16"}}},http:{}},ListBranches:{input:{type:"structure",required:["repositoryName"],members:{repositoryName:{},nextToken:{}}},output:{type:"structure",members:{branches:{shape:"S1a"},nextToken:{}}},http:{}},ListRepositories:{input:{type:"structure",members:{nextToken:{},sortBy:{},order:{}}},output:{type:"structure",members:{repositories:{type:"list",member:{type:"structure",members:{repositoryName:{},repositoryId:{}}}},nextToken:{}}},http:{}},PutRepositoryTriggers:{input:{type:"structure",members:{repositoryName:{},triggers:{shape:"S16"}}},output:{type:"structure",members:{configurationId:{}}},http:{}},TestRepositoryTriggers:{input:{type:"structure",members:{repositoryName:{},triggers:{shape:"S16"}}},output:{type:"structure",members:{successfulExecutions:{type:"list",member:{}},failedExecutions:{type:"list",member:{type:"structure",members:{trigger:{},failureMessage:{}}}}}},http:{}},UpdateDefaultBranch:{input:{type:"structure",required:["repositoryName","defaultBranchName"],members:{repositoryName:{},defaultBranchName:{}}},http:{}},UpdateRepositoryDescription:{input:{type:"structure",required:["repositoryName"],members:{repositoryName:{},repositoryDescription:{}}},http:{}},UpdateRepositoryName:{input:{type:"structure",required:["oldName","newName"],members:{oldName:{},newName:{}}},http:{}}},shapes:{S6:{type:"structure",members:{accountId:{},repositoryId:{},repositoryName:{},repositoryDescription:{},defaultBranch:{},lastModifiedDate:{type:"timestamp"},creationDate:{type:"timestamp"},cloneUrlHttp:{},cloneUrlSsh:{},Arn:{}}},Sw:{type:"structure",members:{name:{},email:{},date:{}}},S16:{type:"list",member:{type:"structure",members:{name:{},destinationArn:{},customData:{},branches:{shape:"S1a"},events:{type:"list",member:{}}}}},S1a:{type:"list",member:{}}},paginators:{ListBranches:{input_token:"nextToken",output_token:"nextToken",result_key:"branches"},ListRepositories:{input_token:"nextToken",output_token:"nextToken",result_key:"repositories"}}},a.apiLoader.services.codepipeline={},a.CodePipeline=a.Service.defineService("codepipeline",["2015-07-09"]),a.apiLoader.services.codepipeline["2015-07-09"]={version:"2.0",metadata:{apiVersion:"2015-07-09",endpointPrefix:"codepipeline",jsonVersion:"1.1",serviceAbbreviation:"CodePipeline",serviceFullName:"AWS CodePipeline",signatureVersion:"v4",targetPrefix:"CodePipeline_20150709",protocol:"json"},operations:{AcknowledgeJob:{input:{type:"structure",required:["jobId","nonce"],members:{jobId:{},nonce:{}}},output:{type:"structure",members:{status:{}}},http:{}},AcknowledgeThirdPartyJob:{input:{type:"structure",required:["jobId","nonce","clientToken"],members:{jobId:{},nonce:{},clientToken:{}}},output:{type:"structure",members:{status:{}}},http:{}},CreateCustomActionType:{input:{type:"structure",required:["category","provider","version","inputArtifactDetails","outputArtifactDetails"],members:{category:{},provider:{},version:{},settings:{shape:"Se"},configurationProperties:{shape:"Sh"},inputArtifactDetails:{shape:"Sn"},outputArtifactDetails:{shape:"Sn"}}},output:{type:"structure",required:["actionType"],members:{actionType:{shape:"Sr"}}},http:{}},CreatePipeline:{input:{type:"structure",required:["pipeline"],members:{pipeline:{shape:"Sv"}}},output:{type:"structure",members:{pipeline:{shape:"Sv"}}},http:{}},DeleteCustomActionType:{input:{type:"structure",required:["category","provider","version"],members:{category:{},provider:{},version:{}}},http:{}},DeletePipeline:{input:{type:"structure",required:["name"],members:{name:{}}},http:{}},DisableStageTransition:{input:{type:"structure",required:["pipelineName","stageName","transitionType","reason"],members:{pipelineName:{},stageName:{},transitionType:{},reason:{}}},http:{}},EnableStageTransition:{input:{type:"structure",required:["pipelineName","stageName","transitionType"],members:{pipelineName:{},stageName:{},transitionType:{}}},http:{}},GetJobDetails:{input:{type:"structure",required:["jobId"],members:{jobId:{}}},output:{type:"structure",members:{jobDetails:{type:"structure",members:{id:{},data:{shape:"S1x"},accountId:{}}}}},http:{}},GetPipeline:{input:{type:"structure",required:["name"],members:{name:{},version:{type:"integer"}}},output:{type:"structure",members:{pipeline:{shape:"Sv"}}},http:{}},GetPipelineState:{input:{type:"structure",required:["name"],members:{name:{}}},output:{type:"structure",members:{pipelineName:{},pipelineVersion:{type:"integer"},stageStates:{type:"list",member:{type:"structure",members:{stageName:{},inboundTransitionState:{type:"structure",members:{enabled:{type:"boolean"},lastChangedBy:{},lastChangedAt:{type:"timestamp"},disabledReason:{}}},actionStates:{type:"list",member:{type:"structure",members:{actionName:{},currentRevision:{shape:"S2s"},latestExecution:{type:"structure",members:{status:{},summary:{},lastStatusChange:{type:"timestamp"},externalExecutionId:{},externalExecutionUrl:{},percentComplete:{type:"integer"},errorDetails:{type:"structure",members:{code:{},message:{}}}}},entityUrl:{},revisionUrl:{}}}}}}},created:{type:"timestamp"},updated:{type:"timestamp"}}},http:{}},GetThirdPartyJobDetails:{input:{type:"structure",required:["jobId","clientToken"],members:{jobId:{},clientToken:{}}},output:{type:"structure",members:{jobDetails:{type:"structure",members:{id:{},data:{type:"structure",members:{actionTypeId:{shape:"Ss"},actionConfiguration:{shape:"S1y"},pipelineContext:{shape:"S1z"},inputArtifacts:{shape:"S22"},outputArtifacts:{shape:"S22"},artifactCredentials:{shape:"S2a"},continuationToken:{},encryptionKey:{shape:"S11"}}},nonce:{}}}}},http:{}},ListActionTypes:{input:{type:"structure",members:{actionOwnerFilter:{},nextToken:{}}},output:{type:"structure",required:["actionTypes"],members:{actionTypes:{type:"list",member:{shape:"Sr"}},nextToken:{}}},http:{}},ListPipelines:{input:{type:"structure",members:{nextToken:{}}},output:{type:"structure",members:{pipelines:{type:"list",member:{type:"structure",members:{name:{},version:{type:"integer"},created:{type:"timestamp"},updated:{type:"timestamp"}}}},nextToken:{}}},http:{}},PollForJobs:{input:{type:"structure",required:["actionTypeId"],members:{actionTypeId:{shape:"Ss"},maxBatchSize:{type:"integer"},queryParam:{type:"map",key:{},value:{}}}},output:{type:"structure",members:{jobs:{type:"list",member:{type:"structure",members:{id:{},data:{shape:"S1x"},nonce:{},accountId:{}}}}}},http:{}},PollForThirdPartyJobs:{input:{type:"structure",required:["actionTypeId"],members:{actionTypeId:{shape:"Ss"},maxBatchSize:{type:"integer"}}},output:{type:"structure",members:{jobs:{type:"list",member:{type:"structure",members:{clientId:{},jobId:{}}}}}},http:{}},PutActionRevision:{input:{type:"structure",required:["pipelineName","stageName","actionName","actionRevision"],members:{pipelineName:{},stageName:{},actionName:{},actionRevision:{shape:"S2s"}}},output:{type:"structure",members:{newRevision:{type:"boolean"},pipelineExecutionId:{}}},http:{}},PutJobFailureResult:{input:{type:"structure",required:["jobId","failureDetails"],members:{jobId:{},failureDetails:{shape:"S3w"}}},http:{}},PutJobSuccessResult:{input:{type:"structure",required:["jobId"],members:{jobId:{},currentRevision:{shape:"S3z"},continuationToken:{},executionDetails:{shape:"S41"}}},http:{}},PutThirdPartyJobFailureResult:{input:{type:"structure",required:["jobId","clientToken","failureDetails"],members:{jobId:{},clientToken:{},failureDetails:{shape:"S3w"}}},http:{}},PutThirdPartyJobSuccessResult:{input:{type:"structure",required:["jobId","clientToken"],members:{jobId:{},clientToken:{},currentRevision:{shape:"S3z"},continuationToken:{},executionDetails:{shape:"S41"}}},http:{}},StartPipelineExecution:{input:{type:"structure",required:["name"],members:{name:{}}},output:{type:"structure",members:{pipelineExecutionId:{}}},http:{}},UpdatePipeline:{input:{type:"structure",required:["pipeline"],members:{pipeline:{shape:"Sv"}}},output:{type:"structure",members:{pipeline:{shape:"Sv"}}},http:{}}},shapes:{Se:{type:"structure",members:{thirdPartyConfigurationUrl:{},entityUrlTemplate:{},executionUrlTemplate:{},revisionUrlTemplate:{}}},Sh:{type:"list",member:{type:"structure",required:["name","required","key","secret"],members:{name:{},required:{type:"boolean"},key:{type:"boolean"},secret:{type:"boolean"},queryable:{type:"boolean"},description:{},type:{}}}},Sn:{type:"structure",required:["minimumCount","maximumCount"],members:{minimumCount:{type:"integer"},maximumCount:{type:"integer"}}},Sr:{type:"structure",required:["id","inputArtifactDetails","outputArtifactDetails"],members:{id:{shape:"Ss"},settings:{shape:"Se"},actionConfigurationProperties:{shape:"Sh"},inputArtifactDetails:{shape:"Sn"},outputArtifactDetails:{shape:"Sn"}}},Ss:{type:"structure",required:["category","owner","provider","version"],members:{category:{},owner:{},provider:{},version:{}}},Sv:{type:"structure",required:["name","roleArn","artifactStore","stages"],members:{name:{},roleArn:{},artifactStore:{type:"structure",required:["type","location"],members:{type:{},location:{},encryptionKey:{shape:"S11"}}},stages:{type:"list",member:{type:"structure",required:["name","actions"],members:{name:{},blockers:{type:"list",member:{type:"structure",required:["name","type"],members:{name:{},type:{}}}},actions:{type:"list",member:{type:"structure",required:["name","actionTypeId"],members:{name:{},actionTypeId:{shape:"Ss"},runOrder:{type:"integer"},configuration:{shape:"S1f"},outputArtifacts:{type:"list",member:{type:"structure",required:["name"],members:{name:{}}}},inputArtifacts:{type:"list",member:{type:"structure",required:["name"],members:{name:{}}}},roleArn:{}}}}}}},version:{type:"integer"}}},S11:{type:"structure",required:["id","type"],members:{id:{},type:{}}},S1f:{type:"map",key:{},value:{}},S1x:{type:"structure",members:{actionTypeId:{shape:"Ss"},actionConfiguration:{shape:"S1y"},pipelineContext:{shape:"S1z"},inputArtifacts:{shape:"S22"},outputArtifacts:{shape:"S22"},artifactCredentials:{shape:"S2a"},continuationToken:{},encryptionKey:{shape:"S11"}}},S1y:{type:"structure",members:{configuration:{shape:"S1f"}}},S1z:{type:"structure",members:{pipelineName:{},stage:{type:"structure",members:{name:{}}},action:{type:"structure",members:{name:{}}}}},S22:{type:"list",member:{type:"structure",members:{name:{},revision:{},location:{type:"structure",members:{type:{},s3Location:{type:"structure",required:["bucketName","objectKey"],members:{bucketName:{},objectKey:{}}}}}}}},S2a:{type:"structure",required:["accessKeyId","secretAccessKey","sessionToken"],members:{accessKeyId:{},secretAccessKey:{},sessionToken:{}},sensitive:!0},S2s:{type:"structure",required:["revisionId","created"],members:{revisionId:{},revisionChangeId:{},created:{type:"timestamp"}}},S3w:{type:"structure",required:["type","message"],members:{type:{},message:{},externalExecutionId:{}}},S3z:{type:"structure",required:["revision","changeIdentifier"],members:{revision:{},changeIdentifier:{}}},S41:{type:"structure",members:{summary:{},externalExecutionId:{},percentComplete:{type:"integer"}}}},examples:{}},a.apiLoader.services.cognitoidentity={},a.CognitoIdentity=a.Service.defineService("cognitoidentity",["2014-06-30"]),e("./services/cognitoidentity"),a.apiLoader.services.cognitoidentity["2014-06-30"]={version:"2.0",metadata:{apiVersion:"2014-06-30",endpointPrefix:"cognito-identity",jsonVersion:"1.1",serviceFullName:"Amazon Cognito Identity",signatureVersion:"v4",targetPrefix:"AWSCognitoIdentityService",protocol:"json"},operations:{CreateIdentityPool:{input:{type:"structure",required:["IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},SupportedLoginProviders:{shape:"S4"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S8"}}},output:{shape:"Sa"},http:{}},DeleteIdentities:{input:{type:"structure",required:["IdentityIdsToDelete"],members:{IdentityIdsToDelete:{type:"list",member:{}}}},output:{type:"structure",members:{UnprocessedIdentityIds:{type:"list",member:{type:"structure",members:{IdentityId:{},ErrorCode:{}}}}}},http:{}},DeleteIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},http:{}},DescribeIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{}}},output:{shape:"Sl"},http:{}},DescribeIdentityPool:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{shape:"Sa"},http:{}},GetCredentialsForIdentity:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"Sq"}}},output:{type:"structure",members:{IdentityId:{},Credentials:{type:"structure",members:{AccessKeyId:{},SecretKey:{},SessionToken:{},Expiration:{type:"timestamp"}}}}},http:{}},GetId:{input:{type:"structure",required:["IdentityPoolId"],members:{AccountId:{},IdentityPoolId:{},Logins:{shape:"Sq"}}},output:{type:"structure",members:{IdentityId:{}}},http:{}},GetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{}}},output:{type:"structure",members:{IdentityPoolId:{},Roles:{shape:"S12"}}},http:{}},GetOpenIdToken:{input:{type:"structure",required:["IdentityId"],members:{IdentityId:{},Logins:{shape:"Sq"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}},http:{}},GetOpenIdTokenForDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId","Logins"],members:{IdentityPoolId:{},IdentityId:{},Logins:{shape:"Sq"},TokenDuration:{type:"long"}}},output:{type:"structure",members:{IdentityId:{},Token:{}}},http:{}},ListIdentities:{input:{type:"structure",required:["IdentityPoolId","MaxResults"],members:{IdentityPoolId:{},MaxResults:{type:"integer"},NextToken:{},HideDisabled:{type:"boolean"}}},output:{type:"structure",members:{IdentityPoolId:{},Identities:{type:"list",member:{shape:"Sl"}},NextToken:{}}},http:{}},ListIdentityPools:{input:{type:"structure",required:["MaxResults"],members:{MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityPools:{type:"list",member:{type:"structure",members:{IdentityPoolId:{},IdentityPoolName:{}}}},NextToken:{}}},http:{}},LookupDeveloperIdentity:{input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{},IdentityId:{},DeveloperUserIdentifier:{},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{IdentityId:{},DeveloperUserIdentifierList:{type:"list",member:{}},NextToken:{}}},http:{}},MergeDeveloperIdentities:{input:{type:"structure",required:["SourceUserIdentifier","DestinationUserIdentifier","DeveloperProviderName","IdentityPoolId"],members:{SourceUserIdentifier:{},DestinationUserIdentifier:{},DeveloperProviderName:{},IdentityPoolId:{}}},output:{type:"structure",members:{IdentityId:{}}},http:{}},SetIdentityPoolRoles:{input:{type:"structure",required:["IdentityPoolId","Roles"],members:{IdentityPoolId:{},Roles:{shape:"S12"}}},http:{}},UnlinkDeveloperIdentity:{input:{type:"structure",required:["IdentityId","IdentityPoolId","DeveloperProviderName","DeveloperUserIdentifier"],members:{IdentityId:{},IdentityPoolId:{},DeveloperProviderName:{},DeveloperUserIdentifier:{}}},http:{}},UnlinkIdentity:{input:{type:"structure",required:["IdentityId","Logins","LoginsToRemove"],members:{IdentityId:{},Logins:{shape:"Sq"},LoginsToRemove:{shape:"Sm"}}},http:{}},UpdateIdentityPool:{input:{shape:"Sa"},output:{shape:"Sa"},http:{}}},shapes:{S4:{type:"map",key:{},value:{}},S8:{type:"list",member:{}},Sa:{type:"structure",required:["IdentityPoolId","IdentityPoolName","AllowUnauthenticatedIdentities"],members:{IdentityPoolId:{},IdentityPoolName:{},AllowUnauthenticatedIdentities:{type:"boolean"},SupportedLoginProviders:{shape:"S4"},DeveloperProviderName:{},OpenIdConnectProviderARNs:{shape:"S8"}}},Sl:{type:"structure",members:{IdentityId:{},Logins:{shape:"Sm"},CreationDate:{type:"timestamp"},LastModifiedDate:{type:"timestamp"}}},Sm:{type:"list",member:{}},Sq:{type:"map",key:{},value:{}},S12:{type:"map",key:{},value:{}}},examples:{}},a.apiLoader.services.cognitosync={},a.CognitoSync=a.Service.defineService("cognitosync",["2014-06-30"]),a.apiLoader.services.cognitosync["2014-06-30"]={version:"2.0",metadata:{apiVersion:"2014-06-30",endpointPrefix:"cognito-sync",jsonVersion:"1.1",serviceFullName:"Amazon Cognito Sync",signatureVersion:"v4",protocol:"rest-json"},operations:{BulkPublish:{http:{requestUri:"/identitypools/{IdentityPoolId}/bulkpublish",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"}}},output:{type:"structure",members:{IdentityPoolId:{}}}},DeleteDataset:{http:{method:"DELETE",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"}}},output:{type:"structure",members:{Dataset:{shape:"S8"}}}},DescribeDataset:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"}}},output:{type:"structure",members:{Dataset:{shape:"S8"}}}},DescribeIdentityPoolUsage:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"}}},output:{type:"structure",members:{IdentityPoolUsage:{shape:"Sg"}}}},DescribeIdentityUsage:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"}}},output:{type:"structure",members:{IdentityUsage:{type:"structure",members:{IdentityId:{},IdentityPoolId:{},LastModifiedDate:{type:"timestamp"},DatasetCount:{type:"integer"},DataStorage:{type:"long"}}}}}},GetBulkPublishDetails:{http:{requestUri:"/identitypools/{IdentityPoolId}/getBulkPublishDetails",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"}}},output:{type:"structure",members:{IdentityPoolId:{},BulkPublishStartTime:{type:"timestamp"},BulkPublishCompleteTime:{type:"timestamp"},BulkPublishStatus:{},FailureMessage:{}}}},GetCognitoEvents:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/events",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"}}},output:{type:"structure",members:{Events:{shape:"Sq"}}}},GetIdentityPoolConfiguration:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/configuration",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"}}},output:{type:"structure",members:{IdentityPoolId:{},PushSync:{shape:"Sv"},CognitoStreams:{shape:"Sz"}}}},ListDatasets:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets",responseCode:200},input:{type:"structure",required:["IdentityId","IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},NextToken:{location:"querystring",locationName:"nextToken"},MaxResults:{location:"querystring",locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{Datasets:{type:"list",member:{shape:"S8"}},Count:{type:"integer"},NextToken:{}}}},ListIdentityPoolUsage:{http:{method:"GET",requestUri:"/identitypools",responseCode:200},input:{type:"structure",members:{NextToken:{location:"querystring",locationName:"nextToken"},MaxResults:{location:"querystring",locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{IdentityPoolUsages:{type:"list",member:{shape:"Sg"}},MaxResults:{type:"integer"},Count:{type:"integer"},NextToken:{}}}},ListRecords:{http:{method:"GET",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName"],members:{IdentityPoolId:{location:"uri",
|
||
locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"},LastSyncCount:{location:"querystring",locationName:"lastSyncCount",type:"long"},NextToken:{location:"querystring",locationName:"nextToken"},MaxResults:{location:"querystring",locationName:"maxResults",type:"integer"},SyncSessionToken:{location:"querystring",locationName:"syncSessionToken"}}},output:{type:"structure",members:{Records:{shape:"S1c"},NextToken:{},Count:{type:"integer"},DatasetSyncCount:{type:"long"},LastModifiedBy:{},MergedDatasetNames:{type:"list",member:{}},DatasetExists:{type:"boolean"},DatasetDeletedAfterRequestedSyncCount:{type:"boolean"},SyncSessionToken:{}}}},RegisterDevice:{http:{requestUri:"/identitypools/{IdentityPoolId}/identity/{IdentityId}/device",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","Platform","Token"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},Platform:{},Token:{}}},output:{type:"structure",members:{DeviceId:{}}}},SetCognitoEvents:{http:{requestUri:"/identitypools/{IdentityPoolId}/events",responseCode:200},input:{type:"structure",required:["IdentityPoolId","Events"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},Events:{shape:"Sq"}}}},SetIdentityPoolConfiguration:{http:{requestUri:"/identitypools/{IdentityPoolId}/configuration",responseCode:200},input:{type:"structure",required:["IdentityPoolId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},PushSync:{shape:"Sv"},CognitoStreams:{shape:"Sz"}}},output:{type:"structure",members:{IdentityPoolId:{},PushSync:{shape:"Sv"},CognitoStreams:{shape:"Sz"}}}},SubscribeToDataset:{http:{requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName","DeviceId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"},DeviceId:{location:"uri",locationName:"DeviceId"}}},output:{type:"structure",members:{}}},UnsubscribeFromDataset:{http:{method:"DELETE",requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/subscriptions/{DeviceId}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName","DeviceId"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"},DeviceId:{location:"uri",locationName:"DeviceId"}}},output:{type:"structure",members:{}}},UpdateRecords:{http:{requestUri:"/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}",responseCode:200},input:{type:"structure",required:["IdentityPoolId","IdentityId","DatasetName","SyncSessionToken"],members:{IdentityPoolId:{location:"uri",locationName:"IdentityPoolId"},IdentityId:{location:"uri",locationName:"IdentityId"},DatasetName:{location:"uri",locationName:"DatasetName"},DeviceId:{},RecordPatches:{type:"list",member:{type:"structure",required:["Op","Key","SyncCount"],members:{Op:{},Key:{},Value:{},SyncCount:{type:"long"},DeviceLastModifiedDate:{type:"timestamp"}}}},SyncSessionToken:{},ClientContext:{location:"header",locationName:"x-amz-Client-Context"}}},output:{type:"structure",members:{Records:{shape:"S1c"}}}}},shapes:{S8:{type:"structure",members:{IdentityId:{},DatasetName:{},CreationDate:{type:"timestamp"},LastModifiedDate:{type:"timestamp"},LastModifiedBy:{},DataStorage:{type:"long"},NumRecords:{type:"long"}}},Sg:{type:"structure",members:{IdentityPoolId:{},SyncSessionsCount:{type:"long"},DataStorage:{type:"long"},LastModifiedDate:{type:"timestamp"}}},Sq:{type:"map",key:{},value:{}},Sv:{type:"structure",members:{ApplicationArns:{type:"list",member:{}},RoleArn:{}}},Sz:{type:"structure",members:{StreamName:{},RoleArn:{},StreamingStatus:{}}},S1c:{type:"list",member:{type:"structure",members:{Key:{},Value:{},SyncCount:{type:"long"},LastModifiedDate:{type:"timestamp"},LastModifiedBy:{},DeviceLastModifiedDate:{type:"timestamp"}}}}},examples:{}},a.apiLoader.services.devicefarm={},a.DeviceFarm=a.Service.defineService("devicefarm",["2015-06-23"]),a.apiLoader.services.devicefarm["2015-06-23"]={version:"2.0",metadata:{apiVersion:"2015-06-23",endpointPrefix:"devicefarm",jsonVersion:"1.1",protocol:"json",serviceFullName:"AWS Device Farm",signatureVersion:"v4",targetPrefix:"DeviceFarm_20150623"},operations:{CreateDevicePool:{input:{type:"structure",required:["projectArn","name","rules"],members:{projectArn:{},name:{},description:{},rules:{shape:"S5"}}},output:{type:"structure",members:{devicePool:{shape:"Sb"}}},http:{}},CreateProject:{input:{type:"structure",required:["name"],members:{name:{}}},output:{type:"structure",members:{project:{shape:"Sf"}}},http:{}},CreateUpload:{input:{type:"structure",required:["projectArn","name","type"],members:{projectArn:{},name:{},type:{},contentType:{}}},output:{type:"structure",members:{upload:{shape:"Sl"}}},http:{}},DeleteDevicePool:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{}},http:{}},DeleteProject:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{}},http:{}},DeleteRun:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{}},http:{}},DeleteUpload:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{}},http:{}},GetAccountSettings:{input:{type:"structure",members:{}},output:{type:"structure",members:{accountSettings:{type:"structure",members:{awsAccountNumber:{},unmeteredDevices:{type:"map",key:{},value:{type:"integer"}}}}}},http:{}},GetDevice:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{device:{shape:"S16"}}},http:{}},GetDevicePool:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{devicePool:{shape:"Sb"}}},http:{}},GetDevicePoolCompatibility:{input:{type:"structure",required:["devicePoolArn"],members:{devicePoolArn:{},appArn:{},testType:{}}},output:{type:"structure",members:{compatibleDevices:{shape:"S1h"},incompatibleDevices:{shape:"S1h"}}},http:{}},GetJob:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{job:{shape:"S1o"}}},http:{}},GetProject:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{project:{shape:"Sf"}}},http:{}},GetRun:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{run:{shape:"S1x"}}},http:{}},GetSuite:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{suite:{shape:"S21"}}},http:{}},GetTest:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{test:{shape:"S24"}}},http:{}},GetUpload:{input:{type:"structure",required:["arn"],members:{arn:{}}},output:{type:"structure",members:{upload:{shape:"Sl"}}},http:{}},ListArtifacts:{input:{type:"structure",required:["arn","type"],members:{arn:{},type:{},nextToken:{}}},output:{type:"structure",members:{artifacts:{type:"list",member:{type:"structure",members:{arn:{},name:{},type:{},extension:{},url:{}}}},nextToken:{}}},http:{}},ListDevicePools:{input:{type:"structure",required:["arn"],members:{arn:{},type:{},nextToken:{}}},output:{type:"structure",members:{devicePools:{type:"list",member:{shape:"Sb"}},nextToken:{}}},http:{}},ListDevices:{input:{type:"structure",members:{arn:{},nextToken:{}}},output:{type:"structure",members:{devices:{type:"list",member:{shape:"S16"}},nextToken:{}}},http:{}},ListJobs:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{jobs:{type:"list",member:{shape:"S1o"}},nextToken:{}}},http:{}},ListProjects:{input:{type:"structure",members:{arn:{},nextToken:{}}},output:{type:"structure",members:{projects:{type:"list",member:{shape:"Sf"}},nextToken:{}}},http:{}},ListRuns:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{runs:{type:"list",member:{shape:"S1x"}},nextToken:{}}},http:{}},ListSamples:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{samples:{type:"list",member:{type:"structure",members:{arn:{},type:{},url:{}}}},nextToken:{}}},http:{}},ListSuites:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{suites:{type:"list",member:{shape:"S21"}},nextToken:{}}},http:{}},ListTests:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{tests:{type:"list",member:{shape:"S24"}},nextToken:{}}},http:{}},ListUniqueProblems:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{uniqueProblems:{type:"map",key:{},value:{type:"list",member:{type:"structure",members:{message:{},problems:{type:"list",member:{type:"structure",members:{run:{shape:"S3b"},job:{shape:"S3b"},suite:{shape:"S3b"},test:{shape:"S3b"},device:{shape:"S16"},result:{},message:{}}}}}}}},nextToken:{}}},http:{}},ListUploads:{input:{type:"structure",required:["arn"],members:{arn:{},nextToken:{}}},output:{type:"structure",members:{uploads:{type:"list",member:{shape:"Sl"}},nextToken:{}}},http:{}},ScheduleRun:{input:{type:"structure",required:["projectArn","devicePoolArn","test"],members:{projectArn:{},appArn:{},devicePoolArn:{},name:{},test:{type:"structure",required:["type"],members:{type:{},testPackageArn:{},filter:{},parameters:{type:"map",key:{},value:{}}}},configuration:{type:"structure",members:{extraDataPackageArn:{},networkProfileArn:{},locale:{},location:{type:"structure",required:["latitude","longitude"],members:{latitude:{type:"double"},longitude:{type:"double"}}},radios:{type:"structure",members:{wifi:{type:"boolean"},bluetooth:{type:"boolean"},nfc:{type:"boolean"},gps:{type:"boolean"}}},auxiliaryApps:{type:"list",member:{}},billingMethod:{}}}}},output:{type:"structure",members:{run:{shape:"S1x"}}},http:{}},UpdateDevicePool:{input:{type:"structure",required:["arn"],members:{arn:{},name:{},description:{},rules:{shape:"S5"}}},output:{type:"structure",members:{devicePool:{shape:"Sb"}}},http:{}},UpdateProject:{input:{type:"structure",required:["arn"],members:{arn:{},name:{}}},output:{type:"structure",members:{project:{shape:"Sf"}}},http:{}}},shapes:{S5:{type:"list",member:{type:"structure",members:{attribute:{},operator:{},value:{}}}},Sb:{type:"structure",members:{arn:{},name:{},description:{},type:{},rules:{shape:"S5"}}},Sf:{type:"structure",members:{arn:{},name:{},created:{type:"timestamp"}}},Sl:{type:"structure",members:{arn:{},name:{},created:{type:"timestamp"},type:{},status:{},url:{},metadata:{},contentType:{},message:{}}},S16:{type:"structure",members:{arn:{},name:{},manufacturer:{},model:{},formFactor:{},platform:{},os:{},cpu:{type:"structure",members:{frequency:{},architecture:{},clock:{type:"double"}}},resolution:{type:"structure",members:{width:{type:"integer"},height:{type:"integer"}}},heapSize:{type:"long"},memory:{type:"long"},image:{},carrier:{},radio:{}}},S1h:{type:"list",member:{type:"structure",members:{device:{shape:"S16"},compatible:{type:"boolean"},incompatibilityMessages:{type:"list",member:{type:"structure",members:{message:{},type:{}}}}}}},S1o:{type:"structure",members:{arn:{},name:{},type:{},created:{type:"timestamp"},status:{},result:{},started:{type:"timestamp"},stopped:{type:"timestamp"},counters:{shape:"S1r"},message:{},device:{shape:"S16"},deviceMinutes:{shape:"S1s"}}},S1r:{type:"structure",members:{total:{type:"integer"},passed:{type:"integer"},failed:{type:"integer"},warned:{type:"integer"},errored:{type:"integer"},stopped:{type:"integer"},skipped:{type:"integer"}}},S1s:{type:"structure",members:{total:{type:"double"},metered:{type:"double"},unmetered:{type:"double"}}},S1x:{type:"structure",members:{arn:{},name:{},type:{},platform:{},created:{type:"timestamp"},status:{},result:{},started:{type:"timestamp"},stopped:{type:"timestamp"},counters:{shape:"S1r"},message:{},totalJobs:{type:"integer"},completedJobs:{type:"integer"},billingMethod:{},deviceMinutes:{shape:"S1s"}}},S21:{type:"structure",members:{arn:{},name:{},type:{},created:{type:"timestamp"},status:{},result:{},started:{type:"timestamp"},stopped:{type:"timestamp"},counters:{shape:"S1r"},message:{},deviceMinutes:{shape:"S1s"}}},S24:{type:"structure",members:{arn:{},name:{},type:{},created:{type:"timestamp"},status:{},result:{},started:{type:"timestamp"},stopped:{type:"timestamp"},counters:{shape:"S1r"},message:{},deviceMinutes:{shape:"S1s"}}},S3b:{type:"structure",members:{arn:{},name:{}}}},paginators:{ListArtifacts:{input_token:"nextToken",output_token:"nextToken",result_key:"artifacts"},ListDevicePools:{input_token:"nextToken",output_token:"nextToken",result_key:"devicePools"},ListDevices:{input_token:"nextToken",output_token:"nextToken",result_key:"devices"},ListJobs:{input_token:"nextToken",output_token:"nextToken",result_key:"jobs"},ListProjects:{input_token:"nextToken",output_token:"nextToken",result_key:"projects"},ListRuns:{input_token:"nextToken",output_token:"nextToken",result_key:"runs"},ListSamples:{input_token:"nextToken",output_token:"nextToken",result_key:"samples"},ListSuites:{input_token:"nextToken",output_token:"nextToken",result_key:"suites"},ListTests:{input_token:"nextToken",output_token:"nextToken",result_key:"tests"},ListUniqueProblems:{input_token:"nextToken",output_token:"nextToken",result_key:"uniqueProblems"},ListUploads:{input_token:"nextToken",output_token:"nextToken",result_key:"uploads"}}},a.apiLoader.services.dynamodb={},a.DynamoDB=a.Service.defineService("dynamodb",["2011-12-05","2012-08-10"]),e("./services/dynamodb"),a.apiLoader.services.dynamodb["2012-08-10"]={version:"2.0",metadata:{apiVersion:"2012-08-10",endpointPrefix:"dynamodb",jsonVersion:"1.0",protocol:"json",serviceAbbreviation:"DynamoDB",serviceFullName:"Amazon DynamoDB",signatureVersion:"v4",targetPrefix:"DynamoDB_20120810"},operations:{BatchGetItem:{input:{type:"structure",required:["RequestItems"],members:{RequestItems:{shape:"S2"},ReturnConsumedCapacity:{}}},output:{type:"structure",members:{Responses:{type:"map",key:{},value:{shape:"Sr"}},UnprocessedKeys:{shape:"S2"},ConsumedCapacity:{shape:"St"}}},http:{}},BatchWriteItem:{input:{type:"structure",required:["RequestItems"],members:{RequestItems:{shape:"S10"},ReturnConsumedCapacity:{},ReturnItemCollectionMetrics:{}}},output:{type:"structure",members:{UnprocessedItems:{shape:"S10"},ItemCollectionMetrics:{type:"map",key:{},value:{type:"list",member:{shape:"S1a"}}},ConsumedCapacity:{shape:"St"}}},http:{}},CreateTable:{input:{type:"structure",required:["AttributeDefinitions","TableName","KeySchema","ProvisionedThroughput"],members:{AttributeDefinitions:{shape:"S1f"},TableName:{},KeySchema:{shape:"S1j"},LocalSecondaryIndexes:{type:"list",member:{type:"structure",required:["IndexName","KeySchema","Projection"],members:{IndexName:{},KeySchema:{shape:"S1j"},Projection:{shape:"S1o"}}}},GlobalSecondaryIndexes:{type:"list",member:{type:"structure",required:["IndexName","KeySchema","Projection","ProvisionedThroughput"],members:{IndexName:{},KeySchema:{shape:"S1j"},Projection:{shape:"S1o"},ProvisionedThroughput:{shape:"S1u"}}}},ProvisionedThroughput:{shape:"S1u"},StreamSpecification:{shape:"S1w"}}},output:{type:"structure",members:{TableDescription:{shape:"S20"}}},http:{}},DeleteItem:{input:{type:"structure",required:["TableName","Key"],members:{TableName:{},Key:{shape:"S6"},Expected:{shape:"S2e"},ConditionalOperator:{},ReturnValues:{},ReturnConsumedCapacity:{},ReturnItemCollectionMetrics:{},ConditionExpression:{},ExpressionAttributeNames:{shape:"Sm"},ExpressionAttributeValues:{shape:"S2m"}}},output:{type:"structure",members:{Attributes:{shape:"Ss"},ConsumedCapacity:{shape:"Su"},ItemCollectionMetrics:{shape:"S1a"}}},http:{}},DeleteTable:{input:{type:"structure",required:["TableName"],members:{TableName:{}}},output:{type:"structure",members:{TableDescription:{shape:"S20"}}},http:{}},DescribeLimits:{input:{type:"structure",members:{}},output:{type:"structure",members:{AccountMaxReadCapacityUnits:{type:"long"},AccountMaxWriteCapacityUnits:{type:"long"},TableMaxReadCapacityUnits:{type:"long"},TableMaxWriteCapacityUnits:{type:"long"}}},http:{}},DescribeTable:{input:{type:"structure",required:["TableName"],members:{TableName:{}}},output:{type:"structure",members:{Table:{shape:"S20"}}},http:{}},GetItem:{input:{type:"structure",required:["TableName","Key"],members:{TableName:{},Key:{shape:"S6"},AttributesToGet:{shape:"Sj"},ConsistentRead:{type:"boolean"},ReturnConsumedCapacity:{},ProjectionExpression:{},ExpressionAttributeNames:{shape:"Sm"}}},output:{type:"structure",members:{Item:{shape:"Ss"},ConsumedCapacity:{shape:"Su"}}},http:{}},ListTables:{input:{type:"structure",members:{ExclusiveStartTableName:{},Limit:{type:"integer"}}},output:{type:"structure",members:{TableNames:{type:"list",member:{}},LastEvaluatedTableName:{}}},http:{}},PutItem:{input:{type:"structure",required:["TableName","Item"],members:{TableName:{},Item:{shape:"S14"},Expected:{shape:"S2e"},ReturnValues:{},ReturnConsumedCapacity:{},ReturnItemCollectionMetrics:{},ConditionalOperator:{},ConditionExpression:{},ExpressionAttributeNames:{shape:"Sm"},ExpressionAttributeValues:{shape:"S2m"}}},output:{type:"structure",members:{Attributes:{shape:"Ss"},ConsumedCapacity:{shape:"Su"},ItemCollectionMetrics:{shape:"S1a"}}},http:{}},Query:{input:{type:"structure",required:["TableName"],members:{TableName:{},IndexName:{},Select:{},AttributesToGet:{shape:"Sj"},Limit:{type:"integer"},ConsistentRead:{type:"boolean"},KeyConditions:{type:"map",key:{},value:{shape:"S37"}},QueryFilter:{shape:"S38"},ConditionalOperator:{},ScanIndexForward:{type:"boolean"},ExclusiveStartKey:{shape:"S6"},ReturnConsumedCapacity:{},ProjectionExpression:{},FilterExpression:{},KeyConditionExpression:{},ExpressionAttributeNames:{shape:"Sm"},ExpressionAttributeValues:{shape:"S2m"}}},output:{type:"structure",members:{Items:{shape:"Sr"},Count:{type:"integer"},ScannedCount:{type:"integer"},LastEvaluatedKey:{shape:"S6"},ConsumedCapacity:{shape:"Su"}}},http:{}},Scan:{input:{type:"structure",required:["TableName"],members:{TableName:{},IndexName:{},AttributesToGet:{shape:"Sj"},Limit:{type:"integer"},Select:{},ScanFilter:{shape:"S38"},ConditionalOperator:{},ExclusiveStartKey:{shape:"S6"},ReturnConsumedCapacity:{},TotalSegments:{type:"integer"},Segment:{type:"integer"},ProjectionExpression:{},FilterExpression:{},ExpressionAttributeNames:{shape:"Sm"},ExpressionAttributeValues:{shape:"S2m"},ConsistentRead:{type:"boolean"}}},output:{type:"structure",members:{Items:{shape:"Sr"},Count:{type:"integer"},ScannedCount:{type:"integer"},LastEvaluatedKey:{shape:"S6"},ConsumedCapacity:{shape:"Su"}}},http:{}},UpdateItem:{input:{type:"structure",required:["TableName","Key"],members:{TableName:{},Key:{shape:"S6"},AttributeUpdates:{type:"map",key:{},value:{type:"structure",members:{Value:{shape:"S8"},Action:{}}}},Expected:{shape:"S2e"},ConditionalOperator:{},ReturnValues:{},ReturnConsumedCapacity:{},ReturnItemCollectionMetrics:{},UpdateExpression:{},ConditionExpression:{},ExpressionAttributeNames:{shape:"Sm"},ExpressionAttributeValues:{shape:"S2m"}}},output:{type:"structure",members:{Attributes:{shape:"Ss"},ConsumedCapacity:{shape:"Su"},ItemCollectionMetrics:{shape:"S1a"}}},http:{}},UpdateTable:{input:{type:"structure",required:["TableName"],members:{AttributeDefinitions:{shape:"S1f"},TableName:{},ProvisionedThroughput:{shape:"S1u"},GlobalSecondaryIndexUpdates:{type:"list",member:{type:"structure",members:{Update:{type:"structure",required:["IndexName","ProvisionedThroughput"],members:{IndexName:{},ProvisionedThroughput:{shape:"S1u"}}},Create:{type:"structure",required:["IndexName","KeySchema","Projection","ProvisionedThroughput"],members:{IndexName:{},KeySchema:{shape:"S1j"},Projection:{shape:"S1o"},ProvisionedThroughput:{shape:"S1u"}}},Delete:{type:"structure",required:["IndexName"],members:{IndexName:{}}}}}},StreamSpecification:{shape:"S1w"}}},output:{type:"structure",members:{TableDescription:{shape:"S20"}}},http:{}}},shapes:{S2:{type:"map",key:{},value:{type:"structure",required:["Keys"],members:{Keys:{type:"list",member:{shape:"S6"}},AttributesToGet:{shape:"Sj"},ConsistentRead:{type:"boolean"},ProjectionExpression:{},ExpressionAttributeNames:{shape:"Sm"}}}},S6:{type:"map",key:{},value:{shape:"S8"}},S8:{type:"structure",members:{S:{},N:{},B:{type:"blob"},SS:{type:"list",member:{}},NS:{type:"list",member:{}},BS:{type:"list",member:{type:"blob"}},M:{type:"map",key:{},value:{shape:"S8"}},L:{type:"list",member:{shape:"S8"}},NULL:{type:"boolean"},BOOL:{type:"boolean"}}},Sj:{type:"list",member:{}},Sm:{type:"map",key:{},value:{}},Sr:{type:"list",member:{shape:"Ss"}},Ss:{type:"map",key:{},value:{shape:"S8"}},St:{type:"list",member:{shape:"Su"}},Su:{type:"structure",members:{TableName:{},CapacityUnits:{type:"double"},Table:{shape:"Sw"},LocalSecondaryIndexes:{shape:"Sx"},GlobalSecondaryIndexes:{shape:"Sx"}}},Sw:{type:"structure",members:{CapacityUnits:{type:"double"}}},Sx:{type:"map",key:{},value:{shape:"Sw"}},S10:{type:"map",key:{},value:{type:"list",member:{type:"structure",members:{PutRequest:{type:"structure",required:["Item"],members:{Item:{shape:"S14"}}},DeleteRequest:{type:"structure",required:["Key"],members:{Key:{shape:"S6"}}}}}}},S14:{type:"map",key:{},value:{shape:"S8"}},S1a:{type:"structure",members:{ItemCollectionKey:{type:"map",key:{},value:{shape:"S8"}},SizeEstimateRangeGB:{type:"list",member:{type:"double"}}}},S1f:{type:"list",member:{type:"structure",required:["AttributeName","AttributeType"],members:{AttributeName:{},AttributeType:{}}}},S1j:{type:"list",member:{type:"structure",required:["AttributeName","KeyType"],members:{AttributeName:{},KeyType:{}}}},S1o:{type:"structure",members:{ProjectionType:{},NonKeyAttributes:{type:"list",member:{}}}},S1u:{type:"structure",required:["ReadCapacityUnits","WriteCapacityUnits"],members:{ReadCapacityUnits:{type:"long"},WriteCapacityUnits:{type:"long"}}},S1w:{type:"structure",members:{StreamEnabled:{type:"boolean"},StreamViewType:{}}},S20:{type:"structure",members:{AttributeDefinitions:{shape:"S1f"},TableName:{},KeySchema:{shape:"S1j"},TableStatus:{},CreationDateTime:{type:"timestamp"},ProvisionedThroughput:{shape:"S23"},TableSizeBytes:{type:"long"},ItemCount:{type:"long"},TableArn:{},LocalSecondaryIndexes:{type:"list",member:{type:"structure",members:{IndexName:{},KeySchema:{shape:"S1j"},Projection:{shape:"S1o"},IndexSizeBytes:{type:"long"},ItemCount:{type:"long"},IndexArn:{}}}},GlobalSecondaryIndexes:{type:"list",member:{type:"structure",members:{IndexName:{},KeySchema:{shape:"S1j"},Projection:{shape:"S1o"},IndexStatus:{},Backfilling:{type:"boolean"},ProvisionedThroughput:{shape:"S23"},IndexSizeBytes:{type:"long"},ItemCount:{type:"long"},IndexArn:{}}}},StreamSpecification:{shape:"S1w"},LatestStreamLabel:{},LatestStreamArn:{}}},S23:{type:"structure",members:{LastIncreaseDateTime:{type:"timestamp"},LastDecreaseDateTime:{type:"timestamp"},NumberOfDecreasesToday:{type:"long"},ReadCapacityUnits:{type:"long"},WriteCapacityUnits:{type:"long"}}},S2e:{type:"map",key:{},value:{type:"structure",members:{Value:{shape:"S8"},Exists:{type:"boolean"},ComparisonOperator:{},AttributeValueList:{shape:"S2i"}}}},S2i:{type:"list",member:{shape:"S8"}},S2m:{type:"map",key:{},value:{shape:"S8"}},S37:{type:"structure",required:["ComparisonOperator"],members:{AttributeValueList:{shape:"S2i"},ComparisonOperator:{}}},S38:{type:"map",key:{},value:{shape:"S37"}}},paginators:{BatchGetItem:{input_token:"RequestItems",output_token:"UnprocessedKeys"},ListTables:{input_token:"ExclusiveStartTableName",output_token:"LastEvaluatedTableName",limit_key:"Limit",result_key:"TableNames"},Query:{input_token:"ExclusiveStartKey",output_token:"LastEvaluatedKey",limit_key:"Limit",result_key:"Items"},Scan:{input_token:"ExclusiveStartKey",output_token:"LastEvaluatedKey",limit_key:"Limit",result_key:"Items"}},waiters:{__default__:{interval:20,max_attempts:25},__TableState:{operation:"DescribeTable"},TableExists:{"extends":"__TableState",ignore_errors:["ResourceNotFoundException"],success_type:"output",success_path:"Table.TableStatus",success_value:"ACTIVE"},TableNotExists:{"extends":"__TableState",success_type:"error",success_value:"ResourceNotFoundException"}}},a.apiLoader.services.dynamodbstreams={},a.DynamoDBStreams=a.Service.defineService("dynamodbstreams",["2012-08-10"]),a.apiLoader.services.dynamodbstreams["2012-08-10"]={version:"2.0",metadata:{apiVersion:"2012-08-10",endpointPrefix:"streams.dynamodb",jsonVersion:"1.0",serviceFullName:"Amazon DynamoDB Streams",signatureVersion:"v4",signingName:"dynamodb",targetPrefix:"DynamoDBStreams_20120810",protocol:"json"},operations:{DescribeStream:{input:{type:"structure",required:["StreamArn"],members:{StreamArn:{},Limit:{type:"integer"},ExclusiveStartShardId:{}}},output:{type:"structure",members:{StreamDescription:{type:"structure",members:{StreamArn:{},StreamLabel:{},StreamStatus:{},StreamViewType:{},CreationRequestDateTime:{type:"timestamp"},TableName:{},KeySchema:{type:"list",member:{type:"structure",required:["AttributeName","KeyType"],members:{AttributeName:{},KeyType:{}}}},Shards:{type:"list",member:{type:"structure",members:{ShardId:{},SequenceNumberRange:{type:"structure",members:{StartingSequenceNumber:{},EndingSequenceNumber:{}}},ParentShardId:{}}}},LastEvaluatedShardId:{}}}}},http:{}},GetRecords:{input:{type:"structure",required:["ShardIterator"],members:{ShardIterator:{},Limit:{type:"integer"}}},output:{type:"structure",members:{Records:{type:"list",member:{type:"structure",members:{eventID:{},eventName:{},eventVersion:{},eventSource:{},awsRegion:{},dynamodb:{type:"structure",members:{Keys:{shape:"Sr"},NewImage:{shape:"Sr"},OldImage:{shape:"Sr"},SequenceNumber:{},SizeBytes:{type:"long"},StreamViewType:{}}}}}},NextShardIterator:{}}},http:{}},GetShardIterator:{input:{type:"structure",required:["StreamArn","ShardId","ShardIteratorType"],members:{StreamArn:{},ShardId:{},ShardIteratorType:{},SequenceNumber:{}}},output:{type:"structure",members:{ShardIterator:{}}},http:{}},ListStreams:{input:{type:"structure",members:{TableName:{},Limit:{type:"integer"},ExclusiveStartStreamArn:{}}},output:{type:"structure",members:{Streams:{type:"list",member:{type:"structure",members:{StreamArn:{},TableName:{},StreamLabel:{}}}},LastEvaluatedStreamArn:{}}},http:{}}},shapes:{Sr:{type:"map",key:{},value:{shape:"St"}},St:{type:"structure",members:{S:{},N:{},B:{type:"blob"},SS:{type:"list",member:{}},NS:{type:"list",member:{}},BS:{type:"list",member:{type:"blob"}},M:{type:"map",key:{},value:{shape:"St"}},L:{type:"list",member:{shape:"St"}},NULL:{type:"boolean"},BOOL:{type:"boolean"}}}},examples:{}},a.apiLoader.services.ec2={},a.EC2=a.Service.defineService("ec2",["2015-10-01"]),e("./services/ec2"),a.apiLoader.services.ec2["2015-10-01"]={version:"2.0",metadata:{apiVersion:"2015-10-01",endpointPrefix:"ec2",protocol:"ec2",serviceAbbreviation:"Amazon EC2",serviceFullName:"Amazon Elastic Compute Cloud",signatureVersion:"v4",xmlNamespace:"http://ec2.amazonaws.com/doc/2015-10-01"},operations:{AcceptVpcPeeringConnection:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},output:{type:"structure",members:{VpcPeeringConnection:{shape:"S5",locationName:"vpcPeeringConnection"}}},http:{}},AllocateAddress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},Domain:{}}},output:{type:"structure",members:{PublicIp:{locationName:"publicIp"},Domain:{locationName:"domain"},AllocationId:{locationName:"allocationId"}}},http:{}},AllocateHosts:{input:{type:"structure",required:["InstanceType","Quantity","AvailabilityZone"],members:{AutoPlacement:{locationName:"autoPlacement"},ClientToken:{locationName:"clientToken"},InstanceType:{locationName:"instanceType"},Quantity:{locationName:"quantity",type:"integer"},AvailabilityZone:{locationName:"availabilityZone"}}},output:{type:"structure",members:{HostIds:{shape:"Sj",locationName:"hostIdSet"}}},http:{}},AssignPrivateIpAddresses:{input:{type:"structure",required:["NetworkInterfaceId"],members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},PrivateIpAddresses:{shape:"Sl",locationName:"privateIpAddress"},SecondaryPrivateIpAddressCount:{locationName:"secondaryPrivateIpAddressCount",type:"integer"},AllowReassignment:{locationName:"allowReassignment",type:"boolean"}}},http:{}},AssociateAddress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{},PublicIp:{},AllocationId:{},NetworkInterfaceId:{locationName:"networkInterfaceId"},PrivateIpAddress:{locationName:"privateIpAddress"},AllowReassociation:{locationName:"allowReassociation",type:"boolean"}}},output:{type:"structure",members:{AssociationId:{locationName:"associationId"}}},http:{}},AssociateDhcpOptions:{input:{type:"structure",required:["DhcpOptionsId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},DhcpOptionsId:{},VpcId:{}}},http:{}},AssociateRouteTable:{input:{type:"structure",required:["SubnetId","RouteTableId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SubnetId:{locationName:"subnetId"},RouteTableId:{locationName:"routeTableId"}}},output:{type:"structure",members:{AssociationId:{locationName:"associationId"}}},http:{}},AttachClassicLinkVpc:{input:{type:"structure",required:["InstanceId","VpcId","Groups"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},VpcId:{locationName:"vpcId"},Groups:{shape:"Ss",locationName:"SecurityGroupId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},AttachInternetGateway:{input:{type:"structure",required:["InternetGatewayId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InternetGatewayId:{locationName:"internetGatewayId"},VpcId:{locationName:"vpcId"}}},http:{}},AttachNetworkInterface:{input:{type:"structure",required:["NetworkInterfaceId","InstanceId","DeviceIndex"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"},InstanceId:{locationName:"instanceId"},DeviceIndex:{locationName:"deviceIndex",type:"integer"}}},output:{type:"structure",members:{AttachmentId:{locationName:"attachmentId"}}},http:{}},AttachVolume:{input:{type:"structure",required:["VolumeId","InstanceId","Device"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{},InstanceId:{},Device:{}}},output:{shape:"Sy"},http:{}},AttachVpnGateway:{input:{type:"structure",required:["VpnGatewayId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnGatewayId:{},VpcId:{}}},output:{type:"structure",members:{VpcAttachment:{shape:"S12",locationName:"attachment"}}},http:{}},AuthorizeSecurityGroupEgress:{input:{type:"structure",required:["GroupId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupId:{locationName:"groupId"},SourceSecurityGroupName:{locationName:"sourceSecurityGroupName"},SourceSecurityGroupOwnerId:{locationName:"sourceSecurityGroupOwnerId"},IpProtocol:{locationName:"ipProtocol"},FromPort:{locationName:"fromPort",type:"integer"},ToPort:{locationName:"toPort",type:"integer"},CidrIp:{locationName:"cidrIp"},IpPermissions:{shape:"S15",locationName:"ipPermissions"}}},http:{}},AuthorizeSecurityGroupIngress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{},GroupId:{},SourceSecurityGroupName:{},SourceSecurityGroupOwnerId:{},IpProtocol:{},FromPort:{type:"integer"},ToPort:{type:"integer"
|
||
},CidrIp:{},IpPermissions:{shape:"S15"}}},http:{}},BundleInstance:{input:{type:"structure",required:["InstanceId","Storage"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{},Storage:{shape:"S1f"}}},output:{type:"structure",members:{BundleTask:{shape:"S1j",locationName:"bundleInstanceTask"}}},http:{}},CancelBundleTask:{input:{type:"structure",required:["BundleId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},BundleId:{}}},output:{type:"structure",members:{BundleTask:{shape:"S1j",locationName:"bundleInstanceTask"}}},http:{}},CancelConversionTask:{input:{type:"structure",required:["ConversionTaskId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ConversionTaskId:{locationName:"conversionTaskId"},ReasonMessage:{locationName:"reasonMessage"}}},http:{}},CancelExportTask:{input:{type:"structure",required:["ExportTaskId"],members:{ExportTaskId:{locationName:"exportTaskId"}}},http:{}},CancelImportTask:{input:{type:"structure",members:{DryRun:{type:"boolean"},ImportTaskId:{},CancelReason:{}}},output:{type:"structure",members:{ImportTaskId:{locationName:"importTaskId"},State:{locationName:"state"},PreviousState:{locationName:"previousState"}}},http:{}},CancelReservedInstancesListing:{input:{type:"structure",required:["ReservedInstancesListingId"],members:{ReservedInstancesListingId:{locationName:"reservedInstancesListingId"}}},output:{type:"structure",members:{ReservedInstancesListings:{shape:"S1u",locationName:"reservedInstancesListingsSet"}}},http:{}},CancelSpotFleetRequests:{input:{type:"structure",required:["SpotFleetRequestIds","TerminateInstances"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotFleetRequestIds:{shape:"S26",locationName:"spotFleetRequestId"},TerminateInstances:{locationName:"terminateInstances",type:"boolean"}}},output:{type:"structure",members:{UnsuccessfulFleetRequests:{locationName:"unsuccessfulFleetRequestSet",type:"list",member:{locationName:"item",type:"structure",required:["SpotFleetRequestId","Error"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"},Error:{locationName:"error",type:"structure",required:["Code","Message"],members:{Code:{locationName:"code"},Message:{locationName:"message"}}}}}},SuccessfulFleetRequests:{locationName:"successfulFleetRequestSet",type:"list",member:{locationName:"item",type:"structure",required:["SpotFleetRequestId","CurrentSpotFleetRequestState","PreviousSpotFleetRequestState"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"},CurrentSpotFleetRequestState:{locationName:"currentSpotFleetRequestState"},PreviousSpotFleetRequestState:{locationName:"previousSpotFleetRequestState"}}}}}},http:{}},CancelSpotInstanceRequests:{input:{type:"structure",required:["SpotInstanceRequestIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotInstanceRequestIds:{shape:"S2g",locationName:"SpotInstanceRequestId"}}},output:{type:"structure",members:{CancelledSpotInstanceRequests:{locationName:"spotInstanceRequestSet",type:"list",member:{locationName:"item",type:"structure",members:{SpotInstanceRequestId:{locationName:"spotInstanceRequestId"},State:{locationName:"state"}}}}}},http:{}},ConfirmProductInstance:{input:{type:"structure",required:["ProductCode","InstanceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ProductCode:{},InstanceId:{}}},output:{type:"structure",members:{OwnerId:{locationName:"ownerId"},Return:{locationName:"return",type:"boolean"}}},http:{}},CopyImage:{input:{type:"structure",required:["SourceRegion","SourceImageId","Name"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SourceRegion:{},SourceImageId:{},Name:{},Description:{},ClientToken:{},Encrypted:{locationName:"encrypted",type:"boolean"},KmsKeyId:{locationName:"kmsKeyId"}}},output:{type:"structure",members:{ImageId:{locationName:"imageId"}}},http:{}},CopySnapshot:{input:{type:"structure",required:["SourceRegion","SourceSnapshotId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SourceRegion:{},SourceSnapshotId:{},Description:{},DestinationRegion:{locationName:"destinationRegion"},PresignedUrl:{locationName:"presignedUrl"},Encrypted:{locationName:"encrypted",type:"boolean"},KmsKeyId:{locationName:"kmsKeyId"}}},output:{type:"structure",members:{SnapshotId:{locationName:"snapshotId"}}},http:{}},CreateCustomerGateway:{input:{type:"structure",required:["Type","PublicIp","BgpAsn"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Type:{},PublicIp:{locationName:"IpAddress"},BgpAsn:{type:"integer"}}},output:{type:"structure",members:{CustomerGateway:{shape:"S2u",locationName:"customerGateway"}}},http:{}},CreateDhcpOptions:{input:{type:"structure",required:["DhcpConfigurations"],members:{DryRun:{locationName:"dryRun",type:"boolean"},DhcpConfigurations:{locationName:"dhcpConfiguration",type:"list",member:{locationName:"item",type:"structure",members:{Key:{locationName:"key"},Values:{shape:"S26",locationName:"Value"}}}}}},output:{type:"structure",members:{DhcpOptions:{shape:"S2z",locationName:"dhcpOptions"}}},http:{}},CreateFlowLogs:{input:{type:"structure",required:["ResourceIds","ResourceType","TrafficType","LogGroupName","DeliverLogsPermissionArn"],members:{ResourceIds:{shape:"S26",locationName:"ResourceId"},ResourceType:{},TrafficType:{},LogGroupName:{},DeliverLogsPermissionArn:{},ClientToken:{}}},output:{type:"structure",members:{FlowLogIds:{shape:"S26",locationName:"flowLogIdSet"},ClientToken:{locationName:"clientToken"},Unsuccessful:{shape:"S38",locationName:"unsuccessful"}}},http:{}},CreateImage:{input:{type:"structure",required:["InstanceId","Name"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},Name:{locationName:"name"},Description:{locationName:"description"},NoReboot:{locationName:"noReboot",type:"boolean"},BlockDeviceMappings:{shape:"S3c",locationName:"blockDeviceMapping"}}},output:{type:"structure",members:{ImageId:{locationName:"imageId"}}},http:{}},CreateInstanceExportTask:{input:{type:"structure",required:["InstanceId"],members:{Description:{locationName:"description"},InstanceId:{locationName:"instanceId"},TargetEnvironment:{locationName:"targetEnvironment"},ExportToS3Task:{locationName:"exportToS3",type:"structure",members:{DiskImageFormat:{locationName:"diskImageFormat"},ContainerFormat:{locationName:"containerFormat"},S3Bucket:{locationName:"s3Bucket"},S3Prefix:{locationName:"s3Prefix"}}}}},output:{type:"structure",members:{ExportTask:{shape:"S3n",locationName:"exportTask"}}},http:{}},CreateInternetGateway:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{InternetGateway:{shape:"S3t",locationName:"internetGateway"}}},http:{}},CreateKeyPair:{input:{type:"structure",required:["KeyName"],members:{DryRun:{locationName:"dryRun",type:"boolean"},KeyName:{}}},output:{type:"structure",members:{KeyName:{locationName:"keyName"},KeyFingerprint:{locationName:"keyFingerprint"},KeyMaterial:{locationName:"keyMaterial"}}},http:{}},CreateNatGateway:{input:{type:"structure",required:["SubnetId","AllocationId"],members:{SubnetId:{},AllocationId:{},ClientToken:{}}},output:{type:"structure",members:{NatGateway:{shape:"S40",locationName:"natGateway"},ClientToken:{locationName:"clientToken"}}},http:{}},CreateNetworkAcl:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{NetworkAcl:{shape:"S46",locationName:"networkAcl"}}},http:{}},CreateNetworkAclEntry:{input:{type:"structure",required:["NetworkAclId","RuleNumber","Protocol","RuleAction","Egress","CidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclId:{locationName:"networkAclId"},RuleNumber:{locationName:"ruleNumber",type:"integer"},Protocol:{locationName:"protocol"},RuleAction:{locationName:"ruleAction"},Egress:{locationName:"egress",type:"boolean"},CidrBlock:{locationName:"cidrBlock"},IcmpTypeCode:{shape:"S4a",locationName:"Icmp"},PortRange:{shape:"S4b",locationName:"portRange"}}},http:{}},CreateNetworkInterface:{input:{type:"structure",required:["SubnetId"],members:{SubnetId:{locationName:"subnetId"},Description:{locationName:"description"},PrivateIpAddress:{locationName:"privateIpAddress"},Groups:{shape:"S4g",locationName:"SecurityGroupId"},PrivateIpAddresses:{shape:"S4h",locationName:"privateIpAddresses"},SecondaryPrivateIpAddressCount:{locationName:"secondaryPrivateIpAddressCount",type:"integer"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{NetworkInterface:{shape:"S4k",locationName:"networkInterface"}}},http:{}},CreatePlacementGroup:{input:{type:"structure",required:["GroupName","Strategy"],members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{locationName:"groupName"},Strategy:{locationName:"strategy"}}},http:{}},CreateReservedInstancesListing:{input:{type:"structure",required:["ReservedInstancesId","InstanceCount","PriceSchedules","ClientToken"],members:{ReservedInstancesId:{locationName:"reservedInstancesId"},InstanceCount:{locationName:"instanceCount",type:"integer"},PriceSchedules:{locationName:"priceSchedules",type:"list",member:{locationName:"item",type:"structure",members:{Term:{locationName:"term",type:"long"},Price:{locationName:"price",type:"double"},CurrencyCode:{locationName:"currencyCode"}}}},ClientToken:{locationName:"clientToken"}}},output:{type:"structure",members:{ReservedInstancesListings:{shape:"S1u",locationName:"reservedInstancesListingsSet"}}},http:{}},CreateRoute:{input:{type:"structure",required:["RouteTableId","DestinationCidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},RouteTableId:{locationName:"routeTableId"},DestinationCidrBlock:{locationName:"destinationCidrBlock"},GatewayId:{locationName:"gatewayId"},InstanceId:{locationName:"instanceId"},NetworkInterfaceId:{locationName:"networkInterfaceId"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"},NatGatewayId:{locationName:"natGatewayId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},CreateRouteTable:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{RouteTable:{shape:"S53",locationName:"routeTable"}}},http:{}},CreateSecurityGroup:{input:{type:"structure",required:["GroupName","Description"],members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{},Description:{locationName:"GroupDescription"},VpcId:{}}},output:{type:"structure",members:{GroupId:{locationName:"groupId"}}},http:{}},CreateSnapshot:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{},Description:{}}},output:{shape:"S5f"},http:{}},CreateSpotDatafeedSubscription:{input:{type:"structure",required:["Bucket"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Bucket:{locationName:"bucket"},Prefix:{locationName:"prefix"}}},output:{type:"structure",members:{SpotDatafeedSubscription:{shape:"S5j",locationName:"spotDatafeedSubscription"}}},http:{}},CreateSubnet:{input:{type:"structure",required:["VpcId","CidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{},CidrBlock:{},AvailabilityZone:{}}},output:{type:"structure",members:{Subnet:{shape:"S5o",locationName:"subnet"}}},http:{}},CreateTags:{input:{type:"structure",required:["Resources","Tags"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Resources:{shape:"S5r",locationName:"ResourceId"},Tags:{shape:"Sa",locationName:"Tag"}}},http:{}},CreateVolume:{input:{type:"structure",required:["AvailabilityZone"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Size:{type:"integer"},SnapshotId:{},AvailabilityZone:{},VolumeType:{},Iops:{type:"integer"},Encrypted:{locationName:"encrypted",type:"boolean"},KmsKeyId:{}}},output:{shape:"S5t"},http:{}},CreateVpc:{input:{type:"structure",required:["CidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},CidrBlock:{},InstanceTenancy:{locationName:"instanceTenancy"}}},output:{type:"structure",members:{Vpc:{shape:"S5z",locationName:"vpc"}}},http:{}},CreateVpcEndpoint:{input:{type:"structure",required:["VpcId","ServiceName"],members:{DryRun:{type:"boolean"},VpcId:{},ServiceName:{},PolicyDocument:{},RouteTableIds:{shape:"S26",locationName:"RouteTableId"},ClientToken:{}}},output:{type:"structure",members:{VpcEndpoint:{shape:"S63",locationName:"vpcEndpoint"},ClientToken:{locationName:"clientToken"}}},http:{}},CreateVpcPeeringConnection:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"},PeerVpcId:{locationName:"peerVpcId"},PeerOwnerId:{locationName:"peerOwnerId"}}},output:{type:"structure",members:{VpcPeeringConnection:{shape:"S5",locationName:"vpcPeeringConnection"}}},http:{}},CreateVpnConnection:{input:{type:"structure",required:["Type","CustomerGatewayId","VpnGatewayId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Type:{},CustomerGatewayId:{},VpnGatewayId:{},Options:{locationName:"options",type:"structure",members:{StaticRoutesOnly:{locationName:"staticRoutesOnly",type:"boolean"}}}}},output:{type:"structure",members:{VpnConnection:{shape:"S6a",locationName:"vpnConnection"}}},http:{}},CreateVpnConnectionRoute:{input:{type:"structure",required:["VpnConnectionId","DestinationCidrBlock"],members:{VpnConnectionId:{},DestinationCidrBlock:{}}},http:{}},CreateVpnGateway:{input:{type:"structure",required:["Type"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Type:{},AvailabilityZone:{}}},output:{type:"structure",members:{VpnGateway:{shape:"S6m",locationName:"vpnGateway"}}},http:{}},DeleteCustomerGateway:{input:{type:"structure",required:["CustomerGatewayId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},CustomerGatewayId:{}}},http:{}},DeleteDhcpOptions:{input:{type:"structure",required:["DhcpOptionsId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},DhcpOptionsId:{}}},http:{}},DeleteFlowLogs:{input:{type:"structure",required:["FlowLogIds"],members:{FlowLogIds:{shape:"S26",locationName:"FlowLogId"}}},output:{type:"structure",members:{Unsuccessful:{shape:"S38",locationName:"unsuccessful"}}},http:{}},DeleteInternetGateway:{input:{type:"structure",required:["InternetGatewayId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InternetGatewayId:{locationName:"internetGatewayId"}}},http:{}},DeleteKeyPair:{input:{type:"structure",required:["KeyName"],members:{DryRun:{locationName:"dryRun",type:"boolean"},KeyName:{}}},http:{}},DeleteNatGateway:{input:{type:"structure",required:["NatGatewayId"],members:{NatGatewayId:{}}},output:{type:"structure",members:{NatGatewayId:{locationName:"natGatewayId"}}},http:{}},DeleteNetworkAcl:{input:{type:"structure",required:["NetworkAclId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclId:{locationName:"networkAclId"}}},http:{}},DeleteNetworkAclEntry:{input:{type:"structure",required:["NetworkAclId","RuleNumber","Egress"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclId:{locationName:"networkAclId"},RuleNumber:{locationName:"ruleNumber",type:"integer"},Egress:{locationName:"egress",type:"boolean"}}},http:{}},DeleteNetworkInterface:{input:{type:"structure",required:["NetworkInterfaceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"}}},http:{}},DeletePlacementGroup:{input:{type:"structure",required:["GroupName"],members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{locationName:"groupName"}}},http:{}},DeleteRoute:{input:{type:"structure",required:["RouteTableId","DestinationCidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},RouteTableId:{locationName:"routeTableId"},DestinationCidrBlock:{locationName:"destinationCidrBlock"}}},http:{}},DeleteRouteTable:{input:{type:"structure",required:["RouteTableId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},RouteTableId:{locationName:"routeTableId"}}},http:{}},DeleteSecurityGroup:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{},GroupId:{}}},http:{}},DeleteSnapshot:{input:{type:"structure",required:["SnapshotId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SnapshotId:{}}},http:{}},DeleteSpotDatafeedSubscription:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"}}},http:{}},DeleteSubnet:{input:{type:"structure",required:["SubnetId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SubnetId:{}}},http:{}},DeleteTags:{input:{type:"structure",required:["Resources"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Resources:{shape:"S5r",locationName:"resourceId"},Tags:{shape:"Sa",locationName:"tag"}}},http:{}},DeleteVolume:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{}}},http:{}},DeleteVpc:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{}}},http:{}},DeleteVpcEndpoints:{input:{type:"structure",required:["VpcEndpointIds"],members:{DryRun:{type:"boolean"},VpcEndpointIds:{shape:"S26",locationName:"VpcEndpointId"}}},output:{type:"structure",members:{Unsuccessful:{shape:"S38",locationName:"unsuccessful"}}},http:{}},DeleteVpcPeeringConnection:{input:{type:"structure",required:["VpcPeeringConnectionId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},DeleteVpnConnection:{input:{type:"structure",required:["VpnConnectionId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnConnectionId:{}}},http:{}},DeleteVpnConnectionRoute:{input:{type:"structure",required:["VpnConnectionId","DestinationCidrBlock"],members:{VpnConnectionId:{},DestinationCidrBlock:{}}},http:{}},DeleteVpnGateway:{input:{type:"structure",required:["VpnGatewayId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnGatewayId:{}}},http:{}},DeregisterImage:{input:{type:"structure",required:["ImageId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageId:{}}},http:{}},DescribeAccountAttributes:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},AttributeNames:{locationName:"attributeName",type:"list",member:{locationName:"attributeName"}}}},output:{type:"structure",members:{AccountAttributes:{locationName:"accountAttributeSet",type:"list",member:{locationName:"item",type:"structure",members:{AttributeName:{locationName:"attributeName"},AttributeValues:{locationName:"attributeValueSet",type:"list",member:{locationName:"item",type:"structure",members:{AttributeValue:{locationName:"attributeValue"}}}}}}}}},http:{}},DescribeAddresses:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIps:{locationName:"PublicIp",type:"list",member:{locationName:"PublicIp"}},Filters:{shape:"S7r",locationName:"Filter"},AllocationIds:{locationName:"AllocationId",type:"list",member:{locationName:"AllocationId"}}}},output:{type:"structure",members:{Addresses:{locationName:"addressesSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},PublicIp:{locationName:"publicIp"},AllocationId:{locationName:"allocationId"},AssociationId:{locationName:"associationId"},Domain:{locationName:"domain"},NetworkInterfaceId:{locationName:"networkInterfaceId"},NetworkInterfaceOwnerId:{locationName:"networkInterfaceOwnerId"},PrivateIpAddress:{locationName:"privateIpAddress"}}}}}},http:{}},DescribeAvailabilityZones:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},ZoneNames:{locationName:"ZoneName",type:"list",member:{locationName:"ZoneName"}},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{AvailabilityZones:{locationName:"availabilityZoneInfo",type:"list",member:{locationName:"item",type:"structure",members:{ZoneName:{locationName:"zoneName"},State:{locationName:"zoneState"},RegionName:{locationName:"regionName"},Messages:{locationName:"messageSet",type:"list",member:{locationName:"item",type:"structure",members:{Message:{locationName:"message"}}}}}}}}},http:{}},DescribeBundleTasks:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},BundleIds:{locationName:"BundleId",type:"list",member:{locationName:"BundleId"}},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{BundleTasks:{locationName:"bundleInstanceTasksSet",type:"list",member:{shape:"S1j",locationName:"item"}}}},http:{}},DescribeClassicLinkInstances:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S8a",locationName:"InstanceId"},Filters:{shape:"S7r",locationName:"Filter"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{Instances:{locationName:"instancesSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},VpcId:{locationName:"vpcId"},Groups:{shape:"S4m",locationName:"groupSet"},Tags:{shape:"Sa",locationName:"tagSet"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeConversionTasks:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},Filters:{shape:"S7r",locationName:"filter"},ConversionTaskIds:{locationName:"conversionTaskId",type:"list",member:{locationName:"item"}}}},output:{type:"structure",members:{ConversionTasks:{locationName:"conversionTasks",type:"list",member:{shape:"S8i",locationName:"item"}}}},http:{}},DescribeCustomerGateways:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},CustomerGatewayIds:{locationName:"CustomerGatewayId",type:"list",member:{locationName:"CustomerGatewayId"}},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{CustomerGateways:{locationName:"customerGatewaySet",type:"list",member:{shape:"S2u",locationName:"item"}}}},http:{}},DescribeDhcpOptions:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},DhcpOptionsIds:{locationName:"DhcpOptionsId",type:"list",member:{locationName:"DhcpOptionsId"}},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{DhcpOptions:{locationName:"dhcpOptionsSet",type:"list",member:{shape:"S2z",locationName:"item"}}}},http:{}},DescribeExportTasks:{input:{type:"structure",members:{ExportTaskIds:{locationName:"exportTaskId",type:"list",member:{locationName:"ExportTaskId"}}}},output:{type:"structure",members:{ExportTasks:{locationName:"exportTaskSet",type:"list",member:{shape:"S3n",locationName:"item"}}}},http:{}},DescribeFlowLogs:{input:{type:"structure",members:{FlowLogIds:{shape:"S26",locationName:"FlowLogId"},Filter:{shape:"S7r"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{FlowLogs:{locationName:"flowLogSet",type:"list",member:{locationName:"item",type:"structure",members:{CreationTime:{locationName:"creationTime",type:"timestamp"},FlowLogId:{locationName:"flowLogId"},FlowLogStatus:{locationName:"flowLogStatus"},ResourceId:{locationName:"resourceId"},TrafficType:{locationName:"trafficType"},LogGroupName:{locationName:"logGroupName"},DeliverLogsStatus:{locationName:"deliverLogsStatus"},DeliverLogsErrorMessage:{locationName:"deliverLogsErrorMessage"},DeliverLogsPermissionArn:{locationName:"deliverLogsPermissionArn"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeHosts:{input:{type:"structure",members:{HostIds:{shape:"S98",locationName:"hostId"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"},Filter:{shape:"S7r",locationName:"filter"}}},output:{type:"structure",members:{Hosts:{locationName:"hostSet",type:"list",member:{locationName:"item",type:"structure",members:{HostId:{locationName:"hostId"},AutoPlacement:{locationName:"autoPlacement"},HostReservationId:{locationName:"hostReservationId"},ClientToken:{locationName:"clientToken"},HostProperties:{locationName:"hostProperties",type:"structure",members:{Sockets:{locationName:"sockets",type:"integer"},Cores:{locationName:"cores",type:"integer"},TotalVCpus:{locationName:"totalVCpus",type:"integer"},InstanceType:{locationName:"instanceType"}}},State:{locationName:"state"},AvailabilityZone:{locationName:"availabilityZone"},Instances:{locationName:"instances",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},InstanceType:{locationName:"instanceType"}}}},AvailableCapacity:{locationName:"availableCapacity",type:"structure",members:{AvailableInstanceCapacity:{locationName:"availableInstanceCapacity",type:"list",member:{locationName:"item",type:"structure",members:{InstanceType:{locationName:"instanceType"},AvailableCapacity:{locationName:"availableCapacity",type:"integer"},TotalCapacity:{locationName:"totalCapacity",type:"integer"}}}},AvailableVCpus:{locationName:"availableVCpus",type:"integer"}}}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeIdFormat:{input:{type:"structure",members:{Resource:{}}},output:{type:"structure",members:{Statuses:{locationName:"statusSet",type:"list",member:{locationName:"item",type:"structure",members:{Resource:{locationName:"resource"},UseLongIds:{locationName:"useLongIds",type:"boolean"},Deadline:{locationName:"deadline",type:"timestamp"}}}}}},http:{}},DescribeImageAttribute:{input:{type:"structure",required:["ImageId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageId:{},Attribute:{}}},output:{type:"structure",members:{ImageId:{locationName:"imageId"},LaunchPermissions:{shape:"S9q",locationName:"launchPermission"},ProductCodes:{shape:"S9t",locationName:"productCodes"},KernelId:{shape:"S33",locationName:"kernel"},RamdiskId:{shape:"S33",locationName:"ramdisk"},Description:{shape:"S33",locationName:"description"},SriovNetSupport:{shape:"S33",locationName:"sriovNetSupport"},BlockDeviceMappings:{shape:"S9w",locationName:"blockDeviceMapping"}}},http:{}},DescribeImages:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageIds:{locationName:"ImageId",type:"list",member:{locationName:"ImageId"}},Owners:{shape:"S9z",locationName:"Owner"},ExecutableUsers:{locationName:"ExecutableBy",type:"list",member:{locationName:"ExecutableBy"}},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{Images:{locationName:"imagesSet",type:"list",member:{locationName:"item",type:"structure",members:{ImageId:{locationName:"imageId"},ImageLocation:{locationName:"imageLocation"},State:{locationName:"imageState"},OwnerId:{locationName:"imageOwnerId"},CreationDate:{locationName:"creationDate"},Public:{locationName:"isPublic",type:"boolean"},ProductCodes:{shape:"S9t",locationName:"productCodes"},Architecture:{locationName:"architecture"},ImageType:{locationName:"imageType"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},Platform:{locationName:"platform"},SriovNetSupport:{locationName:"sriovNetSupport"},StateReason:{shape:"Sa7",locationName:"stateReason"},ImageOwnerAlias:{locationName:"imageOwnerAlias"},Name:{locationName:"name"},Description:{locationName:"description"},RootDeviceType:{locationName:"rootDeviceType"},RootDeviceName:{locationName:"rootDeviceName"},BlockDeviceMappings:{shape:"S9w",locationName:"blockDeviceMapping"},VirtualizationType:{locationName:"virtualizationType"},Tags:{shape:"Sa",locationName:"tagSet"},Hypervisor:{locationName:"hypervisor"}}}}}},http:{}},DescribeImportImageTasks:{input:{type:"structure",members:{DryRun:{type:"boolean"},ImportTaskIds:{shape:"Sac",locationName:"ImportTaskId"},NextToken:{},MaxResults:{type:"integer"},Filters:{shape:"S7r"}}},output:{type:"structure",members:{ImportImageTasks:{locationName:"importImageTaskSet",type:"list",member:{locationName:"item",type:"structure",members:{ImportTaskId:{locationName:"importTaskId"},Architecture:{locationName:"architecture"},LicenseType:{locationName:"licenseType"},Platform:{locationName:"platform"},Hypervisor:{locationName:"hypervisor"},Description:{locationName:"description"},SnapshotDetails:{shape:"Sag",locationName:"snapshotDetailSet"},ImageId:{locationName:"imageId"},Progress:{locationName:"progress"},StatusMessage:{locationName:"statusMessage"},Status:{locationName:"status"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeImportSnapshotTasks:{input:{type:"structure",members:{DryRun:{type:"boolean"},ImportTaskIds:{shape:"Sac",locationName:"ImportTaskId"},NextToken:{},MaxResults:{type:"integer"},Filters:{shape:"S7r"}}},output:{type:"structure",members:{ImportSnapshotTasks:{locationName:"importSnapshotTaskSet",type:"list",member:{locationName:"item",type:"structure",members:{ImportTaskId:{locationName:"importTaskId"},SnapshotTaskDetail:{shape:"San",locationName:"snapshotTaskDetail"},Description:{locationName:"description"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeInstanceAttribute:{input:{type:"structure",required:["InstanceId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},Attribute:{locationName:"attribute"}}},output:{type:"structure",members:{InstanceId:{locationName:"instanceId"},InstanceType:{shape:"S33",locationName:"instanceType"},KernelId:{shape:"S33",locationName:"kernel"},RamdiskId:{shape:"S33",locationName:"ramdisk"},UserData:{shape:"S33",locationName:"userData"},DisableApiTermination:{shape:"Sar",locationName:"disableApiTermination"},InstanceInitiatedShutdownBehavior:{shape:"S33",locationName:"instanceInitiatedShutdownBehavior"},RootDeviceName:{shape:"S33",locationName:"rootDeviceName"},BlockDeviceMappings:{shape:"Sas",locationName:"blockDeviceMapping"},ProductCodes:{shape:"S9t",locationName:"productCodes"},EbsOptimized:{shape:"Sar",locationName:"ebsOptimized"},SriovNetSupport:{shape:"S33",locationName:"sriovNetSupport"},SourceDestCheck:{shape:"Sar",locationName:"sourceDestCheck"},Groups:{shape:"S4m",locationName:"groupSet"}}},http:{}},DescribeInstanceStatus:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S8a",locationName:"InstanceId"},Filters:{shape:"S7r",locationName:"Filter"},NextToken:{},MaxResults:{type:"integer"},IncludeAllInstances:{locationName:"includeAllInstances",type:"boolean"}}},output:{type:"structure",members:{InstanceStatuses:{locationName:"instanceStatusSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},AvailabilityZone:{locationName:"availabilityZone"},Events:{locationName:"eventsSet",type:"list",member:{locationName:"item",type:"structure",members:{Code:{locationName:"code"},Description:{locationName:"description"},NotBefore:{locationName:"notBefore",type:"timestamp"},NotAfter:{locationName:"notAfter",type:"timestamp"}}}},InstanceState:{shape:"Sb2",locationName:"instanceState"},SystemStatus:{shape:"Sb4",locationName:"systemStatus"},InstanceStatus:{shape:"Sb4",locationName:"instanceStatus"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeInstances:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S8a",locationName:"InstanceId"},Filters:{shape:"S7r",locationName:"Filter"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{Reservations:{locationName:"reservationSet",type:"list",member:{shape:"Sbd",locationName:"item"}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeInternetGateways:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},InternetGatewayIds:{shape:"S26",locationName:"internetGatewayId"},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{InternetGateways:{locationName:"internetGatewaySet",type:"list",member:{shape:"S3t",locationName:"item"
|
||
}}}},http:{}},DescribeKeyPairs:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},KeyNames:{locationName:"KeyName",type:"list",member:{locationName:"KeyName"}},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{KeyPairs:{locationName:"keySet",type:"list",member:{locationName:"item",type:"structure",members:{KeyName:{locationName:"keyName"},KeyFingerprint:{locationName:"keyFingerprint"}}}}}},http:{}},DescribeMovingAddresses:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIps:{shape:"S26",locationName:"publicIp"},NextToken:{locationName:"nextToken"},Filters:{shape:"S7r",locationName:"filter"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{MovingAddressStatuses:{locationName:"movingAddressStatusSet",type:"list",member:{locationName:"item",type:"structure",members:{PublicIp:{locationName:"publicIp"},MoveStatus:{locationName:"moveStatus"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeNatGateways:{input:{type:"structure",members:{NatGatewayIds:{shape:"S26",locationName:"NatGatewayId"},Filter:{shape:"S7r"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{NatGateways:{locationName:"natGatewaySet",type:"list",member:{shape:"S40",locationName:"item"}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeNetworkAcls:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclIds:{shape:"S26",locationName:"NetworkAclId"},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{NetworkAcls:{locationName:"networkAclSet",type:"list",member:{shape:"S46",locationName:"item"}}}},http:{}},DescribeNetworkInterfaceAttribute:{input:{type:"structure",required:["NetworkInterfaceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"},Attribute:{locationName:"attribute"}}},output:{type:"structure",members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},Description:{shape:"S33",locationName:"description"},SourceDestCheck:{shape:"Sar",locationName:"sourceDestCheck"},Groups:{shape:"S4m",locationName:"groupSet"},Attachment:{shape:"S4o",locationName:"attachment"}}},http:{}},DescribeNetworkInterfaces:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceIds:{locationName:"NetworkInterfaceId",type:"list",member:{locationName:"item"}},Filters:{shape:"S7r",locationName:"filter"}}},output:{type:"structure",members:{NetworkInterfaces:{locationName:"networkInterfaceSet",type:"list",member:{shape:"S4k",locationName:"item"}}}},http:{}},DescribePlacementGroups:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupNames:{locationName:"groupName",type:"list",member:{}},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{PlacementGroups:{locationName:"placementGroupSet",type:"list",member:{locationName:"item",type:"structure",members:{GroupName:{locationName:"groupName"},Strategy:{locationName:"strategy"},State:{locationName:"state"}}}}}},http:{}},DescribePrefixLists:{input:{type:"structure",members:{DryRun:{type:"boolean"},PrefixListIds:{shape:"S26",locationName:"PrefixListId"},Filters:{shape:"S7r",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{PrefixLists:{locationName:"prefixListSet",type:"list",member:{locationName:"item",type:"structure",members:{PrefixListId:{locationName:"prefixListId"},PrefixListName:{locationName:"prefixListName"},Cidrs:{shape:"S26",locationName:"cidrSet"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeRegions:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},RegionNames:{locationName:"RegionName",type:"list",member:{locationName:"RegionName"}},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{Regions:{locationName:"regionInfo",type:"list",member:{locationName:"item",type:"structure",members:{RegionName:{locationName:"regionName"},Endpoint:{locationName:"regionEndpoint"}}}}}},http:{}},DescribeReservedInstances:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},ReservedInstancesIds:{shape:"Scy",locationName:"ReservedInstancesId"},Filters:{shape:"S7r",locationName:"Filter"},OfferingType:{locationName:"offeringType"}}},output:{type:"structure",members:{ReservedInstances:{locationName:"reservedInstancesSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"},InstanceType:{locationName:"instanceType"},AvailabilityZone:{locationName:"availabilityZone"},Start:{locationName:"start",type:"timestamp"},End:{locationName:"end",type:"timestamp"},Duration:{locationName:"duration",type:"long"},UsagePrice:{locationName:"usagePrice",type:"float"},FixedPrice:{locationName:"fixedPrice",type:"float"},InstanceCount:{locationName:"instanceCount",type:"integer"},ProductDescription:{locationName:"productDescription"},State:{locationName:"state"},Tags:{shape:"Sa",locationName:"tagSet"},InstanceTenancy:{locationName:"instanceTenancy"},CurrencyCode:{locationName:"currencyCode"},OfferingType:{locationName:"offeringType"},RecurringCharges:{shape:"Sd6",locationName:"recurringCharges"}}}}}},http:{}},DescribeReservedInstancesListings:{input:{type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"},ReservedInstancesListingId:{locationName:"reservedInstancesListingId"},Filters:{shape:"S7r",locationName:"filters"}}},output:{type:"structure",members:{ReservedInstancesListings:{shape:"S1u",locationName:"reservedInstancesListingsSet"}}},http:{}},DescribeReservedInstancesModifications:{input:{type:"structure",members:{ReservedInstancesModificationIds:{locationName:"ReservedInstancesModificationId",type:"list",member:{locationName:"ReservedInstancesModificationId"}},NextToken:{locationName:"nextToken"},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{ReservedInstancesModifications:{locationName:"reservedInstancesModificationsSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesModificationId:{locationName:"reservedInstancesModificationId"},ReservedInstancesIds:{locationName:"reservedInstancesSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"}}}},ModificationResults:{locationName:"modificationResultSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"},TargetConfiguration:{shape:"Sdk",locationName:"targetConfiguration"}}}},CreateDate:{locationName:"createDate",type:"timestamp"},UpdateDate:{locationName:"updateDate",type:"timestamp"},EffectiveDate:{locationName:"effectiveDate",type:"timestamp"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"},ClientToken:{locationName:"clientToken"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeReservedInstancesOfferings:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},ReservedInstancesOfferingIds:{locationName:"ReservedInstancesOfferingId",type:"list",member:{}},InstanceType:{},AvailabilityZone:{},ProductDescription:{},Filters:{shape:"S7r",locationName:"Filter"},InstanceTenancy:{locationName:"instanceTenancy"},OfferingType:{locationName:"offeringType"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"},IncludeMarketplace:{type:"boolean"},MinDuration:{type:"long"},MaxDuration:{type:"long"},MaxInstanceCount:{type:"integer"}}},output:{type:"structure",members:{ReservedInstancesOfferings:{locationName:"reservedInstancesOfferingsSet",type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesOfferingId:{locationName:"reservedInstancesOfferingId"},InstanceType:{locationName:"instanceType"},AvailabilityZone:{locationName:"availabilityZone"},Duration:{locationName:"duration",type:"long"},UsagePrice:{locationName:"usagePrice",type:"float"},FixedPrice:{locationName:"fixedPrice",type:"float"},ProductDescription:{locationName:"productDescription"},InstanceTenancy:{locationName:"instanceTenancy"},CurrencyCode:{locationName:"currencyCode"},OfferingType:{locationName:"offeringType"},RecurringCharges:{shape:"Sd6",locationName:"recurringCharges"},Marketplace:{locationName:"marketplace",type:"boolean"},PricingDetails:{locationName:"pricingDetailsSet",type:"list",member:{locationName:"item",type:"structure",members:{Price:{locationName:"price",type:"double"},Count:{locationName:"count",type:"integer"}}}}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeRouteTables:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},RouteTableIds:{shape:"S26",locationName:"RouteTableId"},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{RouteTables:{locationName:"routeTableSet",type:"list",member:{shape:"S53",locationName:"item"}}}},http:{}},DescribeScheduledInstanceAvailability:{input:{type:"structure",required:["Recurrence","FirstSlotStartTimeRange"],members:{DryRun:{type:"boolean"},Recurrence:{type:"structure",members:{Frequency:{},Interval:{type:"integer"},OccurrenceDays:{locationName:"OccurrenceDay",type:"list",member:{locationName:"OccurenceDay",type:"integer"}},OccurrenceRelativeToEnd:{type:"boolean"},OccurrenceUnit:{}}},FirstSlotStartTimeRange:{type:"structure",required:["EarliestTime","LatestTime"],members:{EarliestTime:{type:"timestamp"},LatestTime:{type:"timestamp"}}},MinSlotDurationInHours:{type:"integer"},MaxSlotDurationInHours:{type:"integer"},NextToken:{},MaxResults:{type:"integer"},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{NextToken:{locationName:"nextToken"},ScheduledInstanceAvailabilitySet:{locationName:"scheduledInstanceAvailabilitySet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceType:{locationName:"instanceType"},Platform:{locationName:"platform"},NetworkPlatform:{locationName:"networkPlatform"},AvailabilityZone:{locationName:"availabilityZone"},PurchaseToken:{locationName:"purchaseToken"},SlotDurationInHours:{locationName:"slotDurationInHours",type:"integer"},Recurrence:{shape:"Se2",locationName:"recurrence"},FirstSlotStartTime:{locationName:"firstSlotStartTime",type:"timestamp"},HourlyPrice:{locationName:"hourlyPrice"},TotalScheduledInstanceHours:{locationName:"totalScheduledInstanceHours",type:"integer"},AvailableInstanceCount:{locationName:"availableInstanceCount",type:"integer"},MinTermDurationInDays:{locationName:"minTermDurationInDays",type:"integer"},MaxTermDurationInDays:{locationName:"maxTermDurationInDays",type:"integer"}}}}}},http:{}},DescribeScheduledInstances:{input:{type:"structure",members:{DryRun:{type:"boolean"},ScheduledInstanceIds:{locationName:"ScheduledInstanceId",type:"list",member:{locationName:"ScheduledInstanceId"}},SlotStartTimeRange:{type:"structure",members:{EarliestTime:{type:"timestamp"},LatestTime:{type:"timestamp"}}},NextToken:{},MaxResults:{type:"integer"},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{NextToken:{locationName:"nextToken"},ScheduledInstanceSet:{locationName:"scheduledInstanceSet",type:"list",member:{shape:"Se9",locationName:"item"}}}},http:{}},DescribeSecurityGroups:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupNames:{shape:"Seb",locationName:"GroupName"},GroupIds:{shape:"Ss",locationName:"GroupId"},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{SecurityGroups:{locationName:"securityGroupInfo",type:"list",member:{locationName:"item",type:"structure",members:{OwnerId:{locationName:"ownerId"},GroupName:{locationName:"groupName"},GroupId:{locationName:"groupId"},Description:{locationName:"groupDescription"},IpPermissions:{shape:"S15",locationName:"ipPermissions"},IpPermissionsEgress:{shape:"S15",locationName:"ipPermissionsEgress"},VpcId:{locationName:"vpcId"},Tags:{shape:"Sa",locationName:"tagSet"}}}}}},http:{}},DescribeSnapshotAttribute:{input:{type:"structure",required:["SnapshotId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SnapshotId:{},Attribute:{}}},output:{type:"structure",members:{SnapshotId:{locationName:"snapshotId"},CreateVolumePermissions:{shape:"Sei",locationName:"createVolumePermission"},ProductCodes:{shape:"S9t",locationName:"productCodes"}}},http:{}},DescribeSnapshots:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},SnapshotIds:{locationName:"SnapshotId",type:"list",member:{locationName:"SnapshotId"}},OwnerIds:{shape:"S9z",locationName:"Owner"},RestorableByUserIds:{locationName:"RestorableBy",type:"list",member:{}},Filters:{shape:"S7r",locationName:"Filter"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{Snapshots:{locationName:"snapshotSet",type:"list",member:{shape:"S5f",locationName:"item"}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeSpotDatafeedSubscription:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{SpotDatafeedSubscription:{shape:"S5j",locationName:"spotDatafeedSubscription"}}},http:{}},DescribeSpotFleetInstances:{input:{type:"structure",required:["SpotFleetRequestId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotFleetRequestId:{locationName:"spotFleetRequestId"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",required:["SpotFleetRequestId","ActiveInstances"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"},ActiveInstances:{locationName:"activeInstanceSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceType:{locationName:"instanceType"},InstanceId:{locationName:"instanceId"},SpotInstanceRequestId:{locationName:"spotInstanceRequestId"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeSpotFleetRequestHistory:{input:{type:"structure",required:["SpotFleetRequestId","StartTime"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotFleetRequestId:{locationName:"spotFleetRequestId"},EventType:{locationName:"eventType"},StartTime:{locationName:"startTime",type:"timestamp"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",required:["SpotFleetRequestId","StartTime","LastEvaluatedTime","HistoryRecords"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"},StartTime:{locationName:"startTime",type:"timestamp"},LastEvaluatedTime:{locationName:"lastEvaluatedTime",type:"timestamp"},HistoryRecords:{locationName:"historyRecordSet",type:"list",member:{locationName:"item",type:"structure",required:["Timestamp","EventType","EventInformation"],members:{Timestamp:{locationName:"timestamp",type:"timestamp"},EventType:{locationName:"eventType"},EventInformation:{locationName:"eventInformation",type:"structure",members:{InstanceId:{locationName:"instanceId"},EventSubType:{locationName:"eventSubType"},EventDescription:{locationName:"eventDescription"}}}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeSpotFleetRequests:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotFleetRequestIds:{shape:"S26",locationName:"spotFleetRequestId"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",required:["SpotFleetRequestConfigs"],members:{SpotFleetRequestConfigs:{locationName:"spotFleetRequestConfigSet",type:"list",member:{locationName:"item",type:"structure",required:["SpotFleetRequestId","SpotFleetRequestState","SpotFleetRequestConfig","CreateTime"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"},SpotFleetRequestState:{locationName:"spotFleetRequestState"},SpotFleetRequestConfig:{shape:"Sf5",locationName:"spotFleetRequestConfig"},CreateTime:{locationName:"createTime",type:"timestamp"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeSpotInstanceRequests:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotInstanceRequestIds:{shape:"S2g",locationName:"SpotInstanceRequestId"},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{SpotInstanceRequests:{shape:"Sfh",locationName:"spotInstanceRequestSet"}}},http:{}},DescribeSpotPriceHistory:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},StartTime:{locationName:"startTime",type:"timestamp"},EndTime:{locationName:"endTime",type:"timestamp"},InstanceTypes:{locationName:"InstanceType",type:"list",member:{}},ProductDescriptions:{locationName:"ProductDescription",type:"list",member:{}},Filters:{shape:"S7r",locationName:"Filter"},AvailabilityZone:{locationName:"availabilityZone"},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"}}},output:{type:"structure",members:{SpotPriceHistory:{locationName:"spotPriceHistorySet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceType:{locationName:"instanceType"},ProductDescription:{locationName:"productDescription"},SpotPrice:{locationName:"spotPrice"},Timestamp:{locationName:"timestamp",type:"timestamp"},AvailabilityZone:{locationName:"availabilityZone"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeSubnets:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},SubnetIds:{locationName:"SubnetId",type:"list",member:{locationName:"SubnetId"}},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{Subnets:{locationName:"subnetSet",type:"list",member:{shape:"S5o",locationName:"item"}}}},http:{}},DescribeTags:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},Filters:{shape:"S7r",locationName:"Filter"},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"}}},output:{type:"structure",members:{Tags:{locationName:"tagSet",type:"list",member:{locationName:"item",type:"structure",members:{ResourceId:{locationName:"resourceId"},ResourceType:{locationName:"resourceType"},Key:{locationName:"key"},Value:{locationName:"value"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeVolumeAttribute:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{},Attribute:{}}},output:{type:"structure",members:{VolumeId:{locationName:"volumeId"},AutoEnableIO:{shape:"Sar",locationName:"autoEnableIO"},ProductCodes:{shape:"S9t",locationName:"productCodes"}}},http:{}},DescribeVolumeStatus:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeIds:{shape:"Sg7",locationName:"VolumeId"},Filters:{shape:"S7r",locationName:"Filter"},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{VolumeStatuses:{locationName:"volumeStatusSet",type:"list",member:{locationName:"item",type:"structure",members:{VolumeId:{locationName:"volumeId"},AvailabilityZone:{locationName:"availabilityZone"},VolumeStatus:{locationName:"volumeStatus",type:"structure",members:{Status:{locationName:"status"},Details:{locationName:"details",type:"list",member:{locationName:"item",type:"structure",members:{Name:{locationName:"name"},Status:{locationName:"status"}}}}}},Events:{locationName:"eventsSet",type:"list",member:{locationName:"item",type:"structure",members:{EventType:{locationName:"eventType"},Description:{locationName:"description"},NotBefore:{locationName:"notBefore",type:"timestamp"},NotAfter:{locationName:"notAfter",type:"timestamp"},EventId:{locationName:"eventId"}}}},Actions:{locationName:"actionsSet",type:"list",member:{locationName:"item",type:"structure",members:{Code:{locationName:"code"},Description:{locationName:"description"},EventType:{locationName:"eventType"},EventId:{locationName:"eventId"}}}}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeVolumes:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeIds:{shape:"Sg7",locationName:"VolumeId"},Filters:{shape:"S7r",locationName:"Filter"},NextToken:{locationName:"nextToken"},MaxResults:{locationName:"maxResults",type:"integer"}}},output:{type:"structure",members:{Volumes:{locationName:"volumeSet",type:"list",member:{shape:"S5t",locationName:"item"}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeVpcAttribute:{input:{type:"structure",required:["VpcId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{},Attribute:{}}},output:{type:"structure",members:{VpcId:{locationName:"vpcId"},EnableDnsSupport:{shape:"Sar",locationName:"enableDnsSupport"},EnableDnsHostnames:{shape:"Sar",locationName:"enableDnsHostnames"}}},http:{}},DescribeVpcClassicLink:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcIds:{shape:"Sgr",locationName:"VpcId"},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{Vpcs:{locationName:"vpcSet",type:"list",member:{locationName:"item",type:"structure",members:{VpcId:{locationName:"vpcId"},ClassicLinkEnabled:{locationName:"classicLinkEnabled",type:"boolean"},Tags:{shape:"Sa",locationName:"tagSet"}}}}}},http:{}},DescribeVpcClassicLinkDnsSupport:{input:{type:"structure",members:{VpcIds:{shape:"Sgr"},MaxResults:{locationName:"maxResults",type:"integer"},NextToken:{locationName:"nextToken"}}},output:{type:"structure",members:{Vpcs:{locationName:"vpcs",type:"list",member:{locationName:"item",type:"structure",members:{VpcId:{locationName:"vpcId"},ClassicLinkDnsSupported:{locationName:"classicLinkDnsSupported",type:"boolean"}}}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeVpcEndpointServices:{input:{type:"structure",members:{DryRun:{type:"boolean"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{ServiceNames:{shape:"S26",locationName:"serviceNameSet"},NextToken:{locationName:"nextToken"}}},http:{}},DescribeVpcEndpoints:{input:{type:"structure",members:{DryRun:{type:"boolean"},VpcEndpointIds:{shape:"S26",locationName:"VpcEndpointId"},Filters:{shape:"S7r",locationName:"Filter"},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{VpcEndpoints:{locationName:"vpcEndpointSet",type:"list",member:{shape:"S63",locationName:"item"}},NextToken:{locationName:"nextToken"}}},http:{}},DescribeVpcPeeringConnections:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcPeeringConnectionIds:{shape:"S26",locationName:"VpcPeeringConnectionId"},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{VpcPeeringConnections:{locationName:"vpcPeeringConnectionSet",type:"list",member:{shape:"S5",locationName:"item"}}}},http:{}},DescribeVpcs:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcIds:{locationName:"VpcId",type:"list",member:{locationName:"VpcId"}},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{Vpcs:{locationName:"vpcSet",type:"list",member:{shape:"S5z",locationName:"item"}}}},http:{}},DescribeVpnConnections:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnConnectionIds:{locationName:"VpnConnectionId",type:"list",member:{locationName:"VpnConnectionId"}},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{VpnConnections:{locationName:"vpnConnectionSet",type:"list",member:{shape:"S6a",locationName:"item"}}}},http:{}},DescribeVpnGateways:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnGatewayIds:{locationName:"VpnGatewayId",type:"list",member:{locationName:"VpnGatewayId"}},Filters:{shape:"S7r",locationName:"Filter"}}},output:{type:"structure",members:{VpnGateways:{locationName:"vpnGatewaySet",type:"list",member:{shape:"S6m",locationName:"item"}}}},http:{}},DetachClassicLinkVpc:{input:{type:"structure",required:["InstanceId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},DetachInternetGateway:{input:{type:"structure",required:["InternetGatewayId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InternetGatewayId:{locationName:"internetGatewayId"},VpcId:{locationName:"vpcId"}}},http:{}},DetachNetworkInterface:{input:{type:"structure",required:["AttachmentId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},AttachmentId:{locationName:"attachmentId"},Force:{locationName:"force",type:"boolean"}}},http:{}},DetachVolume:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{},InstanceId:{},Device:{},Force:{type:"boolean"}}},output:{shape:"Sy"},http:{}},DetachVpnGateway:{input:{type:"structure",required:["VpnGatewayId","VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpnGatewayId:{},VpcId:{}}},http:{}},DisableVgwRoutePropagation:{input:{type:"structure",required:["RouteTableId","GatewayId"],members:{RouteTableId:{},GatewayId:{}}},http:{}},DisableVpcClassicLink:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},DisableVpcClassicLinkDnsSupport:{input:{type:"structure",members:{VpcId:{}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},DisassociateAddress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIp:{},AssociationId:{}}},http:{}},DisassociateRouteTable:{input:{type:"structure",required:["AssociationId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},AssociationId:{locationName:"associationId"}}},http:{}},EnableVgwRoutePropagation:{input:{type:"structure",required:["RouteTableId","GatewayId"],members:{RouteTableId:{},GatewayId:{}}},http:{}},EnableVolumeIO:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{locationName:"volumeId"}}},http:{}},EnableVpcClassicLink:{input:{type:"structure",required:["VpcId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcId:{locationName:"vpcId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},EnableVpcClassicLinkDnsSupport:{input:{type:"structure",members:{VpcId:{}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},GetConsoleOutput:{input:{type:"structure",required:["InstanceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{}}},output:{type:"structure",members:{InstanceId:{locationName:"instanceId"},Timestamp:{locationName:"timestamp",type:"timestamp"},Output:{locationName:"output"}}},http:{}},GetPasswordData:{input:{type:"structure",required:["InstanceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{}}},output:{type:"structure",members:{InstanceId:{locationName:"instanceId"},Timestamp:{locationName:"timestamp",type:"timestamp"},PasswordData:{locationName:"passwordData"}}},http:{}},ImportImage:{input:{type:"structure",members:{DryRun:{type:"boolean"},Description:{},DiskContainers:{locationName:"DiskContainer",type:"list",member:{locationName:"item",type:"structure",members:{Description:{},Format:{},Url:{},UserBucket:{shape:"Sib"},DeviceName:{},SnapshotId:{}}}},LicenseType:{},Hypervisor:{},Architecture:{},Platform:{},ClientData:{shape:"Sic"},ClientToken:{},RoleName:{}}},output:{type:"structure",members:{ImportTaskId:{locationName:"importTaskId"},Architecture:{locationName:"architecture"},LicenseType:{locationName:"licenseType"},Platform:{locationName:"platform"},Hypervisor:{locationName:"hypervisor"},Description:{locationName:"description"},SnapshotDetails:{shape:"Sag",locationName:"snapshotDetailSet"},ImageId:{locationName:"imageId"},Progress:{locationName:"progress"},StatusMessage:{locationName:"statusMessage"},Status:{locationName:"status"}}},http:{}},ImportInstance:{input:{type:"structure",required:["Platform"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Description:{locationName:"description"},LaunchSpecification:{locationName:"launchSpecification",type:"structure",members:{Architecture:{locationName:"architecture"},GroupNames:{shape:"Sig",locationName:"GroupName"},GroupIds:{shape:"S4g",locationName:"GroupId"},AdditionalInfo:{locationName:"additionalInfo"},UserData:{locationName:"userData",type:"structure",members:{Data:{locationName:"data"}}},InstanceType:{locationName:"instanceType"},Placement:{shape:"Sbh",locationName:"placement"},Monitoring:{locationName:"monitoring",type:"boolean"},SubnetId:{locationName:"subnetId"},InstanceInitiatedShutdownBehavior:{locationName:"instanceInitiatedShutdownBehavior"},PrivateIpAddress:{locationName:"privateIpAddress"}}},DiskImages:{locationName:"diskImage",type:"list",member:{type:"structure",members:{Image:{shape:"Sil"},Description:{},Volume:{shape:"Sim"}}}},Platform:{locationName:"platform"}}},output:{type:"structure",members:{ConversionTask:{shape:"S8i",locationName:"conversionTask"}}},http:{}},ImportKeyPair:{input:{type:"structure",required:["KeyName","PublicKeyMaterial"],members:{DryRun:{locationName:"dryRun",type:"boolean"},KeyName:{locationName:"keyName"},PublicKeyMaterial:{locationName:"publicKeyMaterial",type:"blob"}}},output:{type:"structure",members:{KeyName:{locationName:"keyName"},KeyFingerprint:{locationName:"keyFingerprint"}}},http:{}},ImportSnapshot:{input:{type:"structure",members:{DryRun:{type:"boolean"},Description:{},DiskContainer:{type:"structure",members:{Description:{},Format:{},Url:{},UserBucket:{shape:"Sib"}}},ClientData:{shape:"Sic"},ClientToken:{},RoleName:{}}},output:{type:"structure",members:{ImportTaskId:{locationName:"importTaskId"},SnapshotTaskDetail:{shape:"San",locationName:"snapshotTaskDetail"},Description:{locationName:"description"}}},http:{}},ImportVolume:{input:{type:"structure",required:["AvailabilityZone","Image","Volume"],members:{DryRun:{locationName:"dryRun",type:"boolean"},AvailabilityZone:{locationName:"availabilityZone"},Image:{shape:"Sil",locationName:"image"},Description:{locationName:"description"},Volume:{shape:"Sim",locationName:"volume"}}},output:{type:"structure",members:{ConversionTask:{shape:"S8i",locationName:"conversionTask"}}},http:{}},ModifyHosts:{input:{type:"structure",required:["HostIds","AutoPlacement"],members:{HostIds:{shape:"S98",locationName:"hostId"},AutoPlacement:{locationName:"autoPlacement"}}},output:{type:"structure",members:{Successful:{shape:"Sj",locationName:"successful"},Unsuccessful:{shape:"Six",locationName:"unsuccessful"}}},http:{}},ModifyIdFormat:{input:{type:"structure",required:["Resource","UseLongIds"],members:{Resource:{},UseLongIds:{type:"boolean"}}},http:{}},ModifyImageAttribute:{input:{type:"structure",required:["ImageId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageId:{},Attribute:{},OperationType:{},UserIds:{shape:"Sj1",locationName:"UserId"},UserGroups:{locationName:"UserGroup",type:"list",member:{locationName:"UserGroup"}},ProductCodes:{locationName:"ProductCode",type:"list",member:{locationName:"ProductCode"}},Value:{},LaunchPermission:{type:"structure",members:{Add:{shape:"S9q"},Remove:{shape:"S9q"}}},Description:{shape:"S33"}}},http:{}},ModifyInstanceAttribute:{input:{type:"structure",required:["InstanceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},Attribute:{locationName:"attribute"},Value:{locationName:"value"},BlockDeviceMappings:{locationName:"blockDeviceMapping",type:"list",member:{locationName:"item",type:"structure",members:{DeviceName:{locationName:"deviceName"},Ebs:{locationName:"ebs",type:"structure",members:{VolumeId:{
|
||
locationName:"volumeId"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}},VirtualName:{locationName:"virtualName"},NoDevice:{locationName:"noDevice"}}}},SourceDestCheck:{shape:"Sar"},DisableApiTermination:{shape:"Sar",locationName:"disableApiTermination"},InstanceType:{shape:"S33",locationName:"instanceType"},Kernel:{shape:"S33",locationName:"kernel"},Ramdisk:{shape:"S33",locationName:"ramdisk"},UserData:{locationName:"userData",type:"structure",members:{Value:{locationName:"value",type:"blob"}}},InstanceInitiatedShutdownBehavior:{shape:"S33",locationName:"instanceInitiatedShutdownBehavior"},Groups:{shape:"Ss",locationName:"GroupId"},EbsOptimized:{shape:"Sar",locationName:"ebsOptimized"},SriovNetSupport:{shape:"S33",locationName:"sriovNetSupport"}}},http:{}},ModifyInstancePlacement:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{locationName:"instanceId"},Tenancy:{locationName:"tenancy"},Affinity:{locationName:"affinity"},HostId:{locationName:"hostId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},ModifyNetworkInterfaceAttribute:{input:{type:"structure",required:["NetworkInterfaceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"},Description:{shape:"S33",locationName:"description"},SourceDestCheck:{shape:"Sar",locationName:"sourceDestCheck"},Groups:{shape:"S4g",locationName:"SecurityGroupId"},Attachment:{locationName:"attachment",type:"structure",members:{AttachmentId:{locationName:"attachmentId"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}}}},http:{}},ModifyReservedInstances:{input:{type:"structure",required:["ReservedInstancesIds","TargetConfigurations"],members:{ClientToken:{locationName:"clientToken"},ReservedInstancesIds:{shape:"Scy",locationName:"ReservedInstancesId"},TargetConfigurations:{locationName:"ReservedInstancesConfigurationSetItemType",type:"list",member:{shape:"Sdk",locationName:"item"}}}},output:{type:"structure",members:{ReservedInstancesModificationId:{locationName:"reservedInstancesModificationId"}}},http:{}},ModifySnapshotAttribute:{input:{type:"structure",required:["SnapshotId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SnapshotId:{},Attribute:{},OperationType:{},UserIds:{shape:"Sj1",locationName:"UserId"},GroupNames:{shape:"Seb",locationName:"UserGroup"},CreateVolumePermission:{type:"structure",members:{Add:{shape:"Sei"},Remove:{shape:"Sei"}}}}},http:{}},ModifySpotFleetRequest:{input:{type:"structure",required:["SpotFleetRequestId"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"},TargetCapacity:{locationName:"targetCapacity",type:"integer"},ExcessCapacityTerminationPolicy:{locationName:"excessCapacityTerminationPolicy"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},ModifySubnetAttribute:{input:{type:"structure",required:["SubnetId"],members:{SubnetId:{locationName:"subnetId"},MapPublicIpOnLaunch:{shape:"Sar"}}},http:{}},ModifyVolumeAttribute:{input:{type:"structure",required:["VolumeId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VolumeId:{},AutoEnableIO:{shape:"Sar"}}},http:{}},ModifyVpcAttribute:{input:{type:"structure",required:["VpcId"],members:{VpcId:{locationName:"vpcId"},EnableDnsSupport:{shape:"Sar"},EnableDnsHostnames:{shape:"Sar"}}},http:{}},ModifyVpcEndpoint:{input:{type:"structure",required:["VpcEndpointId"],members:{DryRun:{type:"boolean"},VpcEndpointId:{},ResetPolicy:{type:"boolean"},PolicyDocument:{},AddRouteTableIds:{shape:"S26",locationName:"AddRouteTableId"},RemoveRouteTableIds:{shape:"S26",locationName:"RemoveRouteTableId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},MonitorInstances:{input:{type:"structure",required:["InstanceIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S8a",locationName:"InstanceId"}}},output:{type:"structure",members:{InstanceMonitorings:{shape:"Sju",locationName:"instancesSet"}}},http:{}},MoveAddressToVpc:{input:{type:"structure",required:["PublicIp"],members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIp:{locationName:"publicIp"}}},output:{type:"structure",members:{AllocationId:{locationName:"allocationId"},Status:{locationName:"status"}}},http:{}},PurchaseReservedInstancesOffering:{input:{type:"structure",required:["ReservedInstancesOfferingId","InstanceCount"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ReservedInstancesOfferingId:{},InstanceCount:{type:"integer"},LimitPrice:{locationName:"limitPrice",type:"structure",members:{Amount:{locationName:"amount",type:"double"},CurrencyCode:{locationName:"currencyCode"}}}}},output:{type:"structure",members:{ReservedInstancesId:{locationName:"reservedInstancesId"}}},http:{}},PurchaseScheduledInstances:{input:{type:"structure",required:["PurchaseRequests"],members:{DryRun:{type:"boolean"},ClientToken:{idempotencyToken:!0},PurchaseRequests:{locationName:"PurchaseRequest",type:"list",member:{locationName:"PurchaseRequest",type:"structure",required:["PurchaseToken","InstanceCount"],members:{PurchaseToken:{},InstanceCount:{type:"integer"}}}}}},output:{type:"structure",members:{ScheduledInstanceSet:{locationName:"scheduledInstanceSet",type:"list",member:{shape:"Se9",locationName:"item"}}}},http:{}},RebootInstances:{input:{type:"structure",required:["InstanceIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S8a",locationName:"InstanceId"}}},http:{}},RegisterImage:{input:{type:"structure",required:["Name"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageLocation:{},Name:{locationName:"name"},Description:{locationName:"description"},Architecture:{locationName:"architecture"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},RootDeviceName:{locationName:"rootDeviceName"},BlockDeviceMappings:{shape:"S3c",locationName:"BlockDeviceMapping"},VirtualizationType:{locationName:"virtualizationType"},SriovNetSupport:{locationName:"sriovNetSupport"}}},output:{type:"structure",members:{ImageId:{locationName:"imageId"}}},http:{}},RejectVpcPeeringConnection:{input:{type:"structure",required:["VpcPeeringConnectionId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},output:{type:"structure",members:{Return:{locationName:"return",type:"boolean"}}},http:{}},ReleaseAddress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIp:{},AllocationId:{}}},http:{}},ReleaseHosts:{input:{type:"structure",required:["HostIds"],members:{HostIds:{shape:"S98",locationName:"hostId"}}},output:{type:"structure",members:{Successful:{shape:"Sj",locationName:"successful"},Unsuccessful:{shape:"Six",locationName:"unsuccessful"}}},http:{}},ReplaceNetworkAclAssociation:{input:{type:"structure",required:["AssociationId","NetworkAclId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},AssociationId:{locationName:"associationId"},NetworkAclId:{locationName:"networkAclId"}}},output:{type:"structure",members:{NewAssociationId:{locationName:"newAssociationId"}}},http:{}},ReplaceNetworkAclEntry:{input:{type:"structure",required:["NetworkAclId","RuleNumber","Protocol","RuleAction","Egress","CidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkAclId:{locationName:"networkAclId"},RuleNumber:{locationName:"ruleNumber",type:"integer"},Protocol:{locationName:"protocol"},RuleAction:{locationName:"ruleAction"},Egress:{locationName:"egress",type:"boolean"},CidrBlock:{locationName:"cidrBlock"},IcmpTypeCode:{shape:"S4a",locationName:"Icmp"},PortRange:{shape:"S4b",locationName:"portRange"}}},http:{}},ReplaceRoute:{input:{type:"structure",required:["RouteTableId","DestinationCidrBlock"],members:{DryRun:{locationName:"dryRun",type:"boolean"},RouteTableId:{locationName:"routeTableId"},DestinationCidrBlock:{locationName:"destinationCidrBlock"},GatewayId:{locationName:"gatewayId"},InstanceId:{locationName:"instanceId"},NetworkInterfaceId:{locationName:"networkInterfaceId"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"},NatGatewayId:{locationName:"natGatewayId"}}},http:{}},ReplaceRouteTableAssociation:{input:{type:"structure",required:["AssociationId","RouteTableId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},AssociationId:{locationName:"associationId"},RouteTableId:{locationName:"routeTableId"}}},output:{type:"structure",members:{NewAssociationId:{locationName:"newAssociationId"}}},http:{}},ReportInstanceStatus:{input:{type:"structure",required:["Instances","Status","ReasonCodes"],members:{DryRun:{locationName:"dryRun",type:"boolean"},Instances:{shape:"S8a",locationName:"instanceId"},Status:{locationName:"status"},StartTime:{locationName:"startTime",type:"timestamp"},EndTime:{locationName:"endTime",type:"timestamp"},ReasonCodes:{locationName:"reasonCode",type:"list",member:{locationName:"item"}},Description:{locationName:"description"}}},http:{}},RequestSpotFleet:{input:{type:"structure",required:["SpotFleetRequestConfig"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotFleetRequestConfig:{shape:"Sf5",locationName:"spotFleetRequestConfig"}}},output:{type:"structure",required:["SpotFleetRequestId"],members:{SpotFleetRequestId:{locationName:"spotFleetRequestId"}}},http:{}},RequestSpotInstances:{input:{type:"structure",required:["SpotPrice"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SpotPrice:{locationName:"spotPrice"},ClientToken:{locationName:"clientToken"},InstanceCount:{locationName:"instanceCount",type:"integer"},Type:{locationName:"type"},ValidFrom:{locationName:"validFrom",type:"timestamp"},ValidUntil:{locationName:"validUntil",type:"timestamp"},LaunchGroup:{locationName:"launchGroup"},AvailabilityZoneGroup:{locationName:"availabilityZoneGroup"},BlockDurationMinutes:{locationName:"blockDurationMinutes",type:"integer"},LaunchSpecification:{type:"structure",members:{ImageId:{locationName:"imageId"},KeyName:{locationName:"keyName"},SecurityGroups:{shape:"S26",locationName:"SecurityGroup"},UserData:{locationName:"userData"},AddressingType:{locationName:"addressingType"},InstanceType:{locationName:"instanceType"},Placement:{shape:"Sf8",locationName:"placement"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},BlockDeviceMappings:{shape:"S9w",locationName:"blockDeviceMapping"},SubnetId:{locationName:"subnetId"},NetworkInterfaces:{shape:"Sfa",locationName:"NetworkInterface"},IamInstanceProfile:{shape:"Sfc",locationName:"iamInstanceProfile"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},Monitoring:{shape:"Sfn",locationName:"monitoring"},SecurityGroupIds:{shape:"S26",locationName:"SecurityGroupId"}}}}},output:{type:"structure",members:{SpotInstanceRequests:{shape:"Sfh",locationName:"spotInstanceRequestSet"}}},http:{}},ResetImageAttribute:{input:{type:"structure",required:["ImageId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageId:{},Attribute:{}}},http:{}},ResetInstanceAttribute:{input:{type:"structure",required:["InstanceId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceId:{locationName:"instanceId"},Attribute:{locationName:"attribute"}}},http:{}},ResetNetworkInterfaceAttribute:{input:{type:"structure",required:["NetworkInterfaceId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},NetworkInterfaceId:{locationName:"networkInterfaceId"},SourceDestCheck:{locationName:"sourceDestCheck"}}},http:{}},ResetSnapshotAttribute:{input:{type:"structure",required:["SnapshotId","Attribute"],members:{DryRun:{locationName:"dryRun",type:"boolean"},SnapshotId:{},Attribute:{}}},http:{}},RestoreAddressToClassic:{input:{type:"structure",required:["PublicIp"],members:{DryRun:{locationName:"dryRun",type:"boolean"},PublicIp:{locationName:"publicIp"}}},output:{type:"structure",members:{Status:{locationName:"status"},PublicIp:{locationName:"publicIp"}}},http:{}},RevokeSecurityGroupEgress:{input:{type:"structure",required:["GroupId"],members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupId:{locationName:"groupId"},SourceSecurityGroupName:{locationName:"sourceSecurityGroupName"},SourceSecurityGroupOwnerId:{locationName:"sourceSecurityGroupOwnerId"},IpProtocol:{locationName:"ipProtocol"},FromPort:{locationName:"fromPort",type:"integer"},ToPort:{locationName:"toPort",type:"integer"},CidrIp:{locationName:"cidrIp"},IpPermissions:{shape:"S15",locationName:"ipPermissions"}}},http:{}},RevokeSecurityGroupIngress:{input:{type:"structure",members:{DryRun:{locationName:"dryRun",type:"boolean"},GroupName:{},GroupId:{},SourceSecurityGroupName:{},SourceSecurityGroupOwnerId:{},IpProtocol:{},FromPort:{type:"integer"},ToPort:{type:"integer"},CidrIp:{},IpPermissions:{shape:"S15"}}},http:{}},RunInstances:{input:{type:"structure",required:["ImageId","MinCount","MaxCount"],members:{DryRun:{locationName:"dryRun",type:"boolean"},ImageId:{},MinCount:{type:"integer"},MaxCount:{type:"integer"},KeyName:{},SecurityGroups:{shape:"Sig",locationName:"SecurityGroup"},SecurityGroupIds:{shape:"S4g",locationName:"SecurityGroupId"},UserData:{},InstanceType:{},Placement:{shape:"Sbh"},KernelId:{},RamdiskId:{},BlockDeviceMappings:{shape:"S3c",locationName:"BlockDeviceMapping"},Monitoring:{shape:"Sfn"},SubnetId:{},DisableApiTermination:{locationName:"disableApiTermination",type:"boolean"},InstanceInitiatedShutdownBehavior:{locationName:"instanceInitiatedShutdownBehavior"},PrivateIpAddress:{locationName:"privateIpAddress"},ClientToken:{locationName:"clientToken"},AdditionalInfo:{locationName:"additionalInfo"},NetworkInterfaces:{shape:"Sfa",locationName:"networkInterface"},IamInstanceProfile:{shape:"Sfc",locationName:"iamInstanceProfile"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"}}},output:{shape:"Sbd"},http:{}},RunScheduledInstances:{input:{type:"structure",required:["ScheduledInstanceId","LaunchSpecification"],members:{DryRun:{type:"boolean"},ClientToken:{idempotencyToken:!0},InstanceCount:{type:"integer"},ScheduledInstanceId:{},LaunchSpecification:{type:"structure",required:["ImageId"],members:{ImageId:{},KeyName:{},SecurityGroupIds:{shape:"Sl6",locationName:"SecurityGroupId"},UserData:{},Placement:{type:"structure",members:{AvailabilityZone:{},GroupName:{}}},KernelId:{},InstanceType:{},RamdiskId:{},BlockDeviceMappings:{locationName:"BlockDeviceMapping",type:"list",member:{locationName:"BlockDeviceMapping",type:"structure",members:{DeviceName:{},NoDevice:{},VirtualName:{},Ebs:{type:"structure",members:{SnapshotId:{},VolumeSize:{type:"integer"},DeleteOnTermination:{type:"boolean"},VolumeType:{},Iops:{type:"integer"},Encrypted:{type:"boolean"}}}}}},Monitoring:{type:"structure",members:{Enabled:{type:"boolean"}}},SubnetId:{},NetworkInterfaces:{locationName:"NetworkInterface",type:"list",member:{locationName:"NetworkInterface",type:"structure",members:{NetworkInterfaceId:{},DeviceIndex:{type:"integer"},SubnetId:{},Description:{},PrivateIpAddress:{},PrivateIpAddressConfigs:{locationName:"PrivateIpAddressConfig",type:"list",member:{locationName:"PrivateIpAddressConfigSet",type:"structure",members:{PrivateIpAddress:{},Primary:{type:"boolean"}}}},SecondaryPrivateIpAddressCount:{type:"integer"},AssociatePublicIpAddress:{type:"boolean"},Groups:{shape:"Sl6",locationName:"Group"},DeleteOnTermination:{type:"boolean"}}}},IamInstanceProfile:{type:"structure",members:{Arn:{},Name:{}}},EbsOptimized:{type:"boolean"}}}}},output:{type:"structure",members:{InstanceIdSet:{locationName:"instanceIdSet",type:"list",member:{locationName:"item"}}}},http:{}},StartInstances:{input:{type:"structure",required:["InstanceIds"],members:{InstanceIds:{shape:"S8a",locationName:"InstanceId"},AdditionalInfo:{locationName:"additionalInfo"},DryRun:{locationName:"dryRun",type:"boolean"}}},output:{type:"structure",members:{StartingInstances:{shape:"Sll",locationName:"instancesSet"}}},http:{}},StopInstances:{input:{type:"structure",required:["InstanceIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S8a",locationName:"InstanceId"},Force:{locationName:"force",type:"boolean"}}},output:{type:"structure",members:{StoppingInstances:{shape:"Sll",locationName:"instancesSet"}}},http:{}},TerminateInstances:{input:{type:"structure",required:["InstanceIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S8a",locationName:"InstanceId"}}},output:{type:"structure",members:{TerminatingInstances:{shape:"Sll",locationName:"instancesSet"}}},http:{}},UnassignPrivateIpAddresses:{input:{type:"structure",required:["NetworkInterfaceId","PrivateIpAddresses"],members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},PrivateIpAddresses:{shape:"Sl",locationName:"privateIpAddress"}}},http:{}},UnmonitorInstances:{input:{type:"structure",required:["InstanceIds"],members:{DryRun:{locationName:"dryRun",type:"boolean"},InstanceIds:{shape:"S8a",locationName:"InstanceId"}}},output:{type:"structure",members:{InstanceMonitorings:{shape:"Sju",locationName:"instancesSet"}}},http:{}}},shapes:{S5:{type:"structure",members:{AccepterVpcInfo:{shape:"S6",locationName:"accepterVpcInfo"},ExpirationTime:{locationName:"expirationTime",type:"timestamp"},RequesterVpcInfo:{shape:"S6",locationName:"requesterVpcInfo"},Status:{locationName:"status",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},Tags:{shape:"Sa",locationName:"tagSet"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"}}},S6:{type:"structure",members:{CidrBlock:{locationName:"cidrBlock"},OwnerId:{locationName:"ownerId"},VpcId:{locationName:"vpcId"}}},Sa:{type:"list",member:{locationName:"item",type:"structure",members:{Key:{locationName:"key"},Value:{locationName:"value"}}}},Sj:{type:"list",member:{locationName:"item"}},Sl:{type:"list",member:{locationName:"PrivateIpAddress"}},Ss:{type:"list",member:{locationName:"groupId"}},Sy:{type:"structure",members:{VolumeId:{locationName:"volumeId"},InstanceId:{locationName:"instanceId"},Device:{locationName:"device"},State:{locationName:"status"},AttachTime:{locationName:"attachTime",type:"timestamp"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}},S12:{type:"structure",members:{VpcId:{locationName:"vpcId"},State:{locationName:"state"}}},S15:{type:"list",member:{locationName:"item",type:"structure",members:{IpProtocol:{locationName:"ipProtocol"},FromPort:{locationName:"fromPort",type:"integer"},ToPort:{locationName:"toPort",type:"integer"},UserIdGroupPairs:{locationName:"groups",type:"list",member:{locationName:"item",type:"structure",members:{UserId:{locationName:"userId"},GroupName:{locationName:"groupName"},GroupId:{locationName:"groupId"},VpcId:{locationName:"vpcId"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"},PeeringStatus:{locationName:"peeringStatus"}}}},IpRanges:{locationName:"ipRanges",type:"list",member:{locationName:"item",type:"structure",members:{CidrIp:{locationName:"cidrIp"}}}},PrefixListIds:{locationName:"prefixListIds",type:"list",member:{locationName:"item",type:"structure",members:{PrefixListId:{locationName:"prefixListId"}}}}}}},S1f:{type:"structure",members:{S3:{type:"structure",members:{Bucket:{locationName:"bucket"},Prefix:{locationName:"prefix"},AWSAccessKeyId:{},UploadPolicy:{locationName:"uploadPolicy",type:"blob"},UploadPolicySignature:{locationName:"uploadPolicySignature"}}}}},S1j:{type:"structure",members:{InstanceId:{locationName:"instanceId"},BundleId:{locationName:"bundleId"},State:{locationName:"state"},StartTime:{locationName:"startTime",type:"timestamp"},UpdateTime:{locationName:"updateTime",type:"timestamp"},Storage:{shape:"S1f",locationName:"storage"},Progress:{locationName:"progress"},BundleTaskError:{locationName:"error",type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}}}},S1u:{type:"list",member:{locationName:"item",type:"structure",members:{ReservedInstancesListingId:{locationName:"reservedInstancesListingId"},ReservedInstancesId:{locationName:"reservedInstancesId"},CreateDate:{locationName:"createDate",type:"timestamp"},UpdateDate:{locationName:"updateDate",type:"timestamp"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"},InstanceCounts:{locationName:"instanceCounts",type:"list",member:{locationName:"item",type:"structure",members:{State:{locationName:"state"},InstanceCount:{locationName:"instanceCount",type:"integer"}}}},PriceSchedules:{locationName:"priceSchedules",type:"list",member:{locationName:"item",type:"structure",members:{Term:{locationName:"term",type:"long"},Price:{locationName:"price",type:"double"},CurrencyCode:{locationName:"currencyCode"},Active:{locationName:"active",type:"boolean"}}}},Tags:{shape:"Sa",locationName:"tagSet"},ClientToken:{locationName:"clientToken"}}}},S26:{type:"list",member:{locationName:"item"}},S2g:{type:"list",member:{locationName:"SpotInstanceRequestId"}},S2u:{type:"structure",members:{CustomerGatewayId:{locationName:"customerGatewayId"},State:{locationName:"state"},Type:{locationName:"type"},IpAddress:{locationName:"ipAddress"},BgpAsn:{locationName:"bgpAsn"},Tags:{shape:"Sa",locationName:"tagSet"}}},S2z:{type:"structure",members:{DhcpOptionsId:{locationName:"dhcpOptionsId"},DhcpConfigurations:{locationName:"dhcpConfigurationSet",type:"list",member:{locationName:"item",type:"structure",members:{Key:{locationName:"key"},Values:{locationName:"valueSet",type:"list",member:{shape:"S33",locationName:"item"}}}}},Tags:{shape:"Sa",locationName:"tagSet"}}},S33:{type:"structure",members:{Value:{locationName:"value"}}},S38:{type:"list",member:{shape:"S39",locationName:"item"}},S39:{type:"structure",required:["Error"],members:{ResourceId:{locationName:"resourceId"},Error:{locationName:"error",type:"structure",required:["Code","Message"],members:{Code:{locationName:"code"},Message:{locationName:"message"}}}}},S3c:{type:"list",member:{shape:"S3d",locationName:"BlockDeviceMapping"}},S3d:{type:"structure",members:{VirtualName:{locationName:"virtualName"},DeviceName:{locationName:"deviceName"},Ebs:{locationName:"ebs",type:"structure",members:{SnapshotId:{locationName:"snapshotId"},VolumeSize:{locationName:"volumeSize",type:"integer"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"},VolumeType:{locationName:"volumeType"},Iops:{locationName:"iops",type:"integer"},Encrypted:{locationName:"encrypted",type:"boolean"}}},NoDevice:{locationName:"noDevice"}}},S3n:{type:"structure",members:{ExportTaskId:{locationName:"exportTaskId"},Description:{locationName:"description"},State:{locationName:"state"},StatusMessage:{locationName:"statusMessage"},InstanceExportDetails:{locationName:"instanceExport",type:"structure",members:{InstanceId:{locationName:"instanceId"},TargetEnvironment:{locationName:"targetEnvironment"}}},ExportToS3Task:{locationName:"exportToS3",type:"structure",members:{DiskImageFormat:{locationName:"diskImageFormat"},ContainerFormat:{locationName:"containerFormat"},S3Bucket:{locationName:"s3Bucket"},S3Key:{locationName:"s3Key"}}}}},S3t:{type:"structure",members:{InternetGatewayId:{locationName:"internetGatewayId"},Attachments:{locationName:"attachmentSet",type:"list",member:{locationName:"item",type:"structure",members:{VpcId:{locationName:"vpcId"},State:{locationName:"state"}}}},Tags:{shape:"Sa",locationName:"tagSet"}}},S40:{type:"structure",members:{VpcId:{locationName:"vpcId"},SubnetId:{locationName:"subnetId"},NatGatewayId:{locationName:"natGatewayId"},CreateTime:{locationName:"createTime",type:"timestamp"},DeleteTime:{locationName:"deleteTime",type:"timestamp"},NatGatewayAddresses:{locationName:"natGatewayAddressSet",type:"list",member:{locationName:"item",type:"structure",members:{PublicIp:{locationName:"publicIp"},AllocationId:{locationName:"allocationId"},PrivateIp:{locationName:"privateIp"},NetworkInterfaceId:{locationName:"networkInterfaceId"}}}},State:{locationName:"state"},FailureCode:{locationName:"failureCode"},FailureMessage:{locationName:"failureMessage"}}},S46:{type:"structure",members:{NetworkAclId:{locationName:"networkAclId"},VpcId:{locationName:"vpcId"},IsDefault:{locationName:"default",type:"boolean"},Entries:{locationName:"entrySet",type:"list",member:{locationName:"item",type:"structure",members:{RuleNumber:{locationName:"ruleNumber",type:"integer"},Protocol:{locationName:"protocol"},RuleAction:{locationName:"ruleAction"},Egress:{locationName:"egress",type:"boolean"},CidrBlock:{locationName:"cidrBlock"},IcmpTypeCode:{shape:"S4a",locationName:"icmpTypeCode"},PortRange:{shape:"S4b",locationName:"portRange"}}}},Associations:{locationName:"associationSet",type:"list",member:{locationName:"item",type:"structure",members:{NetworkAclAssociationId:{locationName:"networkAclAssociationId"},NetworkAclId:{locationName:"networkAclId"},SubnetId:{locationName:"subnetId"}}}},Tags:{shape:"Sa",locationName:"tagSet"}}},S4a:{type:"structure",members:{Type:{locationName:"type",type:"integer"},Code:{locationName:"code",type:"integer"}}},S4b:{type:"structure",members:{From:{locationName:"from",type:"integer"},To:{locationName:"to",type:"integer"}}},S4g:{type:"list",member:{locationName:"SecurityGroupId"}},S4h:{type:"list",member:{locationName:"item",type:"structure",required:["PrivateIpAddress"],members:{PrivateIpAddress:{locationName:"privateIpAddress"},Primary:{locationName:"primary",type:"boolean"}}}},S4k:{type:"structure",members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},SubnetId:{locationName:"subnetId"},VpcId:{locationName:"vpcId"},AvailabilityZone:{locationName:"availabilityZone"},Description:{locationName:"description"},OwnerId:{locationName:"ownerId"},RequesterId:{locationName:"requesterId"},RequesterManaged:{locationName:"requesterManaged",type:"boolean"},Status:{locationName:"status"},MacAddress:{locationName:"macAddress"},PrivateIpAddress:{locationName:"privateIpAddress"},PrivateDnsName:{locationName:"privateDnsName"},SourceDestCheck:{locationName:"sourceDestCheck",type:"boolean"},Groups:{shape:"S4m",locationName:"groupSet"},Attachment:{shape:"S4o",locationName:"attachment"},Association:{shape:"S4p",locationName:"association"},TagSet:{shape:"Sa",locationName:"tagSet"},PrivateIpAddresses:{locationName:"privateIpAddressesSet",type:"list",member:{locationName:"item",type:"structure",members:{PrivateIpAddress:{locationName:"privateIpAddress"},PrivateDnsName:{locationName:"privateDnsName"},Primary:{locationName:"primary",type:"boolean"},Association:{shape:"S4p",locationName:"association"}}}},InterfaceType:{locationName:"interfaceType"}}},S4m:{type:"list",member:{locationName:"item",type:"structure",members:{GroupName:{locationName:"groupName"},GroupId:{locationName:"groupId"}}}},S4o:{type:"structure",members:{AttachmentId:{locationName:"attachmentId"},InstanceId:{locationName:"instanceId"},InstanceOwnerId:{locationName:"instanceOwnerId"},DeviceIndex:{locationName:"deviceIndex",type:"integer"},Status:{locationName:"status"},AttachTime:{locationName:"attachTime",type:"timestamp"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}},S4p:{type:"structure",members:{PublicIp:{locationName:"publicIp"},PublicDnsName:{locationName:"publicDnsName"},IpOwnerId:{locationName:"ipOwnerId"},AllocationId:{locationName:"allocationId"},AssociationId:{locationName:"associationId"}}},S53:{type:"structure",members:{RouteTableId:{locationName:"routeTableId"},VpcId:{locationName:"vpcId"},Routes:{locationName:"routeSet",type:"list",member:{locationName:"item",type:"structure",members:{DestinationCidrBlock:{locationName:"destinationCidrBlock"},DestinationPrefixListId:{locationName:"destinationPrefixListId"},GatewayId:{locationName:"gatewayId"},InstanceId:{locationName:"instanceId"},InstanceOwnerId:{locationName:"instanceOwnerId"},NetworkInterfaceId:{locationName:"networkInterfaceId"},VpcPeeringConnectionId:{locationName:"vpcPeeringConnectionId"},NatGatewayId:{locationName:"natGatewayId"},State:{locationName:"state"},Origin:{locationName:"origin"}}}},Associations:{locationName:"associationSet",type:"list",member:{locationName:"item",type:"structure",members:{RouteTableAssociationId:{locationName:"routeTableAssociationId"},RouteTableId:{locationName:"routeTableId"},SubnetId:{locationName:"subnetId"},Main:{locationName:"main",type:"boolean"}}}},Tags:{shape:"Sa",locationName:"tagSet"},PropagatingVgws:{locationName:"propagatingVgwSet",type:"list",member:{locationName:"item",type:"structure",members:{GatewayId:{locationName:"gatewayId"}}}}}},S5f:{type:"structure",members:{SnapshotId:{locationName:"snapshotId"},VolumeId:{locationName:"volumeId"},State:{locationName:"status"},StateMessage:{locationName:"statusMessage"},StartTime:{locationName:"startTime",type:"timestamp"},Progress:{locationName:"progress"},OwnerId:{locationName:"ownerId"},Description:{locationName:"description"},VolumeSize:{locationName:"volumeSize",type:"integer"},OwnerAlias:{locationName:"ownerAlias"},Tags:{shape:"Sa",locationName:"tagSet"},Encrypted:{locationName:"encrypted",type:"boolean"},KmsKeyId:{locationName:"kmsKeyId"},DataEncryptionKeyId:{locationName:"dataEncryptionKeyId"}}},S5j:{type:"structure",members:{OwnerId:{locationName:"ownerId"},Bucket:{locationName:"bucket"},Prefix:{locationName:"prefix"},State:{locationName:"state"},Fault:{shape:"S5l",locationName:"fault"}}},S5l:{type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},S5o:{type:"structure",members:{SubnetId:{locationName:"subnetId"},State:{locationName:"state"},VpcId:{locationName:"vpcId"},CidrBlock:{locationName:"cidrBlock"},AvailableIpAddressCount:{locationName:"availableIpAddressCount",type:"integer"},AvailabilityZone:{locationName:"availabilityZone"},DefaultForAz:{locationName:"defaultForAz",type:"boolean"},MapPublicIpOnLaunch:{locationName:"mapPublicIpOnLaunch",type:"boolean"},Tags:{shape:"Sa",locationName:"tagSet"}}},S5r:{type:"list",member:{}},S5t:{type:"structure",members:{VolumeId:{locationName:"volumeId"},Size:{locationName:"size",type:"integer"},SnapshotId:{locationName:"snapshotId"},AvailabilityZone:{locationName:"availabilityZone"},State:{locationName:"status"},CreateTime:{locationName:"createTime",type:"timestamp"},Attachments:{locationName:"attachmentSet",type:"list",member:{shape:"Sy",locationName:"item"}},Tags:{shape:"Sa",locationName:"tagSet"},VolumeType:{locationName:"volumeType"},Iops:{locationName:"iops",type:"integer"},Encrypted:{locationName:"encrypted",type:"boolean"},KmsKeyId:{locationName:"kmsKeyId"}}},S5z:{type:"structure",members:{VpcId:{locationName:"vpcId"},State:{locationName:"state"},CidrBlock:{locationName:"cidrBlock"},DhcpOptionsId:{locationName:"dhcpOptionsId"},Tags:{shape:"Sa",locationName:"tagSet"},InstanceTenancy:{locationName:"instanceTenancy"},IsDefault:{locationName:"isDefault",type:"boolean"}}},S63:{type:"structure",members:{VpcEndpointId:{locationName:"vpcEndpointId"},VpcId:{locationName:"vpcId"},ServiceName:{locationName:"serviceName"},State:{locationName:"state"},PolicyDocument:{locationName:"policyDocument"},RouteTableIds:{shape:"S26",locationName:"routeTableIdSet"},CreationTimestamp:{locationName:"creationTimestamp",type:"timestamp"}}},S6a:{type:"structure",members:{VpnConnectionId:{locationName:"vpnConnectionId"},State:{locationName:"state"},CustomerGatewayConfiguration:{locationName:"customerGatewayConfiguration"},Type:{locationName:"type"},CustomerGatewayId:{locationName:"customerGatewayId"},VpnGatewayId:{locationName:"vpnGatewayId"},Tags:{shape:"Sa",locationName:"tagSet"},VgwTelemetry:{locationName:"vgwTelemetry",type:"list",member:{locationName:"item",type:"structure",members:{OutsideIpAddress:{locationName:"outsideIpAddress"},Status:{locationName:"status"},LastStatusChange:{locationName:"lastStatusChange",type:"timestamp"},StatusMessage:{locationName:"statusMessage"},AcceptedRouteCount:{locationName:"acceptedRouteCount",type:"integer"}}}},Options:{locationName:"options",type:"structure",members:{StaticRoutesOnly:{locationName:"staticRoutesOnly",
|
||
type:"boolean"}}},Routes:{locationName:"routes",type:"list",member:{locationName:"item",type:"structure",members:{DestinationCidrBlock:{locationName:"destinationCidrBlock"},Source:{locationName:"source"},State:{locationName:"state"}}}}}},S6m:{type:"structure",members:{VpnGatewayId:{locationName:"vpnGatewayId"},State:{locationName:"state"},Type:{locationName:"type"},AvailabilityZone:{locationName:"availabilityZone"},VpcAttachments:{locationName:"attachments",type:"list",member:{shape:"S12",locationName:"item"}},Tags:{shape:"Sa",locationName:"tagSet"}}},S7r:{type:"list",member:{locationName:"Filter",type:"structure",members:{Name:{},Values:{shape:"S26",locationName:"Value"}}}},S8a:{type:"list",member:{locationName:"InstanceId"}},S8i:{type:"structure",required:["ConversionTaskId","State"],members:{ConversionTaskId:{locationName:"conversionTaskId"},ExpirationTime:{locationName:"expirationTime"},ImportInstance:{locationName:"importInstance",type:"structure",required:["Volumes"],members:{Volumes:{locationName:"volumes",type:"list",member:{locationName:"item",type:"structure",required:["BytesConverted","AvailabilityZone","Image","Volume","Status"],members:{BytesConverted:{locationName:"bytesConverted",type:"long"},AvailabilityZone:{locationName:"availabilityZone"},Image:{shape:"S8m",locationName:"image"},Volume:{shape:"S8n",locationName:"volume"},Status:{locationName:"status"},StatusMessage:{locationName:"statusMessage"},Description:{locationName:"description"}}}},InstanceId:{locationName:"instanceId"},Platform:{locationName:"platform"},Description:{locationName:"description"}}},ImportVolume:{locationName:"importVolume",type:"structure",required:["BytesConverted","AvailabilityZone","Image","Volume"],members:{BytesConverted:{locationName:"bytesConverted",type:"long"},AvailabilityZone:{locationName:"availabilityZone"},Description:{locationName:"description"},Image:{shape:"S8m",locationName:"image"},Volume:{shape:"S8n",locationName:"volume"}}},State:{locationName:"state"},StatusMessage:{locationName:"statusMessage"},Tags:{shape:"Sa",locationName:"tagSet"}}},S8m:{type:"structure",required:["Format","Size","ImportManifestUrl"],members:{Format:{locationName:"format"},Size:{locationName:"size",type:"long"},ImportManifestUrl:{locationName:"importManifestUrl"},Checksum:{locationName:"checksum"}}},S8n:{type:"structure",required:["Id"],members:{Size:{locationName:"size",type:"long"},Id:{locationName:"id"}}},S98:{type:"list",member:{locationName:"item"}},S9q:{type:"list",member:{locationName:"item",type:"structure",members:{UserId:{locationName:"userId"},Group:{locationName:"group"}}}},S9t:{type:"list",member:{locationName:"item",type:"structure",members:{ProductCodeId:{locationName:"productCode"},ProductCodeType:{locationName:"type"}}}},S9w:{type:"list",member:{shape:"S3d",locationName:"item"}},S9z:{type:"list",member:{locationName:"Owner"}},Sa7:{type:"structure",members:{Code:{locationName:"code"},Message:{locationName:"message"}}},Sac:{type:"list",member:{locationName:"ImportTaskId"}},Sag:{type:"list",member:{locationName:"item",type:"structure",members:{DiskImageSize:{locationName:"diskImageSize",type:"double"},Description:{locationName:"description"},Format:{locationName:"format"},Url:{locationName:"url"},UserBucket:{shape:"Sai",locationName:"userBucket"},DeviceName:{locationName:"deviceName"},SnapshotId:{locationName:"snapshotId"},Progress:{locationName:"progress"},StatusMessage:{locationName:"statusMessage"},Status:{locationName:"status"}}}},Sai:{type:"structure",members:{S3Bucket:{locationName:"s3Bucket"},S3Key:{locationName:"s3Key"}}},San:{type:"structure",members:{DiskImageSize:{locationName:"diskImageSize",type:"double"},Description:{locationName:"description"},Format:{locationName:"format"},Url:{locationName:"url"},UserBucket:{shape:"Sai",locationName:"userBucket"},SnapshotId:{locationName:"snapshotId"},Progress:{locationName:"progress"},StatusMessage:{locationName:"statusMessage"},Status:{locationName:"status"}}},Sar:{type:"structure",members:{Value:{locationName:"value",type:"boolean"}}},Sas:{type:"list",member:{locationName:"item",type:"structure",members:{DeviceName:{locationName:"deviceName"},Ebs:{locationName:"ebs",type:"structure",members:{VolumeId:{locationName:"volumeId"},Status:{locationName:"status"},AttachTime:{locationName:"attachTime",type:"timestamp"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}}}}},Sb2:{type:"structure",members:{Code:{locationName:"code",type:"integer"},Name:{locationName:"name"}}},Sb4:{type:"structure",members:{Status:{locationName:"status"},Details:{locationName:"details",type:"list",member:{locationName:"item",type:"structure",members:{Name:{locationName:"name"},Status:{locationName:"status"},ImpairedSince:{locationName:"impairedSince",type:"timestamp"}}}}}},Sbd:{type:"structure",members:{ReservationId:{locationName:"reservationId"},OwnerId:{locationName:"ownerId"},RequesterId:{locationName:"requesterId"},Groups:{shape:"S4m",locationName:"groupSet"},Instances:{locationName:"instancesSet",type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},ImageId:{locationName:"imageId"},State:{shape:"Sb2",locationName:"instanceState"},PrivateDnsName:{locationName:"privateDnsName"},PublicDnsName:{locationName:"dnsName"},StateTransitionReason:{locationName:"reason"},KeyName:{locationName:"keyName"},AmiLaunchIndex:{locationName:"amiLaunchIndex",type:"integer"},ProductCodes:{shape:"S9t",locationName:"productCodes"},InstanceType:{locationName:"instanceType"},LaunchTime:{locationName:"launchTime",type:"timestamp"},Placement:{shape:"Sbh",locationName:"placement"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},Platform:{locationName:"platform"},Monitoring:{shape:"Sbi",locationName:"monitoring"},SubnetId:{locationName:"subnetId"},VpcId:{locationName:"vpcId"},PrivateIpAddress:{locationName:"privateIpAddress"},PublicIpAddress:{locationName:"ipAddress"},StateReason:{shape:"Sa7",locationName:"stateReason"},Architecture:{locationName:"architecture"},RootDeviceType:{locationName:"rootDeviceType"},RootDeviceName:{locationName:"rootDeviceName"},BlockDeviceMappings:{shape:"Sas",locationName:"blockDeviceMapping"},VirtualizationType:{locationName:"virtualizationType"},InstanceLifecycle:{locationName:"instanceLifecycle"},SpotInstanceRequestId:{locationName:"spotInstanceRequestId"},ClientToken:{locationName:"clientToken"},Tags:{shape:"Sa",locationName:"tagSet"},SecurityGroups:{shape:"S4m",locationName:"groupSet"},SourceDestCheck:{locationName:"sourceDestCheck",type:"boolean"},Hypervisor:{locationName:"hypervisor"},NetworkInterfaces:{locationName:"networkInterfaceSet",type:"list",member:{locationName:"item",type:"structure",members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},SubnetId:{locationName:"subnetId"},VpcId:{locationName:"vpcId"},Description:{locationName:"description"},OwnerId:{locationName:"ownerId"},Status:{locationName:"status"},MacAddress:{locationName:"macAddress"},PrivateIpAddress:{locationName:"privateIpAddress"},PrivateDnsName:{locationName:"privateDnsName"},SourceDestCheck:{locationName:"sourceDestCheck",type:"boolean"},Groups:{shape:"S4m",locationName:"groupSet"},Attachment:{locationName:"attachment",type:"structure",members:{AttachmentId:{locationName:"attachmentId"},DeviceIndex:{locationName:"deviceIndex",type:"integer"},Status:{locationName:"status"},AttachTime:{locationName:"attachTime",type:"timestamp"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"}}},Association:{shape:"Sbo",locationName:"association"},PrivateIpAddresses:{locationName:"privateIpAddressesSet",type:"list",member:{locationName:"item",type:"structure",members:{PrivateIpAddress:{locationName:"privateIpAddress"},PrivateDnsName:{locationName:"privateDnsName"},Primary:{locationName:"primary",type:"boolean"},Association:{shape:"Sbo",locationName:"association"}}}}}}},IamInstanceProfile:{locationName:"iamInstanceProfile",type:"structure",members:{Arn:{locationName:"arn"},Id:{locationName:"id"}}},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},SriovNetSupport:{locationName:"sriovNetSupport"}}}}}},Sbh:{type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},GroupName:{locationName:"groupName"},Tenancy:{locationName:"tenancy"},HostId:{locationName:"hostId"},Affinity:{locationName:"affinity"}}},Sbi:{type:"structure",members:{State:{locationName:"state"}}},Sbo:{type:"structure",members:{PublicIp:{locationName:"publicIp"},PublicDnsName:{locationName:"publicDnsName"},IpOwnerId:{locationName:"ipOwnerId"}}},Scy:{type:"list",member:{locationName:"ReservedInstancesId"}},Sd6:{type:"list",member:{locationName:"item",type:"structure",members:{Frequency:{locationName:"frequency"},Amount:{locationName:"amount",type:"double"}}}},Sdk:{type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},Platform:{locationName:"platform"},InstanceCount:{locationName:"instanceCount",type:"integer"},InstanceType:{locationName:"instanceType"}}},Se2:{type:"structure",members:{Frequency:{locationName:"frequency"},Interval:{locationName:"interval",type:"integer"},OccurrenceDaySet:{locationName:"occurrenceDaySet",type:"list",member:{locationName:"item",type:"integer"}},OccurrenceRelativeToEnd:{locationName:"occurrenceRelativeToEnd",type:"boolean"},OccurrenceUnit:{locationName:"occurrenceUnit"}}},Se9:{type:"structure",members:{ScheduledInstanceId:{locationName:"scheduledInstanceId"},InstanceType:{locationName:"instanceType"},Platform:{locationName:"platform"},NetworkPlatform:{locationName:"networkPlatform"},AvailabilityZone:{locationName:"availabilityZone"},SlotDurationInHours:{locationName:"slotDurationInHours",type:"integer"},Recurrence:{shape:"Se2",locationName:"recurrence"},PreviousSlotEndTime:{locationName:"previousSlotEndTime",type:"timestamp"},NextSlotStartTime:{locationName:"nextSlotStartTime",type:"timestamp"},HourlyPrice:{locationName:"hourlyPrice"},TotalScheduledInstanceHours:{locationName:"totalScheduledInstanceHours",type:"integer"},InstanceCount:{locationName:"instanceCount",type:"integer"},TermStartDate:{locationName:"termStartDate",type:"timestamp"},TermEndDate:{locationName:"termEndDate",type:"timestamp"},CreateDate:{locationName:"createDate",type:"timestamp"}}},Seb:{type:"list",member:{locationName:"GroupName"}},Sei:{type:"list",member:{locationName:"item",type:"structure",members:{UserId:{locationName:"userId"},Group:{locationName:"group"}}}},Sf5:{type:"structure",required:["SpotPrice","TargetCapacity","IamFleetRole","LaunchSpecifications"],members:{ClientToken:{locationName:"clientToken"},SpotPrice:{locationName:"spotPrice"},TargetCapacity:{locationName:"targetCapacity",type:"integer"},ValidFrom:{locationName:"validFrom",type:"timestamp"},ValidUntil:{locationName:"validUntil",type:"timestamp"},TerminateInstancesWithExpiration:{locationName:"terminateInstancesWithExpiration",type:"boolean"},IamFleetRole:{locationName:"iamFleetRole"},LaunchSpecifications:{locationName:"launchSpecifications",type:"list",member:{locationName:"item",type:"structure",members:{ImageId:{locationName:"imageId"},KeyName:{locationName:"keyName"},SecurityGroups:{shape:"S4m",locationName:"groupSet"},UserData:{locationName:"userData"},AddressingType:{locationName:"addressingType"},InstanceType:{locationName:"instanceType"},Placement:{shape:"Sf8",locationName:"placement"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},BlockDeviceMappings:{shape:"S9w",locationName:"blockDeviceMapping"},Monitoring:{locationName:"monitoring",type:"structure",members:{Enabled:{locationName:"enabled",type:"boolean"}}},SubnetId:{locationName:"subnetId"},NetworkInterfaces:{shape:"Sfa",locationName:"networkInterfaceSet"},IamInstanceProfile:{shape:"Sfc",locationName:"iamInstanceProfile"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},WeightedCapacity:{locationName:"weightedCapacity",type:"double"},SpotPrice:{locationName:"spotPrice"}}}},ExcessCapacityTerminationPolicy:{locationName:"excessCapacityTerminationPolicy"},AllocationStrategy:{locationName:"allocationStrategy"}}},Sf8:{type:"structure",members:{AvailabilityZone:{locationName:"availabilityZone"},GroupName:{locationName:"groupName"}}},Sfa:{type:"list",member:{locationName:"item",type:"structure",members:{NetworkInterfaceId:{locationName:"networkInterfaceId"},DeviceIndex:{locationName:"deviceIndex",type:"integer"},SubnetId:{locationName:"subnetId"},Description:{locationName:"description"},PrivateIpAddress:{locationName:"privateIpAddress"},Groups:{shape:"S4g",locationName:"SecurityGroupId"},DeleteOnTermination:{locationName:"deleteOnTermination",type:"boolean"},PrivateIpAddresses:{shape:"S4h",locationName:"privateIpAddressesSet",queryName:"PrivateIpAddresses"},SecondaryPrivateIpAddressCount:{locationName:"secondaryPrivateIpAddressCount",type:"integer"},AssociatePublicIpAddress:{locationName:"associatePublicIpAddress",type:"boolean"}}}},Sfc:{type:"structure",members:{Arn:{locationName:"arn"},Name:{locationName:"name"}}},Sfh:{type:"list",member:{locationName:"item",type:"structure",members:{SpotInstanceRequestId:{locationName:"spotInstanceRequestId"},SpotPrice:{locationName:"spotPrice"},Type:{locationName:"type"},State:{locationName:"state"},Fault:{shape:"S5l",locationName:"fault"},Status:{locationName:"status",type:"structure",members:{Code:{locationName:"code"},UpdateTime:{locationName:"updateTime",type:"timestamp"},Message:{locationName:"message"}}},ValidFrom:{locationName:"validFrom",type:"timestamp"},ValidUntil:{locationName:"validUntil",type:"timestamp"},LaunchGroup:{locationName:"launchGroup"},AvailabilityZoneGroup:{locationName:"availabilityZoneGroup"},LaunchSpecification:{locationName:"launchSpecification",type:"structure",members:{ImageId:{locationName:"imageId"},KeyName:{locationName:"keyName"},SecurityGroups:{shape:"S4m",locationName:"groupSet"},UserData:{locationName:"userData"},AddressingType:{locationName:"addressingType"},InstanceType:{locationName:"instanceType"},Placement:{shape:"Sf8",locationName:"placement"},KernelId:{locationName:"kernelId"},RamdiskId:{locationName:"ramdiskId"},BlockDeviceMappings:{shape:"S9w",locationName:"blockDeviceMapping"},SubnetId:{locationName:"subnetId"},NetworkInterfaces:{shape:"Sfa",locationName:"networkInterfaceSet"},IamInstanceProfile:{shape:"Sfc",locationName:"iamInstanceProfile"},EbsOptimized:{locationName:"ebsOptimized",type:"boolean"},Monitoring:{shape:"Sfn",locationName:"monitoring"}}},InstanceId:{locationName:"instanceId"},CreateTime:{locationName:"createTime",type:"timestamp"},ProductDescription:{locationName:"productDescription"},BlockDurationMinutes:{locationName:"blockDurationMinutes",type:"integer"},ActualBlockHourlyPrice:{locationName:"actualBlockHourlyPrice"},Tags:{shape:"Sa",locationName:"tagSet"},LaunchedAvailabilityZone:{locationName:"launchedAvailabilityZone"}}}},Sfn:{type:"structure",required:["Enabled"],members:{Enabled:{locationName:"enabled",type:"boolean"}}},Sg7:{type:"list",member:{locationName:"VolumeId"}},Sgr:{type:"list",member:{locationName:"VpcId"}},Sib:{type:"structure",members:{S3Bucket:{},S3Key:{}}},Sic:{type:"structure",members:{UploadStart:{type:"timestamp"},UploadEnd:{type:"timestamp"},UploadSize:{type:"double"},Comment:{}}},Sig:{type:"list",member:{locationName:"SecurityGroup"}},Sil:{type:"structure",required:["Format","Bytes","ImportManifestUrl"],members:{Format:{locationName:"format"},Bytes:{locationName:"bytes",type:"long"},ImportManifestUrl:{locationName:"importManifestUrl"}}},Sim:{type:"structure",required:["Size"],members:{Size:{locationName:"size",type:"long"}}},Six:{type:"list",member:{shape:"S39",locationName:"item"}},Sj1:{type:"list",member:{locationName:"UserId"}},Sju:{type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},Monitoring:{shape:"Sbi",locationName:"monitoring"}}}},Sl6:{type:"list",member:{locationName:"SecurityGroupId"}},Sll:{type:"list",member:{locationName:"item",type:"structure",members:{InstanceId:{locationName:"instanceId"},CurrentState:{shape:"Sb2",locationName:"currentState"},PreviousState:{shape:"Sb2",locationName:"previousState"}}}}},paginators:{DescribeAccountAttributes:{result_key:"AccountAttributes"},DescribeAddresses:{result_key:"Addresses"},DescribeAvailabilityZones:{result_key:"AvailabilityZones"},DescribeBundleTasks:{result_key:"BundleTasks"},DescribeConversionTasks:{result_key:"ConversionTasks"},DescribeCustomerGateways:{result_key:"CustomerGateways"},DescribeDhcpOptions:{result_key:"DhcpOptions"},DescribeExportTasks:{result_key:"ExportTasks"},DescribeImages:{result_key:"Images"},DescribeInstanceStatus:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"InstanceStatuses"},DescribeInstances:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"Reservations"},DescribeInternetGateways:{result_key:"InternetGateways"},DescribeKeyPairs:{result_key:"KeyPairs"},DescribeNetworkAcls:{result_key:"NetworkAcls"},DescribeNetworkInterfaces:{result_key:"NetworkInterfaces"},DescribePlacementGroups:{result_key:"PlacementGroups"},DescribeRegions:{result_key:"Regions"},DescribeReservedInstances:{result_key:"ReservedInstances"},DescribeReservedInstancesListings:{result_key:"ReservedInstancesListings"},DescribeReservedInstancesOfferings:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"ReservedInstancesOfferings"},DescribeReservedInstancesModifications:{input_token:"NextToken",output_token:"NextToken",result_key:"ReservedInstancesModifications"},DescribeRouteTables:{result_key:"RouteTables"},DescribeSecurityGroups:{result_key:"SecurityGroups"},DescribeSnapshots:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"Snapshots"},DescribeSpotInstanceRequests:{result_key:"SpotInstanceRequests"},DescribeSpotPriceHistory:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"SpotPriceHistory"},DescribeSubnets:{result_key:"Subnets"},DescribeTags:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"Tags"},DescribeVolumeStatus:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"VolumeStatuses"},DescribeVolumes:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"Volumes"},DescribeVpcs:{result_key:"Vpcs"},DescribeVpcPeeringConnections:{result_key:"VpcPeeringConnections"},DescribeVpnConnections:{result_key:"VpnConnections"},DescribeVpnGateways:{result_key:"VpnGateways"}},waiters:{__default__:{interval:15,max_attempts:40,acceptor_type:"output"},__InstanceState:{operation:"DescribeInstances",acceptor_path:"Reservations[].Instances[].State.Name"},__InstanceStatus:{operation:"DescribeInstanceStatus",success_value:"ok"},SystemStatusOk:{"extends":"__InstanceStatus",acceptor_path:"InstanceStatuses[].SystemStatus.Status"},InstanceStatusOk:{"extends":"__InstanceStatus",acceptor_path:"InstanceStatuses[].InstanceStatus.Status"},ImageAvailable:{operation:"DescribeImages",acceptor_path:"Images[].State",success_value:"available",failure_value:["failed"]},InstanceRunning:{"extends":"__InstanceState",success_value:"running",failure_value:["shutting-down","terminated","stopping"]},InstanceStopped:{"extends":"__InstanceState",success_value:"stopped",failure_value:["pending","terminated"]},InstanceTerminated:{"extends":"__InstanceState",success_value:"terminated",failure_value:["pending","stopping"]},__ExportTaskState:{operation:"DescribeExportTasks",acceptor_path:"ExportTasks[].State"},ExportTaskCompleted:{"extends":"__ExportTaskState",success_value:"completed"},ExportTaskCancelled:{"extends":"__ExportTaskState",success_value:"cancelled"},SnapshotCompleted:{operation:"DescribeSnapshots",success_path:"Snapshots[].State",success_value:"completed"},SubnetAvailable:{operation:"DescribeSubnets",success_path:"Subnets[].State",success_value:"available"},__VolumeStatus:{operation:"DescribeVolumes",acceptor_path:"Volumes[].State"},VolumeAvailable:{"extends":"__VolumeStatus",success_value:"available",failure_value:["deleted"]},VolumeInUse:{"extends":"__VolumeStatus",success_value:"in-use",failure_value:["deleted"]},VolumeDeleted:{"extends":"__VolumeStatus",success_type:"error",success_value:"InvalidVolume.NotFound"},VpcAvailable:{operation:"DescribeVpcs",success_path:"Vpcs[].State",success_value:"available"},__VpnConnectionState:{operation:"DescribeVpnConnections",acceptor_path:"VpnConnections[].State"},VpnConnectionAvailable:{"extends":"__VpnConnectionState",success_value:"available",failure_value:["deleting","deleted"]},VpnConnectionDeleted:{"extends":"__VpnConnectionState",success_value:"deleted",failure_value:["pending"]},BundleTaskComplete:{operation:"DescribeBundleTasks",acceptor_path:"BundleTasks[].State",success_value:"complete",failure_value:["failed"]},__ConversionTaskState:{operation:"DescribeConversionTasks",acceptor_path:"ConversionTasks[].State"},ConversionTaskCompleted:{"extends":"__ConversionTaskState",success_value:"completed",failure_value:["cancelled","cancelling"]},ConversionTaskCancelled:{"extends":"__ConversionTaskState",success_value:"cancelled"},__CustomerGatewayState:{operation:"DescribeCustomerGateways",acceptor_path:"CustomerGateways[].State"},CustomerGatewayAvailable:{"extends":"__CustomerGatewayState",success_value:"available",failure_value:["deleted","deleting"]},ConversionTaskDeleted:{"extends":"__CustomerGatewayState",success_value:"deleted"},__SpotInstanceRequestState:{operation:"DescribeSpotInstanceRequests",acceptor_path:"SpotInstanceRequests[].Status.Code"},SpotInstanceRequestFulfilled:{"extends":"__SpotInstanceRequestState",success_value:"fulfilled",failure_value:["schedule-expired","canceled-before-fulfillment","bad-parameters","system-error"]}}},a.apiLoader.services.elastictranscoder={},a.ElasticTranscoder=a.Service.defineService("elastictranscoder",["2012-09-25"]),a.apiLoader.services.elastictranscoder["2012-09-25"]={version:"2.0",metadata:{apiVersion:"2012-09-25",endpointPrefix:"elastictranscoder",serviceFullName:"Amazon Elastic Transcoder",signatureVersion:"v4",protocol:"rest-json"},operations:{CancelJob:{http:{method:"DELETE",requestUri:"/2012-09-25/jobs/{Id}",responseCode:202},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{}}},CreateJob:{http:{requestUri:"/2012-09-25/jobs",responseCode:201},input:{type:"structure",required:["PipelineId","Input"],members:{PipelineId:{},Input:{shape:"S5"},Output:{shape:"Sk"},Outputs:{type:"list",member:{shape:"Sk"}},OutputKeyPrefix:{},Playlists:{type:"list",member:{type:"structure",members:{Name:{},Format:{},OutputKeys:{shape:"S1i"},HlsContentProtection:{shape:"S1j"},PlayReadyDrm:{shape:"S1n"}}}},UserMetadata:{shape:"S1s"}}},output:{type:"structure",members:{Job:{shape:"S1v"}}}},CreatePipeline:{http:{requestUri:"/2012-09-25/pipelines",responseCode:201},input:{type:"structure",required:["Name","InputBucket","Role"],members:{Name:{},InputBucket:{},OutputBucket:{},Role:{},AwsKmsKeyArn:{},Notifications:{shape:"S27"},ContentConfig:{shape:"S29"},ThumbnailConfig:{shape:"S29"}}},output:{type:"structure",members:{Pipeline:{shape:"S2i"},Warnings:{shape:"S2k"}}}},CreatePreset:{http:{requestUri:"/2012-09-25/presets",responseCode:201},input:{type:"structure",required:["Name","Container"],members:{Name:{},Description:{},Container:{},Video:{shape:"S2o"},Audio:{shape:"S34"},Thumbnails:{shape:"S3f"}}},output:{type:"structure",members:{Preset:{shape:"S3j"},Warning:{}}}},DeletePipeline:{http:{method:"DELETE",requestUri:"/2012-09-25/pipelines/{Id}",responseCode:202},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{}}},DeletePreset:{http:{method:"DELETE",requestUri:"/2012-09-25/presets/{Id}",responseCode:202},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{}}},ListJobsByPipeline:{http:{method:"GET",requestUri:"/2012-09-25/jobsByPipeline/{PipelineId}"},input:{type:"structure",required:["PipelineId"],members:{PipelineId:{location:"uri",locationName:"PipelineId"},Ascending:{location:"querystring",locationName:"Ascending"},PageToken:{location:"querystring",locationName:"PageToken"}}},output:{type:"structure",members:{Jobs:{shape:"S3s"},NextPageToken:{}}}},ListJobsByStatus:{http:{method:"GET",requestUri:"/2012-09-25/jobsByStatus/{Status}"},input:{type:"structure",required:["Status"],members:{Status:{location:"uri",locationName:"Status"},Ascending:{location:"querystring",locationName:"Ascending"},PageToken:{location:"querystring",locationName:"PageToken"}}},output:{type:"structure",members:{Jobs:{shape:"S3s"},NextPageToken:{}}}},ListPipelines:{http:{method:"GET",requestUri:"/2012-09-25/pipelines"},input:{type:"structure",members:{Ascending:{location:"querystring",locationName:"Ascending"},PageToken:{location:"querystring",locationName:"PageToken"}}},output:{type:"structure",members:{Pipelines:{type:"list",member:{shape:"S2i"}},NextPageToken:{}}}},ListPresets:{http:{method:"GET",requestUri:"/2012-09-25/presets"},input:{type:"structure",members:{Ascending:{location:"querystring",locationName:"Ascending"},PageToken:{location:"querystring",locationName:"PageToken"}}},output:{type:"structure",members:{Presets:{type:"list",member:{shape:"S3j"}},NextPageToken:{}}}},ReadJob:{http:{method:"GET",requestUri:"/2012-09-25/jobs/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{Job:{shape:"S1v"}}}},ReadPipeline:{http:{method:"GET",requestUri:"/2012-09-25/pipelines/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{Pipeline:{shape:"S2i"},Warnings:{shape:"S2k"}}}},ReadPreset:{http:{method:"GET",requestUri:"/2012-09-25/presets/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{Preset:{shape:"S3j"}}}},TestRole:{http:{requestUri:"/2012-09-25/roleTests",responseCode:200},input:{type:"structure",required:["Role","InputBucket","OutputBucket","Topics"],members:{Role:{},InputBucket:{},OutputBucket:{},Topics:{type:"list",member:{}}}},output:{type:"structure",members:{Success:{},Messages:{type:"list",member:{}}}}},UpdatePipeline:{http:{method:"PUT",requestUri:"/2012-09-25/pipelines/{Id}",responseCode:200},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},Name:{},InputBucket:{},Role:{},AwsKmsKeyArn:{},Notifications:{shape:"S27"},ContentConfig:{shape:"S29"},ThumbnailConfig:{shape:"S29"}}},output:{type:"structure",members:{Pipeline:{shape:"S2i"},Warnings:{shape:"S2k"}}}},UpdatePipelineNotifications:{http:{requestUri:"/2012-09-25/pipelines/{Id}/notifications"},input:{type:"structure",required:["Id","Notifications"],members:{Id:{location:"uri",locationName:"Id"},Notifications:{shape:"S27"}}},output:{type:"structure",members:{Pipeline:{shape:"S2i"}}}},UpdatePipelineStatus:{http:{requestUri:"/2012-09-25/pipelines/{Id}/status"},input:{type:"structure",required:["Id","Status"],members:{Id:{location:"uri",locationName:"Id"},Status:{}}},output:{type:"structure",members:{Pipeline:{shape:"S2i"}}}}},shapes:{S5:{type:"structure",members:{Key:{},FrameRate:{},Resolution:{},AspectRatio:{},Interlaced:{},Container:{},Encryption:{shape:"Sc"},DetectedProperties:{type:"structure",members:{Width:{type:"integer"},Height:{type:"integer"},FrameRate:{},FileSize:{type:"long"},DurationMillis:{type:"long"}}}}},Sc:{type:"structure",members:{Mode:{},Key:{},KeyMd5:{},InitializationVector:{}}},Sk:{type:"structure",members:{Key:{},ThumbnailPattern:{},ThumbnailEncryption:{shape:"Sc"},Rotate:{},PresetId:{},SegmentDuration:{},Watermarks:{shape:"Sn"},AlbumArt:{shape:"Sr"},Composition:{shape:"Sz"},Captions:{shape:"S13"},Encryption:{shape:"Sc"}}},Sn:{type:"list",member:{type:"structure",members:{PresetWatermarkId:{},InputKey:{},Encryption:{shape:"Sc"}}}},Sr:{type:"structure",members:{MergePolicy:{},Artwork:{type:"list",member:{type:"structure",members:{InputKey:{},MaxWidth:{},MaxHeight:{},SizingPolicy:{},PaddingPolicy:{},AlbumArtFormat:{},Encryption:{shape:"Sc"}}}}}},Sz:{type:"list",member:{type:"structure",members:{TimeSpan:{type:"structure",members:{StartTime:{},Duration:{}}}}}},S13:{type:"structure",members:{MergePolicy:{},CaptionSources:{type:"list",member:{type:"structure",members:{Key:{},Language:{},TimeOffset:{},Label:{},Encryption:{shape:"Sc"}}}},CaptionFormats:{type:"list",member:{type:"structure",members:{Format:{},Pattern:{},Encryption:{shape:"Sc"}}}}}},S1i:{type:"list",member:{}},S1j:{type:"structure",members:{Method:{},Key:{},KeyMd5:{},InitializationVector:{},LicenseAcquisitionUrl:{},KeyStoragePolicy:{}}},S1n:{type:"structure",members:{Format:{},Key:{},KeyMd5:{},KeyId:{},InitializationVector:{},LicenseAcquisitionUrl:{}}},S1s:{type:"map",key:{},value:{}},S1v:{type:"structure",members:{Id:{},Arn:{},PipelineId:{},Input:{shape:"S5"},Output:{shape:"S1w"},Outputs:{type:"list",member:{shape:"S1w"}},OutputKeyPrefix:{},Playlists:{type:"list",member:{type:"structure",members:{Name:{},Format:{},OutputKeys:{shape:"S1i"},HlsContentProtection:{shape:"S1j"},PlayReadyDrm:{shape:"S1n"},Status:{},StatusDetail:{}}}},Status:{},UserMetadata:{shape:"S1s"},Timing:{type:"structure",members:{SubmitTimeMillis:{type:"long"},StartTimeMillis:{type:"long"},FinishTimeMillis:{type:"long"}}}}},S1w:{type:"structure",members:{Id:{},Key:{},ThumbnailPattern:{},ThumbnailEncryption:{shape:"Sc"},Rotate:{},PresetId:{},SegmentDuration:{},Status:{},StatusDetail:{},Duration:{type:"long"},Width:{type:"integer"},Height:{type:"integer"},FrameRate:{},FileSize:{type:"long"},DurationMillis:{type:"long"},Watermarks:{shape:"Sn"},AlbumArt:{shape:"Sr"},Composition:{shape:"Sz"},Captions:{shape:"S13"},Encryption:{shape:"Sc"},AppliedColorSpaceConversion:{}}},S27:{type:"structure",members:{Progressing:{},Completed:{},Warning:{},Error:{}}},S29:{type:"structure",members:{Bucket:{},StorageClass:{},Permissions:{type:"list",member:{type:"structure",members:{GranteeType:{},Grantee:{},Access:{type:"list",member:{}}}}}}},S2i:{type:"structure",members:{Id:{},Arn:{},Name:{},Status:{},InputBucket:{},OutputBucket:{},Role:{},AwsKmsKeyArn:{},Notifications:{shape:"S27"},ContentConfig:{shape:"S29"},ThumbnailConfig:{shape:"S29"}}},S2k:{type:"list",member:{type:"structure",members:{Code:{},Message:{}}}},S2o:{type:"structure",members:{Codec:{},CodecOptions:{type:"map",key:{},value:{}},KeyframesMaxDist:{},FixedGOP:{},BitRate:{},FrameRate:{},MaxFrameRate:{},Resolution:{},AspectRatio:{},MaxWidth:{},MaxHeight:{},DisplayAspectRatio:{},SizingPolicy:{},PaddingPolicy:{},Watermarks:{type:"list",member:{type:"structure",members:{Id:{},MaxWidth:{},MaxHeight:{},SizingPolicy:{},HorizontalAlign:{},HorizontalOffset:{},VerticalAlign:{},VerticalOffset:{},Opacity:{},Target:{}}}}}},S34:{type:"structure",members:{Codec:{},SampleRate:{},BitRate:{},Channels:{},AudioPackingMode:{},CodecOptions:{type:"structure",members:{Profile:{},BitDepth:{},BitOrder:{},Signed:{}}}}},S3f:{type:"structure",members:{Format:{},Interval:{},Resolution:{},AspectRatio:{},MaxWidth:{},MaxHeight:{},SizingPolicy:{},PaddingPolicy:{}}},S3j:{type:"structure",members:{Id:{},Arn:{},Name:{},Description:{},Container:{},Audio:{shape:"S34"},Video:{shape:"S2o"},Thumbnails:{shape:"S3f"},Type:{}}},S3s:{type:"list",member:{shape:"S1v"}}},paginators:{ListJobsByPipeline:{input_token:"PageToken",output_token:"NextPageToken",result_key:"Jobs"},ListJobsByStatus:{input_token:"PageToken",output_token:"NextPageToken",result_key:"Jobs"},ListPipelines:{input_token:"PageToken",output_token:"NextPageToken",result_key:"Pipelines"},ListPresets:{input_token:"PageToken",output_token:"NextPageToken",result_key:"Presets"}},waiters:{JobComplete:{operation:"ReadJob",success_type:"output",success_path:"Job.Status",interval:30,
|
||
max_attempts:120,success_value:"Complete",failure_value:["Canceled","Error"]}}},a.apiLoader.services.firehose={},a.Firehose=a.Service.defineService("firehose",["2015-08-04"]),a.apiLoader.services.firehose["2015-08-04"]={version:"2.0",metadata:{apiVersion:"2015-08-04",endpointPrefix:"firehose",jsonVersion:"1.1",serviceAbbreviation:"Firehose",serviceFullName:"0",signatureVersion:"v4",targetPrefix:"Firehose_20150804",protocol:"json"},operations:{CreateDeliveryStream:{input:{type:"structure",required:["DeliveryStreamName"],members:{DeliveryStreamName:{},S3DestinationConfiguration:{shape:"S3"},RedshiftDestinationConfiguration:{type:"structure",required:["RoleARN","ClusterJDBCURL","CopyCommand","Username","Password","S3Configuration"],members:{RoleARN:{},ClusterJDBCURL:{},CopyCommand:{shape:"Sh"},Username:{shape:"Sl"},Password:{shape:"Sm"},S3Configuration:{shape:"S3"}}}}},output:{type:"structure",members:{DeliveryStreamARN:{}}},http:{}},DeleteDeliveryStream:{input:{type:"structure",required:["DeliveryStreamName"],members:{DeliveryStreamName:{}}},output:{type:"structure",members:{}},http:{}},DescribeDeliveryStream:{input:{type:"structure",required:["DeliveryStreamName"],members:{DeliveryStreamName:{},Limit:{type:"integer"},ExclusiveStartDestinationId:{}}},output:{type:"structure",required:["DeliveryStreamDescription"],members:{DeliveryStreamDescription:{type:"structure",required:["DeliveryStreamName","DeliveryStreamARN","DeliveryStreamStatus","VersionId","Destinations","HasMoreDestinations"],members:{DeliveryStreamName:{},DeliveryStreamARN:{},DeliveryStreamStatus:{},VersionId:{},CreateTimestamp:{type:"timestamp"},LastUpdateTimestamp:{type:"timestamp"},Destinations:{type:"list",member:{type:"structure",required:["DestinationId"],members:{DestinationId:{},S3DestinationDescription:{shape:"S11"},RedshiftDestinationDescription:{type:"structure",required:["RoleARN","ClusterJDBCURL","CopyCommand","Username","S3DestinationDescription"],members:{RoleARN:{},ClusterJDBCURL:{},CopyCommand:{shape:"Sh"},Username:{shape:"Sl"},S3DestinationDescription:{shape:"S11"}}}}}},HasMoreDestinations:{type:"boolean"}}}}},http:{}},ListDeliveryStreams:{input:{type:"structure",members:{Limit:{type:"integer"},ExclusiveStartDeliveryStreamName:{}}},output:{type:"structure",required:["DeliveryStreamNames","HasMoreDeliveryStreams"],members:{DeliveryStreamNames:{type:"list",member:{}},HasMoreDeliveryStreams:{type:"boolean"}}},http:{}},PutRecord:{input:{type:"structure",required:["DeliveryStreamName","Record"],members:{DeliveryStreamName:{},Record:{shape:"S19"}}},output:{type:"structure",required:["RecordId"],members:{RecordId:{}}},http:{}},PutRecordBatch:{input:{type:"structure",required:["DeliveryStreamName","Records"],members:{DeliveryStreamName:{},Records:{type:"list",member:{shape:"S19"}}}},output:{type:"structure",required:["FailedPutCount","RequestResponses"],members:{FailedPutCount:{type:"integer"},RequestResponses:{type:"list",member:{type:"structure",members:{RecordId:{},ErrorCode:{},ErrorMessage:{}}}}}},http:{}},UpdateDestination:{input:{type:"structure",required:["DeliveryStreamName","CurrentDeliveryStreamVersionId","DestinationId"],members:{DeliveryStreamName:{},CurrentDeliveryStreamVersionId:{},DestinationId:{},S3DestinationUpdate:{shape:"S1m"},RedshiftDestinationUpdate:{type:"structure",members:{RoleARN:{},ClusterJDBCURL:{},CopyCommand:{shape:"Sh"},Username:{shape:"Sl"},Password:{shape:"Sm"},S3Update:{shape:"S1m"}}}}},output:{type:"structure",members:{}},http:{}}},shapes:{S3:{type:"structure",required:["RoleARN","BucketARN"],members:{RoleARN:{},BucketARN:{},Prefix:{},BufferingHints:{shape:"S7"},CompressionFormat:{},EncryptionConfiguration:{shape:"Sb"}}},S7:{type:"structure",members:{SizeInMBs:{type:"integer"},IntervalInSeconds:{type:"integer"}}},Sb:{type:"structure",members:{NoEncryptionConfig:{},KMSEncryptionConfig:{type:"structure",required:["AWSKMSKeyARN"],members:{AWSKMSKeyARN:{}}}}},Sh:{type:"structure",required:["DataTableName"],members:{DataTableName:{},DataTableColumns:{},CopyOptions:{}}},Sl:{type:"string",sensitive:!0},Sm:{type:"string",sensitive:!0},S11:{type:"structure",required:["RoleARN","BucketARN","BufferingHints","CompressionFormat","EncryptionConfiguration"],members:{RoleARN:{},BucketARN:{},Prefix:{},BufferingHints:{shape:"S7"},CompressionFormat:{},EncryptionConfiguration:{shape:"Sb"}}},S19:{type:"structure",required:["Data"],members:{Data:{type:"blob"}}},S1m:{type:"structure",members:{RoleARN:{},BucketARN:{},Prefix:{},BufferingHints:{shape:"S7"},CompressionFormat:{},EncryptionConfiguration:{shape:"Sb"}}}},examples:{}},a.apiLoader.services.inspector={},a.Inspector=a.Service.defineService("inspector",["2015-08-18"]),a.apiLoader.services.inspector["2015-08-18"]={version:"2.0",metadata:{apiVersion:"2015-08-18",endpointPrefix:"inspector",jsonVersion:"1.1",serviceFullName:"Amazon Inspector",signatureVersion:"v4",targetPrefix:"InspectorService",protocol:"json"},operations:{AddAttributesToFindings:{input:{type:"structure",members:{findingArns:{shape:"S2"},attributes:{shape:"S4"}}},output:{type:"structure",members:{message:{}}},http:{}},AttachAssessmentAndRulesPackage:{input:{type:"structure",members:{assessmentArn:{},rulesPackageArn:{}}},output:{type:"structure",members:{message:{}}},http:{}},CreateApplication:{input:{type:"structure",members:{applicationName:{},resourceGroupArn:{}}},output:{type:"structure",members:{applicationArn:{}}},http:{}},CreateAssessment:{input:{type:"structure",members:{applicationArn:{},assessmentName:{},durationInSeconds:{type:"integer"},userAttributesForFindings:{shape:"S4"}}},output:{type:"structure",members:{assessmentArn:{}}},http:{}},CreateResourceGroup:{input:{type:"structure",members:{resourceGroupTags:{}}},output:{type:"structure",members:{resourceGroupArn:{}}},http:{}},DeleteApplication:{input:{type:"structure",members:{applicationArn:{}}},output:{type:"structure",members:{message:{}}},http:{}},DeleteAssessment:{input:{type:"structure",members:{assessmentArn:{}}},output:{type:"structure",members:{message:{}}},http:{}},DeleteRun:{input:{type:"structure",members:{runArn:{}}},output:{type:"structure",members:{message:{}}},http:{}},DescribeApplication:{input:{type:"structure",members:{applicationArn:{}}},output:{type:"structure",members:{application:{type:"structure",members:{applicationArn:{},applicationName:{},resourceGroupArn:{}}}}},http:{}},DescribeAssessment:{input:{type:"structure",members:{assessmentArn:{}}},output:{type:"structure",members:{assessment:{type:"structure",members:{assessmentArn:{},assessmentName:{},applicationArn:{},assessmentState:{},failureMessage:{},dataCollected:{type:"boolean"},startTime:{type:"timestamp"},endTime:{type:"timestamp"},durationInSeconds:{type:"integer"},userAttributesForFindings:{shape:"S4"}}}}},http:{}},DescribeCrossAccountAccessRole:{output:{type:"structure",members:{roleArn:{},valid:{type:"boolean"}}},http:{}},DescribeFinding:{input:{type:"structure",members:{findingArn:{}}},output:{type:"structure",members:{finding:{type:"structure",members:{findingArn:{},runArn:{},rulesPackageArn:{},ruleName:{},agentId:{},autoScalingGroup:{},severity:{},finding:{shape:"S18"},description:{shape:"S18"},recommendation:{shape:"S18"},attributes:{shape:"S4"},userAttributes:{shape:"S4"}}}}},http:{}},DescribeResourceGroup:{input:{type:"structure",members:{resourceGroupArn:{}}},output:{type:"structure",members:{resourceGroup:{type:"structure",members:{resourceGroupArn:{},resourceGroupTags:{}}}}},http:{}},DescribeRulesPackage:{input:{type:"structure",members:{rulesPackageArn:{}}},output:{type:"structure",members:{rulesPackage:{type:"structure",members:{rulesPackageArn:{},rulesPackageName:{},version:{},provider:{},description:{shape:"S18"}}}}},http:{}},DescribeRun:{input:{type:"structure",members:{runArn:{}}},output:{type:"structure",members:{run:{type:"structure",members:{runArn:{},runName:{},assessmentArn:{},runState:{},rulesPackages:{shape:"S2"},creationTime:{type:"timestamp"},completionTime:{type:"timestamp"}}}}},http:{}},DetachAssessmentAndRulesPackage:{input:{type:"structure",members:{assessmentArn:{},rulesPackageArn:{}}},output:{type:"structure",members:{message:{}}},http:{}},GetAssessmentTelemetry:{input:{type:"structure",members:{assessmentArn:{}}},output:{type:"structure",members:{telemetry:{shape:"S1v"}}},http:{}},ListApplications:{input:{type:"structure",members:{filter:{type:"structure",members:{applicationNamePatterns:{shape:"S24"}}},nextToken:{},maxResults:{type:"integer"}}},output:{type:"structure",members:{applicationArnList:{shape:"S2"},nextToken:{}}},http:{}},ListAssessmentAgents:{input:{type:"structure",members:{assessmentArn:{},filter:{type:"structure",members:{agentHealthList:{type:"list",member:{}}}},nextToken:{},maxResults:{type:"integer"}}},output:{type:"structure",members:{agentList:{type:"list",member:{type:"structure",members:{agentId:{},assessmentArn:{},agentHealth:{},agentHealthCode:{},agentHealthDetails:{},autoScalingGroup:{},accountId:{},telemetry:{shape:"S1v"}}}},nextToken:{}}},http:{}},ListAssessments:{input:{type:"structure",members:{applicationArns:{shape:"S2"},filter:{shape:"S2k"},nextToken:{},maxResults:{type:"integer"}}},output:{type:"structure",members:{assessmentArnList:{shape:"S2"},nextToken:{}}},http:{}},ListAttachedAssessments:{input:{type:"structure",members:{rulesPackageArn:{},filter:{shape:"S2k"},nextToken:{},maxResults:{type:"integer"}}},output:{type:"structure",members:{assessmentArnList:{shape:"S2"},nextToken:{}}},http:{}},ListAttachedRulesPackages:{input:{type:"structure",members:{assessmentArn:{},nextToken:{},maxResults:{type:"integer"}}},output:{type:"structure",members:{rulesPackageArnList:{shape:"S2"},nextToken:{}}},http:{}},ListFindings:{input:{type:"structure",members:{runArns:{shape:"S2"},filter:{type:"structure",members:{rulesPackageArns:{shape:"S2"},ruleNames:{type:"list",member:{}},severities:{type:"list",member:{}},attributes:{shape:"S4"},userAttributes:{shape:"S4"}}},nextToken:{},maxResults:{type:"integer"}}},output:{type:"structure",members:{findingArnList:{shape:"S2"},nextToken:{}}},http:{}},ListRulesPackages:{input:{type:"structure",members:{nextToken:{},maxResults:{type:"integer"}}},output:{type:"structure",members:{rulesPackageArnList:{shape:"S2"},nextToken:{}}},http:{}},ListRuns:{input:{type:"structure",members:{assessmentArns:{shape:"S2"},filter:{type:"structure",members:{runNamePatterns:{shape:"S24"},runStates:{type:"list",member:{}},rulesPackages:{shape:"S2"},creationTime:{shape:"S2m"},completionTime:{shape:"S2m"}}},nextToken:{},maxResults:{type:"integer"}}},output:{type:"structure",members:{runArnList:{shape:"S2"},nextToken:{}}},http:{}},ListTagsForResource:{input:{type:"structure",members:{resourceArn:{}}},output:{type:"structure",members:{tagList:{shape:"S36"}}},http:{}},LocalizeText:{input:{type:"structure",members:{localizedTexts:{type:"list",member:{shape:"S18"}},locale:{}}},output:{type:"structure",members:{message:{},results:{type:"list",member:{}}}},http:{}},PreviewAgentsForResourceGroup:{input:{type:"structure",members:{resourceGroupArn:{},nextToken:{},maxResults:{type:"integer"}}},output:{type:"structure",members:{agentPreviewList:{type:"list",member:{type:"structure",members:{agentId:{},autoScalingGroup:{}}}},nextToken:{}}},http:{}},RegisterCrossAccountAccessRole:{input:{type:"structure",members:{roleArn:{}}},output:{type:"structure",members:{message:{}}},http:{}},RemoveAttributesFromFindings:{input:{type:"structure",members:{findingArns:{shape:"S2"},attributeKeys:{type:"list",member:{}}}},output:{type:"structure",members:{message:{}}},http:{}},RunAssessment:{input:{type:"structure",members:{assessmentArn:{},runName:{}}},output:{type:"structure",members:{runArn:{}}},http:{}},SetTagsForResource:{input:{type:"structure",members:{resourceArn:{},tags:{shape:"S36"}}},output:{type:"structure",members:{message:{}}},http:{}},StartDataCollection:{input:{type:"structure",members:{assessmentArn:{}}},output:{type:"structure",members:{message:{}}},http:{}},StopDataCollection:{input:{type:"structure",members:{assessmentArn:{}}},output:{type:"structure",members:{message:{}}},http:{}},UpdateApplication:{input:{type:"structure",members:{applicationArn:{},applicationName:{},resourceGroupArn:{}}},output:{type:"structure",members:{message:{}}},http:{}},UpdateAssessment:{input:{type:"structure",members:{assessmentArn:{},assessmentName:{},durationInSeconds:{type:"integer"}}},output:{type:"structure",members:{message:{}}},http:{}}},shapes:{S2:{type:"list",member:{}},S4:{type:"list",member:{type:"structure",members:{key:{},value:{}}}},S18:{type:"structure",members:{key:{type:"structure",members:{facility:{},id:{}}},parameters:{type:"list",member:{type:"structure",members:{name:{},value:{}}}}}},S1v:{type:"list",member:{type:"structure",members:{status:{},messageTypeTelemetries:{type:"list",member:{type:"structure",members:{messageType:{},count:{type:"long"},dataSize:{type:"long"}}}}}}},S24:{type:"list",member:{}},S2k:{type:"structure",members:{assessmentNamePatterns:{shape:"S24"},assessmentStates:{type:"list",member:{}},dataCollected:{type:"boolean"},startTimeRange:{shape:"S2m"},endTimeRange:{shape:"S2m"},durationRange:{type:"structure",members:{minimum:{type:"integer"},maximum:{type:"integer"}}}}},S2m:{type:"structure",members:{minimum:{type:"timestamp"},maximum:{type:"timestamp"}}},S36:{type:"list",member:{type:"structure",members:{Key:{},Value:{}}}}},examples:{}},a.apiLoader.services.kinesis={},a.Kinesis=a.Service.defineService("kinesis",["2013-12-02"]),a.apiLoader.services.kinesis["2013-12-02"]={version:"2.0",metadata:{apiVersion:"2013-12-02",endpointPrefix:"kinesis",jsonVersion:"1.1",serviceAbbreviation:"Kinesis",serviceFullName:"Amazon Kinesis",signatureVersion:"v4",targetPrefix:"Kinesis_20131202",protocol:"json"},operations:{AddTagsToStream:{input:{type:"structure",required:["StreamName","Tags"],members:{StreamName:{},Tags:{type:"map",key:{},value:{}}}},http:{}},CreateStream:{input:{type:"structure",required:["StreamName","ShardCount"],members:{StreamName:{},ShardCount:{type:"integer"}}},http:{}},DecreaseStreamRetentionPeriod:{input:{type:"structure",required:["StreamName","RetentionPeriodHours"],members:{StreamName:{},RetentionPeriodHours:{type:"integer"}}},http:{}},DeleteStream:{input:{type:"structure",required:["StreamName"],members:{StreamName:{}}},http:{}},DescribeStream:{input:{type:"structure",required:["StreamName"],members:{StreamName:{},Limit:{type:"integer"},ExclusiveStartShardId:{}}},output:{type:"structure",required:["StreamDescription"],members:{StreamDescription:{type:"structure",required:["StreamName","StreamARN","StreamStatus","Shards","HasMoreShards","RetentionPeriodHours"],members:{StreamName:{},StreamARN:{},StreamStatus:{},Shards:{type:"list",member:{type:"structure",required:["ShardId","HashKeyRange","SequenceNumberRange"],members:{ShardId:{},ParentShardId:{},AdjacentParentShardId:{},HashKeyRange:{type:"structure",required:["StartingHashKey","EndingHashKey"],members:{StartingHashKey:{},EndingHashKey:{}}},SequenceNumberRange:{type:"structure",required:["StartingSequenceNumber"],members:{StartingSequenceNumber:{},EndingSequenceNumber:{}}}}}},HasMoreShards:{type:"boolean"},RetentionPeriodHours:{type:"integer"}}}}},http:{}},GetRecords:{input:{type:"structure",required:["ShardIterator"],members:{ShardIterator:{},Limit:{type:"integer"}}},output:{type:"structure",required:["Records"],members:{Records:{type:"list",member:{type:"structure",required:["SequenceNumber","Data","PartitionKey"],members:{SequenceNumber:{},ApproximateArrivalTimestamp:{type:"timestamp"},Data:{type:"blob"},PartitionKey:{}}}},NextShardIterator:{},MillisBehindLatest:{type:"long"}}},http:{}},GetShardIterator:{input:{type:"structure",required:["StreamName","ShardId","ShardIteratorType"],members:{StreamName:{},ShardId:{},ShardIteratorType:{},StartingSequenceNumber:{}}},output:{type:"structure",members:{ShardIterator:{}}},http:{}},IncreaseStreamRetentionPeriod:{input:{type:"structure",required:["StreamName","RetentionPeriodHours"],members:{StreamName:{},RetentionPeriodHours:{type:"integer"}}},http:{}},ListStreams:{input:{type:"structure",members:{Limit:{type:"integer"},ExclusiveStartStreamName:{}}},output:{type:"structure",required:["StreamNames","HasMoreStreams"],members:{StreamNames:{type:"list",member:{}},HasMoreStreams:{type:"boolean"}}},http:{}},ListTagsForStream:{input:{type:"structure",required:["StreamName"],members:{StreamName:{},ExclusiveStartTagKey:{},Limit:{type:"integer"}}},output:{type:"structure",required:["Tags","HasMoreTags"],members:{Tags:{type:"list",member:{type:"structure",required:["Key"],members:{Key:{},Value:{}}}},HasMoreTags:{type:"boolean"}}},http:{}},MergeShards:{input:{type:"structure",required:["StreamName","ShardToMerge","AdjacentShardToMerge"],members:{StreamName:{},ShardToMerge:{},AdjacentShardToMerge:{}}},http:{}},PutRecord:{input:{type:"structure",required:["StreamName","Data","PartitionKey"],members:{StreamName:{},Data:{type:"blob"},PartitionKey:{},ExplicitHashKey:{},SequenceNumberForOrdering:{}}},output:{type:"structure",required:["ShardId","SequenceNumber"],members:{ShardId:{},SequenceNumber:{}}},http:{}},PutRecords:{input:{type:"structure",required:["Records","StreamName"],members:{Records:{type:"list",member:{type:"structure",required:["Data","PartitionKey"],members:{Data:{type:"blob"},ExplicitHashKey:{},PartitionKey:{}}}},StreamName:{}}},output:{type:"structure",required:["Records"],members:{FailedRecordCount:{type:"integer"},Records:{type:"list",member:{type:"structure",members:{SequenceNumber:{},ShardId:{},ErrorCode:{},ErrorMessage:{}}}}}},http:{}},RemoveTagsFromStream:{input:{type:"structure",required:["StreamName","TagKeys"],members:{StreamName:{},TagKeys:{type:"list",member:{}}}},http:{}},SplitShard:{input:{type:"structure",required:["StreamName","ShardToSplit","NewStartingHashKey"],members:{StreamName:{},ShardToSplit:{},NewStartingHashKey:{}}},http:{}}},shapes:{},examples:{},paginators:{DescribeStream:{input_token:"ExclusiveStartShardId",limit_key:"Limit",more_results:"StreamDescription.HasMoreShards",output_token:"StreamDescription.Shards[-1].ShardId",result_key:"StreamDescription.Shards"},ListStreams:{input_token:"ExclusiveStartStreamName",limit_key:"Limit",more_results:"HasMoreStreams",output_token:"StreamNames[-1]",result_key:"StreamNames"}}},a.apiLoader.services.kms={},a.KMS=a.Service.defineService("kms",["2014-11-01"]),a.apiLoader.services.kms["2014-11-01"]={version:"2.0",metadata:{apiVersion:"2014-11-01",endpointPrefix:"kms",jsonVersion:"1.1",serviceAbbreviation:"KMS",serviceFullName:"AWS Key Management Service",signatureVersion:"v4",targetPrefix:"TrentService",protocol:"json"},operations:{CancelKeyDeletion:{input:{type:"structure",required:["KeyId"],members:{KeyId:{}}},output:{type:"structure",members:{KeyId:{}}},http:{}},CreateAlias:{input:{type:"structure",required:["AliasName","TargetKeyId"],members:{AliasName:{},TargetKeyId:{}}},http:{}},CreateGrant:{input:{type:"structure",required:["KeyId","GranteePrincipal"],members:{KeyId:{},GranteePrincipal:{},RetiringPrincipal:{},Operations:{shape:"S8"},Constraints:{shape:"Sa"},GrantTokens:{shape:"Se"},Name:{}}},output:{type:"structure",members:{GrantToken:{},GrantId:{}}},http:{}},CreateKey:{input:{type:"structure",members:{Policy:{},Description:{},KeyUsage:{}}},output:{type:"structure",members:{KeyMetadata:{shape:"So"}}},http:{}},Decrypt:{input:{type:"structure",required:["CiphertextBlob"],members:{CiphertextBlob:{type:"blob"},EncryptionContext:{shape:"Sb"},GrantTokens:{shape:"Se"}}},output:{type:"structure",members:{KeyId:{},Plaintext:{shape:"Sx"}}},http:{}},DeleteAlias:{input:{type:"structure",required:["AliasName"],members:{AliasName:{}}},http:{}},DescribeKey:{input:{type:"structure",required:["KeyId"],members:{KeyId:{},GrantTokens:{shape:"Se"}}},output:{type:"structure",members:{KeyMetadata:{shape:"So"}}},http:{}},DisableKey:{input:{type:"structure",required:["KeyId"],members:{KeyId:{}}},http:{}},DisableKeyRotation:{input:{type:"structure",required:["KeyId"],members:{KeyId:{}}},http:{}},EnableKey:{input:{type:"structure",required:["KeyId"],members:{KeyId:{}}},http:{}},EnableKeyRotation:{input:{type:"structure",required:["KeyId"],members:{KeyId:{}}},http:{}},Encrypt:{input:{type:"structure",required:["KeyId","Plaintext"],members:{KeyId:{},Plaintext:{shape:"Sx"},EncryptionContext:{shape:"Sb"},GrantTokens:{shape:"Se"}}},output:{type:"structure",members:{CiphertextBlob:{type:"blob"},KeyId:{}}},http:{}},GenerateDataKey:{input:{type:"structure",required:["KeyId"],members:{KeyId:{},EncryptionContext:{shape:"Sb"},NumberOfBytes:{type:"integer"},KeySpec:{},GrantTokens:{shape:"Se"}}},output:{type:"structure",members:{CiphertextBlob:{type:"blob"},Plaintext:{shape:"Sx"},KeyId:{}}},http:{}},GenerateDataKeyWithoutPlaintext:{input:{type:"structure",required:["KeyId"],members:{KeyId:{},EncryptionContext:{shape:"Sb"},KeySpec:{},NumberOfBytes:{type:"integer"},GrantTokens:{shape:"Se"}}},output:{type:"structure",members:{CiphertextBlob:{type:"blob"},KeyId:{}}},http:{}},GenerateRandom:{input:{type:"structure",members:{NumberOfBytes:{type:"integer"}}},output:{type:"structure",members:{Plaintext:{shape:"Sx"}}},http:{}},GetKeyPolicy:{input:{type:"structure",required:["KeyId","PolicyName"],members:{KeyId:{},PolicyName:{}}},output:{type:"structure",members:{Policy:{}}},http:{}},GetKeyRotationStatus:{input:{type:"structure",required:["KeyId"],members:{KeyId:{}}},output:{type:"structure",members:{KeyRotationEnabled:{type:"boolean"}}},http:{}},ListAliases:{input:{type:"structure",members:{Limit:{type:"integer"},Marker:{}}},output:{type:"structure",members:{Aliases:{type:"list",member:{type:"structure",members:{AliasName:{},AliasArn:{},TargetKeyId:{}}}},NextMarker:{},Truncated:{type:"boolean"}}},http:{}},ListGrants:{input:{type:"structure",required:["KeyId"],members:{Limit:{type:"integer"},Marker:{},KeyId:{}}},output:{shape:"S1r"},http:{}},ListKeyPolicies:{input:{type:"structure",required:["KeyId"],members:{KeyId:{},Limit:{type:"integer"},Marker:{}}},output:{type:"structure",members:{PolicyNames:{type:"list",member:{}},NextMarker:{},Truncated:{type:"boolean"}}},http:{}},ListKeys:{input:{type:"structure",members:{Limit:{type:"integer"},Marker:{}}},output:{type:"structure",members:{Keys:{type:"list",member:{type:"structure",members:{KeyId:{},KeyArn:{}}}},NextMarker:{},Truncated:{type:"boolean"}}},http:{}},ListRetirableGrants:{input:{type:"structure",required:["RetiringPrincipal"],members:{Limit:{type:"integer"},Marker:{},RetiringPrincipal:{}}},output:{shape:"S1r"},http:{}},PutKeyPolicy:{input:{type:"structure",required:["KeyId","PolicyName","Policy"],members:{KeyId:{},PolicyName:{},Policy:{}}},http:{}},ReEncrypt:{input:{type:"structure",required:["CiphertextBlob","DestinationKeyId"],members:{CiphertextBlob:{type:"blob"},SourceEncryptionContext:{shape:"Sb"},DestinationKeyId:{},DestinationEncryptionContext:{shape:"Sb"},GrantTokens:{shape:"Se"}}},output:{type:"structure",members:{CiphertextBlob:{type:"blob"},SourceKeyId:{},KeyId:{}}},http:{}},RetireGrant:{input:{type:"structure",members:{GrantToken:{},KeyId:{},GrantId:{}}},http:{}},RevokeGrant:{input:{type:"structure",required:["KeyId","GrantId"],members:{KeyId:{},GrantId:{}}},http:{}},ScheduleKeyDeletion:{input:{type:"structure",required:["KeyId"],members:{KeyId:{},PendingWindowInDays:{type:"integer"}}},output:{type:"structure",members:{KeyId:{},DeletionDate:{type:"timestamp"}}},http:{}},UpdateAlias:{input:{type:"structure",required:["AliasName","TargetKeyId"],members:{AliasName:{},TargetKeyId:{}}},http:{}},UpdateKeyDescription:{input:{type:"structure",required:["KeyId","Description"],members:{KeyId:{},Description:{}}},http:{}}},shapes:{S8:{type:"list",member:{}},Sa:{type:"structure",members:{EncryptionContextSubset:{shape:"Sb"},EncryptionContextEquals:{shape:"Sb"}}},Sb:{type:"map",key:{},value:{}},Se:{type:"list",member:{}},So:{type:"structure",required:["KeyId"],members:{AWSAccountId:{},KeyId:{},Arn:{},CreationDate:{type:"timestamp"},Enabled:{type:"boolean"},Description:{},KeyUsage:{},KeyState:{},DeletionDate:{type:"timestamp"}}},Sx:{type:"blob",sensitive:!0},S1r:{type:"structure",members:{Grants:{type:"list",member:{type:"structure",members:{KeyId:{},GrantId:{},Name:{},CreationDate:{type:"timestamp"},GranteePrincipal:{},RetiringPrincipal:{},IssuingAccount:{},Operations:{shape:"S8"},Constraints:{shape:"Sa"}}}},NextMarker:{},Truncated:{type:"boolean"}}}},examples:{},paginators:{ListAliases:{limit_key:"Limit",input_token:"Marker",output_token:"NextMarker",more_results:"Truncated",result_key:"Aliases"},ListGrants:{limit_key:"Limit",input_token:"Marker",output_token:"NextMarker",more_results:"Truncated",result_key:"Grants"},ListKeyPolicies:{limit_key:"Limit",input_token:"Marker",output_token:"NextMarker",more_results:"Truncated",result_key:"PolicyNames"},ListKeys:{limit_key:"Limit",input_token:"Marker",output_token:"NextMarker",more_results:"Truncated",result_key:"Keys"}}},a.apiLoader.services.lambda={},a.Lambda=a.Service.defineService("lambda",["2014-11-11","2015-03-31"]),a.apiLoader.services.lambda["2015-03-31"]={version:"2.0",metadata:{apiVersion:"2015-03-31",endpointPrefix:"lambda",protocol:"rest-json",serviceFullName:"AWS Lambda",signatureVersion:"v4"},operations:{AddPermission:{http:{requestUri:"/2015-03-31/functions/{FunctionName}/policy",responseCode:201},input:{type:"structure",required:["FunctionName","StatementId","Action","Principal"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},StatementId:{},Action:{},Principal:{},SourceArn:{},SourceAccount:{},Qualifier:{location:"querystring",locationName:"Qualifier"}}},output:{type:"structure",members:{Statement:{}}}},CreateAlias:{http:{requestUri:"/2015-03-31/functions/{FunctionName}/aliases",responseCode:201},input:{type:"structure",required:["FunctionName","Name","FunctionVersion"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Name:{},FunctionVersion:{},Description:{}}},output:{shape:"Sf"}},CreateEventSourceMapping:{http:{requestUri:"/2015-03-31/event-source-mappings/",responseCode:202},input:{type:"structure",required:["EventSourceArn","FunctionName","StartingPosition"],members:{EventSourceArn:{},FunctionName:{},Enabled:{type:"boolean"},BatchSize:{type:"integer"},StartingPosition:{}}},output:{shape:"Sl"}},CreateFunction:{http:{requestUri:"/2015-03-31/functions",responseCode:201},input:{type:"structure",required:["FunctionName","Runtime","Role","Handler","Code"],members:{FunctionName:{},Runtime:{},Role:{},Handler:{},Code:{type:"structure",members:{ZipFile:{type:"blob"},S3Bucket:{},S3Key:{},S3ObjectVersion:{}}},Description:{},Timeout:{type:"integer"},MemorySize:{type:"integer"},Publish:{type:"boolean"},VpcConfig:{shape:"Sz"}}},output:{shape:"S14"}},DeleteAlias:{http:{method:"DELETE",requestUri:"/2015-03-31/functions/{FunctionName}/aliases/{Name}",responseCode:204},input:{type:"structure",required:["FunctionName","Name"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Name:{location:"uri",locationName:"Name"}}}},DeleteEventSourceMapping:{http:{method:"DELETE",requestUri:"/2015-03-31/event-source-mappings/{UUID}",responseCode:202},input:{type:"structure",required:["UUID"],members:{UUID:{location:"uri",locationName:"UUID"}}},output:{shape:"Sl"}},DeleteFunction:{http:{method:"DELETE",requestUri:"/2015-03-31/functions/{FunctionName}",responseCode:204},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"}}}},GetAlias:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}/aliases/{Name}",responseCode:200},input:{type:"structure",required:["FunctionName","Name"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Name:{location:"uri",locationName:"Name"}}},output:{shape:"Sf"}},GetEventSourceMapping:{http:{method:"GET",requestUri:"/2015-03-31/event-source-mappings/{UUID}",responseCode:200},input:{type:"structure",required:["UUID"],members:{UUID:{location:"uri",locationName:"UUID"}}},output:{shape:"Sl"}},GetFunction:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"}}},output:{type:"structure",members:{Configuration:{shape:"S14"},Code:{type:"structure",members:{RepositoryType:{},Location:{}}}}}},GetFunctionConfiguration:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}/configuration",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"}}},output:{shape:"S14"}},GetPolicy:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}/policy",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Qualifier:{location:"querystring",locationName:"Qualifier"}}},output:{type:"structure",members:{Policy:{}}}},Invoke:{http:{requestUri:"/2015-03-31/functions/{FunctionName}/invocations"},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},InvocationType:{location:"header",locationName:"X-Amz-Invocation-Type"},LogType:{location:"header",locationName:"X-Amz-Log-Type"},ClientContext:{location:"header",locationName:"X-Amz-Client-Context"},Payload:{type:"blob"},Qualifier:{location:"querystring",locationName:"Qualifier"}},payload:"Payload"},output:{type:"structure",members:{StatusCode:{location:"statusCode",type:"integer"},FunctionError:{location:"header",locationName:"X-Amz-Function-Error"},LogResult:{location:"header",locationName:"X-Amz-Log-Result"},Payload:{type:"blob"}},payload:"Payload"}},InvokeAsync:{http:{requestUri:"/2014-11-13/functions/{FunctionName}/invoke-async/",responseCode:202},input:{type:"structure",required:["FunctionName","InvokeArgs"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},InvokeArgs:{type:"blob",streaming:!0}},deprecated:!0,payload:"InvokeArgs"},output:{type:"structure",members:{Status:{location:"statusCode",type:"integer"}},deprecated:!0},deprecated:!0},ListAliases:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}/aliases",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},FunctionVersion:{location:"querystring",locationName:"FunctionVersion"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{NextMarker:{},Aliases:{type:"list",member:{shape:"Sf"}}}}},ListEventSourceMappings:{http:{method:"GET",requestUri:"/2015-03-31/event-source-mappings/",responseCode:200},input:{type:"structure",members:{EventSourceArn:{location:"querystring",locationName:"EventSourceArn"},FunctionName:{location:"querystring",locationName:"FunctionName"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{NextMarker:{},EventSourceMappings:{type:"list",member:{shape:"Sl"}}}}},ListFunctions:{http:{method:"GET",requestUri:"/2015-03-31/functions/",responseCode:200},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{NextMarker:{},Functions:{shape:"S22"}}}},ListVersionsByFunction:{http:{method:"GET",requestUri:"/2015-03-31/functions/{FunctionName}/versions",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Marker:{location:"querystring",locationName:"Marker"},MaxItems:{location:"querystring",
|
||
locationName:"MaxItems",type:"integer"}}},output:{type:"structure",members:{NextMarker:{},Versions:{shape:"S22"}}}},PublishVersion:{http:{requestUri:"/2015-03-31/functions/{FunctionName}/versions",responseCode:201},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},CodeSha256:{},Description:{}}},output:{shape:"S14"}},RemovePermission:{http:{method:"DELETE",requestUri:"/2015-03-31/functions/{FunctionName}/policy/{StatementId}",responseCode:204},input:{type:"structure",required:["FunctionName","StatementId"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},StatementId:{location:"uri",locationName:"StatementId"},Qualifier:{location:"querystring",locationName:"Qualifier"}}}},UpdateAlias:{http:{method:"PUT",requestUri:"/2015-03-31/functions/{FunctionName}/aliases/{Name}",responseCode:200},input:{type:"structure",required:["FunctionName","Name"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Name:{location:"uri",locationName:"Name"},FunctionVersion:{},Description:{}}},output:{shape:"Sf"}},UpdateEventSourceMapping:{http:{method:"PUT",requestUri:"/2015-03-31/event-source-mappings/{UUID}",responseCode:202},input:{type:"structure",required:["UUID"],members:{UUID:{location:"uri",locationName:"UUID"},FunctionName:{},Enabled:{type:"boolean"},BatchSize:{type:"integer"}}},output:{shape:"Sl"}},UpdateFunctionCode:{http:{method:"PUT",requestUri:"/2015-03-31/functions/{FunctionName}/code",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},ZipFile:{type:"blob"},S3Bucket:{},S3Key:{},S3ObjectVersion:{},Publish:{type:"boolean"}}},output:{shape:"S14"}},UpdateFunctionConfiguration:{http:{method:"PUT",requestUri:"/2015-03-31/functions/{FunctionName}/configuration",responseCode:200},input:{type:"structure",required:["FunctionName"],members:{FunctionName:{location:"uri",locationName:"FunctionName"},Role:{},Handler:{},Description:{},Timeout:{type:"integer"},MemorySize:{type:"integer"},VpcConfig:{shape:"Sz"}}},output:{shape:"S14"}}},shapes:{Sf:{type:"structure",members:{AliasArn:{},Name:{},FunctionVersion:{},Description:{}}},Sl:{type:"structure",members:{UUID:{},BatchSize:{type:"integer"},EventSourceArn:{},FunctionArn:{},LastModified:{type:"timestamp"},LastProcessingResult:{},State:{},StateTransitionReason:{}}},Sz:{type:"structure",members:{SubnetIds:{shape:"S10"},SecurityGroupIds:{shape:"S12"}}},S10:{type:"list",member:{}},S12:{type:"list",member:{}},S14:{type:"structure",members:{FunctionName:{},FunctionArn:{},Runtime:{},Role:{},Handler:{},CodeSize:{type:"long"},Description:{},Timeout:{type:"integer"},MemorySize:{type:"integer"},LastModified:{},CodeSha256:{},Version:{},VpcConfig:{type:"structure",members:{SubnetIds:{shape:"S10"},SecurityGroupIds:{shape:"S12"},VpcId:{}}}}},S22:{type:"list",member:{shape:"S14"}}},paginators:{ListEventSourceMappings:{input_token:"Marker",output_token:"NextMarker",limit_key:"MaxItems",result_key:"EventSourceMappings"},ListFunctions:{input_token:"Marker",output_token:"NextMarker",limit_key:"MaxItems",result_key:"Functions"}}},a.apiLoader.services.machinelearning={},a.MachineLearning=a.Service.defineService("machinelearning",["2014-12-12"]),e("./services/machinelearning"),a.apiLoader.services.machinelearning["2014-12-12"]={version:"2.0",metadata:{apiVersion:"2014-12-12",endpointPrefix:"machinelearning",jsonVersion:"1.1",serviceFullName:"Amazon Machine Learning",signatureVersion:"v4",targetPrefix:"AmazonML_20141212",protocol:"json"},operations:{CreateBatchPrediction:{input:{type:"structure",required:["BatchPredictionId","MLModelId","BatchPredictionDataSourceId","OutputUri"],members:{BatchPredictionId:{},BatchPredictionName:{},MLModelId:{},BatchPredictionDataSourceId:{},OutputUri:{}}},output:{type:"structure",members:{BatchPredictionId:{}}},http:{}},CreateDataSourceFromRDS:{input:{type:"structure",required:["DataSourceId","RDSData","RoleARN"],members:{DataSourceId:{},DataSourceName:{},RDSData:{type:"structure",required:["DatabaseInformation","SelectSqlQuery","DatabaseCredentials","S3StagingLocation","ResourceRole","ServiceRole","SubnetId","SecurityGroupIds"],members:{DatabaseInformation:{shape:"S8"},SelectSqlQuery:{},DatabaseCredentials:{type:"structure",required:["Username","Password"],members:{Username:{},Password:{}}},S3StagingLocation:{},DataRearrangement:{},DataSchema:{},DataSchemaUri:{},ResourceRole:{},ServiceRole:{},SubnetId:{},SecurityGroupIds:{type:"list",member:{}}}},RoleARN:{},ComputeStatistics:{type:"boolean"}}},output:{type:"structure",members:{DataSourceId:{}}},http:{}},CreateDataSourceFromRedshift:{input:{type:"structure",required:["DataSourceId","DataSpec","RoleARN"],members:{DataSourceId:{},DataSourceName:{},DataSpec:{type:"structure",required:["DatabaseInformation","SelectSqlQuery","DatabaseCredentials","S3StagingLocation"],members:{DatabaseInformation:{shape:"Sr"},SelectSqlQuery:{},DatabaseCredentials:{type:"structure",required:["Username","Password"],members:{Username:{},Password:{}}},S3StagingLocation:{},DataRearrangement:{},DataSchema:{},DataSchemaUri:{}}},RoleARN:{},ComputeStatistics:{type:"boolean"}}},output:{type:"structure",members:{DataSourceId:{}}},http:{}},CreateDataSourceFromS3:{input:{type:"structure",required:["DataSourceId","DataSpec"],members:{DataSourceId:{},DataSourceName:{},DataSpec:{type:"structure",required:["DataLocationS3"],members:{DataLocationS3:{},DataRearrangement:{},DataSchema:{},DataSchemaLocationS3:{}}},ComputeStatistics:{type:"boolean"}}},output:{type:"structure",members:{DataSourceId:{}}},http:{}},CreateEvaluation:{input:{type:"structure",required:["EvaluationId","MLModelId","EvaluationDataSourceId"],members:{EvaluationId:{},EvaluationName:{},MLModelId:{},EvaluationDataSourceId:{}}},output:{type:"structure",members:{EvaluationId:{}}},http:{}},CreateMLModel:{input:{type:"structure",required:["MLModelId","MLModelType","TrainingDataSourceId"],members:{MLModelId:{},MLModelName:{},MLModelType:{},Parameters:{shape:"S16"},TrainingDataSourceId:{},Recipe:{},RecipeUri:{}}},output:{type:"structure",members:{MLModelId:{}}},http:{}},CreateRealtimeEndpoint:{input:{type:"structure",required:["MLModelId"],members:{MLModelId:{}}},output:{type:"structure",members:{MLModelId:{},RealtimeEndpointInfo:{shape:"S1c"}}},http:{}},DeleteBatchPrediction:{input:{type:"structure",required:["BatchPredictionId"],members:{BatchPredictionId:{}}},output:{type:"structure",members:{BatchPredictionId:{}}},http:{}},DeleteDataSource:{input:{type:"structure",required:["DataSourceId"],members:{DataSourceId:{}}},output:{type:"structure",members:{DataSourceId:{}}},http:{}},DeleteEvaluation:{input:{type:"structure",required:["EvaluationId"],members:{EvaluationId:{}}},output:{type:"structure",members:{EvaluationId:{}}},http:{}},DeleteMLModel:{input:{type:"structure",required:["MLModelId"],members:{MLModelId:{}}},output:{type:"structure",members:{MLModelId:{}}},http:{}},DeleteRealtimeEndpoint:{input:{type:"structure",required:["MLModelId"],members:{MLModelId:{}}},output:{type:"structure",members:{MLModelId:{},RealtimeEndpointInfo:{shape:"S1c"}}},http:{}},DescribeBatchPredictions:{input:{type:"structure",members:{FilterVariable:{},EQ:{},GT:{},LT:{},GE:{},LE:{},NE:{},Prefix:{},SortOrder:{},NextToken:{},Limit:{type:"integer"}}},output:{type:"structure",members:{Results:{type:"list",member:{type:"structure",members:{BatchPredictionId:{},MLModelId:{},BatchPredictionDataSourceId:{},InputDataLocationS3:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},OutputUri:{},Message:{}}}},NextToken:{}}},http:{}},DescribeDataSources:{input:{type:"structure",members:{FilterVariable:{},EQ:{},GT:{},LT:{},GE:{},LE:{},NE:{},Prefix:{},SortOrder:{},NextToken:{},Limit:{type:"integer"}}},output:{type:"structure",members:{Results:{type:"list",member:{type:"structure",members:{DataSourceId:{},DataLocationS3:{},DataRearrangement:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},DataSizeInBytes:{type:"long"},NumberOfFiles:{type:"long"},Name:{},Status:{},Message:{},RedshiftMetadata:{shape:"S28"},RDSMetadata:{shape:"S29"},RoleARN:{},ComputeStatistics:{type:"boolean"}}}},NextToken:{}}},http:{}},DescribeEvaluations:{input:{type:"structure",members:{FilterVariable:{},EQ:{},GT:{},LT:{},GE:{},LE:{},NE:{},Prefix:{},SortOrder:{},NextToken:{},Limit:{type:"integer"}}},output:{type:"structure",members:{Results:{type:"list",member:{type:"structure",members:{EvaluationId:{},MLModelId:{},EvaluationDataSourceId:{},InputDataLocationS3:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},PerformanceMetrics:{shape:"S2g"},Message:{}}}},NextToken:{}}},http:{}},DescribeMLModels:{input:{type:"structure",members:{FilterVariable:{},EQ:{},GT:{},LT:{},GE:{},LE:{},NE:{},Prefix:{},SortOrder:{},NextToken:{},Limit:{type:"integer"}}},output:{type:"structure",members:{Results:{type:"list",member:{type:"structure",members:{MLModelId:{},TrainingDataSourceId:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},SizeInBytes:{type:"long"},EndpointInfo:{shape:"S1c"},TrainingParameters:{shape:"S16"},InputDataLocationS3:{},Algorithm:{},MLModelType:{},ScoreThreshold:{type:"float"},ScoreThresholdLastUpdatedAt:{type:"timestamp"},Message:{}}}},NextToken:{}}},http:{}},GetBatchPrediction:{input:{type:"structure",required:["BatchPredictionId"],members:{BatchPredictionId:{}}},output:{type:"structure",members:{BatchPredictionId:{},MLModelId:{},BatchPredictionDataSourceId:{},InputDataLocationS3:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},OutputUri:{},LogUri:{},Message:{}}},http:{}},GetDataSource:{input:{type:"structure",required:["DataSourceId"],members:{DataSourceId:{},Verbose:{type:"boolean"}}},output:{type:"structure",members:{DataSourceId:{},DataLocationS3:{},DataRearrangement:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},DataSizeInBytes:{type:"long"},NumberOfFiles:{type:"long"},Name:{},Status:{},LogUri:{},Message:{},RedshiftMetadata:{shape:"S28"},RDSMetadata:{shape:"S29"},RoleARN:{},ComputeStatistics:{type:"boolean"},DataSourceSchema:{}}},http:{}},GetEvaluation:{input:{type:"structure",required:["EvaluationId"],members:{EvaluationId:{}}},output:{type:"structure",members:{EvaluationId:{},MLModelId:{},EvaluationDataSourceId:{},InputDataLocationS3:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},PerformanceMetrics:{shape:"S2g"},LogUri:{},Message:{}}},http:{}},GetMLModel:{input:{type:"structure",required:["MLModelId"],members:{MLModelId:{},Verbose:{type:"boolean"}}},output:{type:"structure",members:{MLModelId:{},TrainingDataSourceId:{},CreatedByIamUser:{},CreatedAt:{type:"timestamp"},LastUpdatedAt:{type:"timestamp"},Name:{},Status:{},SizeInBytes:{type:"long"},EndpointInfo:{shape:"S1c"},TrainingParameters:{shape:"S16"},InputDataLocationS3:{},MLModelType:{},ScoreThreshold:{type:"float"},ScoreThresholdLastUpdatedAt:{type:"timestamp"},LogUri:{},Message:{},Recipe:{},Schema:{}}},http:{}},Predict:{input:{type:"structure",required:["MLModelId","Record","PredictEndpoint"],members:{MLModelId:{},Record:{type:"map",key:{},value:{}},PredictEndpoint:{}}},output:{type:"structure",members:{Prediction:{type:"structure",members:{predictedLabel:{},predictedValue:{type:"float"},predictedScores:{type:"map",key:{},value:{type:"float"}},details:{type:"map",key:{},value:{}}}}}},http:{}},UpdateBatchPrediction:{input:{type:"structure",required:["BatchPredictionId","BatchPredictionName"],members:{BatchPredictionId:{},BatchPredictionName:{}}},output:{type:"structure",members:{BatchPredictionId:{}}},http:{}},UpdateDataSource:{input:{type:"structure",required:["DataSourceId","DataSourceName"],members:{DataSourceId:{},DataSourceName:{}}},output:{type:"structure",members:{DataSourceId:{}}},http:{}},UpdateEvaluation:{input:{type:"structure",required:["EvaluationId","EvaluationName"],members:{EvaluationId:{},EvaluationName:{}}},output:{type:"structure",members:{EvaluationId:{}}},http:{}},UpdateMLModel:{input:{type:"structure",required:["MLModelId"],members:{MLModelId:{},MLModelName:{},ScoreThreshold:{type:"float"}}},output:{type:"structure",members:{MLModelId:{}}},http:{}}},shapes:{S8:{type:"structure",required:["InstanceIdentifier","DatabaseName"],members:{InstanceIdentifier:{},DatabaseName:{}}},Sr:{type:"structure",required:["DatabaseName","ClusterIdentifier"],members:{DatabaseName:{},ClusterIdentifier:{}}},S16:{type:"map",key:{},value:{}},S1c:{type:"structure",members:{PeakRequestsPerSecond:{type:"integer"},CreatedAt:{type:"timestamp"},EndpointUrl:{},EndpointStatus:{}}},S28:{type:"structure",members:{RedshiftDatabase:{shape:"Sr"},DatabaseUserName:{},SelectSqlQuery:{}}},S29:{type:"structure",members:{Database:{shape:"S8"},DatabaseUserName:{},SelectSqlQuery:{},ResourceRole:{},ServiceRole:{},DataPipelineId:{}}},S2g:{type:"structure",members:{Properties:{type:"map",key:{},value:{}}}}},examples:{},paginators:{DescribeBatchPredictions:{limit_key:"Limit",output_token:"NextToken",input_token:"NextToken",result_key:"Results"},DescribeDataSources:{limit_key:"Limit",output_token:"NextToken",input_token:"NextToken",result_key:"Results"},DescribeEvaluations:{limit_key:"Limit",output_token:"NextToken",input_token:"NextToken",result_key:"Results"},DescribeMLModels:{limit_key:"Limit",output_token:"NextToken",input_token:"NextToken",result_key:"Results"}}},a.apiLoader.services.marketplacecommerceanalytics={},a.MarketplaceCommerceAnalytics=a.Service.defineService("marketplacecommerceanalytics",["2015-07-01"]),a.apiLoader.services.marketplacecommerceanalytics["2015-07-01"]={version:"2.0",metadata:{apiVersion:"2015-07-01",endpointPrefix:"marketplacecommerceanalytics",jsonVersion:"1.1",protocol:"json",serviceFullName:"AWS Marketplace Commerce Analytics",signatureVersion:"v4",signingName:"marketplacecommerceanalytics",targetPrefix:"MarketplaceCommerceAnalytics20150701"},operations:{GenerateDataSet:{input:{type:"structure",required:["dataSetType","dataSetPublicationDate","roleNameArn","destinationS3BucketName","snsTopicArn"],members:{dataSetType:{},dataSetPublicationDate:{type:"timestamp"},roleNameArn:{},destinationS3BucketName:{},destinationS3Prefix:{},snsTopicArn:{},customerDefinedValues:{type:"map",key:{},value:{}}}},output:{type:"structure",members:{dataSetRequestId:{}}},http:{}}},shapes:{}},a.apiLoader.services.mobileanalytics={},a.MobileAnalytics=a.Service.defineService("mobileanalytics",["2014-06-05"]),a.apiLoader.services.mobileanalytics["2014-06-05"]={version:"2.0",metadata:{apiVersion:"2014-06-05",endpointPrefix:"mobileanalytics",serviceFullName:"Amazon Mobile Analytics",signatureVersion:"v4",protocol:"rest-json"},operations:{PutEvents:{http:{requestUri:"/2014-06-05/events",responseCode:202},input:{type:"structure",required:["events","clientContext"],members:{events:{type:"list",member:{type:"structure",required:["eventType","timestamp"],members:{eventType:{},timestamp:{},session:{type:"structure",members:{id:{},duration:{type:"long"},startTimestamp:{},stopTimestamp:{}}},version:{},attributes:{type:"map",key:{},value:{}},metrics:{type:"map",key:{},value:{type:"double"}}}}},clientContext:{location:"header",locationName:"x-amz-Client-Context"},clientContextEncoding:{location:"header",locationName:"x-amz-Client-Context-Encoding"}}}}},shapes:{}},a.apiLoader.services.opsworks={},a.OpsWorks=a.Service.defineService("opsworks",["2013-02-18"]),a.apiLoader.services.opsworks["2013-02-18"]={version:"2.0",metadata:{apiVersion:"2013-02-18",endpointPrefix:"opsworks",jsonVersion:"1.1",protocol:"json",serviceFullName:"AWS OpsWorks",signatureVersion:"v4",targetPrefix:"OpsWorks_20130218"},operations:{AssignInstance:{input:{type:"structure",required:["InstanceId","LayerIds"],members:{InstanceId:{},LayerIds:{shape:"S3"}}},http:{}},AssignVolume:{input:{type:"structure",required:["VolumeId"],members:{VolumeId:{},InstanceId:{}}},http:{}},AssociateElasticIp:{input:{type:"structure",required:["ElasticIp"],members:{ElasticIp:{},InstanceId:{}}},http:{}},AttachElasticLoadBalancer:{input:{type:"structure",required:["ElasticLoadBalancerName","LayerId"],members:{ElasticLoadBalancerName:{},LayerId:{}}},http:{}},CloneStack:{input:{type:"structure",required:["SourceStackId","ServiceRoleArn"],members:{SourceStackId:{},Name:{},Region:{},VpcId:{},Attributes:{shape:"S8"},ServiceRoleArn:{},DefaultInstanceProfileArn:{},DefaultOs:{},HostnameTheme:{},DefaultAvailabilityZone:{},DefaultSubnetId:{},CustomJson:{},ConfigurationManager:{shape:"Sa"},ChefConfiguration:{shape:"Sb"},UseCustomCookbooks:{type:"boolean"},UseOpsworksSecurityGroups:{type:"boolean"},CustomCookbooksSource:{shape:"Sd"},DefaultSshKeyName:{},ClonePermissions:{type:"boolean"},CloneAppIds:{shape:"S3"},DefaultRootDeviceType:{},AgentVersion:{}}},output:{type:"structure",members:{StackId:{}}},http:{}},CreateApp:{input:{type:"structure",required:["StackId","Name","Type"],members:{StackId:{},Shortname:{},Name:{},Description:{},DataSources:{shape:"Si"},Type:{},AppSource:{shape:"Sd"},Domains:{shape:"S3"},EnableSsl:{type:"boolean"},SslConfiguration:{shape:"Sl"},Attributes:{shape:"Sm"},Environment:{shape:"So"}}},output:{type:"structure",members:{AppId:{}}},http:{}},CreateDeployment:{input:{type:"structure",required:["StackId","Command"],members:{StackId:{},AppId:{},InstanceIds:{shape:"S3"},Command:{shape:"Ss"},Comment:{},CustomJson:{}}},output:{type:"structure",members:{DeploymentId:{}}},http:{}},CreateInstance:{input:{type:"structure",required:["StackId","LayerIds","InstanceType"],members:{StackId:{},LayerIds:{shape:"S3"},InstanceType:{},AutoScalingType:{},Hostname:{},Os:{},AmiId:{},SshKeyName:{},AvailabilityZone:{},VirtualizationType:{},SubnetId:{},Architecture:{},RootDeviceType:{},BlockDeviceMappings:{shape:"Sz"},InstallUpdatesOnBoot:{type:"boolean"},EbsOptimized:{type:"boolean"},AgentVersion:{}}},output:{type:"structure",members:{InstanceId:{}}},http:{}},CreateLayer:{input:{type:"structure",required:["StackId","Type","Name","Shortname"],members:{StackId:{},Type:{},Name:{},Shortname:{},Attributes:{shape:"S17"},CustomInstanceProfileArn:{},CustomJson:{},CustomSecurityGroupIds:{shape:"S3"},Packages:{shape:"S3"},VolumeConfigurations:{shape:"S19"},EnableAutoHealing:{type:"boolean"},AutoAssignElasticIps:{type:"boolean"},AutoAssignPublicIps:{type:"boolean"},CustomRecipes:{shape:"S1b"},InstallUpdatesOnBoot:{type:"boolean"},UseEbsOptimizedInstances:{type:"boolean"},LifecycleEventConfiguration:{shape:"S1c"}}},output:{type:"structure",members:{LayerId:{}}},http:{}},CreateStack:{input:{type:"structure",required:["Name","Region","ServiceRoleArn","DefaultInstanceProfileArn"],members:{Name:{},Region:{},VpcId:{},Attributes:{shape:"S8"},ServiceRoleArn:{},DefaultInstanceProfileArn:{},DefaultOs:{},HostnameTheme:{},DefaultAvailabilityZone:{},DefaultSubnetId:{},CustomJson:{},ConfigurationManager:{shape:"Sa"},ChefConfiguration:{shape:"Sb"},UseCustomCookbooks:{type:"boolean"},UseOpsworksSecurityGroups:{type:"boolean"},CustomCookbooksSource:{shape:"Sd"},DefaultSshKeyName:{},DefaultRootDeviceType:{},AgentVersion:{}}},output:{type:"structure",members:{StackId:{}}},http:{}},CreateUserProfile:{input:{type:"structure",required:["IamUserArn"],members:{IamUserArn:{},SshUsername:{},SshPublicKey:{},AllowSelfManagement:{type:"boolean"}}},output:{type:"structure",members:{IamUserArn:{}}},http:{}},DeleteApp:{input:{type:"structure",required:["AppId"],members:{AppId:{}}},http:{}},DeleteInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{},DeleteElasticIp:{type:"boolean"},DeleteVolumes:{type:"boolean"}}},http:{}},DeleteLayer:{input:{type:"structure",required:["LayerId"],members:{LayerId:{}}},http:{}},DeleteStack:{input:{type:"structure",required:["StackId"],members:{StackId:{}}},http:{}},DeleteUserProfile:{input:{type:"structure",required:["IamUserArn"],members:{IamUserArn:{}}},http:{}},DeregisterEcsCluster:{input:{type:"structure",required:["EcsClusterArn"],members:{EcsClusterArn:{}}},http:{}},DeregisterElasticIp:{input:{type:"structure",required:["ElasticIp"],members:{ElasticIp:{}}},http:{}},DeregisterInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{}}},http:{}},DeregisterRdsDbInstance:{input:{type:"structure",required:["RdsDbInstanceArn"],members:{RdsDbInstanceArn:{}}},http:{}},DeregisterVolume:{input:{type:"structure",required:["VolumeId"],members:{VolumeId:{}}},http:{}},DescribeAgentVersions:{input:{type:"structure",members:{StackId:{},ConfigurationManager:{shape:"Sa"}}},output:{type:"structure",members:{AgentVersions:{type:"list",member:{type:"structure",members:{Version:{},ConfigurationManager:{shape:"Sa"}}}}}},http:{}},DescribeApps:{input:{type:"structure",members:{StackId:{},AppIds:{shape:"S3"}}},output:{type:"structure",members:{Apps:{type:"list",member:{type:"structure",members:{AppId:{},StackId:{},Shortname:{},Name:{},Description:{},DataSources:{shape:"Si"},Type:{},AppSource:{shape:"Sd"},Domains:{shape:"S3"},EnableSsl:{type:"boolean"},SslConfiguration:{shape:"Sl"},Attributes:{shape:"Sm"},CreatedAt:{},Environment:{shape:"So"}}}}}},http:{}},DescribeCommands:{input:{type:"structure",members:{DeploymentId:{},InstanceId:{},CommandIds:{shape:"S3"}}},output:{type:"structure",members:{Commands:{type:"list",member:{type:"structure",members:{CommandId:{},InstanceId:{},DeploymentId:{},CreatedAt:{},AcknowledgedAt:{},CompletedAt:{},Status:{},ExitCode:{type:"integer"},LogUrl:{},Type:{}}}}}},http:{}},DescribeDeployments:{input:{type:"structure",members:{StackId:{},AppId:{},DeploymentIds:{shape:"S3"}}},output:{type:"structure",members:{Deployments:{type:"list",member:{type:"structure",members:{DeploymentId:{},StackId:{},AppId:{},CreatedAt:{},CompletedAt:{},Duration:{type:"integer"},IamUserArn:{},Comment:{},Command:{shape:"Ss"},Status:{},CustomJson:{},InstanceIds:{shape:"S3"}}}}}},http:{}},DescribeEcsClusters:{input:{type:"structure",members:{EcsClusterArns:{shape:"S3"},StackId:{},NextToken:{},MaxResults:{type:"integer"}}},output:{type:"structure",members:{EcsClusters:{type:"list",member:{type:"structure",members:{EcsClusterArn:{},EcsClusterName:{},StackId:{},RegisteredAt:{}}}},NextToken:{}}},http:{}},DescribeElasticIps:{input:{type:"structure",members:{InstanceId:{},StackId:{},Ips:{shape:"S3"}}},output:{type:"structure",members:{ElasticIps:{type:"list",member:{type:"structure",members:{Ip:{},Name:{},Domain:{},Region:{},InstanceId:{}}}}}},http:{}},DescribeElasticLoadBalancers:{input:{type:"structure",members:{StackId:{},LayerIds:{shape:"S3"}}},output:{type:"structure",members:{ElasticLoadBalancers:{type:"list",member:{type:"structure",members:{ElasticLoadBalancerName:{},Region:{},DnsName:{},StackId:{},LayerId:{},VpcId:{},AvailabilityZones:{shape:"S3"},SubnetIds:{shape:"S3"},Ec2InstanceIds:{shape:"S3"}}}}}},http:{}},DescribeInstances:{input:{type:"structure",members:{StackId:{},LayerId:{},InstanceIds:{shape:"S3"}}},output:{type:"structure",members:{Instances:{type:"list",member:{type:"structure",members:{AgentVersion:{},AmiId:{},Architecture:{},AutoScalingType:{},AvailabilityZone:{},BlockDeviceMappings:{shape:"Sz"},CreatedAt:{},EbsOptimized:{type:"boolean"},Ec2InstanceId:{},EcsClusterArn:{},EcsContainerInstanceArn:{},ElasticIp:{},Hostname:{},InfrastructureClass:{},InstallUpdatesOnBoot:{type:"boolean"},InstanceId:{},InstanceProfileArn:{},InstanceType:{},LastServiceErrorId:{},LayerIds:{shape:"S3"},Os:{},Platform:{},PrivateDns:{},PrivateIp:{},PublicDns:{},PublicIp:{},RegisteredBy:{},ReportedAgentVersion:{},ReportedOs:{type:"structure",members:{Family:{},Name:{},Version:{}}},RootDeviceType:{},RootDeviceVolumeId:{},SecurityGroupIds:{shape:"S3"},SshHostDsaKeyFingerprint:{},SshHostRsaKeyFingerprint:{},SshKeyName:{},StackId:{},Status:{},SubnetId:{},VirtualizationType:{}}}}}},http:{}},DescribeLayers:{input:{type:"structure",members:{StackId:{},LayerIds:{shape:"S3"}}},output:{type:"structure",members:{Layers:{type:"list",member:{type:"structure",members:{StackId:{},LayerId:{},Type:{},Name:{},Shortname:{},Attributes:{shape:"S17"},CustomInstanceProfileArn:{},CustomJson:{},CustomSecurityGroupIds:{shape:"S3"},DefaultSecurityGroupNames:{shape:"S3"},Packages:{shape:"S3"},VolumeConfigurations:{shape:"S19"},EnableAutoHealing:{type:"boolean"},AutoAssignElasticIps:{type:"boolean"},AutoAssignPublicIps:{type:"boolean"},DefaultRecipes:{shape:"S1b"},CustomRecipes:{shape:"S1b"},CreatedAt:{},InstallUpdatesOnBoot:{type:"boolean"},UseEbsOptimizedInstances:{type:"boolean"},LifecycleEventConfiguration:{shape:"S1c"}}}}}},http:{}},DescribeLoadBasedAutoScaling:{input:{type:"structure",required:["LayerIds"],members:{LayerIds:{shape:"S3"}}},output:{type:"structure",members:{LoadBasedAutoScalingConfigurations:{type:"list",member:{type:"structure",members:{LayerId:{},Enable:{type:"boolean"},UpScaling:{shape:"S30"},DownScaling:{shape:"S30"}}}}}},http:{}},DescribeMyUserProfile:{output:{type:"structure",members:{UserProfile:{type:"structure",members:{IamUserArn:{},Name:{},SshUsername:{},SshPublicKey:{}}}}},http:{}},DescribePermissions:{input:{type:"structure",members:{IamUserArn:{},StackId:{}}},output:{type:"structure",members:{Permissions:{type:"list",member:{type:"structure",members:{StackId:{},IamUserArn:{},AllowSsh:{type:"boolean"},AllowSudo:{type:"boolean"},Level:{}}}}}},http:{}},DescribeRaidArrays:{input:{type:"structure",members:{InstanceId:{},StackId:{},RaidArrayIds:{shape:"S3"}}},output:{type:"structure",members:{RaidArrays:{type:"list",member:{type:"structure",members:{RaidArrayId:{},InstanceId:{},Name:{},RaidLevel:{type:"integer"},NumberOfDisks:{type:"integer"},Size:{type:"integer"},Device:{},MountPoint:{},AvailabilityZone:{},CreatedAt:{},StackId:{},VolumeType:{},Iops:{type:"integer"}}}}}},http:{}},DescribeRdsDbInstances:{input:{type:"structure",required:["StackId"],members:{StackId:{},RdsDbInstanceArns:{shape:"S3"}}},output:{type:"structure",members:{RdsDbInstances:{type:"list",member:{type:"structure",members:{RdsDbInstanceArn:{},DbInstanceIdentifier:{},DbUser:{},DbPassword:{},Region:{},Address:{},Engine:{},StackId:{},MissingOnRds:{type:"boolean"}}}}}},http:{}},DescribeServiceErrors:{input:{type:"structure",members:{StackId:{},InstanceId:{},ServiceErrorIds:{shape:"S3"}}},output:{type:"structure",members:{ServiceErrors:{type:"list",member:{type:"structure",members:{ServiceErrorId:{},StackId:{},InstanceId:{},Type:{},Message:{},CreatedAt:{}}}}}},http:{}},DescribeStackProvisioningParameters:{input:{type:"structure",required:["StackId"],members:{StackId:{}}},output:{type:"structure",members:{AgentInstallerUrl:{},Parameters:{type:"map",key:{},value:{}}}},http:{}},DescribeStackSummary:{input:{type:"structure",required:["StackId"],members:{StackId:{}}},output:{type:"structure",members:{StackSummary:{type:"structure",members:{StackId:{},Name:{},Arn:{},LayersCount:{type:"integer"},AppsCount:{type:"integer"},InstancesCount:{type:"structure",members:{Assigning:{type:"integer"},Booting:{type:"integer"},ConnectionLost:{type:"integer"},Deregistering:{type:"integer"},Online:{type:"integer"},Pending:{type:"integer"},Rebooting:{type:"integer"},Registered:{type:"integer"},Registering:{type:"integer"},Requested:{type:"integer"},RunningSetup:{type:"integer"},SetupFailed:{type:"integer"},ShuttingDown:{type:"integer"},StartFailed:{type:"integer"},Stopped:{type:"integer"},Stopping:{type:"integer"},Terminated:{type:"integer"},Terminating:{type:"integer"},Unassigning:{type:"integer"}}}}}}},http:{}},DescribeStacks:{input:{type:"structure",members:{StackIds:{shape:"S3"}}},output:{type:"structure",members:{Stacks:{type:"list",member:{type:"structure",members:{StackId:{},Name:{},Arn:{},Region:{},VpcId:{},Attributes:{shape:"S8"},ServiceRoleArn:{},DefaultInstanceProfileArn:{},DefaultOs:{},HostnameTheme:{},DefaultAvailabilityZone:{},DefaultSubnetId:{},CustomJson:{},ConfigurationManager:{shape:"Sa"},ChefConfiguration:{shape:"Sb"},UseCustomCookbooks:{type:"boolean"},UseOpsworksSecurityGroups:{type:"boolean"},CustomCookbooksSource:{shape:"Sd"},DefaultSshKeyName:{},CreatedAt:{},DefaultRootDeviceType:{},AgentVersion:{}}}}}},http:{}},DescribeTimeBasedAutoScaling:{input:{type:"structure",required:["InstanceIds"],members:{InstanceIds:{shape:"S3"}}},output:{type:"structure",members:{TimeBasedAutoScalingConfigurations:{type:"list",member:{type:"structure",members:{InstanceId:{},AutoScalingSchedule:{shape:"S40"}}}}}},http:{}},DescribeUserProfiles:{input:{type:"structure",members:{IamUserArns:{shape:"S3"}}},output:{type:"structure",members:{UserProfiles:{type:"list",member:{type:"structure",members:{IamUserArn:{},Name:{},SshUsername:{},SshPublicKey:{},AllowSelfManagement:{type:"boolean"}}}}}},http:{}},DescribeVolumes:{input:{type:"structure",members:{InstanceId:{},StackId:{},RaidArrayId:{},VolumeIds:{shape:"S3"}}},output:{type:"structure",members:{Volumes:{type:"list",member:{type:"structure",members:{VolumeId:{},Ec2VolumeId:{},Name:{},RaidArrayId:{},InstanceId:{},Status:{},Size:{type:"integer"},Device:{},MountPoint:{},Region:{},AvailabilityZone:{},VolumeType:{},Iops:{type:"integer"}}}}}},http:{}},DetachElasticLoadBalancer:{input:{type:"structure",required:["ElasticLoadBalancerName","LayerId"],members:{ElasticLoadBalancerName:{},LayerId:{}}},http:{}},DisassociateElasticIp:{input:{type:"structure",required:["ElasticIp"],members:{ElasticIp:{}}},http:{}},GetHostnameSuggestion:{input:{type:"structure",required:["LayerId"],members:{LayerId:{}}},output:{type:"structure",members:{LayerId:{},Hostname:{}}},http:{}},GrantAccess:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{},ValidForInMinutes:{type:"integer"}}},output:{type:"structure",members:{TemporaryCredential:{type:"structure",members:{Username:{},Password:{},ValidForInMinutes:{type:"integer"},InstanceId:{}}}}},http:{}},RebootInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{}}},http:{}},RegisterEcsCluster:{input:{type:"structure",required:["EcsClusterArn","StackId"],members:{EcsClusterArn:{},StackId:{}}},output:{type:"structure",members:{EcsClusterArn:{}}},http:{}},RegisterElasticIp:{input:{type:"structure",required:["ElasticIp","StackId"],members:{ElasticIp:{},StackId:{}}},output:{type:"structure",members:{ElasticIp:{}}},http:{}},RegisterInstance:{input:{type:"structure",required:["StackId"],members:{StackId:{},Hostname:{},PublicIp:{},PrivateIp:{},RsaPublicKey:{},RsaPublicKeyFingerprint:{},InstanceIdentity:{type:"structure",members:{Document:{},Signature:{}}}}},output:{type:"structure",members:{InstanceId:{}}},http:{}},RegisterRdsDbInstance:{input:{type:"structure",required:["StackId","RdsDbInstanceArn","DbUser","DbPassword"],members:{StackId:{},RdsDbInstanceArn:{},DbUser:{},DbPassword:{}}},http:{}},RegisterVolume:{input:{type:"structure",required:["StackId"],members:{Ec2VolumeId:{},StackId:{}}},output:{type:"structure",members:{VolumeId:{}}},http:{}},SetLoadBasedAutoScaling:{input:{type:"structure",required:["LayerId"],members:{LayerId:{},Enable:{type:"boolean"},UpScaling:{shape:"S30"},DownScaling:{shape:"S30"}}},http:{}},SetPermission:{input:{type:"structure",required:["StackId","IamUserArn"],members:{StackId:{},IamUserArn:{},AllowSsh:{type:"boolean"},AllowSudo:{type:"boolean"},Level:{}}},http:{}},SetTimeBasedAutoScaling:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{},AutoScalingSchedule:{shape:"S40"}}},http:{}},StartInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{}}},http:{}},StartStack:{input:{type:"structure",required:["StackId"],members:{StackId:{}}},http:{}},StopInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{}}},http:{}},StopStack:{input:{type:"structure",required:["StackId"],members:{StackId:{}}},http:{}},UnassignInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{}}},http:{}},UnassignVolume:{input:{type:"structure",
|
||
required:["VolumeId"],members:{VolumeId:{}}},http:{}},UpdateApp:{input:{type:"structure",required:["AppId"],members:{AppId:{},Name:{},Description:{},DataSources:{shape:"Si"},Type:{},AppSource:{shape:"Sd"},Domains:{shape:"S3"},EnableSsl:{type:"boolean"},SslConfiguration:{shape:"Sl"},Attributes:{shape:"Sm"},Environment:{shape:"So"}}},http:{}},UpdateElasticIp:{input:{type:"structure",required:["ElasticIp"],members:{ElasticIp:{},Name:{}}},http:{}},UpdateInstance:{input:{type:"structure",required:["InstanceId"],members:{InstanceId:{},LayerIds:{shape:"S3"},InstanceType:{},AutoScalingType:{},Hostname:{},Os:{},AmiId:{},SshKeyName:{},Architecture:{},InstallUpdatesOnBoot:{type:"boolean"},EbsOptimized:{type:"boolean"},AgentVersion:{}}},http:{}},UpdateLayer:{input:{type:"structure",required:["LayerId"],members:{LayerId:{},Name:{},Shortname:{},Attributes:{shape:"S17"},CustomInstanceProfileArn:{},CustomJson:{},CustomSecurityGroupIds:{shape:"S3"},Packages:{shape:"S3"},VolumeConfigurations:{shape:"S19"},EnableAutoHealing:{type:"boolean"},AutoAssignElasticIps:{type:"boolean"},AutoAssignPublicIps:{type:"boolean"},CustomRecipes:{shape:"S1b"},InstallUpdatesOnBoot:{type:"boolean"},UseEbsOptimizedInstances:{type:"boolean"},LifecycleEventConfiguration:{shape:"S1c"}}},http:{}},UpdateMyUserProfile:{input:{type:"structure",members:{SshPublicKey:{}}},http:{}},UpdateRdsDbInstance:{input:{type:"structure",required:["RdsDbInstanceArn"],members:{RdsDbInstanceArn:{},DbUser:{},DbPassword:{}}},http:{}},UpdateStack:{input:{type:"structure",required:["StackId"],members:{StackId:{},Name:{},Attributes:{shape:"S8"},ServiceRoleArn:{},DefaultInstanceProfileArn:{},DefaultOs:{},HostnameTheme:{},DefaultAvailabilityZone:{},DefaultSubnetId:{},CustomJson:{},ConfigurationManager:{shape:"Sa"},ChefConfiguration:{shape:"Sb"},UseCustomCookbooks:{type:"boolean"},CustomCookbooksSource:{shape:"Sd"},DefaultSshKeyName:{},DefaultRootDeviceType:{},UseOpsworksSecurityGroups:{type:"boolean"},AgentVersion:{}}},http:{}},UpdateUserProfile:{input:{type:"structure",required:["IamUserArn"],members:{IamUserArn:{},SshUsername:{},SshPublicKey:{},AllowSelfManagement:{type:"boolean"}}},http:{}},UpdateVolume:{input:{type:"structure",required:["VolumeId"],members:{VolumeId:{},Name:{},MountPoint:{}}},http:{}}},shapes:{S3:{type:"list",member:{}},S8:{type:"map",key:{},value:{}},Sa:{type:"structure",members:{Name:{},Version:{}}},Sb:{type:"structure",members:{ManageBerkshelf:{type:"boolean"},BerkshelfVersion:{}}},Sd:{type:"structure",members:{Type:{},Url:{},Username:{},Password:{},SshKey:{},Revision:{}}},Si:{type:"list",member:{type:"structure",members:{Type:{},Arn:{},DatabaseName:{}}}},Sl:{type:"structure",required:["Certificate","PrivateKey"],members:{Certificate:{},PrivateKey:{},Chain:{}}},Sm:{type:"map",key:{},value:{}},So:{type:"list",member:{type:"structure",required:["Key","Value"],members:{Key:{},Value:{},Secure:{type:"boolean"}}}},Ss:{type:"structure",required:["Name"],members:{Name:{},Args:{type:"map",key:{},value:{shape:"S3"}}}},Sz:{type:"list",member:{type:"structure",members:{DeviceName:{},NoDevice:{},VirtualName:{},Ebs:{type:"structure",members:{SnapshotId:{},Iops:{type:"integer"},VolumeSize:{type:"integer"},VolumeType:{},DeleteOnTermination:{type:"boolean"}}}}}},S17:{type:"map",key:{},value:{}},S19:{type:"list",member:{type:"structure",required:["MountPoint","NumberOfDisks","Size"],members:{MountPoint:{},RaidLevel:{type:"integer"},NumberOfDisks:{type:"integer"},Size:{type:"integer"},VolumeType:{},Iops:{type:"integer"}}}},S1b:{type:"structure",members:{Setup:{shape:"S3"},Configure:{shape:"S3"},Deploy:{shape:"S3"},Undeploy:{shape:"S3"},Shutdown:{shape:"S3"}}},S1c:{type:"structure",members:{Shutdown:{type:"structure",members:{ExecutionTimeout:{type:"integer"},DelayUntilElbConnectionsDrained:{type:"boolean"}}}}},S30:{type:"structure",members:{InstanceCount:{type:"integer"},ThresholdsWaitTime:{type:"integer"},IgnoreMetricsTime:{type:"integer"},CpuThreshold:{type:"double"},MemoryThreshold:{type:"double"},LoadThreshold:{type:"double"},Alarms:{shape:"S3"}}},S40:{type:"structure",members:{Monday:{shape:"S41"},Tuesday:{shape:"S41"},Wednesday:{shape:"S41"},Thursday:{shape:"S41"},Friday:{shape:"S41"},Saturday:{shape:"S41"},Sunday:{shape:"S41"}}},S41:{type:"map",key:{},value:{}}},paginators:{DescribeApps:{result_key:"Apps"},DescribeCommands:{result_key:"Commands"},DescribeDeployments:{result_key:"Deployments"},DescribeEcsClusters:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"EcsClusters"},DescribeElasticIps:{result_key:"ElasticIps"},DescribeElasticLoadBalancers:{result_key:"ElasticLoadBalancers"},DescribeInstances:{result_key:"Instances"},DescribeLayers:{result_key:"Layers"},DescribeLoadBasedAutoScaling:{result_key:"LoadBasedAutoScalingConfigurations"},DescribePermissions:{result_key:"Permissions"},DescribeRaidArrays:{result_key:"RaidArrays"},DescribeServiceErrors:{result_key:"ServiceErrors"},DescribeStacks:{result_key:"Stacks"},DescribeTimeBasedAutoScaling:{result_key:"TimeBasedAutoScalingConfigurations"},DescribeUserProfiles:{result_key:"UserProfiles"},DescribeVolumes:{result_key:"Volumes"}}},a.apiLoader.services.route53={},a.Route53=a.Service.defineService("route53",["2013-04-01"]),e("./services/route53"),a.apiLoader.services.route53["2013-04-01"]={version:"2.0",metadata:{apiVersion:"2013-04-01",endpointPrefix:"route53",globalEndpoint:"route53.amazonaws.com",protocol:"rest-xml",serviceAbbreviation:"Route 53",serviceFullName:"Amazon Route 53",signatureVersion:"v4"},operations:{AssociateVPCWithHostedZone:{http:{requestUri:"/2013-04-01/hostedzone/{Id}/associatevpc"},input:{locationName:"AssociateVPCWithHostedZoneRequest",xmlNamespace:{uri:"https://route53.amazonaws.com/doc/2013-04-01/"},type:"structure",required:["HostedZoneId","VPC"],members:{HostedZoneId:{location:"uri",locationName:"Id"},VPC:{shape:"S3"},Comment:{}}},output:{type:"structure",required:["ChangeInfo"],members:{ChangeInfo:{shape:"S8"}}}},ChangeResourceRecordSets:{http:{requestUri:"/2013-04-01/hostedzone/{Id}/rrset/"},input:{locationName:"ChangeResourceRecordSetsRequest",xmlNamespace:{uri:"https://route53.amazonaws.com/doc/2013-04-01/"},type:"structure",required:["HostedZoneId","ChangeBatch"],members:{HostedZoneId:{location:"uri",locationName:"Id"},ChangeBatch:{type:"structure",required:["Changes"],members:{Comment:{},Changes:{shape:"Se"}}}}},output:{type:"structure",required:["ChangeInfo"],members:{ChangeInfo:{shape:"S8"}}}},ChangeTagsForResource:{http:{requestUri:"/2013-04-01/tags/{ResourceType}/{ResourceId}"},input:{locationName:"ChangeTagsForResourceRequest",xmlNamespace:{uri:"https://route53.amazonaws.com/doc/2013-04-01/"},type:"structure",required:["ResourceType","ResourceId"],members:{ResourceType:{location:"uri",locationName:"ResourceType"},ResourceId:{location:"uri",locationName:"ResourceId"},AddTags:{shape:"S14"},RemoveTagKeys:{type:"list",member:{locationName:"Key"}}}},output:{type:"structure",members:{}}},CreateHealthCheck:{http:{requestUri:"/2013-04-01/healthcheck",responseCode:201},input:{locationName:"CreateHealthCheckRequest",xmlNamespace:{uri:"https://route53.amazonaws.com/doc/2013-04-01/"},type:"structure",required:["CallerReference","HealthCheckConfig"],members:{CallerReference:{},HealthCheckConfig:{shape:"S1c"}}},output:{type:"structure",required:["HealthCheck","Location"],members:{HealthCheck:{shape:"S1r"},Location:{location:"header",locationName:"Location"}}}},CreateHostedZone:{http:{requestUri:"/2013-04-01/hostedzone",responseCode:201},input:{locationName:"CreateHostedZoneRequest",xmlNamespace:{uri:"https://route53.amazonaws.com/doc/2013-04-01/"},type:"structure",required:["Name","CallerReference"],members:{Name:{},VPC:{shape:"S3"},CallerReference:{},HostedZoneConfig:{shape:"S1w"},DelegationSetId:{}}},output:{type:"structure",required:["HostedZone","ChangeInfo","DelegationSet","Location"],members:{HostedZone:{shape:"S1z"},ChangeInfo:{shape:"S8"},DelegationSet:{shape:"S21"},VPC:{shape:"S3"},Location:{location:"header",locationName:"Location"}}}},CreateReusableDelegationSet:{http:{requestUri:"/2013-04-01/delegationset",responseCode:201},input:{locationName:"CreateReusableDelegationSetRequest",xmlNamespace:{uri:"https://route53.amazonaws.com/doc/2013-04-01/"},type:"structure",required:["CallerReference"],members:{CallerReference:{},HostedZoneId:{}}},output:{type:"structure",required:["DelegationSet","Location"],members:{DelegationSet:{shape:"S21"},Location:{location:"header",locationName:"Location"}}}},CreateTrafficPolicy:{http:{requestUri:"/2013-04-01/trafficpolicy",responseCode:201},input:{locationName:"CreateTrafficPolicyRequest",xmlNamespace:{uri:"https://route53.amazonaws.com/doc/2013-04-01/"},type:"structure",required:["Name","Document"],members:{Name:{},Document:{},Comment:{}}},output:{type:"structure",required:["TrafficPolicy","Location"],members:{TrafficPolicy:{shape:"S2a"},Location:{location:"header",locationName:"Location"}}}},CreateTrafficPolicyInstance:{http:{requestUri:"/2013-04-01/trafficpolicyinstance",responseCode:201},input:{locationName:"CreateTrafficPolicyInstanceRequest",xmlNamespace:{uri:"https://route53.amazonaws.com/doc/2013-04-01/"},type:"structure",required:["HostedZoneId","Name","TTL","TrafficPolicyId","TrafficPolicyVersion"],members:{HostedZoneId:{},Name:{},TTL:{type:"long"},TrafficPolicyId:{},TrafficPolicyVersion:{type:"integer"}}},output:{type:"structure",required:["TrafficPolicyInstance","Location"],members:{TrafficPolicyInstance:{shape:"S2f"},Location:{location:"header",locationName:"Location"}}}},CreateTrafficPolicyVersion:{http:{requestUri:"/2013-04-01/trafficpolicy/{Id}",responseCode:201},input:{locationName:"CreateTrafficPolicyVersionRequest",xmlNamespace:{uri:"https://route53.amazonaws.com/doc/2013-04-01/"},type:"structure",required:["Id","Document"],members:{Id:{location:"uri",locationName:"Id"},Document:{},Comment:{}}},output:{type:"structure",required:["TrafficPolicy","Location"],members:{TrafficPolicy:{shape:"S2a"},Location:{location:"header",locationName:"Location"}}}},DeleteHealthCheck:{http:{method:"DELETE",requestUri:"/2013-04-01/healthcheck/{HealthCheckId}"},input:{type:"structure",required:["HealthCheckId"],members:{HealthCheckId:{location:"uri",locationName:"HealthCheckId"}}},output:{type:"structure",members:{}}},DeleteHostedZone:{http:{method:"DELETE",requestUri:"/2013-04-01/hostedzone/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",required:["ChangeInfo"],members:{ChangeInfo:{shape:"S8"}}}},DeleteReusableDelegationSet:{http:{method:"DELETE",requestUri:"/2013-04-01/delegationset/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{}}},DeleteTrafficPolicy:{http:{method:"DELETE",requestUri:"/2013-04-01/trafficpolicy/{Id}/{Version}"},input:{type:"structure",required:["Id","Version"],members:{Id:{location:"uri",locationName:"Id"},Version:{location:"uri",locationName:"Version",type:"integer"}}},output:{type:"structure",members:{}}},DeleteTrafficPolicyInstance:{http:{method:"DELETE",requestUri:"/2013-04-01/trafficpolicyinstance/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",members:{}}},DisassociateVPCFromHostedZone:{http:{requestUri:"/2013-04-01/hostedzone/{Id}/disassociatevpc"},input:{locationName:"DisassociateVPCFromHostedZoneRequest",xmlNamespace:{uri:"https://route53.amazonaws.com/doc/2013-04-01/"},type:"structure",required:["HostedZoneId","VPC"],members:{HostedZoneId:{location:"uri",locationName:"Id"},VPC:{shape:"S3"},Comment:{}}},output:{type:"structure",required:["ChangeInfo"],members:{ChangeInfo:{shape:"S8"}}}},GetChange:{http:{method:"GET",requestUri:"/2013-04-01/change/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",required:["ChangeInfo"],members:{ChangeInfo:{shape:"S8"}}}},GetChangeDetails:{http:{method:"GET",requestUri:"/2013-04-01/changedetails/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}},deprecated:!0},output:{type:"structure",required:["ChangeBatchRecord"],members:{ChangeBatchRecord:{shape:"S31"}},deprecated:!0},deprecated:!0},GetCheckerIpRanges:{http:{method:"GET",requestUri:"/2013-04-01/checkeripranges"},input:{type:"structure",members:{}},output:{type:"structure",required:["CheckerIpRanges"],members:{CheckerIpRanges:{type:"list",member:{}}}}},GetGeoLocation:{http:{method:"GET",requestUri:"/2013-04-01/geolocation"},input:{type:"structure",members:{ContinentCode:{location:"querystring",locationName:"continentcode"},CountryCode:{location:"querystring",locationName:"countrycode"},SubdivisionCode:{location:"querystring",locationName:"subdivisioncode"}}},output:{type:"structure",required:["GeoLocationDetails"],members:{GeoLocationDetails:{shape:"S39"}}}},GetHealthCheck:{http:{method:"GET",requestUri:"/2013-04-01/healthcheck/{HealthCheckId}"},input:{type:"structure",required:["HealthCheckId"],members:{HealthCheckId:{location:"uri",locationName:"HealthCheckId"}}},output:{type:"structure",required:["HealthCheck"],members:{HealthCheck:{shape:"S1r"}}}},GetHealthCheckCount:{http:{method:"GET",requestUri:"/2013-04-01/healthcheckcount"},input:{type:"structure",members:{}},output:{type:"structure",required:["HealthCheckCount"],members:{HealthCheckCount:{type:"long"}}}},GetHealthCheckLastFailureReason:{http:{method:"GET",requestUri:"/2013-04-01/healthcheck/{HealthCheckId}/lastfailurereason"},input:{type:"structure",required:["HealthCheckId"],members:{HealthCheckId:{location:"uri",locationName:"HealthCheckId"}}},output:{type:"structure",required:["HealthCheckObservations"],members:{HealthCheckObservations:{shape:"S3k"}}}},GetHealthCheckStatus:{http:{method:"GET",requestUri:"/2013-04-01/healthcheck/{HealthCheckId}/status"},input:{type:"structure",required:["HealthCheckId"],members:{HealthCheckId:{location:"uri",locationName:"HealthCheckId"}}},output:{type:"structure",required:["HealthCheckObservations"],members:{HealthCheckObservations:{shape:"S3k"}}}},GetHostedZone:{http:{method:"GET",requestUri:"/2013-04-01/hostedzone/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",required:["HostedZone"],members:{HostedZone:{shape:"S1z"},DelegationSet:{shape:"S21"},VPCs:{type:"list",member:{shape:"S3",locationName:"VPC"}}}}},GetHostedZoneCount:{http:{method:"GET",requestUri:"/2013-04-01/hostedzonecount"},input:{type:"structure",members:{}},output:{type:"structure",required:["HostedZoneCount"],members:{HostedZoneCount:{type:"long"}}}},GetReusableDelegationSet:{http:{method:"GET",requestUri:"/2013-04-01/delegationset/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",required:["DelegationSet"],members:{DelegationSet:{shape:"S21"}}}},GetTrafficPolicy:{http:{method:"GET",requestUri:"/2013-04-01/trafficpolicy/{Id}/{Version}"},input:{type:"structure",required:["Id","Version"],members:{Id:{location:"uri",locationName:"Id"},Version:{location:"uri",locationName:"Version",type:"integer"}}},output:{type:"structure",required:["TrafficPolicy"],members:{TrafficPolicy:{shape:"S2a"}}}},GetTrafficPolicyInstance:{http:{method:"GET",requestUri:"/2013-04-01/trafficpolicyinstance/{Id}"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"}}},output:{type:"structure",required:["TrafficPolicyInstance"],members:{TrafficPolicyInstance:{shape:"S2f"}}}},GetTrafficPolicyInstanceCount:{http:{method:"GET",requestUri:"/2013-04-01/trafficpolicyinstancecount"},input:{type:"structure",members:{}},output:{type:"structure",required:["TrafficPolicyInstanceCount"],members:{TrafficPolicyInstanceCount:{type:"integer"}}}},ListChangeBatchesByHostedZone:{http:{method:"GET",requestUri:"/2013-04-01/hostedzone/{Id}/changes"},input:{type:"structure",required:["HostedZoneId","StartDate","EndDate"],members:{HostedZoneId:{location:"uri",locationName:"Id"},StartDate:{shape:"S46",location:"querystring",locationName:"startDate"},EndDate:{shape:"S46",location:"querystring",locationName:"endDate"},MaxItems:{location:"querystring",locationName:"maxItems"},Marker:{location:"querystring",locationName:"marker"}},deprecated:!0},output:{type:"structure",required:["MaxItems","Marker","ChangeBatchRecords"],members:{MaxItems:{},Marker:{},IsTruncated:{type:"boolean"},ChangeBatchRecords:{shape:"S4b"},NextMarker:{}},deprecated:!0},deprecated:!0},ListChangeBatchesByRRSet:{http:{method:"GET",requestUri:"/2013-04-01/hostedzone/{Id}/rrsChanges"},input:{type:"structure",required:["HostedZoneId","Name","Type","StartDate","EndDate"],members:{HostedZoneId:{location:"uri",locationName:"Id"},Name:{location:"querystring",locationName:"rrSet_name"},Type:{location:"querystring",locationName:"type"},SetIdentifier:{location:"querystring",locationName:"identifier"},StartDate:{shape:"S46",location:"querystring",locationName:"startDate"},EndDate:{shape:"S46",location:"querystring",locationName:"endDate"},MaxItems:{location:"querystring",locationName:"maxItems"},Marker:{location:"querystring",locationName:"marker"}},deprecated:!0},output:{type:"structure",required:["MaxItems","Marker","ChangeBatchRecords"],members:{MaxItems:{},Marker:{},IsTruncated:{type:"boolean"},ChangeBatchRecords:{shape:"S4b"},NextMarker:{}},deprecated:!0},deprecated:!0},ListGeoLocations:{http:{method:"GET",requestUri:"/2013-04-01/geolocations"},input:{type:"structure",members:{StartContinentCode:{location:"querystring",locationName:"startcontinentcode"},StartCountryCode:{location:"querystring",locationName:"startcountrycode"},StartSubdivisionCode:{location:"querystring",locationName:"startsubdivisioncode"},MaxItems:{location:"querystring",locationName:"maxitems"}}},output:{type:"structure",required:["GeoLocationDetailsList","IsTruncated","MaxItems"],members:{GeoLocationDetailsList:{type:"list",member:{shape:"S39",locationName:"GeoLocationDetails"}},IsTruncated:{type:"boolean"},NextContinentCode:{},NextCountryCode:{},NextSubdivisionCode:{},MaxItems:{}}}},ListHealthChecks:{http:{method:"GET",requestUri:"/2013-04-01/healthcheck"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"marker"},MaxItems:{location:"querystring",locationName:"maxitems"}}},output:{type:"structure",required:["HealthChecks","Marker","IsTruncated","MaxItems"],members:{HealthChecks:{type:"list",member:{shape:"S1r",locationName:"HealthCheck"}},Marker:{},IsTruncated:{type:"boolean"},NextMarker:{},MaxItems:{}}}},ListHostedZones:{http:{method:"GET",requestUri:"/2013-04-01/hostedzone"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"marker"},MaxItems:{location:"querystring",locationName:"maxitems"},DelegationSetId:{location:"querystring",locationName:"delegationsetid"}}},output:{type:"structure",required:["HostedZones","Marker","IsTruncated","MaxItems"],members:{HostedZones:{shape:"S4m"},Marker:{},IsTruncated:{type:"boolean"},NextMarker:{},MaxItems:{}}}},ListHostedZonesByName:{http:{method:"GET",requestUri:"/2013-04-01/hostedzonesbyname"},input:{type:"structure",members:{DNSName:{location:"querystring",locationName:"dnsname"},HostedZoneId:{location:"querystring",locationName:"hostedzoneid"},MaxItems:{location:"querystring",locationName:"maxitems"}}},output:{type:"structure",required:["HostedZones","IsTruncated","MaxItems"],members:{HostedZones:{shape:"S4m"},DNSName:{},HostedZoneId:{},IsTruncated:{type:"boolean"},NextDNSName:{},NextHostedZoneId:{},MaxItems:{}}}},ListResourceRecordSets:{http:{method:"GET",requestUri:"/2013-04-01/hostedzone/{Id}/rrset"},input:{type:"structure",required:["HostedZoneId"],members:{HostedZoneId:{location:"uri",locationName:"Id"},StartRecordName:{location:"querystring",locationName:"name"},StartRecordType:{location:"querystring",locationName:"type"},StartRecordIdentifier:{location:"querystring",locationName:"identifier"},MaxItems:{location:"querystring",locationName:"maxitems"}}},output:{type:"structure",required:["ResourceRecordSets","IsTruncated","MaxItems"],members:{ResourceRecordSets:{type:"list",member:{shape:"Sh",locationName:"ResourceRecordSet"}},IsTruncated:{type:"boolean"},NextRecordName:{},NextRecordType:{},NextRecordIdentifier:{},MaxItems:{}}}},ListReusableDelegationSets:{http:{method:"GET",requestUri:"/2013-04-01/delegationset"},input:{type:"structure",members:{Marker:{location:"querystring",locationName:"marker"},MaxItems:{location:"querystring",locationName:"maxitems"}}},output:{type:"structure",required:["DelegationSets","Marker","IsTruncated","MaxItems"],members:{DelegationSets:{type:"list",member:{shape:"S21",locationName:"DelegationSet"}},Marker:{},IsTruncated:{type:"boolean"},NextMarker:{},MaxItems:{}}}},ListTagsForResource:{http:{method:"GET",requestUri:"/2013-04-01/tags/{ResourceType}/{ResourceId}"},input:{type:"structure",required:["ResourceType","ResourceId"],members:{ResourceType:{location:"uri",locationName:"ResourceType"},ResourceId:{location:"uri",locationName:"ResourceId"}}},output:{type:"structure",required:["ResourceTagSet"],members:{ResourceTagSet:{shape:"S4x"}}}},ListTagsForResources:{http:{requestUri:"/2013-04-01/tags/{ResourceType}"},input:{locationName:"ListTagsForResourcesRequest",xmlNamespace:{uri:"https://route53.amazonaws.com/doc/2013-04-01/"},type:"structure",required:["ResourceType","ResourceIds"],members:{ResourceType:{location:"uri",locationName:"ResourceType"},ResourceIds:{type:"list",member:{locationName:"ResourceId"}}}},output:{type:"structure",required:["ResourceTagSets"],members:{ResourceTagSets:{type:"list",member:{shape:"S4x",locationName:"ResourceTagSet"}}}}},ListTrafficPolicies:{http:{method:"GET",requestUri:"/2013-04-01/trafficpolicies"},input:{type:"structure",members:{TrafficPolicyIdMarker:{location:"querystring",locationName:"trafficpolicyid"},MaxItems:{location:"querystring",locationName:"maxitems"}}},output:{type:"structure",required:["TrafficPolicySummaries","IsTruncated","TrafficPolicyIdMarker","MaxItems"],members:{TrafficPolicySummaries:{type:"list",member:{locationName:"TrafficPolicySummary",type:"structure",required:["Id","Name","Type","LatestVersion","TrafficPolicyCount"],members:{Id:{},Name:{},Type:{},LatestVersion:{type:"integer"},TrafficPolicyCount:{type:"integer"}}}},IsTruncated:{type:"boolean"},TrafficPolicyIdMarker:{},MaxItems:{}}}},ListTrafficPolicyInstances:{http:{method:"GET",requestUri:"/2013-04-01/trafficpolicyinstances"},input:{type:"structure",members:{HostedZoneIdMarker:{location:"querystring",locationName:"hostedzoneid"},TrafficPolicyInstanceNameMarker:{location:"querystring",locationName:"trafficpolicyinstancename"},TrafficPolicyInstanceTypeMarker:{location:"querystring",locationName:"trafficpolicyinstancetype"},MaxItems:{location:"querystring",locationName:"maxitems"}}},output:{type:"structure",required:["TrafficPolicyInstances","IsTruncated","MaxItems"],members:{TrafficPolicyInstances:{shape:"S58"},HostedZoneIdMarker:{},TrafficPolicyInstanceNameMarker:{},TrafficPolicyInstanceTypeMarker:{},IsTruncated:{type:"boolean"},MaxItems:{}}}},ListTrafficPolicyInstancesByHostedZone:{http:{method:"GET",requestUri:"/2013-04-01/trafficpolicyinstances/hostedzone"},input:{type:"structure",required:["HostedZoneId"],members:{HostedZoneId:{location:"querystring",locationName:"id"},TrafficPolicyInstanceNameMarker:{location:"querystring",locationName:"trafficpolicyinstancename"},TrafficPolicyInstanceTypeMarker:{location:"querystring",locationName:"trafficpolicyinstancetype"},MaxItems:{location:"querystring",locationName:"maxitems"}}},output:{type:"structure",required:["TrafficPolicyInstances","IsTruncated","MaxItems"],members:{TrafficPolicyInstances:{shape:"S58"},TrafficPolicyInstanceNameMarker:{},TrafficPolicyInstanceTypeMarker:{},IsTruncated:{type:"boolean"},MaxItems:{}}}},ListTrafficPolicyInstancesByPolicy:{http:{method:"GET",requestUri:"/2013-04-01/trafficpolicyinstances/trafficpolicy"},input:{type:"structure",required:["TrafficPolicyId","TrafficPolicyVersion"],members:{TrafficPolicyId:{location:"querystring",locationName:"id"},TrafficPolicyVersion:{location:"querystring",locationName:"version",type:"integer"},HostedZoneIdMarker:{location:"querystring",locationName:"hostedzoneid"},TrafficPolicyInstanceNameMarker:{location:"querystring",locationName:"trafficpolicyinstancename"},TrafficPolicyInstanceTypeMarker:{location:"querystring",locationName:"trafficpolicyinstancetype"},MaxItems:{location:"querystring",locationName:"maxitems"}}},output:{type:"structure",required:["TrafficPolicyInstances","IsTruncated","MaxItems"],members:{TrafficPolicyInstances:{shape:"S58"},HostedZoneIdMarker:{},TrafficPolicyInstanceNameMarker:{},TrafficPolicyInstanceTypeMarker:{},IsTruncated:{type:"boolean"},MaxItems:{}}}},ListTrafficPolicyVersions:{http:{method:"GET",requestUri:"/2013-04-01/trafficpolicies/{Id}/versions"},input:{type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},TrafficPolicyVersionMarker:{location:"querystring",locationName:"trafficpolicyversion"},MaxItems:{location:"querystring",locationName:"maxitems"}}},output:{type:"structure",required:["TrafficPolicies","IsTruncated","TrafficPolicyVersionMarker","MaxItems"],members:{TrafficPolicies:{type:"list",member:{shape:"S2a",locationName:"TrafficPolicy"}},IsTruncated:{type:"boolean"},TrafficPolicyVersionMarker:{},MaxItems:{}}}},UpdateHealthCheck:{http:{requestUri:"/2013-04-01/healthcheck/{HealthCheckId}"},input:{locationName:"UpdateHealthCheckRequest",xmlNamespace:{uri:"https://route53.amazonaws.com/doc/2013-04-01/"},type:"structure",required:["HealthCheckId"],members:{HealthCheckId:{location:"uri",locationName:"HealthCheckId"},HealthCheckVersion:{type:"long"},IPAddress:{},Port:{type:"integer"},ResourcePath:{},FullyQualifiedDomainName:{},SearchString:{},FailureThreshold:{type:"integer"},Inverted:{type:"boolean"},HealthThreshold:{type:"integer"},ChildHealthChecks:{shape:"S1o"},EnableSNI:{type:"boolean"}}},output:{type:"structure",required:["HealthCheck"],members:{HealthCheck:{shape:"S1r"}}}},UpdateHostedZoneComment:{http:{requestUri:"/2013-04-01/hostedzone/{Id}"},input:{locationName:"UpdateHostedZoneCommentRequest",xmlNamespace:{uri:"https://route53.amazonaws.com/doc/2013-04-01/"},type:"structure",required:["Id"],members:{Id:{location:"uri",locationName:"Id"},Comment:{}}},output:{type:"structure",required:["HostedZone"],members:{HostedZone:{shape:"S1z"}}}},UpdateTrafficPolicyComment:{http:{requestUri:"/2013-04-01/trafficpolicy/{Id}/{Version}"},input:{locationName:"UpdateTrafficPolicyCommentRequest",xmlNamespace:{uri:"https://route53.amazonaws.com/doc/2013-04-01/"},type:"structure",required:["Id","Version","Comment"],members:{Id:{location:"uri",locationName:"Id"},Version:{location:"uri",locationName:"Version",type:"integer"},Comment:{}}},output:{type:"structure",required:["TrafficPolicy"],members:{TrafficPolicy:{shape:"S2a"}}}},UpdateTrafficPolicyInstance:{http:{requestUri:"/2013-04-01/trafficpolicyinstance/{Id}"},input:{locationName:"UpdateTrafficPolicyInstanceRequest",xmlNamespace:{uri:"https://route53.amazonaws.com/doc/2013-04-01/"},type:"structure",required:["Id","TTL","TrafficPolicyId","TrafficPolicyVersion"],members:{Id:{location:"uri",locationName:"Id"},TTL:{type:"long"},TrafficPolicyId:{},TrafficPolicyVersion:{type:"integer"}}},output:{type:"structure",required:["TrafficPolicyInstance"],members:{TrafficPolicyInstance:{shape:"S2f"}}}}},shapes:{S3:{type:"structure",members:{VPCRegion:{},VPCId:{}}},S8:{type:"structure",required:["Id","Status","SubmittedAt"],members:{Id:{},Status:{},SubmittedAt:{type:"timestamp"},Comment:{}}},Se:{type:"list",member:{locationName:"Change",type:"structure",required:["Action","ResourceRecordSet"],members:{Action:{},ResourceRecordSet:{shape:"Sh"}}}},Sh:{type:"structure",required:["Name","Type"],members:{Name:{},Type:{},SetIdentifier:{},Weight:{type:"long"},Region:{},GeoLocation:{type:"structure",members:{ContinentCode:{},CountryCode:{},SubdivisionCode:{}}},Failover:{},TTL:{type:"long"},ResourceRecords:{type:"list",member:{locationName:"ResourceRecord",type:"structure",required:["Value"],members:{Value:{}}}},AliasTarget:{type:"structure",required:["HostedZoneId","DNSName","EvaluateTargetHealth"],members:{HostedZoneId:{},DNSName:{},EvaluateTargetHealth:{type:"boolean"}}},HealthCheckId:{},TrafficPolicyInstanceId:{}}},S14:{type:"list",member:{locationName:"Tag",type:"structure",members:{Key:{},Value:{}}}},S1c:{type:"structure",required:["Type"],members:{IPAddress:{},Port:{type:"integer"},Type:{},ResourcePath:{},FullyQualifiedDomainName:{},SearchString:{},RequestInterval:{type:"integer"},FailureThreshold:{type:"integer"},MeasureLatency:{type:"boolean"},Inverted:{type:"boolean"},HealthThreshold:{type:"integer"},ChildHealthChecks:{shape:"S1o"},EnableSNI:{type:"boolean"}}},S1o:{type:"list",member:{locationName:"ChildHealthCheck"}},S1r:{type:"structure",required:["Id","CallerReference","HealthCheckConfig","HealthCheckVersion"],members:{Id:{},CallerReference:{},HealthCheckConfig:{shape:"S1c"},HealthCheckVersion:{type:"long"}}},S1w:{type:"structure",members:{Comment:{},PrivateZone:{type:"boolean"}}},S1z:{type:"structure",required:["Id","Name","CallerReference"],members:{Id:{},Name:{},CallerReference:{},Config:{shape:"S1w"},ResourceRecordSetCount:{type:"long"}}},S21:{type:"structure",required:["NameServers"],members:{Id:{},CallerReference:{},NameServers:{type:"list",member:{locationName:"NameServer"}}}},S2a:{type:"structure",required:["Id","Version","Name","Type","Document"],members:{Id:{},Version:{type:"integer"},Name:{},Type:{},Document:{},Comment:{}}},S2f:{type:"structure",required:["Id","HostedZoneId","Name","TTL","State","Message","TrafficPolicyId","TrafficPolicyVersion","TrafficPolicyType"],members:{Id:{},HostedZoneId:{},Name:{},TTL:{type:"long"},State:{},Message:{},TrafficPolicyId:{},TrafficPolicyVersion:{type:"integer"},TrafficPolicyType:{}}},S31:{type:"structure",required:["Id","Status"],members:{Id:{},SubmittedAt:{type:"timestamp"},Status:{},Comment:{},Submitter:{},Changes:{shape:"Se"}},deprecated:!0},S39:{type:"structure",members:{ContinentCode:{},ContinentName:{},CountryCode:{},CountryName:{},SubdivisionCode:{},SubdivisionName:{}}},S3k:{type:"list",member:{locationName:"HealthCheckObservation",type:"structure",members:{IPAddress:{},StatusReport:{type:"structure",members:{Status:{},CheckedTime:{type:"timestamp"}}}}}},S46:{type:"string",deprecated:!0},S4b:{type:"list",member:{shape:"S31",locationName:"ChangeBatchRecord"},deprecated:!0},S4m:{type:"list",member:{shape:"S1z",locationName:"HostedZone"}},S4x:{type:"structure",members:{ResourceType:{},ResourceId:{},Tags:{shape:"S14"}}},S58:{type:"list",member:{shape:"S2f",locationName:"TrafficPolicyInstance"}}},paginators:{ListHealthChecks:{input_token:"Marker",output_token:"NextMarker",more_results:"IsTruncated",limit_key:"MaxItems",result_key:"HealthChecks"},ListHostedZones:{input_token:"Marker",output_token:"NextMarker",more_results:"IsTruncated",limit_key:"MaxItems",result_key:"HostedZones"},ListResourceRecordSets:{more_results:"IsTruncated",limit_key:"MaxItems",result_key:"ResourceRecordSets",input_token:["StartRecordName","StartRecordType","StartRecordIdentifier"],output_token:["NextRecordName","NextRecordType","NextRecordIdentifier"]}}},a.apiLoader.services.s3={},a.S3=a.Service.defineService("s3",["2006-03-01"]),e("./services/s3"),a.apiLoader.services.s3["2006-03-01"]={version:"2.0",metadata:{apiVersion:"2006-03-01",checksumFormat:"md5",endpointPrefix:"s3",globalEndpoint:"s3.amazonaws.com",protocol:"rest-xml",serviceAbbreviation:"Amazon S3",serviceFullName:"Amazon Simple Storage Service",signatureVersion:"s3",timestampFormat:"rfc822"},operations:{AbortMultipartUpload:{http:{method:"DELETE",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key","UploadId"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",
|
||
locationName:"Key"},UploadId:{location:"querystring",locationName:"uploadId"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},CompleteMultipartUpload:{http:{requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key","UploadId"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},MultipartUpload:{locationName:"CompleteMultipartUpload",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},type:"structure",members:{Parts:{locationName:"Part",type:"list",member:{type:"structure",members:{ETag:{},PartNumber:{type:"integer"}}},flattened:!0}}},UploadId:{location:"querystring",locationName:"uploadId"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"MultipartUpload"},output:{type:"structure",members:{Location:{},Bucket:{},Key:{},Expiration:{location:"header",locationName:"x-amz-expiration"},ETag:{},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},VersionId:{location:"header",locationName:"x-amz-version-id"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},CopyObject:{http:{method:"PUT",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","CopySource","Key"],members:{ACL:{location:"header",locationName:"x-amz-acl"},Bucket:{location:"uri",locationName:"Bucket"},CacheControl:{location:"header",locationName:"Cache-Control"},ContentDisposition:{location:"header",locationName:"Content-Disposition"},ContentEncoding:{location:"header",locationName:"Content-Encoding"},ContentLanguage:{location:"header",locationName:"Content-Language"},ContentType:{location:"header",locationName:"Content-Type"},CopySource:{location:"header",locationName:"x-amz-copy-source"},CopySourceIfMatch:{location:"header",locationName:"x-amz-copy-source-if-match"},CopySourceIfModifiedSince:{location:"header",locationName:"x-amz-copy-source-if-modified-since",type:"timestamp"},CopySourceIfNoneMatch:{location:"header",locationName:"x-amz-copy-source-if-none-match"},CopySourceIfUnmodifiedSince:{location:"header",locationName:"x-amz-copy-source-if-unmodified-since",type:"timestamp"},Expires:{location:"header",locationName:"Expires",type:"timestamp"},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"},Key:{location:"uri",locationName:"Key"},Metadata:{shape:"S11",location:"headers",locationName:"x-amz-meta-"},MetadataDirective:{location:"header",locationName:"x-amz-metadata-directive"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},StorageClass:{location:"header",locationName:"x-amz-storage-class"},WebsiteRedirectLocation:{location:"header",locationName:"x-amz-website-redirect-location"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},CopySourceSSECustomerAlgorithm:{location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-algorithm"},CopySourceSSECustomerKey:{shape:"S1b",location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-key"},CopySourceSSECustomerKeyMD5:{location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-key-MD5"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{CopyObjectResult:{type:"structure",members:{ETag:{},LastModified:{type:"timestamp"}}},Expiration:{location:"header",locationName:"x-amz-expiration"},CopySourceVersionId:{location:"header",locationName:"x-amz-copy-source-version-id"},VersionId:{location:"header",locationName:"x-amz-version-id"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}},payload:"CopyObjectResult"},alias:"PutObjectCopy"},CreateBucket:{http:{method:"PUT",requestUri:"/{Bucket}"},input:{type:"structure",required:["Bucket"],members:{ACL:{location:"header",locationName:"x-amz-acl"},Bucket:{location:"uri",locationName:"Bucket"},CreateBucketConfiguration:{locationName:"CreateBucketConfiguration",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},type:"structure",members:{LocationConstraint:{}}},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWrite:{location:"header",locationName:"x-amz-grant-write"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"}},payload:"CreateBucketConfiguration"},output:{type:"structure",members:{Location:{location:"header",locationName:"Location"}}},alias:"PutBucket"},CreateMultipartUpload:{http:{requestUri:"/{Bucket}/{Key+}?uploads"},input:{type:"structure",required:["Bucket","Key"],members:{ACL:{location:"header",locationName:"x-amz-acl"},Bucket:{location:"uri",locationName:"Bucket"},CacheControl:{location:"header",locationName:"Cache-Control"},ContentDisposition:{location:"header",locationName:"Content-Disposition"},ContentEncoding:{location:"header",locationName:"Content-Encoding"},ContentLanguage:{location:"header",locationName:"Content-Language"},ContentType:{location:"header",locationName:"Content-Type"},Expires:{location:"header",locationName:"Expires",type:"timestamp"},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"},Key:{location:"uri",locationName:"Key"},Metadata:{shape:"S11",location:"headers",locationName:"x-amz-meta-"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},StorageClass:{location:"header",locationName:"x-amz-storage-class"},WebsiteRedirectLocation:{location:"header",locationName:"x-amz-website-redirect-location"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{Bucket:{locationName:"Bucket"},Key:{},UploadId:{},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}},alias:"InitiateMultipartUpload"},DeleteBucket:{http:{method:"DELETE",requestUri:"/{Bucket}"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketCors:{http:{method:"DELETE",requestUri:"/{Bucket}?cors"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketLifecycle:{http:{method:"DELETE",requestUri:"/{Bucket}?lifecycle"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketPolicy:{http:{method:"DELETE",requestUri:"/{Bucket}?policy"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketReplication:{http:{method:"DELETE",requestUri:"/{Bucket}?replication"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketTagging:{http:{method:"DELETE",requestUri:"/{Bucket}?tagging"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteBucketWebsite:{http:{method:"DELETE",requestUri:"/{Bucket}?website"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},DeleteObject:{http:{method:"DELETE",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},MFA:{location:"header",locationName:"x-amz-mfa"},VersionId:{location:"querystring",locationName:"versionId"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{DeleteMarker:{location:"header",locationName:"x-amz-delete-marker",type:"boolean"},VersionId:{location:"header",locationName:"x-amz-version-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},DeleteObjects:{http:{requestUri:"/{Bucket}?delete"},input:{type:"structure",required:["Bucket","Delete"],members:{Bucket:{location:"uri",locationName:"Bucket"},Delete:{locationName:"Delete",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},type:"structure",required:["Objects"],members:{Objects:{locationName:"Object",type:"list",member:{type:"structure",required:["Key"],members:{Key:{},VersionId:{}}},flattened:!0},Quiet:{type:"boolean"}}},MFA:{location:"header",locationName:"x-amz-mfa"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"Delete"},output:{type:"structure",members:{Deleted:{type:"list",member:{type:"structure",members:{Key:{},VersionId:{},DeleteMarker:{type:"boolean"},DeleteMarkerVersionId:{}}},flattened:!0},RequestCharged:{location:"header",locationName:"x-amz-request-charged"},Errors:{locationName:"Error",type:"list",member:{type:"structure",members:{Key:{},VersionId:{},Code:{},Message:{}}},flattened:!0}}},alias:"DeleteMultipleObjects"},GetBucketAcl:{http:{method:"GET",requestUri:"/{Bucket}?acl"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{Owner:{shape:"S2f"},Grants:{shape:"S2i",locationName:"AccessControlList"}}}},GetBucketCors:{http:{method:"GET",requestUri:"/{Bucket}?cors"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{CORSRules:{shape:"S2r",locationName:"CORSRule"}}}},GetBucketLifecycle:{http:{method:"GET",requestUri:"/{Bucket}?lifecycle"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{Rules:{shape:"S34",locationName:"Rule"}}},deprecated:!0},GetBucketLifecycleConfiguration:{http:{method:"GET",requestUri:"/{Bucket}?lifecycle"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{Rules:{shape:"S3h",locationName:"Rule"}}}},GetBucketLocation:{http:{method:"GET",requestUri:"/{Bucket}?location"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{LocationConstraint:{}}}},GetBucketLogging:{http:{method:"GET",requestUri:"/{Bucket}?logging"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{LoggingEnabled:{shape:"S3p"}}}},GetBucketNotification:{http:{method:"GET",requestUri:"/{Bucket}?notification"},input:{shape:"S3v"},output:{shape:"S3w"},deprecated:!0},GetBucketNotificationConfiguration:{http:{method:"GET",requestUri:"/{Bucket}?notification"},input:{shape:"S3v"},output:{shape:"S47"}},GetBucketPolicy:{http:{method:"GET",requestUri:"/{Bucket}?policy"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{Policy:{}},payload:"Policy"}},GetBucketReplication:{http:{method:"GET",requestUri:"/{Bucket}?replication"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{ReplicationConfiguration:{shape:"S4q"}},payload:"ReplicationConfiguration"}},GetBucketRequestPayment:{http:{method:"GET",requestUri:"/{Bucket}?requestPayment"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{Payer:{}}}},GetBucketTagging:{http:{method:"GET",requestUri:"/{Bucket}?tagging"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",required:["TagSet"],members:{TagSet:{shape:"S51"}}}},GetBucketVersioning:{http:{method:"GET",requestUri:"/{Bucket}?versioning"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{Status:{},MFADelete:{locationName:"MfaDelete"}}}},GetBucketWebsite:{http:{method:"GET",requestUri:"/{Bucket}?website"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},output:{type:"structure",members:{RedirectAllRequestsTo:{shape:"S5a"},IndexDocument:{shape:"S5d"},ErrorDocument:{shape:"S5f"},RoutingRules:{shape:"S5g"}}}},GetObject:{http:{method:"GET",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},IfMatch:{location:"header",locationName:"If-Match"},IfModifiedSince:{location:"header",locationName:"If-Modified-Since",type:"timestamp"},IfNoneMatch:{location:"header",locationName:"If-None-Match"},IfUnmodifiedSince:{location:"header",locationName:"If-Unmodified-Since",type:"timestamp"},Key:{location:"uri",locationName:"Key"},Range:{location:"header",locationName:"Range"},ResponseCacheControl:{location:"querystring",locationName:"response-cache-control"},ResponseContentDisposition:{location:"querystring",locationName:"response-content-disposition"},ResponseContentEncoding:{location:"querystring",locationName:"response-content-encoding"},ResponseContentLanguage:{location:"querystring",locationName:"response-content-language"},ResponseContentType:{location:"querystring",locationName:"response-content-type"},ResponseExpires:{location:"querystring",locationName:"response-expires",type:"timestamp"},VersionId:{location:"querystring",locationName:"versionId"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{Body:{streaming:!0,type:"blob"},DeleteMarker:{location:"header",locationName:"x-amz-delete-marker",type:"boolean"},AcceptRanges:{location:"header",locationName:"accept-ranges"},Expiration:{location:"header",locationName:"x-amz-expiration"},Restore:{location:"header",locationName:"x-amz-restore"},LastModified:{location:"header",locationName:"Last-Modified",type:"timestamp"},ContentLength:{location:"header",locationName:"Content-Length",type:"integer"},ETag:{location:"header",locationName:"ETag"},MissingMeta:{location:"header",locationName:"x-amz-missing-meta",type:"integer"},VersionId:{location:"header",locationName:"x-amz-version-id"},CacheControl:{location:"header",locationName:"Cache-Control"},ContentDisposition:{location:"header",locationName:"Content-Disposition"},ContentEncoding:{location:"header",locationName:"Content-Encoding"},ContentLanguage:{location:"header",locationName:"Content-Language"},ContentRange:{location:"header",locationName:"Content-Range"},ContentType:{location:"header",locationName:"Content-Type"},Expires:{location:"header",locationName:"Expires",type:"timestamp"},WebsiteRedirectLocation:{location:"header",locationName:"x-amz-website-redirect-location"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},Metadata:{shape:"S11",location:"headers",locationName:"x-amz-meta-"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},StorageClass:{location:"header",locationName:"x-amz-storage-class"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"},ReplicationStatus:{location:"header",locationName:"x-amz-replication-status"}},payload:"Body"}},GetObjectAcl:{http:{method:"GET",requestUri:"/{Bucket}/{Key+}?acl"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},VersionId:{location:"querystring",locationName:"versionId"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{Owner:{shape:"S2f"},Grants:{shape:"S2i",locationName:"AccessControlList"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},GetObjectTorrent:{http:{method:"GET",requestUri:"/{Bucket}/{Key+}?torrent"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{Body:{streaming:!0,type:"blob"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}},payload:"Body"}},HeadBucket:{http:{method:"HEAD",requestUri:"/{Bucket}"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}}},HeadObject:{http:{method:"HEAD",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},IfMatch:{location:"header",locationName:"If-Match"},IfModifiedSince:{location:"header",locationName:"If-Modified-Since",type:"timestamp"},IfNoneMatch:{location:"header",locationName:"If-None-Match"},IfUnmodifiedSince:{location:"header",locationName:"If-Unmodified-Since",type:"timestamp"},Key:{location:"uri",locationName:"Key"},Range:{location:"header",locationName:"Range"},VersionId:{location:"querystring",locationName:"versionId"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{DeleteMarker:{location:"header",locationName:"x-amz-delete-marker",type:"boolean"},AcceptRanges:{location:"header",locationName:"accept-ranges"},Expiration:{location:"header",locationName:"x-amz-expiration"},Restore:{location:"header",locationName:"x-amz-restore"},LastModified:{location:"header",locationName:"Last-Modified",type:"timestamp"},ContentLength:{location:"header",locationName:"Content-Length",type:"integer"},ETag:{location:"header",locationName:"ETag"},MissingMeta:{location:"header",locationName:"x-amz-missing-meta",type:"integer"},VersionId:{location:"header",locationName:"x-amz-version-id"},CacheControl:{location:"header",locationName:"Cache-Control"},ContentDisposition:{location:"header",locationName:"Content-Disposition"},ContentEncoding:{location:"header",locationName:"Content-Encoding"},ContentLanguage:{location:"header",locationName:"Content-Language"},ContentType:{location:"header",locationName:"Content-Type"},Expires:{location:"header",locationName:"Expires",type:"timestamp"},WebsiteRedirectLocation:{location:"header",locationName:"x-amz-website-redirect-location"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},Metadata:{shape:"S11",location:"headers",locationName:"x-amz-meta-"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},StorageClass:{location:"header",locationName:"x-amz-storage-class"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"},ReplicationStatus:{location:"header",locationName:"x-amz-replication-status"}}}},ListBuckets:{http:{method:"GET"},output:{type:"structure",members:{Buckets:{type:"list",member:{locationName:"Bucket",type:"structure",members:{Name:{},CreationDate:{type:"timestamp"}}}},Owner:{shape:"S2f"}}},alias:"GetService"},ListMultipartUploads:{http:{method:"GET",requestUri:"/{Bucket}?uploads"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"},Delimiter:{location:"querystring",locationName:"delimiter"},EncodingType:{location:"querystring",locationName:"encoding-type"},KeyMarker:{location:"querystring",locationName:"key-marker"},MaxUploads:{location:"querystring",locationName:"max-uploads",type:"integer"},Prefix:{location:"querystring",locationName:"prefix"},UploadIdMarker:{location:"querystring",locationName:"upload-id-marker"}}},output:{type:"structure",members:{Bucket:{},KeyMarker:{},UploadIdMarker:{},NextKeyMarker:{},Prefix:{},Delimiter:{},NextUploadIdMarker:{},MaxUploads:{type:"integer"},IsTruncated:{type:"boolean"},Uploads:{locationName:"Upload",type:"list",member:{type:"structure",members:{UploadId:{},Key:{},Initiated:{type:"timestamp"},StorageClass:{},Owner:{shape:"S2f"},Initiator:{shape:"S6x"}}},flattened:!0},CommonPrefixes:{shape:"S6y"},EncodingType:{}}}},ListObjectVersions:{http:{method:"GET",requestUri:"/{Bucket}?versions"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"},Delimiter:{location:"querystring",locationName:"delimiter"},EncodingType:{location:"querystring",locationName:"encoding-type"},KeyMarker:{location:"querystring",locationName:"key-marker"},MaxKeys:{location:"querystring",locationName:"max-keys",type:"integer"},Prefix:{location:"querystring",locationName:"prefix"},VersionIdMarker:{location:"querystring",locationName:"version-id-marker"}}},output:{type:"structure",members:{IsTruncated:{type:"boolean"},KeyMarker:{},VersionIdMarker:{},NextKeyMarker:{},NextVersionIdMarker:{},Versions:{locationName:"Version",type:"list",member:{type:"structure",members:{ETag:{},Size:{type:"integer"},StorageClass:{},Key:{},VersionId:{},IsLatest:{type:"boolean"},LastModified:{type:"timestamp"},Owner:{shape:"S2f"}}},flattened:!0},DeleteMarkers:{locationName:"DeleteMarker",type:"list",member:{type:"structure",members:{Owner:{shape:"S2f"},Key:{},VersionId:{},IsLatest:{type:"boolean"},LastModified:{type:"timestamp"}}},flattened:!0},Name:{},Prefix:{},Delimiter:{},MaxKeys:{type:"integer"},CommonPrefixes:{shape:"S6y"},EncodingType:{}}},alias:"GetBucketObjectVersions"},ListObjects:{http:{method:"GET",requestUri:"/{Bucket}"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"},Delimiter:{location:"querystring",locationName:"delimiter"},EncodingType:{location:"querystring",locationName:"encoding-type"},Marker:{location:"querystring",locationName:"marker"},MaxKeys:{location:"querystring",locationName:"max-keys",type:"integer"},Prefix:{location:"querystring",locationName:"prefix"}}},output:{type:"structure",members:{IsTruncated:{type:"boolean"},Marker:{},NextMarker:{},Contents:{type:"list",member:{type:"structure",members:{Key:{},LastModified:{type:"timestamp"},ETag:{},Size:{type:"integer"},StorageClass:{},Owner:{shape:"S2f"}}},flattened:!0},Name:{},Prefix:{},Delimiter:{},MaxKeys:{type:"integer"},CommonPrefixes:{shape:"S6y"},EncodingType:{}}},alias:"GetBucket"},ListParts:{http:{method:"GET",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key","UploadId"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},MaxParts:{location:"querystring",locationName:"max-parts",type:"integer"},PartNumberMarker:{location:"querystring",locationName:"part-number-marker",type:"integer"},UploadId:{location:"querystring",locationName:"uploadId"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{Bucket:{},Key:{},UploadId:{},PartNumberMarker:{type:"integer"},NextPartNumberMarker:{type:"integer"},MaxParts:{type:"integer"},IsTruncated:{type:"boolean"},Parts:{locationName:"Part",type:"list",member:{type:"structure",members:{PartNumber:{type:"integer"},LastModified:{type:"timestamp"},ETag:{},Size:{type:"integer"}}},flattened:!0},Initiator:{shape:"S6x"},Owner:{shape:"S2f"},StorageClass:{},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},PutBucketAcl:{http:{method:"PUT",requestUri:"/{Bucket}?acl"},input:{type:"structure",required:["Bucket"],members:{ACL:{location:"header",locationName:"x-amz-acl"},AccessControlPolicy:{shape:"S7r",locationName:"AccessControlPolicy",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"}},Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWrite:{location:"header",locationName:"x-amz-grant-write"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"}},payload:"AccessControlPolicy"}},PutBucketCors:{http:{method:"PUT",requestUri:"/{Bucket}?cors"},input:{type:"structure",required:["Bucket","CORSConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},CORSConfiguration:{locationName:"CORSConfiguration",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},type:"structure",required:["CORSRules"],members:{CORSRules:{shape:"S2r",locationName:"CORSRule"}}},ContentMD5:{location:"header",locationName:"Content-MD5"}},payload:"CORSConfiguration"}},PutBucketLifecycle:{http:{method:"PUT",requestUri:"/{Bucket}?lifecycle"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},LifecycleConfiguration:{locationName:"LifecycleConfiguration",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},type:"structure",required:["Rules"],members:{Rules:{shape:"S34",locationName:"Rule"}}}},payload:"LifecycleConfiguration"},deprecated:!0},PutBucketLifecycleConfiguration:{http:{method:"PUT",requestUri:"/{Bucket}?lifecycle"},input:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"},LifecycleConfiguration:{locationName:"LifecycleConfiguration",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},type:"structure",required:["Rules"],members:{Rules:{shape:"S3h",locationName:"Rule"}}}},payload:"LifecycleConfiguration"}},PutBucketLogging:{http:{method:"PUT",requestUri:"/{Bucket}?logging"},input:{type:"structure",required:["Bucket","BucketLoggingStatus"],members:{Bucket:{location:"uri",locationName:"Bucket"},BucketLoggingStatus:{locationName:"BucketLoggingStatus",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},type:"structure",members:{LoggingEnabled:{shape:"S3p"}}},ContentMD5:{location:"header",locationName:"Content-MD5"}},payload:"BucketLoggingStatus"}},PutBucketNotification:{http:{method:"PUT",requestUri:"/{Bucket}?notification"},input:{type:"structure",required:["Bucket","NotificationConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},NotificationConfiguration:{shape:"S3w",locationName:"NotificationConfiguration",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"}}},payload:"NotificationConfiguration"},deprecated:!0},PutBucketNotificationConfiguration:{http:{method:"PUT",requestUri:"/{Bucket}?notification"},input:{type:"structure",required:["Bucket","NotificationConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},NotificationConfiguration:{shape:"S47",locationName:"NotificationConfiguration",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"}}},payload:"NotificationConfiguration"}},PutBucketPolicy:{http:{method:"PUT",requestUri:"/{Bucket}?policy"},input:{type:"structure",required:["Bucket","Policy"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},Policy:{}},payload:"Policy"}},PutBucketReplication:{http:{method:"PUT",requestUri:"/{Bucket}?replication"},input:{type:"structure",required:["Bucket","ReplicationConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},ReplicationConfiguration:{shape:"S4q",locationName:"ReplicationConfiguration",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"}}},payload:"ReplicationConfiguration"}},PutBucketRequestPayment:{http:{method:"PUT",requestUri:"/{Bucket}?requestPayment"},input:{type:"structure",required:["Bucket","RequestPaymentConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},RequestPaymentConfiguration:{locationName:"RequestPaymentConfiguration",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},type:"structure",required:["Payer"],members:{Payer:{}}}},payload:"RequestPaymentConfiguration"}},PutBucketTagging:{http:{method:"PUT",requestUri:"/{Bucket}?tagging"},input:{type:"structure",required:["Bucket","Tagging"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},Tagging:{locationName:"Tagging",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},type:"structure",required:["TagSet"],members:{TagSet:{shape:"S51"}}}},payload:"Tagging"}},PutBucketVersioning:{http:{method:"PUT",requestUri:"/{Bucket}?versioning"},input:{type:"structure",required:["Bucket","VersioningConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},MFA:{location:"header",locationName:"x-amz-mfa"},VersioningConfiguration:{locationName:"VersioningConfiguration",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},type:"structure",members:{MFADelete:{locationName:"MfaDelete"},Status:{}}}},payload:"VersioningConfiguration"}},PutBucketWebsite:{http:{method:"PUT",requestUri:"/{Bucket}?website"},input:{type:"structure",required:["Bucket","WebsiteConfiguration"],members:{Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},WebsiteConfiguration:{locationName:"WebsiteConfiguration",xmlNamespace:{
|
||
uri:"http://s3.amazonaws.com/doc/2006-03-01/"},type:"structure",members:{ErrorDocument:{shape:"S5f"},IndexDocument:{shape:"S5d"},RedirectAllRequestsTo:{shape:"S5a"},RoutingRules:{shape:"S5g"}}}},payload:"WebsiteConfiguration"}},PutObject:{http:{method:"PUT",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key"],members:{ACL:{location:"header",locationName:"x-amz-acl"},Body:{streaming:!0,type:"blob"},Bucket:{location:"uri",locationName:"Bucket"},CacheControl:{location:"header",locationName:"Cache-Control"},ContentDisposition:{location:"header",locationName:"Content-Disposition"},ContentEncoding:{location:"header",locationName:"Content-Encoding"},ContentLanguage:{location:"header",locationName:"Content-Language"},ContentLength:{location:"header",locationName:"Content-Length",type:"integer"},ContentMD5:{location:"header",locationName:"Content-MD5"},ContentType:{location:"header",locationName:"Content-Type"},Expires:{location:"header",locationName:"Expires",type:"timestamp"},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"},Key:{location:"uri",locationName:"Key"},Metadata:{shape:"S11",location:"headers",locationName:"x-amz-meta-"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},StorageClass:{location:"header",locationName:"x-amz-storage-class"},WebsiteRedirectLocation:{location:"header",locationName:"x-amz-website-redirect-location"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"Body"},output:{type:"structure",members:{Expiration:{location:"header",locationName:"x-amz-expiration"},ETag:{location:"header",locationName:"ETag"},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},VersionId:{location:"header",locationName:"x-amz-version-id"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},PutObjectAcl:{http:{method:"PUT",requestUri:"/{Bucket}/{Key+}?acl"},input:{type:"structure",required:["Bucket","Key"],members:{ACL:{location:"header",locationName:"x-amz-acl"},AccessControlPolicy:{shape:"S7r",locationName:"AccessControlPolicy",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"}},Bucket:{location:"uri",locationName:"Bucket"},ContentMD5:{location:"header",locationName:"Content-MD5"},GrantFullControl:{location:"header",locationName:"x-amz-grant-full-control"},GrantRead:{location:"header",locationName:"x-amz-grant-read"},GrantReadACP:{location:"header",locationName:"x-amz-grant-read-acp"},GrantWrite:{location:"header",locationName:"x-amz-grant-write"},GrantWriteACP:{location:"header",locationName:"x-amz-grant-write-acp"},Key:{location:"uri",locationName:"Key"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"AccessControlPolicy"},output:{type:"structure",members:{RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},RestoreObject:{http:{requestUri:"/{Bucket}/{Key+}?restore"},input:{type:"structure",required:["Bucket","Key"],members:{Bucket:{location:"uri",locationName:"Bucket"},Key:{location:"uri",locationName:"Key"},VersionId:{location:"querystring",locationName:"versionId"},RestoreRequest:{locationName:"RestoreRequest",xmlNamespace:{uri:"http://s3.amazonaws.com/doc/2006-03-01/"},type:"structure",required:["Days"],members:{Days:{type:"integer"}}},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"RestoreRequest"},output:{type:"structure",members:{RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}},alias:"PostObjectRestore"},UploadPart:{http:{method:"PUT",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","Key","PartNumber","UploadId"],members:{Body:{streaming:!0,type:"blob"},Bucket:{location:"uri",locationName:"Bucket"},ContentLength:{location:"header",locationName:"Content-Length",type:"integer"},ContentMD5:{location:"header",locationName:"Content-MD5"},Key:{location:"uri",locationName:"Key"},PartNumber:{location:"querystring",locationName:"partNumber",type:"integer"},UploadId:{location:"querystring",locationName:"uploadId"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}},payload:"Body"},output:{type:"structure",members:{ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},ETag:{location:"header",locationName:"ETag"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}}}},UploadPartCopy:{http:{method:"PUT",requestUri:"/{Bucket}/{Key+}"},input:{type:"structure",required:["Bucket","CopySource","Key","PartNumber","UploadId"],members:{Bucket:{location:"uri",locationName:"Bucket"},CopySource:{location:"header",locationName:"x-amz-copy-source"},CopySourceIfMatch:{location:"header",locationName:"x-amz-copy-source-if-match"},CopySourceIfModifiedSince:{location:"header",locationName:"x-amz-copy-source-if-modified-since",type:"timestamp"},CopySourceIfNoneMatch:{location:"header",locationName:"x-amz-copy-source-if-none-match"},CopySourceIfUnmodifiedSince:{location:"header",locationName:"x-amz-copy-source-if-unmodified-since",type:"timestamp"},CopySourceRange:{location:"header",locationName:"x-amz-copy-source-range"},Key:{location:"uri",locationName:"Key"},PartNumber:{location:"querystring",locationName:"partNumber",type:"integer"},UploadId:{location:"querystring",locationName:"uploadId"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKey:{shape:"S18",location:"header",locationName:"x-amz-server-side-encryption-customer-key"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},CopySourceSSECustomerAlgorithm:{location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-algorithm"},CopySourceSSECustomerKey:{shape:"S1b",location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-key"},CopySourceSSECustomerKeyMD5:{location:"header",locationName:"x-amz-copy-source-server-side-encryption-customer-key-MD5"},RequestPayer:{location:"header",locationName:"x-amz-request-payer"}}},output:{type:"structure",members:{CopySourceVersionId:{location:"header",locationName:"x-amz-copy-source-version-id"},CopyPartResult:{type:"structure",members:{ETag:{},LastModified:{type:"timestamp"}}},ServerSideEncryption:{location:"header",locationName:"x-amz-server-side-encryption"},SSECustomerAlgorithm:{location:"header",locationName:"x-amz-server-side-encryption-customer-algorithm"},SSECustomerKeyMD5:{location:"header",locationName:"x-amz-server-side-encryption-customer-key-MD5"},SSEKMSKeyId:{shape:"Sj",location:"header",locationName:"x-amz-server-side-encryption-aws-kms-key-id"},RequestCharged:{location:"header",locationName:"x-amz-request-charged"}},payload:"CopyPartResult"}}},shapes:{Sj:{type:"string",sensitive:!0},S11:{type:"map",key:{},value:{}},S18:{type:"blob",sensitive:!0},S1b:{type:"blob",sensitive:!0},S2f:{type:"structure",members:{DisplayName:{},ID:{}}},S2i:{type:"list",member:{locationName:"Grant",type:"structure",members:{Grantee:{shape:"S2k"},Permission:{}}}},S2k:{type:"structure",required:["Type"],members:{DisplayName:{},EmailAddress:{},ID:{},Type:{locationName:"xsi:type",xmlAttribute:!0},URI:{}},xmlNamespace:{prefix:"xsi",uri:"http://www.w3.org/2001/XMLSchema-instance"}},S2r:{type:"list",member:{type:"structure",required:["AllowedMethods","AllowedOrigins"],members:{AllowedHeaders:{locationName:"AllowedHeader",type:"list",member:{},flattened:!0},AllowedMethods:{locationName:"AllowedMethod",type:"list",member:{},flattened:!0},AllowedOrigins:{locationName:"AllowedOrigin",type:"list",member:{},flattened:!0},ExposeHeaders:{locationName:"ExposeHeader",type:"list",member:{},flattened:!0},MaxAgeSeconds:{type:"integer"}}},flattened:!0},S34:{type:"list",member:{type:"structure",required:["Prefix","Status"],members:{Expiration:{shape:"S36"},ID:{},Prefix:{},Status:{},Transition:{shape:"S3b"},NoncurrentVersionTransition:{shape:"S3d"},NoncurrentVersionExpiration:{shape:"S3e"}}},flattened:!0},S36:{type:"structure",members:{Date:{shape:"S37"},Days:{type:"integer"}}},S37:{type:"timestamp",timestampFormat:"iso8601"},S3b:{type:"structure",members:{Date:{shape:"S37"},Days:{type:"integer"},StorageClass:{}}},S3d:{type:"structure",members:{NoncurrentDays:{type:"integer"},StorageClass:{}}},S3e:{type:"structure",members:{NoncurrentDays:{type:"integer"}}},S3h:{type:"list",member:{type:"structure",required:["Prefix","Status"],members:{Expiration:{shape:"S36"},ID:{},Prefix:{},Status:{},Transitions:{locationName:"Transition",type:"list",member:{shape:"S3b"},flattened:!0},NoncurrentVersionTransitions:{locationName:"NoncurrentVersionTransition",type:"list",member:{shape:"S3d"},flattened:!0},NoncurrentVersionExpiration:{shape:"S3e"}}},flattened:!0},S3p:{type:"structure",members:{TargetBucket:{},TargetGrants:{type:"list",member:{locationName:"Grant",type:"structure",members:{Grantee:{shape:"S2k"},Permission:{}}}},TargetPrefix:{}}},S3v:{type:"structure",required:["Bucket"],members:{Bucket:{location:"uri",locationName:"Bucket"}}},S3w:{type:"structure",members:{TopicConfiguration:{type:"structure",members:{Id:{},Events:{shape:"S3z",locationName:"Event"},Event:{deprecated:!0},Topic:{}}},QueueConfiguration:{type:"structure",members:{Id:{},Event:{deprecated:!0},Events:{shape:"S3z",locationName:"Event"},Queue:{}}},CloudFunctionConfiguration:{type:"structure",members:{Id:{},Event:{deprecated:!0},Events:{shape:"S3z",locationName:"Event"},CloudFunction:{},InvocationRole:{}}}}},S3z:{type:"list",member:{},flattened:!0},S47:{type:"structure",members:{TopicConfigurations:{locationName:"TopicConfiguration",type:"list",member:{type:"structure",required:["TopicArn","Events"],members:{Id:{},TopicArn:{locationName:"Topic"},Events:{shape:"S3z",locationName:"Event"},Filter:{shape:"S4a"}}},flattened:!0},QueueConfigurations:{locationName:"QueueConfiguration",type:"list",member:{type:"structure",required:["QueueArn","Events"],members:{Id:{},QueueArn:{locationName:"Queue"},Events:{shape:"S3z",locationName:"Event"},Filter:{shape:"S4a"}}},flattened:!0},LambdaFunctionConfigurations:{locationName:"CloudFunctionConfiguration",type:"list",member:{type:"structure",required:["LambdaFunctionArn","Events"],members:{Id:{},LambdaFunctionArn:{locationName:"CloudFunction"},Events:{shape:"S3z",locationName:"Event"},Filter:{shape:"S4a"}}},flattened:!0}}},S4a:{type:"structure",members:{Key:{locationName:"S3Key",type:"structure",members:{FilterRules:{locationName:"FilterRule",type:"list",member:{type:"structure",members:{Name:{},Value:{}}},flattened:!0}}}}},S4q:{type:"structure",required:["Role","Rules"],members:{Role:{},Rules:{locationName:"Rule",type:"list",member:{type:"structure",required:["Prefix","Status","Destination"],members:{ID:{},Prefix:{},Status:{},Destination:{type:"structure",required:["Bucket"],members:{Bucket:{},StorageClass:{}}}}},flattened:!0}}},S51:{type:"list",member:{locationName:"Tag",type:"structure",required:["Key","Value"],members:{Key:{},Value:{}}}},S5a:{type:"structure",required:["HostName"],members:{HostName:{},Protocol:{}}},S5d:{type:"structure",required:["Suffix"],members:{Suffix:{}}},S5f:{type:"structure",required:["Key"],members:{Key:{}}},S5g:{type:"list",member:{locationName:"RoutingRule",type:"structure",required:["Redirect"],members:{Condition:{type:"structure",members:{HttpErrorCodeReturnedEquals:{},KeyPrefixEquals:{}}},Redirect:{type:"structure",members:{HostName:{},HttpRedirectCode:{},Protocol:{},ReplaceKeyPrefixWith:{},ReplaceKeyWith:{}}}}}},S6x:{type:"structure",members:{ID:{},DisplayName:{}}},S6y:{type:"list",member:{type:"structure",members:{Prefix:{}}},flattened:!0},S7r:{type:"structure",members:{Grants:{shape:"S2i",locationName:"AccessControlList"},Owner:{shape:"S2f"}}}},paginators:{ListBuckets:{result_key:"Buckets"},ListMultipartUploads:{limit_key:"MaxUploads",more_results:"IsTruncated",output_token:["NextKeyMarker","NextUploadIdMarker"],input_token:["KeyMarker","UploadIdMarker"],result_key:["Uploads","CommonPrefixes"]},ListObjectVersions:{more_results:"IsTruncated",limit_key:"MaxKeys",output_token:["NextKeyMarker","NextVersionIdMarker"],input_token:["KeyMarker","VersionIdMarker"],result_key:["Versions","DeleteMarkers","CommonPrefixes"]},ListObjects:{more_results:"IsTruncated",limit_key:"MaxKeys",output_token:"NextMarker || Contents[-1].Key",input_token:"Marker",result_key:["Contents","CommonPrefixes"]},ListParts:{more_results:"IsTruncated",limit_key:"MaxParts",output_token:"NextPartNumberMarker",input_token:"PartNumberMarker",result_key:"Parts"}},waiters:{__default__:{interval:5,max_attempts:20},BucketExists:{operation:"HeadBucket",ignore_errors:[404],success_type:"output"},BucketNotExists:{operation:"HeadBucket",success_type:"error",success_value:404},ObjectExists:{operation:"HeadObject",ignore_errors:[404],success_type:"output"},ObjectNotExists:{operation:"HeadObject",success_type:"error",success_value:404}}},a.apiLoader.services.sns={},a.SNS=a.Service.defineService("sns",["2010-03-31"]),a.apiLoader.services.sns["2010-03-31"]={metadata:{apiVersion:"2010-03-31",endpointPrefix:"sns",serviceAbbreviation:"Amazon SNS",serviceFullName:"Amazon Simple Notification Service",signatureVersion:"v4",xmlNamespace:"http://sns.amazonaws.com/doc/2010-03-31/",protocol:"query"},operations:{AddPermission:{input:{type:"structure",required:["TopicArn","Label","AWSAccountId","ActionName"],members:{TopicArn:{},Label:{},AWSAccountId:{type:"list",member:{}},ActionName:{type:"list",member:{}}}},http:{}},ConfirmSubscription:{input:{type:"structure",required:["TopicArn","Token"],members:{TopicArn:{},Token:{},AuthenticateOnUnsubscribe:{}}},output:{resultWrapper:"ConfirmSubscriptionResult",type:"structure",members:{SubscriptionArn:{}}},http:{}},CreatePlatformApplication:{input:{type:"structure",required:["Name","Platform","Attributes"],members:{Name:{},Platform:{},Attributes:{shape:"Sf"}}},output:{resultWrapper:"CreatePlatformApplicationResult",type:"structure",members:{PlatformApplicationArn:{}}},http:{}},CreatePlatformEndpoint:{input:{type:"structure",required:["PlatformApplicationArn","Token"],members:{PlatformApplicationArn:{},Token:{},CustomUserData:{},Attributes:{shape:"Sf"}}},output:{resultWrapper:"CreatePlatformEndpointResult",type:"structure",members:{EndpointArn:{}}},http:{}},CreateTopic:{input:{type:"structure",required:["Name"],members:{Name:{}}},output:{resultWrapper:"CreateTopicResult",type:"structure",members:{TopicArn:{}}},http:{}},DeleteEndpoint:{input:{type:"structure",required:["EndpointArn"],members:{EndpointArn:{}}},http:{}},DeletePlatformApplication:{input:{type:"structure",required:["PlatformApplicationArn"],members:{PlatformApplicationArn:{}}},http:{}},DeleteTopic:{input:{type:"structure",required:["TopicArn"],members:{TopicArn:{}}},http:{}},GetEndpointAttributes:{input:{type:"structure",required:["EndpointArn"],members:{EndpointArn:{}}},output:{resultWrapper:"GetEndpointAttributesResult",type:"structure",members:{Attributes:{shape:"Sf"}}},http:{}},GetPlatformApplicationAttributes:{input:{type:"structure",required:["PlatformApplicationArn"],members:{PlatformApplicationArn:{}}},output:{resultWrapper:"GetPlatformApplicationAttributesResult",type:"structure",members:{Attributes:{shape:"Sf"}}},http:{}},GetSubscriptionAttributes:{input:{type:"structure",required:["SubscriptionArn"],members:{SubscriptionArn:{}}},output:{resultWrapper:"GetSubscriptionAttributesResult",type:"structure",members:{Attributes:{type:"map",key:{},value:{}}}},http:{}},GetTopicAttributes:{input:{type:"structure",required:["TopicArn"],members:{TopicArn:{}}},output:{resultWrapper:"GetTopicAttributesResult",type:"structure",members:{Attributes:{type:"map",key:{},value:{}}}},http:{}},ListEndpointsByPlatformApplication:{input:{type:"structure",required:["PlatformApplicationArn"],members:{PlatformApplicationArn:{},NextToken:{}}},output:{resultWrapper:"ListEndpointsByPlatformApplicationResult",type:"structure",members:{Endpoints:{type:"list",member:{type:"structure",members:{EndpointArn:{},Attributes:{shape:"Sf"}}}},NextToken:{}}},http:{}},ListPlatformApplications:{input:{type:"structure",members:{NextToken:{}}},output:{resultWrapper:"ListPlatformApplicationsResult",type:"structure",members:{PlatformApplications:{type:"list",member:{type:"structure",members:{PlatformApplicationArn:{},Attributes:{shape:"Sf"}}}},NextToken:{}}},http:{}},ListSubscriptions:{input:{type:"structure",members:{NextToken:{}}},output:{resultWrapper:"ListSubscriptionsResult",type:"structure",members:{Subscriptions:{shape:"S1c"},NextToken:{}}},http:{}},ListSubscriptionsByTopic:{input:{type:"structure",required:["TopicArn"],members:{TopicArn:{},NextToken:{}}},output:{resultWrapper:"ListSubscriptionsByTopicResult",type:"structure",members:{Subscriptions:{shape:"S1c"},NextToken:{}}},http:{}},ListTopics:{input:{type:"structure",members:{NextToken:{}}},output:{resultWrapper:"ListTopicsResult",type:"structure",members:{Topics:{type:"list",member:{type:"structure",members:{TopicArn:{}}}},NextToken:{}}},http:{}},Publish:{input:{type:"structure",required:["Message"],members:{TopicArn:{},TargetArn:{},Message:{},Subject:{},MessageStructure:{},MessageAttributes:{type:"map",key:{locationName:"Name"},value:{locationName:"Value",type:"structure",required:["DataType"],members:{DataType:{},StringValue:{},BinaryValue:{type:"blob"}}}}}},output:{resultWrapper:"PublishResult",type:"structure",members:{MessageId:{}}},http:{}},RemovePermission:{input:{type:"structure",required:["TopicArn","Label"],members:{TopicArn:{},Label:{}}},http:{}},SetEndpointAttributes:{input:{type:"structure",required:["EndpointArn","Attributes"],members:{EndpointArn:{},Attributes:{shape:"Sf"}}},http:{}},SetPlatformApplicationAttributes:{input:{type:"structure",required:["PlatformApplicationArn","Attributes"],members:{PlatformApplicationArn:{},Attributes:{shape:"Sf"}}},http:{}},SetSubscriptionAttributes:{input:{type:"structure",required:["SubscriptionArn","AttributeName"],members:{SubscriptionArn:{},AttributeName:{},AttributeValue:{}}},http:{}},SetTopicAttributes:{input:{type:"structure",required:["TopicArn","AttributeName"],members:{TopicArn:{},AttributeName:{},AttributeValue:{}}},http:{}},Subscribe:{input:{type:"structure",required:["TopicArn","Protocol"],members:{TopicArn:{},Protocol:{},Endpoint:{}}},output:{resultWrapper:"SubscribeResult",type:"structure",members:{SubscriptionArn:{}}},http:{}},Unsubscribe:{input:{type:"structure",required:["SubscriptionArn"],members:{SubscriptionArn:{}}},http:{}}},shapes:{Sf:{type:"map",key:{},value:{}},S1c:{type:"list",member:{type:"structure",members:{SubscriptionArn:{},Owner:{},Protocol:{},Endpoint:{},TopicArn:{}}}}},paginators:{ListEndpointsByPlatformApplication:{input_token:"NextToken",output_token:"NextToken",result_key:"Endpoints"},ListPlatformApplications:{input_token:"NextToken",output_token:"NextToken",result_key:"PlatformApplications"},ListSubscriptions:{input_token:"NextToken",output_token:"NextToken",result_key:"Subscriptions"},ListSubscriptionsByTopic:{input_token:"NextToken",output_token:"NextToken",result_key:"Subscriptions"},ListTopics:{input_token:"NextToken",output_token:"NextToken",result_key:"Topics"}}},a.apiLoader.services.sqs={},a.SQS=a.Service.defineService("sqs",["2012-11-05"]),e("./services/sqs"),a.apiLoader.services.sqs["2012-11-05"]={version:"2.0",metadata:{apiVersion:"2012-11-05",endpointPrefix:"sqs",serviceAbbreviation:"Amazon SQS",serviceFullName:"Amazon Simple Queue Service",signatureVersion:"v4",xmlNamespace:"http://queue.amazonaws.com/doc/2012-11-05/",protocol:"query"},operations:{AddPermission:{input:{type:"structure",required:["QueueUrl","Label","AWSAccountIds","Actions"],members:{QueueUrl:{},Label:{},AWSAccountIds:{type:"list",member:{locationName:"AWSAccountId"},flattened:!0},Actions:{type:"list",member:{locationName:"ActionName"},flattened:!0}}},http:{}},ChangeMessageVisibility:{input:{type:"structure",required:["QueueUrl","ReceiptHandle","VisibilityTimeout"],members:{QueueUrl:{},ReceiptHandle:{},VisibilityTimeout:{type:"integer"}}},http:{}},ChangeMessageVisibilityBatch:{input:{type:"structure",required:["QueueUrl","Entries"],members:{QueueUrl:{},Entries:{type:"list",member:{locationName:"ChangeMessageVisibilityBatchRequestEntry",type:"structure",required:["Id","ReceiptHandle"],members:{Id:{},ReceiptHandle:{},VisibilityTimeout:{type:"integer"}}},flattened:!0}}},output:{resultWrapper:"ChangeMessageVisibilityBatchResult",type:"structure",required:["Successful","Failed"],members:{Successful:{type:"list",member:{locationName:"ChangeMessageVisibilityBatchResultEntry",type:"structure",required:["Id"],members:{Id:{}}},flattened:!0},Failed:{shape:"Sd"}}},http:{}},CreateQueue:{input:{type:"structure",required:["QueueName"],members:{QueueName:{},Attributes:{shape:"Sh",locationName:"Attribute"}}},output:{resultWrapper:"CreateQueueResult",type:"structure",members:{QueueUrl:{}}},http:{}},DeleteMessage:{input:{type:"structure",required:["QueueUrl","ReceiptHandle"],members:{QueueUrl:{},ReceiptHandle:{}}},http:{}},DeleteMessageBatch:{input:{type:"structure",required:["QueueUrl","Entries"],members:{QueueUrl:{},Entries:{type:"list",member:{locationName:"DeleteMessageBatchRequestEntry",type:"structure",required:["Id","ReceiptHandle"],members:{Id:{},ReceiptHandle:{}}},flattened:!0}}},output:{resultWrapper:"DeleteMessageBatchResult",type:"structure",required:["Successful","Failed"],members:{Successful:{type:"list",member:{locationName:"DeleteMessageBatchResultEntry",type:"structure",required:["Id"],members:{Id:{}}},flattened:!0},Failed:{shape:"Sd"}}},http:{}},DeleteQueue:{input:{type:"structure",required:["QueueUrl"],members:{QueueUrl:{}}},http:{}},GetQueueAttributes:{input:{type:"structure",required:["QueueUrl"],members:{QueueUrl:{},AttributeNames:{shape:"St"}}},output:{resultWrapper:"GetQueueAttributesResult",type:"structure",members:{Attributes:{shape:"Sh",locationName:"Attribute"}}},http:{}},GetQueueUrl:{input:{type:"structure",required:["QueueName"],members:{QueueName:{},QueueOwnerAWSAccountId:{}}},output:{resultWrapper:"GetQueueUrlResult",type:"structure",members:{QueueUrl:{}}},http:{}},ListDeadLetterSourceQueues:{input:{type:"structure",required:["QueueUrl"],members:{QueueUrl:{}}},output:{resultWrapper:"ListDeadLetterSourceQueuesResult",type:"structure",required:["queueUrls"],members:{queueUrls:{shape:"Sz"}}},http:{}},ListQueues:{input:{type:"structure",members:{QueueNamePrefix:{}}},output:{resultWrapper:"ListQueuesResult",type:"structure",members:{QueueUrls:{shape:"Sz"}}},http:{}},PurgeQueue:{input:{type:"structure",required:["QueueUrl"],members:{QueueUrl:{}}},http:{}},ReceiveMessage:{input:{type:"structure",required:["QueueUrl"],members:{QueueUrl:{},AttributeNames:{shape:"St"},MessageAttributeNames:{type:"list",member:{locationName:"MessageAttributeName"},flattened:!0},MaxNumberOfMessages:{type:"integer"},VisibilityTimeout:{type:"integer"},WaitTimeSeconds:{type:"integer"}}},output:{resultWrapper:"ReceiveMessageResult",type:"structure",members:{Messages:{type:"list",member:{locationName:"Message",type:"structure",members:{MessageId:{},ReceiptHandle:{},MD5OfBody:{},Body:{},Attributes:{shape:"Sh",locationName:"Attribute"},MD5OfMessageAttributes:{},MessageAttributes:{shape:"S19",locationName:"MessageAttribute"}}},flattened:!0}}},http:{}},RemovePermission:{input:{type:"structure",required:["QueueUrl","Label"],members:{QueueUrl:{},Label:{}}},http:{}},SendMessage:{input:{type:"structure",required:["QueueUrl","MessageBody"],members:{QueueUrl:{},MessageBody:{},DelaySeconds:{type:"integer"},MessageAttributes:{shape:"S19",locationName:"MessageAttribute"}}},output:{resultWrapper:"SendMessageResult",type:"structure",members:{MD5OfMessageBody:{},MD5OfMessageAttributes:{},MessageId:{}}},http:{}},SendMessageBatch:{input:{type:"structure",required:["QueueUrl","Entries"],members:{QueueUrl:{},Entries:{type:"list",member:{locationName:"SendMessageBatchRequestEntry",type:"structure",required:["Id","MessageBody"],members:{Id:{},MessageBody:{},DelaySeconds:{type:"integer"},MessageAttributes:{shape:"S19",locationName:"MessageAttribute"}}},flattened:!0}}},output:{resultWrapper:"SendMessageBatchResult",type:"structure",required:["Successful","Failed"],members:{Successful:{type:"list",member:{locationName:"SendMessageBatchResultEntry",type:"structure",required:["Id","MessageId","MD5OfMessageBody"],members:{Id:{},MessageId:{},MD5OfMessageBody:{},MD5OfMessageAttributes:{}}},flattened:!0},Failed:{shape:"Sd"}}},http:{}},SetQueueAttributes:{input:{type:"structure",required:["QueueUrl","Attributes"],members:{QueueUrl:{},Attributes:{shape:"Sh",locationName:"Attribute"}}},http:{}}},shapes:{Sd:{type:"list",member:{locationName:"BatchResultErrorEntry",type:"structure",required:["Id","SenderFault","Code"],members:{Id:{},SenderFault:{type:"boolean"},Code:{},Message:{}}},flattened:!0},Sh:{type:"map",key:{locationName:"Name"},value:{locationName:"Value"},flattened:!0,locationName:"Attribute"},St:{type:"list",member:{locationName:"AttributeName"},flattened:!0},Sz:{type:"list",member:{locationName:"QueueUrl"},flattened:!0},S19:{type:"map",key:{locationName:"Name"},value:{locationName:"Value",type:"structure",required:["DataType"],members:{StringValue:{},BinaryValue:{type:"blob"},StringListValues:{flattened:!0,locationName:"StringListValue",type:"list",member:{locationName:"StringListValue"}},BinaryListValues:{flattened:!0,locationName:"BinaryListValue",type:"list",member:{locationName:"BinaryListValue",type:"blob"}},DataType:{}}},flattened:!0}},examples:{},paginators:{ListQueues:{result_key:"QueueUrls"}}},a.apiLoader.services.ssm={},a.SSM=a.Service.defineService("ssm",["2014-11-06"]),a.apiLoader.services.ssm["2014-11-06"]={version:"2.0",metadata:{apiVersion:"2014-11-06",endpointPrefix:"ssm",jsonVersion:"1.1",protocol:"json",serviceAbbreviation:"Amazon SSM",serviceFullName:"Amazon Simple Systems Management Service",signatureVersion:"v4",targetPrefix:"AmazonSSM"},operations:{CancelCommand:{input:{type:"structure",required:["CommandId"],members:{CommandId:{},InstanceIds:{shape:"S3"}}},output:{type:"structure",members:{}},http:{}},CreateAssociation:{input:{type:"structure",required:["Name","InstanceId"],members:{Name:{},InstanceId:{},Parameters:{shape:"S8"}}},output:{type:"structure",members:{AssociationDescription:{shape:"Sd"}}},http:{}},CreateAssociationBatch:{input:{type:"structure",required:["Entries"],members:{Entries:{type:"list",member:{shape:"Sl",locationName:"entries"}}}},output:{type:"structure",members:{Successful:{type:"list",member:{shape:"Sd",locationName:"AssociationDescription"}},Failed:{type:"list",member:{locationName:"FailedCreateAssociationEntry",type:"structure",members:{Entry:{shape:"Sl"},Message:{},Fault:{}}}}}},http:{}},CreateDocument:{input:{type:"structure",required:["Content","Name"],members:{Content:{},Name:{}}},output:{type:"structure",members:{DocumentDescription:{shape:"Sv"}}},http:{}},DeleteAssociation:{input:{type:"structure",required:["Name","InstanceId"],members:{Name:{},InstanceId:{}}},output:{type:"structure",members:{}},http:{}},DeleteDocument:{input:{type:"structure",required:["Name"],members:{Name:{}}},output:{type:"structure",members:{}},http:{}},DescribeAssociation:{input:{type:"structure",required:["Name","InstanceId"],members:{Name:{},InstanceId:{}}},output:{type:"structure",members:{AssociationDescription:{shape:"Sd"}}},http:{}},DescribeDocument:{input:{type:"structure",required:["Name"],members:{Name:{}}},output:{type:"structure",members:{Document:{shape:"Sv"}}},http:{}},DescribeInstanceInformation:{input:{type:"structure",members:{InstanceInformationFilterList:{type:"list",member:{locationName:"InstanceInformationFilter",type:"structure",required:["key","valueSet"],members:{key:{},valueSet:{type:"list",member:{locationName:"InstanceInformationFilterValue"}}}}},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{InstanceInformationList:{type:"list",member:{locationName:"InstanceInformation",type:"structure",members:{InstanceId:{},PingStatus:{},LastPingDateTime:{type:"timestamp"},AgentVersion:{},IsLatestVersion:{type:"boolean"},PlatformType:{},PlatformName:{},PlatformVersion:{}}}},NextToken:{}}},http:{}},GetDocument:{input:{type:"structure",required:["Name"],members:{Name:{}}},output:{type:"structure",members:{Name:{},Content:{}}},http:{}},ListAssociations:{input:{type:"structure",required:["AssociationFilterList"],members:{AssociationFilterList:{type:"list",member:{locationName:"AssociationFilter",type:"structure",required:["key","value"],members:{key:{},value:{}}}},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{Associations:{type:"list",member:{locationName:"Association",type:"structure",members:{Name:{},InstanceId:{}}}},NextToken:{}}},http:{}},ListCommandInvocations:{input:{type:"structure",members:{CommandId:{},InstanceId:{},MaxResults:{type:"integer"},NextToken:{},Filters:{shape:"S27"},Details:{type:"boolean"}}},output:{type:"structure",members:{CommandInvocations:{type:"list",member:{type:"structure",members:{CommandId:{},InstanceId:{},Comment:{},DocumentName:{},RequestedDateTime:{type:"timestamp"},Status:{},TraceOutput:{},CommandPlugins:{type:"list",member:{type:"structure",members:{Name:{},Status:{},ResponseCode:{type:"integer"},ResponseStartDateTime:{type:"timestamp"},ResponseFinishDateTime:{type:"timestamp"},Output:{},OutputS3BucketName:{},OutputS3KeyPrefix:{}}}}}}},NextToken:{}}},http:{}},ListCommands:{input:{type:"structure",members:{CommandId:{},InstanceId:{},MaxResults:{type:"integer"},NextToken:{},Filters:{shape:"S27"}}},output:{type:"structure",members:{Commands:{type:"list",member:{shape:"S2s"}},NextToken:{}}},http:{}},ListDocuments:{input:{type:"structure",members:{DocumentFilterList:{type:"list",member:{locationName:"DocumentFilter",type:"structure",required:["key","value"],members:{key:{},value:{}}}},MaxResults:{type:"integer"},NextToken:{}}},output:{type:"structure",members:{DocumentIdentifiers:{type:"list",member:{locationName:"DocumentIdentifier",type:"structure",members:{Name:{},PlatformTypes:{shape:"S15"}}}},NextToken:{}}},http:{}},SendCommand:{input:{type:"structure",required:["InstanceIds","DocumentName"],members:{InstanceIds:{shape:"S3"},DocumentName:{},TimeoutSeconds:{type:"integer"},Comment:{},Parameters:{shape:"S8"},OutputS3BucketName:{},OutputS3KeyPrefix:{}}},output:{type:"structure",members:{Command:{shape:"S2s"}}},http:{}},UpdateAssociationStatus:{input:{type:"structure",required:["Name","InstanceId","AssociationStatus"],
|
||
members:{Name:{},InstanceId:{},AssociationStatus:{shape:"Sf"}}},output:{type:"structure",members:{AssociationDescription:{shape:"Sd"}}},http:{}}},shapes:{S3:{type:"list",member:{}},S8:{type:"map",key:{},value:{type:"list",member:{}}},Sd:{type:"structure",members:{Name:{},InstanceId:{},Date:{type:"timestamp"},Status:{shape:"Sf"},Parameters:{shape:"S8"}}},Sf:{type:"structure",required:["Date","Name","Message"],members:{Date:{type:"timestamp"},Name:{},Message:{},AdditionalInfo:{}}},Sl:{type:"structure",members:{Name:{},InstanceId:{},Parameters:{shape:"S8"}}},Sv:{type:"structure",members:{Sha1:{},Name:{},CreatedDate:{type:"timestamp"},Status:{},Description:{},Parameters:{type:"list",member:{locationName:"DocumentParameter",type:"structure",members:{Name:{},Type:{},Description:{},DefaultValue:{}}}},PlatformTypes:{shape:"S15"}}},S15:{type:"list",member:{locationName:"PlatformType"}},S27:{type:"list",member:{type:"structure",required:["key","value"],members:{key:{},value:{}}}},S2s:{type:"structure",members:{CommandId:{},DocumentName:{},Comment:{},ExpiresAfter:{type:"timestamp"},Parameters:{shape:"S8"},InstanceIds:{shape:"S3"},RequestedDateTime:{type:"timestamp"},Status:{},OutputS3BucketName:{},OutputS3KeyPrefix:{}}}},paginators:{ListAssociations:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"Associations"},ListCommandInvocations:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"CommandInvocations"},ListCommands:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"Commands"},ListDocuments:{input_token:"NextToken",output_token:"NextToken",limit_key:"MaxResults",result_key:"DocumentIdentifiers"}}},a.apiLoader.services.sts={},a.STS=a.Service.defineService("sts",["2011-06-15"]),e("./services/sts"),a.apiLoader.services.sts["2011-06-15"]={version:"2.0",metadata:{apiVersion:"2011-06-15",endpointPrefix:"sts",globalEndpoint:"sts.amazonaws.com",protocol:"query",serviceAbbreviation:"AWS STS",serviceFullName:"AWS Security Token Service",signatureVersion:"v4",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/"},operations:{AssumeRole:{input:{type:"structure",required:["RoleArn","RoleSessionName"],members:{RoleArn:{},RoleSessionName:{},Policy:{},DurationSeconds:{type:"integer"},ExternalId:{},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"AssumeRoleResult",type:"structure",members:{Credentials:{shape:"Sa"},AssumedRoleUser:{shape:"Sf"},PackedPolicySize:{type:"integer"}}},http:{}},AssumeRoleWithSAML:{input:{type:"structure",required:["RoleArn","PrincipalArn","SAMLAssertion"],members:{RoleArn:{},PrincipalArn:{},SAMLAssertion:{},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithSAMLResult",type:"structure",members:{Credentials:{shape:"Sa"},AssumedRoleUser:{shape:"Sf"},PackedPolicySize:{type:"integer"},Subject:{},SubjectType:{},Issuer:{},Audience:{},NameQualifier:{}}},http:{}},AssumeRoleWithWebIdentity:{input:{type:"structure",required:["RoleArn","RoleSessionName","WebIdentityToken"],members:{RoleArn:{},RoleSessionName:{},WebIdentityToken:{},ProviderId:{},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"AssumeRoleWithWebIdentityResult",type:"structure",members:{Credentials:{shape:"Sa"},SubjectFromWebIdentityToken:{},AssumedRoleUser:{shape:"Sf"},PackedPolicySize:{type:"integer"},Provider:{},Audience:{}}},http:{}},DecodeAuthorizationMessage:{input:{type:"structure",required:["EncodedMessage"],members:{EncodedMessage:{}}},output:{resultWrapper:"DecodeAuthorizationMessageResult",type:"structure",members:{DecodedMessage:{}}},http:{}},GetFederationToken:{input:{type:"structure",required:["Name"],members:{Name:{},Policy:{},DurationSeconds:{type:"integer"}}},output:{resultWrapper:"GetFederationTokenResult",type:"structure",members:{Credentials:{shape:"Sa"},FederatedUser:{type:"structure",required:["FederatedUserId","Arn"],members:{FederatedUserId:{},Arn:{}}},PackedPolicySize:{type:"integer"}}},http:{}},GetSessionToken:{input:{type:"structure",members:{DurationSeconds:{type:"integer"},SerialNumber:{},TokenCode:{}}},output:{resultWrapper:"GetSessionTokenResult",type:"structure",members:{Credentials:{shape:"Sa"}}},http:{}}},shapes:{Sa:{type:"structure",required:["AccessKeyId","SecretAccessKey","SessionToken","Expiration"],members:{AccessKeyId:{},SecretAccessKey:{},SessionToken:{},Expiration:{type:"timestamp"}}},Sf:{type:"structure",required:["AssumedRoleId","Arn"],members:{AssumedRoleId:{},Arn:{}}}}},a.apiLoader.services.waf={},a.WAF=a.Service.defineService("waf",["2015-08-24"]),a.apiLoader.services.waf["2015-08-24"]={version:"2.0",metadata:{apiVersion:"2015-08-24",endpointPrefix:"waf",jsonVersion:"1.1",protocol:"json",serviceAbbreviation:"WAF",serviceFullName:"AWS WAF",signatureVersion:"v4",targetPrefix:"AWSWAF_20150824"},operations:{CreateByteMatchSet:{input:{type:"structure",required:["Name","ChangeToken"],members:{Name:{},ChangeToken:{}}},output:{type:"structure",members:{ByteMatchSet:{shape:"S5"},ChangeToken:{}}},http:{}},CreateIPSet:{input:{type:"structure",required:["Name","ChangeToken"],members:{Name:{},ChangeToken:{}}},output:{type:"structure",members:{IPSet:{shape:"Sh"},ChangeToken:{}}},http:{}},CreateRule:{input:{type:"structure",required:["Name","MetricName","ChangeToken"],members:{Name:{},MetricName:{},ChangeToken:{}}},output:{type:"structure",members:{Rule:{shape:"Sp"},ChangeToken:{}}},http:{}},CreateSizeConstraintSet:{input:{type:"structure",required:["Name","ChangeToken"],members:{Name:{},ChangeToken:{}}},output:{type:"structure",members:{SizeConstraintSet:{shape:"Sw"},ChangeToken:{}}},http:{}},CreateSqlInjectionMatchSet:{input:{type:"structure",required:["Name","ChangeToken"],members:{Name:{},ChangeToken:{}}},output:{type:"structure",members:{SqlInjectionMatchSet:{shape:"S13"},ChangeToken:{}}},http:{}},CreateWebACL:{input:{type:"structure",required:["Name","MetricName","DefaultAction","ChangeToken"],members:{Name:{},MetricName:{},DefaultAction:{shape:"S17"},ChangeToken:{}}},output:{type:"structure",members:{WebACL:{shape:"S1a"},ChangeToken:{}}},http:{}},DeleteByteMatchSet:{input:{type:"structure",required:["ByteMatchSetId","ChangeToken"],members:{ByteMatchSetId:{},ChangeToken:{}}},output:{type:"structure",members:{ChangeToken:{}}},http:{}},DeleteIPSet:{input:{type:"structure",required:["IPSetId","ChangeToken"],members:{IPSetId:{},ChangeToken:{}}},output:{type:"structure",members:{ChangeToken:{}}},http:{}},DeleteRule:{input:{type:"structure",required:["RuleId","ChangeToken"],members:{RuleId:{},ChangeToken:{}}},output:{type:"structure",members:{ChangeToken:{}}},http:{}},DeleteSizeConstraintSet:{input:{type:"structure",required:["SizeConstraintSetId","ChangeToken"],members:{SizeConstraintSetId:{},ChangeToken:{}}},output:{type:"structure",members:{ChangeToken:{}}},http:{}},DeleteSqlInjectionMatchSet:{input:{type:"structure",required:["SqlInjectionMatchSetId","ChangeToken"],members:{SqlInjectionMatchSetId:{},ChangeToken:{}}},output:{type:"structure",members:{ChangeToken:{}}},http:{}},DeleteWebACL:{input:{type:"structure",required:["WebACLId","ChangeToken"],members:{WebACLId:{},ChangeToken:{}}},output:{type:"structure",members:{ChangeToken:{}}},http:{}},GetByteMatchSet:{input:{type:"structure",required:["ByteMatchSetId"],members:{ByteMatchSetId:{}}},output:{type:"structure",members:{ByteMatchSet:{shape:"S5"}}},http:{}},GetChangeToken:{input:{type:"structure",members:{}},output:{type:"structure",members:{ChangeToken:{}}},http:{}},GetChangeTokenStatus:{input:{type:"structure",required:["ChangeToken"],members:{ChangeToken:{}}},output:{type:"structure",members:{ChangeTokenStatus:{}}},http:{}},GetIPSet:{input:{type:"structure",required:["IPSetId"],members:{IPSetId:{}}},output:{type:"structure",members:{IPSet:{shape:"Sh"}}},http:{}},GetRule:{input:{type:"structure",required:["RuleId"],members:{RuleId:{}}},output:{type:"structure",members:{Rule:{shape:"Sp"}}},http:{}},GetSampledRequests:{input:{type:"structure",required:["WebAclId","RuleId","TimeWindow","MaxItems"],members:{WebAclId:{},RuleId:{},TimeWindow:{shape:"S22"},MaxItems:{type:"long"}}},output:{type:"structure",members:{SampledRequests:{type:"list",member:{type:"structure",required:["Request","Weight"],members:{Request:{type:"structure",members:{ClientIP:{},Country:{},URI:{},Method:{},HTTPVersion:{},Headers:{type:"list",member:{type:"structure",members:{Name:{},Value:{}}}}}},Weight:{type:"long"},Timestamp:{type:"timestamp"},Action:{}}}},PopulationSize:{type:"long"},TimeWindow:{shape:"S22"}}},http:{}},GetSizeConstraintSet:{input:{type:"structure",required:["SizeConstraintSetId"],members:{SizeConstraintSetId:{}}},output:{type:"structure",members:{SizeConstraintSet:{shape:"Sw"}}},http:{}},GetSqlInjectionMatchSet:{input:{type:"structure",required:["SqlInjectionMatchSetId"],members:{SqlInjectionMatchSetId:{}}},output:{type:"structure",members:{SqlInjectionMatchSet:{shape:"S13"}}},http:{}},GetWebACL:{input:{type:"structure",required:["WebACLId"],members:{WebACLId:{}}},output:{type:"structure",members:{WebACL:{shape:"S1a"}}},http:{}},ListByteMatchSets:{input:{type:"structure",required:["Limit"],members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},ByteMatchSets:{type:"list",member:{type:"structure",required:["ByteMatchSetId","Name"],members:{ByteMatchSetId:{},Name:{}}}}}},http:{}},ListIPSets:{input:{type:"structure",required:["Limit"],members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},IPSets:{type:"list",member:{type:"structure",required:["IPSetId","Name"],members:{IPSetId:{},Name:{}}}}}},http:{}},ListRules:{input:{type:"structure",required:["Limit"],members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},Rules:{type:"list",member:{type:"structure",required:["RuleId","Name"],members:{RuleId:{},Name:{}}}}}},http:{}},ListSizeConstraintSets:{input:{type:"structure",required:["Limit"],members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},SizeConstraintSets:{type:"list",member:{type:"structure",required:["SizeConstraintSetId","Name"],members:{SizeConstraintSetId:{},Name:{}}}}}},http:{}},ListSqlInjectionMatchSets:{input:{type:"structure",required:["Limit"],members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},SqlInjectionMatchSets:{type:"list",member:{type:"structure",required:["SqlInjectionMatchSetId","Name"],members:{SqlInjectionMatchSetId:{},Name:{}}}}}},http:{}},ListWebACLs:{input:{type:"structure",required:["Limit"],members:{NextMarker:{},Limit:{type:"integer"}}},output:{type:"structure",members:{NextMarker:{},WebACLs:{type:"list",member:{type:"structure",required:["WebACLId","Name"],members:{WebACLId:{},Name:{}}}}}},http:{}},UpdateByteMatchSet:{input:{type:"structure",required:["ByteMatchSetId","ChangeToken","Updates"],members:{ByteMatchSetId:{},ChangeToken:{},Updates:{type:"list",member:{type:"structure",required:["Action","ByteMatchTuple"],members:{Action:{},ByteMatchTuple:{shape:"S8"}}}}}},output:{type:"structure",members:{ChangeToken:{}}},http:{}},UpdateIPSet:{input:{type:"structure",required:["IPSetId","ChangeToken","Updates"],members:{IPSetId:{},ChangeToken:{},Updates:{type:"list",member:{type:"structure",required:["Action","IPSetDescriptor"],members:{Action:{},IPSetDescriptor:{shape:"Sj"}}}}}},output:{type:"structure",members:{ChangeToken:{}}},http:{}},UpdateRule:{input:{type:"structure",required:["RuleId","ChangeToken","Updates"],members:{RuleId:{},ChangeToken:{},Updates:{type:"list",member:{type:"structure",required:["Action","Predicate"],members:{Action:{},Predicate:{shape:"Sr"}}}}}},output:{type:"structure",members:{ChangeToken:{}}},http:{}},UpdateSizeConstraintSet:{input:{type:"structure",required:["SizeConstraintSetId","ChangeToken","Updates"],members:{SizeConstraintSetId:{},ChangeToken:{},Updates:{type:"list",member:{type:"structure",required:["Action","SizeConstraint"],members:{Action:{},SizeConstraint:{shape:"Sy"}}}}}},output:{type:"structure",members:{ChangeToken:{}}},http:{}},UpdateSqlInjectionMatchSet:{input:{type:"structure",required:["SqlInjectionMatchSetId","ChangeToken","Updates"],members:{SqlInjectionMatchSetId:{},ChangeToken:{},Updates:{type:"list",member:{type:"structure",required:["Action","SqlInjectionMatchTuple"],members:{Action:{},SqlInjectionMatchTuple:{shape:"S15"}}}}}},output:{type:"structure",members:{ChangeToken:{}}},http:{}},UpdateWebACL:{input:{type:"structure",required:["WebACLId","ChangeToken"],members:{WebACLId:{},ChangeToken:{},Updates:{type:"list",member:{type:"structure",required:["Action","ActivatedRule"],members:{Action:{},ActivatedRule:{shape:"S1c"}}}},DefaultAction:{shape:"S17"}}},output:{type:"structure",members:{ChangeToken:{}}},http:{}}},shapes:{S5:{type:"structure",required:["ByteMatchSetId","ByteMatchTuples"],members:{ByteMatchSetId:{},Name:{},ByteMatchTuples:{type:"list",member:{shape:"S8"}}}},S8:{type:"structure",required:["FieldToMatch","TargetString","TextTransformation","PositionalConstraint"],members:{FieldToMatch:{shape:"S9"},TargetString:{type:"blob"},TextTransformation:{},PositionalConstraint:{}}},S9:{type:"structure",required:["Type"],members:{Type:{},Data:{}}},Sh:{type:"structure",required:["IPSetId","IPSetDescriptors"],members:{IPSetId:{},Name:{},IPSetDescriptors:{type:"list",member:{shape:"Sj"}}}},Sj:{type:"structure",required:["Type","Value"],members:{Type:{},Value:{}}},Sp:{type:"structure",required:["RuleId","Predicates"],members:{RuleId:{},Name:{},MetricName:{},Predicates:{type:"list",member:{shape:"Sr"}}}},Sr:{type:"structure",required:["Negated","Type","DataId"],members:{Negated:{type:"boolean"},Type:{},DataId:{}}},Sw:{type:"structure",required:["SizeConstraintSetId","SizeConstraints"],members:{SizeConstraintSetId:{},Name:{},SizeConstraints:{type:"list",member:{shape:"Sy"}}}},Sy:{type:"structure",required:["FieldToMatch","TextTransformation","ComparisonOperator","Size"],members:{FieldToMatch:{shape:"S9"},TextTransformation:{},ComparisonOperator:{},Size:{type:"long"}}},S13:{type:"structure",required:["SqlInjectionMatchSetId","SqlInjectionMatchTuples"],members:{SqlInjectionMatchSetId:{},Name:{},SqlInjectionMatchTuples:{type:"list",member:{shape:"S15"}}}},S15:{type:"structure",required:["FieldToMatch","TextTransformation"],members:{FieldToMatch:{shape:"S9"},TextTransformation:{}}},S17:{type:"structure",required:["Type"],members:{Type:{}}},S1a:{type:"structure",required:["WebACLId","DefaultAction","Rules"],members:{WebACLId:{},Name:{},MetricName:{},DefaultAction:{shape:"S17"},Rules:{type:"list",member:{shape:"S1c"}}}},S1c:{type:"structure",required:["Priority","RuleId","Action"],members:{Priority:{type:"integer"},RuleId:{},Action:{shape:"S17"}}},S22:{type:"structure",required:["StartTime","EndTime"],members:{StartTime:{type:"timestamp"},EndTime:{type:"timestamp"}}}}}},{"./core":4,"./http/xhr":18,"./services/cloudfront":42,"./services/cognitoidentity":43,"./services/dynamodb":44,"./services/ec2":45,"./services/machinelearning":46,"./services/route53":47,"./services/s3":48,"./services/sqs":49,"./services/sts":50,"./xml/browser_parser":60}],2:[function(e,t,r){var a=e("crypto"),o=e("url"),n=e("../core"),i=n.util.base64.encode,s=n.util.inherit,u=function(e){var t={"+":"-","=":"_","/":"~"};return e.replace(/[\+=\/]/g,function(e){return t[e]})},c=function(e,t){var r=a.createSign("RSA-SHA1");return r.write(e),u(r.sign(t,"base64"))},p=function(e,t,r,a){var o=JSON.stringify({Statement:[{Resource:e,Condition:{DateLessThan:{"AWS:EpochTime":t}}}]});return{Expires:t,"Key-Pair-Id":r,Signature:c(o.toString(),a)}},m=function(e,t,r){return e=e.replace(/\s/gm,e),{Policy:u(i(e)),"Key-Pair-Id":t,Signature:c(e,r)}},l=function(e){var t=e.split("://");if(t.length<2)throw new Error("Invalid URL.");return t[0].replace("*","")},d=function(e){var t=o.parse(e);return t.path.replace(/^\//,"")+t.hash},y=function(e){switch(l(e)){case"http":case"https":return e;case"rtmp":return d(e);default:throw new Error("Invalid URI scheme. Scheme must be one of http, https, or rtmp")}},h=function(e,t){if(!t||"function"!=typeof t)throw e;t(e)},b=function(e,t){return t&&"function"==typeof t?void t(null,e):e};n.CloudFront.Signer=s({constructor:function f(e,t){if(void 0===e||void 0===t)throw new Error("A key pair ID and private key are required");this.keyPairId=e,this.privateKey=t},getSignedCookie:function(e,t){var r="policy"in e?m(e.policy,this.keyPairId,this.privateKey):p(e.url,e.expires,this.keyPairId,this.privateKey),a={};for(var o in r)r.hasOwnProperty(o)&&(a["CloudFront-"+o]=r[o]);return b(a,t)},getSignedUrl:function(e,t){try{var r=y(e.url)}catch(a){return h(a,t)}var n=o.parse(e.url,!0),i=e.hasOwnProperty("policy")?m(e.policy,this.keyPairId,this.privateKey):p(r,e.expires,this.keyPairId,this.privateKey);n.search=null;for(var s in i)i.hasOwnProperty(s)&&(n.query[s]=i[s]);try{var u="rtmp"===l(e.url)?d(o.format(n)):o.format(n)}catch(a){return h(a,t)}return b(u,t)}}),t.exports=n.CloudFront.Signer},{"../core":4,crypto:66,url:78}],3:[function(e,t,r){var a=e("./core");e("./credentials"),e("./credentials/credential_provider_chain"),a.Config=a.util.inherit({constructor:function o(e){void 0===e&&(e={}),e=this.extractCredentials(e),a.util.each.call(this,this.keys,function(t,r){this.set(t,e[t],r)})},getCredentials:function n(e){function t(t){e(t,t?null:i.credentials)}function r(e,t){return new a.util.error(t||new Error,{code:"CredentialsError",message:e})}function o(){i.credentials.get(function(e){if(e){var a="Could not load credentials from "+i.credentials.constructor.name;e=r(a,e)}t(e)})}function n(){var e=null;i.credentials.accessKeyId&&i.credentials.secretAccessKey||(e=r("Missing credentials")),t(e)}var i=this;i.credentials?"function"==typeof i.credentials.get?o():n():i.credentialProvider?i.credentialProvider.resolve(function(e,a){e&&(e=r("Could not load credentials from any providers",e)),i.credentials=a,t(e)}):t(r("No credentials to load"))},update:function i(e,t){t=t||!1,e=this.extractCredentials(e),a.util.each.call(this,e,function(e,r){(t||this.keys.hasOwnProperty(e)||a.Service.hasService(e))&&this.set(e,r)})},loadFromPath:function s(e){this.clear();var t=JSON.parse(a.util.readFileSync(e)),r=new a.FileSystemCredentials(e),o=new a.CredentialProviderChain;return o.providers.unshift(r),o.resolve(function(e,r){if(e)throw e;t.credentials=r}),this.constructor(t),this},clear:function u(){a.util.each.call(this,this.keys,function(e){delete this[e]}),this.set("credentials",void 0),this.set("credentialProvider",void 0)},set:function c(e,t,r){void 0===t?(void 0===r&&(r=this.keys[e]),"function"==typeof r?this[e]=r.call(this):this[e]=r):"httpOptions"===e&&this[e]?this[e]=a.util.merge(this[e],t):this[e]=t},keys:{credentials:null,credentialProvider:null,region:null,logger:null,apiVersions:{},apiVersion:null,endpoint:void 0,httpOptions:{timeout:12e4},maxRetries:void 0,maxRedirects:10,paramValidation:!0,sslEnabled:!0,s3ForcePathStyle:!1,s3BucketEndpoint:!1,computeChecksums:!0,convertResponseTypes:!0,correctClockSkew:!1,customUserAgent:null,dynamoDbCrc32:!0,systemClockOffset:0,signatureVersion:null,signatureCache:!0,retryDelayOptions:{base:100}},extractCredentials:function p(e){return e.accessKeyId&&e.secretAccessKey&&(e=a.util.copy(e),e.credentials=new a.Credentials(e)),e}}),a.config=new a.Config},{"./core":4,"./credentials":5,"./credentials/credential_provider_chain":7}],4:[function(e,t,r){var a={util:e("./util")},o={};o.toString(),t.exports=a,a.util.update(a,{VERSION:"2.2.42",Signers:{},Protocol:{Json:e("./protocol/json"),Query:e("./protocol/query"),Rest:e("./protocol/rest"),RestJson:e("./protocol/rest_json"),RestXml:e("./protocol/rest_xml")},XML:{Builder:e("./xml/builder"),Parser:null},JSON:{Builder:e("./json/builder"),Parser:e("./json/parser")},Model:{Api:e("./model/api"),Operation:e("./model/operation"),Shape:e("./model/shape"),Paginator:e("./model/paginator"),ResourceWaiter:e("./model/resource_waiter")},util:e("./util"),apiLoader:function(){throw new Error("No API loader set")}}),e("./service"),e("./credentials"),e("./credentials/credential_provider_chain"),e("./credentials/temporary_credentials"),e("./credentials/web_identity_credentials"),e("./credentials/cognito_identity_credentials"),e("./credentials/saml_credentials"),e("./config"),e("./http"),e("./sequential_executor"),e("./event_listeners"),e("./request"),e("./response"),e("./resource_waiter"),e("./signers/request_signer"),e("./param_validator"),a.events=new a.SequentialExecutor},{"./config":3,"./credentials":5,"./credentials/cognito_identity_credentials":6,"./credentials/credential_provider_chain":7,"./credentials/saml_credentials":8,"./credentials/temporary_credentials":9,"./credentials/web_identity_credentials":10,"./event_listeners":16,"./http":17,"./json/builder":19,"./json/parser":20,"./model/api":21,"./model/operation":23,"./model/paginator":24,"./model/resource_waiter":25,"./model/shape":26,"./param_validator":27,"./protocol/json":28,"./protocol/query":29,"./protocol/rest":30,"./protocol/rest_json":31,"./protocol/rest_xml":32,"./request":36,"./resource_waiter":37,"./response":38,"./sequential_executor":40,"./service":41,"./signers/request_signer":52,"./util":59,"./xml/builder":61}],5:[function(e,t,r){var a=e("./core");a.Credentials=a.util.inherit({constructor:function o(){if(a.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,1===arguments.length&&"object"==typeof arguments[0]){var e=arguments[0].credentials||arguments[0];this.accessKeyId=e.accessKeyId,this.secretAccessKey=e.secretAccessKey,this.sessionToken=e.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function n(){var e=a.util.date.getDate().getTime(),t=new Date(e+1e3*this.expiryWindow);return this.expireTime&&t>this.expireTime?!0:this.expired||!this.accessKeyId||!this.secretAccessKey},get:function i(e){var t=this;this.needsRefresh()?this.refresh(function(r){r||(t.expired=!1),e&&e(r)}):e&&e()},refresh:function s(e){this.expired=!1,e()}})},{"./core":4}],6:[function(e,t,r){var a=e("../core");a.CognitoIdentityCredentials=a.util.inherit(a.Credentials,{localStorageKey:{id:"aws.cognito.identity-id.",providers:"aws.cognito.identity-providers."},constructor:function o(e){a.Credentials.call(this),this.expired=!0,this.params=e,this.data=null,this.identityId=null,this.loadCachedId()},refresh:function n(e){var t=this;t.createClients(),t.data=null,t.identityId=null,t.getId(function(r){r?(t.clearCachedId(),e(r)):t.params.RoleArn?t.getCredentialsFromSTS(e):t.getCredentialsForIdentity(e)})},clearCachedId:function i(){this.identityId=null,delete this.params.IdentityId;var e=this.params.IdentityPoolId,t=this.params.LoginId||"";delete this.storage[this.localStorageKey.id+e+t],delete this.storage[this.localStorageKey.providers+e+t]},getId:function s(e){var t=this;return"string"==typeof t.params.IdentityId?e(null,t.params.IdentityId):void t.cognito.getId(function(r,a){!r&&a.IdentityId?(t.params.IdentityId=a.IdentityId,e(null,a.IdentityId)):e(r)})},loadCredentials:function u(e,t){e&&t&&(t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration)},getCredentialsForIdentity:function c(e){var t=this;t.cognito.getCredentialsForIdentity(function(r,a){r?t.clearCachedId():(t.cacheId(a),t.data=a,t.loadCredentials(t.data,t)),e(r)})},getCredentialsFromSTS:function p(e){var t=this;t.cognito.getOpenIdToken(function(r,a){r?(t.clearCachedId(),e(r)):(t.cacheId(a),t.params.WebIdentityToken=a.Token,t.webIdentityCredentials.refresh(function(r){r?t.clearCachedId():(t.data=t.webIdentityCredentials.data,t.sts.credentialsFrom(t.data,t)),e(r)}))})},loadCachedId:function m(){var e=this;if(a.util.isBrowser()&&!e.params.IdentityId){var t=e.getStorage("id");if(t&&e.params.Logins){var r=Object.keys(e.params.Logins),o=(e.getStorage("providers")||"").split(","),n=o.filter(function(e){return-1!==r.indexOf(e)});0!==n.length&&(e.params.IdentityId=t)}else t&&(e.params.IdentityId=t)}},createClients:function(){this.webIdentityCredentials=this.webIdentityCredentials||new a.WebIdentityCredentials(this.params),this.cognito=this.cognito||new a.CognitoIdentity({params:this.params}),this.sts=this.sts||new a.STS},cacheId:function l(e){this.identityId=e.IdentityId,this.params.IdentityId=this.identityId,a.util.isBrowser()&&(this.setStorage("id",e.IdentityId),this.params.Logins&&this.setStorage("providers",Object.keys(this.params.Logins).join(",")))},getStorage:function d(e){return this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]},setStorage:function y(e,t){try{this.storage[this.localStorageKey[e]+this.params.IdentityPoolId+(this.params.LoginId||"")]=t}catch(r){}},storage:function(){try{return a.util.isBrowser()&&null!==window.localStorage&&"object"==typeof window.localStorage?window.localStorage:{}}catch(e){return{}}}()})},{"../core":4}],7:[function(e,t,r){var a=e("../core");a.CredentialProviderChain=a.util.inherit(a.Credentials,{constructor:function o(e){e?this.providers=e:this.providers=a.CredentialProviderChain.defaultProviders.slice(0)},resolve:function n(e){function t(o,n){if(!o&&n||r===a.length)return void e(o,n);var i=a[r++];n="function"==typeof i?i.call():i,n.get?n.get(function(e){t(e,e?null:n)}):t(null,n)}if(0===this.providers.length)return e(new Error("No providers")),this;var r=0,a=this.providers.slice(0);return t(),this}}),a.CredentialProviderChain.defaultProviders=[]},{"../core":4}],8:[function(e,t,r){var a=e("../core");a.SAMLCredentials=a.util.inherit(a.Credentials,{constructor:function o(e){a.Credentials.call(this),this.expired=!0,this.params=e},refresh:function n(e){var t=this;t.createClients(),e||(e=function(e){if(e)throw e}),t.service.assumeRoleWithSAML(function(r,a){r||t.service.credentialsFrom(a,t),e(r)})},createClients:function(){this.service=this.service||new a.STS({params:this.params})}})},{"../core":4}],9:[function(e,t,r){var a=e("../core");a.TemporaryCredentials=a.util.inherit(a.Credentials,{constructor:function o(e){a.Credentials.call(this),this.loadMasterCredentials(),this.expired=!0,this.params=e||{},this.params.RoleArn&&(this.params.RoleSessionName=this.params.RoleSessionName||"temporary-credentials")},refresh:function n(e){var t=this;t.createClients(),e||(e=function(e){if(e)throw e}),t.service.config.credentials=t.masterCredentials;var r=t.params.RoleArn?t.service.assumeRole:t.service.getSessionToken;r.call(t.service,function(r,a){r||t.service.credentialsFrom(a,t),e(r)})},loadMasterCredentials:function i(){for(this.masterCredentials=a.config.credentials;this.masterCredentials.masterCredentials;)this.masterCredentials=this.masterCredentials.masterCredentials},createClients:function(){this.service=this.service||new a.STS({params:this.params})}})},{"../core":4}],10:[function(e,t,r){var a=e("../core");a.WebIdentityCredentials=a.util.inherit(a.Credentials,{constructor:function o(e){a.Credentials.call(this),this.expired=!0,this.params=e,this.params.RoleSessionName=this.params.RoleSessionName||"web-identity",this.data=null},refresh:function n(e){var t=this;t.createClients(),e||(e=function(e){if(e)throw e}),t.service.assumeRoleWithWebIdentity(function(r,a){t.data=null,r||(t.data=a,t.service.credentialsFrom(a,t)),e(r)})},createClients:function(){this.service=this.service||new a.STS({params:this.params})}})},{"../core":4}],11:[function(e,t,r){function a(e){if("Object"===s(e)){var t={M:{}};for(var r in e)t.M[r]=a(e[r]);return t}if("Array"===s(e)){for(var n={L:[]},i=0;i<e.length;i++)n.L.push(a(e[i]));return n}return"Set"===s(e)?o(e):"String"===s(e)?{S:e}:"Number"===s(e)?{N:e.toString()}:"Binary"===s(e)?{B:e}:"Boolean"===s(e)?{BOOL:e}:"null"===s(e)?{NULL:!0}:void 0}function o(e){var t={};switch(e.type){case"String":t.SS=e.values;break;case"Binary":t.BS=e.values;break;case"Number":t.NS=e.values.map(function(e){return e.toString()})}return t}function n(e){var t,r,a;for(var o in e){var s=e[o];if("M"===o){r={};for(var c in s)r[c]=n(s[c]);return r}if("L"===o){for(t=[],a=0;a<s.length;a++)t.push(n(s[a]));return t}if("SS"===o){for(t=[],a=0;a<s.length;a++)t.push(s[a]+"");return new u(t)}if("NS"===o){for(t=[],a=0;a<s.length;a++)t.push(Number(s[a]));return new u(t)}if("BS"===o){for(t=[],a=0;a<s.length;a++)t.push(new i.Buffer(s[a]));return new u(t)}if("S"===o)return s+"";if("N"===o)return Number(s);if("B"===o)return new i.Buffer(s);if("BOOL"===o)return"true"===s||"TRUE"===s||s===!0;if("NULL"===o)return null}}var i=e("../core").util,s=e("./types").typeOf,u=e("./set");t.exports={input:a,output:n}},{"../core":4,"./set":13,"./types":15}],12:[function(e,t,r){var a=e("../core"),o=e("./translator"),n=e("./set");a.DynamoDB.DocumentClient=a.util.inherit({operations:{batchGetItem:"batchGet",batchWriteItem:"batchWrite",putItem:"put",getItem:"get",deleteItem:"delete",updateItem:"update",scan:"scan",query:"query"},constructor:function i(e){var t=this;t.options=e||{},t.configure(t.options)},configure:function s(e){var t=this;t.service=e.service,t.bindServiceObject(e),t.attrValue=t.service.api.operations.putItem.input.members.Item.value.shape},bindServiceObject:function u(e){var t=this;if(e=e||{},t.service){var r=a.util.copy(t.service.config);t.service=new t.service.constructor.__super__(r),t.service.config.params=a.util.merge(t.service.config.params||{},e.params)}else t.service=new a.DynamoDB(e)},batchGet:function(e,t){var r=this,a=r.service.batchGetItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},batchWrite:function(e,t){var r=this,a=r.service.batchWriteItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},"delete":function(e,t){var r=this,a=r.service.deleteItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},get:function(e,t){var r=this,a=r.service.getItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},put:function c(e,t){var r=this,a=r.service.putItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},update:function(e,t){var r=this,a=r.service.updateItem(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},scan:function(e,t){var r=this,a=r.service.scan(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},query:function(e,t){var r=this,a=r.service.query(e);return r.setupRequest(a),r.setupResponse(a),"function"==typeof t&&a.send(t),a},createSet:function(e,t){return t=t||{},new n(e,t)},getTranslator:function(){return new o({attrValue:this.attrValue})},setupRequest:function p(e){var t=this,r=t.getTranslator(),o=e.operation,n=e.service.api.operations[o].input;e._events.validate.unshift(function(e){e.rawParams=a.util.copy(e.params),e.params=r.translateInput(e.rawParams,n)})},setupResponse:function m(e){var t=this,r=t.getTranslator(),o=t.service.api.operations[e.operation].output;e.on("extractData",function(e){e.data=r.translateOutput(e.data,o)});var n=e.response;n.nextPage=function(e){var r=this,o=r.request,n,i=o.service,s=o.operation;try{n=i.paginationConfig(s,!0)}catch(u){r.error=u}if(!r.hasNextPage()){if(e)e(r.error,null);else if(r.error)throw r.error;return null}var c=a.util.copy(o.rawParams);if(r.nextPageTokens){var p=n.inputToken;"string"==typeof p&&(p=[p]);for(var m=0;m<p.length;m++)c[p[m]]=r.nextPageTokens[m];return t[s](c,e)}return e?e(null,null):null}}}),t.exports=a.DynamoDB.DocumentClient},{"../core":4,"./set":13,"./translator":14}],13:[function(e,t,r){var a=e("../core").util,o=e("./types").typeOf,n=a.inherit({constructor:function i(e,t){t=t||{},this.initialize(e,t.validate)},initialize:function(e,t){var r=this;r.values=[].concat(e),r.detectType(),t&&r.validate()},detectType:function(){var e=this,t=e.values[0];if("String"===o(t))e.type="String";else if("Number"===o(t))e.type="Number";else{if("Binary"!==o(t))throw a.error(new Error,{
|
||
code:"InvalidSetType",message:"Sets can contain string, number, or binary values"});e.type="Binary"}},validate:function(){for(var e=this,t=e.values.length,r=e.values,n=0;t>n;n++)if(o(r[n])!==e.type)throw a.error(new Error,{code:"InvalidType",message:e.type+" Set contains "+o(r[n])+" value"})}});t.exports=n},{"../core":4,"./types":15}],14:[function(e,t,r){var a=e("../core").util,o=e("./converter"),n=function(e){e=e||{},this.attrValue=e.attrValue};n.prototype.translateInput=function(e,t){return this.mode="input",this.translate(e,t)},n.prototype.translateOutput=function(e,t){return this.mode="output",this.translate(e,t)},n.prototype.translate=function(e,t){var r=this;if(!t||void 0===e)return void 0;if(t.shape===r.attrValue)return o[r.mode](e);switch(t.type){case"structure":return r.translateStructure(e,t);case"map":return r.translateMap(e,t);case"list":return r.translateList(e,t);default:return r.translateScalar(e,t)}},n.prototype.translateStructure=function(e,t){var r=this;if(null==e)return void 0;var o={};return a.each(e,function(e,a){var n=t.members[e];if(n){var i=r.translate(a,n);void 0!==i&&(o[e]=i)}}),o},n.prototype.translateList=function(e,t){var r=this;if(null==e)return void 0;var o=[];return a.arrayEach(e,function(e){var a=r.translate(e,t.member);o.push(void 0===a?null:a)}),o},n.prototype.translateMap=function(e,t){var r=this;if(null==e)return void 0;var o={};return a.each(e,function(e,a){var n=r.translate(a,t.value);void 0===n?o[e]=null:o[e]=n}),o},n.prototype.translateScalar=function(e,t){return t.toType(e)},t.exports=n},{"../core":4,"./converter":11}],15:[function(e,t,r){function a(e){return null===e&&"object"==typeof e?"null":void 0!==e&&o(e)?"Binary":void 0!==e&&e.constructor?n.typeName(e.constructor):"undefined"}function o(e){var t=["Buffer","File","Blob","ArrayBuffer","DataView","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"];if(n.isNode()){var r=n.nodeRequire("stream").Stream;if(n.Buffer.isBuffer(e)||e instanceof r)return!0}else for(var a=0;a<t.length;a++)if(void 0!==e&&e.constructor){if(n.isType(e,t[a]))return!0;if(n.typeName(e.constructor)===t[a])return!0}return!1}var n=e("../core").util;t.exports={typeOf:a,isBinary:o}},{"../core":4}],16:[function(e,t,r){var a=e("./core"),o=e("./sequential_executor");a.EventListeners={Core:{}},a.EventListeners={Core:(new o).addNamedListeners(function(e,t){t("VALIDATE_CREDENTIALS","validate",function r(e,t){return e.service.api.signatureVersion?void e.service.config.getCredentials(function(r){r&&(e.response.error=a.util.error(r,{code:"CredentialsError",message:"Missing credentials in config"})),t()}):t()}),e("VALIDATE_REGION","validate",function o(e){e.service.config.region||e.service.isGlobalEndpoint||(e.response.error=a.util.error(new Error,{code:"ConfigError",message:"Missing region in config"}))}),e("VALIDATE_PARAMETERS","validate",function n(e){var t=e.service.api.operations[e.operation].input,r=e.service.config.paramValidation;new a.ParamValidator(r).validate(t,e.params)}),t("COMPUTE_SHA256","afterBuild",function i(e,t){if(e.haltHandlersOnError(),!e.service.api.signatureVersion)return t();if(e.service.getSignerClass(e)===a.Signers.V4){var r=e.httpRequest.body||"";a.util.computeSha256(r,function(r,a){r?t(r):(e.httpRequest.headers["X-Amz-Content-Sha256"]=a,t())})}else t()}),e("SET_CONTENT_LENGTH","afterBuild",function s(e){if(void 0===e.httpRequest.headers["Content-Length"]){var t=a.util.string.byteLength(e.httpRequest.body);e.httpRequest.headers["Content-Length"]=t}}),e("SET_HTTP_HOST","afterBuild",function u(e){e.httpRequest.headers.Host=e.httpRequest.endpoint.host}),e("RESTART","restart",function c(){var e=this.response.error;e&&e.retryable&&(this.httpRequest=new a.HttpRequest(this.service.endpoint,this.service.region),this.response.retryCount<this.service.config.maxRetries?this.response.retryCount++:this.response.error=null)}),t("SIGN","sign",function p(e,t){return e.service.api.signatureVersion?void e.service.config.getCredentials(function(r,o){if(r)return e.response.error=r,t();try{var n=a.util.date.getDate(),i=e.service.getSignerClass(e),s=new i(e.httpRequest,e.service.api.signingName||e.service.api.endpointPrefix,e.service.config.signatureCache);delete e.httpRequest.headers.Authorization,delete e.httpRequest.headers.Date,delete e.httpRequest.headers["X-Amz-Date"],s.addAuthorization(o,n),e.signedAt=n}catch(u){e.response.error=u}t()}):t()}),e("VALIDATE_RESPONSE","validateResponse",function m(e){this.service.successfulResponse(e,this)?(e.data={},e.error=null):(e.data=null,e.error=a.util.error(new Error,{code:"UnknownError",message:"An unknown error occurred."}))}),t("SEND","send",function l(e,t){function r(r){e.httpResponse.stream=r,r.on("headers",function o(t,n){e.request.emit("httpHeaders",[t,n,e]),e.httpResponse.streaming||(2===a.HttpClient.streamsApiVersion?r.on("readable",function i(){var t=r.read();null!==t&&e.request.emit("httpData",[t,e])}):r.on("data",function s(t){e.request.emit("httpData",[t,e])}))}),r.on("end",function n(){e.request.emit("httpDone"),t()})}function o(t){t.on("sendProgress",function r(t){e.request.emit("httpUploadProgress",[t,e])}),t.on("receiveProgress",function a(t){e.request.emit("httpDownloadProgress",[t,e])})}function n(r){e.error=a.util.error(r,{code:"NetworkingError",region:e.request.httpRequest.region,hostname:e.request.httpRequest.endpoint.hostname,retryable:!0}),e.request.emit("httpError",[e.error,e],function(){t()})}function i(){var t=a.HttpClient.getInstance(),i=e.request.service.config.httpOptions||{};try{var s=t.handleRequest(e.request.httpRequest,i,r,n);o(s)}catch(u){n(u)}}e.httpResponse._abortCallback=t,e.error=null,e.data=null;var s=(a.util.date.getDate()-this.signedAt)/1e3;s>=600?this.emit("sign",[this],function(e){e?t(e):i()}):i()}),e("HTTP_HEADERS","httpHeaders",function d(e,t,r){r.httpResponse.statusCode=e,r.httpResponse.headers=t,r.httpResponse.body=new a.util.Buffer(""),r.httpResponse.buffers=[],r.httpResponse.numBytes=0;var o=t.date||t.Date;if(o){var n=Date.parse(o);r.request.service.config.correctClockSkew&&a.util.isClockSkewed(n)&&a.util.applyClockOffset(n)}}),e("HTTP_DATA","httpData",function y(e,t){if(e){if(a.util.isNode()){t.httpResponse.numBytes+=e.length;var r=t.httpResponse.headers["content-length"],o={loaded:t.httpResponse.numBytes,total:r};t.request.emit("httpDownloadProgress",[o,t])}t.httpResponse.buffers.push(new a.util.Buffer(e))}}),e("HTTP_DONE","httpDone",function h(e){if(e.httpResponse.buffers&&e.httpResponse.buffers.length>0){var t=a.util.buffer.concat(e.httpResponse.buffers);e.httpResponse.body=t}delete e.httpResponse.numBytes,delete e.httpResponse.buffers}),e("FINALIZE_ERROR","retry",function b(e){e.httpResponse.statusCode&&(e.error.statusCode=e.httpResponse.statusCode,void 0===e.error.retryable&&(e.error.retryable=this.service.retryableError(e.error,this)))}),e("INVALIDATE_CREDENTIALS","retry",function f(e){if(e.error)switch(e.error.code){case"RequestExpired":case"ExpiredTokenException":case"ExpiredToken":e.error.retryable=!0,e.request.service.config.credentials.expired=!0}}),e("EXPIRED_SIGNATURE","retry",function g(e){var t=e.error;t&&"string"==typeof t.code&&"string"==typeof t.message&&t.code.match(/Signature/)&&t.message.match(/expired/)&&(e.error.retryable=!0)}),e("CLOCK_SKEWED","retry",function S(e){e.error&&this.service.clockSkewError(e.error)&&this.service.config.correctClockSkew&&a.config.isClockSkewed&&(e.error.retryable=!0)}),e("REDIRECT","retry",function N(e){e.error&&e.error.statusCode>=300&&e.error.statusCode<400&&e.httpResponse.headers.location&&(this.httpRequest.endpoint=new a.Endpoint(e.httpResponse.headers.location),this.httpRequest.headers.Host=this.httpRequest.endpoint.host,e.error.redirect=!0,e.error.retryable=!0)}),e("RETRY_CHECK","retry",function I(e){e.error&&(e.error.redirect&&e.redirectCount<e.maxRedirects?e.error.retryDelay=0:e.retryCount<e.maxRetries&&(e.error.retryDelay=this.service.retryDelays(e.retryCount)||0))}),t("RESET_RETRY_STATE","afterRetry",function v(e,t){var r,a=!1;e.error&&(r=e.error.retryDelay||0,e.error.retryable&&e.retryCount<e.maxRetries?(e.retryCount++,a=!0):e.error.redirect&&e.redirectCount<e.maxRedirects&&(e.redirectCount++,a=!0)),a?(e.error=null,setTimeout(t,r)):t()})}),CorePost:(new o).addNamedListeners(function(e){e("EXTRACT_REQUEST_ID","extractData",a.util.extractRequestId),e("EXTRACT_REQUEST_ID","extractError",a.util.extractRequestId),e("ENOTFOUND_ERROR","httpError",function t(e){if("NetworkingError"===e.code&&"ENOTFOUND"===e.errno){var t="Inaccessible host: `"+e.hostname+"'. This service may not be available in the `"+e.region+"' region.";this.response.error=a.util.error(new Error(t),{code:"UnknownEndpoint",region:e.region,hostname:e.hostname,retryable:!0,originalError:e})}})}),Logger:(new o).addNamedListeners(function(t){t("LOG_REQUEST","complete",function r(t){function r(){var r=a.util.date.getDate().getTime(),i=(r-o.startTime.getTime())/1e3,s=n.isTTY?!0:!1,u=t.httpResponse.statusCode,c=e("util").inspect(o.params,!0,null),p="";return s&&(p+="[33m"),p+="[AWS "+o.service.serviceIdentifier+" "+u,p+=" "+i.toString()+"s "+t.retryCount+" retries]",s&&(p+="[0;1m"),p+=" "+a.util.string.lowerFirst(o.operation),p+="("+c+")",s&&(p+="[0m"),p}var o=t.request,n=o.service.config.logger;if(n){var i=r();"function"==typeof n.log?n.log(i):"function"==typeof n.write&&n.write(i+"\n")}})}),Json:(new o).addNamedListeners(function(t){var r=e("./protocol/json");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),Rest:(new o).addNamedListeners(function(t){var r=e("./protocol/rest");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),RestJson:(new o).addNamedListeners(function(t){var r=e("./protocol/rest_json");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),RestXml:(new o).addNamedListeners(function(t){var r=e("./protocol/rest_xml");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)}),Query:(new o).addNamedListeners(function(t){var r=e("./protocol/query");t("BUILD","build",r.buildRequest),t("EXTRACT_DATA","extractData",r.extractData),t("EXTRACT_ERROR","extractError",r.extractError)})}},{"./core":4,"./protocol/json":28,"./protocol/query":29,"./protocol/rest":30,"./protocol/rest_json":31,"./protocol/rest_xml":32,"./sequential_executor":40,util:80}],17:[function(e,t,r){var a=e("./core"),o=a.util.inherit;a.Endpoint=o({constructor:function n(e,t){if(a.util.hideProperties(this,["slashes","auth","hash","search","query"]),"undefined"==typeof e||null===e)throw new Error("Invalid endpoint: "+e);if("string"!=typeof e)return a.util.copy(e);if(!e.match(/^http/)){var r=t&&void 0!==t.sslEnabled?t.sslEnabled:a.config.sslEnabled;e=(r?"https":"http")+"://"+e}a.util.update(this,a.util.urlParse(e)),this.port?this.port=parseInt(this.port,10):this.port="https:"===this.protocol?443:80}}),a.HttpRequest=o({constructor:function i(e,t,r){e=new a.Endpoint(e),this.method="POST",this.path=e.path||"/",this.headers={},this.body="",this.endpoint=e,this.region=t,this.setUserAgent(r)},setUserAgent:function s(e){var t=a.util.isBrowser()?"X-Amz-":"",r="";"string"==typeof e&&e&&(r+=" "+e),this.headers[t+"User-Agent"]=a.util.userAgent()+r},pathname:function u(){return this.path.split("?",1)[0]},search:function c(){var e=this.path.split("?",2)[1];return e?(e=a.util.queryStringParse(e),a.util.queryParamsToString(e)):""}}),a.HttpResponse=o({constructor:function p(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function m(){return this.streaming=!0,this.stream}}),a.HttpClient=o({}),a.HttpClient.getInstance=function l(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},{"./core":4}],18:[function(e,t,r){var a=e("../core"),o=e("events").EventEmitter;e("../http"),a.XHRClient=a.util.inherit({handleRequest:function n(e,t,r,i){var s=this,u=e.endpoint,c=new o,p=u.protocol+"//"+u.hostname;80!==u.port&&443!==u.port&&(p+=":"+u.port),p+=e.path;var m=new XMLHttpRequest,l=!1;e.stream=m,m.addEventListener("readystatechange",function(){try{if(0===m.status)return}catch(e){return}if(this.readyState>=this.HEADERS_RECEIVED&&!l){try{m.responseType="arraybuffer"}catch(e){}c.statusCode=m.status,c.headers=s.parseHeaders(m.getAllResponseHeaders()),c.emit("headers",c.statusCode,c.headers),l=!0}this.readyState===this.DONE&&s.finishRequest(m,c)},!1),m.upload.addEventListener("progress",function(e){c.emit("sendProgress",e)}),m.addEventListener("progress",function(e){c.emit("receiveProgress",e)},!1),m.addEventListener("timeout",function(){i(a.util.error(new Error("Timeout"),{code:"TimeoutError"}))},!1),m.addEventListener("error",function(){i(a.util.error(new Error("Network Failure"),{code:"NetworkingError"}))},!1),r(c),m.open(e.method,p,t.xhrAsync!==!1),a.util.each(e.headers,function(e,t){"Content-Length"!==e&&"User-Agent"!==e&&"Host"!==e&&m.setRequestHeader(e,t)}),t.timeout&&t.xhrAsync!==!1&&(m.timeout=t.timeout),t.xhrWithCredentials&&(m.withCredentials=!0);try{m.send(e.body)}catch(d){if(!e.body||"object"!=typeof e.body.buffer)throw d;m.send(e.body.buffer)}return c},parseHeaders:function i(e){var t={};return a.util.arrayEach(e.split(/\r?\n/),function(e){var r=e.split(":",1)[0],a=e.substring(r.length+2);r.length>0&&(t[r.toLowerCase()]=a)}),t},finishRequest:function s(e,t){var r;if("arraybuffer"===e.responseType&&e.response){var o=e.response;r=new a.util.Buffer(o.byteLength);for(var n=new Uint8Array(o),i=0;i<r.length;++i)r[i]=n[i]}try{r||"string"!=typeof e.responseText||(r=new a.util.Buffer(e.responseText))}catch(s){}r&&t.emit("data",r),t.emit("end")}}),a.HttpClient.prototype=a.XHRClient.prototype,a.HttpClient.streamsApiVersion=1},{"../core":4,"../http":17,events:71}],19:[function(e,t,r){function a(){}function o(e,t){if(!t||void 0===e||null===e)return void 0;switch(t.type){case"structure":return n(e,t);case"map":return s(e,t);case"list":return i(e,t);default:return u(e,t)}}function n(e,t){var r={};return c.each(e,function(e,a){var n=t.members[e];if(n){if("body"!==n.location)return;var i=n.isLocationName?n.name:e,s=o(a,n);void 0!==s&&(r[i]=s)}}),r}function i(e,t){var r=[];return c.arrayEach(e,function(e){var a=o(e,t.member);void 0!==a&&r.push(a)}),r}function s(e,t){var r={};return c.each(e,function(e,a){var n=o(a,t.value);void 0!==n&&(r[e]=n)}),r}function u(e,t){return t.toWireFormat(e)}var c=e("../util");a.prototype.build=function(e,t){return JSON.stringify(o(e,t))},t.exports=a},{"../util":59}],20:[function(e,t,r){function a(){}function o(e,t){if(!t||void 0===e)return void 0;switch(t.type){case"structure":return n(e,t);case"map":return s(e,t);case"list":return i(e,t);default:return u(e,t)}}function n(e,t){if(null==e)return void 0;var r={},a=t.members;return c.each(a,function(t,a){var n=a.isLocationName?a.name:t;if(e.hasOwnProperty(n)){var i=e[n],s=o(i,a);void 0!==s&&(r[t]=s)}}),r}function i(e,t){if(null==e)return void 0;var r=[];return c.arrayEach(e,function(e){var a=o(e,t.member);r.push(void 0===a?null:a)}),r}function s(e,t){if(null==e)return void 0;var r={};return c.each(e,function(e,a){var n=o(a,t.value);void 0===n?r[e]=null:r[e]=n}),r}function u(e,t){return t.toType(e)}var c=e("../util");a.prototype.parse=function(e,t){return o(JSON.parse(e),t)},t.exports=a},{"../util":59}],21:[function(e,t,r){function a(e,t){e=e||{},t=t||{},t.api=this,e.metadata=e.metadata||{},p(this,"isApi",!0,!1),p(this,"apiVersion",e.metadata.apiVersion),p(this,"endpointPrefix",e.metadata.endpointPrefix),p(this,"signingName",e.metadata.signingName),p(this,"globalEndpoint",e.metadata.globalEndpoint),p(this,"signatureVersion",e.metadata.signatureVersion),p(this,"jsonVersion",e.metadata.jsonVersion),p(this,"targetPrefix",e.metadata.targetPrefix),p(this,"protocol",e.metadata.protocol),p(this,"timestampFormat",e.metadata.timestampFormat),p(this,"xmlNamespaceUri",e.metadata.xmlNamespace),p(this,"abbreviation",e.metadata.serviceAbbreviation),p(this,"fullName",e.metadata.serviceFullName),m(this,"className",function(){var t=e.metadata.serviceAbbreviation||e.metadata.serviceFullName;return t?(t=t.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""),"ElasticLoadBalancing"===t&&(t="ELB"),t):null}),p(this,"operations",new o(e.operations,t,function(e,r){return new n(e,r,t)},c.string.lowerFirst)),p(this,"shapes",new o(e.shapes,t,function(e,r){return i.create(r,t)})),p(this,"paginators",new o(e.paginators,t,function(e,r){return new s(e,r,t)})),p(this,"waiters",new o(e.waiters,t,function(e,r){return new u(e,r,t)},c.string.lowerFirst)),t.documentation&&(p(this,"documentation",e.documentation),p(this,"documentationUrl",e.documentationUrl))}var o=e("./collection"),n=e("./operation"),i=e("./shape"),s=e("./paginator"),u=e("./resource_waiter"),c=e("../util"),p=c.property,m=c.memoizedProperty;t.exports=a},{"../util":59,"./collection":22,"./operation":23,"./paginator":24,"./resource_waiter":25,"./shape":26}],22:[function(e,t,r){function a(e,t,r,a){n(this,a(e),function(){return r(e,t)})}function o(e,t,r,o){o=o||String;var n=this;for(var i in e)e.hasOwnProperty(i)&&a.call(n,i,e[i],r,o)}var n=e("../util").memoizedProperty;t.exports=o},{"../util":59}],23:[function(e,t,r){function a(e,t,r){r=r||{},i(this,"name",t.name||e),i(this,"api",r.api,!1),t.http=t.http||{},i(this,"httpMethod",t.http.method||"POST"),i(this,"httpPath",t.http.requestUri||"/"),s(this,"input",function(){return t.input?o.create(t.input,r):new o.create({type:"structure"},r)}),s(this,"output",function(){return t.output?o.create(t.output,r):new o.create({type:"structure"},r)}),s(this,"errors",function(){var e=[];if(!t.errors)return null;for(var a=0;a<t.errors.length;a++)e.push(o.create(t.errors[a],r));return e}),s(this,"paginator",function(){return r.api.paginators[e]}),r.documentation&&(i(this,"documentation",t.documentation),i(this,"documentationUrl",t.documentationUrl))}var o=e("./shape"),n=e("../util"),i=n.property,s=n.memoizedProperty;t.exports=a},{"../util":59,"./shape":26}],24:[function(e,t,r){function a(e,t){o(this,"inputToken",t.input_token),o(this,"limitKey",t.limit_key),o(this,"moreResults",t.more_results),o(this,"outputToken",t.output_token),o(this,"resultKey",t.result_key)}var o=e("../util").property;t.exports=a},{"../util":59}],25:[function(e,t,r){function a(e,t,r){function a(){n(this,"name",e),n(this,"api",r.api,!1),t.operation&&n(this,"operation",o.string.lowerFirst(t.operation));var a=this,i={ignoreErrors:"ignore_errors",successType:"success_type",successValue:"success_value",successPath:"success_path",acceptorType:"acceptor_type",acceptorValue:"acceptor_value",acceptorPath:"acceptor_path",failureType:"failure_type",failureValue:"failure_value",failurePath:"success_path",interval:"interval",maxAttempts:"max_attempts"};Object.keys(i).forEach(function(e){var r=t[i[e]];r&&n(a,e,r)})}if(r=r||{},r.api){var i=null;t["extends"]?i=r.api.waiters[t["extends"]]:"__default__"!==e&&(i=r.api.waiters.__default__),i&&(a.prototype=i)}return new a}var o=e("../util"),n=o.property;t.exports=a},{"../util":59}],26:[function(e,t,r){function a(e,t,r){null!==r&&void 0!==r&&g.property.apply(this,arguments)}function o(e,t){e.constructor.prototype[t]||g.memoizedProperty.apply(this,arguments)}function n(e,t,r){t=t||{},a(this,"shape",e.shape),a(this,"api",t.api,!1),a(this,"type",e.type),a(this,"enum",e["enum"]),a(this,"min",e.min),a(this,"max",e.max),a(this,"pattern",e.pattern),a(this,"location",e.location||this.location||"body"),a(this,"name",this.name||e.xmlName||e.queryName||e.locationName||r),a(this,"isStreaming",e.streaming||this.isStreaming||!1),a(this,"isComposite",e.isComposite||!1),a(this,"isShape",!0,!1),a(this,"isQueryName",e.queryName?!0:!1,!1),a(this,"isLocationName",e.locationName?!0:!1,!1),t.documentation&&(a(this,"documentation",e.documentation),a(this,"documentationUrl",e.documentationUrl)),e.xmlAttribute&&a(this,"isXmlAttribute",e.xmlAttribute||!1),a(this,"defaultValue",null),this.toWireFormat=function(e){return null===e||void 0===e?"":e},this.toType=function(e){return e}}function i(e){n.apply(this,arguments),a(this,"isComposite",!0),e.flattened&&a(this,"flattened",e.flattened||!1)}function s(e,t){var r=null,s=!this.isShape;i.apply(this,arguments),s&&(a(this,"defaultValue",function(){return{}}),a(this,"members",{}),a(this,"memberNames",[]),a(this,"required",[]),a(this,"isRequired",function(){return!1})),e.members&&(a(this,"members",new f(e.members,t,function(e,r){return n.create(r,t,e)})),o(this,"memberNames",function(){return e.xmlOrder||Object.keys(e.members)})),e.required&&(a(this,"required",e.required),a(this,"isRequired",function(t){if(!r){r={};for(var a=0;a<e.required.length;a++)r[e.required[a]]=!0}return r[t]},!1,!0)),a(this,"resultWrapper",e.resultWrapper||null),e.payload&&a(this,"payload",e.payload),"string"==typeof e.xmlNamespace?a(this,"xmlNamespaceUri",e.xmlNamespace):"object"==typeof e.xmlNamespace&&(a(this,"xmlNamespacePrefix",e.xmlNamespace.prefix),a(this,"xmlNamespaceUri",e.xmlNamespace.uri))}function u(e,t){var r=this,s=!this.isShape;if(i.apply(this,arguments),s&&a(this,"defaultValue",function(){return[]}),e.member&&o(this,"member",function(){return n.create(e.member,t)}),this.flattened){var u=this.name;o(this,"name",function(){return r.member.name||u})}}function c(e,t){var r=!this.isShape;i.apply(this,arguments),r&&(a(this,"defaultValue",function(){return{}}),a(this,"key",n.create({type:"string"},t)),a(this,"value",n.create({type:"string"},t))),e.key&&o(this,"key",function(){return n.create(e.key,t)}),e.value&&o(this,"value",function(){return n.create(e.value,t)})}function p(e){var t=this;if(n.apply(this,arguments),"header"===this.location)a(this,"timestampFormat","rfc822");else if(e.timestampFormat)a(this,"timestampFormat",e.timestampFormat);else if(this.api)if(this.api.timestampFormat)a(this,"timestampFormat",this.api.timestampFormat);else switch(this.api.protocol){case"json":case"rest-json":a(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":a(this,"timestampFormat","iso8601")}this.toType=function(e){return null===e||void 0===e?null:"function"==typeof e.toUTCString?e:"string"==typeof e||"number"==typeof e?g.date.parseTimestamp(e):null},this.toWireFormat=function(e){return g.date.format(e,t.timestampFormat)}}function m(){if(n.apply(this,arguments),this.api)switch(this.api.protocol){case"rest-xml":case"query":case"ec2":this.toType=function(e){return e||""}}}function l(){n.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseFloat(e)},this.toWireFormat=this.toType}function d(){n.apply(this,arguments),this.toType=function(e){return null===e||void 0===e?null:parseInt(e,10)},this.toWireFormat=this.toType}function y(){n.apply(this,arguments),this.toType=g.base64.decode,this.toWireFormat=g.base64.encode}function h(){y.apply(this,arguments)}function b(){n.apply(this,arguments),this.toType=function(e){return"boolean"==typeof e?e:null===e||void 0===e?null:"true"===e}}var f=e("./collection"),g=e("../util");n.normalizedTypes={character:"string","double":"float","long":"integer","short":"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},n.types={structure:s,list:u,map:c,"boolean":b,timestamp:p,"float":l,integer:d,string:m,base64:h,binary:y},n.resolve=function S(e,t){if(e.shape){var r=t.api.shapes[e.shape];if(!r)throw new Error("Cannot find shape reference: "+e.shape);return r}return null},n.create=function N(e,t,r){if(e.isShape)return e;var a=n.resolve(e,t);if(a){var o=Object.keys(e);if(t.documentation||(o=o.filter(function(e){return!e.match(/documentation/)})),o===["shape"])return a;var i=function(){a.constructor.call(this,e,t,r)};return i.prototype=a,new i}e.type||(e.members?e.type="structure":e.member?e.type="list":e.key?e.type="map":e.type="string");var s=e.type;if(n.normalizedTypes[e.type]&&(e.type=n.normalizedTypes[e.type]),n.types[e.type])return new n.types[e.type](e,t,r);throw new Error("Unrecognized shape type: "+s)},n.shapes={StructureShape:s,ListShape:u,MapShape:c,StringShape:m,BooleanShape:b,Base64Shape:h},t.exports=n},{"../util":59,"./collection":22}],27:[function(e,t,r){var a=e("./core");a.ParamValidator=a.util.inherit({constructor:function o(e){(e===!0||void 0===e)&&(e={min:!0}),this.validation=e},validate:function n(e,t,r){if(this.errors=[],this.validateMember(e,t||{},r||"params"),this.errors.length>1){var o=this.errors.join("\n* ");throw o="There were "+this.errors.length+" validation errors:\n* "+o,a.util.error(new Error(o),{code:"MultipleValidationErrors",errors:this.errors})}if(1===this.errors.length)throw this.errors[0];return!0},fail:function i(e,t){this.errors.push(a.util.error(new Error(t),{code:e}))},validateStructure:function s(e,t,r){this.validateType(t,r,["object"],"structure");for(var a,o=0;e.required&&o<e.required.length;o++){a=e.required[o];var n=t[a];(void 0===n||null===n)&&this.fail("MissingRequiredParameter","Missing required key '"+a+"' in "+r)}for(a in t)if(t.hasOwnProperty(a)){var i=t[a],s=e.members[a];if(void 0!==s){var u=[r,a].join(".");this.validateMember(s,i,u)}else this.fail("UnexpectedParameter","Unexpected key '"+a+"' found in "+r)}return!0},validateMember:function u(e,t,r){switch(e.type){case"structure":return this.validateStructure(e,t,r);case"list":return this.validateList(e,t,r);case"map":return this.validateMap(e,t,r);default:return this.validateScalar(e,t,r)}},validateList:function c(e,t,r){if(this.validateType(t,r,[Array])){this.validateRange(e,t.length,r,"list member count");for(var a=0;a<t.length;a++)this.validateMember(e.member,t[a],r+"["+a+"]")}},validateMap:function p(e,t,r){if(this.validateType(t,r,["object"],"map")){var a=0;for(var o in t)t.hasOwnProperty(o)&&(this.validateMember(e.key,o,r+"[key='"+o+"']"),this.validateMember(e.value,t[o],r+"['"+o+"']"),a++);this.validateRange(e,a,r,"map member count")}},validateScalar:function m(e,t,r){switch(e.type){case null:case void 0:case"string":return this.validateString(e,t,r);case"base64":case"binary":return this.validatePayload(t,r);case"integer":case"float":return this.validateNumber(e,t,r);case"boolean":return this.validateType(t,r,["boolean"]);case"timestamp":return this.validateType(t,r,[Date,/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/,"number"],"Date object, ISO-8601 string, or a UNIX timestamp");default:return this.fail("UnkownType","Unhandled type "+e.type+" for "+r)}},validateString:function l(e,t,r){this.validateType(t,r,["string"])&&(this.validateEnum(e,t,r),this.validateRange(e,t.length,r,"string length"),this.validatePattern(e,t,r))},validatePattern:function d(e,t,r){this.validation.pattern&&void 0!==e.pattern&&(new RegExp(e.pattern).test(t)||this.fail("PatternMatchError",'Provided value "'+t+'" does not match regex pattern /'+e.pattern+"/ for "+r))},validateRange:function y(e,t,r,a){this.validation.min&&void 0!==e.min&&t<e.min&&this.fail("MinRangeError","Expected "+a+" >= "+e.min+", but found "+t+" for "+r),this.validation.max&&void 0!==e.max&&t>e.max&&this.fail("MaxRangeError","Expected "+a+" <= "+e.max+", but found "+t+" for "+r)},validateEnum:function h(e,t,r){this.validation["enum"]&&void 0!==e["enum"]&&-1===e["enum"].indexOf(t)&&this.fail("EnumError","Found string value of "+t+", but expected "+e["enum"].join("|")+" for "+r)},validateType:function b(e,t,r,o){if(null===e||void 0===e)return!1;for(var n=!1,i=0;i<r.length;i++){if("string"==typeof r[i]){if(typeof e===r[i])return!0}else if(r[i]instanceof RegExp){if((e||"").toString().match(r[i]))return!0}else{if(e instanceof r[i])return!0;if(a.util.isType(e,r[i]))return!0;o||n||(r=r.slice()),r[i]=a.util.typeName(r[i])}n=!0}var s=o;s||(s=r.join(", ").replace(/,([^,]+)$/,", or$1"));var u=s.match(/^[aeiou]/i)?"n":"";return this.fail("InvalidParameterType","Expected "+t+" to be a"+u+" "+s),!1},validateNumber:function f(e,t,r){if(null!==t&&void 0!==t){if("string"==typeof t){var a=parseFloat(t);a.toString()===t&&(t=a)}this.validateType(t,r,["number"])&&this.validateRange(e,t,r,"numeric value")}},validatePayload:function g(e,t){if(null!==e&&void 0!==e&&"string"!=typeof e&&(!e||"number"!=typeof e.byteLength)){if(a.util.isNode()){var r=a.util.nodeRequire("stream").Stream;if(a.util.Buffer.isBuffer(e)||e instanceof r)return}var o=["Buffer","Stream","File","Blob","ArrayBuffer","DataView"];if(e)for(var n=0;n<o.length;n++){if(a.util.isType(e,o[n]))return;if(a.util.typeName(e.constructor)===o[n])return}this.fail("InvalidParameterType","Expected "+t+" to be a string, Buffer, Stream, Blob, or typed array object")}}})},{"./core":4}],28:[function(e,t,r){function a(e){var t=e.httpRequest,r=e.service.api,a=r.targetPrefix+"."+r.operations[e.operation].name,o=r.jsonVersion||"1.0",n=r.operations[e.operation].input,i=new s;1===o&&(o="1.0"),t.body=i.build(e.params||{},n),t.headers["Content-Type"]="application/x-amz-json-"+o,t.headers["X-Amz-Target"]=a}function o(e){var t={},r=e.httpResponse;if(t.code=r.headers["x-amzn-errortype"]||"UnknownError","string"==typeof t.code&&(t.code=t.code.split(":")[0]),r.body.length>0){var a=JSON.parse(r.body.toString());(a.__type||a.code)&&(t.code=(a.__type||a.code).split("#").pop()),"RequestEntityTooLarge"===t.code?t.message="Request body must be less than 1 MB":t.message=a.message||a.Message||null}else t.statusCode=r.statusCode,t.message=r.statusCode.toString();e.error=i.error(new Error,t)}function n(e){var t=e.httpResponse.body.toString()||"{}";if(e.request.service.config.convertResponseTypes===!1)e.data=JSON.parse(t);else{var r=e.request.service.api.operations[e.request.operation],a=r.output||{},o=new u;e.data=o.parse(t,a)}}var i=e("../util"),s=e("../json/builder"),u=e("../json/parser");t.exports={buildRequest:a,extractError:o,extractData:n}},{"../json/builder":19,"../json/parser":20,"../util":59}],29:[function(e,t,r){function a(e){var t=e.service.api.operations[e.operation],r=e.httpRequest;r.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",r.params={Version:e.service.api.apiVersion,Action:t.name};var a=new u;a.serialize(e.params,t.input,function(e,t){r.params[e]=t}),r.body=s.queryParamsToString(r.params)}function o(e){var t,r=e.httpResponse.body.toString();t=r.match("<UnknownOperationException")?{Code:"UnknownOperation",Message:"Unknown operation "+e.request.operation}:(new i.XML.Parser).parse(r),t.requestId&&!e.requestId&&(e.requestId=t.requestId),t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=s.error(new Error,{code:t.Code,message:t.Message}):e.error=s.error(new Error,{code:e.httpResponse.statusCode,message:null})}function n(e){var t=e.request,r=t.service.api.operations[t.operation],a=r.output||{},o=a;if(o.resultWrapper){var n=c.create({type:"structure"});n.members[o.resultWrapper]=a,n.memberNames=[o.resultWrapper],s.property(a,"name",a.resultWrapper),a=n}var u=new i.XML.Parser;if(a&&a.members&&!a.members._XAMZRequestId){var p=c.create({type:"string"},{api:{protocol:"query"}},"requestId");a.members._XAMZRequestId=p}var m=u.parse(e.httpResponse.body.toString(),a);e.requestId=m._XAMZRequestId||m.requestId,m._XAMZRequestId&&delete m._XAMZRequestId,o.resultWrapper&&m[o.resultWrapper]&&(s.update(m,m[o.resultWrapper]),delete m[o.resultWrapper]),e.data=m}var i=e("../core"),s=e("../util"),u=e("../query/query_param_serializer"),c=e("../model/shape");t.exports={buildRequest:a,extractError:o,extractData:n}},{"../core":4,"../model/shape":26,"../query/query_param_serializer":33,"../util":59}],30:[function(e,t,r){function a(e){e.httpRequest.method=e.service.api.operations[e.operation].httpMethod}function o(e){var t=e.service.api.operations[e.operation],r=t.input,a=[e.httpRequest.endpoint.path,t.httpPath].join("/");a=a.replace(/\/+/g,"/");var o={},n=!1;if(c.each(r.members,function(t,r){var i=e.params[t];if(null!==i&&void 0!==i)if("uri"===r.location){var s=new RegExp("\\{"+r.name+"(\\+)?\\}");a=a.replace(s,function(e,t){
|
||
var r=t?c.uriEscapePath:c.uriEscape;return r(String(i))})}else"querystring"===r.location&&(n=!0,"list"===r.type?o[r.name]=i.map(function(e){return c.uriEscape(String(e))}):"map"===r.type?c.each(i,function(e,t){Array.isArray(t)?o[e]=t.map(function(e){return c.uriEscape(String(e))}):o[e]=c.uriEscape(String(t))}):o[r.name]=c.uriEscape(String(i)))}),n){a+=a.indexOf("?")>=0?"&":"?";var i=[];c.arrayEach(Object.keys(o).sort(),function(e){Array.isArray(o[e])||(o[e]=[o[e]]);for(var t=0;t<o[e].length;t++)i.push(c.uriEscape(String(e))+"="+o[e][t])}),a+=i.join("&")}e.httpRequest.path=a}function n(e){var t=e.service.api.operations[e.operation];c.each(t.input.members,function(t,r){var a=e.params[t];null!==a&&void 0!==a&&("headers"===r.location&&"map"===r.type?c.each(a,function(t,a){e.httpRequest.headers[r.name+t]=a}):"header"===r.location&&(a=r.toWireFormat(a).toString(),e.httpRequest.headers[r.name]=a))})}function i(e){a(e),o(e),n(e)}function s(){}function u(e){var t=e.request,r={},a=e.httpResponse,o=t.service.api.operations[t.operation],n=o.output,i={};c.each(a.headers,function(e,t){i[e.toLowerCase()]=t}),c.each(n.members,function(e,t){var o=(t.name||e).toLowerCase();if("headers"===t.location&&"map"===t.type){r[e]={};var n=t.isLocationName?t.name:"",s=new RegExp("^"+n+"(.+)","i");c.each(a.headers,function(t,a){var o=t.match(s);null!==o&&(r[e][o[1]]=a)})}else"header"===t.location?void 0!==i[o]&&(r[e]=i[o]):"statusCode"===t.location&&(r[e]=parseInt(a.statusCode,10))}),e.data=r}var c=e("../util");t.exports={buildRequest:i,extractError:s,extractData:u}},{"../util":59}],31:[function(e,t,r){function a(e){var t=new p,r=e.service.api.operations[e.operation].input;if(r.payload){var a={},o=r.members[r.payload];if(a=e.params[r.payload],void 0===a)return;"structure"===o.type?e.httpRequest.body=t.build(a,o):e.httpRequest.body=a}else e.httpRequest.body=t.build(e.params,r)}function o(e){u.buildRequest(e),["GET","HEAD","DELETE"].indexOf(e.httpRequest.method)<0&&a(e)}function n(e){c.extractError(e)}function i(e){u.extractData(e);var t=e.request,r=t.service.api.operations[t.operation].output||{};if(r.payload){var a=r.members[r.payload],o=e.httpResponse.body;if(a.isStreaming)e.data[r.payload]=o;else if("structure"===a.type||"list"===a.type){var n=new m;e.data[r.payload]=n.parse(o,a)}else e.data[r.payload]=o.toString()}else{var i=e.data;c.extractData(e),e.data=s.merge(i,e.data)}}var s=e("../util"),u=e("./rest"),c=e("./json"),p=e("../json/builder"),m=e("../json/parser");t.exports={buildRequest:o,extractError:n,extractData:i}},{"../json/builder":19,"../json/parser":20,"../util":59,"./json":28,"./rest":30}],32:[function(e,t,r){function a(e){var t=e.service.api.operations[e.operation].input,r=new s.XML.Builder,a=e.params,o=t.payload;if(o){var n=t.members[o];if(a=a[o],void 0===a)return;if("structure"===n.type){var i=n.name;e.httpRequest.body=r.toXML(a,n,i,!0)}else e.httpRequest.body=a}else e.httpRequest.body=r.toXML(a,t,t.name||t.shape||u.string.upperFirst(e.operation)+"Request")}function o(e){c.buildRequest(e),["GET","HEAD"].indexOf(e.httpRequest.method)<0&&a(e)}function n(e){c.extractError(e);var t=(new s.XML.Parser).parse(e.httpResponse.body.toString());t.Errors&&(t=t.Errors),t.Error&&(t=t.Error),t.Code?e.error=u.error(new Error,{code:t.Code,message:t.Message}):e.error=u.error(new Error,{code:e.httpResponse.statusCode,message:null})}function i(e){c.extractData(e);var t,r=e.request,a=e.httpResponse.body,o=r.service.api.operations[r.operation],n=o.output,i=n.payload;if(i){var p=n.members[i];p.isStreaming?e.data[i]=a:"structure"===p.type?(t=new s.XML.Parser,e.data[i]=t.parse(a.toString(),p)):e.data[i]=a.toString()}else if(a.length>0){t=new s.XML.Parser;var m=t.parse(a.toString(),n);u.update(e.data,m)}}var s=e("../core"),u=e("../util"),c=e("./rest");t.exports={buildRequest:o,extractError:n,extractData:i}},{"../core":4,"../util":59,"./rest":30}],33:[function(e,t,r){function a(){}function o(e){return e.isQueryName||"ec2"!==e.api.protocol?e.name:e.name[0].toUpperCase()+e.name.substr(1)}function n(e,t,r,a){c.each(r.members,function(r,n){var i=t[r];if(null!==i&&void 0!==i){var s=o(n);s=e?e+"."+s:s,u(s,i,n,a)}})}function i(e,t,r,a){var o=1;c.each(t,function(t,n){var i=r.flattened?".":".entry.",s=i+o++ +".",c=s+(r.key.name||"key"),p=s+(r.value.name||"value");u(e+c,t,r.key,a),u(e+p,n,r.value,a)})}function s(e,t,r,a){var n=r.member||{};return 0===t.length?void a.call(this,e,null):void c.arrayEach(t,function(t,i){var s="."+(i+1);if("ec2"===r.api.protocol)s+="";else if(r.flattened){if(n.name){var c=e.split(".");c.pop(),c.push(o(n)),e=c.join(".")}}else s=".member"+s;u(e+s,t,n,a)})}function u(e,t,r,a){null!==t&&void 0!==t&&("structure"===r.type?n(e,t,r,a):"list"===r.type?s(e,t,r,a):"map"===r.type?i(e,t,r,a):a(e,r.toWireFormat(t).toString()))}var c=e("../util");a.prototype.serialize=function(e,t,r){n("",e,t,r)},t.exports=a},{"../util":59}],34:[function(e,t,r){function a(e){if(!e)return null;var t=e.split("-");return t.length<3?null:t.slice(0,t.length-2).join("-")+"-*"}function o(e){var t=e.config.region,r=a(t),o=e.api.endpointPrefix;return[[t,o],[r,o],[t,"*"],[r,"*"],["*",o],["*","*"]].map(function(e){return e[0]&&e[1]?e.join("/"):null})}function n(e,t){s.each(t,function(t,r){"globalEndpoint"!==t&&(void 0===e.config[t]||null===e.config[t])&&(e.config[t]=r)})}function i(e){for(var t=o(e),r=0;r<t.length;r++){var a=t[r];if(a&&u.rules.hasOwnProperty(a)){var i=u.rules[a];return"string"==typeof i&&(i=u.patterns[i]),e.isGlobalEndpoint=!!i.globalEndpoint,i.signatureVersion||(i.signatureVersion="v4"),void n(e,i)}}}var s=e("./util"),u=e("./region_config.json");t.exports=i},{"./region_config.json":35,"./util":59}],35:[function(e,t,r){t.exports={rules:{"*/*":{endpoint:"{service}.{region}.amazonaws.com"},"cn-*/*":{endpoint:"{service}.{region}.amazonaws.com.cn"},"*/cloudfront":"globalSSL","*/iam":"globalSSL","*/sts":"globalSSL","*/importexport":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2",globalEndpoint:!0},"*/route53":{endpoint:"https://{service}.amazonaws.com",signatureVersion:"v3https",globalEndpoint:!0},"*/waf":"globalSSL","us-gov-*/iam":"globalGovCloud","us-gov-*/sts":{endpoint:"{service}.{region}.amazonaws.com"},"us-gov-west-1/s3":"s3dash","us-west-1/s3":"s3dash","us-west-2/s3":"s3dash","eu-west-1/s3":"s3dash","ap-southeast-1/s3":"s3dash","ap-southeast-2/s3":"s3dash","ap-northeast-1/s3":"s3dash","sa-east-1/s3":"s3dash","us-east-1/s3":{endpoint:"{service}.amazonaws.com",signatureVersion:"s3"},"us-east-1/sdb":{endpoint:"{service}.amazonaws.com",signatureVersion:"v2"},"*/sdb":{endpoint:"{service}.{region}.amazonaws.com",signatureVersion:"v2"}},patterns:{globalSSL:{endpoint:"https://{service}.amazonaws.com",globalEndpoint:!0},globalGovCloud:{endpoint:"{service}.us-gov.amazonaws.com"},s3dash:{endpoint:"{service}-{region}.amazonaws.com",signatureVersion:"s3"}}}},{}],36:[function(e,t,r){(function(t){function r(e){return s.hasOwnProperty(e._asm.currentState)}var a=e("./core"),o=e("./state_machine"),n=a.util.inherit,i=a.util.nodeRequire("domain"),s={success:1,error:1,complete:1},u=new o;u.setupStates=function(){var e=function(e,t){var a=this;a._haltHandlersOnError=!1,a.emit(a._asm.currentState,function(e){if(e)if(r(a)){if(!(i&&a.domain instanceof i.Domain))throw e;e.domainEmitter=a,e.domain=a.domain,e.domainThrown=!1,a.domain.emit("error",e)}else a.response.error=e,t(e);else t(a.response.error)})};this.addState("validate","build","error",e),this.addState("build","afterBuild","restart",e),this.addState("afterBuild","sign","restart",e),this.addState("sign","send","retry",e),this.addState("retry","afterRetry","afterRetry",e),this.addState("afterRetry","sign","error",e),this.addState("send","validateResponse","retry",e),this.addState("validateResponse","extractData","extractError",e),this.addState("extractError","extractData","retry",e),this.addState("extractData","success","retry",e),this.addState("restart","build","error",e),this.addState("success","complete","complete",e),this.addState("error","complete","complete",e),this.addState("complete",null,null,e)},u.setupStates(),a.Request=n({constructor:function c(e,t,r){var n=e.endpoint,s=e.config.region,c=e.config.customUserAgent;e.isGlobalEndpoint&&(s="us-east-1"),this.domain=i&&i.active,this.service=e,this.operation=t,this.params=r||{},this.httpRequest=new a.HttpRequest(n,s,c),this.startTime=a.util.date.getDate(),this.response=new a.Response(this),this._asm=new o(u.states,"validate"),this._haltHandlersOnError=!1,a.SequentialExecutor.call(this),this.emit=this.emitEvent},send:function p(e){return e&&this.on("complete",function(t){e.call(t,t.error,t.data)}),this.runTo(),this.response},build:function m(e){return this.runTo("send",e)},runTo:function l(e,t){return this._asm.runTo(e,t,this),this},abort:function d(){return this.removeAllListeners("validateResponse"),this.removeAllListeners("extractError"),this.on("validateResponse",function e(t){t.error=a.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1})}),this.httpRequest.stream&&(this.httpRequest.stream.abort(),this.httpRequest._abortCallback?this.httpRequest._abortCallback():this.removeAllListeners("send")),this},eachPage:function y(e){function t(r){e.call(r,r.error,r.data,function(o){o!==!1&&(r.hasNextPage()?r.nextPage().on("complete",t).send():e.call(r,null,null,a.util.fn.noop))})}e=a.util.fn.makeAsync(e,3),this.on("complete",t).send()},eachItem:function h(e){function t(t,o){if(t)return e(t,null);if(null===o)return e(null,null);var n=r.service.paginationConfig(r.operation),i=n.resultKey;Array.isArray(i)&&(i=i[0]);var s=a.util.jamespath.query(i,o);a.util.arrayEach(s,function(t){a.util.arrayEach(t,function(t){e(null,t)})})}var r=this;this.eachPage(t)},isPageable:function b(){return this.service.paginationConfig(this.operation)?!0:!1},createReadStream:function f(){var e=a.util.nodeRequire("stream"),r=this,o=null;return 2===a.HttpClient.streamsApiVersion?(o=new e.PassThrough,r.send()):(o=new e.Stream,o.readable=!0,o.sent=!1,o.on("newListener",function(e){o.sent||"data"!==e||(o.sent=!0,t.nextTick(function(){r.send()}))})),this.on("httpHeaders",function n(e,t,i){if(300>e){r.removeListener("httpData",a.EventListeners.Core.HTTP_DATA),r.removeListener("httpError",a.EventListeners.Core.HTTP_ERROR),r.on("httpError",function u(e){i.error=e,i.error.retryable=!1});var s=i.httpResponse.createUnbufferedStream();2===a.HttpClient.streamsApiVersion?s.pipe(o):(s.on("data",function(e){o.emit("data",e)}),s.on("end",function(){o.emit("end")})),s.on("error",function(e){o.emit("error",e)})}}),this.on("error",function(e){o.emit("error",e)}),o},emitEvent:function g(e,t,r){"function"==typeof t&&(r=t,t=null),r||(r=function(){}),t||(t=this.eventParameters(e,this.response));var o=a.SequentialExecutor.prototype.emit;o.call(this,e,t,function(e){e&&(this.response.error=e),r.call(this,e)})},eventParameters:function S(e){switch(e){case"restart":case"validate":case"sign":case"build":case"afterValidate":case"afterBuild":return[this];case"error":return[this.response.error,this.response];default:return[this.response]}},presign:function N(e,t){return t||"function"!=typeof e||(t=e,e=null),(new a.Signers.Presign).sign(this.toGet(),e,t)},toUnauthenticated:function I(){return this.removeListener("validate",a.EventListeners.Core.VALIDATE_CREDENTIALS),this.removeListener("sign",a.EventListeners.Core.SIGN),this},toGet:function v(){return("query"===this.service.api.protocol||"ec2"===this.service.api.protocol)&&(this.removeListener("build",this.buildAsGet),this.addListener("build",this.buildAsGet)),this},buildAsGet:function k(e){e.httpRequest.method="GET",e.httpRequest.path=e.service.endpoint.path+"?"+e.httpRequest.body,e.httpRequest.body="",delete e.httpRequest.headers["Content-Length"],delete e.httpRequest.headers["Content-Type"]},haltHandlersOnError:function C(){this._haltHandlersOnError=!0}}),a.util.mixin(a.Request,a.SequentialExecutor)}).call(this,e("FWaASH"))},{"./core":4,"./state_machine":58,FWaASH:73}],37:[function(e,t,r){var a=e("./core"),o=a.util.inherit;a.ResourceWaiter=o({constructor:function n(e,t){this.service=e,this.state=t,"object"==typeof this.state&&a.util.each.call(this,this.state,function(e,t){this.state=e,this.expectedValue=t}),this.loadWaiterConfig(this.state),this.expectedValue||(this.expectedValue=this.config.successValue)},service:null,state:null,expectedValue:null,config:null,waitDone:!1,Listeners:{retry:(new a.SequentialExecutor).addNamedListeners(function(e){e("RETRY_CHECK","retry",function(e){var t=e.request._waiter;e.error&&"ResourceNotReady"===e.error.code&&(e.error.retryDelay=1e3*t.config.interval)})}),output:(new a.SequentialExecutor).addNamedListeners(function(e){e("CHECK_OUT_ERROR","extractError",function t(e){e.error&&e.request._waiter.setError(e,!0)}),e("CHECK_OUTPUT","extractData",function r(e){var t=e.request._waiter,r=t.checkSuccess(e);r?e.error=null:t.setError(e,null===r?!1:!0)})}),error:(new a.SequentialExecutor).addNamedListeners(function(e){e("CHECK_ERROR","extractError",function t(e){var t=e.request._waiter,r=t.checkError(e);r?(e.error=null,e.data={},e.request.removeAllListeners("extractData")):t.setError(e,null===r?!1:!0)}),e("CHECK_ERR_OUTPUT","extractData",function r(e){e.request._waiter.setError(e,!0)})})},wait:function i(e,t){"function"==typeof e&&(t=e,e=void 0);var r=this.service.makeRequest(this.config.operation,e),a=this.Listeners[this.config.successType];return r._waiter=this,r.response.maxRetries=this.config.maxAttempts,r.addListeners(this.Listeners.retry),a&&r.addListeners(a),t&&r.send(t),r},setError:function s(e,t){e.data=null,e.error=a.util.error(e.error||new Error,{code:"ResourceNotReady",message:"Resource is not in the state "+this.state,retryable:t})},checkSuccess:function u(e){if(!this.config.successPath)return e.httpResponse.statusCode<300;var t=a.util.jamespath.find(this.config.successPath,e.data);return this.config.failureValue&&this.config.failureValue.indexOf(t)>=0?null:this.expectedValue?t===this.expectedValue:t?!0:!1},checkError:function c(e){var t=this.config.successValue;return"number"==typeof t?e.httpResponse.statusCode===t:e.error&&e.error.code===t},loadWaiterConfig:function p(e,t){if(!this.service.api.waiters[e]){if(t)return;throw new a.util.error(new Error,{code:"StateNotFoundError",message:"State "+e+" not found."})}this.config=this.service.api.waiters[e];var r=this.config;!function(){r.successType=r.successType||r.acceptorType,r.successPath=r.successPath||r.acceptorPath,r.successValue=r.successValue||r.acceptorValue,r.failureType=r.failureType||r.acceptorType,r.failurePath=r.failurePath||r.acceptorPath,r.failureValue=r.failureValue||r.acceptorValue}()}})},{"./core":4}],38:[function(e,t,r){var a=e("./core"),o=a.util.inherit;a.Response=o({constructor:function n(e){this.request=e,this.data=null,this.error=null,this.retryCount=0,this.redirectCount=0,this.httpResponse=new a.HttpResponse,e&&(this.maxRetries=e.service.numRetries(),this.maxRedirects=e.service.config.maxRedirects)},nextPage:function i(e){var t,r=this.request.service,o=this.request.operation;try{t=r.paginationConfig(o,!0)}catch(n){this.error=n}if(!this.hasNextPage()){if(e)e(this.error,null);else if(this.error)throw this.error;return null}var i=a.util.copy(this.request.params);if(this.nextPageTokens){var s=t.inputToken;"string"==typeof s&&(s=[s]);for(var u=0;u<s.length;u++)i[s[u]]=this.nextPageTokens[u];return r.makeRequest(this.request.operation,i,e)}return e?e(null,null):null},hasNextPage:function s(){return this.cacheNextPageTokens(),this.nextPageTokens?!0:void 0===this.nextPageTokens?void 0:!1},cacheNextPageTokens:function u(){if(this.hasOwnProperty("nextPageTokens"))return this.nextPageTokens;this.nextPageTokens=void 0;var e=this.request.service.paginationConfig(this.request.operation);if(!e)return this.nextPageTokens;if(this.nextPageTokens=null,e.moreResults&&!a.util.jamespath.find(e.moreResults,this.data))return this.nextPageTokens;var t=e.outputToken;return"string"==typeof t&&(t=[t]),a.util.arrayEach.call(this,t,function(e){var t=a.util.jamespath.find(e,this.data);t&&(this.nextPageTokens=this.nextPageTokens||[],this.nextPageTokens.push(t))}),this.nextPageTokens}})},{"./core":4}],39:[function(e,t,r){(function(r){var a=e("../core"),o=a.util.string.byteLength;a.S3.ManagedUpload=a.util.inherit({constructor:function n(e){var t=this;a.SequentialExecutor.call(t),t.body=null,t.sliceFn=null,t.callback=null,t.parts={},t.completeInfo=[],t.fillQueue=function(){t.callback(new Error("Unsupported body payload "+typeof t.body))},t.configure(e)},configure:function i(e){if(e=e||{},this.partSize=this.minPartSize,e.queueSize&&(this.queueSize=e.queueSize),e.partSize&&(this.partSize=e.partSize),e.leavePartsOnError&&(this.leavePartsOnError=!0),this.partSize<this.minPartSize)throw new Error("partSize must be greater than "+this.minPartSize);this.service=e.service,this.bindServiceObject(e.params),this.validateBody(),this.adjustTotalBytes()},leavePartsOnError:!1,queueSize:4,partSize:null,minPartSize:5242880,maxTotalParts:1e4,send:function(e){var t=this;t.failed=!1,t.callback=e||function(e){if(e)throw e};var r=!0;if(t.sliceFn)t.fillQueue=t.fillBuffer;else if(a.util.isNode()){var o=a.util.nodeRequire("stream").Stream;t.body instanceof o&&(r=!1,t.fillQueue=t.fillStream,t.partBuffers=[],t.body.on("readable",function(){t.fillQueue()}).on("end",function(){t.isDoneChunking=!0,t.numParts=t.totalPartNumbers,t.fillQueue.call(t)}))}r&&t.fillQueue.call(t)},abort:function(){this.cleanup(a.util.error(new Error("Request aborted by user"),{code:"RequestAbortedError",retryable:!1}))},validateBody:function s(){var e=this;if(e.body=e.service.config.params.Body,!e.body)throw new Error("params.Body is required");"string"==typeof e.body&&(e.body=new a.util.Buffer(e.body)),e.sliceFn=a.util.arraySliceFn(e.body)},bindServiceObject:function u(e){e=e||{};var t=this;if(t.service){var r=a.util.copy(t.service.config);t.service=new t.service.constructor.__super__(r),t.service.config.params=a.util.merge(t.service.config.params||{},e)}else t.service=new a.S3({params:e})},adjustTotalBytes:function c(){var e=this;try{e.totalBytes=o(e.body)}catch(t){}if(e.totalBytes){var r=Math.ceil(e.totalBytes/e.maxTotalParts);r>e.partSize&&(e.partSize=r)}else e.totalBytes=void 0},isDoneChunking:!1,partPos:0,totalChunkedBytes:0,totalUploadedBytes:0,totalBytes:void 0,numParts:0,totalPartNumbers:0,activeParts:0,doneParts:0,parts:null,completeInfo:null,failed:!1,multipartReq:null,partBuffers:null,partBufferLength:0,fillBuffer:function p(){var e=this,t=o(e.body);if(0===t)return e.isDoneChunking=!0,e.numParts=1,void e.nextChunk(e.body);for(;e.activeParts<e.queueSize&&e.partPos<t;){var r=Math.min(e.partPos+e.partSize,t),a=e.sliceFn.call(e.body,e.partPos,r);e.partPos+=e.partSize,(o(a)<e.partSize||e.partPos===t)&&(e.isDoneChunking=!0,e.numParts=e.totalPartNumbers+1),e.nextChunk(a)}},fillStream:function m(){var e=this;if(!(e.activeParts>=e.queueSize)){var t=e.body.read(e.partSize-e.partBufferLength)||e.body.read();if(t&&(e.partBuffers.push(t),e.partBufferLength+=t.length,e.totalChunkedBytes+=t.length),e.partBufferLength>=e.partSize){var a=1===e.partBuffers.length?e.partBuffers[0]:r.concat(e.partBuffers);if(e.partBuffers=[],e.partBufferLength=0,a.length>e.partSize){var o=a.slice(e.partSize);e.partBuffers.push(o),e.partBufferLength+=o.length,a=a.slice(0,e.partSize)}e.nextChunk(a)}e.isDoneChunking&&!e.isDoneSending&&(a=1===e.partBuffers.length?e.partBuffers[0]:r.concat(e.partBuffers),e.partBuffers=[],e.partBufferLength=0,e.totalBytes=e.totalChunkedBytes,e.isDoneSending=!0,(0===e.numParts||a.length>0)&&(e.numParts++,e.nextChunk(a))),e.body.read(0)}},nextChunk:function l(e){var t=this;if(t.failed)return null;var r=++t.totalPartNumbers;if(t.isDoneChunking&&1===r){var o=t.service.putObject({Body:e});return o._managedUpload=t,o.on("httpUploadProgress",t.progress).send(t.finishSinglePart),null}if(t.service.config.params.ContentMD5){var n=a.util.error(new Error("The Content-MD5 you specified is invalid for multi-part uploads."),{code:"InvalidDigest",retryable:!1});return t.cleanup(n),null}return t.completeInfo[r]&&null!==t.completeInfo[r].ETag?null:(t.activeParts++,void(t.service.config.params.UploadId?t.uploadPart(e,r):t.multipartReq?t.queueChunks(e,r):(t.multipartReq=t.service.createMultipartUpload(),t.multipartReq.on("success",function(e){t.service.config.params.UploadId=e.data.UploadId,t.multipartReq=null}),t.queueChunks(e,r),t.multipartReq.on("error",function(e){t.cleanup(e)}),t.multipartReq.send())))},uploadPart:function d(e,t){var r=this,o={Body:e,ContentLength:a.util.string.byteLength(e),PartNumber:t},n={ETag:null,PartNumber:t};r.completeInfo[t]=n;var i=r.service.uploadPart(o);r.parts[t]=i,i._lastUploadedBytes=0,i._managedUpload=r,i.on("httpUploadProgress",r.progress),i.send(function(e,t){if(delete r.parts[o.PartNumber],r.activeParts--,!(e||t&&t.ETag)){var i="No access to ETag property on response.";a.util.isBrowser()&&(i+=" Check CORS configuration to expose ETag header."),e=a.util.error(new Error(i),{code:"ETagMissing",retryable:!1})}return e?r.cleanup(e):(n.ETag=t.ETag,r.doneParts++,void(r.isDoneChunking&&r.doneParts===r.numParts?r.finishMultiPart():r.fillQueue.call(r)))})},queueChunks:function y(e,t){var r=this;r.multipartReq.on("success",function(){r.uploadPart(e,t)})},cleanup:function h(e){var t=this;t.failed||("function"==typeof t.body.removeAllListeners&&"function"==typeof t.body.resume&&(t.body.removeAllListeners("readable"),t.body.removeAllListeners("end"),t.body.resume()),t.service.config.params.UploadId&&!t.leavePartsOnError&&t.service.abortMultipartUpload().send(),a.util.each(t.parts,function(e,t){t.removeAllListeners("complete"),t.abort()}),t.activeParts=0,t.partPos=0,t.numParts=0,t.totalPartNumbers=0,t.parts={},t.failed=!0,t.callback(e))},finishMultiPart:function b(){var e=this,t={MultipartUpload:{Parts:e.completeInfo.slice(1)}};e.service.completeMultipartUpload(t,function(t,r){return t?e.cleanup(t):void e.callback(t,r)})},finishSinglePart:function f(e,t){var r=this.request._managedUpload,a=this.request.httpRequest,o=a.endpoint;return e?r.callback(e):(t.Location=[o.protocol,"//",o.host,a.path].join(""),t.key=this.request.params.Key,void r.callback(e,t))},progress:function g(e){var t=this._managedUpload;"putObject"===this.operation?(e.part=1,e.key=this.params.Key):(t.totalUploadedBytes+=e.loaded-this._lastUploadedBytes,this._lastUploadedBytes=e.loaded,e={loaded:t.totalUploadedBytes,total:t.totalBytes,part:this.params.PartNumber,key:this.params.Key}),t.emit("httpUploadProgress",[e])}}),a.util.mixin(a.S3.ManagedUpload,a.SequentialExecutor),t.exports=a.S3.ManagedUpload}).call(this,e("buffer").Buffer)},{"../core":4,buffer:62}],40:[function(e,t,r){var a=e("./core");a.SequentialExecutor=a.util.inherit({constructor:function o(){this._events={}},listeners:function n(e){return this._events[e]?this._events[e].slice(0):[]},on:function i(e,t){return this._events[e]?this._events[e].push(t):this._events[e]=[t],this},onAsync:function s(e,t){return t._isAsync=!0,this.on(e,t)},removeListener:function u(e,t){var r=this._events[e];if(r){for(var a=r.length,o=-1,n=0;a>n;++n)r[n]===t&&(o=n);o>-1&&r.splice(o,1)}return this},removeAllListeners:function c(e){return e?delete this._events[e]:this._events={},this},emit:function p(e,t,r){r||(r=function(){});var a=this.listeners(e),o=a.length;return this.callListeners(a,t,r),o>0},callListeners:function m(e,t,r,o){function n(o){return o&&(s=a.util.error(s||new Error,o),i._haltHandlersOnError)?r.call(i,s):void i.callListeners(e,t,r,s)}for(var i=this,s=o||null;e.length>0;){var u=e.shift();if(u._isAsync)return void u.apply(i,t.concat([n]));try{u.apply(i,t)}catch(c){s=a.util.error(s||new Error,c)}if(s&&i._haltHandlersOnError)return void r.call(i,s)}r.call(i,s)},addListeners:function l(e){var t=this;return e._events&&(e=e._events),a.util.each(e,function(e,r){"function"==typeof r&&(r=[r]),a.util.arrayEach(r,function(r){t.on(e,r)})}),t},addNamedListener:function d(e,t,r){return this[e]=r,this.addListener(t,r),this},addNamedAsyncListener:function y(e,t,r){return r._isAsync=!0,this.addNamedListener(e,t,r)},addNamedListeners:function h(e){var t=this;return e(function(){t.addNamedListener.apply(t,arguments)},function(){t.addNamedAsyncListener.apply(t,arguments)}),this}}),a.SequentialExecutor.prototype.addListener=a.SequentialExecutor.prototype.on,t.exports=a.SequentialExecutor},{"./core":4}],41:[function(e,t,r){var a=e("./core"),o=e("./model/api"),n=e("./region_config"),i=a.util.inherit;a.Service=i({constructor:function s(e){if(!this.loadServiceClass)throw a.util.error(new Error,"Service must be constructed with `new' operator");var t=this.loadServiceClass(e||{});return t?new t(e):void this.initialize(e)},initialize:function u(e){var t=a.config[this.serviceIdentifier];this.config=new a.Config(a.config),t&&this.config.update(t,!0),e&&this.config.update(e,!0),this.validateService(),this.config.endpoint||n(this),this.config.endpoint=this.endpointFromTemplate(this.config.endpoint),this.setEndpoint(this.config.endpoint)},validateService:function c(){},loadServiceClass:function p(e){var t=e;if(a.util.isEmpty(this.api)){if(t.apiConfig)return a.Service.defineServiceApi(this.constructor,t.apiConfig);if(this.constructor.services){t=new a.Config(a.config),t.update(e,!0);var r=t.apiVersions[this.constructor.serviceIdentifier];return r=r||t.apiVersion,this.getLatestServiceClass(r)}return null}return null},getLatestServiceClass:function m(e){return e=this.getLatestServiceVersion(e),null===this.constructor.services[e]&&a.Service.defineServiceApi(this.constructor,e),this.constructor.services[e]},getLatestServiceVersion:function l(e){if(!this.constructor.services||0===this.constructor.services.length)throw new Error("No services defined on "+this.constructor.serviceIdentifier);if(e?a.util.isType(e,Date)&&(e=a.util.date.iso8601(e).split("T")[0]):e="latest",Object.hasOwnProperty(this.constructor.services,e))return e;for(var t=Object.keys(this.constructor.services).sort(),r=null,o=t.length-1;o>=0;o--)if("*"!==t[o][t[o].length-1]&&(r=t[o]),t[o].substr(0,10)<=e)return r;throw new Error("Could not find "+this.constructor.serviceIdentifier+" API to satisfy version constraint `"+e+"'")},api:{},defaultRetryCount:3,makeRequest:function d(e,t,r){if("function"==typeof t&&(r=t,t=null),t=t||{},this.config.params){var o=this.api.operations[e];o&&(t=a.util.copy(t),a.util.each(this.config.params,function(e,r){o.input.members[e]&&(void 0===t[e]||null===t[e])&&(t[e]=r)}))}var n=new a.Request(this,e,t);return this.addAllRequestListeners(n),r&&n.send(r),n},makeUnauthenticatedRequest:function y(e,t,r){"function"==typeof t&&(r=t,t={});var a=this.makeRequest(e,t).toUnauthenticated();return r?a.send(r):a},waitFor:function h(e,t,r){var o=new a.ResourceWaiter(this,e);return o.wait(t,r)},addAllRequestListeners:function b(e){for(var t=[a.events,a.EventListeners.Core,this.serviceInterface(),a.EventListeners.CorePost],r=0;r<t.length;r++)t[r]&&e.addListeners(t[r]);this.config.paramValidation||e.removeListener("validate",a.EventListeners.Core.VALIDATE_PARAMETERS),this.config.logger&&e.addListeners(a.EventListeners.Logger),this.setupRequestListeners(e)},setupRequestListeners:function f(){},getSignerClass:function g(){var e;return e=this.config.signatureVersion?this.config.signatureVersion:this.api.signatureVersion,a.Signers.RequestSigner.getVersion(e)},serviceInterface:function S(){switch(this.api.protocol){case"ec2":return a.EventListeners.Query;case"query":return a.EventListeners.Query;case"json":return a.EventListeners.Json;case"rest-json":return a.EventListeners.RestJson;case"rest-xml":return a.EventListeners.RestXml}if(this.api.protocol)throw new Error("Invalid service `protocol' "+this.api.protocol+" in API config")},successfulResponse:function N(e){return e.httpResponse.statusCode<300},numRetries:function I(){return void 0!==this.config.maxRetries?this.config.maxRetries:this.defaultRetryCount},retryDelays:function v(e){var t=this.config.retryDelayOptions||{},r=t.customBackoff||null;if("function"==typeof r)return r(e);var a=t.base||30,o=Math.random()*Math.pow(2,e)*a;return o},retryableError:function k(e){return this.networkingError(e)?!0:this.expiredCredentialsError(e)?!0:this.throttledError(e)?!0:e.statusCode>=500?!0:!1},networkingError:function C(e){return"NetworkingError"===e.code},expiredCredentialsError:function T(e){return"ExpiredTokenException"===e.code},clockSkewError:function D(e){switch(e.code){case"RequestTimeTooSkewed":case"RequestExpired":case"InvalidSignatureException":case"SignatureDoesNotMatch":case"AuthFailure":case"RequestInTheFuture":return!0;default:return!1}},throttledError:function R(e){switch(e.code){case"ProvisionedThroughputExceededException":case"Throttling":case"ThrottlingException":case"RequestLimitExceeded":case"RequestThrottled":return!0;default:return!1}},endpointFromTemplate:function A(e){if("string"!=typeof e)return e;var t=e;return t=t.replace(/\{service\}/g,this.api.endpointPrefix),t=t.replace(/\{region\}/g,this.config.region),t=t.replace(/\{scheme\}/g,this.config.sslEnabled?"https":"http")},setEndpoint:function q(e){this.endpoint=new a.Endpoint(e,this.config)},paginationConfig:function x(e,t){var r=this.api.operations[e].paginator;if(!r){if(t){var o=new Error;throw a.util.error(o,"No pagination configuration for "+e)}return null}return r}}),a.util.update(a.Service,{defineMethods:function P(e){a.util.each(e.prototype.api.operations,function t(r){e.prototype[r]||(e.prototype[r]=function(e,t){return this.makeRequest(r,e,t)})})},defineService:function E(e,t,r){a.Service._serviceMap[e]=!0,Array.isArray(t)||(r=t,t=[]);var o=i(a.Service,r||{});if("string"==typeof e){a.Service.addVersions(o,t);var n=o.serviceIdentifier||e;o.serviceIdentifier=n}else o.prototype.api=e,a.Service.defineMethods(o);return o},addVersions:function w(e,t){Array.isArray(t)||(t=[t]),e.services=e.services||{};for(var r=0;r<t.length;r++)void 0===e.services[t[r]]&&(e.services[t[r]]=null);e.apiVersions=Object.keys(e.services).sort()},defineServiceApi:function L(e,t,r){function n(e){e.isApi?s.prototype.api=e:s.prototype.api=new o(e)}var s=i(e,{serviceIdentifier:e.serviceIdentifier});if("string"==typeof t){if(r)n(r);else try{n(a.apiLoader(e.serviceIdentifier,t))}catch(u){throw a.util.error(u,{message:"Could not find API configuration "+e.serviceIdentifier+"-"+t})}e.services.hasOwnProperty(t)||(e.apiVersions=e.apiVersions.concat(t).sort()),e.services[t]=s}else n(t);return a.Service.defineMethods(s),s},hasService:function(e){return a.Service._serviceMap.hasOwnProperty(e)},_serviceMap:{}})},{"./core":4,"./model/api":21,"./region_config":34}],42:[function(e,t,r){var a=e("../core");e("../cloudfront/signer"),a.util.update(a.CloudFront.prototype,{setupRequestListeners:function o(e){e.addListener("extractData",a.util.hoistPayloadMember)}})},{"../cloudfront/signer":2,"../core":4}],43:[function(e,t,r){var a=e("../core");a.util.update(a.CognitoIdentity.prototype,{getOpenIdToken:function o(e,t){return this.makeUnauthenticatedRequest("getOpenIdToken",e,t)},getId:function n(e,t){return this.makeUnauthenticatedRequest("getId",e,t)},getCredentialsForIdentity:function i(e,t){return this.makeUnauthenticatedRequest("getCredentialsForIdentity",e,t)}})},{"../core":4}],44:[function(e,t,r){var a=e("../core");e("../dynamodb/document_client"),a.util.update(a.DynamoDB.prototype,{setupRequestListeners:function o(e){e.service.config.dynamoDbCrc32&&(e.removeListener("extractData",a.EventListeners.Json.EXTRACT_DATA),e.addListener("extractData",this.checkCrc32),e.addListener("extractData",a.EventListeners.Json.EXTRACT_DATA))},checkCrc32:function n(e){if(!e.httpResponse.streaming&&!e.request.service.crc32IsValid(e))throw e.error=a.util.error(new Error,{code:"CRC32CheckFailed",message:"CRC32 integrity check failed",retryable:!0}),e.request.haltHandlersOnError(),e.error},crc32IsValid:function i(e){var t=e.httpResponse.headers["x-amz-crc32"];return t?parseInt(t,10)===a.util.crypto.crc32(e.httpResponse.body):!0},defaultRetryCount:10,retryDelays:function s(e){
|
||
var t=e>0?50*Math.pow(2,e-1):0;return t}})},{"../core":4,"../dynamodb/document_client":12}],45:[function(e,t,r){var a=e("../core");a.util.update(a.EC2.prototype,{setupRequestListeners:function o(e){e.removeListener("extractError",a.EventListeners.Query.EXTRACT_ERROR),e.addListener("extractError",this.extractError),"copySnapshot"===e.operation&&e.onAsync("validate",this.buildCopySnapshotPresignedUrl)},buildCopySnapshotPresignedUrl:function n(e,t){if(e.params.PresignedUrl||e._subRequest)return t();e.params=a.util.copy(e.params),e.params.DestinationRegion=e.service.config.region;var r=a.util.copy(e.service.config);delete r.endpoint,r.region=e.params.SourceRegion;var o=new e.service.constructor(r),n=o[e.operation](e.params);n._subRequest=!0,n.presign(function(r,a){r?t(r):(e.params.PresignedUrl=a,t())})},extractError:function i(e){var t=e.httpResponse,r=(new a.XML.Parser).parse(t.body.toString()||"");r.Errors?e.error=a.util.error(new Error,{code:r.Errors.Error.Code,message:r.Errors.Error.Message}):e.error=a.util.error(new Error,{code:t.statusCode,message:null}),e.error.requestId=r.RequestID||null}})},{"../core":4}],46:[function(e,t,r){var a=e("../core");a.util.update(a.MachineLearning.prototype,{setupRequestListeners:function o(e){"predict"===e.operation&&e.addListener("build",this.buildEndpoint)},buildEndpoint:function n(e){var t=e.params.PredictEndpoint;t&&(e.httpRequest.endpoint=new a.Endpoint(t))}})},{"../core":4}],47:[function(e,t,r){var a=e("../core");a.util.update(a.Route53.prototype,{setupRequestListeners:function o(e){e.on("build",this.sanitizeUrl)},sanitizeUrl:function n(e){var t=e.httpRequest.path;e.httpRequest.path=t.replace(/\/%2F\w+%2F/,"/")}})},{"../core":4}],48:[function(e,t,r){var a=e("../core");e("../s3/managed_upload"),a.util.update(a.S3.prototype,{validateService:function o(){if(this.config.region||(this.config.region="us-east-1"),!this.config.endpoint&&this.config.s3BucketEndpoint){var e="An endpoint must be provided when configuring `s3BucketEndpoint` to true.";throw a.util.error(new Error,{name:"InvalidEndpoint",message:e})}},setupRequestListeners:function n(e){e.addListener("validate",this.validateScheme),e.addListener("validate",this.validateBucketEndpoint),e.addListener("build",this.addContentType),e.addListener("build",this.populateURI),e.addListener("build",this.computeContentMd5),e.addListener("build",this.computeSseCustomerKeyMd5),e.addListener("afterBuild",this.addExpect100Continue),e.removeListener("validate",a.EventListeners.Core.VALIDATE_REGION),e.addListener("extractError",this.extractError),e.addListener("extractData",this.extractData),e.addListener("extractData",a.util.hoistPayloadMember),e.addListener("beforePresign",this.prepareSignedUrl)},validateScheme:function(e){var t=e.params,r=e.httpRequest.endpoint.protocol,o=t.SSECustomerKey||t.CopySourceSSECustomerKey;if(o&&"https:"!==r){var n="Cannot send SSE keys over HTTP. Set 'sslEnabled'to 'true' in your configuration";throw a.util.error(new Error,{code:"ConfigError",message:n})}},validateBucketEndpoint:function(e){if(!e.params.Bucket&&e.service.config.s3BucketEndpoint){var t="Cannot send requests to root API with `s3BucketEndpoint` set.";throw a.util.error(new Error,{code:"ConfigError",message:t})}},populateURI:function i(e){var t=e.httpRequest,r=e.params.Bucket;if(r&&!e.service.pathStyleBucketName(r)){if(!e.service.config.s3BucketEndpoint){t.endpoint.hostname=r+"."+t.endpoint.hostname;var a=t.endpoint.port;80!==a&&443!==a?t.endpoint.host=t.endpoint.hostname+":"+t.endpoint.port:t.endpoint.host=t.endpoint.hostname}t.virtualHostedBucket=r,t.path=t.path.replace(new RegExp("/"+r),""),"/"!==t.path[0]&&(t.path="/"+t.path)}},addExpect100Continue:function s(e){var t=e.httpRequest.headers["Content-Length"];a.util.isNode()&&t>=1048576&&(e.httpRequest.headers.Expect="100-continue")},addContentType:function u(e){var t=e.httpRequest;if("GET"===t.method||"HEAD"===t.method)return void delete t.headers["Content-Type"];t.headers["Content-Type"]||(t.headers["Content-Type"]="application/octet-stream");var r=t.headers["Content-Type"];if(a.util.isBrowser())if("string"!=typeof t.body||r.match(/;\s*charset=/)){var o=function(e,t,r){return t+r.toUpperCase()};t.headers["Content-Type"]=r.replace(/(;\s*charset=)(.+)$/,o)}else{var n="; charset=UTF-8";t.headers["Content-Type"]+=n}},computableChecksumOperations:{putBucketCors:!0,putBucketLifecycle:!0,putBucketLifecycleConfiguration:!0,putBucketTagging:!0,deleteObjects:!0},willComputeChecksums:function c(e){if(this.computableChecksumOperations[e.operation])return!0;if(!this.config.computeChecksums)return!1;if(!a.util.Buffer.isBuffer(e.httpRequest.body)&&"string"!=typeof e.httpRequest.body)return!1;var t=e.service.api.operations[e.operation].input.members;return e.service.getSignerClass(e)===a.Signers.V4&&t.ContentMD5&&!t.ContentMD5.required?!1:t.ContentMD5&&!e.params.ContentMD5?!0:void 0},computeContentMd5:function p(e){if(e.service.willComputeChecksums(e)){var t=a.util.crypto.md5(e.httpRequest.body,"base64");e.httpRequest.headers["Content-MD5"]=t}},computeSseCustomerKeyMd5:function m(e){var t={SSECustomerKey:"x-amz-server-side-encryption-customer-key-MD5",CopySourceSSECustomerKey:"x-amz-copy-source-server-side-encryption-customer-key-MD5"};a.util.each(t,function(t,r){if(e.params[t]){var o=a.util.crypto.md5(e.params[t],"base64");e.httpRequest.headers[r]=o}})},pathStyleBucketName:function l(e){return this.config.s3ForcePathStyle?!0:this.config.s3BucketEndpoint?!1:this.dnsCompatibleBucketName(e)?this.config.sslEnabled&&e.match(/\./)?!0:!1:!0},dnsCompatibleBucketName:function d(e){var t=e,r=new RegExp(/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/),a=new RegExp(/(\d+\.){3}\d+/),o=new RegExp(/\.\./);return!t.match(r)||t.match(a)||t.match(o)?!1:!0},successfulResponse:function y(e){var t=e.request,r=e.httpResponse;return"completeMultipartUpload"===t.operation&&r.body.toString().match("<Error>")?!1:r.statusCode<300},retryableError:function h(e,t){if("completeMultipartUpload"===t.operation&&200===e.statusCode)return!0;if(e&&"RequestTimeout"===e.code)return!0;if(e&&"AuthorizationHeaderMalformed"===e.code&&e.region&&e.region!=t.httpRequest.region)return t.httpRequest.region=e.region,!0;var r=a.Service.prototype.retryableError;return r.call(this,e,t)},extractData:function b(e){var t=e.request;if("getBucketLocation"===t.operation){var r=e.httpResponse.body.toString().match(/>(.+)<\/Location/);delete e.data._,r?e.data.LocationConstraint=r[1]:e.data.LocationConstraint=""}},extractError:function f(e){var t={304:"NotModified",403:"Forbidden",400:"BadRequest",404:"NotFound"},r=e.httpResponse.statusCode,o=e.httpResponse.body||"",n=e.requestId,i=e.httpResponse.headers?e.httpResponse.headers["x-amz-id-2"]:null;if(t[r]&&0===o.length)e.error=a.util.error(new Error,{code:t[e.httpResponse.statusCode],message:null});else{var s=(new a.XML.Parser).parse(o.toString());e.error=a.util.error(new Error,{code:s.Code||r,message:s.Message||null,region:s.Region||null})}e.error.requestId=n||null,e.error.extendedRequestId=i||null},getSignedUrl:function g(e,t,r){t=a.util.copy(t||{});var o=t.Expires||900;delete t.Expires;var n=this.makeRequest(e,t);return n.presign(o,r)},prepareSignedUrl:function S(e){e.addListener("validate",e.service.noPresignedContentLength),e.removeListener("build",e.service.addContentType),e.params.Body?e.addListener("afterBuild",a.EventListeners.Core.COMPUTE_SHA256):e.removeListener("build",e.service.computeContentMd5)},noPresignedContentLength:function N(e){if(void 0!==e.params.ContentLength)throw a.util.error(new Error,{code:"UnexpectedParameter",message:"ContentLength is not supported in pre-signed URLs."})},createBucket:function I(e,t){"function"!=typeof e&&e||(t=t||e,e={});var r=this.endpoint.hostname;return r===this.api.globalEndpoint||e.CreateBucketConfiguration||(e.CreateBucketConfiguration={LocationConstraint:this.config.region}),this.makeRequest("createBucket",e,t)},upload:function v(e,t,r){"function"==typeof t&&void 0===r&&(r=t,t=null),t=t||{},t=a.util.merge(t||{},{service:this,params:e});var o=new a.S3.ManagedUpload(t);return"function"==typeof r&&o.send(r),o}})},{"../core":4,"../s3/managed_upload":39}],49:[function(e,t,r){var a=e("../core");a.util.update(a.SQS.prototype,{setupRequestListeners:function o(e){e.addListener("build",this.buildEndpoint),e.service.config.computeChecksums&&("sendMessage"===e.operation?e.addListener("extractData",this.verifySendMessageChecksum):"sendMessageBatch"===e.operation?e.addListener("extractData",this.verifySendMessageBatchChecksum):"receiveMessage"===e.operation&&e.addListener("extractData",this.verifyReceiveMessageChecksum))},verifySendMessageChecksum:function n(e){if(e.data){var t=e.data.MD5OfMessageBody,r=this.params.MessageBody,a=this.service.calculateChecksum(r);if(a!==t){var o='Got "'+e.data.MD5OfMessageBody+'", expecting "'+a+'".';this.service.throwInvalidChecksumError(e,[e.data.MessageId],o)}}},verifySendMessageBatchChecksum:function i(e){if(e.data){var t=this.service,r={},o=[],n=[];a.util.arrayEach(e.data.Successful,function(e){r[e.Id]=e}),a.util.arrayEach(this.params.Entries,function(e){if(r[e.Id]){var a=r[e.Id].MD5OfMessageBody,i=e.MessageBody;t.isChecksumValid(a,i)||(o.push(e.Id),n.push(r[e.Id].MessageId))}}),o.length>0&&t.throwInvalidChecksumError(e,n,"Invalid messages: "+o.join(", "))}},verifyReceiveMessageChecksum:function s(e){if(e.data){var t=this.service,r=[];a.util.arrayEach(e.data.Messages,function(e){var a=e.MD5OfBody,o=e.Body;t.isChecksumValid(a,o)||r.push(e.MessageId)}),r.length>0&&t.throwInvalidChecksumError(e,r,"Invalid messages: "+r.join(", "))}},throwInvalidChecksumError:function u(e,t,r){e.error=a.util.error(new Error,{retryable:!0,code:"InvalidChecksum",messageIds:t,message:e.request.operation+" returned an invalid MD5 response. "+r})},isChecksumValid:function c(e,t){return this.calculateChecksum(t)===e},calculateChecksum:function p(e){return a.util.crypto.md5(e,"hex")},buildEndpoint:function m(e){var t=e.httpRequest.params.QueueUrl;if(t){e.httpRequest.endpoint=new a.Endpoint(t);var r=e.httpRequest.endpoint.host.match(/^sqs\.(.+?)\./);r&&(e.httpRequest.region=r[1])}}})},{"../core":4}],50:[function(e,t,r){var a=e("../core");a.util.update(a.STS.prototype,{credentialsFrom:function o(e,t){return e?(t||(t=new a.TemporaryCredentials),t.expired=!1,t.accessKeyId=e.Credentials.AccessKeyId,t.secretAccessKey=e.Credentials.SecretAccessKey,t.sessionToken=e.Credentials.SessionToken,t.expireTime=e.Credentials.Expiration,t):null},assumeRoleWithWebIdentity:function n(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithWebIdentity",e,t)},assumeRoleWithSAML:function i(e,t){return this.makeUnauthenticatedRequest("assumeRoleWithSAML",e,t)}})},{"../core":4}],51:[function(e,t,r){function a(e){var t=e.httpRequest.headers[s];if(delete e.httpRequest.headers["User-Agent"],delete e.httpRequest.headers["X-Amz-User-Agent"],e.service.getSignerClass()===n.Signers.V4){if(t>604800){var r="Presigning does not support expiry time greater than a week with SigV4 signing.";throw n.util.error(new Error,{code:"InvalidExpiryTime",message:r,retryable:!1})}e.httpRequest.headers[s]=t}else{if(e.service.getSignerClass()!==n.Signers.S3)throw n.util.error(new Error,{message:"Presigning only supports S3 or SigV4 signing.",code:"UnsupportedSigner",retryable:!1});e.httpRequest.headers[s]=parseInt(n.util.date.unixTimestamp()+t,10).toString()}}function o(e){var t=e.httpRequest.endpoint,r=n.util.urlParse(e.httpRequest.path),a={};r.search&&(a=n.util.queryStringParse(r.search.substr(1))),n.util.each(e.httpRequest.headers,function(e,t){e===s&&(e="Expires"),0===e.indexOf("x-amz-meta-")&&(e=e.toLowerCase()),a[e]=t}),delete e.httpRequest.headers[s];var o=a.Authorization.split(" ");if("AWS"===o[0])o=o[1].split(":"),a.AWSAccessKeyId=o[0],a.Signature=o[1];else if("AWS4-HMAC-SHA256"===o[0]){o.shift();var i=o.join(" "),u=i.match(/Signature=(.*?)(?:,|\s|\r?\n|$)/)[1];a["X-Amz-Signature"]=u,delete a.Expires}delete a.Authorization,delete a.Host,t.pathname=r.pathname,t.search=n.util.queryParamsToString(a)}var n=e("../core"),i=n.util.inherit,s="presigned-expires";n.Signers.Presign=i({sign:function u(e,t,r){if(e.httpRequest.headers[s]=t||3600,e.on("build",a),e.on("sign",o),e.removeListener("afterBuild",n.EventListeners.Core.SET_CONTENT_LENGTH),e.removeListener("afterBuild",n.EventListeners.Core.COMPUTE_SHA256),e.emit("beforePresign",[e]),!r){if(e.build(),e.response.error)throw e.response.error;return n.util.urlFormat(e.httpRequest.endpoint)}e.build(function(){this.response.error?r(this.response.error):r(null,n.util.urlFormat(e.httpRequest.endpoint))})}}),t.exports=n.Signers.Presign},{"../core":4}],52:[function(e,t,r){var a=e("../core"),o=a.util.inherit;a.Signers.RequestSigner=o({constructor:function n(e){this.request=e}}),a.Signers.RequestSigner.getVersion=function i(e){switch(e){case"v2":return a.Signers.V2;case"v3":return a.Signers.V3;case"v4":return a.Signers.V4;case"s3":return a.Signers.S3;case"v3https":return a.Signers.V3Https}throw new Error("Unknown signing version "+e)},e("./v2"),e("./v3"),e("./v3https"),e("./v4"),e("./s3"),e("./presign")},{"../core":4,"./presign":51,"./s3":53,"./v2":54,"./v3":55,"./v3https":56,"./v4":57}],53:[function(e,t,r){var a=e("../core"),o=a.util.inherit;a.Signers.S3=o(a.Signers.RequestSigner,{subResources:{acl:1,cors:1,lifecycle:1,"delete":1,location:1,logging:1,notification:1,partNumber:1,policy:1,requestPayment:1,restore:1,tagging:1,torrent:1,uploadId:1,uploads:1,versionId:1,versioning:1,versions:1,website:1},responseHeaders:{"response-content-type":1,"response-content-language":1,"response-expires":1,"response-cache-control":1,"response-content-disposition":1,"response-content-encoding":1},addAuthorization:function n(e,t){this.request.headers["presigned-expires"]||(this.request.headers["X-Amz-Date"]=a.util.date.rfc822(t)),e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken);var r=this.sign(e.secretAccessKey,this.stringToSign()),o="AWS "+e.accessKeyId+":"+r;this.request.headers.Authorization=o},stringToSign:function i(){var e=this.request,t=[];t.push(e.method),t.push(e.headers["Content-MD5"]||""),t.push(e.headers["Content-Type"]||""),t.push(e.headers["presigned-expires"]||"");var r=this.canonicalizedAmzHeaders();return r&&t.push(r),t.push(this.canonicalizedResource()),t.join("\n")},canonicalizedAmzHeaders:function s(){var e=[];a.util.each(this.request.headers,function(t){t.match(/^x-amz-/i)&&e.push(t)}),e.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1});var t=[];return a.util.arrayEach.call(this,e,function(e){t.push(e.toLowerCase()+":"+String(this.request.headers[e]))}),t.join("\n")},canonicalizedResource:function u(){var e=this.request,t=e.path.split("?"),r=t[0],o=t[1],n="";if(e.virtualHostedBucket&&(n+="/"+e.virtualHostedBucket),n+=r,o){var i=[];a.util.arrayEach.call(this,o.split("&"),function(e){var t=e.split("=")[0],r=e.split("=")[1];if(this.subResources[t]||this.responseHeaders[t]){var a={name:t};void 0!==r&&(this.subResources[t]?a.value=r:a.value=decodeURIComponent(r)),i.push(a)}}),i.sort(function(e,t){return e.name<t.name?-1:1}),i.length&&(o=[],a.util.arrayEach(i,function(e){o.push(void 0===e.value?e.name:e.name+"="+e.value)}),n+="?"+o.join("&"))}return n},sign:function c(e,t){return a.util.crypto.hmac(e,t,"base64","sha1")}}),t.exports=a.Signers.S3},{"../core":4}],54:[function(e,t,r){var a=e("../core"),o=a.util.inherit;a.Signers.V2=o(a.Signers.RequestSigner,{addAuthorization:function n(e,t){t||(t=a.util.date.getDate());var r=this.request;r.params.Timestamp=a.util.date.iso8601(t),r.params.SignatureVersion="2",r.params.SignatureMethod="HmacSHA256",r.params.AWSAccessKeyId=e.accessKeyId,e.sessionToken&&(r.params.SecurityToken=e.sessionToken),delete r.params.Signature,r.params.Signature=this.signature(e),r.body=a.util.queryParamsToString(r.params),r.headers["Content-Length"]=r.body.length},signature:function i(e){return a.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function s(){var e=[];return e.push(this.request.method),e.push(this.request.endpoint.host.toLowerCase()),e.push(this.request.pathname()),e.push(a.util.queryParamsToString(this.request.params)),e.join("\n")}}),t.exports=a.Signers.V2},{"../core":4}],55:[function(e,t,r){var a=e("../core"),o=a.util.inherit;a.Signers.V3=o(a.Signers.RequestSigner,{addAuthorization:function n(e,t){var r=a.util.date.rfc822(t);this.request.headers["X-Amz-Date"]=r,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(e,r)},authorization:function i(e){return"AWS3 AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(e)},signedHeaders:function s(){var e=[];return a.util.arrayEach(this.headersToSign(),function t(r){e.push(r.toLowerCase())}),e.sort().join(";")},canonicalHeaders:function u(){var e=this.request.headers,t=[];return a.util.arrayEach(this.headersToSign(),function r(a){t.push(a.toLowerCase().trim()+":"+String(e[a]).trim())}),t.sort().join("\n")+"\n"},headersToSign:function c(){var e=[];return a.util.each(this.request.headers,function t(r){("Host"===r||"Content-Encoding"===r||r.match(/^X-Amz/i))&&e.push(r)}),e},signature:function p(e){return a.util.crypto.hmac(e.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function m(){var e=[];return e.push(this.request.method),e.push("/"),e.push(""),e.push(this.canonicalHeaders()),e.push(this.request.body),a.util.crypto.sha256(e.join("\n"))}}),t.exports=a.Signers.V3},{"../core":4}],56:[function(e,t,r){var a=e("../core"),o=a.util.inherit;e("./v3"),a.Signers.V3Https=o(a.Signers.V3,{authorization:function n(e){return"AWS3-HTTPS AWSAccessKeyId="+e.accessKeyId+",Algorithm=HmacSHA256,Signature="+this.signature(e)},stringToSign:function i(){return this.request.headers["X-Amz-Date"]}}),t.exports=a.Signers.V3Https},{"../core":4,"./v3":55}],57:[function(e,t,r){var a=e("../core"),o=a.util.inherit,n={},i="presigned-expires";a.Signers.V4=o(a.Signers.RequestSigner,{constructor:function s(e,t,r){a.Signers.RequestSigner.call(this,e),this.serviceName=t,this.signatureCache=r},algorithm:"AWS4-HMAC-SHA256",addAuthorization:function u(e,t){var r=a.util.date.iso8601(t).replace(/[:\-]|\.\d{3}/g,"");this.isPresigned()?this.updateForPresigned(e,r):this.addHeaders(e,r),this.request.headers.Authorization=this.authorization(e,r)},addHeaders:function c(e,t){this.request.headers["X-Amz-Date"]=t,e.sessionToken&&(this.request.headers["x-amz-security-token"]=e.sessionToken)},updateForPresigned:function p(e,t){var r=this.credentialString(t),o={"X-Amz-Date":t,"X-Amz-Algorithm":this.algorithm,"X-Amz-Credential":e.accessKeyId+"/"+r,"X-Amz-Expires":this.request.headers[i],"X-Amz-SignedHeaders":this.signedHeaders()};e.sessionToken&&(o["X-Amz-Security-Token"]=e.sessionToken),this.request.headers["Content-Type"]&&(o["Content-Type"]=this.request.headers["Content-Type"]),this.request.headers["Content-MD5"]&&(o["Content-MD5"]=this.request.headers["Content-MD5"]),this.request.headers["Cache-Control"]&&(o["Cache-Control"]=this.request.headers["Cache-Control"]),a.util.each.call(this,this.request.headers,function(e,t){e!==i&&this.isSignableHeader(e)&&0===e.toLowerCase().indexOf("x-amz-")&&(o[e]=t)});var n=this.request.path.indexOf("?")>=0?"&":"?";this.request.path+=n+a.util.queryParamsToString(o)},authorization:function m(e,t){var r=[],a=this.credentialString(t);return r.push(this.algorithm+" Credential="+e.accessKeyId+"/"+a),r.push("SignedHeaders="+this.signedHeaders()),r.push("Signature="+this.signature(e,t)),r.join(", ")},signature:function l(e,t){var r=null;if(this.signatureCache)var r=n[this.serviceName];var o=t.substr(0,8);if(!r||r.akid!==e.accessKeyId||r.region!==this.request.region||r.date!==o){var i=e.secretAccessKey,s=a.util.crypto.hmac("AWS4"+i,o,"buffer"),u=a.util.crypto.hmac(s,this.request.region,"buffer"),c=a.util.crypto.hmac(u,this.serviceName,"buffer"),p=a.util.crypto.hmac(c,"aws4_request","buffer");if(!this.signatureCache)return a.util.crypto.hmac(p,this.stringToSign(t),"hex");n[this.serviceName]={region:this.request.region,date:o,key:p,akid:e.accessKeyId}}var m=n[this.serviceName].key;return a.util.crypto.hmac(m,this.stringToSign(t),"hex")},stringToSign:function d(e){var t=[];return t.push("AWS4-HMAC-SHA256"),t.push(e),t.push(this.credentialString(e)),t.push(this.hexEncodedHash(this.canonicalString())),t.join("\n")},canonicalString:function y(){var e=[],t=this.request.pathname();return"s3"!==this.serviceName&&(t=a.util.uriEscapePath(t)),e.push(this.request.method),e.push(t),e.push(this.request.search()),e.push(this.canonicalHeaders()+"\n"),e.push(this.signedHeaders()),e.push(this.hexEncodedBodyHash()),e.join("\n")},canonicalHeaders:function h(){var e=[];a.util.each.call(this,this.request.headers,function(t,r){e.push([t,r])}),e.sort(function(e,t){return e[0].toLowerCase()<t[0].toLowerCase()?-1:1});var t=[];return a.util.arrayEach.call(this,e,function(e){var r=e[0].toLowerCase();this.isSignableHeader(r)&&t.push(r+":"+this.canonicalHeaderValues(e[1].toString()))}),t.join("\n")},canonicalHeaderValues:function b(e){return e.replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},signedHeaders:function f(){var e=[];return a.util.each.call(this,this.request.headers,function(t){t=t.toLowerCase(),this.isSignableHeader(t)&&e.push(t)}),e.sort().join(";")},credentialString:function g(e){var t=[];return t.push(e.substr(0,8)),t.push(this.request.region),t.push(this.serviceName),t.push("aws4_request"),t.join("/")},hexEncodedHash:function S(e){return a.util.crypto.sha256(e,"hex")},hexEncodedBodyHash:function N(){return this.isPresigned()&&"s3"===this.serviceName?"UNSIGNED-PAYLOAD":this.request.headers["X-Amz-Content-Sha256"]?this.request.headers["X-Amz-Content-Sha256"]:this.hexEncodedHash(this.request.body||"")},unsignableHeaders:["authorization","content-type","content-length","user-agent",i],isSignableHeader:function I(e){return 0===e.toLowerCase().indexOf("x-amz-")?!0:this.unsignableHeaders.indexOf(e)<0},isPresigned:function v(){return this.request.headers[i]?!0:!1}}),t.exports=a.Signers.V4},{"../core":4}],58:[function(e,t,r){function a(e,t){this.currentState=t||null,this.states=e||{}}a.prototype.runTo=function o(e,t,r,a){"function"==typeof e&&(a=r,r=t,t=e,e=null);var o=this,n=o.states[o.currentState];n.fn.call(r||o,a,function(a){if(a){if(!n.fail)return t?t.call(r,a):null;o.currentState=n.fail}else{if(!n.accept)return t?t.call(r):null;o.currentState=n.accept}return o.currentState===e?t?t.call(r,a):null:void o.runTo(e,t,r,a)})},a.prototype.addState=function n(e,t,r,a){return"function"==typeof t?(a=t,t=null,r=null):"function"==typeof r&&(a=r,r=null),this.currentState||(this.currentState=e),this.states[e]={accept:t,fail:r,fn:a},this},t.exports=a},{}],59:[function(e,t,r){(function(r){var a=e("crypto"),o=e("buffer").Buffer,n,i={engine:function s(){return i.isBrowser()&&"undefined"!=typeof navigator?navigator.userAgent:r.platform+"/"+r.version},userAgent:function u(){var t=i.isBrowser()?"js":"nodejs",r="aws-sdk-"+t+"/"+e("./core").VERSION;return"nodejs"===t&&(r+=" "+i.engine()),r},isBrowser:function c(){return r&&r.browser},isNode:function p(){return!i.isBrowser()},nodeRequire:function m(t){return i.isNode()?e(t):void 0},multiRequire:function l(t,r){return e(i.isNode()?t:r)},uriEscape:function d(e){var t=encodeURIComponent(e);return t=t.replace(/[^A-Za-z0-9_.~\-%]+/g,escape),t=t.replace(/[*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})},uriEscapePath:function y(e){var t=[];return i.arrayEach(e.split("/"),function(e){t.push(i.uriEscape(e))}),t.join("/")},urlParse:function h(t){return e("url").parse(t)},urlFormat:function b(t){return e("url").format(t)},queryStringParse:function f(t){return e("querystring").parse(t)},queryParamsToString:function g(e){var t=[],r=i.uriEscape,a=Object.keys(e).sort();return i.arrayEach(a,function(a){var o=e[a],n=r(a),s=n+"=";if(Array.isArray(o)){var u=[];i.arrayEach(o,function(e){u.push(r(e))}),s=n+"="+u.sort().join("&"+n+"=")}else void 0!==o&&null!==o&&(s=n+"="+r(o));t.push(s)}),t.join("&")},readFileSync:function S(e){return"undefined"!=typeof window?null:i.nodeRequire("fs").readFileSync(e,"utf-8")},base64:{encode:function N(e){return new o(e).toString("base64")},decode:function I(e){return new o(e,"base64")}},Buffer:o,buffer:{toStream:function v(e){i.Buffer.isBuffer(e)||(e=new i.Buffer(e));var t=new(i.nodeRequire("stream").Readable),r=0;return t._read=function(a){if(r>=e.length)return t.push(null);var o=r+a;o>e.length&&(o=e.length),t.push(e.slice(r,o)),r=o},t},concat:function(e){var t=0,r=0,a=null,n;for(n=0;n<e.length;n++)t+=e[n].length;for(a=new o(t),n=0;n<e.length;n++)e[n].copy(a,r),r+=e[n].length;return a}},string:{byteLength:function k(e){if(null===e||void 0===e)return 0;if("string"==typeof e&&(e=new o(e)),"number"==typeof e.byteLength)return e.byteLength;if("number"==typeof e.length)return e.length;if("number"==typeof e.size)return e.size;if("string"==typeof e.path)return i.nodeRequire("fs").lstatSync(e.path).size;throw i.error(new Error("Cannot determine length of "+e),{object:e})},upperFirst:function C(e){return e[0].toUpperCase()+e.substr(1)},lowerFirst:function T(e){return e[0].toLowerCase()+e.substr(1)}},ini:{parse:function D(e){var t,r={};return i.arrayEach(e.split(/\r?\n/),function(e){e=e.split(/(^|\s);/)[0];var a=e.match(/^\s*\[([^\[\]]+)\]\s*$/);if(a)t=a[1];else if(t){var o=e.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);o&&(r[t]=r[t]||{},r[t][o[1]]=o[2])}}),r}},fn:{noop:function(){},makeAsync:function R(e,t){return t&&t<=e.length?e:function(){var t=Array.prototype.slice.call(arguments,0),r=t.pop(),a=e.apply(null,t);r(a)}}},jamespath:{query:function A(e,t){if(!t)return[];var r=[],a=e.split(/\s+\|\|\s+/);return i.arrayEach.call(this,a,function(e){var a=[t],o=e.split(".");return i.arrayEach.call(this,o,function(e){var t=e.match("^(.+?)(?:\\[(-?\\d+|\\*|)\\])?$"),r=[];return i.arrayEach.call(this,a,function(e){"*"===t[1]?i.arrayEach.call(this,e,function(e){r.push(e)}):e.hasOwnProperty(t[1])&&r.push(e[t[1]])}),a=r,void 0!==t[2]&&(r=[],i.arrayEach.call(this,a,function(e){if(Array.isArray(e))if("*"===t[2]||""===t[2])r=r.concat(e);else{var a=parseInt(t[2],10);0>a&&(a=e.length+a),r.push(e[a])}}),a=r),0===a.length?i.abort:void 0}),a.length>0?(r=a,i.abort):void 0}),r},find:function q(e,t){return i.jamespath.query(e,t)[0]}},date:{getDate:function x(){return n||(n=e("./core")),n.config.systemClockOffset?new Date((new Date).getTime()+n.config.systemClockOffset):new Date},iso8601:function P(e){return void 0===e&&(e=i.date.getDate()),e.toISOString().replace(/\.\d{3}Z$/,"Z")},rfc822:function E(e){return void 0===e&&(e=i.date.getDate()),e.toUTCString()},unixTimestamp:function w(e){return void 0===e&&(e=i.date.getDate()),e.getTime()/1e3},from:function L(e){return new Date("number"==typeof e?1e3*e:e)},format:function M(e,t){return t||(t="iso8601"),i.date[t](i.date.from(e))},parseTimestamp:function B(e){if("number"==typeof e)return new Date(1e3*e);if(e.match(/^\d+$/))return new Date(1e3*e);if(e.match(/^\d{4}/))return new Date(e);if(e.match(/^\w{3},/))return new Date(e);throw i.error(new Error("unhandled timestamp format: "+e),{code:"TimestampParserError"})}},crypto:{crc32Table:[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],crc32:function U(e){var t=i.crypto.crc32Table,r=-1;"string"==typeof e&&(e=new o(e));for(var a=0;a<e.length;a++){var n=e.readUInt8(a);r=r>>>8^t[255&(r^n)]}return(-1^r)>>>0},hmac:function _(e,t,r,n){return r||(r="binary"),"buffer"===r&&(r=void 0),n||(n="sha256"),"string"==typeof t&&(t=new o(t)),a.createHmac(n,e).update(t).digest(r)},md5:function V(e,t,r){return i.crypto.hash("md5",e,t,r)},sha256:function F(e,t,r){return i.crypto.hash("sha256",e,t,r)},hash:function(e,t,r,a){var n=i.crypto.createHash(e);r||(r="binary"),"buffer"===r&&(r=void 0),"string"==typeof t&&(t=new o(t));var s=i.arraySliceFn(t),u=o.isBuffer(t);if(i.isBrowser()&&"undefined"!=typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(u=!0),a&&"object"==typeof t&&"function"==typeof t.on&&!u)t.on("data",function(e){n.update(e)}),t.on("error",function(e){a(e)}),t.on("end",function(){a(null,n.digest(r))});else{if(!a||!s||u||"undefined"==typeof FileReader){i.isBrowser()&&"object"==typeof t&&!u&&(t=new o(new Uint8Array(t)));var c=n.update(t).digest(r);return a&&a(null,c),c}var p=0,m=524288,l=new FileReader;l.onerror=function(){a(new Error("Failed to read data."))},l.onload=function(){var e=new o(new Uint8Array(l.result));n.update(e),p+=e.length,l._continueReading()},l._continueReading=function(){if(p>=t.size)return void a(null,n.digest(r));var e=p+m;e>t.size&&(e=t.size),l.readAsArrayBuffer(s.call(t,p,e))},l._continueReading()}},toHex:function O(e){for(var t=[],r=0;r<e.length;r++)t.push(("0"+e.charCodeAt(r).toString(16)).substr(-2,2));return t.join("")},createHash:function G(e){return a.createHash(e)}},abort:{},each:function z(e,t){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var a=t.call(this,r,e[r]);if(a===i.abort)break}},arrayEach:function j(e,t){for(var r in e)if(e.hasOwnProperty(r)){var a=t.call(this,e[r],parseInt(r,10));if(a===i.abort)break}},update:function K(e,t){return i.each(t,function r(t,a){e[t]=a}),e},merge:function H(e,t){return i.update(i.copy(e),t)},copy:function W(e){if(null===e||void 0===e)return e;var t={};
|
||
for(var r in e)t[r]=e[r];return t},isEmpty:function Q(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},arraySliceFn:function Z(e){var t=e.slice||e.webkitSlice||e.mozSlice;return"function"==typeof t?t:null},isType:function X(e,t){return"function"==typeof t&&(t=i.typeName(t)),Object.prototype.toString.call(e)==="[object "+t+"]"},typeName:function J(e){if(e.hasOwnProperty("name"))return e.name;var t=e.toString(),r=t.match(/^\s*function (.+)\(/);return r?r[1]:t},error:function $(e,t){var r=null;return"string"==typeof e.message&&""!==e.message&&("string"==typeof t||t&&t.message)&&(r=i.copy(e),r.message=e.message),e.message=e.message||null,"string"==typeof t?e.message=t:"object"==typeof t&&null!==t&&(i.update(e,t),t.message&&(e.message=t.message),(t.code||t.name)&&(e.code=t.code||t.name),t.stack&&(e.stack=t.stack)),"function"==typeof Object.defineProperty&&(Object.defineProperty(e,"name",{writable:!0,enumerable:!1}),Object.defineProperty(e,"message",{enumerable:!0})),e.name=t&&t.name||e.name||e.code||"Error",e.time=new Date,r&&(e.originalError=r),e},inherit:function Y(e,t){var r=null;if(void 0===t)t=e,e=Object,r={};else{var a=function o(){};a.prototype=e.prototype,r=new a}return t.constructor===Object&&(t.constructor=function(){return e!==Object?e.apply(this,arguments):void 0}),t.constructor.prototype=r,i.update(t.constructor.prototype,t),t.constructor.__super__=e,t.constructor},mixin:function ee(){for(var e=arguments[0],t=1;t<arguments.length;t++)for(var r in arguments[t].prototype){var a=arguments[t].prototype[r];"constructor"!==r&&(e.prototype[r]=a)}return e},hideProperties:function te(e,t){"function"==typeof Object.defineProperty&&i.arrayEach(t,function(t){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0})})},property:function re(e,t,r,a,o){var n={configurable:!0,enumerable:void 0!==a?a:!0};"function"!=typeof r||o?(n.value=r,n.writable=!0):n.get=r,Object.defineProperty(e,t,n)},memoizedProperty:function ae(e,t,r,a){var o=null;i.property(e,t,function(){return null===o&&(o=r()),o},a)},hoistPayloadMember:function oe(e){var t=e.request,r=t.operation,a=t.service.api.operations[r].output;if(a.payload){var o=a.members[a.payload],n=e.data[a.payload];"structure"===o.type&&i.each(n,function(t,r){i.property(e.data,t,r,!1)})}},computeSha256:function ne(e,t){if(i.isNode()){var r=i.nodeRequire("stream").Stream,a=i.nodeRequire("fs");if(e instanceof r){if("string"!=typeof e.path)return t(new Error("Non-file stream objects are not supported with SigV4"));e=a.createReadStream(e.path)}}i.crypto.sha256(e,"hex",function(e,r){e?t(e):t(null,r)})},isClockSkewed:function ie(e){return e?(i.property(n.config,"isClockSkewed",Math.abs((new Date).getTime()-e)>=3e5,!1),n.config.isClockSkewed):void 0},applyClockOffset:function se(e){e&&(n.config.systemClockOffset=e-(new Date).getTime())},extractRequestId:function ue(e){var t=e.httpResponse.headers["x-amz-request-id"]||e.httpResponse.headers["x-amzn-requestid"];!t&&e.data&&e.data.ResponseMetadata&&(t=e.data.ResponseMetadata.RequestId),t&&(e.requestId=t),e.error&&(e.error.requestId=t)}};t.exports=i}).call(this,e("FWaASH"))},{"./core":4,FWaASH:73,buffer:62,crypto:66,querystring:77,url:78}],60:[function(e,t,r){function a(){}function o(e,t){switch(t||(t={}),t.type){case"structure":return n(e,t);case"map":return i(e,t);case"list":return s(e,t);case void 0:case null:return c(e);default:return u(e,t)}}function n(e,t){var r={};return null===e?r:(p.each(t.members,function(t,a){if(a.isXmlAttribute){if(e.attributes.hasOwnProperty(a.name)){var n=e.attributes[a.name].value;r[t]=o({textContent:n},a)}}else{var i=a.flattened?e:e.getElementsByTagName(a.name)[0];i?r[t]=o(i,a):a.flattened||"list"!==a.type||(r[t]=a.defaultValue)}}),r)}function i(e,t){for(var r={},a=t.key.name||"key",n=t.value.name||"value",i=t.flattened?t.name:"entry",s=e.firstElementChild;s;){if(s.nodeName===i){var u=s.getElementsByTagName(a)[0].textContent,c=s.getElementsByTagName(n)[0];r[u]=o(c,t.value)}s=s.nextElementSibling}return r}function s(e,t){for(var r=[],a=t.flattened?t.name:t.member.name||"member",n=e.firstElementChild;n;)n.nodeName===a&&r.push(o(n,t.member)),n=n.nextElementSibling;return r}function u(e,t){if(e.getAttribute){var r=e.getAttribute("encoding");"base64"===r&&(t=new m.create({type:r}))}var a=e.textContent;return""===a&&(a=null),"function"==typeof t.toType?t.toType(a):a}function c(e){if(void 0===e||null===e)return"";if(!e.firstElementChild)return null===e.parentNode.parentNode?{}:0===e.childNodes.length?"":e.textContent;for(var t={type:"structure",members:{}},r=e.firstElementChild;r;){var a=r.nodeName;t.members.hasOwnProperty(a)?t.members[a].type="list":t.members[a]={name:a},r=r.nextElementSibling}return n(e,t)}var p=e("../util"),m=e("../model/shape");a.prototype.parse=function(e,t){if(""===e.replace(/^\s+/,""))return{};var r,a;try{if(window.DOMParser){try{var n=new DOMParser;r=n.parseFromString(e,"text/xml")}catch(i){throw p.error(new Error("Parse error in document"),{originalError:i,code:"XMLParserError",retryable:!0})}if(null===r.documentElement)throw p.error(new Error("Cannot parse empty document."),{code:"XMLParserError",retryable:!0});var s=r.getElementsByTagName("parsererror")[0];if(s&&(s.parentNode===r||"body"===s.parentNode.nodeName||s.parentNode.parentNode===r||"body"===s.parentNode.parentNode.nodeName)){var u=s.getElementsByTagName("div")[0]||s;throw p.error(new Error(u.textContent||"Parser error in document"),{code:"XMLParserError",retryable:!0})}}else{if(!window.ActiveXObject)throw new Error("Cannot load XML parser");if(r=new window.ActiveXObject("Microsoft.XMLDOM"),r.async=!1,!r.loadXML(e))throw p.error(new Error("Parse error in document"),{code:"XMLParserError",retryable:!0})}}catch(c){a=c}if(r&&r.documentElement&&!a){var m=o(r.documentElement,t),l=r.getElementsByTagName("ResponseMetadata")[0];return l&&(m.ResponseMetadata=o(l,{})),m}if(a)throw p.error(a||new Error,{code:"XMLParserError",retryable:!0});return{}},t.exports=a},{"../model/shape":26,"../util":59}],61:[function(e,t,r){function a(){}function o(e,t,r){switch(r.type){case"structure":return n(e,t,r);case"map":return i(e,t,r);case"list":return s(e,t,r);default:return u(e,t,r)}}function n(e,t,r){p.arrayEach(r.memberNames,function(a){var n=r.members[a];if("body"===n.location){var i=t[a],s=n.name;if(void 0!==i&&null!==i)if(n.isXmlAttribute)e.att(s,i);else if(n.flattened)o(e,i,n);else{var u=e.ele(s);c(u,n),o(u,i,n)}}})}function i(e,t,r){var a=r.key.name||"key",n=r.value.name||"value";p.each(t,function(t,i){var s=e.ele(r.flattened?r.name:"entry");o(s.ele(a),t,r.key),o(s.ele(n),i,r.value)})}function s(e,t,r){r.flattened?p.arrayEach(t,function(t){var a=r.member.name||r.name,n=e.ele(a);o(n,t,r.member)}):p.arrayEach(t,function(t){var a=r.member.name||"member",n=e.ele(a);o(n,t,r.member)})}function u(e,t,r){e.txt(r.toWireFormat(t))}function c(e,t){var r,a="xmlns";t.xmlNamespaceUri?(r=t.xmlNamespaceUri,t.xmlNamespacePrefix&&(a+=":"+t.xmlNamespacePrefix)):e.isRoot&&t.api.xmlNamespaceUri&&(r=t.api.xmlNamespaceUri),r&&e.att(a,r)}var p=e("../util"),m=e("xmlbuilder");a.prototype.toXML=function(e,t,r,a){var n=m.create(r);return c(n,t),o(n,e,t),n.children.length>0||a?n.root().toString():""},t.exports=a},{"../util":59,xmlbuilder:97}],62:[function(e,t,r){function a(e,t,r){if(!(this instanceof a))return new a(e,t,r);var o=typeof e;if("base64"===t&&"string"===o)for(e=A(e);e.length%4!==0;)e+="=";var n;if("number"===o)n=x(e);else if("string"===o)n=a.byteLength(e,t);else{if("object"!==o)throw new Error("First argument needs to be a number, array or string.");n=x(e.length)}var i;a._useTypedArrays?i=a._augment(new Uint8Array(n)):(i=this,i.length=n,i._isBuffer=!0);var s;if(a._useTypedArrays&&"number"==typeof e.byteLength)i._set(e);else if(E(e))for(s=0;n>s;s++)a.isBuffer(e)?i[s]=e.readUInt8(s):i[s]=e[s];else if("string"===o)i.write(e,0,t);else if("number"===o&&!a._useTypedArrays&&!r)for(s=0;n>s;s++)i[s]=0;return i}function o(e,t,r,o){r=Number(r)||0;var n=e.length-r;o?(o=Number(o),o>n&&(o=n)):o=n;var i=t.length;z(i%2===0,"Invalid hex string"),o>i/2&&(o=i/2);for(var s=0;o>s;s++){var u=parseInt(t.substr(2*s,2),16);z(!isNaN(u),"Invalid hex string"),e[r+s]=u}return a._charsWritten=2*s,s}function n(e,t,r,o){var n=a._charsWritten=_(L(t),e,r,o);return n}function i(e,t,r,o){var n=a._charsWritten=_(M(t),e,r,o);return n}function s(e,t,r,a){return i(e,t,r,a)}function u(e,t,r,o){var n=a._charsWritten=_(U(t),e,r,o);return n}function c(e,t,r,o){var n=a._charsWritten=_(B(t),e,r,o);return n}function p(e,t,r){return j.fromByteArray(0===t&&r===e.length?e:e.slice(t,r))}function m(e,t,r){var a="",o="";r=Math.min(e.length,r);for(var n=t;r>n;n++)e[n]<=127?(a+=V(o)+String.fromCharCode(e[n]),o=""):o+="%"+e[n].toString(16);return a+V(o)}function l(e,t,r){var a="";r=Math.min(e.length,r);for(var o=t;r>o;o++)a+=String.fromCharCode(e[o]);return a}function d(e,t,r){return l(e,t,r)}function y(e,t,r){var a=e.length;(!t||0>t)&&(t=0),(!r||0>r||r>a)&&(r=a);for(var o="",n=t;r>n;n++)o+=w(e[n]);return o}function h(e,t,r){for(var a=e.slice(t,r),o="",n=0;n<a.length;n+=2)o+=String.fromCharCode(a[n]+256*a[n+1]);return o}function b(e,t,r,a){a||(z("boolean"==typeof r,"missing or invalid endian"),z(void 0!==t&&null!==t,"missing offset"),z(t+1<e.length,"Trying to read beyond buffer length"));var o=e.length;if(!(t>=o)){var n;return r?(n=e[t],o>t+1&&(n|=e[t+1]<<8)):(n=e[t]<<8,o>t+1&&(n|=e[t+1])),n}}function f(e,t,r,a){a||(z("boolean"==typeof r,"missing or invalid endian"),z(void 0!==t&&null!==t,"missing offset"),z(t+3<e.length,"Trying to read beyond buffer length"));var o=e.length;if(!(t>=o)){var n;return r?(o>t+2&&(n=e[t+2]<<16),o>t+1&&(n|=e[t+1]<<8),n|=e[t],o>t+3&&(n+=e[t+3]<<24>>>0)):(o>t+1&&(n=e[t+1]<<16),o>t+2&&(n|=e[t+2]<<8),o>t+3&&(n|=e[t+3]),n+=e[t]<<24>>>0),n}}function g(e,t,r,a){a||(z("boolean"==typeof r,"missing or invalid endian"),z(void 0!==t&&null!==t,"missing offset"),z(t+1<e.length,"Trying to read beyond buffer length"));var o=e.length;if(!(t>=o)){var n=b(e,t,r,!0),i=32768&n;return i?-1*(65535-n+1):n}}function S(e,t,r,a){a||(z("boolean"==typeof r,"missing or invalid endian"),z(void 0!==t&&null!==t,"missing offset"),z(t+3<e.length,"Trying to read beyond buffer length"));var o=e.length;if(!(t>=o)){var n=f(e,t,r,!0),i=2147483648&n;return i?-1*(4294967295-n+1):n}}function N(e,t,r,a){return a||(z("boolean"==typeof r,"missing or invalid endian"),z(t+3<e.length,"Trying to read beyond buffer length")),K.read(e,t,r,23,4)}function I(e,t,r,a){return a||(z("boolean"==typeof r,"missing or invalid endian"),z(t+7<e.length,"Trying to read beyond buffer length")),K.read(e,t,r,52,8)}function v(e,t,r,a,o){o||(z(void 0!==t&&null!==t,"missing value"),z("boolean"==typeof a,"missing or invalid endian"),z(void 0!==r&&null!==r,"missing offset"),z(r+1<e.length,"trying to write beyond buffer length"),F(t,65535));var n=e.length;if(!(r>=n))for(var i=0,s=Math.min(n-r,2);s>i;i++)e[r+i]=(t&255<<8*(a?i:1-i))>>>8*(a?i:1-i)}function k(e,t,r,a,o){o||(z(void 0!==t&&null!==t,"missing value"),z("boolean"==typeof a,"missing or invalid endian"),z(void 0!==r&&null!==r,"missing offset"),z(r+3<e.length,"trying to write beyond buffer length"),F(t,4294967295));var n=e.length;if(!(r>=n))for(var i=0,s=Math.min(n-r,4);s>i;i++)e[r+i]=t>>>8*(a?i:3-i)&255}function C(e,t,r,a,o){o||(z(void 0!==t&&null!==t,"missing value"),z("boolean"==typeof a,"missing or invalid endian"),z(void 0!==r&&null!==r,"missing offset"),z(r+1<e.length,"Trying to write beyond buffer length"),O(t,32767,-32768));var n=e.length;r>=n||(t>=0?v(e,t,r,a,o):v(e,65535+t+1,r,a,o))}function T(e,t,r,a,o){o||(z(void 0!==t&&null!==t,"missing value"),z("boolean"==typeof a,"missing or invalid endian"),z(void 0!==r&&null!==r,"missing offset"),z(r+3<e.length,"Trying to write beyond buffer length"),O(t,2147483647,-2147483648));var n=e.length;r>=n||(t>=0?k(e,t,r,a,o):k(e,4294967295+t+1,r,a,o))}function D(e,t,r,a,o){o||(z(void 0!==t&&null!==t,"missing value"),z("boolean"==typeof a,"missing or invalid endian"),z(void 0!==r&&null!==r,"missing offset"),z(r+3<e.length,"Trying to write beyond buffer length"),G(t,3.4028234663852886e38,-3.4028234663852886e38));var n=e.length;r>=n||K.write(e,t,r,a,23,4)}function R(e,t,r,a,o){o||(z(void 0!==t&&null!==t,"missing value"),z("boolean"==typeof a,"missing or invalid endian"),z(void 0!==r&&null!==r,"missing offset"),z(r+7<e.length,"Trying to write beyond buffer length"),G(t,1.7976931348623157e308,-1.7976931348623157e308));var n=e.length;r>=n||K.write(e,t,r,a,52,8)}function A(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function q(e,t,r){return"number"!=typeof e?r:(e=~~e,e>=t?t:e>=0?e:(e+=t,e>=0?e:0))}function x(e){return e=~~Math.ceil(+e),0>e?0:e}function P(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function E(e){return P(e)||a.isBuffer(e)||e&&"object"==typeof e&&"number"==typeof e.length}function w(e){return 16>e?"0"+e.toString(16):e.toString(16)}function L(e){for(var t=[],r=0;r<e.length;r++){var a=e.charCodeAt(r);if(127>=a)t.push(e.charCodeAt(r));else{var o=r;a>=55296&&57343>=a&&r++;for(var n=encodeURIComponent(e.slice(o,r+1)).substr(1).split("%"),i=0;i<n.length;i++)t.push(parseInt(n[i],16))}}return t}function M(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t}function B(e){for(var t,r,a,o=[],n=0;n<e.length;n++)t=e.charCodeAt(n),r=t>>8,a=t%256,o.push(a),o.push(r);return o}function U(e){return j.toByteArray(e)}function _(e,t,r,a){for(var o,n=0;a>n&&!(n+r>=t.length||n>=e.length);n++)t[n+r]=e[n];return n}function V(e){try{return decodeURIComponent(e)}catch(t){return String.fromCharCode(65533)}}function F(e,t){z("number"==typeof e,"cannot write a non-number as a number"),z(e>=0,"specified a negative value for writing an unsigned value"),z(t>=e,"value is larger than maximum value for type"),z(Math.floor(e)===e,"value has a fractional component")}function O(e,t,r){z("number"==typeof e,"cannot write a non-number as a number"),z(t>=e,"value larger than maximum allowed value"),z(e>=r,"value smaller than minimum allowed value"),z(Math.floor(e)===e,"value has a fractional component")}function G(e,t,r){z("number"==typeof e,"cannot write a non-number as a number"),z(t>=e,"value larger than maximum allowed value"),z(e>=r,"value smaller than minimum allowed value")}function z(e,t){if(!e)throw new Error(t||"Failed assertion")}var j=e("base64-js"),K=e("ieee754");r.Buffer=a,r.SlowBuffer=a,r.INSPECT_MAX_BYTES=50,a.poolSize=8192,a._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(r){return!1}}(),a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.isBuffer=function(e){return!(null===e||void 0===e||!e._isBuffer)},a.byteLength=function(e,t){var r;switch(e+="",t||"utf8"){case"hex":r=e.length/2;break;case"utf8":case"utf-8":r=L(e).length;break;case"ascii":case"binary":case"raw":r=e.length;break;case"base64":r=U(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=2*e.length;break;default:throw new Error("Unknown encoding")}return r},a.concat=function(e,t){if(z(P(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new a(0);if(1===e.length)return e[0];var r;if("number"!=typeof t)for(t=0,r=0;r<e.length;r++)t+=e[r].length;var o=new a(t),n=0;for(r=0;r<e.length;r++){var i=e[r];i.copy(o,n),n+=i.length}return o},a.prototype.write=function(e,t,r,a){if(isFinite(t))isFinite(r)||(a=r,r=void 0);else{var p=a;a=t,t=r,r=p}t=Number(t)||0;var m=this.length-t;r?(r=Number(r),r>m&&(r=m)):r=m,a=String(a||"utf8").toLowerCase();var l;switch(a){case"hex":l=o(this,e,t,r);break;case"utf8":case"utf-8":l=n(this,e,t,r);break;case"ascii":l=i(this,e,t,r);break;case"binary":l=s(this,e,t,r);break;case"base64":l=u(this,e,t,r);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":l=c(this,e,t,r);break;default:throw new Error("Unknown encoding")}return l},a.prototype.toString=function(e,t,r){var a=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,r=void 0!==r?Number(r):r=a.length,r===t)return"";var o;switch(e){case"hex":o=y(a,t,r);break;case"utf8":case"utf-8":o=m(a,t,r);break;case"ascii":o=l(a,t,r);break;case"binary":o=d(a,t,r);break;case"base64":o=p(a,t,r);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":o=h(a,t,r);break;default:throw new Error("Unknown encoding")}return o},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.copy=function(e,t,r,o){var n=this;if(r||(r=0),o||0===o||(o=this.length),t||(t=0),o!==r&&0!==e.length&&0!==n.length){z(o>=r,"sourceEnd < sourceStart"),z(t>=0&&t<e.length,"targetStart out of bounds"),z(r>=0&&r<n.length,"sourceStart out of bounds"),z(o>=0&&o<=n.length,"sourceEnd out of bounds"),o>this.length&&(o=this.length),e.length-t<o-r&&(o=e.length-t+r);var i=o-r;if(100>i||!a._useTypedArrays)for(var s=0;i>s;s++)e[s+t]=this[s+r];else e._set(this.subarray(r,r+i),t)}},a.prototype.slice=function(e,t){var r=this.length;if(e=q(e,r,0),t=q(t,r,r),a._useTypedArrays)return a._augment(this.subarray(e,t));for(var o=t-e,n=new a(o,void 0,!0),i=0;o>i;i++)n[i]=this[i+e];return n},a.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},a.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},a.prototype.readUInt8=function(e,t){return t||(z(void 0!==e&&null!==e,"missing offset"),z(e<this.length,"Trying to read beyond buffer length")),e>=this.length?void 0:this[e]},a.prototype.readUInt16LE=function(e,t){return b(this,e,!0,t)},a.prototype.readUInt16BE=function(e,t){return b(this,e,!1,t)},a.prototype.readUInt32LE=function(e,t){return f(this,e,!0,t)},a.prototype.readUInt32BE=function(e,t){return f(this,e,!1,t)},a.prototype.readInt8=function(e,t){if(t||(z(void 0!==e&&null!==e,"missing offset"),z(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length)){var r=128&this[e];return r?-1*(255-this[e]+1):this[e]}},a.prototype.readInt16LE=function(e,t){return g(this,e,!0,t)},a.prototype.readInt16BE=function(e,t){return g(this,e,!1,t)},a.prototype.readInt32LE=function(e,t){return S(this,e,!0,t)},a.prototype.readInt32BE=function(e,t){return S(this,e,!1,t)},a.prototype.readFloatLE=function(e,t){return N(this,e,!0,t)},a.prototype.readFloatBE=function(e,t){return N(this,e,!1,t)},a.prototype.readDoubleLE=function(e,t){return I(this,e,!0,t)},a.prototype.readDoubleBE=function(e,t){return I(this,e,!1,t)},a.prototype.writeUInt8=function(e,t,r){r||(z(void 0!==e&&null!==e,"missing value"),z(void 0!==t&&null!==t,"missing offset"),z(t<this.length,"trying to write beyond buffer length"),F(e,255)),t>=this.length||(this[t]=e)},a.prototype.writeUInt16LE=function(e,t,r){v(this,e,t,!0,r)},a.prototype.writeUInt16BE=function(e,t,r){v(this,e,t,!1,r)},a.prototype.writeUInt32LE=function(e,t,r){k(this,e,t,!0,r)},a.prototype.writeUInt32BE=function(e,t,r){k(this,e,t,!1,r)},a.prototype.writeInt8=function(e,t,r){r||(z(void 0!==e&&null!==e,"missing value"),z(void 0!==t&&null!==t,"missing offset"),z(t<this.length,"Trying to write beyond buffer length"),O(e,127,-128)),t>=this.length||(e>=0?this.writeUInt8(e,t,r):this.writeUInt8(255+e+1,t,r))},a.prototype.writeInt16LE=function(e,t,r){C(this,e,t,!0,r)},a.prototype.writeInt16BE=function(e,t,r){C(this,e,t,!1,r)},a.prototype.writeInt32LE=function(e,t,r){T(this,e,t,!0,r)},a.prototype.writeInt32BE=function(e,t,r){T(this,e,t,!1,r)},a.prototype.writeFloatLE=function(e,t,r){D(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){D(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){R(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){R(this,e,t,!1,r)},a.prototype.fill=function(e,t,r){if(e||(e=0),t||(t=0),r||(r=this.length),"string"==typeof e&&(e=e.charCodeAt(0)),z("number"==typeof e&&!isNaN(e),"value is not a number"),z(r>=t,"end < start"),r!==t&&0!==this.length){z(t>=0&&t<this.length,"start out of bounds"),z(r>=0&&r<=this.length,"end out of bounds");for(var a=t;r>a;a++)this[a]=e}},a.prototype.inspect=function(){for(var e=[],t=this.length,a=0;t>a;a++)if(e[a]=w(this[a]),a===r.INSPECT_MAX_BYTES){e[a+1]="...";break}return"<Buffer "+e.join(" ")+">"},a.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(a._useTypedArrays)return new a(this).buffer;for(var e=new Uint8Array(this.length),t=0,r=e.length;r>t;t+=1)e[t]=this[t];return e.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var H=a.prototype;a._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=H.get,e.set=H.set,e.write=H.write,e.toString=H.toString,e.toLocaleString=H.toString,e.toJSON=H.toJSON,e.copy=H.copy,e.slice=H.slice,e.readUInt8=H.readUInt8,e.readUInt16LE=H.readUInt16LE,e.readUInt16BE=H.readUInt16BE,e.readUInt32LE=H.readUInt32LE,e.readUInt32BE=H.readUInt32BE,e.readInt8=H.readInt8,e.readInt16LE=H.readInt16LE,e.readInt16BE=H.readInt16BE,e.readInt32LE=H.readInt32LE,e.readInt32BE=H.readInt32BE,e.readFloatLE=H.readFloatLE,e.readFloatBE=H.readFloatBE,e.readDoubleLE=H.readDoubleLE,e.readDoubleBE=H.readDoubleBE,e.writeUInt8=H.writeUInt8,e.writeUInt16LE=H.writeUInt16LE,e.writeUInt16BE=H.writeUInt16BE,e.writeUInt32LE=H.writeUInt32LE,e.writeUInt32BE=H.writeUInt32BE,e.writeInt8=H.writeInt8,e.writeInt16LE=H.writeInt16LE,e.writeInt16BE=H.writeInt16BE,e.writeInt32LE=H.writeInt32LE,e.writeInt32BE=H.writeInt32BE,e.writeFloatLE=H.writeFloatLE,e.writeFloatBE=H.writeFloatBE,e.writeDoubleLE=H.writeDoubleLE,e.writeDoubleBE=H.writeDoubleBE,e.fill=H.fill,e.inspect=H.inspect,e.toArrayBuffer=H.toArrayBuffer,e}},{"base64-js":63,ieee754:64}],63:[function(e,t,r){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";function t(e){var t=e.charCodeAt(0);return t===i||t===m?62:t===s||t===l?63:u>t?-1:u+10>t?t-u+26+26:p+26>t?t-p:c+26>t?t-c+26:void 0}function r(e){function r(e){c[m++]=e}var a,o,i,s,u,c;if(e.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var p=e.length;u="="===e.charAt(p-2)?2:"="===e.charAt(p-1)?1:0,c=new n(3*e.length/4-u),i=u>0?e.length-4:e.length;var m=0;for(a=0,o=0;i>a;a+=4,o+=3)s=t(e.charAt(a))<<18|t(e.charAt(a+1))<<12|t(e.charAt(a+2))<<6|t(e.charAt(a+3)),r((16711680&s)>>16),r((65280&s)>>8),r(255&s);return 2===u?(s=t(e.charAt(a))<<2|t(e.charAt(a+1))>>4,r(255&s)):1===u&&(s=t(e.charAt(a))<<10|t(e.charAt(a+1))<<4|t(e.charAt(a+2))>>2,r(s>>8&255),r(255&s)),c}function o(e){function t(e){return a.charAt(e)}function r(e){return t(e>>18&63)+t(e>>12&63)+t(e>>6&63)+t(63&e)}var o,n=e.length%3,i="",s,u;for(o=0,u=e.length-n;u>o;o+=3)s=(e[o]<<16)+(e[o+1]<<8)+e[o+2],i+=r(s);switch(n){case 1:s=e[e.length-1],i+=t(s>>2),i+=t(s<<4&63),i+="==";break;case 2:s=(e[e.length-2]<<8)+e[e.length-1],i+=t(s>>10),i+=t(s>>4&63),i+=t(s<<2&63),i+="="}return i}var n="undefined"!=typeof Uint8Array?Uint8Array:Array,i="+".charCodeAt(0),s="/".charCodeAt(0),u="0".charCodeAt(0),c="a".charCodeAt(0),p="A".charCodeAt(0),m="-".charCodeAt(0),l="_".charCodeAt(0);e.toByteArray=r,e.fromByteArray=o}("undefined"==typeof r?this.base64js={}:r)},{}],64:[function(e,t,r){r.read=function(e,t,r,a,o){var n,i,s=8*o-a-1,u=(1<<s)-1,c=u>>1,p=-7,m=r?o-1:0,l=r?-1:1,d=e[t+m];for(m+=l,n=d&(1<<-p)-1,d>>=-p,p+=s;p>0;n=256*n+e[t+m],m+=l,p-=8);for(i=n&(1<<-p)-1,n>>=-p,p+=a;p>0;i=256*i+e[t+m],m+=l,p-=8);if(0===n)n=1-c;else{if(n===u)return i?0/0:(d?-1:1)*(1/0);i+=Math.pow(2,a),n-=c}return(d?-1:1)*i*Math.pow(2,n-a)},r.write=function(e,t,r,a,o,n){var i,s,u,c=8*n-o-1,p=(1<<c)-1,m=p>>1,l=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=a?0:n-1,y=a?1:-1,h=0>t||0===t&&0>1/t?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=p):(i=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-i))<1&&(i--,u*=2),t+=i+m>=1?l/u:l*Math.pow(2,1-m),t*u>=2&&(i++,u/=2),i+m>=p?(s=0,i=p):i+m>=1?(s=(t*u-1)*Math.pow(2,o),i+=m):(s=t*Math.pow(2,m-1)*Math.pow(2,o),i=0));o>=8;e[r+d]=255&s,d+=y,s/=256,o-=8);for(i=i<<o|s,c+=o;c>0;e[r+d]=255&i,d+=y,i/=256,c-=8);e[r+d-y]|=128*h}},{}],65:[function(e,t,r){function a(e,t){if(e.length%s!==0){var r=e.length+(s-e.length%s);e=i.concat([e,u],r)}for(var a=[],o=t?e.readInt32BE:e.readInt32LE,n=0;n<e.length;n+=s)a.push(o.call(e,n));return a}function o(e,t,r){for(var a=new i(t),o=r?a.writeInt32BE:a.writeInt32LE,n=0;n<e.length;n++)o.call(a,e[n],4*n,!0);return a}function n(e,t,r,n){i.isBuffer(e)||(e=new i(e));var s=t(a(e,n),e.length*c);return o(s,r,n)}var i=e("buffer").Buffer,s=4,u=new i(s);u.fill(0);var c=8;t.exports={hash:n}},{buffer:62}],66:[function(e,t,r){function a(e,t,r){s.isBuffer(t)||(t=new s(t)),s.isBuffer(r)||(r=new s(r)),t.length>d?t=e(t):t.length<d&&(t=s.concat([t,y],d));for(var a=new s(d),o=new s(d),n=0;d>n;n++)a[n]=54^t[n],o[n]=92^t[n];var i=e(s.concat([a,r]));return e(s.concat([o,i]))}function o(e,t){e=e||"sha1";var r=l[e],o=[],i=0;return r||n("algorithm:",e,"is not yet supported"),{update:function(e){return s.isBuffer(e)||(e=new s(e)),o.push(e),i+=e.length,this},digest:function(e){var n=s.concat(o),i=t?a(r,t,n):r(n);return o=null,e?i.toString(e):i}}}function n(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}function i(e,t){for(var r in e)t(e[r],r)}var s=e("buffer").Buffer,u=e("./sha"),c=e("./sha256"),p=e("./rng"),m=e("./md5"),l={sha1:u,sha256:c,md5:m},d=64,y=new s(d);y.fill(0),r.createHash=function(e){return o(e)},r.createHmac=function(e,t){return o(e,t)},r.randomBytes=function(e,t){if(!t||!t.call)return new s(p(e));try{t.call(this,void 0,new s(p(e)))}catch(r){t(r)}},i(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(e){r[e]=function(){n("sorry,",e,"is not implemented yet")}})},{"./md5":67,"./rng":68,"./sha":69,"./sha256":70,buffer:62}],67:[function(e,t,r){function a(){return"900150983cd24fb0d6963f7d28e17f72"==hex_md5("abc")}function o(e,t){e[t>>5]|=128<<t%32,e[(t+64>>>9<<4)+14]=t;for(var r=1732584193,a=-271733879,o=-1732584194,n=271733878,m=0;m<e.length;m+=16){var l=r,d=a,y=o,h=n;r=i(r,a,o,n,e[m+0],7,-680876936),n=i(n,r,a,o,e[m+1],12,-389564586),o=i(o,n,r,a,e[m+2],17,606105819),a=i(a,o,n,r,e[m+3],22,-1044525330),r=i(r,a,o,n,e[m+4],7,-176418897),n=i(n,r,a,o,e[m+5],12,1200080426),o=i(o,n,r,a,e[m+6],17,-1473231341),a=i(a,o,n,r,e[m+7],22,-45705983),r=i(r,a,o,n,e[m+8],7,1770035416),n=i(n,r,a,o,e[m+9],12,-1958414417),o=i(o,n,r,a,e[m+10],17,-42063),a=i(a,o,n,r,e[m+11],22,-1990404162),r=i(r,a,o,n,e[m+12],7,1804603682),n=i(n,r,a,o,e[m+13],12,-40341101),o=i(o,n,r,a,e[m+14],17,-1502002290),a=i(a,o,n,r,e[m+15],22,1236535329),r=s(r,a,o,n,e[m+1],5,-165796510),n=s(n,r,a,o,e[m+6],9,-1069501632),o=s(o,n,r,a,e[m+11],14,643717713),a=s(a,o,n,r,e[m+0],20,-373897302),r=s(r,a,o,n,e[m+5],5,-701558691),n=s(n,r,a,o,e[m+10],9,38016083),o=s(o,n,r,a,e[m+15],14,-660478335),a=s(a,o,n,r,e[m+4],20,-405537848),r=s(r,a,o,n,e[m+9],5,568446438),n=s(n,r,a,o,e[m+14],9,-1019803690),o=s(o,n,r,a,e[m+3],14,-187363961),a=s(a,o,n,r,e[m+8],20,1163531501),r=s(r,a,o,n,e[m+13],5,-1444681467),n=s(n,r,a,o,e[m+2],9,-51403784),o=s(o,n,r,a,e[m+7],14,1735328473),a=s(a,o,n,r,e[m+12],20,-1926607734),r=u(r,a,o,n,e[m+5],4,-378558),n=u(n,r,a,o,e[m+8],11,-2022574463),o=u(o,n,r,a,e[m+11],16,1839030562),a=u(a,o,n,r,e[m+14],23,-35309556),r=u(r,a,o,n,e[m+1],4,-1530992060),n=u(n,r,a,o,e[m+4],11,1272893353),o=u(o,n,r,a,e[m+7],16,-155497632),a=u(a,o,n,r,e[m+10],23,-1094730640),r=u(r,a,o,n,e[m+13],4,681279174),n=u(n,r,a,o,e[m+0],11,-358537222),o=u(o,n,r,a,e[m+3],16,-722521979),a=u(a,o,n,r,e[m+6],23,76029189),r=u(r,a,o,n,e[m+9],4,-640364487),n=u(n,r,a,o,e[m+12],11,-421815835),o=u(o,n,r,a,e[m+15],16,530742520),a=u(a,o,n,r,e[m+2],23,-995338651),r=c(r,a,o,n,e[m+0],6,-198630844),n=c(n,r,a,o,e[m+7],10,1126891415),o=c(o,n,r,a,e[m+14],15,-1416354905),a=c(a,o,n,r,e[m+5],21,-57434055),r=c(r,a,o,n,e[m+12],6,1700485571),n=c(n,r,a,o,e[m+3],10,-1894986606),o=c(o,n,r,a,e[m+10],15,-1051523),a=c(a,o,n,r,e[m+1],21,-2054922799),r=c(r,a,o,n,e[m+8],6,1873313359),n=c(n,r,a,o,e[m+15],10,-30611744),o=c(o,n,r,a,e[m+6],15,-1560198380),a=c(a,o,n,r,e[m+13],21,1309151649),r=c(r,a,o,n,e[m+4],6,-145523070),n=c(n,r,a,o,e[m+11],10,-1120210379),o=c(o,n,r,a,e[m+2],15,718787259),a=c(a,o,n,r,e[m+9],21,-343485551),r=p(r,l),a=p(a,d),o=p(o,y),n=p(n,h)}return Array(r,a,o,n)}function n(e,t,r,a,o,n){return p(m(p(p(t,e),p(a,n)),o),r)}function i(e,t,r,a,o,i,s){return n(t&r|~t&a,e,t,o,i,s)}function s(e,t,r,a,o,i,s){return n(t&a|r&~a,e,t,o,i,s)}function u(e,t,r,a,o,i,s){return n(t^r^a,e,t,o,i,s)}function c(e,t,r,a,o,i,s){return n(r^(t|~a),e,t,o,i,s)}function p(e,t){var r=(65535&e)+(65535&t),a=(e>>16)+(t>>16)+(r>>16);return a<<16|65535&r}function m(e,t){return e<<t|e>>>32-t}var l=e("./helpers");t.exports=function d(e){return l.hash(e,o,16)}},{"./helpers":65}],68:[function(e,t,r){!function(){var e=this,r,a;r=function(e){for(var t=new Array(e),r,a=0,r;e>a;a++)0==(3&a)&&(r=4294967296*Math.random()),t[a]=r>>>((3&a)<<3)&255;return t},e.crypto&&crypto.getRandomValues&&(a=function(e){var t=new Uint8Array(e);return crypto.getRandomValues(t),t}),t.exports=a||r}()},{}],69:[function(e,t,r){function a(e,t){e[t>>5]|=128<<24-t%32,e[(t+64>>9<<4)+15]=t;for(var r=Array(80),a=1732584193,u=-271733879,c=-1732584194,p=271733878,m=-1009589776,l=0;l<e.length;l+=16){for(var d=a,y=u,h=c,b=p,f=m,g=0;80>g;g++){16>g?r[g]=e[l+g]:r[g]=s(r[g-3]^r[g-8]^r[g-14]^r[g-16],1);var S=i(i(s(a,5),o(g,u,c,p)),i(i(m,r[g]),n(g)));m=p,p=c,c=s(u,30),u=a,a=S}a=i(a,d),u=i(u,y),c=i(c,h),p=i(p,b),m=i(m,f)}return Array(a,u,c,p,m)}function o(e,t,r,a){return 20>e?t&r|~t&a:40>e?t^r^a:60>e?t&r|t&a|r&a:t^r^a}function n(e){return 20>e?1518500249:40>e?1859775393:60>e?-1894007588:-899497514}function i(e,t){var r=(65535&e)+(65535&t),a=(e>>16)+(t>>16)+(r>>16);return a<<16|65535&r}function s(e,t){return e<<t|e>>>32-t}var u=e("./helpers");t.exports=function c(e){return u.hash(e,a,20,!0)}},{"./helpers":65}],70:[function(e,t,r){var a=e("./helpers"),o=function(e,t){var r=(65535&e)+(65535&t),a=(e>>16)+(t>>16)+(r>>16);return a<<16|65535&r},n=function(e,t){return e>>>t|e<<32-t},i=function(e,t){return e>>>t},s=function(e,t,r){return e&t^~e&r},u=function(e,t,r){return e&t^e&r^t&r},c=function(e){return n(e,2)^n(e,13)^n(e,22)},p=function(e){return n(e,6)^n(e,11)^n(e,25)},m=function(e){return n(e,7)^n(e,18)^i(e,3)},l=function(e){return n(e,17)^n(e,19)^i(e,10)},d=function(e,t){var r=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),a=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),n=new Array(64),i,d,y,h,b,f,g,S,N,I,v,k;e[t>>5]|=128<<24-t%32,e[(t+64>>9<<4)+15]=t;for(var N=0;N<e.length;N+=16){i=a[0],d=a[1],y=a[2],h=a[3],b=a[4],f=a[5],g=a[6],S=a[7];for(var I=0;64>I;I++)16>I?n[I]=e[I+N]:n[I]=o(o(o(l(n[I-2]),n[I-7]),m(n[I-15])),n[I-16]),v=o(o(o(o(S,p(b)),s(b,f,g)),r[I]),n[I]),k=o(c(i),u(i,d,y)),S=g,g=f,f=b,b=o(h,v),h=y,y=d,d=i,i=o(v,k);a[0]=o(i,a[0]),a[1]=o(d,a[1]),a[2]=o(y,a[2]),a[3]=o(h,a[3]),a[4]=o(b,a[4]),a[5]=o(f,a[5]),a[6]=o(g,a[6]),a[7]=o(S,a[7])}return a};t.exports=function y(e){return a.hash(e,d,32,!0)}},{"./helpers":65}],71:[function(e,t,r){function a(){this._events=this._events||{},
|
||
this._maxListeners=this._maxListeners||void 0}function o(e){return"function"==typeof e}function n(e){return"number"==typeof e}function i(e){return"object"==typeof e&&null!==e}function s(e){return void 0===e}t.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._maxListeners=void 0,a.defaultMaxListeners=10,a.prototype.setMaxListeners=function(e){if(!n(e)||0>e||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},a.prototype.emit=function(e){var t,r,a,n,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;throw TypeError('Uncaught, unspecified "error" event.')}if(r=this._events[e],s(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:for(a=arguments.length,n=new Array(a-1),u=1;a>u;u++)n[u-1]=arguments[u];r.apply(this,n)}else if(i(r)){for(a=arguments.length,n=new Array(a-1),u=1;a>u;u++)n[u-1]=arguments[u];for(c=r.slice(),a=c.length,u=0;a>u;u++)c[u].apply(this,n)}return!0},a.prototype.addListener=function(e,t){var r;if(!o(t))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,o(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned){var r;r=s(this._maxListeners)?a.defaultMaxListeners:this._maxListeners,r&&r>0&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())}return this},a.prototype.on=a.prototype.addListener,a.prototype.once=function(e,t){function r(){this.removeListener(e,r),a||(a=!0,t.apply(this,arguments))}if(!o(t))throw TypeError("listener must be a function");var a=!1;return r.listener=t,this.on(e,r),this},a.prototype.removeListener=function(e,t){var r,a,n,s;if(!o(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(r=this._events[e],n=r.length,a=-1,r===t||o(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(r)){for(s=n;s-->0;)if(r[s]===t||r[s].listener&&r[s].listener===t){a=s;break}if(0>a)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},a.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[e],o(r))this.removeListener(e,r);else for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},a.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?o(this._events[e])?[this._events[e]]:this._events[e].slice():[]},a.listenerCount=function(e,t){var r;return r=e._events&&e._events[t]?o(e._events[t])?1:e._events[t].length:0}},{}],72:[function(e,t,r){"function"==typeof Object.create?t.exports=function a(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function o(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],73:[function(e,t,r){function a(){}var o=t.exports={};o.nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var r=[];return window.addEventListener("message",function(e){var t=e.source;if((t===window||null===t)&&"process-tick"===e.data&&(e.stopPropagation(),r.length>0)){var a=r.shift();a()}},!0),function a(e){r.push(e),window.postMessage("process-tick","*")}}return function o(e){setTimeout(e,0)}}(),o.title="browser",o.browser=!0,o.env={},o.argv=[],o.on=a,o.addListener=a,o.once=a,o.off=a,o.removeListener=a,o.removeAllListeners=a,o.emit=a,o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")}},{}],74:[function(e,t,r){(function(e){!function(a){function o(e){throw RangeError(E[e])}function n(e,t){for(var r=e.length;r--;)e[r]=t(e[r]);return e}function i(e,t){return n(e.split(P),t).join(".")}function s(e){for(var t=[],r=0,a=e.length,o,n;a>r;)o=e.charCodeAt(r++),o>=55296&&56319>=o&&a>r?(n=e.charCodeAt(r++),56320==(64512&n)?t.push(((1023&o)<<10)+(1023&n)+65536):(t.push(o),r--)):t.push(o);return t}function u(e){return n(e,function(e){var t="";return e>65535&&(e-=65536,t+=M(e>>>10&1023|55296),e=56320|1023&e),t+=M(e)}).join("")}function c(e){return 10>e-48?e-22:26>e-65?e-65:26>e-97?e-97:I}function p(e,t){return e+22+75*(26>e)-((0!=t)<<5)}function m(e,t,r){var a=0;for(e=r?L(e/T):e>>1,e+=L(e/t);e>w*k>>1;a+=I)e=L(e/w);return L(a+(w+1)*e/(e+C))}function l(e){var t=[],r=e.length,a,n=0,i=R,s=D,p,l,d,y,h,b,f,g,S;for(p=e.lastIndexOf(A),0>p&&(p=0),l=0;p>l;++l)e.charCodeAt(l)>=128&&o("not-basic"),t.push(e.charCodeAt(l));for(d=p>0?p+1:0;r>d;){for(y=n,h=1,b=I;d>=r&&o("invalid-input"),f=c(e.charCodeAt(d++)),(f>=I||f>L((N-n)/h))&&o("overflow"),n+=f*h,g=s>=b?v:b>=s+k?k:b-s,!(g>f);b+=I)S=I-g,h>L(N/S)&&o("overflow"),h*=S;a=t.length+1,s=m(n-y,a,0==y),L(n/a)>N-i&&o("overflow"),i+=L(n/a),n%=a,t.splice(n++,0,i)}return u(t)}function d(e){var t,r,a,n,i,u,c,l,d,y,h,b=[],f,g,S,C;for(e=s(e),f=e.length,t=R,r=0,i=D,u=0;f>u;++u)h=e[u],128>h&&b.push(M(h));for(a=n=b.length,n&&b.push(A);f>a;){for(c=N,u=0;f>u;++u)h=e[u],h>=t&&c>h&&(c=h);for(g=a+1,c-t>L((N-r)/g)&&o("overflow"),r+=(c-t)*g,t=c,u=0;f>u;++u)if(h=e[u],t>h&&++r>N&&o("overflow"),h==t){for(l=r,d=I;y=i>=d?v:d>=i+k?k:d-i,!(y>l);d+=I)C=l-y,S=I-y,b.push(M(p(y+C%S,0))),l=L(C/S);b.push(M(p(l,0))),i=m(r,g,a==n),r=0,++a}++r,++t}return b.join("")}function y(e){return i(e,function(e){return q.test(e)?l(e.slice(4).toLowerCase()):e})}function h(e){return i(e,function(e){return x.test(e)?"xn--"+d(e):e})}var b="object"==typeof r&&r,f="object"==typeof t&&t&&t.exports==b&&t,g="object"==typeof e&&e;(g.global===g||g.window===g)&&(a=g);var S,N=2147483647,I=36,v=1,k=26,C=38,T=700,D=72,R=128,A="-",q=/^xn--/,x=/[^ -~]/,P=/\x2E|\u3002|\uFF0E|\uFF61/g,E={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=I-v,L=Math.floor,M=String.fromCharCode,B;if(S={version:"1.2.4",ucs2:{decode:s,encode:u},decode:l,encode:d,toASCII:h,toUnicode:y},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return S});else if(b&&!b.nodeType)if(f)f.exports=S;else for(B in S)S.hasOwnProperty(B)&&(b[B]=S[B]);else a.punycode=S}(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],75:[function(e,t,r){"use strict";function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,n){t=t||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var s=/\+/g;e=e.split(t);var u=1e3;n&&"number"==typeof n.maxKeys&&(u=n.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var p=0;c>p;++p){var m=e[p].replace(s,"%20"),l=m.indexOf(r),d,y,h,b;l>=0?(d=m.substr(0,l),y=m.substr(l+1)):(d=m,y=""),h=decodeURIComponent(d),b=decodeURIComponent(y),a(i,h)?o(i[h])?i[h].push(b):i[h]=[i[h],b]:i[h]=b}return i};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],76:[function(e,t,r){"use strict";function a(e,t){if(e.map)return e.map(t);for(var r=[],a=0;a<e.length;a++)r.push(t(e[a],a));return r}var o=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,s){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?a(i(e),function(a){var i=encodeURIComponent(o(a))+r;return n(e[a])?e[a].map(function(e){return i+encodeURIComponent(o(e))}).join(t):i+encodeURIComponent(o(e[a]))}).join(t):s?encodeURIComponent(o(s))+r+encodeURIComponent(o(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],77:[function(e,t,r){"use strict";r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":75,"./encode":76}],78:[function(e,t,r){function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function o(e,t,r){if(e&&c(e)&&e instanceof a)return e;var o=new a;return o.parse(e,t,r),o}function n(e){return u(e)&&(e=o(e)),e instanceof a?e.format():a.prototype.format.call(e)}function i(e,t){return o(e,!1,!0).resolve(t)}function s(e,t){return e?o(e,!1,!0).resolveObject(t):t}function u(e){return"string"==typeof e}function c(e){return"object"==typeof e&&null!==e}function p(e){return null===e}function m(e){return null==e}var l=e("punycode");r.parse=o,r.resolve=i,r.resolveObject=s,r.format=n,r.Url=a;var d=/^([a-z0-9.+-]+:)/i,y=/:[0-9]*$/,h=["<",">",'"',"`"," ","\r","\n"," "],b=["{","}","|","\\","^","`"].concat(h),f=["'"].concat(b),g=["%","/","?",";","#"].concat(f),S=["/","?","#"],N=255,I=/^[a-z0-9A-Z_-]{0,63}$/,v=/^([a-z0-9A-Z_-]{0,63})(.*)$/,k={javascript:!0,"javascript:":!0},C={javascript:!0,"javascript:":!0},T={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},D=e("querystring");a.prototype.parse=function(e,t,r){if(!u(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e;a=a.trim();var o=d.exec(a);if(o){o=o[0];var n=o.toLowerCase();this.protocol=n,a=a.substr(o.length)}if(r||o||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var i="//"===a.substr(0,2);!i||o&&C[o]||(a=a.substr(2),this.slashes=!0)}if(!C[o]&&(i||o&&!T[o])){for(var s=-1,c=0;c<S.length;c++){var p=a.indexOf(S[c]);-1!==p&&(-1===s||s>p)&&(s=p)}var m,y;y=-1===s?a.lastIndexOf("@"):a.lastIndexOf("@",s),-1!==y&&(m=a.slice(0,y),a=a.slice(y+1),this.auth=decodeURIComponent(m)),s=-1;for(var c=0;c<g.length;c++){var p=a.indexOf(g[c]);-1!==p&&(-1===s||s>p)&&(s=p)}-1===s&&(s=a.length),this.host=a.slice(0,s),a=a.slice(s),this.parseHost(),this.hostname=this.hostname||"";var h="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!h)for(var b=this.hostname.split(/\./),c=0,R=b.length;R>c;c++){var A=b[c];if(A&&!A.match(I)){for(var q="",x=0,P=A.length;P>x;x++)q+=A.charCodeAt(x)>127?"x":A[x];if(!q.match(I)){var E=b.slice(0,c),w=b.slice(c+1),L=A.match(v);L&&(E.push(L[1]),w.unshift(L[2])),w.length&&(a="/"+w.join(".")+a),this.hostname=E.join(".");break}}}if(this.hostname.length>N?this.hostname="":this.hostname=this.hostname.toLowerCase(),!h){for(var M=this.hostname.split("."),B=[],c=0;c<M.length;++c){var U=M[c];B.push(U.match(/[^A-Za-z0-9_-]/)?"xn--"+l.encode(U):U)}this.hostname=B.join(".")}var _=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+_,this.href+=this.host,h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!k[n])for(var c=0,R=f.length;R>c;c++){var F=f[c],O=encodeURIComponent(F);O===F&&(O=escape(F)),a=a.split(F).join(O)}var G=a.indexOf("#");-1!==G&&(this.hash=a.substr(G),a=a.slice(0,G));var z=a.indexOf("?");if(-1!==z?(this.search=a.substr(z),this.query=a.substr(z+1),t&&(this.query=D.parse(this.query)),a=a.slice(0,z)):t&&(this.search="",this.query={}),a&&(this.pathname=a),T[n]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var _=this.pathname||"",U=this.search||"";this.path=_+U}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",a=this.hash||"",o=!1,n="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&c(this.query)&&Object.keys(this.query).length&&(n=D.stringify(this.query));var i=this.search||n&&"?"+n||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||T[t])&&o!==!1?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),a&&"#"!==a.charAt(0)&&(a="#"+a),i&&"?"!==i.charAt(0)&&(i="?"+i),r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),i=i.replace("#","%23"),t+o+r+i+a},a.prototype.resolve=function(e){return this.resolveObject(o(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(u(e)){var t=new a;t.parse(e,!1,!0),e=t}var r=new a;if(Object.keys(this).forEach(function(e){r[e]=this[e]},this),r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol)return Object.keys(e).forEach(function(t){"protocol"!==t&&(r[t]=e[t])}),T[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r;if(e.protocol&&e.protocol!==r.protocol){if(!T[e.protocol])return Object.keys(e).forEach(function(t){r[t]=e[t]}),r.href=r.format(),r;if(r.protocol=e.protocol,e.host||C[e.protocol])r.pathname=e.pathname;else{for(var o=(e.pathname||"").split("/");o.length&&!(e.host=o.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==o[0]&&o.unshift(""),o.length<2&&o.unshift(""),r.pathname=o.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var n=r.pathname||"",i=r.search||"";r.path=n+i}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var s=r.pathname&&"/"===r.pathname.charAt(0),c=e.host||e.pathname&&"/"===e.pathname.charAt(0),l=c||s||r.host&&e.pathname,d=l,y=r.pathname&&r.pathname.split("/")||[],o=e.pathname&&e.pathname.split("/")||[],h=r.protocol&&!T[r.protocol];if(h&&(r.hostname="",r.port=null,r.host&&(""===y[0]?y[0]=r.host:y.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===o[0]?o[0]=e.host:o.unshift(e.host)),e.host=null),l=l&&(""===o[0]||""===y[0])),c)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,y=o;else if(o.length)y||(y=[]),y.pop(),y=y.concat(o),r.search=e.search,r.query=e.query;else if(!m(e.search)){if(h){r.hostname=r.host=y.shift();var b=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;b&&(r.auth=b.shift(),r.host=r.hostname=b.shift())}return r.search=e.search,r.query=e.query,p(r.pathname)&&p(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!y.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var f=y.slice(-1)[0],g=(r.host||e.host)&&("."===f||".."===f)||""===f,S=0,N=y.length;N>=0;N--)f=y[N],"."==f?y.splice(N,1):".."===f?(y.splice(N,1),S++):S&&(y.splice(N,1),S--);if(!l&&!d)for(;S--;S)y.unshift("..");!l||""===y[0]||y[0]&&"/"===y[0].charAt(0)||y.unshift(""),g&&"/"!==y.join("/").substr(-1)&&y.push("");var I=""===y[0]||y[0]&&"/"===y[0].charAt(0);if(h){r.hostname=r.host=I?"":y.length?y.shift():"";var b=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;b&&(r.auth=b.shift(),r.host=r.hostname=b.shift())}return l=l||r.host&&y.length,l&&!I&&y.unshift(""),y.length?r.pathname=y.join("/"):(r.pathname=null,r.path=null),p(r.pathname)&&p(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},a.prototype.parseHost=function(){var e=this.host,t=y.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{punycode:74,querystring:77}],79:[function(e,t,r){t.exports=function a(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],80:[function(e,t,r){(function(t,a){function o(e,t){var a={seen:[],stylize:i};return arguments.length>=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),h(t)?a.showHidden=t:t&&r._extend(a,t),I(a.showHidden)&&(a.showHidden=!1),I(a.depth)&&(a.depth=2),I(a.colors)&&(a.colors=!1),I(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=n),u(a,e,a.depth)}function n(e,t){var r=o.styles[t];return r?"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m":e}function i(e,t){return e}function s(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function u(e,t,a){if(e.customInspect&&t&&D(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var o=t.inspect(a,e);return S(o)||(o=u(e,o,a)),o}var n=c(e,t);if(n)return n;var i=Object.keys(t),h=s(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),T(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return p(t);if(0===i.length){if(D(t)){var b=t.name?": "+t.name:"";return e.stylize("[Function"+b+"]","special")}if(v(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(C(t))return e.stylize(Date.prototype.toString.call(t),"date");if(T(t))return p(t)}var f="",g=!1,N=["{","}"];if(y(t)&&(g=!0,N=["[","]"]),D(t)){var I=t.name?": "+t.name:"";f=" [Function"+I+"]"}if(v(t)&&(f=" "+RegExp.prototype.toString.call(t)),C(t)&&(f=" "+Date.prototype.toUTCString.call(t)),T(t)&&(f=" "+p(t)),0===i.length&&(!g||0==t.length))return N[0]+f+N[1];if(0>a)return v(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var k;return k=g?m(e,t,a,h,i):i.map(function(r){return l(e,t,a,h,r,g)}),e.seen.pop(),d(k,f,N)}function c(e,t){if(I(t))return e.stylize("undefined","undefined");if(S(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return g(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):b(t)?e.stylize("null","null"):void 0}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,a,o){for(var n=[],i=0,s=t.length;s>i;++i)n.push(P(t,String(i))?l(e,t,r,a,String(i),!0):"");return o.forEach(function(o){o.match(/^\d+$/)||n.push(l(e,t,r,a,o,!0))}),n}function l(e,t,r,a,o,n){var i,s,c;if(c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},c.get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),P(a,o)||(i="["+o+"]"),s||(e.seen.indexOf(c.value)<0?(s=b(r)?u(e,c.value,null):u(e,c.value,r-1),s.indexOf("\n")>-1&&(s=n?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),I(i)){if(n&&o.match(/^\d+$/))return s;i=JSON.stringify(""+o),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+s}function d(e,t,r){var a=0,o=e.reduce(function(e,t){return a++,t.indexOf("\n")>=0&&a++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function y(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function b(e){return null===e}function f(e){return null==e}function g(e){return"number"==typeof e}function S(e){return"string"==typeof e}function N(e){return"symbol"==typeof e}function I(e){return void 0===e}function v(e){return k(e)&&"[object RegExp]"===A(e)}function k(e){return"object"==typeof e&&null!==e}function C(e){return k(e)&&"[object Date]"===A(e)}function T(e){return k(e)&&("[object Error]"===A(e)||e instanceof Error)}function D(e){return"function"==typeof e}function R(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function A(e){return Object.prototype.toString.call(e)}function q(e){return 10>e?"0"+e.toString(10):e.toString(10)}function x(){var e=new Date,t=[q(e.getHours()),q(e.getMinutes()),q(e.getSeconds())].join(":");return[e.getDate(),M[e.getMonth()],t].join(" ")}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var E=/%[sdj%]/g;r.format=function(e){if(!S(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(o(arguments[r]));return t.join(" ")}for(var r=1,a=arguments,n=a.length,i=String(e).replace(E,function(e){if("%"===e)return"%";if(r>=n)return e;switch(e){case"%s":return String(a[r++]);case"%d":return Number(a[r++]);case"%j":try{return JSON.stringify(a[r++])}catch(t){return"[Circular]"}default:return e}}),s=a[r];n>r;s=a[++r])i+=b(s)||!k(s)?" "+s:" "+o(s);return i},r.deprecate=function(e,o){function n(){if(!i){if(t.throwDeprecation)throw new Error(o);t.traceDeprecation?console.trace(o):console.error(o),i=!0}return e.apply(this,arguments)}if(I(a.process))return function(){return r.deprecate(e,o).apply(this,arguments)};if(t.noDeprecation===!0)return e;var i=!1;return n};var w={},L;r.debuglog=function(e){if(I(L)&&(L=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!w[e])if(new RegExp("\\b"+e+"\\b","i").test(L)){var a=t.pid;w[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,a,t)}}else w[e]=function(){};return w[e]},r.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=y,r.isBoolean=h,r.isNull=b,r.isNullOrUndefined=f,r.isNumber=g,r.isString=S,r.isSymbol=N,r.isUndefined=I,r.isRegExp=v,r.isObject=k,r.isDate=C,r.isError=T,r.isFunction=D,r.isPrimitive=R,r.isBuffer=e("./support/isBuffer");var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];r.log=function(){console.log("%s - %s",x(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!k(t))return e;for(var r=Object.keys(t),a=r.length;a--;)e[r[a]]=t[r[a]];return e}}).call(this,e("FWaASH"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":79,FWaASH:73,inherits:72}],81:[function(e,t,r){(function(){var r,a;a=e("lodash/object/create"),t.exports=r=function(){function e(e,t,r){if(this.stringify=e.stringify,null==t)throw new Error("Missing attribute name of element "+e.name);if(null==r)throw new Error("Missing attribute value for attribute "+t+" of element "+e.name);this.name=this.stringify.attName(t),this.value=this.stringify.attValue(r)}return e.prototype.clone=function(){return a(e.prototype,this)},e.prototype.toString=function(e,t){return" "+this.name+'="'+this.value+'"'},e}()}).call(this)},{"lodash/object/create":140}],82:[function(e,t,r){(function(){var r,a,o,n,i;i=e("./XMLStringifier"),a=e("./XMLDeclaration"),o=e("./XMLDocType"),n=e("./XMLElement"),t.exports=r=function(){function e(e,t){var r,a;if(null==e)throw new Error("Root element needs a name");null==t&&(t={}),this.options=t,this.stringify=new i(t),a=new n(this,"doc"),r=a.element(e),r.isRoot=!0,r.documentObject=this,this.rootObject=r,t.headless||(r.declaration(t),(null!=t.pubID||null!=t.sysID)&&r.doctype(t))}return e.prototype.root=function(){return this.rootObject},e.prototype.end=function(e){return this.toString(e)},e.prototype.toString=function(e){var t,r,a,o,n,i,s,u;return o=(null!=e?e.pretty:void 0)||!1,t=null!=(i=null!=e?e.indent:void 0)?i:" ",a=null!=(s=null!=e?e.offset:void 0)?s:0,r=null!=(u=null!=e?e.newline:void 0)?u:"\n",n="",null!=this.xmldec&&(n+=this.xmldec.toString(e)),null!=this.doctype&&(n+=this.doctype.toString(e)),n+=this.rootObject.toString(e),o&&n.slice(-r.length)===r&&(n=n.slice(0,-r.length)),n},e}()}).call(this)},{"./XMLDeclaration":89,"./XMLDocType":90,"./XMLElement":91,"./XMLStringifier":95}],83:[function(e,t,r){(function(){var r,a,o,n=function(e,t){function r(){this.constructor=e}for(var a in t)i.call(t,a)&&(e[a]=t[a]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;o=e("lodash/object/create"),a=e("./XMLNode"),t.exports=r=function(e){function t(e,r){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(r)}return n(t,e),t.prototype.clone=function(){return o(t.prototype,this)},t.prototype.toString=function(e,t){var r,a,o,n,i,s,u,c,p;return n=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",o=null!=(u=null!=e?e.offset:void 0)?u:0,a=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),p=new Array(t+o+1).join(r),i="",n&&(i+=p),i+="<![CDATA["+this.text+"]]>",n&&(i+=a),i},t}(a)}).call(this)},{"./XMLNode":92,"lodash/object/create":140}],84:[function(e,t,r){(function(){var r,a,o,n=function(e,t){function r(){this.constructor=e}for(var a in t)i.call(t,a)&&(e[a]=t[a]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;o=e("lodash/object/create"),a=e("./XMLNode"),t.exports=r=function(e){function t(e,r){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing comment text");this.text=this.stringify.comment(r)}return n(t,e),t.prototype.clone=function(){return o(t.prototype,this)},t.prototype.toString=function(e,t){var r,a,o,n,i,s,u,c,p;return n=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",o=null!=(u=null!=e?e.offset:void 0)?u:0,a=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),p=new Array(t+o+1).join(r),i="",n&&(i+=p),i+="<!-- "+this.text+" -->",n&&(i+=a),i},t}(a)}).call(this)},{"./XMLNode":92,"lodash/object/create":140}],85:[function(e,t,r){(function(){var r,a;a=e("lodash/object/create"),t.exports=r=function(){function e(e,t,r,a,o,n){if(this.stringify=e.stringify,null==t)throw new Error("Missing DTD element name");if(null==r)throw new Error("Missing DTD attribute name");if(!a)throw new Error("Missing DTD attribute type");if(!o)throw new Error("Missing DTD attribute default");if(0!==o.indexOf("#")&&(o="#"+o),!o.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(n&&!o.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(t),this.attributeName=this.stringify.attName(r),this.attributeType=this.stringify.dtdAttType(a),this.defaultValue=this.stringify.dtdAttDefault(n),this.defaultValueType=o}return e.prototype.clone=function(){return a(e.prototype,this)},e.prototype.toString=function(e,t){var r,a,o,n,i,s,u,c,p;return n=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",o=null!=(u=null!=e?e.offset:void 0)?u:0,a=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),p=new Array(t+o+1).join(r),i="",n&&(i+=p),i+="<!ATTLIST "+this.elementName+" "+this.attributeName+" "+this.attributeType,"#DEFAULT"!==this.defaultValueType&&(i+=" "+this.defaultValueType),this.defaultValue&&(i+=' "'+this.defaultValue+'"'),i+=">",n&&(i+=a),i},e}()}).call(this)},{"lodash/object/create":140}],86:[function(e,t,r){(function(){var r,a,o;a=e("lodash/object/create"),o=e("lodash/lang/isArray"),t.exports=r=function(){function e(e,t,r){if(this.stringify=e.stringify,null==t)throw new Error("Missing DTD element name");r||(r="(#PCDATA)"),o(r)&&(r="("+r.join(",")+")"),this.name=this.stringify.eleName(t),this.value=this.stringify.dtdElementValue(r)}return e.prototype.clone=function(){return a(e.prototype,this)},e.prototype.toString=function(e,t){var r,a,o,n,i,s,u,c,p;return n=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",o=null!=(u=null!=e?e.offset:void 0)?u:0,a=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),p=new Array(t+o+1).join(r),i="",n&&(i+=p),i+="<!ELEMENT "+this.name+" "+this.value+">",n&&(i+=a),i},e}()}).call(this)},{"lodash/lang/isArray":132,"lodash/object/create":140}],87:[function(e,t,r){(function(){var r,a,o;a=e("lodash/object/create"),o=e("lodash/lang/isObject"),t.exports=r=function(){function e(e,t,r,a){if(this.stringify=e.stringify,null==r)throw new Error("Missing entity name");if(null==a)throw new Error("Missing entity value");if(this.pe=!!t,this.name=this.stringify.eleName(r),o(a)){if(!a.pubID&&!a.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(a.pubID&&!a.sysID)throw new Error("System identifier is required for a public external entity");if(null!=a.pubID&&(this.pubID=this.stringify.dtdPubID(a.pubID)),null!=a.sysID&&(this.sysID=this.stringify.dtdSysID(a.sysID)),null!=a.nData&&(this.nData=this.stringify.dtdNData(a.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(a)}return e.prototype.clone=function(){return a(e.prototype,this)},e.prototype.toString=function(e,t){var r,a,o,n,i,s,u,c,p;return n=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",o=null!=(u=null!=e?e.offset:void 0)?u:0,a=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),p=new Array(t+o+1).join(r),i="",n&&(i+=p),i+="<!ENTITY",this.pe&&(i+=" %"),i+=" "+this.name,this.value?i+=' "'+this.value+'"':(this.pubID&&this.sysID?i+=' PUBLIC "'+this.pubID+'" "'+this.sysID+'"':this.sysID&&(i+=' SYSTEM "'+this.sysID+'"'),this.nData&&(i+=" NDATA "+this.nData)),i+=">",n&&(i+=a),i},e}()}).call(this)},{"lodash/lang/isObject":136,"lodash/object/create":140}],88:[function(e,t,r){(function(){var r,a;a=e("lodash/object/create"),t.exports=r=function(){function e(e,t,r){if(this.stringify=e.stringify,null==t)throw new Error("Missing notation name");if(!r.pubID&&!r.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(t),null!=r.pubID&&(this.pubID=this.stringify.dtdPubID(r.pubID)),null!=r.sysID&&(this.sysID=this.stringify.dtdSysID(r.sysID))}return e.prototype.clone=function(){return a(e.prototype,this)},e.prototype.toString=function(e,t){var r,a,o,n,i,s,u,c,p;return n=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",o=null!=(u=null!=e?e.offset:void 0)?u:0,a=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),p=new Array(t+o+1).join(r),i="",n&&(i+=p),i+="<!NOTATION "+this.name,this.pubID&&this.sysID?i+=' PUBLIC "'+this.pubID+'" "'+this.sysID+'"':this.pubID?i+=' PUBLIC "'+this.pubID+'"':this.sysID&&(i+=' SYSTEM "'+this.sysID+'"'),i+=">",n&&(i+=a),i},e}()}).call(this)},{"lodash/object/create":140}],89:[function(e,t,r){(function(){var r,a,o,n,i=function(e,t){function r(){this.constructor=e}for(var a in t)s.call(t,a)&&(e[a]=t[a]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},s={}.hasOwnProperty;o=e("lodash/object/create"),n=e("lodash/lang/isObject"),a=e("./XMLNode"),t.exports=r=function(e){function t(e,r,a,o){var i;t.__super__.constructor.call(this,e),n(r)&&(i=r,r=i.version,a=i.encoding,o=i.standalone),r||(r="1.0"),null!=r&&(this.version=this.stringify.xmlVersion(r)),null!=a&&(this.encoding=this.stringify.xmlEncoding(a)),null!=o&&(this.standalone=this.stringify.xmlStandalone(o))}return i(t,e),t.prototype.clone=function(){return o(t.prototype,this)},t.prototype.toString=function(e,t){var r,a,o,n,i,s,u,c,p;return n=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",o=null!=(u=null!=e?e.offset:void 0)?u:0,a=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),p=new Array(t+o+1).join(r),i="",n&&(i+=p),i+="<?xml",null!=this.version&&(i+=' version="'+this.version+'"'),null!=this.encoding&&(i+=' encoding="'+this.encoding+'"'),null!=this.standalone&&(i+=' standalone="'+this.standalone+'"'),
|
||
i+="?>",n&&(i+=a),i},t}(a)}).call(this)},{"./XMLNode":92,"lodash/lang/isObject":136,"lodash/object/create":140}],90:[function(e,t,r){(function(){var r,a,o,n,i,s,u,c,p,m;p=e("lodash/object/create"),m=e("lodash/lang/isObject"),r=e("./XMLCData"),a=e("./XMLComment"),o=e("./XMLDTDAttList"),i=e("./XMLDTDEntity"),n=e("./XMLDTDElement"),s=e("./XMLDTDNotation"),c=e("./XMLProcessingInstruction"),t.exports=u=function(){function e(e,t,r){var a,o;this.documentObject=e,this.stringify=this.documentObject.stringify,this.children=[],m(t)&&(a=t,t=a.pubID,r=a.sysID),null==r&&(o=[t,r],r=o[0],t=o[1]),null!=t&&(this.pubID=this.stringify.dtdPubID(t)),null!=r&&(this.sysID=this.stringify.dtdSysID(r))}return e.prototype.clone=function(){return p(e.prototype,this)},e.prototype.element=function(e,t){var r;return r=new n(this,e,t),this.children.push(r),this},e.prototype.attList=function(e,t,r,a,n){var i;return i=new o(this,e,t,r,a,n),this.children.push(i),this},e.prototype.entity=function(e,t){var r;return r=new i(this,!1,e,t),this.children.push(r),this},e.prototype.pEntity=function(e,t){var r;return r=new i(this,!0,e,t),this.children.push(r),this},e.prototype.notation=function(e,t){var r;return r=new s(this,e,t),this.children.push(r),this},e.prototype.cdata=function(e){var t;return t=new r(this,e),this.children.push(t),this},e.prototype.comment=function(e){var t;return t=new a(this,e),this.children.push(t),this},e.prototype.instruction=function(e,t){var r;return r=new c(this,e,t),this.children.push(r),this},e.prototype.root=function(){return this.documentObject.root()},e.prototype.document=function(){return this.documentObject},e.prototype.toString=function(e,t){var r,a,o,n,i,s,u,c,p,m,l,d,y;if(u=(null!=e?e.pretty:void 0)||!1,o=null!=(p=null!=e?e.indent:void 0)?p:" ",s=null!=(m=null!=e?e.offset:void 0)?m:0,i=null!=(l=null!=e?e.newline:void 0)?l:"\n",t||(t=0),y=new Array(t+s+1).join(o),c="",u&&(c+=y),c+="<!DOCTYPE "+this.root().name,this.pubID&&this.sysID?c+=' PUBLIC "'+this.pubID+'" "'+this.sysID+'"':this.sysID&&(c+=' SYSTEM "'+this.sysID+'"'),this.children.length>0){for(c+=" [",u&&(c+=i),d=this.children,a=0,n=d.length;n>a;a++)r=d[a],c+=r.toString(e,t+1);c+="]"}return c+=">",u&&(c+=i),c},e.prototype.ele=function(e,t){return this.element(e,t)},e.prototype.att=function(e,t,r,a,o){return this.attList(e,t,r,a,o)},e.prototype.ent=function(e,t){return this.entity(e,t)},e.prototype.pent=function(e,t){return this.pEntity(e,t)},e.prototype.not=function(e,t){return this.notation(e,t)},e.prototype.dat=function(e){return this.cdata(e)},e.prototype.com=function(e){return this.comment(e)},e.prototype.ins=function(e,t){return this.instruction(e,t)},e.prototype.up=function(){return this.root()},e.prototype.doc=function(){return this.document()},e}()}).call(this)},{"./XMLCData":83,"./XMLComment":84,"./XMLDTDAttList":85,"./XMLDTDElement":86,"./XMLDTDEntity":87,"./XMLDTDNotation":88,"./XMLProcessingInstruction":93,"lodash/lang/isObject":136,"lodash/object/create":140}],91:[function(e,t,r){(function(){var r,a,o,n,i,s,u,c,p,m=function(e,t){function r(){this.constructor=e}for(var a in t)l.call(t,a)&&(e[a]=t[a]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},l={}.hasOwnProperty;i=e("lodash/object/create"),p=e("lodash/lang/isObject"),u=e("lodash/lang/isArray"),c=e("lodash/lang/isFunction"),s=e("lodash/collection/every"),o=e("./XMLNode"),r=e("./XMLAttribute"),n=e("./XMLProcessingInstruction"),t.exports=a=function(e){function t(e,r,a){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing element name");this.name=this.stringify.eleName(r),this.children=[],this.instructions=[],this.attributes={},null!=a&&this.attribute(a)}return m(t,e),t.prototype.clone=function(){var e,r,a,o,n,s,u,c;a=i(t.prototype,this),a.isRoot&&(a.documentObject=null),a.attributes={},u=this.attributes;for(r in u)l.call(u,r)&&(e=u[r],a.attributes[r]=e.clone());for(a.instructions=[],c=this.instructions,o=0,n=c.length;n>o;o++)s=c[o],a.instructions.push(s.clone());return a.children=[],this.children.forEach(function(e){var t;return t=e.clone(),t.parent=a,a.children.push(t)}),a},t.prototype.attribute=function(e,t){var a,o;if(null!=e&&(e=e.valueOf()),p(e))for(a in e)l.call(e,a)&&(o=e[a],this.attribute(a,o));else c(t)&&(t=t.apply()),this.options.skipNullAttributes&&null==t||(this.attributes[e]=new r(this,e,t));return this},t.prototype.removeAttribute=function(e){var t,r,a;if(null==e)throw new Error("Missing attribute name");if(e=e.valueOf(),u(e))for(r=0,a=e.length;a>r;r++)t=e[r],delete this.attributes[t];else delete this.attributes[e];return this},t.prototype.instruction=function(e,t){var r,a,o,i,s;if(null!=e&&(e=e.valueOf()),null!=t&&(t=t.valueOf()),u(e))for(r=0,s=e.length;s>r;r++)a=e[r],this.instruction(a);else if(p(e))for(a in e)l.call(e,a)&&(o=e[a],this.instruction(a,o));else c(t)&&(t=t.apply()),i=new n(this,e,t),this.instructions.push(i);return this},t.prototype.toString=function(e,t){var r,a,o,n,i,u,c,p,m,d,y,h,b,f,g,S,N,I,v,k;for(h=(null!=e?e.pretty:void 0)||!1,n=null!=(f=null!=e?e.indent:void 0)?f:" ",y=null!=(g=null!=e?e.offset:void 0)?g:0,d=null!=(S=null!=e?e.newline:void 0)?S:"\n",t||(t=0),k=new Array(t+y+1).join(n),b="",N=this.instructions,o=0,c=N.length;c>o;o++)i=N[o],b+=i.toString(e,t+1);h&&(b+=k),b+="<"+this.name,I=this.attributes;for(m in I)l.call(I,m)&&(r=I[m],b+=r.toString(e));if(0===this.children.length||s(this.children,function(e){return""===e.value}))b+="/>",h&&(b+=d);else if(h&&1===this.children.length&&null!=this.children[0].value)b+=">",b+=this.children[0].value,b+="</"+this.name+">",b+=d;else{for(b+=">",h&&(b+=d),v=this.children,u=0,p=v.length;p>u;u++)a=v[u],b+=a.toString(e,t+1);h&&(b+=k),b+="</"+this.name+">",h&&(b+=d)}return b},t.prototype.att=function(e,t){return this.attribute(e,t)},t.prototype.ins=function(e,t){return this.instruction(e,t)},t.prototype.a=function(e,t){return this.attribute(e,t)},t.prototype.i=function(e,t){return this.instruction(e,t)},t}(o)}).call(this)},{"./XMLAttribute":81,"./XMLNode":92,"./XMLProcessingInstruction":93,"lodash/collection/every":98,"lodash/lang/isArray":132,"lodash/lang/isFunction":134,"lodash/lang/isObject":136,"lodash/object/create":140}],92:[function(e,t,r){(function(){var r,a,o,n,i,s,u,c,p,m,l,d,y={}.hasOwnProperty;d=e("lodash/lang/isObject"),p=e("lodash/lang/isArray"),l=e("lodash/lang/isFunction"),m=e("lodash/lang/isEmpty"),i=null,r=null,a=null,o=null,n=null,u=null,c=null,t.exports=s=function(){function t(t){this.parent=t,this.options=this.parent.options,this.stringify=this.parent.stringify,null===i&&(i=e("./XMLElement"),r=e("./XMLCData"),a=e("./XMLComment"),o=e("./XMLDeclaration"),n=e("./XMLDocType"),u=e("./XMLRaw"),c=e("./XMLText"))}return t.prototype.clone=function(){throw new Error("Cannot clone generic XMLNode")},t.prototype.element=function(e,t,r){var a,o,n,i,s,u,c;if(i=null,null==t&&(t={}),t=t.valueOf(),d(t)||(u=[t,r],r=u[0],t=u[1]),null!=e&&(e=e.valueOf()),p(e))for(o=0,s=e.length;s>o;o++)a=e[o],i=this.element(a);else if(l(e))i=this.element(e.apply());else if(d(e))for(n in e)y.call(e,n)&&(c=e[n],l(c)&&(c=c.apply()),d(c)&&m(c)&&(c=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===n.indexOf(this.stringify.convertAttKey)?i=this.attribute(n.substr(this.stringify.convertAttKey.length),c):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===n.indexOf(this.stringify.convertPIKey)?i=this.instruction(n.substr(this.stringify.convertPIKey.length),c):d(c)?!this.options.ignoreDecorators&&this.stringify.convertListKey&&0===n.indexOf(this.stringify.convertListKey)&&p(c)?i=this.element(c):(i=this.element(n),i.element(c)):i=this.element(n,c));else i=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===e.indexOf(this.stringify.convertTextKey)?this.text(r):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===e.indexOf(this.stringify.convertCDataKey)?this.cdata(r):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===e.indexOf(this.stringify.convertCommentKey)?this.comment(r):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===e.indexOf(this.stringify.convertRawKey)?this.raw(r):this.node(e,t,r);if(null==i)throw new Error("Could not create any elements with: "+e);return i},t.prototype.insertBefore=function(e,t,r){var a,o,n;if(this.isRoot)throw new Error("Cannot insert elements at root level");return o=this.parent.children.indexOf(this),n=this.parent.children.splice(o),a=this.parent.element(e,t,r),Array.prototype.push.apply(this.parent.children,n),a},t.prototype.insertAfter=function(e,t,r){var a,o,n;if(this.isRoot)throw new Error("Cannot insert elements at root level");return o=this.parent.children.indexOf(this),n=this.parent.children.splice(o+1),a=this.parent.element(e,t,r),Array.prototype.push.apply(this.parent.children,n),a},t.prototype.remove=function(){var e,t;if(this.isRoot)throw new Error("Cannot remove the root element");return e=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[e,e-e+1].concat(t=[])),t,this.parent},t.prototype.node=function(e,t,r){var a,o;return null!=e&&(e=e.valueOf()),null==t&&(t={}),t=t.valueOf(),d(t)||(o=[t,r],r=o[0],t=o[1]),a=new i(this,e,t),null!=r&&a.text(r),this.children.push(a),a},t.prototype.text=function(e){var t;return t=new c(this,e),this.children.push(t),this},t.prototype.cdata=function(e){var t;return t=new r(this,e),this.children.push(t),this},t.prototype.comment=function(e){var t;return t=new a(this,e),this.children.push(t),this},t.prototype.raw=function(e){var t;return t=new u(this,e),this.children.push(t),this},t.prototype.declaration=function(e,t,r){var a,n;return a=this.document(),n=new o(a,e,t,r),a.xmldec=n,a.root()},t.prototype.doctype=function(e,t){var r,a;return r=this.document(),a=new n(r,e,t),r.doctype=a,a},t.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},t.prototype.root=function(){var e;if(this.isRoot)return this;for(e=this.parent;!e.isRoot;)e=e.parent;return e},t.prototype.document=function(){return this.root().documentObject},t.prototype.end=function(e){return this.document().toString(e)},t.prototype.prev=function(){var e;if(this.isRoot)throw new Error("Root node has no siblings");if(e=this.parent.children.indexOf(this),1>e)throw new Error("Already at the first node");return this.parent.children[e-1]},t.prototype.next=function(){var e;if(this.isRoot)throw new Error("Root node has no siblings");if(e=this.parent.children.indexOf(this),-1===e||e===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[e+1]},t.prototype.importXMLBuilder=function(e){var t;return t=e.root().clone(),t.parent=this,t.isRoot=!1,this.children.push(t),this},t.prototype.ele=function(e,t,r){return this.element(e,t,r)},t.prototype.nod=function(e,t,r){return this.node(e,t,r)},t.prototype.txt=function(e){return this.text(e)},t.prototype.dat=function(e){return this.cdata(e)},t.prototype.com=function(e){return this.comment(e)},t.prototype.doc=function(){return this.document()},t.prototype.dec=function(e,t,r){return this.declaration(e,t,r)},t.prototype.dtd=function(e,t){return this.doctype(e,t)},t.prototype.e=function(e,t,r){return this.element(e,t,r)},t.prototype.n=function(e,t,r){return this.node(e,t,r)},t.prototype.t=function(e){return this.text(e)},t.prototype.d=function(e){return this.cdata(e)},t.prototype.c=function(e){return this.comment(e)},t.prototype.r=function(e){return this.raw(e)},t.prototype.u=function(){return this.up()},t}()}).call(this)},{"./XMLCData":83,"./XMLComment":84,"./XMLDeclaration":89,"./XMLDocType":90,"./XMLElement":91,"./XMLRaw":94,"./XMLText":96,"lodash/lang/isArray":132,"lodash/lang/isEmpty":133,"lodash/lang/isFunction":134,"lodash/lang/isObject":136}],93:[function(e,t,r){(function(){var r,a;a=e("lodash/object/create"),t.exports=r=function(){function e(e,t,r){if(this.stringify=e.stringify,null==t)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(t),r&&(this.value=this.stringify.insValue(r))}return e.prototype.clone=function(){return a(e.prototype,this)},e.prototype.toString=function(e,t){var r,a,o,n,i,s,u,c,p;return n=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",o=null!=(u=null!=e?e.offset:void 0)?u:0,a=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),p=new Array(t+o+1).join(r),i="",n&&(i+=p),i+="<?",i+=this.target,this.value&&(i+=" "+this.value),i+="?>",n&&(i+=a),i},e}()}).call(this)},{"lodash/object/create":140}],94:[function(e,t,r){(function(){var r,a,o,n=function(e,t){function r(){this.constructor=e}for(var a in t)i.call(t,a)&&(e[a]=t[a]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;o=e("lodash/object/create"),r=e("./XMLNode"),t.exports=a=function(e){function t(e,r){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing raw text");this.value=this.stringify.raw(r)}return n(t,e),t.prototype.clone=function(){return o(t.prototype,this)},t.prototype.toString=function(e,t){var r,a,o,n,i,s,u,c,p;return n=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",o=null!=(u=null!=e?e.offset:void 0)?u:0,a=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),p=new Array(t+o+1).join(r),i="",n&&(i+=p),i+=this.value,n&&(i+=a),i},t}(r)}).call(this)},{"./XMLNode":92,"lodash/object/create":140}],95:[function(e,t,r){(function(){var e,r=function(e,t){return function(){return e.apply(t,arguments)}},a={}.hasOwnProperty;t.exports=e=function(){function e(e){this.assertLegalChar=r(this.assertLegalChar,this);var t,o,n;this.allowSurrogateChars=null!=e?e.allowSurrogateChars:void 0,o=(null!=e?e.stringify:void 0)||{};for(t in o)a.call(o,t)&&(n=o[t],this[t]=n)}return e.prototype.eleName=function(e){return e=""+e||"",this.assertLegalChar(e)},e.prototype.eleText=function(e){return e=""+e||"",this.assertLegalChar(this.elEscape(e))},e.prototype.cdata=function(e){if(e=""+e||"",e.match(/]]>/))throw new Error("Invalid CDATA text: "+e);return this.assertLegalChar(e)},e.prototype.comment=function(e){if(e=""+e||"",e.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+e);return this.assertLegalChar(e)},e.prototype.raw=function(e){return""+e||""},e.prototype.attName=function(e){return""+e||""},e.prototype.attValue=function(e){return e=""+e||"",this.attEscape(e)},e.prototype.insTarget=function(e){return""+e||""},e.prototype.insValue=function(e){if(e=""+e||"",e.match(/\?>/))throw new Error("Invalid processing instruction value: "+e);return e},e.prototype.xmlVersion=function(e){if(e=""+e||"",!e.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+e);return e},e.prototype.xmlEncoding=function(e){if(e=""+e||"",!e.match(/[A-Za-z](?:[A-Za-z0-9._-]|-)*/))throw new Error("Invalid encoding: "+e);return e},e.prototype.xmlStandalone=function(e){return e?"yes":"no"},e.prototype.dtdPubID=function(e){return""+e||""},e.prototype.dtdSysID=function(e){return""+e||""},e.prototype.dtdElementValue=function(e){return""+e||""},e.prototype.dtdAttType=function(e){return""+e||""},e.prototype.dtdAttDefault=function(e){return null!=e?""+e||"":e},e.prototype.dtdEntityValue=function(e){return""+e||""},e.prototype.dtdNData=function(e){return""+e||""},e.prototype.convertAttKey="@",e.prototype.convertPIKey="?",e.prototype.convertTextKey="#text",e.prototype.convertCDataKey="#cdata",e.prototype.convertCommentKey="#comment",e.prototype.convertRawKey="#raw",e.prototype.convertListKey="#list",e.prototype.assertLegalChar=function(e){var t,r;if(t=this.allowSurrogateChars?/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uFFFE-\uFFFF]/:/[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE-\uFFFF]/,r=e.match(t))throw new Error("Invalid character ("+r+") in string: "+e+" at index "+r.index);return e},e.prototype.elEscape=function(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},e.prototype.attEscape=function(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},e}()}).call(this)},{}],96:[function(e,t,r){(function(){var r,a,o,n=function(e,t){function r(){this.constructor=e}for(var a in t)i.call(t,a)&&(e[a]=t[a]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i={}.hasOwnProperty;o=e("lodash/object/create"),r=e("./XMLNode"),t.exports=a=function(e){function t(e,r){if(t.__super__.constructor.call(this,e),null==r)throw new Error("Missing element text");this.value=this.stringify.eleText(r)}return n(t,e),t.prototype.clone=function(){return o(t.prototype,this)},t.prototype.toString=function(e,t){var r,a,o,n,i,s,u,c,p;return n=(null!=e?e.pretty:void 0)||!1,r=null!=(s=null!=e?e.indent:void 0)?s:" ",o=null!=(u=null!=e?e.offset:void 0)?u:0,a=null!=(c=null!=e?e.newline:void 0)?c:"\n",t||(t=0),p=new Array(t+o+1).join(r),i="",n&&(i+=p),i+=this.value,n&&(i+=a),i},t}(r)}).call(this)},{"./XMLNode":92,"lodash/object/create":140}],97:[function(e,t,r){(function(){var r,a;a=e("lodash/object/assign"),r=e("./XMLBuilder"),t.exports.create=function(e,t,o,n){return n=a({},t,o,n),new r(e,n).root()}}).call(this)},{"./XMLBuilder":82,"lodash/object/assign":139}],98:[function(e,t,r){function a(e,t,r){var a=s(e)?o:i;return("function"!=typeof t||"undefined"!=typeof r)&&(t=n(t,r,3)),a(e,t)}var o=e("../internal/arrayEvery"),n=e("../internal/baseCallback"),i=e("../internal/baseEvery"),s=e("../lang/isArray");t.exports=a},{"../internal/arrayEvery":99,"../internal/baseCallback":101,"../internal/baseEvery":105,"../lang/isArray":132}],99:[function(e,t,r){function a(e,t){for(var r=-1,a=e.length;++r<a;)if(!t(e[r],r,e))return!1;return!0}t.exports=a},{}],100:[function(e,t,r){function a(e,t,r){var a=n(t);if(!r)return o(t,e,a);for(var i=-1,s=a.length;++i<s;){var u=a[i],c=e[u],p=r(c,t[u],u,e,t);(p===p?p===c:c!==c)&&("undefined"!=typeof c||u in e)||(e[u]=p)}return e}var o=e("./baseCopy"),n=e("../object/keys");t.exports=a},{"../object/keys":141,"./baseCopy":102}],101:[function(e,t,r){function a(e,t,r){var a=typeof e;return"function"==a?"undefined"!=typeof t&&c(e)?s(e,t,r):e:null==e?u:"object"==a?o(e):"undefined"==typeof t?i(e+""):n(e+"",t)}var o=e("./baseMatches"),n=e("./baseMatchesProperty"),i=e("./baseProperty"),s=e("./bindCallback"),u=e("../utility/identity"),c=e("./isBindable");t.exports=a},{"../utility/identity":145,"./baseMatches":112,"./baseMatchesProperty":113,"./baseProperty":114,"./bindCallback":117,"./isBindable":122}],102:[function(e,t,r){function a(e,t,r){r||(r=t,t={});for(var a=-1,o=r.length;++a<o;){var n=r[a];t[n]=e[n]}return t}t.exports=a},{}],103:[function(e,t,r){(function(r){var a=e("../lang/isObject"),o=function(){function e(){}return function(t){if(a(t)){e.prototype=t;var o=new e;e.prototype=null}return o||r.Object()}}();t.exports=o}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../lang/isObject":136}],104:[function(e,t,r){function a(e,t){var r=e?e.length:0;if(!n(r))return o(e,t);for(var a=-1,s=i(e);++a<r&&t(s[a],a,s)!==!1;);return e}var o=e("./baseForOwn"),n=e("./isLength"),i=e("./toObject");t.exports=a},{"./baseForOwn":107,"./isLength":125,"./toObject":130}],105:[function(e,t,r){function a(e,t){var r=!0;return o(e,function(e,a,o){return r=!!t(e,a,o)}),r}var o=e("./baseEach");t.exports=a},{"./baseEach":104}],106:[function(e,t,r){function a(e,t,r){for(var a=-1,n=o(e),i=r(e),s=i.length;++a<s;){var u=i[a];if(t(n[u],u,n)===!1)break}return e}var o=e("./toObject");t.exports=a},{"./toObject":130}],107:[function(e,t,r){function a(e,t){return o(e,t,n)}var o=e("./baseFor"),n=e("../object/keys");t.exports=a},{"../object/keys":141,"./baseFor":106}],108:[function(e,t,r){function a(e,t,r,n,i,s){if(e===t)return 0!==e||1/e==1/t;var u=typeof e,c=typeof t;return"function"!=u&&"object"!=u&&"function"!=c&&"object"!=c||null==e||null==t?e!==e&&t!==t:o(e,t,a,r,n,i,s)}var o=e("./baseIsEqualDeep");t.exports=a},{"./baseIsEqualDeep":109}],109:[function(e,t,r){function a(e,t,r,a,l,h,b){var f=s(e),g=s(t),S=p,N=p;f||(S=y.call(e),S==c?S=m:S!=m&&(f=u(e))),g||(N=y.call(t),N==c?N=m:N!=m&&(g=u(t)));var I=S==m,v=N==m,k=S==N;if(k&&!f&&!I)return n(e,t,S);var C=I&&d.call(e,"__wrapped__"),T=v&&d.call(t,"__wrapped__");if(C||T)return r(C?e.value():e,T?t.value():t,a,l,h,b);if(!k)return!1;h||(h=[]),b||(b=[]);for(var D=h.length;D--;)if(h[D]==e)return b[D]==t;h.push(e),b.push(t);var R=(f?o:i)(e,t,r,a,l,h,b);return h.pop(),b.pop(),R}var o=e("./equalArrays"),n=e("./equalByTag"),i=e("./equalObjects"),s=e("../lang/isArray"),u=e("../lang/isTypedArray"),c="[object Arguments]",p="[object Array]",m="[object Object]",l=Object.prototype,d=l.hasOwnProperty,y=l.toString;t.exports=a},{"../lang/isArray":132,"../lang/isTypedArray":138,"./equalArrays":119,"./equalByTag":120,"./equalObjects":121}],110:[function(e,t,r){function a(e){return"function"==typeof e||!1}t.exports=a},{}],111:[function(e,t,r){function a(e,t,r,a,n){var s=t.length;if(null==e)return!s;for(var u=-1,c=!n;++u<s;)if(c&&a[u]?r[u]!==e[t[u]]:!i.call(e,t[u]))return!1;for(u=-1;++u<s;){var p=t[u];if(c&&a[u])var m=i.call(e,p);else{var l=e[p],d=r[u];m=n?n(l,d,p):void 0,"undefined"==typeof m&&(m=o(d,l,n,!0))}if(!m)return!1}return!0}var o=e("./baseIsEqual"),n=Object.prototype,i=n.hasOwnProperty;t.exports=a},{"./baseIsEqual":108}],112:[function(e,t,r){function a(e){var t=i(e),r=t.length;if(1==r){var a=t[0],s=e[a];if(n(s))return function(e){return null!=e&&e[a]===s&&u.call(e,a)}}for(var c=Array(r),p=Array(r);r--;)s=e[t[r]],c[r]=s,p[r]=n(s);return function(e){return o(e,t,c,p)}}var o=e("./baseIsMatch"),n=e("./isStrictComparable"),i=e("../object/keys"),s=Object.prototype,u=s.hasOwnProperty;t.exports=a},{"../object/keys":141,"./baseIsMatch":111,"./isStrictComparable":127}],113:[function(e,t,r){function a(e,t){return n(t)?function(r){return null!=r&&r[e]===t}:function(r){return null!=r&&o(t,r[e],null,!0)}}var o=e("./baseIsEqual"),n=e("./isStrictComparable");t.exports=a},{"./baseIsEqual":108,"./isStrictComparable":127}],114:[function(e,t,r){function a(e){return function(t){return null==t?void 0:t[e]}}t.exports=a},{}],115:[function(e,t,r){var a=e("../utility/identity"),o=e("./metaMap"),n=o?function(e,t){return o.set(e,t),e}:a;t.exports=n},{"../utility/identity":145,"./metaMap":128}],116:[function(e,t,r){function a(e){return"string"==typeof e?e:null==e?"":e+""}t.exports=a},{}],117:[function(e,t,r){function a(e,t,r){if("function"!=typeof e)return o;if("undefined"==typeof t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 3:return function(r,a,o){return e.call(t,r,a,o)};case 4:return function(r,a,o,n){return e.call(t,r,a,o,n)};case 5:return function(r,a,o,n,i){return e.call(t,r,a,o,n,i)}}return function(){return e.apply(t,arguments)}}var o=e("../utility/identity");t.exports=a},{"../utility/identity":145}],118:[function(e,t,r){function a(e){return function(){var t=arguments,r=t.length,a=t[0];if(2>r||null==a)return a;var i=t[r-2],s=t[r-1],u=t[3];r>3&&"function"==typeof i?(i=o(i,s,5),r-=2):(i=r>2&&"function"==typeof s?s:null,r-=i?1:0),u&&n(t[1],t[2],u)&&(i=3==r?null:i,r=2);for(var c=0;++c<r;){var p=t[c];p&&e(a,p,i)}return a}}var o=e("./bindCallback"),n=e("./isIterateeCall");t.exports=a},{"./bindCallback":117,"./isIterateeCall":124}],119:[function(e,t,r){function a(e,t,r,a,o,n,i){var s=-1,u=e.length,c=t.length,p=!0;if(u!=c&&!(o&&c>u))return!1;for(;p&&++s<u;){var m=e[s],l=t[s];if(p=void 0,a&&(p=o?a(l,m,s):a(m,l,s)),"undefined"==typeof p)if(o)for(var d=c;d--&&(l=t[d],!(p=m&&m===l||r(m,l,a,o,n,i))););else p=m&&m===l||r(m,l,a,o,n,i)}return!!p}t.exports=a},{}],120:[function(e,t,r){function a(e,t,r){switch(r){case o:case n:return+e==+t;case i:return e.name==t.name&&e.message==t.message;case s:return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case u:case c:return e==t+""}return!1}var o="[object Boolean]",n="[object Date]",i="[object Error]",s="[object Number]",u="[object RegExp]",c="[object String]";t.exports=a},{}],121:[function(e,t,r){function a(e,t,r,a,n,s,u){var c=o(e),p=c.length,m=o(t),l=m.length;if(p!=l&&!n)return!1;for(var d,y=-1;++y<p;){var h=c[y],b=i.call(t,h);if(b){var f=e[h],g=t[h];b=void 0,a&&(b=n?a(g,f,h):a(f,g,h)),"undefined"==typeof b&&(b=f&&f===g||r(f,g,a,n,s,u))}if(!b)return!1;d||(d="constructor"==h)}if(!d){var S=e.constructor,N=t.constructor;if(S!=N&&"constructor"in e&&"constructor"in t&&!("function"==typeof S&&S instanceof S&&"function"==typeof N&&N instanceof N))return!1}return!0}var o=e("../object/keys"),n=Object.prototype,i=n.hasOwnProperty;t.exports=a},{"../object/keys":141}],122:[function(e,t,r){function a(e){var t=!(i.funcNames?e.name:i.funcDecomp);if(!t){var r=c.call(e);i.funcNames||(t=!s.test(r)),t||(t=u.test(r)||n(e),o(e,t))}return t}var o=e("./baseSetData"),n=e("../lang/isNative"),i=e("../support"),s=/^\s*function[ \n\r\t]+\w/,u=/\bthis\b/,c=Function.prototype.toString;t.exports=a},{"../lang/isNative":135,"../support":144,"./baseSetData":115}],123:[function(e,t,r){function a(e,t){return e=+e,t=null==t?o:t,e>-1&&e%1==0&&t>e}var o=Math.pow(2,53)-1;t.exports=a},{}],124:[function(e,t,r){function a(e,t,r){if(!i(r))return!1;var a=typeof t;if("number"==a)var s=r.length,u=n(s)&&o(t,s);else u="string"==a&&t in r;if(u){var c=r[t];return e===e?e===c:c!==c}return!1}var o=e("./isIndex"),n=e("./isLength"),i=e("../lang/isObject");t.exports=a},{"../lang/isObject":136,"./isIndex":123,"./isLength":125}],125:[function(e,t,r){function a(e){return"number"==typeof e&&e>-1&&e%1==0&&o>=e}var o=Math.pow(2,53)-1;t.exports=a},{}],126:[function(e,t,r){function a(e){return e&&"object"==typeof e||!1}t.exports=a},{}],127:[function(e,t,r){function a(e){return e===e&&(0===e?1/e>0:!o(e))}var o=e("../lang/isObject");t.exports=a},{"../lang/isObject":136}],128:[function(e,t,r){(function(r){var a=e("../lang/isNative"),o=a(o=r.WeakMap)&&o,n=o&&new o;t.exports=n}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../lang/isNative":135}],129:[function(e,t,r){function a(e){for(var t=u(e),r=t.length,a=r&&e.length,p=a&&s(a)&&(n(e)||c.nonEnumArgs&&o(e)),l=-1,d=[];++l<r;){var y=t[l];(p&&i(y,a)||m.call(e,y))&&d.push(y)}return d}var o=e("../lang/isArguments"),n=e("../lang/isArray"),i=e("./isIndex"),s=e("./isLength"),u=e("../object/keysIn"),c=e("../support"),p=Object.prototype,m=p.hasOwnProperty;t.exports=a},{"../lang/isArguments":131,"../lang/isArray":132,"../object/keysIn":142,"../support":144,"./isIndex":123,"./isLength":125}],130:[function(e,t,r){function a(e){return o(e)?e:Object(e)}var o=e("../lang/isObject");t.exports=a},{"../lang/isObject":136}],131:[function(e,t,r){function a(e){var t=n(e)?e.length:void 0;return o(t)&&u.call(e)==i||!1}var o=e("../internal/isLength"),n=e("../internal/isObjectLike"),i="[object Arguments]",s=Object.prototype,u=s.toString;t.exports=a},{"../internal/isLength":125,"../internal/isObjectLike":126}],132:[function(e,t,r){var a=e("../internal/isLength"),o=e("./isNative"),n=e("../internal/isObjectLike"),i="[object Array]",s=Object.prototype,u=s.toString,c=o(c=Array.isArray)&&c,p=c||function(e){return n(e)&&a(e.length)&&u.call(e)==i||!1};t.exports=p},{"../internal/isLength":125,"../internal/isObjectLike":126,"./isNative":135}],133:[function(e,t,r){function a(e){if(null==e)return!0;var t=e.length;return s(t)&&(n(e)||c(e)||o(e)||u(e)&&i(e.splice))?!t:!p(e).length}var o=e("./isArguments"),n=e("./isArray"),i=e("./isFunction"),s=e("../internal/isLength"),u=e("../internal/isObjectLike"),c=e("./isString"),p=e("../object/keys");t.exports=a},{"../internal/isLength":125,"../internal/isObjectLike":126,"../object/keys":141,"./isArguments":131,"./isArray":132,"./isFunction":134,"./isString":137}],134:[function(e,t,r){(function(r){var a=e("../internal/baseIsFunction"),o=e("./isNative"),n="[object Function]",i=Object.prototype,s=i.toString,u=o(u=r.Uint8Array)&&u,c=a(/x/)||u&&!a(u)?function(e){return s.call(e)==n}:a;t.exports=c}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../internal/baseIsFunction":110,"./isNative":135}],135:[function(e,t,r){function a(e){return null==e?!1:p.call(e)==i?m.test(c.call(e)):n(e)&&s.test(e)||!1}var o=e("../string/escapeRegExp"),n=e("../internal/isObjectLike"),i="[object Function]",s=/^\[object .+?Constructor\]$/,u=Object.prototype,c=Function.prototype.toString,p=u.toString,m=RegExp("^"+o(p).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=a},{"../internal/isObjectLike":126,"../string/escapeRegExp":143}],136:[function(e,t,r){function a(e){var t=typeof e;return"function"==t||e&&"object"==t||!1}t.exports=a},{}],137:[function(e,t,r){function a(e){return"string"==typeof e||o(e)&&s.call(e)==n||!1}var o=e("../internal/isObjectLike"),n="[object String]",i=Object.prototype,s=i.toString;t.exports=a},{"../internal/isObjectLike":126}],138:[function(e,t,r){function a(e){return n(e)&&o(e.length)&&q[P.call(e)]||!1}var o=e("../internal/isLength"),n=e("../internal/isObjectLike"),i="[object Arguments]",s="[object Array]",u="[object Boolean]",c="[object Date]",p="[object Error]",m="[object Function]",l="[object Map]",d="[object Number]",y="[object Object]",h="[object RegExp]",b="[object Set]",f="[object String]",g="[object WeakMap]",S="[object ArrayBuffer]",N="[object Float32Array]",I="[object Float64Array]",v="[object Int8Array]",k="[object Int16Array]",C="[object Int32Array]",T="[object Uint8Array]",D="[object Uint8ClampedArray]",R="[object Uint16Array]",A="[object Uint32Array]",q={};q[N]=q[I]=q[v]=q[k]=q[C]=q[T]=q[D]=q[R]=q[A]=!0,q[i]=q[s]=q[S]=q[u]=q[c]=q[p]=q[m]=q[l]=q[d]=q[y]=q[h]=q[b]=q[f]=q[g]=!1;var x=Object.prototype,P=x.toString;t.exports=a},{"../internal/isLength":125,"../internal/isObjectLike":126}],139:[function(e,t,r){var a=e("../internal/baseAssign"),o=e("../internal/createAssigner"),n=o(a);t.exports=n},{"../internal/baseAssign":100,"../internal/createAssigner":118}],140:[function(e,t,r){function a(e,t,r){var a=n(e);return r&&i(e,t,r)&&(t=null),t?o(t,a,s(t)):a}var o=e("../internal/baseCopy"),n=e("../internal/baseCreate"),i=e("../internal/isIterateeCall"),s=e("./keys");t.exports=a},{"../internal/baseCopy":102,"../internal/baseCreate":103,"../internal/isIterateeCall":124,"./keys":141}],141:[function(e,t,r){var a=e("../internal/isLength"),o=e("../lang/isNative"),n=e("../lang/isObject"),i=e("../internal/shimKeys"),s=o(s=Object.keys)&&s,u=s?function(e){if(e)var t=e.constructor,r=e.length;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&r&&a(r)?i(e):n(e)?s(e):[]}:i;t.exports=u},{"../internal/isLength":125,"../internal/shimKeys":129,"../lang/isNative":135,"../lang/isObject":136}],142:[function(e,t,r){function a(e){if(null==e)return[];u(e)||(e=Object(e));var t=e.length;t=t&&s(t)&&(n(e)||c.nonEnumArgs&&o(e))&&t||0;for(var r=e.constructor,a=-1,p="function"==typeof r&&r.prototype===e,l=Array(t),d=t>0;++a<t;)l[a]=a+"";for(var y in e)d&&i(y,t)||"constructor"==y&&(p||!m.call(e,y))||l.push(y);return l}var o=e("../lang/isArguments"),n=e("../lang/isArray"),i=e("../internal/isIndex"),s=e("../internal/isLength"),u=e("../lang/isObject"),c=e("../support"),p=Object.prototype,m=p.hasOwnProperty;t.exports=a},{"../internal/isIndex":123,"../internal/isLength":125,"../lang/isArguments":131,"../lang/isArray":132,"../lang/isObject":136,"../support":144}],143:[function(e,t,r){function a(e){return e=o(e),e&&i.test(e)?e.replace(n,"\\$&"):e}var o=e("../internal/baseToString"),n=/[.*+?^${}()|[\]\/\\]/g,i=RegExp(n.source);t.exports=a},{"../internal/baseToString":116}],144:[function(e,t,r){(function(r){var a=e("./lang/isNative"),o=/\bthis\b/,n=Object.prototype,i=(i=r.window)&&i.document,s=n.propertyIsEnumerable,u={};!function(e){u.funcDecomp=!a(r.WinRTError)&&o.test(function(){return this}),u.funcNames="string"==typeof Function.name;try{u.dom=11===i.createDocumentFragment().nodeType}catch(t){u.dom=!1}try{u.nonEnumArgs=!s.call(arguments,1)}catch(t){u.nonEnumArgs=!0}}(0,0),t.exports=u}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lang/isNative":135}],145:[function(e,t,r){
|
||
function a(e){return e}t.exports=a},{}]},{},[1])}).call(this),function(){a=window.AWS,delete window.AWS}.call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["peerlibrary:aws-sdk"]={AWS:a}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.ecmascript.ECMAScript,n=Package["jalik:ufs"].UploadFS,i=Package["edgee:slingshot"].Slingshot,r=Package["peerlibrary:aws-sdk"].AWS,o=Package["rocketchat:lib"].RocketChat,a=Package.random.Random,l=Package.underscore._,s=Package.tracker.Tracker,u=Package.tracker.Deps,c=Package.webapp.WebApp,p=Package["babel-runtime"].babelHelpers,d=Package["ecmascript-runtime"].Symbol,f=Package["ecmascript-runtime"].Map,h=Package["ecmascript-runtime"].Set,g=Package.promise.Promise,k=Package["tap:i18n"].TAPi18next,m=Package["tap:i18n"].TAPi18n,y,P,S,v;(function(){i.fileRestrictions("rocketchat-uploads",{authorize:function(t){if(!o.fileUploadIsValidContentType(t.type))throw new e.Error(m.__("Invalid_file_type"));var n=o.settings.get("FileUpload_MaxFileSize");if(n&&n<t.size)throw new e.Error(m.__("File_exceeds_allowed_size_of_bytes",{size:n}));if(!this.userId)throw new e.Error("login-require","Please login before posting files");return!0},maxSize:0,allowedFileTypes:null})}).call(this),function(){var t=0;y={validateFileUpload:function(n){if(n.size>t)throw new e.Error("file-too-large","File is too large");if(!o.fileUploadIsValidContentType(n.type))throw new e.Error("invalid-file-type","File type is not accepted");return!0}},o.settings.get("FileUpload_MaxFileSize",function(e,n){t=n})}.call(this),function(){P=function(){function e(t,n){p.classCallCheck(this,e),this.id=a.id(),this.meta=t,this.file=n}return e.prototype.getProgress=function(){function e(){}return e}(),e.prototype.getFileName=function(){function e(){return this.meta.name}return e}(),e.prototype.start=function(){function e(){}return e}(),e.prototype.stop=function(){function e(){}return e}(),e}()}.call(this),function(){S=new n.store.Local({collection:o.models.Uploads.model,name:"fileSystem",filter:new n.Filter({onCheck:y.validateFileUpload})}),y.FileSystem=function(t){function i(r,o,a){var s=this;p.classCallCheck(this,i),t.call(this,r,o,a),this.handler=new n.Uploader({store:S,data:a,file:r,onError:function(e){var t=Session.get("uploading");if(null!=t){var n=l.findWhere(t,{id:s.id});return null!=n&&(n.error=e.reason,n.percentage=0),Session.set("uploading",t)}},onComplete:function(t){var n=l.pick(t,"_id","type","size","name","identify");n.url=t.url.replace(e.absoluteUrl(),"/"),e.call("sendFileMessage",s.meta.rid,null,n,function(){e.setTimeout(function(){var e=Session.get("uploading");if(null!=e){var t=l.findWhere(e,{id:s.id});return Session.set("uploading",l.without(e,t))}},2e3)})}})}return p.inherits(i,t),i.prototype.start=function(){function e(){return this.handler.start()}return e}(),i.prototype.getProgress=function(){function e(){return this.handler.getProgress()}return e}(),i.prototype.stop=function(){function e(){return this.handler.stop()}return e}(),i}(P)}.call(this),function(){v=function(e,t,n){var i=o.settings.get("FileUpload_Storage_Type");return void 0!==y[i]?new y[i](e,t,n):void 0}}.call(this),function(){y.AmazonS3=function(t){function n(e,r,o){p.classCallCheck(this,n),t.call(this,e,r,o),this.uploader=new i.Upload("rocketchat-uploads",{rid:e.rid})}return p.inherits(n,t),n.prototype.start=function(){function t(){var t=this;this.uploader.send(this.file,function(n,i){var r,o,a;n?(a=Session.get("uploading"),null!==a&&(o=l.findWhere(a,{id:t.id}),null!==o&&(o.error=n.error,o.percentage=0),Session.set("uploading",a))):(r=l.pick(t.meta,"type","size","name","identify"),r._id=i.substr(i.lastIndexOf("/")+1),r.url=i,e.call("sendFileMessage",t.meta.rid,"s3",r,function(){e.setTimeout(function(){return a=Session.get("uploading"),null!==a?(o=l.findWhere(a,{id:t.id}),Session.set("uploading",l.without(a,o))):void 0},2e3)}))})}return t}(),n.prototype.getProgress=function(){function e(){return this.uploader.progress()}return e}(),n.prototype.stop=function(){function e(){this.uploader&&this.uploader.xhr&&this.uploader.xhr.abort()}return e}(),n}(P)}.call(this),function(){y.GridFS=function(t){function i(r,o,a){var s=this;p.classCallCheck(this,i),t.call(this,r,o,a),this.handler=new n.Uploader({store:e.fileStore,data:a,file:r,onError:function(e){var t=Session.get("uploading");if(null!=t){var n=l.findWhere(t,{id:s.id});return null!=n&&(n.error=e.reason,n.percentage=0),Session.set("uploading",t)}},onComplete:function(t){var n=l.pick(t,"_id","type","size","name","identify");n.url=t.url.replace(e.absoluteUrl(),"/"),e.call("sendFileMessage",s.meta.rid,null,n,function(){e.setTimeout(function(){var e=Session.get("uploading");if(null!=e){var t=l.findWhere(e,{id:s.id});return Session.set("uploading",l.without(e,t))}},2e3)})}})}return p.inherits(i,t),i.prototype.start=function(){function e(){return this.handler.start()}return e}(),i.prototype.getProgress=function(){function e(){return this.handler.getProgress()}return e}(),i.prototype.stop=function(){function e(){return this.handler.stop()}return e}(),i}(P)}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:file-upload"]={fileUploadHandler:v,FileUpload:y}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package["rocketchat:lib"].RocketChat,r=Package["rocketchat:custom-oauth"].CustomOAuth,a=Package.templating.Template,i=Package["tap:i18n"].TAPi18next,n=Package["tap:i18n"].TAPi18n,s=Package.blaze.Blaze,c=Package.blaze.UI,u=Package.blaze.Handlebars,o=Package.spacebars.Spacebars,g=Package.htmljs.HTML,P;(function(){P="object"==typeof P?P:{};var a=P,i,n;n={serverURL:"",identityPath:"/api/v3/user",authorizePath:"/login/oauth/authorize",tokenPath:"/login/oauth/access_token",addAutopublishFields:{forLoggedInUser:["services.github-enterprise"],forOtherUsers:["services.github-enterprise.username"]}},i=new r("github_enterprise",n),e.startup(e.isServer?function(){return t.models.Settings.findById("API_GitHub_Enterprise_URL").observe({added:function(e){return n.serverURL=t.settings.get("API_GitHub_Enterprise_URL"),i.configure(n)},changed:function(e){return n.serverURL=t.settings.get("API_GitHub_Enterprise_URL"),i.configure(n)}})}:function(){return Tracker.autorun(function(){return t.settings.get("API_GitHub_Enterprise_URL")?(n.serverURL=t.settings.get("API_GitHub_Enterprise_URL"),i.configure(n)):void 0})})}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:github-enterprise"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package["rocketchat:lib"].RocketChat,a=Package["rocketchat:custom-oauth"].CustomOAuth,r=Package.templating.Template,i=Package["tap:i18n"].TAPi18next,n=Package["tap:i18n"].TAPi18n,c=Package.blaze.Blaze,s=Package.blaze.UI,g=Package.blaze.Handlebars,o=Package.spacebars.Spacebars,u=Package.htmljs.HTML,l;(function(){l="object"==typeof l?l:{};var r=l,i,n;n={serverURL:"https://gitlab.com",identityPath:"/api/v3/user",addAutopublishFields:{forLoggedInUser:["services.gitlab"],forOtherUsers:["services.gitlab.username"]}},i=new a("gitlab",n),e.startup(e.isServer?function(){return t.models.Settings.findById("API_Gitlab_URL").observe({added:function(e){return n.serverURL=t.settings.get("API_Gitlab_URL"),i.configure(n)},changed:function(e){return n.serverURL=t.settings.get("API_Gitlab_URL"),i.configure(n)}})}:function(){return Tracker.autorun(function(){return t.settings.get("API_Gitlab_URL")?(n.serverURL=t.settings.get("API_Gitlab_URL"),i.configure(n)):void 0})})}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:gitlab"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t,r;(function(){t=!1,e.isClient&&-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(document.createElement("SVG").getAttributeNS||(t=!0))}).call(this),function(){t||(r=new function(){function e(e){return e.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")}function t(e){return e.nodeName.toLowerCase()}function r(e,t){var r=e&&e.exec(t);return r&&0==r.index}function n(e){var t=(e.className+" "+(e.parentNode?e.parentNode.className:"")).split(/\s+/);return t=t.map(function(e){return e.replace(/^lang(uage)?-/,"")}),t.filter(function(e){return _(e)||/no(-?)highlight/.test(e)})[0]}function a(e,t){var r={};for(var n in e)r[n]=e[n];if(t)for(var n in t)r[n]=t[n];return r}function i(e){var r=[];return function n(e,a){for(var i=e.firstChild;i;i=i.nextSibling)3==i.nodeType?a+=i.nodeValue.length:1==i.nodeType&&(r.push({event:"start",offset:a,node:i}),a=n(i,a),t(i).match(/br|hr|img|input/)||r.push({event:"stop",offset:a,node:i}));return a}(e,0),r}function s(r,n,a){function i(){return r.length&&n.length?r[0].offset!=n[0].offset?r[0].offset<n[0].offset?r:n:"start"==n[0].event?r:n:r.length?r:n}function s(r){function n(t){return" "+t.nodeName+'="'+e(t.value)+'"'}u+="<"+t(r)+Array.prototype.map.call(r.attributes,n).join("")+">"}function c(e){u+="</"+t(e)+">"}function o(e){("start"==e.event?s:c)(e.node)}for(var l=0,u="",d=[];r.length||n.length;){var b=i();if(u+=e(a.substr(l,b[0].offset-l)),l=b[0].offset,b==r){d.reverse().forEach(c);do o(b.splice(0,1)[0]),b=i();while(b==r&&b.length&&b[0].offset==l);d.reverse().forEach(s)}else"start"==b[0].event?d.push(b[0].node):d.pop(),o(b.splice(0,1)[0])}return u+e(a.substr(l))}function c(e){function t(e){return e&&e.source||e}function r(r,n){return RegExp(t(r),"m"+(e.cI?"i":"")+(n?"g":""))}function n(i,s){if(!i.compiled){if(i.compiled=!0,i.k=i.k||i.bK,i.k){var c={},o=function(t,r){e.cI&&(r=r.toLowerCase()),r.split(" ").forEach(function(e){var r=e.split("|");c[r[0]]=[t,r[1]?Number(r[1]):1]})};"string"==typeof i.k?o("keyword",i.k):Object.keys(i.k).forEach(function(e){o(e,i.k[e])}),i.k=c}i.lR=r(i.l||/\b[A-Za-z0-9_]+\b/,!0),s&&(i.bK&&(i.b="\\b("+i.bK.split(" ").join("|")+")\\b"),i.b||(i.b=/\B|\b/),i.bR=r(i.b),i.e||i.eW||(i.e=/\B|\b/),i.e&&(i.eR=r(i.e)),i.tE=t(i.e)||"",i.eW&&s.tE&&(i.tE+=(i.e?"|":"")+s.tE)),i.i&&(i.iR=r(i.i)),void 0===i.r&&(i.r=1),i.c||(i.c=[]);var l=[];i.c.forEach(function(e){e.v?e.v.forEach(function(t){l.push(a(e,t))}):l.push("self"==e?i:e)}),i.c=l,i.c.forEach(function(e){n(e,i)}),i.starts&&n(i.starts,s);var u=i.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([i.tE,i.i]).map(t).filter(Boolean);i.t=u.length?r(u.join("|"),!0):{exec:function(){return null}}}}n(e)}function o(t,n,a,i){function s(e,t){for(var n=0;n<t.c.length;n++)if(r(t.c[n].bR,e))return t.c[n]}function u(e,t){return r(e.eR,t)?e:e.eW?u(e.parent,t):void 0}function d(e,t){return!a&&r(t.iR,e)}function b(e,t){var r=y.cI?t[0].toLowerCase():t[0];return e.k.hasOwnProperty(r)&&e.k[r]}function p(e,t,r,n){var a=n?"":N.classPrefix,i='<span class="'+a,s=r?"":"</span>";return i+=e+'">',i+t+s}function f(){if(!k.k)return e(S);var t="",r=0;k.lR.lastIndex=0;for(var n=k.lR.exec(S);n;){t+=e(S.substr(r,n.index-r));var a=b(k,n);a?(E+=a[1],t+=p(a[0],e(n[0]))):t+=e(n[0]),r=k.lR.lastIndex,n=k.lR.exec(S)}return t+e(S.substr(r))}function g(){if(k.sL&&!v[k.sL])return e(S);var t=k.sL?o(k.sL,S,!0,x[k.sL]):l(S);return k.r>0&&(E+=t.r),"continuous"==k.subLanguageMode&&(x[k.sL]=t.top),p(t.language,t.value,!1,!0)}function m(){return void 0!==k.sL?g():f()}function h(t,r){var n=t.cN?p(t.cN,"",!0):"";t.rB?(M+=n,S=""):t.eB?(M+=e(r)+n,S=""):(M+=n,S=r),k=Object.create(t,{parent:{value:k}})}function w(t,r){if(S+=t,void 0===r)return M+=m(),0;var n=s(r,k);if(n)return M+=m(),h(n,r),n.rB?0:r.length;var a=u(k,r);if(a){var i=k;i.rE||i.eE||(S+=r),M+=m();do k.cN&&(M+="</span>"),E+=k.r,k=k.parent;while(k!=a.parent);return i.eE&&(M+=e(r)),S="",a.starts&&h(a.starts,""),i.rE?0:r.length}if(d(r,k))throw new Error('Illegal lexeme "'+r+'" for mode "'+(k.cN||"<unnamed>")+'"');return S+=r,r.length||1}var y=_(t);if(!y)throw new Error('Unknown language: "'+t+'"');c(y);for(var k=i||y,x={},M="",C=k;C!=y;C=C.parent)C.cN&&(M=p(C.cN,"",!0)+M);var S="",E=0;try{for(var B,I,L=0;k.t.lastIndex=L,B=k.t.exec(n),B;)I=w(n.substr(L,B.index-L),B[0]),L=B.index+I;w(n.substr(L));for(var C=k;C.parent;C=C.parent)C.cN&&(M+="</span>");return{r:E,value:M,language:t,top:k}}catch(R){if(-1!=R.message.indexOf("Illegal"))return{r:0,value:e(n)};throw R}}function l(t,r){r=r||N.languages||Object.keys(v);var n={r:0,value:e(t)},a=n;return r.forEach(function(e){if(_(e)){var r=o(e,t,!1);r.language=e,r.r>a.r&&(a=r),r.r>n.r&&(a=n,n=r)}}),a.language&&(n.second_best=a),n}function u(e){return N.tabReplace&&(e=e.replace(/^((<[^>]+>|\t)+)/gm,function(e,t){return t.replace(/\t/g,N.tabReplace)})),N.useBR&&(e=e.replace(/\n/g,"<br>")),e}function d(e,t,r){var n=t?w[t]:r,a=[e.trim()];return e.match(/(\s|^)hljs(\s|$)/)||a.push("hljs"),n&&a.push(n),a.join(" ").trim()}function b(e){var t=n(e);if(!/no(-?)highlight/.test(t)){var r;N.useBR?(r=document.createElementNS("http://www.w3.org/1999/xhtml","div"),r.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n")):r=e;var a=r.textContent,c=t?o(t,a,!0):l(a),b=i(r);if(b.length){var p=document.createElementNS("http://www.w3.org/1999/xhtml","div");p.innerHTML=c.value,c.value=s(b,i(p),a)}c.value=u(c.value),e.innerHTML=c.value,e.className=d(e.className,t,c.language),e.result={language:c.language,re:c.r},c.second_best&&(e.second_best={language:c.second_best.language,re:c.second_best.r})}}function p(e){N=a(N,e)}function f(){if(!f.called){f.called=!0;var e=document.querySelectorAll("pre code");Array.prototype.forEach.call(e,b)}}function g(){addEventListener("DOMContentLoaded",f,!1),addEventListener("load",f,!1)}function m(e,t){var r=v[e]=t(this);r.aliases&&r.aliases.forEach(function(t){w[t]=e})}function h(){return Object.keys(v)}function _(e){return v[e]||v[w[e]]}var N={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},v={},w={};this.highlight=o,this.highlightAuto=l,this.fixMarkup=u,this.highlightBlock=b,this.configure=p,this.initHighlighting=f,this.initHighlightingOnLoad=g,this.registerLanguage=m,this.listLanguages=h,this.getLanguage=_,this.inherit=a,this.IR="[a-zA-Z][a-zA-Z0-9_]*",this.UIR="[a-zA-Z_][a-zA-Z0-9_]*",this.NR="\\b\\d+(\\.\\d+)?",this.CNR="(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",this.BNR="\\b(0b[01]+)",this.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",this.BE={b:"\\\\[\\s\\S]",r:0},this.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[this.BE]},this.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[this.BE]},this.PWM={b:/\b(a|an|the|are|I|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such)\b/},this.CLCM={cN:"comment",b:"//",e:"$",c:[this.PWM]},this.CBCM={cN:"comment",b:"/\\*",e:"\\*/",c:[this.PWM]},this.HCM={cN:"comment",b:"#",e:"$",c:[this.PWM]},this.NM={cN:"number",b:this.NR,r:0},this.CNM={cN:"number",b:this.CNR,r:0},this.BNM={cN:"number",b:this.BNR,r:0},this.CSSNM={cN:"number",b:this.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},this.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[this.BE,{b:/\[/,e:/\]/,r:0,c:[this.BE]}]},this.TM={cN:"title",b:this.IR,r:0},this.UTM={cN:"title",b:this.UIR,r:0}},r.registerLanguage("javascript",function(e){return{aliases:["js"],k:{keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document"},c:[{cN:"pi",b:/^\s*('|")use strict('|")/,r:10},e.ASM,e.QSM,e.CLCM,e.CBCM,e.CNM,{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{b:/</,e:/>;/,r:0,sL:"xml"}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,c:[e.CLCM,e.CBCM],i:/["'\(]/}],i:/\[|%/},{b:/\$[(.]/},{b:"\\."+e.IR,r:0}]}}),r.registerLanguage("sql",function(e){var t={cN:"comment",b:"--",e:"$"};return{cI:!0,i:/[<>]/,c:[{cN:"operator",bK:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate savepoint release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup",e:/;/,eW:!0,k:{keyword:"abs absolute acos action add adddate addtime aes_decrypt aes_encrypt after aggregate all allocate alter analyze and any are as asc ascii asin assertion at atan atan2 atn2 authorization authors avg backup before begin benchmark between bin binlog bit_and bit_count bit_length bit_or bit_xor both by cache call cascade cascaded case cast catalog ceil ceiling chain change changed char_length character_length charindex charset check checksum checksum_agg choose close coalesce coercibility collate collation collationproperty column columns columns_updated commit compress concat concat_ws concurrent connect connection connection_id consistent constraint constraints continue contributors conv convert convert_tz corresponding cos cot count count_big crc32 create cross cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime data database databases datalength date_add date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts datetimeoffsetfromparts day dayname dayofmonth dayofweek dayofyear deallocate declare decode default deferrable deferred degrees delayed delete des_decrypt des_encrypt des_key_file desc describe descriptor diagnostics difference disconnect distinct distinctrow div do domain double drop dumpfile each else elt enclosed encode encrypt end end-exec engine engines eomonth errors escape escaped event eventdata events except exception exec execute exists exp explain export_set extended external extract fast fetch field fields find_in_set first first_value floor flush for force foreign format found found_rows from from_base64 from_days from_unixtime full function get get_format get_lock getdate getutcdate global go goto grant grants greatest group group_concat grouping grouping_id gtid_subset gtid_subtract handler having help hex high_priority hosts hour ident_current ident_incr ident_seed identified identity if ifnull ignore iif ilike immediate in index indicator inet6_aton inet6_ntoa inet_aton inet_ntoa infile initially inner innodb input insert install instr intersect into is is_free_lock is_ipv4 is_ipv4_compat is_ipv4_mapped is_not is_not_null is_used_lock isdate isnull isolation join key kill language last last_day last_insert_id last_value lcase lead leading least leaves left len lenght level like limit lines ln load load_file local localtime localtimestamp locate lock log log10 log2 logfile logs low_priority lower lpad ltrim make_set makedate maketime master master_pos_wait match matched max md5 medium merge microsecond mid min minute mod mode module month monthname mutex name_const names national natural nchar next no no_write_to_binlog not now nullif nvarchar oct octet_length of old_password on only open optimize option optionally or ord order outer outfile output pad parse partial partition password patindex percent_rank percentile_cont percentile_disc period_add period_diff pi plugin position pow power pragma precision prepare preserve primary prior privileges procedure procedure_analyze processlist profile profiles public publishingservername purge quarter query quick quote quotename radians rand read references regexp relative relaylog release release_lock rename repair repeat replace replicate reset restore restrict return returns reverse revoke right rlike rollback rollup round row row_count rows rpad rtrim savepoint schema scroll sec_to_time second section select serializable server session session_user set sha sha1 sha2 share show sign sin size slave sleep smalldatetimefromparts snapshot some soname soundex sounds_like space sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sql_variant_property sqlstate sqrt square start starting status std stddev stddev_pop stddev_samp stdev stdevp stop str str_to_date straight_join strcmp string stuff subdate substr substring subtime subtring_index sum switchoffset sysdate sysdatetime sysdatetimeoffset system_user sysutcdatetime table tables tablespace tan temporary terminated tertiary_weights then time time_format time_to_sec timediff timefromparts timestamp timestampadd timestampdiff timezone_hour timezone_minute to to_base64 to_days to_seconds todatetimeoffset trailing transaction translation trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse ucase uncompress uncompressed_length unhex unicode uninstall union unique unix_timestamp unknown unlock update upgrade upped upper usage use user user_resources using utc_date utc_time utc_timestamp uuid uuid_short validate_password_strength value values var var_pop var_samp variables variance varp version view warnings week weekday weekofyear weight_string when whenever where with work write xml xor year yearweek zon",literal:"true false null",built_in:"array bigint binary bit blob boolean char character date dec decimal float int integer interval number numeric real serial smallint varchar varying int8 serial8 text"},c:[{cN:"string",b:"'",e:"'",c:[e.BE,{b:"''"}]},{cN:"string",b:'"',e:'"',c:[e.BE,{b:'""'}]},{cN:"string",b:"`",e:"`",c:[e.BE]},e.CNM,e.CBCM,t]},e.CBCM,t]}}),r.registerLanguage("python",function(e){var t={cN:"prompt",b:/^(>>>|\.\.\.) /},r={cN:"string",c:[e.BE],v:[{b:/(u|b)?r?'''/,e:/'''/,c:[t],r:10},{b:/(u|b)?r?"""/,e:/"""/,c:[t],r:10},{b:/(u|r|ur)'/,e:/'/,r:10},{b:/(u|r|ur)"/,e:/"/,r:10},{b:/(b|br)'/,e:/'/},{b:/(b|br)"/,e:/"/},e.ASM,e.QSM]},n={cN:"number",r:0,v:[{b:e.BNR+"[lLjJ]?"},{b:"\\b(0o[0-7]+)[lLjJ]?"},{b:e.CNR+"[lLjJ]?"}]},a={cN:"params",b:/\(/,e:/\)/,c:["self",t,n,r]},i={e:/:/,i:/[${=;\n]/,c:[e.UTM,a]};return{aliases:["py","gyp"],k:{keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda nonlocal|10 None True False",built_in:"Ellipsis NotImplemented"},i:/(<\/|->|\?)/,c:[t,n,r,e.HCM,e.inherit(i,{cN:"function",bK:"def",r:10}),e.inherit(i,{cN:"class",bK:"class"}),{cN:"decorator",b:/@/,e:/$/},{b:/\b(print|exec)\(/}]}}),r.registerLanguage("perl",function(e){var t="getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when",r={cN:"subst",b:"[$@]\\{",e:"\\}",k:t},n={b:"->{",e:"}"},a={cN:"variable",v:[{b:/\$\d/},{b:/[\$\%\@](\^\w\b|#\w+(\:\:\w+)*|{\w+}|\w+(\:\:\w*)*)/},{b:/[\$\%\@][^\s\w{]/,r:0}]},i={cN:"comment",b:"^(__END__|__DATA__)",e:"\\n$",r:5},s=[e.BE,r,a],c=[a,e.HCM,i,{cN:"comment",b:"^\\=\\w",e:"\\=cut",eW:!0},n,{cN:"string",c:s,v:[{b:"q[qwxr]?\\s*\\(",e:"\\)",r:5},{b:"q[qwxr]?\\s*\\[",e:"\\]",r:5},{b:"q[qwxr]?\\s*\\{",e:"\\}",r:5},{b:"q[qwxr]?\\s*\\|",e:"\\|",r:5},{b:"q[qwxr]?\\s*\\<",e:"\\>",r:5},{b:"qw\\s+q",e:"q",r:5},{b:"'",e:"'",c:[e.BE]},{b:'"',e:'"'},{b:"`",e:"`",c:[e.BE]},{b:"{\\w+}",c:[],r:0},{b:"-?\\w+\\s*\\=\\>",c:[],r:0}]},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"(\\/\\/|"+e.RSR+"|\\b(split|return|print|reverse|grep)\\b)\\s*",k:"split return print reverse grep",r:0,c:[e.HCM,i,{cN:"regexp",b:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",r:10},{cN:"regexp",b:"(m|qr)?/",e:"/[a-z]*",c:[e.BE],r:0}]},{cN:"sub",bK:"sub",e:"(\\s*\\(.*?\\))?[;{]",r:5},{cN:"operator",b:"-\\w\\b",r:0}];return r.c=c,n.c=c,{aliases:["pl"],k:t,c:c}}),r.registerLanguage("apache",function(e){var t={cN:"number",b:"[\\$%]\\d+"};return{aliases:["apacheconf"],cI:!0,c:[e.HCM,{cN:"tag",b:"</?",e:">"},{cN:"keyword",b:/\w+/,r:0,k:{common:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{e:/$/,r:0,k:{literal:"on off all"},c:[{cN:"sqbracket",b:"\\s\\[",e:"\\]$"},{cN:"cbracket",b:"[\\$%]\\{",e:"\\}",c:["self",t]},t,e.QSM]}}],i:/\S/}}),r.registerLanguage("xml",function(){var e="[A-Za-z0-9\\._:-]+",t={b:/<\?(php)?(?!\w)/,e:/\?>/,sL:"php",subLanguageMode:"continuous"},r={eW:!0,i:/</,r:0,c:[t,{cN:"attribute",b:e,r:0},{b:"=",r:0,c:[{cN:"value",c:[t],v:[{b:/"/,e:/"/},{b:/'/,e:/'/},{b:/[^\s\/>]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xsl","plist"],cI:!0,c:[{cN:"doctype",b:"<!DOCTYPE",e:">",r:10,c:[{b:"\\[",e:"\\]"}]},{cN:"comment",b:"<!--",e:"-->",r:10},{cN:"cdata",b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{cN:"tag",b:"<style(?=\\s|>|$)",e:">",k:{title:"style"},c:[r],starts:{e:"</style>",rE:!0,sL:"css"}},{cN:"tag",b:"<script(?=\\s|>|$)",e:">",k:{title:"script"},c:[r],starts:{e:"</script>",rE:!0,sL:"javascript"}},t,{cN:"pi",b:/<\?\w+/,e:/\?>/,r:10},{cN:"tag",b:"</?",e:"/?>",c:[{cN:"title",b:/[^ \/><\n\t]+/,r:0},r]}]}}),r.registerLanguage("css",function(e){var t="[a-zA-Z-][a-zA-Z0-9_-]*",r={cN:"function",b:t+"\\(",rB:!0,eE:!0,e:"\\("};return{cI:!0,i:"[=/|']",c:[e.CBCM,{cN:"id",b:"\\#[A-Za-z0-9_-]+"},{cN:"class",b:"\\.[A-Za-z0-9_-]+",r:0},{cN:"attr_selector",b:"\\[",e:"\\]",i:"$"},{cN:"pseudo",b:":(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\\\"\\']+"},{cN:"at_rule",b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{cN:"at_rule",b:"@",e:"[{;]",c:[{cN:"keyword",b:/\S+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[r,e.ASM,e.QSM,e.CSSNM]}]},{cN:"tag",b:t,r:0},{cN:"rules",b:"{",e:"}",i:"[^\\s]",r:0,c:[e.CBCM,{cN:"rule",b:"[^\\s]",rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:"[A-Z\\_\\.\\-]+",e:":",eE:!0,i:"[^\\s]",starts:{cN:"value",eW:!0,eE:!0,c:[r,e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"hexcolor",b:"#[0-9A-Fa-f]+"},{cN:"important",b:"!important"}]}}]}]}]}}),r.registerLanguage("cpp",function(e){var t={keyword:"false int float while private char catch export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const struct for static_cast|10 union namespace unsigned long throw volatile static protected bool template mutable if public friend do return goto auto void enum else break new extern using true class asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue wchar_t inline delete alignof char16_t char32_t constexpr decltype noexcept nullptr static_assert thread_local restrict _Bool complex _Complex _Imaginary",built_in:"std string cin cout cerr clog stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf"};return{aliases:["c","h","c++","h++"],k:t,i:"</",c:[e.CLCM,e.CBCM,e.QSM,{cN:"string",b:"'\\\\?.",e:"'",i:"."},{cN:"number",b:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},e.CNM,{cN:"preprocessor",b:"#",e:"$",k:"if else elif endif define undef warning error line pragma",c:[{b:'include\\s*[<"]',e:'[>"]',k:"include",i:"\\n"},e.CLCM]},{cN:"stl_container",b:"\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",e:">",k:t,c:["self"]},{b:e.IR+"::"}]}}),r.registerLanguage("json",function(e){var t={literal:"true false null"},r=[e.QSM,e.CNM],n={cN:"value",e:",",eW:!0,eE:!0,c:r,k:t},a={b:"{",e:"}",c:[{cN:"attribute",b:'\\s*"',e:'"\\s*:\\s*',eB:!0,eE:!0,c:[e.BE],i:"\\n",starts:n}],i:"\\S"},i={b:"\\[",e:"\\]",c:[e.inherit(n,{cN:null})],i:"\\S"};return r.splice(r.length,0,a,i),{c:r,k:t,i:"\\S"}}),r.registerLanguage("coffeescript",function(e){var t={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super then unless until loop of by when and or is isnt not",literal:"true false null undefined yes no on off",reserved:"case default function var void with const let enum export import native __hasProp __extends __slice __bind __indexOf",built_in:"npm require console print module global window document"},r="[A-Za-z$_][0-9A-Za-z$_]*",n={cN:"subst",b:/#\{/,e:/}/,k:t},a=[e.BNM,e.inherit(e.CNM,{starts:{e:"(\\s*/)?",r:0}}),{cN:"string",v:[{b:/'''/,e:/'''/,c:[e.BE]},{b:/'/,e:/'/,c:[e.BE]},{b:/"""/,e:/"""/,c:[e.BE,n]},{b:/"/,e:/"/,c:[e.BE,n]}]},{cN:"regexp",v:[{b:"///",e:"///",c:[n,e.HCM]},{b:"//[gim]*",r:0},{b:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{cN:"property",b:"@"+r},{b:"`",e:"`",eB:!0,eE:!0,sL:"javascript"}];n.c=a;var i=e.inherit(e.TM,{b:r}),s="(\\(.*\\))?\\s*\\B[-=]>",c={cN:"params",b:"\\([^\\(]",rB:!0,c:[{b:/\(/,e:/\)/,k:t,c:["self"].concat(a)}]};return{aliases:["coffee","cson","iced"],k:t,i:/\/\*/,c:a.concat([{cN:"comment",b:"###",e:"###",c:[e.PWM]},e.HCM,{cN:"function",b:"^\\s*"+r+"\\s*=\\s*"+s,e:"[-=]>",rB:!0,c:[i,c]},{b:/[:\(,=]\s*/,r:0,c:[{cN:"function",b:s,e:"[-=]>",rB:!0,c:[c]}]},{cN:"class",bK:"class",e:"$",i:/[:="\[\]]/,c:[{bK:"extends",eW:!0,i:/[:="\[\]]/,c:[i]},i]},{cN:"attribute",b:r+":",e:":",rB:!0,rE:!0,r:0}])}}),r.registerLanguage("php",function(e){var t={cN:"variable",b:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},r={cN:"preprocessor",b:/<\?(php)?|\?>/},n={cN:"string",c:[e.BE,r],v:[{b:'b"',e:'"'},{b:"b'",e:"'"},e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null})]},a={v:[e.BNM,e.CNM]};return{aliases:["php3","php4","php5","php6"],cI:!0,k:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",c:[e.CLCM,e.HCM,{cN:"comment",b:"/\\*",e:"\\*/",c:[{cN:"phpdoc",b:"\\s@[A-Za-z]+"},r]},{cN:"comment",b:"__halt_compiler.+?;",eW:!0,k:"__halt_compiler",l:e.UIR},{cN:"string",b:"<<<['\"]?\\w+['\"]?$",e:"^\\w+;",c:[e.BE]},r,t,{b:/->+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{cN:"function",bK:"function",e:/[;{]/,eE:!0,i:"\\$|\\[|%",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)",c:["self",t,e.CBCM,n,a]}]},{cN:"class",bK:"class interface",e:"{",eE:!0,i:/[:\(\$"]/,c:[{bK:"extends implements"},e.UTM]},{bK:"namespace",e:";",i:/[\.']/,c:[e.UTM]},{bK:"use",e:";",c:[e.UTM]},{b:"=>"},n,a]}}),r.registerLanguage("nginx",function(e){var t={cN:"variable",v:[{b:/\$\d+/},{b:/\$\{/,e:/}/},{b:"[\\$\\@]"+e.UIR}]},r={eW:!0,l:"[a-z/_]+",k:{built_in:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},r:0,i:"=>",c:[e.HCM,{cN:"string",c:[e.BE,t],v:[{b:/"/,e:/"/},{b:/'/,e:/'/}]},{cN:"url",b:"([a-z]+):/",e:"\\s",eW:!0,eE:!0,c:[t]},{cN:"regexp",c:[e.BE,t],v:[{b:"\\s\\^",e:"\\s|{|;",rE:!0},{b:"~\\*?\\s+",e:"\\s|{|;",rE:!0},{b:"\\*(\\.[a-z\\-]+)+"},{b:"([a-z\\-]+\\.)+\\*"}]},{cN:"number",b:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{cN:"number",b:"\\b\\d+[kKmMgGdshdwy]*\\b",r:0},t]};return{aliases:["nginxconf"],c:[e.HCM,{b:e.UIR+"\\s",e:";|{",rB:!0,c:[{cN:"title",b:e.UIR,starts:r}],r:0}],i:"[^\\s\\}]"}}),r.registerLanguage("diff",function(){return{aliases:["patch"],c:[{cN:"chunk",r:10,v:[{b:/^\@\@ +\-\d+,\d+ +\+\d+,\d+ +\@\@$/},{b:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{b:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{cN:"header",v:[{b:/Index: /,e:/$/},{b:/=====/,e:/=====$/},{b:/^\-\-\-/,e:/$/},{b:/^\*{3} /,e:/$/},{b:/^\+\+\+/,e:/$/},{b:/\*{5}/,e:/\*{5}$/}]},{cN:"addition",b:"^\\+",e:"$"},{cN:"deletion",b:"^\\-",e:"$"},{cN:"change",b:"^\\!",e:"$"}]}}),r.registerLanguage("objectivec",function(e){var t={keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"NSString NSData NSDictionary CGRect CGPoint UIButton UILabel UITextView UIWebView MKMapView NSView NSViewController NSWindow NSWindowController NSSet NSUUID NSIndexSet UISegmentedControl NSObject UITableViewDelegate UITableViewDataSource NSThread UIActivityIndicator UITabbar UIToolBar UIBarButtonItem UIImageView NSAutoreleasePool UITableView BOOL NSInteger CGFloat NSException NSLog NSMutableString NSMutableArray NSMutableDictionary NSURL NSIndexPath CGSize UITableViewCell UIView UIViewController UINavigationBar UINavigationController UITabBarController UIPopoverController UIPopoverControllerDelegate UIImage NSNumber UISearchBar NSFetchedResultsController NSFetchedResultsChangeType UIScrollView UIScrollViewDelegate UIEdgeInsets UIColor UIFont UIApplication NSNotFound NSNotificationCenter NSNotification UILocalNotification NSBundle NSFileManager NSTimeInterval NSDate NSCalendar NSUserDefaults UIWindow NSRange NSArray NSError NSURLRequest NSURLConnection NSURLSession NSURLSessionDataTask NSURLSessionDownloadTask NSURLSessionUploadTask NSURLResponseUIInterfaceOrientation MPMoviePlayerController dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},r=/[a-zA-Z@][a-zA-Z0-9_]*/,n="@interface @class @protocol @implementation";return{aliases:["m","mm","objc","obj-c"],k:t,l:r,i:"</",c:[e.CLCM,e.CBCM,e.CNM,e.QSM,{cN:"string",v:[{b:'@"',e:'"',i:"\\n",c:[e.BE]},{b:"'",e:"[^\\\\]'",i:"[^\\\\][^']"}]},{cN:"preprocessor",b:"#",e:"$",c:[{cN:"title",v:[{b:'"',e:'"'},{b:"<",e:">"}]}]},{cN:"class",b:"("+n.split(" ").join("|")+")\\b",e:"({|$)",eE:!0,k:n,l:r,c:[e.UTM]},{cN:"variable",b:"\\."+e.UIR,r:0}]}}),r.registerLanguage("makefile",function(e){var t={cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]};return{aliases:["mk","mak"],c:[e.HCM,{b:/^\w+\s*\W*=/,rB:!0,r:0,starts:{cN:"constant",e:/\s*\W*=/,eE:!0,starts:{e:/$/,r:0,c:[t]}}},{cN:"title",b:/^[\w]+:\s*$/},{cN:"phony",b:/^\.PHONY:/,e:/$/,k:".PHONY",l:/[\.\w]+/},{b:/^\t+/,e:/$/,r:0,c:[e.QSM,t]}]}}),r.registerLanguage("ruby",function(e){var t="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",r="and false then defined module in return redo if BEGIN retry end for true self when next until do begin unless END rescue nil else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",n={cN:"yardoctag",b:"@[A-Za-z]+"},a={cN:"value",b:"#<",e:">"},i={cN:"comment",v:[{b:"#",e:"$",c:[n]},{b:"^\\=begin",e:"^\\=end",c:[n],r:10},{b:"^__END__",e:"\\n$"}]},s={cN:"subst",b:"#\\{",e:"}",k:r},c={cN:"string",c:[e.BE,s],v:[{b:/'/,e:/'/},{b:/"/,e:/"/},{b:/`/,e:/`/},{b:"%[qQwWx]?\\(",e:"\\)"},{b:"%[qQwWx]?\\[",e:"\\]"},{b:"%[qQwWx]?{",e:"}"},{b:"%[qQwWx]?<",e:">"},{b:"%[qQwWx]?/",e:"/"},{b:"%[qQwWx]?%",e:"%"},{b:"%[qQwWx]?-",e:"-"},{b:"%[qQwWx]?\\|",e:"\\|"},{b:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/}]},o={cN:"params",b:"\\(",e:"\\)",k:r},l=[c,a,i,{cN:"class",bK:"class module",e:"$|;",i:/=/,c:[e.inherit(e.TM,{b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{cN:"inheritance",b:"<\\s*",c:[{cN:"parent",b:"("+e.IR+"::)?"+e.IR}]},i]},{cN:"function",bK:"def",e:" |$|;",r:0,c:[e.inherit(e.TM,{b:t}),o,i]},{cN:"constant",b:"(::)?(\\b[A-Z]\\w*(::)?)+",r:0},{cN:"symbol",b:e.UIR+"(\\!|\\?)?:",r:0},{cN:"symbol",b:":",c:[c,{b:t}],r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{cN:"variable",b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{b:"("+e.RSR+")\\s*",c:[a,i,{cN:"regexp",c:[e.BE,s],i:/\n/,v:[{b:"/",e:"/[a-z]*"},{b:"%r{",e:"}[a-z]*"},{b:"%r\\(",e:"\\)[a-z]*"},{b:"%r!",e:"![a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}],r:0}];s.c=l,o.c=l;var u=[{b:/^\s*=>/,cN:"status",starts:{e:"$",c:l}},{cN:"prompt",b:/^\S[^=>\n]*>+/,starts:{e:"$",c:l}}];return{aliases:["rb","gemspec","podspec","thor","irb"],k:r,c:[i].concat(u).concat(l)}}),r.registerLanguage("bash",function(e){var t={cN:"variable",v:[{b:/\$[\w\d#@][\w\d_]*/},{b:/\$\{(.*?)\}/}]},r={cN:"string",b:/"/,e:/"/,c:[e.BE,t,{cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]}]},n={cN:"string",b:/'/,e:/'/};return{aliases:["sh","zsh"],l:/-?[a-z\.]+/,k:{keyword:"if then else elif fi for break continue while in do done exit return set declare case esac export exec function",literal:"true false",built_in:"printf echo read cd pwd pushd popd dirs let eval unset typeset readonly getopts source shopt caller type hash bind help sudo",operator:"-ne -eq -lt -gt -f -d -e -s -l -a"},c:[{cN:"shebang",b:/^#![^\n]+sh\s*$/,r:10},{cN:"function",b:/\w[\w\d_]*\s*\(\s*\)\s*\{/,rB:!0,c:[e.inherit(e.TM,{b:/\w[\w\d_]*/})],r:0},e.HCM,e.NM,r,n,t]}}),r.registerLanguage("cs",function(e){var t="abstract as base bool break byte case catch char checked const continue decimal default delegate do double else enum event explicit extern false finally fixed float for foreach goto if implicit in int interface internal is lock long new null object operator out override params private protected public readonly ref return sbyte sealed short sizeof stackalloc static string struct switch this throw true try typeof uint ulong unchecked unsafe ushort using virtual volatile void while async await protected public private internal ascending descending from get group into join let orderby partial select set value var where yield",r=e.IR+"(<"+e.IR+">)?";
|
||
|
||
return{aliases:["csharp"],k:t,i:/::/,c:[{cN:"comment",b:"///",e:"$",rB:!0,c:[{cN:"xmlDocTag",v:[{b:"///",r:0},{b:"<!--|-->"},{b:"</?",e:">"}]}]},e.CLCM,e.CBCM,{cN:"preprocessor",b:"#",e:"$",k:"if else elif endif define undef warning error line region endregion pragma checksum"},{cN:"string",b:'@"',e:'"',c:[{b:'""'}]},e.ASM,e.QSM,e.CNM,{bK:"class namespace interface",e:/[{;=]/,i:/[^\s:]/,c:[e.TM,e.CLCM,e.CBCM]},{bK:"new",e:/\s/,r:0},{cN:"function",b:"("+r+"\\s+)+"+e.IR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:t,c:[{b:e.IR+"\\s*\\(",rB:!0,c:[e.TM]},{cN:"params",b:/\(/,e:/\)/,k:t,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]}]}}),r.registerLanguage("markdown",function(){return{aliases:["md","mkdown","mkd"],c:[{cN:"header",v:[{b:"^#{1,6}",e:"$"},{b:"^.+?\\n[=-]{2,}$"}]},{b:"<",e:">",sL:"xml",r:0},{cN:"bullet",b:"^([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",v:[{b:"\\*.+?\\*"},{b:"_.+?_",r:0}]},{cN:"blockquote",b:"^>\\s+",e:"$"},{cN:"code",v:[{b:"`.+?`"},{b:"^( {4}| )",e:"$",r:0}]},{cN:"horizontal_rule",b:"^[-\\*]{3,}",e:"$"},{b:"\\[.+?\\][\\(\\[].*?[\\)\\]]",rB:!0,c:[{cN:"link_label",b:"\\[",e:"\\]",eB:!0,rE:!0,r:0},{cN:"link_url",b:"\\]\\(",e:"\\)",eB:!0,eE:!0},{cN:"link_reference",b:"\\]\\[",e:"\\]",eB:!0,eE:!0}],r:10},{b:"^\\[.+\\]:",rB:!0,c:[{cN:"link_reference",b:"\\[",e:"\\]:",eB:!0,eE:!0,starts:{cN:"link_url",e:"$"}}]}]}}),r.registerLanguage("ini",function(e){return{cI:!0,i:/\S/,c:[{cN:"comment",b:";",e:"$"},{cN:"title",b:"^\\[",e:"\\]"},{cN:"setting",b:"^[a-z0-9\\[\\]_-]+[ \\t]*=[ \\t]*",e:"$",c:[{cN:"value",eW:!0,k:"on off true false yes no",c:[e.QSM,e.NM],r:0}]}]}}),r.registerLanguage("http",function(){return{i:"\\S",c:[{cN:"status",b:"^HTTP/[0-9\\.]+",e:"$",c:[{cN:"number",b:"\\b\\d{3}\\b"}]},{cN:"request",b:"^[A-Z]+ (.*?) HTTP/[0-9\\.]+$",rB:!0,e:"$",c:[{cN:"string",b:" ",e:" ",eB:!0,eE:!0}]},{cN:"attribute",b:"^\\w",e:": ",eE:!0,i:"\\n|\\s|=",starts:{cN:"string",e:"$"}},{b:"\\n\\n",starts:{sL:"",eW:!0}}]}}),r.registerLanguage("java",function(e){var t=e.UIR+"(<"+e.UIR+">)?",r="false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private";return{aliases:["jsp"],k:r,i:/<\//,c:[{cN:"javadoc",b:"/\\*\\*",e:"\\*/",r:0,c:[{cN:"javadoctag",b:"(^|\\s)@[A-Za-z]+"}]},e.CLCM,e.CBCM,e.ASM,e.QSM,{cN:"class",bK:"class interface",e:/[{;=]/,eE:!0,k:"class interface",i:/[:"\[\]]/,c:[{bK:"extends implements"},e.UTM]},{bK:"new throw",e:/\s/,r:0},{cN:"function",b:"("+t+"\\s+)+"+e.UIR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:r,c:[{b:e.UIR+"\\s*\\(",rB:!0,c:[e.UTM]},{cN:"params",b:/\(/,e:/\)/,k:r,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]},e.CNM,{cN:"annotation",b:"@[A-Za-z]+"}]}}))}.call(this),function(){if(!t)if(Package.markdown){var n;if(e.isClient)n=function(e){return $("<div/>").html(e).text()};else{var a=Npm.require("html-entities").XmlEntities;a=new a,n=a.decode}var i=function(e,t){if(!t)return r.highlightAuto(n(e));try{return r.highlight(t,n(e))}catch(a){return n(e)}},s=Package.markdown.Showdown.converter;Package.markdown.Showdown.converter=function(e){var t=new s(e),r=t.makeHtml;return t.makeHtml=function(e){return e=r(e),e=e.replace(/<pre>\s*<code( class="(.+?)")?>([\s\S]*?)<\/code>\s*<\/pre>/g,function(e,t,r,n){if(r&&r.match(/hljs/))return e;var a=i(n,r);return"<pre><code class='hljs "+a.language+"'>"+a.value+"</code></pre>"})},t}}else if(Package["chuangbo:marked"]){var c=Package["chuangbo:marked"].marked;c.setOptions({highlight:function(e,t){if(!t)return r.highlightAuto(e).value;try{return r.highlight(t,e).value}catch(n){return e}}})}}.call(this),"undefined"==typeof Package&&(Package={}),Package["simple:highlight.js"]={hljs:r}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,e=Package["simple:highlight.js"].hljs,a=Package["rocketchat:lib"].RocketChat,n=Package["tap:i18n"].TAPi18next,i=Package["tap:i18n"].TAPi18n,l;(function(){l="object"==typeof l?l:{};var t=l,n,i=[].indexOf||function(t){for(var e=0,a=this.length;a>e;e++)if(e in this&&this[e]===t)return e;return-1};n=function(){function t(t){var a,n,l,h,c,g,o,r,u,p,k,f;if(s.trim(t.html)&&(null==t.tokens&&(t.tokens=[]),l=(t.html.match(/```/g)||[]).length)){for(l%2>0&&(t.html=t.html+"\n```",t.msg=t.msg+"\n```"),r=t.html.split(/(```\w*[\n\ ]?[\s\S]*?```+?)/),c=h=0,o=r.length;o>h;c=++h)u=r[c],n=u.match(/```(\w*)[\n\ ]?([\s\S]*?)```+?/),null!=n?(k=-1===n[0].indexOf("\n"),k?(g="",a=_.unescapeHTML(n[1]+" "+n[2])):(g=n[1],a=_.unescapeHTML(n[2])),p=i.call(e.listLanguages(),g)<0?e.highlightAuto(a):e.highlight(g,a),f="$"+Random.id()+"$",t.tokens.push({highlight:!0,token:f,text:"<pre><code class='hljs "+p.language+"'><span class='copyonly'>```<br></span>"+p.value+"<span class='copyonly'><br>```</span></code></pre>"}),r[c]=f):r[c]=u;t.html=r.join("")}return t}return t}(),a.callbacks.add("renderMessage",n,a.callbacks.priority.HIGH),a.Highlight=!0}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:highlight"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package["rocketchat:lib"].RocketChat,a=Package["tap:i18n"].TAPi18next,n=Package["tap:i18n"].TAPi18n,i;(function(){i="object"==typeof i?i:{};var a=i,n;n=function(){function t(t){var a,n,i,r,c;if(a=t,!_.isString(t)){if(!_.trim(t.html))return t;a=t.html}return c=null!=(n=e.user())&&null!=(i=n.settings)&&null!=(r=i.preferences)?r.highlights:void 0,_.forEach(c,function(e){return _.isBlank(e)?void 0:a=a.replace(new RegExp("(^|\\b|[\\s\\n\\r\\t.,،'\\\"\\+!?:-])("+s.escapeRegExp(e)+")($|\\b|[\\s\\n\\r\\t.,،'\\\"\\+!?:-])(?![^<]*>|[^<>]*<\\/)","gmi"),'$1<span class="highlight-text">$2</span>$3')}),t.html=a,t}return t}(),t.callbacks.add("renderMessage",n)}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:highlight-words"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.ecmascript.ECMAScript,r=Package.templating.Template,o=Package.check.check,a=Package.check.Match,i=Package["rocketchat:lib"].RocketChat,c=Package["babel-runtime"].babelHelpers,s=Package["ecmascript-runtime"].Symbol,u=Package["ecmascript-runtime"].Map,l=Package["ecmascript-runtime"].Set,p=Package.promise.Promise,m=Package.blaze.Blaze,f=Package.blaze.UI,h=Package.blaze.Handlebars,d=Package.spacebars.Spacebars,g=Package["tap:i18n"].TAPi18next,k=Package["tap:i18n"].TAPi18n,I=Package.htmljs.HTML,w,P;(function(){w="object"==typeof w?w:{};var e=w;P={}}).call(this),function(){w="object"==typeof w?w:{};var e=w;P.Importers={},P.AddImporter=function(e,t,n){return null==P.Importers[e]?P.Importers[e]={name:n.name,importer:t,fileTypeRegex:n.fileTypeRegex,description:n.description}:void 0}}.call(this),function(){r.__checkName("adminImport"),r.adminImport=new r("Template.adminImport",function(){var e=this;return I.SECTION({"class":"page-container page-home page-static page-settings"},"\n ",I.HEAD({"class":"fixed-title"},"\n ",d.include(e.lookupTemplate("burger")),"\n ",I.Raw('<h2>\n <span class="room-title">Import</span>\n </h2>'),"\n "),"\n ",I.DIV({"class":"content"},"\n ",m.Unless(function(){return d.call(e.lookup("isAdmin"))},function(){return["\n ",I.P("You are not authorized to view this page."),"\n "]},function(){return["\n ",m.If(function(){return d.call(e.lookup("isImporters"))},function(){return["\n ",I.DIV({"class":"rocket-form"},"\n ",I.FIELDSET("\n ",m.Each(function(){return d.call(e.lookup("importers"))},function(){return["\n ",I.DIV({"class":"section"},"\n ",I.H1(m.View("lookup:name",function(){return d.mustache(e.lookup("name"))})),"\n ",I.DIV({"class":"section-content"},"\n ",I.DIV(m.View("lookup:getDescription",function(){return d.mustache(e.lookup("getDescription"),e.lookup("."))})),"\n ",I.BUTTON({"class":"button start-import"},"Start"),"\n\n "),"\n "),"\n "]}),"\n "),"\n "),"\n "]},function(){return"\n No Importers Available\n "}),"\n "]}),"\n "),"\n ")})}.call(this),function(){w="object"==typeof w?w:{};var n=w;r.adminImport.helpers({isAdmin:function(){return i.authz.hasRole(e.userId(),"admin")},isImporters:function(){return Object.keys(P.Importers).length>0},getDescription:function(e){return k.__("Importer_From_Description",{from:e.name})},importers:function(){var e;return e=[],_.each(P.Importers,function(t,n){return t.key=n,e.push(t)}),e}}),r.adminImport.events({"click .start-import":function(n){var r;return r=this,e.call("setupImporter",r.key,function(e,n){return e?(console.log(t("importer_setup_error"),r.key,e),toastr.error(t("importer_setup_error"))):FlowRouter.go("/admin/import/prepare/"+r.key)})}})}.call(this),function(){r.__checkName("adminImportPrepare"),r.adminImportPrepare=new r("Template.adminImportPrepare",function(){var e=this;return I.SECTION({"class":"page-container page-home page-static page-settings"},"\n ",d.With(function(){return d.call(e.lookup("importer"))},function(){return["\n ",I.HEAD({"class":"fixed-title"},"\n ",d.include(e.lookupTemplate("burger")),"\n ",I.H2("\n ",I.SPAN({"class":"room-title"},m.View("lookup:name",function(){return d.mustache(e.lookup("name"))})," - ",m.View("lookup:_",function(){return d.mustache(e.lookup("_"),e.lookup("description"))})),"\n "),"\n "),"\n ",I.DIV({"class":"content"},"\n ",m.Unless(function(){return d.call(e.lookup("isAdmin"))},function(){return["\n ",I.P("You are not authorized to view this page."),"\n "]},function(){return["\n ",I.DIV({"class":"rocket-form"},"\n ",I.FIELDSET("\n ",m.If(function(){return d.call(e.lookup("isLoaded"))},function(){return["\n ",I.DIV({"class":"section"},"\n ",I.H1(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Actions")})),"\n ",I.DIV({"class":"section-content"},"\n ",I.BUTTON({"class":"button restart"},I.I({"class":"icon-send"}),I.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Importer_Prepare_Restart_Import")}))),"\n ",I.BUTTON({"class":"button start"},I.I({"class":"icon-send"}),I.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Importer_Prepare_Start_Import")}))),"\n ",I.BUTTON({"class":"button uncheck-deleted-users"},I.I({"class":"icon-send"}),I.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Importer_Prepare_Uncheck_Deleted_Users")}))),"\n ",I.BUTTON({"class":"button uncheck-archived-channels"},I.I({"class":"icon-send"}),I.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Importer_Prepare_Uncheck_Archived_Channels")}))),"\n "),"\n "),"\n\n ",I.DIV({"class":"section"},"\n ",I.H1(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Users")})),"\n ",I.DIV({"class":"section-content"},"\n ",I.UL("\n ",m.Each(function(){return d.call(e.lookup("users"))},function(){return["\n ",m.Unless(function(){return d.call(e.lookup("is_bot"))},function(){return["\n ",I.LI("\n ",I.INPUT({type:"checkbox",name:function(){return d.mustache(e.lookup("user_id"))},checked:"checked"}),m.View("lookup:username",function(){return d.mustache(e.lookup("username"))})," - ",m.View("lookup:email",function(){return d.mustache(e.lookup("email"))}),"\n ",m.If(function(){return d.call(e.lookup("is_deleted"))},function(){return[" ",I.EM("(",m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Deleted")}),")")]}),"\n "),"\n "]}),"\n "]}),"\n "),"\n "),"\n "),"\n\n ",I.DIV({"class":"section"},"\n ",I.H1(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Channels")})),"\n ",I.DIV({"class":"section-content"},"\n ",I.UL("\n ",m.Each(function(){return d.call(e.lookup("channels"))},function(){return["\n ",I.LI("\n ",I.INPUT({type:"checkbox",name:function(){return d.mustache(e.lookup("channel_id"))},checked:"checked"}),m.View("lookup:name",function(){return d.mustache(e.lookup("name"))}),"\n ",m.If(function(){return d.call(e.lookup("is_archived"))},function(){return[" ",I.EM("(",m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Importer_Archived")}),")")]}),"\n "),"\n "]}),"\n "),"\n "),"\n "),"\n "]},function(){return["\n ",m.If(function(){return d.call(e.lookup("isPreparing"))},function(){return["\n ",d.include(e.lookupTemplate("loading")),"\n "]},function(){return["\n ",I.INPUT({type:"file","class":"import-file-input",accept:function(){return d.mustache(e.lookup("fileType"))}}),"\n "]}),"\n "]}),"\n "),"\n "),"\n "]}),"\n "),"\n "]}),"\n ")})}.call(this),function(){w="object"==typeof w?w:{};var n=w;r.adminImportPrepare.helpers({isAdmin:function(){return i.authz.hasRole(e.userId(),"admin")},importer:function(){var e,t;return t=FlowRouter.getParam("importer"),e=void 0,_.each(P.Importers,function(n,r){return n.key=r,r===t?e=n:void 0}),e},isLoaded:function(){return r.instance().loaded.get()},isPreparing:function(){return r.instance().preparing.get()},users:function(){return r.instance().users.get()},channels:function(){return r.instance().channels.get()}}),r.adminImportPrepare.events({"change .import-file-input":function(n,r){var o,a,i,c,s,u,l,p;for(c=this,a=n.originalEvent||n,i=a.target.files,i&&0!==i.length||(i=(null!=(p=a.dataTransfer)?p.files:void 0)||[]),s=0,u=i.length;u>s;s++){if(o=i[s],r.preparing.set(!0),!c.fileTypeRegex.test(o.type))return toastr.error(t("Invalid_Import_File_Type")),void r.preparing.set(!1);l=new FileReader,l.readAsDataURL(o),l.onloadend=function(){return e.call("prepareImport",c.key,l.result,o.type,o.name,function(e,n){return e?(console.warn("Errored out preparing the import:",e),void toastr.error(e.reason)):n.step?(console.warn("Invalid file."),toastr.error(t("Invalid_Export_File",c.key)),void r.preparing.set(!1)):(r.users.set(n.users),r.channels.set(n.channels),r.loaded.set(!0),r.preparing.set(!1))})}}},"click .button.start":function(t,n){var r,o,a,i,c,s,u,l,p,m;for(r=this,$(r).prop("disabled",!0),a=this,l=n.users.get(),i=0,s=l.length;s>i;i++)m=l[i],m.do_import=$("[name="+m.user_id+"]").is(":checked");for(p=n.channels.get(),c=0,u=p.length;u>c;c++)o=p[c],o.do_import=$("[name="+o.channel_id+"]").is(":checked");return e.call("startImport",FlowRouter.getParam("importer"),{users:n.users.get(),channels:n.channels.get()},function(e,t){return e?(console.warn("Error on starting the import:",e),void toastr.error(e.reason)):FlowRouter.go("/admin/import/progress/"+FlowRouter.getParam("importer"))})},"click .button.restart":function(t,n){return e.call("restartImport",FlowRouter.getParam("importer"),function(e,t){return e?(console.warn("Error while restarting the import:",e),void toastr.error(e.reason)):(n.users.set([]),n.channels.set([]),n.loaded.set(!1))})},"click .button.uncheck-deleted-users":function(e,t){var n,r,o,a,i;for(o=t.users.get(),a=[],n=0,r=o.length;r>n;n++)i=o[n],i.is_deleted&&a.push($("[name="+i.user_id+"]").attr("checked",!1));return a},"click .button.uncheck-archived-channels":function(e,t){var n,r,o,a,i;for(a=t.channels.get(),i=[],r=0,o=a.length;o>r;r++)n=a[r],n.is_archived&&i.push($("[name="+n.channel_id+"]").attr("checked",!1));return i}}),r.adminImportPrepare.onCreated(function(){var t,n;return t=this,this.preparing=new ReactiveVar(!0),this.loaded=new ReactiveVar(!1),this.users=new ReactiveVar([]),this.channels=new ReactiveVar([]),n=function(r){if(null!=r?!r.step:!0)return console.warn("Invalid progress information.",r);switch(r.step){case"importer_importing_started":case"importer_importing_users":case"importer_importing_channels":case"importer_importing_messages":case"importer_finishing":return FlowRouter.go("/admin/import/progress/"+FlowRouter.getParam("importer"));case"importer_user_selection":return e.call("getSelectionData",FlowRouter.getParam("importer"),function(e,n){return t.users.set(n.users),t.channels.set(n.channels),t.loaded.set(!0),t.preparing.set(!1)});case"importer_new":return t.preparing.set(!1);default:return e.call("restartImport",FlowRouter.getParam("importer"),function(e,t){return n(t)})}},e.call("getImportProgress",FlowRouter.getParam("importer"),function(r,o){return r?(console.warn("Error while getting the import progress:",r),void toastr.error(r.reason)):void 0===o?e.call("setupImporter",FlowRouter.getParam("importer"),function(e,r){return t.preparing.set(!1),n(r)}):n(o)})})}.call(this),function(){r.__checkName("adminImportProgress"),r.adminImportProgress=new r("Template.adminImportProgress",function(){var e=this;return I.SVG({"class":"rocket-loader",version:"1.1",x:"0px",y:"0px",width:"200",height:"275",viewBox:"0 0 200 275","enable-background":"new 0 0 200 275","xml:space":"preserve",xmlns:"http://www.w3.org/2000/svg","xmlns:svg":"http://www.w3.org/2000/svg"},"\n ",I.G("\n ",I.G("\n ",I.PATH({"class":"outer",fill:"#CC3333",d:"m188.146,99.881c0,-8.852 -2.647,-17.341 -7.873,-25.23199c-4.69098,-7.083 -11.263,-13.354 -19.53299,\n -18.637c-15.96701,-10.199 -36.953,-15.817 -59.089,-15.817c-7.395,0 -14.68201,0.625 -21.75102,1.863c-4.38699,-4.105 -9.521,-7.798 -14.953,\n -10.72c-29.024,-14.066 -53.09401,-0.331 -53.09401,-0.331s22.379,18.383 18.739,34.499c-10.012,9.931 -15.438,21.90601 -15.438,34.375c0,\n 0.04 0.002,0.08 0.003,0.119c-0.001,0.04 -0.003,0.08 -0.003,0.119c0,12.46899 5.426,24.44299 15.438,34.37499c3.64,16.11401 -18.739,\n 34.498 -18.739,34.498s24.069,13.735 53.09401,-0.33c5.433,-2.922 10.566,-6.61501 14.953,-10.72101c7.06902,1.239 14.356,1.86302 21.75102,\n 1.86302c22.13599,0 43.12199,-5.617 59.089,-15.81599c8.27098,-5.28201 14.84201,-11.554 19.53299,-18.63701c5.226,-7.89201 7.873,-16.38 7.873,\n -25.23201c0,-0.04 -0.002,-0.08 -0.002,-0.119s0.002,-0.07999 0.002,-0.119l0,-0.00002l0,0.00001l0,0.00001z"}),"\n ",I.PATH({"class":"inner",fill:"#FFFFFF",d:"m101.686,51.726c41.84301,0 75.76501,21.667 75.76501,48.395c0,26.728 -33.922,48.396 -75.76501,48.396c-9.31699,\n 0 -18.239,-1.076 -26.48299,-3.04199c-8.37801,10.07999 -26.809,24.09201 -44.713,19.562c5.823,-6.25499 14.452,-16.825 12.604,-34.23299c-10.731,\n -8.35101 -17.173,-19.03699 -17.173,-30.68301c0,-26.728 33.921,-48.395 75.76499,-48.395"}),"\n ",I.G("\n ",I.CIRCLE({fill:"#CC3333",cx:"136.68",cy:"100.121",r:"10.063"}),"\n ",I.CIRCLE({fill:"#CC3333",cx:"101.685",cy:"100.121",r:"10.064"}),"\n ",I.CIRCLE({fill:"#CC3333",cx:"66.691",cy:"100.121",r:"10.064"}),"\n "),"\n ",I.PATH({"class":"inner",fill:"#CCCCCC",d:"m101.686,142.149c-9.31699,0 -18.239,-0.933 -26.48299,-2.636c-7.397,7.713 -22.634,18.08099 -38.425,\n 17.69901c-2.079,3.153 -4.34,5.73199 -6.288,7.82399c17.904,4.53 36.335,-9.481 44.713,-19.562c8.244,1.966 17.166,3.04201 26.48299,\n 3.04201c41.507,0 75.214,-21.32401 75.75201,-47.755c-0.53899,22.909 -34.24599,41.38801 -75.75201,41.38801l0,-0.00002z"}),"\n "),"\n ",I.TEXT({"xml:space":"preserve","text-anchor":"middle","font-family":"serif","font-size":"24",y:"245",x:"100","stroke-width":"0",stroke:"#000000",fill:"#044974"},m.View("lookup:step",function(){return d.mustache(e.lookup("step"))})),"\n ",I.TEXT({fill:"#044974",stroke:"#000000","stroke-width":"0",x:"100.01563",y:"270","font-size":"24","font-family":"serif","text-anchor":"middle","xml:space":"preserve"},m.View("lookup:completed",function(){return d.mustache(e.lookup("completed"))})," / ",m.View("lookup:total",function(){return d.mustache(e.lookup("total"))})),"\n "),"\n ")})}.call(this),function(){w="object"==typeof w?w:{};var n=w;r.adminImportProgress.helpers({step:function(){return r.instance().step.get()},completed:function(){return r.instance().completed.get()},total:function(){return r.instance().total.get()}}),r.adminImportProgress.onCreated(function(){var n;return n=this,this.step=new ReactiveVar(t("Loading...")),this.completed=new ReactiveVar(0),this.total=new ReactiveVar(0),this.updateProgress=function(){return e.call("getImportProgress",FlowRouter.getParam("importer"),function(e,r){return e?(console.warn("Error on getting the import progress:",e),void toastr.error(t("importer_progress_error"))):r?"importer_done"===r.step?(toastr.success(t(r.step)),FlowRouter.go("/admin/import")):"importer_import_failed"===r.step?(toastr.error(t(r.step)),FlowRouter.go("/admin/import/prepare/"+FlowRouter.getParam("importer"))):(n.step.set(t(r.step)),n.completed.set(r.count.completed),n.total.set(r.count.total),setTimeout(function(){return n.updateProgress()},100)):(toastr.warning(t("importer_not_in_progress")),FlowRouter.go("/admin/import/prepare/"+FlowRouter.getParam("importer")))})},n.updateProgress()})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:importer"]={Importer:P}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a=Package["rocketchat:lib"].RocketChat,t=Package["rocketchat:importer"].Importer,c=Package["tap:i18n"].TAPi18next,i=Package["tap:i18n"].TAPi18n,o;(function(){o="object"==typeof o?o:{};var e=o;t.AddImporter("hipchat",t.HipChat,{name:"HipChat",description:i.__("Importer_From_Description",{from:"HipChat"}),fileTypeRegex:new RegExp("application/.*?zip")})}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:importer-hipchat"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a=Package["rocketchat:lib"].RocketChat,c=Package["rocketchat:importer"].Importer,t=Package["tap:i18n"].TAPi18next,o=Package["tap:i18n"].TAPi18n,r;(function(){r="object"==typeof r?r:{};var e=r;c.AddImporter("slack",c.Slack,{name:"Slack",description:o.__("Importer_From_Description",{from:"Slack"}),fileTypeRegex:new RegExp("application/.*?zip")})}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:importer-slack"]={}}();
|
||
|
||
!function(){var n=Package.meteor.Meteor,e=Package.underscore._,o=Package.ecmascript.ECMAScript,a=Package["simple:highlight.js"].hljs,i=Package["rocketchat:lib"].RocketChat,r=Package["rocketchat:logger"].Logger,u=Package["kadira:flow-router"].FlowRouter,l=Package.templating.Template,s=Package["babel-runtime"].babelHelpers,c=Package["ecmascript-runtime"].Symbol,m=Package["ecmascript-runtime"].Map,p=Package["ecmascript-runtime"].Set,d=Package.promise.Promise,_=Package["tap:i18n"].TAPi18next,h=Package["tap:i18n"].TAPi18n,k=Package.blaze.Blaze,g=Package.blaze.UI,f=Package.blaze.Handlebars,V=Package.spacebars.Spacebars,I=Package.htmljs.HTML,w;(function(){w="object"==typeof w?w:{};var n=w;i.integrations={}}).call(this),function(){w="object"==typeof w?w:{};var e=w;this.ChatIntegrations=new n.Collection("rocketchat_integrations")}.call(this),function(){w="object"==typeof w?w:{};var e=w;n.subscribe("integrations"),i.AdminBox.addOption({href:"admin-integrations",i18nLabel:"Integrations",permissionGranted:function(){return i.authz.hasAllPermission("manage-integrations")}})}.call(this),function(){w="object"==typeof w?w:{};var n=w;u.route("/admin/integrations",{name:"admin-integrations",action:function(n){return i.TabBar.showGroup("admin-integrations"),BlazeLayout.render("main",{center:"pageSettingsContainer",pageTitle:t("Integrations"),pageTemplate:"integrations"})}}),u.route("/admin/integrations/new",{name:"admin-integrations-new",action:function(n){return i.TabBar.showGroup("admin-integrations"),BlazeLayout.render("main",{center:"pageSettingsContainer",pageTitle:t("Integration_New"),pageTemplate:"integrationsNew"})}}),u.route("/admin/integrations/incoming/:id?",{name:"admin-integrations-incoming",action:function(n){return i.TabBar.showGroup("admin-integrations"),BlazeLayout.render("main",{center:"pageSettingsContainer",pageTitle:t("Integration_Incoming_WebHook"),pageTemplate:"integrationsIncoming",params:n})}}),u.route("/admin/integrations/outgoing/:id?",{name:"admin-integrations-outgoing",action:function(n){return i.TabBar.showGroup("admin-integrations"),BlazeLayout.render("main",{center:"pageSettingsContainer",pageTitle:t("Integration_Outgoing_WebHook"),pageTemplate:"integrationsOutgoing",params:n})}})}.call(this),function(){l.__checkName("integrations"),l.integrations=new l("Template.integrations",function(){var n=this;return I.DIV({"class":"permissions-manager"},"\n ",k.If(function(){return V.call(n.lookup("hasPermission"))},function(){return["\n ",I.A({href:function(){return V.mustache(n.lookup("pathFor"),"admin-integrations-new")},"class":"button primary new-role"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"New_integration")})),"\n\n ",I.DIV({"class":"rocket-form"},"\n ",I.DIV({"class":"section"},"\n ",I.DIV({"class":"admin-integrations-new-panel"},"\n ",k.Each(function(){return V.call(n.lookup("integrations"))},function(){return["\n ",k.If(function(){return V.dataMustache(n.lookup("$eq"),n.lookup("type"),"webhook-incoming")},function(){return["\n ",I.A({href:function(){return V.mustache(n.lookup("pathFor"),"admin-integrations-incoming",V.kw({id:n.lookup("_id")}))}},"\n ",I.DIV({"class":"admin-integrations-new-item"},"\n ",I.I({"class":"icon-login"}),"\n ",I.DIV({"class":"admin-integrations-new-item-body"},"\n ",I.DIV({"class":"admin-integrations-new-item-title"},"\n Incoming WebHook ",k.If(function(){return V.call(n.lookup("name"))},function(){return["- ",k.View("lookup:name",function(){return V.mustache(n.lookup("name"))})]}),"\n "),"\n ",I.DIV({"class":"admin-integrations-new-item-description"},"\n ",k.View("lookup:_",function(){return V.makeRaw(V.mustache(n.lookup("_"),"Post_to_s_as_s",n.lookup("channel"),n.lookup("username")))}),"\n "),"\n ",I.DIV({"class":"admin-integrations-new-item-description"},"\n ",k.View("lookup:_",function(){return V.makeRaw(V.mustache(n.lookup("_"),"Created_at_s_by_s",V.dataMustache(n.lookup("dateFormated"),n.lookup("_createdAt")),V.dot(n.lookup("_createdBy"),"username")))}),"\n "),"\n "),"\n ",I.I({"class":"icon-angle-right"}),"\n "),"\n "),"\n "]}),"\n "]},function(){return["\n ",I.H1(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"There_are_no_integrations")})),"\n "]}),"\n ",k.Each(function(){return V.call(n.lookup("integrations"))},function(){return["\n ",k.If(function(){return V.dataMustache(n.lookup("$eq"),n.lookup("type"),"webhook-outgoing")},function(){return["\n ",I.A({href:function(){return V.mustache(n.lookup("pathFor"),"admin-integrations-outgoing",V.kw({id:n.lookup("_id")}))}},"\n ",I.DIV({"class":"admin-integrations-new-item"},"\n ",I.I({"class":"icon-login"}),"\n ",I.DIV({"class":"admin-integrations-new-item-body"},"\n ",I.DIV({"class":"admin-integrations-new-item-title"},"\n Outgoing WebHook ",k.If(function(){return V.call(n.lookup("name"))},function(){return["- ",k.View("lookup:name",function(){return V.mustache(n.lookup("name"))})]}),"\n "),"\n ",I.DIV({"class":"admin-integrations-new-item-description"},"\n ",k.View("lookup:_",function(){return V.makeRaw(V.mustache(n.lookup("_"),"Created_at_s_by_s",V.dataMustache(n.lookup("dateFormated"),n.lookup("_createdAt")),V.dot(n.lookup("_createdBy"),"username")))}),"\n "),"\n "),"\n ",I.I({"class":"icon-angle-right"}),"\n "),"\n "),"\n "]}),"\n "]}),"\n "),"\n "),"\n "),"\n "]},function(){return["\n ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Not_authorized")}),"\n "]}),"\n ")})}.call(this),function(){w="object"==typeof w?w:{};var n=w;l.integrations.helpers({hasPermission:function(){return i.authz.hasAllPermission("manage-integrations")},integrations:function(){return ChatIntegrations.find()},dateFormated:function(n){return moment(n).format("L LT")}})}.call(this),function(){l.__checkName("integrationsNew"),l.integrationsNew=new l("Template.integrationsNew",function(){var n=this;return I.DIV({"class":"permissions-manager"},"\n ",k.If(function(){return V.call(n.lookup("hasPermission"))},function(){return["\n ",I.A({href:function(){return V.mustache(n.lookup("pathFor"),"admin-integrations")}},I.I({"class":"icon-angle-left"})," ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Back_to_integrations")})),I.BR(),I.BR(),"\n\n ",I.DIV({"class":"rocket-form"},"\n ",I.DIV({"class":"section"},"\n ",I.DIV({"class":"admin-integrations-new-panel"},"\n ",I.A({href:function(){return V.mustache(n.lookup("pathFor"),"admin-integrations-incoming")}},"\n ",I.DIV({"class":"admin-integrations-new-item"},"\n ",I.I({"class":"icon-login"}),"\n ",I.DIV({"class":"admin-integrations-new-item-body"},"\n ",I.DIV({"class":"admin-integrations-new-item-title"},"\n Incoming WebHook\n "),"\n ",I.DIV({"class":"admin-integrations-new-item-description"},"\n ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Send_data_into_RocketChat_in_realtime")}),"\n "),"\n "),"\n ",I.I({"class":"icon-angle-right"}),"\n "),"\n "),"\n ",I.A({href:function(){return V.mustache(n.lookup("pathFor"),"admin-integrations-outgoing")}},"\n ",I.DIV({"class":"admin-integrations-new-item"},"\n ",I.I({"class":"icon-logout"}),"\n ",I.DIV({"class":"admin-integrations-new-item-body"},"\n ",I.DIV({"class":"admin-integrations-new-item-title"},"\n Outgoing WebHook\n "),"\n ",I.DIV({"class":"admin-integrations-new-item-description"},"\n Get data out of Rocket.Chat in real-time.\n "),"\n "),"\n ",I.I({"class":"icon-angle-right"}),"\n "),"\n "),"\n "),"\n "),"\n "),"\n "]},function(){return["\n ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Not_authorized")}),"\n "]}),"\n ")})}.call(this),function(){w="object"==typeof w?w:{};var n=w;l.integrationsNew.helpers({hasPermission:function(){return i.authz.hasAllPermission("manage-integrations")}})}.call(this),function(){l.__checkName("integrationsIncoming"),l.integrationsIncoming=new l("Template.integrationsIncoming",function(){var n=this;return I.DIV({"class":"permissions-manager"},"\n ",k.If(function(){return V.call(n.lookup("hasPermission"))},function(){return["\n ",I.A({href:function(){return V.mustache(n.lookup("pathFor"),"admin-integrations")}},I.I({"class":"icon-angle-left"})," ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Back_to_integrations")})),I.BR(),I.BR(),"\n ",I.DIV({"class":"rocket-form"},"\n ",I.DIV({"class":"section"},"\n ",I.DIV({"class":"section-content"},"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Enabled")})),"\n ",I.DIV("\n ",I.LABEL(I.INPUT({type:"radio",name:"enabled",value:"1",checked:function(){return V.mustache(n.lookup("$eq"),V.dot(n.lookup("data"),"enabled"),!0)}})," ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"True")})),"\n ",I.LABEL(I.INPUT({type:"radio",name:"enabled",value:"0",checked:function(){return V.mustache(n.lookup("$neq"),V.dot(n.lookup("data"),"enabled"),!0)}})," ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"False")})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Name")})," (",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"optional")}),")"),"\n ",I.DIV("\n ",I.INPUT({type:"text",name:"name",value:function(){return V.mustache(V.dot(n.lookup("data"),"name"))},placeholder:function(){return V.mustache(n.lookup("_"),"Optional")}}),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"You_should_name_it_to_easily_manage_your_integrations")})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Post_to_Channel")})),"\n ",I.DIV("\n ",I.INPUT({type:"text",name:"channel",value:function(){return V.mustache(V.dot(n.lookup("data"),"channel"))},placeholder:function(){return V.mustache(n.lookup("_"),"User_or_channel_name")}}),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Messages_that_are_sent_to_the_Incoming_WebHook_will_be_posted_here")})),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.makeRaw(V.mustache(n.lookup("_"),"Start_with_s_for_user_or_s_for_channel_Eg_s_or_s","@","#","@john","#general"))})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Post_as")})),"\n ",I.DIV("\n ",k.If(function(){return V.call(V.dot(n.lookup("data"),"token"))},function(){return["\n ",I.INPUT({type:"text",name:"username",value:function(){return V.mustache(V.dot(n.lookup("data"),"username"))},readonly:"readonly"}),"\n "]},function(){return["\n ",I.INPUT({type:"text",name:"username",value:function(){return V.mustache(V.dot(n.lookup("data"),"username"))}}),"\n "]}),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Choose_the_username_that_this_integration_will_post_as")})),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Should_exists_a_user_with_this_username")})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Alias")})," (",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"optional")}),")"),"\n ",I.DIV("\n ",I.INPUT({type:"text",name:"alias",value:function(){return V.mustache(V.dot(n.lookup("data"),"alias"))},placeholder:function(){return V.mustache(n.lookup("_"),"Optional")}}),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Choose_the_alias_that_will_appear_before_the_username_in_messages")})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Avatar_URL")})," (",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"optional")}),")"),"\n ",I.DIV("\n ",I.INPUT({type:"url",name:"avatar",value:function(){return V.mustache(V.dot(n.lookup("data"),"avatar"))},placeholder:function(){return V.mustache(n.lookup("_"),"Optional")}}),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"You_can_change_a_different_avatar_too")})),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Should_be_a_URL_of_an_image")})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Emoji")})," (",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"optional")}),")"),"\n ",I.DIV("\n ",I.INPUT({type:"text",name:"emoji",value:function(){return V.mustache(V.dot(n.lookup("data"),"emoji"))},placeholder:function(){return V.mustache(n.lookup("_"),"Optional")}}),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"You_can_use_an_emoji_as_avatar")})),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.makeRaw(V.mustache(n.lookup("_"),"Example_s",":ghost:"))})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Script_Enabled")})),"\n ",I.DIV("\n ",I.LABEL(I.INPUT({type:"radio",name:"scriptEnabled",value:"1",checked:function(){return V.mustache(n.lookup("$eq"),V.dot(n.lookup("data"),"scriptEnabled"),!0)}})," ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"True")})),"\n ",I.LABEL(I.INPUT({type:"radio",name:"scriptEnabled",value:"0",checked:function(){return V.mustache(n.lookup("$neq"),V.dot(n.lookup("data"),"scriptEnabled"),!0)}})," ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"False")})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Script")})),"\n ",I.DIV("\n ",I.DIV({"class":"code-mirror-box"},"\n ",I.DIV({"class":"title"},"\n ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Script")}),"\n "),"\n ",k._TemplateWith(function(){return{name:V.call("script"),options:V.call(n.lookup("editorOptions")),code:V.call(V.dot(n.lookup("data"),"script"))}},function(){return V.include(n.lookupTemplate("CodeMirror"))}),"\n ",I.DIV({"class":"buttons"},"\n ",I.BUTTON({"class":"button button-primary button-fullscreen"},"\n Full Screen\n "),"\n ",I.BUTTON({"class":"button button-primary button-restore"},"\n Exit Full Screen\n "),"\n "),"\n "),"\n ",k.If(function(){return V.call(V.dot(n.lookup("data"),"scriptError"))},function(){return["\n ",I.DIV({"class":"code-error-box"},"\n ",I.DIV({"class":"title"},"\n ",k.View("lookup:data.scriptError.name",function(){return V.mustache(V.dot(n.lookup("data"),"scriptError","name"))}),"\n "),"\n ",I.PRE(k.View("lookup:data.scriptError.codeFrame",function(){return V.mustache(V.dot(n.lookup("data"),"scriptError","codeFrame"))})),"\n "),"\n "]}),"\n "),"\n "),"\n ",k.If(function(){return V.call(V.dot(n.lookup("data"),"token"))},function(){return["\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL("Webhook URL"),"\n ",I.DIV("\n ",I.INPUT({type:"text",name:"webhookurl",value:function(){return V.mustache(V.dot(n.lookup("data"),"url"))},readonly:"readonly"}),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Send_your_JSON_payloads_to_this_URL")})),"\n ",I.DIV({"class":"settings-description"},I.A({"class":"clipboard","data-clipboard-target":"[name=webhookurl]"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"COPY_TO_CLIPBOARD")}))),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL("Token"),"\n ",I.DIV("\n ",I.INPUT({type:"text",name:"completeToken",value:function(){return V.mustache(V.dot(n.lookup("data"),"completeToken"))},readonly:"readonly"}),"\n ",I.DIV({"class":"settings-description"},I.A({"class":"clipboard","data-clipboard-target":"[name=completeToken]"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"COPY_TO_CLIPBOARD")}))),"\n "),"\n "),"\n "]}),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Example")})),"\n ",I.DIV("\n ",I.PRE(I.CODE({"class":"hljs json json-example"},k.View("lookup:exampleJson",function(){return V.makeRaw(V.mustache(n.lookup("exampleJson")))}))),"\n ",k.If(function(){return V.call(n.lookup("curl"))},function(){return["\n ",I.INPUT({type:"text",name:"curl",value:function(){return V.mustache(n.lookup("curl"))},readonly:"readonly"}),"\n ",I.DIV({"class":"settings-description"},I.A({"class":"clipboard","data-clipboard-target":"[name=curl]"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"COPY_TO_CLIPBOARD")}))),"\n "]}),"\n "),"\n "),"\n ",I.DIV({"class":"input-line message-example"},"\n ",k._TemplateWith(function(){return V.dataMustache(n.lookup("nrrargs"),"message",n.lookup("example"))},function(){return V.include(n.lookupTemplate("nrr"),function(){return null})}),"\n "),"\n "),"\n "),"\n ",I.DIV({"class":"submit"},"\n ",k.If(function(){return V.call(V.dot(n.lookup("data"),"token"))},function(){return["\n ",I.BUTTON({"class":"button red delete"},I.I({"class":"icon-trash"}),I.SPAN(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Delete")}))),"\n "]}),"\n ",I.BUTTON({"class":"button save"},I.I({"class":"icon-send"}),I.SPAN(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Save_changes")}))),"\n "),"\n "),"\n "]},function(){return["\n ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Not_authorized")}),"\n "]}),"\n ")})}.call(this),function(){w="object"==typeof w?w:{};var e=w;l.integrationsIncoming.onCreated(function(){return this.record=new ReactiveVar({username:"rocket.cat"})}),l.integrationsIncoming.helpers({hasPermission:function(){return i.authz.hasAllPermission("manage-integrations")},data:function(){var e,t,o;return o="function"==typeof(e=l.instance().data).params?e.params():void 0,null!=(null!=o?o.id:void 0)&&(t=ChatIntegrations.findOne({_id:o.id}),null!=t)?(t.url=n.absoluteUrl("hooks/"+t._id+"/"+t.token),t.completeToken=t._id+"/"+t.token,l.instance().record.set(t),t):l.instance().record.curValue},example:function(){var n;return n=l.instance().record.get(),{_id:Random.id(),alias:n.alias,emoji:n.emoji,avatar:n.avatar,msg:"Example message",bot:{i:Random.id()},groupable:!1,attachments:[{title:"Rocket.Chat",title_link:"https://rocket.chat",text:"Rocket.Chat, the best open source chat",image_url:"https://rocket.chat/images/mockup.png",color:"#764FA5"}],ts:new Date,u:{_id:Random.id(),username:n.username}}},exampleJson:function(){var n,e,t,o;t=l.instance().record.get(),n={username:t.alias,icon_emoji:t.emoji,icon_url:t.avatar,text:"Example message",attachments:[{title:"Rocket.Chat",title_link:"https://rocket.chat",text:"Rocket.Chat, the best open source chat",image_url:"https://rocket.chat/images/mockup.png",color:"#764FA5"}]};for(e in n)o=n[e],(null===o||""===o)&&delete n[e];return a.highlight("json",JSON.stringify(n,null,2)).value},curl:function(){var n,e,t,o;if(t=l.instance().record.get(),null!=t.url){n={username:t.alias,icon_emoji:t.emoji,icon_url:t.avatar,text:"Example message",attachments:[{title:"Rocket.Chat",title_link:"https://rocket.chat",text:"Rocket.Chat, the best open source chat",image_url:"https://rocket.chat/images/mockup.png",color:"#764FA5"}]};for(e in n)o=n[e],(null===o||""===o)&&delete n[e];return"curl -X POST --data-urlencode 'payload="+JSON.stringify(n)+"' "+t.url}},editorOptions:function(){return{lineNumbers:!0,mode:"javascript",gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],foldGutter:!0,matchBrackets:!0,autoCloseBrackets:!0,matchTags:!0,showTrailingSpace:!0,highlightSelectionMatches:!0}}}),l.integrationsIncoming.events({"blur input":function(n,e){var t;return t=e.record.curValue||{},t.name=$("[name=name]").val().trim(),t.alias=$("[name=alias]").val().trim(),t.emoji=$("[name=emoji]").val().trim(),t.avatar=$("[name=avatar]").val().trim(),t.channel=$("[name=channel]").val().trim(),t.username=$("[name=username]").val().trim(),e.record.set(t)},"click .submit > .delete":function(){var e;return e=l.instance().data.params(),swal({title:t("Are_you_sure"),text:t("You_will_not_be_able_to_recover"),type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:t("Yes_delete_it"),cancelButtonText:t("Cancel"),closeOnConfirm:!1,html:!1},function(){return n.call("deleteIncomingIntegration",e.id,function(n,e){return swal({title:t("Deleted"),text:t("Your_entry_has_been_deleted"),type:"success",timer:1e3,showConfirmButton:!1}),u.go("admin-integrations")})})},"click .button-fullscreen":function(){var n;return n=$(".code-mirror-box"),n.addClass("code-mirror-box-fullscreen"),n.find(".CodeMirror")[0].CodeMirror.refresh()},"click .button-restore":function(){var n;return n=$(".code-mirror-box"),n.removeClass("code-mirror-box-fullscreen"),n.find(".CodeMirror")[0].CodeMirror.refresh()},"click .submit > .save":function(){var e,t,o,a,i,r,s,c,m,p,d,_;return r=$("[name=enabled]:checked").val().trim(),c=$("[name=name]").val().trim(),e=$("[name=alias]").val().trim(),i=$("[name=emoji]").val().trim(),t=$("[name=avatar]").val().trim(),a=$("[name=channel]").val().trim(),_=$("[name=username]").val().trim(),d=$("[name=scriptEnabled]:checked").val().trim(),p=$("[name=script]").val().trim(),""===a?toastr.error(h.__("The_channel_name_is_required")):""===_?toastr.error(h.__("The_username_is_required")):(s={enabled:"1"===r,channel:a,alias:""!==e?e:void 0,emoji:""!==i?i:void 0,avatar:""!==t?t:void 0,name:""!==c?c:void 0,script:""!==p?p:void 0,scriptEnabled:"1"===d},m="function"==typeof(o=l.instance().data).params?o.params():void 0,null!=(null!=m?m.id:void 0)?n.call("updateIncomingIntegration",m.id,s,function(n,e){return null!=n?(console.log(n.error),n.message?(console.log("\n"+n.message),toastr.error("See browsers's console for more information",h.__(n.error))):toastr.error(h.__(n.error))):toastr.success(h.__("Integration_updated"))}):(s.username=_,n.call("addIncomingIntegration",s,function(n,e){return null!=n?toastr.error(h.__(n.error)):(toastr.success(h.__("Integration_added")),u.go("admin-integrations-incoming",{id:e._id}))})))}})}.call(this),function(){l.__checkName("integrationsOutgoing"),l.integrationsOutgoing=new l("Template.integrationsOutgoing",function(){var n=this;return I.DIV({"class":"permissions-manager"},"\n ",k.If(function(){return V.call(n.lookup("hasPermission"))},function(){return["\n ",I.A({href:function(){return V.mustache(n.lookup("pathFor"),"admin-integrations")}},I.I({"class":"icon-angle-left"})," ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Back_to_integrations")})),I.BR(),I.BR(),"\n ",I.DIV({"class":"rocket-form"},"\n ",I.DIV({"class":"section"},"\n ",I.DIV({"class":"section-content"},"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Enabled")})),"\n ",I.DIV("\n ",I.LABEL(I.INPUT({type:"radio",name:"enabled",value:"1",checked:function(){return V.mustache(n.lookup("$eq"),V.dot(n.lookup("data"),"enabled"),!0)}})," ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"True")})),"\n ",I.LABEL(I.INPUT({type:"radio",name:"enabled",value:"0",checked:function(){return V.mustache(n.lookup("$neq"),V.dot(n.lookup("data"),"enabled"),!0)}})," ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"False")})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Name")})," (",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"optional")}),")"),"\n ",I.DIV("\n ",I.INPUT({type:"text",name:"name",value:function(){return V.mustache(V.dot(n.lookup("data"),"name"))},placeholder:function(){return V.mustache(n.lookup("_"),"Optional")}}),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"You_should_name_it_to_easily_manage_your_integrations")})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Channel")})," (",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"optional")}),")"),"\n ",I.DIV("\n ",I.INPUT({type:"text",name:"channel",value:function(){return V.mustache(V.dot(n.lookup("data"),"channel"))},placeholder:function(){return V.mustache(n.lookup("_"),"User_or_channel_name")}}),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Optional channel to listen on")})),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.makeRaw(V.mustache(n.lookup("_"),"Start_with_s_for_user_or_s_for_channel_Eg_s_or_s","@","#","@john","#general"))})),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.makeRaw(V.mustache(n.lookup("_"),"Leave empty to listen <strong>any public channel</strong>"))})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Trigger_Words")})," (",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"optional")}),")"),"\n ",I.DIV("\n ",I.INPUT({type:"text",name:"triggerWords",value:function(){return V.mustache(n.lookup("join"),V.dot(n.lookup("data"),"triggerWords"),",")}}),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"When a line starts with one of these words, post to the URL(s) below")})),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Separate multiple words with commas")})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"URLs")})),"\n ",I.DIV("\n ",I.TEXTAREA({name:"urls",style:"height: 100px;",value:function(){return V.mustache(n.lookup("join"),V.dot(n.lookup("data"),"urls"),"\n")}}),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Enter as many URLs as you like, one per line, please")})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Post_as")})),"\n ",I.DIV("\n ",I.INPUT({type:"text",name:"username",value:function(){return V.mustache(V.dot(n.lookup("data"),"username"))}}),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Choose_the_username_that_this_integration_will_post_as")})),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Should_exists_a_user_with_this_username")})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Alias")})," (",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"optional")}),")"),"\n ",I.DIV("\n ",I.INPUT({type:"text",name:"alias",value:function(){return V.mustache(V.dot(n.lookup("data"),"alias"))},placeholder:function(){return V.mustache(n.lookup("_"),"Optional")}}),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Choose_the_alias_that_will_appear_before_the_username_in_messages")})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Avatar_URL")})," (",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"optional")}),")"),"\n ",I.DIV("\n ",I.INPUT({type:"url",name:"avatar",value:function(){return V.mustache(V.dot(n.lookup("data"),"avatar"))},placeholder:function(){return V.mustache(n.lookup("_"),"Optional")}}),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"You_can_change_a_different_avatar_too")})),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Should_be_a_URL_of_an_image")})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Emoji")})," (",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"optional")}),")"),"\n ",I.DIV("\n ",I.INPUT({type:"text",name:"emoji",value:function(){return V.mustache(V.dot(n.lookup("data"),"emoji"))},placeholder:function(){return V.mustache(n.lookup("_"),"Optional")}}),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"You_can_use_an_emoji_as_avatar")})),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.makeRaw(V.mustache(n.lookup("_"),"Example_s",":ghost:"))})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL("Token (",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"optional")}),")"),"\n ",I.DIV("\n ",I.INPUT({type:"text",name:"token",value:function(){return V.mustache(V.dot(n.lookup("data"),"token"))}}),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Script_Enabled")})),"\n ",I.DIV("\n ",I.LABEL(I.INPUT({type:"radio",name:"scriptEnabled",value:"1",checked:function(){return V.mustache(n.lookup("$eq"),V.dot(n.lookup("data"),"scriptEnabled"),!0)}})," ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"True")})),"\n ",I.LABEL(I.INPUT({type:"radio",name:"scriptEnabled",value:"0",checked:function(){return V.mustache(n.lookup("$neq"),V.dot(n.lookup("data"),"scriptEnabled"),!0)}})," ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"False")})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Script")})),"\n ",I.DIV("\n ",I.DIV({"class":"code-mirror-box"},"\n ",I.DIV({"class":"title"
|
||
},"\n ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Script")}),"\n "),"\n ",k._TemplateWith(function(){return{name:V.call("script"),options:V.call(n.lookup("editorOptions")),code:V.call(V.dot(n.lookup("data"),"script"))}},function(){return V.include(n.lookupTemplate("CodeMirror"))}),"\n ",I.DIV({"class":"buttons"},"\n ",I.BUTTON({"class":"button button-primary button-fullscreen"},"\n Full Screen\n "),"\n ",I.BUTTON({"class":"button button-primary button-restore"},"\n Exit Full Screen\n "),"\n "),"\n "),"\n ",k.If(function(){return V.call(V.dot(n.lookup("data"),"scriptError"))},function(){return["\n ",I.DIV({"class":"code-error-box"},"\n ",I.DIV({"class":"title"},"\n ",k.View("lookup:data.scriptError.name",function(){return V.mustache(V.dot(n.lookup("data"),"scriptError","name"))}),"\n "),"\n ",I.PRE(k.View("lookup:data.scriptError.codeFrame",function(){return V.mustache(V.dot(n.lookup("data"),"scriptError","codeFrame"))})),"\n "),"\n "]}),"\n "),"\n "),"\n ",I.DIV({"class":"input-line double-col"},"\n ",I.LABEL(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Responding")})),"\n ",I.DIV("\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.makeRaw(V.mustache(n.lookup("_"),"If the handler wishes to post a response back into the channel, the following JSON should be returned as the body of the response:"))})),"\n ",I.PRE(I.CODE({"class":"hljs json json-example"},k.View("lookup:exampleJson",function(){return V.makeRaw(V.mustache(n.lookup("exampleJson")))}))),"\n ",I.DIV({"class":"settings-description"},k.View("lookup:_",function(){return V.makeRaw(V.mustache(n.lookup("_"),"Empty bodies or bodies with an empty text property will simply be ignored. Non-200 responses will be retried a reasonable number of times. A response will be posted using the alias and avatar specified above. You can override these informations as in the example above."))})),"\n "),"\n "),"\n ",I.DIV({"class":"input-line message-example"},"\n ",k._TemplateWith(function(){return V.dataMustache(n.lookup("nrrargs"),"message",n.lookup("example"))},function(){return V.include(n.lookupTemplate("nrr"),function(){return null})}),"\n "),"\n "),"\n "),"\n ",I.DIV({"class":"submit"},"\n ",k.If(function(){return V.call(V.dot(n.lookup("data"),"token"))},function(){return["\n ",I.BUTTON({"class":"button red delete"},I.I({"class":"icon-trash"}),I.SPAN(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Delete")}))),"\n "]}),"\n ",I.BUTTON({"class":"button save"},I.I({"class":"icon-send"}),I.SPAN(k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Save_changes")}))),"\n "),"\n "),"\n "]},function(){return["\n ",k.View("lookup:_",function(){return V.mustache(n.lookup("_"),"Not_authorized")}),"\n "]}),"\n ")})}.call(this),function(){w="object"==typeof w?w:{};var o=w;l.integrationsOutgoing.onCreated(function(){return this.record=new ReactiveVar({username:"rocket.cat",token:Random.id(24)})}),l.integrationsOutgoing.helpers({join:function(n,e){return null==(null!=n?n.join:void 0)?n:n.join(e)},hasPermission:function(){return i.authz.hasAllPermission("manage-integrations")},data:function(){var n,e,t;return t="function"==typeof(n=l.instance().data).params?n.params():void 0,null!=(null!=t?t.id:void 0)&&(e=ChatIntegrations.findOne({_id:t.id}),null!=e)?(null==e.token&&(e.token=Random.id(24)),e):l.instance().record.curValue},example:function(){var n;return n=l.instance().record.get(),{_id:Random.id(),alias:n.alias,emoji:n.emoji,avatar:n.avatar,msg:"Response text",bot:{i:Random.id()},groupable:!1,attachments:[{title:"Rocket.Chat",title_link:"https://rocket.chat",text:"Rocket.Chat, the best open source chat",image_url:"https://rocket.chat/images/mockup.png",color:"#764FA5"}],ts:new Date,u:{_id:Random.id(),username:n.username}}},exampleJson:function(){var n,e,t,o;t=l.instance().record.get(),n={username:t.alias,icon_emoji:t.emoji,icon_url:t.avatar,text:"Response text",attachments:[{title:"Rocket.Chat",title_link:"https://rocket.chat",text:"Rocket.Chat, the best open source chat",image_url:"https://rocket.chat/images/mockup.png",color:"#764FA5"}]};for(e in n)o=n[e],(null===o||""===o)&&delete n[e];return a.highlight("json",JSON.stringify(n,null,2)).value},editorOptions:function(){return{lineNumbers:!0,mode:"javascript",gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],foldGutter:!0,matchBrackets:!0,autoCloseBrackets:!0,matchTags:!0,showTrailingSpace:!0,highlightSelectionMatches:!0}}}),l.integrationsOutgoing.events({"blur input":function(n,e){return e.record.set({name:$("[name=name]").val().trim(),alias:$("[name=alias]").val().trim(),emoji:$("[name=emoji]").val().trim(),avatar:$("[name=avatar]").val().trim(),channel:$("[name=channel]").val().trim(),username:$("[name=username]").val().trim(),triggerWords:$("[name=triggerWords]").val().trim(),urls:$("[name=urls]").val().trim(),token:$("[name=token]").val().trim()})},"click .submit > .delete":function(){var e;return e=l.instance().data.params(),swal({title:t("Are_you_sure"),text:t("You_will_not_be_able_to_recover"),type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:t("Yes_delete_it"),cancelButtonText:t("Cancel"),closeOnConfirm:!1,html:!1},function(){return n.call("deleteOutgoingIntegration",e.id,function(n,e){return swal({title:t("Deleted"),text:t("Your_entry_has_been_deleted"),type:"success",timer:1e3,showConfirmButton:!1}),u.go("admin-integrations")})})},"click .button-fullscreen":function(){return $(".code-mirror-box").addClass("code-mirror-box-fullscreen"),$(".CodeMirror")[0].CodeMirror.refresh()},"click .button-restore":function(){return $(".code-mirror-box").removeClass("code-mirror-box-fullscreen"),$(".CodeMirror")[0].CodeMirror.refresh()},"click .submit > .save":function(){var t,o,a,i,r,s,c,m,p,d,_,k,g,f,V,I,w,b,v,D,T,y;if(s=$("[name=enabled]:checked").val().trim(),g=$("[name=name]").val().trim(),t=$("[name=alias]").val().trim(),r=$("[name=emoji]").val().trim(),o=$("[name=avatar]").val().trim(),i=$("[name=channel]").val().trim(),y=$("[name=username]").val().trim(),v=$("[name=triggerWords]").val().trim(),T=$("[name=urls]").val().trim(),w=$("[name=token]").val().trim(),I=$("[name=scriptEnabled]:checked").val().trim(),V=$("[name=script]").val().trim(),""===y)return toastr.error(h.__("The_username_is_required"));for(v=v.split(","),m=c=0,_=v.length;_>c;m=++c)b=v[m],v[m]=b.trim(),""===b.trim()&&delete v[m];for(v=e.without(v,[void 0]),T=T.split("\n"),m=d=0,k=T.length;k>d;m=++d)D=T[m],T[m]=D.trim(),""===D.trim()&&delete T[m];return T=e.without(T,[void 0]),0===T.length?toastr.error(h.__("You_should_inform_one_url_at_least")):(p={enabled:"1"===s,username:y,channel:""!==i?i:void 0,alias:""!==t?t:void 0,emoji:""!==r?r:void 0,avatar:""!==o?o:void 0,name:""!==g?g:void 0,triggerWords:""!==v?v:void 0,urls:""!==T?T:void 0,token:""!==w?w:void 0,script:""!==V?V:void 0,scriptEnabled:"1"===I},f="function"==typeof(a=l.instance().data).params?a.params():void 0,null!=(null!=f?f.id:void 0)?n.call("updateOutgoingIntegration",f.id,p,function(n,e){return null!=n?toastr.error(h.__(n.error)):toastr.success(h.__("Integration_updated"))}):n.call("addOutgoingIntegration",p,function(n,e){return null!=n?toastr.error(h.__(n.error)):(toastr.success(h.__("Integration_added")),u.go("admin-integrations-outgoing",{id:e._id}))}))}})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:integrations"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a;"undefined"==typeof Package&&(Package={}),Package["rocketchat:ldapjs"]={LDAPJS:a}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a=Package.underscore._,r=Package.templating.Template,i=Package.blaze.Blaze,n=Package.blaze.UI,c=Package.blaze.Handlebars,s=Package.spacebars.Spacebars,l=Package.htmljs.HTML,o,t;(function(){(function(){o={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ő":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ű":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ő":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ű":"u","ý":"y","þ":"th","ÿ":"y","ẞ":"SS","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ά":"a","έ":"e","ί":"i","ό":"o","ύ":"y","ή":"h","ώ":"w","ς":"s","ϊ":"i","ΰ":"y","ϋ":"y","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ά":"A","Έ":"E","Ί":"I","Ό":"O","Ύ":"Y","Ή":"H","Ώ":"W","Ϊ":"I","Ϋ":"Y","ş":"s","Ş":"S","ı":"i","İ":"I","ç":"c","Ç":"C","ü":"u","Ü":"U","ö":"o","Ö":"O","ğ":"g","Ğ":"G","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","Є":"Ye","І":"I","Ї":"Yi","Ґ":"G","є":"ye","і":"i","ї":"yi","ґ":"g","č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z","ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ó":"o","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"e","Ł":"L","Ń":"N","Ś":"S","Ź":"Z","Ż":"Z","ā":"a","č":"c","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","š":"s","ū":"u","ž":"z","Ā":"A","Č":"C","Ē":"E","Ģ":"G","Ī":"i","Ķ":"k","Ļ":"L","Ņ":"N","Š":"S","Ū":"u","Ž":"Z","€":"euro","₢":"cruzeiro","₣":"french franc","£":"pound","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","¢":"cent","¥":"yen","元":"yuan","円":"yen","﷼":"rial","₠":"ecu","¤":"currency","฿":"baht",$:"dollar","©":"(c)","œ":"oe","Œ":"OE","∑":"sum","®":"(r)","†":"+","“":'"',"”":'"',"‘":"'","’":"'","∂":"d","ƒ":"f","™":"tm","℠":"sm","…":"...","˚":"o","º":"o","ª":"a","•":"*","∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less",">":"greater","°":"0","¹":"1","²":"2","³":"3","@":"at"}}).call(this),function(){var i=function(e){return""==e?"":e||"-"};t=function(e,r){var r=i(r),n="";return a.isString(e)?(a.forEach(e.split(""),function(e){a.has(o,e)&&(e=o[e]),e=e.replace(/[^\w\s$\*\_\+~\.\(\)\-]/g,""),n+=e}),n=n.replace(/^\s+|\s+$/g,""),n=n.replace(/[-\s]+/g,r),n.replace("#{replacement}$",""),n.toLowerCase()):""},e.isClient&&r.registerHelper("slugify",function(e,a){var a=i(a);return t(e,a)})}.call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["yasaricli:slugify"]={slugify:t}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,e=Package["rocketchat:ldapjs"].LDAPJS,c=Package["rocketchat:logger"].Logger,t=Package["rocketchat:lib"].RocketChat,g=Package["yasaricli:slugify"].slugify,i=Package.ecmascript.ECMAScript,n=Package.sha.SHA256,l=Package.templating.Template,r=Package["tap:i18n"].TAPi18next,s=Package["tap:i18n"].TAPi18n,k=Package["babel-runtime"].babelHelpers,P=Package["ecmascript-runtime"].Symbol,o=Package["ecmascript-runtime"].Map,p=Package["ecmascript-runtime"].Set,m=Package.promise.Promise,u=Package.blaze.Blaze,h=Package.blaze.UI,f=Package.blaze.Handlebars,b=Package.spacebars.Spacebars,d=Package.htmljs.HTML;(function(){a.loginWithLDAP=function(a,e,c,t){for(var g=[],i=0;i<arguments.length;i++)g.push(arguments[i]);a=g.shift(),e=g.shift(),t="function"==typeof g[g.length-1]?g.pop():null,c=g.length>0?g.shift():{};var n={username:a,ldapPass:e,ldapOptions:c};Accounts.callLoginMethod({methodArguments:[n],userCallback:function(a){a?t&&t(a):t&&t()}})}}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:ldap"]={}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,e=Package.underscore._,a=Package["raix:eventemitter"].EventEmitter,o;(function(){(function(){o=function(t){var r=this;return r instanceof o?(a.call(r),r.map=t||{},void e.each(r.map,function(t,a){r.map[a]=e.isArray(t)?t:[t]})):new o(t)},o.prototype=Object.create(a.prototype),o.prototype.emitState=function(t){var o=this,r=e.toArray(arguments);return o.map[t]=e.clone(e.rest(r)),a.prototype.emit.apply(o,r),o},o.prototype.on=function(t,e){var o=this;return a.prototype.on.call(o,t,e),o.map.hasOwnProperty(t)&&e.apply(o,o.map[t]),o},o.prototype.once=function(t,e){var o=this;return o.map.hasOwnProperty(t)?e.apply(o,o.map[t]):a.prototype.once.call(o,t,e),o},o.prototype.clearState=function(t){var a=this;t?a.map=e.omit(a.map,t):a.map={}},o.prototype.addListener=o.prototype.on,o.prototype.one=o.prototype.once}).call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["raix:eventstate"]={EventState:o}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.ecmascript.ECMAScript,n=Package.tracker.Tracker,a=Package.tracker.Deps,o=Package.random.Random,i=Package["raix:eventstate"].EventState,r=Package.check.check,s=Package.check.Match,c=Package.mongo.Mongo,u=Package.underscore._,d=Package.ejson.EJSON,l=Package["babel-runtime"].babelHelpers,g=Package["ecmascript-runtime"].Symbol,p=Package["ecmascript-runtime"].Map,f=Package["ecmascript-runtime"].Set,h=Package.promise.Promise,m,k,y,P,S,b;(function(){var t=function(){return/android/i.test(device.platform)?"gcm":/ios/i.test(device.platform)?"apn":/win/i.test(device.platform)?"mpns":"unknown"},n=function(n){function a(){l.classCallCheck(this,a),n.call(this),this.configured=!1,this.debug=!1,this.token=null}return l.inherits(a,n),a.prototype.log=function(){function e(){this.debug&&console.log.apply(console,arguments)}return e}(),a.prototype.setBadge=function(){function e(e){var n=this;this.once("ready",function(){/ios/i.test(device.platform)&&(n.log("Push.setBadge:",e),n.push.setApplicationIconBadgeNumber(function(){n.log("Push.setBadge: was set to",e)},function(e){n.emit("error",{type:t()+".cordova",error:"Push.setBadge Error: "+e.message})},e))})}return e}(),a.prototype.unregister=function(){function e(e,t){this.push?this.push.unregister(e,t):t(new Error('Push.unregister, Error: "Push not configured"'))}return e}(),a.prototype.Configure=function(){function n(){var n=this,a=arguments,o=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];if(this.configured)throw this.log('Push.Error: "Push.Configure may only be called once"'),new Error("Push.Configure may only be called once");this.log("Push.Configure:",o),this.configured=!0,e.startup(function(){"undefined"!=typeof PushNotification&&(n.push=PushNotification.init(o),n.push.on("registration",function(e){if(e&&e.registrationId&&n.token!==e.registrationId){var o;n.token=e.registrationId;var i=(o={},o[t()]=e.registrationId,o);n.log("Push.Token:",i),n.emitState("token",i)}n.emitState.apply(n,["registration"].concat(l.slice.call(a)))}),n.push.on("notification",function(e){if(n.log("Push.Notification:",e),e.additionalData.ejson)if(e.additionalData.ejson===""+e.additionalData.ejson)try{e.payload=d.parse(e.additionalData.ejson),n.log("Push.Parsed.EJSON.Payload:",e.payload)}catch(t){n.log("Push.Parsed.EJSON.Payload.Error",t.message,e.payload)}else e.payload=d.fromJSONValue(e.additionalData.ejson),n.log("Push.EJSON.Payload:",e.payload);e.message&&e.additionalData.foreground&&n.emit("alert",e),e.sound&&n.emit("sound",e),"undefined"!=typeof e.count&&(n.log("Push.SettingBadge:",e.count),n.setBadge(e.count),n.emit("badge",e)),e.additionalData.foreground?(n.log("Push.Message: Got message while app is open:",e),n.emit("message",e)):(n.log("Push.Startup: Got message while app was closed/in background:",e),n.emitState("startup",e)),n.emitState()}),n.push.on("error",function(e){n.log("Push.Error:",e),n.emit("error",{type:t()+".cordova",error:e.message})}),n.emitState("ready"))}),k(o.appName)}return n}(),a}(i);m=new n}).call(this),function(){m.notifications=new c.Collection("_raix_push_notifications");var t=function(e){if(r(e,{from:String,title:String,text:String,badge:s.Optional(Number),sound:s.Optional(String),notId:s.Optional(s.Integer),apn:s.Optional({from:s.Optional(String),title:s.Optional(String),text:s.Optional(String),badge:s.Optional(Number),sound:s.Optional(String),notId:s.Optional(s.Integer)}),gcm:s.Optional({from:s.Optional(String),title:s.Optional(String),text:s.Optional(String),badge:s.Optional(Number),sound:s.Optional(String),notId:s.Optional(s.Integer)}),query:s.Optional(String),token:s.Optional(y),tokens:s.Optional([y]),payload:s.Optional(Object),delayUntil:s.Optional(Date),createdAt:Date,createdBy:s.OneOf(String,null)}),!e.token&&!e.tokens&&!e.query)throw new Error("No token selector or query found");if(e.tokens&&!e.tokens.length)throw new Error("No tokens in array")};m.send=function(n){var a=e.isClient&&e.userId&&e.userId()||e.isServer&&(n.createdBy||"<SERVER>")||null,o=u.extend({createdAt:new Date,createdBy:a},u.pick(n,"from","title","text"));return u.extend(o,u.pick(n,"payload","badge","sound","notId","delayUntil")),s.test(n.apn,Object)&&(o.apn=u.pick(n.apn,"from","title","text","badge","sound","notId")),s.test(n.gcm,Object)&&(o.gcm=u.pick(n.gcm,"from","title","text","badge","sound","notId")),n.query?o.query=JSON.stringify(n.query):n.token?o.token=n.token:n.tokens&&(o.tokens=n.tokens),t(o),m.notifications.insert(o)},m.allow=function(e){e.send&&m.notifications.allow({insert:function(n,a){return t(a),e.send.apply(this,[n,a])}})},m.deny=function(e){e.send&&m.notifications.deny({insert:function(n,a){return t(a),e.send.apply(this,[n,a])}})}}.call(this),function(){var t="_raix:push_token",a=!!Package["accounts-base"],i=function(){var e={};try{e=JSON.parse(localStorage.getItem(t))}catch(n){}return{id:e&&e.id||o.id(),metadata:e&&e.metadata||{},token:null}},s=function(e){try{localStorage.setItem(t,JSON.stringify(e))}catch(n){}},c=i(),u=new n.Dependency,d=new n.Dependency;u.changed();var l=function(e){c.enabled!==e&&(c.enabled=e,s(c),d.changed())};m.id=function(){return u.depend(),c.id},m.enabled=function(t){if(c){if("undefined"==typeof t)return d.depend(),c.enabled!==!1;r(t,Boolean),t!==c.enabled&&c.id&&(l(t),e.call("raix:push-enable",{id:c.id,enabled:t},function(e,n){(e||!n)&&l(!t)}))}},m.setUser=function(){e.call("raix:push-setuser",c.id)},m.setMetadata=function(t){c.metadata=t,s(c),c.token&&e.call("raix:push-metadata",{id:c.id,metadata:c.metadata})};var g=function(t,n){c.token=t;var o={id:c.id,token:t,appName:n,userId:a?e.userId():null,metadata:c.metadata};e.call("raix:push-update",o,function(e,t){!e&&t&&(c.id!==t._id&&(c.id=t._id,s(c),u.changed()),"undefined"!=typeof t.enabled&&l(t.enabled))})};k=function(t){e.startup(function(){m.on("token",function(e){m.debug&&console.log("Got token:",e),g(e,t||"main")}),a&&n.autorun(function(){e.userId(),this.firstRun||m.setUser()})})}}.call(this),"undefined"==typeof Package&&(Package={}),Package["raix:push"]={Push:m,_matchToken:y,checkClientSecurity:P,initPushUpdates:k,_replaceToken:S,_removeToken:b}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,e=Package.blaze.Blaze,c=Package.blaze.UI,g=Package.blaze.Handlebars,k=Package.htmljs.HTML,e,c,g;"undefined"==typeof Package&&(Package={}),Package.ui={Blaze:e,UI:c,Handlebars:g}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a=Package.blaze.Blaze,t=Package.blaze.UI,n=Package.blaze.Handlebars,r=Package.templating.Template,o=Package.spacebars.Spacebars,p=Package.htmljs.HTML;(function(){(function(){var e;e="undefined"!=typeof a&&"undefined"!=typeof a.View?r.prototype:t.Component;var n=e.events,o=function p(e){e.stopPropagation(),e.preventDefault()};e.events=function i(e){var a=this,t={};for(var r in e)if(/^dropped/.test(r)){var p=r.split(" ")[1],i=r;p&&(t["dragenter/dragexit/dragover/dragend "+p]=o,t["drop "+p]=function(a,t){o(a),e[i].apply(this,[a,t])})}else t[r]=e[r];return n.apply(a,[t])}}).call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["raix:ui-dropped-event"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package["accounts-base"].Accounts,o=Package["accounts-base"].AccountsClient,i=Package.mongo.Mongo,r=Package.session.Session,a=Package.jquery.$,s=Package.jquery.jQuery,l=Package.tracker.Tracker,u=Package.tracker.Deps,c=Package["reactive-var"].ReactiveVar,d=Package.ecmascript.ECMAScript,p=Package.templating.Template,f=Package.underscore._,m=Package["rocketchat:lib"].RocketChat,h=Package["raix:push"].Push,g=Package["kadira:flow-router"].FlowRouter,v=Package["babel-runtime"].babelHelpers,b=Package["ecmascript-runtime"].Symbol,y=Package["ecmascript-runtime"].Map,w=Package["ecmascript-runtime"].Set,k=Package.promise.Promise,_=Package.blaze.Blaze,x=Package.blaze.UI,M=Package.blaze.Handlebars,T=Package.spacebars.Spacebars,C=Package["tap:i18n"].TAPi18next,R=Package["tap:i18n"].TAPi18n,I=Package.htmljs.HTML,S,N;(function(){S="object"==typeof S?S:{};var t=S;this.getAvatarUrlFromUsername=function(t){var n,o,i;return n="avatar_random_"+t,i=("undefined"!=typeof r&&null!==r?r.keys[n]:void 0)||0,null!=t?(o=e.isCordova?e.absoluteUrl().replace(/\/$/,""):__meteor_runtime_config__.ROOT_URL_PATH_PREFIX||"",o+"/avatar/"+encodeURIComponent(t)+".jpg?_dc="+i):void 0}}).call(this),function(){S="object"==typeof S?S:{};var t=S;this.AccountBox=function(){var t,n,o,i,s,u,d,p,h,v,b,y,w;return y=0,v={},d=new c([]),b=function(t){return e.call("UserPresence:setDefaultStatus",t)},w=function(){return y?i():p()},p=function(){return SideNav.flexStatus()?void SideNav.closeFlex():(y=1,v.options.removeClass("animated-hidden"),v.box.addClass("active"),SideNav.toggleArrow(1))},i=function(){return y=0,v.options.addClass("animated-hidden"),v.box.removeClass("active"),SideNav.toggleArrow(-1)},h=function(){return y=0,v.options.addClass("animated-hidden"),v.box.removeClass("active")},u=function(){return v.box=a(".account-box"),v.options=v.box.find(".options")},t=function(e){return l.nonreactive(function(){var t;return t=d.get(),t.push(e),d.set(t)})},o=function(e){return null==e.condition||e.condition()},s=function(){return f.filter(d.get(),function(e){return o(e)?!0:void 0})},n=function(e,t){var n;return null==t&&(t=g),n={center:"pageContainer",pageTemplate:e.pageTemplate},null!=e.i18nPageTitle&&(n.i18nPageTitle=e.i18nPageTitle),null!=e.pageTitle&&(n.pageTitle=e.pageTitle),t.route(e.path,{name:e.name,action:function(){return r.set("openedRoom"),m.TabBar.showGroup(e.name),BlazeLayout.render("main",n)},triggersEnter:[function(){return null!=e.sideNav?(SideNav.setFlex(e.sideNav),SideNav.openFlex()):void 0}]})},{setStatus:b,toggle:w,open:p,close:i,openFlex:h,init:u,addRoute:n,addItem:t,getItems:s}}()}.call(this),function(){S="object"==typeof S?S:{};var e=S;n.onEmailVerificationLink(function(e,o){return n.verifyEmail(e,function(e){return null==e&&alert(t("Email_verified")),o()})})}.call(this),function(){S="object"==typeof S?S:{};var e=S;_.registerHelper("avatarUrlFromUsername",getAvatarUrlFromUsername),this.getAvatarAsPng=function(e,t){var n;return n=new Image,n.src=getAvatarUrlFromUsername(e),n.onload=function(){var e,o;return e=document.createElement("canvas"),e.width=n.width,e.height=n.height,o=e.getContext("2d"),o.drawImage(n,0,0),t(e.toDataURL("image/png"))},n.onerror=function(){return t("")}},this.updateAvatarOfUsername=function(e){var t,n,o,i;t="avatar_random_"+e,r.set(t,Math.round(1e3*Math.random())),n=RoomManager.openedRooms;for(t in n)o=n[t],i=getAvatarUrlFromUsername(e),a(o.dom).find(".message[data-username='"+e+"'] .avatar-image").css("background-image","url("+i+")");return!0}}.call(this),function(){S="object"==typeof S?S:{};var n=S,o=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};this.ChatMessages=function(){function n(){}return n.prototype.init=function(e){this.editing={},this.messageMaxSize=m.settings.get("Message_MaxAllowedSize"),this.wrapper=a(e).find(".wrapper"),this.input=a(e).find(".input-message").get(0),this.hasValue=new c(!1),this.bindEvents()},n.prototype.resize=function(){var e;return e=60+a(".messages-container").find("footer").outerHeight(),a(".messages-box").css({height:"calc(100% - "+e+"px)"})},n.prototype.toPrevMessage=function(){var e;if(e=this.wrapper.get(0).querySelectorAll(".own:not(.system)"),e.length){if(!this.editing.element)return this.edit(e[e.length-1],e.length-1);if(e[this.editing.index-1])return this.edit(e[this.editing.index-1],this.editing.index-1)}},n.prototype.toNextMessage=function(){var e;return this.editing.element?(e=this.wrapper.get(0).querySelectorAll(".own:not(.system)"),e[this.editing.index+1]?this.edit(e[this.editing.index+1],this.editing.index+1):this.clearEditing()):void 0},n.prototype.getEditingIndex=function(e){var t,n,o,i,r;for(r=this.wrapper.get(0).querySelectorAll(".own:not(.system)"),t=0,n=0,o=r.length;o>n;n++){if(i=r[n],i===e)return t;t++}return-1},n.prototype.edit=function(t,n){var o,i,r,s,l,u,c,d,p;return u=t.getAttribute("id"),c=ChatMessage.findOne({_id:u}),l=m.authz.hasAtLeastOnePermission("edit-message",c.rid),r=m.settings.get("Message_AllowEditing"),s=(null!=c&&null!=(p=c.u)?p._id:void 0)===e.userId(),(l||r&&s)&&!(t.classList.contains("system")||(o=m.settings.get("Message_AllowEditing_BlockEditInMinutes"),null!=o&&0!==o&&(null!=c.ts&&(d=moment(c.ts)),null!=d&&(i=moment().diff(d,"minutes")),i>o)))?(this.clearEditing(),this.input.value=c.msg,this.hasValue.set(!0),this.editing.element=t,this.editing.index=n||this.getEditingIndex(t),this.editing.id=u,t.classList.add("editing"),this.input.classList.add("editing"),a(this.input).closest(".message-form").addClass("editing"),setTimeout(function(e){return function(){return e.input.focus()}}(this),5)):void 0},n.prototype.clearEditing=function(){return this.editing.element?(this.editing.element.classList.remove("editing"),this.input.classList.remove("editing"),a(this.input).closest(".message-form").removeClass("editing"),this.editing.id=null,this.editing.element=null,this.editing.index=null,this.input.value=this.editing.saved||"",this.hasValue.set(""!==this.input.value)):this.editing.saved=this.input.value},n.prototype.send=function(n,o){var i,r;return""!==f.trim(o.value)?(readMessage.enable(),readMessage.readNow(),a(".message.first-unread").removeClass("first-unread"),i=o.value,r={_id:Random.id(),rid:n,msg:i},m.promises.run("onClientBeforeSendMessage",r).then(function(r){return function(a){var s,l,u;return r.isMessageTooLong(a.msg)?toastr.error(t("Message_too_long")):r.editing.id?void r.update(r.editing.id,n,a.msg):(KonchatNotification.removeRoomNotification(n),o.value="",r.hasValue.set(!1),r.stopTyping(n),"/"===i[0]&&(l=i.match(/^\/([^\s]+)(?:\s+(.*))?$/m),null!=l&&m.slashCommands.commands[l[1]])?(s=l[1],u=l[2],void e.call("slashCommand",{cmd:s,params:u,msg:a})):e.call("sendMessage",a))}}(this))):void 0},n.prototype.deleteMsg=function(n){var o,i,r;return o=m.settings.get("Message_AllowDeleting_BlockDeleteInMinutes"),null!=o&&0!==o&&(null!=n.ts&&(r=moment(n.ts)),null!=r&&(i=moment().diff(r,"minutes")),i>o)?void toastr.error(t("Message_deleting_blocked")):e.call("deleteMessage",n,function(e,t){return e?toastr.error(e.reason):void 0})},n.prototype.pinMsg=function(t){return t.pinned=!0,e.call("pinMessage",t,function(e,t){return e?toastr.error(e.reason):void 0})},n.prototype.unpinMsg=function(t){return t.pinned=!1,e.call("unpinMessage",t,function(e,t){return e?toastr.error(e.reason):void 0})},n.prototype.update=function(t,n,o){return""!==f.trim(o)?(e.call("updateMessage",{_id:t,msg:o,rid:n}),this.clearEditing(),this.stopTyping(n)):void 0},n.prototype.startTyping=function(e,t){return""!==f.trim(t.value)?MsgTyping.start(e):MsgTyping.stop(e)},n.prototype.stopTyping=function(e){return MsgTyping.stop(e)},n.prototype.bindEvents=function(){var e;return(null!=(e=this.wrapper)?e.length:void 0)?a(".input-message").autogrow({postGrowCallback:function(e){return function(){return e.resize()}}(this)}):void 0},n.prototype.tryCompletion=function(t){var n,o,i;return i=t.value.match(/[^\s]+$/),(null!=i?i.length:void 0)>0&&(i=i[0],n=new RegExp(i,"i"),o=e.users.findOne({username:n}),null!=o)?t.value=t.value.replace(i,"@"+o.username+" "):void 0},n.prototype.keyup=function(e,t){var n,i,r,a,s,l;for(i=t.currentTarget,a=t.which,s=[13,20,16,9,27,17,91,19,18,93,45,34,35,144,145],n=r=35;40>=r;n=++r)s.push(n);for(n=l=112;123>=l;n=++l)s.push(n);return o.call(s,a)<0&&this.startTyping(e,i),this.hasValue.set(""!==i.value)},n.prototype.keydown=function(e,t){var n,o,i,r,s;if(n=t.currentTarget,o=t.which,this.resize(n),13===o&&!t.shiftKey)return t.preventDefault(),t.stopPropagation(),void this.send(e,n);if(9===o&&(t.preventDefault(),t.stopPropagation(),this.tryCompletion(n)),27===o)this.editing.id&&(t.preventDefault(),t.stopPropagation(),this.clearEditing());else{if(38===o||40===o){if(t.shiftKey)return!0;if(a(n).val().length&&!(null!=(i=this.editing)?i.id:void 0))return!0;if(38===o){if(null!==n.value.slice(0,n.selectionStart).match(/[\n]/))return;this.toPrevMessage()}else{if(null!==n.value.slice(n.selectionEnd,n.value.length).match(/[\n]/))return;this.toNextMessage()}return t.preventDefault(),t.stopPropagation()}if(75===o&&(-1!==("undefined"!=typeof navigator&&null!==navigator&&null!=(r=navigator.platform)?r.indexOf("Mac"):void 0)&&t.metaKey&&t.shiftKey||-1===("undefined"!=typeof navigator&&null!==navigator&&null!=(s=navigator.platform)?s.indexOf("Mac"):void 0)&&t.ctrlKey&&t.shiftKey))return RoomHistoryManager.clear(e)}},n.prototype.isMessageTooLong=function(e){return(null!=e?e.length:void 0)>this.messageMaxSize},n.prototype.isEmpty=function(){return!this.hasValue.get()},n}()}.call(this),function(){S="object"==typeof S?S:{};var t=S;this.ChatMessage=new e.Collection(null),this.ChatRoom=new e.Collection("rocketchat_room"),this.ChatSubscription=new e.Collection("rocketchat_subscription"),this.UserRoles=new i.Collection(null),this.RoomRoles=new i.Collection(null),this.UserAndRoom=new e.Collection(null),this.CachedChannelList=new e.Collection(null),m.models.Users=f.extend({},m.models.Users,e.users),m.models.Subscriptions=f.extend({},m.models.Subscriptions,this.ChatSubscription),m.models.Rooms=f.extend({},m.models.Rooms,this.ChatRoom),m.models.Messages=f.extend({},m.models.Messages,this.ChatMessage)}.call(this),function(){window.requestAnimationFrame||(window.requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}),function(e,t){function n(e,n){var o=t.devicePixelRatio||1,i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1,r=o/i,a=n.width,s=n.height;n.width=a*r,n.height=s*r,n.style.width=a+"px",n.style.height=s+"px",e.scale(r,r)}function o(o,i){function r(){this.x=Math.random()*(t.innerWidth||o.width),this.y=Math.random()*(t.innerHeight||o.height),this.vx=u.velocity-.5*Math.random(),this.vy=u.velocity-.5*Math.random(),this.radius=Math.random()*u.star.width}var a=e(o),s=o.getContext("2d"),l={star:{color:"rgba(255, 255, 255, .5)",width:1},line:{color:"rgba(255, 255, 255, .5)",width:.2},position:{x:0,y:0},width:t.innerWidth,height:t.innerHeight,velocity:.1,length:150,distance:120,radius:150,stars:[]},u=e.extend(!0,{},l,i),c,d,p;r.prototype={create:function(){s.beginPath(),s.arc(this.x,this.y,this.radius,0,2*Math.PI,!1),s.fill()},animate:function(){var e;for(e=0;e<u.length;e++){var n=u.stars[e];n.y<0||n.y>(t.innerHeight||o.height)?(n.vx=n.vx,n.vy=-n.vy):(n.x<0||n.x>(t.innerWidth||o.width))&&(n.vx=-n.vx,n.vy=n.vy),n.x+=n.vx,n.y+=n.vy}},line:function(){var e=u.length,t,n,o,i;for(o=0;e>o;o++)for(i=0;e>i;i++)t=u.stars[o],n=u.stars[i],t.x-n.x<u.distance&&t.y-n.y<u.distance&&t.x-n.x>-u.distance&&t.y-n.y>-u.distance&&t.x-u.position.x<u.radius&&t.y-u.position.y<u.radius&&t.x-u.position.x>-u.radius&&t.y-u.position.y>-u.radius&&(s.beginPath(),s.moveTo(t.x,t.y),s.lineTo(n.x,n.y),s.stroke(),s.closePath())}},this.createStars=function(){var e=u.length,t,n;for(s.clearRect(0,0,o.width,o.height),n=0;e>n;n++)u.stars.push(new r),t=u.stars[n],t.create();t.line(),t.animate()},this.setCanvas=function(){o.width=u.width,o.height=u.height},this.setContext=function(){s.fillStyle=u.star.color,s.strokeStyle=u.line.color,s.lineWidth=u.line.width},this.setInitialPosition=function(){i&&i.hasOwnProperty("position")||(u.position={x:.5*o.width,y:.5*o.height})},this.loop=function(e){t.requestAnimationFrame(function(){this.loop(e)}.bind(this));var n=Date.now(),o=n-d;o>c&&(e(),d=n-o%c)},this.bind=function(){a.on("mousemove",function(e){console.log(a.offset().left),u.position.x=e.pageX,u.position.y=e.pageY})},this.init=function(){c=1e3/26,d=Date.now(),p=d,this.setCanvas(),n(s,o),this.setContext(),this.setInitialPosition(),this.loop(this.createStars),this.bind()}}e.fn.constellation=function(e){return this.each(function(){var t=new o(this,e);t.init()})}}(a,window)}.call(this),function(){!function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}()}.call(this),function(){S="object"==typeof S?S:{};var n=S,o,i;i=function(e,t){var n;return n=new FileReader,n.onload=function(n){return t(n.target.result,e)},n.readAsDataURL(e)},o=function(e,t){var n;return n=new FileReader,n.onload=function(n){return t(n.target.result,e)},n.readAsArrayBuffer(e)},this.fileUpload=function(n){var a,s;return s=r.get("openedRoom"),n=[].concat(n),(a=function(){var u;return u=n.pop(),null==u?void swal.close():i(u.file,function(n){var i;return m.fileUploadIsValidContentType(u.file.type)?0===u.file.size?void swal({title:t("FileUpload_File_Empty"),type:"error",timer:1e3}):(i="",i="audio"===u.type?'<div class=\'upload-preview\'>\n <audio style="width: 100%;" controls="controls">\n <source src="'+n+'" type="audio/wav">\n Your browser does not support the audio element.\n </audio>\n</div>\n<div class=\'upload-preview-title\'>'+M._escape(u.name)+"</div>":"<div class='upload-preview'>\n <div class='upload-preview-file' style='background-image: url("+n+")'></div>\n</div>\n<div class='upload-preview-title'>"+M._escape(u.name)+"</div>",swal({title:t("Upload_file_question"),text:i,showCancelButton:!0,closeOnConfirm:!1,closeOnCancel:!1,html:!0},function(t){return a(),t===!0?o(u.file,function(t){var n,o;return n={name:u.name||u.file.name,size:u.file.size,type:u.file.type,rid:s},o=fileUploadHandler(n,u.file,t),l.autorun(function(e){var t,n,i;return i=void 0,t=void 0,l.nonreactive(function(){return t=r.get("uploading-cancel-"+o.id),i=r.get("uploading")}),t?e.stop():(null==i&&(i=[]),n=f.findWhere(i,{id:o.id}),null==n&&(n={id:o.id,name:o.getFileName()},i.push(n)),n.percentage=Math.round(100*o.getProgress())||0,r.set("uploading",i))}),o.start(),l.autorun(function(t){var n,i,a;return n=r.get("uploading-cancel-"+o.id),n?(o.stop(),t.stop(),a=r.get("uploading"),null!=a&&(i=f.findWhere(a,{id:o.id}),null!=i&&(i.percentage=0),r.set("uploading",a)),e.setTimeout(function(){return a=r.get("uploading"),null!=a?(i=f.findWhere(a,{id:o.id}),r.set("uploading",f.without(a,i))):void 0},1e3)):void 0})}):void 0})):void swal({title:t("FileUpload_MediaType_NotAccepted"),type:"error",timer:1e3})})})()}}.call(this),function(){S="object"==typeof S?S:{};var e=S;window.fireGlobalEvent=function(e,t){return window.dispatchEvent(new CustomEvent(e,{detail:t}))}}.call(this),function(){!function(e,t,n,o){n.swipebox=function(i,r){var a,s,l={useCSS:!0,useSVG:!0,initialIndexOnArray:0,removeBarsOnMobile:!0,hideCloseButtonOnMobile:!1,hideBarsDelay:3e3,videoMaxWidth:1140,vimeoColor:"cccccc",beforeOpen:null,afterOpen:null,afterClose:null,nextSlide:null,prevSlide:null,loopAtEnd:!1,autoplayVideos:!1,queryStringData:{},toggleClassOnLoad:""},u=this,c=[],d=i.selector,p=n(d),f=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i),m=null!==f||t.createTouch!==o||"ontouchstart"in e||"onmsgesturechange"in e||navigator.msMaxTouchPoints,h=!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,g=e.innerWidth?e.innerWidth:n(e).width(),v=e.innerHeight?e.innerHeight:n(e).height(),b=0,y='<div id="swipebox-overlay"> <div id="swipebox-container"> <div id="swipebox-slider"></div> <div id="swipebox-top-bar"> <div id="swipebox-title"></div> </div> <div id="swipebox-bottom-bar"> <div id="swipebox-arrows"> <a id="swipebox-prev"></a> <a id="swipebox-next"></a> </div> </div> <a id="swipebox-close"></a> </div> </div>';u.settings={},n.swipebox.close=function(){a.closeSlide()},n.swipebox.extend=function(){return a},u.init=function(){u.settings=n.extend({},l,r),n.isArray(i)?(c=i,a.target=n(e),a.init(u.settings.initialIndexOnArray)):n(t).on("click",d,function(e){if("slide current"===e.target.parentNode.className)return!1;n.isArray(i)||(a.destroy(),s=n(d),a.actions()),c=[];var t,o,r;r||(o="data-rel",r=n(this).attr(o)),r||(o="rel",r=n(this).attr(o)),s=r&&""!==r&&"nofollow"!==r?p.filter("["+o+'="'+r+'"]'):n(d),s.each(function(){var e=null,t=null;n(this).attr("title")&&(e=n(this).attr("title")),n(this).attr("href")&&(t=n(this).attr("href")),c.push({href:t,title:e})}),t=s.index(n(this)),e.preventDefault(),e.stopPropagation(),a.target=n(e.target),a.init(t)})},a={init:function(e){u.settings.beforeOpen&&u.settings.beforeOpen(),this.target.trigger("swipebox-start"),n.swipebox.isOpen=!0,this.build(),this.openSlide(e),this.openMedia(e),this.preloadMedia(e+1),this.preloadMedia(e-1),u.settings.afterOpen&&u.settings.afterOpen()},build:function(){var e,t=this;n("body").append(y),h&&u.settings.useSVG===!0&&(e=n("#swipebox-close").css("background-image"),e=e.replace("png","svg"),n("#swipebox-prev, #swipebox-next, #swipebox-close").css({"background-image":e})),f&&u.settings.removeBarsOnMobile&&n("#swipebox-bottom-bar, #swipebox-top-bar").remove(),n.each(c,function(){n("#swipebox-slider").append('<div class="slide"></div>')}),t.setDim(),t.actions(),m&&t.gesture(),t.keyboard(),t.animBars(),t.resize()},setDim:function(){var t,o,i={};"onorientationchange"in e?e.addEventListener("orientationchange",function(){0===e.orientation?(t=g,o=v):(90===e.orientation||-90===e.orientation)&&(t=v,o=g)},!1):(t=e.innerWidth?e.innerWidth:n(e).width(),o=e.innerHeight?e.innerHeight:n(e).height()),i={width:t,height:o},n("#swipebox-overlay").css(i)},resize:function(){var t=this;n(e).resize(function(){t.setDim()}).resize()},supportTransition:function(){var e,n="transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" ");for(e=0;e<n.length;e++)if(t.createElement("div").style[n[e]]!==o)return n[e];return!1},doCssTrans:function(){return u.settings.useCSS&&this.supportTransition()?!0:void 0},gesture:function(){var e,t,o,i,r,a,s=this,l=!1,u=!1,d=10,p=50,f={},m={},h=n("#swipebox-top-bar, #swipebox-bottom-bar"),v=n("#swipebox-slider");h.addClass("visible-bars"),s.setTimeout(),n("body").bind("touchstart",function(s){return n(this).addClass("touching"),e=n("#swipebox-slider .slide").index(n("#swipebox-slider .slide.current")),m=s.originalEvent.targetTouches[0],f.pageX=s.originalEvent.targetTouches[0].pageX,f.pageY=s.originalEvent.targetTouches[0].pageY,n("#swipebox-slider").css({"-webkit-transform":"translate3d("+b+"%, 0, 0)",transform:"translate3d("+b+"%, 0, 0)"}),n(".touching").bind("touchmove",function(s){if(s.preventDefault(),s.stopPropagation(),m=s.originalEvent.targetTouches[0],!u&&(r=o,o=m.pageY-f.pageY,Math.abs(o)>=p||l)){var h=.75-Math.abs(o)/v.height();v.css({top:o+"px"}),v.css({opacity:h}),l=!0}i=t,t=m.pageX-f.pageX,a=100*t/g,!u&&!l&&Math.abs(t)>=d&&(n("#swipebox-slider").css({"-webkit-transition":"",transition:""}),u=!0),u&&(t>0?0===e?n("#swipebox-overlay").addClass("leftSpringTouch"):(n("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),n("#swipebox-slider").css({"-webkit-transform":"translate3d("+(b+a)+"%, 0, 0)",transform:"translate3d("+(b+a)+"%, 0, 0)"})):0>t&&(c.length===e+1?n("#swipebox-overlay").addClass("rightSpringTouch"):(n("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),n("#swipebox-slider").css({"-webkit-transform":"translate3d("+(b+a)+"%, 0, 0)",transform:"translate3d("+(b+a)+"%, 0, 0)"}))))}),!1}).bind("touchend",function(e){if(e.preventDefault(),e.stopPropagation(),n("#swipebox-slider").css({"-webkit-transition":"-webkit-transform 0.4s ease",transition:"transform 0.4s ease"}),o=m.pageY-f.pageY,t=m.pageX-f.pageX,a=100*t/g,l)if(l=!1,Math.abs(o)>=2*p&&Math.abs(o)>Math.abs(r)){var c=o>0?v.height():-v.height();v.animate({top:c+"px",opacity:0},300,function(){s.closeSlide()})}else v.animate({top:0,opacity:1},300);else u?(u=!1,t>=d&&t>=i?s.getPrev():-d>=t&&i>=t&&s.getNext()):h.hasClass("visible-bars")?(s.clearTimeout(),s.hideBars()):(s.showBars(),s.setTimeout());n("#swipebox-slider").css({"-webkit-transform":"translate3d("+b+"%, 0, 0)",transform:"translate3d("+b+"%, 0, 0)"}),n("#swipebox-overlay").removeClass("leftSpringTouch").removeClass("rightSpringTouch"),n(".touching").off("touchmove").removeClass("touching")})},setTimeout:function(){if(u.settings.hideBarsDelay>0){var t=this;t.clearTimeout(),t.timeout=e.setTimeout(function(){t.hideBars()},u.settings.hideBarsDelay)}},clearTimeout:function(){e.clearTimeout(this.timeout),this.timeout=null},showBars:function(){var e=n("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?e.addClass("visible-bars"):(n("#swipebox-top-bar").animate({top:0},500),n("#swipebox-bottom-bar").animate({bottom:0},500),setTimeout(function(){e.addClass("visible-bars")},1e3))},hideBars:function(){var e=n("#swipebox-top-bar, #swipebox-bottom-bar");this.doCssTrans()?e.removeClass("visible-bars"):(n("#swipebox-top-bar").animate({top:"-50px"},500),n("#swipebox-bottom-bar").animate({bottom:"-50px"},500),setTimeout(function(){e.removeClass("visible-bars")},1e3))},animBars:function(){var e=this,t=n("#swipebox-top-bar, #swipebox-bottom-bar");t.addClass("visible-bars"),e.setTimeout(),n("#swipebox-slider").click(function(){t.hasClass("visible-bars")||(e.showBars(),e.setTimeout())}),n("#swipebox-bottom-bar").hover(function(){e.showBars(),t.addClass("visible-bars"),e.clearTimeout()},function(){u.settings.hideBarsDelay>0&&(t.removeClass("visible-bars"),e.setTimeout())})},keyboard:function(){var t=this;n(e).bind("keyup",function(e){e.preventDefault(),e.stopPropagation(),37===e.keyCode?t.getPrev():39===e.keyCode?t.getNext():27===e.keyCode&&t.closeSlide()})},actions:function(){var e=this,t="touchend click";c.length<2?(n("#swipebox-bottom-bar").hide(),o===c[1]&&n("#swipebox-top-bar").hide()):(n("#swipebox-prev").bind(t,function(t){t.preventDefault(),t.stopPropagation(),e.getPrev(),e.setTimeout()}),n("#swipebox-next").bind(t,function(t){t.preventDefault(),t.stopPropagation(),e.getNext(),e.setTimeout()})),n("#swipebox-close").bind(t,function(){e.closeSlide()})},setSlide:function(e,t){t=t||!1;var o=n("#swipebox-slider");b=100*-e,this.doCssTrans()?o.css({"-webkit-transform":"translate3d("+100*-e+"%, 0, 0)",transform:"translate3d("+100*-e+"%, 0, 0)"}):o.animate({left:100*-e+"%"}),n("#swipebox-slider .slide").removeClass("current"),n("#swipebox-slider .slide").eq(e).addClass("current"),this.setTitle(e),t&&o.fadeIn(),n("#swipebox-prev, #swipebox-next").removeClass("disabled"),0===e?n("#swipebox-prev").addClass("disabled"):e===c.length-1&&u.settings.loopAtEnd!==!0&&n("#swipebox-next").addClass("disabled")},openSlide:function(t){n("html").addClass("swipebox-html"),m?(n("html").addClass("swipebox-touch"),u.settings.hideCloseButtonOnMobile&&n("html").addClass("swipebox-no-close-button")):n("html").addClass("swipebox-no-touch"),n(e).trigger("resize"),this.setSlide(t,!0)},preloadMedia:function(e){var t=this,n=null;c[e]!==o&&(n=c[e].href),t.isVideo(n)?t.openMedia(e):setTimeout(function(){t.openMedia(e)},1e3)},openMedia:function(e){var t,i,r=this;return c[e]!==o&&(t=c[e].href),0>e||e>=c.length?!1:(i=n("#swipebox-slider .slide").eq(e),void(r.isVideo(t)?i.html(r.getVideo(t)):(i.addClass("slide-loading"),r.loadMedia(t,function(){i.removeClass("slide-loading"),i.html(this)}))))},setTitle:function(e){var t=null;n("#swipebox-title").empty(),c[e]!==o&&(t=c[e].title),t?(n("#swipebox-top-bar").show(),n("#swipebox-title").append(t)):n("#swipebox-top-bar").hide()},isVideo:function(e){if(e){if(e.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||e.match(/vimeo\.com\/([0-9]*)/)||e.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/))return!0;if(e.toLowerCase().indexOf("swipeboxvideo=1")>=0)return!0}},parseUri:function(e,o){var i=t.createElement("a"),r={};return i.href=decodeURIComponent(e),i.search&&(r=JSON.parse('{"'+i.search.toLowerCase().replace("?","").replace(/&/g,'","').replace(/=/g,'":"')+'"}')),n.isPlainObject(o)&&(r=n.extend(r,o,u.settings.queryStringData)),n.map(r,function(e,t){return e&&e>""?encodeURIComponent(t)+"="+encodeURIComponent(e):void 0}).join("&")},getVideo:function(e){var t="",n=e.match(/((?:www\.)?youtube\.com|(?:www\.)?youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/),o=e.match(/(?:www\.)?youtu\.be\/([a-zA-Z0-9\-_]+)/),i=e.match(/(?:www\.)?vimeo\.com\/([0-9]*)/),r="";return n||o?(o&&(n=o),r=a.parseUri(e,{autoplay:u.settings.autoplayVideos?"1":"0",v:""}),t='<iframe width="560" height="315" src="//'+n[1]+"/embed/"+n[2]+"?"+r+'" frameborder="0" allowfullscreen></iframe>'):i?(r=a.parseUri(e,{autoplay:u.settings.autoplayVideos?"1":"0",byline:"0",portrait:"0",color:u.settings.vimeoColor}),t='<iframe width="560" height="315" src="//player.vimeo.com/video/'+i[1]+"?"+r+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'):t='<iframe width="560" height="315" src="'+e+'" frameborder="0" allowfullscreen></iframe>','<div class="swipebox-video-container" style="max-width:'+u.settings.videoMaxWidth+'px"><div class="swipebox-video">'+t+"</div></div>"},loadMedia:function(e,t){if(0===e.trim().indexOf("#"))t.call(n("<div>",{"class":"swipebox-inline-container"}).append(n(e).clone().toggleClass(u.settings.toggleClassOnLoad)));else if(!this.isVideo(e)){var o=n("<img>").on("load",function(){t.call(o)});o.attr("src",e)}},getNext:function(){var e,t=this,o=n("#swipebox-slider .slide").index(n("#swipebox-slider .slide.current"));o+1<c.length?(e=n("#swipebox-slider .slide").eq(o).contents().find("iframe").attr("src"),n("#swipebox-slider .slide").eq(o).contents().find("iframe").attr("src",e),o++,t.setSlide(o),t.preloadMedia(o+1),u.settings.nextSlide&&u.settings.nextSlide()):u.settings.loopAtEnd===!0?(e=n("#swipebox-slider .slide").eq(o).contents().find("iframe").attr("src"),n("#swipebox-slider .slide").eq(o).contents().find("iframe").attr("src",e),o=0,t.preloadMedia(o),t.setSlide(o),t.preloadMedia(o+1),u.settings.nextSlide&&u.settings.nextSlide()):(n("#swipebox-overlay").addClass("rightSpring"),setTimeout(function(){n("#swipebox-overlay").removeClass("rightSpring")},500))},getPrev:function(){var e,t=n("#swipebox-slider .slide").index(n("#swipebox-slider .slide.current"));t>0?(e=n("#swipebox-slider .slide").eq(t).contents().find("iframe").attr("src"),n("#swipebox-slider .slide").eq(t).contents().find("iframe").attr("src",e),t--,this.setSlide(t),this.preloadMedia(t-1),u.settings.prevSlide&&u.settings.prevSlide()):(n("#swipebox-overlay").addClass("leftSpring"),setTimeout(function(){n("#swipebox-overlay").removeClass("leftSpring")},500))},nextSlide:function(){},prevSlide:function(){},closeSlide:function(){n("html").removeClass("swipebox-html"),n("html").removeClass("swipebox-touch"),n(e).trigger("resize"),this.destroy()},destroy:function(){n(e).unbind("keyup"),n("body").unbind("touchstart"),n("body").unbind("touchmove"),n("body").unbind("touchend"),n("#swipebox-slider").unbind(),n("#swipebox-overlay").remove(),n.isArray(i)||i.removeData("_swipebox"),this.target&&this.target.trigger("swipebox-destroy"),n.swipebox.isOpen=!1,u.settings.afterClose&&u.settings.afterClose()}},u.init()},n.fn.swipebox=function(e){if(!n.data(this,"_swipebox")){var t=new n.swipebox(this,e);this.data("_swipebox",t)}return this.data("_swipebox")}}(window,document,s),e.startup(function(){a(".swipebox").swipebox({hideBarsDelay:0}),a(document).on("click","#swipebox-overlay",function(){a.swipebox.close()})})}.call(this),function(){S="object"==typeof S?S:{};var e=S;this.menu=new(function(){function e(){}return e.prototype.init=function(){return this.container=a("#rocket-chat"),this.list=a(".rooms-list")},e.prototype.isOpen=function(){var e;return(null!=(e=this.container)?e.hasClass("menu-opened"):void 0)===!0},e.prototype.open=function(){var e;return this.isOpen()?void 0:null!=(e=this.container)?e.removeClass("menu-closed").addClass("menu-opened"):void 0},e.prototype.close=function(){var e;return this.isOpen()&&null!=(e=this.container)?e.removeClass("menu-opened").addClass("menu-closed"):void 0},e.prototype.toggle=function(){return this.isOpen()?this.close():this.open()},e.prototype.updateUnreadBars=f.throttle(function(){var e,t,n,o;if(null!=this.list)return t=this.list.offset(),e=this.list.height(),o=!1,n=!1,a("li.has-alert").each(function(){return a(this).offset().top<t.top-a(this).height()&&(o=!0),a(this).offset().top>t.top+e?n=!0:void 0}),o===!0?a(".top-unread-rooms").removeClass("hidden"):a(".top-unread-rooms").addClass("hidden"),n===!0?a(".bottom-unread-rooms").removeClass("hidden"):a(".bottom-unread-rooms").addClass("hidden")},200),e}())}.call(this),function(){S="object"==typeof S?S:{};var e=S;this.Modal=function(){var e,t,n,o,i,r,s,l,u,c,d,p;return l={},p=a(window),o=function(){var e;return l.$modal&&(e=l.$modal.find("input[type='text']"),e.length)?e.get(0).focus():void 0},r=function(e){var t;return t=e.which,27===t?(e.preventDefault(),e.stopImmediatePropagation(),n()):void 0},e=function(){return l.$modal&&l.$modal.length&&p.height()<l.$window.outerHeight()+.1*p.height()&&!l.$modal.hasClass("fluid")?l.$modal.addClass("fluid"):void 0},s=function(e,t){return t=t||{},m.animeBack(l.$modal,function(){return o()}),l.opened=1,t.listening&&c(),null!=e&&u(e,t.data),l.$modal.addClass("opened"),l.$modal.removeClass("fluid"),setTimeout(function(){return o()},200)},n=function(){return l.$modal.addClass("closed"),p.unbind("keydown.modal"),setTimeout(function(){return l.opened=0,d(),l.$modal.removeClass("opened closed")},300)},u=function(n,o){return l.$main.empty(),n?(o?_.renderWithData(n,o,l.$main.get(0)):_.render(n,l.$main.get(0)),t(),e()):void 0},t=function(){var e;return l.$footer&&l.$footer.length?(e=l.$footer.find("button"),e.each(function(){var e;return e=a(this),e.html().match(/fechar/gi)?e.click(function(e){return e.preventDefault(),n()}):void 0})):void 0},c=function(){return d(),l.interval=setInterval(function(){return e()},100)},d=function(){return l.interval?clearInterval(l.interval):void 0},i=function(t,o){return l.params=o||{},l.opened=0,l.initialized=0,l.$modal=t.length?t:a(".rocket-modal"),l.$modal.length?(l.initialized=0,l.$window=l.$modal.find(".modal"),l.$main=l.$modal.find("main"),l.$close=l.$modal.find("header > .close"),l.$footer=l.$modal.find("footer"),l.$close.unbind("click").click(n),p.unbind("resize.modal").bind("resize.modal",e),p.unbind("keydown.modal").bind("keydown.modal",function(e){return r(e)})):void 0},{init:i,open:s,close:n,focus:o,setContent:u}}()}.call(this),function(){window.Modernizr=function(e,t,n){function o(e){g.cssText=e}function i(e,t){return o(w.join(e+";")+(t||""))}function r(e,t){return typeof e===t}function a(e,t){return!!~(""+e).indexOf(t)}function s(e,t){for(var o in v.sanitizeForInObject(e)){var i=e[o];if(!a(i,"-")&&g[i]!==n)return"pfx"==t?i:!0}return!1}function l(e,t,o){for(var i in v.sanitizeForInObject(e)){var a=t[e[i]];if(a!==n)return o===!1?e[i]:r(a,"function")?a.bind(o||t):a}return!1}function u(e,t,n){var o=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+_.join(o+" ")+o).split(" ");return r(t,"string")||r(t,"undefined")?s(i,t):(i=(e+" "+x.join(o+" ")+o).split(" "),
|
||
l(i,t,n))}var c="2.8.3",d={},p=!0,f=t.documentElement,m="modernizr",h=t.createElement(m),g=h.style,b,y={}.toString,w=" -webkit- -moz- -o- -ms- ".split(" "),k="Webkit Moz O ms",_=k.split(" "),x=k.toLowerCase().split(" "),M={},T={},C={},R=[],I=R.slice,S,N=function(e,n,o,i){var r,a,s,l,u=t.createElement("div"),c=t.body,d=c||t.createElement("body");if(parseInt(o,10))for(;o--;)s=t.createElement("div"),s.id=i?i[o]:m+(o+1),u.appendChild(s);return r=["­",'<style id="s',m,'">',e,"</style>"].join(""),u.id=m,(c?u:d).innerHTML+=r,d.appendChild(u),c||(d.style.background="",d.style.overflow="hidden",l=f.style.overflow,f.style.overflow="hidden",f.appendChild(d)),a=n(u,e),c?u.parentNode.removeChild(u):(d.parentNode.removeChild(d),f.style.overflow=l),!!a},E={}.hasOwnProperty,A;A=r(E,"undefined")||r(E.call,"undefined")?function(e,t){return t in e&&r(e.constructor.prototype[t],"undefined")}:function(e,t){return E.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError;var n=I.call(arguments,1),o=function(){if(this instanceof o){var i=function(){};i.prototype=t.prototype;var r=new i,a=t.apply(r,n.concat(I.call(arguments)));return Object(a)===a?a:r}return t.apply(e,n.concat(I.call(arguments)))};return o}),M.touch=function(){var n;return"ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch?n=!0:N(["@media (",w.join("touch-enabled),("),m,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(e){n=9===e.offsetTop}),n},M.cssanimations=function(){return u("animationName")},M.csstransitions=function(){return u("transition")};for(var O in v.sanitizeForInObject(M))A(M,O)&&(S=O.toLowerCase(),d[S]=M[O](),R.push((d[S]?"":"no-")+S));return d.addTest=function(e,t){if("object"==typeof e)for(var o in v.sanitizeForInObject(e))A(e,o)&&d.addTest(o,e[o]);else{if(e=e.toLowerCase(),d[e]!==n)return d;t="function"==typeof t?t():t,"undefined"!=typeof p&&p&&(f.className+=" "+(t?"":"no-")+e),d[e]=t}return d},o(""),h=b=null,function(e,t){function n(e,t){var n=e.createElement("p"),o=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",o.insertBefore(n.lastChild,o.firstChild)}function o(){var e=b.elements;return"string"==typeof e?e.split(" "):e}function i(e){var t=g[e[m]];return t||(t={},h++,e[m]=h,g[h]=t),t}function r(e,n,o){if(n||(n=t),v)return n.createElement(e);o||(o=i(n));var r;return r=o.cache[e]?o.cache[e].cloneNode():p.test(e)?(o.cache[e]=o.createElem(e)).cloneNode():o.createElem(e),!r.canHaveChildren||d.test(e)||r.tagUrn?r:o.frag.appendChild(r)}function a(e,n){if(e||(e=t),v)return e.createDocumentFragment();n=n||i(e);for(var r=n.frag.cloneNode(),a=0,s=o(),l=s.length;l>a;a++)r.createElement(s[a]);return r}function s(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return b.shivMethods?r(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+o().join().replace(/[\w\-]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(b,t.frag)}function l(e){e||(e=t);var o=i(e);return b.shivCSS&&!f&&!o.hasCSS&&(o.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),v||s(e,o),e}var u="3.7.0",c=e.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,p=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,m="_html5shiv",h=0,g={},v;!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",f="hidden"in e,v=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){f=!0,v=!0}}();var b={elements:c.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:u,shivCSS:c.shivCSS!==!1,supportsUnknownElements:v,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:l,createElement:r,createDocumentFragment:a};e.html5=b,l(t)}(this,t),d._version=c,d._prefixes=w,d._domPrefixes=x,d._cssomPrefixes=_,d.testProp=function(e){return s([e])},d.testAllProps=u,d.testStyles=N,d.prefixed=function(e,t,n){return t?u(e,t,n):u(e,"pfx")},f.className=f.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(p?" js "+R.join(" "):""),d}(this,this.document),function(e,t,n){function o(e){return"[object Function]"==m.call(e)}function i(e){return"string"==typeof e}function r(){}function a(e){return!e||"loaded"==e||"complete"==e||"uninitialized"==e}function s(){var e=h.shift();g=1,e?e.t?p(function(){("c"==e.t?I.injectCss:I.injectJs)(e.s,0,e.a,e.x,e.e,1)},0):(e(),s()):g=0}function l(e,n,o,i,r,l,u){function c(t){if(!m&&a(d.readyState)&&(k.r=m=1,!g&&s(),d.onload=d.onreadystatechange=null,t)){"img"!=e&&p(function(){w.removeChild(d)},50);for(var o in v.sanitizeForInObject(T[n]))T[n].hasOwnProperty(o)&&T[n][o].onload()}}var u=u||I.errorTimeout,d=t.createElement(e),m=0,b=0,k={t:o,s:n,e:r,a:l,x:u};1===T[n]&&(b=1,T[n]=[]),"object"==e?d.data=n:(d.src=n,d.type=e),d.width=d.height="0",d.onerror=d.onload=d.onreadystatechange=function(){c.call(this,b)},h.splice(i,0,k),"img"!=e&&(b||2===T[n]?(w.insertBefore(d,y?null:f),p(c,u)):T[n].push(d))}function u(e,t,n,o,r){return g=0,t=t||"j",i(e)?l("c"==t?_:k,e,t,this.i++,n,o,r):(h.splice(this.i++,0,e),1==h.length&&s()),this}function c(){var e=I;return e.loader={load:u,i:0},e}var d=t.documentElement,p=e.setTimeout,f=t.getElementsByTagName("script")[0],m={}.toString,h=[],g=0,b="MozAppearance"in d.style,y=b&&!!t.createRange().compareNode,w=y?d:f.parentNode,d=e.opera&&"[object Opera]"==m.call(e.opera),d=!!t.attachEvent&&!d,k=b?"object":d?"script":"img",_=d?"script":k,x=Array.isArray||function(e){return"[object Array]"==m.call(e)},M=[],T={},C={timeout:function(e,t){return t.length&&(e.timeout=t[0]),e}},R,I;I=function(e){function t(e){var e=e.split("!"),t=M.length,n=e.pop(),o=e.length,n={url:n,origUrl:n,prefixes:e},i,r,a;for(r=0;o>r;r++)a=e[r].split("="),(i=C[a.shift()])&&(n=i(n,a));for(r=0;t>r;r++)n=M[r](n);return n}function a(e,i,r,a,s){var l=t(e),u=l.autoCallback;l.url.split(".").pop().split("?").shift(),l.bypass||(i&&(i=o(i)?i:i[e]||i[a]||i[e.split("/").pop().split("?")[0]]),l.instead?l.instead(e,i,r,a,s):(T[l.url]?l.noexec=!0:T[l.url]=1,r.load(l.url,l.forceCSS||!l.forceJS&&"css"==l.url.split(".").pop().split("?").shift()?"c":n,l.noexec,l.attrs,l.timeout),(o(i)||o(u))&&r.load(function(){c(),i&&i(l.origUrl,s,a),u&&u(l.origUrl,s,a),T[l.url]=2})))}function s(e,t){function n(e,n){if(e){if(i(e))n||(u=function(){var e=[].slice.call(arguments);c.apply(this,e),d()}),a(e,u,t,0,s);else if(Object(e)===e)for(f in v.sanitizeForInObject((p=function(){var t=0,n;for(n in v.sanitizeForInObject(e))e.hasOwnProperty(n)&&t++;return t}(),e)))e.hasOwnProperty(f)&&(!n&&!--p&&(o(u)?u=function(){var e=[].slice.call(arguments);c.apply(this,e),d()}:u[f]=function(e){return function(){var t=[].slice.call(arguments);e&&e.apply(this,t),d()}}(c[f])),a(e[f],u,t,f,s))}else!n&&d()}var s=!!e.test,l=e.load||e.both,u=e.callback||r,c=u,d=e.complete||r,p,f;n(s?e.yep:e.nope,!!l),l&&n(l)}var l,u,d=this.yepnope.loader;if(i(e))a(e,0,d,0);else if(x(e))for(l=0;l<e.length;l++)u=e[l],i(u)?a(u,0,d,0):x(u)?I(u):Object(u)===u&&s(u,d);else Object(e)===e&&s(e,d)},I.addPrefix=function(e,t){C[e]=t},I.addFilter=function(e){M.push(e)},I.errorTimeout=1e4,null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",R=function(){t.removeEventListener("DOMContentLoaded",R,0),t.readyState="complete"},0)),e.yepnope=c(),e.yepnope.executeStack=s,e.yepnope.injectJs=function(e,n,o,i,l,u){var c=t.createElement("script"),d,m,i=i||I.errorTimeout;c.src=e;for(m in v.sanitizeForInObject(o))c.setAttribute(m,o[m]);n=u?s:n||r,c.onreadystatechange=c.onload=function(){!d&&a(c.readyState)&&(d=1,n(),c.onload=c.onreadystatechange=null)},p(function(){d||(d=1,n(1))},i),l?c.onload():f.parentNode.insertBefore(c,f)},e.yepnope.injectCss=function(e,n,o,i,a,l){var i=t.createElement("link"),u,n=l?s:n||r;i.href=e,i.rel="stylesheet",i.type="text/css";for(u in v.sanitizeForInObject(o))i.setAttribute(u,o[u]);a||(f.parentNode.insertBefore(i,f),p(n,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},Modernizr.addTest("csscalc",function(){var e="width:",t="calc(10px);",n=document.createElement("div");return n.style.cssText=e+Modernizr._prefixes.join(t+e),!!n.style.length})}.call(this),function(){S="object"==typeof S?S:{};var t=S;this.MsgTyping=function(){var t,n,o,i,a,s,u,d,p,h,g;return p=15e3,h={},i=!0,a=1e4,s=new c(!1),g={},n=new l.Dependency,t=function(t){var o;return f.isEmpty(null!=(o=g[t])?o.users:void 0)?(g[t]={users:{}},m.Notifications.onRoom(t,"typing",function(o,i){var r,a;return o!==(null!=(r=e.user())?r.username:void 0)?i===!0?(a=g[t].users,a[o]=e.setTimeout(function(){return delete a[o],g[t].users=a,n.changed()},p),g[t].users=a,n.changed()):(a=g[t].users,delete a[o],g[t].users=a,n.changed()):void 0})):void 0},l.autorun(function(){return r.get("openedRoom")?t(r.get("openedRoom")):void 0}),u=function(t){var n;if(i)return setTimeout(function(){return i=!0},a),i=!1,s.set(!0),m.Notifications.notifyRoom(t,"typing",null!=(n=e.user())?n.username:void 0,!0),clearTimeout(h[t]),h[t]=e.setTimeout(function(){return d(t)},p)},d=function(t){var n;return i=!0,s.set(!1),null!=(null!=h?h[t]:void 0)&&(clearTimeout(h[t]),h[t]=null),m.Notifications.notifyRoom(t,"typing",null!=(n=e.user())?n.username:void 0,!1)},o=function(e){var t;return n.depend(),g[e]||(g[e]={users:{}}),t=g[e].users,f.keys(t)||[]},{start:u,stop:d,get:o,selfTyping:s}}()}.call(this),function(){S="object"==typeof S?S:{};var t=S;this.KonchatNotification={notificationStatus:new c,getDesktopPermission:function(){return window.Notification&&"granted"!==Notification.permission?Notification.requestPermission(function(e){return KonchatNotification.notificationStatus.set(e),Notification.permission!==e?Notification.permission=e:void 0}):void 0},notify:function(e){var t,n;return window.Notification&&"granted"===Notification.permission?(t={rid:null!=(n=e.payload)?n.rid:void 0,msg:e.text,notification:!0},m.promises.run("onClientMessageReceived",t).then(function(t){var n,o;return n=new Notification(e.title,{icon:e.icon||getAvatarUrlFromUsername(e.payload.sender.username),body:f.stripTags(t.msg),silent:!0}),null!=(null!=(o=e.payload)?o.rid:void 0)?n.onclick=function(){switch(window.focus(),e.payload.type){case"d":return g.go("direct",{username:e.payload.sender.username});case"c":return g.go("channel",{name:e.payload.name});case"p":return g.go("group",{name:e.payload.name})}}:void 0})):void 0},showDesktop:function(t){var n;return("function"==typeof(n=window.document).hasFocus?n.hasFocus():void 0)||"busy"===e.user().status?void 0:e.settings["public"].sandstorm?KonchatNotification.notify(t):getAvatarAsPng(t.payload.sender.username,function(e){return t.icon=e,KonchatNotification.notify(t)})},newMessage:function(){var t,n,o;return r.equals("user_"+e.userId()+"_status","busy")||(null!=(t=e.user())&&null!=(n=t.settings)&&null!=(o=n.preferences)?o.disableNewMessageNotification:void 0)?void 0:a("#chatAudioNotification")[0].play()},newRoom:function(e,t){return null==t&&(t=!0),l.nonreactive(function(){var t;return t=r.get("newRoomSound"),t=null!=t?f.union(t,e):[e],r.set("newRoomSound",t)})},removeRoomNotification:function(e){return l.nonreactive(function(){var t;return t=r.get("newRoomSound"),t=f.without(t,e),r.set("newRoomSound",t)}),a(".link-room-"+e).removeClass("new-room-highlight")}},l.autorun(function(){var t,n,o,i;return(null!=(t=r.get("newRoomSound"))?t.length:void 0)>0?r.equals("user_"+e.userId()+"_status","busy")||(null!=(n=e.user())&&null!=(o=n.settings)&&null!=(i=o.preferences)?i.disableNewRoomNotification:void 0)?void 0:a("#chatNewRoomNotification").each(function(){return this.play()}):a("#chatNewRoomNotification").each(function(){return this.pause(),this.currentTime=0})})}.call(this),function(){_.TemplateInstance.prototype.parentTemplate=function(e){var t=_.currentView;for("undefined"==typeof e&&(e=1);t;){if("Template."===t.name.substring(0,9)&&!e--)return t.templateInstance();t=t.parentView}}}.call(this),function(){function e(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(e,t,n,o){return t+t+n+n+o+o});var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null}function t(e,t,n){return Math.min(Math.max(e,t),n)}function n(e,t){return t.indexOf(e)>-1}var o=function(o,i){var r=document.querySelector("#"+o+" > .particles-js-canvas-el");this.pJS={canvas:{el:r,w:r.offsetWidth,h:r.offsetHeight},particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:"#fff"},shape:{type:"circle",stroke:{width:0,color:"#ff0000"},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:"#fff",opacity:1,width:1},move:{enable:!0,speed:2,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}},array:[]},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}},mouse:{}},retina_detect:!1,fn:{interact:{},modes:{},vendors:{}},tmp:{}};var a=this.pJS;i&&Object.deepExtend(a,i),a.tmp.obj={size_value:a.particles.size.value,size_anim_speed:a.particles.size.anim.speed,move_speed:a.particles.move.speed,line_linked_distance:a.particles.line_linked.distance,line_linked_width:a.particles.line_linked.width,mode_grab_distance:a.interactivity.modes.grab.distance,mode_bubble_distance:a.interactivity.modes.bubble.distance,mode_bubble_size:a.interactivity.modes.bubble.size,mode_repulse_distance:a.interactivity.modes.repulse.distance},a.fn.retinaInit=function(){a.retina_detect&&window.devicePixelRatio>1?(a.canvas.pxratio=window.devicePixelRatio,a.tmp.retina=!0):(a.canvas.pxratio=1,a.tmp.retina=!1),a.canvas.w=a.canvas.el.offsetWidth*a.canvas.pxratio,a.canvas.h=a.canvas.el.offsetHeight*a.canvas.pxratio,a.particles.size.value=a.tmp.obj.size_value*a.canvas.pxratio,a.particles.size.anim.speed=a.tmp.obj.size_anim_speed*a.canvas.pxratio,a.particles.move.speed=a.tmp.obj.move_speed*a.canvas.pxratio,a.particles.line_linked.distance=a.tmp.obj.line_linked_distance*a.canvas.pxratio,a.interactivity.modes.grab.distance=a.tmp.obj.mode_grab_distance*a.canvas.pxratio,a.interactivity.modes.bubble.distance=a.tmp.obj.mode_bubble_distance*a.canvas.pxratio,a.particles.line_linked.width=a.tmp.obj.line_linked_width*a.canvas.pxratio,a.interactivity.modes.bubble.size=a.tmp.obj.mode_bubble_size*a.canvas.pxratio,a.interactivity.modes.repulse.distance=a.tmp.obj.mode_repulse_distance*a.canvas.pxratio},a.fn.canvasInit=function(){a.canvas.ctx=a.canvas.el.getContext("2d")},a.fn.canvasSize=function(){a.canvas.el.width=a.canvas.w,a.canvas.el.height=a.canvas.h,a&&a.interactivity.events.resize&&window.addEventListener("resize",function(){a.canvas.w=a.canvas.el.offsetWidth,a.canvas.h=a.canvas.el.offsetHeight,a.tmp.retina&&(a.canvas.w*=a.canvas.pxratio,a.canvas.h*=a.canvas.pxratio),a.canvas.el.width=a.canvas.w,a.canvas.el.height=a.canvas.h,a.particles.move.enable||(a.fn.particlesEmpty(),a.fn.particlesCreate(),a.fn.particlesDraw(),a.fn.vendors.densityAutoParticles()),a.fn.vendors.densityAutoParticles()})},a.fn.canvasPaint=function(){a.canvas.ctx.fillRect(0,0,a.canvas.w,a.canvas.h)},a.fn.canvasClear=function(){a.canvas.ctx.clearRect(0,0,a.canvas.w,a.canvas.h)},a.fn.particle=function(t,n,o){if(this.radius=(a.particles.size.random?Math.random():1)*a.particles.size.value,a.particles.size.anim.enable&&(this.size_status=!1,this.vs=a.particles.size.anim.speed/100,a.particles.size.anim.sync||(this.vs=this.vs*Math.random())),this.x=o?o.x:Math.random()*a.canvas.w,this.y=o?o.y:Math.random()*a.canvas.h,this.x>a.canvas.w-2*this.radius?this.x=this.x-this.radius:this.x<2*this.radius&&(this.x=this.x+this.radius),this.y>a.canvas.h-2*this.radius?this.y=this.y-this.radius:this.y<2*this.radius&&(this.y=this.y+this.radius),a.particles.move.bounce&&a.fn.vendors.checkOverlap(this,o),this.color={},"object"==typeof t.value)if(t.value instanceof Array){var i=t.value[Math.floor(Math.random()*a.particles.color.value.length)];this.color.rgb=e(i)}else void 0!=t.value.r&&void 0!=t.value.g&&void 0!=t.value.b&&(this.color.rgb={r:t.value.r,g:t.value.g,b:t.value.b}),void 0!=t.value.h&&void 0!=t.value.s&&void 0!=t.value.l&&(this.color.hsl={h:t.value.h,s:t.value.s,l:t.value.l});else"random"==t.value?this.color.rgb={r:Math.floor(256*Math.random())+0,g:Math.floor(256*Math.random())+0,b:Math.floor(256*Math.random())+0}:"string"==typeof t.value&&(this.color=t,this.color.rgb=e(this.color.value));this.opacity=(a.particles.opacity.random?Math.random():1)*a.particles.opacity.value,a.particles.opacity.anim.enable&&(this.opacity_status=!1,this.vo=a.particles.opacity.anim.speed/100,a.particles.opacity.anim.sync||(this.vo=this.vo*Math.random()));var r={};switch(a.particles.move.direction){case"top":r={x:0,y:-1};break;case"top-right":r={x:.5,y:-.5};break;case"right":r={x:1,y:-0};break;case"bottom-right":r={x:.5,y:.5};break;case"bottom":r={x:0,y:1};break;case"bottom-left":r={x:-.5,y:1};break;case"left":r={x:-1,y:0};break;case"top-left":r={x:-.5,y:-.5};break;default:r={x:0,y:0}}a.particles.move.straight?(this.vx=r.x,this.vy=r.y,a.particles.move.random&&(this.vx=this.vx*Math.random(),this.vy=this.vy*Math.random())):(this.vx=r.x+Math.random()-.5,this.vy=r.y+Math.random()-.5),this.vx_i=this.vx,this.vy_i=this.vy;var s=a.particles.shape.type;if("object"==typeof s){if(s instanceof Array){var l=s[Math.floor(Math.random()*s.length)];this.shape=l}}else this.shape=s;if("image"==this.shape){var u=a.particles.shape;this.img={src:u.image.src,ratio:u.image.width/u.image.height},this.img.ratio||(this.img.ratio=1),"svg"==a.tmp.img_type&&void 0!=a.tmp.source_svg&&(a.fn.vendors.createSvgImg(this),a.tmp.pushing&&(this.img.loaded=!1))}},a.fn.particle.prototype.draw=function(){function e(){a.canvas.ctx.drawImage(r,t.x-n,t.y-n,2*n,2*n/t.img.ratio)}var t=this;if(void 0!=t.radius_bubble)var n=t.radius_bubble;else var n=t.radius;if(void 0!=t.opacity_bubble)var o=t.opacity_bubble;else var o=t.opacity;if(t.color.rgb)var i="rgba("+t.color.rgb.r+","+t.color.rgb.g+","+t.color.rgb.b+","+o+")";else var i="hsla("+t.color.hsl.h+","+t.color.hsl.s+"%,"+t.color.hsl.l+"%,"+o+")";switch(a.canvas.ctx.fillStyle=i,a.canvas.ctx.beginPath(),t.shape){case"circle":a.canvas.ctx.arc(t.x,t.y,n,0,2*Math.PI,!1);break;case"edge":a.canvas.ctx.rect(t.x-n,t.y-n,2*n,2*n);break;case"triangle":a.fn.vendors.drawShape(a.canvas.ctx,t.x-n,t.y+n/1.66,2*n,3,2);break;case"polygon":a.fn.vendors.drawShape(a.canvas.ctx,t.x-n/(a.particles.shape.polygon.nb_sides/3.5),t.y-n/.76,2.66*n/(a.particles.shape.polygon.nb_sides/3),a.particles.shape.polygon.nb_sides,1);break;case"star":a.fn.vendors.drawShape(a.canvas.ctx,t.x-2*n/(a.particles.shape.polygon.nb_sides/4),t.y-n/1.52,2*n*2.66/(a.particles.shape.polygon.nb_sides/3),a.particles.shape.polygon.nb_sides,2);break;case"image":if("svg"==a.tmp.img_type)var r=t.img.obj;else var r=a.tmp.img_obj;r&&e()}a.canvas.ctx.closePath(),a.particles.shape.stroke.width>0&&(a.canvas.ctx.strokeStyle=a.particles.shape.stroke.color,a.canvas.ctx.lineWidth=a.particles.shape.stroke.width,a.canvas.ctx.stroke()),a.canvas.ctx.fill()},a.fn.particlesCreate=function(){for(var e=0;e<a.particles.number.value;e++)a.particles.array.push(new a.fn.particle(a.particles.color,a.particles.opacity.value))},a.fn.particlesUpdate=function(){for(var e=0;e<a.particles.array.length;e++){var t=a.particles.array[e];if(a.particles.move.enable){var o=a.particles.move.speed/2;t.x+=t.vx*o,t.y+=t.vy*o}if(a.particles.opacity.anim.enable&&(1==t.opacity_status?(t.opacity>=a.particles.opacity.value&&(t.opacity_status=!1),t.opacity+=t.vo):(t.opacity<=a.particles.opacity.anim.opacity_min&&(t.opacity_status=!0),t.opacity-=t.vo),t.opacity<0&&(t.opacity=0)),a.particles.size.anim.enable&&(1==t.size_status?(t.radius>=a.particles.size.value&&(t.size_status=!1),t.radius+=t.vs):(t.radius<=a.particles.size.anim.size_min&&(t.size_status=!0),t.radius-=t.vs),t.radius<0&&(t.radius=0)),"bounce"==a.particles.move.out_mode)var i={x_left:t.radius,x_right:a.canvas.w,y_top:t.radius,y_bottom:a.canvas.h};else var i={x_left:-t.radius,x_right:a.canvas.w+t.radius,y_top:-t.radius,y_bottom:a.canvas.h+t.radius};switch(t.x-t.radius>a.canvas.w?(t.x=i.x_left,t.y=Math.random()*a.canvas.h):t.x+t.radius<0&&(t.x=i.x_right,t.y=Math.random()*a.canvas.h),t.y-t.radius>a.canvas.h?(t.y=i.y_top,t.x=Math.random()*a.canvas.w):t.y+t.radius<0&&(t.y=i.y_bottom,t.x=Math.random()*a.canvas.w),a.particles.move.out_mode){case"bounce":t.x+t.radius>a.canvas.w?t.vx=-t.vx:t.x-t.radius<0&&(t.vx=-t.vx),t.y+t.radius>a.canvas.h?t.vy=-t.vy:t.y-t.radius<0&&(t.vy=-t.vy)}if(n("grab",a.interactivity.events.onhover.mode)&&a.fn.modes.grabParticle(t),(n("bubble",a.interactivity.events.onhover.mode)||n("bubble",a.interactivity.events.onclick.mode))&&a.fn.modes.bubbleParticle(t),(n("repulse",a.interactivity.events.onhover.mode)||n("repulse",a.interactivity.events.onclick.mode))&&a.fn.modes.repulseParticle(t),a.particles.line_linked.enable||a.particles.move.attract.enable)for(var r=e+1;r<a.particles.array.length;r++){var s=a.particles.array[r];a.particles.line_linked.enable&&a.fn.interact.linkParticles(t,s),a.particles.move.attract.enable&&a.fn.interact.attractParticles(t,s),a.particles.move.bounce&&a.fn.interact.bounceParticles(t,s)}}},a.fn.particlesDraw=function(){a.canvas.ctx.clearRect(0,0,a.canvas.w,a.canvas.h),a.fn.particlesUpdate();for(var e=0;e<a.particles.array.length;e++){var t=a.particles.array[e];t.draw()}},a.fn.particlesEmpty=function(){a.particles.array=[]},a.fn.particlesRefresh=function(){cancelRequestAnimFrame(a.fn.checkAnimFrame),cancelRequestAnimFrame(a.fn.drawAnimFrame),a.tmp.source_svg=void 0,a.tmp.img_obj=void 0,a.tmp.count_svg=0,a.fn.particlesEmpty(),a.fn.canvasClear(),a.fn.vendors.start()},a.fn.interact.linkParticles=function(e,t){var n=e.x-t.x,o=e.y-t.y,i=Math.sqrt(n*n+o*o);if(i<=a.particles.line_linked.distance){var r=a.particles.line_linked.opacity-i/(1/a.particles.line_linked.opacity)/a.particles.line_linked.distance;if(r>0){var s=a.particles.line_linked.color_rgb_line;a.canvas.ctx.strokeStyle="rgba("+s.r+","+s.g+","+s.b+","+r+")",a.canvas.ctx.lineWidth=a.particles.line_linked.width,a.canvas.ctx.beginPath(),a.canvas.ctx.moveTo(e.x,e.y),a.canvas.ctx.lineTo(t.x,t.y),a.canvas.ctx.stroke(),a.canvas.ctx.closePath()}}},a.fn.interact.attractParticles=function(e,t){var n=e.x-t.x,o=e.y-t.y,i=Math.sqrt(n*n+o*o);if(i<=a.particles.line_linked.distance){var r=n/(1e3*a.particles.move.attract.rotateX),s=o/(1e3*a.particles.move.attract.rotateY);e.vx-=r,e.vy-=s,t.vx+=r,t.vy+=s}},a.fn.interact.bounceParticles=function(e,t){var n=e.x-t.x,o=e.y-t.y,i=Math.sqrt(n*n+o*o),r=e.radius+t.radius;r>=i&&(e.vx=-e.vx,e.vy=-e.vy,t.vx=-t.vx,t.vy=-t.vy)},a.fn.modes.pushParticles=function(e,t){a.tmp.pushing=!0;for(var n=0;e>n;n++)a.particles.array.push(new a.fn.particle(a.particles.color,a.particles.opacity.value,{x:t?t.pos_x:Math.random()*a.canvas.w,y:t?t.pos_y:Math.random()*a.canvas.h})),n==e-1&&(a.particles.move.enable||a.fn.particlesDraw(),a.tmp.pushing=!1)},a.fn.modes.removeParticles=function(e){a.particles.array.splice(0,e),a.particles.move.enable||a.fn.particlesDraw()},a.fn.modes.bubbleParticle=function(e){function t(){e.opacity_bubble=e.opacity,e.radius_bubble=e.radius}function o(t,n,o,i,r){if(t!=n)if(a.tmp.bubble_duration_end){if(void 0!=o){var l=i-p*(i-t)/a.interactivity.modes.bubble.duration,u=t-l;d=t+u,"size"==r&&(e.radius_bubble=d),"opacity"==r&&(e.opacity_bubble=d)}}else if(s<=a.interactivity.modes.bubble.distance){if(void 0!=o)var c=o;else var c=i;if(c!=t){var d=i-p*(i-t)/a.interactivity.modes.bubble.duration;"size"==r&&(e.radius_bubble=d),"opacity"==r&&(e.opacity_bubble=d)}}else"size"==r&&(e.radius_bubble=void 0),"opacity"==r&&(e.opacity_bubble=void 0)}if(a.interactivity.events.onhover.enable&&n("bubble",a.interactivity.events.onhover.mode)){var i=e.x-a.interactivity.mouse.pos_x,r=e.y-a.interactivity.mouse.pos_y,s=Math.sqrt(i*i+r*r),l=1-s/a.interactivity.modes.bubble.distance;if(s<=a.interactivity.modes.bubble.distance){if(l>=0&&"mousemove"==a.interactivity.status){if(a.interactivity.modes.bubble.size!=a.particles.size.value)if(a.interactivity.modes.bubble.size>a.particles.size.value){var u=e.radius+a.interactivity.modes.bubble.size*l;u>=0&&(e.radius_bubble=u)}else{var c=e.radius-a.interactivity.modes.bubble.size,u=e.radius-c*l;u>0?e.radius_bubble=u:e.radius_bubble=0}if(a.interactivity.modes.bubble.opacity!=a.particles.opacity.value)if(a.interactivity.modes.bubble.opacity>a.particles.opacity.value){var d=a.interactivity.modes.bubble.opacity*l;d>e.opacity&&d<=a.interactivity.modes.bubble.opacity&&(e.opacity_bubble=d)}else{var d=e.opacity-(a.particles.opacity.value-a.interactivity.modes.bubble.opacity)*l;d<e.opacity&&d>=a.interactivity.modes.bubble.opacity&&(e.opacity_bubble=d)}}}else t();"mouseleave"==a.interactivity.status&&t()}else if(a.interactivity.events.onclick.enable&&n("bubble",a.interactivity.events.onclick.mode)){if(a.tmp.bubble_clicking){var i=e.x-a.interactivity.mouse.click_pos_x,r=e.y-a.interactivity.mouse.click_pos_y,s=Math.sqrt(i*i+r*r),p=((new Date).getTime()-a.interactivity.mouse.click_time)/1e3;p>a.interactivity.modes.bubble.duration&&(a.tmp.bubble_duration_end=!0),p>2*a.interactivity.modes.bubble.duration&&(a.tmp.bubble_clicking=!1,a.tmp.bubble_duration_end=!1)}a.tmp.bubble_clicking&&(o(a.interactivity.modes.bubble.size,a.particles.size.value,e.radius_bubble,e.radius,"size"),o(a.interactivity.modes.bubble.opacity,a.particles.opacity.value,e.opacity_bubble,e.opacity,"opacity"))}},a.fn.modes.repulseParticle=function(e){function o(){var t=Math.atan2(m,f);if(e.vx=g*Math.cos(t),e.vy=g*Math.sin(t),"bounce"==a.particles.move.out_mode){var n={x:e.x+e.vx,y:e.y+e.vy};n.x+e.radius>a.canvas.w?e.vx=-e.vx:n.x-e.radius<0&&(e.vx=-e.vx),n.y+e.radius>a.canvas.h?e.vy=-e.vy:n.y-e.radius<0&&(e.vy=-e.vy)}}if(a.interactivity.events.onhover.enable&&n("repulse",a.interactivity.events.onhover.mode)&&"mousemove"==a.interactivity.status){var i=e.x-a.interactivity.mouse.pos_x,r=e.y-a.interactivity.mouse.pos_y,s=Math.sqrt(i*i+r*r),l={x:i/s,y:r/s},u=a.interactivity.modes.repulse.distance,c=100,d=t(1/u*(-1*Math.pow(s/u,2)+1)*u*c,0,50),p={x:e.x+l.x*d,y:e.y+l.y*d};"bounce"==a.particles.move.out_mode?(p.x-e.radius>0&&p.x+e.radius<a.canvas.w&&(e.x=p.x),p.y-e.radius>0&&p.y+e.radius<a.canvas.h&&(e.y=p.y)):(e.x=p.x,e.y=p.y)}else if(a.interactivity.events.onclick.enable&&n("repulse",a.interactivity.events.onclick.mode))if(a.tmp.repulse_finish||(a.tmp.repulse_count++,a.tmp.repulse_count==a.particles.array.length&&(a.tmp.repulse_finish=!0)),a.tmp.repulse_clicking){var u=Math.pow(a.interactivity.modes.repulse.distance/6,3),f=a.interactivity.mouse.click_pos_x-e.x,m=a.interactivity.mouse.click_pos_y-e.y,h=f*f+m*m,g=-u/h*1;u>=h&&o()}else 0==a.tmp.repulse_clicking&&(e.vx=e.vx_i,e.vy=e.vy_i)},a.fn.modes.grabParticle=function(e){if(a.interactivity.events.onhover.enable&&"mousemove"==a.interactivity.status){var t=e.x-a.interactivity.mouse.pos_x,n=e.y-a.interactivity.mouse.pos_y,o=Math.sqrt(t*t+n*n);if(o<=a.interactivity.modes.grab.distance){var i=a.interactivity.modes.grab.line_linked.opacity-o/(1/a.interactivity.modes.grab.line_linked.opacity)/a.interactivity.modes.grab.distance;if(i>0){var r=a.particles.line_linked.color_rgb_line;a.canvas.ctx.strokeStyle="rgba("+r.r+","+r.g+","+r.b+","+i+")",a.canvas.ctx.lineWidth=a.particles.line_linked.width,a.canvas.ctx.beginPath(),a.canvas.ctx.moveTo(e.x,e.y),a.canvas.ctx.lineTo(a.interactivity.mouse.pos_x,a.interactivity.mouse.pos_y),a.canvas.ctx.stroke(),a.canvas.ctx.closePath()}}}},a.fn.vendors.eventsListeners=function(){"window"==a.interactivity.detect_on?a.interactivity.el=window:a.interactivity.el=a.canvas.el,(a.interactivity.events.onhover.enable||a.interactivity.events.onclick.enable)&&(a.interactivity.el.addEventListener("mousemove",function(e){if(a.interactivity.el==window)var t=e.clientX,n=e.clientY;else var t=e.offsetX||e.clientX,n=e.offsetY||e.clientY;a.interactivity.mouse.pos_x=t,a.interactivity.mouse.pos_y=n,a.tmp.retina&&(a.interactivity.mouse.pos_x*=a.canvas.pxratio,a.interactivity.mouse.pos_y*=a.canvas.pxratio),a.interactivity.status="mousemove"}),a.interactivity.el.addEventListener("mouseleave",function(e){a.interactivity.mouse.pos_x=null,a.interactivity.mouse.pos_y=null,a.interactivity.status="mouseleave"})),a.interactivity.events.onclick.enable&&a.interactivity.el.addEventListener("click",function(){if(a.interactivity.mouse.click_pos_x=a.interactivity.mouse.pos_x,a.interactivity.mouse.click_pos_y=a.interactivity.mouse.pos_y,a.interactivity.mouse.click_time=(new Date).getTime(),a.interactivity.events.onclick.enable)switch(a.interactivity.events.onclick.mode){case"push":a.particles.move.enable?a.fn.modes.pushParticles(a.interactivity.modes.push.particles_nb,a.interactivity.mouse):1==a.interactivity.modes.push.particles_nb?a.fn.modes.pushParticles(a.interactivity.modes.push.particles_nb,a.interactivity.mouse):a.interactivity.modes.push.particles_nb>1&&a.fn.modes.pushParticles(a.interactivity.modes.push.particles_nb);break;case"remove":a.fn.modes.removeParticles(a.interactivity.modes.remove.particles_nb);break;case"bubble":a.tmp.bubble_clicking=!0;break;case"repulse":a.tmp.repulse_clicking=!0,a.tmp.repulse_count=0,a.tmp.repulse_finish=!1,setTimeout(function(){a.tmp.repulse_clicking=!1},1e3*a.interactivity.modes.repulse.duration)}})},a.fn.vendors.densityAutoParticles=function(){if(a.particles.number.density.enable){var e=a.canvas.el.width*a.canvas.el.height/1e3;a.tmp.retina&&(e/=2*a.canvas.pxratio);var t=e*a.particles.number.value/a.particles.number.density.value_area,n=a.particles.array.length-t;0>n?a.fn.modes.pushParticles(Math.abs(n)):a.fn.modes.removeParticles(n)}},a.fn.vendors.checkOverlap=function(e,t){for(var n=0;n<a.particles.array.length;n++){var o=a.particles.array[n],i=e.x-o.x,r=e.y-o.y,s=Math.sqrt(i*i+r*r);s<=e.radius+o.radius&&(e.x=t?t.x:Math.random()*a.canvas.w,e.y=t?t.y:Math.random()*a.canvas.h,a.fn.vendors.checkOverlap(e))}},a.fn.vendors.createSvgImg=function(e){var t=a.tmp.source_svg,n=/#([0-9A-F]{3,6})/gi,o=t.replace(n,function(t,n,o,i){if(e.color.rgb)var r="rgba("+e.color.rgb.r+","+e.color.rgb.g+","+e.color.rgb.b+","+e.opacity+")";else var r="hsla("+e.color.hsl.h+","+e.color.hsl.s+"%,"+e.color.hsl.l+"%,"+e.opacity+")";return r}),i=new Blob([o],{type:"image/svg+xml;charset=utf-8"}),r=window.URL||window.webkitURL||window,s=r.createObjectURL(i),l=new Image;l.addEventListener("load",function(){e.img.obj=l,e.img.loaded=!0,r.revokeObjectURL(s),a.tmp.count_svg++}),l.src=s},a.fn.vendors.destroypJS=function(){cancelAnimationFrame(a.fn.drawAnimFrame),r.remove(),N=null},a.fn.vendors.drawShape=function(e,t,n,o,i,r){var a=i*r,s=i/r,l=180*(s-2)/s,u=Math.PI-Math.PI*l/180;e.save(),e.beginPath(),e.translate(t,n),e.moveTo(0,0);for(var c=0;a>c;c++)e.lineTo(o,0),e.translate(o,0),e.rotate(u);e.fill(),e.restore()},a.fn.vendors.exportImg=function(){window.open(a.canvas.el.toDataURL("image/png"),"_blank")},a.fn.vendors.loadImg=function(e){if(a.tmp.img_error=void 0,""!=a.particles.shape.image.src)if("svg"==e){var t=new XMLHttpRequest;t.open("GET",a.particles.shape.image.src),
|
||
t.onreadystatechange=function(e){4==t.readyState&&(200==t.status?(a.tmp.source_svg=e.currentTarget.response,a.fn.vendors.checkBeforeDraw()):(console.log("Error pJS - Image not found"),a.tmp.img_error=!0))},t.send()}else{var n=new Image;n.addEventListener("load",function(){a.tmp.img_obj=n,a.fn.vendors.checkBeforeDraw()}),n.src=a.particles.shape.image.src}else console.log("Error pJS - No image.src"),a.tmp.img_error=!0},a.fn.vendors.draw=function(){"image"==a.particles.shape.type?"svg"==a.tmp.img_type?a.tmp.count_svg>=a.particles.number.value?(a.fn.particlesDraw(),a.particles.move.enable?a.fn.drawAnimFrame=requestAnimFrame(a.fn.vendors.draw):cancelRequestAnimFrame(a.fn.drawAnimFrame)):a.tmp.img_error||(a.fn.drawAnimFrame=requestAnimFrame(a.fn.vendors.draw)):void 0!=a.tmp.img_obj?(a.fn.particlesDraw(),a.particles.move.enable?a.fn.drawAnimFrame=requestAnimFrame(a.fn.vendors.draw):cancelRequestAnimFrame(a.fn.drawAnimFrame)):a.tmp.img_error||(a.fn.drawAnimFrame=requestAnimFrame(a.fn.vendors.draw)):(a.fn.particlesDraw(),a.particles.move.enable?a.fn.drawAnimFrame=requestAnimFrame(a.fn.vendors.draw):cancelRequestAnimFrame(a.fn.drawAnimFrame))},a.fn.vendors.checkBeforeDraw=function(){"image"==a.particles.shape.type?"svg"==a.tmp.img_type&&void 0==a.tmp.source_svg?a.tmp.checkAnimFrame=requestAnimFrame(check):(cancelRequestAnimFrame(a.tmp.checkAnimFrame),a.tmp.img_error||(a.fn.vendors.init(),a.fn.vendors.draw())):(a.fn.vendors.init(),a.fn.vendors.draw())},a.fn.vendors.init=function(){a.fn.retinaInit(),a.fn.canvasInit(),a.fn.canvasSize(),a.fn.canvasPaint(),a.fn.particlesCreate(),a.fn.vendors.densityAutoParticles(),a.particles.line_linked.color_rgb_line=e(a.particles.line_linked.color)},a.fn.vendors.start=function(){n("image",a.particles.shape.type)?(a.tmp.img_type=a.particles.shape.image.src.substr(a.particles.shape.image.src.length-3),a.fn.vendors.loadImg(a.tmp.img_type)):a.fn.vendors.checkBeforeDraw()},a.fn.vendors.eventsListeners(),a.fn.vendors.start()};Object.deepExtend=function(e,t){for(var n in v.sanitizeForInObject(t))t[n]&&t[n].constructor&&t[n].constructor===Object?(e[n]=e[n]||{},arguments.callee(e[n],t[n])):e[n]=t[n];return e},window.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}(),window.cancelRequestAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout}(),window.pJSDom=[],window.particlesJS=function(e,t){"string"!=typeof e&&(t=e,e="particles-js"),e||(e="particles-js");var n=document.getElementById(e),i="particles-js-canvas-el",r=n.getElementsByClassName(i);if(r.length)for(;r.length>0;)n.removeChild(r[0]);var a=document.createElement("canvas");a.className=i,a.style.width="100%",a.style.height="100%";var s=document.getElementById(e).appendChild(a);null!=s&&N.push(new o(e,t))},window.particlesJS.load=function(e,t,n){var o=new XMLHttpRequest;o.open("GET",t),o.onreadystatechange=function(t){if(4==o.readyState)if(200==o.status){var i=JSON.parse(t.currentTarget.response);window.particlesJS(e,i),n&&n()}else console.log("Error pJS - XMLHttpRequest status: "+o.status),console.log("Error pJS - File config not found")},o.send()}}.call(this),function(){S="object"==typeof S?S:{};var t=S;this.readMessage=new(function(){function t(){this.canReadMessage=!1}return t.prototype.debug=!1,t.prototype.callbacks=[],t.prototype.readNow=function(t){var n,o,i,s,l,u,c;return null==t&&(t=!1),this.debug&&console.log("--------------"),this.debug&&console.log("readMessage -> readNow init process force:",t),s=this,s.refreshUnreadMark(),t!==!0&&this.canReadMessage===!1?void(this.debug&&console.log("readMessage -> readNow canceled by canReadMessage: false")):(o=r.get("openedRoom"),null==o?void(this.debug&&console.log("readMessage -> readNow canceled, no rid informed")):t===!0?(this.debug&&console.log("readMessage -> readNow via force rid:",o),e.call("readMessages",o,function(){return RoomHistoryManager.getRoom(o).unreadNotLoaded.set(0),s.refreshUnreadMark(),s.fireRead(o)})):(l=ChatSubscription.findOne({rid:o}),null==l?void(this.debug&&console.log("readMessage -> readNow canceled, no subscription found for rid:",o)):l.alert===!1&&0===l.unread?void(this.debug&&console.log("readMessage -> readNow canceled, alert",l.alert,"and unread",l.unread)):(i=RoomManager.openedRooms[l.t+l.name],null==i?void(this.debug&&console.log("readMessage -> readNow canceled, no room found for typeName:",l.t+l.name)):(u=a(".message.first-unread"),u.length>0&&(n=u.position(),c=(null!=n?n.top:void 0)>=0,!c&&null!=i.unreadSince.get())?void(this.debug&&console.log("readMessage -> readNow canceled, unread mark visible:",c,"unread since exists",null!=i.unreadSince.get())):(this.debug&&console.log("readMessage -> readNow rid:",o),e.call("readMessages",o,function(){return RoomHistoryManager.getRoom(o).unreadNotLoaded.set(0),s.refreshUnreadMark(),s.fireRead(o)}))))))},t.prototype.read=f.debounce(function(e){return this.readNow(e)},1e3),t.prototype.disable=function(){return this.canReadMessage=!1},t.prototype.enable=function(){return this.canReadMessage=document.hasFocus()},t.prototype.isEnable=function(){return this.canReadMessage===!0},t.prototype.onRead=function(e){return this.callbacks.push(e)},t.prototype.fireRead=function(e){var t,n,o,i,r;for(i=this.callbacks,r=[],n=0,o=i.length;o>n;n++)t=i[n],r.push(t(e));return r},t.prototype.refreshUnreadMark=function(t,n){var o,i,s,l,u,c;if(u=this,null==t&&(t=r.get("openedRoom")),null!=t&&(c=ChatSubscription.findOne({rid:t}),null!=c&&(l=RoomManager.openedRooms[c.t+c.name],null!=l))){if(o=a(l.dom),o.find(".message.first-unread").addClass("first-unread-opaque"),!c.alert&&0===c.unread)return void l.unreadSince.set(void 0);if(null!=n||c.rid!==r.get("openedRoom")||!document.hasFocus())return o.find(".message.first-unread").removeClass("first-unread").removeClass("first-unread-opaque"),s=ChatMessage.findOne({rid:c.rid,ts:{$lt:c.ls}},{sort:{ts:-1}}),null==s&&0===RoomHistoryManager.getRoom(l.rid).unreadNotLoaded.get()&&(s={ts:new Date(0)}),l.unreadSince.set(null!=s||RoomHistoryManager.getRoom(l.rid).unreadNotLoaded.get()>0?c.ls:void 0),null!=s&&(i=ChatMessage.findOne({rid:c.rid,ts:{$gt:s.ts},"u._id":{$ne:e.userId()}},{sort:{ts:1}}),null!=i)?(l.unreadFirstId=i._id,o.find(".message#"+i._id).addClass("first-unread")):void 0}},t}()),e.startup(function(){return a(window).on("blur",function(){return readMessage.disable()}),a(window).on("focus",function(){return readMessage.enable(),readMessage.read()}),a(window).on("click",function(e){return readMessage.enable(),readMessage.read()}),a(window).on("touchend",function(e){return readMessage.enable(),readMessage.read()}),a(window).on("keyup",function(e){var t;return t=e.which,27===t?(readMessage.enable(),readMessage.readNow(!0),a(".message.first-unread").removeClass("first-unread")):void 0})})}.call(this),function(){S="object"==typeof S?S:{};var e=S;m.Login=function(){var e,t,n;return n=function(e){var t;return t=a(e),t.length?(t.addClass("active"),t.find("input").focus()):void 0},t=function(e){var t;return t=a(e),t.length&&""===e.value?t.parents(".input-text").removeClass("active"):void 0},e=function(e){var t,n;return t=a(e),t.length?(n=t.find("input"),n.each(function(){return""!==this.value?(console.log(this.value),a(this).parents(".input-text").addClass("active")):void 0})):void 0},{check:e,onClick:n,onBlur:t}}(),m.Button=function(){var e,t,n,o;return o=void 0,t=function(e){var t,n,i;return t=a(e),i=e.attr("data-loading-text"),n=e.find("span").html(),e.addClass("-progress").attr("data-def-text",n).find("span").html(i),o=setTimeout(function(){return e.addClass("going")},1)},e=function(e){var t;return t=a(e),e.addClass("done")},n=function(e){var t,n;return o&&clearTimeout(o),t=a(e),n=t.attr("data-def-text"),n&&t.find("span").html(n),t.removeClass("-progress going done")},{done:e,loading:t,reset:n}}(),m.animationSupport=function(){var e,t,n,o,i;return e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd",animation:"animationend"},i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",msTransition:"MSTransitionEnd",transition:"transitionend"},n=i[Modernizr.prefixed("transition")],t=e[Modernizr.prefixed("animation")],o=Modernizr.cssanimations,{support:o,animation:t,transition:n}},m.animeBack=function(e,t,n){var o,i;return e=a(e),!e.length>0?void(t&&t(e)):(i=animationSupport(),o=n?i.animation:i.transition,void e.one(o,function(e){t(e)}))},m.preLoadImgs=function(e,t){var n,o,i,r,s,l;for(n=function(n){var o,i,r;n.width>0&&(a(n).addClass("loaded").removeClass("loading"),r=a(".loaded",l),r.length!==e.length||o||(o=1,i=l.children(),t(i),l.remove()))},r=new Array,l=a("<div/>").attr({id:"perverter-preloader"}),s=void 0,o=void 0,i=0;i<e.length;)r[i]=new Image,r[i].onload=function(){n(this)},a(r[i]).appendTo(l).addClass("loading"),r[i].src=e[i],r[i].width>0&&n(r[i]),i++}}.call(this),function(){S="object"==typeof S?S:{};var t=S;this.RoomHistoryManager=new(function(){function t(){}var n,o,i,r,s,l,u,d,p,m,h;return o=50,m={},l=function(e){return null==m[e]&&(m[e]={hasMore:new c(!0),hasMoreNext:new c(!1),isLoading:new c(!1),unreadNotLoaded:new c(0),firstUnread:new c,loaded:0}),m[e]},i=function(t,n){var i,r,s,u,c,d,p;return null==n&&(n=o),u=l(t),u.hasMore.curValue===!0?(u.isLoading.set(!0),r=ChatMessage.findOne({rid:t},{sort:{ts:1}}),d=null!=r?r.ts:void 0,s=void 0,p=void 0,c=ChatSubscription.findOne({rid:t}),null!=c?(s=c.ls,p=c.t+c.name):(i=ChatRoom.findOne({_id:t}),p=(null!=i?i.t:void 0)+(null!=i?i.name:void 0)),e.call("loadHistory",t,d,n,s,function(o,i){var r,s,l,c,d,m,h,g,v,b,y,w,k;for(u.unreadNotLoaded.set(null!=i?i.unreadNotLoaded:void 0),u.firstUnread.set(null!=i?i.firstUnread:void 0),k=a(".messages-box .wrapper").get(0),null!=k&&(d=k.scrollHeight),m=(null!=i?i.messages:void 0)||[],s=0,c=m.length;c>s;s++)l=m[s],"command"!==l.t&&(l.roles=f.union(null!=(h=UserRoles.findOne(null!=(g=l.u)?g._id:void 0))?h.roles:void 0,null!=(v=RoomRoles.findOne({rid:l.rid,"u._id":null!=(b=l.u)?b._id:void 0}))?v.roles:void 0),ChatMessage.upsert({_id:l._id},l));return null!=k&&(r=k.scrollHeight-d,k.scrollTop+=r),e.defer(function(){return readMessage.refreshUnreadMark(t,!0),RoomManager.updateMentionsMarksOfRoom(p)}),u.isLoading.set(!1),u.loaded+=null!=i&&null!=(y=i.messages)?y.length:void 0,(null!=i&&null!=(w=i.messages)?w.length:void 0)<n?u.hasMore.set(!1):void 0})):void 0},s=function(t,n){var i,r,s,u,c,d,p,m;return null==n&&(n=o),c=l(t),c.hasMoreNext.curValue===!0?(r=_.getView(a(".messages-box .wrapper")[0]).templateInstance(),r.atBottom=!1,c.isLoading.set(!0),s=ChatMessage.findOne({rid:t},{sort:{ts:-1}}),m=void 0,d=ChatSubscription.findOne({rid:t}),null!=d?(u=d.ls,m=d.t+d.name):(i=ChatRoom.findOne({_id:t}),m=(null!=i?i.t:void 0)+(null!=i?i.name:void 0)),p=s.ts,p?e.call("loadNextMessages",t,p,n,function(t,o){var i,r,a,s,l,u,d,p;for(s=(null!=o?o.messages:void 0)||[],i=0,a=s.length;a>i;i++)r=s[i],"command"!==r.t&&(r.roles=f.union(null!=(l=UserRoles.findOne(null!=(u=r.u)?u._id:void 0))?l.roles:void 0,null!=(d=RoomRoles.findOne({rid:r.rid,"u._id":null!=(p=r.u)?p._id:void 0}))?d.roles:void 0),ChatMessage.upsert({_id:r._id},r));return e.defer(function(){return RoomManager.updateMentionsMarksOfRoom(m)}),c.isLoading.set(!1),c.loaded+=o.messages.length,o.messages.length<n?c.hasMoreNext.set(!1):void 0}):void 0):void 0},u=function(t,n){var i,r,s,u,c,d,p,m,h;return null==n&&(n=o),(null!=t?t.rid:void 0)?(r=_.getView(a(".messages-box .wrapper")[0]).templateInstance(),ChatMessage.findOne(t._id)?(h=a(".messages-box .wrapper"),u=a("#"+t._id,h),c=h.scrollTop()+u.offset().top-h.height()/2,h.animate({scrollTop:c},500),u.addClass("highlight"),setTimeout(function(){var e;return e=h[0],r.atBottom=e.scrollTop>=e.scrollHeight-e.clientHeight}),setTimeout(function(){return u.removeClass("highlight")},3e3)):(d=l(t.rid),d.isLoading.set(!0),ChatMessage.remove({rid:t.rid}),m=void 0,p=ChatSubscription.findOne({rid:t.rid}),null!=p?(s=p.ls,m=p.t+p.name):(i=ChatRoom.findOne({_id:t.rid}),m=(null!=i?i.t:void 0)+(null!=i?i.name:void 0)),e.call("loadSurroundingMessages",t,n,function(n,o){var i,s,l,p,g,v,b,y;for(p=(null!=o?o.messages:void 0)||[],i=0,l=p.length;l>i;i++)s=p[i],"command"!==s.t&&(s.roles=f.union(null!=(g=UserRoles.findOne(null!=(v=s.u)?v._id:void 0))?g.roles:void 0,null!=(b=RoomRoles.findOne({rid:s.rid,"u._id":null!=(y=s.u)?y._id:void 0}))?b.roles:void 0),ChatMessage.upsert({_id:s._id},s));return e.defer(function(){return readMessage.refreshUnreadMark(t.rid,!0),RoomManager.updateMentionsMarksOfRoom(m),h=a(".messages-box .wrapper"),u=a("#"+t._id,h),c=h.scrollTop()+u.offset().top-h.height()/2,h.animate({scrollTop:c},500),u.addClass("highlight"),setTimeout(function(){var e;return d.isLoading.set(!1),e=h[0],r.atBottom=!o.moreAfter&&e.scrollTop>=e.scrollHeight-e.clientHeight},500),setTimeout(function(){return u.removeClass("highlight")},3e3)}),d.loaded+=o.messages.length,d.hasMore.set(o.moreBefore),d.hasMoreNext.set(o.moreAfter)}))):void 0},d=function(e){var t;return t=l(e),t.hasMore.get()},p=function(e){var t;return t=l(e),t.hasMoreNext.get()},r=function(e){var t;return t=l(e),0===t.loaded?i(e):void 0},h=function(e){var t;return t=l(e),t.isLoading.get()},n=function(e){return ChatMessage.remove({rid:e}),null!=m[e]?(m[e].hasMore.set(!0),m[e].isLoading.set(!1),m[e].loaded=0):void 0},t.prototype.getRoom=l,t.prototype.getMore=i,t.prototype.getMoreNext=s,t.prototype.getMoreIfIsEmpty=r,t.prototype.hasMore=d,t.prototype.hasMoreNext=p,t.prototype.isLoading=h,t.prototype.clear=n,t.prototype.getSurroundingMessages=u,t}())}.call(this),function(){S="object"==typeof S?S:{};var t=S,n,o,i;o=function(t){var n;return n=ChatMessage.findOne({rid:t},{sort:{ts:-1},limit:1}),null!=n?e.call("loadMissedMessages",t,n.ts,function(e,t){var n,o,i,r;for(r=[],n=0,i=t.length;i>n;n++)o=t[n],r.push(m.promises.run("onClientMessageReceived",o).then(function(e){var t,n,o,i;return e.roles=f.union(null!=(t=UserRoles.findOne(null!=(n=e.u)?n._id:void 0))?t.roles:void 0,null!=(o=RoomRoles.findOne({rid:e.rid,"u._id":null!=(i=e.u)?i._id:void 0}))?o.roles:void 0),ChatMessage.upsert({_id:e._id},e)}));return r}):void 0},n=!0,l.autorun(function(){var t,i,r,a;if(t=e.connection.status().connected,t===!0&&n===!1&&null!=RoomManager.openedRooms){r=RoomManager.openedRooms;for(i in r)a=r[i],null!=a.rid&&o(a.rid)}return n=t}),e.startup(function(){return ChatMessage.find().observe({removed:function(e){var t,n;return null!=RoomManager.getOpenedRoomByRid(e.rid)&&(n=ChatMessage.findOne({ts:{$lt:e.ts}},{sort:{ts:-1}}),null!=n&&ChatMessage.update({_id:n._id},{$set:{tick:new Date}}),t=ChatMessage.findOne({ts:{$gt:e.ts}},{sort:{ts:1}}),null!=t)?ChatMessage.update({_id:t._id},{$set:{tick:new Date}}):void 0}})}),i=function(e){return ChatMessage.remove({_id:e._id})},m.Notifications.onUser("message",function(e){return e.u={username:"rocketbot"},e["private"]=!0,ChatMessage.upsert({_id:e._id},e)}),this.RoomManager=new(function(){function t(){}var n,o,r,s,u,d,h,g,v,b,y,w,k,x,M,T;return k={},x=null,b=new e.Streamer("room-messages"),y=new c({}),n=new l.Dependency,v=function(){return x=e.subscribe("subscription")},o=function(e){var t,n,o,r,a;if(k[e]){if(null!=k[e].sub)for(o=k[e].sub,t=0,n=o.length;n>t;t++)a=o[t],a.stop();if(null!=k[e].rid&&(b.removeAllListeners(k[e].rid),m.Notifications.unRoom(k[e].rid,"deleteMessage",i)),k[e].ready=!1,k[e].active=!1,null!=k[e].template&&_.remove(k[e].template),delete k[e].dom,delete k[e].template,r=k[e].rid,delete k[e],null!=r)return RoomHistoryManager.clear(r)}},u=l.autorun(function(){var t,o,r;o=[];for(r in k)t=k[r],t.active===!0&&o.push(function(t,o){var r,a,s,l,u,c,d;return d=null!=(l=e.user())?l.username:void 0,d&&(o.sub=[e.subscribe("room",t)],o.ready!==!0)?(s=o.sub[0].ready()&&x.ready(),s===!0&&(c=t.substr(0,1),r=t.substr(1),a={t:c},"d"===c?a.usernames={$all:[d,r]}:a.name=r,u=ChatRoom.findOne(a,{reactive:!1}),null==u?o.ready=!0:(k[t].rid=u._id,RoomHistoryManager.getMoreIfIsEmpty(u._id),o.ready=RoomHistoryManager.isLoading(u._id)===!1,n.changed(),k[t].streamActive!==!0&&(k[t].streamActive=!0,b.on(k[t].rid,function(n){return m.promises.run("onClientMessageReceived",n).then(function(n){var o,i,r,a;return RoomHistoryManager.hasMoreNext(k[t].rid)===!1?("command"!==n.t&&(n.roles=f.union(null!=(o=UserRoles.findOne(null!=(i=n.u)?i._id:void 0))?o.roles:void 0,null!=(r=RoomRoles.findOne({rid:n.rid,"u._id":null!=(a=n.u)?a._id:void 0}))?r.roles:void 0),ChatMessage.upsert({_id:n._id},n)),e.defer(function(){return RoomManager.updateMentionsMarksOfRoom(t)}),m.callbacks.run("streamMessage",n)):void 0})}),m.Notifications.onRoom(k[t].rid,"deleteMessage",i)))),n.changed()):void 0}(r,t));return o}),s=function(){var e,t,n,i,r,a;if(n=10,!(Object.keys(k).length<=n)){for(a=f.sortBy(f.values(k),"lastSeen").reverse().slice(n),i=[],e=0,t=a.length;t>e;e++)r=a[e],i.push(o(r.typeName));return i}},r=function(){var e,t,n;n=[];for(e in k)t=k[e],n.push(o(t.typeName));return n},w=function(t){return null==k[t]&&(k[t]={typeName:t,active:!1,ready:!1,unreadSince:new c(void 0)}),k[t].lastSeen=new Date,k[t].ready&&s(),x.ready()&&e.userId()&&k[t].active!==!0&&(k[t].active=!0,null!=u&&u.invalidate()),{ready:function(){return n.depend(),k[t].ready}}},g=function(e){var t,n;for(n in k)if(t=k[n],t.rid===e)return t},h=function(e,t){var n,o;return o=k[e],null!=o?(null==o.dom&&null!=t&&(o.dom=document.createElement("div"),o.dom.classList.add("room-container"),n=function(e){return function(){return e}},o.template=_._TemplateWith({_id:t},n(p.room)),_.render(o.template,o.dom)),o.dom):void 0},d=function(e){var t;return t=k[e],null!=(null!=t?t.dom:void 0)},T=function(e,t,n){var o;return o=y.curValue,"offline"===t?delete o[e.username]:o[e.username]={_id:e._id,status:t,utcOffset:n},y.set(o)},M=function(e){var t,n,o,i;return t=h(e),null!=t?(o=a(t).find(".ticks-bar"),a(t).find(".ticks-bar > .tick").remove(),n=a(t).find(".messages-box > .wrapper").scrollTop()-50,i=a(t).find(".messages-box > .wrapper > ul").height()+40,a(".messages-box .mention-link-me").each(function(e,t){var r,s;return s=a(t).offset().top+n,r=100/i*s,o.append(a(t).hasClass("mention-link-all")?'<div class="tick tick-all" style="top: '+r+'%;"></div>':'<div class="tick" style="top: '+r+'%;"></div>')})):void 0},t.prototype.open=w,t.prototype.close=o,t.prototype.closeAllRooms=r,t.prototype.init=v,t.prototype.getDomOfRoom=h,t.prototype.existsDomOfRoom=d,t.prototype.msgStream=b,t.prototype.openedRooms=k,t.prototype.updateUserStatus=T,t.prototype.onlineUsers=y,t.prototype.updateMentionsMarksOfRoom=M,t.prototype.getOpenedRoomByRid=g,t}()),m.callbacks.add("afterLogoutCleanUp",function(){return RoomManager.closeAllRooms()})}.call(this),function(){S="object"==typeof S?S:{};var e=S;this.SideNav=function(){var e,t,n,o,i,s,l,u,c,d,p,f,m,h,g,v,b,y,w,k,_;return p=!1,b={},i={},t={},e=!1,h=[],y=function(e){return null==e&&(e=null),0===e?(t.addClass("close"),t.removeClass("top"),t.removeClass("bottom")):-1===e||1!==e&&t.hasClass("top")?(t.removeClass("close"),t.removeClass("top"),t.addClass("bottom")):(t.removeClass("close"),t.addClass("top"),t.removeClass("bottom"))},w=function(){return i.opened?o():AccountBox.toggle()},g=function(){return t.addClass("hover")},f=function(){return t.removeClass("hover")},n=function(){return t.on("mouseenter",function(){return b.find("header").addClass("hover")}),t.on("mouseout",function(){return b.find("header").removeClass("hover")})},l=function(){setTimeout(function(){var e;return null!=(e=b.find("input[type='text']:first"))?e.focus():void 0},200)},_=function(){var e;return e=[],b.find("input.required").each(function(){return this.value.length?void 0:e.push(a(this).prev("label").html())}),e.length?e:!1},k=function(t,n){return null==t&&(t=null),null==n&&(n=null),e!==!0?(e=!0,-1===t||1!==t&&i.opened?(i.opened=!1,i.addClass("animated-hidden")):(i.opened=!0,setTimeout(function(){return i.removeClass("animated-hidden")},50)),setTimeout(function(){return e=!1,"function"==typeof n?n():void 0},500)):void 0},m=function(t){return null==t&&(t=null),p?e!==!0?(AccountBox.close(),y(0),k(1,t),l()):void 0:h.push({config:u(),callback:t})},o=function(t){return null==t&&(t=null),e!==!0?(y(-1),k(-1,t)):void 0},s=function(){return i.opened},v=function(e,t){return null==t&&(t={}),r.set("flex-nav-template",e),r.set("flex-nav-data",t)},u=function(){return{template:r.get("flex-nav-template"),data:r.get("flex-nav-data")}},d=function(){return b=a(".side-nav"),i=b.find(".flex-nav"),t=b.children(".arrow"),v(""),n(),p=!0,h.length>0?(h.forEach(function(e){return v(e.config.template,e.config.data),m(e.callback)}),h=[]):void 0},c=function(){return b},{init:d,setFlex:v,getFlex:u,openFlex:m,closeFlex:o,validate:_,flexStatus:s,toggleArrow:y,toggleCurrent:w,overArrow:g,leaveArrow:f,getSideNav:c}}()}.call(this),function(){S="object"==typeof S?S:{};var e=S,t=[].slice;this.t=function(){var e,n;return e=arguments[0],n=2<=arguments.length?t.call(arguments,1):[],f.isObject(n[0])?R.__(e,n):R.__(e,{postProcess:"sprintf",sprintf:n})},this.tr=function(){var e,n,o;return e=arguments[0],n=arguments[1],o=3<=arguments.length?t.call(arguments,2):[],f.isObject(o[0])?R.__(e,n,o):R.__(e,n,{postProcess:"sprintf",sprintf:o})},this.isRtl=function(e){var t;return"ar"===(t=null!=e?e.split("-").shift().toLowerCase():void 0)||"dv"===t||"fa"===t||"he"===t||"ku"===t||"ps"===t||"sd"===t||"ug"===t||"ur"===t||"yi"===t}}.call(this),function(){!function(e){e.fn.autogrow=function(t){return this.filter("textarea").each(function(){var n=this,o=e(n),i=o.height(),r=o.hasClass("autogrow-short")?0:parseInt(o.css("lineHeight"))||0,a=e.extend({preGrowCallback:null,postGrowCallback:null},t),s=e("div.autogrow-shadow");s.length||(s=e("<div></div>").addClass("autogrow-shadow").appendTo(document.body)),s.css({width:o.width(),fontSize:o.css("fontSize"),fontFamily:o.css("fontFamily"),fontWeight:o.css("fontWeight"),lineHeight:o.css("lineHeight"),resize:"none",wordWrap:"break-word"});var l=function(e){var t=function(e,t){for(var n=0,o="";t>n;n++)o+=e;return o},l=n.value.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/\n$/,"<br/> ").replace(/\n/g,"<br/>").replace(/ {2,}/g,function(e){return t(" ",e.length-1)+" "});e&&e.data&&"keydown"===e.data.event&&13===e.keyCode&&e.shiftKey&&(l+="<br />"),s.css("width",o.width()),s.html(l+(0===r?"...":""));var u=Math.max(s.height()+r,i);null!==a.preGrowCallback&&(u=a.preGrowCallback(o,s,u,i)),o.height(u),null!==a.postGrowCallback&&a.postGrowCallback(o)};o.change(l).keyup(l).keydown({event:"keydown"},l),e(window).resize(l),l(),n.updateAutogrow=l})}}(s)}.call(this),function(){S="object"==typeof S?S:{};var t=S;e.loginWithFacebookCordova=function(e,t){var o,i;return t||"function"!=typeof e||(t=e,e=null),o=n.oauth.credentialRequestCompleteHandler(t),i=function(e){return e.cordova=!0,n.callLoginMethod({methodArguments:[e],userCallback:t})},"undefined"!=typeof facebookConnectPlugin?facebookConnectPlugin.getLoginStatus(function(e){return"connected"!==e.status?facebookConnectPlugin.login(["public_profile","email"],i,function(e){return console.log("login",JSON.stringify(e),e),t(e)}):i(e)},function(e){return console.log("getLoginStatus",JSON.stringify(e),e),t(e)}):Facebook.requestCredential(e,o)}}.call(this),function(){S="object"==typeof S?S:{};var t=S;e.isCordova&&(document.addEventListener("deviceready",function(){return"android"!==("undefined"!=typeof device&&null!==device?device.platform.toLowerCase():void 0)?(cordova.plugins.Keyboard.hideKeyboardAccessoryBar(!0),cordova.plugins.Keyboard.disableScroll(!0)):void 0}),window.addEventListener("native.keyboardshow",function(){return"android"!==("undefined"!=typeof device&&null!==device?device.platform.toLowerCase():void 0)?null!=e.userId()?(a(".main-content").css("height",window.innerHeight),a(".mobile-message-menu").css("height",window.innerHeight),a(".sweet-alert").css("transform","translateY(-"+(document.height-window.innerHeight)/2+"px)"),a(".sweet-alert").css("-webkit-transform","translateY(-"+(document.height-window.innerHeight)/2+"px)")):(a(document.body).css("height",window.innerHeight),a(document.body).css("overflow","scroll")):void 0}),window.addEventListener("native.keyboardhide",function(){return"android"!==("undefined"!=typeof device&&null!==device?device.platform.toLowerCase():void 0)?null!=e.userId()?(a(".main-content").css("height",window.innerHeight),a(".mobile-message-menu").css("height",window.innerHeight),a(".sweet-alert").css("transform",""),a(".sweet-alert").css("-webkit-transform","")):(a(document.body).css("height",window.innerHeight),a(document.body).css("overflow","visible")):void 0}))}.call(this),function(){S="object"==typeof S?S:{};var t=S;e.isCordova&&(h.addListener("token",function(t){return e.call("log","CLIENT","token",arguments)}),h.addListener("error",function(t){return e.call("log","CLIENT","error",arguments),"apn.cordova"===t.type?e.call("log","CLIENT",t.error):void 0}),h.addListener("register",function(t){return e.call("log","CLIENT","register",arguments)}),h.addListener("alert",function(t){return e.call("log","CLIENT","alert",arguments)}),h.addListener("sound",function(t){return e.call("log","CLIENT","sound",arguments)}),h.addListener("badge",function(t){return e.call("log","CLIENT","badge",arguments)}),h.addListener("startup",function(t){var n,o,i;if(e.call("log","CLIENT","startup",arguments),null!=(null!=(i=t.payload)?i.rid:void 0)){if(t.payload.host!==e.absoluteUrl()){switch(o="",t.payload.type){case"c":o="channel/"+t.payload.name;break;case"p":o="group/"+t.payload.name;break;case"d":o="direct/"+t.payload.sender.username}if(n=t.payload.host.replace(/\/$/,""),Servers.serverExists(n)!==!0)return;return Servers.startServer(n,o,function(e,t){return null!=e?console.log(e):void 0})}switch(t.payload.type){case"c":return g.go("channel",{name:t.payload.name});case"p":return g.go("group",{name:t.payload.name});case"d":return g.go("direct",{username:t.payload.sender.username})}}}),h.addListener("message",function(t){return e.call("log","CLIENT","message",arguments)}),e.startup(function(){return l.autorun(function(){return m.settings.get("Push_enable")===!0?h.Configure({android:{senderID:window.ANDROID_SENDER_ID,sound:!0,vibrate:!0},ios:{badge:!0,clearBadge:!0,sound:!0,alert:!0}}):void 0})}))}.call(this),function(){S="object"==typeof S?S:{};var t=S;e.startup(function(){return e.isCordova?a(document).on("deviceready",function(){var e;return e=device.platform.toLowerCase(),a(document).on("click",function(e){var t,n;return t=a(e.target).closest("a[href]"),t.length>0?(n=t.attr("href"),/^https?:\/\/.+/.test(n)===!0?(window.open(n,"_system"),e.preventDefault()):void 0):void 0})}):void 0})}.call(this),function(){S="object"==typeof S?S:{};var t=S;e.isCordova&&(document.addEventListener("pause",function(){return UserPresence.setAway(),readMessage.disable()}),document.addEventListener("resume",function(){return UserPresence.setOnline(),readMessage.enable()}))}.call(this),function(){S="object"==typeof S?S:{};var e=S;this.AudioRecorder=new(function(){function e(){}return e.prototype.start=function(e){var t;return window.AudioContext=window.AudioContext||window.webkitAudioContext,navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia,window.URL=window.URL||window.webkitURL,this.audio_context=new AudioContext,t=function(t){return function(n){return t.startUserMedia(n),null!=e?e.call(t):void 0}}(this),null==navigator.getUserMedia?e(!1):navigator.getUserMedia({audio:!0},t,function(e){return console.log("No live audio input: "+e)})},e.prototype.startUserMedia=function(e){var t;return this.stream=e,t=this.audio_context.createMediaStreamSource(e),this.recorder=new Recorder(t,{workerPath:"/recorderWorker.js"}),this.recorder.record()},e.prototype.stop=function(e){return this.recorder.stop(),null!=e&&this.getBlob(e),this.stream.getAudioTracks()[0].stop(),this.recorder.clear(),delete this.audio_context,delete this.recorder,delete this.stream},e.prototype.getBlob=function(e){return this.recorder.exportWAV(e)},e}())}.call(this),function(){!function(e){var t="recorderWorker.js",n=function(e,n){var o=n||{},i=o.bufferLen||4096,r=o.numChannels||2;this.context=e.context,this.node=(this.context.createScriptProcessor||this.context.createJavaScriptNode).call(this.context,i,r,r);var a=new Worker(o.workerPath||t);a.postMessage({command:"init",config:{sampleRate:this.context.sampleRate,numChannels:r}});var s=!1,l;this.node.onaudioprocess=function(e){if(s){for(var t=[],n=0;r>n;n++)t.push(e.inputBuffer.getChannelData(n));a.postMessage({command:"record",buffer:t})}},this.configure=function(e){for(var t in v.sanitizeForInObject(e))e.hasOwnProperty(t)&&(o[t]=e[t])},this.record=function(){s=!0},this.stop=function(){s=!1},this.clear=function(){a.postMessage({command:"clear"})},this.getBuffer=function(e){l=e||o.callback,a.postMessage({command:"getBuffer"})},this.exportWAV=function(e,t){if(l=e||o.callback,t=t||o.type||"audio/wav",!l)throw new Error("Callback not set");a.postMessage({command:"exportWAV",type:t})},a.onmessage=function(e){var t=e.data;l(t)},e.connect(this.node),this.node.connect(this.context.destination)};n.forceDownload=function(t,n){var o=(e.URL||e.webkitURL).createObjectURL(t),i=e.document.createElement("a");i.href=o,i.download=n||"output.wav";var r=document.createEvent("Event");r.initEvent("click",!0,!0),i.dispatchEvent(r)},e.Recorder=n}(window)}.call(this),function(){!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Clipboard=e()}}(function(){var e,t,n;return function(){function e(t,n,o){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(r)return r(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n?n:e)},c,c.exports,e,t,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<o.length;a++)i(o[a]);return i}return e}()({1:[function(e,t,n){var o=e("matches-selector");t.exports=function(e,t,n){for(var i=n?e:e.parentNode;i&&i!==document;){if(o(i,t))return i;i=i.parentNode}}},{"matches-selector":5}],2:[function(e,t,n){function o(e,t,n,o,r){var a=i.apply(this,arguments);return e.addEventListener(n,a,r),{destroy:function(){e.removeEventListener(n,a,r)}}}function i(e,t,n,o){return function(n){n.delegateTarget=r(n.target,t,!0),n.delegateTarget&&o.call(e,n)}}var r=e("closest");t.exports=o},{closest:1}],3:[function(e,t,n){n.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},n.nodeList=function(e){var t=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===t||"[object HTMLCollection]"===t)&&"length"in e&&(0===e.length||n.node(e[0]))},n.string=function(e){return"string"==typeof e||e instanceof String},n.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},{}],4:[function(e,t,n){function o(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!s.string(t))throw new TypeError("Second argument must be a String");if(!s.fn(n))throw new TypeError("Third argument must be a Function");if(s.node(e))return i(e,t,n);if(s.nodeList(e))return r(e,t,n);if(s.string(e))return a(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function r(e,t,n){return Array.prototype.forEach.call(e,function(e){e.addEventListener(t,n)}),{destroy:function(){
|
||
Array.prototype.forEach.call(e,function(e){e.removeEventListener(t,n)})}}}function a(e,t,n){return l(document.body,e,t,n)}var s=e("./is"),l=e("delegate");t.exports=o},{"./is":3,delegate:2}],5:[function(e,t,n){function o(e,t){if(r)return r.call(e,t);for(var n=e.parentNode.querySelectorAll(t),o=0;o<n.length;++o)if(n[o]==e)return!0;return!1}var i=Element.prototype,r=i.matchesSelector||i.webkitMatchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector;t.exports=o},{}],6:[function(e,t,n){function o(e){var t;if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName)e.focus(),e.setSelectionRange(0,e.value.length),t=e.value;else{e.hasAttribute("contenteditable")&&e.focus();var n=window.getSelection(),o=document.createRange();o.selectNodeContents(e),n.removeAllRanges(),n.addRange(o),t=n.toString()}return t}t.exports=o},{}],7:[function(e,t,n){function o(){}o.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){function o(){i.off(e,o),t.apply(n,arguments)}var i=this;return o._=t,this.on(e,o,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,i=n.length;for(o;i>o;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),o=n[e],i=[];if(o&&t)for(var r=0,a=o.length;a>r;r++)o[r].fn!==t&&o[r].fn._!==t&&i.push(o[r]);return i.length?n[e]=i:delete n[e],this}},t.exports=o},{}],8:[function(t,n,o){!function(i,r){if("function"==typeof e&&e.amd)e(["module","select"],r);else if("undefined"!=typeof o)r(n,t("select"));else{var a={exports:{}};r(a,i.select),i.clipboardAction=a.exports}}(this,function(e,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(t),r="function"==typeof b&&"symbol"==typeof b.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof b&&e.constructor===b?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=function(){function e(t){o(this,e),this.resolveOptions(t),this.initSelection()}return e.prototype.resolveOptions=function(){function e(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.action=e.action,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}return e}(),e.prototype.initSelection=function(){function e(){if(this.text&&this.target)throw new Error('Multiple attributes declared, use either "target" or "text"');if(this.text)this.selectFake();else{if(!this.target)throw new Error('Missing required attributes, use either "target" or "text"');this.selectTarget()}}return e}(),e.prototype.selectFake=function(){function e(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandler=document.body.addEventListener("click",function(){return e.removeFake()}),this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="fixed",this.fakeElem.style[t?"right":"left"]="-9999px",this.fakeElem.style.top=(window.pageYOffset||document.documentElement.scrollTop)+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,document.body.appendChild(this.fakeElem),this.selectedText=i["default"](this.fakeElem),this.copyText()}return e}(),e.prototype.removeFake=function(){function e(){this.fakeHandler&&(document.body.removeEventListener("click"),this.fakeHandler=null),this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)}return e}(),e.prototype.selectTarget=function(){function e(){this.selectedText=i["default"](this.target),this.copyText()}return e}(),e.prototype.copyText=function(){function e(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}return e}(),e.prototype.handleResult=function(){function e(e){e?this.emitter.emit("success",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)}):this.emitter.emit("error",{action:this.action,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}return e}(),e.prototype.clearSelection=function(){function e(){this.target&&this.target.blur(),window.getSelection().removeAllRanges()}return e}(),e.prototype.destroy=function(){function e(){this.removeFake()}return e}(),a(e,[{key:"action",set:function(){function e(){var e=arguments.length<=0||void 0===arguments[0]?"copy":arguments[0];if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')}return e}(),get:function(){function e(){return this._action}return e}()},{key:"target",set:function(){function e(e){if(void 0!==e){if(!e||"object"!==("undefined"==typeof e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');this._target=e}}return e}(),get:function(){function e(){return this._target}return e}()}]),e}();e.exports=s})},{select:6}],9:[function(t,n,o){!function(i,r){if("function"==typeof e&&e.amd)e(["module","./clipboard-action","tiny-emitter","good-listener"],r);else if("undefined"!=typeof o)r(n,t("./clipboard-action"),t("tiny-emitter"),t("good-listener"));else{var a={exports:{}};r(a,i.clipboardAction,i.tinyEmitter,i.goodListener),i.clipboard=a.exports}}(this,function(e,t,n,o){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n="data-clipboard-"+e;return t.hasAttribute(n)?t.getAttribute(n):void 0}var u=i(t),c=i(n),d=i(o),p=function(e){function t(n,o){r(this,t);var i=a(this,e.call(this));return i.resolveOptions(o),i.listenClick(n),i}return s(t,e),t.prototype.resolveOptions=function(){function e(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText}return e}(),t.prototype.listenClick=function(){function e(e){var t=this;this.listener=d["default"](e,"click",function(e){return t.onClick(e)})}return e}(),t.prototype.onClick=function(){function e(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new u["default"]({action:this.action(t),target:this.target(t),text:this.text(t),trigger:t,emitter:this})}return e}(),t.prototype.defaultAction=function(){function e(e){return l("action",e)}return e}(),t.prototype.defaultTarget=function(){function e(e){var t=l("target",e);return t?document.querySelector(t):void 0}return e}(),t.prototype.defaultText=function(){function e(e){return l("text",e)}return e}(),t.prototype.destroy=function(){function e(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}return e}(),t}(c["default"]);e.exports=p})},{"./clipboard-action":8,"good-listener":4,"tiny-emitter":7}]},{},[9])(9)})}.call(this),function(){p.__checkName("cmsPage"),p.cmsPage=new p("Template.cmsPage",function(){var e=this;return I.DIV({"class":"cms-page"},I.Raw('\n <div class="cms-page-close">\n <a href="/login" class="button button-primary"><i class="icon-cancel"></i></a>\n </div>\n '),_.View("lookup:page",function(){return T.makeRaw(T.mustache(e.lookup("page")))}),"\n ")})}.call(this),function(){p.__checkName("fxOsInstallPrompt"),p.fxOsInstallPrompt=new p("Template.fxOsInstallPrompt",function(){var e=this;return I.SECTION({"class":"full-page"},"\n ",I.DIV({"class":"wrapper"},"\n ",I.Raw('<header>\n <a class="logo" href="/">\n <img src="images/logo/logo.svg?v=3">\n </a>\n </header>'),"\n ",I.DIV({"class":"cms-page"},"\n ",I.H1(_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Install_FxOs")})),"\n ",I.P(_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Install_FxOs_follow_instructions")})),"\n "),"\n "),"\n ")}),p.__checkName("fxOsInstallDone"),p.fxOsInstallDone=new p("Template.fxOsInstallDone",function(){var e=this;return I.SECTION({"class":"full-page"},"\n ",I.DIV({"class":"wrapper"},"\n ",I.Raw('<header>\n <a class="logo" href="/">\n <img src="images/logo/logo.svg?v=3">\n </a>\n </header>'),"\n ",I.DIV({"class":"cms-page"},"\n ",I.H1(_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Install_FxOs")})),"\n ",I.P(_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Install_FxOs_done")})),"\n "),"\n "),"\n ")}),p.__checkName("fxOsInstallError"),p.fxOsInstallError=new p("Template.fxOsInstallError",function(){var e=this;return I.SECTION({"class":"full-page"},"\n ",I.DIV({"class":"wrapper"},"\n ",I.Raw('<header>\n <a class="logo" href="/">\n <img src="images/logo/logo.svg?v=3">\n </a>\n </header>'),"\n ",I.DIV({"class":"cms-page"},"\n ",I.H1(_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Install_FxOs")})),"\n ",I.P(_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Install_FxOs_error")})),"\n ",I.P(_.View("lookup:installError",function(){return T.mustache(e.lookup("installError"))})),"\n "),"\n "),"\n ")})}.call(this),function(){p.__checkName("modal"),p.modal=new p("Template.modal",function(){var e=this;return I.SECTION({id:function(){return T.mustache(T.dot(e.lookup("."),"id"))},"class":function(){return["rocket-modal ",T.mustache(T.dot(e.lookup("."),"class"))]},tabindex:"-1",role:"dialog","aria-hidden":"true"},"\n ",I.DIV({"class":"wrapper"},"\n ",I.DIV({"class":"window"},"\n ",I.FORM({id:function(){return[T.mustache(T.dot(e.lookup("."),"id")),"-form"]},"class":"modal form-horizontal"},"\n ",I.HEADER("\n ",I.H3(_.View("lookup:..title",function(){return T.mustache(T.dot(e.lookup("."),"title"))})),"\n ",I.Raw('<span class="close"><i class="icon-cancel"></i></span>'),"\n "),"\n ",I.MAIN("\n ",_._InOuterTemplateScope(e,function(){return T.include(function(){return T.call(e.templateContentBlock)})}),"\n "),"\n ",I.FOOTER("\n ",_.If(function(){return T.call(T.dot(e.lookup("."),"save"))},function(){return["\n ",I.BUTTON({"class":"-btn primary",type:"submit","data-loading-text":function(){return[T.mustache(e.lookup("_"),"Please_wait"),"..."]}},I.SPAN(_.View("lookup:..save",function(){return T.mustache(T.dot(e.lookup("."),"save"))}))),"\n "]}),"\n ",_.If(function(){return T.call(T.dot(e.lookup("."),"close"))},function(){return["\n ",I.BUTTON({"class":"-btn delete"},I.SPAN(_.View("lookup:..close",function(){return T.mustache(T.dot(e.lookup("."),"close"))}))),"\n "]}),"\n "),"\n "),"\n "),"\n "),"\n ")})}.call(this),function(){p.__checkName("roomNotFound"),p.roomNotFound=new p("Template.roomNotFound",function(){var e=this;return I.SECTION({"class":"page-container page-list"},"\n ",I.HEAD({"class":"fixed-title"},"\n ",T.include(e.lookupTemplate("burger")),"\n ",I.H2("\n ",I.SPAN({"class":"room-title"},_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Room_not_found")})),"\n "),"\n "),"\n ",I.DIV({"class":"content room-not-found"},"\n ",I.Raw('<i class="icon-attention"></i>'),"\n ",I.DIV("\n ",T.With(function(){return T.call(e.lookup("data"))},function(){return["\n ",_.If(function(){return T.dataMustache(e.lookup("$eq"),e.lookup("type"),"c")},function(){return["\n ",_.View("lookup:_",function(){return T.makeRaw(T.mustache(e.lookup("_"),"No_channel_with_name_%s_was_found",e.lookup("name")))}),"\n "]}),"\n ",_.If(function(){return T.dataMustache(e.lookup("$eq"),e.lookup("type"),"p")},function(){return["\n ",_.View("lookup:_",function(){return T.makeRaw(T.mustache(e.lookup("_"),"No_group_with_name_%s_was_found",e.lookup("name")))}),"\n "]}),"\n ",_.If(function(){return T.dataMustache(e.lookup("$eq"),e.lookup("type"),"d")},function(){return["\n ",_.View("lookup:_",function(){return T.makeRaw(T.mustache(e.lookup("_"),"No_user_with_username_%s_was_found",e.lookup("name")))}),"\n "]}),"\n "]}),"\n "),"\n "),"\n ")})}.call(this),function(){p.__checkName("invalidSecretURL"),p.invalidSecretURL=new p("Template.invalidSecretURL",function(){var e=this;return I.DIV({"class":"content"},"\n ",I.DIV({"class":"attention-message"},"\n ",I.Raw('<i class="icon-attention"></i>'),"\n ",_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Invalid_secret_URL_message")}),"\n "),"\n ")})}.call(this),function(){p.__checkName("audioNotification"),p.audioNotification=new p("Template.audioNotification",function(){var e=this;return I.Raw('<audio id="chatAudioNotification" preload="">\n <source src="sounds/notify.ogg" type="audio/ogg">\n <source src="sounds/notify.mp3" type="audio/mpeg">\n </audio>\n <audio id="chatNewRoomNotification" preload="">\n <source src="sounds/door_chime.mp3" type="audio/mpeg">\n </audio>')})}.call(this),function(){p.__checkName("burger"),p.burger=new p("Template.burger",function(){var e=this;return I.DIV({"class":"burger"},I.Raw("\n <i></i>\n <i></i>\n <i></i>\n "),_.If(function(){return T.call(e.lookup("unread"))},function(){return["\n ",I.DIV({"class":"unread-burger-alert"},"\n ",_.View("lookup:unread",function(){return T.mustache(e.lookup("unread"))}),"\n "),"\n "]}),"\n ")})}.call(this),function(){p.__checkName("home"),p.home=new p("Template.home",function(){var e=this;return I.SECTION({"class":"page-container page-home page-static"},"\n ",I.HEADER({"class":"fixed-title"},"\n ",T.include(e.lookupTemplate("burger")),"\n ",I.H2("\n ",I.SPAN({"class":"room-title"},_.View("lookup:title",function(){return T.mustache(e.lookup("title"))})),"\n "),"\n "),"\n ",I.DIV({"class":"content"},"\n ",_.View("lookup:body",function(){return T.makeRaw(T.mustache(e.lookup("body")))}),"\n "),"\n ")})}.call(this),function(){p.__checkName("notAuthorized"),p.notAuthorized=new p("Template.notAuthorized",function(){var e=this;return I.H2(_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Access_not_authorized")}))})}.call(this),function(){p.__checkName("pageContainer"),p.pageContainer=new p("Template.pageContainer",function(){var e=this;return I.SECTION({"class":"page-container page-home page-static page-list"},"\n ",I.HEAD({"class":"fixed-title"},"\n ",T.include(e.lookupTemplate("burger")),"\n ",I.H2("\n ",I.SPAN({"class":"page-title"},"\n ",_.If(function(){return T.call(e.lookup("i18nPageTitle"))},function(){return["\n ",_.View("lookup:_",function(){return T.mustache(e.lookup("_"),e.lookup("i18nPageTitle"))}),"\n "]},function(){return["\n ",_.View("lookup:pageTitle",function(){return T.mustache(e.lookup("pageTitle"))}),"\n "]}),"\n "),"\n "),"\n "),"\n ",I.DIV({"class":"content"},"\n ",_._TemplateWith(function(){return{template:T.call(e.lookup("pageTemplate"))}},function(){return T.include(function(){return T.call(p.__dynamic)})}),"\n "),"\n ")})}.call(this),function(){p.__checkName("pageSettingsContainer"),p.pageSettingsContainer=new p("Template.pageSettingsContainer",function(){var e=this;return I.SECTION({"class":"page-container page-home page-static page-settings"},"\n ",I.HEAD({"class":"fixed-title"},"\n ",T.include(e.lookupTemplate("burger")),"\n ",I.H2("\n ",I.SPAN({"class":"page-title"},_.View("lookup:pageTitle",function(){return T.mustache(e.lookup("pageTitle"))})),"\n "),"\n "),"\n ",I.DIV({"class":function(){return["content ",_.If(function(){return T.call(e.lookup("noScroll"))},function(){return"no-scroll"})]}},"\n ",_._TemplateWith(function(){return{template:T.call(e.lookup("pageTemplate"))}},function(){return T.include(function(){return T.call(p.__dynamic)})}),"\n "),"\n ")})}.call(this),function(){p.__checkName("privateHistory"),p.privateHistory=new p("Template.privateHistory",function(){var e=this;return I.SECTION({"class":"page-container page-list"},"\n ",I.HEADER({"class":"fixed-title"},"\n ",T.include(e.lookupTemplate("burger")),"\n ",I.H2("\n ",I.SPAN({"class":"room-title"},_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"History")})),"\n "),"\n "),"\n ",I.DIV({"class":"content"},"\n ",I.FORM({"class":"search-form",role:"form"},"\n ",I.DIV({"class":"input-line search"},"\n ",I.INPUT({type:"text",id:"history-filter",placeholder:function(){return T.mustache(e.lookup("_"),"Search")},dir:"auto"}),"\n ",I.Raw('<i class="icon-search"></i>'),"\n "),"\n "),"\n ",I.DIV({"class":"results"},"\n ",_.View("lookup:_",function(){return T.makeRaw(T.mustache(e.lookup("_"),"Showing_results",T.dot(e.lookup("history"),"length")))}),"\n "),"\n ",I.DIV({"class":"list"},"\n ",_.Each(function(){return T.call(T.dot(e.lookup("history"),"items"))},function(){return["\n ",I.A({href:function(){return T.mustache(e.lookup("path"))}},"\n ",I.DIV({"class":"info"},"\n ",I.H3(I.I({"class":function(){return T.mustache(e.lookup("type"))}}),I.SPAN({"class":"enter-room"},_.View("lookup:name",function(){return T.mustache(e.lookup("name"))}))),"\n ",I.UL("\n ",T.With(function(){return T.dataMustache(e.lookup("roomOf"),e.lookup("rid"))},function(){return["\n ",I.LI(_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"n_messages",e.lookup("msgs"))})),"\n ",I.LI(_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"since_creation",e.lookup("creation"))})),"\n "]}),"\n "),"\n "),"\n ",I.DIV({"class":"title"},"\n ",T.With(function(){return T.dataMustache(e.lookup("roomOf"),e.lookup("rid"))},function(){return["\n ",I.STRONG(_.View("lookup:lastMessage",function(){return T.mustache(e.lookup("lastMessage"))})),"\n "]}),"\n "),"\n "),"\n "]}),"\n "),"\n ",I.DIV({"class":"results"},"\n ",_.View("lookup:_",function(){return T.makeRaw(T.mustache(e.lookup("_"),"Showing_archived_results",T.dot(e.lookup("archivedHistory"),"length")))}),"\n "),"\n ",I.DIV({"class":"list"},"\n ",_.Each(function(){return T.call(T.dot(e.lookup("archivedHistory"),"items"))},function(){return["\n ",I.A({href:function(){return T.mustache(e.lookup("path"))}},"\n ",I.DIV({"class":"info"},"\n ",I.H3(I.I({"class":function(){return T.mustache(e.lookup("type"))}}),I.SPAN({"class":"enter-room"},_.View("lookup:name",function(){return T.mustache(e.lookup("name"))}))),"\n ",I.UL("\n ",T.With(function(){return T.dataMustache(e.lookup("roomOf"),e.lookup("rid"))},function(){return["\n ",I.LI(_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"n_messages",e.lookup("msgs"))})),"\n ",I.LI(_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"since_creation",e.lookup("creation"))})),"\n "]}),"\n "),"\n "),"\n ",I.DIV({"class":"title"},"\n ",T.With(function(){return T.dataMustache(e.lookup("roomOf"),e.lookup("rid"))},function(){return["\n ",I.STRONG(_.View("lookup:lastMessage",function(){return T.mustache(e.lookup("lastMessage"))})),"\n "]}),"\n "),"\n "),"\n "]}),"\n "),"\n "),"\n ")})}.call(this),function(){p.__checkName("room"),p.room=new p("Template.room",function(){var e=this;return I.DIV({"class":"dropzone"},"\n ",I.DIV({"class":"dropzone-overlay"},"\n ",I.DIV("\n ",_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Drop_to_upload_file")}),"\n "),"\n "),"\n ",I.SECTION({"class":function(){return["messages-container ",T.mustache(e.lookup("adminClass"))]},id:function(){return T.mustache(e.lookup("windowId"))},"aria-label":function(){return T.mustache(e.lookup("_"),"Channel")}},"\n ",I.HEADER({"class":"fixed-title"},"\n ",T.include(e.lookupTemplate("burger")),"\n ",I.H2("\n ",_.If(function(){return T.call(e.lookup("showToggleFavorite"))},function(){return["\n ",I.A({href:"#favorite","class":"toggle-favorite"},I.I({"class":function(){return T.mustache(e.lookup("favorite"))},"aria-label":function(){return T.mustache(e.lookup("_"),e.lookup("favoriteLabel"))}})),"\n "]}),"\n ",I.I({"class":function(){return[T.mustache(e.lookup("roomIcon"))," status-",T.mustache(e.lookup("userStatus"))]}}),"\n ",I.SPAN({"class":"room-title"},_.View("lookup:roomName",function(){return T.mustache(e.lookup("roomName"))})),"\n ",I.SPAN({"class":"room-topic"},_.View("lookup:RocketChatMarkdown",function(){return T.makeRaw(T.mustache(e.lookup("RocketChatMarkdown"),e.lookup("roomTopic")))})),"\n "),"\n "),"\n ",I.DIV({"class":"container-bars"},"\n ",T.With(function(){return T.call(e.lookup("unreadData"))},function(){return["\n ",_.If(function(){return T.call(e.lookup("since"))},function(){return["\n ",_.If(function(){return T.call(e.lookup("count"))},function(){return["\n ",I.DIV({"class":"unread-bar"},"\n ",I.A({"class":"jump-to"},"\n ",I.SPAN({"class":"jump-to-large"},_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Jump_to_first_unread")})),"\n ",I.SPAN({"class":"jump-to-small"},_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Jump")})),"\n "),"\n ",I.SPAN({"class":"unread-count-since"},"\n ",_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"S_new_messages_since_s",e.lookup("count"),e.lookup("formatUnreadSince"))}),"\n "),"\n ",I.SPAN({"class":"unread-count"},"\n ",_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"N_new_messages",e.lookup("count"))}),"\n "),"\n ",I.A({"class":"mark-read"},"\n ",_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Mark_as_read")}),"\n "),"\n "),"\n "]}),"\n "]}),"\n "]}),"\n ",_.Each(function(){return T.call(e.lookup("uploading"))},function(){return["\n ",I.DIV({"class":function(){return["upload-progress ",_.If(function(){return T.call(e.lookup("error"))},function(){return"upload-error"})]}},"\n ",_.If(function(){return T.call(e.lookup("error"))},function(){return["\n ",I.DIV({"class":"upload-progress-text"},"\n ",_.View("lookup:error",function(){return T.mustache(e.lookup("error"))}),"\n ",I.A("\n ",_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"close")}),"\n "),"\n "),"\n "]},function(){return["\n ",I.DIV({"class":"upload-progress-progress",style:function(){return["width: ",T.mustache(e.lookup("percentage")),"%;"]}}),"\n ",I.DIV({"class":"upload-progress-text"},"\n ",_.View("lookup:name",function(){return T.mustache(e.lookup("name"))}),"... ",_.View("lookup:percentage",function(){return T.mustache(e.lookup("percentage"))}),"%\n ",I.A("\n ",_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"cancel")}),"\n "),"\n "),"\n "]}),"\n "),"\n "]}),"\n "),"\n ",I.DIV({"class":function(){return["messages-box ",_.If(function(){return T.call(e.lookup("selectable"))},function(){return"selectable"})," ",T.mustache(e.lookup("compactView"))]}},"\n ",I.Raw('<div class="ticks-bar"></div>'),"\n ",I.DIV({"class":function(){return["wrapper ",_.If(function(){return T.call(e.lookup("hasMoreNext"))},function(){return"has-more-next"})]}},"\n ",I.UL({"aria-live":"polite"},"\n ",_.If(function(){return T.call(e.lookup("hasMore"))},function(){return["\n ",I.LI({"class":"load-more"},"\n ",_.If(function(){return T.call(e.lookup("isLoading"))},function(){return["\n ",I.DIV({"class":"load-more-loading"},_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Loading_more_from_history")}),"..."),"\n "]},function(){return["\n ",I.A(_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Has_more")}),"..."),"\n "]}),"\n "),"\n "]},function(){return["\n ",I.LI({"class":"start"},"\n ",_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Start_of_conversation")}),"\n "),"\n "]}),"\n ",_.Each(function(){return T.call(e.lookup("messagesHistory"))},function(){return["\n ",_._TemplateWith(function(){return T.dataMustache(e.lookup("nrrargs"),"message",e.lookup("."))},function(){return T.include(e.lookupTemplate("nrr"),function(){return null})}),"\n "]}),"\n ",_.If(function(){return T.call(e.lookup("hasMoreNext"))},function(){return["\n ",I.LI({"class":"load-more"},"\n ",_.If(function(){return T.call(e.lookup("isLoading"))},function(){return["\n ",I.DIV({"class":"load-more-loading"},_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Loading_more_from_history")}),"..."),"\n "]},function(){return["\n ",I.A(_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Has_more")}),"..."),"\n "]}),"\n "),"\n "]}),"\n "),"\n "),"\n ",I.DIV({"class":"new-message not"},"\n ",I.Raw('<i class="icon-down-big"></i>'),"\n ",I.SPAN(_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"New_messages")})),"\n "),"\n ",I.DIV({"class":function(){return["jump-recent ",_.Unless(function(){return T.call(e.lookup("hasMoreNext"))},function(){return"not"})]}},"\n ",I.SPAN({"class":"jump-link"},_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Jump_to_recent_messages")})," ",I.Raw('<i class="icon-level-down"></i>')),"\n "),"\n "),"\n ",I.FOOTER({"class":"footer"},"\n ",T.include(e.lookupTemplate("messageBox")),"\n "),"\n "),"\n ",I.SECTION({"class":"flex-tab"},"\n ",_._TemplateWith(function(){return{template:T.call(e.lookup("flexTemplate")),data:T.call(e.lookup("flexData"))}},function(){return T.include(function(){return T.call(p.__dynamic)})}),"\n "),"\n ")})}.call(this),function(){p.__checkName("roomSearch"),p.roomSearch=new p("Template.roomSearch",function(){var e=this;return[I.I({"class":function(){return[T.mustache(e.lookup("roomIcon"))," ",T.mustache(e.lookup("userStatus"))]}})," ",_.View("lookup:name",function(){return T.mustache(e.lookup("name"))})]}),p.__checkName("roomSearchEmpty"),p.roomSearchEmpty=new p("Template.roomSearchEmpty",function(){var e=this;return I.P(_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Nothing_found")}),".")})}.call(this),function(){p.__checkName("secretURL"),p.secretURL=new p("Template.secretURL",function(){var e=this;return _.If(function(){return T.call(e.lookup("ready"))},function(){return["\n ",_.If(function(){return T.call(e.lookup("registrationAllowed"))},function(){return["\n ",_._TemplateWith(function(){return{center:T.call("home")}},function(){return T.include(e.lookupTemplate("main"))}),"\n "]},function(){return["\n ",_._TemplateWith(function(){return{render:T.call("invalidSecretURL")}},function(){return T.include(e.lookupTemplate("logoLayout"))}),"\n "]}),"\n "]},function(){return["\n ",T.include(e.lookupTemplate("loading")),"\n "]})})}.call(this),function(){p.__checkName("userSearch"),p.userSearch=new p("Template.userSearch",function(){var e=this;return[I.I({"class":function(){return["icon-at status-",T.mustache(e.lookup("status"))]}})," ",_.View("lookup:username",function(){return T.mustache(e.lookup("username"))})]}),p.__checkName("userSearchEmpty"),p.userSearchEmpty=new p("Template.userSearchEmpty",function(){var e=this;return I.P(_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Nothing_found")}),".")})}.call(this),function(){p.__checkName("spotlight"),p.spotlight=new p("Template.spotlight",function(){var e=this;return I.DIV({"class":"spotlight hidden"},"\n ",I.DIV({"class":"spotlight-input"},"\n ",I.Raw('<i class="icon-search"></i>'),"\n ",_._TemplateWith(function(){return{settings:T.call(e.lookup("autocompleteSettings")),id:T.call("room-search"),"class":T.call("search"),placeholder:T.call(e.lookup("tQuickSearch")),autocomplete:T.call("off")}},function(){return T.include(e.lookupTemplate("inputAutocomplete"))}),"\n "),"\n ")})}.call(this),function(){p.__checkName("videoButtons"),p.videoButtons=new p("Template.videoButtons",function(){var e=this;return I.DIV({"class":"group-call-buttons"},"\n ",_.If(function(){return T.call(e.lookup("videoAvaliable"))},function(){return["\n ",_.Unless(function(){return T.call(e.lookup("videoActive"))},function(){return["\n ",_.If(function(){return T.call(e.lookup("callInProgress"))},function(){return["\n ",I.BUTTON({"class":"join-video-call button secondary","aria-label":function(){return T.mustache(e.lookup("_"),"Join_video_call")}},I.I({"class":"icon-videocam"})),"\n ",I.BUTTON({"class":"join-audio-call button secondary","aria-label":function(){return T.mustache(e.lookup("_"),"Join_audio_call")}},I.I({"class":"icon-phone"})),"\n "]},function(){return["\n ",I.BUTTON({"class":"start-video-call button","aria-label":function(){return T.mustache(e.lookup("_"),"Start_video_call")}},I.I({"class":"icon-videocam"})),"\n ",I.BUTTON({"class":"start-audio-call button","aria-label":function(){return T.mustache(e.lookup("_"),"Start_audio_call")}},I.I({"class":"icon-phone"})),"\n "]}),"\n "]}),"\n "]}),"\n ")})}.call(this),function(){p.__checkName("videoCall"),p.videoCall=new p("Template.videoCall",function(){var e=this;return _.If(function(){return T.call(e.lookup("videoAvaliable"))},function(){return["\n ",_.If(function(){return T.call(e.lookup("videoActive"))},function(){return["\n ",I.DIV({"class":function(){return["webrtc-video ",_.If(function(){return T.call(e.lookup("overlay"))},function(){return"webrtc-video-overlay"})]}},"\n ",I.DIV({"class":"main-video"},"\n ",I.VIDEO({src:function(){return T.mustache(e.lookup("mainVideoUrl"))},autoplay:"",muted:"true"}),"\n ",I.DIV(_.View("lookup:mainVideoUsername",function(){return T.mustache(e.lookup("mainVideoUsername"))})),"\n "),"\n ",I.DIV({"class":"videos"},"\n ",_.If(function(){return T.call(e.lookup("selfVideoUrl"))},function(){return["\n ",I.DIV({"class":"video-item","data-username":"$self"},"\n ",I.VIDEO({src:function(){return T.mustache(e.lookup("selfVideoUrl"))},autoplay:"",muted:"true"}),"\n ",_.Unless(function(){return T.call(e.lookup("audioAndVideoEnabled"))},function(){return["\n ",I.DIV({"class":"video-muted-overlay"},"\n ",_.Unless(function(){return T.call(e.lookup("audioEnabled"))},function(){return["\n ",I.I({"class":"icon-mute"}),"\n "]}),"\n ",_.Unless(function(){return T.call(e.lookup("videoEnabled"))},function(){return["\n ",I.I({"class":"icon-eye-off"}),"\n "]}),"\n "),"\n "]}),"\n ",I.DIV(_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"you")})),"\n "),"\n "]}),"\n ",_.Each(function(){return T.call(e.lookup("remoteVideoItems"))},function(){return["\n ",I.DIV({"class":function(){return["video-item ",_.Unless(function(){return T.call(e.lookup("connected"))},function(){return"state-overlay"})]},"data-state-text":function(){return T.mustache(e.lookup("stateText"))},"data-username":function(){return T.mustache(e.lookup("id"))}},"\n ",I.VIDEO({src:function(){return T.mustache(e.lookup("url"))},autoplay:""}),"\n ",I.DIV(_.View("lookup:usernameByUserId",function(){
|
||
return T.mustache(e.lookup("usernameByUserId"),e.lookup("id"))})),"\n "),"\n "]}),"\n "),"\n ",I.DIV({"class":"group-call-buttons"},"\n ",_.If(function(){return T.call(e.lookup("videoActive"))},function(){return["\n ",I.BUTTON({"class":"stop-call button red"},I.I({"class":"icon-stop"}),_.View("lookup:_",function(){return T.mustache(e.lookup("_"),"Stop")})),"\n ",_.If(function(){return T.call(e.lookup("audioEnabled"))},function(){return["\n ",I.BUTTON({"class":"disable-audio button red",title:function(){return T.mustache(e.lookup("_"),"Mute")}},I.I({"class":"icon-mute"})),"\n "]},function(){return["\n ",I.BUTTON({"class":"enable-audio button",title:function(){return T.mustache(e.lookup("_"),"Unmute")}},I.I({"class":"icon-mic"})),"\n "]}),"\n ",_.If(function(){return T.call(e.lookup("videoEnabled"))},function(){return["\n ",I.BUTTON({"class":"disable-video button red"},I.I({"class":"icon-eye-off"})),"\n "]},function(){return["\n ",I.BUTTON({"class":"enable-video button"},I.I({"class":"icon-eye"})),"\n "]}),"\n ",_.If(function(){return T.call(e.lookup("screenShareAvailable"))},function(){return["\n ",_.If(function(){return T.call(e.lookup("screenShareEnabled"))},function(){return["\n ",I.BUTTON({"class":"disable-screen-share button red"},I.I({"class":"icon-desktop"})),"\n "]},function(){return["\n ",I.BUTTON({"class":"enable-screen-share button"},I.I({"class":"icon-desktop"})),"\n "]}),"\n "]}),"\n ",_.If(function(){return T.call(e.lookup("overlayEnabled"))},function(){return["\n ",I.BUTTON({"class":"disable-overlay button red"},I.I({"class":"icon-resize-small"})),"\n "]},function(){return["\n ",I.BUTTON({"class":"enable-overlay button"},I.I({"class":"icon-resize-full-alt"})),"\n "]}),"\n "]}),"\n "),"\n "),"\n "]}),"\n "]})})}.call(this),function(){S="object"==typeof S?S:{};var t=S;p.cmsPage.onCreated(function(){return this.page=new c(""),e.autorun(function(e){return function(){return null!=r.get("cmsPage")?e.page.set(m.settings.get(r.get("cmsPage"))):void 0}}(this))}),p.cmsPage.helpers({page:function(){return p.instance().page.get()}}),p.cmsPage.events({"click .cms-page-close":function(){return g.go("/")}}),p.cmsPage.onRendered(function(){return a("#initial-page-loading").remove()})}.call(this),function(){S="object"==typeof S?S:{};var e=S;p.fxOsInstallPrompt.onRendered(function(){var e;return e=function(){var e;return e=window.navigator.mozApps.install("http://"+location.host+"/manifest.webapp"),e.onsuccess=function(){var e;return e=this.result,BlazeLayout.render("fxOsInstallDone")},e.onerror=function(){return BlazeLayout.render("fxOsInstallError",{installError:this.error.name})}},setTimeout(e,2e3),a("#initial-page-loading").remove()}),p.fxOsInstallDone.onRendered(function(){return a("#initial-page-loading").remove()}),p.fxOsInstallError.onRendered(function(){return a("#initial-page-loading").remove()})}.call(this),function(){S="object"==typeof S?S:{};var e=S;p.modal.rendered=function(){}}.call(this),function(){S="object"==typeof S?S:{};var e=S;p.roomNotFound.helpers({data:function(){return r.get("roomNotFound")}})}.call(this),function(){S="object"==typeof S?S:{};var e=S;p.burger.helpers({unread:function(){return r.get("unread")}})}.call(this),function(){S="object"==typeof S?S:{};var e=S;p.home.helpers({title:function(){return m.settings.get("Layout_Home_Title")},body:function(){return m.settings.get("Layout_Home_Body")}})}.call(this),function(){S="object"==typeof S?S:{};var e=S;p.privateHistory.helpers({history:function(){var e;return e=ChatSubscription.find({name:{$regex:r.get("historyFilter"),$options:"i"},t:{$in:["d","c","p"]},archived:{$ne:!0}},{sort:{ts:-1}}),{items:e,length:e.count()}},archivedHistory:function(){var e;return e=ChatSubscription.find({name:{$regex:r.get("historyFilter"),$options:"i"},t:{$in:["d","c","p"]},archived:!0},{sort:{ts:-1}}),{items:e,length:e.count()}},roomOf:function(e){return ChatRoom.findOne(e)},type:function(){switch(this.t){case"d":return"icon-at";case"c":return"icon-hash";case"p":return"icon-lock"}},creation:function(){return moment(this.ts).format("LLL")},lastMessage:function(){return this.lm?moment(this.lm).format("LLL"):void 0},path:function(){switch(this.t){case"c":return g.path("channel",{name:this.name});case"p":return g.path("group",{name:this.name});case"d":return g.path("direct",{username:this.name})}}}),p.privateHistory.events({"keydown #history-filter":function(e){return 13===e.which?(e.stopPropagation(),e.preventDefault()):void 0},"keyup #history-filter":function(e){return e.stopPropagation(),e.preventDefault(),r.set("historyFilter",e.currentTarget.value)}})}.call(this),function(){S="object"==typeof S?S:{};var t=S,n,o,i,s,u;s=function(e){return null==e&&(e={}),window.plugins.socialsharing.share(e.message,e.subject,e.file,e.link)},i=function(e){return ChatSubscription.find({rid:e}).count()>0},n=function(){return!m.settings.get("Disable_Favorite_Rooms")},p.room.helpers({favorite:function(){var e;return e=ChatSubscription.findOne({rid:this._id},{fields:{f:1}}),null!=(null!=e?e.f:void 0)&&e.f&&n?"icon-star favorite-room":"icon-star-empty"},favoriteLabel:function(){var e;return e=ChatSubscription.findOne({rid:this._id},{fields:{f:1}}),null!=(null!=e?e.f:void 0)&&e.f&&n?"Unfavorite":"Favorite"},subscribed:function(){return i(this._id)},messagesHistory:function(){return ChatMessage.find({rid:this._id,t:{$ne:"t"}},{sort:{ts:1}})},hasMore:function(){return RoomHistoryManager.hasMore(this._id)},hasMoreNext:function(){return RoomHistoryManager.hasMoreNext(this._id)},isLoading:function(){return RoomHistoryManager.isLoading(this._id)},windowId:function(){return"chat-window-"+this._id},uploading:function(){return r.get("uploading")},roomName:function(){var e,t;return t=r.get("roomData"+this._id),t?"d"===t.t?null!=(e=ChatSubscription.findOne({rid:this._id},{fields:{name:1}}))?e.name:void 0:t.name:""},roomTopic:function(){var e;return e=r.get("roomData"+this._id),e?e.topic:""},roomIcon:function(){var e;if(e=r.get("roomData"+this._id),!(null!=e?e.t:void 0))return"";switch(e.t){case"d":return"icon-at";case"c":return"icon-hash";case"p":return"icon-lock"}},userStatus:function(){var t,n;return t=r.get("roomData"+this._id),t?"d"===t.t?(n=f.without(t.usernames,e.user().username),r.get("user_"+n+"_status")||"offline"):"offline":{}},isChannel:function(){var e;return e=r.get("roomData"+this._id),e?"c"===e.t:""},canDirectMessage:function(){var t;return(null!=(t=e.user())?t.username:void 0)!==this.username},flexOpened:function(){return m.TabBar.isFlexOpen()?"opened":void 0},arrowPosition:function(){return m.TabBar.isFlexOpen()?void 0:"left"},phoneNumber:function(){return this.phoneNumber?this.phoneNumber.length>10?"("+this.phoneNumber.substr(0,2)+") "+this.phoneNumber.substr(2,5)+"-"+this.phoneNumber.substr(7):"("+this.phoneNumber.substr(0,2)+") "+this.phoneNumber.substr(2,4)+"-"+this.phoneNumber.substr(6):""},userActiveByUsername:function(e){var t;return t=r.get("user_"+e+"_status"),"online"===t||"away"===t||"busy"===t?{username:e,status:t}:void 0},getPopupConfig:function(){var e;return e=p.instance(),{getInput:function(){return e.find(".input-message")}}},maxMessageLength:function(){return m.settings.get("Message_MaxAllowedSize")},utc:function(){return null!=this.utcOffset?"UTC "+this.utcOffset:void 0},phoneNumber:function(){return this.phoneNumber?this.phoneNumber.length>10?"("+this.phoneNumber.substr(0,2)+") "+this.phoneNumber.substr(2,5)+"-"+this.phoneNumber.substr(7):"("+this.phoneNumber.substr(0,2)+") "+this.phoneNumber.substr(2,4)+"-"+this.phoneNumber.substr(6):""},lastLogin:function(){return this.lastLogin?moment(this.lastLogin).format("LLL"):void 0},canJoin:function(){return!!ChatRoom.findOne({_id:this._id,t:"c"})},canRecordAudio:function(){var e,t;return t=/audio\/wav|audio\/\*/i,e=!m.settings.get("FileUpload_MediaTypeWhiteList")||m.settings.get("FileUpload_MediaTypeWhiteList").match(t),m.settings.get("Message_AudioRecorderEnabled")&&(null!=navigator.getUserMedia||null!=navigator.webkitGetUserMedia)&&e&&m.settings.get("FileUpload_Enabled")},unreadData:function(){var e,t,n;return e={count:RoomHistoryManager.getRoom(this._id).unreadNotLoaded.get()+p.instance().unreadCount.get()},n=RoomManager.getOpenedRoomByRid(this._id),null!=n&&(e.since=null!=(t=n.unreadSince)?t.get():void 0),e},formatUnreadSince:function(){return null!=this.since?moment(this.since).calendar(null,{sameDay:"LT"}):void 0},flexTemplate:function(){return m.TabBar.getTemplate()},flexData:function(){return f.extend({rid:this._id,userDetail:p.instance().userDetail.get(),clearUserDetail:p.instance().clearUserDetail},m.TabBar.getData())},adminClass:function(){return m.authz.hasRole(e.userId(),"admin")?"admin":void 0},showToggleFavorite:function(){return i(this._id)&&n()?!0:void 0},compactView:function(){var t,n,o;return(null!=(t=e.user())&&null!=(n=t.settings)&&null!=(o=n.preferences)?o.compactView:void 0)?"compact":void 0},selectable:function(){return p.instance().selectable.get()}}),o=!1,u=!1,p.room.events({"click, touchend":function(t,n){return e.setTimeout(function(){return n.sendToBottomIfNecessaryDebounced()},100)},"touchstart .message":function(t,n){var i,r;return u=!1,o=!1,1!==t.originalEvent.touches.length||a(t.currentTarget).hasClass("system")||t.target&&"AUDIO"===t.target.nodeName?void 0:(t.target&&"A"===t.target.nodeName&&/^https?:\/\/.+/.test(t.target.getAttribute("href"))&&(t.preventDefault(),t.stopPropagation()),r=this._arguments[1],i=function(e){return function(){var i,a;if(null!=(null!=(a=window.plugins)?a.socialsharing:void 0)){if(o=!0,t.target&&"A"===t.target.nodeName&&/^https?:\/\/.+/.test(t.target.getAttribute("href")))return null!=r.attachments&&(i=f.find(r.attachments,function(e){return e.title===t.target.innerText}),null!=i)?void s({file:t.target.href,subject:t.target.innerText,message:r.msg}):void s({link:t.target.href,subject:t.target.innerText,message:r.msg});if(t.target&&"IMG"===t.target.nodeName)return void s({file:t.target.src,message:r.msg})}return mobileMessageMenu.show(r,n,t,e)}}(this),e.clearTimeout(n.touchtime),n.touchtime=e.setTimeout(i,500))},"click .message img":function(t,n){return e.clearTimeout(n.touchtime),o===!0||u===!0?(t.preventDefault(),t.stopPropagation()):void 0},"touchend .message":function(t,n){return e.clearTimeout(n.touchtime),o===!0?(t.preventDefault(),void t.stopPropagation()):t.target&&"A"===t.target.nodeName&&/^https?:\/\/.+/.test(t.target.getAttribute("href"))?u===!0?(t.preventDefault(),void t.stopPropagation()):null!=("undefined"!=typeof cordova&&null!==cordova?cordova.InAppBrowser:void 0)?cordova.InAppBrowser.open(t.target.href,"_system"):window.open(t.target.href):void 0},"touchmove .message":function(t,n){return u=!0,e.clearTimeout(n.touchtime)},"touchcancel .message":function(t,n){return e.clearTimeout(n.touchtime)},"click .upload-progress-text > a":function(e){return e.preventDefault(),r.set("uploading-cancel-"+this.id,!0)},"click .unread-bar > a.mark-read":function(){return readMessage.readNow(!0)},"click .unread-bar > a.jump-to":function(e,t){var n,o,i,r;return n=t.data._id,o=null!=(i=RoomHistoryManager.getRoom(n))?i.firstUnread.get():void 0,null!=o?RoomHistoryManager.getSurroundingMessages(o,50):(r=ChatSubscription.findOne({rid:n}),o=ChatMessage.find({rid:n,ts:{$gt:null!=r?r.ls:void 0}},{sort:{ts:1},limit:1}).fetch()[0],RoomHistoryManager.getSurroundingMessages(o,50))},"click .flex-tab .more":function(e,t){return m.TabBar.isFlexOpen()?(r.set("rtcLayoutmode",0),m.TabBar.closeFlex(),t.searchResult.set(void 0)):m.TabBar.openFlex()},"click .flex-tab .video-remote":function(e){var t;return m.TabBar.isFlexOpen()?r.get("rtcLayoutmode")?(t=r.get("rtcLayoutmode"),t=(t+1)%4,window.rocketDebug&&console.log("setting rtcLayoutmode to "+t),r.set("rtcLayoutmode",t)):r.set("rtcLayoutmode",1):void 0},"click .flex-tab .video-self":function(e){var t;if(3===r.get("rtcLayoutmode")){if(window.rocketDebug&&console.log("video-self clicked in layout3"),t=document.getElementById("fullscreendiv"),t.requestFullscreen)return t.requestFullscreen();if(t.webkitRequestFullscreen)return t.webkitRequestFullscreen();if(t.mozRequestFullScreen)return t.mozRequestFullScreen();if(t.msRequestFullscreen)return t.msRequestFullscreen()}},"click .toggle-favorite":function(t){return t.stopPropagation(),t.preventDefault(),e.call("toggleFavorite",this._id,!a("i",t.currentTarget).hasClass("favorite-room"))},"click .edit-room-title":function(t){return t.preventDefault(),r.set("editRoomTitle",!0),a(".fixed-title").addClass("visible"),e.setTimeout(function(){return a("#room-title-field").focus().select()},10)},"click .flex-tab .user-image > a":function(e,t){return m.TabBar.openFlex(),t.setUserDetail(this.username)},"click .user-card-message":function(e,t){var n,o;return o=r.get("roomData"+this._arguments[1].rid),("c"===(n=o.t)||"p"===n)&&t.setUserDetail(this._arguments[1].u.username),m.TabBar.setTemplate("membersList")},"scroll .wrapper":f.throttle(function(e,t){if(RoomHistoryManager.isLoading(this._id)===!1&&(RoomHistoryManager.hasMore(this._id)===!0||RoomHistoryManager.hasMoreNext(this._id)===!0)){if(RoomHistoryManager.hasMore(this._id)===!0&&0===e.target.scrollTop)return RoomHistoryManager.getMore(this._id);if(RoomHistoryManager.hasMoreNext(this._id)===!0&&e.target.scrollTop>=e.target.scrollHeight-e.target.clientHeight)return RoomHistoryManager.getMoreNext(this._id)}},200),"click .load-more > a":function(){return RoomHistoryManager.getMore(this._id)},"click .new-message":function(e){return p.instance().atBottom=!0,p.instance().find(".input-message").focus()},"click .message-cog":function(e){var t,n,o,i;return i=this._arguments[1],a(".message-dropdown:visible").hide(),n=a(".messages-box #"+i._id+" .message-dropdown"),0===n.length&&(t=m.MessageAction.getButtons(i,"message"),o=_.toHTMLWithData(p.messageDropdown,{actions:t}),a(".messages-box #"+i._id+" .message-cog-container").append(o),n=a(".messages-box #"+i._id+" .message-dropdown")),n.show()},"click .message-dropdown .message-action":function(e,t){var n,o;return o=a(e.currentTarget),n=m.MessageAction.getButtonById(o.data("id")),null!=(null!=n?n.action:void 0)?n.action.call(this,e,t):void 0},"click .message-dropdown-close":function(){return a(".message-dropdown:visible").hide()},"click .mention-link":function(e,t){var n;return n=a(e.currentTarget).data("channel"),null!=n?void g.go("channel",{name:n}):(m.TabBar.setTemplate("membersList"),t.setUserDetail(a(e.currentTarget).data("username")),m.TabBar.openFlex())},"click .image-to-download":function(e){return ChatMessage.update({_id:this._arguments[1]._id,"urls.url":a(e.currentTarget).data("url")},{$set:{"urls.$.downloadImages":!0}}),ChatMessage.update({_id:this._arguments[1]._id,"attachments.image_url":a(e.currentTarget).data("url")},{$set:{"attachments.$.downloadImages":!0}})},"click .collapse-switch":function(e){var t,n,o,i,r,s,l;return o=a(e.currentTarget).data("index"),t=a(e.currentTarget).data("collapsed"),n=this._arguments[1]._id,null!=(null!=(s=this._arguments[1])?s.attachments:void 0)&&ChatMessage.update({_id:n},{$set:(i={},i["attachments."+o+".collapsed"]=!t,i)}),null!=(null!=(l=this._arguments[1])?l.urls:void 0)?ChatMessage.update({_id:n},{$set:(r={},r["urls."+o+".collapsed"]=!t,r)}):void 0},"dragenter .dropzone":function(e){return e.currentTarget.classList.add("over")},"dragleave .dropzone-overlay":function(e){return e.currentTarget.parentNode.classList.remove("over")},"dragover .dropzone-overlay":function(e){var t;return e=e.originalEvent||e,"move"===(t=e.dataTransfer.effectAllowed)||"linkMove"===t?e.dataTransfer.dropEffect="move":e.dataTransfer.dropEffect="copy"},"dropped .dropzone-overlay":function(e){var t,n,o,i,r,a,s;for(e.currentTarget.parentNode.classList.remove("over"),t=e.originalEvent||e,o=t.target.files,o&&0!==o.length||(o=(null!=(s=t.dataTransfer)?s.files:void 0)||[]),i=[],r=0,a=o.length;a>r;r++)n=o[r],i.push({file:n,name:n.name});return fileUpload(i)},"load img":function(e,t){return"function"==typeof t.sendToBottomIfNecessary?t.sendToBottomIfNecessary():void 0},"click .jump-recent .jump-link":function(e,t){var n;return e.preventDefault(),t.atBottom=!0,RoomHistoryManager.clear(null!=t&&null!=(n=t.data)?n._id:void 0)},"click .message":function(e,t){var n,o,i,r,s,l,u,c,d,p,m,h,g,v;if(t.selectable.get()){for((null!=(d=document.selection)?d.empty():void 0)||("function"==typeof window.getSelection?window.getSelection().removeAllRanges():void 0),i=_.getData(e.currentTarget),n=null!=i&&null!=(p=i._arguments)&&null!=(m=p[1])?m._id:void 0,t.selectablePointer||(t.selectablePointer=n),e.shiftKey||(t.selectedMessages=t.getSelectedMessages(),t.selectedRange=[],t.selectablePointer=n),t.selectMessages(n),v=a(".messages-box .message.selected").map(function(e,t){return t.id}),h=f.difference(v,t.getSelectedMessages()),o=f.difference(t.getSelectedMessages(),v),r=0,l=h.length;l>r;r++)c=h[r],a(".messages-box #"+c).removeClass("selected");for(g=[],s=0,u=o.length;u>s;s++)c=o[s],g.push(a(".messages-box #"+c).addClass("selected"));return g}}}),p.room.onCreated(function(){return this.showUsersOffline=new c(!1),this.atBottom=g.getQueryParam("j")?!1:!0,this.unreadCount=new c(0),this.selectable=new c(!1),this.selectedMessages=[],this.selectedRange=[],this.selectablePointer=null,this.userDetail=new c(g.getParam("username")),this.resetSelection=function(e){return function(t){return e.selectable.set(t),a(".messages-box .message.selected").removeClass("selected"),e.selectedMessages=[],e.selectedRange=[],e.selectablePointer=null}}(this),this.selectMessages=function(e){return function(t){var n,o,i,r;return e.selectablePointer===t&&e.selectedRange.length>0?e.selectedRange=[]:(o=ChatMessage.findOne(e.selectablePointer),i=ChatMessage.findOne(t),r=f.min([o.ts,i.ts]),n=f.max([o.ts,i.ts]),e.selectedRange=f.pluck(ChatMessage.find({rid:o.rid,ts:{$gte:r,$lte:n}}).fetch(),"_id"))}}(this),this.getSelectedMessages=function(e){return function(){var t,n,o,i,r,a,s;for(r=e.selectedMessages,t=!1,s=e.selectedRange,n=0,o=s.length;o>n;n++)if(i=s[n],-1===r.indexOf(i)){t=!0;break}return a=f.compact(t?f.uniq(e.selectedMessages.concat(e.selectedRange)):f.difference(e.selectedMessages,e.selectedRange))}}(this),this.setUserDetail=function(e){return function(t){return e.userDetail.set(t)}}(this),this.clearUserDetail=function(e){return function(){return e.userDetail.set(null)}}(this),e.call("getRoomRoles",this.data._id,function(e,t){var n,o,i,r;if(e)return toastr.error(e.reason);for(r=[],n=0,o=t.length;o>n;n++)i=t[n],delete i._id,r.push(RoomRoles.upsert({rid:i.rid,"u._id":i.u._id},i));return r}),RoomRoles.find({rid:this.data._id}).observe({added:function(e){return function(t){var n;return ChatMessage.update({rid:e.data._id,"u._id":null!=t&&null!=(n=t.u)?n._id:void 0},{$addToSet:{roles:t._id}},{multi:!0})}}(this),changed:function(e){return function(t,n){var o;return ChatMessage.update({rid:e.data._id,"u._id":null!=t&&null!=(o=t.u)?o._id:void 0},{$inc:{rerender:1}},{multi:!0})}}(this),removed:function(e){return function(t){var n;return ChatMessage.update({rid:e.data._id,"u._id":null!=t&&null!=(n=t.u)?n._id:void 0},{$pull:{roles:t._id}},{multi:!0})}}(this)})}),p.room.onDestroyed(function(){return window.removeEventListener("resize",this.onWindowResize)}),p.room.onRendered(function(){var t,n,o,i,s,u,c,d,p;return window.chatMessages||(window.chatMessages={}),window.chatMessages[r.get("openedRoom")]||(window.chatMessages[r.get("openedRoom")]=new ChatMessages),chatMessages[r.get("openedRoom")].init(this.firstNode),d=this.find(".wrapper"),p=this.find(".wrapper > ul"),o=this.find(".new-message"),s=this,t=a(".messages-container > .container-bars"),n=t.offset(),s.isAtBottom=function(){return d.scrollTop>=d.scrollHeight-d.clientHeight?(o.className="new-message not",!0):!1},s.sendToBottom=function(){return d.scrollTop=d.scrollHeight-d.clientHeight,o.className="new-message not"},s.checkIfScrollIsAtBottom=function(){return s.atBottom=s.isAtBottom(),readMessage.enable(),readMessage.read()},s.sendToBottomIfNecessary=function(){return s.atBottom===!0&&s.isAtBottom()!==!0?s.sendToBottom():void 0},s.sendToBottomIfNecessaryDebounced=f.debounce(s.sendToBottomIfNecessary,10),s.sendToBottomIfNecessary(),null==window.MutationObserver?p.addEventListener("DOMSubtreeModified",function(){return s.sendToBottomIfNecessaryDebounced()}):(i=new MutationObserver(function(e){return e.forEach(function(e){return s.sendToBottomIfNecessaryDebounced()})}),i.observe(p,{childList:!0})),s.onWindowResize=function(){return e.defer(function(){return s.sendToBottomIfNecessaryDebounced()})},window.addEventListener("resize",s.onWindowResize),d.addEventListener("mousewheel",function(){return s.atBottom=!1,e.defer(function(){return s.checkIfScrollIsAtBottom()})}),d.addEventListener("wheel",function(){return s.atBottom=!1,e.defer(function(){return s.checkIfScrollIsAtBottom()})}),d.addEventListener("touchstart",function(){return s.atBottom=!1}),d.addEventListener("touchend",function(){return e.defer(function(){return s.checkIfScrollIsAtBottom()}),e.setTimeout(function(){return s.checkIfScrollIsAtBottom()},1e3),e.setTimeout(function(){return s.checkIfScrollIsAtBottom()},2e3)}),a(".flex-tab-bar").on("click",function(t,n){return e.setTimeout(function(){return s.sendToBottomIfNecessaryDebounced()},100)}),u=f.throttle(function(){var e,o,i,r;return i=document.elementFromPoint(n.left+1,n.top+t.height()+1),null!=(null!=i?i.id:void 0)?(o=ChatMessage.findOne(i.id),null!=o?(r=ChatSubscription.findOne({rid:s.data._id}),e=ChatMessage.find({rid:s.data._id,ts:{$lt:o.ts,$gt:null!=r?r.ls:void 0}}).count(),s.unreadCount.set(e)):s.unreadCount.set(0)):void 0},300),readMessage.onRead(function(e){return e===s.data._id?s.unreadCount.set(0):void 0}),d.addEventListener("scroll",function(){return u()}),a.data(this.firstNode,"renderedAt",new Date),c=WebRTC.getInstanceByRoomId(s.data._id),null!=c?l.autorun(function(){var e;return(null!=(e=c.remoteItems.get())?e.length:void 0)>0&&(m.TabBar.setTemplate("membersList"),m.TabBar.openFlex()),null!=c.localUrl.get()?(m.TabBar.setTemplate("membersList"),m.TabBar.openFlex()):void 0}):void 0})}.call(this),function(){S="object"==typeof S?S:{};var e=S;p.roomSearch.helpers({roomIcon:function(){return"u"===this.type?"icon-at":"r"===this.type?m.roomTypes.getIcon(this.t):void 0},userStatus:function(){return"u"===this.type?"status-"+this.status:void 0}})}.call(this),function(){S="object"==typeof S?S:{};var t=S;p.secretURL.helpers({registrationAllowed:function(){var e;return"Secret URL"===m.settings.get("Accounts_RegistrationForm")&&(null!=(e=p.instance().hashIsValid)?e.get():void 0)},ready:function(){var e,t;return("function"==typeof(e=p.instance()).subscriptionsReady?e.subscriptionsReady():void 0)&&(null!=(t=p.instance().hashReady)?t.get():void 0)}}),p.secretURL.onCreated(function(){return this.subscribe("admin-settings"),this.hashIsValid=new c(!1),this.hashReady=new c(!1),e.call("checkRegistrationSecretURL",g.getParam("hash"),function(e){return function(t,n){return e.hashReady.set(!0),n?(r.set("loginDefaultState","register"),KonchatNotification.getDesktopPermission(),e.hashIsValid.set(!0)):e.hashIsValid.set(!1)}}(this))}),p.secretURL.onRendered(function(){return a("#initial-page-loading").remove()})}.call(this),function(){S="object"==typeof S?S:{};var t=S;this.mobileMessageMenu={show:function(e,t,n,o){var i,r,a,s,l,u,c;if(null!=(null!=(c=window.plugins)?c.actionsheet:void 0)){for(u={androidTheme:window.plugins.actionsheet.ANDROID_THEMES.THEME_HOLO_LIGHT,buttonLabels:["Report Abuse","Copy Message"],androidEnableCancelButton:!0,addCancelButtonWithLabel:R.__("Cancel")},r=[mobileMessageMenu.reportAbuse,mobileMessageMenu.copyMessage],a=m.MessageAction.getButtons(e,"message-mobile"),s=0,l=a.length;l>s;s++)i=a[s],"delete-message"===i.id?(u.addDestructiveButtonWithLabel=R.__(i.i18nLabel),r.unshift(i.action)):(r.push(i.action),u.buttonLabels.push(R.__(i.i18nLabel)));return window.plugins.actionsheet.show(u,function(i){return null!=r[i-1]?r[i-1].call(o,n,t,e):void 0})}},copyMessage:function(e,t,n){return cordova.plugins.clipboard.copy(n.msg),console.log("copyMessage",n.msg)},reportAbuse:function(t,n,o){return swal({title:"Report this message?",text:o.html,inputPlaceholder:"Why do you want to report?",type:"input",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:"Report!",cancelButtonText:R.__("Cancel"),closeOnConfirm:!1,html:!1},function(t){return t===!1?!1:""===t?(swal.showInputError("You need to write something!"),!1):(e.call("reportMessage",o,t),swal({title:"Report sent",text:"Thank you!",type:"success",timer:1e3,showConfirmButton:!1}))})}}}.call(this),function(){S="object"==typeof S?S:{};var t=S;this.spotlight={hide:function(){return a(".spotlight").addClass("hidden")},show:function(){return a(".spotlight").removeClass("hidden"),a(".spotlight input").focus()}},p.spotlight.helpers({autocompleteSettings:function(){return{limit:10,rules:[{collection:"UserAndRoom",subscription:"spotlight",field:"name",template:p.roomSearch,noMatchTemplate:p.roomSearchEmpty,matchAll:!0,sort:"name"}]}}}),p.spotlight.events({"autocompleteselect input":function(t,n,o){return"u"===o.type?e.call("createDirectMessage",o.username,function(e,n){return e?toastr.error(e.reason):null!=(null!=n?n.rid:void 0)?(g.go("direct",{username:o.username}),t.currentTarget.value=""):void 0}):"r"===o.type&&(g.go(g.path(m.roomTypes.getRouteLink(o.t,o))),t.currentTarget.value=""),spotlight.hide()}})}.call(this),function(){S="object"==typeof S?S:{};var e=S;p.videoButtons.helpers({videoAvaliable:function(){return null!=WebRTC.getInstanceByRoomId(r.get("openedRoom"))},videoActive:function(){var e;return null!=WebRTC.getInstanceByRoomId(r.get("openedRoom")).localUrl.get()||(null!=(e=WebRTC.getInstanceByRoomId(r.get("openedRoom")).remoteItems.get())?e.length:void 0)>0},callInProgress:function(){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).callInProgress.get()}}),p.videoButtons.events({"click .start-video-call":function(){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).startCall({audio:!0,video:!0})},"click .start-audio-call":function(){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).startCall({audio:!0})},"click .join-video-call":function(){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).joinCall({audio:!0,video:!0})},"click .join-audio-call":function(){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).joinCall({audio:!0})}})}.call(this),function(){S="object"==typeof S?S:{};var n=S;p.videoCall.onCreated(function(){return this.mainVideo=new c("$auto")}),p.videoCall.helpers({videoAvaliable:function(){return null!=WebRTC.getInstanceByRoomId(r.get("openedRoom"))},videoActive:function(){var e,t,n;return n=WebRTC.getInstanceByRoomId(r.get("openedRoom")),e=null!=this.overlay,e!==(null!=n?n.overlayEnabled.get():void 0)?!1:null!=n.localUrl.get()||(null!=(t=n.remoteItems.get())?t.length:void 0)>0},callInProgress:function(){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).callInProgress.get()},overlayEnabled:function(){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).overlayEnabled.get()},audioEnabled:function(){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).audioEnabled.get()},videoEnabled:function(){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).videoEnabled.get()},audioAndVideoEnabled:function(){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).audioEnabled.get()&&WebRTC.getInstanceByRoomId(r.get("openedRoom")).videoEnabled.get()},screenShareAvailable:function(){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).screenShareAvailable},screenShareEnabled:function(){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).screenShareEnabled.get()},remoteVideoItems:function(){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).remoteItems.get()},selfVideoUrl:function(){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).localUrl.get()},mainVideoUrl:function(){var e,t,n;return t=p.instance(),n=WebRTC.getInstanceByRoomId(r.get("openedRoom")),"$self"===t.mainVideo.get()?n.localUrl.get():"$auto"===t.mainVideo.get()?(e=n.remoteItems.get(),(null!=e?e.length:void 0)>0?e[0].url:n.localUrl.get()):null!=n.remoteItemsById.get()[t.mainVideo.get()]?n.remoteItemsById.get()[t.mainVideo.get()].url:void t.mainVideo.set("$auto")},mainVideoUsername:function(){var n,o,i,a,s;return a=p.instance(),s=WebRTC.getInstanceByRoomId(r.get("openedRoom")),"$self"===a.mainVideo.get()?t("you"):"$auto"===a.mainVideo.get()?(i=s.remoteItems.get(),(null!=i?i.length:void 0)>0?null!=(n=e.users.findOne(i[0].id))?n.username:void 0:t("you")):null!=s.remoteItemsById.get()[a.mainVideo.get()]?null!=(o=e.users.findOne(s.remoteItemsById.get()[a.mainVideo.get()].id))?o.username:void 0:void a.mainVideo.set("$auto")},usernameByUserId:function(t){var n;return null!=(n=e.users.findOne(t))?n.username:void 0}}),p.videoCall.events({"click .stop-call":function(){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).stop()},"click .video-item":function(e,t){return t.mainVideo.set(a(e.currentTarget).data("username"))},"click .disable-audio":function(e,t){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).disableAudio()},"click .enable-audio":function(e,t){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).enableAudio()},"click .disable-video":function(e,t){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).disableVideo()},"click .enable-video":function(e,t){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).enableVideo()},"click .disable-screen-share":function(e,t){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).disableScreenShare()},"click .enable-screen-share":function(e,t){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).enableScreenShare()},"click .disable-overlay":function(e,t){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).overlayEnabled.set(!1)},"click .enable-overlay":function(e,t){return WebRTC.getInstanceByRoomId(r.get("openedRoom")).overlayEnabled.set(!0)},"loadstart video[muted]":function(e){return e.currentTarget.muted=!0,e.currentTarget.volume=0}})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:ui"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.ecmascript.ECMAScript,o=Package["rocketchat:lib"].RocketChat,a=Package["kadira:flow-router"].FlowRouter,i=Package.templating.Template,r=Package.mongo.Mongo,u=Package["babel-runtime"].babelHelpers,c=Package["ecmascript-runtime"].Symbol,l=Package["ecmascript-runtime"].Map,m=Package["ecmascript-runtime"].Set,h=Package.promise.Promise,p=Package["tap:i18n"].TAPi18next,d=Package["tap:i18n"].TAPi18n,f=Package.blaze.Blaze,v=Package.blaze.UI,k=Package.blaze.Handlebars,g=Package.spacebars.Spacebars,T=Package.htmljs.HTML,w;(function(){o.roomTypes.add("l",5,{template:"livechat",icon:"icon-chat-empty",route:{name:"live",path:"/live/:name",action:function(e){openRoom("l",e.name),o.TabBar.showGroup("livechat","search")},link:function(e){return{name:e.name}}},condition:function(){return o.settings.get("Livechat_enabled")&&o.authz.hasAllPermission("view-l-room")}}),AccountBox.addItem({name:"Livechat",icon:"icon-chat-empty",href:"livechat-users",sideNav:"livechatFlex",condition:function(){return o.settings.get("Livechat_enabled")&&o.authz.hasAllPermission("view-livechat-manager")}}),o.TabBar.addButton({groups:["livechat"],id:"visitor-info",i18nTitle:"Visitor_Info",icon:"icon-info",template:"visitorInfo",order:0}),o.TabBar.addGroup("message-search",["livechat"]),o.TabBar.addGroup("starred-messages",["livechat"]),o.TabBar.addGroup("uploaded-files-list",["livechat"]),o.TabBar.addGroup("push-notifications",["livechat"])}).call(this),function(){w=a.group({prefix:"/livechat-manager",name:"livechat-manager"}),AccountBox.addRoute({name:"livechat-dashboard",path:"/dashboard",sideNav:"livechatFlex",i18nPageTitle:"Livechat_Dashboard",pageTemplate:"livechatDashboard"},w),AccountBox.addRoute({name:"livechat-users",path:"/users",sideNav:"livechatFlex",i18nPageTitle:"Livechat_Users",pageTemplate:"livechatUsers"},w),AccountBox.addRoute({name:"livechat-departments",path:"/departments",sideNav:"livechatFlex",i18nPageTitle:"Departments",pageTemplate:"livechatDepartments"},w),AccountBox.addRoute({name:"livechat-department-edit",path:"/departments/:_id/edit",sideNav:"livechatFlex",i18nPageTitle:"Edit_Department",pageTemplate:"livechatDepartmentForm"},w),AccountBox.addRoute({name:"livechat-department-new",path:"/departments/new",sideNav:"livechatFlex",i18nPageTitle:"New_Department",pageTemplate:"livechatDepartmentForm"},w),AccountBox.addRoute({name:"livechat-triggers",path:"/triggers",sideNav:"livechatFlex",i18nPageTitle:"Triggers",pageTemplate:"livechatTriggers"},w),AccountBox.addRoute({name:"livechat-installation",path:"/installation",sideNav:"livechatFlex",i18nPageTitle:"Installation",pageTemplate:"livechatInstallation"},w),AccountBox.addRoute({name:"livechat-appearance",path:"/appearance",sideNav:"livechatFlex",i18nPageTitle:"Appearance",pageTemplate:"livechatAppearance"},w),AccountBox.addRoute({name:"livechat-customfields",path:"/customfields",sideNav:"livechatFlex",i18nPageTitle:"Custom_Fields",pageTemplate:"livechatCustomFields"},w),AccountBox.addRoute({name:"livechat-customfield-edit",path:"/customfields/:_id/edit",sideNav:"livechatFlex",i18nPageTitle:"Edit_Custom_Field",pageTemplate:"livechatCustomFieldForm"},w),AccountBox.addRoute({name:"livechat-customfield-new",path:"/customfields/new",sideNav:"livechatFlex",i18nPageTitle:"New_Custom_Field",pageTemplate:"livechatCustomFieldForm"},w)}.call(this),function(){this.AgentUsers=new r.Collection("agentUsers")}.call(this),function(){this.LivechatCustomField=new r.Collection("rocketchat_livechat_custom_field")}.call(this),function(){this.LivechatDepartment=new r.Collection("rocketchat_livechat_department")}.call(this),function(){this.LivechatDepartmentAgents=new r.Collection("rocketchat_livechat_department_agents")}.call(this),function(){this.LivechatPageVisited=new r.Collection("rocketchat_livechat_page_visited")}.call(this),function(){this.LivechatTrigger=new r.Collection("rocketchat_livechat_trigger")}.call(this),function(){e.methods({"livechat:changeLivechatStatus":function(){if(!e.userId())throw new e.Error("error-not-authorized","Not authorized");var t=e.user(),n="available"===t.statusLivechat?"not-available":"available";e.users.update(t._id,{$set:{statusLivechat:n}})}})}.call(this),function(){i.__checkName("livechatAppearance"),i.livechatAppearance=new i("Template.livechatAppearance",function(){var e=this;return[T.DIV({"class":"livechat-settings-div"},"\n ",T.H2(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Settings")})),"\n\n ",T.FORM({"class":"rocket-form"},"\n ",T.DIV({"class":"input-line"},"\n ",T.LABEL({"for":"title"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Title")})),"\n ",T.INPUT({type:"text","class":"preview-settings",name:"title",value:function(){return g.mustache(e.lookup("title"))}}),"\n "),"\n ",T.DIV({"class":"input-line"},"\n ",T.LABEL({"for":"color"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Title_bar_color")})),"\n ",T.INPUT({type:"text","class":"preview-settings minicolors",name:"color",value:function(){return g.mustache(e.lookup("color"))}}),"\n "),"\n ",T.DIV({"class":"submit"},"\n ",T.BUTTON({"class":"button secondary reset-settings"},T.Raw('<i class="icon-ccw"></i>'),f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Reset")})),"\n ",T.BUTTON({"class":"button"},T.Raw('<i class="icon-floppy"></i>'),f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Save")})),"\n "),"\n "),"\n "),"\n\n ",T.DIV({"class":"livechat-preview-div"},"\n ",T.H2(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Preview")})),"\n\n ",T.SELECT({"class":"preview-mode"},"\n ",T.OPTION({value:"opened"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Opened")})),"\n ",T.OPTION({value:"closed"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Closed")})),"\n "),"\n\n ",T.DIV({"class":function(){return["livechat-preview ",g.mustache(e.lookup("previewState"))]}},"\n ",T.DIV({"class":"preview-wrapper"},"\n ",g.With(function(){return g.call(e.lookup("sampleData"))},function(){return["\n ",T.DIV({"class":"livechat-room"},"\n ",T.DIV({"class":"title",style:function(){return["background-color:",g.mustache(e.lookup("color"))]}},"\n ",T.DIV({"class":"toolbar"},"\n ",T.CharRef({html:" ",str:" "}),"\n ",T.I({"class":"popout icon-link-ext",title:"Open in a new window"}),"\n "),"\n ",T.H1(f.View("lookup:title",function(){return g.mustache(e.lookup("title"))})),"\n "),"\n ",T.DIV({"class":"messages"},"\n ",T.DIV({"class":"wrapper"},"\n ",T.UL("\n ",f.Each(function(){return g.call(e.lookup("messages"))},function(){return["\n ",T.LI({id:function(){return g.mustache(e.lookup("_id"))},"class":function(){return["message ",g.mustache(e.lookup("sequential"))]},"data-username":function(){return g.mustache(g.dot(e.lookup("u"),"username"))},"data-date":function(){return g.mustache(e.lookup("date"))}},"\n ",T.SPAN({"class":"thumb thumb-small","data-username":function(){return g.mustache(g.dot(e.lookup("u"),"username"))},tabindex:"1"},f._TemplateWith(function(){return{username:g.call(g.dot(e.lookup("u"),"username"))}},function(){return g.include(e.lookupTemplate("avatar"))})),"\n ",T.SPAN({"class":"user","data-username":function(){return g.mustache(g.dot(e.lookup("u"),"username"))},tabindex:"1"},f.View("lookup:u.username",function(){return g.mustache(g.dot(e.lookup("u"),"username"))})),"\n ",T.SPAN({"class":"info"},"\n ",T.SPAN({"class":"time"},f.View("lookup:time",function(){return g.mustache(e.lookup("time"))})),"\n "),"\n ",T.DIV({"class":"body",dir:"auto"},"\n ",f.View("lookup:body",function(){return g.makeRaw(g.mustache(e.lookup("body")))}),"\n "),"\n "),"\n "]}),"\n "),"\n "),"\n "),"\n ",T.DIV({"class":"footer"},"\n ",T.DIV({"class":"input-wrapper"},"\n ",T.TEXTAREA({"class":"input-message",placeholder:"Type your message"}),"\n "),"\n ",T.I({"class":"send-button icon-paper-plane","aria-label":function(){return g.mustache(e.lookup("_"),"Send")}}),"\n "),"\n "),"\n "]}),"\n "),"\n "),"\n ")]})}.call(this),function(){i.livechatAppearance.helpers({previewState:function(){return i.instance().previewState.get()},color:function(){return i.instance().color.get()},title:function(){return i.instance().title.get()},sampleData:function(){return{color:o.settings.get("Livechat_title_color"),title:o.settings.get("Livechat_title"),messages:[{_id:Random.id(),u:{username:"guest"},time:moment(this.ts).format("LT"),date:moment(this.ts).format("LL"),body:"Hello",sequential:null},{_id:Random.id(),u:{username:"rocketchat-agent"},time:moment(this.ts).format("LT"),date:moment(this.ts).format("LL"),body:"Hey, what can I help you with?",sequential:null},{_id:Random.id(),u:{username:"guest"},time:moment(this.ts).format("LT"),date:moment(this.ts).format("LL"),body:"I'm looking for informations about your product.",sequential:null},{_id:Random.id(),u:{username:"rocketchat-agent"},time:moment(this.ts).format("LT"),date:moment(this.ts).format("LL"),body:"Our product is open source, you can do what you want with it! =D",sequential:null},{_id:Random.id(),u:{username:"guest"},time:moment(this.ts).format("LT"),date:moment(this.ts).format("LL"),body:"Yay, thanks. That's awesome.",sequential:null},{_id:Random.id(),u:{username:"rocketchat-agent"},time:moment(this.ts).format("LT"),date:moment(this.ts).format("LL"),body:"You're welcome.",sequential:null}]}}}),i.livechatAppearance.onCreated(function(){var e=this;this.previewState=new ReactiveVar("opened"),this.title=new ReactiveVar(null),this.color=new ReactiveVar(null),this.autorun(function(){e.title.set(o.settings.get("Livechat_title"))}),this.autorun(function(){e.color.set(o.settings.get("Livechat_title_color"))})}),i.livechatAppearance.events({"change .preview-mode":function(e,t){t.previewState.set(e.currentTarget.value)},"change .preview-settings, keyup .preview-settings":function(e,t){t[e.currentTarget.name].set(e.currentTarget.value)},"click .reset-settings":function(e,t){e.preventDefault(),t.title.set(o.settings.get("Livechat_title")),t.color.set(o.settings.get("Livechat_title_color")),t.$("input.preview-settings[name=color]").minicolors("value",t.color.get())},"submit .rocket-form":function(e,n){e.preventDefault();var a=[{_id:"Livechat_title",value:n.title.get()},{_id:"Livechat_title_color",value:n.color.get()}];o.settings.batchSet(a,function(e){return e?toastr.error(t("Error_updating_settings")):void toastr.success(t("Settings_updated"))})}}),i.livechatAppearance.onRendered(function(){e.setTimeout(function(){$("input.minicolors").minicolors({theme:"rocketchat",letterCase:"uppercase"})},500)})}.call(this),function(){i.__checkName("livechatCustomFields"),i.livechatCustomFields=new i("Template.livechatCustomFields",function(){var e=this;return[T.DIV({"class":"list"},"\n ",T.TABLE("\n ",T.THEAD("\n ",T.TR("\n ",T.TH({width:"25%"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Field")})),"\n ",T.TH({width:"25%"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Label")})),"\n ",T.TH({width:"25%"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Scope")})),"\n ",T.TH({width:"25%"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Visibility")})),"\n ",T.TH(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Delete")})),"\n "),"\n "),"\n ",T.TBODY("\n ",f.Each(function(){return g.call(e.lookup("customFields"))},function(){return["\n ",T.TR({"class":"custom-field-info","data-id":function(){return g.mustache(e.lookup("_id"))}},"\n ",T.TD(f.View("lookup:_id",function(){return g.mustache(e.lookup("_id"))})),"\n ",T.TD(f.View("lookup:label",function(){return g.mustache(e.lookup("label"))})),"\n ",T.TD(f.View("lookup:scope",function(){return g.mustache(e.lookup("scope"))})),"\n ",T.TD(f.View("lookup:visibility",function(){return g.mustache(e.lookup("visibility"))})),"\n ",T.TD(T.A({href:"#remove","class":"remove-custom-field"},T.I({"class":"icon-trash"}))),"\n "),"\n "]}),"\n "),"\n "),"\n "),"\n ",T.A({href:function(){return g.mustache(e.lookup("pathFor"),"livechat-customfield-new")},"class":"button primary"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"New_Custom_Field")}))]})}.call(this),function(){i.livechatCustomFields.helpers({customFields:function(){return LivechatCustomField.find()}}),i.livechatCustomFields.events({"click .remove-custom-field":function(n){var o=this;n.preventDefault(),n.stopPropagation(),swal({title:t("Are_you_sure"),type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:t("Yes"),cancelButtonText:t("Cancel"),closeOnConfirm:!1,html:!1},function(){e.call("livechat:removeCustomField",o._id,function(e){return e?toastr.error(t(e.reason||e.error)):void swal({title:t("Removed"),text:t("Field_removed"),type:"success",timer:1e3,showConfirmButton:!1})})})},"click .custom-field-info":function(e){e.preventDefault(),a.go("livechat-customfield-edit",{_id:this._id})}}),i.livechatCustomFields.onCreated(function(){this.subscribe("livechat:customFields")})}.call(this),function(){i.__checkName("livechatCustomFieldForm"),i.livechatCustomFieldForm=new i("Template.livechatCustomFieldForm",function(){var e=this;return T.FORM({id:"customField-form","data-id":function(){return g.mustache(g.dot(e.lookup("customField"),"_id"))}},"\n ",T.DIV({"class":"rocket-form"},"\n ",f.If(function(){return g.call(e.templateInstance().subscriptionsReady())},function(){return["\n ",T.FIELDSET("\n ",T.DIV({"class":"input-line"},"\n ",T.LABEL(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Field")})),"\n ",T.DIV("\n ",T.INPUT({type:"text",name:"field",value:function(){return g.mustache(g.dot(e.lookup("customField"),"_id"))},readonly:function(){return g.mustache(e.lookup("$exists"),g.dot(e.lookup("customField"),"_id"))},placeholder:function(){return g.mustache(e.lookup("_"),"Field")}}),"\n "),"\n "),"\n ",T.DIV({"class":"input-line"},"\n ",T.LABEL(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Label")})),"\n ",T.DIV("\n ",T.INPUT({type:"text",name:"label",value:function(){return g.mustache(g.dot(e.lookup("customField"),"label"))},placeholder:function(){return g.mustache(e.lookup("_"),"Label")}}),"\n "),"\n "),"\n ",T.DIV({"class":"input-line"},"\n ",T.LABEL(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Scope")})),"\n ",T.DIV("\n ",T.SELECT({name:"scope"},"\n ",T.OPTION({value:"visitor",selected:function(){return g.mustache(e.lookup("$eq"),g.dot(e.lookup("customField"),"scope"),"visitor")}},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Visitor")})),"\n ",T.OPTION({value:"room",selected:function(){return g.mustache(e.lookup("$eq"),g.dot(e.lookup("customField"),"scope"),"room")}},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Room")})),"\n "),"\n "),"\n "),"\n ",T.DIV({"class":"input-line"},"\n ",T.LABEL(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Visibility")})),"\n ",T.DIV("\n ",T.SELECT({name:"visibility"},"\n ",T.OPTION({value:"visible",selected:function(){return g.mustache(e.lookup("$eq"),g.dot(e.lookup("customField"),"visibility"),"visible")}},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Visible")})),"\n ",T.OPTION({value:"hidden",selected:function(){return g.mustache(e.lookup("$eq"),g.dot(e.lookup("customField"),"visibility"),"hidden")}},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Hidden")})),"\n "),"\n "),"\n "),"\n "),"\n ",T.DIV({"class":"submit"},"\n ",T.BUTTON({type:"button","class":"button secondary back"},T.I({"class":"icon-left-big"}),T.SPAN(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Back")}))),"\n ",T.BUTTON({"class":"button save"},T.I({"class":"icon-floppy"}),T.SPAN(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Save")}))),"\n "),"\n "]},function(){return["\n ",g.include(e.lookupTemplate("loading")),"\n "]}),"\n "),"\n ")})}.call(this),function(){i.livechatCustomFieldForm.helpers({customField:function(){return i.instance().customField.get()}}),i.livechatCustomFieldForm.events({"submit #customField-form":function(n,o){n.preventDefault();var i=o.$("button.save"),r=$(n.currentTarget).data("id"),u=o.$("input[name=field]").val(),c=o.$("input[name=label]").val(),s=o.$("select[name=scope]").val(),l=o.$("select[name=visibility]").val();if(!/^[0-9a-zA-Z-_]+$/.test(u))return toastr.error(t("error-invalid-custom-field-name"));if(""===c.trim())return toastr.error(t("Please_fill_a_label"));var m=i.html();i.html(t("Saving"));var h={field:u,label:c,scope:s.trim(),visibility:l.trim()};e.call("livechat:saveCustomField",r,h,function(e){return i.html(m),e?toastr.error(t(e.error)):(toastr.success(t("Saved")),void a.go("livechat-customfields"))})},"click button.back":function(e){e.preventDefault(),a.go("livechat-customfields")}}),i.livechatCustomFieldForm.onCreated(function(){var e=this;this.customField=new ReactiveVar({}),this.autorun(function(){var t=e.subscribe("livechat:customFields",a.getParam("_id"));if(t.ready()){var n=LivechatCustomField.findOne({_id:a.getParam("_id")});n&&e.customField.set(n)}})})}.call(this),function(){i.__checkName("livechatDashboard"),i.livechatDashboard=new i("Template.livechatDashboard",function(){var e=this;return T.Raw("<h1>Dashboard</h1>")})}.call(this),function(){i.__checkName("livechatDepartmentForm"),i.livechatDepartmentForm=new i("Template.livechatDepartmentForm",function(){var e=this;return T.FORM({id:"department-form","data-id":function(){return g.mustache(g.dot(e.lookup("department"),"_id"))}},"\n ",T.DIV({"class":"rocket-form"},"\n ",f.If(function(){return g.call(e.templateInstance().subscriptionsReady())},function(){return["\n ",T.FIELDSET("\n ",T.DIV({"class":"input-line"},"\n ",T.LABEL(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Enabled")})),"\n ",T.DIV("\n ",T.LABEL(T.INPUT({type:"radio",name:"enabled",value:"1",checked:function(){return g.mustache(e.lookup("$eq"),g.dot(e.lookup("department"),"enabled"),!0)}})," ",f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Yes")})),"\n ",T.LABEL(T.INPUT({type:"radio",name:"enabled",value:"0",checked:function(){return g.mustache(e.lookup("$eq"),g.dot(e.lookup("department"),"enabled"),!1)}})," ",f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"No")})),"\n "),"\n "),"\n ",T.DIV({"class":"input-line"},"\n ",T.LABEL(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Name")})),"\n ",T.DIV("\n ",T.INPUT({type:"text",name:"name",value:function(){return g.mustache(g.dot(e.lookup("department"),"name"))},placeholder:function(){return g.mustache(e.lookup("_"),"Name")}}),"\n "),"\n "),"\n ",T.DIV({"class":"input-line"},"\n ",T.LABEL(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Description")})),"\n ",T.DIV("\n ",T.TEXTAREA({name:"description",rows:"6",value:function(){return g.mustache(g.dot(e.lookup("department"),"description"))}}),"\n "),"\n "),"\n ",T.HR(),"\n ",T.H2(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Agents")})),"\n\n ",T.FIELDSET("\n ",T.LEGEND(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Available_agents")})),"\n\n ",T.UL({"class":"department-agents available-agents"},"\n ",f.Each(function(){return g.call(e.lookup("availableAgents"))},function(){return["\n ",T.LI(T.I({"class":"icon-plus-circled"}),f.View("lookup:username",function(){return g.mustache(e.lookup("username"))})),"\n "]}),"\n "),"\n "),"\n\n ",T.FIELDSET("\n ",T.LEGEND(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Selected_agents")})),"\n\n ",T.DIV({"class":"list"},"\n ",T.TABLE("\n ",T.THEAD("\n ",T.TR("\n ",T.TH({width:"25%"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Username")})),"\n ",T.TH(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Count")})),"\n ",T.TH(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Order")})),"\n ",T.TH(T.CharRef({html:" ",str:" "})),"\n "),"\n "),"\n ",T.TBODY("\n ",f.If(function(){return g.call(e.lookup("selectedAgents"))},function(){return["\n ",f.Each(function(){return g.call(e.lookup("selectedAgents"))},function(){return["\n ",T.TR({"class":"agent-info"},"\n ",T.TD(f.View("lookup:username",function(){return g.mustache(e.lookup("username"))})),"\n ",T.TD(T.INPUT({type:"text","class":function(){return["count-",g.mustache(e.lookup("agentId"))]},name:"count",value:function(){return g.mustache(e.lookup("count"))},size:"3"})),"\n ",T.TD(T.INPUT({type:"text","class":function(){return["order-",g.mustache(e.lookup("agentId"))]},name:"order",value:function(){return g.mustache(e.lookup("order"))},size:"3"})),"\n ",T.TD(T.A({href:"#remove","class":"remove-agent"},T.I({"class":"icon-trash"}))),"\n "),"\n "]}),"\n "]},function(){return["\n ",T.TR("\n ",T.TD({colspan:"4"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"There_are_no_agents_added_to_this_department_yet")})),"\n "),"\n "]}),"\n "),"\n "),"\n "),"\n\n "),"\n\n "),"\n ",T.DIV({"class":"submit"},"\n ",T.BUTTON({type:"button","class":"button secondary back"},T.I({"class":"icon-left-big"}),T.SPAN(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Back")}))),"\n ",T.BUTTON({"class":"button save"},T.I({"class":"icon-floppy"}),T.SPAN(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Save")}))),"\n "),"\n "]},function(){return["\n ",g.include(e.lookupTemplate("loading")),"\n "]}),"\n "),"\n ")})}.call(this),function(){i.livechatDepartmentForm.helpers({department:function(){return i.instance().department.get()},agents:function(){return i.instance().department&&!_.isEmpty(i.instance().department.get())?i.instance().department.get().agents:[]},selectedAgents:function(){return _.sortBy(i.instance().selectedAgents.get(),"username")},availableAgents:function(){var e=_.pluck(i.instance().selectedAgents.get(),"username");return AgentUsers.find({username:{$nin:e}},{sort:{username:1}})}}),i.livechatDepartmentForm.events({"submit #department-form":function(n,o){n.preventDefault();var i=o.$("button.save"),r=$(n.currentTarget).data("id"),u=o.$("input[name=enabled]:checked").val(),c=o.$("input[name=name]").val(),s=o.$("textarea[name=description]").val();if("1"!==u&&"0"!==u)return toastr.error(t("Please_select_enabled_yes_or_no"));if(""===c.trim())return toastr.error(t("Please_fill_a_name"));var l=i.html();i.html(t("Saving"));var m={enabled:"1"===u?!0:!1,name:c.trim(),description:s.trim()},h=[];o.selectedAgents.get().forEach(function(e){e.count=o.$(".count-"+e.agentId).val(),e.order=o.$(".order-"+e.agentId).val(),h.push(e)}),e.call("livechat:saveDepartment",r,m,h,function(e){return i.html(l),e?toastr.error(t(e.reason||e.error)):(toastr.success(t("Saved")),void a.go("livechat-departments"))})},"click button.back":function(e){e.preventDefault(),a.go("livechat-departments")},"click .remove-agent":function(e,t){var n=this;e.preventDefault();var o=t.selectedAgents.get();o=_.reject(o,function(e){return e._id===n._id}),t.selectedAgents.set(o)},"click .available-agents li":function(e,t){var n=t.selectedAgents.get(),o=_.clone(this);o.agentId=this._id,delete o._id,n.push(o),t.selectedAgents.set(n)}}),i.livechatDepartmentForm.onCreated(function(){var e=this;this.department=new ReactiveVar({enabled:!0}),this.selectedAgents=new ReactiveVar([]),this.subscribe("livechat:agents"),this.autorun(function(){var t=e.subscribe("livechat:departments",a.getParam("_id"));t.ready()&&!function(){var t=LivechatDepartment.findOne({_id:a.getParam("_id")});t&&(e.department.set(t),e.subscribe("livechat:departmentAgents",t._id,function(){var n=[];LivechatDepartmentAgents.find({departmentId:t._id}).forEach(function(e){n.push(e)}),e.selectedAgents.set(n)}))}()})})}.call(this),function(){i.__checkName("livechatDepartments"),i.livechatDepartments=new i("Template.livechatDepartments",function(){var e=this;return[T.DIV({"class":"list"},"\n ",T.TABLE("\n ",T.THEAD("\n ",T.TR("\n ",T.TH({width:"25%"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Name")})),"\n ",T.TH({width:"25%"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Description")})),"\n ",T.TH({width:"25%"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Num_Agents")})),"\n ",T.TH({width:"25%"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Enabled")})),"\n ",T.TH(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Delete")})),"\n "),"\n "),"\n ",T.TBODY("\n ",f.Each(function(){return g.call(e.lookup("departments"))},function(){return["\n ",T.TR({"class":"department-info","data-id":function(){return g.mustache(e.lookup("_id"))}},"\n ",T.TD(f.View("lookup:name",function(){return g.mustache(e.lookup("name"))})),"\n ",T.TD(f.View("lookup:description",function(){return g.mustache(e.lookup("description"))})),"\n ",T.TD(f.View("lookup:numAgents",function(){return g.mustache(e.lookup("numAgents"))})),"\n ",T.TD(f.If(function(){return g.call(e.lookup("enabled"))},function(){return f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Yes")})},function(){return f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"No")})})),"\n ",T.TD(T.A({href:"#remove","class":"remove-department"},T.I({"class":"icon-trash"}))),"\n "),"\n "]}),"\n "),"\n "),"\n "),"\n\n ",T.A({href:function(){return g.mustache(e.lookup("pathFor"),"livechat-department-new")},"class":"button primary"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"New_Department")}))]})}.call(this),function(){i.livechatDepartments.helpers({departments:function(){return LivechatDepartment.find()}}),i.livechatDepartments.events({"click .remove-department":function(n){var o=this;n.preventDefault(),n.stopPropagation(),swal({title:t("Are_you_sure"),type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:t("Yes"),cancelButtonText:t("Cancel"),closeOnConfirm:!1,html:!1},function(){e.call("livechat:removeDepartment",o._id,function(e){return e?toastr.error(t(e.reason||e.error)):void swal({title:t("Removed"),text:t("Department_removed"),type:"success",timer:1e3,showConfirmButton:!1})})})},"click .department-info":function(e){e.preventDefault(),a.go("livechat-department-edit",{_id:this._id})}}),i.livechatDepartments.onCreated(function(){this.subscribe("livechat:departments")})}.call(this),function(){i.__checkName("livechatInstallation"),i.livechatInstallation=new i("Template.livechatInstallation",function(){var e=this;return[T.P(f.View("lookup:_",function(){return g.makeRaw(g.mustache(e.lookup("_"),"To_install_RocketChat_Livechat_in_your_website_copy_paste_this_code_above_the_last_body_tag_on_your_site"))})),"\n\n ",T.DIV({"class":"livechat-code"},"\n ",T.TEXTAREA({"class":"clipboard","data-clipboard-target":".livechat-code textarea",value:function(){return g.mustache(e.lookup("script"))}}),"\n ",T.BUTTON({"class":"button clipboard","data-clipboard-target":".livechat-code textarea"},T.Raw('<i class="icon-docs"></i>'),f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Copy_to_clipboard")})),"\n ")]})}.call(this),function(){i.livechatInstallation.helpers({script:function(){var e=s.rtrim(o.settings.get("Site_Url"),"/");return'<!-- Start of Rocket.Chat Livechat Script -->\n<script type="text/javascript">\n(function(w, d, s, u) {\n w.RocketChat = function(c) { w.RocketChat._.push(c) }; w.RocketChat._ = []; w.RocketChat.url = u;\n var h = d.getElementsByTagName(s)[0], j = d.createElement(s);\n j.async = true; j.src = \''+e+"/packages/rocketchat_livechat/assets/rocket-livechat.js';\n h.parentNode.insertBefore(j, h);\n})(window, document, 'script', '"+e+"/livechat');\n</script>\n<!-- End of Rocket.Chat Livechat Script -->"}})}.call(this),function(){i.__checkName("livechatTriggers"),i.livechatTriggers=new i("Template.livechatTriggers",function(){var e=this;return T.FORM({id:"trigger-form"},"\n ",T.DIV({"class":"rocket-form"},"\n ",T.FIELDSET("\n ",T.LEGEND(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Condition")})),"\n ",T.DIV({"class":"conditions"},"\n ",f.Each(function(){return g.call(e.lookup("conditions"))},function(){return["\n ",g.include(e.lookupTemplate("livechatTriggerCondition")),"\n "]}),"\n ",f.Unless(function(){return g.call(e.lookup("conditions"))},function(){return["\n ",g.include(e.lookupTemplate("livechatTriggerCondition")),"\n "]}),"\n "),"\n "),"\n ",T.FIELDSET("\n ",T.LEGEND(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Action")})),"\n ",T.DIV({"class":"actions"},"\n ",f.Each(function(){return g.call(e.lookup("actions"))},function(){return["\n ",g.include(e.lookupTemplate("livechatTriggerAction")),"\n "]}),"\n ",f.Unless(function(){return g.call(e.lookup("actions"))},function(){return["\n ",g.include(e.lookupTemplate("livechatTriggerAction")),"\n "]}),"\n "),"\n "),"\n ",T.DIV({"class":"submit"},"\n ",T.BUTTON({type:"button","class":"button red delete-trigger"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Delete")})),"\n ",T.BUTTON({"class":"button save"},T.Raw('<i class="icon-floppy"></i>'),T.SPAN(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Save")}))),"\n "),"\n "),"\n ")})}.call(this),function(){i.livechatTriggers.helpers({conditions:function(){var e=i.instance().trigger.get();return e?e.conditions:[]},actions:function(){var e=i.instance().trigger.get();return e?e.actions:[]}}),i.livechatTriggers.events({"submit #trigger-form":function(n,o){n.preventDefault();var a=o.$("button.save"),i=a.html();a.html(t("Saving"));var r={conditions:[],actions:[]};$(".each-condition").each(function(){r.conditions.push({name:$(".trigger-condition",this).val(),value:$("."+$(".trigger-condition",this).val()+"-value").val()})}),$(".each-action").each(function(){r.actions.push("send-message"===$(".trigger-action",this).val()?{name:$(".trigger-action",this).val(),params:{name:$("[name=send-message-name]",this).val(),msg:$("[name=send-message-msg]",this).val()}}:{name:$(".trigger-action",this).val(),value:$("."+$(".trigger-action",this).val()+"-value").val()})}),e.call("livechat:saveTrigger",r,function(e){return a.html(i),e?toastr.error(t(e.reason||e.error)):void toastr.success(t("Saved"))})},"click .delete-trigger":function(n){n.preventDefault(),swal({title:t("Are_you_sure"),type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:t("Yes"),cancelButtonText:t("Cancel"),closeOnConfirm:!1,html:!1},function(){e.call("livechat:removeTrigger",function(e){return e?toastr.error(t(e.reason||e.error)):void swal({title:t("Removed"),text:t("Trigger_removed"),type:"success",timer:1e3,showConfirmButton:!1})})})}}),i.livechatTriggers.onCreated(function(){var e=this;this.subscribe("livechat:trigger"),this.trigger=new ReactiveVar(null),this.autorun(function(){e.trigger.set(LivechatTrigger.findOne())})})}.call(this),function(){i.__checkName("livechatUsers"),i.livechatUsers=new i("Template.livechatUsers",function(){var e=this;return[T.H2(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Livechat_managers");
|
||
|
||
})),"\n ",T.FORM({id:"form-manager","class":"inline"},"\n ",T.LABEL(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Add_manager")})),"\n ",T.INPUT({type:"text",name:"username",placeholder:function(){return g.mustache(e.lookup("_"),"Enter_a_username")}}),"\n ",T.BUTTON({name:"add","class":"button primary"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Add")})),"\n "),"\n ",T.DIV({"class":"list"},"\n ",T.TABLE("\n ",T.THEAD("\n ",T.TR("\n ",T.TH(T.CharRef({html:" ",str:" "})),"\n ",T.TH({width:"34%"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Name")})),"\n ",T.TH({width:"33%"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Username")})),"\n ",T.TH({width:"33%"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"E-mail")})),"\n ",T.TH(T.CharRef({html:" ",str:" "})),"\n "),"\n "),"\n ",T.TBODY("\n ",f.Each(function(){return g.call(e.lookup("managers"))},function(){return["\n ",T.TR({"class":"user-info","data-id":function(){return g.mustache(e.lookup("_id"))}},"\n ",T.TD("\n ",T.DIV({"class":function(){return["user-image status-",g.mustache(e.lookup("status"))]}},"\n ",f._TemplateWith(function(){return{username:g.call(e.lookup("username"))}},function(){return g.include(e.lookupTemplate("avatar"))}),"\n "),"\n "),"\n ",T.TD(f.View("lookup:name",function(){return g.mustache(e.lookup("name"))})),"\n ",T.TD(f.View("lookup:username",function(){return g.mustache(e.lookup("username"))})),"\n ",T.TD(f.View("lookup:emailAddress",function(){return g.mustache(e.lookup("emailAddress"))})),"\n ",T.TD(T.A({href:"#remove","class":"remove-manager"},T.I({"class":"icon-trash"}))),"\n "),"\n "]}),"\n "),"\n "),"\n "),"\n ",T.H2(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Livechat_agents")})),"\n ",T.FORM({id:"form-agent","class":"inline"},"\n ",T.LABEL(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Add_agent")})),"\n ",T.INPUT({type:"text",name:"username",placeholder:function(){return g.mustache(e.lookup("_"),"Enter_a_username")}}),"\n ",T.BUTTON({name:"add","class":"button primary"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Add")})),"\n "),"\n ",T.DIV({"class":"list"},"\n ",T.TABLE("\n ",T.THEAD("\n ",T.TR("\n ",T.TH(T.CharRef({html:" ",str:" "})),"\n ",T.TH({width:"34%"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Name")})),"\n ",T.TH({width:"33%"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Username")})),"\n ",T.TH({width:"33%"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"E-mail")})),"\n ",T.TH(T.CharRef({html:" ",str:" "})),"\n "),"\n "),"\n ",T.TBODY("\n ",f.Each(function(){return g.call(e.lookup("agents"))},function(){return["\n ",T.TR({"class":"user-info","data-id":function(){return g.mustache(e.lookup("_id"))}},"\n ",T.TD("\n ",T.DIV({"class":function(){return["user-image status-",g.mustache(e.lookup("status"))]}},"\n ",f._TemplateWith(function(){return{username:g.call(e.lookup("username"))}},function(){return g.include(e.lookupTemplate("avatar"))}),"\n "),"\n "),"\n ",T.TD(f.View("lookup:name",function(){return g.mustache(e.lookup("name"))})),"\n ",T.TD(f.View("lookup:username",function(){return g.mustache(e.lookup("username"))})),"\n ",T.TD(f.View("lookup:emailAddress",function(){return g.mustache(e.lookup("emailAddress"))})),"\n ",T.TD(T.A({href:"#remove","class":"remove-agent"},T.I({"class":"icon-trash"}))),"\n "),"\n "]}),"\n "),"\n "),"\n ")]})}.call(this),function(){var n;e.startup(function(){n=new r.Collection("managerUsers")}),i.livechatUsers.helpers({managers:function(){return n.find({},{sort:{name:1}})},agents:function(){return AgentUsers.find({},{sort:{name:1}})},emailAddress:function(){return this.emails&&this.emails.length>0?this.emails[0].address:void 0}}),i.livechatUsers.events({"click .remove-manager":function(n){var o=this;n.preventDefault(),swal({title:t("Are_you_sure"),type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:t("Yes"),cancelButtonText:t("Cancel"),closeOnConfirm:!1,html:!1},function(){e.call("livechat:removeManager",o.username,function(e){return e?toastr.error(t(e.reason||e.error)):void swal({title:t("Removed"),text:t("Manager_removed"),type:"success",timer:1e3,showConfirmButton:!1})})})},"click .remove-agent":function(n){var o=this;n.preventDefault(),swal({title:t("Are_you_sure"),type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:t("Yes"),cancelButtonText:t("Cancel"),closeOnConfirm:!1,html:!1},function(){e.call("livechat:removeAgent",o.username,function(e){return e?toastr.error(t(e.reason||e.error)):void swal({title:t("Removed"),text:t("Agent_removed"),type:"success",timer:1e3,showConfirmButton:!1})})})},"submit #form-manager":function(n){if(n.preventDefault(),""===n.currentTarget.elements.username.value.trim())return toastr.error(t("Please_fill_a_username"));var o=n.currentTarget.elements.add.value;n.currentTarget.elements.add.value=t("Saving"),e.call("livechat:addManager",n.currentTarget.elements.username.value,function(e){return n.currentTarget.elements.add.value=o,e?toastr.error(t(e.reason||e.error)):(toastr.success(t("Manager_added")),void n.currentTarget.reset())})},"submit #form-agent":function(n){if(n.preventDefault(),""===n.currentTarget.elements.username.value.trim())return toastr.error(t("Please_fill_a_username"));var o=n.currentTarget.elements.add.value;n.currentTarget.elements.add.value=t("Saving"),e.call("livechat:addAgent",n.currentTarget.elements.username.value,function(e){return n.currentTarget.elements.add.value=o,e?toastr.error(t(e.reason||e.error)):(toastr.success(t("Agent_added")),void n.currentTarget.reset())})}}),i.livechatUsers.onCreated(function(){this.subscribe("livechat:agents"),this.subscribe("livechat:managers")})}.call(this),function(){i.__checkName("visitorInfo"),i.visitorInfo=new i("Template.visitorInfo",function(){var e=this;return T.DIV({"class":"content"},"\n ",T.DIV({"class":"user-view"},"\n\n ",g.With(function(){return g.call(e.lookup("user"))},function(){return["\n ",T.DIV({"class":"about clearfix"},"\n ",T.DIV({"class":"thumb"},"\n ",f._TemplateWith(function(){return{username:g.call(e.lookup("username"))}},function(){return g.include(e.lookupTemplate("avatar"))}),"\n "),"\n ",T.DIV({"class":"info"},"\n ",T.H3({title:function(){return g.mustache(e.lookup("username"))}},T.I({"class":function(){return["status-",g.mustache(e.lookup("status"))]}})," ",f.View("lookup:username",function(){return g.mustache(e.lookup("username"))})),"\n ",T.P(f.View("lookup:name",function(){return g.mustache(e.lookup("name"))})),"\n\n ",T.UL("\n ",f.If(function(){return g.call(e.lookup("utc"))},function(){return T.LI(T.I({"class":"icon-clock"}),f.View("lookup:userTime",function(){return g.mustache(e.lookup("userTime"))})," (UTC ",f.View("lookup:utc",function(){return g.mustache(e.lookup("utc"))}),")")}),"\n ",f.Each(function(){return g.call(e.lookup("emails"))},function(){return[" ",T.LI(T.I({"class":"icon-mail"})," ",f.View("lookup:address",function(){return g.mustache(e.lookup("address"))}),f.If(function(){return g.call(e.lookup("verified"))},function(){return[T.CharRef({html:" ",str:" "}),T.I({"class":"icon-ok"})]}))," "]}),"\n ",f.Each(function(){return g.call(e.lookup("phone"))},function(){return[" ",T.LI(T.I({"class":"icon-phone"})," ",f.View("lookup:phoneNumber",function(){return g.mustache(e.lookup("phoneNumber"))}))," "]}),"\n ",f.If(function(){return g.call(e.lookup("lastLogin"))},function(){return[" ",T.LI(T.I({"class":"icon-calendar"})," ",f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Created_at")}),": ",f.View("lookup:createdAt",function(){return g.mustache(e.lookup("createdAt"))}))," "]}),"\n ",f.If(function(){return g.call(e.lookup("lastLogin"))},function(){return[" ",T.LI(T.I({"class":"icon-calendar"})," ",f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Last_login")}),": ",f.View("lookup:lastLogin",function(){return g.mustache(e.lookup("lastLogin"))}))," "]}),"\n ",f.If(function(){return g.call(e.lookup("ip"))},function(){return T.LI(T.I({"class":"icon-laptop"}),T.SPAN(f.View("lookup:ip",function(){return g.mustache(e.lookup("ip"))})))}),"\n ",f.If(function(){return g.call(e.lookup("os"))},function(){return T.LI(T.I({"class":function(){return g.mustache(e.lookup("osIcon"))}}),T.SPAN(f.View("lookup:os",function(){return g.mustache(e.lookup("os"))})))}),"\n ",f.If(function(){return g.call(e.lookup("browser"))},function(){return T.LI(T.I({"class":function(){return g.mustache(e.lookup("browserIcon"))}}),T.SPAN(f.View("lookup:browser",function(){return g.mustache(e.lookup("browser"))})))}),"\n "),"\n "),"\n "),"\n "]}),"\n ",T.Raw('<nav>\n <!-- <button class="button pvt-msg"><span><i class="icon-forward"></i> {{_ "Forward"}}</span></button> -->\n </nav>'),"\n\n ",f.If(function(){return g.call(e.lookup("customFields"))},function(){return["\n ",T.H4(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Custom_Fields")})),"\n\n ",T.DIV({"class":"visitor-navigation"},"\n ",T.UL("\n ",f.Each(function(){return g.call(e.lookup("customFields"))},function(){return["\n ",T.LI(f.View("lookup:label",function(){return g.mustache(e.lookup("label"))}),": ",f.View("lookup:value",function(){return g.mustache(e.lookup("value"))})),"\n "]}),"\n "),"\n "),"\n "]}),"\n\n ",T.H4(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Navigation_History_20_last_pages")})),"\n\n ",T.DIV({"class":"visitor-navigation"},"\n ",f.If(function(){return g.call(e.lookup("loadingNavigation"))},function(){return["\n ",f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Loading...")}),"\n "]},function(){return["\n ",T.UL("\n ",f.Each(function(){return g.call(e.lookup("pageVisited"))},function(){return["\n ",T.LI(T.A({href:function(){return g.mustache(g.dot(e.lookup("page"),"location","href"))},target:"_blank",title:function(){return g.mustache(e.lookup("accessDateTime"))}},f.View("lookup:pageTitle",function(){return g.mustache(e.lookup("pageTitle"))}))),"\n "]}),"\n "),"\n "]}),"\n "),"\n "),"\n ")})}.call(this),function(){i.visitorInfo.helpers({user:function(){var t=e.users.findOne({"profile.token":i.instance().visitorToken.get()});if(t&&t.userAgent){var n=new UAParser;n.setUA(t.userAgent),t.os=n.getOS().name+" "+n.getOS().version,-1!==["Mac OS","iOS"].indexOf(n.getOS().name)?t.osIcon="icon-apple":t.osIcon="icon-"+n.getOS().name.toLowerCase(),t.browser=n.getBrowser().name+" "+n.getBrowser().version,t.browserIcon="icon-"+n.getBrowser().name.toLowerCase()}return t},loadingNavigation:function(){return!i.instance().pageVisited.ready()},customFields:function(){var t=[],n={},a=e.users.findOne({"profile.token":i.instance().visitorToken.get()});a&&(n=_.extend(n,a.livechatData));var r=i.currentData();if(r&&r.rid){var c=o.models.Rooms.findOne(r.rid);c&&(n=_.extend(n,c.livechatData))}if(!_.isEmpty(n)){for(var s in u.sanitizeForInObject(n))if(n.hasOwnProperty(s)){var l=i.instance().customFields.get();if(l){var m=_.findWhere(l,{_id:s});m&&"hidden"!==m.visibility&&t.push({label:m.label,value:n[s]})}}return t}},pageVisited:function(){return LivechatPageVisited.find({token:i.instance().visitorToken.get()},{sort:{ts:-1}})},pageTitle:function(){return this.page.title||t("Empty_title")},accessDateTime:function(){return moment(this.ts).format("L LTS")},createdAt:function(){return this.createdAt?moment(this.createdAt).format("L LTS"):""},lastLogin:function(){return this.lastLogin?moment(this.lastLogin).format("L LTS"):""}}),i.visitorInfo.onCreated(function(){var t=this;this.visitorToken=new ReactiveVar(null),this.customFields=new ReactiveVar([]),e.call("livechat:getCustomFields",function(e,n){n&&t.customFields.set(n)});var n=i.currentData();n&&n.rid&&(this.autorun(function(){var e=ChatRoom.findOne(n.rid);e&&e.v&&e.v.token?t.visitorToken.set(e.v.token):t.visitorToken.set()}),this.subscribe("livechat:visitorInfo",n.rid),this.pageVisited=this.subscribe("livechat:visitorPageVisited",n.rid))})}.call(this),function(){i.__checkName("livechat"),i.livechat=new i("Template.livechat",function(){var e=this;return T.DIV({"class":function(){return["livechat-section ",g.mustache(e.lookup("livechatAvailable"))]}},"\n ",T.H3({"class":function(){return g.mustache(e.lookup("isActive"))}},"\n ",f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Livechat")}),"\n\n ",g.With(function(){return g.call(e.lookup("available"))},function(){return["\n ",T.I({"class":function(){return["livechat-status ",g.mustache(e.lookup("status"))," ",g.mustache(e.lookup("icon"))]},title:function(){return g.mustache(e.lookup("hint"))}}),"\n "]}),"\n "),"\n ",T.UL("\n ",f.Each(function(){return g.call(e.lookup("rooms"))},function(){return["\n ",g.include(e.lookupTemplate("chatRoomItem")),"\n "]},function(){return["\n ",T.P({"class":"empty"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"No_livechats")})),"\n "]}),"\n "),"\n ")})}.call(this),function(){i.livechat.helpers({isActive:function(){return null!=ChatSubscription.findOne({t:"l",f:{$ne:!0},open:!0,rid:Session.get("openedRoom")},{fields:{_id:1}})?"active":void 0},rooms:function(){var t={t:"l",open:!0},n=e.user();return n&&n.settings&&n.settings.preferences&&n.settings.preferences.unreadRoomsMode&&(t.alert={$ne:!0}),ChatSubscription.find(t,{sort:{t:1,name:1}})},available:function(){var n=e.user();return{status:n.statusLivechat,icon:"available"===n.statusLivechat?"icon-toggle-on":"icon-toggle-off",hint:t("available"===n.statusLivechat?"Available":"Not_Available")}},livechatAvailable:function(){var t=e.user();return t?t.statusLivechat:void 0}}),i.livechat.events({"click .livechat-status":function(){e.call("livechat:changeLivechatStatus",function(e){return e?toastr.error(t(e.reason)):void 0})}})}.call(this),function(){i.__checkName("livechatFlex"),i.livechatFlex=new i("Template.livechatFlex",function(){var e=this;return[T.HEADER("\n ",T.DIV("\n ",T.H4(f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Livechat")})),"\n "),"\n "),"\n ",T.DIV({"class":"content"},"\n ",T.DIV({"class":"wrapper"},"\n ",T.UL({"class":"flex-list"},"\n ",T.LI("\n ",T.Raw('<!-- <a href="{{pathFor \'livechat-dashboard\'}}" class="{{active \'livechat-dashboard\'}}">{{_ "Dashboard"}}</a> -->'),"\n ",T.A({href:function(){return g.mustache(e.lookup("pathFor"),"livechat-users")},"class":function(){return g.mustache(e.lookup("active"),"livechat-users")}},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"User_management")})),"\n ",T.A({href:function(){return g.mustache(e.lookup("pathFor"),"livechat-departments")},"class":function(){return g.mustache(e.lookup("active"),"livechat-departments","livechat-department-edit")}},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Departments")})),"\n ",T.A({href:function(){return g.mustache(e.lookup("pathFor"),"livechat-triggers")},"class":function(){return g.mustache(e.lookup("active"),"livechat-triggers")}},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Triggers")})),"\n ",T.A({href:function(){return g.mustache(e.lookup("pathFor"),"livechat-customfields")},"class":function(){return g.mustache(e.lookup("active"),"livechat-customfields")}},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Custom_Fields")})),"\n ",T.A({href:function(){return g.mustache(e.lookup("pathFor"),"livechat-installation")},"class":function(){return g.mustache(e.lookup("active"),"livechat-installation")}},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Installation")})),"\n ",T.A({href:function(){return g.mustache(e.lookup("pathFor"),"livechat-appearance")},"class":function(){return g.mustache(e.lookup("active"),"livechat-appearance")}},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Appearance")})),"\n "),"\n "),"\n "),"\n ")]})}.call(this),function(){i.livechatFlex.helpers({active:function(){a.watchPathChange();for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return-1!==t.indexOf(a.current().route.name)?"active":void 0}}),i.livechatFlex.events({"mouseenter header":function(){SideNav.overArrow()},"mouseleave header":function(){SideNav.leaveArrow()},"click header":function(){SideNav.closeFlex()}})}.call(this),function(){i.__checkName("livechatTriggerAction"),i.livechatTriggerAction=new i("Template.livechatTriggerAction",function(){var e=this;return T.DIV({"class":"input-line each-action"},"\n ",T.DIV({"class":"trigger-option"},"\n ",T.SELECT({name:"action","class":"trigger-action"},"\n ",T.OPTION({value:"send-message"},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Send_a_message")})),"\n "),"\n "),"\n ",T.DIV({"class":"trigger-value"},"\n ",T.DIV({"class":function(){return["send-message ",g.mustache(e.lookup("hiddenValue"),"send-message")]}},"\n ",T.INPUT({type:"text",name:"send-message-name",placeholder:function(){return g.mustache(e.lookup("_"),"Name_of_agent")},value:function(){return g.mustache(g.dot(e.lookup("params"),"name"))},size:"15"}),"\n ",T.INPUT({type:"text",name:"send-message-msg",placeholder:function(){return g.mustache(e.lookup("_"),"Message")},value:function(){return g.mustache(g.dot(e.lookup("params"),"msg"))}}),"\n "),"\n "),"\n ")})}.call(this),function(){i.livechatTriggerAction.helpers({hiddenValue:function(e){return void 0===this.name&&i.instance().firstAction?(i.instance().firstAction=!1,""):this.name!==e?"hidden":void 0}}),i.livechatTriggerAction.events({"change .trigger-action":function(e,t){t.$(".trigger-action-value ").addClass("hidden"),t.$("."+e.currentTarget.value).removeClass("hidden")}}),i.livechatTriggerAction.onCreated(function(){this.firstAction=!0})}.call(this),function(){i.__checkName("livechatTriggerCondition"),i.livechatTriggerCondition=new i("Template.livechatTriggerCondition",function(){var e=this;return T.DIV({"class":"input-line each-condition"},"\n ",T.DIV({"class":"trigger-option"},"\n ",T.SELECT({name:"condition","class":"trigger-condition"},"\n ",T.OPTION({value:"page-url",selected:function(){return g.mustache(e.lookup("conditionSelected"),"page-url")}},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Visitor_page_URL")})),"\n ",T.OPTION({value:"time-on-site",selected:function(){return g.mustache(e.lookup("conditionSelected"),"time-on-site")}},f.View("lookup:_",function(){return g.mustache(e.lookup("_"),"Visitor_time_on_site")})),"\n "),"\n "),"\n ",T.DIV({"class":"trigger-value"},"\n ",T.DIV({"class":function(){return["page-url trigger-condition-value ",g.mustache(e.lookup("hiddenValue"),"page-url")]}},"\n ",T.INPUT({type:"text",name:"page-url-value","class":"page-url-value",placeholder:function(){return g.mustache(e.lookup("_"),"Enter_a_regex")},value:function(){return g.mustache(e.lookup("valueFor"),"page-url")}}),"\n "),"\n ",T.DIV({"class":function(){return["time-on-site trigger-condition-value ",g.mustache(e.lookup("hiddenValue"),"time-on-site")]}},"\n ",T.INPUT({type:"number",name:"time-on-site-value","class":"time-on-site-value",placeholder:function(){return g.mustache(e.lookup("_"),"Time_in_seconds")},value:function(){return g.mustache(e.lookup("valueFor"),"time-on-site")}}),"\n "),"\n "),"\n ")})}.call(this),function(){i.livechatTriggerCondition.helpers({hiddenValue:function(e){return void 0===this.name&&i.instance().firstCondition?(i.instance().firstCondition=!1,""):this.name!==e?"hidden":void 0},conditionSelected:function(e){return this.name===e?"selected":void 0},valueFor:function(e){return this.name===e?this.value:void 0}}),i.livechatTriggerCondition.events({"change .trigger-condition":function(e,t){t.$(".trigger-condition-value ").addClass("hidden"),t.$("."+e.currentTarget.value).removeClass("hidden")}}),i.livechatTriggerCondition.onCreated(function(){this.firstCondition=!0})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:livechat"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package["ddp-rate-limiter"].DDPRateLimiter,a=Package["kadira:flow-router"].FlowRouter,t=Package["rocketchat:lib"].RocketChat,r=Package.templating.Template,i=Package["tap:i18n"].TAPi18next,o=Package["tap:i18n"].TAPi18n,u=Package.blaze.Blaze,l=Package.blaze.UI,s=Package.blaze.Handlebars,c=Package.spacebars.Spacebars,m=Package.htmljs.HTML,p,_;(function(){p="object"==typeof p?p:{};var e=p;_={}}).call(this),function(){p="object"==typeof p?p:{};var e=p;t.AdminBox.addOption({href:"mailer",i18nLabel:"Mailer",permissionGranted:function(){return t.authz.hasAllPermission("access-mailer")}})}.call(this),function(){p="object"==typeof p?p:{};var n=p;a.route("/mailer",{name:"mailer",action:function(){return t.TabBar.showGroup("mailer"),BlazeLayout.render("main",{center:"mailer"})}}),a.route("/mailer/unsubscribe/:_id/:createdAt",{name:"mailer-unsubscribe",action:function(n){return e.call("Mailer:unsubscribe",n._id,n.createdAt),BlazeLayout.render("mailerUnsubscribe")}})}.call(this),function(){r.__checkName("mailer"),r.mailer=new r("Template.mailer",function(){var e=this;return m.SECTION({"class":"page-container page-list"},"\n ",m.HEAD({"class":"fixed-title"},"\n ",c.include(e.lookupTemplate("burger")),"\n ",m.H2("\n ",m.SPAN({"class":"room-title"},u.View("lookup:_",function(){return c.mustache(e.lookup("_"),"Mailer")})),"\n "),"\n "),"\n ",m.DIV({"class":"content"},"\n ",u.Unless(function(){return c.dataMustache(e.lookup("hasPermission"),"access-mailer")},function(){return["\n ",m.P(u.View("lookup:_",function(){return c.mustache(e.lookup("_"),"You_are_not_authorized_to_view_this_page")})),"\n "]},function(){return["\n ",m.FORM("\n ",m.DIV({"class":"rocket-form"},"\n ",m.FIELDSET("\n ",m.DIV({"class":"input-line"},"\n ",m.LABEL(u.View("lookup:_",function(){return c.mustache(e.lookup("_"),"Email_from")})),"\n ",m.DIV("\n ",m.INPUT({type:"text",name:"from",value:"",placeholder:function(){return c.mustache(e.lookup("fromEmail"))}}),"\n "),"\n ",m.DIV("\n ",m.SMALL({"class":"settings-description"},u.View("lookup:_",function(){return c.makeRaw(c.mustache(e.lookup("_"),"From_email_warning"))})),"\n "),"\n "),"\n ",m.DIV({"class":"input-line"},"\n ",m.LABEL(u.View("lookup:_",function(){return c.mustache(e.lookup("_"),"Dry_run")})),"\n ",m.DIV("\n ",m.INPUT({type:"checkbox",name:"dryrun",value:"1"}),"\n "),"\n ",m.DIV("\n ",m.SMALL({"class":"settings-description"},u.View("lookup:_",function(){return c.makeRaw(c.mustache(e.lookup("_"),"Dry_run_description"))})),"\n "),"\n "),"\n ",m.DIV({"class":"input-line"},"\n ",m.LABEL(u.View("lookup:_",function(){return c.mustache(e.lookup("_"),"Query")})),"\n ",m.DIV("\n ",m.INPUT({type:"text",name:"query",value:""}),"\n "),"\n ",m.DIV("\n ",m.SMALL({"class":"settings-description"},u.View("lookup:_",function(){return c.makeRaw(c.mustache(e.lookup("_"),"Query_description"))})),"\n "),"\n "),"\n ",m.DIV({"class":"input-line"},"\n ",m.LABEL(u.View("lookup:_",function(){return c.mustache(e.lookup("_"),"Email_subject")})),"\n ",m.DIV("\n ",m.INPUT({type:"text",name:"subject",value:""}),"\n "),"\n "),"\n ",m.DIV({"class":"input-line"},"\n ",m.LABEL(u.View("lookup:_",function(){return c.mustache(e.lookup("_"),"Email_body")})),"\n ",m.DIV("\n ",m.TEXTAREA({name:"body",rows:"10",style:"height: auto"}),"\n "),"\n ",m.DIV("\n ",m.SMALL({"class":"settings-description"},u.View("lookup:_",function(){return c.makeRaw(c.mustache(e.lookup("_"),"Mailer_body_tags"))})),"\n "),"\n "),"\n "),"\n ",m.DIV({"class":"submit"},"\n ",m.BUTTON({"class":"button send"},m.I({"class":"icon-send"}),m.SPAN(u.View("lookup:_",function(){return c.mustache(e.lookup("_"),"Send_email")}))),"\n "),"\n "),"\n "),"\n "]}),"\n "),"\n ")})}.call(this),function(){p="object"==typeof p?p:{};var n=p;r.mailer.helpers({fromEmail:function(){return t.settings.get("From_Email")}}),r.mailer.events({"click .send":function(n,a){var t,r,i,u,l;return n.preventDefault(),i=$(a.find("[name=from]")).val(),l=$(a.find("[name=subject]")).val(),t=$(a.find("[name=body]")).val(),r=$(a.find("[name=dryrun]:checked")).val(),u=$(a.find("[name=query]")).val(),i?-1===t.indexOf("[unsubscribe]")?void toastr.error(o.__("You_must_provide_the_unsubscribe_link")):e.call("Mailer.sendMail",i,l,t,r,u,function(e){return e?toastr.error(e.reason):toastr.success(o.__("The_emails_are_being_sent"))}):void toastr.error(o.__("From_email_is_required"))}})}.call(this),function(){r.__checkName("mailerUnsubscribe"),r.mailerUnsubscribe=new r("Template.mailerUnsubscribe",function(){var e=this;return m.SECTION({"class":"full-page"},"\n ",m.DIV({"class":"wrapper"},"\n ",m.Raw('<header>\n <a class="logo" href="/">\n <img src="images/logo/logo.svg?v=3">\n </a>\n </header>'),"\n ",m.DIV({"class":"cms-page"},"\n ",u.View("lookup:_",function(){return c.mustache(e.lookup("_"),"You_have_successfully_unsubscribed")}),"\n "),"\n "),"\n ")})}.call(this),function(){p="object"==typeof p?p:{};var e=p;r.mailerUnsubscribe.onRendered(function(){return $("#initial-page-loading").remove()})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:mailer"]={Mailer:_}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a=Package.underscore._,n=Package.templating.Template,s=Package["underscorestring:underscore.string"].s,c=Package["rocketchat:lib"].RocketChat,t=Package.blaze.Blaze,l=Package.blaze.UI,o=Package.blaze.Handlebars,r=Package.spacebars.Spacebars,p=Package["tap:i18n"].TAPi18next,g=Package["tap:i18n"].TAPi18n,i=Package.htmljs.HTML,k;(function(){k="object"==typeof k?k:{};var n=k,s;s=function(){function e(e){var n,s;if(n=e,!a.isString(e)){if(!a.trim(null!=e?e.html:void 0))return e;n=e.html}return a.isString(e)?n=n.replace(/(^|>|[ >_*~])\`([^`\r\n]+)\`([<_*~]|\B|\b|$)/gm,'$1<span class="copyonly">`</span><span><code class="inline">$2</code></span><span class="copyonly">`</span>$3'):(null==e.tokens&&(e.tokens=[]),n=n.replace(/(^|>|[ >_*~])\`([^`\r\n]+)\`([<_*~]|\B|\b|$)/gm,function(a,n,s,c,t,l){var o;return o="$"+Random.id()+"$",e.tokens.push({token:o,text:n+'<span class="copyonly">`</span><span><code class="inline">'+s+'</code></span><span class="copyonly">`</span>'+c}),o})),s=c.settings.get("Markdown_SupportSchemesForLink").split(",").join("|"),n=n.replace(new RegExp("!\\[([^\\]]+)\\]\\(((?:"+s+"):\\/\\/[^\\)]+)\\)","gm"),'<a href="$2" title="$1" class="swipebox" target="_blank"><div class="inline-image" style="background-image: url($2);"></div></a>'),n=n.replace(new RegExp("\\[([^\\]]+)\\]\\(((?:"+s+"):\\/\\/[^\\)]+)\\)","gm"),'<a href="$2" target="_blank">$1</a>'),n=n.replace(new RegExp("(?:<|<)((?:"+s+"):\\/\\/[^\\|]+)\\|(.+?)(?=>|>)(?:>|>)","gm"),'<a href="$1" target="_blank">$2</a>'),c.settings.get("Markdown_Headers")&&(n=n.replace(/^# (([\w\d-_\/\*\.,\\] ?)+)/gm,"<h1>$1</h1>"),n=n.replace(/^## (([\w\d-_\/\*\.,\\] ?)+)/gm,"<h2>$1</h2>"),n=n.replace(/^### (([\w\d-_\/\*\.,\\] ?)+)/gm,"<h3>$1</h3>"),n=n.replace(/^#### (([\w\d-_\/\*\.,\\] ?)+)/gm,"<h4>$1</h4>")),n=n.replace(/(^|>|[ >_~`])\*{1,2}([^\*\r\n]+)\*{1,2}([<_~`]|\B|\b|$)/gm,'$1<span class="copyonly">*</span><strong>$2</strong><span class="copyonly">*</span>$3'),n=n.replace(/(^|>|[ >*~`])\_([^\_\r\n]+)\_([<*~`]|\B|\b|$)/gm,'$1<span class="copyonly">_</span><em>$2</em><span class="copyonly">_</span>$3'),n=n.replace(/(^|>|[ >_*`])\~{1,2}([^~\r\n]+)\~{1,2}([<_*`]|\B|\b|$)/gm,'$1<span class="copyonly">~</span><strike>$2</strike><span class="copyonly">~</span>$3'),n=n.replace(/(?:>){3}\n+([\s\S]*?)\n+(?:<){3}/g,'<blockquote><span class="copyonly">>>></span>$1<span class="copyonly"><<<</span></blockquote>'),n=n.replace(/^>(.*)$/gm,'<blockquote><span class="copyonly">></span>$1</blockquote>'),n=n.replace(/\s*<blockquote>/gm,"<blockquote>"),n=n.replace(/<\/blockquote>\s*/gm,"</blockquote>"),n=n.replace(/<\/blockquote>\n<blockquote>/gm,"</blockquote><blockquote>"),a.isString(e)?e=n:e.html=n,("undefined"!=typeof window&&null!==window?window.rocketDebug:void 0)&&console.log("Markdown",e),e}return e}(),c.callbacks.add("renderMessage",s,c.callbacks.priority.HIGH),c.Markdown=s,e.isClient&&t.registerHelper("RocketChatMarkdown",function(e){return c.Markdown(e)})}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:markdown"]={}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,e=Package["rocketchat:lib"].RocketChat,t=Package["tap:i18n"].TAPi18next,c=Package["tap:i18n"].TAPi18n,n;(function(){n="object"==typeof n?n:{};var t=n,c;c=function(){function e(e,t,c){var n;"me"===e&&_.trim(t)&&(n=c,n.msg="_"+t+"_",a.call("sendMessage",n))}return e}(),e.slashCommands.add("me",c,{description:"Displays_action_text",params:"your message"})}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:me"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package["rocketchat:lib"].RocketChat,a=Package["tap:i18n"].TAPi18next,t=Package["tap:i18n"].TAPi18n,l;(function(){l="object"==typeof l?l:{};var a=l,t;t=function(){function a(a){var t,l,i,c,r,s,o;return _.trim(a.html)&&(c=a.html,i=[],s=new RegExp("(?:^|\\s|\\n)(?:@)("+n.settings.get("UTF8_Names_Validation")+")","g"),a.msg.replace(s,function(e,n){return i.push(n)}),l=null!=(o=e.user())?o.username:void 0,0!==i.length&&(i=_.unique(i),i=i.join("|"),c=c.replace(new RegExp("(?:^|\\s|\\n)(@("+i+"):?)[:.,s]?","g"),function(e,n,t){var i;return"all"===t?e.replace(n,'<a class="mention-link mention-link-me mention-link-all">'+n+"</a>"):null==a.temp&&null==_.findWhere(a.mentions,{username:t})?e:(i="mention-link",t===l&&(i+=" mention-link-me"),e.replace(n,'<a class="'+i+'" data-username="'+t+'">'+n+"</a>"))})),t=[],r=new RegExp("(?:^|\\s|\\n)(?:#)("+n.settings.get("UTF8_Names_Validation")+")","g"),a.msg.replace(r,function(e,n){return t.push(n)}),0!==t.length&&(t=_.unique(t),t=t.join("|"),c=c.replace(new RegExp("(?:^|\\s|\\n)(#("+t+"))[:.,s]?","g"),function(e,n,t){return null==a.temp&&null==_.findWhere(a.channels,{name:t})?e:e.replace(n,'<a class="mention-link" data-channel="'+t+'">'+n+"</a>")})),a.html=c),a}return a}(),n.callbacks.add("renderMessage",t),n.callbacks.add("renderMentions",t)}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:mentions"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.underscore._,t=Package["rocketchat:lib"].RocketChat,o=Package.templating.Template,a=Package["tap:i18n"].TAPi18next,s=Package["tap:i18n"].TAPi18n,i=Package.blaze.Blaze,r=Package.blaze.UI,c=Package.blaze.Handlebars,u=Package.spacebars.Spacebars,l=Package.htmljs.HTML,d;(function(){d="object"==typeof d?d:{};var n=d;this.MentionedMessage=new e.Collection("rocketchat_mentioned_message")}).call(this),function(){o.__checkName("mentionsFlexTab"),o.mentionsFlexTab=new o("Template.mentionsFlexTab",function(){var e=this;return l.DIV({"class":"content"},"\n ",l.DIV({"class":"list-view mentioned-messages-list"},"\n ",l.DIV({"class":"title"},"\n ",l.H2(i.View("lookup:_",function(){return u.mustache(e.lookup("_"),"Mentions")})),"\n "),"\n ",i.If(function(){return u.call(e.templateInstance().subscriptionsReady())},function(){return["\n ",i.Unless(function(){return u.call(e.lookup("hasMessages"))},function(){return["\n ",l.H2(i.View("lookup:_",function(){return u.mustache(e.lookup("_"),"No_mentions_found")})),"\n "]}),"\n "]}),"\n "),"\n ",l.UL({"class":"mentioned-messages-list list clearfix"},"\n ",i.Each(function(){return u.call(e.lookup("messages"))},function(){return["\n ",i._TemplateWith(function(){return u.dataMustache(e.lookup("nrrargs"),"message",e.lookup("."))},function(){return u.include(e.lookupTemplate("nrr"),function(){return null})}),"\n "]}),"\n ",i.If(function(){return u.call(e.lookup("hasMore"))},function(){return["\n ",l.LI({"class":"load-more"},"\n ",i.If(function(){return u.call(e.templateInstance().subscriptionsReady())},function(){return["\n ",l.A(i.View("lookup:_",function(){return u.mustache(e.lookup("_"),"Has_more")}),"..."),"\n "]},function(){return["\n ",l.DIV({"class":"load-more-loading"},i.View("lookup:_",function(){return u.mustache(e.lookup("_"),"Loading...")})),"\n "]}),"\n "),"\n "]}),"\n "),"\n ")})}.call(this),function(){d="object"==typeof d?d:{};var e=d;o.mentionsFlexTab.helpers({hasMessages:function(){return MentionedMessage.find({rid:this.rid},{sort:{ts:-1}}).count()>0},messages:function(){return MentionedMessage.find({rid:this.rid},{sort:{ts:-1}})},notReadySubscription:function(){return o.instance().subscriptionsReady()?void 0:"notready"},hasMore:function(){return o.instance().hasMore.get()}}),o.mentionsFlexTab.onCreated(function(){return this.hasMore=new ReactiveVar(!0),this.limit=new ReactiveVar(50),this.autorun(function(e){return function(){return e.subscribe("mentionedMessages",e.data.rid,e.limit.get(),function(){return MentionedMessage.find({rid:e.data.rid}).count()<e.limit.get()?e.hasMore.set(!1):void 0})}}(this))}),o.mentionsFlexTab.events({"click .message-cog":function(e){var n,a,s,r,c;return e.stopPropagation(),e.preventDefault(),c=$(e.currentTarget).closest(".message").attr("id"),$(".message-dropdown:visible").hide(),$(".mentioned-messages-list #"+c+" .message-dropdown").remove(),r=MentionedMessage.findOne(c),n=t.MessageAction.getButtons(r,"mentions"),s=i.toHTMLWithData(o.messageDropdown,{actions:n}),$(".mentioned-messages-list #"+c+" .message-cog-container").append(s),a=$(".mentioned-messages-list #"+c+" .message-dropdown"),a.show()},"scroll .content":n.throttle(function(e,n){return e.target.scrollTop>=e.target.scrollHeight-e.target.clientHeight&&n.hasMore.get()?n.limit.set(n.limit.get()+50):void 0},200)})}.call(this),function(){d="object"==typeof d?d:{};var n=d;e.startup(function(){return t.MessageAction.addButton({id:"jump-to-message",icon:"icon-right-hand",i18nLabel:"Jump_to_message",context:["mentions"],action:function(e,n){var t;return t=this._arguments[1],$(".message-dropdown:visible").hide(),RoomHistoryManager.getSurroundingMessages(t,50)},validation:function(e){return e.mentionedList===!0},order:100})})}.call(this),function(){d="object"==typeof d?d:{};var n=d;e.startup(function(){return t.TabBar.addButton({groups:["channel","privategroup"],id:"mentions",i18nTitle:"Mentions",icon:"icon-at",template:"mentionsFlexTab",order:3})})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:mentions-flextab"]={}}();
|
||
|
||
!function(){var n=Package.meteor.Meteor,t=Package.templating.Template,o=Package.underscore._,e=Package["rocketchat:lib"].RocketChat,u=Package.blaze.Blaze,a=Package.blaze.UI,l=Package.blaze.Handlebars,r=Package.spacebars.Spacebars,c=Package["tap:i18n"].TAPi18next,i=Package["tap:i18n"].TAPi18n,s=Package.htmljs.HTML,f;(function(){t.__checkName("messageAttachment"),t.messageAttachment=new t("Template.messageAttachment",function(){var n=this;return s.DIV({"class":"attachment"},s.Raw("\n <!-- <div>fallback: {{fallback}}</div> -->\n "),u.View("lookup:pretext",function(){return r.mustache(n.lookup("pretext"))}),"\n ",s.DIV({"class":"attachment-block"},"\n ",s.DIV({"class":"attachment-block-border",style:function(){return["background-color: ",r.mustache(n.lookup("color"))]}}),"\n\n ",u.If(function(){return r.call(n.lookup("author_name"))},function(){return["\n ",u.If(function(){return r.call(n.lookup("author_link"))},function(){return["\n ",s.DIV({"class":"attachment-author"},"\n ",u.If(function(){return r.call(n.lookup("author_icon"))},function(){return["\n ",s.IMG({src:function(){return r.mustache(n.lookup("fixCordova"),n.lookup("author_icon"))}}),"\n "]}),"\n ",s.A({href:function(){return r.mustache(n.lookup("fixCordova"),n.lookup("author_link"))},target:"_blank"},u.View("lookup:author_name",function(){return r.mustache(n.lookup("author_name"))})),"\n "),"\n "]},function(){return["\n ",s.DIV({"class":"attachment-author"},"\n ",u.If(function(){return r.call(n.lookup("author_icon"))},function(){return["\n ",s.IMG({src:function(){return r.mustache(n.lookup("fixCordova"),n.lookup("author_icon"))}}),"\n "]}),"\n ",u.View("lookup:author_name",function(){return r.mustache(n.lookup("author_name"))}),"\n "),"\n "]}),"\n "]}),"\n ",u.If(function(){return r.call(n.lookup("title"))},function(){return["\n ",s.DIV({"class":"attachment-title"},"\n ",u.If(function(){return r.call(n.lookup("title_link"))},function(){return["\n ",s.A({href:function(){return r.mustache(n.lookup("fixCordova"),n.lookup("title_link"))},target:"_blank"},u.View("lookup:title",function(){return r.mustache(n.lookup("title"))})),"\n ",u.If(function(){return r.call(n.lookup("title_link_download"))},function(){return["\n ",s.A({"class":"icon-download attachment-download-icon",href:function(){return r.mustache(n.lookup("fixCordova"),n.lookup("title_link"))},target:"_blank",download:""}),"\n "]}),"\n "]},function(){return["\n ",u.View("lookup:title",function(){return r.mustache(n.lookup("title"))}),"\n "]}),"\n ",u.If(function(){return r.call(n.lookup("collapsed"))},function(){return["\n ",s.SPAN({"class":"collapse-switch icon-right-dir","data-index":function(){return r.mustache(n.lookup("index"))},"data-collapsed":function(){return r.mustache(n.lookup("collapsed"))}}),"\n "]},function(){return["\n ",s.SPAN({"class":"collapse-switch icon-down-dir","data-index":function(){return r.mustache(n.lookup("index"))},"data-collapsed":function(){return r.mustache(n.lookup("collapsed"))}}),"\n "]}),"\n "),"\n "]}),"\n ",s.DIV({"class":"attachment-flex"},"\n ",u.If(function(){return r.call(n.lookup("thumb_url"))},function(){return["\n ",s.DIV({"class":"attachment-thumb"},"\n ",s.IMG({src:function(){return r.mustache(n.lookup("fixCordova"),n.lookup("thumb_url"))}}),"\n "),"\n "]}),"\n\n ",u.If(function(){return r.call(n.lookup("text"))},function(){return["\n ",s.DIV({"class":"attachment-flex-column-grow attachment-text"},"\n ",u.View("lookup:parsedText",function(){return r.makeRaw(r.mustache(n.lookup("parsedText")))}),"\n "),"\n "]}),"\n "),"\n\n ",u.If(function(){return r.call(n.lookup("image_url"))},function(){return["\n ",u.Unless(function(){return r.call(n.lookup("collapsed"))},function(){return["\n ",s.DIV({"class":"attachment-image"},"\n ",u.If(function(){return r.call(n.lookup("loadImage"))},function(){return["\n ",s.A({href:function(){return r.mustache(n.lookup("fixCordova"),n.lookup("image_url"))},"class":"swipebox",target:"_blank"},"\n ",s.DIV({"class":"inline-image",style:function(){return["background-image: url('",r.mustache(n.lookup("fixCordova"),n.lookup("image_url")),"');"]}},"\n ",s.IMG({src:function(){return r.mustache(n.lookup("fixCordova"),n.lookup("image_url"))},height:function(){return r.mustache(n.lookup("getImageHeight"),r.dot(n.lookup("image_dimensions"),"height"))}}),"\n "),"\n "),"\n "]},function(){return["\n ",s.DIV({"class":"image-to-download","data-url":function(){return r.mustache(n.lookup("image_url"))}},"\n ",s.I({"class":"icon-picture"}),"\n ",s.DIV("click to load"),"\n "),"\n "]}),"\n "),"\n "]}),"\n "]}),"\n\n ",u.If(function(){return r.call(n.lookup("audio_url"))},function(){return["\n ",u.Unless(function(){return r.call(n.lookup("collapsed"))},function(){return["\n ",s.DIV({"class":"attachment-audio"},"\n ",s.AUDIO({controls:""},"\n ",s.SOURCE({src:function(){return r.mustache(n.lookup("fixCordova"),n.lookup("audio_url"))},type:function(){return r.mustache(n.lookup("audio_type"))}}),"\n Your browser does not support the audio element.\n "),"\n "),"\n "]}),"\n "]}),"\n\n ",u.If(function(){return r.call(n.lookup("video_url"))},function(){return["\n ",u.Unless(function(){return r.call(n.lookup("collapsed"))},function(){return["\n ",s.DIV({"class":"attachment-video"},"\n ",s.VIDEO({controls:"","class":"inline-video"},"\n ",s.SOURCE({src:function(){return r.mustache(n.lookup("fixCordova"),n.lookup("video_url"))},type:function(){return r.mustache(n.lookup("video_type"))}}),"\n Your browser does not support the video element.\n "),"\n "),"\n "]}),"\n "]}),"\n\n ",u.If(function(){return r.call(n.lookup("fields"))},function(){return["\n ",s.DIV({"class":"attachment-fields"},"\n ",u.Each(function(){return r.call(n.lookup("fields"))},function(){return["\n ",u.Unless(function(){return r.call(n.lookup("short"))},function(){return["\n ",s.DIV({"class":"attachment-field"},"\n ",s.DIV({"class":"attachment-field-title"},u.View("lookup:title",function(){return r.mustache(n.lookup("title"))})),"\n ",u.View("lookup:RocketChatMarkdown",function(){return r.makeRaw(r.mustache(n.lookup("RocketChatMarkdown"),n.lookup("value")))}),"\n "),"\n "]}),"\n "]}),"\n ",u.Each(function(){return r.call(n.lookup("fields"))},function(){return["\n ",u.If(function(){return r.call(n.lookup("short"))},function(){return["\n ",s.DIV({"class":"attachment-field attachment-field-short"},"\n ",s.DIV({"class":"attachment-field-title"},u.View("lookup:title",function(){return r.mustache(n.lookup("title"))})),"\n ",u.View("lookup:RocketChatMarkdown",function(){return r.makeRaw(r.mustache(n.lookup("RocketChatMarkdown"),n.lookup("value")))}),"\n "),"\n "]}),"\n "]}),"\n "),"\n "]}),"\n "),"\n ")})}).call(this),function(){f="object"==typeof f?f:{};var o=f;t.messageAttachment.helpers({fixCordova:function(t){var o;return n.isCordova&&"/"===(null!=t?t[0]:void 0)&&(t=n.absoluteUrl().replace(/\/$/,"")+t,o="rc_uid="+n.userId()+"&rc_token="+n._localStorage.getItem("Meteor.loginToken"),t=-1===t.indexOf("?")?t+"?"+o:t+"&"+o),t},parsedText:function(){return renderMessageBody({msg:this.text})},loadImage:function(){var t,o,e,u,a,l;return(null!=(t=n.user())&&null!=(o=t.settings)&&null!=(e=o.preferences)?e.autoImageLoad:void 0)===!1&&null!=this.downloadImages==!1?!1:n.Device.isPhone()&&(null!=(u=n.user())&&null!=(a=u.settings)&&null!=(l=a.preferences)?l.saveMobileBandwidth:void 0)&&null!=this.downloadImages==!1?!1:!0},getImageHeight:function(n){return n||200},color:function(){switch(this.color){case"good":return"#35AC19";case"warning":return"#FCB316";case"danger":return"#D30230";default:return this.color}},collapsed:function(){var t,o,e;return null!=this.collapsed?this.collapsed:(null!=(t=n.user())&&null!=(o=t.settings)&&null!=(e=o.preferences)?e.collapseMediaByDefault:void 0)===!0}})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:message-attachments"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.underscore._,s=Package["rocketchat:lib"].RocketChat,t=Package.templating.Template,i=Package["tap:i18n"].TAPi18next,a=Package["tap:i18n"].TAPi18n,o=Package.blaze.Blaze,r=Package.blaze.UI,c=Package.blaze.Handlebars,u=Package.spacebars.Spacebars,g=Package.htmljs.HTML,l;(function(){l="object"==typeof l?l:{};var n=l;this.PinnedMessage=new e.Collection("rocketchat_pinned_message")}).call(this),function(){l="object"==typeof l?l:{};var n=l;e.startup(function(){return s.MessageAction.addButton({id:"pin-message",icon:"icon-pin",i18nLabel:"Pin_Message",context:["pinned","message","message-mobile"],action:function(n,s){var t;return t=this._arguments[1],t.pinned=!0,e.call("pinMessage",t,function(e,n){return e?toastr.error(e.reason):void 0})},validation:function(e){return e.pinned||!s.settings.get("Message_AllowPinning")?!1:s.authz.hasAtLeastOnePermission("pin-message",e.rid)},order:20}),s.MessageAction.addButton({id:"unpin-message",icon:"icon-pin rotate-45",i18nLabel:"Unpin_Message",context:["pinned","message","message-mobile"],action:function(n,s){var t;return t=this._arguments[1],t.pinned=!1,e.call("unpinMessage",t,function(e,n){return e?toastr.error(e.reason):void 0})},validation:function(e){return e.pinned&&s.settings.get("Message_AllowPinning")?s.authz.hasAtLeastOnePermission("pin-message",e.rid):!1},order:21}),s.MessageAction.addButton({id:"jump-to-pin-message",icon:"icon-right-hand",i18nLabel:"Jump_to_message",context:["pinned"],action:function(e,n){var s;return s=this._arguments[1],$(".message-dropdown:visible").hide(),RoomHistoryManager.getSurroundingMessages(s,50)},order:100})})}.call(this),function(){e.startup(function(){s.MessageTypes.registerType({id:"message_pinned",system:!0,message:"Pinned_a_message"})})}.call(this),function(){l="object"==typeof l?l:{};var n=l;e.methods({pinMessage:function(n){if(!e.userId())throw new e.Error("invalid-user","[methods] pinMessage -> Invalid user");if(!s.settings.get("Message_AllowPinning"))throw new e.Error("message-pinning-not-allowed","[methods] pinMessage -> Message pinning not allowed");return ChatMessage.update({_id:n._id},{$set:{pinned:!0}})},unpinMessage:function(n){if(!e.userId())throw new e.Error("invalid-user","[methods] pinMessage -> Invalid user");if(!s.settings.get("Message_AllowPinning"))throw new e.Error("message-pinning-not-allowed","[methods] pinMessage -> Message pinning not allowed");return ChatMessage.update({_id:n._id},{$set:{pinned:!1}})}})}.call(this),function(){l="object"==typeof l?l:{};var n=l;e.startup(function(){return Tracker.autorun(function(){return s.settings.get("Message_AllowPinning")?s.TabBar.addButton({groups:["channel","privategroup","directmessage"],id:"pinned-messages",i18nTitle:"Pinned_Messages",icon:"icon-pin",template:"pinnedMessages",order:10}):s.TabBar.removeButton("pinned-messages")})})}.call(this),function(){t.__checkName("pinnedMessages"),t.pinnedMessages=new t("Template.pinnedMessages",function(){var e=this;return g.DIV({"class":"content"},"\n ",g.DIV({"class":"list-view pinned-messages-list"},"\n ",g.DIV({"class":"title"},"\n ",g.H2(o.View("lookup:_",function(){return u.mustache(e.lookup("_"),"Pinned_Messages")})),"\n "),"\n ",o.If(function(){return u.call(e.templateInstance().subscriptionsReady())},function(){return["\n ",o.Unless(function(){return u.call(e.lookup("hasMessages"))},function(){return["\n ",g.H2(o.View("lookup:_",function(){return u.mustache(e.lookup("_"),"No_pinned_messages")})),"\n "]}),"\n "]}),"\n "),"\n ",g.UL({"class":"list clearfix"},"\n ",o.Each(function(){return u.call(e.lookup("messages"))},function(){return["\n ",o._TemplateWith(function(){return u.dataMustache(e.lookup("nrrargs"),"message",e.lookup("."))},function(){return u.include(e.lookupTemplate("nrr"),function(){return null})}),"\n "]}),"\n ",o.If(function(){return u.call(e.lookup("hasMore"))},function(){return["\n ",g.LI({"class":"load-more"},"\n ",o.If(function(){return u.call(e.templateInstance().subscriptionsReady())},function(){return["\n ",g.A(o.View("lookup:_",function(){return u.mustache(e.lookup("_"),"Has_more")}),"..."),"\n "]},function(){return["\n ",g.DIV({"class":"load-more-loading"},o.View("lookup:_",function(){return u.mustache(e.lookup("_"),"Loading...")})),"\n "]}),"\n "),"\n "]}),"\n "),"\n ")})}.call(this),function(){l="object"==typeof l?l:{};var e=l;t.pinnedMessages.helpers({hasMessages:function(){return PinnedMessage.find({rid:this.rid},{sort:{ts:-1}}).count()>0},messages:function(){return PinnedMessage.find({rid:this.rid},{sort:{ts:-1}})},hasMore:function(){return t.instance().hasMore.get()}}),t.pinnedMessages.onCreated(function(){return this.hasMore=new ReactiveVar(!0),this.limit=new ReactiveVar(50),this.autorun(function(e){return function(){var n;return n=t.currentData(),e.subscribe("pinnedMessages",n.rid,e.limit.get(),function(){return PinnedMessage.find({rid:n.rid}).count()<e.limit.get()?e.hasMore.set(!1):void 0})}}(this))}),t.pinnedMessages.events({"click .message-cog":function(e){var n,i,a,r,c;return e.stopPropagation(),e.preventDefault(),c=$(e.currentTarget).closest(".message").attr("id"),$(".message-dropdown:visible").hide(),$(".pinned-messages-list #"+c+" .message-dropdown").remove(),r=PinnedMessage.findOne(c),n=s.MessageAction.getButtons(r,"pinned"),a=o.toHTMLWithData(t.messageDropdown,{actions:n}),$(".pinned-messages-list #"+c+" .message-cog-container").append(a),i=$(".pinned-messages-list #"+c+" .message-dropdown"),i.show()},"scroll .content":n.throttle(function(e,n){return e.target.scrollTop>=e.target.scrollHeight-e.target.clientHeight&&n.hasMore.get()?n.limit.set(n.limit.get()+50):void 0},200)})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:message-pin"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.underscore._,s=Package["rocketchat:lib"].RocketChat,a=Package.templating.Template,r=Package["tap:i18n"].TAPi18next,n=Package["tap:i18n"].TAPi18n,o=Package.blaze.Blaze,i=Package.blaze.UI,c=Package.blaze.Handlebars,u=Package.spacebars.Spacebars,l=Package.htmljs.HTML,g;(function(){g="object"==typeof g?g:{};var t=g;this.StarredMessage=new e.Collection("rocketchat_starred_message")}).call(this),function(){g="object"==typeof g?g:{};var t=g;e.startup(function(){return s.MessageAction.addButton({id:"star-message",icon:"icon-star-empty",i18nLabel:"Star_Message",context:["starred","message","message-mobile"],action:function(t,s){var a;return a=this._arguments[1],a.starred=e.userId(),e.call("starMessage",a,function(e,t){return e?toastr.error(e.reason):void 0})},validation:function(e){return s.settings.get("Message_AllowStarring")&&!e.starred},order:10}),s.MessageAction.addButton({id:"unstar-message",icon:"icon-star",i18nLabel:"Unstar_Message",context:["starred","message","message-mobile"],action:function(t,s){var a;return a=this._arguments[1],a.starred=!1,e.call("starMessage",a,function(e,t){return e?toastr.error(e.reason):void 0})},validation:function(e){return s.settings.get("Message_AllowStarring")&&e.starred},order:10}),s.MessageAction.addButton({id:"jump-to-star-message",icon:"icon-right-hand",i18nLabel:"Jump_to_message",context:["starred"],action:function(e,t){var s;return s=this._arguments[1],$(".message-dropdown:visible").hide(),RoomHistoryManager.getSurroundingMessages(s,50)},order:100})})}.call(this),function(){g="object"==typeof g?g:{};var t=g;e.methods({starMessage:function(t){if(!e.userId())throw new e.Error("invalid-user","[methods] starMessage -> Invalid user");if(!s.settings.get("Message_AllowStarring"))throw new e.Error("message-starring-not-allowed","[methods] starMessage -> Message starring not allowed");return ChatMessage.update({_id:t._id},{$set:{starred:!!t.starred}})}})}.call(this),function(){g="object"==typeof g?g:{};var t=g;e.startup(function(){return s.TabBar.addButton({groups:["channel","privategroup","directmessage"],id:"starred-messages",i18nTitle:"Starred_Messages",icon:"icon-star",template:"starredMessages",order:3})})}.call(this),function(){a.__checkName("starredMessages"),a.starredMessages=new a("Template.starredMessages",function(){var e=this;return l.DIV({"class":"content"},"\n ",l.DIV({"class":"list-view starred-messages-list"},"\n ",l.DIV({"class":"title"},"\n ",l.H2(o.View("lookup:_",function(){return u.mustache(e.lookup("_"),"Starred_Messages")})),"\n "),"\n ",o.If(function(){return u.call(e.templateInstance().subscriptionsReady())},function(){return["\n ",o.Unless(function(){return u.call(e.lookup("hasMessages"))},function(){return["\n ",l.H2(o.View("lookup:_",function(){return u.mustache(e.lookup("_"),"No_starred_messages")})),"\n "]}),"\n "]}),"\n "),"\n ",l.UL({"class":"list clearfix"},"\n ",o.Each(function(){return u.call(e.lookup("messages"))},function(){return["\n ",o._TemplateWith(function(){return u.dataMustache(e.lookup("nrrargs"),"message",e.lookup("."))},function(){return u.include(e.lookupTemplate("nrr"),function(){return null})}),"\n "]}),"\n ",o.If(function(){return u.call(e.lookup("hasMore"))},function(){return["\n ",l.LI({"class":"load-more"},"\n ",o.If(function(){return u.call(e.templateInstance().subscriptionsReady())},function(){return["\n ",l.A(o.View("lookup:_",function(){return u.mustache(e.lookup("_"),"Has_more")}),"..."),"\n "]},function(){return["\n ",l.DIV({"class":"load-more-loading"},o.View("lookup:_",function(){return u.mustache(e.lookup("_"),"Loading...")})),"\n "]}),"\n "),"\n "]}),"\n "),"\n ")})}.call(this),function(){g="object"==typeof g?g:{};var e=g;a.starredMessages.helpers({hasMessages:function(){return StarredMessage.find({rid:this.rid},{sort:{ts:-1}}).count()>0},messages:function(){return StarredMessage.find({rid:this.rid},{sort:{ts:-1}})},hasMore:function(){return a.instance().hasMore.get()}}),a.starredMessages.onCreated(function(){return this.hasMore=new ReactiveVar(!0),this.limit=new ReactiveVar(50),this.autorun(function(e){return function(){var t;return t=e.subscribe("starredMessages",e.data.rid,e.limit.get()),t.ready()&&StarredMessage.find({rid:e.data.rid}).count()<e.limit.get()?e.hasMore.set(!1):void 0}}(this))}),a.starredMessages.events({"click .message-cog":function(e){var t,r,n,i,c;return e.stopPropagation(),e.preventDefault(),c=$(e.currentTarget).closest(".message").attr("id"),$(".message-dropdown:visible").hide(),$(".starred-messages-list #"+c+" .message-dropdown").remove(),i=StarredMessage.findOne(c),t=s.MessageAction.getButtons(i,"starred"),n=o.toHTMLWithData(a.messageDropdown,{actions:t}),$(".starred-messages-list #"+c+" .message-cog-container").append(n),r=$(".starred-messages-list #"+c+" .message-dropdown"),r.show()},"scroll .content":t.throttle(function(e,t){return e.target.scrollTop>=e.target.scrollHeight-e.target.clientHeight?t.limit.set(t.limit.get()+50):void 0},200)})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:message-star"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a=Package["rocketchat:lib"].RocketChat,c=Package.ecmascript.ECMAScript,t=Package.underscore._,k=Package.check.check,g=Package.check.Match,P=Package.mongo.Mongo,i=Package["momentjs:moment"].moment,m=Package["tap:i18n"].TAPi18next,r=Package["tap:i18n"].TAPi18n,n=Package["babel-runtime"].babelHelpers,o=Package["ecmascript-runtime"].Symbol,p=Package["ecmascript-runtime"].Map,s=Package["ecmascript-runtime"].Set,h=Package.promise.Promise;"undefined"==typeof Package&&(Package={}),Package["rocketchat:migrations"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a;"undefined"==typeof Package&&(Package={}),Package["rocketchat:oauth2-server"]={OAuth2Server:a}}();
|
||
|
||
!function(){var n=Package.meteor.Meteor,e=Package.webapp.WebApp,o=Package["rocketchat:lib"].RocketChat,a=Package["rocketchat:oauth2-server"].OAuth2Server,u=Package.templating.Template,r=Package["kadira:flow-router"].FlowRouter,i=Package["tap:i18n"].TAPi18next,c=Package["tap:i18n"].TAPi18n,l=Package.blaze.Blaze,s=Package.blaze.UI,p=Package.blaze.Handlebars,h=Package.spacebars.Spacebars,d=Package.htmljs.HTML,_;(function(){u.__checkName("authorize"),u.authorize=new u("Template.authorize",function(){var n=this;return l.If(function(){return h.call(n.lookup("currentUser"))},function(){return["\n ",d.DIV({"class":"oauth-panel"},"\n ",d.FORM({method:"post",action:"",role:"form","class":function(){return l.Unless(function(){return h.call(n.templateInstance().subscriptionsReady())},function(){return"hidden"})}},"\n ",l.If(function(){return h.call(n.lookup("currentUser"))},function(){return["\n ",d.DIV({"class":"user-info"},"\n ",d.DIV({"class":"thumb"},"\n ",l._TemplateWith(function(){return{username:h.call(h.dot(n.lookup("currentUser"),"username"))}},function(){return h.include(n.lookupTemplate("avatar"))}),"\n "),"\n ",d.DIV({"class":"username"},"\n ",l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"You_are_logged_in_as")}),"\n ",d.H1(l.View("lookup:currentUser.username",function(){return h.mustache(h.dot(n.lookup("currentUser"),"username"))})),"\n "),"\n "),"\n "]}),"\n\n ",d.DIV({"class":"integration-info"},"\n ",d.DIV("\n ",d.SPAN(d.B(l.View("lookup:getClient.name",function(){return h.mustache(h.dot(n.lookup("getClient"),"name"))}))," ",l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"will_be_able_to")})),"\n ",d.UL({"class":"integration-permissions"},"\n ",d.LI("Post Messages"),"\n ",d.LI("Create Channels"),"\n ",d.LI("Change Chennel Topic"),"\n "),"\n "),"\n "),"\n ",d.INPUT({type:"hidden",name:"allow",value:"yes"}),"\n ",d.INPUT({type:"hidden",name:"token",value:function(){return h.mustache(n.lookup("getToken"))}}),"\n ",d.INPUT({type:"hidden",name:"client_id",value:function(){return h.mustache(n.lookup("client_id"))}}),"\n ",d.INPUT({type:"hidden",name:"redirect_uri",value:function(){return h.mustache(n.lookup("redirect_uri"))}}),"\n ",d.INPUT({type:"hidden",name:"response_type",value:"code"}),"\n ",d.DIV({"class":"buttons"},"\n ",d.A({id:"logout-oauth","class":"button secondary"},l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Logout")})),"\n ",d.DIV({"class":"horizontal-space"}),"\n ",d.BUTTON({id:"cancel-oauth",type:"button","class":"button secondary"},l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Cancel")})),"\n ",d.BUTTON({type:"submit","class":"button"},l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Authorize")})),"\n "),"\n "),"\n ",l.Unless(function(){return h.call(n.templateInstance().subscriptionsReady())},function(){return["\n ",l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"loading")}),"...\n "]}),"\n "),"\n "]},function(){return["\n ",h.include(n.lookupTemplate("loginButtons")),"\n "]})}),u.__checkName("oauth404"),u.oauth404=new u("Template.oauth404",function(){var n=this;return d.DIV({"class":"oauth-panel"},"\n ",d.FORM("\n ",l.If(function(){return h.dataMustache(n.lookup("$eq"),n.lookup("error"),"404")},function(){return["\n ",d.H2("Invalid OAuth client"),"\n "]}),"\n ",l.If(function(){return h.dataMustache(n.lookup("$eq"),n.lookup("error"),"invalid_redirect_uri")},function(){return["\n ",d.H2("Redirect URL does not match"),"\n "]}),"\n "),"\n ")})}).call(this),function(){_="object"==typeof _?_:{};var t=_;r.route("/oauth/authorize",{action:function(n,t){return BlazeLayout.render("main",{center:"authorize",modal:!0,client_id:t.client_id,redirect_uri:t.redirect_uri,response_type:t.response_type,state:t.state})}}),r.route("/oauth/error/:error",{action:function(n,t){return BlazeLayout.render("main",{center:"oauth404",modal:!0,error:n.error})}}),u.authorize.onCreated(function(){return this.subscribe("authorizedOAuth"),this.subscribe("oauthClient",this.data.client_id())}),u.authorize.helpers({getToken:function(){return localStorage.getItem("Meteor.loginToken")},getClient:function(){return ChatOAuthApps.findOne()}}),u.authorize.events({"click #logout-oauth":function(){return n.logout()},"click #cancel-oauth":function(){return window.close()}}),u.authorize.onRendered(function(){return this.autorun(function(t){return function(e){var o,a,u;return(null!=(o=n.user())&&null!=(a=o.oauth)&&null!=(u=a.athorizedClients)?u.indexOf(t.data.client_id()):void 0)>-1?(e.stop(),$("button").click()):void 0}}(this))})}.call(this),function(){_="object"==typeof _?_:{};var t=_;n.subscribe("oauthApps"),o.AdminBox.addOption({href:"admin-oauth-apps",i18nLabel:"OAuth Apps",permissionGranted:function(){return o.authz.hasAllPermission("manage-oauth-apps")}})}.call(this),function(){_="object"==typeof _?_:{};var t=_;this.ChatOAuthApps=new n.Collection("rocketchat_oauth_apps")}.call(this),function(){_="object"==typeof _?_:{};var n=_;r.route("/admin/oauth-apps",{name:"admin-oauth-apps",action:function(n){return BlazeLayout.render("main",{center:"pageSettingsContainer",pageTitle:t("OAuth_Applications"),pageTemplate:"oauthApps"})}}),r.route("/admin/oauth-app/:id?",{name:"admin-oauth-app",action:function(n){return BlazeLayout.render("main",{center:"pageSettingsContainer",pageTitle:t("OAuth_Application"),pageTemplate:"oauthApp",params:n})}})}.call(this),function(){u.__checkName("oauthApp"),u.oauthApp=new u("Template.oauthApp",function(){var n=this;return d.DIV({"class":"permissions-manager"},"\n ",l.If(function(){return h.call(n.lookup("hasPermission"))},function(){return["\n ",d.A({href:function(){return h.mustache(n.lookup("pathFor"),"admin-oauth-apps")}},d.I({"class":"icon-angle-left"})," ",l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Back_to_applications")})),d.BR(),d.BR(),"\n ",d.DIV({"class":"rocket-form"},"\n ",d.DIV({"class":"section"},"\n ",d.DIV({"class":"section-content"},"\n ",d.DIV({"class":"input-line double-col"},"\n ",d.LABEL(l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Active")})),"\n ",d.DIV("\n ",d.LABEL(d.INPUT({"class":"input-monitor",type:"radio",name:"active",value:"1",checked:function(){return h.mustache(n.lookup("$eq"),h.dot(n.lookup("data"),"active"),!0)}})," ",l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"True")})),"\n ",d.LABEL(d.INPUT({"class":"input-monitor",type:"radio",name:"active",value:"0",checked:function(){return h.mustache(n.lookup("$eq"),h.dot(n.lookup("data"),"active"),!1)}})," ",l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"False")})),"\n "),"\n "),"\n ",d.DIV({"class":"input-line double-col"},"\n ",d.LABEL(l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Application_Name")})),"\n ",d.DIV("\n ",d.INPUT({type:"text",name:"name",value:function(){return h.mustache(h.dot(n.lookup("data"),"name"))}}),"\n ",d.DIV({"class":"settings-description"},l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Give_the_application_a_name_This_will_be_seen_by_your_users")})),"\n "),"\n "),"\n ",d.DIV({"class":"input-line double-col"},"\n ",d.LABEL(l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Redirect_URI")})),"\n ",d.DIV("\n ",d.INPUT({type:"text",name:"redirectUri",value:function(){return h.mustache(h.dot(n.lookup("data"),"redirectUri"))}}),"\n ",d.DIV({"class":"settings-description"},l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"After_OAuth2_authentication_users_will_be_redirected_to_this_URL")})),"\n "),"\n "),"\n ",l.If(function(){return h.call(h.dot(n.lookup("data"),"clientId"))},function(){return["\n ",d.DIV({"class":"input-line double-col"},"\n ",d.LABEL(l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Client_ID")})),"\n ",d.DIV("\n ",d.INPUT({type:"text",name:"clientId",value:function(){return h.mustache(h.dot(n.lookup("data"),"clientId"))},readonly:"readonly"}),"\n ",d.DIV({"class":"settings-description"},d.A({"class":"clipboard","data-clipboard-target":"[name=clientId]"},l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"COPY_TO_CLIPBOARD")}))),"\n "),"\n "),"\n ",d.DIV({"class":"input-line double-col"},"\n ",d.LABEL(l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Client_Secret")})),"\n ",d.DIV("\n ",d.INPUT({type:"text",name:"clientSecret",value:function(){return h.mustache(h.dot(n.lookup("data"),"clientSecret"))},readonly:"readonly"}),"\n ",d.DIV({"class":"settings-description"},d.A({"class":"clipboard","data-clipboard-target":"[name=clientSecret]"},l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"COPY_TO_CLIPBOARD")}))),"\n "),"\n "),"\n ",d.DIV({"class":"input-line double-col"},"\n ",d.LABEL(l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Authorization_URL")})),"\n ",d.DIV("\n ",d.INPUT({type:"text",name:"authorization_url",value:function(){return h.mustache(h.dot(n.lookup("data"),"authorization_url"))},readonly:"readonly"}),"\n ",d.DIV({"class":"settings-description"},d.A({"class":"clipboard","data-clipboard-target":"[name=authorization_url]"},l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"COPY_TO_CLIPBOARD")}))),"\n "),"\n "),"\n ",d.DIV({"class":"input-line double-col"},"\n ",d.LABEL(l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Access_Token_URL")})),"\n ",d.DIV("\n ",d.INPUT({type:"text",name:"access_token_url",value:function(){return h.mustache(h.dot(n.lookup("data"),"access_token_url"))},readonly:"readonly"}),"\n ",d.DIV({"class":"settings-description"},d.A({"class":"clipboard","data-clipboard-target":"[name=access_token_url]"},l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"COPY_TO_CLIPBOARD")}))),"\n "),"\n "),"\n "]}),"\n "),"\n "),"\n ",d.DIV({"class":"submit"},"\n ",l.If(function(){return h.call(h.dot(n.lookup("data"),"clientId"))},function(){return["\n ",d.BUTTON({"class":"button red delete"},d.I({"class":"icon-trash"}),d.SPAN(l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Delete")}))),"\n "]}),"\n ",d.BUTTON({"class":"button save"},d.I({"class":"icon-send"}),d.SPAN(l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Save_changes")}))),"\n "),"\n "),"\n "]},function(){return["\n ",l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Not_authorized")}),"\n "]}),"\n ")})}.call(this),function(){_="object"==typeof _?_:{};var e=_;u.oauthApp.onCreated(function(){return this.record=new ReactiveVar({active:!0})}),u.oauthApp.helpers({hasPermission:function(){return o.authz.hasAllPermission("manage-oauth-apps")},data:function(){var t,e,o;return o="function"==typeof(t=u.instance().data).params?t.params():void 0,null!=(null!=o?o.id:void 0)&&(e=ChatOAuthApps.findOne({_id:o.id}),null!=e)?(e.authorization_url=n.absoluteUrl("oauth/authorize"),e.access_token_url=n.absoluteUrl("oauth/token"),u.instance().record.set(e),e):u.instance().record.curValue}}),u.oauthApp.events({"click .submit > .delete":function(){var e;return e=u.instance().data.params(),swal({title:t("Are_you_sure"),text:t("You_will_not_be_able_to_recover"),type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:t("Yes_delete_it"),cancelButtonText:t("Cancel"),closeOnConfirm:!1,html:!1},function(){return n.call("deleteOAuthApp",e.id,function(n,e){return swal({title:t("Deleted"),text:t("Your_entry_has_been_deleted"),type:"success",timer:1e3,showConfirmButton:!1}),r.go("admin-oauth-apps")})})},"click .submit > .save":function(){var t,e,o,a,i,l;return a=$("[name=name]").val().trim(),t="1"===$("[name=active]:checked").val().trim(),l=$("[name=redirectUri]").val().trim(),""===a?toastr.error(c.__("The_application_name_is_required")):""===l?toastr.error(c.__("The_redirectUri_is_required")):(e={name:a,active:t,redirectUri:l},i="function"==typeof(o=u.instance().data).params?o.params():void 0,null!=(null!=i?i.id:void 0)?n.call("updateOAuthApp",i.id,e,function(n,t){return null!=n?toastr.error(c.__(n.error)):toastr.success(c.__("Application_updated"))}):n.call("addOAuthApp",e,function(n,t){return null!=n?toastr.error(c.__(n.error)):(toastr.success(c.__("Application_added")),r.go("admin-oauth-app",{id:t._id}))}))}})}.call(this),function(){u.__checkName("oauthApps"),u.oauthApps=new u("Template.oauthApps",function(){var n=this;return d.DIV({"class":"permissions-manager"},"\n ",l.If(function(){return h.call(n.lookup("hasPermission"))},function(){return["\n ",d.A({href:function(){return h.mustache(n.lookup("pathFor"),"admin-oauth-app")},"class":"button primary new-role"},l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"New_Application")})),"\n\n ",d.DIV({"class":"rocket-form"},"\n ",d.DIV({"class":"section"},"\n ",d.DIV({"class":"admin-integrations-new-panel"},"\n ",l.Each(function(){return h.call(n.lookup("applications"))},function(){return["\n ",d.A({href:function(){return h.mustache(n.lookup("pathFor"),"admin-oauth-app",h.kw({id:n.lookup("_id")}))}},"\n ",d.DIV({"class":"admin-integrations-new-item"},"\n ",d.DIV({"class":"admin-integrations-new-item-body"},"\n ",d.DIV({"class":"admin-integrations-new-item-title"},"\n ",l.View("lookup:name",function(){return h.mustache(n.lookup("name"))}),"\n "),"\n ",d.DIV({"class":"admin-integrations-new-item-description"},"\n ",l.View("lookup:_",function(){return h.makeRaw(h.mustache(n.lookup("_"),"Created_at_s_by_s",h.dataMustache(n.lookup("dateFormated"),n.lookup("_createdAt")),h.dot(n.lookup("_createdBy"),"username")))}),"\n "),"\n "),"\n ",d.I({"class":"icon-angle-right"}),"\n "),"\n "),"\n "]},function(){return["\n ",d.H1(l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"There_are_no_applications")})),"\n "]}),"\n "),"\n "),"\n "),"\n "]},function(){return["\n ",l.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Not_authorized")}),"\n "]}),"\n ")})}.call(this),function(){_="object"==typeof _?_:{};var n=_;u.oauthApps.helpers({hasPermission:function(){return o.authz.hasAllPermission("manage-oauth-apps")},applications:function(){return ChatOAuthApps.find()},dateFormated:function(n){return moment(n).format("L LT")}})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:oauth2-server-config"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;(function(){}).call(this),"undefined"==typeof Package&&(Package={}),Package["konecty:change-case"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.http.HTTP,n=Package.templating.Template,o=Package.ecmascript.ECMAScript,l=Package.underscore._,u=Package["rocketchat:lib"].RocketChat,r=Package.blaze.Blaze,a=Package.blaze.UI,i=Package.blaze.Handlebars,c=Package.spacebars.Spacebars,s=Package["babel-runtime"].babelHelpers,d=Package["ecmascript-runtime"].Symbol,p=Package["ecmascript-runtime"].Map,m=Package["ecmascript-runtime"].Set,f=Package.promise.Promise,h=Package["tap:i18n"].TAPi18next,k=Package["tap:i18n"].TAPi18n,g=Package.htmljs.HTML,b;(function(){n.__checkName("oembedBaseWidget"),n.oembedBaseWidget=new n("Template.oembedBaseWidget",function(){var e=this;return r._TemplateWith(function(){return{template:c.call(e.lookup("template"))}},function(){return c.include(function(){return c.call(n.__dynamic)})})})}).call(this),function(){b="object"==typeof b?b:{};var e=b;n.oembedBaseWidget.helpers({template:function(){var e,t,n,o,l,u,r,a,i;return this._overrideTemplate?this._overrideTemplate:null!=(null!=(e=this.headers)&&null!=(t=e.contentType)?t.match(/image\/.*/):void 0)?"oembedImageWidget":null!=(null!=(n=this.headers)&&null!=(o=n.contentType)?o.match(/audio\/.*/):void 0)?"oembedAudioWidget":null!=(null!=(l=this.headers)&&null!=(u=l.contentType)?u.match(/video\/.*/):void 0)||null!=(null!=(r=this.meta)&&null!=(a=r.twitterPlayerStreamContentType)?a.match(/video\/.*/):void 0)?"oembedVideoWidget":null!=(null!=(i=this.meta)?i.oembedHtml:void 0)?"oembedFrameWidget":"oembedUrlWidget"}})}.call(this),function(){n.__checkName("oembedImageWidget"),n.oembedImageWidget=new n("Template.oembedImageWidget",function(){var e=this;return r.If(function(){return c.call(e.lookup("parsedUrl"))},function(){return["\n ",r.If(function(){return c.call(e.lookup("collapsed"))},function(){return["\n ",g.SPAN({"class":"collapse-switch icon-right-dir","data-index":function(){return c.mustache(e.lookup("index"))},"data-collapsed":function(){return c.mustache(e.lookup("collapsed"))}}),"\n "]},function(){return["\n ",g.SPAN({"class":"collapse-switch icon-down-dir","data-index":function(){return c.mustache(e.lookup("index"))},"data-collapsed":function(){return c.mustache(e.lookup("collapsed"))}}),"\n ",r.If(function(){return c.call(e.lookup("loadImage"))},function(){return["\n ",g.DIV("\n ",g.A({href:function(){return c.mustache(e.lookup("url"))},"class":"swipebox",target:"_blank"},"\n ",g.DIV({"class":"inline-image",style:function(){return["background-image: url('",c.mustache(e.lookup("url")),"');"]}},"\n ",g.IMG({src:function(){return c.mustache(e.lookup("url"))},height:"200"}),"\n "),"\n "),"\n "),"\n "]},function(){return["\n ",g.DIV({"class":"image-to-download","data-url":function(){return c.mustache(e.lookup("url"))}},"\n ",g.I({"class":"icon-picture"}),"\n ",g.DIV("click to load"),"\n "),"\n "]}),"\n "]}),"\n "]})})}.call(this),function(){b="object"==typeof b?b:{};var t=b;n.oembedImageWidget.helpers({loadImage:function(){var t,n,o,l,u,r;return(null!=(t=e.user())&&null!=(n=t.settings)&&null!=(o=n.preferences)?o.autoImageLoad:void 0)===!1&&null!=this.downloadImages==!1?!1:e.Device.isPhone()&&(null!=(l=e.user())&&null!=(u=l.settings)&&null!=(r=u.preferences)?r.saveMobileBandwidth:void 0)&&null!=this.downloadImages==!1?!1:!0},collapsed:function(){var t,n,o;return null!=this.collapsed?this.collapsed:(null!=(t=e.user())&&null!=(n=t.settings)&&null!=(o=n.preferences)?o.collapseMediaByDefault:void 0)===!0}})}.call(this),function(){n.__checkName("oembedAudioWidget"),n.oembedAudioWidget=new n("Template.oembedAudioWidget",function(){var e=this;return g.A({href:function(){return c.mustache(e.lookup("url"))},target:"_blank"},"\n ",r.If(function(){return c.call(e.lookup("parsedUrl"))},function(){return["\n ",r.If(function(){return c.call(e.lookup("collapsed"))},function(){return["\n ",g.SPAN({"class":"collapse-switch icon-right-dir","data-index":function(){return c.mustache(e.lookup("index"))},"data-collapsed":function(){return c.mustache(e.lookup("collapsed"))}}),"\n "]},function(){return["\n ",g.SPAN({"class":"collapse-switch icon-down-dir","data-index":function(){return c.mustache(e.lookup("index"))},"data-collapsed":function(){return c.mustache(e.lookup("collapsed"))}}),"\n ",g.BLOCKQUOTE("\n ",g.AUDIO({controls:""},"\n ",g.SOURCE({src:function(){return c.mustache(e.lookup("url"))},type:function(){return c.mustache(c.dot(e.lookup("headers"),"contentType"))}}),"\n Your browser does not support the audio element.\n "),"\n "),"\n "]}),"\n "]}),"\n ")})}.call(this),function(){b="object"==typeof b?b:{};var t=b;n.oembedAudioWidget.helpers({collapsed:function(){var t,n,o;return null!=this.collapsed?this.collapsed:(null!=(t=e.user())&&null!=(n=t.settings)&&null!=(o=n.preferences)?o.collapseMediaByDefault:void 0)===!0}})}.call(this),function(){n.__checkName("oembedVideoWidget"),n.oembedVideoWidget=new n("Template.oembedVideoWidget",function(){var e=this;return r.If(function(){return c.call(e.lookup("parsedUrl"))},function(){return["\n ",g.BLOCKQUOTE("\n ",g.DIV(g.A({href:function(){return c.mustache(e.lookup("url"))}},r.View("lookup:parsedUrl.host",function(){return c.mustache(c.dot(e.lookup("parsedUrl"),"host"))}))),"\n ",g.SPAN(r.View("lookup:title",function(){return c.mustache(e.lookup("title"))})),"\n ",r.If(function(){return c.call(e.lookup("collapsed"))},function(){return["\n ",g.SPAN({"class":"collapse-switch icon-right-dir","data-index":function(){return c.mustache(e.lookup("index"))},"data-collapsed":function(){return c.mustache(e.lookup("collapsed"))}}),"\n "]},function(){return["\n ",g.SPAN({"class":"collapse-switch icon-down-dir","data-index":function(){return c.mustache(e.lookup("index"))},"data-collapsed":function(){return c.mustache(e.lookup("collapsed"))}}),g.BR(),"\n ",g.VIDEO({controls:"","class":"inline-video"},"\n ",g.SOURCE({src:function(){return c.mustache(e.lookup("url"))},type:function(){return c.mustache(e.lookup("contentType"))}}),"\n Your browser does not support the video element.\n "),"\n "]}),"\n "),"\n"]})})}.call(this),function(){b="object"==typeof b?b:{};var t=b,o;o=function(e){return null!=e.meta?e.meta.ogTitle||e.meta.twitterTitle||e.meta.title||e.meta.pageTitle:void 0},n.oembedVideoWidget.helpers({url:function(){var e;return(null!=(e=this.meta)?e.twitterPlayerStream:void 0)||this.url},contentType:function(){var e,t;return(null!=(e=this.meta)?e.twitterPlayerStreamContentType:void 0)||(null!=(t=this.headers)?t.contentType:void 0)},title:function(){return o(this)},collapsed:function(){var t,n,o;return null!=this.collapsed?this.collapsed:(null!=(t=e.user())&&null!=(n=t.settings)&&null!=(o=n.preferences)?o.collapseMediaByDefault:void 0)===!0}})}.call(this),function(){n.__checkName("oembedYoutubeWidget"),n.oembedYoutubeWidget=new n("Template.oembedYoutubeWidget",function(){var e=this;return r.If(function(){return c.call(e.lookup("parsedUrl"))},function(){return["\n ",g.BLOCKQUOTE("\n ",g.A({href:function(){return c.mustache(e.lookup("url"))}},r.View("lookup:parsedUrl.host",function(){return c.mustache(c.dot(e.lookup("parsedUrl"),"host"))})),"\n ",r.If(function(){return c.call(e.lookup("collapsed"))},function(){return["\n ",g.SPAN({"class":"collapse-switch icon-right-dir","data-index":function(){return c.mustache(e.lookup("index"))},"data-collapsed":function(){return c.mustache(e.lookup("collapsed"))}}),g.BR(),"\n "]},function(){return["\n ",g.SPAN({"class":"collapse-switch icon-down-dir","data-index":function(){return c.mustache(e.lookup("index"))},"data-collapsed":function(){return c.mustache(e.lookup("collapsed"))}}),g.BR(),"\n ",g.IFRAME({width:"355",height:"200",src:function(){return c.mustache(c.dot(e.lookup("meta"),"twitterPlayer"))},frameborder:"0",allowfullscreen:""}),g.BR(),"\n ",r.View("lookup:meta.description",function(){return c.makeRaw(c.mustache(c.dot(e.lookup("meta"),"description")))}),"\n "]}),"\n "),"\n "]})})}.call(this),function(){b="object"==typeof b?b:{};var t=b;n.oembedYoutubeWidget.helpers({collapsed:function(){var t,n,o;return null!=this.collapsed?this.collapsed:(null!=(t=e.user())&&null!=(n=t.settings)&&null!=(o=n.preferences)?o.collapseMediaByDefault:void 0)===!0}})}.call(this),function(){n.__checkName("oembedUrlWidget"),n.oembedUrlWidget=new n("Template.oembedUrlWidget",function(){var e=this;return r.If(function(){return c.call(e.lookup("show"))},function(){return["\n ",g.BLOCKQUOTE("\n ",g.DIV({style:function(){return[r.If(function(){return c.call(e.lookup("image"))},function(){return"min-height: 80px;"})," padding: 10px 3px;"]}},"\n ",r.If(function(){return c.call(e.lookup("image"))},function(){return["\n ",r.If(function(){return c.call(c.dot(e.lookup("meta"),"ogImageUserGenerated"))},function(){return["\n ",g.DIV("\n ",g.A({href:function(){return c.mustache(e.lookup("url"))},target:function(){return c.mustache(e.lookup("target"))}},"\n ",g.IMG({src:function(){return c.mustache(e.lookup("image"))},height:"200"}),"\n "),"\n "),"\n "]},function(){return["\n ",g.A({href:function(){return c.mustache(e.lookup("url"))},target:function(){return c.mustache(e.lookup("target"))}},"\n ",g.IMG({src:function(){return c.mustache(e.lookup("image"))},height:"60",align:"left",style:"margin-right: 10px;"}),"\n "),"\n "]}),"\n "]}),"\n ",g.DIV({style:"color: #AAA;"},r.View("lookup:parsedUrl.host",function(){return c.mustache(c.dot(e.lookup("parsedUrl"),"host"))})),"\n ",r.If(function(){return c.call(e.lookup("title"))},function(){return["\n ",g.DIV("\n ",g.A({href:function(){return c.mustache(e.lookup("url"))},target:function(){return c.mustache(e.lookup("target"))}},g.STRONG(r.View("lookup:title",function(){return c.makeRaw(c.mustache(e.lookup("title")))}))),"\n "),"\n "]}),"\n ",g.DIV({style:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis"},r.View("lookup:description",function(){return c.makeRaw(c.mustache(e.lookup("description")))})),"\n "),"\n "),"\n "]})})}.call(this),function(){b="object"==typeof b?b:{};var t=b,o,u;u=function(e){return null!=e.meta?e.meta.ogTitle||e.meta.twitterTitle||e.meta.title||e.meta.pageTitle:void 0},o=function(e){var t;if(null!=e.meta&&(t=e.meta.ogDescription||e.meta.twitterDescription||e.meta.description,null!=t))return l.unescape(t.replace(/(^[“\s]*)|([”\s]*$)/g,""))},n.oembedUrlWidget.helpers({description:function(){var e;return e=o(this),l.isString(e)?new i.SafeString(e):void 0},title:function(){var e;return e=u(this),l.isString(e)?new i.SafeString(e):void 0},target:function(){var e,t;return(null!=(e=this.parsedUrl)?e.host:void 0)&&("undefined"!=typeof document&&null!==document&&null!=(t=document.location)?t.host:void 0)&&this.parsedUrl.host===document.location.host?void 0:"_blank"},image:function(){var e,t;if(null!=this.meta)return e=null!=(t=this.meta.ogImage)&&"function"==typeof t.replace?t.replace(/&/g,"&"):void 0,e||this.meta.twitterImage},show:function(){return null!=o(this)||null!=u(this)},collapsed:function(){var t,n,o;return null!=this.collapsed?this.collapsed:(null!=(t=e.user())&&null!=(n=t.settings)&&null!=(o=n.preferences)?o.collapseMediaByDefault:void 0)===!0}})}.call(this),function(){n.__checkName("oembedFrameWidget"),n.oembedFrameWidget=new n("Template.oembedFrameWidget",function(){var e=this;return r.If(function(){return c.call(e.lookup("parsedUrl"))},function(){return["\n ",g.BLOCKQUOTE("\n ",r.If(function(){return c.call(c.dot(e.lookup("meta"),"oembedProviderName"))},function(){return["\n ",r.If(function(){return c.call(c.dot(e.lookup("meta"),"oembedProviderUrl"))},function(){return["\n ",g.A({href:function(){return c.mustache(c.dot(e.lookup("meta"),"oembedProviderUrl"))},style:"color: #9e9ea6"},r.View("lookup:meta.oembedProviderName",function(){return c.mustache(c.dot(e.lookup("meta"),"oembedProviderName"))})),"\n "]}),"\n "]}),"\n ",r.If(function(){return c.call(c.dot(e.lookup("meta"),"oembedAuthorName"))},function(){return["\n ",r.If(function(){return c.call(c.dot(e.lookup("meta"),"oembedAuthorUrl"))},function(){return["\n ",g.BR({"class":"only-after-a"}),"\n ",g.A({href:function(){return c.mustache(c.dot(e.lookup("meta"),"oembedAuthorUrl"))}},r.View("lookup:meta.oembedAuthorName",function(){return c.mustache(c.dot(e.lookup("meta"),"oembedAuthorName"))})),"\n "]}),"\n "]}),"\n ",r.If(function(){return c.call(c.dot(e.lookup("meta"),"oembedTitle"))},function(){return["\n ",r.If(function(){return c.call(c.dot(e.lookup("meta"),"oembedUrl"))},function(){return["\n ",g.BR({"class":"only-after-a"}),"\n ",g.A({href:function(){return c.mustache(c.dot(e.lookup("meta"),"oembedUrl"))}},r.View("lookup:meta.oembedTitle",function(){return c.mustache(c.dot(e.lookup("meta"),"oembedTitle"))})),"\n "]}),"\n "]}),"\n ",r.If(function(){return c.call(e.lookup("collapsed"))},function(){return["\n ",g.SPAN({"class":"collapse-switch icon-right-dir","data-index":function(){return c.mustache(e.lookup("index"))},"data-collapsed":function(){return c.mustache(e.lookup("collapsed"))}}),g.BR(),"\n "]},function(){return["\n ",g.SPAN({"class":"collapse-switch icon-down-dir","data-index":function(){return c.mustache(e.lookup("index"))},"data-collapsed":function(){return c.mustache(e.lookup("collapsed"))}}),g.BR(),"\n ",r.If(function(){return c.call(c.dot(e.lookup("meta"),"oembedDescription"))},function(){return["\n ",g.P(r.View("lookup:meta.oembedDescription",function(){return c.mustache(c.dot(e.lookup("meta"),"oembedDescription"))})),"\n "]}),"\n ",r.View("lookup:meta.oembedHtml",function(){return c.makeRaw(c.mustache(c.dot(e.lookup("meta"),"oembedHtml")))}),"\n "]}),"\n "),"\n"]})})}.call(this),function(){b="object"==typeof b?b:{};var t=b;n.oembedFrameWidget.helpers({collapsed:function(){var t,n,o;return null!=this.collapsed?this.collapsed:(null!=(t=e.user())&&null!=(n=t.settings)&&null!=(o=n.preferences)?o.collapseMediaByDefault:void 0)===!0}})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:oembed"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.ecmascript.ECMAScript,r=Package["rocketchat:lib"].RocketChat,i=Package.tracker.Tracker,o=Package.tracker.Deps,s=Package["reactive-var"].ReactiveVar,a=Package.templating.Template,c=Package["babel-runtime"].babelHelpers,u=Package["ecmascript-runtime"].Symbol,l=Package["ecmascript-runtime"].Map,d=Package["ecmascript-runtime"].Set,h=Package.promise.Promise,f=Package["tap:i18n"].TAPi18next,p=Package["tap:i18n"].TAPi18n,m=Package.blaze.Blaze,y=Package.blaze.UI,g=Package.blaze.Handlebars,b=Package.spacebars.Spacebars,I=Package.htmljs.HTML;(function(){var n=function(){function t(){c.classCallCheck(this,t),this.enabled=new s(!1),this.instancesByRoomId={}}return t.prototype.isEnabled=function(){function e(){return this.enabled.get()}return e}(),t.prototype.getInstanceByRoomId=function(){function t(t){if(this.enabled.get()){if(this.instancesByRoomId[t])return this.instancesByRoomId[t];var n;if(n=r.models.Subscriptions.findOne({rid:t}),n&&"d"===n.t)return this.instancesByRoomId[t]=new r.OTR.Room(e.userId(),t),this.instancesByRoomId[t]}}return t}(),t}();r.OTR=new n,e.startup(function(){r.Notifications.onUser("otr",function(t,n){n.roomId&&n.userId&&n.userId!==e.userId()&&r.OTR.getInstanceByRoomId(n.roomId).onUserStream(t,n)}),r.promises.add("onClientBeforeSendMessage",function(e){return e.rid&&r.OTR.getInstanceByRoomId(e.rid)&&r.OTR.getInstanceByRoomId(e.rid).established.get()?r.OTR.getInstanceByRoomId(e.rid).encrypt(e).then(function(t){return e.msg=t,e.t="otr",e}):h.resolve(e)},r.promises.priority.HIGH),r.promises.add("onClientMessageReceived",function(n){if(!(n.rid&&r.OTR.getInstanceByRoomId(n.rid)&&r.OTR.getInstanceByRoomId(n.rid).established.get()))return"otr"===n.t&&(n.msg=""),h.resolve(n);if(n.notification)return n.msg=t("Encrypted_message"),h.resolve(n);var i=function(){var t=r.OTR.getInstanceByRoomId(n.rid);return{v:t.decrypt(n.msg).then(function(r){var i=r._id,o=r.text,s=r.ack;return n._id=i,n.msg=o,r.ts&&(n.ts=r.ts),n.otrAck?t.decrypt(n.otrAck).then(function(e){return s===e.text&&(n.t="otr-ack"),n}):r.userId!==e.userId()?t.encryptText(s).then(function(t){return e.call("updateOTRAck",n._id,t),n}):n})}}();return"object"==typeof i?i.v:void 0},r.promises.priority.HIGH)})}).call(this),function(){r.OTR.Room=function(){function t(e,n){c.classCallCheck(this,t),this.userId=e,this.roomId=n,this.peerId=n.replace(e,""),this.established=new s(!1),this.establishing=new s(!1),this.userOnlineComputation=null,this.keyPair=null,this.exportedPublicKey=null,this.sessionKey=null}return t.prototype.handshake=function(){function e(e){var t=this;this.establishing.set(!0),this.firstPeer=!0,this.generateKeyPair().then(function(){r.Notifications.notifyUser(t.peerId,"otr","handshake",{roomId:t.roomId,userId:t.userId,publicKey:EJSON.stringify(t.exportedPublicKey),refresh:e})})}return e}(),t.prototype.acknowledge=function(){function e(){r.Notifications.notifyUser(this.peerId,"otr","acknowledge",{roomId:this.roomId,userId:this.userId,publicKey:EJSON.stringify(this.exportedPublicKey)})}return e}(),t.prototype.deny=function(){function e(){this.reset(),r.Notifications.notifyUser(this.peerId,"otr","deny",{roomId:this.roomId,userId:this.userId})}return e}(),t.prototype.end=function(){function e(){this.reset(),r.Notifications.notifyUser(this.peerId,"otr","end",{roomId:this.roomId,userId:this.userId})}return e}(),t.prototype.reset=function(){function t(){this.establishing.set(!1),this.established.set(!1),this.keyPair=null,this.exportedPublicKey=null,this.sessionKey=null,e.call("deleteOldOTRMessages",this.roomId)}return t}(),t.prototype.generateKeyPair=function(){function t(){var t=this;return this.userOnlineComputation&&this.userOnlineComputation.stop(),this.userOnlineComputation=i.autorun(function(){var e=$("#chat-window-"+t.roomId),n=$(".fixed-title h2",e);t.established.get()?e.length&&n.length&&!$(".otr-icon",n).length&&(n.prepend("<i class='otr-icon icon-key'></i>"),$(".input-message-container").addClass("otr"),$(".inner-right-toolbar").prepend("<i class='otr-icon icon-key'></i>")):n.length&&($(".otr-icon",n).remove(),$(".input-message-container").removeClass("otr"),$(".inner-right-toolbar .otr-icon").remove())}),r.OTR.crypto.generateKey({name:"ECDH",namedCurve:"P-256"},!1,["deriveKey","deriveBits"]).then(function(e){return t.keyPair=e,r.OTR.crypto.exportKey("jwk",e.publicKey)}).then(function(n){t.exportedPublicKey=n,e.call("deleteOldOTRMessages",t.roomId)})["catch"](function(e){toastr.error(e)})}return t}(),t.prototype.importPublicKey=function(){function e(e){var t=this;return r.OTR.crypto.importKey("jwk",EJSON.parse(e),{name:"ECDH",namedCurve:"P-256"},!1,[]).then(function(e){return r.OTR.crypto.deriveBits({name:"ECDH",namedCurve:"P-256","public":e},t.keyPair.privateKey,256)}).then(function(e){return r.OTR.crypto.digest({name:"SHA-256"},e)}).then(function(e){var t=new Uint8Array(e).slice(0,16);return r.OTR.crypto.importKey("raw",t,{name:"AES-GCM"},!1,["encrypt","decrypt"])}).then(function(e){t.sessionKey=e})}return e}(),t.prototype.encryptText=function(){function t(t){_.isObject(t)||(t=new TextEncoder("UTF-8").encode(EJSON.stringify({text:t,ack:Random.id(20*(Random.fraction()+1))})));var n=crypto.getRandomValues(new Uint8Array(12));return r.OTR.crypto.encrypt({name:"AES-GCM",iv:n},this.sessionKey,t).then(function(e){e=new Uint8Array(e);var t=new Uint8Array(n.length+e.length);return t.set(n,0),t.set(e,n.length),EJSON.stringify(t)})["catch"](function(){throw new e.Error("encryption-error","Encryption error.")})}return t}(),t.prototype.encrypt=function(){function e(e){var t=new TextEncoder("UTF-8").encode(EJSON.stringify({_id:e._id,text:e.msg,userId:this.userId,ack:Random.id(20*(Random.fraction()+1)),ts:new Date(Date.now()+TimeSync.serverOffset())})),n=this.encryptText(t);return n}return e}(),t.prototype.decrypt=function(){function e(e){var t=EJSON.parse(e),n=t.slice(0,12);return t=t.slice(12),r.OTR.crypto.decrypt({name:"AES-GCM",iv:n},this.sessionKey,t).then(function(e){return e=EJSON.parse(new TextDecoder("UTF-8").decode(new Uint8Array(e)))})["catch"](function(t){return toastr.error(t),e})}return e}(),t.prototype.onUserStream=function(){function t(t,n){var r=this,i=e.users.findOne(n.userId);switch(t){case"handshake":var o=null,s=function(){r.establishing.set(!0),e.clearTimeout(o),r.generateKeyPair().then(function(){r.importPublicKey(n.publicKey).then(function(){r.firstPeer=!1,FlowRouter.goToRoomById(n.roomId),e.defer(function(){r.established.set(!0),r.acknowledge()})})})};n.refresh&&this.established.get()?(this.reset(),s()):(this.established.get()&&this.reset(),swal({title:"<i class='icon-key alert-icon'></i>"+p.__("OTR"),text:p.__("Username_wants_to_start_otr_Do_you_want_to_accept",{username:i.username}),html:!0,showCancelButton:!0,confirmButtonText:p.__("Yes"),cancelButtonText:p.__("No")},function(t){t?s():(e.clearTimeout(o),r.deny())})),o=e.setTimeout(function(){r.establishing.set(!1),swal.close()},1e4);break;case"acknowledge":this.importPublicKey(n.publicKey).then(function(){r.established.set(!0)});break;case"deny":if(this.establishing.get()){this.reset();var a=e.users.findOne(this.peerId);swal({title:"<i class='icon-key alert-icon'></i>"+p.__("OTR"),text:p.__("Username_denied_the_OTR_session",{username:a.username}),html:!0})}break;case"end":if(this.established.get()){this.reset();var c=e.users.findOne(this.peerId);swal({title:"<i class='icon-key alert-icon'></i>"+p.__("OTR"),text:p.__("Username_ended_the_OTR_session",{username:c.username}),html:!0})}}}return t}(),t}()}.call(this),function(){a.__checkName("otrFlexTab"),a.otrFlexTab=new a("Template.otrFlexTab",function(){var e=this;return I.DIV({"class":"content"},"\n ",I.DIV({"class":"list-view otr"},"\n ",I.DIV({"class":"title"},"\n ",I.H2(m.View("lookup:_",function(){return b.mustache(e.lookup("_"),"Off_the_record_conversation")})),"\n "),"\n ",m.If(function(){return b.call(e.lookup("otrAvailable"))},function(){return["\n ",I.FORM("\n ",I.UL({"class":"list clearfix"},"\n ",m.If(function(){return b.call(e.lookup("userIsOnline"))},function(){return["\n ",m.If(function(){return b.call(e.lookup("established"))},function(){return["\n ",I.BUTTON({"class":"button refresh"},I.SPAN(m.View("lookup:_",function(){return b.mustache(e.lookup("_"),"Refresh_keys")}))),"\n ",I.BUTTON({"class":"button red end"},I.SPAN(m.View("lookup:_",function(){return b.mustache(e.lookup("_"),"End_OTR")}))),"\n "]},function(){return[" ",m.If(function(){return b.call(e.lookup("establishing"))},function(){return["\n ",m.View("lookup:_",function(){return b.mustache(e.lookup("_"),"Please_wait_while_OTR_is_being_established")}),"\n "]},function(){return["\n ",I.BUTTON({"class":"button start"},I.SPAN(m.View("lookup:_",function(){return b.mustache(e.lookup("_"),"Start_OTR")}))),"\n "]})," "]}),"\n "]},function(){return["\n ",I.H2(m.View("lookup:_",function(){return b.mustache(e.lookup("_"),"OTR_is_only_available_when_both_users_are_online")})),"\n "]}),"\n "),"\n "),"\n "]},function(){return["\n ",I.H2(m.View("lookup:_",function(){return b.mustache(e.lookup("_"),"Off_the_record_conversation_is_not_available_for_your_browser_or_device")})),"\n "]}),"\n "),"\n ")})}.call(this),function(){a.otrFlexTab.helpers({otrAvailable:function(){return r.OTR&&r.OTR.isEnabled()},userIsOnline:function(){if("offline"===e.user().status)return!1;if(this.rid){var t=this.rid.replace(e.userId(),"");if(t){var n=e.users.findOne(t),r=n&&"offline"!==n.status;return r}}},established:function(){var e=r.OTR.getInstanceByRoomId(this.rid);return e&&e.established.get()},establishing:function(){var e=r.OTR.getInstanceByRoomId(this.rid);return e&&e.establishing.get()}}),a.otrFlexTab.events({"click button.start":function(t,n){t.preventDefault();var i=r.OTR.getInstanceByRoomId(this.rid);i&&(i.handshake(),n.timeout=e.setTimeout(function(){swal("Timeout","","error"),i.establishing.set(!1)},1e4))},"click button.refresh":function(t,n){t.preventDefault();var i=r.OTR.getInstanceByRoomId(this.rid);i&&(i.reset(),i.handshake(!0),n.timeout=e.setTimeout(function(){swal("Timeout","","error"),i.establishing.set(!1)},1e4))},"click button.end":function(e){e.preventDefault();var t=r.OTR.getInstanceByRoomId(this.rid);t&&t.end()}}),a.otrFlexTab.onCreated(function(){var t=this;this.timeout=null,this.autorun(function(){var n=r.OTR.getInstanceByRoomId(t.data.rid);n&&n.established.get()&&e.clearTimeout(t.timeout)})})}.call(this),function(){e.startup(function(){i.autorun(function(){r.settings.get("OTR_Enable")&&window.crypto?(r.OTR.crypto=window.crypto.subtle||window.crypto.webkitSubtle,r.OTR.enabled.set(!0),r.TabBar.addButton({groups:["directmessage"],id:"otr",i18nTitle:"OTR",icon:"icon-key",template:"otrFlexTab",order:11})):(r.OTR.enabled.set(!1),r.TabBar.removeButton("otr"))})})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:otr"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.ecmascript.ECMAScript,o=Package.underscore._,i=Package["rocketchat:lib"].RocketChat,a=Package.templating.Template,u=Package["babel-runtime"].babelHelpers,c=Package["ecmascript-runtime"].Symbol,s=Package["ecmascript-runtime"].Map,l=Package["ecmascript-runtime"].Set,r=Package.promise.Promise,p=Package["tap:i18n"].TAPi18next,f=Package["tap:i18n"].TAPi18n,k=Package.blaze.Blaze,m=Package.blaze.UI,d=Package.blaze.Handlebars,h=Package.spacebars.Spacebars,N=Package.htmljs.HTML;(function(){a.__checkName("pushNotificationsFlexTab"),a.pushNotificationsFlexTab=new a("Template.pushNotificationsFlexTab",function(){var e=this;return N.DIV({"class":"content"},"\n ",N.DIV({"class":"list-view push-notifications"},"\n ",N.DIV({"class":"title"},"\n ",N.H2(k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Notifications")})),"\n "),"\n ",N.FORM("\n ",N.UL({"class":"list clearfix"},"\n ",N.LI("\n ",N.LABEL(k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Desktop")})),"\n ",N.DIV("\n ",k.If(function(){return h.dataMustache(e.lookup("editing"),"desktopNotifications")},function(){return["\n ",N.LABEL(N.INPUT({type:"radio",name:"desktopNotifications",value:"all",checked:function(){return h.mustache(e.lookup("$eq"),e.lookup("desktopNotifications"),"all")}})," ",k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"All_messages")})),"\n ",N.LABEL(N.INPUT({type:"radio",name:"desktopNotifications",value:"mentions",checked:function(){return h.mustache(e.lookup("$eq"),e.lookup("desktopNotifications"),"mentions")}})," ",k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Mentions_default")})),"\n ",N.LABEL(N.INPUT({type:"radio",name:"desktopNotifications",value:"nothing",checked:function(){return h.mustache(e.lookup("$eq"),e.lookup("desktopNotifications"),"nothing")}})," ",k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Nothing")})),"\n ",N.BUTTON({type:"button","class":"button secondary cancel"},k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Cancel")})),"\n ",N.BUTTON({type:"button","class":"button primary save"},k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Save")})),"\n "]},function(){return["\n ",N.SPAN(k.View("lookup:subValue",function(){return h.mustache(e.lookup("subValue"),"desktopNotifications")})," ",N.I({"class":"icon-pencil","data-edit":"desktopNotifications"})),"\n "]}),"\n "),"\n "),"\n ",N.LI("\n ",N.LABEL(k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Mobile_push")})),"\n ",N.DIV("\n ",k.If(function(){return h.dataMustache(e.lookup("editing"),"mobilePushNotifications")},function(){return["\n ",N.LABEL(N.INPUT({type:"radio",name:"mobilePushNotifications",value:"all",checked:function(){return h.mustache(e.lookup("$eq"),e.lookup("mobilePushNotifications"),"all")}})," ",k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"All_messages")})),"\n ",N.LABEL(N.INPUT({type:"radio",name:"mobilePushNotifications",value:"mentions",checked:function(){return h.mustache(e.lookup("$eq"),e.lookup("mobilePushNotifications"),"mentions")}})," ",k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Mentions_default")})),"\n ",N.LABEL(N.INPUT({type:"radio",name:"mobilePushNotifications",value:"nothing",checked:function(){return h.mustache(e.lookup("$eq"),e.lookup("mobilePushNotifications"),"nothing")}})," ",k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Nothing")})),"\n ",N.BUTTON({type:"button","class":"button secondary cancel"},k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Cancel")})),"\n ",N.BUTTON({type:"button","class":"button primary save"},k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Save")})),"\n "]},function(){return["\n ",N.SPAN(k.View("lookup:subValue",function(){return h.mustache(e.lookup("subValue"),"mobilePushNotifications")})," ",N.I({"class":"icon-pencil","data-edit":"mobilePushNotifications"})),"\n "]}),"\n "),"\n "),"\n ",N.LI("\n ",N.LABEL(k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Email")})),"\n ",N.DIV("\n ",k.If(function(){return h.dataMustache(e.lookup("editing"),"emailNotifications")},function(){return["\n ",N.LABEL(N.INPUT({type:"radio",name:"emailNotifications",value:"all",checked:function(){return h.mustache(e.lookup("$eq"),e.lookup("emailNotifications"),"all")}})," ",k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"All_messages")})),"\n ",k.If(function(){return h.call(e.lookup("showEmailMentions"))},function(){return["\n ",N.LABEL(N.INPUT({type:"radio",name:"emailNotifications",value:"mentions",checked:function(){return h.mustache(e.lookup("$eq"),e.lookup("emailNotifications"),"mentions")}})," ",k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Mentions")})),"\n "]}),"\n ",N.LABEL(N.INPUT({type:"radio",name:"emailNotifications",value:"nothing",checked:function(){return h.mustache(e.lookup("$eq"),e.lookup("emailNotifications"),"nothing")}})," ",k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Nothing")})),"\n ",N.LABEL(N.INPUT({type:"radio",name:"emailNotifications",value:"default",checked:function(){return h.mustache(e.lookup("$eq"),e.lookup("emailNotifications"),"default")}})," ",k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Use_account_preference")})),"\n ",N.BUTTON({type:"button","class":"button secondary cancel"},k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Cancel")})),"\n ",N.BUTTON({type:"button","class":"button primary save"},k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Save")})),"\n "]},function(){return["\n ",N.SPAN(k.View("lookup:subValue",function(){return h.mustache(e.lookup("subValue"),"emailNotifications")})," ",N.I({"class":"icon-pencil","data-edit":"emailNotifications"})),"\n "]}),"\n "),"\n "),"\n ",k.Unless(function(){return h.call(e.lookup("emailVerified"))},function(){return["\n ",N.LI("\n ",N.DIV({"class":"alert alert-warning"},"\n ",k.View("lookup:_",function(){return h.mustache(e.lookup("_"),"You_wont_receive_email_notifications_because_you_have_not_verified_your_email")}),"\n "),"\n "),"\n "]}),"\n "),"\n "),"\n "),"\n ")})}).call(this),function(){a.pushNotificationsFlexTab.helpers({desktopNotifications:function(){var e=ChatSubscription.findOne({rid:Session.get("openedRoom")},{fields:{desktopNotifications:1}});return e?e.desktopNotifications:""},mobilePushNotifications:function(){var e=ChatSubscription.findOne({rid:Session.get("openedRoom")},{fields:{mobilePushNotifications:1}});return e?e.mobilePushNotifications:""},emailNotifications:function(){var e=ChatSubscription.findOne({rid:Session.get("openedRoom")},{fields:{emailNotifications:1}});return e?e.emailNotifications:""},showEmailMentions:function(){var e=ChatSubscription.findOne({rid:Session.get("openedRoom")},{fields:{t:1}});return e&&"d"!==e.t},subValue:function(e){var n,o=ChatSubscription.findOne({rid:Session.get("openedRoom")},{fields:(n={t:1},n[e]=1,n)});if(o)switch(o[e]){case"all":return t("All_messages");case"nothing":return t("Nothing");case"default":return t("Use_account_preference");case"mentions":return t("Mentions");default:return t("emailNotifications"===e?"Use_account_preference":"Mentions")}},editing:function(e){return a.instance().editing.get()===e},emailVerified:function(){return e.user().emails&&e.user().emails[0]&&e.user().emails[0].verified}}),a.pushNotificationsFlexTab.onCreated(function(){var n=this;this.editing=new ReactiveVar,this.validateSetting=function(e){var o=n.$("input[name="+e+"]:checked").val();return-1===["all","mentions","nothing","default"].indexOf(o)?(toastr.error(t("Invalid_notification_setting_s",o||"")),!1):!0},this.saveSetting=function(){var o=n.editing.get(),i=n.$("input[name="+o+"]:checked").val();n.validateSetting(o)&&e.call("saveNotificationSettings",Session.get("openedRoom"),o,i,function(e){return e?toastr.error(t(e.reason||e.message)):void n.editing.set()})}}),a.pushNotificationsFlexTab.events({"keydown input[type=text]":function(e,t){13===e.keyCode&&(e.preventDefault(),t.saveSetting())},"click [data-edit]":function(e,t){e.preventDefault(),t.editing.set($(e.currentTarget).data("edit")),setTimeout(function(){t.$("input.editing").focus().select()},100)},"click .cancel":function(e,t){e.preventDefault(),t.editing.set()},"click .save":function(e,t){e.preventDefault(),t.saveSetting()}})}.call(this),function(){e.startup(function(){i.TabBar.addButton({groups:["channel","privategroup","directmessage"],id:"push-notifications",i18nTitle:"Notifications",icon:"icon-bell-alt",template:"pushNotificationsFlexTab",order:2})})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:push-notifications"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a=Package.ecmascript.ECMAScript,t=Package.templating.Template,n=Package["rocketchat:lib"].RocketChat,s=Package["babel-runtime"].babelHelpers,i=Package["ecmascript-runtime"].Symbol,o=Package["ecmascript-runtime"].Map,c=Package["ecmascript-runtime"].Set,r=Package.promise.Promise,u=Package.blaze.Blaze,l=Package.blaze.UI,g=Package.blaze.Handlebars,m=Package.spacebars.Spacebars,d=Package["tap:i18n"].TAPi18next,p=Package["tap:i18n"].TAPi18n,P=Package.htmljs.HTML;(function(){t.room.events({"click .add-reaction":function(a){a.preventDefault(),a.stopPropagation();var t=u.getData(a.currentTarget);n.EmojiPicker.open(a.currentTarget,function(a){e.call("setReaction",":"+a+":",t._arguments[1]._id)})},"click .reactions > li:not(.add-reaction)":function(a){a.preventDefault();var t=u.getData(a.currentTarget);e.call("setReaction",$(a.currentTarget).data("emoji"),t._arguments[1]._id,function(){n.tooltip.hide()})},"mouseenter .reactions > li:not(.add-reaction)":function(e){e.stopPropagation(),n.tooltip.showElement($(e.currentTarget).find(".people").get(0),e.currentTarget)},"mouseleave .reactions > li:not(.add-reaction)":function(e){e.stopPropagation(),n.tooltip.hide()}}),e.startup(function(){n.MessageAction.addButton({id:"reaction-message",icon:"icon-people-plus",i18nLabel:"Reactions",context:["message","message-mobile"],action:function(a){var t=u.getData(a.currentTarget);a.stopPropagation(),n.EmojiPicker.open(a.currentTarget,function(a){e.call("setReaction",":"+a+":",t._arguments[1]._id)})},validation:function(){return!0},order:22})})}).call(this),function(){n.models.Messages.setReactions=function(e,a){return this.update({_id:e},{$set:{reactions:a}})},n.models.Messages.unsetReactions=function(e){return this.update({_id:e},{$unset:{reactions:1}})}}.call(this),function(){e.methods({setReaction:function(a,t){if(!e.userId())throw new e.Error(203,"User_logged_out");var s=n.models.Messages.findOne({_id:t}),i=e.user();s.reactions&&s.reactions[a]&&-1!==s.reactions[a].usernames.indexOf(i.username)?(s.reactions[a].usernames.splice(s.reactions[a].usernames.indexOf(i.username),1),0===s.reactions[a].usernames.length&&delete s.reactions[a],_.isEmpty(s.reactions)?(delete s.reactions,n.models.Messages.unsetReactions(t)):n.models.Messages.setReactions(t,s.reactions)):(s.reactions||(s.reactions={}),s.reactions[a]||(s.reactions[a]={usernames:[]}),s.reactions[a].usernames.push(i.username),n.models.Messages.setReactions(t,s.reactions))}})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:reactions"]={}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,e=Package.check.check,c=Package.check.Match,t=Package["rocketchat:lib"].RocketChat,n=Package.templating.Template,k=Package["tap:i18n"].TAPi18next,i=Package["tap:i18n"].TAPi18n,P=Package.blaze.Blaze,g=Package.blaze.UI,o=Package.blaze.Handlebars,s=Package.spacebars.Spacebars,l=Package.htmljs.HTML,r;(function(){r="object"==typeof r?r:{};var a=r;t.slashCommands.add("invite",void 0,{description:i.__("Invite_user_to_join_channel"),params:"@username"})}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:slashcommands-invite"]={}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,e=Package.check.check,c=Package.check.Match,t=Package["rocketchat:lib"].RocketChat,n=Package.templating.Template,k=Package["tap:i18n"].TAPi18next,g=Package["tap:i18n"].TAPi18n,i=Package.blaze.Blaze,o=Package.blaze.UI,P=Package.blaze.Handlebars,l=Package.spacebars.Spacebars,h=Package.htmljs.HTML,s;(function(){s="object"==typeof s?s:{};var a=s;t.slashCommands.add("join",void 0,{description:g.__("Join_the_given_channel"),params:"#channel"})}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:slashcommands-join"]={}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,e=Package.check.check,c=Package.check.Match,t=Package["rocketchat:lib"].RocketChat,k=Package.templating.Template,o=Package["tap:i18n"].TAPi18next,n=Package["tap:i18n"].TAPi18n,r=Package.blaze.Blaze,i=Package.blaze.UI,P=Package.blaze.Handlebars,g=Package.spacebars.Spacebars,s=Package.htmljs.HTML,m;(function(){m="object"==typeof m?m:{};var a=m;t.slashCommands.add("kick",function(a,e,c){var t;return t=e.trim(),""!==t?t=t.replace("@",""):void 0},{description:n.__("Remove_someone_from_room"),params:"@username"})}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:slashcommands-kick"]={}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,e=Package["rocketchat:lib"].RocketChat,t=Package["tap:i18n"].TAPi18next,n=Package["tap:i18n"].TAPi18n,s;(function(){s="object"==typeof s?s:{};var t=s,c;a.isClient?(e.slashCommands.add("leave",void 0,{description:"Leave the current channel",params:""}),e.slashCommands.add("part",void 0,{description:"Leave the current channel",params:""})):(c=function(){function t(t,s,c){var i;if("leave"===t||"part"===t)try{a.call("leaveRoom",c.rid)}catch(o){i=o,e.Notifications.notifyUser(a.userId(),"message",{_id:Random.id(),rid:c.rid,ts:new Date,msg:n.__(i.reason,null,a.user().language)})}}return t}(),e.slashCommands.add("leave",c),e.slashCommands.add("part",c))}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:slashcommands-leave"]={}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,e=Package.check.check,c=Package.check.Match,t=Package["rocketchat:lib"].RocketChat,n=Package.templating.Template,o=Package["tap:i18n"].TAPi18next,s=Package["tap:i18n"].TAPi18n,m=Package.blaze.Blaze,k=Package.blaze.UI,l=Package.blaze.Handlebars,i=Package.spacebars.Spacebars,r=Package.htmljs.HTML,P;(function(){P="object"==typeof P?P:{};var a=P;t.slashCommands.add("mute",null,{description:s.__("Mute_someone_in_room"),params:"@username"})}).call(this),function(){P="object"==typeof P?P:{};var a=P;t.slashCommands.add("unmute",null,{description:s.__("Unmute_someone_in_room"),params:"@username"})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:slashcommands-mute"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.templating.Template,n=Package.underscore._,r=Package["rocketchat:lib"].RocketChat,o=Package.blaze.Blaze,a=Package.blaze.UI,u=Package.blaze.Handlebars,c=Package.spacebars.Spacebars,l=Package["tap:i18n"].TAPi18next,i=Package["tap:i18n"].TAPi18n,s=Package.htmljs.HTML,p;(function(){p="object"==typeof p?p:{};var e=p;t.registerHelper("replace",function(e,t,n,r){return r.hash.regex===!0&&(t=new RegExp(t)),e.replace(t,n)}),t.registerHelper("match",function(e,t){return new RegExp(t).test(e)}),t.oembedBaseWidget.onCreated(function(){var e,t,n,r;return"open.spotify.com"===(null!=(e=this.data)&&null!=(t=e.parsedUrl)?t.host:void 0)&&null!=(null!=(n=this.data)&&null!=(r=n.meta)?r.ogAudio:void 0)?this.data._overrideTemplate="oembedSpotifyWidget":void 0})}).call(this),function(){t.__checkName("oembedSpotifyWidget"),t.oembedSpotifyWidget=new t("Template.oembedSpotifyWidget",function(){var e=this;return o.If(function(){return c.call(e.lookup("parsedUrl"))},function(){return["\n ",s.BLOCKQUOTE("\n ",s.A({href:"https://www.spotify.com",style:"color: #9e9ea6"},"Spotify"),s.BR(),"\n ",o.If(function(){return c.dataMustache(e.lookup("match"),c.dot(e.lookup("meta"),"ogAudio"),"spotify:artist:\\S+")},function(){return["\n ",s.A({href:function(){return c.mustache(e.lookup("url"))}},o.View("lookup:meta.ogTitle",function(){return c.makeRaw(c.mustache(c.dot(e.lookup("meta"),"ogTitle")))})),"\n "]},function(){return["\n ",s.A({href:function(){return c.mustache(e.lookup("url"))}},o.View("lookup:replace",function(){return c.makeRaw(c.mustache(e.lookup("replace"),c.dot(e.lookup("meta"),"ogDescription"),", an? (?:song|album) by (.+?) on Spotify"," - $1",c.kw({regex:!0})))})),"\n "]}),"\n ",o.If(function(){return c.call(e.lookup("collapsed"))},function(){return["\n ",s.SPAN({"class":"collapse-switch icon-right-dir","data-url":function(){return c.mustache(e.lookup("url"))},"data-collapsed":function(){return c.mustache(e.lookup("collapsed"))}}),"\n "]},function(){return["\n ",s.SPAN({"class":"collapse-switch icon-down-dir","data-url":function(){return c.mustache(e.lookup("url"))},"data-collapsed":function(){return c.mustache(e.lookup("collapsed"))}}),"\n ",s.IFRAME({width:"300",height:"380",src:function(){return["https://embed.spotify.com/?uri=",c.mustache(c.dot(e.lookup("meta"),"ogAudio"))]},frameborder:"0"}),s.BR(),"\n "]}),"\n "),"\n "]})})}.call(this),function(){p="object"==typeof p?p:{};var e=p,t;t=function(){function e(){}var t;return t=function(e,t,r){var o,a,u,c,l,i,s;if(n.trim(t)){for(l=t.split(/(```\w*[\n ]?[\s\S]*?```+?)|(`(?:[^`]+)`)/),s=[],u=a=0,c=l.length;c>a;u=++a)i=l[u],(null!=(null!=i?i.length:void 0))>0?(o=i.match(/(?:```(\w*)[\n ]?([\s\S]*?)```+?)|(?:`(?:[^`]+)`)/),s.push(null==o?r(e,l,u,i):void 0)):s.push(void 0);return s}},e.transform=function(e){var r,o;return o=[],Array.isArray(e.urls)&&(o=o.concat(e.urls)),r=!1,t(e,e.msg,function(e,t,a,u){var c,l,i,s,p,f;for(s=/(?:^|\s)spotify:([^:\s]+):([^:\s]+)(?::([^:\s]+))?(?::(\S+))?(?:\s|$)/g,p=[];l=s.exec(u);)c=n.filter(l.slice(1),function(e){return null!=e}),i=n.map(c,function(e){return n.escape(e)}).join("/"),f="https://open.spotify.com/"+i,o.push({url:f,source:"spotify:"+c.join(":")}),p.push(r=!0);return p}),r&&(e.urls=o),e},e.render=function(e){return t(e,e.html,function(e,t,n,r){var o,a,u,c,l,i;if(Array.isArray(e.urls)){for(i=e.urls,o=0,u=i.length;u>o;o++)a=i[o],a.source&&(c=a.source.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),l=new RegExp("(^|\\s)"+c+"(\\s|$)","g"),t[n]=r.replace(l,'$1<a href="'+a.url+'" target="_blank">'+a.source+"</a>$2"));return e.html=t.join("")}}),e},e}(),r.callbacks.add("beforeSaveMessage",t.transform,r.callbacks.priority.LOW),r.callbacks.add("renderMessage",t.render),r.Spotify=t}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:spotify"]={}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,t=Package["rocketchat:lib"].RocketChat,e=Package["tap:i18n"].TAPi18next,c=Package["tap:i18n"].TAPi18n,i;(function(){i="object"==typeof i?i:{};var a=i;t.statistics={}}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:statistics"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.ejson.EJSON,a=Package.underscore._,n,c;(function(){n={obj:function(e){var a=document.getElementById(e);return a?t.parse(a.innerHTML):void 0},meta:function(e){return this.metas[e]},parseMetas:function(){for(var e=document.getElementsByTagName("meta"),t=0;t<e.length;t++)this.metas[e[t].getAttribute("id")]=e[t].getAttribute("content")},metas:{}},n.parseMetas(),c={getObj:n.obj,getMeta:n.meta}}).call(this),"undefined"==typeof Package&&(Package={}),Package["meteorhacks:inject-initial"]={Injected:n,Inject:c}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.mongo.Mongo,o=Package.ecmascript.ECMAScript,a=Package.templating.Template,r=Package.underscore._,c=Package["rocketchat:lib"].RocketChat,i=Package["meteorhacks:inject-initial"].Injected,l=Package["meteorhacks:inject-initial"].Inject,u=Package["meteorhacks:fast-render"].FastRender,s=Package["meteorhacks:fast-render"].__init_fast_render,d=Package["babel-runtime"].babelHelpers,g=Package["ecmascript-runtime"].Symbol,p=Package["ecmascript-runtime"].Map,m=Package["ecmascript-runtime"].Set,f=Package.promise.Promise,v=Package.blaze.Blaze,h=Package.blaze.UI,k=Package.blaze.Handlebars,C=Package.spacebars.Spacebars,w=Package["tap:i18n"].TAPi18next,_=Package["tap:i18n"].TAPi18n,T=Package.htmljs.HTML,b;(function(){a.body.addContent(function(){var e=this;return""}),e.startup(a.body.renderToDocument),a.__checkName("main"),a.main=new a("Template.main",function(){var e=this;return v.If(function(){return C.call(e.lookup("subsReady"))},function(){return["\n ",v.Unless(function(){return C.call(e.lookup("logged"))},function(){return["\n ",T.DIV({"class":"connection-status"},"\n ",C.include(e.lookupTemplate("status")),"\n "),"\n ",v.If(function(){return C.call(e.lookup("useIframe"))},function(){return["\n ",v.If(function(){return C.call(e.lookup("iframeUrl"))},function(){return["\n ",T.IFRAME({src:function(){return C.mustache(e.lookup("iframeUrl"))},style:"height: 100%; width: 100%;"}),"\n "]}),"\n "]},function(){return["\n ",v._TemplateWith(function(){return{center:C.call("loginForm")}},function(){return C.include(e.lookupTemplate("loginLayout"))}),"\n "]}),"\n ",T.SCRIPT(v.View("lookup:CustomScriptLoggedOut",function(){return C.makeRaw(C.mustache(e.lookup("CustomScriptLoggedOut")))})),"\n "]},function(){return["\n ",v.Unless(function(){return C.call(e.lookup("hasUsername"))},function(){return["\n ",C.include(e.lookupTemplate("username")),"\n "]},function(){return["\n ",v.If(function(){return C.call(e.lookup("requirePasswordChange"))},function(){return["\n ",v._TemplateWith(function(){return{center:C.call("resetPassword")}},function(){return C.include(e.lookupTemplate("loginLayout"))}),"\n "]},function(){return["\n ",C.include(e.lookupTemplate("spotlight")),"\n ",v._TemplateWith(function(){return{overlay:C.call(!0)}},function(){return C.include(e.lookupTemplate("videoCall"))}),"\n ",T.DIV({id:"user-card-popover"}),"\n ",T.DIV({id:"rocket-chat","class":"menu-nav menu-closed"},"\n ",T.DIV({"class":"connection-status"},"\n ",C.include(e.lookupTemplate("status")),"\n "),"\n ",v.Unless(function(){return C.call(e.lookup("modal"))},function(){return["\n ",T.DIV({"class":"flex-tab-bar",role:"toolbar"},"\n ",C.include(e.lookupTemplate("flexTabBar")),"\n "),"\n "]}),"\n ",T.DIV({"class":function(){return["main-content ",C.mustache(e.lookup("flexOpened"))," ",C.mustache(e.lookup("flexOpenedRTC1"))," ",C.mustache(e.lookup("flexOpenedRTC2"))," ",v.If(function(){return C.call(e.lookup("modal"))},function(){return"main-modal"})]}},"\n ",v._TemplateWith(function(){return{template:C.call(e.lookup("center"))}},function(){return C.include(function(){return C.call(a.__dynamic)})}),"\n "),"\n ",v.Unless(function(){return C.call(e.lookup("modal"))},function(){return["\n ",C.include(e.lookupTemplate("sideNav")),"\n "]}),"\n "),"\n ",C.include(e.lookupTemplate("audioNotification")),"\n "]}),"\n "]}),"\n ",T.SCRIPT(v.View("lookup:CustomScriptLoggedIn",function(){return C.makeRaw(C.mustache(e.lookup("CustomScriptLoggedIn")))})),"\n "]}),"\n "]},function(){return["\n ",C.include(e.lookupTemplate("pageLoading")),"\n "]})})}).call(this),function(){a.__checkName("loading"),a.loading=new a("Template.loading",function(){var e=this;return T.SVG({"class":"rocket-loader",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"200px",height:"200px",viewBox:"0 0 200 200","enable-background":"new 0 0 200 200","xml:space":"preserve"},"\n ",T.G("\n ",T.PATH({"class":"outer",fill:"#CC3333",d:"M188.146,99.881c0-8.852-2.647-17.341-7.873-25.232c-4.691-7.083-11.263-13.354-19.533-18.637\n c-15.967-10.199-36.953-15.817-59.089-15.817c-7.395,0-14.682,0.625-21.751,1.863c-4.387-4.105-9.521-7.798-14.953-10.72\n c-29.024-14.066-53.094-0.331-53.094-0.331s22.379,18.383,18.739,34.499c-10.012,9.931-15.438,21.906-15.438,34.375\n c0,0.04,0.002,0.08,0.003,0.119c-0.001,0.04-0.003,0.08-0.003,0.119c0,12.469,5.426,24.443,15.438,34.375\n c3.64,16.114-18.739,34.498-18.739,34.498s24.069,13.735,53.094-0.33c5.433-2.922,10.566-6.615,14.953-10.721\n c7.069,1.239,14.356,1.863,21.751,1.863c22.136,0,43.122-5.617,59.089-15.816c8.271-5.282,14.842-11.554,19.533-18.637\n c5.226-7.892,7.873-16.38,7.873-25.232c0-0.04-0.002-0.08-0.002-0.119S188.146,99.92,188.146,99.881z"}),"\n ",T.PATH({"class":"inner",fill:"#FFFFFF",d:"M101.686,51.726c41.843,0,75.765,21.667,75.765,48.395c0,26.728-33.922,48.396-75.765,48.396\n c-9.317,0-18.239-1.076-26.483-3.042c-8.378,10.08-26.809,24.092-44.713,19.562c5.823-6.255,14.452-16.825,12.604-34.233\n c-10.731-8.351-17.173-19.037-17.173-30.683C25.921,73.393,59.842,51.726,101.686,51.726"}),"\n ",T.G("\n ",T.CIRCLE({fill:"#CC3333",cx:"136.68",cy:"100.121",r:"10.063"}),"\n ",T.CIRCLE({fill:"#CC3333",cx:"101.685",cy:"100.121",r:"10.064"}),"\n ",T.CIRCLE({fill:"#CC3333",cx:"66.691",cy:"100.121",r:"10.064"}),"\n "),"\n ",T.PATH({"class":"inner",fill:"#CCCCCC",d:"M101.686,142.149c-9.317,0-18.239-0.933-26.483-2.636c-7.397,7.713-22.634,18.081-38.425,17.699\n c-2.079,3.153-4.34,5.732-6.288,7.824c17.904,4.53,36.335-9.481,44.713-19.562c8.244,1.966,17.166,3.042,26.483,3.042\n c41.507,0,75.214-21.324,75.752-47.755C176.899,123.67,143.192,142.149,101.686,142.149z"}),"\n "),"\n ")})}.call(this),function(){a.__checkName("pageLoading"),a.pageLoading=new a("Template.pageLoading",function(){var e=this;return T.Raw('<div class="page-loading">\n <div class="spinner">\n <div class="rect1"></div>\n <div class="rect2"></div>\n <div class="rect3"></div>\n <div class="rect4"></div>\n <div class="rect5"></div>\n </div>\n </div>')})}.call(this),function(){a.__checkName("error"),a.error=new a("Template.error",function(){var e=this;return T.SECTION({"class":"full-page"},"\n ",T.DIV({"class":"wrapper"},"\n ",T.Raw('<header>\n <a class="logo" href="/">\n <img src="images/logo/logo.svg?v=3">\n </a>\n </header>'),"\n ",T.H1(v.View("lookup:_",function(){return C.mustache(e.lookup("_"),"Not_found_or_not_allowed")})),"\n "),"\n ")})}.call(this),function(){a.__checkName("logoLayout"),a.logoLayout=new a("Template.logoLayout",function(){var e=this;return T.SECTION({"class":"full-page"},"\n ",T.DIV({"class":"wrapper"},"\n ",T.Raw('<header>\n <a class="logo" href="/">\n <img src="images/logo/logo.svg?v=3">\n </a>\n </header>'),"\n ",v._TemplateWith(function(){return{template:C.call(e.lookup("render"))}},function(){return C.include(function(){return C.call(a.__dynamic)})}),"\n "),"\n ")})}.call(this),function(){b="object"==typeof b?b:{};var n=b;a.body.onRendered(function(){var n;return n=new Clipboard(".clipboard"),$(document.body).on("keydown",function(n){var o;return 80!==n.keyCode||n.ctrlKey!==!0&&n.metaKey!==!0||n.shiftKey!==!1||(n.preventDefault(),n.stopPropagation(),spotlight.show()),27===n.keyCode&&spotlight.hide(),o=Session.get("unread"),27===n.keyCode&&n.shiftKey===!0&&null!=o&&""!==o?(n.preventDefault(),n.stopPropagation(),swal({title:t("Clear_all_unreads_question"),type:"warning",confirmButtonText:t("Yes_clear_all"),showCancelButton:!0,cancelButtonText:t("Cancel"),confirmButtonColor:"#DD6B55"},function(){var n,t,o,a,r,c;for(c=ChatSubscription.find({open:!0},{fields:{unread:1,alert:1,rid:1,t:1,name:1,ls:1}}),o=c.fetch(),a=[],n=0,t=o.length;t>n;n++)r=o[n],a.push(r.alert||r.unread>0?e.call("readMessages",r.rid):void 0);return a})):void 0}),Tracker.autorun(function(e){var n,t,o,a,r;return r=window,n=document,a="script",o="dataLayer",t=c.settings.get("GoogleTagManager_id"),Match.test(t,String)&&""!==t.trim()?(e.stop(),function(e,n,t,o,a){var r,c,i;return e[o]=e[o]||[],e[o].push({"gtm.start":(new Date).getTime(),event:"gtm.js"}),c=n.getElementsByTagName(t)[0],i=n.createElement(t),r="dataLayer"!==o?"&l="+o:"",i.async=!0,i.src="//www.googletagmanager.com/gtm.js?id="+a+r,c.parentNode.insertBefore(i,c)}(r,n,a,o,t)):void 0}),Tracker.autorun(function(e){return c.settings.get("Meta_language")?(e.stop(),Meta.set({name:"http-equiv",property:"content-language",content:c.settings.get("Meta_language")}),Meta.set({name:"name",property:"language",content:c.settings.get("Meta_language")})):void 0}),Tracker.autorun(function(e){return c.settings.get("Meta_fb_app_id")?(e.stop(),Meta.set({name:"property",property:"fb:app_id",content:c.settings.get("Meta_fb_app_id")})):void 0}),Tracker.autorun(function(e){return c.settings.get("Meta_robots")?(e.stop(),Meta.set({name:"name",property:"robots",content:c.settings.get("Meta_robots")})):void 0}),Tracker.autorun(function(e){return c.settings.get("Meta_google-site-verification")?(e.stop(),Meta.set({name:"name",property:"google-site-verification",content:c.settings.get("Meta_google-site-verification")})):void 0}),Tracker.autorun(function(e){return c.settings.get("Meta_msvalidate01")?(e.stop(),Meta.set({name:"name",property:"msvalidate.01",content:c.settings.get("Meta_msvalidate01")})):void 0}),Tracker.autorun(function(e){return e.stop(),Meta.set({name:"name",property:"application-name",content:c.settings.get("Site_Name")}),Meta.set({name:"name",property:"apple-mobile-web-app-title",content:c.settings.get("Site_Name")})}),e.isCordova?$(document.body).addClass("is-cordova"):void 0}),a.main.helpers({siteName:function(){return c.settings.get("Site_Name")},logged:function(){return null!=e.userId()?($("html").addClass("noscroll").removeClass("scroll"),!0):($("html").addClass("scroll").removeClass("noscroll"),!1)},useIframe:function(){return c.iframeLogin.reactiveEnabled.get()},iframeUrl:function(){return c.iframeLogin.reactiveIframeUrl.get()},subsReady:function(){return null==e.userId()||FlowRouter.subsReady("userData","activeUsers")},hasUsername:function(){return null!=e.userId()&&null!=e.user().username},flexOpened:function(){return window.rocketDebug&&console.log("layout.helpers flexOpened"),c.TabBar.isFlexOpen()?"flex-opened":void 0},flexOpenedRTC1:function(){return window.rocketDebug&&console.log("layout.helpers flexOpenedRTC1"),Session.equals("rtcLayoutmode",1)?"layout1":void 0},flexOpenedRTC2:function(){return window.rocketDebug&&console.log("layout.helpers flexOpenedRTC2"),Session.get("rtcLayoutmode")>1?"layout2":void 0},requirePasswordChange:function(){var n;return(null!=(n=e.user())?n.requirePasswordChange:void 0)===!0},CustomScriptLoggedOut:function(){return c.settings.get("Custom_Script_Logged_Out")},CustomScriptLoggedIn:function(){return c.settings.get("Custom_Script_Logged_In")}}),a.main.events({"click .burger":function(){var e;return window.rocketDebug&&console.log("room click .burger"),e=$("#rocket-chat"),menu.toggle()},touchstart:function(e,n){return document.body.clientWidth>780?void 0:(n.touchstartX=void 0,n.touchstartY=void 0,n.movestarted=!1,n.blockmove=!1,$(e.currentTarget).closest(".main-content").length>0?(n.touchstartX=e.originalEvent.touches[0].clientX,n.touchstartY=e.originalEvent.touches[0].clientY,n.mainContent=$(".main-content"),n.wrapper=$(".messages-box > .wrapper")):void 0)},touchmove:function(e,n){var t,o,a,r,c;return null!=n.touchstartX&&(c=e.originalEvent.touches[0],a=n.touchstartX-c.clientX,r=n.touchstartY-c.clientY,t=Math.abs(a),o=Math.abs(r),n.movestarted!==!0&&n.blockmove!==!0&&o>5&&(n.blockmove=!0),n.blockmove!==!0&&(n.movestarted===!0||t>5))?(n.movestarted=!0,menu.isOpen()?n.left=260-a:n.left=-a,n.left>260&&(n.left=260),n.left<0&&(n.left=0),n.mainContent.addClass("notransition"),n.mainContent.css("transform","translate("+n.left+"px)"),n.wrapper.css("overflow","hidden")):void 0},touchend:function(e,n){return n.movestarted===!0?(n.mainContent.removeClass("notransition"),n.mainContent.css("transform",""),n.wrapper.css("overflow",""),menu.isOpen()?n.left>=200?menu.open():menu.close():n.left>=60?menu.open():menu.close()):void 0}}),a.main.onRendered(function(){return isRtl(localStorage.getItem("userLanguage"))?$("html").addClass("rtl"):$("html").removeClass("rtl"),$("#initial-page-loading").remove(),window.addEventListener("focus",function(){return e.setTimeout(function(){return $(":focus").is("INPUT,TEXTAREA")?void 0:$(".input-message").focus()},100)})})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:ui-master"]={}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,e=Package.ecmascript.ECMAScript,i=Package.templating.Template,a=Package["rocketchat:lib"].RocketChat,o=Package["babel-runtime"].babelHelpers,c=Package["ecmascript-runtime"].Symbol,n=Package["ecmascript-runtime"].Map,s=Package["ecmascript-runtime"].Set,l=Package.promise.Promise,r=Package.blaze.Blaze,p=Package.blaze.UI,u=Package.blaze.Handlebars,h=Package.spacebars.Spacebars,m=Package["tap:i18n"].TAPi18next,d=Package["tap:i18n"].TAPi18n,k=Package.htmljs.HTML;(function(){i.__checkName("rocketchatTooltip"),i.rocketchatTooltip=new i("Template.rocketchatTooltip",function(){var t=this;return k.Raw('<div class="tooltip">\n <div class="content">\n </div>\n </div>')})}).call(this),function(){a.tooltip={source:null,initiated:!1,opened:!1,init:function(){this.initiated||(this.initiated=!0,r.render(i.rocketchatTooltip,document.body))},showElement:function(t,e){var i=this;this.opened||(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){i.timeout=null,i.source=e,$(".tooltip").empty().append($(t).clone().show()),i.setPosition().addClass("show"),i.opened=!0},300))},hide:function(){this.timeout&&clearTimeout(this.timeout),this.opened&&($(".tooltip").removeClass("show").empty(),this.opened=!1)},setPosition:function(){var t=$(this.source).offset(),e=$(this.source).outerWidth(),i=$(".tooltip"),a=t.top-i.outerHeight()-5,o=t.left;return o=o+e/2-i.outerWidth()/2,0>o&&(o=0),0>a?(a=t.top+$(this.source).outerHeight()+5,i.addClass("bellow")):i.removeClass("bellow"),i.css({top:a+"px",left:o+"px"})}}}.call(this),function(){i.main.onCreated(function(){a.tooltip.init()})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:tooltip"]={}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,e=Package["rocketchat:lib"].RocketChat,t=Package["tap:i18n"].TAPi18next,c=Package["tap:i18n"].TAPi18n;"undefined"==typeof Package&&(Package={}),Package["rocketchat:tutum"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.ecmascript.ECMAScript,o=Package.templating.Template,a=Package.underscore._,u=Package["rocketchat:lib"].RocketChat,r=Package.sha.SHA256,i=Package["babel-runtime"].babelHelpers,l=Package["ecmascript-runtime"].Symbol,c=Package["ecmascript-runtime"].Map,p=Package["ecmascript-runtime"].Set,f=Package.promise.Promise,m=Package.blaze.Blaze,d=Package.blaze.UI,_=Package.blaze.Handlebars,h=Package.spacebars.Spacebars,g=Package["tap:i18n"].TAPi18next,k=Package["tap:i18n"].TAPi18n,v=Package.htmljs.HTML,w;(function(){o.__checkName("account"),o.account=new o("Template.account",function(){var e=this;return v.SECTION({"class":"page-container page-home page-static"},"\n ",v.HEAD({"class":"fixed-title"},"\n ",h.include(e.lookupTemplate("burger")),"\n ",v.H2("\n ",v.SPAN({"class":"room-title"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"User_Settings")})),"\n "),"\n "),"\n ")})}).call(this),function(){o.__checkName("accountFlex"),o.accountFlex=new o("Template.accountFlex",function(){var e=this;return[v.HEADER("\n ",v.DIV("\n ",v.H4(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"My_Account")})),"\n "),"\n "),"\n ",v.DIV({"class":"content"},"\n ",v.DIV({"class":"wrapper"},"\n ",v.UL("\n ",v.LI("\n ",v.A({href:function(){return h.mustache(e.lookup("pathFor"),"account",h.kw({group:"preferences"}))},"class":"account-link"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Preferences")})),"\n ",m.If(function(){return h.call(e.lookup("allowUserProfileChange"))},function(){return["\n ",v.A({href:function(){return h.mustache(e.lookup("pathFor"),"account",h.kw({group:"profile"}))},"class":"account-link"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Profile")})),"\n "]}),"\n ",m.If(function(){return h.call(e.lookup("allowUserAvatarChange"))},function(){return["\n ",v.A({href:function(){return h.mustache(e.lookup("pathFor"),"changeAvatar")},"class":"account-link"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Avatar")})),"\n "]}),"\n \n "),"\n "),"\n "),"\n ")]})}.call(this),function(){o.__checkName("accountPreferences"),o.accountPreferences=new o("Template.accountPreferences",function(){var e=this;return v.SECTION({"class":"page-container page-home page-static"},"\n ",v.HEAD({"class":"fixed-title"},"\n ",h.include(e.lookupTemplate("burger")),"\n ",v.H2("\n ",v.SPAN({"class":"room-title"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Preferences")})),"\n "),"\n "),"\n ",v.DIV({"class":"content"},"\n ",v.DIV({"class":"rocket-form"},"\n ",v.FIELDSET("\n ",v.DIV({"class":"section"},"\n ",v.H1(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Localization")})),"\n ",v.DIV({"class":"section-content"},"\n ",v.DIV({"class":"input-line"},"\n ",v.LABEL({"for":"language"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Language")})),"\n ",v.DIV("\n ",v.SELECT({id:"language","class":"required"},"\n ",m.Each(function(){return h.call(e.lookup("languages"))},function(){return["\n ",v.OPTION({value:function(){return h.mustache(e.lookup("key"))},selected:function(){return h.mustache(e.lookup("userLanguage"),e.lookup("key"))},dir:"auto"},m.View("lookup:name",function(){return h.mustache(e.lookup("name"))})),"\n "]}),"\n "),"\n "),"\n "),"\n "),"\n "),"\n ",v.DIV({"class":"section"},"\n ",v.H1(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Messages")})),"\n ",v.DIV({"class":"section-content"},"\n ",v.DIV({"class":"input-line double-col"},"\n ",v.LABEL(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Desktop_Notifications")})),"\n ",v.DIV("\n ",m.If(function(){return h.call(e.lookup("desktopNotificationEnabled"))},function(){return["\n ",v.LABEL(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Desktop_Notifications_Enabled")})),"\n ",v.LABEL(v.BUTTON({"class":"button test-notifications"},v.I({"class":"icon-comment-empty"})," ",v.SPAN(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Test_Desktop_Notifications")})))),"\n "]},function(){return["\n ",m.If(function(){return h.call(e.lookup("desktopNotificationDisabled"))},function(){return["\n ",v.LABEL(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Desktop_Notifications_Disabled")})),"\n "]},function(){return["\n ",v.LABEL(v.BUTTON({"class":"button enable-notifications"},v.I({"class":"icon-comment-empty"})," ",v.SPAN(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Enable_Desktop_Notifications")})))),"\n "]}),"\n "]}),"\n "),"\n "),"\n ",v.DIV({"class":"input-line double-col"},"\n ",v.LABEL(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Use_Emojis")})),"\n ",v.DIV("\n ",v.LABEL(v.INPUT({type:"radio",name:"useEmojis",value:"1",checked:function(){return h.mustache(e.lookup("checked"),"useEmojis",!0,!0)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"True")})),"\n ",v.LABEL(v.INPUT({type:"radio",name:"useEmojis",value:"0",checked:function(){return h.mustache(e.lookup("checked"),"useEmojis",!1)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"False")})),"\n "),"\n "),"\n ",v.DIV({"class":"input-line double-col",id:"convertAsciiEmoji"},"\n ",v.LABEL(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Convert_Ascii_Emojis")})),"\n ",v.DIV("\n ",v.LABEL(v.INPUT({type:"radio",name:"convertAsciiEmoji",value:"1",checked:function(){return h.mustache(e.lookup("checked"),"convertAsciiEmoji",!0,!0)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"True")})),"\n ",v.LABEL(v.INPUT({type:"radio",name:"convertAsciiEmoji",value:"0",checked:function(){return h.mustache(e.lookup("checked"),"convertAsciiEmoji",!1)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"False")})),"\n "),"\n "),"\n ",v.DIV({"class":"input-line double-col",id:"autoImageLoad"},"\n ",v.LABEL(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Auto_Load_Images")})),"\n ",v.DIV("\n ",v.LABEL(v.INPUT({type:"radio",name:"autoImageLoad",value:"1",checked:function(){return h.mustache(e.lookup("checked"),"autoImageLoad",!0,!0)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"True")})),"\n ",v.LABEL(v.INPUT({type:"radio",name:"autoImageLoad",value:"0",checked:function(){return h.mustache(e.lookup("checked"),"autoImageLoad",!1)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"False")})),"\n "),"\n "),"\n ",v.DIV({"class":"input-line double-col",id:"saveMobileBandwidth"},"\n ",v.LABEL(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Save_Mobile_Bandwidth")})),"\n ",v.DIV("\n ",v.LABEL(v.INPUT({type:"radio",name:"saveMobileBandwidth",value:"1",checked:function(){return h.mustache(e.lookup("checked"),"saveMobileBandwidth",!0,!0)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"True")})),"\n ",v.LABEL(v.INPUT({type:"radio",name:"saveMobileBandwidth",value:"0",checked:function(){return h.mustache(e.lookup("checked"),"saveMobileBandwidth",!1)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"False")})),"\n "),"\n "),"\n ",v.DIV({"class":"input-line double-col",id:"collapseMediaByDefault"},"\n ",v.LABEL(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Collapse_Embedded_Media_By_Default")})),"\n ",v.DIV("\n ",v.LABEL(v.INPUT({type:"radio",name:"collapseMediaByDefault",value:"1",checked:function(){return h.mustache(e.lookup("checked"),"collapseMediaByDefault",!0)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"True")})),"\n ",v.LABEL(v.INPUT({type:"radio",name:"collapseMediaByDefault",value:"0",checked:function(){return h.mustache(e.lookup("checked"),"collapseMediaByDefault",!1,!0)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"False")})),"\n "),"\n "),"\n ",v.DIV({"class":"input-line double-col",id:"compactView"},"\n ",v.LABEL(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Compact_View")})),"\n ",v.DIV("\n ",v.LABEL(v.INPUT({type:"radio",name:"compactView",value:"1",checked:function(){return h.mustache(e.lookup("checked"),"compactView",!0)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"True")})),"\n ",v.LABEL(v.INPUT({type:"radio",name:"compactView",value:"0",checked:function(){return h.mustache(e.lookup("checked"),"compactView",!1,!0)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"False")})),"\n "),"\n "),"\n ",v.DIV({"class":"input-line double-col",id:"unreadRoomsMode"},"\n ",v.LABEL(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Unread_Rooms_Mode")})),"\n ",v.DIV("\n ",v.LABEL(v.INPUT({type:"radio",name:"unreadRoomsMode",value:"1",checked:function(){return h.mustache(e.lookup("checked"),"unreadRoomsMode",!0)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"True")})),"\n ",v.LABEL(v.INPUT({type:"radio",name:"unreadRoomsMode",value:"0",checked:function(){return h.mustache(e.lookup("checked"),"unreadRoomsMode",!1,!0)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"False")})),"\n "),"\n "),"\n ",v.DIV({"class":"input-line double-col",id:"emailNotificationMode"},"\n ",v.LABEL(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Email_Notification_Mode")})),"\n ",v.DIV("\n ",v.SELECT({"class":"input-monitor",name:"emailNotificationMode"},"\n ",v.OPTION({value:"disabled",selected:function(){return h.mustache(e.lookup("selected"),"emailNotificationMode","disabled",!1)}},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Email_Notification_Mode_Disabled")})),"\n ",v.OPTION({value:"all",selected:function(){return h.mustache(e.lookup("selected"),"emailNotificationMode","all",!0)}},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Email_Notification_Mode_All")})),"\n "),"\n "),"\n ",v.DIV({"class":"info"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"You_need_to_verifiy_your_email_address_to_get_notications")})),"\n "),"\n "),"\n "),"\n ",v.DIV({"class":"section"},"\n ",v.H1(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Highlights")})),"\n ",v.DIV({"class":"section-content"},"\n ",v.DIV({"class":"input-line double-col"},"\n ",v.LABEL(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Highlights_List")})),"\n ",v.DIV("\n ",v.LABEL(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Highlights_How_To")})),"\n ",v.TEXTAREA({name:"highlights",id:"highlights",cols:"30",rows:"10",value:function(){return h.mustache(e.lookup("highlights"))}}),"\n "),"\n "),"\n "),"\n "),"\n ",v.DIV({"class":"section"},"\n ",v.H1(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Sound")})),"\n ",v.DIV({"class":"section-content"},"\n ",v.DIV({"class":"input-line double-col"},"\n ",v.LABEL(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Disable_New_Room_Notification")})),"\n ",v.DIV("\n ",v.LABEL(v.INPUT({type:"radio",name:"disableNewRoomNotification",value:"1",checked:function(){return h.mustache(e.lookup("checked"),"disableNewRoomNotification",!0)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"True")})),"\n ",v.LABEL(v.INPUT({type:"radio",name:"disableNewRoomNotification",value:"0",checked:function(){return h.mustache(e.lookup("checked"),"disableNewRoomNotification",!1,!0)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"False")})),"\n "),"\n "),"\n ",v.DIV({"class":"input-line double-col"},"\n ",v.LABEL(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Disable_New_Message_Notification")})),"\n ",v.DIV("\n ",v.LABEL(v.INPUT({type:"radio",name:"disableNewMessageNotification",value:"1",checked:function(){return h.mustache(e.lookup("checked"),"disableNewMessageNotification",!0)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"True")})),"\n ",v.LABEL(v.INPUT({type:"radio",name:"disableNewMessageNotification",value:"0",checked:function(){return h.mustache(e.lookup("checked"),"disableNewMessageNotification",!1,!0)}})," ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"False")})),"\n "),"\n "),"\n "),"\n "),"\n "),"\n ",v.DIV({"class":"submit"},"\n ",v.BUTTON({"class":"button"},v.Raw('<i class="icon-send"></i>'),v.SPAN(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Save_changes")}))),"\n "),"\n "),"\n "),"\n ")})}.call(this),function(){o.__checkName("accountProfile"),o.accountProfile=new o("Template.accountProfile",function(){var e=this;return v.SECTION({"class":"page-container page-home page-static"},"\n ",v.HEAD({"class":"fixed-title"},"\n ",h.include(e.lookupTemplate("burger")),"\n ",v.H2("\n ",v.SPAN({"class":"room-title"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Profile")})),"\n "),"\n "),"\n ",v.DIV({"class":"content"},"\n ",v.DIV({"class":"rocket-form"},"\n ",v.FIELDSET("\n ",v.DIV({"class":"input-line"},"\n ",v.LABEL({"for":"realname"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Name")})),"\n ",v.DIV("\n ",v.INPUT({type:"text",name:"realname",id:"realname",value:function(){return h.mustache(e.lookup("realname"))}}),"\n "),"\n "),"\n ",v.DIV({"class":"input-line"},"\n ",v.LABEL({"for":"username"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Username")})),"\n ",v.DIV("\n ",m.If(function(){return h.call(e.lookup("allowUsernameChange"))},function(){return["\n ",v.INPUT({type:"text",name:"username",id:"username",value:function(){return h.mustache(e.lookup("username"))}}),"\n "]},function(){return["\n ",v.INPUT({type:"text",name:"username",id:"username",value:function(){return h.mustache(e.lookup("username"))},readonly:"readonly",title:function(){return h.mustache(e.lookup("usernameChangeDisabled"))}}),"\n "]}),"\n "),"\n "),"\n ",v.DIV({"class":"input-line"},"\n ",v.LABEL({"for":"email"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"E-mail")})),"\n ",v.DIV("\n ",m.If(function(){return h.call(e.lookup("emailVerified"))},function(){return["\n ",v.DIV({"class":"right"},"\n ",v.I({"class":"icon-ok green",title:function(){return h.mustache(e.lookup("_"),"Email_verified")}}),"\n "),"\n "]}),"\n ",m.If(function(){return h.call(e.lookup("allowEmailChange"))},function(){return["\n ",v.INPUT({type:"email",name:"email",id:"email",value:function(){return h.mustache(e.lookup("email"))}}),"\n "]},function(){return["\n ",v.INPUT({type:"email",name:"email",id:"email",value:function(){return h.mustache(e.lookup("email"))},readonly:"readonly",title:function(){return h.mustache(e.lookup("emailChangeDisabled"))}}),"\n "]}),"\n ",m.Unless(function(){return h.call(e.lookup("emailVerified"))},function(){return["\n ",v.DIV({"class":"text-right"},"\n ",v.BUTTON({"class":"button",id:"resend-verification-email"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Resend_verification_email")})),"\n "),"\n "]}),"\n "),"\n "),"\n ",v.DIV({"class":"input-line"},"\n ",v.LABEL({"for":"password"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"New_password")})),"\n ",v.DIV("\n ",m.If(function(){return h.call(e.lookup("allowPasswordChange"))},function(){return["\n ",v.INPUT({type:"password",name:"password",id:"password"}),"\n "]},function(){return["\n ",v.INPUT({type:"password",name:"password",id:"password",readonly:"readonly",title:function(){return h.mustache(e.lookup("passwordChangeDisabled"))}}),"\n "]}),"\n "),"\n "),"\n "),"\n ",v.DIV({"class":"submit"},"\n ",v.BUTTON({"class":"button"},v.Raw('<i class="icon-send"></i>'),v.SPAN(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Save_changes")}))),"\n "),"\n ",v.DIV({"class":"logoutOthers"},"\n ",v.BUTTON({"class":"button red"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Logout_Others")})),"\n "),"\n ",m.If(function(){return h.call(e.lookup("allowDeleteOwnAccount"))},function(){return["\n ",v.DIV({"class":"delete-account text-right"},"\n ",v.BUTTON({"class":"button red"},v.I({"class":"icon-trash"}),v.SPAN(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Delete_my_account")}))),"\n "),"\n "]}),"\n "),"\n "),"\n ")})}.call(this),function(){o.__checkName("avatar"),o.avatar=new o("Template.avatar",function(){var e=this;return v.DIV({"class":"avatar"},"\n ",v.DIV({"class":"avatar-image",style:function(){return h.mustache(e.lookup("imageUrl"))}}),"\n ")})}.call(this),function(){o.__checkName("avatarSuggestion"),o.avatarSuggestion=new o("Template.avatarSuggestion",function(){var e=this;return m.If(function(){return h.call(e.lookup("."))},function(){return["\n ",v.DIV({"class":"avatar-suggestion-item"},"\n ",v.DIV({"class":"avatar",style:function(){return["background-image: url(",h.mustache(e.lookup("blob")),");"]}},"\n "),"\n ",v.DIV({"class":"action"},"\n ",v.BUTTON({type:"button","class":function(){return["button primary ",h.mustache(e.lookup("service"))," select-service"]}},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Use_service_avatar",e.lookup("service"))})),"\n "),"\n "),"\n "]})}),o.__checkName("avatarSuggestionLogin"),o.avatarSuggestionLogin=new o("Template.avatarSuggestionLogin",function(){var e=this;return m.If(function(){return h.call(e.lookup("."))},function(){return["\n ",v.DIV({"class":"avatar-suggestion-item"},"\n ",v.DIV({"class":"avatar question-mark icon-user"}),"\n ",v.DIV({"class":"action"},"\n ",v.BUTTON({type:"button","class":function(){return["button primary ",h.mustache(e.lookup("."))," login-with-service"]}},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Login_with",e.lookup("."))})),"\n "),"\n "),"\n "]})}),o.__checkName("avatarPrompt"),o.avatarPrompt=new o("Template.avatarPrompt",function(){var e=this;return v.SECTION({"class":"page-container page-home page-static"},"\n ",v.HEADER({"class":"fixed-title"},"\n ",h.include(e.lookupTemplate("burger")),"\n ",v.H2("\n ",v.SPAN({"class":"room-title"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Select_an_avatar")})),"\n "),"\n "),"\n ",v.DIV({"class":"content"},"\n ",v.DIV({"class":"avatarPrompt"},"\n ",v.HEADER("\n ",v.P(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Select_service_to_login")})),"\n "),"\n ",v.DIV("\n ",v.DIV({"class":"avatar-suggestions"},"\n ",v.DIV({"class":"avatar-suggestion-item"},"\n ",m._TemplateWith(function(){return{username:h.call(e.lookup("initialsUsername"))}},function(){return h.include(e.lookupTemplate("avatar"))}),"\n ",h.With(function(){return{service:h.call("initials")}},function(){return["\n ",v.DIV({"class":"action"},"\n ",v.BUTTON({type:"button","class":"button primary select-service"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Use_initials_avatar")})),"\n "),"\n "]}),"\n "),"\n ",v.DIV({"class":"avatar-suggestion-item"},"\n ",v.DIV({style:function(){return["background-image: url(",h.mustache(h.dot(e.lookup("upload"),"blob")),");"]},"class":function(){return["avatar ",m.Unless(function(){return h.call(e.lookup("upload"))},function(){return"question-mark icon-upload"})]}},"\n "),"\n ",v.DIV({"class":"action"},"\n ",v.DIV({"class":"button primary"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Select_file")}),"\n ",v.Raw('<input type="file" class="avatar-file-input" accept="image/*">'),"\n "),"\n ",h.With(function(){return h.call(e.lookup("upload"))},function(){return["\n ",v.BUTTON({type:"button","class":"button primary select-service"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Use_uploaded_avatar")})),"\n "]}),"\n "),"\n "),"\n ",v.DIV({"class":"avatar-suggestion-item"},"\n ",h.With(function(){return{service:h.call("url")}},function(){return["\n ",v.DIV({"class":"avatar question-mark icon-upload"}),"\n ",v.DIV({"class":"action"},"\n ",v.DIV({"class":"input-line"},"\n ",v.INPUT({type:"text",name:"avatarurl",id:"avatarurl"}),"\n ",v.BUTTON({type:"button","class":"button primary select-service"},m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Use_url_for_avatar")})),"\n "),"\n "),"\n "]}),"\n "),"\n\n ",m.If(function(){return h.call(h.dot(e.lookup("suggestions"),"ready"))},function(){return["\n ",m._TemplateWith(function(){return h.call(h.dot(e.lookup("suggestions"),"avatars","gravatar"))},function(){return h.include(e.lookupTemplate("avatarSuggestion"))}),"\n ",m._TemplateWith(function(){return h.call(h.dot(e.lookup("suggestions"),"avatars","facebook"))},function(){return h.include(e.lookupTemplate("avatarSuggestion"))}),"\n ",m._TemplateWith(function(){return h.call(h.dot(e.lookup("suggestions"),"avatars","google"))},function(){return h.include(e.lookupTemplate("avatarSuggestion"))}),"\n ",m._TemplateWith(function(){return h.call(h.dot(e.lookup("suggestions"),"avatars","github"))},function(){return h.include(e.lookupTemplate("avatarSuggestion"))}),"\n ",m._TemplateWith(function(){return h.call(h.dot(e.lookup("suggestions"),"avatars","gitlab"))},function(){return h.include(e.lookupTemplate("avatarSuggestion"))}),"\n ",m._TemplateWith(function(){return h.call(h.dot(e.lookup("suggestions"),"avatars","linkedin"))},function(){return h.include(e.lookupTemplate("avatarSuggestion"))}),"\n ",m._TemplateWith(function(){return h.call(h.dot(e.lookup("suggestions"),"avatars","twitter"))},function(){return h.include(e.lookupTemplate("avatarSuggestion"))}),"\n\n ",m.If(function(){return h.dataMustache(e.lookup("suggestAvatar"),"facebook")},function(){return["\n ",m._TemplateWith(function(){return"facebook"},function(){return h.include(e.lookupTemplate("avatarSuggestionLogin"))}),"\n "]}),"\n ",m.If(function(){return h.dataMustache(e.lookup("suggestAvatar"),"google")},function(){return["\n ",m._TemplateWith(function(){return"google"},function(){return h.include(e.lookupTemplate("avatarSuggestionLogin"))}),"\n "]}),"\n ",m.If(function(){return h.dataMustache(e.lookup("suggestAvatar"),"github")},function(){return["\n ",m._TemplateWith(function(){return"github"},function(){return h.include(e.lookupTemplate("avatarSuggestionLogin"))}),"\n "]}),"\n ",m.If(function(){return h.dataMustache(e.lookup("suggestAvatar"),"gitlab")},function(){return["\n ",m._TemplateWith(function(){return"gitlab"},function(){return h.include(e.lookupTemplate("avatarSuggestionLogin"))}),"\n "]}),"\n ",m.If(function(){return h.dataMustache(e.lookup("suggestAvatar"),"linkedin")},function(){return["\n ",m._TemplateWith(function(){return"linkedin"},function(){return h.include(e.lookupTemplate("avatarSuggestionLogin"))}),"\n "]}),"\n ",m.If(function(){return h.dataMustache(e.lookup("suggestAvatar"),"twitter")},function(){return["\n ",m._TemplateWith(function(){return"twitter"},function(){return h.include(e.lookupTemplate("avatarSuggestionLogin"))}),"\n "]}),"\n\n\n "]},function(){return["\n ",m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Loading_suggestion")}),"\n "]}),"\n "),"\n "),"\n\n ",m.If(function(){return h.call(h.dot(e.lookup("username"),"ready"))},function(){return["\n ",v.DIV({"class":"submit"},"\n ",v.BUTTON({"data-loading-text":function(){return[h.mustache(e.lookup("_"),"Please_wait"),"..."]},"class":"button primary login"},v.SPAN(m.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Use_this_username")}))),"\n "),"\n "]}),"\n "),"\n "),"\n ")})}.call(this),function(){w="object"==typeof w?w:{};var e=w;o.account.helpers({flexOpened:function(){return u.TabBar.isFlexOpen()?"opened":void 0},arrowPosition:function(){return window.rocketDebug&&console.log("room.helpers arrowPosition"),u.TabBar.isFlexOpen()?void 0:"left"}}),o.account.onRendered(function(){return Tracker.afterFlush(function(){return SideNav.setFlex("accountFlex"),SideNav.openFlex()})})}.call(this),function(){w="object"==typeof w?w:{};var e=w;o.accountFlex.events({"mouseenter header":function(){return SideNav.overArrow()},"mouseleave header":function(){return SideNav.leaveArrow()},"click header":function(){return SideNav.closeFlex()},"click .cancel-settings":function(){return SideNav.closeFlex()},"click .account-link":function(){return menu.close()}}),o.accountFlex.helpers({allowUserProfileChange:function(){return u.settings.get("Accounts_AllowUserProfileChange")},allowUserAvatarChange:function(){return u.settings.get("Accounts_AllowUserAvatarChange")}})}.call(this),function(){w="object"==typeof w?w:{};var n=w;o.accountPreferences.helpers({languages:function(){var e,n,t,o;t=k.getLanguages(),o=[];for(e in t)n=t[e],o.push(a.extend(n,{key:e}));return a.sortBy(o,"key")},userLanguage:function(n){var t;return(null!=(t=e.user().language||defaultUserLanguage())?t.split("-").shift().toLowerCase():void 0)===n},checked:function(n,t,o){var a,u,r,i,l,c,s,p,f,m;return null==(null!=(u=e.user())&&null!=(r=u.settings)&&null!=(i=r.preferences)?i[n]:void 0)&&o===!0?a=t:null!=(null!=(l=e.user())&&null!=(c=l.settings)&&null!=(s=c.preferences)?s[n]:void 0)&&(a=!!(null!=(p=e.user())&&null!=(f=p.settings)&&null!=(m=f.preferences)?m[n]:void 0)),a===t},selected:function(n,t,o){var a,u,r,i,l,c;return(null!=(a=e.user())&&null!=(u=a.settings)&&null!=(r=u.preferences)?r[n]:void 0)?(null!=(i=e.user())&&null!=(l=i.settings)&&null!=(c=l.preferences)?c[n]:void 0)===t:o},highlights:function(){var n,t,o,a;return null!=(n=e.user())&&null!=(t=n.settings)&&null!=(o=t.preferences)&&null!=(a=o.highlights)?a.join(", "):void 0},desktopNotificationEnabled:function(){return"granted"===KonchatNotification.notificationStatus.get()||window.Notification&&"granted"===Notification.permission},desktopNotificationDisabled:function(){return"denied"===KonchatNotification.notificationStatus.get()||window.Notification&&"denied"===Notification.permission}}),o.accountPreferences.onCreated(function(){var n,o,u,r,i;return i=this.parentTemplate(3),null==i.child&&(i.child=[]),i.child.push(this),this.useEmojis=new ReactiveVar(null==(null!=(o=e.user())&&null!=(u=o.settings)&&null!=(r=u.preferences)?r.useEmojis:void 0)||e.user().settings.preferences.useEmojis),n=this,this.autorun(function(){return Tracker.afterFlush(n.useEmojis.get()?function(){return $("#convertAsciiEmoji").show()}:function(){return $("#convertAsciiEmoji").hide()})}),this.clearForm=function(){return this.find("#language").value=localStorage.getItem("userLanguage")},this.save=function(){var o,u,r;return n=this,o={},u=!1,r=$("#language").val(),localStorage.getItem("userLanguage")!==r&&(localStorage.setItem("userLanguage",r),o.language=r,u=!0),o.disableNewRoomNotification=$("input[name=disableNewRoomNotification]:checked").val(),o.disableNewMessageNotification=$("input[name=disableNewMessageNotification]:checked").val(),o.useEmojis=$("input[name=useEmojis]:checked").val(),o.convertAsciiEmoji=$("input[name=convertAsciiEmoji]:checked").val(),o.saveMobileBandwidth=$("input[name=saveMobileBandwidth]:checked").val(),o.collapseMediaByDefault=$("input[name=collapseMediaByDefault]:checked").val(),o.compactView=$("input[name=compactView]:checked").val(),o.unreadRoomsMode=$("input[name=unreadRoomsMode]:checked").val(),o.autoImageLoad=$("input[name=autoImageLoad]:checked").val(),o.emailNotificationMode=$("select[name=emailNotificationMode]").val(),o.highlights=a.compact(a.map($("[name=highlights]").val().split(","),function(e){return a.trim(e)})),e.call("saveUserPreferences",o,function(o,a){return a&&(toastr.success(t("Preferences_saved")),n.clearForm(),u&&setTimeout(function(){return e._reload.reload()},1e3)),o?toastr.error(o.reason):void 0})}}),o.accountPreferences.onRendered(function(){return Tracker.afterFlush(function(){return SideNav.setFlex("accountFlex"),SideNav.openFlex()})}),o.accountPreferences.events({"click .submit button":function(e,n){return n.save()},"change input[name=useEmojis]":function(e,n){return n.useEmojis.set("1"===$(e.currentTarget).val())},"click .enable-notifications":function(){return KonchatNotification.getDesktopPermission()},"click .test-notifications":function(){return KonchatNotification.notify({payload:{sender:{username:"rocket.cat"}},title:k.__("Desktop_Notification_Test"),text:k.__("This_is_a_desktop_notification")})}})}.call(this),function(){w="object"==typeof w?w:{};var n=w;o.accountProfile.helpers({allowDeleteOwnAccount:function(){return u.settings.get("Accounts_AllowDeleteOwnAccount")},realname:function(){return e.user().name},username:function(){return e.user().username},email:function(){var n,t;return null!=(n=e.user().emails)&&null!=(t=n[0])?t.address:void 0},emailVerified:function(){var n,t;return null!=(n=e.user().emails)&&null!=(t=n[0])?t.verified:void 0},allowUsernameChange:function(){return u.settings.get("Accounts_AllowUsernameChange")&&u.settings.get("LDAP_Enable")!==!0},allowEmailChange:function(){return u.settings.get("Accounts_AllowEmailChange")},usernameChangeDisabled:function(){return t("Username_Change_Disabled")},allowPasswordChange:function(){return u.settings.get("Accounts_AllowPasswordChange")},passwordChangeDisabled:function(){return t("Password_Change_Disabled")}}),o.accountProfile.onCreated(function(){var n;return n=this.parentTemplate(3),null==n.child&&(n.child=[]),n.child.push(this),this.clearForm=function(){return this.find("#password").value=""},this.changePassword=function(e,n){var o;return o=this,e?void(u.settings.get("Accounts_AllowPasswordChange")||(toastr.remove(),toastr.error(t("Password_Change_Disabled")),o.clearForm())):n()},this.save=function(n){var o,r,i,l;if(r=this,o={currentPassword:n},a.trim($("#password").val())&&(o.newPassword=$("#password").val()),a.trim($("#realname").val())&&(o.realname=a.trim($("#realname").val())),a.trim($("#username").val())!==e.user().username){if(!u.settings.get("Accounts_AllowUsernameChange"))return toastr.remove(),toastr.error(t("Username_Change_Disabled")),void r.clearForm();o.username=a.trim($("#username").val())}if(a.trim($("#email").val())!==(null!=(i=e.user().emails)&&null!=(l=i[0])?l.address:void 0)){if(!u.settings.get("Accounts_AllowEmailChange"))return toastr.remove(),toastr.error(t("Email_Change_Disabled")),void r.clearForm();o.email=a.trim($("#email").val())}return e.call("saveUserProfile",o,function(e,n){return n&&(toastr.remove(),
|
||
toastr.success(t("Profile_saved_successfully")),swal.close(),r.clearForm()),e?(toastr.remove(),toastr.error(e.reason)):void 0})}}),o.accountProfile.onRendered(function(){return Tracker.afterFlush(function(){return u.settings.get("Accounts_AllowUserProfileChange")||FlowRouter.go("home"),SideNav.setFlex("accountFlex"),SideNav.openFlex()})}),o.accountProfile.events({"click .submit button":function(n,o){var a,u,i;return s.trim(null!=(a=e.user())&&null!=(u=a.services)&&null!=(i=u.password)?i.bcrypt:void 0)?swal({title:t("Please_re_enter_your_password"),text:t("For_your_security_you_must_re_enter_your_password_to_continue"),type:"input",inputType:"password",showCancelButton:!0,closeOnConfirm:!1},function(e){return function(e){return e?(toastr.remove(),toastr.warning(t("Please_wait_while_your_profile_is_being_saved")),o.save(r(e))):(swal.showInputError(t("You_need_to_type_in_your_password_in_order_to_do_this")),!1)}}(this)):o.save()},"click .logoutOthers button":function(n,o){return e.logoutOtherClients(function(e){return e?(toastr.remove(),toastr.error(e.reason)):(toastr.remove(),toastr.success(t("Logged_out_of_other_clients_successfully")))})},"click .delete-account button":function(n){var o,a,u;return n.preventDefault(),s.trim(null!=(o=e.user())&&null!=(a=o.services)&&null!=(u=a.password)?u.bcrypt:void 0)?swal({title:t("Are_you_sure_you_want_to_delete_your_account"),text:t("If_you_are_sure_type_in_your_password"),type:"input",inputType:"password",showCancelButton:!0,closeOnConfirm:!1},function(n){return function(n){return n?(toastr.remove(),toastr.warning(t("Please_wait_while_your_account_is_being_deleted")),e.call("deleteUserOwnAccount",r(n),function(e,n){return e?(toastr.remove(),swal.showInputError(t("Your_password_is_wrong"))):swal.close()})):(swal.showInputError(t("You_need_to_type_in_your_password_in_order_to_do_this")),!1)}}(this)):swal({title:t("Are_you_sure_you_want_to_delete_your_account"),text:t("If_you_are_sure_type_in_your_username"),type:"input",showCancelButton:!0,closeOnConfirm:!1},function(n){return function(n){var o;return n===(null!=(o=e.user())?o.username:void 0)?(toastr.remove(),toastr.warning(t("Please_wait_while_your_account_is_being_deleted")),e.call("deleteUserOwnAccount",n,function(e,n){return e?(toastr.remove(),swal.showInputError(t("Your_password_is_wrong"))):swal.close()})):(swal.showInputError(t("You_need_to_type_in_your_username_in_order_to_do_this")),!1)}}(this))},"click #resend-verification-email":function(n){var o,a;return n.preventDefault(),n.currentTarget.innerHTML=n.currentTarget.innerHTML+" ...",n.currentTarget.disabled=!0,e.call("sendConfirmationEmail",null!=(o=e.user().emails)&&null!=(a=o[0])?a.address:void 0,function(e){return function(e,o){return o?toastr.success(t("Verification_email_sent")):toastr.error(null!=(null!=e?e.reason:void 0)?e.reason:t("Error_sending_confirmation_email")),n.currentTarget.innerHTML=n.currentTarget.innerHTML.replace(" ...",""),n.currentTarget.disabled=!1}}(this))}})}.call(this),function(){w="object"==typeof w?w:{};var n=w;o.avatar.helpers({imageUrl:function(){var n,t,o;return o=this.username,null==o&&null!=this.userId&&(o=null!=(n=e.users.findOne(this.userId))?n.username:void 0),null!=o?(Session.get("avatar_random_"+o),t=getAvatarUrlFromUsername(o),"background-image:url("+t+");"):void 0}})}.call(this),function(){w="object"==typeof w?w:{};var n=w;o.avatarPrompt.onCreated(function(){var n;return n=this,n.suggestions=new ReactiveVar,n.upload=new ReactiveVar,n.getSuggestions=function(){return n.suggestions.set(void 0),e.call("getAvatarSuggestion",function(e,t){return n.suggestions.set({ready:!0,avatars:t})})},n.getSuggestions()}),o.avatarPrompt.onRendered(function(){return Tracker.afterFlush(function(){return u.settings.get("Accounts_AllowUserAvatarChange")||FlowRouter.go("home"),SideNav.setFlex("accountFlex"),SideNav.openFlex()})}),o.avatarPrompt.helpers({suggestions:function(){return o.instance().suggestions.get()},suggestAvatar:function(e){var n;return n=o.instance().suggestions.get(),u.settings.get("Accounts_OAuth_"+a.capitalize(e))&&!n.avatars[e]},upload:function(){return o.instance().upload.get()},username:function(){var n;return null!=(n=e.user())?n.username:void 0},initialsUsername:function(){var n;return"@"+(null!=(n=e.user())?n.username:void 0)}}),o.avatarPrompt.events({"click .select-service":function(){return"initials"===this.service?e.call("resetAvatar",function(e){var n;return null!=(null!=e&&null!=(n=e.details)?n.timeToReset:void 0)?toastr.error(t("Error_too_many_requests",parseInt(e.details.timeToReset/1e3))):toastr.success(t("Avatar_changed_successfully"))}):"url"===this.service?a.trim($("#avatarurl").val())?e.call("setAvatarFromService",$("#avatarurl").val(),"",this.service,function(e){var n;return e?toastr.error(null!=(null!=(n=e.details)?n.timeToReset:void 0)?t("Error_too_many_requests",parseInt(e.details.timeToReset/1e3)):t("Avatar_url_invalid_or_error")):toastr.success(t("Avatar_changed_successfully"))}):toastr.error(t("Please_enter_value_for_url")):e.call("setAvatarFromService",this.blob,this.contentType,this.service,function(e){var n;return null!=(null!=e&&null!=(n=e.details)?n.timeToReset:void 0)?toastr.error(t("Error_too_many_requests",parseInt(e.details.timeToReset/1e3))):toastr.success(t("Avatar_changed_successfully"))})},"click .login-with-service":function(n,o){var u,r;return u="loginWith"+a.capitalize(this),r={},e[u](r,function(e){return"github-no-public-email"===(null!=e?e.error:void 0)?void alert(t("github_no_public_email")):(console.log(e),null!=e?void toastr.error(e.message):o.getSuggestions())})},"change .avatar-file-input":function(e,n){var t,o,a,u,r,i,l;for(o=e.originalEvent||e,a=o.target.files,a&&0!==a.length||(a=(null!=(l=o.dataTransfer)?l.files:void 0)||[]),u=0,r=a.length;r>u;u++){if(t=a[u],!/image\/.+/.test(t.type))return;i=new FileReader,i.readAsDataURL(t),i.onloadend=function(){return n.upload.set({service:"upload",contentType:t.type,blob:i.result})}}}})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:ui-account"]={}}();
|
||
|
||
!function(){var n=Package.meteor.Meteor,e=Package.ecmascript.ECMAScript,o=Package.templating.Template,u=Package.underscore._,i=Package["rocketchat:lib"].RocketChat,r=Package["babel-runtime"].babelHelpers,a=Package["ecmascript-runtime"].Symbol,c=Package["ecmascript-runtime"].Map,l=Package["ecmascript-runtime"].Set,p=Package.promise.Promise,f=Package.blaze.Blaze,m=Package.blaze.UI,d=Package.blaze.Handlebars,h=Package.spacebars.Spacebars,k=Package["tap:i18n"].TAPi18next,_=Package["tap:i18n"].TAPi18n,T=Package.htmljs.HTML,v;(function(){o.__checkName("admin"),o.admin=new o("Template.admin",function(){var n=this;return T.SECTION({"class":"page-container page-home page-static page-settings"},"\n ",T.HEAD({"class":"fixed-title"},"\n ",h.include(n.lookupTemplate("burger")),"\n ",T.H2("\n ",T.SPAN({"class":"room-title"},h.With(function(){return h.call(n.lookup("group"))},function(){return f.View("lookup:label",function(){return h.mustache(n.lookup("label"))})})),"\n "),"\n "),"\n\n ",T.DIV({"class":"content"},"\n ",f.Unless(function(){return h.dataMustache(n.lookup("hasPermission"),"view-privileged-setting")},function(){return["\n ",T.P(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"You_are_not_authorized_to_view_this_page")})),"\n "]},function(){return["\n ",h.With(function(){return h.call(n.lookup("group"))},function(){return["\n ",f.If(function(){return h.call(n.lookup("description"))},function(){return["\n ",T.DIV({"class":"info"},"\n ",T.P({"class":"settings-description"},f.View("lookup:description",function(){return h.mustache(n.lookup("description"))})),"\n "),"\n "]}),"\n "]}),"\n ",T.DIV({"class":"rocket-form"},"\n ",f.Each(function(){return h.call(n.lookup("sections"))},function(){return["\n ",T.DIV({"class":function(){return["section ",f.If(function(){return h.call(n.lookup("section"))},function(){return"section-collapsed"})]}},"\n ",f.If(function(){return h.call(n.lookup("section"))},function(){return["\n ",T.DIV({"class":"section-title"},"\n ",T.DIV({"class":"section-title-text"},"\n ",f.View("lookup:translateSection",function(){return h.mustache(n.lookup("translateSection"),n.lookup("section"))}),"\n "),"\n ",T.DIV({"class":"section-title-right"},"\n ",T.BUTTON({"class":"button secondary expand"},T.SPAN(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Expand")}))),"\n "),"\n "),"\n "]}),"\n ",T.DIV({"class":"section-content"},"\n ",f.If(function(){return h.call(n.lookup("section"))},function(){return["\n ",f.If(function(){return h.dataMustache(n.lookup("sectionIsCustomOAuth"),n.lookup("section"))},function(){return["\n ",T.DIV({"class":"section-helper"},"\n ",h.With(function(){return h.dataMustache(n.lookup("callbackURL"),n.lookup("section"))},function(){return["\n ",f.View("lookup:_",function(){return h.makeRaw(h.mustache(n.lookup("_"),"Custom_oauth_helper",n.lookup(".")))}),"\n "]}),"\n "),"\n "]}),"\n "]}),"\n ",f.Each(function(){return h.call(n.lookup("settings"))},function(){return["\n ",T.DIV(T.Attrs({"class":function(){return["input-line double-col ",f.If(function(){return h.call(n.lookup("changed"))},function(){return"setting-changed"})]}},function(){return h.attrMustache(n.lookup("isDisabled"))}),"\n ",T.LABEL(f.View("lookup:label",function(){return h.mustache(n.lookup("label"))})),"\n ",T.DIV("\n ",f.If(function(){return h.dataMustache(n.lookup("$eq"),n.lookup("type"),"string")},function(){return["\n ",f.If(function(){return h.call(n.lookup("multiline"))},function(){return["\n ",T.TEXTAREA(T.Attrs({"class":"input-monitor",name:function(){return h.mustache(n.lookup("_id"))},rows:"4",style:"height: auto"},function(){return h.attrMustache(n.lookup("isDisabled"))},{value:function(){return h.mustache(n.lookup("value"))}})),"\n "]},function(){return["\n ",T.INPUT(T.Attrs({"class":"input-monitor",type:"text",name:function(){return h.mustache(n.lookup("_id"))},value:function(){return h.mustache(n.lookup("value"))},placeholder:function(){return h.mustache(n.lookup("placeholder"))}},function(){return h.attrMustache(n.lookup("isDisabled"))})),"\n "]}),"\n "]}),"\n\n ",f.If(function(){return h.dataMustache(n.lookup("$eq"),n.lookup("type"),"relativeUrl")},function(){return["\n ",T.INPUT(T.Attrs({"class":"input-monitor",type:"text",name:function(){return h.mustache(n.lookup("_id"))},value:function(){return h.mustache(n.lookup("relativeUrl"),n.lookup("value"))},placeholder:function(){return h.mustache(n.lookup("placeholder"))}},function(){return h.attrMustache(n.lookup("isDisabled"))},function(){return h.attrMustache(n.lookup("isReadonly"))})),"\n "]}),"\n\n ",f.If(function(){return h.dataMustache(n.lookup("$eq"),n.lookup("type"),"password")},function(){return["\n ",T.INPUT(T.Attrs({"class":"input-monitor",type:"password",name:function(){return h.mustache(n.lookup("_id"))},value:function(){return h.mustache(n.lookup("value"))},placeholder:function(){return h.mustache(n.lookup("placeholder"))}},function(){return h.attrMustache(n.lookup("isDisabled"))})),"\n "]}),"\n\n ",f.If(function(){return h.dataMustache(n.lookup("$eq"),n.lookup("type"),"int")},function(){return["\n ",T.INPUT(T.Attrs({"class":"input-monitor",type:"number",name:function(){return h.mustache(n.lookup("_id"))},value:function(){return h.mustache(n.lookup("value"))},placeholder:function(){return h.mustache(n.lookup("placeholder"))}},function(){return h.attrMustache(n.lookup("isDisabled"))})),"\n "]}),"\n\n ",f.If(function(){return h.dataMustache(n.lookup("$eq"),n.lookup("type"),"boolean")},function(){return["\n ",T.LABEL(T.INPUT(T.Attrs({"class":"input-monitor",type:"radio",name:function(){return h.mustache(n.lookup("_id"))},value:"1",checked:function(){return h.mustache(n.lookup("$eq"),n.lookup("value"),!0)}},function(){return h.attrMustache(n.lookup("isDisabled"))}))," ",f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"True")})),"\n ",T.LABEL(T.INPUT(T.Attrs({"class":"input-monitor",type:"radio",name:function(){return h.mustache(n.lookup("_id"))},value:"0",checked:function(){return h.mustache(n.lookup("$eq"),n.lookup("value"),!1)}},function(){return h.attrMustache(n.lookup("isDisabled"))}))," ",f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"False")})),"\n "]}),"\n\n ",f.If(function(){return h.dataMustache(n.lookup("$eq"),n.lookup("type"),"select")},function(){return["\n ",T.SELECT(T.Attrs({"class":"input-monitor",name:function(){return h.mustache(n.lookup("_id"))}},function(){return h.attrMustache(n.lookup("isDisabled"))}),"\n ",f.Each(function(){return h.call(n.lookup("values"))},function(){return["\n ",T.OPTION({value:function(){return h.mustache(n.lookup("key"))},selected:function(){return h.mustache(n.lookup("selectedOption"),h.dot(n.lookup(".."),"_id"),n.lookup("key"))}},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),n.lookup("i18nLabel"))})),"\n "]}),"\n "),"\n "]}),"\n\n ",f.If(function(){return h.dataMustache(n.lookup("$eq"),n.lookup("type"),"language")},function(){return["\n ",T.SELECT(T.Attrs({"class":"input-monitor",name:function(){return h.mustache(n.lookup("_id"))}},function(){return h.attrMustache(n.lookup("isDisabled"))}),"\n ",f.Each(function(){return h.call(n.lookup("languages"))},function(){return["\n ",T.OPTION({value:function(){return h.mustache(n.lookup("key"))},selected:function(){return h.mustache(n.lookup("appLanguage"),n.lookup("key"))},dir:"auto"},f.View("lookup:name",function(){return h.mustache(n.lookup("name"))})),"\n "]}),"\n "),"\n "]}),"\n\n ",f.If(function(){return h.dataMustache(n.lookup("$eq"),n.lookup("type"),"color")},function(){return["\n ",T.INPUT(T.Attrs({"class":"input-monitor minicolors",type:"text",name:function(){return h.mustache(n.lookup("_id"))},value:function(){return h.mustache(n.lookup("value"))}},function(){return h.attrMustache(n.lookup("isDisabled"))})),"\n "]}),"\n\n ",f.If(function(){return h.dataMustache(n.lookup("$eq"),n.lookup("type"),"code")},function(){return["\n ",T.DIV(T.Attrs({"class":"code-mirror-box","data-editor-id":function(){return h.mustache(n.lookup("_id"))}},function(){return h.attrMustache(n.lookup("isDisabled"))}),"\n ",T.DIV({"class":"title"},"\n ",f.View("lookup:label",function(){return h.mustache(n.lookup("label"))}),"\n "),"\n ",f._TemplateWith(function(){return{name:h.call(n.lookup("_id")),options:h.call(n.lookup("getEditorOptions")),code:h.call(n.lookup("value"))}},function(){return h.include(n.lookupTemplate("CodeMirror"))}),"\n ",f.View("lookup:setEditorOnBlur",function(){return h.mustache(n.lookup("setEditorOnBlur"),n.lookup("_id"))}),"\n ",T.DIV({"class":"buttons"},"\n ",T.BUTTON({"class":"button button-primary button-fullscreen"},"\n Full Screen\n "),"\n ",T.BUTTON({"class":"button button-primary button-restore"},"\n Exit Full Screen\n "),"\n "),"\n "),"\n "]}),"\n\n ",f.If(function(){return h.dataMustache(n.lookup("$eq"),n.lookup("type"),"action")},function(){return["\n ",f.If(function(){return h.dataMustache(n.lookup("hasChanges"),n.lookup("section"))},function(){return["\n ",T.SPAN({style:"line-height: 40px; color: #888;"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Save_to_enable_this_action")})),"\n "]},function(){return["\n ",T.BUTTON(T.Attrs({type:"button","class":"button primary action","data-setting":function(){return h.mustache(n.lookup("_id"))},"data-action":function(){return h.mustache(n.lookup("value"))}},function(){return h.attrMustache(n.lookup("isDisabled"))}),f.View("lookup:_",function(){return h.mustache(n.lookup("_"),n.lookup("actionText"))})),"\n "]}),"\n "]}),"\n\n ",f.If(function(){return h.dataMustache(n.lookup("$eq"),n.lookup("type"),"asset")},function(){return["\n ",f.If(function(){return h.call(h.dot(n.lookup("value"),"url"))},function(){return["\n ",T.DIV({"class":"settings-file-preview"},"\n ",T.DIV({"class":"preview",style:function(){return["background-image:url(",h.mustache(h.dot(n.lookup("value"),"url")),"?_dc=",h.mustache(n.lookup("random")),");"]}}),"\n ",T.DIV({"class":"action"},"\n ",T.BUTTON({type:"button","class":"button red delete-asset"},T.I({"class":"icon-trash"}),f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Delete")})),"\n "),"\n "),"\n "]},function(){return["\n ",T.DIV({"class":"settings-file-preview"},"\n ",T.DIV({"class":"preview no-file"},T.I({"class":"icon-upload"})),"\n ",T.DIV({"class":"action"},"\n ",T.DIV({"class":"button primary"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Select_file")}),"\n ",T.INPUT({type:"file",accept:function(){return h.mustache(n.lookup("assetAccept"),n.lookup("fileConstraints"))}}),"\n "),"\n "),"\n "),"\n "]}),"\n "]}),"\n\n ",f.If(function(){return h.call(n.lookup("description"))},function(){return["\n ",T.DIV({"class":"settings-description"},f.View("lookup:RocketChatMarkdown",function(){return h.makeRaw(h.mustache(n.lookup("RocketChatMarkdown"),n.lookup("description")))})),"\n "]}),"\n ",f.If(function(){return h.call(n.lookup("alert"))},function(){return["\n ",T.DIV({"class":"settings-alert"},T.I({"class":"icon-attention"}),f.View("lookup:_",function(){return h.makeRaw(h.mustache(n.lookup("_"),n.lookup("alert")))})),"\n "]}),"\n "),"\n "),"\n "]}),"\n\n ",f.If(function(){return h.call(n.lookup("section"))},function(){return["\n ",f.If(function(){return h.dataMustache(n.lookup("sectionIsCustomOAuth"),n.lookup("section"))},function(){return["\n ",T.DIV({"class":"submit"},"\n ",T.BUTTON({"class":"button delete remove-custom-oauth"},T.SPAN(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Remove_custom_oauth")}))),"\n "),"\n "]}),"\n "]}),"\n\n ",f.If(function(){return h.dataMustache(n.lookup("hasChanges"),n.lookup("section"))},function(){return["\n ",T.DIV({"class":"submit"},"\n ",T.BUTTON({"class":"button save"},T.I({"class":"icon-send"}),T.SPAN(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Save_changes")}))),"\n "),"\n "]}),"\n "),"\n "),"\n "]}),"\n\n ",T.DIV({"class":"submit"},"\n ",f.If(function(){return h.dataMustache(n.lookup("$eq"),h.dot(n.lookup("group"),"_id"),"OAuth")},function(){return["\n ",T.BUTTON({"class":"button secondary add-custom-oauth"},T.SPAN(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Add_custom_oauth")}))),"\n "]}),"\n ",f.If(function(){return h.dataMustache(n.lookup("$eq"),h.dot(n.lookup("group"),"_id"),"Assets")},function(){return["\n ",T.BUTTON({"class":"button refresh-clients"},T.SPAN(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Apply_and_refresh_all_clients")}))),"\n "]}),"\n "),"\n "),"\n "]}),"\n "),"\n ")})}).call(this),function(){o.__checkName("adminFlex"),o.adminFlex=new o("Template.adminFlex",function(){var n=this;return[T.HEADER("\n ",T.DIV("\n ",T.H4(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Administration")})),"\n "),"\n "),"\n ",T.DIV({"class":"content"},"\n ",T.DIV({"class":"wrapper"},"\n ",T.UL("\n ",T.LI("\n ",T.A({href:function(){return h.mustache(n.lookup("pathFor"),"admin-info")},"class":"admin-link"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Info")})),"\n "),"\n\n ",f.If(function(){return h.dataMustache(n.lookup("hasPermission"),"run-import")},function(){return["\n ",T.LI("\n ",T.A({href:function(){return h.mustache(n.lookup("pathFor"),"admin-import")},"class":"admin-link"},"Import"),"\n "),"\n "]}),"\n\n ",f.If(function(){return h.dataMustache(n.lookup("hasPermission"),"view-room-administration")},function(){return["\n ",T.LI("\n ",T.A({href:function(){return h.mustache(n.lookup("pathFor"),"admin-rooms")},"class":"admin-link"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Rooms")})),"\n "),"\n "]}),"\n\n ",f.If(function(){return h.dataMustache(n.lookup("hasPermission"),"view-user-administration")},function(){return["\n ",T.LI("\n ",T.A({href:function(){return h.mustache(n.lookup("pathFor"),"admin-users")},"class":"admin-link"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Users")})),"\n "),"\n "]}),"\n\n ",f.Each(function(){return h.call(n.lookup("adminBoxOptions"))},function(){return["\n ",f.If(function(){return h.call(n.lookup("permissionGranted"))},function(){return["\n ",T.LI("\n ",T.A({href:function(){return h.mustache(n.lookup("pathFor"),n.lookup("href"))},"class":"admin-link"},f.View("lookup:label",function(){return h.mustache(n.lookup("label"))})),"\n "),"\n "]}),"\n "]}),"\n\n ",f.If(function(){return h.dataMustache(n.lookup("hasPermission"),"view-privileged-setting")},function(){return["\n ",T.H3({"class":"add-room"},"\n ",f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Settings")}),"\n "),"\n\n ",f.Each(function(){return h.call(n.lookup("groups"))},function(){return["\n ",T.LI("\n ",T.A({href:function(){return h.mustache(n.lookup("pathFor"),"admin",h.kw({group:n.lookup("_id")}))},"class":"admin-link"},f.View("lookup:label",function(){return h.mustache(n.lookup("label"))})),"\n "),"\n "]}),"\n "]}),"\n "),"\n "),"\n ")]})}.call(this),function(){o.__checkName("adminInfo"),o.adminInfo=new o("Template.adminInfo",function(){var n=this;return T.SECTION({"class":"page-container page-list"},"\n ",T.HEAD({"class":"fixed-title"},"\n ",h.include(n.lookupTemplate("burger")),"\n ",T.H2("\n ",T.SPAN({"class":"room-title"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Info")})),"\n "),"\n "),"\n ",T.DIV({"class":"content"},"\n ",f.If(function(){return h.dataMustache(n.lookup("hasPermission"),"view-statistics")},function(){return["\n ",T.H3(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Rocket.Chat")})),"\n ",T.TABLE({"class":"statistics-table"},"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Version")})),"\n ",T.TD(f.View("lookup:statistics.version",function(){return h.mustache(h.dot(n.lookup("statistics"),"version"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"DB_Migration")})),"\n ",T.TD(f.View("lookup:statistics.migration.version",function(){return h.mustache(h.dot(n.lookup("statistics"),"migration","version"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"DB_Migration_Date")})),"\n ",T.TD(f.View("lookup:statistics.migration.lockedAt",function(){return h.mustache(h.dot(n.lookup("statistics"),"migration","lockedAt"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Installed_at")})),"\n ",T.TD(f.View("lookup:statistics.createdAt",function(){return h.mustache(h.dot(n.lookup("statistics"),"createdAt"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Uptime")})),"\n ",T.TD(f.View("lookup:humanReadableTime",function(){return h.mustache(n.lookup("humanReadableTime"),h.dot(n.lookup("statistics"),"process","uptime"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Deployment_ID")})),"\n ",T.TD(f.View("lookup:statistics.uniqueId",function(){return h.mustache(h.dot(n.lookup("statistics"),"uniqueId"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"PID")})),"\n ",T.TD(f.View("lookup:statistics.process.pid",function(){return h.mustache(h.dot(n.lookup("statistics"),"process","pid"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Running_Instances")})),"\n ",T.TD(f.View("lookup:statistics.instanceCount",function(){return h.mustache(h.dot(n.lookup("statistics"),"instanceCount"))})),"\n "),"\n "),"\n "]}),"\n\n ",T.H3(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Commit")})),"\n ",T.TABLE({"class":"statistics-table"},"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Hash")})),"\n ",T.TD(f.View("lookup:info.commit.hash",function(){return h.mustache(h.dot(n.lookup("info"),"commit","hash"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Date")})),"\n ",T.TD(f.View("lookup:info.commit.date",function(){return h.mustache(h.dot(n.lookup("info"),"commit","date"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Branch")})),"\n ",T.TD(f.View("lookup:info.commit.branch",function(){return h.mustache(h.dot(n.lookup("info"),"commit","branch"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Tag")})),"\n ",T.TD(f.View("lookup:info.commit.tag",function(){return h.mustache(h.dot(n.lookup("info"),"commit","tag"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Author")})),"\n ",T.TD(f.View("lookup:info.commit.author",function(){return h.mustache(h.dot(n.lookup("info"),"commit","author"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Subject")})),"\n ",T.TD(f.View("lookup:info.commit.subject",function(){return h.mustache(h.dot(n.lookup("info"),"commit","subject"))})),"\n "),"\n "),"\n\n ",f.If(function(){return h.dataMustache(n.lookup("hasPermission"),"view-statistics")},function(){return["\n ",f.If(function(){return h.call(n.lookup("isReady"))},function(){return["\n ",T.H3(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Runtime_Environment")})),"\n ",T.TABLE({"class":"statistics-table"},"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"OS_Type")})),"\n ",T.TD(f.View("lookup:statistics.os.type",function(){return h.mustache(h.dot(n.lookup("statistics"),"os","type"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"OS_Platform")})),"\n ",T.TD(f.View("lookup:statistics.os.platform",function(){return h.mustache(h.dot(n.lookup("statistics"),"os","platform"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"OS_Arch")})),"\n ",T.TD(f.View("lookup:statistics.os.arch",function(){return h.mustache(h.dot(n.lookup("statistics"),"os","arch"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"OS_Release")})),"\n ",T.TD(f.View("lookup:statistics.os.release",function(){return h.mustache(h.dot(n.lookup("statistics"),"os","release"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Node_version")})),"\n ",T.TD(f.View("lookup:statistics.process.nodeVersion",function(){return h.mustache(h.dot(n.lookup("statistics"),"process","nodeVersion"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"OS_Uptime")})),"\n ",T.TD(f.View("lookup:humanReadableTime",function(){return h.mustache(n.lookup("humanReadableTime"),h.dot(n.lookup("statistics"),"os","uptime"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"OS_Loadavg")})),"\n ",T.TD(f.View("lookup:numFormat",function(){return h.mustache(n.lookup("numFormat"),h.dot(n.lookup("statistics"),"os","loadavg","0"))}),", ",f.View("lookup:numFormat",function(){return h.mustache(n.lookup("numFormat"),h.dot(n.lookup("statistics"),"os","loadavg","1"))}),", ",f.View("lookup:numFormat",function(){return h.mustache(n.lookup("numFormat"),h.dot(n.lookup("statistics"),"os","loadavg","2"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"OS_Totalmem")})),"\n ",T.TD(f.View("lookup:inGB",function(){return h.mustache(n.lookup("inGB"),h.dot(n.lookup("statistics"),"os","totalmem"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"OS_Freemem")})),"\n ",T.TD(f.View("lookup:inGB",function(){return h.mustache(n.lookup("inGB"),h.dot(n.lookup("statistics"),"os","freemem"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"OS_Cpus")})),"\n ",T.TD(f.View("lookup:statistics.os.cpus.length",function(){return h.mustache(h.dot(n.lookup("statistics"),"os","cpus","length"))})),"\n "),"\n "),"\n\n ",T.H3(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Build_Environment")})),"\n ",T.TABLE({"class":"statistics-table"},"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"OS_Platform")})),"\n ",T.TD(f.View("lookup:build.platform",function(){return h.mustache(h.dot(n.lookup("build"),"platform"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"OS_Arch")})),"\n ",T.TD(f.View("lookup:build.arch",function(){return h.mustache(h.dot(n.lookup("build"),"arch"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"OS_Release")})),"\n ",T.TD(f.View("lookup:build.osRelease",function(){return h.mustache(h.dot(n.lookup("build"),"osRelease"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Node_version")})),"\n ",T.TD(f.View("lookup:build.nodeVersion",function(){return h.mustache(h.dot(n.lookup("build"),"nodeVersion"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Date")})),"\n ",T.TD(f.View("lookup:formatDate",function(){return h.mustache(n.lookup("formatDate"),h.dot(n.lookup("build"),"date"))})),"\n "),"\n "),"\n\n\n ",T.H3(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Usage")})),"\n ",T.TABLE({"class":"statistics-table"},"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Stats_Total_Users")})),"\n ",T.TD(f.View("lookup:statistics.totalUsers",function(){return h.mustache(h.dot(n.lookup("statistics"),"totalUsers"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Stats_Active_Users")})),"\n ",T.TD(f.View("lookup:statistics.activeUsers",function(){return h.mustache(h.dot(n.lookup("statistics"),"activeUsers"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Stats_Non_Active_Users")})),"\n ",T.TD(f.View("lookup:statistics.nonActiveUsers",function(){return h.mustache(h.dot(n.lookup("statistics"),"nonActiveUsers"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Stats_Online_Users")})),"\n ",T.TD(f.View("lookup:statistics.onlineUsers",function(){return h.mustache(h.dot(n.lookup("statistics"),"onlineUsers"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Stats_Away_Users")})),"\n ",T.TD(f.View("lookup:statistics.awayUsers",function(){return h.mustache(h.dot(n.lookup("statistics"),"awayUsers"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Stats_Offline_Users")})),"\n ",T.TD(f.View("lookup:statistics.offlineUsers",function(){return h.mustache(h.dot(n.lookup("statistics"),"offlineUsers"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Stats_Total_Rooms")})),"\n ",T.TD(f.View("lookup:statistics.totalRooms",function(){return h.mustache(h.dot(n.lookup("statistics"),"totalRooms"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Stats_Total_Channels")})),"\n ",T.TD(f.View("lookup:statistics.totalChannels",function(){return h.mustache(h.dot(n.lookup("statistics"),"totalChannels"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Stats_Total_Private_Groups")})),"\n ",T.TD(f.View("lookup:statistics.totalPrivateGroups",function(){return h.mustache(h.dot(n.lookup("statistics"),"totalPrivateGroups"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Stats_Total_Direct_Messages")})),"\n ",T.TD(f.View("lookup:statistics.totalDirect",function(){return h.mustache(h.dot(n.lookup("statistics"),"totalDirect"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Stats_Total_Messages")})),"\n ",T.TD(f.View("lookup:statistics.totalMessages",function(){return h.mustache(h.dot(n.lookup("statistics"),"totalMessages"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Stats_Max_Room_Users")})),"\n ",T.TD(f.View("lookup:statistics.maxRoomUsers",function(){return h.mustache(h.dot(n.lookup("statistics"),"maxRoomUsers"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Stats_Avg_Channel_Users")})),"\n ",T.TD(f.View("lookup:numFormat",function(){return h.mustache(n.lookup("numFormat"),h.dot(n.lookup("statistics"),"avgChannelUsers"))})),"\n "),"\n ",T.TR("\n ",T.TH(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Stats_Avg_Private_Group_Users")})),"\n ",T.TD(f.View("lookup:numFormat",function(){return h.mustache(n.lookup("numFormat"),h.dot(n.lookup("statistics"),"avgPrivateGroupUsers"))})),"\n "),"\n "),"\n\n ",T.BUTTON({type:"button","class":"button refresh"},"Refresh"),"\n "]},function(){return["\n ",f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Loading...")}),"\n "]}),"\n "]}),"\n "),"\n ")})}.call(this),function(){o.__checkName("adminRooms"),o.adminRooms=new o("Template.adminRooms",function(){var n=this;return[T.SECTION({"class":"page-container page-list"},"\n ",T.HEAD({"class":"fixed-title"},"\n ",h.include(n.lookupTemplate("burger")),"\n ",T.H2("\n ",T.SPAN({"class":"room-title"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Rooms")})),"\n "),"\n "),"\n ",T.DIV({"class":"content"},"\n ",f.Unless(function(){return h.dataMustache(n.lookup("hasPermission"),"view-room-administration")},function(){return["\n ",T.P(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"You_are_not_authorized_to_view_this_page")})),"\n "]},function(){return["\n ",T.FORM({"class":"search-form",role:"form"},"\n ",T.DIV({"class":"input-line search"},"\n ",T.INPUT({type:"text",id:"rooms-filter",placeholder:function(){return h.mustache(n.lookup("_"),"Search")},dir:"auto"}),"\n ",T.I({"class":"icon-search"}),"\n ",f.Unless(function(){return h.call(n.lookup("isReady"))},function(){return T.I({"class":"icon-spin"})}),"\n "),"\n ",T.INPUT({type:"checkbox",name:"room-type",value:"c"})," ",f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Channels")}),"\n ",T.INPUT({type:"checkbox",name:"room-type",value:"d"})," ",f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Direct_Messages")}),"\n ",T.INPUT({type:"checkbox",name:"room-type",value:"p"})," ",f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Private_Groups")}),"\n "),"\n ",T.DIV({"class":"results"},"\n ",f.View("lookup:_",function(){return h.makeRaw(h.mustache(n.lookup("_"),"Showing_results",n.lookup("roomCount")))}),"\n "),"\n ",T.DIV({"class":"list"},"\n ",T.TABLE("\n ",T.THEAD("\n ",T.TR("\n ",T.TH({width:"30%"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Name")})),"\n ",T.TH({width:"20%"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Type")})),"\n ",T.TH({width:"20%"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Users")})),"\n ",T.TH({width:"10%"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Msgs")})),"\n ",T.TH({width:"20%"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Default")})),"\n "),"\n "),"\n ",T.TBODY("\n ",f.Each(function(){return h.call(n.lookup("rooms"))},function(){return["\n ",T.TR({"class":"room-info"},"\n ",T.TD(f.View("lookup:name",function(){
|
||
return h.mustache(n.lookup("name"))})),"\n ",T.TD(f.View("lookup:type",function(){return h.mustache(n.lookup("type"))})),"\n ",T.TD(f.View("lookup:usernames.length",function(){return h.mustache(h.dot(n.lookup("usernames"),"length"))})),"\n ",T.TD(f.View("lookup:msgs",function(){return h.mustache(n.lookup("msgs"))})),"\n ",T.TD(f.View("lookup:default",function(){return h.mustache(n.lookup("default"))})),"\n "),"\n "]}),"\n "),"\n "),"\n ",f.If(function(){return h.call(n.lookup("hasMore"))},function(){return["\n ",T.BUTTON({"class":function(){return["button secondary load-more ",h.mustache(n.lookup("isLoading"))]}},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Load_more")})),"\n "]}),"\n "),"\n "]}),"\n "),"\n "),"\n ",T.SECTION({"class":"flex-tab"},"\n ",f._TemplateWith(function(){return{template:h.call(n.lookup("flexTemplate")),data:h.call(n.lookup("flexData"))}},function(){return h.include(function(){return h.call(o.__dynamic)})}),"\n ")]})}.call(this),function(){o.__checkName("adminRoomInfo"),o.adminRoomInfo=new o("Template.adminRoomInfo",function(){var n=this;return h.With(function(){return h.call(n.lookup("selectedRoom"))},function(){return["\n ",T.DIV({"class":"content"},"\n ",T.DIV({"class":"list-view channel-settings"},"\n ",T.DIV({"class":"title"},"\n ",T.H2(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Room_Info")})),"\n "),"\n ",T.FORM("\n ",T.UL({"class":"list clearfix"},"\n ",f.If(function(){return h.call(n.lookup("notDirect"))},function(){return["\n ",T.LI("\n ",T.LABEL(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Name")})),"\n ",T.DIV("\n ",f.If(function(){return h.dataMustache(n.lookup("editing"),"roomName")},function(){return["\n ",T.INPUT({type:"text",name:"roomName",value:function(){return h.mustache(n.lookup("roomName"))},"class":"editing"})," ",T.BUTTON({type:"button","class":"button secondary cancel"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Cancel")}))," ",T.BUTTON({type:"button","class":"button primary save"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Save")})),"\n "]},function(){return["\n ",T.SPAN(f.View("lookup:roomName",function(){return h.mustache(n.lookup("roomName"))}),f.If(function(){return h.call(n.lookup("canEdit"))},function(){return[" ",T.I({"class":"icon-pencil","data-edit":"roomName"})]})),"\n "]}),"\n "),"\n "),"\n "]}),"\n ",T.LI("\n ",T.LABEL(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Topic")})),"\n ",T.DIV("\n ",f.If(function(){return h.dataMustache(n.lookup("editing"),"roomTopic")},function(){return["\n ",T.INPUT({type:"text",name:"roomTopic",value:function(){return h.mustache(n.lookup("roomTopic"))},"class":"editing"})," ",T.BUTTON({type:"button","class":"button secondary cancel"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Cancel")}))," ",T.BUTTON({type:"button","class":"button primary save"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Save")})),"\n "]},function(){return["\n ",T.SPAN(f.View("lookup:roomTopic",function(){return h.mustache(n.lookup("roomTopic"))}),f.If(function(){return h.call(n.lookup("canEdit"))},function(){return[" ",T.I({"class":"icon-pencil","data-edit":"roomTopic"})]})),"\n "]}),"\n "),"\n "),"\n ",f.If(function(){return h.call(n.lookup("notDirect"))},function(){return["\n ",T.LI("\n ",T.LABEL(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Type")})),"\n ",T.DIV("\n ",f.If(function(){return h.dataMustache(n.lookup("editing"),"roomType")},function(){return["\n ",T.LABEL(T.INPUT({type:"radio",name:"roomType","class":"editing",value:"c",checked:function(){return h.mustache(n.lookup("$eq"),n.lookup("roomType"),"c")}})," ",f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Channel")})),"\n ",T.LABEL(T.INPUT({type:"radio",name:"roomType",value:"p",checked:function(){return h.mustache(n.lookup("$eq"),n.lookup("roomType"),"p")}})," ",f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Private_Group")})),"\n ",T.BUTTON({type:"button","class":"button secondary cancel"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Cancel")})),"\n ",T.BUTTON({type:"button","class":"button primary save"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Save")})),"\n "]},function(){return["\n ",T.SPAN(f.View("lookup:roomTypeDescription",function(){return h.mustache(n.lookup("roomTypeDescription"))}),f.If(function(){return h.call(n.lookup("canEdit"))},function(){return[" ",T.I({"class":"icon-pencil","data-edit":"roomType"})]})),"\n "]}),"\n "),"\n "),"\n "]}),"\n ",f.If(function(){return h.call(n.lookup("notDirect"))},function(){return["\n ",T.LI("\n ",T.LABEL(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Room_archivation_state")})),"\n ",T.DIV("\n ",f.If(function(){return h.dataMustache(n.lookup("editing"),"archivationState")},function(){return["\n ",T.LABEL(T.INPUT({type:"radio",name:"archivationState","class":"editing",value:"true",checked:function(){return h.mustache(n.lookup("$eq"),n.lookup("archivationState"),!0)}})," ",f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Room_archivation_state_true")})),"\n ",T.LABEL(T.INPUT({type:"radio",name:"archivationState",value:"false",checked:function(){return h.mustache(n.lookup("$neq"),n.lookup("archivationState"),!0)}})," ",f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Room_archivation_state_false")})),"\n ",T.BUTTON({type:"button","class":"button secondary cancel"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Cancel")})),"\n ",T.BUTTON({type:"button","class":"button primary save"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Save")})),"\n "]},function(){return["\n ",T.SPAN(f.View("lookup:archivationStateDescription",function(){return h.mustache(n.lookup("archivationStateDescription"))}),f.If(function(){return h.call(n.lookup("canEdit"))},function(){return[" ",T.I({"class":"icon-pencil","data-edit":"archivationState"})]})),"\n "]}),"\n "),"\n "),"\n "]}),"\n ",f.Each(function(){return h.call(n.lookup("channelSettings"))},function(){return["\n ",f._TemplateWith(function(){return{template:h.call(n.lookup("template")),data:h.call(n.lookup("data"))}},function(){return h.include(function(){return h.call(o.__dynamic)})}),"\n "]}),"\n "),"\n "),"\n ",f.If(function(){return h.call(n.lookup("canDeleteRoom"))},function(){return["\n ",T.NAV("\n ",T.BUTTON({"class":"button delete red"},T.SPAN(T.I({"class":"icon-trash"})," ",f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Delete")}))),"\n "),"\n "]}),"\n "),"\n "),"\n "]})})}.call(this),function(){v="object"==typeof v?v:{};var e=v;o.adminRoomInfo.helpers({selectedRoom:function(){return Session.get("adminRoomsSelected")},canEdit:function(){return i.authz.hasAllPermission("edit-room",this.rid)},editing:function(n){return o.instance().editing.get()===n},notDirect:function(){var n;return"d"!==(null!=(n=ChatRoom.findOne(this.rid,{fields:{t:1}}))?n.t:void 0)},roomType:function(){var n;return null!=(n=ChatRoom.findOne(this.rid,{fields:{t:1}}))?n.t:void 0},channelSettings:function(){return i.ChannelSettings.getOptions()},roomTypeDescription:function(){var n,e;return e=null!=(n=ChatRoom.findOne(this.rid,{fields:{t:1}}))?n.t:void 0,"c"===e?t("Channel"):"p"===e?t("Private_Group"):void 0},roomName:function(){var n;return null!=(n=ChatRoom.findOne(this.rid,{fields:{name:1}}))?n.name:void 0},roomTopic:function(){var n;return null!=(n=ChatRoom.findOne(this.rid,{fields:{topic:1}}))?n.topic:void 0},archivationState:function(){var n;return null!=(n=ChatRoom.findOne(this.rid,{fields:{archived:1}}))?n.archived:void 0},archivationStateDescription:function(){var n,e;return n=null!=(e=ChatRoom.findOne(this.rid,{fields:{archived:1}}))?e.archived:void 0,t(n===!0?"Room_archivation_state_true":"Room_archivation_state_false")},canDeleteRoom:function(){var n,t;return t=null!=(n=ChatRoom.findOne(this.rid,{fields:{t:1}}))?n.t:void 0,null!=t&&i.authz.hasAtLeastOnePermission("delete-"+t)}}),o.adminRoomInfo.events({"click .delete":function(){return swal({title:t("Are_you_sure"),text:t("Delete_Room_Warning"),type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:t("Yes_delete_it"),cancelButtonText:t("Cancel"),closeOnConfirm:!1,html:!1},function(e){return function(){return swal.disableButtons(),n.call("eraseRoom",e.rid,function(n,e){return n?(toastr.error(n.reason),swal.enableButtons()):swal({title:t("Deleted"),text:t("Room_has_been_deleted"),type:"success",timer:2e3,showConfirmButton:!1})})}}(this))},"keydown input[type=text]":function(n,t){return 13===n.keyCode?(n.preventDefault(),t.saveSetting(this.rid)):void 0},"click [data-edit]":function(n,t){return n.preventDefault(),t.editing.set($(n.currentTarget).data("edit")),setTimeout(function(){return t.$("input.editing").focus().select()},100)},"click .cancel":function(n,t){return n.preventDefault(),t.editing.set()},"click .save":function(n,t){return n.preventDefault(),t.saveSetting(this.rid)}}),o.adminRoomInfo.onCreated(function(){return this.editing=new ReactiveVar,this.validateRoomType=function(n){return function(e){var o;return o=n.$("input[name=roomType]:checked").val(),"c"!==o&&"p"!==o&&toastr.error(t("Invalid_room_type",o)),!0}}(this),this.validateRoomName=function(n){return function(n){var e,o,u,r;if(r=ChatRoom.findOne(n),!i.authz.hasAllPermission("edit-room",n)||"c"!==(u=r.t)&&"p"!==u)return toastr.error(t("Not_allowed")),!1;e=$("input[name=roomName]").val();try{o=new RegExp("^"+i.settings.get("UTF8_Names_Validation")+"$")}catch(a){o=new RegExp("^[0-9a-zA-Z-_.]+$")}return o.test(e)?!0:(toastr.error(t("Invalid_room_name",e)),!1)}}(this),this.validateRoomTopic=function(n){return function(n){return!0}}(this),this.saveSetting=function(t){return function(e){var o,u;switch(t.editing.get()){case"roomName":t.validateRoomName(e)&&n.call("saveRoomSettings",e,"roomName",t.$("input[name=roomName]").val(),function(n,t){var e;return n?toastr.error("duplicate-name"===(e=n.error)||"name-invalid"===e?_.__(n.reason,n.details.channelName):_.__(n.reason)):toastr.success(_.__("Room_name_changed_successfully"))});break;case"roomTopic":t.validateRoomTopic(e)&&n.call("saveRoomSettings",e,"roomTopic",t.$("input[name=roomTopic]").val(),function(n,t){return n?toastr.error(_.__(n.reason)):toastr.success(_.__("Room_topic_changed_successfully"))});break;case"roomType":t.validateRoomType(e)&&n.call("saveRoomSettings",e,"roomType",t.$("input[name=roomType]:checked").val(),function(n,t){return n?toastr.error("invalid-room-type"===n.error?_.__(n.reason,n.details.roomType):_.__(n.reason)):toastr.success(_.__("Room_type_changed_successfully"))});break;case"archivationState":"true"===t.$("input[name=archivationState]:checked").val()?(null!=(o=ChatRoom.findOne(e))?o.archived:void 0)!==!0&&n.call("archiveRoom",e,function(n,t){return n?toastr.error(n.reason):toastr.success(_.__("Room_archived"))}):(null!=(u=ChatRoom.findOne(e))?u.archived:void 0)===!0&&n.call("unarchiveRoom",e,function(n,t){return n?toastr.error(n.reason):toastr.success(_.__("Room_unarchived"))})}return t.editing.set()}}(this)})}.call(this),function(){o.__checkName("channelSettingsDefault"),o.channelSettingsDefault=new o("Template.channelSettingsDefault",function(){var n=this;return f.If(function(){return h.call(n.lookup("canMakeDefault"))},function(){return["\n ",T.LI("\n ",T.LABEL(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Default")})),"\n ",T.DIV("\n ",f.If(function(){return h.dataMustache(n.lookup("editing"),"default")},function(){return["\n ",T.LABEL(T.INPUT({type:"radio",name:"default","class":"editing",value:"true",checked:function(){return h.mustache(n.lookup("$eq"),n.lookup("roomDefault"),!0)}})," ",f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"True")})),"\n ",T.LABEL(T.INPUT({type:"radio",name:"default",value:"false",checked:function(){return h.mustache(n.lookup("$neq"),n.lookup("roomDefault"),!0)}})," ",f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"False")})),"\n ",T.BUTTON({type:"button","class":"button secondary cancel"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Cancel")})),"\n ",T.BUTTON({type:"button","class":"button primary save"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Save")})),"\n "]},function(){return["\n ",T.SPAN(f.View("lookup:defaultDescription",function(){return h.mustache(n.lookup("defaultDescription"))})," ",T.I({"class":"icon-pencil","data-edit":"default"})),"\n "]}),"\n "),"\n "),"\n "]})})}.call(this),function(){o.channelSettingsDefault.helpers({canMakeDefault:function(){var n=ChatRoom.findOne(this.rid,{fields:{t:1}});return n&&"c"===n.t},editing:function(n){return o.instance().editing.get()===n},roomDefault:function(){var n=ChatRoom.findOne(this.rid,{fields:{"default":1}});return n?n["default"]:void 0},defaultDescription:function(){var n=ChatRoom.findOne(this.rid,{fields:{"default":1}});return t(n&&n["default"]?"True":"False")}}),o.channelSettingsDefault.events({"click [data-edit]":function(n,t){n.preventDefault(),t.editing.set($(n.currentTarget).data("edit")),setTimeout(function(){t.$("input.editing").focus().select()},100)},"click .cancel":function(n,t){n.preventDefault(),t.editing.set()},"click .save":function(t,e){t.preventDefault(),n.call("saveRoomSettings",this.rid,"default",$("input[name=default]:checked").val(),function(n){return n?toastr.error("invalid-room-type"===n.error?_.__(n.reason,n.details.roomType):_.__(n.reason)):void toastr.success(_.__("Room_type_changed_successfully"))}),e.editing.set()}}),o.channelSettingsDefault.onCreated(function(){this.editing=new ReactiveVar})}.call(this),function(){o.__checkName("adminInviteUser"),o.adminInviteUser=new o("Template.adminInviteUser",function(){var n=this;return f.If(function(){return h.call(n.lookup("isAdmin"))},function(){return["\n ",T.DIV({"class":"about clearfix"},"\n ",T.FORM({"class":"edit-form"},"\n ",T.H3(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Send_invitation_email")})),"\n ",T.DIV({"class":"input-line"},"\n ",T.LABEL({"for":"inviteEmails"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Send_invitation_email_info")})),"\n ",T.TEXTAREA({id:"inviteEmails",rows:"3",style:"height: auto"}),"\n "),"\n "),"\n "),"\n ",T.NAV("\n ",T.BUTTON({"class":"button button-block cancel secondary"},T.SPAN(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Cancel")}))),"\n ",T.BUTTON({"class":"button button-block blue send","data-loading-text":function(){return h.mustache(n.lookup("_"),"Please_wait")}},T.SPAN(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Send")}))),"\n "),"\n ",f.If(function(){return h.call(h.dot(n.lookup("inviteEmails"),"length"))},function(){return["\n ",T.DIV({"class":"about clearfix",style:"margin-top: 30px"},"\n ",T.P({style:"color: #51a351"}," ",f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Send_invitation_email_success")})," "),"\n ",T.UL({style:"margin: 5px 10px"},"\n ",f.Each(function(){return h.call(n.lookup("inviteEmails"))},function(){return["\n ",T.LI({style:"margin-top: 5px"},f.View("lookup:.",function(){return h.mustache(n.lookup("."))})),"\n "]}),"\n "),"\n "),"\n "]}),"\n "]})})}.call(this),function(){o.__checkName("adminUserChannels"),o.adminUserChannels=new o("Template.adminUserChannels",function(){var n=this;return f.Unless(function(){return h.dataMustache(n.lookup("hasPermission"),"view-full-other-user-info")},function(){return["\n ",T.P(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"You_are_not_authorized_to_view_this_page")})),"\n "]},function(){return["\n ",T.DIV({"class":"user-info-channel"},"\n ",T.H3(T.A({href:function(){return h.mustache(n.lookup("route"))}},T.I({"class":function(){return["icon-",h.mustache(n.lookup("type"))]}})," ",f.View("lookup:name",function(){return h.mustache(n.lookup("name"))}))),"\n "),"\n "]})})}.call(this),function(){o.__checkName("adminUserEdit"),o.adminUserEdit=new o("Template.adminUserEdit",function(){var n=this;return T.DIV({"class":"content"},"\n ",T.DIV({"class":"user-view"},"\n ",f._TemplateWith(function(){return h.call(n.lookup("."))},function(){return h.include(n.lookupTemplate("userEdit"))}),"\n "),"\n ")})}.call(this),function(){o.__checkName("adminUserInfo"),o.adminUserInfo=new o("Template.adminUserInfo",function(){var n=this;return T.DIV({"class":"content"},"\n ",T.DIV({"class":"user-view"},"\n ",f._TemplateWith(function(){return h.call(n.lookup("."))},function(){return h.include(n.lookupTemplate("userInfo"))}),"\n "),"\n ")})}.call(this),function(){o.__checkName("adminUsers"),o.adminUsers=new o("Template.adminUsers",function(){var n=this;return[T.SECTION({"class":"page-container page-list"},"\n ",T.HEAD({"class":"fixed-title"},"\n ",h.include(n.lookupTemplate("burger")),"\n ",T.H2("\n ",T.SPAN({"class":"room-title"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Users")})),"\n "),"\n "),"\n ",T.DIV({"class":"content"},"\n ",f.Unless(function(){return h.dataMustache(n.lookup("hasPermission"),"view-user-administration")},function(){return["\n ",T.P(f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"You_are_not_authorized_to_view_this_page")})),"\n "]},function(){return["\n ",T.FORM({"class":"search-form",role:"form"},"\n ",T.DIV({"class":"input-line search"},"\n ",T.INPUT({type:"text",id:"users-filter",placeholder:function(){return h.mustache(n.lookup("_"),"Search")},dir:"auto"}),"\n ",T.I({"class":"icon-search"}),"\n ",f.Unless(function(){return h.call(n.lookup("isReady"))},function(){return T.I({"class":"icon-spin"})}),"\n "),"\n "),"\n ",T.DIV({"class":"results"},"\n ",f.View("lookup:_",function(){return h.makeRaw(h.mustache(n.lookup("_"),"Showing_results",h.dot(n.lookup("users"),"length")))}),"\n "),"\n ",T.DIV({"class":"list"},"\n ",T.TABLE("\n ",T.THEAD("\n ",T.TR("\n ",T.TH(T.CharRef({html:" ",str:" "})),"\n ",T.TH({width:"34%"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Name")})),"\n ",T.TH({width:"33%"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Username")})),"\n ",T.TH({width:"33%"},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"E-mail")})),"\n "),"\n "),"\n ",T.TBODY("\n ",f.Each(function(){return h.call(n.lookup("users"))},function(){return["\n ",T.TR({"class":"user-info"},"\n ",T.TD("\n ",T.DIV({"class":function(){return["user-image status-",h.mustache(n.lookup("status"))]}},"\n ",f._TemplateWith(function(){return{username:h.call(n.lookup("username"))}},function(){return h.include(n.lookupTemplate("avatar"))}),"\n "),"\n "),"\n ",T.TD(f.View("lookup:name",function(){return h.mustache(n.lookup("name"))})),"\n ",T.TD(f.View("lookup:username",function(){return h.mustache(n.lookup("username"))})),"\n ",T.TD(f.View("lookup:emailAddress",function(){return h.mustache(n.lookup("emailAddress"))})),"\n "),"\n "]}),"\n "),"\n "),"\n ",f.If(function(){return h.call(n.lookup("hasMore"))},function(){return["\n ",T.BUTTON({"class":function(){return["button secondary load-more ",h.mustache(n.lookup("isLoading"))]}},f.View("lookup:_",function(){return h.mustache(n.lookup("_"),"Load_more")})),"\n "]}),"\n "),"\n "]}),"\n "),"\n "),"\n ",T.SECTION({"class":"flex-tab"},"\n ",f._TemplateWith(function(){return{template:h.call(n.lookup("flexTemplate")),data:h.call(n.lookup("flexData"))}},function(){return h.include(function(){return h.call(o.__dynamic)})}),"\n ")]})}.call(this),function(){v="object"==typeof v?v:{};var e=v;this.TempSettings=new n.Collection(null),this.Settings.find().observe({added:function(n){return TempSettings.insert(n)},changed:function(n){return TempSettings.update(n._id,n)},removed:function(n){return TempSettings.remove(n._id)}}),o.admin.helpers({languages:function(){var n,t,e,o;e=_.getLanguages(),o=[];for(n in e)t=e[n],o.push(u.extend(t,{key:n}));return o=u.sortBy(o,"key"),o.unshift({name:"Default",en:"Default",key:""}),o},appLanguage:function(n){var t,e;return n?e=(null!=(t=i.settings.get("Language"))?t.split("-").shift().toLowerCase():void 0)===n:!i.settings.get("Language")},group:function(){var n,t;return n=FlowRouter.getParam("group"),null==n&&(n=null!=(t=TempSettings.findOne({type:"group"}))?t._id:void 0),TempSettings.findOne({_id:n,type:"group"})},sections:function(){var n,t,e,o,u,i,r,a,s,c,l;for(n=FlowRouter.getParam("group"),null==n&&(n=null!=(i=TempSettings.findOne({type:"group"}))?i._id:void 0),c=TempSettings.find({group:n},{sort:{section:1,sorter:1,i18nLabel:1}}).fetch(),r={},t=0,o=c.length;o>t;t++)s=c[t],null==r[u=s.section||""]&&(r[u]=[]),r[s.section||""].push(s);a=[];for(e in r)l=r[e],a.push({section:e,settings:l});return a},isDisabled:function(){var n,t,e,o,i;if(this.blocked)return{disabled:"disabled"};if(null==this.enableQuery)return{};for(n=u.isString(this.enableQuery)?JSON.parse(this.enableQuery):this.enableQuery,u.isArray(n)||(n=[n]),t=0,e=0,i=n.length;i>e;e++)o=n[e],null!=TempSettings.findOne(o)&&t++;return t===n.length?{}:{disabled:"disabled"}},isReadonly:function(){return this.readonly===!0?{readonly:"readonly"}:void 0},hasChanges:function(n){var t,e;return t=FlowRouter.getParam("group"),e={group:t,changed:!0},null!=n&&(""===n?e.$or=[{section:""},{section:{$exists:!1}}]:e.section=n),TempSettings.find(e).count()>0},translateSection:function(n){return n.indexOf(":")>-1?n:t(n)},flexOpened:function(){return i.TabBar.isFlexOpen()?"opened":void 0},arrowPosition:function(){return window.rocketDebug&&console.log("room.helpers arrowPosition"),i.TabBar.isFlexOpen()?void 0:"left"},label:function(){var n;return n=this.i18nLabel||this._id,n?_.__(n):void 0},description:function(){var n;return this.i18nDescription&&(n=_.__(this.i18nDescription)),null!=n&&n!==this.i18nDescription?n:void 0},sectionIsCustomOAuth:function(n){return/^Custom OAuth:\s.+/.test(n)},callbackURL:function(t){var e;return e=s.strRight(t,"Custom OAuth: ").toLowerCase(),n.absoluteUrl("_oauth/"+e)},relativeUrl:function(t){return n.absoluteUrl(t)},selectedOption:function(n,t){return i.settings.get(n)===t},random:function(){return Random.id()},getEditorOptions:function(){return{lineNumbers:!0,mode:this.code||"javascript",gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],foldGutter:!0,matchBrackets:!0,autoCloseBrackets:!0,matchTags:!0,showTrailingSpace:!0,highlightSelectionMatches:!0}},setEditorOnBlur:function(t){n.defer(function(){var n,e,o;return n=$('.code-mirror-box[data-editor-id="'+t+'"] .CodeMirror')[0].CodeMirror,n.changeAdded!==!0?(e=function(){var e;return e=n.getValue(),TempSettings.update({_id:t},{$set:{value:e,changed:Settings.findOne(t).value!==e}})},o=u.debounce(e,500),n.on("change",o),n.changeAdded=!0):void 0})},assetAccept:function(n){var t;return(null!=(t=n.extensions)?t.length:void 0)>0?"."+n.extensions.join(", ."):void 0}}),o.admin.events({"change .input-monitor":function(n,t){var e;switch(e=u.trim($(n.target).val()),this.type){case"int":e=parseInt(e);break;case"boolean":e="1"===e}return TempSettings.update({_id:this._id},{$set:{value:e,changed:Settings.findOne(this._id).value!==e}})},"click .submit .save":function(n,t){var e,o,r;return e=FlowRouter.getParam("group"),o={group:e,changed:!0},""===this.section?o.$or=[{section:""},{section:{$exists:!1}}]:o.section=this.section,r=TempSettings.find(o,{fields:{_id:1,value:1}}).fetch(),u.isEmpty(r)?void 0:i.settings.batchSet(r,function(n,t){return n?toastr.error(_.__("Error_updating_settings")):toastr.success(_.__("Settings_updated"))})},"click .submit .refresh-clients":function(t,e){return n.call("refreshClients",function(){return toastr.success(_.__("Clients_will_refresh_in_a_few_seconds"))})},"click .submit .add-custom-oauth":function(t,e){var o;return o={title:_.__("Add_custom_oauth"),text:_.__("Give_a_unique_name_for_the_custom_oauth"),type:"input",showCancelButton:!0,closeOnConfirm:!0,inputPlaceholder:_.__("Custom_oauth_unique_name")},swal(o,function(t){return t===!1?!1:""===t?(swal.showInputError(_.__("Name_cant_be_empty")),!1):n.call("addOAuthService",t)})},"click .submit .remove-custom-oauth":function(t,e){var o,u;return u=this.section.replace("Custom OAuth: ",""),o={title:_.__("Are_you_sure"),type:"input",type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:_.__("Yes_delete_it"),cancelButtonText:_.__("Cancel"),closeOnConfirm:!0},swal(o,function(){return n.call("removeOAuthService",u)})},"click .delete-asset":function(){return n.call("unsetAsset",this.asset)},"change input[type=file]":function(t){var e,o,u,i,r,a,s,c;for(o=t.originalEvent||t,u=o.target.files,u&&0!==u.length||(u=(null!=(s=o.dataTransfer)?s.files:void 0)||[]),c=[],i=0,r=u.length;r>i;i++)e=u[i],toastr.info(_.__("Uploading_file")),a=new FileReader,a.readAsBinaryString(e),c.push(a.onloadend=function(t){return function(){return n.call("setAsset",a.result,e.type,t.asset,function(n,t){return null!=n?(toastr.error(n.reason,_.__(n.error)),void console.log(n)):toastr.success(_.__("File_uploaded"))})}}(this));return c},"click .expand":function(n){return $(n.currentTarget).closest(".section").removeClass("section-collapsed"),$(n.currentTarget).closest("button").removeClass("expand").addClass("collapse").find("span").text(_.__("Collapse")),$(".code-mirror-box .CodeMirror").each(function(n,t){return t.CodeMirror.refresh()})},"click .collapse":function(n){return $(n.currentTarget).closest(".section").addClass("section-collapsed"),$(n.currentTarget).closest("button").addClass("expand").removeClass("collapse").find("span").text(_.__("Expand"))},"click button.action":function(t){return"action"===this.type?n.call(this.value,function(n,t){var e;return null!=n?void toastr.error(_.__(n.error),_.__("Error")):(e=[t.message].concat(t.params),toastr.success(_.__.apply(_,e),_.__("Success")))}):void 0},"click .button-fullscreen":function(){var n;return n=$('.code-mirror-box[data-editor-id="'+this._id+'"]'),n.addClass("code-mirror-box-fullscreen"),n.find(".CodeMirror")[0].CodeMirror.refresh()},"click .button-restore":function(){var n;return n=$('.code-mirror-box[data-editor-id="'+this._id+'"]'),n.removeClass("code-mirror-box-fullscreen"),n.find(".CodeMirror")[0].CodeMirror.refresh()}}),o.admin.onRendered(function(){return Tracker.afterFlush(function(){return SideNav.setFlex("adminFlex"),SideNav.openFlex()}),n.setTimeout(function(){return $("input.minicolors").minicolors({theme:"rocketchat"})},1e3),Tracker.autorun(function(){return FlowRouter.watchPathChange(),n.setTimeout(function(){return $("input.minicolors").minicolors({theme:"rocketchat"})},400)})})}.call(this),function(){v="object"==typeof v?v:{};var n=v;o.adminFlex.helpers({groups:function(){return Settings.find({type:"group"},{sort:{sort:1,i18nLabel:1}}).fetch()},label:function(){return _.__(this.i18nLabel||this._id)},adminBoxOptions:function(){return i.AdminBox.getOptions()}}),o.adminFlex.events({"mouseenter header":function(){return SideNav.overArrow()},"mouseleave header":function(){return SideNav.leaveArrow()},"click header":function(){return SideNav.closeFlex()},"click .cancel-settings":function(){return SideNav.closeFlex()},"click .admin-link":function(){return menu.close()}})}.call(this),function(){v="object"==typeof v?v:{};var t=v;o.adminInfo.helpers({isReady:function(){return o.instance().ready.get()},statistics:function(){return o.instance().statistics.get()},inGB:function(n){return n>1073741824?u.numberFormat(n/1024/1024/1024,2)+" GB":u.numberFormat(n/1024/1024,2)+" MB"},humanReadableTime:function(n){var t,e,o,u,i;return t=Math.floor(n/86400),e=Math.floor(n%86400/3600),o=Math.floor(n%86400%3600/60),i=Math.floor(n%86400%3600%60),u="",t>0&&(u+=t+" "+_.__("days")+", "),e>0&&(u+=e+" "+_.__("hours")+", "),o>0&&(u+=o+" "+_.__("minutes")+", "),i>0&&(u+=i+" "+_.__("seconds")),u},formatDate:function(n){return n?moment(n).format("LLL"):void 0},numFormat:function(n){return u.numberFormat(n,2)},optOut:function(){return i.settings.get("Statistics_opt_out")},info:function(){return i.Info},build:function(){var n,t;return(null!=(n=i.Info)?n.compile:void 0)||(null!=(t=i.Info)?t.build:void 0)}}),o.adminInfo.events({"click input[name=opt-out-statistics]":function(n){return $(n.currentTarget).prop("checked")?($("#opt-out-warning").show(),i.settings.set("Statistics_opt_out",!0,function(){return toastr.success(_.__("Settings_updated"))})):($("#opt-out-warning").hide(),i.settings.set("Statistics_opt_out",!1,function(){return toastr.success(_.__("Settings_updated"))}))},"click .refresh":function(t,e){return e.ready.set(!1),n.call("getStatistics",!0,function(n,t){return e.ready.set(!0),n?toastr.error(n.reason):e.statistics.set(t)})}}),o.adminInfo.onRendered(function(){return Tracker.afterFlush(function(){return SideNav.setFlex("adminFlex"),SideNav.openFlex(),i.settings.get("Statistics_opt_out")?$("#opt-out-warning").show():$("#opt-out-warning").hide()})}),o.adminInfo.onCreated(function(){var t;return t=this,this.statistics=new ReactiveVar({}),this.ready=new ReactiveVar(!1),i.authz.hasAllPermission("view-statistics")?n.call("getStatistics",function(n,e){return t.ready.set(!0),n?toastr.error(n.reason):t.statistics.set(e)}):void 0})}.call(this),function(){v="object"==typeof v?v:{};var n=v;o.adminRooms.helpers({isReady:function(){var n;return null!=(n=o.instance().ready)?n.get():void 0},rooms:function(){return o.instance().rooms()},flexOpened:function(){return i.TabBar.isFlexOpen()?"opened":void 0},arrowPosition:function(){return i.TabBar.isFlexOpen()?void 0:"left"},isLoading:function(){var n;return(null!=(n=o.instance().ready)?n.get():void 0)?void 0:"btn-loading"},hasMore:function(){var n,t;return(null!=(t=o.instance().limit)?t.get():void 0)===("function"==typeof(n=o.instance()).rooms?n.rooms().count():void 0)},roomCount:function(){var n;return"function"==typeof(n=o.instance()).rooms?n.rooms().count():void 0},name:function(){return"c"===this.t||"p"===this.t?this.name:"d"===this.t?this.usernames.join(" x "):void 0},type:function(){return"c"===this.t?_.__("Channel"):"d"===this.t?_.__("Direct Message"):"p"===this.t?_.__("Private Group"):void 0},flexTemplate:function(){return i.TabBar.getTemplate()},flexData:function(){return i.TabBar.getData()},"default":function(){return t(this["default"]?"True":"False")}}),o.adminRooms.onCreated(function(){var n;return n=this,this.limit=new ReactiveVar(50),this.filter=new ReactiveVar(""),this.types=new ReactiveVar([]),this.ready=new ReactiveVar(!0),i.TabBar.addButton({groups:["adminrooms"],id:"admin-room",i18nTitle:"Room_Info",icon:"icon-info",template:"adminRoomInfo",order:1}),i.ChannelSettings.addOption({id:"make-default",template:"channelSettingsDefault",data:function(){return Session.get("adminRoomsSelected")},validation:function(){return i.authz.hasAllPermission("view-room-administration")}}),this.autorun(function(){var t,e,o,u;return t=n.filter.get(),u=n.types.get(),0===u.length&&(u=["c","d","p"]),e=n.limit.get(),o=n.subscribe("adminRooms",t,u,e),n.ready.set(o.ready())}),this.rooms=function(){var t,e,o,i,r,a,s;return t=u.trim(null!=(i=n.filter)?i.get():void 0),s=null!=(r=n.types)?r.get():void 0,u.isArray(s)||(s=[]),o={},t=u.trim(t),t&&(e=new RegExp(t,"i"),o={$or:[{name:e},{t:"d",usernames:e}]}),s.length&&(o.t={$in:s}),ChatRoom.find(o,{limit:null!=(a=n.limit)?a.get():void 0,
|
||
sort:{"default":-1,name:1}})},this.getSearchTypes=function(){return u.map($("[name=room-type]:checked"),function(n){return $(n).val()})}}),o.adminRooms.onRendered(function(){return Tracker.afterFlush(function(){return SideNav.setFlex("adminFlex"),SideNav.openFlex()})}),o.adminRooms.events({"keydown #rooms-filter":function(n){return 13===n.which?(n.stopPropagation(),n.preventDefault()):void 0},"keyup #rooms-filter":function(n,t){return n.stopPropagation(),n.preventDefault(),t.filter.set(n.currentTarget.value)},"click .room-info":function(n){return n.preventDefault(),Session.set("adminRoomsSelected",{rid:this._id}),i.TabBar.setTemplate("adminRoomInfo")},"click .load-more":function(n,t){return n.preventDefault(),n.stopPropagation(),t.limit.set(t.limit.get()+50)},"change [name=room-type]":function(n,t){return t.types.set(t.getSearchTypes())}})}.call(this),function(){v="object"==typeof v?v:{};var e=v;o.adminInviteUser.helpers({isAdmin:function(){return i.authz.hasRole(n.userId(),"admin")},inviteEmails:function(){return o.instance().inviteEmails.get()}}),o.adminInviteUser.events({"click .send":function(e,o){var i,r,a;return i=$("#inviteEmails").val().split(/[\s,;]/),r=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,a=u.compact(u.map(i,function(n){return r.test(n)?n:void 0})),a.length?n.call("sendInvitationEmail",a,function(n,t){return t&&(o.clearForm(),o.inviteEmails.set(a)),n?toastr.error(n.reason):void 0}):toastr.error(t("Send_invitation_email_error"))},"click .cancel":function(n,t){return t.clearForm(),t.inviteEmails.set([]),i.TabBar.closeFlex()}}),o.adminInviteUser.onCreated(function(){return this.inviteEmails=new ReactiveVar([]),this.clearForm=function(){return $("#inviteEmails").val("")}})}.call(this),function(){v="object"==typeof v?v:{};var n=v;o.adminUserChannels.helpers({type:function(){return"d"===this.t?"at":"p"===this.t?"lock":"hash"},route:function(){switch(this.t){case"d":return FlowRouter.path("direct",{username:this.name});case"p":return FlowRouter.path("group",{name:this.name});case"c":return FlowRouter.path("channel",{name:this.name})}}})}.call(this),function(){v="object"==typeof v?v:{};var t=v;o.adminUsers.helpers({isReady:function(){var n;return null!=(n=o.instance().ready)?n.get():void 0},users:function(){return o.instance().users()},isLoading:function(){var n;return(null!=(n=o.instance().ready)?n.get():void 0)?void 0:"btn-loading"},hasMore:function(){var n,t;return(null!=(t=o.instance().limit)?t.get():void 0)===("function"==typeof(n=o.instance()).users?n.users().length:void 0)},flexTemplate:function(){return i.TabBar.getTemplate()},flexData:function(){return i.TabBar.getData()},emailAddress:function(){return u.map(this.emails,function(n){return n.address}).join(", ")}}),o.adminUsers.onCreated(function(){var t;return t=this,this.limit=new ReactiveVar(50),this.filter=new ReactiveVar(""),this.ready=new ReactiveVar(!0),i.TabBar.addButton({groups:["adminusers","adminusers-selected"],id:"invite-user",i18nTitle:"Invite_Users",icon:"icon-paper-plane",template:"adminInviteUser",order:1}),i.TabBar.addButton({groups:["adminusers","adminusers-selected"],id:"add-user",i18nTitle:"Add_User",icon:"icon-plus",template:"adminUserEdit",openClick:function(n,t){return i.TabBar.setData(),!0},order:2}),i.TabBar.addButton({groups:["adminusers-selected"],id:"admin-user-info",i18nTitle:"User_Info",icon:"icon-user",template:"adminUserInfo",order:3}),this.autorun(function(){var n,e,o;return n=t.filter.get(),e=t.limit.get(),o=t.subscribe("fullUserData",n,e),t.ready.set(o.ready())}),this.users=function(){var e,o,i,r,a;return e=u.trim(null!=(r=t.filter)?r.get():void 0),e?(o=new RegExp(e,"i"),i={$or:[{username:o},{name:o},{"emails.address":o}]}):i={},i.type={$in:["user","bot"]},n.users.find(i,{limit:null!=(a=t.limit)?a.get():void 0,sort:{username:1,name:1}}).fetch()}}),o.adminUsers.onRendered(function(){return Tracker.afterFlush(function(){return SideNav.setFlex("adminFlex"),SideNav.openFlex()})}),o.adminUsers.events({"keydown #users-filter":function(n){return 13===n.which?(n.stopPropagation(),n.preventDefault()):void 0},"keyup #users-filter":function(n,t){return n.stopPropagation(),n.preventDefault(),t.filter.set(n.currentTarget.value)},"click .flex-tab .more":function(){return i.TabBar.isFlexOpen()?i.TabBar.closeFlex():i.TabBar.openFlex()},"click .user-info":function(t){return t.preventDefault(),i.TabBar.setTemplate("adminUserInfo"),i.TabBar.setData(n.users.findOne(this._id)),i.TabBar.openFlex(),i.TabBar.showGroup("adminusers-selected")},"click .info-tabs a":function(n){return n.preventDefault(),$(".info-tabs a").removeClass("active"),$(n.currentTarget).addClass("active"),$(".user-info-content").hide(),$($(n.currentTarget).attr("href")).show()},"click .load-more":function(n,t){return n.preventDefault(),n.stopPropagation(),t.limit.set(t.limit.get()+50)}})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:ui-admin"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.mongo.Mongo,r=Package.ecmascript.ECMAScript,o=Package.templating.Template,u=Package.underscore._,i=Package["rocketchat:lib"].RocketChat,a=Package["babel-runtime"].babelHelpers,l=Package["ecmascript-runtime"].Symbol,c=Package["ecmascript-runtime"].Map,f=Package["ecmascript-runtime"].Set,m=Package.promise.Promise,d=Package.blaze.Blaze,h=Package.blaze.UI,p=Package.blaze.Handlebars,_=Package.spacebars.Spacebars,g=Package["tap:i18n"].TAPi18next,k=Package["tap:i18n"].TAPi18n,v=Package.htmljs.HTML,w;(function(){o.__checkName("flexTabBar"),o.flexTabBar=new o("Template.flexTabBar",function(){var e=this;return d.Each(function(){return _.call(e.lookup("buttons"))},function(){return["\n ",v.DIV({"class":function(){return["tab-button ",_.mustache(e.lookup("active"))," ",_.mustache(e.lookup("visible"))]},title:function(){return _.mustache(e.lookup("title"))}},"\n ",v.I({"class":function(){return _.mustache(e.lookup("icon"))},"aria-label":function(){return _.mustache(e.lookup("title"))},role:"button",tabindex:"0"}),"\n "),"\n "]})})}).call(this),function(){o.__checkName("membersList"),o.membersList=new o("Template.membersList",function(){var e=this;return v.DIV({"class":"content"},"\n ",_.include(e.lookupTemplate("videoCall")),"\n ",d.If(function(){return _.call(e.lookup("isGroupChat"))},function(){return["\n ",v.DIV({"class":"list-view animated"},"\n ",_.With(function(){return _.call(e.lookup("roomUsers"))},function(){return["\n ",v.DIV({"class":"title"},"\n ",v.H2(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Members_List")})),"\n ",v.P("\n ",d.View("lookup:_",function(){return _.makeRaw(_.mustache(e.lookup("_"),"Showing_online_users",_.kw({total_showing:e.lookup("totalShowing"),total:e.lookup("total")})))}),"\n ",v.A({"class":"see-all"},d.View("lookup:seeAll",function(){return _.mustache(e.lookup("seeAll"))})),"\n "),"\n ",_.include(e.lookupTemplate("videoButtons")),"\n ",d.If(function(){return _.call(e.lookup("canAddUser"))},function(){return["\n ",v.DIV({"class":"control"},"\n ",v.DIV({"class":"search-form"},"\n ",v.DIV({"class":"input-line search"},"\n ",d._TemplateWith(function(){return{settings:_.call(e.lookup("autocompleteSettingsAddUser")),id:_.call("user-add-search"),"class":_.call("search"),placeholder:_.call(e.lookup("tAddUsers"))}},function(){return _.include(e.lookupTemplate("inputAutocomplete"))}),"\n ",v.I({"class":"icon-plus"}),"\n "),"\n "),"\n "),"\n "]}),"\n "),"\n ",v.UL({"class":"list clearfix lines"},"\n ",d.Each(function(){return _.call(e.lookup("users"))},function(){return["\n ",v.LI({"class":function(){return["user-image user-card-room status-",_.mustache(e.lookup("status"))]}},"\n ",v.A({"data-username":function(){return _.mustache(e.lookup("username"))},tabindex:"0",title:function(){return _.mustache(e.lookup("username"))}},"\n ",d._TemplateWith(function(){return{username:_.call(e.lookup("username"))}},function(){return _.include(e.lookupTemplate("avatar"))}),"\n ",v.P(d.View("lookup:username",function(){return _.mustache(e.lookup("username"))})," ",d.View("lookup:utcOffset",function(){return _.mustache(e.lookup("utcOffset"))})),"\n "),"\n "),"\n "]}),"\n "),"\n ",d.If(function(){return _.call(e.lookup("hasMore"))},function(){return["\n ",v.BUTTON({"class":"button show-more-users"},d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Show_more")})),"\n "]}),"\n "]}),"\n "),"\n "]}),"\n ",v.DIV({"class":function(){return["user-view animated",d.Unless(function(){return _.call(e.lookup("showUserInfo"))},function(){return" animated-hidden"})]}},"\n ",d._TemplateWith(function(){return _.dataMustache(e.lookup("userInfoDetail"))},function(){return _.include(e.lookupTemplate("userInfo"))}),"\n "),"\n ")})}.call(this),function(){o.__checkName("messageSearch"),o.messageSearch=new o("Template.messageSearch",function(){var e=this;return v.DIV({"class":"content"},"\n ",v.DIV({"class":"list-view search-messages-list"},"\n ",v.DIV({"class":"title"},"\n ",v.H2(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Search_Messages")})),"\n "),"\n ",v.DIV({"class":"control"},"\n ",v.FORM({"class":"search-form",role:"form"},"\n ",v.DIV({"class":"input-line search"},"\n ",v.INPUT({type:"text",id:"message-search","class":"search",placeholder:function(){return _.mustache(e.lookup("tSearchMessages"))},autocomplete:"off"}),"\n ",v.Raw('<i class="icon-right-open-small"></i>'),"\n "),"\n "),"\n "),"\n ",d.If(function(){return _.call(e.lookup("currentSearchTerm"))},function(){return["\n ",d.Unless(function(){return _.call(e.lookup("searchResultMessages"))},function(){return["\n ",v.H2(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"No_results_found")})),"\n "]}),"\n "]}),"\n "),"\n ",v.UL({"class":"list clearfix"},"\n ",d.If(function(){return _.call(e.lookup("currentSearchTerm"))},function(){return["\n ",d.If(function(){return _.call(e.lookup("searchResultMessages"))},function(){return["\n ",d.Each(function(){return _.call(e.lookup("searchResultMessages"))},function(){return["\n ",d._TemplateWith(function(){return _.dataMustache(e.lookup("nrrargs"),"message",e.lookup("."))},function(){return _.include(e.lookupTemplate("nrr"),function(){return null})}),"\n "]}),"\n ",d.If(function(){return _.call(e.lookup("hasMore"))},function(){return["\n ",v.LI({"class":"load-more"},"\n ",d.If(function(){return _.call(e.lookup("ready"))},function(){return["\n ",v.A(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Has_more")}),"..."),"\n "]},function(){return["\n ",v.DIV({"class":"load-more-loading"},d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Loading...")})),"\n "]}),"\n "),"\n "]}),"\n "]}),"\n "]}),"\n "),"\n ")})}.call(this),function(){o.__checkName("uploadedFilesList"),o.uploadedFilesList=new o("Template.uploadedFilesList",function(){var e=this;return v.DIV({"class":"content"},"\n ",v.DIV({"class":"list-view uploaded-files-list"},"\n ",v.DIV({"class":"title"},"\n ",v.H2(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Room_uploaded_file_list")})),"\n "),"\n ",v.UL({"class":"list clearfix lines"},"\n ",d.Each(function(){return _.call(e.lookup("files"))},function(){return["\n ",v.LI("\n ",d.If(function(){return _.call(e.lookup("canDelete"))},function(){return["\n ",v.I({"class":"icon-trash file-delete"}),"\n "]}),"\n ",v.A({title:function(){return _.mustache(e.lookup("escapedName"))},href:function(){return _.mustache(e.lookup("url"))},target:"_blank","class":"file-download",download:""},"\n ",v.I({"class":"icon-download file-download"}),"\n "),"\n ",v.A({title:function(){return _.mustache(e.lookup("escapedName"))},href:function(){return _.mustache(e.lookup("url"))},target:"_blank","class":function(){return["room-file-item file-name ",_.mustache(e.lookup("customClassForFileType"))]}},"\n ",v.I({"class":function(){return _.mustache(e.lookup("getFileIcon"),e.lookup("type"))}}),"\n ",v.P(d.View("lookup:name",function(){return _.mustache(e.lookup("name"))})),"\n "),"\n "),"\n "]}),"\n ",d.If(function(){return _.call(e.lookup("hasMore"))},function(){return["\n ",v.LI({"class":"load-more"},"\n ",d.If(function(){return _.call(e.templateInstance().subscriptionsReady())},function(){return["\n ",v.A(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Has_more")}),"..."),"\n "]},function(){return["\n ",v.DIV({"class":"load-more-loading"},d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Loading...")})),"\n "]}),"\n "),"\n "]}),"\n "),"\n ",d.If(function(){return _.call(e.templateInstance().subscriptionsReady())},function(){return["\n ",d.Unless(function(){return _.call(e.lookup("hasFiles"))},function(){return["\n ",v.H2(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Room_uploaded_file_list_empty")})),"\n "]}),"\n "]}),"\n "),"\n ")})}.call(this),function(){o.__checkName("userEdit"),o.userEdit=new o("Template.userEdit",function(){var e=this;return d.Unless(function(){return _.call(e.lookup("canEditOrAdd"))},function(){return["\n ",v.P(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"You_are_not_authorized_to_view_this_page")})),"\n "]},function(){return["\n ",v.DIV({"class":"about clearfix"},"\n ",v.FORM({"class":"edit-form"},"\n ",d.If(function(){return _.call(e.lookup("user"))},function(){return["\n ",v.H3(d.View("lookup:user.name",function(){return _.mustache(_.dot(e.lookup("user"),"name"))})),"\n "]},function(){return["\n ",v.H3(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Add_User")})),"\n "]}),"\n ",v.DIV({"class":"input-line"},"\n ",v.LABEL({"for":"name"},d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Name")})),"\n ",v.INPUT({type:"text",id:"name",autocomplete:"off",value:function(){return _.mustache(_.dot(e.lookup("user"),"name"))}}),"\n "),"\n ",v.DIV({"class":"input-line"},"\n ",v.LABEL({"for":"username"},d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Username")})),"\n ",v.INPUT({type:"text",id:"username",autocomplete:"off",value:function(){return _.mustache(_.dot(e.lookup("user"),"username"))}}),"\n "),"\n ",v.DIV({"class":"input-line"},"\n ",v.LABEL({"for":"email"},d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"E-mail")})),"\n ",v.INPUT({type:"email",id:"email",autocomplete:"off",value:function(){return _.mustache(_.dot(e.lookup("user"),"emails","0","address"))}}),"\n "),"\n ",d.If(function(){return _.dataMustache(e.lookup("hasPermission"),"edit-other-user-password")},function(){return["\n ",v.DIV({"class":"input-line"},"\n ",v.LABEL({"for":"password"},d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Password")})),"\n ",v.INPUT({type:"password",id:"password",autocomplete:"off",value:""}),"\n "),"\n ",v.DIV({"class":"input-line"},"\n ",v.LABEL({"for":"changePassword"},"\n ",v.INPUT({type:"checkbox",id:"changePassword",value:"1",checked:function(){return _.mustache(_.dot(e.lookup("user"),"requirePasswordChange"))}}),"\n ",d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Require_password_change")}),"\n "),"\n "),"\n "]}),"\n ",v.NAV("\n ",v.BUTTON({"class":"button button-block blue save"},v.SPAN(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Save")}))),"\n ",v.BUTTON({"class":"button button-block cancel secondary",type:"button"},v.SPAN(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Cancel")}))),"\n "),"\n "),"\n "),"\n "]})})}.call(this),function(){o.__checkName("userInfo"),o.userInfo=new o("Template.userInfo",function(){var e=this;return d.If(function(){return _.call(e.lookup("isLoading"))},function(){return["\n ",_.include(e.lookupTemplate("loading")),"\n "]},function(){return["\n ",d.If(function(){return _.call(e.lookup("editingUser"))},function(){return["\n ",d._TemplateWith(function(){return _.dataMustache(e.lookup("userToEdit"))},function(){return _.include(e.lookupTemplate("userEdit"))}),"\n "]},function(){return["\n ",_.With(function(){return _.call(e.lookup("user"))},function(){return["\n ",v.DIV({"class":"about clearfix"},"\n ",v.DIV({"class":"thumb"},"\n ",d._TemplateWith(function(){return{username:_.call(e.lookup("username"))}},function(){return _.include(e.lookupTemplate("avatar"))}),"\n "),"\n ",v.DIV({"class":"info"},"\n ",v.H3({title:function(){return _.mustache(e.lookup("username"))}},v.I({"class":function(){return["status-",_.mustache(e.lookup("status"))]}})," ",d.View("lookup:username",function(){return _.mustache(e.lookup("username"))})),"\n ",v.P(d.View("lookup:name",function(){return _.mustache(e.lookup("name"))})),"\n ",d.If(function(){return _.call(e.lookup("utc"))},function(){return v.P(v.I({"class":"icon-clock"}),d.View("lookup:userTime",function(){return _.mustache(e.lookup("userTime"))})," (UTC ",d.View("lookup:utc",function(){return _.mustache(e.lookup("utc"))}),")")}),"\n ",d.If(function(){return _.dataMustache(e.lookup("hasPermission"),"view-full-other-user-info")},function(){return["\n ",d.Each(function(){return _.call(e.lookup("emails"))},function(){return[" ",v.P(v.I({"class":"icon-mail"})," ",d.View("lookup:address",function(){return _.mustache(e.lookup("address"))}),d.If(function(){return _.call(e.lookup("verified"))},function(){return[v.CharRef({html:" ",str:" "}),v.I({"class":"icon-ok"})]}))," "]}),"\n ",d.Each(function(){return _.call(e.lookup("phone"))},function(){return[" ",v.P(v.I({"class":"icon-phone"})," ",d.View("lookup:phoneNumber",function(){return _.mustache(e.lookup("phoneNumber"))}))," "]}),"\n ",d.If(function(){return _.call(e.lookup("lastLogin"))},function(){return[" ",v.P(v.I({"class":"icon-calendar"})," ",d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Created_at")}),": ",d.View("lookup:createdAt",function(){return _.mustache(e.lookup("createdAt"))}))," "]}),"\n ",d.If(function(){return _.call(e.lookup("lastLogin"))},function(){return[" ",v.P(v.I({"class":"icon-calendar"})," ",d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Last_login")}),": ",d.View("lookup:lastLogin",function(){return _.mustache(e.lookup("lastLogin"))}))," "]}),"\n ",d.If(function(){return _.call(_.dot(e.lookup("services"),"facebook","id"))},function(){return[" ",v.P(v.I({"class":"icon-facebook"}),v.A({href:function(){return _.mustache(_.dot(e.lookup("services"),"facebook","link"))},target:"_blank"},d.View("lookup:services.facebook.name",function(){return _.mustache(_.dot(e.lookup("services"),"facebook","name"))})))," "]}),"\n ",d.If(function(){return _.call(_.dot(e.lookup("services"),"github","id"))},function(){return[" ",v.P(v.I({"class":"icon-github-circled"}),v.A({href:function(){return["https://www.github.com/",_.mustache(_.dot(e.lookup("services"),"github","username"))]},target:"_blank"},d.View("lookup:services.github.username",function(){return _.mustache(_.dot(e.lookup("services"),"github","username"))})))," "]}),"\n ",d.If(function(){return _.call(_.dot(e.lookup("services"),"gitlab","id"))},function(){return[" ",v.P(v.I({"class":"icon-gitlab"}),d.View("lookup:services.gitlab.username",function(){return _.mustache(_.dot(e.lookup("services"),"gitlab","username"))}))," "]}),"\n ",d.If(function(){return _.call(_.dot(e.lookup("services"),"google","id"))},function(){return[" ",v.P(v.I({"class":"icon-gplus"}),v.A({href:function(){return["https://plus.google.com/",_.mustache(_.dot(e.lookup("services"),"google","id"))]},target:"_blank"},d.View("lookup:services.google.name",function(){return _.mustache(_.dot(e.lookup("services"),"google","name"))})))," "]}),"\n ",d.If(function(){return _.call(_.dot(e.lookup("services"),"linkedin","id"))},function(){return[" ",v.P(v.I({"class":"icon-linkedin"}),v.A({href:function(){return _.mustache(_.dot(e.lookup("services"),"linkedin","publicProfileUrl"))},target:"_blank"},d.View("lookup:linkedinUsername",function(){return _.mustache(e.lookup("linkedinUsername"))})))," "]}),"\n ",d.If(function(){return _.call(_.dot(e.lookup("servicesMeteor"),"id"))},function(){return[" ",v.P(v.I({"class":"icon-meteor"}),d.View("lookup:servicesMeteor.username",function(){return _.mustache(_.dot(e.lookup("servicesMeteor"),"username"))}))," "]}),"\n ",d.If(function(){return _.call(_.dot(e.lookup("services"),"twitter","id"))},function(){return[" ",v.P(v.I({"class":"icon-twitter"}),v.A({href:function(){return["https://twitter.com/",_.mustache(_.dot(e.lookup("services"),"twitter","screenName"))]},target:"_blank"},d.View("lookup:services.twitter.screenName",function(){return _.mustache(_.dot(e.lookup("services"),"twitter","screenName"))})))," "]}),"\n ",d.If(function(){return _.call(_.dot(e.lookup("services"),"wordpress","id"))},function(){return[" ",v.P(v.I({"class":"icon-wordpress"}),d.View("lookup:services.wordpress.user_login",function(){return _.mustache(_.dot(e.lookup("services"),"wordpress","user_login"))}))," "]}),"\n "]}),"\n "),"\n "),"\n "]}),"\n ",v.NAV("\n ",_.include(e.lookupTemplate("videoButtons")),"\n\n ",d.If(function(){return _.call(e.lookup("showAll"))},function(){return["\n ",d.If(function(){return _.dataMustache(e.lookup("canDirectMessage"),_.dot(e.lookup("user"),"username"))},function(){return["\n ",v.BUTTON({"class":"button button-block pvt-msg"},v.SPAN(v.I({"class":"icon-chat"})," ",d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Conversation")}))),"\n "]}),"\n ",d.If(function(){return _.call(e.lookup("canSetOwner"))},function(){return["\n ",d.If(function(){return _.call(e.lookup("isOwner"))},function(){return["\n ",v.BUTTON({"class":"button button-block unset-owner lightblue"},v.SPAN(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Remove_as_owner")}))),"\n "]},function(){return["\n ",v.BUTTON({"class":"button button-block set-owner lightblue"},v.SPAN(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Set_as_owner")}))),"\n "]}),"\n "]}),"\n ",d.If(function(){return _.call(e.lookup("canSetModerator"))},function(){return["\n ",d.If(function(){return _.call(e.lookup("isModerator"))},function(){return["\n ",v.BUTTON({"class":"button button-block unset-moderator lightblue"},v.SPAN(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Remove_as_moderator")}))),"\n "]},function(){return["\n ",v.BUTTON({"class":"button button-block set-moderator lightblue"},v.SPAN(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Set_as_moderator")}))),"\n "]}),"\n "]}),"\n ",d.If(function(){return _.call(e.lookup("canRemoveUser"))},function(){return["\n ",v.BUTTON({"class":"button button-block remove-user red"},v.SPAN(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Remove_from_room")}))),"\n "]}),"\n ",d.If(function(){return _.call(e.lookup("canMuteUser"))},function(){return["\n ",d.If(function(){return _.call(e.lookup("userMuted"))},function(){return["\n ",v.BUTTON({"class":"button button-block unmute-user primary"},v.SPAN(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Unmute_user")}))),"\n "]},function(){return["\n ",v.BUTTON({"class":"button button-block mute-user red"},v.SPAN(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Mute_user")}))),"\n "]}),"\n "]}),"\n "]}),"\n\n ",d.If(function(){return _.dataMustache(e.lookup("hasPermission"),"edit-other-user-info")},function(){return["\n ",v.BUTTON({"class":"button lightblue edit-user button-block"},v.SPAN(v.I({"class":"icon-edit"})," ",d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Edit")}))),"\n "]}),"\n ",d.If(function(){return _.dataMustache(e.lookup("hasPermission"),"assign-admin-role")},function(){return["\n ",d.If(function(){return _.call(e.lookup("hasAdminRole"))},function(){return["\n ",v.BUTTON({"class":"button lightblue remove-admin button-block"},v.SPAN(v.I({"class":"icon-shield"})," ",d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Remove_Admin")}))),"\n "]},function(){return["\n ",v.BUTTON({"class":"button lightblue make-admin button-block"},v.SPAN(v.I({"class":"icon-shield"})," ",d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Make_Admin")}))),"\n "]}),"\n "]}),"\n ",d.If(function(){return _.dataMustache(e.lookup("hasPermission"),"edit-other-user-active-status")},function(){return["\n ",d.If(function(){return _.call(e.lookup("active"))},function(){return["\n ",v.BUTTON({"class":"button deactivate button-block"},v.SPAN(v.I({"class":"icon-block"})," ",d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Deactivate")}))),"\n "]},function(){return["\n ",v.BUTTON({"class":"button activate button-block"},v.SPAN(v.I({"class":"icon-ok-circled"})," ",d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Activate")}))),"\n "]}),"\n "]}),"\n ",d.If(function(){return _.dataMustache(e.lookup("hasPermission"),"delete-user")},function(){return["\n ",v.BUTTON({"class":"button delete red button-block"},v.SPAN(v.I({"class":"icon-trash"})," ",d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"Delete")}))),"\n "]}),"\n\n ",d.If(function(){return _.call(e.lookup("showAll"))},function(){return["\n ",v.BUTTON({"class":"button secondary back"},v.SPAN(d.View("lookup:_",function(){return _.mustache(e.lookup("_"),"View_All")})," ",v.I({"class":"icon-angle-right"}))),"\n "]}),"\n "),"\n "]}),"\n "]})})}.call(this),function(){w="object"==typeof w?w:{};var e=w;o.flexTabBar.helpers({active:function(){return this.template===i.TabBar.getTemplate()&&i.TabBar.isFlexOpen()?"active":void 0},buttons:function(){return i.TabBar.getButtons()},title:function(){return t(this.i18nTitle)||this.title},visible:function(){return-1===this.groups.indexOf(i.TabBar.getVisibleGroup())?"hidden":void 0}}),o.flexTabBar.events({"click .tab-button":function(e,n){return e.preventDefault(),i.TabBar.isFlexOpen()&&i.TabBar.getTemplate()===this.template?(i.TabBar.closeFlex(),$(".flex-tab").css("max-width","")):null==this.openClick||this.openClick(e,n)?(null!=this.width?$(".flex-tab").css("max-width",this.width+"px"):$(".flex-tab").css("max-width",""),i.TabBar.setTemplate(this.template,function(){var e,n,t;return null!=(e=$(".flex-tab"))&&null!=(n=e.find("input[type='text']:first"))&&n.focus(),null!=(t=$(".flex-tab .content"))?t.scrollTop(0):void 0})):void 0}}),o.flexTabBar.onCreated(function(){return this.autorun(function(e){return function(){var e;return e=i.TabBar.getVisibleGroup(),Tracker.nonreactive(function(){var n,t;return t=i.TabBar.getTemplate(),n=!1,i.TabBar.getButtons().forEach(function(r){return-1!==r.groups.indexOf(e)&&t===r.template?n=!0:void 0}),n?void 0:i.TabBar.closeFlex()})}}(this))})}.call(this),function(){w="object"==typeof w?w:{};var n=w;o.membersList.helpers({tAddUsers:function(){return t("Add_users")},isGroupChat:function(){var e,n;return"c"===(e=null!=(n=ChatRoom.findOne(this.rid,{reactive:!1}))?n.t:void 0)||"p"===e},isDirectChat:function(){var e;return"d"===(null!=(e=ChatRoom.findOne(this.rid,{reactive:!1}))?e.t:void 0)},seeAll:function(){return t(o.instance().showAllUsers.get()?"Show_only_online":"Show_all")},roomUsers:function(){var e,n,t,r,s,i,a,l,c,f,m,d,h,p;for(h=[],r=RoomManager.onlineUsers.get(),c=(null!=(s=ChatRoom.findOne(this.rid))?s.usernames:void 0)||[],n=0,t=c.length;t>n;n++)d=c[n],(o.instance().showAllUsers.get()||null!=r[d])&&(p=null!=(i=r[d])?i.utcOffset:void 0,null!=p&&(p>0&&(p="+"+p),p="(UTC "+p+")"),h.push({username:d,status:null!=(a=r[d])?a.status:void 0,utcOffset:p}));return h=u.sortBy(h,"username"),h=u.sortBy(h,function(e){return null==e.status}),e=h.length>o.instance().usersLimit.get(),h=u.first(h,o.instance().usersLimit.get()),m=c.length,f=h.length,l={_id:this.rid,total:m,totalShowing:f,users:h,hasMore:e}},canAddUser:function(){var e,n;return n=Session.get("roomData"+this._id),n?("p"===(e=n.t)||"c"===e)&&i.authz.hasAllPermission("add-user-to-room",this._id):""},autocompleteSettingsAddUser:function(){return{limit:10,rules:[{collection:"UserAndRoom",subscription:"userAutocomplete",field:"username",template:o.userSearch,noMatchTemplate:o.userSearchEmpty,matchAll:!0,filter:{exceptions:[e.user().username]},selector:function(e){return{username:e}},sort:"username"}]}},showUserInfo:function(){var e,n,t,r,u;return u=WebRTC.getInstanceByRoomId(this.rid),r=null!=(null!=u&&null!=(e=u.localUrl)?e.get():void 0)||(null!=u&&null!=(n=u.remoteItems)&&null!=(t=n.get())?t.length:void 0)>0,o.instance().showDetail.get()&&!r},userInfoDetail:function(){var e,n,t;return t=ChatRoom.findOne(this.rid,{fields:{t:1}}),{username:o.instance().userDetail.get(),clear:o.instance().clearUserDetail,showAll:"c"===(e=null!=t?t.t:void 0)||"p"===e,video:"d"===(n=null!=t?t.t:void 0)}}}),o.membersList.events({"click .see-all":function(e,n){var t;return t=n.showAllUsers.get(),n.showAllUsers.set(!t),t?void 0:n.usersLimit.set(100)},"autocompleteselect #user-add-search":function(n,t,r){var o,u;return u=Session.get("roomData"+t.data.rid),"d"===u.t?e.call("createGroupRoom",u.usernames,r.username,function(e,n){return e?toastr.error(e.reason):null!=(null!=n?n.rid:void 0)?$("#user-add-search").val(""):void 0}):"c"===(o=u.t)||"p"===o?e.call("addUserToRoom",{rid:u._id,username:r.username},function(e,n){return e?toastr.error(e.reason):$("#user-add-search").val("")}):void 0},"click .show-more-users":function(e,n){return n.usersLimit.set(n.usersLimit.get()+100)}}),o.membersList.onCreated(function(){return this.showAllUsers=new ReactiveVar(!1),this.usersLimit=new ReactiveVar(100),this.userDetail=new ReactiveVar,this.showDetail=new ReactiveVar(!1),this.clearUserDetail=function(e){return function(){return e.showDetail.set(!1),setTimeout(function(){return e.clearRoomUserDetail()},500)}}(this),this.showUserDetail=function(e){return function(n){return e.showDetail.set(null!=n),e.userDetail.set(n)}}(this),this.clearRoomUserDetail=this.data.clearUserDetail,this.autorun(function(e){return function(){var n;return n=o.currentData(),e.showUserDetail(n.userDetail)}}(this))})}.call(this),function(){w="object"==typeof w?w:{};var n=w;e.startup(function(){return i.MessageAction.addButton({id:"jump-to-search-message",icon:"icon-right-hand",i18nLabel:"Jump_to_message",context:["search"],action:function(e,n){var t;return t=this._arguments[1],$(".message-dropdown:visible").hide(),RoomHistoryManager.getSurroundingMessages(t,50)},order:100})}),o.messageSearch.helpers({tSearchMessages:function(){return t("Search_Messages")},searchResultMessages:function(){var e;return null!=(e=o.instance().searchResult.get())?e.messages:void 0},hasMore:function(){return o.instance().hasMore.get()},currentSearchTerm:function(){return o.instance().currentSearchTerm.get()},ready:function(){return o.instance().ready.get()}}),o.messageSearch.events({"keydown #message-search":function(e){return 13===e.keyCode?e.preventDefault():void 0},"keyup #message-search":u.debounce(function(e,n){var t;return t=e.target.value.trim(),""===t&&n.currentSearchTerm.get()?(n.currentSearchTerm.set(""),n.searchResult.set(void 0),void n.hasMore.set(!1)):t!==n.currentSearchTerm.get()?(n.hasMore.set(!0),n.limit.set(20),n.search()):void 0},500),"click .message-cog":function(e,n){var t,r,s,a,l,c;return e.stopPropagation(),e.preventDefault(),l=$(e.currentTarget).closest(".message").attr("id"),$(".message-dropdown:visible").hide(),$(".search-messages-list #"+l+" .message-dropdown").remove(),a=u.findWhere(null!=(c=n.searchResult.get())?c.messages:void 0,function(e){return e._id===l}),t=i.MessageAction.getButtons(a,"search"),s=d.toHTMLWithData(o.messageDropdown,{actions:t}),$(".search-messages-list #"+l+" .message-cog-container").append(s),r=$(".search-messages-list #"+l+" .message-dropdown"),r.show()},"click .load-more a":function(e,n){return n.limit.set(n.limit.get()+20),n.search()},"scroll .content":u.throttle(function(e,n){return e.target.scrollTop>=e.target.scrollHeight-e.target.clientHeight?(n.limit.set(n.limit.get()+20),n.search()):void 0},200)}),o.messageSearch.onCreated(function(){return this.currentSearchTerm=new ReactiveVar(""),this.searchResult=new ReactiveVar,this.hasMore=new ReactiveVar(!0),this.limit=new ReactiveVar(20),this.ready=new ReactiveVar(!0),this.search=function(n){return function(){var t;return n.ready.set(!1),t=n.$("#message-search").val(),Tracker.nonreactive(function(){return e.call("messageSearch",t,Session.get("openedRoom"),n.limit.get(),function(e,r){var o,u,s,i,a,l;return n.currentSearchTerm.set(t),n.ready.set(!0),null!=r&&((null!=(o=r.messages)?o.length:void 0)>0||(null!=(u=r.users)?u.length:void 0)>0||(null!=(s=r.channels)?s.length:void 0)>0)?(n.searchResult.set(r),(null!=(i=r.messages)?i.length:void 0)+(null!=(a=r.users)?a.length:void 0)+(null!=(l=r.channels)?l.length:void 0)<n.limit.get()?n.hasMore.set(!1):void 0):n.searchResult.set()})})}}(this)})}.call(this),function(){w="object"==typeof w?w:{};var t=w,r;r=new n.Collection("room_files"),o.uploadedFilesList.helpers({files:function(){return r.find({rid:this.rid},{sort:{uploadedAt:-1}})},hasFiles:function(){return r.find({rid:this.rid}).count()>0},hasMore:function(){return o.instance().hasMore.get()},getFileIcon:function(e){return e.match(/^image\/.+$/)?"icon-picture":"icon-docs"},customClassForFileType:function(){return this.type.match(/^image\/.+$/)?"room-files-swipebox":void 0},escapedName:function(){return s.escapeHTML(this.name)},canDelete:function(){return i.authz.hasAtLeastOnePermission("delete-message",this.rid)||i.settings.get("Message_AllowDeleting")&&this.userId===e.userId()},url:function(){return"/file-upload/"+this._id+"/"+this.name}}),o.uploadedFilesList.events({"click .room-file-item":function(e,n){return $(e.currentTarget).siblings(".icon-picture").length?e.preventDefault():void 0},"click .icon-trash":function(n,t){var r;return r=this,swal({title:k.__("Are_you_sure"),text:k.__("You_will_not_be_able_to_recover_file"),type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:k.__("Yes_delete_it"),cancelButtonText:k.__("Cancel"),closeOnConfirm:!1,html:!1},function(){var n;return swal({title:k.__("Deleted"),text:k.__("Your_file_has_been_deleted"),type:"success",timer:1e3,showConfirmButton:!1}),n=ChatMessage.findOne({file:{_id:r._id}}),i.models.Uploads.remove(r._id,function(){return n?chatMessages[Session.get("openedRoom")].deleteMsg(n):e.call("deleteFileMessage",r._id,function(e,n){return e?toastr.error(e.reason):void 0})})})},"scroll .content":u.throttle(function(e,n){return e.target.scrollTop>=e.target.scrollHeight-e.target.clientHeight?n.limit.set(n.limit.get()+50):void 0},200)}),o.uploadedFilesList.onCreated(function(){var e;return e=o.currentData().rid,this.hasMore=new ReactiveVar(!0),this.limit=new ReactiveVar(50),this.autorun(function(n){return function(){return n.subscribe("roomFiles",e,n.limit.get(),function(){return r.find({rid:e}).fetch().length<n.limit.get()?n.hasMore.set(!1):void 0})}}(this))}),o.uploadedFilesList.onRendered(function(){return $(".room-files-swipebox").swipebox({hideBarsDelay:0})})}.call(this),function(){w="object"==typeof w?w:{};var n=w;o.userEdit.helpers({canEditOrAdd:function(){return o.instance().user&&i.authz.hasAtLeastOnePermission("edit-other-user-info")||!o.instance().user&&i.authz.hasAtLeastOnePermission("create-user")},user:function(){return o.instance().user}}),o.userEdit.events({"click .cancel":function(e,n){return e.stopPropagation(),e.preventDefault(),n.cancel(n.find("form"))},"submit form":function(e,n){return e.stopPropagation(),e.preventDefault(),n.save(e.currentTarget)}}),o.userEdit.onCreated(function(){var n;return this.user=null!=(n=this.data)?n.user:void 0,this.cancel=function(e){return function(n,t){return n.reset(),e.user?e.data.back(t):i.TabBar.closeFlex()}}(this),this.getUserData=function(e){return function(){var n,t;return t={_id:null!=(n=e.user)?n._id:void 0},t.name=s.trim(e.$("#name").val()),t.username=s.trim(e.$("#username").val()),t.email=s.trim(e.$("#email").val()),t.password=s.trim(e.$("#password").val()),t.requirePasswordChange=e.$("#changePassword:checked").length>0,t}}(this),this.validate=function(e){return function(){var n,t,r,o,u;for(u=e.getUserData(),t=[],u.name||t.push("Name"),u.username||t.push("Username"),u.email||t.push("E-mail"),r=0,o=t.length;o>r;r++)n=t[r],toastr.error(k.__("The_field_is_required",k.__(n)));return 0===t.length}}(this),this.save=function(n){return function(r){
|
||
var o;return n.validate()?(o=n.getUserData(),e.call("insertOrUpdateUser",o,function(e,u){return u&&(toastr.success(o._id?t("User_updated_successfully"):t("User_added_successfully")),n.cancel(r,o.username)),e?toastr.error(e.reason):void 0})):void 0}}(this)})}.call(this),function(){w="object"==typeof w?w:{};var n=w;o.userInfo.helpers({name:function(){var e;return e=o.instance().user.get(),e.name?e.name:k.__("Unnamed")},username:function(){var e;return e=o.instance().user.get(),e.username},email:function(){var e,n,t;return t=o.instance().user.get(),null!=(e=t.emails)&&null!=(n=e[0])?n.address:void 0},phoneNumber:function(){var e;return e=o.instance().user.get(),e.phoneNumber?e.phoneNumber.length>10?"("+e.phoneNumber.substr(0,2)+") "+e.phoneNumber.substr(2,5)+"-"+e.phoneNumber.substr(7):"("+e.phoneNumber.substr(0,2)+") "+e.phoneNumber.substr(2,4)+"-"+e.phoneNumber.substr(6):""},utc:function(){var e;return e=o.instance().user.get(),null!=e.utcOffset?e.utcOffset>0?"+"+e.utcOffset:e.utcOffset:void 0},lastLogin:function(){var e;return e=o.instance().user.get(),e.lastLogin?moment(e.lastLogin).format("LLL"):void 0},createdAt:function(){var e;return e=o.instance().user.get(),e.createdAt?moment(e.createdAt).format("LLL"):void 0},canDirectMessage:function(n){var t;return(null!=(t=e.user())?t.username:void 0)!==n},linkedinUsername:function(){var e,n,t;return t=o.instance().user.get(),s.strRight(null!=t&&null!=(e=t.services)&&null!=(n=e.linkedin)?n.publicProfileUrl:void 0,"/in/")},servicesMeteor:function(){var e,n;return n=o.instance().user.get(),null!=(e=n.services)?e["meteor-developer"]:void 0},userTime:function(){var e;return e=o.instance().user.get(),null!=e.utcOffset?o.instance().now.get().utcOffset(e.utcOffset).format("LT"):void 0},canRemoveUser:function(){return i.authz.hasAllPermission("remove-user",Session.get("openedRoom"))},canMuteUser:function(){return i.authz.hasAllPermission("mute-user",Session.get("openedRoom"))},userMuted:function(){var e,n;return e=ChatRoom.findOne(Session.get("openedRoom")),n=o.instance().user.get(),u.isArray(null!=e?e.muted:void 0)&&-1!==e.muted.indexOf(null!=n?n.username:void 0)},canSetModerator:function(){return i.authz.hasAllPermission("set-moderator",Session.get("openedRoom"))},isModerator:function(){var e;return!!RoomRoles.findOne({rid:Session.get("openedRoom"),"u._id":null!=(e=o.instance().user.get())?e._id:void 0,roles:"moderator"})},canSetOwner:function(){return i.authz.hasAllPermission("set-owner",Session.get("openedRoom"))},isOwner:function(){var e;return!!RoomRoles.findOne({rid:Session.get("openedRoom"),"u._id":null!=(e=o.instance().user.get())?e._id:void 0,roles:"owner"})},user:function(){return o.instance().user.get()},isLoading:function(){return o.instance().loadingUserInfo.get()},hasAdminRole:function(){var e;return i.authz.hasRole(null!=(e=o.instance().user.get())?e._id:void 0,"admin")},active:function(){var e;return e=o.instance().user.get(),null!=e?e.active:void 0},editingUser:function(){return o.instance().editingUser.get()},userToEdit:function(){var e;return e=o.instance(),{user:e.user.get(),back:function(n){var t;return e.editingUser.set(),null!=n&&(t=e.user.get(),(null!=t?t.username:void 0)!==n)?e.loadedUsername.set(n):void 0}}}}),o.userInfo.events({"click .thumb":function(e){return $(e.currentTarget).toggleClass("bigger")},"click .pvt-msg":function(n){return e.call("createDirectMessage",this.username,function(e){return function(n,t){return n?toastr.error(n.reason):null!=(null!=t?t.rid:void 0)?FlowRouter.go("direct",{username:e.username}):void 0}}(this))},"click .flex-tab .video-remote":function(e){var n;return i.TabBar.isFlexOpen()?Session.get("rtcLayoutmode")?(n=Session.get("rtcLayoutmode"),n=(n+1)%4,window.rocketDebug&&console.log("setting rtcLayoutmode to "+n),Session.set("rtcLayoutmode",n)):Session.set("rtcLayoutmode",1):void 0},"click .flex-tab .video-self":function(e){var n;if(3===Session.get("rtcLayoutmode")){if(window.rocketDebug&&console.log("video-self clicked in layout3"),n=document.getElementById("fullscreendiv"),n.requestFullscreen)return n.requestFullscreen();if(n.webkitRequestFullscreen)return n.webkitRequestFullscreen();if(n.mozRequestFullScreen)return n.mozRequestFullScreen();if(n.msRequestFullscreen)return n.msRequestFullscreen()}},"click .back":function(e,n){return n.clear()},"click .remove-user":function(n,r){var o,u;return n.preventDefault(),o=Session.get("openedRoom"),u=ChatRoom.findOne(o),i.authz.hasAllPermission("remove-user",o)?swal({title:t("Are_you_sure"),text:t("The_user_will_be_removed_from_s",u.name),type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:t("Yes_remove_user"),cancelButtonText:t("Cancel"),closeOnConfirm:!1,html:!1},function(n){return function(){var n;return e.call("removeUserFromRoom",{rid:o,username:null!=(n=r.user.get())?n.username:void 0},function(e,n){return e?toastr.error(e.reason||e.message):(swal({title:t("Removed"),text:t("User_has_been_removed_from_s",u.name),type:"success",timer:2e3,showConfirmButton:!1}),r.clear())})}}(this)):toastr.error(k.__("Not_allowed"))},"click .mute-user":function(n,r){var o,u;return n.preventDefault(),o=Session.get("openedRoom"),u=ChatRoom.findOne(o),i.authz.hasAllPermission("mute-user",o)?swal({title:t("Are_you_sure"),text:t("The_user_wont_be_able_to_type_in_s",u.name),type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:t("Yes_mute_user"),cancelButtonText:t("Cancel"),closeOnConfirm:!1,html:!1},function(n){return function(){var n;return e.call("muteUserInRoom",{rid:o,username:null!=(n=r.user.get())?n.username:void 0},function(e,n){return e?toastr.error(e.reason||e.message):swal({title:t("Muted"),text:t("User_has_been_muted_in_s",u.name),type:"success",timer:2e3,showConfirmButton:!1})})}}(this)):void 0},"click .unmute-user":function(n,t){var r,o,u;return n.preventDefault(),o=Session.get("openedRoom"),u=ChatRoom.findOne(o),i.authz.hasAllPermission("mute-user",o)?e.call("unmuteUserInRoom",{rid:o,username:null!=(r=t.user.get())?r.username:void 0},function(e,n){return e?toastr.error(e.reason||e.message):toastr.success(k.__("User_unmuted_in_room"))}):toastr.error(k.__("Not_allowed"))},"click .set-moderator":function(n,t){var r,o,u;return n.preventDefault(),u=RoomRoles.findOne({rid:Session.get("openedRoom"),"u._id":null!=(r=t.user.get())?r._id:void 0,roles:"moderator"},{fields:{_id:1}}),null==u?e.call("addRoomModerator",Session.get("openedRoom"),null!=(o=t.user.get())?o._id:void 0,function(e){return function(n,t){var r;return n?toastr.error(n.reason||n.message):(r=ChatRoom.findOne(Session.get("openedRoom")),toastr.success(k.__("User__username__is_now_a_moderator_of__room_name_",{username:e.username,room_name:r.name})))}}(this)):void 0},"click .unset-moderator":function(n,t){var r,o,u;return n.preventDefault(),u=RoomRoles.findOne({rid:Session.get("openedRoom"),"u._id":null!=(r=t.user.get())?r._id:void 0,roles:"moderator"},{fields:{_id:1}}),null!=u?e.call("removeRoomModerator",Session.get("openedRoom"),null!=(o=t.user.get())?o._id:void 0,function(e){return function(n,t){var r;return n?toastr.error(n.reason||n.message):(r=ChatRoom.findOne(Session.get("openedRoom")),toastr.success(k.__("User__username__removed_from__room_name__moderators",{username:e.username,room_name:r.name})))}}(this)):void 0},"click .set-owner":function(n,t){var r,o,u;return n.preventDefault(),u=RoomRoles.findOne({rid:Session.get("openedRoom"),"u._id":null!=(r=t.user.get())?r._id:void 0,roles:"owner"},{fields:{_id:1}}),null==u?e.call("addRoomOwner",Session.get("openedRoom"),null!=(o=t.user.get())?o._id:void 0,function(e){return function(n,t){var r;return n?toastr.error(n.reason||n.message):(r=ChatRoom.findOne(Session.get("openedRoom")),toastr.success(k.__("User__username__is_now_a_owner_of__room_name_",{username:e.username,room_name:r.name})))}}(this)):void 0},"click .unset-owner":function(n,t){var r,o,u;return n.preventDefault(),u=RoomRoles.findOne({rid:Session.get("openedRoom"),"u._id":null!=(r=t.user.get())?r._id:void 0,roles:"owner"},{fields:{_id:1}}),null!=u?e.call("removeRoomOwner",Session.get("openedRoom"),null!=(o=t.user.get())?o._id:void 0,function(e){return function(n,t){var r;return n?toastr.error(k.__(n.error)):(r=ChatRoom.findOne(Session.get("openedRoom")),toastr.success(k.__("User__username__removed_from__room_name__owners",{username:e.username,room_name:r.name})))}}(this)):void 0},"click .deactivate":function(n,r){var o;return n.stopPropagation(),n.preventDefault(),e.call("setUserActiveStatus",null!=(o=r.user.get())?o._id:void 0,!1,function(e,n){return n&&toastr.success(t("User_has_been_deactivated")),e?toastr.error(e.reason):void 0})},"click .activate":function(n,r){var o;return n.stopPropagation(),n.preventDefault(),e.call("setUserActiveStatus",null!=(o=r.user.get())?o._id:void 0,!0,function(e,n){return n&&toastr.success(t("User_has_been_activated")),e?toastr.error(e.reason):void 0})},"click .make-admin":function(n,r){var o;return n.stopPropagation(),n.preventDefault(),e.call("setAdminStatus",null!=(o=r.user.get())?o._id:void 0,!0,function(e,n){return n&&toastr.success(t("User_is_now_an_admin")),e?toastr.error(e.reason):void 0})},"click .remove-admin":function(n,r){var o;return n.stopPropagation(),n.preventDefault(),e.call("setAdminStatus",null!=(o=r.user.get())?o._id:void 0,!1,function(e,n){return n&&toastr.success(t("User_is_no_longer_an_admin")),e?toastr.error(e.reason):void 0})},"click .delete":function(n,r){var o,u;return n.stopPropagation(),n.preventDefault(),o=null!=(u=r.user.get())?u._id:void 0,swal({title:t("Are_you_sure"),text:t("Delete_User_Warning"),type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:t("Yes_delete_it"),cancelButtonText:t("Cancel"),closeOnConfirm:!1,html:!1},function(){return swal.disableButtons(),e.call("deleteUser",o,function(e,n){return e?(toastr.error(e.reason),swal.enableButtons()):(swal({title:t("Deleted"),text:t("User_has_been_deleted"),type:"success",timer:2e3,showConfirmButton:!1}),i.TabBar.closeFlex())})})},"click .edit-user":function(e,n){return e.stopPropagation(),e.preventDefault(),n.editingUser.set(n.user.get()._id)}}),o.userInfo.onCreated(function(){return this.now=new ReactiveVar(moment()),this.user=new ReactiveVar,this.editingUser=new ReactiveVar,this.loadingUserInfo=new ReactiveVar(!0),this.loadedUsername=new ReactiveVar,e.setInterval(function(e){return function(){return e.now.set(moment())}}(this),3e4),this.autorun(function(e){return function(){var n;return n=e.loadedUsername.get(),null==n?void e.loadingUserInfo.set(!1):(e.loadingUserInfo.set(!0),e.subscribe("fullUserData",n,1,function(){return e.loadingUserInfo.set(!1)}))}}(this)),this.autorun(function(e){return function(){var n;return n=o.currentData(),null!=n.clear?e.clear=n.clear:void 0}}(this)),this.autorun(function(e){return function(){var n,t;return n=o.currentData(),t=e.user.get(),e.loadedUsername.set((null!=t?t.username:void 0)||(null!=n?n.username:void 0))}}(this)),this.autorun(function(n){return function(){var t,r,u;return t=o.currentData(),null!=t.username?r={username:t.username}:null!=t._id&&(r={_id:t._id}),u=e.users.findOne(r),n.user.set(u)}}(this))})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:ui-flextab"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.ecmascript.ECMAScript,o=Package.templating.Template,r=Package.underscore._,a=Package["rocketchat:lib"].RocketChat,i=Package["kadira:flow-router"].FlowRouter,u=Package["babel-runtime"].babelHelpers,l=Package["ecmascript-runtime"].Symbol,c=Package["ecmascript-runtime"].Map,g=Package["ecmascript-runtime"].Set,d=Package.promise.Promise,f=Package.blaze.Blaze,m=Package.blaze.UI,p=Package.blaze.Handlebars,h=Package.spacebars.Spacebars,k=Package["tap:i18n"].TAPi18next,w=Package["tap:i18n"].TAPi18n,v=Package.htmljs.HTML,_;(function(){i.route("/reset-password/:token",{name:"resetPassword",action:function(){BlazeLayout.render("loginLayout",{center:"resetPassword"})}})}).call(this),function(){o.__checkName("resetPassword"),o.resetPassword=new o("Template.resetPassword",function(){var e=this;return v.FORM({id:"login-card",action:"/"},"\n ",v.DIV({"class":"fields"},"\n ",v.HEADER("\n ",f.If(function(){return h.call(e.lookup("requirePasswordChange"))},function(){return["\n ",f.If(function(){return h.call(e.lookup("requirePasswordChangeReason"))},function(){return["\n ",v.P(f.View("lookup:_",function(){return h.mustache(e.lookup("_"),e.lookup("requirePasswordChangeReason"))})),"\n "]},function(){return["\n ",v.P(f.View("lookup:_",function(){return h.mustache(e.lookup("_"),"You_need_to_change_your_password")})),"\n "]}),"\n "]},function(){return["\n ",v.P(f.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Please_enter_your_new_password_below")})),"\n "]}),"\n "),"\n ",v.DIV({"class":"input-text active"},"\n ",v.INPUT({type:"password",name:"newPassword",placeholder:function(){return h.mustache(e.lookup("_"),"Type_your_new_password")},dir:"auto"}),"\n "),"\n ",v.DIV({"class":"submit"},"\n ",v.BUTTON({"data-loading-text":function(){return[h.mustache(e.lookup("_"),"Please_wait"),"..."]},"class":"button primary resetpass"},v.SPAN(f.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Reset")}))),"\n "),"\n "),"\n ")})}.call(this),function(){o.resetPassword.helpers({requirePasswordChange:function(){var n=e.user();return n?n.requirePasswordChange:void 0},requirePasswordChangeReason:function(){var n=e.user();return n?n.requirePasswordChangeReason:void 0}}),o.resetPassword.events({"submit #login-card":function(n,o){n.preventDefault();var r=o.$("button.resetpass");a.Button.loading(r),e.userId()?e.call("setUserPassword",o.find("[name=newPassword]").value,function(e){e&&(console.log(e),swal({title:t("Error_changing_password"),type:"error"}))}):Accounts.resetPassword(i.getParam("token"),o.find("[name=newPassword]").value,function(e){a.Button.reset(r),e?(console.log(e),swal({title:t("Error_changing_password"),type:"error"})):(i.go("home"),toastr.success(t("Password_changed_successfully")))})}}),o.resetPassword.onRendered(function(){this.find("[name=newPassword]").focus()})}.call(this),function(){o.__checkName("loginFooter"),o.loginFooter=new o("Template.loginFooter",function(){var e=this;return v.FOOTER("\n ",f.If(function(){return h.call(e.lookup("LanguageVersion"))},function(){return v.DIV({"class":"switch-language"},v.A({"class":"switch-language"},f.View("lookup:LanguageVersion",function(){return h.mustache(e.lookup("LanguageVersion"))})))}),"\n ")})}.call(this),function(){o.__checkName("loginForm"),o.loginForm=new o("Template.loginForm",function(){var e=this;return f.If(function(){return h.call(e.lookup("showSandstorm"))},function(){return["\n ",v.DIV({"class":"alert alert-danger"},"\n You must login to Sandstorm (on the top right) in order to access this chat.\n "),"\n "]},function(){return["\n ",v.FORM({id:"login-card",method:"/",novalidate:""},"\n ",f.If(function(){return h.call(e.lookup("waitActivation"))},function(){return["\n ",v.HEADER("\n ",v.H2(f.View("lookup:_",function(){return h.makeRaw(h.mustache(e.lookup("_"),"Registration_Succeeded"))})),"\n ",v.P(f.View("lookup:_",function(){return h.makeRaw(h.mustache(e.lookup("_"),"Wait_activation_warning"))})),"\n ",v.P(f.View("lookup:_",function(){return h.makeRaw(h.mustache(e.lookup("_"),"Please_wait_activation"))})),"\n "),"\n "]},function(){return["\n ",h.include(e.lookupTemplate("loginServices")),"\n ",f.If(function(){return h.call(e.lookup("needsValidateEmail"))},function(){return["\n ",v.DIV({"class":"alert alert-danger"},"\n ",f.View("lookup:_",function(){return h.mustache(e.lookup("_"),"You_need_confirm_email")}),"\n "),"\n "]}),"\n ",f.If(function(){return h.call(e.lookup("showFormLogin"))},function(){return["\n ",v.DIV({"class":"fields"},"\n ",v.DIV({"class":function(){return["input-text active ",h.mustache(e.lookup("showName"))]}},"\n ",v.INPUT({type:"text",name:"name",placeholder:function(){return h.mustache(e.lookup("namePlaceholder"))},dir:"auto"}),"\n "),"\n ",v.DIV({"class":function(){return["input-text active ",h.mustache(e.lookup("showEmailOrUsername"))]}},"\n ",v.INPUT({type:"text",name:"emailOrUsername",placeholder:function(){return h.mustache(e.lookup("emailOrUsernamePlaceholder"))},autocapitalize:"off",autocorrect:"off"}),"\n ",f.If(function(){return h.call(e.lookup("hasOnePassword"))},function(){return["\n ",v.DIV({"class":"one-passsword"}),"\n "]}),"\n "),"\n ",v.DIV({"class":function(){return["input-text active ",h.mustache(e.lookup("showEmail"))]}},"\n ",v.INPUT({type:"email",name:"email",placeholder:function(){return h.mustache(e.lookup("_"),"Email")}}),"\n "),"\n ",v.DIV({"class":function(){return["input-text active ",h.mustache(e.lookup("showPassword"))]}},"\n ",v.INPUT({type:"password",name:"pass",placeholder:function(){return h.mustache(e.lookup("passwordPlaceholder"))}}),"\n "),"\n ",v.DIV({"class":function(){return["input-text active ",h.mustache(e.lookup("showConfirmPassword"))]}},"\n ",v.INPUT({type:"password",name:"confirm-pass",placeholder:function(){return h.mustache(e.lookup("_"),"Confirm_password")}}),"\n "),"\n "),"\n ",v.DIV({"class":"submit"},"\n ",v.BUTTON({"data-loading-text":function(){return[h.mustache(e.lookup("_"),"Please_wait"),"..."]},"class":"button primary login"},v.SPAN(f.View("lookup:btnLoginSave",function(){return h.mustache(e.lookup("btnLoginSave"))}))),"\n "),"\n ",f.If(function(){return h.call(e.lookup("registrationAllowed"))},function(){return["\n ",v.DIV({"class":function(){return["register ",h.mustache(e.lookup("showRegisterLink"))]}},"\n ",v.A(f.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Register")})),"\n "),"\n "]},function(){return["\n ",f.If(function(){return h.call(e.lookup("linkReplacementText"))},function(){return["\n ",f.View("lookup:linkReplacementText",function(){return h.makeRaw(h.mustache(e.lookup("linkReplacementText")))}),"\n "]}),"\n "]}),"\n ",f.If(function(){return h.call(e.lookup("passwordresetAllowed"))},function(){return["\n ",v.DIV({"class":function(){return["forgot-password ",h.mustache(e.lookup("showForgotPasswordLink"))]}},"\n ",v.A(f.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Forgot_password")})),"\n "),"\n "]}),"\n "]}),"\n "]}),"\n ",v.DIV({"class":function(){return["back-to-login ",h.mustache(e.lookup("showBackToLoginLink"))]}},"\n ",v.A(f.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Back_to_login")})),"\n "),"\n "),"\n ",v.DIV({"class":"login-terms"},"\n ",f.View("lookup:loginTerms",function(){return h.makeRaw(h.mustache(e.lookup("loginTerms")))}),"\n\n ",v.DIV({"class":"powered-by"},"\n Powered by ",v.A({href:"https://rocket.chat"},"Open Source Chat Platform Rocket.Chat"),".\n "),"\n "),"\n "]})})}.call(this),function(){o.__checkName("loginHeader"),o.loginHeader=new o("Template.loginHeader",function(){var e=this;return v.HEADER("\n ",v.A({"class":"logo",href:"/"},v.IMG({src:function(){return h.mustache(e.lookup("logoUrl"))}})),"\n ")})}.call(this),function(){o.__checkName("loginIntro"),o.loginIntro=new o("Template.loginIntro",function(){var e=this;return[v.A({href:"/login","class":"screen"},"\n ",v.Raw("<span>\n <i></i>\n <i></i>\n <i></i>\n </span>"),"\n ",v.Raw("<figure></figure>"),"\n ",v.BUTTON({"class":"button red"},v.SPAN(f.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Access_online_demo")}))),"\n "),"\n ",v.DIV({"class":"text"},"\n ",v.Raw("<h1>RocketChat</h1>"),"\n ",v.H2(f.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Your_Open_Source_solution")})),"\n ",v.P(f.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Have_your_own_chat")})),"\n ",v.A({"class":"button",href:function(){return h.mustache(e.lookup("pathFor"),"login")}},v.SPAN(f.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Access_Online_Demo")}))),"\n ")]})}.call(this),function(){o.__checkName("loginLayout"),o.loginLayout=new o("Template.loginLayout",function(){var e=this;return v.SECTION({"class":"full-page"},"\n ",v.DIV({"class":"wrapper"},"\n ",h.include(e.lookupTemplate("loginHeader")),"\n ",f._TemplateWith(function(){return{template:h.call(e.lookup("center"))}},function(){return h.include(function(){return h.call(o.__dynamic)})}),"\n ",h.include(e.lookupTemplate("loginFooter")),"\n "),"\n ")})}.call(this),function(){o.loginLayout.onRendered(function(){$("#initial-page-loading").remove()})}.call(this),function(){o.__checkName("loginServices"),o.loginServices=new o("Template.loginServices",function(){var e=this;return f.If(function(){return h.call(h.dot(e.lookup("loginService"),"length"))},function(){return["\n ",v.DIV({"class":"social-login"},"\n ",f.Each(function(){return h.call(e.lookup("loginService"))},function(){return["\n ",v.BUTTON({type:"button","class":function(){return["button external-login ",h.mustache(h.dot(e.lookup("service"),"service"))]},title:function(){return h.mustache(e.lookup("displayName"))},style:function(){return[f.If(function(){return h.call(h.dot(e.lookup("service"),"buttonColor"))},function(){return["background-color:",f.View("lookup:service.buttonColor",function(){return h.mustache(h.dot(e.lookup("service"),"buttonColor"))}),";"]}),f.If(function(){return h.call(h.dot(e.lookup("service"),"buttonLabelColor"))},function(){return["color:",f.View("lookup:service.buttonLabelColor",function(){return h.mustache(h.dot(e.lookup("service"),"buttonLabelColor"))}),";"]})]}},v.I({"class":function(){return["icon-",h.mustache(e.lookup("icon"))," service-icon"]}}),v.I({"class":"icon-spin animate-spin loading-icon hidden"}),v.SPAN(f.View("lookup:service.buttonLabelText",function(){return h.mustache(h.dot(e.lookup("service"),"buttonLabelText"))}))),"\n "]}),"\n "),"\n "]})})}.call(this),function(){o.__checkName("social"),o.social=new o("Template.social",function(){var e=this;return v.DIV({"class":"social"},"\n ",f.If(function(){return h.call(e.lookup("withParagraph"))},function(){return["\n ",v.H4(f.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Join_the_Community")})),"\n ",v.P(f.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Follow_social_profiles")})),"\n "]}),v.Raw('\n <nav>\n <a target="_blank" class="button share twitter" href="https://twitter.com/RocketChatApp"><i class="icon-twitter"></i><span>Twitter</span></a>\n <a target="_blank" class="button share facebook" href="https://www.facebook.com/RocketChatApp"><i class="icon-facebook"></i><span>Facebook</span></a>\n <a target="_blank" class="button share google" href="https://plus.google.com/+RocketChatApp"><i class="icon-gplus"></i><span>Google Plus</span></a>\n <a target="_blank" class="button share github" href="https://github.com/RocketChat/Rocket.Chat"><i class="icon-github-circled"></i><span>GitHub</span></a>\n <a target="_blank" class="button share linkedin" href="https://www.linkedin.com/company/rocket-chat"><i class="icon-linkedin"></i><span>LinkedIn</span></a>\n </nav>\n '))})}.call(this),function(){o.__checkName("usernameLayout"),o.usernameLayout=new o("Template.usernameLayout",function(){var e=this;return v.SECTION({"class":"full-page"},"\n ",v.DIV({"class":"wrapper"},"\n ",f._TemplateWith(function(){return{template:h.call(e.lookup("render"))}},function(){return h.include(function(){return h.call(o.__dynamic)})}),"\n "),"\n ")})}.call(this),function(){o.__checkName("username"),o.username=new o("Template.username",function(){var e=this;return v.SECTION({"class":"full-page"},"\n ",v.DIV({"class":"wrapper"},"\n ",v.FORM({id:"login-card",method:"/"},"\n ",v.HEADER("\n ",v.H2(f.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Username_title")})),"\n ",v.P(f.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Username_description")})),"\n "),"\n ",f.If(function(){return h.call(h.dot(e.lookup("username"),"error"))},function(){return["\n ",v.DIV({"class":"alert alert-danger"},"\n ",f.View("lookup:_",function(){return h.makeRaw(h.mustache(e.lookup("_"),"Username_unavaliable",h.dot(e.lookup("username"),"username")))}),"\n "),"\n "]}),"\n ",f.If(function(){return h.call(h.dot(e.lookup("username"),"invalid"))},function(){return["\n ",v.DIV({"class":"alert alert-danger"},"\n ",f.View("lookup:_",function(){return h.makeRaw(h.mustache(e.lookup("_"),"Username_invalid",h.dot(e.lookup("username"),"username")))}),"\n "),"\n "]}),"\n ",f.If(function(){return h.call(h.dot(e.lookup("username"),"empty"))},function(){return["\n ",v.DIV({"class":"alert alert-danger"},"\n ",f.View("lookup:_",function(){return h.makeRaw(h.mustache(e.lookup("_"),"Username_cant_be_empty"))}),"\n "),"\n "]}),"\n ",v.DIV({"class":"fields"},"\n ",v.DIV({"class":"input-text active"},"\n ",f.If(function(){return h.call(h.dot(e.lookup("username"),"ready"))},function(){return["\n ",v.SPAN("\n ",v.INPUT({type:"text",name:"username",value:function(){return h.mustache(h.dot(e.lookup("username"),"username"))},placeholder:function(){return h.mustache(e.lookup("_"),"Username")},dir:"auto"}),"\n "),"\n ",v.I(),"\n "]},function(){return["\n ",f.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Loading_suggestion")}),"\n "]}),"\n "),"\n "),"\n\n ",f.If(function(){return h.call(h.dot(e.lookup("username"),"ready"))},function(){return["\n ",v.DIV({"class":"submit"},"\n ",v.BUTTON({"data-loading-text":function(){return[h.mustache(e.lookup("_"),"Please_wait"),"..."]},"class":"button primary login"},v.SPAN(f.View("lookup:_",function(){return h.mustache(e.lookup("_"),"Use_this_username")}))),"\n "),"\n "]}),"\n "),"\n "),"\n ")})}.call(this),function(){_="object"==typeof _?_:{};var e=_;o.loginFooter.helpers({LanguageVersion:function(){return o.instance().languageVersion.get()?w.__("Language_Version",{lng:o.instance().languageVersion.get()}):void 0}}),o.loginFooter.events({"click a.switch-language":function(e,n){var t;return t=n.languageVersion.get(),localStorage.setItem("userLanguage",t),w.setLanguage(t),moment.locale(t),n.languageVersion.set(t!==defaultUserLanguage()?defaultUserLanguage():"en")}}),o.loginFooter.onCreated(function(){var e,n;return e=this,this.languageVersion=new ReactiveVar,n=localStorage.getItem("userLanguage"),n!==defaultUserLanguage()?w._loadLanguage(defaultUserLanguage()).done(function(){return e.languageVersion.set(defaultUserLanguage())}):0!==n.indexOf("en")?w._loadLanguage("en").done(function(){return e.languageVersion.set("en")}):void 0})}.call(this),function(){_="object"==typeof _?_:{};var n=_;o.loginForm.helpers({userName:function(){var n;return null!=(n=e.user())?n.username:void 0},namePlaceholder:function(){return t(a.settings.get("Accounts_RequireNameForSignUp")?"Name":"Name_optional")},showFormLogin:function(){return a.settings.get("Accounts_ShowFormLogin")},showName:function(){return"register"!==o.instance().state.get()?"hidden":void 0},showPassword:function(){var e;return"login"!==(e=o.instance().state.get())&&"register"!==e?"hidden":void 0},showConfirmPassword:function(){return"register"!==o.instance().state.get()?"hidden":void 0},showEmailOrUsername:function(){return"login"!==o.instance().state.get()?"hidden":void 0},showEmail:function(){var e;return"register"!==(e=o.instance().state.get())&&"forgot-password"!==e&&"email-verification"!==e?"hidden":void 0},showRegisterLink:function(){return"login"!==o.instance().state.get()?"hidden":void 0},showForgotPasswordLink:function(){return"login"!==o.instance().state.get()?"hidden":void 0},showBackToLoginLink:function(){var e;return"register"!==(e=o.instance().state.get())&&"forgot-password"!==e&&"email-verification"!==e&&"wait-activation"!==e?"hidden":void 0},showSandstorm:function(){return"sandstorm"===o.instance().state.get()},btnLoginSave:function(){switch(o.instance().state.get()){case"register":return t("Submit");case"login":return t("Login");case"email-verification":return t("Send_confirmation_email");case"forgot-password":return t("Reset_password")}},waitActivation:function(){return"wait-activation"===o.instance().state.get()},loginTerms:function(){return a.settings.get("Layout_Login_Terms")},registrationAllowed:function(){var e;return"Public"===a.settings.get("Accounts_RegistrationForm")||(null!=(e=o.instance().validSecretURL)?e.get():void 0)},linkReplacementText:function(){return a.settings.get("Accounts_RegistrationForm_LinkReplacementText")},passwordresetAllowed:function(){return a.settings.get("Accounts_PasswordReset")},emailOrUsernamePlaceholder:function(){return a.settings.get("Accounts_EmailOrUsernamePlaceholder")||t("Email_or_username")},passwordPlaceholder:function(){return a.settings.get("Accounts_PasswordPlaceholder")||t("Password")},hasOnePassword:function(){var e;return null!=("undefined"!=typeof OnePassword&&null!==OnePassword?OnePassword.findLoginForUrl:void 0)&&"ios"===("undefined"!=typeof device&&null!==device&&null!=(e=device.platform)?e.toLocaleLowerCase():void 0)}}),o.loginForm.events({"submit #login-card":function(n,o){var r,u,l;return n.preventDefault(),r=$(n.target).find("button.login"),a.Button.loading(r),u=o.validate(),u?"email-verification"===o.state.get()?void e.call("sendConfirmationEmail",s.trim(u.email),function(e,n){return a.Button.reset(r),toastr.success(t("We_have_sent_registration_email")),o.state.set("login")}):"forgot-password"===o.state.get()?void e.call("sendForgotPasswordEmail",s.trim(u.email),function(e,n){return a.Button.reset(r),toastr.success(t("We_have_sent_password_email")),o.state.set("login")}):"register"===o.state.get()?(u.secretURL=i.getParam("hash"),e.call("registerUser",u,function(n,i){return a.Button.reset(r),null!=n?void toastr.error("Email already exists."===n.error?t("Email_already_exists"):n.reason):e.loginWithPassword(s.trim(u.email),u.pass,function(e){return"no-valid-email"===(null!=e?e.error:void 0)?(toastr.success(t("We_have_sent_registration_email")),o.state.set("login")):"inactive-user"===(null!=e?e.error:void 0)?o.state.set("wait-activation"):void 0})})):(l="loginWithPassword",a.settings.get("LDAP_Enable")&&(l="loginWithLDAP"),e[l](s.trim(u.emailOrUsername),u.pass,function(n){var i,s;return a.Button.reset(r),null!=n?void("no-valid-email"===n.error?o.state.set("email-verification"):toastr.error(t("User_not_found_or_incorrect_password"))):(localStorage.setItem("userLanguage",null!=(i=e.user())?i.language:void 0),setLanguage(null!=(s=e.user())?s.language:void 0))})):void 0},"click .register":function(){return o.instance().state.set("register")},"click .back-to-login":function(){return o.instance().state.set("login")},"click .forgot-password":function(){return o.instance().state.set("forgot-password")},"click .one-passsword":function(){var n,t;if(null!=("undefined"!=typeof OnePassword&&null!==OnePassword?OnePassword.findLoginForUrl:void 0))return t=function(e){return $("input[name=emailOrUsername]").val(e.username),$("input[name=pass]").val(e.password)},n=function(){return console.log("OnePassword errorCallback",arguments)},OnePassword.findLoginForUrl(t,n,e.absoluteUrl())}}),o.loginForm.onCreated(function(){var n;return n=this,e.settings["public"].sandstorm?this.state=new ReactiveVar("sandstorm"):Session.get("loginDefaultState")?this.state=new ReactiveVar(Session.get("loginDefaultState")):this.state=new ReactiveVar("login"),this.validSecretURL=new ReactiveVar(!1),this.validate=function(){var e,o,i,s,u,l,c,g;for(i=$("#login-card").serializeArray(),s={},g={},u=0,c=i.length;c>u;u++)o=i[u],s[o.name]=o.value;if("login"!==n.state.get()&&(s.email&&/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]+\b/i.test(s.email)||(g.email=t("Invalid_email"))),"forgot-password"!==n.state.get()&&(s.pass||(g.pass=t("Invalid_pass"))),"register"===n.state.get()&&(a.settings.get("Accounts_RequireNameForSignUp")&&!s.name&&(g.name=t("Invalid_name")),s["confirm-pass"]!==s.pass&&(g["confirm-pass"]=t("Invalid_confirm_pass"))),$("#login-card input").removeClass("error"),!r.isEmpty(g)){e=$("#login-card").find("button.login"),a.Button.reset(e),$("#login-card h2").addClass("error");for(l in g)$("#login-card input[name="+l+"]").addClass("error");return!1}return $("#login-card h2").removeClass("error"),$("#login-card input.error").removeClass("error"),s},i.getParam("hash")?e.call("checkRegistrationSecretURL",i.getParam("hash"),function(e){return function(n,t){return e.validSecretURL.set(!0)}}(this)):void 0}),o.loginForm.onRendered(function(){return Session.set("loginDefaultState"),Tracker.autorun(function(n){return function(){switch(n.state.get()){case"login":case"forgot-password":case"email-verification":return e.defer(function(){return $("input[name=email]").select().focus()});case"register":return e.defer(function(){return $("input[name=name]").select().focus()})}}}(this))})}.call(this),function(){_="object"==typeof _?_:{};var e=_;o.loginHeader.helpers({logoUrl:function(){var e;return e=a.settings.get("Assets_logo"),null!=e?e.url||e.defaultUrl:void 0}})}.call(this),function(){_="object"==typeof _?_:{};var n=_;e.startup(function(){return ServiceConfiguration.configurations.find({custom:!0}).observe({added:function(e){return new CustomOAuth(e.service,{serverURL:e.serverURL,authorizePath:e.authorizePath})}})}),o.loginServices.helpers({loginService:function(){var e,n;return n=[],e=ServiceConfiguration.configurations.find({},{sort:{service:1}}).fetch(),e.forEach(function(e){var t,o;switch(e.service){case"meteor-developer":o="Meteor",t="meteor";break;case"github":o="GitHub",t="github-circled";break;case"gitlab":o="Gitlab",t=e.service;break;case"wordpress":o="WordPress",t=e.service;break;default:o=r.capitalize(e.service),t=e.service}return n.push({service:e,displayName:o,icon:t})}),n}}),o.loginServices.events({"click .external-login":function(n,t){var o,a,i,s,u;if(null!=(null!=(i=this.service)?i.service:void 0))return o=$(n.currentTarget).find(".loading-icon"),u=$(n.currentTarget).find(".service-icon"),o.removeClass("hidden"),u.addClass("hidden"),e.isCordova&&"facebook"===this.service.service?e.loginWithFacebookCordova({},function(e){o.addClass("hidden"),u.removeClass("hidden"),e&&(console.log(JSON.stringify(e)),toastr.error(e.reason?e.reason:e.message))}):(a="loginWith"+("meteor-developer"===this.service.service?"MeteorDeveloperAccount":r.capitalize(this.service.service)),s=this.service.clientConfig||{},e[a](s,function(e){o.addClass("hidden"),u.removeClass("hidden"),e&&(console.log(JSON.stringify(e)),toastr.error(e.reason?e.reason:e.message))}))}})}.call(this),function(){_="object"==typeof _?_:{};var e=_}.call(this),function(){_="object"==typeof _?_:{};var n=_;o.username.onCreated(function(){var n;return n=this,n.username=new ReactiveVar,e.call("getUsernameSuggestion",function(t,o){return n.username.set({ready:!0,username:o}),e.defer(function(){return n.find("input").focus()})})}),o.username.helpers({username:function(){return o.instance().username.get()}}),o.username.events({"submit #login-card":function(n,t){var o,r,i;return n.preventDefault(),r=t.username.get(),r.empty=!1,r.error=!1,r.invalid=!1,t.username.set(r),o=$(n.target).find("button.login"),a.Button.loading(o),i=$("input").val().trim(),""===i?(r.empty=!0,t.username.set(r),void a.Button.reset(o)):e.call("setUsername",i,function(n,s){return null!=n&&(console.log(n),"username-invalid"===n.error?r.invalid=!0:r.error=!0,r.username=i),a.Button.reset(o),t.username.set(r),null==n?e.call("joinDefaultChannels"):void 0})}})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:ui-login"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.ecmascript.ECMAScript,o=Package.templating.Template,r=Package.underscore._,u=Package["rocketchat:lib"].RocketChat,a=Package["babel-runtime"].babelHelpers,c=Package["ecmascript-runtime"].Symbol,i=Package["ecmascript-runtime"].Map,l=Package["ecmascript-runtime"].Set,p=Package.promise.Promise,m=Package.blaze.Blaze,f=Package.blaze.UI,h=Package.blaze.Handlebars,d=Package.spacebars.Spacebars,k=Package["tap:i18n"].TAPi18next,v=Package["tap:i18n"].TAPi18n,_=Package.htmljs.HTML,g;(function(){o.__checkName("accountBox"),o.accountBox=new o("Template.accountBox",function(){var e=this;return _.DIV({"class":"account-box","aria-label":function(){return d.mustache(e.lookup("_"),"Account")},role:"region"},"\n ",d.With(function(){return d.call(e.lookup("myUserInfo"))},function(){return["\n ",_.DIV({"class":function(){return["info status-",d.mustache(e.lookup("status"))]}},"\n ",m.If(function(){return d.call(e.lookup("username"))},function(){return["\n ",_.DIV({"class":"thumb","data-status":function(){return d.mustache(e.lookup("visualStatus"))}},"\n ",m._TemplateWith(function(){return{username:d.call(e.lookup("username"))}},function(){return d.include(e.lookupTemplate("avatar"))}),"\n "),"\n ",_.DIV({"class":"data"},"\n ",_.H4(m.View("lookup:username",function(){return d.mustache(e.lookup("username"))})),"\n "),"\n "]}),"\n "),"\n ",_.NAV({"class":"options animated-hidden"},"\n ",_.DIV({"class":"wrapper"},"\n ",_.A({"data-status":"online","class":"status online"},_.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Online")}))),"\n ",_.A({"data-status":"away","class":"status away"},_.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Away",d.kw({context:"male"}))}))),"\n ",_.A({"data-status":"busy","class":"status busy"},_.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Busy",d.kw({context:"male"}))}))),"\n ",_.A({"data-status":"offline","class":"status offline"},_.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Invisible")}))),"\n ",_.A({id:"account","class":"account-link"},_.I({"class":"icon-sliders"}),_.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"My_Account")}))),"\n ",m.Each(function(){return d.call(e.lookup("registeredMenus"))},function(){return["\n ",_.A({href:function(){return d.mustache(e.lookup("pathFor"),e.lookup("href"))},"class":"account-box-item"},_.I({"class":function(){return d.mustache(e.lookup("icon"))}}),_.SPAN(m.View("lookup:name",function(){return d.mustache(e.lookup("name"))}))),"\n "]}),"\n ",m.If(function(){return d.call(e.lookup("showAdminOption"))},function(){return["\n ",_.A({id:"admin","class":"account-link"},_.I({"class":"icon-wrench"}),_.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Administration")}))),"\n "]}),"\n ",_.A({id:"logout"},_.I({"class":"icon-logout"}),_.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Logout")}))),"\n "),"\n "),"\n "]}),"\n ")})}).call(this),function(){o.__checkName("channels"),o.channels=new o("Template.channels",function(){var e=this;return[_.H3({"class":function(){return["add-room ",d.mustache(e.lookup("isActive"))]}},"\n ",m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Channels")}),"\n ",m.If(function(){return d.dataMustache(e.lookup("hasPermission"),"create-c")},function(){return["\n ",_.I({"class":"icon-plus","aria-label":function(){return d.mustache(e.lookup("_"),"Create channel")},role:"button"}),"\n "]}),"\n "),"\n ",_.UL("\n ",m.Each(function(){return d.call(e.lookup("rooms"))},function(){return["\n ",d.include(e.lookupTemplate("chatRoomItem")),"\n "]},function(){return["\n ",_.P({"class":"empty"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"No_channels_yet")})),"\n "]}),"\n "),"\n ",_.A({"class":"more more-channels"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"More_channels")}),"...")]})}.call(this),function(){o.__checkName("chatRoomItem"),o.chatRoomItem=new o("Template.chatRoomItem",function(){var e=this;return _.LI({"class":function(){return["link-room-",d.mustache(e.lookup("rid"))," ",d.mustache(e.lookup("active"))," ",m.If(function(){return d.call(e.lookup("unread"))},function(){return"has-unread"})," ",m.If(function(){return d.call(e.lookup("alert"))},function(){return"has-alert"})]}},"\n ",_.A({"class":"open-room",href:function(){return d.mustache(e.lookup("route"))},title:function(){return d.mustache(e.lookup("name"))}},"\n ",m.If(function(){return d.call(e.lookup("unread"))},function(){return["\n ",_.SPAN({"class":"unread"},m.View("lookup:unread",function(){return d.mustache(e.lookup("unread"))})),"\n "]}),"\n ",_.I({"class":function(){return[d.mustache(e.lookup("roomIcon"))," ",d.mustache(e.lookup("userStatus"))]},"aria-label":""}),"\n ",_.SPAN({"class":"name"},m.View("lookup:name",function(){return d.mustache(e.lookup("name"))})),"\n ",m.If(function(){return d.dataMustache(e.lookup("$not"),e.lookup("unread"))},function(){return["\n ",_.SPAN({"class":"opt"},"\n ",_.I({"class":"icon-eye-off hide-room",title:function(){return d.mustache(e.lookup("_"),"Hide_room")},"aria-label":function(){return d.mustache(e.lookup("_"),"Hide_room")}}),"\n ",m.If(function(){return d.call(e.lookup("canLeave"))},function(){return["\n ",_.I({"class":"icon-logout leave-room",title:function(){return d.mustache(e.lookup("_"),"Leave_room")},"aria-label":function(){return d.mustache(e.lookup("_"),"Leave_room")}}),"\n "]}),"\n "),"\n "]}),"\n "),"\n ")})}.call(this),function(){o.__checkName("createChannelFlex"),o.createChannelFlex=new o("Template.createChannelFlex",function(){var e=this;return[_.HEADER("\n ",_.DIV("\n ",_.H4(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Channels")})),"\n "),"\n "),"\n ",_.DIV({"class":"content"},"\n ",_.DIV({"class":"wrapper"},"\n ",_.H4(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Create_new")})),"\n ",_.DIV({"class":"input-line"},"\n ",_.LABEL({"for":"channel-name"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Name")})),"\n ",_.INPUT({type:"text",id:"channel-name","class":"required",dir:"auto",placeholder:function(){return d.mustache(e.lookup("_"),"Enter_name_here")}}),"\n "),"\n ",_.DIV({"class":"input-line"},"\n ",_.LABEL({"for":"channel-members"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Select_users")})),"\n ",m._TemplateWith(function(){return{settings:d.call(e.lookup("autocompleteSettings")),id:d.call("channel-members"),"class":d.call("search"),placeholder:d.call(d.dataMustache(e.lookup("_"),"Search_by_username")),autocomplete:d.call("off")}},function(){return d.include(e.lookupTemplate("inputAutocomplete"))}),"\n ",_.UL({"class":"selected-users"},"\n ",m.Each(function(){return d.call(e.lookup("selectedUsers"))},function(){return["\n ",_.LI(m.View("lookup:.",function(){return d.mustache(e.lookup("."))})," ",_.I({"class":"icon-cancel remove-room-member"})),"\n "]}),"\n "),"\n "),"\n ",m.If(function(){return d.call(d.dot(e.lookup("error"),"fields"))},function(){return["\n ",_.DIV({"class":"input-error"},"\n ",_.STRONG(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Oops!")})),"\n ",m.Each(function(){return d.call(d.dot(e.lookup("error"),"fields"))},function(){return["\n ",_.P(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"The_field_is_required",e.lookup("."))})),"\n "]}),"\n "),"\n "]}),"\n ",m.If(function(){return d.call(d.dot(e.lookup("error"),"invalid"))},function(){return["\n ",_.DIV({"class":"input-error"},"\n ",_.STRONG(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Oops!")})),"\n ",m.View("lookup:_",function(){return d.makeRaw(d.mustache(e.lookup("_"),"Invalid_room_name",e.lookup("roomName")))}),"\n "),"\n "]}),"\n ",m.If(function(){return d.call(d.dot(e.lookup("error"),"duplicate"))},function(){return["\n ",_.DIV({"class":"input-error"},"\n ",_.STRONG(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Oops!")})),"\n ",m.View("lookup:_",function(){return d.makeRaw(d.mustache(e.lookup("_"),"Duplicate_channel_name",e.lookup("roomName")))}),"\n "),"\n "]}),"\n ",m.If(function(){return d.call(d.dot(e.lookup("error"),"archivedduplicate"))},function(){return["\n ",_.DIV({"class":"input-error"},"\n ",_.STRONG(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Oops!")})),"\n ",m.View("lookup:_",function(){return d.makeRaw(d.mustache(e.lookup("_"),"Duplicate_archived_channel_name",e.lookup("roomName")))}),"\n "),"\n "]}),"\n ",_.DIV({"class":"input-submit"},"\n ",_.BUTTON({"class":"button clean primary save-channel"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Create")})),"\n ",_.BUTTON({"class":"button clean cancel-channel"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Cancel")})),"\n "),"\n "),"\n "),"\n ",_.FOOTER("\n ",_.DIV("\n ",_.BUTTON({"class":"button clean all"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"All_channels")})),"\n "),"\n ")]})}.call(this),function(){o.__checkName("directMessages"),o.directMessages=new o("Template.directMessages",function(){var e=this;return[_.H3({"class":function(){return["add-room ",d.mustache(e.lookup("isActive"))]}},"\n ",m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Direct_Messages")}),"\n ",_.Raw('<i class="icon-plus"></i>'),"\n "),"\n ",_.UL("\n ",m.Each(function(){return d.call(e.lookup("rooms"))},function(){return["\n ",d.include(e.lookupTemplate("chatRoomItem")),"\n "]},function(){return["\n ",_.P({"class":"empty"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"No_direct_messages_yet")})),"\n "]}),"\n ",_.A({"class":"more more-direct-messages"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"More_direct_messages")}),"..."),"\n ")]})}.call(this),function(){o.__checkName("directMessagesFlex"),o.directMessagesFlex=new o("Template.directMessagesFlex",function(){var e=this;return[_.HEADER("\n ",_.DIV("\n ",_.H4(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Direct_Messages")})),"\n "),"\n "),"\n ",_.DIV({"class":"content"},"\n ",_.DIV({"class":"wrapper"},"\n ",_.H4(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Create_new")})),"\n ",_.DIV({"class":"input-line"},"\n ",_.LABEL({"for":"who"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Select_user")})),"\n ",m._TemplateWith(function(){return{settings:d.call(e.lookup("autocompleteSettings")),id:d.call("who"),"class":d.call("required search"),autocomplete:d.call("off"),placeholder:d.call(d.dataMustache(e.lookup("_"),"Search_by_username"))}},function(){return d.include(e.lookupTemplate("inputAutocomplete"))}),"\n "),"\n ",m.If(function(){return d.call(e.lookup("error"))},function(){return["\n ",_.DIV({"class":"input-error"},"\n ",_.STRONG(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Oops!")})),"\n ",m.Each(function(){return d.call(e.lookup("error"))},function(){return["\n ",_.P(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"The_field_is_required",e.lookup("error"))})),"\n "]}),"\n "),"\n "]}),"\n ",_.DIV({"class":"input-submit"},"\n ",_.BUTTON({"class":"button clean primary save-direct-message"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Create")})),"\n ",_.BUTTON({"class":"button clean cancel-direct-message"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Cancel")})),"\n "),"\n "),"\n ")]})}.call(this),function(){o.__checkName("listChannelsFlex"),o.listChannelsFlex=new o("Template.listChannelsFlex",function(){var e=this;return[_.HEADER("\n ",_.DIV("\n ",_.H4(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Channels")})),"\n "),"\n "),"\n ",_.DIV({"class":"content"},"\n ",_.DIV({"class":"wrapper"},"\n ",_.DIV({"class":"flex-control"},"\n ",_.DIV({"class":"search"},"\n ",_.FORM({"class":"search-form",role:"form"},"\n ",_.DIV({"class":"input-line search"},"\n ",_.SELECT({"class":"c-select",id:"show"},"\n ",_.OPTION({value:"joined",selected:function(){return d.mustache(e.lookup("showSelected"),"joined")}},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Joined")})),"\n ",_.OPTION({value:"all",selected:function(){return d.mustache(e.lookup("showSelected"),"all")}},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"All")})),"\n "),"\n ",_.Raw('<i class="icon-comment"></i>'),"\n "),"\n ",_.DIV({"class":"input-line search"},"\n ",_.SELECT({"class":"c-select",id:"sort-channels"},"\n ",_.OPTION({value:"name",selected:function(){return d.mustache(e.lookup("sortChannelsSelected"),"name")}},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Name")})),"\n ",_.OPTION({value:"msgs",selected:function(){return d.mustache(e.lookup("sortChannelsSelected"),"msgs")}},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Number_of_messages")})),"\n "),"\n ",_.SELECT({"class":"c-select",id:"sort-subscriptions",style:"display: none"},"\n ",_.OPTION({value:"name",selected:function(){return d.mustache(e.lookup("sortSubscriptionsSelected"),"name")}},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Name")})),"\n ",_.OPTION({value:"ls",selected:function(){return d.mustache(e.lookup("sortSubscriptionsSelected"),"ls")}},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Last_seen")})),"\n "),"\n ",_.Raw('<i class="icon-sort-alt-up"></i>'),"\n "),"\n ",_.DIV({"class":"input-line search"},"\n ",_.INPUT({type:"text",id:"channel-search","class":"search",placeholder:function(){return d.mustache(e.lookup("_"),"Search_Channels")},autocomplete:"off"}),"\n ",_.Raw('<i class="icon-right-open-small"></i>'),"\n "),"\n "),"\n "),"\n "),"\n ",_.H4(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Channels_list")})),"\n ",_.UL("\n ",m.Each(function(){return d.call(e.lookup("channel"))},function(){return["\n ",_.LI("\n ",_.A({href:function(){return d.mustache(e.lookup("pathFor"),"channel",d.kw({name:e.lookup("name")}))},"class":"channel-link"},"\n ",_.I({"class":"icon-hash"}),"\n ",m.View("lookup:name",function(){return d.mustache(e.lookup("name"))}),"\n ",_.SPAN({"class":"opt fixed"},"\n ",m.If(function(){return d.call(e.lookup("member"))},function(){return["\n ",_.I({"class":"icon-eye",title:function(){return d.mustache(e.lookup("_"),"Open")},"aria-label":function(){return d.mustache(e.lookup("_"),"Open")}}),"\n "]}),"\n ",m.If(function(){return d.call(e.lookup("hidden"))},function(){return["\n ",_.I({"class":"icon-eye-off",title:function(){return d.mustache(e.lookup("_"),"Hidden")},"aria-label":function(){return d.mustache(e.lookup("_"),"Hidden")}}),"\n "]}),"\n "),"\n "),"\n "),"\n "]}),"\n ",m.If(function(){return d.call(e.lookup("hasMore"))},function(){return["\n ",_.LI({"class":"load-more"},"\n ",m.If(function(){return d.call(e.templateInstance().subscriptionsReady())},function(){return["\n ",_.A(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Has_more")}),"..."),"\n "]},function(){return["\n ",_.DIV({"class":"load-more-loading"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Loading...")})),"\n "]}),"\n "),"\n "]}),"\n "),"\n "),"\n "),"\n ",_.FOOTER("\n ",_.DIV("\n ",m.If(function(){return d.dataMustache(e.lookup("hasPermission"),"create-c")},function(){return["\n ",_.BUTTON({"class":"button clean create"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Create_new")})),"\n "]}),"\n "),"\n ")]})}.call(this),function(){o.__checkName("listDirectMessagesFlex"),o.listDirectMessagesFlex=new o("Template.listDirectMessagesFlex",function(){var e=this;return[_.HEADER("\n ",_.DIV("\n ",_.H4(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Direct_Messages")})),"\n "),"\n "),"\n ",_.DIV({"class":"content"},"\n ",_.DIV({"class":"wrapper"},"\n ",_.DIV({"class":"flex-control"},"\n ",_.DIV({"class":"search"},"\n ",_.FORM({"class":"search-form",role:"form"},"\n ",_.DIV({"class":"input-line search"},"\n ",_.INPUT({type:"text",id:"channel-search","class":"search",placeholder:function(){return d.mustache(e.lookup("_"),"Search_Direct_Messages")},autocomplete:"off"}),"\n ",_.Raw('<i class="icon-right-open-small"></i>'),"\n "),"\n ",_.DIV({"class":"input-line search"},"\n ",_.SELECT({"class":"c-select",id:"sort"},"\n ",_.OPTION({value:"name",selected:function(){return d.mustache(e.lookup("sortSelected"),"name")}},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Name")})),"\n ",_.OPTION({value:"ls",selected:function(){return d.mustache(e.lookup("sortSelected"),"ls")}},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Last_seen")})),"\n "),"\n ",_.Raw('<i class="icon-sort-alt-up"></i>'),"\n "),"\n "),"\n "),"\n "),"\n ",_.H4(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"List_of_Direct_Messages")})),"\n ",_.UL("\n ",m.Each(function(){return d.call(e.lookup("rooms"))},function(){return["\n ",_.LI("\n ",_.A({href:function(){return d.mustache(e.lookup("pathFor"),"direct",d.kw({username:e.lookup("name")}))},"class":"channel-link"},"\n ",_.I({"class":function(){return["icon-at ",d.mustache(e.lookup("userStatus"))]}}),"\n ",m.View("lookup:name",function(){return d.mustache(e.lookup("name"))}),"\n ",_.SPAN({"class":"opt fixed"},"\n ",m.If(function(){return d.call(e.lookup("hidden"))},function(){return["\n ",_.I({"class":"icon-eye-off",title:function(){return d.mustache(e.lookup("_"),"Hidden")},"aria-label":function(){return d.mustache(e.lookup("_"),"Hidden")}}),"\n "]}),"\n "),"\n "),"\n "),"\n "]}),"\n ",m.If(function(){return d.call(e.lookup("hasMore"))},function(){return["\n ",_.LI({"class":"load-more"},"\n ",m.If(function(){return d.call(e.templateInstance().subscriptionsReady())},function(){return["\n ",_.A(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Has_more")}),"..."),"\n "]},function(){return["\n ",_.DIV({"class":"load-more-loading"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Loading...")})),"\n "]}),"\n "),"\n "]}),"\n "),"\n "),"\n ")]})}.call(this),function(){o.__checkName("listPrivateGroupsFlex"),o.listPrivateGroupsFlex=new o("Template.listPrivateGroupsFlex",function(){var e=this;return[_.HEADER("\n ",_.DIV("\n ",_.H4(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Private_Groups")})),"\n "),"\n "),"\n ",_.DIV({"class":"content"},"\n ",_.DIV({"class":"wrapper"},"\n ",_.DIV({"class":"flex-control"},"\n ",_.DIV({"class":"search"},"\n ",_.FORM({"class":"search-form",role:"form"},"\n ",_.DIV({"class":"input-line search"},"\n ",_.SELECT({"class":"c-select",id:"sort"},"\n ",_.OPTION({value:"name",selected:function(){return d.mustache(e.lookup("sortSelected"),"name")}},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Name")})),"\n ",_.OPTION({value:"ls",selected:function(){return d.mustache(e.lookup("sortSelected"),"ls")}},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Last_seen")})),"\n "),"\n ",_.Raw('<i class="icon-sort-alt-up"></i>'),"\n "),"\n ",_.DIV({"class":"input-line search"},"\n ",_.INPUT({type:"text",id:"channel-search","class":"search",placeholder:function(){return d.mustache(e.lookup("_"),"Search_Private_Groups")},autocomplete:"off"}),"\n ",_.Raw('<i class="icon-right-open-small"></i>'),"\n "),"\n "),"\n "),"\n "),"\n ",_.H4(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Private_Groups_list")})),"\n ",_.UL("\n ",m.Each(function(){return d.call(e.lookup("groups"))},function(){return["\n ",_.LI("\n ",_.A({href:function(){return d.mustache(e.lookup("pathFor"),"group",d.kw({name:e.lookup("name")}))},"class":"channel-link"},"\n ",_.I({"class":"icon-lock"}),"\n ",m.View("lookup:name",function(){return d.mustache(e.lookup("name"))}),"\n ",_.SPAN({"class":"opt fixed"},"\n ",m.If(function(){return d.call(e.lookup("hidden"))},function(){return["\n ",_.I({"class":"icon-eye-off",title:function(){return d.mustache(e.lookup("_"),"Hidden")},"aria-label":function(){return d.mustache(e.lookup("_"),"Hidden")}}),"\n "]}),"\n "),"\n "),"\n "),"\n "]}),"\n ",m.If(function(){return d.call(e.lookup("hasMore"))},function(){return["\n ",_.LI({"class":"load-more"},"\n ",m.If(function(){return d.call(e.templateInstance().subscriptionsReady())},function(){return["\n ",_.A(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Has_more")}),"..."),"\n "]},function(){return["\n ",_.DIV({"class":"load-more-loading"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Loading...")})),"\n "]}),"\n "),"\n "]}),"\n "),"\n "),"\n "),"\n ",_.FOOTER("\n ",_.DIV("\n ",_.BUTTON({"class":"button clean create"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Create_new")})),"\n "),"\n ")]})}.call(this),function(){o.__checkName("privateGroups"),o.privateGroups=new o("Template.privateGroups",function(){var e=this;return[_.H3({"class":function(){return["add-room ",d.mustache(e.lookup("isActive"))]}},"\n ",m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Private_Groups")}),"\n ",m.If(function(){return d.dataMustache(e.lookup("hasPermission"),"create-p")},function(){return["\n ",_.I({"class":"icon-plus"}),"\n "]}),"\n "),"\n ",_.UL("\n ",m.Each(function(){return d.call(e.lookup("rooms"))},function(){return["\n ",d.include(e.lookupTemplate("chatRoomItem")),"\n "]},function(){return["\n ",_.P({"class":"empty"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"No_groups_yet")})),"\n "]}),"\n "),"\n ",m.If(function(){return d.dataMustache(e.lookup("$gt"),e.lookup("total"),e.lookup("totalOpen"))},function(){return["\n ",_.A({"class":"more more-groups"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"More_groups")}),"..."),"\n "]})]})}.call(this),function(){o.__checkName("privateGroupsFlex"),o.privateGroupsFlex=new o("Template.privateGroupsFlex",function(){var e=this;return[_.HEADER("\n ",_.DIV("\n ",_.H4(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Private_Groups")})),"\n "),"\n "),"\n ",_.DIV({"class":"content"},"\n ",_.DIV({"class":"wrapper"},"\n ",_.H4(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Create_new")})),"\n ",_.DIV({"class":"input-line"},"\n ",_.LABEL({"for":"pvt-group-name"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Name")})),"\n ",_.INPUT({type:"text",id:"pvt-group-name","class":"required",dir:"auto",placeholder:function(){return d.mustache(e.lookup("_"),"Enter_name_here")}}),"\n "),"\n ",_.DIV({"class":"input-line"},"\n ",_.LABEL({"for":"pvt-group-members"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Select_users")})),"\n ",m._TemplateWith(function(){return{settings:d.call(e.lookup("autocompleteSettings")),id:d.call("pvt-group-members"),"class":d.call("search"),placeholder:d.call(d.dataMustache(e.lookup("_"),"Search_by_username")),autocomplete:d.call("off")}},function(){return d.include(e.lookupTemplate("inputAutocomplete"))}),"\n ",_.UL({"class":"selected-users"},"\n ",m.Each(function(){return d.call(e.lookup("selectedUsers"))},function(){return["\n ",_.LI(m.View("lookup:.",function(){return d.mustache(e.lookup("."))})," ",_.I({"class":"icon-cancel remove-room-member"})),"\n "]}),"\n "),"\n "),"\n ",m.If(function(){return d.call(d.dot(e.lookup("error"),"fields"))},function(){return["\n ",_.DIV({"class":"input-error"},"\n ",_.STRONG(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Oops!")})),"\n ",m.Each(function(){return d.call(d.dot(e.lookup("error"),"fields"))},function(){return["\n ",_.P(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"The_field_is_required",e.lookup("."))})),"\n "]}),"\n "),"\n "]}),"\n ",m.If(function(){return d.call(d.dot(e.lookup("error"),"invalid"))},function(){return["\n ",_.DIV({"class":"input-error"},"\n ",_.STRONG(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Oops!")})),"\n ",m.View("lookup:_",function(){return d.makeRaw(d.mustache(e.lookup("_"),"Invalid_room_name",e.lookup("groupName")))}),"\n "),"\n "]}),"\n ",m.If(function(){return d.call(d.dot(e.lookup("error"),"duplicate"))},function(){return["\n ",_.DIV({"class":"input-error"},"\n ",_.STRONG(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Oops!")})),"\n ",m.View("lookup:_",function(){return d.makeRaw(d.mustache(e.lookup("_"),"Duplicate_private_group_name",e.lookup("groupName")))}),"\n "),"\n "]}),"\n ",m.If(function(){return d.call(d.dot(e.lookup("error"),"archivedduplicate"))},function(){return["\n ",_.DIV({"class":"input-error"},"\n ",_.STRONG(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Oops!")})),"\n ",m.View("lookup:_",function(){return d.makeRaw(d.mustache(e.lookup("_"),"Duplicate_archived_private_group_name",e.lookup("groupName")))}),"\n "),"\n "]}),"\n ",_.DIV({"class":"input-submit"},"\n ",_.BUTTON({"class":"button clean primary save-pvt-group"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Create")})),"\n ",_.BUTTON({"class":"button clean cancel-pvt-group"},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Cancel")})),"\n "),"\n "),"\n ")]})}.call(this),function(){o.__checkName("sideNav"),o.sideNav=new o("Template.sideNav",function(){var e=this;return _.ASIDE({"class":"side-nav",role:"navigation"},"\n ",_.HEADER({"class":"header"},"\n ",d.include(e.lookupTemplate("accountBox")),"\n "),"\n ",m.If(function(){return d.call(e.lookup("currentUser"))},function(){return["\n ",_.DIV({"class":"unread-rooms top-unread-rooms hidden"},"\n ",m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"More_unreads")})," ",_.I({"class":"icon-up-big"}),"\n "),"\n ",_.DIV({"class":"rooms-list","aria-label":function(){return d.mustache(e.lookup("_"),"Channels")},role:"region"},"\n ",_.DIV({"class":"wrapper"},"\n ",d.include(e.lookupTemplate("unreadRooms")),"\n\n ",m.Each(function(){return d.call(e.lookup("roomType"))},function(){return["\n ",m.If(function(){return d.call(e.lookup("canShowRoomType"))},function(){return["\n ",m._TemplateWith(function(){return{template:d.call(e.lookup("templateName"))}},function(){return d.include(function(){return d.call(o.__dynamic)})}),"\n "]}),"\n "]}),"\n\n ",_.H3({"class":"history-div"},"\n ",_.A({href:function(){return d.mustache(e.lookup("pathFor"),"privateHistory")}},m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"History")})),"\n "),"\n "),"\n "),"\n ",_.DIV({"class":"unread-rooms bottom-unread-rooms hidden"},"\n ",m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"More_unreads")})," ",_.I({"class":"icon-down-big"}),"\n "),"\n ",_.DIV({"class":"flex-nav animated-hidden"},"\n ",_.SECTION("\n ",m._TemplateWith(function(){return{template:d.call(e.lookup("flexTemplate")),data:d.call(e.lookup("flexData"))}},function(){return d.include(function(){return d.call(o.__dynamic)})}),"\n "),"\n "),"\n ",_.SPAN({"class":"arrow bottom"}),"\n "]}),"\n ",_.FOOTER({"class":"footer"},"\n ",m.View("lookup:footer",function(){return d.makeRaw(d.mustache(e.lookup("footer")))}),"\n "),"\n ")})}.call(this),function(){o.__checkName("starredRooms"),o.starredRooms=new o("Template.starredRooms",function(){var e=this;return m.If(function(){return d.call(e.lookup("total"))},function(){return["\n ",_.H3({"class":function(){return d.mustache(e.lookup("isActive"))}},_.I({"class":"icon-star"}),m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Favorites")})),"\n ",_.UL("\n ",m.Each(function(){return d.call(e.lookup("rooms"))},function(){return["\n ",d.include(e.lookupTemplate("chatRoomItem")),"\n "]}),"\n "),"\n "]})})}.call(this),function(){o.__checkName("unreadRooms"),o.unreadRooms=new o("Template.unreadRooms",function(){var e=this;return _.DIV({"class":function(){return["unread-rooms-mode ",d.mustache(e.lookup("hasUnread"))]}},"\n ",_.H3("\n ",m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Unread_Rooms")}),"\n "),"\n\n ",_.UL("\n ",m.Each(function(){return d.call(e.lookup("rooms"))},function(){return["\n ",d.include(e.lookupTemplate("chatRoomItem")),"\n "]}),"\n "),"\n ")})}.call(this),function(){o.__checkName("userStatus"),o.userStatus=new o("Template.userStatus",function(){var e=this;return _.DIV({"class":"account-box"},"\n ",d.With(function(){return d.call(e.lookup("myUserInfo"))},function(){return["\n ",_.DIV({"class":function(){return["info status-",d.mustache(e.lookup("status"))]}},"\n ",m.If(function(){return d.call(e.lookup("username"))},function(){return["\n ",_.DIV({"class":"thumb","data-status":function(){return d.mustache(e.lookup("visualStatus"))}},"\n ",m._TemplateWith(function(){return{username:d.call(e.lookup("username"))}},function(){return d.include(e.lookupTemplate("avatar"))}),"\n "),"\n ",_.DIV({"class":"data"},"\n ",_.H4(m.View("lookup:username",function(){return d.mustache(e.lookup("username"))})),"\n "),"\n "]}),"\n "),"\n ",_.NAV({"class":"options animated-hidden"},"\n ",_.DIV({"class":"wrapper"},"\n ",_.A({"data-status":"online","class":"status online"},_.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Online")}))),"\n ",_.A({"data-status":"away","class":"status away"},_.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Away",d.kw({context:"male"}))}))),"\n ",_.A({"data-status":"busy","class":"status busy"},_.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Busy",d.kw({context:"male"}))}))),"\n ",_.A({"data-status":"offline","class":"status offline"},_.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Invisible")}))),"\n ",_.A({id:"account","class":"account-link"},_.I({"class":"icon-sliders"}),_.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"My_Account")}))),"\n ",m.If(function(){return d.call(e.lookup("showAdminOption"))},function(){return["\n ",_.A({id:"admin","class":"account-link"},_.I({"class":"icon-wrench"}),_.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Administration")}))),"\n "]}),"\n ",_.A({id:"logout"},_.I({"class":"icon-logout"}),_.SPAN(m.View("lookup:_",function(){return d.mustache(e.lookup("_"),"Logout")}))),"\n "),"\n "),"\n "]}),"\n ")})}.call(this),function(){g="object"==typeof g?g:{};var n=g;o.accountBox.helpers({myUserInfo:function(){var n,o,r;switch(r="online",o=null!=(n=e.user())?n.username:void 0,Session.get("user_"+o+"_status")){case"away":r=t("away");break;case"busy":r=t("busy");break;case"offline":r=t("invisible")}return{name:Session.get("user_"+o+"_name"),status:Session.get("user_"+o+"_status"),visualStatus:r,_id:e.userId(),username:o}},showAdminOption:function(){return u.authz.hasAtLeastOnePermission(["view-statistics","view-room-administration","view-user-administration","view-privileged-setting"])||u.AdminBox.getOptions().length>0},registeredMenus:function(){return AccountBox.getItems()}}),o.accountBox.events({
|
||
"click .options .status":function(e){return e.preventDefault(),AccountBox.setStatus(e.currentTarget.dataset.status)},"click .account-box":function(e){return AccountBox.toggle()},"click #logout":function(n){var t;return n.preventDefault(),t=e.user(),e.logout(function(){return u.callbacks.run("afterLogoutCleanUp",t),e.call("logoutCleanUp",t),FlowRouter.go("home")})},"click #avatar":function(e){return FlowRouter.go("changeAvatar")},"click #account":function(e){return SideNav.setFlex("accountFlex"),SideNav.openFlex(),FlowRouter.go("account")},"click #admin":function(){return SideNav.setFlex("adminFlex"),SideNav.openFlex(),FlowRouter.go("admin-info")},"click .account-link":function(e){return e.stopPropagation(),e.preventDefault(),AccountBox.openFlex()},"click .account-box-item":function(){return null!=this.sideNav?(SideNav.setFlex(this.sideNav),SideNav.openFlex()):void 0}}),o.accountBox.onRendered(function(){return AccountBox.init()})}.call(this),function(){g="object"==typeof g?g:{};var n=g;o.channels.helpers({isActive:function(){return null!=ChatSubscription.findOne({t:{$in:["c"]},f:{$ne:!0},open:!0,rid:Session.get("openedRoom")},{fields:{_id:1}})?"active":void 0},rooms:function(){var n,t,o,r;return n={t:{$in:["c"]},open:!0},u.settings.get("Disable_Favorite_Rooms")||(n.f={$ne:!0}),(null!=(t=e.user())&&null!=(o=t.settings)&&null!=(r=o.preferences)?r.unreadRoomsMode:void 0)&&(n.alert={$ne:!0}),ChatSubscription.find(n,{sort:{t:1,name:1}})}}),o.channels.events({"click .add-room":function(e,n){return u.authz.hasAtLeastOnePermission("create-c")?(SideNav.setFlex("createChannelFlex"),SideNav.openFlex()):e.preventDefault()},"click .more-channels":function(){return SideNav.setFlex("listChannelsFlex"),SideNav.openFlex()}})}.call(this),function(){g="object"==typeof g?g:{};var n=g;o.chatRoomItem.helpers({alert:function(){return FlowRouter.getParam("_id")===this.rid&&document.hasFocus()?void 0:this.alert},unread:function(){return(FlowRouter.getParam("_id")!==this.rid||!document.hasFocus())&&this.unread>0?this.unread:void 0},userStatus:function(){return"status-"+(Session.get("user_"+this.name+"_status")||"offline")},name:function(){return this.name},roomIcon:function(){return u.roomTypes.getIcon(this.t)},active:function(){return Session.get("openedRoom")===this.rid?"active":void 0},canLeave:function(){var n,t,o;return o=Session.get("roomData"+this.rid),o?null!=o.cl&&!o.cl||"d"===o.t||-1!==(null!=(n=o.usernames)?n.indexOf(e.user().username):void 0)&&1===(null!=(t=o.usernames)?t.length:void 0)?!1:!0:!1},route:function(){return u.roomTypes.getRouteLink(this.t,this)}}),o.chatRoomItem.rendered=function(){return null!=FlowRouter.getParam("_id")&&FlowRouter.getParam("_id")===this.data.rid||this.data.ls||this.data.alert!==!0?void 0:KonchatNotification.newRoom(this.data.rid)},o.chatRoomItem.events({"click .open-room":function(e){return menu.close()},"click .hide-room":function(n){var o,r,u;return n.stopPropagation(),n.preventDefault(),r=this.rid,o=this.name,u=function(){switch(!1){case"c"!==this.t:return"Hide_Room_Warning";case"p"!==this.t:return"Hide_Group_Warning";case"d"!==this.t:return"Hide_Private_Warning"}}.call(this),swal({title:t("Are_you_sure"),text:t(u,o),type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:t("Yes_hide_it"),cancelButtonText:t("Cancel"),closeOnConfirm:!0,html:!1},function(){var n;return"channel"!==(n=FlowRouter.getRouteName())&&"group"!==n&&"direct"!==n||Session.get("openedRoom")!==r||FlowRouter.go("home"),e.call("hideRoom",r)})},"click .leave-room":function(n){var o,r,u;return n.stopPropagation(),n.preventDefault(),r=this.rid,o=this.name,u=function(){switch(!1){case"c"!==this.t:return"Leave_Room_Warning";case"p"!==this.t:return"Leave_Group_Warning";case"d"!==this.t:return"Leave_Private_Warning"}}.call(this),swal({title:t("Are_you_sure"),text:t(u,o),type:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:t("Yes_leave_it"),cancelButtonText:t("Cancel"),closeOnConfirm:!1,html:!1},function(n){return n?e.call("leaveRoom",r,function(e){var n;return e?swal({title:t("Warning"),text:t(e.reason),type:"warning",html:!1}):(swal.close(),"channel"!==(n=FlowRouter.getRouteName())&&"group"!==n&&"direct"!==n||Session.get("openedRoom")!==r||FlowRouter.go("home"),RoomManager.close(r))}):swal.close()})}})}.call(this),function(){g="object"==typeof g?g:{};var n=g;o.createChannelFlex.helpers({selectedUsers:function(){return o.instance().selectedUsers.get()},name:function(){return o.instance().selectedUserNames[this.valueOf()]},error:function(){return o.instance().error.get()},roomName:function(){return o.instance().roomName.get()},autocompleteSettings:function(){return{limit:10,rules:[{collection:"UserAndRoom",subscription:"userAutocomplete",field:"username",template:o.userSearch,noMatchTemplate:o.userSearchEmpty,matchAll:!0,filter:{exceptions:[e.user().username].concat(o.instance().selectedUsers.get())},selector:function(e){return{username:e}},sort:"username"}]}}}),o.createChannelFlex.events({"autocompleteselect #channel-members":function(e,n,t){return n.selectedUsers.set(n.selectedUsers.get().concat(t.username)),n.selectedUserNames[t.username]=t.name,e.currentTarget.value="",e.currentTarget.focus()},"click .remove-room-member":function(e,n){var t,u;return t=this,u=o.instance().selectedUsers.get(),u=r.reject(o.instance().selectedUsers.get(),function(e){return e===t.valueOf()}),o.instance().selectedUsers.set(u),$("#channel-members").focus()},"click header":function(e,n){return SideNav.closeFlex(function(){return n.clearForm()})},"click .cancel-channel":function(e,n){return SideNav.closeFlex(function(){return n.clearForm()})},"mouseenter header":function(){return SideNav.overArrow()},"mouseleave header":function(){return SideNav.leaveArrow()},"click footer .all":function(){return SideNav.setFlex("listChannelsFlex")},'keydown input[type="text"]':function(e,n){return o.instance().error.set([])},"keyup #channel-name":function(e,n){return 13===e.keyCode?n.$("#channel-members").focus():void 0},"keydown #channel-members":function(e,n){return""===$(e.currentTarget).val()&&13===e.keyCode?n.$(".save-channel").click():void 0},"click .save-channel":function(n,t){var o,r;return o=SideNav.validate(),r=t.find("#channel-name").value.toLowerCase().trim(),t.roomName.set(r),o?(console.log(o),t.error.set({fields:o})):e.call("createChannel",r,t.selectedUsers.get(),function(e,n){return e?(console.log(e),"name-invalid"===e.error?void t.error.set({invalid:!0}):"duplicate-name"===e.error?void t.error.set({duplicate:!0}):"archived-duplicate-name"===e.error?void t.error.set({archivedduplicate:!0}):toastr.error(e.reason)):(SideNav.closeFlex(function(){return t.clearForm()}),FlowRouter.go("channel",{name:r}))})}}),o.createChannelFlex.onCreated(function(){var e;return e=this,e.selectedUsers=new ReactiveVar([]),e.selectedUserNames={},e.error=new ReactiveVar([]),e.roomName=new ReactiveVar(""),e.clearForm=function(){return e.error.set([]),e.roomName.set(""),e.selectedUsers.set([]),e.find("#channel-name").value="",e.find("#channel-members").value=""}})}.call(this),function(){g="object"==typeof g?g:{};var n=g;o.directMessages.helpers({rooms:function(){var n,t,o,r;return n={t:{$in:["d"]},f:{$ne:!0},open:!0},(null!=(t=e.user())&&null!=(o=t.settings)&&null!=(r=o.preferences)?r.unreadRoomsMode:void 0)&&(n.alert={$ne:!0}),ChatSubscription.find(n,{sort:{t:1,name:1}})},isActive:function(){return null!=ChatSubscription.findOne({t:{$in:["d"]},f:{$ne:!0},open:!0,rid:Session.get("openedRoom")},{fields:{_id:1}})?"active":void 0}}),o.directMessages.events({"click .add-room":function(e,n){return SideNav.setFlex("directMessagesFlex"),SideNav.openFlex()},"click .more-direct-messages":function(){return SideNav.setFlex("listDirectMessagesFlex"),SideNav.openFlex()}})}.call(this),function(){g="object"==typeof g?g:{};var n=g;o.directMessagesFlex.helpers({error:function(){return o.instance().error.get()},autocompleteSettings:function(){return{limit:10,rules:[{collection:"UserAndRoom",subscription:"userAutocomplete",field:"username",template:o.userSearch,noMatchTemplate:o.userSearchEmpty,matchAll:!0,filter:{exceptions:[e.user().username]},selector:function(e){return{username:e}},sort:"username"}]}}}),o.directMessagesFlex.events({"autocompleteselect #who":function(e,n,t){return n.selectedUser.set(t.username),e.currentTarget.focus()},"click .cancel-direct-message":function(e,n){return SideNav.closeFlex(),n.clearForm()},"click header":function(e,n){return SideNav.closeFlex(),n.clearForm()},"mouseenter header":function(){return SideNav.overArrow()},"mouseleave header":function(){return SideNav.leaveArrow()},'keydown input[type="text"]':function(e,n){return o.instance().error.set([]),13===e.keyCode?n.$(".save-direct-message").click():void 0},"click .save-direct-message":function(n,t){var r,u;return(r=SideNav.validate())?o.instance().error.set(r):(u=t.selectedUser.get(),null!=u?e.call("createDirectMessage",u,function(e,n){return e?toastr.error(e.reason):(SideNav.closeFlex(),t.clearForm(),FlowRouter.go("direct",{username:u}))}):void 0)}}),o.directMessagesFlex.onCreated(function(){var e;return e=this,e.selectedUser=new ReactiveVar,e.error=new ReactiveVar([]),e.clearForm=function(){return e.error.set([]),e.selectedUser.set(null),e.find("#who").value=""}})}.call(this),function(){g="object"==typeof g?g:{};var n=g;o.listChannelsFlex.helpers({channel:function(){var e;return null!=(e=o.instance().channelsList)?e.get():void 0},hasMore:function(){return o.instance().hasMore.get()},sortChannelsSelected:function(e){return o.instance().sortChannels.get()===e},sortSubscriptionsSelected:function(e){return o.instance().sortSubscriptions.get()===e},showSelected:function(e){return o.instance().show.get()===e},member:function(){return!!u.models.Subscriptions.findOne({name:this.name,open:!0})},hidden:function(){return!!u.models.Subscriptions.findOne({name:this.name,open:!1})}}),o.listChannelsFlex.events({"click header":function(){return SideNav.closeFlex()},"click .channel-link":function(){return SideNav.closeFlex()},"click footer .create":function(){return u.authz.hasAtLeastOnePermission("create-c")?SideNav.setFlex("createChannelFlex"):void 0},"mouseenter header":function(){return SideNav.overArrow()},"mouseleave header":function(){return SideNav.leaveArrow()},"scroll .content":r.throttle(function(e,n){return n.hasMore.get()&&e.target.scrollTop>=e.target.scrollHeight-e.target.clientHeight?n.limit.set(n.limit.get()+50):void 0},200),"keyup #channel-search":r.debounce(function(e,n){return n.nameFilter.set($(e.currentTarget).val())},300),"change #sort-channels":function(e,n){return n.sortChannels.set($(e.currentTarget).val())},"change #sort-subscriptions":function(e,n){return n.sortSubscriptions.set($(e.currentTarget).val())},"change #show":function(e,n){var t;return t=$(e.currentTarget).val(),"joined"===t?(n.$("#sort-channels").hide(),n.$("#sort-subscriptions").show()):(n.$("#sort-channels").show(),n.$("#sort-subscriptions").hide()),n.show.set(t)}}),o.listChannelsFlex.onCreated(function(){return this.channelsList=new ReactiveVar([]),this.hasMore=new ReactiveVar(!0),this.limit=new ReactiveVar(50),this.nameFilter=new ReactiveVar(""),this.sortChannels=new ReactiveVar("name"),this.sortSubscriptions=new ReactiveVar("name"),this.show=new ReactiveVar("all"),this.autorun(function(n){return function(){var t;if("joined"!==n.show.get())return e.call("channelsList",n.nameFilter.get(),n.limit.get(),n.sortChannels.get(),function(e,t){return t&&(n.hasMore.set(!0),n.channelsList.set(t.channels),t.channels.length<n.limit.get())?n.hasMore.set(!1):void 0});if(n.hasMore.set(!0),t={fields:{name:1}},r.isNumber(n.limit.get())&&(t.limit=n.limit.get()),r.trim(n.sortSubscriptions.get()))switch(n.sortSubscriptions.get()){case"name":t.sort={name:1};break;case"ls":t.sort={ls:-1}}return n.channelsList.set(u.models.Subscriptions.find({name:new RegExp(s.trim(s.escapeRegExp(n.nameFilter.get())),"i"),t:"c"},t).fetch()),n.channelsList.get().length<n.limit.get()?n.hasMore.set(!1):void 0}}(this))})}.call(this),function(){o.listDirectMessagesFlex.helpers({rooms:function(){return o.instance().roomsList.get()},sortSelected:function(e){return o.instance().sort.get()===e},hasMore:function(){return o.instance().hasMore.get()},userStatus:function(){return"status-"+(Session.get("user_"+this.name+"_status")||"offline")},hidden:function(){return!!u.models.Subscriptions.findOne({name:this.name,open:!1})}}),o.listDirectMessagesFlex.events({"click header":function(){SideNav.closeFlex()},"click .channel-link":function(){SideNav.closeFlex()},"click footer .create":function(){SideNav.setFlex("privateGroupsFlex")},"mouseenter header":function(){SideNav.overArrow()},"mouseleave header":function(){SideNav.leaveArrow()},"keyup #channel-search":r.debounce(function(e,n){n.nameFilter.set($(e.currentTarget).val())},300),"scroll .content":r.throttle(function(e,n){n.hasMore.get()&&e.target.scrollTop>=e.target.scrollHeight-e.target.clientHeight&&n.limit.set(n.limit.get()+50)},200),"change #sort":function(e,n){n.sort.set($(e.currentTarget).val())}}),o.listDirectMessagesFlex.onCreated(function(){var e=this;this.limit=new ReactiveVar(50),this.sort=new ReactiveVar("name"),this.hasMore=new ReactiveVar(!0),this.nameFilter=new ReactiveVar(""),this.roomsList=new ReactiveVar([]),this.autorun(function(){e.hasMore.set(!0);var n={fields:{name:1}};if(r.isNumber(e.limit.get())&&(n.limit=e.limit.get()),s.trim(e.sort.get()))switch(e.sort.get()){case"name":n.sort={name:1};break;case"ls":n.sort={ls:-1}}var t={t:"d"};s.trim(e.nameFilter.get())&&(t.name=new RegExp(s.trim(s.escapeRegExp(e.nameFilter.get())),"i")),e.roomsList.set(u.models.Subscriptions.find(t,n).fetch()),e.roomsList.get().length<e.limit.get()&&e.hasMore.set(!1)})})}.call(this),function(){g="object"==typeof g?g:{};var e=g;o.listPrivateGroupsFlex.helpers({groups:function(){return o.instance().groups.get()},hasMore:function(){return o.instance().hasMore.get()},sortSelected:function(e){return o.instance().sort.get()===e},hidden:function(){return!!u.models.Subscriptions.findOne({name:this.name,open:!1})}}),o.listPrivateGroupsFlex.events({"click header":function(){return SideNav.closeFlex()},"click .channel-link":function(){return SideNav.closeFlex()},"click footer .create":function(){return SideNav.setFlex("privateGroupsFlex")},"mouseenter header":function(){return SideNav.overArrow()},"mouseleave header":function(){return SideNav.leaveArrow()},"scroll .content":r.throttle(function(e,n){return n.hasMore.get()&&e.target.scrollTop>=e.target.scrollHeight-e.target.clientHeight?n.limit.set(n.limit.get()+50):void 0},200),"keyup #channel-search":r.debounce(function(e,n){return n.nameFilter.set($(e.currentTarget).val())},300),"change #sort":function(e,n){return n.sort.set($(e.currentTarget).val())}}),o.listPrivateGroupsFlex.onCreated(function(){return this.groups=new ReactiveVar([]),this.hasMore=new ReactiveVar(!0),this.limit=new ReactiveVar(50),this.nameFilter=new ReactiveVar(""),this.sort=new ReactiveVar("name"),this.autorun(function(e){return function(){var n,t;if(e.hasMore.set(!0),n={fields:{name:1}},r.isNumber(e.limit.get())&&(n.limit=e.limit.get()),r.trim(e.sort.get()))switch(e.sort.get()){case"name":n.sort={name:1};break;case"ls":n.sort={ls:-1}}return t={t:{$in:["p"]},f:{$ne:!0},archived:{$ne:!0}},e.groups.set(u.models.Subscriptions.find({name:new RegExp(s.trim(s.escapeRegExp(e.nameFilter.get())),"i"),t:"p",archived:{$ne:!0}},n).fetch()),e.groups.get().length<e.limit.get()?e.hasMore.set(!1):void 0}}(this))})}.call(this),function(){g="object"==typeof g?g:{};var n=g;o.privateGroups.helpers({rooms:function(){var n,t,o,r;return n={t:{$in:["p"]},f:{$ne:!0},open:!0},(null!=(t=e.user())&&null!=(o=t.settings)&&null!=(r=o.preferences)?r.unreadRoomsMode:void 0)&&(n.alert={$ne:!0}),ChatSubscription.find(n,{sort:{t:1,name:1}})},total:function(){return ChatSubscription.find({t:{$in:["p"]},f:{$ne:!0}}).count()},totalOpen:function(){return ChatSubscription.find({t:{$in:["p"]},f:{$ne:!0},open:!0}).count()},isActive:function(){return null!=ChatSubscription.findOne({t:{$in:["p"]},f:{$ne:!0},open:!0,rid:Session.get("openedRoom")},{fields:{_id:1}})?"active":void 0}}),o.privateGroups.events({"click .add-room":function(e,n){return u.authz.hasAtLeastOnePermission("create-p")?(SideNav.setFlex("privateGroupsFlex"),SideNav.openFlex()):e.preventDefault()},"click .more-groups":function(){return SideNav.setFlex("listPrivateGroupsFlex"),SideNav.openFlex()}})}.call(this),function(){g="object"==typeof g?g:{};var n=g;o.privateGroupsFlex.helpers({selectedUsers:function(){return o.instance().selectedUsers.get()},name:function(){return o.instance().selectedUserNames[this.valueOf()]},groupName:function(){return o.instance().groupName.get()},error:function(){return o.instance().error.get()},autocompleteSettings:function(){return{limit:10,rules:[{collection:"UserAndRoom",subscription:"userAutocomplete",field:"username",template:o.userSearch,noMatchTemplate:o.userSearchEmpty,matchAll:!0,filter:{exceptions:[e.user().username].concat(o.instance().selectedUsers.get())},selector:function(e){return{username:e}},sort:"username"}]}}}),o.privateGroupsFlex.events({"autocompleteselect #pvt-group-members":function(e,n,t){return n.selectedUsers.set(n.selectedUsers.get().concat(t.username)),n.selectedUserNames[t.username]=t.name,e.currentTarget.value="",e.currentTarget.focus()},"click .remove-room-member":function(e,n){var t,u;return t=this,u=o.instance().selectedUsers.get(),u=r.reject(o.instance().selectedUsers.get(),function(e){return e===t.valueOf()}),o.instance().selectedUsers.set(u),$("#pvt-group-members").focus()},"click .cancel-pvt-group":function(e,n){return SideNav.closeFlex(function(){return n.clearForm()})},"click header":function(e,n){return SideNav.closeFlex(function(){return n.clearForm()})},"mouseenter header":function(){return SideNav.overArrow()},"mouseleave header":function(){return SideNav.leaveArrow()},'keydown input[type="text"]':function(e,n){return o.instance().error.set([])},"keyup #pvt-group-name":function(e,n){return 13===e.keyCode?n.$("#pvt-group-members").focus():void 0},"keydown #pvt-group-members":function(e,n){return""===$(e.currentTarget).val()&&13===e.keyCode?n.$(".save-pvt-group").click():void 0},"click .save-pvt-group":function(n,t){var r,u;return r=SideNav.validate(),u=t.find("#pvt-group-name").value.toLowerCase().trim(),t.groupName.set(u),r?o.instance().error.set({fields:r}):e.call("createPrivateGroup",u,t.selectedUsers.get(),function(e,n){return e?"name-invalid"===e.error?void t.error.set({invalid:!0}):"duplicate-name"===e.error?void t.error.set({duplicate:!0}):"archived-duplicate-name"===e.error?void t.error.set({archivedduplicate:!0}):toastr.error(e.reason):(SideNav.closeFlex(),t.clearForm(),FlowRouter.go("group",{name:u}))})}}),o.privateGroupsFlex.onCreated(function(){var e;return e=this,e.selectedUsers=new ReactiveVar([]),e.selectedUserNames={},e.error=new ReactiveVar([]),e.groupName=new ReactiveVar(""),e.clearForm=function(){return e.error.set([]),e.groupName.set(""),e.selectedUsers.set([]),e.find("#pvt-group-name").value="",e.find("#pvt-group-members").value=""}})}.call(this),function(){g="object"==typeof g?g:{};var n=g;o.sideNav.helpers({flexTemplate:function(){return SideNav.getFlex().template},flexData:function(){return SideNav.getFlex().data},footer:function(){return u.settings.get("Layout_Sidenav_Footer")},showStarredRooms:function(){var e,n;return e=!u.settings.get("Disable_Favorite_Rooms"),n=ChatSubscription.findOne({f:!0,open:!0}),e&&n?!0:void 0},roomType:function(){return u.roomTypes.getTypes()},canShowRoomType:function(){return u.roomTypes.checkCondition(this)},templateName:function(){return this.template}}),o.sideNav.events({"click .close-flex":function(){return SideNav.closeFlex()},"click .arrow":function(){return SideNav.toggleCurrent()},"mouseenter .header":function(){return SideNav.overArrow()},"mouseleave .header":function(){return SideNav.leaveArrow()},"scroll .rooms-list":function(){return menu.updateUnreadBars()}}),o.sideNav.onRendered(function(){return SideNav.init(),menu.init(),e.defer(function(){return menu.updateUnreadBars()})})}.call(this),function(){g="object"==typeof g?g:{};var n=g;o.starredRooms.helpers({rooms:function(){var n,t,o,r;return n={f:!0,open:!0},(null!=(t=e.user())&&null!=(o=t.settings)&&null!=(r=o.preferences)?r.unreadRoomsMode:void 0)&&(n.alert={$ne:!0}),ChatSubscription.find(n,{sort:{t:1,name:1}})},total:function(){return ChatSubscription.find({f:!0}).count()},isActive:function(){return null!=ChatSubscription.findOne({f:!0,rid:Session.get("openedRoom")},{fields:{_id:1}})?"active":void 0}})}.call(this),function(){g="object"==typeof g?g:{};var n=g;o.unreadRooms.helpers({hasUnread:function(){var n,t,r;return(null!=(n=e.user())&&null!=(t=n.settings)&&null!=(r=t.preferences)?r.unreadRoomsMode:void 0)&&o.instance().unreadRooms.count()>0?"has-unread":void 0},rooms:function(){return o.instance().unreadRooms}}),o.unreadRooms.onCreated(function(){return this.autorun(function(e){return function(){var n;return n={alert:!0,open:!0},e.unreadRooms=ChatSubscription.find(n,{sort:{t:1,name:1}})}}(this))})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:ui-sidenav"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package["rocketchat:lib"].RocketChat,n=Package.templating.Template,o=Package["tap:i18n"].TAPi18next,i=Package["tap:i18n"].TAPi18n,r=Package.blaze.Blaze,a=Package.blaze.UI,s=Package.blaze.Handlebars,c=Package.spacebars.Spacebars,l=Package.htmljs.HTML,d,u;(function(){window.RTCPeerConnection=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection,window.RTCSessionDescription=window.RTCSessionDescription||window.mozRTCSessionDescription||window.webkitRTCSessionDescription,window.RTCIceCandidate=window.RTCIceCandidate||window.mozRTCIceCandidate||window.webkitRTCIceCandidate,window.RTCSessionDescription=window.RTCSessionDescription||window.mozRTCSessionDescription||window.webkitRTCSessionDescription,window.AudioContext=window.AudioContext||window.mozAudioContext||window.webkitAudioContext,navigator.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia||navigator.webkitGetUserMedia}).call(this),function(){d="object"==typeof d?d:{};var n=d,o,r,a;a=function(){},r=function(){function e(e){this.webrtcInstance=e,this.callbacks={},t.Notifications.onRoom(this.webrtcInstance.room,"webrtc",function(e){return function(t,n){var o,i,r,a,s,c;switch(e.log("WebRTCTransportClass - onRoom",t,n),t){case"status":if((null!=(a=e.callbacks.onRemoteStatus)?a.length:void 0)>0){for(s=e.callbacks.onRemoteStatus,c=[],i=0,r=s.length;r>i;i++)o=s[i],c.push(o(n));return c}}}}(this))}return e.prototype.debug=!1,e.prototype.log=function(){return this.debug===!0?console.log.apply(console,arguments):void 0},e.prototype.onUserStream=function(e,t){var n,o,i,r,a,s,c,l,d,u,h,m,p,f,g,C,b,v,w,R,S;if(t.room===this.webrtcInstance.room)switch(this.log("WebRTCTransportClass - onUser",e,t),e){case"call":if((null!=(u=this.callbacks.onRemoteCall)?u.length:void 0)>0){for(h=this.callbacks.onRemoteCall,v=[],o=0,s=h.length;s>o;o++)n=h[o],v.push(n(t));return v}break;case"join":if((null!=(m=this.callbacks.onRemoteJoin)?m.length:void 0)>0){for(p=this.callbacks.onRemoteJoin,w=[],i=0,c=p.length;c>i;i++)n=p[i],w.push(n(t));return w}break;case"candidate":if((null!=(f=this.callbacks.onRemoteCandidate)?f.length:void 0)>0){for(g=this.callbacks.onRemoteCandidate,R=[],r=0,l=g.length;l>r;r++)n=g[r],R.push(n(t));return R}break;case"description":if((null!=(C=this.callbacks.onRemoteDescription)?C.length:void 0)>0){for(b=this.callbacks.onRemoteDescription,S=[],a=0,d=b.length;d>a;a++)n=b[a],S.push(n(t));return S}}},e.prototype.startCall=function(e){return this.log("WebRTCTransportClass - startCall",this.webrtcInstance.room,this.webrtcInstance.selfId),t.Notifications.notifyUsersOfRoom(this.webrtcInstance.room,"webrtc","call",{from:this.webrtcInstance.selfId,room:this.webrtcInstance.room,media:e.media,monitor:e.monitor})},e.prototype.joinCall=function(e){return this.log("WebRTCTransportClass - joinCall",this.webrtcInstance.room,this.webrtcInstance.selfId),e.monitor===!0?t.Notifications.notifyUser(e.to,"webrtc","join",{from:this.webrtcInstance.selfId,room:this.webrtcInstance.room,media:e.media,monitor:e.monitor}):t.Notifications.notifyUsersOfRoom(this.webrtcInstance.room,"webrtc","join",{from:this.webrtcInstance.selfId,room:this.webrtcInstance.room,media:e.media,monitor:e.monitor})},e.prototype.sendCandidate=function(e){return e.from=this.webrtcInstance.selfId,e.room=this.webrtcInstance.room,this.log("WebRTCTransportClass - sendCandidate",e),t.Notifications.notifyUser(e.to,"webrtc","candidate",e)},e.prototype.sendDescription=function(e){return e.from=this.webrtcInstance.selfId,e.room=this.webrtcInstance.room,this.log("WebRTCTransportClass - sendDescription",e),t.Notifications.notifyUser(e.to,"webrtc","description",e)},e.prototype.sendStatus=function(e){return this.log("WebRTCTransportClass - sendStatus",e,this.webrtcInstance.room),e.from=this.webrtcInstance.selfId,t.Notifications.notifyRoom(this.webrtcInstance.room,"webrtc","status",e)},e.prototype.onRemoteCall=function(e){var t;return null==(t=this.callbacks).onRemoteCall&&(t.onRemoteCall=[]),this.callbacks.onRemoteCall.push(e)},e.prototype.onRemoteJoin=function(e){var t;return null==(t=this.callbacks).onRemoteJoin&&(t.onRemoteJoin=[]),this.callbacks.onRemoteJoin.push(e)},e.prototype.onRemoteCandidate=function(e){var t;return null==(t=this.callbacks).onRemoteCandidate&&(t.onRemoteCandidate=[]),this.callbacks.onRemoteCandidate.push(e)},e.prototype.onRemoteDescription=function(e){var t;return null==(t=this.callbacks).onRemoteDescription&&(t.onRemoteDescription=[]),this.callbacks.onRemoteDescription.push(e)},e.prototype.onRemoteStatus=function(e){var t;return null==(t=this.callbacks).onRemoteStatus&&(t.onRemoteStatus=[]),this.callbacks.onRemoteStatus.push(e)},e}(),o=function(){function n(n,o){var i,r,a,s,c,l;if(this.selfId=n,this.room=o,this.config.iceServers=[],l=t.settings.get("WebRTC_Servers"),""!==(null!=l?l.trim():void 0))for(l=l.replace(/\s/g,""),l=l.split(","),i=0,r=l.length;r>i;i++)s=l[i],s=s.split("@"),c={urls:s.pop()},1===s.length&&(s=s[0].split(":"),c.username=decodeURIComponent(s[0]),c.credential=decodeURIComponent(s[1])),this.config.iceServers.push(c);this.peerConnections={},this.remoteItems=new ReactiveVar([]),this.remoteItemsById=new ReactiveVar({}),this.callInProgress=new ReactiveVar(!1),this.audioEnabled=new ReactiveVar(!0),this.videoEnabled=new ReactiveVar(!0),this.overlayEnabled=new ReactiveVar(!1),this.screenShareEnabled=new ReactiveVar(!1),this.localUrl=new ReactiveVar,this.active=!1,this.remoteMonitoring=!1,this.monitor=!1,this.autoAccept=!1,this.navigator=void 0,navigator.userAgent.toLocaleLowerCase().indexOf("chrome")>-1?this.navigator="chrome":navigator.userAgent.toLocaleLowerCase().indexOf("firefox")>-1?this.navigator="firefox":navigator.userAgent.toLocaleLowerCase().indexOf("safari")>-1&&(this.navigator="safari"),this.screenShareAvailable="chrome"===(a=this.navigator)||"firefox"===a,this.media={video:!0,audio:!0},this.transport=new this.transportClass(this),this.transport.onRemoteCall(this.onRemoteCall.bind(this)),this.transport.onRemoteJoin(this.onRemoteJoin.bind(this)),this.transport.onRemoteCandidate(this.onRemoteCandidate.bind(this)),this.transport.onRemoteDescription(this.onRemoteDescription.bind(this)),this.transport.onRemoteStatus(this.onRemoteStatus.bind(this)),e.setInterval(this.checkPeerConnections.bind(this),1e3)}return n.prototype.config={iceServers:[]},n.prototype.debug=!1,n.prototype.transportClass=r,n.prototype.log=function(){return this.debug===!0?console.log.apply(console,arguments):void 0},n.prototype.onError=function(){return console.error.apply(console,arguments)},n.prototype.checkPeerConnections=function(){var e,t,n,o,i;n=this.peerConnections,i=[];for(e in n)t=n[e],i.push("connected"!==(o=t.iceConnectionState)&&"completed"!==o&&t.createdAt+5e3<Date.now()?this.stopPeerConnection(e):void 0);return i},n.prototype.updateRemoteItems=function(){var e,t,n,o,i,r,a,s,c,l;o=[],i={},s=this.peerConnections;for(t in s)for(a=s[t],c=a.getRemoteStreams(),e=0,r=c.length;r>e;e++){switch(l=c[e],n={id:t,url:URL.createObjectURL(l),state:a.iceConnectionState},a.iceConnectionState){case"checking":n.stateText="Connecting...";break;case"connected":case"completed":n.stateText="Connected",n.connected=!0;break;case"disconnected":n.stateText="Disconnected";break;case"failed":n.stateText="Failed";break;case"closed":n.stateText="Closed"}o.push(n),i[t]=n}return this.remoteItems.set(o),this.remoteItemsById.set(i)},n.prototype.resetCallInProgress=function(){return this.callInProgress.set(!1)},n.prototype.broadcastStatus=function(){var e,t,n,o;if(this.active===!0&&this.monitor!==!0&&this.remoteMonitoring!==!0){o=[],n=this.peerConnections;for(e in n)t=n[e],o.push({id:e,media:t.remoteMedia});return this.transport.sendStatus({media:this.media,remoteConnections:o})}},n.prototype.onRemoteStatus=function(t){var n,o,i,r,a;if(this.callInProgress.set(!0),e.clearTimeout(this.callInProgressTimeout),this.callInProgressTimeout=e.setTimeout(this.resetCallInProgress.bind(this),2e3),this.active===!0){for(r=[{id:t.from,media:t.media}].concat(t.remoteConnections),a=[],n=0,o=r.length;o>n;n++)i=r[n],i.id!==this.selfId&&null==this.peerConnections[i.id]?(this.log("reconnecting with",i.id),a.push(this.onRemoteJoin({from:i.id,media:i.media}))):a.push(void 0);return a}},n.prototype.getPeerConnection=function(t){var n,o,i,r,a;if(null!=this.peerConnections[t])return this.peerConnections[t];for(a=new RTCPeerConnection(this.config),a.createdAt=Date.now(),a.remoteMedia={},this.peerConnections[t]=a,o=["icecandidate","addstream","removestream","iceconnectionstatechange","datachannel","identityresult","idpassertionerror","idpvalidationerror","negotiationneeded","peeridentity","signalingstatechange"],i=0,r=o.length;r>i;i++)n=o[i],a.addEventListener(n,function(e){return function(n){return e.log(t,n.type,n)}}(this));return a.addEventListener("icecandidate",function(e){return function(n){return null!=n.candidate?e.transport.sendCandidate({to:t,candidate:{candidate:n.candidate.candidate,sdpMLineIndex:n.candidate.sdpMLineIndex,sdpMid:n.candidate.sdpMid}}):void 0}}(this)),a.addEventListener("addstream",function(e){return function(t){return e.updateRemoteItems()}}(this)),a.addEventListener("removestream",function(e){return function(t){return e.updateRemoteItems()}}(this)),a.addEventListener("iceconnectionstatechange",function(n){return function(o){var i;return"disconnected"!==(i=a.iceConnectionState)&&"closed"!==i||a!==n.peerConnections[t]||(n.stopPeerConnection(t),e.setTimeout(function(){return 0===Object.keys(n.peerConnections).length?n.stop():void 0},3e3)),n.updateRemoteItems()}}(this)),a},n.prototype._getUserMedia=function(e,t,n){var o;return o=function(e){var n,o,i,r;return"undefined"!=typeof AudioContext&&null!==AudioContext&&e.getAudioTracks().length>0&&(n=new AudioContext,i=n.createMediaStreamSource(e),r=n.createGain(),i.connect(r),o=n.createMediaStreamDestination(),r.connect(o),r.gain.value=.6,e.removeTrack(e.getAudioTracks()[0]),e.addTrack(o.stream.getAudioTracks()[0]),e.volume=r),t(e)},navigator.getUserMedia(e,o,n)},n.prototype.getUserMedia=function(e,t,n){var o,r,a;return null==n&&(n=this.onError),e.desktop!==!0?void this._getUserMedia(e,t,n):this.screenShareAvailable!==!0?void console.log("Screen share is not avaliable"):(a=function(o){return function(r){var a,s;return-1===document.cookie.indexOf("rocketchatscreenshare=chrome")&&null==window.rocketchatscreenshare?(s=function(){return swal({type:"warning",title:i.__("Refresh_your_page_after_install_to_enable_screen_sharing")})},swal({type:"warning",title:i.__("Screen_Share"),text:i.__("You_need_install_an_extension_to_allow_screen_sharing"),html:!0,showCancelButton:!0,confirmButtonText:i.__("Install_Extension"),cancelButtonText:i.__("Cancel")},function(e){if(e){if("chrome"===o.navigator)return chrome.webstore.install(void 0,s,function(){return window.open("https://chrome.google.com/webstore/detail/rocketchat-screen-share/nocfbnnmjnndkbipkabodnheejiegccf"),s()});if("firefox"===o.navigator)return window.open("https://addons.mozilla.org/en-GB/firefox/addon/rocketchat-screen-share/"),s()}}),n(!1)):(a=function(e){return null!=r&&e.addTrack(r.getAudioTracks()[0]),t(e)},"firefox"===o.navigator?(e={audio:e.audio,video:{mozMediaSource:"window",mediaSource:"window"}},o._getUserMedia(e,a,n)):ChromeScreenShare.getSourceId(function(t){return console.log(t),e={audio:!1,video:{mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxWidth:1280,maxHeight:720}}},o._getUserMedia(e,a,n)}))}}(this),"firefox"===this.navigator||null==e.audio||e.audio===!1?a():(r=function(e){return function(e){return a(e)}}(this),o=function(e){return function(){return a()}}(this),this._getUserMedia({audio:e.audio},r,o)))},n.prototype.getLocalUserMedia=function(e){var t,n;return this.log("getLocalUserMedia",arguments),null!=this.localStream?e(null,this.localStream):(n=function(t){return function(n){var o,i,r;t.localStream=n,t.localUrl.set(URL.createObjectURL(n)),t.videoEnabled.set(t.media.video===!0),t.audioEnabled.set(t.media.audio===!0),r=t.peerConnections;for(o in r)i=r[o],i.addStream(n);return e(null,t.localStream)}}(this),t=function(t){return function(n){return e(!1),t.onError(n)}}(this),this.getUserMedia(this.media,n,t))},n.prototype.stopPeerConnection=function(e){var t;return t=this.peerConnections[e],null!=t?(delete this.peerConnections[e],t.close(),this.updateRemoteItems()):void 0},n.prototype.stopAllPeerConnections=function(){var e,t,n,o;n=this.peerConnections,o=[];for(e in n)t=n[e],o.push(this.stopPeerConnection(e));return o},n.prototype.setAudioEnabled=function(e){return null==e&&(e=!0),null!=this.localStream?e===!0&&this.media.audio!==!0?(delete this.localStream,this.media.audio=!0,this.getLocalUserMedia(function(e){return function(){return e.stopAllPeerConnections(),e.joinCall()}}(this))):(this.localStream.getAudioTracks().forEach(function(t){return t.enabled=e}),this.audioEnabled.set(e)):void 0},n.prototype.disableAudio=function(){return this.setAudioEnabled(!1)},n.prototype.enableAudio=function(){return this.setAudioEnabled(!0)},n.prototype.setVideoEnabled=function(e){return null==e&&(e=!0),null!=this.localStream?e===!0&&this.media.video!==!0?(delete this.localStream,this.media.video=!0,this.getLocalUserMedia(function(e){return function(){return e.stopAllPeerConnections(),e.joinCall()}}(this))):(this.localStream.getVideoTracks().forEach(function(t){return t.enabled=e}),this.videoEnabled.set(e)):void 0},n.prototype.disableScreenShare=function(){return this.setScreenShareEnabled(!1)},n.prototype.enableScreenShare=function(){return this.setScreenShareEnabled(!0)},n.prototype.setScreenShareEnabled=function(e){return null==e&&(e=!0),null!=this.localStream?(this.media.desktop=e,delete this.localStream,this.getLocalUserMedia(function(t){return function(n){return null==n?(t.screenShareEnabled.set(e),t.stopAllPeerConnections(),t.joinCall()):void 0}}(this))):void 0},n.prototype.disableVideo=function(){return this.setVideoEnabled(!1)},n.prototype.enableVideo=function(){return this.setVideoEnabled(!0)},n.prototype.stop=function(){return this.active=!1,this.monitor=!1,this.remoteMonitoring=!1,null!=this.localStream&&"undefined"!=typeof this.localStream&&this.localStream.getTracks().forEach(function(e){return e.stop()}),this.localUrl.set(void 0),delete this.localStream,this.stopAllPeerConnections()},n.prototype.startCall=function(e){return null==e&&(e={}),this.log("startCall",arguments),this.media=e,this.getLocalUserMedia(function(e){return function(){return e.active=!0,e.transport.startCall({media:e.media})}}(this))},n.prototype.startCallAsMonitor=function(e){return null==e&&(e={}),this.log("startCallAsMonitor",arguments),this.media=e,this.active=!0,this.monitor=!0,this.transport.startCall({media:this.media,monitor:!0})},n.prototype.onRemoteCall=function(t){var n,o,i,r,a,s,c;return this.autoAccept===!0?(FlowRouter.goToRoomById(t.room),void e.defer(function(e){return function(){return e.joinCall({to:t.from,monitor:t.monitor,media:t.media})}}(this))):(n=null!=(i=e.users.findOne(t.from))?i.username:void 0,s=ChatSubscription.findOne({rid:t.room}),t.monitor===!0?(o="eye",c="Monitor call from "+n):"d"===(null!=s?s.t:void 0)?(null!=(r=t.media)?r.video:void 0)?(o="videocam",c="Direct video call from "+n):(o="phone",c="Direct audio call from "+n):(null!=(a=t.media)?a.video:void 0)?(o="videocam",c="Group video call from "+s.name):(o="phone",c="Group audio call from "+s.name),swal({title:"<i class='icon-"+o+" alert-icon'></i>"+c,text:"Do you want to accept?",html:!0,showCancelButton:!0,confirmButtonText:"Yes",cancelButtonText:"No"},function(n){return function(o){return o?(FlowRouter.goToRoomById(t.room),e.defer(function(){return n.joinCall({to:t.from,monitor:t.monitor,media:t.media})})):n.stop()}}(this)))},n.prototype.joinCall=function(e){var t,n;return null==e&&(e={}),null!=(null!=(t=e.media)?t.audio:void 0)&&(this.media.audio=e.media.audio),null!=(null!=(n=e.media)?n.video:void 0)&&(this.media.video=e.media.video),e.media=this.media,this.log("joinCall",arguments),this.getLocalUserMedia(function(t){return function(){return t.remoteMonitoring=e.monitor,t.active=!0,t.transport.joinCall(e)}}(this))},n.prototype.onRemoteJoin=function(e){var t,n;if(this.active===!0&&(this.log("onRemoteJoin",arguments),n=this.getPeerConnection(e.from),"checking"!==n.signalingState&&(this.stopPeerConnection(e.from),n=this.getPeerConnection(e.from)),"new"===n.iceConnectionState))return n.remoteMedia=e.media,this.localStream&&n.addStream(this.localStream),t=function(t){return function(o){var i;return i=function(){return t.transport.sendDescription({to:e.from,type:"offer",ts:n.createdAt,media:t.media,description:{sdp:o.sdp,type:o.type}})},n.setLocalDescription(new RTCSessionDescription(o),i,t.onError)}}(this),e.monitor===!0?n.createOffer(t,this.onError,{mandatory:{OfferToReceiveAudio:e.media.audio,OfferToReceiveVideo:e.media.video}}):n.createOffer(t,this.onError)},n.prototype.onRemoteOffer=function(e){var t,n,o;if(this.active===!0&&(this.log("onRemoteOffer",arguments),n=this.getPeerConnection(e.from),("have-local-offer"===(o=n.signalingState)||"stable"===o)&&n.createdAt<e.ts&&(this.stopPeerConnection(e.from),n=this.getPeerConnection(e.from)),"new"===n.iceConnectionState)){n.setRemoteDescription(new RTCSessionDescription(e.description));try{this.localStream&&n.addStream(this.localStream)}catch(i){}return t=function(t){return function(o){var i;return i=function(){return t.transport.sendDescription({to:e.from,type:"answer",ts:n.createdAt,description:{sdp:o.sdp,type:o.type}})},n.setLocalDescription(new RTCSessionDescription(o),i,t.onError)}}(this),n.createAnswer(t,this.onError)}},n.prototype.onRemoteCandidate=function(e){var t,n;if(this.active===!0&&e.to===this.selfId)return this.log("onRemoteCandidate",arguments),t=this.getPeerConnection(e.from),"closed"!==(n=t.iceConnectionState)&&"failed"!==n&&"disconnected"!==n&&"completed"!==n?t.addIceCandidate(new RTCIceCandidate(e.candidate)):void 0},n.prototype.onRemoteDescription=function(e){var t;if(this.active===!0&&e.to===this.selfId)return this.log("onRemoteDescription",arguments),t=this.getPeerConnection(e.from),"offer"===e.type?(t.remoteMedia=e.media,this.onRemoteOffer({from:e.from,ts:e.ts,description:e.description})):t.setRemoteDescription(new RTCSessionDescription(e.description))},n}(),u=new(function(){function n(){this.instancesByRoomId={}}return n.prototype.getInstanceByRoomId=function(n){var i,r;if(r=ChatSubscription.findOne({rid:n})){switch(i=!1,r.t){case"d":i=t.settings.get("WebRTC_Enable_Direct");break;case"p":i=t.settings.get("WebRTC_Enable_Private");break;case"c":i=t.settings.get("WebRTC_Enable_Channel")}if(i!==!1)return null==this.instancesByRoomId[n]&&(this.instancesByRoomId[n]=new o(e.userId(),n)),this.instancesByRoomId[n]}},n}()),e.startup(function(){return t.Notifications.onUser("webrtc",function(e){return function(e,t){var n;if(null!=t.room)return n=u.getInstanceByRoomId(t.room),n.transport.onUserStream(e,t)}}(this))})}.call(this),function(){d="object"==typeof d?d:{};var e=d;this.ChromeScreenShare={screenCallback:void 0,getSourceId:function(e){if(null==e)throw'"callback" parameter is mandatory.';return ChromeScreenShare.screenCallback=e,window.postMessage("get-sourceId","*")}},window.addEventListener("message",function(e){if(e.origin===window.location.origin){if("PermissionDeniedError"===e.data){if(null!=ChromeScreenShare.screenCallback)return ChromeScreenShare.screenCallback("PermissionDeniedError");throw new Error("PermissionDeniedError")}return null!=e.data.sourceId&&"function"==typeof ChromeScreenShare.screenCallback?ChromeScreenShare.screenCallback(e.data.sourceId):void 0}})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:webrtc"]={WebRTC:u}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,r=Package["rocketchat:lib"].RocketChat,t=Package["rocketchat:custom-oauth"].CustomOAuth,a=Package.templating.Template,s=Package["tap:i18n"].TAPi18next,n=Package["tap:i18n"].TAPi18n,o=Package.blaze.Blaze,c=Package.blaze.UI,i=Package.blaze.Handlebars,g=Package.spacebars.Spacebars,u=Package.htmljs.HTML,d;(function(){d="object"==typeof d?d:{};var a=d,s,n;n={serverURL:"",identityPath:"/oauth/me",addAutopublishFields:{forLoggedInUser:["services.wordpress"],forOtherUsers:["services.wordpress.user_login"]}},s=new t("wordpress",n),e.startup(e.isServer?function(){return r.models.Settings.find({_id:"API_Wordpress_URL"}).observe({added:function(e){return n.serverURL=r.settings.get("API_Wordpress_URL"),s.configure(n)},changed:function(e){return n.serverURL=r.settings.get("API_Wordpress_URL"),s.configure(n)}})}:function(){return Tracker.autorun(function(){return r.settings.get("API_Wordpress_URL")?(n.serverURL=r.settings.get("API_Wordpress_URL"),s.configure(n)):void 0})})}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:wordpress"]={}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,e,n;(function(){(function(){e="object"==typeof e?e:{};var a=e,r=[].slice;new(n=function(){function e(){var t,e,n,a;return n=arguments[0],a=arguments[1],e=arguments[2],t=4<=arguments.length?r.call(arguments,3):[],this.fn=n,this.time=null!=a?a:500,this.flushCount=null!=e?e:0,this.args=t,this}var n,a;return a=null,n=0,e.prototype.run=function(){var e,u;return e=1<=arguments.length?r.call(arguments,0):[],u=this,Tracker.nonreactive(function(){var r;if(e.length>0)throw new Error("[DelayedTask] Tasks can't be called with arguments");return null!=a&&t.clearTimeout(a),n++,r=function(){return n=0,u.fn.apply(u,u.args)},u.flushCount>0&&n>=u.flushCount?r():a=t.setTimeout(r,u.time)})},e}())}).call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["konecty:delayed-task"]={DelayedTask:n}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;(function(){}).call(this),"undefined"==typeof Package&&(Package={}),Package["konecty:mongo-counter"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;"undefined"==typeof Package&&(Package={}),Package["konecty:multiple-instances-status"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n;(function(){(function(){n="object"==typeof n?n:{};var a=n,r,t,i;null!=Package.templating&&(i=Package.templating.Template,r=Package.blaze.Blaze,t=Package.htmljs.HTML,r.toHTMLWithDataNonReactive=function(n,a){var t,i,o,c,u;if(o=function(n){return n instanceof e.Collection.Cursor?n._depend({added:!0,removed:!0,changed:!0}):void 0},o(a),a instanceof Spacebars.kw&&Object.keys(a.hash).length>0){u=a.hash;for(i in u)c=u[i],o(c);a=a.hash}return t="",Tracker.nonreactive(function(){return t=r.toHTMLWithData(n,a)}),t},r.registerHelper("nrrargs",function(){var e;return e={},e._arguments=arguments,e}),r.renderNonReactive=function(e,n){var a,o;return o=this.parentView.dataVar.get()._arguments,e=o[0],n=o[1],a=void 0,Tracker.nonreactive(function(){return a=new r.View("nrr",function(){return t.Raw(r.toHTMLWithDataNonReactive(i[e],n))}),a.onViewReady(function(){var r;return null!=(r=i[e].onViewReady)?r.call(a,n):void 0}),a._onViewRendered(function(){var r;return null!=(r=i[e].onViewRendered)?r.call(a,n):void 0})}),a},r.registerHelper("nrr",r.Template("nrr",r.renderNonReactive)))}).call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["konecty:nrr"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n,t;(function(){(function(){n=new e.Collection("usersSessions")}).call(this),function(){var n,s;t={awayTime:6e4,awayOnWindowBlur:!1,onSetUserStatus:function(){},startTimer:function(){t.stopTimer(),n=setTimeout(t.setAway,t.awayTime)},stopTimer:function(){clearTimeout(n)},restartTimer:function(){t.startTimer()},setAway:function(){"away"!==s&&(s="away",e.call("UserPresence:away")),t.stopTimer()},setOnline:function(){"online"!==s&&(s="online",e.call("UserPresence:online")),t.startTimer()},start:function(){Deps.autorun(function(){var n=e.user();s=n&&n.statusConnection,t.startTimer()}),e.methods({"UserPresence:setDefaultStatus":function(n){e.users.update({_id:e.userId()},{$set:{status:n,statusDefault:n}})},"UserPresence:online":function(){var n=e.user();n&&"online"===n.statusDefault&&e.users.update({_id:e.userId()},{$set:{status:"online"}}),t.onSetUserStatus(n,"online")},"UserPresence:away":function(){var n=e.user();t.onSetUserStatus(n,"away")}}),document.addEventListener("mousemove",t.setOnline),document.addEventListener("mousedown",t.setOnline),document.addEventListener("touchend",t.setOnline),document.addEventListener("keydown",t.setOnline),window.addEventListener("focus",t.setOnline),t.awayOnWindowBlur===!0&&window.addEventListener("blur",t.setAway)}}}.call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["konecty:user-presence"]={UserPresence:t}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.underscore._,n;(function(){(function(){function e(){var e=this,t={};e.emit=function n(e){var n=Array.prototype.slice.call(arguments,1);if(t[e])for(var i=0;i<t[e].length;i++){var o=t[e][i];o.apply(this,n)}},e.on=function i(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function o(t,n){e.on(t,function i(){n.apply(this,arguments),e.removeListener(t,i)})},e.removeListener=function a(e,n){if(t[e]){var i=t[e].indexOf(n);t[e].splice(i,1)}},e.removeAllListeners=function r(e){t[e]=void 0}}n=e}).call(this),function(){e.Stream=function i(t,o){n.call(this);var a=this,r="stream-"+t,s=new e.Collection(r),c,u,f=!1,l=[];a._emit=a.emit,s.find({}).observe({added:function(e){if("subscriptionId"==e.type)u=e._id,f=!0,l.forEach(function(e){a.emit.apply(a,e)}),l=[];else{var t={};t.subscriptionId=e.subscriptionId,t.userId=e.userId,a._emit.apply(t,e.args)}}}),c=e.subscribe(r,o),a.emit=function p(){f?e.call(r,u,arguments):l.push(arguments)},a.close=function m(){c.stop()}},t.extend(e.Stream.prototype,n.prototype)}.call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["arunoda:streams"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.jquery.$,n=Package.jquery.jQuery;(function(){(function(){!function(e){e(["jquery"],function(e){return function(){function t(e,t,n){return g({type:T.error,iconClass:m().iconClasses.error,message:e,optionsOverride:n,title:t})}function n(t,n){return t||(t=m()),v=e("#"+t.containerId),v.length?v:(n&&(v=l(t)),v)}function i(e,t,n){return g({type:T.info,iconClass:m().iconClasses.info,message:e,optionsOverride:n,title:t})}function o(e){w=e}function s(e,t,n){return g({type:T.success,iconClass:m().iconClasses.success,message:e,optionsOverride:n,title:t})}function a(e,t,n){return g({type:T.warning,iconClass:m().iconClasses.warning,message:e,optionsOverride:n,title:t})}function r(e,t){var i=m();v||n(i),d(e,i,t)||u(i)}function c(t){var i=m();return v||n(i),t&&0===e(":focus",t).length?void h(t):void(v.children().length&&v.remove())}function u(t){for(var n=v.children(),i=n.length-1;i>=0;i--)d(e(n[i]),t)}function d(t,n,i){var o=i&&i.force?i.force:!1;return t&&(o||0===e(":focus",t).length)?(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){h(t)}}),!0):!1}function l(t){return v=e("<div/>").attr("id",t.containerId).addClass(t.positionClass).attr("aria-live","polite").attr("role","alert"),v.appendTo(e(t.target)),v}function p(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">×</button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1}}function f(e){w&&w(e)}function g(t){function i(e){return null==e&&(e=""),new String(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function o(){r(),u(),d(),l(),p(),c()}function s(){H.hover(b,T),!y.onclick&&y.tapToDismiss&&H.click(w),y.closeButton&&B&&B.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&e.cancelBubble!==!0&&(e.cancelBubble=!0),w(!0)}),y.onclick&&H.click(function(e){y.onclick(e),w()})}function a(){H.hide(),H[y.showMethod]({duration:y.showDuration,easing:y.showEasing,complete:y.onShown}),y.timeOut>0&&(E=setTimeout(w,y.timeOut),P.maxHideTime=parseFloat(y.timeOut),P.hideEta=(new Date).getTime()+P.maxHideTime,y.progressBar&&(P.intervalId=setInterval(D,10)))}function r(){t.iconClass&&H.addClass(y.toastClass).addClass(x)}function c(){y.newestOnTop?v.prepend(H):v.append(H)}function u(){t.title&&(k.append(y.escapeHtml?i(t.title):t.title).addClass(y.titleClass),H.append(k))}function d(){t.message&&(M.append(y.escapeHtml?i(t.message):t.message).addClass(y.messageClass),H.append(M))}function l(){y.closeButton&&(B.addClass("toast-close-button").attr("role","button"),H.prepend(B))}function p(){y.progressBar&&(I.addClass("toast-progress"),H.prepend(I))}function g(e,t){if(e.preventDuplicates){if(t.message===O)return!0;O=t.message}return!1}function w(t){var n=t&&y.closeMethod!==!1?y.closeMethod:y.hideMethod,i=t&&y.closeDuration!==!1?y.closeDuration:y.hideDuration,o=t&&y.closeEasing!==!1?y.closeEasing:y.hideEasing;return!e(":focus",H).length||t?(clearTimeout(P.intervalId),H[n]({duration:i,easing:o,complete:function(){h(H),y.onHidden&&"hidden"!==j.state&&y.onHidden(),j.state="hidden",j.endTime=new Date,f(j)}})):void 0}function T(){(y.timeOut>0||y.extendedTimeOut>0)&&(E=setTimeout(w,y.extendedTimeOut),P.maxHideTime=parseFloat(y.extendedTimeOut),P.hideEta=(new Date).getTime()+P.maxHideTime)}function b(){clearTimeout(E),P.hideEta=0,H.stop(!0,!0)[y.showMethod]({duration:y.showDuration,easing:y.showEasing})}function D(){var e=(P.hideEta-(new Date).getTime())/P.maxHideTime*100;I.width(e+"%")}var y=m(),x=t.iconClass||y.iconClass;if("undefined"!=typeof t.optionsOverride&&(y=e.extend(y,t.optionsOverride),x=t.optionsOverride.iconClass||x),!g(y,t)){C++,v=n(y,!0);var E=null,H=e("<div/>"),k=e("<div/>"),M=e("<div/>"),I=e("<div/>"),B=e(y.closeHtml),P={intervalId:null,hideEta:null,maxHideTime:null},j={toastId:C,state:"visible",startTime:new Date,options:y,map:t};return o(),a(),s(),f(j),y.debug&&console&&console.log(j),H}}function m(){return e.extend({},p(),b.options)}function h(e){v||(v=n()),e.is(":visible")||(e.remove(),e=null,0===v.children().length&&(v.remove(),O=void 0))}var v,w,C=0,T={error:"error",info:"info",success:"success",warning:"warning"},b={clear:r,remove:c,error:t,getContainer:n,info:i,options:{},subscribe:o,success:s,version:"2.1.2",warning:a},O;return b}()})}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)})}).call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["chrismbeckett:toastr"]={}}();
|
||
|
||
!function(){var n=Package.meteor.Meteor,t=Package.check.check,e=Package.check.Match,r=Package.underscore._,i=Package.mongo.Mongo,o=Package["ddp-client"].DDP,c;(function(){(function(){"undefined"==typeof c&&(c={},c.MethodInvocation=function(n){var t=this;this.isSimulation=n.isSimulation,this._unblock=n.unblock||function(){},this._calledUnblock=!1,this.userId=n.userId,this._setUserId=n.setUserId||function(){},this.connection=n.connection,this.randomSeed=n.randomSeed,this.randomStream=null},r.extend(c.MethodInvocation.prototype,{unblock:function(){var n=this;n._calledUnblock=!0,n._unblock()},setUserId:function(n){var t=this;if(t._calledUnblock)throw new Error("Can't call setUserId in a method after calling unblock");t.userId=n}}))}).call(this),function(){var t=new n.EnvironmentVariable;n.isRestricted=function(){return!!t.get()},n.runRestricted=function(e){return n.isRestricted()?e():t.withValue(!0,e)},n.runUnrestricted=function(e){return n.isRestricted()?t.withValue(!1,e):void e()},n.runAsUser=function(n,t){var e=o._CurrentInvocation.get(),r=new c.MethodInvocation(e?e:{connection:null});return r.setUserId(n),o._CurrentInvocation.withValue(r,function(){return t.apply(r,[n])})},n.runAsRestrictedUser=function(t,e){return n.runRestricted(function(){return n.runAsUser(t,e)})};var e=new n.EnvironmentVariable;n.isAdmin=function(){return!!e.get()},n.runAsAdmin=function(t){return n.isAdmin()?t():e.withValue(!1,t)},n.runOutsideInvocation=function(t){n.isServer&&o._CurrentInvocation.get()?o._CurrentInvocation.withValue(null,t):t()}}.call(this),function(){r.each(["insert","update","remove"],function(t){var e=i.Collection.prototype[t];i.Collection.prototype[t]=function(){var i=this,o=r.toArray(arguments);if(n.isRestricted()&&i._restricted){var c=null;if("insert"!==t||r.has(o[0],"_id")||(c=i._makeNewID()),0===i._validators[t].allow.length)throw new n.Error(403,"Access denied. No allow validators set on restricted collection for method '"+t+"'.");var a="_validated"+t.charAt(0).toUpperCase()+t.slice(1);return o.unshift(n.userId()),"insert"===t?(o.push(c),i[a].apply(i,o),c||o[0]._id):i[a].apply(i,o)}return e.apply(i,o)}})}.call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["dispatch:run-as-user"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.tracker.Tracker,t=Package.tracker.Deps,a=Package.templating.Template,c=Package.underscore._,s=Package["reactive-var"].ReactiveVar,o=Package["tap:i18n"].TAPi18next,r=Package["tap:i18n"].TAPi18n,u=Package.blaze.Blaze,l=Package.blaze.UI,i=Package.blaze.Handlebars,p=Package.spacebars.Spacebars,g=Package.htmljs.HTML,f,k;(function(){a.__checkName("status"),a.status=new a("Template.status",function(){var e=this;return u._TemplateWith(function(){return{template:p.call(e.lookup("template")),data:p.call(e.lookup("helpers"))}},function(){return p.include(function(){return p.call(a.__dynamic)})})})}).call(this),function(){a.__checkName("status_bootstrap3"),a.status_bootstrap3=new a("Template.status_bootstrap3",function(){var e=this;return u.Unless(function(){return p.call(e.lookup("connected"))},function(){return["\n ",g.DIV({"class":function(){return["alert ",p.mustache(e.lookup("option"),"classes")," text-center"]},role:"alert"},"\n ",g.STRONG("\n ",g.SPAN({"class":"glyphicon glyphicon-warning-sign"}),"\n ",u.View("lookup:message",function(){return p.mustache(e.lookup("message"))}),"\n "),"\n ",u.View("lookup:extraMessage",function(){return p.mustache(e.lookup("extraMessage"))}),"\n\n ",u.If(function(){return p.call(e.lookup("showReconnect"))},function(){return["\n ",g.A({href:"#","class":"alert-link"},u.View("lookup:reconnectLabel",function(){return p.mustache(e.lookup("reconnectLabel"))})),"\n "]}),"\n "),"\n "]})})}.call(this),function(){a.__checkName("status_semantic_ui"),a.status_semantic_ui=new a("Template.status_semantic_ui",function(){var e=this;return u.Unless(function(){return p.call(e.lookup("connected"))},function(){return["\n ",g.DIV({"class":function(){return["ui ",p.mustache(e.lookup("option"),"classes")," message"]}},"\n ",g.DIV({"class":"content"},"\n ",g.DIV({"class":"header"},"\n ",u.View("lookup:message",function(){return p.mustache(e.lookup("message"))})," ",g.CharRef({html:" ",str:" "}),"\n ",u.View("lookup:extraMessage",function(){return p.mustache(e.lookup("extraMessage"))}),"\n ",u.If(function(){return p.call(e.lookup("showReconnect"))},function(){return["\n ",g.A({href:"#","class":"alert-link"},u.View("lookup:reconnectLabel",function(){return p.mustache(e.lookup("reconnectLabel"))})),"\n "]}),"\n "),"\n "),"\n "),"\n "]})})}.call(this),function(){a.__checkName("status_materialize"),a.status_materialize=new a("Template.status_materialize",function(){var e=this;return u.Unless(function(){return p.call(e.lookup("connected"))},function(){return["\n ",g.DIV({"class":function(){return["center card-panel orange lighten-5 ",p.mustache(e.lookup("classes"))]}},"\n ",g.SPAN({"class":"lime-text text-darken-4"},"\n ",g.STRONG("\n ",g.I({"class":"small mdi-alert-warning"}),"\n "),"\n ",u.View("lookup:message",function(){return p.mustache(e.lookup("message"))}),"\n "),"\n ",u.View("lookup:extraMessage",function(){return p.mustache(e.lookup("extraMessage"))}),"\n ",u.If(function(){return p.call(e.lookup("showReconnect"))},function(){return["\n ",g.A({href:"#","class":"alert-link"},u.View("lookup:reconnectLabel",function(){return p.mustache(e.lookup("reconnectLabel"))})),"\n "]}),"\n "),"\n "]})})}.call(this),function(){a.__checkName("status_uikit"),a.status_uikit=new a("Template.status_uikit",function(){var e=this;return u.Unless(function(){return p.call(e.lookup("connected"))},function(){return["\n ",g.DIV({"class":function(){return["uk-alert uk-alert-",p.mustache(e.lookup("option"),"classes")," uk-text-center"]}},"\n ",g.STRONG("\n ",u.View("lookup:message",function(){return p.mustache(e.lookup("message"))}),"\n "),"\n ",u.View("lookup:extraMessage",function(){return p.mustache(e.lookup("extraMessage"))}),"\n\n ",u.If(function(){return p.call(e.lookup("showReconnect"))},function(){return["\n ",g.A({href:"#","class":"alert-link"},u.View("lookup:reconnectLabel",function(){return p.mustache(e.lookup("reconnectLabel"))})),"\n "]}),"\n "),"\n "]})})}.call(this),function(){a.__checkName("status_foundation"),a.status_foundation=new a("Template.status_foundation",function(){var e=this;return u.Unless(function(){return p.call(e.lookup("connected"))},function(){return["\n ",g.DIV({"data-alert":"","class":function(){return["alert-box ",p.mustache(e.lookup("option"),"classes")," text-center"]}},"\n ",g.STRONG("\n ",u.View("lookup:message",function(){return p.mustache(e.lookup("message"))}),"\n "),"\n ",u.View("lookup:extraMessage",function(){return p.mustache(e.lookup("extraMessage"))}),"\n\n ",u.If(function(){return p.call(e.lookup("showReconnect"))},function(){return["\n ",g.A({href:"#","class":"alert-link label secondary"},u.View("lookup:reconnectLabel",function(){return p.mustache(e.lookup("reconnectLabel"))})),"\n "]}),"\n "),"\n "]})})}.call(this),function(){var e=Package.underscore._,n="project",t="project";"project"!=n&&(t=r.packages[n].namespace),r.languages_names.cn=["cn","cn"],r._enable({helper_name:"_",supported_languages:null,i18n_files_route:"/tap-i18n",preloaded_langs:[],cdn_path:null}),r.languages_names.en=["English","English"]}.call(this),function(){var e=Package.underscore._,n="project",t="project";"project"!=n&&(t=r.packages[n].namespace),r.languages_names.cs=["Czech","čeština"]}.call(this),function(){var e=Package.underscore._,n="project",t="project";"project"!=n&&(t=r.packages[n].namespace),r.languages_names.da=["Danish","Dansk"]}.call(this),function(){var e=Package.underscore._,n="project",t="project";"project"!=n&&(t=r.packages[n].namespace),r.languages_names.de=["German","Deutsch"]}.call(this),function(){var e=Package.underscore._,n="project",t="project";"project"!=n&&(t=r.packages[n].namespace),f={},f[t]={meteor_status_connected:"Connected",meteor_status_connecting:"Connecting...",meteor_status_failed:"The server connection failed",meteor_status_waiting:"Waiting for server connection,",meteor_status_offline:"Offline mode.",meteor_status_reconnect_in:"trying again in one second...",meteor_status_reconnect_in_plural:"trying again in __count__ seconds...",meteor_status_try_now_waiting:"Try now",meteor_status_try_now_offline:"Connect again"},r._loadLangFileObject("en",f)}.call(this),function(){var e=Package.underscore._,n="project",t="project";"project"!=n&&(t=r.packages[n].namespace),r.languages_names.es=["Spanish (Spain)","Español"]}.call(this),function(){var e=Package.underscore._,n="project",t="project";"project"!=n&&(t=r.packages[n].namespace),r.languages_names.fr=["French (France)","Français"]}.call(this),function(){var e=Package.underscore._,n="project",t="project";"project"!=n&&(t=r.packages[n].namespace),r.languages_names.id=["Indonesian","Bahasa Indonesia"]}.call(this),function(){var e=Package.underscore._,n="project",t="project";"project"!=n&&(t=r.packages[n].namespace),r.languages_names.it=["Italian","Italiano"]}.call(this),function(){var e=Package.underscore._,n="project",t="project";"project"!=n&&(t=r.packages[n].namespace),r.languages_names.ms=["Malay","Bahasa Melayu"]}.call(this),function(){var e=Package.underscore._,n="project",t="project";"project"!=n&&(t=r.packages[n].namespace),r.languages_names.nl=["Dutch","Nederlands"]}.call(this),function(){var e=Package.underscore._,n="project",t="project";"project"!=n&&(t=r.packages[n].namespace),r.languages_names.pt=["Portuguese (Portugal)","Português"]}.call(this),function(){var e=Package.underscore._,n="project",t="project";"project"!=n&&(t=r.packages[n].namespace),r.languages_names.ru=["Russian","Русский"]}.call(this),function(){var e=Package.underscore._,n="project",t="project";"project"!=n&&(t=r.packages[n].namespace),r.languages_names.tr=["Turkish","Türkçe"]}.call(this),function(){var e=Package.underscore._,n="project",t="project";"project"!=n&&(t=r.packages[n].namespace),r.languages_names.vi=["Vietnamese","Tiếng Việt"]}.call(this),function(){var e=Package.underscore._,n="project",t="project";"project"!=n&&(t=r.packages[n].namespace),r.languages_names.zh=["Chinese","中文"]}.call(this),function(){var e=new s("bootstrap3"),n=new s({}),t={classes:{bootstrap3:"alert-warning",semantic_ui:"negative",uikit:"warning",foundation:"warning"}};k={template:function(){return e.get()},option:function(a){return n.get()[a]||t[a][e.get()]},setTemplate:function(t,a){e.set(t),a&&n.set(a)}}}.call(this),function(){var n=new s(0),t=null,o=function(){clearInterval(t),t=null},u=function(){"waiting"===e.status().status?t=t||setInterval(function(){var t=e.status().retryTime-(new Date).getTime(),a=t>0&&Math.round(t/1e3)||0;n.set(a)},500):o()},l={connected:function(){return e.status().connected},message:function(){return r.__("meteor_status",{context:e.status().status})},extraMessage:function(){return"waiting"===e.status().status?r.__("meteor_status_reconnect_in",{count:n.get()}):void 0},showReconnect:function(){return c.contains(["waiting","offline"],e.status().status)},reconnectLabel:function(){return r.__("meteor_status_try_now",{context:e.status().status})},option:function(e){return k.option(e)}};a.status.onDestroyed(o),a.status.onCreated(function(){this.autorun(u)}),a.status.helpers({template:function(){return"status_"+k.template()},helpers:function(){return l}}),a.status.events({"click a.alert-link":function(n){n.preventDefault(),e.reconnect()}})}.call(this),"undefined"==typeof Package&&(Package={}),Package["francocatena:status"]={Status:k}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,o=Package.check.check,n=Package.check.Match,t=Package.underscore._,r=Package.mongo.Mongo,a=Package["jalik:ufs"].UploadFS,c;(function(){if(e.isServer)var o=Npm.require("gridfs-stream");a.store.GridFS=function(r){if(r=t.extend({chunkSize:261120,collectionName:"uploadfs"},r),!n.test(r.chunkSize,Number))throw new TypeError("chunkSize is not a number");if(!n.test(r.collectionName,String))throw new TypeError("collectionName is not a string");var i=new a.Store(r);if(e.isServer){var l=Package.mongo.MongoInternals.NpmModule,u=Package.mongo.MongoInternals.defaultRemoteCollectionDriver().mongo.db;c=new o(u,l),i["delete"]=function(e,o){return"function"!=typeof o&&(o=function(e){e&&console.error(e)}),c.remove({filename:e,root:r.collectionName},o)},i.getReadStream=function(e){return c.createReadStream({_id:e,root:r.collectionName})},i.getWriteStream=function(e,o){var n=c.createWriteStream({_id:e,filename:e,mode:"w",chunkSize:r.chunkSize,root:r.collectionName,content_type:o.type});return n.on("close",function(){n.emit("finish")}),n}}return i}}).call(this),"undefined"==typeof Package&&(Package={}),Package["jalik:ufs-gridfs"]={}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,n;(function(){(function(){n=n||function(t,n){var i={},e=i.lib={},r=e.Base=function(){function t(){}return{extend:function(n){t.prototype=this;var i=new t;return n&&i.mixIn(n),i.hasOwnProperty("init")||(i.init=function(){i.$super.init.apply(this,arguments)}),i.init.prototype=i,i.$super=this,i},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=e.WordArray=r.extend({init:function(t,i){t=this.words=t||[],i!=n?this.sigBytes=i:this.sigBytes=4*t.length},toString:function(t){return(t||a).stringify(this)},concat:function(t){var n=this.words,i=t.words,e=this.sigBytes,r=t.sigBytes;if(this.clamp(),e%4)for(var s=0;r>s;s++){var o=i[s>>>2]>>>24-s%4*8&255;n[e+s>>>2]|=o<<24-(e+s)%4*8}else if(i.length>65535)for(var s=0;r>s;s+=4)n[e+s>>>2]=i[s>>>2];else n.push.apply(n,i);return this.sigBytes+=r,this},clamp:function(){var n=this.words,i=this.sigBytes;n[i>>>2]&=4294967295<<32-i%4*8,n.length=t.ceil(i/4)},clone:function(){var t=r.clone.call(this);return t.words=this.words.slice(0),t},random:function(n){for(var i=[],e=0;n>e;e+=4)i.push(4294967296*t.random()|0);return new s.init(i,n)}}),o=i.enc={},a=o.Hex={stringify:function(t){for(var n=t.words,i=t.sigBytes,e=[],r=0;i>r;r++){var s=n[r>>>2]>>>24-r%4*8&255;e.push((s>>>4).toString(16)),e.push((15&s).toString(16))}return e.join("")},parse:function(t){for(var n=t.length,i=[],e=0;n>e;e+=2)i[e>>>3]|=parseInt(t.substr(e,2),16)<<24-e%8*4;return new s.init(i,n/2)}},c=o.Latin1={stringify:function(t){for(var n=t.words,i=t.sigBytes,e=[],r=0;i>r;r++){var s=n[r>>>2]>>>24-r%4*8&255;e.push(String.fromCharCode(s))}return e.join("")},parse:function(t){for(var n=t.length,i=[],e=0;n>e;e++)i[e>>>2]|=(255&t.charCodeAt(e))<<24-e%4*8;return new s.init(i,n)}},u=o.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(n){throw new Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},f=e.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=u.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(n){var i=this._data,e=i.words,r=i.sigBytes,o=this.blockSize,a=4*o,c=r/a;c=n?t.ceil(c):t.max((0|c)-this._minBufferSize,0);var u=c*o,f=t.min(4*u,r);if(u){for(var h=0;u>h;h+=o)this._doProcessBlock(e,h);var p=e.splice(0,u);i.sigBytes-=f}return new s.init(p,f)},clone:function(){var t=r.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),h=e.Hasher=f.extend({cfg:r.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var n=this._doFinalize();return n},blockSize:16,_createHelper:function(t){return function(n,i){return new t.init(i).finalize(n)}},_createHmacHelper:function(t){return function(n,i){return new p.HMAC.init(t,i).finalize(n)}}}),p=i.algo={};return i}(Math)}).call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["jparker:crypto-core"]={CryptoJS:n}}();
|
||
|
||
!function(){var r=Package.meteor.Meteor,a=Package["jparker:crypto-core"].CryptoJS;(function(){(function(){!function(r){function t(r,a,t,e,n,o,c){var i=r+(a&t|~a&e)+n+c;return(i<<o|i>>>32-o)+a}function e(r,a,t,e,n,o,c){var i=r+(a&e|t&~e)+n+c;return(i<<o|i>>>32-o)+a}function n(r,a,t,e,n,o,c){var i=r+(a^t^e)+n+c;return(i<<o|i>>>32-o)+a}function o(r,a,t,e,n,o,c){var i=r+(t^(a|~e))+n+c;return(i<<o|i>>>32-o)+a}var c=a,i=c.lib,s=i.WordArray,h=i.Hasher,u=c.algo,f=[];!function(){for(var a=0;64>a;a++)f[a]=4294967296*r.abs(r.sin(a+1))|0}();var l=u.MD5=h.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(r,a){for(var c=0;16>c;c++){var i=a+c,s=r[i];r[i]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}var h=this._hash.words,u=r[a+0],l=r[a+1],v=r[a+2],_=r[a+3],d=r[a+4],g=r[a+5],p=r[a+6],k=r[a+7],y=r[a+8],P=r[a+9],H=r[a+10],M=r[a+11],m=r[a+12],w=r[a+13],B=r[a+14],D=r[a+15],b=h[0],j=h[1],x=h[2],z=h[3];b=t(b,j,x,z,u,7,f[0]),z=t(z,b,j,x,l,12,f[1]),x=t(x,z,b,j,v,17,f[2]),j=t(j,x,z,b,_,22,f[3]),b=t(b,j,x,z,d,7,f[4]),z=t(z,b,j,x,g,12,f[5]),x=t(x,z,b,j,p,17,f[6]),j=t(j,x,z,b,k,22,f[7]),b=t(b,j,x,z,y,7,f[8]),z=t(z,b,j,x,P,12,f[9]),x=t(x,z,b,j,H,17,f[10]),j=t(j,x,z,b,M,22,f[11]),b=t(b,j,x,z,m,7,f[12]),z=t(z,b,j,x,w,12,f[13]),x=t(x,z,b,j,B,17,f[14]),j=t(j,x,z,b,D,22,f[15]),b=e(b,j,x,z,l,5,f[16]),z=e(z,b,j,x,p,9,f[17]),x=e(x,z,b,j,M,14,f[18]),j=e(j,x,z,b,u,20,f[19]),b=e(b,j,x,z,g,5,f[20]),z=e(z,b,j,x,H,9,f[21]),x=e(x,z,b,j,D,14,f[22]),j=e(j,x,z,b,d,20,f[23]),b=e(b,j,x,z,P,5,f[24]),z=e(z,b,j,x,B,9,f[25]),x=e(x,z,b,j,_,14,f[26]),j=e(j,x,z,b,y,20,f[27]),b=e(b,j,x,z,w,5,f[28]),z=e(z,b,j,x,v,9,f[29]),x=e(x,z,b,j,k,14,f[30]),j=e(j,x,z,b,m,20,f[31]),b=n(b,j,x,z,g,4,f[32]),z=n(z,b,j,x,y,11,f[33]),x=n(x,z,b,j,M,16,f[34]),j=n(j,x,z,b,B,23,f[35]),b=n(b,j,x,z,l,4,f[36]),z=n(z,b,j,x,d,11,f[37]),x=n(x,z,b,j,k,16,f[38]),j=n(j,x,z,b,H,23,f[39]),b=n(b,j,x,z,w,4,f[40]),z=n(z,b,j,x,u,11,f[41]),x=n(x,z,b,j,_,16,f[42]),j=n(j,x,z,b,p,23,f[43]),b=n(b,j,x,z,P,4,f[44]),z=n(z,b,j,x,m,11,f[45]),x=n(x,z,b,j,D,16,f[46]),j=n(j,x,z,b,v,23,f[47]),b=o(b,j,x,z,u,6,f[48]),z=o(z,b,j,x,k,10,f[49]),x=o(x,z,b,j,B,15,f[50]),j=o(j,x,z,b,g,21,f[51]),b=o(b,j,x,z,m,6,f[52]),z=o(z,b,j,x,_,10,f[53]),x=o(x,z,b,j,H,15,f[54]),j=o(j,x,z,b,l,21,f[55]),b=o(b,j,x,z,y,6,f[56]),z=o(z,b,j,x,D,10,f[57]),x=o(x,z,b,j,p,15,f[58]),j=o(j,x,z,b,w,21,f[59]),b=o(b,j,x,z,d,6,f[60]),z=o(z,b,j,x,M,10,f[61]),x=o(x,z,b,j,v,15,f[62]),j=o(j,x,z,b,P,21,f[63]),h[0]=h[0]+b|0,h[1]=h[1]+j|0,h[2]=h[2]+x|0,h[3]=h[3]+z|0},_doFinalize:function(){var a=this._data,t=a.words,e=8*this._nDataBytes,n=8*a.sigBytes;t[n>>>5]|=128<<24-n%32;var o=r.floor(e/4294967296),c=e;t[(n+64>>>9<<4)+15]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t[(n+64>>>9<<4)+14]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),a.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,s=i.words,h=0;4>h;h++){var u=s[h];s[h]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return i},clone:function(){var r=h.clone.call(this);return r._hash=this._hash.clone(),r}});c.MD5=h._createHelper(l),c.HmacMD5=h._createHmacHelper(l)}(Math)}).call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["jparker:crypto-md5"]={}}();
|
||
|
||
!function(){var o=Package.meteor.Meteor,a=Package.http.HTTP,e;(function(){(function(){"use strict";e=this.Email||{},e.domainsWithTags={"gmail.com":"+","googlemail.com":"+","google.com":"+","outlook.com":"+","hotmail.com":"+","live.com":"+","fastmail.com":"+","fastmail.fm":"+","yahoo.com.ar":"-","yahoo.com.au":"-","yahoo.at":"-","yahoo.be/fr":"-","yahoo.be/nl":"-","yahoo.com.br":"-","ca.yahoo.com":"-","qc.yahoo.com":"-","yahoo.com.co":"-","yahoo.com.hr":"-","yahoo.cz":"-","yahoo.dk":"-","yahoo.fi":"-","yahoo.fr":"-","yahoo.de":"-","yahoo.gr":"-","yahoo.com.hk":"-","yahoo.hu":"-","yahoo.co.in/yahoo.in":"-","yahoo.co.id":"-","yahoo.ie":"-","yahoo.co.il":"-","yahoo.it":"-","yahoo.co.jp":"-","yahoo.com.my":"-","yahoo.com.mx":"-","yahoo.ae":"-","yahoo.nl":"-","yahoo.co.nz":"-","yahoo.no":"-","yahoo.com.ph":"-","yahoo.pl":"-","yahoo.pt":"-","yahoo.ro":"-","yahoo.ru":"-","yahoo.com.sg":"-","yahoo.co.za":"-","yahoo.es":"-","yahoo.se":"-","yahoo.ch/fr":"-","yahoo.ch/de":"-","yahoo.com.tw":"-","yahoo.co.th":"-","yahoo.com.tr":"-","yahoo.co.uk":"-","yahoo.com":"-","yahoo.com.vn":"-"},e.normalize=function t(c,r,h){r=r||{},r.forceRemoveDots=r.forceRemoveDots||!1,r.forceRemoveTags=r.forceRemoveTags||!1,r.detectProvider=r.detectProvider||!1,c=c.trim().toLowerCase();var i=c.split(/@/),n=i[0],m=i[1];if(r.forceRemoveTags)n=n.replace(/[-+=].*/,"");else{var l=e.domainsWithTags[m];l&&(n=n.split(l)[0])}if((r.forceRemoveDots||/^(gmail|googlemail|google)\.com$/.test(m))&&(n=n.replace(/\./g,"")),"googlemail.com"===m&&(m="gmail.com"),r.detectProvider){var y=function u(o,a){return/aspmx.*google.*\.com\.?$/i.test(o)?a.split("+")[0].replace(/\./g,""):/\.messagingengine\.com\.?$/i.test(o)?a.split("+")[0]:a};if(o.isClient){if("function"!=typeof h)throw new Error("Detecting the provider from the client requires a callback.");return a.get("http://enclout.com/api/v1/dns/show.json",{params:{url:m}},function(o,a){if(o)return h(o);for(var e=a.data.dns_entries,t=0;t<e.length;t++){if(!e[t].Type)return h("Could not find Type field in Enclout API result. Has the format changed?");"MX"===e[t].Type&&(n=y(e[t].RData,n))}return h(null,n+"@"+m)})}var s=o.wrapAsync(Npm.require("dns").resolveMx);if("function"!=typeof h){for(var f=s(m),g=0;g<f.length;g++)n=y(f[g].exchange,n);return n+"@"+m}s(m,function(o,a){if(o)return h(o);for(var e=0;e<a.length;e++)n=y(a[e].exchange,n);return h(null,n+"@"+m)})}return n+"@"+m}}).call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["idorecall:email-normalize"]={Email:e}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,e=Package.underscore._,r=Package["idorecall:email-normalize"].Email,t=Package["jparker:crypto-core"].CryptoJS,n;(function(){(function(){n={cleanString:function(a){return a.trim().toLowerCase()},isHash:function(a){var e=this;return/^[a-f0-9]{32}$/i.test(e.cleanString(a))},hash:function(a){var e=this;return t.MD5(e.cleanString(a)).toString()},imageUrl:function(a,t){var n=this;t=t||{};var i=t.secure?"https://secure.gravatar.com/avatar/":"http://www.gravatar.com/avatar/";if(n.isHash(a))i+=a;else{if(e.isUndefined(t.d)){var c=r.normalize(a);c!==a&&(t.d=i+n.hash(c))}i+=n.hash(a)}delete t.secure;var o=e.map(t,function(a,e){return e+"="+encodeURIComponent(a)}).join("&");return o.length>0&&(i+="?"+o),i}}}).call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["jparker:gravatar"]={Gravatar:n}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.blaze.Blaze,a=Package.blaze.UI,n=Package.blaze.Handlebars,o=Package.templating.Template,r=Package["reactive-dict"].ReactiveDict,c=Package.underscore._,i=Package.jquery.$,u=Package.jquery.jQuery,l=Package.tracker.Tracker,d=Package.tracker.Deps,g=Package.htmljs.HTML,f=Package.spacebars.Spacebars,s;(function(){s={}}).call(this),function(){var a=null,n=null,i=new r,u,l=!1;s.setRoot=function(e){s._root=e},s.render=function d(t,a){a=a||{},e.startup(function(){l?s._render(t,a):e.defer(function(){l=!0,s._render(t,a)})})},s.reset=function g(){var e=n;e&&(e._domrange?t.remove(e):e.onViewReady(function(){t.remove(e)}),n=null,a=null,i=new r)},s._regionsToData=function _(e,t){return t=t||{},c.each(e,function(e,a){i.set(a,e),t[a]=s._buildRegionGetter(a)}),t},s._updateRegions=function k(e){var t=!1;c.each(u,function(t,a){void 0===e[a]&&(i.set(a,void 0),delete u[a])}),c.each(e,function(e,a){u&&void 0===u[a]&&(t=!0,u[a]=s._buildRegionGetter(a)),i.set(a,e)}),n&&t&&n.dataVar.dep.changed()},s._getRootDomNode=function p(){var e=s._root;if(e?"string"==typeof e?e=t._DOMBackend.findBySelector(e,document)[0]:e.jquery&&(e=e[0]):(e=t._DOMBackend.parseHTML('<div id="__blaze-root"></div>')[0],document.body.appendChild(e),s.setRoot(e)),!e)throw new Error("Root element does not exist");return e},s._buildRegionGetter=function m(e){return function(){return i.get(e)}},s._getTemplate=function(e,a){return t._getTemplate?t._getTemplate(e,function(){for(var e=t.getView(a);e&&!e._templateInstance;)e=e.originalParentView||e.parentView;return e&&e._templateInstance||null}):o[e]},s._render=function v(e,o){var r=s._getRootDomNode();a!=e?(s.reset(),u=s._regionsToData(o),n=t._TemplateWith(u,function(){var t=s._getTemplate(e,r);return null===e||t||console.log('BlazeLayout warning: unknown template "'+e+'"'),f.include(t)}),t.render(n,r,null,t.getView(r)),a=e):s._updateRegions(o)}}.call(this),"undefined"==typeof Package&&(Package={}),Package["kadira:blaze-layout"]={BlazeLayout:s}}();
|
||
|
||
!function(){var n=Package.meteor.Meteor,a=Package["accounts-base"].Accounts,t=Package["accounts-base"].AccountsClient,e=Package.http.HTTP,c=Package.tracker.Tracker,o=Package.tracker.Deps;(function(){n.startup(function(){o.autorun(function(){n.userId()||(a._setLoggingIn(!0),e.get("/.sandstorm-credentials",function(t,e){t?(a._setLoggingIn(!1),console.error(t.stack)):e.data?e.data.token?n.loginWithToken(e.data.token,function(){}):a._setLoggingIn(!1):(a._setLoggingIn(!1),console.error("/.sandstorm-credentials is not JSON?"))}))})})}).call(this),"undefined"==typeof Package&&(Package={}),Package["kenton:accounts-sandstorm"]={}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,e;(function(){(function(){var t=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing"],o=!(null==window.mozInnerScreenX),n=function(e,n,i){var r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);var d=r.style,a=window.getComputedStyle?getComputedStyle(e):e.currentStyle;d.whiteSpace="pre-wrap","INPUT"!==e.nodeName&&(d.wordWrap="break-word"),d.position="absolute",d.visibility="hidden",t.forEach(function(t){d[t]=a[t]}),o?(d.width=parseInt(a.width)-2+"px",e.scrollHeight>parseInt(a.height)&&(d.overflowY="scroll")):d.overflow="hidden",r.textContent=e.value.substring(0,n),"INPUT"===e.nodeName&&(r.textContent=r.textContent.replace(/\s/g," "));var l=document.createElement("span");l.textContent=e.value.substring(n)||".",r.appendChild(l);var p={top:l.offsetTop+parseInt(a.borderTopWidth),left:l.offsetLeft+parseInt(a.borderLeftWidth)};return document.body.removeChild(r),p};"undefined"!=typeof Package?e=n:module.exports=n}).call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["dandv:caret-position"]={getCaretCoordinates:e}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,e=Package.blaze.Blaze,n=Package.blaze.UI,o=Package.blaze.Handlebars,i=Package.templating.Template,r=Package.jquery.$,s=Package.jquery.jQuery,l=Package.underscore._,u=Package.mongo.Mongo,c=Package["ddp-client"].DDP,a=Package["dandv:caret-position"].getCaretCoordinates,p=Package.htmljs.HTML,h=Package.spacebars.Spacebars,m,d;(function(){(function(){i.__checkName("inputAutocomplete"),i.inputAutocomplete=new i("Template.inputAutocomplete",function(){var t=this;return[p.INPUT(p.Attrs({type:"text"},function(){return h.attrMustache(t.lookup("attributes"))})),"\n ",h.include(t.lookupTemplate("autocompleteContainer"))]}),i.__checkName("textareaAutocomplete"),i.textareaAutocomplete=new i("Template.textareaAutocomplete",function(){var t=this;return[p.TEXTAREA(p.Attrs(function(){return h.attrMustache(t.lookup("attributes"))},{value:function(){return e._InOuterTemplateScope(t,function(){return h.include(function(){return h.call(t.templateContentBlock)})})}})),"\n ",h.include(t.lookupTemplate("autocompleteContainer"))]}),i.__checkName("_autocompleteContainer"),i._autocompleteContainer=new i("Template._autocompleteContainer",function(){var t=this;return e.If(function(){return h.call(t.lookup("isShowing"))},function(){return["\n ",p.DIV({"class":"-autocomplete-container"},"\n ",e.If(function(){return h.call(t.lookup("isLoaded"))},function(){return["\n ",e.Unless(function(){return h.call(t.lookup("empty"))},function(){return["\n ",p.UL({"class":"-autocomplete-list"},"\n ",e.Each(function(){return h.call(t.lookup("filteredList"))},function(){return["\n ",p.LI({"class":"-autocomplete-item"},"\n ",h.With(function(){return h.call(h.dot(t.lookup(".."),"currentTemplate"))},function(){return["\n ",h.With(function(){return h.call(t.lookup(".."))},function(){return[" \n ",h.include(t.lookupTemplate(".."))," \n "]}),"\n "]}),"\n "),"\n "]}),"\n "),"\n "]},function(){return["\n ",h.include(t.lookupTemplate("noMatchTemplate")),"\n "]}),"\n "]},function(){return["\n ",p.I("loading..."),"\n "]}),"\n "),"\n "]})}),i.__checkName("_noMatch"),i._noMatch=new i("Template._noMatch",function(){var t=this;return p.Raw("(<i>no matches</i>)")})}).call(this),function(){m="object"==typeof m?m:{};var n=m,o,i,s,c,p,h,f,g=function(t,e){return function(){return t.apply(e,arguments)}};o=new u.Collection("autocompleteRecords"),p=function(t){return l.isString(t.collection)},f=function(t){if(null!=t.subscription&&!Match.test(t.collection,String))throw new Error("Collection name must be specified as string for server-side search");return null!=t.callback?console.warn("autocomplete no longer supports callbacks; use event listeners instead."):void 0},h=function(t){return!t.token},c=function(t){return new RegExp(h(t)?"(^)(.*)$":"(^|\\b|\\s)"+t.token+"([\\w.]*)$")},s=function(t,e,n){var o,i,r;return i=l.extend({},t.filter||{}),o={limit:n},e?(t.sort&&t.field&&(r={},r[t.field]=1,o.sort=r),l.isFunction(t.selector)?l.extend(i,t.selector(e)):i[t.field]={$regex:t.matchAll?e:"^"+e,$options:"undefined"==typeof t.options?"i":t.options},[i,o]):[i,o]},i=function(t,e){var n,o,i,r;for(r=e.split("."),o=0,i=r.length;i>o;o++)n=r[o],t=t[n];return t},this.AutoComplete=function(){function n(e){this.onItemClick=g(this.onItemClick,this);var n,o,i,r;for(this.limit=e.limit||5,this.position=e.position||"bottom",this.rules=e.rules,r=this.rules,o=0,i=r.length;i>o;o++)n=r[o],f(n);this.expressions=function(){var t,e,o,i;for(o=this.rules,i=[],t=0,e=o.length;e>t;t++)n=o[t],i.push(c(n));return i}.call(this),this.matched=-1,this.loaded=!0,this.ruleDep=new Deps.Dependency,this.filterDep=new Deps.Dependency,this.loadingDep=new Deps.Dependency,this.sub=null,this.comp=Deps.autorun(function(e){return function(){var o,i,r,l,u,c;return null!=(u=e.sub)&&u.stop(),(n=e.matchedRule())&&null!==(o=e.getFilter())?p(n)?(c=s(n,o,e.limit),r=c[0],i=c[1],e.setLoaded(!1),l=n.subscription||"autocomplete-recordset",e.sub=t.subscribe(l,r,i,n.collection,function(){return e.setLoaded(!0)})):void e.setLoaded(!0):void 0}}(this))}return n.KEYS=[40,38,13,27,9],n.prototype.teardown=function(){return this.comp.stop()},n.prototype.matchedRule=function(){return this.ruleDep.depend(),this.matched>=0?this.rules[this.matched]:null},n.prototype.setMatchedRule=function(t){return this.matched=t,this.ruleDep.changed()},n.prototype.getFilter=function(){return this.filterDep.depend(),this.filter},n.prototype.setFilter=function(t){return this.filter=t,this.filterDep.changed(),this.filter},n.prototype.isLoaded=function(){return this.loadingDep.depend(),this.loaded},n.prototype.setLoaded=function(t){return t!==this.loaded?(this.loaded=t,this.loadingDep.changed()):void 0},n.prototype.onKeyUp=function(){var t,e,n,o,i,r;if(this.$element){for(o=this.element.selectionStart,i=this.getText().substring(0,o),e=0,t=!1,r=[];e<this.expressions.length&&(n=i.match(this.expressions[e]),n||this.matched!==e||(this.setMatchedRule(-1),t=!0),n&&-1===this.matched&&(this.setMatchedRule(e),t=!0),n&&this.filter!==n[2]&&(this.setFilter(n[2]),t=!0),!t);)r.push(e++);return r}},n.prototype.onKeyDown=function(t){if(!(-1===this.matched||this.constructor.KEYS.indexOf(t.keyCode)<0))switch(t.keyCode){case 9:case 13:this.select()&&(t.preventDefault(),t.stopPropagation());break;case 40:t.preventDefault(),this.next();break;case 38:t.preventDefault(),this.prev();break;case 27:this.$element.blur(),this.hideList()}},n.prototype.onFocus=function(){return t.defer(function(t){return function(){return t.onKeyUp()}}(this))},n.prototype.onBlur=function(){return t.setTimeout(function(t){return function(){return t.hideList()}}(this),500)},n.prototype.onItemClick=function(t,e){return this.processSelection(t,this.rules[this.matched])},n.prototype.onItemHover=function(t,e){return this.tmplInst.$(".-autocomplete-item").removeClass("selected"),r(e.target).closest(".-autocomplete-item").addClass("selected")},n.prototype.filteredList=function(){var e,n,i,r,l;return e=this.getFilter(),-1===this.matched?null:(i=this.rules[this.matched],i.token||e?(l=s(i,e,this.limit),r=l[0],n=l[1],t.defer(function(t){return function(){return t.ensureSelection()}}(this)),p(i)?o.find({},n):i.collection.find(r,n)):null)},n.prototype.isShowing=function(){var e,n;return e=this.matchedRule(),n=null!=e&&(e.token||this.getFilter()),n&&t.defer(function(t){return function(){return t.positionContainer(),t.ensureSelection()}}(this)),n},n.prototype.select=function(){var t,n;return n=this.tmplInst.find(".-autocomplete-item.selected"),null==n?!1:(t=e.getData(n))?(this.processSelection(t,this.rules[this.matched]),!0):!1},n.prototype.processSelection=function(t,e){var n;n=i(t,e.field),h(e)?(this.setText(n),this.onBlur()):(this.replace(n,e),this.hideList()),this.$element.trigger("autocompleteselect",t)},n.prototype.replace=function(t){var e,n,o,i,r,s,l;s=this.element.selectionStart,n=this.getText(),l=n.substring(0,s),l=l.replace(this.expressions[this.matched],"$1"+this.rules[this.matched].token+t),i=n.substring(s,n.length),r=i.match(/^\s/)?"":" ",e=l+r+i,this.setText(e),o=l.length+1,this.element.setSelectionRange(o,o)},n.prototype.hideList=function(){return this.setMatchedRule(-1),this.setFilter(null)},n.prototype.getText=function(){return this.$element.val()||this.$element.text()},n.prototype.setText=function(t){return this.$element.is("input,textarea")?this.$element.val(t):this.$element.html(t)},n.prototype.positionContainer=function(){var t,e,n,o;return n=this.$element.position(),o=this.matchedRule(),t=a(this.element,this.element.selectionStart),e=null!=o&&h(o)?{left:n.left,width:this.$element.outerWidth()}:{left:n.left+t.left},"top"===this.position?e.bottom=this.$element.offsetParent().height()-n.top-t.top:e.top=n.top+t.top+parseInt(this.$element.css("font-size")),this.tmplInst.$(".-autocomplete-container").css(e)},n.prototype.ensureSelection=function(){var t;return t=this.tmplInst.$(".-autocomplete-item.selected"),t.length?void 0:this.tmplInst.$(".-autocomplete-item:first-child").addClass("selected")},n.prototype.next=function(){var t,e;return t=this.tmplInst.$(".-autocomplete-item.selected"),t.length?(t.removeClass("selected"),e=t.next(),e.length?e.addClass("selected"):this.tmplInst.$(".-autocomplete-item:first-child").addClass("selected")):void 0},n.prototype.prev=function(){var t,e;return t=this.tmplInst.$(".-autocomplete-item.selected"),t.length?(t.removeClass("selected"),e=t.prev(),e.length?e.addClass("selected"):this.tmplInst.$(".-autocomplete-item:last-child").addClass("selected")):void 0},n.prototype.currentTemplate=function(){return this.rules[this.matched].template},n}(),d={records:o,getRegExp:c,getFindParams:s}}.call(this),function(){m="object"==typeof m?m:{};var t=m,n,o,s;n={keydown:function(t,e){return e.ac.onKeyDown(t)},keyup:function(t,e){return e.ac.onKeyUp(t)},focus:function(t,e){return e.ac.onFocus(t)},blur:function(t,e){return e.ac.onBlur(t)}},i.inputAutocomplete.events(n),i.textareaAutocomplete.events(n),o=function(){return l.omit(this,"settings")},s={attributes:o,autocompleteContainer:new i("AutocompleteContainer",function(){var t;return t=new AutoComplete(e.getData().settings),this.parentView.templateInstance().ac=t,this.onViewReady(function(){return t.element=this.parentView.firstNode(),t.$element=r(t.element)}),e.With(t,function(){return i._autocompleteContainer})})},i.inputAutocomplete.helpers(s),i.textareaAutocomplete.helpers(s),i._autocompleteContainer.rendered=function(){return this.data.tmplInst=this},i._autocompleteContainer.destroyed=function(){return this.data.teardown()},i._autocompleteContainer.events({"click .-autocomplete-item":function(t,e){return e.data.onItemClick(this,t)},"mouseenter .-autocomplete-item":function(t,e){return e.data.onItemHover(this,t)}}),i._autocompleteContainer.helpers({empty:function(){return 0===this.filteredList().count()},noMatchTemplate:function(){return this.matchedRule().noMatchTemplate||i._noMatch}})}.call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["mizzao:autocomplete"]={AutocompleteTest:d}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.check.check,t=Package.check.Match,r=Package.tracker.Tracker,c=Package.tracker.Deps,a=Package.http.HTTP,i,o;(function(){function r(){i.loggingEnabled&&e._debug.apply(this,arguments)}function f(n){if(!o.timeTick[n]){var t=new c.Dependency;e.setInterval(function(){t.changed()},n),o.timeTick[n]=t}return o.timeTick[n]}Date.now=Date.now||function(){return+new Date},i={loggingEnabled:!0};var s=1e3;o={offset:void 0,roundTripTime:void 0,offsetDep:new c.Dependency,timeTick:{},timeCheck:function(e,n,t,r){return Math.abs(n-e-t)<r?!0:!1}},o.timeTick[s]=new c.Dependency;var u=5,d=0,p="/_timesync";e.isCordova&&(p=e.absoluteUrl("_timesync"));var v=function(){var n=Date.now();a.get(p,function(t,c){var a=Date.now();if(t)return r("Error syncing to server time: ",t),void(++d<=u?e.setTimeout(i.resync,1e3):r("Max number of time sync attempts reached. Giving up."));d=0;var f=parseInt(c.content);o.offset=Math.round((f-n+(f-a))/2),o.roundTripTime=a-n,o.offsetDep.changed()})};i.serverTime=function(e,r){return n(r,t.Optional(t.Integer)),i.isSynced()?(e||f(r||s).depend(),(+e||Date.now())+o.offset):void 0},i.serverOffset=function(){return o.offsetDep.depend(),o.offset},i.roundTripTime=function(){return o.offsetDep.depend(),o.roundTripTime},i.isSynced=function(){return o.offsetDep.depend(),void 0!==o.offset};var g=null;i.resync=function(){null!==g&&e.clearInterval(g),v(),g=e.setInterval(v,6e5)};var m=!1;c.autorun(function(){var n=e.status().connected;n&&!m&&i.resync(),m=n});var k=5e3,l=Date.now();e.setInterval(function(){var e=Date.now();o.timeCheck(l,e,s,k)?o.timeTick[s].changed():(r("Clock discrepancy detected. Attempting re-sync."),o.offset=void 0,o.offsetDep.changed(),i.resync()),l=e},s)}).call(this),"undefined"==typeof Package&&(Package={}),Package["mizzao:timesync"]={TimeSync:i,SyncInternals:o}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.tracker.Tracker,n=Package.tracker.Deps,r;(function(){(function(){!function(e){function t(){try{return a in e&&e[a]}catch(t){return!1}}function n(e){return function(){var t=Array.prototype.slice.call(arguments,0);t.unshift(u),d.appendChild(u),u.addBehavior("#default#userData"),u.load(a);var n=e.apply(o,t);return d.removeChild(u),n}}function r(e){return e.replace(/^d/,"___$&").replace(s,"___")}var o={},i=e.document,a="localStorage",c="script",u;if(o.disabled=!1,o.set=function(e,t){},o.get=function(e){},o.remove=function(e){},o.clear=function(){},o.transact=function(e,t,n){var r=o.get(e);null==n&&(n=t,t=null),"undefined"==typeof r&&(r=t||{}),n(r),o.set(e,r)},o.getAll=function(){},o.forEach=function(){},o.serialize=function(e){return JSON.stringify(e)},o.deserialize=function(e){if("string"!=typeof e)return void 0;try{return JSON.parse(e)}catch(t){return e||void 0}},t())u=e[a],o.set=function(e,t){return void 0===t?o.remove(e):(u.setItem(e,o.serialize(t)),t)},o.get=function(e){return o.deserialize(u.getItem(e))},o.remove=function(e){u.removeItem(e)},o.clear=function(){u.clear()},o.getAll=function(){var e={};return o.forEach(function(t,n){e[t]=n}),e},o.forEach=function(e){for(var t=0;t<u.length;t++){var n=u.key(t);e(n,o.get(n))}};else if(i.documentElement.addBehavior){var d,l;try{l=new ActiveXObject("htmlfile"),l.open(),l.write("<"+c+">document.w=window</"+c+'><iframe src="/favicon.ico"></iframe>'),l.close(),d=l.w.frames[0].document,u=d.createElement("div")}catch(f){u=i.createElement("div"),d=i.body}var s=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");o.set=n(function(e,t,n){return t=r(t),void 0===n?o.remove(t):(e.setAttribute(t,o.serialize(n)),e.save(a),n)}),o.get=n(function(e,t){return t=r(t),o.deserialize(e.getAttribute(t))}),o.remove=n(function(e,t){t=r(t),e.removeAttribute(t),e.save(a)}),o.clear=n(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(a);for(var n=0,r;r=t[n];n++)e.removeAttribute(r.name);e.save(a)}),o.getAll=function(e){var t={};return o.forEach(function(e,n){t[e]=n}),t},o.forEach=n(function(e,t){for(var n=e.XMLDocument.documentElement.attributes,r=0,i;i=n[r];++r)t(i.name,o.deserialize(e.getAttribute(i.name)))})}try{var m="__storejs__";o.set(m,m),o.get(m)!=m&&(o.disabled=!0),o.remove(m)}catch(f){o.disabled=!0}o.enabled=!o.disabled,"undefined"!=typeof module&&module.exports&&this.module!==module?module.exports=o:"function"==typeof define&&define.amd?define(o):e.store=o}(Function("return this")())}).call(this),function(){r={},r._deps={},r._dep=new n.Dependency,r.get=function(e){var t=r._deps[e];return t||(r._deps[e]=new n.Dependency,t=r._deps[e]),t.depend(),store.get(e)},r.set=function(e,t){store.set(e,t);var o=r._deps[e];o||(r._deps[e]=new n.Dependency,o=r._deps[e]),o.changed(),r._dep.changed()},r.getAll=function(){return r._dep.depend(),store.getAll()},r.remove=function(e){store.remove(e)},r.clearAll=function(){store.clearAll(),r._dep.changed()}}.call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["mrt:reactive-store"]={ReactiveStore:r}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.underscore._,i=Package.tracker.Tracker,r=Package.tracker.Deps,n=Package.session.Session,o=Package.templating.Template,s=Package.blaze.Blaze,c=Package.blaze.UI,p=Package.blaze.Handlebars,a=Package.spacebars.Spacebars,f=Package.htmljs.HTML;(function(){(function(){!function(){var t=function(){this._deps=new r.Dependency,this._type="desktop",this._suffix_deps={tv:new r.Dependency,tablet:new r.Dependency,phone:new r.Dependency,desktop:new r.Dependency,bot:new r.Dependency},this._suffix={tv:"_tv",tablet:"_tablet",phone:"_phone",desktop:"_desktop",bot:"_bot"},this.emptyUserAgentDeviceType="desktop",this.botUserAgentDeviceType="bot",this.unknownUserAgentDeviceType="phone",n.setDefault("devices_user_type_preference","no_preference")};t.prototype.setSuffix=function(e,t){this._suffix[e]=t,this._suffix_deps[e].changed()},t.prototype.setTVSuffix=function(e){this.setSuffix("tv",e)},t.prototype.setTabletSuffix=function(e){this.setSuffix("tablet",e)},t.prototype.setPhoneSuffix=function(e){this.setSuffix("phone",e)},t.prototype.setDesktopSuffix=function(e){this.setSuffix("desktop",e)},t.prototype.setBotSuffix=function(e){this.setSuffix("bot",e)},t.prototype.getSuffix=function(e){return this._suffix_deps[e].depend(),this._suffix[e]},t.prototype.TVSuffix=function(){return getSuffix("tv")},t.prototype.TabletSuffix=function(){return getSuffix("tablet")},t.prototype.PhoneSuffix=function(){return getSuffix("phone")},t.prototype.DesktopSuffix=function(){return getSuffix("desktop")},t.prototype.BotSuffix=function(){return getSuffix("bot")},t.prototype.setPreference=function(e){this._type=e,n.set("devices_user_type_preference",e),this._deps.changed()},t.prototype.hasPreference=function(){return!n.equals("devices_user_type_preference","no_preference")},t.prototype.clearPreference=function(){this.setPreference("no_preference"),this.detectDevice()},t.prototype.preferTV=function(){this.setPreference("tv")},t.prototype.preferTablet=function(){this.setPreference("tablet")},t.prototype.preferPhone=function(){this.setPreference("phone")},t.prototype.preferDesktop=function(){this.setPreference("desktop")},t.prototype.preferBot=function(){this.setPreference("bot")},t.prototype.type=function(){return this._deps.depend(),this._type},t.prototype.isType=function(e){return e===this.type()},t.prototype.isTV=function(){return this.isType("tv")},t.prototype.isTablet=function(){return this.isType("tablet")},t.prototype.isPhone=function(){return this.isType("phone")},t.prototype.isDesktop=function(){return this.isType("desktop")},t.prototype.isBot=function(){return this.isType("bot")},t.prototype.detectDevice=function(){if(!n.equals("devices_user_type_preference","no_preference"))return this._type=n.get("devices_user_type_preference"),void this._deps.changed();var e=navigator.userAgent,t=this;this._type=function(){return e&&""!==e?e.match(/GoogleTV|SmartTV|Internet TV|NetCast|NETTV|AppleTV|boxee|Kylo|Roku|DLNADOC|CE\-HTML/i)?"tv":e.match(/Xbox|PLAYSTATION 3|Wii/i)?"tv":e.match(/iP(a|ro)d/i)||e.match(/tablet/i)&&!e.match(/RX-34/i)||e.match(/FOLIO/i)?"tablet":e.match(/Linux/i)&&e.match(/Android/i)&&!e.match(/Fennec|mobi|HTC Magic|HTCX06HT|Nexus One|SC-02B|fone 945/i)?"tablet":e.match(/Kindle/i)||e.match(/Mac OS/i)&&e.match(/Silk/i)?"tablet":e.match(/GT-P10|SC-01C|SHW-M180S|SGH-T849|SCH-I800|SHW-M180L|SPH-P100|SGH-I987|zt180|HTC( Flyer|_Flyer)|Sprint ATP51|ViewPad7|pandigital(sprnova|nova)|Ideos S7|Dell Streak 7|Advent Vega|A101IT|A70BHT|MID7015|Next2|nook/i)||e.match(/MB511/i)&&e.match(/RUTEM/i)?"tablet":e.match(/BOLT|Fennec|Iris|Maemo|Minimo|Mobi|mowser|NetFront|Novarra|Prism|RX-34|Skyfire|Tear|XV6875|XV6975|Google Wireless Transcoder/i)?"phone":e.match(/Opera/i)&&e.match(/Windows NT 5/i)&&e.match(/HTC|Xda|Mini|Vario|SAMSUNG\-GT\-i8000|SAMSUNG\-SGH\-i9/i)?"phone":e.match(/Windows (NT|XP|ME|9)/)&&!e.match(/Phone/i)&&!e.match(/Bot|Spider|ia_archiver|NewsGator/i)||e.match(/Win( ?9|NT)/i)?"desktop":e.match(/Macintosh|PowerPC/i)&&!e.match(/Silk/i)?"desktop":e.match(/Linux/i)&&e.match(/X11/i)&&!e.match(/Charlotte/i)?"desktop":e.match(/CrOS/)?"desktop":e.match(/Solaris|SunOS|BSD/i)?"desktop":e.match(/curl|Bot|B-O-T|Crawler|Spider|Spyder|Yahoo|ia_archiver|Covario-IDS|findlinks|DataparkSearch|larbin|Mediapartners-Google|NG-Search|Snappy|Teoma|Jeeves|Charlotte|NewsGator|TinEye|Cerberian|SearchSight|Zao|Scrubby|Qseero|PycURL|Pompos|oegp|SBIder|yoogliFetchAgent|yacy|webcollage|VYU2|voyager|updated|truwoGPS|StackRambler|Sqworm|silk|semanticdiscovery|ScoutJet|Nymesis|NetResearchServer|MVAClient|mogimogi|Mnogosearch|Arachmo|Accoona|holmes|htdig|ichiro|webis|LinkWalker|lwp-trivial/i)&&!e.match(/mobile|Playstation/i)?t.botUserAgentDeviceType||"bot":t.unknownUserAgentDeviceType||"phone":t.emptyUserAgentDeviceType||"desktop"}(),this._deps.changed()},e.Device=new t,e.Device.detectDevice()}()}).call(this),function(){"undefined"!=typeof c&&(c.registerHelper("deviceRender",function(){var i=this;t.isString(i)||(i="undefined"!=typeof e.Router?e.Router.page():"");var r=e.Device.type(),n=e.Device.getSuffix(r),s=i+(n||"");return o[s]?o[s]:o[i]?o[i]:null}),c.registerHelper("isTV",function(){return e.Device.isTV()}),c.registerHelper("isTablet",function(){return e.Device.isTablet()}),c.registerHelper("isPhone",function(){return e.Device.isPhone()}),c.registerHelper("isDesktop",function(){return e.Device.isDesktop()}),c.registerHelper("isBot",function(){return e.Device.isBot()}),c.registerHelper("device_type",function(){return e.Device.type()}))}.call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["mystor:device-detection"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,r=Package.underscore._,t=Package.http.HTTP,n,i;(function(){n="object"==typeof n?n:{};var o=n,s,u,a,h,c,p,l,d,f,v=function(e,r){function t(){this.constructor=e}for(var n in r)m.call(r,n)&&(e[n]=r[n]);return t.prototype=r.prototype,e.prototype=new t,e.__super__=r.prototype,e},m={}.hasOwnProperty;a=decodeURIComponent,h=encodeURIComponent,p=/; */,c=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,l=function(e,r){var t,n,i,o;if("string"!=typeof e)throw new TypeError("argument str must be a string");return n={},i=r||{},o=e.split(p),t=i.decode||a,o.forEach(function(e){var r,i,o;r=e.indexOf("="),0>r||(i=e.substr(0,r).trim(),o=e.substr(++r,e.length).trim(),'"'===o[0]&&(o=o.slice(1,-1)),void 0===n[i]&&(n[i]=f(o,t)))}),n},d=function(e,t,n){var i,o,s,u,a;if(s=n||{},i=s.encode||h,!c.test(e))throw new TypeError("argument name is invalid");if(t){if(a=i(t),a&&!c.test(a))throw new TypeError("argument val is invalid")}else a="";if(u=[e+"="+a],s.maxAge){if(o=s.maxAge-0,isNaN(o))throw new Error("maxAge should be a Number");u.push("Max-Age="+o)}if(s.domain){if(!c.test(s.domain))throw new TypeError("option domain is invalid");u.push("Domain="+s.domain)}else u.push("Domain=");if(s.path){if(!c.test(s.path))throw new TypeError("option path is invalid");u.push("Path="+s.path)}else u.push("Path=/");return s.expires=s.expires||s.expire,s.expires&&(s.expires===1/0?pair.push("Expires=Fri, 31 Dec 9999 23:59:59 GMT"):s.expires instanceof Date?u.push("Expires="+s.expires.toUTCString()):r.isNumber(s.expires)&&u.push("Expires="+new Date(s.expires).toUTCString())),s.httpOnly&&u.push("HttpOnly"),s.secure&&u.push("Secure"),s.firstPartyOnly&&u.push("First-Party-Only"),u.join("; ")},f=function(e,r){var t;try{return r(e)}catch(n){return t=n,e}},s=function(){function n(e,t,n,i,o){this.collection=t,this.TTL=n,this.runOnServer=i,this.response=o,r.isObject(e)?this.cookies=e:this.cookies=l(e)}return n.prototype.get=function(e,r){var t;return t=r?l(r):this.cookies,e&&t&&(null!=t?t[e]:void 0)?t[e]:null},n.prototype.set=function(r,t,n){var i;return null==n&&(n={}),r&&t?(null==n.expires&&(n.expires=new Date(+new Date+this.TTL)),null==n.path&&(n.path="/"),null==n.domain&&(n.domain=""),null==n.secure&&(n.secure=""),i=d(r,t,n),this.cookies[r]=t,e.isClient?document.cookie=i:this.response.setHeader("Set-Cookie",i),!0):!1},n.prototype.remove=function(r,t,n){var i,o,s,u,a;if(null==t&&(t="/"),null==n&&(n=""),r)return u=d(r,"",{domain:n,path:t,expires:new Date(0)}),this.has(r)?(delete this.cookies[r],e.isClient?document.cookie=u:this.response.setHeader("Set-Cookie",u),!0):!1;if(this.keys().length>0&&""!==this.keys()[0]){for(a=this.keys(),i=0,s=a.length;s>i;i++)o=a[i],this.remove(o);return!0}return!1},n.prototype.has=function(e,r){var t;return t=r?l(r):this.cookies,e&&t?!!(null!=t?t[e]:void 0):!1},n.prototype.keys=function(){return this.cookies?Object.keys(this.cookies):[]},n.prototype.send=function(){if(this.runOnServer)return t.get((__meteor_runtime_config__.ROOT_URL_PATH_PREFIX||"")+"/___cookie___/set",function(){});throw new e.Error("400","Can't send cookies on server when `runOnServer` is false.")},n}(),u=function(r,t,n){var i,o;if(n.runOnServer)return i=(null!=(o=r.headers)?o.cookie:void 0)?l(r.headers.cookie):{},new s(i,n.collection,n.TTL,n.runOnServer,t);throw new e.Error("400","Can't use middleware when `runOnServer` is false.")},i=function(r){function t(r){var n;null==r&&(r={}),this.runOnServer=r.runOnServer,this.handler=r.handler,this.TTL=r.TTL,this.auto=r.auto,null==this.runOnServer&&(this.runOnServer=r.runOnServer||!0),null==this.TTL&&(this.TTL=r.TTL||26784e5),e.isServer?this.runOnServer&&(null==this.auto&&(this.auto=!0),null==this.handler&&(this.handler=function(e){}),t.isLoadedOnServer||(this.auto&&(n=this,WebApp.connectHandlers.use(function(e,r,t){return e.Cookies=u(e,r,n),t()})),t.isLoadedOnServer=!0)):t.__super__.constructor.call(this,document.cookie,null,this.TTL,this.runOnServer)}return v(t,r),t.prototype.middleware=function(){var e;return e=this,function(r,t,n){var i;return i=u(r,t,e),e.handler&&e.handler(i),n()}},t}(s),e.isServer&&(i.isLoadedOnServer=!1)}).call(this),"undefined"==typeof Package&&(Package={}),Package["ostrio:cookies"]={Cookies:i}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,i=Package.oauth.OAuth,n=Package.oauth.Oauth,a=Package.templating.Template,o=Package.random.Random,r=Package["service-configuration"].ServiceConfiguration,t=Package.blaze.Blaze,l=Package.blaze.UI,c=Package.blaze.Handlebars,s=Package.spacebars.Spacebars,u=Package.htmljs.HTML,g;(function(){a.__checkName("configureLoginServiceDialogForLinkedin"),a.configureLoginServiceDialogForLinkedin=new a("Template.configureLoginServiceDialogForLinkedin",function(){var e=this;return u.Raw('<p>\n First, you\'ll need to register your app on Linkedin. Follow these steps:\n </p>\n <ol>\n <li>\n Visit <a href="https://www.linkedin.com/secure/developer?newapp=" target="_blank">https://www.linkedin.com/secure/developer?newapp=</a>\n </li>\n </ol>')})}).call(this),function(){a.configureLoginServiceDialogForLinkedin.siteUrl=function(){return e.absoluteUrl()},a.configureLoginServiceDialogForLinkedin.fields=function(){return[{property:"clientId",label:"API Key"},{property:"secret",label:"Secret Key"}]}}.call(this),function(){"undefined"==typeof g&&(g={})}.call(this),function(){g.requestCredential=function(e,n){n||"function"!=typeof e||(n=e,e={});var a=r.configurations.findOne({service:"linkedin"});if(!a)return void(n&&n(new r.ConfigError("Service not configured")));var t=o.secret(),l=i._loginStyle("linkedin",a,e),c=[];e&&e.requestPermissions&&(c=e.requestPermissions.join("+"));var l=i._loginStyle("linkedin",a,e),s="https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id="+a.clientId+"&redirect_uri="+i._redirectUri("linkedin",a)+"&scope="+c+"&state="+i._stateParam(l,t);i.launchLogin({loginService:"linkedin",loginStyle:l,loginUrl:s,credentialRequestCompleteCallback:n,credentialToken:t})}}.call(this),"undefined"==typeof Package&&(Package={}),Package["pauli:linkedin"]={LinkedIn:g}}();
|
||
|
||
!function(){var n=Package.meteor.Meteor,e=Package["accounts-base"].Accounts,i=Package["accounts-base"].AccountsClient,a=Package["pauli:linkedin"].LinkedIn;(function(){e.oauth.registerService("linkedin"),e.linkedin||(e.linkedin={})}).call(this),function(){n.loginWithLinkedIn=function(n,i){i||"function"!=typeof n||(i=n,n=null);var t=e.oauth.credentialRequestCompleteHandler(i);a.requestCredential(n,t)},n.loginWithLinkedin=n.loginWithLinkedIn}.call(this),"undefined"==typeof Package&&(Package={}),Package["pauli:accounts-linkedin"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;(function(){(function(){!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.jsyaml=e()}}(function(){return function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return r(n?n:e)},l,l.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(){},{}],2:[function(e,t){"use strict";function n(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}var i=e("./js-yaml/loader"),r=e("./js-yaml/dumper");t.exports.Type=e("./js-yaml/type"),t.exports.Schema=e("./js-yaml/schema"),t.exports.FAILSAFE_SCHEMA=e("./js-yaml/schema/failsafe"),t.exports.JSON_SCHEMA=e("./js-yaml/schema/json"),t.exports.CORE_SCHEMA=e("./js-yaml/schema/core"),t.exports.DEFAULT_SAFE_SCHEMA=e("./js-yaml/schema/default_safe"),t.exports.DEFAULT_FULL_SCHEMA=e("./js-yaml/schema/default_full"),t.exports.load=i.load,t.exports.loadAll=i.loadAll,t.exports.safeLoad=i.safeLoad,t.exports.safeLoadAll=i.safeLoadAll,t.exports.dump=r.dump,t.exports.safeDump=r.safeDump,t.exports.YAMLException=e("./js-yaml/exception"),t.exports.MINIMAL_SCHEMA=e("./js-yaml/schema/failsafe"),t.exports.SAFE_SCHEMA=e("./js-yaml/schema/default_safe"),t.exports.DEFAULT_SCHEMA=e("./js-yaml/schema/default_full"),t.exports.scan=n("scan"),t.exports.parse=n("parse"),t.exports.compose=n("compose"),t.exports.addConstructor=n("addConstructor")},{"./js-yaml/dumper":4,"./js-yaml/exception":5,"./js-yaml/loader":6,"./js-yaml/schema":8,"./js-yaml/schema/core":9,"./js-yaml/schema/default_full":10,"./js-yaml/schema/default_safe":11,"./js-yaml/schema/failsafe":12,"./js-yaml/schema/json":13,"./js-yaml/type":14}],3:[function(e,t){"use strict";function n(e){return"undefined"==typeof e||null===e}function i(e){return"object"==typeof e&&null!==e}function r(e){return Array.isArray(e)?e:n(e)?[]:[e]}function o(e,t){var n,i,r,o;if(t)for(o=Object.keys(t),n=0,i=o.length;i>n;n+=1)r=o[n],e[r]=t[r];return e}function a(e,t){var n,i="";for(n=0;t>n;n+=1)i+=e;return i}function s(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e}t.exports.isNothing=n,t.exports.isObject=i,t.exports.toArray=r,t.exports.repeat=a,t.exports.isNegativeZero=s,t.exports.extend=o},{}],4:[function(e,t){"use strict";function n(e,t){var n,i,r,o,a,s,c;if(null===t)return{};for(n={},i=Object.keys(t),r=0,o=i.length;o>r;r+=1)a=i[r],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),c=e.compiledTypeMap[a],c&&E.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[a]=s;return n}function i(e){var t,n,i;if(t=e.toString(16).toUpperCase(),255>=e)n="x",i=2;else if(65535>=e)n="u",i=4;else{if(!(4294967295>=e))throw new j("code point within a string may not be greater than 0xFFFFFFFF");n="U",i=8}return"\\"+n+k.repeat("0",i-t.length)+t}function r(e){this.schema=e.schema||I,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=k.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=n(this.schema,e.styles||null),this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function o(e,t){for(var n,i=k.repeat(" ",t),r=0,o=-1,a="",s=e.length;s>r;)o=e.indexOf("\n",r),-1===o?(n=e.slice(r),r=s):(n=e.slice(r,o+1),r=o+1),n.length&&"\n"!==n&&(a+=i),a+=n;return a}function a(e,t){return"\n"+k.repeat(" ",e.indent*t)}function s(e,t){var n,i,r;for(n=0,i=e.implicitTypes.length;i>n;n+=1)if(r=e.implicitTypes[n],r.resolve(t))return!0;return!1}function c(e){this.source=e,this.result="",this.checkpoint=0}function u(e,t,n){var i,r,a,u,p,d,m,g,y,x,v,A,b,w,C,k,j,I,S,O,E;if(0===t.length)return void(e.dump="''");if(-1!==ee.indexOf(t))return void(e.dump="'"+t+"'");for(i=!0,r=t.length?t.charCodeAt(0):0,a=_===r||_===t.charCodeAt(t.length-1),(R===r||G===r||V===r||J===r)&&(i=!1),a?(i=!1,u=!1,p=!1):(u=!0,p=!0),d=!0,m=new c(t),g=!1,y=0,x=0,v=e.indent*n,A=80,40>v?A-=v:A=40,w=0;w<t.length;w++){if(b=t.charCodeAt(w),i){if(f(b))continue;i=!1}d&&b===q&&(d=!1),C=X[b],k=h(b),(C||k)&&(b!==N&&b!==L&&b!==q?(u=!1,p=!1):b===N&&(g=!0,d=!1,w>0&&(j=t.charCodeAt(w-1),j===_&&(p=!1,u=!1)),u&&(I=w-y,y=w,I>x&&(x=I))),b!==L&&(d=!1),m.takeUpTo(w),m.escapeChar())}if(i&&s(e,t)&&(i=!1),S="",(u||p)&&(O=0,t.charCodeAt(t.length-1)===N&&(O+=1,t.charCodeAt(t.length-2)===N&&(O+=1)),0===O?S="-":2===O&&(S="+")),p&&A>x&&(u=!1),g||(p=!1),i)e.dump=t;else if(d)e.dump="'"+t+"'";else if(u)E=l(t,A),e.dump=">"+S+"\n"+o(E,v);else if(p)S||(t=t.replace(/\n$/,"")),e.dump="|"+S+"\n"+o(t,v);else{if(!m)throw new Error("Failed to dump scalar value");m.finish(),e.dump='"'+m.result+'"'}}function l(e,t){var n,i="",r=0,o=e.length,a=/\n+$/.exec(e);for(a&&(o=a.index+1);o>r;)n=e.indexOf("\n",r),n>o||-1===n?(i&&(i+="\n\n"),i+=p(e.slice(r,o),t),r=o):(i&&(i+="\n\n"),i+=p(e.slice(r,n),t),r=n+1);return a&&"\n"!==a[0]&&(i+=a[0]),i}function p(e,t){if(""===e)return e;for(var n,i,r,o=/[^\s] [^\s]/g,a="",s=0,c=0,u=o.exec(e);u;)n=u.index,n-c>t&&(i=s!==c?s:n,a&&(a+="\n"),r=e.slice(c,i),a+=r,c=i+1),s=n+1,u=o.exec(e);return a&&(a+="\n"),a+=c!==s&&e.length-c>t?e.slice(c,s)+"\n"+e.slice(s+1):e.slice(c)}function f(e){return F!==e&&N!==e&&T!==e&&$!==e&&W!==e&&Z!==e&&z!==e&&Q!==e&&D!==e&&Y!==e&&P!==e&&M!==e&&K!==e&&B!==e&&q!==e&&L!==e&&U!==e&&H!==e&&!X[e]&&!h(e)}function h(e){return!(e>=32&&126>=e||133===e||e>=160&&55295>=e||e>=57344&&65533>=e||e>=65536&&1114111>=e)}function d(e,t,n){var i,r,o="",a=e.tag;for(i=0,r=n.length;r>i;i+=1)v(e,t,n[i],!1,!1)&&(0!==i&&(o+=", "),o+=e.dump);e.tag=a,e.dump="["+o+"]"}function m(e,t,n,i){var r,o,s="",c=e.tag;for(r=0,o=n.length;o>r;r+=1)v(e,t+1,n[r],!0,!0)&&(i&&0===r||(s+=a(e,t)),s+="- "+e.dump);e.tag=c,e.dump=s||"[]"}function g(e,t,n){var i,r,o,a,s,c="",u=e.tag,l=Object.keys(n);for(i=0,r=l.length;r>i;i+=1)s="",0!==i&&(s+=", "),o=l[i],a=n[o],v(e,t,o,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+": ",v(e,t,a,!1,!1)&&(s+=e.dump,c+=s));e.tag=u,e.dump="{"+c+"}"}function y(e,t,n,i){var r,o,s,c,u,l,p="",f=e.tag,h=Object.keys(n);for(r=0,o=h.length;o>r;r+=1)l="",i&&0===r||(l+=a(e,t)),s=h[r],c=n[s],v(e,t+1,s,!0,!0)&&(u=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024,u&&(l+=e.dump&&N===e.dump.charCodeAt(0)?"?":"? "),l+=e.dump,u&&(l+=a(e,t)),v(e,t+1,c,!0,u)&&(l+=e.dump&&N===e.dump.charCodeAt(0)?":":": ",l+=e.dump,p+=l));e.tag=f,e.dump=p||"{}"}function x(e,t,n){var i,r,o,a,s,c;for(r=n?e.explicitTypes:e.implicitTypes,o=0,a=r.length;a>o;o+=1)if(s=r[o],(s.instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof t&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(e.tag=n?s.tag:"?",s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===O.call(s.represent))i=s.represent(t,c);else{if(!E.call(s.represent,c))throw new j("!<"+s.tag+'> tag resolver accepts not "'+c+'" style');i=s.represent[c](t,c)}e.dump=i}return!0}return!1}function v(e,t,n,i,r){e.tag=null,e.dump=n,x(e,n,!1)||x(e,n,!0);var o=O.call(e.dump);i&&(i=0>e.flowLevel||e.flowLevel>t),(null!==e.tag&&"?"!==e.tag||2!==e.indent&&t>0)&&(r=!1);var a,s,c="[object Object]"===o||"[object Array]"===o;if(c&&(a=e.duplicates.indexOf(n),s=-1!==a),s&&e.usedDuplicates[a])e.dump="*ref_"+a;else{if(c&&s&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),"[object Object]"===o)i&&0!==Object.keys(e.dump).length?(y(e,t,e.dump,r),s&&(e.dump="&ref_"+a+(0===t?"\n":"")+e.dump)):(g(e,t,e.dump),s&&(e.dump="&ref_"+a+" "+e.dump));else if("[object Array]"===o)i&&0!==e.dump.length?(m(e,t,e.dump,r),s&&(e.dump="&ref_"+a+(0===t?"\n":"")+e.dump)):(d(e,t,e.dump),s&&(e.dump="&ref_"+a+" "+e.dump));else{if("[object String]"!==o){if(e.skipInvalid)return!1;throw new j("unacceptable kind of an object to dump "+o)}"?"!==e.tag&&u(e,e.dump,t)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function A(e,t){var n,i,r=[],o=[];for(b(e,r,o),n=0,i=o.length;i>n;n+=1)t.duplicates.push(r[o[n]]);t.usedDuplicates=new Array(i)}function b(e,t,n){var i,r,o;if(O.call(e),null!==e&&"object"==typeof e)if(r=t.indexOf(e),-1!==r)-1===n.indexOf(r)&&n.push(r);else if(t.push(e),Array.isArray(e))for(r=0,o=e.length;o>r;r+=1)b(e[r],t,n);else for(i=Object.keys(e),r=0,o=i.length;o>r;r+=1)b(e[i[r]],t,n)}function w(e,t){t=t||{};var n=new r(t);return A(e,n),v(n,0,e,!0,!0)?n.dump+"\n":""}function C(e,t){return w(e,k.extend({schema:S},t))}var k=e("./common"),j=e("./exception"),I=e("./schema/default_full"),S=e("./schema/default_safe"),O=Object.prototype.toString,E=Object.prototype.hasOwnProperty,F=9,N=10,T=13,_=32,M=33,L=34,D=35,U=37,Y=38,q=39,P=42,$=44,R=45,H=58,B=62,G=63,V=64,W=91,Z=93,J=96,z=123,K=124,Q=125,X={};X[0]="\\0",X[7]="\\a",X[8]="\\b",X[9]="\\t",X[10]="\\n",X[11]="\\v",X[12]="\\f",X[13]="\\r",X[27]="\\e",X[34]='\\"',X[92]="\\\\",X[133]="\\N",X[160]="\\_",X[8232]="\\L",X[8233]="\\P";var ee=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];c.prototype.takeUpTo=function(e){var t;if(e<this.checkpoint)throw t=new Error("position should be > checkpoint"),t.position=e,t.checkpoint=this.checkpoint,t;return this.result+=this.source.slice(this.checkpoint,e),this.checkpoint=e,this},c.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=X[e]||i(e),this.result+=t,this.checkpoint+=1,this},c.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)},t.exports.dump=w,t.exports.safeDump=C},{"./common":3,"./exception":5,"./schema/default_full":10,"./schema/default_safe":11}],5:[function(e,t){"use strict";function n(e,t){this.name="YAMLException",this.reason=e,this.mark=t,this.message=this.toString(!1)}n.prototype.toString=function(e){var t;return t="JS-YAML: "+(this.reason||"(unknown reason)"),!e&&this.mark&&(t+=" "+this.mark.toString()),t},t.exports=n},{}],6:[function(e,t){"use strict";function n(e){return 10===e||13===e}function i(e){return 9===e||32===e}function r(e){return 9===e||32===e||10===e||13===e}function o(e){return 44===e||91===e||93===e||123===e||125===e}function a(e){var t;return e>=48&&57>=e?e-48:(t=32|e,t>=97&&102>=t?t-97+10:-1)}function s(e){return 120===e?2:117===e?4:85===e?8:0}function c(e){return e>=48&&57>=e?e-48:-1}function u(e){return 48===e?"\x00":97===e?"":98===e?"\b":116===e?" ":9===e?" ":110===e?"\n":118===e?"":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function l(e){return 65535>=e?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function p(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||H,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function f(e,t){return new P(t,new $(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function h(e,t){throw f(e,t)}function d(e,t){var n=f(e,t);if(!e.onWarning)throw n;e.onWarning.call(null,n)}function m(e,t,n,i){var r,o,a,s;if(n>t){if(s=e.input.slice(t,n),i)for(r=0,o=s.length;o>r;r+=1)a=s.charCodeAt(r),9===a||a>=32&&1114111>=a||h(e,"expected valid JSON character");e.result+=s}}function g(e,t,n){var i,r,o,a;for(q.isObject(n)||h(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),o=0,a=i.length;a>o;o+=1)r=i[o],B.call(t,r)||(t[r]=n[r])}function y(e,t,n,i,r){var o,a;if(i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(r))for(o=0,a=r.length;a>o;o+=1)g(e,t,r[o]);else g(e,t,r);else t[i]=r;return t}function x(e){var t;t=e.input.charCodeAt(e.position),10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):h(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function v(e,t,r){for(var o=0,a=e.input.charCodeAt(e.position);0!==a;){for(;i(a);)a=e.input.charCodeAt(++e.position);if(t&&35===a)do a=e.input.charCodeAt(++e.position);while(10!==a&&13!==a&&0!==a);if(!n(a))break;for(x(e),a=e.input.charCodeAt(e.position),o++,e.lineIndent=0;32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position)}return-1!==r&&0!==o&&e.lineIndent<r&&d(e,"deficient indentation"),o}function A(e){var t,n=e.position;return t=e.input.charCodeAt(n),45!==t&&46!==t||e.input.charCodeAt(n+1)!==t||e.input.charCodeAt(n+2)!==t||(n+=3,t=e.input.charCodeAt(n),0!==t&&!r(t))?!1:!0}function b(e,t){1===t?e.result+=" ":t>1&&(e.result+=q.repeat("\n",t-1))}function w(e,t,a){var s,c,u,l,p,f,h,d,g,y=e.kind,x=e.result;if(g=e.input.charCodeAt(e.position),r(g)||o(g)||35===g||38===g||42===g||33===g||124===g||62===g||39===g||34===g||37===g||64===g||96===g)return!1;if((63===g||45===g)&&(c=e.input.charCodeAt(e.position+1),r(c)||a&&o(c)))return!1;for(e.kind="scalar",e.result="",u=l=e.position,p=!1;0!==g;){if(58===g){if(c=e.input.charCodeAt(e.position+1),r(c)||a&&o(c))break}else if(35===g){if(s=e.input.charCodeAt(e.position-1),r(s))break}else{if(e.position===e.lineStart&&A(e)||a&&o(g))break;if(n(g)){if(f=e.line,h=e.lineStart,d=e.lineIndent,v(e,!1,-1),e.lineIndent>=t){p=!0,g=e.input.charCodeAt(e.position);continue}e.position=l,e.line=f,e.lineStart=h,e.lineIndent=d;break}}p&&(m(e,u,l,!1),b(e,e.line-f),u=l=e.position,p=!1),i(g)||(l=e.position+1),g=e.input.charCodeAt(++e.position)}return m(e,u,l,!1),e.result?!0:(e.kind=y,e.result=x,!1)}function C(e,t){var i,r,o;if(i=e.input.charCodeAt(e.position),39!==i)return!1;for(e.kind="scalar",e.result="",e.position++,r=o=e.position;0!==(i=e.input.charCodeAt(e.position));)if(39===i){if(m(e,r,e.position,!0),i=e.input.charCodeAt(++e.position),39!==i)return!0;r=o=e.position,e.position++}else n(i)?(m(e,r,o,!0),b(e,v(e,!1,t)),r=o=e.position):e.position===e.lineStart&&A(e)?h(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);h(e,"unexpected end of the stream within a single quoted scalar")}function k(e,t){var i,r,o,c,u,p;if(p=e.input.charCodeAt(e.position),34!==p)return!1;for(e.kind="scalar",e.result="",e.position++,i=r=e.position;0!==(p=e.input.charCodeAt(e.position));){if(34===p)return m(e,i,e.position,!0),e.position++,!0;if(92===p){if(m(e,i,e.position,!0),p=e.input.charCodeAt(++e.position),n(p))v(e,!1,t);else if(256>p&&ie[p])e.result+=re[p],e.position++;else if((u=s(p))>0){for(o=u,c=0;o>0;o--)p=e.input.charCodeAt(++e.position),(u=a(p))>=0?c=(c<<4)+u:h(e,"expected hexadecimal character");e.result+=l(c),e.position++}else h(e,"unknown escape sequence");i=r=e.position}else n(p)?(m(e,i,r,!0),b(e,v(e,!1,t)),i=r=e.position):e.position===e.lineStart&&A(e)?h(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}h(e,"unexpected end of the stream within a double quoted scalar")}function j(e,t){var n,i,o,a,s,c,u,l,p,f,d,m=!0,g=e.tag,x=e.anchor;if(d=e.input.charCodeAt(e.position),91===d)a=93,u=!1,i=[];else{if(123!==d)return!1;a=125,u=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),d=e.input.charCodeAt(++e.position);0!==d;){if(v(e,!0,t),d=e.input.charCodeAt(e.position),d===a)return e.position++,e.tag=g,e.anchor=x,e.kind=u?"mapping":"sequence",e.result=i,!0;m||h(e,"missed comma between flow collection entries"),p=l=f=null,s=c=!1,63===d&&(o=e.input.charCodeAt(e.position+1),r(o)&&(s=c=!0,e.position++,v(e,!0,t))),n=e.line,T(e,t,G,!1,!0),p=e.tag,l=e.result,v(e,!0,t),d=e.input.charCodeAt(e.position),!c&&e.line!==n||58!==d||(s=!0,d=e.input.charCodeAt(++e.position),v(e,!0,t),T(e,t,G,!1,!0),f=e.result),u?y(e,i,p,l,f):i.push(s?y(e,null,p,l,f):l),v(e,!0,t),d=e.input.charCodeAt(e.position),44===d?(m=!0,d=e.input.charCodeAt(++e.position)):m=!1}h(e,"unexpected end of the stream within a flow collection")}function I(e,t){var r,o,a,s,u=J,l=!1,p=t,f=0,d=!1;if(s=e.input.charCodeAt(e.position),124===s)o=!1;else{if(62!==s)return!1;o=!0}for(e.kind="scalar",e.result="";0!==s;)if(s=e.input.charCodeAt(++e.position),43===s||45===s)J===u?u=43===s?K:z:h(e,"repeat of a chomping mode identifier");else{if(!((a=c(s))>=0))break;0===a?h(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?h(e,"repeat of an indentation width identifier"):(p=t+a-1,l=!0)}if(i(s)){do s=e.input.charCodeAt(++e.position);while(i(s));if(35===s)do s=e.input.charCodeAt(++e.position);while(!n(s)&&0!==s)}for(;0!==s;){for(x(e),e.lineIndent=0,s=e.input.charCodeAt(e.position);(!l||e.lineIndent<p)&&32===s;)e.lineIndent++,s=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>p&&(p=e.lineIndent),n(s))f++;else{if(e.lineIndent<p){u===K?e.result+=q.repeat("\n",f):u===J&&l&&(e.result+="\n");break}for(o?i(s)?(d=!0,e.result+=q.repeat("\n",f+1)):d?(d=!1,e.result+=q.repeat("\n",f+1)):0===f?l&&(e.result+=" "):e.result+=q.repeat("\n",f):l&&(e.result+=q.repeat("\n",f+1)),l=!0,f=0,r=e.position;!n(s)&&0!==s;)s=e.input.charCodeAt(++e.position);m(e,r,e.position,!1)}}return!0}function S(e,t){var n,i,o,a=e.tag,s=e.anchor,c=[],u=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=c),o=e.input.charCodeAt(e.position);0!==o&&45===o&&(i=e.input.charCodeAt(e.position+1),r(i));)if(u=!0,e.position++,v(e,!0,-1)&&e.lineIndent<=t)c.push(null),o=e.input.charCodeAt(e.position);else if(n=e.line,T(e,t,W,!1,!0),c.push(e.result),v(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==o)h(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return u?(e.tag=a,e.anchor=s,e.kind="sequence",e.result=c,!0):!1}function O(e,t,n){var o,a,s,c,u=e.tag,l=e.anchor,p={},f=null,d=null,m=null,g=!1,x=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=p),c=e.input.charCodeAt(e.position);0!==c;){if(o=e.input.charCodeAt(e.position+1),s=e.line,63!==c&&58!==c||!r(o)){if(!T(e,n,V,!1,!0))break;if(e.line===s){for(c=e.input.charCodeAt(e.position);i(c);)c=e.input.charCodeAt(++e.position);if(58===c)c=e.input.charCodeAt(++e.position),r(c)||h(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(y(e,p,f,d,null),f=d=m=null),x=!0,g=!1,a=!1,f=e.tag,d=e.result;else{if(!x)return e.tag=u,e.anchor=l,!0;h(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!x)return e.tag=u,e.anchor=l,!0;h(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===c?(g&&(y(e,p,f,d,null),f=d=m=null),x=!0,g=!0,a=!0):g?(g=!1,a=!0):h(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,c=o;if((e.line===s||e.lineIndent>t)&&(T(e,t,Z,!0,a)&&(g?d=e.result:m=e.result),g||(y(e,p,f,d,m),f=d=m=null),v(e,!0,-1),c=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==c)h(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&y(e,p,f,d,null),x&&(e.tag=u,e.anchor=l,e.kind="mapping",e.result=p),x}function E(e){var t,n,i,o,a=!1,s=!1;if(o=e.input.charCodeAt(e.position),33!==o)return!1;if(null!==e.tag&&h(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),60===o?(a=!0,o=e.input.charCodeAt(++e.position)):33===o?(s=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,a){do o=e.input.charCodeAt(++e.position);while(0!==o&&62!==o);e.position<e.length?(i=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):h(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!r(o);)33===o&&(s?h(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),te.test(n)||h(e,"named tag handle cannot contain such characters"),s=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),ee.test(i)&&h(e,"tag suffix cannot contain flow indicator characters")}return i&&!ne.test(i)&&h(e,"tag name cannot contain such characters: "+i),a?e.tag=i:B.call(e.tagMap,n)?e.tag=e.tagMap[n]+i:"!"===n?e.tag="!"+i:"!!"===n?e.tag="tag:yaml.org,2002:"+i:h(e,'undeclared tag handle "'+n+'"'),!0}function F(e){var t,n;if(n=e.input.charCodeAt(e.position),38!==n)return!1;for(null!==e.anchor&&h(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!r(n)&&!o(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&h(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function N(e){var t,n,i;if(e.length,e.input,i=e.input.charCodeAt(e.position),42!==i)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!r(i)&&!o(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&h(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||h(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],v(e,!0,-1),!0}function T(e,t,n,i,r){var o,a,s,c,u,l,p,f,m=1,g=!1,y=!1;if(e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=s=Z===n||W===n,i&&v(e,!0,-1)&&(g=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;E(e)||F(e);)v(e,!0,-1)?(g=!0,s=o,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):s=!1;if(s&&(s=g||r),(1===m||Z===n)&&(p=G===n||V===n?t:t+1,f=e.position-e.lineStart,1===m?s&&(S(e,f)||O(e,f,p))||j(e,p)?y=!0:(a&&I(e,p)||C(e,p)||k(e,p)?y=!0:N(e)?(y=!0,(null!==e.tag||null!==e.anchor)&&h(e,"alias node should not have any properties")):w(e,p,G===n)&&(y=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(y=s&&S(e,f))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(c=0,u=e.implicitTypes.length;u>c;c+=1)if(l=e.implicitTypes[c],l.resolve(e.result)){e.result=l.construct(e.result),e.tag=l.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else B.call(e.typeMap,e.tag)?(l=e.typeMap[e.tag],null!==e.result&&l.kind!==e.kind&&h(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+l.kind+'", not "'+e.kind+'"'),l.resolve(e.result)?(e.result=l.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):h(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):d(e,"unknown tag !<"+e.tag+">");return null!==e.tag||null!==e.anchor||y}function _(e){var t,o,a,s,c=e.position,u=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(s=e.input.charCodeAt(e.position))&&(v(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==s));){for(u=!0,s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!r(s);)s=e.input.charCodeAt(++e.position);for(o=e.input.slice(t,e.position),a=[],o.length<1&&h(e,"directive name must not be less than one character in length");0!==s;){for(;i(s);)s=e.input.charCodeAt(++e.position);if(35===s){do s=e.input.charCodeAt(++e.position);while(0!==s&&!n(s));break}if(n(s))break;for(t=e.position;0!==s&&!r(s);)s=e.input.charCodeAt(++e.position);a.push(e.input.slice(t,e.position))}0!==s&&x(e),B.call(ae,o)?ae[o](e,o,a):d(e,'unknown document directive "'+o+'"')}return v(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,v(e,!0,-1)):u&&h(e,"directives end mark is expected"),T(e,e.lineIndent-1,Z,!1,!0),v(e,!0,-1),e.checkLineBreaks&&X.test(e.input.slice(c,e.position))&&d(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&A(e)?void(46===e.input.charCodeAt(e.position)&&(e.position+=3,v(e,!0,-1))):void(e.position<e.length-1&&h(e,"end of the stream or a document separator is expected"))}function M(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new p(e,t);for(Q.test(n.input)&&h(n,"the stream contains non-printable characters"),n.input+="\x00";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)_(n);return n.documents}function L(e,t,n){var i,r,o=M(e,n);for(i=0,r=o.length;r>i;i+=1)t(o[i])}function D(e,t){var n=M(e,t);if(0===n.length)return void 0;if(1===n.length)return n[0];throw new P("expected a single document in the stream, but found more")}function U(e,t,n){L(e,t,q.extend({schema:R},n))}function Y(e,t){return D(e,q.extend({schema:R},t))}for(var q=e("./common"),P=e("./exception"),$=e("./mark"),R=e("./schema/default_safe"),H=e("./schema/default_full"),B=Object.prototype.hasOwnProperty,G=1,V=2,W=3,Z=4,J=1,z=2,K=3,Q=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uD800-\uDFFF\uFFFE\uFFFF]/,X=/[\x85\u2028\u2029]/,ee=/[,\[\]\{\}]/,te=/^(?:!|!!|![a-z\-]+!)$/i,ne=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,ie=new Array(256),re=new Array(256),oe=0;256>oe;oe++)ie[oe]=u(oe)?1:0,re[oe]=u(oe);var ae={YAML:function(e,t,n){var i,r,o;null!==e.version&&h(e,"duplication of %YAML directive"),1!==n.length&&h(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),null===i&&h(e,"ill-formed argument of the YAML directive"),r=parseInt(i[1],10),o=parseInt(i[2],10),1!==r&&h(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=2>o,1!==o&&2!==o&&d(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var i,r;2!==n.length&&h(e,"TAG directive accepts exactly two arguments"),i=n[0],r=n[1],te.test(i)||h(e,"ill-formed tag handle (first argument) of the TAG directive"),B.call(e.tagMap,i)&&h(e,'there is a previously declared suffix for "'+i+'" tag handle'),ne.test(r)||h(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[i]=r}};t.exports.loadAll=L,t.exports.load=D,t.exports.safeLoadAll=U,t.exports.safeLoad=Y},{"./common":3,"./exception":5,"./mark":7,"./schema/default_full":10,"./schema/default_safe":11}],7:[function(e,t){"use strict";function n(e,t,n,i,r){this.name=e,this.buffer=t,this.position=n,this.line=i,this.column=r}var i=e("./common");n.prototype.getSnippet=function(e,t){var n,r,o,a,s;if(!this.buffer)return null;for(e=e||4,t=t||75,n="",r=this.position;r>0&&-1==="\x00\r\n
\u2028\u2029".indexOf(this.buffer.charAt(r-1));)if(r-=1,this.position-r>t/2-1){n=" ... ",r+=5;break}for(o="",a=this.position;a<this.buffer.length&&-1==="\x00\r\n
\u2028\u2029".indexOf(this.buffer.charAt(a));)if(a+=1,a-this.position>t/2-1){o=" ... ",a-=5;break}return s=this.buffer.slice(r,a),i.repeat(" ",e)+n+s+o+"\n"+i.repeat(" ",e+this.position-r+n.length)+"^"},n.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet(),t&&(n+=":\n"+t)),n},t.exports=n},{"./common":3}],8:[function(e,t){"use strict";function n(e,t,i){var r=[];return e.include.forEach(function(e){i=n(e,t,i)}),e[t].forEach(function(e){i.forEach(function(t,n){t.tag===e.tag&&r.push(n)}),i.push(e)}),i.filter(function(e,t){return-1===r.indexOf(t)})}function i(){function e(e){i[e.tag]=e}var t,n,i={};for(t=0,n=arguments.length;n>t;t+=1)arguments[t].forEach(e);return i}function r(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new a("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=n(this,"implicit",[]),this.compiledExplicit=n(this,"explicit",[]),this.compiledTypeMap=i(this.compiledImplicit,this.compiledExplicit)}var o=e("./common"),a=e("./exception"),s=e("./type");r.DEFAULT=null,r.create=function(){var e,t;switch(arguments.length){case 1:e=r.DEFAULT,t=arguments[0];break;case 2:e=arguments[0],t=arguments[1];break;default:throw new a("Wrong number of arguments for Schema.create function")}if(e=o.toArray(e),t=o.toArray(t),!e.every(function(e){return e instanceof r}))throw new a("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!t.every(function(e){return e instanceof s}))throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new r({include:e,explicit:t})},t.exports=r},{"./common":3,"./exception":5,"./type":14}],9:[function(e,t){"use strict";var n=e("../schema");t.exports=new n({include:[e("./json")]})},{"../schema":8,"./json":13}],10:[function(e,t){"use strict";var n=e("../schema");t.exports=n.DEFAULT=new n({include:[e("./default_safe")],explicit:[e("../type/js/undefined"),e("../type/js/regexp"),e("../type/js/function")]})},{"../schema":8,"../type/js/function":19,"../type/js/regexp":20,"../type/js/undefined":21,"./default_safe":11}],11:[function(e,t){"use strict";var n=e("../schema");t.exports=new n({include:[e("./core")],implicit:[e("../type/timestamp"),e("../type/merge")],explicit:[e("../type/binary"),e("../type/omap"),e("../type/pairs"),e("../type/set")]})},{"../schema":8,"../type/binary":15,"../type/merge":23,"../type/omap":25,"../type/pairs":26,"../type/set":28,"../type/timestamp":30,"./core":9}],12:[function(e,t){"use strict";var n=e("../schema");t.exports=new n({explicit:[e("../type/str"),e("../type/seq"),e("../type/map")]})},{"../schema":8,"../type/map":22,"../type/seq":27,"../type/str":29}],13:[function(e,t){"use strict";var n=e("../schema");t.exports=new n({include:[e("./failsafe")],implicit:[e("../type/null"),e("../type/bool"),e("../type/int"),e("../type/float")]})},{"../schema":8,"../type/bool":16,"../type/float":17,"../type/int":18,"../type/null":24,"./failsafe":12}],14:[function(e,t){"use strict";function n(e){var t={};return null!==e&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function i(e,t){if(t=t||{},Object.keys(t).forEach(function(t){if(-1===o.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=n(t.styleAliases||null),-1===a.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var r=e("./exception"),o=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];t.exports=i},{"./exception":5}],15:[function(e,t){"use strict";function n(e){if(null===e)return!1;var t,n,i=0,r=e.length,o=c;for(n=0;r>n;n++)if(t=o.indexOf(e.charAt(n)),!(t>64)){if(0>t)return!1;i+=6}return i%8===0}function i(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,o=c,s=0,u=[];for(t=0;r>t;t++)t%4===0&&t&&(u.push(s>>16&255),u.push(s>>8&255),u.push(255&s)),s=s<<6|o.indexOf(i.charAt(t));return n=r%4*6,0===n?(u.push(s>>16&255),u.push(s>>8&255),u.push(255&s)):18===n?(u.push(s>>10&255),u.push(s>>2&255)):12===n&&u.push(s>>4&255),a?new a(u):u}function r(e){var t,n,i="",r=0,o=e.length,a=c;for(t=0;o>t;t++)t%3===0&&t&&(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]),r=(r<<8)+e[t];return n=o%3,0===n?(i+=a[r>>18&63],i+=a[r>>12&63],i+=a[r>>6&63],i+=a[63&r]):2===n?(i+=a[r>>10&63],i+=a[r>>4&63],i+=a[r<<2&63],i+=a[64]):1===n&&(i+=a[r>>2&63],i+=a[r<<4&63],i+=a[64],i+=a[64]),i}function o(e){return a&&a.isBuffer(e)}var a=e("buffer").Buffer,s=e("../type"),c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";t.exports=new s("tag:yaml.org,2002:binary",{kind:"scalar",resolve:n,construct:i,predicate:o,represent:r})},{"../type":14,buffer:1}],16:[function(e,t){"use strict";function n(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)}function i(e){return"true"===e||"True"===e||"TRUE"===e}function r(e){return"[object Boolean]"===Object.prototype.toString.call(e)}var o=e("../type");t.exports=new o("tag:yaml.org,2002:bool",{kind:"scalar",resolve:n,
|
||
construct:i,predicate:r,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},{"../type":14}],17:[function(e,t){"use strict";function n(e){return null===e?!1:c.test(e)?!0:!1}function i(e){var t,n,i,r;return t=e.replace(/_/g,"").toLowerCase(),n="-"===t[0]?-1:1,r=[],0<="+-".indexOf(t[0])&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?0/0:0<=t.indexOf(":")?(t.split(":").forEach(function(e){r.unshift(parseFloat(e,10))}),t=0,i=1,r.forEach(function(e){t+=e*i,i*=60}),n*t):n*parseFloat(t,10)}function r(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(a.isNegativeZero(e))return"-0.0";return e.toString(10)}function o(e){return"[object Number]"===Object.prototype.toString.call(e)&&(0!==e%1||a.isNegativeZero(e))}var a=e("../common"),s=e("../type"),c=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");t.exports=new s("tag:yaml.org,2002:float",{kind:"scalar",resolve:n,construct:i,predicate:o,represent:r,defaultStyle:"lowercase"})},{"../common":3,"../type":14}],18:[function(e,t){"use strict";function n(e){return e>=48&&57>=e||e>=65&&70>=e||e>=97&&102>=e}function i(e){return e>=48&&55>=e}function r(e){return e>=48&&57>=e}function o(e){if(null===e)return!1;var t,o=e.length,a=0,s=!1;if(!o)return!1;if(t=e[a],("-"===t||"+"===t)&&(t=e[++a]),"0"===t){if(a+1===o)return!0;if(t=e[++a],"b"===t){for(a++;o>a;a++)if(t=e[a],"_"!==t){if("0"!==t&&"1"!==t)return!1;s=!0}return s}if("x"===t){for(a++;o>a;a++)if(t=e[a],"_"!==t){if(!n(e.charCodeAt(a)))return!1;s=!0}return s}for(;o>a;a++)if(t=e[a],"_"!==t){if(!i(e.charCodeAt(a)))return!1;s=!0}return s}for(;o>a;a++)if(t=e[a],"_"!==t){if(":"===t)break;if(!r(e.charCodeAt(a)))return!1;s=!0}return s?":"!==t?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(a)):!1}function a(e){var t,n,i=e,r=1,o=[];return-1!==i.indexOf("_")&&(i=i.replace(/_/g,"")),t=i[0],("-"===t||"+"===t)&&("-"===t&&(r=-1),i=i.slice(1),t=i[0]),"0"===i?0:"0"===t?"b"===i[1]?r*parseInt(i.slice(2),2):"x"===i[1]?r*parseInt(i,16):r*parseInt(i,8):-1!==i.indexOf(":")?(i.split(":").forEach(function(e){o.unshift(parseInt(e,10))}),i=0,n=1,o.forEach(function(e){i+=e*n,n*=60}),r*i):r*parseInt(i,10)}function s(e){return"[object Number]"===Object.prototype.toString.call(e)&&0===e%1&&!c.isNegativeZero(e)}var c=e("../common"),u=e("../type");t.exports=new u("tag:yaml.org,2002:int",{kind:"scalar",resolve:o,construct:a,predicate:s,represent:{binary:function(e){return"0b"+e.toString(2)},octal:function(e){return"0"+e.toString(8)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return"0x"+e.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},{"../common":3,"../type":14}],19:[function(e,t){"use strict";function n(e){if(null===e)return!1;try{var t="("+e+")",n=a.parse(t,{range:!0});return"Program"!==n.type||1!==n.body.length||"ExpressionStatement"!==n.body[0].type||"FunctionExpression"!==n.body[0].expression.type?!1:!0}catch(i){return!1}}function i(e){var t,n="("+e+")",i=a.parse(n,{range:!0}),r=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach(function(e){r.push(e.name)}),t=i.body[0].expression.body.range,new Function(r,n.slice(t[0]+1,t[1]-1))}function r(e){return e.toString()}function o(e){return"[object Function]"===Object.prototype.toString.call(e)}var a;try{a=e("esprima")}catch(s){"undefined"!=typeof window&&(a=window.esprima)}var c=e("../../type");t.exports=new c("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:n,construct:i,predicate:o,represent:r})},{"../../type":14,esprima:"esprima"}],20:[function(e,t){"use strict";function n(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,n=/\/([gim]*)$/.exec(e),i="";if("/"===t[0]){if(n&&(i=n[1]),i.length>3)return!1;if("/"!==t[t.length-i.length-1])return!1;t=t.slice(1,t.length-i.length-1)}try{return new RegExp(t,i),!0}catch(r){return!1}}function i(e){var t=e,n=/\/([gim]*)$/.exec(e),i="";return"/"===t[0]&&(n&&(i=n[1]),t=t.slice(1,t.length-i.length-1)),new RegExp(t,i)}function r(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function o(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var a=e("../../type");t.exports=new a("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:n,construct:i,predicate:o,represent:r})},{"../../type":14}],21:[function(e,t){"use strict";function n(){return!0}function i(){return void 0}function r(){return""}function o(e){return"undefined"==typeof e}var a=e("../../type");t.exports=new a("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:n,construct:i,predicate:o,represent:r})},{"../../type":14}],22:[function(e,t){"use strict";var n=e("../type");t.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},{"../type":14}],23:[function(e,t){"use strict";function n(e){return"<<"===e||null===e}var i=e("../type");t.exports=new i("tag:yaml.org,2002:merge",{kind:"scalar",resolve:n})},{"../type":14}],24:[function(e,t){"use strict";function n(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)}function i(){return null}function r(e){return null===e}var o=e("../type");t.exports=new o("tag:yaml.org,2002:null",{kind:"scalar",resolve:n,construct:i,predicate:r,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},{"../type":14}],25:[function(e,t){"use strict";function n(e){if(null===e)return!0;var t,n,i,r,s,c=[],u=e;for(t=0,n=u.length;n>t;t+=1){if(i=u[t],s=!1,"[object Object]"!==a.call(i))return!1;for(r in i)if(o.call(i,r)){if(s)return!1;s=!0}if(!s)return!1;if(-1!==c.indexOf(r))return!1;c.push(r)}return!0}function i(e){return null!==e?e:[]}var r=e("../type"),o=Object.prototype.hasOwnProperty,a=Object.prototype.toString;t.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:n,construct:i})},{"../type":14}],26:[function(e,t){"use strict";function n(e){if(null===e)return!0;var t,n,i,r,a,s=e;for(a=new Array(s.length),t=0,n=s.length;n>t;t+=1){if(i=s[t],"[object Object]"!==o.call(i))return!1;if(r=Object.keys(i),1!==r.length)return!1;a[t]=[r[0],i[r[0]]]}return!0}function i(e){if(null===e)return[];var t,n,i,r,o,a=e;for(o=new Array(a.length),t=0,n=a.length;n>t;t+=1)i=a[t],r=Object.keys(i),o[t]=[r[0],i[r[0]]];return o}var r=e("../type"),o=Object.prototype.toString;t.exports=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:n,construct:i})},{"../type":14}],27:[function(e,t){"use strict";var n=e("../type");t.exports=new n("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},{"../type":14}],28:[function(e,t){"use strict";function n(e){if(null===e)return!0;var t,n=e;for(t in n)if(o.call(n,t)&&null!==n[t])return!1;return!0}function i(e){return null!==e?e:{}}var r=e("../type"),o=Object.prototype.hasOwnProperty;t.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:n,construct:i})},{"../type":14}],29:[function(e,t){"use strict";var n=e("../type");t.exports=new n("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},{"../type":14}],30:[function(e,t){"use strict";function n(e){if(null===e)return!1;var t;return t=a.exec(e),null===t?!1:!0}function i(e){var t,n,i,r,o,s,c,u,l,p,f=0,h=null;if(t=a.exec(e),null===t)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(o=+t[4],s=+t[5],c=+t[6],t[7]){for(f=t[7].slice(0,3);f.length<3;)f+="0";f=+f}return t[9]&&(u=+t[10],l=+(t[11]||0),h=6e4*(60*u+l),"-"===t[9]&&(h=-h)),p=new Date(Date.UTC(n,i,r,o,s,c,f)),h&&p.setTime(p.getTime()-h),p}function r(e){return e.toISOString()}var o=e("../type"),a=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");t.exports=new o("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:n,construct:i,instanceOf:Date,represent:r})},{"../type":14}],"/":[function(e,t){"use strict";var n=e("./lib/js-yaml.js");t.exports=n},{"./lib/js-yaml.js":2}]},{},[])("/")})}).call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["pntbr:js-yaml-client"]={}}();
|
||
|
||
!function(){var Meteor=Package.meteor.Meteor,Template=Package.templating.Template,_=Package.underscore._,Blaze=Package.blaze.Blaze,UI=Package.blaze.UI,Handlebars=Package.blaze.Handlebars,Spacebars=Package.spacebars.Spacebars,HTML=Package.htmljs.HTML,CodeMirror,jsonlint,JSHINT,CSSLint;(function(){!function(e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else{if("function"==typeof define&&define.amd)return define([],e);CodeMirror=e()}}(function(){"use strict";function e(n,r){if(!(this instanceof e))return new e(n,r);this.options=r=r?vi(r):{},vi(Oo,r,!1),p(r);var i=r.value;"string"==typeof i&&(i=new ra(i,r.mode)),this.doc=i;var o=this.display=new t(n,i);o.wrapper.CodeMirror=this,c(this),s(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),r.autofocus&&!co&&St(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,draggingText:!1,highlight:new ui,keySeq:null},Xi&&11>Qi&&setTimeout(bi(wt,this,!0),20),Ct(this),Ai(),Xe(this),this.curOp.forceUpdate=!0,Ir(this,i),r.autofocus&&!co||Ei()==o.input?setTimeout(bi(Jt,this),20):Xt(this);for(var a in No)No.hasOwnProperty(a)&&No[a](this,r[a],zo);y(this);for(var l=0;l<qo.length;++l)qo[l](this);et(this)}function t(e,t){var n=this,r=n.input=_i("textarea",null,null,"position: absolute; padding: 0; width: 1px; height: 1em; outline: none");eo?r.style.width="1000px":r.setAttribute("wrap","off"),lo&&(r.style.border="1px solid black"),r.setAttribute("autocorrect","off"),r.setAttribute("autocapitalize","off"),r.setAttribute("spellcheck","false"),n.inputDiv=_i("div",[r],null,"overflow: hidden; position: relative; width: 3px; height: 0px;"),n.scrollbarH=_i("div",[_i("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar"),n.scrollbarV=_i("div",[_i("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),n.scrollbarFiller=_i("div",null,"CodeMirror-scrollbar-filler"),n.gutterFiller=_i("div",null,"CodeMirror-gutter-filler"),n.lineDiv=_i("div",null,"CodeMirror-code"),n.selectionDiv=_i("div",null,null,"position: relative; z-index: 1"),n.cursorDiv=_i("div",null,"CodeMirror-cursors"),n.measure=_i("div",null,"CodeMirror-measure"),n.lineMeasure=_i("div",null,"CodeMirror-measure"),n.lineSpace=_i("div",[n.measure,n.lineMeasure,n.selectionDiv,n.cursorDiv,n.lineDiv],null,"position: relative; outline: none"),n.mover=_i("div",[_i("div",[n.lineSpace],"CodeMirror-lines")],null,"position: relative"),n.sizer=_i("div",[n.mover],"CodeMirror-sizer"),n.heightForcer=_i("div",null,null,"position: absolute; height: "+pa+"px; width: 1px;"),n.gutters=_i("div",null,"CodeMirror-gutters"),n.lineGutter=null,n.scroller=_i("div",[n.sizer,n.heightForcer,n.gutters],"CodeMirror-scroll"),n.scroller.setAttribute("tabIndex","-1"),n.wrapper=_i("div",[n.inputDiv,n.scrollbarH,n.scrollbarV,n.scrollbarFiller,n.gutterFiller,n.scroller],"CodeMirror"),Xi&&8>Qi&&(n.gutters.style.zIndex=-1,n.scroller.style.paddingRight=0),lo&&(r.style.width="0px"),eo||(n.scroller.draggable=!0),oo&&(n.inputDiv.style.height="1px",n.inputDiv.style.position="absolute"),Xi&&8>Qi&&(n.scrollbarH.style.minHeight=n.scrollbarV.style.minWidth="18px"),e&&(e.appendChild?e.appendChild(n.wrapper):e(n.wrapper)),n.viewFrom=n.viewTo=t.first,n.view=[],n.externalMeasured=null,n.viewOffset=0,n.lastWrapHeight=n.lastWrapWidth=0,n.updateLineNumbers=null,n.lineNumWidth=n.lineNumInnerWidth=n.lineNumChars=null,n.prevInput="",n.alignWidgets=!1,n.pollingFast=!1,n.poll=new ui,n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.inaccurateSelection=!1,n.maxLine=null,n.maxLineLength=0,n.maxLineChanged=!1,n.wheelDX=n.wheelDY=n.wheelStartX=n.wheelStartY=null,n.shift=!1,n.selForContextMenu=null}function n(t){t.doc.mode=e.getMode(t.options,t.doc.modeOption),r(t)}function r(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.frontier=e.doc.first,xe(e,100),e.state.modeGen++,e.curOp&&pt(e)}function i(e){e.options.lineWrapping?(Ea(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth=""):(Ta(e.display.wrapper,"CodeMirror-wrap"),f(e)),a(e),pt(e),qe(e),setTimeout(function(){g(e)},100)}function o(e){var t=Ze(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Je(e.display)-3);return function(i){if(rr(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function a(e){var t=e.doc,n=o(e);t.iter(function(e){var t=n(e);t!=e.height&&zr(e,t)})}function s(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),qe(e)}function l(e){c(e),pt(e),setTimeout(function(){b(e)},20)}function c(e){var t=e.display.gutters,n=e.options.gutters;wi(t);for(var r=0;r<n.length;++r){var i=n[r],o=t.appendChild(_i("div",null,"CodeMirror-gutter "+i));"CodeMirror-linenumbers"==i&&(e.display.lineGutter=o,o.style.width=(e.display.lineNumWidth||1)+"px")}t.style.display=r?"":"none",u(e)}function u(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px",e.display.scrollbarH.style.left=e.options.fixedGutter?t+"px":0}function d(e){if(0==e.height)return 0;for(var t=e.text.length,n,r=e;n=Zn(r);){var i=n.find(0,!0);r=i.from.line,t+=i.from.ch-i.to.ch}for(r=e;n=Jn(r);){var i=n.find(0,!0);t-=r.text.length-i.from.ch,r=i.to.line,t+=r.text.length-i.to.ch}return t}function f(e){var t=e.display,n=e.doc;t.maxLine=Rr(n,n.first),t.maxLineLength=d(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=d(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function p(e){var t=hi(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function h(e){return e.display.scroller.clientHeight-e.display.wrapper.clientHeight<pa-3}function m(e){var t=e.display.scroller;return{clientHeight:t.clientHeight,barHeight:e.display.scrollbarV.clientHeight,scrollWidth:t.scrollWidth,clientWidth:t.clientWidth,hScrollbarTakesSpace:h(e),barWidth:e.display.scrollbarH.clientWidth,docHeight:Math.round(e.doc.height+Ee(e.display))}}function g(e,t){t||(t=m(e));var n=e.display,r=Ri(n.measure),i=t.docHeight+pa,o=t.scrollWidth>t.clientWidth;o&&t.scrollWidth<=t.clientWidth+1&&r>0&&!t.hScrollbarTakesSpace&&(o=!1);var a=i>t.clientHeight;if(a?(n.scrollbarV.style.display="block",n.scrollbarV.style.bottom=o?r+"px":"0",n.scrollbarV.firstChild.style.height=Math.max(0,i-t.clientHeight+(t.barHeight||n.scrollbarV.clientHeight))+"px"):(n.scrollbarV.style.display="",n.scrollbarV.firstChild.style.height="0"),o?(n.scrollbarH.style.display="block",n.scrollbarH.style.right=a?r+"px":"0",n.scrollbarH.firstChild.style.width=t.scrollWidth-t.clientWidth+(t.barWidth||n.scrollbarH.clientWidth)+"px"):(n.scrollbarH.style.display="",n.scrollbarH.firstChild.style.width="0"),o&&a?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=n.scrollbarFiller.style.width=r+"px"):n.scrollbarFiller.style.display="",o&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r+"px",n.gutterFiller.style.width=n.gutters.offsetWidth+"px"):n.gutterFiller.style.display="",!e.state.checkedOverlayScrollbar&&t.clientHeight>0){if(0===r){var s=uo&&!ao?"12px":"18px";n.scrollbarV.style.minWidth=n.scrollbarH.style.minHeight=s;var l=function(t){ni(t)!=n.scrollbarV&&ni(t)!=n.scrollbarH&<(e,It)(t)};ca(n.scrollbarV,"mousedown",l),ca(n.scrollbarH,"mousedown",l)}e.state.checkedOverlayScrollbar=!0}}function v(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Te(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=Dr(t,r),a=Dr(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;if(o>s)return{from:s,to:Dr(t,$r(Rr(t,s))+e.wrapper.clientHeight)};if(Math.min(l,t.lastLine())>=a)return{from:Dr(t,$r(Rr(t,l))-e.wrapper.clientHeight),to:l}}return{from:o,to:Math.max(a,o+1)}}function b(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=x(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&n[a].gutter&&(n[a].gutter.style.left=o);var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function y(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=k(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(_i("div",[_i("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a),r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",u(e),!0}return!1}function k(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function x(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function _(e,t,n){var r=e.display;this.viewport=t,this.visible=v(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldViewFrom=r.viewFrom,this.oldViewTo=r.viewTo,this.oldScrollerWidth=r.scroller.clientWidth,this.force=n,this.dims=A(e)}function w(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return mt(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&0==yt(e))return!1;y(e)&&(mt(e),t.dims=A(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),vo&&(o=tr(e.doc,o),a=nr(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;bt(e,o,a),n.viewOffset=$r(Rr(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=yt(e);if(!s&&0==l&&!t.force&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Ei();return l>4&&(n.lineDiv.style.display="none"),I(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),c&&Ei()!=c&&c.offsetHeight&&c.focus(),wi(n.cursorDiv),wi(n.selectionDiv),s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,xe(e,400)),n.updateLineNumbers=null,!0}function S(e,t){for(var n=t.force,r=t.viewport,i=!0;;i=!1){if(i&&e.options.lineWrapping&&t.oldScrollerWidth!=e.display.scroller.clientWidth)n=!0;else if(n=!1,r&&null!=r.top&&(r={top:Math.min(e.doc.height+Ee(e.display)-pa-e.display.scroller.clientHeight,r.top)}),t.visible=v(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!w(e,t))break;M(e);var o=m(e);ve(e),E(e,o),g(e,o)}ii(e,"update",e),(e.display.viewFrom!=t.oldViewFrom||e.display.viewTo!=t.oldViewTo)&&ii(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo)}function T(e,t){var n=new _(e,t);if(w(e,n)){M(e),S(e,n);var r=m(e);ve(e),E(e,r),g(e,r)}}function E(e,t){e.display.sizer.style.minHeight=e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=Math.max(t.docHeight,t.clientHeight-pa)+"px"}function C(e,t){e.display.sizer.offsetWidth+e.display.gutters.offsetWidth<e.display.scroller.clientWidth-1&&(e.display.sizer.style.minHeight=e.display.heightForcer.style.top="0px",e.display.gutters.style.height=t.docHeight+"px")}function M(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o;if(!i.hidden){if(Xi&&8>Qi){var a=i.node.offsetTop+i.node.offsetHeight;o=a-n,n=a}else{var s=i.node.getBoundingClientRect();o=s.bottom-s.top}var l=i.line.height-o;if(2>o&&(o=Ze(t)),(l>.001||-.001>l)&&(zr(i.line,o),L(i.line),i.rest))for(var c=0;c<i.rest.length;c++)L(i.rest[c])}}}function L(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t)e.widgets[t].height=e.widgets[t].node.offsetHeight}function A(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a)n[e.options.gutters[a]]=o.offsetLeft+o.clientLeft+i,r[e.options.gutters[a]]=o.clientWidth;return{fixedPos:x(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function I(e,t,n){function r(t){var n=t.nextSibling;return eo&&uo&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var i=e.display,o=e.options.lineNumbers,a=i.lineDiv,s=a.firstChild,l=i.view,c=i.viewFrom,u=0;u<l.length;u++){var d=l[u];if(d.hidden);else if(d.node){for(;s!=d.node;)s=r(s);var f=o&&null!=t&&c>=t&&d.lineNumber;d.changes&&(hi(d.changes,"gutter")>-1&&(f=!1),R(e,d,c,n)),f&&(wi(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(k(e.options,c)))),s=d.node.nextSibling}else{var p=j(e,d,c,n);a.insertBefore(p,s)}c+=d.size}for(;s;)s=r(s)}function R(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?P(e,t):"gutter"==o?$(e,t,n,r):"class"==o?D(t):"widget"==o&&q(t,r)}t.changes=null}function O(e){return e.node==e.text&&(e.node=_i("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),Xi&&8>Qi&&(e.node.style.zIndex=2)),e.node}function N(e){var t=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(t&&(t+=" CodeMirror-linebackground"),e.background)t?e.background.className=t:(e.background.parentNode.removeChild(e.background),e.background=null);else if(t){var n=O(e);e.background=n.insertBefore(_i("div",null,t),n.firstChild)}}function z(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):yr(e,t)}function P(e,t){var n=t.text.className,r=z(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,D(t)):n&&(t.text.className=n)}function D(e){N(e),e.line.wrapClass?O(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var t=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=t||""}function $(e,t,n,r){t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null);var i=t.line.gutterMarkers;if(e.options.lineNumbers||i){var o=O(t),a=t.gutter=o.insertBefore(_i("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),t.text);if(t.line.gutterClass&&(a.className+=" "+t.line.gutterClass),!e.options.lineNumbers||i&&i["CodeMirror-linenumbers"]||(t.lineNumber=a.appendChild(_i("div",k(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),i)for(var s=0;s<e.options.gutters.length;++s){var l=e.options.gutters[s],c=i.hasOwnProperty(l)&&i[l];c&&a.appendChild(_i("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[l]+"px; width: "+r.gutterWidth[l]+"px"))}}}function q(e,t){e.alignable&&(e.alignable=null);for(var n=e.node.firstChild,r;n;n=r){var r=n.nextSibling;"CodeMirror-linewidget"==n.className&&e.node.removeChild(n)}W(e,t)}function j(e,t,n,r){var i=z(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),D(t),$(e,t,n,r),W(t,r),t.node}function W(e,t){if(U(e.line,e,t,!0),e.rest)for(var n=0;n<e.rest.length;n++)U(e.rest[n],e,t,!1)}function U(e,t,n,r){if(e.widgets)for(var i=O(t),o=0,a=e.widgets;o<a.length;++o){var s=a[o],l=_i("div",[s.node],"CodeMirror-linewidget");s.handleMouseEvents||(l.ignoreEvents=!0),F(s,l,t,n),r&&s.above?i.insertBefore(l,t.gutter||t.text):i.appendChild(l),ii(s,"redraw")}}function F(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function B(e){return bo(e.line,e.ch)}function H(e,t){return yo(e,t)<0?t:e}function V(e,t){return yo(e,t)<0?e:t}function G(e,t){this.ranges=e,this.primIndex=t}function K(e,t){this.anchor=e,this.head=t}function Y(e,t){var n=e[t];e.sort(function(e,t){return yo(e.from(),t.from())}),t=hi(e,n);for(var r=1;r<e.length;r++){var i=e[r],o=e[r-1];if(yo(o.to(),i.from())>=0){var a=V(o.from(),i.from()),s=H(o.to(),i.to()),l=o.empty()?i.from()==i.head:o.from()==o.head;t>=r&&--t,e.splice(--r,2,new K(l?s:a,l?a:s))}}return new G(e,t)}function Z(e,t){return new G([new K(e,t||e)],0)}function J(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function X(e,t){if(t.line<e.first)return bo(e.first,0);var n=e.first+e.size-1;return t.line>n?bo(n,Rr(e,n).text.length):Q(t,Rr(e,t.line).text.length)}function Q(e,t){var n=e.ch;return null==n||n>t?bo(e.line,t):0>n?bo(e.line,0):e}function ee(e,t){return t>=e.first&&t<e.first+e.size}function te(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=X(e,t[r]);return n}function ne(e,t,n,r){if(e.cm&&e.cm.display.shift||e.extend){var i=t.anchor;if(r){var o=yo(n,i)<0;o!=yo(r,i)<0?(i=n,n=r):o!=yo(n,r)<0&&(n=r)}return new K(i,n)}return new K(r||n,n)}function re(e,t,n,r){ce(e,new G([ne(e,e.sel.primary(),t,n)],0),r)}function ie(e,t,n){for(var r=[],i=0;i<e.sel.ranges.length;i++)r[i]=ne(e,e.sel.ranges[i],t[i],null);var o=Y(r,e.sel.primIndex);ce(e,o,n)}function oe(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,ce(e,Y(i,e.sel.primIndex),r)}function ae(e,t,n,r){ce(e,Z(t,n),r)}function se(e,t){var n={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new K(X(e,t[n].anchor),X(e,t[n].head))}};return da(e,"beforeSelectionChange",e,n),e.cm&&da(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?Y(n.ranges,n.ranges.length-1):t}function le(e,t,n){var r=e.history.done,i=pi(r);i&&i.ranges?(r[r.length-1]=t,ue(e,t,n)):ce(e,t,n)}function ce(e,t,n){ue(e,t,n),Vr(e,e.sel,e.cm?e.cm.curOp.id:0/0,n)}function ue(e,t,n){(li(e,"beforeSelectionChange")||e.cm&&li(e.cm,"beforeSelectionChange"))&&(t=se(e,t));var r=n&&n.bias||(yo(t.primary().head,e.sel.primary().head)<0?-1:1);de(e,pe(e,t,r,!0)),n&&n.scroll===!1||!e.cm||yn(e.cm)}function de(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,si(e.cm)),ii(e,"cursorActivity",e))}function fe(e){de(e,pe(e,e.sel,null,!1),ma)}function pe(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=he(e,a.anchor,n,r),l=he(e,a.head,n,r);(i||s!=a.anchor||l!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new K(s,l))}return i?Y(i,t.primIndex):t}function he(e,t,n,r){var i=!1,o=t,a=n||1;e.cantEdit=!1;e:for(;;){var s=Rr(e,o.line);if(s.markedSpans)for(var l=0;l<s.markedSpans.length;++l){var c=s.markedSpans[l],u=c.marker;if((null==c.from||(u.inclusiveLeft?c.from<=o.ch:c.from<o.ch))&&(null==c.to||(u.inclusiveRight?c.to>=o.ch:c.to>o.ch))){if(r&&(da(u,"beforeCursorEnter"),u.explicitlyCleared)){if(s.markedSpans){--l;continue}break}if(!u.atomic)continue;var d=u.find(0>a?-1:1);if(0==yo(d,o)&&(d.ch+=a,d.ch<0?d=d.line>e.first?X(e,bo(d.line-1)):null:d.ch>s.text.length&&(d=d.line<e.first+e.size-1?bo(d.line+1,0):null),!d)){if(i)return r?(e.cantEdit=!0,bo(e.first,0)):he(e,t,n,!0);i=!0,d=t,a=-a}o=d;continue e}}return o}}function me(e){for(var t=e.display,n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++){var s=n.sel.ranges[a],l=s.empty();(l||e.options.showCursorWhenSelecting)&&be(e,s,i),l||ye(e,s,o)}if(e.options.moveInputWithCursor){var c=He(e,n.sel.primary().head,"div"),u=t.wrapper.getBoundingClientRect(),d=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,c.top+d.top-u.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,c.left+d.left-u.left))}return r}function ge(e,t){Si(e.display.cursorDiv,t.cursors),Si(e.display.selectionDiv,t.selection),null!=t.teTop&&(e.display.inputDiv.style.top=t.teTop+"px",e.display.inputDiv.style.left=t.teLeft+"px")}function ve(e){ge(e,me(e))}function be(e,t,n){var r=He(e,t.head,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(_i("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(_i("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function ye(e,t,n){function r(e,t,n,r){0>t&&(t=0),t=Math.round(t),r=Math.round(r),s.appendChild(_i("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px; top: "+t+"px; width: "+(null==n?u-e:n)+"px; height: "+(r-t)+"px"))}function i(t,n,i){function o(n,r){return Be(e,bo(t,n),"div",s,r)}var s=Rr(a,t),l=s.text.length,d,f;return Pi(qr(s),n||0,null==i?l:i,function(e,t,a){var s=o(e,"left"),p,h,m;if(e==t)p=s,h=m=s.left;else{if(p=o(t-1,"right"),"rtl"==a){var g=s;s=p,p=g}h=s.left,m=p.right}null==n&&0==e&&(h=c),p.top-s.top>3&&(r(h,s.top,null,s.bottom),h=c,s.bottom<p.top&&r(h,s.bottom,null,p.top)),null==i&&t==l&&(m=u),(!d||s.top<d.top||s.top==d.top&&s.left<d.left)&&(d=s),(!f||p.bottom>f.bottom||p.bottom==f.bottom&&p.right>f.right)&&(f=p),c+1>h&&(h=c),r(h,p.top,m-h,p.bottom)}),{start:d,end:f}}var o=e.display,a=e.doc,s=document.createDocumentFragment(),l=Ce(e.display),c=l.left,u=o.lineSpace.offsetWidth-l.right,d=t.from(),f=t.to();if(d.line==f.line)i(d.line,d.ch,f.ch);else{var p=Rr(a,d.line),h=Rr(a,f.line),m=Qn(p)==Qn(h),g=i(d.line,d.ch,m?p.text.length+1:null).end,v=i(f.line,m?0:null,f.ch).start;m&&(g.top<v.top-2?(r(g.right,g.top,null,g.bottom),r(c,v.top,v.left,v.bottom)):r(g.right,g.top,v.left-g.right,g.bottom)),g.bottom<v.top&&r(c,g.bottom,null,v.top)}n.appendChild(s)}function ke(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function xe(e,t){e.doc.mode.startState&&e.doc.frontier<e.display.viewTo&&e.state.highlight.set(t,bi(_e,e))}function _e(e){var t=e.doc;if(t.frontier<t.first&&(t.frontier=t.first),!(t.frontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Wo(t.mode,Se(e,t.frontier)),i=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(t.frontier>=e.display.viewFrom){var a=o.styles,s=mr(e,o,r,!0);o.styles=s.styles;var l=o.styleClasses,c=s.classes;c?o.styleClasses=c:l&&(o.styleClasses=null);for(var u=!a||a.length!=o.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),d=0;!u&&d<a.length;++d)u=a[d]!=o.styles[d];u&&i.push(t.frontier),o.stateAfter=Wo(t.mode,r)}else vr(e,o.text,r),o.stateAfter=t.frontier%5==0?Wo(t.mode,r):null;return++t.frontier,+new Date>n?(xe(e,e.options.workDelay),!0):void 0}),i.length&&st(e,function(){for(var t=0;t<i.length;t++)ht(e,i[t],"text")})}}function we(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Rr(o,s-1);if(l.stateAfter&&(!n||s<=o.frontier))return s;var c=ba(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}function Se(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return!0;var o=we(e,t,n),a=o>r.first&&Rr(r,o-1).stateAfter;return a=a?Wo(r.mode,a):Uo(r.mode),r.iter(o,t,function(n){vr(e,n.text,a);var s=o==t-1||o%5==0||o>=i.viewFrom&&o<i.viewTo;n.stateAfter=s?Wo(r.mode,a):null,++o}),n&&(r.frontier=o),a}function Te(e){return e.lineSpace.offsetTop}function Ee(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Ce(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=Si(e.measure,_i("pre","x")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Me(e,t,n){var r=e.options.lineWrapping,i=r&&e.display.scroller.clientWidth;if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&o.push((l.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Le(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var r=0;r<e.rest.length;r++)if(Pr(e.rest[r])>n)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function Ae(e,t){t=Qn(t);var n=Pr(t),r=e.display.externalMeasured=new dt(e.doc,t,n);r.lineN=n;var i=r.built=yr(e,r);return r.text=i.pre,Si(e.display.lineMeasure,i.pre),r}function Ie(e,t,n,r){return Ne(e,Oe(e,t),n,r)}function Re(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[gt(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Oe(e,t){var n=Pr(t),r=Re(e,n);r&&!r.text?r=null:r&&r.changes&&R(e,r,n,A(e)),r||(r=Ae(e,t));var i=Le(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Ne(e,t,n,r,i){t.before&&(n=-1);var o=n+(r||""),a;return t.cache.hasOwnProperty(o)?a=t.cache[o]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Me(e,t.view,t.rect),t.hasHeights=!0),a=ze(e,t,n,r),a.bogus||(t.cache[o]=a)),{left:a.left,right:a.right,top:i?a.rtop:a.top,bottom:i?a.rbottom:a.bottom}}function ze(e,t,n,r){for(var i=t.map,o,a,s,l,c=0;c<i.length;c+=3){var u=i[c],d=i[c+1];if(u>n?(a=0,s=1,l="left"):d>n?(a=n-u,s=a+1):(c==i.length-3||n==d&&i[c+3]>n)&&(s=d-u,a=s-1,n>=d&&(l="right")),null!=a){if(o=i[c+2],u==d&&r==(o.insertLeft?"left":"right")&&(l=r),"left"==r&&0==a)for(;c&&i[c-2]==i[c-3]&&i[c-1].insertLeft;)o=i[(c-=3)+2],l="left";if("right"==r&&a==d-u)for(;c<i.length-3&&i[c+3]==i[c+4]&&!i[c+5].insertLeft;)o=i[(c+=3)+2],l="right";break}}var f;if(3==o.nodeType){for(var c=0;4>c;c++){for(;a&&xi(t.line.text.charAt(u+a));)--a;for(;d>u+s&&xi(t.line.text.charAt(u+s));)++s;if(Xi&&9>Qi&&0==a&&s==d-u)f=o.parentNode.getBoundingClientRect();else if(Xi&&e.options.lineWrapping){var p=Sa(o,a,s).getClientRects();f=p.length?p["right"==r?p.length-1:0]:ko}else f=Sa(o,a,s).getBoundingClientRect()||ko;if(f.left||f.right||0==a)break;s=a,a-=1,l="right"}Xi&&11>Qi&&(f=Pe(e.display.measure,f))}else{a>0&&(l=r="right");var p;f=e.options.lineWrapping&&(p=o.getClientRects()).length>1?p["right"==r?p.length-1:0]:o.getBoundingClientRect()}if(Xi&&9>Qi&&!a&&(!f||!f.left&&!f.right)){var h=o.parentNode.getClientRects()[0];f=h?{left:h.left,right:h.left+Je(e.display),top:h.top,bottom:h.bottom}:ko}for(var m=f.top-t.rect.top,g=f.bottom-t.rect.top,v=(m+g)/2,b=t.view.measure.heights,c=0;c<b.length-1&&!(v<b[c]);c++);var y=c?b[c-1]:0,k=b[c],x={left:("right"==l?f.right:f.left)-t.rect.left,right:("left"==l?f.left:f.right)-t.rect.left,top:y,bottom:k};return f.left||f.right||(x.bogus=!0),e.options.singleCursorHeightPerLine||(x.rtop=m,x.rbottom=g),x}function Pe(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!zi(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function De(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function $e(e){e.display.externalMeasure=null,wi(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)De(e.display.view[t])}function qe(e){$e(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function je(){return window.pageXOffset||(document.documentElement||document.body).scrollLeft}function We(){return window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ue(e,t,n,r){if(t.widgets)for(var i=0;i<t.widgets.length;++i)if(t.widgets[i].above){var o=ar(t.widgets[i]);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=$r(t);if("local"==r?a+=Te(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:We());var l=s.left+("window"==r?0:je());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Fe(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=je(),i-=We();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Be(e,t,n,r,i){return r||(r=Rr(e.doc,t.line)),Ue(e,r,Ie(e,r,t.ch,i),n)}function He(e,t,n,r,i,o){function a(t,a){var s=Ne(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Ue(e,r,s,n)}function s(e,t){var n=l[t],r=n.level%2;return e==Di(n)&&t&&n.level<l[t-1].level?(n=l[--t],e=$i(n)-(n.level%2?0:1),r=!0):e==$i(n)&&t<l.length-1&&n.level<l[t+1].level&&(n=l[++t],e=Di(n)-n.level%2,r=!1),r&&e==n.to&&e>n.from?a(e-1):a(e,r)}r=r||Rr(e.doc,t.line),i||(i=Oe(e,r));var l=qr(r),c=t.ch;if(!l)return a(c);var u=Hi(l,c),d=s(c,u);return null!=Da&&(d.other=s(c,Da)),d}function Ve(e,t){var n=0,t=X(e.doc,t);e.options.lineWrapping||(n=Je(e.display)*t.ch);var r=Rr(e.doc,t.line),i=$r(r)+Te(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Ge(e,t,n,r){var i=bo(e,t);return i.xRel=r,n&&(i.outside=!0),i}function Ke(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,0>n)return Ge(r.first,0,!0,-1);var i=Dr(r,n),o=r.first+r.size-1;if(i>o)return Ge(r.first+r.size-1,Rr(r,o).text.length,!0,1);0>t&&(t=0);for(var a=Rr(r,i);;){var s=Ye(e,a,i,t,n),l=Jn(a),c=l&&l.find(0,!0);if(!l||!(s.ch>c.from.ch||s.ch==c.from.ch&&s.xRel>0))return s;i=Pr(a=c.to.line)}}function Ye(e,t,n,r,i){function o(r){var i=He(e,bo(n,r),"line",t,c);return s=!0,a>i.bottom?i.left-l:a<i.top?i.left+l:(s=!1,i.left)}var a=i-$r(t),s=!1,l=2*e.display.wrapper.clientWidth,c=Oe(e,t),u=qr(t),d=t.text.length,f=qi(t),p=ji(t),h=o(f),m=s,g=o(p),v=s;if(r>g)return Ge(n,p,v,1);for(;;){if(u?p==f||p==Gi(t,f,1):1>=p-f){for(var b=h>r||g-r>=r-h?f:p,y=r-(b==f?h:g);xi(t.text.charAt(b));)++b;var k=Ge(n,b,b==f?m:v,-1>y?-1:y>1?1:0);return k}var x=Math.ceil(d/2),_=f+x;if(u){_=f;for(var w=0;x>w;++w)_=Gi(t,_,1)}var S=o(_);S>r?(p=_,g=S,(v=s)&&(g+=1e3),d=x):(f=_,h=S,m=s,d-=x)}}function Ze(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==xo){xo=_i("pre");for(var t=0;49>t;++t)xo.appendChild(document.createTextNode("x")),xo.appendChild(_i("br"));xo.appendChild(document.createTextNode("x"))}Si(e.measure,xo);var n=xo.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),wi(e.measure),n||1}function Je(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=_i("span","xxxxxxxxxx"),n=_i("pre",[t]);Si(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Xe(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,id:++wo},_o?_o.ops.push(e.curOp):e.curOp.ownsGroup=_o={ops:[e.curOp],delayedCallbacks:[]}}function Qe(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n]();for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++](i.cm)}}while(n<t.length);
|
||
|
||
}function et(e){var t=e.curOp,n=t.ownsGroup;if(n)try{Qe(n)}finally{_o=null;for(var r=0;r<n.ops.length;r++)n.ops[r].cm.curOp=null;tt(n)}}function tt(e){for(var t=e.ops,n=0;n<t.length;n++)nt(t[n]);for(var n=0;n<t.length;n++)rt(t[n]);for(var n=0;n<t.length;n++)it(t[n]);for(var n=0;n<t.length;n++)ot(t[n]);for(var n=0;n<t.length;n++)at(t[n])}function nt(e){var t=e.cm,n=t.display;e.updateMaxLine&&f(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new _(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function rt(e){e.updatedDisplay=e.mustUpdate&&w(e.cm,e.update)}function it(e){var t=e.cm,n=t.display;e.updatedDisplay&&M(t),e.barMeasure=m(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ie(t,n.maxLine,n.maxLine.text.length).left+3,e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo+pa-n.scroller.clientWidth)),(e.updatedDisplay||e.selectionChanged)&&(e.newSelectionNodes=me(t))}function ot(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&jt(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1),e.newSelectionNodes&&ge(t,e.newSelectionNodes),e.updatedDisplay&&E(t,e.barMeasure),(e.updatedDisplay||e.startHeight!=t.doc.height)&&g(t,e.barMeasure),e.selectionChanged&&ke(t),t.state.focused&&e.updateInput&&wt(t,e.typing)}function at(e){var t=e.cm,n=t.display,r=t.doc;if(null!=e.adjustWidthTo&&Math.abs(e.barMeasure.scrollWidth-t.display.scroller.scrollWidth)>1&&g(t),e.updatedDisplay&&S(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&(n.scroller.scrollTop!=e.scrollTop||e.forceScroll)){var i=Math.max(0,Math.min(n.scroller.scrollHeight-n.scroller.clientHeight,e.scrollTop));n.scroller.scrollTop=n.scrollbarV.scrollTop=r.scrollTop=i}if(null!=e.scrollLeft&&(n.scroller.scrollLeft!=e.scrollLeft||e.forceScroll)){var o=Math.max(0,Math.min(n.scroller.scrollWidth-n.scroller.clientWidth,e.scrollLeft));n.scroller.scrollLeft=n.scrollbarH.scrollLeft=r.scrollLeft=o,b(t)}if(e.scrollToPos){var a=mn(t,X(r,e.scrollToPos.from),X(r,e.scrollToPos.to),e.scrollToPos.margin);e.scrollToPos.isCursor&&t.state.focused&&hn(t,a)}var s=e.maybeHiddenMarkers,l=e.maybeUnhiddenMarkers;if(s)for(var c=0;c<s.length;++c)s[c].lines.length||da(s[c],"hide");if(l)for(var c=0;c<l.length;++c)l[c].lines.length&&da(l[c],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.updatedDisplay&&eo&&(t.options.lineWrapping&&C(t,e.barMeasure),e.barMeasure.scrollWidth>e.barMeasure.clientWidth&&e.barMeasure.scrollWidth<e.barMeasure.clientWidth+1&&!h(t)&&g(t)),e.changeObjs&&da(t,"changes",t,e.changeObjs)}function st(e,t){if(e.curOp)return t();Xe(e);try{return t()}finally{et(e)}}function lt(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Xe(e);try{return t.apply(e,arguments)}finally{et(e)}}}function ct(e){return function(){if(this.curOp)return e.apply(this,arguments);Xe(this);try{return e.apply(this,arguments)}finally{et(this)}}}function ut(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Xe(t);try{return e.apply(this,arguments)}finally{et(t)}}}function dt(e,t,n){this.line=t,this.rest=er(t),this.size=this.rest?Pr(pi(this.rest))-n+1:1,this.node=this.text=null,this.hidden=rr(e,t)}function ft(e,t,n){for(var r=[],i,o=t;n>o;o=i){var a=new dt(e.doc,Rr(e.doc,o),o);i=o+a.size,r.push(a)}return r}function pt(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)vo&&tr(e.doc,t)<i.viewTo&&mt(e);else if(n<=i.viewFrom)vo&&nr(e.doc,n+r)>i.viewFrom?mt(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)mt(e);else if(t<=i.viewFrom){var o=vt(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):mt(e)}else if(n>=i.viewTo){var o=vt(e,t,t,-1);o?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):mt(e)}else{var a=vt(e,t,t,-1),s=vt(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(ft(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):mt(e)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:t<l.lineN+l.size&&(i.externalMeasured=null))}function ht(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[gt(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==hi(a,n)&&a.push(n)}}}function mt(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function gt(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,0>t)return null;for(var n=e.display.view,r=0;r<n.length;r++)if(t-=n[r].size,0>t)return r}function vt(e,t,n,r){var i=gt(e,t),o,a=e.display.view;if(!vo||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var s=0,l=e.display.viewFrom;i>s;s++)l+=a[s].size;if(l!=t){if(r>0){if(i==a.length-1)return null;o=l+a[i].size-t,i++}else o=l-t;t+=o,n+=o}for(;tr(e.doc,n)!=n;){if(i==(0>r?0:a.length-1))return null;n+=r*a[i-(0>r?1:0)].size,i+=r}return{index:i,lineN:n}}function bt(e,t,n){var r=e.display,i=r.view;0==i.length||t>=r.viewTo||n<=r.viewFrom?(r.view=ft(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=ft(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(gt(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(ft(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,gt(e,n)))),r.viewTo=n}function yt(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function kt(e){e.display.pollingFast||e.display.poll.set(e.options.pollInterval,function(){_t(e),e.state.focused&&kt(e)})}function xt(e){function t(){var r=_t(e);r||n?(e.display.pollingFast=!1,kt(e)):(n=!0,e.display.poll.set(60,t))}var n=!1;e.display.pollingFast=!0,e.display.poll.set(20,t)}function _t(e){var t=e.display.input,n=e.display.prevInput,r=e.doc;if(!e.state.focused||Oa(t)&&!n||Et(e)||e.options.disableInput||e.state.keySeq)return!1;e.state.pasteIncoming&&e.state.fakedLastChar&&(t.value=t.value.substring(0,t.value.length-1),e.state.fakedLastChar=!1);var i=t.value;if(i==n&&!e.somethingSelected())return!1;if(Xi&&Qi>=9&&e.display.inputHasSelection===i||uo&&/[\uf700-\uf7ff]/.test(i))return wt(e),!1;var o=!e.curOp;o&&Xe(e),e.display.shift=!1,8203!=i.charCodeAt(0)||r.sel!=e.display.selForContextMenu||n||(n="");for(var a=0,s=Math.min(n.length,i.length);s>a&&n.charCodeAt(a)==i.charCodeAt(a);)++a;var l=i.slice(a),c=Ra(l),u=null;e.state.pasteIncoming&&r.sel.ranges.length>1&&(So&&So.join("\n")==l?u=r.sel.ranges.length%So.length==0&&mi(So,Ra):c.length==r.sel.ranges.length&&(u=mi(c,function(e){return[e]})));for(var d=r.sel.ranges.length-1;d>=0;d--){var f=r.sel.ranges[d],p=f.from(),h=f.to();a<n.length?p=bo(p.line,p.ch-(n.length-a)):e.state.overwrite&&f.empty()&&!e.state.pasteIncoming&&(h=bo(h.line,Math.min(Rr(r,h.line).text.length,h.ch+pi(c).length)));var m=e.curOp.updateInput,g={from:p,to:h,text:u?u[d%u.length]:c,origin:e.state.pasteIncoming?"paste":e.state.cutIncoming?"cut":"+input"};if(sn(e.doc,g),ii(e,"inputRead",e,g),l&&!e.state.pasteIncoming&&e.options.electricChars&&e.options.smartIndent&&f.head.ch<100&&(!d||r.sel.ranges[d-1].head.line!=f.head.line)){var v=e.getModeAt(f.head),b=Ro(g);if(v.electricChars){for(var y=0;y<v.electricChars.length;y++)if(l.indexOf(v.electricChars.charAt(y))>-1){xn(e,b.line,"smart");break}}else v.electricInput&&v.electricInput.test(Rr(r,b.line).text.slice(0,b.ch))&&xn(e,b.line,"smart")}}return yn(e),e.curOp.updateInput=m,e.curOp.typing=!0,i.length>1e3||i.indexOf("\n")>-1?t.value=e.display.prevInput="":e.display.prevInput=i,o&&et(e),e.state.pasteIncoming=e.state.cutIncoming=!1,!0}function wt(e,t){var n,r,i=e.doc;if(e.somethingSelected()){e.display.prevInput="";var o=i.sel.primary();n=Na&&(o.to().line-o.from().line>100||(r=e.getSelection()).length>1e3);var a=n?"-":r||e.getSelection();e.display.input.value=a,e.state.focused&&ka(e.display.input),Xi&&Qi>=9&&(e.display.inputHasSelection=a)}else t||(e.display.prevInput=e.display.input.value="",Xi&&Qi>=9&&(e.display.inputHasSelection=null));e.display.inaccurateSelection=n}function St(e){"nocursor"==e.options.readOnly||co&&Ei()==e.display.input||e.display.input.focus()}function Tt(e){e.state.focused||(St(e),Jt(e))}function Et(e){return e.options.readOnly||e.doc.cantEdit}function Ct(e){function t(){e.state.focused&&setTimeout(bi(St,e),0)}function n(t){ai(e,t)||la(t)}function r(t){if(e.somethingSelected())So=e.getSelections(),i.inaccurateSelection&&(i.prevInput="",i.inaccurateSelection=!1,i.input.value=So.join("\n"),ka(i.input));else{for(var n=[],r=[],o=0;o<e.doc.sel.ranges.length;o++){var a=e.doc.sel.ranges[o].head.line,s={anchor:bo(a,0),head:bo(a+1,0)};r.push(s),n.push(e.getRange(s.anchor,s.head))}"cut"==t.type?e.setSelections(r,null,ma):(i.prevInput="",i.input.value=n.join("\n"),ka(i.input)),So=n}"cut"==t.type&&(e.state.cutIncoming=!0)}var i=e.display;ca(i.scroller,"mousedown",lt(e,It)),Xi&&11>Qi?ca(i.scroller,"dblclick",lt(e,function(t){if(!ai(e,t)){var n=At(e,t);if(n&&!Pt(e,t)&&!Lt(e.display,t)){aa(t);var r=e.findWordAt(n);re(e.doc,r.anchor,r.head)}}})):ca(i.scroller,"dblclick",function(t){ai(e,t)||aa(t)}),ca(i.lineSpace,"selectstart",function(e){Lt(i,e)||aa(e)}),mo||ca(i.scroller,"contextmenu",function(t){Qt(e,t)}),ca(i.scroller,"scroll",function(){i.scroller.clientHeight&&(qt(e,i.scroller.scrollTop),jt(e,i.scroller.scrollLeft,!0),da(e,"scroll",e))}),ca(i.scrollbarV,"scroll",function(){i.scroller.clientHeight&&qt(e,i.scrollbarV.scrollTop)}),ca(i.scrollbarH,"scroll",function(){i.scroller.clientHeight&&jt(e,i.scrollbarH.scrollLeft)}),ca(i.scroller,"mousewheel",function(t){Wt(e,t)}),ca(i.scroller,"DOMMouseScroll",function(t){Wt(e,t)}),ca(i.scrollbarH,"mousedown",t),ca(i.scrollbarV,"mousedown",t),ca(i.wrapper,"scroll",function(){i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),ca(i.input,"keyup",function(t){Yt.call(e,t)}),ca(i.input,"input",function(){Xi&&Qi>=9&&e.display.inputHasSelection&&(e.display.inputHasSelection=null),xt(e)}),ca(i.input,"keydown",lt(e,Gt)),ca(i.input,"keypress",lt(e,Zt)),ca(i.input,"focus",bi(Jt,e)),ca(i.input,"blur",bi(Xt,e)),e.options.dragDrop&&(ca(i.scroller,"dragstart",function(t){$t(e,t)}),ca(i.scroller,"dragenter",n),ca(i.scroller,"dragover",n),ca(i.scroller,"drop",lt(e,Dt))),ca(i.scroller,"paste",function(t){Lt(i,t)||(e.state.pasteIncoming=!0,St(e),xt(e))}),ca(i.input,"paste",function(){if(eo&&!e.state.fakedLastChar&&!(new Date-e.state.lastMiddleDown<200)){var t=i.input.selectionStart,n=i.input.selectionEnd;i.input.value+="$",i.input.selectionEnd=n,i.input.selectionStart=t,e.state.fakedLastChar=!0}e.state.pasteIncoming=!0,xt(e)}),ca(i.input,"cut",r),ca(i.input,"copy",r),oo&&ca(i.sizer,"mouseup",function(){Ei()==i.input&&i.input.blur(),St(e)})}function Mt(e){var t=e.display;(t.lastWrapHeight!=t.wrapper.clientHeight||t.lastWrapWidth!=t.wrapper.clientWidth)&&(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,e.setSize())}function Lt(e,t){for(var n=ni(t);n!=e.wrapper;n=n.parentNode)if(!n||n.ignoreEvents||n.parentNode==e.sizer&&n!=e.mover)return!0}function At(e,t,n,r){var i=e.display;if(!n){var o=ni(t);if(o==i.scrollbarH||o==i.scrollbarV||o==i.scrollbarFiller||o==i.gutterFiller)return null}var a,s,l=i.lineSpace.getBoundingClientRect();try{a=t.clientX-l.left,s=t.clientY-l.top}catch(t){return null}var c=Ke(e,a,s),u;if(r&&1==c.xRel&&(u=Rr(e.doc,c.line).text).length==c.ch){var d=ba(u,u.length,e.options.tabSize)-u.length;c=bo(c.line,Math.max(0,Math.round((a-Ce(e.display).left)/Je(e.display))-d))}return c}function It(e){if(!ai(this,e)){var t=this,n=t.display;if(n.shift=e.shiftKey,Lt(n,e))return void(eo||(n.scroller.draggable=!1,setTimeout(function(){n.scroller.draggable=!0},100)));if(!Pt(t,e)){var r=At(t,e);switch(window.focus(),ri(e)){case 1:r?Rt(t,e,r):ni(e)==n.scroller&&aa(e);break;case 2:eo&&(t.state.lastMiddleDown=+new Date),r&&re(t.doc,r),setTimeout(bi(St,t),20),aa(e);break;case 3:mo&&Qt(t,e)}}}}function Rt(e,t,n){setTimeout(bi(Tt,e),0);var r=+new Date,i;Eo&&Eo.time>r-400&&0==yo(Eo.pos,n)?i="triple":To&&To.time>r-400&&0==yo(To.pos,n)?(i="double",Eo={time:r,pos:n}):(i="single",To={time:r,pos:n});var o=e.doc.sel,a=uo?t.metaKey:t.ctrlKey;e.options.dragDrop&&Ma&&!Et(e)&&"single"==i&&o.contains(n)>-1&&o.somethingSelected()?Ot(e,t,n,a):Nt(e,t,n,i,a)}function Ot(e,t,n,r){var i=e.display,o=lt(e,function(a){eo&&(i.scroller.draggable=!1),e.state.draggingText=!1,ua(document,"mouseup",o),ua(i.scroller,"drop",o),Math.abs(t.clientX-a.clientX)+Math.abs(t.clientY-a.clientY)<10&&(aa(a),r||re(e.doc,n),St(e),Xi&&9==Qi&&setTimeout(function(){document.body.focus(),St(e)},20))});eo&&(i.scroller.draggable=!0),e.state.draggingText=o,i.scroller.dragDrop&&i.scroller.dragDrop(),ca(document,"mouseup",o),ca(i.scroller,"drop",o)}function Nt(e,t,n,r,i){function o(t){if(0!=yo(m,t))if(m=t,"rect"==r){for(var i=[],o=e.options.tabSize,a=ba(Rr(c,n.line).text,n.ch,o),s=ba(Rr(c,t.line).text,t.ch,o),l=Math.min(a,s),p=Math.max(a,s),h=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));g>=h;h++){var v=Rr(c,h).text,b=di(v,l,o);l==p?i.push(new K(bo(h,b),bo(h,b))):v.length>b&&i.push(new K(bo(h,b),bo(h,di(v,p,o))))}i.length||i.push(new K(n,n)),ce(c,Y(f.ranges.slice(0,d).concat(i),d),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y=u,k=y.anchor,x=t;if("single"!=r){if("double"==r)var _=e.findWordAt(t);else var _=new K(bo(t.line,0),X(c,bo(t.line+1,0)));yo(_.anchor,k)>0?(x=_.head,k=V(y.from(),_.anchor)):(x=_.anchor,k=H(y.to(),_.head))}var i=f.ranges.slice(0);i[d]=new K(X(c,k),x),ce(c,Y(i,d),ga)}}function a(t){var n=++b,i=At(e,t,!0,"rect"==r);if(i)if(0!=yo(i,m)){Tt(e),o(i);var s=v(l,c);(i.line>=s.to||i.line<s.from)&&setTimeout(lt(e,function(){b==n&&a(t)}),150)}else{var u=t.clientY<g.top?-20:t.clientY>g.bottom?20:0;u&&setTimeout(lt(e,function(){b==n&&(l.scroller.scrollTop+=u,a(t))}),50)}}function s(t){b=1/0,aa(t),St(e),ua(document,"mousemove",y),ua(document,"mouseup",k),c.history.lastSelOrigin=null}var l=e.display,c=e.doc;aa(t);var u,d,f=c.sel;if(i&&!t.shiftKey?(d=c.sel.contains(n),u=d>-1?c.sel.ranges[d]:new K(n,n)):u=c.sel.primary(),t.altKey)r="rect",i||(u=new K(n,n)),n=At(e,t,!0,!0),d=-1;else if("double"==r){var p=e.findWordAt(n);u=e.display.shift||c.extend?ne(c,u,p.anchor,p.head):p}else if("triple"==r){var h=new K(bo(n.line,0),X(c,bo(n.line+1,0)));u=e.display.shift||c.extend?ne(c,u,h.anchor,h.head):h}else u=ne(c,u,n);i?d>-1?oe(c,d,u,ga):(d=c.sel.ranges.length,ce(c,Y(c.sel.ranges.concat([u]),d),{scroll:!1,origin:"*mouse"})):(d=0,ce(c,new G([u],0),ga),f=c.sel);var m=n,g=l.wrapper.getBoundingClientRect(),b=0,y=lt(e,function(e){ri(e)?a(e):s(e)}),k=lt(e,s);ca(document,"mousemove",y),ca(document,"mouseup",k)}function zt(e,t,n,r,i){try{var o=t.clientX,a=t.clientY}catch(t){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&aa(t);var s=e.display,l=s.lineDiv.getBoundingClientRect();if(a>l.bottom||!li(e,n))return ti(t);a-=l.top-s.viewOffset;for(var c=0;c<e.options.gutters.length;++c){var u=s.gutters.childNodes[c];if(u&&u.getBoundingClientRect().right>=o){var d=Dr(e.doc,a),f=e.options.gutters[c];return i(e,n,e,d,f,t),ti(t)}}}function Pt(e,t){return zt(e,t,"gutterClick",!0,ii)}function Dt(e){var t=this;if(!ai(t,e)&&!Lt(t.display,e)){aa(e),Xi&&(Co=+new Date);var n=At(t,e,!0),r=e.dataTransfer.files;if(n&&!Et(t))if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),a=0,s=function(e,r){var s=new FileReader;s.onload=lt(t,function(){if(o[r]=s.result,++a==i){n=X(t.doc,n);var e={from:n,to:n,text:Ra(o.join("\n")),origin:"paste"};sn(t.doc,e),le(t.doc,Z(n,Ro(e)))}}),s.readAsText(e)},l=0;i>l;++l)s(r[l],l);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(bi(St,t),20);try{var o=e.dataTransfer.getData("Text");if(o){if(t.state.draggingText&&!(uo?e.metaKey:e.ctrlKey))var c=t.listSelections();if(ue(t.doc,Z(n,n)),c)for(var l=0;l<c.length;++l)pn(t.doc,"",c[l].anchor,c[l].head,"drag");t.replaceSelection(o,"around","paste"),St(t)}}catch(e){}}}}function $t(e,t){if(Xi&&(!e.state.draggingText||+new Date-Co<100))return void la(t);if(!ai(e,t)&&!Lt(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.setDragImage&&!io)){var n=_i("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ro&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),ro&&n.parentNode.removeChild(n)}}function qt(e,t){Math.abs(e.doc.scrollTop-t)<2||(e.doc.scrollTop=t,Yi||T(e,{top:t}),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t),e.display.scrollbarV.scrollTop!=t&&(e.display.scrollbarV.scrollTop=t),Yi&&T(e),xe(e,100))}function jt(e,t,n){(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)||(t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),e.doc.scrollLeft=t,b(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbarH.scrollLeft!=t&&(e.display.scrollbarH.scrollLeft=t))}function Wt(e,t){var n=t.wheelDeltaX,r=t.wheelDeltaY;null==n&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(n=t.detail),null==r&&t.detail&&t.axis==t.VERTICAL_AXIS?r=t.detail:null==r&&(r=t.wheelDelta);var i=e.display,o=i.scroller;if(n&&o.scrollWidth>o.clientWidth||r&&o.scrollHeight>o.clientHeight){if(r&&uo&&eo)e:for(var a=t.target,s=i.view;a!=o;a=a.parentNode)for(var l=0;l<s.length;l++)if(s[l].node==a){e.display.currentWheelTarget=a;break e}if(n&&!Yi&&!ro&&null!=Lo)return r&&qt(e,Math.max(0,Math.min(o.scrollTop+r*Lo,o.scrollHeight-o.clientHeight))),jt(e,Math.max(0,Math.min(o.scrollLeft+n*Lo,o.scrollWidth-o.clientWidth))),aa(t),void(i.wheelStartX=null);if(r&&null!=Lo){var c=r*Lo,u=e.doc.scrollTop,d=u+i.wrapper.clientHeight;0>c?u=Math.max(0,u+c-50):d=Math.min(e.doc.height,d+c+50),T(e,{top:u,bottom:d})}20>Mo&&(null==i.wheelStartX?(i.wheelStartX=o.scrollLeft,i.wheelStartY=o.scrollTop,i.wheelDX=n,i.wheelDY=r,setTimeout(function(){if(null!=i.wheelStartX){var e=o.scrollLeft-i.wheelStartX,t=o.scrollTop-i.wheelStartY,n=t&&i.wheelDY&&t/i.wheelDY||e&&i.wheelDX&&e/i.wheelDX;i.wheelStartX=i.wheelStartY=null,n&&(Lo=(Lo*Mo+n)/(Mo+1),++Mo)}},200)):(i.wheelDX+=n,i.wheelDY+=r))}}function Ut(e,t,n){if("string"==typeof t&&(t=Fo[t],!t))return!1;e.display.pollingFast&&_t(e)&&(e.display.pollingFast=!1);var r=e.display.shift,i=!1;try{Et(e)&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=ha}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}function Ft(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Ho(t,e.state.keyMaps[r],n);if(i)return i}return e.options.extraKeys&&Ho(t,e.options.extraKeys,n)||Ho(t,e.options.keyMap,n)}function Bt(e,t,n,r){var i=e.state.keySeq;if(i){if(Vo(t))return"handled";Ao.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,wt(e))}),t=i+" "+t}var o=Ft(e,t,r);return"multi"==o&&(e.state.keySeq=t),"handled"==o&&ii(e,"keyHandled",e,t,n),("handled"==o||"multi"==o)&&(aa(n),ke(e)),i&&!o&&/\'$/.test(t)?(aa(n),!0):!!o}function Ht(e,t){var n=Go(t,!0);return n?t.shiftKey&&!e.state.keySeq?Bt(e,"Shift-"+n,t,function(t){return Ut(e,t,!0)})||Bt(e,n,t,function(t){return("string"==typeof t?/^go[A-Z]/.test(t):t.motion)?Ut(e,t):void 0}):Bt(e,n,t,function(t){return Ut(e,t)}):!1}function Vt(e,t,n){return Bt(e,"'"+n+"'",t,function(t){return Ut(e,t,!0)})}function Gt(e){var t=this;if(Tt(t),!ai(t,e)){Xi&&11>Qi&&27==e.keyCode&&(e.returnValue=!1);var n=e.keyCode;t.display.shift=16==n||e.shiftKey;var r=Ht(t,e);ro&&(Io=r?n:null,!r&&88==n&&!Na&&(uo?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=n||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||Kt(t)}}function Kt(e){function t(e){18!=e.keyCode&&e.altKey||(Ta(n,"CodeMirror-crosshair"),ua(document,"keyup",t),ua(document,"mouseover",t))}var n=e.display.lineDiv;Ea(n,"CodeMirror-crosshair"),ca(document,"keyup",t),ca(document,"mouseover",t)}function Yt(e){16==e.keyCode&&(this.doc.sel.shift=!1),ai(this,e)}function Zt(e){var t=this;if(!(ai(t,e)||e.ctrlKey&&!e.altKey||uo&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(ro&&n==Io)return Io=null,void aa(e);if(!(ro&&(!e.which||e.which<10)||oo)||!Ht(t,e)){var i=String.fromCharCode(null==r?n:r);Vt(t,e,i)||(Xi&&Qi>=9&&(t.display.inputHasSelection=null),xt(t))}}}function Jt(e){"nocursor"!=e.options.readOnly&&(e.state.focused||(da(e,"focus",e),e.state.focused=!0,Ea(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(wt(e),eo&&setTimeout(bi(wt,e,!0),0))),kt(e),ke(e))}function Xt(e){e.state.focused&&(da(e,"blur",e),e.state.focused=!1,Ta(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150)}function Qt(e,t){function n(){if(null!=i.input.selectionStart){var t=e.somethingSelected(),n=i.input.value=""+(t?i.input.value:"");i.prevInput=t?"":"",i.input.selectionStart=1,i.input.selectionEnd=n.length,i.selForContextMenu=e.doc.sel}}function r(){if(i.inputDiv.style.position="relative",i.input.style.cssText=l,Xi&&9>Qi&&(i.scrollbarV.scrollTop=i.scroller.scrollTop=a),kt(e),null!=i.input.selectionStart){(!Xi||Xi&&9>Qi)&&n();var t=0,r=function(){i.selForContextMenu==e.doc.sel&&0==i.input.selectionStart?lt(e,Fo.selectAll)(e):t++<10?i.detectingSelectAll=setTimeout(r,500):wt(e)};i.detectingSelectAll=setTimeout(r,200)}}if(!ai(e,t,"contextmenu")){var i=e.display;if(!Lt(i,t)&&!en(e,t)){var o=At(e,t),a=i.scroller.scrollTop;if(o&&!ro){var s=e.options.resetSelectionOnContextMenu;s&&-1==e.doc.sel.contains(o)&<(e,ce)(e.doc,Z(o),ma);var l=i.input.style.cssText;if(i.inputDiv.style.position="absolute",i.input.style.cssText="position: fixed; width: 30px; height: 30px; top: "+(t.clientY-5)+"px; left: "+(t.clientX-5)+"px; z-index: 1000; background: "+(Xi?"rgba(255, 255, 255, .05)":"transparent")+"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",eo)var c=window.scrollY;if(St(e),eo&&window.scrollTo(null,c),wt(e),e.somethingSelected()||(i.input.value=i.prevInput=" "),i.selForContextMenu=e.doc.sel,clearTimeout(i.detectingSelectAll),Xi&&Qi>=9&&n(),mo){la(t);var u=function(){ua(window,"mouseup",u),setTimeout(r,20)};ca(window,"mouseup",u)}else setTimeout(r,50)}}}}function en(e,t){return li(e,"gutterContextMenu")?zt(e,t,"gutterContextMenu",!1,da):!1}function tn(e,t){if(yo(e,t.from)<0)return e;if(yo(e,t.to)<=0)return Ro(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Ro(t).ch-t.to.ch),bo(n,r)}function nn(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new K(tn(i.anchor,t),tn(i.head,t)))}return Y(n,e.sel.primIndex)}function rn(e,t,n){return e.line==t.line?bo(n.line,e.ch-t.ch+n.ch):bo(n.line+(e.line-t.line),e.ch)}function on(e,t,n){for(var r=[],i=bo(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=rn(s.from,i,o),c=rn(Ro(s),i,o);if(i=s.to,o=c,"around"==n){var u=e.sel.ranges[a],d=yo(u.head,u.anchor)<0;r[a]=new K(d?c:l,d?l:c)}else r[a]=new K(l,l)}return new G(r,e.sel.primIndex)}function an(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){this.canceled=!0}};return n&&(r.update=function(t,n,r,i){t&&(this.from=X(e,t)),n&&(this.to=X(e,n)),r&&(this.text=r),void 0!==i&&(this.origin=i)}),da(e,"beforeChange",e,r),e.cm&&da(e.cm,"beforeChange",e.cm,r),r.canceled?null:{from:r.from,to:r.to,text:r.text,origin:r.origin}}function sn(e,t,n){if(e.cm){if(!e.cm.curOp)return lt(e.cm,sn)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(li(e,"beforeChange")||e.cm&&li(e.cm,"beforeChange"))||(t=an(e,t,!0))){var r=go&&!n&&Fn(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)ln(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text});else ln(e,t)}}function ln(e,t){if(1!=t.text.length||""!=t.text[0]||0!=yo(t.from,t.to)){var n=nn(e,t);Br(e,t,n,e.cm?e.cm.curOp.id:0/0),dn(e,t,n,jn(e,t));var r=[];Ar(e,function(e,n){n||-1!=hi(r,e.history)||(ei(e.history,t),r.push(e.history)),dn(e,t,null,jn(e,t))})}}function cn(e,t,n){if(!e.cm||!e.cm.state.suppressEdits){for(var r=e.history,i,o=e.sel,a="undo"==t?r.done:r.undone,s="undo"==t?r.undone:r.done,l=0;l<a.length&&(i=a[l],n?!i.ranges||i.equals(e.sel):i.ranges);l++);if(l!=a.length){for(r.lastOrigin=r.lastSelOrigin=null;i=a.pop(),i.ranges;){if(Gr(i,s),n&&!i.equals(e.sel))return void ce(e,i,{clearRedo:!1});o=i}var c=[];Gr(o,s),s.push({changes:c,generation:r.generation}),r.generation=i.generation||++r.maxGeneration;for(var u=li(e,"beforeChange")||e.cm&&li(e.cm,"beforeChange"),l=i.changes.length-1;l>=0;--l){var d=i.changes[l];if(d.origin=t,u&&!an(e,d,!1))return void(a.length=0);c.push(Wr(e,d));var f=l?nn(e,d):pi(a);dn(e,d,f,Un(e,d)),!l&&e.cm&&e.cm.scrollIntoView({from:d.from,to:Ro(d)});var p=[];Ar(e,function(e,t){t||-1!=hi(p,e.history)||(ei(e.history,d),p.push(e.history)),dn(e,d,null,Un(e,d))})}}}}function un(e,t){if(0!=t&&(e.first+=t,e.sel=new G(mi(e.sel.ranges,function(e){return new K(bo(e.anchor.line+t,e.anchor.ch),bo(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){pt(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)ht(e.cm,r,"gutter")}}function dn(e,t,n,r){if(e.cm&&!e.cm.curOp)return lt(e.cm,dn)(e,t,n,r);if(t.to.line<e.first)return void un(e,t.text.length-1-(t.to.line-t.from.line));if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);un(e,i),t={from:bo(e.first,0),to:bo(t.to.line+i,t.to.ch),text:[pi(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:bo(o,Rr(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Or(e,t.from,t.to),n||(n=nn(e,t)),e.cm?fn(e.cm,t,r):Cr(e,t,r),ue(e,n,ma)}}function fn(e,t,n){var r=e.doc,i=e.display,a=t.from,s=t.to,l=!1,c=a.line;e.options.lineWrapping||(c=Pr(Qn(Rr(r,a.line))),r.iter(c,s.line+1,function(e){return e==i.maxLine?(l=!0,!0):void 0})),r.sel.contains(t.from,t.to)>-1&&si(e),Cr(r,t,n,o(e)),e.options.lineWrapping||(r.iter(c,a.line+t.text.length,function(e){var t=d(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),r.frontier=Math.min(r.frontier,a.line),xe(e,400);var u=t.text.length-(s.line-a.line)-1;a.line!=s.line||1!=t.text.length||Er(e.doc,t)?pt(e,a.line,s.line+1,u):ht(e,a.line,"text");var f=li(e,"changes"),p=li(e,"change");if(p||f){var h={from:a,to:s,text:t.text,removed:t.removed,origin:t.origin};p&&ii(e,"change",e,h),f&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function pn(e,t,n,r,i){if(r||(r=n),yo(r,n)<0){var o=r;r=n,n=o}"string"==typeof t&&(t=Ra(t)),sn(e,{from:n,to:r,text:t,origin:i})}function hn(e,t){if(!ai(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!so){var o=_i("div","",null,"position: absolute; top: "+(t.top-n.viewOffset-Te(e.display))+"px; height: "+(t.bottom-t.top+pa)+"px; left: "+t.left+"px; width: 2px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function mn(e,t,n,r){null==r&&(r=0);for(var i=0;5>i;i++){var o=!1,a=He(e,t),s=n&&n!=t?He(e,n):a,l=vn(e,Math.min(a.left,s.left),Math.min(a.top,s.top)-r,Math.max(a.left,s.left),Math.max(a.bottom,s.bottom)+r),c=e.doc.scrollTop,u=e.doc.scrollLeft;if(null!=l.scrollTop&&(qt(e,l.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(o=!0)),null!=l.scrollLeft&&(jt(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-u)>1&&(o=!0)),!o)return a}}function gn(e,t,n,r,i){var o=vn(e,t,n,r,i);null!=o.scrollTop&&qt(e,o.scrollTop),null!=o.scrollLeft&&jt(e,o.scrollLeft)}function vn(e,t,n,r,i){var o=e.display,a=Ze(e.display);0>n&&(n=0);var s=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:o.scroller.scrollTop,l=o.scroller.clientHeight-pa,c={};i-n>l&&(i=n+l);var u=e.doc.height+Ee(o),d=a>n,f=i>u-a;if(s>n)c.scrollTop=d?0:n;else if(i>s+l){var p=Math.min(n,(f?u:i)-l);p!=s&&(c.scrollTop=p)}var h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:o.scroller.scrollLeft,m=o.scroller.clientWidth-pa-o.gutters.offsetWidth,g=r-t>m;return g&&(r=t+m),10>t?c.scrollLeft=0:h>t?c.scrollLeft=Math.max(0,t-(g?0:10)):r>m+h-3&&(c.scrollLeft=r+(g?0:10)-m),c}function bn(e,t,n){(null!=t||null!=n)&&kn(e),null!=t&&(e.curOp.scrollLeft=(null==e.curOp.scrollLeft?e.doc.scrollLeft:e.curOp.scrollLeft)+t),null!=n&&(e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+n)}function yn(e){kn(e);var t=e.getCursor(),n=t,r=t;e.options.lineWrapping||(n=t.ch?bo(t.line,t.ch-1):t,r=bo(t.line,t.ch+1)),e.curOp.scrollToPos={from:n,to:r,margin:e.options.cursorScrollMargin,isCursor:!0}}function kn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Ve(e,t.from),r=Ve(e,t.to),i=vn(e,Math.min(n.left,r.left),Math.min(n.top,r.top)-t.margin,Math.max(n.right,r.right),Math.max(n.bottom,r.bottom)+t.margin);e.scrollTo(i.scrollLeft,i.scrollTop)}}function xn(e,t,n,r){var i=e.doc,o;null==n&&(n="add"),"smart"==n&&(i.mode.indent?o=Se(e,t):n="prev");var a=e.options.tabSize,s=Rr(i,t),l=ba(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c=s.text.match(/^\s*/)[0],u;if(r||/\S/.test(s.text)){if("smart"==n&&(u=i.mode.indent(o,s.text.slice(c.length),s.text),u==ha||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>i.first?ba(Rr(i,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)f+=a,d+=" ";if(u>f&&(d+=fi(u-f)),d!=c)pn(i,d,bo(t,0),bo(t,c.length),"+input");else for(var p=0;p<i.sel.ranges.length;p++){var h=i.sel.ranges[p];if(h.head.line==t&&h.head.ch<c.length){var f=bo(t,c.length);oe(i,p,new K(f,f));break}}s.stateAfter=null}function _n(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Rr(e,J(e,t)):i=Pr(t),null==i?null:(r(o,i)&&e.cm&&ht(e.cm,i,n),o)}function wn(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&yo(o.from,pi(r).to)<=0;){var a=r.pop();if(yo(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}st(e,function(){for(var t=r.length-1;t>=0;t--)pn(e.doc,"",r[t].from,r[t].to,"+delete");yn(e)})}function Sn(e,t,n,r,i){function o(){var t=s+n;return t<e.first||t>=e.first+e.size?d=!1:(s=t,u=Rr(e,t))}function a(e){var t=(i?Gi:Ki)(u,l,n,!0);if(null==t){if(e||!o())return d=!1;l=i?(0>n?ji:qi)(u):0>n?u.text.length:0}else l=t;return!0}var s=t.line,l=t.ch,c=n,u=Rr(e,s),d=!0;if("char"==r)a();else if("column"==r)a(!0);else if("word"==r||"group"==r)for(var f=null,p="group"==r,h=e.cm&&e.cm.getHelper(t,"wordChars"),m=!0;!(0>n)||a(!m);m=!1){var g=u.text.charAt(l)||"\n",v=yi(g,h)?"w":p&&"\n"==g?"n":!p||/\s/.test(g)?null:"p";if(!p||m||v||(v="s"),f&&f!=v){0>n&&(n=1,a());break}if(v&&(f=v),n>0&&!a(!m))break}var b=he(e,bo(s,l),c,!0);return d||(b.hitSide=!0),b}function Tn(e,t,n,r){var i=e.doc,o=t.left,a;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);a=t.top+n*(s-(0>n?1.5:.5)*Ze(e.display))}else"line"==r&&(a=n>0?t.bottom+3:t.top-3);for(;;){var l=Ke(e,o,a);if(!l.outside)break;if(0>n?0>=a:a>=i.height){l.hitSide=!0;break}a+=5*n}return l}function En(t,n,r,i){e.defaults[t]=n,r&&(No[t]=i?function(e,t,n){n!=zo&&r(e,t,n)}:r)}function Cn(e){for(var t=e.split(/-(?!$)/),e=t[t.length-1],n,r,i,o,a=0;a<t.length-1;a++){var s=t[a];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))n=!0;else if(/^(c|ctrl|control)$/i.test(s))r=!0;else{if(!/^s(hift)$/i.test(s))throw new Error("Unrecognized modifier name: "+s);i=!0}}return n&&(e="Alt-"+e),r&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),i&&(e="Shift-"+e),
|
||
e}function Mn(e){return"string"==typeof e?Bo[e]:e}function Ln(e,t,n,r,i){if(r&&r.shared)return An(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return lt(e.cm,Ln)(e,t,n,r,i);var o=new Yo(e,i),a=yo(t,n);if(r&&vi(r,o,!1),a>0||0==a&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=_i("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||(o.widgetNode.ignoreEvents=!0),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Xn(e,t.line,t,n,o)||t.line!=n.line&&Xn(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");vo=!0}o.addToHistory&&Br(e,{from:t,to:n,origin:"markText"},e.sel,0/0);var s=t.line,l=e.cm,c;if(e.iter(s,n.line+1,function(e){l&&o.collapsed&&!l.options.lineWrapping&&Qn(e)==l.display.maxLine&&(c=!0),o.collapsed&&s!=t.line&&zr(e,0),Dn(e,new Nn(o,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s}),o.collapsed&&e.iter(t.line,n.line+1,function(t){rr(e,t)&&zr(t,0)}),o.clearOnEnter&&ca(o,"beforeCursorEnter",function(){o.clear()}),o.readOnly&&(go=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Zo,o.atomic=!0),l){if(c&&(l.curOp.updateMaxLine=!0),o.collapsed)pt(l,t.line,n.line+1);else if(o.className||o.title||o.startStyle||o.endStyle)for(var u=t.line;u<=n.line;u++)ht(l,u,"text");o.atomic&&fe(l.doc),ii(l,"markerAdded",l,o)}return o}function An(e,t,n,r,i){r=vi(r),r.shared=!1;var o=[Ln(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Ar(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(Ln(e,X(e,t),X(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=pi(o)}),new Jo(o,a)}function In(e){return e.findMarks(bo(e.first,0),e.clipPos(bo(e.lastLine())),function(e){return e.parent})}function Rn(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(yo(o,a)){var s=Ln(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}function On(e){for(var t=0;t<e.length;t++){var n=e[t],r=[n.primary.doc];Ar(n.primary.doc,function(e){r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==hi(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}}}function Nn(e,t,n){this.marker=e,this.from=t,this.to=n}function zn(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Pn(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Dn(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function $n(e,t,n){if(e)for(var r=0,i;r<e.length;++r){var o=e[r],a=o.marker,s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);if(s||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var l=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(i||(i=[])).push(new Nn(a,o.from,l?null:o.to))}}return i}function qn(e,t,n){if(e)for(var r=0,i;r<e.length;++r){var o=e[r],a=o.marker,s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);if(s||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(i||(i=[])).push(new Nn(a,l?null:o.from-t,null==o.to?null:o.to-t))}}return i}function jn(e,t){var n=ee(e,t.from.line)&&Rr(e,t.from.line).markedSpans,r=ee(e,t.to.line)&&Rr(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==yo(t.from,t.to),s=$n(n,i,a),l=qn(r,o,a),c=1==t.text.length,u=pi(t.text).length+(c?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(null==f.to){var p=zn(l,f.marker);p?c&&(f.to=null==p.to?null:p.to+u):f.to=i}}if(l)for(var d=0;d<l.length;++d){var f=l[d];if(null!=f.to&&(f.to+=u),null==f.from){var p=zn(s,f.marker);p||(f.from=u,c&&(s||(s=[])).push(f))}else f.from+=u,c&&(s||(s=[])).push(f)}s&&(s=Wn(s)),l&&l!=s&&(l=Wn(l));var h=[s];if(!c){var m=t.text.length-2,g;if(m>0&&s)for(var d=0;d<s.length;++d)null==s[d].to&&(g||(g=[])).push(new Nn(s[d].marker,null,null));for(var d=0;m>d;++d)h.push(g);h.push(l)}return h}function Wn(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&n.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Un(e,t){var n=Zr(e,t),r=jn(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<o.length;++c)if(o[c].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Fn(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=hi(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var c=i[l];if(!(yo(c.to,s.from)<0||yo(c.from,s.to)>0)){var u=[l,1],d=yo(c.from,s.from),f=yo(c.to,s.to);(0>d||!a.inclusiveLeft&&!d)&&u.push({from:c.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:s.to,to:c.to}),i.splice.apply(i,u),l+=u.length-1}}return i}function Bn(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Hn(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Vn(e){return e.inclusiveLeft?-1:0}function Gn(e){return e.inclusiveRight?1:0}function Kn(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=yo(r.from,i.from)||Vn(e)-Vn(t);if(o)return-o;var a=yo(r.to,i.to)||Gn(e)-Gn(t);return a?a:t.id-e.id}function Yn(e,t){var n=vo&&e.markedSpans,r;if(n)for(var i,o=0;o<n.length;++o)i=n[o],i.marker.collapsed&&null==(t?i.from:i.to)&&(!r||Kn(r,i.marker)<0)&&(r=i.marker);return r}function Zn(e){return Yn(e,!0)}function Jn(e){return Yn(e,!1)}function Xn(e,t,n,r,i){var o=Rr(e,t),a=vo&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=yo(c.from,n)||Vn(l.marker)-Vn(i),d=yo(c.to,r)||Gn(l.marker)-Gn(i);if(!(u>=0&&0>=d||0>=u&&d>=0)&&(0>=u&&(yo(c.to,n)>0||l.marker.inclusiveRight&&i.inclusiveLeft)||u>=0&&(yo(c.from,r)<0||l.marker.inclusiveLeft&&i.inclusiveRight)))return!0}}}function Qn(e){for(var t;t=Zn(e);)e=t.find(-1,!0).line;return e}function er(e){for(var t,n;t=Jn(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function tr(e,t){var n=Rr(e,t),r=Qn(n);return n==r?t:Pr(r)}function nr(e,t){if(t>e.lastLine())return t;var n=Rr(e,t),r;if(!rr(e,n))return t;for(;r=Jn(n);)n=r.find(1,!0).line;return Pr(n)+1}function rr(e,t){var n=vo&&t.markedSpans;if(n)for(var r,i=0;i<n.length;++i)if(r=n[i],r.marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&ir(e,t,r))return!0}}function ir(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return ir(e,r.line,zn(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i,o=0;o<t.markedSpans.length;++o)if(i=t.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&ir(e,t,i))return!0}function or(e,t,n){$r(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&bn(e,null,n)}function ar(e){if(null!=e.height)return e.height;if(!Ti(document.body,e.node)){var t="position: relative;";e.coverGutter&&(t+="margin-left: -"+e.cm.getGutterElement().offsetWidth+"px;"),Si(e.cm.display.measure,_i("div",[e.node],null,t))}return e.height=e.node.offsetHeight}function sr(e,t,n,r){var i=new Xo(e,n,r);return i.noHScroll&&(e.display.alignWidgets=!0),_n(e.doc,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,!rr(e.doc,t)){var r=$r(t)<e.doc.scrollTop;zr(t,t.height+ar(i)),r&&bn(e,null,i.height),e.curOp.forceUpdate=!0}return!0}),i}function lr(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Bn(e),Hn(e,n);var i=r?r(e):1;i!=e.height&&zr(e,i)}function cr(e){e.parent=null,Bn(e)}function ur(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|s)"+n[2]+"(?:$|s)").test(t[r])||(t[r]+=" "+n[2])}return e}function dr(t,n){if(t.blankLine)return t.blankLine(n);if(t.innerMode){var r=e.innerMode(t,n);return r.mode.blankLine?r.mode.blankLine(r.state):void 0}}function fr(t,n,r,i){for(var o=0;10>o;o++){i&&(i[0]=e.innerMode(t,r).mode);var a=t.token(n,r);if(n.pos>n.start)return a}throw new Error("Mode "+t.name+" failed to advance stream.")}function pr(e,t,n,r){function i(e){return{start:u.start,end:u.pos,string:u.current(),type:s||null,state:e?Wo(o.mode,c):c}}var o=e.doc,a=o.mode,s;t=X(o,t);var l=Rr(o,t.line),c=Se(e,t.line,n),u=new Ko(l.text,e.options.tabSize),d;for(r&&(d=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,s=fr(a,u,c),r&&d.push(i(!0));return r?d:i()}function hr(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l=0,c=null,u=new Ko(t,e.options.tabSize),d,f=e.options.addModeClass&&[null];for(""==t&&ur(dr(n,r),o);!u.eol();){if(u.pos>e.options.maxHighlightLength?(s=!1,a&&vr(e,t,r,u.pos),u.pos=t.length,d=null):d=ur(fr(n,u,r,f),o),f){var p=f[0].name;p&&(d="m-"+(d?p+" "+d:p))}s&&c==d||(l<u.start&&i(u.start,c),l=u.start,c=d),u.start=u.pos}for(;l<u.pos;){var h=Math.min(u.pos,l+5e4);i(h,c),l=h}}function mr(e,t,n,r){var i=[e.state.modeGen],o={};hr(e,t.text,e.doc.mode,n,function(e,t){i.push(e,t)},o,r);for(var a=0;a<e.state.overlays.length;++a){var s=e.state.overlays[a],l=1,c=0;hr(e,t.text,s.mode,!0,function(e,t){for(var n=l;e>c;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,c=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"cm-overlay "+t),l=n+2;else for(;l>n;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"cm-overlay "+t}},o)}return{styles:i,classes:o.bgClass||o.textClass?o:null}}function gr(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=mr(e,t,t.stateAfter=Se(e,Pr(t)));t.styles=r.styles,r.classes?t.styleClasses=r.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.frontier&&e.doc.frontier++}return t.styles}function vr(e,t,n,r){var i=e.doc.mode,o=new Ko(t,e.options.tabSize);for(o.start=o.pos=r||0,""==t&&dr(i,n);!o.eol()&&o.pos<=e.options.maxHighlightLength;)fr(i,o,n),o.start=o.pos}function br(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?ta:ea;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function yr(e,t){var n=_i("span",null,null,eo?"padding-right: .1px":null),r={pre:_i("pre",[n]),content:n,col:0,pos:0,cm:e};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a;r.pos=0,r.addToken=xr,(Xi||eo)&&e.getOption("lineWrapping")&&(r.addToken=_r(r.addToken)),Ni(e.display.measure)&&(a=qr(o))&&(r.addToken=wr(r.addToken,a)),r.map=[];var s=t!=e.display.externalMeasured&&Pr(o);Tr(o,r,gr(e,o,s)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=Mi(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=Mi(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Oi(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}return eo&&/\bcm-tab\b/.test(r.content.lastChild.className)&&(r.content.className="cm-tab-wrap-hack"),da(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=Mi(r.pre.className,r.textClass||"")),r}function kr(e){var t=_i("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t}function xr(e,t,n,r,i,o){if(t){var a=e.cm.options.specialChars,s=!1;if(a.test(t))for(var l=document.createDocumentFragment(),c=0;;){a.lastIndex=c;var u=a.exec(t),d=u?u.index-c:t.length-c;if(d){var f=document.createTextNode(t.slice(c,c+d));l.appendChild(Xi&&9>Qi?_i("span",[f]):f),e.map.push(e.pos,e.pos+d,f),e.col+=d,e.pos+=d}if(!u)break;if(c+=d+1," "==u[0]){var p=e.cm.options.tabSize,h=p-e.col%p,f=l.appendChild(_i("span",fi(h),"cm-tab"));e.col+=h}else{var f=e.cm.options.specialCharPlaceholder(u[0]);l.appendChild(Xi&&9>Qi?_i("span",[f]):f),e.col+=1}e.map.push(e.pos,e.pos+1,f),e.pos++}else{e.col+=t.length;var l=document.createTextNode(t);e.map.push(e.pos,e.pos+t.length,l),Xi&&9>Qi&&(s=!0),e.pos+=t.length}if(n||r||i||s){var m=n||"";r&&(m+=r),i&&(m+=i);var g=_i("span",[l],m);return o&&(g.title=o),e.content.appendChild(g)}e.content.appendChild(l)}}function _r(e){function t(e){for(var t=" ",n=0;n<e.length-2;++n)t+=n%2?" ":" ";return t+=" "}return function(n,r,i,o,a,s){e(n,r.replace(/ {3,}/g,t),i,o,a,s)}}function wr(e,t){return function(n,r,i,o,a,s){i=i?i+" cm-force-border":"cm-force-border";for(var l=n.pos,c=l+r.length;;){for(var u=0;u<t.length;u++){var d=t[u];if(d.to>l&&d.from<=l)break}if(d.to>=c)return e(n,r,i,o,a,s);e(n,r.slice(0,d.to-l),i,o,null,s),o=null,r=r.slice(d.to-l),l=d.to}}}function Sr(e,t,n,r){var i=!r&&n.widgetNode;i&&(e.map.push(e.pos,e.pos+t,i),e.content.appendChild(i)),e.pos+=t}function Tr(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a=i.length,s=0,l=1,c="",u,d=0,f,p,h,m,g;;){if(d==s){f=p=h=m="",g=null,d=1/0;for(var v=[],b=0;b<r.length;++b){var y=r[b],k=y.marker;y.from<=s&&(null==y.to||y.to>s)?(null!=y.to&&d>y.to&&(d=y.to,p=""),k.className&&(f+=" "+k.className),k.startStyle&&y.from==s&&(h+=" "+k.startStyle),k.endStyle&&y.to==d&&(p+=" "+k.endStyle),k.title&&!m&&(m=k.title),k.collapsed&&(!g||Kn(g.marker,k)<0)&&(g=y)):y.from>s&&d>y.from&&(d=y.from),"bookmark"==k.type&&y.from==s&&k.widgetNode&&v.push(k)}if(g&&(g.from||0)==s&&(Sr(t,(null==g.to?a+1:g.to)-s,g.marker,null==g.from),null==g.to))return;if(!g&&v.length)for(var b=0;b<v.length;++b)Sr(t,0,v[b])}if(s>=a)break;for(var x=Math.min(a,d);;){if(c){var _=s+c.length;if(!g){var w=_>x?c.slice(0,x-s):c;t.addToken(t,w,u?u+f:f,h,s+w.length==d?p:"",m)}if(_>=x){c=c.slice(x-s),s=x;break}s=_,h=""}c=i.slice(o,o=n[l++]),u=br(n[l++],t.cm.options)}}else for(var l=1;l<n.length;l+=2)t.addToken(t,i.slice(o,o=n[l]),br(n[l+1],t.cm.options))}function Er(e,t){return 0==t.from.ch&&0==t.to.ch&&""==pi(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Cr(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){lr(e,n,i,r),ii(e,"change",e,t)}var a=t.from,s=t.to,l=t.text,c=Rr(e,a.line),u=Rr(e,s.line),d=pi(l),f=i(l.length-1),p=s.line-a.line;if(Er(e,t)){for(var h=0,m=[];h<l.length-1;++h)m.push(new Qo(l[h],i(h),r));o(u,u.text,f),p&&e.remove(a.line,p),m.length&&e.insert(a.line,m)}else if(c==u)if(1==l.length)o(c,c.text.slice(0,a.ch)+d+c.text.slice(s.ch),f);else{for(var m=[],h=1;h<l.length-1;++h)m.push(new Qo(l[h],i(h),r));m.push(new Qo(d+c.text.slice(s.ch),f,r)),o(c,c.text.slice(0,a.ch)+l[0],i(0)),e.insert(a.line+1,m)}else if(1==l.length)o(c,c.text.slice(0,a.ch)+l[0]+u.text.slice(s.ch),i(0)),e.remove(a.line+1,p);else{o(c,c.text.slice(0,a.ch)+l[0],i(0)),o(u,d+u.text.slice(s.ch),f);for(var h=1,m=[];h<l.length-1;++h)m.push(new Qo(l[h],i(h),r));p>1&&e.remove(a.line+1,p-1),e.insert(a.line+1,m)}ii(e,"change",e,t)}function Mr(e){this.lines=e,this.parent=null;for(var t=0,n=0;t<e.length;++t)e[t].parent=this,n+=e[t].height;this.height=n}function Lr(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}function Ar(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a<e.linked.length;++a){var s=e.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;(!n||l)&&(t(s.doc,l),r(s.doc,e,l))}}}r(e,null,!0)}function Ir(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,a(e),n(e),e.options.lineWrapping||f(e),e.options.mode=t.modeOption,pt(e)}function Rr(e,t){if(t-=e.first,0>t||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(o>t){n=i;break}t-=o}return n.lines[t]}function Or(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}function Nr(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function zr(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function Pr(e){if(null==e.parent)return null;for(var t=e.parent,n=hi(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function Dr(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(o>t){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var r=0;r<e.lines.length;++r){var a=e.lines[r],s=a.height;if(s>t)break;t-=s}return n+r}function $r(e){e=Qn(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;n=o,o=n.parent)for(var r=0;r<o.children.length;++r){var a=o.children[r];if(a==n)break;t+=a.height}return t}function qr(e){var t=e.order;return null==t&&(t=e.order=$a(e.text)),t}function jr(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Wr(e,t){var n={from:B(t.from),to:Ro(t),text:Or(e,t.from,t.to)};return Kr(e,n,t.from.line,t.to.line+1),Ar(e,function(e){Kr(e,n,t.from.line,t.to.line+1)},!0),n}function Ur(e){for(;e.length;){var t=pi(e);if(!t.ranges)break;e.pop()}}function Fr(e,t){return t?(Ur(e.done),pi(e.done)):e.done.length&&!pi(e.done).ranges?pi(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),pi(e.done)):void 0}function Br(e,t,n,r){var i=e.history;i.undone.length=0;var o=+new Date,a;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&i.lastModTime>o-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(a=Fr(i,i.lastOp==r))){var s=pi(a.changes);0==yo(t.from,t.to)&&0==yo(t.from,s.to)?s.to=Ro(t):a.changes.push(Wr(e,t))}else{var l=pi(i.done);for(l&&l.ranges||Gr(e.sel,i.done),a={changes:[Wr(e,t)],generation:i.generation},i.done.push(a);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,s||da(e,"historyAdded")}function Hr(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Vr(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Hr(e,o,pi(i.done),t))?i.done[i.done.length-1]=t:Gr(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&r.clearRedo!==!1&&Ur(i.undone)}function Gr(e,t){var n=pi(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Kr(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function Yr(e){if(!e)return null;for(var t=0,n;t<e.length;++t)e[t].marker.explicitlyCleared?n||(n=e.slice(0,t)):n&&n.push(e[t]);return n?n.length?n:null:e}function Zr(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=0,i=[];r<t.text.length;++r)i.push(Yr(n[r]));return i}function Jr(e,t,n){for(var r=0,i=[];r<e.length;++r){var o=e[r];if(o.ranges)i.push(n?G.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];i.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u;if(s.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&hi(t,Number(u[1]))>-1&&(pi(s)[d]=c[d],delete c[d])}}}return i}function Xr(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function Qr(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var s=0;s<o.ranges.length;s++)Xr(o.ranges[s].anchor,t,n,r),Xr(o.ranges[s].head,t,n,r)}else{for(var s=0;s<o.changes.length;++s){var l=o.changes[s];if(n<l.from.line)l.from=bo(l.from.line+r,l.from.ch),l.to=bo(l.to.line+r,l.to.ch);else if(t<=l.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function ei(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;Qr(e.done,n,r,i),Qr(e.undone,n,r,i)}function ti(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ni(e){return e.target||e.srcElement}function ri(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),uo&&e.ctrlKey&&1==t&&(t=3),t}function ii(e,t){function n(e){return function(){e.apply(null,i)}}var r=e._handlers&&e._handlers[t];if(r){var i=Array.prototype.slice.call(arguments,2),o;_o?o=_o.delayedCallbacks:fa?o=fa:(o=fa=[],setTimeout(oi,0));for(var a=0;a<r.length;++a)o.push(n(r[a]))}}function oi(){var e=fa;fa=null;for(var t=0;t<e.length;++t)e[t]()}function ai(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),da(e,n||t.type,e,t),ti(t)||t.codemirrorIgnore}function si(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==hi(n,t[r])&&n.push(t[r])}function li(e,t){var n=e._handlers&&e._handlers[t];return n&&n.length>0}function ci(e){e.prototype.on=function(e,t){ca(this,e,t)},e.prototype.off=function(e,t){ua(this,e,t)}}function ui(){this.id=null}function di(e,t,n){for(var r=0,i=0;;){var o=e.indexOf(" ",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}function fi(e){for(;ya.length<=e;)ya.push(pi(ya)+" ");return ya[e]}function pi(e){return e[e.length-1]}function hi(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}function mi(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function gi(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&vi(t,n),n}function vi(e,t,n){t||(t={});for(var r in e)!e.hasOwnProperty(r)||n===!1&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function bi(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function yi(e,t){return t?t.source.indexOf("\\w")>-1&&_a(e)?!0:t.test(e):_a(e)}function ki(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function xi(e){return e.charCodeAt(0)>=768&&wa.test(e)}function _i(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function wi(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function Si(e,t){return wi(e).appendChild(t)}function Ti(e,t){if(e.contains)return e.contains(t);for(;t=t.parentNode;)if(t==e)return!0}function Ei(){return document.activeElement}function Ci(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function Mi(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!Ci(n[r]).test(t)&&(t+=" "+n[r]);return t}function Li(e){if(document.body.getElementsByClassName)for(var t=document.body.getElementsByClassName("CodeMirror"),n=0;n<t.length;n++){var r=t[n].CodeMirror;r&&e(r)}}function Ai(){Ca||(Ii(),Ca=!0)}function Ii(){var e;ca(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,La=null,Li(Mt)},100))}),ca(window,"blur",function(){Li(Xt)})}function Ri(e){if(null!=La)return La;var t=_i("div",null,null,"width: 50px; height: 50px; overflow-x: scroll");return Si(e,t),t.offsetWidth&&(La=t.offsetHeight-t.clientHeight),La||0}function Oi(e){if(null==Aa){var t=_i("span","");Si(e,_i("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Aa=t.offsetWidth<=1&&t.offsetHeight>2&&!(Xi&&8>Qi))}return Aa?_i("span",""):_i("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px")}function Ni(e){if(null!=Ia)return Ia;var t=Si(e,document.createTextNode("AخA")),n=Sa(t,0,1).getBoundingClientRect();if(!n||n.left==n.right)return!1;var r=Sa(t,1,2).getBoundingClientRect();return Ia=r.right-n.right<3}function zi(e){if(null!=za)return za;var t=Si(e,_i("span","x")),n=t.getBoundingClientRect(),r=Sa(t,0,1).getBoundingClientRect();return za=Math.abs(n.left-r.left)>1}function Pi(e,t,n,r){if(!e)return r(t,n,"ltr");for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr"),i=!0)}i||r(t,n,"ltr")}function Di(e){return e.level%2?e.to:e.from}function $i(e){return e.level%2?e.from:e.to}function qi(e){var t=qr(e);return t?Di(t[0]):0}function ji(e){var t=qr(e);return t?$i(pi(t)):e.text.length}function Wi(e,t){var n=Rr(e.doc,t),r=Qn(n);r!=n&&(t=Pr(r));var i=qr(r),o=i?i[0].level%2?ji(r):qi(r):0;return bo(t,o)}function Ui(e,t){for(var n,r=Rr(e.doc,t);n=Jn(r);)r=n.find(1,!0).line,t=null;var i=qr(r),o=i?i[0].level%2?qi(r):ji(r):r.text.length;return bo(null==t?Pr(r):t,o)}function Fi(e,t){var n=Wi(e,t.line),r=Rr(e.doc,n.line),i=qr(r);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return bo(n.line,a?0:o)}return n}function Bi(e,t,n){var r=e[0].level;return t==r?!0:n==r?!1:n>t}function Hi(e,t){Da=null;for(var n=0,r;n<e.length;++n){var i=e[n];if(i.from<t&&i.to>t)return n;if(i.from==t||i.to==t){if(null!=r)return Bi(e,i.level,e[r].level)?(i.from!=i.to&&(Da=r),n):(i.from!=i.to&&(Da=n),r);r=n}}return r}function Vi(e,t,n,r){if(!r)return t+n;do t+=n;while(t>0&&xi(e.text.charAt(t)));return t}function Gi(e,t,n,r){var i=qr(e);if(!i)return Ki(e,t,n,r);for(var o=Hi(i,t),a=i[o],s=Vi(e,t,a.level%2?-n:n,r);;){if(s>a.from&&s<a.to)return s;if(s==a.from||s==a.to)return Hi(i,s)==o?s:(a=i[o+=n],n>0==a.level%2?a.to:a.from);if(a=i[o+=n],!a)return null;s=n>0==a.level%2?Vi(e,a.to,-1,r):Vi(e,a.from,1,r)}}function Ki(e,t,n,r){var i=t+n;if(r)for(;i>0&&xi(e.text.charAt(i));)i+=n;return 0>i||i>e.text.length?null:i}var Yi=/gecko\/\d/i.test(navigator.userAgent),Zi=/MSIE \d/.test(navigator.userAgent),Ji=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Xi=Zi||Ji,Qi=Xi&&(Zi?document.documentMode||6:Ji[1]),eo=/WebKit\//.test(navigator.userAgent),to=eo&&/Qt\/\d+\.\d+/.test(navigator.userAgent),no=/Chrome\//.test(navigator.userAgent),ro=/Opera\//.test(navigator.userAgent),io=/Apple Computer/.test(navigator.vendor),oo=/KHTML\//.test(navigator.userAgent),ao=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(navigator.userAgent),so=/PhantomJS/.test(navigator.userAgent),lo=/AppleWebKit/.test(navigator.userAgent)&&/Mobile\/\w+/.test(navigator.userAgent),co=lo||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(navigator.userAgent),uo=lo||/Mac/.test(navigator.platform),fo=/win/i.test(navigator.platform),po=ro&&navigator.userAgent.match(/Version\/(\d*\.\d*)/);po&&(po=Number(po[1])),po&&po>=15&&(ro=!1,eo=!0);var ho=uo&&(to||ro&&(null==po||12.11>po)),mo=Yi||Xi&&Qi>=9,go=!1,vo=!1,bo=e.Pos=function(e,t){return this instanceof bo?(this.line=e,void(this.ch=t)):new bo(e,t)},yo=e.cmpPos=function(e,t){return e.line-t.line||e.ch-t.ch};G.prototype={primary:function(){return this.ranges[this.primIndex]},equals:function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(0!=yo(n.anchor,r.anchor)||0!=yo(n.head,r.head))return!1}return!0},deepCopy:function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new K(B(this.ranges[t].anchor),B(this.ranges[t].head));return new G(e,this.primIndex)},somethingSelected:function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},contains:function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(yo(t,r.from())>=0&&yo(e,r.to())<=0)return n}return-1}},K.prototype={from:function(){return V(this.anchor,this.head)},to:function(){return H(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};var ko={left:0,right:0,top:0,bottom:0},xo,_o=null,wo=0,So=null,To,Eo,Co=0,Mo=0,Lo=null;Xi?Lo=-.53:Yi?Lo=15:no?Lo=-.7:io&&(Lo=-1/3);var Ao=new ui,Io=null,Ro=e.changeEnd=function(e){return e.text?bo(e.from.line+e.text.length-1,pi(e.text).length+(1==e.text.length?e.from.ch:0)):e.to};e.prototype={constructor:e,focus:function(){window.focus(),St(this),xt(this)},setOption:function(e,t){var n=this.options,r=n[e];(n[e]!=t||"mode"==e)&&(n[e]=t,No.hasOwnProperty(e)&<(this,No[e])(this,t,r))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Mn(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:ct(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");this.state.overlays.push({mode:r,modeSpec:t,opaque:n&&n.opaque}),this.state.modeGen++,pt(this)}),removeOverlay:ct(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void pt(this)}}),indentLine:ct(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),ee(this.doc,e)&&xn(this,e,t,n)}),indentSelection:ct(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(xn(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&yn(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;n>l;++l)xn(this,l,e);var c=this.doc.sel.ranges;0==o.ch&&t.length==c.length&&c[r].from().ch>0&&oe(this.doc,r,new K(o,c[r].to()),ma)}}}),getTokenAt:function(e,t){return pr(this,e,t)},getLineTokens:function(e,t){return pr(this,bo(e),t,!0)},getTokenTypeAt:function(e){e=X(this.doc,e);var t=gr(this,Rr(this.doc,e.line)),n=0,r=(t.length-1)/2,i=e.ch,o;if(0==i)o=t[2];else for(;;){var a=n+r>>1;if((a?t[2*a-1]:0)>=i)r=a;else{if(!(t[2*a+1]<i)){o=t[2*a+2];break}n=a+1}}var s=o?o.indexOf("cm-overlay "):-1;return 0>s?o:0==s?null:o.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=[];if(!jo.hasOwnProperty(t))return jo;var r=jo[t],i=this.getModeAt(e);if("string"==typeof i[t])r[i[t]]&&n.push(r[i[t]]);else if(i[t])for(var o=0;o<i[t].length;o++){var a=r[i[t][o]];a&&n.push(a)}else i.helperType&&r[i.helperType]?n.push(r[i.helperType]):r[i.name]&&n.push(r[i.name]);for(var o=0;o<r._global.length;o++){var s=r._global[o];s.pred(i,this)&&-1==hi(n,s.val)&&n.push(s.val)}return n},getStateAfter:function(e,t){var n=this.doc;return e=J(n,null==e?n.first+n.size-1:e),Se(this,e+1,t)},cursorCoords:function(e,t){var n,r=this.doc.sel.primary();return n=null==e?r.head:"object"==typeof e?X(this.doc,e):e?r.from():r.to(),He(this,n,t||"page")},charCoords:function(e,t){return Be(this,X(this.doc,e),t||"page")},coordsChar:function(e,t){return e=Fe(this,e,t||"page"),Ke(this,e.left,e.top)},lineAtHeight:function(e,t){return e=Fe(this,{top:e,left:0},t||"page").top,Dr(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t){var n=!1,r=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>r&&(e=r,n=!0);var i=Rr(this.doc,e);return Ue(this,i,{top:0,left:0},t||"page").top+(n?this.doc.height-$r(i):0)},defaultTextHeight:function(){return Ze(this.display)},defaultCharWidth:function(){return Je(this.display)},setGutterMarker:ct(function(e,t,n){return _n(this.doc,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&ki(r)&&(e.gutterMarkers=null),!0})}),clearGutter:ct(function(e){var t=this,n=t.doc,r=n.first;n.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&(n.gutterMarkers[e]=null,ht(t,r,"gutter"),ki(n.gutterMarkers)&&(n.gutterMarkers=null)),++r})}),addLineWidget:ct(function(e,t,n){return sr(this,e,t,n)}),removeLineWidget:function(e){e.clear()},lineInfo:function(e){if("number"==typeof e){if(!ee(this.doc,e))return null;
|
||
|
||
var t=e;if(e=Rr(this.doc,e),!e)return null}else{var t=Pr(e);if(null==t)return null}return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display;e=He(this,X(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),c=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&gn(this,s,a,s+t.offsetWidth,a+t.offsetHeight)},triggerOnKeyDown:ct(Gt),triggerOnKeyPress:ct(Zt),triggerOnKeyUp:Yt,execCommand:function(e){return Fo.hasOwnProperty(e)?Fo[e](this):void 0},findPosH:function(e,t,n,r){var i=1;0>t&&(i=-1,t=-t);for(var o=0,a=X(this.doc,e);t>o&&(a=Sn(this.doc,a,i,n,r),!a.hitSide);++o);return a},moveH:ct(function(e,t){var n=this;n.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?Sn(n.doc,r.head,e,t,n.options.rtlMoveVisually):0>e?r.from():r.to()},va)}),deleteH:ct(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):wn(this,function(n){var i=Sn(r,n.head,e,t,!1);return 0>e?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=1,o=r;0>t&&(i=-1,t=-t);for(var a=0,s=X(this.doc,e);t>a;++a){var l=He(this,s,"div");if(null==o?o=l.left:l.left=o,s=Tn(this,l,i,n),s.hitSide)break}return s},moveV:ct(function(e,t){var n=this,r=this.doc,i=[],o=!n.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(o)return 0>e?a.from():a.to();var s=He(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Tn(n,s,e,t);return"page"==t&&a==r.sel.primary()&&bn(n,null,Be(n,l,"div").top-s.top),l},va),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]}),findWordAt:function(e){var t=this.doc,n=Rr(t,e.line).text,r=e.ch,i=e.ch;if(n){var o=this.getHelper(e,"wordChars");(e.xRel<0||i==n.length)&&r?--r:++i;for(var a=n.charAt(r),s=yi(a,o)?function(e){return yi(e,o)}:/\s/.test(a)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!yi(e)};r>0&&s(n.charAt(r-1));)--r;for(;i<n.length&&s(n.charAt(i));)++i}return new K(bo(e.line,r),bo(e.line,i))},toggleOverwrite:function(e){(null==e||e!=this.state.overwrite)&&((this.state.overwrite=!this.state.overwrite)?Ea(this.display.cursorDiv,"CodeMirror-overwrite"):Ta(this.display.cursorDiv,"CodeMirror-overwrite"),da(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return Ei()==this.display.input},scrollTo:ct(function(e,t){(null!=e||null!=t)&&kn(this),null!=e&&(this.curOp.scrollLeft=e),null!=t&&(this.curOp.scrollTop=t)}),getScrollInfo:function(){var e=this.display.scroller,t=pa;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-t,width:e.scrollWidth-t,clientHeight:e.clientHeight-t,clientWidth:e.clientWidth-t}},scrollIntoView:ct(function(e,t){if(null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:bo(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line)kn(this),this.curOp.scrollToPos=e;else{var n=vn(this,Math.min(e.from.left,e.to.left),Math.min(e.from.top,e.to.top)-e.margin,Math.max(e.from.right,e.to.right),Math.max(e.from.bottom,e.to.bottom)+e.margin);this.scrollTo(n.scrollLeft,n.scrollTop)}}),setSize:ct(function(e,t){function n(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e}var r=this;null!=e&&(r.display.wrapper.style.width=n(e)),null!=t&&(r.display.wrapper.style.height=n(t)),r.options.lineWrapping&&$e(this);var i=r.display.viewFrom;r.doc.iter(i,r.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){ht(r,i,"widget");break}++i}),r.curOp.forceUpdate=!0,da(r,"refresh",this)}),operation:function(e){return st(this,e)},refresh:ct(function(){var e=this.display.cachedTextHeight;pt(this),this.curOp.forceUpdate=!0,qe(this),this.scrollTo(this.doc.scrollLeft,this.doc.scrollTop),u(this),(null==e||Math.abs(e-Ze(this.display))>.5)&&a(this),da(this,"refresh",this)}),swapDoc:ct(function(e){var t=this.doc;return t.cm=null,Ir(this,e),qe(this),wt(this),this.scrollTo(e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,ii(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ci(e);var Oo=e.defaults={},No=e.optionHandlers={},zo=e.Init={toString:function(){return"CodeMirror.Init"}};En("value","",function(e,t){e.setValue(t)},!0),En("mode",null,function(e,t){e.doc.modeOption=t,n(e)},!0),En("indentUnit",2,n,!0),En("indentWithTabs",!1),En("smartIndent",!0),En("tabSize",4,function(e){r(e),qe(e),pt(e)},!0),En("specialChars",/[\t\u0000-\u0019\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t){e.options.specialChars=new RegExp(t.source+(t.test(" ")?"":"| "),"g"),e.refresh()},!0),En("specialCharPlaceholder",kr,function(e){e.refresh()},!0),En("electricChars",!0),En("rtlMoveVisually",!fo),En("wholeLineUpdateBefore",!0),En("theme","default",function(e){s(e),l(e)},!0),En("keyMap","default",function(t,n,r){var i=Mn(n),o=r!=e.Init&&Mn(r);o&&o.detach&&o.detach(t,i),i.attach&&i.attach(t,o||null)}),En("extraKeys",null),En("lineWrapping",!1,i,!0),En("gutters",[],function(e){p(e.options),l(e)},!0),En("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?x(e.display)+"px":"0",e.refresh()},!0),En("coverGutterNextToScrollbar",!1,g,!0),En("lineNumbers",!1,function(e){p(e.options),l(e)},!0),En("firstLineNumber",1,l,!0),En("lineNumberFormatter",function(e){return e},l,!0),En("showCursorWhenSelecting",!1,ve,!0),En("resetSelectionOnContextMenu",!0),En("readOnly",!1,function(e,t){"nocursor"==t?(Xt(e),e.display.input.blur(),e.display.disabled=!0):(e.display.disabled=!1,t||wt(e))}),En("disableInput",!1,function(e,t){t||wt(e)},!0),En("dragDrop",!0),En("cursorBlinkRate",530),En("cursorScrollMargin",0),En("cursorHeight",1,ve,!0),En("singleCursorHeightPerLine",!0,ve,!0),En("workTime",100),En("workDelay",100),En("flattenSpans",!0,r,!0),En("addModeClass",!1,r,!0),En("pollInterval",100),En("undoDepth",200,function(e,t){e.doc.history.undoDepth=t}),En("historyEventDelay",1250),En("viewportMargin",10,function(e){e.refresh()},!0),En("maxHighlightLength",1e4,r,!0),En("moveInputWithCursor",!0,function(e,t){t||(e.display.inputDiv.style.top=e.display.inputDiv.style.left=0)}),En("tabindex",null,function(e,t){e.display.input.tabIndex=t||""}),En("autofocus",null);var Po=e.modes={},Do=e.mimeModes={};e.defineMode=function(t,n){e.defaults.mode||"null"==t||(e.defaults.mode=t),arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Po[t]=n},e.defineMIME=function(e,t){Do[e]=t},e.resolveMode=function(t){if("string"==typeof t&&Do.hasOwnProperty(t))t=Do[t];else if(t&&"string"==typeof t.name&&Do.hasOwnProperty(t.name)){var n=Do[t.name];"string"==typeof n&&(n={name:n}),t=gi(n,t),t.name=n.name}else if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return e.resolveMode("application/xml");return"string"==typeof t?{name:t}:t||{name:"null"}},e.getMode=function(t,n){var n=e.resolveMode(n),r=Po[n.name];if(!r)return e.getMode(t,"text/plain");var i=r(t,n);if($o.hasOwnProperty(n.name)){var o=$o[n.name];for(var a in o)o.hasOwnProperty(a)&&(i.hasOwnProperty(a)&&(i["_"+a]=i[a]),i[a]=o[a])}if(i.name=n.name,n.helperType&&(i.helperType=n.helperType),n.modeProps)for(var a in n.modeProps)i[a]=n.modeProps[a];return i},e.defineMode("null",function(){return{token:function(e){e.skipToEnd()}}}),e.defineMIME("text/plain","null");var $o=e.modeExtensions={};e.extendMode=function(e,t){var n=$o.hasOwnProperty(e)?$o[e]:$o[e]={};vi(t,n)},e.defineExtension=function(t,n){e.prototype[t]=n},e.defineDocExtension=function(e,t){ra.prototype[e]=t},e.defineOption=En;var qo=[];e.defineInitHook=function(e){qo.push(e)};var jo=e.helpers={};e.registerHelper=function(t,n,r){jo.hasOwnProperty(t)||(jo[t]=e[t]={_global:[]}),jo[t][n]=r},e.registerGlobalHelper=function(t,n,r,i){e.registerHelper(t,n,i),jo[t]._global.push({pred:r,val:i})};var Wo=e.copyState=function(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n},Uo=e.startState=function(e,t,n){return e.startState?e.startState(t,n):!0};e.innerMode=function(e,t){for(;e.innerMode;){var n=e.innerMode(t);if(!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}};var Fo=e.commands={selectAll:function(e){e.setSelection(bo(e.firstLine(),0),bo(e.lastLine()),ma)},singleSelection:function(e){e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ma)},killLine:function(e){wn(e,function(t){if(t.empty()){var n=Rr(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:bo(t.head.line+1,0)}:{from:t.head,to:bo(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){wn(e,function(t){return{from:bo(t.from().line,0),to:X(e.doc,bo(t.to().line+1,0))}})},delLineLeft:function(e){wn(e,function(e){return{from:bo(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){wn(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return{from:r,to:t.from()}})},delWrappedLineRight:function(e){wn(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){e.undo()},redo:function(e){e.redo()},undoSelection:function(e){e.undoSelection()},redoSelection:function(e){e.redoSelection()},goDocStart:function(e){e.extendSelection(bo(e.firstLine(),0))},goDocEnd:function(e){e.extendSelection(bo(e.lastLine()))},goLineStart:function(e){e.extendSelectionsBy(function(t){return Wi(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){e.extendSelectionsBy(function(t){return Fi(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){e.extendSelectionsBy(function(t){return Ui(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){e.extendSelectionsBy(function(t){var n=e.charCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},va)},goLineLeft:function(e){e.extendSelectionsBy(function(t){var n=e.charCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},va)},goLineLeftSmart:function(e){e.extendSelectionsBy(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?Fi(e,t.head):r},va)},goLineUp:function(e){e.moveV(-1,"line")},goLineDown:function(e){e.moveV(1,"line")},goPageUp:function(e){e.moveV(-1,"page")},goPageDown:function(e){e.moveV(1,"page")},goCharLeft:function(e){e.moveH(-1,"char")},goCharRight:function(e){e.moveH(1,"char")},goColumnLeft:function(e){e.moveH(-1,"column")},goColumnRight:function(e){e.moveH(1,"column")},goWordLeft:function(e){e.moveH(-1,"word")},goGroupRight:function(e){e.moveH(1,"group")},goGroupLeft:function(e){e.moveH(-1,"group")},goWordRight:function(e){e.moveH(1,"word")},delCharBefore:function(e){e.deleteH(-1,"char")},delCharAfter:function(e){e.deleteH(1,"char")},delWordBefore:function(e){e.deleteH(-1,"word")},delWordAfter:function(e){e.deleteH(1,"word")},delGroupBefore:function(e){e.deleteH(-1,"group")},delGroupAfter:function(e){e.deleteH(1,"group")},indentAuto:function(e){e.indentSelection("smart")},indentMore:function(e){e.indentSelection("add")},indentLess:function(e){e.indentSelection("subtract")},insertTab:function(e){e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=ba(e.getLine(o.line),o.ch,r);t.push(new Array(r-a%r+1).join(" "))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){st(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){var i=t[r].head,o=Rr(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new bo(i.line,i.ch-1)),i.ch>0)i=new bo(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),bo(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Rr(e.doc,i.line-1).text;a&&e.replaceRange(o.charAt(0)+"\n"+a.charAt(a.length-1),bo(i.line-1,a.length-1),bo(i.line,1),"+transpose")}n.push(new K(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){st(e,function(){for(var t=e.listSelections().length,n=0;t>n;n++){var r=e.listSelections()[n];e.replaceRange("\n",r.anchor,r.head,"+input"),e.indentLine(r.from().line+1,null,!0),yn(e)}})},toggleOverwrite:function(e){e.toggleOverwrite()}},Bo=e.keyMap={};Bo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Bo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Bo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars"},Bo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Bo["default"]=uo?Bo.macDefault:Bo.pcDefault,e.normalizeKeyMap=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=mi(n.split(" "),Cn),o=0;o<i.length;o++){var a,s;o==i.length-1?(s=n,a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var c in t)e[c]=t[c];return e};var Ho=e.lookupKey=function(e,t,n){t=Mn(t);var r=t.call?t.call(e):t[e];if(r===!1)return"nothing";if("..."===r)return"multi";if(null!=r&&n(r))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Ho(e,t.fallthrough,n);for(var i=0;i<t.fallthrough.length;i++){var o=Ho(e,t.fallthrough[i],n);if(o)return o}}},Vo=e.isModifierKey=function(e){var t="string"==typeof e?e:Pa[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t},Go=e.keyName=function(e,t){if(ro&&34==e.keyCode&&e["char"])return!1;var n=Pa[e.keyCode],r=n;return null==r||e.altGraphKey?!1:(e.altKey&&"Alt"!=n&&(r="Alt-"+r),(ho?e.metaKey:e.ctrlKey)&&"Ctrl"!=n&&(r="Ctrl-"+r),(ho?e.ctrlKey:e.metaKey)&&"Cmd"!=n&&(r="Cmd-"+r),!t&&e.shiftKey&&"Shift"!=n&&(r="Shift-"+r),r)};e.fromTextArea=function(t,n){function r(){t.value=c.getValue()}if(n||(n={}),n.value=t.value,!n.tabindex&&t.tabindex&&(n.tabindex=t.tabindex),!n.placeholder&&t.placeholder&&(n.placeholder=t.placeholder),null==n.autofocus){var i=Ei();n.autofocus=i==t||null!=t.getAttribute("autofocus")&&i==document.body}if(t.form&&(ca(t.form,"submit",r),!n.leaveSubmitMethodAlone)){var o=t.form,a=o.submit;try{var s=o.submit=function(){r(),o.submit=a,o.submit(),o.submit=s}}catch(l){}}t.style.display="none";var c=e(function(e){t.parentNode.insertBefore(e,t.nextSibling)},n);return c.save=r,c.getTextArea=function(){return t},c.toTextArea=function(){c.toTextArea=isNaN,r(),t.parentNode.removeChild(c.getWrapperElement()),t.style.display="",t.form&&(ua(t.form,"submit",r),"function"==typeof t.form.submit&&(t.form.submit=a))},c};var Ko=e.StringStream=function(e,t){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};Ko.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){return this.pos<this.string.length?this.string.charAt(this.pos++):void 0},eat:function(e){var t=this.string.charAt(this.pos);if("string"==typeof e)var n=t==e;else var n=t&&(e.test?e.test(t):e(t));return n?(++this.pos,t):void 0},eatWhile:function(e){for(var t=this.pos;this.eat(e););return this.pos>t},eatSpace:function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);return t>-1?(this.pos=t,!0):void 0},backUp:function(e){this.pos-=e},column:function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ba(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ba(this.string,this.lineStart,this.tabSize):0)},indentation:function(){return ba(this.string,null,this.tabSize)-(this.lineStart?ba(this.string,this.lineStart,this.tabSize):0)},match:function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&t!==!1&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);return i(o)==i(e)?(t!==!1&&(this.pos+=e.length),!0):void 0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}};var Yo=e.TextMarker=function(e,t){this.lines=[],this.type=t,this.doc=e};ci(Yo),Yo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Xe(e),li(this,"clear")){var n=this.find();n&&ii(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=zn(a.markedSpans,this);e&&!this.collapsed?ht(e,Pr(a),"text"):e&&(null!=s.to&&(i=Pr(a)),null!=s.from&&(r=Pr(a))),a.markedSpans=Pn(a.markedSpans,s),null==s.from&&this.collapsed&&!rr(this.doc,a)&&e&&zr(a,Ze(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var o=0;o<this.lines.length;++o){var l=Qn(this.lines[o]),c=d(l);c>e.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&pt(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&fe(e.doc)),e&&ii(e,"markerCleared",e,this),t&&et(e),this.parent&&this.parent.clear()}},Yo.prototype.find=function(e,t){null==e&&"bookmark"==this.type&&(e=1);for(var n,r,i=0;i<this.lines.length;++i){var o=this.lines[i],a=zn(o.markedSpans,this);if(null!=a.from&&(n=bo(t?o:Pr(o),a.from),-1==e))return n;if(null!=a.to&&(r=bo(t?o:Pr(o),a.to),1==e))return r}return n&&{from:n,to:r}},Yo.prototype.changed=function(){var e=this.find(-1,!0),t=this,n=this.doc.cm;e&&n&&st(n,function(){var r=e.line,i=Pr(e.line),o=Re(n,i);if(o&&(De(o),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!rr(t.doc,r)&&null!=t.height){var a=t.height;t.height=null;var s=ar(t)-a;s&&zr(r,r.height+s)}})},Yo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=hi(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Yo.prototype.detachLine=function(e){if(this.lines.splice(hi(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}};var Zo=0,Jo=e.SharedTextMarker=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};ci(Jo),Jo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ii(this,"clear")}},Jo.prototype.find=function(e,t){return this.primary.find(e,t)};var Xo=e.LineWidget=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.cm=e,this.node=t};ci(Xo),Xo.prototype.clear=function(){var e=this.cm,t=this.line.widgets,n=this.line,r=Pr(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=ar(this);st(e,function(){or(e,n,-o),ht(e,r,"widget"),zr(n,Math.max(0,n.height-o))})}},Xo.prototype.changed=function(){var e=this.height,t=this.cm,n=this.line;this.height=null;var r=ar(this)-e;r&&st(t,function(){t.curOp.forceUpdate=!0,or(t,n,r),zr(n,n.height+r)})};var Qo=e.Line=function(e,t,n){this.text=e,Hn(this,t),this.height=n?n(this):1};ci(Qo),Qo.prototype.lineNo=function(){return Pr(this)};var ea={},ta={};Mr.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;r>n;++n){var i=this.lines[n];this.height-=i.height,cr(i),ii(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;r>e;++e)if(n(this.lines[e]))return!0}},Lr.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(i>e){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Mr))){var s=[];this.collapse(s),this.children=[new Mr(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(o>=e){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(;i.lines.length>50;){var a=i.lines.splice(i.lines.length-25,25),s=new Mr(a);i.height-=s.height,this.children.splice(r+1,0,s),s.parent=this}this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new Lr(t);if(e.parent){e.size-=n.size,e.height-=n.height;var r=hi(e.parent.children,e);e.parent.children.splice(r+1,0,n)}else{var i=new Lr(e.children);i.parent=e,e.children=[i,n],e=i}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(o>e){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var na=0,ra=e.Doc=function(e,t,n){if(!(this instanceof ra))return new ra(e,t,n);null==n&&(n=0),Lr.call(this,[new Mr([new Qo("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.frontier=n;var r=bo(n,0);this.sel=Z(r),this.history=new jr(null),this.id=++na,this.modeOption=t,"string"==typeof e&&(e=Ra(e)),Cr(this,{from:r,to:r,text:e}),ce(this,Z(r),ma)};ra.prototype=gi(Lr.prototype,{constructor:ra,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Nr(this,this.first,this.first+this.size);return e===!1?t:t.join(e||"\n")},setValue:ut(function(e){var t=bo(this.first,0),n=this.first+this.size-1;sn(this,{from:t,to:bo(n,Rr(this,n).text.length),text:Ra(e),origin:"setValue"},!0),ce(this,Z(t))}),replaceRange:function(e,t,n,r){t=X(this,t),n=n?X(this,n):t,pn(this,e,t,n,r)},getRange:function(e,t,n){var r=Or(this,X(this,e),X(this,t));return n===!1?r:r.join(n||"\n")},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){return ee(this,e)?Rr(this,e):void 0},getLineNumber:function(e){return Pr(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Rr(this,e)),Qn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return X(this,e)},getCursor:function(e){var t=this.sel.primary(),n;return n=null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||e===!1?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ut(function(e,t,n){ae(this,X(this,"number"==typeof e?bo(e,t||0):e),null,n)}),setSelection:ut(function(e,t,n){ae(this,X(this,e),X(this,t||e),n)}),extendSelection:ut(function(e,t,n){re(this,X(this,e),t&&X(this,t),n)}),extendSelections:ut(function(e,t){ie(this,te(this,e,t))}),extendSelectionsBy:ut(function(e,t){ie(this,mi(this.sel.ranges,e),t)}),setSelections:ut(function(e,t,n){if(e.length){for(var r=0,i=[];r<e.length;r++)i[r]=new K(X(this,e[r].anchor),X(this,e[r].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),ce(this,Y(i,t),n)}}),addSelection:ut(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new K(X(this,e),X(this,t||e))),ce(this,Y(r,r.length-1),n)}),getSelection:function(e){for(var t=this.sel.ranges,n,r=0;r<t.length;r++){var i=Or(this,t[r].from(),t[r].to());n=n?n.concat(i):i}return e===!1?n:n.join(e||"\n")},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Or(this,n[r].from(),n[r].to());e!==!1&&(i=i.join(e||"\n")),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ut(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:Ra(e[o]),origin:n}}for(var s=t&&"end"!=t&&on(this,r,t),o=r.length-1;o>=0;o--)sn(this,r[o]);s?le(this,s):this.cm&&yn(this.cm)}),undo:ut(function(){cn(this,"undo")}),redo:ut(function(){cn(this,"redo")}),undoSelection:ut(function(){cn(this,"undo",!0)}),redoSelection:ut(function(){cn(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var r=0;r<e.undone.length;r++)e.undone[r].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){this.history=new jr(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Jr(this.history.done),undone:Jr(this.history.undone)}},setHistory:function(e){var t=this.history=new jr(this.history.maxGeneration);t.done=Jr(e.done.slice(0),null,!0),t.undone=Jr(e.undone.slice(0),null,!0)},addLineClass:ut(function(e,t,n){return _n(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(Ci(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0})}),removeLineClass:ut(function(e,t,n){return _n(this,e,"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(Ci(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0})}),markText:function(e,t,n){return Ln(this,X(this,e),X(this,t),n,"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared};return e=X(this,e),Ln(this,e,e,n,"bookmark")},findMarksAt:function(e){e=X(this,e);var t=[],n=Rr(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=X(this,e),t=X(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];i==e.line&&e.ch>l.to||null==l.from&&i!=e.line||i==t.line&&l.from>t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first;return this.iter(function(r){var i=r.text.length+1;return i>e?(t=e,!0):(e-=i,void++n)}),X(this,bo(n,t))},indexFromPos:function(e){e=X(this,e);var t=e.ch;return e.line<this.first||e.ch<0?0:(this.iter(this.first,e.line,function(e){t+=e.text.length+1}),t)},copy:function(e){var t=new ra(Nr(this,this.first,this.first+this.size),this.modeOption,this.first);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new ra(Nr(this,t,n),e.mode||this.modeOption,t);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Rn(r,In(this)),r},unlinkDoc:function(t){if(t instanceof e&&(t=t.doc),this.linked)for(var n=0;n<this.linked.length;++n){var r=this.linked[n];if(r.doc==t){this.linked.splice(n,1),t.unlinkDoc(this),On(In(this));break}}if(t.history==this.history){var i=[t.id];Ar(t,function(e){i.push(e.id)},!0),t.history=new jr(null),t.history.done=Jr(this.history.done,i),t.history.undone=Jr(this.history.undone,i)}},iterLinkedDocs:function(e){Ar(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm}}),ra.prototype.eachLine=ra.prototype.iter;var ia="iter insert remove copy getEditor".split(" ");for(var oa in ra.prototype)ra.prototype.hasOwnProperty(oa)&&hi(ia,oa)<0&&(e.prototype[oa]=function(e){return function(){return e.apply(this.doc,arguments)}}(ra.prototype[oa]));ci(ra);var aa=e.e_preventDefault=function(e){
|
||
e.preventDefault?e.preventDefault():e.returnValue=!1},sa=e.e_stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},la=e.e_stop=function(e){aa(e),sa(e)},ca=e.on=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={}),i=r[t]||(r[t]=[]);i.push(n)}},ua=e.off=function(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers&&e._handlers[t];if(!r)return;for(var i=0;i<r.length;++i)if(r[i]==n){r.splice(i,1);break}}},da=e.signal=function(e,t){var n=e._handlers&&e._handlers[t];if(n)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)},fa=null,pa=30,ha=e.Pass={toString:function(){return"CodeMirror.Pass"}},ma={scroll:!1},ga={origin:"*mouse"},va={origin:"+move"};ui.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var ba=e.countColumn=function(e,t,n,r,i){null==t&&(t=e.search(/[^\s\u00a0]/),-1==t&&(t=e.length));for(var o=r||0,a=i||0;;){var s=e.indexOf(" ",o);if(0>s||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}},ya=[""],ka=function(e){e.select()};lo?ka=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:Xi&&(ka=function(e){try{e.select()}catch(t){}}),[].indexOf&&(hi=function(e,t){return e.indexOf(t)}),[].map&&(mi=function(e,t){return e.map(t)});var xa=/[\u00df\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,_a=e.isWordChar=function(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||xa.test(e))},wa=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,Sa;Sa=document.createRange?function(e,t,n){var r=document.createRange();return r.setEnd(e,n),r.setStart(e,t),r}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(i){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r},Xi&&11>Qi&&(Ei=function(){try{return document.activeElement}catch(e){return document.body}});var Ta=e.rmClass=function(e,t){var n=e.className,r=Ci(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}},Ea=e.addClass=function(e,t){var n=e.className;Ci(t).test(n)||(e.className+=(n?" ":"")+t)},Ca=!1,Ma=function(){if(Xi&&9>Qi)return!1;var e=_i("div");return"draggable"in e||"dragDrop"in e}(),La,Aa,Ia,Ra=e.splitLines=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;r>=t;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Oa=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){try{var t=e.ownerDocument.selection.createRange()}catch(n){}return t&&t.parentElement()==e?0!=t.compareEndPoints("StartToEnd",t):!1},Na=function(){var e=_i("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),za=null,Pa={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",107:"=",109:"-",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};e.keyNames=Pa,function(){for(var e=0;10>e;e++)Pa[e+48]=Pa[e+96]=String(e);for(var e=65;90>=e;e++)Pa[e]=String.fromCharCode(e);for(var e=1;12>=e;e++)Pa[e+111]=Pa[e+63235]="F"+e}();var Da,$a=function(){function e(e){return 247>=e?n.charAt(e):e>=1424&&1524>=e?"R":e>=1536&&1773>=e?r.charAt(e-1536):e>=1774&&2220>=e?"r":e>=8192&&8203>=e?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="rrrrrrrrrrrr,rNNmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmrrrrrrrnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmNmmmm",i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,a=/[LRr]/,s=/[Lb1n]/,l=/[1n]/,c="L";return function(n){if(!i.test(n))return!1;for(var r=n.length,u=[],d=0,f;r>d;++d)u.push(f=e(n.charCodeAt(d)));for(var d=0,p=c;r>d;++d){var f=u[d];"m"==f?u[d]=p:p=f}for(var d=0,h=c;r>d;++d){var f=u[d];"1"==f&&"r"==h?u[d]="n":a.test(f)&&(h=f,"r"==f&&(u[d]="R"))}for(var d=1,p=u[0];r-1>d;++d){var f=u[d];"+"==f&&"1"==p&&"1"==u[d+1]?u[d]="1":","!=f||p!=u[d+1]||"1"!=p&&"n"!=p||(u[d]=p),p=f}for(var d=0;r>d;++d){var f=u[d];if(","==f)u[d]="N";else if("%"==f){for(var m=d+1;r>m&&"%"==u[m];++m);for(var g=d&&"!"==u[d-1]||r>m&&"1"==u[m]?"1":"N",v=d;m>v;++v)u[v]=g;d=m-1}}for(var d=0,h=c;r>d;++d){var f=u[d];"L"==h&&"1"==f?u[d]="L":a.test(f)&&(h=f)}for(var d=0;r>d;++d)if(o.test(u[d])){for(var m=d+1;r>m&&o.test(u[m]);++m);for(var b="L"==(d?u[d-1]:c),y="L"==(r>m?u[m]:c),g=b||y?"L":"R",v=d;m>v;++v)u[v]=g;d=m-1}for(var k=[],x,d=0;r>d;)if(s.test(u[d])){var _=d;for(++d;r>d&&s.test(u[d]);++d);k.push(new t(0,_,d))}else{var w=d,S=k.length;for(++d;r>d&&"L"!=u[d];++d);for(var v=w;d>v;)if(l.test(u[v])){v>w&&k.splice(S,0,new t(1,w,v));var T=v;for(++v;d>v&&l.test(u[v]);++v);k.splice(S,0,new t(2,T,v)),w=v}else++v;d>w&&k.splice(S,0,new t(1,w,d))}return 1==k[0].level&&(x=n.match(/^\s+/))&&(k[0].from=x[0].length,k.unshift(new t(0,0,x[0].length))),1==pi(k).level&&(x=n.match(/\s+$/))&&(pi(k).to-=x[0].length,k.push(new t(0,r-x[0].length,r))),k[0].level!=pi(k).level&&k.push(new t(k[0].level,r,r)),k}}();return e.version="4.7.1",e})}).call(this),function(){Template.__checkName("CodeMirror"),Template.CodeMirror=new Template("Template.CodeMirror",function(){var e=this;return HTML.TEXTAREA({id:function(){return Spacebars.mustache(e.lookup("editorId"))},name:function(){return Spacebars.mustache(e.lookup("editorName"))},style:"display: none",value:function(){return Spacebars.mustache(e.lookup("code"))}})})}.call(this),function(){Template.CodeMirror.rendered=function(){var e=this.data.options||{lineNumbers:!0},t=this.find("textarea"),n=CodeMirror.fromTextArea(t,e),r=this;n.on("change",function(e){var n=e.getValue();t.value=n,r.data.reactiveVar&&Session.set(r.data.reactiveVar,n)}),this.data.reactiveVar&&Tracker.autorun(function(){var e=Session.get(r.data.reactiveVar)||"";e!=n.getValue()&&n.setValue(e)})},Template.CodeMirror.destroyed=function(){this.$("#"+(this.data.id||"code-mirror-textarea")).next(".CodeMirror").remove()},Template.CodeMirror.helpers({editorId:function(){return this.id||"code-mirror-textarea"},editorName:function(){return this.name||"code-mirror-textarea"}})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.registerHelper("fold","brace",function(t,n){function r(r){for(var a=n.ch,l=0;;){var c=0>=a?-1:o.lastIndexOf(r,a-1);if(-1!=c){if(1==l&&c<n.ch)break;if(s=t.getTokenTypeAt(e.Pos(i,c+1)),!/^(comment|string)/.test(s))return c+1;a=c-1}else{if(1==l)break;l=1,a=o.length}}}var i=n.line,o=t.getLine(i),a,s,l="{",c="}",a=r("{");if(null==a&&(l="[",c="]",a=r("[")),null!=a){var u=1,d=t.lastLine(),f,p;e:for(var h=i;d>=h;++h)for(var m=t.getLine(h),g=h==i?a:0;;){var v=m.indexOf(l,g),b=m.indexOf(c,g);if(0>v&&(v=m.length),0>b&&(b=m.length),g=Math.min(v,b),g==m.length)break;if(t.getTokenTypeAt(e.Pos(h,g+1))==s)if(g==v)++u;else if(!--u){f=h,p=g;break e}++g}if(null!=f&&(i!=f||p!=a))return{from:e.Pos(i,a),to:e.Pos(f,p)}}}),e.registerHelper("fold","import",function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);o>=i;++i){var a=t.getLine(i),s=a.indexOf(";");if(-1!=s)return{startCh:r.end,end:e.Pos(i,s)}}}var n=n.line,i=r(n),o;if(!i||r(n-1)||(o=r(n-2))&&o.end.line==n-1)return null;for(var a=i.end;;){var s=r(a.line+1);if(null==s)break;a=s.end}return{from:t.clipPos(e.Pos(n,i.startCh+1)),to:a}}),e.registerHelper("fold","include",function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var n=n.line,i=r(n);if(null==i||null!=r(n-1))return null;for(var o=n;;){var a=r(o+1);if(null==a)break;++o}return{from:e.Pos(n,i+1),to:t.clipPos(e.Pos(o))}})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.registerGlobalHelper("fold","comment",function(e){return e.blockCommentStart&&e.blockCommentEnd},function(t,n){var r=t.getModeAt(n),i=r.blockCommentStart,o=r.blockCommentEnd;if(i&&o){for(var a=n.line,s=t.getLine(a),l,c=n.ch,u=0;;){var d=0>=c?-1:s.lastIndexOf(i,c-1);if(-1!=d){if(1==u&&d<n.ch)return;if(/comment/.test(t.getTokenTypeAt(e.Pos(a,d+1)))){l=d+i.length;break}c=d-1}else{if(1==u)return;u=1,c=s.length}}var f=1,p=t.lastLine(),h,m;e:for(var g=a;p>=g;++g)for(var v=t.getLine(g),b=g==a?l:0;;){var y=v.indexOf(i,b),k=v.indexOf(o,b);if(0>y&&(y=v.length),0>k&&(k=v.length),b=Math.min(y,k),b==v.length)break;if(b==y)++f;else if(!--f){h=g,m=b;break e}++b}if(null!=h&&(a!=h||m!=l))return{from:e.Pos(a,l),to:e.Pos(h,m)}}})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(t,i,o,a){function s(e){var n=l(t,i);if(!n||n.to.line-n.from.line<c)return null;for(var r=t.findMarksAt(n.from),o=0;o<r.length;++o)if(r[o].__isFold&&"fold"!==a){if(!e)return null;n.cleared=!0,r[o].clear()}return n}if(o&&o.call){var l=o;o=null}else var l=r(t,o,"rangeFinder");"number"==typeof i&&(i=e.Pos(i,0));var c=r(t,o,"minFoldSize"),u=s(!0);if(r(t,o,"scanUp"))for(;!u&&i.line>t.firstLine();)i=e.Pos(i.line-1,0),u=s(!1);if(u&&!u.cleared&&"unfold"!==a){var d=n(t,o);e.on(d,"mousedown",function(t){f.clear(),e.e_preventDefault(t)});var f=t.markText(u.from,u.to,{replacedWith:d,clearOnEnter:!0,__isFold:!0});f.on("clear",function(n,r){e.signal(t,"unfold",t,n,r)}),e.signal(t,"fold",t,u.from,u.to)}}function n(e,t){var n=r(e,t,"widget");if("string"==typeof n){var i=document.createTextNode(n);n=document.createElement("span"),n.appendChild(i),n.className="CodeMirror-foldmarker"}return n}function r(e,t,n){if(t&&void 0!==t[n])return t[n];var r=e.options.foldOptions;return r&&void 0!==r[n]?r[n]:i[n]}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,r){t(this,e,n,r)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0}),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),null,"unfold")},e.commands.foldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();r>=n;n++)t.foldCode(e.Pos(n,0),null,"fold")})},e.commands.unfoldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();r>=n;n++)t.foldCode(e.Pos(n,0),null,"unfold")})},e.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}}),e.registerHelper("fold","auto",function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}});var i={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1};e.defineOption("foldOptions",null)})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./foldcode")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./foldcode"],e):e(CodeMirror)}(function(e){"use strict";function t(e){this.options=e,this.from=this.to=0}function n(e){return e===!0&&(e={}),null==e.gutter&&(e.gutter="CodeMirror-foldgutter"),null==e.indicatorOpen&&(e.indicatorOpen="CodeMirror-foldgutter-open"),null==e.indicatorFolded&&(e.indicatorFolded="CodeMirror-foldgutter-folded"),e}function r(e,t){for(var n=e.findMarksAt(d(t)),r=0;r<n.length;++r)if(n[r].__isFold&&n[r].find().from.line==t)return!0}function i(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function o(t,n,o){var a=t.state.foldGutter.options,s=n;t.eachLine(n,o,function(n){var o=null;if(r(t,s))o=i(a.indicatorFolded);else{var l=d(s,0),c=a.rangeFinder||e.fold.auto,u=c&&c(t,l);u&&u.from.line+1<u.to.line&&(o=i(a.indicatorOpen))}t.setGutterMarker(n,a.gutter,o),++s})}function a(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){o(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function s(e,t,n){var r=e.state.foldGutter.options;n==r.gutter&&e.foldCode(d(t,0),r.rangeFinder)}function l(e){var t=e.state.foldGutter,n=e.state.foldGutter.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){a(e)},n.foldOnChangeTimeSpan||600)}function c(e){var t=e.state.foldGutter,n=e.state.foldGutter.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?a(e):e.operation(function(){n.from<t.from&&(o(e,n.from,t.from),t.from=n.from),n.to>t.to&&(o(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}function u(e,t){var n=e.state.foldGutter,r=t.line;r>=n.from&&r<n.to&&o(e,r,r+1)}e.defineOption("foldGutter",!1,function(r,i,o){o&&o!=e.Init&&(r.clearGutter(r.state.foldGutter.options.gutter),r.state.foldGutter=null,r.off("gutterClick",s),r.off("change",l),r.off("viewportChange",c),r.off("fold",u),r.off("unfold",u),r.off("swapDoc",a)),i&&(r.state.foldGutter=new t(n(i)),a(r),r.on("gutterClick",s),r.on("change",l),r.on("viewportChange",c),r.on("fold",u),r.on("unfold",u),r.on("swapDoc",a))});var d=e.Pos})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.registerHelper("fold","indent",function(t,n){var r=t.getOption("tabSize"),i=t.getLine(n.line);if(/\S/.test(i)){for(var o=function(t){return e.countColumn(t,null,r)},a=o(i),s=null,l=n.line+1,c=t.lastLine();c>=l;++l){var u=t.getLine(l),d=o(u);if(d>a)s=l;else if(/\S/.test(u))break}return s?{from:e.Pos(n.line,i.length),to:e.Pos(s,t.getLine(s).length)}:void 0}})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.registerHelper("fold","markdown",function(t,n){function r(n){var r=t.getTokenTypeAt(e.Pos(n,0));return r&&/\bheader\b/.test(r)}function i(e,t,n){var i=t&&t.match(/^#+/);return i&&r(e)?i[0].length:(i=n&&n.match(/^[=\-]+\s*$/),i&&r(e+1)?"="==n[0]?1:2:o)}var o=100,a=t.getLine(n.line),s=t.getLine(n.line+1),l=i(n.line,a,s);if(l===o)return void 0;for(var c=t.lastLine(),u=n.line,d=t.getLine(u+2);c>u&&!(i(u+1,s,d)<=l);)++u,s=d,d=t.getLine(u+2);return{from:e.Pos(n.line,a.length),to:e.Pos(u,t.getLine(u).length)}})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){return e.line-t.line||e.ch-t.ch}function n(e,t,n,r){this.line=t,this.ch=n,this.cm=e,this.text=e.getLine(t),this.min=r?r.from:e.firstLine(),this.max=r?r.to-1:e.lastLine()}function r(e,t){var n=e.cm.getTokenTypeAt(f(e.line,t));return n&&/\btag\b/.test(n)}function i(e){return e.line>=e.max?void 0:(e.ch=0,e.text=e.cm.getLine(++e.line),!0)}function o(e){return e.line<=e.min?void 0:(e.text=e.cm.getLine(--e.line),e.ch=e.text.length,!0)}function a(e){for(;;){var t=e.text.indexOf(">",e.ch);if(-1==t){if(i(e))continue;return}{if(r(e,t+1)){var n=e.text.lastIndexOf("/",t),o=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,o?"selfClose":"regular"}e.ch=t+1}}}function s(e){for(;;){var t=e.ch?e.text.lastIndexOf("<",e.ch-1):-1;if(-1==t){if(o(e))continue;return}if(r(e,t+1)){m.lastIndex=t,e.ch=t;var n=m.exec(e.text);if(n&&n.index==t)return n}else e.ch=t}}function l(e){for(;;){m.lastIndex=e.ch;var t=m.exec(e.text);if(!t){if(i(e))continue;return}{if(r(e,t.index+1))return e.ch=t.index+t[0].length,t;e.ch=t.index+1}}}function c(e){for(;;){var t=e.ch?e.text.lastIndexOf(">",e.ch-1):-1;if(-1==t){if(o(e))continue;return}{if(r(e,t+1)){var n=e.text.lastIndexOf("/",t),i=n>-1&&!/\S/.test(e.text.slice(n+1,t));return e.ch=t+1,i?"selfClose":"regular"}e.ch=t}}}function u(e,t){for(var n=[];;){var r=l(e),i,o=e.line,s=e.ch-(r?r[0].length:0);if(!r||!(i=a(e)))return;if("selfClose"!=i)if(r[1]){for(var c=n.length-1;c>=0;--c)if(n[c]==r[2]){n.length=c;break}if(0>c&&(!t||t==r[2]))return{tag:r[2],from:f(o,s),to:f(e.line,e.ch)}}else n.push(r[2])}}function d(e,t){for(var n=[];;){var r=c(e);if(!r)return;if("selfClose"!=r){var i=e.line,o=e.ch,a=s(e);if(!a)return;if(a[1])n.push(a[2]);else{for(var l=n.length-1;l>=0;--l)if(n[l]==a[2]){n.length=l;break}if(0>l&&(!t||t==a[2]))return{tag:a[2],from:f(e.line,e.ch),to:f(i,o)}}}else s(e)}}var f=e.Pos,p="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",h=p+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",m=new RegExp("<(/?)(["+p+"]["+h+"]*)","g");e.registerHelper("fold","xml",function(e,t){for(var r=new n(e,t.line,0);;){var i=l(r),o;if(!i||r.line!=t.line||!(o=a(r)))return;if(!i[1]&&"selfClose"!=o){var t=f(r.line,r.ch),s=u(r,i[2]);return s&&{from:t,to:s.from}}}}),e.findMatchingTag=function(e,r,i){var o=new n(e,r.line,r.ch,i);if(-1!=o.text.indexOf(">")||-1!=o.text.indexOf("<")){var l=a(o),c=l&&f(o.line,o.ch),p=l&&s(o);if(l&&p&&!(t(o,r)>0)){var h={from:f(o.line,o.ch),to:c,tag:p[2]};return"selfClose"==l?{open:h,close:null,at:"open"}:p[1]?{open:d(o,p[2]),close:h,at:"close"}:(o=new n(e,c.line,c.ch,i),{open:h,close:u(o,p[2]),at:"open"})}}},e.findEnclosingTag=function(e,t,r){for(var i=new n(e,t.line,t.ch,r);;){var o=d(i);if(!o)break;var a=new n(e,t.line,t.ch,r),s=u(a,o.tag);if(s)return{open:o,close:s}}},e.scanForClosingTag=function(e,t,r,i){var o=new n(e,t.line,t.ch,i?{from:0,to:i}:null);return u(o,r)}})}.call(this),function(){jsonlint=function(){var e={trace:function n(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function r(e,t,n,i,o,a,s){var l=a.length-1;switch(o){case 1:this.$=e.replace(/\\(\\|")/g,"$1").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(e);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=a[l-1];break;case 13:this.$={};break;case 14:this.$=a[l-1];break;case 15:this.$=[a[l-2],a[l]];break;case 16:this.$={},this.$[a[l][0]]=a[l][1];break;case 17:this.$=a[l-2],a[l-2][a[l][0]]=a[l][1];break;case 18:this.$=[];break;case 19:this.$=a[l-1];break;case 20:this.$=[a[l]];break;case 21:this.$=a[l-2],a[l-2].push(a[l])}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function i(e,t){throw new Error(e)},parse:function o(e){function t(e){i.length=i.length-2*e,o.length=o.length-e,a.length=a.length-e}function n(){var e;return e=r.lexer.lex()||1,"number"!=typeof e&&(e=r.symbols_[e]||e),e}var r=this,i=[0],o=[null],a=[],s=this.table,l="",c=0,u=0,d=0,f=2,p=1;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var h=this.lexer.yylloc;a.push(h),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var m,g,v,b,y,k,x={},_,w,S,T;;){if(v=i[i.length-1],this.defaultActions[v]?b=this.defaultActions[v]:(null==m&&(m=n()),b=s[v]&&s[v][m]),"undefined"==typeof b||!b.length||!b[0]){if(!d){T=[];for(_ in s[v])this.terminals_[_]&&_>2&&T.push("'"+this.terminals_[_]+"'");var E="";E=this.lexer.showPosition?"Parse error on line "+(c+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+T.join(", ")+", got '"+this.terminals_[m]+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(E,{text:this.lexer.match,token:this.terminals_[m]||m,line:this.lexer.yylineno,loc:h,expected:T})}if(3==d){if(m==p)throw new Error(E||"Parsing halted.");u=this.lexer.yyleng,l=this.lexer.yytext,c=this.lexer.yylineno,h=this.lexer.yylloc,m=n()}for(;;){if(f.toString()in s[v])break;if(0==v)throw new Error(E||"Parsing halted.");t(1),v=i[i.length-1]}g=m,m=f,v=i[i.length-1],b=s[v]&&s[v][f],d=3}if(b[0]instanceof Array&&b.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+m);switch(b[0]){case 1:i.push(m),o.push(this.lexer.yytext),a.push(this.lexer.yylloc),i.push(b[1]),m=null,g?(m=g,g=null):(u=this.lexer.yyleng,l=this.lexer.yytext,c=this.lexer.yylineno,h=this.lexer.yylloc,d>0&&d--);break;case 2:if(w=this.productions_[b[1]][1],x.$=o[o.length-w],x._$={first_line:a[a.length-(w||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(w||1)].first_column,last_column:a[a.length-1].last_column},k=this.performAction.call(x,l,u,c,this.yy,b[1],o,a),"undefined"!=typeof k)return k;w&&(i=i.slice(0,-1*w*2),o=o.slice(0,-1*w),a=a.slice(0,-1*w)),i.push(this.productions_[b[1]][0]),o.push(x.$),a.push(x._$),S=s[i[i.length-2]][i[i.length-1]],i.push(S);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function t(e,n){if(!this.yy.parseError)throw new Error(e);this.yy.parseError(e,n)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.match+=e,this.matched+=e;var t=e.match(/\n/);return t&&this.yylineno++,this._input=this._input.slice(1),e},unput:function(e){return this._input=e+this._input,this},more:function(){return this._more=!0,this},less:function(e){this._input=this.match.slice(e)+this._input},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r,i,o;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;s<a.length&&(n=this._input.match(this.rules[a[s]]),!n||t&&!(n[0].length>t[0].length)||(t=n,r=s,this.options.flex));s++);return t?(o=t[0].match(/\n.*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-1:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,a[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e?e:void 0):""===this._input?this.EOF:void this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function n(){var e=this.next();return"undefined"!=typeof e?e:this.lex()},begin:function r(e){this.conditionStack.push(e)},popState:function i(){return this.conditionStack.pop()},_currentRules:function o(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function a(e){this.begin(e)}};return e.options={},e.performAction=function s(e,t,n,r){var i=r;switch(n){case 0:break;case 1:return 6;break;case 2:return t.yytext=t.yytext.substr(1,t.yyleng-2),4;break;case 3:return 17;break;case 4:return 18;break;case 5:return 23;break;case 6:return 24;break;case 7:return 22;break;case 8:return 21;break;case 9:return 10;break;case 10:return 11;break;case 11:return 8;break;case 12:return 14;break;case 13:return"INVALID"}},e.rules=[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],e.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}},e}();return e.lexer=t,e}(),"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=jsonlint,exports.parse=function(){return jsonlint.parse.apply(jsonlint,arguments)},exports.main=function e(t){if(!t[1])throw new Error("Usage: "+t[0]+" FILE");if("undefined"!=typeof process)var n=require("fs").readFileSync(require("path").join(process.cwd(),t[1]),"utf8");else var r=require("file").path(require("file").cwd()),n=r.join(t[1]).read({charset:"utf-8"});return exports.parser.parse(n)},"undefined"!=typeof module&&require.main===module&&exports.main("undefined"!=typeof process?process.argv.slice(1):require("system").args))}.call(this),function(){JSHINT=function(){"use strict";function e(){}function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function n(e,t){void 0===ne[e]&&void 0===te[e]&&s("Bad option: '"+e+"'.",t)}function r(e,n){var r;for(r in n)t(n,r)&&(e[r]=n[r])}function i(){Ce.couch&&r(Me,ae),Ce.rhino&&r(Me,Re),Ce.prototypejs&&r(Me,Ie),Ce.node&&(r(Me,Te),Ce.globalstrict=!0),Ce.devel&&r(Me,se),Ce.dojo&&r(Me,le),Ce.browser&&r(Me,oe),Ce.nonstandard&&r(Me,Pe),Ce.jquery&&r(Me,be),Ce.mootools&&r(Me,we),Ce.wsh&&r(Me,He),Ce.esnext&&Fe(),Ce.globalstrict&&Ce.strict!==!1&&(Ce.strict=!0)}function o(e,t,n){var r=Math.floor(t/ye.length*100);throw{name:"JSHintError",line:t,character:n,message:e+" ("+r+"% scanned).",raw:e}}function a(e,t,n,r){return JSHINT.undefs.push([e,t,n,r])}function s(e,t,n,r,i,a){var s,l,c;return t=t||Se,"(end)"===t.id&&(t=We),l=t.line||0,s=t.from||0,c={id:"(error)",raw:e,evidence:ye[l-1]||"",line:l,character:s,a:n,b:r,c:i,d:a},c.reason=e.supplant(c),JSHINT.errors.push(c),Ce.passfail&&o("Stopping. ",l,s),Be+=1,Be>=Ce.maxerr&&o("Too many errors.",l,s),c}function l(e,t,n,r,i,o,a){return s(e,{line:t,from:n},r,i,o,a)}function c(e,t,n,r,i,o){var a=s(e,t,n,r,i,o)}function u(e,t,n,r,i,o,a){return c(e,{line:t,from:n},r,i,o,a)}function d(e,n){"hasOwnProperty"===e&&s("'hasOwnProperty' is a really bad name."),t(ue,e)&&!ue["(global)"]&&(ue[e]===!0?Ce.latedef&&s("'{a}' was used before it was defined.",Se,e):Ce.shadow||"exception"===n||s("'{a}' is already defined.",Se,e)),ue[e]=n,ue["(global)"]?(pe[e]=ue,t(he,e)&&(Ce.latedef&&s("'{a}' was used before it was defined.",Se,e),delete he[e])):Oe[e]=ue}function f(){var e,t,r,o=Se.value,a,s,l;switch(o){case"*/":c("Unbegun comment.");break;case"/*members":case"/*member":o="/*members",_e||(_e={}),t=_e;break;case"/*jshint":case"/*jslint":t=Ce,r=te;break;case"/*global":t=Me;break;
|
||
|
||
default:c("What?")}a=tt.token();e:for(;;){for(;;){if("special"===a.type&&"*/"===a.value)break e;if("(endline)"!==a.id&&","!==a.id)break;a=tt.token()}"(string)"!==a.type&&"(identifier)"!==a.type&&"/*members"!==o&&c("Bad option.",a),l=tt.token(),":"===l.id?(l=tt.token(),t===_e&&c("Expected '{a}' and instead saw '{b}'.",a,"*/",":"),"/*jshint"===o&&n(a.value,a),"indent"!==a.value||"/*jshint"!==o&&"/*jslint"!==o?"maxerr"!==a.value||"/*jshint"!==o&&"/*jslint"!==o?"maxlen"!==a.value||"/*jshint"!==o&&"/*jslint"!==o?"validthis"===a.value?ue["(global)"]?c("Option 'validthis' can't be used in a global scope."):"true"===l.value||"false"===l.value?t[a.value]="true"===l.value:c("Bad option value.",l):"true"===l.value||"false"===l.value?"/*jslint"===o?(s=ie[a.value]||a.value,t[s]="true"===l.value,void 0!==re[s]&&(t[s]=!t[s])):t[a.value]="true"===l.value:c("Bad option value.",l):(e=+l.value,("number"!=typeof e||!isFinite(e)||0>=e||Math.floor(e)!==e)&&c("Expected a small integer and instead saw '{a}'.",l,l.value),t.maxlen=e):(e=+l.value,("number"!=typeof e||!isFinite(e)||0>=e||Math.floor(e)!==e)&&c("Expected a small integer and instead saw '{a}'.",l,l.value),t.maxerr=e):(e=+l.value,("number"!=typeof e||!isFinite(e)||0>=e||Math.floor(e)!==e)&&c("Expected a small integer and instead saw '{a}'.",l,l.value),t.white=!0,t.indent=e),a=tt.token()):(("/*jshint"===o||"/*jslint"===o)&&c("Missing option value.",a),t[a.value]=!1,a=l)}r&&i()}function p(e){for(var t=e||0,n=0,r;t>=n;)r=ke[n],r||(r=ke[n]=tt.token()),n+=1;return r}function h(e,t){switch(We.id){case"(number)":"."===Se.id&&s("A dot following a number can be confused with a decimal point.",We);break;case"-":("-"===Se.id||"--"===Se.id)&&s("Confusing minusses.");break;case"+":("+"===Se.id||"++"===Se.id)&&s("Confusing plusses.")}for(("(string)"===We.type||We.identifier)&&(Q=We.value),e&&Se.id!==e&&(t?"(end)"===Se.id?s("Unmatched '{a}'.",t,t.id):s("Expected '{a}' to match '{b}' from line {c} and instead saw '{d}'.",Se,e,t.id,t.line,Se.value):("(identifier)"!==Se.type||Se.value!==e)&&s("Expected '{a}' and instead saw '{b}'.",Se,e,Se.value)),Ae=We,We=Se;;){if(Se=ke.shift()||tt.token(),"(end)"===Se.id||"(error)"===Se.id)return;if("special"===Se.type)f();else if("(endline)"!==Se.id)break}}function m(e,t){var n,r=!1,i=!1;if("(end)"===Se.id&&c("Unexpected early end of program.",We),h(),t&&(Q="anonymous",ue["(verb)"]=We.value),t===!0&&We.fud)n=We.fud();else{if(We.nud)n=We.nud();else{if("(number)"===Se.type&&"."===We.id)return s("A leading decimal point can be confused with a dot: '.{a}'.",We,Se.value),h(),We;c("Expected an identifier and instead saw '{a}'.",We,We.id)}for(;e<Se.lbp;)r="Array"===We.value,i="Object"===We.value,n&&(n.value||n.first&&n.first.value)&&("new"!==n.value||n.first&&n.first.value&&"."===n.first.value)&&(r=!1,n.value!==We.value&&(i=!1)),h(),r&&"("===We.id&&")"===Se.id&&s("Use the array literal notation [].",We),i&&"("===We.id&&")"===Se.id&&s("Use the object literal notation {}.",We),We.led?n=We.led(n):c("Expected an operator and instead saw '{a}'.",We,We.id)}return n}function g(e,t){e=e||We,t=t||Se,Ce.white&&e.character!==t.from&&e.line===t.line&&(e.from+=e.character-e.from,s("Unexpected space after '{a}'.",e,e.value))}function v(e,t){e=e||We,t=t||Se,!Ce.white||e.character===t.from&&e.line===t.line||s("Unexpected space before '{a}'.",t,t.value)}function b(e,t){e=e||We,t=t||Se,Ce.white&&!e.comment&&e.line===t.line&&g(e,t)}function y(e,t){Ce.white&&(e=e||We,t=t||Se,e.line===t.line&&e.character===t.from&&(e.from+=e.character-e.from,s("Missing space after '{a}'.",e,e.value)))}function k(e,t){e=e||We,t=t||Se,Ce.laxbreak||e.line===t.line?Ce.white&&(e=e||We,t=t||Se,e.character===t.from&&(e.from+=e.character-e.from,s("Missing space after '{a}'.",e,e.value))):s("Bad line breaking before '{a}'.",t,t.id)}function x(e){var t;Ce.white&&"(end)"!==Se.id&&(t=ge+(e||0),Se.from!==t&&s("Expected '{a}' to have an indentation at {b} instead at {c}.",Se,Se.value,t,Se.from))}function _(e){e=e||We,e.line!==Se.line&&s("Line breaking error '{a}'.",e,e.value)}function w(){We.line!==Se.line?Ce.laxcomma||(w.first&&(s("Comma warnings can be turned off with 'laxcomma'"),w.first=!1),s("Bad line breaking before '{a}'.",We,Se.id)):!We.comment&&We.character!==Se.from&&Ce.white&&(We.from+=We.character-We.from,s("Unexpected space after '{a}'.",We,We.value)),h(","),y(We,Se)}function S(e,t){var n=qe[e];return n&&"object"==typeof n||(qe[e]=n={id:e,lbp:t,value:e}),n}function T(e){return S(e,0)}function E(e,t){var n=T(e);return n.identifier=n.reserved=!0,n.fud=t,n}function C(e,t){var n=E(e,t);return n.block=!0,n}function M(e){var t=e.id.charAt(0);return(t>="a"&&"z">=t||t>="A"&&"Z">=t)&&(e.identifier=e.reserved=!0),e}function L(e,t){var n=S(e,150);return M(n),n.nud="function"==typeof t?t:function(){return this.right=m(150),this.arity="unary",("++"===this.id||"--"===this.id)&&(Ce.plusplus?s("Unexpected use of '{a}'.",this,this.id):this.right.identifier&&!this.right.reserved||"."===this.right.id||"["===this.right.id||s("Bad operand.",this)),this},n}function A(e,t){var n=T(e);return n.type=e,n.nud=t,n}function I(e,t){var n=A(e,t);return n.identifier=n.reserved=!0,n}function R(e,t){return I(e,function(){return"function"==typeof t&&t(this),this})}function O(e,t,n,r){var i=S(e,n);return M(i),i.led=function(i){return r||(k(Ae,We),y(We,Se)),"in"===e&&"!"===i.id&&s("Confusing use of '{a}'.",i,"!"),"function"==typeof t?t(i,this):(this.left=i,this.right=m(n),this)},i}function N(e,t){var n=S(e,100);return n.led=function(e){k(Ae,We),y(We,Se);var n=m(100);return e&&"NaN"===e.id||n&&"NaN"===n.id?s("Use the isNaN function to compare with NaN.",this):t&&t.apply(this,[e,n]),"!"===e.id&&s("Confusing use of '{a}'.",e,"!"),"!"===n.id&&s("Confusing use of '{a}'.",n,"!"),this.left=e,this.right=n,this},n}function z(e){return e&&("(number)"===e.type&&0===+e.value||"(string)"===e.type&&""===e.value||"null"===e.type&&!Ce.eqnull||"true"===e.type||"false"===e.type||"undefined"===e.type)}function P(e,t){return S(e,20).exps=!0,O(e,function(e,t){var n;if(t.left=e,Me[e.value]===!1&&Oe[e.value]["(global)"]===!0?s("Read only.",e):e["function"]&&s("'{a}' is a function.",e,e.value),e){if(Ce.esnext&&"const"===ue[e.value]&&s("Attempting to override '{a}' which is a constant",e,e.value),"."===e.id||"["===e.id)return e.left&&"arguments"!==e.left.value||s("Bad assignment.",t),t.right=m(19),t;if(e.identifier&&!e.reserved)return"exception"===ue[e.value]&&s("Do not assign to the exception parameter.",e),t.right=m(19),t;e===qe["function"]&&s("Expected an identifier in an assignment and instead saw a function invocation.",We)}c("Bad assignment.",t)},20)}function D(e,t,n){var r=S(e,n);return M(r),r.led="function"==typeof t?t:function(e){return Ce.bitwise&&s("Unexpected use of '{a}'.",this,this.id),this.left=e,this.right=m(n),this},r}function $(e){return S(e,20).exps=!0,O(e,function(e,t){return Ce.bitwise&&s("Unexpected use of '{a}'.",t,t.id),y(Ae,We),y(We,Se),e?"."===e.id||"["===e.id||e.identifier&&!e.reserved?(m(19),t):(e===qe["function"]&&s("Expected an identifier in an assignment, and instead saw a function invocation.",We),t):void c("Bad assignment.",t)},20)}function q(e,t){var n=S(e,150);return n.led=function(e){return Ce.plusplus?s("Unexpected use of '{a}'.",this,this.id):e.identifier&&!e.reserved||"."===e.id||"["===e.id||s("Bad operand.",this),this.left=e,this},n}function j(e){return Se.identifier?(h(),We.reserved&&!Ce.es5&&(e&&"undefined"===We.value||s("Expected an identifier and instead saw '{a}' (a reserved word).",We,We.id)),We.value):void 0}function W(e){var t=j(e);return t?t:void("function"===We.id&&"("===Se.id?s("Missing name in function declaration."):c("Expected an identifier and instead saw '{a}'.",Se,Se.value))}function U(e){var t=0,n;if(";"===Se.id&&!Ee)for(;;){if(n=p(t),n.reach)return;if("(endline)"!==n.id){if("function"===n.id){if(!Ce.latedef)break;s("Inner functions should be listed at the top of the outer function.",n);break}s("Unreachable '{a}' after '{b}'.",n,n.value,e);break}t+=1}}function F(e){var t=ge,n,r=Oe,i=Se;if(";"===i.id)return void h(";");if(i.identifier&&!i.reserved&&":"===p().id&&(h(),h(":"),Oe=Object.create(r),d(i.value,"label"),Se.labelled||s("Label '{a}' on {b} statement.",Se,i.value,Se.value),Qe.test(i.value+":")&&s("Label '{a}' looks like a javascript url.",i,i.value),Se.label=i.value,i=Se),e||x(),n=m(0,!0),!i.block){if(Ce.expr||n&&n.exps?Ce.nonew&&"("===n.id&&"new"===n.left.id&&s("Do not use 'new' for side effects."):s("Expected an assignment or function call and instead saw an expression.",We),","===Se.id)return w();";"!==Se.id?Ce.asi||Ce.lastsemic&&"}"===Se.id&&Se.line===We.line||l("Missing semicolon.",We.line,We.character):(g(We,Se),h(";"),y(We,Se))}return ge=t,Oe=r,n}function B(e){for(var t=[],n,r;!Se.reach&&"(end)"!==Se.id;)";"===Se.id?(r=p(),r&&"("===r.id||s("Unnecessary semicolon."),h(";")):t.push(F(e===Se.line));return t}function H(){for(var e,t,n;"(string)"===Se.id;){if(t=p(0),"(endline)"===t.id){e=1;do n=p(e),e+=1;while("(endline)"===n.id);if(";"!==n.id){if("(string)"!==n.id&&"(number)"!==n.id&&"(regexp)"!==n.id&&n.identifier!==!0&&"}"!==n.id)break;s("Missing semicolon.",Se)}else t=n}else if("}"===t.id)s("Missing semicolon.",t);else if(";"!==t.id)break;x(),h(),$e[We.value]&&s('Unnecessary directive "{a}".',We,We.value),"use strict"===We.value&&(Ce.newcap=!0,Ce.undef=!0),$e[We.value]=!0,";"===t.id&&h(";")}}function V(e,n,r){var i,o=me,a=ge,l,u=Oe,d,f,p;if(me=e,e&&Ce.funcscope||(Oe=Object.create(Oe)),y(We,Se),d=Se,"{"===Se.id){if(h("{"),f=We.line,"}"!==Se.id){for(ge+=Ce.indent;!e&&Se.from>ge;)ge+=Ce.indent;if(r){l={};for(p in $e)t($e,p)&&(l[p]=$e[p]);H(),Ce.strict&&ue["(context)"]["(global)"]&&(l["use strict"]||$e["use strict"]||s('Missing "use strict" statement.'))}i=B(f),r&&($e=l),ge-=Ce.indent,f!==Se.line&&x()}else f!==Se.line&&x();h("}",d),ge=a}else e?((!n||Ce.curly)&&s("Expected '{a}' and instead saw '{b}'.",Se,"{",Se.value),Ee=!0,ge+=Ce.indent,i=[F(Se.line===We.line)],ge-=Ce.indent,Ee=!1):c("Expected '{a}' and instead saw '{b}'.",Se,"{",Se.value);return ue["(verb)"]=null,e&&Ce.funcscope||(Oe=u),me=o,!e||!Ce.noempty||i&&0!==i.length||s("Empty block."),i}function G(e){_e&&"boolean"!=typeof _e[e]&&s("Unexpected /*member '{a}'.",We,e),"number"==typeof xe[e]?xe[e]+=1:xe[e]=1}function K(e){var t=e.value,n=e.line,r=he[t];"function"==typeof r&&(r=!1),r?r[r.length-1]!==n&&r.push(n):(r=[n],he[t]=r)}function Y(){var e=j(!0);return e||("(string)"===Se.id?(e=Se.value,h()):"(number)"===Se.id&&(e=Se.value.toString(),h())),e}function Z(){var e,t=Se,n=[];if(h("("),b(),")"===Se.id)return void h(")");for(;;){if(e=W(!0),n.push(e),d(e,"parameter"),","!==Se.id)return h(")",t),b(Ae,We),n;w()}}function J(e,t){var n,r=Ce,i=Oe;return Ce=Object.create(Ce),Oe=Object.create(Oe),ue={"(name)":e||'"'+Q+'"',"(line)":Se.line,"(context)":ue,"(breakage)":0,"(loopage)":0,"(scope)":Oe,"(statement)":t},n=ue,We.funct=ue,fe.push(ue),e&&d(e,"function"),ue["(params)"]=Z(),V(!1,!1,!0),Oe=i,Ce=r,ue["(last)"]=We.line,ue=ue["(context)"],n}function X(){function e(){var e={},t=Se;if(h("{"),"}"!==Se.id)for(;;){if("(end)"===Se.id)c("Missing '}' to match '{' from line {a}.",Se,t.line);else{if("}"===Se.id){s("Unexpected comma.",We);break}","===Se.id?c("Unexpected comma.",Se):"(string)"!==Se.id&&s("Expected a string and instead saw {a}.",Se,Se.value)}if(e[Se.value]===!0?s("Duplicate key '{a}'.",Se,Se.value):"__proto__"===Se.value&&!Ce.proto||"__iterator__"===Se.value&&!Ce.iterator?s("The '{a}' key may produce unexpected results.",Se,Se.value):e[Se.value]=!0,h(),h(":"),X(),","!==Se.id)break;h(",")}h("}")}function t(){var e=Se;if(h("["),"]"!==Se.id)for(;;){if("(end)"===Se.id)c("Missing ']' to match '[' from line {a}.",Se,e.line);else{if("]"===Se.id){s("Unexpected comma.",We);break}","===Se.id&&c("Unexpected comma.",Se)}if(X(),","!==Se.id)break;h(",")}h("]")}switch(Se.id){case"{":e();break;case"[":t();break;case"true":case"false":case"null":case"(number)":case"(string)":h();break;case"-":h("-"),We.character!==Se.from&&s("Unexpected space after '-'.",We),g(We,Se),h("(number)");break;default:c("Expected a JSON value.",Se)}}var Q,ee={"<":!0,"<=":!0,"==":!0,"===":!0,"!==":!0,"!=":!0,">":!0,">=":!0,"+":!0,"-":!0,"*":!0,"/":!0,"%":!0},te={asi:!0,bitwise:!0,boss:!0,browser:!0,couch:!0,curly:!0,debug:!0,devel:!0,dojo:!0,eqeqeq:!0,eqnull:!0,es5:!0,esnext:!0,evil:!0,expr:!0,forin:!0,funcscope:!0,globalstrict:!0,immed:!0,iterator:!0,jquery:!0,lastsemic:!0,latedef:!0,laxbreak:!0,laxcomma:!0,loopfunc:!0,mootools:!0,multistr:!0,newcap:!0,noarg:!0,node:!0,noempty:!0,nonew:!0,nonstandard:!0,nomen:!0,onevar:!0,onecase:!0,passfail:!0,plusplus:!0,proto:!0,prototypejs:!0,regexdash:!0,regexp:!0,rhino:!0,undef:!0,scripturl:!0,shadow:!0,smarttabs:!0,strict:!0,sub:!0,supernew:!0,trailing:!0,validthis:!0,withstmt:!0,white:!0,wsh:!0},ne={maxlen:!1,indent:!1,maxerr:!1,predef:!1},re={bitwise:!0,forin:!0,newcap:!0,nomen:!0,plusplus:!0,regexp:!0,undef:!0,white:!0,eqeqeq:!0,onevar:!0},ie={eqeq:"eqeqeq",vars:"onevar",windows:"wsh"},oe={ArrayBuffer:!1,ArrayBufferView:!1,Audio:!1,addEventListener:!1,applicationCache:!1,atob:!1,blur:!1,btoa:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,DataView:!1,DOMParser:!1,defaultStatus:!1,document:!1,event:!1,FileReader:!1,Float32Array:!1,Float64Array:!1,FormData:!1,focus:!1,frames:!1,getComputedStyle:!1,HTMLElement:!1,HTMLAnchorElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPreElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTextAreaElement:!1,HTMLTitleElement:!1,HTMLUListElement:!1,HTMLVideoElement:!1,history:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Image:!1,length:!1,localStorage:!1,location:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,moveBy:!1,moveTo:!1,name:!1,navigator:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,parent:!1,print:!1,removeEventListener:!1,resizeBy:!1,resizeTo:!1,screen:!1,scroll:!1,scrollBy:!1,scrollTo:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,SharedWorker:!1,status:!1,top:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,WebSocket:!1,window:!1,Worker:!1,XMLHttpRequest:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1},ae={require:!1,respond:!1,getRow:!1,emit:!1,send:!1,start:!1,sum:!1,log:!1,exports:!1,module:!1,provides:!1},se={alert:!1,confirm:!1,console:!1,Debug:!1,opera:!1,prompt:!1},le={dojo:!1,dijit:!1,dojox:!1,define:!1,require:!1},ce={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"/":"\\/","\\":"\\\\"},ue,de=["closure","exception","global","label","outer","unused","var"],fe,pe,he,me,ge,ve,be={$:!1,jQuery:!1},ye,ke,xe,_e,we={$:!1,$$:!1,Assets:!1,Browser:!1,Chain:!1,Class:!1,Color:!1,Cookie:!1,Core:!1,Document:!1,DomReady:!1,DOMReady:!1,Drag:!1,Element:!1,Elements:!1,Event:!1,Events:!1,Fx:!1,Group:!1,Hash:!1,HtmlTable:!1,Iframe:!1,IframeShim:!1,InputValidator:!1,instanceOf:!1,Keyboard:!1,Locale:!1,Mask:!1,MooTools:!1,Native:!1,Options:!1,OverText:!1,Request:!1,Scroller:!1,Slick:!1,Slider:!1,Sortables:!1,Spinner:!1,Swiff:!1,Tips:!1,Type:!1,typeOf:!1,URI:!1,Window:!1},Se,Te={__filename:!1,__dirname:!1,Buffer:!1,console:!1,exports:!1,GLOBAL:!1,global:!1,module:!1,process:!1,require:!1,setTimeout:!1,clearTimeout:!1,setInterval:!1,clearInterval:!1},Ee,Ce,Me,Le,Ae,Ie={$:!1,$$:!1,$A:!1,$F:!1,$H:!1,$R:!1,$break:!1,$continue:!1,$w:!1,Abstract:!1,Ajax:!1,Class:!1,Enumerable:!1,Element:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Selector:!1,Template:!1,Toggle:!1,Try:!1,Autocompleter:!1,Builder:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Scriptaculous:!1},Re={defineClass:!1,deserialize:!1,gc:!1,help:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},Oe,Ne,ze={Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,isFinite:!1,isNaN:!1,JSON:!1,Math:!1,Number:!1,Object:!1,parseInt:!1,parseFloat:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,URIError:!1},Pe={escape:!1,unescape:!1},De={E:!0,LN2:!0,LN10:!0,LOG2E:!0,LOG10E:!0,MAX_VALUE:!0,MIN_VALUE:!0,NEGATIVE_INFINITY:!0,PI:!0,POSITIVE_INFINITY:!0,SQRT1_2:!0,SQRT2:!0},$e,qe={},je,We,Ue,Fe,Be,He={ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WSH:!0,WScript:!0,XDomainRequest:!0},Ve,Ge,Ke,Ye,Ze,Je,Xe,Qe,et;!function(){Ve=/@cc|<\/?|script|\]\s*\]|<\s*!|</i,Ge=/[\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/,Ke=/^\s*([(){}\[.,:;'"~\?\]#@]|==?=?|\/(\*(jshint|jslint|members?|global)?|=|\/)?|\*[\/=]?|\+(?:=|\++)?|-(?:=|-+)?|%=?|&[&=]?|\|[|=]?|>>?>?=?|<([\/=!]|\!(\[|--)?|<=?)?|\^=?|\!=?=?|[a-zA-Z_$][a-zA-Z0-9_$]*|[0-9]+([xX][0-9a-fA-F]+|\.[0-9]*)?([eE][+\-]?[0-9]+)?)/,Ye=/[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/,Ze=/[\u0000-\u001f&<"\/\\\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Je=/\*\/|\/\*/,Xe=/^([a-zA-Z_$][a-zA-Z0-9_$]*)$/,Qe=/^(?:javascript|jscript|ecmascript|vbscript|mocha|livescript)\s*:/i,et=/^\s*\/\*\s*falls\sthrough\s*\*\/\s*$/}(),"function"!=typeof Array.isArray&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.apply(e)}),"function"!=typeof Object.create&&(Object.create=function(t){return e.prototype=t,new e}),"function"!=typeof Object.keys&&(Object.keys=function(e){var n=[],r;for(r in e)t(e,r)&&n.push(r);return n}),"function"!=typeof String.prototype.entityify&&(String.prototype.entityify=function(){return this.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}),"function"!=typeof String.prototype.isAlpha&&(String.prototype.isAlpha=function(){return this>="a"&&"z">=this||this>="A"&&"Z">=this}),"function"!=typeof String.prototype.isDigit&&(String.prototype.isDigit=function(){return this>="0"&&"9">=this}),"function"!=typeof String.prototype.supplant&&(String.prototype.supplant=function(e){return this.replace(/\{([^{}]*)\}/g,function(t,n){var r=e[n];return"string"==typeof r||"number"==typeof r?r:t})}),"function"!=typeof String.prototype.name&&(String.prototype.name=function(){return Xe.test(this)?this:Ye.test(this)?'"'+this.replace(Ze,function(e){var t=ce[e];return t?t:"\\u"+("0000"+e.charCodeAt().toString(16)).slice(-4)})+'"':'"'+this+'"'});var tt=function it(){function e(){var e,t;return a>=ye.length?!1:(r=1,s=ye[a],a+=1,e=s.search(Ce.smarttabs?/ \t/:/ \t|\t /),e>=0&&l("Mixed spaces and tabs.",a,e+1),s=s.replace(/\t/g,je),e=s.search(Ge),e>=0&&l("Unsafe character.",a,e),Ce.maxlen&&Ce.maxlen<s.length&&l("Line too long.",a,s.length),t=Ce.trailing&&s.match(/^(.*?)\s+$/),t&&!/^\s+$/.test(s)&&l("Trailing whitespace.",a,t[1].length+1),!0)}function n(e,n){var o,s;return s="(color)"===e||"(range)"===e?{type:e}:"(punctuator)"===e||"(identifier)"===e&&t(qe,n)?qe[n]||qe["(error)"]:qe[e],s=Object.create(s),("(string)"===e||"(range)"===e)&&!Ce.scripturl&&Qe.test(n)&&l("Script URL.",a,i),"(identifier)"===e&&(s.identifier=!0,"__proto__"!==n||Ce.proto?"__iterator__"!==n||Ce.iterator?!Ce.nomen||"_"!==n.charAt(0)&&"_"!==n.charAt(n.length-1)||(!Ce.node||"."===We.id||"__dirname"!==n&&"__filename"!==n)&&l("Unexpected {a} in '{b}'.",a,i,"dangling '_'",n):l("'{a}' is only available in JavaScript 1.7.",a,i,n):l("The '{a}' property is deprecated.",a,i,n)),s.value=n,s.line=a,s.character=r,s.from=i,o=s.id,"(endline)"!==o&&(Le=o&&("(,=:[!&|?{};".indexOf(o.charAt(o.length-1))>=0||"return"===o||"case"===o)),s}var r,i,a,s;return{init:function(t){ye="string"==typeof t?t.replace(/\r\n/g,"\n").replace(/\r/g,"\n").split("\n"):t,ye[0]&&"#!"===ye[0].substr(0,2)&&(ye[0]=""),a=0,e(),i=1},range:function(e,t){var o,c="";for(i=r,s.charAt(0)!==e&&u("Expected '{a}' and instead saw '{b}'.",a,r,e,s.charAt(0));;){switch(s=s.slice(1),r+=1,o=s.charAt(0)){case"":u("Missing '{a}'.",a,r,o);break;case t:return s=s.slice(1),r+=1,n("(range)",c);case"\\":l("Unexpected '{a}'.",a,r,o)}c+=o}},token:function(){function t(e){var t=e.exec(s),n;return t?(b=t[0].length,n=t[1],f=n.charAt(0),s=s.substr(b),i=r+b-n.length,r+=b,n):void 0}function c(t){function o(e){var t=parseInt(s.substr(d+1,e),16);d+=e,t>=32&&126>=t&&34!==t&&92!==t&&39!==t&&l("Unnecessary escapement.",a,r),r+=e,c=String.fromCharCode(t)}var c,d,f="",p=!1;ve&&'"'!==t&&l("Strings must use doublequote.",a,r),d=0;e:for(;;){for(;d>=s.length;){d=0;var h=a,m=i;if(!e()){u("Unclosed string.",h,m);break e}p?p=!1:l("Unclosed string.",h,m)}if(c=s.charAt(d),c===t)return r+=1,s=s.substr(d+1),n("(string)",f,t);if(" ">c){if("\n"===c||"\r"===c)break;l("Control character in string: {a}.",a,r+d,s.slice(0,d))}else if("\\"===c)switch(d+=1,r+=1,c=s.charAt(d),S=s.charAt(d+1),c){case"\\":case'"':case"/":break;case"'":ve&&l("Avoid \\'.",a,r);break;case"b":c="\b";break;case"f":c="\f";break;case"n":c="\n";break;case"r":c="\r";break;case"t":c=" ";break;case"0":c="\x00",S>=0&&7>=S&&$e["use strict"]&&l("Octal literals are not allowed in strict mode.",a,r);break;case"u":o(4);break;case"v":ve&&l("Avoid \\v.",a,r),c="";break;case"x":ve&&l("Avoid \\x-.",a,r),o(2);break;case"":if(p=!0,Ce.multistr){ve&&l("Avoid EOL escapement.",a,r),c="",r-=1;break}l("Bad escapement of EOL. Use option multistr if needed.",a,r);break;default:l("Bad escapement.",a,r)}f+=c,r+=1,d+=1}}for(var d,f,p,h,m,g,v,b,y,k,x,_,w,S;;){if(!s)return n(e()?"(endline)":"(end)","");if(x=t(Ke)){if(f.isAlpha()||"_"===f||"$"===f)return n("(identifier)",x);if(f.isDigit())return isFinite(Number(x))||l("Bad number '{a}'.",a,r,x),s.substr(0,1).isAlpha()&&l("Missing space after '{a}'.",a,r,x),"0"===f&&(h=x.substr(1,1),h.isDigit()?"."!==We.id&&l("Don't use extra leading zeros '{a}'.",a,r,x):!ve||"x"!==h&&"X"!==h||l("Avoid 0x-. '{a}'.",a,r,x)),"."===x.substr(x.length-1)&&l("A trailing decimal point can be confused with a dot '{a}'.",a,r,x),n("(number)",x);switch(x){case'"':case"'":return c(x);case"//":s="",We.comment=!0;break;case"/*":for(;v=s.search(Je),!(v>=0);)e()||u("Unclosed comment.",a,r);r+=v+2,"/"===s.substr(v,1)&&u("Nested comment.",a,r),s=s.substr(v+2),We.comment=!0;break;case"/*members":case"/*member":case"/*jshint":case"/*jslint":case"/*global":case"*/":return{value:x,type:"special",line:a,character:r,from:i};case"":break;case"/":if("/="===We.id&&u("A regular expression literal can be confused with '/='.",a,i),Le){for(m=0,p=0,b=0;;){switch(d=!0,f=s.charAt(b),b+=1,f){case"":return u("Unclosed regular expression.",a,i),o("Stopping.",a,i);case"/":for(m>0&&l("{a} unterminated regular expression group(s).",a,i+b,m),f=s.substr(0,b-1),k={g:!0,i:!0,m:!0};k[s.charAt(b)]===!0;)k[s.charAt(b)]=!1,b+=1;return r+=b,s=s.substr(b),k=s.charAt(0),("/"===k||"*"===k)&&u("Confusing regular expression.",a,i),n("(regexp)",f);case"\\":f=s.charAt(b)," ">f?l("Unexpected control character in regular expression.",a,i+b):"<"===f&&l("Unexpected escaped character '{a}' in regular expression.",a,i+b,f),b+=1;break;case"(":if(m+=1,d=!1,"?"===s.charAt(b))switch(b+=1,s.charAt(b)){case":":case"=":case"!":b+=1;break;default:l("Expected '{a}' and instead saw '{b}'.",a,i+b,":",s.charAt(b))}else p+=1;break;case"|":d=!1;break;case")":0===m?l("Unescaped '{a}'.",a,i+b,")"):m-=1;break;case" ":for(k=1;" "===s.charAt(b);)b+=1,k+=1;k>1&&l("Spaces are hard to count. Use {{a}}.",a,i+b,k);break;case"[":f=s.charAt(b),"^"===f&&(b+=1,Ce.regexp?l("Insecure '{a}'.",a,i+b,f):"]"===s.charAt(b)&&u("Unescaped '{a}'.",a,i+b,"^")),"]"===f&&l("Empty class.",a,i+b-1),_=!1,w=!1;e:do switch(f=s.charAt(b),b+=1,f){case"[":case"^":l("Unescaped '{a}'.",a,i+b,f),w?w=!1:_=!0;break;case"-":_&&!w?(_=!1,w=!0):w?w=!1:"]"===s.charAt(b)?w=!0:(Ce.regexdash!==(2===b||3===b&&"^"===s.charAt(1))&&l("Unescaped '{a}'.",a,i+b-1,"-"),_=!0);break;case"]":w&&!Ce.regexdash&&l("Unescaped '{a}'.",a,i+b-1,"-");break e;case"\\":f=s.charAt(b)," ">f?l("Unexpected control character in regular expression.",a,i+b):"<"===f&&l("Unexpected escaped character '{a}' in regular expression.",a,i+b,f),b+=1,/[wsd]/i.test(f)?(w&&(l("Unescaped '{a}'.",a,i+b,"-"),w=!1),_=!1):w?w=!1:_=!0;break;case"/":l("Unescaped '{a}'.",a,i+b-1,"/"),w?w=!1:_=!0;break;case"<":w?w=!1:_=!0;break;default:w?w=!1:_=!0}while(f);break;case".":Ce.regexp&&l("Insecure '{a}'.",a,i+b,f);break;case"]":case"?":case"{":case"}":case"+":case"*":l("Unescaped '{a}'.",a,i+b,f)}if(d)switch(s.charAt(b)){case"?":case"+":case"*":b+=1,"?"===s.charAt(b)&&(b+=1);break;case"{":for(b+=1,f=s.charAt(b),("0">f||f>"9")&&l("Expected a number and instead saw '{a}'.",a,i+b,f),b+=1,y=+f;f=s.charAt(b),!("0">f||f>"9");)b+=1,y=+f+10*y;if(g=y,","===f&&(b+=1,g=1/0,f=s.charAt(b),f>="0"&&"9">=f))for(b+=1,g=+f;f=s.charAt(b),!("0">f||f>"9");)b+=1,g=+f+10*g;"}"!==s.charAt(b)?l("Expected '{a}' and instead saw '{b}'.",a,i+b,"}",f):b+=1,"?"===s.charAt(b)&&(b+=1),y>g&&l("'{a}' should not be greater than '{b}'.",a,i+b,y,g)}}return f=s.substr(0,b-1),r+=b,s=s.substr(b),n("(regexp)",f)}return n("(punctuator)",x);case"#":return n("(punctuator)",x);default:return n("(punctuator)",x)}}else{for(x="",f="";s&&"!">s;)s=s.substr(1);s&&(u("Unexpected '{a}'.",a,r,s.substr(0,1)),s="")}}}}}();A("(number)",function(){return this}),A("(string)",function(){return this}),qe["(identifier)"]={type:"(identifier)",lbp:0,identifier:!0,nud:function(){var e=this.value,t=Oe[e],n;if("function"==typeof t?t=void 0:"boolean"==typeof t&&(n=ue,ue=fe[0],d(e,"var"),t=ue,ue=n),ue===t)switch(ue[e]){case"unused":ue[e]="var";break;case"unction":ue[e]="function",this["function"]=!0;break;case"function":this["function"]=!0;break;case"label":s("'{a}' is a statement label.",We,e)}else if(ue["(global)"])Ce.undef&&"boolean"!=typeof Me[e]&&("typeof"!==Q&&"delete"!==Q||Se&&("."===Se.value||"["===Se.value))&&a(ue,"'{a}' is not defined.",We,e),K(We);else switch(ue[e]){case"closure":case"function":case"var":case"unused":s("'{a}' used out of scope.",We,e);break;case"label":s("'{a}' is a statement label.",We,e);break;case"outer":case"global":break;default:if(t===!0)ue[e]=!0;else if(null===t)s("'{a}' is not allowed.",We,e),K(We);else if("object"!=typeof t)Ce.undef&&("typeof"!==Q&&"delete"!==Q||Se&&("."===Se.value||"["===Se.value))&&a(ue,"'{a}' is not defined.",We,e),ue[e]=!0,K(We);else switch(t[e]){case"function":case"unction":this["function"]=!0,t[e]="closure",ue[e]=t["(global)"]?"global":"outer";break;case"var":case"unused":t[e]="closure",ue[e]=t["(global)"]?"global":"outer";break;case"closure":case"parameter":ue[e]=t["(global)"]?"global":"outer";break;case"label":s("'{a}' is a statement label.",We,e)}}return this},led:function(){c("Expected an operator and instead saw '{a}'.",Se,Se.value)}},A("(regexp)",function(){return this}),T("(endline)"),T("(begin)"),T("(end)").reach=!0,T("</").reach=!0,T("<!"),T("<!--"),T("-->"),T("(error)").reach=!0,T("}").reach=!0,T(")"),T("]"),T('"').reach=!0,T("'").reach=!0,T(";"),T(":").reach=!0,T(","),T("#"),T("@"),I("else"),I("case").reach=!0,I("catch"),I("default").reach=!0,I("finally"),R("arguments",function(e){$e["use strict"]&&ue["(global)"]&&s("Strict violation.",e)}),R("eval"),R("false"),R("Infinity"),R("NaN"),R("null"),R("this",function(e){$e["use strict"]&&!Ce.validthis&&(ue["(statement)"]&&ue["(name)"].charAt(0)>"Z"||ue["(global)"])&&s("Possible strict violation.",e)}),R("true"),R("undefined"),P("=","assign",20),P("+=","assignadd",20),P("-=","assignsub",20),P("*=","assignmult",20),P("/=","assigndiv",20).nud=function(){c("A regular expression literal can be confused with '/='.")},P("%=","assignmod",20),$("&=","assignbitand",20),$("|=","assignbitor",20),$("^=","assignbitxor",20),$("<<=","assignshiftleft",20),$(">>=","assignshiftright",20),$(">>>=","assignshiftrightunsigned",20),O("?",function(e,t){return t.left=e,t.right=m(10),h(":"),t["else"]=m(10),t},30),O("||","or",40),O("&&","and",50),D("|","bitor",70),D("^","bitxor",80),D("&","bitand",90),N("==",function(e,t){var n=Ce.eqnull&&("null"===e.value||"null"===t.value);return!n&&Ce.eqeqeq?s("Expected '{a}' and instead saw '{b}'.",this,"===","=="):z(e)?s("Use '{a}' to compare with '{b}'.",this,"===",e.value):z(t)&&s("Use '{a}' to compare with '{b}'.",this,"===",t.value),this}),N("==="),N("!=",function(e,t){var n=Ce.eqnull&&("null"===e.value||"null"===t.value);return!n&&Ce.eqeqeq?s("Expected '{a}' and instead saw '{b}'.",this,"!==","!="):z(e)?s("Use '{a}' to compare with '{b}'.",this,"!==",e.value):z(t)&&s("Use '{a}' to compare with '{b}'.",this,"!==",t.value),this}),N("!=="),N("<"),N(">"),N("<="),N(">="),D("<<","shiftleft",120),D(">>","shiftright",120),D(">>>","shiftrightunsigned",120),O("in","in",120),O("instanceof","instanceof",120),O("+",function(e,t){var n=m(130);return e&&n&&"(string)"===e.id&&"(string)"===n.id?(e.value+=n.value,e.character=n.character,!Ce.scripturl&&Qe.test(e.value)&&s("JavaScript URL.",e),e):(t.left=e,t.right=n,t)},130),L("+","num"),L("+++",function(){return s("Confusing pluses."),this.right=m(150),this.arity="unary",this}),O("+++",function(e){return s("Confusing pluses."),this.left=e,this.right=m(130),this},130),O("-","sub",130),L("-","neg"),L("---",function(){return s("Confusing minuses."),this.right=m(150),this.arity="unary",this}),O("---",function(e){return s("Confusing minuses."),this.left=e,this.right=m(130),this},130),O("*","mult",140),O("/","div",140),O("%","mod",140),q("++","postinc"),L("++","preinc"),qe["++"].exps=!0,q("--","postdec"),L("--","predec"),qe["--"].exps=!0,L("delete",function(){var e=m(0);return(!e||"."!==e.id&&"["!==e.id)&&s("Variables should not be deleted."),this.first=e,this}).exps=!0,L("~",function(){return Ce.bitwise&&s("Unexpected '{a}'.",this,"~"),m(150),this}),L("!",function(){return this.right=m(150),this.arity="unary",ee[this.right.id]===!0&&s("Confusing use of '{a}'.",this,"!"),this}),L("typeof","typeof"),L("new",function(){var e=m(155),t;if(e&&"function"!==e.id)if(e.identifier)switch(e["new"]=!0,e.value){case"Number":case"String":case"Boolean":case"Math":case"JSON":s("Do not use {a} as a constructor.",We,e.value);break;case"Function":Ce.evil||s("The Function constructor is eval.");break;case"Date":case"RegExp":break;default:"function"!==e.id&&(t=e.value.substr(0,1),Ce.newcap&&("A">t||t>"Z")&&s("A constructor name should start with an uppercase letter.",We))}else"."!==e.id&&"["!==e.id&&"("!==e.id&&s("Bad constructor.",We);else Ce.supernew||s("Weird construction. Delete 'new'.",this);return g(We,Se),"("===Se.id||Ce.supernew||s("Missing '()' invoking a constructor."),this.first=e,this}),qe["new"].exps=!0,L("void").exps=!0,O(".",function(e,t){g(Ae,We),v();var n=W();return"string"==typeof n&&G(n),t.left=e,t.right=n,!e||"arguments"!==e.value||"callee"!==n&&"caller"!==n?Ce.evil||!e||"document"!==e.value||"write"!==n&&"writeln"!==n||s("document.write can be a form of eval.",e):Ce.noarg?s("Avoid arguments.{a}.",e,n):$e["use strict"]&&c("Strict violation."),
|
||
Ce.evil||"eval"!==n&&"execScript"!==n||s("eval is evil."),t},160,!0),O("(",function(e,t){"}"!==Ae.id&&")"!==Ae.id&&v(Ae,We),b(),Ce.immed&&!e.immed&&"function"===e.id&&s("Wrap an immediate function invocation in parentheses to assist the reader in understanding that the expression is the result of a function, and not the function itself.");var n=0,r=[];if(e&&"(identifier)"===e.type&&e.value.match(/^[A-Z]([A-Z0-9_$]*[a-z][A-Za-z0-9_$]*)?$/)&&"Number"!==e.value&&"String"!==e.value&&"Boolean"!==e.value&&"Date"!==e.value&&("Math"===e.value?s("Math is not a function.",e):Ce.newcap&&s("Missing 'new' prefix when invoking a constructor.",e)),")"!==Se.id)for(;r[r.length]=m(10),n+=1,","===Se.id;)w();return h(")"),b(Ae,We),"object"==typeof e&&("parseInt"===e.value&&1===n&&s("Missing radix parameter.",e),Ce.evil||("eval"===e.value||"Function"===e.value||"execScript"===e.value?s("eval is evil.",e):!r[0]||"(string)"!==r[0].id||"setTimeout"!==e.value&&"setInterval"!==e.value||s("Implied eval is evil. Pass a function instead of a string.",e)),e.identifier||"."===e.id||"["===e.id||"("===e.id||"&&"===e.id||"||"===e.id||"?"===e.id||s("Bad invocation.",e)),t.left=e,t},155,!0).exps=!0,L("(",function(){b(),"function"===Se.id&&(Se.immed=!0);var e=m(0);return h(")",this),b(Ae,We),Ce.immed&&"function"===e.id&&("("===Se.id||"."===Se.id&&("call"===p().value||"apply"===p().value)?s("Move the invocation into the parens that contain the function.",Se):s("Do not wrap function literals in parens unless they are to be immediately invoked.",this)),e}),O("[",function(e,t){v(Ae,We),b();var n=m(0),r;return n&&"(string)"===n.type&&(Ce.evil||"eval"!==n.value&&"execScript"!==n.value||s("eval is evil.",t),G(n.value),!Ce.sub&&Xe.test(n.value)&&(r=qe[n.value],r&&r.reserved||s("['{a}'] is better written in dot notation.",n,n.value))),h("]",t),b(Ae,We),t.left=e,t.right=n,t},160,!0),L("[",function(){var e=We.line!==Se.line;for(this.first=[],e&&(ge+=Ce.indent,Se.from===ge+Ce.indent&&(ge+=Ce.indent));"(end)"!==Se.id;){for(;","===Se.id;)s("Extra comma."),h(",");if("]"===Se.id)break;if(e&&We.line!==Se.line&&x(),this.first.push(m(10)),","!==Se.id)break;if(w(),"]"===Se.id&&!Ce.es5){s("Extra comma.",We);break}}return e&&(ge-=Ce.indent,x()),h("]",this),this},160),function(e){e.nud=function(){function e(e,n){f[e]&&t(f,e)?s("Duplicate member '{a}'.",Se,a):f[e]={},f[e].basic=!0,f[e].basicToken=n}function n(e,n){f[e]&&t(f,e)?(f[e].basic||f[e].setter)&&s("Duplicate member '{a}'.",Se,a):f[e]={},f[e].setter=!0,f[e].setterToken=n}function r(e){f[e]&&t(f,e)?(f[e].basic||f[e].getter)&&s("Duplicate member '{a}'.",Se,a):f[e]={},f[e].getter=!0,f[e].getterToken=We}var i,o,a,l,u,d,f={};for(i=We.line!==Se.line,i&&(ge+=Ce.indent,Se.from===ge+Ce.indent&&(ge+=Ce.indent));"}"!==Se.id;){if(i&&x(),"get"===Se.value&&":"!==p().id)h("get"),Ce.es5||c("get/set are ES5 features."),a=Y(),a||c("Missing property name."),r(a),d=Se,g(We,Se),o=J(),u=o["(params)"],u&&s("Unexpected parameter '{a}' in get {b} function.",d,u[0],a),g(We,Se);else if("set"===Se.value&&":"!==p().id)h("set"),Ce.es5||c("get/set are ES5 features."),a=Y(),a||c("Missing property name."),n(a,Se),d=Se,g(We,Se),o=J(),u=o["(params)"],u&&1===u.length||s("Expected a single parameter in set {a} function.",d,a);else{if(a=Y(),e(a,Se),"string"!=typeof a)break;h(":"),y(We,Se),m(10)}if(G(a),","!==Se.id)break;w(),","===Se.id?s("Extra comma.",We):"}"!==Se.id||Ce.es5||s("Extra comma.",We)}if(i&&(ge-=Ce.indent,x()),h("}",this),Ce.es5)for(var v in f)t(f,v)&&f[v].setter&&!f[v].getter&&s("Setter is defined without getter.",f[v].setterToken);return this},e.fud=function(){c("Expected to see a statement and instead saw a block.",We)}}(T("{")),Fe=function(){var e=E("const",function(e){var t,n,r;for(this.first=[];(y(We,Se),t=W(),"const"===ue[t]&&s("const '"+t+"' has already been declared"),ue["(global)"]&&Me[t]===!1&&s("Redefinition of '{a}'.",We,t),d(t,"const"),!e)&&(n=We,this.first.push(We),"="!==Se.id&&s("const '{a}' is initialized to 'undefined'.",We,t),"="===Se.id&&(y(We,Se),h("="),y(We,Se),"undefined"===Se.id&&s("It is not necessary to initialize '{a}' to 'undefined'.",We,t),"="===p(0).id&&Se.identifier&&c("Constant {a} was not declared correctly.",Se,Se.value),r=m(0),n.first=r),","===Se.id);)w();return this});e.exps=!0};var nt=E("var",function(e){var t,n,r;for(ue["(onevar)"]&&Ce.onevar?s("Too many var statements."):ue["(global)"]||(ue["(onevar)"]=!0),this.first=[];(y(We,Se),t=W(),Ce.esnext&&"const"===ue[t]&&s("const '"+t+"' has already been declared"),ue["(global)"]&&Me[t]===!1&&s("Redefinition of '{a}'.",We,t),d(t,"unused"),!e)&&(n=We,this.first.push(We),"="===Se.id&&(y(We,Se),h("="),y(We,Se),"undefined"===Se.id&&s("It is not necessary to initialize '{a}' to 'undefined'.",We,t),"="===p(0).id&&Se.identifier&&c("Variable {a} was not declared correctly.",Se,Se.value),r=m(0),n.first=r),","===Se.id);)w();return this});nt.exps=!0,C("function",function(){me&&s("Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.",We);var e=W();return Ce.esnext&&"const"===ue[e]&&s("const '"+e+"' has already been declared"),g(We,Se),d(e,"unction"),J(e,!0),"("===Se.id&&Se.line===We.line&&c("Function declarations are not invocable. Wrap the whole function invocation in parens."),this}),L("function",function(){var e=j();return e?g(We,Se):y(We,Se),J(e),!Ce.loopfunc&&ue["(loopage)"]&&s("Don't make functions within a loop."),this}),C("if",function(){var e=Se;return h("("),y(this,e),b(),m(20),"="===Se.id&&(Ce.boss||s("Expected a conditional expression and instead saw an assignment."),h("="),m(20)),h(")",e),b(Ae,We),V(!0,!0),"else"===Se.id&&(y(We,Se),h("else"),"if"===Se.id||"switch"===Se.id?F(!0):V(!0,!0)),this}),C("try",function(){var e,t,n;return V(!1),"catch"===Se.id&&(h("catch"),y(We,Se),h("("),n=Oe,Oe=Object.create(n),t=Se.value,"(identifier)"!==Se.type?s("Expected an identifier and instead saw '{a}'.",Se,t):d(t,"exception"),h(),h(")"),V(!1),e=!0,Oe=n),"finally"===Se.id?(h("finally"),void V(!1)):(e||c("Expected '{a}' and instead saw '{b}'.",Se,"catch",Se.value),this)}),C("while",function(){var e=Se;return ue["(breakage)"]+=1,ue["(loopage)"]+=1,h("("),y(this,e),b(),m(20),"="===Se.id&&(Ce.boss||s("Expected a conditional expression and instead saw an assignment."),h("="),m(20)),h(")",e),b(Ae,We),V(!0,!0),ue["(breakage)"]-=1,ue["(loopage)"]-=1,this}).labelled=!0,C("with",function(){var e=Se;return $e["use strict"]?c("'with' is not allowed in strict mode.",We):Ce.withstmt||s("Don't use 'with'.",We),h("("),y(this,e),b(),m(0),h(")",e),b(Ae,We),V(!0,!0),this}),C("switch",function(){var e=Se,t=!1;for(ue["(breakage)"]+=1,h("("),y(this,e),b(),this.condition=m(20),h(")",e),b(Ae,We),y(We,Se),e=Se,h("{"),y(We,Se),ge+=Ce.indent,this.cases=[];;)switch(Se.id){case"case":switch(ue["(verb)"]){case"break":case"case":case"continue":case"return":case"switch":case"throw":break;default:et.test(ye[Se.line-2])||s("Expected a 'break' statement before 'case'.",We)}x(-Ce.indent),h("case"),this.cases.push(m(20)),t=!0,h(":"),ue["(verb)"]="case";break;case"default":switch(ue["(verb)"]){case"break":case"continue":case"return":case"throw":break;default:et.test(ye[Se.line-2])||s("Expected a 'break' statement before 'default'.",We)}x(-Ce.indent),h("default"),t=!0,h(":");break;case"}":return ge-=Ce.indent,x(),h("}",e),(1===this.cases.length||"true"===this.condition.id||"false"===this.condition.id)&&(Ce.onecase||s("This 'switch' should be an 'if'.",this)),ue["(breakage)"]-=1,void(ue["(verb)"]=void 0);case"(end)":return void c("Missing '{a}'.",Se,"}");default:if(t)switch(We.id){case",":return void c("Each value should have its own case label.");case":":t=!1,B();break;default:return void c("Missing ':' on a case clause.",We)}else{if(":"!==We.id)return void c("Expected '{a}' and instead saw '{b}'.",Se,"case",Se.value);h(":"),c("Unexpected '{a}'.",We,":"),B()}}}).labelled=!0,E("debugger",function(){return Ce.debug||s("All 'debugger' statements should be removed."),this}).exps=!0,function(){var e=E("do",function(){ue["(breakage)"]+=1,ue["(loopage)"]+=1,this.first=V(!0),h("while");var e=Se;return y(We,e),h("("),b(),m(20),"="===Se.id&&(Ce.boss||s("Expected a conditional expression and instead saw an assignment."),h("="),m(20)),h(")",e),b(Ae,We),ue["(breakage)"]-=1,ue["(loopage)"]-=1,this});e.labelled=!0,e.exps=!0}(),C("for",function(){var e,t=Se;if(ue["(breakage)"]+=1,ue["(loopage)"]+=1,h("("),y(this,t),b(),"in"===p("var"===Se.id?1:0).id){if("var"===Se.id)h("var"),nt.fud.call(nt,!0);else{switch(ue[Se.value]){case"unused":ue[Se.value]="var";break;case"var":break;default:s("Bad for in variable '{a}'.",Se,Se.value)}h()}return h("in"),m(20),h(")",t),e=V(!0,!0),Ce.forin&&e&&(e.length>1||"object"!=typeof e[0]||"if"!==e[0].value)&&s("The body of a for in should be wrapped in an if statement to filter unwanted properties from the prototype.",this),ue["(breakage)"]-=1,ue["(loopage)"]-=1,this}if(";"!==Se.id)if("var"===Se.id)h("var"),nt.fud.call(nt);else for(;m(0,"for"),","===Se.id;)w();if(_(We),h(";"),";"!==Se.id&&(m(20),"="===Se.id&&(Ce.boss||s("Expected a conditional expression and instead saw an assignment."),h("="),m(20))),_(We),h(";"),";"===Se.id&&c("Expected '{a}' and instead saw '{b}'.",Se,")",";"),")"!==Se.id)for(;m(0,"for"),","===Se.id;)w();return h(")",t),b(Ae,We),V(!0,!0),ue["(breakage)"]-=1,ue["(loopage)"]-=1,this}).labelled=!0,E("break",function(){var e=Se.value;return 0===ue["(breakage)"]&&s("Unexpected '{a}'.",Se,this.value),Ce.asi||_(this),";"!==Se.id&&We.line===Se.line&&("label"!==ue[e]?s("'{a}' is not a statement label.",Se,e):Oe[e]!==ue&&s("'{a}' is out of scope.",Se,e),this.first=Se,h()),U("break"),this}).exps=!0,E("continue",function(){var e=Se.value;return 0===ue["(breakage)"]&&s("Unexpected '{a}'.",Se,this.value),Ce.asi||_(this),";"!==Se.id?We.line===Se.line&&("label"!==ue[e]?s("'{a}' is not a statement label.",Se,e):Oe[e]!==ue&&s("'{a}' is out of scope.",Se,e),this.first=Se,h()):ue["(loopage)"]||s("Unexpected '{a}'.",Se,this.value),U("continue"),this}).exps=!0,E("return",function(){return this.line===Se.line?("(regexp)"===Se.id&&s("Wrap the /regexp/ literal in parens to disambiguate the slash operator."),";"===Se.id||Se.reach||(y(We,Se),"="!==p().value||Ce.boss||l("Did you mean to return a conditional instead of an assignment?",We.line,We.character+1),this.first=m(0))):Ce.asi||_(this),U("return"),this}).exps=!0,E("throw",function(){return _(this),y(We,Se),this.first=m(20),U("throw"),this}).exps=!0,I("class"),I("const"),I("enum"),I("export"),I("extends"),I("import"),I("super"),I("let"),I("yield"),I("implements"),I("interface"),I("package"),I("private"),I("protected"),I("public"),I("static");var rt=function(e,o,a){var l,c,u,d,f,p={};if(JSHINT.errors=[],JSHINT.undefs=[],Me=Object.create(ze),r(Me,a||{}),o){if(l=o.predef)if(Array.isArray(l))for(c=0;c<l.length;c+=1)Me[l[c]]=!0;else if("object"==typeof l)for(u=Object.keys(l),c=0;c<u.length;c+=1)Me[u[c]]=!!l[u[c]];for(f=Object.keys(o),d=0;d<f.length;d++)p[f[d]]=o[f[d]]}for(Ce=p,Ce.indent=Ce.indent||4,Ce.maxerr=Ce.maxerr||50,je="",c=0;c<Ce.indent;c+=1)je+=" ";ge=1,pe=Object.create(Me),Oe=pe,ue={"(global)":!0,"(name)":"(global)","(scope)":Oe,"(breakage)":0,"(loopage)":0},fe=[ue],Ue=[],Ne=null,xe={},_e=null,he={},me=!1,ke=[],ve=!1,Be=0,tt.init(e),Le=!0,$e={},Ae=We=Se=qe["(begin)"];for(var m in o)t(o,m)&&n(m,We);i(),r(Me,a||{}),w.first=!0;try{switch(h(),Se.id){case"{":case"[":Ce.laxbreak=!0,ve=!0,X();break;default:H(),$e["use strict"]&&!Ce.globalstrict&&s('Use the function form of "use strict".',Ae),B()}h("(end)");var g=function(e,t){do{if("string"==typeof t[e])return"unused"===t[e]?t[e]="var":"unction"===t[e]&&(t[e]="closure"),!0;t=t["(context)"]}while(t);return!1},v=function(e,t){if(he[e]){for(var n=[],r=0;r<he[e].length;r+=1)he[e][r]!==t&&n.push(he[e][r]);0===n.length?delete he[e]:he[e]=n}};for(c=0;c<JSHINT.undefs.length;c+=1)u=JSHINT.undefs[c].slice(0),g(u[2].value,u[0])?v(u[2].value,u[2].line):s.apply(s,u.slice(1))}catch(b){if(b){var y=Se||{};JSHINT.errors.push({raw:b.raw,reason:b.message,line:b.line||y.line,character:b.character||y.from},null)}}return 0===JSHINT.errors.length};return rt.data=function(){var e={functions:[],options:Ce},n,r,i=[],o,a,s,l=[],c,u=[],d;rt.errors.length&&(e.errors=rt.errors),ve&&(e.json=!0);for(c in he)t(he,c)&&i.push({name:c,line:he[c]});for(i.length>0&&(e.implieds=i),Ue.length>0&&(e.urls=Ue),r=Object.keys(Oe),r.length>0&&(e.globals=r),a=1;a<fe.length;a+=1){for(o=fe[a],n={},s=0;s<de.length;s+=1)n[de[s]]=[];for(c in o)t(o,c)&&"("!==c.charAt(0)&&(d=o[c],"unction"===d&&(d="unused"),Array.isArray(n[d])&&(n[d].push(c),"unused"===d&&u.push({name:c,line:o["(line)"],"function":o["(name)"]})));for(s=0;s<de.length;s+=1)0===n[de[s]].length&&delete n[de[s]];n.name=o["(name)"],n.param=o["(params)"],n.line=o["(line)"],n.last=o["(last)"],e.functions.push(n)}u.length>0&&(e.unused=u),l=[];for(c in xe)if("number"==typeof xe[c]){e.member=xe;break}return e},rt.report=function(e){function t(e,t){var n,r,i;if(t){for(p.push("<div><i>"+e+"</i> "),t=t.sort(),r=0;r<t.length;r+=1)t[r]!==i&&(i=t[r],p.push((n?", ":"")+i),n=!0);p.push("</div>")}}var n=rt.data(),r=[],i,o,a,s,l,c,u,d="",f,p=[],h;if(n.errors||n.implieds||n.unused){if(a=!0,p.push("<div id=errors><i>Error:</i>"),n.errors)for(l=0;l<n.errors.length;l+=1)i=n.errors[l],i&&(o=i.evidence||"",p.push("<p>Problem"+(isFinite(i.line)?" at line "+i.line+" character "+i.character:"")+": "+i.reason.entityify()+"</p><p class=evidence>"+(o&&(o.length>80?o.slice(0,77)+"...":o).entityify())+"</p>"));if(n.implieds){for(h=[],l=0;l<n.implieds.length;l+=1)h[l]="<code>"+n.implieds[l].name+"</code> <i>"+n.implieds[l].line+"</i>";p.push("<p><i>Implied global:</i> "+h.join(", ")+"</p>")}if(n.unused){for(h=[],l=0;l<n.unused.length;l+=1)h[l]="<code><u>"+n.unused[l].name+"</u></code> <i>"+n.unused[l].line+"</i> <code>"+n.unused[l]["function"]+"</code>";p.push("<p><i>Unused variable:</i> "+h.join(", ")+"</p>")}n.json&&p.push("<p>JSON: bad.</p>"),p.push("</div>")}if(!e){for(p.push("<br><div id=functions>"),n.urls&&t("URLs<br>",n.urls,"<br>"),p.push(n.json&&!a?"<p>JSON: good.</p>":n.globals?"<div><i>Global</i> "+n.globals.sort().join(", ")+"</div>":"<div><i>No new global variables introduced.</i></div>"),l=0;l<n.functions.length;l+=1)s=n.functions[l],p.push("<br><div class=function><i>"+s.line+"-"+s.last+"</i> "+(s.name||"")+"("+(s.param?s.param.join(", "):"")+")</div>"),t("<big><b>Unused</b></big>",s.unused),t("Closure",s.closure),t("Variable",s["var"]),t("Exception",s.exception),t("Outer",s.outer),t("Global",s.global),t("Label",s.label);if(n.member){if(r=Object.keys(n.member),r.length){for(r=r.sort(),d="<br><pre id=members>/*members ",u=10,l=0;l<r.length;l+=1)c=r[l],f=c.name(),u+f.length>72&&(p.push(d+"<br>"),d=" ",u=1),u+=f.length+2,1===n.member[c]&&(f="<i>"+f+"</i>"),l<r.length-1&&(f+=", "),d+=f;p.push(d+"<br>*/</pre>")}p.push("</div>")}}return p.join("")},rt.jshint=rt,rt}(),"object"==typeof exports&&exports&&(exports.JSHINT=JSHINT)}.call(this),function(){var exports=exports||{};CSSLint=function(){function Reporter(e,t){this.messages=[],this.stats=[],this.lines=e,this.ruleset=t}var parserlib={};!function(){function e(){this._listeners={}}function t(e){this._input=e.replace(/\n\r?/g,"\n"),this._line=1,this._col=1,this._cursor=0}function n(e,t,n){this.col=n,this.line=t,this.message=e}function r(e,t,n,r){this.col=n,this.line=t,this.text=e,this.type=r}function i(e,n){this._reader=e?new t(e.toString()):null,this._token=null,this._tokenData=n,this._lt=[],this._ltIndex=0,this._ltIndexCache=[]}e.prototype={constructor:e,addListener:function(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)},fire:function(e){if("string"==typeof e&&(e={type:e}),"undefined"!=typeof e.target&&(e.target=this),"undefined"==typeof e.type)throw new Error("Event object missing 'type' property.");if(this._listeners[e.type])for(var t=this._listeners[e.type].concat(),n=0,r=t.length;r>n;n++)t[n].call(this,e)},removeListener:function(e,t){if(this._listeners[e])for(var n=this._listeners[e],r=0,i=n.length;i>r;r++)if(n[r]===t){n.splice(r,1);break}}},t.prototype={constructor:t,getCol:function(){return this._col},getLine:function(){return this._line},eof:function(){return this._cursor==this._input.length},peek:function(e){var t=null;return e="undefined"==typeof e?1:e,this._cursor<this._input.length&&(t=this._input.charAt(this._cursor+e-1)),t},read:function(){var e=null;return this._cursor<this._input.length&&("\n"==this._input.charAt(this._cursor)?(this._line++,this._col=1):this._col++,e=this._input.charAt(this._cursor++)),e},mark:function(){this._bookmark={cursor:this._cursor,line:this._line,col:this._col}},reset:function(){this._bookmark&&(this._cursor=this._bookmark.cursor,this._line=this._bookmark.line,this._col=this._bookmark.col,delete this._bookmark)},readTo:function(e){for(var t="",n;t.length<e.length||t.lastIndexOf(e)!=t.length-e.length;){if(n=this.read(),!n)throw new Error('Expected "'+e+'" at line '+this._line+", col "+this._col+".");t+=n}return t},readWhile:function(e){for(var t="",n=this.read();null!==n&&e(n);)t+=n,n=this.read();return t},readMatch:function(e){var t=this._input.substring(this._cursor),n=null;return"string"==typeof e?0===t.indexOf(e)&&(n=this.readCount(e.length)):e instanceof RegExp&&e.test(t)&&(n=this.readCount(RegExp.lastMatch.length)),n},readCount:function(e){for(var t="";e--;)t+=this.read();return t}},n.prototype=new Error,r.fromToken=function(e){return new r(e.value,e.startLine,e.startCol)},r.prototype={constructor:r,valueOf:function(){return this.toString()},toString:function(){return this.text}},i.createTokenData=function(e){var t=[],n={},r=e.concat([]),i=0,o=r.length+1;for(r.UNKNOWN=-1,r.unshift({name:"EOF"});o>i;i++)t.push(r[i].name),r[r[i].name]=i,r[i].text&&(n[r[i].text]=i);return r.name=function(e){return t[e]},r.type=function(e){return n[e]},r},i.prototype={constructor:i,match:function(e,t){e instanceof Array||(e=[e]);for(var n=this.get(t),r=0,i=e.length;i>r;)if(n==e[r++])return!0;return this.unget(),!1},mustMatch:function(e,t){var r;if(e instanceof Array||(e=[e]),!this.match.apply(this,arguments))throw r=this.LT(1),new n("Expected "+this._tokenData[e[0]].name+" at line "+r.startLine+", col "+r.startCol+".",r.startLine,r.startCol)},advance:function(e,t){for(;0!==this.LA(0)&&!this.match(e,t);)this.get();return this.LA(0)},get:function(e){var t=this._tokenData,n=this._reader,r,i=0,o=t.length,a=!1,s,l;if(this._lt.length&&this._ltIndex>=0&&this._ltIndex<this._lt.length){for(i++,this._token=this._lt[this._ltIndex++],l=t[this._token.type];void 0!==l.channel&&e!==l.channel&&this._ltIndex<this._lt.length;)this._token=this._lt[this._ltIndex++],l=t[this._token.type],i++;if((void 0===l.channel||e===l.channel)&&this._ltIndex<=this._lt.length)return this._ltIndexCache.push(i),this._token.type}return s=this._getToken(),s.type>-1&&!t[s.type].hide&&(s.channel=t[s.type].channel,this._token=s,this._lt.push(s),this._ltIndexCache.push(this._lt.length-this._ltIndex+i),this._lt.length>5&&this._lt.shift(),this._ltIndexCache.length>5&&this._ltIndexCache.shift(),this._ltIndex=this._lt.length),l=t[s.type],l&&(l.hide||void 0!==l.channel&&e!==l.channel)?this.get(e):s.type},LA:function(e){var t=e,n;if(e>0){if(e>5)throw new Error("Too much lookahead.");for(;t;)n=this.get(),t--;for(;e>t;)this.unget(),t++}else if(0>e){if(!this._lt[this._ltIndex+e])throw new Error("Too much lookbehind.");n=this._lt[this._ltIndex+e].type}else n=this._token.type;return n},LT:function(e){return this.LA(e),this._lt[this._ltIndex+e-1]},peek:function(){return this.LA(1)},token:function(){return this._token},tokenName:function(e){return 0>e||e>this._tokenData.length?"UNKNOWN_TOKEN":this._tokenData[e].name},tokenType:function(e){return this._tokenData[e]||-1},unget:function(){if(!this._ltIndexCache.length)throw new Error("Too much lookahead.");this._ltIndex-=this._ltIndexCache.pop(),this._token=this._lt[this._ltIndex-1]}},parserlib.util={StringReader:t,SyntaxError:n,SyntaxUnit:r,EventTarget:e,TokenStreamBase:i}}(),function(){function Combinator(e,t,n){SyntaxUnit.call(this,e,t,n,Parser.COMBINATOR_TYPE),this.type="unknown",/^\s+$/.test(e)?this.type="descendant":">"==e?this.type="child":"+"==e?this.type="adjacent-sibling":"~"==e&&(this.type="sibling")}function MediaFeature(e,t){SyntaxUnit.call(this,"("+e+(null!==t?":"+t:"")+")",e.startLine,e.startCol,Parser.MEDIA_FEATURE_TYPE),this.name=e,this.value=t}function MediaQuery(e,t,n,r,i){SyntaxUnit.call(this,(e?e+" ":"")+(t?t:"")+(t&&n.length>0?" and ":"")+n.join(" and "),r,i,Parser.MEDIA_QUERY_TYPE),this.modifier=e,this.mediaType=t,this.features=n}function Parser(e){EventTarget.call(this),this.options=e||{},this._tokenStream=null}function PropertyName(e,t,n,r){SyntaxUnit.call(this,e,n,r,Parser.PROPERTY_NAME_TYPE),this.hack=t}function PropertyValue(e,t,n){SyntaxUnit.call(this,e.join(" "),t,n,Parser.PROPERTY_VALUE_TYPE),this.parts=e}function PropertyValueIterator(e){this._i=0,this._parts=e.parts,this._marks=[],this.value=e}function PropertyValuePart(text,line,col){SyntaxUnit.call(this,text,line,col,Parser.PROPERTY_VALUE_PART_TYPE),this.type="unknown";var temp;if(/^([+\-]?[\d\.]+)([a-z]+)$/i.test(text))switch(this.type="dimension",this.value=+RegExp.$1,this.units=RegExp.$2,this.units.toLowerCase()){case"em":case"rem":case"ex":case"px":case"cm":case"mm":case"in":case"pt":case"pc":case"ch":case"vh":case"vw":case"vm":this.type="length";break;case"deg":case"rad":case"grad":this.type="angle";break;case"ms":case"s":this.type="time";break;case"hz":case"khz":this.type="frequency";break;case"dpi":case"dpcm":this.type="resolution"}else/^([+\-]?[\d\.]+)%$/i.test(text)?(this.type="percentage",this.value=+RegExp.$1):/^([+\-]?[\d\.]+)%$/i.test(text)?(this.type="percentage",this.value=+RegExp.$1):/^([+\-]?\d+)$/i.test(text)?(this.type="integer",this.value=+RegExp.$1):/^([+\-]?[\d\.]+)$/i.test(text)?(this.type="number",this.value=+RegExp.$1):/^#([a-f0-9]{3,6})/i.test(text)?(this.type="color",temp=RegExp.$1,3==temp.length?(this.red=parseInt(temp.charAt(0)+temp.charAt(0),16),this.green=parseInt(temp.charAt(1)+temp.charAt(1),16),this.blue=parseInt(temp.charAt(2)+temp.charAt(2),16)):(this.red=parseInt(temp.substring(0,2),16),this.green=parseInt(temp.substring(2,4),16),this.blue=parseInt(temp.substring(4,6),16))):/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i.test(text)?(this.type="color",this.red=+RegExp.$1,this.green=+RegExp.$2,this.blue=+RegExp.$3):/^rgb\(\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)/i.test(text)?(this.type="color",this.red=255*+RegExp.$1/100,this.green=255*+RegExp.$2/100,this.blue=255*+RegExp.$3/100):/^rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/i.test(text)?(this.type="color",this.red=+RegExp.$1,this.green=+RegExp.$2,this.blue=+RegExp.$3,this.alpha=+RegExp.$4):/^rgba\(\s*(\d+)%\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,\s*([\d\.]+)\s*\)/i.test(text)?(this.type="color",this.red=255*+RegExp.$1/100,this.green=255*+RegExp.$2/100,this.blue=255*+RegExp.$3/100,this.alpha=+RegExp.$4):/^hsl\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)/i.test(text)?(this.type="color",this.hue=+RegExp.$1,this.saturation=+RegExp.$2/100,this.lightness=+RegExp.$3/100):/^hsla\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*,\s*([\d\.]+)\s*\)/i.test(text)?(this.type="color",this.hue=+RegExp.$1,this.saturation=+RegExp.$2/100,this.lightness=+RegExp.$3/100,this.alpha=+RegExp.$4):/^url\(["']?([^\)"']+)["']?\)/i.test(text)?(this.type="uri",this.uri=RegExp.$1):/^([^\(]+)\(/i.test(text)?(this.type="function",this.name=RegExp.$1,this.value=text):/^["'][^"']*["']/.test(text)?(this.type="string",this.value=eval(text)):Colors[text.toLowerCase()]?(this.type="color",temp=Colors[text.toLowerCase()].substring(1),this.red=parseInt(temp.substring(0,2),16),this.green=parseInt(temp.substring(2,4),16),this.blue=parseInt(temp.substring(4,6),16)):/^[\,\/]$/.test(text)?(this.type="operator",this.value=text):/^[a-z\-\u0080-\uFFFF][a-z0-9\-\u0080-\uFFFF]*$/i.test(text)&&(this.type="identifier",this.value=text)}function Selector(e,t,n){SyntaxUnit.call(this,e.join(" "),t,n,Parser.SELECTOR_TYPE),this.parts=e,this.specificity=Specificity.calculate(this)}function SelectorPart(e,t,n,r,i){SyntaxUnit.call(this,n,r,i,Parser.SELECTOR_PART_TYPE),this.elementName=e,this.modifiers=t}function SelectorSubPart(e,t,n,r){SyntaxUnit.call(this,e,n,r,Parser.SELECTOR_SUB_PART_TYPE),this.type=t,this.args=[]}function Specificity(e,t,n,r){this.a=e,this.b=t,this.c=n,this.d=r}function isHexDigit(e){return null!==e&&h.test(e)}function isDigit(e){return null!==e&&/\d/.test(e)}function isWhitespace(e){return null!==e&&/\s/.test(e)}function isNewLine(e){return null!==e&&nl.test(e)}function isNameStart(e){return null!==e&&/[a-z_\u0080-\uFFFF\\]/i.test(e)}function isNameChar(e){return null!==e&&(isNameStart(e)||/[0-9\-\\]/.test(e))}function isIdentStart(e){return null!==e&&(isNameStart(e)||/\-\\/.test(e))}function mix(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function TokenStream(e){TokenStreamBase.call(this,e,Tokens)}function ValidationError(e,t,n){this.col=n,this.line=t,this.message=e}var EventTarget=parserlib.util.EventTarget,TokenStreamBase=parserlib.util.TokenStreamBase,StringReader=parserlib.util.StringReader,SyntaxError=parserlib.util.SyntaxError,SyntaxUnit=parserlib.util.SyntaxUnit,Colors={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",activeBorder:"Active window border.",activecaption:"Active window caption.",appworkspace:"Background color of multiple document interface.",background:"Desktop background.",buttonface:"The face background color for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonhighlight:"The color of the border facing the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttonshadow:"The color of the border away from the light source for 3-D elements that appear 3-D due to one layer of surrounding border.",buttontext:"Text on push buttons.",captiontext:"Text in caption, size box, and scrollbar arrow box.",graytext:"Grayed (disabled) text. This color is set to #000 if the current display driver does not support a solid gray color.",highlight:"Item(s) selected in a control.",highlighttext:"Text of item(s) selected in a control.",inactiveborder:"Inactive window border.",inactivecaption:"Inactive window caption.",inactivecaptiontext:"Color of text in an inactive caption.",infobackground:"Background color for tooltip controls.",infotext:"Text color for tooltip controls.",menu:"Menu background.",menutext:"Text in menus.",scrollbar:"Scroll bar gray area.",threeddarkshadow:"The color of the darker (generally outer) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedface:"The face background color for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedhighlight:"The color of the lighter (generally outer) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedlightshadow:"The color of the darker (generally inner) of the two borders facing the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",threedshadow:"The color of the lighter (generally inner) of the two borders away from the light source for 3-D elements that appear 3-D due to two concentric layers of surrounding border.",window:"Window background.",windowframe:"Window frame.",windowtext:"Text in windows."};Combinator.prototype=new SyntaxUnit,Combinator.prototype.constructor=Combinator,MediaFeature.prototype=new SyntaxUnit,MediaFeature.prototype.constructor=MediaFeature,MediaQuery.prototype=new SyntaxUnit,MediaQuery.prototype.constructor=MediaQuery,Parser.DEFAULT_TYPE=0,Parser.COMBINATOR_TYPE=1,Parser.MEDIA_FEATURE_TYPE=2,Parser.MEDIA_QUERY_TYPE=3,Parser.PROPERTY_NAME_TYPE=4,Parser.PROPERTY_VALUE_TYPE=5,Parser.PROPERTY_VALUE_PART_TYPE=6,Parser.SELECTOR_TYPE=7,Parser.SELECTOR_PART_TYPE=8,Parser.SELECTOR_SUB_PART_TYPE=9,Parser.prototype=function(){var e=new EventTarget,t,n={constructor:Parser,DEFAULT_TYPE:0,COMBINATOR_TYPE:1,MEDIA_FEATURE_TYPE:2,MEDIA_QUERY_TYPE:3,PROPERTY_NAME_TYPE:4,PROPERTY_VALUE_TYPE:5,PROPERTY_VALUE_PART_TYPE:6,SELECTOR_TYPE:7,SELECTOR_PART_TYPE:8,SELECTOR_SUB_PART_TYPE:9,_stylesheet:function(){var e=this._tokenStream,t=null,n,r,i;for(this.fire("startstylesheet"),this._charset(),this._skipCruft();e.peek()==Tokens.IMPORT_SYM;)this._import(),this._skipCruft();for(;e.peek()==Tokens.NAMESPACE_SYM;)this._namespace(),this._skipCruft();for(i=e.peek();i>Tokens.EOF;){try{switch(i){case Tokens.MEDIA_SYM:this._media(),this._skipCruft();break;case Tokens.PAGE_SYM:this._page(),this._skipCruft();break;case Tokens.FONT_FACE_SYM:this._font_face(),this._skipCruft();break;case Tokens.KEYFRAMES_SYM:this._keyframes(),this._skipCruft();break;case Tokens.VIEWPORT_SYM:this._viewport(),this._skipCruft();break;case Tokens.UNKNOWN_SYM:if(e.get(),this.options.strict)throw new SyntaxError("Unknown @ rule.",e.LT(0).startLine,e.LT(0).startCol);for(this.fire({type:"error",error:null,message:"Unknown @ rule: "+e.LT(0).value+".",line:e.LT(0).startLine,col:e.LT(0).startCol}),n=0;e.advance([Tokens.LBRACE,Tokens.RBRACE])==Tokens.LBRACE;)n++;
|
||
|
||
for(;n;)e.advance([Tokens.RBRACE]),n--;break;case Tokens.S:this._readWhitespace();break;default:if(!this._ruleset())switch(i){case Tokens.CHARSET_SYM:throw r=e.LT(1),this._charset(!1),new SyntaxError("@charset not allowed here.",r.startLine,r.startCol);case Tokens.IMPORT_SYM:throw r=e.LT(1),this._import(!1),new SyntaxError("@import not allowed here.",r.startLine,r.startCol);case Tokens.NAMESPACE_SYM:throw r=e.LT(1),this._namespace(!1),new SyntaxError("@namespace not allowed here.",r.startLine,r.startCol);default:e.get(),this._unexpectedToken(e.token())}}}catch(o){if(!(o instanceof SyntaxError)||this.options.strict)throw o;this.fire({type:"error",error:o,message:o.message,line:o.line,col:o.col})}i=e.peek()}i!=Tokens.EOF&&this._unexpectedToken(e.token()),this.fire("endstylesheet")},_charset:function(e){var t=this._tokenStream,n,r,i,o;t.match(Tokens.CHARSET_SYM)&&(i=t.token().startLine,o=t.token().startCol,this._readWhitespace(),t.mustMatch(Tokens.STRING),r=t.token(),n=r.value,this._readWhitespace(),t.mustMatch(Tokens.SEMICOLON),e!==!1&&this.fire({type:"charset",charset:n,line:i,col:o}))},_import:function(e){var t=this._tokenStream,n,r,i,o=[];t.mustMatch(Tokens.IMPORT_SYM),i=t.token(),this._readWhitespace(),t.mustMatch([Tokens.STRING,Tokens.URI]),r=t.token().value.replace(/(?:url\()?["']([^"']+)["']\)?/,"$1"),this._readWhitespace(),o=this._media_query_list(),t.mustMatch(Tokens.SEMICOLON),this._readWhitespace(),e!==!1&&this.fire({type:"import",uri:r,media:o,line:i.startLine,col:i.startCol})},_namespace:function(e){var t=this._tokenStream,n,r,i,o;t.mustMatch(Tokens.NAMESPACE_SYM),n=t.token().startLine,r=t.token().startCol,this._readWhitespace(),t.match(Tokens.IDENT)&&(i=t.token().value,this._readWhitespace()),t.mustMatch([Tokens.STRING,Tokens.URI]),o=t.token().value.replace(/(?:url\()?["']([^"']+)["']\)?/,"$1"),this._readWhitespace(),t.mustMatch(Tokens.SEMICOLON),this._readWhitespace(),e!==!1&&this.fire({type:"namespace",prefix:i,uri:o,line:n,col:r})},_media:function(){var e=this._tokenStream,t,n,r;for(e.mustMatch(Tokens.MEDIA_SYM),t=e.token().startLine,n=e.token().startCol,this._readWhitespace(),r=this._media_query_list(),e.mustMatch(Tokens.LBRACE),this._readWhitespace(),this.fire({type:"startmedia",media:r,line:t,col:n});;)if(e.peek()==Tokens.PAGE_SYM)this._page();else if(e.peek()==Tokens.FONT_FACE_SYM)this._font_face();else if(!this._ruleset())break;e.mustMatch(Tokens.RBRACE),this._readWhitespace(),this.fire({type:"endmedia",media:r,line:t,col:n})},_media_query_list:function(){var e=this._tokenStream,t=[];for(this._readWhitespace(),(e.peek()==Tokens.IDENT||e.peek()==Tokens.LPAREN)&&t.push(this._media_query());e.match(Tokens.COMMA);)this._readWhitespace(),t.push(this._media_query());return t},_media_query:function(){var e=this._tokenStream,t=null,n=null,r=null,i=[];if(e.match(Tokens.IDENT)&&(n=e.token().value.toLowerCase(),"only"!=n&&"not"!=n?(e.unget(),n=null):r=e.token()),this._readWhitespace(),e.peek()==Tokens.IDENT?(t=this._media_type(),null===r&&(r=e.token())):e.peek()==Tokens.LPAREN&&(null===r&&(r=e.LT(1)),i.push(this._media_expression())),null===t&&0===i.length)return null;for(this._readWhitespace();e.match(Tokens.IDENT);)"and"!=e.token().value.toLowerCase()&&this._unexpectedToken(e.token()),this._readWhitespace(),i.push(this._media_expression());return new MediaQuery(n,t,i,r.startLine,r.startCol)},_media_type:function(){return this._media_feature()},_media_expression:function(){var e=this._tokenStream,t=null,n,r=null;return e.mustMatch(Tokens.LPAREN),t=this._media_feature(),this._readWhitespace(),e.match(Tokens.COLON)&&(this._readWhitespace(),n=e.LT(1),r=this._expression()),e.mustMatch(Tokens.RPAREN),this._readWhitespace(),new MediaFeature(t,r?new SyntaxUnit(r,n.startLine,n.startCol):null)},_media_feature:function(){var e=this._tokenStream;return e.mustMatch(Tokens.IDENT),SyntaxUnit.fromToken(e.token())},_page:function(){var e=this._tokenStream,t,n,r=null,i=null;e.mustMatch(Tokens.PAGE_SYM),t=e.token().startLine,n=e.token().startCol,this._readWhitespace(),e.match(Tokens.IDENT)&&(r=e.token().value,"auto"===r.toLowerCase()&&this._unexpectedToken(e.token())),e.peek()==Tokens.COLON&&(i=this._pseudo_page()),this._readWhitespace(),this.fire({type:"startpage",id:r,pseudo:i,line:t,col:n}),this._readDeclarations(!0,!0),this.fire({type:"endpage",id:r,pseudo:i,line:t,col:n})},_margin:function(){var e=this._tokenStream,t,n,r=this._margin_sym();return r?(t=e.token().startLine,n=e.token().startCol,this.fire({type:"startpagemargin",margin:r,line:t,col:n}),this._readDeclarations(!0),this.fire({type:"endpagemargin",margin:r,line:t,col:n}),!0):!1},_margin_sym:function(){var e=this._tokenStream;return e.match([Tokens.TOPLEFTCORNER_SYM,Tokens.TOPLEFT_SYM,Tokens.TOPCENTER_SYM,Tokens.TOPRIGHT_SYM,Tokens.TOPRIGHTCORNER_SYM,Tokens.BOTTOMLEFTCORNER_SYM,Tokens.BOTTOMLEFT_SYM,Tokens.BOTTOMCENTER_SYM,Tokens.BOTTOMRIGHT_SYM,Tokens.BOTTOMRIGHTCORNER_SYM,Tokens.LEFTTOP_SYM,Tokens.LEFTMIDDLE_SYM,Tokens.LEFTBOTTOM_SYM,Tokens.RIGHTTOP_SYM,Tokens.RIGHTMIDDLE_SYM,Tokens.RIGHTBOTTOM_SYM])?SyntaxUnit.fromToken(e.token()):null},_pseudo_page:function(){var e=this._tokenStream;return e.mustMatch(Tokens.COLON),e.mustMatch(Tokens.IDENT),e.token().value},_font_face:function(){var e=this._tokenStream,t,n;e.mustMatch(Tokens.FONT_FACE_SYM),t=e.token().startLine,n=e.token().startCol,this._readWhitespace(),this.fire({type:"startfontface",line:t,col:n}),this._readDeclarations(!0),this.fire({type:"endfontface",line:t,col:n})},_viewport:function(){var e=this._tokenStream,t,n;e.mustMatch(Tokens.VIEWPORT_SYM),t=e.token().startLine,n=e.token().startCol,this._readWhitespace(),this.fire({type:"startviewport",line:t,col:n}),this._readDeclarations(!0),this.fire({type:"endviewport",line:t,col:n})},_operator:function(e){var t=this._tokenStream,n=null;return(t.match([Tokens.SLASH,Tokens.COMMA])||e&&t.match([Tokens.PLUS,Tokens.STAR,Tokens.MINUS]))&&(n=t.token(),this._readWhitespace()),n?PropertyValuePart.fromToken(n):null},_combinator:function(){var e=this._tokenStream,t=null,n;return e.match([Tokens.PLUS,Tokens.GREATER,Tokens.TILDE])&&(n=e.token(),t=new Combinator(n.value,n.startLine,n.startCol),this._readWhitespace()),t},_unary_operator:function(){var e=this._tokenStream;return e.match([Tokens.MINUS,Tokens.PLUS])?e.token().value:null},_property:function(){var e=this._tokenStream,t=null,n=null,r,i,o,a;return e.peek()==Tokens.STAR&&this.options.starHack&&(e.get(),i=e.token(),n=i.value,o=i.startLine,a=i.startCol),e.match(Tokens.IDENT)&&(i=e.token(),r=i.value,"_"==r.charAt(0)&&this.options.underscoreHack&&(n="_",r=r.substring(1)),t=new PropertyName(r,n,o||i.startLine,a||i.startCol),this._readWhitespace()),t},_ruleset:function(){var e=this._tokenStream,t,n;try{n=this._selectors_group()}catch(r){if(!(r instanceof SyntaxError)||this.options.strict)throw r;if(this.fire({type:"error",error:r,message:r.message,line:r.line,col:r.col}),t=e.advance([Tokens.RBRACE]),t!=Tokens.RBRACE)throw r;return!0}return n&&(this.fire({type:"startrule",selectors:n,line:n[0].line,col:n[0].col}),this._readDeclarations(!0),this.fire({type:"endrule",selectors:n,line:n[0].line,col:n[0].col})),n},_selectors_group:function(){var e=this._tokenStream,t=[],n;if(n=this._selector(),null!==n)for(t.push(n);e.match(Tokens.COMMA);)this._readWhitespace(),n=this._selector(),null!==n?t.push(n):this._unexpectedToken(e.LT(1));return t.length?t:null},_selector:function(){var e=this._tokenStream,t=[],n=null,r=null,i=null;if(n=this._simple_selector_sequence(),null===n)return null;for(t.push(n);;)if(r=this._combinator(),null!==r)t.push(r),n=this._simple_selector_sequence(),null===n?this._unexpectedToken(e.LT(1)):t.push(n);else{if(!this._readWhitespace())break;i=new Combinator(e.token().value,e.token().startLine,e.token().startCol),r=this._combinator(),n=this._simple_selector_sequence(),null===n?null!==r&&this._unexpectedToken(e.LT(1)):(t.push(null!==r?r:i),t.push(n))}return new Selector(t,t[0].line,t[0].col)},_simple_selector_sequence:function(){var e=this._tokenStream,t=null,n=[],r="",i=[function(){return e.match(Tokens.HASH)?new SelectorSubPart(e.token().value,"id",e.token().startLine,e.token().startCol):null},this._class,this._attrib,this._pseudo,this._negation],o=0,a=i.length,s=null,l=!1,c,u;for(c=e.LT(1).startLine,u=e.LT(1).startCol,t=this._type_selector(),t||(t=this._universal()),null!==t&&(r+=t);;){if(e.peek()===Tokens.S)break;for(;a>o&&null===s;)s=i[o++].call(this);if(null===s){if(""===r)return null;break}o=0,n.push(s),r+=s.toString(),s=null}return""!==r?new SelectorPart(t,n,r,c,u):null},_type_selector:function(){var e=this._tokenStream,t=this._namespace_prefix(),n=this._element_name();return n?(t&&(n.text=t+n.text,n.col-=t.length),n):(t&&(e.unget(),t.length>1&&e.unget()),null)},_class:function(){var e=this._tokenStream,t;return e.match(Tokens.DOT)?(e.mustMatch(Tokens.IDENT),t=e.token(),new SelectorSubPart("."+t.value,"class",t.startLine,t.startCol-1)):null},_element_name:function(){var e=this._tokenStream,t;return e.match(Tokens.IDENT)?(t=e.token(),new SelectorSubPart(t.value,"elementName",t.startLine,t.startCol)):null},_namespace_prefix:function(){var e=this._tokenStream,t="";return(e.LA(1)===Tokens.PIPE||e.LA(2)===Tokens.PIPE)&&(e.match([Tokens.IDENT,Tokens.STAR])&&(t+=e.token().value),e.mustMatch(Tokens.PIPE),t+="|"),t.length?t:null},_universal:function(){var e=this._tokenStream,t="",n;return n=this._namespace_prefix(),n&&(t+=n),e.match(Tokens.STAR)&&(t+="*"),t.length?t:null},_attrib:function(){var e=this._tokenStream,t=null,n,r;return e.match(Tokens.LBRACKET)?(r=e.token(),t=r.value,t+=this._readWhitespace(),n=this._namespace_prefix(),n&&(t+=n),e.mustMatch(Tokens.IDENT),t+=e.token().value,t+=this._readWhitespace(),e.match([Tokens.PREFIXMATCH,Tokens.SUFFIXMATCH,Tokens.SUBSTRINGMATCH,Tokens.EQUALS,Tokens.INCLUDES,Tokens.DASHMATCH])&&(t+=e.token().value,t+=this._readWhitespace(),e.mustMatch([Tokens.IDENT,Tokens.STRING]),t+=e.token().value,t+=this._readWhitespace()),e.mustMatch(Tokens.RBRACKET),new SelectorSubPart(t+"]","attribute",r.startLine,r.startCol)):null},_pseudo:function(){var e=this._tokenStream,t=null,n=":",r,i;return e.match(Tokens.COLON)&&(e.match(Tokens.COLON)&&(n+=":"),e.match(Tokens.IDENT)?(t=e.token().value,r=e.token().startLine,i=e.token().startCol-n.length):e.peek()==Tokens.FUNCTION&&(r=e.LT(1).startLine,i=e.LT(1).startCol-n.length,t=this._functional_pseudo()),t&&(t=new SelectorSubPart(n+t,"pseudo",r,i))),t},_functional_pseudo:function(){var e=this._tokenStream,t=null;return e.match(Tokens.FUNCTION)&&(t=e.token().value,t+=this._readWhitespace(),t+=this._expression(),e.mustMatch(Tokens.RPAREN),t+=")"),t},_expression:function(){for(var e=this._tokenStream,t="";e.match([Tokens.PLUS,Tokens.MINUS,Tokens.DIMENSION,Tokens.NUMBER,Tokens.STRING,Tokens.IDENT,Tokens.LENGTH,Tokens.FREQ,Tokens.ANGLE,Tokens.TIME,Tokens.RESOLUTION,Tokens.SLASH]);)t+=e.token().value,t+=this._readWhitespace();return t.length?t:null},_negation:function(){var e=this._tokenStream,t,n,r="",i,o=null;return e.match(Tokens.NOT)&&(r=e.token().value,t=e.token().startLine,n=e.token().startCol,r+=this._readWhitespace(),i=this._negation_arg(),r+=i,r+=this._readWhitespace(),e.match(Tokens.RPAREN),r+=e.token().value,o=new SelectorSubPart(r,"not",t,n),o.args.push(i)),o},_negation_arg:function(){var e=this._tokenStream,t=[this._type_selector,this._universal,function(){return e.match(Tokens.HASH)?new SelectorSubPart(e.token().value,"id",e.token().startLine,e.token().startCol):null},this._class,this._attrib,this._pseudo],n=null,r=0,i=t.length,o,a,s,l;for(a=e.LT(1).startLine,s=e.LT(1).startCol;i>r&&null===n;)n=t[r].call(this),r++;return null===n&&this._unexpectedToken(e.LT(1)),l="elementName"==n.type?new SelectorPart(n,[],n.toString(),a,s):new SelectorPart(null,[n],n.toString(),a,s)},_declaration:function(){var e=this._tokenStream,t=null,n=null,r=null,i=null,o=null,a="";if(t=this._property(),null!==t){e.mustMatch(Tokens.COLON),this._readWhitespace(),n=this._expr(),n&&0!==n.length||this._unexpectedToken(e.LT(1)),r=this._prio(),a=t.toString(),(this.options.starHack&&"*"==t.hack||this.options.underscoreHack&&"_"==t.hack)&&(a=t.text);try{this._validateProperty(a,n)}catch(s){o=s}return this.fire({type:"property",property:t,value:n,important:r,line:t.line,col:t.col,invalid:o}),!0}return!1},_prio:function(){var e=this._tokenStream,t=e.match(Tokens.IMPORTANT_SYM);return this._readWhitespace(),t},_expr:function(e){var t=this._tokenStream,n=[],r=null,i=null;if(r=this._term(),null!==r)for(n.push(r);;){if(i=this._operator(e),i&&n.push(i),r=this._term(),null===r)break;n.push(r)}return n.length>0?new PropertyValue(n,n[0].line,n[0].col):null},_term:function(){var e=this._tokenStream,t=null,n=null,r,i,o;return t=this._unary_operator(),null!==t&&(i=e.token().startLine,o=e.token().startCol),e.peek()==Tokens.IE_FUNCTION&&this.options.ieFilters?(n=this._ie_function(),null===t&&(i=e.token().startLine,o=e.token().startCol)):e.match([Tokens.NUMBER,Tokens.PERCENTAGE,Tokens.LENGTH,Tokens.ANGLE,Tokens.TIME,Tokens.FREQ,Tokens.STRING,Tokens.IDENT,Tokens.URI,Tokens.UNICODE_RANGE])?(n=e.token().value,null===t&&(i=e.token().startLine,o=e.token().startCol),this._readWhitespace()):(r=this._hexcolor(),null===r?(null===t&&(i=e.LT(1).startLine,o=e.LT(1).startCol),null===n&&(n=e.LA(3)==Tokens.EQUALS&&this.options.ieFilters?this._ie_function():this._function())):(n=r.value,null===t&&(i=r.startLine,o=r.startCol))),null!==n?new PropertyValuePart(null!==t?t+n:n,i,o):null},_function:function(){var e=this._tokenStream,t=null,n=null,r;if(e.match(Tokens.FUNCTION)){if(t=e.token().value,this._readWhitespace(),n=this._expr(!0),t+=n,this.options.ieFilters&&e.peek()==Tokens.EQUALS)do for(this._readWhitespace()&&(t+=e.token().value),e.LA(0)==Tokens.COMMA&&(t+=e.token().value),e.match(Tokens.IDENT),t+=e.token().value,e.match(Tokens.EQUALS),t+=e.token().value,r=e.peek();r!=Tokens.COMMA&&r!=Tokens.S&&r!=Tokens.RPAREN;)e.get(),t+=e.token().value,r=e.peek();while(e.match([Tokens.COMMA,Tokens.S]));e.match(Tokens.RPAREN),t+=")",this._readWhitespace()}return t},_ie_function:function(){var e=this._tokenStream,t=null,n=null,r;if(e.match([Tokens.IE_FUNCTION,Tokens.FUNCTION])){t=e.token().value;do for(this._readWhitespace()&&(t+=e.token().value),e.LA(0)==Tokens.COMMA&&(t+=e.token().value),e.match(Tokens.IDENT),t+=e.token().value,e.match(Tokens.EQUALS),t+=e.token().value,r=e.peek();r!=Tokens.COMMA&&r!=Tokens.S&&r!=Tokens.RPAREN;)e.get(),t+=e.token().value,r=e.peek();while(e.match([Tokens.COMMA,Tokens.S]));e.match(Tokens.RPAREN),t+=")",this._readWhitespace()}return t},_hexcolor:function(){var e=this._tokenStream,t=null,n;if(e.match(Tokens.HASH)){if(t=e.token(),n=t.value,!/#[a-f0-9]{3,6}/i.test(n))throw new SyntaxError("Expected a hex color but found '"+n+"' at line "+t.startLine+", col "+t.startCol+".",t.startLine,t.startCol);this._readWhitespace()}return t},_keyframes:function(){var e=this._tokenStream,t,n,r,i="";for(e.mustMatch(Tokens.KEYFRAMES_SYM),t=e.token(),/^@\-([^\-]+)\-/.test(t.value)&&(i=RegExp.$1),this._readWhitespace(),r=this._keyframe_name(),this._readWhitespace(),e.mustMatch(Tokens.LBRACE),this.fire({type:"startkeyframes",name:r,prefix:i,line:t.startLine,col:t.startCol}),this._readWhitespace(),n=e.peek();n==Tokens.IDENT||n==Tokens.PERCENTAGE;)this._keyframe_rule(),this._readWhitespace(),n=e.peek();this.fire({type:"endkeyframes",name:r,prefix:i,line:t.startLine,col:t.startCol}),this._readWhitespace(),e.mustMatch(Tokens.RBRACE)},_keyframe_name:function(){var e=this._tokenStream,t;return e.mustMatch([Tokens.IDENT,Tokens.STRING]),SyntaxUnit.fromToken(e.token())},_keyframe_rule:function(){var e=this._tokenStream,t,n=this._key_list();this.fire({type:"startkeyframerule",keys:n,line:n[0].line,col:n[0].col}),this._readDeclarations(!0),this.fire({type:"endkeyframerule",keys:n,line:n[0].line,col:n[0].col})},_key_list:function(){var e=this._tokenStream,t,n,r=[];for(r.push(this._key()),this._readWhitespace();e.match(Tokens.COMMA);)this._readWhitespace(),r.push(this._key()),this._readWhitespace();return r},_key:function(){var e=this._tokenStream,t;if(e.match(Tokens.PERCENTAGE))return SyntaxUnit.fromToken(e.token());if(e.match(Tokens.IDENT)){if(t=e.token(),/from|to/i.test(t.value))return SyntaxUnit.fromToken(t);e.unget()}this._unexpectedToken(e.LT(1))},_skipCruft:function(){for(;this._tokenStream.match([Tokens.S,Tokens.CDO,Tokens.CDC]););},_readDeclarations:function(e,t){var n=this._tokenStream,r;this._readWhitespace(),e&&n.mustMatch(Tokens.LBRACE),this._readWhitespace();try{for(;;){if(n.match(Tokens.SEMICOLON)||t&&this._margin());else{if(!this._declaration())break;if(!n.match(Tokens.SEMICOLON))break}this._readWhitespace()}n.mustMatch(Tokens.RBRACE),this._readWhitespace()}catch(i){if(!(i instanceof SyntaxError)||this.options.strict)throw i;if(this.fire({type:"error",error:i,message:i.message,line:i.line,col:i.col}),r=n.advance([Tokens.SEMICOLON,Tokens.RBRACE]),r==Tokens.SEMICOLON)this._readDeclarations(!1,t);else if(r!=Tokens.RBRACE)throw i}},_readWhitespace:function(){for(var e=this._tokenStream,t="";e.match(Tokens.S);)t+=e.token().value;return t},_unexpectedToken:function(e){throw new SyntaxError("Unexpected token '"+e.value+"' at line "+e.startLine+", col "+e.startCol+".",e.startLine,e.startCol)},_verifyEnd:function(){this._tokenStream.LA(1)!=Tokens.EOF&&this._unexpectedToken(this._tokenStream.LT(1))},_validateProperty:function(e,t){Validation.validate(e,t)},parse:function(e){this._tokenStream=new TokenStream(e,Tokens),this._stylesheet()},parseStyleSheet:function(e){return this.parse(e)},parseMediaQuery:function(e){this._tokenStream=new TokenStream(e,Tokens);var t=this._media_query();return this._verifyEnd(),t},parsePropertyValue:function(e){this._tokenStream=new TokenStream(e,Tokens),this._readWhitespace();var t=this._expr();return this._readWhitespace(),this._verifyEnd(),t},parseRule:function(e){this._tokenStream=new TokenStream(e,Tokens),this._readWhitespace();var t=this._ruleset();return this._readWhitespace(),this._verifyEnd(),t},parseSelector:function(e){this._tokenStream=new TokenStream(e,Tokens),this._readWhitespace();var t=this._selector();return this._readWhitespace(),this._verifyEnd(),t},parseStyleAttribute:function(e){e+="}",this._tokenStream=new TokenStream(e,Tokens),this._readDeclarations()}};for(t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}();var Properties={"alignment-adjust":"auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical | <percentage> | <length>","alignment-baseline":"baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical",animation:1,"animation-delay":{multi:"<time>",comma:!0},"animation-direction":{multi:"normal | alternate",comma:!0},"animation-duration":{multi:"<time>",comma:!0},"animation-iteration-count":{multi:"<number> | infinite",comma:!0},"animation-name":{multi:"none | <ident>",comma:!0},"animation-play-state":{multi:"running | paused",comma:!0},"animation-timing-function":1,"-moz-animation-delay":{multi:"<time>",comma:!0},"-moz-animation-direction":{multi:"normal | alternate",comma:!0},"-moz-animation-duration":{multi:"<time>",comma:!0},"-moz-animation-iteration-count":{multi:"<number> | infinite",comma:!0},"-moz-animation-name":{multi:"none | <ident>",comma:!0},"-moz-animation-play-state":{multi:"running | paused",comma:!0},"-ms-animation-delay":{multi:"<time>",comma:!0},"-ms-animation-direction":{multi:"normal | alternate",comma:!0},"-ms-animation-duration":{multi:"<time>",comma:!0},"-ms-animation-iteration-count":{multi:"<number> | infinite",comma:!0},"-ms-animation-name":{multi:"none | <ident>",comma:!0},"-ms-animation-play-state":{multi:"running | paused",comma:!0},"-webkit-animation-delay":{multi:"<time>",comma:!0},"-webkit-animation-direction":{multi:"normal | alternate",comma:!0},"-webkit-animation-duration":{multi:"<time>",comma:!0},"-webkit-animation-iteration-count":{multi:"<number> | infinite",comma:!0},"-webkit-animation-name":{multi:"none | <ident>",comma:!0},"-webkit-animation-play-state":{multi:"running | paused",comma:!0},"-o-animation-delay":{multi:"<time>",comma:!0},"-o-animation-direction":{multi:"normal | alternate",comma:!0},"-o-animation-duration":{multi:"<time>",comma:!0},"-o-animation-iteration-count":{multi:"<number> | infinite",comma:!0},"-o-animation-name":{multi:"none | <ident>",comma:!0},"-o-animation-play-state":{multi:"running | paused",comma:!0},appearance:"icon | window | desktop | workspace | document | tooltip | dialog | button | push-button | hyperlink | radio-button | checkbox | menu-item | tab | menu | menubar | pull-down-menu | pop-up-menu | list-menu | radio-group | checkbox-group | outline-tree | range | field | combo-box | signature | password | normal | none | inherit",azimuth:function(e){var t="<angle> | leftwards | rightwards | inherit",n="left-side | far-left | left | center-left | center | center-right | right | far-right | right-side",r=!1,i=!1,o;if(ValidationTypes.isAny(e,t)||(ValidationTypes.isAny(e,"behind")&&(r=!0,i=!0),ValidationTypes.isAny(e,n)&&(i=!0,r||ValidationTypes.isAny(e,"behind"))),e.hasNext())throw o=e.next(),i?new ValidationError("Expected end of value but found '"+o+"'.",o.line,o.col):new ValidationError("Expected (<'azimuth'>) but found '"+o+"'.",o.line,o.col)},"backface-visibility":"visible | hidden",background:1,"background-attachment":{multi:"<attachment>",comma:!0},"background-clip":{multi:"<box>",comma:!0},"background-color":"<color> | inherit","background-image":{multi:"<bg-image>",comma:!0},"background-origin":{multi:"<box>",comma:!0},"background-position":{multi:"<bg-position>",comma:!0},"background-repeat":{multi:"<repeat-style>"},"background-size":{multi:"<bg-size>",comma:!0},"baseline-shift":"baseline | sub | super | <percentage> | <length>",behavior:1,binding:1,bleed:"<length>","bookmark-label":"<content> | <attr> | <string>","bookmark-level":"none | <integer>","bookmark-state":"open | closed","bookmark-target":"none | <uri> | <attr>",border:"<border-width> || <border-style> || <color>","border-bottom":"<border-width> || <border-style> || <color>","border-bottom-color":"<color> | inherit","border-bottom-left-radius":"<x-one-radius>","border-bottom-right-radius":"<x-one-radius>","border-bottom-style":"<border-style>","border-bottom-width":"<border-width>","border-collapse":"collapse | separate | inherit","border-color":{multi:"<color> | inherit",max:4},"border-image":1,"border-image-outset":{multi:"<length> | <number>",max:4},"border-image-repeat":{multi:"stretch | repeat | round",max:2},"border-image-slice":function(e){var t=!1,n="<number> | <percentage>",r=!1,i=0,o=4,a;for(ValidationTypes.isAny(e,"fill")&&(r=!0,t=!0);e.hasNext()&&o>i&&(t=ValidationTypes.isAny(e,n));)i++;if(r?t=!0:ValidationTypes.isAny(e,"fill"),e.hasNext())throw a=e.next(),t?new ValidationError("Expected end of value but found '"+a+"'.",a.line,a.col):new ValidationError("Expected ([<number> | <percentage>]{1,4} && fill?) but found '"+a+"'.",a.line,a.col)},"border-image-source":"<image> | none","border-image-width":{multi:"<length> | <percentage> | <number> | auto",max:4},"border-left":"<border-width> || <border-style> || <color>","border-left-color":"<color> | inherit","border-left-style":"<border-style>","border-left-width":"<border-width>","border-radius":function(e){for(var t=!1,n="<length> | <percentage> | inherit",r=!1,i=!1,o=0,a=8,s;e.hasNext()&&a>o;){if(t=ValidationTypes.isAny(e,n),!t){if(!("/"==e.peek()&&o>0)||r)break;r=!0,a=o+5,e.next()}o++}if(e.hasNext())throw s=e.next(),t?new ValidationError("Expected end of value but found '"+s+"'.",s.line,s.col):new ValidationError("Expected (<'border-radius'>) but found '"+s+"'.",s.line,s.col)},"border-right":"<border-width> || <border-style> || <color>","border-right-color":"<color> | inherit","border-right-style":"<border-style>","border-right-width":"<border-width>","border-spacing":{multi:"<length> | inherit",max:2},"border-style":{multi:"<border-style>",max:4},"border-top":"<border-width> || <border-style> || <color>","border-top-color":"<color> | inherit","border-top-left-radius":"<x-one-radius>","border-top-right-radius":"<x-one-radius>","border-top-style":"<border-style>","border-top-width":"<border-width>","border-width":{multi:"<border-width>",max:4},bottom:"<margin-width> | inherit","box-align":"start | end | center | baseline | stretch","box-decoration-break":"slice |clone","box-direction":"normal | reverse | inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single | multiple","box-ordinal-group":"<integer>","box-orient":"horizontal | vertical | inline-axis | block-axis | inherit","box-pack":"start | end | center | justify","box-shadow":function(e){var t=!1,n;if(ValidationTypes.isAny(e,"none")){if(e.hasNext())throw n=e.next(),new ValidationError("Expected end of value but found '"+n+"'.",n.line,n.col)}else Validation.multiProperty("<shadow>",e,!0,1/0)},"box-sizing":"content-box | border-box | inherit","break-after":"auto | always | avoid | left | right | page | column | avoid-page | avoid-column","break-before":"auto | always | avoid | left | right | page | column | avoid-page | avoid-column","break-inside":"auto | avoid | avoid-page | avoid-column","caption-side":"top | bottom | inherit",clear:"none | right | left | both | inherit",clip:1,color:"<color> | inherit","color-profile":1,"column-count":"<integer> | auto","column-fill":"auto | balance","column-gap":"<length> | normal","column-rule":"<border-width> || <border-style> || <color>","column-rule-color":"<color>","column-rule-style":"<border-style>","column-rule-width":"<border-width>","column-span":"none | all","column-width":"<length> | auto",columns:1,content:1,"counter-increment":1,"counter-reset":1,crop:"<shape> | auto",cue:"cue-after | cue-before | inherit","cue-after":1,"cue-before":1,cursor:1,direction:"ltr | rtl | inherit",display:"inline | block | list-item | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | box | inline-box | grid | inline-grid | none | inherit | -moz-box | -moz-inline-block | -moz-inline-box | -moz-inline-grid | -moz-inline-stack | -moz-inline-table | -moz-grid | -moz-grid-group | -moz-grid-line | -moz-groupbox | -moz-deck | -moz-popup | -moz-stack | -moz-marker | -webkit-box | -webkit-inline-box","dominant-baseline":1,"drop-initial-after-adjust":"central | middle | after-edge | text-after-edge | ideographic | alphabetic | mathematical | <percentage> | <length>","drop-initial-after-align":"baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical","drop-initial-before-adjust":"before-edge | text-before-edge | central | middle | hanging | mathematical | <percentage> | <length>","drop-initial-before-align":"caps-height | baseline | use-script | before-edge | text-before-edge | after-edge | text-after-edge | central | middle | ideographic | alphabetic | hanging | mathematical","drop-initial-size":"auto | line | <length> | <percentage>","drop-initial-value":"initial | <integer>",elevation:"<angle> | below | level | above | higher | lower | inherit","empty-cells":"show | hide | inherit",filter:1,fit:"fill | hidden | meet | slice","fit-position":1,"float":"left | right | none | inherit","float-offset":1,font:1,"font-family":1,"font-size":"<absolute-size> | <relative-size> | <length> | <percentage> | inherit","font-size-adjust":"<number> | none | inherit","font-stretch":"normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | inherit","font-style":"normal | italic | oblique | inherit","font-variant":"normal | small-caps | inherit","font-weight":"normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit","grid-cell-stacking":"columns | rows | layer","grid-column":1,"grid-columns":1,"grid-column-align":"start | end | center | stretch","grid-column-sizing":1,"grid-column-span":"<integer>","grid-flow":"none | rows | columns","grid-layer":"<integer>","grid-row":1,"grid-rows":1,"grid-row-align":"start | end | center | stretch","grid-row-span":"<integer>","grid-row-sizing":1,"hanging-punctuation":1,height:"<margin-width> | inherit","hyphenate-after":"<integer> | auto","hyphenate-before":"<integer> | auto","hyphenate-character":"<string> | auto","hyphenate-lines":"no-limit | <integer>","hyphenate-resource":1,hyphens:"none | manual | auto",icon:1,"image-orientation":"angle | auto","image-rendering":1,"image-resolution":1,"inline-box-align":"initial | last | <integer>",left:"<margin-width> | inherit","letter-spacing":"<length> | normal | inherit","line-height":"<number> | <length> | <percentage> | normal | inherit","line-break":"auto | loose | normal | strict","line-stacking":1,"line-stacking-ruby":"exclude-ruby | include-ruby","line-stacking-shift":"consider-shifts | disregard-shifts","line-stacking-strategy":"inline-line-height | block-line-height | max-height | grid-height","list-style":1,"list-style-image":"<uri> | none | inherit","list-style-position":"inside | outside | inherit","list-style-type":"disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none | inherit",margin:{multi:"<margin-width> | inherit",max:4},"margin-bottom":"<margin-width> | inherit","margin-left":"<margin-width> | inherit","margin-right":"<margin-width> | inherit","margin-top":"<margin-width> | inherit",mark:1,"mark-after":1,"mark-before":1,marks:1,"marquee-direction":1,"marquee-play-count":1,"marquee-speed":1,"marquee-style":1,"max-height":"<length> | <percentage> | none | inherit","max-width":"<length> | <percentage> | none | inherit","min-height":"<length> | <percentage> | inherit","min-width":"<length> | <percentage> | inherit","move-to":1,"nav-down":1,"nav-index":1,"nav-left":1,"nav-right":1,"nav-up":1,opacity:"<number> | inherit",orphans:"<integer> | inherit",outline:1,"outline-color":"<color> | invert | inherit","outline-offset":1,"outline-style":"<border-style> | inherit","outline-width":"<border-width> | inherit",overflow:"visible | hidden | scroll | auto | inherit","overflow-style":1,"overflow-x":1,"overflow-y":1,padding:{multi:"<padding-width> | inherit",max:4},"padding-bottom":"<padding-width> | inherit","padding-left":"<padding-width> | inherit","padding-right":"<padding-width> | inherit","padding-top":"<padding-width> | inherit",page:1,"page-break-after":"auto | always | avoid | left | right | inherit","page-break-before":"auto | always | avoid | left | right | inherit","page-break-inside":"auto | avoid | inherit","page-policy":1,pause:1,"pause-after":1,"pause-before":1,perspective:1,"perspective-origin":1,phonemes:1,pitch:1,"pitch-range":1,"play-during":1,"pointer-events":"auto | none | visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | inherit",position:"static | relative | absolute | fixed | inherit","presentation-level":1,"punctuation-trim":1,quotes:1,"rendering-intent":1,resize:1,rest:1,"rest-after":1,"rest-before":1,richness:1,right:"<margin-width> | inherit",rotation:1,"rotation-point":1,"ruby-align":1,"ruby-overhang":1,"ruby-position":1,"ruby-span":1,size:1,speak:"normal | none | spell-out | inherit","speak-header":"once | always | inherit","speak-numeral":"digits | continuous | inherit","speak-punctuation":"code | none | inherit","speech-rate":1,src:1,stress:1,"string-set":1,"table-layout":"auto | fixed | inherit","tab-size":"<integer> | <length>",target:1,"target-name":1,"target-new":1,"target-position":1,"text-align":"left | right | center | justify | inherit","text-align-last":1,"text-decoration":1,"text-emphasis":1,"text-height":1,"text-indent":"<length> | <percentage> | inherit",
|
||
"text-justify":"auto | none | inter-word | inter-ideograph | inter-cluster | distribute | kashida","text-outline":1,"text-overflow":1,"text-rendering":"auto | optimizeSpeed | optimizeLegibility | geometricPrecision | inherit","text-shadow":1,"text-transform":"capitalize | uppercase | lowercase | none | inherit","text-wrap":"normal | none | avoid",top:"<margin-width> | inherit",transform:1,"transform-origin":1,"transform-style":1,transition:1,"transition-delay":1,"transition-duration":1,"transition-property":1,"transition-timing-function":1,"unicode-bidi":"normal | embed | bidi-override | inherit","user-modify":"read-only | read-write | write-only | inherit","user-select":"none | text | toggle | element | elements | all | inherit","vertical-align":"auto | use-script | baseline | sub | super | top | text-top | central | middle | bottom | text-bottom | <percentage> | <length>",visibility:"visible | hidden | collapse | inherit","voice-balance":1,"voice-duration":1,"voice-family":1,"voice-pitch":1,"voice-pitch-range":1,"voice-rate":1,"voice-stress":1,"voice-volume":1,volume:1,"white-space":"normal | pre | nowrap | pre-wrap | pre-line | inherit | -pre-wrap | -o-pre-wrap | -moz-pre-wrap | -hp-pre-wrap","white-space-collapse":1,widows:"<integer> | inherit",width:"<length> | <percentage> | auto | inherit","word-break":"normal | keep-all | break-all","word-spacing":"<length> | normal | inherit","word-wrap":1,"z-index":"<integer> | auto | inherit",zoom:"<number> | <percentage> | normal"};PropertyName.prototype=new SyntaxUnit,PropertyName.prototype.constructor=PropertyName,PropertyName.prototype.toString=function(){return(this.hack?this.hack:"")+this.text},PropertyValue.prototype=new SyntaxUnit,PropertyValue.prototype.constructor=PropertyValue,PropertyValueIterator.prototype.count=function(){return this._parts.length},PropertyValueIterator.prototype.isFirst=function(){return 0===this._i},PropertyValueIterator.prototype.hasNext=function(){return this._i<this._parts.length},PropertyValueIterator.prototype.mark=function(){this._marks.push(this._i)},PropertyValueIterator.prototype.peek=function(e){return this.hasNext()?this._parts[this._i+(e||0)]:null},PropertyValueIterator.prototype.next=function(){return this.hasNext()?this._parts[this._i++]:null},PropertyValueIterator.prototype.previous=function(){return this._i>0?this._parts[--this._i]:null},PropertyValueIterator.prototype.restore=function(){this._marks.length&&(this._i=this._marks.pop())},PropertyValuePart.prototype=new SyntaxUnit,PropertyValuePart.prototype.constructor=PropertyValuePart,PropertyValuePart.fromToken=function(e){return new PropertyValuePart(e.value,e.startLine,e.startCol)};var Pseudos={":first-letter":1,":first-line":1,":before":1,":after":1};Pseudos.ELEMENT=1,Pseudos.CLASS=2,Pseudos.isElement=function(e){return 0===e.indexOf("::")||Pseudos[e.toLowerCase()]==Pseudos.ELEMENT},Selector.prototype=new SyntaxUnit,Selector.prototype.constructor=Selector,SelectorPart.prototype=new SyntaxUnit,SelectorPart.prototype.constructor=SelectorPart,SelectorSubPart.prototype=new SyntaxUnit,SelectorSubPart.prototype.constructor=SelectorSubPart,Specificity.prototype={constructor:Specificity,compare:function(e){var t=["a","b","c","d"],n,r;for(n=0,r=t.length;r>n;n++){if(this[t[n]]<e[t[n]])return-1;if(this[t[n]]>e[t[n]])return 1}return 0},valueOf:function(){return 1e3*this.a+100*this.b+10*this.c+this.d},toString:function(){return this.a+","+this.b+","+this.c+","+this.d}},Specificity.calculate=function(e){function t(e){var n,r,i,l,c=e.elementName?e.elementName.text:"",u;for(c&&"*"!=c.charAt(c.length-1)&&s++,n=0,i=e.modifiers.length;i>n;n++)switch(u=e.modifiers[n],u.type){case"class":case"attribute":a++;break;case"id":o++;break;case"pseudo":Pseudos.isElement(u.text)?s++:a++;break;case"not":for(r=0,l=u.args.length;l>r;r++)t(u.args[r])}}var n,r,i,o=0,a=0,s=0;for(n=0,r=e.parts.length;r>n;n++)i=e.parts[n],i instanceof SelectorPart&&t(i);return new Specificity(0,o,a,s)};var h=/^[0-9a-fA-F]$/,nonascii=/^[\u0080-\uFFFF]$/,nl=/\n|\r\n|\r|\f/;TokenStream.prototype=mix(new TokenStreamBase,{_getToken:function(e){var t,n=this._reader,r=null,i=n.getLine(),o=n.getCol();for(t=n.read();t;){switch(t){case"/":r="*"==n.peek()?this.commentToken(t,i,o):this.charToken(t,i,o);break;case"|":case"~":case"^":case"$":case"*":r="="==n.peek()?this.comparisonToken(t,i,o):this.charToken(t,i,o);break;case'"':case"'":r=this.stringToken(t,i,o);break;case"#":r=isNameChar(n.peek())?this.hashToken(t,i,o):this.charToken(t,i,o);break;case".":r=isDigit(n.peek())?this.numberToken(t,i,o):this.charToken(t,i,o);break;case"-":r="-"==n.peek()?this.htmlCommentEndToken(t,i,o):isNameStart(n.peek())?this.identOrFunctionToken(t,i,o):this.charToken(t,i,o);break;case"!":r=this.importantToken(t,i,o);break;case"@":r=this.atRuleToken(t,i,o);break;case":":r=this.notToken(t,i,o);break;case"<":r=this.htmlCommentStartToken(t,i,o);break;case"U":case"u":if("+"==n.peek()){r=this.unicodeRangeToken(t,i,o);break}default:r=isDigit(t)?this.numberToken(t,i,o):isWhitespace(t)?this.whitespaceToken(t,i,o):isIdentStart(t)?this.identOrFunctionToken(t,i,o):this.charToken(t,i,o)}break}return r||null!==t||(r=this.createToken(Tokens.EOF,null,i,o)),r},createToken:function(e,t,n,r,i){var o=this._reader;return i=i||{},{value:t,type:e,channel:i.channel,hide:i.hide||!1,startLine:n,startCol:r,endLine:o.getLine(),endCol:o.getCol()}},atRuleToken:function(e,t,n){var r=e,i=this._reader,o=Tokens.CHAR,a=!1,s,l;return i.mark(),s=this.readName(),r=e+s,o=Tokens.type(r.toLowerCase()),(o==Tokens.CHAR||o==Tokens.UNKNOWN)&&(r.length>1?o=Tokens.UNKNOWN_SYM:(o=Tokens.CHAR,r=e,i.reset())),this.createToken(o,r,t,n)},charToken:function(e,t,n){var r=Tokens.type(e);return-1==r&&(r=Tokens.CHAR),this.createToken(r,e,t,n)},commentToken:function(e,t,n){var r=this._reader,i=this.readComment(e);return this.createToken(Tokens.COMMENT,i,t,n)},comparisonToken:function(e,t,n){var r=this._reader,i=e+r.read(),o=Tokens.type(i)||Tokens.CHAR;return this.createToken(o,i,t,n)},hashToken:function(e,t,n){var r=this._reader,i=this.readName(e);return this.createToken(Tokens.HASH,i,t,n)},htmlCommentStartToken:function(e,t,n){var r=this._reader,i=e;return r.mark(),i+=r.readCount(3),"<!--"==i?this.createToken(Tokens.CDO,i,t,n):(r.reset(),this.charToken(e,t,n))},htmlCommentEndToken:function(e,t,n){var r=this._reader,i=e;return r.mark(),i+=r.readCount(2),"-->"==i?this.createToken(Tokens.CDC,i,t,n):(r.reset(),this.charToken(e,t,n))},identOrFunctionToken:function(e,t,n){var r=this._reader,i=this.readName(e),o=Tokens.IDENT;return"("==r.peek()?(i+=r.read(),"url("==i.toLowerCase()?(o=Tokens.URI,i=this.readURI(i),"url("==i.toLowerCase()&&(o=Tokens.FUNCTION)):o=Tokens.FUNCTION):":"==r.peek()&&"progid"==i.toLowerCase()&&(i+=r.readTo("("),o=Tokens.IE_FUNCTION),this.createToken(o,i,t,n)},importantToken:function(e,t,n){var r=this._reader,i=e,o=Tokens.CHAR,a,s;for(r.mark(),s=r.read();s;){if("/"==s){if("*"!=r.peek())break;if(a=this.readComment(s),""===a)break}else{if(!isWhitespace(s)){if(/i/i.test(s)){a=r.readCount(8),/mportant/i.test(a)&&(i+=s+a,o=Tokens.IMPORTANT_SYM);break}break}i+=s+this.readWhitespace()}s=r.read()}return o==Tokens.CHAR?(r.reset(),this.charToken(e,t,n)):this.createToken(o,i,t,n)},notToken:function(e,t,n){var r=this._reader,i=e;return r.mark(),i+=r.readCount(4),":not("==i.toLowerCase()?this.createToken(Tokens.NOT,i,t,n):(r.reset(),this.charToken(e,t,n))},numberToken:function(e,t,n){var r=this._reader,i=this.readNumber(e),o,a=Tokens.NUMBER,s=r.peek();return isIdentStart(s)?(o=this.readName(r.read()),i+=o,a=/^em$|^ex$|^px$|^gd$|^rem$|^vw$|^vh$|^vm$|^ch$|^cm$|^mm$|^in$|^pt$|^pc$/i.test(o)?Tokens.LENGTH:/^deg|^rad$|^grad$/i.test(o)?Tokens.ANGLE:/^ms$|^s$/i.test(o)?Tokens.TIME:/^hz$|^khz$/i.test(o)?Tokens.FREQ:/^dpi$|^dpcm$/i.test(o)?Tokens.RESOLUTION:Tokens.DIMENSION):"%"==s&&(i+=r.read(),a=Tokens.PERCENTAGE),this.createToken(a,i,t,n)},stringToken:function(e,t,n){for(var r=e,i=e,o=this._reader,a=e,s=Tokens.STRING,l=o.read();l&&(i+=l,l!=r||"\\"==a);){if(isNewLine(o.peek())&&"\\"!=l){s=Tokens.INVALID;break}a=l,l=o.read()}return null===l&&(s=Tokens.INVALID),this.createToken(s,i,t,n)},unicodeRangeToken:function(e,t,n){var r=this._reader,i=e,o,a=Tokens.CHAR;return"+"==r.peek()&&(r.mark(),i+=r.read(),i+=this.readUnicodeRangePart(!0),2==i.length?r.reset():(a=Tokens.UNICODE_RANGE,-1==i.indexOf("?")&&"-"==r.peek()&&(r.mark(),o=r.read(),o+=this.readUnicodeRangePart(!1),1==o.length?r.reset():i+=o))),this.createToken(a,i,t,n)},whitespaceToken:function(e,t,n){var r=this._reader,i=e+this.readWhitespace();return this.createToken(Tokens.S,i,t,n)},readUnicodeRangePart:function(e){for(var t=this._reader,n="",r=t.peek();isHexDigit(r)&&n.length<6;)t.read(),n+=r,r=t.peek();if(e)for(;"?"==r&&n.length<6;)t.read(),n+=r,r=t.peek();return n},readWhitespace:function(){for(var e=this._reader,t="",n=e.peek();isWhitespace(n);)e.read(),t+=n,n=e.peek();return t},readNumber:function(e){for(var t=this._reader,n=e,r="."==e,i=t.peek();i;){if(isDigit(i))n+=t.read();else{if("."!=i)break;if(r)break;r=!0,n+=t.read()}i=t.peek()}return n},readString:function(){for(var e=this._reader,t=e.read(),n=t,r=t,i=e.peek();i&&(i=e.read(),n+=i,i!=t||"\\"==r);){if(isNewLine(e.peek())&&"\\"!=i){n="";break}r=i,i=e.peek()}return null===i&&(n=""),n},readURI:function(e){var t=this._reader,n=e,r="",i=t.peek();for(t.mark();i&&isWhitespace(i);)t.read(),i=t.peek();for(r="'"==i||'"'==i?this.readString():this.readURL(),i=t.peek();i&&isWhitespace(i);)t.read(),i=t.peek();return""===r||")"!=i?(n=e,t.reset()):n+=r+t.read(),n},readURL:function(){for(var e=this._reader,t="",n=e.peek();/^[!#$%&\\*-~]$/.test(n);)t+=e.read(),n=e.peek();return t},readName:function(e){for(var t=this._reader,n=e||"",r=t.peek();;)if("\\"==r)n+=this.readEscape(t.read()),r=t.peek();else{if(!r||!isNameChar(r))break;n+=t.read(),r=t.peek()}return n},readEscape:function(e){var t=this._reader,n=e||"",r=0,i=t.peek();if(isHexDigit(i))do n+=t.read(),i=t.peek();while(i&&isHexDigit(i)&&++r<6);return 3==n.length&&/\s/.test(i)||7==n.length||1==n.length?t.read():i="",n+i},readComment:function(e){var t=this._reader,n=e||"",r=t.read();if("*"==r){for(;r;){if(n+=r,n.length>2&&"*"==r&&"/"==t.peek()){n+=t.read();break}r=t.read()}return n}return""}});var Tokens=[{name:"CDO"},{name:"CDC"},{name:"S",whitespace:!0},{name:"COMMENT",comment:!0,hide:!0,channel:"comment"},{name:"INCLUDES",text:"~="},{name:"DASHMATCH",text:"|="},{name:"PREFIXMATCH",text:"^="},{name:"SUFFIXMATCH",text:"$="},{name:"SUBSTRINGMATCH",text:"*="},{name:"STRING"},{name:"IDENT"},{name:"HASH"},{name:"IMPORT_SYM",text:"@import"},{name:"PAGE_SYM",text:"@page"},{name:"MEDIA_SYM",text:"@media"},{name:"FONT_FACE_SYM",text:"@font-face"},{name:"CHARSET_SYM",text:"@charset"},{name:"NAMESPACE_SYM",text:"@namespace"},{name:"VIEWPORT_SYM",text:"@viewport"},{name:"UNKNOWN_SYM"},{name:"KEYFRAMES_SYM",text:["@keyframes","@-webkit-keyframes","@-moz-keyframes","@-o-keyframes"]},{name:"IMPORTANT_SYM"},{name:"LENGTH"},{name:"ANGLE"},{name:"TIME"},{name:"FREQ"},{name:"DIMENSION"},{name:"PERCENTAGE"},{name:"NUMBER"},{name:"URI"},{name:"FUNCTION"},{name:"UNICODE_RANGE"},{name:"INVALID"},{name:"PLUS",text:"+"},{name:"GREATER",text:">"},{name:"COMMA",text:","},{name:"TILDE",text:"~"},{name:"NOT"},{name:"TOPLEFTCORNER_SYM",text:"@top-left-corner"},{name:"TOPLEFT_SYM",text:"@top-left"},{name:"TOPCENTER_SYM",text:"@top-center"},{name:"TOPRIGHT_SYM",text:"@top-right"},{name:"TOPRIGHTCORNER_SYM",text:"@top-right-corner"},{name:"BOTTOMLEFTCORNER_SYM",text:"@bottom-left-corner"},{name:"BOTTOMLEFT_SYM",text:"@bottom-left"},{name:"BOTTOMCENTER_SYM",text:"@bottom-center"},{name:"BOTTOMRIGHT_SYM",text:"@bottom-right"},{name:"BOTTOMRIGHTCORNER_SYM",text:"@bottom-right-corner"},{name:"LEFTTOP_SYM",text:"@left-top"},{name:"LEFTMIDDLE_SYM",text:"@left-middle"},{name:"LEFTBOTTOM_SYM",text:"@left-bottom"},{name:"RIGHTTOP_SYM",text:"@right-top"},{name:"RIGHTMIDDLE_SYM",text:"@right-middle"},{name:"RIGHTBOTTOM_SYM",text:"@right-bottom"},{name:"RESOLUTION",state:"media"},{name:"IE_FUNCTION"},{name:"CHAR"},{name:"PIPE",text:"|"},{name:"SLASH",text:"/"},{name:"MINUS",text:"-"},{name:"STAR",text:"*"},{name:"LBRACE",text:"{"},{name:"RBRACE",text:"}"},{name:"LBRACKET",text:"["},{name:"RBRACKET",text:"]"},{name:"EQUALS",text:"="},{name:"COLON",text:":"},{name:"SEMICOLON",text:";"},{name:"LPAREN",text:"("},{name:"RPAREN",text:")"},{name:"DOT",text:"."}];!function(){var e=[],t={};Tokens.UNKNOWN=-1,Tokens.unshift({name:"EOF"});for(var n=0,r=Tokens.length;r>n;n++)if(e.push(Tokens[n].name),Tokens[Tokens[n].name]=n,Tokens[n].text)if(Tokens[n].text instanceof Array)for(var i=0;i<Tokens[n].text.length;i++)t[Tokens[n].text[i]]=n;else t[Tokens[n].text]=n;Tokens.name=function(t){return e[t]},Tokens.type=function(e){return t[e]||-1}}();var Validation={validate:function(e,t){var n=e.toString().toLowerCase(),r=t.parts,i=new PropertyValueIterator(t),o=Properties[n],a,s,l,c,u,d,f,p,h,m,g;if(o)"number"!=typeof o&&("string"==typeof o?o.indexOf("||")>-1?this.groupProperty(o,i):this.singleProperty(o,i,1):o.multi?this.multiProperty(o.multi,i,o.comma,o.max||1/0):"function"==typeof o&&o(i));else if(0!==n.indexOf("-"))throw new ValidationError("Unknown property '"+e+"'.",e.line,e.col)},singleProperty:function(e,t,n,r){for(var i=!1,o=t.value,a=0,s;t.hasNext()&&n>a&&(i=ValidationTypes.isAny(t,e));)a++;if(!i)throw t.hasNext()&&!t.isFirst()?(s=t.peek(),new ValidationError("Expected end of value but found '"+s+"'.",s.line,s.col)):new ValidationError("Expected ("+e+") but found '"+o+"'.",o.line,o.col);if(t.hasNext())throw s=t.next(),new ValidationError("Expected end of value but found '"+s+"'.",s.line,s.col)},multiProperty:function(e,t,n,r){for(var i=!1,o=t.value,a=0,s=!1,l;t.hasNext()&&!i&&r>a&&ValidationTypes.isAny(t,e);)if(a++,t.hasNext()){if(n){if(","!=t.peek())break;l=t.next()}}else i=!0;if(!i)throw t.hasNext()&&!t.isFirst()?(l=t.peek(),new ValidationError("Expected end of value but found '"+l+"'.",l.line,l.col)):(l=t.previous(),n&&","==l?new ValidationError("Expected end of value but found '"+l+"'.",l.line,l.col):new ValidationError("Expected ("+e+") but found '"+o+"'.",o.line,o.col));if(t.hasNext())throw l=t.next(),new ValidationError("Expected end of value but found '"+l+"'.",l.line,l.col)},groupProperty:function(e,t,n){for(var r=!1,i=t.value,o=e.split("||").length,a={count:0},s=!1,l,c;t.hasNext()&&!r&&(l=ValidationTypes.isAnyOfGroup(t,e))&&!a[l];)a[l]=1,a.count++,s=!0,a.count!=o&&t.hasNext()||(r=!0);if(!r)throw s&&t.hasNext()?(c=t.peek(),new ValidationError("Expected end of value but found '"+c+"'.",c.line,c.col)):new ValidationError("Expected ("+e+") but found '"+i+"'.",i.line,i.col);if(t.hasNext())throw c=t.next(),new ValidationError("Expected end of value but found '"+c+"'.",c.line,c.col)}};ValidationError.prototype=new Error;var ValidationTypes={isLiteral:function(e,t){var n=e.text.toString().toLowerCase(),r=t.split(" | "),i,o,a=!1;for(i=0,o=r.length;o>i&&!a;i++)n==r[i].toLowerCase()&&(a=!0);return a},isSimple:function(e){return!!this.simple[e]},isComplex:function(e){return!!this.complex[e]},isAny:function(e,t){var n=t.split(" | "),r,i,o=!1;for(r=0,i=n.length;i>r&&!o&&e.hasNext();r++)o=this.isType(e,n[r]);return o},isAnyOfGroup:function(e,t){var n=t.split(" || "),r,i,o=!1;for(r=0,i=n.length;i>r&&!o;r++)o=this.isType(e,n[r]);return o?n[r-1]:!1},isType:function(e,t){var n=e.peek(),r=!1;return"<"!=t.charAt(0)?(r=this.isLiteral(n,t),r&&e.next()):this.simple[t]?(r=this.simple[t](n),r&&e.next()):r=this.complex[t](e),r},simple:{"<absolute-size>":function(e){return ValidationTypes.isLiteral(e,"xx-small | x-small | small | medium | large | x-large | xx-large")},"<attachment>":function(e){return ValidationTypes.isLiteral(e,"scroll | fixed | local")},"<attr>":function(e){return"function"==e.type&&"attr"==e.name},"<bg-image>":function(e){return this["<image>"](e)||this["<gradient>"](e)||"none"==e},"<gradient>":function(e){return"function"==e.type&&/^(?:\-(?:ms|moz|o|webkit)\-)?(?:repeating\-)?(?:radial\-|linear\-)?gradient/i.test(e)},"<box>":function(e){return ValidationTypes.isLiteral(e,"padding-box | border-box | content-box")},"<content>":function(e){return"function"==e.type&&"content"==e.name},"<relative-size>":function(e){return ValidationTypes.isLiteral(e,"smaller | larger")},"<ident>":function(e){return"identifier"==e.type},"<length>":function(e){return"function"==e.type&&/^(?:\-(?:ms|moz|o|webkit)\-)?calc/i.test(e)?!0:"length"==e.type||"number"==e.type||"integer"==e.type||"0"==e},"<color>":function(e){return"color"==e.type||"transparent"==e},"<number>":function(e){return"number"==e.type||this["<integer>"](e)},"<integer>":function(e){return"integer"==e.type},"<line>":function(e){return"integer"==e.type},"<angle>":function(e){return"angle"==e.type},"<uri>":function(e){return"uri"==e.type},"<image>":function(e){return this["<uri>"](e)},"<percentage>":function(e){return"percentage"==e.type||"0"==e},"<border-width>":function(e){return this["<length>"](e)||ValidationTypes.isLiteral(e,"thin | medium | thick")},"<border-style>":function(e){return ValidationTypes.isLiteral(e,"none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset")},"<margin-width>":function(e){return this["<length>"](e)||this["<percentage>"](e)||ValidationTypes.isLiteral(e,"auto")},"<padding-width>":function(e){return this["<length>"](e)||this["<percentage>"](e)},"<shape>":function(e){return"function"==e.type&&("rect"==e.name||"inset-rect"==e.name)},"<time>":function(e){return"time"==e.type}},complex:{"<bg-position>":function(e){for(var t=this,n=!1,r="<percentage> | <length>",i="left | right",o="top | bottom",a=0,s=function(){return e.hasNext()&&","!=e.peek()};e.peek(a)&&","!=e.peek(a);)a++;return 3>a?ValidationTypes.isAny(e,i+" | center | "+r)?(n=!0,ValidationTypes.isAny(e,o+" | center | "+r)):ValidationTypes.isAny(e,o)&&(n=!0,ValidationTypes.isAny(e,i+" | center")):ValidationTypes.isAny(e,i)?ValidationTypes.isAny(e,o)?(n=!0,ValidationTypes.isAny(e,r)):ValidationTypes.isAny(e,r)&&(ValidationTypes.isAny(e,o)?(n=!0,ValidationTypes.isAny(e,r)):ValidationTypes.isAny(e,"center")&&(n=!0)):ValidationTypes.isAny(e,o)?ValidationTypes.isAny(e,i)?(n=!0,ValidationTypes.isAny(e,r)):ValidationTypes.isAny(e,r)&&(ValidationTypes.isAny(e,i)?(n=!0,ValidationTypes.isAny(e,r)):ValidationTypes.isAny(e,"center")&&(n=!0)):ValidationTypes.isAny(e,"center")&&ValidationTypes.isAny(e,i+" | "+o)&&(n=!0,ValidationTypes.isAny(e,r)),n},"<bg-size>":function(e){var t=this,n=!1,r="<percentage> | <length> | auto",i,o,a;return ValidationTypes.isAny(e,"cover | contain")?n=!0:ValidationTypes.isAny(e,r)&&(n=!0,ValidationTypes.isAny(e,r)),n},"<repeat-style>":function(e){var t=!1,n="repeat | space | round | no-repeat",r;return e.hasNext()&&(r=e.next(),ValidationTypes.isLiteral(r,"repeat-x | repeat-y")?t=!0:ValidationTypes.isLiteral(r,n)&&(t=!0,e.hasNext()&&ValidationTypes.isLiteral(e.peek(),n)&&e.next())),t},"<shadow>":function(e){var t=!1,n=0,r=!1,i=!1,o;if(e.hasNext()){for(ValidationTypes.isAny(e,"inset")&&(r=!0),ValidationTypes.isAny(e,"<color>")&&(i=!0);ValidationTypes.isAny(e,"<length>")&&4>n;)n++;e.hasNext()&&(i||ValidationTypes.isAny(e,"<color>"),r||ValidationTypes.isAny(e,"inset")),t=n>=2&&4>=n}return t},"<x-one-radius>":function(e){var t=!1,n="<length> | <percentage> | inherit";return ValidationTypes.isAny(e,n)&&(t=!0,ValidationTypes.isAny(e,n)),t}}};parserlib.css={Colors:Colors,Combinator:Combinator,Parser:Parser,PropertyName:PropertyName,PropertyValue:PropertyValue,PropertyValuePart:PropertyValuePart,MediaFeature:MediaFeature,MediaQuery:MediaQuery,Selector:Selector,SelectorPart:SelectorPart,SelectorSubPart:SelectorSubPart,Specificity:Specificity,TokenStream:TokenStream,Tokens:Tokens,ValidationError:ValidationError}}(),function(){for(var e in parserlib)exports[e]=parserlib[e]}();var CSSLint=function(){function e(e,t){var n,i=e&&e.match(r),o=i&&i[1];return o&&(n={"true":2,"":1,"false":0,2:2,1:1,0:0},o.toLowerCase().split(",").forEach(function(e){var r=e.split(":"),i=r[0]||"",o=r[1]||"";t[i.trim()]=n[o.trim()]})),t}var t=[],n=[],r=/\/\*csslint([^\*]*)\*\//,i=new parserlib.util.EventTarget;return i.version="0.10.0",i.addRule=function(e){t.push(e),t[e.id]=e},i.clearRules=function(){t=[]},i.getRules=function(){return[].concat(t).sort(function(e,t){return e.id>t.id?1:0})},i.getRuleset=function(){for(var e={},n=0,r=t.length;r>n;)e[t[n++].id]=1;return e},i.addFormatter=function(e){n[e.id]=e},i.getFormatter=function(e){return n[e]},i.format=function(e,t,n,r){var i=this.getFormatter(n),o=null;return i&&(o=i.startFormat(),o+=i.formatResults(e,t,r||{}),o+=i.endFormat()),o},i.hasFormat=function(e){return n.hasOwnProperty(e)},i.verify=function(n,i){var o=0,a=t.length,s,l,c,u=new parserlib.css.Parser({starHack:!0,ieFilters:!0,underscoreHack:!0,strict:!1});l=n.replace(/\n\r?/g,"$split$").split("$split$"),i||(i=this.getRuleset()),r.test(n)&&(i=e(n,i)),s=new Reporter(l,i),i.errors=2;for(o in i)i.hasOwnProperty(o)&&i[o]&&t[o]&&t[o].init(u,s);try{u.parse(n)}catch(d){s.error("Fatal error, cannot continue: "+d.message,d.line,d.col,{})}return c={messages:s.messages,stats:s.stats,ruleset:s.ruleset},c.messages.sort(function(e,t){return e.rollup&&!t.rollup?1:!e.rollup&&t.rollup?-1:e.line-t.line}),c},i}();return Reporter.prototype={constructor:Reporter,error:function(e,t,n,r){this.messages.push({type:"error",line:t,col:n,message:e,evidence:this.lines[t-1],rule:r||{}})},warn:function(e,t,n,r){this.report(e,t,n,r)},report:function(e,t,n,r){this.messages.push({type:2==this.ruleset[r.id]?"error":"warning",line:t,col:n,message:e,evidence:this.lines[t-1],rule:r})},info:function(e,t,n,r){this.messages.push({type:"info",line:t,col:n,message:e,evidence:this.lines[t-1],rule:r})},rollupError:function(e,t){this.messages.push({type:"error",rollup:!0,message:e,rule:t})},rollupWarn:function(e,t){this.messages.push({type:"warning",rollup:!0,message:e,rule:t})},stat:function(e,t){this.stats[e]=t}},CSSLint._Reporter=Reporter,CSSLint.Util={mix:function(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return n},indexOf:function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},forEach:function(e,t){if(e.forEach)return e.forEach(t);for(var n=0,r=e.length;r>n;n++)t(e[n],n,e)}},CSSLint.addRule({id:"adjoining-classes",name:"Disallow adjoining classes",desc:"Don't use adjoining classes.",browsers:"IE6",init:function(e,t){var n=this;e.addListener("startrule",function(r){var i=r.selectors,o,a,s,l,c,u,d;for(c=0;c<i.length;c++)for(o=i[c],u=0;u<o.parts.length;u++)if(a=o.parts[u],a.type==e.SELECTOR_PART_TYPE)for(l=0,d=0;d<a.modifiers.length;d++)s=a.modifiers[d],"class"==s.type&&l++,l>1&&t.report("Don't use adjoining classes.",a.line,a.col,n)})}}),CSSLint.addRule({id:"box-model",name:"Beware of broken box size",desc:"Don't use width or height when using padding or border.",browsers:"All",init:function(e,t){function n(){s={},l=!1}function r(){var e,n;if(!l){if(s.height)for(e in a)a.hasOwnProperty(e)&&s[e]&&(n=s[e].value,("padding"!=e||2!==n.parts.length||0!==n.parts[0].value)&&t.report("Using height with "+e+" can sometimes make elements larger than you expect.",s[e].line,s[e].col,i));if(s.width)for(e in o)o.hasOwnProperty(e)&&s[e]&&(n=s[e].value,("padding"!=e||2!==n.parts.length||0!==n.parts[1].value)&&t.report("Using width with "+e+" can sometimes make elements larger than you expect.",s[e].line,s[e].col,i))}}var i=this,o={border:1,"border-left":1,"border-right":1,padding:1,"padding-left":1,"padding-right":1},a={border:1,"border-bottom":1,"border-top":1,padding:1,"padding-bottom":1,"padding-top":1},s,l=!1;e.addListener("startrule",n),e.addListener("startfontface",n),e.addListener("startpage",n),e.addListener("startpagemargin",n),e.addListener("startkeyframerule",n),e.addListener("property",function(e){var t=e.property.text.toLowerCase();a[t]||o[t]?/^0\S*$/.test(e.value)||"border"==t&&"none"==e.value||(s[t]={line:e.property.line,col:e.property.col,value:e.value}):/^(width|height)/i.test(t)&&/^(length|percentage)/.test(e.value.parts[0].type)?s[t]=1:"box-sizing"==t&&(l=!0)}),e.addListener("endrule",r),e.addListener("endfontface",r),e.addListener("endpage",r),e.addListener("endpagemargin",r),e.addListener("endkeyframerule",r)}}),CSSLint.addRule({id:"box-sizing",name:"Disallow use of box-sizing",desc:"The box-sizing properties isn't supported in IE6 and IE7.",browsers:"IE6, IE7",tags:["Compatibility"],init:function(e,t){var n=this;e.addListener("property",function(e){var r=e.property.text.toLowerCase();"box-sizing"==r&&t.report("The box-sizing property isn't supported in IE6 and IE7.",e.line,e.col,n)})}}),CSSLint.addRule({id:"bulletproof-font-face",name:"Use the bulletproof @font-face syntax",desc:"Use the bulletproof @font-face syntax to avoid 404's in old IE (http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax).",browsers:"All",init:function(e,t){var n=this,r=0,i=!1,o=!0,a=!1,s,l;e.addListener("startfontface",function(e){i=!0}),e.addListener("property",function(e){if(i){var t=e.property.toString().toLowerCase(),n=e.value.toString();if(s=e.line,l=e.col,"src"===t){var r=/^\s?url\(['"].+\.eot\?.*['"]\)\s*format\(['"]embedded-opentype['"]\).*$/i;!n.match(r)&&o?(a=!0,o=!1):n.match(r)&&!o&&(a=!1)}}}),e.addListener("endfontface",function(e){i=!1,a&&t.report("@font-face declaration doesn't follow the fontspring bulletproof syntax.",s,l,n)})}}),CSSLint.addRule({id:"compatible-vendor-prefixes",name:"Require compatible vendor prefixes",desc:"Include all compatible vendor prefixes to reach a wider range of users.",browsers:"All",init:function(e,t){var n=this,r,i,o,a,s,l,c,u=!1,d=Array.prototype.push,f=[];r={animation:"webkit moz","animation-delay":"webkit moz","animation-direction":"webkit moz","animation-duration":"webkit moz","animation-fill-mode":"webkit moz","animation-iteration-count":"webkit moz","animation-name":"webkit moz","animation-play-state":"webkit moz","animation-timing-function":"webkit moz",appearance:"webkit moz","border-end":"webkit moz","border-end-color":"webkit moz","border-end-style":"webkit moz","border-end-width":"webkit moz","border-image":"webkit moz o","border-radius":"webkit","border-start":"webkit moz","border-start-color":"webkit moz","border-start-style":"webkit moz","border-start-width":"webkit moz","box-align":"webkit moz ms","box-direction":"webkit moz ms","box-flex":"webkit moz ms","box-lines":"webkit ms","box-ordinal-group":"webkit moz ms","box-orient":"webkit moz ms","box-pack":"webkit moz ms","box-sizing":"webkit moz","box-shadow":"webkit moz","column-count":"webkit moz ms","column-gap":"webkit moz ms","column-rule":"webkit moz ms","column-rule-color":"webkit moz ms","column-rule-style":"webkit moz ms","column-rule-width":"webkit moz ms","column-width":"webkit moz ms",hyphens:"epub moz","line-break":"webkit ms","margin-end":"webkit moz","margin-start":"webkit moz","marquee-speed":"webkit wap","marquee-style":"webkit wap","padding-end":"webkit moz","padding-start":"webkit moz","tab-size":"moz o","text-size-adjust":"webkit ms",transform:"webkit moz ms o","transform-origin":"webkit moz ms o",transition:"webkit moz o","transition-delay":"webkit moz o","transition-duration":"webkit moz o","transition-property":"webkit moz o","transition-timing-function":"webkit moz o","user-modify":"webkit moz","user-select":"webkit moz ms","word-break":"epub ms","writing-mode":"epub ms"};for(o in r)if(r.hasOwnProperty(o)){for(a=[],s=r[o].split(" "),l=0,c=s.length;c>l;l++)a.push("-"+s[l]+"-"+o);r[o]=a,d.apply(f,a)}e.addListener("startrule",function(){i=[]}),e.addListener("startkeyframes",function(e){u=e.prefix||!0}),e.addListener("endkeyframes",function(e){u=!1}),e.addListener("property",function(e){var t=e.property;CSSLint.Util.indexOf(f,t.text)>-1&&(u&&"string"==typeof u&&0===t.text.indexOf("-"+u+"-")||i.push(t))}),e.addListener("endrule",function(e){if(i.length){var o={},a,s,l,c,u,d,f,p,h,m;for(a=0,s=i.length;s>a;a++){l=i[a];for(c in r)r.hasOwnProperty(c)&&(u=r[c],CSSLint.Util.indexOf(u,l.text)>-1&&(o[c]||(o[c]={full:u.slice(0),actual:[],actualNodes:[]}),-1===CSSLint.Util.indexOf(o[c].actual,l.text)&&(o[c].actual.push(l.text),o[c].actualNodes.push(l))))}for(c in o)if(o.hasOwnProperty(c)&&(d=o[c],f=d.full,p=d.actual,f.length>p.length))for(a=0,s=f.length;s>a;a++)h=f[a],-1===CSSLint.Util.indexOf(p,h)&&(m=1===p.length?p[0]:p.join(2==p.length?" and ":", "),t.report("The property "+h+" is compatible with "+m+" and should be included as well.",d.actualNodes[0].line,d.actualNodes[0].col,n))}})}}),CSSLint.addRule({id:"display-property-grouping",name:"Require properties appropriate for display",desc:"Certain properties shouldn't be used with certain display property values.",browsers:"All",init:function(e,t){function n(e,n,r){s[e]&&("string"!=typeof a[e]||s[e].value.toLowerCase()!=a[e])&&t.report(r||e+" can't be used with display: "+n+".",s[e].line,s[e].col,o)}function r(){s={}}function i(){var e=s.display?s.display.value:null;if(e)switch(e){case"inline":n("height",e),n("width",e),n("margin",e),n("margin-top",e),n("margin-bottom",e),n("float",e,"display:inline has no effect on floated elements (but may be used to fix the IE6 double-margin bug).");break;case"block":n("vertical-align",e);break;case"inline-block":n("float",e);break;default:0===e.indexOf("table-")&&(n("margin",e),n("margin-left",e),n("margin-right",e),n("margin-top",e),n("margin-bottom",e),n("float",e))}}var o=this,a={display:1,"float":"none",height:1,width:1,margin:1,"margin-left":1,"margin-right":1,"margin-bottom":1,"margin-top":1,padding:1,"padding-left":1,"padding-right":1,"padding-bottom":1,"padding-top":1,"vertical-align":1},s;e.addListener("startrule",r),e.addListener("startfontface",r),e.addListener("startkeyframerule",r),e.addListener("startpagemargin",r),e.addListener("startpage",r),e.addListener("property",function(e){var t=e.property.text.toLowerCase();a[t]&&(s[t]={value:e.value.text,line:e.property.line,col:e.property.col})}),e.addListener("endrule",i),e.addListener("endfontface",i),e.addListener("endkeyframerule",i),e.addListener("endpagemargin",i),e.addListener("endpage",i)}}),CSSLint.addRule({id:"duplicate-background-images",name:"Disallow duplicate background images",desc:"Every background-image should be unique. Use a common class for e.g. sprites.",browsers:"All",init:function(e,t){var n=this,r={};e.addListener("property",function(e){var i=e.property.text,o=e.value,a,s;if(i.match(/background/i))for(a=0,s=o.parts.length;s>a;a++)"uri"==o.parts[a].type&&("undefined"==typeof r[o.parts[a].uri]?r[o.parts[a].uri]=e:t.report("Background image '"+o.parts[a].uri+"' was used multiple times, first declared at line "+r[o.parts[a].uri].line+", col "+r[o.parts[a].uri].col+".",e.line,e.col,n))})}}),CSSLint.addRule({id:"duplicate-properties",name:"Disallow duplicate properties",desc:"Duplicate properties must appear one after the other.",browsers:"All",init:function(e,t){function n(e){i={}}var r=this,i,o;e.addListener("startrule",n),e.addListener("startfontface",n),e.addListener("startpage",n),e.addListener("startpagemargin",n),e.addListener("startkeyframerule",n),e.addListener("property",function(e){var n=e.property,a=n.text.toLowerCase();!i[a]||o==a&&i[a]!=e.value.text||t.report("Duplicate property '"+e.property+"' found.",e.line,e.col,r),i[a]=e.value.text,o=a})}}),CSSLint.addRule({id:"empty-rules",name:"Disallow empty rules",desc:"Rules without any properties specified should be removed.",browsers:"All",init:function(e,t){var n=this,r=0;e.addListener("startrule",function(){r=0}),e.addListener("property",function(){r++}),e.addListener("endrule",function(e){var i=e.selectors;0===r&&t.report("Rule is empty.",i[0].line,i[0].col,n)})}}),CSSLint.addRule({id:"errors",name:"Parsing Errors",desc:"This rule looks for recoverable syntax errors.",browsers:"All",init:function(e,t){var n=this;e.addListener("error",function(e){t.error(e.message,e.line,e.col,n)})}}),CSSLint.addRule({id:"fallback-colors",name:"Require fallback colors",desc:"For older browsers that don't support RGBA, HSL, or HSLA, provide a fallback color.",
|
||
browsers:"IE6,IE7,IE8",init:function(e,t){function n(e){a={},i=null}var r=this,i,o={color:1,background:1,"border-color":1,"border-top-color":1,"border-right-color":1,"border-bottom-color":1,"border-left-color":1,border:1,"border-top":1,"border-right":1,"border-bottom":1,"border-left":1,"background-color":1},a;e.addListener("startrule",n),e.addListener("startfontface",n),e.addListener("startpage",n),e.addListener("startpagemargin",n),e.addListener("startkeyframerule",n),e.addListener("property",function(e){var n=e.property,a=n.text.toLowerCase(),s=e.value.parts,l=0,c="",u=s.length;if(o[a])for(;u>l;)"color"==s[l].type&&("alpha"in s[l]||"hue"in s[l]?(/([^\)]+)\(/.test(s[l])&&(c=RegExp.$1.toUpperCase()),i&&i.property.text.toLowerCase()==a&&"compat"==i.colorType||t.report("Fallback "+a+" (hex or RGB) should precede "+c+" "+a+".",e.line,e.col,r)):e.colorType="compat"),l++;i=e})}}),CSSLint.addRule({id:"floats",name:"Disallow too many floats",desc:"This rule tests if the float property is used too many times",browsers:"All",init:function(e,t){var n=this,r=0;e.addListener("property",function(e){"float"==e.property.text.toLowerCase()&&"none"!=e.value.text.toLowerCase()&&r++}),e.addListener("endstylesheet",function(){t.stat("floats",r),r>=10&&t.rollupWarn("Too many floats ("+r+"), you're probably using them for layout. Consider using a grid system instead.",n)})}}),CSSLint.addRule({id:"font-faces",name:"Don't use too many web fonts",desc:"Too many different web fonts in the same stylesheet.",browsers:"All",init:function(e,t){var n=this,r=0;e.addListener("startfontface",function(){r++}),e.addListener("endstylesheet",function(){r>5&&t.rollupWarn("Too many @font-face declarations ("+r+").",n)})}}),CSSLint.addRule({id:"font-sizes",name:"Disallow too many font sizes",desc:"Checks the number of font-size declarations.",browsers:"All",init:function(e,t){var n=this,r=0;e.addListener("property",function(e){"font-size"==e.property&&r++}),e.addListener("endstylesheet",function(){t.stat("font-sizes",r),r>=10&&t.rollupWarn("Too many font-size declarations ("+r+"), abstraction needed.",n)})}}),CSSLint.addRule({id:"gradients",name:"Require all gradient definitions",desc:"When using a vendor-prefixed gradient, make sure to use them all.",browsers:"All",init:function(e,t){var n=this,r;e.addListener("startrule",function(){r={moz:0,webkit:0,oldWebkit:0,o:0}}),e.addListener("property",function(e){/\-(moz|o|webkit)(?:\-(?:linear|radial))\-gradient/i.test(e.value)?r[RegExp.$1]=1:/\-webkit\-gradient/i.test(e.value)&&(r.oldWebkit=1)}),e.addListener("endrule",function(e){var i=[];r.moz||i.push("Firefox 3.6+"),r.webkit||i.push("Webkit (Safari 5+, Chrome)"),r.oldWebkit||i.push("Old Webkit (Safari 4+, Chrome)"),r.o||i.push("Opera 11.1+"),i.length&&i.length<4&&t.report("Missing vendor-prefixed CSS gradients for "+i.join(", ")+".",e.selectors[0].line,e.selectors[0].col,n)})}}),CSSLint.addRule({id:"ids",name:"Disallow IDs in selectors",desc:"Selectors should not contain IDs.",browsers:"All",init:function(e,t){var n=this;e.addListener("startrule",function(r){var i=r.selectors,o,a,s,l,c,u,d;for(c=0;c<i.length;c++){for(o=i[c],l=0,u=0;u<o.parts.length;u++)if(a=o.parts[u],a.type==e.SELECTOR_PART_TYPE)for(d=0;d<a.modifiers.length;d++)s=a.modifiers[d],"id"==s.type&&l++;1==l?t.report("Don't use IDs in selectors.",o.line,o.col,n):l>1&&t.report(l+" IDs in the selector, really?",o.line,o.col,n)}})}}),CSSLint.addRule({id:"import",name:"Disallow @import",desc:"Don't use @import, use <link> instead.",browsers:"All",init:function(e,t){var n=this;e.addListener("import",function(e){t.report("@import prevents parallel downloads, use <link> instead.",e.line,e.col,n)})}}),CSSLint.addRule({id:"important",name:"Disallow !important",desc:"Be careful when using !important declaration",browsers:"All",init:function(e,t){var n=this,r=0;e.addListener("property",function(e){e.important===!0&&(r++,t.report("Use of !important",e.line,e.col,n))}),e.addListener("endstylesheet",function(){t.stat("important",r),r>=10&&t.rollupWarn("Too many !important declarations ("+r+"), try to use less than 10 to avoid specificity issues.",n)})}}),CSSLint.addRule({id:"known-properties",name:"Require use of known properties",desc:"Properties should be known (listed in CSS3 specification) or be a vendor-prefixed property.",browsers:"All",init:function(e,t){var n=this;e.addListener("property",function(e){var r=e.property.text.toLowerCase();e.invalid&&t.report(e.invalid.message,e.line,e.col,n)})}}),CSSLint.addRule({id:"outline-none",name:"Disallow outline: none",desc:"Use of outline: none or outline: 0 should be limited to :focus rules.",browsers:"All",tags:["Accessibility"],init:function(e,t){function n(e){o=e.selectors?{line:e.line,col:e.col,selectors:e.selectors,propCount:0,outline:!1}:null}function r(e){o&&o.outline&&(-1==o.selectors.toString().toLowerCase().indexOf(":focus")?t.report("Outlines should only be modified using :focus.",o.line,o.col,i):1==o.propCount&&t.report("Outlines shouldn't be hidden unless other visual changes are made.",o.line,o.col,i))}var i=this,o;e.addListener("startrule",n),e.addListener("startfontface",n),e.addListener("startpage",n),e.addListener("startpagemargin",n),e.addListener("startkeyframerule",n),e.addListener("property",function(e){var t=e.property.text.toLowerCase(),n=e.value;o&&(o.propCount++,"outline"!=t||"none"!=n&&"0"!=n||(o.outline=!0))}),e.addListener("endrule",r),e.addListener("endfontface",r),e.addListener("endpage",r),e.addListener("endpagemargin",r),e.addListener("endkeyframerule",r)}}),CSSLint.addRule({id:"overqualified-elements",name:"Disallow overqualified elements",desc:"Don't use classes or IDs with elements (a.foo or a#foo).",browsers:"All",init:function(e,t){var n=this,r={};e.addListener("startrule",function(i){var o=i.selectors,a,s,l,c,u,d;for(c=0;c<o.length;c++)for(a=o[c],u=0;u<a.parts.length;u++)if(s=a.parts[u],s.type==e.SELECTOR_PART_TYPE)for(d=0;d<s.modifiers.length;d++)l=s.modifiers[d],s.elementName&&"id"==l.type?t.report("Element ("+s+") is overqualified, just use "+l+" without element name.",s.line,s.col,n):"class"==l.type&&(r[l]||(r[l]=[]),r[l].push({modifier:l,part:s}))}),e.addListener("endstylesheet",function(){var e;for(e in r)r.hasOwnProperty(e)&&1==r[e].length&&r[e][0].part.elementName&&t.report("Element ("+r[e][0].part+") is overqualified, just use "+r[e][0].modifier+" without element name.",r[e][0].part.line,r[e][0].part.col,n)})}}),CSSLint.addRule({id:"qualified-headings",name:"Disallow qualified headings",desc:"Headings should not be qualified (namespaced).",browsers:"All",init:function(e,t){var n=this;e.addListener("startrule",function(r){var i=r.selectors,o,a,s,l;for(s=0;s<i.length;s++)for(o=i[s],l=0;l<o.parts.length;l++)a=o.parts[l],a.type==e.SELECTOR_PART_TYPE&&a.elementName&&/h[1-6]/.test(a.elementName.toString())&&l>0&&t.report("Heading ("+a.elementName+") should not be qualified.",a.line,a.col,n)})}}),CSSLint.addRule({id:"regex-selectors",name:"Disallow selectors that look like regexs",desc:"Selectors that look like regular expressions are slow and should be avoided.",browsers:"All",init:function(e,t){var n=this;e.addListener("startrule",function(r){var i=r.selectors,o,a,s,l,c,u;for(l=0;l<i.length;l++)for(o=i[l],c=0;c<o.parts.length;c++)if(a=o.parts[c],a.type==e.SELECTOR_PART_TYPE)for(u=0;u<a.modifiers.length;u++)s=a.modifiers[u],"attribute"==s.type&&/([\~\|\^\$\*]=)/.test(s)&&t.report("Attribute selectors with "+RegExp.$1+" are slow!",s.line,s.col,n)})}}),CSSLint.addRule({id:"rules-count",name:"Rules Count",desc:"Track how many rules there are.",browsers:"All",init:function(e,t){var n=this,r=0;e.addListener("startrule",function(){r++}),e.addListener("endstylesheet",function(){t.stat("rule-count",r)})}}),CSSLint.addRule({id:"selector-max-approaching",name:"Warn when approaching the 4095 selector limit for IE",desc:"Will warn when selector count is >= 3800 selectors.",browsers:"IE",init:function(e,t){var n=this,r=0;e.addListener("startrule",function(e){r+=e.selectors.length}),e.addListener("endstylesheet",function(){r>=3800&&t.report("You have "+r+" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.",0,0,n)})}}),CSSLint.addRule({id:"selector-max",name:"Error when past the 4095 selector limit for IE",desc:"Will error when selector count is > 4095.",browsers:"IE",init:function(e,t){var n=this,r=0;e.addListener("startrule",function(e){r+=e.selectors.length}),e.addListener("endstylesheet",function(){r>4095&&t.report("You have "+r+" selectors. Internet Explorer supports a maximum of 4095 selectors per stylesheet. Consider refactoring.",0,0,n)})}}),CSSLint.addRule({id:"shorthand",name:"Require shorthand properties",desc:"Use shorthand properties where possible.",browsers:"All",init:function(e,t){function n(e){c={}}function r(e){var n,r,o,a;for(n in u)if(u.hasOwnProperty(n)){for(a=0,r=0,o=u[n].length;o>r;r++)a+=c[u[n][r]]?1:0;a==u[n].length&&t.report("The properties "+u[n].join(", ")+" can be replaced by "+n+".",e.line,e.col,i)}}var i=this,o,a,s,l={},c,u={margin:["margin-top","margin-bottom","margin-left","margin-right"],padding:["padding-top","padding-bottom","padding-left","padding-right"]};for(o in u)if(u.hasOwnProperty(o))for(a=0,s=u[o].length;s>a;a++)l[u[o][a]]=o;e.addListener("startrule",n),e.addListener("startfontface",n),e.addListener("property",function(e){var t=e.property.toString().toLowerCase(),n=e.value.parts[0].value;l[t]&&(c[t]=1)}),e.addListener("endrule",r),e.addListener("endfontface",r)}}),CSSLint.addRule({id:"star-property-hack",name:"Disallow properties with a star prefix",desc:"Checks for the star property hack (targets IE6/7)",browsers:"All",init:function(e,t){var n=this;e.addListener("property",function(e){var r=e.property;"*"==r.hack&&t.report("Property with star prefix found.",e.property.line,e.property.col,n)})}}),CSSLint.addRule({id:"text-indent",name:"Disallow negative text-indent",desc:"Checks for text indent less than -99px",browsers:"All",init:function(e,t){function n(e){o=!1,a="inherit"}function r(e){o&&"ltr"!=a&&t.report("Negative text-indent doesn't work well with RTL. If you use text-indent for image replacement explicitly set direction for that item to ltr.",o.line,o.col,i)}var i=this,o,a;e.addListener("startrule",n),e.addListener("startfontface",n),e.addListener("property",function(e){var t=e.property.toString().toLowerCase(),n=e.value;"text-indent"==t&&n.parts[0].value<-99?o=e.property:"direction"==t&&"ltr"==n&&(a="ltr")}),e.addListener("endrule",r),e.addListener("endfontface",r)}}),CSSLint.addRule({id:"underscore-property-hack",name:"Disallow properties with an underscore prefix",desc:"Checks for the underscore property hack (targets IE6)",browsers:"All",init:function(e,t){var n=this;e.addListener("property",function(e){var r=e.property;"_"==r.hack&&t.report("Property with underscore prefix found.",e.property.line,e.property.col,n)})}}),CSSLint.addRule({id:"unique-headings",name:"Headings should only be defined once",desc:"Headings should be defined only once.",browsers:"All",init:function(e,t){var n=this,r={h1:0,h2:0,h3:0,h4:0,h5:0,h6:0};e.addListener("startrule",function(e){var i=e.selectors,o,a,s,l,c;for(l=0;l<i.length;l++)if(o=i[l],a=o.parts[o.parts.length-1],a.elementName&&/(h[1-6])/i.test(a.elementName.toString())){for(c=0;c<a.modifiers.length;c++)if("pseudo"==a.modifiers[c].type){s=!0;break}s||(r[RegExp.$1]++,r[RegExp.$1]>1&&t.report("Heading ("+a.elementName+") has already been defined.",a.line,a.col,n))}}),e.addListener("endstylesheet",function(e){var i,o=[];for(i in r)r.hasOwnProperty(i)&&r[i]>1&&o.push(r[i]+" "+i+"s");o.length&&t.rollupWarn("You have "+o.join(", ")+" defined in this stylesheet.",n)})}}),CSSLint.addRule({id:"universal-selector",name:"Disallow universal selector",desc:"The universal selector (*) is known to be slow.",browsers:"All",init:function(e,t){var n=this;e.addListener("startrule",function(e){var r=e.selectors,i,o,a,s,l,c;for(s=0;s<r.length;s++)i=r[s],o=i.parts[i.parts.length-1],"*"==o.elementName&&t.report(n.desc,o.line,o.col,n)})}}),CSSLint.addRule({id:"unqualified-attributes",name:"Disallow unqualified attribute selectors",desc:"Unqualified attribute selectors are known to be slow.",browsers:"All",init:function(e,t){var n=this;e.addListener("startrule",function(r){var i=r.selectors,o,a,s,l,c,u;for(l=0;l<i.length;l++)if(o=i[l],a=o.parts[o.parts.length-1],a.type==e.SELECTOR_PART_TYPE)for(u=0;u<a.modifiers.length;u++)s=a.modifiers[u],"attribute"!=s.type||a.elementName&&"*"!=a.elementName||t.report(n.desc,a.line,a.col,n)})}}),CSSLint.addRule({id:"vendor-prefix",name:"Require standard property with vendor prefix",desc:"When using a vendor-prefixed property, make sure to include the standard one.",browsers:"All",init:function(e,t){function n(){o={},a=1}function r(e){var n,r,a,l,c,u,d=[];for(n in o)s[n]&&d.push({actual:n,needed:s[n]});for(r=0,a=d.length;a>r;r++)c=d[r].needed,u=d[r].actual,o[c]?o[c][0].pos<o[u][0].pos&&t.report("Standard property '"+c+"' should come after vendor-prefixed property '"+u+"'.",o[u][0].name.line,o[u][0].name.col,i):t.report("Missing standard property '"+c+"' to go along with '"+u+"'.",o[u][0].name.line,o[u][0].name.col,i)}var i=this,o,a,s={"-webkit-border-radius":"border-radius","-webkit-border-top-left-radius":"border-top-left-radius","-webkit-border-top-right-radius":"border-top-right-radius","-webkit-border-bottom-left-radius":"border-bottom-left-radius","-webkit-border-bottom-right-radius":"border-bottom-right-radius","-o-border-radius":"border-radius","-o-border-top-left-radius":"border-top-left-radius","-o-border-top-right-radius":"border-top-right-radius","-o-border-bottom-left-radius":"border-bottom-left-radius","-o-border-bottom-right-radius":"border-bottom-right-radius","-moz-border-radius":"border-radius","-moz-border-radius-topleft":"border-top-left-radius","-moz-border-radius-topright":"border-top-right-radius","-moz-border-radius-bottomleft":"border-bottom-left-radius","-moz-border-radius-bottomright":"border-bottom-right-radius","-moz-column-count":"column-count","-webkit-column-count":"column-count","-moz-column-gap":"column-gap","-webkit-column-gap":"column-gap","-moz-column-rule":"column-rule","-webkit-column-rule":"column-rule","-moz-column-rule-style":"column-rule-style","-webkit-column-rule-style":"column-rule-style","-moz-column-rule-color":"column-rule-color","-webkit-column-rule-color":"column-rule-color","-moz-column-rule-width":"column-rule-width","-webkit-column-rule-width":"column-rule-width","-moz-column-width":"column-width","-webkit-column-width":"column-width","-webkit-column-span":"column-span","-webkit-columns":"columns","-moz-box-shadow":"box-shadow","-webkit-box-shadow":"box-shadow","-moz-transform":"transform","-webkit-transform":"transform","-o-transform":"transform","-ms-transform":"transform","-moz-transform-origin":"transform-origin","-webkit-transform-origin":"transform-origin","-o-transform-origin":"transform-origin","-ms-transform-origin":"transform-origin","-moz-box-sizing":"box-sizing","-webkit-box-sizing":"box-sizing","-moz-user-select":"user-select","-khtml-user-select":"user-select","-webkit-user-select":"user-select"};e.addListener("startrule",n),e.addListener("startfontface",n),e.addListener("startpage",n),e.addListener("startpagemargin",n),e.addListener("startkeyframerule",n),e.addListener("property",function(e){var t=e.property.text.toLowerCase();o[t]||(o[t]=[]),o[t].push({name:e.property,value:e.value,pos:a++})}),e.addListener("endrule",r),e.addListener("endfontface",r),e.addListener("endpage",r),e.addListener("endpagemargin",r),e.addListener("endkeyframerule",r)}}),CSSLint.addRule({id:"zero-units",name:"Disallow units for 0 values",desc:"You don't need to specify units when a value is 0.",browsers:"All",init:function(e,t){var n=this;e.addListener("property",function(e){for(var r=e.value.parts,i=0,o=r.length;o>i;)!r[i].units&&"percentage"!=r[i].type||0!==r[i].value||"time"==r[i].type||t.report("Values of 0 shouldn't have units specified.",r[i].line,r[i].col,n),i++})}}),function(){var e=function(e){return e&&e.constructor===String?e.replace(/[\"&><]/g,function(e){switch(e){case'"':return""";case"&":return"&";case"<":return"<";case">":return">"}}):""};CSSLint.addFormatter({id:"checkstyle-xml",name:"Checkstyle XML format",startFormat:function(){return'<?xml version="1.0" encoding="utf-8"?><checkstyle>'},endFormat:function(){return"</checkstyle>"},readError:function(t,n){return'<file name="'+e(t)+'"><error line="0" column="0" severty="error" message="'+e(n)+'"></error></file>'},formatResults:function(t,n,r){var i=t.messages,o=[],a=function(e){return e&&"name"in e?"net.csslint."+e.name.replace(/\s/g,""):""};return i.length>0&&(o.push('<file name="'+n+'">'),CSSLint.Util.forEach(i,function(t,n){t.rollup||o.push('<error line="'+t.line+'" column="'+t.col+'" severity="'+t.type+'" message="'+e(t.message)+'" source="'+a(t.rule)+'"/>')}),o.push("</file>")),o.join("")}})}(),CSSLint.addFormatter({id:"compact",name:"Compact, 'porcelain' format",startFormat:function(){return""},endFormat:function(){return""},formatResults:function(e,t,n){var r=e.messages,i="";n=n||{};var o=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};return 0===r.length?n.quiet?"":t+": Lint Free!":(CSSLint.Util.forEach(r,function(e,n){i+=e.rollup?t+": "+o(e.type)+" - "+e.message+"\n":t+": line "+e.line+", col "+e.col+", "+o(e.type)+" - "+e.message+"\n"}),i)}}),CSSLint.addFormatter({id:"csslint-xml",name:"CSSLint XML format",startFormat:function(){return'<?xml version="1.0" encoding="utf-8"?><csslint>'},endFormat:function(){return"</csslint>"},formatResults:function(e,t,n){var r=e.messages,i=[],o=function(e){return e&&e.constructor===String?e.replace(/\"/g,"'").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""};return r.length>0&&(i.push('<file name="'+t+'">'),CSSLint.Util.forEach(r,function(e,t){i.push(e.rollup?'<issue severity="'+e.type+'" reason="'+o(e.message)+'" evidence="'+o(e.evidence)+'"/>':'<issue line="'+e.line+'" char="'+e.col+'" severity="'+e.type+'" reason="'+o(e.message)+'" evidence="'+o(e.evidence)+'"/>')}),i.push("</file>")),i.join("")}}),CSSLint.addFormatter({id:"junit-xml",name:"JUNIT XML format",startFormat:function(){return'<?xml version="1.0" encoding="utf-8"?><testsuites>'},endFormat:function(){return"</testsuites>"},formatResults:function(e,t,n){var r=e.messages,i=[],o={error:0,failure:0},a=function(e){return e&&"name"in e?"net.csslint."+e.name.replace(/\s/g,""):""},s=function(e){return e&&e.constructor===String?e.replace(/\"/g,"'").replace(/</g,"<").replace(/>/g,">"):""};return r.length>0&&(r.forEach(function(e,t){var n="warning"===e.type?"error":e.type;e.rollup||(i.push('<testcase time="0" name="'+a(e.rule)+'">'),i.push("<"+n+' message="'+s(e.message)+'"><![CDATA['+e.line+":"+e.col+":"+s(e.evidence)+"]]></"+n+">"),i.push("</testcase>"),o[n]+=1)}),i.unshift('<testsuite time="0" tests="'+r.length+'" skipped="0" errors="'+o.error+'" failures="'+o.failure+'" package="net.csslint" name="'+t+'">'),i.push("</testsuite>")),i.join("")}}),CSSLint.addFormatter({id:"lint-xml",name:"Lint XML format",startFormat:function(){return'<?xml version="1.0" encoding="utf-8"?><lint>'},endFormat:function(){return"</lint>"},formatResults:function(e,t,n){var r=e.messages,i=[],o=function(e){return e&&e.constructor===String?e.replace(/\"/g,"'").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"):""};return r.length>0&&(i.push('<file name="'+t+'">'),CSSLint.Util.forEach(r,function(e,t){i.push(e.rollup?'<issue severity="'+e.type+'" reason="'+o(e.message)+'" evidence="'+o(e.evidence)+'"/>':'<issue line="'+e.line+'" char="'+e.col+'" severity="'+e.type+'" reason="'+o(e.message)+'" evidence="'+o(e.evidence)+'"/>')}),i.push("</file>")),i.join("")}}),CSSLint.addFormatter({id:"text",name:"Plain Text",startFormat:function(){return""},endFormat:function(){return""},formatResults:function(e,t,n){var r=e.messages,i="";if(n=n||{},0===r.length)return n.quiet?"":"\n\ncsslint: No errors in "+t+".";i="\n\ncsslint: There are "+r.length+" problems in "+t+".";var o=t.lastIndexOf("/"),a=t;return-1===o&&(o=t.lastIndexOf("\\")),o>-1&&(a=t.substring(o+1)),CSSLint.Util.forEach(r,function(e,t){i=i+"\n\n"+a,e.rollup?(i+="\n"+(t+1)+": "+e.type,i+="\n"+e.message):(i+="\n"+(t+1)+": "+e.type+" at line "+e.line+", col "+e.col,i+="\n"+e.message,i+="\n"+e.evidence)}),i}}),CSSLint}()}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.registerHelper("lint","yaml",function(t){var n=[];try{jsyaml.load(t)}catch(r){var i=r.mark;n.push({from:e.Pos(i.line,i.column),to:e.Pos(i.line,i.column),message:r.message})}return n})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(t,n){function r(t){return i.parentNode?(i.style.top=Math.max(0,t.clientY-i.offsetHeight-5)+"px",void(i.style.left=t.clientX+5+"px")):e.off(document,"mousemove",r)}var i=document.createElement("div");return i.className="CodeMirror-lint-tooltip",i.appendChild(n.cloneNode(!0)),document.body.appendChild(i),e.on(document,"mousemove",r),r(t),null!=i.style.opacity&&(i.style.opacity=1),i}function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(e){e.parentNode&&(null==e.style.opacity&&n(e),e.style.opacity=0,setTimeout(function(){n(e)},600))}function i(n,i,o){function a(){e.off(o,"mouseout",a),s&&(r(s),s=null)}var s=t(n,i),l=setInterval(function(){if(s)for(var e=o;;e=e.parentNode){if(e==document.body)return;if(!e){a();break}}return s?void 0:clearInterval(l)},400);e.on(o,"mouseout",a)}function o(e,t,n){this.marked=[],this.options=t,this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){g(e,t)}}function a(t,n){if(n instanceof Function)return{getAnnotations:n};if(n&&n!==!0||(n={}),n.getAnnotations||(n.getAnnotations=t.getHelper(e.Pos(0,0),"lint")),!n.getAnnotations)throw new Error("Required option 'getAnnotations' missing (lint addon)");return n}function s(e){var t=e.state.lint;t.hasGutter&&e.clearGutter(v);for(var n=0;n<t.marked.length;++n)t.marked[n].clear();t.marked.length=0}function l(t,n,r,o){var a=document.createElement("div"),s=a;return a.className="CodeMirror-lint-marker-"+n,r&&(s=a.appendChild(document.createElement("div")),s.className="CodeMirror-lint-marker-multiple"),0!=o&&e.on(s,"mouseover",function(e){i(e,t,s)}),a}function c(e,t){return"error"==e?e:t}function u(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=r.from.line;(t[i]||(t[i]=[])).push(r)}return t}function d(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message-"+t,n.appendChild(document.createTextNode(e.message)),n}function f(e){var t=e.state.lint,n=t.options,r=n.options||n;n.async?n.getAnnotations(e.getValue(),p,r,e):p(e,n.getAnnotations(e.getValue(),r,e))}function p(e,t){s(e);for(var n=e.state.lint,r=n.options,i=u(t),o=0;o<i.length;++o){var a=i[o];if(a){for(var f=null,p=n.hasGutter&&document.createDocumentFragment(),h=0;h<a.length;++h){var m=a[h],g=m.severity;g||(g="error"),f=c(f,g),r.formatAnnotation&&(m=r.formatAnnotation(m)),n.hasGutter&&p.appendChild(d(m)),m.to&&n.marked.push(e.markText(m.from,m.to,{className:"CodeMirror-lint-mark-"+g,__annotation:m}))}n.hasGutter&&e.setGutterMarker(o,v,l(p,f,a.length>1,n.options.tooltips))}}r.onUpdateLinting&&r.onUpdateLinting(t,i,e)}function h(e){var t=e.state.lint;clearTimeout(t.timeout),t.timeout=setTimeout(function(){f(e)},t.options.delay||500)}function m(e,t){var n=t.target||t.srcElement;i(t,d(e),n)}function g(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className))for(var r=n.getBoundingClientRect(),i=(r.left+r.right)/2,o=(r.top+r.bottom)/2,a=e.findMarksAt(e.coordsChar({left:i,top:o},"client")),s=0;s<a.length;++s){var l=a[s].__annotation;if(l)return m(l,t)}}var v="CodeMirror-lint-markers";e.defineOption("lint",!1,function(t,n,r){if(r&&r!=e.Init&&(s(t),t.off("change",h),e.off(t.getWrapperElement(),"mouseover",t.state.lint.onMouseOver),delete t.state.lint),n){for(var i=t.getOption("gutters"),l=!1,c=0;c<i.length;++c)i[c]==v&&(l=!0);var u=t.state.lint=new o(t,a(t,n),l);t.on("change",h),0!=u.options.tooltips&&e.on(t.getWrapperElement(),"mouseover",u.onMouseOver),f(t)}})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.registerHelper("lint","json",function(t){var n=[];jsonlint.parseError=function(t,r){var i=r.loc;n.push({from:e.Pos(i.first_line-1,i.first_column),to:e.Pos(i.last_line-1,i.last_column),message:t})};try{jsonlint.parse(t)}catch(r){}return n})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){if(!window.JSHINT)return[];JSHINT(e,t);var n=JSHINT.data().errors,r=[];return n&&o(n,r),r}function n(e){return r(e,s,"warning",!0),r(e,l,"error"),i(e)?null:e}function r(e,t,n,r){var i,o,a,s,l;i=e.description;for(var c=0;c<t.length;c++)o=t[c],a="string"==typeof o?o:o[0],s="string"==typeof o?null:o[1],l=-1!==i.indexOf(a),(r||l)&&(e.severity=n),l&&s&&(e.description=s)}function i(e){for(var t=e.description,n=0;n<a.length;n++)if(-1!==t.indexOf(a[n]))return!0;return!1}function o(t,r){for(var i=0;i<t.length;i++){var o=t[i];if(o){var a,s;if(a=[],o.evidence){var l=a[o.line];if(!l){var c=o.evidence;l=[],Array.prototype.forEach.call(c,function(e,t){" "===e&&l.push(t+1)}),a[o.line]=l}if(l.length>0){var u=o.character;l.forEach(function(e){u>e&&(u-=1)}),o.character=u}}var d=o.character-1,f=d+1;o.evidence&&(s=o.evidence.substring(d).search(/.\b/),s>-1&&(f+=s)),o.description=o.reason,o.start=o.character,o.end=f,o=n(o),o&&r.push({message:o.description,severity:o.severity,from:e.Pos(o.line-1,d),to:e.Pos(o.line-1,f)})}}}var a=["Dangerous comment"],s=[["Expected '{'","Statement body should be inside '{ }' braces."]],l=["Missing semicolon","Extra comma","Missing property name","Unmatched "," and instead saw"," is not defined","Unclosed string","Stopping, unable to continue"];e.registerHelper("lint","javascript",t)})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t=0;t<e.state.activeLines.length;t++)e.removeLineClass(e.state.activeLines[t],"wrap",o),e.removeLineClass(e.state.activeLines[t],"background",a)}function n(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function r(e,r){for(var i=[],s=0;s<r.length;s++){var l=r[s];if(l.empty()){var c=e.getLineHandleVisualStart(l.head.line);i[i.length-1]!=c&&i.push(c)}}n(e.state.activeLines,i)||e.operation(function(){t(e);for(var n=0;n<i.length;n++)e.addLineClass(i[n],"wrap",o),e.addLineClass(i[n],"background",a);e.state.activeLines=i})}function i(e,t){r(e,t.ranges)}var o="CodeMirror-activeline",a="CodeMirror-activeline-background";e.defineOption("styleActiveLine",!1,function(n,o,a){var s=a&&a!=e.Init;o&&!s?(n.state.activeLines=[],r(n,n.listSelections()),n.on("beforeSelectionChange",i)):!o&&s&&(n.off("beforeSelectionChange",i),t(n),delete n.state.activeLines)})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("./searchcursor"),require("../dialog/dialog")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./searchcursor","../dialog/dialog"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);return n&&n.index==t.pos?(t.pos+=n[0].length,"searching"):void(n?t.pos=n.index:t.skipToEnd())}}}function n(){this.posFrom=this.posTo=this.query=null,this.overlay=null}function r(e){return e.state.search||(e.state.search=new n)}function i(e){return"string"==typeof e&&e==e.toLowerCase()}function o(e,t,n){return e.getSearchCursor(t,n,i(t))}function a(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r}):i(prompt(n,r))}function s(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}function l(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);return t?(e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i"),e.test("")&&(e=/x^/)):""==e&&(e=/x^/),e}function c(e,n){var o=r(e);return o.query?u(e,n):void a(e,p,"Search for:",e.getSelection(),function(r){e.operation(function(){r&&!o.query&&(o.query=l(r),e.removeOverlay(o.overlay,i(o.query)),o.overlay=t(o.query,i(o.query)),e.addOverlay(o.overlay),o.posFrom=o.posTo=e.getCursor(),u(e,n))})})}function u(t,n){t.operation(function(){var i=r(t),a=o(t,i.query,n?i.posFrom:i.posTo);(a.find(n)||(a=o(t,i.query,n?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0)),a.find(n)))&&(t.setSelection(a.from(),a.to()),t.scrollIntoView({from:a.from(),to:a.to()}),i.posFrom=a.from(),i.posTo=a.to())})}function d(e){e.operation(function(){var t=r(e);t.query&&(t.query=null,e.removeOverlay(t.overlay))})}function f(e,t){e.getOption("readOnly")||a(e,h,"Replace:",e.getSelection(),function(n){n&&(n=l(n),a(e,m,"Replace with:","",function(r){if(t)e.operation(function(){for(var t=o(e,n);t.findNext();)if("string"!=typeof n){var i=e.getRange(t.from(),t.to()).match(n);t.replace(r.replace(/\$(\d)/g,function(e,t){return i[t]}))}else t.replace(r)});else{d(e);var i=o(e,n,e.getCursor()),a=function(){var t=i.from(),r;!(r=i.findNext())&&(i=o(e,n),!(r=i.findNext())||t&&i.from().line==t.line&&i.from().ch==t.ch)||(e.setSelection(i.from(),i.to()),e.scrollIntoView({from:i.from(),to:i.to()}),s(e,g,"Replace?",[function(){l(r)},a]))},l=function(e){i.replace("string"==typeof n?r:r.replace(/\$(\d)/g,function(t,n){return e[n]})),a()};a()}}))})}var p='Search: <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',h='Replace: <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">(Use /re/ syntax for regexp search)</span>',m='With: <input type="text" style="width: 10em" class="CodeMirror-search-field"/>',g="Replace? <button>Yes</button> <button>No</button> <button>Stop</button>";e.commands.find=function(e){d(e),c(e)},e.commands.findNext=c,e.commands.findPrev=function(e){c(e,!0)},e.commands.clearSearch=d,e.commands.replace=f,e.commands.replaceAll=function(e){f(e,!0)}})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,i,o){if(this.atOccurrence=!1,this.doc=e,null==o&&"string"==typeof t&&(o=!1),i=i?e.clipPos(i):r(0,0),this.pos={from:i,to:i},"string"!=typeof t)t.global||(t=new RegExp(t.source,t.ignoreCase?"ig":"g")),this.matches=function(n,i){if(n){t.lastIndex=0;for(var o=e.getLine(i.line).slice(0,i.ch),a=0,s,l;;){t.lastIndex=a;var c=t.exec(o);if(!c)break;if(s=c,l=s.index,a=s.index+(s[0].length||1),a==o.length)break}var u=s&&s[0].length||0;u||(0==l&&0==o.length?s=void 0:l!=e.getLine(i.line).length&&u++)}else{t.lastIndex=i.ch;var o=e.getLine(i.line),s=t.exec(o),u=s&&s[0].length||0,l=s&&s.index;l+u==o.length||u||(u=1)}return s&&u?{from:r(i.line,l),to:r(i.line,l+u),match:s}:void 0};else{var a=t;
|
||
|
||
o&&(t=t.toLowerCase());var s=o?function(e){return e.toLowerCase()}:function(e){return e},l=t.split("\n");if(1==l.length)t.length?this.matches=function(i,o){if(i){var l=e.getLine(o.line).slice(0,o.ch),c=s(l),u=c.lastIndexOf(t);if(u>-1)return u=n(l,c,u),{from:r(o.line,u),to:r(o.line,u+a.length)}}else{var l=e.getLine(o.line).slice(o.ch),c=s(l),u=c.indexOf(t);if(u>-1)return u=n(l,c,u)+o.ch,{from:r(o.line,u),to:r(o.line,u+a.length)}}}:this.matches=function(){};else{var c=a.split("\n");this.matches=function(t,n){var i=l.length-1;if(t){if(n.line-(l.length-1)<e.firstLine())return;if(s(e.getLine(n.line).slice(0,c[i].length))!=l[l.length-1])return;for(var o=r(n.line,c[i].length),a=n.line-1,u=i-1;u>=1;--u,--a)if(l[u]!=s(e.getLine(a)))return;var d=e.getLine(a),f=d.length-c[0].length;if(s(d.slice(f))!=l[0])return;return{from:r(a,f),to:o}}if(!(n.line+(l.length-1)>e.lastLine())){var d=e.getLine(n.line),f=d.length-c[0].length;if(s(d.slice(f))==l[0]){for(var p=r(n.line,f),a=n.line+1,u=1;i>u;++u,++a)if(l[u]!=s(e.getLine(a)))return;if(s(e.getLine(a).slice(0,c[i].length))==l[i])return{from:p,to:r(a,c[i].length)}}}}}}}function n(e,t,n){if(e.length==t.length)return n;for(var r=Math.min(n,e.length);;){var i=e.slice(0,r).toLowerCase().length;if(n>i)++r;else{if(!(i>n))return r;--r}}}var r=e.Pos;t.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){function t(e){var t=r(e,0);return n.pos={from:t,to:t},n.atOccurrence=!1,!1}for(var n=this,i=this.doc.clipPos(e?this.pos.from:this.pos.to);;){if(this.pos=this.matches(e,i))return this.atOccurrence=!0,this.pos.match||!0;if(e){if(!i.line)return t(0);i=r(i.line-1,this.doc.getLine(i.line-1).length)}else{var o=this.doc.lineCount();if(i.line==o-1)return t(o);i=r(i.line+1,0)}}},from:function(){return this.atOccurrence?this.pos.from:void 0},to:function(){return this.atOccurrence?this.pos.to:void 0},replace:function(t){if(this.atOccurrence){var n=e.splitLines(t);this.doc.replaceRange(n,this.pos.from,this.pos.to),this.pos.to=r(this.pos.from.line+n.length-1,n[n.length-1].length+(1==n.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,n,r){return new t(this.doc,e,n,r)}),e.defineDocExtension("getSearchCursor",function(e,n,r){return new t(this,e,n,r)}),e.defineExtension("selectMatches",function(t,n){for(var r=[],i,o=this.getSearchCursor(t,this.getCursor("from"),n);(i=o.findNext())&&!(e.cmpPos(o.to(),this.getCursor("to"))>0);)r.push({anchor:o.from(),head:o.to()});r.length&&this.setSelections(r,0)})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e,t,n){var r=e.getWrapperElement(),i;return i=r.appendChild(document.createElement("div")),n?i.className="CodeMirror-dialog CodeMirror-dialog-bottom":i.className="CodeMirror-dialog CodeMirror-dialog-top","string"==typeof t?i.innerHTML=t:i.appendChild(t),i}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",function(r,i,o){function a(e){if("string"==typeof e)u.value=e;else{if(l)return;l=!0,s.parentNode.removeChild(s),c.focus(),o.onClose&&o.onClose(s)}}o||(o={}),n(this,null);var s=t(this,r,o.bottom),l=!1,c=this,u=s.getElementsByTagName("input")[0],d;return u?(o.value&&(u.value=o.value,u.select()),o.onInput&&e.on(u,"input",function(e){o.onInput(e,u.value,a)}),o.onKeyUp&&e.on(u,"keyup",function(e){o.onKeyUp(e,u.value,a)}),e.on(u,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,u.value,a)||((27==t.keyCode||o.closeOnEnter!==!1&&13==t.keyCode)&&(u.blur(),e.e_stop(t),a()),13==t.keyCode&&i(u.value))}),o.closeOnBlur!==!1&&e.on(u,"blur",a),u.focus()):(d=s.getElementsByTagName("button")[0])&&(e.on(d,"click",function(){a(),c.focus()}),o.closeOnBlur!==!1&&e.on(d,"blur",a),d.focus()),a}),e.defineExtension("openConfirm",function(r,i,o){function a(){c||(c=!0,s.parentNode.removeChild(s),u.focus())}n(this,null);var s=t(this,r,o&&o.bottom),l=s.getElementsByTagName("button"),c=!1,u=this,d=1;l[0].focus();for(var f=0;f<l.length;++f){var p=l[f];!function(t){e.on(p,"click",function(n){e.e_preventDefault(n),a(),t&&t(u)})}(i[f]),e.on(p,"blur",function(){--d,setTimeout(function(){0>=d&&a()},200)}),e.on(p,"focus",function(){++d})}}),e.defineExtension("openNotification",function(r,i){function o(){s||(s=!0,clearTimeout(l),a.parentNode.removeChild(a))}n(this,o);var a=t(this,r,i&&i.bottom),s=!1,l,c=i&&"undefined"!=typeof i.duration?i.duration:5e3;return e.on(a,"click",function(t){e.e_preventDefault(t),o()}),c&&(l=setTimeout(o,c)),o})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.overlayMode=function(t,n,r){return{startState:function(){return{base:e.startState(t),overlay:e.startState(n),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(r){return{base:e.copyState(t,r.base),overlay:e.copyState(n,r.overlay),basePos:r.basePos,baseCur:null,overlayPos:r.overlayPos,overlayCur:null}},token:function(e,i){return(e!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<e.start)&&(i.streamSeen=e,i.basePos=i.overlayPos=e.start),e.start==i.basePos&&(i.baseCur=t.token(e,i.base),i.basePos=e.pos),e.start==i.overlayPos&&(e.pos=e.start,i.overlayCur=n.token(e,i.overlay),i.overlayPos=e.pos),e.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||r&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:t.indent&&function(e,n){return t.indent(e.base,n)},electricChars:t.electricChars,innerMode:function(e){return{state:e.base,mode:t}},blankLine:function(e){t.blankLine&&t.blankLine(e.base),n.blankLine&&n.blankLine(e.overlay)}}}})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var t=/^(\s*)([> ]+|[*+-]|(\d+)\.)(\s+)/,n=/^(\s*)([> ]+|[*+-]|(\d+)\.)(\s*)$/,r="*+-";e.commands.newlineAndIndentContinueMarkdownList=function(i){if(i.getOption("disableInput"))return e.Pass;for(var o=i.listSelections(),a=[],s=0;s<o.length;s++){var l=o[s].head,c,u=i.getStateAfter(l.line),d=u.list!==!1,f=u.quote!==!1;if(!o[s].empty()||!d&&!f||!(c=i.getLine(l.line).match(t)))return void i.execCommand("newlineAndIndent");if(i.getLine(l.line).match(n))i.replaceRange("",{line:l.line,ch:0},{line:l.line,ch:l.ch+1}),a[s]="\n";else{var p=c[1],h=c[4],m=r.indexOf(c[2])>=0||c[2].indexOf(">")>=0?c[2]:parseInt(c[3],10)+1+".";a[s]="\n"+p+m+h}}i.replaceSelections(a)}})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("apl",function(){var e={".":"innerProduct","\\":"scan","/":"reduce","⌿":"reduce1Axis","⍀":"scan1Axis","¨":"each","⍣":"power"},t={"+":["conjugate","add"],"−":["negate","subtract"],"×":["signOf","multiply"],"÷":["reciprocal","divide"],"⌈":["ceiling","greaterOf"],"⌊":["floor","lesserOf"],"∣":["absolute","residue"],"⍳":["indexGenerate","indexOf"],"?":["roll","deal"],"⋆":["exponentiate","toThePowerOf"],"⍟":["naturalLog","logToTheBase"],"○":["piTimes","circularFuncs"],"!":["factorial","binomial"],"⌹":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"≤":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"∪":["unique","union"],"∩":[null,"intersection"],"∼":["not","without"],"∨":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"⍴":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"⊤":["encode",null],"⊥":["decode",null],"⍕":["format","formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]},n=/[\.\/⌿⍀¨⍣]/,r=/⍬/,i=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/,o=/←/,a=/[⍝#].*$/,s=function(e){var t;return t=!1,function(n){return t=n,n===e?"\\"===t:!0}};return{startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(l,c){var u,d,f;return l.eatSpace()?null:(u=l.next(),'"'===u||"'"===u?(l.eatWhile(s(u)),l.next(),c.prev=!0,"string"):/[\[{\(]/.test(u)?(c.prev=!1,null):/[\]}\)]/.test(u)?(c.prev=!0,null):r.test(u)?(c.prev=!1,"niladic"):/[¯\d]/.test(u)?(c.func?(c.func=!1,c.prev=!1):c.prev=!0,l.eatWhile(/[\w\.]/),"number"):n.test(u)?"operator apl-"+e[u]:o.test(u)?"apl-arrow":i.test(u)?(d="apl-",null!=t[u]&&(d+=c.prev?t[u][1]:t[u][0]),c.func=!0,c.prev=!1,"function "+d):a.test(u)?(l.skipToEnd(),"comment"):"∘"===u&&"."===l.peek()?(l.next(),"function jot-dot"):(l.eatWhile(/[\w\$_]/),f=l.current(),c.prev=!0,"keyword"))}}}),e.defineMIME("text/apl","apl")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("asterisk",function(){function e(e,r){var i="",o="";if(o=e.next(),";"==o)return e.skipToEnd(),"comment";if("["==o)return e.skipTo("]"),e.eat("]"),"header";if('"'==o)return e.skipTo('"'),"string";if("'"==o)return e.skipTo("'"),"string-2";if("#"==o&&(e.eatWhile(/\w/),i=e.current(),-1!==n.indexOf(i)))return e.skipToEnd(),"strong";if("$"==o){var a=e.peek();if("{"==a)return e.skipTo("}"),e.eat("}"),"variable-3"}if(e.eatWhile(/\w/),i=e.current(),-1!==t.indexOf(i)){switch(r.extenStart=!0,i){case"same":r.extenSame=!0;break;case"include":case"switch":case"ignorepat":r.extenInclude=!0}return"atom"}}var t=["exten","same","include","ignorepat","switch"],n=["#include","#exec"],r=["addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi","alarmreceiver","amd","answer","authenticate","background","backgrounddetect","bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent","changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge","congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge","dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility","datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa","dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy","externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif","goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete","ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus","jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme","meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete","minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode","mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish","originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce","parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones","privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten","readfile","receivefax","receivefax","receivefax","record","removequeuemember","resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun","saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax","sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags","setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel","slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground","speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound","speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor","stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec","trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate","vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring","waitforsilence","waitmusiconhold","waituntil","while","zapateller"];return{startState:function(){return{extenStart:!1,extenSame:!1,extenInclude:!1,extenExten:!1,extenPriority:!1,extenApplication:!1}},token:function(t,n){var i="",o="";return t.eatSpace()?null:n.extenStart?(t.eatWhile(/[^\s]/),i=t.current(),/^=>?$/.test(i)?(n.extenExten=!0,n.extenStart=!1,"strong"):(n.extenStart=!1,t.skipToEnd(),"error")):n.extenExten?(n.extenExten=!1,n.extenPriority=!0,t.eatWhile(/[^,]/),n.extenInclude&&(t.skipToEnd(),n.extenPriority=!1,n.extenInclude=!1),n.extenSame&&(n.extenPriority=!1,n.extenSame=!1,n.extenApplication=!0),"tag"):n.extenPriority?(n.extenPriority=!1,n.extenApplication=!0,o=t.next(),n.extenSame?null:(t.eatWhile(/[^,]/),"number")):n.extenApplication?(t.eatWhile(/,/),i=t.current(),","===i?null:(t.eatWhile(/\w/),i=t.current().toLowerCase(),n.extenApplication=!1,-1!==r.indexOf(i)?"def strong":null)):e(t,n)}}}),e.defineMIME("text/x-asterisk","asterisk")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function n(e,t){if(!t.startOfLine)return!1;for(;;){if(!e.skipTo("\\")){e.skipToEnd(),t.tokenize=null;break}if(e.next(),e.eol()){t.tokenize=n;break}}return"meta"}function r(e,t){if(e.backUp(1),e.match(/(R|u8R|uR|UR|LR)/)){var n=e.match(/"([^\s\\()]{0,16})\(/);return n?(t.cpp11RawStringDelim=n[1],t.tokenize=o,o(e,t)):!1}return e.match(/(u8|u|U|L)/)?e.match(/["']/,!1)?"string":!1:(e.next(),!1)}function i(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function o(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),r=e.match(new RegExp(".*?\\)"+n+'"'));return r?t.tokenize=null:e.skipToEnd(),"string"}function a(t,n){function r(e){if(e)for(var t in e)e.hasOwnProperty(t)&&i.push(t)}"string"==typeof t&&(t=[t]);var i=[];r(n.keywords),r(n.builtin),r(n.atoms),i.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],i));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}function s(e,t){for(var n=!1;!e.eol();){if(!n&&e.match('"""')){t.tokenize=null;break}n="\\"!=e.next()&&!n}return"string"}e.defineMode("clike",function(t,n){function r(e,t){var n=e.next();if(g[n]){var r=g[n](e,t);if(r!==!1)return r}if('"'==n||"'"==n)return t.tokenize=i(n),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(n))return k=n,null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),"number";if("/"==n){if(e.eat("*"))return t.tokenize=o,o(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(y.test(n))return e.eatWhile(y),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var a=e.current();return f.propertyIsEnumerable(a)?(h.propertyIsEnumerable(a)&&(k="newstatement"),"keyword"):p.propertyIsEnumerable(a)?(h.propertyIsEnumerable(a)&&(k="newstatement"),"builtin"):m.propertyIsEnumerable(a)?"atom":"variable"}function i(e){return function(t,n){for(var r=!1,i,o=!1;null!=(i=t.next());){if(i==e&&!r){o=!0;break}r=!r&&"\\"==i}return(o||!r&&!v)&&(n.tokenize=null),"string"}}function o(e,t){for(var n=!1,r;r=e.next();){if("/"==r&&n){t.tokenize=null;break}n="*"==r}return"comment"}function a(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function s(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new a(r,t,n,null,e.context)}function l(e){var t=e.context.type;return(")"==t||"]"==t||"}"==t)&&(e.indented=e.context.indented),e.context=e.context.prev}var c=t.indentUnit,u=n.statementIndentUnit||c,d=n.dontAlignCalls,f=n.keywords||{},p=n.builtin||{},h=n.blockKeywords||{},m=n.atoms||{},g=n.hooks||{},v=n.multiLineStrings,b=n.indentStatements!==!1,y=/[+\-*&%=<>!?|\/]/,k;return{startState:function(e){return{tokenize:null,context:new a((e||0)-c,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;k=null;var i=(t.tokenize||r)(e,t);if("comment"==i||"meta"==i)return i;if(null==n.align&&(n.align=!0),";"!=k&&":"!=k&&","!=k||"statement"!=n.type)if("{"==k)s(t,e.column(),"}");else if("["==k)s(t,e.column(),"]");else if("("==k)s(t,e.column(),")");else if("}"==k){for(;"statement"==n.type;)n=l(t);for("}"==n.type&&(n=l(t));"statement"==n.type;)n=l(t)}else k==n.type?l(t):b&&(("}"==n.type||"top"==n.type)&&";"!=k||"statement"==n.type&&"newstatement"==k)&&s(t,e.column(),"statement");else l(t);return t.startOfLine=!1,i},indent:function(t,n){if(t.tokenize!=r&&null!=t.tokenize)return e.Pass;var i=t.context,o=n&&n.charAt(0);"statement"==i.type&&"}"==o&&(i=i.prev);var a=o==i.type;return"statement"==i.type?i.indented+("{"==o?0:u):!i.align||d&&")"==i.type?")"!=i.type||a?i.indented+(a?0:c):i.indented+u:i.column+(a?0:1)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});var l="auto if break int case long char register continue return default short do sizeof double static else struct entry switch extern typedef float union for unsigned goto while enum void const signed volatile";a(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:t(l),blockKeywords:t("case do else for if switch while struct"),atoms:t("null"),hooks:{"#":n},modeProps:{fold:["brace","include"]}}),a(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:t(l+" asm dynamic_cast namespace reinterpret_cast try bool explicit new static_cast typeid catch operator template typename class friend private this using const_cast inline public throw virtual delete mutable protected wchar_t alignas alignof constexpr decltype nullptr noexcept thread_local final static_assert override"),blockKeywords:t("catch class do else finally for if struct switch try while"),atoms:t("true false null"),hooks:{"#":n,u:r,U:r,L:r,R:r},modeProps:{fold:["brace","include"]}}),a("text/x-java",{name:"clike",keywords:t("abstract assert boolean break byte case catch char class const continue default do double else enum extends final finally float for goto if implements import instanceof int interface long native new package private protected public return short static strictfp super switch synchronized this throw throws transient try void volatile while"),blockKeywords:t("catch class do else finally for if switch try while"),atoms:t("true false null"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"}},modeProps:{fold:["brace","import"]}}),a("text/x-csharp",{name:"clike",keywords:t("abstract as base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),blockKeywords:t("catch class do else finally for foreach if struct switch try while"),builtin:t("Boolean Byte Char DateTime DateTimeOffset Decimal Double Guid Int16 Int32 Int64 Object SByte Single String TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),atoms:t("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=i,i(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}}),a("text/x-scala",{name:"clike",keywords:t("abstract case catch class def do else extends false final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try trye type val var while with yield _ : = => <- <: <% >: # @ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector :: #:: Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:t("catch class do else finally for forSome if match switch try while"),atoms:t("true false null"),indentStatements:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return e.match('""')?(t.tokenize=s,t.tokenize(e,t)):!1}}}),a(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:t("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4 sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadowconst attribute uniform varying break continue discard return for while do if else struct in out inout"),blockKeywords:t("for while do if else struct"),builtin:t("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smootstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:t("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragColor gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),hooks:{"#":n},modeProps:{fold:["brace","include"]}}),a("text/x-nesc",{name:"clike",keywords:t(l+"as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),blockKeywords:t("case do else for if switch while struct"),atoms:t("null"),hooks:{"#":n},modeProps:{fold:["brace","include"]}}),a("text/x-objectivec",{name:"clike",keywords:t(l+"inline restrict _Bool _Complex _Imaginery BOOL Class bycopy byref id IMP in inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),atoms:t("YES NO NULL NILL ON OFF"),hooks:{"@":function(e){return e.eatWhile(/[\w\$]/),"keyword"},"#":n},modeProps:{fold:"brace"}})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("clojure",function(e){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function n(e,t,n){this.indent=e,this.type=t,this.prev=n}function r(e,t,r){e.indentStack=new n(t,r,e.indentStack)}function i(e){e.indentStack=e.indentStack.prev}function o(e,t){return"0"===e&&t.eat(/x/i)?(t.eatWhile(_.hex),!0):("+"!=e&&"-"!=e||!_.digit.test(t.peek())||(t.eat(_.sign),e=t.next()),_.digit.test(e)?(t.eat(e),t.eatWhile(_.digit),"."==t.peek()&&(t.eat("."),t.eatWhile(_.digit)),t.eat(_.exponent)&&(t.eat(_.sign),t.eatWhile(_.digit)),!0):!1)}function a(e){var t=e.next();t&&t.match(/[a-z]/)&&e.match(/[a-z]+/,!0)||"u"===t&&e.match(/[0-9a-z]{4}/i,!0)}var s="builtin",l="comment",c="string",u="string-2",d="atom",f="number",p="bracket",h="keyword",m="variable",g=e.indentUnit||2,v=e.indentUnit||2,b=t("true false nil"),y=t("defn defn- def def- defonce defmulti defmethod defmacro defstruct deftype defprotocol defrecord defproject deftest slice defalias defhinted defmacro- defn-memo defnk defnk defonce- defunbound defunbound- defvar defvar- let letfn do case cond condp for loop recur when when-not when-let when-first if if-let if-not . .. -> ->> doto and or dosync doseq dotimes dorun doall load import unimport ns in-ns refer try catch finally throw with-open with-local-vars binding gen-class gen-and-load-class gen-and-save-class handler-case handle"),k=t("* *' *1 *2 *3 *agent* *allow-unresolved-vars* *assert* *clojure-version* *command-line-args* *compile-files* *compile-path* *compiler-options* *data-readers* *e *err* *file* *flush-on-newline* *fn-loader* *in* *math-context* *ns* *out* *print-dup* *print-length* *print-level* *print-meta* *print-readably* *read-eval* *source-path* *unchecked-math* *use-context-classloader* *verbose-defrecords* *warn-on-reflection* + +' - -' -> ->> ->ArrayChunk ->Vec ->VecNode ->VecSeq -cache-protocol-fn -reset-methods .. / < <= = == > >= EMPTY-NODE accessor aclone add-classpath add-watch agent agent-error agent-errors aget alength alias all-ns alter alter-meta! alter-var-root amap ancestors and apply areduce array-map aset aset-boolean aset-byte aset-char aset-double aset-float aset-int aset-long aset-short assert assoc assoc! assoc-in associative? atom await await-for await1 bases bean bigdec bigint biginteger binding bit-and bit-and-not bit-clear bit-flip bit-not bit-or bit-set bit-shift-left bit-shift-right bit-test bit-xor boolean boolean-array booleans bound-fn bound-fn* bound? butlast byte byte-array bytes case cast char char-array char-escape-string char-name-string char? chars chunk chunk-append chunk-buffer chunk-cons chunk-first chunk-next chunk-rest chunked-seq? class class? clear-agent-errors clojure-version coll? comment commute comp comparator compare compare-and-set! compile complement concat cond condp conj conj! cons constantly construct-proxy contains? count counted? create-ns create-struct cycle dec dec' decimal? declare default-data-readers definline definterface defmacro defmethod defmulti defn defn- defonce defprotocol defrecord defstruct deftype delay delay? deliver denominator deref derive descendants destructure disj disj! dissoc dissoc! distinct distinct? doall dorun doseq dosync dotimes doto double double-array doubles drop drop-last drop-while empty empty? ensure enumeration-seq error-handler error-mode eval even? every-pred every? ex-data ex-info extend extend-protocol extend-type extenders extends? false? ffirst file-seq filter filterv find find-keyword find-ns find-protocol-impl find-protocol-method find-var first flatten float float-array float? floats flush fn fn? fnext fnil for force format frequencies future future-call future-cancel future-cancelled? future-done? future? gen-class gen-interface gensym get get-in get-method get-proxy-class get-thread-bindings get-validator group-by hash hash-combine hash-map hash-set identical? identity if-let if-not ifn? import in-ns inc inc' init-proxy instance? int int-array integer? interleave intern interpose into into-array ints io! isa? iterate iterator-seq juxt keep keep-indexed key keys keyword keyword? last lazy-cat lazy-seq let letfn line-seq list list* list? load load-file load-reader load-string loaded-libs locking long long-array longs loop macroexpand macroexpand-1 make-array make-hierarchy map map-indexed map? mapcat mapv max max-key memfn memoize merge merge-with meta method-sig methods min min-key mod munge name namespace namespace-munge neg? newline next nfirst nil? nnext not not-any? not-empty not-every? not= ns ns-aliases ns-imports ns-interns ns-map ns-name ns-publics ns-refers ns-resolve ns-unalias ns-unmap nth nthnext nthrest num number? numerator object-array odd? or parents partial partition partition-all partition-by pcalls peek persistent! pmap pop pop! pop-thread-bindings pos? pr pr-str prefer-method prefers primitives-classnames print print-ctor print-dup print-method print-simple print-str printf println println-str prn prn-str promise proxy proxy-call-with-super proxy-mappings proxy-name proxy-super push-thread-bindings pvalues quot rand rand-int rand-nth range ratio? rational? rationalize re-find re-groups re-matcher re-matches re-pattern re-seq read read-line read-string realized? reduce reduce-kv reductions ref ref-history-count ref-max-history ref-min-history ref-set refer refer-clojure reify release-pending-sends rem remove remove-all-methods remove-method remove-ns remove-watch repeat repeatedly replace replicate require reset! reset-meta! resolve rest restart-agent resultset-seq reverse reversible? rseq rsubseq satisfies? second select-keys send send-off seq seq? seque sequence sequential? set set-error-handler! set-error-mode! set-validator! set? short short-array shorts shuffle shutdown-agents slurp some some-fn sort sort-by sorted-map sorted-map-by sorted-set sorted-set-by sorted? special-symbol? spit split-at split-with str string? struct struct-map subs subseq subvec supers swap! symbol symbol? sync take take-last take-nth take-while test the-ns thread-bound? time to-array to-array-2d trampoline transient tree-seq true? type unchecked-add unchecked-add-int unchecked-byte unchecked-char unchecked-dec unchecked-dec-int unchecked-divide-int unchecked-double unchecked-float unchecked-inc unchecked-inc-int unchecked-int unchecked-long unchecked-multiply unchecked-multiply-int unchecked-negate unchecked-negate-int unchecked-remainder-int unchecked-short unchecked-subtract unchecked-subtract-int underive unquote unquote-splicing update-in update-proxy use val vals var-get var-set var? vary-meta vec vector vector-of vector? when when-first when-let when-not while with-bindings with-bindings* with-in-str with-loading-context with-local-vars with-meta with-open with-out-str with-precision with-redefs with-redefs-fn xml-seq zero? zipmap *default-data-reader-fn* as-> cond-> cond->> reduced reduced? send-via set-agent-send-executor! set-agent-send-off-executor! some-> some->>"),x=t("ns fn def defn defmethod bound-fn if if-not case condp when while when-not when-first do future comment doto locking proxy with-open with-precision reify deftype defrecord defprotocol extend extend-protocol extend-type try catch let letfn binding loop for doseq dotimes when-let if-let defstruct struct-map assoc testing deftest handler-case handle dotrace deftrace"),_={
|
||
digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+!\-\._?:<>\/\xa1-\uffff]/};return{startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(e,t){if(null==t.indentStack&&e.sol()&&(t.indentation=e.indentation()),e.eatSpace())return null;var n=null;switch(t.mode){case"string":for(var w,S=!1;null!=(w=e.next());){if('"'==w&&!S){t.mode=!1;break}S=!S&&"\\"==w}n=c;break;default:var T=e.next();if('"'==T)t.mode="string",n=c;else if("\\"==T)a(e),n=u;else if("'"!=T||_.digit_or_colon.test(e.peek()))if(";"==T)e.skipToEnd(),n=l;else if(o(T,e))n=f;else if("("==T||"["==T||"{"==T){var E="",C=e.column(),M;if("("==T)for(;null!=(M=e.eat(_.keyword_char));)E+=M;E.length>0&&(x.propertyIsEnumerable(E)||/^(?:def|with)/.test(E))?r(t,C+g,T):(e.eatSpace(),e.eol()||";"==e.peek()?r(t,C+v,T):r(t,C+e.current().length,T)),e.backUp(e.current().length-1),n=p}else if(")"==T||"]"==T||"}"==T)n=p,null!=t.indentStack&&t.indentStack.type==(")"==T?"(":"]"==T?"[":"{")&&i(t);else{if(":"==T)return e.eatWhile(_.symbol),d;e.eatWhile(_.symbol),n=y&&y.propertyIsEnumerable(e.current())?h:k&&k.propertyIsEnumerable(e.current())?s:b&&b.propertyIsEnumerable(e.current())?d:m}else n=d}return n},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent},lineComment:";;"}}),e.defineMIME("text/x-clojure","clojure")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("cobol",function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function t(e,t){return"0"===e&&t.eat(/x/i)?(t.eatWhile(h.hex),!0):("+"!=e&&"-"!=e||!h.digit.test(t.peek())||(t.eat(h.sign),e=t.next()),h.digit.test(e)?(t.eat(e),t.eatWhile(h.digit),"."==t.peek()&&(t.eat("."),t.eatWhile(h.digit)),t.eat(h.exponent)&&(t.eat(h.sign),t.eatWhile(h.digit)),!0):!1)}var n="builtin",r="comment",i="string",o="atom",a="number",s="keyword",l="header",c="def",u="link",d=e("TRUE FALSE ZEROES ZEROS ZERO SPACES SPACE LOW-VALUE LOW-VALUES "),f=e("ACCEPT ACCESS ACQUIRE ADD ADDRESS ADVANCING AFTER ALIAS ALL ALPHABET ALPHABETIC ALPHABETIC-LOWER ALPHABETIC-UPPER ALPHANUMERIC ALPHANUMERIC-EDITED ALSO ALTER ALTERNATE AND ANY ARE AREA AREAS ARITHMETIC ASCENDING ASSIGN AT ATTRIBUTE AUTHOR AUTO AUTO-SKIP AUTOMATIC B-AND B-EXOR B-LESS B-NOT B-OR BACKGROUND-COLOR BACKGROUND-COLOUR BEEP BEFORE BELL BINARY BIT BITS BLANK BLINK BLOCK BOOLEAN BOTTOM BY CALL CANCEL CD CF CH CHARACTER CHARACTERS CLASS CLOCK-UNITS CLOSE COBOL CODE CODE-SET COL COLLATING COLUMN COMMA COMMIT COMMITMENT COMMON COMMUNICATION COMP COMP-0 COMP-1 COMP-2 COMP-3 COMP-4 COMP-5 COMP-6 COMP-7 COMP-8 COMP-9 COMPUTATIONAL COMPUTATIONAL-0 COMPUTATIONAL-1 COMPUTATIONAL-2 COMPUTATIONAL-3 COMPUTATIONAL-4 COMPUTATIONAL-5 COMPUTATIONAL-6 COMPUTATIONAL-7 COMPUTATIONAL-8 COMPUTATIONAL-9 COMPUTE CONFIGURATION CONNECT CONSOLE CONTAINED CONTAINS CONTENT CONTINUE CONTROL CONTROL-AREA CONTROLS CONVERTING COPY CORR CORRESPONDING COUNT CRT CRT-UNDER CURRENCY CURRENT CURSOR DATA DATE DATE-COMPILED DATE-WRITTEN DAY DAY-OF-WEEK DB DB-ACCESS-CONTROL-KEY DB-DATA-NAME DB-EXCEPTION DB-FORMAT-NAME DB-RECORD-NAME DB-SET-NAME DB-STATUS DBCS DBCS-EDITED DE DEBUG-CONTENTS DEBUG-ITEM DEBUG-LINE DEBUG-NAME DEBUG-SUB-1 DEBUG-SUB-2 DEBUG-SUB-3 DEBUGGING DECIMAL-POINT DECLARATIVES DEFAULT DELETE DELIMITED DELIMITER DEPENDING DESCENDING DESCRIBED DESTINATION DETAIL DISABLE DISCONNECT DISPLAY DISPLAY-1 DISPLAY-2 DISPLAY-3 DISPLAY-4 DISPLAY-5 DISPLAY-6 DISPLAY-7 DISPLAY-8 DISPLAY-9 DIVIDE DIVISION DOWN DROP DUPLICATE DUPLICATES DYNAMIC EBCDIC EGI EJECT ELSE EMI EMPTY EMPTY-CHECK ENABLE END END. END-ACCEPT END-ACCEPT. END-ADD END-CALL END-COMPUTE END-DELETE END-DISPLAY END-DIVIDE END-EVALUATE END-IF END-INVOKE END-MULTIPLY END-OF-PAGE END-PERFORM END-READ END-RECEIVE END-RETURN END-REWRITE END-SEARCH END-START END-STRING END-SUBTRACT END-UNSTRING END-WRITE END-XML ENTER ENTRY ENVIRONMENT EOP EQUAL EQUALS ERASE ERROR ESI EVALUATE EVERY EXCEEDS EXCEPTION EXCLUSIVE EXIT EXTEND EXTERNAL EXTERNALLY-DESCRIBED-KEY FD FETCH FILE FILE-CONTROL FILE-STREAM FILES FILLER FINAL FIND FINISH FIRST FOOTING FOR FOREGROUND-COLOR FOREGROUND-COLOUR FORMAT FREE FROM FULL FUNCTION GENERATE GET GIVING GLOBAL GO GOBACK GREATER GROUP HEADING HIGH-VALUE HIGH-VALUES HIGHLIGHT I-O I-O-CONTROL ID IDENTIFICATION IF IN INDEX INDEX-1 INDEX-2 INDEX-3 INDEX-4 INDEX-5 INDEX-6 INDEX-7 INDEX-8 INDEX-9 INDEXED INDIC INDICATE INDICATOR INDICATORS INITIAL INITIALIZE INITIATE INPUT INPUT-OUTPUT INSPECT INSTALLATION INTO INVALID INVOKE IS JUST JUSTIFIED KANJI KEEP KEY LABEL LAST LD LEADING LEFT LEFT-JUSTIFY LENGTH LENGTH-CHECK LESS LIBRARY LIKE LIMIT LIMITS LINAGE LINAGE-COUNTER LINE LINE-COUNTER LINES LINKAGE LOCAL-STORAGE LOCALE LOCALLY LOCK MEMBER MEMORY MERGE MESSAGE METACLASS MODE MODIFIED MODIFY MODULES MOVE MULTIPLE MULTIPLY NATIONAL NATIVE NEGATIVE NEXT NO NO-ECHO NONE NOT NULL NULL-KEY-MAP NULL-MAP NULLS NUMBER NUMERIC NUMERIC-EDITED OBJECT OBJECT-COMPUTER OCCURS OF OFF OMITTED ON ONLY OPEN OPTIONAL OR ORDER ORGANIZATION OTHER OUTPUT OVERFLOW OWNER PACKED-DECIMAL PADDING PAGE PAGE-COUNTER PARSE PERFORM PF PH PIC PICTURE PLUS POINTER POSITION POSITIVE PREFIX PRESENT PRINTING PRIOR PROCEDURE PROCEDURE-POINTER PROCEDURES PROCEED PROCESS PROCESSING PROGRAM PROGRAM-ID PROMPT PROTECTED PURGE QUEUE QUOTE QUOTES RANDOM RD READ READY REALM RECEIVE RECONNECT RECORD RECORD-NAME RECORDS RECURSIVE REDEFINES REEL REFERENCE REFERENCE-MONITOR REFERENCES RELATION RELATIVE RELEASE REMAINDER REMOVAL RENAMES REPEATED REPLACE REPLACING REPORT REPORTING REPORTS REPOSITORY REQUIRED RERUN RESERVE RESET RETAINING RETRIEVAL RETURN RETURN-CODE RETURNING REVERSE-VIDEO REVERSED REWIND REWRITE RF RH RIGHT RIGHT-JUSTIFY ROLLBACK ROLLING ROUNDED RUN SAME SCREEN SD SEARCH SECTION SECURE SECURITY SEGMENT SEGMENT-LIMIT SELECT SEND SENTENCE SEPARATE SEQUENCE SEQUENTIAL SET SHARED SIGN SIZE SKIP1 SKIP2 SKIP3 SORT SORT-MERGE SORT-RETURN SOURCE SOURCE-COMPUTER SPACE-FILL SPECIAL-NAMES STANDARD STANDARD-1 STANDARD-2 START STARTING STATUS STOP STORE STRING SUB-QUEUE-1 SUB-QUEUE-2 SUB-QUEUE-3 SUB-SCHEMA SUBFILE SUBSTITUTE SUBTRACT SUM SUPPRESS SYMBOLIC SYNC SYNCHRONIZED SYSIN SYSOUT TABLE TALLYING TAPE TENANT TERMINAL TERMINATE TEST TEXT THAN THEN THROUGH THRU TIME TIMES TITLE TO TOP TRAILING TRAILING-SIGN TRANSACTION TYPE TYPEDEF UNDERLINE UNEQUAL UNIT UNSTRING UNTIL UP UPDATE UPON USAGE USAGE-MODE USE USING VALID VALIDATE VALUE VALUES VARYING VLR WAIT WHEN WHEN-COMPILED WITH WITHIN WORDS WORKING-STORAGE WRITE XML XML-CODE XML-EVENT XML-NTEXT XML-TEXT ZERO ZERO-FILL "),p=e("- * ** / + < <= = > >= "),h={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};return{startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(e,m){if(null==m.indentStack&&e.sol()&&(m.indentation=6),e.eatSpace())return null;var g=null;switch(m.mode){case"string":for(var v=!1;null!=(v=e.next());)if('"'==v||"'"==v){m.mode=!1;break}g=i;break;default:var b=e.next(),y=e.column();if(y>=0&&5>=y)g=c;else if(y>=72&&79>=y)e.skipToEnd(),g=l;else if("*"==b&&6==y)e.skipToEnd(),g=r;else if('"'==b||"'"==b)m.mode="string",g=i;else if("'"!=b||h.digit_or_colon.test(e.peek()))if("."==b)g=u;else if(t(b,e))g=a;else{if(e.current().match(h.symbol))for(;71>y&&void 0!==e.eat(h.symbol);)y++;g=f&&f.propertyIsEnumerable(e.current().toUpperCase())?s:p&&p.propertyIsEnumerable(e.current().toUpperCase())?n:d&&d.propertyIsEnumerable(e.current().toUpperCase())?o:null}else g=o}return g},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent}}}),e.defineMIME("text/x-cobol","cobol")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("commonlisp",function(e){function t(e){for(var t;t=e.next();)if("\\"==t)e.next();else if(!s.test(t)){e.backUp(1);break}return e.current()}function n(e,n){if(e.eatSpace())return l="ws",null;if(e.match(a))return"number";var o=e.next();if("\\"==o&&(o=e.next()),'"'==o)return(n.tokenize=r)(e,n);if("("==o)return l="open","bracket";if(")"==o||"]"==o)return l="close","bracket";if(";"==o)return e.skipToEnd(),l="ws","comment";if(/['`,@]/.test(o))return null;if("|"==o)return e.skipTo("|")?(e.next(),"symbol"):(e.skipToEnd(),"error");if("#"==o){var o=e.next();return"["==o?(l="open","bracket"):/[+\-=\.']/.test(o)?null:/\d/.test(o)&&e.match(/^\d*#/)?null:"|"==o?(n.tokenize=i)(e,n):":"==o?(t(e),"meta"):"error"}var s=t(e);return"."==s?null:(l="symbol","nil"==s||"t"==s?"atom":":"==s.charAt(0)?"keyword":"&"==s.charAt(0)?"variable-2":"variable")}function r(e,t){for(var r=!1,i;i=e.next();){if('"'==i&&!r){t.tokenize=n;break}r=!r&&"\\"==i}return"string"}function i(e,t){for(var r,i;r=e.next();){if("#"==r&&"|"==i){t.tokenize=n;break}i=r}return l="ws","comment"}var o=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,a=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,s=/[^\s'`,@()\[\]";]/,l;return{startState:function(){return{ctx:{prev:null,start:0,indentTo:0},tokenize:n}},token:function(t,n){t.sol()&&"number"!=typeof n.ctx.indentTo&&(n.ctx.indentTo=n.ctx.start+1),l=null;var r=n.tokenize(t,n);return"ws"!=l&&(null==n.ctx.indentTo?"symbol"==l&&o.test(t.current())?n.ctx.indentTo=n.ctx.start+e.indentUnit:n.ctx.indentTo="next":"next"==n.ctx.indentTo&&(n.ctx.indentTo=t.column())),"open"==l?n.ctx={prev:n.ctx,start:t.column(),indentTo:null}:"close"==l&&(n.ctx=n.ctx.prev||n.ctx),r},indent:function(e,t){var n=e.ctx.indentTo;return"number"==typeof n?n:e.ctx.start+1},lineComment:";;",blockCommentStart:"#|",blockCommentEnd:"|#"}}),e.defineMIME("text/x-common-lisp","commonlisp")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("coffeescript",function(e){function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}function n(e,t){if(e.sol()){null===t.scope.align&&(t.scope.align=!1);var n=t.scope.offset;if(e.eatSpace()){var o=e.indentation();return o>n&&"coffee"==t.scope.type?"indent":n>o?"dedent":null}n>0&&a(e,t)}if(e.eatSpace())return null;var s=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return t.tokenize=i,t.tokenize(e,t);if("#"===s)return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var h=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(h=!0),e.match(/^-?\d+\.\d*/)&&(h=!0),e.match(/^-?\.\d+/)&&(h=!0),h)return"."==e.peek()&&e.backUp(1),"number";var m=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(m=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(m=!0),e.match(/^-?0(?![\dx])/i)&&(m=!0),m)return"number"}if(e.match(v))return t.tokenize=r(e.current(),!1,"string"),t.tokenize(e,t);if(e.match(b)){if("/"!=e.current()||e.match(/^.*\//,!1))return t.tokenize=r(e.current(),!0,"string-2"),t.tokenize(e,t);e.backUp(1)}return e.match(c)||e.match(p)?"operator":e.match(u)?"punctuation":e.match(k)?"atom":e.match(g)?"keyword":e.match(d)?"variable":e.match(f)?"property":(e.next(),l)}function r(t,r,i){return function(o,a){for(;!o.eol();)if(o.eatWhile(/[^'"\/\\]/),o.eat("\\")){if(o.next(),r&&o.eol())return i}else{if(o.match(t))return a.tokenize=n,i;o.eat(/['"\/]/)}return r&&(e.mode.singleLineStringErrors?i=l:a.tokenize=n),i}}function i(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){t.tokenize=n;break}e.eatWhile("#")}return"comment"}function o(t,n,r){r=r||"coffee";for(var i=0,o=!1,a=null,s=n.scope;s;s=s.prev)if("coffee"===s.type||"}"==s.type){i=s.offset+e.indentUnit;break}"coffee"!==r?(o=null,a=t.column()+t.current().length):n.scope.align&&(n.scope.align=!1),n.scope={offset:i,type:r,prev:n.scope,align:o,alignOffset:a}}function a(e,t){if(t.scope.prev){if("coffee"===t.scope.type){for(var n=e.indentation(),r=!1,i=t.scope;i;i=i.prev)if(n===i.offset){r=!0;break}if(!r)return!0;for(;t.scope.prev&&t.scope.offset!==n;)t.scope=t.scope.prev;return!1}return t.scope=t.scope.prev,!1}}function s(e,t){var n=t.tokenize(e,t),r=e.current();if("."===r)return n=t.tokenize(e,t),r=e.current(),/^\.[\w$]+$/.test(r)?"variable":l;"return"===r&&(t.dedent=!0),("->"!==r&&"=>"!==r||t.lambda||e.peek())&&"indent"!==n||o(e,t);var i="[({".indexOf(r);if(-1!==i&&o(e,t,"])}".slice(i,i+1)),h.exec(r)&&o(e,t),"then"==r&&a(e,t),"dedent"===n&&a(e,t))return l;if(i="])}".indexOf(r),-1!==i){for(;"coffee"==t.scope.type&&t.scope.prev;)t.scope=t.scope.prev;t.scope.type==r&&(t.scope=t.scope.prev)}return t.dedent&&e.eol()&&("coffee"==t.scope.type&&t.scope.prev&&(t.scope=t.scope.prev),t.dedent=!1),n}var l="error",c=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,u=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,d=/^[_A-Za-z$][_A-Za-z$0-9]*/,f=/^(@|this\.)[_A-Za-z$][_A-Za-z$0-9]*/,p=t(["and","or","not","is","isnt","in","instanceof","typeof"]),h=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],m=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"],g=t(h.concat(m));h=t(h);var v=/^('{3}|\"{3}|['\"])/,b=/^(\/{3}|\/)/,y=["Infinity","NaN","undefined","null","true","false","on","off","yes","no"],k=t(y),x={startState:function(e){return{tokenize:n,scope:{offset:e||0,type:"coffee",prev:null,align:!1},lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var n=null===t.scope.align&&t.scope;n&&e.sol()&&(n.align=!1);var r=s(e,t);return n&&r&&"comment"!=r&&(n.align=!0),t.lastToken={style:r,content:e.current()},e.eol()&&e.lambda&&(t.lambda=!1),r},indent:function(e,t){if(e.tokenize!=n)return 0;var r=e.scope,i=t&&"])}".indexOf(t.charAt(0))>-1;if(i)for(;"coffee"==r.type&&r.prev;)r=r.prev;var o=i&&r.type===t.charAt(0);return r.align?r.alignOffset-(o?1:0):(o?r.prev:r).offset},lineComment:"#",fold:"indent"};return x}),e.defineMIME("text/x-coffeescript","coffeescript")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}function n(e,t){for(var n=!1,r;null!=(r=e.next());){if(n&&"/"==r){t.tokenize=null;break}n="*"==r}return["comment","comment"]}function r(e,t){return e.skipTo("-->")?(e.match("-->"),t.tokenize=null):e.skipToEnd(),["comment","comment"]}e.defineMode("css",function(t,n){function r(e,t){return w=t,e}function i(e,t){var n=e.next();if(h[n]){var i=h[n](e,t);if(i!==!1)return i}return"@"==n?(e.eatWhile(/[\w\\\-]/),r("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?r(null,"compare"):'"'==n||"'"==n?(t.tokenize=o(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),r("atom","hash")):"!"==n?(e.match(/^\s*\w*/),r("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),r("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?r(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?r("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?r(null,n):"u"==n&&e.match("rl(")?(e.backUp(1),t.tokenize=a,r("property","word")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),r("property","word")):r(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),r("number","unit")):e.match(/^\w+-/)?r("meta","meta"):void 0}function o(e){return function(t,n){for(var i=!1,o;null!=(o=t.next());){if(o==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==o}return(o==e||!i&&")"!=e)&&(n.tokenize=null),r("string","string")}}function a(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=o(")"),r(null,"(")}function s(e,t,n){this.type=e,this.indent=t,this.prev=n}function l(e,t,n){return e.context=new s(n,t.indentation()+p,e.context),n}function c(e){return e.context=e.context.prev,e.context.type}function u(e,t,n){return T[n.context.type](e,t,n)}function d(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return u(e,t,n)}function f(e){var t=e.current().toLowerCase();S=k.hasOwnProperty(t)?"atom":y.hasOwnProperty(t)?"keyword":"variable"}n.propertyKeywords||(n=e.resolveMode("text/css"));var p=t.indentUnit,h=n.tokenHooks,m=n.mediaTypes||{},g=n.mediaFeatures||{},v=n.propertyKeywords||{},b=n.nonStandardPropertyKeywords||{},y=n.colorKeywords||{},k=n.valueKeywords||{},x=n.fontProperties||{},_=n.allowNested,w,S,T={};return T.top=function(e,t,n){if("{"==e)return l(n,t,"block");if("}"==e&&n.context.prev)return c(n);if("@media"==e)return l(n,t,"media");if("@font-face"==e)return"font_face_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return l(n,t,"at");if("hash"==e)S="builtin";else if("word"==e)S="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return l(n,t,"interpolation");if(":"==e)return"pseudo";if(_&&"("==e)return l(n,t,"parens")}return n.context.type},T.block=function(e,t,n){if("word"==e){var r=t.current().toLowerCase();return v.hasOwnProperty(r)?(S="property","maybeprop"):b.hasOwnProperty(r)?(S="string-2","maybeprop"):_?(S=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(S+=" error","maybeprop")}return"meta"==e?"block":_||"hash"!=e&&"qualifier"!=e?T.top(e,t,n):(S="error","block")},T.maybeprop=function(e,t,n){return":"==e?l(n,t,"prop"):u(e,t,n)},T.prop=function(e,t,n){if(";"==e)return c(n);if("{"==e&&_)return l(n,t,"propBlock");if("}"==e||"{"==e)return d(e,t,n);if("("==e)return l(n,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t.current())){if("word"==e)f(t);else if("interpolation"==e)return l(n,t,"interpolation")}else S+=" error";return"prop"},T.propBlock=function(e,t,n){return"}"==e?c(n):"word"==e?(S="property","maybeprop"):n.context.type},T.parens=function(e,t,n){return"{"==e||"}"==e?d(e,t,n):")"==e?c(n):"("==e?l(n,t,"parens"):("word"==e&&f(t),"parens")},T.pseudo=function(e,t,n){return"word"==e?(S="variable-3",n.context.type):u(e,t,n)},T.media=function(e,t,n){if("("==e)return l(n,t,"media_parens");if("}"==e)return d(e,t,n);if("{"==e)return c(n)&&l(n,t,_?"block":"top");if("word"==e){var r=t.current().toLowerCase();S="only"==r||"not"==r||"and"==r?"keyword":m.hasOwnProperty(r)?"attribute":g.hasOwnProperty(r)?"property":"error"}return n.context.type},T.media_parens=function(e,t,n){return")"==e?c(n):"{"==e||"}"==e?d(e,t,n,2):T.media(e,t,n)},T.font_face_before=function(e,t,n){return"{"==e?l(n,t,"font_face"):u(e,t,n)},T.font_face=function(e,t,n){return"}"==e?c(n):"word"==e?(S=x.hasOwnProperty(t.current().toLowerCase())?"property":"error","maybeprop"):"font_face"},T.keyframes=function(e,t,n){return"word"==e?(S="variable","keyframes"):"{"==e?l(n,t,"top"):u(e,t,n)},T.at=function(e,t,n){return";"==e?c(n):"{"==e||"}"==e?d(e,t,n):("word"==e?S="tag":"hash"==e&&(S="builtin"),"at")},T.interpolation=function(e,t,n){return"}"==e?c(n):"{"==e||";"==e?d(e,t,n):("variable"!=e&&(S="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:"top",context:new s("top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var n=(t.tokenize||i)(e,t);return n&&"object"==typeof n&&(w=n[1],n=n[0]),S=n,t.state=T[t.state](w,e,t),S},indent:function(e,t){var n=e.context,r=t&&t.charAt(0),i=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),!n.prev||("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"font_face"!=n.type)&&(")"!=r||"parens"!=n.type&&"media_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"media"!=n.type)||(i=n.indent-p,n=n.prev),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace"}});var i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=t(i),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid"],s=t(a),l=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],c=t(l),u=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],d=t(u),f=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],p=t(f),h=["above","absolute","activeborder","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","contain","content","content-box","context-menu","continuous","copy","cover","crop","cross","crosshair","currentcolor","cursive","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ew-resize","expanded","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-table","inset","inside","intrinsic","invert","italic","justify","kannada","katakana","katakana-iroha","keep-all","khmer","landscape","lao","large","larger","left","level","lighter","line-through","linear","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scroll","scrollbar","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","single","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","x-large","x-small","xor","xx-large","xx-small"],m=t(h),g=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],v=t(g),b=i.concat(a).concat(l).concat(u).concat(f).concat(h);
|
||
|
||
e.registerHelper("hintWords","css",b),e.defineMIME("text/css",{mediaTypes:o,mediaFeatures:s,propertyKeywords:c,nonStandardPropertyKeywords:d,colorKeywords:p,valueKeywords:m,fontProperties:v,tokenHooks:{"<":function(e,t){return e.match("!--")?(t.tokenize=r,r(e,t)):!1},"/":function(e,t){return e.eat("*")?(t.tokenize=n,n(e,t)):!1}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:s,propertyKeywords:c,nonStandardPropertyKeywords:d,colorKeywords:p,valueKeywords:m,fontProperties:v,allowNested:!0,tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=n,n(e,t)):["operator","operator"]},":":function(e){return e.match(/\s*\{/)?[null,"{"]:!1},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return e.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:o,mediaFeatures:s,propertyKeywords:c,nonStandardPropertyKeywords:d,colorKeywords:p,valueKeywords:m,fontProperties:v,allowNested:!0,tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=n,n(e,t)):["operator","operator"]},"@":function(e){return e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/,!1)?!1:(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";var t=function(e){return new RegExp("^(?:"+e.join("|")+")$","i")};e.defineMode("cypher",function(n){var r=function(e){var t=e.next(),n=null;if('"'===t||"'"===t)return e.match(/.+?["']/),"string";if(/[{}\(\),\.;\[\]]/.test(t))return n=t,"node";if("/"===t&&e.eat("/"))return e.skipToEnd(),"comment";if(d.test(t))return e.eatWhile(d),null;if(e.eatWhile(/[_\w\d]/),e.eat(":"))return e.eatWhile(/[\w\d_\-]/),"atom";var r=e.current();return l.test(r)?"builtin":c.test(r)?"def":u.test(r)?"keyword":"variable"},i=function(e,t,n){return e.context={prev:e.context,indent:e.indent,col:n,type:t}},o=function(e){return e.indent=e.context.indent,e.context=e.context.prev},a=n.indentUnit,s,l=t(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","right","round","rtrim","shortestPath","sign","sin","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","trim","type","upper"]),c=t(["all","and","any","has","in","none","not","or","single","xor"]),u=t(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","distinct","drop","else","end","false","fieldterminator","foreach","from","headers","in","index","is","limit","load","match","merge","null","on","optional","order","periodic","remove","return","scan","set","skip","start","then","true","union","unique","unwind","using","when","where","with"]),d=/[*+\-<>=&|~%^]/;return{startState:function(){return{tokenize:r,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!==n&&t.context&&null==t.context.align&&"pattern"!==t.context.type&&(t.context.align=!0),"("===s)i(t,")",e.column());else if("["===s)i(t,"]",e.column());else if("{"===s)i(t,"}",e.column());else if(/[\]\}\)]/.test(s)){for(;t.context&&"pattern"===t.context.type;)o(t);t.context&&s===t.context.type&&o(t)}else"."===s&&t.context&&"pattern"===t.context.type?o(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?i(t,"pattern",e.column()):"pattern"!==t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(t,n){var r=n&&n.charAt(0),i=t.context;if(/[\]\}]/.test(r))for(;i&&"pattern"===i.type;)i=i.prev;var o=i&&r===i.type;return i?"keywords"===i.type?e.commands.newlineAndIndent:i.align?i.col+(o?0:1):i.indent+(o?0:a):0}}}),e.modeExtensions.cypher={autoFormatLineBreaks:function(e){for(var t,n,r,n=e.split("\n"),r=/\s+\b(return|where|order by|match|with|skip|limit|create|delete|set)\b\s/g,t=0;t<n.length;t++)n[t]=n[t].replace(r," \n$1 ").trim();return n.join("\n")}},e.defineMIME("application/x-cypher-query","cypher")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("d",function(t,n){function r(e,t){var n=e.next();if(g[n]){var r=g[n](e,t);if(r!==!1)return r}if('"'==n||"'"==n||"`"==n)return t.tokenize=i(n),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(n))return y=n,null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),"number";if("/"==n){if(e.eat("+"))return t.tokenize=o,a(e,t);if(e.eat("*"))return t.tokenize=o,o(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(b.test(n))return e.eatWhile(b),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var s=e.current();return f.propertyIsEnumerable(s)?(h.propertyIsEnumerable(s)&&(y="newstatement"),"keyword"):p.propertyIsEnumerable(s)?(h.propertyIsEnumerable(s)&&(y="newstatement"),"builtin"):m.propertyIsEnumerable(s)?"atom":"variable"}function i(e){return function(t,n){for(var r=!1,i,o=!1;null!=(i=t.next());){if(i==e&&!r){o=!0;break}r=!r&&"\\"==i}return(o||!r&&!v)&&(n.tokenize=null),"string"}}function o(e,t){for(var n=!1,r;r=e.next();){if("/"==r&&n){t.tokenize=null;break}n="*"==r}return"comment"}function a(e,t){for(var n=!1,r;r=e.next();){if("/"==r&&n){t.tokenize=null;break}n="+"==r}return"comment"}function s(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function l(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new s(r,t,n,null,e.context)}function c(e){var t=e.context.type;return(")"==t||"]"==t||"}"==t)&&(e.indented=e.context.indented),e.context=e.context.prev}var u=t.indentUnit,d=n.statementIndentUnit||u,f=n.keywords||{},p=n.builtin||{},h=n.blockKeywords||{},m=n.atoms||{},g=n.hooks||{},v=n.multiLineStrings,b=/[+\-*&%=<>!?|\/]/,y;return{startState:function(e){return{tokenize:null,context:new s((e||0)-u,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;y=null;var i=(t.tokenize||r)(e,t);if("comment"==i||"meta"==i)return i;if(null==n.align&&(n.align=!0),";"!=y&&":"!=y&&","!=y||"statement"!=n.type)if("{"==y)l(t,e.column(),"}");else if("["==y)l(t,e.column(),"]");else if("("==y)l(t,e.column(),")");else if("}"==y){for(;"statement"==n.type;)n=c(t);for("}"==n.type&&(n=c(t));"statement"==n.type;)n=c(t)}else y==n.type?c(t):(("}"==n.type||"top"==n.type)&&";"!=y||"statement"==n.type&&"newstatement"==y)&&l(t,e.column(),"statement");else c(t);return t.startOfLine=!1,i},indent:function(t,n){if(t.tokenize!=r&&null!=t.tokenize)return e.Pass;var i=t.context,o=n&&n.charAt(0);"statement"==i.type&&"}"==o&&(i=i.prev);var a=o==i.type;return"statement"==i.type?i.indented+("{"==o?0:d):i.align?i.column+(a?0:1):i.indented+(a?0:u)},electricChars:"{}"}});var n="body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with";e.defineMIME("text/x-d",{name:"d",keywords:t("abstract alias align asm assert auto break case cast cdouble cent cfloat const continue debug default delegate delete deprecated export extern final finally function goto immutable import inout invariant is lazy macro module new nothrow override package pragma private protected public pure ref return shared short static super synchronized template this throw typedef typeid typeof volatile __FILE__ __LINE__ __gshared __traits __vector __parameters "+n),blockKeywords:t(n),builtin:t("bool byte char creal dchar double float idouble ifloat int ireal long real short ubyte ucent uint ulong ushort wchar wstring void size_t sizediff_t"),atoms:t("exit failure success true false null"),hooks:{"@":function(e,t){return e.eatWhile(/[\w\$_]/),"meta"}}})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("diff",function(){var e={"+":"positive","-":"negative","@":"meta"};return{token:function(t){var n=t.string.search(/[\t ]+?$/);if(!t.sol()||0===n)return t.skipToEnd(),("error "+(e[t.string.charAt(0)]||"")).replace(/ $/,"");var r=e[t.peek()]||t.skipToEnd();return-1===n?t.skipToEnd():t.pos=n,r}}}),e.defineMIME("text/x-diff","diff")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../../addon/mode/overlay")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../../addon/mode/overlay"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("django:inner",function(){function e(e,n){e.eatWhile(/[^\{]/);var r=e.next();return"{"==r&&(r=e.eat(/\{|%|#/))?(n.tokenize=t(r),"tag"):void 0}function t(t){return"{"==t&&(t="}"),function(r,i){var o=r.next();return o==t&&r.eat("}")?(i.tokenize=e,"tag"):r.match(n)?"keyword":"#"==t?"comment":"string"}}var n=["block","endblock","for","endfor","in","true","false","loop","none","self","super","if","endif","as","not","and","else","import","with","endwith","without","context","ifequal","endifequal","ifnotequal","endifnotequal","extends","include","load","length","comment","endcomment","empty"];return n=new RegExp("^(("+n.join(")|(")+"))\\b"),{startState:function(){return{tokenize:e}},token:function(e,t){return t.tokenize(e,t)}}}),e.defineMode("django",function(t){var n=e.getMode(t,"text/html"),r=e.getMode(t,"django:inner");return e.overlayMode(n,r)}),e.defineMIME("text/x-django","django")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("dtd",function(e){function t(e,t){return s=t,e}function n(e,n){var a=e.next();if("<"!=a||!e.eat("!")){if("<"==a&&e.eat("?"))return n.tokenize=o("meta","?>"),t("meta",a);if("#"==a&&e.eatWhile(/[\w]/))return t("atom","tag");if("|"==a)return t("keyword","seperator");if(a.match(/[\(\)\[\]\-\.,\+\?>]/))return t(null,a);if(a.match(/[\[\]]/))return t("rule",a);if('"'==a||"'"==a)return n.tokenize=i(a),n.tokenize(e,n);if(e.eatWhile(/[a-zA-Z\?\+\d]/)){var s=e.current();return null!==s.substr(s.length-1,s.length).match(/\?|\+/)&&e.backUp(1),t("tag","tag")}return"%"==a||"*"==a?t("number","number"):(e.eatWhile(/[\w\\\-_%.{,]/),t(null,null))}return e.eatWhile(/[\-]/)?(n.tokenize=r,r(e,n)):e.eatWhile(/[\w]/)?t("keyword","doindent"):void 0}function r(e,r){for(var i=0,o;null!=(o=e.next());){if(i>=2&&">"==o){r.tokenize=n;break}i="-"==o?i+1:0}return t("comment","comment")}function i(e){return function(r,i){for(var o=!1,a;null!=(a=r.next());){if(a==e&&!o){i.tokenize=n;break}o=!o&&"\\"==a}return t("string","tag")}}function o(e,t){return function(r,i){for(;!r.eol();){if(r.match(t)){i.tokenize=n;break}r.next()}return e}}var a=e.indentUnit,s;return{startState:function(e){return{tokenize:n,baseIndent:e||0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;var n=t.tokenize(e,t),r=t.stack[t.stack.length-1];return"["==e.current()||"doindent"===s||"["==s?t.stack.push("rule"):"endtag"===s?t.stack[t.stack.length-1]="endtag":"]"==e.current()||"]"==s||">"==s&&"rule"==r?t.stack.pop():"["==s&&t.stack.push("["),n},indent:function(e,t){var n=e.stack.length;return t.match(/\]\s+|\]/)?n-=1:">"===t.substr(t.length-1,t.length)&&("<"===t.substr(0,1)||"doindent"==s&&t.length>1||("doindent"==s?n--:">"==s&&t.length>1||"tag"==s&&">"!==t||("tag"==s&&"rule"==e.stack[e.stack.length-1]?n--:"tag"==s?n++:">"===t&&"rule"==e.stack[e.stack.length-1]&&">"===s?n--:">"===t&&"rule"==e.stack[e.stack.length-1]||("<"!==t.substr(0,1)&&">"===t.substr(0,1)?n-=1:">"===t||(n-=1)))),(null==s||"]"==s)&&n--),e.baseIndent+n*a},electricChars:"]>"}}),e.defineMIME("application/xml-dtd","dtd")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("dylan",function(e){function t(e,t,n){return t.tokenize=n,n(e,t)}function n(e,t,n){return m=e,g=n,t}function r(e,r){var a=e.peek();if("'"==a||'"'==a)return e.next(),t(e,r,o(a,"string","string"));if("/"==a)return e.next(),e.eat("*")?t(e,r,i):e.eat("/")?(e.skipToEnd(),n("comment","comment")):(e.skipTo(" "),n("operator","operator"));if(/\d/.test(a))return e.match(/^\d*(?:\.\d*)?(?:e[+\-]?\d+)?/),n("number","number");if("#"==a)return e.next(),a=e.peek(),'"'==a?(e.next(),t(e,r,o('"',"symbol","string-2"))):"b"==a?(e.next(),e.eatWhile(/[01]/),n("number","number")):"x"==a?(e.next(),e.eatWhile(/[\da-f]/i),n("number","number")):"o"==a?(e.next(),e.eatWhile(/[0-7]/),n("number","number")):(e.eatWhile(/[-a-zA-Z]/),n("hash","keyword"));if(e.match("end"))return n("end","keyword");for(var s in c)if(c.hasOwnProperty(s)){var d=c[s];if(d instanceof Array&&d.some(function(t){return e.match(t)})||e.match(d))return n(s,u[s],e.current())}return e.match("define")?n("definition","def"):(e.eatWhile(/[\w\-]/),p[e.current()]?n(p[e.current()],h[e.current()],e.current()):e.current().match(l)?n("variable","variable"):(e.next(),n("other","variable-2")))}function i(e,t){for(var i=!1,o;o=e.next();){if("/"==o&&i){t.tokenize=r;break}i="*"==o}return n("comment","comment")}function o(e,t,i){return function(o,a){for(var s,l=!1;null!=(s=o.next());)if(s==e){l=!0;break}return l&&(a.tokenize=r),n(t,i)}}var a={unnamedDefinition:["interface"],namedDefinition:["module","library","macro","C-struct","C-union","C-function","C-callable-wrapper"],typeParameterizedDefinition:["class","C-subtype","C-mapped-subtype"],otherParameterizedDefinition:["method","function","C-variable","C-address"],constantSimpleDefinition:["constant"],variableSimpleDefinition:["variable"],otherSimpleDefinition:["generic","domain","C-pointer-type","table"],statement:["if","block","begin","method","case","for","select","when","unless","until","while","iterate","profiling","dynamic-bind"],separator:["finally","exception","cleanup","else","elseif","afterwards"],other:["above","below","by","from","handler","in","instance","let","local","otherwise","slot","subclass","then","to","keyed-by","virtual"],signalingCalls:["signal","error","cerror","break","check-type","abort"]};a.otherDefinition=a.unnamedDefinition.concat(a.namedDefinition).concat(a.otherParameterizedDefinition),a.definition=a.typeParameterizedDefinition.concat(a.otherDefinition),a.parameterizedDefinition=a.typeParameterizedDefinition.concat(a.otherParameterizedDefinition),a.simpleDefinition=a.constantSimpleDefinition.concat(a.variableSimpleDefinition).concat(a.otherSimpleDefinition),a.keyword=a.statement.concat(a.separator).concat(a.other);var s="[-_a-zA-Z?!*@<>$%]+",l=new RegExp("^"+s),c={symbolKeyword:s+":",symbolClass:"<"+s+">",symbolGlobal:"\\*"+s+"\\*",symbolConstant:"\\$"+s},u={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variable-2",symbolConstant:"variable-3"};for(var d in c)c.hasOwnProperty(d)&&(c[d]=new RegExp("^"+c[d]));c.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var f={};f.keyword="keyword",f.definition="def",f.simpleDefinition="def",f.signalingCalls="builtin";var p={},h={};["keyword","definition","simpleDefinition","signalingCalls"].forEach(function(e){a[e].forEach(function(t){p[t]=e,h[t]=f[e]})});var m,g;return{startState:function(){return{tokenize:r,currentIndent:0}},token:function(e,t){if(e.eatSpace())return null;var n=t.tokenize(e,t);return n},blockCommentStart:"/*",blockCommentEnd:"*/"}}),e.defineMIME("text/x-dylan","dylan")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("ecl",function(e){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function n(e,t){return t.startOfLine?(e.skipToEnd(),"meta"):!1}function r(e,t){var n=e.next();if(v[n]){var r=v[n](e,t);if(r!==!1)return r}if('"'==n||"'"==n)return t.tokenize=i(n),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(n))return k=n,null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),"number";if("/"==n){if(e.eat("*"))return t.tokenize=o,o(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(y.test(n))return e.eatWhile(y),"operator";e.eatWhile(/[\w\$_]/);var a=e.current().toLowerCase();if(u.propertyIsEnumerable(a))return m.propertyIsEnumerable(a)&&(k="newstatement"),"keyword";if(d.propertyIsEnumerable(a))return m.propertyIsEnumerable(a)&&(k="newstatement"),"variable";if(f.propertyIsEnumerable(a))return m.propertyIsEnumerable(a)&&(k="newstatement"),"variable-2";if(p.propertyIsEnumerable(a))return m.propertyIsEnumerable(a)&&(k="newstatement"),"variable-3";if(h.propertyIsEnumerable(a))return m.propertyIsEnumerable(a)&&(k="newstatement"),"builtin";for(var s=a.length-1;s>=0&&(!isNaN(a[s])||"_"==a[s]);)--s;if(s>0){var l=a.substr(0,s+1);if(p.propertyIsEnumerable(l))return m.propertyIsEnumerable(l)&&(k="newstatement"),"variable-3"}return g.propertyIsEnumerable(a)?"atom":null}function i(e){return function(t,n){for(var i=!1,o,a=!1;null!=(o=t.next());){if(o==e&&!i){a=!0;break}i=!i&&"\\"==o}return(a||!i&&!b)&&(n.tokenize=r),"string"}}function o(e,t){for(var n=!1,i;i=e.next();){if("/"==i&&n){t.tokenize=r;break}n="*"==i}return"comment"}function a(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function s(e,t,n){return e.context=new a(e.indented,t,n,null,e.context)}function l(e){var t=e.context.type;return(")"==t||"]"==t||"}"==t)&&(e.indented=e.context.indented),e.context=e.context.prev}var c=e.indentUnit,u=t("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode"),d=t("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"),f=t("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath"),p=t("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode"),h=t("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when"),m=t("catch class do else finally for if switch try while"),g=t("true false null"),v={"#":n},b,y=/[+\-*&%=<>!?|\/]/,k;return{startState:function(e){return{tokenize:null,context:new a((e||0)-c,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;k=null;var i=(t.tokenize||r)(e,t);if("comment"==i||"meta"==i)return i;if(null==n.align&&(n.align=!0),";"!=k&&":"!=k||"statement"!=n.type)if("{"==k)s(t,e.column(),"}");else if("["==k)s(t,e.column(),"]");else if("("==k)s(t,e.column(),")");else if("}"==k){for(;"statement"==n.type;)n=l(t);for("}"==n.type&&(n=l(t));"statement"==n.type;)n=l(t)}else k==n.type?l(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==k)&&s(t,e.column(),"statement");else l(t);return t.startOfLine=!1,i},indent:function(e,t){if(e.tokenize!=r&&null!=e.tokenize)return 0;var n=e.context,i=t&&t.charAt(0);"statement"==n.type&&"}"==i&&(n=n.prev);var o=i==n.type;return"statement"==n.type?n.indented+("{"==i?0:c):n.align?n.column+(o?0:1):n.indented+(o?0:c)},electricChars:"{}"}}),e.defineMIME("text/x-ecl","ecl")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("eiffel",function(){function e(e){for(var t={},n=0,r=e.length;r>n;++n)t[e[n]]=!0;return t}function t(e,t,n){return n.tokenize.push(e),e(t,n)}function n(e,n){if(a=null,e.eatSpace())return null;var i=e.next();return'"'==i||"'"==i?t(r(i,"string"),e,n):"-"==i&&e.eat("-")?(e.skipToEnd(),"comment"):":"==i&&e.eat("=")?"operator":/[0-9]/.test(i)?(e.eatWhile(/[xXbBCc0-9\.]/),e.eat(/[\?\!]/),"ident"):/[a-zA-Z_0-9]/.test(i)?(e.eatWhile(/[a-zA-Z_0-9]/),e.eat(/[\?\!]/),"ident"):/[=+\-\/*^%<>~]/.test(i)?(e.eatWhile(/[=+\-\/*^%<>~]/),"operator"):null}function r(e,t,n){return function(r,i){for(var o=!1,a;null!=(a=r.next());){if(a==e&&(n||!o)){i.tokenize.pop();break}o=!o&&"%"==a}return t}}var i=e(["note","across","when","variant","until","unique","undefine","then","strip","select","retry","rescue","require","rename","reference","redefine","prefix","once","old","obsolete","loop","local","like","is","inspect","infix","include","if","frozen","from","external","export","ensure","end","elseif","else","do","creation","create","check","alias","agent","separate","invariant","inherit","indexing","feature","expanded","deferred","class","Void","True","Result","Precursor","False","Current","create","attached","detachable","as","and","implies","not","or"]),o=e([":=","and then","and","or","<<",">>"]),a;return{startState:function(){return{tokenize:[n]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t);if("ident"==n){var r=e.current();n=i.propertyIsEnumerable(e.current())?"keyword":o.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(r)?"tag":/^0[bB][0-1]+$/g.test(r)?"number":/^0[cC][0-7]+$/g.test(r)?"number":/^0[xX][a-fA-F0-9]+$/g.test(r)?"number":/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(r)?"number":/^[0-9]+$/g.test(r)?"number":"variable"}return n},lineComment:"--"}}),e.defineMIME("text/x-eiffel","eiffel")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMIME("text/x-erlang","erlang"),e.defineMode("erlang",function(t){function n(e,t){if(t.in_string)return t.in_string=!o(e),u(t,e,"string");if(t.in_atom)return t.in_atom=!a(e),u(t,e,"atom");if(e.eatSpace())return u(t,e,"whitespace");if(!h(t)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/))return c(e.current(),E)?u(t,e,"type"):u(t,e,"attribute");var n=e.next();if("%"==n)return e.skipToEnd(),u(t,e,"comment");if(":"==n)return u(t,e,"colon");if("?"==n)return e.eatSpace(),e.eatWhile(q),u(t,e,"macro");if("#"==n)return e.eatSpace(),e.eatWhile(q),u(t,e,"record");if("$"==n)return"\\"!=e.next()||e.match(j)?u(t,e,"number"):u(t,e,"error");if("."==n)return u(t,e,"dot");if("'"==n){if(!(t.in_atom=!a(e))){if(e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),u(t,e,"fun");if(e.match(/\s*\(/,!1)||e.match(/\s*:/,!1))return u(t,e,"function")}return u(t,e,"atom")}if('"'==n)return t.in_string=!o(e),u(t,e,"string");if(/[A-Z_Ø-ÞÀ-Ö]/.test(n))return e.eatWhile(q),u(t,e,"variable");if(/[a-z_ß-öø-ÿ]/.test(n)){if(e.eatWhile(q),e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),u(t,e,"fun");var s=e.current();return c(s,C)?u(t,e,"keyword"):c(s,A)?u(t,e,"operator"):e.match(/\s*\(/,!1)?!c(s,$)||":"==h(t).token&&"erlang"!=h(t,2).token?c(s,D)?u(t,e,"guard"):u(t,e,"function"):u(t,e,"builtin"):c(s,A)?u(t,e,"operator"):":"==l(e)?"erlang"==s?u(t,e,"builtin"):u(t,e,"function"):c(s,["true","false"])?u(t,e,"boolean"):c(s,["true","false"])?u(t,e,"boolean"):u(t,e,"atom")}var d=/[0-9]/,f=/[0-9a-zA-Z]/;return d.test(n)?(e.eatWhile(d),e.eat("#")?e.eatWhile(f)||e.backUp(1):e.eat(".")&&(e.eatWhile(d)?e.eat(/[eE]/)&&(e.eat(/[-+]/)?e.eatWhile(d)||e.backUp(2):e.eatWhile(d)||e.backUp(1)):e.backUp(1)),u(t,e,"number")):r(e,O,N)?u(t,e,"open_paren"):r(e,z,P)?u(t,e,"close_paren"):i(e,M,L)?u(t,e,"separator"):i(e,I,R)?u(t,e,"operator"):u(t,e,null)}function r(e,t,n){if(1==e.current().length&&t.test(e.current())){for(e.backUp(1);t.test(e.peek());)if(e.next(),c(e.current(),n))return!0;e.backUp(e.current().length-1)}return!1}function i(e,t,n){if(1==e.current().length&&t.test(e.current())){for(;t.test(e.peek());)e.next();for(;0<e.current().length;){if(c(e.current(),n))return!0;e.backUp(1)}e.next()}return!1}function o(e){return s(e,'"',"\\")}function a(e){return s(e,"'","\\")}function s(e,t,n){for(;!e.eol();){var r=e.next();if(r==t)return!0;r==n&&e.next()}return!1}function l(e){var t=e.match(/([\n\s]+|%[^\n]*\n)*(.)/,!1);return t?t.pop():""}function c(e,t){return-1<t.indexOf(e)}function u(e,t,n){switch(m(e,f(n,t)),n){case"atom":return"atom";case"attribute":return"attribute";case"boolean":return"atom";case"builtin":return"builtin";case"close_paren":return null;case"colon":return null;case"comment":return"comment";case"dot":return null;case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"variable-2";case"number":return"number";case"open_paren":return null;case"operator":return"operator";case"record":return"bracket";case"separator":return null;case"string":return"string";case"type":return"def";case"variable":return"variable";default:return null}}function d(e,t,n,r){return{token:e,column:t,indent:n,type:r}}function f(e,t){return d(t.current(),t.column(),t.indentation(),e)}function p(e){return d(e,0,0,e)}function h(e,t){var n=e.tokenStack.length,r=t?t:1;return r>n?!1:e.tokenStack[n-r]}function m(e,t){"comment"!=t.type&&"whitespace"!=t.type&&(e.tokenStack=g(e.tokenStack,t),e.tokenStack=v(e.tokenStack))}function g(e,t){var n=e.length-1;return n>0&&"record"===e[n].type&&"dot"===t.type?e.pop():n>0&&"group"===e[n].type?(e.pop(),e.push(t)):e.push(t),e}function v(e){var t=e.length-1;if("dot"===e[t].type)return[];if("fun"===e[t].type&&"fun"===e[t-1].token)return e.slice(0,t-1);switch(e[e.length-1].token){case"}":return b(e,{g:["{"]});case"]":return b(e,{i:["["]});case")":return b(e,{i:["("]});case">>":return b(e,{i:["<<"]});case"end":return b(e,{i:["begin","case","fun","if","receive","try"]});case",":return b(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return b(e,{r:["when"],m:["try","if","case","receive"]});case";":return b(e,{E:["case","fun","if","receive","try","when"]});case"catch":return b(e,{e:["try"]});case"of":return b(e,{e:["case"]});case"after":return b(e,{e:["receive","try"]});default:return e}}function b(e,t){for(var n in t)for(var r=e.length-1,i=t[n],o=r-1;o>-1;o--)if(c(e[o].token,i)){var a=e.slice(0,o);switch(n){case"m":return a.concat(e[o]).concat(e[r]);case"r":return a.concat(e[r]);case"i":return a;case"g":return a.concat(p("group"));case"E":return a.concat(e[o]);case"e":return a.concat(e[o])}}return"E"==n?[]:e}function y(n,r){var i,o=t.indentUnit,a=k(r),s=h(n,1),l=h(n,2);return n.in_string||n.in_atom?e.Pass:l?"when"==s.token?s.column+o:"when"===a&&"function"===l.type?l.indent+o:"("===a&&"fun"===s.token?s.column+3:"catch"===a&&(i=w(n,["try"]))?i.column:c(a,["end","after","of"])?(i=w(n,["begin","case","fun","if","receive","try"]),i?i.column:e.Pass):c(a,P)?(i=w(n,N),i?i.column:e.Pass):c(s.token,[",","|","||"])||c(a,[",","|","||"])?(i=x(n),i?i.column+i.token.length:o):"->"==s.token?c(l.token,["receive","case","if","try"])?l.column+o+o:l.column+o:c(s.token,N)?s.column+s.token.length:(i=_(n),T(i)?i.column+o:0):0}function k(e){var t=e.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);return T(t)&&0===t.index?t[0]:""}function x(e){var t=e.tokenStack.slice(0,-1),n=S(t,"type",["open_paren"]);return T(t[n])?t[n]:!1}function _(e){var t=e.tokenStack,n=S(t,"type",["open_paren","separator","keyword"]),r=S(t,"type",["operator"]);return T(n)&&T(r)&&r>n?t[n+1]:T(n)?t[n]:!1}function w(e,t){var n=e.tokenStack,r=S(n,"token",t);return T(n[r])?n[r]:!1}function S(e,t,n){for(var r=e.length-1;r>-1;r--)if(c(e[r][t],n))return r;return!1}function T(e){return e!==!1&&null!=e}var E=["-type","-spec","-export_type","-opaque"],C=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],M=/[\->,;]/,L=["->",";",","],A=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],I=/[\+\-\*\/<>=\|:!]/,R=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],O=/[<\(\[\{]/,N=["<<","(","[","{"],z=/[>\)\]\}]/,P=["}","]",")",">>"],D=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],$=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],q=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/,j=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;
|
||
|
||
return{startState:function(){return{tokenStack:[],in_string:!1,in_atom:!1}},token:function(e,t){return n(e,t)},indent:function(e,t){return y(e,t)},lineComment:"%"}})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("fortran",function(){function e(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}function t(e,t){if(e.match(s))return"operator";var l=e.next();if("!"==l)return e.skipToEnd(),"comment";if('"'==l||"'"==l)return t.tokenize=n(l),t.tokenize(e,t);if(/[\[\]\(\),]/.test(l))return null;if(/\d/.test(l))return e.eatWhile(/[\w\.]/),"number";if(a.test(l))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_]/);var c=e.current().toLowerCase();return r.hasOwnProperty(c)?"keyword":i.hasOwnProperty(c)||o.hasOwnProperty(c)?"builtin":"variable"}function n(e){return function(t,n){for(var r=!1,i,o=!1;null!=(i=t.next());){if(i==e&&!r){o=!0;break}r=!r&&"\\"==i}return(o||!r)&&(n.tokenize=null),"string"}}var r=e(["abstract","accept","allocatable","allocate","array","assign","asynchronous","backspace","bind","block","byte","call","case","class","close","common","contains","continue","cycle","data","deallocate","decode","deferred","dimension","do","elemental","else","encode","end","endif","entry","enumerator","equivalence","exit","external","extrinsic","final","forall","format","function","generic","go","goto","if","implicit","import","include","inquire","intent","interface","intrinsic","module","namelist","non_intrinsic","non_overridable","none","nopass","nullify","open","optional","options","parameter","pass","pause","pointer","print","private","program","protected","public","pure","read","recursive","result","return","rewind","save","select","sequence","stop","subroutine","target","then","to","type","use","value","volatile","where","while","write"]),i=e(["abort","abs","access","achar","acos","adjustl","adjustr","aimag","aint","alarm","all","allocated","alog","amax","amin","amod","and","anint","any","asin","associated","atan","besj","besjn","besy","besyn","bit_size","btest","cabs","ccos","ceiling","cexp","char","chdir","chmod","clog","cmplx","command_argument_count","complex","conjg","cos","cosh","count","cpu_time","cshift","csin","csqrt","ctime","c_funloc","c_loc","c_associated","c_null_ptr","c_null_funptr","c_f_pointer","c_null_char","c_alert","c_backspace","c_form_feed","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","dabs","dacos","dasin","datan","date_and_time","dbesj","dbesj","dbesjn","dbesy","dbesy","dbesyn","dble","dcos","dcosh","ddim","derf","derfc","dexp","digits","dim","dint","dlog","dlog","dmax","dmin","dmod","dnint","dot_product","dprod","dsign","dsinh","dsin","dsqrt","dtanh","dtan","dtime","eoshift","epsilon","erf","erfc","etime","exit","exp","exponent","extends_type_of","fdate","fget","fgetc","float","floor","flush","fnum","fputc","fput","fraction","fseek","fstat","ftell","gerror","getarg","get_command","get_command_argument","get_environment_variable","getcwd","getenv","getgid","getlog","getpid","getuid","gmtime","hostnm","huge","iabs","iachar","iand","iargc","ibclr","ibits","ibset","ichar","idate","idim","idint","idnint","ieor","ierrno","ifix","imag","imagpart","index","int","ior","irand","isatty","ishft","ishftc","isign","iso_c_binding","is_iostat_end","is_iostat_eor","itime","kill","kind","lbound","len","len_trim","lge","lgt","link","lle","llt","lnblnk","loc","log","logical","long","lshift","lstat","ltime","matmul","max","maxexponent","maxloc","maxval","mclock","merge","move_alloc","min","minexponent","minloc","minval","mod","modulo","mvbits","nearest","new_line","nint","not","or","pack","perror","precision","present","product","radix","rand","random_number","random_seed","range","real","realpart","rename","repeat","reshape","rrspacing","rshift","same_type_as","scale","scan","second","selected_int_kind","selected_real_kind","set_exponent","shape","short","sign","signal","sinh","sin","sleep","sngl","spacing","spread","sqrt","srand","stat","sum","symlnk","system","system_clock","tan","tanh","time","tiny","transfer","transpose","trim","ttynam","ubound","umask","unlink","unpack","verify","xor","zabs","zcos","zexp","zlog","zsin","zsqrt"]),o=e(["c_bool","c_char","c_double","c_double_complex","c_float","c_float_complex","c_funptr","c_int","c_int16_t","c_int32_t","c_int64_t","c_int8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_int_fast8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_least8_t","c_intmax_t","c_intptr_t","c_long","c_long_double","c_long_double_complex","c_long_long","c_ptr","c_short","c_signed_char","c_size_t","character","complex","double","integer","logical","real"]),a=/[+\-*&=<>\/\:]/,s=new RegExp("(.and.|.or.|.eq.|.lt.|.le.|.gt.|.ge.|.ne.|.not.|.eqv.|.neqv.)","i");return{startState:function(){return{tokenize:null}},token:function(e,n){if(e.eatSpace())return null;var r=(n.tokenize||t)(e,n);return"comment"==r||"meta"==r?r:r}}}),e.defineMIME("text/x-fortran","fortran")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("gas",function(e,t){function n(e){s="#",c.ax="variable",c.eax="variable-2",c.rax="variable-3",c.bx="variable",c.ebx="variable-2",c.rbx="variable-3",c.cx="variable",c.ecx="variable-2",c.rcx="variable-3",c.dx="variable",c.edx="variable-2",c.rdx="variable-3",c.si="variable",c.esi="variable-2",c.rsi="variable-3",c.di="variable",c.edi="variable-2",c.rdi="variable-3",c.sp="variable",c.esp="variable-2",c.rsp="variable-3",c.bp="variable",c.ebp="variable-2",c.rbp="variable-3",c.ip="variable",c.eip="variable-2",c.rip="variable-3",c.cs="keyword",c.ds="keyword",c.ss="keyword",c.es="keyword",c.fs="keyword",c.gs="keyword"}function r(e){s="@",l.syntax="builtin",c.r0="variable",c.r1="variable",c.r2="variable",c.r3="variable",c.r4="variable",c.r5="variable",c.r6="variable",c.r7="variable",c.r8="variable",c.r9="variable",c.r10="variable",c.r11="variable",c.r12="variable",c.sp="variable-2",c.lr="variable-2",c.pc="variable-2",c.r13=c.sp,c.r14=c.lr,c.r15=c.pc,a.push(function(e,t){return"#"===e?(t.eatWhile(/\w/),"number"):void 0})}function i(e,t){for(var n=!1,r;null!=(r=e.next());){if(r===t&&!n)return!1;n=!n&&"\\"===r}return n}function o(e,t){for(var n=!1,r;null!=(r=e.next());){if("/"===r&&n){t.tokenize=null;break}n="*"===r}return"comment"}var a=[],s="",l={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"},c={},u=(t.architecture||"x86").toLowerCase();return"x86"===u?n(t):("arm"===u||"armv6"===u)&&r(t),{startState:function(){return{tokenize:null}},token:function(e,t){if(t.tokenize)return t.tokenize(e,t);if(e.eatSpace())return null;var n,r,u=e.next();if("/"===u&&e.eat("*"))return t.tokenize=o,o(e,t);if(u===s)return e.skipToEnd(),"comment";if('"'===u)return i(e,'"'),"string";if("."===u)return e.eatWhile(/\w/),r=e.current().toLowerCase(),n=l[r],n||null;if("="===u)return e.eatWhile(/\w/),"tag";if("{"===u)return"braket";if("}"===u)return"braket";if(/\d/.test(u))return"0"===u&&e.eat("x")?(e.eatWhile(/[0-9a-fA-F]/),"number"):(e.eatWhile(/\d/),"number");if(/\w/.test(u))return e.eatWhile(/\w/),e.eat(":")?"tag":(r=e.current().toLowerCase(),n=c[r],n||null);for(var d=0;d<a.length;d++)if(n=a[d](u,e,t))return n},lineComment:s,blockCommentStart:"/*",blockCommentEnd:"*/"}})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../markdown/markdown"),require("../../addon/mode/overlay")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../markdown/markdown","../../addon/mode/overlay"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("gfm",function(t,n){function r(e){return e.code=!1,null}var i=0,o={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(e){return{code:e.code,codeBlock:e.codeBlock,ateSpace:e.ateSpace}},token:function(e,t){if(t.combineTokens=null,t.codeBlock)return e.match(/^```/)?(t.codeBlock=!1,null):(e.skipToEnd(),null);if(e.sol()&&(t.code=!1),e.sol()&&e.match(/^```/))return e.skipToEnd(),t.codeBlock=!0,null;if("`"===e.peek()){e.next();var n=e.pos;e.eatWhile("`");var r=1+e.pos-n;return t.code?r===i&&(t.code=!1):(i=r,t.code=!0),null}if(t.code)return e.next(),null;if(e.eatSpace())return t.ateSpace=!0,null;if(e.sol()||t.ateSpace){if(t.ateSpace=!1,e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?:[a-f0-9]{7,40}\b)/))return t.combineTokens=!0,"link";if(e.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return t.combineTokens=!0,"link"}return e.match(/^((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i)&&"]("!=e.string.slice(e.start-2,e.start)?(t.combineTokens=!0,"link"):(e.next(),null)},blankLine:r},a={underscoresBreakWords:!1,taskLists:!0,fencedCodeBlocks:!0,strikethrough:!0};for(var s in n)a[s]=n[s];return a.name="markdown",e.defineMIME("gfmBase",a),e.overlayMode(e.getMode(t,"gfmBase"),o)},"markdown")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("gherkin",function(){return{startState:function(){return{lineNumber:0,tableHeaderLine:!1,allowFeature:!0,allowBackground:!1,allowScenario:!1,allowSteps:!1,allowPlaceholders:!1,allowMultilineArgument:!1,inMultilineString:!1,inMultilineTable:!1,inKeywordLine:!1}},token:function(e,t){if(e.sol()&&(t.lineNumber++,t.inKeywordLine=!1,t.inMultilineTable&&(t.tableHeaderLine=!1,e.match(/\s*\|/,!1)||(t.allowMultilineArgument=!1,t.inMultilineTable=!1))),e.eatSpace(),t.allowMultilineArgument){if(t.inMultilineString)return e.match('"""')?(t.inMultilineString=!1,t.allowMultilineArgument=!1):e.match(/.*/),"string";if(t.inMultilineTable)return e.match(/\|\s*/)?"bracket":(e.match(/[^\|]*/),t.tableHeaderLine?"header":"string");if(e.match('"""'))return t.inMultilineString=!0,"string";if(e.match("|"))return t.inMultilineTable=!0,t.tableHeaderLine=!0,"bracket"}return e.match(/#.*/)?"comment":!t.inKeywordLine&&e.match(/@\S+/)?"tag":!t.inKeywordLine&&t.allowFeature&&e.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)?(t.allowScenario=!0,t.allowBackground=!0,t.allowPlaceholders=!1,t.allowSteps=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowBackground&&e.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)?(t.allowPlaceholders=!0,t.allowSteps=!0,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):t.allowScenario&&e.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowSteps&&e.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/)?(t.inStep=!0,t.allowPlaceholders=!0,t.allowMultilineArgument=!0,t.inKeywordLine=!0,"keyword"):e.match(/"[^"]*"?/)?"string":t.allowPlaceholders&&e.match(/<[^>]*>?/)?"variable":(e.next(),e.eatWhile(/[^@"<#]/),null)}}}),e.defineMIME("text/x-feature","gherkin")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("go",function(e){function t(e,t){var i=e.next();if('"'==i||"'"==i||"`"==i)return t.tokenize=n(i),t.tokenize(e,t);if(/[\d\.]/.test(i))return"."==i?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==i?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(i))return d=i,null;if("/"==i){if(e.eat("*"))return t.tokenize=r,r(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(u.test(i))return e.eatWhile(u),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var o=e.current();return l.propertyIsEnumerable(o)?(("case"==o||"default"==o)&&(d="case"),"keyword"):c.propertyIsEnumerable(o)?"atom":"variable"}function n(e){return function(n,r){for(var i=!1,o,a=!1;null!=(o=n.next());){if(o==e&&!i){a=!0;break}i=!i&&"\\"==o}return(a||!i&&"`"!=e)&&(r.tokenize=t),"string"}}function r(e,n){for(var r=!1,i;i=e.next();){if("/"==i&&r){n.tokenize=t;break}r="*"==i}return"comment"}function i(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function o(e,t,n){return e.context=new i(e.indented,t,n,null,e.context)}function a(e){var t=e.context.type;return(")"==t||"]"==t||"}"==t)&&(e.indented=e.context.indented),e.context=e.context.prev}var s=e.indentUnit,l={"break":!0,"case":!0,chan:!0,"const":!0,"continue":!0,"default":!0,defer:!0,"else":!0,fallthrough:!0,"for":!0,func:!0,go:!0,"goto":!0,"if":!0,"import":!0,"interface":!0,map:!0,"package":!0,range:!0,"return":!0,select:!0,struct:!0,"switch":!0,type:!0,"var":!0,bool:!0,"byte":!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,"int":!0,uint:!0,uintptr:!0},c={"true":!0,"false":!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,imag:!0,len:!0,make:!0,"new":!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},u=/[+\-*&^%:=<>!|\/]/,d;return{startState:function(e){return{tokenize:null,context:new i((e||0)-s,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var r=n.context;if(e.sol()&&(null==r.align&&(r.align=!1),n.indented=e.indentation(),n.startOfLine=!0,"case"==r.type&&(r.type="}")),e.eatSpace())return null;d=null;var i=(n.tokenize||t)(e,n);return"comment"==i?i:(null==r.align&&(r.align=!0),"{"==d?o(n,e.column(),"}"):"["==d?o(n,e.column(),"]"):"("==d?o(n,e.column(),")"):"case"==d?r.type="case":"}"==d&&"}"==r.type?r=a(n):d==r.type&&a(n),n.startOfLine=!1,i)},indent:function(e,n){if(e.tokenize!=t&&null!=e.tokenize)return 0;var r=e.context,i=n&&n.charAt(0);if("case"==r.type&&/^(?:case|default)\b/.test(n))return e.context.type="}",r.indented;var o=i==r.type;return r.align?r.column+(o?0:1):r.indented+(o?0:s)},electricChars:"{}):",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),e.defineMIME("text/x-go","go")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("groovy",function(e){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function n(e,t){var n=e.next();if('"'==n||"'"==n)return r(n,e,t);if(/[\[\]{}\(\),;\:\.]/.test(n))return p=n,null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),e.eat(/eE/)&&(e.eat(/\+\-/),e.eatWhile(/\d/)),"number";if("/"==n){if(e.eat("*"))return t.tokenize.push(o),o(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";if(a(t.lastToken))return r(n,e,t)}if("-"==n&&e.eat(">"))return p="->",null;if(/[+\-*&%=<>!?|\/~]/.test(n))return e.eatWhile(/[+\-*&%=<>|~]/),"operator";if(e.eatWhile(/[\w\$_]/),"@"==n)return e.eatWhile(/[\w\$_\.]/),"meta";if("."==t.lastToken)return"property";if(e.eat(":"))return p="proplabel","property";var i=e.current();return f.propertyIsEnumerable(i)?"atom":u.propertyIsEnumerable(i)?(d.propertyIsEnumerable(i)&&(p="newstatement"),"keyword"):"variable"}function r(e,t,n){function r(t,n){for(var r=!1,a,s=!o;null!=(a=t.next());){if(a==e&&!r){if(!o)break;if(t.match(e+e)){s=!0;break}}if('"'==e&&"$"==a&&!r&&t.eat("{"))return n.tokenize.push(i()),"string";r=!r&&"\\"==a}return s&&n.tokenize.pop(),"string"}var o=!1;if("/"!=e&&t.eat(e)){if(!t.eat(e))return"string";o=!0}return n.tokenize.push(r),r(t,n)}function i(){function e(e,r){if("}"==e.peek()){if(t--,0==t)return r.tokenize.pop(),r.tokenize[r.tokenize.length-1](e,r)}else"{"==e.peek()&&t++;return n(e,r)}var t=1;return e.isBase=!0,e}function o(e,t){for(var n=!1,r;r=e.next();){if("/"==r&&n){t.tokenize.pop();break}n="*"==r}return"comment"}function a(e){return!e||"operator"==e||"->"==e||/[\.\[\{\(,;:]/.test(e)||"newstatement"==e||"keyword"==e||"proplabel"==e}function s(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function l(e,t,n){return e.context=new s(e.indented,t,n,null,e.context)}function c(e){var t=e.context.type;return(")"==t||"]"==t||"}"==t)&&(e.indented=e.context.indented),e.context=e.context.prev}var u=t("abstract as assert boolean break byte case catch char class const continue def default do double else enum extends final finally float for goto if implements import in instanceof int interface long native new package private protected public return short static strictfp super switch synchronized threadsafe throw throws transient try void volatile while"),d=t("catch class do else finally for if switch try while enum interface def"),f=t("null true false this"),p;return n.isBase=!0,{startState:function(t){return{tokenize:[n],context:new s((t||0)-e.indentUnit,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"statement"!=n.type||a(t.lastToken)||(c(t),n=t.context)),e.eatSpace())return null;p=null;var r=t.tokenize[t.tokenize.length-1](e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),";"!=p&&":"!=p||"statement"!=n.type)if("->"==p&&"statement"==n.type&&"}"==n.prev.type)c(t),t.context.align=!1;else if("{"==p)l(t,e.column(),"}");else if("["==p)l(t,e.column(),"]");else if("("==p)l(t,e.column(),")");else if("}"==p){for(;"statement"==n.type;)n=c(t);for("}"==n.type&&(n=c(t));"statement"==n.type;)n=c(t)}else p==n.type?c(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==p)&&l(t,e.column(),"statement");else c(t);return t.startOfLine=!1,t.lastToken=p||r,r},indent:function(t,n){if(!t.tokenize[t.tokenize.length-1].isBase)return 0;var r=n&&n.charAt(0),i=t.context;"statement"!=i.type||a(t.lastToken)||(i=i.prev);var o=r==i.type;return"statement"==i.type?i.indented+("{"==r?0:e.indentUnit):i.align?i.column+(o?0:1):i.indented+(o?0:e.indentUnit)},electricChars:"{}",fold:"brace"}}),e.defineMIME("text/x-groovy","groovy")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../ruby/ruby")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../ruby/ruby"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("haml",function(t){function n(e){return function(t,n){var o=t.peek();return o==e&&1==n.rubyState.tokenize.length?(t.next(),n.tokenize=i,"closeAttributeTag"):r(t,n)}}function r(e,t){return e.match("-#")?(e.skipToEnd(),"comment"):a.token(e,t.rubyState)}function i(e,t){var i=e.peek();if("comment"==t.previousToken.style&&t.indented>t.previousToken.indented)return e.skipToEnd(),"commentLine";if(t.startOfLine){if("!"==i&&e.match("!!"))return e.skipToEnd(),"tag";if(e.match(/^%[\w:#\.]+=/))return t.tokenize=r,"hamlTag";if(e.match(/^%[\w:]+/))return"hamlTag";if("/"==i)return e.skipToEnd(),"comment"}if((t.startOfLine||"hamlTag"==t.previousToken.style)&&("#"==i||"."==i))return e.match(/[\w-#\.]*/),"hamlAttribute";if(t.startOfLine&&!e.match("-->",!1)&&("="==i||"-"==i))return t.tokenize=r,t.tokenize(e,t);if("hamlTag"==t.previousToken.style||"closeAttributeTag"==t.previousToken.style||"hamlAttribute"==t.previousToken.style){if("("==i)return t.tokenize=n(")"),t.tokenize(e,t);if("{"==i)return t.tokenize=n("}"),t.tokenize(e,t)}return o.token(e,t.htmlState)}var o=e.getMode(t,{name:"htmlmixed"}),a=e.getMode(t,"ruby");return{startState:function(){var e=o.startState(),t=a.startState();return{htmlState:e,rubyState:t,indented:0,previousToken:{style:null,indented:0},tokenize:i}},copyState:function(t){return{htmlState:e.copyState(o,t.htmlState),rubyState:e.copyState(a,t.rubyState),indented:t.indented,previousToken:t.previousToken,tokenize:t.tokenize}},token:function(e,t){if(e.sol()&&(t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;var n=t.tokenize(e,t);if(t.startOfLine=!1,n&&"commentLine"!=n&&(t.previousToken={style:n,indented:t.indented}),e.eol()&&t.tokenize==r){e.backUp(1);var o=e.peek();e.next(),o&&","!=o&&(t.tokenize=i)}return"hamlTag"==n?n="tag":"commentLine"==n?n="comment":"hamlAttribute"==n?n="attribute":"closeAttributeTag"==n&&(n=null),n}}},"htmlmixed","ruby"),e.defineMIME("text/x-haml","haml")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("haskell",function(e,t){function n(e,t,n){return t(n),n(e,t)}function r(e,t){if(e.eatWhile(m))return null;var r=e.next();if(h.test(r)){if("{"==r&&e.eat("-")){var a="comment";return e.eat("#")&&(a="meta"),n(e,t,i(a,1))}return null}if("'"==r)return e.eat("\\"),e.next(),e.eat("'")?"string":"error";if('"'==r)return n(e,t,o);if(l.test(r))return e.eatWhile(f),e.eat(".")?"qualifier":"variable-2";if(s.test(r))return e.eatWhile(f),"variable";if(c.test(r)){if("0"==r){if(e.eat(/[xX]/))return e.eatWhile(u),"integer";if(e.eat(/[oO]/))return e.eatWhile(d),"number"}e.eatWhile(c);var a="number";return e.match(/^\.\d+/)&&(a="number"),e.eat(/[eE]/)&&(a="number",e.eat(/[-+]/),e.eatWhile(c)),a}if("."==r&&e.eat("."))return"keyword";if(p.test(r)){if("-"==r&&e.eat(/-/)&&(e.eatWhile(/-/),!e.eat(p)))return e.skipToEnd(),"comment";var a="variable";return":"==r&&(a="variable-2"),e.eatWhile(p),a}return"error"}function i(e,t){return 0==t?r:function(n,o){for(var a=t;!n.eol();){var s=n.next();if("{"==s&&n.eat("-"))++a;else if("-"==s&&n.eat("}")&&(--a,0==a))return o(r),e}return o(i(e,a)),e}}function o(e,t){for(;!e.eol();){var n=e.next();if('"'==n)return t(r),"string";if("\\"==n){if(e.eol()||e.eat(m))return t(a),"string";e.eat("&")||e.next()}}return t(r),"error"}function a(e,t){return e.eat("\\")?n(e,t,o):(e.next(),t(r),"error")}var s=/[a-z_]/,l=/[A-Z]/,c=/\d/,u=/[0-9A-Fa-f]/,d=/[0-7]/,f=/[a-z_A-Z0-9'\xa1-\uffff]/,p=/[-!#$%&*+.\/<=>?@\\^|~:]/,h=/[(),;[\]`{}]/,m=/[ \t\v\f]/,g=function(){function e(e){return function(){for(var t=0;t<arguments.length;t++)n[arguments[t]]=e}}var n={};e("keyword")("case","class","data","default","deriving","do","else","foreign","if","import","in","infix","infixl","infixr","instance","let","module","newtype","of","then","type","where","_"),e("keyword")("..",":","::","=","\\",'"',"<-","->","@","~","=>"),e("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<=","=<<","==",">",">=",">>",">>=","^","^^","||","*","**"),e("builtin")("Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),e("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");
|
||
|
||
var r=t.overrideKeywords;if(r)for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i]);return n}();return{startState:function(){return{f:r}},copyState:function(e){return{f:e.f}},token:function(e,t){var n=t.f(e,function(e){t.f=e}),r=e.current();return g.hasOwnProperty(r)?g[r]:n},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}}),e.defineMIME("text/x-haskell","haskell")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("haxe",function(e,t){function n(e,t,n){return t.tokenize=n,n(e,t)}function r(e,t){for(var n=!1,r;null!=(r=e.next());){if(r==t&&!n)return!1;n=!n&&"\\"==r}return n}function i(e,t,n){return G=e,K=n,t}function o(e,t){var o=e.next();if('"'==o||"'"==o)return n(e,t,a(o));if(/[\[\]{}\(\),;\:\.]/.test(o))return i(o);if("0"==o&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),i("number","number");if(/\d/.test(o)||"-"==o&&e.eat(/\d/))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),i("number","number");if(t.reAllowed&&"~"==o&&e.eat(/\//))return r(e,"/"),e.eatWhile(/[gimsu]/),i("regexp","string-2");if("/"==o)return e.eat("*")?n(e,t,s):e.eat("/")?(e.skipToEnd(),i("comment","comment")):(e.eatWhile(V),i("operator",null,e.current()));if("#"==o)return e.skipToEnd(),i("conditional","meta");if("@"==o)return e.eat(/:/),e.eatWhile(/[\w_]/),i("metadata","meta");if(V.test(o))return e.eatWhile(V),i("operator",null,e.current());var l;if(/[A-Z]/.test(o))return e.eatWhile(/[\w_<>]/),l=e.current(),i("type","variable-3",l);e.eatWhile(/[\w_]/);var l=e.current(),c=H.propertyIsEnumerable(l)&&H[l];return c&&t.kwAllowed?i(c.type,c.style,l):i("variable","variable",l)}function a(e){return function(t,n){return r(t,e)||(n.tokenize=o),i("string","string")}}function s(e,t){for(var n=!1,r;r=e.next();){if("/"==r&&n){t.tokenize=o;break}n="*"==r}return i("comment","comment")}function l(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function c(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0}function u(e,t,n,r,i){var o=e.cc;for(Z.state=e,Z.stream=i,Z.marked=null,Z.cc=o,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){var a=o.length?o.pop():x;if(a(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return Z.marked?Z.marked:"variable"==n&&c(e,r)?"variable-2":"variable"==n&&d(e,r)?"variable-3":t}}}function d(e,t){if(/[a-z]/.test(t.charAt(0)))return!1;for(var n=e.importedtypes.length,r=0;n>r;r++)if(e.importedtypes[r]==t)return!0}function f(e){for(var t=Z.state,n=t.importedtypes;n;n=n.next)if(n.name==e)return;t.importedtypes={name:e,next:t.importedtypes}}function p(){for(var e=arguments.length-1;e>=0;e--)Z.cc.push(arguments[e])}function h(){return p.apply(null,arguments),!0}function m(e){var t=Z.state;if(t.context){Z.marked="def";for(var n=t.localVars;n;n=n.next)if(n.name==e)return;t.localVars={name:e,next:t.localVars}}}function g(){Z.state.context||(Z.state.localVars=J),Z.state.context={prev:Z.state.context,vars:Z.state.localVars}}function v(){Z.state.localVars=Z.state.context.vars,Z.state.context=Z.state.context.prev}function b(e,t){var n=function(){var n=Z.state;n.lexical=new l(n.indented,Z.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function y(){var e=Z.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function k(e){function t(n){return n==e?h():";"==e?p():h(t)}return t}function x(e){return"@"==e?h(E):"var"==e?h(b("vardef"),z,k(";"),y):"keyword a"==e?h(b("form"),_,x,y):"keyword b"==e?h(b("form"),x,y):"{"==e?h(b("}"),g,N,y,v):";"==e?h():"attribute"==e?h(T):"function"==e?h(q):"for"==e?h(b("form"),k("("),b(")"),D,k(")"),y,x,y):"variable"==e?h(b("stat"),A):"switch"==e?h(b("form"),_,b("}","switch"),k("{"),N,y,y):"case"==e?h(_,k(":")):"default"==e?h(k(":")):"catch"==e?h(b("form"),g,k("("),F,k(")"),x,y,v):"import"==e?h(M,k(";")):"typedef"==e?h(L):p(b("stat"),_,k(";"),y)}function _(e){return Y.hasOwnProperty(e)?h(S):"function"==e?h(q):"keyword c"==e?h(w):"("==e?h(b(")"),w,k(")"),y,S):"operator"==e?h(_):"["==e?h(b("]"),O(_,"]"),y,S):"{"==e?h(b("}"),O(R,"}"),y,S):h()}function w(e){return e.match(/[;\}\)\],]/)?p():p(_)}function S(e,t){if("operator"==e&&/\+\+|--/.test(t))return h(S);if("operator"==e||":"==e)return h(_);if(";"!=e)return"("==e?h(b(")"),O(_,")"),y,S):"."==e?h(I,S):"["==e?h(b("]"),_,k("]"),y,S):void 0}function T(e){return"attribute"==e?h(T):"function"==e?h(q):"var"==e?h(z):void 0}function E(e){return":"==e?h(E):"variable"==e?h(E):"("==e?h(b(")"),O(C,")"),y,x):void 0}function C(e){return"variable"==e?h():void 0}function M(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(f(t),h()):"variable"==e||"property"==e||"."==e||"*"==t?h(M):void 0}function L(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(f(t),h()):"type"==e&&/[A-Z]/.test(t.charAt(0))?h():void 0}function A(e){return":"==e?h(y,x):p(S,k(";"),y)}function I(e){return"variable"==e?(Z.marked="property",h()):void 0}function R(e){return"variable"==e&&(Z.marked="property"),Y.hasOwnProperty(e)?h(k(":"),_):void 0}function O(e,t){function n(r){return","==r?h(e,n):r==t?h():h(k(t))}return function(r){return r==t?h():p(e,n)}}function N(e){return"}"==e?h():p(x,N)}function z(e,t){return"variable"==e?(m(t),h(j,P)):h()}function P(e,t){return"="==t?h(_,P):","==e?h(z):void 0}function D(e,t){return"variable"==e&&m(t),h(b(")"),g,$,_,y,x,v)}function $(e,t){return"in"==t?h():void 0}function q(e,t){return"variable"==e?(m(t),h(q)):"new"==t?h(q):"("==e?h(b(")"),g,O(F,")"),y,j,x,v):void 0}function j(e){return":"==e?h(W):void 0}function W(e){return"type"==e?h():"variable"==e?h():"{"==e?h(b("}"),O(U,"}"),y):void 0}function U(e){return"variable"==e?h(j):void 0}function F(e,t){return"variable"==e?(m(t),h(j)):void 0}var B=e.indentUnit,H=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("operator"),o={type:"atom",style:"atom"},a={type:"attribute",style:"attribute"},s=e("typedef");return{"if":t,"while":t,"else":n,"do":n,"try":n,"return":r,"break":r,"continue":r,"new":r,"throw":r,"var":e("var"),inline:a,"static":a,using:e("import"),"public":a,"private":a,cast:e("cast"),"import":e("import"),macro:e("macro"),"function":e("function"),"catch":e("catch"),untyped:e("untyped"),callback:e("cb"),"for":e("for"),"switch":e("switch"),"case":e("case"),"default":e("default"),"in":i,never:e("property_access"),trace:e("trace"),"class":s,"abstract":s,"enum":s,"interface":s,typedef:s,"extends":s,"implements":s,dynamic:s,"true":o,"false":o,"null":o}}(),V=/[+\-*&%=<>!?|]/,G,K,Y={atom:!0,number:!0,variable:!0,string:!0,regexp:!0},Z={state:null,column:null,marked:null,cc:null},J={name:"this",next:null};return y.lex=!0,{startState:function(e){var n=["Int","Float","String","Void","Std","Bool","Dynamic","Array"];return{tokenize:o,reAllowed:!0,kwAllowed:!0,cc:[],lexical:new l((e||0)-B,0,"block",!1),localVars:t.localVars,importedtypes:n,context:t.localVars&&{vars:t.localVars},indented:0}},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==G?n:(t.reAllowed=!("operator"!=G&&"keyword c"!=G&&!G.match(/^[\[{}\(,;:]$/)),t.kwAllowed="."!=G,u(t,n,G,K,e))},indent:function(e,t){if(e.tokenize!=o)return 0;var n=t&&t.charAt(0),r=e.lexical;"stat"==r.type&&"}"==n&&(r=r.prev);var i=r.type,a=n==i;return"vardef"==i?r.indented+4:"form"==i&&"{"==n?r.indented:"stat"==i||"form"==i?r.indented+B:"switch"!=r.info||a?r.align?r.column+(a?0:1):r.indented+(a?0:B):r.indented+(/^(?:case|default)\b/.test(t)?B:2*B)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),e.defineMIME("text/x-haxe","haxe"),e.defineMode("hxml",function(){return{startState:function(){return{define:!1,inString:!1}},token:function(e,t){var n=e.peek(),r=e.sol();if("#"==n)return e.skipToEnd(),"comment";if(r&&"-"==n){var i="variable-2";return e.eat(/-/),"-"==e.peek()&&(e.eat(/-/),i="keyword a"),"D"==e.peek()&&(e.eat(/[D]/),i="keyword c",t.define=!0),e.eatWhile(/[A-Z]/i),i}var n=e.peek();return 0==t.inString&&"'"==n&&(t.inString=!0,n=e.next()),1==t.inString?(e.skipTo("'")||e.skipToEnd(),"'"==e.peek()&&(e.next(),t.inString=!1),"string"):(e.next(),null)},lineComment:"#"}}),e.defineMIME("text/x-hxml","hxml")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("htmlembedded",function(t,n){function r(e,t){return e.match(o,!1)?(t.token=i,s.token(e,t.scriptState)):l.token(e,t.htmlState)}function i(e,t){return e.match(a,!1)?(t.token=r,l.token(e,t.htmlState)):s.token(e,t.scriptState)}var o=n.scriptStartRegex||/^<%/i,a=n.scriptEndRegex||/^%>/i,s,l;return{startState:function(){return s=s||e.getMode(t,n.scriptingModeSpec),l=l||e.getMode(t,"htmlmixed"),{token:n.startOpen?i:r,htmlState:e.startState(l),scriptState:e.startState(s)}},token:function(e,t){return t.token(e,t)},indent:function(e,t){return e.token==r?l.indent(e.htmlState,t):s.indent?s.indent(e.scriptState,t):void 0},copyState:function(t){return{token:t.token,htmlState:e.copyState(l,t.htmlState),scriptState:e.copyState(s,t.scriptState)}},innerMode:function(e){return e.token==i?{state:e.scriptState,mode:s}:{state:e.htmlState,mode:l}}}},"htmlmixed"),e.defineMIME("application/x-ejs",{name:"htmlembedded",scriptingModeSpec:"javascript"}),e.defineMIME("application/x-aspx",{name:"htmlembedded",scriptingModeSpec:"text/x-csharp"}),e.defineMIME("application/x-jsp",{name:"htmlembedded",scriptingModeSpec:"text/x-java"}),e.defineMIME("application/x-erb",{name:"htmlembedded",scriptingModeSpec:"ruby"})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("htmlmixed",function(t,n){function r(e,t){var n=t.htmlState.tagName;n&&(n=n.toLowerCase());var r=s.token(e,t.htmlState);if("script"==n&&/\btag\b/.test(r)&&">"==e.current()){var i=e.string.slice(Math.max(0,e.pos-100),e.pos).match(/\btype\s*=\s*("[^"]+"|'[^']+'|\S+)[^<]*$/i);i=i?i[1]:"",i&&/[\"\']/.test(i.charAt(0))&&(i=i.slice(1,i.length-1));for(var u=0;u<c.length;++u){var d=c[u];if("string"==typeof d.matches?i==d.matches:d.matches.test(i)){d.mode&&(t.token=o,t.localMode=d.mode,t.localState=d.mode.startState&&d.mode.startState(s.indent(t.htmlState,"")));break}}}else"style"==n&&/\btag\b/.test(r)&&">"==e.current()&&(t.token=a,t.localMode=l,t.localState=l.startState(s.indent(t.htmlState,"")));return r}function i(e,t,n){var r=e.current(),i=r.search(t),o;return i>-1?e.backUp(r.length-i):(o=r.match(/<\/?$/))&&(e.backUp(r.length),e.match(t,!1)||e.match(r)),n}function o(e,t){return e.match(/^<\/\s*script\s*>/i,!1)?(t.token=r,t.localState=t.localMode=null,null):i(e,/<\/\s*script\s*>/,t.localMode.token(e,t.localState))}function a(e,t){return e.match(/^<\/\s*style\s*>/i,!1)?(t.token=r,t.localState=t.localMode=null,null):i(e,/<\/\s*style\s*>/,l.token(e,t.localState))}var s=e.getMode(t,{name:"xml",htmlMode:!0,multilineTagIndentFactor:n.multilineTagIndentFactor,multilineTagIndentPastTag:n.multilineTagIndentPastTag}),l=e.getMode(t,"css"),c=[],u=n&&n.scriptTypes;if(c.push({matches:/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^$/i,mode:e.getMode(t,"javascript")}),u)for(var d=0;d<u.length;++d){var f=u[d];c.push({matches:f.matches,mode:f.mode&&e.getMode(t,f.mode)})}return c.push({matches:/./,mode:e.getMode(t,"text/plain")}),{startState:function(){var e=s.startState();return{token:r,localMode:null,localState:null,htmlState:e}},copyState:function(t){if(t.localState)var n=e.copyState(t.localMode,t.localState);return{token:t.token,localMode:t.localMode,localState:n,htmlState:e.copyState(s,t.htmlState)}},token:function(e,t){return t.token(e,t)},indent:function(t,n){return!t.localMode||/^\s*<\//.test(n)?s.indent(t.htmlState,n):t.localMode.indent?t.localMode.indent(t.localState,n):e.Pass},innerMode:function(e){return{state:e.localState||e.htmlState,mode:e.localMode||s}}}},"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("http",function(){function e(e,t){return e.skipToEnd(),t.cur=a,"error"}function t(t,r){return t.match(/^HTTP\/\d\.\d/)?(r.cur=n,"keyword"):t.match(/^[A-Z]+/)&&/[ \t]/.test(t.peek())?(r.cur=i,"keyword"):e(t,r)}function n(t,n){var i=t.match(/^\d+/);if(!i)return e(t,n);n.cur=r;var o=Number(i[0]);return o>=100&&200>o?"positive informational":o>=200&&300>o?"positive success":o>=300&&400>o?"positive redirect":o>=400&&500>o?"negative client-error":o>=500&&600>o?"negative server-error":"error"}function r(e,t){return e.skipToEnd(),t.cur=a,null}function i(e,t){return e.eatWhile(/\S/),t.cur=o,"string-2"}function o(t,n){return t.match(/^HTTP\/\d\.\d$/)?(n.cur=a,"keyword"):e(t,n)}function a(e){return e.sol()&&!e.eat(/[ \t]/)?e.match(/^.*?:/)?"atom":(e.skipToEnd(),"error"):(e.skipToEnd(),"string")}function s(e){return e.skipToEnd(),null}return{token:function(e,t){var n=t.cur;return n!=a&&n!=s&&e.eatSpace()?null:n(e,t)},blankLine:function(e){e.cur=s},startState:function(){return{cur:t}}}}),e.defineMIME("message/http","http")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}function n(e){if(e.eatSpace())return null;if(e.match(";"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)?"string":e.match(/^'([^']|(''))*'/)?"string":e.match(a)?"keyword":e.match(i)?"builtin":e.match(s)?"variable":e.match(l)||e.match(c)?"operator":(e.next(),"error")}var r=["a_correlate","abs","acos","adapt_hist_equal","alog","alog2","alog10","amoeba","annotate","app_user_dir","app_user_dir_query","arg_present","array_equal","array_indices","arrow","ascii_template","asin","assoc","atan","axis","axis","bandpass_filter","bandreject_filter","barplot","bar_plot","beseli","beselj","beselk","besely","beta","biginteger","bilinear","bin_date","binary_template","bindgen","binomial","bit_ffs","bit_population","blas_axpy","blk_con","boolarr","boolean","boxplot","box_cursor","breakpoint","broyden","bubbleplot","butterworth","bytarr","byte","byteorder","bytscl","c_correlate","calendar","caldat","call_external","call_function","call_method","call_procedure","canny","catch","cd","cdf","ceil","chebyshev","check_math","chisqr_cvf","chisqr_pdf","choldc","cholsol","cindgen","cir_3pnt","clipboard","close","clust_wts","cluster","cluster_tree","cmyk_convert","code_coverage","color_convert","color_exchange","color_quan","color_range_map","colorbar","colorize_sample","colormap_applicable","colormap_gradient","colormap_rotation","colortable","comfit","command_line_args","common","compile_opt","complex","complexarr","complexround","compute_mesh_normals","cond","congrid","conj","constrained_min","contour","contour","convert_coord","convol","convol_fft","coord2to3","copy_lun","correlate","cos","cosh","cpu","cramer","createboxplotdata","create_cursor","create_struct","create_view","crossp","crvlength","ct_luminance","cti_test","cursor","curvefit","cv_coord","cvttobm","cw_animate","cw_animate_getp","cw_animate_load","cw_animate_run","cw_arcball","cw_bgroup","cw_clr_index","cw_colorsel","cw_defroi","cw_field","cw_filesel","cw_form","cw_fslider","cw_light_editor","cw_light_editor_get","cw_light_editor_set","cw_orient","cw_palette_editor","cw_palette_editor_get","cw_palette_editor_set","cw_pdmenu","cw_rgbslider","cw_tmpl","cw_zoom","db_exists","dblarr","dcindgen","dcomplex","dcomplexarr","define_key","define_msgblk","define_msgblk_from_file","defroi","defsysv","delvar","dendro_plot","dendrogram","deriv","derivsig","determ","device","dfpmin","diag_matrix","dialog_dbconnect","dialog_message","dialog_pickfile","dialog_printersetup","dialog_printjob","dialog_read_image","dialog_write_image","dictionary","digital_filter","dilate","dindgen","dissolve","dist","distance_measure","dlm_load","dlm_register","doc_library","double","draw_roi","edge_dog","efont","eigenql","eigenvec","ellipse","elmhes","emboss","empty","enable_sysrtn","eof","eos","erase","erf","erfc","erfcx","erode","errorplot","errplot","estimator_filter","execute","exit","exp","expand","expand_path","expint","extrac","extract_slice","f_cvf","f_pdf","factorial","fft","file_basename","file_chmod","file_copy","file_delete","file_dirname","file_expand_path","file_gunzip","file_gzip","file_info","file_lines","file_link","file_mkdir","file_move","file_poll_input","file_readlink","file_same","file_search","file_tar","file_test","file_untar","file_unzip","file_which","file_zip","filepath","findgen","finite","fix","flick","float","floor","flow3","fltarr","flush","format_axis_values","forward_function","free_lun","fstat","fulstr","funct","function","fv_test","fx_root","fz_roots","gamma","gamma_ct","gauss_cvf","gauss_pdf","gauss_smooth","gauss2dfit","gaussfit","gaussian_function","gaussint","get_drive_list","get_dxf_objects","get_kbrd","get_login_info","get_lun","get_screen_size","getenv","getwindows","greg2jul","grib","grid_input","grid_tps","grid3","griddata","gs_iter","h_eq_ct","h_eq_int","hanning","hash","hdf","hdf5","heap_free","heap_gc","heap_nosave","heap_refcount","heap_save","help","hilbert","hist_2d","hist_equal","histogram","hls","hough","hqr","hsv","i18n_multibytetoutf8","i18n_multibytetowidechar","i18n_utf8tomultibyte","i18n_widechartomultibyte","ibeta","icontour","iconvertcoord","idelete","identity","idl_base64","idl_container","idl_validname","idlexbr_assistant","idlitsys_createtool","idlunit","iellipse","igamma","igetcurrent","igetdata","igetid","igetproperty","iimage","image","image_cont","image_statistics","image_threshold","imaginary","imap","indgen","int_2d","int_3d","int_tabulated","intarr","interpol","interpolate","interval_volume","invert","ioctl","iopen","ir_filter","iplot","ipolygon","ipolyline","iputdata","iregister","ireset","iresolve","irotate","isa","isave","iscale","isetcurrent","isetproperty","ishft","isocontour","isosurface","isurface","itext","itranslate","ivector","ivolume","izoom","journal","json_parse","json_serialize","jul2greg","julday","keyword_set","krig2d","kurtosis","kw_test","l64indgen","la_choldc","la_cholmprove","la_cholsol","la_determ","la_eigenproblem","la_eigenql","la_eigenvec","la_elmhes","la_gm_linear_model","la_hqr","la_invert","la_least_square_equality","la_least_squares","la_linear_equation","la_ludc","la_lumprove","la_lusol","la_svd","la_tridc","la_trimprove","la_triql","la_trired","la_trisol","label_date","label_region","ladfit","laguerre","lambda","lambdap","lambertw","laplacian","least_squares_filter","leefilt","legend","legendre","linbcg","lindgen","linfit","linkimage","list","ll_arc_distance","lmfit","lmgr","lngamma","lnp_test","loadct","locale_get","logical_and","logical_or","logical_true","lon64arr","lonarr","long","long64","lsode","lu_complex","ludc","lumprove","lusol","m_correlate","machar","make_array","make_dll","make_rt","map","mapcontinents","mapgrid","map_2points","map_continents","map_grid","map_image","map_patch","map_proj_forward","map_proj_image","map_proj_info","map_proj_init","map_proj_inverse","map_set","matrix_multiply","matrix_power","max","md_test","mean","meanabsdev","mean_filter","median","memory","mesh_clip","mesh_decimate","mesh_issolid","mesh_merge","mesh_numtriangles","mesh_obj","mesh_smooth","mesh_surfacearea","mesh_validate","mesh_volume","message","min","min_curve_surf","mk_html_help","modifyct","moment","morph_close","morph_distance","morph_gradient","morph_hitormiss","morph_open","morph_thin","morph_tophat","multi","n_elements","n_params","n_tags","ncdf","newton","noise_hurl","noise_pick","noise_scatter","noise_slur","norm","obj_class","obj_destroy","obj_hasmethod","obj_isa","obj_new","obj_valid","objarr","on_error","on_ioerror","online_help","openr","openu","openw","oplot","oploterr","orderedhash","p_correlate","parse_url","particle_trace","path_cache","path_sep","pcomp","plot","plot3d","plot","plot_3dbox","plot_field","ploterr","plots","polar_contour","polar_surface","polyfill","polyshade","pnt_line","point_lun","polarplot","poly","poly_2d","poly_area","poly_fit","polyfillv","polygon","polyline","polywarp","popd","powell","pref_commit","pref_get","pref_set","prewitt","primes","print","printf","printd","pro","product","profile","profiler","profiles","project_vol","ps_show_fonts","psafm","pseudo","ptr_free","ptr_new","ptr_valid","ptrarr","pushd","qgrid3","qhull","qromb","qromo","qsimp","query_*","query_ascii","query_bmp","query_csv","query_dicom","query_gif","query_image","query_jpeg","query_jpeg2000","query_mrsid","query_pict","query_png","query_ppm","query_srf","query_tiff","query_video","query_wav","r_correlate","r_test","radon","randomn","randomu","ranks","rdpix","read","readf","read_ascii","read_binary","read_bmp","read_csv","read_dicom","read_gif","read_image","read_interfile","read_jpeg","read_jpeg2000","read_mrsid","read_pict","read_png","read_ppm","read_spr","read_srf","read_sylk","read_tiff","read_video","read_wav","read_wave","read_x11_bitmap","read_xwd","reads","readu","real_part","rebin","recall_commands","recon3","reduce_colors","reform","region_grow","register_cursor","regress","replicate","replicate_inplace","resolve_all","resolve_routine","restore","retall","return","reverse","rk4","roberts","rot","rotate","round","routine_filepath","routine_info","rs_test","s_test","save","savgol","scale3","scale3d","scatterplot","scatterplot3d","scope_level","scope_traceback","scope_varfetch","scope_varname","search2d","search3d","sem_create","sem_delete","sem_lock","sem_release","set_plot","set_shading","setenv","sfit","shade_surf","shade_surf_irr","shade_volume","shift","shift_diff","shmdebug","shmmap","shmunmap","shmvar","show3","showfont","signum","simplex","sin","sindgen","sinh","size","skewness","skip_lun","slicer3","slide_image","smooth","sobel","socket","sort","spawn","sph_4pnt","sph_scat","spher_harm","spl_init","spl_interp","spline","spline_p","sprsab","sprsax","sprsin","sprstp","sqrt","standardize","stddev","stop","strarr","strcmp","strcompress","streamline","streamline","stregex","stretch","string","strjoin","strlen","strlowcase","strmatch","strmessage","strmid","strpos","strput","strsplit","strtrim","struct_assign","struct_hide","strupcase","surface","surface","surfr","svdc","svdfit","svsol","swap_endian","swap_endian_inplace","symbol","systime","t_cvf","t_pdf","t3d","tag_names","tan","tanh","tek_color","temporary","terminal_size","tetra_clip","tetra_surface","tetra_volume","text","thin","thread","threed","tic","time_test2","timegen","timer","timestamp","timestamptovalues","tm_test","toc","total","trace","transpose","tri_surf","triangulate","trigrid","triql","trired","trisol","truncate_lun","ts_coef","ts_diff","ts_fcast","ts_smooth","tv","tvcrs","tvlct","tvrd","tvscl","typename","uindgen","uint","uintarr","ul64indgen","ulindgen","ulon64arr","ulonarr","ulong","ulong64","uniq","unsharp_mask","usersym","value_locate","variance","vector","vector_field","vel","velovect","vert_t3d","voigt","volume","voronoi","voxel_proj","wait","warp_tri","watershed","wdelete","wf_draw","where","widget_base","widget_button","widget_combobox","widget_control","widget_displaycontextmenu","widget_draw","widget_droplist","widget_event","widget_info","widget_label","widget_list","widget_propertysheet","widget_slider","widget_tab","widget_table","widget_text","widget_tree","widget_tree_move","widget_window","wiener_filter","window","window","write_bmp","write_csv","write_gif","write_image","write_jpeg","write_jpeg2000","write_nrif","write_pict","write_png","write_ppm","write_spr","write_srf","write_sylk","write_tiff","write_video","write_wav","write_wave","writeu","wset","wshow","wtn","wv_applet","wv_cwt","wv_cw_wavelet","wv_denoise","wv_dwt","wv_fn_coiflet","wv_fn_daubechies","wv_fn_gaussian","wv_fn_haar","wv_fn_morlet","wv_fn_paul","wv_fn_symlet","wv_import_data","wv_import_wavelet","wv_plot3d_wps","wv_plot_multires","wv_pwt","wv_tool_denoise","xbm_edit","xdisplayfile","xdxf","xfont","xinteranimate","xloadct","xmanager","xmng_tmpl","xmtool","xobjview","xobjview_rotate","xobjview_write_image","xpalette","xpcolor","xplot3d","xregistered","xroi","xsq_test","xsurface","xvaredit","xvolume","xvolume_rotate","xvolume_write_image","xyouts","zlib_compress","zlib_uncompress","zoom","zoom_24"],i=t(r),o=["begin","end","endcase","endfor","endwhile","endif","endrep","endforeach","break","case","continue","for","foreach","goto","if","then","else","repeat","until","switch","while","do","pro","function"],a=t(o);e.registerHelper("hintWords","idl",r.concat(o));var s=new RegExp("^[_a-z¡-][_a-z0-9¡-]*","i"),l=/[+\-*&=<>\/@#~$]/,c=new RegExp("(and|or|eq|lt|le|gt|ge|ne|not)","i");e.defineMode("idl",function(){return{token:function(e){return n(e)}}}),e.defineMIME("text/x-idl","idl")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../javascript/javascript"),require("../css/css"),require("../htmlmixed/htmlmixed")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../javascript/javascript","../css/css","../htmlmixed/htmlmixed"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("jade",function(t){function n(){this.javaScriptLine=!1,this.javaScriptLineExcludesColon=!1,this.javaScriptArguments=!1,this.javaScriptArgumentsDepth=0,this.isInterpolating=!1,this.interpolationNesting=0,this.jsState=J.startState(),this.restOfLine="",this.isIncludeFiltered=!1,this.isEach=!1,this.lastTag="",this.scriptType="",this.isAttrs=!1,this.attrsNest=[],this.inAttributeName=!0,this.attributeIsType=!1,this.attrValue="",this.indentOf=1/0,this.indentToken="",this.innerMode=null,this.innerState=null,this.innerModeForLine=!1}function r(e,t){if(e.sol()&&(t.javaScriptLine=!1,t.javaScriptLineExcludesColon=!1),t.javaScriptLine){if(t.javaScriptLineExcludesColon&&":"===e.peek())return t.javaScriptLine=!1,void(t.javaScriptLineExcludesColon=!1);var n=J.token(e,t.jsState);return e.eol()&&(t.javaScriptLine=!1),n||!0}}function i(e,t){if(t.javaScriptArguments){if(0===t.javaScriptArgumentsDepth&&"("!==e.peek())return void(t.javaScriptArguments=!1);if("("===e.peek()?t.javaScriptArgumentsDepth++:")"===e.peek()&&t.javaScriptArgumentsDepth--,0===t.javaScriptArgumentsDepth)return void(t.javaScriptArguments=!1);var n=J.token(e,t.jsState);return n||!0}}function o(e){return e.match(/^yield\b/)?"keyword":void 0}function a(e){return e.match(/^(?:doctype) *([^\n]+)?/)?G:void 0}function s(e,t){return e.match("#{")?(t.isInterpolating=!0,t.interpolationNesting=0,"punctuation"):void 0}function l(e,t){if(t.isInterpolating){if("}"===e.peek()){if(t.interpolationNesting--,t.interpolationNesting<0)return e.next(),t.isInterpolating=!1,"puncutation"}else"{"===e.peek()&&t.interpolationNesting++;return J.token(e,t.jsState)||!0}}function c(e,t){return e.match(/^case\b/)?(t.javaScriptLine=!0,V):void 0}function u(e,t){return e.match(/^when\b/)?(t.javaScriptLine=!0,t.javaScriptLineExcludesColon=!0,V):void 0}function d(e){return e.match(/^default\b/)?V:void 0}function f(e,t){return e.match(/^extends?\b/)?(t.restOfLine="string",V):void 0}function p(e,t){return e.match(/^append\b/)?(t.restOfLine="variable",V):void 0}function h(e,t){return e.match(/^prepend\b/)?(t.restOfLine="variable",V):void 0}function m(e,t){return e.match(/^block\b *(?:(prepend|append)\b)?/)?(t.restOfLine="variable",V):void 0}function g(e,t){return e.match(/^include\b/)?(t.restOfLine="string",V):void 0}function v(e,t){return e.match(/^include:([a-zA-Z0-9\-]+)/,!1)&&e.match("include")?(t.isIncludeFiltered=!0,V):void 0}function b(e,t){if(t.isIncludeFiltered){var n=C(e,t);return t.isIncludeFiltered=!1,t.restOfLine="string",n}}function y(e,t){return e.match(/^mixin\b/)?(t.javaScriptLine=!0,V):void 0}function k(e,t){return e.match(/^\+([-\w]+)/)?(e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),"variable"):e.match(/^\+#{/,!1)?(e.next(),t.mixinCallAfter=!0,s(e,t)):void 0}function x(e,t){return t.mixinCallAfter?(t.mixinCallAfter=!1,e.match(/^\( *[-\w]+ *=/,!1)||(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0),!0):void 0}function _(e,t){return e.match(/^(if|unless|else if|else)\b/)?(t.javaScriptLine=!0,V):void 0}function w(e,t){return e.match(/^(- *)?(each|for)\b/)?(t.isEach=!0,V):void 0}function S(e,t){if(t.isEach){if(e.match(/^ in\b/))return t.javaScriptLine=!0,t.isEach=!1,V;if(e.sol()||e.eol())t.isEach=!1;else if(e.next()){for(;!e.match(/^ in\b/,!1)&&e.next(););return"variable"}}}function T(e,t){return e.match(/^while\b/)?(t.javaScriptLine=!0,V):void 0}function E(e,t){var n;return(n=e.match(/^(\w(?:[-:\w]*\w)?)\/?/))?(t.lastTag=n[1].toLowerCase(),"script"===t.lastTag&&(t.scriptType="application/javascript"),"tag"):void 0}function C(n,r){if(n.match(/^:([\w\-]+)/)){var i;return t&&t.innerModes&&(i=t.innerModes(n.current().substring(1))),i||(i=n.current().substring(1)),"string"==typeof i&&(i=e.getMode(t,i)),j(n,r,i),"atom"}}function M(e,t){return e.match(/^(!?=|-)/)?(t.javaScriptLine=!0,"punctuation"):void 0}function L(e){return e.match(/^#([\w-]+)/)?K:void 0}function A(e){return e.match(/^\.([\w-]+)/)?Y:void 0}function I(e,t){return"("==e.peek()?(e.next(),t.isAttrs=!0,t.attrsNest=[],t.inAttributeName=!0,t.attrValue="",t.attributeIsType=!1,"punctuation"):void 0}function R(e,t){if(t.isAttrs){if(Z[e.peek()]&&t.attrsNest.push(Z[e.peek()]),t.attrsNest[t.attrsNest.length-1]===e.peek())t.attrsNest.pop();else if(e.eat(")"))return t.isAttrs=!1,"punctuation";if(t.inAttributeName&&e.match(/^[^=,\)!]+/))return("="===e.peek()||"!"===e.peek())&&(t.inAttributeName=!1,t.jsState=J.startState(),"script"===t.lastTag&&"type"===e.current().trim().toLowerCase()?t.attributeIsType=!0:t.attributeIsType=!1),"attribute";var n=J.token(e,t.jsState);if(t.attributeIsType&&"string"===n&&(t.scriptType=e.current().toString()),0===t.attrsNest.length&&("string"===n||"variable"===n||"keyword"===n))try{return Function("","var x "+t.attrValue.replace(/,\s*$/,"").replace(/^!/,"")),t.inAttributeName=!0,t.attrValue="",e.backUp(e.current().length),R(e,t)}catch(r){}return t.attrValue+=e.current(),n||!0}}function O(e,t){return e.match(/^&attributes\b/)?(t.javaScriptArguments=!0,t.javaScriptArgumentsDepth=0,"keyword"):void 0}function N(e){return e.sol()&&e.eatSpace()?"indent":void 0}function z(e,t){return e.match(/^ *\/\/(-)?([^\n]*)/)?(t.indentOf=e.indentation(),t.indentToken="comment","comment"):void 0}function P(e){return e.match(/^: */)?"colon":void 0}function D(e,t){return e.match(/^(?:\| ?| )([^\n]+)/)?"string":e.match(/^(<[^\n]*)/,!1)?(j(e,t,"htmlmixed"),t.innerModeForLine=!0,W(e,t,!0)):void 0}function $(e,t){if(e.eat(".")){var n=null;return"script"===t.lastTag&&-1!=t.scriptType.toLowerCase().indexOf("javascript")?n=t.scriptType.toLowerCase().replace(/"|'/g,""):"style"===t.lastTag&&(n="css"),j(e,t,n),"dot"}}function q(e){return e.next(),null}function j(n,r,i){i=e.mimeModes[i]||i,i=t.innerModes?t.innerModes(i)||i:i,i=e.mimeModes[i]||i,i=e.getMode(t,i),
|
||
r.indentOf=n.indentation(),i&&"null"!==i.name?r.innerMode=i:r.indentToken="string"}function W(e,t,n){return e.indentation()>t.indentOf||t.innerModeForLine&&!e.sol()||n?t.innerMode?(t.innerState||(t.innerState=t.innerMode.startState?t.innerMode.startState(e.indentation()):{}),e.hideFirstChars(t.indentOf+2,function(){return t.innerMode.token(e,t.innerState)||!0})):(e.skipToEnd(),t.indentToken):void(e.sol()&&(t.indentOf=1/0,t.indentToken=null,t.innerMode=null,t.innerState=null))}function U(e,t){if(e.sol()&&(t.restOfLine=""),t.restOfLine){e.skipToEnd();var n=t.restOfLine;return t.restOfLine="",n}}function F(){return new n}function B(e){return e.copy()}function H(e,t){var n=W(e,t)||U(e,t)||l(e,t)||b(e,t)||S(e,t)||R(e,t)||r(e,t)||i(e,t)||x(e,t)||o(e,t)||a(e,t)||s(e,t)||c(e,t)||u(e,t)||d(e,t)||f(e,t)||p(e,t)||h(e,t)||m(e,t)||g(e,t)||v(e,t)||y(e,t)||k(e,t)||_(e,t)||w(e,t)||T(e,t)||E(e,t)||C(e,t)||M(e,t)||L(e,t)||A(e,t)||I(e,t)||O(e,t)||N(e,t)||D(e,t)||z(e,t)||P(e,t)||$(e,t)||q(e,t);return n===!0?null:n}var V="keyword",G="meta",K="builtin",Y="qualifier",Z={"{":"}","(":")","[":"]"},J=e.getMode(t,"javascript");return n.prototype.copy=function(){var t=new n;return t.javaScriptLine=this.javaScriptLine,t.javaScriptLineExcludesColon=this.javaScriptLineExcludesColon,t.javaScriptArguments=this.javaScriptArguments,t.javaScriptArgumentsDepth=this.javaScriptArgumentsDepth,t.isInterpolating=this.isInterpolating,t.interpolationNesting=this.intpolationNesting,t.jsState=e.copyState(J,this.jsState),t.innerMode=this.innerMode,this.innerMode&&this.innerState&&(t.innerState=e.copyState(this.innerMode,this.innerState)),t.restOfLine=this.restOfLine,t.isIncludeFiltered=this.isIncludeFiltered,t.isEach=this.isEach,t.lastTag=this.lastTag,t.scriptType=this.scriptType,t.isAttrs=this.isAttrs,t.attrsNest=this.attrsNest.slice(),t.inAttributeName=this.inAttributeName,t.attributeIsType=this.attributeIsType,t.attrValue=this.attrValue,t.indentOf=this.indentOf,t.indentToken=this.indentToken,t.innerModeForLine=this.innerModeForLine,t},{startState:F,copyState:B,token:H}}),e.defineMIME("text/x-jade","jade")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("javascript",function(t,n){function r(e){for(var t=!1,n,r=!1;null!=(n=e.next());){if(!t){if("/"==n&&!r)return;"["==n?r=!0:r&&"]"==n&&(r=!1)}t=!t&&"\\"==n}}function i(e,t,n){return we=e,Se=n,t}function o(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=a(n),t.tokenize(e,t);if("."==n&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return i("number","number");if("."==n&&e.match(".."))return i("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return i(n);if("="==n&&e.eat(">"))return i("=>","operator");if("0"==n&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),i("number","number");if(/\d/.test(n))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),i("number","number");if("/"==n)return e.eat("*")?(t.tokenize=s,s(e,t)):e.eat("/")?(e.skipToEnd(),i("comment","comment")):"operator"==t.lastType||"keyword c"==t.lastType||"sof"==t.lastType||/^[\[{}\(,;:]$/.test(t.lastType)?(r(e),e.eatWhile(/[gimy]/),i("regexp","string-2")):(e.eatWhile(xe),i("operator","operator",e.current()));if("`"==n)return t.tokenize=l,l(e,t);if("#"==n)return e.skipToEnd(),i("error","error");if(xe.test(n))return e.eatWhile(xe),i("operator","operator",e.current());if(ye.test(n)){e.eatWhile(ye);var o=e.current(),c=ke.propertyIsEnumerable(o)&&ke[o];return c&&"."!=t.lastType?i(c.type,c.style,o):i("variable","variable",o)}}function a(e){return function(t,n){var r=!1,a;if(ge&&"@"==t.peek()&&t.match(_e))return n.tokenize=o,i("jsonld-keyword","meta");for(;null!=(a=t.next())&&(a!=e||r);)r=!r&&"\\"==a;return r||(n.tokenize=o),i("string","string")}}function s(e,t){for(var n=!1,r;r=e.next();){if("/"==r&&n){t.tokenize=o;break}n="*"==r}return i("comment","comment")}function l(e,t){for(var n=!1,r;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=o;break}n=!n&&"\\"==r}return i("quasi","string-2",e.current())}function c(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(0>n)){for(var r=0,i=!1,o=n-1;o>=0;--o){var a=e.string.charAt(o),s=Te.indexOf(a);if(s>=0&&3>s){if(!r){++o;break}if(0==--r)break}else if(s>=3&&6>s)++r;else if(ye.test(a))i=!0;else if(i&&!r){++o;break}}i&&!r&&(t.fatArrowAt=o)}}function u(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function d(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(var n=r.vars;n;n=n.next)if(n.name==t)return!0}function f(e,t,n,r,i){var o=e.cc;for(Ce.state=e,Ce.stream=i,Ce.marked=null,Ce.cc=o,Ce.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){var a=o.length?o.pop():ve?_:x;if(a(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return Ce.marked?Ce.marked:"variable"==n&&d(e,r)?"variable-2":t}}}function p(){for(var e=arguments.length-1;e>=0;e--)Ce.cc.push(arguments[e])}function h(){return p.apply(null,arguments),!0}function m(e){function t(t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}var r=Ce.state;if(r.context){if(Ce.marked="def",t(r.localVars))return;r.localVars={name:e,next:r.localVars}}else{if(t(r.globalVars))return;n.globalVars&&(r.globalVars={name:e,next:r.globalVars})}}function g(){Ce.state.context={prev:Ce.state.context,vars:Ce.state.localVars},Ce.state.localVars=Me}function v(){Ce.state.localVars=Ce.state.context.vars,Ce.state.context=Ce.state.context.prev}function b(e,t){var n=function(){var n=Ce.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new u(r,Ce.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function y(){var e=Ce.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function k(e){function t(n){return n==e?h():";"==e?p():h(t)}return t}function x(e,t){return"var"==e?h(b("vardef",t.length),F,k(";"),y):"keyword a"==e?h(b("form"),_,x,y):"keyword b"==e?h(b("form"),x,y):"{"==e?h(b("}"),j,y):";"==e?h():"if"==e?("else"==Ce.state.lexical.info&&Ce.state.cc[Ce.state.cc.length-1]==y&&Ce.state.cc.pop()(),h(b("form"),_,x,y,K)):"function"==e?h(ee):"for"==e?h(b("form"),Y,x,y):"variable"==e?h(b("stat"),O):"switch"==e?h(b("form"),_,b("}","switch"),k("{"),j,y,y):"case"==e?h(_,k(":")):"default"==e?h(k(":")):"catch"==e?h(b("form"),g,k("("),te,k(")"),x,y,v):"module"==e?h(b("form"),g,ae,v,y):"class"==e?h(b("form"),ne,y):"export"==e?h(b("form"),se,y):"import"==e?h(b("form"),le,y):p(b("stat"),_,k(";"),y)}function _(e){return S(e,!1)}function w(e){return S(e,!0)}function S(e,t){if(Ce.state.fatArrowAt==Ce.stream.start){var n=t?R:I;if("("==e)return h(g,b(")"),$(B,")"),y,k("=>"),n,v);if("variable"==e)return p(g,B,k("=>"),n,v)}var r=t?M:C;return Ee.hasOwnProperty(e)?h(r):"function"==e?h(ee,r):"keyword c"==e?h(t?E:T):"("==e?h(b(")"),T,pe,k(")"),y,r):"operator"==e||"spread"==e?h(t?w:_):"["==e?h(b("]"),de,y,r):"{"==e?q(z,"}",null,r):"quasi"==e?p(L,r):h()}function T(e){return e.match(/[;\}\)\],]/)?p():p(_)}function E(e){return e.match(/[;\}\)\],]/)?p():p(w)}function C(e,t){return","==e?h(_):M(e,t,!1)}function M(e,t,n){var r=0==n?C:M,i=0==n?_:w;return"=>"==e?h(g,n?R:I,v):"operator"==e?/\+\+|--/.test(t)?h(r):"?"==t?h(_,k(":"),i):h(i):"quasi"==e?p(L,r):";"!=e?"("==e?q(w,")","call",r):"."==e?h(N,r):"["==e?h(b("]"),T,k("]"),y,r):void 0:void 0}function L(e,t){return"quasi"!=e?p():"${"!=t.slice(t.length-2)?h(L):h(_,A)}function A(e){return"}"==e?(Ce.marked="string-2",Ce.state.tokenize=l,h(L)):void 0}function I(e){return c(Ce.stream,Ce.state),p("{"==e?x:_)}function R(e){return c(Ce.stream,Ce.state),p("{"==e?x:w)}function O(e){return":"==e?h(y,x):p(C,k(";"),y)}function N(e){return"variable"==e?(Ce.marked="property",h()):void 0}function z(e,t){return"variable"==e||"keyword"==Ce.style?(Ce.marked="property",h("get"==t||"set"==t?P:D)):"number"==e||"string"==e?(Ce.marked=ge?"property":Ce.style+" property",h(D)):"jsonld-keyword"==e?h(D):"["==e?h(_,k("]"),D):void 0}function P(e){return"variable"!=e?p(D):(Ce.marked="property",h(ee))}function D(e){return":"==e?h(w):"("==e?p(ee):void 0}function $(e,t){function n(r){if(","==r){var i=Ce.state.lexical;return"call"==i.info&&(i.pos=(i.pos||0)+1),h(e,n)}return r==t?h():h(k(t))}return function(r){return r==t?h():p(e,n)}}function q(e,t,n){for(var r=3;r<arguments.length;r++)Ce.cc.push(arguments[r]);return h(b(t,n),$(e,t),y)}function j(e){return"}"==e?h():p(x,j)}function W(e){return be&&":"==e?h(U):void 0}function U(e){return"variable"==e?(Ce.marked="variable-3",h()):void 0}function F(){return p(B,W,V,G)}function B(e,t){return"variable"==e?(m(t),h()):"["==e?q(B,"]"):"{"==e?q(H,"}"):void 0}function H(e,t){return"variable"!=e||Ce.stream.match(/^\s*:/,!1)?("variable"==e&&(Ce.marked="property"),h(k(":"),B,V)):(m(t),h(V))}function V(e,t){return"="==t?h(w):void 0}function G(e){return","==e?h(F):void 0}function K(e,t){return"keyword b"==e&&"else"==t?h(b("form","else"),x,y):void 0}function Y(e){return"("==e?h(b(")"),Z,k(")"),y):void 0}function Z(e){return"var"==e?h(F,k(";"),X):";"==e?h(X):"variable"==e?h(J):p(_,k(";"),X)}function J(e,t){return"in"==t||"of"==t?(Ce.marked="keyword",h(_)):h(C,X)}function X(e,t){return";"==e?h(Q):"in"==t||"of"==t?(Ce.marked="keyword",h(_)):p(_,k(";"),Q)}function Q(e){")"!=e&&h(_)}function ee(e,t){return"*"==t?(Ce.marked="keyword",h(ee)):"variable"==e?(m(t),h(ee)):"("==e?h(g,b(")"),$(te,")"),y,x,v):void 0}function te(e){return"spread"==e?h(te):p(B,W)}function ne(e,t){return"variable"==e?(m(t),h(re)):void 0}function re(e,t){return"extends"==t?h(_,re):"{"==e?h(b("}"),ie,y):void 0}function ie(e,t){return"variable"==e||"keyword"==Ce.style?(Ce.marked="property","get"==t||"set"==t?h(oe,ee,ie):h(ee,ie)):"*"==t?(Ce.marked="keyword",h(ie)):";"==e?h(ie):"}"==e?h():void 0}function oe(e){return"variable"!=e?p():(Ce.marked="property",h())}function ae(e,t){return"string"==e?h(x):"variable"==e?(m(t),h(ue)):void 0}function se(e,t){return"*"==t?(Ce.marked="keyword",h(ue,k(";"))):"default"==t?(Ce.marked="keyword",h(_,k(";"))):p(x)}function le(e){return"string"==e?h():p(ce,ue)}function ce(e,t){return"{"==e?q(ce,"}"):("variable"==e&&m(t),h())}function ue(e,t){return"from"==t?(Ce.marked="keyword",h(_)):void 0}function de(e){return"]"==e?h():p(w,fe)}function fe(e){return"for"==e?p(pe,k("]")):","==e?h($(E,"]")):p($(w,"]"))}function pe(e){return"for"==e?h(Y,pe):"if"==e?h(_,pe):void 0}var he=t.indentUnit,me=n.statementIndent,ge=n.jsonld,ve=n.json||ge,be=n.typescript,ye=n.wordCharacters||/[\w$\xa1-\uffff]/,ke=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("operator"),o={type:"atom",style:"atom"},a={"if":e("if"),"while":t,"with":t,"else":n,"do":n,"try":n,"finally":n,"return":r,"break":r,"continue":r,"new":r,"delete":r,"throw":r,"debugger":r,"var":e("var"),"const":e("var"),let:e("var"),"function":e("function"),"catch":e("catch"),"for":e("for"),"switch":e("switch"),"case":e("case"),"default":e("default"),"in":i,"typeof":i,"instanceof":i,"true":o,"false":o,"null":o,undefined:o,NaN:o,Infinity:o,"this":e("this"),module:e("module"),"class":e("class"),"super":e("atom"),"yield":r,"export":e("export"),"import":e("import"),"extends":r};if(be){var s={type:"variable",style:"variable-3"},l={"interface":e("interface"),"extends":e("extends"),constructor:e("constructor"),"public":e("public"),"private":e("private"),"protected":e("protected"),"static":e("static"),string:s,number:s,bool:s,any:s};for(var c in l)a[c]=l[c]}return a}(),xe=/[+\-*&%=<>!?|~^]/,_e=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,we,Se,Te="([{}])",Ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,"this":!0,"jsonld-keyword":!0},Ce={state:null,column:null,marked:null,cc:null},Me={name:"this",next:{name:"arguments"}};return y.lex=!0,{startState:function(e){var t={tokenize:o,lastType:"sof",cc:[],lexical:new u((e||0)-he,0,"block",!1),localVars:n.localVars,context:n.localVars&&{vars:n.localVars},indented:0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),c(e,t)),t.tokenize!=s&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==we?n:(t.lastType="operator"!=we||"++"!=Se&&"--"!=Se?we:"incdec",f(t,n,we,Se,e))},indent:function(t,r){if(t.tokenize==s)return e.Pass;if(t.tokenize!=o)return 0;var i=r&&r.charAt(0),a=t.lexical;if(!/^\s*else\b/.test(r))for(var l=t.cc.length-1;l>=0;--l){var c=t.cc[l];if(c==y)a=a.prev;else if(c!=K)break}"stat"==a.type&&"}"==i&&(a=a.prev),me&&")"==a.type&&"stat"==a.prev.type&&(a=a.prev);var u=a.type,d=i==u;return"vardef"==u?a.indented+("operator"==t.lastType||","==t.lastType?a.info+1:0):"form"==u&&"{"==i?a.indented:"form"==u?a.indented+he:"stat"==u?a.indented+("operator"==t.lastType||","==t.lastType?me||he:0):"switch"!=a.info||d||0==n.doubleIndentSwitch?a.align?a.column+(d?0:1):a.indented+(d?0:he):a.indented+(/^(?:case|default)\b/.test(r)?he:2*he)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:ve?null:"/*",blockCommentEnd:ve?null:"*/",lineComment:ve?null:"//",fold:"brace",helperType:ve?"json":"javascript",jsonldMode:ge,jsonMode:ve}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("jinja2",function(){function e(e,a){var s=e.peek();if(a.incomment)return e.skipTo("#}")?(e.eatWhile(/\#|}/),a.incomment=!1):e.skipToEnd(),"comment";if(a.intag){if(a.operator){if(a.operator=!1,e.match(i))return"atom";if(e.match(o))return"number"}if(a.sign){if(a.sign=!1,e.match(i))return"atom";if(e.match(o))return"number"}if(a.instring)return s==a.instring&&(a.instring=!1),e.next(),"string";if("'"==s||'"'==s)return a.instring=s,e.next(),"string";if(e.match(a.intag+"}")||e.eat("-")&&e.match(a.intag+"}"))return a.intag=!1,"tag";if(e.match(n))return a.operator=!0,"operator";if(e.match(r))a.sign=!0;else if(e.eat(" ")||e.sol()){if(e.match(t))return"keyword";if(e.match(i))return"atom";if(e.match(o))return"number";e.sol()&&e.next()}else e.next();return"variable"}if(e.eat("{")){if(s=e.eat("#"))return a.incomment=!0,e.skipTo("#}")?(e.eatWhile(/\#|}/),a.incomment=!1):e.skipToEnd(),"comment";if(s=e.eat(/\{|%/))return a.intag=s,"{"==s&&(a.intag="}"),e.eat("-"),"tag"}e.next()}var t=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","plural"],n=/^[+\-*&%=<>!?|~^]/,r=/^[:\[\(\{]/,i=["true","false"],o=/^(\d[+\-\*\/])?\d+(\.\d+)?/;return t=new RegExp("(("+t.join(")|(")+"))\\b"),i=new RegExp("(("+i.join(")|(")+"))\\b"),{startState:function(){return{tokenize:e}},token:function(e,t){return t.tokenize(e,t)}}})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("julia",function(e,t){function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}function r(e){var t=i(e);return"["==t||"{"==t?!0:!1}function i(e){return 0==e.scopes.length?null:e.scopes[e.scopes.length-1]}function o(e,t){var n=t.leaving_expr;if(e.sol()&&(n=!1),t.leaving_expr=!1,n&&e.match(/^'+/))return"operator";if(e.match(/^\.{2,3}/))return"operator";if(e.eatSpace())return null;var o=e.peek();if("#"===o)return e.skipToEnd(),"comment";"["===o&&t.scopes.push("["),"{"===o&&t.scopes.push("{");var s=i(t);"["===s&&"]"===o&&(t.scopes.pop(),t.leaving_expr=!0),"{"===s&&"}"===o&&(t.scopes.pop(),t.leaving_expr=!0),")"===o&&(t.leaving_expr=!0);var f;if(!r(t)&&(f=e.match(y,!1))&&t.scopes.push(f),!r(t)&&e.match(k,!1)&&t.scopes.pop(),r(t)&&e.match(/^end/))return"number";if(e.match(/^=>/))return"operator";if(e.match(/^[0-9\.]/,!1)){var p=RegExp(/^im\b/),h=!1;if(e.match(/^\d*\.(?!\.)\d+([ef][\+\-]?\d+)?/i)&&(h=!0),e.match(/^\d+\.(?!\.)\d*/)&&(h=!0),e.match(/^\.\d+/)&&(h=!0),h)return e.match(p),t.leaving_expr=!0,"number";var m=!1;if(e.match(/^0x[0-9a-f]+/i)&&(m=!0),e.match(/^0b[01]+/i)&&(m=!0),e.match(/^0o[0-7]+/i)&&(m=!0),e.match(/^[1-9]\d*(e[\+\-]?\d+)?/)&&(m=!0),e.match(/^0(?![\dx])/i)&&(m=!0),m)return e.match(p),t.leaving_expr=!0,"number"}return e.match(/^(::)|(<:)/)?"operator":!n&&e.match(_)?"string":e.match(c)?"operator":e.match(g)?(t.tokenize=a(e.current()),t.tokenize(e,t)):e.match(x)?"meta":e.match(u)?null:e.match(v)?"keyword":e.match(b)?"builtin":e.match(d)?(t.leaving_expr=!0,"variable"):(e.next(),l)}function a(e){function n(n,a){for(;!n.eol();)if(n.eatWhile(/[^'"\\]/),n.eat("\\")){if(n.next(),r&&n.eol())return i}else{if(n.match(e))return a.tokenize=o,i;n.eat(/['"]/)}if(r){if(t.singleLineStringErrors)return l;a.tokenize=o}return i}for(;"rub".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var r=1==e.length,i="string";return n.isString=!0,n}function s(e,t){w=null;var n=t.tokenize(e,t),r=e.current();return"."===r?(n=e.match(d,!1)?null:l,null===n&&"meta"===t.lastStyle&&(n="meta"),n):n}var l="error",c=t.operators||/^\.?[|&^\\%*+\-<>!=\/]=?|\?|~|:|\$|\.[<>]|<<=?|>>>?=?|\.[<>=]=|->?|\/\/|\bin\b/,u=t.delimiters||/^[;,()[\]{}]/,d=t.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*!*/,f=["begin","function","type","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"],p=["end","else","elseif","catch","finally"],h=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","macro","module","baremodule","type","immutable","quote","typealias","abstract","bitstype","ccall"],m=["true","false","enumerate","open","close","nothing","NaN","Inf","print","println","Int","Int8","Uint8","Int16","Uint16","Int32","Uint32","Int64","Uint64","Int128","Uint128","Bool","Char","Float16","Float32","Float64","Array","Vector","Matrix","String","UTF8String","ASCIIString","error","warn","info","@printf"],g=/^(`|'|"{3}|([br]?"))/,v=n(h),b=n(m),y=n(f),k=n(p),x=/^@[_A-Za-z][_A-Za-z0-9]*/,_=/^:[_A-Za-z][_A-Za-z0-9]*/,w=null,S={startState:function(){return{tokenize:o,scopes:[],leaving_expr:!1}},token:function(e,t){var n=s(e,t);return t.lastStyle=n,n},indent:function(e,t){var n=0;return("end"==t||"]"==t||"}"==t||"else"==t||"elseif"==t||"catch"==t||"finally"==t)&&(n=-1),4*(e.scopes.length+n)},lineComment:"#",fold:"indent",electricChars:"edlsifyh]}"};return S}),e.defineMIME("text/x-julia","julia")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("kotlin",function(e,t){function n(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function r(e,t){var n=e.next();if('"'==n||"'"==n)return i(n,e,t);if("."==n&&e.eat("*"))return"word";if(/[\[\]{}\(\),;\:\.]/.test(n))return v=n,null;if(/\d/.test(n))return e.eat(/eE/)&&(e.eat(/\+\-/),e.eatWhile(/\d/)),"number";if("/"==n){if(e.eat("*"))return t.tokenize.push(s),s(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";if(l(t.lastToken))return i(n,e,t)}if("-"==n&&e.eat(">"))return v="->",null;if(/[\-+*&%=<>!?|\/~]/.test(n))return e.eatWhile(/[\-+*&%=<>|~]/),"operator";e.eatWhile(/[\w\$_]/);var r=e.current();return g.propertyIsEnumerable(r)?"atom":h.propertyIsEnumerable(r)?(m.propertyIsEnumerable(r)&&(v="newstatement"),"softKeyword"):p.propertyIsEnumerable(r)?(m.propertyIsEnumerable(r)&&(v="newstatement"),"keyword"):"word"}function i(e,t,n){function r(t,n){for(var s=!1,l,c=!i;null!=(l=t.next());){if(l==e&&!s){if(!i)break;if(t.match(e+e)){c=!0;break}}if('"'==e&&"$"==l&&!s&&t.eat("{"))return n.tokenize.push(o()),"string";if("$"==l&&!s&&!t.eat(" "))return n.tokenize.push(a()),"string";s=!s&&"\\"==l}return f&&n.tokenize.push(r),c&&n.tokenize.pop(),"string"}var i=!1;if("/"!=e&&t.eat(e)){if(!t.eat(e))return"string";i=!0}return n.tokenize.push(r),r(t,n)}function o(){function e(e,n){if("}"==e.peek()){if(t--,0==t)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](e,n)}else"{"==e.peek()&&t++;return r(e,n)}var t=1;return e.isBase=!0,e}function a(){function e(e,t){if(e.eat(/[\w]/)){var n=e.eatWhile(/[\w]/);if(n)return t.tokenize.pop(),"word"}return t.tokenize.pop(),"string"}return e.isBase=!0,e}function s(e,t){for(var n=!1,r;r=e.next();){if("/"==r&&n){t.tokenize.pop();break}n="*"==r}return"comment"}function l(e){return!e||"operator"==e||"->"==e||/[\.\[\{\(,;:]/.test(e)||"newstatement"==e||"keyword"==e||"proplabel"==e}function c(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function u(e,t,n){return e.context=new c(e.indented,t,n,null,e.context)}function d(e){var t=e.context.type;return(")"==t||"]"==t||"}"==t)&&(e.indented=e.context.indented),e.context=e.context.prev}var f=t.multiLineStrings,p=n("package continue return object while break class data trait throw super when type this else This try val var fun for is in if do as true false null get set"),h=n("import where by get set abstract enum open annotation override private public internal protected catch out vararg inline finally final ref"),m=n("catch class do else finally for if where try while enum"),g=n("null true false this"),v;return r.isBase=!0,{startState:function(t){return{tokenize:[r],context:new c((t||0)-e.indentUnit,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"statement"!=n.type||l(t.lastToken)||(d(t),n=t.context)),e.eatSpace())return null;v=null;var r=t.tokenize[t.tokenize.length-1](e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),";"!=v&&":"!=v||"statement"!=n.type)if("->"==v&&"statement"==n.type&&"}"==n.prev.type)d(t),t.context.align=!1;else if("{"==v)u(t,e.column(),"}");else if("["==v)u(t,e.column(),"]");else if("("==v)u(t,e.column(),")");else if("}"==v){for(;"statement"==n.type;)n=d(t);for("}"==n.type&&(n=d(t));"statement"==n.type;)n=d(t)}else v==n.type?d(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==v)&&u(t,e.column(),"statement");else d(t);return t.startOfLine=!1,t.lastToken=v||r,r},indent:function(t,n){if(!t.tokenize[t.tokenize.length-1].isBase)return 0;var r=n&&n.charAt(0),i=t.context;"statement"!=i.type||l(t.lastToken)||(i=i.prev);var o=r==i.type;return"statement"==i.type?i.indented+("{"==r?0:e.indentUnit):i.align?i.column+(o?0:1):i.indented+(o?0:e.indentUnit)},electricChars:"{}"}}),e.defineMIME("text/x-kotlin","kotlin")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("livescript",function(){var e=function(e,t){var n=t.next||"start";if(n){t.next=t.next;var r=o[n];if(r.splice){for(var i=0;i<r.length;++i){var a=r[i],s;if(a.regex&&(s=e.match(a.regex)))return t.next=a.next||t.next,a.token}return e.next(),"error"}if(e.match(a=o[n]))return a.regex&&e.match(a.regex)?(t.next=a.next,a.token):(e.next(),"error")}return e.next(),"error"},t={startState:function(){return{next:"start",lastToken:null}},token:function(t,n){for(;t.pos==t.start;)var r=e(t,n);return n.lastToken={style:r,indent:t.indentation(),content:t.current()},r.replace(/\./g," ")},indent:function(e){var t=e.lastToken.indent;return e.lastToken.content.match(n)&&(t+=2),t}};return t});var t="(?![\\d\\s])[$\\w\\xAA-\\uFFDC](?:(?!\\s)[$\\w\\xAA-\\uFFDC]|-[A-Za-z])*",n=RegExp("(?:[({[=:]|[-~]>|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+t+")?))\\s*$"),r="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",i={token:"string",regex:".+"},o={start:[{token:"comment.doc",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+r},{token:"constant.language",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+r},{token:"invalid.illegal",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+r},{token:"language.support.class",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+r},{token:"language.support.function",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+r},{token:"variable.language",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+r},{token:"identifier",regex:t+"\\s*:(?![:=])"},{token:"variable",regex:t},{token:"keyword.operator",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword.variable",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"keyword.operator",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"string.doc",regex:"'''",next:"qdoc"},{token:"string.doc",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"string.regex",regex:"//",next:"heregex"},{token:"string.regex",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"constant.numeric",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"lparen",regex:"[({[]"},{token:"rparen",regex:"[)}\\]]",next:"key"},{token:"keyword.operator",regex:"\\S+"},{token:"text",regex:"\\s+"}],heregex:[{token:"string.regex",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"string.regex",regex:"\\s*#{"},{token:"comment.regex",regex:"\\s+(?:#.*)?"},{token:"string.regex",regex:"\\S+"}],key:[{token:"keyword.operator",regex:"[.?@!]+"},{token:"identifier",regex:t,next:"start"},{token:"text",regex:"",next:"start"}],comment:[{token:"comment.doc",regex:".*?\\*/",next:"start"},{token:"comment.doc",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},i],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},i],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},i],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},i],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},i],words:[{token:"string",regex:".*?\\]>",next:"key"},i]};for(var a in o){var s=o[a];if(s.splice)for(var l=0,c=s.length;c>l;++l){var u=s[l];"string"==typeof u.regex&&(o[a][l].regex=new RegExp("^"+u.regex))}else"string"==typeof u.regex&&(o[a].regex=new RegExp("^"+s.regex))}e.defineMIME("text/x-livescript","livescript")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("lua",function(e,t){function n(e){return new RegExp("^(?:"+e.join("|")+")","i")}function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}function i(e){for(var t=0;e.eat("=");)++t;return e.eat("["),t}function o(e,t){var n=e.next();return"-"==n&&e.eat("-")?e.eat("[")&&e.eat("[")?(t.cur=a(i(e),"comment"))(e,t):(e.skipToEnd(),"comment"):'"'==n||"'"==n?(t.cur=s(n))(e,t):"["==n&&/[\[=]/.test(e.peek())?(t.cur=a(i(e),"string"))(e,t):/\d/.test(n)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(n)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function a(e,t){return function(n,r){for(var i=null,a;null!=(a=n.next());)if(null==i)"]"==a&&(i=0);else if("="==a)++i;else{if("]"==a&&i==e){r.cur=o;break}i=null}return t}}function s(e){return function(t,n){for(var r=!1,i;null!=(i=t.next())&&(i!=e||r);)r=!r&&"\\"==i;return r||(n.cur=o),"string"}}var l=e.indentUnit,c=r(t.specials||[]),u=r(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),d=r(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),f=r(["function","if","repeat","do","\\(","{"]),p=r(["end","until","\\)","}"]),h=n(["end","until","\\)","}","else","elseif"]);return{startState:function(e){return{basecol:e||0,indentDepth:0,cur:o}},token:function(e,t){if(e.eatSpace())return null;var n=t.cur(e,t),r=e.current();return"variable"==n&&(d.test(r)?n="keyword":u.test(r)?n="builtin":c.test(r)&&(n="variable-2")),"comment"!=n&&"string"!=n&&(f.test(r)?++t.indentDepth:p.test(r)&&--t.indentDepth),n},indent:function(e,t){var n=h.test(t);return e.basecol+l*(e.indentDepth-(n?1:0));
|
||
|
||
},lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}}),e.defineMIME("text/x-lua","lua")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror",require("../xml/xml"),require("../meta"))):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("markdown",function(t,n){function r(n){if(e.findModeByName){var r=e.findModeByName(n);r&&(n=r.mime||r.mimes[0])}var i=e.getMode(t,n);return"null"==i.name?null:i}function i(e,t,n){return t.f=t.inline=n,n(e,t)}function o(e,t,n){return t.f=t.block=n,n(e,t)}function a(e){return e.linkTitle=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,x||e.f!=l||(e.f=p,e.block=s),e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.thisLineHasContent=!1,null}function s(e,t){var o=e.sol(),a=t.list!==!1;t.list!==!1&&t.indentationDiff>=0?(t.indentationDiff<4&&(t.indentation-=t.indentationDiff),t.list=null):t.list!==!1&&t.indentation>0?(t.list=null,t.listDepth=Math.floor(t.indentation/4)):t.list!==!1&&(t.list=!1,t.listDepth=0);var s=null;if(t.indentationDiff>=4)return t.indentation-=4,e.skipToEnd(),T;if(e.eatSpace())return null;if(s=e.match(B))return t.header=s[0].length<=6?s[0].length:6,n.highlightFormatting&&(t.formatting="header"),t.f=t.inline,d(t);if(t.prevLineHasContent&&(s=e.match(H)))return t.header="="==s[0].charAt(0)?1:2,n.highlightFormatting&&(t.formatting="header"),t.f=t.inline,d(t);if(e.eat(">"))return t.indentation++,t.quote=o?1:t.quote+1,n.highlightFormatting&&(t.formatting="quote"),e.eatSpace(),d(t);if("["===e.peek())return i(e,t,v);if(e.match(j,!0))return A;if((!t.prevLineHasContent||a)&&(e.match(W,!1)||e.match(U,!1))){var l=null;return e.match(W,!0)?l="ul":(e.match(U,!0),l="ol"),t.indentation+=4,t.list=!0,t.listDepth++,n.taskLists&&e.match(F,!1)&&(t.taskList=!0),t.f=t.inline,n.highlightFormatting&&(t.formatting=["list","list-"+l]),d(t)}return n.fencedCodeBlocks&&e.match(/^```[ \t]*([\w+#]*)/,!0)?(t.localMode=r(RegExp.$1),t.localMode&&(t.localState=t.localMode.startState()),t.f=t.block=c,n.highlightFormatting&&(t.formatting="code-block"),t.code=!0,d(t)):i(e,t,t.inline)}function l(e,t){var n=_.token(e,t.htmlState);return(x&&null===t.htmlState.tagStart&&!t.htmlState.context||t.md_inside&&e.current().indexOf(">")>-1)&&(t.f=p,t.block=s,t.htmlState=null),n}function c(e,t){return e.sol()&&e.match("```",!1)?(t.localMode=t.localState=null,t.f=t.block=u,null):t.localMode?t.localMode.token(e,t.localState):(e.skipToEnd(),T)}function u(e,t){e.match("```"),t.block=s,t.f=p,n.highlightFormatting&&(t.formatting="code-block"),t.code=!0;var r=d(t);return t.code=!1,r}function d(e){var t=[];if(e.formatting){t.push(R),"string"==typeof e.formatting&&(e.formatting=[e.formatting]);for(var r=0;r<e.formatting.length;r++)t.push(R+"-"+e.formatting[r]),"header"===e.formatting[r]&&t.push(R+"-"+e.formatting[r]+"-"+e.header),"quote"===e.formatting[r]&&t.push(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?R+"-"+e.formatting[r]+"-"+e.quote:"error")}if(e.taskOpen)return t.push("meta"),t.length?t.join(" "):null;if(e.taskClosed)return t.push("property"),t.length?t.join(" "):null;if(e.linkHref)return t.push(P),t.length?t.join(" "):null;if(e.strong&&t.push($),e.em&&t.push(D),e.strikethrough&&t.push(q),e.linkText&&t.push(z),e.code&&t.push(T),e.header&&(t.push(S),t.push(S+"-"+e.header)),e.quote&&(t.push(E),t.push(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=e.quote?E+"-"+e.quote:E+"-"+n.maxBlockquoteDepth)),e.list!==!1){var i=(e.listDepth-1)%3;t.push(i?1===i?M:L:C)}return e.trailingSpaceNewLine?t.push("trailing-space-new-line"):e.trailingSpace&&t.push("trailing-space-"+(e.trailingSpace%2?"a":"b")),t.length?t.join(" "):null}function f(e,t){return e.match(V,!0)?d(t):void 0}function p(t,r){var i=r.text(t,r);if("undefined"!=typeof i)return i;if(r.list)return r.list=null,d(r);if(r.taskList){var a="x"!==t.match(F,!0)[1];return a?r.taskOpen=!0:r.taskClosed=!0,n.highlightFormatting&&(r.formatting="task"),r.taskList=!1,d(r)}if(r.taskOpen=!1,r.taskClosed=!1,r.header&&t.match(/^#+$/,!0))return n.highlightFormatting&&(r.formatting="header"),d(r);var s=t.sol(),c=t.next();if("\\"===c&&(t.next(),n.highlightFormatting)){var u=d(r);return u?u+" formatting-escape":"formatting-escape"}if(r.linkTitle){r.linkTitle=!1;var f=c;"("===c&&(f=")"),f=(f+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1");var p="^\\s*(?:[^"+f+"\\\\]+|\\\\\\\\|\\\\.)"+f;if(t.match(new RegExp(p),!0))return P}if("`"===c){var g=r.formatting;n.highlightFormatting&&(r.formatting="code");var v=d(r),b=t.pos;t.eatWhile("`");var y=1+t.pos-b;return r.code?y===w?(r.code=!1,v):(r.formatting=g,d(r)):(w=y,r.code=!0,d(r))}if(r.code)return d(r);if("!"===c&&t.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return t.match(/\[[^\]]*\]/),r.inline=r.f=m,I;if("["===c&&t.match(/.*\](\(| ?\[)/,!1))return r.linkText=!0,n.highlightFormatting&&(r.formatting="link"),d(r);if("]"===c&&r.linkText){n.highlightFormatting&&(r.formatting="link");var u=d(r);return r.linkText=!1,r.inline=r.f=m,u}if("<"===c&&t.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){r.f=r.inline=h,n.highlightFormatting&&(r.formatting="link");var u=d(r);return u?u+=" ":u="",u+O}if("<"===c&&t.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){r.f=r.inline=h,n.highlightFormatting&&(r.formatting="link");var u=d(r);return u?u+=" ":u="",u+N}if("<"===c&&t.match(/^\w/,!1)){if(-1!=t.string.indexOf(">")){var k=t.string.substring(1,t.string.indexOf(">"));/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(k)&&(r.md_inside=!0)}return t.backUp(1),r.htmlState=e.startState(_),o(t,r,l)}if("<"===c&&t.match(/^\/\w*?>/))return r.md_inside=!1,"tag";var x=!1;if(!n.underscoresBreakWords&&"_"===c&&"_"!==t.peek()&&t.match(/(\w)/,!1)){var S=t.pos-2;if(S>=0){var T=t.string.charAt(S);"_"!==T&&T.match(/(\w)/,!1)&&(x=!0)}}if("*"===c||"_"===c&&!x)if(s&&" "===t.peek());else{if(r.strong===c&&t.eat(c)){n.highlightFormatting&&(r.formatting="strong");var v=d(r);return r.strong=!1,v}if(!r.strong&&t.eat(c))return r.strong=c,n.highlightFormatting&&(r.formatting="strong"),d(r);if(r.em===c){n.highlightFormatting&&(r.formatting="em");var v=d(r);return r.em=!1,v}if(!r.em)return r.em=c,n.highlightFormatting&&(r.formatting="em"),d(r)}else if(" "===c&&(t.eat("*")||t.eat("_"))){if(" "===t.peek())return d(r);t.backUp(1)}if(n.strikethrough)if("~"===c&&t.eatWhile(c)){if(r.strikethrough){n.highlightFormatting&&(r.formatting="strikethrough");var v=d(r);return r.strikethrough=!1,v}if(t.match(/^[^\s]/,!1))return r.strikethrough=!0,n.highlightFormatting&&(r.formatting="strikethrough"),d(r)}else if(" "===c&&t.match(/^~~/,!0)){if(" "===t.peek())return d(r);t.backUp(2)}return" "===c&&(t.match(/ +$/,!1)?r.trailingSpace++:r.trailingSpace&&(r.trailingSpaceNewLine=!0)),d(r)}function h(e,t){var r=e.next();if(">"===r){t.f=t.inline=p,n.highlightFormatting&&(t.formatting="link");var i=d(t);return i?i+=" ":i="",i+O}return e.match(/^[^>]+/,!0),O}function m(e,t){if(e.eatSpace())return null;var r=e.next();return"("===r||"["===r?(t.f=t.inline=g("("===r?")":"]"),n.highlightFormatting&&(t.formatting="link-string"),t.linkHref=!0,d(t)):"error"}function g(e){return function(t,r){var i=t.next();if(i===e){r.f=r.inline=p,n.highlightFormatting&&(r.formatting="link-string");var o=d(r);return r.linkHref=!1,o}return t.match(k(e),!0)&&t.backUp(1),r.linkHref=!0,d(r)}}function v(e,t){return e.match(/^[^\]]*\]:/,!1)?(t.f=b,e.next(),n.highlightFormatting&&(t.formatting="link"),t.linkText=!0,d(t)):i(e,t,p)}function b(e,t){if(e.match(/^\]:/,!0)){t.f=t.inline=y,n.highlightFormatting&&(t.formatting="link");var r=d(t);return t.linkText=!1,r}return e.match(/^[^\]]+/,!0),z}function y(e,t){return e.eatSpace()?null:(e.match(/^[^\s]+/,!0),void 0===e.peek()?t.linkTitle=!0:e.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),t.f=t.inline=p,P)}function k(e){return G[e]||(e=(e+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),G[e]=new RegExp("^(?:[^\\\\]|\\\\.)*?("+e+")")),G[e]}var x=e.modes.hasOwnProperty("xml"),_=e.getMode(t,x?{name:"xml",htmlMode:!0}:"text/plain");void 0===n.highlightFormatting&&(n.highlightFormatting=!1),void 0===n.maxBlockquoteDepth&&(n.maxBlockquoteDepth=0),void 0===n.underscoresBreakWords&&(n.underscoresBreakWords=!0),void 0===n.fencedCodeBlocks&&(n.fencedCodeBlocks=!1),void 0===n.taskLists&&(n.taskLists=!1),void 0===n.strikethrough&&(n.strikethrough=!1);var w=0,S="header",T="comment",E="quote",C="variable-2",M="variable-3",L="keyword",A="hr",I="tag",R="formatting",O="link",N="link",z="link",P="string",D="em",$="strong",q="strikethrough",j=/^([*\-=_])(?:\s*\1){2,}\s*$/,W=/^[*\-+]\s+/,U=/^[0-9]+\.\s+/,F=/^\[(x| )\](?=\s)/,B=/^#+/,H=/^(?:\={1,}|-{1,})$/,V=/^[^#!\[\]*_\\<>` "'(~]+/,G=[],K={startState:function(){return{f:s,prevLineHasContent:!1,thisLineHasContent:!1,block:s,htmlState:null,indentation:0,inline:p,text:f,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,em:!1,strong:!1,header:0,taskList:!1,list:!1,listDepth:0,quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1}},copyState:function(t){return{f:t.f,prevLineHasContent:t.prevLineHasContent,thisLineHasContent:t.thisLineHasContent,block:t.block,htmlState:t.htmlState&&e.copyState(_,t.htmlState),indentation:t.indentation,localMode:t.localMode,localState:t.localMode?e.copyState(t.localMode,t.localState):null,inline:t.inline,text:t.text,formatting:!1,linkTitle:t.linkTitle,em:t.em,strong:t.strong,strikethrough:t.strikethrough,header:t.header,taskList:t.taskList,list:t.list,listDepth:t.listDepth,quote:t.quote,trailingSpace:t.trailingSpace,trailingSpaceNewLine:t.trailingSpaceNewLine,md_inside:t.md_inside}},token:function(e,t){if(t.formatting=!1,e.sol()){var n=!!t.header;if(t.header=0,e.match(/^\s*$/,!0)||n)return t.prevLineHasContent=!1,a(t),n?this.token(e,t):null;t.prevLineHasContent=t.thisLineHasContent,t.thisLineHasContent=!0,t.taskList=!1,t.code=!1,t.trailingSpace=0,t.trailingSpaceNewLine=!1,t.f=t.block;var r=e.match(/^\s*/,!0)[0].replace(/\t/g," ").length,i=4*Math.floor((r-t.indentation)/4);i>4&&(i=4);var o=t.indentation+i;if(t.indentationDiff=o-t.indentation,t.indentation=o,r>0)return null}return t.f(e,t)},innerMode:function(e){return e.block==l?{state:e.htmlState,mode:_}:e.localState?{state:e.localState,mode:e.localMode}:{state:e,mode:K}},blankLine:a,getType:d,fold:"markdown"};return K},"xml"),e.defineMIME("text/x-markdown","markdown")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMIME("text/mirc","mirc"),e.defineMode("mirc",function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function t(e,t,n){return t.tokenize=n,n(e,t)}function n(e,n){var c=n.beforeParams;n.beforeParams=!1;var u=e.next();if(/[\[\]{}\(\),\.]/.test(u))return"("==u&&c?n.inParams=!0:")"==u&&(n.inParams=!1),null;if(/\d/.test(u))return e.eatWhile(/[\w\.]/),"number";if("\\"==u)return e.eat("\\"),e.eat(/./),"number";if("/"==u&&e.eat("*"))return t(e,n,r);if(";"==u&&e.match(/ *\( *\(/))return t(e,n,i);if(";"!=u||n.inParams){if('"'==u)return e.eat(/"/),"keyword";if("$"==u)return e.eatWhile(/[$_a-z0-9A-Z\.:]/),o&&o.propertyIsEnumerable(e.current().toLowerCase())?"keyword":(n.beforeParams=!0,"builtin");if("%"==u)return e.eatWhile(/[^,^\s^\(^\)]/),n.beforeParams=!0,"string";if(l.test(u))return e.eatWhile(l),"operator";e.eatWhile(/[\w\$_{}]/);var d=e.current().toLowerCase();return a&&a.propertyIsEnumerable(d)?"keyword":s&&s.propertyIsEnumerable(d)?(n.beforeParams=!0,"keyword"):null}return e.skipToEnd(),"comment"}function r(e,t){for(var r=!1,i;i=e.next();){if("/"==i&&r){t.tokenize=n;break}r="*"==i}return"comment"}function i(e,t){for(var r=0,i;i=e.next();){if(";"==i&&2==r){t.tokenize=n;break}")"==i?r++:" "!=i&&(r=0)}return"meta"}var o=e("$! $$ $& $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"),a=e("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"),s=e("if elseif else and not or eq ne in ni for foreach while switch"),l=/[+\-*&%=<>!?^\/\|]/;return{startState:function(){return{tokenize:n,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("mllike",function(e,t){function n(e,n){var a=e.next();if('"'===a)return n.tokenize=r,n.tokenize(e,n);if("("===a&&e.eat("*"))return n.commentLevel++,n.tokenize=i,n.tokenize(e,n);if("~"===a)return e.eatWhile(/\w/),"variable-2";if("`"===a)return e.eatWhile(/\w/),"quote";if("/"===a&&t.slashComments&&e.eat("/"))return e.skipToEnd(),"comment";if(/\d/.test(a))return e.eatWhile(/[\d]/),e.eat(".")&&e.eatWhile(/[\d]/),"number";if(/[+\-*&%=<>!?|]/.test(a))return"operator";e.eatWhile(/\w/);var s=e.current();return o[s]||"variable"}function r(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if('"'===r&&!o){i=!0;break}o=!o&&"\\"===r}return i&&!o&&(t.tokenize=n),"string"}function i(e,t){for(var r,i;t.commentLevel>0&&null!=(i=e.next());)"("===r&&"*"===i&&t.commentLevel++,"*"===r&&")"===i&&t.commentLevel--,r=i;return t.commentLevel<=0&&(t.tokenize=n),"comment"}var o={let:"keyword",rec:"keyword","in":"keyword",of:"keyword",and:"keyword","if":"keyword",then:"keyword","else":"keyword","for":"keyword",to:"keyword","while":"keyword","do":"keyword",done:"keyword",fun:"keyword","function":"keyword",val:"keyword",type:"keyword",mutable:"keyword",match:"keyword","with":"keyword","try":"keyword",open:"builtin",ignore:"builtin",begin:"keyword",end:"keyword"},a=t.extraWords||{};for(var s in a)a.hasOwnProperty(s)&&(o[s]=t.extraWords[s]);return{startState:function(){return{tokenize:n,commentLevel:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:t.slashComments?"//":null}}),e.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{succ:"keyword",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin","true":"atom","false":"atom",raise:"keyword"}}),e.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{"abstract":"keyword",as:"keyword",assert:"keyword",base:"keyword","class":"keyword","default":"keyword",delegate:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",exception:"keyword",extern:"keyword","finally":"keyword",global:"keyword",inherit:"keyword",inline:"keyword","interface":"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",member:"keyword",module:"keyword",namespace:"keyword","new":"keyword","null":"keyword",override:"keyword","private":"keyword","public":"keyword","return":"keyword","return!":"keyword",select:"keyword","static":"keyword",struct:"keyword",upcast:"keyword",use:"keyword","use!":"keyword",val:"keyword",when:"keyword","yield":"keyword","yield!":"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin","int":"builtin",string:"builtin",raise:"builtin",failwith:"builtin",not:"builtin","true":"builtin","false":"builtin"},slashComments:!0})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function n(t,n){function r(e){if(e)for(var t in e)e.hasOwnProperty(t)&&i.push(t)}"string"==typeof t&&(t=[t]);var i=[];r(n.keywords),r(n.builtin),r(n.atoms),i.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],i));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}e.defineMode("modelica",function(t,n){function r(e,t){return e.skipToEnd(),t.tokenize=null,"comment"}function i(e,t){for(var n=!1,r;r=e.next();){if(n&&"/"==r){t.tokenize=null;break}n="*"==r}return"comment"}function o(e,t){for(var n=!1,r;null!=(r=e.next());){if('"'==r&&!n){t.tokenize=null,t.sol=!1;break}n=!n&&"\\"==r}return"string"}function a(e,t){for(e.eatWhile(m);e.eat(m)||e.eat(g););var n=e.current();return!t.sol||"package"!=n&&"model"!=n&&"when"!=n&&"connector"!=n?t.sol&&"end"==n&&t.level>0&&t.level--:t.level++,t.tokenize=null,t.sol=!1,u.propertyIsEnumerable(n)?"keyword":d.propertyIsEnumerable(n)?"builtin":f.propertyIsEnumerable(n)?"atom":"variable"}function s(e,t){for(;e.eat(/[^']/););return t.tokenize=null,t.sol=!1,e.eat("'")?"variable":"error"}function l(e,t){return e.eatWhile(m),e.eat(".")&&e.eatWhile(m),(e.eat("e")||e.eat("E"))&&(e.eat("-")||e.eat("+"),e.eatWhile(m)),t.tokenize=null,t.sol=!1,"number"}var c=t.indentUnit,u=n.keywords||{},d=n.builtin||{},f=n.atoms||{},p=/[;=\(:\),{}.*<>+\-\/^\[\]]/,h=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,m=/[0-9]/,g=/[_a-zA-Z]/;return{startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(e,t){if(null!=t.tokenize)return t.tokenize(e,t);if(e.sol()&&(t.sol=!0),e.eatSpace())return t.tokenize=null,null;var n=e.next();if("/"==n&&e.eat("/"))t.tokenize=r;else if("/"==n&&e.eat("*"))t.tokenize=i;else{if(h.test(n+e.peek()))return e.next(),t.tokenize=null,"operator";if(p.test(n))return t.tokenize=null,"operator";if(g.test(n))t.tokenize=a;else if("'"==n&&e.peek()&&"'"!=e.peek())t.tokenize=s;else if('"'==n)t.tokenize=o;else{if(!m.test(n))return t.tokenize=null,"error";t.tokenize=l}}return t.tokenize(e,t)},indent:function(t,n){if(null!=t.tokenize)return e.Pass;var r=t.level;return/(algorithm)/.test(n)&&r--,/(equation)/.test(n)&&r--,/(initial algorithm)/.test(n)&&r--,/(initial equation)/.test(n)&&r--,/(end)/.test(n)&&r--,r>0?c*r:0},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}});var r="algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within",i="abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh",o="Real Boolean Integer String";n(["text/x-modelica"],{name:"modelica",keywords:t(r),builtin:t(i),atoms:t(o)})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("nginx",function(e){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function n(e,t){return d=t,e}function r(e,t){e.eatWhile(/[\w\$_]/);var r=e.current();if(s.propertyIsEnumerable(r))return"keyword";if(l.propertyIsEnumerable(r))return"variable-2";if(c.propertyIsEnumerable(r))return"string-2";var u=e.next();return"@"==u?(e.eatWhile(/[\w\\\-]/),n("meta",e.current())):"/"==u&&e.eat("*")?(t.tokenize=i,i(e,t)):"<"==u&&e.eat("!")?(t.tokenize=o,o(e,t)):"="!=u?"~"!=u&&"|"!=u||!e.eat("=")?'"'==u||"'"==u?(t.tokenize=a(u),t.tokenize(e,t)):"#"==u?(e.skipToEnd(),n("comment","comment")):"!"==u?(e.match(/^\s*\w*/),n("keyword","important")):/\d/.test(u)?(e.eatWhile(/[\w.%]/),n("number","unit")):/[,.+>*\/]/.test(u)?n(null,"select-op"):/[;{}:\[\]]/.test(u)?n(null,u):(e.eatWhile(/[\w\\\-]/),n("variable","variable")):n(null,"compare"):void n(null,"compare")}function i(e,t){for(var i=!1,o;null!=(o=e.next());){if(i&&"/"==o){t.tokenize=r;break}i="*"==o}return n("comment","comment")}function o(e,t){for(var i=0,o;null!=(o=e.next());){if(i>=2&&">"==o){t.tokenize=r;break}i="-"==o?i+1:0}return n("comment","comment")}function a(e){return function(t,i){for(var o=!1,a;null!=(a=t.next())&&(a!=e||o);)o=!o&&"\\"==a;return o||(i.tokenize=r),n("string","string")}}var s=t("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),l=t("http mail events server types location upstream charset_map limit_except if geo map"),c=t("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),u=e.indentUnit,d;return{startState:function(e){return{tokenize:r,baseIndent:e||0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;d=null;var n=t.tokenize(e,t),r=t.stack[t.stack.length-1];return"hash"==d&&"rule"==r?n="atom":"variable"==n&&("rule"==r?n="number":r&&"@media{"!=r||(n="tag")),"rule"==r&&/^[\{\};]$/.test(d)&&t.stack.pop(),"{"==d?"@media"==r?t.stack[t.stack.length-1]="@media{":t.stack.push("{"):"}"==d?t.stack.pop():"@media"==d?t.stack.push("@media"):"{"==r&&"comment"!=d&&t.stack.push("rule"),n},indent:function(e,t){var n=e.stack.length;return/^\}/.test(t)&&(n-="rule"==e.stack[e.stack.length-1]?2:1),e.baseIndent+n*u},electricChars:"}"}}),e.defineMIME("text/nginx","text/x-nginx-conf")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("ntriples",function(){function e(e,n){var r=e.location,i;i=r==t.PRE_SUBJECT&&"<"==n?t.WRITING_SUB_URI:r==t.PRE_SUBJECT&&"_"==n?t.WRITING_BNODE_URI:r==t.PRE_PRED&&"<"==n?t.WRITING_PRED_URI:r==t.PRE_OBJ&&"<"==n?t.WRITING_OBJ_URI:r==t.PRE_OBJ&&"_"==n?t.WRITING_OBJ_BNODE:r==t.PRE_OBJ&&'"'==n?t.WRITING_OBJ_LITERAL:r==t.WRITING_SUB_URI&&">"==n?t.PRE_PRED:r==t.WRITING_BNODE_URI&&" "==n?t.PRE_PRED:r==t.WRITING_PRED_URI&&">"==n?t.PRE_OBJ:r==t.WRITING_OBJ_URI&&">"==n?t.POST_OBJ:r==t.WRITING_OBJ_BNODE&&" "==n?t.POST_OBJ:r==t.WRITING_OBJ_LITERAL&&'"'==n?t.POST_OBJ:r==t.WRITING_LIT_LANG&&" "==n?t.POST_OBJ:r==t.WRITING_LIT_TYPE&&">"==n?t.POST_OBJ:r==t.WRITING_OBJ_LITERAL&&"@"==n?t.WRITING_LIT_LANG:r==t.WRITING_OBJ_LITERAL&&"^"==n?t.WRITING_LIT_TYPE:" "!=n||r!=t.PRE_SUBJECT&&r!=t.PRE_PRED&&r!=t.PRE_OBJ&&r!=t.POST_OBJ?r==t.POST_OBJ&&"."==n?t.PRE_SUBJECT:t.ERROR:r,e.location=i}var t={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};return{startState:function(){return{location:t.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(t,n){var r=t.next();if("<"==r){e(n,r);var i="";return t.eatWhile(function(e){return"#"!=e&&">"!=e?(i+=e,!0):!1;
|
||
|
||
}),n.uris.push(i),t.match("#",!1)?"variable":(t.next(),e(n,">"),"variable")}if("#"==r){var o="";return t.eatWhile(function(e){return">"!=e&&" "!=e?(o+=e,!0):!1}),n.anchors.push(o),"variable-2"}if(">"==r)return e(n,">"),"variable";if("_"==r){e(n,r);var a="";return t.eatWhile(function(e){return" "!=e?(a+=e,!0):!1}),n.bnodes.push(a),t.next(),e(n," "),"builtin"}if('"'==r)return e(n,r),t.eatWhile(function(e){return'"'!=e}),t.next(),"@"!=t.peek()&&"^"!=t.peek()&&e(n,'"'),"string";if("@"==r){e(n,"@");var s="";return t.eatWhile(function(e){return" "!=e?(s+=e,!0):!1}),n.langs.push(s),t.next(),e(n," "),"string-2"}if("^"==r){t.next(),e(n,"^");var l="";return t.eatWhile(function(e){return">"!=e?(l+=e,!0):!1}),n.types.push(l),t.next(),e(n,">"),"variable"}" "==r&&e(n,r),"."==r&&e(n,r)}}}),e.defineMIME("text/n-triples","ntriples")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("octave",function(){function e(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}function t(e,t){return e.sol()||"'"!==e.peek()?(t.tokenize=r,r(e,t)):(e.next(),t.tokenize=r,"operator")}function n(e,t){return e.match(/^.*%}/)?(t.tokenize=r,"comment"):(e.skipToEnd(),"comment")}function r(p,h){if(p.eatSpace())return null;if(p.match("%{"))return h.tokenize=n,p.skipToEnd(),"comment";if(p.match(/^[%#]/))return p.skipToEnd(),"comment";if(p.match(/^[0-9\.+-]/,!1)){if(p.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return p.tokenize=r,"number";if(p.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/))return"number";if(p.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}return p.match(e(["nan","NaN","inf","Inf"]))?"number":p.match(/^"([^"]|(""))*"/)?"string":p.match(/^'([^']|(''))*'/)?"string":p.match(f)?"keyword":p.match(d)?"builtin":p.match(u)?"variable":p.match(i)||p.match(a)?"operator":p.match(o)||p.match(s)||p.match(l)?null:p.match(c)?(h.tokenize=t,null):(p.next(),"error")}var i=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),o=new RegExp("^[\\(\\[\\{\\},:=;]"),a=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),s=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),l=new RegExp("^((>>=)|(<<=))"),c=new RegExp("^[\\]\\)]"),u=new RegExp("^[_A-Za-z¡-][_A-Za-z0-9¡-]*"),d=e(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),f=e(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);return{startState:function(){return{tokenize:r}},token:function(e,n){var r=n.tokenize(e,n);return("number"===r||"variable"===r)&&(n.tokenize=t),r}}}),e.defineMIME("text/x-octave","octave")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("pascal",function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function t(e,t){var s=e.next();if("#"==s&&t.startOfLine)return e.skipToEnd(),"meta";if('"'==s||"'"==s)return t.tokenize=n(s),t.tokenize(e,t);if("("==s&&e.eat("*"))return t.tokenize=r,r(e,t);if(/[\[\]{}\(\),;\:\.]/.test(s))return null;if(/\d/.test(s))return e.eatWhile(/[\w\.]/),"number";if("/"==s&&e.eat("/"))return e.skipToEnd(),"comment";if(a.test(s))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_]/);var l=e.current();return i.propertyIsEnumerable(l)?"keyword":o.propertyIsEnumerable(l)?"atom":"variable"}function n(e){return function(t,n){for(var r=!1,i,o=!1;null!=(i=t.next());){if(i==e&&!r){o=!0;break}r=!r&&"\\"==i}return(o||!r)&&(n.tokenize=null),"string"}}function r(e,t){for(var n=!1,r;r=e.next();){if(")"==r&&n){t.tokenize=null;break}n="*"==r}return"comment"}var i=e("and array begin case const div do downto else end file for forward integer boolean char function goto if in label mod nil not of or packed procedure program record repeat set string then to type until var while with"),o={"null":!0},a=/[+\-*&%=<>!?|\/]/;return{startState:function(){return{tokenize:null}},token:function(e,n){if(e.eatSpace())return null;var r=(n.tokenize||t)(e,n);return"comment"==r||"meta"==r?r:r},electricChars:"{}"}}),e.defineMIME("text/x-pascal","pascal")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../javascript/javascript")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../javascript/javascript"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("pegjs",function(t){function n(e){return e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)}var r=e.getMode(t,"javascript");return{startState:function(){return{inString:!1,stringType:null,inComment:!1,inChracterClass:!1,braced:0,lhs:!0,localState:null}},token:function(e,t){if(e&&(t.inString||t.inComment||'"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.inString=!0)),t.inString||t.inComment||!e.match(/^\/\*/)||(t.inComment=!0),t.inString){for(;t.inString&&!e.eol();)e.peek()===t.stringType?(e.next(),t.inString=!1):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property string":"string"}if(t.inComment){for(;t.inComment&&!e.eol();)e.match(/\*\//)?t.inComment=!1:e.match(/^.[^\*]*/);return"comment"}if(t.inChracterClass)for(;t.inChracterClass&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(/^\\./)||(t.inChracterClass=!1);else{if("["===e.peek())return e.next(),t.inChracterClass=!0,"bracket";if(e.match(/^\/\//))return e.skipToEnd(),"comment";if(t.braced||"{"===e.peek()){null===t.localState&&(t.localState=r.startState());var i=r.token(e,t.localState),o=e.current();if(!i)for(var a=0;a<o.length;a++)"{"===o[a]?t.braced++:"}"===o[a]&&t.braced--;return i}if(n(e))return":"===e.peek()?"variable":"variable-2";if(-1!=["[","]","(",")"].indexOf(e.peek()))return e.next(),"bracket";e.eatSpace()||e.next()}return null}}},"javascript")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){return e.string.charAt(e.pos+(t||0))}function n(e,t){if(t){var n=e.pos-t;return e.string.substr(n>=0?n:0,t)}return e.string.substr(0,e.pos-1)}function r(e,t){var n=e.string.length,r=n-e.pos+1;return e.string.substr(e.pos,t&&n>t?t:r)}function i(e,t){var n=e.pos+t,r;0>=n?e.pos=0:n>=(r=e.string.length-1)?e.pos=r:e.pos=n}e.defineMode("perl",function(){function e(e,t,n,r,i){return t.chain=null,t.style=null,t.tail=null,t.tokenize=function(e,t){for(var o=!1,s,l=0;s=e.next();){if(s===n[l]&&!o)return void 0!==n[++l]?(t.chain=n[l],t.style=r,t.tail=i):i&&e.eatWhile(i),t.tokenize=a,r;o=!o&&"\\"==s}return r},t.tokenize(e,t)}function o(e,t,n){return t.tokenize=function(e,t){return e.string==n&&(t.tokenize=a),e.skipToEnd(),"string"},t.tokenize(e,t)}function a(a,u){if(a.eatSpace())return null;if(u.chain)return e(a,u,u.chain,u.style,u.tail);if(a.match(/^\-?[\d\.]/,!1)&&a.match(/^(\-?(\d*\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F]+|0b[01]+|\d+(e[+-]?\d+)?)/))return"number";if(a.match(/^<<(?=\w)/))return a.eatWhile(/\w/),o(a,u,a.current().substr(2));if(a.sol()&&a.match(/^\=item(?!\w)/))return o(a,u,"=cut");var d=a.next();if('"'==d||"'"==d){if(n(a,3)=="<<"+d){var f=a.pos;a.eatWhile(/\w/);var p=a.current().substr(1);if(p&&a.eat(d))return o(a,u,p);a.pos=f}return e(a,u,[d],"string")}if("q"==d){var h=t(a,-2);if(!h||!/\w/.test(h))if(h=t(a,0),"x"==h){if(h=t(a,1),"("==h)return i(a,2),e(a,u,[")"],l,c);if("["==h)return i(a,2),e(a,u,["]"],l,c);if("{"==h)return i(a,2),e(a,u,["}"],l,c);if("<"==h)return i(a,2),e(a,u,[">"],l,c);if(/[\^'"!~\/]/.test(h))return i(a,1),e(a,u,[a.eat(h)],l,c)}else if("q"==h){if(h=t(a,1),"("==h)return i(a,2),e(a,u,[")"],"string");if("["==h)return i(a,2),e(a,u,["]"],"string");if("{"==h)return i(a,2),e(a,u,["}"],"string");if("<"==h)return i(a,2),e(a,u,[">"],"string");if(/[\^'"!~\/]/.test(h))return i(a,1),e(a,u,[a.eat(h)],"string")}else if("w"==h){if(h=t(a,1),"("==h)return i(a,2),e(a,u,[")"],"bracket");if("["==h)return i(a,2),e(a,u,["]"],"bracket");if("{"==h)return i(a,2),e(a,u,["}"],"bracket");if("<"==h)return i(a,2),e(a,u,[">"],"bracket");if(/[\^'"!~\/]/.test(h))return i(a,1),e(a,u,[a.eat(h)],"bracket")}else if("r"==h){if(h=t(a,1),"("==h)return i(a,2),e(a,u,[")"],l,c);if("["==h)return i(a,2),e(a,u,["]"],l,c);if("{"==h)return i(a,2),e(a,u,["}"],l,c);if("<"==h)return i(a,2),e(a,u,[">"],l,c);if(/[\^'"!~\/]/.test(h))return i(a,1),e(a,u,[a.eat(h)],l,c)}else if(/[\^'"!~\/(\[{<]/.test(h)){if("("==h)return i(a,1),e(a,u,[")"],"string");if("["==h)return i(a,1),e(a,u,["]"],"string");if("{"==h)return i(a,1),e(a,u,["}"],"string");if("<"==h)return i(a,1),e(a,u,[">"],"string");if(/[\^'"!~\/]/.test(h))return e(a,u,[a.eat(h)],"string")}}if("m"==d){var h=t(a,-2);if((!h||!/\w/.test(h))&&(h=a.eat(/[(\[{<\^'"!~\/]/))){if(/[\^'"!~\/]/.test(h))return e(a,u,[h],l,c);if("("==h)return e(a,u,[")"],l,c);if("["==h)return e(a,u,["]"],l,c);if("{"==h)return e(a,u,["}"],l,c);if("<"==h)return e(a,u,[">"],l,c)}}if("s"==d){var h=/[\/>\]})\w]/.test(t(a,-2));if(!h&&(h=a.eat(/[(\[{<\^'"!~\/]/)))return"["==h?e(a,u,["]","]"],l,c):"{"==h?e(a,u,["}","}"],l,c):"<"==h?e(a,u,[">",">"],l,c):"("==h?e(a,u,[")",")"],l,c):e(a,u,[h,h],l,c)}if("y"==d){var h=/[\/>\]})\w]/.test(t(a,-2));if(!h&&(h=a.eat(/[(\[{<\^'"!~\/]/)))return"["==h?e(a,u,["]","]"],l,c):"{"==h?e(a,u,["}","}"],l,c):"<"==h?e(a,u,[">",">"],l,c):"("==h?e(a,u,[")",")"],l,c):e(a,u,[h,h],l,c)}if("t"==d){var h=/[\/>\]})\w]/.test(t(a,-2));if(!h&&(h=a.eat("r"),h&&(h=a.eat(/[(\[{<\^'"!~\/]/))))return"["==h?e(a,u,["]","]"],l,c):"{"==h?e(a,u,["}","}"],l,c):"<"==h?e(a,u,[">",">"],l,c):"("==h?e(a,u,[")",")"],l,c):e(a,u,[h,h],l,c)}if("`"==d)return e(a,u,[d],"variable-2");if("/"==d)return/~\s*$/.test(n(a))?e(a,u,[d],l,c):"operator";if("$"==d){var f=a.pos;if(a.eatWhile(/\d/)||a.eat("{")&&a.eatWhile(/\d/)&&a.eat("}"))return"variable-2";a.pos=f}if(/[$@%]/.test(d)){var f=a.pos;if(a.eat("^")&&a.eat(/[A-Z]/)||!/[@$%&]/.test(t(a,-2))&&a.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var h=a.current();if(s[h])return"variable-2"}a.pos=f}if(/[$@%&]/.test(d)&&(a.eatWhile(/[\w$\[\]]/)||a.eat("{")&&a.eatWhile(/[\w$\[\]]/)&&a.eat("}"))){var h=a.current();return s[h]?"variable-2":"variable"}if("#"==d&&"$"!=t(a,-2))return a.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(d)){var f=a.pos;if(a.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),s[a.current()])return"operator";a.pos=f}if("_"==d&&1==a.pos){if("_END__"==r(a,6))return e(a,u,["\x00"],"comment");if("_DATA__"==r(a,7))return e(a,u,["\x00"],"variable-2");if("_C__"==r(a,7))return e(a,u,["\x00"],"string")}if(/\w/.test(d)){var f=a.pos;if("{"==t(a,-2)&&("}"==t(a,0)||a.eatWhile(/\w/)&&"}"==t(a,0)))return"string";a.pos=f}if(/[A-Z]/.test(d)){var m=t(a,-2),f=a.pos;if(a.eatWhile(/[A-Z_]/),!/[\da-z]/.test(t(a,0))){var h=s[a.current()];return h?(h[1]&&(h=h[0]),":"!=m?1==h?"keyword":2==h?"def":3==h?"atom":4==h?"operator":5==h?"variable-2":"meta":"meta"):"meta"}a.pos=f}if(/[a-zA-Z_]/.test(d)){var m=t(a,-2);a.eatWhile(/\w/);var h=s[a.current()];return h?(h[1]&&(h=h[0]),":"!=m?1==h?"keyword":2==h?"def":3==h?"atom":4==h?"operator":5==h?"variable-2":"meta":"meta"):"meta"}return null}var s={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,"if":[1,1],elsif:[1,1],"else":[1,1],"while":[1,1],unless:[1,1],"for":[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,"break":1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,"continue":[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,"default":1,defined:1,"delete":1,die:1,"do":1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,"goto":1,grep:1,hex:1,"import":1,index:1,"int":1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,"new":1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,"package":1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,"return":1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},l="string-2",c=/[goseximacplud]/;return{startState:function(){return{tokenize:a,chain:null,style:null,tail:null}},token:function(e,t){return(t.tokenize||a)(e,t)}}}),e.registerHelper("wordChars","perl",/[\w$]/),e.defineMIME("text/x-perl","perl")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../clike/clike")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function n(e,t){return 0==e.length?r(t):function(i,o){for(var a=e[0],s=0;s<a.length;s++)if(i.match(a[s][0]))return o.tokenize=n(e.slice(1),t),a[s][1];return o.tokenize=r(t),"string"}}function r(e){return function(t,n){return i(t,n,e)}}function i(e,t,r){if(e.match("${",!1)||e.match("{$",!1))return t.tokenize=null,"string";if(e.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return e.match("[",!1)&&(t.tokenize=n([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],r)),e.match(/\-\>\w/,!1)&&(t.tokenize=n([[["->",null]],[[/[\w]+/,"variable"]]],r)),"variable-2";for(var i=!1;!e.eol()&&(i||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!i&&e.match(r)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}i="\\"==e.next()&&!i}return"string"}var o="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",a="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",s="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";e.registerHelper("hintWords","php",[o,a,s].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var l={name:"clike",helperType:"php",keywords:t(o),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),atoms:t(a),builtin:t(s),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){if(e.match(/<</)){e.eatWhile(/[\w\.]/);var n=e.current().slice(3);if(n)return(t.tokStack||(t.tokStack=[])).push(n,0),t.tokenize=r(n),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=r('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&t.tokStack.length>0&&!--t.tokStack[t.tokStack.length-1]&&(t.tokenize=r(t.tokStack[t.tokStack.length-2])),!1}}};e.defineMode("php",function(t,n){function r(e,t){var n=t.curMode==o;if(e.sol()&&t.pending&&'"'!=t.pending&&"'"!=t.pending&&(t.pending=null),n)return n&&null==t.php.tokenize&&e.match("?>")?(t.curMode=i,t.curState=t.html,"meta"):o.token(e,t.curState);if(e.match(/^<\?\w*/))return t.curMode=o,t.curState=t.php,"meta";if('"'==t.pending||"'"==t.pending){for(;!e.eol()&&e.next()!=t.pending;);var r="string"}else if(t.pending&&e.pos<t.pending.end){e.pos=t.pending.end;var r=t.pending.style}else var r=i.token(e,t.curState);t.pending&&(t.pending=null);var a=e.current(),s=a.search(/<\?/),l;return-1!=s&&("string"==r&&(l=a.match(/[\'\"]$/))&&!/\?>/.test(a)?t.pending=l[0]:t.pending={end:e.pos,style:r},e.backUp(a.length-s)),r}var i=e.getMode(t,"text/html"),o=e.getMode(t,l);return{startState:function(){var t=e.startState(i),r=e.startState(o);return{html:t,php:r,curMode:n.startOpen?o:i,curState:n.startOpen?r:t,pending:null}},copyState:function(t){var n=t.html,r=e.copyState(i,n),a=t.php,s=e.copyState(o,a),l;return l=t.curMode==i?r:s,{html:r,php:s,curMode:t.curMode,curState:l,pending:t.pending}},token:r,indent:function(e,t){return e.curMode!=o&&/^\s*<\//.test(t)||e.curMode==o&&/^\?>/.test(t)?i.indent(e.html,t):e.curMode.indent(e.curState,t)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}},"htmlmixed","clike"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",l)})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("pig",function(e,t){function n(e,t,n){return t.tokenize=n,n(e,t)}function r(e,t){return f=e,t}function i(e,t){for(var n=!1,i;i=e.next();){if("/"==i&&n){t.tokenize=a;break}n="*"==i}return r("comment","comment")}function o(e){return function(t,n){for(var i=!1,o,s=!1;null!=(o=t.next());){if(o==e&&!i){s=!0;break}i=!i&&"\\"==o}return(s||!i&&!u)&&(n.tokenize=a),r("string","error")}}function a(e,t){var a=e.next();return'"'==a||"'"==a?n(e,t,o(a)):/[\[\]{}\(\),;\.]/.test(a)?r(a):/\d/.test(a)?(e.eatWhile(/[\w\.]/),r("number","number")):"/"==a?e.eat("*")?n(e,t,i):(e.eatWhile(d),r("operator","operator")):"-"==a?e.eat("-")?(e.skipToEnd(),r("comment","comment")):(e.eatWhile(d),r("operator","operator")):d.test(a)?(e.eatWhile(d),r("operator","operator")):(e.eatWhile(/[\w\$_]/),s&&s.propertyIsEnumerable(e.current().toUpperCase())&&!e.eat(")")&&!e.eat(".")?"keyword":l&&l.propertyIsEnumerable(e.current().toUpperCase())?"variable-2":c&&c.propertyIsEnumerable(e.current().toUpperCase())?"variable-3":r("variable","pig-word"))}var s=t.keywords,l=t.builtins,c=t.types,u=t.multiLineStrings,d=/[*+\-%<>=&?:\/!|]/,f;return{startState:function(){return{tokenize:a,startOfLine:!0}},token:function(e,t){if(e.eatSpace())return null;var n=t.tokenize(e,t);return n}}}),function(){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var n="ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ",r="VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP",i="BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ";
|
||
|
||
e.defineMIME("text/x-pig",{name:"pig",builtins:t(n),keywords:t(r),types:t(i)}),e.registerHelper("hintWords","pig",(n+i+r).split(" "))}()})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("properties",function(){return{token:function(e,t){var n=e.sol()||t.afterSection,r=e.eol();if(t.afterSection=!1,n&&(t.nextMultiline?(t.inMultiline=!0,t.nextMultiline=!1):t.position="def"),r&&!t.nextMultiline&&(t.inMultiline=!1,t.position="def"),n)for(;e.eatSpace(););var i=e.next();return!n||"#"!==i&&"!"!==i&&";"!==i?n&&"["===i?(t.afterSection=!0,e.skipTo("]"),e.eat("]"),"header"):"="===i||":"===i?(t.position="quote",null):("\\"===i&&"quote"===t.position&&"u"!==e.next()&&(t.nextMultiline=!0),t.position):(t.position="comment",e.skipToEnd(),"comment")},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}}),e.defineMIME("text/x-properties","properties"),e.defineMIME("text/x-ini","properties")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("puppet",function(){function e(e,t){for(var n=t.split(" "),i=0;i<n.length;i++)r[n[i]]=e}function t(e,t){for(var n,r,i=!1;!e.eol()&&(n=e.next())!=t.pending;){if("$"===n&&"\\"!=r&&'"'==t.pending){i=!0;break}r=n}return i&&e.backUp(1),n==t.pending?t.continueString=!1:t.continueString=!0,"string"}function n(e,n){var o=e.match(/[\w]+/,!1),a=e.match(/(\s+)?\w+\s+=>.*/,!1),s=e.match(/(\s+)?[\w:_]+(\s+)?{/,!1),l=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),c=e.next();if("$"===c)return e.match(i)?n.continueString?"variable-2":"variable":"error";if(n.continueString)return e.backUp(1),t(e,n);if(n.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/))return"def";e.match(/\s+{/),n.inDefinition=!1}return n.inInclude?(e.match(/(\s+)?\S+(\s+)?/),n.inInclude=!1,"def"):e.match(/(\s+)?\w+\(/)?(e.backUp(1),"def"):a?(e.match(/(\s+)?\w+/),"tag"):o&&r.hasOwnProperty(o)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(n.inDefinition=!0),"include"==o&&(n.inInclude=!0),r[o]):/(\s+)?[A-Z]/.test(o)?(e.backUp(1),e.match(/(\s+)?[A-Z][\w:_]+/),"def"):s?(e.match(/(\s+)?[\w:_]+/),"def"):l?(e.match(/(\s+)?[@]{1,2}/),"special"):"#"==c?(e.skipToEnd(),"comment"):"'"==c||'"'==c?(n.pending=c,t(e,n)):"{"==c||"}"==c?"bracket":"/"==c?(e.match(/.*?\//),"variable-3"):c.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),"number"):"="==c?(">"==e.peek()&&e.next(),"operator"):(e.eatWhile(/[\w-]/),null)}var r={},i=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;return e("keyword","class define site node include import inherits"),e("keyword","case if else in and elsif default or"),e("atom","false true running present absent file directory undef"),e("builtin","action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool"),{startState:function(){var e={};return e.inDefinition=!1,e.inInclude=!1,e.continueString=!1,e.pending=!1,e},token:function(e,t){return e.eatSpace()?null:n(e,t)}}}),e.defineMIME("text/x-puppet","puppet")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}function n(e){return e.scopes[e.scopes.length-1]}var r=t(["and","or","not","is"]),i=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],o=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"],a={builtins:["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"],keywords:["exec","print"]},s={builtins:["ascii","bytes","exec","print"],keywords:["nonlocal","False","True","None"]};e.registerHelper("hintWords","python",i.concat(o)),e.defineMode("python",function(l,c){function u(e,t){if(e.sol()&&"py"==n(t).type){var r=n(t).offset;if(e.eatSpace()){var i=e.indentation();return i>r?p(e,t,"py"):r>i&&h(e,t)&&(t.errorToken=!0),null}var o=d(e,t);return r>0&&h(e,t)&&(o+=" "+g),o}return d(e,t)}function d(e,t){if(e.eatSpace())return null;var n=e.peek();if("#"==n)return e.skipToEnd(),"comment";if(e.match(/^[0-9\.]/,!1)){var i=!1;if(e.match(/^\d*\.\d+(e[\+\-]?\d+)?/i)&&(i=!0),e.match(/^\d+\.\d*/)&&(i=!0),e.match(/^\.\d+/)&&(i=!0),i)return e.eat(/J/i),"number";var o=!1;if(e.match(/^0x[0-9a-f]+/i)&&(o=!0),e.match(/^0b[01]+/i)&&(o=!0),e.match(/^0o[0-7]+/i)&&(o=!0),e.match(/^[1-9]\d*(e[\+\-]?\d+)?/)&&(e.eat(/J/i),o=!0),e.match(/^0(?![\dx])/i)&&(o=!0),o)return e.eat(/L/i),"number"}return e.match(E)?(t.tokenize=f(e.current()),t.tokenize(e,t)):e.match(k)||e.match(y)?null:e.match(b)||e.match(x)||e.match(r)?"operator":e.match(v)?null:e.match(C)?"keyword":e.match(M)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(_)?"def"==t.lastToken||"class"==t.lastToken?"def":"variable":(e.next(),g)}function f(e){function t(t,i){for(;!t.eol();)if(t.eatWhile(/[^'"\\]/),t.eat("\\")){if(t.next(),n&&t.eol())return r}else{if(t.match(e))return i.tokenize=u,r;t.eat(/['"]/)}if(n){if(c.singleLineStringErrors)return g;i.tokenize=u}return r}for(;"rub".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length,r="string";return t.isString=!0,t}function p(e,t,r){var i=0,o=null;if("py"==r)for(;"py"!=n(t).type;)t.scopes.pop();i=n(t).offset+("py"==r?l.indentUnit:w),"py"==r||e.match(/^(\s|#.*)*$/,!1)||(o=e.column()+1),t.scopes.push({offset:i,type:r,align:o})}function h(e,t){for(var r=e.indentation();n(t).offset>r;){if("py"!=n(t).type)return!0;t.scopes.pop()}return n(t).offset!=r}function m(e,t){var r=t.tokenize(e,t),i=e.current();if("."==i)return r=e.match(_,!1)?null:g,null==r&&"meta"==t.lastStyle&&(r="meta"),r;if("@"==i)return c.version&&3==parseInt(c.version,10)?e.match(_,!1)?"meta":"operator":e.match(_,!1)?"meta":g;"variable"!=r&&"builtin"!=r||"meta"!=t.lastStyle||(r="meta"),("pass"==i||"return"==i)&&(t.dedent+=1),"lambda"==i&&(t.lambda=!0),":"!=i||t.lambda||"py"!=n(t).type||p(e,t,"py");var o=1==i.length?"[({".indexOf(i):-1;if(-1!=o&&p(e,t,"])}".slice(o,o+1)),o="])}".indexOf(i),-1!=o){if(n(t).type!=i)return g;t.scopes.pop()}return t.dedent>0&&e.eol()&&"py"==n(t).type&&(t.scopes.length>1&&t.scopes.pop(),t.dedent-=1),r}var g="error",v=c.singleDelimiters||new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),b=c.doubleOperators||new RegExp("^((==)|(!=)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),y=c.doubleDelimiters||new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),k=c.tripleDelimiters||new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))");if(c.version&&3==parseInt(c.version,10))var x=c.singleOperators||new RegExp("^[\\+\\-\\*/%&|\\^~<>!@]"),_=c.identifiers||new RegExp("^[_A-Za-z¡-][_A-Za-z0-9¡-]*");else var x=c.singleOperators||new RegExp("^[\\+\\-\\*/%&|\\^~<>!]"),_=c.identifiers||new RegExp("^[_A-Za-z][_A-Za-z0-9]*");var w=c.hangingIndent||l.indentUnit,S=i,T=o;if(void 0!=c.extra_keywords&&(S=S.concat(c.extra_keywords)),void 0!=c.extra_builtins&&(T=T.concat(c.extra_builtins)),c.version&&3==parseInt(c.version,10)){S=S.concat(s.keywords),T=T.concat(s.builtins);var E=new RegExp("^(([rb]|(br))?('{3}|\"{3}|['\"]))","i")}else{S=S.concat(a.keywords),T=T.concat(a.builtins);var E=new RegExp("^(([rub]|(ur)|(br))?('{3}|\"{3}|['\"]))","i")}var C=t(S),M=t(T),L={startState:function(e){return{tokenize:u,scopes:[{offset:e||0,type:"py",align:null}],lastStyle:null,lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var n=t.errorToken;n&&(t.errorToken=!1);var r=m(e,t);t.lastStyle=r;var i=e.current();return i&&r&&(t.lastToken=i),e.eol()&&t.lambda&&(t.lambda=!1),n?r+" "+g:r},indent:function(t,r){if(t.tokenize!=u)return t.tokenize.isString?e.Pass:0;var i=n(t),o=r&&r.charAt(0)==i.type;return null!=i.align?i.align-(o?1:0):o&&t.scopes.length>1?t.scopes[t.scopes.length-2].offset:i.offset},lineComment:"#",fold:"indent"};return L}),e.defineMIME("text/x-python","python");var l=function(e){return e.split(" ")};e.defineMIME("text/x-cython",{name:"python",extra_keywords:l("by cdef cimport cpdef ctypedef enum exceptextern gil include nogil property publicreadonly struct union DEF IF ELIF ELSE")})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("q",function(e){function t(e){return new RegExp("^("+e.join("|")+")$")}function n(e,t){var i=e.sol(),s=e.next();if(u=null,i){if("/"==s)return(t.tokenize=r)(e,t);if("\\"==s)return e.eol()||/\s/.test(e.peek())?(e.skipToEnd(),/^\\\s*$/.test(e.current())?(t.tokenize=o)(e,t):t.tokenize=n,"comment"):(t.tokenize=n,"builtin")}if(/\s/.test(s))return"/"==e.peek()?(e.skipToEnd(),"comment"):"whitespace";if('"'==s)return(t.tokenize=a)(e,t);if("`"==s)return e.eatWhile(/[A-Z|a-z|\d|_|:|\/|\.]/),"symbol";if("."==s&&/\d/.test(e.peek())||/\d/.test(s)){var l=null;return e.backUp(1),e.match(/^\d{4}\.\d{2}(m|\.\d{2}([D|T](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||e.match(/^\d+[ptuv]{1}/)?l="temporal":(e.match(/^0[NwW]{1}/)||e.match(/^0x[\d|a-f|A-F]*/)||e.match(/^[0|1]+[b]{1}/)||e.match(/^\d+[chijn]{1}/)||e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(l="number"),!l||(s=e.peek())&&!f.test(s)?(e.next(),"error"):l}return/[A-Z|a-z]|\./.test(s)?(e.eatWhile(/[A-Z|a-z|\.|_|\d]/),d.test(e.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(s)?null:/[{}\(\[\]\)]/.test(s)?null:"error"}function r(e,t){return e.skipToEnd(),/\/\s*$/.test(e.current())?(t.tokenize=i)(e,t):t.tokenize=n,"comment"}function i(e,t){var r=e.sol()&&"\\"==e.peek();return e.skipToEnd(),r&&/^\\\s*$/.test(e.current())&&(t.tokenize=n),"comment"}function o(e){return e.skipToEnd(),"comment"}function a(e,t){for(var r=!1,i,o=!1;i=e.next();){if('"'==i&&!r){o=!0;break}r=!r&&"\\"==i}return o&&(t.tokenize=n),"string"}function s(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function l(e){e.indent=e.context.indent,e.context=e.context.prev}var c=e.indentUnit,u,d=t(["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"]),f=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;return{startState:function(){return{tokenize:n,context:null,indent:0,col:0}},token:function(e,t){e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation());var n=t.tokenize(e,t);if("comment"!=n&&t.context&&null==t.context.align&&"pattern"!=t.context.type&&(t.context.align=!0),"("==u)s(t,")",e.column());else if("["==u)s(t,"]",e.column());else if("{"==u)s(t,"}",e.column());else if(/[\]\}\)]/.test(u)){for(;t.context&&"pattern"==t.context.type;)l(t);t.context&&u==t.context.type&&l(t)}else"."==u&&t.context&&"pattern"==t.context.type?l(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?s(t,"pattern",e.column()):"pattern"!=t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t){var n=t&&t.charAt(0),r=e.context;if(/[\]\}]/.test(n))for(;r&&"pattern"==r.type;)r=r.prev;var i=r&&n==r.type;return r?"pattern"==r.type?r.col:r.align?r.col+(i?0:1):r.indent+(i?0:c):0}}}),e.defineMIME("text/x-q","q")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("r",function(e){function t(e){for(var t=e.split(" "),n={},r=0;r<t.length;++r)n[t[r]]=!0;return n}function n(e,t){d=null;var n=e.next();if("#"==n)return e.skipToEnd(),"comment";if("0"==n&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if("."==n&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(n))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if("'"==n||'"'==n)return t.tokenize=r(n),"string";if("."==n&&e.match(/.[.\d]+/))return"keyword";if(/[\w\.]/.test(n)&&"_"!=n){e.eatWhile(/[\w\.]/);var i=e.current();return a.propertyIsEnumerable(i)?"atom":l.propertyIsEnumerable(i)?(c.propertyIsEnumerable(i)&&!e.match(/\s*if(\s+|$)/,!1)&&(d="block"),"keyword"):s.propertyIsEnumerable(i)?"builtin":"variable"}return"%"==n?(e.skipTo("%")&&e.next(),"variable-2"):"<"==n&&e.eat("-")?"arrow":"="==n&&t.ctx.argList?"arg-is":u.test(n)?"$"==n?"dollar":(e.eatWhile(u),"operator"):/[\(\){}\[\];]/.test(n)?(d=n,";"==n?"semi":null):null}function r(e){return function(t,r){if(t.eat("\\")){var i=t.next();return"x"==i?t.match(/^[a-f0-9]{2}/i):("u"==i||"U"==i)&&t.eat("{")&&t.skipTo("}")?t.next():"u"==i?t.match(/^[a-f0-9]{4}/i):"U"==i?t.match(/^[a-f0-9]{8}/i):/[0-7]/.test(i)&&t.match(/^[0-7]{1,2}/),"string-2"}for(var o;null!=(o=t.next());){if(o==e){r.tokenize=n;break}if("\\"==o){t.backUp(1);break}}return"string"}}function i(e,t,n){e.ctx={type:t,indent:e.indent,align:null,column:n.column(),prev:e.ctx}}function o(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}var a=t("NULL NA Inf NaN NA_integer_ NA_real_ NA_complex_ NA_character_"),s=t("list quote bquote eval return call parse deparse"),l=t("if else repeat while function for in next break"),c=t("if else repeat while function for"),u=/[+\-*\/^<>=!&|~$:]/,d;return{startState:function(){return{tokenize:n,ctx:{type:"top",indent:-e.indentUnit,align:!1},indent:0,afterIdent:!1}},token:function(e,t){if(e.sol()&&(null==t.ctx.align&&(t.ctx.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);"comment"!=n&&null==t.ctx.align&&(t.ctx.align=!0);var r=t.ctx.type;return";"!=d&&"{"!=d&&"}"!=d||"block"!=r||o(t),"{"==d?i(t,"}",e):"("==d?(i(t,")",e),t.afterIdent&&(t.ctx.argList=!0)):"["==d?i(t,"]",e):"block"==d?i(t,"block",e):d==r&&o(t),t.afterIdent="variable"==n||"keyword"==n,n},indent:function(t,r){if(t.tokenize!=n)return 0;var i=r&&r.charAt(0),o=t.ctx,a=i==o.type;return"block"==o.type?o.indent+("{"==i?0:e.indentUnit):o.align?o.column+(a?0:1):o.indent+(a?0:e.indentUnit)},lineComment:"#"}}),e.defineMIME("text/x-rsrc","r")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("rpm-changes",function(){var e=/^-+$/,t=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,n=/^[\w+.-]+@[\w.-]+/;return{token:function(r){if(r.sol()){if(r.match(e))return"tag";if(r.match(t))return"tag"}return r.match(n)?"string":(r.next(),null)}}}),e.defineMIME("text/x-rpm-changes","rpm-changes"),e.defineMode("rpm-spec",function(){var e=/^(i386|i586|i686|x86_64|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,t=/^(Name|Version|Release|License|Summary|Url|Group|Source|BuildArch|BuildRequires|BuildRoot|AutoReqProv|Provides|Requires(\(\w+\))?|Obsoletes|Conflicts|Recommends|Source\d*|Patch\d*|ExclusiveArch|NoSource|Supplements):/,n=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pre|post|triggerin|triggerun|pretrans|posttrans|verifyscript|check|triggerpostun|triggerprein|trigger)/,r=/^%(ifnarch|ifarch|if)/,i=/^%(else|endif)/,o=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;return{startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(a,s){var l=a.peek();if("#"==l)return a.skipToEnd(),"comment";if(a.sol()){if(a.match(t))return"preamble";if(a.match(n))return"section"}if(a.match(/^\$\w+/))return"def";if(a.match(/^\$\{\w+\}/))return"def";if(a.match(i))return"keyword";if(a.match(r))return s.controlFlow=!0,"keyword";if(s.controlFlow){if(a.match(o))return"operator";if(a.match(/^(\d+)/))return"number";a.eol()&&(s.controlFlow=!1)}if(a.match(e))return"number";if(a.match(/^%[\w]+/))return a.match(/^\(/)&&(s.macroParameters=!0),"macro";if(s.macroParameters){if(a.match(/^\d+/))return"number";if(a.match(/^\)/))return s.macroParameters=!1,"macro"}return a.match(/^%\{\??[\w \-]+\}/)?"macro":(a.next(),null)}}}),e.defineMIME("text/x-rpm-spec","rpm-spec")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../python/python"),require("../stex/stex"),require("../../addon/mode/overlay")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../python/python","../stex/stex","../../addon/mode/overlay"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("rst",function(t,n){var r=/^\*\*[^\*\s](?:[^\*]*[^\*\s])?\*\*/,i=/^\*[^\*\s](?:[^\*]*[^\*\s])?\*/,o=/^``[^`\s](?:[^`]*[^`\s])``/,a=/^(?:[\d]+(?:[\.,]\d+)*)/,s=/^(?:\s\+[\d]+(?:[\.,]\d+)*)/,l=/^(?:\s\-[\d]+(?:[\.,]\d+)*)/,c="[Hh][Tt][Tt][Pp][Ss]?://",u="(?:[\\d\\w.-]+)\\.(?:\\w{2,6})",d="(?:/[\\d\\w\\#\\%\\&\\-\\.\\,\\/\\:\\=\\?\\~]+)*",f=new RegExp("^"+c+u+d),p={token:function(e){if(e.match(r)&&e.match(/\W+|$/,!1))return"strong";if(e.match(i)&&e.match(/\W+|$/,!1))return"em";if(e.match(o)&&e.match(/\W+|$/,!1))return"string-2";if(e.match(a))return"number";if(e.match(s))return"positive";if(e.match(l))return"negative";if(e.match(f))return"link";for(;!(null==e.next()||e.match(r,!1)||e.match(i,!1)||e.match(o,!1)||e.match(a,!1)||e.match(s,!1)||e.match(l,!1)||e.match(f,!1)););return null}},h=e.getMode(t,n.backdrop||"rst-base");return e.overlayMode(h,p,!0)},"python","stex"),e.defineMode("rst-base",function(t){function n(e){var t=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,function(e,n){return"undefined"!=typeof t[n]?t[n]:e})}function r(t,n){var o=null;if(t.sol()&&t.match(Z,!1))u(n,l,{mode:p,local:e.startState(p)});else if(t.sol()&&t.match(E))u(n,i),o="meta";else if(t.sol()&&t.match(T))u(n,r),o="header";else if(f(n)==D||t.match(D,!1))switch(d(n)){case 0:u(n,r,c(D,1)),t.match(/^:/),o="meta";break;case 1:u(n,r,c(D,2)),t.match(y),o="keyword",t.current().match(/^(?:math|latex)/)&&(n.tmp_stex=!0);break;case 2:u(n,r,c(D,3)),t.match(/^:`/),o="meta";break;case 3:if(n.tmp_stex&&(n.tmp_stex=void 0,n.tmp={mode:h,local:e.startState(h)}),n.tmp){if("`"==t.peek()){u(n,r,c(D,4)),n.tmp=void 0;break}o=n.tmp.mode.token(t,n.tmp.local);break}u(n,r,c(D,4)),t.match(S),o="string";break;case 4:u(n,r,c(D,5)),t.match(/^`/),o="meta";break;case 5:u(n,r,c(D,6)),t.match(v);break;default:u(n,r)}else if(f(n)==$||t.match($,!1))switch(d(n)){case 0:u(n,r,c($,1)),t.match(/^`/),o="meta";break;case 1:u(n,r,c($,2)),t.match(S),o="string";break;case 2:u(n,r,c($,3)),t.match(/^`:/),o="meta";break;case 3:u(n,r,c($,4)),t.match(y),o="keyword";break;case 4:u(n,r,c($,5)),t.match(/^:/),o="meta";break;case 5:u(n,r,c($,6)),t.match(v);break;default:u(n,r)}else if(f(n)==q||t.match(q,!1))switch(d(n)){case 0:u(n,r,c(q,1)),t.match(/^:/),o="meta";break;case 1:u(n,r,c(q,2)),t.match(y),o="keyword";break;case 2:u(n,r,c(q,3)),t.match(/^:/),o="meta";break;case 3:u(n,r,c(q,4)),t.match(v);break;default:u(n,r)}else if(f(n)==R||t.match(R,!1))switch(d(n)){case 0:u(n,r,c(R,1)),t.match(U),o="variable-2";break;case 1:u(n,r,c(R,2)),t.match(/^_?_?/)&&(o="link");break;default:u(n,r)}else if(t.match(O))u(n,r),o="quote";else if(t.match(N))u(n,r),o="quote";else if(t.match(z))u(n,r),(!t.peek()||t.peek().match(/^\W$/))&&(o="link");else if(f(n)==P||t.match(P,!1))switch(d(n)){case 0:!t.peek()||t.peek().match(/^\W$/)?u(n,r,c(P,1)):t.match(P);break;case 1:u(n,r,c(P,2)),t.match(/^`/),o="link";break;case 2:u(n,r,c(P,3)),t.match(S);break;case 3:u(n,r,c(P,4)),t.match(/^`_/),o="link";break;default:u(n,r)}else t.match(Y)?u(n,a):t.next()&&u(n,r);return o}function i(t,n){var a=null;if(f(n)==L||t.match(L,!1))switch(d(n)){case 0:u(n,i,c(L,1)),t.match(U),a="variable-2";break;case 1:u(n,i,c(L,2)),t.match(F);break;case 2:u(n,i,c(L,3)),t.match(B),a="keyword";break;case 3:u(n,i,c(L,4)),t.match(H),a="meta";break;default:u(n,r)}else if(f(n)==M||t.match(M,!1))switch(d(n)){case 0:u(n,i,c(M,1)),t.match(j),a="keyword",t.current().match(/^(?:math|latex)/)?n.tmp_stex=!0:t.current().match(/^python/)&&(n.tmp_py=!0);break;case 1:u(n,i,c(M,2)),t.match(W),a="meta",(t.match(/^latex\s*$/)||n.tmp_stex)&&(n.tmp_stex=void 0,u(n,l,{mode:h,local:e.startState(h)}));break;case 2:u(n,i,c(M,3)),(t.match(/^python\s*$/)||n.tmp_py)&&(n.tmp_py=void 0,u(n,l,{mode:p,local:e.startState(p)}));break;default:u(n,r)}else if(f(n)==C||t.match(C,!1))switch(d(n)){case 0:u(n,i,c(C,1)),t.match(V),t.match(G),a="link";break;case 1:u(n,i,c(C,2)),t.match(K),a="meta";break;default:u(n,r)}else t.match(A)?(u(n,r),a="quote"):t.match(I)?(u(n,r),a="quote"):(t.eatSpace(),t.eol()?u(n,r):(t.skipToEnd(),u(n,o),a="comment"));return a}function o(e,t){return s(e,t,"comment")}function a(e,t){return s(e,t,"meta")}function s(e,t,n){return e.eol()||e.eatSpace()?(e.skipToEnd(),n):(u(t,r),null)}function l(e,t){return t.ctx.mode&&t.ctx.local?e.sol()?(e.eatSpace()||u(t,r),null):t.ctx.mode.token(e,t.ctx.local):(u(t,r),null)}function c(e,t,n,r){return{phase:e,stage:t,mode:n,local:r}}function u(e,t,n){e.tok=t,e.ctx=n||{}}function d(e){return e.ctx.stage||0}function f(e){return e.ctx.phase}var p=e.getMode(t,"python"),h=e.getMode(t,"stex"),m="\\s+",g="(?:\\s*|\\W|$)",v=new RegExp(n("^{0}",g)),b="(?:[^\\W\\d_](?:[\\w!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)",y=new RegExp(n("^{0}",b)),k="(?:[^\\W\\d_](?:[\\w\\s!\"#$%&'()\\*\\+,\\-\\./:;<=>\\?]*[^\\W_])?)",x=n("(?:{0}|`{1}`)",b,k),_="(?:[^\\s\\|](?:[^\\|]*[^\\s\\|])?)",w="(?:[^\\`]+)",S=new RegExp(n("^{0}",w)),T=new RegExp("^([!'#$%&\"()*+,-./:;<=>?@\\[\\\\\\]^_`{|}~])\\1{3,}\\s*$"),E=new RegExp(n("^\\.\\.{0}",m)),C=new RegExp(n("^_{0}:{1}|^__:{1}",x,g)),M=new RegExp(n("^{0}::{1}",x,g)),L=new RegExp(n("^\\|{0}\\|{1}{2}::{3}",_,m,x,g)),A=new RegExp(n("^\\[(?:\\d+|#{0}?|\\*)]{1}",x,g)),I=new RegExp(n("^\\[{0}\\]{1}",x,g)),R=new RegExp(n("^\\|{0}\\|",_)),O=new RegExp(n("^\\[(?:\\d+|#{0}?|\\*)]_",x)),N=new RegExp(n("^\\[{0}\\]_",x)),z=new RegExp(n("^{0}__?",x)),P=new RegExp(n("^`{0}`_",w)),D=new RegExp(n("^:{0}:`{1}`{2}",b,w,g)),$=new RegExp(n("^`{1}`:{0}:{2}",b,w,g)),q=new RegExp(n("^:{0}:{1}",b,g)),j=new RegExp(n("^{0}",x)),W=new RegExp(n("^::{0}",g)),U=new RegExp(n("^\\|{0}\\|",_)),F=new RegExp(n("^{0}",m)),B=new RegExp(n("^{0}",x)),H=new RegExp(n("^::{0}",g)),V=new RegExp("^_"),G=new RegExp(n("^{0}|_",x)),K=new RegExp(n("^:{0}",g)),Y=new RegExp("^::\\s*$"),Z=new RegExp("^\\s+(?:>>>|In \\[\\d+\\]:)\\s");return{startState:function(){return{tok:r,ctx:c(void 0,0)}},copyState:function(t){var n=t.ctx,r=t.tmp;return n.local&&(n={mode:n.mode,local:e.copyState(n.mode,n.local)}),r&&(r={mode:r.mode,local:e.copyState(r.mode,r.local)}),{tok:t.tok,ctx:n,tmp:r}},innerMode:function(e){return e.tmp?{state:e.tmp.local,mode:e.tmp.mode}:e.ctx.mode?{state:e.ctx.local,mode:e.ctx.mode}:null},token:function(e,t){return t.tok(e,t)}}},"python","stex"),e.defineMIME("text/x-rst","rst")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("ruby",function(e){function t(e){for(var t={},n=0,r=e.length;r>n;++n)t[e[n]]=!0;return t}function n(e,t,n){return n.tokenize.push(e),e(t,n)}function r(e,t){if(p=null,e.sol()&&e.match("=begin")&&e.eol())return t.tokenize.push(l),"comment";if(e.eatSpace())return null;var r=e.next(),i;if("`"==r||"'"==r||'"'==r)return n(a(r,"string",'"'==r||"`"==r),e,t);if("/"==r){var o=e.current().length;if(e.skipTo("/")){var c=e.current().length;e.backUp(e.current().length-o);for(var u=0;e.current().length<c;){var d=e.next();if("("==d?u+=1:")"==d&&(u-=1),0>u)break}if(e.backUp(e.current().length-o),0==u)return n(a(r,"string-2",!0),e,t)}return"operator"}if("%"==r){var h="string",m=!0;e.eat("s")?h="atom":e.eat(/[WQ]/)?h="string":e.eat(/[r]/)?h="string-2":e.eat(/[wxq]/)&&(h="string",m=!1);var g=e.eat(/[^\w\s=]/);return g?(f.propertyIsEnumerable(g)&&(g=f[g]),n(a(g,h,m,!0),e,t)):"operator"}if("#"==r)return e.skipToEnd(),"comment";if("<"==r&&(i=e.match(/^<-?[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return n(s(i[1]),e,t);if("0"==r)return e.eatWhile(e.eat("x")?/[\da-fA-F]/:e.eat("b")?/[01]/:/[0-7]/),"number";if(/\d/.test(r))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if("?"==r){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}if(":"==r)return e.eat("'")?n(a("'","atom",!1),e,t):e.eat('"')?n(a('"',"atom",!0),e,t):e.eat(/[\<\>]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if("@"==r&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if("$"==r)return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(r))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if("|"!=r||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(r))return p=r,null;if("-"==r&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(r)){var v=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."!=r||v||(p="."),"operator"}return null}return p="|",null}function i(e){return e||(e=1),function(t,n){if("}"==t.peek()){if(1==e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);n.tokenize[n.tokenize.length-1]=i(e-1)}else"{"==t.peek()&&(n.tokenize[n.tokenize.length-1]=i(e+1));return r(t,n)}}function o(){var e=!1;return function(t,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)):(e=!0,r(t,n))}}function a(e,t,n,r){return function(a,s){var l=!1,c;for("read-quoted-paused"===s.context.type&&(s.context=s.context.prev,a.eat("}"));null!=(c=a.next());){if(c==e&&(r||!l)){s.tokenize.pop();break}if(n&&"#"==c&&!l){if(a.eat("{")){"}"==e&&(s.context={prev:s.context,type:"read-quoted-paused"}),s.tokenize.push(i());break}if(/[@\$]/.test(a.peek())){s.tokenize.push(o());break}}l=!l&&"\\"==c}return t}}function s(e){return function(t,n){return t.match(e)?n.tokenize.pop():t.skipToEnd(),"string"}}function l(e,t){return e.sol()&&e.match("=end")&&e.eol()&&t.tokenize.pop(),e.skipToEnd(),"comment"}var c=t(["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"]),u=t(["def","class","case","for","while","module","then","catch","loop","proc","begin"]),d=t(["end","until"]),f={"[":"]","{":"}","(":")"},p;return{startState:function(){return{tokenize:[r],indented:0,context:{type:"top",indented:-e.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,t){e.sol()&&(t.indented=e.indentation());var n=t.tokenize[t.tokenize.length-1](e,t),r,i=p;if("ident"==n){var o=e.current();n="."==t.lastTok?"property":c.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(o)?"tag":"def"==t.lastTok||"class"==t.lastTok||t.varList?"def":"variable","keyword"==n&&(i=o,u.propertyIsEnumerable(o)?r="indent":d.propertyIsEnumerable(o)?r="dedent":"if"!=o&&"unless"!=o||e.column()!=e.indentation()?"do"==o&&t.context.indented<t.indented&&(r="indent"):r="indent")}return(p||n&&"comment"!=n)&&(t.lastTok=i),"|"==p&&(t.varList=!t.varList),"indent"==r||/[\(\[\{]/.test(p)?t.context={prev:t.context,type:p||n,indented:t.indented}:("dedent"==r||/[\)\]\}]/.test(p))&&t.context.prev&&(t.context=t.context.prev),e.eol()&&(t.continuedLine="\\"==p||"operator"==n),n},indent:function(t,n){if(t.tokenize[t.tokenize.length-1]!=r)return 0;var i=n&&n.charAt(0),o=t.context,a=o.type==f[i]||"keyword"==o.type&&/^(?:end|until|else|elsif|when|rescue)\b/.test(n);return o.indented+(a?0:e.indentUnit)+(t.continuedLine?e.indentUnit:0)},electricChars:"}de",lineComment:"#"}}),e.defineMIME("text/x-ruby","ruby")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("rust",function(){function e(e,t){return Y=e,t}function t(t,i){var o=t.next();if('"'==o)return i.tokenize=n,i.tokenize(t,i);if("'"==o)return Y="atom",t.eat("\\")?t.skipTo("'")?(t.next(),"string"):"error":(t.next(),t.eat("'")?"string":"error");if("/"==o){if(t.eat("/"))return t.skipToEnd(),"comment";if(t.eat("*"))return i.tokenize=r(1),i.tokenize(t,i)}if("#"==o)return t.eat("[")?(Y="open-attr",null):(t.eatWhile(/\w/),e("macro","meta"));if(":"==o&&t.match(":<"))return e("op",null);if(o.match(/\d/)||"."==o&&t.eat(/\d/)){var a=!1;return t.match(/^x[\da-f]+/i)||t.match(/^b[01]+/)||(t.eatWhile(/\d/),t.eat(".")&&(a=!0,t.eatWhile(/\d/)),t.match(/^e[+\-]?\d+/i)&&(a=!0)),t.match(a?/^f(?:32|64)/:/^[ui](?:8|16|32|64)/),e("atom","number")}return o.match(/[()\[\]{}:;,]/)?e(o,null):"-"==o&&t.eat(">")?e("->",null):o.match(K)?(t.eatWhile(K),e("op",null)):(t.eatWhile(/\w/),Z=t.current(),t.match(/^::\w/)?(t.backUp(1),e("prefix","variable-2")):i.keywords.propertyIsEnumerable(Z)?e(i.keywords[Z],Z.match(/true|false/)?"atom":"keyword"):e("name","variable"));
|
||
|
||
}function n(n,r){for(var i,o=!1;i=n.next();){if('"'==i&&!o)return r.tokenize=t,e("atom","string");o=!o&&"\\"==i}return e("op","string")}function r(e){return function(n,i){for(var o=null,a;a=n.next();){if("/"==a&&"*"==o){if(1==e){i.tokenize=t;break}return i.tokenize=r(e-1),i.tokenize(n,i)}if("*"==a&&"/"==o)return i.tokenize=r(e+1),i.tokenize(n,i);o=a}return"comment"}}function i(){for(var e=arguments.length-1;e>=0;e--)J.cc.push(arguments[e])}function o(){return i.apply(null,arguments),!0}function a(e,t){var n=function(){var n=J.state;n.lexical={indented:n.indented,column:J.stream.column(),type:e,prev:n.lexical,info:t}};return n.lex=!0,n}function s(){var e=J.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function l(){J.state.keywords=G}function c(){J.state.keywords=V}function u(e,t){function n(r){return","==r?o(e,n):r==t?o():o(n)}return function(r){return r==t?o():i(e,n)}}function d(e,t){return o(a("stat",t),e,s,f)}function f(e){return"}"==e?o():"let"==e?d(k,"let"):"fn"==e?d(S):"type"==e?o(a("stat"),T,p,s,f):"enum"==e?d(E):"mod"==e?d(M):"iface"==e?d(L):"impl"==e?d(A):"open-attr"==e?o(a("]"),u(h,"]"),s):"ignore"==e||e.match(/[\]\);,]/)?o(f):i(a("stat"),h,s,p,f)}function p(e){return";"==e?o():i()}function h(e){return"atom"==e||"name"==e?o(m):"{"==e?o(a("}"),v,s):e.match(/[\[\(]/)?U(e,h):e.match(/[\]\)\};,]/)?i():"if-style"==e?o(h,h):"else-style"==e||"op"==e?o(h):"for"==e?o(P,_,w,h,h):"alt"==e?o(h,$):"fn"==e?o(S):"macro"==e?o(W):o()}function m(e){return"."==Z?o(g):"::<"==Z?o(I,m):"op"==e||":"==Z?o(h):"("==e||"["==e?U(e,h):i()}function g(){return Z.match(/^\w+$/)?(J.marked="variable",o(m)):i(h)}function v(e){if("op"==e){if("|"==Z)return o(y,s,a("}","block"),f);if("||"==Z)return o(s,a("}","block"),f)}return i("mutable"==Z||Z.match(/^\w+$/)&&":"==J.stream.peek()&&!J.stream.match("::",!1)?b(h):f)}function b(e){function t(n){return"mutable"==Z||"with"==Z?(J.marked="keyword",o(t)):Z.match(/^\w*$/)?(J.marked="variable",o(t)):":"==n?o(e,t):"}"==n?o():o(t)}return t}function y(e){return"name"==e?(J.marked="def",o(y)):"op"==e&&"|"==Z?o():o(y)}function k(e){return e.match(/[\]\)\};]/)?o():"="==Z?o(h,x):","==e?o(k):i(P,_,k)}function x(e){return e.match(/[\]\)\};,]/)?i(k):i(h,x)}function _(e){return":"==e?o(l,O,c):i()}function w(e){return"name"==e&&"in"==Z?(J.marked="keyword",o()):i()}function S(e){return"@"==Z||"~"==Z?(J.marked="keyword",o(S)):"name"==e?(J.marked="def",o(S)):"<"==Z?o(I,S):"{"==e?i(h):"("==e?o(a(")"),u(R,")"),s,S):"->"==e?o(l,O,c,S):";"==e?o():o(S)}function T(e){return"name"==e?(J.marked="def",o(T)):"<"==Z?o(I,T):"="==Z?o(l,O,c):o(T)}function E(e){return"name"==e?(J.marked="def",o(E)):"<"==Z?o(I,E):"="==Z?o(l,O,c,p):"{"==e?o(a("}"),l,C,c,s):o(E)}function C(e){return"}"==e?o():"("==e?o(a(")"),u(O,")"),s,C):(Z.match(/^\w+$/)&&(J.marked="def"),o(C))}function M(e){return"name"==e?(J.marked="def",o(M)):"{"==e?o(a("}"),f,s):i()}function L(e){return"name"==e?(J.marked="def",o(L)):"<"==Z?o(I,L):"{"==e?o(a("}"),f,s):i()}function A(e){return"<"==Z?o(I,A):"of"==Z||"for"==Z?(J.marked="keyword",o(O,A)):"name"==e?(J.marked="def",o(A)):"{"==e?o(a("}"),f,s):i()}function I(){return">"==Z?o():","==Z?o(I):":"==Z?o(O,I):i(O,I)}function R(e){return"name"==e?(J.marked="def",o(R)):":"==e?o(l,O,c):i()}function O(e){return"name"==e?(J.marked="variable-3",o(N)):"mutable"==Z?(J.marked="keyword",o(O)):"atom"==e?o(N):"op"==e||"obj"==e?o(O):"fn"==e?o(z):"{"==e?o(a("{"),b(O),s):U(e,O)}function N(){return"<"==Z?o(I):i()}function z(e){return"("==e?o(a("("),u(O,")"),s,z):"->"==e?o(O):i()}function P(e){return"name"==e?(J.marked="def",o(D)):"atom"==e?o(D):"op"==e?o(P):e.match(/[\]\)\};,]/)?i():U(e,P)}function D(e){return"op"==e&&"."==Z?o():"to"==Z?(J.marked="keyword",o(P)):i()}function $(e){return"{"==e?o(a("}","alt"),q,s):i()}function q(e){return"}"==e?o():"|"==e?o(q):"when"==Z?(J.marked="keyword",o(h,j)):e.match(/[\]\);,]/)?o(q):i(P,j)}function j(e){return"{"==e?o(a("}","alt"),f,s,q):i(q)}function W(e){return e.match(/[\[\(\{]/)?U(e,h):i()}function U(e,t){return"["==e?o(a("]"),u(t,"]"),s):"("==e?o(a(")"),u(t,")"),s):"{"==e?o(a("}"),u(t,"}"),s):o()}function F(e,t,n){var r=e.cc;for(J.state=e,J.stream=t,J.marked=null,J.cc=r;;){var i=r.length?r.pop():f;if(i(Y)){for(;r.length&&r[r.length-1].lex;)r.pop()();return J.marked||n}}}var B=4,H=2,V={"if":"if-style","while":"if-style",loop:"else-style","else":"else-style","do":"else-style",ret:"else-style",fail:"else-style","break":"atom",cont:"atom","const":"let",resource:"fn",let:"let",fn:"fn","for":"for",alt:"alt",iface:"iface",impl:"impl",type:"type","enum":"enum",mod:"mod",as:"op","true":"atom","false":"atom",assert:"op",check:"op",claim:"op","native":"ignore",unsafe:"ignore","import":"else-style","export":"else-style",copy:"op",log:"op",log_err:"op",use:"op",bind:"op",self:"atom",struct:"enum"},G=function(){for(var e={fn:"fn",block:"fn",obj:"obj"},t="bool uint int i8 i16 i32 i64 u8 u16 u32 u64 float f32 f64 str char".split(" "),n=0,r=t.length;r>n;++n)e[t[n]]="atom";return e}(),K=/[+\-*&%=<>!?|\.@]/,Y,Z,J={state:null,stream:null,marked:null,cc:null};return s.lex=l.lex=c.lex=!0,{startState:function(){return{tokenize:t,cc:[],lexical:{indented:-B,column:0,type:"top",align:!1},keywords:V,indented:0}},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation()),e.eatSpace())return null;Y=Z=null;var n=t.tokenize(e,t);return"comment"==n?n:(t.lexical.hasOwnProperty("align")||(t.lexical.align=!0),"prefix"==Y?n:(Z||(Z=e.current()),F(t,e,n)))},indent:function(e,n){if(e.tokenize!=t)return 0;var r=n&&n.charAt(0),i=e.lexical,o=i.type,a=r==o;return"stat"==o?i.indented+B:i.align?i.column+(a?0:1):i.indented+(a?0:"alt"==i.info?H:B)},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),e.defineMIME("text/x-rustsrc","rust")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("sass",function(e){function t(e){return new RegExp("^"+e.join("|"))}function n(e,t){var n=e.peek();return")"===n?(e.next(),t.tokenizer=l,"operator"):"("===n?(e.next(),e.eatSpace(),"operator"):"'"===n||'"'===n?(t.tokenizer=i(e.next()),"string"):(t.tokenizer=i(")",!1),"string")}function r(e,t){return function(n,r){return n.sol()&&n.indentation()<=e?(r.tokenizer=l,l(n,r)):(t&&n.skipTo("*/")?(n.next(),n.next(),r.tokenizer=l):n.next(),"comment")}}function i(e,t){function n(r,i){var a=r.next(),s=r.peek(),c=r.string.charAt(r.pos-2),u="\\"!==a&&s===e||a===e&&"\\"!==c;return u?(a!==e&&t&&r.next(),i.tokenizer=l,"string"):"#"===a&&"{"===s?(i.tokenizer=o(n),r.next(),"operator"):"string"}return null==t&&(t=!0),n}function o(e){return function(t,n){return"}"===t.peek()?(t.next(),n.tokenizer=e,"operator"):l(t,n)}}function a(t){if(0==t.indentCount){t.indentCount++;var n=t.scopes[0].offset,r=n+e.indentUnit;t.scopes.unshift({offset:r})}}function s(e){1!=e.scopes.length&&e.scopes.shift()}function l(e,t){var s=e.peek();if(e.match("/*"))return t.tokenizer=r(e.indentation(),!0),t.tokenizer(e,t);if(e.match("//"))return t.tokenizer=r(e.indentation(),!1),t.tokenizer(e,t);if(e.match("#{"))return t.tokenizer=o(l),"operator";if("."===s)return e.next(),e.match(/^[\w-]+/)?(a(t),"atom"):"#"===e.peek()?(a(t),"atom"):"operator";if("#"===s){if(e.next(),e.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/))return"number";if(e.match(/^[\w-]+/))return a(t),"atom";if("#"===e.peek())return a(t),"atom"}return e.match(/^-?[0-9\.]+/)?"number":e.match(/^(px|em|in)\b/)?"unit":e.match(d)?"keyword":e.match(/^url/)&&"("===e.peek()?(t.tokenizer=n,"atom"):"$"===s?(e.next(),e.eatWhile(/[\w-]/),":"===e.peek()?(e.next(),"variable-2"):"variable-3"):"!"===s?(e.next(),e.match(/^[\w]+/)?"keyword":"operator"):"="===s?(e.next(),e.match(/^[\w-]+/)?(a(t),"meta"):"operator"):"+"===s?(e.next(),e.match(/^[\w-]+/)?"variable-3":"operator"):e.match(/^@(else if|if|media|else|for|each|while|mixin|function)/)?(a(t),"meta"):"@"===s?(e.next(),e.eatWhile(/[\w-]/),"meta"):'"'===s||"'"===s?(e.next(),t.tokenizer=i(s),"string"):":"==s&&e.match(h)?"keyword":e.eatWhile(/[\w-&]/)?":"!==e.peek()||e.match(h,!1)?"atom":"property":e.match(p)?"operator":(e.next(),null)}function c(t,n){t.sol()&&(n.indentCount=0);var r=n.tokenizer(t,n),i=t.current();if("@return"===i&&s(n),"atom"===r&&a(n),null!==r){for(var o=t.pos-i.length,l=o+e.indentUnit*n.indentCount,c=[],u=0;u<n.scopes.length;u++){var d=n.scopes[u];d.offset<=l&&c.push(d)}n.scopes=c}return r}var u=["true","false","null","auto"],d=new RegExp("^"+u.join("|")),f=["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not"],p=t(f),h=/^::?[\w\-]+/;return{startState:function(){return{tokenizer:l,scopes:[{offset:0,type:"sass"}],indentCount:0,definedVars:[],definedMixins:[]}},token:function(e,t){var n=c(e,t);return t.lastToken={style:n,content:e.current()},n},indent:function(e){return e.scopes[0].offset}}}),e.defineMIME("text/x-sass","sass")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("scheme",function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function t(e,t,n){this.indent=e,this.type=t,this.prev=n}function n(e,n,r){e.indentStack=new t(n,r,e.indentStack)}function r(e){e.indentStack=e.indentStack.prev}function i(e){return e.match(v)}function o(e){return e.match(b)}function a(e,t){return t===!0&&e.backUp(1),e.match(k)}function s(e){return e.match(y)}var l="builtin",c="comment",u="string",d="atom",f="number",p="bracket",h=2,m=e("λ case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),g=e("define let letrec let* lambda"),v=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),b=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),y=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),k=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);return{startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1}},token:function(e,t){if(null==t.indentStack&&e.sol()&&(t.indentation=e.indentation()),e.eatSpace())return null;var v=null;switch(t.mode){case"string":for(var b,y=!1;null!=(b=e.next());){if('"'==b&&!y){t.mode=!1;break}y=!y&&"\\"==b}v=u;break;case"comment":for(var b,k=!1;null!=(b=e.next());){if("#"==b&&k){t.mode=!1;break}k="|"==b}v=c;break;case"s-expr-comment":if(t.mode=!1,"("!=e.peek()&&"["!=e.peek()){e.eatWhile(/[^/s]/),v=c;break}t.sExprComment=0;default:var x=e.next();if('"'==x)t.mode="string",v=u;else if("'"==x)v=d;else if("#"==x)if(e.eat("|"))t.mode="comment",v=c;else if(e.eat(/[tf]/i))v=d;else if(e.eat(";"))t.mode="s-expr-comment",v=c;else{var _=null,w=!1,S=!0;e.eat(/[ei]/i)?w=!0:e.backUp(1),e.match(/^#b/i)?_=i:e.match(/^#o/i)?_=o:e.match(/^#x/i)?_=s:e.match(/^#d/i)?_=a:e.match(/^[-+0-9.]/,!1)?(S=!1,_=a):w||e.eat("#"),null!=_&&(S&&!w&&e.match(/^#[ei]/i),_(e)&&(v=f))}else if(/^[-+0-9.]/.test(x)&&a(e,!0))v=f;else if(";"==x)e.skipToEnd(),v=c;else if("("==x||"["==x){for(var T="",E=e.column(),C;null!=(C=e.eat(/[^\s\(\[\;\)\]]/));)T+=C;T.length>0&&g.propertyIsEnumerable(T)?n(t,E+h,x):(e.eatSpace(),e.eol()||";"==e.peek()?n(t,E+1,x):n(t,E+e.current().length,x)),e.backUp(e.current().length-1),"number"==typeof t.sExprComment&&t.sExprComment++,v=p}else")"==x||"]"==x?(v=p,null!=t.indentStack&&t.indentStack.type==(")"==x?"(":"[")&&(r(t),"number"==typeof t.sExprComment&&0==--t.sExprComment&&(v=c,t.sExprComment=!1))):(e.eatWhile(/[\w\$_\-!$%&*+\.\/:<=>?@\^~]/),v=m&&m.propertyIsEnumerable(e.current())?l:"variable")}return"number"==typeof t.sExprComment?c:v},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent},lineComment:";;"}}),e.defineMIME("text/x-scheme","scheme")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("shell",function(){function e(e,t){for(var n=t.split(" "),r=0;r<n.length;r++)i[n[r]]=e}function t(e,t){if(e.eatSpace())return null;var a=e.sol(),s=e.next();if("\\"===s)return e.next(),null;if("'"===s||'"'===s||"`"===s)return t.tokens.unshift(n(s)),r(e,t);if("#"===s)return a&&e.eat("!")?(e.skipToEnd(),"meta"):(e.skipToEnd(),"comment");if("$"===s)return t.tokens.unshift(o),r(e,t);if("+"===s||"="===s)return"operator";if("-"===s)return e.eat("-"),e.eatWhile(/\w/),"attribute";if(/\d/.test(s)&&(e.eatWhile(/\d/),e.eol()||!/\w/.test(e.peek())))return"number";e.eatWhile(/[\w-]/);var l=e.current();return"="===e.peek()&&/\w+/.test(l)?"def":i.hasOwnProperty(l)?i[l]:null}function n(e){return function(t,n){for(var r,i=!1,a=!1;null!=(r=t.next());){if(r===e&&!a){i=!0;break}if("$"===r&&!a&&"'"!==e){a=!0,t.backUp(1),n.tokens.unshift(o);break}a=!a&&"\\"===r}return(i||!a)&&n.tokens.shift(),"`"===e||")"===e?"quote":"string"}}function r(e,n){return(n.tokens[0]||t)(e,n)}var i={};e("atom","true false"),e("keyword","if then do else elif while until for in esac fi fin fil done exit set unset export function"),e("builtin","ab awk bash beep cat cc cd chown chmod chroot clear cp curl cut diff echo find gawk gcc get git grep kill killall ln ls make mkdir openssl mv nc node npm ping ps restart rm rmdir sed service sh shopt shred source sort sleep ssh start stop su sudo tee telnet top touch vi vim wall wc wget who write yes zsh");var o=function(e,t){t.tokens.length>1&&e.eat("$");var i=e.next(),o=/\w/;return"{"===i&&(o=/[^}]/),"("===i?(t.tokens[0]=n(")"),r(e,t)):(/\d/.test(i)||(e.eatWhile(o),e.eat("}")),t.tokens.shift(),"def")};return{startState:function(){return{tokens:[]}},token:function(e,t){return r(e,t)},lineComment:"#"}}),e.defineMIME("text/x-sh","shell")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("sieve",function(e){function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function n(e,t){var n=e.next();if("/"==n&&e.eat("*"))return t.tokenize=i,i(e,t);if("#"===n)return e.skipToEnd(),"comment";if('"'==n)return t.tokenize=o(n),t.tokenize(e,t);if("("==n)return t._indent.push("("),t._indent.push("{"),null;if("{"===n)return t._indent.push("{"),null;if(")"==n&&(t._indent.pop(),t._indent.pop()),"}"===n)return t._indent.pop(),null;if(","==n)return null;if(";"==n)return null;if(/[{}\(\),;]/.test(n))return null;if(/\d/.test(n))return e.eatWhile(/[\d]/),e.eat(/[KkMmGg]/),"number";if(":"==n)return e.eatWhile(/[a-zA-Z_]/),e.eatWhile(/[a-zA-Z0-9_]/),"operator";e.eatWhile(/\w/);var l=e.current();return"text"==l&&e.eat(":")?(t.tokenize=r,"string"):a.propertyIsEnumerable(l)?"keyword":s.propertyIsEnumerable(l)?"atom":null}function r(e,t){return t._multiLineString=!0,e.sol()?("."==e.next()&&e.eol()&&(t._multiLineString=!1,t.tokenize=n),"string"):(e.eatSpace(),"#"==e.peek()?(e.skipToEnd(),"comment"):(e.skipToEnd(),"string"))}function i(e,t){for(var r=!1,i;null!=(i=e.next());){if(r&&"/"==i){t.tokenize=n;break}r="*"==i}return"comment"}function o(e){return function(t,r){for(var i=!1,o;null!=(o=t.next())&&(o!=e||i);)i=!i&&"\\"==o;return i||(r.tokenize=n),"string"}}var a=t("if elsif else stop require"),s=t("true false not"),l=e.indentUnit;return{startState:function(e){return{tokenize:n,baseIndent:e||0,_indent:[]}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||n)(e,t)},indent:function(e,t){var n=e._indent.length;return t&&"}"==t[0]&&n--,0>n&&(n=0),n*l},electricChars:"}"}}),e.defineMIME("application/sieve","sieve")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../ruby/ruby")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../ruby/ruby"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("slim",function(t){function n(e,t,n){var r=function(r,i){return i.tokenize=t,r.pos<e?(r.pos=e,n):i.tokenize(r,i)};return function(e,n){return n.tokenize=r,t(e,n)}}function r(e,t,r,i,o){var a=e.current(),s=a.search(r);return s>-1&&(t.tokenize=n(e.pos,t.tokenize,o),e.backUp(a.length-s-i)),o}function i(e,t){e.stack={parent:e.stack,style:"continuation",indented:t,tokenize:e.line},e.line=e.tokenize}function o(e){e.line==e.tokenize&&(e.line=e.stack.tokenize,e.stack=e.stack.parent)}function a(e,t){return function(n,r){if(o(r),n.match(/^\\$/))return i(r,e),"lineContinuation";var a=t(n,r);return n.eol()&&n.current().match(/(?:^|[^\\])(?:\\\\)*\\$/)&&n.backUp(1),a}}function s(e,t){return function(n,r){o(r);var a=t(n,r);return n.eol()&&n.current().match(/,$/)&&i(r,e),a}}function l(e,t){return function(n,r){var i=n.peek();return i==e&&1==r.rubyState.tokenize.length?(n.next(),r.tokenize=t,"closeAttributeTag"):u(n,r)}}function c(e){var t,n=function(n,r){if(1==r.rubyState.tokenize.length&&!r.rubyState.context.prev){if(n.backUp(1),n.eatSpace())return r.rubyState=t,r.tokenize=e,e(n,r);n.next()}return u(n,r)};return function(e,r){return t=r.rubyState,r.rubyState=q.startState(),r.tokenize=n,u(e,r)}}function u(e,t){return q.token(e,t.rubyState)}function d(e,t){return e.match(/^\\$/)?"lineContinuation":f(e,t)}function f(e,t){return e.match(/^#\{/)?(t.tokenize=l("}",t.tokenize),null):r(e,t,/[^\\]#\{/,1,$.token(e,t.htmlState))}function p(e){return function(t,n){var r=d(t,n);return t.eol()&&(n.tokenize=e),r}}function h(e,t,n){return t.stack={parent:t.stack,style:"html",indented:e.column()+n,tokenize:t.line},t.line=t.tokenize=f,null}function m(e,t){return e.skipToEnd(),t.stack.style}function g(e,t){return t.stack={parent:t.stack,style:"comment",indented:t.indented+1,tokenize:t.line},t.line=m,m(e,t)}function v(e,t){return e.eat(t.stack.endQuote)?(t.line=t.stack.line,t.tokenize=t.stack.tokenize,t.stack=t.stack.parent,null):e.match(Y)?(t.tokenize=b,"slimAttribute"):(e.next(),null)}function b(e,t){return e.match(/^==?/)?(t.tokenize=y,null):v(e,t)}function y(e,t){var n=e.peek();return'"'==n||"'"==n?(t.tokenize=P(n,"string",!0,!1,v),e.next(),t.tokenize(e,t)):"["==n?c(v)(e,t):e.match(/^(true|false|nil)\b/)?(t.tokenize=v,"keyword"):c(v)(e,t)}function k(e,t,n){return e.stack={parent:e.stack,style:"wrapper",indented:e.indented+1,tokenize:n,line:e.line,endQuote:t},e.line=e.tokenize=v,null}function x(t,n){if(t.match(/^#\{/))return n.tokenize=l("}",n.tokenize),null;var r=new e.StringStream(t.string.slice(n.stack.indented),t.tabSize);r.pos=t.pos-n.stack.indented,r.start=t.start-n.stack.indented,r.lastColumnPos=t.lastColumnPos-n.stack.indented,r.lastColumnValue=t.lastColumnValue-n.stack.indented;var i=n.subMode.token(r,n.subState);return t.pos=r.pos+n.stack.indented,i}function _(e,t){return t.stack.indented=e.column(),t.line=t.tokenize=x,t.tokenize(e,t)}function w(n){var r=W[n],i=e.mimeModes[r];if(i)return e.getMode(t,i);var o=e.modes[r];return o?o(t,{name:r}):e.getMode(t,"null")}function S(e){return j.hasOwnProperty(e)?j[e]:j[e]=w(e)}function T(e,t){var n=S(e),r=n.startState&&n.startState();return t.subMode=n,t.subState=r,t.stack={parent:t.stack,style:"sub",indented:t.indented+1,tokenize:t.line},t.line=t.tokenize=_,"slimSubmode"}function E(e,t){return e.skipToEnd(),"slimDoctype"}function C(e,t){var n=e.peek();if("<"==n)return(t.tokenize=p(t.tokenize))(e,t);if(e.match(/^[|']/))return h(e,t,1);if(e.match(/^\/(!|\[\w+])?/))return g(e,t);if(e.match(/^(-|==?[<>]?)/))return t.tokenize=a(e.column(),s(e.column(),u)),"slimSwitch";if(e.match(/^doctype\b/))return t.tokenize=E,"keyword";var r=e.match(U);return r?T(r[1],t):L(e,t)}function M(e,t){return t.startOfLine?C(e,t):L(e,t)}function L(e,t){return e.eat("*")?(t.tokenize=c(A),null):e.match(G)?(t.tokenize=A,"slimTag"):I(e,t)}function A(e,t){return e.match(/^(<>?|><?)/)?(t.tokenize=I,null):I(e,t)}function I(e,t){return e.match(J)?(t.tokenize=I,"slimId"):e.match(Z)?(t.tokenize=I,"slimClass"):R(e,t)}function R(e,t){return e.match(/^([\[\{\(])/)?k(t,B[RegExp.$1],R):e.match(K)?(t.tokenize=O,"slimAttribute"):"*"==e.peek()?(e.next(),t.tokenize=c(D),null):D(e,t)}function O(e,t){return e.match(/^==?/)?(t.tokenize=N,null):R(e,t)}function N(e,t){var n=e.peek();return'"'==n||"'"==n?(t.tokenize=P(n,"string",!0,!1,R),e.next(),t.tokenize(e,t)):"["==n?c(R)(e,t):":"==n?c(z)(e,t):e.match(/^(true|false|nil)\b/)?(t.tokenize=R,"keyword"):c(R)(e,t)}function z(e,t){return e.backUp(1),e.match(/^[^\s],(?=:)/)?(t.tokenize=c(z),null):(e.next(),R(e,t))}function P(e,t,n,r,a){return function(s,c){o(c);var u=0==s.current().length;if(s.match(/^\\$/,u))return u?(i(c,c.indented),"lineContinuation"):t;if(s.match(/^#\{/,u))return u?(c.tokenize=l("}",c.tokenize),null):t;for(var d=!1,f;null!=(f=s.next());){if(f==e&&(r||!d)){c.tokenize=a;break}if(n&&"#"==f&&!d&&s.eat("{")){s.backUp(2);break}d=!d&&"\\"==f}return s.eol()&&d&&s.backUp(1),t}}function D(e,t){return e.match(/^==?/)?(t.tokenize=u,"slimSwitch"):e.match(/^\/$/)?(t.tokenize=M,null):e.match(/^:/)?(t.tokenize=L,"slimSwitch"):(h(e,t,0),t.tokenize(e,t))}var $=e.getMode(t,{name:"htmlmixed"}),q=e.getMode(t,"ruby"),j={html:$,ruby:q},W={ruby:"ruby",javascript:"javascript",css:"text/css",sass:"text/x-sass",scss:"text/x-scss",less:"text/x-less",styl:"text/x-styl",coffee:"coffeescript",asciidoc:"text/x-asciidoc",markdown:"text/x-markdown",textile:"text/x-textile",creole:"text/x-creole",wiki:"text/x-wiki",mediawiki:"text/x-mediawiki",rdoc:"text/x-rdoc",builder:"text/x-builder",nokogiri:"text/x-nokogiri",erb:"application/x-erb"},U=function(e){var t=[];for(var n in e)t.push(n);return new RegExp("^("+t.join("|")+"):")}(W),F={commentLine:"comment",slimSwitch:"operator special",slimTag:"tag",slimId:"attribute def",slimClass:"attribute qualifier",slimAttribute:"attribute",slimSubmode:"keyword special",closeAttributeTag:null,slimDoctype:null,lineContinuation:null},B={"{":"}","[":"]","(":")"},H="_a-zA-ZÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-<2D>",V=H+"\\-0-9·̀-ͯ‿-⁀",G=new RegExp("^[:"+H+"](?::["+V+"]|["+V+"]*)"),K=new RegExp("^[:"+H+"][:\\."+V+"]*(?=\\s*=)"),Y=new RegExp("^[:"+H+"][:\\."+V+"]*"),Z=/^\.-?[_a-zA-Z]+[\w\-]*/,J=/^#[_a-zA-Z]+[\w\-]*/,X={startState:function(){var e=$.startState(),t=q.startState();return{htmlState:e,rubyState:t,stack:null,last:null,tokenize:M,line:M,indented:0}},copyState:function(t){return{htmlState:e.copyState($,t.htmlState),rubyState:e.copyState(q,t.rubyState),subMode:t.subMode,subState:t.subMode&&e.copyState(t.subMode,t.subState),stack:t.stack,last:t.last,tokenize:t.tokenize,line:t.line}},token:function(e,t){if(e.sol())for(t.indented=e.indentation(),t.startOfLine=!0,t.tokenize=t.line;t.stack&&t.stack.indented>t.indented&&"slimSubmode"!=t.last;)t.line=t.tokenize=t.stack.tokenize,t.stack=t.stack.parent,t.subMode=null,t.subState=null;if(e.eatSpace())return null;var n=t.tokenize(e,t);return t.startOfLine=!1,n&&(t.last=n),F.hasOwnProperty(n)?F[n]:n},blankLine:function(e){return e.subMode&&e.subMode.blankLine?e.subMode.blankLine(e.subState):void 0},innerMode:function(e){return e.subMode?{state:e.subState,mode:e.subMode}:{state:e,mode:X}}};return X},"htmlmixed","ruby"),e.defineMIME("text/x-slim","slim"),e.defineMIME("application/x-slim","slim")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("smalltalk",function(e){var t=/[+\-\/\\*~<>=@%|&?!.,:;^]/,n=/true|false|nil|self|super|thisContext/,r=function(e,t){this.next=e,this.parent=t},i=function(e,t,n){this.name=e,this.context=t,this.eos=n},o=function(){this.context=new r(a,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};o.prototype.userIndent=function(t){this.userIndentationDelta=t>0?t/e.indentUnit-this.indentation:0};var a=function(e,o,a){var d=new i(null,o,!1),f=e.next();return'"'===f?d=s(e,new r(s,o)):"'"===f?d=l(e,new r(l,o)):"#"===f?"'"===e.peek()?(e.next(),d=c(e,new r(c,o))):e.eatWhile(/[^\s.{}\[\]()]/)?d.name="string-2":d.name="meta":"$"===f?("<"===e.next()&&(e.eatWhile(/[^\s>]/),e.next()),d.name="string-2"):"|"===f&&a.expectVariable?d.context=new r(u,o):/[\[\]{}()]/.test(f)?(d.name="bracket",d.eos=/[\[{(]/.test(f),"["===f?a.indentation++:"]"===f&&(a.indentation=Math.max(0,a.indentation-1))):t.test(f)?(e.eatWhile(t),d.name="operator",d.eos=";"!==f):/\d/.test(f)?(e.eatWhile(/[\w\d]/),d.name="number"):/[\w_]/.test(f)?(e.eatWhile(/[\w\d_]/),d.name=a.expectVariable?n.test(e.current())?"keyword":"variable":null):d.eos=a.expectVariable,d},s=function(e,t){return e.eatWhile(/[^"]/),new i("comment",e.eat('"')?t.parent:t,!0)},l=function(e,t){return e.eatWhile(/[^']/),new i("string",e.eat("'")?t.parent:t,!1)},c=function(e,t){return e.eatWhile(/[^']/),new i("string-2",e.eat("'")?t.parent:t,!1)},u=function(e,t){var n=new i(null,t,!1),r=e.next();return"|"===r?(n.context=t.parent,n.eos=!0):(e.eatWhile(/[^|]/),n.name="variable"),n};return{startState:function(){return new o},token:function(e,t){if(t.userIndent(e.indentation()),e.eatSpace())return null;var n=t.context.next(e,t.context,t);return t.context=n.context,t.expectVariable=n.eos,n.name},blankLine:function(e){e.userIndent(0)},indent:function(t,n){var r=t.context.next===a&&n&&"]"===n.charAt(0)?-1:t.userIndentationDelta;return(t.indentation+r)*e.indentUnit},electricChars:"]"}}),e.defineMIME("text/x-stsrc",{name:"smalltalk"})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("smarty",function(e){var t={rightDelimiter:"}",leftDelimiter:"{",smartyVersion:2};e.hasOwnProperty("leftDelimiter")&&(t.leftDelimiter=e.leftDelimiter),e.hasOwnProperty("rightDelimiter")&&(t.rightDelimiter=e.rightDelimiter),e.hasOwnProperty("smartyVersion")&&3===e.smartyVersion&&(t.smartyVersion=3);var n=["debug","extends","function","include","literal"],r,i={operatorChars:/[+\-*&%=<>!?]/,validIdentifier:/[a-zA-Z0-9_]/,stringChar:/['"]/},o={cont:function(e,t){return r=t,e},chain:function(e,t,n){return t.tokenize=n,n(e,t)}},a={tokenizer:function(e,n){if(e.match(t.leftDelimiter,!0)){if(e.eat("*"))return o.chain(e,n,a.inBlock("comment","*"+t.rightDelimiter));n.depth++;var i=e.eol(),s=/\s/.test(e.peek());return 3===t.smartyVersion&&"{"===t.leftDelimiter&&(i||s)?(n.depth--,null):(n.tokenize=a.smarty,r="startTag","tag")}return e.next(),null},smarty:function(e,s){if(e.match(t.rightDelimiter,!0))return 3===t.smartyVersion?(s.depth--,s.depth<=0&&(s.tokenize=a.tokenizer)):s.tokenize=a.tokenizer,o.cont("tag",null);if(e.match(t.leftDelimiter,!0))return s.depth++,o.cont("tag","startTag");var l=e.next();if("$"==l)return e.eatWhile(i.validIdentifier),o.cont("variable-2","variable");if("|"==l)return o.cont("operator","pipe");if("."==l)return o.cont("operator","property");if(i.stringChar.test(l))return s.tokenize=a.inAttribute(l),o.cont("string","string");if(i.operatorChars.test(l))return e.eatWhile(i.operatorChars),o.cont("operator","operator");if("["==l||"]"==l)return o.cont("bracket","bracket");if("("==l||")"==l)return o.cont("bracket","operator");if(/\d/.test(l))return e.eatWhile(/\d/),o.cont("number","number");if("variable"==s.last){if("@"==l)return e.eatWhile(i.validIdentifier),o.cont("property","property");if("|"==l)return e.eatWhile(i.validIdentifier),o.cont("qualifier","modifier")}else{if("pipe"==s.last)return e.eatWhile(i.validIdentifier),o.cont("qualifier","modifier");if("whitespace"==s.last)return e.eatWhile(i.validIdentifier),o.cont("attribute","modifier")}if("property"==s.last)return e.eatWhile(i.validIdentifier),o.cont("property",null);if(/\s/.test(l))return r="whitespace",null;var c="";"/"!=l&&(c+=l);for(var u=null;u=e.eat(i.validIdentifier);)c+=u;for(var d=0,f=n.length;f>d;d++)if(n[d]==c)return o.cont("keyword","keyword");return/\s/.test(l)?null:o.cont("tag","tag")},inAttribute:function(e){return function(t,n){for(var r=null,i=null;!t.eol();){if(i=t.peek(),t.next()==e&&"\\"!==r){n.tokenize=a.smarty;break}r=i}return"string"}},inBlock:function(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=a.tokenizer;break}n.next()}return e}}};return{startState:function(){return{tokenize:a.tokenizer,mode:"smarty",last:null,depth:0}},token:function(e,t){var n=t.tokenize(e,t);return t.last=r,n},electricChars:""}}),e.defineMIME("text/x-smarty","smarty")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../smarty/smarty")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../smarty/smarty"],e):e(CodeMirror);
|
||
|
||
}(function(e){"use strict";e.defineMode("smartymixed",function(t){function n(e){return e.replace(/[^\s\w]/g,"\\$&")}var r=e.getMode(t,"htmlmixed"),i=e.getMode(t,"smarty"),o={rightDelimiter:"}",leftDelimiter:"{"};t.hasOwnProperty("leftDelimiter")&&(o.leftDelimiter=t.leftDelimiter),t.hasOwnProperty("rightDelimiter")&&(o.rightDelimiter=t.rightDelimiter);var a=n(o.leftDelimiter),s=n(o.rightDelimiter),l={smartyComment:new RegExp("^"+s+"\\*"),literalOpen:new RegExp(a+"literal"+s),literalClose:new RegExp(a+"/literal"+s),hasLeftDelimeter:new RegExp(".*"+a),htmlHasLeftDelimeter:new RegExp("[^<>]*"+a)},c={chain:function(e,t,n){return t.tokenize=n,n(e,t)},cleanChain:function(e,t,n){return t.tokenize=null,t.localState=null,t.localMode=null,"string"==typeof n?n?n:null:n(e,t)},maybeBackup:function(e,t,n){var r=e.current(),i=r.search(t),o;return i>-1?e.backUp(r.length-i):(o=r.match(/<\/?$/))&&(e.backUp(r.length),e.match(t,!1)||e.match(r[0])),n}},u={html:function(e,t){var n=t.htmlMixedState.htmlState.context&&t.htmlMixedState.htmlState.context.tagName?t.htmlMixedState.htmlState.context.tagName:null;return!t.inLiteral&&e.match(l.htmlHasLeftDelimeter,!1)&&null===n?(t.tokenize=u.smarty,t.localMode=i,t.localState=i.startState(r.indent(t.htmlMixedState,"")),c.maybeBackup(e,o.leftDelimiter,i.token(e,t.localState))):!t.inLiteral&&e.match(o.leftDelimiter,!1)?(t.tokenize=u.smarty,t.localMode=i,t.localState=i.startState(r.indent(t.htmlMixedState,"")),c.maybeBackup(e,o.leftDelimiter,i.token(e,t.localState))):r.token(e,t.htmlMixedState)},smarty:function(e,t){if(e.match(o.leftDelimiter,!1)){if(e.match(l.smartyComment,!1))return c.chain(e,t,u.inBlock("comment","*"+o.rightDelimiter))}else if(e.match(o.rightDelimiter,!1))return e.eat(o.rightDelimiter),t.tokenize=u.html,t.localMode=r,t.localState=t.htmlMixedState,"tag";return c.maybeBackup(e,o.rightDelimiter,i.token(e,t.localState))},inBlock:function(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){c.cleanChain(n,r,"");break}n.next()}return e}}};return{startState:function(){var e=r.startState();return{token:u.html,localMode:null,localState:null,htmlMixedState:e,tokenize:null,inLiteral:!1}},copyState:function(t){var n=null,o=t.tokenize||t.token;return t.localState&&(n=e.copyState(o!=u.html?i:r,t.localState)),{token:t.token,tokenize:t.tokenize,localMode:t.localMode,localState:n,htmlMixedState:e.copyState(r,t.htmlMixedState),inLiteral:t.inLiteral}},token:function(e,t){if(e.match(o.leftDelimiter,!1)){if(!t.inLiteral&&e.match(l.literalOpen,!0))return t.inLiteral=!0,"keyword";if(t.inLiteral&&e.match(l.literalClose,!0))return t.inLiteral=!1,"keyword"}t.inLiteral&&t.localState!=t.htmlMixedState&&(t.tokenize=u.html,t.localMode=r,t.localState=t.htmlMixedState);var n=(t.tokenize||t.token)(e,t);return n},indent:function(t,n){return t.localMode==i||t.inLiteral&&!t.localMode||l.hasLeftDelimeter.test(n)?e.Pass:r.indent(t.htmlMixedState,n)},innerMode:function(e){return{state:e.localState||e.htmlMixedState,mode:e.localMode||r}}}},"htmlmixed","smarty"),e.defineMIME("text/x-smarty","smartymixed")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("solr",function(){function e(e){return parseFloat(e,10).toString()===e}function t(e){return function(t,n){for(var r=!1,o;null!=(o=t.next())&&(o!=e||r);)r=!r&&"\\"==o;return r||(n.tokenize=i),"string"}}function n(e){return function(t,n){var r="operator";return"+"==e?r+=" positive":"-"==e?r+=" negative":"|"==e?t.eat(/\|/):"&"==e?t.eat(/\&/):"^"==e&&(r+=" boost"),n.tokenize=i,r}}function r(t){return function(n,r){for(var a=t;(t=n.peek())&&null!=t.match(o);)a+=n.next();return r.tokenize=i,s.test(a)?"operator":e(a)?"number":":"==n.peek()?"field":"string"}}function i(e,s){var l=e.next();return'"'==l?s.tokenize=t(l):a.test(l)?s.tokenize=n(l):o.test(l)&&(s.tokenize=r(l)),s.tokenize!=i?s.tokenize(e,s):null}var o=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\^\"\\]/,a=/[\|\!\+\-\*\?\~\^\&]/,s=/^(OR|AND|NOT|TO)$/i;return{startState:function(){return{tokenize:i}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}}),e.defineMIME("text/x-solr","solr")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("sparql",function(e){function t(e){return new RegExp("^(?:"+e.join("|")+")$","i")}function n(e,t){var n=e.next();if(s=null,"$"==n||"?"==n)return e.match(/^[\w\d]*/),"variable-2";if("<"!=n||e.match(/^[\s\u00a0=]/,!1)){if('"'==n||"'"==n)return t.tokenize=r(n),t.tokenize(e,t);if(/[{}\(\),\.;\[\]]/.test(n))return s=n,null;if("#"==n)return e.skipToEnd(),"comment";if(u.test(n))return e.eatWhile(u),null;if(":"==n)return e.eatWhile(/[\w\d\._\-]/),"atom";if(e.eatWhile(/[_\w\d]/),e.eat(":"))return e.eatWhile(/[\w\d_\-]/),"atom";var i=e.current();return l.test(i)?null:c.test(i)?"keyword":"variable"}return e.match(/^[^\s\u00a0>]*>?/),"atom"}function r(e){return function(t,r){for(var i=!1,o;null!=(o=t.next());){if(o==e&&!i){r.tokenize=n;break}i=!i&&"\\"==o}return"string"}}function i(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function o(e){e.indent=e.context.indent,e.context=e.context.prev}var a=e.indentUnit,s,l=t(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","isblank","isliteral","a"]),c=t(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","data","copy","to","move","add","create","drop","clear","load"]),u=/[*+\-<>=&|]/;return{startState:function(){return{tokenize:n,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!=n&&t.context&&null==t.context.align&&"pattern"!=t.context.type&&(t.context.align=!0),"("==s)i(t,")",e.column());else if("["==s)i(t,"]",e.column());else if("{"==s)i(t,"}",e.column());else if(/[\]\}\)]/.test(s)){for(;t.context&&"pattern"==t.context.type;)o(t);t.context&&s==t.context.type&&o(t)}else"."==s&&t.context&&"pattern"==t.context.type?o(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?i(t,"pattern",e.column()):"pattern"!=t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t){var n=t&&t.charAt(0),r=e.context;if(/[\]\}]/.test(n))for(;r&&"pattern"==r.type;)r=r.prev;var i=r&&n==r.type;return r?"pattern"==r.type?r.col:r.align?r.col+(i?0:1):r.indent+(i?0:a):0}}}),e.defineMIME("application/x-sparql-query","sparql")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("sql",function(e,t){function n(e,t){var n=e.next();if(p[n]){var o=p[n](e,t);if(o!==!1)return o}if(1==f.hexNumber&&("0"==n&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==n||"X"==n)&&e.match(/^'[0-9a-fA-F]+'/)))return"number";if(1==f.binaryNumber&&(("b"==n||"B"==n)&&e.match(/^'[01]+'/)||"0"==n&&e.match(/^b[01]+/)))return"number";if(n.charCodeAt(0)>47&&n.charCodeAt(0)<58)return e.match(/^[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?/),1==f.decimallessFloat&&e.eat("."),"number";if("?"==n&&(e.eatSpace()||e.eol()||e.eat(";")))return"variable-3";if("'"==n||'"'==n&&f.doubleQuote)return t.tokenize=r(n),t.tokenize(e,t);if((1==f.nCharCast&&("n"==n||"N"==n)||1==f.charsetCast&&"_"==n&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(/^[\(\),\;\[\]]/.test(n))return null;if(f.commentSlashSlash&&"/"==n&&e.eat("/"))return e.skipToEnd(),"comment";if(f.commentHash&&"#"==n||"-"==n&&e.eat("-")&&(!f.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==n&&e.eat("*"))return t.tokenize=i,t.tokenize(e,t);if("."!=n){if(d.test(n))return e.eatWhile(d),null;if("{"==n&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var a=e.current().toLowerCase();return h.hasOwnProperty(a)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":l.hasOwnProperty(a)?"atom":c.hasOwnProperty(a)?"builtin":u.hasOwnProperty(a)?"keyword":s.hasOwnProperty(a)?"string-2":null}return 1==f.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":1==f.ODBCdotTable&&e.match(/^[a-zA-Z_]+/)?"variable-2":void 0}function r(e){return function(t,r){for(var i=!1,o;null!=(o=t.next());){if(o==e&&!i){r.tokenize=n;break}i=!i&&"\\"==o}return"string"}}function i(e,t){for(;;){if(!e.skipTo("*")){e.skipToEnd();break}if(e.next(),e.eat("/")){t.tokenize=n;break}}return"comment"}function o(e,t,n){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:n}}function a(e){e.indent=e.context.indent,e.context=e.context.prev}var s=t.client||{},l=t.atoms||{"false":!0,"true":!0,"null":!0},c=t.builtin||{},u=t.keywords||{},d=t.operatorChars||/^[*+\-%<>!=&|~^]/,f=t.support||{},p=t.hooks||{},h=t.dateSQL||{date:!0,time:!0,timestamp:!0};return{startState:function(){return{tokenize:n,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"==n)return n;t.context&&null==t.context.align&&(t.context.align=!0);var r=e.current();return"("==r?o(e,t,")"):"["==r?o(e,t,"]"):t.context&&t.context.type==r&&a(t),n},indent:function(t,n){var r=t.context;if(!r)return 0;var i=n.charAt(0)==r.type;return r.align?r.col+(i?0:1):r.indent+(i?0:e.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:f.commentSlashSlash?"//":f.commentHash?"#":null}}),function(){function t(e){for(var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function n(e){return e.eat("@")&&(e.match(/^session\./),e.match(/^local\./),e.match(/^global\./)),e.eat("'")?(e.match(/^.*'/),"variable-2"):e.eat('"')?(e.match(/^.*"/),"variable-2"):e.eat("`")?(e.match(/^.*`/),"variable-2"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function r(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null}function i(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var o="alter and as asc between by count create delete desc distinct drop from having in insert into is join like not on or order select set table union update values where ";e.defineMIME("text/x-sql",{name:"sql",keywords:i(o+"begin"),builtin:i("bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-mssql",{name:"sql",client:i("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:i(o+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered"),builtin:i("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:i("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":n}}),e.defineMIME("text/x-mysql",{name:"sql",client:i("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:i(o+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group groupby_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:i("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":t,"\\":r}}),e.defineMIME("text/x-mariadb",{name:"sql",client:i("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:i(o+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:i("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":n,"`":t,"\\":r}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:i("use select from using consistency where limit first reversed first and in insert into values using consistency ttl update set delete truncate begin batch apply create keyspace with columnfamily primary key index on drop alter type add any one quorum all local_quorum each_quorum"),builtin:i("ascii bigint blob boolean counter decimal double float int text timestamp uuid varchar varint"),atoms:i("false true"),operatorChars:/^[<>=]/,dateSQL:{},support:i("commentSlashSlash decimallessFloat"),hooks:{}}),e.defineMIME("text/x-plsql",{name:"sql",client:i("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:i("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:i("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least lenght lenghtb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*+\-%<>!=~]/,dateSQL:i("date time timestamp"),support:i("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-hive",{name:"sql",keywords:i("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external false fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger true unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with"),builtin:i("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:i("date timestamp"),support:i("ODBCdotTable doubleQuote binaryNumber hexNumber")})}()})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("stex",function(){function e(e,t){e.cmdState.push(t)}function t(e){return e.cmdState.length>0?e.cmdState[e.cmdState.length-1]:null}function n(e){var t=e.cmdState.pop();t&&t.closeBracket()}function r(e){for(var t=e.cmdState,n=t.length-1;n>=0;n--){var r=t[n];if("DEFAULT"!=r.name)return r}return{styleIdentifier:function(){return null}}}function i(e,t,n){return function(){this.name=e,this.bracketNo=0,this.style=t,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}function o(e,t){e.f=t}function a(n,i){var a;if(n.match(/^\\[a-zA-Z@]+/)){var d=n.current().slice(1);return a=u[d]||u.DEFAULT,a=new a,e(i,a),o(i,c),a.style}if(n.match(/^\\[$&%#{}_]/))return"tag";if(n.match(/^\\[,;!\/\\]/))return"tag";if(n.match("\\["))return o(i,function(e,t){return l(e,t,"\\]")}),"keyword";if(n.match("$$"))return o(i,function(e,t){return l(e,t,"$$")}),"keyword";if(n.match("$"))return o(i,function(e,t){return l(e,t,"$")}),"keyword";var f=n.next();return"%"==f?(n.eol()||o(i,s),"comment"):"}"==f||"]"==f?(a=t(i))?(a.closeBracket(f),o(i,c),"bracket"):"error":"{"==f||"["==f?(a=u.DEFAULT,a=new a,e(i,a),"bracket"):/\d/.test(f)?(n.eatWhile(/[\w.%]/),"atom"):(n.eatWhile(/[\w\-_]/),a=r(i),"begin"==a.name&&(a.argument=n.current()),a.styleIdentifier())}function s(e,t){return e.skipToEnd(),o(t,a),"comment"}function l(e,t,n){if(e.eatSpace())return null;if(e.match(n))return o(t,a),"keyword";if(e.match(/^\\[a-zA-Z@]+/))return"tag";if(e.match(/^[a-zA-Z]+/))return"variable-2";if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/]/))return"tag";if(e.match(/^[\^_&]/))return"tag";if(e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var r=e.next();return"{"==r||"}"==r||"["==r||"]"==r||"("==r||")"==r?"bracket":"%"==r?(e.eol()||e.skipToEnd(),"comment"):"error"}function c(e,r){var i=e.peek(),s;return"{"==i||"["==i?(s=t(r),s.openBracket(i),e.eat(i),o(r,a),"bracket"):/[ \t\r]/.test(i)?(e.eat(i),null):(o(r,a),n(r),a(e,r))}var u={};return u.importmodule=i("importmodule","tag",["string","builtin"]),u.documentclass=i("documentclass","tag",["","atom"]),u.usepackage=i("usepackage","tag",["atom"]),u.begin=i("begin","tag",["atom"]),u.end=i("end","tag",["atom"]),u.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{startState:function(){return{cmdState:[],f:a}},copyState:function(e){return{cmdState:e.cmdState.slice(),f:e.f}},token:function(e,t){return t.f(e,t)},lineComment:"%"}}),e.defineMIME("text/x-stex","stex"),e.defineMIME("text/x-latex","stex")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("tcl",function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function t(e,t,n){return t.tokenize=n,n(e,t)}function n(e,n){var c=n.beforeParams;n.beforeParams=!1;var u=e.next();if('"'!=u&&"'"!=u||!n.inParams){if(/[\[\]{}\(\),;\.]/.test(u))return"("==u&&c?n.inParams=!0:")"==u&&(n.inParams=!1),null;if(/\d/.test(u))return e.eatWhile(/[\w\.]/),"number";if("#"==u&&e.eat("*"))return t(e,n,i);if("#"==u&&e.match(/ *\[ *\[/))return t(e,n,o);if("#"==u&&e.eat("#"))return e.skipToEnd(),"comment";if('"'==u)return e.skipTo(/"/),"comment";if("$"==u)return e.eatWhile(/[$_a-z0-9A-Z\.{:]/),e.eatWhile(/}/),n.beforeParams=!0,"builtin";if(l.test(u))return e.eatWhile(l),"comment";e.eatWhile(/[\w\$_{}\xa1-\uffff]/);var d=e.current().toLowerCase();return a&&a.propertyIsEnumerable(d)?"keyword":s&&s.propertyIsEnumerable(d)?(n.beforeParams=!0,"keyword"):null}return t(e,n,r(u))}function r(e){return function(t,r){for(var i=!1,o,a=!1;null!=(o=t.next());){if(o==e&&!i){a=!0;break}i=!i&&"\\"==o}return a&&(r.tokenize=n),"string"}}function i(e,t){for(var r=!1,i;i=e.next();){if("#"==i&&r){t.tokenize=n;break}r="*"==i}return"comment"}function o(e,t){for(var r=0,i;i=e.next();){if("#"==i&&2==r){t.tokenize=n;break}"]"==i?r++:" "!=i&&(r=0)}return"meta"}var a=e("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"),s=e("if elseif else and not or eq ne in ni for foreach while switch"),l=/[+\-*&%=<>!?^\/\|]/;return{startState:function(){return{tokenize:n,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}}),e.defineMIME("text/x-tcl","tcl")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,n){this.regExpFactory=e,this.state=t,this.stream=n,this.styles=r,this.state.specialChar=null}function n(){this.cache={},this.single={bc:"bc",bq:"bq",definitionList:/- [^(?::=)]+:=+/,definitionListEnd:/.*=:\s*$/,div:"div",drawTable:/\|.*\|/,foot:/fn\d+/,header:/h[1-6]/,html:/\s*<(?:\/)?(\w+)(?:[^>]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[/\\]\d+/,
|
||
tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},this.attributes={align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/}}var r={addition:"positive",attributes:"attribute",bold:"strong",cite:"keyword",code:"atom",definitionList:"number",deletion:"negative",div:"punctuation",em:"em",footnote:"variable",footCite:"qualifier",header:"header",html:"comment",image:"string",italic:"em",link:"link",linkDefinition:"link",list1:"variable-2",list2:"variable-3",list3:"keyword",notextile:"string-2",pre:"operator",p:"property",quote:"bracket",span:"quote",specialChar:"tag",strong:"strong",sub:"builtin",sup:"builtin",table:"variable-3",tableHeading:"operator"};t.prototype.eat=function(e){return this.stream.match(this.regExpFactory.pattern(e),!0)},t.prototype.check=function(e){return this.stream.match(this.regExpFactory.pattern(e),!1)},t.prototype.setModeForNextToken=function(e){return this.state.mode=e},t.prototype.execMode=function(e){return this.setModeForNextToken(e).call(this)},t.prototype.startNewLine=function(){this.setModeForNextToken(i.newLayout),this.state.tableHeading=!1,"definitionList"===this.state.layoutType&&this.state.spanningLayout&&this.check("definitionListEnd")&&(this.state.spanningLayout=!1)},t.prototype.nextToken=function(){return this.state.mode.call(this)},t.prototype.styleFor=function(e){if(this.styles.hasOwnProperty(e))return this.styles[e];throw"unknown token"},t.prototype.handlePhraseModifier=function(e){if("_"===e)return this.stream.eat("_")?this.togglePhraseModifier("italic",/^.*__/):this.togglePhraseModifier("em",/^.*_/);if("*"===e)return this.stream.eat("*")?this.togglePhraseModifier("bold",/^.*\*\*/):this.togglePhraseModifier("strong",/^.*\*/);if("["===e)return this.stream.match(/\d+\]/)&&(this.state.footCite=!0),this.tokenStyles();if("("===e)return this.stream.match("r)")?this.state.specialChar="r":this.stream.match("tm)")?this.state.specialChar="tm":this.stream.match("c)")&&(this.state.specialChar="c"),this.tokenStyles();if("<"===e&&this.stream.match(/(\w+)[^>]+>[^<]+<\/\1>/))return this.tokenStylesWith(this.styleFor("html"));if("?"===e&&this.stream.eat("?"))return this.togglePhraseModifier("cite",/^.*\?\?/);if("="===e&&this.stream.eat("="))return this.togglePhraseModifier("notextile",/^.*==/);if("-"===e)return this.togglePhraseModifier("deletion",/^.*-/);if("+"===e)return this.togglePhraseModifier("addition",/^.*\+/);if("~"===e)return this.togglePhraseModifier("sub",/^.*~/);if("^"===e)return this.togglePhraseModifier("sup",/^.*\^/);if("%"===e)return this.togglePhraseModifier("span",/^.*%/);if("@"===e)return this.togglePhraseModifier("code",/^.*@/);if("!"===e){var t=this.togglePhraseModifier("image",/^.*(?:\([^\)]+\))?!/);return this.stream.match(/^:\S+/),t}return this.tokenStyles()},t.prototype.togglePhraseModifier=function(e,t){if(this.state[e]){var n=this.tokenStyles();return this.state[e]=!1,n}return this.stream.match(t,!1)&&(this.state[e]=!0,this.setModeForNextToken(i.attributes)),this.tokenStyles()},t.prototype.tokenStyles=function(){var e=this.textileDisabled(),t=[];return e?e:(this.state.layoutType&&t.push(this.styleFor(this.state.layoutType)),t=t.concat(this.activeStyles("addition","bold","cite","code","deletion","em","footCite","image","italic","link","span","specialChar","strong","sub","sup","table","tableHeading")),"header"===this.state.layoutType&&t.push(this.styleFor("header")+"-"+this.state.header),t.length?t.join(" "):null)},t.prototype.textileDisabled=function(){var e=this.state.layoutType;switch(e){case"notextile":case"code":case"pre":return this.styleFor(e);default:return this.state.notextile?this.styleFor("notextile")+(e?" "+this.styleFor(e):""):null}},t.prototype.tokenStylesWith=function(e){var t=this.textileDisabled(),n;return t?t:(n=this.tokenStyles(),e?n?n+" "+e:e:n)},t.prototype.activeStyles=function(){var e=[],t;for(t=0;t<arguments.length;++t)this.state[arguments[t]]&&e.push(this.styleFor(arguments[t]));return e},t.prototype.blankLine=function(){var e=this.state.spanningLayout,t=this.state.layoutType,n;for(n in this.state)this.state.hasOwnProperty(n)&&delete this.state[n];this.setModeForNextToken(i.newLayout),e&&(this.state.layoutType=t,this.state.spanningLayout=!0)},n.prototype.pattern=function(e){return this.cache[e]||this.createRe(e)},n.prototype.createRe=function(e){switch(e){case"drawTable":return this.makeRe("^",this.single.drawTable,"$");case"html":return this.makeRe("^",this.single.html,"(?:",this.single.html,")*","$");case"linkDefinition":return this.makeRe("^",this.single.linkDefinition,"$");case"listLayout":return this.makeRe("^",this.single.list,this.pattern("allAttributes"),"*\\s+");case"tableCellAttributes":return this.makeRe("^",this.choiceRe(this.single.tableCellAttributes,this.pattern("allAttributes")),"+\\.");case"type":return this.makeRe("^",this.pattern("allTypes"));case"typeLayout":return this.makeRe("^",this.pattern("allTypes"),this.pattern("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return this.makeRe("^",this.pattern("allAttributes"),"+");case"allTypes":return this.choiceRe(this.single.div,this.single.foot,this.single.header,this.single.bc,this.single.bq,this.single.notextile,this.single.pre,this.single.table,this.single.para);case"allAttributes":return this.choiceRe(this.attributes.selector,this.attributes.css,this.attributes.lang,this.attributes.align,this.attributes.pad);default:return this.makeRe("^",this.single[e])}},n.prototype.makeRe=function(){var e="",t,n;for(t=0;t<arguments.length;++t)n=arguments[t],e+="string"==typeof n?n:n.source;return new RegExp(e)},n.prototype.choiceRe=function(){var e=[arguments[0]],t;for(t=1;t<arguments.length;++t)e[2*t-1]="|",e[2*t]=arguments[t];return e.unshift("(?:"),e.push(")"),this.makeRe.apply(this,e)};var i={newLayout:function(){if(this.check("typeLayout"))return this.state.spanningLayout=!1,this.execMode(i.blockType);if(!this.textileDisabled()){if(this.check("listLayout"))return this.execMode(i.list);if(this.check("drawTable"))return this.execMode(i.table);if(this.check("linkDefinition"))return this.execMode(i.linkDefinition);if(this.check("definitionList"))return this.execMode(i.definitionList);if(this.check("html"))return this.execMode(i.html)}return this.execMode(i.text)},blockType:function(){var e,t;return this.state.layoutType=null,(e=this.eat("type"))?(t=e[0],(e=t.match(this.regExpFactory.pattern("header")))?(this.state.layoutType="header",this.state.header=parseInt(e[0][1])):t.match(this.regExpFactory.pattern("bq"))?this.state.layoutType="quote":t.match(this.regExpFactory.pattern("bc"))?this.state.layoutType="code":t.match(this.regExpFactory.pattern("foot"))?this.state.layoutType="footnote":t.match(this.regExpFactory.pattern("notextile"))?this.state.layoutType="notextile":t.match(this.regExpFactory.pattern("pre"))?this.state.layoutType="pre":t.match(this.regExpFactory.pattern("div"))?this.state.layoutType="div":t.match(this.regExpFactory.pattern("table"))&&(this.state.layoutType="table"),this.setModeForNextToken(i.attributes),this.tokenStyles()):this.execMode(i.text)},text:function(){if(this.eat("text"))return this.tokenStyles();var e=this.stream.next();return'"'===e?this.execMode(i.link):this.handlePhraseModifier(e)},attributes:function(){return this.setModeForNextToken(i.layoutLength),this.eat("attributes")?this.tokenStylesWith(this.styleFor("attributes")):this.tokenStyles()},layoutLength:function(){return this.stream.eat(".")&&this.stream.eat(".")&&(this.state.spanningLayout=!0),this.setModeForNextToken(i.text),this.tokenStyles()},list:function(){var e=this.eat("list"),t;return this.state.listDepth=e[0].length,t=(this.state.listDepth-1)%3,t?1===t?this.state.layoutType="list2":this.state.layoutType="list3":this.state.layoutType="list1",this.setModeForNextToken(i.attributes),this.tokenStyles()},link:function(){return this.setModeForNextToken(i.text),this.eat("link")?(this.stream.match(/\S+/),this.tokenStylesWith(this.styleFor("link"))):this.tokenStyles()},linkDefinition:function(){return this.stream.skipToEnd(),this.tokenStylesWith(this.styleFor("linkDefinition"))},definitionList:function(){return this.eat("definitionList"),this.state.layoutType="definitionList",this.stream.match(/\s*$/)?this.state.spanningLayout=!0:this.setModeForNextToken(i.attributes),this.tokenStyles()},html:function(){return this.stream.skipToEnd(),this.tokenStylesWith(this.styleFor("html"))},table:function(){return this.state.layoutType="table",this.execMode(i.tableCell)},tableCell:function(){return this.eat("tableHeading")?this.state.tableHeading=!0:this.stream.eat("|"),this.setModeForNextToken(i.tableCellAttributes),this.tokenStyles()},tableCellAttributes:function(){return this.setModeForNextToken(i.tableText),this.eat("tableCellAttributes")?this.tokenStylesWith(this.styleFor("attributes")):this.tokenStyles()},tableText:function(){return this.eat("tableText")?this.tokenStyles():"|"===this.stream.peek()?(this.setModeForNextToken(i.tableCell),this.tokenStyles()):this.handlePhraseModifier(this.stream.next())}};e.defineMode("textile",function(){var e=new n;return{startState:function(){return{mode:i.newLayout}},token:function(n,r){var i=new t(e,r,n);return n.sol()&&i.startNewLine(),i.nextToken()},blankLine:function(n){new t(e,n).blankLine()}}}),e.defineMIME("text/x-textile","textile")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("tiddlywiki",function(){function e(e,t,n){return t.tokenize=n,n(e,t)}function t(e,t,n){return S=e,T=n,t}function n(n,d){var _=n.sol(),w;if(d.block=!1,w=n.peek(),_&&/[<\/\*{}\-]/.test(w)){if(n.match(x))return d.block=!0,e(n,d,o);if(n.match(g))return t("quote","quote");if(n.match(h)||n.match(m))return t("code","comment");if(n.match(v)||n.match(b)||n.match(y)||n.match(k))return t("code","comment");if(n.match(p))return t("hr","hr")}if(w=n.next(),_&&/[\/\*!#;:>|]/.test(w)){if("!"==w)return n.skipToEnd(),t("header","header");if("*"==w)return n.eatWhile("*"),t("list","comment");if("#"==w)return n.eatWhile("#"),t("list","comment");if(";"==w)return n.eatWhile(";"),t("list","comment");if(":"==w)return n.eatWhile(":"),t("list","comment");if(">"==w)return n.eatWhile(">"),t("quote","quote");if("|"==w)return t("table","header")}if("{"==w&&n.match(/\{\{/))return e(n,d,o);if(/[hf]/i.test(w)&&/[ti]/i.test(n.peek())&&n.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return t("link","link");if('"'==w)return t("string","string");if("~"==w)return t("text","brace");if(/[\[\]]/.test(w)&&n.peek()==w)return n.next(),t("brace","brace");if("@"==w)return n.eatWhile(f),t("link","link");if(/\d/.test(w))return n.eatWhile(/\d/),t("number","number");if("/"==w){if(n.eat("%"))return e(n,d,r);if(n.eat("/"))return e(n,d,a)}if("_"==w&&n.eat("_"))return e(n,d,s);if("-"==w&&n.eat("-")){if(" "!=n.peek())return e(n,d,l);if(" "==n.peek())return t("text","brace")}if("'"==w&&n.eat("'"))return e(n,d,i);if("<"!=w)return t(w);if(n.eat("<"))return e(n,d,c);n.eatWhile(/[\w\$_]/);var S=n.current(),T=u.propertyIsEnumerable(S)&&u[S];return T?t(T.type,T.style,S):t("text",null,S)}function r(e,r){for(var i=!1,o;o=e.next();){if("/"==o&&i){r.tokenize=n;break}i="%"==o}return t("comment","comment")}function i(e,r){for(var i=!1,o;o=e.next();){if("'"==o&&i){r.tokenize=n;break}i="'"==o}return t("text","strong")}function o(e,r){var i,o=r.block;return o&&e.current()?t("code","comment"):!o&&e.match(w)?(r.tokenize=n,t("code","comment")):o&&e.sol()&&e.match(_)?(r.tokenize=n,t("code","comment")):(i=e.next(),o?t("code","comment"):t("code","comment"))}function a(e,r){for(var i=!1,o;o=e.next();){if("/"==o&&i){r.tokenize=n;break}i="/"==o}return t("text","em")}function s(e,r){for(var i=!1,o;o=e.next();){if("_"==o&&i){r.tokenize=n;break}i="_"==o}return t("text","underlined")}function l(e,r){for(var i=!1,o;o=e.next();){if("-"==o&&i){r.tokenize=n;break}i="-"==o}return t("text","strikethrough")}function c(e,r){var i,o,a;return"<<"==e.current()?t("brace","macro"):(i=e.next())?">"==i&&">"==e.peek()?(e.next(),r.tokenize=n,t("brace","macro")):(e.eatWhile(/[\w\$_]/),o=e.current(),a=d.propertyIsEnumerable(o)&&d[o],a?t(a.type,a.style,o):t("macro",null,o)):(r.tokenize=n,t(i))}var u={},d=function(){function e(e){return{type:e,style:"macro"}}return{allTags:e("allTags"),closeAll:e("closeAll"),list:e("list"),newJournal:e("newJournal"),newTiddler:e("newTiddler"),permaview:e("permaview"),saveChanges:e("saveChanges"),search:e("search"),slider:e("slider"),tabs:e("tabs"),tag:e("tag"),tagging:e("tagging"),tags:e("tags"),tiddler:e("tiddler"),timeline:e("timeline"),today:e("today"),version:e("version"),option:e("option"),"with":e("with"),filter:e("filter")}}(),f=/[\w_\-]/i,p=/^\-\-\-\-+$/,h=/^\/\*\*\*$/,m=/^\*\*\*\/$/,g=/^<<<$/,v=/^\/\/\{\{\{$/,b=/^\/\/\}\}\}$/,y=/^<!--\{\{\{-->$/,k=/^<!--\}\}\}-->$/,x=/^\{\{\{$/,_=/^\}\}\}$/,w=/.*?\}\}\}/,S,T;return{startState:function(){return{tokenize:n,indented:0,level:0}},token:function(e,t){if(e.eatSpace())return null;var n=t.tokenize(e,t);return n},electricChars:""}}),e.defineMIME("text/x-tiddlywiki","tiddlywiki")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("tiki",function(e){function t(e,t,n){return function(i,o){for(;!i.eol();){if(i.match(t)){o.tokenize=r;break}i.next()}return n&&(o.tokenize=n),e}}function n(e){return function(t,n){for(;!t.eol();)t.next();return n.tokenize=r,e}}function r(e,o){function a(t){return o.tokenize=t,t(e,o)}var s=e.sol(),l=e.next();switch(l){case"{":e.eat("/"),e.eatSpace();for(var c="",u;u=e.eat(/[^\s\u00a0=\"\'\/?(}]/);)c+=u;return o.tokenize=i,"tag";break;case"_":if(e.eat("_"))return a(t("strong","__",r));break;case"'":if(e.eat("'"))return a(t("em","''",r));break;case"(":if(e.eat("("))return a(t("variable-2","))",r));break;case"[":return a(t("variable-3","]",r));break;case"|":if(e.eat("|"))return a(t("comment","||"));break;case"-":if(e.eat("="))return a(t("header string","=-",r));if(e.eat("-"))return a(t("error tw-deleted","--",r));break;case"=":if(e.match("=="))return a(t("tw-underline","===",r));break;case":":if(e.eat(":"))return a(t("comment","::"));break;case"^":return a(t("tw-box","^"));break;case"~":if(e.match("np~"))return a(t("meta","~/np~"))}if(s)switch(l){case"!":return a(e.match("!!!!!")?n("header string"):e.match("!!!!")?n("header string"):e.match("!!!")?n("header string"):e.match("!!")?n("header string"):n("header string"));break;case"*":case"#":case"+":return a(n("tw-listitem bracket"))}return null}function i(e,t){var n=e.next(),i=e.peek();return"}"==n?(t.tokenize=r,"tag"):"("==n||")"==n?"bracket":"="==n?(y="equals",">"==i&&(n=e.next(),i=e.peek()),/[\'\"]/.test(i)||(t.tokenize=a()),"operator"):/[\'\"]/.test(n)?(t.tokenize=o(n),t.tokenize(e,t)):(e.eatWhile(/[^\s\u00a0=\"\'\/?]/),"keyword")}function o(e){return function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=i;break}return"string"}}function a(){return function(e,t){for(;!e.eol();){var n=e.next(),r=e.peek();if(" "==n||","==n||/[ )}]/.test(r)){t.tokenize=i;break}}return"string"}}function s(){for(var e=arguments.length-1;e>=0;e--)k.cc.push(arguments[e])}function l(){return s.apply(null,arguments),!0}function c(e,t){var n=k.context&&k.context.noIndent;k.context={prev:k.context,pluginName:e,indent:k.indented,startOfLine:t,noIndent:n}}function u(){k.context&&(k.context=k.context.prev)}function d(e){if("openPlugin"==e)return k.pluginName=b,l(h,f(k.startOfLine));if("closePlugin"==e){var t=!1;return k.context?(t=k.context.pluginName!=b,u()):t=!0,t&&(x="error"),l(p(t))}return"string"==e?(k.context&&"!cdata"==k.context.name||c("!cdata"),k.tokenize==r&&u(),l()):l()}function f(e){return function(t){return"selfclosePlugin"==t||"endPlugin"==t?l():"endPlugin"==t?(c(k.pluginName,e),l()):l()}}function p(e){return function(t){return e&&(x="error"),"endPlugin"==t?l():s()}}function h(e){return"keyword"==e?(x="attribute",l(h)):"equals"==e?l(m,h):s()}function m(e){return"keyword"==e?(x="string",l()):"string"==e?l(g):s()}function g(e){return"string"==e?l(g):s()}var v=e.indentUnit,b,y,k,x;return{startState:function(){return{tokenize:r,cc:[],indented:0,startOfLine:!0,pluginName:null,context:null}},token:function(e,t){if(e.sol()&&(t.startOfLine=!0,t.indented=e.indentation()),e.eatSpace())return null;x=y=b=null;var n=t.tokenize(e,t);if((n||y)&&"comment"!=n)for(k=t;;){var r=t.cc.pop()||d;if(r(y||n))break}return t.startOfLine=!1,x||n},indent:function(e,t){var n=e.context;if(n&&n.noIndent)return 0;for(n&&/^{\//.test(t)&&(n=n.prev);n&&!n.startOfLine;)n=n.prev;return n?n.indent+v:0},electricChars:"/"}}),e.defineMIME("text/tiki","tiki")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("toml",function(){return{startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(e,t){if(t.inString||'"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.inString=!0),e.sol()&&0===t.inArray&&(t.lhs=!0),t.inString){for(;t.inString&&!e.eol();)e.peek()===t.stringType?(e.next(),t.inString=!1):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property string":"string"}return t.inArray&&"]"===e.peek()?(e.next(),t.inArray--,"bracket"):t.lhs&&"["===e.peek()&&e.skipTo("]")?(e.next(),"]"===e.peek()&&e.next(),"atom"):"#"===e.peek()?(e.skipToEnd(),"comment"):e.eatSpace()?null:t.lhs&&e.eatWhile(function(e){return"="!=e&&" "!=e})?"property":t.lhs&&"="===e.peek()?(e.next(),t.lhs=!1,null):!t.lhs&&e.match(/^\d\d\d\d[\d\-\:\.T]*Z/)?"atom":t.lhs||!e.match("true")&&!e.match("false")?t.lhs||"["!==e.peek()?!t.lhs&&e.match(/^\-?\d+(?:\.\d+)?/)?"number":(e.eatSpace()||e.next(),null):(t.inArray++,e.next(),"bracket"):"atom"}}}),e.defineMIME("text/x-toml","toml")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../../addon/mode/overlay")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../../addon/mode/overlay"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("tornado:inner",function(){function e(e,n){e.eatWhile(/[^\{]/);var r=e.next();return"{"==r&&(r=e.eat(/\{|%|#/))?(n.tokenize=t(r),"tag"):void 0}function t(t){return"{"==t&&(t="}"),function(r,i){var o=r.next();return o==t&&r.eat("}")?(i.tokenize=e,"tag"):r.match(n)?"keyword":"#"==t?"comment":"string"}}var n=["and","as","assert","autoescape","block","break","class","comment","context","continue","datetime","def","del","elif","else","end","escape","except","exec","extends","false","finally","for","from","global","if","import","in","include","is","json_encode","lambda","length","linkify","load","module","none","not","or","pass","print","put","raise","raw","return","self","set","squeeze","super","true","try","url_escape","while","with","without","xhtml_escape","yield"];return n=new RegExp("^(("+n.join(")|(")+"))\\b"),{startState:function(){return{tokenize:e}},token:function(e,t){return t.tokenize(e,t)}}}),e.defineMode("tornado",function(t){var n=e.getMode(t,"text/html"),r=e.getMode(t,"tornado:inner");return e.overlayMode(n,r)}),e.defineMIME("text/x-tornado","tornado")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("turtle",function(e){function t(e){return new RegExp("^(?:"+e.join("|")+")$","i")}function n(e,t){var n=e.next();if(s=null,"<"!=n||e.match(/^[\s\u00a0=]/,!1)){if('"'==n||"'"==n)return t.tokenize=r(n),t.tokenize(e,t);if(/[{}\(\),\.;\[\]]/.test(n))return s=n,null;if("#"==n)return e.skipToEnd(),"comment";if(u.test(n))return e.eatWhile(u),null;if(":"==n)return"operator";if(e.eatWhile(/[_\w\d]/),":"==e.peek())return"variable-3";var i=e.current();return c.test(i)?"meta":n>="A"&&"Z">=n?"comment":"keyword";var i=e.current();return l.test(i)?null:c.test(i)?"meta":"variable"}return e.match(/^[^\s\u00a0>]*>?/),"atom"}function r(e){return function(t,r){for(var i=!1,o;null!=(o=t.next());){if(o==e&&!i){r.tokenize=n;break}i=!i&&"\\"==o}return"string"}}function i(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function o(e){e.indent=e.context.indent,e.context=e.context.prev}var a=e.indentUnit,s,l=t([]),c=t(["@prefix","@base","a"]),u=/[*+\-<>=&|]/;return{startState:function(){return{tokenize:n,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!=n&&t.context&&null==t.context.align&&"pattern"!=t.context.type&&(t.context.align=!0),"("==s)i(t,")",e.column());else if("["==s)i(t,"]",e.column());else if("{"==s)i(t,"}",e.column());else if(/[\]\}\)]/.test(s)){for(;t.context&&"pattern"==t.context.type;)o(t);t.context&&s==t.context.type&&o(t)}else"."==s&&t.context&&"pattern"==t.context.type?o(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?i(t,"pattern",e.column()):"pattern"!=t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t){var n=t&&t.charAt(0),r=e.context;if(/[\]\}]/.test(n))for(;r&&"pattern"==r.type;)r=r.prev;var i=r&&n==r.type;return r?"pattern"==r.type?r.col:r.align?r.col+(i?0:1):r.indent+(i?0:a):0}}}),e.defineMIME("text/turtle","turtle")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("vb",function(e,t){function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}function r(e,t){t.currentIndent++}function i(e,t){t.currentIndent--}function o(e,t){if(e.eatSpace())return null;var n=e.peek();if("'"===n)return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var o=!1;if(e.match(/^\d*\.\d+F?/i)?o=!0:e.match(/^\d+\.\d*F?/)?o=!0:e.match(/^\.\d+F?/)&&(o=!0),o)return e.eat(/J/i),"number";var s=!1;if(e.match(/^&H[0-9a-f]+/i)?s=!0:e.match(/^&O[0-7]+/i)?s=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),s=!0):e.match(/^0(?![\dx])/i)&&(s=!0),s)return e.eat(/L/i),"number"}return e.match(w)?(t.tokenize=a(e.current()),t.tokenize(e,t)):e.match(p)||e.match(f)?null:e.match(d)||e.match(c)||e.match(b)?"operator":e.match(u)?null:e.match(M)?(r(e,t),t.doInCurrentLine=!0,"keyword"):e.match(S)?(t.doInCurrentLine?t.doInCurrentLine=!1:r(e,t),"keyword"):e.match(T)?"keyword":e.match(C)?(i(e,t),i(e,t),"keyword"):e.match(E)?(i(e,t),"keyword"):e.match(_)?"keyword":e.match(x)?"keyword":e.match(h)?"variable":(e.next(),l)}function a(e){var n=1==e.length,r="string";return function(i,a){for(;!i.eol();){if(i.eatWhile(/[^'"]/),i.match(e))return a.tokenize=o,r;i.eat(/['"]/)}if(n){if(t.singleLineStringErrors)return l;a.tokenize=o}return r}}function s(e,t){var n=t.tokenize(e,t),o=e.current();if("."===o)return n=t.tokenize(e,t),o=e.current(),"variable"===n?"variable":l;var a="[({".indexOf(o);return-1!==a&&r(e,t),"dedent"===L&&i(e,t)?l:(a="])}".indexOf(o),-1!==a&&i(e,t)?l:n)}var l="error",c=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),u=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),d=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),f=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),p=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),h=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),m=["class","module","sub","enum","select","while","if","function","get","set","property","try"],g=["else","elseif","case","catch"],v=["next","loop"],b=n(["and","or","not","xor","in"]),y=["as","dim","break","continue","optional","then","until","goto","byval","byref","new","handles","property","return","const","private","protected","friend","public","shared","static","true","false"],k=["integer","string","double","decimal","boolean","short","char","float","single"],x=n(y),_=n(k),w='"',S=n(m),T=n(g),E=n(v),C=n(["end"]),M=n(["do"]),L=null,A={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:o,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var n=s(e,t);return t.lastToken={style:n,content:e.current()},n},indent:function(t,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(E)||r.match(C)||r.match(T)?e.indentUnit*(t.currentIndent-1):t.currentIndent<0?0:t.currentIndent*e.indentUnit}};return A}),e.defineMIME("text/x-vb","vb")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("vbscript",function(e,t){function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}function r(e,t){t.currentIndent++}function i(e,t){t.currentIndent--}function o(e,t){if(e.eatSpace())return"space";var n=e.peek();if("'"===n)return e.skipToEnd(),"comment";if(e.match(W))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var o=!1;if(e.match(/^\d*\.\d+/i)?o=!0:e.match(/^\d+\.\d*/)?o=!0:e.match(/^\.\d+/)&&(o=!0),o)return e.eat(/J/i),"number";var s=!1;if(e.match(/^&H[0-9a-f]+/i)?s=!0:e.match(/^&O[0-7]+/i)?s=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),s=!0):e.match(/^0(?![\dx])/i)&&(s=!0),s)return e.eat(/L/i),"number"}return e.match(N)?(t.tokenize=a(e.current()),t.tokenize(e,t)):e.match(u)||e.match(c)||e.match(v)?"operator":e.match(d)?null:e.match(f)?"bracket":e.match(j)?(t.doInCurrentLine=!0,"keyword"):e.match(q)?(r(e,t),t.doInCurrentLine=!0,"keyword"):e.match(z)?(t.doInCurrentLine?t.doInCurrentLine=!1:r(e,t),"keyword"):e.match(P)?"keyword":e.match($)?(i(e,t),i(e,t),"keyword"):e.match(D)?(t.doInCurrentLine?t.doInCurrentLine=!1:i(e,t),"keyword"):e.match(L)?"keyword":e.match(A)?"atom":e.match(O)?"variable-2":e.match(I)?"builtin":e.match(R)?"variable-2":e.match(p)?"variable":(e.next(),l)}function a(e){var n=1==e.length,r="string";return function(i,a){for(;!i.eol();){if(i.eatWhile(/[^'"]/),i.match(e))return a.tokenize=o,r;i.eat(/['"]/)}if(n){if(t.singleLineStringErrors)return l;a.tokenize=o}return r}}function s(e,t){var n=t.tokenize(e,t),r=e.current();return"."===r?(n=t.tokenize(e,t),r=e.current(),!n||"variable"!==n.substr(0,8)&&"builtin"!==n&&"keyword"!==n?l:(("builtin"===n||"keyword"===n)&&(n="variable"),M.indexOf(r.substr(1))>-1&&(n="variable-2"),n)):n}var l="error",c=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),u=new RegExp("^((<>)|(<=)|(>=))"),d=new RegExp("^[\\.,]"),f=new RegExp("^[\\(\\)]"),p=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),h=["class","sub","select","while","if","function","property","with","for"],m=["else","elseif","case"],g=["next","loop","wend"],v=n(["and","or","not","xor","is","mod","eqv","imp"]),b=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"],y=["true","false","nothing","empty","null"],k=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"],x=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"],_=["WScript","err","debug","RegExp"],w=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],S=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],T=["server","response","request","session","application"],E=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"],C=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],M=S.concat(w);_=_.concat(x),e.isASP&&(_=_.concat(T),M=M.concat(C,E));var L=n(b),A=n(y),I=n(k),R=n(_),O=n(M),N='"',z=n(h),P=n(m),D=n(g),$=n(["end"]),q=n(["do"]),j=n(["on error resume next","exit"]),W=n(["rem"]),U={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:o,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var n=s(e,t);return t.lastToken={style:n,content:e.current()},"space"===n&&(n=null),n},indent:function(t,n){var r=n.replace(/^\s+|\s+$/g,"");return r.match(D)||r.match($)||r.match(P)?e.indentUnit*(t.currentIndent-1):t.currentIndent<0?0:t.currentIndent*e.indentUnit}};return U}),e.defineMIME("text/vbscript","vbscript")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("velocity",function(){function e(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function t(e,t,n){return t.tokenize=n,n(e,t)}function n(e,n){var u=n.beforeParams;n.beforeParams=!1;var d=e.next();if("'"==d&&n.inParams)return n.lastTokenWasBuiltin=!1,t(e,n,r(d));if('"'!=d){if(/[\[\]{}\(\),;\.]/.test(d))return"("==d&&u?n.inParams=!0:")"==d&&(n.inParams=!1,n.lastTokenWasBuiltin=!0),null;if(/\d/.test(d))return n.lastTokenWasBuiltin=!1,e.eatWhile(/[\w\.]/),"number";if("#"==d&&e.eat("*"))return n.lastTokenWasBuiltin=!1,t(e,n,i);if("#"==d&&e.match(/ *\[ *\[/))return n.lastTokenWasBuiltin=!1,
|
||
t(e,n,o);if("#"==d&&e.eat("#"))return n.lastTokenWasBuiltin=!1,e.skipToEnd(),"comment";if("$"==d)return e.eatWhile(/[\w\d\$_\.{}]/),l&&l.propertyIsEnumerable(e.current())?"keyword":(n.lastTokenWasBuiltin=!0,n.beforeParams=!0,"builtin");if(c.test(d))return n.lastTokenWasBuiltin=!1,e.eatWhile(c),"operator";e.eatWhile(/[\w\$_{}@]/);var f=e.current();return a&&a.propertyIsEnumerable(f)?"keyword":s&&s.propertyIsEnumerable(f)||e.current().match(/^#@?[a-z0-9_]+ *$/i)&&"("==e.peek()&&(!s||!s.propertyIsEnumerable(f.toLowerCase()))?(n.beforeParams=!0,n.lastTokenWasBuiltin=!1,"keyword"):n.inString?(n.lastTokenWasBuiltin=!1,"string"):e.pos>f.length&&"."==e.string.charAt(e.pos-f.length-1)&&n.lastTokenWasBuiltin?"builtin":(n.lastTokenWasBuiltin=!1,null)}return n.lastTokenWasBuiltin=!1,n.inString?(n.inString=!1,"string"):n.inParams?t(e,n,r(d)):void 0}function r(e){return function(t,r){for(var i=!1,o,a=!1;null!=(o=t.next());){if(o==e&&!i){a=!0;break}if('"'==e&&"$"==t.peek()&&!i){r.inString=!0,a=!0;break}i=!i&&"\\"==o}return a&&(r.tokenize=n),"string"}}function i(e,t){for(var r=!1,i;i=e.next();){if("#"==i&&r){t.tokenize=n;break}r="*"==i}return"comment"}function o(e,t){for(var r=0,i;i=e.next();){if("#"==i&&2==r){t.tokenize=n;break}"]"==i?r++:" "!=i&&(r=0)}return"meta"}var a=e("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"),s=e("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"),l=e("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"),c=/[+\-*&%=<>!?:\/|]/;return{startState:function(){return{tokenize:n,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},blockCommentStart:"#*",blockCommentEnd:"*#",lineComment:"##",fold:"velocity"}}),e.defineMIME("text/velocity","velocity")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("verilog",function(t,n){function r(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function i(e,t){var n=e.peek();if(/[,;:\.]/.test(n))return M=e.next(),null;if(y.test(n))return M=e.next(),"bracket";if("`"==n)return e.next(),e.eatWhile(/[\w\$_]/)?"def":null;if("$"==n)return e.next(),e.eatWhile(/[\w\$_]/)?"meta":null;if("#"==n)return e.next(),e.eatWhile(/[\d_.]/),"def";if('"'==n)return e.next(),t.tokenize=o(n),t.tokenize(e,t);if("/"==n){if(e.next(),e.eat("*"))return t.tokenize=a,a(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}if(e.match(T)||e.match(x)||e.match(_)||e.match(w)||e.match(S)||e.match(k)||e.match(T))return"number";if(e.eatWhile(b))return"meta";if(e.eatWhile(/[\w\$_]/)){var r=e.current();return v[r]?(I[r]&&(M="newblock"),N[r]&&(M="newstatement"),L=r,"keyword"):"variable"}return e.next(),null}function o(e){return function(t,n){for(var r=!1,o,a=!1;null!=(o=t.next());){if(o==e&&!r){a=!0;break}r=!r&&"\\"==o}return(a||!r&&!g)&&(n.tokenize=i),"string"}}function a(e,t){for(var n=!1,r;r=e.next();){if("/"==r&&n){t.tokenize=i;break}n="*"==r}return"comment"}function s(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function l(e,t,n){var r=e.indented,i=new s(r,t,n,null,e.context);return e.context=i}function c(e){var t=e.context.type;return(")"==t||"]"==t||"}"==t)&&(e.indented=e.context.indented),e.context=e.context.prev}function u(e,t){if(e==t)return!0;var n=t.split(";");for(var r in n)if(e==n[r])return!0;return!1}function d(){var e=[];for(var t in I)if(I[t]){var n=I[t].split(";");for(var r in n)e.push(n[r])}var i=new RegExp("[{}()\\[\\]]|("+e.join("|")+")$");return i}var f=t.indentUnit,p=n.statementIndentUnit||f,h=n.dontAlignCalls,m=n.noIndentKeywords||[],g=n.multiLineStrings,v=r("accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 null or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor"),b=/[\+\-\*\/!~&|^%=?:]/,y=/[\[\]{}()]/,k=/\d[0-9_]*/,x=/\d*\s*'s?d\s*\d[0-9_]*/i,_=/\d*\s*'s?b\s*[xz01][xz01_]*/i,w=/\d*\s*'s?o\s*[xz0-7][xz0-7_]*/i,S=/\d*\s*'s?h\s*[0-9a-fxz?][0-9a-fxz?_]*/i,T=/(\d[\d_]*(\.\d[\d_]*)?E-?[\d_]+)|(\d[\d_]*\.\d[\d_]*)/i,E=/^((\w+)|[)}\]])/,C=/[)}\]]/,M,L,A=r("case checker class clocking config function generate interface module packageprimitive program property specify sequence table task"),I={};for(var R in A)I[R]="end"+R;I.begin="end",I.casex="endcase",I.casez="endcase",I["do"]="while",I.fork="join;join_any;join_none",I.covergroup="endgroup";for(var O in m){var R=m[O];I[R]&&(I[R]=void 0)}var N=r("always always_comb always_ff always_latch assert assign assume else export for foreach forever if import initial repeat while");return{electricInput:d(),startState:function(e){return{tokenize:null,context:new s((e||0)-f,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;M=null,L=null;var r=(t.tokenize||i)(e,t);if("comment"==r||"meta"==r||"variable"==r)return r;if(null==n.align&&(n.align=!0),M==n.type)c(t);else if(";"==M&&"statement"==n.type||n.type&&u(L,n.type))for(n=c(t);n&&"statement"==n.type;)n=c(t);else if("{"==M)l(t,e.column(),"}");else if("["==M)l(t,e.column(),"]");else if("("==M)l(t,e.column(),")");else if(n&&"endcase"==n.type&&":"==M)l(t,e.column(),"statement");else if("newstatement"==M)l(t,e.column(),"statement");else if("newblock"==M)if("function"!=L||!n||"statement"!=n.type&&"endgroup"!=n.type)if("task"==L&&n&&"statement"==n.type);else{var o=I[L];l(t,e.column(),o)}else;return t.startOfLine=!1,r},indent:function(t,n){if(t.tokenize!=i&&null!=t.tokenize)return e.Pass;var r=t.context,o=n&&n.charAt(0);"statement"==r.type&&"}"==o&&(r=r.prev);var a=!1,s=n.match(E);return s&&(a=u(s[0],r.type)),"statement"==r.type?r.indented+("{"==o?0:p):C.test(r.type)&&r.align&&!h?r.column+(a?0:1):")"!=r.type||a?r.indented+(a?0:f):r.indented+p},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),e.defineMIME("text/x-verilog",{name:"verilog"}),e.defineMIME("text/x-systemverilog",{name:"systemverilog"})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("xml",function(t,n){function r(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();if("<"==r)return e.eat("!")?e.eat("[")?e.match("CDATA[")?n(a("atom","]]>")):null:e.match("--")?n(a("comment","-->")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(s(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=a("meta","?>"),"meta"):(T=e.eat("/")?"closeTag":"openTag",t.tokenize=i,"tag bracket");if("&"==r){var o;return o=e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"),o?"atom":"error"}return e.eatWhile(/[^&<]/),null}function i(e,t){var n=e.next();if(">"==n||"/"==n&&e.eat(">"))return t.tokenize=r,T=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return T="equals",null;if("<"==n){t.tokenize=r,t.state=d,t.tagName=t.tagStart=null;var i=t.tokenize(e,t);return i?i+" tag error":"tag error"}return/[\'\"]/.test(n)?(t.tokenize=o(n),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function o(e){var t=function(t,n){for(;!t.eol();)if(t.next()==e){n.tokenize=i;break}return"string"};return t.isInAttribute=!0,t}function a(e,t){return function(n,i){for(;!n.eol();){if(n.match(t)){i.tokenize=r;break}n.next()}return e}}function s(e){return function(t,n){for(var i;null!=(i=t.next());){if("<"==i)return n.tokenize=s(e+1),n.tokenize(t,n);if(">"==i){if(1==e){n.tokenize=r;break}return n.tokenize=s(e-1),n.tokenize(t,n)}}return"meta"}}function l(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(w.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function c(e){e.context&&(e.context=e.context.prev)}function u(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!w.contextGrabbers.hasOwnProperty(n)||!w.contextGrabbers[n].hasOwnProperty(t))return;c(e)}}function d(e,t,n){return"openTag"==e?(n.tagStart=t.column(),f):"closeTag"==e?p:d}function f(e,t,n){return"word"==e?(n.tagName=t.current(),E="tag",g):(E="error",f)}function p(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&w.implicitlyClosed.hasOwnProperty(n.context.tagName)&&c(n),n.context&&n.context.tagName==r?(E="tag",h):(E="tag error",m)}return E="error",m}function h(e,t,n){return"endTag"!=e?(E="error",h):(c(n),d)}function m(e,t,n){return E="error",h(e,t,n)}function g(e,t,n){if("word"==e)return E="attribute",v;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||w.autoSelfClosers.hasOwnProperty(r)?u(n,r):(u(n,r),n.context=new l(n,r,i==n.indented)),d}return E="error",g}function v(e,t,n){return"equals"==e?b:(w.allowMissing||(E="error"),g(e,t,n))}function b(e,t,n){return"string"==e?y:"word"==e&&w.allowUnquoted?(E="string",g):(E="error",g(e,t,n))}function y(e,t,n){return"string"==e?y:g(e,t,n)}var k=t.indentUnit,x=n.multilineTagIndentFactor||1,_=n.multilineTagIndentPastTag;null==_&&(_=!0);var w=n.htmlMode?{autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0}:{autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1},S=n.alignCDATA,T,E;return{startState:function(){return{tokenize:r,state:d,indented:0,tagName:null,tagStart:null,context:null}},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;T=null;var n=t.tokenize(e,t);return(n||T)&&"comment"!=n&&(E=null,t.state=t.state(T||n,e,t),E&&(n="error"==E?n+" error":E)),n},indent:function(t,n,o){var a=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+k;if(a&&a.noIndent)return e.Pass;if(t.tokenize!=i&&t.tokenize!=r)return o?o.match(/^(\s*)/)[0].length:0;if(t.tagName)return _?t.tagStart+t.tagName.length+2:t.tagStart+k*x;if(S&&/<!\[CDATA\[/.test(n))return 0;var s=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(s&&s[1])for(;a;){if(a.tagName==s[2]){a=a.prev;break}if(!w.implicitlyClosed.hasOwnProperty(a.tagName))break;a=a.prev}else if(s)for(;a;){var l=w.contextGrabbers[a.tagName];if(!l||!l.hasOwnProperty(s[2]))break;a=a.prev}for(;a&&!a.startOfLine;)a=a.prev;return a?a.indent+k:0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:n.htmlMode?"html":"xml",helperType:n.htmlMode?"html":"xml"}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("xquery",function(){function e(e,t,n){return k=e,x=n,t}function t(e,t,n){return t.tokenize=n,n(e,t)}function n(n,s){var f=n.next(),h=!1,g=m(n);if("<"==f){if(n.match("!--",!0))return t(n,s,l);if(n.match("![CDATA",!1))return s.tokenize=c,e("tag","tag");if(n.match("?",!1))return t(n,s,u);var k=n.eat("/");n.eatSpace();for(var x="",_;_=n.eat(/[^\s\u00a0=<>\"\'\/?]/);)x+=_;return t(n,s,a(x,k))}if("{"==f)return v(s,{type:"codeblock"}),e("",null);if("}"==f)return b(s),e("",null);if(d(s))return">"==f?e("tag","tag"):"/"==f&&n.eat(">")?(b(s),e("tag","tag")):e("word","variable");if(/\d/.test(f))return n.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),e("number","atom");if("("===f&&n.eat(":"))return v(s,{type:"comment"}),t(n,s,r);if(g||'"'!==f&&"'"!==f){if("$"===f)return t(n,s,o);if(":"===f&&n.eat("="))return e("operator","keyword");if("("===f)return v(s,{type:"paren"}),e("",null);if(")"===f)return b(s),e("",null);if("["===f)return v(s,{type:"bracket"}),e("",null);if("]"===f)return b(s),e("",null);var w=y.propertyIsEnumerable(f)&&y[f];if(g&&'"'===f)for(;'"'!==n.next(););if(g&&"'"===f)for(;"'"!==n.next(););w||n.eatWhile(/[\w\$_-]/);var S=n.eat(":");!n.eat(":")&&S&&n.eatWhile(/[\w\$_-]/),n.match(/^[ \t]*\(/,!1)&&(h=!0);var T=n.current();return w=y.propertyIsEnumerable(T)&&y[T],h&&!w&&(w={type:"function_call",style:"variable def"}),p(s)?(b(s),e("word","variable",T)):(("element"==T||"attribute"==T||"axis_specifier"==w.type)&&v(s,{type:"xmlconstructor"}),w?e(w.type,w.style,T):e("word","variable",T))}return t(n,s,i(f))}function r(t,n){for(var r=!1,i=!1,o=0,a;a=t.next();){if(")"==a&&r){if(!(o>0)){b(n);break}o--}else":"==a&&i&&o++;r=":"==a,i="("==a}return e("comment","comment")}function i(t,r){return function(o,a){var s;if(h(a)&&o.current()==t)return b(a),r&&(a.tokenize=r),e("string","string");if(v(a,{type:"string",name:t,tokenize:i(t,r)}),o.match("{",!1)&&f(a))return a.tokenize=n,e("string","string");for(;s=o.next();){if(s==t){b(a),r&&(a.tokenize=r);break}if(o.match("{",!1)&&f(a))return a.tokenize=n,e("string","string")}return e("string","string")}}function o(t,r){var i=/[\w\$_-]/;if(t.eat('"')){for(;'"'!==t.next(););t.eat(":")}else t.eatWhile(i),t.match(":=",!1)||t.eat(":");return t.eatWhile(i),r.tokenize=n,e("variable","variable")}function a(t,r){return function(i,o){return i.eatSpace(),r&&i.eat(">")?(b(o),o.tokenize=n,e("tag","tag")):(i.eat("/")||v(o,{type:"tag",name:t,tokenize:n}),i.eat(">")?(o.tokenize=n,e("tag","tag")):(o.tokenize=s,e("tag","tag")))}}function s(r,o){var a=r.next();return"/"==a&&r.eat(">")?(f(o)&&b(o),d(o)&&b(o),e("tag","tag")):">"==a?(f(o)&&b(o),e("tag","tag")):"="==a?e("",null):'"'==a||"'"==a?t(r,o,i(a,s)):(f(o)||v(o,{type:"attribute",tokenize:s}),r.eat(/[a-zA-Z_:]/),r.eatWhile(/[-a-zA-Z0-9_:.]/),r.eatSpace(),(r.match(">",!1)||r.match("/",!1))&&(b(o),o.tokenize=n),e("attribute","attribute"))}function l(t,r){for(var i;i=t.next();)if("-"==i&&t.match("->",!0))return r.tokenize=n,e("comment","comment")}function c(t,r){for(var i;i=t.next();)if("]"==i&&t.match("]",!0))return r.tokenize=n,e("comment","comment")}function u(t,r){for(var i;i=t.next();)if("?"==i&&t.match(">",!0))return r.tokenize=n,e("comment","comment meta")}function d(e){return g(e,"tag")}function f(e){return g(e,"attribute")}function p(e){return g(e,"xmlconstructor")}function h(e){return g(e,"string")}function m(e){return'"'===e.current()?e.match(/^[^\"]+\"\:/,!1):"'"===e.current()?e.match(/^[^\"]+\'\:/,!1):!1}function g(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function v(e,t){e.stack.push(t)}function b(e){e.stack.pop();var t=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=t||n}var y=function(){function e(e){return{type:e,style:"keyword"}}for(var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("operator"),o={type:"atom",style:"atom"},a={type:"punctuation",style:null},s={type:"axis_specifier",style:"qualifier"},l={"if":t,"switch":t,"while":t,"for":t,"else":n,then:n,"try":n,"finally":n,"catch":n,element:r,attribute:r,let:r,"implements":r,"import":r,module:r,namespace:r,"return":r,"super":r,"this":r,"throws":r,where:r,"private":r,",":a,"null":o,"fn:false()":o,"fn:true()":o},c=["after","ancestor","ancestor-or-self","and","as","ascending","assert","attribute","before","by","case","cast","child","comment","declare","default","define","descendant","descendant-or-self","descending","document","document-node","element","else","eq","every","except","external","following","following-sibling","follows","for","function","if","import","in","instance","intersect","item","let","module","namespace","node","node","of","only","or","order","parent","precedes","preceding","preceding-sibling","processing-instruction","ref","return","returns","satisfies","schema","schema-element","self","some","sortby","stable","text","then","to","treat","typeswitch","union","variable","version","where","xquery","empty-sequence"],u=0,d=c.length;d>u;u++)l[c[u]]=e(c[u]);for(var f=["xs:string","xs:float","xs:decimal","xs:double","xs:integer","xs:boolean","xs:date","xs:dateTime","xs:time","xs:duration","xs:dayTimeDuration","xs:time","xs:yearMonthDuration","numeric","xs:hexBinary","xs:base64Binary","xs:anyURI","xs:QName","xs:byte","xs:boolean","xs:anyURI","xf:yearMonthDuration"],u=0,d=f.length;d>u;u++)l[f[u]]=o;for(var p=["eq","ne","lt","le","gt","ge",":=","=",">",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"],u=0,d=p.length;d>u;u++)l[p[u]]=i;for(var h=["self::","attribute::","child::","descendant::","descendant-or-self::","parent::","ancestor::","ancestor-or-self::","following::","preceding::","following-sibling::","preceding-sibling::"],u=0,d=h.length;d>u;u++)l[h[u]]=s;return l}(),k,x;return{startState:function(){return{tokenize:n,cc:[],stack:[]}},token:function(e,t){if(e.eatSpace())return null;var n=t.tokenize(e,t);return n},blockCommentStart:"(:",blockCommentEnd:":)"}}),e.defineMIME("application/xquery","xquery")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("yaml",function(){var e=["true","false","on","off","yes","no"],t=new RegExp("\\b(("+e.join(")|(")+"))$","i");return{token:function(e,n){var r=e.peek(),i=n.escaped;if(n.escaped=!1,"#"==r&&(0==e.pos||/\s/.test(e.string.charAt(e.pos-1))))return e.skipToEnd(),"comment";if(e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(n.literal&&e.indentation()>n.keyCol)return e.skipToEnd(),"string";if(n.literal&&(n.literal=!1),e.sol()){if(n.keyCol=0,n.pair=!1,n.pairStart=!1,e.match(/---/))return"def";if(e.match(/\.\.\./))return"def";if(e.match(/\s*-\s+/))return"meta"}if(e.match(/^(\{|\}|\[|\])/))return"{"==r?n.inlinePairs++:"}"==r?n.inlinePairs--:"["==r?n.inlineList++:n.inlineList--,"meta";if(n.inlineList>0&&!i&&","==r)return e.next(),"meta";if(n.inlinePairs>0&&!i&&","==r)return n.keyCol=0,n.pair=!1,n.pairStart=!1,e.next(),"meta";if(n.pairStart){if(e.match(/^\s*(\||\>)\s*/))return n.literal=!0,"meta";if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==n.inlinePairs&&e.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(n.inlinePairs>0&&e.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(e.match(t))return"keyword"}return!n.pair&&e.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(n.pair=!0,n.keyCol=e.indentation(),"atom"):n.pair&&e.match(/^:\s*/)?(n.pairStart=!0,"meta"):(n.pairStart=!1,n.escaped="\\"==r,e.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}}}}),e.defineMIME("text/x-yaml","yaml")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("z80",function(){var e=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,t=/^(call|j[pr]|ret[in]?)\b/i,n=/^b_?(call|jump)\b/i,r=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,i=/^(n?[zc]|p[oe]?|m)\b/i,o=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,a=/^([\da-f]+h|[0-7]+o|[01]+b|\d+)\b/i;return{startState:function(){return{context:0}},token:function(s,l){if(s.column()||(l.context=0),s.eatSpace())return null;var c;if(s.eatWhile(/\w/)){if(c=s.current(),!s.indentation())return a.test(c)?"number":null;if(1==l.context&&r.test(c))return"variable-2";if(2==l.context&&i.test(c))return"variable-3";if(e.test(c))return l.context=1,"keyword";if(t.test(c))return l.context=2,"keyword";if(n.test(c))return l.context=3,"keyword";if(o.test(c))return"error"}else{if(s.eat(";"))return s.skipToEnd(),"comment";if(s.eat('"')){for(;(c=s.next())&&'"'!=c;)"\\"==c&&s.next();return"string"}if(s.eat("'")){if(s.match(/\\?.'/))return"number"}else if(s.eat(".")||s.sol()&&s.eat("#")){if(l.context=4,s.eatWhile(/\w/))return"def"}else if(s.eat("$")){if(s.eatWhile(/[\da-f]/i))return"number"}else if(s.eat("%")){if(s.eatWhile(/[01]/))return"number"}else s.next()}return null}}}),e.defineMIME("text/x-z80","z80")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../lib/codemirror")):"function"==typeof define&&define.amd?define(["../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t){return e.line==t.line&&e.ch==t.ch}function n(e){O.push(e),O.length>50&&O.shift()}function r(e){return O.length?void(O[O.length-1]+=e):n(e)}function i(e){return O[O.length-(e?Math.min(e,1):1)]||""}function o(){return O.length>1&&O.pop(),i()}function a(e,i,o,a,s){null==s&&(s=e.getRange(i,o)),a&&N&&N.cm==e&&t(i,N.pos)&&e.isClean(N.gen)?r(s):n(s),e.replaceRange("",i,o,"+delete"),N=a?{cm:e,pos:i,gen:e.changeGeneration()}:null}function s(e,t,n){return e.findPosH(t,n,"char",!0)}function l(e,t,n){return e.findPosH(t,n,"word",!0)}function c(e,t,n){return e.findPosV(t,n,"line",e.doc.sel.goalColumn)}function u(e,t,n){return e.findPosV(t,n,"page",e.doc.sel.goalColumn)}function d(e,t,n){for(var r=t.line,i=e.getLine(r),o=/\S/.test(0>n?i.slice(0,t.ch):i.slice(t.ch)),a=e.firstLine(),s=e.lastLine();;){if(r+=n,a>r||r>s)return e.clipPos(R(r-n,0>n?0:null));i=e.getLine(r);var l=/\S/.test(i);if(l)o=!0;else if(o)return R(r,0)}}function f(e,t,n){for(var r=t.line,i=t.ch,o=e.getLine(t.line),a=!1;;){var s=o.charAt(i+(0>n?-1:0));if(s){if(a&&/[!?.]/.test(s))return R(r,i+(n>0?1:0));a||(a=/\w/.test(s)),i+=n}else{if(r==(0>n?e.firstLine():e.lastLine()))return R(r,i);if(o=e.getLine(r+n),!/\S/.test(o))return R(r,i);r+=n,i=0>n?o.length:0}}}function p(e,n,r){var i;if(e.findMatchingBracket&&(i=e.findMatchingBracket(n,!0))&&i.match&&(i.forward?1:-1)==r)return r>0?R(i.to.line,i.to.ch+1):i.to;for(var o=!0;;o=!1){var a=e.getTokenAt(n),s=R(n.line,0>r?a.start:a.end);if(!(o&&r>0&&a.end==n.ch)&&/\w/.test(a.string))return s;var l=e.findPosH(s,r,"char");if(t(s,l))return n;n=l}}function h(e,t){var n=e.state.emacsPrefix;return n?(x(e),"-"==n?-1:Number(n)):t?null:1}function m(e){var t="string"==typeof e?function(t){t.execCommand(e)}:e;return function(e){var n=h(e);t(e);for(var r=1;n>r;++r)t(e)}}function g(e,n,r){var i=e.getCursor(),o=h(e);0>o&&(r=-r,o=-o);for(var a=0;o>a;++a){var s=n(e,i,r);if(t(s,i))break;i=s}return i}function v(e,t){var n=function(n){n.extendSelection(g(n,e,t))};return n.motion=!0,n}function b(e,t,n){a(e,e.getCursor(),g(e,t,n),!0)}function y(e,t){return e.state.emacsPrefix?void("-"!=t&&(e.state.emacsPrefix+=t)):(e.state.emacsPrefix=t,e.on("keyHandled",k),void e.on("inputRead",_))}function k(e,t){e.state.emacsPrefixMap||z.hasOwnProperty(t)||x(e)}function x(e){e.state.emacsPrefix=null,e.off("keyHandled",k),e.off("inputRead",_)}function _(e,t){var n=h(e);if(n>1&&"+input"==t.origin){for(var r=t.text.join("\n"),i="",o=1;n>o;++o)i+=r;e.replaceSelection(i)}}function w(e){e.state.emacsPrefixMap=!0,e.addKeyMap(D),e.on("keyHandled",S),e.on("inputRead",S)}function S(e,t){("string"!=typeof t||!/^\d$/.test(t)&&"Ctrl-U"!=t)&&(e.removeKeyMap(D),e.state.emacsPrefixMap=!1,e.off("keyHandled",S),e.off("inputRead",S))}function T(e){e.setCursor(e.getCursor()),e.setExtending(!e.getExtending()),e.on("change",function(){e.setExtending(!1)})}function E(e){e.setExtending(!1),e.setCursor(e.getCursor())}function C(e,t,n){e.openDialog?e.openDialog(t+': <input type="text" style="width: 10em"/>',n,{bottom:!0}):n(prompt(t,""))}function M(e,t){var n=e.getCursor(),r=e.findPosH(n,1,"word");e.replaceRange(t(e.getRange(n,r)),n,r),e.setCursor(r)}function L(e){for(var t=e.getCursor(),n=t.line,r=t.ch,i=[];n>=e.firstLine();){for(var o=e.getLine(n),a=null==r?o.length:r;a>0;){var r=o.charAt(--a);if(")"==r)i.push("(");else if("]"==r)i.push("[");else if("}"==r)i.push("{");else if(/[\(\{\[]/.test(r)&&(!i.length||i.pop()!=r))return e.extendSelection(R(n,a))}--n,r=null}}function A(e){e.execCommand("clearSearch"),E(e)}function I(e){D[e]=function(t){y(t,e)},P["Ctrl-"+e]=function(t){y(t,e)},z["Ctrl-"+e]=!0}for(var R=e.Pos,O=[],N=null,z={"Alt-G":!0,"Ctrl-X":!0,"Ctrl-Q":!0,"Ctrl-U":!0},P=e.keyMap.emacs=e.normalizeKeyMap({"Ctrl-W":function(e){a(e,e.getCursor("start"),e.getCursor("end"))},"Ctrl-K":m(function(e){var t=e.getCursor(),n=e.clipPos(R(t.line)),r=e.getRange(t,n);/\S/.test(r)||(r+="\n",n=R(t.line+1,0)),a(e,t,n,!0,r)}),"Alt-W":function(e){n(e.getSelection()),E(e)},"Ctrl-Y":function(e){var t=e.getCursor();e.replaceRange(i(h(e)),t,t,"paste"),e.setSelection(t,e.getCursor())},"Alt-Y":function(e){e.replaceSelection(o(),"around","paste")},"Ctrl-Space":T,"Ctrl-Shift-2":T,"Ctrl-F":v(s,1),"Ctrl-B":v(s,-1),Right:v(s,1),Left:v(s,-1),"Ctrl-D":function(e){b(e,s,1)},Delete:function(e){b(e,s,1)},"Ctrl-H":function(e){b(e,s,-1)},Backspace:function(e){b(e,s,-1)},"Alt-F":v(l,1),"Alt-B":v(l,-1),"Alt-D":function(e){b(e,l,1)},"Alt-Backspace":function(e){b(e,l,-1)},"Ctrl-N":v(c,1),"Ctrl-P":v(c,-1),Down:v(c,1),Up:v(c,-1),"Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd",End:"goLineEnd",Home:"goLineStart","Alt-V":v(u,-1),"Ctrl-V":v(u,1),PageUp:v(u,-1),PageDown:v(u,1),"Ctrl-Up":v(d,-1),"Ctrl-Down":v(d,1),"Alt-A":v(f,-1),"Alt-E":v(f,1),"Alt-K":function(e){b(e,f,1)},"Ctrl-Alt-K":function(e){b(e,p,1)},"Ctrl-Alt-Backspace":function(e){b(e,p,-1)},"Ctrl-Alt-F":v(p,1),"Ctrl-Alt-B":v(p,-1),"Shift-Ctrl-Alt-2":function(e){e.setSelection(g(e,p,1),e.getCursor())},"Ctrl-Alt-T":function(e){var t=p(e,e.getCursor(),-1),n=p(e,t,1),r=p(e,n,1),i=p(e,r,-1);e.replaceRange(e.getRange(i,r)+e.getRange(n,i)+e.getRange(t,n),t,r)},"Ctrl-Alt-U":m(L),"Alt-Space":function(e){for(var t=e.getCursor(),n=t.ch,r=t.ch,i=e.getLine(t.line);n&&/\s/.test(i.charAt(n-1));)--n;for(;r<i.length&&/\s/.test(i.charAt(r));)++r;e.replaceRange(" ",R(t.line,n),R(t.line,r))},"Ctrl-O":m(function(e){e.replaceSelection("\n","start")}),"Ctrl-T":m(function(e){e.execCommand("transposeChars")}),"Alt-C":m(function(e){M(e,function(e){var t=e.search(/\w/);return-1==t?e:e.slice(0,t)+e.charAt(t).toUpperCase()+e.slice(t+1).toLowerCase()})}),"Alt-U":m(function(e){M(e,function(e){return e.toUpperCase()})}),"Alt-L":m(function(e){M(e,function(e){return e.toLowerCase()})}),"Alt-;":"toggleComment","Ctrl-/":m("undo"),"Shift-Ctrl--":m("undo"),"Ctrl-Z":m("undo"),"Cmd-Z":m("undo"),"Shift-Alt-,":"goDocStart","Shift-Alt-.":"goDocEnd","Ctrl-S":"findNext","Ctrl-R":"findPrev","Ctrl-G":A,"Shift-Alt-5":"replace","Alt-/":"autocomplete","Ctrl-J":"newlineAndIndent",Enter:!1,Tab:"indentAuto","Alt-G G":function(e){var t=h(e,!0);return null!=t&&t>0?e.setCursor(t-1):void C(e,"Goto line",function(t){var n;t&&!isNaN(n=Number(t))&&n==n|0&&n>0&&e.setCursor(n-1)})},"Ctrl-X Tab":function(e){e.indentSelection(h(e,!0)||e.getOption("indentUnit"))},"Ctrl-X Ctrl-X":function(e){e.setSelection(e.getCursor("head"),e.getCursor("anchor"))},"Ctrl-X Ctrl-S":"save","Ctrl-X Ctrl-W":"save","Ctrl-X S":"saveAll","Ctrl-X F":"open","Ctrl-X U":m("undo"),"Ctrl-X K":"close","Ctrl-X Delete":function(e){a(e,e.getCursor(),f(e,e.getCursor(),1),!0)},"Ctrl-Q Tab":m("insertTab"),"Ctrl-U":w}),D={"Ctrl-G":x},$=0;10>$;++$)I(String($));I("-")})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../lib/codemirror"),require("../addon/search/searchcursor"),require("../addon/edit/matchbrackets")):"function"==typeof define&&define.amd?define(["../lib/codemirror","../addon/search/searchcursor","../addon/edit/matchbrackets"],e):e(CodeMirror)}(function(e){"use strict";function t(t,n,r){if(0>r&&0==n.ch)return t.clipPos(f(n.line-1));var i=t.getLine(n.line);if(r>0&&n.ch>=i.length)return t.clipPos(f(n.line+1,0));for(var o="start",a,s=n.ch,l=0>r?0:i.length,c=0;s!=l;s+=r,c++){var u=i.charAt(0>r?s-1:s),d="_"!=u&&e.isWordChar(u)?"w":"o";if("w"==d&&u.toUpperCase()==u&&(d="W"),"start"==o)"o"!=d&&(o="in",a=d);else if("in"==o&&a!=d){if("w"==a&&"W"==d&&0>r&&s--,"W"==a&&"w"==d&&r>0){a="w";continue}break}}return f(n.line,s)}function n(e,n){e.extendSelectionsBy(function(r){return e.display.shift||e.doc.extend||r.empty()?t(e.doc,r.head,n):0>n?r.from():r.to()})}function r(e,t){e.operation(function(){for(var n=e.listSelections().length,r=[],i=-1,o=0;n>o;o++){var a=e.listSelections()[o].head;if(!(a.line<=i)){var s=f(a.line+(t?0:1),0);e.replaceRange("\n",s,null,"+insertLine"),e.indentLine(s.line,null,!0),r.push({head:s,anchor:s}),i=a.line+1}}e.setSelections(r)})}function i(t,n){for(var r=n.ch,i=r,o=t.getLine(n.line);r&&e.isWordChar(o.charAt(r-1));)--r;for(;i<o.length&&e.isWordChar(o.charAt(i));)++i;return{from:f(n.line,r),to:f(n.line,i),word:o.slice(r,i)}}function o(e){var t=e.getCursor(),n=e.scanForBracket(t,-1);if(n)for(;;){var r=e.scanForBracket(t,1);if(!r)return;if(r.ch==m.charAt(m.indexOf(n.ch)+1))return e.setSelection(f(n.pos.line,n.pos.ch+1),r.pos,!1),!0;t=f(r.pos.line,r.pos.ch+1)}}function a(e,t){for(var n=e.listSelections(),r=[],i,o=0;o<n.length;o++){var a=n[o];if(!a.empty()){for(var s=a.from().line,l=a.to().line;o<n.length-1&&n[o+1].from().line==l;)l=a[++o].to().line;r.push(s,l)}}r.length?i=!0:r.push(e.firstLine(),e.lastLine()),
|
||
e.operation(function(){for(var n=[],o=0;o<r.length;o+=2){var a=r[o],s=r[o+1],l=f(a,0),c=f(s),u=e.getRange(l,c,!1);t?u.sort():u.sort(function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),t>e?-1:e==t?0:1}),e.replaceRange(u,l,c),i&&n.push({anchor:l,head:c})}i&&e.setSelections(n,0)})}function s(t,n){t.operation(function(){for(var r=t.listSelections(),o=[],a=[],s=0;s<r.length;s++){var l=r[s];l.empty()?(o.push(s),a.push("")):a.push(n(t.getRange(l.from(),l.to())))}t.replaceSelections(a,"around","case");for(var s=o.length-1,c;s>=0;s--){var l=r[o[s]];if(!(c&&e.cmpPos(l.head,c)>0)){var u=i(t,l.head);c=u.from,t.replaceRange(n(u.word),u.from,u.to)}}})}function l(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var o=i(t,n);if(!o.word)return;n=o.from,r=o.to}return{from:n,to:r,query:t.getRange(n,r),word:o}}function c(e,t){var n=l(e);if(n){var r=n.query,i=e.getSearchCursor(r,t?n.to:n.from);(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):(i=e.getSearchCursor(r,t?f(e.firstLine(),0):e.clipPos(f(e.lastLine()))),(t?i.findNext():i.findPrevious())?e.setSelection(i.from(),i.to()):n.word&&e.setSelection(n.from,n.to))}}var u=e.keyMap.sublime={fallthrough:"default"},d=e.commands,f=e.Pos,p=e.keyMap["default"]==e.keyMap.macDefault,h=p?"Cmd-":"Ctrl-";d[u["Alt-Left"]="goSubwordLeft"]=function(e){n(e,-1)},d[u["Alt-Right"]="goSubwordRight"]=function(e){n(e,1)},d[u[h+"Up"]="scrollLineUp"]=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},d[u[h+"Down"]="scrollLineDown"]=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},d[u["Shift-"+h+"L"]="splitSelectionByLine"]=function(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)for(var i=t[r].from(),o=t[r].to(),a=i.line;a<=o.line;++a)o.line>i.line&&a==o.line&&0==o.ch||n.push({anchor:a==i.line?i:f(a,0),head:a==o.line?o:f(a)});e.setSelections(n,0)},u["Shift-Tab"]="indentLess",d[u.Esc="singleSelectionTop"]=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},d[u[h+"L"]="selectLine"]=function(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){var i=t[r];n.push({anchor:f(i.from().line,0),head:f(i.to().line+1,0)})}e.setSelections(n)},u["Shift-"+h+"K"]="deleteLine",d[u[h+"Enter"]="insertLineAfter"]=function(e){r(e,!1)},d[u["Shift-"+h+"Enter"]="insertLineBefore"]=function(e){r(e,!0)},d[u[h+"D"]="selectNextOccurrence"]=function(t){var n=t.getCursor("from"),r=t.getCursor("to"),o=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(n,r)){var a=i(t,n);if(!a.word)return;t.setSelection(a.from,a.to),o=!0}else{var s=t.getRange(n,r),l=o?new RegExp("\\b"+s+"\\b"):s,c=t.getSearchCursor(l,r);c.findNext()?t.addSelection(c.from(),c.to()):(c=t.getSearchCursor(l,f(t.firstLine(),0)),c.findNext()&&t.addSelection(c.from(),c.to()))}o&&(t.state.sublimeFindFullWord=t.doc.sel)};var m="(){}[]";d[u["Shift-"+h+"Space"]="selectScope"]=function(e){o(e)||e.execCommand("selectAll")},d[u["Shift-"+h+"M"]="selectBetweenBrackets"]=function(t){return o(t)?void 0:e.Pass},d[u[h+"M"]="goToBracket"]=function(t){t.extendSelectionsBy(function(n){var r=t.scanForBracket(n.head,1);if(r&&0!=e.cmpPos(r.pos,n.head))return r.pos;var i=t.scanForBracket(n.head,-1);return i&&f(i.pos.line,i.pos.ch+1)||n.head})};var g=p?"Cmd-Ctrl-":"Shift-Ctrl-";d[u[g+"Up"]="swapLineUp"]=function(e){for(var t=e.listSelections(),n=[],r=e.firstLine()-1,i=[],o=0;o<t.length;o++){var a=t[o],s=a.from().line-1,l=a.to().line;i.push({anchor:f(a.anchor.line-1,a.anchor.ch),head:f(a.head.line-1,a.head.ch)}),0!=a.to().ch||a.empty()||--l,s>r?n.push(s,l):n.length&&(n[n.length-1]=l),r=l}e.operation(function(){for(var t=0;t<n.length;t+=2){var r=n[t],o=n[t+1],a=e.getLine(r);e.replaceRange("",f(r,0),f(r+1,0),"+swapLine"),o>e.lastLine()?e.replaceRange("\n"+a,f(e.lastLine()),null,"+swapLine"):e.replaceRange(a+"\n",f(o,0),null,"+swapLine")}e.setSelections(i),e.scrollIntoView()})},d[u[g+"Down"]="swapLineDown"]=function(e){for(var t=e.listSelections(),n=[],r=e.lastLine()+1,i=t.length-1;i>=0;i--){var o=t[i],a=o.to().line+1,s=o.from().line;0!=o.to().ch||o.empty()||a--,r>a?n.push(a,s):n.length&&(n[n.length-1]=s),r=s}e.operation(function(){for(var t=n.length-2;t>=0;t-=2){var r=n[t],i=n[t+1],o=e.getLine(r);r==e.lastLine()?e.replaceRange("",f(r-1),f(r),"+swapLine"):e.replaceRange("",f(r,0),f(r+1,0),"+swapLine"),e.replaceRange(o+"\n",f(i,0),null,"+swapLine")}e.scrollIntoView()})},u[h+"/"]="toggleComment",d[u[h+"J"]="joinLines"]=function(e){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){for(var i=t[r],o=i.from(),a=o.line,s=i.to().line;r<t.length-1&&t[r+1].from().line==s;)s=t[++r].to().line;n.push({start:a,end:s,anchor:!i.empty()&&o})}e.operation(function(){for(var t=0,r=[],i=0;i<n.length;i++){for(var o=n[i],a=o.anchor&&f(o.anchor.line-t,o.anchor.ch),s,l=o.start;l<=o.end;l++){var c=l-t;l==o.end&&(s=f(c,e.getLine(c).length+1)),c<e.lastLine()&&(e.replaceRange(" ",f(c),f(c+1,/^\s*/.exec(e.getLine(c+1))[0].length)),++t)}r.push({anchor:a||s,head:s})}e.setSelections(r,0)})},d[u["Shift-"+h+"D"]="duplicateLine"]=function(e){e.operation(function(){for(var t=e.listSelections().length,n=0;t>n;n++){var r=e.listSelections()[n];r.empty()?e.replaceRange(e.getLine(r.head.line)+"\n",f(r.head.line,0)):e.replaceRange(e.getRange(r.from(),r.to()),r.from())}e.scrollIntoView()})},u[h+"T"]="transposeChars",d[u.F9="sortLines"]=function(e){a(e,!0)},d[u[h+"F9"]="sortLinesInsensitive"]=function(e){a(e,!1)},d[u.F2="nextBookmark"]=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},d[u["Shift-F2"]="prevBookmark"]=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},d[u[h+"F2"]="toggleBookmark"]=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=e.findMarks(i,o),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var l=0;l<n.length;l++)n[l]==a[s]&&n.splice(l--,1);break}s==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},d[u["Shift-"+h+"F2"]="clearBookmarks"]=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},d[u["Alt-F2"]="selectBookmarks"]=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},u["Alt-Q"]="wrapLines";var v=h+"K ";u[v+h+"Backspace"]="delLineLeft",d[u[v+h+"K"]="delLineRight"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange("",t[n].anchor,f(t[n].to().line),"+delete");e.scrollIntoView()})},d[u[v+h+"U"]="upcaseAtCursor"]=function(e){s(e,function(e){return e.toUpperCase()})},d[u[v+h+"L"]="downcaseAtCursor"]=function(e){s(e,function(e){return e.toLowerCase()})},d[u[v+h+"Space"]="setSublimeMark"]=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},d[u[v+h+"A"]="selectToSublimeMark"]=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},d[u[v+h+"W"]="deleteToSublimeMark"]=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},d[u[v+h+"X"]="swapWithSublimeMark"]=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},d[u[v+h+"Y"]="sublimeYank"]=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},u[v+h+"G"]="clearBookmarks",d[u[v+h+"C"]="showInCenter"]=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},d[u["Shift-Alt-Up"]="selectLinesUpward"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=0;n<t.length;n++){var r=t[n];r.head.line>e.firstLine()&&e.addSelection(f(r.head.line-1,r.head.ch))}})},d[u["Shift-Alt-Down"]="selectLinesDownward"]=function(e){e.operation(function(){for(var t=e.listSelections(),n=0;n<t.length;n++){var r=t[n];r.head.line<e.lastLine()&&e.addSelection(f(r.head.line+1,r.head.ch))}})},d[u[h+"F3"]="findUnder"]=function(e){c(e,!0)},d[u["Shift-"+h+"F3"]="findUnderPrevious"]=function(e){c(e,!1)},d[u["Alt-F3"]="findAllUnder"]=function(e){var t=l(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}},u["Shift-"+h+"["]="fold",u["Shift-"+h+"]"]="unfold",u[v+h+"0"]=u[v+h+"j"]="unfoldAll",u[h+"I"]="findIncremental",u["Shift-"+h+"I"]="findIncrementalReverse",u[h+"H"]="replace",u.F3="findNext",u["Shift-F3"]="findPrev",e.normalizeKeyMap(u)})}.call(this),function(){!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../lib/codemirror"),require("../addon/search/searchcursor"),require("../addon/dialog/dialog"),require("../addon/edit/matchbrackets.js")):"function"==typeof define&&define.amd?define(["../lib/codemirror","../addon/search/searchcursor","../addon/dialog/dialog","../addon/edit/matchbrackets"],e):e(CodeMirror)}(function(e){"use strict";var t=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"xi",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"dcc",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<character>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<character>",type:"action",action:"replayMacro"},{keys:"q<character>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0}},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<character>",type:"action",action:"setMark"},{keys:'"<character>',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"a<character>",type:"motion",motion:"textObjectManipulation"},{keys:"i<character>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],n=e.Pos,r=[16,17,18,91],i={Enter:"CR",Backspace:"BS",Delete:"Del"},o=/Mac/.test(navigator.platform),a=function(){function a(t){var n=t.keyCode;if(-1==r.indexOf(n)){var a=t.ctrlKey||t.metaKey,s=e.keyNames[n];s=i[s]||s;var l="";if(t.ctrlKey&&(l+="C-"),t.altKey&&(l+="A-"),!(o&&t.metaKey||!a&&t.shiftKey&&s.length<2))return t.shiftKey&&!/^[A-Za-z]$/.test(s)&&(l+="S-"),1==s.length&&(s=s.toLowerCase()),l+=s,l.length>1&&(l="<"+l+">"),l}}function s(t,n){var r=a(n);r&&(e.signal(t,"vim-keypress",r),e.Vim.handleKey(t,r,"user")&&e.e_stop(n))}function l(t,n){var r=n.charCode||n.keyCode;if(!(n.ctrlKey||n.metaKey||n.altKey||n.shiftKey&&32>r)){var i=String.fromCharCode(r);e.signal(t,"vim-keypress",i),e.Vim.handleKey(t,i,"user")&&e.e_stop(n)}}function c(t){t.setOption("disableInput",!0),t.setOption("showCursorWhenSelecting",!1),e.signal(t,"vim-mode-change",{mode:"normal"}),t.on("cursorActivity",Je),E(t),e.on(t.getInputField(),"paste",p(t)),t.on("keypress",l),t.on("keydown",s)}function u(t){t.setOption("disableInput",!1),t.off("cursorActivity",Je),e.off(t.getInputField(),"paste",p(t)),t.state.vim=null,t.off("keypress",l),t.off("keydown",s)}function d(t,n){this==e.keyMap.vim&&e.rmClass(t.getWrapperElement(),"cm-fat-cursor"),n&&n.attach==f||u(t,!1)}function f(t,n){this==e.keyMap.vim&&e.addClass(t.getWrapperElement(),"cm-fat-cursor"),n&&n.attach==f||c(t)}function p(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(P(e.getCursor(),0,1)),xt.enterInsertMode(e,{},t))}),t.onPasteFn}function h(e,t){for(var n=[],r=e;e+t>r;r++)n.push(String.fromCharCode(r));return n}function m(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function g(e){return/^[a-z]$/.test(e)}function v(e){return-1!="()[]{}".indexOf(e)}function b(e){return it.test(e)}function y(e){return/^[A-Z]$/.test(e)}function k(e){return/^\s*$/.test(e)}function x(e,t){for(var n=0;n<t.length;n++)if(t[n]==e)return!0;return!1}function _(e,t,n){if(void 0===t)throw Error("defaultValue is required");n||(n="string"),ft[e]={type:n,defaultValue:t},w(e,t)}function w(e,t){var n=ft[e];if(!n)throw Error("Unknown option: "+e);if("boolean"==n.type){if(t&&t!==!0)throw Error("Invalid argument: "+e+"="+t);t!==!1&&(t=!0)}n.value="boolean"==n.type?!!t:t}function S(e){var t=ft[e];if(!t)throw Error("Unknown option: "+e);return t.value}function T(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=ht()}function E(e){return e.state.vim||(e.state.vim={inputState:new M,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},fakeCursor:null,insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{}}),e.state.vim}function C(){mt={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:pt(),macroModeState:new T,lastChararacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new I({}),searchHistoryController:new R({}),exCommandHistoryController:new R({})};for(var e in ft){var t=ft[e];t.value=t.defaultValue}}function M(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=null}function L(t,n){t.state.vim.inputState=new M,e.signal(t,"vim-command-done",n)}function A(e,t,n){this.clear(),this.keyBuffer=[e||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!t,this.blockwise=!!n}function I(e){this.registers=e,this.unnamedRegister=e['"']=new A,e["."]=new A,e[":"]=new A,e["/"]=new A}function R(){this.historyBuffer=[],this.iterator,this.initialPrefix=null}function O(e,t){for(var n=[],r=0;t>r;r++)n.push(e);return n}function N(e,t,r){var i=Math.min(Math.max(e.firstLine(),t.line),e.lastLine()),o=K(e,i)-1;o=r?o+1:o;var a=Math.min(Math.max(0,t.ch),o);return n(i,a)}function z(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function P(e,t,r){return"object"==typeof t&&(r=t.ch,t=t.line),n(e.line+t,e.ch+r)}function D(e,t){return{line:t.line-e.line,ch:t.line-e.line}}function $(e,t,n,r){for(var i,o=[],a=[],s=0;s<t.length;s++){var l=t[s];"insert"==n&&"insert"!=l.context||l.context&&l.context!=n||r.operator&&"action"==l.type||!(i=q(e,l.keys))||("partial"==i&&o.push(l),"full"==i&&a.push(l))}return{partial:o.length&&o,full:a.length&&a}}function q(e,t){if("<character>"==t.slice(-11)){var n=t.length-11,r=e.slice(0,n),i=t.slice(0,n);return r==i&&e.length>n?"full":0==i.indexOf(r)?"partial":!1}return e==t?"full":0==t.indexOf(e)?"partial":!1}function j(e){var t=/^.*(<[\w\-]+>)$/.exec(e),n=t?t[1]:e.slice(-1);if(n.length>1)switch(n){case"<CR>":n="\n";break;case"<Space>":n=" "}return n}function W(e,t,n){return function(){for(var r=0;n>r;r++)t(e)}}function U(e){return n(e.line,e.ch)}function F(e,t){return e.ch==t.ch&&e.line==t.line}function B(e,t){return e.line<t.line?!0:e.line==t.line&&e.ch<t.ch?!0:!1}function H(e,t){return arguments.length>2&&(t=H.apply(void 0,Array.prototype.slice.call(arguments,1))),B(e,t)?e:t}function V(e,t){return arguments.length>2&&(t=V.apply(void 0,Array.prototype.slice.call(arguments,1))),B(e,t)?t:e}function G(e,t,n){var r=B(e,t),i=B(t,n);return r&&i}function K(e,t){return e.getLine(t).length}function Y(e){return e.split("").reverse().join("")}function Z(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function J(e){return e.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function X(e,t,r){var i=K(e,t),o=new Array(r-i+1).join(" ");e.setCursor(n(t,i)),e.replaceRange(o,e.getCursor())}function Q(e,t){var r=[],i=e.listSelections(),o=U(e.clipPos(t)),a=!F(t,o),s=e.getCursor("head"),l=te(i,s),c=F(i[l].head,i[l].anchor),u=i.length-1,d=u-l>l?u:0,f=i[d].anchor,p=Math.min(f.line,o.line),h=Math.max(f.line,o.line),m=f.ch,g=o.ch,v=i[d].head.ch-m,b=g-m;v>0&&0>=b?(m++,a||g--):0>v&&b>=0?(m--,c||g++):0>v&&-1==b&&(m--,g++);for(var y=p;h>=y;y++){var k={anchor:new n(y,m),head:new n(y,g)};r.push(k)}return l=o.line==h?r.length-1:0,e.setSelections(r),t.ch=g,f.ch=m,f}function ee(e,t,n){for(var r=[],i=0;n>i;i++){var o=P(t,i,0);r.push({anchor:o,head:o})}e.setSelections(r,0)}function te(e,t,n){for(var r=0;r<e.length;r++){var i="head"!=n&&F(e[r].anchor,t),o="anchor"!=n&&F(e[r].head,t);if(i||o)return r}return-1}function ne(e,t){var r=t.lastSelection,i=function(){var t=e.listSelections(),n=t[0],r=t[t.length-1],i=B(n.anchor,n.head)?n.anchor:n.head,o=B(r.anchor,r.head)?r.head:r.anchor;return[i,o]},o=function(){var t=e.getCursor(),i=e.getCursor(),o=r.visualBlock;if(o){var a=o.width,s=o.height;i=n(t.line+s,t.ch+a);for(var l=[],c=t.line;c<i.line;c++){var u=n(c,t.ch),d=n(c,i.ch),f={anchor:u,head:d};l.push(f)}e.setSelections(l)}else{var p=r.anchorMark.find(),h=r.headMark.find(),m=h.line-p.line,g=h.ch-p.ch;i={line:i.line+m,ch:m?i.ch:g+i.ch},r.visualLine&&(t=n(t.line,0),i=n(i.line,K(e,i.line))),e.setSelection(t,i)}return[t,i]};return t.visualMode?i():o()}function re(e,t){var n=t.sel.anchor,r=t.sel.head;t.lastPastedText&&(r=e.posFromIndex(e.indexFromPos(n)+t.lastPastedText.length),t.lastPastedText=null),t.lastSelection={anchorMark:e.setBookmark(n),headMark:e.setBookmark(r),anchor:U(n),head:U(r),visualMode:t.visualMode,visualLine:t.visualLine,visualBlock:t.visualBlock}}function ie(e,t,r){var i=e.state.vim.sel,o=i.head,a=i.anchor,s;return B(r,t)&&(s=r,r=t,t=s),B(o,a)?(o=H(t,o),a=V(a,r)):(a=H(t,a),o=V(o,r),o=P(o,0,-1),-1==o.ch&&o.line!=e.firstLine()&&(o=n(o.line-1,K(e,o.line-1)))),[a,o]}function oe(e,t,n){var r=e.state.vim;t=t||r.sel;var n=n||r.visualLine?"line":r.visualBlock?"block":"char",i=ae(e,t,n);e.setSelections(i.ranges,i.primary),Xe(e)}function ae(e,t,r,i){var o=U(t.head),a=U(t.anchor);if("char"==r){var s=i||B(t.head,t.anchor)?0:1,l=B(t.head,t.anchor)?1:0;return o=P(t.head,0,s),a=P(t.anchor,0,l),{ranges:[{anchor:a,head:o}],primary:0}}if("line"==r){if(B(t.head,t.anchor))o.ch=0,a.ch=K(e,a.line);else{a.ch=0;var c=e.lastLine();o.line>c&&(o.line=c),o.ch=K(e,o.line)}return{ranges:[{anchor:a,head:o}],primary:0}}if("block"==r){for(var u=Math.min(a.line,o.line),d=Math.min(a.ch,o.ch),f=Math.max(a.line,o.line),p=Math.max(a.ch,o.ch)+1,h=f-u+1,m=o.line==u?0:h-1,g=[],v=0;h>v;v++)g.push({anchor:n(u+v,d),head:n(u+v,p)});return{ranges:g,primary:m}}}function se(e){var t=e.getCursor("head");return 1==e.getSelection().length&&(t=H(t,e.getCursor("anchor"))),t}function le(t,n){var r=t.state.vim;n!==!1&&t.setCursor(N(t,r.sel.head)),re(t,r),r.visualMode=!1,r.visualLine=!1,r.visualBlock=!1,e.signal(t,"vim-mode-change",{mode:"normal"}),r.fakeCursor&&r.fakeCursor.clear()}function ce(e,t,n){var r=e.getRange(t,n);if(/\n\s*$/.test(r)){var i=r.split("\n");i.pop();for(var o,o=i.pop();i.length>0&&o&&k(o);o=i.pop())n.line--,n.ch=0;o?(n.line--,n.ch=K(e,n.line)):n.ch=0}}function ue(e,t,n){t.ch=0,n.ch=0,n.line++}function de(e){if(!e)return 0;var t=e.search(/\S/);return-1==t?e.length:t}function fe(e,t,r,i,o){var a=se(e),s=e.getLine(a.line),l=a.ch,c=s.substring(l),u;if(u=c.search(o?/\w/:/\S/),-1==u)return null;l+=u,c=s.substring(l);var d=s.substring(0,l),f;f=i?/^\S+/:/\w/.test(s.charAt(l))?/^\w+/:/^[^\w\s]+/;var p=f.exec(c),h=l,m=l+p[0].length,g=Y(d),v=f.exec(g);if(v&&(h-=v[0].length),t){var b=s.substring(m),y=b.match(/^\s*/)[0].length;if(y>0)m+=y;else{var k=g.length-h,x=g.substring(k),_=x.match(/^\s*/)[0].length;h-=_}}return{start:n(a.line,h),end:n(a.line,m)}}function pe(e,t,n){F(t,n)||mt.jumpList.add(e,t,n)}function he(e,t){mt.lastChararacterSearch.increment=e,mt.lastChararacterSearch.forward=t.forward,mt.lastChararacterSearch.selectedCharacter=t.selectedCharacter}function me(e,t,r,i){var o=U(e.getCursor()),a=r?1:-1,s=r?e.lineCount():-1,l=o.ch,c=o.line,u=e.getLine(c),d={lineText:u,nextCh:u.charAt(l),lastCh:null,index:l,symb:i,reverseSymb:(r?{")":"(","}":"{"}:{"(":")","{":"}"})[i],forward:r,depth:0,curMoveThrough:!1},f=_t[i];if(!f)return o;var p=wt[f].init,h=wt[f].isComplete;for(p&&p(d);c!==s&&t;){if(d.index+=a,d.nextCh=d.lineText.charAt(d.index),!d.nextCh){if(c+=a,d.lineText=e.getLine(c)||"",a>0)d.index=0;else{var m=d.lineText.length;d.index=m>0?m-1:0}d.nextCh=d.lineText.charAt(d.index)}h(d)&&(o.line=c,o.ch=d.index,t--)}return d.nextCh||d.curMoveThrough?n(c,d.index):o}function ge(e,t,n,r,i){var o=t.line,a=t.ch,s=e.getLine(o),l=n?1:-1,c=r?at:ot;if(i&&""==s){if(o+=l,s=e.getLine(o),!m(e,o))return null;a=n?0:s.length}for(;;){if(i&&""==s)return{from:0,to:0,line:o};for(var u=l>0?s.length:-1,d=u,f=u;a!=u;){for(var p=!1,h=0;h<c.length&&!p;++h)if(c[h].test(s.charAt(a))){for(d=a;a!=u&&c[h].test(s.charAt(a));)a+=l;if(f=a,p=d!=f,d==t.ch&&o==t.line&&f==d+l)continue;return{from:Math.min(d,f+1),to:Math.max(d,f),line:o}}p||(a+=l)}if(o+=l,!m(e,o))return null;s=e.getLine(o),
|
||
a=l>0?0:s.length}throw new Error("The impossible happened.")}function ve(e,t,r,i,o,a){var s=U(t),l=[];(i&&!o||!i&&o)&&r++;for(var c=!(i&&o),u=0;r>u;u++){var d=ge(e,t,i,a,c);if(!d){var f=K(e,e.lastLine());l.push(i?{line:e.lastLine(),from:f,to:f}:{line:0,from:0,to:0});break}l.push(d),t=n(d.line,i?d.to-1:d.from)}var p=l.length!=r,h=l[0],m=l.pop();return i&&!o?(p||h.from==s.ch&&h.line==s.line||(m=l.pop()),n(m.line,m.from)):i&&o?n(m.line,m.to-1):!i&&o?(p||h.to==s.ch&&h.line==s.line||(m=l.pop()),n(m.line,m.to)):n(m.line,m.from)}function be(e,t,r,i){for(var o=e.getCursor(),a=o.ch,s,l=0;t>l;l++){var c=e.getLine(o.line);if(s=xe(a,c,i,r,!0),-1==s)return null;a=s}return n(e.getCursor().line,s)}function ye(e,t){var r=e.getCursor().line;return N(e,n(r,t-1))}function ke(e,t,n,r){x(n,ut)&&(t.marks[n]&&t.marks[n].clear(),t.marks[n]=e.setBookmark(r))}function xe(e,t,n,r,i){var o;return r?(o=t.indexOf(n,e+1),-1==o||i||(o-=1)):(o=t.lastIndexOf(n,e-1),-1==o||i||(o+=1)),o}function _e(e,t,r,i){var o=t,a,s,l={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/}[r],c={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{"}[r],u=e.getLine(o.line).charAt(o.ch),d=u===c?1:0;if(a=e.scanForBracket(n(o.line,o.ch+d),-1,null,{bracketRegex:l}),s=e.scanForBracket(n(o.line,o.ch+d),1,null,{bracketRegex:l}),!a||!s)return{start:o,end:o};if(a=a.pos,s=s.pos,a.line==s.line&&a.ch>s.ch||a.line>s.line){var f=a;a=s,s=f}return i?s.ch+=1:a.ch+=1,{start:a,end:s}}function we(e,t,r,i){var o=U(t),a=e.getLine(o.line),s=a.split(""),l,c,u,d,f=s.indexOf(r);if(o.ch<f?o.ch=f:f<o.ch&&s[o.ch]==r&&(c=o.ch,--o.ch),s[o.ch]!=r||c)for(u=o.ch;u>-1&&!l;u--)s[u]==r&&(l=u+1);else l=o.ch+1;if(l&&!c)for(u=l,d=s.length;d>u&&!c;u++)s[u]==r&&(c=u);return l&&c?(i&&(--l,++c),{start:n(o.line,l),end:n(o.line,c)}):{start:o,end:o}}function Se(){}function Te(e){var t=e.state.vim;return t.searchState_||(t.searchState_=new Se)}function Ee(e,t,n,r,i){e.openDialog?e.openDialog(t,r,{bottom:!0,value:i.value,onKeyDown:i.onKeyDown,onKeyUp:i.onKeyUp}):r(prompt(n,""))}function Ce(e){var t=Me(e)||[];if(!t.length)return[];var n=[];if(0===t[0]){for(var r=0;r<t.length;r++)"number"==typeof t[r]&&n.push(e.substring(t[r]+1,t[r+1]));return n}}function Me(e){for(var t=!1,n=[],r=0;r<e.length;r++){var i=e.charAt(r);t||"/"!=i||n.push(r),t=!t&&"\\"==i}return n}function Le(e){for(var t="|(){",n="}",r=!1,i=[],o=-1;o<e.length;o++){var a=e.charAt(o)||"",s=e.charAt(o+1)||"",l=s&&-1!=t.indexOf(s);r?("\\"===a&&l||i.push(a),r=!1):"\\"===a?(r=!0,s&&-1!=n.indexOf(s)&&(l=!0),l&&"\\"!==s||i.push(a)):(i.push(a),l&&"\\"!==s&&i.push("\\"))}return i.join("")}function Ae(e){for(var t=!1,n=[],r=-1;r<e.length;r++){var i=e.charAt(r)||"",o=e.charAt(r+1)||"";t?(n.push(i),t=!1):"\\"===i?(t=!0,b(o)||"$"===o?n.push("$"):"/"!==o&&"\\"!==o&&n.push("\\")):("$"===i&&n.push("$"),n.push(i),"/"===o&&n.push("\\"))}return n.join("")}function Ie(t){for(var n=new e.StringStream(t),r=[];!n.eol();){for(;n.peek()&&"\\"!=n.peek();)r.push(n.next());r.push(n.match("\\/",!0)?"/":n.match("\\\\",!0)?"\\":n.next())}return r.join("")}function Re(e,t,n){var r=mt.registerController.getRegister("/");if(r.setText(e),e instanceof RegExp)return e;var i=Me(e),o,a;if(i.length){o=e.substring(0,i[0]);var s=e.substring(i[0]);a=-1!=s.indexOf("i")}else o=e;if(!o)return null;S("pcre")||(o=Le(o)),n&&(t=/^[^A-Z]*$/.test(o));var l=new RegExp(o,t||a?"i":void 0);return l}function Oe(e,t){e.openNotification?e.openNotification('<span style="color: red">'+t+"</span>",{bottom:!0,duration:5e3}):alert(t)}function Ne(e,t){var n="";return e&&(n+='<span style="font-family: monospace">'+e+"</span>"),n+='<input type="text"/> <span style="color: #888">',t&&(n+='<span style="color: #888">',n+=t,n+="</span>"),n}function ze(e,t){var n=(t.prefix||"")+" "+(t.desc||""),r=Ne(t.prefix,t.desc);Ee(e,r,n,t.onClose,t)}function Pe(e,t){if(e instanceof RegExp&&t instanceof RegExp){for(var n=["global","multiline","ignoreCase","source"],r=0;r<n.length;r++){var i=n[r];if(e[i]!==t[i])return!1}return!0}return!1}function De(e,t,n,r){if(t){var i=Te(e),o=Re(t,!!n,!!r);if(o)return qe(e,o),Pe(o,i.getQuery())?o:(i.setQuery(o),o)}}function $e(e){if("^"==e.source.charAt(0))var t=!0;return{token:function(n){if(t&&!n.sol())return void n.skipToEnd();var r=n.match(e,!1);if(r)return 0==r[0].length?(n.next(),"searching"):n.sol()||(n.backUp(1),e.exec(n.next()+r[0]))?(n.match(e),"searching"):(n.next(),null);for(;!n.eol()&&(n.next(),!n.match(e,!1)););},query:e}}function qe(e,t){var n=Te(e).getOverlay();n&&t==n.query||(n&&e.removeOverlay(n),n=$e(t),e.addOverlay(n),Te(e).setOverlay(n))}function je(e,t,r,i){return void 0===i&&(i=1),e.operation(function(){for(var o=e.getCursor(),a=e.getSearchCursor(r,o),s=0;i>s;s++){var l=a.find(t);if(0==s&&l&&F(a.from(),o)&&(l=a.find(t)),!l&&(a=e.getSearchCursor(r,t?n(e.lastLine()):n(e.firstLine(),0)),!a.find(t)))return}return a.from()})}function We(e){e.removeOverlay(Te(e).getOverlay()),Te(e).setOverlay(null)}function Ue(e,t,n){return"number"!=typeof e&&(e=e.line),t instanceof Array?x(e,t):n?e>=t&&n>=e:e==t}function Fe(e){var t=e.getScrollInfo(),n=6,r=10,i=e.coordsChar({left:0,top:n+t.top},"local"),o=t.clientHeight-r+t.top,a=e.coordsChar({left:0,top:o},"local");return{top:i.line,bottom:a.line}}function Be(t,n,r,i,o,a,s,l,c){function u(){t.operation(function(){for(;!m;)d(),f();p()})}function d(){var e=t.getRange(a.from(),a.to()),n=e.replace(s,l);a.replace(n)}function f(){for(var e;e=a.findNext()&&Ue(a.from(),i,o);)if(r||!g||a.from().line!=g.line)return t.scrollIntoView(a.from(),30),t.setSelection(a.from(),a.to()),g=a.from(),void(m=!1);m=!0}function p(e){if(e&&e(),t.focus(),g){t.setCursor(g);var n=t.state.vim;n.exMode=!1,n.lastHPos=n.lastHSPos=g.ch}c&&c()}function h(n,r,i){e.e_stop(n);var o=e.keyName(n);switch(o){case"Y":d(),f();break;case"N":f();break;case"A":var a=c;c=void 0,t.operation(u),c=a;break;case"L":d();case"Q":case"Esc":case"Ctrl-C":case"Ctrl-[":p(i)}return m&&p(i),!0}t.state.vim.exMode=!0;var m=!1,g=a.from();return f(),m?void Oe(t,"No matches for "+s.source):n?void ze(t,{prefix:"replace with <strong>"+l+"</strong> (y/n/a/q/l)",onKeyDown:h}):(u(),void(c&&c()))}function He(t){var n=t.state.vim,r=mt.macroModeState,i=mt.registerController.getRegister("."),o=r.isPlaying,a=r.lastInsertModeChanges,s=[];if(!o){for(var l=a.inVisualBlock?n.lastSelection.visualBlock.height:1,c=a.changes,s=[],u=0;u<c.length;)s.push(c[u]),c[u]instanceof et?u++:u+=l;a.changes=s,t.off("change",Ze),e.off(t.getInputField(),"keydown",tt)}!o&&n.insertModeRepeat>1&&(nt(t,n,n.insertModeRepeat-1,!0),n.lastEditInputState.repeatOverride=n.insertModeRepeat),delete n.insertModeRepeat,n.insertMode=!1,t.setCursor(t.getCursor().line,t.getCursor().ch-1),t.setOption("keyMap","vim"),t.setOption("disableInput",!0),t.toggleOverwrite(!1),i.setText(a.changes.join("")),e.signal(t,"vim-mode-change",{mode:"normal"}),r.isRecording&&Ke(r)}function Ve(t,n,r,i){var o=mt.registerController.getRegister(i),a=o.keyBuffer,s=0;r.isPlaying=!0,r.replaySearchQueries=o.searchQueries.slice(0);for(var l=0;l<a.length;l++)for(var c=a[l],u,d;c;)if(u=/<\w+-.+?>|<\w+>|./.exec(c),d=u[0],c=c.substring(u.index+d.length),e.Vim.handleKey(t,d,"macro"),n.insertMode){var f=o.insertModeChanges[s++].changes;mt.macroModeState.lastInsertModeChanges.changes=f,rt(t,f,1),He(t)}r.isPlaying=!1}function Ge(e,t){if(!e.isPlaying){var n=e.latestRegister,r=mt.registerController.getRegister(n);r&&r.pushText(t)}}function Ke(e){if(!e.isPlaying){var t=e.latestRegister,n=mt.registerController.getRegister(t);n&&n.pushInsertModeChanges(e.lastInsertModeChanges)}}function Ye(e,t){if(!e.isPlaying){var n=e.latestRegister,r=mt.registerController.getRegister(n);r&&r.pushSearchQuery(t)}}function Ze(e,t){var n=mt.macroModeState,r=n.lastInsertModeChanges;if(!n.isPlaying)for(;t;){if(r.expectCursorActivityForChange=!0,"+input"==t.origin||"paste"==t.origin||void 0===t.origin){var i=t.text.join("\n");r.changes.push(i)}t=t.next}}function Je(e){var t=e.state.vim;if(t.insertMode){var n=mt.macroModeState;if(n.isPlaying)return;var r=n.lastInsertModeChanges;r.expectCursorActivityForChange?r.expectCursorActivityForChange=!1:r.changes=[]}else e.curOp.isVimOp||Qe(e,t);t.visualMode&&Xe(e)}function Xe(e){var t=e.state.vim,n=U(t.sel.head),r=P(n,0,1);t.fakeCursor&&t.fakeCursor.clear(),t.fakeCursor=e.markText(n,r,{className:"cm-animate-fat-cursor"})}function Qe(t,n){var r=t.getCursor("anchor"),i=t.getCursor("head");if(n.visualMode&&F(i,r)&&K(t,i.line)>i.ch?le(t,!1):n.visualMode||n.insertMode||!t.somethingSelected()||(n.visualMode=!0,n.visualLine=!1,e.signal(t,"vim-mode-change",{mode:"visual"})),n.visualMode){var o=B(i,r)?0:-1,a=B(i,r)?-1:0;i=P(i,0,o),r=P(r,0,a),n.sel={anchor:r,head:i},ke(t,n,"<",H(i,r)),ke(t,n,">",V(i,r))}else n.insertMode||(n.lastHPos=t.getCursor().ch)}function et(e){this.keyName=e}function tt(t){function n(){return i.changes.push(new et(o)),!0}var r=mt.macroModeState,i=r.lastInsertModeChanges,o=e.keyName(t);(-1!=o.indexOf("Delete")||-1!=o.indexOf("Backspace"))&&e.lookupKey(o,"vim-insert",n)}function nt(e,t,n,r){function i(){s?bt.processAction(e,t,t.lastEditActionCommand):bt.evalInput(e,t)}function o(n){if(a.lastInsertModeChanges.changes.length>0){n=t.lastEditActionCommand?n:1;var r=a.lastInsertModeChanges;rt(e,r.changes,n)}}var a=mt.macroModeState;a.isPlaying=!0;var s=!!t.lastEditActionCommand,l=t.inputState;if(t.inputState=t.lastEditInputState,s&&t.lastEditActionCommand.interlaceInsertRepeat)for(var c=0;n>c;c++)i(),o(1);else r||i(),o(n);t.inputState=l,t.insertMode&&!r&&He(e),a.isPlaying=!1}function rt(t,n,r){function i(n){return"string"==typeof n?e.commands[n](t):n(t),!0}var o=t.getCursor("head"),a=mt.macroModeState.lastInsertModeChanges.inVisualBlock;if(a){var s=t.state.vim,l=s.lastSelection,c=D(l.anchor,l.head);ee(t,o,c.line+1),r=t.listSelections().length,t.setCursor(o)}for(var u=0;r>u;u++){a&&t.setCursor(P(o,u,0));for(var d=0;d<n.length;d++){var f=n[d];if(f instanceof et)e.lookupKey(f.keyName,"vim-insert",i);else{var p=t.getCursor();t.replaceRange(f,p,p)}}}a&&t.setCursor(P(o,0,1))}e.defineOption("vimMode",!1,function(t,n,r){n&&"vim"!=t.getOption("keyMap")?t.setOption("keyMap","vim"):!n&&r!=e.Init&&/^vim/.test(t.getOption("keyMap"))&&t.setOption("keyMap","default")});var it=/[\d]/,ot=[/\w/,/[^\w\s]/],at=[/\S/],st=h(65,26),lt=h(97,26),ct=h(48,10),ut=[].concat(st,lt,ct,["<",">"]),dt=[].concat(st,lt,ct,["-",'"',".",":","/"]),ft={},pt=function(){function e(e,t,s){function l(t){var i=++r%n,o=a[i];o&&o.clear(),a[i]=e.setBookmark(t)}var c=r%n,u=a[c];if(u){var d=u.find();d&&!F(d,t)&&l(t)}else l(t);l(s),i=r,o=r-n+1,0>o&&(o=0)}function t(e,t){r+=t,r>i?r=i:o>r&&(r=o);var s=a[(n+r)%n];if(s&&!s.find()){var l=t>0?1:-1,c,u=e.getCursor();do if(r+=l,s=a[(n+r)%n],s&&(c=s.find())&&!F(u,c))break;while(i>r&&r>o)}return s}var n=100,r=-1,i=0,o=0,a=new Array(n);return{cachedCursor:void 0,add:e,move:t}},ht=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};T.prototype={exitMacroRecordMode:function(){var e=mt.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=void 0,e.isRecording=!1},enterMacroRecordMode:function(e,t){var n=mt.registerController.getRegister(t);n&&(n.clear(),this.latestRegister=t,e.openDialog&&(this.onRecordingDone=e.openDialog("(recording)["+t+"]",null,{bottom:!0})),this.isRecording=!0)}};var mt,gt,vt={buildKeyMap:function(){},getRegisterController:function(){return mt.registerController},resetVimGlobalState_:C,getVimGlobalState_:function(){return mt},maybeInitVimState_:E,InsertModeKey:et,map:function(e,t,n){Mt.map(e,t,n)},setOption:w,getOption:S,defineOption:_,defineEx:function(e,t,n){if(0!==e.indexOf(t))throw new Error('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered');Ct[e]=n,Mt.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(n,r,i){function o(){var e=mt.macroModeState;if(e.isRecording){if("q"==r)return e.exitMacroRecordMode(),L(n),!0;"mapping"!=i&&Ge(e,r)}}function a(){return"<Esc>"==r?(L(n),u.visualMode?le(n):u.insertMode&&He(n),!0):void 0}function s(t){for(var i;t;)i=/<\w+-.+?>|<\w+>|./.exec(t),r=i[0],t=t.substring(i.index+r.length),e.Vim.handleKey(n,r,"mapping")}function l(){if(a())return!0;for(var e=u.inputState.keyBuffer=u.inputState.keyBuffer+r,i=1==r.length,o=bt.matchCommand(e,t,u.inputState,"insert");e.length>1&&"full"!=o.type;){var e=u.inputState.keyBuffer=e.slice(1),l=bt.matchCommand(e,t,u.inputState,"insert");"none"!=l.type&&(o=l)}if("none"==o.type)return L(n),!1;if("partial"==o.type)return gt&&window.clearTimeout(gt),gt=window.setTimeout(function(){u.insertMode&&u.inputState.keyBuffer&&L(n)},S("insertModeEscKeysTimeout")),!i;if(gt&&window.clearTimeout(gt),i){var c=n.getCursor();n.replaceRange("",P(c,0,-(e.length-1)),c,"+input")}L(n);var d=o.command;return"keyToKey"==d.type?s(d.toKeys):bt.processCommand(n,u,d),!0}function c(){if(o()||a())return!0;var e=u.inputState.keyBuffer=u.inputState.keyBuffer+r;if(/^[1-9]\d*$/.test(e))return!0;var i=/^(\d*)(.*)$/.exec(e);if(!i)return L(n),!1;var l=u.visualMode?"visual":"normal",c=bt.matchCommand(i[2]||i[1],t,u.inputState,l);if("none"==c.type)return L(n),!1;if("partial"==c.type)return!0;u.inputState.keyBuffer="";var d=c.command,i=/^(\d*)(.*)$/.exec(e);return i[1]&&"0"!=i[1]&&u.inputState.pushRepeatDigit(i[1]),"keyToKey"==d.type?s(d.toKeys):bt.processCommand(n,u,d),!0}var u=E(n);return n.operation(function(){n.curOp.isVimOp=!0;try{return u.insertMode?l():c()}catch(e){throw n.state.vim=void 0,E(n),e}})},handleEx:function(e,t){Mt.processCommand(e,t)}};M.prototype.pushRepeatDigit=function(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)},M.prototype.getRepeat=function(){var e=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(e=1,this.prefixRepeat.length>0&&(e*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(e*=parseInt(this.motionRepeat.join(""),10))),e},A.prototype={setText:function(e,t,n){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!n},pushText:function(e,t){t&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(e)},pushInsertModeChanges:function(e){this.insertModeChanges.push(ht(e))},pushSearchQuery:function(e){this.searchQueries.push(e)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}},I.prototype={pushText:function(e,t,n,r,i){r&&"\n"==n.charAt(0)&&(n=n.slice(1)+"\n"),r&&"\n"!==n.charAt(n.length-1)&&(n+="\n");var o=this.isValidRegister(e)?this.getRegister(e):null;if(!o){switch(t){case"yank":this.registers[0]=new A(n,r,i);break;case"delete":case"change":-1==n.indexOf("\n")?this.registers["-"]=new A(n,r):(this.shiftNumericRegisters_(),this.registers[1]=new A(n,r))}return void this.unnamedRegister.setText(n,r,i)}var a=y(e);a?o.pushText(n,r):o.setText(n,r,i),this.unnamedRegister.setText(o.toString(),r)},getRegister:function(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers[e]||(this.registers[e]=new A),this.registers[e]):this.unnamedRegister},isValidRegister:function(e){return e&&x(e,dt)},shiftNumericRegisters_:function(){for(var e=9;e>=2;e--)this.registers[e]=this.getRegister(""+(e-1))}},R.prototype={nextMatch:function(e,t){var n=this.historyBuffer,r=t?-1:1;null===this.initialPrefix&&(this.initialPrefix=e);for(var i=this.iterator+r;t?i>=0:i<n.length;i+=r)for(var o=n[i],a=0;a<=o.length;a++)if(this.initialPrefix==o.substring(0,a))return this.iterator=i,o;return i>=n.length?(this.iterator=n.length,this.initialPrefix):0>i?e:void 0},pushInput:function(e){var t=this.historyBuffer.indexOf(e);t>-1&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var bt={matchCommand:function(e,t,n,r){var i=$(e,t,r,n);if(!i.full&&!i.partial)return{type:"none"};if(!i.full&&i.partial)return{type:"partial"};for(var o,a=0;a<i.full.length;a++){var s=i.full[a];o||(o=s)}return"<character>"==o.keys.slice(-11)&&(n.selectedCharacter=j(e)),{type:"full",command:o}},processCommand:function(e,t,n){switch(t.inputState.repeatOverride=n.repeatOverride,n.type){case"motion":this.processMotion(e,t,n);break;case"operator":this.processOperator(e,t,n);break;case"operatorMotion":this.processOperatorMotion(e,t,n);break;case"action":this.processAction(e,t,n);break;case"search":this.processSearch(e,t,n),L(e);break;case"ex":case"keyToEx":this.processEx(e,t,n),L(e)}},processMotion:function(e,t,n){t.inputState.motion=n.motion,t.inputState.motionArgs=z(n.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,n){var r=t.inputState;if(r.operator){if(r.operator==n.operator)return r.motion="expandToLine",r.motionArgs={linewise:!0},void this.evalInput(e,t);L(e)}r.operator=n.operator,r.operatorArgs=z(n.operatorArgs),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,n){var r=t.visualMode,i=z(n.operatorMotionArgs);i&&r&&i.visualLine&&(t.visualLine=!0),this.processOperator(e,t,n),r||this.processMotion(e,t,n)},processAction:function(e,t,n){var r=t.inputState,i=r.getRepeat(),o=!!i,a=z(n.actionArgs)||{};r.selectedCharacter&&(a.selectedCharacter=r.selectedCharacter),n.operator&&this.processOperator(e,t,n),n.motion&&this.processMotion(e,t,n),(n.motion||n.operator)&&this.evalInput(e,t),a.repeat=i||1,a.repeatIsExplicit=o,a.registerName=r.registerName,L(e),t.lastMotion=null,n.isEdit&&this.recordLastEdit(t,r,n),xt[n.action](e,a,t)},processSearch:function(t,n,r){function i(e,i,o){mt.searchHistoryController.pushInput(e),mt.searchHistoryController.reset();try{De(t,e,i,o)}catch(a){return void Oe(t,"Invalid regex: "+e)}bt.processMotion(t,n,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:r.searchArgs.toJumplist}})}function o(e){t.scrollTo(f.left,f.top),i(e,!0,!0);var n=mt.macroModeState;n.isRecording&&Ye(n,e)}function a(n,r,i){var o=e.keyName(n),a;"Up"==o||"Down"==o?(a="Up"==o?!0:!1,r=mt.searchHistoryController.nextMatch(r,a)||"",i(r)):"Left"!=o&&"Right"!=o&&"Ctrl"!=o&&"Alt"!=o&&"Shift"!=o&&mt.searchHistoryController.reset();var s;try{s=De(t,r,!0,!0)}catch(n){}s?t.scrollIntoView(je(t,!l,s),30):(We(t),t.scrollTo(f.left,f.top))}function s(n,r,i){var o=e.keyName(n);("Esc"==o||"Ctrl-C"==o||"Ctrl-["==o)&&(mt.searchHistoryController.pushInput(r),mt.searchHistoryController.reset(),De(t,d),We(t),t.scrollTo(f.left,f.top),e.e_stop(n),i(),t.focus())}if(t.getSearchCursor){var l=r.searchArgs.forward,c=r.searchArgs.wholeWordOnly;Te(t).setReversed(!l);var u=l?"/":"?",d=Te(t).getQuery(),f=t.getScrollInfo();switch(r.searchArgs.querySrc){case"prompt":var p=mt.macroModeState;if(p.isPlaying){var h=p.replaySearchQueries.shift();i(h,!0,!1)}else ze(t,{onClose:o,prefix:u,desc:St,onKeyUp:a,onKeyDown:s});break;case"wordUnderCursor":var m=fe(t,!1,!0,!1,!0),g=!0;if(m||(m=fe(t,!1,!0,!1,!1),g=!1),!m)return;var h=t.getLine(m.start.line).substring(m.start.ch,m.end.ch);h=g&&c?"\\b"+h+"\\b":J(h),mt.jumpList.cachedCursor=t.getCursor(),t.setCursor(m.start),i(h,!0,!1)}}},processEx:function(t,n,r){function i(e){mt.exCommandHistoryController.pushInput(e),mt.exCommandHistoryController.reset(),Mt.processCommand(t,e)}function o(n,r,i){var o=e.keyName(n),a;("Esc"==o||"Ctrl-C"==o||"Ctrl-["==o)&&(mt.exCommandHistoryController.pushInput(r),mt.exCommandHistoryController.reset(),e.e_stop(n),i(),t.focus()),"Up"==o||"Down"==o?(a="Up"==o?!0:!1,r=mt.exCommandHistoryController.nextMatch(r,a)||"",i(r)):"Left"!=o&&"Right"!=o&&"Ctrl"!=o&&"Alt"!=o&&"Shift"!=o&&mt.exCommandHistoryController.reset()}"keyToEx"==r.type?Mt.processCommand(t,r.exArgs.input):n.visualMode?ze(t,{onClose:i,prefix:":",value:"'<,'>",onKeyDown:o}):ze(t,{onClose:i,prefix:":",onKeyDown:o})},evalInput:function(e,t){var r=t.inputState,i=r.motion,o=r.motionArgs||{},a=r.operator,s=r.operatorArgs||{},l=r.registerName,c=t.sel,u=U(t.visualMode?c.head:e.getCursor("head")),d=U(t.visualMode?c.anchor:e.getCursor("anchor")),f=U(u),p=U(d),h,m,g;if(a&&this.recordLastEdit(t,r),g=void 0!==r.repeatOverride?r.repeatOverride:r.getRepeat(),g>0&&o.explicitRepeat?o.repeatIsExplicit=!0:(o.noRepeat||!o.explicitRepeat&&0===g)&&(g=1,o.repeatIsExplicit=!1),r.selectedCharacter&&(o.selectedCharacter=s.selectedCharacter=r.selectedCharacter),o.repeat=g,L(e),i){var v=yt[i](e,u,o,t);if(t.lastMotion=yt[i],!v)return;if(o.toJumplist){var b=mt.jumpList,y=b.cachedCursor;y?(pe(e,y,v),delete b.cachedCursor):pe(e,u,v)}v instanceof Array?(m=v[0],h=v[1]):h=v,h||(h=U(u)),t.visualMode?(h=N(e,h,t.visualBlock),m&&(m=N(e,m,!0)),m=m||p,c.anchor=m,c.head=h,oe(e),ke(e,t,"<",B(m,h)?m:h),ke(e,t,">",B(m,h)?h:m)):a||(h=N(e,h),e.setCursor(h.line,h.ch))}if(a){if(s.lastSel){m=p;var k=s.lastSel,x=Math.abs(k.head.line-k.anchor.line),_=Math.abs(k.head.ch-k.anchor.ch);h=k.visualLine?n(p.line+x,p.ch):k.visualBlock?n(p.line+x,p.ch+_):k.head.line==k.anchor.line?n(p.line,p.ch+_):n(p.line+x,p.ch),t.visualMode=!0,t.visualLine=k.visualLine,t.visualBlock=k.visualBlock,c=t.sel={anchor:m,head:h},oe(e)}else t.visualMode&&(s.lastSel={anchor:U(c.anchor),head:U(c.head),visualBlock:t.visualBlock,visualLine:t.visualLine});var w,S,T,E,C;if(t.visualMode){if(w=H(c.head,c.anchor),S=V(c.head,c.anchor),T=t.visualLine||s.linewise,E=t.visualBlock?"block":T?"line":"char",C=ae(e,{anchor:w,head:S},E),T){var M=C.ranges;if("block"==E)for(var A=0;A<M.length;A++)M[A].head.ch=K(e,M[A].head.line);else"line"==E&&(M[0].head=n(M[0].head.line+1,0))}}else{if(w=U(m||p),S=U(h||f),B(S,w)){var I=w;w=S,S=I}T=o.linewise||s.linewise,T?ue(e,w,S):o.forward&&ce(e,w,S),E="char";var R=!o.inclusive||T;C=ae(e,{anchor:w,head:S},E,R)}e.setSelections(C.ranges,C.primary),t.lastMotion=null,s.repeat=g,s.registerName=l,s.linewise=T;var O=kt[a](e,s,C.ranges,p,h);t.visualMode&&le(e),O&&e.setCursor(O)}},recordLastEdit:function(e,t,n){var r=mt.macroModeState;r.isPlaying||(e.lastEditInputState=t,e.lastEditActionCommand=n,r.lastInsertModeChanges.changes=[],r.lastInsertModeChanges.expectCursorActivityForChange=!1)}},yt={moveToTopLine:function(e,t,r){var i=Fe(e).top+r.repeat-1;return n(i,de(e.getLine(i)))},moveToMiddleLine:function(e){var t=Fe(e),r=Math.floor(.5*(t.top+t.bottom));return n(r,de(e.getLine(r)))},moveToBottomLine:function(e,t,r){var i=Fe(e).bottom-r.repeat+1;return n(i,de(e.getLine(i)))},expandToLine:function(e,t,r){var i=t;return n(i.line+r.repeat-1,1/0)},findNext:function(e,t,n){var r=Te(e),i=r.getQuery();if(i){var o=!n.forward;return o=r.isReversed()?!o:o,qe(e,i),je(e,o,i,n.repeat)}},goToMark:function(e,t,n,r){var i=r.marks[n.selectedCharacter];if(i){var o=i.find();return n.linewise?{line:o.line,ch:de(e.getLine(o.line))}:o}return null},moveToOtherHighlightedEnd:function(e,t,r,i){if(i.visualBlock&&r.sameLine){var o=i.sel;return[N(e,n(o.anchor.line,o.head.ch)),N(e,n(o.head.line,o.anchor.ch))]}return[i.sel.head,i.sel.anchor]},jumpToMark:function(e,t,r,i){for(var o=t,a=0;a<r.repeat;a++){var s=o;for(var l in i.marks)if(g(l)){var c=i.marks[l].find(),u=r.forward?B(c,s):B(s,c);if(!(u||r.linewise&&c.line==s.line)){var d=F(s,o),f=r.forward?G(s,c,o):G(o,c,s);(d||f)&&(o=c)}}}return r.linewise&&(o=n(o.line,de(e.getLine(o.line)))),o},moveByCharacters:function(e,t,r){var i=t,o=r.repeat,a=r.forward?i.ch+o:i.ch-o;return n(i.line,a)},moveByLines:function(e,t,r,i){var o=t,a=o.ch;switch(i.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:a=i.lastHPos;break;default:i.lastHPos=a}var s=r.repeat+(r.repeatOffset||0),l=r.forward?o.line+s:o.line-s,c=e.firstLine(),u=e.lastLine();return c>l&&o.line==c||l>u&&o.line==u?void 0:(r.toFirstChar&&(a=de(e.getLine(l)),i.lastHPos=a),i.lastHSPos=e.charCoords(n(l,a),"div").left,n(l,a))},moveByDisplayLines:function(e,t,r,i){var o=t;switch(i.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:i.lastHSPos=e.charCoords(o,"div").left}var a=r.repeat,s=e.findPosV(o,r.forward?a:-a,"line",i.lastHSPos);if(s.hitSide)if(r.forward)var l=e.charCoords(s,"div"),c={top:l.top+8,left:i.lastHSPos},s=e.coordsChar(c,"div");else{var u=e.charCoords(n(e.firstLine(),0),"div");u.left=i.lastHSPos,s=e.coordsChar(u,"div")}return i.lastHPos=s.ch,s},moveByPage:function(e,t,n){var r=t,i=n.repeat;return e.findPosV(r,n.forward?i:-i,"page")},moveByParagraph:function(e,t,r){for(var i=t.line,o=r.repeat,a=r.forward?1:-1,s=0;o>s&&!(!r.forward&&i===e.firstLine()||r.forward&&i==e.lastLine());s++)for(i+=a;i!==e.firstLine()&&i!=e.lastLine()&&e.getLine(i);)i+=a;return n(i,0)},moveByScroll:function(e,t,n,r){var i=e.getScrollInfo(),o=null,a=n.repeat;a||(a=i.clientHeight/(2*e.defaultTextHeight()));var s=e.charCoords(t,"local");n.repeat=a;var o=yt.moveByDisplayLines(e,t,n,r);if(!o)return null;var l=e.charCoords(o,"local");return e.scrollTo(null,i.top+l.top-s.top),o},moveByWords:function(e,t,n){return ve(e,t,n.repeat,!!n.forward,!!n.wordEnd,!!n.bigWord)},moveTillCharacter:function(e,t,n){var r=n.repeat,i=be(e,r,n.forward,n.selectedCharacter),o=n.forward?-1:1;return he(o,n),i?(i.ch+=o,i):null},moveToCharacter:function(e,t,n){var r=n.repeat;return he(0,n),be(e,r,n.forward,n.selectedCharacter)||t},moveToSymbol:function(e,t,n){var r=n.repeat;return me(e,r,n.forward,n.selectedCharacter)||t},moveToColumn:function(e,t,n,r){var i=n.repeat;return r.lastHPos=i-1,r.lastHSPos=e.charCoords(t,"div").left,ye(e,i)},moveToEol:function(e,t,r,i){var o=t;i.lastHPos=1/0;var a=n(o.line+r.repeat-1,1/0),s=e.clipPos(a);return s.ch--,i.lastHSPos=e.charCoords(s,"div").left,a},moveToFirstNonWhiteSpaceCharacter:function(e,t){var r=t;return n(r.line,de(e.getLine(r.line)))},moveToMatchedSymbol:function(e,t){var r=t,i=r.line,o=r.ch,a=e.getLine(i),s;do if(s=a.charAt(o++),s&&v(s)){var l=e.getTokenTypeAt(n(i,o));if("string"!==l&&"comment"!==l)break}while(s);if(s){var c=e.findMatchingBracket(n(i,o));return c.to}return r},moveToStartOfLine:function(e,t){return n(t.line,0)},moveToLineOrEdgeOfDocument:function(e,t,r){var i=r.forward?e.lastLine():e.firstLine();return r.repeatIsExplicit&&(i=r.repeat-e.getOption("firstLineNumber")),n(i,de(e.getLine(i)))},textObjectManipulation:function(e,t,n){var r={"(":")",")":"(","{":"}","}":"{","[":"]","]":"["},i={"'":!0,'"':!0},o=n.selectedCharacter;"b"==o?o="(":"B"==o&&(o="{");var a=!n.textObjectInner,s;if(r[o])s=_e(e,t,o,a);else if(i[o])s=we(e,t,o,a);else if("W"===o)s=fe(e,a,!0,!0);else{if("w"!==o)return null;s=fe(e,a,!0,!1)}return e.state.vim.visualMode?ie(e,s.start,s.end):[s.start,s.end]},repeatLastCharacterSearch:function(e,t,n){var r=mt.lastChararacterSearch,i=n.repeat,o=n.forward===r.forward,a=(r.increment?1:0)*(o?-1:1);e.moveH(-a,"char"),n.inclusive=o?!0:!1;var s=be(e,i,o,r.selectedCharacter);return s?(s.ch+=a,s):(e.moveH(a,"char"),t)}},kt={change:function(t,n,r){var i,o,a=t.state.vim;if(mt.macroModeState.lastInsertModeChanges.inVisualBlock=a.visualBlock,a.visualMode){o=t.getSelection();var s=O("",r.length);t.replaceSelections(s),i=H(r[0].head,r[0].anchor)}else{var l=r[0].anchor,c=r[0].head;if(o=t.getRange(l,c),!k(o)){var u=/\s+$/.exec(o);u&&(c=P(c,0,-u[0].length),o=o.slice(0,-u[0].length))}var d=c.line-1==t.lastLine();t.replaceRange("",l,c),n.linewise&&!d&&(e.commands.newlineAndIndent(t),l.ch=null),i=l}mt.registerController.pushText(n.registerName,"change",o,n.linewise,r.length>1),xt.enterInsertMode(t,{head:i},t.state.vim)},"delete":function(e,t,r){var i,o,a=e.state.vim;if(a.visualBlock){o=e.getSelection();var s=O("",r.length);e.replaceSelections(s),i=r[0].anchor}else{var l=r[0].anchor,c=r[0].head;t.linewise&&c.line!=e.firstLine()&&l.line==e.lastLine()&&l.line==c.line-1&&(l.line==e.firstLine()?l.ch=0:l=n(l.line-1,K(e,l.line-1))),o=e.getRange(l,c),e.replaceRange("",l,c),i=l,t.linewise&&(i=yt.moveToFirstNonWhiteSpaceCharacter(e,l))}return mt.registerController.pushText(t.registerName,"delete",o,t.linewise,a.visualBlock),i},indent:function(e,t,n){var r=e.state.vim,i=n[0].anchor.line,o=r.visualBlock?n[n.length-1].anchor.line:n[0].head.line,a=r.visualMode?t.repeat:1;t.linewise&&o--;for(var s=i;o>=s;s++)for(var l=0;a>l;l++)e.indentLine(s,t.indentRight);return yt.moveToFirstNonWhiteSpaceCharacter(e,n[0].anchor)},changeCase:function(e,t,n,r,i){for(var o=e.getSelections(),a=[],s=t.toLower,l=0;l<o.length;l++){var c=o[l],u="";if(s===!0)u=c.toLowerCase();else if(s===!1)u=c.toUpperCase();else for(var d=0;d<c.length;d++){var f=c.charAt(d);u+=y(f)?f.toLowerCase():f.toUpperCase()}a.push(u)}return e.replaceSelections(a),t.shouldMoveCursor?i:!e.state.vim.visualMode&&t.linewise&&n[0].anchor.line+1==n[0].head.line?yt.moveToFirstNonWhiteSpaceCharacter(e,r):t.linewise?r:H(n[0].anchor,n[0].head)},yank:function(e,t,n,r){var i=e.state.vim,o=e.getSelection(),a=i.visualMode?H(i.sel.anchor,i.sel.head,n[0].head,n[0].anchor):r;return mt.registerController.pushText(t.registerName,"yank",o,t.linewise,i.visualBlock),a}},xt={jumpListWalk:function(e,t,n){if(!n.visualMode){var r=t.repeat,i=t.forward,o=mt.jumpList,a=o.move(e,i?r:-r),s=a?a.find():void 0;s=s?s:e.getCursor(),e.setCursor(s)}},scroll:function(e,t,n){if(!n.visualMode){var r=t.repeat||1,i=e.defaultTextHeight(),o=e.getScrollInfo().top,a=i*r,s=t.forward?o+a:o-a,l=U(e.getCursor()),c=e.charCoords(l,"local");if(t.forward)s>c.top?(l.line+=(s-c.top)/i,l.line=Math.ceil(l.line),e.setCursor(l),c=e.charCoords(l,"local"),e.scrollTo(null,c.top)):e.scrollTo(null,s);else{var u=s+e.getScrollInfo().clientHeight;u<c.bottom?(l.line-=(c.bottom-u)/i,l.line=Math.floor(l.line),e.setCursor(l),c=e.charCoords(l,"local"),e.scrollTo(null,c.bottom-e.getScrollInfo().clientHeight)):e.scrollTo(null,s)}}},scrollToCursor:function(e,t){var r=e.getCursor().line,i=e.charCoords(n(r,0),"local"),o=e.getScrollInfo().clientHeight,a=i.top,s=i.bottom-a;switch(t.position){case"center":a=a-o/2+s;break;case"bottom":a=a-o+1.4*s;break;case"top":a+=.4*s}e.scrollTo(null,a)},replayMacro:function(e,t,n){var r=t.selectedCharacter,i=t.repeat,o=mt.macroModeState;for("@"==r&&(r=o.latestRegister);i--;)Ve(e,n,o,r)},enterMacroRecordMode:function(e,t){var n=mt.macroModeState,r=t.selectedCharacter;n.enterMacroRecordMode(e,r)},enterInsertMode:function(t,r,i){if(!t.getOption("readOnly")){i.insertMode=!0,i.insertModeRepeat=r&&r.repeat||1;var o=r?r.insertAt:null,a=i.sel,s=r.head||t.getCursor("head"),l=t.listSelections().length;if("eol"==o)s=n(s.line,K(t,s.line));else if("charAfter"==o)s=P(s,0,1);else if("firstNonBlank"==o)s=yt.moveToFirstNonWhiteSpaceCharacter(t,s);else if("startOfSelectedArea"==o)i.visualBlock?(s=n(Math.min(a.head.line,a.anchor.line),Math.min(a.head.ch,a.anchor.ch)),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line<a.anchor.line?a.head:n(a.anchor.line,0);else if("endOfSelectedArea"==o)i.visualBlock?(s=n(Math.min(a.head.line,a.anchor.line),Math.max(a.head.ch+1,a.anchor.ch)),l=Math.abs(a.head.line-a.anchor.line)+1):s=a.head.line>=a.anchor.line?P(a.head,0,1):n(a.anchor.line,0);else if("inplace"==o&&i.visualMode)return;t.setOption("keyMap","vim-insert"),t.setOption("disableInput",!1),r&&r.replace?(t.toggleOverwrite(!0),t.setOption("keyMap","vim-replace"),e.signal(t,"vim-mode-change",{mode:"replace"})):(t.setOption("keyMap","vim-insert"),e.signal(t,"vim-mode-change",{mode:"insert"})),mt.macroModeState.isPlaying||(t.on("change",Ze),e.on(t.getInputField(),"keydown",tt)),i.visualMode&&le(t),ee(t,s,l)}},toggleVisualMode:function(t,r,i){var o=r.repeat,a=t.getCursor(),s;i.visualMode?i.visualLine^r.linewise||i.visualBlock^r.blockwise?(i.visualLine=!!r.linewise,i.visualBlock=!!r.blockwise,e.signal(t,"vim-mode-change",{mode:"visual",subMode:i.visualLine?"linewise":i.visualBlock?"blockwise":""}),oe(t)):le(t):(i.visualMode=!0,i.visualLine=!!r.linewise,i.visualBlock=!!r.blockwise,s=N(t,n(a.line,a.ch+o-1),!0),i.sel={anchor:a,head:s},e.signal(t,"vim-mode-change",{mode:"visual",subMode:i.visualLine?"linewise":i.visualBlock?"blockwise":""}),oe(t),ke(t,i,"<",H(a,s)),ke(t,i,">",V(a,s)))},reselectLastSelection:function(t,n,r){var i=r.lastSelection;if(r.visualMode&&re(t,r),i){var o=i.anchorMark.find(),a=i.headMark.find();if(!o||!a)return;
|
||
|
||
r.sel={anchor:o,head:a},r.visualMode=!0,r.visualLine=i.visualLine,r.visualBlock=i.visualBlock,oe(t),ke(t,r,"<",H(o,a)),ke(t,r,">",V(o,a)),e.signal(t,"vim-mode-change",{mode:"visual",subMode:r.visualLine?"linewise":r.visualBlock?"blockwise":""})}},joinLines:function(e,t,r){var i,o;if(r.visualMode)i=e.getCursor("anchor"),o=e.getCursor("head"),o.ch=K(e,o.line)-1;else{var a=Math.max(t.repeat,2);i=e.getCursor(),o=N(e,n(i.line+a-1,1/0))}for(var s=0,l=i.line;l<o.line;l++){s=K(e,i.line);var c=n(i.line+1,K(e,i.line+1)),u=e.getRange(i,c);u=u.replace(/\n\s*/g," "),e.replaceRange(u,i,c)}var d=n(i.line,s);e.setCursor(d),r.visualMode&&le(e)},newLineAndEnterInsertMode:function(t,r,i){i.insertMode=!0;var o=U(t.getCursor());if(o.line!==t.firstLine()||r.after){o.line=r.after?o.line:o.line-1,o.ch=K(t,o.line),t.setCursor(o);var a=e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent;a(t)}else t.replaceRange("\n",n(t.firstLine(),0)),t.setCursor(t.firstLine(),0);this.enterInsertMode(t,{repeat:r.repeat},i)},paste:function(e,t,r){var i=U(e.getCursor()),o=mt.registerController.getRegister(t.registerName),a=o.toString();if(a){if(t.matchIndent){var s=e.getOption("tabSize"),l=function(e){var t=e.split(" ").length-1,n=e.split(" ").length-1;return t*s+1*n},c=e.getLine(e.getCursor().line),u=l(c.match(/^\s*/)[0]),d=a.replace(/\n$/,""),f=a!==d,p=l(a.match(/^\s*/)[0]),a=d.replace(/^\s*/gm,function(t){var n=u+(l(t)-p);if(0>n)return"";if(e.getOption("indentWithTabs")){var r=Math.floor(n/s);return Array(r+1).join(" ")}return Array(n+1).join(" ")});a+=f?"\n":""}if(t.repeat>1)var a=Array(t.repeat+1).join(a);var h=o.linewise,m=o.blockwise;if(h)r.visualMode?a=r.visualLine?a.slice(0,-1):"\n"+a.slice(0,a.length-1)+"\n":t.after?(a="\n"+a.slice(0,a.length-1),i.ch=K(e,i.line)):i.ch=0;else{if(m){a=a.split("\n");for(var g=0;g<a.length;g++)a[g]=""==a[g]?" ":a[g]}i.ch+=t.after?1:0}var v,b;if(r.visualMode){r.lastPastedText=a;var y,k=ne(e,r),x=k[0],_=k[1],w=e.getSelection(),S=e.listSelections(),T=new Array(S.length).join("1").split("1");r.lastSelection&&(y=r.lastSelection.headMark.find()),mt.registerController.unnamedRegister.setText(w),m?(e.replaceSelections(T),_=n(x.line+a.length-1,x.ch),e.setCursor(x),Q(e,_),e.replaceSelections(a),v=x):r.visualBlock?(e.replaceSelections(T),e.setCursor(x),e.replaceRange(a,x,x),v=x):(e.replaceRange(a,x,_),v=e.posFromIndex(e.indexFromPos(x)+a.length-1)),y&&(r.lastSelection.headMark=e.setBookmark(y)),h&&(v.ch=0)}else if(m){e.setCursor(i);for(var g=0;g<a.length;g++){var E=i.line+g;E>e.lastLine()&&e.replaceRange("\n",n(E,0));var C=K(e,E);C<i.ch&&X(e,E,i.ch)}e.setCursor(i),Q(e,n(i.line+a.length-1,i.ch)),e.replaceSelections(a),v=i}else e.replaceRange(a,i),h&&t.after?v=n(i.line+1,de(e.getLine(i.line+1))):h&&!t.after?v=n(i.line,de(e.getLine(i.line))):!h&&t.after?(b=e.indexFromPos(i),v=e.posFromIndex(b+a.length-1)):(b=e.indexFromPos(i),v=e.posFromIndex(b+a.length));r.visualMode&&le(e),e.setCursor(v)}},undo:function(t,n){t.operation(function(){W(t,e.commands.undo,n.repeat)(),t.setCursor(t.getCursor("anchor"))})},redo:function(t,n){W(t,e.commands.redo,n.repeat)()},setRegister:function(e,t,n){n.inputState.registerName=t.selectedCharacter},setMark:function(e,t,n){var r=t.selectedCharacter;ke(e,n,r,e.getCursor())},replace:function(t,r,i){var o=r.selectedCharacter,a=t.getCursor(),s,l,c=t.listSelections();if(i.visualMode)a=t.getCursor("start"),l=t.getCursor("end");else{var u=t.getLine(a.line);s=a.ch+r.repeat,s>u.length&&(s=u.length),l=n(a.line,s)}if("\n"==o)i.visualMode||t.replaceRange("",a,l),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(t);else{var d=t.getRange(a,l);if(d=d.replace(/[^\n]/g,o),i.visualBlock){var f=new Array(t.getOption("tabSize")+1).join(" ");d=t.getSelection(),d=d.replace(/\t/g,f).replace(/[^\n]/g,o).split("\n"),t.replaceSelections(d)}else t.replaceRange(d,a,l);i.visualMode?(a=B(c[0].anchor,c[0].head)?c[0].anchor:c[0].head,t.setCursor(a),le(t)):t.setCursor(P(l,0,-1))}},incrementNumberToken:function(e,t){for(var r=e.getCursor(),i=e.getLine(r.line),o=/-?\d+/g,a,s,l,c,u;null!==(a=o.exec(i))&&(u=a[0],s=a.index,l=s+u.length,!(r.ch<l)););if((t.backtrack||!(l<=r.ch))&&u){var d=t.increase?1:-1,f=parseInt(u)+d*t.repeat,p=n(r.line,s),h=n(r.line,l);c=f.toString(),e.replaceRange(c,p,h),e.setCursor(n(r.line,s+c.length-1))}},repeatLastEdit:function(e,t,n){var r=n.lastEditInputState;if(r){var i=t.repeat;i&&t.repeatIsExplicit?n.lastEditInputState.repeatOverride=i:i=n.lastEditInputState.repeatOverride||i,nt(e,n,i,!1)}},exitInsertMode:He},_t={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},wt={bracket:{isComplete:function(e){if(e.nextCh===e.symb){if(e.depth++,e.depth>=1)return!0}else e.nextCh===e.reverseSymb&&e.depth--;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?"]":"[")===e.symb?"{":"}"},isComplete:function(e){return 0===e.index&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t="*"===e.lastCh&&"/"===e.nextCh;return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb="m"===e.symb?"{":"}",e.reverseSymb="{"===e.symb?"}":"{"},isComplete:function(e){return e.nextCh===e.symb?!0:!1}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if("#"===e.nextCh){var t=e.lineText.match(/#(\w+)/)[1];if("endif"===t){if(e.forward&&0===e.depth)return!0;e.depth++}else if("if"===t){if(!e.forward&&0===e.depth)return!0;e.depth--}if("else"===t&&0===e.depth)return!0}return!1}}};_("pcre",!0,"boolean"),Se.prototype={getQuery:function(){return mt.query},setQuery:function(e){mt.query=e},getOverlay:function(){return this.searchOverlay},setOverlay:function(e){this.searchOverlay=e},isReversed:function(){return mt.isReversed},setReversed:function(e){mt.isReversed=e}};var St="(Javascript regexp)",Tt=[{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"set"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"global",shortName:"g"}],Et=function(){this.buildCommandMap_()};Et.prototype={processCommand:function(t,n,r){var i=t.state.vim,o=mt.registerController.getRegister(":"),a=o.toString();i.visualMode&&le(t);var s=new e.StringStream(n);o.setText(n);var l=r||{};l.input=n;try{this.parseInput_(t,s,l)}catch(c){throw Oe(t,c),c}var u,d;if(l.commandName){if(u=this.matchCommand_(l.commandName)){if(d=u.name,u.excludeFromCommandHistory&&o.setText(a),this.parseCommandArgs_(s,l,u),"exToKey"==u.type){for(var f=0;f<u.toKeys.length;f++)e.Vim.handleKey(t,u.toKeys[f],"mapping");return}if("exToEx"==u.type)return void this.processCommand(t,u.toInput)}}else void 0!==l.line&&(d="move");if(!d)return void Oe(t,'Not an editor command ":'+n+'"');try{Ct[d](t,l),u&&u.possiblyAsync||!l.callback||l.callback()}catch(c){throw Oe(t,c),c}},parseInput_:function(e,t,n){t.eatWhile(":"),t.eat("%")?(n.line=e.firstLine(),n.lineEnd=e.lastLine()):(n.line=this.parseLineSpec_(e,t),void 0!==n.line&&t.eat(",")&&(n.lineEnd=this.parseLineSpec_(e,t)));var r=t.match(/^(\w+)/);return r?n.commandName=r[1]:n.commandName=t.match(/.*/)[0],n},parseLineSpec_:function(e,t){var n=t.match(/^(\d+)/);if(n)return parseInt(n[1],10)-1;switch(t.next()){case".":return e.getCursor().line;case"$":return e.lastLine();case"'":var r=e.state.vim.marks[t.next()];if(r&&r.find())return r.find().line;throw new Error("Mark not set");default:return void t.backUp(1)}},parseCommandArgs_:function(e,t,n){if(!e.eol()){t.argString=e.match(/.*/)[0];var r=n.argDelimiter||/\s+/,i=Z(t.argString).split(r);i.length&&i[0]&&(t.args=i)}},matchCommand_:function(e){for(var t=e.length;t>0;t--){var n=e.substring(0,t);if(this.commandMap_[n]){var r=this.commandMap_[n];if(0===r.name.indexOf(e))return r}}return null},buildCommandMap_:function(){this.commandMap_={};for(var e=0;e<Tt.length;e++){var t=Tt[e],n=t.shortName||t.name;this.commandMap_[n]=t}},map:function(e,n,r){if(":"!=e&&":"==e.charAt(0)){if(r)throw Error("Mode not supported for ex mappings");var i=e.substring(1);":"!=n&&":"==n.charAt(0)?this.commandMap_[i]={name:i,type:"exToEx",toInput:n.substring(1),user:!0}:this.commandMap_[i]={name:i,type:"exToKey",toKeys:n,user:!0}}else if(":"!=n&&":"==n.charAt(0)){var o={keys:e,type:"keyToEx",exArgs:{input:n.substring(1)},user:!0};r&&(o.context=r),t.unshift(o)}else{var o={keys:e,type:"keyToKey",toKeys:n,user:!0};r&&(o.context=r),t.unshift(o)}},unmap:function(e,n){if(":"!=e&&":"==e.charAt(0)){if(n)throw Error("Mode not supported for ex mappings");var r=e.substring(1);if(this.commandMap_[r]&&this.commandMap_[r].user)return void delete this.commandMap_[r]}else for(var i=e,o=0;o<t.length;o++)if(i==t[o].keys&&t[o].context===n&&t[o].user)return void t.splice(o,1);throw Error("No such mapping.")}};var Ct={map:function(e,t,n){var r=t.args;return!r||r.length<2?void(e&&Oe(e,"Invalid mapping: "+t.input)):void Mt.map(r[0],r[1],n)},imap:function(e,t){this.map(e,t,"insert")},nmap:function(e,t){this.map(e,t,"normal")},vmap:function(e,t){this.map(e,t,"visual")},unmap:function(e,t,n){var r=t.args;return!r||r.length<1?void(e&&Oe(e,"No such mapping: "+t.input)):void Mt.unmap(r[0],n)},move:function(e,t){bt.processCommand(e,e.state.vim,{type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:t.line+1})},set:function(e,t){var n=t.args;if(!n||n.length<1)return void(e&&Oe(e,"Invalid mapping: "+t.input));var r=n[0].split("="),i=r[0],o=r[1],a=!1;if("?"==i.charAt(i.length-1)){if(o)throw Error("Trailing characters: "+t.argString);i=i.substring(0,i.length-1),a=!0}void 0===o&&"no"==i.substring(0,2)&&(i=i.substring(2),o=!1);var s=ft[i]&&"boolean"==ft[i].type;if(s&&void 0==o&&(o=!0),!s&&!o||a){var l=S(i);l===!0||l===!1?Oe(e," "+(l?"":"no")+i):Oe(e," "+i+"="+l)}else w(i,o)},registers:function(e,t){var n=t.args,r=mt.registerController.registers,i="----------Registers----------<br><br>";if(n){var o;n=n.join("");for(var a=0;a<n.length;a++)if(o=n.charAt(a),mt.registerController.isValidRegister(o)){var s=r[o]||new A;i+='"'+o+" "+s.toString()+"<br>"}}else for(var o in r){var l=r[o].toString();l.length&&(i+='"'+o+" "+l+"<br>")}Oe(e,i)},sort:function(t,r){function i(){if(r.argString){var t=new e.StringStream(r.argString);if(t.eat("!")&&(a=!0),t.eol())return;if(!t.eatSpace())return"Invalid arguments";var n=t.match(/[a-z]+/);if(n){n=n[0],s=-1!=n.indexOf("i"),l=-1!=n.indexOf("u");var i=-1!=n.indexOf("d")&&1,o=-1!=n.indexOf("x")&&1,u=-1!=n.indexOf("o")&&1;if(i+o+u>1)return"Invalid arguments";c=i&&"decimal"||o&&"hex"||u&&"octal"}t.eatSpace()&&t.match(/\/.*\//)}}function o(e,t){if(a){var n;n=e,e=t,t=n}s&&(e=e.toLowerCase(),t=t.toLowerCase());var r=c&&g.exec(e),i=c&&g.exec(t);return r?(r=parseInt((r[1]+r[2]).toLowerCase(),v),i=parseInt((i[1]+i[2]).toLowerCase(),v),r-i):t>e?-1:1}var a,s,l,c,u=i();if(u)return void Oe(t,u+": "+r.argString);var d=r.line||t.firstLine(),f=r.lineEnd||r.line||t.lastLine();if(d!=f){var p=n(d,0),h=n(f,K(t,f)),m=t.getRange(p,h).split("\n"),g="decimal"==c?/(-?)([\d]+)/:"hex"==c?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==c?/([0-7]+)/:null,v="decimal"==c?10:"hex"==c?16:"octal"==c?8:null,b=[],y=[];if(c)for(var k=0;k<m.length;k++)g.exec(m[k])?b.push(m[k]):y.push(m[k]);else y=m;if(b.sort(o),y.sort(o),m=a?b.concat(y):y.concat(b),l){var x=m,_;m=[];for(var k=0;k<x.length;k++)x[k]!=_&&m.push(x[k]),_=x[k]}t.replaceRange(m.join("\n"),p,h)}},global:function(e,t){var n=t.argString;if(!n)return void Oe(e,"Regular Expression missing from global");var r=void 0!==t.line?t.line:e.firstLine(),i=t.lineEnd||t.line||e.lastLine(),o=Ce(n),a=n,s;if(o.length&&(a=o[0],s=o.slice(1,o.length).join("/")),a)try{De(e,a,!0,!0)}catch(l){return void Oe(e,"Invalid regex: "+a)}for(var c=Te(e).getQuery(),u=[],d="",f=r;i>=f;f++){var p=c.test(e.getLine(f));p&&(u.push(f+1),d+=e.getLine(f)+"<br>")}if(!s)return void Oe(e,d);var h=0,m=function(){if(h<u.length){var t=u[h]+s;Mt.processCommand(e,t,{callback:m})}h++};m()},substitute:function(e,t){if(!e.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var r=t.argString,i=r?Ce(r):[],o,a="",s,l,c,u=!1,d=!1;if(i.length)o=i[0],a=i[1],void 0!==a&&(a=S("pcre")?Ie(a):Ae(a),mt.lastSubstituteReplacePart=a),s=i[2]?i[2].split(" "):[];else if(r&&r.length)return void Oe(e,"Substitutions should be of the form :s/pattern/replace/");if(s&&(l=s[0],c=parseInt(s[1]),l&&(-1!=l.indexOf("c")&&(u=!0,l.replace("c","")),-1!=l.indexOf("g")&&(d=!0,l.replace("g","")),o=o+"/"+l)),o)try{De(e,o,!0,!0)}catch(f){return void Oe(e,"Invalid regex: "+o)}if(a=a||mt.lastSubstituteReplacePart,void 0===a)return void Oe(e,"No previous substitute regular expression");var p=Te(e),h=p.getQuery(),m=void 0!==t.line?t.line:e.getCursor().line,g=t.lineEnd||m;c&&(m=g,g=m+c-1);var v=N(e,n(m,0)),b=e.getSearchCursor(h,v);Be(e,u,d,m,g,b,h,a,t.callback)},redo:e.commands.redo,undo:e.commands.undo,write:function(t){e.commands.save?e.commands.save(t):t.save()},nohlsearch:function(e){We(e)},delmarks:function(t,n){if(!n.argString||!Z(n.argString))return void Oe(t,"Argument required");for(var r=t.state.vim,i=new e.StringStream(Z(n.argString));!i.eol();){i.eatSpace();var o=i.pos;if(!i.match(/[a-zA-Z]/,!1))return void Oe(t,"Invalid argument: "+n.argString.substring(o));var a=i.next();if(i.match("-",!0)){if(!i.match(/[a-zA-Z]/,!1))return void Oe(t,"Invalid argument: "+n.argString.substring(o));var s=a,l=i.next();if(!(g(s)&&g(l)||y(s)&&y(l)))return void Oe(t,"Invalid argument: "+s+"-");var c=s.charCodeAt(0),u=l.charCodeAt(0);if(c>=u)return void Oe(t,"Invalid argument: "+n.argString.substring(o));for(var d=0;u-c>=d;d++){var f=String.fromCharCode(c+d);delete r.marks[f]}}else delete r.marks[a]}}},Mt=new Et;return e.keyMap.vim={attach:f,detach:d},_("insertModeEscKeysTimeout",200,"number"),e.keyMap["vim-insert"]={"Ctrl-N":"autocomplete","Ctrl-P":"autocomplete",Enter:function(t){var n=e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent;n(t)},fallthrough:["default"],attach:f,detach:d},e.keyMap["await-second"]={fallthrough:["vim-insert"],attach:f,detach:d},e.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:f,detach:d},C(),vt};e.Vim=a()})}.call(this),"undefined"==typeof Package&&(Package={}),Package["perak:codemirror"]={CodeMirror:CodeMirror,jsonlint:jsonlint,JSHINT:JSHINT,CSSLint:CSSLint}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;(function(){}).call(this),"undefined"==typeof Package&&(Package={}),Package["percolate:synced-cron"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,r=Package.blaze.Blaze,n=Package.blaze.UI,t=Package.blaze.Handlebars,i=Package.session.Session,o=Package.tracker.Tracker,a=Package.tracker.Deps,u=Package.underscore._,s=Package.htmljs.HTML,c,n;(function(){"undefined"==typeof c&&(c={});var r={},n=e.isClient?new a.Dependency:null,t="en";c.setLanguage=function(r){r&&r!==t&&(t=r,e.isClient&&n.changed())},c.language=function(){return e.isClient&&n.depend(),t},c.setDictionary=function(e){r=e},c.addDictionary=function(e){u.extend(r,e)};var i=function(e,r){return e==e.toLowerCase()?r.toLowerCase():e==e.toUpperCase()?r.toUpperCase():e.substr(1)==e.substr(1).toLowerCase()?r.substr(0,1).toUpperCase()+r.substr(1).toLowerCase():e.substr(0,2)==e.substr(0,2).toUpperCase()?r:r.replace(/( [a-z])/g,function(e){return e.toUpperCase()})};c.getText=function(e,n){var t=e.toLowerCase(),o=r&&r[t],a="string"==typeof n?n:c.language();return i(e,o?o[a]?o[a]:o.en:"["+e+"]")}}).call(this),function(){("undefined"==typeof n||"function"!=typeof n.registerHelper)&&(n={registerHelper:function(e,r){if("undefined"!=typeof t)return t.registerHelper(e,r);throw new Error("No UI or Handlebars found")}}),"undefined"!=typeof n&&(n.registerHelper("getLength",function(e){return e&&e.length}),n.registerHelper("isSelected",function(e,r){return e===r?{selected:"selected"}:null}),n.registerHelper("isChecked",function(e,r){return e===r?{checked:"checked"}:null}),n.registerHelper("cutString",function(e,r){return e.length>r?e.substr(0,Math.max(r-3,0))+"...":e}),n.registerHelper("$eq",function(e,r){return e===r}),n.registerHelper("$neq",function(e,r){return e!==r}),n.registerHelper("$in",function(e,r,n,t){return e===r||e===n||e===t}),n.registerHelper("$nin",function(e,r,n,t){return e!==r&&e!==n&&e!==t}),n.registerHelper("$exists",function(e){return void 0!==e}),n.registerHelper("$lt",function(e,r){return r>e}),n.registerHelper("$gt",function(e,r){return e>r}),n.registerHelper("$lte",function(e,r){return r>=e}),n.registerHelper("$gte",function(e,r){return e>=r}),n.registerHelper("$and",function(e,r){return e&&r}),n.registerHelper("$or",function(e,r){return e||r}),n.registerHelper("$not",function(e){return!e}),n.registerHelper("nl2br",function(e){var r=(e+"").replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g,"$1<br>$2");return new Spacebars.SafeString(r)}),n.registerHelper("getText",function(e,r){var n=r||null;return c.getText(e,n)}),n.registerHelper("$mapped",function(e){if(!Array.isArray(e))try{e=e.fetch()}catch(r){return console.log("Error in $mapped: perhaps you aren't sending in a collection or array."),[]}var n=e.length,t=e.map(function(e,r){return e.$length=n,e.$index=r,e.$first=0===r,e.$last=r===n-1,e});return t||[]}),c.superScope={},c.addScope=function(e,r){c.superScope[e]=u.bind(function(){return this},r)},c.removeScope=function(e){delete n._globalHelpers[e],delete c.superScope[e]},c.addScope("Session",i),c.addScope("Meteor",e),n.registerHelper("$",function(){return c.superScope}))}.call(this),"undefined"==typeof Package&&(Package={}),Package["raix:handlebar-helpers"]={Helpers:c}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n=Package.http.HTTP,o=Package["accounts-base"].Accounts,t=Package["accounts-base"].AccountsClient;(function(){o.saml||(o.saml={});var n=function(e,n,o){var t="undefined"!=typeof window.screenX?window.screenX:window.screenLeft,i="undefined"!=typeof window.screenY?window.screenY:window.screenTop,a="undefined"!=typeof window.outerWidth?window.outerWidth:document.body.clientWidth,c="undefined"!=typeof window.outerHeight?window.outerHeight:document.body.clientHeight-22,d=t+(a-n)/2,r=i+(c-o)/2,l="width="+n+",height="+o+",left="+d+",top="+r+",scrollbars=yes",s=window.open(e,"Login",l);return s.focus&&s.focus(),s};o.saml.initiateLogin=function(o,t,i){var a=n(e.absoluteUrl("_saml/authorize/"+o.provider+"/"+o.credentialToken),i&&i.width||650,i&&i.height||500),c=setInterval(function(){var e;try{e=a.closed||void 0===a.closed}catch(n){return}e&&(clearInterval(c),t(o.credentialToken))},100)},e.loginWithSaml=function(e,n){e=e||{};var t=Random.id();e.credentialToken=t,o.saml.initiateLogin(e,function(){o.callLoginMethod({methodArguments:[{saml:!0,credentialToken:t}],userCallback:n})})},e.logoutWithSaml=function(n){e.call("samlLogout",n.provider,function(o,t){console.log("LOC "+t),window.location.replace(e.absoluteUrl("_saml/sloRedirect/"+n.provider+"/?redirect="+encodeURIComponent(t)))})}}).call(this),"undefined"==typeof Package&&(Package={}),Package["steffo:meteor-accounts-saml"]={}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,n;(function(){(function(){n=n||function(t,n){var i={},e=i.lib={},r=e.Base=function(){function t(){}return{extend:function(n){t.prototype=this;var i=new t;return n&&i.mixIn(n),i.hasOwnProperty("init")||(i.init=function(){i.$super.init.apply(this,arguments)}),i.init.prototype=i,i.$super=this,i},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=e.WordArray=r.extend({init:function(t,i){t=this.words=t||[],i!=n?this.sigBytes=i:this.sigBytes=4*t.length},toString:function(t){return(t||a).stringify(this)},concat:function(t){var n=this.words,i=t.words,e=this.sigBytes,r=t.sigBytes;if(this.clamp(),e%4)for(var s=0;r>s;s++){var o=i[s>>>2]>>>24-s%4*8&255;n[e+s>>>2]|=o<<24-(e+s)%4*8}else if(i.length>65535)for(var s=0;r>s;s+=4)n[e+s>>>2]=i[s>>>2];else n.push.apply(n,i);return this.sigBytes+=r,this},clamp:function(){var n=this.words,i=this.sigBytes;n[i>>>2]&=4294967295<<32-i%4*8,n.length=t.ceil(i/4)},clone:function(){var t=r.clone.call(this);return t.words=this.words.slice(0),t},random:function(n){for(var i=[],e=0;n>e;e+=4)i.push(4294967296*t.random()|0);return new s.init(i,n)}}),o=i.enc={},a=o.Hex={stringify:function(t){for(var n=t.words,i=t.sigBytes,e=[],r=0;i>r;r++){var s=n[r>>>2]>>>24-r%4*8&255;e.push((s>>>4).toString(16)),e.push((15&s).toString(16))}return e.join("")},parse:function(t){for(var n=t.length,i=[],e=0;n>e;e+=2)i[e>>>3]|=parseInt(t.substr(e,2),16)<<24-e%8*4;return new s.init(i,n/2)}},c=o.Latin1={stringify:function(t){for(var n=t.words,i=t.sigBytes,e=[],r=0;i>r;r++){var s=n[r>>>2]>>>24-r%4*8&255;e.push(String.fromCharCode(s))}return e.join("")},parse:function(t){for(var n=t.length,i=[],e=0;n>e;e++)i[e>>>2]|=(255&t.charCodeAt(e))<<24-e%4*8;return new s.init(i,n)}},u=o.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(n){throw new Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},f=e.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=u.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(n){var i=this._data,e=i.words,r=i.sigBytes,o=this.blockSize,a=4*o,c=r/a;c=n?t.ceil(c):t.max((0|c)-this._minBufferSize,0);var u=c*o,f=t.min(4*u,r);if(u){for(var h=0;u>h;h+=o)this._doProcessBlock(e,h);var p=e.splice(0,u);i.sigBytes-=f}return new s.init(p,f)},clone:function(){var t=r.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),h=e.Hasher=f.extend({cfg:r.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var n=this._doFinalize();return n},blockSize:16,_createHelper:function(t){return function(n,i){return new t.init(i).finalize(n)}},_createHmacHelper:function(t){return function(n,i){return new p.HMAC.init(t,i).finalize(n)}}}),p=i.algo={};return i}(Math)}).call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["tmeasday:crypto-base"]={CryptoJS:n}}();
|
||
|
||
!function(){var a=Package.meteor.Meteor,r=Package["tmeasday:crypto-base"].CryptoJS;(function(){(function(){!function(a){function t(a,r,t,e,n,o,s){var c=a+(r&t|~r&e)+n+s;return(c<<o|c>>>32-o)+r}function e(a,r,t,e,n,o,s){var c=a+(r&e|t&~e)+n+s;return(c<<o|c>>>32-o)+r}function n(a,r,t,e,n,o,s){var c=a+(r^t^e)+n+s;return(c<<o|c>>>32-o)+r}function o(a,r,t,e,n,o,s){var c=a+(t^(r|~e))+n+s;return(c<<o|c>>>32-o)+r}var s=r,c=s.lib,i=c.WordArray,h=c.Hasher,u=s.algo,f=[];!function(){for(var r=0;64>r;r++)f[r]=4294967296*a.abs(a.sin(r+1))|0}();var l=u.MD5=h.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(a,r){for(var s=0;16>s;s++){var c=r+s,i=a[c];a[c]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var h=this._hash.words,u=a[r+0],l=a[r+1],v=a[r+2],d=a[r+3],_=a[r+4],y=a[r+5],g=a[r+6],p=a[r+7],k=a[r+8],m=a[r+9],P=a[r+10],H=a[r+11],M=a[r+12],w=a[r+13],B=a[r+14],D=a[r+15],b=h[0],x=h[1],z=h[2],A=h[3];b=t(b,x,z,A,u,7,f[0]),A=t(A,b,x,z,l,12,f[1]),z=t(z,A,b,x,v,17,f[2]),x=t(x,z,A,b,d,22,f[3]),b=t(b,x,z,A,_,7,f[4]),A=t(A,b,x,z,y,12,f[5]),z=t(z,A,b,x,g,17,f[6]),x=t(x,z,A,b,p,22,f[7]),b=t(b,x,z,A,k,7,f[8]),A=t(A,b,x,z,m,12,f[9]),z=t(z,A,b,x,P,17,f[10]),x=t(x,z,A,b,H,22,f[11]),b=t(b,x,z,A,M,7,f[12]),A=t(A,b,x,z,w,12,f[13]),z=t(z,A,b,x,B,17,f[14]),x=t(x,z,A,b,D,22,f[15]),b=e(b,x,z,A,l,5,f[16]),A=e(A,b,x,z,g,9,f[17]),z=e(z,A,b,x,H,14,f[18]),x=e(x,z,A,b,u,20,f[19]),b=e(b,x,z,A,y,5,f[20]),A=e(A,b,x,z,P,9,f[21]),z=e(z,A,b,x,D,14,f[22]),x=e(x,z,A,b,_,20,f[23]),b=e(b,x,z,A,m,5,f[24]),A=e(A,b,x,z,B,9,f[25]),z=e(z,A,b,x,d,14,f[26]),x=e(x,z,A,b,k,20,f[27]),b=e(b,x,z,A,w,5,f[28]),A=e(A,b,x,z,v,9,f[29]),z=e(z,A,b,x,p,14,f[30]),x=e(x,z,A,b,M,20,f[31]),b=n(b,x,z,A,y,4,f[32]),A=n(A,b,x,z,k,11,f[33]),z=n(z,A,b,x,H,16,f[34]),x=n(x,z,A,b,B,23,f[35]),b=n(b,x,z,A,l,4,f[36]),A=n(A,b,x,z,_,11,f[37]),z=n(z,A,b,x,p,16,f[38]),x=n(x,z,A,b,P,23,f[39]),b=n(b,x,z,A,w,4,f[40]),A=n(A,b,x,z,u,11,f[41]),z=n(z,A,b,x,d,16,f[42]),x=n(x,z,A,b,g,23,f[43]),b=n(b,x,z,A,m,4,f[44]),A=n(A,b,x,z,M,11,f[45]),z=n(z,A,b,x,D,16,f[46]),x=n(x,z,A,b,v,23,f[47]),b=o(b,x,z,A,u,6,f[48]),A=o(A,b,x,z,p,10,f[49]),z=o(z,A,b,x,B,15,f[50]),x=o(x,z,A,b,y,21,f[51]),b=o(b,x,z,A,M,6,f[52]),A=o(A,b,x,z,d,10,f[53]),z=o(z,A,b,x,P,15,f[54]),x=o(x,z,A,b,l,21,f[55]),b=o(b,x,z,A,k,6,f[56]),A=o(A,b,x,z,D,10,f[57]),z=o(z,A,b,x,g,15,f[58]),x=o(x,z,A,b,w,21,f[59]),b=o(b,x,z,A,_,6,f[60]),A=o(A,b,x,z,H,10,f[61]),z=o(z,A,b,x,v,15,f[62]),x=o(x,z,A,b,m,21,f[63]),h[0]=h[0]+b|0,h[1]=h[1]+x|0,h[2]=h[2]+z|0,h[3]=h[3]+A|0},_doFinalize:function(){var r=this._data,t=r.words,e=8*this._nDataBytes,n=8*r.sigBytes;t[n>>>5]|=128<<24-n%32;var o=a.floor(e/4294967296),s=e;t[(n+64>>>9<<4)+15]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t[(n+64>>>9<<4)+14]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),r.sigBytes=4*(t.length+1),this._process();for(var c=this._hash,i=c.words,h=0;4>h;h++){var u=i[h];i[h]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return c},clone:function(){var a=h.clone.call(this);return a._hash=this._hash.clone(),a}});s.MD5=h._createHelper(l),s.HmacMD5=h._createHmacHelper(l)}(Math)}).call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["tmeasday:crypto-md5"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,l=Package.underscore._,t=Package.check.check,o=Package.check.Match,n=Package["matb33:collection-hooks"].CollectionHooks,r;(function(){r="object"==typeof r?r:{};var n=r,u,i,s;"undefined"==typeof u&&(u={},u.Collection=e.Collection),u.Collection.prototype.friendlySlugs=function(e){var n,r,u;return null==e&&(e={}),n=this,l.isArray(e)||(e=[e]),l.each(e,function(e){var i,g;l.isString(e)&&(e={slugFrom:e}),i={slugFrom:"name",slugField:"slug",distinct:!0,distinctUpTo:[],updateSlug:!0,createOnUpdate:!0,maxLength:0,debug:!1,transliteration:[{from:"àáâäåãа",to:"a"},{from:"б",to:"b"},{from:"ç",to:"c"},{from:"д",to:"d"},{from:"èéêëẽэе",to:"e"},{from:"ф",to:"f"},{from:"г",to:"g"},{from:"х",to:"h"},{from:"ìíîïи",to:"i"},{from:"к",to:"k"},{from:"л",to:"l"},{from:"м",to:"m"},{from:"ñн",to:"n"},{from:"òóôöõо",to:"o"},{from:"п",to:"p"},{from:"р",to:"r"},{from:"с",to:"s"},{from:"т",to:"t"},{from:"ùúûüу",to:"u"},{from:"в",to:"v"},{from:"йы",to:"y"},{from:"з",to:"z"},{from:"æ",to:"ae"},{from:"ч",to:"ch"},{from:"щ",to:"sch"},{from:"ш",to:"sh"},{from:"ц",to:"ts"},{from:"я",to:"ya"},{from:"ю",to:"yu"},{from:"ж",to:"zh"},{from:"ъь",to:""}]},l.defaults(e,i),g={slugFrom:String,slugField:String,distinct:Boolean,updateSlug:Boolean,createOnUpdate:Boolean,maxLength:Number,debug:Boolean},t(e,o.ObjectIncluding(g)),n.before.insert(function(l,t){r(e,"before.insert function"),u(t,e)}),n.before.update(function(t,o,n,i,g){var d,a;return r(e,"before.update function"),d=function(){return l.isEmpty(i.$set)?delete i.$set:void 0},g=g||{},g.multi?(r(e,"multi doc update attempted, can't update slugs this way, leaving."),!0):(i=i||{},i.$set=i.$set||{},null==o[e.slugFrom]&&null==i.$set[e.slugFrom]?(d(),!0):(a=!1,null!=i.$set[e.slugFrom]&&o[e.slugFrom]!==i.$set[e.slugFrom]&&(a=!0),r(e,a,"slugFromChanged"),null==o[e.slugField]&&e.createOnUpdate?(r(e,"Update: Slug Field is missing and createOnUpdate is set to true"),a?(r(e,"slugFrom field has changed, runSlug with modifier"),u(o,e,i),d(),!0):(r(e,"runSlug to create"),u(o,e,i,!0),d(),!0)):e.updateSlug===!1?(r(e,"updateSlug is false, nothing to do."),d(),!0):s(o,e.slugFrom)===s(i.$set,e.slugFrom)?(r(e,"slugFrom field has not changed, nothing to do."),d(),!0):(u(o,e,i),d(),!0)))})}),u=function(e,l,t,o){var u,g,d,a,f,c,m,S,p,F,y,h,b,$,k;if(null==t&&(t=!1),null==o&&(o=!1),r(l,"Begin runSlug"),r(l,l,"Options"),r(l,t,"Modifier"),r(l,o,"Create"),c=o||!t?s(e,l.slugFrom):s(t.$set,l.slugFrom),r(l,c,"Slugging From"),b=i(c,l.transliteration,l.maxLength),!b)return!1;if(r(l,b,"SlugBase before reduction"),l.distinct){for(b=b.replace(/(-\d+)+$/,""),r(l,b,"SlugBase after reduction"),u="friendlySlugs."+l.slugField+".base",p="friendlySlugs."+l.slugField+".index",a={},a[u]=b,m=0;m<l.distinctUpTo.length;)d=l.distinctUpTo[m],a[d]=e[d],m++;k={},k[p]=-1,F={},F[p]=1,h=n.findOne(a,{sort:k,fields:F,limit:1}),r(l,h,"Highest indexed base found"),S=null==h||null==h.friendlySlugs||null==h.friendlySlugs[l.slugField]||null==h.friendlySlugs[l.slugField].index?0:h.friendlySlugs[l.slugField].index+1,g=function(e,l){return 0===l?e:e+"-"+l},$=null!=(y=l.slugGenerator)?y:g,f=$(b,S)}else S=!1,f=b;return r(l,f,"finalSlug"),t||o?(r(l,"Set to modify or create slug on update"),t=t||{},t.$set=t.$set||{},t.$set.friendlySlugs=e.friendlySlugs||{},t.$set.friendlySlugs[l.slugField]=t.$set.friendlySlugs[l.slugField]||{},t.$set.friendlySlugs[l.slugField].base=b,t.$set.friendlySlugs[l.slugField].index=S,t.$set[l.slugField]=f,r(l,t,"Final Modifier")):(r(l,"Set to update"),e.friendlySlugs=e.friendlySlugs||{},e.friendlySlugs[l.slugField]=e.friendlySlugs[l.slugField]||{},e.friendlySlugs[l.slugField].base=b,e.friendlySlugs[l.slugField].index=S,e[l.slugField]=f,r(l,e,"Final Doc")),!0},r=function(e,l,t){return null==t&&(t=""),e.debug?"object"==typeof l?(console.log("friendlySlugs DEBUG: "+t+"↓"),console.log(l)):console.log("friendlySlugs DEBUG: "+t+"= "+l):void 0}},i=function(e,t,o){var n,r;return null==e?!1:e.length<1?!1:(e=e.toString().toLowerCase(),l.each(t,function(l){return e=e.replace(new RegExp("["+l.from+"]","g"),l.to)}),r=e.replace(/'/g,"").replace(/[^0-9a-z-]/g,"-").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),o>0&&r.length>o&&(n=r.substring(0,o).lastIndexOf("-"),r=r.substring(0,n)),r)},s=function(e,l){var t;return t=l.split("."),1===t.length?e[t[0]]:s(e[t[0]],t.slice(1).join("."))}}).call(this),"undefined"==typeof Package&&(Package={}),Package["todda00:friendly-slugs"]={}}();
|
||
|
||
!function(){var t=Package.meteor.Meteor,e=Package.underscore._,a=Package.tracker.Tracker,n=Package.tracker.Deps,r=Package["reactive-dict"].ReactiveDict,i=Package.blaze.Blaze,c=Package.blaze.UI,o=Package.blaze.Handlebars,u=Package.templating.Template,s=Package.spacebars.Spacebars,f=Package.htmljs.HTML,l;(function(){(function(){u.__checkName("MetaTags"),u.MetaTags=new u("Template.MetaTags",function(){var t=this;return i.Each(function(){return s.call(t.lookup("tags"))},function(){return["\n ",s.include(t.lookupTemplate("_MetaTag")),"\n "]})})}).call(this),function(){l={options:{title:"Default Title",suffix:"Suffix for title",separator:" | "},dict:new r,converters:{title:function(t){return e.isFunction(t)&&(t=t()),e.isEmpty(t)?l.options.title||"":(e.isEmpty(l.options.suffix)||(t=t+l.options.separator+l.options.suffix),t)},meta:function(t,a){var n=e.isObject(t)?t:{name:"property",property:t,content:a};return n}},init:function(){l.setTitle("")},config:function(t){e.extend(l.options,t.options),e.extend(l.converters,t.converters)},setVar:function(t,e){l.dict.set(t,e)},getVar:function(t){return l.dict.get(t)},set:function(t,n){var r=t;e.isArray(t)||(r=new Array(t)),r.forEach(function(t,e){var r;a.nonreactive(function(){r=l.getVar("tag")||{}});var i=l.converters.meta(t,n);r[i.property]=i,l.setVar("tag",r)})},unset:function(t){var e;a.nonreactive(function(){e=l.getVar("tag")||{}});var n=l.converters.meta(t);delete e[n.property],l.setVar("tag",e)},unsetAll:function(){e.each(l.arr(),function(t){l.unset(t.property)})},setTitle:function(t){l.setVar("title",l.converters.title(t))},getTitle:function(){return l.getVar("title")},arr:function(){var t=l.getVar("tag");return e.toArray(t)},hash:function(){return l.getVar("tag")}},u.MetaTags.helpers({tags:function(){return l.arr()},_MetaTag:function(){var t={};return t[this.name]=this.property,t.content=this.content,i.Template(function(){return f.META(t)})}}),t.startup(function(){l.init(),i.render(u.MetaTags,document.head),a.autorun(function(){document.title=l.getTitle()})})}.call(this)}).call(this),"undefined"==typeof Package&&(Package={}),Package["yasinuslu:blaze-meta"]={Meta:l}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;(function(){!function(e,t,n){"use strict";!function o(e,t,n){function a(s,l){if(!t[s]){if(!e[s]){var i="function"==typeof require&&require;if(!l&&i)return i(s,!0);if(r)return r(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var c=t[s]={exports:{}};e[s][0].call(c.exports,function(t){var n=e[s][1][t];return a(n?n:t)},c,c.exports,o,e,t,n)}return t[s].exports}for(var r="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(o){var a,r,s,l,i=function(e){return e&&e.__esModule?e:{"default":e}},u=o("./modules/handle-dom"),c=o("./modules/utils"),d=o("./modules/handle-swal-dom"),f=o("./modules/handle-click"),p=o("./modules/handle-key"),m=i(p),v=o("./modules/default-params"),y=i(v),g=o("./modules/set-params"),h=i(g);s=l=function(){function o(e){var t=s;return t[e]===n?y["default"][e]:t[e]}var s=arguments[0];if(u.addClass(t.body,"stop-scrolling"),d.resetInput(),s===n)return c.logStr("SweetAlert expects at least 1 attribute!"),!1;var i=c.extend({},y["default"]);switch(typeof s){case"string":i.title=s,i.text=arguments[1]||"",i.type=arguments[2]||"";break;case"object":if(s.title===n)return c.logStr('Missing "title" argument!'),!1;i.title=s.title;for(var p in y["default"])i[p]=o(p);i.confirmButtonText=i.showCancelButton?"Confirm":y["default"].confirmButtonText,i.confirmButtonText=o("confirmButtonText"),i.doneFunction=arguments[1]||null;break;default:return c.logStr('Unexpected type of argument! Expected "string" or "object", got '+typeof s),!1}h["default"](i),d.fixVerticalPosition(),d.openModal(arguments[1]);for(var v=d.getModal(),g=v.querySelectorAll("button"),b=["onclick","onmouseover","onmouseout","onmousedown","onmouseup","onfocus"],w=function(e){return f.handleButton(e,i,v)},C=0;C<g.length;C++)for(var S=0;S<b.length;S++){var x=b[S];g[C][x]=w}d.getOverlay().onclick=w,a=e.onkeydown;var k=function(e){return m["default"](e,i,v)};e.onkeydown=k,e.onfocus=function(){setTimeout(function(){r!==n&&(r.focus(),r=n)},0)},l.enableButtons()},s.setDefaults=l.setDefaults=function(e){if(!e)throw new Error("userParams is required");if("object"!=typeof e)throw new Error("userParams has to be a object");c.extend(y["default"],e)},s.close=l.close=function(){var o=d.getModal();u.fadeOut(d.getOverlay(),5),u.fadeOut(o,5),u.removeClass(o,"showSweetAlert"),u.addClass(o,"hideSweetAlert"),u.removeClass(o,"visible");var s=o.querySelector(".sa-icon.sa-success");u.removeClass(s,"animate"),u.removeClass(s.querySelector(".sa-tip"),"animateSuccessTip"),u.removeClass(s.querySelector(".sa-long"),"animateSuccessLong");var l=o.querySelector(".sa-icon.sa-error");u.removeClass(l,"animateErrorIcon"),u.removeClass(l.querySelector(".sa-x-mark"),"animateXMark");var i=o.querySelector(".sa-icon.sa-warning");return u.removeClass(i,"pulseWarning"),u.removeClass(i.querySelector(".sa-body"),"pulseWarningIns"),u.removeClass(i.querySelector(".sa-dot"),"pulseWarningIns"),setTimeout(function(){var e=o.getAttribute("data-custom-class");u.removeClass(o,e)},300),u.removeClass(t.body,"stop-scrolling"),e.onkeydown=a,e.previousActiveElement&&e.previousActiveElement.focus(),r=n,clearTimeout(o.timeout),!0},s.showInputError=l.showInputError=function(e){var t=d.getModal(),n=t.querySelector(".sa-input-error");u.addClass(n,"show");var o=t.querySelector(".sa-error-container");u.addClass(o,"show"),o.querySelector("p").innerHTML=e,setTimeout(function(){s.enableButtons()},1),t.querySelector("input").focus()},s.resetInputError=l.resetInputError=function(e){if(e&&13===e.keyCode)return!1;var t=d.getModal(),n=t.querySelector(".sa-input-error");u.removeClass(n,"show");var o=t.querySelector(".sa-error-container");u.removeClass(o,"show")},s.disableButtons=l.disableButtons=function(){var e=d.getModal(),t=e.querySelector("button.confirm"),n=e.querySelector("button.cancel");t.disabled=!0,n.disabled=!0},s.enableButtons=l.enableButtons=function(){var e=d.getModal(),t=e.querySelector("button.confirm"),n=e.querySelector("button.cancel");t.disabled=!1,n.disabled=!1},"undefined"!=typeof e?e.sweetAlert=e.swal=s:c.logStr("SweetAlert is a frontend module!")},{"./modules/default-params":2,"./modules/handle-click":3,"./modules/handle-dom":4,"./modules/handle-key":5,"./modules/handle-swal-dom":6,"./modules/set-params":8,"./modules/utils":9}],2:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var o={title:"",text:"",type:null,allowOutsideClick:!1,showConfirmButton:!0,showCancelButton:!1,closeOnConfirm:!0,closeOnCancel:!0,confirmButtonText:"OK",confirmButtonColor:"#8CD4F5",cancelButtonText:"Cancel",imageUrl:null,imageSize:null,timer:null,customClass:"",html:!1,animation:!0,allowEscapeKey:!0,inputType:"text",inputPlaceholder:"",inputValue:"",showLoaderOnConfirm:!1};n["default"]=o,t.exports=n["default"]},{}],3:[function(t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var a=t("./utils"),r=(t("./handle-swal-dom"),t("./handle-dom")),s=function(t,n,o){function s(e){m&&n.confirmButtonColor&&(p.style.backgroundColor=e)}var u,c,d,f=t||e.event,p=f.target||f.srcElement,m=-1!==p.className.indexOf("confirm"),v=-1!==p.className.indexOf("sweet-overlay"),y=r.hasClass(o,"visible"),g=n.doneFunction&&"true"===o.getAttribute("data-has-done-function");switch(m&&n.confirmButtonColor&&(u=n.confirmButtonColor,c=a.colorLuminance(u,-.04),d=a.colorLuminance(u,-.14)),f.type){case"mouseover":s(c);break;case"mouseout":s(u);break;case"mousedown":s(d);break;case"mouseup":s(c);break;case"focus":var h=o.querySelector("button.confirm"),b=o.querySelector("button.cancel");m?b.style.boxShadow="none":h.style.boxShadow="none";break;case"click":var w=o===p,C=r.isDescendant(o,p);if(!w&&!C&&y&&!n.allowOutsideClick)break;m&&g&&y?l(o,n):g&&y||v?i(o,n):r.isDescendant(o,p)&&"BUTTON"===p.tagName&&sweetAlert.close()}},l=function(e,t){var n=!0;r.hasClass(e,"show-input")&&(n=e.querySelector("input").value,n||(n="")),t.doneFunction(n),t.closeOnConfirm&&sweetAlert.close(),t.showLoaderOnConfirm&&sweetAlert.disableButtons()},i=function(e,t){var n=String(t.doneFunction).replace(/\s/g,""),o="function("===n.substring(0,9)&&")"!==n.substring(9,10);o&&t.doneFunction(!1),t.closeOnCancel&&sweetAlert.close()};o["default"]={handleButton:s,handleConfirm:l,handleCancel:i},n.exports=o["default"]},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],4:[function(n,o,a){Object.defineProperty(a,"__esModule",{value:!0});var r=function(e,t){return new RegExp(" "+t+" ").test(" "+e.className+" ")},s=function(e,t){r(e,t)||(e.className+=" "+t)},l=function(e,t){var n=" "+e.className.replace(/[\t\r\n]/g," ")+" ";if(r(e,t)){for(;n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className=n.replace(/^\s+|\s+$/g,"")}},i=function(e){var n=t.createElement("div");return n.appendChild(t.createTextNode(e)),n.innerHTML},u=function(e){e.style.opacity="",e.style.display="block"},c=function(e){if(e&&!e.length)return u(e);for(var t=0;t<e.length;++t)u(e[t])},d=function(e){e.style.opacity="",e.style.display="none"},f=function(e){if(e&&!e.length)return d(e);for(var t=0;t<e.length;++t)d(e[t])},p=function(e,t){for(var n=t.parentNode;null!==n;){if(n===e)return!0;n=n.parentNode}return!1},m=function(e){e.style.left="-9999px",e.style.display="block";var t,n=e.clientHeight;return t="undefined"!=typeof getComputedStyle?parseInt(getComputedStyle(e).getPropertyValue("padding-top"),10):parseInt(e.currentStyle.padding),e.style.left="",e.style.display="none","-"+parseInt((n+t)/2)+"px"},v=function(e,t){if(+e.style.opacity<1){t=t||16,e.style.opacity=0,e.style.display="block";var n=+new Date,o=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.style.opacity=+e.style.opacity+(new Date-n)/100,n=+new Date,+e.style.opacity<1&&setTimeout(o,t)});o()}e.style.display="block"},y=function(e,t){t=t||16,e.style.opacity=1;var n=+new Date,o=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.style.opacity=+e.style.opacity-(new Date-n)/100,n=+new Date,+e.style.opacity>0?setTimeout(o,t):e.style.display="none"});o()},g=function(n){if("function"==typeof MouseEvent){var o=new MouseEvent("click",{view:e,bubbles:!1,cancelable:!0});n.dispatchEvent(o)}else if(t.createEvent){var a=t.createEvent("MouseEvents");a.initEvent("click",!1,!1),n.dispatchEvent(a)}else t.createEventObject?n.fireEvent("onclick"):"function"==typeof n.onclick&&n.onclick()},h=function(t){"function"==typeof t.stopPropagation?(t.stopPropagation(),t.preventDefault()):e.event&&e.event.hasOwnProperty("cancelBubble")&&(e.event.cancelBubble=!0)};a.hasClass=r,a.addClass=s,a.removeClass=l,a.escapeHtml=i,a._show=u,a.show=c,a._hide=d,a.hide=f,a.isDescendant=p,a.getTopMargin=m,a.fadeIn=v,a.fadeOut=y,a.fireClick=g,a.stopEventPropagation=h},{}],5:[function(t,o,a){Object.defineProperty(a,"__esModule",{value:!0});var r=t("./handle-dom"),s=t("./handle-swal-dom"),l=function(t,o,a){var l=t||e.event,i=l.keyCode||l.which,u=a.querySelector("button.confirm"),c=a.querySelector("button.cancel"),d=a.querySelectorAll("button[tabindex]");if(-1!==[9,13,32,27].indexOf(i)){for(var f=l.target||l.srcElement,p=-1,m=0;m<d.length;m++)if(f===d[m]){p=m;break}9===i?(f=-1===p?u:p===d.length-1?d[0]:d[p+1],r.stopEventPropagation(l),f.focus(),o.confirmButtonColor&&s.setFocusStyle(f,o.confirmButtonColor)):13===i?("INPUT"===f.tagName&&(f=u,u.focus()),f=-1===p?u:n):27===i&&o.allowEscapeKey===!0?(f=c,r.fireClick(f,l)):f=n}};a["default"]=l,o.exports=a["default"]},{"./handle-dom":4,"./handle-swal-dom":6}],6:[function(n,o,a){var r=function(e){return e&&e.__esModule?e:{"default":e}};Object.defineProperty(a,"__esModule",{value:!0});var s=n("./utils"),l=n("./handle-dom"),i=n("./default-params"),u=r(i),c=n("./injected-html"),d=r(c),f=".sweet-alert",p=".sweet-overlay",m=function(){var e=t.createElement("div");for(e.innerHTML=d["default"];e.firstChild;)t.body.appendChild(e.firstChild)},v=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=t.querySelector(f);return e||(m(),e=v()),e}),y=function(){var e=v();return e?e.querySelector("input"):void 0},g=function(){return t.querySelector(p)},h=function(e,t){var n=s.hexToRgb(t);e.style.boxShadow="0 0 2px rgba("+n+", 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)"},b=function(n){var o=v();l.fadeIn(g(),10),l.show(o),l.addClass(o,"showSweetAlert"),l.removeClass(o,"hideSweetAlert"),e.previousActiveElement=t.activeElement;var a=o.querySelector("button.confirm");a.focus(),setTimeout(function(){l.addClass(o,"visible")},500);var r=o.getAttribute("data-timer");if("null"!==r&&""!==r){var s=n;o.timeout=setTimeout(function(){var e=(s||null)&&"true"===o.getAttribute("data-has-done-function");e?s(null):sweetAlert.close()},r)}},w=function(){var e=v(),t=y();l.removeClass(e,"show-input"),t.value=u["default"].inputValue,t.setAttribute("type",u["default"].inputType),t.setAttribute("placeholder",u["default"].inputPlaceholder),C()},C=function(e){if(e&&13===e.keyCode)return!1;var t=v(),n=t.querySelector(".sa-input-error");l.removeClass(n,"show");var o=t.querySelector(".sa-error-container");l.removeClass(o,"show")},S=function(){var e=v();e.style.marginTop=l.getTopMargin(v())};a.sweetAlertInitialize=m,a.getModal=v,a.getOverlay=g,a.getInput=y,a.setFocusStyle=h,a.openModal=b,a.resetInput=w,a.resetInputError=C,a.fixVerticalPosition=S},{"./default-params":2,"./handle-dom":4,"./injected-html":7,"./utils":9}],7:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var o='<div class="sweet-overlay" tabIndex="-1"></div><div class="sweet-alert"><div class="sa-icon sa-error">\n <span class="sa-x-mark">\n <span class="sa-line sa-left"></span>\n <span class="sa-line sa-right"></span>\n </span>\n </div><div class="sa-icon sa-warning">\n <span class="sa-body"></span>\n <span class="sa-dot"></span>\n </div><div class="sa-icon sa-info"></div><div class="sa-icon sa-success">\n <span class="sa-line sa-tip"></span>\n <span class="sa-line sa-long"></span>\n\n <div class="sa-placeholder"></div>\n <div class="sa-fix"></div>\n </div><div class="sa-icon sa-custom"></div><h2>Title</h2>\n <p>Text</p>\n <fieldset>\n <input type="text" tabIndex="3" />\n <div class="sa-input-error"></div>\n </fieldset><div class="sa-error-container">\n <div class="icon">!</div>\n <p>Not valid!</p>\n </div><div class="sa-button-container">\n <button class="cancel" tabIndex="2">Cancel</button>\n <div class="sa-confirm-button-container">\n <button class="confirm" tabIndex="1">OK</button><div class="la-ball-fall">\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>\n </div></div>';n["default"]=o,t.exports=n["default"]},{}],8:[function(e,t,o){Object.defineProperty(o,"__esModule",{value:!0});var a=e("./utils"),r=e("./handle-swal-dom"),s=e("./handle-dom"),l=["error","warning","info","success","input","prompt"],i=function(e){var t=r.getModal(),o=t.querySelector("h2"),i=t.querySelector("p"),u=t.querySelector("button.cancel"),c=t.querySelector("button.confirm");if(o.innerHTML=e.html?e.title:s.escapeHtml(e.title).split("\n").join("<br>"),i.innerHTML=e.html?e.text:s.escapeHtml(e.text||"").split("\n").join("<br>"),e.text&&s.show(i),e.customClass)s.addClass(t,e.customClass),t.setAttribute("data-custom-class",e.customClass);else{var d=t.getAttribute("data-custom-class");s.removeClass(t,d),t.setAttribute("data-custom-class","")}if(s.hide(t.querySelectorAll(".sa-icon")),e.type&&!a.isIE8()){var f=function(){for(var o=!1,a=0;a<l.length;a++)if(e.type===l[a]){o=!0;break}if(!o)return logStr("Unknown alert type: "+e.type),{v:!1};var i=["success","error","warning","info"],u=n;-1!==i.indexOf(e.type)&&(u=t.querySelector(".sa-icon.sa-"+e.type),s.show(u));var c=r.getInput();switch(e.type){case"success":s.addClass(u,"animate"),s.addClass(u.querySelector(".sa-tip"),"animateSuccessTip"),s.addClass(u.querySelector(".sa-long"),"animateSuccessLong");break;case"error":s.addClass(u,"animateErrorIcon"),s.addClass(u.querySelector(".sa-x-mark"),"animateXMark");break;case"warning":s.addClass(u,"pulseWarning"),s.addClass(u.querySelector(".sa-body"),"pulseWarningIns"),s.addClass(u.querySelector(".sa-dot"),"pulseWarningIns");break;case"input":case"prompt":c.setAttribute("type",e.inputType),c.value=e.inputValue,c.setAttribute("placeholder",e.inputPlaceholder),s.addClass(t,"show-input"),setTimeout(function(){c.focus(),c.addEventListener("keyup",swal.resetInputError)},400)}}();if("object"==typeof f)return f.v}if(e.imageUrl){var p=t.querySelector(".sa-icon.sa-custom");p.style.backgroundImage="url("+e.imageUrl+")",s.show(p);var m=80,v=80;if(e.imageSize){var y=e.imageSize.toString().split("x"),g=y[0],h=y[1];g&&h?(m=g,v=h):logStr("Parameter imageSize expects value with format WIDTHxHEIGHT, got "+e.imageSize)}p.setAttribute("style",p.getAttribute("style")+"width:"+m+"px; height:"+v+"px")}t.setAttribute("data-has-cancel-button",e.showCancelButton),e.showCancelButton?u.style.display="inline-block":s.hide(u),t.setAttribute("data-has-confirm-button",e.showConfirmButton),e.showConfirmButton?c.style.display="inline-block":s.hide(c),e.cancelButtonText&&(u.innerHTML=s.escapeHtml(e.cancelButtonText)),e.confirmButtonText&&(c.innerHTML=s.escapeHtml(e.confirmButtonText)),e.confirmButtonColor&&(c.style.backgroundColor=e.confirmButtonColor,c.style.borderLeftColor=e.confirmLoadingButtonColor,c.style.borderRightColor=e.confirmLoadingButtonColor,r.setFocusStyle(c,e.confirmButtonColor)),t.setAttribute("data-allow-outside-click",e.allowOutsideClick);var b=e.doneFunction?!0:!1;t.setAttribute("data-has-done-function",b),e.animation?"string"==typeof e.animation?t.setAttribute("data-animation",e.animation):t.setAttribute("data-animation","pop"):t.setAttribute("data-animation","none"),t.setAttribute("data-timer",e.timer)};o["default"]=i,t.exports=o["default"]},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],9:[function(t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var a=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},r=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16):null},s=function(){return e.attachEvent&&!e.addEventListener},l=function(t){e.console&&e.console.log("SweetAlert: "+t)},i=function(e,t){e=String(e).replace(/[^0-9a-f]/gi,""),e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;var n,o,a="#";for(o=0;3>o;o++)n=parseInt(e.substr(2*o,2),16),n=Math.round(Math.min(Math.max(0,n+n*t),255)).toString(16),a+=("00"+n).substr(n.length);return a};o.extend=a,o.hexToRgb=r,o.isIE8=s,o.logStr=l,o.colorLuminance=i},{}]},{},[1]),"function"==typeof define&&define.amd?define(function(){return sweetAlert}):"undefined"!=typeof module&&module.exports&&(module.exports=sweetAlert)}(window,document)}).call(this),"undefined"==typeof Package&&(Package={}),Package["smoral:sweetalert"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package["kadira:flow-router"].FlowRouter,n=Package["rocketchat:lib"].RocketChat,a=Package["accounts-base"].Accounts,o=Package["accounts-base"].AccountsClient,i=Package.underscore._,r=Package.ecmascript.ECMAScript,c=Package["reactive-var"].ReactiveVar,s=Package.http.HTTP,g=Package.tracker.Tracker,l=Package.tracker.Deps,u=Package["tap:i18n"].TAPi18next,f=Package["tap:i18n"].TAPi18n,k=Package["babel-runtime"].babelHelpers,d=Package["ecmascript-runtime"].Symbol,p=Package["ecmascript-runtime"].Map,m=Package["ecmascript-runtime"].Set,h=Package.promise.Promise;(function(){var e=a._unstoreLoginToken;a._unstoreLoginToken=function(){n.iframeLogin.tryLogin(),e.apply(a,arguments)};var o=function(){function e(){var o=this;k.classCallCheck(this,e),this.enabled=!1,this.reactiveIframeUrl=new c,this.reactiveEnabled=new c,this.iframeUrl=void 0,this.apiUrl=void 0,this.apiMethod=void 0,g.autorun(function(e){return o.enabled=n.settings.get("Accounts_iframe_enabled"),o.reactiveEnabled.set(o.enabled),o.iframeUrl=n.settings.get("Accounts_iframe_url"),o.apiUrl=n.settings.get("Accounts_Iframe_api_url"),o.apiMethod=n.settings.get("Accounts_Iframe_api_method"),o.enabled===!1?e.stop():void(o.enabled===!0&&o.iframeUrl&&o.apiUrl&&o.apiMethod&&t.subsReady("userData","activeUsers")&&(e.stop(),a._storedLoginToken()||o.tryLogin(function(){})))})}return e.prototype.tryLogin=function(){function e(e){var t=this;if(this.enabled&&this.iframeUrl&&this.apiUrl&&this.apiMethod){console.log("tryLogin");var n={beforeSend:function(e){e.withCredentials=!0}},a=this.iframeUrl,o="?";a.indexOf("?")>-1&&(o="&"),window.cordova?a+=o+"client=cordova":navigator.userAgent.indexOf("Electron")>-1&&(a+=o+"client=electron"),s.call(this.apiMethod,this.apiUrl,n,function(n,o){console.log(n,o),o&&o.data&&o.data.token?(o.data.token="yaMadZ1RMBdMzs6kGycKybrHVptoDl7nokxtorz1me0",t.loginWithToken(o.data.token,function(n,o){n?t.reactiveIframeUrl.set(a):t.reactiveIframeUrl.set(),e(n,o)})):(t.reactiveIframeUrl.set(a),e(n,o))})}}return e}(),e.prototype.loginWithToken=function(){function e(e,t){this.enabled&&(console.log("loginWithToken"),a.callLoginMethod({methodArguments:[{iframe:!0,token:e}],userCallback:function(e){e&&t(e)}}))}return e}(),e}();n.iframeLogin=new o,window.addEventListener("message",function(e){if(i.isObject(e.data))switch(console.log(e),e.data.event){case"try-iframe-login":n.iframeLogin.tryLogin(function(t){t&&e.source.postMessage({event:"login-error",response:t.message},e.origin)});break;case"loggin-with-token":n.iframeLogin.loginWithToken(e.data.token,function(t){t&&e.source.postMessage({event:"login-error",response:t.message},e.origin)});break;case"call-facebook-login":var t=function(t){e.source.postMessage({event:"facebook-login-success",response:t},e.origin)},a=function(t,n){e.source.postMessage({event:"facebook-login-error",error:t,response:n},e.origin)};if("undefined"==typeof facebookConnectPlugin)return a("no-native-plugin");facebookConnectPlugin.getLoginStatus(function(n){return"connected"===n.status?t(n):void facebookConnectPlugin.login(e.data.permissions,t,function(e){return a("login-error",e)})},function(e){return a("get-status-error",e)})}})}).call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:iframe-login"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,t=Package.underscore._,i=Package.templating.Template,h=Package["underscorestring:underscore.string"].s,a=Package["rocketchat:lib"].RocketChat,l=Package.blaze.Blaze,r=Package.blaze.UI,p=Package.blaze.Handlebars,s=Package.spacebars.Spacebars,c=Package["tap:i18n"].TAPi18next,n=Package["tap:i18n"].TAPi18n,o=Package.htmljs.HTML,g;(function(){g="object"==typeof g?g:{};var i=g,r,p;r=function(){function e(){}var i;return e.prototype.delimiters_map={"\\[":{closer:"\\]",displayMode:!0},"\\(":{closer:"\\)",displayMode:!1}},e.prototype.find_opening_delimiter=function(e){var t,i,h,a,l,r,p;return a=function(){var i,h;i=this.delimiters_map,h=[];for(t in i)l=i[t],h.push({options:l,pos:e.indexOf(t)});return h}.call(this),p=function(){var e,i,h;for(h=[],e=0,i=a.length;i>e;e++)t=a[e],t.pos>=0&&h.push(t.pos);return h}(),0===p.length?null:(r=Math.min.apply(Math,p),h=function(){var e,i,h;for(h=[],e=0,i=a.length;i>e;e++)t=a[e],h.push(t.pos);return h}().indexOf(r),i=a[h])},i=function(){function e(){}return e.prototype.length=function(){return this.end-this.start},e}(),e.prototype.get_latex_boundaries=function(e,t){var h,a,l,r;return l=new i,r=new i,h=t.options.closer,r.start=t.pos,l.start=t.pos+h.length,a=e.substr(l.start).indexOf(h),0>a?null:(l.end=l.start+a,r.end=l.end+h.length,{outer:r,inner:l})},e.prototype.find_latex=function(e){var t,i;return e.length&&null!=(i=this.find_opening_delimiter(e))?(t=this.get_latex_boundaries(e,i),null!=t&&(t.options=i.options),t):null},e.prototype.extract_latex=function(e,t){var i,a,l;return a=e.substr(0,t.outer.start),i=e.substr(t.outer.end),l=e.substr(t.inner.start,t.inner.length()),l=h.unescapeHTML(l),{before:a,latex:l,after:i}},e.prototype.render_latex=function(e,t){var i,h,a;try{a=katex.renderToString(e,{displayMode:t})}catch(l){h=l,i=t?"block":"inline",a='<div class="katex-error katex-'+i+'-error">',a+=""+h.message,a+="</div>"}return a},e.prototype.render=function(e){var t,i,h,a;for(a="";;){if(t=this.find_latex(e),null==t){a+=e;break}i=this.extract_latex(e,t),h=this.render_latex(i.latex,t.options.displayMode),a+=i.before+h,e=i.after}return a},e.prototype.render_message=function(e){var i;if(a.settings.get("Katex_Enabled")){if(i=e,!t.isString(e)){if(!t.trim(e.html))return e;i=e.html}i=this.render(i),t.isString(e)?e=i:e.html=i}return e},e}(),a.katex=new r,p=a.katex.render_message.bind(a.katex),a.callbacks.add("renderMessage",p),e.isClient&&l.registerHelper("RocketChatKatex",function(e){return a.katex.render_message(e)})}).call(this),function(){!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.katex=e()}}(function(){var e,t,i;return function h(e,t,i){function a(r,p){if(!t[r]){if(!e[r]){var s="function"==typeof require&&require;if(!p&&s)return s(r,!0);if(l)return l(r,!0);var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var n=t[r]={exports:{}};e[r][0].call(n.exports,function(t){var i=e[r][1][t];return a(i?i:t)},n,n.exports,h,e,t,i)}return t[r].exports}for(var l="function"==typeof require&&require,r=0;r<i.length;r++)a(i[r]);return a}({1:[function(e,t,i){var h=e("./src/ParseError"),a=e("./src/Settings"),l=e("./src/buildTree"),r=e("./src/parseTree"),p=e("./src/utils"),s=function(e,t,i){p.clearNode(t);var h=new a(i),s=r(e,h),c=l(s,e,h).toNode();t.appendChild(c)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),s=function(){throw new h("KaTeX doesn't work in quirks mode.")});var c=function(e,t){var i=new a(t),h=r(e,i);return l(h,e,i).toMarkup()},n=function(e,t){var i=new a(t);return r(e,i)};t.exports={render:s,renderToString:c,__parse:n,ParseError:h}},{"./src/ParseError":5,"./src/Settings":7,"./src/buildTree":12,"./src/parseTree":21,"./src/utils":23}],2:[function(e,t,i){"use strict";function h(e){if(!e.__matchAtRelocatable){var t=e.source+"|()",i="g"+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"");e.__matchAtRelocatable=new RegExp(t,i)}return e.__matchAtRelocatable}function a(e,t,i){if(e.global||e.sticky)throw new Error("matchAt(...): Only non-global regexes are supported");var a=h(e);a.lastIndex=i;var l=a.exec(t);return null==l[l.length-1]?(l.length=l.length-1,l):null}t.exports=a},{}],3:[function(e,t,i){function h(e){this._input=e}function a(e,t,i){this.text=e,this.data=t,this.position=i}var l=e("match-at"),r=e("./ParseError"),p=[/[/|@.""`0-9a-zA-Z]/,/[*+-]/,/[=<>:]/,/[,;]/,/['\^_{}]/,/[(\[]/,/[)\]?!]/,/~/,/&/,/\\\\/],s=[/[a-zA-Z0-9`!@*()-=+\[\]'";:?\/.,]/,/[{}]/,/~/,/&/,/\\\\/],c=/\s*/,n=/ +|\\ +/,o=/\\(?:[a-zA-Z]+|.)/;h.prototype._innerLex=function(e,t,i){var h=this._input,p;if(i)p=l(c,h,e)[0],e+=p.length;else if(p=l(n,h,e),null!==p)return new a(" ",null,e+p[0].length);if(e===h.length)return new a("EOF",null,e);var s;if(s=l(o,h,e))return new a(s[0],null,e+s[0].length);for(var g=0;g<t.length;g++){var d=t[g];if(s=l(d,h,e))return new a(s[0],null,e+s[0].length)}throw new r("Unexpected character: '"+h[e]+"'",this,e)};var g=/#[a-z0-9]+|[a-z]+/i;h.prototype._innerLexColor=function(e){var t=this._input,i=l(c,t,e)[0];e+=i.length;var h;if(h=l(g,t,e))return new a(h[0],null,e+h[0].length);throw new r("Invalid color",this,e)};var d=/(-?)\s*(\d+(?:\.\d*)?|\.\d+)\s*([a-z]{2})/;h.prototype._innerLexSize=function(e){var t=this._input,i=l(c,t,e)[0];e+=i.length;var h;if(h=l(d,t,e)){var p=h[3];if("em"!==p&&"ex"!==p)throw new r("Invalid unit: '"+p+"'",this,e);return new a(h[0],{number:+(h[1]+h[2]),unit:p},e+h[0].length)}throw new r("Invalid size",this,e)},h.prototype._innerLexWhitespace=function(e){var t=this._input,i=l(c,t,e)[0];return e+=i.length,new a(i[0],null,e)},h.prototype.lex=function(e,t){return"math"===t?this._innerLex(e,p,!0):"text"===t?this._innerLex(e,s,!1):"color"===t?this._innerLexColor(e):"size"===t?this._innerLexSize(e):"whitespace"===t?this._innerLexWhitespace(e):void 0},t.exports=h},{"./ParseError":5,"match-at":2}],4:[function(e,t,i){function h(e){this.style=e.style,this.color=e.color,this.size=e.size,this.phantom=e.phantom,this.font=e.font,void 0===e.parentStyle?this.parentStyle=e.style:this.parentStyle=e.parentStyle,void 0===e.parentSize?this.parentSize=e.size:this.parentSize=e.parentSize}h.prototype.extend=function(e){var t={style:this.style,size:this.size,color:this.color,parentStyle:this.style,parentSize:this.size,phantom:this.phantom,font:this.font};for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return new h(t)},h.prototype.withStyle=function(e){return this.extend({style:e})},h.prototype.withSize=function(e){return this.extend({size:e})},h.prototype.withColor=function(e){return this.extend({color:e})},h.prototype.withPhantom=function(){return this.extend({phantom:!0})},h.prototype.withFont=function(e){return this.extend({font:e})},h.prototype.reset=function(){return this.extend({})};var a={"katex-blue":"#6495ed","katex-orange":"#ffa500","katex-pink":"#ff00af","katex-red":"#df0030","katex-green":"#28ae7b","katex-gray":"gray","katex-purple":"#9d38bd","katex-blueA":"#c7e9f1","katex-blueB":"#9cdceb","katex-blueC":"#58c4dd","katex-blueD":"#29abca","katex-blueE":"#1c758a","katex-tealA":"#acead7","katex-tealB":"#76ddc0","katex-tealC":"#5cd0b3","katex-tealD":"#55c1a7","katex-tealE":"#49a88f","katex-greenA":"#c9e2ae","katex-greenB":"#a6cf8c","katex-greenC":"#83c167","katex-greenD":"#77b05d","katex-greenE":"#699c52","katex-goldA":"#f7c797","katex-goldB":"#f9b775","katex-goldC":"#f0ac5f","katex-goldD":"#e1a158","katex-goldE":"#c78d46","katex-redA":"#f7a1a3","katex-redB":"#ff8080","katex-redC":"#fc6255","katex-redD":"#e65a4c","katex-redE":"#cf5044","katex-maroonA":"#ecabc1","katex-maroonB":"#ec92ab","katex-maroonC":"#c55f73","katex-maroonD":"#a24d61","katex-maroonE":"#94424f","katex-purpleA":"#caa3e8","katex-purpleB":"#b189c6","katex-purpleC":"#9a72ac","katex-purpleD":"#715582","katex-purpleE":"#644172","katex-mintA":"#f5f9e8","katex-mintB":"#edf2df","katex-mintC":"#e0e5cc","katex-grayA":"#fdfdfd","katex-grayB":"#f7f7f7","katex-grayC":"#eeeeee","katex-grayD":"#dddddd","katex-grayE":"#cccccc","katex-grayF":"#aaaaaa","katex-grayG":"#999999","katex-grayH":"#555555","katex-grayI":"#333333","katex-kaBlue":"#314453","katex-kaGreen":"#639b24"};h.prototype.getColor=function(){return this.phantom?"transparent":a[this.color]||this.color},t.exports=h},{}],5:[function(e,t,i){function h(e,t,i){var a="KaTeX parse error: "+e;if(void 0!==t&&void 0!==i){a+=" at position "+i+": ";var l=t._input;l=l.slice(0,i)+"̲"+l.slice(i);var r=Math.max(0,i-15),p=i+15;a+=l.slice(r,p)}var s=new Error(a);return s.name="ParseError",s.__proto__=h.prototype,s.position=i,s}h.prototype.__proto__=Error.prototype,t.exports=h},{}],6:[function(e,t,i){function h(e,t){this.lexer=new p(e),this.settings=t}function a(e,t){this.result=e,this.isFunction=t}var l=e("./functions"),r=e("./environments"),p=e("./Lexer"),s=e("./symbols"),c=e("./utils"),n=e("./parseData"),o=e("./ParseError"),g=n.ParseNode,d=n.ParseResult;h.prototype.expect=function(e,t){if(e.text!==t)throw new o("Expected '"+t+"', got '"+e.text+"'",this.lexer,e.position)},h.prototype.parse=function(e){var t=this.parseInput(0,"math");return t.result},h.prototype.parseInput=function(e,t){var i=this.parseExpression(e,t,!1);return this.expect(i.peek,"EOF"),i};var w=["}","\\end","\\right","&","\\\\","\\cr"];h.prototype.parseExpression=function(e,t,i,h){for(var a=[],l=null;;){if(l=this.lexer.lex(e,t),-1!==w.indexOf(l.text))break;if(h&&l.text===h)break;var r=this.parseAtom(e,t);if(!r){if(!this.settings.throwOnError&&"\\"===l.text[0]){var p=this.handleUnsupportedCmd(l.text,t);a.push(p),e=l.position;continue}break}if(i&&"infix"===r.result.type)break;a.push(r.result),e=r.position}var s=new d(this.handleInfixNodes(a,t),e);return s.peek=l,s},h.prototype.handleInfixNodes=function(e,t){for(var i=-1,h,a,r=0;r<e.length;r++){var p=e[r];if("infix"===p.type){if(-1!==i)throw new o("only one infix operator per group",this.lexer,-1);i=r,a=p.value.replaceWith,h=l.funcs[a]}}if(-1!==i){var s,c,n=e.slice(0,i),d=e.slice(i+1);s=1===n.length&&"ordgroup"===n[0].type?n[0]:new g("ordgroup",n,t),c=1===d.length&&"ordgroup"===d[0].type?d[0]:new g("ordgroup",d,t);var w=h.handler(a,s,c);return[new g(w.type,w,t)]}return e};var u=1;h.prototype.handleSupSubscript=function(e,t,i,h){var a=this.parseGroup(e,t);if(a){if(a.isFunction){var r=l.funcs[a.result.result].greediness;if(r>u)return this.parseFunction(e,t);throw new o("Got function '"+a.result.result+"' with no arguments as "+h,this.lexer,e)}return a.result}var p=this.lexer.lex(e,t);if(this.settings.throwOnError||"\\"!==p.text[0])throw new o("Expected group after '"+i+"'",this.lexer,e);return new d(this.handleUnsupportedCmd(p.text,t),p.position)},h.prototype.handleUnsupportedCmd=function(e,t){for(var i=[],h=0;h<e.length;h++)i.push(new g("textord",e[h],"text"));var a=new g("text",{body:i,type:"text"},t),l=new g("color",{color:this.settings.errorColor,value:[a],type:"color"},t);return l},h.prototype.parseAtom=function(e,t){var i=this.parseImplicitGroup(e,t);if("text"===t)return i;var h;i?h=i.position:(h=e,i=void 0);for(var a,l,r;;){var p=this.lexer.lex(h,t);if("\\limits"===p.text||"\\nolimits"===p.text){if(!i||"op"!==i.result.type)throw new o("Limit controls must follow a math operator",this.lexer,h);var s="\\limits"===p.text;i.result.value.limits=s,i.result.value.alwaysHandleSupSub=!0,h=p.position}else if("^"===p.text){if(a)throw new o("Double superscript",this.lexer,h);r=this.handleSupSubscript(p.position,t,p.text,"superscript"),h=r.position,a=r.result}else if("_"===p.text){if(l)throw new o("Double subscript",this.lexer,h);r=this.handleSupSubscript(p.position,t,p.text,"subscript"),h=r.position,l=r.result}else{if("'"!==p.text)break;var c=new g("textord","\\prime",t),n=[c];for(h=p.position;"'"===(p=this.lexer.lex(h,t)).text;)n.push(c),h=p.position;a=new g("ordgroup",n,t)}}return a||l?new d(new g("supsub",{base:i&&i.result,sup:a,sub:l},t),h):i};var k=["\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],m=["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"];h.prototype.parseImplicitGroup=function(e,t){var i=this.parseSymbol(e,t);if(!i||!i.result)return this.parseFunction(e,t);var h=i.result.result,a;if("\\left"===h){var l=this.parseFunction(e,t);a=this.parseExpression(l.position,t,!1),this.expect(a.peek,"\\right");var p=this.parseFunction(a.position,t);return new d(new g("leftright",{body:a.result,left:l.result.value.value,right:p.result.value.value},t),p.position)}if("\\begin"===h){var s=this.parseFunction(e,t),n=s.result.value.name;if(!r.hasOwnProperty(n))throw new o("No such environment: "+n,this.lexer,s.result.value.namepos);var w=r[n],u=[null,t,n],f=this.parseArguments(s.position,t,"\\begin{"+n+"}",w,u);u[0]=f;var v=w.handler.apply(this,u),y=this.lexer.lex(v.position,t);this.expect(y,"\\end");var x=this.parseFunction(v.position,t);if(x.result.value.name!==n)throw new o("Mismatch: \\begin{"+n+"} matched by \\end{"+x.result.value.name+"}",this.lexer,x.namepos);return v.position=x.position,v}return c.contains(k,h)?(a=this.parseExpression(i.result.position,t,!1),new d(new g("sizing",{size:"size"+(c.indexOf(k,h)+1),value:a.result},t),a.position)):c.contains(m,h)?(a=this.parseExpression(i.result.position,t,!0),new d(new g("styling",{style:h.slice(1,h.length-5),value:a.result},t),a.position)):this.parseFunction(e,t)},h.prototype.parseFunction=function(e,t){var i=this.parseGroup(e,t);if(i){if(i.isFunction){var h=i.result.result,a=l.funcs[h];if("text"===t&&!a.allowedInText)throw new o("Can't use function '"+h+"' in text mode",this.lexer,i.position);var r=[h],p=this.parseArguments(i.result.position,t,h,a,r),s=l.funcs[h].handler.apply(this,r);return new d(new g(s.type,s,t),p)}return i.result}return null},h.prototype.parseArguments=function(e,t,i,h,r){var p=h.numArgs+h.numOptionalArgs;if(0===p)return e;for(var s=e,c=h.greediness,n=[s],g=0;p>g;g++){var w=h.argTypes&&h.argTypes[g],u;if(g<h.numOptionalArgs){if(u=w?this.parseSpecialGroup(s,w,t,!0):this.parseOptionalGroup(s,t),!u){r.push(null),n.push(s);continue}}else if(u=w?this.parseSpecialGroup(s,w,t):this.parseGroup(s,t),!u){var k=this.lexer.lex(s,t);if(this.settings.throwOnError||"\\"!==k.text[0])throw new o("Expected group after '"+i+"'",this.lexer,e);u=new a(new d(this.handleUnsupportedCmd(k.text,t),k.position),!1)}var m;if(u.isFunction){var f=l.funcs[u.result.result].greediness;if(!(f>c))throw new o("Got function '"+u.result.result+"' as argument to '"+i+"'",this.lexer,u.result.position-1);m=this.parseFunction(s,t)}else m=u.result;r.push(m.result),n.push(m.position),s=m.position}return r.push(n),s},h.prototype.parseSpecialGroup=function(e,t,i,h){if("original"===t&&(t=i),"color"===t||"size"===t){var l=this.lexer.lex(e,i);if(h&&"["!==l.text)return null;this.expect(l,h?"[":"{");var r=this.lexer.lex(l.position,t),p;p="color"===t?r.text:r.data;var s=this.lexer.lex(r.position,i);return this.expect(s,h?"]":"}"),new a(new d(new g(t,p,i),s.position),!1)}if("text"===t){var c=this.lexer.lex(e,"whitespace");e=c.position}return h?this.parseOptionalGroup(e,t):this.parseGroup(e,t)},h.prototype.parseGroup=function(e,t){var i=this.lexer.lex(e,t);if("{"===i.text){var h=this.parseExpression(i.position,t,!1),l=this.lexer.lex(h.position,t);return this.expect(l,"}"),new a(new d(new g("ordgroup",h.result,t),l.position),!1)}return this.parseSymbol(e,t)},h.prototype.parseOptionalGroup=function(e,t){var i=this.lexer.lex(e,t);if("["===i.text){var h=this.parseExpression(i.position,t,!1,"]"),l=this.lexer.lex(h.position,t);return this.expect(l,"]"),new a(new d(new g("ordgroup",h.result,t),l.position),!1)}return null},h.prototype.parseSymbol=function(e,t){var i=this.lexer.lex(e,t);return l.funcs[i.text]?new a(new d(i.text,i.position),!0):s[t][i.text]?new a(new d(new g(s[t][i.text].group,i.text,t),i.position),!1):null},h.prototype.ParseNode=g,t.exports=h},{"./Lexer":3,"./ParseError":5,"./environments":15,"./functions":18,"./parseData":20,"./symbols":22,"./utils":23}],7:[function(e,t,i){function h(e,t){return void 0===e?t:e}function a(e){e=e||{},this.displayMode=h(e.displayMode,!1),this.throwOnError=h(e.throwOnError,!0),this.errorColor=h(e.errorColor,"#cc0000")}t.exports=a},{}],8:[function(e,t,i){function h(e,t,i,h){this.id=e,this.size=t,this.cramped=h,this.sizeMultiplier=i}h.prototype.sup=function(){return w[u[this.id]]},h.prototype.sub=function(){return w[k[this.id]]},h.prototype.fracNum=function(){return w[m[this.id]]},h.prototype.fracDen=function(){return w[f[this.id]]},h.prototype.cramp=function(){return w[v[this.id]]},h.prototype.cls=function(){return g[this.size]+(this.cramped?" cramped":" uncramped")},h.prototype.reset=function(){return d[this.size]};var a=0,l=1,r=2,p=3,s=4,c=5,n=6,o=7,g=["displaystyle textstyle","textstyle","scriptstyle","scriptscriptstyle"],d=["reset-textstyle","reset-textstyle","reset-scriptstyle","reset-scriptscriptstyle"],w=[new h(a,0,1,!1),new h(l,0,1,!0),new h(r,1,1,!1),new h(p,1,1,!0),new h(s,2,.7,!1),new h(c,2,.7,!0),new h(n,3,.5,!1),new h(o,3,.5,!0)],u=[s,c,s,c,n,o,n,o],k=[c,c,c,c,o,o,o,o],m=[r,p,s,c,n,o,n,o],f=[p,p,c,c,o,o,o,o],v=[l,l,p,p,c,c,o,o];t.exports={DISPLAY:w[a],TEXT:w[r],SCRIPT:w[s],SCRIPTSCRIPT:w[n]}},{}],9:[function(e,t,i){var h=e("./domTree"),a=e("./fontMetrics"),l=e("./symbols"),r=e("./utils"),p=["\\Gamma","\\Delta","\\Theta","\\Lambda","\\Xi","\\Pi","\\Sigma","\\Upsilon","\\Phi","\\Psi","\\Omega"],s=["ı","ȷ"],c=function(e,t,i,r,p){l[i][e]&&l[i][e].replace&&(e=l[i][e].replace);var s=a.getCharacterMetrics(e,t),c;return s?c=new h.symbolNode(e,s.height,s.depth,s.italic,s.skew,p):("undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"'"),c=new h.symbolNode(e,0,0,0,0,p)),r&&(c.style.color=r),c},n=function(e,t,i,h){return"\\"===e||"main"===l[t][e].font?c(e,"Main-Regular",t,i,h):c(e,"AMS-Regular",t,i,h.concat(["amsrm"]))},o=function(e,t,i,h,a){if("mathord"===a)return g(e,t,i,h);if("textord"===a)return c(e,"Main-Regular",t,i,h.concat(["mathrm"]));throw new Error("unexpected type: "+a+" in mathDefault")},g=function(e,t,i,h){return/[0-9]/.test(e.charAt(0))||r.contains(s,e)||r.contains(p,e)?c(e,"Main-Italic",t,i,h.concat(["mainit"])):c(e,"Math-Italic",t,i,h.concat(["mathit"]))},d=function(e,t,i){var h=e.mode,p=e.value;l[h][p]&&l[h][p].replace&&(p=l[h][p].replace);var n=["mord"],d=t.getColor(),w=t.font;if(w){if("mathit"===w||r.contains(s,p))return g(p,h,d,n);var u=x[w].fontName;return a.getCharacterMetrics(p,u)?c(p,u,h,d,n.concat([w])):o(p,h,d,n,i)}return o(p,h,d,n,i)},w=function(e){var t=0,i=0,h=0;if(e.children)for(var a=0;a<e.children.length;a++)e.children[a].height>t&&(t=e.children[a].height),e.children[a].depth>i&&(i=e.children[a].depth),e.children[a].maxFontSize>h&&(h=e.children[a].maxFontSize);e.height=t,e.depth=i,e.maxFontSize=h},u=function(e,t,i){var a=new h.span(e,t);return w(a),i&&(a.style.color=i),a},k=function(e){var t=new h.documentFragment(e);return w(t),t},m=function(e,t){var i=u([],[new h.symbolNode("")]);i.style.fontSize=t/e.style.sizeMultiplier+"em";var a=u(["fontsize-ensurer","reset-"+e.size,"size5"],[i]);return a},f=function(e,t,i,a){var l,r,p;if("individualShift"===t){var s=e;for(e=[s[0]],l=-s[0].shift-s[0].elem.depth,r=l,p=1;p<s.length;p++){var c=-s[p].shift-r-s[p].elem.depth,n=c-(s[p-1].elem.height+s[p-1].elem.depth);r+=c,e.push({type:"kern",size:n}),e.push(s[p])}}else if("top"===t){var o=i;for(p=0;p<e.length;p++)o-="kern"===e[p].type?e[p].size:e[p].elem.height+e[p].elem.depth;l=o}else l="bottom"===t?-i:"shift"===t?-e[0].elem.depth-i:"firstBaseline"===t?-e[0].elem.depth:0;var g=0;for(p=0;p<e.length;p++)"elem"===e[p].type&&(g=Math.max(g,e[p].elem.maxFontSize));var d=m(a,g),w=[];for(r=l,p=0;p<e.length;p++)if("kern"===e[p].type)r+=e[p].size;else{var k=e[p].elem,f=-k.depth-r;r+=k.height+k.depth;var v=u([],[d,k]);v.height-=f,v.depth+=f,v.style.top=f+"em",w.push(v)}var y=u(["baseline-fix"],[d,new h.symbolNode("")]);w.push(y);var x=u(["vlist"],w);return x.height=Math.max(r,x.height),x.depth=Math.max(-l,x.depth),x},v={size1:.5,size2:.7,size3:.8,size4:.9,size5:1,size6:1.2,size7:1.44,size8:1.73,size9:2.07,size10:2.49},y={"\\qquad":{size:"2em",className:"qquad"},"\\quad":{size:"1em",className:"quad"},"\\enspace":{size:"0.5em",className:"enspace"},"\\;":{size:"0.277778em",className:"thickspace"},"\\:":{size:"0.22222em",className:"mediumspace"},"\\,":{size:"0.16667em",className:"thinspace"},"\\!":{size:"-0.16667em",className:"negativethinspace"}},x={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}};t.exports={fontMap:x,makeSymbol:c,mathsym:n,makeSpan:u,makeFragment:k,makeVList:f,makeOrd:d,sizingMultiplier:v,spacingFunctions:y}},{"./domTree":14,"./fontMetrics":16,"./symbols":22,"./utils":23}],10:[function(e,t,i){var h=e("./ParseError"),a=e("./Style"),l=e("./buildCommon"),r=e("./delimiter"),p=e("./domTree"),s=e("./fontMetrics"),c=e("./utils"),n=l.makeSpan,o=function(e,t,i){for(var h=[],a=0;a<e.length;a++){var l=e[a];h.push(v(l,t,i)),i=l}return h},g={mathord:"mord",textord:"mord",bin:"mbin",rel:"mrel",text:"mord",open:"mopen",close:"mclose",inner:"minner",genfrac:"mord",array:"mord",spacing:"mord",punct:"mpunct",ordgroup:"mord",op:"mop",katex:"mord",overline:"mord",rule:"mord",leftright:"minner",sqrt:"mord",accent:"mord"},d=function(e){return null==e?g.mathord:"supsub"===e.type?d(e.value.base):"llap"===e.type||"rlap"===e.type?d(e.value):"color"===e.type?d(e.value.value):"sizing"===e.type?d(e.value.value):"styling"===e.type?d(e.value.value):"delimsizing"===e.type?g[e.value.delimType]:g[e.type]},w=function(e,t){return e?"op"===e.type?e.value.limits&&(t.style.size===a.DISPLAY.size||e.value.alwaysHandleSupSub):"accent"===e.type?k(e.value.base):null:!1},u=function(e){return e?"ordgroup"===e.type?1===e.value.length?u(e.value[0]):e:"color"===e.type&&1===e.value.value.length?u(e.value.value[0]):e:!1},k=function(e){var t=u(e);return"mathord"===t.type||"textord"===t.type||"bin"===t.type||"rel"===t.type||"inner"===t.type||"open"===t.type||"close"===t.type||"punct"===t.type},m=function(e){return n(["sizing","reset-"+e.size,"size5",e.style.reset(),a.TEXT.cls(),"nulldelimiter"])},f={mathord:function(e,t,i){return l.makeOrd(e,t,"mathord")},textord:function(e,t,i){return l.makeOrd(e,t,"textord")},bin:function(e,t,i){for(var h="mbin",a=i;a&&"color"===a.type;){var r=a.value.value;a=r[r.length-1]}return(!i||c.contains(["mbin","mopen","mrel","mop","mpunct"],d(a)))&&(e.type="textord",h="mord"),l.mathsym(e.value,e.mode,t.getColor(),[h])},rel:function(e,t,i){return l.mathsym(e.value,e.mode,t.getColor(),["mrel"])},open:function(e,t,i){return l.mathsym(e.value,e.mode,t.getColor(),["mopen"])},close:function(e,t,i){return l.mathsym(e.value,e.mode,t.getColor(),["mclose"])},inner:function(e,t,i){return l.mathsym(e.value,e.mode,t.getColor(),["minner"])},punct:function(e,t,i){return l.mathsym(e.value,e.mode,t.getColor(),["mpunct"])},ordgroup:function(e,t,i){return n(["mord",t.style.cls()],o(e.value,t.reset()))},text:function(e,t,i){return n(["text","mord",t.style.cls()],o(e.value.body,t.reset()))},color:function(e,t,i){var h=o(e.value.value,t.withColor(e.value.color),i);return new l.makeFragment(h)},supsub:function(e,t,i){if(w(e.value.base,t))return f[e.value.base.type](e,t,i);var h=v(e.value.base,t.reset()),r,c,o,g;e.value.sup&&(o=v(e.value.sup,t.withStyle(t.style.sup())),r=n([t.style.reset(),t.style.sup().cls()],[o])),e.value.sub&&(g=v(e.value.sub,t.withStyle(t.style.sub())),c=n([t.style.reset(),t.style.sub().cls()],[g]));var u,m;k(e.value.base)?(u=0,m=0):(u=h.height-s.metrics.supDrop,m=h.depth+s.metrics.subDrop);var y;y=t.style===a.DISPLAY?s.metrics.sup1:t.style.cramped?s.metrics.sup3:s.metrics.sup2;var x=a.TEXT.sizeMultiplier*t.style.sizeMultiplier,b=.5/s.metrics.ptPerEm/x+"em",z;if(e.value.sup)if(e.value.sub){u=Math.max(u,y,o.depth+.25*s.metrics.xHeight),m=Math.max(m,s.metrics.sub2);var S=s.metrics.defaultRuleThickness;if(u-o.depth-(g.height-m)<4*S){m=4*S-(u-o.depth)+g.height;var M=.8*s.metrics.xHeight-(u-o.depth);M>0&&(u+=M,m-=M)}z=l.makeVList([{type:"elem",elem:c,shift:m},{type:"elem",elem:r,shift:-u}],"individualShift",null,t),h instanceof p.symbolNode&&(z.children[0].style.marginLeft=-h.italic+"em"),z.children[0].style.marginRight=b,z.children[1].style.marginRight=b}else u=Math.max(u,y,o.depth+.25*s.metrics.xHeight),z=l.makeVList([{type:"elem",elem:r}],"shift",-u,t),z.children[0].style.marginRight=b;else m=Math.max(m,s.metrics.sub1,g.height-.8*s.metrics.xHeight),z=l.makeVList([{type:"elem",elem:c}],"shift",m,t),z.children[0].style.marginRight=b,h instanceof p.symbolNode&&(z.children[0].style.marginLeft=-h.italic+"em");return n([d(e.value.base)],[h,z])},genfrac:function(e,t,i){var h=t.style;"display"===e.value.size?h=a.DISPLAY:"text"===e.value.size&&(h=a.TEXT);var p=h.fracNum(),c=h.fracDen(),o=v(e.value.numer,t.withStyle(p)),g=n([h.reset(),p.cls()],[o]),d=v(e.value.denom,t.withStyle(c)),w=n([h.reset(),c.cls()],[d]),u;u=e.value.hasBarLine?s.metrics.defaultRuleThickness/t.style.sizeMultiplier:0;var k,f,y;h.size===a.DISPLAY.size?(k=s.metrics.num1,f=u>0?3*u:7*s.metrics.defaultRuleThickness,y=s.metrics.denom1):(u>0?(k=s.metrics.num2,f=u):(k=s.metrics.num3,f=3*s.metrics.defaultRuleThickness),y=s.metrics.denom2);var x;if(0===u){var b=k-o.depth-(d.height-y);f>b&&(k+=.5*(f-b),y+=.5*(f-b)),x=l.makeVList([{type:"elem",elem:w,shift:y},{type:"elem",elem:g,shift:-k}],"individualShift",null,t)}else{var z=s.metrics.axisHeight;k-o.depth-(z+.5*u)<f&&(k+=f-(k-o.depth-(z+.5*u))),z-.5*u-(d.height-y)<f&&(y+=f-(z-.5*u-(d.height-y)));var S=n([t.style.reset(),a.TEXT.cls(),"frac-line"]);S.height=u;var M=-(z-.5*u);x=l.makeVList([{type:"elem",elem:w,shift:y},{type:"elem",elem:S,shift:M},{type:"elem",elem:g,shift:-k}],"individualShift",null,t)}x.height*=h.sizeMultiplier/t.style.sizeMultiplier,x.depth*=h.sizeMultiplier/t.style.sizeMultiplier;var q;q=h.size===a.DISPLAY.size?s.metrics.delim1:s.metrics.getDelim2(h);var A,T;return A=null==e.value.leftDelim?m(t):r.customSizedDelim(e.value.leftDelim,q,!0,t.withStyle(h),e.mode),T=null==e.value.rightDelim?m(t):r.customSizedDelim(e.value.rightDelim,q,!0,t.withStyle(h),e.mode),n(["mord",t.style.reset(),h.cls()],[A,n(["mfrac"],[x]),T],t.getColor())},array:function(e,t,i){var a,r,p=e.value.body.length,o=0,g=new Array(p),d=1/s.metrics.ptPerEm,w=5*d,u=12*d,k=c.deflt(e.value.arraystretch,1),m=k*u,f=.7*m,y=.3*m,x=0;for(a=0;a<e.value.body.length;++a){var b=e.value.body[a],z=f,S=y;o<b.length&&(o=b.length);var M=new Array(b.length);for(r=0;r<b.length;++r){var q=v(b[r],t);S<q.depth&&(S=q.depth),z<q.height&&(z=q.height),M[r]=q}var A=0;if(e.value.rowGaps[a]){switch(A=e.value.rowGaps[a].value,A.unit){case"em":A=A.number;break;case"ex":A=A.number*s.metrics.emPerEx;break;default:console.error("Can't handle unit "+A.unit),A=0}A>0&&(A+=y,A>S&&(S=A),A=0)}M.height=z,M.depth=S,x+=z,M.pos=x,x+=S+A,g[a]=M}var T=x/2+s.metrics.axisHeight,N=e.value.cols||[],C=[],R,P;for(r=0,P=0;o>r||P<N.length;++r,++P){for(var E=N[P]||{},D=!0;"separator"===E.type;){if(D||(R=n(["arraycolsep"],[]),R.style.width=s.metrics.doubleRuleSep+"em",C.push(R)),"|"!==E.separator)throw new h("Invalid separator type: "+E.separator);var O=n(["vertical-separator"],[]);O.style.height=x+"em",O.style.verticalAlign=-(x-T)+"em",C.push(O),P++,E=N[P]||{},D=!1}if(!(r>=o)){var L;(r>0||e.value.hskipBeforeAndAfter)&&(L=c.deflt(E.pregap,w),0!==L&&(R=n(["arraycolsep"],[]),R.style.width=L+"em",C.push(R)));var I=[];for(a=0;p>a;++a){var B=g[a],_=B[r];if(_){var F=B.pos-T;_.depth=B.depth,_.height=B.height,I.push({type:"elem",elem:_,shift:F})}}I=l.makeVList(I,"individualShift",null,t),I=n(["col-align-"+(E.align||"c")],[I]),C.push(I),(o-1>r||e.value.hskipBeforeAndAfter)&&(L=c.deflt(E.postgap,w),0!==L&&(R=n(["arraycolsep"],[]),R.style.width=L+"em",C.push(R)))}}return g=n(["mtable"],C),n(["mord"],[g],t.getColor())},spacing:function(e,t,i){return"\\ "===e.value||"\\space"===e.value||" "===e.value||"~"===e.value?n(["mord","mspace"],[l.mathsym(e.value,e.mode)]):n(["mord","mspace",l.spacingFunctions[e.value].className])},llap:function(e,t,i){var h=n(["inner"],[v(e.value.body,t.reset())]),a=n(["fix"],[]);return n(["llap",t.style.cls()],[h,a])},rlap:function(e,t,i){var h=n(["inner"],[v(e.value.body,t.reset())]),a=n(["fix"],[]);return n(["rlap",t.style.cls()],[h,a])},op:function(e,t,i){var h,r,p=!1;"supsub"===e.type&&(h=e.value.sup,r=e.value.sub,e=e.value.base,p=!0);var o=["\\smallint"],g=!1;t.style.size===a.DISPLAY.size&&e.value.symbol&&!c.contains(o,e.value.body)&&(g=!0);var d,w=0,u=0;if(e.value.symbol){var k=g?"Size2-Regular":"Size1-Regular";d=l.makeSymbol(e.value.body,k,"math",t.getColor(),["op-symbol",g?"large-op":"small-op","mop"]),w=(d.height-d.depth)/2-s.metrics.axisHeight*t.style.sizeMultiplier,u=d.italic}else{for(var m=[],f=1;f<e.value.body.length;f++)m.push(l.mathsym(e.value.body[f],e.mode));d=n(["mop"],m,t.getColor())}if(p){d=n([],[d]);var y,x,b,z;if(h){var S=v(h,t.withStyle(t.style.sup()));y=n([t.style.reset(),t.style.sup().cls()],[S]),x=Math.max(s.metrics.bigOpSpacing1,s.metrics.bigOpSpacing3-S.depth)}if(r){var M=v(r,t.withStyle(t.style.sub()));b=n([t.style.reset(),t.style.sub().cls()],[M]),z=Math.max(s.metrics.bigOpSpacing2,s.metrics.bigOpSpacing4-M.height)}var q,A,T;if(h)if(r){if(!h&&!r)return d;T=s.metrics.bigOpSpacing5+b.height+b.depth+z+d.depth+w,q=l.makeVList([{type:"kern",size:s.metrics.bigOpSpacing5},{type:"elem",elem:b},{type:"kern",size:z},{type:"elem",elem:d},{type:"kern",size:x},{type:"elem",elem:y},{type:"kern",size:s.metrics.bigOpSpacing5}],"bottom",T,t),q.children[0].style.marginLeft=-u+"em",q.children[2].style.marginLeft=u+"em"}else T=d.depth+w,q=l.makeVList([{type:"elem",elem:d},{type:"kern",size:x},{type:"elem",elem:y},{type:"kern",size:s.metrics.bigOpSpacing5}],"bottom",T,t),q.children[1].style.marginLeft=u+"em";else A=d.height-w,q=l.makeVList([{type:"kern",size:s.metrics.bigOpSpacing5},{type:"elem",elem:b},{type:"kern",size:z},{type:"elem",elem:d}],"top",A,t),q.children[0].style.marginLeft=-u+"em";return n(["mop","op-limits"],[q])}return e.value.symbol&&(d.style.top=w+"em"),d},katex:function(e,t,i){var h=n(["k"],[l.mathsym("K",e.mode)]),a=n(["a"],[l.mathsym("A",e.mode)]);a.height=.75*(a.height+.2),a.depth=.75*(a.height-.2);var r=n(["t"],[l.mathsym("T",e.mode)]),p=n(["e"],[l.mathsym("E",e.mode)]);p.height=p.height-.2155,p.depth=p.depth+.2155;var s=n(["x"],[l.mathsym("X",e.mode)]);return n(["katex-logo","mord"],[h,a,r,p,s],t.getColor())},overline:function(e,t,i){var h=v(e.value.body,t.withStyle(t.style.cramp())),r=s.metrics.defaultRuleThickness/t.style.sizeMultiplier,p=n([t.style.reset(),a.TEXT.cls(),"overline-line"]);p.height=r,p.maxFontSize=1;var c=l.makeVList([{type:"elem",elem:h},{type:"kern",size:3*r},{type:"elem",elem:p},{type:"kern",size:r}],"firstBaseline",null,t);return n(["overline","mord"],[c],t.getColor())},sqrt:function(e,t,i){var h=v(e.value.body,t.withStyle(t.style.cramp())),p=s.metrics.defaultRuleThickness/t.style.sizeMultiplier,c=n([t.style.reset(),a.TEXT.cls(),"sqrt-line"],[],t.getColor());c.height=p,c.maxFontSize=1;var o=p;t.style.id<a.TEXT.id&&(o=s.metrics.xHeight);var g=p+o/4,d=(h.height+h.depth)*t.style.sizeMultiplier,w=d+g+p,u=n(["sqrt-sign"],[r.customSizedDelim("\\surd",w,!1,t,e.mode)],t.getColor()),k=u.height+u.depth-p;k>h.height+h.depth+g&&(g=(g+k-h.height-h.depth)/2);var m=-(h.height+g+p)+u.height;u.style.top=m+"em",u.height-=m,u.depth+=m;var f;if(f=0===h.height&&0===h.depth?n():l.makeVList([{type:"elem",
|
||
elem:h},{type:"kern",size:g},{type:"elem",elem:c},{type:"kern",size:p}],"firstBaseline",null,t),e.value.index){var y=v(e.value.index,t.withStyle(a.SCRIPTSCRIPT)),x=n([t.style.reset(),a.SCRIPTSCRIPT.cls()],[y]),b=Math.max(u.height,f.height),z=Math.max(u.depth,f.depth),S=.6*(b-z),M=l.makeVList([{type:"elem",elem:x}],"shift",-S,t),q=n(["root"],[M]);return n(["sqrt","mord"],[q,u,f])}return n(["sqrt","mord"],[u,f])},sizing:function(e,t,i){var h=o(e.value.value,t.withSize(e.value.size),i),a=n(["mord"],[n(["sizing","reset-"+t.size,e.value.size,t.style.cls()],h)]),r=l.sizingMultiplier[e.value.size];return a.maxFontSize=r*t.style.sizeMultiplier,a},styling:function(e,t,i){var h={display:a.DISPLAY,text:a.TEXT,script:a.SCRIPT,scriptscript:a.SCRIPTSCRIPT},l=h[e.value.style],r=o(e.value.value,t.withStyle(l),i);return n([t.style.reset(),l.cls()],r)},font:function(e,t,i){var h=e.value.font;return v(e.value.body,t.withFont(h),i)},delimsizing:function(e,t,i){var h=e.value.value;return"."===h?n([g[e.value.delimType]]):n([g[e.value.delimType]],[r.sizedDelim(h,e.value.size,t,e.mode)])},leftright:function(e,t,i){for(var h=o(e.value.body,t.reset()),a=0,l=0,p=0;p<h.length;p++)a=Math.max(h[p].height,a),l=Math.max(h[p].depth,l);a*=t.style.sizeMultiplier,l*=t.style.sizeMultiplier;var s;s="."===e.value.left?m(t):r.leftRightDelim(e.value.left,a,l,t,e.mode),h.unshift(s);var c;return c="."===e.value.right?m(t):r.leftRightDelim(e.value.right,a,l,t,e.mode),h.push(c),n(["minner",t.style.cls()],h,t.getColor())},rule:function(e,t,i){var h=n(["mord","rule"],[],t.getColor()),a=0;e.value.shift&&(a=e.value.shift.number,"ex"===e.value.shift.unit&&(a*=s.metrics.xHeight));var l=e.value.width.number;"ex"===e.value.width.unit&&(l*=s.metrics.xHeight);var r=e.value.height.number;return"ex"===e.value.height.unit&&(r*=s.metrics.xHeight),a/=t.style.sizeMultiplier,l/=t.style.sizeMultiplier,r/=t.style.sizeMultiplier,h.style.borderRightWidth=l+"em",h.style.borderTopWidth=r+"em",h.style.bottom=a+"em",h.width=l,h.height=r+a,h.depth=-a,h},accent:function(e,t,i){var h=e.value.base,a;if("supsub"===e.type){var r=e;e=r.value.base,h=e.value.base,r.value.base=h,a=v(r,t.reset(),i)}var p=v(h,t.withStyle(t.style.cramp())),c;if(k(h)){var o=u(h),g=v(o,t.withStyle(t.style.cramp()));c=g.skew}else c=0;var d=Math.min(p.height,s.metrics.xHeight),w=l.makeSymbol(e.value.accent,"Main-Regular","math",t.getColor());w.italic=0;var m="\\vec"===e.value.accent?"accent-vec":null,f=n(["accent-body",m],[n([],[w])]);f=l.makeVList([{type:"elem",elem:p},{type:"kern",size:-d},{type:"elem",elem:f}],"firstBaseline",null,t),f.children[1].style.marginLeft=2*c+"em";var y=n(["mord","accent"],[f]);return a?(a.children[0]=y,a.height=Math.max(y.height,a.height),a.classes[0]="mord",a):y},phantom:function(e,t,i){var h=o(e.value.value,t.withPhantom(),i);return new l.makeFragment(h)}},v=function(e,t,i){if(!e)return n();if(f[e.type]){var a=f[e.type](e,t,i),r;return t.style!==t.parentStyle&&(r=t.style.sizeMultiplier/t.parentStyle.sizeMultiplier,a.height*=r,a.depth*=r),t.size!==t.parentSize&&(r=l.sizingMultiplier[t.size]/l.sizingMultiplier[t.parentSize],a.height*=r,a.depth*=r),a}throw new h("Got group of unknown type: '"+e.type+"'")},y=function(e,t){e=JSON.parse(JSON.stringify(e));var i=o(e,t),h=n(["base",t.style.cls()],i),a=n(["strut"]),l=n(["strut","bottom"]);a.style.height=h.height+"em",l.style.height=h.height+h.depth+"em",l.style.verticalAlign=-h.depth+"em";var r=n(["katex-html"],[a,l,h]);return r.setAttribute("aria-hidden","true"),r};t.exports=y},{"./ParseError":5,"./Style":8,"./buildCommon":9,"./delimiter":13,"./domTree":14,"./fontMetrics":16,"./utils":23}],11:[function(e,t,i){var h=e("./buildCommon"),a=e("./fontMetrics"),l=e("./mathMLTree"),r=e("./ParseError"),p=e("./symbols"),s=e("./utils"),c=h.makeSpan,n=h.fontMap,o=function(e,t){return p[t][e]&&p[t][e].replace&&(e=p[t][e].replace),new l.TextNode(e)},g=function(e,t){var i=t.font;if(!i)return null;var h=e.mode;if("mathit"===i)return"italic";var l=e.value;if(s.contains(["\\imath","\\jmath"],l))return null;p[h][l]&&p[h][l].replace&&(l=p[h][l].replace);var r=n[i].fontName;return a.getCharacterMetrics(l,r)?n[t.font].variant:null},d={mathord:function(e,t){var i=new l.MathNode("mi",[o(e.value,e.mode)]),h=g(e,t);return h&&i.setAttribute("mathvariant",h),i},textord:function(e,t){var i=o(e.value,e.mode),h=g(e,t)||"normal",a;return/[0-9]/.test(e.value)?(a=new l.MathNode("mn",[i]),t.font&&a.setAttribute("mathvariant",h)):(a=new l.MathNode("mi",[i]),a.setAttribute("mathvariant",h)),a},bin:function(e){var t=new l.MathNode("mo",[o(e.value,e.mode)]);return t},rel:function(e){var t=new l.MathNode("mo",[o(e.value,e.mode)]);return t},open:function(e){var t=new l.MathNode("mo",[o(e.value,e.mode)]);return t},close:function(e){var t=new l.MathNode("mo",[o(e.value,e.mode)]);return t},inner:function(e){var t=new l.MathNode("mo",[o(e.value,e.mode)]);return t},punct:function(e){var t=new l.MathNode("mo",[o(e.value,e.mode)]);return t.setAttribute("separator","true"),t},ordgroup:function(e,t){var i=w(e.value,t),h=new l.MathNode("mrow",i);return h},text:function(e,t){var i=w(e.value.body,t),h=new l.MathNode("mtext",i);return h},color:function(e,t){var i=w(e.value.value,t),h=new l.MathNode("mstyle",i);return h.setAttribute("mathcolor",e.value.color),h},supsub:function(e,t){var i=[u(e.value.base,t)];e.value.sub&&i.push(u(e.value.sub,t)),e.value.sup&&i.push(u(e.value.sup,t));var h;h=e.value.sub?e.value.sup?"msubsup":"msub":"msup";var a=new l.MathNode(h,i);return a},genfrac:function(e,t){var i=new l.MathNode("mfrac",[u(e.value.numer,t),u(e.value.denom,t)]);if(e.value.hasBarLine||i.setAttribute("linethickness","0px"),null!=e.value.leftDelim||null!=e.value.rightDelim){var h=[];if(null!=e.value.leftDelim){var a=new l.MathNode("mo",[new l.TextNode(e.value.leftDelim)]);a.setAttribute("fence","true"),h.push(a)}if(h.push(i),null!=e.value.rightDelim){var r=new l.MathNode("mo",[new l.TextNode(e.value.rightDelim)]);r.setAttribute("fence","true"),h.push(r)}var p=new l.MathNode("mrow",h);return p}return i},array:function(e,t){return new l.MathNode("mtable",e.value.body.map(function(e){return new l.MathNode("mtr",e.map(function(e){return new l.MathNode("mtd",[u(e,t)])}))}))},sqrt:function(e,t){var i;return i=e.value.index?new l.MathNode("mroot",[u(e.value.body,t),u(e.value.index,t)]):new l.MathNode("msqrt",[u(e.value.body,t)])},leftright:function(e,t){var i=w(e.value.body,t);if("."!==e.value.left){var h=new l.MathNode("mo",[o(e.value.left,e.mode)]);h.setAttribute("fence","true"),i.unshift(h)}if("."!==e.value.right){var a=new l.MathNode("mo",[o(e.value.right,e.mode)]);a.setAttribute("fence","true"),i.push(a)}var r=new l.MathNode("mrow",i);return r},accent:function(e,t){var i=new l.MathNode("mo",[o(e.value.accent,e.mode)]),h=new l.MathNode("mover",[u(e.value.base,t),i]);return h.setAttribute("accent","true"),h},spacing:function(e){var t;return"\\ "===e.value||"\\space"===e.value||" "===e.value||"~"===e.value?t=new l.MathNode("mtext",[new l.TextNode(" ")]):(t=new l.MathNode("mspace"),t.setAttribute("width",h.spacingFunctions[e.value].size)),t},op:function(e){var t;return t=e.value.symbol?new l.MathNode("mo",[o(e.value.body,e.mode)]):new l.MathNode("mi",[new l.TextNode(e.value.body.slice(1))])},katex:function(e){var t=new l.MathNode("mtext",[new l.TextNode("KaTeX")]);return t},font:function(e,t){var i=e.value.font;return u(e.value.body,t.withFont(i))},delimsizing:function(e){var t=[];"."!==e.value.value&&t.push(o(e.value.value,e.mode));var i=new l.MathNode("mo",t);return"open"===e.value.delimType||"close"===e.value.delimType?i.setAttribute("fence","true"):i.setAttribute("fence","false"),i},styling:function(e,t){var i=w(e.value.value,t),h=new l.MathNode("mstyle",i),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},r=a[e.value.style];return h.setAttribute("scriptlevel",r[0]),h.setAttribute("displaystyle",r[1]),h},sizing:function(e,t){var i=w(e.value.value,t),a=new l.MathNode("mstyle",i);return a.setAttribute("mathsize",h.sizingMultiplier[e.value.size]+"em"),a},overline:function(e,t){var i=new l.MathNode("mo",[new l.TextNode("‾")]);i.setAttribute("stretchy","true");var h=new l.MathNode("mover",[u(e.value.body,t),i]);return h.setAttribute("accent","true"),h},rule:function(e){var t=new l.MathNode("mrow");return t},llap:function(e,t){var i=new l.MathNode("mpadded",[u(e.value.body,t)]);return i.setAttribute("lspace","-1width"),i.setAttribute("width","0px"),i},rlap:function(e,t){var i=new l.MathNode("mpadded",[u(e.value.body,t)]);return i.setAttribute("width","0px"),i},phantom:function(e,t,i){var h=w(e.value.value,t);return new l.MathNode("mphantom",h)}},w=function(e,t){for(var i=[],h=0;h<e.length;h++){var a=e[h];i.push(u(a,t))}return i},u=function(e,t){if(!e)return new l.MathNode("mrow");if(d[e.type])return d[e.type](e,t);throw new r("Got group of unknown type: '"+e.type+"'")},k=function(e,t,i){var h=w(e,i),a=new l.MathNode("mrow",h),r=new l.MathNode("annotation",[new l.TextNode(t)]);r.setAttribute("encoding","application/x-tex");var p=new l.MathNode("semantics",[a,r]),s=new l.MathNode("math",[p]);return c(["katex-mathml"],[s])};t.exports=k},{"./ParseError":5,"./buildCommon":9,"./fontMetrics":16,"./mathMLTree":19,"./symbols":22,"./utils":23}],12:[function(e,t,i){var h=e("./buildHTML"),a=e("./buildMathML"),l=e("./buildCommon"),r=e("./Options"),p=e("./Settings"),s=e("./Style"),c=l.makeSpan,n=function(e,t,i){i=i||new p({});var l=s.TEXT;i.displayMode&&(l=s.DISPLAY);var n=new r({style:l,size:"size5"}),o=a(e,t,n),g=h(e,n),d=c(["katex"],[o,g]);return i.displayMode?c(["katex-display"],[d]):d};t.exports=n},{"./Options":4,"./Settings":7,"./Style":8,"./buildCommon":9,"./buildHTML":10,"./buildMathML":11}],13:[function(e,t,i){var h=e("./ParseError"),a=e("./Style"),l=e("./buildCommon"),r=e("./fontMetrics"),p=e("./symbols"),s=e("./utils"),c=l.makeSpan,n=function(e,t){return p.math[e]&&p.math[e].replace?r.getCharacterMetrics(p.math[e].replace,t):r.getCharacterMetrics(e,t)},o=function(e,t,i){return l.makeSymbol(e,"Size"+t+"-Regular",i)},g=function(e,t,i){var h=c(["style-wrap",i.style.reset(),t.cls()],[e]),a=t.sizeMultiplier/i.style.sizeMultiplier;return h.height*=a,h.depth*=a,h.maxFontSize=t.sizeMultiplier,h},d=function(e,t,i,h,a){var p=l.makeSymbol(e,"Main-Regular",a),s=g(p,t,h);if(i){var c=(1-h.style.sizeMultiplier/t.sizeMultiplier)*r.metrics.axisHeight;s.style.top=c+"em",s.height-=c,s.depth+=c}return s},w=function(e,t,i,h,l){var p=o(e,t,l),s=g(c(["delimsizing","size"+t],[p],h.getColor()),a.TEXT,h);if(i){var n=(1-h.style.sizeMultiplier)*r.metrics.axisHeight;s.style.top=n+"em",s.height-=n,s.depth+=n}return s},u=function(e,t,i){var h;"Size1-Regular"===t?h="delim-size1":"Size4-Regular"===t&&(h="delim-size4");var a=c(["delimsizinginner",h],[c([],[l.makeSymbol(e,t,i)])]);return{type:"elem",elem:a}},k=function(e,t,i,h,p){var s,o,d,w;s=d=w=e,o=null;var k="Size1-Regular";"\\uparrow"===e?d=w="⏐":"\\Uparrow"===e?d=w="‖":"\\downarrow"===e?s=d="⏐":"\\Downarrow"===e?s=d="‖":"\\updownarrow"===e?(s="\\uparrow",d="⏐",w="\\downarrow"):"\\Updownarrow"===e?(s="\\Uparrow",d="‖",w="\\Downarrow"):"["===e||"\\lbrack"===e?(s="⎡",d="⎢",w="⎣",k="Size4-Regular"):"]"===e||"\\rbrack"===e?(s="⎤",d="⎥",w="⎦",k="Size4-Regular"):"\\lfloor"===e?(d=s="⎢",w="⎣",k="Size4-Regular"):"\\lceil"===e?(s="⎡",d=w="⎢",k="Size4-Regular"):"\\rfloor"===e?(d=s="⎥",w="⎦",k="Size4-Regular"):"\\rceil"===e?(s="⎤",d=w="⎥",k="Size4-Regular"):"("===e?(s="⎛",d="⎜",w="⎝",k="Size4-Regular"):")"===e?(s="⎞",d="⎟",w="⎠",k="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(s="⎧",o="⎨",w="⎩",d="⎪",k="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(s="⎫",o="⎬",w="⎭",d="⎪",k="Size4-Regular"):"\\lgroup"===e?(s="⎧",w="⎩",d="⎪",k="Size4-Regular"):"\\rgroup"===e?(s="⎫",w="⎭",d="⎪",k="Size4-Regular"):"\\lmoustache"===e?(s="⎧",w="⎭",d="⎪",k="Size4-Regular"):"\\rmoustache"===e?(s="⎫",w="⎩",d="⎪",k="Size4-Regular"):"\\surd"===e&&(s="",w="⎷",d="",k="Size4-Regular");var m=n(s,k),f=m.height+m.depth,v=n(d,k),y=v.height+v.depth,x=n(w,k),b=x.height+x.depth,z=0,S=1;if(null!==o){var M=n(o,k);z=M.height+M.depth,S=2}var q=f+b+z,A=Math.ceil((t-q)/(S*y)),T=q+A*S*y,N=r.metrics.axisHeight;i&&(N*=h.style.sizeMultiplier);var C=T/2-N,R=[];R.push(u(w,k,p));var P;if(null===o)for(P=0;A>P;P++)R.push(u(d,k,p));else{for(P=0;A>P;P++)R.push(u(d,k,p));for(R.push(u(o,k,p)),P=0;A>P;P++)R.push(u(d,k,p))}R.push(u(s,k,p));var E=l.makeVList(R,"bottom",C,h);return g(c(["delimsizing","mult"],[E],h.getColor()),a.TEXT,h)},m=["(",")","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd"],f=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache"],v=["<",">","\\langle","\\rangle","/","\\backslash"],y=[0,1.2,1.8,2.4,3],x=function(e,t,i,a){if("<"===e?e="\\langle":">"===e&&(e="\\rangle"),s.contains(m,e)||s.contains(v,e))return w(e,t,!1,i,a);if(s.contains(f,e))return k(e,y[t],!1,i,a);throw new h("Illegal delimiter: '"+e+"'")},b=[{type:"small",style:a.SCRIPTSCRIPT},{type:"small",style:a.SCRIPT},{type:"small",style:a.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],z=[{type:"small",style:a.SCRIPTSCRIPT},{type:"small",style:a.SCRIPT},{type:"small",style:a.TEXT},{type:"stack"}],S=[{type:"small",style:a.SCRIPTSCRIPT},{type:"small",style:a.SCRIPT},{type:"small",style:a.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],M=function(e){return"small"===e.type?"Main-Regular":"large"===e.type?"Size"+e.size+"-Regular":"stack"===e.type?"Size4-Regular":void 0},q=function(e,t,i,h){for(var a=Math.min(2,3-h.style.size),l=a;l<i.length&&"stack"!==i[l].type;l++){var r=n(e,M(i[l])),p=r.height+r.depth;if("small"===i[l].type&&(p*=i[l].style.sizeMultiplier),p>t)return i[l]}return i[i.length-1]},A=function(e,t,i,h,a){"<"===e?e="\\langle":">"===e&&(e="\\rangle");var l;l=s.contains(v,e)?b:s.contains(m,e)?S:z;var r=q(e,t,l,h);return"small"===r.type?d(e,r.style,i,h,a):"large"===r.type?w(e,r.size,i,h,a):"stack"===r.type?k(e,t,i,h,a):void 0},T=function(e,t,i,h,a){var l=r.metrics.axisHeight*h.style.sizeMultiplier,p=901,s=5/r.metrics.ptPerEm,c=Math.max(t-l,i+l),n=Math.max(c/500*p,2*c-s);return A(e,n,!0,h,a)};t.exports={sizedDelim:x,customSizedDelim:A,leftRightDelim:T}},{"./ParseError":5,"./Style":8,"./buildCommon":9,"./fontMetrics":16,"./symbols":22,"./utils":23}],14:[function(e,t,i){function h(e,t,i,h,a,l){this.classes=e||[],this.children=t||[],this.height=i||0,this.depth=h||0,this.maxFontSize=a||0,this.style=l||{},this.attributes={}}function a(e,t,i,h){this.children=e||[],this.height=t||0,this.depth=i||0,this.maxFontSize=h||0}function l(e,t,i,h,a,l,r){this.value=e||"",this.height=t||0,this.depth=i||0,this.italic=h||0,this.skew=a||0,this.classes=l||[],this.style=r||{},this.maxFontSize=0}var r=e("./utils"),p=function(e){e=e.slice();for(var t=e.length-1;t>=0;t--)e[t]||e.splice(t,1);return e.join(" ")};h.prototype.setAttribute=function(e,t){this.attributes[e]=t},h.prototype.toNode=function(){var e=document.createElement("span");e.className=p(this.classes);for(var t in this.style)Object.prototype.hasOwnProperty.call(this.style,t)&&(e.style[t]=this.style[t]);for(var i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&e.setAttribute(i,this.attributes[i]);for(var h=0;h<this.children.length;h++)e.appendChild(this.children[h].toNode());return e},h.prototype.toMarkup=function(){var e="<span";this.classes.length&&(e+=' class="',e+=r.escape(p(this.classes)),e+='"');var t="";for(var i in this.style)this.style.hasOwnProperty(i)&&(t+=r.hyphenate(i)+":"+this.style[i]+";");t&&(e+=' style="'+r.escape(t)+'"');for(var h in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,h)&&(e+=" "+h+'="',e+=r.escape(this.attributes[h]),e+='"');e+=">";for(var a=0;a<this.children.length;a++)e+=this.children[a].toMarkup();return e+="</span>"},a.prototype.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e},a.prototype.toMarkup=function(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e},l.prototype.toNode=function(){var e=document.createTextNode(this.value),t=null;this.italic>0&&(t=document.createElement("span"),t.style.marginRight=this.italic+"em"),this.classes.length>0&&(t=t||document.createElement("span"),t.className=p(this.classes));for(var i in this.style)this.style.hasOwnProperty(i)&&(t=t||document.createElement("span"),t.style[i]=this.style[i]);return t?(t.appendChild(e),t):e},l.prototype.toMarkup=function(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=r.escape(p(this.classes)),t+='"');var i="";this.italic>0&&(i+="margin-right:"+this.italic+"em;");for(var h in this.style)this.style.hasOwnProperty(h)&&(i+=r.hyphenate(h)+":"+this.style[h]+";");i&&(e=!0,t+=' style="'+r.escape(i)+'"');var a=r.escape(this.value);return e?(t+=">",t+=a,t+="</span>"):a},t.exports={span:h,documentFragment:a,symbolNode:l}},{"./utils":23}],15:[function(e,t,i){function h(e,t,i,h){for(var a=[],l=[a],c=[];;){var n=e.parseExpression(t,i,!1,null);a.push(new p("ordgroup",n.result,i)),t=n.position;var o=n.peek.text;if("&"===o)t=n.peek.position;else{if("\\end"===o)break;if("\\\\"!==o&&"\\cr"!==o)throw new r("Expected & or \\\\ or \\end",e.lexer,n.peek.position);var g=e.parseFunction(t,i);c.push(g.result.value.size),t=g.position,a=[],l.push(a)}}return h.body=l,h.rowGaps=c,new s(new p(h.type,h,i),t)}var a=e("./fontMetrics"),l=e("./parseData"),r=e("./ParseError"),p=l.ParseNode,s=l.ParseResult,c=[{names:["array"],numArgs:1,handler:function(e,t,i,a,l){var p=this;a=a.value.map?a.value:[a];var s=a.map(function(e){var t=e.value;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};throw new r("Unknown column alignment: "+e.value,p.lexer,l[1])}),c={type:"array",cols:s,hskipBeforeAndAfter:!0};return c=h(p,e,t,c)}},{names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],handler:function(e,t,i){var a={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[i],l={type:"array",hskipBeforeAndAfter:!1};return l=h(this,e,t,l),a&&(l.result=new p("leftright",{body:[l.result],left:a[0],right:a[1]},t)),l}},{names:["cases"],handler:function(e,t,i){var l={type:"array",arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:a.metrics.quad},{type:"align",align:"l",pregap:0,postgap:0}]};return l=h(this,e,t,l),l.result=new p("leftright",{body:[l.result],left:"\\{",right:"."},t),l}}];t.exports=function(){for(var e={},t=0;t<c.length;++t){var i=c[t];i.greediness=1,i.allowedInText=!!i.allowedInText,i.numArgs=i.numArgs||0,i.numOptionalArgs=i.numOptionalArgs||0;for(var h=0;h<i.names.length;++h)e[i.names[h]]=i}return e}()},{"./ParseError":5,"./fontMetrics":16,"./parseData":20}],16:[function(e,t,i){var h=e("./Style"),a=.025,l=0,r=0,p=0,s=.431,c=1,n=0,o=.677,g=.394,d=.444,w=.686,u=.345,k=.413,m=.363,f=.289,v=.15,y=.247,x=.386,b=.05,z=2.39,S=1.01,M=.81,q=.71,A=.25,T=0,N=0,C=0,R=0,P=.431,E=1,D=0,O=.04,L=.111,I=.166,B=.2,_=.6,F=.1,V=10,H=2/V,G={xHeight:s,quad:c,num1:o,num2:g,num3:d,denom1:w,denom2:u,sup1:k,sup2:m,sup3:f,sub1:v,sub2:y,supDrop:x,subDrop:b,axisHeight:A,defaultRuleThickness:O,bigOpSpacing1:L,bigOpSpacing2:I,bigOpSpacing3:B,bigOpSpacing4:_,bigOpSpacing5:F,ptPerEm:V,emPerEx:s/c,doubleRuleSep:H,delim1:z,getDelim2:function(e){if(e.size===h.TEXT.size)return S;if(e.size===h.SCRIPT.size)return M;if(e.size===h.SCRIPTSCRIPT.size)return q;throw new Error("Unexpected style size: "+e.size)}},X=e("./fontMetricsData"),U=function(e,t){return X[t][e.charCodeAt(0)]};t.exports={metrics:G,getCharacterMetrics:U}},{"./Style":8,"./fontMetricsData":17}],17:[function(e,t,i){t.exports={"AMS-Regular":{65:{depth:0,height:.68889,italic:0,skew:0},66:{depth:0,height:.68889,italic:0,skew:0},67:{depth:0,height:.68889,italic:0,skew:0},68:{depth:0,height:.68889,italic:0,skew:0},69:{depth:0,height:.68889,italic:0,skew:0},70:{depth:0,height:.68889,italic:0,skew:0},71:{depth:0,height:.68889,italic:0,skew:0},72:{depth:0,height:.68889,italic:0,skew:0},73:{depth:0,height:.68889,italic:0,skew:0},74:{depth:.16667,height:.68889,italic:0,skew:0},75:{depth:0,height:.68889,italic:0,skew:0},76:{depth:0,height:.68889,italic:0,skew:0},77:{depth:0,height:.68889,italic:0,skew:0},78:{depth:0,height:.68889,italic:0,skew:0},79:{depth:.16667,height:.68889,italic:0,skew:0},80:{depth:0,height:.68889,italic:0,skew:0},81:{depth:.16667,height:.68889,italic:0,skew:0},82:{depth:0,height:.68889,italic:0,skew:0},83:{depth:0,height:.68889,italic:0,skew:0},84:{depth:0,height:.68889,italic:0,skew:0},85:{depth:0,height:.68889,italic:0,skew:0},86:{depth:0,height:.68889,italic:0,skew:0},87:{depth:0,height:.68889,italic:0,skew:0},88:{depth:0,height:.68889,italic:0,skew:0},89:{depth:0,height:.68889,italic:0,skew:0},90:{depth:0,height:.68889,italic:0,skew:0},107:{depth:0,height:.68889,italic:0,skew:0},165:{depth:0,height:.675,italic:.025,skew:0},174:{depth:.15559,height:.69224,italic:0,skew:0},240:{depth:0,height:.68889,italic:0,skew:0},295:{depth:0,height:.68889,italic:0,skew:0},710:{depth:0,height:.825,italic:0,skew:0},732:{depth:0,height:.9,italic:0,skew:0},770:{depth:0,height:.825,italic:0,skew:0},771:{depth:0,height:.9,italic:0,skew:0},989:{depth:.08167,height:.58167,italic:0,skew:0},1008:{depth:0,height:.43056,italic:.04028,skew:0},8245:{depth:0,height:.54986,italic:0,skew:0},8463:{depth:0,height:.68889,italic:0,skew:0},8487:{depth:0,height:.68889,italic:0,skew:0},8498:{depth:0,height:.68889,italic:0,skew:0},8502:{depth:0,height:.68889,italic:0,skew:0},8503:{depth:0,height:.68889,italic:0,skew:0},8504:{depth:0,height:.68889,italic:0,skew:0},8513:{depth:0,height:.68889,italic:0,skew:0},8592:{depth:-.03598,height:.46402,italic:0,skew:0},8594:{depth:-.03598,height:.46402,italic:0,skew:0},8602:{depth:-.13313,height:.36687,italic:0,skew:0},8603:{depth:-.13313,height:.36687,italic:0,skew:0},8606:{depth:.01354,height:.52239,italic:0,skew:0},8608:{depth:.01354,height:.52239,italic:0,skew:0},8610:{depth:.01354,height:.52239,italic:0,skew:0},8611:{depth:.01354,height:.52239,italic:0,skew:0},8619:{depth:0,height:.54986,italic:0,skew:0},8620:{depth:0,height:.54986,italic:0,skew:0},8621:{depth:-.13313,height:.37788,italic:0,skew:0},8622:{depth:-.13313,height:.36687,italic:0,skew:0},8624:{depth:0,height:.69224,italic:0,skew:0},8625:{depth:0,height:.69224,italic:0,skew:0},8630:{depth:0,height:.43056,italic:0,skew:0},8631:{depth:0,height:.43056,italic:0,skew:0},8634:{depth:.08198,height:.58198,italic:0,skew:0},8635:{depth:.08198,height:.58198,italic:0,skew:0},8638:{depth:.19444,height:.69224,italic:0,skew:0},8639:{depth:.19444,height:.69224,italic:0,skew:0},8642:{depth:.19444,height:.69224,italic:0,skew:0},8643:{depth:.19444,height:.69224,italic:0,skew:0},8644:{depth:.1808,height:.675,italic:0,skew:0},8646:{depth:.1808,height:.675,italic:0,skew:0},8647:{depth:.1808,height:.675,italic:0,skew:0},8648:{depth:.19444,height:.69224,italic:0,skew:0},8649:{depth:.1808,height:.675,italic:0,skew:0},8650:{depth:.19444,height:.69224,italic:0,skew:0},8651:{depth:.01354,height:.52239,italic:0,skew:0},8652:{depth:.01354,height:.52239,italic:0,skew:0},8653:{depth:-.13313,height:.36687,italic:0,skew:0},8654:{depth:-.13313,height:.36687,italic:0,skew:0},8655:{depth:-.13313,height:.36687,italic:0,skew:0},8666:{depth:.13667,height:.63667,italic:0,skew:0},8667:{depth:.13667,height:.63667,italic:0,skew:0},8669:{depth:-.13313,height:.37788,italic:0,skew:0},8672:{depth:-.064,height:.437,italic:0,skew:0},8674:{depth:-.064,height:.437,italic:0,skew:0},8705:{depth:0,height:.825,italic:0,skew:0},8708:{depth:0,height:.68889,italic:0,skew:0},8709:{depth:.08167,height:.58167,italic:0,skew:0},8717:{depth:0,height:.43056,italic:0,skew:0},8722:{depth:-.03598,height:.46402,italic:0,skew:0},8724:{depth:.08198,height:.69224,italic:0,skew:0},8726:{depth:.08167,height:.58167,italic:0,skew:0},8733:{depth:0,height:.69224,italic:0,skew:0},8736:{depth:0,height:.69224,italic:0,skew:0},8737:{depth:0,height:.69224,italic:0,skew:0},8738:{depth:.03517,height:.52239,italic:0,skew:0},8739:{depth:.08167,height:.58167,italic:0,skew:0},8740:{depth:.25142,height:.74111,italic:0,skew:0},8741:{depth:.08167,height:.58167,italic:0,skew:0},8742:{depth:.25142,height:.74111,italic:0,skew:0},8756:{depth:0,height:.69224,italic:0,skew:0},8757:{depth:0,height:.69224,italic:0,skew:0},8764:{depth:-.13313,height:.36687,italic:0,skew:0},8765:{depth:-.13313,height:.37788,italic:0,skew:0},8769:{depth:-.13313,height:.36687,italic:0,skew:0},8770:{depth:-.03625,height:.46375,italic:0,skew:0},8774:{depth:.30274,height:.79383,italic:0,skew:0},8776:{depth:-.01688,height:.48312,italic:0,skew:0},8778:{depth:.08167,height:.58167,italic:0,skew:0},8782:{depth:.06062,height:.54986,italic:0,skew:0},8783:{depth:.06062,height:.54986,italic:0,skew:0},8785:{depth:.08198,height:.58198,italic:0,skew:0},8786:{depth:.08198,height:.58198,italic:0,skew:0},8787:{depth:.08198,height:.58198,italic:0,skew:0},8790:{depth:0,height:.69224,italic:0,skew:0},8791:{depth:.22958,height:.72958,italic:0,skew:0},8796:{depth:.08198,height:.91667,italic:0,skew:0},8806:{depth:.25583,height:.75583,italic:0,skew:0},8807:{depth:.25583,height:.75583,italic:0,skew:0},8808:{depth:.25142,height:.75726,italic:0,skew:0},8809:{depth:.25142,height:.75726,italic:0,skew:0},8812:{depth:.25583,height:.75583,italic:0,skew:0},8814:{depth:.20576,height:.70576,italic:0,skew:0},8815:{depth:.20576,height:.70576,italic:0,skew:0},8816:{depth:.30274,height:.79383,italic:0,skew:0},8817:{depth:.30274,height:.79383,italic:0,skew:0},8818:{depth:.22958,height:.72958,italic:0,skew:0},8819:{depth:.22958,height:.72958,italic:0,skew:0},8822:{depth:.1808,height:.675,italic:0,skew:0},8823:{depth:.1808,height:.675,italic:0,skew:0},8828:{depth:.13667,height:.63667,italic:0,skew:0},8829:{depth:.13667,height:.63667,italic:0,skew:0},8830:{depth:.22958,height:.72958,italic:0,skew:0},8831:{depth:.22958,height:.72958,italic:0,skew:0},8832:{depth:.20576,height:.70576,italic:0,skew:0},8833:{depth:.20576,height:.70576,italic:0,skew:0},8840:{depth:.30274,height:.79383,italic:0,skew:0},8841:{depth:.30274,height:.79383,italic:0,skew:0},8842:{depth:.13597,height:.63597,italic:0,skew:0},8843:{depth:.13597,height:.63597,italic:0,skew:0},8847:{depth:.03517,height:.54986,italic:0,skew:0},8848:{depth:.03517,height:.54986,italic:0,skew:0},8858:{depth:.08198,height:.58198,italic:0,skew:0},8859:{depth:.08198,height:.58198,italic:0,skew:0},8861:{depth:.08198,height:.58198,italic:0,skew:0},8862:{depth:0,height:.675,italic:0,skew:0},8863:{depth:0,height:.675,italic:0,skew:0},8864:{depth:0,height:.675,italic:0,skew:0},8865:{depth:0,height:.675,italic:0,skew:0},8872:{depth:0,height:.69224,italic:0,skew:0},8873:{depth:0,height:.69224,italic:0,skew:0},8874:{depth:0,height:.69224,italic:0,skew:0},8876:{depth:0,height:.68889,italic:0,skew:0},8877:{depth:0,height:.68889,italic:0,skew:0},8878:{depth:0,height:.68889,italic:0,skew:0},8879:{depth:0,height:.68889,italic:0,skew:0},8882:{depth:.03517,height:.54986,italic:0,skew:0},8883:{depth:.03517,height:.54986,italic:0,skew:0},8884:{depth:.13667,height:.63667,italic:0,skew:0},8885:{depth:.13667,height:.63667,italic:0,skew:0},8888:{depth:0,height:.54986,italic:0,skew:0},8890:{depth:.19444,height:.43056,italic:0,skew:0},8891:{depth:.19444,height:.69224,italic:0,skew:0},8892:{depth:.19444,height:.69224,italic:0,skew:0},8901:{depth:0,height:.54986,italic:0,skew:0},8903:{depth:.08167,height:.58167,italic:0,skew:0},8905:{depth:.08167,height:.58167,italic:0,skew:0},8906:{depth:.08167,height:.58167,italic:0,skew:0},8907:{depth:0,height:.69224,italic:0,skew:0},8908:{depth:0,height:.69224,italic:0,skew:0},8909:{depth:-.03598,height:.46402,italic:0,skew:0},8910:{depth:0,height:.54986,italic:0,skew:0},8911:{depth:0,height:.54986,italic:0,skew:0},8912:{depth:.03517,height:.54986,italic:0,skew:0},8913:{depth:.03517,height:.54986,italic:0,skew:0},8914:{depth:0,height:.54986,italic:0,skew:0},8915:{depth:0,height:.54986,italic:0,skew:0},8916:{depth:0,height:.69224,italic:0,skew:0},8918:{depth:.0391,height:.5391,italic:0,skew:0},8919:{depth:.0391,height:.5391,italic:0,skew:0},8920:{depth:.03517,height:.54986,italic:0,skew:0},8921:{depth:.03517,height:.54986,italic:0,skew:0},8922:{depth:.38569,height:.88569,italic:0,skew:0},8923:{depth:.38569,height:.88569,italic:0,skew:0},8926:{depth:.13667,height:.63667,italic:0,skew:0},8927:{depth:.13667,height:.63667,italic:0,skew:0},8928:{depth:.30274,height:.79383,italic:0,skew:0},8929:{depth:.30274,height:.79383,italic:0,skew:0},8934:{depth:.23222,height:.74111,italic:0,skew:0},8935:{depth:.23222,height:.74111,italic:0,skew:0},8936:{depth:.23222,height:.74111,italic:0,skew:0},8937:{depth:.23222,height:.74111,italic:0,skew:0},8938:{depth:.20576,height:.70576,italic:0,skew:0},8939:{depth:.20576,height:.70576,italic:0,skew:0},8940:{depth:.30274,height:.79383,italic:0,skew:0},8941:{depth:.30274,height:.79383,italic:0,skew:0},8994:{depth:.19444,height:.69224,italic:0,skew:0},8995:{depth:.19444,height:.69224,italic:0,skew:0},9416:{depth:.15559,height:.69224,italic:0,skew:0},9484:{depth:0,height:.69224,italic:0,skew:0},9488:{depth:0,height:.69224,italic:0,skew:0},9492:{depth:0,height:.37788,italic:0,skew:0},9496:{depth:0,height:.37788,italic:0,skew:0},9585:{depth:.19444,height:.68889,italic:0,skew:0},9586:{depth:.19444,height:.74111,italic:0,skew:0},9632:{depth:0,height:.675,italic:0,skew:0},9633:{depth:0,height:.675,italic:0,skew:0},9650:{depth:0,height:.54986,italic:0,skew:0},9651:{depth:0,height:.54986,italic:0,skew:0},9654:{depth:.03517,height:.54986,italic:0,skew:0},9660:{depth:0,height:.54986,italic:0,skew:0},9661:{depth:0,height:.54986,italic:0,skew:0},9664:{depth:.03517,height:.54986,italic:0,skew:0},9674:{depth:.11111,height:.69224,italic:0,skew:0},9733:{depth:.19444,height:.69224,italic:0,skew:0},10003:{depth:0,height:.69224,italic:0,skew:0},10016:{depth:0,height:.69224,italic:0,skew:0},10731:{depth:.11111,height:.69224,italic:0,skew:0},10846:{depth:.19444,height:.75583,italic:0,skew:0},10877:{depth:.13667,height:.63667,italic:0,skew:0},10878:{depth:.13667,height:.63667,italic:0,skew:0},10885:{depth:.25583,height:.75583,italic:0,skew:0},10886:{depth:.25583,height:.75583,italic:0,skew:0},10887:{depth:.13597,height:.63597,italic:0,skew:0},10888:{depth:.13597,height:.63597,italic:0,skew:0},10889:{depth:.26167,height:.75726,italic:0,skew:0},10890:{depth:.26167,height:.75726,italic:0,skew:0},10891:{depth:.48256,height:.98256,italic:0,skew:0},10892:{depth:.48256,height:.98256,italic:0,skew:0},10901:{depth:.13667,height:.63667,italic:0,skew:0},10902:{depth:.13667,height:.63667,italic:0,skew:0},10933:{depth:.25142,height:.75726,italic:0,skew:0},10934:{depth:.25142,height:.75726,italic:0,skew:0},10935:{depth:.26167,height:.75726,italic:0,skew:0},10936:{depth:.26167,height:.75726,italic:0,skew:0},10937:{depth:.26167,height:.75726,italic:0,skew:0},10938:{depth:.26167,height:.75726,italic:0,skew:0},10949:{depth:.25583,height:.75583,italic:0,skew:0},10950:{depth:.25583,height:.75583,italic:0,skew:0},10955:{depth:.28481,height:.79383,italic:0,skew:0},10956:{depth:.28481,height:.79383,italic:0,skew:0},57350:{depth:.08167,height:.58167,italic:0,skew:0},57351:{depth:.08167,height:.58167,italic:0,skew:0},57352:{depth:.08167,height:.58167,italic:0,skew:0},57353:{depth:0,height:.43056,italic:.04028,skew:0},57356:{depth:.25142,height:.75726,italic:0,skew:0},57357:{depth:.25142,height:.75726,italic:0,skew:0},57358:{depth:.41951,height:.91951,italic:0,skew:0},57359:{depth:.30274,height:.79383,italic:0,skew:0},57360:{depth:.30274,height:.79383,italic:0,skew:0},57361:{depth:.41951,height:.91951,italic:0,skew:0},57366:{depth:.25142,height:.75726,italic:0,skew:0},57367:{depth:.25142,height:.75726,
|
||
italic:0,skew:0},57368:{depth:.25142,height:.75726,italic:0,skew:0},57369:{depth:.25142,height:.75726,italic:0,skew:0},57370:{depth:.13597,height:.63597,italic:0,skew:0},57371:{depth:.13597,height:.63597,italic:0,skew:0}},"Caligraphic-Regular":{48:{depth:0,height:.43056,italic:0,skew:0},49:{depth:0,height:.43056,italic:0,skew:0},50:{depth:0,height:.43056,italic:0,skew:0},51:{depth:.19444,height:.43056,italic:0,skew:0},52:{depth:.19444,height:.43056,italic:0,skew:0},53:{depth:.19444,height:.43056,italic:0,skew:0},54:{depth:0,height:.64444,italic:0,skew:0},55:{depth:.19444,height:.43056,italic:0,skew:0},56:{depth:0,height:.64444,italic:0,skew:0},57:{depth:.19444,height:.43056,italic:0,skew:0},65:{depth:0,height:.68333,italic:0,skew:.19445},66:{depth:0,height:.68333,italic:.03041,skew:.13889},67:{depth:0,height:.68333,italic:.05834,skew:.13889},68:{depth:0,height:.68333,italic:.02778,skew:.08334},69:{depth:0,height:.68333,italic:.08944,skew:.11111},70:{depth:0,height:.68333,italic:.09931,skew:.11111},71:{depth:.09722,height:.68333,italic:.0593,skew:.11111},72:{depth:0,height:.68333,italic:.00965,skew:.11111},73:{depth:0,height:.68333,italic:.07382,skew:0},74:{depth:.09722,height:.68333,italic:.18472,skew:.16667},75:{depth:0,height:.68333,italic:.01445,skew:.05556},76:{depth:0,height:.68333,italic:0,skew:.13889},77:{depth:0,height:.68333,italic:0,skew:.13889},78:{depth:0,height:.68333,italic:.14736,skew:.08334},79:{depth:0,height:.68333,italic:.02778,skew:.11111},80:{depth:0,height:.68333,italic:.08222,skew:.08334},81:{depth:.09722,height:.68333,italic:0,skew:.11111},82:{depth:0,height:.68333,italic:0,skew:.08334},83:{depth:0,height:.68333,italic:.075,skew:.13889},84:{depth:0,height:.68333,italic:.25417,skew:0},85:{depth:0,height:.68333,italic:.09931,skew:.08334},86:{depth:0,height:.68333,italic:.08222,skew:0},87:{depth:0,height:.68333,italic:.08222,skew:.08334},88:{depth:0,height:.68333,italic:.14643,skew:.13889},89:{depth:.09722,height:.68333,italic:.08222,skew:.08334},90:{depth:0,height:.68333,italic:.07944,skew:.13889}},"Fraktur-Regular":{33:{depth:0,height:.69141,italic:0,skew:0},34:{depth:0,height:.69141,italic:0,skew:0},38:{depth:0,height:.69141,italic:0,skew:0},39:{depth:0,height:.69141,italic:0,skew:0},40:{depth:.24982,height:.74947,italic:0,skew:0},41:{depth:.24982,height:.74947,italic:0,skew:0},42:{depth:0,height:.62119,italic:0,skew:0},43:{depth:.08319,height:.58283,italic:0,skew:0},44:{depth:0,height:.10803,italic:0,skew:0},45:{depth:.08319,height:.58283,italic:0,skew:0},46:{depth:0,height:.10803,italic:0,skew:0},47:{depth:.24982,height:.74947,italic:0,skew:0},48:{depth:0,height:.47534,italic:0,skew:0},49:{depth:0,height:.47534,italic:0,skew:0},50:{depth:0,height:.47534,italic:0,skew:0},51:{depth:.18906,height:.47534,italic:0,skew:0},52:{depth:.18906,height:.47534,italic:0,skew:0},53:{depth:.18906,height:.47534,italic:0,skew:0},54:{depth:0,height:.69141,italic:0,skew:0},55:{depth:.18906,height:.47534,italic:0,skew:0},56:{depth:0,height:.69141,italic:0,skew:0},57:{depth:.18906,height:.47534,italic:0,skew:0},58:{depth:0,height:.47534,italic:0,skew:0},59:{depth:.12604,height:.47534,italic:0,skew:0},61:{depth:-.13099,height:.36866,italic:0,skew:0},63:{depth:0,height:.69141,italic:0,skew:0},65:{depth:0,height:.69141,italic:0,skew:0},66:{depth:0,height:.69141,italic:0,skew:0},67:{depth:0,height:.69141,italic:0,skew:0},68:{depth:0,height:.69141,italic:0,skew:0},69:{depth:0,height:.69141,italic:0,skew:0},70:{depth:.12604,height:.69141,italic:0,skew:0},71:{depth:0,height:.69141,italic:0,skew:0},72:{depth:.06302,height:.69141,italic:0,skew:0},73:{depth:0,height:.69141,italic:0,skew:0},74:{depth:.12604,height:.69141,italic:0,skew:0},75:{depth:0,height:.69141,italic:0,skew:0},76:{depth:0,height:.69141,italic:0,skew:0},77:{depth:0,height:.69141,italic:0,skew:0},78:{depth:0,height:.69141,italic:0,skew:0},79:{depth:0,height:.69141,italic:0,skew:0},80:{depth:.18906,height:.69141,italic:0,skew:0},81:{depth:.03781,height:.69141,italic:0,skew:0},82:{depth:0,height:.69141,italic:0,skew:0},83:{depth:0,height:.69141,italic:0,skew:0},84:{depth:0,height:.69141,italic:0,skew:0},85:{depth:0,height:.69141,italic:0,skew:0},86:{depth:0,height:.69141,italic:0,skew:0},87:{depth:0,height:.69141,italic:0,skew:0},88:{depth:0,height:.69141,italic:0,skew:0},89:{depth:.18906,height:.69141,italic:0,skew:0},90:{depth:.12604,height:.69141,italic:0,skew:0},91:{depth:.24982,height:.74947,italic:0,skew:0},93:{depth:.24982,height:.74947,italic:0,skew:0},94:{depth:0,height:.69141,italic:0,skew:0},97:{depth:0,height:.47534,italic:0,skew:0},98:{depth:0,height:.69141,italic:0,skew:0},99:{depth:0,height:.47534,italic:0,skew:0},100:{depth:0,height:.62119,italic:0,skew:0},101:{depth:0,height:.47534,italic:0,skew:0},102:{depth:.18906,height:.69141,italic:0,skew:0},103:{depth:.18906,height:.47534,italic:0,skew:0},104:{depth:.18906,height:.69141,italic:0,skew:0},105:{depth:0,height:.69141,italic:0,skew:0},106:{depth:0,height:.69141,italic:0,skew:0},107:{depth:0,height:.69141,italic:0,skew:0},108:{depth:0,height:.69141,italic:0,skew:0},109:{depth:0,height:.47534,italic:0,skew:0},110:{depth:0,height:.47534,italic:0,skew:0},111:{depth:0,height:.47534,italic:0,skew:0},112:{depth:.18906,height:.52396,italic:0,skew:0},113:{depth:.18906,height:.47534,italic:0,skew:0},114:{depth:0,height:.47534,italic:0,skew:0},115:{depth:0,height:.47534,italic:0,skew:0},116:{depth:0,height:.62119,italic:0,skew:0},117:{depth:0,height:.47534,italic:0,skew:0},118:{depth:0,height:.52396,italic:0,skew:0},119:{depth:0,height:.52396,italic:0,skew:0},120:{depth:.18906,height:.47534,italic:0,skew:0},121:{depth:.18906,height:.47534,italic:0,skew:0},122:{depth:.18906,height:.47534,italic:0,skew:0},8216:{depth:0,height:.69141,italic:0,skew:0},8217:{depth:0,height:.69141,italic:0,skew:0},58112:{depth:0,height:.62119,italic:0,skew:0},58113:{depth:0,height:.62119,italic:0,skew:0},58114:{depth:.18906,height:.69141,italic:0,skew:0},58115:{depth:.18906,height:.69141,italic:0,skew:0},58116:{depth:.18906,height:.47534,italic:0,skew:0},58117:{depth:0,height:.69141,italic:0,skew:0},58118:{depth:0,height:.62119,italic:0,skew:0},58119:{depth:0,height:.47534,italic:0,skew:0}},"Main-Bold":{33:{depth:0,height:.69444,italic:0,skew:0},34:{depth:0,height:.69444,italic:0,skew:0},35:{depth:.19444,height:.69444,italic:0,skew:0},36:{depth:.05556,height:.75,italic:0,skew:0},37:{depth:.05556,height:.75,italic:0,skew:0},38:{depth:0,height:.69444,italic:0,skew:0},39:{depth:0,height:.69444,italic:0,skew:0},40:{depth:.25,height:.75,italic:0,skew:0},41:{depth:.25,height:.75,italic:0,skew:0},42:{depth:0,height:.75,italic:0,skew:0},43:{depth:.13333,height:.63333,italic:0,skew:0},44:{depth:.19444,height:.15556,italic:0,skew:0},45:{depth:0,height:.44444,italic:0,skew:0},46:{depth:0,height:.15556,italic:0,skew:0},47:{depth:.25,height:.75,italic:0,skew:0},48:{depth:0,height:.64444,italic:0,skew:0},49:{depth:0,height:.64444,italic:0,skew:0},50:{depth:0,height:.64444,italic:0,skew:0},51:{depth:0,height:.64444,italic:0,skew:0},52:{depth:0,height:.64444,italic:0,skew:0},53:{depth:0,height:.64444,italic:0,skew:0},54:{depth:0,height:.64444,italic:0,skew:0},55:{depth:0,height:.64444,italic:0,skew:0},56:{depth:0,height:.64444,italic:0,skew:0},57:{depth:0,height:.64444,italic:0,skew:0},58:{depth:0,height:.44444,italic:0,skew:0},59:{depth:.19444,height:.44444,italic:0,skew:0},60:{depth:.08556,height:.58556,italic:0,skew:0},61:{depth:-.10889,height:.39111,italic:0,skew:0},62:{depth:.08556,height:.58556,italic:0,skew:0},63:{depth:0,height:.69444,italic:0,skew:0},64:{depth:0,height:.69444,italic:0,skew:0},65:{depth:0,height:.68611,italic:0,skew:0},66:{depth:0,height:.68611,italic:0,skew:0},67:{depth:0,height:.68611,italic:0,skew:0},68:{depth:0,height:.68611,italic:0,skew:0},69:{depth:0,height:.68611,italic:0,skew:0},70:{depth:0,height:.68611,italic:0,skew:0},71:{depth:0,height:.68611,italic:0,skew:0},72:{depth:0,height:.68611,italic:0,skew:0},73:{depth:0,height:.68611,italic:0,skew:0},74:{depth:0,height:.68611,italic:0,skew:0},75:{depth:0,height:.68611,italic:0,skew:0},76:{depth:0,height:.68611,italic:0,skew:0},77:{depth:0,height:.68611,italic:0,skew:0},78:{depth:0,height:.68611,italic:0,skew:0},79:{depth:0,height:.68611,italic:0,skew:0},80:{depth:0,height:.68611,italic:0,skew:0},81:{depth:.19444,height:.68611,italic:0,skew:0},82:{depth:0,height:.68611,italic:0,skew:0},83:{depth:0,height:.68611,italic:0,skew:0},84:{depth:0,height:.68611,italic:0,skew:0},85:{depth:0,height:.68611,italic:0,skew:0},86:{depth:0,height:.68611,italic:.01597,skew:0},87:{depth:0,height:.68611,italic:.01597,skew:0},88:{depth:0,height:.68611,italic:0,skew:0},89:{depth:0,height:.68611,italic:.02875,skew:0},90:{depth:0,height:.68611,italic:0,skew:0},91:{depth:.25,height:.75,italic:0,skew:0},92:{depth:.25,height:.75,italic:0,skew:0},93:{depth:.25,height:.75,italic:0,skew:0},94:{depth:0,height:.69444,italic:0,skew:0},95:{depth:.31,height:.13444,italic:.03194,skew:0},96:{depth:0,height:.69444,italic:0,skew:0},97:{depth:0,height:.44444,italic:0,skew:0},98:{depth:0,height:.69444,italic:0,skew:0},99:{depth:0,height:.44444,italic:0,skew:0},100:{depth:0,height:.69444,italic:0,skew:0},101:{depth:0,height:.44444,italic:0,skew:0},102:{depth:0,height:.69444,italic:.10903,skew:0},103:{depth:.19444,height:.44444,italic:.01597,skew:0},104:{depth:0,height:.69444,italic:0,skew:0},105:{depth:0,height:.69444,italic:0,skew:0},106:{depth:.19444,height:.69444,italic:0,skew:0},107:{depth:0,height:.69444,italic:0,skew:0},108:{depth:0,height:.69444,italic:0,skew:0},109:{depth:0,height:.44444,italic:0,skew:0},110:{depth:0,height:.44444,italic:0,skew:0},111:{depth:0,height:.44444,italic:0,skew:0},112:{depth:.19444,height:.44444,italic:0,skew:0},113:{depth:.19444,height:.44444,italic:0,skew:0},114:{depth:0,height:.44444,italic:0,skew:0},115:{depth:0,height:.44444,italic:0,skew:0},116:{depth:0,height:.63492,italic:0,skew:0},117:{depth:0,height:.44444,italic:0,skew:0},118:{depth:0,height:.44444,italic:.01597,skew:0},119:{depth:0,height:.44444,italic:.01597,skew:0},120:{depth:0,height:.44444,italic:0,skew:0},121:{depth:.19444,height:.44444,italic:.01597,skew:0},122:{depth:0,height:.44444,italic:0,skew:0},123:{depth:.25,height:.75,italic:0,skew:0},124:{depth:.25,height:.75,italic:0,skew:0},125:{depth:.25,height:.75,italic:0,skew:0},126:{depth:.35,height:.34444,italic:0,skew:0},168:{depth:0,height:.69444,italic:0,skew:0},172:{depth:0,height:.44444,italic:0,skew:0},175:{depth:0,height:.59611,italic:0,skew:0},176:{depth:0,height:.69444,italic:0,skew:0},177:{depth:.13333,height:.63333,italic:0,skew:0},180:{depth:0,height:.69444,italic:0,skew:0},215:{depth:.13333,height:.63333,italic:0,skew:0},247:{depth:.13333,height:.63333,italic:0,skew:0},305:{depth:0,height:.44444,italic:0,skew:0},567:{depth:.19444,height:.44444,italic:0,skew:0},710:{depth:0,height:.69444,italic:0,skew:0},711:{depth:0,height:.63194,italic:0,skew:0},713:{depth:0,height:.59611,italic:0,skew:0},714:{depth:0,height:.69444,italic:0,skew:0},715:{depth:0,height:.69444,italic:0,skew:0},728:{depth:0,height:.69444,italic:0,skew:0},729:{depth:0,height:.69444,italic:0,skew:0},730:{depth:0,height:.69444,italic:0,skew:0},732:{depth:0,height:.69444,italic:0,skew:0},768:{depth:0,height:.69444,italic:0,skew:0},769:{depth:0,height:.69444,italic:0,skew:0},770:{depth:0,height:.69444,italic:0,skew:0},771:{depth:0,height:.69444,italic:0,skew:0},772:{depth:0,height:.59611,italic:0,skew:0},774:{depth:0,height:.69444,italic:0,skew:0},775:{depth:0,height:.69444,italic:0,skew:0},776:{depth:0,height:.69444,italic:0,skew:0},778:{depth:0,height:.69444,italic:0,skew:0},779:{depth:0,height:.69444,italic:0,skew:0},780:{depth:0,height:.63194,italic:0,skew:0},824:{depth:.19444,height:.69444,italic:0,skew:0},915:{depth:0,height:.68611,italic:0,skew:0},916:{depth:0,height:.68611,italic:0,skew:0},920:{depth:0,height:.68611,italic:0,skew:0},923:{depth:0,height:.68611,italic:0,skew:0},926:{depth:0,height:.68611,italic:0,skew:0},928:{depth:0,height:.68611,italic:0,skew:0},931:{depth:0,height:.68611,italic:0,skew:0},933:{depth:0,height:.68611,italic:0,skew:0},934:{depth:0,height:.68611,italic:0,skew:0},936:{depth:0,height:.68611,italic:0,skew:0},937:{depth:0,height:.68611,italic:0,skew:0},8211:{depth:0,height:.44444,italic:.03194,skew:0},8212:{depth:0,height:.44444,italic:.03194,skew:0},8216:{depth:0,height:.69444,italic:0,skew:0},8217:{depth:0,height:.69444,italic:0,skew:0},8220:{depth:0,height:.69444,italic:0,skew:0},8221:{depth:0,height:.69444,italic:0,skew:0},8224:{depth:.19444,height:.69444,italic:0,skew:0},8225:{depth:.19444,height:.69444,italic:0,skew:0},8242:{depth:0,height:.55556,italic:0,skew:0},8407:{depth:0,height:.72444,italic:.15486,skew:0},8463:{depth:0,height:.69444,italic:0,skew:0},8465:{depth:0,height:.69444,italic:0,skew:0},8467:{depth:0,height:.69444,italic:0,skew:0},8472:{depth:.19444,height:.44444,italic:0,skew:0},8476:{depth:0,height:.69444,italic:0,skew:0},8501:{depth:0,height:.69444,italic:0,skew:0},8592:{depth:-.10889,height:.39111,italic:0,skew:0},8593:{depth:.19444,height:.69444,italic:0,skew:0},8594:{depth:-.10889,height:.39111,italic:0,skew:0},8595:{depth:.19444,height:.69444,italic:0,skew:0},8596:{depth:-.10889,height:.39111,italic:0,skew:0},8597:{depth:.25,height:.75,italic:0,skew:0},8598:{depth:.19444,height:.69444,italic:0,skew:0},8599:{depth:.19444,height:.69444,italic:0,skew:0},8600:{depth:.19444,height:.69444,italic:0,skew:0},8601:{depth:.19444,height:.69444,italic:0,skew:0},8636:{depth:-.10889,height:.39111,italic:0,skew:0},8637:{depth:-.10889,height:.39111,italic:0,skew:0},8640:{depth:-.10889,height:.39111,italic:0,skew:0},8641:{depth:-.10889,height:.39111,italic:0,skew:0},8656:{depth:-.10889,height:.39111,italic:0,skew:0},8657:{depth:.19444,height:.69444,italic:0,skew:0},8658:{depth:-.10889,height:.39111,italic:0,skew:0},8659:{depth:.19444,height:.69444,italic:0,skew:0},8660:{depth:-.10889,height:.39111,italic:0,skew:0},8661:{depth:.25,height:.75,italic:0,skew:0},8704:{depth:0,height:.69444,italic:0,skew:0},8706:{depth:0,height:.69444,italic:.06389,skew:0},8707:{depth:0,height:.69444,italic:0,skew:0},8709:{depth:.05556,height:.75,italic:0,skew:0},8711:{depth:0,height:.68611,italic:0,skew:0},8712:{depth:.08556,height:.58556,italic:0,skew:0},8715:{depth:.08556,height:.58556,italic:0,skew:0},8722:{depth:.13333,height:.63333,italic:0,skew:0},8723:{depth:.13333,height:.63333,italic:0,skew:0},8725:{depth:.25,height:.75,italic:0,skew:0},8726:{depth:.25,height:.75,italic:0,skew:0},8727:{depth:-.02778,height:.47222,italic:0,skew:0},8728:{depth:-.02639,height:.47361,italic:0,skew:0},8729:{depth:-.02639,height:.47361,italic:0,skew:0},8730:{depth:.18,height:.82,italic:0,skew:0},8733:{depth:0,height:.44444,italic:0,skew:0},8734:{depth:0,height:.44444,italic:0,skew:0},8736:{depth:0,height:.69224,italic:0,skew:0},8739:{depth:.25,height:.75,italic:0,skew:0},8741:{depth:.25,height:.75,italic:0,skew:0},8743:{depth:0,height:.55556,italic:0,skew:0},8744:{depth:0,height:.55556,italic:0,skew:0},8745:{depth:0,height:.55556,italic:0,skew:0},8746:{depth:0,height:.55556,italic:0,skew:0},8747:{depth:.19444,height:.69444,italic:.12778,skew:0},8764:{depth:-.10889,height:.39111,italic:0,skew:0},8768:{depth:.19444,height:.69444,italic:0,skew:0},8771:{depth:.00222,height:.50222,italic:0,skew:0},8776:{depth:.02444,height:.52444,italic:0,skew:0},8781:{depth:.00222,height:.50222,italic:0,skew:0},8801:{depth:.00222,height:.50222,italic:0,skew:0},8804:{depth:.19667,height:.69667,italic:0,skew:0},8805:{depth:.19667,height:.69667,italic:0,skew:0},8810:{depth:.08556,height:.58556,italic:0,skew:0},8811:{depth:.08556,height:.58556,italic:0,skew:0},8826:{depth:.08556,height:.58556,italic:0,skew:0},8827:{depth:.08556,height:.58556,italic:0,skew:0},8834:{depth:.08556,height:.58556,italic:0,skew:0},8835:{depth:.08556,height:.58556,italic:0,skew:0},8838:{depth:.19667,height:.69667,italic:0,skew:0},8839:{depth:.19667,height:.69667,italic:0,skew:0},8846:{depth:0,height:.55556,italic:0,skew:0},8849:{depth:.19667,height:.69667,italic:0,skew:0},8850:{depth:.19667,height:.69667,italic:0,skew:0},8851:{depth:0,height:.55556,italic:0,skew:0},8852:{depth:0,height:.55556,italic:0,skew:0},8853:{depth:.13333,height:.63333,italic:0,skew:0},8854:{depth:.13333,height:.63333,italic:0,skew:0},8855:{depth:.13333,height:.63333,italic:0,skew:0},8856:{depth:.13333,height:.63333,italic:0,skew:0},8857:{depth:.13333,height:.63333,italic:0,skew:0},8866:{depth:0,height:.69444,italic:0,skew:0},8867:{depth:0,height:.69444,italic:0,skew:0},8868:{depth:0,height:.69444,italic:0,skew:0},8869:{depth:0,height:.69444,italic:0,skew:0},8900:{depth:-.02639,height:.47361,italic:0,skew:0},8901:{depth:-.02639,height:.47361,italic:0,skew:0},8902:{depth:-.02778,height:.47222,italic:0,skew:0},8968:{depth:.25,height:.75,italic:0,skew:0},8969:{depth:.25,height:.75,italic:0,skew:0},8970:{depth:.25,height:.75,italic:0,skew:0},8971:{depth:.25,height:.75,italic:0,skew:0},8994:{depth:-.13889,height:.36111,italic:0,skew:0},8995:{depth:-.13889,height:.36111,italic:0,skew:0},9651:{depth:.19444,height:.69444,italic:0,skew:0},9657:{depth:-.02778,height:.47222,italic:0,skew:0},9661:{depth:.19444,height:.69444,italic:0,skew:0},9667:{depth:-.02778,height:.47222,italic:0,skew:0},9711:{depth:.19444,height:.69444,italic:0,skew:0},9824:{depth:.12963,height:.69444,italic:0,skew:0},9825:{depth:.12963,height:.69444,italic:0,skew:0},9826:{depth:.12963,height:.69444,italic:0,skew:0},9827:{depth:.12963,height:.69444,italic:0,skew:0},9837:{depth:0,height:.75,italic:0,skew:0},9838:{depth:.19444,height:.69444,italic:0,skew:0},9839:{depth:.19444,height:.69444,italic:0,skew:0},10216:{depth:.25,height:.75,italic:0,skew:0},10217:{depth:.25,height:.75,italic:0,skew:0},10815:{depth:0,height:.68611,italic:0,skew:0},10927:{depth:.19667,height:.69667,italic:0,skew:0},10928:{depth:.19667,height:.69667,italic:0,skew:0}},"Main-Italic":{33:{depth:0,height:.69444,italic:.12417,skew:0},34:{depth:0,height:.69444,italic:.06961,skew:0},35:{depth:.19444,height:.69444,italic:.06616,skew:0},37:{depth:.05556,height:.75,italic:.13639,skew:0},38:{depth:0,height:.69444,italic:.09694,skew:0},39:{depth:0,height:.69444,italic:.12417,skew:0},40:{depth:.25,height:.75,italic:.16194,skew:0},41:{depth:.25,height:.75,italic:.03694,skew:0},42:{depth:0,height:.75,italic:.14917,skew:0},43:{depth:.05667,height:.56167,italic:.03694,skew:0},44:{depth:.19444,height:.10556,italic:0,skew:0},45:{depth:0,height:.43056,italic:.02826,skew:0},46:{depth:0,height:.10556,italic:0,skew:0},47:{depth:.25,height:.75,italic:.16194,skew:0},48:{depth:0,height:.64444,italic:.13556,skew:0},49:{depth:0,height:.64444,italic:.13556,skew:0},50:{depth:0,height:.64444,italic:.13556,skew:0},51:{depth:0,height:.64444,italic:.13556,skew:0},52:{depth:.19444,height:.64444,italic:.13556,skew:0},53:{depth:0,height:.64444,italic:.13556,skew:0},54:{depth:0,height:.64444,italic:.13556,skew:0},55:{depth:.19444,height:.64444,italic:.13556,skew:0},56:{depth:0,height:.64444,italic:.13556,skew:0},57:{depth:0,height:.64444,italic:.13556,skew:0},58:{depth:0,height:.43056,italic:.0582,skew:0},59:{depth:.19444,height:.43056,italic:.0582,skew:0},61:{depth:-.13313,height:.36687,italic:.06616,skew:0},63:{depth:0,height:.69444,italic:.1225,skew:0},64:{depth:0,height:.69444,italic:.09597,skew:0},65:{depth:0,height:.68333,italic:0,skew:0},66:{depth:0,height:.68333,italic:.10257,skew:0},67:{depth:0,height:.68333,italic:.14528,skew:0},68:{depth:0,height:.68333,italic:.09403,skew:0},69:{depth:0,height:.68333,italic:.12028,skew:0},70:{depth:0,height:.68333,italic:.13305,skew:0},71:{depth:0,height:.68333,italic:.08722,skew:0},72:{depth:0,height:.68333,italic:.16389,skew:0},73:{depth:0,height:.68333,italic:.15806,skew:0},74:{depth:0,height:.68333,italic:.14028,skew:0},75:{depth:0,height:.68333,italic:.14528,skew:0},76:{depth:0,height:.68333,italic:0,skew:0},77:{depth:0,height:.68333,italic:.16389,skew:0},78:{depth:0,height:.68333,italic:.16389,skew:0},79:{depth:0,height:.68333,italic:.09403,skew:0},80:{depth:0,height:.68333,italic:.10257,skew:0},81:{depth:.19444,height:.68333,italic:.09403,skew:0},82:{depth:0,height:.68333,italic:.03868,skew:0},83:{depth:0,height:.68333,italic:.11972,skew:0},84:{depth:0,height:.68333,italic:.13305,skew:0},85:{depth:0,height:.68333,italic:.16389,skew:0},86:{depth:0,height:.68333,italic:.18361,skew:0},87:{depth:0,height:.68333,italic:.18361,skew:0},88:{depth:0,height:.68333,italic:.15806,skew:0},89:{depth:0,height:.68333,italic:.19383,skew:0},90:{depth:0,height:.68333,italic:.14528,skew:0},91:{depth:.25,height:.75,italic:.1875,skew:0},93:{depth:.25,height:.75,italic:.10528,skew:0},94:{depth:0,height:.69444,italic:.06646,skew:0},95:{depth:.31,height:.12056,italic:.09208,skew:0},97:{depth:0,height:.43056,italic:.07671,skew:0},98:{depth:0,height:.69444,italic:.06312,skew:0},99:{depth:0,height:.43056,italic:.05653,skew:0},100:{depth:0,height:.69444,italic:.10333,skew:0},101:{depth:0,height:.43056,italic:.07514,skew:0},102:{depth:.19444,height:.69444,italic:.21194,skew:0},103:{depth:.19444,height:.43056,italic:.08847,skew:0},104:{depth:0,height:.69444,italic:.07671,skew:0},105:{depth:0,height:.65536,italic:.1019,skew:0},106:{depth:.19444,height:.65536,italic:.14467,skew:0},107:{depth:0,height:.69444,italic:.10764,skew:0},108:{depth:0,height:.69444,italic:.10333,skew:0},109:{depth:0,height:.43056,italic:.07671,skew:0},110:{depth:0,height:.43056,italic:.07671,skew:0},111:{depth:0,height:.43056,italic:.06312,skew:0},112:{depth:.19444,height:.43056,italic:.06312,skew:0},113:{depth:.19444,height:.43056,italic:.08847,skew:0},114:{depth:0,height:.43056,italic:.10764,skew:0},115:{depth:0,height:.43056,italic:.08208,skew:0},116:{depth:0,height:.61508,italic:.09486,skew:0},117:{depth:0,height:.43056,italic:.07671,skew:0},118:{depth:0,height:.43056,italic:.10764,skew:0},119:{depth:0,height:.43056,italic:.10764,skew:0},120:{depth:0,height:.43056,italic:.12042,skew:0},121:{depth:.19444,height:.43056,italic:.08847,skew:0},122:{depth:0,height:.43056,italic:.12292,skew:0},126:{depth:.35,height:.31786,italic:.11585,skew:0},163:{depth:0,height:.69444,italic:0,skew:0},305:{depth:0,height:.43056,italic:0,skew:.02778},567:{depth:.19444,height:.43056,italic:0,skew:.08334},768:{depth:0,height:.69444,italic:0,skew:0},769:{depth:0,height:.69444,italic:.09694,skew:0},770:{depth:0,height:.69444,italic:.06646,skew:0},771:{depth:0,height:.66786,italic:.11585,skew:0},772:{depth:0,height:.56167,italic:.10333,skew:0},774:{depth:0,height:.69444,italic:.10806,skew:0},775:{depth:0,height:.66786,italic:.11752,skew:0},776:{depth:0,height:.66786,italic:.10474,skew:0},778:{depth:0,height:.69444,italic:0,skew:0},779:{depth:0,height:.69444,italic:.1225,skew:0},780:{depth:0,height:.62847,italic:.08295,skew:0},915:{depth:0,height:.68333,italic:.13305,skew:0},916:{depth:0,height:.68333,italic:0,skew:0},920:{depth:0,height:.68333,italic:.09403,skew:0},923:{depth:0,height:.68333,italic:0,skew:0},926:{depth:0,height:.68333,italic:.15294,skew:0},928:{depth:0,height:.68333,italic:.16389,skew:0},931:{depth:0,height:.68333,italic:.12028,skew:0},933:{depth:0,height:.68333,italic:.11111,skew:0},934:{depth:0,height:.68333,italic:.05986,skew:0},936:{depth:0,height:.68333,italic:.11111,skew:0},937:{depth:0,height:.68333,italic:.10257,skew:0},8211:{depth:0,height:.43056,italic:.09208,skew:0},8212:{depth:0,height:.43056,italic:.09208,skew:0},8216:{depth:0,height:.69444,italic:.12417,skew:0},8217:{depth:0,height:.69444,italic:.12417,skew:0},8220:{depth:0,height:.69444,italic:.1685,skew:0},8221:{depth:0,height:.69444,italic:.06961,skew:0},8463:{depth:0,height:.68889,italic:0,skew:0}},"Main-Regular":{32:{depth:0,height:0,italic:0,skew:0},33:{depth:0,height:.69444,italic:0,skew:0},34:{depth:0,height:.69444,italic:0,skew:0},35:{depth:.19444,height:.69444,italic:0,skew:0},36:{depth:.05556,height:.75,italic:0,skew:0},37:{depth:.05556,height:.75,italic:0,skew:0},38:{depth:0,height:.69444,italic:0,skew:0},39:{depth:0,height:.69444,italic:0,skew:0},40:{depth:.25,height:.75,italic:0,skew:0},41:{depth:.25,height:.75,italic:0,skew:0},42:{depth:0,height:.75,italic:0,skew:0},43:{depth:.08333,height:.58333,italic:0,skew:0},44:{depth:.19444,height:.10556,italic:0,skew:0},45:{depth:0,height:.43056,italic:0,skew:0},46:{depth:0,height:.10556,italic:0,skew:0},47:{depth:.25,height:.75,italic:0,skew:0},48:{depth:0,height:.64444,italic:0,skew:0},49:{depth:0,height:.64444,italic:0,skew:0},50:{depth:0,height:.64444,italic:0,skew:0},51:{depth:0,height:.64444,italic:0,skew:0},52:{depth:0,height:.64444,italic:0,skew:0},53:{depth:0,height:.64444,italic:0,skew:0},54:{depth:0,height:.64444,italic:0,skew:0},55:{depth:0,height:.64444,italic:0,skew:0},56:{depth:0,height:.64444,italic:0,skew:0},57:{depth:0,height:.64444,italic:0,skew:0},58:{depth:0,height:.43056,italic:0,skew:0},59:{depth:.19444,height:.43056,italic:0,skew:0},60:{depth:.0391,height:.5391,italic:0,skew:0},61:{depth:-.13313,height:.36687,italic:0,skew:0},62:{depth:.0391,height:.5391,italic:0,skew:0},63:{depth:0,height:.69444,italic:0,skew:0},64:{depth:0,height:.69444,italic:0,skew:0},65:{depth:0,height:.68333,italic:0,skew:0},66:{depth:0,height:.68333,italic:0,skew:0},67:{depth:0,height:.68333,italic:0,skew:0},68:{depth:0,height:.68333,italic:0,skew:0},69:{depth:0,height:.68333,italic:0,skew:0},70:{depth:0,height:.68333,italic:0,skew:0},71:{depth:0,height:.68333,italic:0,skew:0},72:{depth:0,height:.68333,italic:0,skew:0},73:{depth:0,height:.68333,italic:0,skew:0},74:{depth:0,height:.68333,italic:0,skew:0},75:{depth:0,height:.68333,italic:0,skew:0},76:{depth:0,height:.68333,italic:0,skew:0},77:{depth:0,height:.68333,italic:0,skew:0},78:{depth:0,height:.68333,italic:0,skew:0},79:{depth:0,height:.68333,italic:0,skew:0},80:{depth:0,height:.68333,italic:0,skew:0},81:{depth:.19444,height:.68333,italic:0,skew:0},82:{depth:0,height:.68333,italic:0,skew:0},83:{depth:0,height:.68333,italic:0,skew:0},84:{depth:0,height:.68333,italic:0,skew:0},85:{depth:0,height:.68333,italic:0,skew:0},86:{depth:0,height:.68333,italic:.01389,skew:0},87:{depth:0,height:.68333,italic:.01389,skew:0},88:{depth:0,height:.68333,italic:0,skew:0},89:{depth:0,height:.68333,italic:.025,skew:0},90:{depth:0,height:.68333,italic:0,skew:0},91:{depth:.25,height:.75,italic:0,skew:0},92:{depth:.25,height:.75,italic:0,skew:0},93:{depth:.25,height:.75,italic:0,skew:0},94:{depth:0,height:.69444,italic:0,skew:0},95:{depth:.31,height:.12056,italic:.02778,skew:0},96:{depth:0,height:.69444,italic:0,skew:0},97:{depth:0,height:.43056,italic:0,skew:0},98:{depth:0,height:.69444,italic:0,skew:0},99:{depth:0,height:.43056,italic:0,skew:0},100:{depth:0,height:.69444,italic:0,skew:0},101:{depth:0,height:.43056,italic:0,skew:0},102:{depth:0,height:.69444,italic:.07778,skew:0},103:{depth:.19444,height:.43056,italic:.01389,skew:0},104:{depth:0,height:.69444,italic:0,skew:0},105:{depth:0,height:.66786,italic:0,skew:0},106:{depth:.19444,height:.66786,italic:0,skew:0},107:{depth:0,height:.69444,italic:0,skew:0},108:{depth:0,height:.69444,italic:0,skew:0},109:{depth:0,height:.43056,italic:0,skew:0},110:{depth:0,height:.43056,italic:0,skew:0},111:{depth:0,height:.43056,italic:0,skew:0},112:{depth:.19444,height:.43056,italic:0,skew:0},113:{depth:.19444,height:.43056,italic:0,skew:0},114:{depth:0,height:.43056,italic:0,skew:0},115:{depth:0,height:.43056,italic:0,skew:0},116:{depth:0,height:.61508,italic:0,skew:0},117:{depth:0,height:.43056,italic:0,skew:0},118:{depth:0,height:.43056,italic:.01389,skew:0},119:{depth:0,height:.43056,italic:.01389,skew:0},120:{depth:0,height:.43056,italic:0,skew:0},121:{depth:.19444,height:.43056,italic:.01389,skew:0},122:{depth:0,height:.43056,italic:0,skew:0},123:{depth:.25,height:.75,italic:0,skew:0},124:{depth:.25,height:.75,italic:0,skew:0},125:{depth:.25,height:.75,italic:0,skew:0},126:{depth:.35,height:.31786,italic:0,skew:0},160:{depth:0,height:0,italic:0,skew:0},168:{depth:0,height:.66786,italic:0,skew:0},172:{depth:0,height:.43056,italic:0,skew:0},175:{depth:0,height:.56778,italic:0,skew:0},176:{depth:0,height:.69444,italic:0,skew:0},177:{depth:.08333,height:.58333,italic:0,skew:0},180:{depth:0,height:.69444,italic:0,skew:0},215:{depth:.08333,height:.58333,italic:0,skew:0},247:{depth:.08333,height:.58333,italic:0,skew:0},305:{depth:0,height:.43056,italic:0,skew:0},567:{depth:.19444,height:.43056,italic:0,skew:0},710:{depth:0,height:.69444,italic:0,skew:0},711:{depth:0,height:.62847,italic:0,skew:0},713:{depth:0,height:.56778,italic:0,skew:0},714:{depth:0,height:.69444,italic:0,skew:0},715:{depth:0,height:.69444,italic:0,skew:0},728:{depth:0,height:.69444,italic:0,skew:0},729:{depth:0,height:.66786,italic:0,skew:0},730:{depth:0,height:.69444,italic:0,skew:0},732:{depth:0,height:.66786,italic:0,skew:0},768:{depth:0,height:.69444,italic:0,skew:0},769:{depth:0,height:.69444,italic:0,skew:0},770:{depth:0,height:.69444,italic:0,skew:0},771:{depth:0,height:.66786,italic:0,skew:0},772:{depth:0,height:.56778,italic:0,skew:0},774:{depth:0,height:.69444,italic:0,skew:0},775:{depth:0,height:.66786,italic:0,skew:0},776:{depth:0,height:.66786,italic:0,skew:0},778:{depth:0,height:.69444,italic:0,skew:0},779:{depth:0,height:.69444,italic:0,skew:0},780:{depth:0,height:.62847,italic:0,skew:0},824:{depth:.19444,height:.69444,italic:0,skew:0},915:{depth:0,height:.68333,italic:0,skew:0},916:{depth:0,height:.68333,italic:0,skew:0},920:{depth:0,height:.68333,italic:0,skew:0},923:{depth:0,height:.68333,italic:0,skew:0},926:{depth:0,height:.68333,italic:0,skew:0},928:{depth:0,height:.68333,italic:0,skew:0},931:{depth:0,height:.68333,italic:0,skew:0},933:{depth:0,height:.68333,italic:0,skew:0},934:{depth:0,height:.68333,italic:0,skew:0},936:{depth:0,height:.68333,italic:0,skew:0},937:{depth:0,height:.68333,italic:0,skew:0},8211:{depth:0,height:.43056,italic:.02778,skew:0},8212:{depth:0,height:.43056,italic:.02778,skew:0},8216:{depth:0,height:.69444,italic:0,skew:0},8217:{depth:0,height:.69444,italic:0,skew:0},8220:{depth:0,height:.69444,italic:0,skew:0},8221:{depth:0,height:.69444,italic:0,skew:0},8224:{depth:.19444,height:.69444,italic:0,skew:0},8225:{depth:.19444,height:.69444,italic:0,skew:0},8230:{depth:0,height:.12,italic:0,skew:0},8242:{depth:0,height:.55556,italic:0,skew:0},8407:{depth:0,height:.71444,italic:.15382,skew:0},8463:{depth:0,height:.68889,italic:0,skew:0},8465:{depth:0,height:.69444,italic:0,skew:0},8467:{depth:0,height:.69444,italic:0,skew:.11111},8472:{depth:.19444,height:.43056,italic:0,skew:.11111},8476:{depth:0,height:.69444,italic:0,skew:0},8501:{depth:0,height:.69444,italic:0,skew:0},8592:{depth:-.13313,height:.36687,italic:0,skew:0},8593:{depth:.19444,height:.69444,italic:0,skew:0},8594:{depth:-.13313,height:.36687,italic:0,skew:0},8595:{depth:.19444,height:.69444,italic:0,skew:0},8596:{depth:-.13313,height:.36687,italic:0,skew:0},8597:{depth:.25,height:.75,italic:0,skew:0},8598:{depth:.19444,height:.69444,italic:0,skew:0},8599:{depth:.19444,height:.69444,italic:0,skew:0},8600:{depth:.19444,height:.69444,italic:0,skew:0},8601:{depth:.19444,height:.69444,italic:0,skew:0},8614:{depth:.011,height:.511,italic:0,skew:0},8617:{depth:.011,height:.511,italic:0,skew:0},8618:{depth:.011,height:.511,italic:0,skew:0},8636:{depth:-.13313,height:.36687,italic:0,skew:0},8637:{depth:-.13313,height:.36687,italic:0,skew:0},8640:{depth:-.13313,height:.36687,italic:0,skew:0},8641:{depth:-.13313,height:.36687,italic:0,skew:0},8652:{depth:.011,height:.671,italic:0,skew:0},8656:{depth:-.13313,height:.36687,italic:0,skew:0},8657:{depth:.19444,height:.69444,italic:0,skew:0},8658:{depth:-.13313,height:.36687,italic:0,skew:0},8659:{depth:.19444,height:.69444,italic:0,skew:0},8660:{depth:-.13313,height:.36687,italic:0,skew:0},8661:{depth:.25,height:.75,italic:0,skew:0},8704:{depth:0,height:.69444,italic:0,skew:0},8706:{depth:0,height:.69444,italic:.05556,skew:.08334},8707:{depth:0,height:.69444,italic:0,skew:0},8709:{depth:.05556,height:.75,italic:0,skew:0},8711:{depth:0,
|
||
height:.68333,italic:0,skew:0},8712:{depth:.0391,height:.5391,italic:0,skew:0},8715:{depth:.0391,height:.5391,italic:0,skew:0},8722:{depth:.08333,height:.58333,italic:0,skew:0},8723:{depth:.08333,height:.58333,italic:0,skew:0},8725:{depth:.25,height:.75,italic:0,skew:0},8726:{depth:.25,height:.75,italic:0,skew:0},8727:{depth:-.03472,height:.46528,italic:0,skew:0},8728:{depth:-.05555,height:.44445,italic:0,skew:0},8729:{depth:-.05555,height:.44445,italic:0,skew:0},8730:{depth:.2,height:.8,italic:0,skew:0},8733:{depth:0,height:.43056,italic:0,skew:0},8734:{depth:0,height:.43056,italic:0,skew:0},8736:{depth:0,height:.69224,italic:0,skew:0},8739:{depth:.25,height:.75,italic:0,skew:0},8741:{depth:.25,height:.75,italic:0,skew:0},8743:{depth:0,height:.55556,italic:0,skew:0},8744:{depth:0,height:.55556,italic:0,skew:0},8745:{depth:0,height:.55556,italic:0,skew:0},8746:{depth:0,height:.55556,italic:0,skew:0},8747:{depth:.19444,height:.69444,italic:.11111,skew:0},8764:{depth:-.13313,height:.36687,italic:0,skew:0},8768:{depth:.19444,height:.69444,italic:0,skew:0},8771:{depth:-.03625,height:.46375,italic:0,skew:0},8773:{depth:-.022,height:.589,italic:0,skew:0},8776:{depth:-.01688,height:.48312,italic:0,skew:0},8781:{depth:-.03625,height:.46375,italic:0,skew:0},8784:{depth:-.133,height:.67,italic:0,skew:0},8800:{depth:.215,height:.716,italic:0,skew:0},8801:{depth:-.03625,height:.46375,italic:0,skew:0},8804:{depth:.13597,height:.63597,italic:0,skew:0},8805:{depth:.13597,height:.63597,italic:0,skew:0},8810:{depth:.0391,height:.5391,italic:0,skew:0},8811:{depth:.0391,height:.5391,italic:0,skew:0},8826:{depth:.0391,height:.5391,italic:0,skew:0},8827:{depth:.0391,height:.5391,italic:0,skew:0},8834:{depth:.0391,height:.5391,italic:0,skew:0},8835:{depth:.0391,height:.5391,italic:0,skew:0},8838:{depth:.13597,height:.63597,italic:0,skew:0},8839:{depth:.13597,height:.63597,italic:0,skew:0},8846:{depth:0,height:.55556,italic:0,skew:0},8849:{depth:.13597,height:.63597,italic:0,skew:0},8850:{depth:.13597,height:.63597,italic:0,skew:0},8851:{depth:0,height:.55556,italic:0,skew:0},8852:{depth:0,height:.55556,italic:0,skew:0},8853:{depth:.08333,height:.58333,italic:0,skew:0},8854:{depth:.08333,height:.58333,italic:0,skew:0},8855:{depth:.08333,height:.58333,italic:0,skew:0},8856:{depth:.08333,height:.58333,italic:0,skew:0},8857:{depth:.08333,height:.58333,italic:0,skew:0},8866:{depth:0,height:.69444,italic:0,skew:0},8867:{depth:0,height:.69444,italic:0,skew:0},8868:{depth:0,height:.69444,italic:0,skew:0},8869:{depth:0,height:.69444,italic:0,skew:0},8872:{depth:.249,height:.75,italic:0,skew:0},8900:{depth:-.05555,height:.44445,italic:0,skew:0},8901:{depth:-.05555,height:.44445,italic:0,skew:0},8902:{depth:-.03472,height:.46528,italic:0,skew:0},8904:{depth:.005,height:.505,italic:0,skew:0},8942:{depth:.03,height:.9,italic:0,skew:0},8943:{depth:-.19,height:.31,italic:0,skew:0},8945:{depth:-.1,height:.82,italic:0,skew:0},8968:{depth:.25,height:.75,italic:0,skew:0},8969:{depth:.25,height:.75,italic:0,skew:0},8970:{depth:.25,height:.75,italic:0,skew:0},8971:{depth:.25,height:.75,italic:0,skew:0},8994:{depth:-.14236,height:.35764,italic:0,skew:0},8995:{depth:-.14236,height:.35764,italic:0,skew:0},9136:{depth:.244,height:.744,italic:0,skew:0},9137:{depth:.244,height:.744,italic:0,skew:0},9651:{depth:.19444,height:.69444,italic:0,skew:0},9657:{depth:-.03472,height:.46528,italic:0,skew:0},9661:{depth:.19444,height:.69444,italic:0,skew:0},9667:{depth:-.03472,height:.46528,italic:0,skew:0},9711:{depth:.19444,height:.69444,italic:0,skew:0},9824:{depth:.12963,height:.69444,italic:0,skew:0},9825:{depth:.12963,height:.69444,italic:0,skew:0},9826:{depth:.12963,height:.69444,italic:0,skew:0},9827:{depth:.12963,height:.69444,italic:0,skew:0},9837:{depth:0,height:.75,italic:0,skew:0},9838:{depth:.19444,height:.69444,italic:0,skew:0},9839:{depth:.19444,height:.69444,italic:0,skew:0},10216:{depth:.25,height:.75,italic:0,skew:0},10217:{depth:.25,height:.75,italic:0,skew:0},10222:{depth:.244,height:.744,italic:0,skew:0},10223:{depth:.244,height:.744,italic:0,skew:0},10229:{depth:.011,height:.511,italic:0,skew:0},10230:{depth:.011,height:.511,italic:0,skew:0},10231:{depth:.011,height:.511,italic:0,skew:0},10232:{depth:.024,height:.525,italic:0,skew:0},10233:{depth:.024,height:.525,italic:0,skew:0},10234:{depth:.024,height:.525,italic:0,skew:0},10236:{depth:.011,height:.511,italic:0,skew:0},10815:{depth:0,height:.68333,italic:0,skew:0},10927:{depth:.13597,height:.63597,italic:0,skew:0},10928:{depth:.13597,height:.63597,italic:0,skew:0}},"Math-BoldItalic":{47:{depth:.19444,height:.69444,italic:0,skew:0},65:{depth:0,height:.68611,italic:0,skew:0},66:{depth:0,height:.68611,italic:.04835,skew:0},67:{depth:0,height:.68611,italic:.06979,skew:0},68:{depth:0,height:.68611,italic:.03194,skew:0},69:{depth:0,height:.68611,italic:.05451,skew:0},70:{depth:0,height:.68611,italic:.15972,skew:0},71:{depth:0,height:.68611,italic:0,skew:0},72:{depth:0,height:.68611,italic:.08229,skew:0},73:{depth:0,height:.68611,italic:.07778,skew:0},74:{depth:0,height:.68611,italic:.10069,skew:0},75:{depth:0,height:.68611,italic:.06979,skew:0},76:{depth:0,height:.68611,italic:0,skew:0},77:{depth:0,height:.68611,italic:.11424,skew:0},78:{depth:0,height:.68611,italic:.11424,skew:0},79:{depth:0,height:.68611,italic:.03194,skew:0},80:{depth:0,height:.68611,italic:.15972,skew:0},81:{depth:.19444,height:.68611,italic:0,skew:0},82:{depth:0,height:.68611,italic:.00421,skew:0},83:{depth:0,height:.68611,italic:.05382,skew:0},84:{depth:0,height:.68611,italic:.15972,skew:0},85:{depth:0,height:.68611,italic:.11424,skew:0},86:{depth:0,height:.68611,italic:.25555,skew:0},87:{depth:0,height:.68611,italic:.15972,skew:0},88:{depth:0,height:.68611,italic:.07778,skew:0},89:{depth:0,height:.68611,italic:.25555,skew:0},90:{depth:0,height:.68611,italic:.06979,skew:0},97:{depth:0,height:.44444,italic:0,skew:0},98:{depth:0,height:.69444,italic:0,skew:0},99:{depth:0,height:.44444,italic:0,skew:0},100:{depth:0,height:.69444,italic:0,skew:0},101:{depth:0,height:.44444,italic:0,skew:0},102:{depth:.19444,height:.69444,italic:.11042,skew:0},103:{depth:.19444,height:.44444,italic:.03704,skew:0},104:{depth:0,height:.69444,italic:0,skew:0},105:{depth:0,height:.69326,italic:0,skew:0},106:{depth:.19444,height:.69326,italic:.0622,skew:0},107:{depth:0,height:.69444,italic:.01852,skew:0},108:{depth:0,height:.69444,italic:.0088,skew:0},109:{depth:0,height:.44444,italic:0,skew:0},110:{depth:0,height:.44444,italic:0,skew:0},111:{depth:0,height:.44444,italic:0,skew:0},112:{depth:.19444,height:.44444,italic:0,skew:0},113:{depth:.19444,height:.44444,italic:.03704,skew:0},114:{depth:0,height:.44444,italic:.03194,skew:0},115:{depth:0,height:.44444,italic:0,skew:0},116:{depth:0,height:.63492,italic:0,skew:0},117:{depth:0,height:.44444,italic:0,skew:0},118:{depth:0,height:.44444,italic:.03704,skew:0},119:{depth:0,height:.44444,italic:.02778,skew:0},120:{depth:0,height:.44444,italic:0,skew:0},121:{depth:.19444,height:.44444,italic:.03704,skew:0},122:{depth:0,height:.44444,italic:.04213,skew:0},915:{depth:0,height:.68611,italic:.15972,skew:0},916:{depth:0,height:.68611,italic:0,skew:0},920:{depth:0,height:.68611,italic:.03194,skew:0},923:{depth:0,height:.68611,italic:0,skew:0},926:{depth:0,height:.68611,italic:.07458,skew:0},928:{depth:0,height:.68611,italic:.08229,skew:0},931:{depth:0,height:.68611,italic:.05451,skew:0},933:{depth:0,height:.68611,italic:.15972,skew:0},934:{depth:0,height:.68611,italic:0,skew:0},936:{depth:0,height:.68611,italic:.11653,skew:0},937:{depth:0,height:.68611,italic:.04835,skew:0},945:{depth:0,height:.44444,italic:0,skew:0},946:{depth:.19444,height:.69444,italic:.03403,skew:0},947:{depth:.19444,height:.44444,italic:.06389,skew:0},948:{depth:0,height:.69444,italic:.03819,skew:0},949:{depth:0,height:.44444,italic:0,skew:0},950:{depth:.19444,height:.69444,italic:.06215,skew:0},951:{depth:.19444,height:.44444,italic:.03704,skew:0},952:{depth:0,height:.69444,italic:.03194,skew:0},953:{depth:0,height:.44444,italic:0,skew:0},954:{depth:0,height:.44444,italic:0,skew:0},955:{depth:0,height:.69444,italic:0,skew:0},956:{depth:.19444,height:.44444,italic:0,skew:0},957:{depth:0,height:.44444,italic:.06898,skew:0},958:{depth:.19444,height:.69444,italic:.03021,skew:0},959:{depth:0,height:.44444,italic:0,skew:0},960:{depth:0,height:.44444,italic:.03704,skew:0},961:{depth:.19444,height:.44444,italic:0,skew:0},962:{depth:.09722,height:.44444,italic:.07917,skew:0},963:{depth:0,height:.44444,italic:.03704,skew:0},964:{depth:0,height:.44444,italic:.13472,skew:0},965:{depth:0,height:.44444,italic:.03704,skew:0},966:{depth:.19444,height:.44444,italic:0,skew:0},967:{depth:.19444,height:.44444,italic:0,skew:0},968:{depth:.19444,height:.69444,italic:.03704,skew:0},969:{depth:0,height:.44444,italic:.03704,skew:0},977:{depth:0,height:.69444,italic:0,skew:0},981:{depth:.19444,height:.69444,italic:0,skew:0},982:{depth:0,height:.44444,italic:.03194,skew:0},1009:{depth:.19444,height:.44444,italic:0,skew:0},1013:{depth:0,height:.44444,italic:0,skew:0}},"Math-Italic":{47:{depth:.19444,height:.69444,italic:0,skew:0},65:{depth:0,height:.68333,italic:0,skew:.13889},66:{depth:0,height:.68333,italic:.05017,skew:.08334},67:{depth:0,height:.68333,italic:.07153,skew:.08334},68:{depth:0,height:.68333,italic:.02778,skew:.05556},69:{depth:0,height:.68333,italic:.05764,skew:.08334},70:{depth:0,height:.68333,italic:.13889,skew:.08334},71:{depth:0,height:.68333,italic:0,skew:.08334},72:{depth:0,height:.68333,italic:.08125,skew:.05556},73:{depth:0,height:.68333,italic:.07847,skew:.11111},74:{depth:0,height:.68333,italic:.09618,skew:.16667},75:{depth:0,height:.68333,italic:.07153,skew:.05556},76:{depth:0,height:.68333,italic:0,skew:.02778},77:{depth:0,height:.68333,italic:.10903,skew:.08334},78:{depth:0,height:.68333,italic:.10903,skew:.08334},79:{depth:0,height:.68333,italic:.02778,skew:.08334},80:{depth:0,height:.68333,italic:.13889,skew:.08334},81:{depth:.19444,height:.68333,italic:0,skew:.08334},82:{depth:0,height:.68333,italic:.00773,skew:.08334},83:{depth:0,height:.68333,italic:.05764,skew:.08334},84:{depth:0,height:.68333,italic:.13889,skew:.08334},85:{depth:0,height:.68333,italic:.10903,skew:.02778},86:{depth:0,height:.68333,italic:.22222,skew:0},87:{depth:0,height:.68333,italic:.13889,skew:0},88:{depth:0,height:.68333,italic:.07847,skew:.08334},89:{depth:0,height:.68333,italic:.22222,skew:0},90:{depth:0,height:.68333,italic:.07153,skew:.08334},97:{depth:0,height:.43056,italic:0,skew:0},98:{depth:0,height:.69444,italic:0,skew:0},99:{depth:0,height:.43056,italic:0,skew:.05556},100:{depth:0,height:.69444,italic:0,skew:.16667},101:{depth:0,height:.43056,italic:0,skew:.05556},102:{depth:.19444,height:.69444,italic:.10764,skew:.16667},103:{depth:.19444,height:.43056,italic:.03588,skew:.02778},104:{depth:0,height:.69444,italic:0,skew:0},105:{depth:0,height:.65952,italic:0,skew:0},106:{depth:.19444,height:.65952,italic:.05724,skew:0},107:{depth:0,height:.69444,italic:.03148,skew:0},108:{depth:0,height:.69444,italic:.01968,skew:.08334},109:{depth:0,height:.43056,italic:0,skew:0},110:{depth:0,height:.43056,italic:0,skew:0},111:{depth:0,height:.43056,italic:0,skew:.05556},112:{depth:.19444,height:.43056,italic:0,skew:.08334},113:{depth:.19444,height:.43056,italic:.03588,skew:.08334},114:{depth:0,height:.43056,italic:.02778,skew:.05556},115:{depth:0,height:.43056,italic:0,skew:.05556},116:{depth:0,height:.61508,italic:0,skew:.08334},117:{depth:0,height:.43056,italic:0,skew:.02778},118:{depth:0,height:.43056,italic:.03588,skew:.02778},119:{depth:0,height:.43056,italic:.02691,skew:.08334},120:{depth:0,height:.43056,italic:0,skew:.02778},121:{depth:.19444,height:.43056,italic:.03588,skew:.05556},122:{depth:0,height:.43056,italic:.04398,skew:.05556},915:{depth:0,height:.68333,italic:.13889,skew:.08334},916:{depth:0,height:.68333,italic:0,skew:.16667},920:{depth:0,height:.68333,italic:.02778,skew:.08334},923:{depth:0,height:.68333,italic:0,skew:.16667},926:{depth:0,height:.68333,italic:.07569,skew:.08334},928:{depth:0,height:.68333,italic:.08125,skew:.05556},931:{depth:0,height:.68333,italic:.05764,skew:.08334},933:{depth:0,height:.68333,italic:.13889,skew:.05556},934:{depth:0,height:.68333,italic:0,skew:.08334},936:{depth:0,height:.68333,italic:.11,skew:.05556},937:{depth:0,height:.68333,italic:.05017,skew:.08334},945:{depth:0,height:.43056,italic:.0037,skew:.02778},946:{depth:.19444,height:.69444,italic:.05278,skew:.08334},947:{depth:.19444,height:.43056,italic:.05556,skew:0},948:{depth:0,height:.69444,italic:.03785,skew:.05556},949:{depth:0,height:.43056,italic:0,skew:.08334},950:{depth:.19444,height:.69444,italic:.07378,skew:.08334},951:{depth:.19444,height:.43056,italic:.03588,skew:.05556},952:{depth:0,height:.69444,italic:.02778,skew:.08334},953:{depth:0,height:.43056,italic:0,skew:.05556},954:{depth:0,height:.43056,italic:0,skew:0},955:{depth:0,height:.69444,italic:0,skew:0},956:{depth:.19444,height:.43056,italic:0,skew:.02778},957:{depth:0,height:.43056,italic:.06366,skew:.02778},958:{depth:.19444,height:.69444,italic:.04601,skew:.11111},959:{depth:0,height:.43056,italic:0,skew:.05556},960:{depth:0,height:.43056,italic:.03588,skew:0},961:{depth:.19444,height:.43056,italic:0,skew:.08334},962:{depth:.09722,height:.43056,italic:.07986,skew:.08334},963:{depth:0,height:.43056,italic:.03588,skew:0},964:{depth:0,height:.43056,italic:.1132,skew:.02778},965:{depth:0,height:.43056,italic:.03588,skew:.02778},966:{depth:.19444,height:.43056,italic:0,skew:.08334},967:{depth:.19444,height:.43056,italic:0,skew:.05556},968:{depth:.19444,height:.69444,italic:.03588,skew:.11111},969:{depth:0,height:.43056,italic:.03588,skew:0},977:{depth:0,height:.69444,italic:0,skew:.08334},981:{depth:.19444,height:.69444,italic:0,skew:.08334},982:{depth:0,height:.43056,italic:.02778,skew:0},1009:{depth:.19444,height:.43056,italic:0,skew:.08334},1013:{depth:0,height:.43056,italic:0,skew:.05556}},"Math-Regular":{65:{depth:0,height:.68333,italic:0,skew:.13889},66:{depth:0,height:.68333,italic:.05017,skew:.08334},67:{depth:0,height:.68333,italic:.07153,skew:.08334},68:{depth:0,height:.68333,italic:.02778,skew:.05556},69:{depth:0,height:.68333,italic:.05764,skew:.08334},70:{depth:0,height:.68333,italic:.13889,skew:.08334},71:{depth:0,height:.68333,italic:0,skew:.08334},72:{depth:0,height:.68333,italic:.08125,skew:.05556},73:{depth:0,height:.68333,italic:.07847,skew:.11111},74:{depth:0,height:.68333,italic:.09618,skew:.16667},75:{depth:0,height:.68333,italic:.07153,skew:.05556},76:{depth:0,height:.68333,italic:0,skew:.02778},77:{depth:0,height:.68333,italic:.10903,skew:.08334},78:{depth:0,height:.68333,italic:.10903,skew:.08334},79:{depth:0,height:.68333,italic:.02778,skew:.08334},80:{depth:0,height:.68333,italic:.13889,skew:.08334},81:{depth:.19444,height:.68333,italic:0,skew:.08334},82:{depth:0,height:.68333,italic:.00773,skew:.08334},83:{depth:0,height:.68333,italic:.05764,skew:.08334},84:{depth:0,height:.68333,italic:.13889,skew:.08334},85:{depth:0,height:.68333,italic:.10903,skew:.02778},86:{depth:0,height:.68333,italic:.22222,skew:0},87:{depth:0,height:.68333,italic:.13889,skew:0},88:{depth:0,height:.68333,italic:.07847,skew:.08334},89:{depth:0,height:.68333,italic:.22222,skew:0},90:{depth:0,height:.68333,italic:.07153,skew:.08334},97:{depth:0,height:.43056,italic:0,skew:0},98:{depth:0,height:.69444,italic:0,skew:0},99:{depth:0,height:.43056,italic:0,skew:.05556},100:{depth:0,height:.69444,italic:0,skew:.16667},101:{depth:0,height:.43056,italic:0,skew:.05556},102:{depth:.19444,height:.69444,italic:.10764,skew:.16667},103:{depth:.19444,height:.43056,italic:.03588,skew:.02778},104:{depth:0,height:.69444,italic:0,skew:0},105:{depth:0,height:.65952,italic:0,skew:0},106:{depth:.19444,height:.65952,italic:.05724,skew:0},107:{depth:0,height:.69444,italic:.03148,skew:0},108:{depth:0,height:.69444,italic:.01968,skew:.08334},109:{depth:0,height:.43056,italic:0,skew:0},110:{depth:0,height:.43056,italic:0,skew:0},111:{depth:0,height:.43056,italic:0,skew:.05556},112:{depth:.19444,height:.43056,italic:0,skew:.08334},113:{depth:.19444,height:.43056,italic:.03588,skew:.08334},114:{depth:0,height:.43056,italic:.02778,skew:.05556},115:{depth:0,height:.43056,italic:0,skew:.05556},116:{depth:0,height:.61508,italic:0,skew:.08334},117:{depth:0,height:.43056,italic:0,skew:.02778},118:{depth:0,height:.43056,italic:.03588,skew:.02778},119:{depth:0,height:.43056,italic:.02691,skew:.08334},120:{depth:0,height:.43056,italic:0,skew:.02778},121:{depth:.19444,height:.43056,italic:.03588,skew:.05556},122:{depth:0,height:.43056,italic:.04398,skew:.05556},915:{depth:0,height:.68333,italic:.13889,skew:.08334},916:{depth:0,height:.68333,italic:0,skew:.16667},920:{depth:0,height:.68333,italic:.02778,skew:.08334},923:{depth:0,height:.68333,italic:0,skew:.16667},926:{depth:0,height:.68333,italic:.07569,skew:.08334},928:{depth:0,height:.68333,italic:.08125,skew:.05556},931:{depth:0,height:.68333,italic:.05764,skew:.08334},933:{depth:0,height:.68333,italic:.13889,skew:.05556},934:{depth:0,height:.68333,italic:0,skew:.08334},936:{depth:0,height:.68333,italic:.11,skew:.05556},937:{depth:0,height:.68333,italic:.05017,skew:.08334},945:{depth:0,height:.43056,italic:.0037,skew:.02778},946:{depth:.19444,height:.69444,italic:.05278,skew:.08334},947:{depth:.19444,height:.43056,italic:.05556,skew:0},948:{depth:0,height:.69444,italic:.03785,skew:.05556},949:{depth:0,height:.43056,italic:0,skew:.08334},950:{depth:.19444,height:.69444,italic:.07378,skew:.08334},951:{depth:.19444,height:.43056,italic:.03588,skew:.05556},952:{depth:0,height:.69444,italic:.02778,skew:.08334},953:{depth:0,height:.43056,italic:0,skew:.05556},954:{depth:0,height:.43056,italic:0,skew:0},955:{depth:0,height:.69444,italic:0,skew:0},956:{depth:.19444,height:.43056,italic:0,skew:.02778},957:{depth:0,height:.43056,italic:.06366,skew:.02778},958:{depth:.19444,height:.69444,italic:.04601,skew:.11111},959:{depth:0,height:.43056,italic:0,skew:.05556},960:{depth:0,height:.43056,italic:.03588,skew:0},961:{depth:.19444,height:.43056,italic:0,skew:.08334},962:{depth:.09722,height:.43056,italic:.07986,skew:.08334},963:{depth:0,height:.43056,italic:.03588,skew:0},964:{depth:0,height:.43056,italic:.1132,skew:.02778},965:{depth:0,height:.43056,italic:.03588,skew:.02778},966:{depth:.19444,height:.43056,italic:0,skew:.08334},967:{depth:.19444,height:.43056,italic:0,skew:.05556},968:{depth:.19444,height:.69444,italic:.03588,skew:.11111},969:{depth:0,height:.43056,italic:.03588,skew:0},977:{depth:0,height:.69444,italic:0,skew:.08334},981:{depth:.19444,height:.69444,italic:0,skew:.08334},982:{depth:0,height:.43056,italic:.02778,skew:0},1009:{depth:.19444,height:.43056,italic:0,skew:.08334},1013:{depth:0,height:.43056,italic:0,skew:.05556}},"SansSerif-Regular":{33:{depth:0,height:.69444,italic:0,skew:0},34:{depth:0,height:.69444,italic:0,skew:0},35:{depth:.19444,height:.69444,italic:0,skew:0},36:{depth:.05556,height:.75,italic:0,skew:0},37:{depth:.05556,height:.75,italic:0,skew:0},38:{depth:0,height:.69444,italic:0,skew:0},39:{depth:0,height:.69444,italic:0,skew:0},40:{depth:.25,height:.75,italic:0,skew:0},41:{depth:.25,height:.75,italic:0,skew:0},42:{depth:0,height:.75,italic:0,skew:0},43:{depth:.08333,height:.58333,italic:0,skew:0},44:{depth:.125,height:.08333,italic:0,skew:0},45:{depth:0,height:.44444,italic:0,skew:0},46:{depth:0,height:.08333,italic:0,skew:0},47:{depth:.25,height:.75,italic:0,skew:0},48:{depth:0,height:.65556,italic:0,skew:0},49:{depth:0,height:.65556,italic:0,skew:0},50:{depth:0,height:.65556,italic:0,skew:0},51:{depth:0,height:.65556,italic:0,skew:0},52:{depth:0,height:.65556,italic:0,skew:0},53:{depth:0,height:.65556,italic:0,skew:0},54:{depth:0,height:.65556,italic:0,skew:0},55:{depth:0,height:.65556,italic:0,skew:0},56:{depth:0,height:.65556,italic:0,skew:0},57:{depth:0,height:.65556,italic:0,skew:0},58:{depth:0,height:.44444,italic:0,skew:0},59:{depth:.125,height:.44444,italic:0,skew:0},61:{depth:-.13,height:.37,italic:0,skew:0},63:{depth:0,height:.69444,italic:0,skew:0},64:{depth:0,height:.69444,italic:0,skew:0},65:{depth:0,height:.69444,italic:0,skew:0},66:{depth:0,height:.69444,italic:0,skew:0},67:{depth:0,height:.69444,italic:0,skew:0},68:{depth:0,height:.69444,italic:0,skew:0},69:{depth:0,height:.69444,italic:0,skew:0},70:{depth:0,height:.69444,italic:0,skew:0},71:{depth:0,height:.69444,italic:0,skew:0},72:{depth:0,height:.69444,italic:0,skew:0},73:{depth:0,height:.69444,italic:0,skew:0},74:{depth:0,height:.69444,italic:0,skew:0},75:{depth:0,height:.69444,italic:0,skew:0},76:{depth:0,height:.69444,italic:0,skew:0},77:{depth:0,height:.69444,italic:0,skew:0},78:{depth:0,height:.69444,italic:0,skew:0},79:{depth:0,height:.69444,italic:0,skew:0},80:{depth:0,height:.69444,italic:0,skew:0},81:{depth:.125,height:.69444,italic:0,skew:0},82:{depth:0,height:.69444,italic:0,skew:0},83:{depth:0,height:.69444,italic:0,skew:0},84:{depth:0,height:.69444,italic:0,skew:0},85:{depth:0,height:.69444,italic:0,skew:0},86:{depth:0,height:.69444,italic:.01389,skew:0},87:{depth:0,height:.69444,italic:.01389,skew:0},88:{depth:0,height:.69444,italic:0,skew:0},89:{depth:0,height:.69444,italic:.025,skew:0},90:{depth:0,height:.69444,italic:0,skew:0},91:{depth:.25,height:.75,italic:0,skew:0},93:{depth:.25,height:.75,italic:0,skew:0},94:{depth:0,height:.69444,italic:0,skew:0},95:{depth:.35,height:.09444,italic:.02778,skew:0},97:{depth:0,height:.44444,italic:0,skew:0},98:{depth:0,height:.69444,italic:0,skew:0},99:{depth:0,height:.44444,italic:0,skew:0},100:{depth:0,height:.69444,italic:0,skew:0},101:{depth:0,height:.44444,italic:0,skew:0},102:{depth:0,height:.69444,italic:.06944,skew:0},103:{depth:.19444,height:.44444,italic:.01389,skew:0},104:{depth:0,height:.69444,italic:0,skew:0},105:{depth:0,height:.67937,italic:0,skew:0},106:{depth:.19444,height:.67937,italic:0,skew:0},107:{depth:0,height:.69444,italic:0,skew:0},108:{depth:0,height:.69444,italic:0,skew:0},109:{depth:0,height:.44444,italic:0,skew:0},110:{depth:0,height:.44444,italic:0,skew:0},111:{depth:0,height:.44444,italic:0,skew:0},112:{depth:.19444,height:.44444,italic:0,skew:0},113:{depth:.19444,height:.44444,italic:0,skew:0},114:{depth:0,height:.44444,italic:.01389,skew:0},115:{depth:0,height:.44444,italic:0,skew:0},116:{depth:0,height:.57143,italic:0,skew:0},117:{depth:0,height:.44444,italic:0,skew:0},118:{depth:0,height:.44444,italic:.01389,skew:0},119:{depth:0,height:.44444,italic:.01389,skew:0},120:{depth:0,height:.44444,italic:0,skew:0},121:{depth:.19444,height:.44444,italic:.01389,skew:0},122:{depth:0,height:.44444,italic:0,skew:0},126:{depth:.35,height:.32659,italic:0,skew:0},305:{depth:0,height:.44444,italic:0,skew:0},567:{depth:.19444,height:.44444,italic:0,skew:0},768:{depth:0,height:.69444,italic:0,skew:0},769:{depth:0,height:.69444,italic:0,skew:0},770:{depth:0,height:.69444,italic:0,skew:0},771:{depth:0,height:.67659,italic:0,skew:0},772:{depth:0,height:.60889,italic:0,skew:0},774:{depth:0,height:.69444,italic:0,skew:0},775:{depth:0,height:.67937,italic:0,skew:0},776:{depth:0,height:.67937,italic:0,skew:0},778:{depth:0,height:.69444,italic:0,skew:0},779:{depth:0,height:.69444,italic:0,skew:0},780:{depth:0,height:.63194,italic:0,skew:0},915:{depth:0,height:.69444,italic:0,skew:0},916:{depth:0,height:.69444,italic:0,skew:0},920:{depth:0,height:.69444,italic:0,skew:0},923:{depth:0,height:.69444,italic:0,skew:0},926:{depth:0,height:.69444,italic:0,skew:0},928:{depth:0,height:.69444,italic:0,skew:0},931:{depth:0,height:.69444,italic:0,skew:0},933:{depth:0,height:.69444,italic:0,skew:0},934:{depth:0,height:.69444,italic:0,skew:0},936:{depth:0,height:.69444,italic:0,skew:0},937:{depth:0,height:.69444,italic:0,skew:0},8211:{depth:0,height:.44444,italic:.02778,skew:0},8212:{depth:0,height:.44444,italic:.02778,skew:0},8216:{depth:0,height:.69444,italic:0,skew:0},8217:{depth:0,height:.69444,italic:0,skew:0},8220:{depth:0,height:.69444,italic:0,skew:0},8221:{depth:0,height:.69444,italic:0,skew:0}},"Script-Regular":{65:{depth:0,height:.7,italic:.22925,skew:0},66:{depth:0,height:.7,italic:.04087,skew:0},67:{depth:0,height:.7,italic:.1689,skew:0},68:{depth:0,height:.7,italic:.09371,skew:0},69:{depth:0,height:.7,italic:.18583,skew:0},70:{depth:0,height:.7,italic:.13634,skew:0},71:{depth:0,height:.7,italic:.17322,skew:0},72:{depth:0,height:.7,italic:.29694,skew:0},73:{depth:0,height:.7,italic:.19189,skew:0},74:{depth:.27778,height:.7,italic:.19189,skew:0},75:{depth:0,height:.7,italic:.31259,skew:0},76:{depth:0,height:.7,italic:.19189,skew:0},77:{depth:0,height:.7,italic:.15981,skew:0},78:{depth:0,height:.7,italic:.3525,skew:0},79:{depth:0,height:.7,italic:.08078,skew:0},80:{depth:0,height:.7,italic:.08078,skew:0},81:{depth:0,height:.7,italic:.03305,skew:0},82:{depth:0,height:.7,italic:.06259,skew:0},83:{depth:0,height:.7,italic:.19189,skew:0},84:{depth:0,height:.7,italic:.29087,skew:0},85:{depth:0,height:.7,italic:.25815,skew:0},86:{depth:0,height:.7,italic:.27523,skew:0},87:{depth:0,height:.7,italic:.27523,skew:0},88:{depth:0,height:.7,italic:.26006,skew:0},89:{depth:0,height:.7,italic:.2939,skew:0},90:{depth:0,height:.7,italic:.24037,skew:0}},"Size1-Regular":{40:{depth:.35001,height:.85,italic:0,skew:0},41:{depth:.35001,height:.85,italic:0,skew:0},47:{depth:.35001,height:.85,italic:0,skew:0},91:{depth:.35001,height:.85,italic:0,skew:0},92:{depth:.35001,height:.85,italic:0,skew:0},93:{depth:.35001,height:.85,italic:0,skew:0},123:{depth:.35001,height:.85,italic:0,skew:0},125:{depth:.35001,height:.85,italic:0,skew:0},710:{depth:0,height:.72222,italic:0,skew:0},732:{depth:0,height:.72222,italic:0,skew:0},770:{depth:0,height:.72222,italic:0,skew:0},771:{depth:0,height:.72222,italic:0,skew:0},8214:{depth:-99e-5,height:.601,italic:0,skew:0},8593:{depth:1e-5,height:.6,italic:0,skew:0},8595:{depth:1e-5,height:.6,italic:0,skew:0},8657:{depth:1e-5,height:.6,italic:0,skew:0},8659:{depth:1e-5,height:.6,italic:0,skew:0},8719:{depth:.25001,height:.75,italic:0,skew:0},8720:{depth:.25001,height:.75,italic:0,skew:0},8721:{depth:.25001,height:.75,italic:0,skew:0},8730:{depth:.35001,height:.85,italic:0,skew:0},8739:{depth:-.00599,height:.606,italic:0,skew:0},8741:{depth:-.00599,height:.606,italic:0,skew:0},8747:{depth:.30612,height:.805,italic:.19445,skew:0},8748:{depth:.306,height:.805,italic:.19445,skew:0},8749:{depth:.306,height:.805,italic:.19445,skew:0},8750:{depth:.30612,height:.805,italic:.19445,skew:0},8896:{depth:.25001,height:.75,italic:0,skew:0},8897:{depth:.25001,height:.75,italic:0,skew:0},8898:{depth:.25001,height:.75,italic:0,skew:0},8899:{depth:.25001,height:.75,italic:0,skew:0},8968:{depth:.35001,height:.85,italic:0,skew:0},8969:{depth:.35001,height:.85,italic:0,skew:0},8970:{depth:.35001,height:.85,italic:0,skew:0},8971:{depth:.35001,height:.85,italic:0,skew:0},9168:{depth:-99e-5,height:.601,italic:0,skew:0},10216:{depth:.35001,height:.85,italic:0,skew:0},10217:{depth:.35001,height:.85,italic:0,skew:0},10752:{depth:.25001,height:.75,italic:0,skew:0},10753:{depth:.25001,height:.75,italic:0,skew:0},10754:{depth:.25001,height:.75,italic:0,skew:0},10756:{depth:.25001,height:.75,italic:0,skew:0},10758:{depth:.25001,height:.75,italic:0,skew:0}},"Size2-Regular":{40:{depth:.65002,height:1.15,italic:0,skew:0},41:{depth:.65002,height:1.15,italic:0,skew:0},47:{depth:.65002,height:1.15,italic:0,skew:0},91:{depth:.65002,height:1.15,italic:0,skew:0},92:{depth:.65002,height:1.15,italic:0,skew:0},93:{depth:.65002,height:1.15,italic:0,skew:0},123:{depth:.65002,height:1.15,italic:0,skew:0},125:{depth:.65002,height:1.15,italic:0,skew:0},710:{depth:0,height:.75,italic:0,skew:0},732:{depth:0,height:.75,italic:0,skew:0},770:{depth:0,height:.75,italic:0,skew:0},771:{depth:0,height:.75,italic:0,skew:0},8719:{depth:.55001,height:1.05,italic:0,skew:0},8720:{depth:.55001,height:1.05,italic:0,skew:0},8721:{depth:.55001,height:1.05,italic:0,skew:0},8730:{depth:.65002,height:1.15,italic:0,skew:0},8747:{depth:.86225,height:1.36,italic:.44445,skew:0},8748:{depth:.862,height:1.36,italic:.44445,skew:0},8749:{depth:.862,height:1.36,italic:.44445,skew:0},8750:{depth:.86225,height:1.36,italic:.44445,skew:0},8896:{depth:.55001,height:1.05,italic:0,skew:0},8897:{depth:.55001,height:1.05,italic:0,skew:0},8898:{depth:.55001,height:1.05,italic:0,skew:0},8899:{depth:.55001,height:1.05,italic:0,skew:0},8968:{depth:.65002,height:1.15,italic:0,skew:0},8969:{depth:.65002,height:1.15,italic:0,skew:0},8970:{depth:.65002,height:1.15,italic:0,skew:0},8971:{depth:.65002,height:1.15,italic:0,skew:0},10216:{depth:.65002,height:1.15,italic:0,skew:0},10217:{depth:.65002,height:1.15,italic:0,skew:0},10752:{depth:.55001,height:1.05,italic:0,skew:0},10753:{depth:.55001,height:1.05,italic:0,skew:0},10754:{depth:.55001,height:1.05,italic:0,skew:0},10756:{depth:.55001,height:1.05,italic:0,skew:0},10758:{depth:.55001,height:1.05,italic:0,skew:0}},"Size3-Regular":{40:{depth:.95003,height:1.45,italic:0,skew:0},41:{depth:.95003,height:1.45,italic:0,skew:0},47:{depth:.95003,height:1.45,italic:0,skew:0},91:{depth:.95003,height:1.45,italic:0,skew:0},92:{depth:.95003,height:1.45,italic:0,skew:0},93:{depth:.95003,height:1.45,italic:0,skew:0},123:{depth:.95003,height:1.45,italic:0,skew:0},125:{depth:.95003,height:1.45,italic:0,skew:0},710:{depth:0,height:.75,italic:0,skew:0},732:{depth:0,height:.75,italic:0,skew:0},770:{depth:0,height:.75,italic:0,skew:0},771:{depth:0,height:.75,italic:0,skew:0},8730:{depth:.95003,height:1.45,italic:0,skew:0},8968:{depth:.95003,height:1.45,italic:0,skew:0},8969:{depth:.95003,height:1.45,italic:0,skew:0},8970:{depth:.95003,height:1.45,italic:0,skew:0},8971:{depth:.95003,height:1.45,italic:0,skew:0},10216:{depth:.95003,height:1.45,italic:0,skew:0},10217:{depth:.95003,height:1.45,italic:0,skew:0}},"Size4-Regular":{40:{depth:1.25003,height:1.75,italic:0,skew:0},41:{depth:1.25003,height:1.75,italic:0,skew:0},47:{depth:1.25003,height:1.75,italic:0,skew:0},91:{depth:1.25003,height:1.75,italic:0,skew:0},92:{depth:1.25003,height:1.75,italic:0,skew:0},93:{depth:1.25003,height:1.75,italic:0,skew:0},123:{depth:1.25003,height:1.75,italic:0,skew:0},125:{depth:1.25003,height:1.75,italic:0,skew:0},710:{depth:0,height:.825,italic:0,skew:0},732:{depth:0,height:.825,italic:0,skew:0},770:{depth:0,height:.825,italic:0,skew:0},771:{depth:0,height:.825,italic:0,skew:0},8730:{depth:1.25003,height:1.75,italic:0,skew:0},8968:{depth:1.25003,height:1.75,italic:0,skew:0},8969:{depth:1.25003,height:1.75,italic:0,skew:0},8970:{depth:1.25003,height:1.75,italic:0,skew:0},8971:{depth:1.25003,height:1.75,italic:0,skew:0},9115:{depth:.64502,height:1.155,italic:0,skew:0},9116:{depth:1e-5,height:.6,italic:0,skew:0},9117:{depth:.64502,height:1.155,italic:0,skew:0},9118:{depth:.64502,height:1.155,italic:0,skew:0},9119:{depth:1e-5,height:.6,italic:0,skew:0},9120:{depth:.64502,height:1.155,italic:0,skew:0},9121:{depth:.64502,height:1.155,italic:0,skew:0},9122:{depth:-99e-5,height:.601,italic:0,skew:0},9123:{depth:.64502,height:1.155,italic:0,skew:0},9124:{depth:.64502,height:1.155,italic:0,skew:0},9125:{depth:-99e-5,height:.601,italic:0,skew:0},9126:{depth:.64502,height:1.155,italic:0,skew:0},9127:{depth:1e-5,height:.9,italic:0,skew:0},9128:{depth:.65002,height:1.15,italic:0,skew:0},9129:{depth:.90001,height:0,italic:0,skew:0},9130:{depth:0,height:.3,italic:0,skew:0},9131:{depth:1e-5,height:.9,italic:0,skew:0},9132:{depth:.65002,height:1.15,italic:0,skew:0},9133:{depth:.90001,height:0,italic:0,skew:0},9143:{depth:.88502,height:.915,italic:0,skew:0},10216:{depth:1.25003,height:1.75,italic:0,skew:0},10217:{depth:1.25003,height:1.75,italic:0,skew:0},57344:{depth:-.00499,height:.605,italic:0,skew:0},57345:{depth:-.00499,height:.605,italic:0,skew:0},57680:{depth:0,height:.12,italic:0,skew:0},57681:{depth:0,height:.12,italic:0,skew:0},57682:{depth:0,height:.12,italic:0,skew:0},57683:{depth:0,height:.12,italic:0,skew:0}},"Typewriter-Regular":{33:{depth:0,height:.61111,italic:0,skew:0},34:{depth:0,height:.61111,
|
||
italic:0,skew:0},35:{depth:0,height:.61111,italic:0,skew:0},36:{depth:.08333,height:.69444,italic:0,skew:0},37:{depth:.08333,height:.69444,italic:0,skew:0},38:{depth:0,height:.61111,italic:0,skew:0},39:{depth:0,height:.61111,italic:0,skew:0},40:{depth:.08333,height:.69444,italic:0,skew:0},41:{depth:.08333,height:.69444,italic:0,skew:0},42:{depth:0,height:.52083,italic:0,skew:0},43:{depth:-.08056,height:.53055,italic:0,skew:0},44:{depth:.13889,height:.125,italic:0,skew:0},45:{depth:-.08056,height:.53055,italic:0,skew:0},46:{depth:0,height:.125,italic:0,skew:0},47:{depth:.08333,height:.69444,italic:0,skew:0},48:{depth:0,height:.61111,italic:0,skew:0},49:{depth:0,height:.61111,italic:0,skew:0},50:{depth:0,height:.61111,italic:0,skew:0},51:{depth:0,height:.61111,italic:0,skew:0},52:{depth:0,height:.61111,italic:0,skew:0},53:{depth:0,height:.61111,italic:0,skew:0},54:{depth:0,height:.61111,italic:0,skew:0},55:{depth:0,height:.61111,italic:0,skew:0},56:{depth:0,height:.61111,italic:0,skew:0},57:{depth:0,height:.61111,italic:0,skew:0},58:{depth:0,height:.43056,italic:0,skew:0},59:{depth:.13889,height:.43056,italic:0,skew:0},60:{depth:-.05556,height:.55556,italic:0,skew:0},61:{depth:-.19549,height:.41562,italic:0,skew:0},62:{depth:-.05556,height:.55556,italic:0,skew:0},63:{depth:0,height:.61111,italic:0,skew:0},64:{depth:0,height:.61111,italic:0,skew:0},65:{depth:0,height:.61111,italic:0,skew:0},66:{depth:0,height:.61111,italic:0,skew:0},67:{depth:0,height:.61111,italic:0,skew:0},68:{depth:0,height:.61111,italic:0,skew:0},69:{depth:0,height:.61111,italic:0,skew:0},70:{depth:0,height:.61111,italic:0,skew:0},71:{depth:0,height:.61111,italic:0,skew:0},72:{depth:0,height:.61111,italic:0,skew:0},73:{depth:0,height:.61111,italic:0,skew:0},74:{depth:0,height:.61111,italic:0,skew:0},75:{depth:0,height:.61111,italic:0,skew:0},76:{depth:0,height:.61111,italic:0,skew:0},77:{depth:0,height:.61111,italic:0,skew:0},78:{depth:0,height:.61111,italic:0,skew:0},79:{depth:0,height:.61111,italic:0,skew:0},80:{depth:0,height:.61111,italic:0,skew:0},81:{depth:.13889,height:.61111,italic:0,skew:0},82:{depth:0,height:.61111,italic:0,skew:0},83:{depth:0,height:.61111,italic:0,skew:0},84:{depth:0,height:.61111,italic:0,skew:0},85:{depth:0,height:.61111,italic:0,skew:0},86:{depth:0,height:.61111,italic:0,skew:0},87:{depth:0,height:.61111,italic:0,skew:0},88:{depth:0,height:.61111,italic:0,skew:0},89:{depth:0,height:.61111,italic:0,skew:0},90:{depth:0,height:.61111,italic:0,skew:0},91:{depth:.08333,height:.69444,italic:0,skew:0},92:{depth:.08333,height:.69444,italic:0,skew:0},93:{depth:.08333,height:.69444,italic:0,skew:0},94:{depth:0,height:.61111,italic:0,skew:0},95:{depth:.09514,height:0,italic:0,skew:0},96:{depth:0,height:.61111,italic:0,skew:0},97:{depth:0,height:.43056,italic:0,skew:0},98:{depth:0,height:.61111,italic:0,skew:0},99:{depth:0,height:.43056,italic:0,skew:0},100:{depth:0,height:.61111,italic:0,skew:0},101:{depth:0,height:.43056,italic:0,skew:0},102:{depth:0,height:.61111,italic:0,skew:0},103:{depth:.22222,height:.43056,italic:0,skew:0},104:{depth:0,height:.61111,italic:0,skew:0},105:{depth:0,height:.61111,italic:0,skew:0},106:{depth:.22222,height:.61111,italic:0,skew:0},107:{depth:0,height:.61111,italic:0,skew:0},108:{depth:0,height:.61111,italic:0,skew:0},109:{depth:0,height:.43056,italic:0,skew:0},110:{depth:0,height:.43056,italic:0,skew:0},111:{depth:0,height:.43056,italic:0,skew:0},112:{depth:.22222,height:.43056,italic:0,skew:0},113:{depth:.22222,height:.43056,italic:0,skew:0},114:{depth:0,height:.43056,italic:0,skew:0},115:{depth:0,height:.43056,italic:0,skew:0},116:{depth:0,height:.55358,italic:0,skew:0},117:{depth:0,height:.43056,italic:0,skew:0},118:{depth:0,height:.43056,italic:0,skew:0},119:{depth:0,height:.43056,italic:0,skew:0},120:{depth:0,height:.43056,italic:0,skew:0},121:{depth:.22222,height:.43056,italic:0,skew:0},122:{depth:0,height:.43056,italic:0,skew:0},123:{depth:.08333,height:.69444,italic:0,skew:0},124:{depth:.08333,height:.69444,italic:0,skew:0},125:{depth:.08333,height:.69444,italic:0,skew:0},126:{depth:0,height:.61111,italic:0,skew:0},127:{depth:0,height:.61111,italic:0,skew:0},305:{depth:0,height:.43056,italic:0,skew:0},567:{depth:.22222,height:.43056,italic:0,skew:0},768:{depth:0,height:.61111,italic:0,skew:0},769:{depth:0,height:.61111,italic:0,skew:0},770:{depth:0,height:.61111,italic:0,skew:0},771:{depth:0,height:.61111,italic:0,skew:0},772:{depth:0,height:.56555,italic:0,skew:0},774:{depth:0,height:.61111,italic:0,skew:0},776:{depth:0,height:.61111,italic:0,skew:0},778:{depth:0,height:.61111,italic:0,skew:0},780:{depth:0,height:.56597,italic:0,skew:0},915:{depth:0,height:.61111,italic:0,skew:0},916:{depth:0,height:.61111,italic:0,skew:0},920:{depth:0,height:.61111,italic:0,skew:0},923:{depth:0,height:.61111,italic:0,skew:0},926:{depth:0,height:.61111,italic:0,skew:0},928:{depth:0,height:.61111,italic:0,skew:0},931:{depth:0,height:.61111,italic:0,skew:0},933:{depth:0,height:.61111,italic:0,skew:0},934:{depth:0,height:.61111,italic:0,skew:0},936:{depth:0,height:.61111,italic:0,skew:0},937:{depth:0,height:.61111,italic:0,skew:0},2018:{depth:0,height:.61111,italic:0,skew:0},2019:{depth:0,height:.61111,italic:0,skew:0},8242:{depth:0,height:.61111,italic:0,skew:0}}}},{}],18:[function(e,t,i){for(var h=e("./utils"),a=e("./ParseError"),l={"\\sqrt":{numArgs:1,numOptionalArgs:1,handler:function(e,t,i,h){return{type:"sqrt",body:i,index:t}}},"\\text":{numArgs:1,argTypes:["text"],greediness:2,handler:function(e,t){var i;return i="ordgroup"===t.type?t.value:[t],{type:"text",body:i}}},"\\color":{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"],handler:function(e,t,i){var h;return h="ordgroup"===i.type?i.value:[i],{type:"color",color:t.value,value:h}}},"\\overline":{numArgs:1,handler:function(e,t){return{type:"overline",body:t}}},"\\rule":{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"],handler:function(e,t,i,h){return{type:"rule",shift:t&&t.value,width:i.value,height:h.value}}},"\\KaTeX":{numArgs:0,handler:function(e){return{type:"katex"}}},"\\phantom":{numArgs:1,handler:function(e,t){var i;return i="ordgroup"===t.type?t.value:[t],{type:"phantom",value:i}}}},r={"\\bigl":{type:"open",size:1},"\\Bigl":{type:"open",size:2},"\\biggl":{type:"open",size:3},"\\Biggl":{type:"open",size:4},"\\bigr":{type:"close",size:1},"\\Bigr":{type:"close",size:2},"\\biggr":{type:"close",size:3},"\\Biggr":{type:"close",size:4},"\\bigm":{type:"rel",size:1},"\\Bigm":{type:"rel",size:2},"\\biggm":{type:"rel",size:3},"\\Biggm":{type:"rel",size:4},"\\big":{type:"textord",size:1},"\\Big":{type:"textord",size:2},"\\bigg":{type:"textord",size:3},"\\Bigg":{type:"textord",size:4}},p=["(",")","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","<",">","\\langle","\\rangle","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."],s={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"},c=([{funcs:["\\blue","\\orange","\\pink","\\red","\\green","\\gray","\\purple","\\blueA","\\blueB","\\blueC","\\blueD","\\blueE","\\tealA","\\tealB","\\tealC","\\tealD","\\tealE","\\greenA","\\greenB","\\greenC","\\greenD","\\greenE","\\goldA","\\goldB","\\goldC","\\goldD","\\goldE","\\redA","\\redB","\\redC","\\redD","\\redE","\\maroonA","\\maroonB","\\maroonC","\\maroonD","\\maroonE","\\purpleA","\\purpleB","\\purpleC","\\purpleD","\\purpleE","\\mintA","\\mintB","\\mintC","\\grayA","\\grayB","\\grayC","\\grayD","\\grayE","\\grayF","\\grayG","\\grayH","\\grayI","\\kaBlue","\\kaGreen"],data:{numArgs:1,allowedInText:!0,greediness:3,handler:function(e,t){var i;return i="ordgroup"===t.type?t.value:[t],{type:"color",color:"katex-"+e.slice(1),value:i}}}},{funcs:["\\arcsin","\\arccos","\\arctan","\\arg","\\cos","\\cosh","\\cot","\\coth","\\csc","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\tan","\\tanh"],data:{numArgs:0,handler:function(e){return{type:"op",limits:!1,symbol:!1,body:e}}}},{funcs:["\\det","\\gcd","\\inf","\\lim","\\liminf","\\limsup","\\max","\\min","\\Pr","\\sup"],data:{numArgs:0,handler:function(e){return{type:"op",limits:!0,symbol:!1,body:e}}}},{funcs:["\\int","\\iint","\\iiint","\\oint"],data:{numArgs:0,handler:function(e){return{type:"op",limits:!1,symbol:!0,body:e}}}},{funcs:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint"],data:{numArgs:0,handler:function(e){return{type:"op",limits:!0,symbol:!0,body:e}}}},{funcs:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom"],data:{numArgs:2,greediness:2,handler:function(e,t,i){var h,a=null,l=null,r="auto";switch(e){case"\\dfrac":case"\\frac":case"\\tfrac":h=!0;break;case"\\dbinom":case"\\binom":case"\\tbinom":h=!1,a="(",l=")";break;default:throw new Error("Unrecognized genfrac command")}switch(e){case"\\dfrac":case"\\dbinom":r="display";break;case"\\tfrac":case"\\tbinom":r="text"}return{type:"genfrac",numer:t,denom:i,hasBarLine:h,leftDelim:a,rightDelim:l,size:r}}}},{funcs:["\\llap","\\rlap"],data:{numArgs:1,allowedInText:!0,handler:function(e,t){return{type:e.slice(1),body:t}}}},{funcs:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg","\\left","\\right"],data:{numArgs:1,handler:function(e,t,i){if(!h.contains(p,t.value))throw new a("Invalid delimiter: '"+t.value+"' after '"+e+"'",this.lexer,i[1]);return"\\left"===e||"\\right"===e?{type:"leftright",value:t.value}:{type:"delimsizing",size:r[e].size,delimType:r[e].type,value:t.value}}}},{funcs:["\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],data:{numArgs:0}},{funcs:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],data:{numArgs:0}},{funcs:["\\mathrm","\\mathit","\\mathbf","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],data:{numArgs:1,handler:function(e,t){return e in s&&(e=s[e]),{type:"font",font:e.slice(1),body:t}}}},{funcs:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot"],data:{numArgs:1,handler:function(e,t){return{type:"accent",accent:e,base:t}}}},{funcs:["\\over","\\choose"],data:{numArgs:0,handler:function(e){var t;switch(e){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",replaceWith:t}}}},{funcs:["\\\\","\\cr"],data:{numArgs:0,numOptionalArgs:1,argTypes:["size"],handler:function(e,t){return{type:"cr",size:t}}}},{funcs:["\\begin","\\end"],data:{numArgs:1,argTypes:["text"],handler:function(e,t,i){if("ordgroup"!==t.type)throw new a("Invalid environment name",this.lexer,i[1]);for(var h="",l=0;l<t.value.length;++l)h+=t.value[l].value;return{type:"environment",name:h,namepos:i[1]}}}}]),n=function(e,t){for(var i=0;i<e.length;i++)l[e[i]]=t},o=0;o<c.length;o++)n(c[o].funcs,c[o].data);for(var g in l)if(l.hasOwnProperty(g)){var d=l[g];l[g]={numArgs:d.numArgs,argTypes:d.argTypes,greediness:void 0===d.greediness?1:d.greediness,allowedInText:d.allowedInText?d.allowedInText:!1,numOptionalArgs:void 0===d.numOptionalArgs?0:d.numOptionalArgs,handler:d.handler}}t.exports={funcs:l}},{"./ParseError":5,"./utils":23}],19:[function(e,t,i){function h(e,t){this.type=e,this.attributes={},this.children=t||[]}function a(e){this.text=e}var l=e("./utils");h.prototype.setAttribute=function(e,t){this.attributes[e]=t},h.prototype.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var i=0;i<this.children.length;i++)e.appendChild(this.children[i].toNode());return e},h.prototype.toMarkup=function(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=l.escape(this.attributes[t]),e+='"');e+=">";for(var i=0;i<this.children.length;i++)e+=this.children[i].toMarkup();return e+="</"+this.type+">"},a.prototype.toNode=function(){return document.createTextNode(this.text)},a.prototype.toMarkup=function(){return l.escape(this.text)},t.exports={MathNode:h,TextNode:a}},{"./utils":23}],20:[function(e,t,i){function h(e,t,i){this.type=e,this.value=t,this.mode=i}function a(e,t,i){this.result=e,this.position=t}t.exports={ParseNode:h,ParseResult:a}},{}],21:[function(e,t,i){var h=e("./Parser"),a=function(e,t){var i=new h(e,t);return i.parse()};t.exports=a},{"./Parser":6}],22:[function(e,t,i){for(var h={math:{"\\equiv":{font:"main",group:"rel",replace:"≡"},"\\prec":{font:"main",group:"rel",replace:"≺"},"\\succ":{font:"main",group:"rel",replace:"≻"},"\\sim":{font:"main",group:"rel",replace:"∼"},"\\perp":{font:"main",group:"rel",replace:"⊥"},"\\preceq":{font:"main",group:"rel",replace:"⪯"},"\\succeq":{font:"main",group:"rel",replace:"⪰"},"\\simeq":{font:"main",group:"rel",replace:"≃"},"\\mid":{font:"main",group:"rel",replace:"∣"},"\\ll":{font:"main",group:"rel",replace:"≪"},"\\gg":{font:"main",group:"rel",replace:"≫"},"\\asymp":{font:"main",group:"rel",replace:"≍"},"\\parallel":{font:"main",group:"rel",replace:"∥"},"\\bowtie":{font:"main",group:"rel",replace:"⋈"},"\\smile":{font:"main",group:"rel",replace:"⌣"},"\\sqsubseteq":{font:"main",group:"rel",replace:"⊑"},"\\sqsupseteq":{font:"main",group:"rel",replace:"⊒"},"\\doteq":{font:"main",group:"rel",replace:"≐"},"\\frown":{font:"main",group:"rel",replace:"⌢"},"\\ni":{font:"main",group:"rel",replace:"∋"},"\\propto":{font:"main",group:"rel",replace:"∝"},"\\vdash":{font:"main",group:"rel",replace:"⊢"},"\\dashv":{font:"main",group:"rel",replace:"⊣"},"\\owns":{font:"main",group:"rel",replace:"∋"},"\\ldotp":{font:"main",group:"punct",replace:"."},"\\cdotp":{font:"main",group:"punct",replace:"⋅"},"\\#":{font:"main",group:"textord",replace:"#"},"\\&":{font:"main",group:"textord",replace:"&"},"\\aleph":{font:"main",group:"textord",replace:"ℵ"},"\\forall":{font:"main",group:"textord",replace:"∀"},"\\hbar":{font:"main",group:"textord",replace:"ℏ"},"\\exists":{font:"main",group:"textord",replace:"∃"},"\\nabla":{font:"main",group:"textord",replace:"∇"},"\\flat":{font:"main",group:"textord",replace:"♭"},"\\ell":{font:"main",group:"textord",replace:"ℓ"},"\\natural":{font:"main",group:"textord",replace:"♮"},"\\clubsuit":{font:"main",group:"textord",replace:"♣"},"\\wp":{font:"main",group:"textord",replace:"℘"},"\\sharp":{font:"main",group:"textord",replace:"♯"},"\\diamondsuit":{font:"main",group:"textord",replace:"♢"},"\\Re":{font:"main",group:"textord",replace:"ℜ"},"\\heartsuit":{font:"main",group:"textord",replace:"♡"},"\\Im":{font:"main",group:"textord",replace:"ℑ"},"\\spadesuit":{font:"main",group:"textord",replace:"♠"},"\\dag":{font:"main",group:"textord",replace:"†"},"\\ddag":{font:"main",group:"textord",replace:"‡"},"\\rmoustache":{font:"main",group:"close",replace:"⎱"},"\\lmoustache":{font:"main",group:"open",replace:"⎰"},"\\rgroup":{font:"main",group:"close",replace:"⟯"},"\\lgroup":{font:"main",group:"open",replace:"⟮"},"\\mp":{font:"main",group:"bin",replace:"∓"},"\\ominus":{font:"main",group:"bin",replace:"⊖"},"\\uplus":{font:"main",group:"bin",replace:"⊎"},"\\sqcap":{font:"main",group:"bin",replace:"⊓"},"\\ast":{font:"main",group:"bin",replace:"∗"},"\\sqcup":{font:"main",group:"bin",replace:"⊔"},"\\bigcirc":{font:"main",group:"bin",replace:"◯"},"\\bullet":{font:"main",group:"bin",replace:"∙"},"\\ddagger":{font:"main",group:"bin",replace:"‡"},"\\wr":{font:"main",group:"bin",replace:"≀"},"\\amalg":{font:"main",group:"bin",replace:"⨿"},"\\longleftarrow":{font:"main",group:"rel",replace:"⟵"},"\\Leftarrow":{font:"main",group:"rel",replace:"⇐"},"\\Longleftarrow":{font:"main",group:"rel",replace:"⟸"},"\\longrightarrow":{font:"main",group:"rel",replace:"⟶"},"\\Rightarrow":{font:"main",group:"rel",replace:"⇒"},"\\Longrightarrow":{font:"main",group:"rel",replace:"⟹"},"\\leftrightarrow":{font:"main",group:"rel",replace:"↔"},"\\longleftrightarrow":{font:"main",group:"rel",replace:"⟷"},"\\Leftrightarrow":{font:"main",group:"rel",replace:"⇔"},"\\Longleftrightarrow":{font:"main",group:"rel",replace:"⟺"},"\\mapsto":{font:"main",group:"rel",replace:"↦"},"\\longmapsto":{font:"main",group:"rel",replace:"⟼"},"\\nearrow":{font:"main",group:"rel",replace:"↗"},"\\hookleftarrow":{font:"main",group:"rel",replace:"↩"},"\\hookrightarrow":{font:"main",group:"rel",replace:"↪"},"\\searrow":{font:"main",group:"rel",replace:"↘"},"\\leftharpoonup":{font:"main",group:"rel",replace:"↼"},"\\rightharpoonup":{font:"main",group:"rel",replace:"⇀"},"\\swarrow":{font:"main",group:"rel",replace:"↙"},"\\leftharpoondown":{font:"main",group:"rel",replace:"↽"},"\\rightharpoondown":{font:"main",group:"rel",replace:"⇁"},"\\nwarrow":{font:"main",group:"rel",replace:"↖"},"\\rightleftharpoons":{font:"main",group:"rel",replace:"⇌"},"\\nless":{font:"ams",group:"rel",replace:"≮"},"\\nleqslant":{font:"ams",group:"rel",replace:""},"\\nleqq":{font:"ams",group:"rel",replace:""},"\\lneq":{font:"ams",group:"rel",replace:"⪇"},"\\lneqq":{font:"ams",group:"rel",replace:"≨"},"\\lvertneqq":{font:"ams",group:"rel",replace:""},"\\lnsim":{font:"ams",group:"rel",replace:"⋦"},"\\lnapprox":{font:"ams",group:"rel",replace:"⪉"},"\\nprec":{font:"ams",group:"rel",replace:"⊀"},"\\npreceq":{font:"ams",group:"rel",replace:"⋠"},"\\precnsim":{font:"ams",group:"rel",replace:"⋨"},"\\precnapprox":{font:"ams",group:"rel",replace:"⪹"},"\\nsim":{font:"ams",group:"rel",replace:"≁"},"\\nshortmid":{font:"ams",group:"rel",replace:""},"\\nmid":{font:"ams",group:"rel",replace:"∤"},"\\nvdash":{font:"ams",group:"rel",replace:"⊬"},"\\nvDash":{font:"ams",group:"rel",replace:"⊭"},"\\ntriangleleft":{font:"ams",group:"rel",replace:"⋪"},"\\ntrianglelefteq":{font:"ams",group:"rel",replace:"⋬"},"\\subsetneq":{font:"ams",group:"rel",replace:"⊊"},"\\varsubsetneq":{font:"ams",group:"rel",replace:""},"\\subsetneqq":{font:"ams",group:"rel",replace:"⫋"},"\\varsubsetneqq":{font:"ams",group:"rel",replace:""},"\\ngtr":{font:"ams",group:"rel",replace:"≯"},"\\ngeqslant":{font:"ams",group:"rel",replace:""},"\\ngeqq":{font:"ams",group:"rel",replace:""},"\\gneq":{font:"ams",group:"rel",replace:"⪈"},"\\gneqq":{font:"ams",group:"rel",replace:"≩"},"\\gvertneqq":{font:"ams",group:"rel",replace:""},"\\gnsim":{font:"ams",group:"rel",replace:"⋧"},"\\gnapprox":{font:"ams",group:"rel",replace:"⪊"},"\\nsucc":{font:"ams",group:"rel",replace:"⊁"},"\\nsucceq":{font:"ams",group:"rel",replace:"⋡"},"\\succnsim":{font:"ams",group:"rel",replace:"⋩"},"\\succnapprox":{font:"ams",group:"rel",replace:"⪺"},"\\ncong":{font:"ams",group:"rel",replace:"≆"},"\\nshortparallel":{font:"ams",group:"rel",replace:""},"\\nparallel":{font:"ams",group:"rel",replace:"∦"},"\\nVDash":{font:"ams",group:"rel",replace:"⊯"},"\\ntriangleright":{font:"ams",group:"rel",replace:"⋫"},"\\ntrianglerighteq":{font:"ams",group:"rel",replace:"⋭"},"\\nsupseteqq":{font:"ams",group:"rel",replace:""},"\\supsetneq":{font:"ams",group:"rel",replace:"⊋"},"\\varsupsetneq":{font:"ams",group:"rel",replace:""},"\\supsetneqq":{font:"ams",group:"rel",replace:"⫌"},"\\varsupsetneqq":{font:"ams",group:"rel",replace:""},"\\nVdash":{font:"ams",group:"rel",replace:"⊮"},"\\precneqq":{font:"ams",group:"rel",replace:"⪵"},"\\succneqq":{font:"ams",group:"rel",replace:"⪶"},"\\nsubseteqq":{font:"ams",group:"rel",replace:""},"\\unlhd":{font:"ams",group:"bin",replace:"⊴"},"\\unrhd":{font:"ams",group:"bin",replace:"⊵"},"\\nleftarrow":{font:"ams",group:"rel",replace:"↚"},"\\nrightarrow":{font:"ams",group:"rel",replace:"↛"},"\\nLeftarrow":{font:"ams",group:"rel",replace:"⇍"},"\\nRightarrow":{font:"ams",group:"rel",replace:"⇏"},"\\nleftrightarrow":{font:"ams",group:"rel",replace:"↮"},"\\nLeftrightarrow":{font:"ams",group:"rel",replace:"⇎"},"\\vartriangle":{font:"ams",group:"rel",replace:"△"},"\\hslash":{font:"ams",group:"textord",replace:"ℏ"},"\\triangledown":{font:"ams",group:"textord",replace:"▽"},"\\lozenge":{font:"ams",group:"textord",replace:"◊"},"\\circledS":{font:"ams",group:"textord",replace:"Ⓢ"},"\\circledR":{font:"ams",group:"textord",replace:"®"},"\\measuredangle":{font:"ams",group:"textord",replace:"∡"},"\\nexists":{font:"ams",group:"textord",replace:"∄"},"\\mho":{font:"ams",group:"textord",replace:"℧"},"\\Finv":{font:"ams",group:"textord",replace:"Ⅎ"},"\\Game":{font:"ams",group:"textord",replace:"⅁"},"\\Bbbk":{font:"ams",group:"textord",replace:"k"},"\\backprime":{font:"ams",group:"textord",replace:"‵"},"\\blacktriangle":{font:"ams",group:"textord",replace:"▲"},"\\blacktriangledown":{font:"ams",group:"textord",replace:"▼"},"\\blacksquare":{font:"ams",group:"textord",replace:"■"},"\\blacklozenge":{font:"ams",group:"textord",replace:"⧫"},"\\bigstar":{font:"ams",group:"textord",replace:"★"},"\\sphericalangle":{font:"ams",group:"textord",replace:"∢"},"\\complement":{font:"ams",group:"textord",replace:"∁"},"\\eth":{font:"ams",group:"textord",replace:"ð"},"\\diagup":{font:"ams",group:"textord",replace:"╱"},"\\diagdown":{font:"ams",group:"textord",replace:"╲"},"\\square":{font:"ams",group:"textord",replace:"□"},"\\Box":{font:"ams",group:"textord",replace:"□"},"\\Diamond":{font:"ams",group:"textord",replace:"◊"},"\\yen":{font:"ams",group:"textord",replace:"¥"},"\\checkmark":{font:"ams",group:"textord",replace:"✓"},"\\beth":{font:"ams",group:"textord",replace:"ℶ"},"\\daleth":{font:"ams",group:"textord",replace:"ℸ"},"\\gimel":{font:"ams",group:"textord",replace:"ℷ"},"\\digamma":{font:"ams",group:"textord",replace:"ϝ"},"\\varkappa":{font:"ams",group:"textord",replace:"ϰ"},"\\ulcorner":{font:"ams",group:"open",replace:"┌"},"\\urcorner":{font:"ams",group:"close",replace:"┐"},"\\llcorner":{font:"ams",group:"open",replace:"└"},"\\lrcorner":{font:"ams",group:"close",replace:"┘"},"\\leqq":{font:"ams",group:"rel",replace:"≦"},"\\leqslant":{font:"ams",group:"rel",replace:"⩽"},"\\eqslantless":{font:"ams",group:"rel",replace:"⪕"},"\\lesssim":{font:"ams",group:"rel",replace:"≲"},"\\lessapprox":{font:"ams",group:"rel",replace:"⪅"},"\\approxeq":{font:"ams",group:"rel",replace:"≊"},"\\lessdot":{font:"ams",group:"bin",replace:"⋖"},"\\lll":{font:"ams",group:"rel",replace:"⋘"},"\\lessgtr":{font:"ams",group:"rel",replace:"≶"},"\\lesseqgtr":{font:"ams",group:"rel",replace:"⋚"},"\\lesseqqgtr":{font:"ams",group:"rel",replace:"⪋"},"\\doteqdot":{font:"ams",group:"rel",replace:"≑"},"\\risingdotseq":{font:"ams",group:"rel",replace:"≓"},"\\fallingdotseq":{font:"ams",group:"rel",replace:"≒"},"\\backsim":{font:"ams",group:"rel",replace:"∽"},"\\backsimeq":{font:"ams",group:"rel",replace:"⋍"},"\\subseteqq":{font:"ams",group:"rel",replace:"⫅"},"\\Subset":{font:"ams",group:"rel",replace:"⋐"},"\\sqsubset":{font:"ams",group:"rel",replace:"⊏"},"\\preccurlyeq":{font:"ams",group:"rel",replace:"≼"},"\\curlyeqprec":{font:"ams",group:"rel",replace:"⋞"},"\\precsim":{font:"ams",group:"rel",replace:"≾"},"\\precapprox":{font:"ams",group:"rel",replace:"⪷"},"\\vartriangleleft":{font:"ams",group:"rel",replace:"⊲"},"\\trianglelefteq":{font:"ams",group:"rel",replace:"⊴"},"\\vDash":{font:"ams",group:"rel",replace:"⊨"},"\\Vvdash":{font:"ams",group:"rel",replace:"⊪"},"\\smallsmile":{font:"ams",group:"rel",replace:"⌣"},"\\smallfrown":{font:"ams",group:"rel",replace:"⌢"},"\\bumpeq":{font:"ams",group:"rel",replace:"≏"},"\\Bumpeq":{font:"ams",group:"rel",replace:"≎"},"\\geqq":{font:"ams",group:"rel",replace:"≧"},"\\geqslant":{font:"ams",group:"rel",replace:"⩾"},"\\eqslantgtr":{font:"ams",group:"rel",replace:"⪖"},"\\gtrsim":{font:"ams",group:"rel",replace:"≳"},"\\gtrapprox":{font:"ams",group:"rel",replace:"⪆"},"\\gtrdot":{font:"ams",group:"bin",replace:"⋗"},"\\ggg":{font:"ams",group:"rel",replace:"⋙"},"\\gtrless":{font:"ams",group:"rel",replace:"≷"},"\\gtreqless":{font:"ams",group:"rel",replace:"⋛"},"\\gtreqqless":{font:"ams",group:"rel",replace:"⪌"},"\\eqcirc":{font:"ams",group:"rel",replace:"≖"},"\\circeq":{font:"ams",group:"rel",replace:"≗"},"\\triangleq":{font:"ams",group:"rel",replace:"≜"},"\\thicksim":{font:"ams",group:"rel",replace:"∼"},"\\thickapprox":{font:"ams",group:"rel",replace:"≈"},"\\supseteqq":{font:"ams",group:"rel",replace:"⫆"},"\\Supset":{font:"ams",group:"rel",replace:"⋑"},"\\sqsupset":{font:"ams",group:"rel",replace:"⊐"},"\\succcurlyeq":{font:"ams",group:"rel",replace:"≽"},"\\curlyeqsucc":{font:"ams",group:"rel",replace:"⋟"},"\\succsim":{font:"ams",group:"rel",replace:"≿"},"\\succapprox":{font:"ams",group:"rel",replace:"⪸"},"\\vartriangleright":{font:"ams",group:"rel",replace:"⊳"},"\\trianglerighteq":{font:"ams",group:"rel",replace:"⊵"},"\\Vdash":{font:"ams",group:"rel",replace:"⊩"},"\\shortmid":{font:"ams",group:"rel",replace:"∣"},"\\shortparallel":{font:"ams",group:"rel",replace:"∥"},"\\between":{font:"ams",group:"rel",replace:"≬"},"\\pitchfork":{font:"ams",group:"rel",replace:"⋔"},"\\varpropto":{font:"ams",group:"rel",replace:"∝"},"\\blacktriangleleft":{font:"ams",group:"rel",replace:"◀"},"\\therefore":{font:"ams",group:"rel",replace:"∴"},"\\backepsilon":{font:"ams",group:"rel",replace:"∍"},"\\blacktriangleright":{font:"ams",group:"rel",replace:"▶"},"\\because":{font:"ams",group:"rel",replace:"∵"},"\\llless":{font:"ams",group:"rel",replace:"⋘"},"\\gggtr":{font:"ams",group:"rel",replace:"⋙"},"\\lhd":{font:"ams",group:"bin",replace:"⊲"},"\\rhd":{font:"ams",group:"bin",replace:"⊳"},"\\eqsim":{font:"ams",group:"rel",replace:"≂"},"\\Join":{font:"main",group:"rel",replace:"⋈"},"\\Doteq":{font:"ams",group:"rel",replace:"≑"},"\\dotplus":{font:"ams",group:"bin",replace:"∔"},"\\smallsetminus":{font:"ams",group:"bin",replace:"∖"},"\\Cap":{font:"ams",group:"bin",replace:"⋒"},"\\Cup":{font:"ams",group:"bin",replace:"⋓"},"\\doublebarwedge":{font:"ams",group:"bin",replace:"⩞"},"\\boxminus":{font:"ams",group:"bin",replace:"⊟"},"\\boxplus":{font:"ams",group:"bin",replace:"⊞"},"\\divideontimes":{font:"ams",group:"bin",replace:"⋇"},"\\ltimes":{font:"ams",group:"bin",replace:"⋉"},"\\rtimes":{font:"ams",group:"bin",replace:"⋊"},"\\leftthreetimes":{font:"ams",group:"bin",replace:"⋋"},"\\rightthreetimes":{font:"ams",group:"bin",replace:"⋌"},"\\curlywedge":{font:"ams",group:"bin",replace:"⋏"},"\\curlyvee":{font:"ams",group:"bin",replace:"⋎"},"\\circleddash":{font:"ams",group:"bin",replace:"⊝"},"\\circledast":{font:"ams",group:"bin",replace:"⊛"},"\\centerdot":{font:"ams",group:"bin",replace:"⋅"},"\\intercal":{font:"ams",group:"bin",replace:"⊺"},"\\doublecap":{font:"ams",group:"bin",replace:"⋒"},"\\doublecup":{font:"ams",group:"bin",replace:"⋓"},"\\boxtimes":{font:"ams",group:"bin",replace:"⊠"},"\\dashrightarrow":{font:"ams",group:"rel",replace:"⇢"},"\\dashleftarrow":{font:"ams",group:"rel",replace:"⇠"},"\\leftleftarrows":{font:"ams",group:"rel",replace:"⇇"},"\\leftrightarrows":{font:"ams",group:"rel",replace:"⇆"},"\\Lleftarrow":{font:"ams",group:"rel",replace:"⇚"},"\\twoheadleftarrow":{font:"ams",group:"rel",replace:"↞"},"\\leftarrowtail":{font:"ams",group:"rel",replace:"↢"},"\\looparrowleft":{font:"ams",group:"rel",replace:"↫"},"\\leftrightharpoons":{font:"ams",group:"rel",replace:"⇋"},"\\curvearrowleft":{font:"ams",group:"rel",replace:"↶"},"\\circlearrowleft":{font:"ams",group:"rel",replace:"↺"},"\\Lsh":{font:"ams",group:"rel",replace:"↰"},"\\upuparrows":{font:"ams",group:"rel",replace:"⇈"},"\\upharpoonleft":{font:"ams",group:"rel",replace:"↿"},"\\downharpoonleft":{font:"ams",group:"rel",replace:"⇃"},"\\multimap":{font:"ams",group:"rel",replace:"⊸"},"\\leftrightsquigarrow":{font:"ams",group:"rel",replace:"↭"},"\\rightrightarrows":{font:"ams",group:"rel",replace:"⇉"},"\\rightleftarrows":{font:"ams",group:"rel",replace:"⇄"},"\\twoheadrightarrow":{font:"ams",group:"rel",replace:"↠"},"\\rightarrowtail":{font:"ams",group:"rel",replace:"↣"},"\\looparrowright":{font:"ams",group:"rel",replace:"↬"},"\\curvearrowright":{font:"ams",group:"rel",replace:"↷"},"\\circlearrowright":{font:"ams",group:"rel",replace:"↻"},"\\Rsh":{font:"ams",group:"rel",replace:"↱"},"\\downdownarrows":{font:"ams",group:"rel",replace:"⇊"},"\\upharpoonright":{font:"ams",group:"rel",replace:"↾"},"\\downharpoonright":{font:"ams",group:"rel",replace:"⇂"},"\\rightsquigarrow":{font:"ams",group:"rel",replace:"⇝"},"\\leadsto":{font:"ams",group:"rel",replace:"⇝"},"\\Rrightarrow":{font:"ams",group:"rel",replace:"⇛"},"\\restriction":{font:"ams",group:"rel",replace:"↾"},"`":{font:"main",group:"textord",replace:"‘"},"\\$":{font:"main",group:"textord",replace:"$"},"\\%":{font:"main",group:"textord",replace:"%"},"\\_":{font:"main",group:"textord",replace:"_"},"\\angle":{font:"main",group:"textord",replace:"∠"},"\\infty":{font:"main",group:"textord",replace:"∞"},"\\prime":{font:"main",group:"textord",replace:"′"},"\\triangle":{font:"main",group:"textord",replace:"△"},"\\Gamma":{font:"main",group:"textord",replace:"Γ"},"\\Delta":{font:"main",group:"textord",replace:"Δ"},"\\Theta":{font:"main",group:"textord",replace:"Θ"},"\\Lambda":{font:"main",group:"textord",replace:"Λ"},"\\Xi":{font:"main",group:"textord",replace:"Ξ"},"\\Pi":{font:"main",group:"textord",replace:"Π"},"\\Sigma":{font:"main",group:"textord",replace:"Σ"},"\\Upsilon":{font:"main",group:"textord",replace:"Υ"},"\\Phi":{font:"main",group:"textord",replace:"Φ"},"\\Psi":{font:"main",group:"textord",replace:"Ψ"},"\\Omega":{font:"main",group:"textord",replace:"Ω"},"\\neg":{font:"main",group:"textord",replace:"¬"},"\\lnot":{font:"main",group:"textord",replace:"¬"},"\\top":{font:"main",group:"textord",replace:"⊤"},"\\bot":{font:"main",group:"textord",replace:"⊥"},"\\emptyset":{font:"main",group:"textord",replace:"∅"},"\\varnothing":{font:"ams",group:"textord",replace:"∅"},"\\alpha":{font:"main",group:"mathord",replace:"α"},"\\beta":{font:"main",group:"mathord",replace:"β"},"\\gamma":{font:"main",group:"mathord",replace:"γ"},"\\delta":{font:"main",group:"mathord",replace:"δ"},"\\epsilon":{font:"main",group:"mathord",replace:"ϵ"},"\\zeta":{font:"main",group:"mathord",replace:"ζ"},"\\eta":{font:"main",group:"mathord",replace:"η"},"\\theta":{font:"main",group:"mathord",replace:"θ"},"\\iota":{font:"main",group:"mathord",replace:"ι"},"\\kappa":{font:"main",group:"mathord",replace:"κ"},"\\lambda":{font:"main",group:"mathord",replace:"λ"},"\\mu":{font:"main",group:"mathord",replace:"μ"},"\\nu":{font:"main",group:"mathord",replace:"ν"},"\\xi":{font:"main",group:"mathord",replace:"ξ"},"\\omicron":{font:"main",group:"mathord",replace:"o"},"\\pi":{font:"main",group:"mathord",replace:"π"},"\\rho":{font:"main",group:"mathord",replace:"ρ"},"\\sigma":{font:"main",group:"mathord",replace:"σ"},"\\tau":{font:"main",group:"mathord",replace:"τ"},"\\upsilon":{font:"main",group:"mathord",replace:"υ"},"\\phi":{font:"main",group:"mathord",replace:"ϕ"},"\\chi":{font:"main",group:"mathord",replace:"χ"},"\\psi":{font:"main",group:"mathord",replace:"ψ"},"\\omega":{font:"main",group:"mathord",replace:"ω"},"\\varepsilon":{font:"main",group:"mathord",replace:"ε"},"\\vartheta":{font:"main",group:"mathord",replace:"ϑ"},"\\varpi":{font:"main",group:"mathord",replace:"ϖ"},"\\varrho":{font:"main",group:"mathord",replace:"ϱ"},"\\varsigma":{font:"main",group:"mathord",replace:"ς"},"\\varphi":{font:"main",group:"mathord",replace:"φ"},"*":{font:"main",group:"bin",replace:"∗"},"+":{font:"main",group:"bin"},"-":{font:"main",group:"bin",replace:"−"},"\\cdot":{font:"main",group:"bin",replace:"⋅"},"\\circ":{font:"main",group:"bin",replace:"∘"},"\\div":{font:"main",group:"bin",replace:"÷"},"\\pm":{font:"main",group:"bin",replace:"±"},"\\times":{font:"main",group:"bin",replace:"×"},"\\cap":{font:"main",group:"bin",replace:"∩"},"\\cup":{font:"main",group:"bin",replace:"∪"},"\\setminus":{font:"main",group:"bin",replace:"∖"},"\\land":{font:"main",group:"bin",replace:"∧"},"\\lor":{font:"main",group:"bin",
|
||
replace:"∨"},"\\wedge":{font:"main",group:"bin",replace:"∧"},"\\vee":{font:"main",group:"bin",replace:"∨"},"\\surd":{font:"main",group:"textord",replace:"√"},"(":{font:"main",group:"open"},"[":{font:"main",group:"open"},"\\langle":{font:"main",group:"open",replace:"⟨"},"\\lvert":{font:"main",group:"open",replace:"∣"},"\\lVert":{font:"main",group:"open",replace:"∥"},")":{font:"main",group:"close"},"]":{font:"main",group:"close"},"?":{font:"main",group:"close"},"!":{font:"main",group:"close"},"\\rangle":{font:"main",group:"close",replace:"⟩"},"\\rvert":{font:"main",group:"close",replace:"∣"},"\\rVert":{font:"main",group:"close",replace:"∥"},"=":{font:"main",group:"rel"},"<":{font:"main",group:"rel"},">":{font:"main",group:"rel"},":":{font:"main",group:"rel"},"\\approx":{font:"main",group:"rel",replace:"≈"},"\\cong":{font:"main",group:"rel",replace:"≅"},"\\ge":{font:"main",group:"rel",replace:"≥"},"\\geq":{font:"main",group:"rel",replace:"≥"},"\\gets":{font:"main",group:"rel",replace:"←"},"\\in":{font:"main",group:"rel",replace:"∈"},"\\notin":{font:"main",group:"rel",replace:"∉"},"\\subset":{font:"main",group:"rel",replace:"⊂"},"\\supset":{font:"main",group:"rel",replace:"⊃"},"\\subseteq":{font:"main",group:"rel",replace:"⊆"},"\\supseteq":{font:"main",group:"rel",replace:"⊇"},"\\nsubseteq":{font:"ams",group:"rel",replace:"⊈"},"\\nsupseteq":{font:"ams",group:"rel",replace:"⊉"},"\\models":{font:"main",group:"rel",replace:"⊨"},"\\leftarrow":{font:"main",group:"rel",replace:"←"},"\\le":{font:"main",group:"rel",replace:"≤"},"\\leq":{font:"main",group:"rel",replace:"≤"},"\\ne":{font:"main",group:"rel",replace:"≠"},"\\neq":{font:"main",group:"rel",replace:"≠"},"\\rightarrow":{font:"main",group:"rel",replace:"→"},"\\to":{font:"main",group:"rel",replace:"→"},"\\ngeq":{font:"ams",group:"rel",replace:"≱"},"\\nleq":{font:"ams",group:"rel",replace:"≰"},"\\!":{font:"main",group:"spacing"},"\\ ":{font:"main",group:"spacing",replace:" "},"~":{font:"main",group:"spacing",replace:" "},"\\,":{font:"main",group:"spacing"},"\\:":{font:"main",group:"spacing"},"\\;":{font:"main",group:"spacing"},"\\enspace":{font:"main",group:"spacing"},"\\qquad":{font:"main",group:"spacing"},"\\quad":{font:"main",group:"spacing"},"\\space":{font:"main",group:"spacing",replace:" "},",":{font:"main",group:"punct"},";":{font:"main",group:"punct"},"\\colon":{font:"main",group:"punct",replace:":"},"\\barwedge":{font:"ams",group:"bin",replace:"⊼"},"\\veebar":{font:"ams",group:"bin",replace:"⊻"},"\\odot":{font:"main",group:"bin",replace:"⊙"},"\\oplus":{font:"main",group:"bin",replace:"⊕"},"\\otimes":{font:"main",group:"bin",replace:"⊗"},"\\partial":{font:"main",group:"textord",replace:"∂"},"\\oslash":{font:"main",group:"bin",replace:"⊘"},"\\circledcirc":{font:"ams",group:"bin",replace:"⊚"},"\\boxdot":{font:"ams",group:"bin",replace:"⊡"},"\\bigtriangleup":{font:"main",group:"bin",replace:"△"},"\\bigtriangledown":{font:"main",group:"bin",replace:"▽"},"\\dagger":{font:"main",group:"bin",replace:"†"},"\\diamond":{font:"main",group:"bin",replace:"⋄"},"\\star":{font:"main",group:"bin",replace:"⋆"},"\\triangleleft":{font:"main",group:"bin",replace:"◃"},"\\triangleright":{font:"main",group:"bin",replace:"▹"},"\\{":{font:"main",group:"open",replace:"{"},"\\}":{font:"main",group:"close",replace:"}"},"\\lbrace":{font:"main",group:"open",replace:"{"},"\\rbrace":{font:"main",group:"close",replace:"}"},"\\lbrack":{font:"main",group:"open",replace:"["},"\\rbrack":{font:"main",group:"close",replace:"]"},"\\lfloor":{font:"main",group:"open",replace:"⌊"},"\\rfloor":{font:"main",group:"close",replace:"⌋"},"\\lceil":{font:"main",group:"open",replace:"⌈"},"\\rceil":{font:"main",group:"close",replace:"⌉"},"\\backslash":{font:"main",group:"textord",replace:"\\"},"|":{font:"main",group:"textord",replace:"∣"},"\\vert":{font:"main",group:"textord",replace:"∣"},"\\|":{font:"main",group:"textord",replace:"∥"},"\\Vert":{font:"main",group:"textord",replace:"∥"},"\\uparrow":{font:"main",group:"rel",replace:"↑"},"\\Uparrow":{font:"main",group:"rel",replace:"⇑"},"\\downarrow":{font:"main",group:"rel",replace:"↓"},"\\Downarrow":{font:"main",group:"rel",replace:"⇓"},"\\updownarrow":{font:"main",group:"rel",replace:"↕"},"\\Updownarrow":{font:"main",group:"rel",replace:"⇕"},"\\coprod":{font:"math",group:"op",replace:"∐"},"\\bigvee":{font:"math",group:"op",replace:"⋁"},"\\bigwedge":{font:"math",group:"op",replace:"⋀"},"\\biguplus":{font:"math",group:"op",replace:"⨄"},"\\bigcap":{font:"math",group:"op",replace:"⋂"},"\\bigcup":{font:"math",group:"op",replace:"⋃"},"\\int":{font:"math",group:"op",replace:"∫"},"\\intop":{font:"math",group:"op",replace:"∫"},"\\iint":{font:"math",group:"op",replace:"∬"},"\\iiint":{font:"math",group:"op",replace:"∭"},"\\prod":{font:"math",group:"op",replace:"∏"},"\\sum":{font:"math",group:"op",replace:"∑"},"\\bigotimes":{font:"math",group:"op",replace:"⨂"},"\\bigoplus":{font:"math",group:"op",replace:"⨁"},"\\bigodot":{font:"math",group:"op",replace:"⨀"},"\\oint":{font:"math",group:"op",replace:"∮"},"\\bigsqcup":{font:"math",group:"op",replace:"⨆"},"\\smallint":{font:"math",group:"op",replace:"∫"},"\\ldots":{font:"main",group:"inner",replace:"…"},"\\cdots":{font:"main",group:"inner",replace:"⋯"},"\\ddots":{font:"main",group:"inner",replace:"⋱"},"\\vdots":{font:"main",group:"textord",replace:"⋮"},"\\acute":{font:"main",group:"accent",replace:"´"},"\\grave":{font:"main",group:"accent",replace:"`"},"\\ddot":{font:"main",group:"accent",replace:"¨"},"\\tilde":{font:"main",group:"accent",replace:"~"},"\\bar":{font:"main",group:"accent",replace:"¯"},"\\breve":{font:"main",group:"accent",replace:"˘"},"\\check":{font:"main",group:"accent",replace:"ˇ"},"\\hat":{font:"main",group:"accent",replace:"^"},"\\vec":{font:"main",group:"accent",replace:"⃗"},"\\dot":{font:"main",group:"accent",replace:"˙"},"\\imath":{font:"main",group:"mathord",replace:"ı"},"\\jmath":{font:"main",group:"mathord",replace:"ȷ"}},text:{"\\ ":{font:"main",group:"spacing",replace:" "}," ":{font:"main",group:"spacing",replace:" "},"~":{font:"main",group:"spacing",replace:" "}}},a='0123456789/@."',l=0;l<a.length;l++){var r=a.charAt(l);h.math[r]={font:"main",group:"textord"}}for(var p="0123456789`!@*()-=+[]'\";:?/.,",l=0;l<p.length;l++){var r=p.charAt(l);h.text[r]={font:"main",group:"textord"}}for(var s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",l=0;l<s.length;l++){var r=s.charAt(l);h.math[r]={font:"main",group:"mathord"},h.text[r]={font:"main",group:"textord"}}t.exports=h},{}],23:[function(e,t,i){function h(e){return g[e]}function a(e){return(""+e).replace(d,h)}function l(e){w(e,"")}var r=Array.prototype.indexOf,p=function(e,t){if(null==e)return-1;if(r&&e.indexOf===r)return e.indexOf(t);for(var i=0,h=e.length;h>i;i++)if(e[i]===t)return i;return-1},s=function(e,t){return-1!==p(e,t)},c=function(e,t){return void 0===e?t:e},n=/([A-Z])/g,o=function(e){return e.replace(n,"-$1").toLowerCase()},g={"&":"&",">":">","<":"<",'"':""","'":"'"},d=/[&><"']/g,w;if("undefined"!=typeof document){var u=document.createElement("span");w="textContent"in u?function(e,t){e.textContent=t}:function(e,t){e.innerText=t}}t.exports={contains:s,deflt:c,escape:a,hyphenate:o,indexOf:p,setTextContent:w,clearNode:l}},{}]},{},[1])(1)})}.call(this),"undefined"==typeof Package&&(Package={}),Package["rocketchat:katex"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,a=Package["ddp-client"].DDP,a,t;"undefined"==typeof Package&&(Package={}),Package.livedata={DDP:a,LivedataTest:t}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;"undefined"==typeof Package&&(Package={}),Package["hot-code-push"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor;"undefined"==typeof Package&&(Package={}),Package["mobile-status-bar"]={}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,n;(function(){var a=0,r=!1;n={hold:function(){if(!e.isCordova)return{release:function(){}};if(r)throw new Error("Can't show launch screen once it's hidden");a++;var n=!1,t=function(){e.isCordova&&(n||(a--,0===a&&"undefined"!=typeof navigator&&navigator.splashscreen&&(r=!0,navigator.splashscreen.hide())))};return{release:t}}}}).call(this),function(){var a=n.hold(),r=Package.templating&&Package.templating.Template;e.startup(function(){r?Package["iron:router"]?Package["iron:router"].Router.onAfterAction(function(){a.release()}):(r.body.onRendered(function(){a.release()}),setTimeout(function(){a.release()},6e3)):a.release()})}.call(this),"undefined"==typeof Package&&(Package={}),Package["launch-screen"]={LaunchScreen:n}}();
|
||
|
||
!function(){var e=Package.meteor.Meteor,o=Package.tracker.Tracker,a=Package.tracker.Deps,n=Package.retry.Retry,r=Package["ddp-client"].DDP,t=Package.mongo.Mongo,i=Package.underscore._,c=Package.http.HTTP,u=Package.random.Random,d,s;(function(){var o="METEOR CORDOVA DEBUG (autoupdate_cordova.js) ",a=function(e){console.log(o+e)},r=30,i=5,c=__meteor_runtime_config__.autoupdateVersionCordova||"unknown";d=new t.Collection("meteor_autoupdate_clientVersions"),s={},s.newClientAvailable=function(){return!!d.findOne({_id:"version-cordova",version:{$ne:c}})};var u=!1,_=!1,g=null,l=new n({minCount:0,baseTimeout:3e4}),p=0;s._retrySubscription=function(){var o=__meteor_runtime_config__.appId;if(e.subscribe("meteor_autoupdate_clientVersions",o,{onError:function(o){e._debug("autoupdate subscription failed:",o),p++,l.retryLater(p,function(){s._retrySubscription()})}}),Package.reload)var a=function(e){var o=this;e.version!==c&&window.fireGlobalEvent("onNewVersion",e.version)},n=d.find({_id:"version-cordova"}).observe({added:a,changed:a})},e.startup(s._retrySubscription)}).call(this),"undefined"==typeof Package&&(Package={}),Package.autoupdate={Autoupdate:s}}();
|
||
|
||
check=Package.check.check,Match=Package.check.Match,DDPRateLimiter=Package["ddp-rate-limiter"].DDPRateLimiter,EJSON=Package.ejson.EJSON,FastClick=Package.fastclick.FastClick,HTTP=Package.http.HTTP,$=Package.jquery.$,jQuery=Package.jquery.jQuery,Log=Package.logging.Log,Mongo=Package.mongo.Mongo,Random=Package.random.Random,RateLimiter=Package["rate-limit"].RateLimiter,ReactiveDict=Package["reactive-dict"].ReactiveDict,ReactiveVar=Package["reactive-var"].ReactiveVar,Reload=Package.reload.Reload,ServiceConfiguration=Package["service-configuration"].ServiceConfiguration,Session=Package.session.Session,Spacebars=Package.spacebars.Spacebars,Tracker=Package.tracker.Tracker,Deps=Package.tracker.Deps,CustomOAuth=Package["rocketchat:custom-oauth"].CustomOAuth,fileUploadHandler=Package["rocketchat:file-upload"].fileUploadHandler,FileUpload=Package["rocketchat:file-upload"].FileUpload,Importer=Package["rocketchat:importer"].Importer,RocketChat=Package["rocketchat:lib"].RocketChat,Logger=Package["rocketchat:logger"].Logger,Mailer=Package["rocketchat:mailer"].Mailer,renderMessageBody=Package["rocketchat:ui-message"].renderMessageBody,WebRTC=Package["rocketchat:webrtc"].WebRTC,DelayedTask=Package["konecty:delayed-task"].DelayedTask,UserPresence=Package["konecty:user-presence"].UserPresence,Streamer=Package["rocketchat:streamer"].Streamer,Status=Package["francocatena:status"].Status,UploadFS=Package["jalik:ufs"].UploadFS,Gravatar=Package["jparker:gravatar"].Gravatar,BlazeLayout=Package["kadira:blaze-layout"].BlazeLayout,FlowRouter=Package["kadira:flow-router"].FlowRouter,TimeSync=Package["mizzao:timesync"].TimeSync,moment=Package["momentjs:moment"].moment,ReactiveStore=Package["mrt:reactive-store"].ReactiveStore,Cookies=Package["ostrio:cookies"].Cookies,CodeMirror=Package["perak:codemirror"].CodeMirror,jsonlint=Package["perak:codemirror"].jsonlint,JSHINT=Package["perak:codemirror"].JSHINT,CSSLint=Package["perak:codemirror"].CSSLint,Helpers=Package["raix:handlebar-helpers"].Helpers,Push=Package["raix:push"].Push,s=Package["underscorestring:underscore.string"].s,slugify=Package["yasaricli:slugify"].slugify,Meta=Package["yasinuslu:blaze-meta"].Meta,Accounts=Package["accounts-base"].Accounts,AccountsClient=Package["accounts-base"].AccountsClient,Blaze=Package.ui.Blaze,UI=Package.ui.UI,Handlebars=Package.ui.Handlebars,Template=Package.templating.Template,Meteor=Package.meteor.Meteor,WebApp=Package.webapp.WebApp,_=Package.underscore._,DDP=Package["ddp-client"].DDP,LaunchScreen=Package["launch-screen"].LaunchScreen,TAPi18next=Package["tap:i18n"].TAPi18next,TAPi18n=Package["tap:i18n"].TAPi18n,CryptoJS=Package["tmeasday:crypto-base"].CryptoJS,HTML=Package.htmljs.HTML,Autoupdate=Package.autoupdate.Autoupdate;
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;RegExp.escape=function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare,t;"undefined"!=typeof UploadFS&&null!==UploadFS&&(RocketChat.models.Uploads.model.allow({insert:function(e,t){return e},update:function(e,t){return e===t.userId},remove:function(e,t){return e===t.userId}}),t=function(){var e;return e=new Cookies,Meteor.isClient&&(e.set("rc_uid",Meteor.userId()),e.set("rc_token",Meteor._localStorage.getItem("Meteor.loginToken")),e.send()),Meteor.fileStore=new UploadFS.store.GridFS({collection:RocketChat.models.Uploads.model,name:"rocketchat_uploads",collectionName:"rocketchat_uploads",filter:new UploadFS.Filter({onCheck:FileUpload.validateFileUpload}),transformWrite:function(e,t,o,n){var r,i;return RocketChatFile.enabled!==!1&&/^image\/.+/.test(n.type)?(i=void 0,r=function(e,o){var r;return null!=e?i.pipe(t):(n.identify={format:o.format,size:o.size},null!=o.Orientation&&""!==(r=o.Orientation)&&"Unknown"!==r&&"Undefined"!==r?RocketChatFile.gm(i).autoOrient().stream().pipe(t):i.pipe(t))},i=RocketChatFile.gm(e).identify(r).stream()):e.pipe(t)},onRead:function(t,o,n,r){var i,a,l,c;return!RocketChat.settings.get("FileUpload_ProtectFiles")||(null!=(null!=n&&null!=(a=n.headers)?a.cookie:void 0)&&(i=n.headers.cookie),null!=i&&(c=e.get("rc_uid",i)),null!=i&&(l=e.get("rc_token",i)),null==c&&(c=n.query.rc_uid,l=n.query.rc_token),c&&l&&RocketChat.models.Users.findOneByIdAndLoginToken(c,l))?(r.setHeader("content-disposition",'attachment; filename="'+encodeURIComponent(o.name)+'"'),!0):(r.writeHead(403),!1)}})},Meteor.startup(function(){return Meteor.isServer?t():Tracker.autorun(function(e){return Meteor.userId()&&RocketChat.settings.subscription.ready()?(t(),e.stop()):void 0})}))}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;this.i18n_status_func=function(e,c){return TAPi18n.__(e,c)}}).call(this);
|
||
|
||
(function(){!function(i,e){"use strict";var s="0.7.3",o="",r="?",n="function",a="undefined",t="object",w="major",d="model",l="name",c="type",p="vendor",m="version",u="architecture",f="console",g="mobile",h="tablet",b="smarttv",v="wearable",x="embedded",k={extend:function(i,e){for(var s in e)-1!=="browser cpu device engine os".indexOf(s)&&e[s].length%2===0&&(i[s]=e[s].concat(i[s]));return i},has:function(i,e){return"string"==typeof i?-1!==e.toLowerCase().indexOf(i.toLowerCase()):void 0},lowerize:function(i){return i.toLowerCase()}},y={rgx:function(){for(var i,s=0,o,r,w,d,l,c,p=arguments;s<p.length&&!l;){var m=p[s],u=p[s+1];if(typeof i===a){i={};for(w in u)d=u[w],typeof d===t?i[d[0]]=e:i[d]=e}for(o=r=0;o<m.length&&!l;)if(l=m[o++].exec(this.getUA()))for(w=0;w<u.length;w++)c=l[++r],d=u[w],typeof d===t&&d.length>0?2==d.length?typeof d[1]==n?i[d[0]]=d[1].call(this,c):i[d[0]]=d[1]:3==d.length?typeof d[1]!==n||d[1].exec&&d[1].test?i[d[0]]=c?c.replace(d[1],d[2]):e:i[d[0]]=c?d[1].call(this,c,d[2]):e:4==d.length&&(i[d[0]]=c?d[3].call(this,c.replace(d[1],d[2])):e):i[d]=c?c:e;s+=2}return i},str:function(i,s){for(var o in s)if(typeof s[o]===t&&s[o].length>0){for(var n=0;n<s[o].length;n++)if(k.has(s[o][n],i))return o===r?e:o}else if(k.has(s[o],i))return o===r?e:o;return i}},A={browser:{oldsafari:{major:{1:["/8","/1","/3"],2:"/4","?":"/"},version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:"NT 6.4",RT:"ARM"}}}},E={browser:[[/(opera\smini)\/((\d+)?[\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/((\d+)?[\w\.-]+)/i,/(opera).+version\/((\d+)?[\w\.]+)/i,/(opera)[\/\s]+((\d+)?[\w\.]+)/i],[l,m,w],[/\s(opr)\/((\d+)?[\w\.]+)/i],[[l,"Opera"],m,w],[/(kindle)\/((\d+)?[\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?((\d+)?[\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?((\d+)?[\w\.]*)/i,/(?:ms|\()(ie)\s((\d+)?[\w\.]+)/i,/(rekonq)((?:\/)[\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron)\/((\d+)?[\w\.-]+)/i],[l,m,w],[/(trident).+rv[:\s]((\d+)?[\w\.]+).+like\sgecko/i],[[l,"IE"],m,w],[/(yabrowser)\/((\d+)?[\w\.]+)/i],[[l,"Yandex"],m,w],[/(comodo_dragon)\/((\d+)?[\w\.]+)/i],[[l,/_/g," "],m,w],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?((\d+)?[\w\.]+)/i,/(uc\s?browser|qqbrowser)[\/\s]?((\d+)?[\w\.]+)/i],[l,m,w],[/(dolfin)\/((\d+)?[\w\.]+)/i],[[l,"Dolphin"],m,w],[/((?:android.+)crmo|crios)\/((\d+)?[\w\.]+)/i],[[l,"Chrome"],m,w],[/version\/((\d+)?[\w\.]+).+?mobile\/\w+\s(safari)/i],[m,w,[l,"Mobile Safari"]],[/version\/((\d+)?[\w\.]+).+?(mobile\s?safari|safari)/i],[m,w,l],[/webkit.+?(mobile\s?safari|safari)((\/[\w\.]+))/i],[l,[w,y.str,A.browser.oldsafari.major],[m,y.str,A.browser.oldsafari.version]],[/(konqueror)\/((\d+)?[\w\.]+)/i,/(webkit|khtml)\/((\d+)?[\w\.]+)/i],[l,m,w],[/(navigator|netscape)\/((\d+)?[\w\.-]+)/i],[[l,"Netscape"],m,w],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?((\d+)?[\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/((\d+)?[\w\.-]+)/i,/(mozilla)\/((\d+)?[\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf)[\/\s]?((\d+)?[\w\.]+)/i,/(links)\s\(((\d+)?[\w\.]+)/i,/(gobrowser)\/?((\d+)?[\w\.]+)*/i,/(ice\s?browser)\/v?((\d+)?[\w\._]+)/i,/(mosaic)[\/\s]((\d+)?[\w\.]+)/i],[l,m,w]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[u,"amd64"]],[/(ia32(?=;))/i],[[u,k.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[u,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[u,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[u,/ower/,"",k.lowerize]],[/(sun4\w)[;\)]/i],[[u,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[u,k.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[d,p,[c,h]],[/applecoremedia\/[\w\.]+ \((ipad)/],[d,[p,"Apple"],[c,h]],[/(apple\s{0,1}tv)/i],[[d,"Apple TV"],[p,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[p,d,[c,h]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i],[d,[p,"Amazon"],[c,h]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[[d,y.str,A.device.amazon.model],[p,"Amazon"],[c,g]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[d,p,[c,g]],[/\((ip[honed|\s\w*]+);/i],[d,[p,"Apple"],[c,g]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|huawei|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[p,d,[c,g]],[/\(bb10;\s(\w+)/i],[d,[p,"BlackBerry"],[c,g]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7)/i],[d,[p,"Asus"],[c,h]],[/(sony)\s(tablet\s[ps])/i],[p,d,[c,h]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[p,d,[c,f]],[/android.+;\s(shield)\sbuild/i],[d,[p,"Nvidia"],[c,f]],[/(playstation\s[3portablevi]+)/i],[d,[p,"Sony"],[c,f]],[/(sprint\s(\w+))/i],[[p,y.str,A.device.sprint.vendor],[d,y.str,A.device.sprint.model],[c,g]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[p,d,[c,h]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|huawei|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],[p,[d,/_/g," "],[c,g]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[d,[p,"Microsoft"],[c,f]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[p,"Microsoft"],[c,g]],[/\s((milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?))[\w\s]+build\//i,/(mot)[\s-]?(\w+)*/i],[[p,"Motorola"],d,[c,g]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[d,[p,"Motorola"],[c,h]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n8000|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[p,"Samsung"],d,[c,h]],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-n900))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[[p,"Samsung"],d,[c,g]],[/(samsung);smarttv/i],[p,d,[c,b]],[/\(dtv[\);].+(aquos)/i],[d,[p,"Sharp"],[c,b]],[/sie-(\w+)*/i],[d,[p,"Siemens"],[c,g]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[[p,"Nokia"],d,[c,g]],[/android\s3\.[\s\w-;]{10}(a\d{3})/i],[d,[p,"Acer"],[c,h]],[/android\s3\.[\s\w-;]{10}(lg?)-([06cv9]{3,4})/i],[[p,"LG"],d,[c,h]],[/(lg) netcast\.tv/i],[p,d,[c,b]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i],[d,[p,"LG"],[c,g]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[d,[p,"Lenovo"],[c,h]],[/linux;.+((jolla));/i],[p,d,[c,g]],[/((pebble))app\/[\d\.]+\s/i],[p,d,[c,v]],[/android.+;\s(glass)\s\d/i],[d,[p,"Google"],[c,v]],[/(mobile|tablet);.+rv\:.+gecko\//i],[[c,k.lowerize],p,d]],engine:[[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[l,m],[/rv\:([\w\.]+).*(gecko)/i],[m,l]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[l,m],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*|windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[l,[m,y.str,A.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[l,"Windows"],[m,y.str,A.os.windows.version]],[/\((bb)(10);/i],[[l,"BlackBerry"],m],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\os|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],[l,m],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[l,"Symbian"],m],[/\((series40);/i],[l],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[l,"Firefox OS"],m],[/(nintendo|playstation)\s([wids3portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[l,m],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[l,"Chromium OS"],m],[/(sunos)\s?([\w\.]+\d)*/i],[[l,"Solaris"],m],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[l,m],[/(ip[honead]+)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i],[[l,"iOS"],[m,/_/g,"."]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[[l,"Mac OS"],[m,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(haiku)\s(\w+)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],[l,m]]},S=function(e,s){if(!(this instanceof S))return new S(e,s).getResult();var r=e||(i&&i.navigator&&i.navigator.userAgent?i.navigator.userAgent:o),n=s?k.extend(E,s):E;this.getBrowser=function(){return y.rgx.apply(this,n.browser)},this.getCPU=function(){return y.rgx.apply(this,n.cpu)},this.getDevice=function(){return y.rgx.apply(this,n.device)},this.getEngine=function(){return y.rgx.apply(this,n.engine)},this.getOS=function(){return y.rgx.apply(this,n.os)},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(i){return r=i,this},this.setUA(r)};if(S.VERSION=s,S.BROWSER={NAME:l,MAJOR:w,VERSION:m},S.CPU={ARCHITECTURE:u},S.DEVICE={MODEL:d,VENDOR:p,TYPE:c,CONSOLE:f,MOBILE:g,SMARTTV:b,TABLET:h,WEARABLE:v,EMBEDDED:x},S.ENGINE={NAME:l,VERSION:m},S.OS={NAME:l,VERSION:m},typeof exports!==a)typeof module!==a&&module.exports&&(exports=module.exports=S),exports.UAParser=S;else{i.UAParser=S,typeof define===n&&define.amd&&define(function(){return S});var N=i.jQuery||i.Zepto;if(typeof N!==a){var T=new S;N.ua=T.getResult(),N.ua.get=function(){return T.getUA()},N.ua.set=function(i){T.setUA(i);var e=T.getResult();for(var s in e)N.ua[s]=e[s]}}}}(this)}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare,t;(t=function(e){return _.each(_.functions(e),function(t){var r;return _[t]||null!=_.prototype[t]?void 0:(r=_[t]=e[t],_.prototype[t]=function(){var e;return e=[this._wrapped],push.apply(e,arguments),result.call(this,r.apply(_,e))})})})(s.exports())}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;Template.registerHelper("log",function(){return console.log.apply(console,arguments)})}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;Meteor.methods({deleteMessage:function(e){var r,o,s,n,l,i,a;if(!Meteor.userId())throw new Meteor.Error(203,t("general.User_logged_out"));if(l=RocketChat.authz.hasAtLeastOnePermission("delete-message",e.rid),s=RocketChat.settings.get("Message_AllowDeleting"),n=(null!=e&&null!=(a=e.u)?a._id:void 0)===Meteor.userId(),!(l||s&&n))throw new Meteor.Error("message-deleting-not-allowed",t("Message_deleting_not_allowed"));if(r=RocketChat.settings.get("Message_AllowDeleting_BlockDeleteInMinutes"),null!=r&&0!==r&&(null!=e.ts&&(i=moment(e.ts)),null!=i&&(o=moment().diff(i,"minutes")),o>r))throw toastr.error(t("Message_deleting_blocked")),new Meteor.Error("message-deleting-blocked");return Tracker.nonreactive(function(){return ChatMessage.remove({_id:e._id,"u._id":Meteor.userId()})})}})}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;Meteor.methods({hideRoom:function(e){if(!Meteor.userId())throw new Meteor.Error(203,t("User_logged_out"));return ChatSubscription.update({rid:e,"u._id":Meteor.userId()},{$set:{alert:!1,open:!1}})}})}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;Meteor.methods({leaveRoom:function(e){if(!Meteor.userId())throw new Meteor.Error(203,t("User_logged_out"));return ChatSubscription.remove({rid:e,"u._id":Meteor.userId()}),ChatRoom.update(e,{$pull:{usernames:Meteor.user().username}})}})}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;Meteor.methods({openRoom:function(e){if(!Meteor.userId())throw new Meteor.Error("invalid-user","[methods] openRoom -> Invalid user");return ChatSubscription.update({rid:e,"u._id":Meteor.userId()},{$set:{open:!0}})}})}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;Meteor.methods({setUserActiveStatus:function(e,t){return Meteor.users.update(e,{$set:{active:t}}),!0}})}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;Meteor.methods({toggleFavorite:function(e,r){if(!Meteor.userId())throw new Meteor.Error(203,t("User_logged_out"));return ChatSubscription.update({rid:e,"u._id":Meteor.userId()},{$set:{f:r}})}})}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;Meteor.methods({updateMessage:function(e){var r,s,o,i,n,d,a,l,g;if(!Meteor.userId())throw new Meteor.Error(203,t("User_logged_out"));if(l=ChatMessage.findOne(e._id),n=RocketChat.authz.hasAtLeastOnePermission("edit-message",e.rid),o=RocketChat.settings.get("Message_AllowEditing"),i=(null!=l&&null!=(g=l.u)?g._id:void 0)===Meteor.userId(),d=Meteor.users.findOne(Meteor.userId()),!(n||o&&i))throw toastr.error(t("Message_editing_not_allowed")),new Meteor.Error("message-editing-not-allowed",t("Message_editing_not_allowed"));if(r=RocketChat.settings.get("Message_AllowEditing_BlockEditInMinutes"),null!=r&&0!==r&&(null!=l.ts&&(a=moment(l.ts)),null!=a&&(s=moment().diff(a,"minutes")),s>r))throw toastr.error(t("Message_editing_blocked")),new Meteor.Error("message-editing-blocked");return Tracker.nonreactive(function(){return e.editedAt=new Date(Date.now()+TimeSync.serverOffset()),e.editedBy={_id:Meteor.userId(),username:d.username},e=RocketChat.callbacks.run("beforeSaveMessage",e),ChatMessage.update({_id:e._id,"u._id":Meteor.userId()},{$set:{editedAt:e.editedAt,editedBy:e.editedBy,msg:e.msg}})})}})}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;Meteor.startup(function(){return Tracker.autorun(function(){return Meteor.userId()?RocketChat.Notifications.onUser("notification",function(e){var o,t,r,i;return r=void 0,("channel"===(i=FlowRouter.getRouteName())||"group"===i||"direct"===i)&&(r=Session.get("openedRoom")),o=readMessage.isEnable(),t=r===e.payload.rid,o&&t?void 0:(KonchatNotification.newMessage(),KonchatNotification.showDesktop(e))}):void 0})})}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;Meteor.startup(function(){return RocketChat.Notifications.onAll("updateAvatar",function(e){return updateAvatarOfUsername(e.username)})})}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var r=__coffeescriptShare;FlowRouter.route("/admin/users",{name:"admin-users",action:function(){return RocketChat.TabBar.showGroup("adminusers"),BlazeLayout.render("main",{center:"adminUsers"})}}),FlowRouter.route("/admin/rooms",{name:"admin-rooms",action:function(){return RocketChat.TabBar.showGroup("adminrooms"),BlazeLayout.render("main",{center:"adminRooms"})}}),FlowRouter.route("/admin/info",{name:"admin-info",action:function(){return RocketChat.TabBar.showGroup("adminInfo"),BlazeLayout.render("main",{center:"adminInfo"})}}),FlowRouter.route("/admin/import",{name:"admin-import",action:function(){return BlazeLayout.render("main",{center:"adminImport"})}}),FlowRouter.route("/admin/import/prepare/:importer",{name:"admin-import-prepare",action:function(){return BlazeLayout.render("main",{center:"adminImportPrepare"})}}),FlowRouter.route("/admin/import/progress/:importer",{name:"admin-import-progress",action:function(){return BlazeLayout.render("main",{center:"adminImportProgress"})}}),FlowRouter.route("/admin/:group?",{name:"admin",action:function(){return RocketChat.TabBar.showGroup("admin"),BlazeLayout.render("main",{center:"admin"})}})}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var o=__coffeescriptShare;FlowRouter.goToRoomById=function(o){var e;return e=ChatSubscription.findOne({rid:o}),null!=e?FlowRouter.go(RocketChat.roomTypes.getRouteLink(e.t,e)):void 0}}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;Blaze.registerHelper("pathFor",function(e,r){return FlowRouter.path(e,r.hash)}),BlazeLayout.setRoot("body"),FlowRouter.subscriptions=function(){return Tracker.autorun(function(e){return function(){return RoomManager.init(),e.register("userData",Meteor.subscribe("userData")),e.register("activeUsers",Meteor.subscribe("activeUsers")),e.register("admin-settings",Meteor.subscribe("admin-settings"))}}(this))},FlowRouter.route("/",{name:"index",action:function(){return BlazeLayout.render("main",{center:"loading"}),Meteor.userId()?Tracker.autorun(function(e){return FlowRouter.subsReady()===!0?(Meteor.defer(function(){var e;return null!=Meteor.user().defaultRoom?(e=Meteor.user().defaultRoom.split("/"),FlowRouter.go(e[0],{name:e[1]})):FlowRouter.go("home")}),e.stop()):void 0}):FlowRouter.go("home")}}),FlowRouter.route("/login",{name:"login",action:function(){return FlowRouter.go("home")}}),FlowRouter.route("/home",{name:"home",action:function(){return RocketChat.TabBar.showGroup("home"),BlazeLayout.render("main",{center:"home"}),KonchatNotification.getDesktopPermission()}}),FlowRouter.route("/changeavatar",{name:"changeAvatar",action:function(){return RocketChat.TabBar.showGroup("changeavatar"),BlazeLayout.render("main",{center:"avatarPrompt"})}}),FlowRouter.route("/account/:group?",{name:"account",action:function(e){return e.group||(e.group="Preferences"),e.group=_.capitalize(e.group,!0),RocketChat.TabBar.showGroup("account"),BlazeLayout.render("main",{center:"account"+e.group})}}),FlowRouter.route("/history/private",{name:"privateHistory",subscriptions:function(e,r){return this.register("privateHistory",Meteor.subscribe("privateHistory"))},action:function(){return Session.setDefault("historyFilter",""),RocketChat.TabBar.showGroup("private-history"),BlazeLayout.render("main",{center:"privateHistory"})}}),FlowRouter.route("/terms-of-service",{name:"terms-of-service",action:function(){return Session.set("cmsPage","Layout_Terms_of_Service"),BlazeLayout.render("cmsPage")}}),FlowRouter.route("/privacy-policy",{name:"privacy-policy",action:function(){return Session.set("cmsPage","Layout_Privacy_Policy"),BlazeLayout.render("cmsPage")}}),FlowRouter.route("/room-not-found/:type/:name",{name:"room-not-found",action:function(e){return Session.set("roomNotFound",{type:e.type,name:e.name}),BlazeLayout.render("main",{center:"roomNotFound"})}}),FlowRouter.route("/fxos",{name:"firefox-os-install",action:function(){return BlazeLayout.render("fxOsInstallPrompt")}}),FlowRouter.route("/register/:hash",{name:"register-secret-url",action:function(e){return BlazeLayout.render("secretURL")}})}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;RocketChat.roomTypes.add(null,0,{template:"starredRooms",icon:"icon-star"}),RocketChat.roomTypes.add("c",10,{template:"channels",icon:"icon-hash",route:{name:"channel",path:"/channel/:name",action:function(e,o){return openRoom("c",e.name),RocketChat.TabBar.showGroup("channel")},link:function(e){return{name:e.name}}},condition:function(){return RocketChat.authz.hasAllPermission("view-c-room")}}),RocketChat.roomTypes.add("d",20,{template:"directMessages",icon:"icon-at",route:{name:"direct",path:"/direct/:username",action:function(e,o){return openRoom("d",e.username),RocketChat.TabBar.showGroup("directmessage")},link:function(e){return{username:e.name}}},condition:function(){return RocketChat.authz.hasAllPermission("view-d-room")}}),RocketChat.roomTypes.add("p",30,{template:"privateGroups",icon:"icon-lock",route:{name:"group",path:"/group/:name",action:function(e,o){return openRoom("p",e.name),RocketChat.TabBar.showGroup("privategroup")},link:function(e){return{name:e.name}}},condition:function(){return RocketChat.authz.hasAllPermission("view-p-room")}})}).call(this);
|
||
|
||
(function(){Meteor.startup(function(){Tracker.autorun(function(){Meteor.user()&&Meteor.user().emails&&Meteor.user().emails[0]&&Meteor.user().emails[0].verified!==!0&&RocketChat.settings.get("Accounts_EmailVerification")===!0&&!Session.get("Accounts_EmailVerification_Warning")&&(toastr.warning(TAPi18n.__("You_have_not_verified_your_email")),Session.set("Accounts_EmailVerification_Warning",!0))})})}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;Meteor.startup(function(){return ChatRoom.find().observe({added:function(e){return Session.set("roomData"+e._id,e)},changed:function(e){return Session.set("roomData"+e._id,e)},removed:function(e){return Session.set("roomData"+e._id,void 0)}})})}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare,a=[].slice;Meteor.startup(function(){var e;return TimeSync.loggingEnabled=!1,UserPresence.awayTime=3e5,UserPresence.start(),Meteor.subscribe("activeUsers"),Session.setDefault("AvatarRandom",0),window.lastMessageWindow={},window.lastMessageWindowHistory={},this.defaultAppLanguage=function(){var e,t;return e=window.navigator.userLanguage||window.navigator.language||"en",t=/([a-z]{2}-)([a-z]{2})/,t.test(e)&&(e=e.replace(t,function(){var e,t;return e=arguments[0],t=2<=arguments.length?a.call(arguments,1):[],t[0]+t[1].toUpperCase()})),e},this.defaultUserLanguage=function(){return RocketChat.settings.get("Language")||defaultAppLanguage()},e=[],this.setLanguage=function(a){return!a||e.indexOf(a)>-1?void 0:(e.push(a),isRtl(a)?$("html").addClass("rtl"):$("html").removeClass("rtl"),a=a.split("-").shift(),TAPi18n.setLanguage(a),a=a.toLowerCase(),"en"!==a?Meteor.call("loadLocale",a,function(e,t){return Function(t)(),moment.locale(a)}):void 0)},Meteor.subscribe("userData",function(){var e,a;return a=null!=(e=Meteor.user())?e.language:void 0,null==a&&(a=defaultUserLanguage()),localStorage.getItem("userLanguage")!==a&&localStorage.setItem("userLanguage",a),setLanguage(a)})})}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;Meteor.startup(function(){return Tracker.autorun(function(){var e,r,n,t,a,o,i,u,s,c;for(c=0,s=!1,u=ChatSubscription.find({open:!0},{fields:{unread:1,alert:1,rid:1,t:1,name:1,ls:1}}),t=void 0,Tracker.nonreactive(function(){var e;return"channel"===(e=FlowRouter.getRouteName())||"group"===e||"direct"===e?t=Session.get("openedRoom"):void 0}),a=u.fetch(),r=0,n=a.length;n>r;r++)o=a[r],(o.alert||o.unread>0)&&(e=readMessage.isEnable(),i=t===o.rid,e&&i&&Meteor.setTimeout(function(){return readMessage.readNow()},500),c+=o.unread,o.alert===!0&&(s="•")),readMessage.refreshUnreadMark(o.rid);return menu.updateUnreadBars(),c>0?c>999?Session.set("unread","999+"):Session.set("unread",c):s!==!1?Session.set("unread",s):Session.set("unread","")})}),Meteor.startup(function(){return window.favico=new Favico({position:"up",animation:"none"}),Tracker.autorun(function(){var e,r;return e=RocketChat.settings.get("Site_Name"),r=Session.get("unread"),fireGlobalEvent("unread-changed",r),"undefined"!=typeof favico&&null!==favico&&favico.badge(r,{bgColor:"number"!=typeof r?"#3d8a3a":"#ac1b1b"}),document.title=""===r?e:"("+r+") "+e})})}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;Tracker.autorun(function(){var e,t;return e=Meteor.user(),"online"===(null!=e?e.statusConnection:void 0)&&(t=moment().utcOffset()/60,e.utcOffset!==t)?Meteor.call("updateUserUtcOffset",t):void 0})}).call(this);
|
||
|
||
(function(){__coffeescriptShare="object"==typeof __coffeescriptShare?__coffeescriptShare:{};var e=__coffeescriptShare;Meteor.startup(function(){return Meteor.users.find({},{fields:{name:1,username:1,pictures:1,status:1,emails:1,phone:1,services:1,utcOffset:1}}).observe({added:function(e){return Session.set("user_"+e.username+"_status",e.status),RoomManager.updateUserStatus(e,e.status,e.utcOffset)},changed:function(e){return Session.set("user_"+e.username+"_status",e.status),RoomManager.updateUserStatus(e,e.status,e.utcOffset)},removed:function(e){return Session.set("user_"+e.username+"_status",null),RoomManager.updateUserStatus(e,"offline",null)}})})}).call(this);
|
||
|