astrXbian/www/FULLJS/gchange-web/dist_js/converse.js

70 lines
1.2 MiB
JavaScript
Raw Normal View History

2021-05-21 01:25:57 +02:00
/* minified */
!function(e,t){"function"==typeof define&&define.amd?define([],t):e.converse=t()}(this,(function(){
/**
* @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
* Released under MIT license, http://github.com/requirejs/almond/LICENSE
*/
var e,t,f,n;function o(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var f=document.createEvent("CustomEvent");return f.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),f}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
/*!
* Backbone.VDOMView
*
* MIT Licensed. Copyright (c) 2017, JC Brand <jc@opkode.com>
*/return function(n){var o,a,r,c,s={},i={},u={},_={},d=Object.prototype.hasOwnProperty,l=[].slice,h=/\.js$/;function m(e,t){return d.call(e,t)}function g(e,t){var f,n,o,a,r,c,s,i,_,d,l,m=t&&t.split("/"),g=u.map,p=g&&g["*"]||{};if(e){for(r=(e=e.split("/")).length-1,u.nodeIdCompat&&h.test(e[r])&&(e[r]=e[r].replace(h,"")),"."===e[0].charAt(0)&&m&&(e=m.slice(0,m.length-1).concat(e)),_=0;_<e.length;_++)if("."===(l=e[_]))e.splice(_,1),_-=1;else if(".."===l){if(0===_||1===_&&".."===e[2]||".."===e[_-1])continue;_>0&&(e.splice(_-1,2),_-=2)}e=e.join("/")}if((m||p)&&g){for(_=(f=e.split("/")).length;_>0;_-=1){if(n=f.slice(0,_).join("/"),m)for(d=m.length;d>0;d-=1)if((o=g[m.slice(0,d).join("/")])&&(o=o[n])){a=o,c=_;break}if(a)break;!s&&p&&p[n]&&(s=p[n],i=_)}!a&&s&&(a=s,c=i),a&&(f.splice(0,c,a),e=f.join("/"))}return e}function p(e,t){return function(){var f=l.call(arguments,0);return"string"!=typeof f[0]&&1===f.length&&f.push(null),a.apply(void 0,f.concat([e,t]))}}function b(e){return function(t){s[e]=t}}function y(e){if(m(i,e)){var t=i[e];delete i[e],_[e]=!0,o.apply(void 0,t)}if(!m(s,e)&&!m(_,e))throw new Error("No "+e);return s[e]}function v(e){var t,f=e?e.indexOf("!"):-1;return f>-1&&(t=e.substring(0,f),e=e.substring(f+1,e.length)),[t,e]}function w(e){return e?v(e):[]}function k(e){return function(){return u&&u.config&&u.config[e]||{}}}r=function(e,t){var f,n,o=v(e),a=o[0],r=t[1];return e=o[1],a&&(f=y(a=g(a,r))),a?e=f&&f.normalize?f.normalize(e,(n=r,function(e){return g(e,n)})):g(e,r):(a=(o=v(e=g(e,r)))[0],e=o[1],a&&(f=y(a))),{f:a?a+"!"+e:e,n:e,pr:a,p:f}},c={require:function(e){return p(e)},exports:function(e){var t=s[e];return void 0!==t?t:s[e]={}},module:function(e){return{id:e,uri:"",exports:s[e],config:k(e)}}},o=function(e,t,f,n){var o,a,u,d,l,h,g,v=[],k=typeof f;if(h=w(n=n||e),"undefined"===k||"function"===k){for(t=!t.length&&f.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(a=(d=r(t[l],h)).f))v[l]=c.require(e);else if("exports"===a)v[l]=c.exports(e),g=!0;else if("module"===a)o=v[l]=c.module(e);else if(m(s,a)||m(i,a)||m(_,a))v[l]=y(a);else{if(!d.p)throw new Error(e+" missing "+a);d.p.load(d.n,p(n,!0),b(a),{}),v[l]=s[a]}u=f?f.apply(s[e],v):void 0,e&&(o&&void 0!==o.exports&&o.exports!==s[e]?s[e]=o.exports:void 0===u&&g||(s[e]=u))}else e&&(s[e]=f)},e=t=a=function(e,t,f,n,s){if("string"==typeof e)return c[e]?c[e](t):y(r(e,w(t)).f);if(!e.splice){if((u=e).deps&&a(u.deps,u.callback),!t)return;t.splice?(e=t,t=f,f=null):e=void 0}return t=t||function(){},"function"==typeof f&&(f=n,n=s),n?o(void 0,e,t,f):setTimeout((function(){o(void 0,e,t,f)}),4),a},a.config=function(e){return a(e)},e._defined=s,(f=function(e,t,f){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(f=t,t=[]),m(s,e)||m(i,e)||(i[e]=[e,t,f])}).amd={jQuery:!0}}(),f("almond",(function(){})),
/*!
* Sizzle CSS Selector Engine v2.3.3
* https://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-08-08
*/
function(e){var t,n,o,a,r,c,s,i,u,_,d,l,h,m,g,p,b,y,v,w="sizzle"+1*new Date,k=e.document,S=0,x=0,M=ce(),T=ce(),A=ce(),C=function(e,t){return e===t&&(d=!0),0},E={}.hasOwnProperty,L=[],N=L.pop,j=L.push,O=L.push,D=L.slice,R=function(e,t){for(var f=0,n=e.length;f<n;f++)if(e[f]===t)return f;return-1},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",H="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+P+"*("+H+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+P+"*\\]",q=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",z=new RegExp(P+"+","g"),B=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),Y=new RegExp("^"+P+"*,"+P+"*"),U=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),W=new RegExp("="+P+"*([^\\]'\"]*?)"+P+"*\\]","g"),V=new RegExp(q),G=new RegExp("^"+H+"$"),J={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},$=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,ee=new RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),te=function(e,t,f){var n="0x"+t-65536;return n!=n||f?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},fe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){l()},ae=ye((function(e){return!0===e.disabled&&("form"in e||"label"in e)}),{dir:"parentNode",next:"legend"});try{O.apply(L=D.call(k.childNodes),k.childNodes),L[k.childNodes.length].nodeType}catch(e){O={apply:L.length?function(e,t){j.apply(e,D.call(t))}:function(e,t){for(var f=e.length,n=0;e[f++]=t[n++];);e.length=f-1}}}function re(e,t,f,o){var a,r,s,u,_,d,m,b=t&&t.ownerDocument,y=t?t.nodeType:9;if(f=f||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return f;if(!o&&((t?t.ownerDocument||t:k)!==h&&l(t),t=t||h,g)){if(11!==y&&(_=Q.exec(e)))if(a=_[1]){if(9===y){if(!(s=t.getElementById(a)))return f;if(s.id===a)return f.push(s),f}else if(b&&(s=b.getElementById(a))&&v(t,s)&&s.id===a)return f.push(s),f}else{if(_[2])return O.apply(f,t.getElementsByTagName(e)),f;if((a=_[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(f,t.getElementsByClassName(a)),f}if(n.qsa&&!A[e+" "]&&(!p||!p.test(e))){if(1!==y)b=t,m=e;else if("object"!==t.nodeName.toLowerCase()){for((u=t.getAttribute("id"))?u=u.replace(fe,ne):t.setAttribute("id",u=w),r=(d=c(e)).length;r--;)d[r]="#"+u+" "+be(d[r]);m=d.join(","),b=Z.test(e)&&ge(t.parentNode)||t}if(m)try{return O.apply(f,b.querySelectorAll(m)),f}catch(e){}finally{u===w&&t.removeAttribute("id")}}}return i(e.replace(B,"$1"),t,f,o)}function ce(){var e=[];return function t(f,n){return e.push(f+" ")>o.cacheLength&&delete t[e.shift()],t[f+" "]=n}}function se(e){return e[w]=!0,e}function ie(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var f=e.split("|"),n=f.length;n--;)o.attrHandle[f[n]]=t}function _e(e,t){var f=t&&e,n=f&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(f)for(;f=f.nextSibling;)if(f===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function le(e){return function(t){var f=t.nodeName.toLowerCase();return("input"===f||"button"===f)&&t.type===e}}function he(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDi
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.4+314e4831
*/
function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof f&&f.amd?f("es6-promise",t):e.ES6Promise=t()}(this,(function(){"use strict";function e(e){return"function"==typeof e}var f=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},n=0,o=void 0,a=void 0,r=function(e,t){l[n]=e,l[n+1]=t,2===(n+=2)&&(a?a(h):y())},c="undefined"!=typeof window?window:void 0,s=c||{},i=s.MutationObserver||s.WebKitMutationObserver,u="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),_="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function d(){var e=setTimeout;return function(){return e(h,1)}}var l=new Array(1e3);function h(){for(var e=0;e<n;e+=2)(0,l[e])(l[e+1]),l[e]=void 0,l[e+1]=void 0;n=0}var m,g,p,b,y=void 0;function v(e,t){var f=this,n=new this.constructor(S);void 0===n[k]&&R(n);var o=f._state;if(o){var a=arguments[o-1];r((function(){return O(o,n,a,f._result)}))}else N(f,n,e,t);return n}function w(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(S);return A(t,e),t}u?y=function(){return process.nextTick(h)}:i?(g=0,p=new i(h),b=document.createTextNode(""),p.observe(b,{characterData:!0}),y=function(){b.data=g=++g%2}):_?((m=new MessageChannel).port1.onmessage=h,y=function(){return m.port2.postMessage(0)}):y=void 0===c&&"function"==typeof t?function(){try{var e=Function("return this")().require("vertx");return void 0!==(o=e.runOnLoop||e.runOnContext)?function(){o(h)}:d()}catch(e){return d()}}():d();var k=Math.random().toString(36).substring(2);function S(){}var x={error:null};function M(e){try{return e.then}catch(e){return x.error=e,x}}function T(t,f,n){f.constructor===t.constructor&&n===v&&f.constructor.resolve===w?function(e,t){1===t._state?E(e,t._result):2===t._state?L(e,t._result):N(t,void 0,(function(t){return A(e,t)}),(function(t){return L(e,t)}))}(t,f):n===x?(L(t,x.error),x.error=null):void 0===n?E(t,f):e(n)?function(e,t,f){r((function(e){var n=!1,o=function(f,o,a,r){try{f.call(o,(function(f){n||(n=!0,t!==f?A(e,f):E(e,f))}),(function(t){n||(n=!0,L(e,t))}))}catch(e){return e}}(f,t,0,0,e._label);!n&&o&&(n=!0,L(e,o))}),e)}(t,f,n):E(t,f)}function A(e,t){var f,n;e===t?L(e,new TypeError("You cannot resolve a promise with itself")):(n=typeof(f=t),null===f||"object"!==n&&"function"!==n?E(e,t):T(e,t,M(t)))}function C(e){e._onerror&&e._onerror(e._result),j(e)}function E(e,t){void 0===e._state&&(e._result=t,e._state=1,0!==e._subscribers.length&&r(j,e))}function L(e,t){void 0===e._state&&(e._state=2,e._result=t,r(C,e))}function N(e,t,f,n){var o=e._subscribers,a=o.length;e._onerror=null,o[a]=t,o[a+1]=f,o[a+2]=n,0===a&&e._state&&r(j,e)}function j(e){var t=e._subscribers,f=e._state;if(0!==t.length){for(var n=void 0,o=void 0,a=e._result,r=0;r<t.length;r+=3)n=t[r],o=t[r+f],n?O(f,n,o,a):o(a);e._subscribers.length=0}}function O(t,f,n,o){var a=e(n),r=void 0,c=void 0,s=void 0,i=void 0;if(a){if((r=function(e,t){try{return e(t)}catch(e){return x.error=e,x}}(n,o))===x?(i=!0,c=r.error,r.error=null):s=!0,f===r)return void L(f,new TypeError("A promises callback cannot return that same promise."))}else r=o,s=!0;void 0!==f._state||(a&&s?A(f,r):i?L(f,c):1===t?E(f,r):2===t&&L(f,r))}var D=0;function R(e){e[k]=D++,e._state=void 0,e._result=void 0,e._subscribers=[]}var I=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(S),this.promise[k]||R(this.promise),f(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?E(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&E(this.promise,this._result))):L(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;void 0===this._state&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var f=this._instanceConstructor,n=f.resolve;if(n===w){var o=M(e);if(o===v&&void 0!==e._state)this._settledAt(e._state,
/**
* @preserve jed.js https://github.com/SlexAxton/Jed
*/
function(e,t){var n=Array.prototype,o=Object.prototype,a=n.slice,r=o.hasOwnProperty,c=n.forEach,s={},i={forEach:function(e,t,f){var n,o,a;if(null!==e)if(c&&e.forEach===c)e.forEach(t,f);else if(e.length===+e.length){for(n=0,o=e.length;n<o;n++)if(n in e&&t.call(f,e[n],n,e)===s)return}else for(a in e)if(r.call(e,a)&&t.call(f,e[a],a,e)===s)return},extend:function(e){return this.forEach(a.call(arguments,1),(function(t){for(var f in t)e[f]=t[f]})),e}},u=function(e){if(this.defaults={locale_data:{messages:{"":{domain:"messages",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}}},domain:"messages",debug:!1},this.options=i.extend({},this.defaults,e),this.textdomain(this.options.domain),e.domain&&!this.options.locale_data[this.options.domain])throw new Error("Text domain set to non-existent domain: `"+e.domain+"`")};function _(e){return u.PF.compile(e||"nplurals=2; plural=(n != 1);")}function d(e,t){this._key=e,this._i18n=t}u.context_delimiter=String.fromCharCode(4),i.extend(d.prototype,{onDomain:function(e){return this._domain=e,this},withContext:function(e){return this._context=e,this},ifPlural:function(e,t){return this._val=e,this._pkey=t,this},fetch:function(e){return"[object Array]"!={}.toString.call(e)&&(e=[].slice.call(arguments,0)),(e&&e.length?u.sprintf:function(e){return e})(this._i18n.dcnpgettext(this._domain,this._context,this._key,this._pkey,this._val),e)}}),i.extend(u.prototype,{translate:function(e){return new d(e,this)},textdomain:function(e){if(!e)return this._textdomain;this._textdomain=e},gettext:function(e){return this.dcnpgettext.call(this,void 0,void 0,e)},dgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},dcgettext:function(e,t){return this.dcnpgettext.call(this,e,void 0,t)},ngettext:function(e,t,f){return this.dcnpgettext.call(this,void 0,void 0,e,t,f)},dngettext:function(e,t,f,n){return this.dcnpgettext.call(this,e,void 0,t,f,n)},dcngettext:function(e,t,f,n){return this.dcnpgettext.call(this,e,void 0,t,f,n)},pgettext:function(e,t){return this.dcnpgettext.call(this,void 0,e,t)},dpgettext:function(e,t,f){return this.dcnpgettext.call(this,e,t,f)},dcpgettext:function(e,t,f){return this.dcnpgettext.call(this,e,t,f)},npgettext:function(e,t,f,n){return this.dcnpgettext.call(this,void 0,e,t,f,n)},dnpgettext:function(e,t,f,n,o){return this.dcnpgettext.call(this,e,t,f,n,o)},dcnpgettext:function(e,t,f,n,o){var a;if(n=n||f,e=e||this._textdomain,!this.options)return(a=new u).dcnpgettext.call(a,void 0,void 0,f,n,o);if(!this.options.locale_data)throw new Error("No locale data provided.");if(!this.options.locale_data[e])throw new Error("Domain `"+e+"` was not found.");if(!this.options.locale_data[e][""])throw new Error("No locale meta information provided.");if(!f)throw new Error("No translation key found.");var r,c,s,i=t?t+u.context_delimiter+f:f,d=this.options.locale_data,l=d[e],h=(d.messages||this.defaults.locale_data.messages)[""],m=l[""].plural_forms||l[""]["Plural-Forms"]||l[""]["plural-forms"]||h.plural_forms||h["Plural-Forms"]||h["plural-forms"];if(void 0===o)s=0;else{if("number"!=typeof o&&(o=parseInt(o,10),isNaN(o)))throw new Error("The number that was passed in is not a number.");s=_(m)(o)}if(!l)throw new Error("No domain named `"+e+"` could be found.");return!(r=l[i])||s>r.length?(this.options.missing_key_callback&&this.options.missing_key_callback(i,e),c=[f,n],!0===this.options.debug&&alert(c[_(m)(o)]),c[_()(o)]):(c=r[s])||(c=[f,n])[_()(o)]}});var l,h=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function t(e,t){for(var f=[];t>0;f[--t]=e);return f.join("")}var f=function(){return f.cache.hasOwnProperty(arguments[0])||(f.cache[arguments[0]]=f.parse(arguments[0])),f.format.call(null,f.cache[arguments[0]],arguments)};return f.format=function(f,n){var o,a,r,c,s,i,u,_=1,d=f.length,l="",m=[];for(a=0;a<d;a++)if("string"===(l=e(f[a])))m.push(f[a]);else if("array"===l){if((c=f[a])[2])for(o=n[_],r=0;r<c[2].length;r++){if(!o.hasOwnProperty(c[2][r]))throw h('[sprintf] property "%s" does not exist',c[2][r]);o=o[c[2][r]]}else o=c[1]?n[c[1]]:n[_++];if(/[
/**
* @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
* Released under MIT license, http://github.com/requirejs/almond/LICENSE
*/
var e,t,f;return function(n){var o,a,r,c,s={},i={},u={},_={},d=Object.prototype.hasOwnProperty,l=[].slice,h=/\.js$/;function m(e,t){return d.call(e,t)}function g(e,t){var f,n,o,a,r,c,s,i,_,d,l,m=t&&t.split("/"),g=u.map,p=g&&g["*"]||{};if(e){for(r=(e=e.split("/")).length-1,u.nodeIdCompat&&h.test(e[r])&&(e[r]=e[r].replace(h,"")),"."===e[0].charAt(0)&&m&&(e=m.slice(0,m.length-1).concat(e)),_=0;_<e.length;_++)if("."===(l=e[_]))e.splice(_,1),_-=1;else if(".."===l){if(0===_||1===_&&".."===e[2]||".."===e[_-1])continue;_>0&&(e.splice(_-1,2),_-=2)}e=e.join("/")}if((m||p)&&g){for(_=(f=e.split("/")).length;_>0;_-=1){if(n=f.slice(0,_).join("/"),m)for(d=m.length;d>0;d-=1)if((o=g[m.slice(0,d).join("/")])&&(o=o[n])){a=o,c=_;break}if(a)break;!s&&p&&p[n]&&(s=p[n],i=_)}!a&&s&&(a=s,c=i),a&&(f.splice(0,c,a),e=f.join("/"))}return e}function p(e,t){return function(){var f=l.call(arguments,0);return"string"!=typeof f[0]&&1===f.length&&f.push(null),a.apply(void 0,f.concat([e,t]))}}function b(e){return function(t){s[e]=t}}function y(e){if(m(i,e)){var t=i[e];delete i[e],_[e]=!0,o.apply(void 0,t)}if(!m(s,e)&&!m(_,e))throw new Error("No "+e);return s[e]}function v(e){var t,f=e?e.indexOf("!"):-1;return f>-1&&(t=e.substring(0,f),e=e.substring(f+1,e.length)),[t,e]}function w(e){return e?v(e):[]}function k(e){return function(){return u&&u.config&&u.config[e]||{}}}r=function(e,t){var f,n,o=v(e),a=o[0],r=t[1];return e=o[1],a&&(f=y(a=g(a,r))),a?e=f&&f.normalize?f.normalize(e,(n=r,function(e){return g(e,n)})):g(e,r):(a=(o=v(e=g(e,r)))[0],e=o[1],a&&(f=y(a))),{f:a?a+"!"+e:e,n:e,pr:a,p:f}},c={require:function(e){return p(e)},exports:function(e){var t=s[e];return void 0!==t?t:s[e]={}},module:function(e){return{id:e,uri:"",exports:s[e],config:k(e)}}},o=function(e,t,f,n){var o,a,u,d,l,h,g,v=[],k=typeof f;if(h=w(n=n||e),"undefined"===k||"function"===k){for(t=!t.length&&f.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(a=(d=r(t[l],h)).f))v[l]=c.require(e);else if("exports"===a)v[l]=c.exports(e),g=!0;else if("module"===a)o=v[l]=c.module(e);else if(m(s,a)||m(i,a)||m(_,a))v[l]=y(a);else{if(!d.p)throw new Error(e+" missing "+a);d.p.load(d.n,p(n,!0),b(a),{}),v[l]=s[a]}u=f?f.apply(s[e],v):void 0,e&&(o&&void 0!==o.exports&&o.exports!==s[e]?s[e]=o.exports:void 0===u&&g||(s[e]=u))}else e&&(s[e]=f)},e=t=a=function(e,t,f,n,s){if("string"==typeof e)return c[e]?c[e](t):y(r(e,w(t)).f);if(!e.splice){if((u=e).deps&&a(u.deps,u.callback),!t)return;t.splice?(e=t,t=f,f=null):e=void 0}return t=t||function(){},"function"==typeof f&&(f=n,n=s),n?o(void 0,e,t,f):setTimeout((function(){o(void 0,e,t,f)}),4),a},a.config=function(e){return a(e)},e._defined=s,(f=function(e,t,f){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(f=t,t=[]),m(s,e)||m(i,e)||(i[e]=[e,t,f])}).amd={jQuery:!0}}(),f("node_modules/almond/almond.js",(function(){})),function(e,t){if("function"!=typeof f||!f.amd)return t(e);f("strophe-polyfill",[],(function(){return t(e)}))}(this,(function(e){Function.prototype.bind||(Function.prototype.bind=function(e){var t=this,f=Array.prototype.slice,n=Array.prototype.concat,o=f.call(arguments,1);return function(){return t.apply(e||this,n.call(o,f.call(arguments,0)))}}),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e){var t=this.length,f=Number(arguments[1])||0;for((f=f<0?Math.ceil(f):Math.floor(f))<0&&(f+=t);f<t;f++)if(f in this&&this[f]===e)return f;return-1}),Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var f,n;if(null===this)throw new TypeError(" this is null or not defined");var o=Object(this),a=o.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(f=t),n=0;n<a;){var r;n in o&&(r=o[n],e.call(f,r,n,o)),n++}});var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.btoa||(e.btoa=function(e){var f,n,o,a,r,c,s,i="",u=0;do{a=(f=e.charCodeAt(u++))>>2,r=(3&f)<<4|(n=e.charCodeAt(u++))>>4,c=(15&n)<<2
var f=e.get("chat_status")||"offline",n=t.get("chat_status")||"offline";if(b.STATUS_WEIGHTS[f]===b.STATUS_WEIGHTS[n]){var o=e.get("fullname").toLowerCase(),a=t.get("fullname").toLowerCase();return o<a?-1:o>a?1:0}return b.STATUS_WEIGHTS[f]<b.STATUS_WEIGHTS[n]?-1:1},onConnected:function(){this.registerRosterHandler(),this.registerRosterXHandler()},registerRosterHandler:function(){b.connection.addHandler(b.roster.onRosterPush.bind(b.roster),i.NS.ROSTER,"iq","set")},registerRosterXHandler:function(){var e=0;b.connection.addHandler((function(t){return window.setTimeout((function(){b.connection.flush(),b.roster.subscribeToSuggestedItems.bind(b.roster)(t)}),e),e+=250*t.querySelectorAll("item").length,!0}),i.NS.ROSTERX,"message",null)},fetchRosterContacts:function(){var e=this;return new t((function(t,f){e.fetch({add:!0,silent:!0,success:function(e){0===e.length?(b.send_initial_presence=!0,b.roster.fetchFromServer().then(t).catch(f)):(b.emit("cachedRoster",e),t())}})}))},subscribeToSuggestedItems:function(e){return f.each(e.querySelectorAll("item"),(function(e){"add"===e.getAttribute("action")&&b.roster.addAndSubscribe(e.getAttribute("jid"),null,b.xmppstatus.get("fullname"))})),!0},isSelf:function(e){return c.isSameBareJID(e,b.connection.jid)},addAndSubscribe:function(e,t,f,n,o){var a=function(e){e instanceof b.RosterContact&&e.subscribe(n)};this.addContact(e,t,f,o).then(a,a)},sendContactAddIQ:function(e,t,n,o,a){t=f.isEmpty(t)?e:t;var r=h({type:"set"}).c("query",{xmlns:i.NS.ROSTER}).c("item",{jid:e,name:t});f.each(n,(function(e){r.c("group").t(e).up()})),b.connection.sendIQ(r,o,a)},addContact:function(e,n,o,a){var r=this;return new t((function(t,c){o=o||[],n=f.isEmpty(n)?e:n,r.sendContactAddIQ(e,n,o,(function(){var c=r.create(f.assignIn({ask:void 0,fullname:n,groups:o,jid:e,requesting:!1,subscription:"none"},a),{sort:!1});t(c)}),(function(e){alert(y("Sorry, there was an error while trying to add %1$s as a contact.",n)),b.log(e,i.LogLevel.ERROR),t(e)}))}))},subscribeBack:function(e){var t=this.get(e);if(t instanceof b.RosterContact)t.authorize().subscribe();else{var f=function(e){e instanceof b.RosterContact&&e.authorize().subscribe()};this.addContact(e,"",[],{subscription:"from"}).then(f,f)}},getNumOnlineContacts:function(){var e=["offline","unavailable"];return b.show_only_online_users&&(e=f.union(e,["dnd","xa","away"])),f.sum(this.models.filter((function(t){return!f.includes(e,t.get("chat_status"))})))},onRosterPush:function(t){var n=t.getAttribute("id"),o=t.getAttribute("from");if(o&&""!==o&&i.getBareJidFromJid(o)!==b.bare_jid)return b.connection.send(h({type:"error",id:n,from:b.connection.jid}).c("error",{type:"cancel"}).c("service-unavailable",{xmlns:i.NS.ROSTER})),!0;b.connection.send(h({type:"result",id:n,from:b.connection.jid}));var a=e('query[xmlns="'.concat(i.NS.ROSTER,'"] item'),t);return f.each(a,this.updateContact.bind(this)),b.emit("rosterPush",t),!0},fetchFromServer:function(){var e=this;return new t((function(t,n){var o=h({type:"get",id:b.connection.getUniqueId("roster")}).c("query",{xmlns:i.NS.ROSTER}),a=f.flow(e.onReceivedFromServer.bind(e),t);return b.connection.sendIQ(o,a,(function(e){var t="Error while trying to fetch roster from the server";b.log(t,i.LogLevel.ERROR),n(new Error(t))}))}))},onReceivedFromServer:function(t){var n=e('query[xmlns="'.concat(i.NS.ROSTER,'"] item'),t);f.each(n,this.updateContact.bind(this)),b.emit("roster",t)},updateContact:function(e){var t=e.getAttribute("jid");if(!this.isSelf(t)){var n=this.get(t),o=e.getAttribute("subscription"),a=e.getAttribute("ask"),r=f.map(e.getElementsByTagName("group"),i.getText);if(n){if("remove"===o)return n.destroy();n.save({subscription:o,ask:a,requesting:null,groups:r})}else{if("none"===o&&null===a||"remove"===o)return;this.create({ask:a,fullname:e.getAttribute("name")||t,groups:r,jid:t,subscription:o},{sort:!1})}}},createRequestingContact:function(e){var t=i.getBareJidFromJid(e.getAttribute("from")),f=e.querySelector('nick[xmlns="'.concat(i.NS.NICK,'"]')),n={jid:t,subscription:"none",ask:null,requesting:!0,fullname:f&&f.textContent||t};this.create
/*!
* Backbone.Overview
*
* Copyright (c) 2018, JC Brand <jc@opkode.com>
* Licensed under the Mozilla Public License (MPL)
*/
function(e,t){"function"==typeof f&&f.amd?f("backbone.overview",["underscore","backbone"],t):t(_||e._,Backbone||e.Backbone)}(this,(function(e,t){"use strict";var f=e.isUndefined(t.NativeView)?t.View:t.NativeView,n=t.Overview=function(t){var n=this;this.views={},this.keys=e.partial(e.keys,this.views),this.getAll=e.partial(e.identity,this.views),this.get=function(e){return n.views[e]},this.xget=function(t){return e.filter(n.views,(function(e,f){return f!==t}))},this.add=function(e,t){return n.views[e]=t,t},this.remove=function(e){void 0===e&&(new f).remove.apply(n);var t=n.views[e];if(t)return delete n.views[e],t.remove(),t},this.removeAll=function(){return e.each(e.keys(n.views),n.remove),n},f.apply(this,Array.prototype.slice.apply(arguments))};return e.each(["all","any","chain","collect","contains","detect","difference","drop","each","every","filter","find","first","foldl","foldr","forEach","head","include","indexOf","initial","inject","invoke","isEmpty","last","lastIndexOf","map","max","min","reduce","reduceRight","reject","rest","sample","select","shuffle","size","some","sortBy","tail","take","toArray","without"],(function(t){n.prototype[t]=function(){var f=Array.prototype.slice.call(arguments);return f.unshift(this.views),e[t].apply(e,f)}})),e.extend(n.prototype,f.prototype),n.extend=f.extend,t.OrderedListView=t.Overview.extend({listItems:"model",sortEvent:"change",listSelector:".ordered-items",ItemView:void 0,initialize:function(){this.sortEventually=e.debounce(this.sortAndPositionAllItems.bind(this),500),this.items=e.get(this,this.listItems),this.items.on("add",this.createItemView,this),this.items.on("add",this.sortEventually,this),this.items.on(this.sortEvent,this.sortEventually,this)},createItemView:function(e){var t=this.get(e.get("id"));return t?(t.model=e,t.initialize()):(t=new this.ItemView({model:e}),this.add(e.get("id"),t)),t.render(),t},sortAndPositionAllItems:function(){var t=this;this.items.sort(),this.items.each((function(f){e.isUndefined(t.get(f.get("id")))&&t.createItemView(f),t.positionItem(f,t.el.querySelector(t.listSelector))}))},positionItem:function(e,t){var f=this.get(e.get("id")),n=this.items.indexOf(e);return 0===n?t.insertAdjacentElement("afterbegin",f.el):n===this.items.length-1?t.insertAdjacentElement("beforeend",f.el):t.querySelector("li:nth-child("+n+")").insertAdjacentElement("afterend",f.el),f}}),t.Overview})),f("converse-chatboxes",["converse-core","backbone.overview"],(function(e){"use strict";var t=e.env,f=t.Backbone,n=t.Promise,o=t.Strophe,a=t.b64_sha1,r=t.moment,c=t.utils,s=t._;return e.plugins.add("converse-chatboxes",{overrides:{disconnect:function(){var e=this.__super__._converse;return e.chatboxviews.closeAllChatBoxes(),this.__super__.disconnect.apply(this,arguments)},logOut:function(){var e=this.__super__._converse;return e.chatboxviews.closeAllChatBoxes(),this.__super__.logOut.apply(this,arguments)},initStatus:function(){var e=this.__super__._converse;return e.chatboxviews.closeAllChatBoxes(),this.__super__.initStatus.apply(this,arguments)},onStatusInitialized:function(){var e=this.__super__._converse;return e.chatboxes.onConnected(),this.__super__.onStatusInitialized.apply(this,arguments)}},initialize:function(){var t=this._converse;t.api.promises.add(["chatBoxesFetched","chatBoxesInitialized"]),t.router.route("converse/chat?jid=:jid",(function(f){if(!c.isValidJID(f))return e.log('Invalid JID "'.concat(f,'" provided in URL fragment'),o.LogLevel.WARN);n.all([t.api.waitUntil("rosterContactsFetched"),t.api.waitUntil("chatBoxesFetched")]).then((function(){t.api.chats.open(f)}))})),t.Message=f.Model.extend({defaults:function(){return{msgid:t.connection.getUniqueId()}}}),t.Messages=f.Collection.extend({model:t.Message,comparator:"time"}),t.ChatBox=f.Model.extend({defaults:{type:"chatbox",show_avatar:!0,bookmarked:!1,chat_state:void 0,num_unread:0,url:""},initialize:function(){this.messages=new t.Messages,this.messages.browserStorage=new f.BrowserStorage[t.message_storage](a("converse.messages".concat(this.get("jid")).concat(t.bare_jid))),this.save({box_id:a(this.get("jid")),time_o
uc_greedy:"1f468-1f3ff-1f692",shortnames:[":man_firefighter_dark_skin_tone:"],category:"people"},":man_mechanic_tone1:":{uc_base:"1f468-1f3fb-1f527",uc_output:"1f468-1f3fb-200d-1f527",uc_match:"1f468-1f3fb-1f527",uc_greedy:"1f468-1f3fb-1f527",shortnames:[":man_mechanic_light_skin_tone:"],category:"people"},":man_mechanic_tone2:":{uc_base:"1f468-1f3fc-1f527",uc_output:"1f468-1f3fc-200d-1f527",uc_match:"1f468-1f3fc-1f527",uc_greedy:"1f468-1f3fc-1f527",shortnames:[":man_mechanic_medium_light_skin_tone:"],category:"people"},":man_mechanic_tone3:":{uc_base:"1f468-1f3fd-1f527",uc_output:"1f468-1f3fd-200d-1f527",uc_match:"1f468-1f3fd-1f527",uc_greedy:"1f468-1f3fd-1f527",shortnames:[":man_mechanic_medium_skin_tone:"],category:"people"},":man_mechanic_tone4:":{uc_base:"1f468-1f3fe-1f527",uc_output:"1f468-1f3fe-200d-1f527",uc_match:"1f468-1f3fe-1f527",uc_greedy:"1f468-1f3fe-1f527",shortnames:[":man_mechanic_medium_dark_skin_tone:"],category:"people"},":man_mechanic_tone5:":{uc_base:"1f468-1f3ff-1f527",uc_output:"1f468-1f3ff-200d-1f527",uc_match:"1f468-1f3ff-1f527",uc_greedy:"1f468-1f3ff-1f527",shortnames:[":man_mechanic_dark_skin_tone:"],category:"people"},":man_office_worker_tone1:":{uc_base:"1f468-1f3fb-1f4bc",uc_output:"1f468-1f3fb-200d-1f4bc",uc_match:"1f468-1f3fb-1f4bc",uc_greedy:"1f468-1f3fb-1f4bc",shortnames:[":man_office_worker_light_skin_tone:"],category:"people"},":man_office_worker_tone2:":{uc_base:"1f468-1f3fc-1f4bc",uc_output:"1f468-1f3fc-200d-1f4bc",uc_match:"1f468-1f3fc-1f4bc",uc_greedy:"1f468-1f3fc-1f4bc",shortnames:[":man_office_worker_medium_light_skin_tone:"],category:"people"},":man_office_worker_tone3:":{uc_base:"1f468-1f3fd-1f4bc",uc_output:"1f468-1f3fd-200d-1f4bc",uc_match:"1f468-1f3fd-1f4bc",uc_greedy:"1f468-1f3fd-1f4bc",shortnames:[":man_office_worker_medium_skin_tone:"],category:"people"},":man_office_worker_tone4:":{uc_base:"1f468-1f3fe-1f4bc",uc_output:"1f468-1f3fe-200d-1f4bc",uc_match:"1f468-1f3fe-1f4bc",uc_greedy:"1f468-1f3fe-1f4bc",shortnames:[":man_office_worker_medium_dark_skin_tone:"],category:"people"},":man_office_worker_tone5:":{uc_base:"1f468-1f3ff-1f4bc",uc_output:"1f468-1f3ff-200d-1f4bc",uc_match:"1f468-1f3ff-1f4bc",uc_greedy:"1f468-1f3ff-1f4bc",shortnames:[":man_office_worker_dark_skin_tone:"],category:"people"},":man_scientist_tone1:":{uc_base:"1f468-1f3fb-1f52c",uc_output:"1f468-1f3fb-200d-1f52c",uc_match:"1f468-1f3fb-1f52c",uc_greedy:"1f468-1f3fb-1f52c",shortnames:[":man_scientist_light_skin_tone:"],category:"people"},":man_scientist_tone2:":{uc_base:"1f468-1f3fc-1f52c",uc_output:"1f468-1f3fc-200d-1f52c",uc_match:"1f468-1f3fc-1f52c",uc_greedy:"1f468-1f3fc-1f52c",shortnames:[":man_scientist_medium_light_skin_tone:"],category:"people"},":man_scientist_tone3:":{uc_base:"1f468-1f3fd-1f52c",uc_output:"1f468-1f3fd-200d-1f52c",uc_match:"1f468-1f3fd-1f52c",uc_greedy:"1f468-1f3fd-1f52c",shortnames:[":man_scientist_medium_skin_tone:"],category:"people"},":man_scientist_tone4:":{uc_base:"1f468-1f3fe-1f52c",uc_output:"1f468-1f3fe-200d-1f52c",uc_match:"1f468-1f3fe-1f52c",uc_greedy:"1f468-1f3fe-1f52c",shortnames:[":man_scientist_medium_dark_skin_tone:"],category:"people"},":man_scientist_tone5:":{uc_base:"1f468-1f3ff-1f52c",uc_output:"1f468-1f3ff-200d-1f52c",uc_match:"1f468-1f3ff-1f52c",uc_greedy:"1f468-1f3ff-1f52c",shortnames:[":man_scientist_dark_skin_tone:"],category:"people"},":man_singer_tone1:":{uc_base:"1f468-1f3fb-1f3a4",uc_output:"1f468-1f3fb-200d-1f3a4",uc_match:"1f468-1f3fb-1f3a4",uc_greedy:"1f468-1f3fb-1f3a4",shortnames:[":man_singer_light_skin_tone:"],category:"people"},":man_singer_tone2:":{uc_base:"1f468-1f3fc-1f3a4",uc_output:"1f468-1f3fc-200d-1f3a4",uc_match:"1f468-1f3fc-1f3a4",uc_greedy:"1f468-1f3fc-1f3a4",shortnames:[":man_singer_medium_light_skin_tone:"],category:"people"},":man_singer_tone3:":{uc_base:"1f468-1f3fd-1f3a4",uc_output:"1f468-1f3fd-200d-1f3a4",uc_match:"1f468-1f3fd-1f3a4",uc_greedy:"1f468-1f3fd-1f3a4",shortnames:[":man_singer_medium_skin_tone:"],category:"people"},":man_singer_tone4:":{uc_base:"1f468-1f3fe-1f3a4",uc_output:"1f468-1f3fe-200d-1f3a4",uc_match:"1f468-1f3f
category:"people"},":person_frowning_tone2:":{uc_base:"1f64d-1f3fc",uc_output:"1f64d-1f3fc",uc_match:"1f64d-1f3fc",uc_greedy:"1f64d-1f3fc",shortnames:[],category:"people"},":person_frowning_tone3:":{uc_base:"1f64d-1f3fd",uc_output:"1f64d-1f3fd",uc_match:"1f64d-1f3fd",uc_greedy:"1f64d-1f3fd",shortnames:[],category:"people"},":person_frowning_tone4:":{uc_base:"1f64d-1f3fe",uc_output:"1f64d-1f3fe",uc_match:"1f64d-1f3fe",uc_greedy:"1f64d-1f3fe",shortnames:[],category:"people"},":person_frowning_tone5:":{uc_base:"1f64d-1f3ff",uc_output:"1f64d-1f3ff",uc_match:"1f64d-1f3ff",uc_greedy:"1f64d-1f3ff",shortnames:[],category:"people"},":person_gesturing_no_tone1:":{uc_base:"1f645-1f3fb",uc_output:"1f645-1f3fb",uc_match:"1f645-1f3fb",uc_greedy:"1f645-1f3fb",shortnames:[":no_good_tone1:"],category:"people"},":person_gesturing_no_tone2:":{uc_base:"1f645-1f3fc",uc_output:"1f645-1f3fc",uc_match:"1f645-1f3fc",uc_greedy:"1f645-1f3fc",shortnames:[":no_good_tone2:"],category:"people"},":person_gesturing_no_tone3:":{uc_base:"1f645-1f3fd",uc_output:"1f645-1f3fd",uc_match:"1f645-1f3fd",uc_greedy:"1f645-1f3fd",shortnames:[":no_good_tone3:"],category:"people"},":person_gesturing_no_tone4:":{uc_base:"1f645-1f3fe",uc_output:"1f645-1f3fe",uc_match:"1f645-1f3fe",uc_greedy:"1f645-1f3fe",shortnames:[":no_good_tone4:"],category:"people"},":person_gesturing_no_tone5:":{uc_base:"1f645-1f3ff",uc_output:"1f645-1f3ff",uc_match:"1f645-1f3ff",uc_greedy:"1f645-1f3ff",shortnames:[":no_good_tone5:"],category:"people"},":person_gesturing_ok_tone1:":{uc_base:"1f646-1f3fb",uc_output:"1f646-1f3fb",uc_match:"1f646-1f3fb",uc_greedy:"1f646-1f3fb",shortnames:[":ok_woman_tone1:"],category:"people"},":person_gesturing_ok_tone2:":{uc_base:"1f646-1f3fc",uc_output:"1f646-1f3fc",uc_match:"1f646-1f3fc",uc_greedy:"1f646-1f3fc",shortnames:[":ok_woman_tone2:"],category:"people"},":person_gesturing_ok_tone3:":{uc_base:"1f646-1f3fd",uc_output:"1f646-1f3fd",uc_match:"1f646-1f3fd",uc_greedy:"1f646-1f3fd",shortnames:[":ok_woman_tone3:"],category:"people"},":person_gesturing_ok_tone4:":{uc_base:"1f646-1f3fe",uc_output:"1f646-1f3fe",uc_match:"1f646-1f3fe",uc_greedy:"1f646-1f3fe",shortnames:[":ok_woman_tone4:"],category:"people"},":person_gesturing_ok_tone5:":{uc_base:"1f646-1f3ff",uc_output:"1f646-1f3ff",uc_match:"1f646-1f3ff",uc_greedy:"1f646-1f3ff",shortnames:[":ok_woman_tone5:"],category:"people"},":person_getting_haircut_tone1:":{uc_base:"1f487-1f3fb",uc_output:"1f487-1f3fb",uc_match:"1f487-1f3fb",uc_greedy:"1f487-1f3fb",shortnames:[":haircut_tone1:"],category:"people"},":person_getting_haircut_tone2:":{uc_base:"1f487-1f3fc",uc_output:"1f487-1f3fc",uc_match:"1f487-1f3fc",uc_greedy:"1f487-1f3fc",shortnames:[":haircut_tone2:"],category:"people"},":person_getting_haircut_tone3:":{uc_base:"1f487-1f3fd",uc_output:"1f487-1f3fd",uc_match:"1f487-1f3fd",uc_greedy:"1f487-1f3fd",shortnames:[":haircut_tone3:"],category:"people"},":person_getting_haircut_tone4:":{uc_base:"1f487-1f3fe",uc_output:"1f487-1f3fe",uc_match:"1f487-1f3fe",uc_greedy:"1f487-1f3fe",shortnames:[":haircut_tone4:"],category:"people"},":person_getting_haircut_tone5:":{uc_base:"1f487-1f3ff",uc_output:"1f487-1f3ff",uc_match:"1f487-1f3ff",uc_greedy:"1f487-1f3ff",shortnames:[":haircut_tone5:"],category:"people"},":person_getting_massage_tone1:":{uc_base:"1f486-1f3fb",uc_output:"1f486-1f3fb",uc_match:"1f486-1f3fb",uc_greedy:"1f486-1f3fb",shortnames:[":massage_tone1:"],category:"people"},":person_getting_massage_tone2:":{uc_base:"1f486-1f3fc",uc_output:"1f486-1f3fc",uc_match:"1f486-1f3fc",uc_greedy:"1f486-1f3fc",shortnames:[":massage_tone2:"],category:"people"},":person_getting_massage_tone3:":{uc_base:"1f486-1f3fd",uc_output:"1f486-1f3fd",uc_match:"1f486-1f3fd",uc_greedy:"1f486-1f3fd",shortnames:[":massage_tone3:"],category:"people"},":person_getting_massage_tone4:":{uc_base:"1f486-1f3fe",uc_output:"1f486-1f3fe",uc_match:"1f486-1f3fe",uc_greedy:"1f486-1f3fe",shortnames:[":massage_tone4:"],category:"people"},":person_getting_massage_tone5:":{uc_base:"1f486-1f3ff",uc_output:"1f486-1f3ff",uc_match:"1f486-1f3ff",uc_greedy:"1f486-1f3ff"
uc_output:"1f383",uc_match:"1f383",uc_greedy:"1f383",shortnames:[],category:"people"},":japan:":{uc_base:"1f5fe",uc_output:"1f5fe",uc_match:"1f5fe",uc_greedy:"1f5fe",shortnames:[],category:"travel"},":japanese_castle:":{uc_base:"1f3ef",uc_output:"1f3ef",uc_match:"1f3ef",uc_greedy:"1f3ef",shortnames:[],category:"travel"},":japanese_goblin:":{uc_base:"1f47a",uc_output:"1f47a",uc_match:"1f47a",uc_greedy:"1f47a",shortnames:[],category:"people"},":japanese_ogre:":{uc_base:"1f479",uc_output:"1f479",uc_match:"1f479",uc_greedy:"1f479",shortnames:[],category:"people"},":jeans:":{uc_base:"1f456",uc_output:"1f456",uc_match:"1f456",uc_greedy:"1f456",shortnames:[],category:"people"},":joy:":{uc_base:"1f602",uc_output:"1f602",uc_match:"1f602",uc_greedy:"1f602",shortnames:[],category:"people"},":joy_cat:":{uc_base:"1f639",uc_output:"1f639",uc_match:"1f639",uc_greedy:"1f639",shortnames:[],category:"people"},":kaaba:":{uc_base:"1f54b",uc_output:"1f54b",uc_match:"1f54b",uc_greedy:"1f54b",shortnames:[],category:"travel"},":key:":{uc_base:"1f511",uc_output:"1f511",uc_match:"1f511",uc_greedy:"1f511",shortnames:[],category:"objects"},":keycap_ten:":{uc_base:"1f51f",uc_output:"1f51f",uc_match:"1f51f",uc_greedy:"1f51f",shortnames:[],category:"symbols"},":kimono:":{uc_base:"1f458",uc_output:"1f458",uc_match:"1f458",uc_greedy:"1f458",shortnames:[],category:"people"},":kiss:":{uc_base:"1f48b",uc_output:"1f48b",uc_match:"1f48b",uc_greedy:"1f48b",shortnames:[],category:"people"},":kissing:":{uc_base:"1f617",uc_output:"1f617",uc_match:"1f617",uc_greedy:"1f617",shortnames:[],category:"people"},":kissing_cat:":{uc_base:"1f63d",uc_output:"1f63d",uc_match:"1f63d",uc_greedy:"1f63d",shortnames:[],category:"people"},":kissing_closed_eyes:":{uc_base:"1f61a",uc_output:"1f61a",uc_match:"1f61a",uc_greedy:"1f61a",shortnames:[],category:"people"},":kissing_heart:":{uc_base:"1f618",uc_output:"1f618",uc_match:"1f618",uc_greedy:"1f618",shortnames:[],category:"people"},":kissing_smiling_eyes:":{uc_base:"1f619",uc_output:"1f619",uc_match:"1f619",uc_greedy:"1f619",shortnames:[],category:"people"},":kiwi:":{uc_base:"1f95d",uc_output:"1f95d",uc_match:"1f95d",uc_greedy:"1f95d",shortnames:[":kiwifruit:"],category:"food"},":knife:":{uc_base:"1f52a",uc_output:"1f52a",uc_match:"1f52a",uc_greedy:"1f52a",shortnames:[],category:"objects"},":koala:":{uc_base:"1f428",uc_output:"1f428",uc_match:"1f428",uc_greedy:"1f428",shortnames:[],category:"nature"},":koko:":{uc_base:"1f201",uc_output:"1f201",uc_match:"1f201",uc_greedy:"1f201",shortnames:[],category:"symbols"},":large_blue_diamond:":{uc_base:"1f537",uc_output:"1f537",uc_match:"1f537",uc_greedy:"1f537",shortnames:[],category:"symbols"},":large_orange_diamond:":{uc_base:"1f536",uc_output:"1f536",uc_match:"1f536",uc_greedy:"1f536",shortnames:[],category:"symbols"},":last_quarter_moon:":{uc_base:"1f317",uc_output:"1f317",uc_match:"1f317",uc_greedy:"1f317",shortnames:[],category:"nature"},":last_quarter_moon_with_face:":{uc_base:"1f31c",uc_output:"1f31c",uc_match:"1f31c",uc_greedy:"1f31c",shortnames:[],category:"nature"},":laughing:":{uc_base:"1f606",uc_output:"1f606",uc_match:"1f606",uc_greedy:"1f606",shortnames:[":satisfied:"],category:"people"},":leaves:":{uc_base:"1f343",uc_output:"1f343",uc_match:"1f343",uc_greedy:"1f343",shortnames:[],category:"nature"},":ledger:":{uc_base:"1f4d2",uc_output:"1f4d2",uc_match:"1f4d2",uc_greedy:"1f4d2",shortnames:[],category:"objects"},":left_facing_fist:":{uc_base:"1f91b",uc_output:"1f91b",uc_match:"1f91b",uc_greedy:"1f91b",shortnames:[":left_fist:"],category:"people"},":left_luggage:":{uc_base:"1f6c5",uc_output:"1f6c5",uc_match:"1f6c5",uc_greedy:"1f6c5",shortnames:[],category:"symbols"},":lemon:":{uc_base:"1f34b",uc_output:"1f34b",uc_match:"1f34b",uc_greedy:"1f34b",shortnames:[],category:"food"},":leopard:":{uc_base:"1f406",uc_output:"1f406",uc_match:"1f406",uc_greedy:"1f406",shortnames:[],category:"nature"},":light_rail:":{uc_base:"1f688",uc_output:"1f688",uc_match:"1f688",uc_greedy:"1f688",shortnames:[],category:"travel"},":link:":{uc_base:"1f517",uc_output:"1f517",uc_match:"1f517",uc_greedy:
"🕴️🏼":"1f574-1f3fc","🕴️🏽":"1f574-1f3fd","🕴️🏾":"1f574-1f3fe","🕴️🏿":"1f574-1f3ff","🕵️🏻":"1f575-1f3fb","🕵️🏼":"1f575-1f3fc","🕵️🏽":"1f575-1f3fd","🕵️🏾":"1f575-1f3fe","🕵️🏿":"1f575-1f3ff","🖐️🏻":"1f590-1f3fb","🖐️🏼":"1f590-1f3fc","🖐️🏽":"1f590-1f3fd","🖐️🏾":"1f590-1f3fe","🖐️🏿":"1f590-1f3ff","🏳‍🌈":"1f3f3-1f308","🏳️🌈":"1f3f3-1f308","👯‍♂":"1f46f-2642","👯‍♀":"1f46f-2640","🤼‍♂":"1f93c-2642","🤼‍♀":"1f93c-2640","🤹‍♂":"1f939-2642","🤹‍♀":"1f939-2640","🤾‍♂":"1f93e-2642","🤾‍♀":"1f93e-2640","🤽‍♂":"1f93d-2642","🤽‍♀":"1f93d-2640","🤸‍♂":"1f938-2642","🤸‍♀":"1f938-2640","🚶‍♂":"1f6b6-2642","🚶‍♀":"1f6b6-2640","🚵‍♂":"1f6b5-2642","🚵‍♀":"1f6b5-2640","🚴‍♂":"1f6b4-2642","🚴‍♀":"1f6b4-2640","🚣‍♂":"1f6a3-2642","🚣‍♀":"1f6a3-2640","🏊‍♂":"1f3ca-2642","🏊‍♀":"1f3ca-2640","🏄‍♂":"1f3c4-2642","🏄‍♀":"1f3c4-2640","🏃‍♂":"1f3c3-2642","🏃‍♀":"1f3c3-2640","🤷‍♂":"1f937-2642","🤷‍♀":"1f937-2640","🤦‍♂":"1f926-2642","🤦‍♀":"1f926-2640","🙎‍♂":"1f64e-2642","🙎‍♀":"1f64e-2640","🙍‍♂":"1f64d-2642","🙍‍♀":"1f64d-2640","🙋‍♂":"1f64b-2642","🙋‍♀":"1f64b-2640","🙇‍♂":"1f647-2642","🙇‍♀":"1f647-2640","🙆‍♂":"1f646-2642","🙆‍♀":"1f646-2640","🙅‍♂":"1f645-2642","🙅‍♀":"1f645-2640","💇‍♂":"1f487-2642","💇‍♀":"1f487-2640","💆‍♂":"1f486-2642","💆‍♀":"1f486-2640","💁‍♂":"1f481-2642","💁‍♀":"1f481-2640","👱‍♂":"1f471-2642","👱‍♀":"1f471-2640","👳‍♂":"1f473-2642","👳‍♀":"1f473-2640","💂‍♂":"1f482-2642","💂‍♀":"1f482-2640","👷‍♂":"1f477-2642","👷‍♀":"1f477-2640","👮‍♂":"1f46e-2642","👮‍♀":"1f46e-2640","👨‍⚕":"1f468-2695","👩‍⚕":"1f469-2695","👨‍⚖":"1f468-2696","👩‍⚖":"1f469-2696","👨‍✈":"1f468-2708","👩‍✈":"1f469-2708","☝️🏻":"261d-1f3fb","☝️🏼":"261d-1f3fc","☝️🏽":"261d-1f3fd","☝️🏾":"261d-1f3fe","☝️🏿":"261d-1f3ff","⛹️🏻":"26f9-1f3fb","⛹️🏼":"26f9-1f3fc","⛹️🏽":"26f9-1f3fd","⛹️🏾":"26f9-1f3fe","⛹️🏿":"26f9-1f3ff","✌️🏻":"270c-1f3fb","✌️🏼":"270c-1f3fc","✌️🏽":"270c-1f3fd","✌️🏾":"270c-1f3fe","✌️🏿":"270c-1f3ff","✍️🏻":"270d-1f3fb","✍️🏼":"270d-1f3fc","✍️🏽":"270d-1f3fd","✍️🏾":"270d-1f3fe","✍️🏿":"270d-1f3ff","👨⚕️":"1f468-2695","👨⚖️":"1f468-2696","👨✈️":"1f468-2708","👩⚕️":"1f469-2695","👩⚖️":"1f469-2696","👩✈️":"1f469-2708","👮♀️":"1f46e-2640","👮♂️":"1f46e-2642","👱♀️":"1f471-2640","👱♂️":"1f471-2642","👳♀️":"1f473-2640","👳♂️":"1f473-2642","👷♀️":"1f477-2640","👷♂️":"1f477-2642","💂♀️":"1f482-2640","💂♂️":"1f482-2642","🕵‍♀":"1f575-2640","🕵‍♂":"1f575-2642","🏃♀️":"1f3c3-2640","🏃♂️":"1f3c3-2642","🏄♀️":"1f3c4-2640","🏄♂️":"1f3c4-2642","🏊♀️":"1f3ca-2640","🏊♂️":"1f3ca-2642","🏋‍♀":"1f3cb-2640","🏋‍♂":"1f3cb-2642","🏌‍♀":"1f3cc-2640","🏌‍♂":"1f3cc-2642","👯♀️":"1f46f-2640","👯♂️":"1f46f-2642","💆♀️":"1f486-2640","💆♂️":"1f486-2642","💇♀️":"1f487-2640","💇♂️":"1f487-2642","🚣♀️":"1f6a3-2640","🚣♂️":"1f6a3-2642","🚴♀️":"1f6b4-2640","🚴♂️":"1f6b4-2642","🚵♀️":"1f6b5-2640","🚵♂️":"1f6b5-2642","🚶♀️":"1f6b6-2640","🚶♂️":"1f6b6-2642","🤸♀️":"1f938-2640","🤸♂️":"1f938-2642","🤹♀️":"1f939-2640","🤹♂️":"1f939-2642","🤼♀️":"1f93c-2640","🤼♂️":"1f93c-2642","🤽♀️":"1f93d-2640","🤽♂️":"1f93d-2642","🤾♀️":"1f93e-2640","🤾♂️":"1f93e-2642","💁♀️":"1f481-2640","💁♂️":"1f481-2642","🙅♀️":"1f645-2640","🙅♂️":"1f645-2642","🙆<EFBFBD><EFBFBD>
var f="",n=e.escape;return Array.prototype.join,f+='<div id="converse-login-panel" class="controlbox-pane fade-in">\n <form class="pure-form pure-form-stacked converse-form" id="converse-login" method="post">\n <legend>'+n(t.__("Login"))+'</legend>\n <div class="conn-feedback fade-in ',t.conn_feedback_subject||(f+=" hidden "),f+=" "+n(t.conn_feedback_class)+'">\n <p class="feedback-subject">'+n(t.conn_feedback_subject)+'</p>\n <p class="feedback-message ',t.conn_feedback_message||(f+=" hidden "),f+='">'+n(t.conn_feedback_message)+"</p>\n </div>\n ",t.auto_login||"CONNECTING"===t._converse.CONNECTION_STATUS[t.connection_status]?f+='\n <span class="spinner centered"/>\n ':(f+="\n ",t.authentication!=t.LOGIN&&t.authentication!=t.EXTERNAL||(f+="\n <label>"+n(t.__("Jabber ID:"))+'</label>\n <input autofocus required\n type="text"\n name="jid"\n placeholder="'+n(t.placeholder_username)+'">\n ',t.authentication!==t.EXTERNAL&&(f+="\n <label>"+n(t.__("Password:"))+'</label>\n <input required\n type="password" name="password"\n placeholder="'+n(t.__("password"))+'">\n '),f+='\n <input class="pure-button button-primary" type="submit" value="'+n(t.__("Submit"))+'">\n '),f+="\n ",t.authentication==t.ANONYMOUS&&(f+='\n <input class="pure-button button-primary login-anon" type="submit" value="'+n(t.__("Click here to log in anonymously"))+'"/>\n '),f+="\n ",t.authentication==t.PREBIND&&(f+="\n <p>Disconnected.</p>\n "),f+="\n "),f+"\n </form>\n</div>\n"}})),f("tpl!search_contact",["lodash"],(function(e){return function(t){var f="",n=e.escape;return f+'<li>\n <form class="search-xmpp-contact">\n <input type="text"\n name="identifier"\n class="username"\n placeholder="'+n(t.label_contact_name)+'"/>\n <button type="submit">'+n(t.label_search)+"</button>\n </form>\n</li>\n"}})),f("tpl!group_header",["lodash"],(function(e){return function(t){var f="",n=e.escape;return Array.prototype.join,f+='<a href="#" class="group-toggle icon-'+n(t.toggle_state)+'" title="'+n(t.desc_group_toggle)+'">'+n(t.label_group)+'</a>\n<ul class="roster-group-contacts ',t.toggle_state===t._converse.CLOSED&&(f+=" collapsed "),f+'"></ul>\n'}})),f("tpl!pending_contact",["lodash"],(function(e){return function(t){var f="",n=e.escape;return Array.prototype.join,t.allow_chat_pending_contacts&&(f+='\n<a class="open-chat"href="#">\n'),f+='\n<span class="pending-contact-name" title="Name: '+n(t.fullname)+"\nJID: "+n(t.jid)+'">'+n(t.fullname)+"</span> \n",t.allow_chat_pending_contacts&&(f+="\n</a>\n"),f+'\n<a class="remove-xmpp-contact icon-remove" title="'+n(t.desc_remove)+'" href="#"></a>\n'}})),f("tpl!requesting_contact",["lodash"],(function(e){return function(t){var f="",n=e.escape;return Array.prototype.join,t.allow_chat_pending_contacts&&(f+='\n<a class="open-chat"href="#">\n'),f+='\n<span class="req-contact-name" title="Name: '+n(t.fullname)+"\nJID: "+n(t.jid)+'">'+n(t.fullname)+"</span>\n",t.allow_chat_pending_contacts&&(f+="\n</a>\n"),f+'\n<span class="request-actions">\n <a class="accept-xmpp-request icon-checkmark" aria-label="'+n(t.desc_accept)+'" title="'+n(t.desc_accept)+'" href="#"></a>\n <a class="decline-xmpp-request icon-close" aria-label="'+n(t.desc_decline)+'" title="'+n(t.desc_decline)+'" href="#"></a>\n</span>\n'}})),f("tpl!roster",["lodash"],(function(e){return function(e){return'<div class="roster-contacts"></div>\n'}})),f("tpl!roster_filter",["lodash"],(function(e){return function(t){var f="",n=e.escape;return Array.prototype.join,f+="<span ",t.visible||(f+=' class="hidden" '),f+='>\n<form class="pure-form roster-filter-form input-button-group">\n <input value="'+n(t.filter_text)+'"\n class="ros
/*!
* Backbone.OrderedListView
*
* Copyright (c) 2017, JC Brand <jc@opkode.com>
* Licensed under the Mozilla Public License (MPL)
*/
function(e,t){"function"==typeof f&&f.amd?f("backbone.orderedlistview",["underscore","backbone","backbone.overview"],t):t(_||e._,Backbone||e.Backbone)}(this,(function(e,t){"use strict";return t.OrderedListView=t.Overview.extend({listItems:"model",sortEvent:"change",listSelector:".ordered-items",ItemView:void 0,subviewIndex:"id",initialize:function(){this.sortEventually=e.debounce(this.sortAndPositionAllItems.bind(this),500),this.items=e.get(this,this.listItems),this.items.on("add",this.sortAndPositionAllItems,this),this.items.on("remove",this.removeView,this),e.isNil(this.sortEvent)||this.items.on(this.sortEvent,this.sortEventually,this)},createItemView:function(e){var t=this.get(e.get(this.subviewIndex));if(t)t.model=e,t.initialize();else try{t=new this.ItemView({model:e}),this.add(e.get(this.subviewIndex),t)}catch(f){t=new this.ItemView({model:e}),this.add(e.get(this.subviewIndex),t)}return t.render(),t},removeView:function(e){this.remove(e.get(this.subviewIndex))},sortAndPositionAllItems:function(){var t=this;if(this.items.length){this.items.sort();var f=this.el.querySelector(this.listSelector),n=document.createElement("div");f.parentNode.replaceChild(n,f),this.items.each((function(n){var o=t.get(n.get(t.subviewIndex));e.isUndefined(o)&&(o=t.createItemView(n)),f.insertAdjacentElement("beforeend",o.el)})),n.parentNode.replaceChild(f,n)}}}),t.OrderedListView})),function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof f&&f.amd?f("snabbdom",[],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).snabbdom=e()}((function(){return function e(f,n,o){function a(c,s){if(!n[c]){if(!f[c]){var i="function"==typeof t&&t;if(!s&&i)return i(c,!0);if(r)return r(c,!0);var u=new Error("Cannot find module '"+c+"'");throw u.code="MODULE_NOT_FOUND",u}var _=n[c]={exports:{}};f[c][0].call(_.exports,(function(e){return a(f[c][1][e]||e)}),_,_.exports,e,f,n,o)}return n[c].exports}for(var r="function"==typeof t&&t,c=0;c<o.length;c++)a(o[c]);return a}({1:[function(e,t,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var n=e("./vnode"),o=e("./is");function a(e,t,f){var a,r,c,s={};if(void 0!==f?(s=t,o.array(f)?a=f:o.primitive(f)?r=f:f&&f.sel&&(a=[f])):void 0!==t&&(o.array(t)?a=t:o.primitive(t)?r=t:t&&t.sel?a=[t]:s=t),o.array(a))for(c=0;c<a.length;++c)o.primitive(a[c])&&(a[c]=n.vnode(void 0,void 0,void 0,a[c]));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||function e(t,f,n){if(t.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==f)for(var o=0;o<f.length;++o){var a=f[o].data;void 0!==a&&e(a,f[o].children,f[o].sel)}}(s,a,e),n.vnode(e,s,a,r,void 0)}f.h=a,f.default=a},{"./is":3,"./vnode":6}],2:[function(e,t,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.htmlDomApi={createElement:function(e){return document.createElement(e)},createElementNS:function(e,t){return document.createElementNS(e,t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,f){e.insertBefore(t,f)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}},f.default=f.htmlDomApi},{}],3:[function(e,t,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0}),f.array=Array.isArray,f.primitive=function(e){return"string"==typeof e||"number"==typeof e}},{}],4:[function(e,t,f){"use strict";Object.defineProperty(f,"__esModule",{value:!0});var n=e("./vnode"),o=e("./is"),a=e("./htmldomapi");function r(e){return void 0===e}function c(e){return void 0!==e}var s=n.default("",{},[],void 0,void 0);function i(e,t){return e.key===t.key&&e.sel===t
;if(this._xformMode==this._ENC_XFORM_MODE)var n=f.createEncryptor;else n=f.createDecryptor,this._minBufferSize=1;this._mode=n.call(f,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4}),f.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),g=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,f=e.salt;if(f)var n=a.create([1398893684,1701076831]).concat(f).concat(t);else n=t;return n.toString(s)},parse:function(e){var t=s.parse(e),f=t.words;if(1398893684==f[0]&&1701076831==f[1]){var n=a.create(f.slice(2,4));f.splice(0,4),t.sigBytes-=16}return m.create({ciphertext:t,salt:n})}},p=f.SerializableCipher=n.extend({cfg:n.extend({format:g}),encrypt:function(e,t,f,n){n=this.cfg.extend(n);var o=e.createEncryptor(f,n),a=o.finalize(t),r=o.cfg;return m.create({ciphertext:a,key:f,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,f,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(f,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),b=(t.kdf={}).OpenSSL={execute:function(e,t,f,n){n||(n=a.random(8));var o=i.create({keySize:t+f}).compute(e,n),r=a.create(o.words.slice(t),4*f);return o.sigBytes=4*t,m.create({key:o,iv:r,salt:n})}},y=f.PasswordBasedCipher=p.extend({cfg:p.cfg.extend({kdf:b}),encrypt:function(e,t,f,n){var o=(n=this.cfg.extend(n)).kdf.execute(f,e.keySize,e.ivSize);n.iv=o.iv;var a=p.encrypt.call(this,e,t,o.key,n);return a.mixIn(o),a},decrypt:function(e,t,f,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var o=n.kdf.execute(f,e.keySize,e.ivSize,t.salt);return n.iv=o.iv,p.decrypt.call(this,e,t,o.key,n)}})}(),function(){var e=o,t=e.lib.BlockCipher,f=e.algo,n=[],a=[],r=[],c=[],s=[],i=[],u=[],_=[],d=[],l=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var f=0,o=0;for(t=0;t<256;t++){var h=o^o<<1^o<<2^o<<3^o<<4;h=h>>>8^255&h^99,n[f]=h,a[h]=f;var m=e[f],g=e[m],p=e[g],b=257*e[h]^16843008*h;r[f]=b<<24|b>>>8,c[f]=b<<16|b>>>16,s[f]=b<<8|b>>>24,i[f]=b,b=16843009*p^65537*g^257*m^16843008*f,u[h]=b<<24|b>>>8,_[h]=b<<16|b>>>16,d[h]=b<<8|b>>>24,l[h]=b,f?(f=m^e[e[e[p^m]]],o^=e[e[o]]):f=o=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],m=f.AES=t.extend({_doReset:function(){for(var e=this._key,t=e.words,f=e.sigBytes/4,o=4*((this._nRounds=f+6)+1),a=this._keySchedule=[],r=0;r<o;r++)if(r<f)a[r]=t[r];else{var c=a[r-1];r%f?f>6&&r%f==4&&(c=n[c>>>24]<<24|n[c>>>16&255]<<16|n[c>>>8&255]<<8|n[255&c]):(c=n[(c=c<<8|c>>>24)>>>24]<<24|n[c>>>16&255]<<16|n[c>>>8&255]<<8|n[255&c],c^=h[r/f|0]<<24),a[r]=a[r-f]^c}for(var s=this._invKeySchedule=[],i=0;i<o;i++)r=o-i,c=i%4?a[r]:a[r-4],s[i]=i<4||r<=4?c:u[n[c>>>24]]^_[n[c>>>16&255]]^d[n[c>>>8&255]]^l[n[255&c]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,r,c,s,i,n)},decryptBlock:function(e,t){var f=e[t+1];e[t+1]=e[t+3],e[t+3]=f,this._doCryptBlock(e,t,this._invKeySchedule,u,_,d,l,a),f=e[t+1],e[t+1]=e[t+3],e[t+3]=f},_doCryptBlock:function(e,t,f,n,o,a,r,c){for(var s=this._nRounds,i=e[t]^f[0],u=e[t+1]^f[1],_=e[t+2]^f[2],d=e[t+3]^f[3],l=4,h=1;h<s;h++){var m=n[i>>>24]^o[u>>>16&255]^a[_>>>8&255]^r[255&d]^f[l++],g=n[u>>>24]^o[_>>>16&255]^a[d>>>8&255]^r[255&i]^f[l++],p=n[_>>>24]^o[d>>>16&255]^a[i>>>8&255]^r[255&u]^f[l++],b=n[d>>>24]^o[i>>>16&255]^a[u>>>8&255]^r[255&_]^f[l++];i=m,u=g,_=p,d=b}m=(c[i>>>24]<<24|c[u>>>16&255]<<16|c[_>>>8&255]<<8|c[255&d])^f[l++],g=(c[u>>>24]<<24|c[_>>>16&255]<<16|c[d>>>8&255]<<8|c[255&i])^f[l++],p=(c[_>>>24]<<24|c[d>>>16&255]<<16|c[i>>>8&255]<<8|c[255&u])^f[l++],b=(c[d>>>24]<<24|c[i>>>16&255]<<16|c[u>>>8&255]<<8|c[255&_])^f[l++],e[t]=m,e[t+1]=g,e[t+2]=p,e[t+3]=b},keySize:8});e.AES=t._createHelper(m)}(),function(){var e=o,t=e.lib,f=t.WordArray,n=t.Hasher,a=e.algo,r=[],c=a.SHA1=n.extend({_doReset:function(){this._hash=new f.init([
/*!
* EventEmitter v4.2.3 - git.io/ee
* Oliver Caldwell
* MIT license
* @preserve
*/
function(){"use strict";function e(){}var t=e.prototype;function n(e,t){for(var f=e.length;f--;)if(e[f].listener===t)return f;return-1}function o(e){return function(){return this[e].apply(this,arguments)}}t.getListeners=function(e){var t,f,n=this._getEvents();if("object"==typeof e)for(f in t={},n)n.hasOwnProperty(f)&&e.test(f)&&(t[f]=n[f]);else t=n[e]||(n[e]=[]);return t},t.flattenListeners=function(e){var t,f=[];for(t=0;t<e.length;t+=1)f.push(e[t].listener);return f},t.getListenersAsObject=function(e){var t,f=this.getListeners(e);return f instanceof Array&&((t={})[e]=f),t||f},t.addListener=function(e,t){var f,o=this.getListenersAsObject(e),a="object"==typeof t;for(f in o)o.hasOwnProperty(f)&&-1===n(o[f],t)&&o[f].push(a?t:{listener:t,once:!1});return this},t.on=o("addListener"),t.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},t.once=o("addOnceListener"),t.defineEvent=function(e){return this.getListeners(e),this},t.defineEvents=function(e){for(var t=0;t<e.length;t+=1)this.defineEvent(e[t]);return this},t.removeListener=function(e,t){var f,o,a=this.getListenersAsObject(e);for(o in a)a.hasOwnProperty(o)&&-1!==(f=n(a[o],t))&&a[o].splice(f,1);return this},t.off=o("removeListener"),t.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},t.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},t.manipulateListeners=function(e,t,f){var n,o,a=e?this.removeListener:this.addListener,r=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(n=f.length;n--;)a.call(this,t,f[n]);else for(n in t)t.hasOwnProperty(n)&&(o=t[n])&&("function"==typeof o?a.call(this,n,o):r.call(this,n,o));return this},t.removeEvent=function(e){var t,f=typeof e,n=this._getEvents();if("string"===f)delete n[e];else if("object"===f)for(t in n)n.hasOwnProperty(t)&&e.test(t)&&delete n[t];else delete this._events;return this},t.emitEvent=function(e,t){var f,n,o,a=this.getListenersAsObject(e);for(o in a)if(a.hasOwnProperty(o))for(n=a[o].length;n--;)!0===(f=a[o][n]).once&&this.removeListener(e,f.listener),f.listener.apply(this,t||[])===this._getOnceReturnValue()&&this.removeListener(e,f.listener);return this},t.trigger=o("emitEvent"),t.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},t.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},t._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},t._getEvents=function(){return this._events||(this._events={})},"function"==typeof f&&f.amd?f("eventemitter",[],(function(){return e})):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}.call(this),function(e,t){"function"==typeof f&&f.amd?f("otr",["bigint","crypto","eventemitter"],(function(e,f,n){return t.call({BigInt:e,CryptoJS:f,EventEmitter:n,OTR:{},DSA:{}})})):(e.OTR={},e.DSA={},t.call(e))}(this,(function(){return function(){"use strict";var e={N:"FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA237327FFFFFFFFFFFFFFFF",G:"2",MSGSTATE_PLAINTEXT:0,MSGSTATE_ENCRYPTED:1,MSGSTATE_FINISHED:2,AUTHSTATE_NONE:0,AUTHSTATE_AWAITING_DHKEY:1,AUTHSTATE_AWAITING_REVEALSIG:2,AUTHSTATE_AWAITING_SIG:3,WHITESPACE_TAG:" \t \t\t\t\t \t \t \t ",WHITESPACE_TAG_V2:" \t\t \t ",WHITESPACE_TAG_V3:" \t\t \t\t",OTR_TAG:"?OTR",OTR_VERSION_1:"\0",OTR_VERSION_2:"\0",OTR_VERSION_3:"\0",SMPSTATE_EXPECT0:0,SMPSTATE_EXPECT1:1,SMPSTATE_EXPECT2:2,SMPSTATE_EXPECT3:3,SMPSTATE_EXPECT4:4,STATUS_SEND_QUERY:0,STATUS_AKE_INIT:1,STATUS_AKE_SUCCESS:2,STATUS_END_OTR:3};"undefined"!=typeof module&&module.exports?module.exports=e:this.OTR.CONST=e}.call(this),function(){"use strict";var e,f,n={};"undefined"!=typeof module&&module.exports?(module.exports=n={},e=t("../vendor/crypto.js"),f
//# sourceMappingURL=../maps/dist_js/converse.js.map