/**
 * @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
 * Released under MIT license, http://github.com/requirejs/almond/LICENSE
 */

/*!
 * Sizzle CSS Selector Engine v2.2.1
 * http://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2015-10-17
 */

/*!
 * jQuery JavaScript Library v2.2.3
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-04-05T19:26Z
 */

/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright JS Foundation and other contributors <https://js.foundation/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */

/*!
 * jQuery Browser Plugin 0.1.0
 * https://github.com/gabceb/jquery-browser-plugin
 *
 * Original jquery-browser code Copyright 2005, 2015 jQuery Foundation, Inc. and other contributors
 * http://jquery.org/license
 *
 * Modifications Copyright 2015 Gabriel Cebrian
 * https://github.com/gabceb
 *
 * Released under the MIT license
 *
 * Date: 05-07-2015
 */

/*
jed.js
v0.5.0beta

https://github.com/SlexAxton/Jed
-----------
A gettext compatible i18n library for modern JavaScript Applications

by Alex Sexton - AlexSexton [at] gmail - @SlexAxton
WTFPL license for use
Dojo CLA for contributions

Jed offers the entire applicable GNU gettext spec'd set of
functions, but also offers some nicer wrappers around them.
The api for gettext was written for a language with no function
overloading, so Jed allows a little more of that.

Many thanks to Joshua I. Miller - unrtst@cpan.org - who wrote
gettext.js back in 2008. I was able to vet a lot of my ideas
against his. I also made sure Jed passed against his tests
in order to offer easy upgrades -- jsgettext.berlios.de
*/

// Underscore 1.3.0 was used to port and is licensed

/**
   sprintf() for JavaScript 0.7-beta1
   http://www.diveintojavascript.com/projects/javascript-sprintf

   Copyright (c) Alexandru Marasteanu <alexaholic [at) gmail (dot] com>
   All rights reserved.

   Redistribution and use in source and binary forms, with or without
   modification, are permitted provided that the following conditions are met:
       * Redistributions of source code must retain the above copyright
         notice, this list of conditions and the following disclaimer.
       * Redistributions in binary form must reproduce the above copyright
         notice, this list of conditions and the following disclaimer in the
         documentation and/or other materials provided with the distribution.
       * Neither the name of sprintf() for JavaScript nor the
         names of its contributors may be used to endorse or promote products
         derived from this software without specific prior written permission.

   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
   ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   DISCLAIMED. IN NO EVENT SHALL Alexandru Marasteanu BE LIABLE FOR ANY
   DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
   LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */

/**
 * @license text 2.0.15 Copyright jQuery Foundation and other contributors.
 * Released under MIT license, http://github.com/requirejs/text/LICENSE
 */

//! moment.js
//! version : 2.18.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com

/*
    This program is distributed under the terms of the MIT license.
    Please see the LICENSE file for details.

    Copyright 2006-2008, OGG, LLC
*/

/*
 * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
 * in FIPS PUB 180-1
 * Version 2.1a Copyright Paul Johnston 2000 - 2002.
 * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
 * Distributed under the BSD License
 * See http://pajhome.org.uk/crypt/md5 for details.
 */

/*
 * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
 * Digest Algorithm, as defined in RFC 1321.
 * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.
 * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
 * Distributed under the BSD License
 * See http://pajhome.org.uk/crypt/md5 for more info.
 */

/* Lo-Dash Template Loader v1.0.1
 * Copyright 2015, Tim Branyen (@tbranyen).
 * loader.js may be freely distributed under the MIT license.
 */

//     (c) 2010-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
//     Backbone may be freely distributed under the MIT license.
//     For all details and documentation:
//     http://backbonejs.org

/*
  Copyright 2010, François de Metz <francois@2metz.fr>
*/

/*!
 * Backbone.Overview 
 *
 * Copyright (c) 2014, JC Brand <jc@opkode.com>
 * Licensed under the Mozilla Public License (MPL) 
 */

// Converse.js (A browser based XMPP chat client)
// http://conversejs.org
//
// Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
//

/**
 * Simple, lightweight, usable local autocomplete library for modern browsers
 * Because there weren’t enough autocomplete scripts in the world? Because I’m completely insane and have NIH syndrome? Probably both. :P
 * @author Lea Verou http://leaverou.github.io/awesomplete
 * MIT license
 */

/*
* Based on Ping Strophejs plugins (https://github.com/metajack/strophejs-plugins/tree/master/ping)
* This plugin is distributed under the terms of the MIT licence.
* Please see the LICENCE file for details.
*
* Copyright (c) Markus Kohlhase, 2010
* Refactored by Pavel Lang, 2011
* AMD Support added by Thierry
*/

// Converse.js (A browser based XMPP chat client)
// http://conversejs.org
//
// Copyright (c) 2012-2017, JC Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
//

!function(e,n){"function"==typeof define&&define.amd?define([],n):e.converse=n()}(this,function(){var requirejs,require,define;return function(e){function n(e,n){return v.call(e,n)}function t(e,n){var t,i,r,o,s,a,l,u,c,h,d,f,p=n&&n.split("/"),m=g.map,_=m&&m["*"]||{};if(e){for(e=e.split("/"),s=e.length-1,g.nodeIdCompat&&b.test(e[s])&&(e[s]=e[s].replace(b,"")),"."===e[0].charAt(0)&&p&&(f=p.slice(0,p.length-1),e=f.concat(e)),c=0;c<e.length;c++)if(d=e[c],"."===d)e.splice(c,1),c-=1;else if(".."===d){if(0===c||1===c&&".."===e[2]||".."===e[c-1])continue;c>0&&(e.splice(c-1,2),c-=2)}e=e.join("/")}if((p||_)&&m){for(t=e.split("/"),c=t.length;c>0;c-=1){if(i=t.slice(0,c).join("/"),p)for(h=p.length;h>0;h-=1)if(r=m[p.slice(0,h).join("/")],r&&(r=r[i])){o=r,a=c;break}if(o)break;!l&&_&&_[i]&&(l=_[i],u=c)}!o&&l&&(o=l,a=u),o&&(t.splice(0,a,o),e=t.join("/"))}return e}function i(n,t){return function(){var i=y.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),h.apply(e,i.concat([n,t]))}}function r(e){return function(n){return t(n,e)}}function o(e){return function(n){p[e]=n}}function s(t){if(n(m,t)){var i=m[t];delete m[t],_[t]=!0,c.apply(e,i)}if(!n(p,t)&&!n(_,t))throw new Error("No "+t);return p[t]}function a(e){var n,t=e?e.indexOf("!"):-1;return t>-1&&(n=e.substring(0,t),e=e.substring(t+1,e.length)),[n,e]}function l(e){return e?a(e):[]}function u(e){return function(){return g&&g.config&&g.config[e]||{}}}var c,h,d,f,p={},m={},g={},_={},v=Object.prototype.hasOwnProperty,y=[].slice,b=/\.js$/;d=function(e,n){var i,o=a(e),l=o[0],u=n[1];return e=o[1],l&&(l=t(l,u),i=s(l)),l?e=i&&i.normalize?i.normalize(e,r(u)):t(e,u):(e=t(e,u),o=a(e),l=o[0],e=o[1],l&&(i=s(l))),{f:l?l+"!"+e:e,n:e,pr:l,p:i}},f={require:function(e){return i(e)},exports:function(e){var n=p[e];return"undefined"!=typeof n?n:p[e]={}},module:function(e){return{id:e,uri:"",exports:p[e],config:u(e)}}},c=function(t,r,a,u){var c,h,g,v,y,b,w,x=[],S=typeof a;if(u=u||t,b=l(u),"undefined"===S||"function"===S){for(r=!r.length&&a.length?["require","exports","module"]:r,y=0;y<r.length;y+=1)if(v=d(r[y],b),h=v.f,"require"===h)x[y]=f.require(t);else if("exports"===h)x[y]=f.exports(t),w=!0;else if("module"===h)c=x[y]=f.module(t);else if(n(p,h)||n(m,h)||n(_,h))x[y]=s(h);else{if(!v.p)throw new Error(t+" missing "+h);v.p.load(v.n,i(u,!0),o(h),{}),x[y]=p[h]}g=a?a.apply(p[t],x):void 0,t&&(c&&c.exports!==e&&c.exports!==p[t]?p[t]=c.exports:g===e&&w||(p[t]=g))}else t&&(p[t]=a)},requirejs=require=h=function(n,t,i,r,o){if("string"==typeof n)return f[n]?f[n](t):s(d(n,l(t)).f);if(!n.splice){if(g=n,g.deps&&h(g.deps,g.callback),!t)return;t.splice?(n=t,t=i,i=null):n=e}return t=t||function(){},"function"==typeof i&&(i=r,r=o),r?c(e,n,t,i):setTimeout(function(){c(e,n,t,i)},4),h},h.config=function(e){return h(e)},requirejs._defined=p,define=function(e,t,i){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(i=t,t=[]),n(p,e)||n(m,e)||(m[e]=[e,t,i])},define.amd={jQuery:!0}}(),define("almond",function(){}),function(e){function n(e,n,t,i){var r,o,s,a,l,u,h,f,p=n&&n.ownerDocument,m=n?n.nodeType:9;if(t=t||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return t;if(!i&&((n?n.ownerDocument||n:Y)!==D&&E(n),n=n||D,I)){if(11!==m&&(u=_e.exec(e)))if(r=u[1]){if(9===m){if(!(s=n.getElementById(r)))return t;if(s.id===r)return t.push(s),t}else if(p&&(s=p.getElementById(r))&&q(n,s)&&s.id===r)return t.push(s),t}else{if(u[2])return K.apply(t,n.getElementsByTagName(e)),t;if((r=u[3])&&w.getElementsByClassName&&n.getElementsByClassName)return K.apply(t,n.getElementsByClassName(r)),t}if(w.qsa&&!$[e+" "]&&(!L||!L.test(e))){if(1!==m)p=n,f=e;else if("object"!==n.nodeName.toLowerCase()){for((a=n.getAttribute("id"))?a=a.replace(ye,"\\$&"):n.setAttribute("id",a=F),h=k(e),o=h.length,l=de.test(a)?"#"+a:"[id='"+a+"']";o--;)h[o]=l+" "+d(h[o]);f=h.join(","),p=ve.test(e)&&c(n.parentNode)||n}if(f)try{return K.apply(t,p.querySelectorAll(f)),t}catch(e){}finally{a===F&&n.removeAttribute("id")}}}return T(e.replace(ae,"$1"),n,t,i)}function t(){function e(t,i){return n.push(t+" ")>x.cacheLength&&delete e[n.shift()],e[t+" "]=i}var n=[];return e}function i(e){return e[F]=!0,e}function r(e){var n=D.createElement("div");try{return!!e(n)}catch(e){return!1}finally{n.parentNode&&n.parentNode.removeChild(n),n=null}}function o(e,n){for(var t=e.split("|"),i=t.length;i--;)x.attrHandle[t[i]]=n}function s(e,n){var t=n&&e,i=t&&1===e.nodeType&&1===n.nodeType&&(~n.sourceIndex||V)-(~e.sourceIndex||V);if(i)return i;if(t)for(;t=t.nextSibling;)if(t===n)return-1;return e?1:-1}function a(e){return function(n){var t=n.nodeName.toLowerCase();return"input"===t&&n.type===e}}function l(e){return function(n){var t=n.nodeName.toLowerCase();return("input"===t||"button"===t)&&n.type===e}}function u(e){return i(function(n){return n=+n,i(function(t,i){for(var r,o=e([],t.length,n),s=o.length;s--;)t[r=o[s]]&&(t[r]=!(i[r]=t[r]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function h(){}function d(e){for(var n=0,t=e.length,i="";n<t;n++)i+=e[n].value;return i}function f(e,n,t){var i=n.dir,r=t&&"parentNode"===i,o=z++;return n.first?function(n,t,o){for(;n=n[i];)if(1===n.nodeType||r)return e(n,t,o)}:function(n,t,s){var a,l,u,c=[H,o];if(s){for(;n=n[i];)if((1===n.nodeType||r)&&e(n,t,s))return!0}else for(;n=n[i];)if(1===n.nodeType||r){if(u=n[F]||(n[F]={}),l=u[n.uniqueID]||(u[n.uniqueID]={}),(a=l[i])&&a[0]===H&&a[1]===o)return c[2]=a[2];if(l[i]=c,c[2]=e(n,t,s))return!0}}}function p(e){return e.length>1?function(n,t,i){for(var r=e.length;r--;)if(!e[r](n,t,i))return!1;return!0}:e[0]}function m(e,t,i){for(var r=0,o=t.length;r<o;r++)n(e,t[r],i);return i}function g(e,n,t,i,r){for(var o,s=[],a=0,l=e.length,u=null!=n;a<l;a++)(o=e[a])&&(t&&!t(o,i,r)||(s.push(o),u&&n.push(a)));return s}function _(e,n,t,r,o,s){return r&&!r[F]&&(r=_(r)),o&&!o[F]&&(o=_(o,s)),i(function(i,s,a,l){var u,c,h,d=[],f=[],p=s.length,_=i||m(n||"*",a.nodeType?[a]:a,[]),v=!e||!i&&n?_:g(_,d,e,a,l),y=t?o||(i?e:p||r)?[]:s:v;if(t&&t(v,y,a,l),r)for(u=g(y,f),r(u,[],a,l),c=u.length;c--;)(h=u[c])&&(y[f[c]]=!(v[f[c]]=h));if(i){if(o||e){if(o){for(u=[],c=y.length;c--;)(h=y[c])&&u.push(v[c]=h);o(null,y=[],u,l)}for(c=y.length;c--;)(h=y[c])&&(u=o?ee(i,h):d[c])>-1&&(i[u]=!(s[u]=h))}}else y=g(y===s?y.splice(p,y.length):y),o?o(null,s,y,l):K.apply(s,y)})}function v(e){for(var n,t,i,r=e.length,o=x.relative[e[0].type],s=o||x.relative[" "],a=o?1:0,l=f(function(e){return e===n},s,!0),u=f(function(e){return ee(n,e)>-1},s,!0),c=[function(e,t,i){var r=!o&&(i||t!==M)||((n=t).nodeType?l(e,t,i):u(e,t,i));return n=null,r}];a<r;a++)if(t=x.relative[e[a].type])c=[f(p(c),t)];else{if(t=x.filter[e[a].type].apply(null,e[a].matches),t[F]){for(i=++a;i<r&&!x.relative[e[i].type];i++);return _(a>1&&p(c),a>1&&d(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(ae,"$1"),t,a<i&&v(e.slice(a,i)),i<r&&v(e=e.slice(i)),i<r&&d(e))}c.push(t)}return p(c)}function y(e,t){var r=t.length>0,o=e.length>0,s=function(i,s,a,l,u){var c,h,d,f=0,p="0",m=i&&[],_=[],v=M,y=i||o&&x.find.TAG("*",u),b=H+=null==v?1:Math.random()||.1,w=y.length;for(u&&(M=s===D||s||u);p!==w&&null!=(c=y[p]);p++){if(o&&c){for(h=0,s||c.ownerDocument===D||(E(c),a=!I);d=e[h++];)if(d(c,s||D,a)){l.push(c);break}u&&(H=b)}r&&((c=!d&&c)&&f--,i&&m.push(c))}if(f+=p,r&&p!==f){for(h=0;d=t[h++];)d(m,_,s,a);if(i){if(f>0)for(;p--;)m[p]||_[p]||(_[p]=X.call(l));_=g(_)}K.apply(l,_),u&&!i&&_.length>0&&f+t.length>1&&n.uniqueSort(l)}return u&&(H=b,M=v),m};return r?i(s):s}var b,w,x,S,C,k,A,T,M,j,N,E,D,R,I,L,O,P,q,F="sizzle"+1*new Date,Y=e.document,H=0,z=0,B=t(),W=t(),$=t(),U=function(e,n){return e===n&&(N=!0),0},V=1<<31,G={}.hasOwnProperty,J=[],X=J.pop,Q=J.push,K=J.push,Z=J.slice,ee=function(e,n){for(var t=0,i=e.length;t<i;t++)if(e[t]===n)return t;return-1},ne="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",te="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",re="\\["+te+"*("+ie+")(?:"+te+"*([*^$|!~]?=)"+te+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+te+"*\\]",oe=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+re+")*)|.*)\\)|)",se=new RegExp(te+"+","g"),ae=new RegExp("^"+te+"+|((?:^|[^\\\\])(?:\\\\.)*)"+te+"+$","g"),le=new RegExp("^"+te+"*,"+te+"*"),ue=new RegExp("^"+te+"*([>+~]|"+te+")"+te+"*"),ce=new RegExp("="+te+"*([^\\]'\"]*?)"+te+"*\\]","g"),he=new RegExp(oe),de=new RegExp("^"+ie+"$"),fe={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie+"|[*])"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+te+"*(even|odd|(([+-]|)(\\d*)n|)"+te+"*(?:([+-]|)"+te+"*(\\d+)|))"+te+"*\\)|)","i"),bool:new RegExp("^(?:"+ne+")$","i"),needsContext:new RegExp("^"+te+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+te+"*((?:-\\d)?\\d*)"+te+"*\\)|)(?=[^-]|$)","i")},pe=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,_e=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,ye=/'|\\/g,be=new RegExp("\\\\([\\da-f]{1,6}"+te+"?|("+te+")|.)","ig"),we=function(e,n,t){var i="0x"+n-65536;return i!==i||t?n:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},xe=function(){E()};try{K.apply(J=Z.call(Y.childNodes),Y.childNodes),J[Y.childNodes.length].nodeType}catch(e){K={apply:J.length?function(e,n){Q.apply(e,Z.call(n))}:function(e,n){for(var t=e.length,i=0;e[t++]=n[i++];);e.length=t-1}}}w=n.support={},C=n.isXML=function(e){var n=e&&(e.ownerDocument||e).documentElement;return!!n&&"HTML"!==n.nodeName},E=n.setDocument=function(e){var n,t,i=e?e.ownerDocument||e:Y;return i!==D&&9===i.nodeType&&i.documentElement?(D=i,R=D.documentElement,I=!C(D),(t=D.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",xe,!1):t.attachEvent&&t.attachEvent("onunload",xe)),w.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=r(function(e){return e.appendChild(D.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=ge.test(D.getElementsByClassName),w.getById=r(function(e){return R.appendChild(e).id=F,!D.getElementsByName||!D.getElementsByName(F).length}),w.getById?(x.find.ID=function(e,n){if("undefined"!=typeof n.getElementById&&I){var t=n.getElementById(e);return t?[t]:[]}},x.filter.ID=function(e){var n=e.replace(be,we);return function(e){return e.getAttribute("id")===n}}):(delete x.find.ID,x.filter.ID=function(e){var n=e.replace(be,we);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}}),x.find.TAG=w.getElementsByTagName?function(e,n){return"undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(e):w.qsa?n.querySelectorAll(e):void 0}:function(e,n){var t,i=[],r=0,o=n.getElementsByTagName(e);if("*"===e){for(;t=o[r++];)1===t.nodeType&&i.push(t);return i}return o},x.find.CLASS=w.getElementsByClassName&&function(e,n){if("undefined"!=typeof n.getElementsByClassName&&I)return n.getElementsByClassName(e)},O=[],L=[],(w.qsa=ge.test(D.querySelectorAll))&&(r(function(e){R.appendChild(e).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+te+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||L.push("\\["+te+"*(?:value|"+ne+")"),e.querySelectorAll("[id~="+F+"-]").length||L.push("~="),e.querySelectorAll(":checked").length||L.push(":checked"),e.querySelectorAll("a#"+F+"+*").length||L.push(".#.+[+~]")}),r(function(e){var n=D.createElement("input");n.setAttribute("type","hidden"),e.appendChild(n).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&L.push("name"+te+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),L.push(",.*:")})),(w.matchesSelector=ge.test(P=R.matches||R.webkitMatchesSelector||R.mozMatchesSelector||R.oMatchesSelector||R.msMatchesSelector))&&r(function(e){w.disconnectedMatch=P.call(e,"div"),P.call(e,"[s!='']:x"),O.push("!=",oe)}),L=L.length&&new RegExp(L.join("|")),O=O.length&&new RegExp(O.join("|")),n=ge.test(R.compareDocumentPosition),q=n||ge.test(R.contains)?function(e,n){var t=9===e.nodeType?e.documentElement:e,i=n&&n.parentNode;return e===i||!(!i||1!==i.nodeType||!(t.contains?t.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,n){if(n)for(;n=n.parentNode;)if(n===e)return!0;return!1},U=n?function(e,n){if(e===n)return N=!0,0;var t=!e.compareDocumentPosition-!n.compareDocumentPosition;return t?t:(t=(e.ownerDocument||e)===(n.ownerDocument||n)?e.compareDocumentPosition(n):1,1&t||!w.sortDetached&&n.compareDocumentPosition(e)===t?e===D||e.ownerDocument===Y&&q(Y,e)?-1:n===D||n.ownerDocument===Y&&q(Y,n)?1:j?ee(j,e)-ee(j,n):0:4&t?-1:1)}:function(e,n){if(e===n)return N=!0,0;var t,i=0,r=e.parentNode,o=n.parentNode,a=[e],l=[n];if(!r||!o)return e===D?-1:n===D?1:r?-1:o?1:j?ee(j,e)-ee(j,n):0;if(r===o)return s(e,n);for(t=e;t=t.parentNode;)a.unshift(t);for(t=n;t=t.parentNode;)l.unshift(t);for(;a[i]===l[i];)i++;return i?s(a[i],l[i]):a[i]===Y?-1:l[i]===Y?1:0},D):D},n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){if((e.ownerDocument||e)!==D&&E(e),t=t.replace(ce,"='$1']"),w.matchesSelector&&I&&!$[t+" "]&&(!O||!O.test(t))&&(!L||!L.test(t)))try{var i=P.call(e,t);if(i||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return n(t,D,null,[e]).length>0},n.contains=function(e,n){return(e.ownerDocument||e)!==D&&E(e),q(e,n)},n.attr=function(e,n){(e.ownerDocument||e)!==D&&E(e);var t=x.attrHandle[n.toLowerCase()],i=t&&G.call(x.attrHandle,n.toLowerCase())?t(e,n,!I):void 0;return void 0!==i?i:w.attributes||!I?e.getAttribute(n):(i=e.getAttributeNode(n))&&i.specified?i.value:null},n.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},n.uniqueSort=function(e){var n,t=[],i=0,r=0;if(N=!w.detectDuplicates,j=!w.sortStable&&e.slice(0),e.sort(U),N){for(;n=e[r++];)n===e[r]&&(i=t.push(r));for(;i--;)e.splice(t[i],1)}return j=null,e},S=n.getText=function(e){var n,t="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)t+=S(e)}else if(3===r||4===r)return e.nodeValue}else for(;n=e[i++];)t+=S(n);return t},x=n.selectors={cacheLength:50,createPseudo:i,match:fe,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(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===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]||n.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]&&n.error(e[0]),e},PSEUDO:function(e){var n,t=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":t&&he.test(t)&&(n=k(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(e[0]=e[0].slice(0,n),e[2]=t.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var n=e.replace(be,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===n}},CLASS:function(e){var n=B[e+" "];return n||(n=new RegExp("(^|"+te+")"+e+"("+te+"|$)"))&&B(e,function(e){return n.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(r){var o=n.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===i:"!="===t?o!==i:"^="===t?i&&0===o.indexOf(i):"*="===t?i&&o.indexOf(i)>-1:"$="===t?i&&o.slice(-i.length)===i:"~="===t?(" "+o.replace(se," ")+" ").indexOf(i)>-1:"|="===t&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,n,t,i,r){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===n;return 1===i&&0===r?function(e){return!!e.parentNode}:function(n,t,l){var u,c,h,d,f,p,m=o!==s?"nextSibling":"previousSibling",g=n.parentNode,_=a&&n.nodeName.toLowerCase(),v=!l&&!a,y=!1;if(g){if(o){for(;m;){for(d=n;d=d[m];)if(a?d.nodeName.toLowerCase()===_:1===d.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&v){for(d=g,h=d[F]||(d[F]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),u=c[e]||[],f=u[0]===H&&u[1],y=f&&u[2],d=f&&g.childNodes[f];d=++f&&d&&d[m]||(y=f=0)||p.pop();)if(1===d.nodeType&&++y&&d===n){c[e]=[H,f,y];break}}else if(v&&(d=n,h=d[F]||(d[F]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),u=c[e]||[],f=u[0]===H&&u[1],y=f),y===!1)for(;(d=++f&&d&&d[m]||(y=f=0)||p.pop())&&((a?d.nodeName.toLowerCase()!==_:1!==d.nodeType)||!++y||(v&&(h=d[F]||(d[F]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),c[e]=[H,y]),d!==n)););return y-=r,y===i||y%i===0&&y/i>=0}}},PSEUDO:function(e,t){var r,o=x.pseudos[e]||x.setFilters[e.toLowerCase()]||n.error("unsupported pseudo: "+e);return o[F]?o(t):o.length>1?(r=[e,e,"",t],x.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,n){for(var i,r=o(e,t),s=r.length;s--;)i=ee(e,r[s]),e[i]=!(n[i]=r[s])}):function(e){return o(e,0,r)}):o}},pseudos:{not:i(function(e){var n=[],t=[],r=A(e.replace(ae,"$1"));return r[F]?i(function(e,n,t,i){for(var o,s=r(e,null,i,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(n[a]=o))}):function(e,i,o){return n[0]=e,r(n,null,o,t),n[0]=null,!t.pop()}}),has:i(function(e){return function(t){return n(e,t).length>0}}),contains:i(function(e){return e=e.replace(be,we),function(n){return(n.textContent||n.innerText||S(n)).indexOf(e)>-1}}),lang:i(function(e){return de.test(e||"")||n.error("unsupported lang: "+e),e=e.replace(be,we).toLowerCase(),function(n){var t;do if(t=I?n.lang:n.getAttribute("xml:lang")||n.getAttribute("lang"))return t=t.toLowerCase(),t===e||0===t.indexOf(e+"-");while((n=n.parentNode)&&1===n.nodeType);return!1}}),target:function(n){var t=e.location&&e.location.hash;return t&&t.slice(1)===n.id},root:function(e){return e===R},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.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 n=e.nodeName.toLowerCase();return"input"===n&&!!e.checked||"option"===n&&!!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!x.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return pe.test(e.nodeName)},button:function(e){var n=e.nodeName.toLowerCase();return"input"===n&&"button"===e.type||"button"===n},text:function(e){var n;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(n=e.getAttribute("type"))||"text"===n.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,n){return[n-1]}),eq:u(function(e,n,t){return[t<0?t+n:t]}),even:u(function(e,n){for(var t=0;t<n;t+=2)e.push(t);return e}),odd:u(function(e,n){for(var t=1;t<n;t+=2)e.push(t);return e}),lt:u(function(e,n,t){for(var i=t<0?t+n:t;--i>=0;)e.push(i);return e}),gt:u(function(e,n,t){for(var i=t<0?t+n:t;++i<n;)e.push(i);return e})}},x.pseudos.nth=x.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[b]=a(b);for(b in{submit:!0,reset:!0})x.pseudos[b]=l(b);h.prototype=x.filters=x.pseudos,x.setFilters=new h,k=n.tokenize=function(e,t){var i,r,o,s,a,l,u,c=W[e+" "];if(c)return t?0:c.slice(0);for(a=e,l=[],u=x.preFilter;a;){i&&!(r=le.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=ue.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(ae," ")}),a=a.slice(i.length));for(s in x.filter)!(r=fe[s].exec(a))||u[s]&&!(r=u[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return t?a.length:a?n.error(e):W(e,l).slice(0)},A=n.compile=function(e,n){var t,i=[],r=[],o=$[e+" "];if(!o){for(n||(n=k(e)),t=n.length;t--;)o=v(n[t]),o[F]?i.push(o):r.push(o);o=$(e,y(r,i)),o.selector=e}return o},T=n.select=function(e,n,t,i){var r,o,s,a,l,u="function"==typeof e&&e,h=!i&&k(e=u.selector||e);if(t=t||[],1===h.length){if(o=h[0]=h[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&w.getById&&9===n.nodeType&&I&&x.relative[o[1].type]){if(n=(x.find.ID(s.matches[0].replace(be,we),n)||[])[0],!n)return t;u&&(n=n.parentNode),e=e.slice(o.shift().value.length)}for(r=fe.needsContext.test(e)?0:o.length;r--&&(s=o[r],!x.relative[a=s.type]);)if((l=x.find[a])&&(i=l(s.matches[0].replace(be,we),ve.test(o[0].type)&&c(n.parentNode)||n))){if(o.splice(r,1),e=i.length&&d(o),!e)return K.apply(t,i),t;break}}return(u||A(e,h))(i,n,!I,t,!n||ve.test(e)&&c(n.parentNode)||n),t},w.sortStable=F.split("").sort(U).join("")===F,w.detectDuplicates=!!N,E(),w.sortDetached=r(function(e){return 1&e.compareDocumentPosition(D.createElement("div"))}),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,n,t){if(!t)return e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),w.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,n,t){if(!t&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||o(ne,function(e,n,t){var i;if(!t)return e[n]===!0?n.toLowerCase():(i=e.getAttributeNode(n))&&i.specified?i.value:null}),"function"==typeof define&&define.amd?define("sizzle",[],function(){return n}):"undefined"!=typeof module&&module.exports?module.exports=n:e.Sizzle=n}(window),function(e,n){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?n(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(e)}("undefined"!=typeof window?window:this,function(e,n){function t(e){var n=!!e&&"length"in e&&e.length,t=oe.type(e);return"function"!==t&&!oe.isWindow(e)&&("array"===t||0===n||"number"==typeof n&&n>0&&n-1 in e)}function i(e,n,t){if(oe.isFunction(n))return oe.grep(e,function(e,i){return!!n.call(e,i,e)!==t});if(n.nodeType)return oe.grep(e,function(e){return e===n!==t});if("string"==typeof n){if(me.test(n))return oe.filter(n,e,t);n=oe.filter(n,e)}return oe.grep(e,function(e){return Z.call(n,e)>-1!==t})}function r(e,n){for(;(e=e[n])&&1!==e.nodeType;);return e}function o(e){var n={};return oe.each(e.match(we)||[],function(e,t){n[t]=!0}),n}function s(){J.removeEventListener("DOMContentLoaded",s),e.removeEventListener("load",s),oe.ready()}function a(){this.expando=oe.expando+a.uid++}function l(e,n,t){var i;if(void 0===t&&1===e.nodeType)if(i="data-"+n.replace(Me,"-$&").toLowerCase(),t=e.getAttribute(i),"string"==typeof t){try{t="true"===t||"false"!==t&&("null"===t?null:+t+""===t?+t:Te.test(t)?oe.parseJSON(t):t)}catch(e){}Ae.set(e,n,t)}else t=void 0;return t}function u(e,n,t,i){var r,o=1,s=20,a=i?function(){return i.cur()}:function(){return oe.css(e,n,"")},l=a(),u=t&&t[3]||(oe.cssNumber[n]?"":"px"),c=(oe.cssNumber[n]||"px"!==u&&+l)&&Ne.exec(oe.css(e,n));if(c&&c[3]!==u){u=u||c[3],t=t||[],c=+l||1;do o=o||".5",c/=o,oe.style(e,n,c+u);while(o!==(o=a()/l)&&1!==o&&--s)}return t&&(c=+c||+l||0,r=t[1]?c+(t[1]+1)*t[2]:+t[2],i&&(i.unit=u,i.start=c,i.end=r)),r}function c(e,n){var t="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(n||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(n||"*"):[];return void 0===n||n&&oe.nodeName(e,n)?oe.merge([e],t):t}function h(e,n){for(var t=0,i=e.length;t<i;t++)ke.set(e[t],"globalEval",!n||ke.get(n[t],"globalEval"))}function d(e,n,t,i,r){for(var o,s,a,l,u,d,f=n.createDocumentFragment(),p=[],m=0,g=e.length;m<g;m++)if(o=e[m],o||0===o)if("object"===oe.type(o))oe.merge(p,o.nodeType?[o]:o);else if(Pe.test(o)){for(s=s||f.appendChild(n.createElement("div")),a=(Ie.exec(o)||["",""])[1].toLowerCase(),l=Oe[a]||Oe._default,s.innerHTML=l[1]+oe.htmlPrefilter(o)+l[2],d=l[0];d--;)s=s.lastChild;oe.merge(p,s.childNodes),s=f.firstChild,s.textContent=""}else p.push(n.createTextNode(o));for(f.textContent="",m=0;o=p[m++];)if(i&&oe.inArray(o,i)>-1)r&&r.push(o);else if(u=oe.contains(o.ownerDocument,o),s=c(f.appendChild(o),"script"),u&&h(s),t)for(d=0;o=s[d++];)Le.test(o.type||"")&&t.push(o);return f}function f(){return!0}function p(){return!1}function m(){try{return J.activeElement}catch(e){}}function g(e,n,t,i,r,o){var s,a;if("object"==typeof n){"string"!=typeof t&&(i=i||t,t=void 0);for(a in n)g(e,a,t,i,n[a],o);return e}if(null==i&&null==r?(r=t,i=t=void 0):null==r&&("string"==typeof t?(r=i,i=void 0):(r=i,i=t,t=void 0)),r===!1)r=p;else if(!r)return e;return 1===o&&(s=r,r=function(e){return oe().off(e),s.apply(this,arguments)},r.guid=s.guid||(s.guid=oe.guid++)),e.each(function(){oe.event.add(this,n,r,i,t)})}function _(e,n){return oe.nodeName(e,"table")&&oe.nodeName(11!==n.nodeType?n:n.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function v(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function y(e){var n=We.exec(e.type);return n?e.type=n[1]:e.removeAttribute("type"),e}function b(e,n){var t,i,r,o,s,a,l,u;if(1===n.nodeType){if(ke.hasData(e)&&(o=ke.access(e),s=ke.set(n,o),u=o.events)){delete s.handle,s.events={};for(r in u)for(t=0,i=u[r].length;t<i;t++)oe.event.add(n,r,u[r][t])}Ae.hasData(e)&&(a=Ae.access(e),l=oe.extend({},a),Ae.set(n,l))}}function w(e,n){var t=n.nodeName.toLowerCase();"input"===t&&Re.test(e.type)?n.checked=e.checked:"input"!==t&&"textarea"!==t||(n.defaultValue=e.defaultValue)}function x(e,n,t,i){n=Q.apply([],n);var r,o,s,a,l,u,h=0,f=e.length,p=f-1,m=n[0],g=oe.isFunction(m);if(g||f>1&&"string"==typeof m&&!ie.checkClone&&Be.test(m))return e.each(function(r){var o=e.eq(r);g&&(n[0]=m.call(this,r,o.html())),x(o,n,t,i)});if(f&&(r=d(n,e[0].ownerDocument,!1,e,i),o=r.firstChild,1===r.childNodes.length&&(r=o),o||i)){for(s=oe.map(c(r,"script"),v),a=s.length;h<f;h++)l=r,h!==p&&(l=oe.clone(l,!0,!0),a&&oe.merge(s,c(l,"script"))),t.call(e[h],l,h);if(a)for(u=s[s.length-1].ownerDocument,oe.map(s,y),h=0;h<a;h++)l=s[h],Le.test(l.type||"")&&!ke.access(l,"globalEval")&&oe.contains(u,l)&&(l.src?oe._evalUrl&&oe._evalUrl(l.src):oe.globalEval(l.textContent.replace($e,"")))}return e}function S(e,n,t){for(var i,r=n?oe.filter(n,e):e,o=0;null!=(i=r[o]);o++)t||1!==i.nodeType||oe.cleanData(c(i)),i.parentNode&&(t&&oe.contains(i.ownerDocument,i)&&h(c(i,"script")),i.parentNode.removeChild(i));return e}function C(e,n){var t=oe(n.createElement(e)).appendTo(n.body),i=oe.css(t[0],"display");return t.detach(),i}function k(e){var n=J,t=Ve[e];return t||(t=C(e,n),"none"!==t&&t||(Ue=(Ue||oe("<iframe frameborder='0' width='0' height='0'/>")).appendTo(n.documentElement),n=Ue[0].contentDocument,n.write(),n.close(),t=C(e,n),Ue.detach()),Ve[e]=t),t}function A(e,n,t){var i,r,o,s,a=e.style;return t=t||Xe(e),s=t?t.getPropertyValue(n)||t[n]:void 0,""!==s&&void 0!==s||oe.contains(e.ownerDocument,e)||(s=oe.style(e,n)),t&&!ie.pixelMarginRight()&&Je.test(s)&&Ge.test(n)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=t.width,a.width=i,a.minWidth=r,a.maxWidth=o),void 0!==s?s+"":s}function T(e,n){return{get:function(){return e()?void delete this.get:(this.get=n).apply(this,arguments)}}}function M(e){if(e in rn)return e;for(var n=e[0].toUpperCase()+e.slice(1),t=tn.length;t--;)if(e=tn[t]+n,e in rn)return e}function j(e,n,t){var i=Ne.exec(n);return i?Math.max(0,i[2]-(t||0))+(i[3]||"px"):n}function N(e,n,t,i,r){for(var o=t===(i?"border":"content")?4:"width"===n?1:0,s=0;o<4;o+=2)"margin"===t&&(s+=oe.css(e,t+Ee[o],!0,r)),i?("content"===t&&(s-=oe.css(e,"padding"+Ee[o],!0,r)),"margin"!==t&&(s-=oe.css(e,"border"+Ee[o]+"Width",!0,r))):(s+=oe.css(e,"padding"+Ee[o],!0,r),"padding"!==t&&(s+=oe.css(e,"border"+Ee[o]+"Width",!0,r)));return s}function E(n,t,i){var r=!0,o="width"===t?n.offsetWidth:n.offsetHeight,s=Xe(n),a="border-box"===oe.css(n,"boxSizing",!1,s);if(J.msFullscreenElement&&e.top!==e&&n.getClientRects().length&&(o=Math.round(100*n.getBoundingClientRect()[t])),o<=0||null==o){if(o=A(n,t,s),(o<0||null==o)&&(o=n.style[t]),Je.test(o))return o;r=a&&(ie.boxSizingReliable()||o===n.style[t]),o=parseFloat(o)||0}return o+N(n,t,i||(a?"border":"content"),r,s)+"px"}function D(e,n){for(var t,i,r,o=[],s=0,a=e.length;s<a;s++)i=e[s],i.style&&(o[s]=ke.get(i,"olddisplay"),t=i.style.display,n?(o[s]||"none"!==t||(i.style.display=""),""===i.style.display&&De(i)&&(o[s]=ke.access(i,"olddisplay",k(i.nodeName)))):(r=De(i),"none"===t&&r||ke.set(i,"olddisplay",r?t:oe.css(i,"display"))));for(s=0;s<a;s++)i=e[s],i.style&&(n&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=n?o[s]||"":"none"));return e}function R(e,n,t,i,r){return new R.prototype.init(e,n,t,i,r)}function I(){return e.setTimeout(function(){on=void 0}),on=oe.now()}function L(e,n){var t,i=0,r={height:e};for(n=n?1:0;i<4;i+=2-n)t=Ee[i],r["margin"+t]=r["padding"+t]=e;return n&&(r.opacity=r.width=e),r}function O(e,n,t){for(var i,r=(F.tweeners[n]||[]).concat(F.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(t,n,e))return i}function P(e,n,t){var i,r,o,s,a,l,u,c,h=this,d={},f=e.style,p=e.nodeType&&De(e),m=ke.get(e,"fxshow");t.queue||(a=oe._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,oe.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in n||"width"in n)&&(t.overflow=[f.overflow,f.overflowX,f.overflowY],u=oe.css(e,"display"),c="none"===u?ke.get(e,"olddisplay")||k(e.nodeName):u,"inline"===c&&"none"===oe.css(e,"float")&&(f.display="inline-block")),t.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=t.overflow[0],f.overflowX=t.overflow[1],f.overflowY=t.overflow[2]}));for(i in n)if(r=n[i],an.exec(r)){if(delete n[i],o=o||"toggle"===r,r===(p?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;p=!0}d[i]=m&&m[i]||oe.style(e,i)}else u=void 0;if(oe.isEmptyObject(d))"inline"===("none"===u?k(e.nodeName):u)&&(f.display=u);else{m?"hidden"in m&&(p=m.hidden):m=ke.access(e,"fxshow",{}),o&&(m.hidden=!p),p?oe(e).show():h.done(function(){oe(e).hide()}),h.done(function(){var n;ke.remove(e,"fxshow");for(n in d)oe.style(e,n,d[n])});for(i in d)s=O(p?m[i]:0,i,h),i in m||(m[i]=s.start,p&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}}function q(e,n){var t,i,r,o,s;for(t in e)if(i=oe.camelCase(t),r=n[i],o=e[t],oe.isArray(o)&&(r=o[1],o=e[t]=o[0]),t!==i&&(e[i]=o,delete e[t]),s=oe.cssHooks[i],s&&"expand"in s){o=s.expand(o),delete e[i];for(t in o)t in e||(e[t]=o[t],n[t]=r)}else n[i]=r}function F(e,n,t){var i,r,o=0,s=F.prefilters.length,a=oe.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var n=on||I(),t=Math.max(0,u.startTime+u.duration-n),i=t/u.duration||0,o=1-i,s=0,l=u.tweens.length;s<l;s++)u.tweens[s].run(o);return a.notifyWith(e,[u,o,t]),o<1&&l?t:(a.resolveWith(e,[u]),!1)},u=a.promise({elem:e,props:oe.extend({},n),opts:oe.extend(!0,{specialEasing:{},easing:oe.easing._default},t),originalProperties:n,originalOptions:t,startTime:on||I(),duration:t.duration,tweens:[],createTween:function(n,t){var i=oe.Tween(e,u.opts,n,t,u.opts.specialEasing[n]||u.opts.easing);return u.tweens.push(i),i},stop:function(n){var t=0,i=n?u.tweens.length:0;if(r)return this;for(r=!0;t<i;t++)u.tweens[t].run(1);return n?(a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u,n])):a.rejectWith(e,[u,n]),this}}),c=u.props;for(q(c,u.opts.specialEasing);o<s;o++)if(i=F.prefilters[o].call(u,e,c,u.opts))return oe.isFunction(i.stop)&&(oe._queueHooks(u.elem,u.opts.queue).stop=oe.proxy(i.stop,i)),i;return oe.map(c,O,u),oe.isFunction(u.opts.start)&&u.opts.start.call(e,u),oe.fx.timer(oe.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function Y(e){
return e.getAttribute&&e.getAttribute("class")||""}function H(e){return function(n,t){"string"!=typeof n&&(t=n,n="*");var i,r=0,o=n.toLowerCase().match(we)||[];if(oe.isFunction(t))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(t)):(e[i]=e[i]||[]).push(t)}}function z(e,n,t,i){function r(a){var l;return o[a]=!0,oe.each(e[a]||[],function(e,a){var u=a(n,t,i);return"string"!=typeof u||s||o[u]?s?!(l=u):void 0:(n.dataTypes.unshift(u),r(u),!1)}),l}var o={},s=e===Tn;return r(n.dataTypes[0])||!o["*"]&&r("*")}function B(e,n){var t,i,r=oe.ajaxSettings.flatOptions||{};for(t in n)void 0!==n[t]&&((r[t]?e:i||(i={}))[t]=n[t]);return i&&oe.extend(!0,e,i),e}function W(e,n,t){for(var i,r,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||n.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in t)o=l[0];else{for(r in t){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),t[o]}function $(e,n,t,i){var r,o,s,a,l,u={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)u[s.toLowerCase()]=e.converters[s];for(o=c.shift();o;)if(e.responseFields[o]&&(t[e.responseFields[o]]=n),!l&&i&&e.dataFilter&&(n=e.dataFilter(n,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(s=u[l+" "+o]||u["* "+o],!s)for(r in u)if(a=r.split(" "),a[1]===o&&(s=u[l+" "+a[0]]||u["* "+a[0]])){s===!0?s=u[r]:u[r]!==!0&&(o=a[0],c.unshift(a[1]));break}if(s!==!0)if(s&&e.throws)n=s(n);else try{n=s(n)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:n}}function U(e,n,t,i){var r;if(oe.isArray(n))oe.each(n,function(n,r){t||En.test(e)?i(e,r):U(e+"["+("object"==typeof r&&null!=r?n:"")+"]",r,t,i)});else if(t||"object"!==oe.type(n))i(e,n);else for(r in n)U(e+"["+r+"]",n[r],t,i)}function V(e){return oe.isWindow(e)?e:9===e.nodeType&&e.defaultView}var G=[],J=e.document,X=G.slice,Q=G.concat,K=G.push,Z=G.indexOf,ee={},ne=ee.toString,te=ee.hasOwnProperty,ie={},re="2.2.3",oe=function(e,n){return new oe.fn.init(e,n)},se=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ae=/^-ms-/,le=/-([\da-z])/gi,ue=function(e,n){return n.toUpperCase()};oe.fn=oe.prototype={jquery:re,constructor:oe,selector:"",length:0,toArray:function(){return X.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:X.call(this)},pushStack:function(e){var n=oe.merge(this.constructor(),e);return n.prevObject=this,n.context=this.context,n},each:function(e){return oe.each(this,e)},map:function(e){return this.pushStack(oe.map(this,function(n,t){return e.call(n,t,n)}))},slice:function(){return this.pushStack(X.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var n=this.length,t=+e+(e<0?n:0);return this.pushStack(t>=0&&t<n?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:K,sort:G.sort,splice:G.splice},oe.extend=oe.fn.extend=function(){var e,n,t,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||oe.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(n in e)t=s[n],i=e[n],s!==i&&(u&&i&&(oe.isPlainObject(i)||(r=oe.isArray(i)))?(r?(r=!1,o=t&&oe.isArray(t)?t:[]):o=t&&oe.isPlainObject(t)?t:{},s[n]=oe.extend(u,o,i)):void 0!==i&&(s[n]=i));return s},oe.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"===oe.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var n=e&&e.toString();return!oe.isArray(e)&&n-parseFloat(n)+1>=0},isPlainObject:function(e){var n;if("object"!==oe.type(e)||e.nodeType||oe.isWindow(e))return!1;if(e.constructor&&!te.call(e,"constructor")&&!te.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(n in e);return void 0===n||te.call(e,n)},isEmptyObject:function(e){var n;for(n in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ee[ne.call(e)]||"object":typeof e},globalEval:function(e){var n,t=eval;e=oe.trim(e),e&&(1===e.indexOf("use strict")?(n=J.createElement("script"),n.text=e,J.head.appendChild(n).parentNode.removeChild(n)):t(e))},camelCase:function(e){return e.replace(ae,"ms-").replace(le,ue)},nodeName:function(e,n){return e.nodeName&&e.nodeName.toLowerCase()===n.toLowerCase()},each:function(e,n){var i,r=0;if(t(e))for(i=e.length;r<i&&n.call(e[r],r,e[r])!==!1;r++);else for(r in e)if(n.call(e[r],r,e[r])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(se,"")},makeArray:function(e,n){var i=n||[];return null!=e&&(t(Object(e))?oe.merge(i,"string"==typeof e?[e]:e):K.call(i,e)),i},inArray:function(e,n,t){return null==n?-1:Z.call(n,e,t)},merge:function(e,n){for(var t=+n.length,i=0,r=e.length;i<t;i++)e[r++]=n[i];return e.length=r,e},grep:function(e,n,t){for(var i,r=[],o=0,s=e.length,a=!t;o<s;o++)i=!n(e[o],o),i!==a&&r.push(e[o]);return r},map:function(e,n,i){var r,o,s=0,a=[];if(t(e))for(r=e.length;s<r;s++)o=n(e[s],s,i),null!=o&&a.push(o);else for(s in e)o=n(e[s],s,i),null!=o&&a.push(o);return Q.apply([],a)},guid:1,proxy:function(e,n){var t,i,r;if("string"==typeof n&&(t=e[n],n=e,e=t),oe.isFunction(e))return i=X.call(arguments,2),r=function(){return e.apply(n||this,i.concat(X.call(arguments)))},r.guid=e.guid=e.guid||oe.guid++,r},now:Date.now,support:ie}),"function"==typeof Symbol&&(oe.fn[Symbol.iterator]=G[Symbol.iterator]),oe.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,n){ee["[object "+n+"]"]=n.toLowerCase()});var ce=function(e){function n(e,n,t,i){var r,o,s,a,l,u,h,f,p=n&&n.ownerDocument,m=n?n.nodeType:9;if(t=t||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return t;if(!i&&((n?n.ownerDocument||n:Y)!==D&&E(n),n=n||D,I)){if(11!==m&&(u=_e.exec(e)))if(r=u[1]){if(9===m){if(!(s=n.getElementById(r)))return t;if(s.id===r)return t.push(s),t}else if(p&&(s=p.getElementById(r))&&q(n,s)&&s.id===r)return t.push(s),t}else{if(u[2])return K.apply(t,n.getElementsByTagName(e)),t;if((r=u[3])&&w.getElementsByClassName&&n.getElementsByClassName)return K.apply(t,n.getElementsByClassName(r)),t}if(w.qsa&&!$[e+" "]&&(!L||!L.test(e))){if(1!==m)p=n,f=e;else if("object"!==n.nodeName.toLowerCase()){for((a=n.getAttribute("id"))?a=a.replace(ye,"\\$&"):n.setAttribute("id",a=F),h=k(e),o=h.length,l=de.test(a)?"#"+a:"[id='"+a+"']";o--;)h[o]=l+" "+d(h[o]);f=h.join(","),p=ve.test(e)&&c(n.parentNode)||n}if(f)try{return K.apply(t,p.querySelectorAll(f)),t}catch(e){}finally{a===F&&n.removeAttribute("id")}}}return T(e.replace(ae,"$1"),n,t,i)}function t(){function e(t,i){return n.push(t+" ")>x.cacheLength&&delete e[n.shift()],e[t+" "]=i}var n=[];return e}function i(e){return e[F]=!0,e}function r(e){var n=D.createElement("div");try{return!!e(n)}catch(e){return!1}finally{n.parentNode&&n.parentNode.removeChild(n),n=null}}function o(e,n){for(var t=e.split("|"),i=t.length;i--;)x.attrHandle[t[i]]=n}function s(e,n){var t=n&&e,i=t&&1===e.nodeType&&1===n.nodeType&&(~n.sourceIndex||V)-(~e.sourceIndex||V);if(i)return i;if(t)for(;t=t.nextSibling;)if(t===n)return-1;return e?1:-1}function a(e){return function(n){var t=n.nodeName.toLowerCase();return"input"===t&&n.type===e}}function l(e){return function(n){var t=n.nodeName.toLowerCase();return("input"===t||"button"===t)&&n.type===e}}function u(e){return i(function(n){return n=+n,i(function(t,i){for(var r,o=e([],t.length,n),s=o.length;s--;)t[r=o[s]]&&(t[r]=!(i[r]=t[r]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function h(){}function d(e){for(var n=0,t=e.length,i="";n<t;n++)i+=e[n].value;return i}function f(e,n,t){var i=n.dir,r=t&&"parentNode"===i,o=z++;return n.first?function(n,t,o){for(;n=n[i];)if(1===n.nodeType||r)return e(n,t,o)}:function(n,t,s){var a,l,u,c=[H,o];if(s){for(;n=n[i];)if((1===n.nodeType||r)&&e(n,t,s))return!0}else for(;n=n[i];)if(1===n.nodeType||r){if(u=n[F]||(n[F]={}),l=u[n.uniqueID]||(u[n.uniqueID]={}),(a=l[i])&&a[0]===H&&a[1]===o)return c[2]=a[2];if(l[i]=c,c[2]=e(n,t,s))return!0}}}function p(e){return e.length>1?function(n,t,i){for(var r=e.length;r--;)if(!e[r](n,t,i))return!1;return!0}:e[0]}function m(e,t,i){for(var r=0,o=t.length;r<o;r++)n(e,t[r],i);return i}function g(e,n,t,i,r){for(var o,s=[],a=0,l=e.length,u=null!=n;a<l;a++)(o=e[a])&&(t&&!t(o,i,r)||(s.push(o),u&&n.push(a)));return s}function _(e,n,t,r,o,s){return r&&!r[F]&&(r=_(r)),o&&!o[F]&&(o=_(o,s)),i(function(i,s,a,l){var u,c,h,d=[],f=[],p=s.length,_=i||m(n||"*",a.nodeType?[a]:a,[]),v=!e||!i&&n?_:g(_,d,e,a,l),y=t?o||(i?e:p||r)?[]:s:v;if(t&&t(v,y,a,l),r)for(u=g(y,f),r(u,[],a,l),c=u.length;c--;)(h=u[c])&&(y[f[c]]=!(v[f[c]]=h));if(i){if(o||e){if(o){for(u=[],c=y.length;c--;)(h=y[c])&&u.push(v[c]=h);o(null,y=[],u,l)}for(c=y.length;c--;)(h=y[c])&&(u=o?ee(i,h):d[c])>-1&&(i[u]=!(s[u]=h))}}else y=g(y===s?y.splice(p,y.length):y),o?o(null,s,y,l):K.apply(s,y)})}function v(e){for(var n,t,i,r=e.length,o=x.relative[e[0].type],s=o||x.relative[" "],a=o?1:0,l=f(function(e){return e===n},s,!0),u=f(function(e){return ee(n,e)>-1},s,!0),c=[function(e,t,i){var r=!o&&(i||t!==M)||((n=t).nodeType?l(e,t,i):u(e,t,i));return n=null,r}];a<r;a++)if(t=x.relative[e[a].type])c=[f(p(c),t)];else{if(t=x.filter[e[a].type].apply(null,e[a].matches),t[F]){for(i=++a;i<r&&!x.relative[e[i].type];i++);return _(a>1&&p(c),a>1&&d(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(ae,"$1"),t,a<i&&v(e.slice(a,i)),i<r&&v(e=e.slice(i)),i<r&&d(e))}c.push(t)}return p(c)}function y(e,t){var r=t.length>0,o=e.length>0,s=function(i,s,a,l,u){var c,h,d,f=0,p="0",m=i&&[],_=[],v=M,y=i||o&&x.find.TAG("*",u),b=H+=null==v?1:Math.random()||.1,w=y.length;for(u&&(M=s===D||s||u);p!==w&&null!=(c=y[p]);p++){if(o&&c){for(h=0,s||c.ownerDocument===D||(E(c),a=!I);d=e[h++];)if(d(c,s||D,a)){l.push(c);break}u&&(H=b)}r&&((c=!d&&c)&&f--,i&&m.push(c))}if(f+=p,r&&p!==f){for(h=0;d=t[h++];)d(m,_,s,a);if(i){if(f>0)for(;p--;)m[p]||_[p]||(_[p]=X.call(l));_=g(_)}K.apply(l,_),u&&!i&&_.length>0&&f+t.length>1&&n.uniqueSort(l)}return u&&(H=b,M=v),m};return r?i(s):s}var b,w,x,S,C,k,A,T,M,j,N,E,D,R,I,L,O,P,q,F="sizzle"+1*new Date,Y=e.document,H=0,z=0,B=t(),W=t(),$=t(),U=function(e,n){return e===n&&(N=!0),0},V=1<<31,G={}.hasOwnProperty,J=[],X=J.pop,Q=J.push,K=J.push,Z=J.slice,ee=function(e,n){for(var t=0,i=e.length;t<i;t++)if(e[t]===n)return t;return-1},ne="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",te="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",re="\\["+te+"*("+ie+")(?:"+te+"*([*^$|!~]?=)"+te+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+te+"*\\]",oe=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+re+")*)|.*)\\)|)",se=new RegExp(te+"+","g"),ae=new RegExp("^"+te+"+|((?:^|[^\\\\])(?:\\\\.)*)"+te+"+$","g"),le=new RegExp("^"+te+"*,"+te+"*"),ue=new RegExp("^"+te+"*([>+~]|"+te+")"+te+"*"),ce=new RegExp("="+te+"*([^\\]'\"]*?)"+te+"*\\]","g"),he=new RegExp(oe),de=new RegExp("^"+ie+"$"),fe={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie+"|[*])"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+te+"*(even|odd|(([+-]|)(\\d*)n|)"+te+"*(?:([+-]|)"+te+"*(\\d+)|))"+te+"*\\)|)","i"),bool:new RegExp("^(?:"+ne+")$","i"),needsContext:new RegExp("^"+te+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+te+"*((?:-\\d)?\\d*)"+te+"*\\)|)(?=[^-]|$)","i")},pe=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,_e=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,ye=/'|\\/g,be=new RegExp("\\\\([\\da-f]{1,6}"+te+"?|("+te+")|.)","ig"),we=function(e,n,t){var i="0x"+n-65536;return i!==i||t?n:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},xe=function(){E()};try{K.apply(J=Z.call(Y.childNodes),Y.childNodes),J[Y.childNodes.length].nodeType}catch(e){K={apply:J.length?function(e,n){Q.apply(e,Z.call(n))}:function(e,n){for(var t=e.length,i=0;e[t++]=n[i++];);e.length=t-1}}}w=n.support={},C=n.isXML=function(e){var n=e&&(e.ownerDocument||e).documentElement;return!!n&&"HTML"!==n.nodeName},E=n.setDocument=function(e){var n,t,i=e?e.ownerDocument||e:Y;return i!==D&&9===i.nodeType&&i.documentElement?(D=i,R=D.documentElement,I=!C(D),(t=D.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",xe,!1):t.attachEvent&&t.attachEvent("onunload",xe)),w.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=r(function(e){return e.appendChild(D.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=ge.test(D.getElementsByClassName),w.getById=r(function(e){return R.appendChild(e).id=F,!D.getElementsByName||!D.getElementsByName(F).length}),w.getById?(x.find.ID=function(e,n){if("undefined"!=typeof n.getElementById&&I){var t=n.getElementById(e);return t?[t]:[]}},x.filter.ID=function(e){var n=e.replace(be,we);return function(e){return e.getAttribute("id")===n}}):(delete x.find.ID,x.filter.ID=function(e){var n=e.replace(be,we);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}}),x.find.TAG=w.getElementsByTagName?function(e,n){return"undefined"!=typeof n.getElementsByTagName?n.getElementsByTagName(e):w.qsa?n.querySelectorAll(e):void 0}:function(e,n){var t,i=[],r=0,o=n.getElementsByTagName(e);if("*"===e){for(;t=o[r++];)1===t.nodeType&&i.push(t);return i}return o},x.find.CLASS=w.getElementsByClassName&&function(e,n){if("undefined"!=typeof n.getElementsByClassName&&I)return n.getElementsByClassName(e)},O=[],L=[],(w.qsa=ge.test(D.querySelectorAll))&&(r(function(e){R.appendChild(e).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+te+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||L.push("\\["+te+"*(?:value|"+ne+")"),e.querySelectorAll("[id~="+F+"-]").length||L.push("~="),e.querySelectorAll(":checked").length||L.push(":checked"),e.querySelectorAll("a#"+F+"+*").length||L.push(".#.+[+~]")}),r(function(e){var n=D.createElement("input");n.setAttribute("type","hidden"),e.appendChild(n).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&L.push("name"+te+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),L.push(",.*:")})),(w.matchesSelector=ge.test(P=R.matches||R.webkitMatchesSelector||R.mozMatchesSelector||R.oMatchesSelector||R.msMatchesSelector))&&r(function(e){w.disconnectedMatch=P.call(e,"div"),P.call(e,"[s!='']:x"),O.push("!=",oe)}),L=L.length&&new RegExp(L.join("|")),O=O.length&&new RegExp(O.join("|")),n=ge.test(R.compareDocumentPosition),q=n||ge.test(R.contains)?function(e,n){var t=9===e.nodeType?e.documentElement:e,i=n&&n.parentNode;return e===i||!(!i||1!==i.nodeType||!(t.contains?t.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,n){if(n)for(;n=n.parentNode;)if(n===e)return!0;return!1},U=n?function(e,n){if(e===n)return N=!0,0;var t=!e.compareDocumentPosition-!n.compareDocumentPosition;return t?t:(t=(e.ownerDocument||e)===(n.ownerDocument||n)?e.compareDocumentPosition(n):1,1&t||!w.sortDetached&&n.compareDocumentPosition(e)===t?e===D||e.ownerDocument===Y&&q(Y,e)?-1:n===D||n.ownerDocument===Y&&q(Y,n)?1:j?ee(j,e)-ee(j,n):0:4&t?-1:1)}:function(e,n){if(e===n)return N=!0,0;var t,i=0,r=e.parentNode,o=n.parentNode,a=[e],l=[n];if(!r||!o)return e===D?-1:n===D?1:r?-1:o?1:j?ee(j,e)-ee(j,n):0;if(r===o)return s(e,n);for(t=e;t=t.parentNode;)a.unshift(t);for(t=n;t=t.parentNode;)l.unshift(t);for(;a[i]===l[i];)i++;return i?s(a[i],l[i]):a[i]===Y?-1:l[i]===Y?1:0},D):D},n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){if((e.ownerDocument||e)!==D&&E(e),t=t.replace(ce,"='$1']"),w.matchesSelector&&I&&!$[t+" "]&&(!O||!O.test(t))&&(!L||!L.test(t)))try{var i=P.call(e,t);if(i||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return n(t,D,null,[e]).length>0},n.contains=function(e,n){return(e.ownerDocument||e)!==D&&E(e),q(e,n)},n.attr=function(e,n){(e.ownerDocument||e)!==D&&E(e);var t=x.attrHandle[n.toLowerCase()],i=t&&G.call(x.attrHandle,n.toLowerCase())?t(e,n,!I):void 0;return void 0!==i?i:w.attributes||!I?e.getAttribute(n):(i=e.getAttributeNode(n))&&i.specified?i.value:null},n.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},n.uniqueSort=function(e){var n,t=[],i=0,r=0;if(N=!w.detectDuplicates,j=!w.sortStable&&e.slice(0),e.sort(U),N){for(;n=e[r++];)n===e[r]&&(i=t.push(r));for(;i--;)e.splice(t[i],1)}return j=null,e},S=n.getText=function(e){var n,t="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)t+=S(e)}else if(3===r||4===r)return e.nodeValue}else for(;n=e[i++];)t+=S(n);return t},x=n.selectors={cacheLength:50,createPseudo:i,match:fe,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(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===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]||n.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]&&n.error(e[0]),e},PSEUDO:function(e){var n,t=!e[6]&&e[2];return fe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":t&&he.test(t)&&(n=k(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(e[0]=e[0].slice(0,n),e[2]=t.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var n=e.replace(be,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===n}},CLASS:function(e){var n=B[e+" "];return n||(n=new RegExp("(^|"+te+")"+e+"("+te+"|$)"))&&B(e,function(e){return n.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(r){var o=n.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===i:"!="===t?o!==i:"^="===t?i&&0===o.indexOf(i):"*="===t?i&&o.indexOf(i)>-1:"$="===t?i&&o.slice(-i.length)===i:"~="===t?(" "+o.replace(se," ")+" ").indexOf(i)>-1:"|="===t&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,n,t,i,r){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===n;return 1===i&&0===r?function(e){return!!e.parentNode}:function(n,t,l){var u,c,h,d,f,p,m=o!==s?"nextSibling":"previousSibling",g=n.parentNode,_=a&&n.nodeName.toLowerCase(),v=!l&&!a,y=!1;if(g){if(o){for(;m;){for(d=n;d=d[m];)if(a?d.nodeName.toLowerCase()===_:1===d.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&v){for(d=g,h=d[F]||(d[F]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),u=c[e]||[],f=u[0]===H&&u[1],y=f&&u[2],d=f&&g.childNodes[f];d=++f&&d&&d[m]||(y=f=0)||p.pop();)if(1===d.nodeType&&++y&&d===n){c[e]=[H,f,y];break}}else if(v&&(d=n,h=d[F]||(d[F]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),u=c[e]||[],f=u[0]===H&&u[1],y=f),y===!1)for(;(d=++f&&d&&d[m]||(y=f=0)||p.pop())&&((a?d.nodeName.toLowerCase()!==_:1!==d.nodeType)||!++y||(v&&(h=d[F]||(d[F]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),c[e]=[H,y]),d!==n)););return y-=r,y===i||y%i===0&&y/i>=0}}},PSEUDO:function(e,t){var r,o=x.pseudos[e]||x.setFilters[e.toLowerCase()]||n.error("unsupported pseudo: "+e);return o[F]?o(t):o.length>1?(r=[e,e,"",t],x.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,n){for(var i,r=o(e,t),s=r.length;s--;)i=ee(e,r[s]),e[i]=!(n[i]=r[s])}):function(e){return o(e,0,r)}):o}},pseudos:{not:i(function(e){var n=[],t=[],r=A(e.replace(ae,"$1"));return r[F]?i(function(e,n,t,i){for(var o,s=r(e,null,i,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(n[a]=o))}):function(e,i,o){return n[0]=e,r(n,null,o,t),n[0]=null,!t.pop()}}),has:i(function(e){return function(t){return n(e,t).length>0}}),contains:i(function(e){return e=e.replace(be,we),function(n){return(n.textContent||n.innerText||S(n)).indexOf(e)>-1}}),lang:i(function(e){return de.test(e||"")||n.error("unsupported lang: "+e),e=e.replace(be,we).toLowerCase(),function(n){var t;do if(t=I?n.lang:n.getAttribute("xml:lang")||n.getAttribute("lang"))return t=t.toLowerCase(),t===e||0===t.indexOf(e+"-");while((n=n.parentNode)&&1===n.nodeType);return!1}}),target:function(n){var t=e.location&&e.location.hash;return t&&t.slice(1)===n.id},root:function(e){return e===R},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.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 n=e.nodeName.toLowerCase();return"input"===n&&!!e.checked||"option"===n&&!!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!x.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return pe.test(e.nodeName)},button:function(e){var n=e.nodeName.toLowerCase();return"input"===n&&"button"===e.type||"button"===n},text:function(e){var n;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(n=e.getAttribute("type"))||"text"===n.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,n){return[n-1]}),eq:u(function(e,n,t){return[t<0?t+n:t]}),even:u(function(e,n){for(var t=0;t<n;t+=2)e.push(t);return e}),odd:u(function(e,n){for(var t=1;t<n;t+=2)e.push(t);return e}),lt:u(function(e,n,t){for(var i=t<0?t+n:t;--i>=0;)e.push(i);return e}),gt:u(function(e,n,t){for(var i=t<0?t+n:t;++i<n;)e.push(i);return e})}},x.pseudos.nth=x.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[b]=a(b);for(b in{submit:!0,reset:!0})x.pseudos[b]=l(b);return h.prototype=x.filters=x.pseudos,x.setFilters=new h,k=n.tokenize=function(e,t){var i,r,o,s,a,l,u,c=W[e+" "];if(c)return t?0:c.slice(0);for(a=e,l=[],u=x.preFilter;a;){i&&!(r=le.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=ue.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(ae," ")}),a=a.slice(i.length));for(s in x.filter)!(r=fe[s].exec(a))||u[s]&&!(r=u[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return t?a.length:a?n.error(e):W(e,l).slice(0)},A=n.compile=function(e,n){var t,i=[],r=[],o=$[e+" "];if(!o){for(n||(n=k(e)),t=n.length;t--;)o=v(n[t]),o[F]?i.push(o):r.push(o);o=$(e,y(r,i)),o.selector=e}return o},T=n.select=function(e,n,t,i){var r,o,s,a,l,u="function"==typeof e&&e,h=!i&&k(e=u.selector||e);if(t=t||[],1===h.length){if(o=h[0]=h[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&w.getById&&9===n.nodeType&&I&&x.relative[o[1].type]){if(n=(x.find.ID(s.matches[0].replace(be,we),n)||[])[0],!n)return t;u&&(n=n.parentNode),e=e.slice(o.shift().value.length)}for(r=fe.needsContext.test(e)?0:o.length;r--&&(s=o[r],!x.relative[a=s.type]);)if((l=x.find[a])&&(i=l(s.matches[0].replace(be,we),ve.test(o[0].type)&&c(n.parentNode)||n))){if(o.splice(r,1),e=i.length&&d(o),!e)return K.apply(t,i),t;break}}return(u||A(e,h))(i,n,!I,t,!n||ve.test(e)&&c(n.parentNode)||n),t},w.sortStable=F.split("").sort(U).join("")===F,w.detectDuplicates=!!N,E(),w.sortDetached=r(function(e){return 1&e.compareDocumentPosition(D.createElement("div"))}),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,n,t){if(!t)return e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),w.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,n,t){if(!t&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||o(ne,function(e,n,t){var i;if(!t)return e[n]===!0?n.toLowerCase():(i=e.getAttributeNode(n))&&i.specified?i.value:null}),n}(e);oe.find=ce,oe.expr=ce.selectors,oe.expr[":"]=oe.expr.pseudos,oe.uniqueSort=oe.unique=ce.uniqueSort,oe.text=ce.getText,oe.isXMLDoc=ce.isXML,oe.contains=ce.contains;var he=function(e,n,t){for(var i=[],r=void 0!==t;(e=e[n])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&oe(e).is(t))break;i.push(e)}return i},de=function(e,n){for(var t=[];e;e=e.nextSibling)1===e.nodeType&&e!==n&&t.push(e);return t},fe=oe.expr.match.needsContext,pe=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,me=/^.[^:#\[\.,]*$/;oe.filter=function(e,n,t){var i=n[0];return t&&(e=":not("+e+")"),1===n.length&&1===i.nodeType?oe.find.matchesSelector(i,e)?[i]:[]:oe.find.matches(e,oe.grep(n,function(e){return 1===e.nodeType}))},oe.fn.extend({find:function(e){var n,t=this.length,i=[],r=this;if("string"!=typeof e)return this.pushStack(oe(e).filter(function(){for(n=0;n<t;n++)if(oe.contains(r[n],this))return!0}));for(n=0;n<t;n++)oe.find(e,r[n],i);return i=this.pushStack(t>1?oe.unique(i):i),i.selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&&fe.test(e)?oe(e):e||[],!1).length}});var ge,_e=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ve=oe.fn.init=function(e,n,t){var i,r;if(!e)return this;if(t=t||ge,"string"==typeof e){if(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:_e.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||t).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof oe?n[0]:n,oe.merge(this,oe.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:J,!0)),pe.test(i[1])&&oe.isPlainObject(n))for(i in n)oe.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}return r=J.getElementById(i[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=J,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):oe.isFunction(e)?void 0!==t.ready?t.ready(e):e(oe):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),oe.makeArray(e,this))};ve.prototype=oe.fn,ge=oe(J);var ye=/^(?:parents|prev(?:Until|All))/,be={children:!0,contents:!0,next:!0,prev:!0};oe.fn.extend({has:function(e){var n=oe(e,this),t=n.length;return this.filter(function(){for(var e=0;e<t;e++)if(oe.contains(this,n[e]))return!0})},closest:function(e,n){for(var t,i=0,r=this.length,o=[],s=fe.test(e)||"string"!=typeof e?oe(e,n||this.context):0;i<r;i++)for(t=this[i];t&&t!==n;t=t.parentNode)if(t.nodeType<11&&(s?s.index(t)>-1:1===t.nodeType&&oe.find.matchesSelector(t,e))){o.push(t);break}return this.pushStack(o.length>1?oe.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?Z.call(oe(e),this[0]):Z.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,n){return this.pushStack(oe.uniqueSort(oe.merge(this.get(),oe(e,n))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),oe.each({parent:function(e){var n=e.parentNode;return n&&11!==n.nodeType?n:null},parents:function(e){return he(e,"parentNode")},parentsUntil:function(e,n,t){return he(e,"parentNode",t)},next:function(e){return r(e,"nextSibling")},prev:function(e){return r(e,"previousSibling")},nextAll:function(e){return he(e,"nextSibling")},prevAll:function(e){return he(e,"previousSibling")},nextUntil:function(e,n,t){return he(e,"nextSibling",t)},prevUntil:function(e,n,t){return he(e,"previousSibling",t)},siblings:function(e){return de((e.parentNode||{}).firstChild,e)},children:function(e){return de(e.firstChild)},contents:function(e){return e.contentDocument||oe.merge([],e.childNodes)}},function(e,n){oe.fn[e]=function(t,i){var r=oe.map(this,n,t);return"Until"!==e.slice(-5)&&(i=t),i&&"string"==typeof i&&(r=oe.filter(i,r)),this.length>1&&(be[e]||oe.uniqueSort(r),ye.test(e)&&r.reverse()),this.pushStack(r)}});var we=/\S+/g;oe.Callbacks=function(e){e="string"==typeof e?o(e):oe.extend({},e);var n,t,i,r,s=[],a=[],l=-1,u=function(){for(r=e.once,i=n=!0;a.length;l=-1)for(t=a.shift();++l<s.length;)s[l].apply(t[0],t[1])===!1&&e.stopOnFalse&&(l=s.length,t=!1);e.memory||(t=!1),n=!1,r&&(s=t?[]:"")},c={add:function(){return s&&(t&&!n&&(l=s.length-1,a.push(t)),function n(t){oe.each(t,function(t,i){oe.isFunction(i)?e.unique&&c.has(i)||s.push(i):i&&i.length&&"string"!==oe.type(i)&&n(i)})}(arguments),t&&!n&&u()),this},remove:function(){return oe.each(arguments,function(e,n){for(var t;(t=oe.inArray(n,s,t))>-1;)s.splice(t,1),t<=l&&l--}),this},has:function(e){return e?oe.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=a=[],s=t="",this},disabled:function(){return!s},lock:function(){return r=a=[],t||(s=t=""),this},locked:function(){return!!r},fireWith:function(e,t){return r||(t=t||[],t=[e,t.slice?t.slice():t],a.push(t),n||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},oe.extend({Deferred:function(e){var n=[["resolve","done",oe.Callbacks("once memory"),"resolved"],["reject","fail",oe.Callbacks("once memory"),"rejected"],["notify","progress",oe.Callbacks("memory")]],t="pending",i={state:function(){return t},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return oe.Deferred(function(t){oe.each(n,function(n,o){var s=oe.isFunction(e[n])&&e[n];r[o[1]](function(){var e=s&&s.apply(this,arguments);e&&oe.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[o[0]+"With"](this===i?t.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?oe.extend(e,i):i}},r={};return i.pipe=i.then,oe.each(n,function(e,o){var s=o[2],a=o[3];i[o[1]]=s.add,a&&s.add(function(){t=a},n[1^e][2].disable,n[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=s.fireWith}),i.promise(r),e&&e.call(r,r),r},when:function(e){var n,t,i,r=0,o=X.call(arguments),s=o.length,a=1!==s||e&&oe.isFunction(e.promise)?s:0,l=1===a?e:oe.Deferred(),u=function(e,t,i){return function(r){t[e]=this,i[e]=arguments.length>1?X.call(arguments):r,i===n?l.notifyWith(t,i):--a||l.resolveWith(t,i)}};if(s>1)for(n=new Array(s),t=new Array(s),i=new Array(s);r<s;r++)o[r]&&oe.isFunction(o[r].promise)?o[r].promise().progress(u(r,t,n)).done(u(r,i,o)).fail(l.reject):--a;return a||l.resolveWith(i,o),l.promise()}});var xe;oe.fn.ready=function(e){return oe.ready.promise().done(e),this},oe.extend({isReady:!1,readyWait:1,holdReady:function(e){e?oe.readyWait++:oe.ready(!0)},ready:function(e){(e===!0?--oe.readyWait:oe.isReady)||(oe.isReady=!0,e!==!0&&--oe.readyWait>0||(xe.resolveWith(J,[oe]),oe.fn.triggerHandler&&(oe(J).triggerHandler("ready"),oe(J).off("ready"))))}}),oe.ready.promise=function(n){return xe||(xe=oe.Deferred(),"complete"===J.readyState||"loading"!==J.readyState&&!J.documentElement.doScroll?e.setTimeout(oe.ready):(J.addEventListener("DOMContentLoaded",s),e.addEventListener("load",s))),xe.promise(n)},oe.ready.promise();var Se=function(e,n,t,i,r,o,s){var a=0,l=e.length,u=null==t;if("object"===oe.type(t)){r=!0;for(a in t)Se(e,n,a,t[a],!0,o,s)}else if(void 0!==i&&(r=!0,oe.isFunction(i)||(s=!0),u&&(s?(n.call(e,i),n=null):(u=n,n=function(e,n,t){return u.call(oe(e),t)})),n))for(;a<l;a++)n(e[a],t,s?i:i.call(e[a],a,n(e[a],t)));return r?e:u?n.call(e):l?n(e[0],t):o},Ce=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};a.uid=1,a.prototype={register:function(e,n){var t=n||{};return e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!Ce(e))return{};var n=e[this.expando];return n||(n={},Ce(e)&&(e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,configurable:!0
}))),n},set:function(e,n,t){var i,r=this.cache(e);if("string"==typeof n)r[n]=t;else for(i in n)r[i]=n[i];return r},get:function(e,n){return void 0===n?this.cache(e):e[this.expando]&&e[this.expando][n]},access:function(e,n,t){var i;return void 0===n||n&&"string"==typeof n&&void 0===t?(i=this.get(e,n),void 0!==i?i:this.get(e,oe.camelCase(n))):(this.set(e,n,t),void 0!==t?t:n)},remove:function(e,n){var t,i,r,o=e[this.expando];if(void 0!==o){if(void 0===n)this.register(e);else{oe.isArray(n)?i=n.concat(n.map(oe.camelCase)):(r=oe.camelCase(n),n in o?i=[n,r]:(i=r,i=i in o?[i]:i.match(we)||[])),t=i.length;for(;t--;)delete o[i[t]]}(void 0===n||oe.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var n=e[this.expando];return void 0!==n&&!oe.isEmptyObject(n)}};var ke=new a,Ae=new a,Te=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Me=/[A-Z]/g;oe.extend({hasData:function(e){return Ae.hasData(e)||ke.hasData(e)},data:function(e,n,t){return Ae.access(e,n,t)},removeData:function(e,n){Ae.remove(e,n)},_data:function(e,n,t){return ke.access(e,n,t)},_removeData:function(e,n){ke.remove(e,n)}}),oe.fn.extend({data:function(e,n){var t,i,r,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(r=Ae.get(o),1===o.nodeType&&!ke.get(o,"hasDataAttrs"))){for(t=s.length;t--;)s[t]&&(i=s[t].name,0===i.indexOf("data-")&&(i=oe.camelCase(i.slice(5)),l(o,i,r[i])));ke.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){Ae.set(this,e)}):Se(this,function(n){var t,i;if(o&&void 0===n){if(t=Ae.get(o,e)||Ae.get(o,e.replace(Me,"-$&").toLowerCase()),void 0!==t)return t;if(i=oe.camelCase(e),t=Ae.get(o,i),void 0!==t)return t;if(t=l(o,i,void 0),void 0!==t)return t}else i=oe.camelCase(e),this.each(function(){var t=Ae.get(this,i);Ae.set(this,i,n),e.indexOf("-")>-1&&void 0!==t&&Ae.set(this,e,n)})},null,n,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Ae.remove(this,e)})}}),oe.extend({queue:function(e,n,t){var i;if(e)return n=(n||"fx")+"queue",i=ke.get(e,n),t&&(!i||oe.isArray(t)?i=ke.access(e,n,oe.makeArray(t)):i.push(t)),i||[]},dequeue:function(e,n){n=n||"fx";var t=oe.queue(e,n),i=t.length,r=t.shift(),o=oe._queueHooks(e,n),s=function(){oe.dequeue(e,n)};"inprogress"===r&&(r=t.shift(),i--),r&&("fx"===n&&t.unshift("inprogress"),delete o.stop,r.call(e,s,o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,n){var t=n+"queueHooks";return ke.get(e,t)||ke.access(e,t,{empty:oe.Callbacks("once memory").add(function(){ke.remove(e,[n+"queue",t])})})}}),oe.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?oe.queue(this[0],e):void 0===n?this:this.each(function(){var t=oe.queue(this,e,n);oe._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&oe.dequeue(this,e)})},dequeue:function(e){return this.each(function(){oe.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var t,i=1,r=oe.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(n=e,e=void 0),e=e||"fx";s--;)t=ke.get(o[s],e+"queueHooks"),t&&t.empty&&(i++,t.empty.add(a));return a(),r.promise(n)}});var je=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ne=new RegExp("^(?:([+-])=|)("+je+")([a-z%]*)$","i"),Ee=["Top","Right","Bottom","Left"],De=function(e,n){return e=n||e,"none"===oe.css(e,"display")||!oe.contains(e.ownerDocument,e)},Re=/^(?:checkbox|radio)$/i,Ie=/<([\w:-]+)/,Le=/^$|\/(?:java|ecma)script/i,Oe={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Oe.optgroup=Oe.option,Oe.tbody=Oe.tfoot=Oe.colgroup=Oe.caption=Oe.thead,Oe.th=Oe.td;var Pe=/<|&#?\w+;/;!function(){var e=J.createDocumentFragment(),n=e.appendChild(J.createElement("div")),t=J.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),n.appendChild(t),ie.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,n.innerHTML="<textarea>x</textarea>",ie.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var qe=/^key/,Fe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ye=/^([^.]*)(?:\.(.+)|)/;oe.event={global:{},add:function(e,n,t,i,r){var o,s,a,l,u,c,h,d,f,p,m,g=ke.get(e);if(g)for(t.handler&&(o=t,t=o.handler,r=o.selector),t.guid||(t.guid=oe.guid++),(l=g.events)||(l=g.events={}),(s=g.handle)||(s=g.handle=function(n){return"undefined"!=typeof oe&&oe.event.triggered!==n.type?oe.event.dispatch.apply(e,arguments):void 0}),n=(n||"").match(we)||[""],u=n.length;u--;)a=Ye.exec(n[u])||[],f=m=a[1],p=(a[2]||"").split(".").sort(),f&&(h=oe.event.special[f]||{},f=(r?h.delegateType:h.bindType)||f,h=oe.event.special[f]||{},c=oe.extend({type:f,origType:m,data:i,handler:t,guid:t.guid,selector:r,needsContext:r&&oe.expr.match.needsContext.test(r),namespace:p.join(".")},o),(d=l[f])||(d=l[f]=[],d.delegateCount=0,h.setup&&h.setup.call(e,i,p,s)!==!1||e.addEventListener&&e.addEventListener(f,s)),h.add&&(h.add.call(e,c),c.handler.guid||(c.handler.guid=t.guid)),r?d.splice(d.delegateCount++,0,c):d.push(c),oe.event.global[f]=!0)},remove:function(e,n,t,i,r){var o,s,a,l,u,c,h,d,f,p,m,g=ke.hasData(e)&&ke.get(e);if(g&&(l=g.events)){for(n=(n||"").match(we)||[""],u=n.length;u--;)if(a=Ye.exec(n[u])||[],f=m=a[1],p=(a[2]||"").split(".").sort(),f){for(h=oe.event.special[f]||{},f=(i?h.delegateType:h.bindType)||f,d=l[f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)c=d[o],!r&&m!==c.origType||t&&t.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,h.remove&&h.remove.call(e,c));s&&!d.length&&(h.teardown&&h.teardown.call(e,p,g.handle)!==!1||oe.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)oe.event.remove(e,f+n[u],t,i,!0);oe.isEmptyObject(l)&&ke.remove(e,"handle events")}},dispatch:function(e){e=oe.event.fix(e);var n,t,i,r,o,s=[],a=X.call(arguments),l=(ke.get(this,"events")||{})[e.type]||[],u=oe.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,e)!==!1){for(s=oe.event.handlers.call(this,e,l),n=0;(r=s[n++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,t=0;(o=r.handlers[t++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,i=((oe.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a),void 0!==i&&(e.result=i)===!1&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,n){var t,i,r,o,s=[],a=n.delegateCount,l=e.target;if(a&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(i=[],t=0;t<a;t++)o=n[t],r=o.selector+" ",void 0===i[r]&&(i[r]=o.needsContext?oe(r,this).index(l)>-1:oe.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&s.push({elem:l,handlers:i})}return a<n.length&&s.push({elem:this,handlers:n.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,n){return null==e.which&&(e.which=null!=n.charCode?n.charCode:n.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var t,i,r,o=n.button;return null==e.pageX&&null!=n.clientX&&(t=e.target.ownerDocument||J,i=t.documentElement,r=t.body,e.pageX=n.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[oe.expando])return e;var n,t,i,r=e.type,o=e,s=this.fixHooks[r];for(s||(this.fixHooks[r]=s=Fe.test(r)?this.mouseHooks:qe.test(r)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,e=new oe.Event(o),n=i.length;n--;)t=i[n],e[t]=o[t];return e.target||(e.target=J),3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==m()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===m()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&oe.nodeName(this,"input"))return this.click(),!1},_default:function(e){return oe.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},oe.removeEvent=function(e,n,t){e.removeEventListener&&e.removeEventListener(n,t)},oe.Event=function(e,n){return this instanceof oe.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,n&&oe.extend(this,n),this.timeStamp=e&&e.timeStamp||oe.now(),void(this[oe.expando]=!0)):new oe.Event(e,n)},oe.Event.prototype={constructor:oe.Event,isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=f,e&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=f,e&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=f,e&&e.stopImmediatePropagation(),this.stopPropagation()}},oe.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,n){oe.event.special[e]={delegateType:n,bindType:n,handle:function(e){var t,i=this,r=e.relatedTarget,o=e.handleObj;return r&&(r===i||oe.contains(i,r))||(e.type=o.origType,t=o.handler.apply(this,arguments),e.type=n),t}}}),oe.fn.extend({on:function(e,n,t,i){return g(this,e,n,t,i)},one:function(e,n,t,i){return g(this,e,n,t,i,1)},off:function(e,n,t){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,oe(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,n,e[r]);return this}return n!==!1&&"function"!=typeof n||(t=n,n=void 0),t===!1&&(t=p),this.each(function(){oe.event.remove(this,e,t,n)})}});var He=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ze=/<script|<style|<link/i,Be=/checked\s*(?:[^=]|=\s*.checked.)/i,We=/^true\/(.*)/,$e=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;oe.extend({htmlPrefilter:function(e){return e.replace(He,"<$1></$2>")},clone:function(e,n,t){var i,r,o,s,a=e.cloneNode(!0),l=oe.contains(e.ownerDocument,e);if(!(ie.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||oe.isXMLDoc(e)))for(s=c(a),o=c(e),i=0,r=o.length;i<r;i++)w(o[i],s[i]);if(n)if(t)for(o=o||c(e),s=s||c(a),i=0,r=o.length;i<r;i++)b(o[i],s[i]);else b(e,a);return s=c(a,"script"),s.length>0&&h(s,!l&&c(e,"script")),a},cleanData:function(e){for(var n,t,i,r=oe.event.special,o=0;void 0!==(t=e[o]);o++)if(Ce(t)){if(n=t[ke.expando]){if(n.events)for(i in n.events)r[i]?oe.event.remove(t,i):oe.removeEvent(t,i,n.handle);t[ke.expando]=void 0}t[Ae.expando]&&(t[Ae.expando]=void 0)}}}),oe.fn.extend({domManip:x,detach:function(e){return S(this,e,!0)},remove:function(e){return S(this,e)},text:function(e){return Se(this,function(e){return void 0===e?oe.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return x(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=_(this,e);n.appendChild(e)}})},prepend:function(){return x(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var n=_(this,e);n.insertBefore(e,n.firstChild)}})},before:function(){return x(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return x(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,n=0;null!=(e=this[n]);n++)1===e.nodeType&&(oe.cleanData(c(e,!1)),e.textContent="");return this},clone:function(e,n){return e=null!=e&&e,n=null==n?e:n,this.map(function(){return oe.clone(this,e,n)})},html:function(e){return Se(this,function(e){var n=this[0]||{},t=0,i=this.length;if(void 0===e&&1===n.nodeType)return n.innerHTML;if("string"==typeof e&&!ze.test(e)&&!Oe[(Ie.exec(e)||["",""])[1].toLowerCase()]){e=oe.htmlPrefilter(e);try{for(;t<i;t++)n=this[t]||{},1===n.nodeType&&(oe.cleanData(c(n,!1)),n.innerHTML=e);n=0}catch(e){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return x(this,arguments,function(n){var t=this.parentNode;oe.inArray(this,e)<0&&(oe.cleanData(c(this)),t&&t.replaceChild(n,this))},e)}}),oe.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,n){oe.fn[e]=function(e){for(var t,i=[],r=oe(e),o=r.length-1,s=0;s<=o;s++)t=s===o?this:this.clone(!0),oe(r[s])[n](t),K.apply(i,t.get());return this.pushStack(i)}});var Ue,Ve={HTML:"block",BODY:"block"},Ge=/^margin/,Je=new RegExp("^("+je+")(?!px)[a-z%]+$","i"),Xe=function(n){var t=n.ownerDocument.defaultView;return t&&t.opener||(t=e),t.getComputedStyle(n)},Qe=function(e,n,t,i){var r,o,s={};for(o in n)s[o]=e.style[o],e.style[o]=n[o];r=t.apply(e,i||[]);for(o in n)e.style[o]=s[o];return r},Ke=J.documentElement;!function(){function n(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Ke.appendChild(s);var n=e.getComputedStyle(a);t="1%"!==n.top,o="2px"===n.marginLeft,i="4px"===n.width,a.style.marginRight="50%",r="4px"===n.marginRight,Ke.removeChild(s)}var t,i,r,o,s=J.createElement("div"),a=J.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",ie.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),oe.extend(ie,{pixelPosition:function(){return n(),t},boxSizingReliable:function(){return null==i&&n(),i},pixelMarginRight:function(){return null==i&&n(),r},reliableMarginLeft:function(){return null==i&&n(),o},reliableMarginRight:function(){var n,t=a.appendChild(J.createElement("div"));return t.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",a.style.width="1px",Ke.appendChild(s),n=!parseFloat(e.getComputedStyle(t).marginRight),Ke.removeChild(s),a.removeChild(t),n}}))}();var Ze=/^(none|table(?!-c[ea]).+)/,en={position:"absolute",visibility:"hidden",display:"block"},nn={letterSpacing:"0",fontWeight:"400"},tn=["Webkit","O","Moz","ms"],rn=J.createElement("div").style;oe.extend({cssHooks:{opacity:{get:function(e,n){if(n){var t=A(e,"opacity");return""===t?"1":t}}}},cssNumber:{animationIterationCount:!0,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:"cssFloat"},style:function(e,n,t,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,s,a=oe.camelCase(n),l=e.style;return n=oe.cssProps[a]||(oe.cssProps[a]=M(a)||a),s=oe.cssHooks[n]||oe.cssHooks[a],void 0===t?s&&"get"in s&&void 0!==(r=s.get(e,!1,i))?r:l[n]:(o=typeof t,"string"===o&&(r=Ne.exec(t))&&r[1]&&(t=u(e,n,r),o="number"),null!=t&&t===t&&("number"===o&&(t+=r&&r[3]||(oe.cssNumber[a]?"":"px")),ie.clearCloneStyle||""!==t||0!==n.indexOf("background")||(l[n]="inherit"),s&&"set"in s&&void 0===(t=s.set(e,t,i))||(l[n]=t)),void 0)}},css:function(e,n,t,i){var r,o,s,a=oe.camelCase(n);return n=oe.cssProps[a]||(oe.cssProps[a]=M(a)||a),s=oe.cssHooks[n]||oe.cssHooks[a],s&&"get"in s&&(r=s.get(e,!0,t)),void 0===r&&(r=A(e,n,i)),"normal"===r&&n in nn&&(r=nn[n]),""===t||t?(o=parseFloat(r),t===!0||isFinite(o)?o||0:r):r}}),oe.each(["height","width"],function(e,n){oe.cssHooks[n]={get:function(e,t,i){if(t)return Ze.test(oe.css(e,"display"))&&0===e.offsetWidth?Qe(e,en,function(){return E(e,n,i)}):E(e,n,i)},set:function(e,t,i){var r,o=i&&Xe(e),s=i&&N(e,n,i,"border-box"===oe.css(e,"boxSizing",!1,o),o);return s&&(r=Ne.exec(t))&&"px"!==(r[3]||"px")&&(e.style[n]=t,t=oe.css(e,n)),j(e,t,s)}}}),oe.cssHooks.marginLeft=T(ie.reliableMarginLeft,function(e,n){if(n)return(parseFloat(A(e,"marginLeft"))||e.getBoundingClientRect().left-Qe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),oe.cssHooks.marginRight=T(ie.reliableMarginRight,function(e,n){if(n)return Qe(e,{display:"inline-block"},A,[e,"marginRight"])}),oe.each({margin:"",padding:"",border:"Width"},function(e,n){oe.cssHooks[e+n]={expand:function(t){for(var i=0,r={},o="string"==typeof t?t.split(" "):[t];i<4;i++)r[e+Ee[i]+n]=o[i]||o[i-2]||o[0];return r}},Ge.test(e)||(oe.cssHooks[e+n].set=j)}),oe.fn.extend({css:function(e,n){return Se(this,function(e,n,t){var i,r,o={},s=0;if(oe.isArray(n)){for(i=Xe(e),r=n.length;s<r;s++)o[n[s]]=oe.css(e,n[s],!1,i);return o}return void 0!==t?oe.style(e,n,t):oe.css(e,n)},e,n,arguments.length>1)},show:function(){return D(this,!0)},hide:function(){return D(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){De(this)?oe(this).show():oe(this).hide()})}}),oe.Tween=R,R.prototype={constructor:R,init:function(e,n,t,i,r,o){this.elem=e,this.prop=t,this.easing=r||oe.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=i,this.unit=o||(oe.cssNumber[t]?"":"px")},cur:function(){var e=R.propHooks[this.prop];return e&&e.get?e.get(this):R.propHooks._default.get(this)},run:function(e){var n,t=R.propHooks[this.prop];return this.options.duration?this.pos=n=oe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=n=e,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),t&&t.set?t.set(this):R.propHooks._default.set(this),this}},R.prototype.init.prototype=R.prototype,R.propHooks={_default:{get:function(e){var n;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(n=oe.css(e.elem,e.prop,""),n&&"auto"!==n?n:0)},set:function(e){oe.fx.step[e.prop]?oe.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[oe.cssProps[e.prop]]&&!oe.cssHooks[e.prop]?e.elem[e.prop]=e.now:oe.style(e.elem,e.prop,e.now+e.unit)}}},R.propHooks.scrollTop=R.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},oe.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},oe.fx=R.prototype.init,oe.fx.step={};var on,sn,an=/^(?:toggle|show|hide)$/,ln=/queueHooks$/;oe.Animation=oe.extend(F,{tweeners:{"*":[function(e,n){var t=this.createTween(e,n);return u(t.elem,e,Ne.exec(n),t),t}]},tweener:function(e,n){oe.isFunction(e)?(n=e,e=["*"]):e=e.match(we);for(var t,i=0,r=e.length;i<r;i++)t=e[i],F.tweeners[t]=F.tweeners[t]||[],F.tweeners[t].unshift(n)},prefilters:[P],prefilter:function(e,n){n?F.prefilters.unshift(e):F.prefilters.push(e)}}),oe.speed=function(e,n,t){var i=e&&"object"==typeof e?oe.extend({},e):{complete:t||!t&&n||oe.isFunction(e)&&e,duration:e,easing:t&&n||n&&!oe.isFunction(n)&&n};return i.duration=oe.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in oe.fx.speeds?oe.fx.speeds[i.duration]:oe.fx.speeds._default,null!=i.queue&&i.queue!==!0||(i.queue="fx"),i.old=i.complete,i.complete=function(){oe.isFunction(i.old)&&i.old.call(this),i.queue&&oe.dequeue(this,i.queue)},i},oe.fn.extend({fadeTo:function(e,n,t,i){return this.filter(De).css("opacity",0).show().end().animate({opacity:n},e,t,i)},animate:function(e,n,t,i){var r=oe.isEmptyObject(e),o=oe.speed(n,t,i),s=function(){var n=F(this,oe.extend({},e),o);(r||ke.get(this,"finish"))&&n.stop(!0)};return s.finish=s,r||o.queue===!1?this.each(s):this.queue(o.queue,s)},stop:function(e,n,t){var i=function(e){var n=e.stop;delete e.stop,n(t)};return"string"!=typeof e&&(t=n,n=e,e=void 0),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var n=!0,r=null!=e&&e+"queueHooks",o=oe.timers,s=ke.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&ln.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(t),n=!1,o.splice(r,1));!n&&t||oe.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var n,t=ke.get(this),i=t[e+"queue"],r=t[e+"queueHooks"],o=oe.timers,s=i?i.length:0;for(t.finish=!0,oe.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),n=o.length;n--;)o[n].elem===this&&o[n].queue===e&&(o[n].anim.stop(!0),o.splice(n,1));for(n=0;n<s;n++)i[n]&&i[n].finish&&i[n].finish.call(this);delete t.finish})}}),oe.each(["toggle","show","hide"],function(e,n){var t=oe.fn[n];oe.fn[n]=function(e,i,r){return null==e||"boolean"==typeof e?t.apply(this,arguments):this.animate(L(n,!0),e,i,r)}}),oe.each({slideDown:L("show"),slideUp:L("hide"),slideToggle:L("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,n){oe.fn[e]=function(e,t,i){return this.animate(n,e,t,i)}}),oe.timers=[],oe.fx.tick=function(){var e,n=0,t=oe.timers;for(on=oe.now();n<t.length;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||oe.fx.stop(),on=void 0},oe.fx.timer=function(e){oe.timers.push(e),e()?oe.fx.start():oe.timers.pop()},oe.fx.interval=13,oe.fx.start=function(){sn||(sn=e.setInterval(oe.fx.tick,oe.fx.interval))},oe.fx.stop=function(){e.clearInterval(sn),sn=null},oe.fx.speeds={slow:600,fast:200,_default:400},oe.fn.delay=function(n,t){return n=oe.fx?oe.fx.speeds[n]||n:n,t=t||"fx",this.queue(t,function(t,i){var r=e.setTimeout(t,n);i.stop=function(){e.clearTimeout(r)}})},function(){var e=J.createElement("input"),n=J.createElement("select"),t=n.appendChild(J.createElement("option"));e.type="checkbox",ie.checkOn=""!==e.value,ie.optSelected=t.selected,n.disabled=!0,ie.optDisabled=!t.disabled,e=J.createElement("input"),e.value="t",e.type="radio",ie.radioValue="t"===e.value}();var un,cn=oe.expr.attrHandle;oe.fn.extend({attr:function(e,n){return Se(this,oe.attr,e,n,arguments.length>1)},removeAttr:function(e){return this.each(function(){oe.removeAttr(this,e)})}}),oe.extend({attr:function(e,n,t){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?oe.prop(e,n,t):(1===o&&oe.isXMLDoc(e)||(n=n.toLowerCase(),r=oe.attrHooks[n]||(oe.expr.match.bool.test(n)?un:void 0)),void 0!==t?null===t?void oe.removeAttr(e,n):r&&"set"in r&&void 0!==(i=r.set(e,t,n))?i:(e.setAttribute(n,t+""),t):r&&"get"in r&&null!==(i=r.get(e,n))?i:(i=oe.find.attr(e,n),null==i?void 0:i))},attrHooks:{type:{set:function(e,n){if(!ie.radioValue&&"radio"===n&&oe.nodeName(e,"input")){var t=e.value;return e.setAttribute("type",n),t&&(e.value=t),n}}}},removeAttr:function(e,n){var t,i,r=0,o=n&&n.match(we);if(o&&1===e.nodeType)for(;t=o[r++];)i=oe.propFix[t]||t,oe.expr.match.bool.test(t)&&(e[i]=!1),e.removeAttribute(t)}}),un={set:function(e,n,t){return n===!1?oe.removeAttr(e,t):e.setAttribute(t,t),t}},oe.each(oe.expr.match.bool.source.match(/\w+/g),function(e,n){var t=cn[n]||oe.find.attr;cn[n]=function(e,n,i){var r,o;return i||(o=cn[n],cn[n]=r,r=null!=t(e,n,i)?n.toLowerCase():null,cn[n]=o),r}});var hn=/^(?:input|select|textarea|button)$/i,dn=/^(?:a|area)$/i;oe.fn.extend({prop:function(e,n){return Se(this,oe.prop,e,n,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[oe.propFix[e]||e]})}}),oe.extend({prop:function(e,n,t){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&oe.isXMLDoc(e)||(n=oe.propFix[n]||n,r=oe.propHooks[n]),void 0!==t?r&&"set"in r&&void 0!==(i=r.set(e,t,n))?i:e[n]=t:r&&"get"in r&&null!==(i=r.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=oe.find.attr(e,"tabindex");return n?parseInt(n,10):hn.test(e.nodeName)||dn.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ie.optSelected||(oe.propHooks.selected={get:function(e){var n=e.parentNode;return n&&n.parentNode&&n.parentNode.selectedIndex,null},set:function(e){var n=e.parentNode;n&&(n.selectedIndex,n.parentNode&&n.parentNode.selectedIndex)}}),oe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){oe.propFix[this.toLowerCase()]=this});var fn=/[\t\r\n\f]/g;oe.fn.extend({addClass:function(e){var n,t,i,r,o,s,a,l=0;if(oe.isFunction(e))return this.each(function(n){oe(this).addClass(e.call(this,n,Y(this)))});if("string"==typeof e&&e)for(n=e.match(we)||[];t=this[l++];)if(r=Y(t),i=1===t.nodeType&&(" "+r+" ").replace(fn," ")){for(s=0;o=n[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");a=oe.trim(i),r!==a&&t.setAttribute("class",a)}return this},removeClass:function(e){var n,t,i,r,o,s,a,l=0;if(oe.isFunction(e))return this.each(function(n){oe(this).removeClass(e.call(this,n,Y(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(n=e.match(we)||[];t=this[l++];)if(r=Y(t),i=1===t.nodeType&&(" "+r+" ").replace(fn," ")){for(s=0;o=n[s++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");a=oe.trim(i),r!==a&&t.setAttribute("class",a)}return this},toggleClass:function(e,n){var t=typeof e;return"boolean"==typeof n&&"string"===t?n?this.addClass(e):this.removeClass(e):oe.isFunction(e)?this.each(function(t){oe(this).toggleClass(e.call(this,t,Y(this),n),n)}):this.each(function(){var n,i,r,o;if("string"===t)for(i=0,r=oe(this),o=e.match(we)||[];n=o[i++];)r.hasClass(n)?r.removeClass(n):r.addClass(n);else void 0!==e&&"boolean"!==t||(n=Y(this),n&&ke.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||e===!1?"":ke.get(this,"__className__")||""))})},hasClass:function(e){var n,t,i=0;for(n=" "+e+" ";t=this[i++];)if(1===t.nodeType&&(" "+Y(t)+" ").replace(fn," ").indexOf(n)>-1)return!0;return!1}});var pn=/\r/g,mn=/[\x20\t\r\n\f]+/g;oe.fn.extend({val:function(e){var n,t,i,r=this[0];{if(arguments.length)return i=oe.isFunction(e),this.each(function(t){var r;1===this.nodeType&&(r=i?e.call(this,t,oe(this).val()):e,null==r?r="":"number"==typeof r?r+="":oe.isArray(r)&&(r=oe.map(r,function(e){return null==e?"":e+""})),n=oe.valHooks[this.type]||oe.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&void 0!==n.set(this,r,"value")||(this.value=r))});if(r)return n=oe.valHooks[r.type]||oe.valHooks[r.nodeName.toLowerCase()],n&&"get"in n&&void 0!==(t=n.get(r,"value"))?t:(t=r.value,"string"==typeof t?t.replace(pn,""):null==t?"":t)}}}),oe.extend({valHooks:{option:{get:function(e){var n=oe.find.attr(e,"value");return null!=n?n:oe.trim(oe.text(e)).replace(mn," ")}},select:{get:function(e){for(var n,t,i=e.options,r=e.selectedIndex,o="select-one"===e.type||r<0,s=o?null:[],a=o?r+1:i.length,l=r<0?a:o?r:0;l<a;l++)if(t=i[l],(t.selected||l===r)&&(ie.optDisabled?!t.disabled:null===t.getAttribute("disabled"))&&(!t.parentNode.disabled||!oe.nodeName(t.parentNode,"optgroup"))){if(n=oe(t).val(),o)return n;s.push(n)}return s},set:function(e,n){for(var t,i,r=e.options,o=oe.makeArray(n),s=r.length;s--;)i=r[s],(i.selected=oe.inArray(oe.valHooks.option.get(i),o)>-1)&&(t=!0);return t||(e.selectedIndex=-1),o}}}}),oe.each(["radio","checkbox"],function(){oe.valHooks[this]={set:function(e,n){if(oe.isArray(n))return e.checked=oe.inArray(oe(e).val(),n)>-1}},ie.checkOn||(oe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var gn=/^(?:focusinfocus|focusoutblur)$/;oe.extend(oe.event,{trigger:function(n,t,i,r){var o,s,a,l,u,c,h,d=[i||J],f=te.call(n,"type")?n.type:n,p=te.call(n,"namespace")?n.namespace.split("."):[];if(s=a=i=i||J,3!==i.nodeType&&8!==i.nodeType&&!gn.test(f+oe.event.triggered)&&(f.indexOf(".")>-1&&(p=f.split("."),f=p.shift(),p.sort()),u=f.indexOf(":")<0&&"on"+f,n=n[oe.expando]?n:new oe.Event(f,"object"==typeof n&&n),n.isTrigger=r?2:3,n.namespace=p.join("."),n.rnamespace=n.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=void 0,n.target||(n.target=i),t=null==t?[n]:oe.makeArray(t,[n]),h=oe.event.special[f]||{},r||!h.trigger||h.trigger.apply(i,t)!==!1)){if(!r&&!h.noBubble&&!oe.isWindow(i)){for(l=h.delegateType||f,gn.test(l+f)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(i.ownerDocument||J)&&d.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=d[o++])&&!n.isPropagationStopped();)n.type=o>1?l:h.bindType||f,c=(ke.get(s,"events")||{})[n.type]&&ke.get(s,"handle"),c&&c.apply(s,t),c=u&&s[u],c&&c.apply&&Ce(s)&&(n.result=c.apply(s,t),n.result===!1&&n.preventDefault());return n.type=f,r||n.isDefaultPrevented()||h._default&&h._default.apply(d.pop(),t)!==!1||!Ce(i)||u&&oe.isFunction(i[f])&&!oe.isWindow(i)&&(a=i[u],a&&(i[u]=null),oe.event.triggered=f,i[f](),oe.event.triggered=void 0,a&&(i[u]=a)),n.result}},simulate:function(e,n,t){var i=oe.extend(new oe.Event,t,{type:e,isSimulated:!0});oe.event.trigger(i,null,n),i.isDefaultPrevented()&&t.preventDefault()}}),oe.fn.extend({trigger:function(e,n){return this.each(function(){oe.event.trigger(e,n,this)})},triggerHandler:function(e,n){var t=this[0];if(t)return oe.event.trigger(e,n,t,!0)}}),oe.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,n){oe.fn[n]=function(e,t){return arguments.length>0?this.on(n,null,e,t):this.trigger(n)}}),oe.fn.extend({hover:function(e,n){return this.mouseenter(e).mouseleave(n||e)}}),ie.focusin="onfocusin"in e,ie.focusin||oe.each({focus:"focusin",blur:"focusout"},function(e,n){var t=function(e){oe.event.simulate(n,e.target,oe.event.fix(e))};oe.event.special[n]={setup:function(){var i=this.ownerDocument||this,r=ke.access(i,n);r||i.addEventListener(e,t,!0),ke.access(i,n,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=ke.access(i,n)-1;r?ke.access(i,n,r):(i.removeEventListener(e,t,!0),ke.remove(i,n))}}});var _n=e.location,vn=oe.now(),yn=/\?/;oe.parseJSON=function(e){return JSON.parse(e+"")},oe.parseXML=function(n){var t;if(!n||"string"!=typeof n)return null;try{t=(new e.DOMParser).parseFromString(n,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||oe.error("Invalid XML: "+n),t};var bn=/#.*$/,wn=/([?&])_=[^&]*/,xn=/^(.*?):[ \t]*([^\r\n]*)$/gm,Sn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Cn=/^(?:GET|HEAD)$/,kn=/^\/\//,An={},Tn={},Mn="*/".concat("*"),jn=J.createElement("a");jn.href=_n.href,oe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_n.href,type:"GET",isLocal:Sn.test(_n.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Mn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":oe.parseJSON,"text xml":oe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,n){return n?B(B(e,oe.ajaxSettings),n):B(oe.ajaxSettings,e)},ajaxPrefilter:H(An),ajaxTransport:H(Tn),ajax:function(n,t){function i(n,t,i,a){var u,h,v,y,w,S=t;2!==b&&(b=2,l&&e.clearTimeout(l),r=void 0,s=a||"",x.readyState=n>0?4:0,u=n>=200&&n<300||304===n,i&&(y=W(d,x,i)),y=$(d,y,x,u),u?(d.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(oe.lastModified[o]=w),w=x.getResponseHeader("etag"),w&&(oe.etag[o]=w)),204===n||"HEAD"===d.type?S="nocontent":304===n?S="notmodified":(S=y.state,
h=y.data,v=y.error,u=!v)):(v=S,!n&&S||(S="error",n<0&&(n=0))),x.status=n,x.statusText=(t||S)+"",u?m.resolveWith(f,[h,S,x]):m.rejectWith(f,[x,S,v]),x.statusCode(_),_=void 0,c&&p.trigger(u?"ajaxSuccess":"ajaxError",[x,d,u?h:v]),g.fireWith(f,[x,S]),c&&(p.trigger("ajaxComplete",[x,d]),--oe.active||oe.event.trigger("ajaxStop")))}"object"==typeof n&&(t=n,n=void 0),t=t||{};var r,o,s,a,l,u,c,h,d=oe.ajaxSetup({},t),f=d.context||d,p=d.context&&(f.nodeType||f.jquery)?oe(f):oe.event,m=oe.Deferred(),g=oe.Callbacks("once memory"),_=d.statusCode||{},v={},y={},b=0,w="canceled",x={readyState:0,getResponseHeader:function(e){var n;if(2===b){if(!a)for(a={};n=xn.exec(s);)a[n[1].toLowerCase()]=n[2];n=a[e.toLowerCase()]}return null==n?null:n},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(e,n){var t=e.toLowerCase();return b||(e=y[t]=y[t]||e,v[e]=n),this},overrideMimeType:function(e){return b||(d.mimeType=e),this},statusCode:function(e){var n;if(e)if(b<2)for(n in e)_[n]=[_[n],e[n]];else x.always(e[x.status]);return this},abort:function(e){var n=e||w;return r&&r.abort(n),i(0,n),this}};if(m.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,d.url=((n||d.url||_n.href)+"").replace(bn,"").replace(kn,_n.protocol+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=oe.trim(d.dataType||"*").toLowerCase().match(we)||[""],null==d.crossDomain){u=J.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=jn.protocol+"//"+jn.host!=u.protocol+"//"+u.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=oe.param(d.data,d.traditional)),z(An,d,t,x),2===b)return x;c=oe.event&&d.global,c&&0===oe.active++&&oe.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Cn.test(d.type),o=d.url,d.hasContent||(d.data&&(o=d.url+=(yn.test(o)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(yn.test(o)?"&":"?")+"_="+vn++)),d.ifModified&&(oe.lastModified[o]&&x.setRequestHeader("If-Modified-Since",oe.lastModified[o]),oe.etag[o]&&x.setRequestHeader("If-None-Match",oe.etag[o])),(d.data&&d.hasContent&&d.contentType!==!1||t.contentType)&&x.setRequestHeader("Content-Type",d.contentType),x.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Mn+"; q=0.01":""):d.accepts["*"]);for(h in d.headers)x.setRequestHeader(h,d.headers[h]);if(d.beforeSend&&(d.beforeSend.call(f,x,d)===!1||2===b))return x.abort();w="abort";for(h in{success:1,error:1,complete:1})x[h](d[h]);if(r=z(Tn,d,t,x)){if(x.readyState=1,c&&p.trigger("ajaxSend",[x,d]),2===b)return x;d.async&&d.timeout>0&&(l=e.setTimeout(function(){x.abort("timeout")},d.timeout));try{b=1,r.send(v,i)}catch(e){if(!(b<2))throw e;i(-1,e)}}else i(-1,"No Transport");return x},getJSON:function(e,n,t){return oe.get(e,n,t,"json")},getScript:function(e,n){return oe.get(e,void 0,n,"script")}}),oe.each(["get","post"],function(e,n){oe[n]=function(e,t,i,r){return oe.isFunction(t)&&(r=r||i,i=t,t=void 0),oe.ajax(oe.extend({url:e,type:n,dataType:r,data:t,success:i},oe.isPlainObject(e)&&e))}}),oe._evalUrl=function(e){return oe.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},oe.fn.extend({wrapAll:function(e){var n;return oe.isFunction(e)?this.each(function(n){oe(this).wrapAll(e.call(this,n))}):(this[0]&&(n=oe(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&n.insertBefore(this[0]),n.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return oe.isFunction(e)?this.each(function(n){oe(this).wrapInner(e.call(this,n))}):this.each(function(){var n=oe(this),t=n.contents();t.length?t.wrapAll(e):n.append(e)})},wrap:function(e){var n=oe.isFunction(e);return this.each(function(t){oe(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(){return this.parent().each(function(){oe.nodeName(this,"body")||oe(this).replaceWith(this.childNodes)}).end()}}),oe.expr.filters.hidden=function(e){return!oe.expr.filters.visible(e)},oe.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var Nn=/%20/g,En=/\[\]$/,Dn=/\r?\n/g,Rn=/^(?:submit|button|image|reset|file)$/i,In=/^(?:input|select|textarea|keygen)/i;oe.param=function(e,n){var t,i=[],r=function(e,n){n=oe.isFunction(n)?n():null==n?"":n,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(n)};if(void 0===n&&(n=oe.ajaxSettings&&oe.ajaxSettings.traditional),oe.isArray(e)||e.jquery&&!oe.isPlainObject(e))oe.each(e,function(){r(this.name,this.value)});else for(t in e)U(t,e[t],n,r);return i.join("&").replace(Nn,"+")},oe.fn.extend({serialize:function(){return oe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=oe.prop(this,"elements");return e?oe.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!oe(this).is(":disabled")&&In.test(this.nodeName)&&!Rn.test(e)&&(this.checked||!Re.test(e))}).map(function(e,n){var t=oe(this).val();return null==t?null:oe.isArray(t)?oe.map(t,function(e){return{name:n.name,value:e.replace(Dn,"\r\n")}}):{name:n.name,value:t.replace(Dn,"\r\n")}}).get()}}),oe.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Ln={0:200,1223:204},On=oe.ajaxSettings.xhr();ie.cors=!!On&&"withCredentials"in On,ie.ajax=On=!!On,oe.ajaxTransport(function(n){var t,i;if(ie.cors||On&&!n.crossDomain)return{send:function(r,o){var s,a=n.xhr();if(a.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(s in n.xhrFields)a[s]=n.xhrFields[s];n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(s in r)a.setRequestHeader(s,r[s]);t=function(e){return function(){t&&(t=i=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Ln[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),i=a.onerror=t("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){t&&i()})},t=t("abort");try{a.send(n.hasContent&&n.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),oe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return oe.globalEval(e),e}}}),oe.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),oe.ajaxTransport("script",function(e){if(e.crossDomain){var n,t;return{send:function(i,r){n=oe("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",t=function(e){n.remove(),t=null,e&&r("error"===e.type?404:200,e.type)}),J.head.appendChild(n[0])},abort:function(){t&&t()}}}});var Pn=[],qn=/(=)\?(?=&|$)|\?\?/;oe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Pn.pop()||oe.expando+"_"+vn++;return this[e]=!0,e}}),oe.ajaxPrefilter("json jsonp",function(n,t,i){var r,o,s,a=n.jsonp!==!1&&(qn.test(n.url)?"url":"string"==typeof n.data&&0===(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&qn.test(n.data)&&"data");if(a||"jsonp"===n.dataTypes[0])return r=n.jsonpCallback=oe.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,a?n[a]=n[a].replace(qn,"$1"+r):n.jsonp!==!1&&(n.url+=(yn.test(n.url)?"&":"?")+n.jsonp+"="+r),n.converters["script json"]=function(){return s||oe.error(r+" was not called"),s[0]},n.dataTypes[0]="json",o=e[r],e[r]=function(){s=arguments},i.always(function(){void 0===o?oe(e).removeProp(r):e[r]=o,n[r]&&(n.jsonpCallback=t.jsonpCallback,Pn.push(r)),s&&oe.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),oe.parseHTML=function(e,n,t){if(!e||"string"!=typeof e)return null;"boolean"==typeof n&&(t=n,n=!1),n=n||J;var i=pe.exec(e),r=!t&&[];return i?[n.createElement(i[1])]:(i=d([e],n,r),r&&r.length&&oe(r).remove(),oe.merge([],i.childNodes))};var Fn=oe.fn.load;oe.fn.load=function(e,n,t){if("string"!=typeof e&&Fn)return Fn.apply(this,arguments);var i,r,o,s=this,a=e.indexOf(" ");return a>-1&&(i=oe.trim(e.slice(a)),e=e.slice(0,a)),oe.isFunction(n)?(t=n,n=void 0):n&&"object"==typeof n&&(r="POST"),s.length>0&&oe.ajax({url:e,type:r||"GET",dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?oe("<div>").append(oe.parseHTML(e)).find(i):e)}).always(t&&function(e,n){s.each(function(){t.apply(this,o||[e.responseText,n,e])})}),this},oe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,n){oe.fn[n]=function(e){return this.on(n,e)}}),oe.expr.filters.animated=function(e){return oe.grep(oe.timers,function(n){return e===n.elem}).length},oe.offset={setOffset:function(e,n,t){var i,r,o,s,a,l,u,c=oe.css(e,"position"),h=oe(e),d={};"static"===c&&(e.style.position="relative"),a=h.offset(),o=oe.css(e,"top"),l=oe.css(e,"left"),u=("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1,u?(i=h.position(),s=i.top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),oe.isFunction(n)&&(n=n.call(e,t,oe.extend({},a))),null!=n.top&&(d.top=n.top-a.top+s),null!=n.left&&(d.left=n.left-a.left+r),"using"in n?n.using.call(e,d):h.css(d)}},oe.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(n){oe.offset.setOffset(this,e,n)});var n,t,i=this[0],r={top:0,left:0},o=i&&i.ownerDocument;if(o)return n=o.documentElement,oe.contains(n,i)?(r=i.getBoundingClientRect(),t=V(o),{top:r.top+t.pageYOffset-n.clientTop,left:r.left+t.pageXOffset-n.clientLeft}):r},position:function(){if(this[0]){var e,n,t=this[0],i={top:0,left:0};return"fixed"===oe.css(t,"position")?n=t.getBoundingClientRect():(e=this.offsetParent(),n=this.offset(),oe.nodeName(e[0],"html")||(i=e.offset()),i.top+=oe.css(e[0],"borderTopWidth",!0),i.left+=oe.css(e[0],"borderLeftWidth",!0)),{top:n.top-i.top-oe.css(t,"marginTop",!0),left:n.left-i.left-oe.css(t,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===oe.css(e,"position");)e=e.offsetParent;return e||Ke})}}),oe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var t="pageYOffset"===n;oe.fn[e]=function(i){return Se(this,function(e,i,r){var o=V(e);return void 0===r?o?o[n]:e[i]:void(o?o.scrollTo(t?o.pageXOffset:r,t?r:o.pageYOffset):e[i]=r)},e,i,arguments.length)}}),oe.each(["top","left"],function(e,n){oe.cssHooks[n]=T(ie.pixelPosition,function(e,t){if(t)return t=A(e,n),Je.test(t)?oe(e).position()[n]+"px":t})}),oe.each({Height:"height",Width:"width"},function(e,n){oe.each({padding:"inner"+e,content:n,"":"outer"+e},function(t,i){oe.fn[i]=function(i,r){var o=arguments.length&&(t||"boolean"!=typeof i),s=t||(i===!0||r===!0?"margin":"border");return Se(this,function(n,t,i){var r;return oe.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(r=n.documentElement,Math.max(n.body["scroll"+e],r["scroll"+e],n.body["offset"+e],r["offset"+e],r["client"+e])):void 0===i?oe.css(n,t,s):oe.style(n,t,i,s)},n,o?i:void 0,o,null)}})}),oe.fn.extend({bind:function(e,n,t){return this.on(e,null,n,t)},unbind:function(e,n){return this.off(e,null,n)},delegate:function(e,n,t,i){return this.on(n,e,t,i)},undelegate:function(e,n,t){return 1===arguments.length?this.off(e,"**"):this.off(n,e||"**",t)},size:function(){return this.length}}),oe.fn.andSelf=oe.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return oe});var Yn=e.jQuery,Hn=e.$;return oe.noConflict=function(n){return e.$===oe&&(e.$=Hn),n&&e.jQuery===oe&&(e.jQuery=Yn),oe},n||(e.jQuery=e.$=oe),oe}),define("jquery.noconflict",["jquery"],function(e){return e.noConflict(!0)}),function(){function e(e,n){return e.set(n[0],n[1]),e}function n(e,n){return e.add(n),e}function t(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}function i(e,n,t,i){for(var r=-1,o=null==e?0:e.length;++r<o;){var s=e[r];n(i,s,t(s),e)}return i}function r(e,n){for(var t=-1,i=null==e?0:e.length;++t<i&&n(e[t],t,e)!==!1;);return e}function o(e,n){for(var t=null==e?0:e.length;t--&&n(e[t],t,e)!==!1;);return e}function s(e,n){for(var t=-1,i=null==e?0:e.length;++t<i;)if(!n(e[t],t,e))return!1;return!0}function a(e,n){for(var t=-1,i=null==e?0:e.length,r=0,o=[];++t<i;){var s=e[t];n(s,t,e)&&(o[r++]=s)}return o}function l(e,n){var t=null==e?0:e.length;return!!t&&y(e,n,0)>-1}function u(e,n,t){for(var i=-1,r=null==e?0:e.length;++i<r;)if(t(n,e[i]))return!0;return!1}function c(e,n){for(var t=-1,i=null==e?0:e.length,r=Array(i);++t<i;)r[t]=n(e[t],t,e);return r}function h(e,n){for(var t=-1,i=n.length,r=e.length;++t<i;)e[r+t]=n[t];return e}function d(e,n,t,i){var r=-1,o=null==e?0:e.length;for(i&&o&&(t=e[++r]);++r<o;)t=n(t,e[r],r,e);return t}function f(e,n,t,i){var r=null==e?0:e.length;for(i&&r&&(t=e[--r]);r--;)t=n(t,e[r],r,e);return t}function p(e,n){for(var t=-1,i=null==e?0:e.length;++t<i;)if(n(e[t],t,e))return!0;return!1}function m(e){return e.split("")}function g(e){return e.match(Fn)||[]}function _(e,n,t){var i;return t(e,function(e,t,r){if(n(e,t,r))return i=t,!1}),i}function v(e,n,t,i){for(var r=e.length,o=t+(i?1:-1);i?o--:++o<r;)if(n(e[o],o,e))return o;return-1}function y(e,n,t){return n===n?U(e,n,t):v(e,w,t)}function b(e,n,t,i){for(var r=t-1,o=e.length;++r<o;)if(i(e[r],n))return r;return-1}function w(e){return e!==e}function x(e,n){var t=null==e?0:e.length;return t?T(e,n)/t:De}function S(e){return function(n){return null==n?Z:n[e]}}function C(e){return function(n){return null==e?Z:e[n]}}function k(e,n,t,i,r){return r(e,function(e,r,o){t=i?(i=!1,e):n(t,e,r,o)}),t}function A(e,n){var t=e.length;for(e.sort(n);t--;)e[t]=e[t].value;return e}function T(e,n){for(var t,i=-1,r=e.length;++i<r;){var o=n(e[i]);o!==Z&&(t=t===Z?o:t+o)}return t}function M(e,n){for(var t=-1,i=Array(e);++t<e;)i[t]=n(t);return i}function j(e,n){return c(n,function(n){return[n,e[n]]})}function N(e){return function(n){return e(n)}}function E(e,n){return c(n,function(n){return e[n]})}function D(e,n){return e.has(n)}function R(e,n){for(var t=-1,i=e.length;++t<i&&y(n,e[t],0)>-1;);return t}function I(e,n){for(var t=e.length;t--&&y(n,e[t],0)>-1;);return t}function L(e,n){for(var t=e.length,i=0;t--;)e[t]===n&&++i;return i}function O(e){return"\\"+Qt[e]}function P(e,n){return null==e?Z:e[n]}function q(e){return zt.test(e)}function F(e){return Bt.test(e)}function Y(e){for(var n,t=[];!(n=e.next()).done;)t.push(n.value);return t}function H(e){var n=-1,t=Array(e.size);return e.forEach(function(e,i){t[++n]=[i,e]}),t}function z(e,n){return function(t){return e(n(t))}}function B(e,n){for(var t=-1,i=e.length,r=0,o=[];++t<i;){var s=e[t];s!==n&&s!==se||(e[t]=se,o[r++]=t)}return o}function W(e){var n=-1,t=Array(e.size);return e.forEach(function(e){t[++n]=e}),t}function $(e){var n=-1,t=Array(e.size);return e.forEach(function(e){t[++n]=[e,e]}),t}function U(e,n,t){for(var i=t-1,r=e.length;++i<r;)if(e[i]===n)return i;return-1}function V(e,n,t){for(var i=t+1;i--;)if(e[i]===n)return i;return i}function G(e){return q(e)?X(e):pi(e)}function J(e){return q(e)?Q(e):m(e)}function X(e){for(var n=Yt.lastIndex=0;Yt.test(e);)++n;return n}function Q(e){return e.match(Yt)||[]}function K(e){return e.match(Ht)||[]}var Z,ee="4.17.4",ne=200,te="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",ie="Expected a function",re="__lodash_hash_undefined__",oe=500,se="__lodash_placeholder__",ae=1,le=2,ue=4,ce=1,he=2,de=1,fe=2,pe=4,me=8,ge=16,_e=32,ve=64,ye=128,be=256,we=512,xe=30,Se="...",Ce=800,ke=16,Ae=1,Te=2,Me=3,je=1/0,Ne=9007199254740991,Ee=1.7976931348623157e308,De=NaN,Re=4294967295,Ie=Re-1,Le=Re>>>1,Oe=[["ary",ye],["bind",de],["bindKey",fe],["curry",me],["curryRight",ge],["flip",we],["partial",_e],["partialRight",ve],["rearg",be]],Pe="[object Arguments]",qe="[object Array]",Fe="[object AsyncFunction]",Ye="[object Boolean]",He="[object Date]",ze="[object DOMException]",Be="[object Error]",We="[object Function]",$e="[object GeneratorFunction]",Ue="[object Map]",Ve="[object Number]",Ge="[object Null]",Je="[object Object]",Xe="[object Promise]",Qe="[object Proxy]",Ke="[object RegExp]",Ze="[object Set]",en="[object String]",nn="[object Symbol]",tn="[object Undefined]",rn="[object WeakMap]",on="[object WeakSet]",sn="[object ArrayBuffer]",an="[object DataView]",ln="[object Float32Array]",un="[object Float64Array]",cn="[object Int8Array]",hn="[object Int16Array]",dn="[object Int32Array]",fn="[object Uint8Array]",pn="[object Uint8ClampedArray]",mn="[object Uint16Array]",gn="[object Uint32Array]",_n=/\b__p \+= '';/g,vn=/\b(__p \+=) '' \+/g,yn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bn=/&(?:amp|lt|gt|quot|#39);/g,wn=/[&<>"']/g,xn=RegExp(bn.source),Sn=RegExp(wn.source),Cn=/<%-([\s\S]+?)%>/g,kn=/<%([\s\S]+?)%>/g,An=/<%=([\s\S]+?)%>/g,Tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mn=/^\w*$/,jn=/^\./,Nn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,En=/[\\^$.*+?()[\]{}|]/g,Dn=RegExp(En.source),Rn=/^\s+|\s+$/g,In=/^\s+/,Ln=/\s+$/,On=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pn=/\{\n\/\* \[wrapped with (.+)\] \*/,qn=/,? & /,Fn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yn=/\\(\\)?/g,Hn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zn=/\w*$/,Bn=/^[-+]0x[0-9a-f]+$/i,Wn=/^0b[01]+$/i,$n=/^\[object .+?Constructor\]$/,Un=/^0o[0-7]+$/i,Vn=/^(?:0|[1-9]\d*)$/,Gn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jn=/($^)/,Xn=/['\n\r\u2028\u2029\\]/g,Qn="\\ud800-\\udfff",Kn="\\u0300-\\u036f",Zn="\\ufe20-\\ufe2f",et="\\u20d0-\\u20ff",nt=Kn+Zn+et,tt="\\u2700-\\u27bf",it="a-z\\xdf-\\xf6\\xf8-\\xff",rt="\\xac\\xb1\\xd7\\xf7",ot="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",st="\\u2000-\\u206f",at=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",lt="A-Z\\xc0-\\xd6\\xd8-\\xde",ut="\\ufe0e\\ufe0f",ct=rt+ot+st+at,ht="['’]",dt="["+Qn+"]",ft="["+ct+"]",pt="["+nt+"]",mt="\\d+",gt="["+tt+"]",_t="["+it+"]",vt="[^"+Qn+ct+mt+tt+it+lt+"]",yt="\\ud83c[\\udffb-\\udfff]",bt="(?:"+pt+"|"+yt+")",wt="[^"+Qn+"]",xt="(?:\\ud83c[\\udde6-\\uddff]){2}",St="[\\ud800-\\udbff][\\udc00-\\udfff]",Ct="["+lt+"]",kt="\\u200d",At="(?:"+_t+"|"+vt+")",Tt="(?:"+Ct+"|"+vt+")",Mt="(?:"+ht+"(?:d|ll|m|re|s|t|ve))?",jt="(?:"+ht+"(?:D|LL|M|RE|S|T|VE))?",Nt=bt+"?",Et="["+ut+"]?",Dt="(?:"+kt+"(?:"+[wt,xt,St].join("|")+")"+Et+Nt+")*",Rt="\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",It="\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)",Lt=Et+Nt+Dt,Ot="(?:"+[gt,xt,St].join("|")+")"+Lt,Pt="(?:"+[wt+pt+"?",pt,xt,St,dt].join("|")+")",qt=RegExp(ht,"g"),Ft=RegExp(pt,"g"),Yt=RegExp(yt+"(?="+yt+")|"+Pt+Lt,"g"),Ht=RegExp([Ct+"?"+_t+"+"+Mt+"(?="+[ft,Ct,"$"].join("|")+")",Tt+"+"+jt+"(?="+[ft,Ct+At,"$"].join("|")+")",Ct+"?"+At+"+"+Mt,Ct+"+"+jt,It,Rt,mt,Ot].join("|"),"g"),zt=RegExp("["+kt+Qn+nt+ut+"]"),Bt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],$t=-1,Ut={};Ut[ln]=Ut[un]=Ut[cn]=Ut[hn]=Ut[dn]=Ut[fn]=Ut[pn]=Ut[mn]=Ut[gn]=!0,Ut[Pe]=Ut[qe]=Ut[sn]=Ut[Ye]=Ut[an]=Ut[He]=Ut[Be]=Ut[We]=Ut[Ue]=Ut[Ve]=Ut[Je]=Ut[Ke]=Ut[Ze]=Ut[en]=Ut[rn]=!1;var Vt={};Vt[Pe]=Vt[qe]=Vt[sn]=Vt[an]=Vt[Ye]=Vt[He]=Vt[ln]=Vt[un]=Vt[cn]=Vt[hn]=Vt[dn]=Vt[Ue]=Vt[Ve]=Vt[Je]=Vt[Ke]=Vt[Ze]=Vt[en]=Vt[nn]=Vt[fn]=Vt[pn]=Vt[mn]=Vt[gn]=!0,Vt[Be]=Vt[We]=Vt[rn]=!1;var Gt={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"},Jt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Xt={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Kt=parseFloat,Zt=parseInt,ei="object"==typeof global&&global&&global.Object===Object&&global,ni="object"==typeof self&&self&&self.Object===Object&&self,ti=ei||ni||Function("return this")(),ii="object"==typeof exports&&exports&&!exports.nodeType&&exports,ri=ii&&"object"==typeof module&&module&&!module.nodeType&&module,oi=ri&&ri.exports===ii,si=oi&&ei.process,ai=function(){try{return si&&si.binding&&si.binding("util")}catch(e){}}(),li=ai&&ai.isArrayBuffer,ui=ai&&ai.isDate,ci=ai&&ai.isMap,hi=ai&&ai.isRegExp,di=ai&&ai.isSet,fi=ai&&ai.isTypedArray,pi=S("length"),mi=C(Gt),gi=C(Jt),_i=C(Xt),vi=function m(C){function U(e){if(ul(e)&&!bd(e)&&!(e instanceof Fn)){if(e instanceof Q)return e;if(bc.call(e,"__wrapped__"))return ss(e)}return new Q(e)}function X(){}function Q(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=Z}function Fn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Re,this.__views__=[]}function Qn(){var e=new Fn(this.__wrapped__);return e.__actions__=Yr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Yr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Yr(this.__views__),e}function Kn(){if(this.__filtered__){var e=new Fn(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Zn(){var e=this.__wrapped__.value(),n=this.__dir__,t=bd(e),i=n<0,r=t?e.length:0,o=No(0,r,this.__views__),s=o.start,a=o.end,l=a-s,u=i?a:s-1,c=this.__iteratees__,h=c.length,d=0,f=Xc(l,this.__takeCount__);if(!t||!i&&r==l&&f==l)return wr(e,this.__actions__);var p=[];e:for(;l--&&d<f;){u+=n;for(var m=-1,g=e[u];++m<h;){var _=c[m],v=_.iteratee,y=_.type,b=v(g);if(y==Te)g=b;else if(!b){if(y==Ae)continue e;break e}}p[d++]=g}return p}function et(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var i=e[n];this.set(i[0],i[1])}}function nt(){this.__data__=sh?sh(null):{},this.size=0}function tt(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}function it(e){var n=this.__data__;if(sh){var t=n[e];return t===re?Z:t}return bc.call(n,e)?n[e]:Z}function rt(e){var n=this.__data__;return sh?n[e]!==Z:bc.call(n,e)}function ot(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=sh&&n===Z?re:n,this}function st(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var i=e[n];this.set(i[0],i[1])}}function at(){this.__data__=[],this.size=0}function lt(e){var n=this.__data__,t=Rt(n,e);if(t<0)return!1;var i=n.length-1;return t==i?n.pop():Ic.call(n,t,1),--this.size,!0}function ut(e){var n=this.__data__,t=Rt(n,e);return t<0?Z:n[t][1]}function ct(e){return Rt(this.__data__,e)>-1}function ht(e,n){var t=this.__data__,i=Rt(t,e);return i<0?(++this.size,t.push([e,n])):t[i][1]=n,this}function dt(e){var n=-1,t=null==e?0:e.length;for(this.clear();++n<t;){var i=e[n];this.set(i[0],i[1])}}function ft(){this.size=0,this.__data__={hash:new et,map:new(th||st),string:new et}}function pt(e){var n=Ao(this,e).delete(e);return this.size-=n?1:0,n}function mt(e){return Ao(this,e).get(e)}function gt(e){return Ao(this,e).has(e)}function _t(e,n){var t=Ao(this,e),i=t.size;return t.set(e,n),this.size+=t.size==i?0:1,this}function vt(e){var n=-1,t=null==e?0:e.length;for(this.__data__=new dt;++n<t;)this.add(e[n])}function yt(e){return this.__data__.set(e,re),this}function bt(e){return this.__data__.has(e)}function wt(e){var n=this.__data__=new st(e);this.size=n.size}function xt(){this.__data__=new st,this.size=0}function St(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}function Ct(e){return this.__data__.get(e)}function kt(e){return this.__data__.has(e)}function At(e,n){var t=this.__data__;if(t instanceof st){var i=t.__data__;if(!th||i.length<ne-1)return i.push([e,n]),this.size=++t.size,this;t=this.__data__=new dt(i)}return t.set(e,n),this.size=t.size,this}function Tt(e,n){var t=bd(e),i=!t&&yd(e),r=!t&&!i&&xd(e),o=!t&&!i&&!r&&Td(e),s=t||i||r||o,a=s?M(e.length,fc):[],l=a.length;for(var u in e)!n&&!bc.call(e,u)||s&&("length"==u||r&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||qo(u,l))||a.push(u);return a}function Mt(e){var n=e.length;return n?e[tr(0,n-1)]:Z}function jt(e,n){return ts(Yr(e),Ht(n,0,e.length))}function Nt(e){return ts(Yr(e))}function Et(e,n,t){(t===Z||Ja(e[n],t))&&(t!==Z||n in e)||Pt(e,n,t)}function Dt(e,n,t){var i=e[n];bc.call(e,n)&&Ja(i,t)&&(t!==Z||n in e)||Pt(e,n,t)}function Rt(e,n){for(var t=e.length;t--;)if(Ja(e[t][0],n))return t;return-1}function It(e,n,t,i){return vh(e,function(e,r,o){n(i,e,t(e),o)}),i}function Lt(e,n){return e&&Hr(n,Wl(n),e)}function Ot(e,n){return e&&Hr(n,$l(n),e)}function Pt(e,n,t){"__proto__"==n&&qc?qc(e,n,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[n]=t}function Yt(e,n){for(var t=-1,i=n.length,r=sc(i),o=null==e;++t<i;)r[t]=o?Z:Hl(e,n[t]);return r}function Ht(e,n,t){return e===e&&(t!==Z&&(e=e<=t?e:t),n!==Z&&(e=e>=n?e:n)),e}function zt(e,n,t,i,o,s){var a,l=n&ae,u=n&le,c=n&ue;if(t&&(a=o?t(e,i,o,s):t(e)),a!==Z)return a;if(!ll(e))return e;var h=bd(e);if(h){if(a=Ro(e),!l)return Yr(e,a)}else{var d=Nh(e),f=d==We||d==$e;if(xd(e))return Mr(e,l);if(d==Je||d==Pe||f&&!o){if(a=u||f?{}:Io(e),!l)return u?Br(e,Ot(a,e)):zr(e,Lt(a,e))}else{if(!Vt[d])return o?e:{};a=Lo(e,d,zt,l)}}s||(s=new wt);var p=s.get(e);if(p)return p;s.set(e,a);var m=c?u?xo:wo:u?$l:Wl,g=h?Z:m(e);return r(g||e,function(i,r){g&&(r=i,i=e[r]),Dt(a,r,zt(i,n,t,r,e,s))}),a}function Bt(e){var n=Wl(e);return function(t){return Gt(t,e,n)}}function Gt(e,n,t){var i=t.length;if(null==e)return!i;for(e=hc(e);i--;){var r=t[i],o=n[r],s=e[r];if(s===Z&&!(r in e)||!o(s))return!1}return!0}function Jt(e,n,t){if("function"!=typeof e)throw new pc(ie);return Rh(function(){e.apply(Z,t)},n)}function Xt(e,n,t,i){var r=-1,o=l,s=!0,a=e.length,h=[],d=n.length;if(!a)return h;t&&(n=c(n,N(t))),i?(o=u,s=!1):n.length>=ne&&(o=D,s=!1,n=new vt(n));e:for(;++r<a;){var f=e[r],p=null==t?f:t(f);if(f=i||0!==f?f:0,s&&p===p){for(var m=d;m--;)if(n[m]===p)continue e;h.push(f)}else o(n,p,i)||h.push(f)}return h}function Qt(e,n){var t=!0;return vh(e,function(e,i,r){return t=!!n(e,i,r)}),t}function ei(e,n,t){for(var i=-1,r=e.length;++i<r;){var o=e[i],s=n(o);if(null!=s&&(a===Z?s===s&&!bl(s):t(s,a)))var a=s,l=o}return l}function ni(e,n,t,i){var r=e.length;for(t=Al(t),t<0&&(t=-t>r?0:r+t),i=i===Z||i>r?r:Al(i),i<0&&(i+=r),i=t>i?0:Tl(i);t<i;)e[t++]=n;return e}function ii(e,n){var t=[];return vh(e,function(e,i,r){n(e,i,r)&&t.push(e)}),t}function ri(e,n,t,i,r){var o=-1,s=e.length;for(t||(t=Po),r||(r=[]);++o<s;){var a=e[o];n>0&&t(a)?n>1?ri(a,n-1,t,i,r):h(r,a):i||(r[r.length]=a)}return r}function si(e,n){return e&&bh(e,n,Wl)}function ai(e,n){return e&&wh(e,n,Wl)}function pi(e,n){return a(n,function(n){return ol(e[n])})}function vi(e,n){n=Ar(n,e);for(var t=0,i=n.length;null!=e&&t<i;)e=e[is(n[t++])];return t&&t==i?e:Z}function bi(e,n,t){var i=n(e);return bd(e)?i:h(i,t(e))}function wi(e){return null==e?e===Z?tn:Ge:Pc&&Pc in hc(e)?jo(e):Xo(e)}function xi(e,n){return e>n}function Si(e,n){return null!=e&&bc.call(e,n)}function Ci(e,n){return null!=e&&n in hc(e)}function ki(e,n,t){return e>=Xc(n,t)&&e<Jc(n,t)}function Ai(e,n,t){for(var i=t?u:l,r=e[0].length,o=e.length,s=o,a=sc(o),h=1/0,d=[];s--;){var f=e[s];s&&n&&(f=c(f,N(n))),h=Xc(f.length,h),a[s]=!t&&(n||r>=120&&f.length>=120)?new vt(s&&f):Z}f=e[0];var p=-1,m=a[0];e:for(;++p<r&&d.length<h;){var g=f[p],_=n?n(g):g;if(g=t||0!==g?g:0,!(m?D(m,_):i(d,_,t))){for(s=o;--s;){var v=a[s];if(!(v?D(v,_):i(e[s],_,t)))continue e}m&&m.push(_),d.push(g)}}return d}function Ti(e,n,t,i){return si(e,function(e,r,o){n(i,t(e),r,o)}),i}function Mi(e,n,i){n=Ar(n,e),e=Ko(e,n);var r=null==e?e:e[is(ks(n))];return null==r?Z:t(r,e,i)}function ji(e){return ul(e)&&wi(e)==Pe}function Ni(e){return ul(e)&&wi(e)==sn}function Ei(e){return ul(e)&&wi(e)==He}function Di(e,n,t,i,r){return e===n||(null==e||null==n||!ul(e)&&!ul(n)?e!==e&&n!==n:Ri(e,n,t,i,Di,r))}function Ri(e,n,t,i,r,o){var s=bd(e),a=bd(n),l=s?qe:Nh(e),u=a?qe:Nh(n);l=l==Pe?Je:l,u=u==Pe?Je:u;var c=l==Je,h=u==Je,d=l==u;if(d&&xd(e)){if(!xd(n))return!1;s=!0,c=!1}if(d&&!c)return o||(o=new wt),s||Td(e)?_o(e,n,t,i,r,o):vo(e,n,l,t,i,r,o);if(!(t&ce)){var f=c&&bc.call(e,"__wrapped__"),p=h&&bc.call(n,"__wrapped__");if(f||p){var m=f?e.value():e,g=p?n.value():n;return o||(o=new wt),r(m,g,t,i,o)}}return!!d&&(o||(o=new wt),yo(e,n,t,i,r,o))}function Ii(e){return ul(e)&&Nh(e)==Ue}function Li(e,n,t,i){var r=t.length,o=r,s=!i;if(null==e)return!o;for(e=hc(e);r--;){var a=t[r];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<o;){a=t[r];var l=a[0],u=e[l],c=a[1];if(s&&a[2]){if(u===Z&&!(l in e))return!1}else{var h=new wt;if(i)var d=i(u,c,l,e,n,h);if(!(d===Z?Di(c,u,ce|he,i,h):d))return!1}}return!0}function Oi(e){if(!ll(e)||Bo(e))return!1;var n=ol(e)?Ac:$n;return n.test(rs(e))}function Pi(e){return ul(e)&&wi(e)==Ke}function qi(e){return ul(e)&&Nh(e)==Ze}function Fi(e){return ul(e)&&al(e.length)&&!!Ut[wi(e)]}function Yi(e){return"function"==typeof e?e:null==e?Iu:"object"==typeof e?bd(e)?Ui(e[0],e[1]):$i(e):zu(e)}function Hi(e){if(!Wo(e))return Gc(e);var n=[];for(var t in hc(e))bc.call(e,t)&&"constructor"!=t&&n.push(t);return n}function zi(e){if(!ll(e))return Jo(e);var n=Wo(e),t=[];for(var i in e)("constructor"!=i||!n&&bc.call(e,i))&&t.push(i);return t}function Bi(e,n){return e<n}function Wi(e,n){var t=-1,i=Xa(e)?sc(e.length):[];return vh(e,function(e,r,o){i[++t]=n(e,r,o)}),i}function $i(e){var n=To(e);return 1==n.length&&n[0][2]?Uo(n[0][0],n[0][1]):function(t){return t===e||Li(t,e,n)}}function Ui(e,n){return Yo(e)&&$o(n)?Uo(is(e),n):function(t){var i=Hl(t,e);return i===Z&&i===n?Bl(t,e):Di(n,i,ce|he)}}function Vi(e,n,t,i,r){e!==n&&bh(n,function(o,s){if(ll(o))r||(r=new wt),Gi(e,n,s,t,Vi,i,r);else{var a=i?i(e[s],o,s+"",e,n,r):Z;a===Z&&(a=o),Et(e,s,a)}},$l)}function Gi(e,n,t,i,r,o,s){var a=e[t],l=n[t],u=s.get(l);if(u)return void Et(e,t,u);var c=o?o(a,l,t+"",e,n,s):Z,h=c===Z;if(h){var d=bd(l),f=!d&&xd(l),p=!d&&!f&&Td(l);c=l,d||f||p?bd(a)?c=a:Qa(a)?c=Yr(a):f?(h=!1,c=Mr(l,!0)):p?(h=!1,c=Lr(l,!0)):c=[]:_l(l)||yd(l)?(c=a,yd(a)?c=jl(a):(!ll(a)||i&&ol(a))&&(c=Io(l))):h=!1}h&&(s.set(l,c),r(c,l,i,o,s),s.delete(l)),Et(e,t,c)}function Ji(e,n){var t=e.length;if(t)return n+=n<0?t:0,qo(n,t)?e[n]:Z}function Xi(e,n,t){var i=-1;n=c(n.length?n:[Iu],N(ko()));var r=Wi(e,function(e,t,r){var o=c(n,function(n){return n(e)});return{criteria:o,index:++i,value:e
}});return A(r,function(e,n){return Pr(e,n,t)})}function Qi(e,n){return Ki(e,n,function(n,t){return Bl(e,t)})}function Ki(e,n,t){for(var i=-1,r=n.length,o={};++i<r;){var s=n[i],a=vi(e,s);t(a,s)&&lr(o,Ar(s,e),a)}return o}function Zi(e){return function(n){return vi(n,e)}}function er(e,n,t,i){var r=i?b:y,o=-1,s=n.length,a=e;for(e===n&&(n=Yr(n)),t&&(a=c(e,N(t)));++o<s;)for(var l=0,u=n[o],h=t?t(u):u;(l=r(a,h,l,i))>-1;)a!==e&&Ic.call(a,l,1),Ic.call(e,l,1);return e}function nr(e,n){for(var t=e?n.length:0,i=t-1;t--;){var r=n[t];if(t==i||r!==o){var o=r;qo(r)?Ic.call(e,r,1):vr(e,r)}}return e}function tr(e,n){return e+Bc(Zc()*(n-e+1))}function ir(e,n,t,i){for(var r=-1,o=Jc(zc((n-e)/(t||1)),0),s=sc(o);o--;)s[i?o:++r]=e,e+=t;return s}function rr(e,n){var t="";if(!e||n<1||n>Ne)return t;do n%2&&(t+=e),n=Bc(n/2),n&&(e+=e);while(n);return t}function or(e,n){return Ih(Qo(e,n,Iu),e+"")}function sr(e){return Mt(iu(e))}function ar(e,n){var t=iu(e);return ts(t,Ht(n,0,t.length))}function lr(e,n,t,i){if(!ll(e))return e;n=Ar(n,e);for(var r=-1,o=n.length,s=o-1,a=e;null!=a&&++r<o;){var l=is(n[r]),u=t;if(r!=s){var c=a[l];u=i?i(c,l,a):Z,u===Z&&(u=ll(c)?c:qo(n[r+1])?[]:{})}Dt(a,l,u),a=a[l]}return e}function ur(e){return ts(iu(e))}function cr(e,n,t){var i=-1,r=e.length;n<0&&(n=-n>r?0:r+n),t=t>r?r:t,t<0&&(t+=r),r=n>t?0:t-n>>>0,n>>>=0;for(var o=sc(r);++i<r;)o[i]=e[i+n];return o}function hr(e,n){var t;return vh(e,function(e,i,r){return t=n(e,i,r),!t}),!!t}function dr(e,n,t){var i=0,r=null==e?i:e.length;if("number"==typeof n&&n===n&&r<=Le){for(;i<r;){var o=i+r>>>1,s=e[o];null!==s&&!bl(s)&&(t?s<=n:s<n)?i=o+1:r=o}return r}return fr(e,n,Iu,t)}function fr(e,n,t,i){n=t(n);for(var r=0,o=null==e?0:e.length,s=n!==n,a=null===n,l=bl(n),u=n===Z;r<o;){var c=Bc((r+o)/2),h=t(e[c]),d=h!==Z,f=null===h,p=h===h,m=bl(h);if(s)var g=i||p;else g=u?p&&(i||d):a?p&&d&&(i||!f):l?p&&d&&!f&&(i||!m):!f&&!m&&(i?h<=n:h<n);g?r=c+1:o=c}return Xc(o,Ie)}function pr(e,n){for(var t=-1,i=e.length,r=0,o=[];++t<i;){var s=e[t],a=n?n(s):s;if(!t||!Ja(a,l)){var l=a;o[r++]=0===s?0:s}}return o}function mr(e){return"number"==typeof e?e:bl(e)?De:+e}function gr(e){if("string"==typeof e)return e;if(bd(e))return c(e,gr)+"";if(bl(e))return gh?gh.call(e):"";var n=e+"";return"0"==n&&1/e==-je?"-0":n}function _r(e,n,t){var i=-1,r=l,o=e.length,s=!0,a=[],c=a;if(t)s=!1,r=u;else if(o>=ne){var h=n?null:Ah(e);if(h)return W(h);s=!1,r=D,c=new vt}else c=n?[]:a;e:for(;++i<o;){var d=e[i],f=n?n(d):d;if(d=t||0!==d?d:0,s&&f===f){for(var p=c.length;p--;)if(c[p]===f)continue e;n&&c.push(f),a.push(d)}else r(c,f,t)||(c!==a&&c.push(f),a.push(d))}return a}function vr(e,n){return n=Ar(n,e),e=Ko(e,n),null==e||delete e[is(ks(n))]}function yr(e,n,t,i){return lr(e,n,t(vi(e,n)),i)}function br(e,n,t,i){for(var r=e.length,o=i?r:-1;(i?o--:++o<r)&&n(e[o],o,e););return t?cr(e,i?0:o,i?o+1:r):cr(e,i?o+1:0,i?r:o)}function wr(e,n){var t=e;return t instanceof Fn&&(t=t.value()),d(n,function(e,n){return n.func.apply(n.thisArg,h([e],n.args))},t)}function xr(e,n,t){var i=e.length;if(i<2)return i?_r(e[0]):[];for(var r=-1,o=sc(i);++r<i;)for(var s=e[r],a=-1;++a<i;)a!=r&&(o[r]=Xt(o[r]||s,e[a],n,t));return _r(ri(o,1),n,t)}function Sr(e,n,t){for(var i=-1,r=e.length,o=n.length,s={};++i<r;){var a=i<o?n[i]:Z;t(s,e[i],a)}return s}function Cr(e){return Qa(e)?e:[]}function kr(e){return"function"==typeof e?e:Iu}function Ar(e,n){return bd(e)?e:Yo(e,n)?[e]:Lh(El(e))}function Tr(e,n,t){var i=e.length;return t=t===Z?i:t,!n&&t>=i?e:cr(e,n,t)}function Mr(e,n){if(n)return e.slice();var t=e.length,i=Nc?Nc(t):new e.constructor(t);return e.copy(i),i}function jr(e){var n=new e.constructor(e.byteLength);return new jc(n).set(new jc(e)),n}function Nr(e,n){var t=n?jr(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}function Er(n,t,i){var r=t?i(H(n),ae):H(n);return d(r,e,new n.constructor)}function Dr(e){var n=new e.constructor(e.source,zn.exec(e));return n.lastIndex=e.lastIndex,n}function Rr(e,t,i){var r=t?i(W(e),ae):W(e);return d(r,n,new e.constructor)}function Ir(e){return mh?hc(mh.call(e)):{}}function Lr(e,n){var t=n?jr(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}function Or(e,n){if(e!==n){var t=e!==Z,i=null===e,r=e===e,o=bl(e),s=n!==Z,a=null===n,l=n===n,u=bl(n);if(!a&&!u&&!o&&e>n||o&&s&&l&&!a&&!u||i&&s&&l||!t&&l||!r)return 1;if(!i&&!o&&!u&&e<n||u&&t&&r&&!i&&!o||a&&t&&r||!s&&r||!l)return-1}return 0}function Pr(e,n,t){for(var i=-1,r=e.criteria,o=n.criteria,s=r.length,a=t.length;++i<s;){var l=Or(r[i],o[i]);if(l){if(i>=a)return l;var u=t[i];return l*("desc"==u?-1:1)}}return e.index-n.index}function qr(e,n,t,i){for(var r=-1,o=e.length,s=t.length,a=-1,l=n.length,u=Jc(o-s,0),c=sc(l+u),h=!i;++a<l;)c[a]=n[a];for(;++r<s;)(h||r<o)&&(c[t[r]]=e[r]);for(;u--;)c[a++]=e[r++];return c}function Fr(e,n,t,i){for(var r=-1,o=e.length,s=-1,a=t.length,l=-1,u=n.length,c=Jc(o-a,0),h=sc(c+u),d=!i;++r<c;)h[r]=e[r];for(var f=r;++l<u;)h[f+l]=n[l];for(;++s<a;)(d||r<o)&&(h[f+t[s]]=e[r++]);return h}function Yr(e,n){var t=-1,i=e.length;for(n||(n=sc(i));++t<i;)n[t]=e[t];return n}function Hr(e,n,t,i){var r=!t;t||(t={});for(var o=-1,s=n.length;++o<s;){var a=n[o],l=i?i(t[a],e[a],a,t,e):Z;l===Z&&(l=e[a]),r?Pt(t,a,l):Dt(t,a,l)}return t}function zr(e,n){return Hr(e,Mh(e),n)}function Br(e,n){return Hr(e,jh(e),n)}function Wr(e,n){return function(t,r){var o=bd(t)?i:It,s=n?n():{};return o(t,e,ko(r,2),s)}}function $r(e){return or(function(n,t){var i=-1,r=t.length,o=r>1?t[r-1]:Z,s=r>2?t[2]:Z;for(o=e.length>3&&"function"==typeof o?(r--,o):Z,s&&Fo(t[0],t[1],s)&&(o=r<3?Z:o,r=1),n=hc(n);++i<r;){var a=t[i];a&&e(n,a,i,o)}return n})}function Ur(e,n){return function(t,i){if(null==t)return t;if(!Xa(t))return e(t,i);for(var r=t.length,o=n?r:-1,s=hc(t);(n?o--:++o<r)&&i(s[o],o,s)!==!1;);return t}}function Vr(e){return function(n,t,i){for(var r=-1,o=hc(n),s=i(n),a=s.length;a--;){var l=s[e?a:++r];if(t(o[l],l,o)===!1)break}return n}}function Gr(e,n,t){function i(){var n=this&&this!==ti&&this instanceof i?o:e;return n.apply(r?t:this,arguments)}var r=n&de,o=Qr(e);return i}function Jr(e){return function(n){n=El(n);var t=q(n)?J(n):Z,i=t?t[0]:n.charAt(0),r=t?Tr(t,1).join(""):n.slice(1);return i[e]()+r}}function Xr(e){return function(n){return d(ju(uu(n).replace(qt,"")),e,"")}}function Qr(e){return function(){var n=arguments;switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3]);case 5:return new e(n[0],n[1],n[2],n[3],n[4]);case 6:return new e(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new e(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var t=_h(e.prototype),i=e.apply(t,n);return ll(i)?i:t}}function Kr(e,n,i){function r(){for(var s=arguments.length,a=sc(s),l=s,u=Co(r);l--;)a[l]=arguments[l];var c=s<3&&a[0]!==u&&a[s-1]!==u?[]:B(a,u);if(s-=c.length,s<i)return uo(e,n,no,r.placeholder,Z,a,c,Z,Z,i-s);var h=this&&this!==ti&&this instanceof r?o:e;return t(h,this,a)}var o=Qr(e);return r}function Zr(e){return function(n,t,i){var r=hc(n);if(!Xa(n)){var o=ko(t,3);n=Wl(n),t=function(e){return o(r[e],e,r)}}var s=e(n,t,i);return s>-1?r[o?n[s]:s]:Z}}function eo(e){return bo(function(n){var t=n.length,i=t,r=Q.prototype.thru;for(e&&n.reverse();i--;){var o=n[i];if("function"!=typeof o)throw new pc(ie);if(r&&!s&&"wrapper"==So(o))var s=new Q([],!0)}for(i=s?i:t;++i<t;){o=n[i];var a=So(o),l="wrapper"==a?Th(o):Z;s=l&&zo(l[0])&&l[1]==(ye|me|_e|be)&&!l[4].length&&1==l[9]?s[So(l[0])].apply(s,l[3]):1==o.length&&zo(o)?s[a]():s.thru(o)}return function(){var e=arguments,i=e[0];if(s&&1==e.length&&bd(i))return s.plant(i).value();for(var r=0,o=t?n[r].apply(this,e):i;++r<t;)o=n[r].call(this,o);return o}})}function no(e,n,t,i,r,o,s,a,l,u){function c(){for(var _=arguments.length,v=sc(_),y=_;y--;)v[y]=arguments[y];if(p)var b=Co(c),w=L(v,b);if(i&&(v=qr(v,i,r,p)),o&&(v=Fr(v,o,s,p)),_-=w,p&&_<u){var x=B(v,b);return uo(e,n,no,c.placeholder,t,v,x,a,l,u-_)}var S=d?t:this,C=f?S[e]:e;return _=v.length,a?v=Zo(v,a):m&&_>1&&v.reverse(),h&&l<_&&(v.length=l),this&&this!==ti&&this instanceof c&&(C=g||Qr(C)),C.apply(S,v)}var h=n&ye,d=n&de,f=n&fe,p=n&(me|ge),m=n&we,g=f?Z:Qr(e);return c}function to(e,n){return function(t,i){return Ti(t,e,n(i),{})}}function io(e,n){return function(t,i){var r;if(t===Z&&i===Z)return n;if(t!==Z&&(r=t),i!==Z){if(r===Z)return i;"string"==typeof t||"string"==typeof i?(t=gr(t),i=gr(i)):(t=mr(t),i=mr(i)),r=e(t,i)}return r}}function ro(e){return bo(function(n){return n=c(n,N(ko())),or(function(i){var r=this;return e(n,function(e){return t(e,r,i)})})})}function oo(e,n){n=n===Z?" ":gr(n);var t=n.length;if(t<2)return t?rr(n,e):n;var i=rr(n,zc(e/G(n)));return q(n)?Tr(J(i),0,e).join(""):i.slice(0,e)}function so(e,n,i,r){function o(){for(var n=-1,l=arguments.length,u=-1,c=r.length,h=sc(c+l),d=this&&this!==ti&&this instanceof o?a:e;++u<c;)h[u]=r[u];for(;l--;)h[u++]=arguments[++n];return t(d,s?i:this,h)}var s=n&de,a=Qr(e);return o}function ao(e){return function(n,t,i){return i&&"number"!=typeof i&&Fo(n,t,i)&&(t=i=Z),n=kl(n),t===Z?(t=n,n=0):t=kl(t),i=i===Z?n<t?1:-1:kl(i),ir(n,t,i,e)}}function lo(e){return function(n,t){return"string"==typeof n&&"string"==typeof t||(n=Ml(n),t=Ml(t)),e(n,t)}}function uo(e,n,t,i,r,o,s,a,l,u){var c=n&me,h=c?s:Z,d=c?Z:s,f=c?o:Z,p=c?Z:o;n|=c?_e:ve,n&=~(c?ve:_e),n&pe||(n&=~(de|fe));var m=[e,n,r,f,h,p,d,a,l,u],g=t.apply(Z,m);return zo(e)&&Dh(g,m),g.placeholder=i,es(g,e,n)}function co(e){var n=cc[e];return function(e,t){if(e=Ml(e),t=null==t?0:Xc(Al(t),292)){var i=(El(e)+"e").split("e"),r=n(i[0]+"e"+(+i[1]+t));return i=(El(r)+"e").split("e"),+(i[0]+"e"+(+i[1]-t))}return n(e)}}function ho(e){return function(n){var t=Nh(n);return t==Ue?H(n):t==Ze?$(n):j(n,e(n))}}function fo(e,n,t,i,r,o,s,a){var l=n&fe;if(!l&&"function"!=typeof e)throw new pc(ie);var u=i?i.length:0;if(u||(n&=~(_e|ve),i=r=Z),s=s===Z?s:Jc(Al(s),0),a=a===Z?a:Al(a),u-=r?r.length:0,n&ve){var c=i,h=r;i=r=Z}var d=l?Z:Th(e),f=[e,n,t,i,r,c,h,o,s,a];if(d&&Go(f,d),e=f[0],n=f[1],t=f[2],i=f[3],r=f[4],a=f[9]=f[9]===Z?l?0:e.length:Jc(f[9]-u,0),!a&&n&(me|ge)&&(n&=~(me|ge)),n&&n!=de)p=n==me||n==ge?Kr(e,n,a):n!=_e&&n!=(de|_e)||r.length?no.apply(Z,f):so(e,n,t,i);else var p=Gr(e,n,t);var m=d?xh:Dh;return es(m(p,f),e,n)}function po(e,n,t,i){return e===Z||Ja(e,_c[t])&&!bc.call(i,t)?n:e}function mo(e,n,t,i,r,o){return ll(e)&&ll(n)&&(o.set(n,e),Vi(e,n,Z,mo,o),o.delete(n)),e}function go(e){return _l(e)?Z:e}function _o(e,n,t,i,r,o){var s=t&ce,a=e.length,l=n.length;if(a!=l&&!(s&&l>a))return!1;var u=o.get(e);if(u&&o.get(n))return u==n;var c=-1,h=!0,d=t&he?new vt:Z;for(o.set(e,n),o.set(n,e);++c<a;){var f=e[c],m=n[c];if(i)var g=s?i(m,f,c,n,e,o):i(f,m,c,e,n,o);if(g!==Z){if(g)continue;h=!1;break}if(d){if(!p(n,function(e,n){if(!D(d,n)&&(f===e||r(f,e,t,i,o)))return d.push(n)})){h=!1;break}}else if(f!==m&&!r(f,m,t,i,o)){h=!1;break}}return o.delete(e),o.delete(n),h}function vo(e,n,t,i,r,o,s){switch(t){case an:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case sn:return!(e.byteLength!=n.byteLength||!o(new jc(e),new jc(n)));case Ye:case He:case Ve:return Ja(+e,+n);case Be:return e.name==n.name&&e.message==n.message;case Ke:case en:return e==n+"";case Ue:var a=H;case Ze:var l=i&ce;if(a||(a=W),e.size!=n.size&&!l)return!1;var u=s.get(e);if(u)return u==n;i|=he,s.set(e,n);var c=_o(a(e),a(n),i,r,o,s);return s.delete(e),c;case nn:if(mh)return mh.call(e)==mh.call(n)}return!1}function yo(e,n,t,i,r,o){var s=t&ce,a=wo(e),l=a.length,u=wo(n),c=u.length;if(l!=c&&!s)return!1;for(var h=l;h--;){var d=a[h];if(!(s?d in n:bc.call(n,d)))return!1}var f=o.get(e);if(f&&o.get(n))return f==n;var p=!0;o.set(e,n),o.set(n,e);for(var m=s;++h<l;){d=a[h];var g=e[d],_=n[d];if(i)var v=s?i(_,g,d,n,e,o):i(g,_,d,e,n,o);if(!(v===Z?g===_||r(g,_,t,i,o):v)){p=!1;break}m||(m="constructor"==d)}if(p&&!m){var y=e.constructor,b=n.constructor;y!=b&&"constructor"in e&&"constructor"in n&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(p=!1)}return o.delete(e),o.delete(n),p}function bo(e){return Ih(Qo(e,Z,_s),e+"")}function wo(e){return bi(e,Wl,Mh)}function xo(e){return bi(e,$l,jh)}function So(e){for(var n=e.name+"",t=lh[n],i=bc.call(lh,n)?t.length:0;i--;){var r=t[i],o=r.func;if(null==o||o==e)return r.name}return n}function Co(e){var n=bc.call(U,"placeholder")?U:e;return n.placeholder}function ko(){var e=U.iteratee||Lu;return e=e===Lu?Yi:e,arguments.length?e(arguments[0],arguments[1]):e}function Ao(e,n){var t=e.__data__;return Ho(n)?t["string"==typeof n?"string":"hash"]:t.map}function To(e){for(var n=Wl(e),t=n.length;t--;){var i=n[t],r=e[i];n[t]=[i,r,$o(r)]}return n}function Mo(e,n){var t=P(e,n);return Oi(t)?t:Z}function jo(e){var n=bc.call(e,Pc),t=e[Pc];try{e[Pc]=Z;var i=!0}catch(e){}var r=Sc.call(e);return i&&(n?e[Pc]=t:delete e[Pc]),r}function No(e,n,t){for(var i=-1,r=t.length;++i<r;){var o=t[i],s=o.size;switch(o.type){case"drop":e+=s;break;case"dropRight":n-=s;break;case"take":n=Xc(n,e+s);break;case"takeRight":e=Jc(e,n-s)}}return{start:e,end:n}}function Eo(e){var n=e.match(Pn);return n?n[1].split(qn):[]}function Do(e,n,t){n=Ar(n,e);for(var i=-1,r=n.length,o=!1;++i<r;){var s=is(n[i]);if(!(o=null!=e&&t(e,s)))break;e=e[s]}return o||++i!=r?o:(r=null==e?0:e.length,!!r&&al(r)&&qo(s,r)&&(bd(e)||yd(e)))}function Ro(e){var n=e.length,t=e.constructor(n);return n&&"string"==typeof e[0]&&bc.call(e,"index")&&(t.index=e.index,t.input=e.input),t}function Io(e){return"function"!=typeof e.constructor||Wo(e)?{}:_h(Ec(e))}function Lo(e,n,t,i){var r=e.constructor;switch(n){case sn:return jr(e);case Ye:case He:return new r(+e);case an:return Nr(e,i);case ln:case un:case cn:case hn:case dn:case fn:case pn:case mn:case gn:return Lr(e,i);case Ue:return Er(e,i,t);case Ve:case en:return new r(e);case Ke:return Dr(e);case Ze:return Rr(e,i,t);case nn:return Ir(e)}}function Oo(e,n){var t=n.length;if(!t)return e;var i=t-1;return n[i]=(t>1?"& ":"")+n[i],n=n.join(t>2?", ":" "),e.replace(On,"{\n/* [wrapped with "+n+"] */\n")}function Po(e){return bd(e)||yd(e)||!!(Lc&&e&&e[Lc])}function qo(e,n){return n=null==n?Ne:n,!!n&&("number"==typeof e||Vn.test(e))&&e>-1&&e%1==0&&e<n}function Fo(e,n,t){if(!ll(t))return!1;var i=typeof n;return!!("number"==i?Xa(t)&&qo(n,t.length):"string"==i&&n in t)&&Ja(t[n],e)}function Yo(e,n){if(bd(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!bl(e))||(Mn.test(e)||!Tn.test(e)||null!=n&&e in hc(n))}function Ho(e){var n=typeof e;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e}function zo(e){var n=So(e),t=U[n];if("function"!=typeof t||!(n in Fn.prototype))return!1;if(e===t)return!0;var i=Th(t);return!!i&&e===i[0]}function Bo(e){return!!xc&&xc in e}function Wo(e){var n=e&&e.constructor,t="function"==typeof n&&n.prototype||_c;return e===t}function $o(e){return e===e&&!ll(e)}function Uo(e,n){return function(t){return null!=t&&(t[e]===n&&(n!==Z||e in hc(t)))}}function Vo(e){var n=La(e,function(e){return t.size===oe&&t.clear(),e}),t=n.cache;return n}function Go(e,n){var t=e[1],i=n[1],r=t|i,o=r<(de|fe|ye),s=i==ye&&t==me||i==ye&&t==be&&e[7].length<=n[8]||i==(ye|be)&&n[7].length<=n[8]&&t==me;if(!o&&!s)return e;i&de&&(e[2]=n[2],r|=t&de?0:pe);var a=n[3];if(a){var l=e[3];e[3]=l?qr(l,a,n[4]):a,e[4]=l?B(e[3],se):n[4]}return a=n[5],a&&(l=e[5],e[5]=l?Fr(l,a,n[6]):a,e[6]=l?B(e[5],se):n[6]),a=n[7],a&&(e[7]=a),i&ye&&(e[8]=null==e[8]?n[8]:Xc(e[8],n[8])),null==e[9]&&(e[9]=n[9]),e[0]=n[0],e[1]=r,e}function Jo(e){var n=[];if(null!=e)for(var t in hc(e))n.push(t);return n}function Xo(e){return Sc.call(e)}function Qo(e,n,i){return n=Jc(n===Z?e.length-1:n,0),function(){for(var r=arguments,o=-1,s=Jc(r.length-n,0),a=sc(s);++o<s;)a[o]=r[n+o];o=-1;for(var l=sc(n+1);++o<n;)l[o]=r[o];return l[n]=i(a),t(e,this,l)}}function Ko(e,n){return n.length<2?e:vi(e,cr(n,0,-1))}function Zo(e,n){for(var t=e.length,i=Xc(n.length,t),r=Yr(e);i--;){var o=n[i];e[i]=qo(o,t)?r[o]:Z}return e}function es(e,n,t){var i=n+"";return Ih(e,Oo(i,os(Eo(i),t)))}function ns(e){var n=0,t=0;return function(){var i=Qc(),r=ke-(i-t);if(t=i,r>0){if(++n>=Ce)return arguments[0]}else n=0;return e.apply(Z,arguments)}}function ts(e,n){var t=-1,i=e.length,r=i-1;for(n=n===Z?i:n;++t<n;){var o=tr(t,r),s=e[o];e[o]=e[t],e[t]=s}return e.length=n,e}function is(e){if("string"==typeof e||bl(e))return e;var n=e+"";return"0"==n&&1/e==-je?"-0":n}function rs(e){if(null!=e){try{return yc.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function os(e,n){return r(Oe,function(t){var i="_."+t[0];n&t[1]&&!l(e,i)&&e.push(i)}),e.sort()}function ss(e){if(e instanceof Fn)return e.clone();var n=new Q(e.__wrapped__,e.__chain__);return n.__actions__=Yr(e.__actions__),n.__index__=e.__index__,n.__values__=e.__values__,n}function as(e,n,t){n=(t?Fo(e,n,t):n===Z)?1:Jc(Al(n),0);var i=null==e?0:e.length;if(!i||n<1)return[];for(var r=0,o=0,s=sc(zc(i/n));r<i;)s[o++]=cr(e,r,r+=n);return s}function ls(e){for(var n=-1,t=null==e?0:e.length,i=0,r=[];++n<t;){var o=e[n];o&&(r[i++]=o)}return r}function us(){var e=arguments.length;if(!e)return[];for(var n=sc(e-1),t=arguments[0],i=e;i--;)n[i-1]=arguments[i];return h(bd(t)?Yr(t):[t],ri(n,1))}function cs(e,n,t){var i=null==e?0:e.length;return i?(n=t||n===Z?1:Al(n),cr(e,n<0?0:n,i)):[]}function hs(e,n,t){var i=null==e?0:e.length;return i?(n=t||n===Z?1:Al(n),n=i-n,cr(e,0,n<0?0:n)):[]}function ds(e,n){return e&&e.length?br(e,ko(n,3),!0,!0):[]}function fs(e,n){return e&&e.length?br(e,ko(n,3),!0):[]}function ps(e,n,t,i){var r=null==e?0:e.length;return r?(t&&"number"!=typeof t&&Fo(e,n,t)&&(t=0,i=r),ni(e,n,t,i)):[]}function ms(e,n,t){var i=null==e?0:e.length;if(!i)return-1;var r=null==t?0:Al(t);return r<0&&(r=Jc(i+r,0)),v(e,ko(n,3),r)}function gs(e,n,t){var i=null==e?0:e.length;if(!i)return-1;var r=i-1;return t!==Z&&(r=Al(t),r=t<0?Jc(i+r,0):Xc(r,i-1)),v(e,ko(n,3),r,!0)}function _s(e){var n=null==e?0:e.length;return n?ri(e,1):[]}function vs(e){var n=null==e?0:e.length;return n?ri(e,je):[]}function ys(e,n){var t=null==e?0:e.length;return t?(n=n===Z?1:Al(n),ri(e,n)):[]}function bs(e){for(var n=-1,t=null==e?0:e.length,i={};++n<t;){var r=e[n];i[r[0]]=r[1]}return i}function ws(e){return e&&e.length?e[0]:Z}function xs(e,n,t){var i=null==e?0:e.length;if(!i)return-1;var r=null==t?0:Al(t);return r<0&&(r=Jc(i+r,0)),y(e,n,r)}function Ss(e){var n=null==e?0:e.length;return n?cr(e,0,-1):[]}function Cs(e,n){return null==e?"":Vc.call(e,n)}function ks(e){var n=null==e?0:e.length;return n?e[n-1]:Z}function As(e,n,t){var i=null==e?0:e.length;if(!i)return-1;var r=i;return t!==Z&&(r=Al(t),r=r<0?Jc(i+r,0):Xc(r,i-1)),n===n?V(e,n,r):v(e,w,r,!0)}function Ts(e,n){return e&&e.length?Ji(e,Al(n)):Z}function Ms(e,n){return e&&e.length&&n&&n.length?er(e,n):e}function js(e,n,t){return e&&e.length&&n&&n.length?er(e,n,ko(t,2)):e}function Ns(e,n,t){return e&&e.length&&n&&n.length?er(e,n,Z,t):e}function Es(e,n){var t=[];if(!e||!e.length)return t;var i=-1,r=[],o=e.length;for(n=ko(n,3);++i<o;){var s=e[i];n(s,i,e)&&(t.push(s),r.push(i))}return nr(e,r),t}function Ds(e){return null==e?e:eh.call(e)}function Rs(e,n,t){var i=null==e?0:e.length;return i?(t&&"number"!=typeof t&&Fo(e,n,t)?(n=0,t=i):(n=null==n?0:Al(n),t=t===Z?i:Al(t)),cr(e,n,t)):[]}function Is(e,n){return dr(e,n)}function Ls(e,n,t){return fr(e,n,ko(t,2))}function Os(e,n){var t=null==e?0:e.length;if(t){var i=dr(e,n);if(i<t&&Ja(e[i],n))return i}return-1}function Ps(e,n){return dr(e,n,!0)}function qs(e,n,t){return fr(e,n,ko(t,2),!0)}function Fs(e,n){var t=null==e?0:e.length;if(t){var i=dr(e,n,!0)-1;if(Ja(e[i],n))return i}return-1}function Ys(e){return e&&e.length?pr(e):[]}function Hs(e,n){return e&&e.length?pr(e,ko(n,2)):[]}function zs(e){var n=null==e?0:e.length;return n?cr(e,1,n):[]}function Bs(e,n,t){return e&&e.length?(n=t||n===Z?1:Al(n),cr(e,0,n<0?0:n)):[]}function Ws(e,n,t){var i=null==e?0:e.length;return i?(n=t||n===Z?1:Al(n),n=i-n,cr(e,n<0?0:n,i)):[]}function $s(e,n){return e&&e.length?br(e,ko(n,3),!1,!0):[]}function Us(e,n){return e&&e.length?br(e,ko(n,3)):[]}function Vs(e){return e&&e.length?_r(e):[]}function Gs(e,n){return e&&e.length?_r(e,ko(n,2)):[]}function Js(e,n){return n="function"==typeof n?n:Z,e&&e.length?_r(e,Z,n):[]}function Xs(e){if(!e||!e.length)return[];var n=0;return e=a(e,function(e){if(Qa(e))return n=Jc(e.length,n),!0}),M(n,function(n){return c(e,S(n))})}function Qs(e,n){if(!e||!e.length)return[];var i=Xs(e);return null==n?i:c(i,function(e){return t(n,Z,e)})}function Ks(e,n){return Sr(e||[],n||[],Dt)}function Zs(e,n){return Sr(e||[],n||[],lr)}function ea(e){var n=U(e);return n.__chain__=!0,n}function na(e,n){return n(e),e}function ta(e,n){return n(e)}function ia(){return ea(this)}function ra(){return new Q(this.value(),this.__chain__)}function oa(){this.__values__===Z&&(this.__values__=Cl(this.value()));var e=this.__index__>=this.__values__.length,n=e?Z:this.__values__[this.__index__++];return{done:e,value:n}}function sa(){return this}function aa(e){for(var n,t=this;t instanceof X;){var i=ss(t);i.__index__=0,i.__values__=Z,n?r.__wrapped__=i:n=i;var r=i;t=t.__wrapped__}return r.__wrapped__=e,n}function la(){var e=this.__wrapped__;if(e instanceof Fn){var n=e;return this.__actions__.length&&(n=new Fn(this)),n=n.reverse(),n.__actions__.push({func:ta,args:[Ds],thisArg:Z}),new Q(n,this.__chain__)}return this.thru(Ds)}function ua(){return wr(this.__wrapped__,this.__actions__)}function ca(e,n,t){var i=bd(e)?s:Qt;return t&&Fo(e,n,t)&&(n=Z),i(e,ko(n,3))}function ha(e,n){var t=bd(e)?a:ii;return t(e,ko(n,3))}function da(e,n){return ri(va(e,n),1)}function fa(e,n){return ri(va(e,n),je)}function pa(e,n,t){return t=t===Z?1:Al(t),ri(va(e,n),t)}function ma(e,n){var t=bd(e)?r:vh;return t(e,ko(n,3))}function ga(e,n){var t=bd(e)?o:yh;return t(e,ko(n,3))}function _a(e,n,t,i){e=Xa(e)?e:iu(e),t=t&&!i?Al(t):0;var r=e.length;return t<0&&(t=Jc(r+t,0)),yl(e)?t<=r&&e.indexOf(n,t)>-1:!!r&&y(e,n,t)>-1}function va(e,n){var t=bd(e)?c:Wi;return t(e,ko(n,3))}function ya(e,n,t,i){return null==e?[]:(bd(n)||(n=null==n?[]:[n]),t=i?Z:t,bd(t)||(t=null==t?[]:[t]),Xi(e,n,t))}function ba(e,n,t){var i=bd(e)?d:k,r=arguments.length<3;return i(e,ko(n,4),t,r,vh)}function wa(e,n,t){var i=bd(e)?f:k,r=arguments.length<3;return i(e,ko(n,4),t,r,yh)}function xa(e,n){var t=bd(e)?a:ii;return t(e,Oa(ko(n,3)))}function Sa(e){var n=bd(e)?Mt:sr;return n(e)}function Ca(e,n,t){n=(t?Fo(e,n,t):n===Z)?1:Al(n);var i=bd(e)?jt:ar;return i(e,n)}function ka(e){var n=bd(e)?Nt:ur;return n(e)}function Aa(e){if(null==e)return 0;if(Xa(e))return yl(e)?G(e):e.length;var n=Nh(e);return n==Ue||n==Ze?e.size:Hi(e).length}function Ta(e,n,t){var i=bd(e)?p:hr;return t&&Fo(e,n,t)&&(n=Z),i(e,ko(n,3))}function Ma(e,n){if("function"!=typeof n)throw new pc(ie);return e=Al(e),function(){if(--e<1)return n.apply(this,arguments)}}function ja(e,n,t){return n=t?Z:n,n=e&&null==n?e.length:n,fo(e,ye,Z,Z,Z,Z,n)}function Na(e,n){var t;if("function"!=typeof n)throw new pc(ie);return e=Al(e),function(){return--e>0&&(t=n.apply(this,arguments)),e<=1&&(n=Z),t}}function Ea(e,n,t){n=t?Z:n;var i=fo(e,me,Z,Z,Z,Z,Z,n);return i.placeholder=Ea.placeholder,i}function Da(e,n,t){n=t?Z:n;var i=fo(e,ge,Z,Z,Z,Z,Z,n);return i.placeholder=Da.placeholder,i}function Ra(e,n,t){function i(n){var t=d,i=f;return d=f=Z,v=n,m=e.apply(i,t)}function r(e){return v=e,g=Rh(a,n),y?i(e):m}function o(e){var t=e-_,i=e-v,r=n-t;return b?Xc(r,p-i):r}function s(e){var t=e-_,i=e-v;return _===Z||t>=n||t<0||b&&i>=p}function a(){var e=ld();return s(e)?l(e):void(g=Rh(a,o(e)))}function l(e){return g=Z,w&&d?i(e):(d=f=Z,m)}function u(){g!==Z&&kh(g),v=0,d=_=f=g=Z}function c(){return g===Z?m:l(ld())}function h(){var e=ld(),t=s(e);if(d=arguments,f=this,_=e,t){if(g===Z)return r(_);if(b)return g=Rh(a,n),i(_)}return g===Z&&(g=Rh(a,n)),m}var d,f,p,m,g,_,v=0,y=!1,b=!1,w=!0;if("function"!=typeof e)throw new pc(ie);return n=Ml(n)||0,ll(t)&&(y=!!t.leading,b="maxWait"in t,p=b?Jc(Ml(t.maxWait)||0,n):p,w="trailing"in t?!!t.trailing:w),h.cancel=u,h.flush=c,h}function Ia(e){return fo(e,we)}function La(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new pc(ie);var t=function(){var i=arguments,r=n?n.apply(this,i):i[0],o=t.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return t.cache=o.set(r,s)||o,s};return t.cache=new(La.Cache||dt),t}function Oa(e){if("function"!=typeof e)throw new pc(ie);return function(){var n=arguments;switch(n.length){case 0:return!e.call(this);case 1:return!e.call(this,n[0]);case 2:return!e.call(this,n[0],n[1]);case 3:return!e.call(this,n[0],n[1],n[2])}return!e.apply(this,n)}}function Pa(e){return Na(2,e)}function qa(e,n){if("function"!=typeof e)throw new pc(ie);return n=n===Z?n:Al(n),or(e,n)}function Fa(e,n){if("function"!=typeof e)throw new pc(ie);return n=null==n?0:Jc(Al(n),0),or(function(i){var r=i[n],o=Tr(i,0,n);return r&&h(o,r),t(e,this,o)})}function Ya(e,n,t){var i=!0,r=!0;if("function"!=typeof e)throw new pc(ie);return ll(t)&&(i="leading"in t?!!t.leading:i,r="trailing"in t?!!t.trailing:r),Ra(e,n,{leading:i,maxWait:n,trailing:r})}function Ha(e){return ja(e,1)}function za(e,n){return pd(kr(n),e)}function Ba(){if(!arguments.length)return[];var e=arguments[0];return bd(e)?e:[e]}function Wa(e){return zt(e,ue)}function $a(e,n){return n="function"==typeof n?n:Z,zt(e,ue,n)}function Ua(e){return zt(e,ae|ue)}function Va(e,n){return n="function"==typeof n?n:Z,zt(e,ae|ue,n)}function Ga(e,n){return null==n||Gt(e,n,Wl(n))}function Ja(e,n){return e===n||e!==e&&n!==n}function Xa(e){return null!=e&&al(e.length)&&!ol(e)}function Qa(e){return ul(e)&&Xa(e)}function Ka(e){return e===!0||e===!1||ul(e)&&wi(e)==Ye}function Za(e){return ul(e)&&1===e.nodeType&&!_l(e)}function el(e){if(null==e)return!0;if(Xa(e)&&(bd(e)||"string"==typeof e||"function"==typeof e.splice||xd(e)||Td(e)||yd(e)))return!e.length;var n=Nh(e);if(n==Ue||n==Ze)return!e.size;if(Wo(e))return!Hi(e).length;for(var t in e)if(bc.call(e,t))return!1;return!0}function nl(e,n){return Di(e,n)}function tl(e,n,t){t="function"==typeof t?t:Z;var i=t?t(e,n):Z;return i===Z?Di(e,n,Z,t):!!i}function il(e){if(!ul(e))return!1;var n=wi(e);return n==Be||n==ze||"string"==typeof e.message&&"string"==typeof e.name&&!_l(e)}function rl(e){return"number"==typeof e&&Uc(e)}function ol(e){if(!ll(e))return!1;var n=wi(e);return n==We||n==$e||n==Fe||n==Qe}function sl(e){return"number"==typeof e&&e==Al(e)}function al(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Ne}function ll(e){var n=typeof e;return null!=e&&("object"==n||"function"==n)}function ul(e){return null!=e&&"object"==typeof e}function cl(e,n){return e===n||Li(e,n,To(n))}function hl(e,n,t){return t="function"==typeof t?t:Z,Li(e,n,To(n),t)}function dl(e){return gl(e)&&e!=+e}function fl(e){if(Eh(e))throw new lc(te);return Oi(e)}function pl(e){return null===e}function ml(e){return null==e}function gl(e){return"number"==typeof e||ul(e)&&wi(e)==Ve}function _l(e){if(!ul(e)||wi(e)!=Je)return!1;var n=Ec(e);if(null===n)return!0;var t=bc.call(n,"constructor")&&n.constructor;return"function"==typeof t&&t instanceof t&&yc.call(t)==Cc}function vl(e){return sl(e)&&e>=-Ne&&e<=Ne}function yl(e){return"string"==typeof e||!bd(e)&&ul(e)&&wi(e)==en}function bl(e){return"symbol"==typeof e||ul(e)&&wi(e)==nn}function wl(e){return e===Z}function xl(e){return ul(e)&&Nh(e)==rn}function Sl(e){return ul(e)&&wi(e)==on}function Cl(e){if(!e)return[];if(Xa(e))return yl(e)?J(e):Yr(e);if(Oc&&e[Oc])return Y(e[Oc]());var n=Nh(e),t=n==Ue?H:n==Ze?W:iu;return t(e)}function kl(e){if(!e)return 0===e?e:0;if(e=Ml(e),e===je||e===-je){var n=e<0?-1:1;return n*Ee}return e===e?e:0}function Al(e){var n=kl(e),t=n%1;return n===n?t?n-t:n:0}function Tl(e){return e?Ht(Al(e),0,Re):0}function Ml(e){if("number"==typeof e)return e;if(bl(e))return De;if(ll(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=ll(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Rn,"");var t=Wn.test(e);return t||Un.test(e)?Zt(e.slice(2),t?2:8):Bn.test(e)?De:+e}function jl(e){return Hr(e,$l(e))}function Nl(e){return e?Ht(Al(e),-Ne,Ne):0===e?e:0}function El(e){return null==e?"":gr(e)}function Dl(e,n){var t=_h(e);return null==n?t:Lt(t,n)}function Rl(e,n){return _(e,ko(n,3),si)}function Il(e,n){return _(e,ko(n,3),ai)}function Ll(e,n){return null==e?e:bh(e,ko(n,3),$l)}function Ol(e,n){return null==e?e:wh(e,ko(n,3),$l)}function Pl(e,n){return e&&si(e,ko(n,3))}function ql(e,n){return e&&ai(e,ko(n,3))}function Fl(e){return null==e?[]:pi(e,Wl(e))}function Yl(e){return null==e?[]:pi(e,$l(e))}function Hl(e,n,t){var i=null==e?Z:vi(e,n);return i===Z?t:i}function zl(e,n){return null!=e&&Do(e,n,Si)}function Bl(e,n){return null!=e&&Do(e,n,Ci)}function Wl(e){return Xa(e)?Tt(e):Hi(e)}function $l(e){return Xa(e)?Tt(e,!0):zi(e)}function Ul(e,n){var t={};return n=ko(n,3),si(e,function(e,i,r){Pt(t,n(e,i,r),e)}),t}function Vl(e,n){var t={};return n=ko(n,3),si(e,function(e,i,r){Pt(t,i,n(e,i,r))}),t}function Gl(e,n){return Jl(e,Oa(ko(n)))}function Jl(e,n){if(null==e)return{};var t=c(xo(e),function(e){return[e]});return n=ko(n),Ki(e,t,function(e,t){return n(e,t[0])})}function Xl(e,n,t){n=Ar(n,e);var i=-1,r=n.length;for(r||(r=1,e=Z);++i<r;){var o=null==e?Z:e[is(n[i])];o===Z&&(i=r,o=t),e=ol(o)?o.call(e):o}return e}function Ql(e,n,t){return null==e?e:lr(e,n,t)}function Kl(e,n,t,i){return i="function"==typeof i?i:Z,null==e?e:lr(e,n,t,i)}function Zl(e,n,t){var i=bd(e),o=i||xd(e)||Td(e);if(n=ko(n,4),null==t){var s=e&&e.constructor;t=o?i?new s:[]:ll(e)&&ol(s)?_h(Ec(e)):{}}return(o?r:si)(e,function(e,i,r){return n(t,e,i,r)}),t}function eu(e,n){return null==e||vr(e,n)}function nu(e,n,t){return null==e?e:yr(e,n,kr(t))}function tu(e,n,t,i){return i="function"==typeof i?i:Z,null==e?e:yr(e,n,kr(t),i)}function iu(e){return null==e?[]:E(e,Wl(e))}function ru(e){return null==e?[]:E(e,$l(e))}function ou(e,n,t){return t===Z&&(t=n,n=Z),t!==Z&&(t=Ml(t),t=t===t?t:0),n!==Z&&(n=Ml(n),n=n===n?n:0),Ht(Ml(e),n,t)}function su(e,n,t){return n=kl(n),t===Z?(t=n,n=0):t=kl(t),e=Ml(e),ki(e,n,t)}function au(e,n,t){if(t&&"boolean"!=typeof t&&Fo(e,n,t)&&(n=t=Z),t===Z&&("boolean"==typeof n?(t=n,n=Z):"boolean"==typeof e&&(t=e,e=Z)),e===Z&&n===Z?(e=0,n=1):(e=kl(e),n===Z?(n=e,e=0):n=kl(n)),e>n){var i=e;e=n,n=i}if(t||e%1||n%1){var r=Zc();return Xc(e+r*(n-e+Kt("1e-"+((r+"").length-1))),n)}return tr(e,n)}function lu(e){return Zd(El(e).toLowerCase())}function uu(e){return e=El(e),e&&e.replace(Gn,mi).replace(Ft,"")}function cu(e,n,t){e=El(e),n=gr(n);var i=e.length;t=t===Z?i:Ht(Al(t),0,i);var r=t;return t-=n.length,t>=0&&e.slice(t,r)==n}function hu(e){return e=El(e),e&&Sn.test(e)?e.replace(wn,gi):e}function du(e){return e=El(e),e&&Dn.test(e)?e.replace(En,"\\$&"):e}function fu(e,n,t){e=El(e),n=Al(n);var i=n?G(e):0;if(!n||i>=n)return e;var r=(n-i)/2;return oo(Bc(r),t)+e+oo(zc(r),t)}function pu(e,n,t){e=El(e),n=Al(n);var i=n?G(e):0;return n&&i<n?e+oo(n-i,t):e}function mu(e,n,t){e=El(e),n=Al(n);var i=n?G(e):0;return n&&i<n?oo(n-i,t)+e:e}function gu(e,n,t){return t||null==n?n=0:n&&(n=+n),Kc(El(e).replace(In,""),n||0)}function _u(e,n,t){return n=(t?Fo(e,n,t):n===Z)?1:Al(n),rr(El(e),n)}function vu(){var e=arguments,n=El(e[0]);return e.length<3?n:n.replace(e[1],e[2])}function yu(e,n,t){return t&&"number"!=typeof t&&Fo(e,n,t)&&(n=t=Z),(t=t===Z?Re:t>>>0)?(e=El(e),e&&("string"==typeof n||null!=n&&!kd(n))&&(n=gr(n),!n&&q(e))?Tr(J(e),0,t):e.split(n,t)):[]}function bu(e,n,t){return e=El(e),t=null==t?0:Ht(Al(t),0,e.length),n=gr(n),e.slice(t,t+n.length)==n}function wu(e,n,t){var i=U.templateSettings;t&&Fo(e,n,t)&&(n=Z),e=El(e),n=Dd({},n,i,po);var r,o,s=Dd({},n.imports,i.imports,po),a=Wl(s),l=E(s,a),u=0,c=n.interpolate||Jn,h="__p += '",d=dc((n.escape||Jn).source+"|"+c.source+"|"+(c===An?Hn:Jn).source+"|"+(n.evaluate||Jn).source+"|$","g"),f="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++$t+"]")+"\n";e.replace(d,function(n,t,i,s,a,l){return i||(i=s),h+=e.slice(u,l).replace(Xn,O),t&&(r=!0,h+="' +\n__e("+t+") +\n'"),a&&(o=!0,h+="';\n"+a+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=l+n.length,n}),h+="';\n";var p=n.variable;p||(h="with (obj) {\n"+h+"\n}\n"),h=(o?h.replace(_n,""):h).replace(vn,"$1").replace(yn,"$1;"),
h="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=ef(function(){return uc(a,f+"return "+h).apply(Z,l)});if(m.source=h,il(m))throw m;return m}function xu(e){return El(e).toLowerCase()}function Su(e){return El(e).toUpperCase()}function Cu(e,n,t){if(e=El(e),e&&(t||n===Z))return e.replace(Rn,"");if(!e||!(n=gr(n)))return e;var i=J(e),r=J(n),o=R(i,r),s=I(i,r)+1;return Tr(i,o,s).join("")}function ku(e,n,t){if(e=El(e),e&&(t||n===Z))return e.replace(Ln,"");if(!e||!(n=gr(n)))return e;var i=J(e),r=I(i,J(n))+1;return Tr(i,0,r).join("")}function Au(e,n,t){if(e=El(e),e&&(t||n===Z))return e.replace(In,"");if(!e||!(n=gr(n)))return e;var i=J(e),r=R(i,J(n));return Tr(i,r).join("")}function Tu(e,n){var t=xe,i=Se;if(ll(n)){var r="separator"in n?n.separator:r;t="length"in n?Al(n.length):t,i="omission"in n?gr(n.omission):i}e=El(e);var o=e.length;if(q(e)){var s=J(e);o=s.length}if(t>=o)return e;var a=t-G(i);if(a<1)return i;var l=s?Tr(s,0,a).join(""):e.slice(0,a);if(r===Z)return l+i;if(s&&(a+=l.length-a),kd(r)){if(e.slice(a).search(r)){var u,c=l;for(r.global||(r=dc(r.source,El(zn.exec(r))+"g")),r.lastIndex=0;u=r.exec(c);)var h=u.index;l=l.slice(0,h===Z?a:h)}}else if(e.indexOf(gr(r),a)!=a){var d=l.lastIndexOf(r);d>-1&&(l=l.slice(0,d))}return l+i}function Mu(e){return e=El(e),e&&xn.test(e)?e.replace(bn,_i):e}function ju(e,n,t){return e=El(e),n=t?Z:n,n===Z?F(e)?K(e):g(e):e.match(n)||[]}function Nu(e){var n=null==e?0:e.length,i=ko();return e=n?c(e,function(e){if("function"!=typeof e[1])throw new pc(ie);return[i(e[0]),e[1]]}):[],or(function(i){for(var r=-1;++r<n;){var o=e[r];if(t(o[0],this,i))return t(o[1],this,i)}})}function Eu(e){return Bt(zt(e,ae))}function Du(e){return function(){return e}}function Ru(e,n){return null==e||e!==e?n:e}function Iu(e){return e}function Lu(e){return Yi("function"==typeof e?e:zt(e,ae))}function Ou(e){return $i(zt(e,ae))}function Pu(e,n){return Ui(e,zt(n,ae))}function qu(e,n,t){var i=Wl(n),o=pi(n,i);null!=t||ll(n)&&(o.length||!i.length)||(t=n,n=e,e=this,o=pi(n,Wl(n)));var s=!(ll(t)&&"chain"in t&&!t.chain),a=ol(e);return r(o,function(t){var i=n[t];e[t]=i,a&&(e.prototype[t]=function(){var n=this.__chain__;if(s||n){var t=e(this.__wrapped__),r=t.__actions__=Yr(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),t.__chain__=n,t}return i.apply(e,h([this.value()],arguments))})}),e}function Fu(){return ti._===this&&(ti._=kc),this}function Yu(){}function Hu(e){return e=Al(e),or(function(n){return Ji(n,e)})}function zu(e){return Yo(e)?S(is(e)):Zi(e)}function Bu(e){return function(n){return null==e?Z:vi(e,n)}}function Wu(){return[]}function $u(){return!1}function Uu(){return{}}function Vu(){return""}function Gu(){return!0}function Ju(e,n){if(e=Al(e),e<1||e>Ne)return[];var t=Re,i=Xc(e,Re);n=ko(n),e-=Re;for(var r=M(i,n);++t<e;)n(t);return r}function Xu(e){return bd(e)?c(e,is):bl(e)?[e]:Yr(Lh(El(e)))}function Qu(e){var n=++wc;return El(e)+n}function Ku(e){return e&&e.length?ei(e,Iu,xi):Z}function Zu(e,n){return e&&e.length?ei(e,ko(n,2),xi):Z}function ec(e){return x(e,Iu)}function nc(e,n){return x(e,ko(n,2))}function tc(e){return e&&e.length?ei(e,Iu,Bi):Z}function ic(e,n){return e&&e.length?ei(e,ko(n,2),Bi):Z}function rc(e){return e&&e.length?T(e,Iu):0}function oc(e,n){return e&&e.length?T(e,ko(n,2)):0}C=null==C?ti:yi.defaults(ti.Object(),C,yi.pick(ti,Wt));var sc=C.Array,ac=C.Date,lc=C.Error,uc=C.Function,cc=C.Math,hc=C.Object,dc=C.RegExp,fc=C.String,pc=C.TypeError,mc=sc.prototype,gc=uc.prototype,_c=hc.prototype,vc=C["__core-js_shared__"],yc=gc.toString,bc=_c.hasOwnProperty,wc=0,xc=function(){var e=/[^.]+$/.exec(vc&&vc.keys&&vc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Sc=_c.toString,Cc=yc.call(hc),kc=ti._,Ac=dc("^"+yc.call(bc).replace(En,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tc=oi?C.Buffer:Z,Mc=C.Symbol,jc=C.Uint8Array,Nc=Tc?Tc.allocUnsafe:Z,Ec=z(hc.getPrototypeOf,hc),Dc=hc.create,Rc=_c.propertyIsEnumerable,Ic=mc.splice,Lc=Mc?Mc.isConcatSpreadable:Z,Oc=Mc?Mc.iterator:Z,Pc=Mc?Mc.toStringTag:Z,qc=function(){try{var e=Mo(hc,"defineProperty");return e({},"",{}),e}catch(e){}}(),Fc=C.clearTimeout!==ti.clearTimeout&&C.clearTimeout,Yc=ac&&ac.now!==ti.Date.now&&ac.now,Hc=C.setTimeout!==ti.setTimeout&&C.setTimeout,zc=cc.ceil,Bc=cc.floor,Wc=hc.getOwnPropertySymbols,$c=Tc?Tc.isBuffer:Z,Uc=C.isFinite,Vc=mc.join,Gc=z(hc.keys,hc),Jc=cc.max,Xc=cc.min,Qc=ac.now,Kc=C.parseInt,Zc=cc.random,eh=mc.reverse,nh=Mo(C,"DataView"),th=Mo(C,"Map"),ih=Mo(C,"Promise"),rh=Mo(C,"Set"),oh=Mo(C,"WeakMap"),sh=Mo(hc,"create"),ah=oh&&new oh,lh={},uh=rs(nh),ch=rs(th),hh=rs(ih),dh=rs(rh),fh=rs(oh),ph=Mc?Mc.prototype:Z,mh=ph?ph.valueOf:Z,gh=ph?ph.toString:Z,_h=function(){function e(){}return function(n){if(!ll(n))return{};if(Dc)return Dc(n);e.prototype=n;var t=new e;return e.prototype=Z,t}}();U.templateSettings={escape:Cn,evaluate:kn,interpolate:An,variable:"",imports:{_:U}},U.prototype=X.prototype,U.prototype.constructor=U,Q.prototype=_h(X.prototype),Q.prototype.constructor=Q,Fn.prototype=_h(X.prototype),Fn.prototype.constructor=Fn,et.prototype.clear=nt,et.prototype.delete=tt,et.prototype.get=it,et.prototype.has=rt,et.prototype.set=ot,st.prototype.clear=at,st.prototype.delete=lt,st.prototype.get=ut,st.prototype.has=ct,st.prototype.set=ht,dt.prototype.clear=ft,dt.prototype.delete=pt,dt.prototype.get=mt,dt.prototype.has=gt,dt.prototype.set=_t,vt.prototype.add=vt.prototype.push=yt,vt.prototype.has=bt,wt.prototype.clear=xt,wt.prototype.delete=St,wt.prototype.get=Ct,wt.prototype.has=kt,wt.prototype.set=At;var vh=Ur(si),yh=Ur(ai,!0),bh=Vr(),wh=Vr(!0),xh=ah?function(e,n){return ah.set(e,n),e}:Iu,Sh=qc?function(e,n){return qc(e,"toString",{configurable:!0,enumerable:!1,value:Du(n),writable:!0})}:Iu,Ch=or,kh=Fc||function(e){return ti.clearTimeout(e)},Ah=rh&&1/W(new rh([,-0]))[1]==je?function(e){return new rh(e)}:Yu,Th=ah?function(e){return ah.get(e)}:Yu,Mh=Wc?function(e){return null==e?[]:(e=hc(e),a(Wc(e),function(n){return Rc.call(e,n)}))}:Wu,jh=Wc?function(e){for(var n=[];e;)h(n,Mh(e)),e=Ec(e);return n}:Wu,Nh=wi;(nh&&Nh(new nh(new ArrayBuffer(1)))!=an||th&&Nh(new th)!=Ue||ih&&Nh(ih.resolve())!=Xe||rh&&Nh(new rh)!=Ze||oh&&Nh(new oh)!=rn)&&(Nh=function(e){var n=wi(e),t=n==Je?e.constructor:Z,i=t?rs(t):"";if(i)switch(i){case uh:return an;case ch:return Ue;case hh:return Xe;case dh:return Ze;case fh:return rn}return n});var Eh=vc?ol:$u,Dh=ns(xh),Rh=Hc||function(e,n){return ti.setTimeout(e,n)},Ih=ns(Sh),Lh=Vo(function(e){var n=[];return jn.test(e)&&n.push(""),e.replace(Nn,function(e,t,i,r){n.push(i?r.replace(Yn,"$1"):t||e)}),n}),Oh=or(function(e,n){return Qa(e)?Xt(e,ri(n,1,Qa,!0)):[]}),Ph=or(function(e,n){var t=ks(n);return Qa(t)&&(t=Z),Qa(e)?Xt(e,ri(n,1,Qa,!0),ko(t,2)):[]}),qh=or(function(e,n){var t=ks(n);return Qa(t)&&(t=Z),Qa(e)?Xt(e,ri(n,1,Qa,!0),Z,t):[]}),Fh=or(function(e){var n=c(e,Cr);return n.length&&n[0]===e[0]?Ai(n):[]}),Yh=or(function(e){var n=ks(e),t=c(e,Cr);return n===ks(t)?n=Z:t.pop(),t.length&&t[0]===e[0]?Ai(t,ko(n,2)):[]}),Hh=or(function(e){var n=ks(e),t=c(e,Cr);return n="function"==typeof n?n:Z,n&&t.pop(),t.length&&t[0]===e[0]?Ai(t,Z,n):[]}),zh=or(Ms),Bh=bo(function(e,n){var t=null==e?0:e.length,i=Yt(e,n);return nr(e,c(n,function(e){return qo(e,t)?+e:e}).sort(Or)),i}),Wh=or(function(e){return _r(ri(e,1,Qa,!0))}),$h=or(function(e){var n=ks(e);return Qa(n)&&(n=Z),_r(ri(e,1,Qa,!0),ko(n,2))}),Uh=or(function(e){var n=ks(e);return n="function"==typeof n?n:Z,_r(ri(e,1,Qa,!0),Z,n)}),Vh=or(function(e,n){return Qa(e)?Xt(e,n):[]}),Gh=or(function(e){return xr(a(e,Qa))}),Jh=or(function(e){var n=ks(e);return Qa(n)&&(n=Z),xr(a(e,Qa),ko(n,2))}),Xh=or(function(e){var n=ks(e);return n="function"==typeof n?n:Z,xr(a(e,Qa),Z,n)}),Qh=or(Xs),Kh=or(function(e){var n=e.length,t=n>1?e[n-1]:Z;return t="function"==typeof t?(e.pop(),t):Z,Qs(e,t)}),Zh=bo(function(e){var n=e.length,t=n?e[0]:0,i=this.__wrapped__,r=function(n){return Yt(n,e)};return!(n>1||this.__actions__.length)&&i instanceof Fn&&qo(t)?(i=i.slice(t,+t+(n?1:0)),i.__actions__.push({func:ta,args:[r],thisArg:Z}),new Q(i,this.__chain__).thru(function(e){return n&&!e.length&&e.push(Z),e})):this.thru(r)}),ed=Wr(function(e,n,t){bc.call(e,t)?++e[t]:Pt(e,t,1)}),nd=Zr(ms),td=Zr(gs),id=Wr(function(e,n,t){bc.call(e,t)?e[t].push(n):Pt(e,t,[n])}),rd=or(function(e,n,i){var r=-1,o="function"==typeof n,s=Xa(e)?sc(e.length):[];return vh(e,function(e){s[++r]=o?t(n,e,i):Mi(e,n,i)}),s}),od=Wr(function(e,n,t){Pt(e,t,n)}),sd=Wr(function(e,n,t){e[t?0:1].push(n)},function(){return[[],[]]}),ad=or(function(e,n){if(null==e)return[];var t=n.length;return t>1&&Fo(e,n[0],n[1])?n=[]:t>2&&Fo(n[0],n[1],n[2])&&(n=[n[0]]),Xi(e,ri(n,1),[])}),ld=Yc||function(){return ti.Date.now()},ud=or(function(e,n,t){var i=de;if(t.length){var r=B(t,Co(ud));i|=_e}return fo(e,i,n,t,r)}),cd=or(function(e,n,t){var i=de|fe;if(t.length){var r=B(t,Co(cd));i|=_e}return fo(n,i,e,t,r)}),hd=or(function(e,n){return Jt(e,1,n)}),dd=or(function(e,n,t){return Jt(e,Ml(n)||0,t)});La.Cache=dt;var fd=Ch(function(e,n){n=1==n.length&&bd(n[0])?c(n[0],N(ko())):c(ri(n,1),N(ko()));var i=n.length;return or(function(r){for(var o=-1,s=Xc(r.length,i);++o<s;)r[o]=n[o].call(this,r[o]);return t(e,this,r)})}),pd=or(function(e,n){var t=B(n,Co(pd));return fo(e,_e,Z,n,t)}),md=or(function(e,n){var t=B(n,Co(md));return fo(e,ve,Z,n,t)}),gd=bo(function(e,n){return fo(e,be,Z,Z,Z,n)}),_d=lo(xi),vd=lo(function(e,n){return e>=n}),yd=ji(function(){return arguments}())?ji:function(e){return ul(e)&&bc.call(e,"callee")&&!Rc.call(e,"callee")},bd=sc.isArray,wd=li?N(li):Ni,xd=$c||$u,Sd=ui?N(ui):Ei,Cd=ci?N(ci):Ii,kd=hi?N(hi):Pi,Ad=di?N(di):qi,Td=fi?N(fi):Fi,Md=lo(Bi),jd=lo(function(e,n){return e<=n}),Nd=$r(function(e,n){if(Wo(n)||Xa(n))return void Hr(n,Wl(n),e);for(var t in n)bc.call(n,t)&&Dt(e,t,n[t])}),Ed=$r(function(e,n){Hr(n,$l(n),e)}),Dd=$r(function(e,n,t,i){Hr(n,$l(n),e,i)}),Rd=$r(function(e,n,t,i){Hr(n,Wl(n),e,i)}),Id=bo(Yt),Ld=or(function(e){return e.push(Z,po),t(Dd,Z,e)}),Od=or(function(e){return e.push(Z,mo),t(Hd,Z,e)}),Pd=to(function(e,n,t){e[n]=t},Du(Iu)),qd=to(function(e,n,t){bc.call(e,n)?e[n].push(t):e[n]=[t]},ko),Fd=or(Mi),Yd=$r(function(e,n,t){Vi(e,n,t)}),Hd=$r(function(e,n,t,i){Vi(e,n,t,i)}),zd=bo(function(e,n){var t={};if(null==e)return t;var i=!1;n=c(n,function(n){return n=Ar(n,e),i||(i=n.length>1),n}),Hr(e,xo(e),t),i&&(t=zt(t,ae|le|ue,go));for(var r=n.length;r--;)vr(t,n[r]);return t}),Bd=bo(function(e,n){return null==e?{}:Qi(e,n)}),Wd=ho(Wl),$d=ho($l),Ud=Xr(function(e,n,t){return n=n.toLowerCase(),e+(t?lu(n):n)}),Vd=Xr(function(e,n,t){return e+(t?"-":"")+n.toLowerCase()}),Gd=Xr(function(e,n,t){return e+(t?" ":"")+n.toLowerCase()}),Jd=Jr("toLowerCase"),Xd=Xr(function(e,n,t){return e+(t?"_":"")+n.toLowerCase()}),Qd=Xr(function(e,n,t){return e+(t?" ":"")+Zd(n)}),Kd=Xr(function(e,n,t){return e+(t?" ":"")+n.toUpperCase()}),Zd=Jr("toUpperCase"),ef=or(function(e,n){try{return t(e,Z,n)}catch(e){return il(e)?e:new lc(e)}}),nf=bo(function(e,n){return r(n,function(n){n=is(n),Pt(e,n,ud(e[n],e))}),e}),tf=eo(),rf=eo(!0),of=or(function(e,n){return function(t){return Mi(t,e,n)}}),sf=or(function(e,n){return function(t){return Mi(e,t,n)}}),af=ro(c),lf=ro(s),uf=ro(p),cf=ao(),hf=ao(!0),df=io(function(e,n){return e+n},0),ff=co("ceil"),pf=io(function(e,n){return e/n},1),mf=co("floor"),gf=io(function(e,n){return e*n},1),_f=co("round"),vf=io(function(e,n){return e-n},0);return U.after=Ma,U.ary=ja,U.assign=Nd,U.assignIn=Ed,U.assignInWith=Dd,U.assignWith=Rd,U.at=Id,U.before=Na,U.bind=ud,U.bindAll=nf,U.bindKey=cd,U.castArray=Ba,U.chain=ea,U.chunk=as,U.compact=ls,U.concat=us,U.cond=Nu,U.conforms=Eu,U.constant=Du,U.countBy=ed,U.create=Dl,U.curry=Ea,U.curryRight=Da,U.debounce=Ra,U.defaults=Ld,U.defaultsDeep=Od,U.defer=hd,U.delay=dd,U.difference=Oh,U.differenceBy=Ph,U.differenceWith=qh,U.drop=cs,U.dropRight=hs,U.dropRightWhile=ds,U.dropWhile=fs,U.fill=ps,U.filter=ha,U.flatMap=da,U.flatMapDeep=fa,U.flatMapDepth=pa,U.flatten=_s,U.flattenDeep=vs,U.flattenDepth=ys,U.flip=Ia,U.flow=tf,U.flowRight=rf,U.fromPairs=bs,U.functions=Fl,U.functionsIn=Yl,U.groupBy=id,U.initial=Ss,U.intersection=Fh,U.intersectionBy=Yh,U.intersectionWith=Hh,U.invert=Pd,U.invertBy=qd,U.invokeMap=rd,U.iteratee=Lu,U.keyBy=od,U.keys=Wl,U.keysIn=$l,U.map=va,U.mapKeys=Ul,U.mapValues=Vl,U.matches=Ou,U.matchesProperty=Pu,U.memoize=La,U.merge=Yd,U.mergeWith=Hd,U.method=of,U.methodOf=sf,U.mixin=qu,U.negate=Oa,U.nthArg=Hu,U.omit=zd,U.omitBy=Gl,U.once=Pa,U.orderBy=ya,U.over=af,U.overArgs=fd,U.overEvery=lf,U.overSome=uf,U.partial=pd,U.partialRight=md,U.partition=sd,U.pick=Bd,U.pickBy=Jl,U.property=zu,U.propertyOf=Bu,U.pull=zh,U.pullAll=Ms,U.pullAllBy=js,U.pullAllWith=Ns,U.pullAt=Bh,U.range=cf,U.rangeRight=hf,U.rearg=gd,U.reject=xa,U.remove=Es,U.rest=qa,U.reverse=Ds,U.sampleSize=Ca,U.set=Ql,U.setWith=Kl,U.shuffle=ka,U.slice=Rs,U.sortBy=ad,U.sortedUniq=Ys,U.sortedUniqBy=Hs,U.split=yu,U.spread=Fa,U.tail=zs,U.take=Bs,U.takeRight=Ws,U.takeRightWhile=$s,U.takeWhile=Us,U.tap=na,U.throttle=Ya,U.thru=ta,U.toArray=Cl,U.toPairs=Wd,U.toPairsIn=$d,U.toPath=Xu,U.toPlainObject=jl,U.transform=Zl,U.unary=Ha,U.union=Wh,U.unionBy=$h,U.unionWith=Uh,U.uniq=Vs,U.uniqBy=Gs,U.uniqWith=Js,U.unset=eu,U.unzip=Xs,U.unzipWith=Qs,U.update=nu,U.updateWith=tu,U.values=iu,U.valuesIn=ru,U.without=Vh,U.words=ju,U.wrap=za,U.xor=Gh,U.xorBy=Jh,U.xorWith=Xh,U.zip=Qh,U.zipObject=Ks,U.zipObjectDeep=Zs,U.zipWith=Kh,U.entries=Wd,U.entriesIn=$d,U.extend=Ed,U.extendWith=Dd,qu(U,U),U.add=df,U.attempt=ef,U.camelCase=Ud,U.capitalize=lu,U.ceil=ff,U.clamp=ou,U.clone=Wa,U.cloneDeep=Ua,U.cloneDeepWith=Va,U.cloneWith=$a,U.conformsTo=Ga,U.deburr=uu,U.defaultTo=Ru,U.divide=pf,U.endsWith=cu,U.eq=Ja,U.escape=hu,U.escapeRegExp=du,U.every=ca,U.find=nd,U.findIndex=ms,U.findKey=Rl,U.findLast=td,U.findLastIndex=gs,U.findLastKey=Il,U.floor=mf,U.forEach=ma,U.forEachRight=ga,U.forIn=Ll,U.forInRight=Ol,U.forOwn=Pl,U.forOwnRight=ql,U.get=Hl,U.gt=_d,U.gte=vd,U.has=zl,U.hasIn=Bl,U.head=ws,U.identity=Iu,U.includes=_a,U.indexOf=xs,U.inRange=su,U.invoke=Fd,U.isArguments=yd,U.isArray=bd,U.isArrayBuffer=wd,U.isArrayLike=Xa,U.isArrayLikeObject=Qa,U.isBoolean=Ka,U.isBuffer=xd,U.isDate=Sd,U.isElement=Za,U.isEmpty=el,U.isEqual=nl,U.isEqualWith=tl,U.isError=il,U.isFinite=rl,U.isFunction=ol,U.isInteger=sl,U.isLength=al,U.isMap=Cd,U.isMatch=cl,U.isMatchWith=hl,U.isNaN=dl,U.isNative=fl,U.isNil=ml,U.isNull=pl,U.isNumber=gl,U.isObject=ll,U.isObjectLike=ul,U.isPlainObject=_l,U.isRegExp=kd,U.isSafeInteger=vl,U.isSet=Ad,U.isString=yl,U.isSymbol=bl,U.isTypedArray=Td,U.isUndefined=wl,U.isWeakMap=xl,U.isWeakSet=Sl,U.join=Cs,U.kebabCase=Vd,U.last=ks,U.lastIndexOf=As,U.lowerCase=Gd,U.lowerFirst=Jd,U.lt=Md,U.lte=jd,U.max=Ku,U.maxBy=Zu,U.mean=ec,U.meanBy=nc,U.min=tc,U.minBy=ic,U.stubArray=Wu,U.stubFalse=$u,U.stubObject=Uu,U.stubString=Vu,U.stubTrue=Gu,U.multiply=gf,U.nth=Ts,U.noConflict=Fu,U.noop=Yu,U.now=ld,U.pad=fu,U.padEnd=pu,U.padStart=mu,U.parseInt=gu,U.random=au,U.reduce=ba,U.reduceRight=wa,U.repeat=_u,U.replace=vu,U.result=Xl,U.round=_f,U.runInContext=m,U.sample=Sa,U.size=Aa,U.snakeCase=Xd,U.some=Ta,U.sortedIndex=Is,U.sortedIndexBy=Ls,U.sortedIndexOf=Os,U.sortedLastIndex=Ps,U.sortedLastIndexBy=qs,U.sortedLastIndexOf=Fs,U.startCase=Qd,U.startsWith=bu,U.subtract=vf,U.sum=rc,U.sumBy=oc,U.template=wu,U.times=Ju,U.toFinite=kl,U.toInteger=Al,U.toLength=Tl,U.toLower=xu,U.toNumber=Ml,U.toSafeInteger=Nl,U.toString=El,U.toUpper=Su,U.trim=Cu,U.trimEnd=ku,U.trimStart=Au,U.truncate=Tu,U.unescape=Mu,U.uniqueId=Qu,U.upperCase=Kd,U.upperFirst=Zd,U.each=ma,U.eachRight=ga,U.first=ws,qu(U,function(){var e={};return si(U,function(n,t){bc.call(U.prototype,t)||(e[t]=n)}),e}(),{chain:!1}),U.VERSION=ee,r(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){U[e].placeholder=U}),r(["drop","take"],function(e,n){Fn.prototype[e]=function(t){t=t===Z?1:Jc(Al(t),0);var i=this.__filtered__&&!n?new Fn(this):this.clone();return i.__filtered__?i.__takeCount__=Xc(t,i.__takeCount__):i.__views__.push({size:Xc(t,Re),type:e+(i.__dir__<0?"Right":"")}),i},Fn.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),r(["filter","map","takeWhile"],function(e,n){var t=n+1,i=t==Ae||t==Me;Fn.prototype[e]=function(e){var n=this.clone();return n.__iteratees__.push({iteratee:ko(e,3),type:t}),n.__filtered__=n.__filtered__||i,n}}),r(["head","last"],function(e,n){var t="take"+(n?"Right":"");Fn.prototype[e]=function(){return this[t](1).value()[0]}}),r(["initial","tail"],function(e,n){var t="drop"+(n?"":"Right");Fn.prototype[e]=function(){return this.__filtered__?new Fn(this):this[t](1)}}),Fn.prototype.compact=function(){return this.filter(Iu)},Fn.prototype.find=function(e){return this.filter(e).head()},Fn.prototype.findLast=function(e){return this.reverse().find(e)},Fn.prototype.invokeMap=or(function(e,n){return"function"==typeof e?new Fn(this):this.map(function(t){return Mi(t,e,n)})}),Fn.prototype.reject=function(e){return this.filter(Oa(ko(e)))},Fn.prototype.slice=function(e,n){e=Al(e);var t=this;return t.__filtered__&&(e>0||n<0)?new Fn(t):(e<0?t=t.takeRight(-e):e&&(t=t.drop(e)),n!==Z&&(n=Al(n),t=n<0?t.dropRight(-n):t.take(n-e)),t)},Fn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Fn.prototype.toArray=function(){return this.take(Re)},si(Fn.prototype,function(e,n){var t=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),r=U[i?"take"+("last"==n?"Right":""):n],o=i||/^find/.test(n);r&&(U.prototype[n]=function(){var n=this.__wrapped__,s=i?[1]:arguments,a=n instanceof Fn,l=s[0],u=a||bd(n),c=function(e){var n=r.apply(U,h([e],s));return i&&d?n[0]:n};u&&t&&"function"==typeof l&&1!=l.length&&(a=u=!1);var d=this.__chain__,f=!!this.__actions__.length,p=o&&!d,m=a&&!f;if(!o&&u){n=m?n:new Fn(this);var g=e.apply(n,s);return g.__actions__.push({func:ta,args:[c],thisArg:Z}),new Q(g,d)}return p&&m?e.apply(this,s):(g=this.thru(c),p?i?g.value()[0]:g.value():g)})}),r(["pop","push","shift","sort","splice","unshift"],function(e){var n=mc[e],t=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);U.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return n.apply(bd(r)?r:[],e)}return this[t](function(t){return n.apply(bd(t)?t:[],e)})}}),si(Fn.prototype,function(e,n){var t=U[n];if(t){var i=t.name+"",r=lh[i]||(lh[i]=[]);r.push({name:n,func:t})}}),lh[no(Z,fe).name]=[{name:"wrapper",func:Z}],Fn.prototype.clone=Qn,Fn.prototype.reverse=Kn,Fn.prototype.value=Zn,U.prototype.at=Zh,U.prototype.chain=ia,U.prototype.commit=ra,U.prototype.next=oa,U.prototype.plant=aa,U.prototype.reverse=la,U.prototype.toJSON=U.prototype.valueOf=U.prototype.value=ua,U.prototype.first=U.prototype.head,Oc&&(U.prototype[Oc]=sa),U},yi=vi();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(ti._=yi,define("lodash",[],function(){return yi})):ri?((ri.exports=yi)._=yi,ii._=yi):ti._=yi}.call(this),define("lodash.noconflict",["lodash"],function(e){if(!e.isUndefined(require)&&!e.isUndefined(require.s)){var n=require.s.contexts._.config.lodashLoader;n.templateSettings.imports={_:e},require.config({lodashLoader:n})}return e.noConflict()}),function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("lodash.converter",[],n):"object"==typeof exports?exports.fp=n():e.fp=n()}(this,function(){return function(e){function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,n,t){function i(e,n){return r(e,e,n)}var r=t(1);"function"==typeof _&&"function"==typeof _.runInContext&&(_=i(_.runInContext())),e.exports=i},function(e,n,t){function i(e,n){return 2==n?function(n,t){return e.apply(void 0,arguments)}:function(n){return e.apply(void 0,arguments)}}function r(e,n){return 2==n?function(n,t){return e(n,t)}:function(n){return e(n)}}function o(e){for(var n=e?e.length:0,t=Array(n);n--;)t[n]=e[n];return t}function s(e){return function(n){return e({},n)}}function a(e,n){return function(){for(var t=arguments.length,i=t-1,r=Array(t);t--;)r[t]=arguments[t];var o=r[n],s=r.slice(0,n);return o&&d.apply(s,o),n!=i&&d.apply(s,r.slice(n+1)),e.apply(this,s)}}function l(e,n){return function(){var t=arguments.length;if(t){for(var i=Array(t);t--;)i[t]=arguments[t];var r=i[0]=n.apply(void 0,i);return e.apply(void 0,i),r}}}function u(e,n,t,d){function f(e,n){if(T.cap){var t=c.iterateeRearg[e];if(t)return w(n,t);var i=!k&&c.iterateeAry[e];if(i)return b(n,i)}return n}function p(e,n,t){return M||T.curry&&t>1?P(n,t):n}function m(e,n,t){if(T.fixed&&(j||!c.skipFixed[e])){var i=c.methodSpread[e],r=i&&i.start;return void 0===r?I(n,t):a(n,r)}return n}function g(e,n,t){return T.rearg&&t>1&&(N||!c.skipRearg[e])?z(n,c.methodRearg[e]||c.aryRearg[t]):n}function _(e,n){n=W(n);for(var t=-1,i=n.length,r=i-1,o=O(Object(e)),s=o;null!=s&&++t<i;){var a=n[t],l=s[a];null!=l&&(s[n[t]]=O(t==r?l:Object(l))),s=s[a]}return o}function v(e){return V.runInContext.convert(e)(void 0)}function y(e,n){var t=c.aliasToReal[e]||e,i=c.remap[t]||t,r=d;return function(e){var o=k?D:R,s=k?D[i]:n,a=L(L({},r),e);return u(o,t,s,a)}}function b(e,n){return x(e,function(e){return"function"==typeof e?r(e,n):e})}function w(e,n){return x(e,function(e){var t=n.length;return i(z(r(e,t),n),t)})}function x(e,n){return function(){var t=arguments.length;if(!t)return e();for(var i=Array(t);t--;)i[t]=arguments[t];var r=T.rearg?0:t-1;return i[r]=n(i[r]),e.apply(void 0,i)}}function S(e,n){var t,i=c.aliasToReal[e]||e,r=n,a=U[i];return a?r=a(n):T.immutable&&(c.mutate.array[i]?r=l(n,o):c.mutate.object[i]?r=l(n,s(n)):c.mutate.set[i]&&(r=l(n,_))),q($,function(e){return q(c.aryMethod[e],function(n){if(i==n){var o=c.methodSpread[i],s=o&&o.afterRearg;return t=s?m(i,g(i,r,e),e):g(i,m(i,r,e),e),t=f(i,t),t=p(i,t,e),!1}}),!t}),t||(t=r),t==n&&(t=M?P(t,1):function(){return n.apply(this,arguments)}),t.convert=y(i,n),c.placeholder[i]&&(C=!0,t.placeholder=n.placeholder=E),t}var C,k="function"==typeof n,A=n===Object(n);if(A&&(d=t,t=n,n=void 0),null==t)throw new TypeError;d||(d={});var T={cap:!("cap"in d)||d.cap,curry:!("curry"in d)||d.curry,fixed:!("fixed"in d)||d.fixed,immutable:!("immutable"in d)||d.immutable,rearg:!("rearg"in d)||d.rearg},M="curry"in d&&d.curry,j="fixed"in d&&d.fixed,N="rearg"in d&&d.rearg,E=k?t:h,D=k?t.runInContext():void 0,R=k?t:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isFunction:e.isFunction,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},I=R.ary,L=R.assign,O=R.clone,P=R.curry,q=R.forEach,F=R.isArray,Y=R.isFunction,H=R.keys,z=R.rearg,B=R.toInteger,W=R.toPath,$=H(c.aryMethod),U={castArray:function(e){return function(){var n=arguments[0];return F(n)?e(o(n)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var n=arguments[0],t=arguments[1],i=e(n,t),o=i.length;return T.cap&&"number"==typeof t?(t=t>2?t-2:1,o&&o<=t?i:r(i,t)):i}},mixin:function(e){return function(n){var t=this;if(!Y(t))return e(t,Object(n));var i=[];return q(H(n),function(e){Y(n[e])&&i.push([e,t.prototype[e]])}),e(t,Object(n)),q(i,function(e){var n=e[1];Y(n)?t.prototype[e[0]]=n:delete t.prototype[e[0]]}),t}},nthArg:function(e){return function(n){var t=n<0?1:B(n)+1;return P(e(n),t)}},rearg:function(e){return function(n,t){var i=t?t.length:0;return P(e(n,t),i)}},runInContext:function(n){return function(t){return u(e,n(t),d)}}};if(!A)return S(n,t);var V=t,G=[];return q($,function(e){q(c.aryMethod[e],function(e){var n=V[c.remap[e]||e];n&&G.push([e,S(e,n)])})}),q(H(V),function(e){var n=V[e];if("function"==typeof n){for(var t=G.length;t--;)if(G[t][0]==e)return;n.convert=y(e,n),G.push([e,n])}}),q(G,function(e){V[e[0]]=e[1]}),V.convert=v,C&&(V.placeholder=E),q(H(V),function(e){q(c.realToAlias[e]||[],function(n){V[n]=V[e]})}),V}var c=t(2),h=t(3),d=Array.prototype.push;e.exports=u},function(e,n){n.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},n.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},n.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},n.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},n.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},n.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},n.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},n.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},n.placeholder={bind:!0,bindKey:!0,curry:!0,curryRight:!0,partial:!0,partialRight:!0},n.realToAlias=function(){var e=Object.prototype.hasOwnProperty,t=n.aliasToReal,i={};for(var r in t){var o=t[r];e.call(i,o)?i[o].push(r):i[o]=[r]}return i}(),n.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},n.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},n.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},function(e,n){e.exports={}}])}),String.prototype.endsWith||(String.prototype.endsWith=function(e,n){var t=this.toString();(void 0===n||n>t.length)&&(n=t.length),n-=e.length;var i=t.indexOf(e,n);return i!==-1&&i===n}),String.prototype.startsWith||(String.prototype.startsWith=function(e,n){return n=n||0,this.substr(n,e.length)===e}),String.prototype.splitOnce||(String.prototype.splitOnce=function(e){var n=this.split(e);return[n.shift(),n.join(e)]}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}),define("polyfill",function(){}),function(e){"function"==typeof define&&define.amd?define("jquery.browser",["jquery"],function(n){return e(n)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=e(require("jquery")):e(window.jQuery)}(function(e){"use strict";function n(e){void 0===e&&(e=window.navigator.userAgent),e=e.toLowerCase();var n=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],t=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[],i={},r={
browser:n[5]||n[3]||n[1]||"",version:n[2]||n[4]||"0",versionNumber:n[4]||n[2]||"0",platform:t[0]||""};if(r.browser&&(i[r.browser]=!0,i.version=r.version,i.versionNumber=parseInt(r.versionNumber,10)),r.platform&&(i[r.platform]=!0),(i.android||i.bb||i.blackberry||i.ipad||i.iphone||i.ipod||i.kindle||i.playbook||i.silk||i["windows phone"])&&(i.mobile=!0),(i.cros||i.mac||i.linux||i.win)&&(i.desktop=!0),(i.chrome||i.opr||i.safari)&&(i.webkit=!0),i.rv||i.iemobile){var o="msie";r.browser=o,i[o]=!0}if(i.edge){delete i.edge;var s="msedge";r.browser=s,i[s]=!0}if(i.safari&&i.blackberry){var a="blackberry";r.browser=a,i[a]=!0}if(i.safari&&i.playbook){var l="playbook";r.browser=l,i[l]=!0}if(i.bb){var u="blackberry";r.browser=u,i[u]=!0}if(i.opr){var c="opera";r.browser=c,i[c]=!0}if(i.safari&&i.android){var h="android";r.browser=h,i[h]=!0}if(i.safari&&i.kindle){var d="kindle";r.browser=d,i[d]=!0}if(i.safari&&i.silk){var f="silk";r.browser=f,i[f]=!0}return i.name=r.browser,i.platform=r.platform,i}return window.jQBrowser=n(window.navigator.userAgent),window.jQBrowser.uaMatch=n,e&&(e.browser=window.jQBrowser),window.jQBrowser}),function(e,n){function t(e){return h.PF.compile(e||"nplurals=2; plural=(n != 1);")}function i(e,n){this._key=e,this._i18n=n}var r=Array.prototype,o=Object.prototype,s=r.slice,a=o.hasOwnProperty,l=r.forEach,u={},c={forEach:function(e,n,t){var i,r,o;if(null!==e)if(l&&e.forEach===l)e.forEach(n,t);else if(e.length===+e.length){for(i=0,r=e.length;i<r;i++)if(i in e&&n.call(t,e[i],i,e)===u)return}else for(o in e)if(a.call(e,o)&&n.call(t,e[o],o,e)===u)return},extend:function(e){return this.forEach(s.call(arguments,1),function(n){for(var t in n)e[t]=n[t]}),e}},h=function(e){if(this.defaults={locale_data:{messages:{"":{domain:"messages",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}}},domain:"messages"},this.options=c.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+"`")};h.context_delimiter=String.fromCharCode(4),c.extend(i.prototype,{onDomain:function(e){return this._domain=e,this},withContext:function(e){return this._context=e,this},ifPlural:function(e,n){return this._val=e,this._pkey=n,this},fetch:function(e){return"[object Array]"!={}.toString.call(e)&&(e=[].slice.call(arguments)),(e&&e.length?h.sprintf:function(e){return e})(this._i18n.dcnpgettext(this._domain,this._context,this._key,this._pkey,this._val),e)}}),c.extend(h.prototype,{translate:function(e){return new i(e,this)},textdomain:function(e){return e?void(this._textdomain=e):this._textdomain},gettext:function(e){return this.dcnpgettext.call(this,n,n,e)},dgettext:function(e,t){return this.dcnpgettext.call(this,e,n,t)},dcgettext:function(e,t){return this.dcnpgettext.call(this,e,n,t)},ngettext:function(e,t,i){return this.dcnpgettext.call(this,n,n,e,t,i)},dngettext:function(e,t,i,r){return this.dcnpgettext.call(this,e,n,t,i,r)},dcngettext:function(e,t,i,r){return this.dcnpgettext.call(this,e,n,t,i,r)},pgettext:function(e,t){return this.dcnpgettext.call(this,n,e,t)},dpgettext:function(e,n,t){return this.dcnpgettext.call(this,e,n,t)},dcpgettext:function(e,n,t){return this.dcnpgettext.call(this,e,n,t)},npgettext:function(e,t,i,r){return this.dcnpgettext.call(this,n,e,t,i,r)},dnpgettext:function(e,n,t,i,r){return this.dcnpgettext.call(this,e,n,t,i,r)},dcnpgettext:function(e,n,i,r,o){r=r||i,e=e||this._textdomain,o="undefined"==typeof o?1:o;var s;if(!this.options)return s=new h,s.dcnpgettext.call(s,void 0,void 0,i,r,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(!i)throw new Error("No translation key found.");if("number"!=typeof o&&(o=parseInt(o,10),isNaN(o)))throw new Error("The number that was passed in is not a number.");var a,l,u=n?n+h.context_delimiter+i:i,c=this.options.locale_data,d=c[e],f=d[""].plural_forms||(c.messages||this.defaults.locale_data.messages)[""].plural_forms,p=t(f)(o)+1;if(!d)throw new Error("No domain named `"+e+"` could be found.");return a=d[u],!a||p>=a.length?(this.options.missing_key_callback&&this.options.missing_key_callback(u),l=[null,i,r],l[t(f)(o)+1]):(l=a[p],l?l:(l=[null,i,r],l[t(f)(o)+1]))}});var d=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function n(e,n){for(var t=[];n>0;t[--n]=e);return t.join("")}var t=function(){return t.cache.hasOwnProperty(arguments[0])||(t.cache[arguments[0]]=t.parse(arguments[0])),t.format.call(null,t.cache[arguments[0]],arguments)};return t.format=function(t,i){var r,o,s,a,l,u,c,h=1,f=t.length,p="",m=[];for(o=0;o<f;o++)if(p=e(t[o]),"string"===p)m.push(t[o]);else if("array"===p){if(a=t[o],a[2])for(r=i[h],s=0;s<a[2].length;s++){if(!r.hasOwnProperty(a[2][s]))throw d('[sprintf] property "%s" does not exist',a[2][s]);r=r[a[2][s]]}else r=a[1]?i[a[1]]:i[h++];if(/[^s]/.test(a[8])&&"number"!=e(r))throw d("[sprintf] expecting number but found %s",e(r));switch("undefined"!=typeof r&&null!==r||(r=""),a[8]){case"b":r=r.toString(2);break;case"c":r=String.fromCharCode(r);break;case"d":r=parseInt(r,10);break;case"e":r=a[7]?r.toExponential(a[7]):r.toExponential();break;case"f":r=a[7]?parseFloat(r).toFixed(a[7]):parseFloat(r);break;case"o":r=r.toString(8);break;case"s":r=(r=String(r))&&a[7]?r.substring(0,a[7]):r;break;case"u":r=Math.abs(r);break;case"x":r=r.toString(16);break;case"X":r=r.toString(16).toUpperCase()}r=/[def]/.test(a[8])&&a[3]&&r>=0?"+"+r:r,u=a[4]?"0"==a[4]?"0":a[4].charAt(1):" ",c=a[6]-String(r).length,l=a[6]?n(u,c):"",m.push(a[5]?r+l:l+r)}return m.join("")},t.cache={},t.parse=function(e){for(var n=e,t=[],i=[],r=0;n;){if(null!==(t=/^[^\x25]+/.exec(n)))i.push(t[0]);else if(null!==(t=/^\x25{2}/.exec(n)))i.push("%");else{if(null===(t=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(n)))throw"[sprintf] huh?";if(t[2]){r|=1;var o=[],s=t[2],a=[];if(null===(a=/^([a-z_][a-z_\d]*)/i.exec(s)))throw"[sprintf] huh?";for(o.push(a[1]);""!==(s=s.substring(a[0].length));)if(null!==(a=/^\.([a-z_][a-z_\d]*)/i.exec(s)))o.push(a[1]);else{if(null===(a=/^\[(\d+)\]/.exec(s)))throw"[sprintf] huh?";o.push(a[1])}t[2]=o}else r|=2;if(3===r)throw"[sprintf] mixing positional and named placeholders is not (yet) supported";i.push(t)}n=n.substring(t[0].length)}return i},t}(),f=function(e,n){return n.unshift(e),d.apply(null,n)};h.parse_plural=function(e,n){return e=e.replace(/n/g,n),h.parse_expression(e)},h.sprintf=function(e,n){return"[object Array]"=={}.toString.call(n)?f(e,[].slice.call(n)):d.apply(this,[].slice.call(arguments))},h.prototype.sprintf=function(){return h.sprintf.apply(this,arguments)},h.PF={},h.PF.parse=function(e){var n=h.PF.extractPluralExpr(e);return h.PF.parser.parse.call(h.PF.parser,n)},h.PF.compile=function(e){function n(e){return e===!0?1:e?e:0}var t=h.PF.parse(e);return function(e){return n(h.PF.interpreter(t)(e))}},h.PF.interpreter=function(e){return function(n){switch(e.type){case"GROUP":return h.PF.interpreter(e.expr)(n);case"TERNARY":return h.PF.interpreter(e.expr)(n)?h.PF.interpreter(e.truthy)(n):h.PF.interpreter(e.falsey)(n);case"OR":return h.PF.interpreter(e.left)(n)||h.PF.interpreter(e.right)(n);case"AND":return h.PF.interpreter(e.left)(n)&&h.PF.interpreter(e.right)(n);case"LT":return h.PF.interpreter(e.left)(n)<h.PF.interpreter(e.right)(n);case"GT":return h.PF.interpreter(e.left)(n)>h.PF.interpreter(e.right)(n);case"LTE":return h.PF.interpreter(e.left)(n)<=h.PF.interpreter(e.right)(n);case"GTE":return h.PF.interpreter(e.left)(n)>=h.PF.interpreter(e.right)(n);case"EQ":return h.PF.interpreter(e.left)(n)==h.PF.interpreter(e.right)(n);case"NEQ":return h.PF.interpreter(e.left)(n)!=h.PF.interpreter(e.right)(n);case"MOD":return h.PF.interpreter(e.left)(n)%h.PF.interpreter(e.right)(n);case"VAR":return n;case"NUM":return e.val;default:throw new Error("Invalid Token found.")}}},h.PF.extractPluralExpr=function(e){e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),/;\s*$/.test(e)||(e=e.concat(";"));var n,t=/nplurals\=(\d+);/,i=/plural\=(.*);/,r=e.match(t),o={};if(!(r.length>1))throw new Error("nplurals not found in plural_forms string: "+e);if(o.nplurals=r[1],e=e.replace(t,""),n=e.match(i),!(n&&n.length>1))throw new Error("`plural` expression not found: "+e);return n[1]},h.PF.parser=function(){var e={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"?":6,":":7,"||":8,"&&":9,"<":10,"<=":11,">":12,">=":13,"!=":14,"==":15,"%":16,"(":17,")":18,n:19,NUMBER:20,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"?",7:":",8:"||",9:"&&",10:"<",11:"<=",12:">",13:">=",14:"!=",15:"==",16:"%",17:"(",18:")",19:"n",20:"NUMBER"},productions_:[0,[3,2],[4,5],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,1],[4,1]],performAction:function(e,n,t,i,r,o,s){var a=o.length-1;switch(r){case 1:return{type:"GROUP",expr:o[a-1]};case 2:this.$={type:"TERNARY",expr:o[a-4],truthy:o[a-2],falsey:o[a]};break;case 3:this.$={type:"OR",left:o[a-2],right:o[a]};break;case 4:this.$={type:"AND",left:o[a-2],right:o[a]};break;case 5:this.$={type:"LT",left:o[a-2],right:o[a]};break;case 6:this.$={type:"LTE",left:o[a-2],right:o[a]};break;case 7:this.$={type:"GT",left:o[a-2],right:o[a]};break;case 8:this.$={type:"GTE",left:o[a-2],right:o[a]};break;case 9:this.$={type:"NEQ",left:o[a-2],right:o[a]};break;case 10:this.$={type:"EQ",left:o[a-2],right:o[a]};break;case 11:this.$={type:"MOD",left:o[a-2],right:o[a]};break;case 12:this.$={type:"GROUP",expr:o[a-1]};break;case 13:this.$={type:"VAR"};break;case 14:this.$={type:"NUM",val:Number(e)}}},table:[{3:1,4:2,17:[1,3],19:[1,4],20:[1,5]},{1:[3]},{5:[1,6],6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{4:17,17:[1,3],19:[1,4],20:[1,5]},{5:[2,13],6:[2,13],7:[2,13],8:[2,13],9:[2,13],10:[2,13],11:[2,13],12:[2,13],13:[2,13],14:[2,13],15:[2,13],16:[2,13],18:[2,13]},{5:[2,14],6:[2,14],7:[2,14],8:[2,14],9:[2,14],10:[2,14],11:[2,14],12:[2,14],13:[2,14],14:[2,14],15:[2,14],16:[2,14],18:[2,14]},{1:[2,1]},{4:18,17:[1,3],19:[1,4],20:[1,5]},{4:19,17:[1,3],19:[1,4],20:[1,5]},{4:20,17:[1,3],19:[1,4],20:[1,5]},{4:21,17:[1,3],19:[1,4],20:[1,5]},{4:22,17:[1,3],19:[1,4],20:[1,5]},{4:23,17:[1,3],19:[1,4],20:[1,5]},{4:24,17:[1,3],19:[1,4],20:[1,5]},{4:25,17:[1,3],19:[1,4],20:[1,5]},{4:26,17:[1,3],19:[1,4],20:[1,5]},{4:27,17:[1,3],19:[1,4],20:[1,5]},{6:[1,7],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[1,28]},{6:[1,7],7:[1,29],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16]},{5:[2,3],6:[2,3],7:[2,3],8:[2,3],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[2,5],12:[2,5],13:[2,5],14:[2,5],15:[2,5],16:[1,16],18:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[2,6],12:[2,6],13:[2,6],14:[2,6],15:[2,6],16:[1,16],18:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[2,7],15:[2,7],16:[1,16],18:[2,7]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[1,16],18:[2,8]},{5:[2,9],6:[2,9],7:[2,9],8:[2,9],9:[2,9],10:[2,9],11:[2,9],12:[2,9],13:[2,9],14:[2,9],15:[2,9],16:[1,16],18:[2,9]},{5:[2,10],6:[2,10],7:[2,10],8:[2,10],9:[2,10],10:[2,10],11:[2,10],12:[2,10],13:[2,10],14:[2,10],15:[2,10],16:[1,16],18:[2,10]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],18:[2,11]},{5:[2,12],6:[2,12],7:[2,12],8:[2,12],9:[2,12],10:[2,12],11:[2,12],12:[2,12],13:[2,12],14:[2,12],15:[2,12],16:[2,12],18:[2,12]},{4:30,17:[1,3],19:[1,4],20:[1,5]},{5:[2,2],6:[1,7],7:[2,2],8:[1,8],9:[1,9],10:[1,10],11:[1,11],12:[1,12],13:[1,13],14:[1,14],15:[1,15],16:[1,16],18:[2,2]}],defaultActions:{6:[2,1]},parseError:function(e,n){throw new Error(e)},parse:function(e){function n(e){r.length=r.length-2*e,o.length=o.length-e,s.length=s.length-e}function t(){var e;return e=i.lexer.lex()||1,"number"!=typeof e&&(e=i.symbols_[e]||e),e}var i=this,r=[0],o=[null],s=[],a=this.table,l="",u=0,c=0,h=0,d=2,f=1;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var p=this.lexer.yylloc;s.push(p),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var m,g,_,v,y,b,w,x,S,C={};;){if(_=r[r.length-1],this.defaultActions[_]?v=this.defaultActions[_]:(null==m&&(m=t()),v=a[_]&&a[_][m]),"undefined"==typeof v||!v.length||!v[0]){if(!h){S=[];for(b in a[_])this.terminals_[b]&&b>2&&S.push("'"+this.terminals_[b]+"'");var k="";k=this.lexer.showPosition?"Parse error on line "+(u+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+S.join(", ")+", got '"+this.terminals_[m]+"'":"Parse error on line "+(u+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[m]||m,line:this.lexer.yylineno,loc:p,expected:S})}if(3==h){if(m==f)throw new Error(k||"Parsing halted.");c=this.lexer.yyleng,l=this.lexer.yytext,u=this.lexer.yylineno,p=this.lexer.yylloc,m=t()}for(;;){if(d.toString()in a[_])break;if(0==_)throw new Error(k||"Parsing halted.");n(1),_=r[r.length-1]}g=m,m=d,_=r[r.length-1],v=a[_]&&a[_][d],h=3}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+_+", token: "+m);switch(v[0]){case 1:r.push(m),o.push(this.lexer.yytext),s.push(this.lexer.yylloc),r.push(v[1]),m=null,g?(m=g,g=null):(c=this.lexer.yyleng,l=this.lexer.yytext,u=this.lexer.yylineno,p=this.lexer.yylloc,h>0&&h--);break;case 2:if(w=this.productions_[v[1]][1],C.$=o[o.length-w],C._$={first_line:s[s.length-(w||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(w||1)].first_column,last_column:s[s.length-1].last_column},y=this.performAction.call(C,l,c,u,this.yy,v[1],o,s),"undefined"!=typeof y)return y;w&&(r=r.slice(0,-1*w*2),o=o.slice(0,-1*w),s=s.slice(0,-1*w)),r.push(this.productions_[v[1]][0]),o.push(C.$),s.push(C._$),x=a[r[r.length-2]][r[r.length-1]],r.push(x);break;case 3:return!0}}return!0}},n=function(){var e={EOF:1,parseError:function(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 n=e.match(/\n/);return n&&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},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(),n=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+n+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,n,t;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),r=0;r<i.length;r++)if(n=this._input.match(this.rules[i[r]]))return t=n[0].match(/\n.*/g),t&&(this.yylineno+=t.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:t?t[t.length-1].length-1:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],e=this.performAction.call(this,this.yy,this,i[r],this.conditionStack[this.conditionStack.length-1]),e?e:void 0;return""===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(){var e=this.next();return"undefined"!=typeof e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)}};return e.performAction=function(e,n,t,i){switch(t){case 0:break;case 1:return 20;case 2:return 19;case 3:return 8;case 4:return 9;case 5:return 6;case 6:return 7;case 7:return 11;case 8:return 13;case 9:return 10;case 10:return 12;case 11:return 14;case 12:return 15;case 13:return 16;case 14:return 17;case 15:return 18;case 16:return 5;case 17:return"INVALID"}},e.rules=[/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^</,/^>/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./],e.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}},e}();return e.lexer=n,e}(),"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=h),exports.Jed=h):("function"==typeof define&&define.amd&&define("jed",[],function(){return h}),e.Jed=h)}(this),define("text",["module"],function(e){"use strict";function n(e,n){return void 0===e||""===e?n:e}function t(e,t,i,r){if(t===r)return!0;if(e===i){if("http"===e)return n(t,"80")===n(r,"80");if("https"===e)return n(t,"443")===n(r,"443")}return!1}var i,r,o,s,a,l=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],u=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,c=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,h="undefined"!=typeof location&&location.href,d=h&&location.protocol&&location.protocol.replace(/\:/,""),f=h&&location.hostname,p=h&&(location.port||void 0),m={},g=e.config&&e.config()||{};return i={version:"2.0.15",strip:function(e){if(e){e=e.replace(u,"");var n=e.match(c);n&&(e=n[1])}else e="";return e},jsEscape:function(e){return e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:g.createXhr||function(){var e,n,t;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(n=0;n<3;n+=1){t=l[n];try{e=new ActiveXObject(t)}catch(e){}if(e){l=[t];break}}return e},parseName:function(e){var n,t,i,r=!1,o=e.lastIndexOf("."),s=0===e.indexOf("./")||0===e.indexOf("../");return o!==-1&&(!s||o>1)?(n=e.substring(0,o),t=e.substring(o+1)):n=e,i=t||n,o=i.indexOf("!"),o!==-1&&(r="strip"===i.substring(o+1),i=i.substring(0,o),t?t=i:n=i),{moduleName:n,ext:t,strip:r}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,n,r,o){var s,a,l,u=i.xdRegExp.exec(e);return!u||(s=u[2],a=u[3],a=a.split(":"),l=a[1],a=a[0],(!s||s===n)&&(!a||a.toLowerCase()===r.toLowerCase())&&(!l&&!a||t(s,l,n,o)))},finishLoad:function(e,n,t,r){t=n?i.strip(t):t,g.isBuild&&(m[e]=t),r(t)},load:function(e,n,t,r){if(r&&r.isBuild&&!r.inlineText)return void t();g.isBuild=r&&r.isBuild;var o=i.parseName(e),s=o.moduleName+(o.ext?"."+o.ext:""),a=n.toUrl(s),l=g.useXhr||i.useXhr;return 0===a.indexOf("empty:")?void t():void(!h||l(a,d,f,p)?i.get(a,function(n){i.finishLoad(e,o.strip,n,t)},function(e){t.error&&t.error(e)}):n([s],function(e){i.finishLoad(o.moduleName+"."+o.ext,o.strip,e,t)}))},write:function(e,n,t,r){if(m.hasOwnProperty(n)){var o=i.jsEscape(m[n]);t.asModule(e+"!"+n,"define(function () { return '"+o+"';});\n")}},writeFile:function(e,n,t,r,o){var s=i.parseName(n),a=s.ext?"."+s.ext:"",l=s.moduleName+a,u=t.toUrl(s.moduleName+a)+".js";i.load(l,t,function(n){var t=function(e){return r(u,e)};t.asModule=function(e,n){return r.asModule(e,u,n)},i.write(e,l,t,o)},o)}},"node"===g.env||!g.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]&&!process.versions["atom-shell"]?(r=require.nodeRequire("fs"),i.get=function(e,n,t){try{var i=r.readFileSync(e,"utf8");"\ufeff"===i[0]&&(i=i.substring(1)),n(i)}catch(e){t&&t(e)}}):"xhr"===g.env||!g.env&&i.createXhr()?i.get=function(e,n,t,r){var o,s=i.createXhr();if(s.open("GET",e,!0),r)for(o in r)r.hasOwnProperty(o)&&s.setRequestHeader(o.toLowerCase(),r[o]);g.onXhr&&g.onXhr(s,e),s.onreadystatechange=function(i){var r,o;4===s.readyState&&(r=s.status||0,r>399&&r<600?(o=new Error(e+" HTTP status: "+r),o.xhr=s,t&&t(o)):n(s.responseText),g.onXhrComplete&&g.onXhrComplete(s,e))},s.send(null)}:"rhino"===g.env||!g.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?i.get=function(e,n){var t,i,r="utf-8",o=new java.io.File(e),s=java.lang.System.getProperty("line.separator"),a=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(o),r)),l="";try{for(t=new java.lang.StringBuffer,i=a.readLine(),i&&i.length()&&65279===i.charAt(0)&&(i=i.substring(1)),null!==i&&t.append(i);null!==(i=a.readLine());)t.append(s),t.append(i);l=String(t.toString())}finally{a.close()}n(l)}:("xpconnect"===g.env||!g.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(o=Components.classes,s=Components.interfaces,Components.utils.import("resource://gre/modules/FileUtils.jsm"),a="@mozilla.org/windows-registry-key;1"in o,i.get=function(e,n){var t,i,r,l={};a&&(e=e.replace(/\//g,"\\")),r=new FileUtils.File(e);try{t=o["@mozilla.org/network/file-input-stream;1"].createInstance(s.nsIFileInputStream),t.init(r,1,0,!1),i=o["@mozilla.org/intl/converter-input-stream;1"].createInstance(s.nsIConverterInputStream),i.init(t,"utf-8",t.available(),s.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),i.readString(t.available(),l),i.close(),t.close(),n(l.value)}catch(e){throw new Error((r&&r.path||"")+": "+e)}}),i}),define("text!de",[],function(){return'{\n  "locale_data": {\n    "converse": {\n      "": {\n        "plural_forms": "nplurals=2; plural=(n != 1);",\n        "domain": "converse",\n        "lang": "de"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Ein Besucher möchte Chatten"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "Ein Begrüßungssatz oder ein Name"\n      ],\n      "Ask a question": [\n        null,\n        "Stell eine Frage"\n      ],\n      "Chat": [\n        null,\n        "Chat"\n      ],\n      "Chat with visitors": [\n        null,\n        "Besucher-Chat"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Kommunikationsfehler. Überprüfe bitte deine Internetverbindung."\n      ],\n      "Consult the guides": [\n        null,\n        "Beachte unsere Ratgeber"\n      ],\n      "I am visible online": [\n        null,\n        "Ich bin online sichtbar."\n      ],\n      "Make a suggestion": [\n        null,\n        "Mach einen Vorschlag"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "Nachrichten werden für 30 Tage aufbewahrt."\n      ],\n      "Notifications": [\n        null,\n        "Benachrichtigungen"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "Veröffentliche deine Website, um den Chat zu aktivieren."\n      ],\n      "Review this App": [\n        null,\n        "Bewerte diese App"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Die Person ist nicht mehr online."\n      ],\n      "Write to us": [\n        null,\n        "Schreib an uns"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Du kannst den Chat aktivieren, indem du die Kontakt-Seite deiner Webseite bearbeitest."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Du kannst die Kontakt-Seite auf deiner veröffentlichten Website testen."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Du hast den Chat noch nicht installiert."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Du hast noch keine Nachricht erhalten."\n      ],\n      "Chat with us": [\n        null,\n        "Chatte mit uns"\n      ],\n      "Email us": [\n        null,\n        "E-Mail uns"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Damit die Änderungen wirksam werden, veröffentliche bitte diese Site erneut."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "Du kannst die Nachrichten deiner Leser mit der SimDif App beantworten"\n      ],\n      "Your screen name will show as": [\n        null,\n        "Dein Benutzername lautet"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        ""\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "Sind Sie sicher, dass Sie alle Nachrichten dieses Chats löschen möchten?"\n      ],\n      "Clear all messages": [\n        null,\n        "Alle Nachrichten löschen"\n      ],\n      "has gone away": [\n        null,\n        "ist jetzt abwesend"\n      ],\n      "has gone offline": [\n        null,\n        "ist offline gegangen"\n      ],\n      "has stopped typing": [\n        null,\n        "tippt nicht mehr"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "Ich bin momentan nicht für einen Chat verfügbar."\n      ],\n      "is busy": [\n        null,\n        "ist beschäftigt"\n      ],\n      "is typing": [\n        null,\n        "tippt"\n      ],\n      "Let\'s chat": [\n        null,\n        "Lass uns chatten"\n      ],\n      "me": [\n        null,\n        "Ich"\n      ],\n      "Please ask your question": [\n        null,\n        "Stelle bitte deine Frage"\n      ],\n      "Please check the box": [\n        null,\n        "Markiere bitte das Feld"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Bitte benutze das Formular oben, um mir eine E-Mail zu senden. Ich werde diese so schnell wie möglich bearbeiten."\n      ],\n      "Remove messages": [\n        null,\n        "Nachrichten entfernen"\n      ],\n      "Show this menu": [\n        null,\n        "Dieses Menü anzeigen"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        ""\n      ],\n      "Typing from another device": [\n        null,\n        ""\n      ],\n      "Verification": [\n        null,\n        "Verifizierung"\n      ],\n      "What is your name?": [\n        null,\n        "Wie lautet dein Name?"\n      ],\n      "Write in the third person": [\n        null,\n        "In der dritten Person schreiben"\n      ],\n      "Your message": [\n        null,\n        "Deine Nachricht"\n      ],\n      "Your name": [\n        null,\n        "Dein Name"\n      ],\n      "Your text": [\n        null,\n        "Dein Text"\n      ]\n    }\n  },\n  "domain": "converse"\n}'}),define("text!es",[],function(){return'{\n  "locale_data": {\n    "converse": {\n      "": {\n        "plural_forms": "nplurals=2; plural=(n != 1);",\n        "domain": "converse",\n        "lang": "es"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Un visitante desea chatear"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "Una frase de bienvenida o un nombre."\n      ],\n      "Ask a question": [\n        null,\n        "Haznos una pregunta"\n      ],\n      "Chat": [\n        null,\n        "Chatea"\n      ],\n      "Chat with visitors": [\n        null,\n        "Chatea con visitantes"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Error de comunicación. Comprueba tu conexión a internet, por favor."\n      ],\n      "Consult the guides": [\n        null,\n        "Consulta las guías"\n      ],\n      "I am visible online": [\n        null,\n        "Estoy visible en línea"\n      ],\n      "Make a suggestion": [\n        null,\n        "Haznos una sugerencia"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "Los mensajes se conservan durante 30 días."\n      ],\n      "Notifications": [\n        null,\n        "Notificaciones"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "Publica tu sitio web para activar el chat."\n      ],\n      "Review this App": [\n        null,\n        "Comenta esta aplicación"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Esta persona ya no está en línea."\n      ],\n      "Write to us": [\n        null,\n        "Escribenos"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Puedes activar el chat editando la página de contacto de tu sitio web."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Puedes comprobar la página de contacto en tu sitio publicado."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Aún no has instalado el chat."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Aún no has recibido ningún mensaje."\n      ],\n      "Chat with us": [\n        null,\n        "Chatea con nosotros"\n      ],\n      "Email us": [\n        null,\n        "Envíanos un correo electrónico"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Publica este sitio de nuevo para introducir los cambios, por favor."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "Puedes responder los mensajes de tu lector con la aplicación de SimDif"\n      ],\n      "Your screen name will show as": [\n        null,\n        "Tu nombre aparecerá en la pantalla como"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        ""\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "¿Está seguro de querer limpiar los mensajes de esta conversación?"\n      ],\n      "Clear all messages": [\n        null,\n        "Mensaje personal"\n      ],\n      "has gone away": [\n        null,\n        "Este contacto está ausente"\n      ],\n      "has gone offline": [\n        null,\n        "Este contacto está desconectado"\n      ],\n      "has stopped typing": [\n        null,\n        ""\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "No estoy disponible ahora mismo para un chat."\n      ],\n      "is busy": [\n        null,\n        "ocupado"\n      ],\n      "is typing": [\n        null,\n        ""\n      ],\n      "Let\'s chat": [\n        null,\n        "Chateemos"\n      ],\n      "me": [\n        null,\n        "yo"\n      ],\n      "Please ask your question": [\n        null,\n        "Haz tu pregunta, por favor"\n      ],\n      "Please check the box": [\n        null,\n        "Comprueba la bandeja de entrada, por favor"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Por favor, utilice el formulario de arriba para enviarme un correo electrónico. Me pondré en contacto con usted rápidamente."\n      ],\n      "Remove messages": [\n        null,\n        "Eliminar mensajes"\n      ],\n      "Show this menu": [\n        null,\n        "Mostrar este menú"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        ""\n      ],\n      "Typing from another device": [\n        null,\n        ""\n      ],\n      "Verification": [\n        null,\n        "Verificación"\n      ],\n      "What is your name?": [\n        null,\n        "¿Cómo te llamas?"\n      ],\n      "Write in the third person": [\n        null,\n        "Escribir en tercera persona"\n      ],\n      "Your message": [\n        null,\n        "Tu mensaje"\n      ],\n      "Your name": [\n        null,\n        "Tu nombre"\n      ],\n      "Your text": [\n        null,\n        "Tu texto"\n      ]\n    }\n  },\n  "domain": "converse"\n}';
}),define("text!fr",[],function(){return'{\n  "locale_data": {\n    "converse": {\n      "": {\n        "plural_forms": "nplurals=2; plural=(n > 1);",\n        "domain": "converse",\n        "lang": "fr"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Un visiteur vous appelle sur le Chat"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "Un message d\\\\\'accueil ou votre nom"\n      ],\n      "Ask a question": [\n        null,\n        "Poser une question"\n      ],\n      "Chat": [\n        null,\n        "Dialoguez"\n      ],\n      "Chat with visitors": [\n        null,\n        "Chatter avec les visiteurs"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Erreur de communication. Veuillez vérifier votre connexion à internet."\n      ],\n      "Consult the guides": [\n        null,\n        "Consulter les guides"\n      ],\n      "I am visible online": [\n        null,\n        "Visible en ligne"\n      ],\n      "Make a suggestion": [\n        null,\n        "Faire une suggestion"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "Les messages sont conservés pendant 30 jours."\n      ],\n      "Notifications": [\n        null,\n        "Notifications"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "Publiez votre site web pour activer le Chat."\n      ],\n      "Review this App": [\n        null,\n        "Donner son avis"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Cette personne n\\\\\'est plus en ligne."\n      ],\n      "Write to us": [\n        null,\n        "Nous écrire"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Vous pouvez activer le Chat en éditant la page de contact de votre site web."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Vous pouvez aller sur votre site publié et tester sa page de contact."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Vous n\\\\\'avez pas encore installé le Chat."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Vous n\\\\\'avez pas encore reçu de messages."\n      ],\n      "Chat with us": [\n        null,\n        "Dialoguez avec nous"\n      ],\n      "Email us": [\n        null,\n        "Envoyez-nous un mail"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Pour appliquer ce changement, n\\\\\'oubliez pas de republier votre site."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "Vous pourrez répondre aux message avec l\\\\\'app SimDif."\n      ],\n      "Your screen name will show as": [\n        null,\n        "Votre nom ou pseudo"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "Un message très long a été reçu. Cela pourrait être lié à une attaque visant à dégrader la performance de la conversation. La sortie a été tronquée."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "Voulez-vous vraiment supprimer les messages de cette conversation ?"\n      ],\n      "Clear all messages": [\n        null,\n        "Supprimer tous les messages"\n      ],\n      "has gone away": [\n        null,\n        "est parti"\n      ],\n      "has gone offline": [\n        null,\n        "s’est déconnecté"\n      ],\n      "has stopped typing": [\n        null,\n        "a arrêté d’écrire"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "Je ne suis pas disponible pour chatter pour le moment."\n      ],\n      "is busy": [\n        null,\n        "est occupé"\n      ],\n      "is typing": [\n        null,\n        "écrit"\n      ],\n      "Let\'s chat": [\n        null,\n        "Démarrer le Chat"\n      ],\n      "me": [\n        null,\n        "moi"\n      ],\n      "Please ask your question": [\n        null,\n        "Posez votre question"\n      ],\n      "Please check the box": [\n        null,\n        "Veuillez cocher la case"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Merci d\\\\\'utiliser le formulaire ci-dessus. Je vous répondrai par mail dès que possible."\n      ],\n      "Remove messages": [\n        null,\n        "Effacer les messages"\n      ],\n      "Show this menu": [\n        null,\n        "Afficher ce menu"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        ""\n      ],\n      "Typing from another device": [\n        null,\n        ""\n      ],\n      "Verification": [\n        null,\n        "Verificación"\n      ],\n      "What is your name?": [\n        null,\n        "Quel est votre nom ?"\n      ],\n      "Write in the third person": [\n        null,\n        "Écrire à la troisième personne"\n      ],\n      "Your message": [\n        null,\n        "Votre message"\n      ],\n      "Your name": [\n        null,\n        "Votre nom"\n      ],\n      "Your text": [\n        null,\n        "Votre message"\n      ]\n    }\n  },\n  "domain": "converse"\n}'}),define("text!id",[],function(){return'{\n  "locale_data": {\n    "converse": {\n      "": {\n        "plural_forms": "nplurals=2; plural=(n > 1);",\n        "domain": "converse",\n        "lang": "id"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Ada pengunjung yang ingin chatting"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "Kalimat penyambut atau nama"\n      ],\n      "Ask a question": [\n        null,\n        "Ada pertanyaan?"\n      ],\n      "Chat": [\n        null,\n        "Chat"\n      ],\n      "Chat with visitors": [\n        null,\n        "Chat dengan pengunjung"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Kesalahan jalur komunikasi. Coba cek koneksi internetnya."\n      ],\n      "Consult the guides": [\n        null,\n        "Konslutasi dengan panduan"\n      ],\n      "I am visible online": [\n        null,\n        "Saya bisa kelihatan di online"\n      ],\n      "Make a suggestion": [\n        null,\n        "Kirim saran"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "Pesan yang masuk akan tersimpan selama 30 hari."\n      ],\n      "Notifications": [\n        null,\n        "Notifikasi"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "Publikasikan situs Anda untuk mengaktifasi fungsi Chat."\n      ],\n      "Review this App": [\n        null,\n        "Buat resensi terhadap Aplikasi ini"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Orang ini sudah tidak online lagi"\n      ],\n      "Write to us": [\n        null,\n        "Kirim pesan kepada kami"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Anda bisa mengaktivasi fungsi edit Chat di Laman Kontak Kami di situs Anda."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Anda dapat mengujji halaman kontak pada situs yang sudah dipublikasikan."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Anda belum menginstalasi fungsi Chat."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Anda belum menerima pesan."\n      ],\n      "Chat with us": [\n        null,\n        "Silakan memulai chat"\n      ],\n      "Email us": [\n        null,\n        "Silahkan email kami"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Agar perubahan bisa tampil online, harap publikasikan kembali situs ini"\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "Anda bisa menjawab pesan-pesan melalui aplikasi SimDif"\n      ],\n      "Your screen name will show as": [\n        null,\n        "Nama screen Anda akan tampil sbb.:"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "Anda baru saja menerima pesan yang sangat besar. Hal ini bisa jadi dimaksudkan untuk mempengaruhi performa chat Anda. Output sudah dipendekkan."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "Anda yakin ingin menghapus pesan chat ini?"\n      ],\n      "Clear all messages": [\n        null,\n        "Pesan pribadi"\n      ],\n      "has gone away": [\n        null,\n        "Teman ini tidak di tempat"\n      ],\n      "has gone offline": [\n        null,\n        "Teman ini tidak terhubung"\n      ],\n      "has stopped typing": [\n        null,\n        "telah berhenti mengetik"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "Saya sedang tidak bisa chatting&#8230;"\n      ],\n      "is busy": [\n        null,\n        "sibuk"\n      ],\n      "is typing": [\n        null,\n        "sedang mengetik"\n      ],\n      "Let\'s chat": [\n        null,\n        "Mari kita chat&#8230;"\n      ],\n      "me": [\n        null,\n        "saya"\n      ],\n      "Please ask your question": [\n        null,\n        "Silakan tulis pertanyaannya"\n      ],\n      "Please check the box": [\n        null,\n        "Harap tandai boks ini"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Silakan mengirim email melalui formulir diatas, saya akan berusaha menjawabnya secepat mungkin."\n      ],\n      "Remove messages": [\n        null,\n        "Hapus pesan"\n      ],\n      "Show this menu": [\n        null,\n        "Tampilkan menu ini"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "Telah berhenti mengetik di perangkat lain"\n      ],\n      "Typing from another device": [\n        null,\n        "Mengetik dari perangkat lain"\n      ],\n      "Verification": [\n        null,\n        "Verifikasi"\n      ],\n      "What is your name?": [\n        null,\n        "Siapa nama Anda?"\n      ],\n      "Write in the third person": [\n        null,\n        "Tulis ini menggunakan sudut pandang orang ketiga."\n      ],\n      "Your message": [\n        null,\n        "Pesan Anda"\n      ],\n      "Your name": [\n        null,\n        "Nama Anda"\n      ],\n      "Your text": [\n        null,\n        "Teks Anda"\n      ]\n    }\n  },\n  "domain": "converse"\n}'}),define("text!it",[],function(){return'{\n  "locale_data": {\n    "converse": {\n      "": {\n        "plural_forms": "nplurals=2; plural=(n != 1);",\n        "domain": "converse",\n        "lang": "it"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Un utente vuole chattare"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "Un messaggio di benvenuto o un nome"\n      ],\n      "Ask a question": [\n        null,\n        "Fai una domanda"\n      ],\n      "Chat": [\n        null,\n        "Chatta"\n      ],\n      "Chat with visitors": [\n        null,\n        "Chat con gli utenti"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Comunicazione di errore. Ti preghiamo di controllare la tua connessione internet."\n      ],\n      "Consult the guides": [\n        null,\n        "Consulta le guide"\n      ],\n      "I am visible online": [\n        null,\n        "Sono visibile in linea"\n      ],\n      "Make a suggestion": [\n        null,\n        "Dai un suggerimento"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "I messaggi vengono salvati per 30 giorni."\n      ],\n      "Notifications": [\n        null,\n        "Notifiche"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "Per attivare la Chat pubblica il tuo sito."\n      ],\n      "Review this App": [\n        null,\n        "Recensisci questa App"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Questa persona non è più in linea."\n      ],\n      "Write to us": [\n        null,\n        "Scrivici"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Puoi attivare la Chat editando la pagina di contatto nel tuo sito."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Puoi provare la tua pagina di contatto nel tuo sito pubblicato."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "La chat non è stata ancora installata."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Non hai ancora ricevuto nessun messaggio."\n      ],\n      "Chat with us": [\n        null,\n        "Chatta con noi"\n      ],\n      "Email us": [\n        null,\n        "Inviaci un email"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Per rendere effettive le modifiche ti preghiamo di pubblicare il sito."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "Puoi rispondere ai messaggi dei tuoi utenti con la App di SimDif"\n      ],\n      "Your screen name will show as": [\n        null,\n        "Il tuo nome sarà visualizzato come"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "Un grande messaggio è stato ricevuto. Questo potrebbe essere dovuto ad un attacco destinato a degradare le performance della chat. L\\\\\'output è stato accorciato."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "Sei sicuro di volere pulire i messaggi da questo chat box?"\n      ],\n      "Clear all messages": [\n        null,\n        "Pulisci tutti i messaggi"\n      ],\n      "has gone away": [\n        null,\n        "si è allontanato"\n      ],\n      "has gone offline": [\n        null,\n        "è andato offline"\n      ],\n      "has stopped typing": [\n        null,\n        "ha smesso di scrivere"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "In questo momento non sono disponibile per la chat."\n      ],\n      "is busy": [\n        null,\n        "è occupato"\n      ],\n      "is typing": [\n        null,\n        "sta scrivendo"\n      ],\n      "Let\'s chat": [\n        null,\n        "Parliamo"\n      ],\n      "me": [\n        null,\n        "me"\n      ],\n      "Please ask your question": [\n        null,\n        "Fai la tua domanda per favore"\n      ],\n      "Please check the box": [\n        null,\n        "Seleziona la casella"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Ti prego di usare il formulario qui sotto per mandarmi una mail. Ti risponderò rapidamente."\n      ],\n      "Remove messages": [\n        null,\n        "Rimuovi messaggi"\n      ],\n      "Show this menu": [\n        null,\n        "Mostra questo menu"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        ""\n      ],\n      "Typing from another device": [\n        null,\n        ""\n      ],\n      "Verification": [\n        null,\n        "Verifica"\n      ],\n      "What is your name?": [\n        null,\n        "Come ti chiami?"\n      ],\n      "Write in the third person": [\n        null,\n        "Scrivi in terza persona"\n      ],\n      "Your message": [\n        null,\n        "Il tuo messaggio"\n      ],\n      "Your name": [\n        null,\n        "Il tuo nome"\n      ],\n      "Your text": [\n        null,\n        "Il tuo testo"\n      ]\n    }\n  },\n  "domain": "converse"\n}'}),define("text!ja",[],function(){return'{\n  "locale_data": {\n    "converse": {\n      "": {\n        "plural_forms": "nplurals=1; plural=0;",\n        "domain": "converse",\n        "lang": "ja"\n      },\n      "A visitor wants to chat": [\n        null,\n        "訪問者から着信あり"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "あなたのお名前、営業時間など訪問者へお問い合わせページ上でお知らせしたいこと"\n      ],\n      "Ask a question": [\n        null,\n        "質問する"\n      ],\n      "Chat": [\n        null,\n        "チャット"\n      ],\n      "Chat with visitors": [\n        null,\n        "訪問者とのチャット"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "通信エラーが発生しました。インターネット接続をご確認ください。"\n      ],\n      "Consult the guides": [\n        null,\n        "ヘルプガイド"\n      ],\n      "I am visible online": [\n        null,\n        "オンラインで見える"\n      ],\n      "Make a suggestion": [\n        null,\n        "提案する"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "メッセージは30日間保存されます。"\n      ],\n      "Notifications": [\n        null,\n        "通知"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "チャットを有効するにはサイトを公開してください。"\n      ],\n      "Review this App": [\n        null,\n        "アプリのレビューを投稿"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "相手はオフラインです。"\n      ],\n      "Write to us": [\n        null,\n        "お問い合わせ"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "サイトのお問い合わせぺーじを編集して、チャットを有効にできます。"\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "サイトを公開してお問い合わせページからチャットを開始してみて下さい。"\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "チャットはインストールされていません。"\n      ],\n      "You have not received any message yet.": [\n        null,\n        "まだメッセージを受信していません。"\n      ],\n      "Chat with us": [\n        null,\n        "チャット"\n      ],\n      "Email us": [\n        null,\n        "お問い合わせ"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "機能を有効にするために、サイトを再公開してください。"\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "SimDifアプリで訪問者のメッセージに返信できます。"\n      ],\n      "Your screen name will show as": [\n        null,\n        "ハンドルネーム"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        ""\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        ""\n      ],\n      "Clear all messages": [\n        null,\n        "私信"\n      ],\n      "has gone away": [\n        null,\n        "この相手先は離席中です"\n      ],\n      "has gone offline": [\n        null,\n        "この相手先はオフラインです"\n      ],\n      "has stopped typing": [\n        null,\n        ""\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "只今、席を外しております。"\n      ],\n      "is busy": [\n        null,\n        "取り込み中"\n      ],\n      "is typing": [\n        null,\n        ""\n      ],\n      "Let\'s chat": [\n        null,\n        "チャット開始"\n      ],\n      "me": [\n        null,\n        "私"\n      ],\n      "Please ask your question": [\n        null,\n        "メッセージ"\n      ],\n      "Please check the box": [\n        null,\n        "チェックボックスをオンにしてください。"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "上記フォームにてお問い合せ頂ければ、後ほどこちらからご連絡いたします。"\n      ],\n      "Remove messages": [\n        null,\n        "メッセージを削除"\n      ],\n      "Show this menu": [\n        null,\n        "このメニューを表示"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        ""\n      ],\n      "Typing from another device": [\n        null,\n        ""\n      ],\n      "Verification": [\n        null,\n        "確認"\n      ],\n      "What is your name?": [\n        null,\n        "お名前は？"\n      ],\n      "Write in the third person": [\n        null,\n        "第三者に書く"\n      ],\n      "Your message": [\n        null,\n        "ここにメッセージを入力"\n      ],\n      "Your name": [\n        null,\n        "お名前を入力"\n      ],\n      "Your text": [\n        null,\n        "メッセージを入力"\n      ]\n    }\n  },\n  "domain": "converse"\n}'}),define("text!nl",[],function(){return'{\n  "locale_data": {\n    "converse": {\n      "": {\n        "plural_forms": "nplurals=2; plural=(n != 1);",\n        "domain": "converse",\n        "lang": "nl"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Een bezoeker wil chatten"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "Een welkomstbericht of naam "\n      ],\n      "Ask a question": [\n        null,\n        "Stel een vraag"\n      ],\n      "Chat": [\n        null,\n        "Chat"\n      ],\n      "Chat with visitors": [\n        null,\n        "Chat met bezoekers"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Communicatie fout. Controleer je internetverbinding."\n      ],\n      "Consult the guides": [\n        null,\n        "Raadpleeg de gidsen"\n      ],\n      "I am visible online": [\n        null,\n        "Ik ben online zichtbaar"\n      ],\n      "Make a suggestion": [\n        null,\n        "Doe een suggestie"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "Berichten worden gedurende 30 dagen bewaard."\n      ],\n      "Notifications": [\n        null,\n        "Meldingen"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "Publiceer je website om de chatfunctie te activeren."\n      ],\n      "Review this App": [\n        null,\n        "Beoordeel deze applicatie"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Een bezoeker wil chatten"\n      ],\n      "Write to us": [\n        null,\n        "Schrijf ons"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Je kunt de chatfunctie activeren door de de contactpagina van je website te bewerken."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Je zou eventueel de contactpagina van je gepubliceerde site kunnen testen."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Je hebt de chatfunctie nog niet geïnstalleerd."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Je hebt nog geen berichten ontvangen."\n      ],\n      "Chat with us": [\n        null,\n        "Chat met ons"\n      ],\n      "Email us": [\n        null,\n        "E-mail ons"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Gelieve deze site opnieuw publiceren om de wijzigingen door te voeren."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "Je kunt de berichten van je lezer beantwoorden met de SimDif App"\n      ],\n      "Your screen name will show as": [\n        null,\n        "Je schermnaam wordt weergegeven als"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        ""\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        ""\n      ],\n      "Clear all messages": [\n        null,\n        "Persoonlijk bericht"\n      ],\n      "has gone away": [\n        null,\n        "Conact is afwezig"\n      ],\n      "has gone offline": [\n        null,\n        "Contact is offline"\n      ],\n      "has stopped typing": [\n        null,\n        "%1$s is aan typen"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "Ik ben nu niet beschikbaar voor een chat."\n      ],\n      "is busy": [\n        null,\n        "bezet"\n      ],\n      "is typing": [\n        null,\n        "%1$s is aan typen"\n      ],\n      "Let\'s chat": [\n        null,\n        "Laten we chatten"\n      ],\n      "me": [\n        null,\n        "ikzelf"\n      ],\n      "Please ask your question": [\n        null,\n        "Stel hier alsjeblieft je vraag"\n      ],\n      "Please check the box": [\n        null,\n        "Graag het vakje aanvinken"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Gebruik alsjeblieft het formulier hierboven om me een email te sturen. Ik zal je zo spoedig mogelijk antwoorden."\n      ],\n      "Remove messages": [\n        null,\n        "Verwijder bericht"\n      ],\n      "Show this menu": [\n        null,\n        "Toon dit menu"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        ""\n      ],\n      "Typing from another device": [\n        null,\n        ""\n      ],\n      "Verification": [\n        null,\n        "Verificatie"\n      ],\n      "What is your name?": [\n        null,\n        "Wat is jouw naam?"\n      ],\n      "Write in the third person": [\n        null,\n        "Schrijf in de 3de persoon"\n      ],\n      "Your message": [\n        null,\n        "Jouw bericht"\n      ],\n      "Your name": [\n        null,\n        "Je naam"\n      ],\n      "Your text": [\n        null,\n        "Je bericht"\n      ]\n    }\n  },\n  "domain": "converse"\n}'}),define("text!pt",[],function(){return'{\n  "locale_data": {\n    "converse": {\n      "": {\n        "plural_forms": "nplurals=2; plural=(n != 1);",\n        "domain": "converse",\n        "lang": "pt"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Um visitante quer conversar"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "Uma frase de boas-vindas ou um nome"\n      ],\n      "Ask a question": [\n        null,\n        "Faça uma pergunta"\n      ],\n      "Chat": [\n        null,\n        "Converse"\n      ],\n      "Chat with visitors": [\n        null,\n        "Converse com seus visitantes"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Erro de comunicação. Por favor, verifique sua conexão de internet."\n      ],\n      "Consult the guides": [\n        null,\n        "Consulte os manuais"\n      ],\n      "I am visible online": [\n        null,\n        "Estou visível online"\n      ],\n      "Make a suggestion": [\n        null,\n        "Envie uma sugestão"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "As mensagens são guardadas por 30 dias."\n      ],\n      "Notifications": [\n        null,\n        "Notificações"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "Publique seu website para ativar o Chat."\n      ],\n      "Review this App": [\n        null,\n        "Avalie este App"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Esta pessoa não está mais online."\n      ],\n      "Write to us": [\n        null,\n        "Escreva-nos"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Você pode ativar o Chat editando a página de contato de seu website."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Você pode testar a página de contato em seu site publicado."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Você ainda não instalou o Chat."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Você ainda não recebeu nenhuma mensagem."\n      ],\n      "Chat with us": [\n        null,\n        "Converse conosco"\n      ],\n      "Email us": [\n        null,\n        "Envia-nos um email"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Por favor, publique novamente este site para que as mudanças entrem em vigor."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "Você pode responder as mensagens de seu visitante com o App do SimDif"\n      ],\n      "Your screen name will show as": [\n        null,\n        "Seu nome na tela será mostrado como"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        ""\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "Tem certeza que deseja limpar as mensagens dessa caixa?"\n      ],\n      "Clear all messages": [\n        null,\n        "Mensagem pessoal"\n      ],\n      "has gone away": [\n        null,\n        "Este contato está ausente"\n      ],\n      "has gone offline": [\n        null,\n        "Este contato está offline"\n      ],\n      "has stopped typing": [\n        null,\n        "%1$s está digitando"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "Não estou disponível neste momento para um Chat."\n      ],\n      "is busy": [\n        null,\n        "ocupado"\n      ],\n      "is typing": [\n        null,\n        "%1$s está digitando"\n      ],\n      "Let\'s chat": [\n        null,\n        "Vamos conversar"\n      ],\n      "me": [\n        null,\n        "eu"\n      ],\n      "Please ask your question": [\n        null,\n        "Por favor, faça sua pergunta"\n      ],\n      "Please check the box": [\n        null,\n        "Por favor, marque a caixa"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Por favor, use o formulário acima para me enviar um email. Responderei assim que possível."\n      ],\n      "Remove messages": [\n        null,\n        "Remover mensagens"\n      ],\n      "Show this menu": [\n        null,\n        "Mostrar o menu"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        ""\n      ],\n      "Typing from another device": [\n        null,\n        ""\n      ],\n      "Verification": [\n        null,\n        "Verificação"\n      ],\n      "What is your name?": [\n        null,\n        "Qual é o seu nome?"\n      ],\n      "Write in the third person": [\n        null,\n        "Escrever em terceira pessoa"\n      ],\n      "Your message": [\n        null,\n        "Sua mensagem"\n      ],\n      "Your name": [\n        null,\n        "Seu nome"\n      ],\n      "Your text": [\n        null,\n        "Seu texto"\n      ]\n    }\n  },\n  "domain": "converse"\n}'}),define("text!ru",[],function(){return'{\n  "locale_data": {\n    "converse": {\n      "": {\n        "plural_forms": "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);",\n        "domain": "converse",\n        "lang": "ru"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Посетитель приглашает в чат"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "Приветствие или имя"\n      ],\n      "Ask a question": [\n        null,\n        "Задать вопрос"\n      ],\n      "Chat": [\n        null,\n        "Чат"\n      ],\n      "Chat with visitors": [\n        null,\n        "Запустить чат с посетителями"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Ошибка связи. Пожалуйста, проверьте ваше соединение с интернетом."\n      ],\n      "Consult the guides": [\n        null,\n        "Посмотреть руководства"\n      ],\n      "I am visible online": [\n        null,\n        "Я виден онлайн"\n      ],\n      "Make a suggestion": [\n        null,\n        "Предложить изменения"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "Сообщения хранятся 30 дней."\n      ],\n      "Notifications": [\n        null,\n        "Уведомления"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "Опубликуйте ваш сайт, чтобы активировать Чат."\n      ],\n      "Review this App": [\n        null,\n        "Написать отзыв"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Этот человек в данный момент не в сети"\n      ],\n      "Write to us": [\n        null,\n        "Написать нам"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Вы можете активировать Чат, отредактировав страницу Связаться вашего сайта."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Протестируйте страницу Связаться на вашем сайте."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Вы еще не установили Чат."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Вы еще не получили сообщений."\n      ],\n      "Chat with us": [\n        null,\n        "Чат"\n      ],\n      "Email us": [\n        null,\n        "Эл. почта"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Пожалуйста, опубликуйте сайт снова, чтобы изменения вступили в силу."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "Вы можете ответить на сообщения посетителей через приложение SimDif"\n      ],\n      "Your screen name will show as": [\n        null,\n        "Ваше имя будет указано, как "\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        ""\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "Вы уверены, что хотите очистить сообщения из окна чата?"\n      ],\n      "Clear all messages": [\n        null,\n        "Очистить все сообщения"\n      ],\n      "has gone away": [\n        null,\n        "отошёл"\n      ],\n      "has gone offline": [\n        null,\n        "вышел из сети"\n      ],\n      "has stopped typing": [\n        null,\n        "перестал набирать"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "Я сейчас недоступен для общения в Чате."\n      ],\n      "is busy": [\n        null,\n        "занят"\n      ],\n      "is typing": [\n        null,\n        "набирает текст"\n      ],\n      "Let\'s chat": [\n        null,\n        "Давайте поговорим"\n      ],\n      "me": [\n        null,\n        "Я"\n      ],\n      "Please ask your question": [\n        null,\n        "Пожалуйста, задайте ваш вопрос"\n      ],\n      "Please check the box": [\n        null,\n        "Пожалуйста, поставьте галочку в квадрате"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Пожалуйста, напишите мне письмо на эл. почту с помощью формы выше. Я максимально быстро отвечу вам."\n      ],\n      "Remove messages": [\n        null,\n        "Удалить сообщения"\n      ],\n      "Show this menu": [\n        null,\n        "Показать это меню"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        ""\n      ],\n      "Typing from another device": [\n        null,\n        ""\n      ],\n      "Verification": [\n        null,\n        "Проверка пользователя"\n      ],\n      "What is your name?": [\n        null,\n        "Как вас зовут?"\n      ],\n      "Write in the third person": [\n        null,\n        "Вписать третьего человека"\n      ],\n      "Your message": [\n        null,\n        "Ваше сообщение"\n      ],\n      "Your name": [\n        null,\n        "Ваше имя"\n      ],\n      "Your text": [\n        null,\n        "Ваш текст"\n      ]\n    }\n  },\n  "domain": "converse"\n}';
}),define("text!th",[],function(){return'{\n  "locale_data": {\n    "converse": {\n      "": {\n        "plural_forms": "nplurals=2; plural=(n > 1);",\n        "domain": "converse",\n        "lang": "th"\n      },\n      "A visitor wants to chat": [\n        null,\n        "ผู้เข้าชมต้องการแชทกับคุณ"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "ข้อความต้อนรับหรือชื่อ"\n      ],\n      "Ask a question": [\n        null,\n        "ถามคำถาม"\n      ],\n      "Chat": [\n        null,\n        "แชท"\n      ],\n      "Chat with visitors": [\n        null,\n        "แชทกับผู้เข้าชม"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "เกิดข้อผิดพลาดในการเชื่อมต่อ กรุณาตรวจสอบการเชื่อมต่ออินเทอร์เน็ตของคุณ"\n      ],\n      "Consult the guides": [\n        null,\n        "คำแนะนำ"\n      ],\n      "I am visible online": [\n        null,\n        "กำลังออนไลน์"\n      ],\n      "Make a suggestion": [\n        null,\n        "ข้อเสนอแนะ"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "ข้อความจะถูกเก็บไว้เป็นเวลา 30 วัน"\n      ],\n      "Notifications": [\n        null,\n        "การแจ้งเตือน"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "เผยแพร่เว็บไซต์ของคุณเพื่อเปิดใช้งานแชท"\n      ],\n      "Review this App": [\n        null,\n        "รีวิวแอพ"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "บุคคลนี้ไม่ได้ออนไลน์ในขณะนี้"\n      ],\n      "Write to us": [\n        null,\n        "เขียนถึงทีมงาน"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "คุณสามารถเปิดใช้งานแชทได้ในหน้าติดต่อบนเว็บไซต์ของคุณ"\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "โดยคุณสามารถทดสอบส่งข้อความได้จากหน้าติดต่อบนเว็บไซต์ที่เผยแพร่แล้วของคุณ"\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "คุณยังไม่ได้เปิดใช้งานแชท"\n      ],\n      "You have not received any message yet.": [\n        null,\n        "คุณยังไม่ได้รับข้อความใดๆ"\n      ],\n      "Chat with us": [\n        null,\n        "แชท"\n      ],\n      "Email us": [\n        null,\n        "อีเมล"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "กรุณาเผยแพร่เว็บไซต์นี้อีกครั้งเพื่อให้การเปลี่ยนแปลงมีผล"\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "คุณสามารถตอบกลับข้อความของผู้เข้าชมเว็บไซต์ของคุณได้จาก SimDif แอพพลิเคชัน"\n      ],\n      "Your screen name will show as": [\n        null,\n        "ชื่อที่จะแสดงให้ผู้ติดต่อเห็น"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "ได้รับข้อความขนาดใหญ่มาก ซึ่งเป็นไปได้ว่าเป็นการโจมตีเพื่อป้องกันปัญหา ข้อความจะถูกทำให้สั้นลง"\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "ต้องการลบข้อความจากกล่องนี้ ใช่หรือไม่?"\n      ],\n      "Clear all messages": [\n        null,\n        "ล้างข้อความทั้งหมด"\n      ],\n      "has gone away": [\n        null,\n        "ไม่อยู่"\n      ],\n      "has gone offline": [\n        null,\n        "ออกไปแล้ว"\n      ],\n      "has stopped typing": [\n        null,\n        "หยุดพิมพ์"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "ขออภัย  ยังไม่สามารถตอบแชทคุณได้ในขณะนี้"\n      ],\n      "is busy": [\n        null,\n        "ยุ่งอยู่"\n      ],\n      "is typing": [\n        null,\n        "กำลังพิมพ์"\n      ],\n      "Let\'s chat": [\n        null,\n        "มาแชทกันเถอะ!!"\n      ],\n      "me": [\n        null,\n        "ฉัน"\n      ],\n      "Please ask your question": [\n        null,\n        "กรุณาถามคำถามของคุณ"\n      ],\n      "Please check the box": [\n        null,\n        "กรุณาทำเครื่องหมายในช่องว่าง"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "คุณสามารถส่งข้อความได้ทางแบบฟอร์มอีเมลเราจะทำการตอบกลับให้เร็วที่สุด"\n      ],\n      "Remove messages": [\n        null,\n        "ลบข้อความ"\n      ],\n      "Show this menu": [\n        null,\n        "แสดงเมนูนี้"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "หยุดพิมพ์ จากอุปกรณ์อื่น"\n      ],\n      "Typing from another device": [\n        null,\n        "กำลังพิมพ์ จากอุปกรณ์อื่น"\n      ],\n      "Verification": [\n        null,\n        "ยืนยันตัวตน"\n      ],\n      "What is your name?": [\n        null,\n        "คุณชื่ออะไร?"\n      ],\n      "Write in the third person": [\n        null,\n        "เขียนข้อความจากบุคคลอื่น"\n      ],\n      "Your message": [\n        null,\n        "ข้อความของคุณ"\n      ],\n      "Your name": [\n        null,\n        "ชื่อของคุณ"\n      ],\n      "Your text": [\n        null,\n        "ข้อความของคุณ"\n      ]\n    }\n  },\n  "domain": "converse"\n}'}),define("text!vi",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=1; plural=0;",\n        "lang": "vi"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Một khách truy cập muốn trò chuyện"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "Câu chào mừng hoặc tên"\n      ],\n      "Ask a question": [\n        null,\n        "Đặt một câu hỏi"\n      ],\n      "Chat": [\n        null,\n        "Trò chuyện"\n      ],\n      "Chat with visitors": [\n        null,\n        "Trò chuyện với du khách"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Lỗi giao tiếp. Xin vui lòng kiểm tra kết nối Internet của bạn."\n      ],\n      "Consult the guides": [\n        null,\n        "Tham khảo hướng dẫn"\n      ],\n      "I am visible online": [\n        null,\n        "Tôi có thể nhìn thấy trực tuyến"\n      ],\n      "Make a suggestion": [\n        null,\n        "Đưa ra gợi ý"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "Tin nhắn được giữ trong 30 ngày."\n      ],\n      "Notifications": [\n        null,\n        "Thông báo"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "Xuất bản trang web của bạn để kích hoạt Trò chuyện."\n      ],\n      "Review this App": [\n        null,\n        "Xem lại ứng dụng này"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Người này không online nữa."\n      ],\n      "Write to us": [\n        null,\n        "Viết thư cho chúng tôi"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Bạn có thể kích hoạt Trò chuyện chỉnh sửa trang liên hệ của trang web của bạn."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Bạn có thể kiểm tra trang liên hệ trên trang web được xuất bản của bạn."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Bạn chưa cài đặt Trò chuyện."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Bạn chưa nhận được bất kỳ tin nhắn nào."\n      ],\n      "Chat with us": [\n        null,\n        "Trò chuyện với chúng tôi"\n      ],\n      "Email us": [\n        null,\n        "Gửi email cho chúng tôi"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Vui lòng xuất bản trang web này một lần nữa để những thay đổi có hiệu lực."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "Bạn có thể trả lời tin nhắn của độc giả bằng ứng dụng SimDif."\n      ],\n      "Your screen name will show as": [\n        null,\n        "Tên màn hình của bạn sẽ hiển thị dưới dạng"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "Một tin nhắn rất lớn đã được nhận. Điều này có thể là do một cuộc tấn công có nghĩa là làm giảm hiệu suất trò chuyện. Thông số đã được rút ngắn."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "Bạn có chắc chắn muốn xóa các tin nhắn khỏi hộp trò chuyện này?"\n      ],\n      "Clear all messages": [\n        null,\n        "Xóa tất cả tin nhắn"\n      ],\n      "has gone away": [\n        null,\n        "đã ra đi"\n      ],\n      "has gone offline": [\n        null,\n        "đã ngoại tuyến"\n      ],\n      "has stopped typing": [\n        null,\n        "Đã ngừng gõ"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "Tôi không có sẵn ngay bây giờ cho một cuộc trò chuyện."\n      ],\n      "is busy": [\n        null,\n        "đang bận"\n      ],\n      "is typing": [\n        null,\n        "đang đánh máy"\n      ],\n      "Let\'s chat": [\n        null,\n        "Hãy tán gẫu nào"\n      ],\n      "me": [\n        null,\n        "tôi"\n      ],\n      "Please ask your question": [\n        null,\n        "Hãy hỏi câu hỏi của bạn"\n      ],\n      "Please check the box": [\n        null,\n        "Vui lòng kiểm tra hộp"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Vui lòng sử dụng mẫu ở trên để gửi email cho tôi. Tôi sẽ lấy lại cho bạn một cách nhanh chóng."\n      ],\n      "Remove messages": [\n        null,\n        "Xóa tin nhắn"\n      ],\n      "Show this menu": [\n        null,\n        "Hiển thị menu này"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "Ngừng gõ trên thiết bị khác"\n      ],\n      "Typing from another device": [\n        null,\n        "Gõ từ thiết bị khác"\n      ],\n      "Verification": [\n        null,\n        "xác minh"\n      ],\n      "What is your name?": [\n        null,\n        "Tên của bạn là gì?"\n      ],\n      "Write in the third person": [\n        null,\n        "Viết ở ngôi thứ ba"\n      ],\n      "Your message": [\n        null,\n        "Tin nhắn của bạn"\n      ],\n      "Your name": [\n        null,\n        "Tên của bạn"\n      ],\n      "Your text": [\n        null,\n        "Văn bản của bạn"\n      ]\n    }\n  }\n}'}),define("text!ca",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=2; plural=(n > 1);",\n        "lang": "ca"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Un visitant vol xerrar"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "Una frase de benvinguda o un nom"\n      ],\n      "Ask a question": [\n        null,\n        "Fer una pregunta"\n      ],\n      "Chat": [\n        null,\n        "Xatejar"\n      ],\n      "Chat with visitors": [\n        null,\n        "Xateja amb els visitants"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Error de comunicació. Comproveu la vostra connexió a Internet."\n      ],\n      "Consult the guides": [\n        null,\n        "Consulteu les guies"\n      ],\n      "I am visible online": [\n        null,\n        "Sóc visible en línia"\n      ],\n      "Make a suggestion": [\n        null,\n        "Fer una sugerència"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "Els missatges es mantenen durant 30 dies."\n      ],\n      "Notifications": [\n        null,\n        "Notificacions"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "Publica el teu lloc web per activar el xat."\n      ],\n      "Review this App": [\n        null,\n        "Revisa aquesta aplicació"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Aquesta persona ja no està en línia."\n      ],\n      "Write to us": [\n        null,\n        "Escriu-nos"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Podeu activar el xat editant la pàgina de contacte del vostre lloc web."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Podeu provar la pàgina de contacte al vostre lloc publicat."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Encara no heu instal·lat el xat."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Encara no heu rebut cap missatge."\n      ],\n      "Chat with us": [\n        null,\n        "Xateja amb nosaltres"\n      ],\n      "Email us": [\n        null,\n        "Envieu-nos un correu electrònic"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Torneu a publicar aquest lloc per tal que els canvis siguin efectius."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "Podeu respondre els missatges dels vostres lectors amb l’aplicació SimDif."\n      ],\n      "Your screen name will show as": [\n        null,\n        "El nom de la pantalla es mostrarà com"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "S\\\\\'ha rebut un missatge molt gran, que es pot deure a un atac per degradar el rendiment del xat. S\\\\\'ha escurçat el resultat."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "Esteu segur que voleu esborrar els missatges d’aquest quadre de xat?"\n      ],\n      "Clear all messages": [\n        null,\n        "Netegeu tots els missatges"\n      ],\n      "has gone away": [\n        null,\n        "se n’ha anat"\n      ],\n      "has gone offline": [\n        null,\n        "s\\\\\'ha desconnectat"\n      ],\n      "has stopped typing": [\n        null,\n        "ha deixat d\\\\\'escriure"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "Ara mateix no estic disponible per a un xat."\n      ],\n      "is busy": [\n        null,\n        "està ocupat"\n      ],\n      "is typing": [\n        null,\n        "està escrivint"\n      ],\n      "Let\'s chat": [\n        null,\n        "Parlem"\n      ],\n      "me": [\n        null,\n        "jo"\n      ],\n      "Please ask your question": [\n        null,\n        "Pregunteu la vostra pregunta"\n      ],\n      "Please check the box": [\n        null,\n        "Marqueu la casella"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Utilitzeu el formulari anterior per enviar-me un correu electrònic. Et tornaré ràpidament."\n      ],\n      "Remove messages": [\n        null,\n        "Elimina els missatges"\n      ],\n      "Show this menu": [\n        null,\n        "Mostra aquest menú"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "S\\\\\'ha parat d\\\\\'escriure a l\\\\\'altre dispositiu"\n      ],\n      "Typing from another device": [\n        null,\n        "Escrivint un altre dispositiu"\n      ],\n      "Verification": [\n        null,\n        "Verificació"\n      ],\n      "What is your name?": [\n        null,\n        "Quin és el teu nom?"\n      ],\n      "Write in the third person": [\n        null,\n        "Escriu en tercera persona"\n      ],\n      "Your message": [\n        null,\n        "El teu missatge"\n      ],\n      "Your name": [\n        null,\n        "El teu nom"\n      ],\n      "Your text": [\n        null,\n        "El vostre text"\n      ]\n    }\n  }\n}'}),define("text!no",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=2; plural=(n != 1);",\n        "lang": "no"\n      },\n      "A visitor wants to chat": [\n        null,\n        "En besøkende vil chatte"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "En kjærkomment setning eller et navn"\n      ],\n      "Ask a question": [\n        null,\n        "Spør et spørsmål"\n      ],\n      "Chat": [\n        null,\n        "Chat"\n      ],\n      "Chat with visitors": [\n        null,\n        "Chat med besøkende"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Kommunikasjonsfeil. Vennligst sjekk internettforbindelsen din."\n      ],\n      "Consult the guides": [\n        null,\n        "Konsulter guide"\n      ],\n      "I am visible online": [\n        null,\n        "Jeg er synlig på nettet"\n      ],\n      "Make a suggestion": [\n        null,\n        "Komme med et forslag"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "Meldinger oppbevares i 30 dager."\n      ],\n      "Notifications": [\n        null,\n        "Varsler"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "Publiser nettstedet ditt for å aktivere chatten."\n      ],\n      "Review this App": [\n        null,\n        "Gå gjennom denne appen"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Denne personen er ikke online lenger."\n      ],\n      "Write to us": [\n        null,\n        "Skriv til oss"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Du kan aktivere Chat-redigering av kontaktsiden på nettstedet ditt."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Du kan teste kontaktsiden på det publiserte nettstedet ditt."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Du har ikke installert nettpraten ennå."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Du har ikke mottatt noen melding ennå."\n      ],\n      "Chat with us": [\n        null,\n        "snakk med oss"\n      ],\n      "Email us": [\n        null,\n        "Send oss en e-post"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Publiser dette nettstedet igjen for at endringene skal tre i kraft."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "Du kan svare på meldingene til leserne dine med SimDif-appen."\n      ],\n      "Your screen name will show as": [\n        null,\n        "Skjermnavnet ditt vises som"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "Det er mottatt en veldig stor melding. Dette kan skyldes et angrep som er ment å forringe chatprestasjonen. Produksjonen er blitt forkortet."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "Er du sikker på at du vil tømme meldingene fra denne chatboksen?"\n      ],\n      "Clear all messages": [\n        null,\n        "Fjern alle meldinger"\n      ],\n      "has gone away": [\n        null,\n        "har gått bort"\n      ],\n      "has gone offline": [\n        null,\n        "har gått offline"\n      ],\n      "has stopped typing": [\n        null,\n        "har sluttet å skrive"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "Jeg er ikke tilgjengelig akkurat nå for en chat."\n      ],\n      "is busy": [\n        null,\n        "er opptatt"\n      ],\n      "is typing": [\n        null,\n        "skriver"\n      ],\n      "Let\'s chat": [\n        null,\n        "La oss snakke"\n      ],\n      "me": [\n        null,\n        "meg"\n      ],\n      "Please ask your question": [\n        null,\n        "Spør spørsmålet ditt"\n      ],\n      "Please check the box": [\n        null,\n        "Merk av i ruten"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Bruk skjemaet ovenfor for å sende meg en e-post. Jeg kommer raskt tilbake til deg."\n      ],\n      "Remove messages": [\n        null,\n        "Fjern meldinger"\n      ],\n      "Show this menu": [\n        null,\n        "Vis denne menyen"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "Sluttet å skrive på den andre enheten"\n      ],\n      "Typing from another device": [\n        null,\n        "Skrive fra en annen enhet"\n      ],\n      "Verification": [\n        null,\n        "Bekreftelse"\n      ],\n      "What is your name?": [\n        null,\n        "Hva heter du?"\n      ],\n      "Write in the third person": [\n        null,\n        "Skriv i tredje person"\n      ],\n      "Your message": [\n        null,\n        "Din beskjed"\n      ],\n      "Your name": [\n        null,\n        "Navnet ditt"\n      ],\n      "Your text": [\n        null,\n        "Din tekst"\n      ]\n    }\n  }\n}'}),define("text!tl",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=2; plural=(n > 1);",\n        "lang": "tl"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Ang isang bisita ay gustong makipag-chat"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "Malugod na pangungusap o isang pangalan"\n      ],\n      "Ask a question": [\n        null,\n        "Magtanong"\n      ],\n      "Chat": [\n        null,\n        "Makipag-chat"\n      ],\n      "Chat with visitors": [\n        null,\n        "Makipag-chat sa mga bisita"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Ang error sa komunikasyon. Mangyaring suriin ang iyong koneksyon sa internet."\n      ],\n      "Consult the guides": [\n        null,\n        "Kumonsulta sa mga gabay"\n      ],\n      "I am visible online": [\n        null,\n        "Nakikita ako online"\n      ],\n      "Make a suggestion": [\n        null,\n        "Gumawa ng isang mungkahi"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "Ang mga mensahe ay pinananatiling 30 araw."\n      ],\n      "Notifications": [\n        null,\n        "Mga Abiso"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "I-publish ang iyong website upang maisaaktibo ang Chat."\n      ],\n      "Review this App": [\n        null,\n        "Suriin ang App na ito"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Ang taong ito ay hindi na online."\n      ],\n      "Write to us": [\n        null,\n        "Sumulat sa amin"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Maaari mong buhayin ang pag-edit ng Chat na pahina ng contact ng iyong website."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Maaari mong subukan ang pahina ng contact sa iyong nai-publish na site."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Hindi mo pa nai-install ang Chat."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Wala ka pang natanggap na mensahe."\n      ],\n      "Chat with us": [\n        null,\n        "Makipag-usap ka sa amin"\n      ],\n      "Email us": [\n        null,\n        "I-email sa amin"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Mangyaring i-publish muli ang site na ito para sa mga pagbabago na magkakabisa."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "Maaari mong sagutin ang mga mensahe ng iyong mga mambabasa gamit ang SimDif app."\n      ],\n      "Your screen name will show as": [\n        null,\n        "Ang iyong pangalan ng screen ay magpapakita bilang"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "Isang napakalaking mensahe ang natanggap. Maaaring ito ay dahil sa isang pag-atake na inilaan upang masira ang pagganap ng chat.Output ay pinaikling."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "Sigurado ka bang nais mong i-clear ang mga mensahe mula sa chat box na ito?"\n      ],\n      "Clear all messages": [\n        null,\n        "I-clear ang lahat ng mga mensahe"\n      ],\n      "has gone away": [\n        null,\n        "umalis na"\n      ],\n      "has gone offline": [\n        null,\n        "wala na sa offline"\n      ],\n      "has stopped typing": [\n        null,\n        "huminto sa pag-type"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "Hindi ako magagamit ngayon para sa isang Chat."\n      ],\n      "is busy": [\n        null,\n        "ay abala"\n      ],\n      "is typing": [\n        null,\n        "nagta-type"\n      ],\n      "Let\'s chat": [\n        null,\n        "Magusap tayo"\n      ],\n      "me": [\n        null,\n        "ako"\n      ],\n      "Please ask your question": [\n        null,\n        "Mangyaring tanungin ang iyong katanungan"\n      ],\n      "Please check the box": [\n        null,\n        "Mangyaring suriin ang kahon"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Mangyaring gamitin ang form sa itaas upang magpadala sa akin ng isang email. Babalik ako sa iyo ng mabilis."\n      ],\n      "Remove messages": [\n        null,\n        "Alisin ang mga mensahe"\n      ],\n      "Show this menu": [\n        null,\n        "Ipakita ang menu na ito"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "Tumigil sa pag-type sa iba pang aparato"\n      ],\n      "Typing from another device": [\n        null,\n        "Pag-type mula sa isa pang aparato"\n      ],\n      "Verification": [\n        null,\n        "Pag-verify"\n      ],\n      "What is your name?": [\n        null,\n        "Ano ang pangalan mo?"\n      ],\n      "Write in the third person": [\n        null,\n        "Sumulat sa pangatlong tao"\n      ],\n      "Your message": [\n        null,\n        "Mensahe mo"\n      ],\n      "Your name": [\n        null,\n        "Ang pangalan mo"\n      ],\n      "Your text": [\n        null,\n        "Ang iyong teksto"\n      ]\n    }\n  }\n}'}),define("text!tr",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=2; plural=(n != 1);",\n        "lang": "tr"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Bir ziyaretçi sohbet etmek istiyor"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "Hoşgeldin cümlesi veya adı"\n      ],\n      "Ask a question": [\n        null,\n        "Bir soru sor"\n      ],\n      "Chat": [\n        null,\n        "Sohbet"\n      ],\n      "Chat with visitors": [\n        null,\n        "Ziyaretçilerle sohbet edin"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "İletişim hatası. Lütfen internet bağlantınızı kontrol edin."\n      ],\n      "Consult the guides": [\n        null,\n        "Kılavuzlara bakın"\n      ],\n      "I am visible online": [\n        null,\n        "Çevrimiçi görünüyorum"\n      ],\n      "Make a suggestion": [\n        null,\n        "Bir öneri yapmak"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "Mesajlar 30 gün boyunca saklanır."\n      ],\n      "Notifications": [\n        null,\n        "Bildirimler"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "Sohbeti etkinleştirmek için web sitenizi yayınlayın."\n      ],\n      "Review this App": [\n        null,\n        "Bu Uygulamayı İnceleyin"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Bu kişi artık çevrimiçi değil."\n      ],\n      "Write to us": [\n        null,\n        "Bize yazın"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Web sitenizin kişi sayfasını düzenleyerek Sohbeti etkinleştirebilirsiniz."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "İletişim sayfasını yayınlanan sitenizde test edebilirsiniz."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Sohbeti henüz yüklemediniz."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Henüz herhangi bir mesaj almadınız."\n      ],\n      "Chat with us": [\n        null,\n        "bizle sohbet et"\n      ],\n      "Email us": [\n        null,\n        "Bize e-posta gönderin"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Değişikliklerin geçerli olması için lütfen bu siteyi tekrar yayınlayın."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "SimDif uygulaması ile okuyucularınızın mesajlarına cevap verebilirsiniz."\n      ],\n      "Your screen name will show as": [\n        null,\n        "Ekran adınız şu şekilde görünecektir:"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "Çok büyük bir mesaj alındı. Bunun nedeni sohbet performansını düşürmek amacıyla yapılmış bir saldırı olabilir."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "Bu sohbet kutusundaki mesajları silmek istediğinizden emin misiniz?"\n      ],\n      "Clear all messages": [\n        null,\n        "Tüm mesajları temizle"\n      ],\n      "has gone away": [\n        null,\n        "uzağa gitti"\n      ],\n      "has gone offline": [\n        null,\n        "çevrimdışı oldu"\n      ],\n      "has stopped typing": [\n        null,\n        "Yazmayı bıraktı"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "Şu anda Sohbet için uygun değilim."\n      ],\n      "is busy": [\n        null,\n        "meşgul"\n      ],\n      "is typing": [\n        null,\n        "yazıyor"\n      ],\n      "Let\'s chat": [\n        null,\n        "Muhabbet edelim"\n      ],\n      "me": [\n        null,\n        "ben mi"\n      ],\n      "Please ask your question": [\n        null,\n        "Lütfen sorunuzu sorun"\n      ],\n      "Please check the box": [\n        null,\n        "Lütfen kutuyu işaretleyin"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Bana bir e-posta göndermek için lütfen yukarıdaki formu kullanın. Size hızlıca geri döneceğim."\n      ],\n      "Remove messages": [\n        null,\n        "İletileri kaldır"\n      ],\n      "Show this menu": [\n        null,\n        "Bu menüyü göster"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "Diğer cihazda yazmayı durdurdu"\n      ],\n      "Typing from another device": [\n        null,\n        "Başka bir cihazdan yazma"\n      ],\n      "Verification": [\n        null,\n        "Doğrulama"\n      ],\n      "What is your name?": [\n        null,\n        "Adın ne?"\n      ],\n      "Write in the third person": [\n        null,\n        "Üçüncü kişide yazın"\n      ],\n      "Your message": [\n        null,\n        "Mesajın"\n      ],\n      "Your name": [\n        null,\n        "Adınız"\n      ],\n      "Your text": [\n        null,\n        "Metniniz"\n      ]\n    }\n  }\n}';
}),define("text!bn",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=2; plural=(n > 1);",\n        "lang": "bn"\n      },\n      "A visitor wants to chat": [\n        null,\n        "একজন দর্শনার্থী চ্যাট করতে চান"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "একটি স্বাগত বাক্য বা একটি নাম"\n      ],\n      "Ask a question": [\n        null,\n        "প্রশ্ন জিজ্ঞাসা কর"\n      ],\n      "Chat": [\n        null,\n        "চ্যাট"\n      ],\n      "Chat with visitors": [\n        null,\n        "দর্শনার্থীদের সাথে চ্যাট করুন"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "যোগাযোগে ত্রুটি. আপনার ইন্টারনেট সংযোগ পরীক্ষা করুন।"\n      ],\n      "Consult the guides": [\n        null,\n        "গাইডদের সাথে পরামর্শ করুন"\n      ],\n      "I am visible online": [\n        null,\n        "আমি অনলাইনে দৃশ্যমান"\n      ],\n      "Make a suggestion": [\n        null,\n        "একটি উপদেশ বানান"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "বার্তা 30 দিনের জন্য রাখা হয়।"\n      ],\n      "Notifications": [\n        null,\n        "বিজ্ঞপ্তিগুলি"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "চ্যাটটি সক্রিয় করতে আপনার ওয়েবসাইটটি প্রকাশ করুন।"\n      ],\n      "Review this App": [\n        null,\n        "এই অ্যাপটি পর্যালোচনা করুন"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "এই ব্যক্তিটি আর অনলাইনে নেই।"\n      ],\n      "Write to us": [\n        null,\n        "আমাদের লিখুন"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "আপনি আপনার ওয়েবসাইটের যোগাযোগ পৃষ্ঠাটি চ্যাট সম্পাদনা সক্রিয় করতে পারেন।"\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "আপনি আপনার প্রকাশিত সাইটে যোগাযোগের পৃষ্ঠাটি পরীক্ষা করতে পারেন।"\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "আপনি এখনও চ্যাটটি ইনস্টল করেন নি।"\n      ],\n      "You have not received any message yet.": [\n        null,\n        "আপনি এখনও কোনও বার্তা পান নি।"\n      ],\n      "Chat with us": [\n        null,\n        "আমাদের সাথে খোস গল্প কর"\n      ],\n      "Email us": [\n        null,\n        "আমাদেরকে ইমেইল করুন"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "পরিবর্তনগুলি কার্যকর হওয়ার জন্য দয়া করে এই সাইটটি আবার প্রকাশ করুন।"\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "আপনি আপনার পাঠকদের বার্তাগুলির উত্তর সিমডিফ অ্যাপ দিয়ে দিতে পারেন।"\n      ],\n      "Your screen name will show as": [\n        null,\n        "আপনার পর্দার নাম হিসাবে প্রদর্শিত হবে"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "একটি খুব বড় বার্তা পেয়েছে Tএটি আক্রমণের কারণে আড্ডার পারফরম্যান্স হ্রাস করার কারণ হতে পারে utআউটপুট সংক্ষিপ্ত করা হয়েছে।"\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "আপনি কি এই চ্যাট বাক্স থেকে বার্তাগুলি সাফ করার বিষয়ে নিশ্চিত?"\n      ],\n      "Clear all messages": [\n        null,\n        "সমস্ত বার্তা সাফ করুন"\n      ],\n      "has gone away": [\n        null,\n        "দূরে চলে গেছে"\n      ],\n      "has gone offline": [\n        null,\n        "অফলাইনে চলে গেছে"\n      ],\n      "has stopped typing": [\n        null,\n        "টাইপ করা বন্ধ হয়ে গেছে"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "আমি এখনই চ্যাটের জন্য উপলভ্য নই।"\n      ],\n      "is busy": [\n        null,\n        "ব্যস্ত"\n      ],\n      "is typing": [\n        null,\n        "টাইপ করা হয়"\n      ],\n      "Let\'s chat": [\n        null,\n        "চলো চ্যাট করি"\n      ],\n      "me": [\n        null,\n        "আমাকে"\n      ],\n      "Please ask your question": [\n        null,\n        "আপনার প্রশ্ন জিজ্ঞাসা করুন"\n      ],\n      "Please check the box": [\n        null,\n        "বক্সটি চেক করুন"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "আমাকে ইমেল পাঠাতে দয়া করে উপরের ফর্মটি ব্যবহার করুন। আমি দ্রুত আপনার কাছে ফিরে আসব।"\n      ],\n      "Remove messages": [\n        null,\n        "বার্তা সরান"\n      ],\n      "Show this menu": [\n        null,\n        "এই মেনুটি দেখান"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "অন্য ডিভাইসে টাইপ করা বন্ধ হয়ে গেছে"\n      ],\n      "Typing from another device": [\n        null,\n        "অন্য ডিভাইস থেকে টাইপ করা হচ্ছে"\n      ],\n      "Verification": [\n        null,\n        "প্রতিপাদন"\n      ],\n      "What is your name?": [\n        null,\n        "আপনার নাম কি?"\n      ],\n      "Write in the third person": [\n        null,\n        "তৃতীয় ব্যক্তি লিখুন"\n      ],\n      "Your message": [\n        null,\n        "তোমার বার্তা"\n      ],\n      "Your name": [\n        null,\n        "তোমার নাম"\n      ],\n      "Your text": [\n        null,\n        "তোমার বার্তা"\n      ]\n    }\n  }\n}'}),define("text!ms",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=2; plural=(n > 1);",\n        "lang": "ms"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Pelawat ingin berbual"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "Kalimat atau nama alu-aluan"\n      ],\n      "Ask a question": [\n        null,\n        "Tanya soalan"\n      ],\n      "Chat": [\n        null,\n        "Berbual"\n      ],\n      "Chat with visitors": [\n        null,\n        "Berbual dengan pelawat"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Masalah komunikasi. Sila periksa sambungan internet anda."\n      ],\n      "Consult the guides": [\n        null,\n        "Rujuk panduan"\n      ],\n      "I am visible online": [\n        null,\n        "Saya kelihatan dalam talian"\n      ],\n      "Make a suggestion": [\n        null,\n        "Buat cadangan"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "Mesej disimpan selama 30 hari."\n      ],\n      "Notifications": [\n        null,\n        "Pemberitahuan"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "Terbitkan laman web anda untuk mengaktifkan Sembang."\n      ],\n      "Review this App": [\n        null,\n        "Semak Aplikasi ini"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Orang ini tidak dalam talian lagi."\n      ],\n      "Write to us": [\n        null,\n        "Tulis kepada kami"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Anda boleh mengaktifkan Chat mengedit halaman kenalan laman web anda."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Anda boleh menguji halaman kenalan di laman web yang anda terbitkan."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Anda belum memasang Sembang."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Anda belum menerima sebarang mesej."\n      ],\n      "Chat with us": [\n        null,\n        "Berbual dengan kami"\n      ],\n      "Email us": [\n        null,\n        "Email kami"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Sila terbitkan laman web ini lagi untuk perubahan yang berlaku."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "Anda boleh menjawab mesej pembaca anda dengan aplikasi SimDif."\n      ],\n      "Your screen name will show as": [\n        null,\n        "Nama skrin anda akan dipaparkan sebagai"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "Mesej yang sangat besar telah diterima. Ini mungkin disebabkan oleh serangan yang bertujuan untuk menurunkan prestasi sembang. Output telah dipersingkat."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "Adakah anda pasti mahu membersihkan mesej dari kotak sembang ini?"\n      ],\n      "Clear all messages": [\n        null,\n        "Kosongkan semua mesej"\n      ],\n      "has gone away": [\n        null,\n        "telah pergi"\n      ],\n      "has gone offline": [\n        null,\n        "telah pergi ke luar talian"\n      ],\n      "has stopped typing": [\n        null,\n        "telah berhenti menaip"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "Saya tidak tersedia sekarang untuk Sembang."\n      ],\n      "is busy": [\n        null,\n        "sibuk"\n      ],\n      "is typing": [\n        null,\n        "sedang menaip"\n      ],\n      "Let\'s chat": [\n        null,\n        "Mari berbual"\n      ],\n      "me": [\n        null,\n        "saya"\n      ],\n      "Please ask your question": [\n        null,\n        "Tanyakan soalan anda"\n      ],\n      "Please check the box": [\n        null,\n        "Sila tandakan kotak"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Sila gunakan borang di atas untuk menghantar e-mel kepada saya. Saya akan menghubungi anda dengan cepat."\n      ],\n      "Remove messages": [\n        null,\n        "Keluarkan mesej"\n      ],\n      "Show this menu": [\n        null,\n        "Tunjukkan menu ini"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "Berhenti menaip pada peranti lain"\n      ],\n      "Typing from another device": [\n        null,\n        "Menaip dari peranti lain"\n      ],\n      "Verification": [\n        null,\n        "Pengesahan"\n      ],\n      "What is your name?": [\n        null,\n        "Siapa nama awak?"\n      ],\n      "Write in the third person": [\n        null,\n        "Tulis pada orang ketiga"\n      ],\n      "Your message": [\n        null,\n        "Mesej anda"\n      ],\n      "Your name": [\n        null,\n        "Nama awak"\n      ],\n      "Your text": [\n        null,\n        "Teks anda"\n      ]\n    }\n  }\n}'}),define("text!hi",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=2; plural=(n > 1);",\n        "lang": "hi"\n      },\n      "A visitor wants to chat": [\n        null,\n        "एक आगंतुक चैट करना चाहता है"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "एक स्वागत योग्य वाक्य या एक नाम"\n      ],\n      "Ask a question": [\n        null,\n        "प्रश्न पूछें"\n      ],\n      "Chat": [\n        null,\n        "चैट"\n      ],\n      "Chat with visitors": [\n        null,\n        "आगंतुकों के साथ चैट करें"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "संपर्क त्रुटि। कृपया अपने इंटरनेट कनेक्शन की जाँच करें।"\n      ],\n      "Consult the guides": [\n        null,\n        "गाइड से सलाह लें"\n      ],\n      "I am visible online": [\n        null,\n        "मैं ऑनलाइन दिखाई दे रहा हूं"\n      ],\n      "Make a suggestion": [\n        null,\n        "एक सुझाव दो"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "संदेश 30 दिनों के लिए रखे जाते हैं।"\n      ],\n      "Notifications": [\n        null,\n        "सूचनाएं"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "चैट को सक्रिय करने के लिए अपनी वेबसाइट प्रकाशित करें।"\n      ],\n      "Review this App": [\n        null,\n        "इस ऐप की समीक्षा करें"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "यह व्यक्ति अब ऑनलाइन नहीं है।"\n      ],\n      "Write to us": [\n        null,\n        "हमें लिखें"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "आप अपनी वेबसाइट के संपर्क पृष्ठ को संपादित करते हुए चैट को सक्रिय कर सकते हैं।"\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "आप अपनी प्रकाशित साइट पर संपर्क पृष्ठ का परीक्षण कर सकते हैं।"\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "आपने अभी तक चैट इंस्टॉल नहीं किया है।"\n      ],\n      "You have not received any message yet.": [\n        null,\n        "आपको अभी तक कोई संदेश नहीं मिला है।"\n      ],\n      "Chat with us": [\n        null,\n        "हम से बात करे"\n      ],\n      "Email us": [\n        null,\n        "हमे ईमेल करे"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "परिवर्तनों को प्रभावी करने के लिए कृपया इस साइट को फिर से प्रकाशित करें।"\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "आप अपने पाठकों के संदेशों का सिमडिफ़ ऐप से जवाब दे सकते हैं।"\n      ],\n      "Your screen name will show as": [\n        null,\n        "जैसा आपका स्क्रीन नाम दिखाई देगा"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "एक बहुत बड़ा संदेश मिला है। यह चैट प्रदर्शन को कम करने के लिए किए गए हमले के कारण हो सकता है।"\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "क्या आप वाकई इस चैट बॉक्स से संदेशों को साफ़ करना चाहते हैं?"\n      ],\n      "Clear all messages": [\n        null,\n        "सभी संदेश साफ़ करें"\n      ],\n      "has gone away": [\n        null,\n        "दूर चला गया है"\n      ],\n      "has gone offline": [\n        null,\n        "ऑफ़लाइन हो गया है"\n      ],\n      "has stopped typing": [\n        null,\n        "टाइप करना बंद कर दिया है"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "मैं अभी चैट के लिए उपलब्ध नहीं हूं।"\n      ],\n      "is busy": [\n        null,\n        "व्यस्त है"\n      ],\n      "is typing": [\n        null,\n        "टाइप कर रहा है"\n      ],\n      "Let\'s chat": [\n        null,\n        "चलो बात करे"\n      ],\n      "me": [\n        null,\n        "मुझे"\n      ],\n      "Please ask your question": [\n        null,\n        "कृपया अपना प्रश्न पूछें"\n      ],\n      "Please check the box": [\n        null,\n        "कृपया बॉक्स को चेक करें"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "कृपया मुझे ईमेल भेजने के लिए ऊपर दिए गए फॉर्म का उपयोग करें। मैं आपके पास तेजी से वापस आऊंगा।"\n      ],\n      "Remove messages": [\n        null,\n        "संदेश निकालें"\n      ],\n      "Show this menu": [\n        null,\n        "यह मेनू दिखाएँ"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "दूसरे उपकरण पर टाइपिंग बंद कर दी"\n      ],\n      "Typing from another device": [\n        null,\n        "दूसरे उपकरण से टाइपिंग"\n      ],\n      "Verification": [\n        null,\n        "सत्यापन"\n      ],\n      "What is your name?": [\n        null,\n        "तुम्हारा नाम क्या हे?"\n      ],\n      "Write in the third person": [\n        null,\n        "तीसरे व्यक्ति में लिखें"\n      ],\n      "Your message": [\n        null,\n        "आपका सन्देश"\n      ],\n      "Your name": [\n        null,\n        "आपका नाम"\n      ],\n      "Your text": [\n        null,\n        "आपका लेख"\n      ]\n    }\n  }\n}'}),define("text!mr",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=2; plural=(n > 1);",\n        "lang": "mr"\n      },\n      "A visitor wants to chat": [\n        null,\n        "अभ्यागत गप्पा मारू इच्छितो"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "स्वागत वाक्य किंवा नाव"\n      ],\n      "Ask a question": [\n        null,\n        "प्रश्न विचारा"\n      ],\n      "Chat": [\n        null,\n        "गप्पा मारा"\n      ],\n      "Chat with visitors": [\n        null,\n        "अभ्यागतांशी गप्पा मारा"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "संप्रेषण त्रुटी. कृपया आपले इंटरनेट कनेक्शन तपासा."\n      ],\n      "Consult the guides": [\n        null,\n        "मार्गदर्शकांचा सल्ला घ्या"\n      ],\n      "I am visible online": [\n        null,\n        "मी ऑनलाइन दृश्यमान आहे"\n      ],\n      "Make a suggestion": [\n        null,\n        "एक सूचना द्या"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "संदेश 30 दिवस ठेवले आहेत."\n      ],\n      "Notifications": [\n        null,\n        "अधिसूचना"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "गप्पा सक्रिय करण्यासाठी आपली वेबसाइट प्रकाशित करा."\n      ],\n      "Review this App": [\n        null,\n        "या अ‍ॅपचे पुनरावलोकन करा"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "ही व्यक्ती आता ऑनलाइन नाही."\n      ],\n      "Write to us": [\n        null,\n        "आम्हाला लिहा"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "आपण आपल्या वेबसाइटचे संपर्क पृष्ठ संपादन चॅट सक्रिय करू शकता."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "आपण आपल्या प्रकाशित साइटवरील संपर्क पृष्ठाची चाचणी घेऊ शकता."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "आपण अद्याप चॅट स्थापित केलेला नाही."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "आपल्याला अद्याप कोणताही संदेश प्राप्त झाला नाही."\n      ],\n      "Chat with us": [\n        null,\n        "आमच्याशी गप्पा मारा"\n      ],\n      "Email us": [\n        null,\n        "आम्हाला ईमेल करा"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "कृपया बदल प्रभावी होण्यासाठी ही साइट पुन्हा प्रकाशित करा."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "आपण सिमडिफ अॅपद्वारे आपल्या वाचकांच्या संदेशांची उत्तरे देऊ शकता."\n      ],\n      "Your screen name will show as": [\n        null,\n        "आपले स्क्रीन नाव म्हणून दर्शविले जाईल"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "एक खूप मोठा संदेश प्राप्त झाला आहे. हे गप्पांच्या कामगिरीचे अवमूल्यन करण्याच्या आक्रमणामुळे असू शकते. आउटपुट कमी केले गेले आहे."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "आपणास खात्री आहे की आपण या चॅट बॉक्समधील संदेश साफ करू इच्छिता?"\n      ],\n      "Clear all messages": [\n        null,\n        "सर्व संदेश साफ करा"\n      ],\n      "has gone away": [\n        null,\n        "निघून गेला आहे"\n      ],\n      "has gone offline": [\n        null,\n        "ऑफलाइन गेले आहे"\n      ],\n      "has stopped typing": [\n        null,\n        "टाइप करणे थांबविले आहे"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "मी आत्ता गप्पांसाठी उपलब्ध नाही."\n      ],\n      "is busy": [\n        null,\n        "व्यस्त आहे"\n      ],\n      "is typing": [\n        null,\n        "टाईप करत आहे"\n      ],\n      "Let\'s chat": [\n        null,\n        "चला गप्पा मारूया"\n      ],\n      "me": [\n        null,\n        "मी"\n      ],\n      "Please ask your question": [\n        null,\n        "कृपया आपला प्रश्न विचारा"\n      ],\n      "Please check the box": [\n        null,\n        "कृपया बॉक्स तपासा"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "कृपया मला ईमेल पाठविण्यासाठी वरील फॉर्मचा वापर करा. मी तुमच्याकडे वेगाने येईन."\n      ],\n      "Remove messages": [\n        null,\n        "संदेश काढा"\n      ],\n      "Show this menu": [\n        null,\n        "हा मेनू दर्शवा"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "इतर डिव्हाइसवर टाइप करणे थांबविले"\n      ],\n      "Typing from another device": [\n        null,\n        "दुसर्‍या डिव्हाइसवरून टाइप करत आहे"\n      ],\n      "Verification": [\n        null,\n        "पडताळणी"\n      ],\n      "What is your name?": [\n        null,\n        "तुझं नाव काय आहे?"\n      ],\n      "Write in the third person": [\n        null,\n        "तिसर्‍या व्यक्तीमध्ये लिहा"\n      ],\n      "Your message": [\n        null,\n        "तुमचा निरोप"\n      ],\n      "Your name": [\n        null,\n        "तुझे नाव"\n      ],\n      "Your text": [\n        null,\n        "आपला मजकूर"\n      ]\n    }\n  }\n}'}),define("text!ar",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=2; plural=(n > 1);",\n        "lang": "ar"\n      },\n      "A visitor wants to chat": [\n        null,\n        "زائر يريد الدردشة"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "جملة ترحيب أو اسم"\n      ],\n      "Ask a question": [\n        null,\n        "طرح سؤال"\n      ],\n      "Chat": [\n        null,\n        "محادثة"\n      ],\n      "Chat with visitors": [\n        null,\n        "الدردشة مع الزوار"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "خطأ في الاتصال. الرجاء التحقق من اتصال الانترنت الخاص بك."\n      ],\n      "Consult the guides": [\n        null,\n        "استشر الأدلة"\n      ],\n      "I am visible online": [\n        null,\n        "أنا مرئي على الإنترنت"\n      ],\n      "Make a suggestion": [\n        null,\n        "قدم اقتراح"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "يتم الاحتفاظ بالرسائل لمدة 30 يومًا."\n      ],\n      "Notifications": [\n        null,\n        "إشعارات"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "قم بنشر موقع الويب الخاص بك لتنشيط الدردشة."\n      ],\n      "Review this App": [\n        null,\n        "راجع هذا التطبيق"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "هذا الشخص لم يعد متصلًا بالإنترنت."\n      ],\n      "Write to us": [\n        null,\n        "اكتب لنا"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "يمكنك تنشيط الدردشة لتحرير صفحة الاتصال الخاصة بموقعك على الويب."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "يمكنك اختبار صفحة الاتصال على موقعك المنشور."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "لم تقم بتثبيت الدردشة بعد."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "لم تتلق أي رسالة حتى الآن."\n      ],\n      "Chat with us": [\n        null,\n        "دردش معنا"\n      ],\n      "Email us": [\n        null,\n        "ارسل لنا عبر البريد الإلكتروني"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "يرجى نشر هذا الموقع مرة أخرى لتصبح التغييرات سارية المفعول."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "يمكنك الرد على رسائل القراء من خلال تطبيق SimDif."\n      ],\n      "Your screen name will show as": [\n        null,\n        "سيظهر اسم الشاشة الخاص بك كـ"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "تم تلقي رسالة كبيرة جدًا ، قد يكون هذا بسبب هجوم يهدف إلى إضعاف أداء الدردشة. تم تقصير الإخراج."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "هل أنت متأكد أنك تريد مسح الرسائل من مربع الدردشة هذا؟"\n      ],\n      "Clear all messages": [\n        null,\n        "امسح كل الرسائل"\n      ],\n      "has gone away": [\n        null,\n        "ذهب بعيدا"\n      ],\n      "has gone offline": [\n        null,\n        "أصبح غير متصل بالإنترنت"\n      ],\n      "has stopped typing": [\n        null,\n        "توقف عن الكتابه"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "أنا غير متاح الآن للدردشة."\n      ],\n      "is busy": [\n        null,\n        "مشغول"\n      ],\n      "is typing": [\n        null,\n        "يكتب"\n      ],\n      "Let\'s chat": [\n        null,\n        "لندردش"\n      ],\n      "me": [\n        null,\n        "أنا"\n      ],\n      "Please ask your question": [\n        null,\n        "الرجاء طرح سؤالك"\n      ],\n      "Please check the box": [\n        null,\n        "الرجاء تحديد المربع"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "الرجاء استخدام النموذج أعلاه لإرسال بريد إلكتروني إلي. سأعود إليك بسرعة."\n      ],\n      "Remove messages": [\n        null,\n        "إزالة الرسائل"\n      ],\n      "Show this menu": [\n        null,\n        "اعرض هذه القائمة"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "توقفت عن الكتابة على الجهاز الآخر"\n      ],\n      "Typing from another device": [\n        null,\n        "الكتابة من جهاز آخر"\n      ],\n      "Verification": [\n        null,\n        "تحقق"\n      ],\n      "What is your name?": [\n        null,\n        "ما اسمك؟"\n      ],\n      "Write in the third person": [\n        null,\n        "اكتب بصيغة الغائب"\n      ],\n      "Your message": [\n        null,\n        "رسالتك"\n      ],\n      "Your name": [\n        null,\n        "اسمك"\n      ],\n      "Your text": [\n        null,\n        "نصك"\n      ]\n    }\n  }\n}'}),define("text!fa",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=2; plural=(n > 1);",\n        "lang": "fa"\n      },\n      "A visitor wants to chat": [\n        null,\n        "یک بازدید کننده می خواهد گپ بزند"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "یک جمله خوشامدگویی یا یک اسم"\n      ],\n      "Ask a question": [\n        null,\n        "یک سوال بپرسید"\n      ],\n      "Chat": [\n        null,\n        "گپ زدن"\n      ],\n      "Chat with visitors": [\n        null,\n        "با بازدید کنندگان گپ بزنید"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "خطای ارتباطی. لطفاً اتصال اینترنت خود را بررسی کنید."\n      ],\n      "Consult the guides": [\n        null,\n        "با راهنماها مشورت کنید"\n      ],\n      "I am visible online": [\n        null,\n        "من بصورت آنلاین قابل مشاهده هستم"\n      ],\n      "Make a suggestion": [\n        null,\n        "ایجاد یک پیشنهاد"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "پیام ها به مدت 30 روز نگهداری می شوند."\n      ],\n      "Notifications": [\n        null,\n        "اطلاعیه"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "وب سایت خود را منتشر کنید تا گپ فعال شود."\n      ],\n      "Review this App": [\n        null,\n        "این برنامه را مرور کنید"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "این شخص دیگر آنلاین نیست."\n      ],\n      "Write to us": [\n        null,\n        "برای ما بنویسید"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "شما می توانید ویرایش گپ صفحه تماس با وب سایت خود را فعال کنید."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "می توانید صفحه تماس را در سایت منتشر شده خود آزمایش کنید."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "شما هنوز چت را نصب نکرده اید."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "شما هنوز پیامی دریافت نکرده اید."\n      ],\n      "Chat with us": [\n        null,\n        "با ما گپ بزنید"\n      ],\n      "Email us": [\n        null,\n        "برای ما ایمیل بزنید"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "لطفاً این سایت را مجدداً منتشر کنید تا تغییرات اعمال شود."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "با استفاده از برنامه SimDif می توانید به پیام خوانندگان خود پاسخ دهید."\n      ],\n      "Your screen name will show as": [\n        null,\n        "نام صفحه نمایش شما به صورت نمایش داده می شود"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "پیام بسیار بزرگی دریافت شده است. این ممکن است به دلیل حمله ای باشد که باعث کاهش عملکرد چت می شود. خروجی کوتاه شده است."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "آیا مطمئن هستید که می خواهید پیام ها را از این جعبه گپ پاک کنید؟"\n      ],\n      "Clear all messages": [\n        null,\n        "همه پیام ها را پاک کنید"\n      ],\n      "has gone away": [\n        null,\n        "اون فوت کرده"\n      ],\n      "has gone offline": [\n        null,\n        "آفلاین شده است"\n      ],\n      "has stopped typing": [\n        null,\n        "تایپ کردن را متوقف کرده است"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "من در حال حاضر برای گپ در دسترس نیستم."\n      ],\n      "is busy": [\n        null,\n        "مشغول است"\n      ],\n      "is typing": [\n        null,\n        "در حال تایپ کردن"\n      ],\n      "Let\'s chat": [\n        null,\n        "بیا حرف بزنیم"\n      ],\n      "me": [\n        null,\n        "من"\n      ],\n      "Please ask your question": [\n        null,\n        "لطفا سوال خود را بپرسید"\n      ],\n      "Please check the box": [\n        null,\n        "لطفاً کادر را علامت بزنید"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "لطفاً از فرم بالا برای ارسال ایمیل به من استفاده کنید. من به سرعت به شما برمی گردم"\n      ],\n      "Remove messages": [\n        null,\n        "پیام ها را حذف کنید"\n      ],\n      "Show this menu": [\n        null,\n        "نمایش این منو"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "نوشتن روی دستگاه دیگر را متوقف کرد"\n      ],\n      "Typing from another device": [\n        null,\n        "تایپ کردن از دستگاه دیگر"\n      ],\n      "Verification": [\n        null,\n        "تایید"\n      ],\n      "What is your name?": [\n        null,\n        "اسم شما چیست؟"\n      ],\n      "Write in the third person": [\n        null,\n        "به صورت سوم شخص بنویسید"\n      ],\n      "Your message": [\n        null,\n        "پیغام تو"\n      ],\n      "Your name": [\n        null,\n        "اسم شما"\n      ],\n      "Your text": [\n        null,\n        "نوشته ی تو"\n      ]\n    }\n  }\n}';
}),define("text!he",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=2; plural=(n != 1);",\n        "lang": "he"\n      },\n      "A visitor wants to chat": [\n        null,\n        "מבקר רוצה לשוחח"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "משפט ברכה או שם"\n      ],\n      "Ask a question": [\n        null,\n        "שאל שאלה"\n      ],\n      "Chat": [\n        null,\n        "לְשׂוֹחֵחַ"\n      ],\n      "Chat with visitors": [\n        null,\n        "שוחח עם המבקרים"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "שגיאת תקשורת. אנא בדוק את חיבור האינטרנט שלך."\n      ],\n      "Consult the guides": [\n        null,\n        "התייעץ עם המדריכים"\n      ],\n      "I am visible online": [\n        null,\n        "אני גלוי ברשת"\n      ],\n      "Make a suggestion": [\n        null,\n        "תן הצעה"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "ההודעות נשמרות למשך 30 יום."\n      ],\n      "Notifications": [\n        null,\n        "התראות"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "פרסם את אתר האינטרנט שלך כדי להפעיל את הצ\\\\\'אט."\n      ],\n      "Review this App": [\n        null,\n        "סקור את האפליקציה הזו"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "אדם זה אינו מחובר יותר."\n      ],\n      "Write to us": [\n        null,\n        "כתוב לנו"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "באפשרותך להפעיל את צ\\\\\'אט בעריכת דף יצירת הקשר של אתר האינטרנט שלך."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "אתה יכול לבדוק את דף יצירת הקשר באתר שפורסם."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "עדיין לא התקנת את הצ\\\\\'אט."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "טרם קיבלת שום הודעה."\n      ],\n      "Chat with us": [\n        null,\n        "שוחח עימנו"\n      ],\n      "Email us": [\n        null,\n        "שלח לנו מייל"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "אנא פרסם אתר זה שוב כדי שהשינויים ייכנסו לתוקף."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "תוכל לענות להודעות הקוראים שלך באמצעות אפליקציית SimDif."\n      ],\n      "Your screen name will show as": [\n        null,\n        "שם המסך שלך יופיע כ-"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "הודעה גדולה מאוד התקבלה. זה יכול להיות בגלל התקפה שנועדה להשפיל את ביצועי הצ\\\\\'אט. התפוקה קוצרה."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "האם אתה בטוח שברצונך לנקות את ההודעות מתיבת הצ\\\\\'אט הזו?"\n      ],\n      "Clear all messages": [\n        null,\n        "נקה את כל ההודעות"\n      ],\n      "has gone away": [\n        null,\n        "נעלם"\n      ],\n      "has gone offline": [\n        null,\n        "עבר לא מקוון"\n      ],\n      "has stopped typing": [\n        null,\n        "הפסיק להקליד"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "אני לא זמין כרגע לצ\\\\\'אט."\n      ],\n      "is busy": [\n        null,\n        "עסוק"\n      ],\n      "is typing": [\n        null,\n        "מקליד"\n      ],\n      "Let\'s chat": [\n        null,\n        "בוא נדבר"\n      ],\n      "me": [\n        null,\n        "לִי"\n      ],\n      "Please ask your question": [\n        null,\n        "אנא שאל את שאלתך"\n      ],\n      "Please check the box": [\n        null,\n        "אנא סמן את התיבה"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "אנא השתמש בטופס שלעיל כדי לשלוח לי דוא\\"ל. אני אחזור אליך במהירות."\n      ],\n      "Remove messages": [\n        null,\n        "הסר הודעות"\n      ],\n      "Show this menu": [\n        null,\n        "הראה תפריט זה"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "הפסיק להקליד במכשיר השני"\n      ],\n      "Typing from another device": [\n        null,\n        "מקליד ממכשיר אחר"\n      ],\n      "Verification": [\n        null,\n        "אימות"\n      ],\n      "What is your name?": [\n        null,\n        "מה השם שלך?"\n      ],\n      "Write in the third person": [\n        null,\n        "כתוב בגוף שלישי"\n      ],\n      "Your message": [\n        null,\n        "ההודעה שלך"\n      ],\n      "Your name": [\n        null,\n        "השם שלך"\n      ],\n      "Your text": [\n        null,\n        "הטקסט שלך"\n      ]\n    }\n  }\n}'}),define("text!pa",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=2; plural=(n > 1);",\n        "lang": "pa"\n      },\n      "A visitor wants to chat": [\n        null,\n        "ਇੱਕ ਵਿਜ਼ਟਰ ਗੱਲਬਾਤ ਕਰਨਾ ਚਾਹੁੰਦਾ ਹੈ"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "ਇੱਕ ਸਵਾਗਤਯੋਗ ਵਾਕ ਜਾਂ ਇੱਕ ਨਾਮ"\n      ],\n      "Ask a question": [\n        null,\n        "ਸਵਾਲ ਕਰੋ"\n      ],\n      "Chat": [\n        null,\n        "ਗੱਲਬਾਤ"\n      ],\n      "Chat with visitors": [\n        null,\n        "ਦਰਸ਼ਕਾਂ ਨਾਲ ਗੱਲਬਾਤ ਕਰੋ"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "ਸੰਚਾਰ ਗੜਬੜ. ਕਿਰਪਾ ਕਰਕੇ ਆਪਣੇ ਇੰਟਰਨੈਟ ਕਨੈਕਸ਼ਨ ਦੀ ਜਾਂਚ ਕਰੋ."\n      ],\n      "Consult the guides": [\n        null,\n        "ਗਾਈਡਾਂ ਨਾਲ ਸਲਾਹ ਕਰੋ"\n      ],\n      "I am visible online": [\n        null,\n        "ਮੈਂ visibleਨਲਾਈਨ ਦਿਖਾਈ ਦੇ ਰਿਹਾ ਹਾਂ"\n      ],\n      "Make a suggestion": [\n        null,\n        "ਇੱਕ ਸੁਝਾਅ ਦਿਓ"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "ਸੁਨੇਹੇ 30 ਦਿਨਾਂ ਲਈ ਰੱਖੇ ਜਾਂਦੇ ਹਨ."\n      ],\n      "Notifications": [\n        null,\n        "ਸੂਚਨਾਵਾਂ"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "ਚੈਟ ਨੂੰ ਕਿਰਿਆਸ਼ੀਲ ਕਰਨ ਲਈ ਆਪਣੀ ਵੈਬਸਾਈਟ ਪ੍ਰਕਾਸ਼ਤ ਕਰੋ."\n      ],\n      "Review this App": [\n        null,\n        "ਇਸ ਐਪ ਦੀ ਸਮੀਖਿਆ ਕਰੋ"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "ਇਹ ਵਿਅਕਤੀ ਹੁਣ onlineਨਲਾਈਨ ਨਹੀਂ ਹੈ."\n      ],\n      "Write to us": [\n        null,\n        "ਸਾਨੂੰ ਲਿਖੋ"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "ਤੁਸੀਂ ਆਪਣੀ ਵੈਬਸਾਈਟ ਦੇ ਸੰਪਰਕ ਪੰਨੇ ਨੂੰ ਸੰਪਾਦਿਤ ਕਰਨ ਵਾਲੇ ਚੈਟ ਨੂੰ ਕਿਰਿਆਸ਼ੀਲ ਕਰ ਸਕਦੇ ਹੋ."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "ਤੁਸੀਂ ਆਪਣੀ ਪ੍ਰਕਾਸ਼ਤ ਸਾਈਟ ਤੇ ਸੰਪਰਕ ਪੰਨੇ ਦੀ ਜਾਂਚ ਕਰ ਸਕਦੇ ਹੋ."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "ਤੁਸੀਂ ਅਜੇ ਤੱਕ ਚੈਟ ਸਥਾਪਤ ਨਹੀਂ ਕੀਤੀ ਹੈ."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "ਤੁਹਾਨੂੰ ਅਜੇ ਤੱਕ ਕੋਈ ਸੁਨੇਹਾ ਨਹੀਂ ਮਿਲਿਆ ਹੈ."\n      ],\n      "Chat with us": [\n        null,\n        "ਸਾਡੇ ਨਾਲ ਗੱਲਬਾਤ ਕਰੋ"\n      ],\n      "Email us": [\n        null,\n        "ਸਾਨੂੰ ਈਮੇਲ ਕਰੋ"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "ਤਬਦੀਲੀਆਂ ਦੇ ਪ੍ਰਭਾਵੀ ਹੋਣ ਲਈ ਕਿਰਪਾ ਕਰਕੇ ਇਸ ਸਾਈਟ ਨੂੰ ਦੁਬਾਰਾ ਪ੍ਰਕਾਸ਼ਤ ਕਰੋ."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "ਤੁਸੀਂ ਸਿਮਡੀਫ ਐਪ ਨਾਲ ਆਪਣੇ ਪਾਠਕਾਂ ਦੇ ਸੰਦੇਸ਼ਾਂ ਦਾ ਉੱਤਰ ਦੇ ਸਕਦੇ ਹੋ."\n      ],\n      "Your screen name will show as": [\n        null,\n        "ਤੁਹਾਡੀ ਸਕ੍ਰੀਨ ਦਾ ਨਾਮ ਇਸ ਦੇ ਰੂਪ ਵਿੱਚ ਦਿਖਾਈ ਦੇਵੇਗਾ"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "ਇੱਕ ਬਹੁਤ ਵੱਡਾ ਸੁਨੇਹਾ ਪ੍ਰਾਪਤ ਹੋਇਆ ਹੈ ਇਹ ਚੈਟ ਦੀ ਕਾਰਗੁਜ਼ਾਰੀ ਨੂੰ ਖਰਾਬ ਕਰਨ ਦੇ ਹਮਲੇ ਦੇ ਕਾਰਨ ਹੋ ਸਕਦਾ ਹੈ. ਆਉਟਪੁੱਟ ਨੂੰ ਛੋਟਾ ਕਰ ਦਿੱਤਾ ਗਿਆ ਹੈ."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "ਕੀ ਤੁਸੀਂ ਯਕੀਨਨ ਇਸ ਚੈਟ ਬਾਕਸ ਤੋਂ ਸੰਦੇਸ਼ਾਂ ਨੂੰ ਸਾਫ ਕਰਨਾ ਚਾਹੁੰਦੇ ਹੋ?"\n      ],\n      "Clear all messages": [\n        null,\n        "ਸਾਰੇ ਸੁਨੇਹੇ ਸਾਫ਼ ਕਰੋ"\n      ],\n      "has gone away": [\n        null,\n        "ਦੂਰ ਚਲਾ ਗਿਆ ਹੈ"\n      ],\n      "has gone offline": [\n        null,\n        "offlineਫਲਾਈਨ ਹੋ ਗਿਆ ਹੈ"\n      ],\n      "has stopped typing": [\n        null,\n        "ਨੇ ਟਾਈਪ ਕਰਨਾ ਬੰਦ ਕਰ ਦਿੱਤਾ ਹੈ"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "ਮੈਂ ਇਸ ਵੇਲੇ ਗੱਲਬਾਤ ਲਈ ਉਪਲਬਧ ਨਹੀਂ ਹਾਂ."\n      ],\n      "is busy": [\n        null,\n        "ਵਿਅਸਤ ਹੈ"\n      ],\n      "is typing": [\n        null,\n        "ਟਾਈਪ ਕਰ ਰਿਹਾ ਹੈ"\n      ],\n      "Let\'s chat": [\n        null,\n        "ਚੈਟ ਕਰੀਏ"\n      ],\n      "me": [\n        null,\n        "ਮੈਨੂੰ"\n      ],\n      "Please ask your question": [\n        null,\n        "ਕਿਰਪਾ ਕਰਕੇ ਆਪਣਾ ਪ੍ਰਸ਼ਨ ਪੁੱਛੋ"\n      ],\n      "Please check the box": [\n        null,\n        "ਕਿਰਪਾ ਕਰਕੇ ਬਾਕਸ ਨੂੰ ਚੈੱਕ ਕਰੋ"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "ਕਿਰਪਾ ਕਰਕੇ ਮੈਨੂੰ ਇੱਕ ਈਮੇਲ ਭੇਜਣ ਲਈ ਉਪਰੋਕਤ ਫਾਰਮ ਦੀ ਵਰਤੋਂ ਕਰੋ. ਮੈਂ ਤੇਜ਼ੀ ਨਾਲ ਤੁਹਾਡੇ ਕੋਲ ਵਾਪਸ ਆਵਾਂਗਾ."\n      ],\n      "Remove messages": [\n        null,\n        "ਸੁਨੇਹੇ ਹਟਾਉ"\n      ],\n      "Show this menu": [\n        null,\n        "ਇਹ ਮੇਨੂ ਦਿਖਾਉ"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "ਦੂਜੇ ਡਿਵਾਈਸ ਤੇ ਟਾਈਪ ਕਰਨਾ ਬੰਦ ਕਰ ਦਿੱਤਾ"\n      ],\n      "Typing from another device": [\n        null,\n        "ਕਿਸੇ ਹੋਰ ਡਿਵਾਈਸ ਤੋਂ ਟਾਈਪ ਕਰਨਾ"\n      ],\n      "Verification": [\n        null,\n        "ਤਸਦੀਕ"\n      ],\n      "What is your name?": [\n        null,\n        "ਤੁਹਾਡਾ ਨਾਮ ਕੀ ਹੈ?"\n      ],\n      "Write in the third person": [\n        null,\n        "ਤੀਜੇ ਵਿਅਕਤੀ ਵਿੱਚ ਲਿਖੋ"\n      ],\n      "Your message": [\n        null,\n        "ਤੁਹਾਡਾ ਸੁਨੇਹਾ"\n      ],\n      "Your name": [\n        null,\n        "ਤੁਹਾਡਾ ਨਾਮ"\n      ],\n      "Your text": [\n        null,\n        "ਤੁਹਾਡਾ ਪਾਠ"\n      ]\n    }\n  }\n}'}),define("text!ko",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=1; plural=0;",\n        "lang": "ko"\n      },\n      "A visitor wants to chat": [\n        null,\n        "방문자가 채팅을 원합니다"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "환영글 또는 이름"\n      ],\n      "Ask a question": [\n        null,\n        "질문하기"\n      ],\n      "Chat": [\n        null,\n        "채팅"\n      ],\n      "Chat with visitors": [\n        null,\n        "방문자와 채팅"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "통신 오류입니다. 인터넷 연결을 확인하십시오."\n      ],\n      "Consult the guides": [\n        null,\n        "가이드를 참조하십시오"\n      ],\n      "I am visible online": [\n        null,\n        "나의 상태-온라인"\n      ],\n      "Make a suggestion": [\n        null,\n        "제안하기"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "메시지는 30일 동안 보관됩니다."\n      ],\n      "Notifications": [\n        null,\n        "알림"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "채팅을 활성화하려면 웹사이트를 게시하세요."\n      ],\n      "Review this App": [\n        null,\n        "이 앱 검토"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "이 사람은 더 이상 온라인 상태가 아닙니다."\n      ],\n      "Write to us": [\n        null,\n        "쓰기"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "웹사이트의 문의하기 페이지에서 채팅을 활성화할 수 있습니다."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "게시된 사이트에서 문의하기 페이지를 테스트할 수 있습니다."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "아직 채팅을 설치하지 않았습니다."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "아직 메시지를 받지 못했습니다."\n      ],\n      "Chat with us": [\n        null,\n        "채팅하기"\n      ],\n      "Email us": [\n        null,\n        "이메일을 보내주세요"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "변경 사항을 적용하려면 이 사이트를 다시 게시하십시오."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "SimDif 앱으로 방문자의 메시지에 답할 수 있습니다."\n      ],\n      "Your screen name will show as": [\n        null,\n        "화면 이름은 다음과 같이 표시됩니다."\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "매우 용량이 큰  메시지가 수신되었습니다. 이는 채팅 성능을 저하시키려는 공격 때문일 수 있습니다. 출력이 단축되었습니다."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "이 채팅 상자에서 메시지를 지우시겠습니까?"\n      ],\n      "Clear all messages": [\n        null,\n        "모든 메시지 삭제"\n      ],\n      "has gone away": [\n        null,\n        "사라짐"\n      ],\n      "has gone offline": [\n        null,\n        "오프라인이 되었습니다"\n      ],\n      "has stopped typing": [\n        null,\n        "타이핑을 멈춤"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "지금은 채팅을 할 수 없습니다."\n      ],\n      "is busy": [\n        null,\n        "사용중"\n      ],\n      "is typing": [\n        null,\n        "타이핑"\n      ],\n      "Let\'s chat": [\n        null,\n        "채팅하기"\n      ],\n      "me": [\n        null,\n        "나"\n      ],\n      "Please ask your question": [\n        null,\n        "질문하세요"\n      ],\n      "Please check the box": [\n        null,\n        "체크박스를 체크해주세요"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "위의 양식을 사용하여 이메일을 보내주십시오. 신속하게 연락드리겠습니다."\n      ],\n      "Remove messages": [\n        null,\n        "메시지 삭제"\n      ],\n      "Show this menu": [\n        null,\n        "이 메뉴 표시"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "다른 기기에서 입력을 중지했습니다."\n      ],\n      "Typing from another device": [\n        null,\n        "다른 장치에서 입력중"\n      ],\n      "Verification": [\n        null,\n        "확인"\n      ],\n      "What is your name?": [\n        null,\n        "당신의 이름은 무엇입니까?"\n      ],\n      "Write in the third person": [\n        null,\n        "3인칭으로 쓰기"\n      ],\n      "Your message": [\n        null,\n        "당신의 메시지"\n      ],\n      "Your name": [\n        null,\n        "이름"\n      ],\n      "Your text": [\n        null,\n        "내용"\n      ]\n    }\n  }\n}'}),define("text!hu",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=2; plural=(n != 1);",\n        "lang": "hu"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Egy látogató csevegni szeretne"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "Üdvözlő mondat vagy név"\n      ],\n      "Ask a question": [\n        null,\n        "Tegyen fel egy kérdést"\n      ],\n      "Chat": [\n        null,\n        "Csevegés"\n      ],\n      "Chat with visitors": [\n        null,\n        "Csevegés a látogatókkal"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Kommunikációs hiba. Kérjük, ellenőrizze internetkapcsolatát."\n      ],\n      "Consult the guides": [\n        null,\n        "Olvassa el az útmutatókat"\n      ],\n      "I am visible online": [\n        null,\n        "Látható vagyok a neten"\n      ],\n      "Make a suggestion": [\n        null,\n        "Tegyen javaslatot"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "Az üzeneteket 30 napig őrzik meg."\n      ],\n      "Notifications": [\n        null,\n        "Értesítések"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "A Chat aktiválásához tegye közzé webhelyét."\n      ],\n      "Review this App": [\n        null,\n        "Tekintse át ezt az alkalmazást"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Ez a személy már nincs online."\n      ],\n      "Write to us": [\n        null,\n        "Írjon nekünk"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "A Chat aktiválása a webhely kapcsolatfelvételi oldalának szerkesztésével lehetséges."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Tesztelheti a kapcsolatfelvételi oldalt a közzétett webhelyén."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Még nem telepítette a Chatet."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Még nem kapott üzenetet."\n      ],\n      "Chat with us": [\n        null,\n        "Csevegés velünk"\n      ],\n      "Email us": [\n        null,\n        "Küldjön egy emailt nekünk"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Kérjük, tegye közzé újra ezt az oldalt, hogy a változtatások érvénybe lépjenek."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "A SimDif alkalmazással válaszolhatsz olvasóid üzeneteire."\n      ],\n      "Your screen name will show as": [\n        null,\n        "A képernyőneve így fog megjelenni"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "Nagyon nagy üzenet érkezett. Ennek oka lehet a csevegési teljesítmény lerontását célzó támadás. A kimenet lerövidült."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "Biztosan törli az üzeneteket ebből a csevegőmezőből?"\n      ],\n      "Clear all messages": [\n        null,\n        "Az összes üzenet törlése"\n      ],\n      "has gone away": [\n        null,\n        "elment"\n      ],\n      "has gone offline": [\n        null,\n        "offline állapotba került"\n      ],\n      "has stopped typing": [\n        null,\n        "abbahagyta a gépelést"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "Jelenleg nem vagyok elérhető csevegésre."\n      ],\n      "is busy": [\n        null,\n        "elfoglalt"\n      ],\n      "is typing": [\n        null,\n        "gépel"\n      ],\n      "Let\'s chat": [\n        null,\n        "Csevegjünk"\n      ],\n      "me": [\n        null,\n        "nekem"\n      ],\n      "Please ask your question": [\n        null,\n        "Kérem, tegye fel kérdését"\n      ],\n      "Please check the box": [\n        null,\n        "Kérjük, jelölje be a négyzetet"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Kérem, használja a fenti űrlapot e-mail küldéséhez. Gyorsan visszatérek önhöz."\n      ],\n      "Remove messages": [\n        null,\n        "Üzenetek eltávolítása"\n      ],\n      "Show this menu": [\n        null,\n        "Mutassa ezt a menüt"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "A másik eszközön leállt a gépelés"\n      ],\n      "Typing from another device": [\n        null,\n        "Gépelés másik eszközről"\n      ],\n      "Verification": [\n        null,\n        "Igazolás"\n      ],\n      "What is your name?": [\n        null,\n        "Mi a neve?"\n      ],\n      "Write in the third person": [\n        null,\n        "Írjon harmadik személyben"\n      ],\n      "Your message": [\n        null,\n        "Üzenete"\n      ],\n      "Your name": [\n        null,\n        "Neve"\n      ],\n      "Your text": [\n        null,\n        "Szövege"\n      ]\n    }\n  }\n}'}),define("text!uk",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);",\n        "lang": "uk"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Відвідувач хоче поспілкуватися"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "Вітальне речення або ім\\\\\'я"\n      ],\n      "Ask a question": [\n        null,\n        "Задайте питання"\n      ],\n      "Chat": [\n        null,\n        "Чат"\n      ],\n      "Chat with visitors": [\n        null,\n        "Спілкуйтеся з відвідувачами"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Помилка зв\\\\\'язку. Перевірте підключення до Інтернету."\n      ],\n      "Consult the guides": [\n        null,\n        "Зверніться до гідів"\n      ],\n      "I am visible online": [\n        null,\n        "Мене видно в Інтернеті"\n      ],\n      "Make a suggestion": [\n        null,\n        "Зробіть пропозицію"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "Повідомлення зберігаються 30 днів."\n      ],\n      "Notifications": [\n        null,\n        "Сповіщення"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "Опублікуйте свій веб-сайт, щоб активувати чат."\n      ],\n      "Review this App": [\n        null,\n        "Перегляньте цю програму"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Ця людина більше не в мережі."\n      ],\n      "Write to us": [\n        null,\n        "Напишіть нам"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Ви можете активувати чат, редагуючи сторінку контактів вашого веб-сайту."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Ви можете перевірити контактну сторінку на опублікованому сайті."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Ви ще не встановили чат."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Ви ще не отримали жодного повідомлення."\n      ],\n      "Chat with us": [\n        null,\n        "Спілкуйтеся з нами"\n      ],\n      "Email us": [\n        null,\n        "Напишіть нам"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Будь ласка, опублікуйте цей сайт ще раз, щоб зміни набули чинності."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "Ви можете відповідати на повідомлення своїх читачів за допомогою програми SimDif."\n      ],\n      "Your screen name will show as": [\n        null,\n        "Ваше ім’я на екрані відображатиметься як"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "Отримано дуже велике повідомлення. Можливо, це пов’язано з атакою, спрямованою на погіршення продуктивності чату. Вихід було скорочено."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "Ви впевнені, що хочете очистити повідомлення з цього вікна чату?"\n      ],\n      "Clear all messages": [\n        null,\n        "Очистити всі повідомлення"\n      ],\n      "has gone away": [\n        null,\n        "пішов геть"\n      ],\n      "has gone offline": [\n        null,\n        "перейшов в автономний режим"\n      ],\n      "has stopped typing": [\n        null,\n        "перестав друкувати"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "Я зараз недоступний для чату."\n      ],\n      "is busy": [\n        null,\n        "зайнятий"\n      ],\n      "is typing": [\n        null,\n        "друкує"\n      ],\n      "Let\'s chat": [\n        null,\n        "Давайте поспілкуватися"\n      ],\n      "me": [\n        null,\n        "мене"\n      ],\n      "Please ask your question": [\n        null,\n        "Будь ласка, задайте своє запитання"\n      ],\n      "Please check the box": [\n        null,\n        "Будь ласка, поставте прапорець"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Будь ласка, скористайтеся формою вище, щоб надіслати мені електронний лист. Я швидко повернуся до вас."\n      ],\n      "Remove messages": [\n        null,\n        "Видалити повідомлення"\n      ],\n      "Show this menu": [\n        null,\n        "Показати це меню"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "Припинено вводити текст на іншому пристрої"\n      ],\n      "Typing from another device": [\n        null,\n        "Введення тексту з іншого пристрою"\n      ],\n      "Verification": [\n        null,\n        "Перевірка"\n      ],\n      "What is your name?": [\n        null,\n        "Як вас звати?"\n      ],\n      "Write in the third person": [\n        null,\n        "Пишіть від третьої особи"\n      ],\n      "Your message": [\n        null,\n        "Твоє повідомлення"\n      ],\n      "Your name": [\n        null,\n        "Твоє ім\\\\\'я"\n      ],\n      "Your text": [\n        null,\n        "Ваш текст"\n      ]\n    }\n  }\n}'}),define("text!el",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=2; plural=(n != 1);",\n        "lang": "el"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Ένας επισκέπτης θέλει να συνομιλήσει"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "Μια πρόταση καλωσορίσματος ή ένα όνομα"\n      ],\n      "Ask a question": [\n        null,\n        "Κάνε μια ερώτηση"\n      ],\n      "Chat": [\n        null,\n        "Κουβέντα"\n      ],\n      "Chat with visitors": [\n        null,\n        "Συνομιλία με επισκέπτες"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Σφάλμα επικοινωνίας. Ελέγξτε τη σύνδεσή σας στο Διαδίκτυο."\n      ],\n      "Consult the guides": [\n        null,\n        "Συμβουλευτείτε τους οδηγούς"\n      ],\n      "I am visible online": [\n        null,\n        "Είμαι ορατός στο διαδίκτυο"\n      ],\n      "Make a suggestion": [\n        null,\n        "Κάνω μια πρόταση"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "Τα μηνύματα διατηρούνται για 30 ημέρες."\n      ],\n      "Notifications": [\n        null,\n        "Ειδοποιήσεις"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "Δημοσιεύστε τον ιστότοπό σας για να ενεργοποιήσετε τη συνομιλία."\n      ],\n      "Review this App": [\n        null,\n        "Ελέγξτε αυτήν την εφαρμογή"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Αυτό το άτομο δεν είναι πλέον συνδεδεμένο."\n      ],\n      "Write to us": [\n        null,\n        "Γράψτε μας"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Μπορείτε να ενεργοποιήσετε τη συνομιλία επεξεργάζοντας τη σελίδα επαφών του ιστότοπού σας."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Μπορείτε να δοκιμάσετε τη σελίδα επικοινωνίας στον δημοσιευμένο ιστότοπό σας."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Δεν έχετε εγκαταστήσει ακόμα το Chat."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Δεν έχετε λάβει ακόμη κανένα μήνυμα."\n      ],\n      "Chat with us": [\n        null,\n        "μίλα μαζί μας"\n      ],\n      "Email us": [\n        null,\n        "Στείλτε μας email"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Δημοσιεύστε ξανά αυτόν τον ιστότοπο για να τεθούν σε ισχύ οι αλλαγές."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "Μπορείτε να απαντήσετε στα μηνύματα των αναγνωστών σας με την εφαρμογή SimDif."\n      ],\n      "Your screen name will show as": [\n        null,\n        "Το όνομα οθόνης σας θα εμφανίζεται ως"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "Έχει ληφθεί ένα πολύ μεγάλο μήνυμα. Αυτό μπορεί να οφείλεται σε μια επίθεση που σκοπό έχει να υποβαθμίσει την απόδοση της συνομιλίας. Η έξοδος έχει συντομευθεί."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "Είστε βέβαιοι ότι θέλετε να διαγράψετε τα μηνύματα από αυτό το πλαίσιο συνομιλίας;"\n      ],\n      "Clear all messages": [\n        null,\n        "Διαγραφή όλων των μηνυμάτων"\n      ],\n      "has gone away": [\n        null,\n        "έχει φύγει"\n      ],\n      "has gone offline": [\n        null,\n        "έχει βγει εκτός σύνδεσης"\n      ],\n      "has stopped typing": [\n        null,\n        "σταμάτησε να πληκτρολογεί"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "Δεν είμαι διαθέσιμος αυτήν τη στιγμή για συνομιλία."\n      ],\n      "is busy": [\n        null,\n        "είναι απασχολημένο"\n      ],\n      "is typing": [\n        null,\n        "πληκτρολογεί"\n      ],\n      "Let\'s chat": [\n        null,\n        "Ας κουβεντιάσουμε"\n      ],\n      "me": [\n        null,\n        "μου"\n      ],\n      "Please ask your question": [\n        null,\n        "Κάντε την ερώτησή σας"\n      ],\n      "Please check the box": [\n        null,\n        "Επιλέξτε το πλαίσιο"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Παρακαλώ χρησιμοποιήστε την παραπάνω φόρμα για να μου στείλετε ένα email. Θα επικοινωνήσω γρήγορα μαζί σας."\n      ],\n      "Remove messages": [\n        null,\n        "Κατάργηση μηνυμάτων"\n      ],\n      "Show this menu": [\n        null,\n        "Εμφάνιση αυτού του μενού"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "Σταμάτησε να πληκτρολογεί στην άλλη συσκευή"\n      ],\n      "Typing from another device": [\n        null,\n        "Πληκτρολόγηση από άλλη συσκευή"\n      ],\n      "Verification": [\n        null,\n        "Επαλήθευση"\n      ],\n      "What is your name?": [\n        null,\n        "Πως σε λένε?"\n      ],\n      "Write in the third person": [\n        null,\n        "Γράψτε σε τρίτο πρόσωπο"\n      ],\n      "Your message": [\n        null,\n        "Το μήνυμά σου"\n      ],\n      "Your name": [\n        null,\n        "Το όνομα σου"\n      ],\n      "Your text": [\n        null,\n        "Το κείμενο σου"\n      ]\n    }\n  }\n}'}),define("text!pl",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);",\n        "lang": "pl"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Gość chce rozmawiać"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "Zdanie powitalne lub imię"\n      ],\n      "Ask a question": [\n        null,\n        "Zadać pytanie"\n      ],\n      "Chat": [\n        null,\n        "Czat"\n      ],\n      "Chat with visitors": [\n        null,\n        "Rozmawiaj z gośćmi"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Błąd komunikacji. Proszę sprawdzić swoje połączenie z internetem."\n      ],\n      "Consult the guides": [\n        null,\n        "Skonsultuj się z przewodnikami"\n      ],\n      "I am visible online": [\n        null,\n        "jestem widoczny online"\n      ],\n      "Make a suggestion": [\n        null,\n        "Coś zaproponować"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "Wiadomości są przechowywane przez 30 dni."\n      ],\n      "Notifications": [\n        null,\n        "Powiadomienia"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "Opublikuj swoją stronę internetową, aby aktywować Czat."\n      ],\n      "Review this App": [\n        null,\n        "Przejrzyj tę aplikację"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Ta osoba nie jest już online."\n      ],\n      "Write to us": [\n        null,\n        "Napisz do nas"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Możesz aktywować Czat, edytując stronę kontaktową swojej witryny."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Możesz przetestować stronę kontaktową w opublikowanej witrynie."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Nie zainstalowałeś jeszcze czatu."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Nie otrzymałeś jeszcze żadnej wiadomości."\n      ],\n      "Chat with us": [\n        null,\n        "Porozmawiaj z nami"\n      ],\n      "Email us": [\n        null,\n        "Wyślij do nas e-mail"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Opublikuj tę witrynę ponownie, aby zmiany zaczęły obowiązywać."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "Możesz odpowiadać na wiadomości swoich czytelników za pomocą aplikacji SimDif."\n      ],\n      "Your screen name will show as": [\n        null,\n        "Twoja nazwa ekranowa będzie wyświetlana jako"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "Otrzymano bardzo dużą wiadomość.Może to być spowodowane atakiem mającym na celu obniżenie wydajności czatu.Wyjście zostało skrócone."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "Czy na pewno chcesz usunąć wiadomości z tego okna czatu?"\n      ],\n      "Clear all messages": [\n        null,\n        "Wyczyść wszystkie wiadomości"\n      ],\n      "has gone away": [\n        null,\n        "odszedł"\n      ],\n      "has gone offline": [\n        null,\n        "przeszedł w tryb offline"\n      ],\n      "has stopped typing": [\n        null,\n        "przestał pisać"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "Nie jestem teraz dostępny na czacie."\n      ],\n      "is busy": [\n        null,\n        "jest zajęte"\n      ],\n      "is typing": [\n        null,\n        "pisze"\n      ],\n      "Let\'s chat": [\n        null,\n        "Porozmawiajmy"\n      ],\n      "me": [\n        null,\n        "ja"\n      ],\n      "Please ask your question": [\n        null,\n        "Zadaj pytanie"\n      ],\n      "Please check the box": [\n        null,\n        "Proszę zaznaczyć pole"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Proszę skorzystać z powyższego formularza, aby wysłać do mnie e-mail. Odezwę się szybko."\n      ],\n      "Remove messages": [\n        null,\n        "Usuń wiadomości"\n      ],\n      "Show this menu": [\n        null,\n        "Pokaż to menu"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "Przestałeś pisać na drugim urządzeniu"\n      ],\n      "Typing from another device": [\n        null,\n        "Pisanie z innego urządzenia"\n      ],\n      "Verification": [\n        null,\n        "Weryfikacja"\n      ],\n      "What is your name?": [\n        null,\n        "Jak masz na imię?"\n      ],\n      "Write in the third person": [\n        null,\n        "Napisz w trzeciej osobie"\n      ],\n      "Your message": [\n        null,\n        "Twoja wiadomość"\n      ],\n      "Your name": [\n        null,\n        "Twoje imię"\n      ],\n      "Your text": [\n        null,\n        "Twój tekst"\n      ]\n    }\n  }\n}';
}),define("text!ro",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2;",\n        "lang": "ro"\n      },\n      "A visitor wants to chat": [\n        null,\n        "Un vizitator vrea să discute"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "O propoziție de bun venit sau un nume"\n      ],\n      "Ask a question": [\n        null,\n        "Pune o intrebare"\n      ],\n      "Chat": [\n        null,\n        "conversație"\n      ],\n      "Chat with visitors": [\n        null,\n        "Discutați cu vizitatorii"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "Eroare de comunicare. Vă rugăm să vă verificați conexiunea la internet."\n      ],\n      "Consult the guides": [\n        null,\n        "Consultați ghidurile"\n      ],\n      "I am visible online": [\n        null,\n        "Sunt vizibil online"\n      ],\n      "Make a suggestion": [\n        null,\n        "Fă o propunere"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "Mesajele sunt păstrate timp de 30 de zile."\n      ],\n      "Notifications": [\n        null,\n        "Notificări"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "Publicați site-ul dvs. web pentru a activa chatul."\n      ],\n      "Review this App": [\n        null,\n        "Examinați această aplicație"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "Această persoană nu mai este online."\n      ],\n      "Write to us": [\n        null,\n        "Scrie-ne"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "Puteți activa chatul editând pagina de contact a site-ului dvs."\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "Puteți testa pagina de contact de pe site-ul dvs. publicat."\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "Nu ai instalat încă chatul."\n      ],\n      "You have not received any message yet.": [\n        null,\n        "Nu ați primit încă niciun mesaj."\n      ],\n      "Chat with us": [\n        null,\n        "Vorbeste cu noi"\n      ],\n      "Email us": [\n        null,\n        "Trimite-ti-ne un e-mail"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "Vă rugăm să publicați acest site din nou pentru ca modificările să intre în vigoare."\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "Puteți răspunde la mesajele cititorilor dvs. cu aplicația SimDif."\n      ],\n      "Your screen name will show as": [\n        null,\n        "Numele dvs. de ecran va apărea ca"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "A fost primit un mesaj foarte mare. Acest lucru s-ar putea datora unui atac menit să degradeze performanța chatului. Ieșirea a fost scurtată."\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "Sigur doriți să ștergeți mesajele din această casetă de chat?"\n      ],\n      "Clear all messages": [\n        null,\n        "Ștergeți toate mesajele"\n      ],\n      "has gone away": [\n        null,\n        "a dispărut"\n      ],\n      "has gone offline": [\n        null,\n        "a fost offline"\n      ],\n      "has stopped typing": [\n        null,\n        "a încetat să scrie"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "Nu sunt disponibil momentan pentru un chat."\n      ],\n      "is busy": [\n        null,\n        "este ocupat"\n      ],\n      "is typing": [\n        null,\n        "scrie"\n      ],\n      "Let\'s chat": [\n        null,\n        "Hai sa vorbim"\n      ],\n      "me": [\n        null,\n        "pe mine"\n      ],\n      "Please ask your question": [\n        null,\n        "Vă rugăm să puneți întrebarea dvs"\n      ],\n      "Please check the box": [\n        null,\n        "Vă rugăm să bifați caseta"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "Vă rugăm să folosiți formularul de mai sus pentru a-mi trimite un e-mail. Voi reveni la tine rapid."\n      ],\n      "Remove messages": [\n        null,\n        "Eliminați mesajele"\n      ],\n      "Show this menu": [\n        null,\n        "Afișează acest meniu"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "Am încetat să mai tastezi pe celălalt dispozitiv"\n      ],\n      "Typing from another device": [\n        null,\n        "Tastați de pe alt dispozitiv"\n      ],\n      "Verification": [\n        null,\n        "Verificare"\n      ],\n      "What is your name?": [\n        null,\n        "Cum te numești?"\n      ],\n      "Write in the third person": [\n        null,\n        "Scrie la persoana a treia"\n      ],\n      "Your message": [\n        null,\n        "Mesajul tau"\n      ],\n      "Your name": [\n        null,\n        "Numele dumneavoastră"\n      ],\n      "Your text": [\n        null,\n        "Textul tau"\n      ]\n    }\n  }\n}'}),define("text!zh-cn",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=2; plural=(n > 1);",\n        "lang": "zh-cn"\n      },\n      "A visitor wants to chat": [\n        null,\n        "一位访客想要聊天"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "欢迎词或名字"\n      ],\n      "Ask a question": [\n        null,\n        "问一个问题"\n      ],\n      "Chat": [\n        null,\n        "聊天"\n      ],\n      "Chat with visitors": [\n        null,\n        "与访客聊天"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "通信故障。请检查您的互联网连接。"\n      ],\n      "Consult the guides": [\n        null,\n        "咨询指南"\n      ],\n      "I am visible online": [\n        null,\n        "我在网上可见"\n      ],\n      "Make a suggestion": [\n        null,\n        "提个建议"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "消息会保留 30 天。"\n      ],\n      "Notifications": [\n        null,\n        "通知"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "发布您的网站以激活聊天。"\n      ],\n      "Review this App": [\n        null,\n        "查看此应用程序"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "此人已不在线。"\n      ],\n      "Write to us": [\n        null,\n        "写信给我们"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "您可以激活聊天编辑您网站的联系页面。"\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "您可以在您发布的网站上测试联系页面。"\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "您尚未安装 Chat。"\n      ],\n      "You have not received any message yet.": [\n        null,\n        "您还没有收到任何消息。"\n      ],\n      "Chat with us": [\n        null,\n        "与我们聊天"\n      ],\n      "Email us": [\n        null,\n        "给我们发电子邮件"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "请再次发布此站点以使更改生效。"\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "您可以使用 SimDif 应用程序回复读者的消息。"\n      ],\n      "Your screen name will show as": [\n        null,\n        "您的屏幕名称将显示为"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "收到一条非常大的消息。这可能是由于旨在降低聊天性能的攻击。输出已缩短。"\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "您确定要清除此聊天框中的消息吗？"\n      ],\n      "Clear all messages": [\n        null,\n        "清除所有消息"\n      ],\n      "has gone away": [\n        null,\n        "已经走了"\n      ],\n      "has gone offline": [\n        null,\n        "已下线"\n      ],\n      "has stopped typing": [\n        null,\n        "已停止打字"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "我现在无法进行聊天。"\n      ],\n      "is busy": [\n        null,\n        "忙"\n      ],\n      "is typing": [\n        null,\n        "在打字"\n      ],\n      "Let\'s chat": [\n        null,\n        "让我们聊天"\n      ],\n      "me": [\n        null,\n        "我"\n      ],\n      "Please ask your question": [\n        null,\n        "请提出您的问题"\n      ],\n      "Please check the box": [\n        null,\n        "请选中此框"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "请使用上面的表格给我发送电子邮件。我会尽快回复你。"\n      ],\n      "Remove messages": [\n        null,\n        "删除消息"\n      ],\n      "Show this menu": [\n        null,\n        "显示此菜单"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "停止在其他设备上打字"\n      ],\n      "Typing from another device": [\n        null,\n        "从其他设备打字"\n      ],\n      "Verification": [\n        null,\n        "确认"\n      ],\n      "What is your name?": [\n        null,\n        "你叫什么名字？"\n      ],\n      "Write in the third person": [\n        null,\n        "用第三人称写"\n      ],\n      "Your message": [\n        null,\n        "您的留言"\n      ],\n      "Your name": [\n        null,\n        "你的名字"\n      ],\n      "Your text": [\n        null,\n        "你的文字"\n      ]\n    }\n  }\n}'}),define("text!zh-tw",[],function(){return'{\n  "domain": "converse",\n  "locale_data": {\n    "converse": {\n      "": {\n        "domain": "converse",\n        "plural_forms": "nplurals=2; plural=(n > 1);",\n        "lang": "zh-tw"\n      },\n      "A visitor wants to chat": [\n        null,\n        "一位訪客想要聊天"\n      ],\n      "A welcome sentence or a name": [\n        null,\n        "歡迎詞或名字"\n      ],\n      "Ask a question": [\n        null,\n        "問一個問題"\n      ],\n      "Chat": [\n        null,\n        "聊天"\n      ],\n      "Chat with visitors": [\n        null,\n        "與訪客聊天"\n      ],\n      "Communication error. Please check your internet connection.": [\n        null,\n        "通信故障。請檢查您的互聯網連接。"\n      ],\n      "Consult the guides": [\n        null,\n        "諮詢指南"\n      ],\n      "I am visible online": [\n        null,\n        "我在網上可見"\n      ],\n      "Make a suggestion": [\n        null,\n        "提個建議"\n      ],\n      "Messages are kept for 30 days.": [\n        null,\n        "消息會保留 30 天。"\n      ],\n      "Notifications": [\n        null,\n        "通知"\n      ],\n      "Publish your website to activate the Chat.": [\n        null,\n        "發布您的網站以激活聊天。"\n      ],\n      "Review this App": [\n        null,\n        "查看此應用程序"\n      ],\n      "This person is not online anymore.": [\n        null,\n        "此人已不在線。"\n      ],\n      "Write to us": [\n        null,\n        "寫信給我們"\n      ],\n      "You can activate the Chat editing the contact page of your website.": [\n        null,\n        "您可以激活聊天編輯您網站的聯繫頁面。"\n      ],\n      "You can test the contact page on your published site.": [\n        null,\n        "您可以在您發布的網站上測試聯繫頁面。"\n      ],\n      "You did not install the Chat yet.": [\n        null,\n        "您尚未安裝 Chat。"\n      ],\n      "You have not received any message yet.": [\n        null,\n        "您還沒有收到任何消息。"\n      ],\n      "Chat with us": [\n        null,\n        "與我們聊天"\n      ],\n      "Email us": [\n        null,\n        "給我們發電子郵件"\n      ],\n      "Please publish this site again for the changes to take effect.": [\n        null,\n        "請再次發布此站點以使更改生效。"\n      ],\n      "You can answer the messages of your readers with the SimDif app.": [\n        null,\n        "您可以使用 SimDif 應用程序回复讀者的消息。"\n      ],\n      "Your screen name will show as": [\n        null,\n        "您的屏幕名稱將顯示為"\n      ],\n      "A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened.": [\n        null,\n        "收到一條非常大的消息。這可能是由於旨在降低聊天性能的攻擊。輸出已縮短。"\n      ],\n      "Are you sure you want to clear the messages from this chat box?": [\n        null,\n        "您確定要清除此聊天框中的消息嗎？"\n      ],\n      "Clear all messages": [\n        null,\n        "清除所有消息"\n      ],\n      "has gone away": [\n        null,\n        "已經走了"\n      ],\n      "has gone offline": [\n        null,\n        "已下線"\n      ],\n      "has stopped typing": [\n        null,\n        "已停止打字"\n      ],\n      "I am not available right now for a Chat.": [\n        null,\n        "我現在無法進行聊天。"\n      ],\n      "is busy": [\n        null,\n        "忙"\n      ],\n      "is typing": [\n        null,\n        "在打字"\n      ],\n      "Let\'s chat": [\n        null,\n        "讓我們聊天"\n      ],\n      "me": [\n        null,\n        "我"\n      ],\n      "Please ask your question": [\n        null,\n        "請提出您的問題"\n      ],\n      "Please check the box": [\n        null,\n        "請選中此框"\n      ],\n      "Please use the form above to send me an email. I will get back to you rapidly.": [\n        null,\n        "請使用上面的表格給我發送電子郵件。我會盡快回复你。"\n      ],\n      "Remove messages": [\n        null,\n        "刪除消息"\n      ],\n      "Show this menu": [\n        null,\n        "顯示此菜單"\n      ],\n      "Stopped typing on the other device": [\n        null,\n        "停止在其他設備上打字"\n      ],\n      "Typing from another device": [\n        null,\n        "從其他設備打字"\n      ],\n      "Verification": [\n        null,\n        "確認"\n      ],\n      "What is your name?": [\n        null,\n        "你叫什麼名字？"\n      ],\n      "Write in the third person": [\n        null,\n        "用第三人稱寫"\n      ],\n      "Your message": [\n        null,\n        "你的信息"\n      ],\n      "Your name": [\n        null,\n        "你的名字"\n      ],\n      "Your text": [\n        null,\n        "你的文字"\n      ]\n    }\n  }\n}'}),function(e,n){define("locales",["jed","text!de","text!es","text!fr","text!id","text!it","text!ja","text!nl","text!pt","text!ru","text!th","text!vi","text!ca","text!no","text!tl","text!tr","text!bn","text!ms","text!hi","text!mr","text!ar","text!fa","text!he","text!pa","text!ko","text!hu","text!uk","text!el","text!pl","text!ro","text!zh-cn","text!zh-tw"],function(n,t){return e.locales={en:{},de:arguments[1],es:arguments[2],fr:arguments[3],id:arguments[4],it:arguments[5],ja:arguments[6],nl:arguments[7],pt:arguments[8],ru:arguments[9],th:arguments[10],vi:arguments[11],ca:arguments[12],no:arguments[13],tl:arguments[14],tr:arguments[15],bn:arguments[16],ms:arguments[17],hi:arguments[18],mr:arguments[19],ar:arguments[20],fa:arguments[21],he:arguments[22],pa:arguments[23],ko:arguments[24],hu:arguments[25],uk:arguments[26],el:arguments[27],pl:arguments[28],ro:arguments[29],"zh-cn":arguments[30],"zh-tw":arguments[31]},e.locales})}(this),function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define("moment/moment",n):e.moment=n()}(this,function(){"use strict";function e(){return yi.apply(null,arguments)}function n(e){yi=e}function t(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function r(e){var n;for(n in e)return!1;return!0}function o(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,n){var t,i=[];for(t=0;t<e.length;++t)i.push(n(e[t],t));return i}function u(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function c(e,n){for(var t in n)u(n,t)&&(e[t]=n[t]);return u(n,"toString")&&(e.toString=n.toString),u(n,"valueOf")&&(e.valueOf=n.valueOf),e}function h(e,n,t,i){return yn(e,n,t,i,!0).utc()}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function f(e){return null==e._pf&&(e._pf=d()),e._pf}function p(e){if(null==e._isValid){var n=f(e),t=wi.call(n.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidMonth&&!n.invalidWeekday&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&t);if(e._strict&&(i=i&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function m(e){var n=h(NaN);return null!=e?c(f(n),e):f(n).userInvalidated=!0,n}function g(e,n){var t,i,r;if(o(n._isAMomentObject)||(e._isAMomentObject=n._isAMomentObject),o(n._i)||(e._i=n._i),o(n._f)||(e._f=n._f),o(n._l)||(e._l=n._l),o(n._strict)||(e._strict=n._strict),o(n._tzm)||(e._tzm=n._tzm),o(n._isUTC)||(e._isUTC=n._isUTC),o(n._offset)||(e._offset=n._offset),o(n._pf)||(e._pf=f(n)),o(n._locale)||(e._locale=n._locale),xi.length>0)for(t=0;t<xi.length;t++)i=xi[t],r=n[i],o(r)||(e[i]=r);return e}function _(n){g(this,n),this._d=new Date(null!=n._d?n._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Si===!1&&(Si=!0,e.updateOffset(this),Si=!1)}function v(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function y(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function b(e){var n=+e,t=0;return 0!==n&&isFinite(n)&&(t=y(n)),t}function w(e,n,t){var i,r=Math.min(e.length,n.length),o=Math.abs(e.length-n.length),s=0;for(i=0;i<r;i++)(t&&e[i]!==n[i]||!t&&b(e[i])!==b(n[i]))&&s++;return s+o}function x(n){e.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+n)}function S(n,t){var i=!0;return c(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,n),i){for(var r,o=[],s=0;s<arguments.length;s++){if(r="","object"==typeof arguments[s]){r+="\n["+s+"] ";for(var a in arguments[0])r+=a+": "+arguments[0][a]+", ";r=r.slice(0,-2)}else r=arguments[s];o.push(r)}x(n+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return t.apply(this,arguments)},t)}function C(n,t){null!=e.deprecationHandler&&e.deprecationHandler(n,t),Ci[n]||(x(t),Ci[n]=!0)}function k(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e){var n,t;for(t in e)n=e[t],k(n)?this[t]=n:this["_"+t]=n;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function T(e,n){var t,r=c({},e);for(t in n)u(n,t)&&(i(e[t])&&i(n[t])?(r[t]={},c(r[t],e[t]),c(r[t],n[t])):null!=n[t]?r[t]=n[t]:delete r[t]);for(t in e)u(e,t)&&!u(n,t)&&i(e[t])&&(r[t]=c({},r[t]));return r}function M(e){null!=e&&this.set(e)}function j(e,n,t){var i=this._calendar[e]||this._calendar.sameElse;return k(i)?i.call(n,t):i}function N(e){var n=this._longDateFormat[e],t=this._longDateFormat[e.toUpperCase()];return n||!t?n:(this._longDateFormat[e]=t.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function E(){return this._invalidDate}function D(e){return this._ordinal.replace("%d",e)}function R(e,n,t,i){var r=this._relativeTime[t];return k(r)?r(e,n,t,i):r.replace(/%d/i,e)}function I(e,n){var t=this._relativeTime[e>0?"future":"past"];return k(t)?t(n):t.replace(/%s/i,n)}function L(e,n){var t=e.toLowerCase();Ii[t]=Ii[t+"s"]=Ii[n]=e}function O(e){return"string"==typeof e?Ii[e]||Ii[e.toLowerCase()]:void 0}function P(e){var n,t,i={};for(t in e)u(e,t)&&(n=O(t),n&&(i[n]=e[t]));return i}function q(e,n){Li[e]=n}function F(e){var n=[];for(var t in e)n.push({unit:t,priority:Li[t]});return n.sort(function(e,n){return e.priority-n.priority}),n}function Y(n,t){return function(i){return null!=i?(z(this,n,i),e.updateOffset(this,t),this):H(this,n)}}function H(e,n){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+n]():NaN}function z(e,n,t){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+n](t)}function B(e){return e=O(e),k(this[e])?this[e]():this}function W(e,n){if("object"==typeof e){e=P(e);for(var t=F(e),i=0;i<t.length;i++)this[t[i].unit](e[t[i].unit])}else if(e=O(e),k(this[e]))return this[e](n);return this}function $(e,n,t){var i=""+Math.abs(e),r=n-i.length,o=e>=0;return(o?t?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function U(e,n,t,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(Fi[e]=r),n&&(Fi[n[0]]=function(){return $(r.apply(this,arguments),n[1],n[2])}),t&&(Fi[t]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function V(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function G(e){var n,t,i=e.match(Oi);for(n=0,t=i.length;n<t;n++)Fi[i[n]]?i[n]=Fi[i[n]]:i[n]=V(i[n]);return function(n){var r,o="";for(r=0;r<t;r++)o+=k(i[r])?i[r].call(n,e):i[r];return o}}function J(e,n){return e.isValid()?(n=X(n,e.localeData()),qi[n]=qi[n]||G(n),qi[n](e)):e.localeData().invalidDate()}function X(e,n){function t(e){return n.longDateFormat(e)||e}var i=5;for(Pi.lastIndex=0;i>=0&&Pi.test(e);)e=e.replace(Pi,t),Pi.lastIndex=0,i-=1;return e}function Q(e,n,t){ir[e]=k(n)?n:function(e,i){return e&&t?t:n}}function K(e,n){return u(ir,e)?ir[e](n._strict,n._locale):new RegExp(Z(e))}function Z(e){return ee(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,n,t,i,r){return n||t||i||r}))}function ee(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ne(e,n){var t,i=n;for("string"==typeof e&&(e=[e]),s(n)&&(i=function(e,t){t[n]=b(e)}),t=0;t<e.length;t++)rr[e[t]]=i}function te(e,n){ne(e,function(e,t,i,r){i._w=i._w||{},n(e,i._w,i,r)})}function ie(e,n,t){null!=n&&u(rr,e)&&rr[e](n,t._a,t,e)}function re(e,n){return new Date(Date.UTC(e,n+1,0)).getUTCDate()}function oe(e,n){return e?t(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||mr).test(n)?"format":"standalone"][e.month()]:t(this._months)?this._months:this._months.standalone}function se(e,n){return e?t(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[mr.test(n)?"format":"standalone"][e.month()]:t(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ae(e,n,t){var i,r,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=h([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return t?"MMM"===n?(r=pr.call(this._shortMonthsParse,s),r!==-1?r:null):(r=pr.call(this._longMonthsParse,s),r!==-1?r:null):"MMM"===n?(r=pr.call(this._shortMonthsParse,s),r!==-1?r:(r=pr.call(this._longMonthsParse,s),r!==-1?r:null)):(r=pr.call(this._longMonthsParse,s),r!==-1?r:(r=pr.call(this._shortMonthsParse,s),r!==-1?r:null))}function le(e,n,t){var i,r,o;if(this._monthsParseExact)return ae.call(this,e,n,t);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=h([2e3,i]),t&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),t||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),t&&"MMMM"===n&&this._longMonthsParse[i].test(e))return i;if(t&&"MMM"===n&&this._shortMonthsParse[i].test(e))return i;if(!t&&this._monthsParse[i].test(e))return i}}function ue(e,n){var t;if(!e.isValid())return e;if("string"==typeof n)if(/^\d+$/.test(n))n=b(n);else if(n=e.localeData().monthsParse(n),!s(n))return e;return t=Math.min(e.date(),re(e.year(),n)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](n,t),e}function ce(n){return null!=n?(ue(this,n),e.updateOffset(this,!0),this):H(this,"Month")}function he(){return re(this.year(),this.month())}function de(e){return this._monthsParseExact?(u(this,"_monthsRegex")||pe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=vr),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function fe(e){return this._monthsParseExact?(u(this,"_monthsRegex")||pe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=yr),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function pe(){function e(e,n){return n.length-e.length}var n,t,i=[],r=[],o=[];for(n=0;n<12;n++)t=h([2e3,n]),i.push(this.monthsShort(t,"")),r.push(this.months(t,"")),o.push(this.months(t,"")),o.push(this.monthsShort(t,""));for(i.sort(e),r.sort(e),o.sort(e),n=0;n<12;n++)i[n]=ee(i[n]),r[n]=ee(r[n]);for(n=0;n<24;n++)o[n]=ee(o[n]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function me(e){return ge(e)?366:365}function ge(e){return e%4===0&&e%100!==0||e%400===0}function _e(){return ge(this.year())}function ve(e,n,t,i,r,o,s){var a=new Date(e,n,t,i,r,o,s);return e<100&&e>=0&&isFinite(a.getFullYear())&&a.setFullYear(e),a}function ye(e){var n=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(n.getUTCFullYear())&&n.setUTCFullYear(e),n}function be(e,n,t){var i=7+n-t,r=(7+ye(e,0,i).getUTCDay()-n)%7;return-r+i-1}function we(e,n,t,i,r){var o,s,a=(7+t-i)%7,l=be(e,i,r),u=1+7*(n-1)+a+l;return u<=0?(o=e-1,s=me(o)+u):u>me(e)?(o=e+1,s=u-me(e)):(o=e,s=u),{year:o,dayOfYear:s}}function xe(e,n,t){var i,r,o=be(e.year(),n,t),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?(r=e.year()-1,i=s+Se(r,n,t)):s>Se(e.year(),n,t)?(i=s-Se(e.year(),n,t),r=e.year()+1):(r=e.year(),i=s),{week:i,year:r}}function Se(e,n,t){var i=be(e,n,t),r=be(e+1,n,t);return(me(e)-i+r)/7}function Ce(e){return xe(e,this._week.dow,this._week.doy).week}function ke(){return this._week.dow}function Ae(){return this._week.doy}function Te(e){var n=this.localeData().week(this);return null==e?n:this.add(7*(e-n),"d")}function Me(e){var n=xe(this,1,4).week;return null==e?n:this.add(7*(e-n),"d")}function je(e,n){return"string"!=typeof e?e:isNaN(e)?(e=n.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ne(e,n){return"string"==typeof e?n.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ee(e,n){return e?t(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(n)?"format":"standalone"][e.day()]:t(this._weekdays)?this._weekdays:this._weekdays.standalone}function De(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Re(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ie(e,n,t){var i,r,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return t?"dddd"===n?(r=pr.call(this._weekdaysParse,s),r!==-1?r:null):"ddd"===n?(r=pr.call(this._shortWeekdaysParse,s),r!==-1?r:null):(r=pr.call(this._minWeekdaysParse,s),r!==-1?r:null):"dddd"===n?(r=pr.call(this._weekdaysParse,s),r!==-1?r:(r=pr.call(this._shortWeekdaysParse,s),r!==-1?r:(r=pr.call(this._minWeekdaysParse,s),r!==-1?r:null))):"ddd"===n?(r=pr.call(this._shortWeekdaysParse,s),r!==-1?r:(r=pr.call(this._weekdaysParse,s),r!==-1?r:(r=pr.call(this._minWeekdaysParse,s),r!==-1?r:null))):(r=pr.call(this._minWeekdaysParse,s),r!==-1?r:(r=pr.call(this._weekdaysParse,s),r!==-1?r:(r=pr.call(this._shortWeekdaysParse,s),r!==-1?r:null)))}function Le(e,n,t){var i,r,o;if(this._weekdaysParseExact)return Ie.call(this,e,n,t);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=h([2e3,1]).day(i),t&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),t&&"dddd"===n&&this._fullWeekdaysParse[i].test(e))return i;if(t&&"ddd"===n&&this._shortWeekdaysParse[i].test(e))return i;if(t&&"dd"===n&&this._minWeekdaysParse[i].test(e))return i;if(!t&&this._weekdaysParse[i].test(e))return i}}function Oe(e){if(!this.isValid())return null!=e?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=je(e,this.localeData()),this.add(e-n,"d")):n}function Pe(e){if(!this.isValid())return null!=e?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==e?n:this.add(e-n,"d")}function qe(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var n=Ne(e,this.localeData());return this.day(this.day()%7?n:n-7)}return this.day()||7}function Fe(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=kr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ye(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ar),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function He(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ze.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Tr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ze(){function e(e,n){return n.length-e.length}var n,t,i,r,o,s=[],a=[],l=[],u=[];for(n=0;n<7;n++)t=h([2e3,1]).day(n),i=this.weekdaysMin(t,""),r=this.weekdaysShort(t,""),o=this.weekdays(t,""),s.push(i),a.push(r),l.push(o),u.push(i),u.push(r),u.push(o);for(s.sort(e),a.sort(e),l.sort(e),u.sort(e),n=0;n<7;n++)a[n]=ee(a[n]),l[n]=ee(l[n]),u[n]=ee(u[n]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Be(){return this.hours()%12||12}function We(){return this.hours()||24}function $e(e,n){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}function Ue(e,n){return n._meridiemParse}function Ve(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ge(e,n,t){return e>11?t?"pm":"PM":t?"am":"AM"}function Je(e){return e?e.toLowerCase().replace("_","-"):e}function Xe(e){for(var n,t,i,r,o=0;o<e.length;){for(r=Je(e[o]).split("-"),n=r.length,t=Je(e[o+1]),t=t?t.split("-"):null;n>0;){if(i=Qe(r.slice(0,n).join("-")))return i;if(t&&t.length>=n&&w(r,t,!0)>=n-1)break;n--}o++}return null}function Qe(e){var n=null;if(!Dr[e]&&"undefined"!=typeof module&&module&&module.exports)try{n=Mr._abbr,require("./locale/"+e),Ke(n)}catch(e){}return Dr[e];
}function Ke(e,n){var t;return e&&(t=o(n)?nn(e):Ze(e,n),t&&(Mr=t)),Mr._abbr}function Ze(e,n){if(null!==n){var t=Er;if(n.abbr=e,null!=Dr[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),t=Dr[e]._config;else if(null!=n.parentLocale){if(null==Dr[n.parentLocale])return Rr[n.parentLocale]||(Rr[n.parentLocale]=[]),Rr[n.parentLocale].push({name:e,config:n}),null;t=Dr[n.parentLocale]._config}return Dr[e]=new M(T(t,n)),Rr[e]&&Rr[e].forEach(function(e){Ze(e.name,e.config)}),Ke(e),Dr[e]}return delete Dr[e],null}function en(e,n){if(null!=n){var t,i=Er;null!=Dr[e]&&(i=Dr[e]._config),n=T(i,n),t=new M(n),t.parentLocale=Dr[e],Dr[e]=t,Ke(e)}else null!=Dr[e]&&(null!=Dr[e].parentLocale?Dr[e]=Dr[e].parentLocale:null!=Dr[e]&&delete Dr[e]);return Dr[e]}function nn(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Mr;if(!t(e)){if(n=Qe(e))return n;e=[e]}return Xe(e)}function tn(){return Ti(Dr)}function rn(e){var n,t=e._a;return t&&f(e).overflow===-2&&(n=t[sr]<0||t[sr]>11?sr:t[ar]<1||t[ar]>re(t[or],t[sr])?ar:t[lr]<0||t[lr]>24||24===t[lr]&&(0!==t[ur]||0!==t[cr]||0!==t[hr])?lr:t[ur]<0||t[ur]>59?ur:t[cr]<0||t[cr]>59?cr:t[hr]<0||t[hr]>999?hr:-1,f(e)._overflowDayOfYear&&(n<or||n>ar)&&(n=ar),f(e)._overflowWeeks&&n===-1&&(n=dr),f(e)._overflowWeekday&&n===-1&&(n=fr),f(e).overflow=n),e}function on(e){var n,t,i,r,o,s,a=e._i,l=Ir.exec(a)||Lr.exec(a);if(l){for(f(e).iso=!0,n=0,t=Pr.length;n<t;n++)if(Pr[n][1].exec(l[1])){r=Pr[n][0],i=Pr[n][2]!==!1;break}if(null==r)return void(e._isValid=!1);if(l[3]){for(n=0,t=qr.length;n<t;n++)if(qr[n][1].exec(l[3])){o=(l[2]||" ")+qr[n][0];break}if(null==o)return void(e._isValid=!1)}if(!i&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Or.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=r+(o||"")+(s||""),dn(e)}else e._isValid=!1}function sn(e){var n,t,i,r,o,s,a,l,u={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"},c="YXWVUTSRQPONZABCDEFGHIKLM";if(n=e._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),t=Yr.exec(n)){if(i=t[1]?"ddd"+(5===t[1].length?", ":" "):"",r="D MMM "+(t[2].length>10?"YYYY ":"YY "),o="HH:mm"+(t[4]?":ss":""),t[1]){var h=new Date(t[2]),d=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][h.getDay()];if(t[1].substr(0,3)!==d)return f(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(t[5].length){case 2:0===l?a=" +0000":(l=c.indexOf(t[5][1].toUpperCase())-12,a=(l<0?" -":" +")+(""+l).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:a=u[t[5]];break;default:a=u[" GMT"]}t[5]=a,e._i=t.splice(1).join(""),s=" ZZ",e._f=i+r+o+s,dn(e),f(e).rfc2822=!0}else e._isValid=!1}function an(n){var t=Fr.exec(n._i);return null!==t?void(n._d=new Date(+t[1])):(on(n),void(n._isValid===!1&&(delete n._isValid,sn(n),n._isValid===!1&&(delete n._isValid,e.createFromInputFallback(n)))))}function ln(e,n,t){return null!=e?e:null!=n?n:t}function un(n){var t=new Date(e.now());return n._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function cn(e){var n,t,i,r,o=[];if(!e._d){for(i=un(e),e._w&&null==e._a[ar]&&null==e._a[sr]&&hn(e),null!=e._dayOfYear&&(r=ln(e._a[or],i[or]),(e._dayOfYear>me(r)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),t=ye(r,0,e._dayOfYear),e._a[sr]=t.getUTCMonth(),e._a[ar]=t.getUTCDate()),n=0;n<3&&null==e._a[n];++n)e._a[n]=o[n]=i[n];for(;n<7;n++)e._a[n]=o[n]=null==e._a[n]?2===n?1:0:e._a[n];24===e._a[lr]&&0===e._a[ur]&&0===e._a[cr]&&0===e._a[hr]&&(e._nextDay=!0,e._a[lr]=0),e._d=(e._useUTC?ye:ve).apply(null,o),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[lr]=24)}}function hn(e){var n,t,i,r,o,s,a,l;if(n=e._w,null!=n.GG||null!=n.W||null!=n.E)o=1,s=4,t=ln(n.GG,e._a[or],xe(bn(),1,4).year),i=ln(n.W,1),r=ln(n.E,1),(r<1||r>7)&&(l=!0);else{o=e._locale._week.dow,s=e._locale._week.doy;var u=xe(bn(),o,s);t=ln(n.gg,e._a[or],u.year),i=ln(n.w,u.week),null!=n.d?(r=n.d,(r<0||r>6)&&(l=!0)):null!=n.e?(r=n.e+o,(n.e<0||n.e>6)&&(l=!0)):r=o}i<1||i>Se(t,o,s)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(a=we(t,i,r,o,s),e._a[or]=a.year,e._dayOfYear=a.dayOfYear)}function dn(n){if(n._f===e.ISO_8601)return void on(n);if(n._f===e.RFC_2822)return void sn(n);n._a=[],f(n).empty=!0;var t,i,r,o,s,a=""+n._i,l=a.length,u=0;for(r=X(n._f,n._locale).match(Oi)||[],t=0;t<r.length;t++)o=r[t],i=(a.match(K(o,n))||[])[0],i&&(s=a.substr(0,a.indexOf(i)),s.length>0&&f(n).unusedInput.push(s),a=a.slice(a.indexOf(i)+i.length),u+=i.length),Fi[o]?(i?f(n).empty=!1:f(n).unusedTokens.push(o),ie(o,i,n)):n._strict&&!i&&f(n).unusedTokens.push(o);f(n).charsLeftOver=l-u,a.length>0&&f(n).unusedInput.push(a),n._a[lr]<=12&&f(n).bigHour===!0&&n._a[lr]>0&&(f(n).bigHour=void 0),f(n).parsedDateParts=n._a.slice(0),f(n).meridiem=n._meridiem,n._a[lr]=fn(n._locale,n._a[lr],n._meridiem),cn(n),rn(n)}function fn(e,n,t){var i;return null==t?n:null!=e.meridiemHour?e.meridiemHour(n,t):null!=e.isPM?(i=e.isPM(t),i&&n<12&&(n+=12),i||12!==n||(n=0),n):n}function pn(e){var n,t,i,r,o;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<e._f.length;r++)o=0,n=g({},e),null!=e._useUTC&&(n._useUTC=e._useUTC),n._f=e._f[r],dn(n),p(n)&&(o+=f(n).charsLeftOver,o+=10*f(n).unusedTokens.length,f(n).score=o,(null==i||o<i)&&(i=o,t=n));c(e,t||n)}function mn(e){if(!e._d){var n=P(e._i);e._a=l([n.year,n.month,n.day||n.date,n.hour,n.minute,n.second,n.millisecond],function(e){return e&&parseInt(e,10)}),cn(e)}}function gn(e){var n=new _(rn(_n(e)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function _n(e){var n=e._i,i=e._f;return e._locale=e._locale||nn(e._l),null===n||void 0===i&&""===n?m({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),v(n)?new _(rn(n)):(a(n)?e._d=n:t(i)?pn(e):i?dn(e):vn(e),p(e)||(e._d=null),e))}function vn(n){var r=n._i;o(r)?n._d=new Date(e.now()):a(r)?n._d=new Date(r.valueOf()):"string"==typeof r?an(n):t(r)?(n._a=l(r.slice(0),function(e){return parseInt(e,10)}),cn(n)):i(r)?mn(n):s(r)?n._d=new Date(r):e.createFromInputFallback(n)}function yn(e,n,o,s,a){var l={};return o!==!0&&o!==!1||(s=o,o=void 0),(i(e)&&r(e)||t(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=o,l._i=e,l._f=n,l._strict=s,gn(l)}function bn(e,n,t,i){return yn(e,n,t,i,!1)}function wn(e,n){var i,r;if(1===n.length&&t(n[0])&&(n=n[0]),!n.length)return bn();for(i=n[0],r=1;r<n.length;++r)n[r].isValid()&&!n[r][e](i)||(i=n[r]);return i}function xn(){var e=[].slice.call(arguments,0);return wn("isBefore",e)}function Sn(){var e=[].slice.call(arguments,0);return wn("isAfter",e)}function Cn(e){for(var n in e)if(Wr.indexOf(n)===-1||null!=e[n]&&isNaN(e[n]))return!1;for(var t=!1,i=0;i<Wr.length;++i)if(e[Wr[i]]){if(t)return!1;parseFloat(e[Wr[i]])!==b(e[Wr[i]])&&(t=!0)}return!0}function kn(){return this._isValid}function An(){return $n(NaN)}function Tn(e){var n=P(e),t=n.year||0,i=n.quarter||0,r=n.month||0,o=n.week||0,s=n.day||0,a=n.hour||0,l=n.minute||0,u=n.second||0,c=n.millisecond||0;this._isValid=Cn(n),this._milliseconds=+c+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*o,this._months=+r+3*i+12*t,this._data={},this._locale=nn(),this._bubble()}function Mn(e){return e instanceof Tn}function jn(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Nn(e,n){U(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+$(~~(e/60),2)+n+$(~~e%60,2)})}function En(e,n){var t=(n||"").match(e);if(null===t)return null;var i=t[t.length-1]||[],r=(i+"").match($r)||["-",0,0],o=+(60*r[1])+b(r[2]);return 0===o?0:"+"===r[0]?o:-o}function Dn(n,t){var i,r;return t._isUTC?(i=t.clone(),r=(v(n)||a(n)?n.valueOf():bn(n).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+r),e.updateOffset(i,!1),i):bn(n).local()}function Rn(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function In(n,t,i){var r,o=this._offset||0;if(!this.isValid())return null!=n?this:NaN;if(null!=n){if("string"==typeof n){if(n=En(er,n),null===n)return this}else Math.abs(n)<16&&!i&&(n*=60);return!this._isUTC&&t&&(r=Rn(this)),this._offset=n,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==n&&(!t||this._changeInProgress?Xn(this,$n(n-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Rn(this)}function Ln(e,n){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,n),this):-this.utcOffset()}function On(e){return this.utcOffset(0,e)}function Pn(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Rn(this),"m")),this}function qn(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=En(Zi,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Fn(e){return!!this.isValid()&&(e=e?bn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function Yn(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Hn(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),e=_n(e),e._a){var n=e._isUTC?h(e._a):bn(e._a);this._isDSTShifted=this.isValid()&&w(e._a,n.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function zn(){return!!this.isValid()&&!this._isUTC}function Bn(){return!!this.isValid()&&this._isUTC}function Wn(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function $n(e,n){var t,i,r,o=e,a=null;return Mn(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(o={},n?o[n]=e:o.milliseconds=e):(a=Ur.exec(e))?(t="-"===a[1]?-1:1,o={y:0,d:b(a[ar])*t,h:b(a[lr])*t,m:b(a[ur])*t,s:b(a[cr])*t,ms:b(jn(1e3*a[hr]))*t}):(a=Vr.exec(e))?(t="-"===a[1]?-1:1,o={y:Un(a[2],t),M:Un(a[3],t),w:Un(a[4],t),d:Un(a[5],t),h:Un(a[6],t),m:Un(a[7],t),s:Un(a[8],t)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=Gn(bn(o.from),bn(o.to)),o={},o.ms=r.milliseconds,o.M=r.months),i=new Tn(o),Mn(e)&&u(e,"_locale")&&(i._locale=e._locale),i}function Un(e,n){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*n}function Vn(e,n){var t={milliseconds:0,months:0};return t.months=n.month()-e.month()+12*(n.year()-e.year()),e.clone().add(t.months,"M").isAfter(n)&&--t.months,t.milliseconds=+n-+e.clone().add(t.months,"M"),t}function Gn(e,n){var t;return e.isValid()&&n.isValid()?(n=Dn(n,e),e.isBefore(n)?t=Vn(e,n):(t=Vn(n,e),t.milliseconds=-t.milliseconds,t.months=-t.months),t):{milliseconds:0,months:0}}function Jn(e,n){return function(t,i){var r,o;return null===i||isNaN(+i)||(C(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=t,t=i,i=o),t="string"==typeof t?+t:t,r=$n(t,i),Xn(this,r,e),this}}function Xn(n,t,i,r){var o=t._milliseconds,s=jn(t._days),a=jn(t._months);n.isValid()&&(r=null==r||r,o&&n._d.setTime(n._d.valueOf()+o*i),s&&z(n,"Date",H(n,"Date")+s*i),a&&ue(n,H(n,"Month")+a*i),r&&e.updateOffset(n,s||a))}function Qn(e,n){var t=e.diff(n,"days",!0);return t<-6?"sameElse":t<-1?"lastWeek":t<0?"lastDay":t<1?"sameDay":t<2?"nextDay":t<7?"nextWeek":"sameElse"}function Kn(n,t){var i=n||bn(),r=Dn(i,this).startOf("day"),o=e.calendarFormat(this,r)||"sameElse",s=t&&(k(t[o])?t[o].call(this,i):t[o]);return this.format(s||this.localeData().calendar(o,this,bn(i)))}function Zn(){return new _(this)}function et(e,n){var t=v(e)?e:bn(e);return!(!this.isValid()||!t.isValid())&&(n=O(o(n)?"millisecond":n),"millisecond"===n?this.valueOf()>t.valueOf():t.valueOf()<this.clone().startOf(n).valueOf())}function nt(e,n){var t=v(e)?e:bn(e);return!(!this.isValid()||!t.isValid())&&(n=O(o(n)?"millisecond":n),"millisecond"===n?this.valueOf()<t.valueOf():this.clone().endOf(n).valueOf()<t.valueOf())}function tt(e,n,t,i){return i=i||"()",("("===i[0]?this.isAfter(e,t):!this.isBefore(e,t))&&(")"===i[1]?this.isBefore(n,t):!this.isAfter(n,t))}function it(e,n){var t,i=v(e)?e:bn(e);return!(!this.isValid()||!i.isValid())&&(n=O(n||"millisecond"),"millisecond"===n?this.valueOf()===i.valueOf():(t=i.valueOf(),this.clone().startOf(n).valueOf()<=t&&t<=this.clone().endOf(n).valueOf()))}function rt(e,n){return this.isSame(e,n)||this.isAfter(e,n)}function ot(e,n){return this.isSame(e,n)||this.isBefore(e,n)}function st(e,n,t){var i,r,o,s;return this.isValid()?(i=Dn(e,this),i.isValid()?(r=6e4*(i.utcOffset()-this.utcOffset()),n=O(n),"year"===n||"month"===n||"quarter"===n?(s=at(this,i),"quarter"===n?s/=3:"year"===n&&(s/=12)):(o=this-i,s="second"===n?o/1e3:"minute"===n?o/6e4:"hour"===n?o/36e5:"day"===n?(o-r)/864e5:"week"===n?(o-r)/6048e5:o),t?s:y(s)):NaN):NaN}function at(e,n){var t,i,r=12*(n.year()-e.year())+(n.month()-e.month()),o=e.clone().add(r,"months");return n-o<0?(t=e.clone().add(r-1,"months"),i=(n-o)/(o-t)):(t=e.clone().add(r+1,"months"),i=(n-o)/(t-o)),-(r+i)||0}function lt(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ut(){if(!this.isValid())return null;var e=this.clone().utc();return e.year()<0||e.year()>9999?J(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):k(Date.prototype.toISOString)?this.toDate().toISOString():J(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function ct(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",n="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z");var t="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r="-MM-DD[T]HH:mm:ss.SSS",o=n+'[")]';return this.format(t+i+r+o)}function ht(n){n||(n=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var t=J(this,n);return this.localeData().postformat(t)}function dt(e,n){return this.isValid()&&(v(e)&&e.isValid()||bn(e).isValid())?$n({to:this,from:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function ft(e){return this.from(bn(),e)}function pt(e,n){return this.isValid()&&(v(e)&&e.isValid()||bn(e).isValid())?$n({from:this,to:e}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function mt(e){return this.to(bn(),e)}function gt(e){var n;return void 0===e?this._locale._abbr:(n=nn(e),null!=n&&(this._locale=n),this)}function _t(){return this._locale}function vt(e){switch(e=O(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function yt(e){return e=O(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function bt(){return this._d.valueOf()-6e4*(this._offset||0)}function wt(){return Math.floor(this.valueOf()/1e3)}function xt(){return new Date(this.valueOf())}function St(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Ct(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function kt(){return this.isValid()?this.toISOString():null}function At(){return p(this)}function Tt(){return c({},f(this))}function Mt(){return f(this).overflow}function jt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Nt(e,n){U(0,[e,e.length],0,n)}function Et(e){return Lt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Dt(e){return Lt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Rt(){return Se(this.year(),1,4)}function It(){var e=this.localeData()._week;return Se(this.year(),e.dow,e.doy)}function Lt(e,n,t,i,r){var o;return null==e?xe(this,i,r).year:(o=Se(e,i,r),n>o&&(n=o),Ot.call(this,e,n,t,i,r))}function Ot(e,n,t,i,r){var o=we(e,n,t,i,r),s=ye(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Pt(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function qt(e){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?n:this.add(e-n,"d")}function Ft(e,n){n[hr]=b(1e3*("0."+e))}function Yt(){return this._isUTC?"UTC":""}function Ht(){return this._isUTC?"Coordinated Universal Time":""}function zt(e){return bn(1e3*e)}function Bt(){return bn.apply(null,arguments).parseZone()}function Wt(e){return e}function $t(e,n,t,i){var r=nn(),o=h().set(i,n);return r[t](o,e)}function Ut(e,n,t){if(s(e)&&(n=e,e=void 0),e=e||"",null!=n)return $t(e,n,t,"month");var i,r=[];for(i=0;i<12;i++)r[i]=$t(e,i,t,"month");return r}function Vt(e,n,t,i){"boolean"==typeof e?(s(n)&&(t=n,n=void 0),n=n||""):(n=e,t=n,e=!1,s(n)&&(t=n,n=void 0),n=n||"");var r=nn(),o=e?r._week.dow:0;if(null!=t)return $t(n,(t+o)%7,i,"day");var a,l=[];for(a=0;a<7;a++)l[a]=$t(n,(a+o)%7,i,"day");return l}function Gt(e,n){return Ut(e,n,"months")}function Jt(e,n){return Ut(e,n,"monthsShort")}function Xt(e,n,t){return Vt(e,n,t,"weekdays")}function Qt(e,n,t){return Vt(e,n,t,"weekdaysShort")}function Kt(e,n,t){return Vt(e,n,t,"weekdaysMin")}function Zt(){var e=this._data;return this._milliseconds=ro(this._milliseconds),this._days=ro(this._days),this._months=ro(this._months),e.milliseconds=ro(e.milliseconds),e.seconds=ro(e.seconds),e.minutes=ro(e.minutes),e.hours=ro(e.hours),e.months=ro(e.months),e.years=ro(e.years),this}function ei(e,n,t,i){var r=$n(n,t);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function ni(e,n){return ei(this,e,n,1)}function ti(e,n){return ei(this,e,n,-1)}function ii(e){return e<0?Math.floor(e):Math.ceil(e)}function ri(){var e,n,t,i,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*ii(si(a)+s),s=0,a=0),l.milliseconds=o%1e3,e=y(o/1e3),l.seconds=e%60,n=y(e/60),l.minutes=n%60,t=y(n/60),l.hours=t%24,s+=y(t/24),r=y(oi(s)),a+=r,s-=ii(si(r)),i=y(a/12),a%=12,l.days=s,l.months=a,l.years=i,this}function oi(e){return 4800*e/146097}function si(e){return 146097*e/4800}function ai(e){if(!this.isValid())return NaN;var n,t,i=this._milliseconds;if(e=O(e),"month"===e||"year"===e)return n=this._days+i/864e5,t=this._months+oi(n),"month"===e?t:t/12;switch(n=this._days+Math.round(si(this._months)),e){case"week":return n/7+i/6048e5;case"day":return n+i/864e5;case"hour":return 24*n+i/36e5;case"minute":return 1440*n+i/6e4;case"second":return 86400*n+i/1e3;case"millisecond":return Math.floor(864e5*n)+i;default:throw new Error("Unknown unit "+e)}}function li(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12):NaN}function ui(e){return function(){return this.as(e)}}function ci(e){return e=O(e),this.isValid()?this[e+"s"]():NaN}function hi(e){return function(){return this.isValid()?this._data[e]:NaN}}function di(){return y(this.days()/7)}function fi(e,n,t,i,r){return r.relativeTime(n||1,!!t,e,i)}function pi(e,n,t){var i=$n(e).abs(),r=wo(i.as("s")),o=wo(i.as("m")),s=wo(i.as("h")),a=wo(i.as("d")),l=wo(i.as("M")),u=wo(i.as("y")),c=r<=xo.ss&&["s",r]||r<xo.s&&["ss",r]||o<=1&&["m"]||o<xo.m&&["mm",o]||s<=1&&["h"]||s<xo.h&&["hh",s]||a<=1&&["d"]||a<xo.d&&["dd",a]||l<=1&&["M"]||l<xo.M&&["MM",l]||u<=1&&["y"]||["yy",u];return c[2]=n,c[3]=+e>0,c[4]=t,fi.apply(null,c)}function mi(e){return void 0===e?wo:"function"==typeof e&&(wo=e,!0)}function gi(e,n){return void 0!==xo[e]&&(void 0===n?xo[e]:(xo[e]=n,"s"===e&&(xo.ss=n-1),!0))}function _i(e){if(!this.isValid())return this.localeData().invalidDate();var n=this.localeData(),t=pi(this,!e,n);return e&&(t=n.pastFuture(+this,t)),n.postformat(t)}function vi(){if(!this.isValid())return this.localeData().invalidDate();var e,n,t,i=So(this._milliseconds)/1e3,r=So(this._days),o=So(this._months);e=y(i/60),n=y(e/60),i%=60,e%=60,t=y(o/12),o%=12;var s=t,a=o,l=r,u=n,c=e,h=i,d=this.asSeconds();return d?(d<0?"-":"")+"P"+(s?s+"Y":"")+(a?a+"M":"")+(l?l+"D":"")+(u||c||h?"T":"")+(u?u+"H":"")+(c?c+"M":"")+(h?h+"S":""):"P0D"}var yi,bi;bi=Array.prototype.some?Array.prototype.some:function(e){for(var n=Object(this),t=n.length>>>0,i=0;i<t;i++)if(i in n&&e.call(this,n[i],i,n))return!0;return!1};var wi=bi,xi=e.momentProperties=[],Si=!1,Ci={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var ki;ki=Object.keys?Object.keys:function(e){var n,t=[];for(n in e)u(e,n)&&t.push(n);return t};var Ai,Ti=ki,Mi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},ji={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"},Ni="Invalid date",Ei="%d",Di=/\d{1,2}/,Ri={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},Ii={},Li={},Oi=/(\[[^\[]*\])|(\\)?([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?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Pi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,qi={},Fi={},Yi=/\d/,Hi=/\d\d/,zi=/\d{3}/,Bi=/\d{4}/,Wi=/[+-]?\d{6}/,$i=/\d\d?/,Ui=/\d\d\d\d?/,Vi=/\d\d\d\d\d\d?/,Gi=/\d{1,3}/,Ji=/\d{1,4}/,Xi=/[+-]?\d{1,6}/,Qi=/\d+/,Ki=/[+-]?\d+/,Zi=/Z|[+-]\d\d:?\d\d/gi,er=/Z|[+-]\d\d(?::?\d\d)?/gi,nr=/[+-]?\d+(\.\d{1,3})?/,tr=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ir={},rr={},or=0,sr=1,ar=2,lr=3,ur=4,cr=5,hr=6,dr=7,fr=8;Ai=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var n;for(n=0;n<this.length;++n)if(this[n]===e)return n;return-1};var pr=Ai;U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),L("month","M"),q("month",8),Q("M",$i),Q("MM",$i,Hi),Q("MMM",function(e,n){return n.monthsShortRegex(e)}),Q("MMMM",function(e,n){return n.monthsRegex(e)}),ne(["M","MM"],function(e,n){n[sr]=b(e)-1}),ne(["MMM","MMMM"],function(e,n,t,i){var r=t._locale.monthsParse(e,i,t._strict);null!=r?n[sr]=r:f(t).invalidMonth=e});var mr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,gr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),_r="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),vr=tr,yr=tr;U("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),L("year","y"),q("year",1),Q("Y",Ki),Q("YY",$i,Hi),Q("YYYY",Ji,Bi),Q("YYYYY",Xi,Wi),Q("YYYYYY",Xi,Wi),ne(["YYYYY","YYYYYY"],or),ne("YYYY",function(n,t){t[or]=2===n.length?e.parseTwoDigitYear(n):b(n)}),ne("YY",function(n,t){t[or]=e.parseTwoDigitYear(n)}),ne("Y",function(e,n){n[or]=parseInt(e,10)}),e.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var br=Y("FullYear",!0);U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),q("week",5),q("isoWeek",5),Q("w",$i),Q("ww",$i,Hi),Q("W",$i),Q("WW",$i,Hi),te(["w","ww","W","WW"],function(e,n,t,i){n[i.substr(0,1)]=b(e)});var wr={dow:0,doy:6};U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),q("day",11),q("weekday",11),q("isoWeekday",11),Q("d",$i),Q("e",$i),Q("E",$i),Q("dd",function(e,n){return n.weekdaysMinRegex(e)}),Q("ddd",function(e,n){return n.weekdaysShortRegex(e)}),Q("dddd",function(e,n){return n.weekdaysRegex(e)}),te(["dd","ddd","dddd"],function(e,n,t,i){var r=t._locale.weekdaysParse(e,i,t._strict);null!=r?n.d=r:f(t).invalidWeekday=e}),te(["d","e","E"],function(e,n,t,i){n[i]=b(e)});var xr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Sr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Cr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),kr=tr,Ar=tr,Tr=tr;U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Be),U("k",["kk",2],0,We),U("hmm",0,0,function(){return""+Be.apply(this)+$(this.minutes(),2)}),U("hmmss",0,0,function(){return""+Be.apply(this)+$(this.minutes(),2)+$(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+$(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+$(this.minutes(),2)+$(this.seconds(),2)}),$e("a",!0),$e("A",!1),L("hour","h"),q("hour",13),Q("a",Ue),Q("A",Ue),Q("H",$i),Q("h",$i),Q("k",$i),Q("HH",$i,Hi),Q("hh",$i,Hi),Q("kk",$i,Hi),Q("hmm",Ui),Q("hmmss",Vi),Q("Hmm",Ui),Q("Hmmss",Vi),ne(["H","HH"],lr),ne(["k","kk"],function(e,n,t){var i=b(e);n[lr]=24===i?0:i}),ne(["a","A"],function(e,n,t){t._isPm=t._locale.isPM(e),t._meridiem=e}),ne(["h","hh"],function(e,n,t){n[lr]=b(e),f(t).bigHour=!0}),ne("hmm",function(e,n,t){var i=e.length-2;n[lr]=b(e.substr(0,i)),n[ur]=b(e.substr(i)),f(t).bigHour=!0}),ne("hmmss",function(e,n,t){var i=e.length-4,r=e.length-2;n[lr]=b(e.substr(0,i)),n[ur]=b(e.substr(i,2)),n[cr]=b(e.substr(r)),f(t).bigHour=!0}),ne("Hmm",function(e,n,t){var i=e.length-2;n[lr]=b(e.substr(0,i)),n[ur]=b(e.substr(i))}),ne("Hmmss",function(e,n,t){var i=e.length-4,r=e.length-2;n[lr]=b(e.substr(0,i)),n[ur]=b(e.substr(i,2)),n[cr]=b(e.substr(r))});var Mr,jr=/[ap]\.?m?\.?/i,Nr=Y("Hours",!0),Er={calendar:Mi,longDateFormat:ji,invalidDate:Ni,ordinal:Ei,dayOfMonthOrdinalParse:Di,relativeTime:Ri,months:gr,monthsShort:_r,week:wr,weekdays:xr,weekdaysMin:Cr,weekdaysShort:Sr,meridiemParse:jr},Dr={},Rr={},Ir=/^\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)?)?$/,Lr=/^\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)?)?$/,Or=/Z|[+-]\d\d(?::?\d\d)?/,Pr=[["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}/]],qr=[["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/]],Fr=/^\/?Date\((\-?\d+)/i,Yr=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;e.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Hr=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=bn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),zr=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=bn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()}),Br=function(){return Date.now?Date.now():+new Date},Wr=["year","quarter","month","week","day","hour","minute","second","millisecond"];Nn("Z",":"),Nn("ZZ",""),Q("Z",er),Q("ZZ",er),ne(["Z","ZZ"],function(e,n,t){t._useUTC=!0,t._tzm=En(er,e)});var $r=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Ur=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Vr=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;$n.fn=Tn.prototype,$n.invalid=An;var Gr=Jn(1,"add"),Jr=Jn(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xr=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Nt("gggg","weekYear"),Nt("ggggg","weekYear"),Nt("GGGG","isoWeekYear"),Nt("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),q("weekYear",1),q("isoWeekYear",1),Q("G",Ki),Q("g",Ki),Q("GG",$i,Hi),Q("gg",$i,Hi),Q("GGGG",Ji,Bi),Q("gggg",Ji,Bi),Q("GGGGG",Xi,Wi),Q("ggggg",Xi,Wi),te(["gggg","ggggg","GGGG","GGGGG"],function(e,n,t,i){n[i.substr(0,2)]=b(e)}),te(["gg","GG"],function(n,t,i,r){t[r]=e.parseTwoDigitYear(n)}),U("Q",0,"Qo","quarter"),L("quarter","Q"),q("quarter",7),Q("Q",Yi),ne("Q",function(e,n){n[sr]=3*(b(e)-1)}),U("D",["DD",2],"Do","date"),L("date","D"),q("date",9),Q("D",$i),Q("DD",$i,Hi),Q("Do",function(e,n){return e?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient}),ne(["D","DD"],ar),ne("Do",function(e,n){n[ar]=b(e.match($i)[0],10)});var Qr=Y("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),q("dayOfYear",4),Q("DDD",Gi),Q("DDDD",zi),ne(["DDD","DDDD"],function(e,n,t){t._dayOfYear=b(e)}),U("m",["mm",2],0,"minute"),L("minute","m"),q("minute",14),Q("m",$i),Q("mm",$i,Hi),ne(["m","mm"],ur);var Kr=Y("Minutes",!1);U("s",["ss",2],0,"second"),L("second","s"),q("second",15),Q("s",$i),Q("ss",$i,Hi),ne(["s","ss"],cr);var Zr=Y("Seconds",!1);U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),q("millisecond",16),Q("S",Gi,Yi),Q("SS",Gi,Hi),Q("SSS",Gi,zi);var eo;for(eo="SSSS";eo.length<=9;eo+="S")Q(eo,Qi);for(eo="S";eo.length<=9;eo+="S")ne(eo,Ft);var no=Y("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var to=_.prototype;to.add=Gr,to.calendar=Kn,to.clone=Zn,to.diff=st,to.endOf=yt,to.format=ht,to.from=dt,to.fromNow=ft,to.to=pt,to.toNow=mt,to.get=B,to.invalidAt=Mt,to.isAfter=et,to.isBefore=nt,to.isBetween=tt,to.isSame=it,to.isSameOrAfter=rt,to.isSameOrBefore=ot,to.isValid=At,to.lang=Xr,to.locale=gt,to.localeData=_t,to.max=zr,to.min=Hr,to.parsingFlags=Tt,to.set=W,to.startOf=vt,to.subtract=Jr,to.toArray=St,to.toObject=Ct,to.toDate=xt,to.toISOString=ut,to.inspect=ct,to.toJSON=kt,to.toString=lt,to.unix=wt,to.valueOf=bt,to.creationData=jt,to.year=br,to.isLeapYear=_e,to.weekYear=Et,to.isoWeekYear=Dt,to.quarter=to.quarters=Pt,to.month=ce,to.daysInMonth=he,to.week=to.weeks=Te,to.isoWeek=to.isoWeeks=Me,to.weeksInYear=It,to.isoWeeksInYear=Rt,to.date=Qr,to.day=to.days=Oe,to.weekday=Pe,to.isoWeekday=qe,to.dayOfYear=qt,to.hour=to.hours=Nr,to.minute=to.minutes=Kr,to.second=to.seconds=Zr,to.millisecond=to.milliseconds=no,to.utcOffset=In,to.utc=On,to.local=Pn,to.parseZone=qn,to.hasAlignedHourOffset=Fn,to.isDST=Yn,to.isLocal=zn,to.isUtcOffset=Bn,to.isUtc=Wn,to.isUTC=Wn,to.zoneAbbr=Yt,to.zoneName=Ht,to.dates=S("dates accessor is deprecated. Use date instead.",Qr),
to.months=S("months accessor is deprecated. Use month instead",ce),to.years=S("years accessor is deprecated. Use year instead",br),to.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ln),to.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Hn);var io=M.prototype;io.calendar=j,io.longDateFormat=N,io.invalidDate=E,io.ordinal=D,io.preparse=Wt,io.postformat=Wt,io.relativeTime=R,io.pastFuture=I,io.set=A,io.months=oe,io.monthsShort=se,io.monthsParse=le,io.monthsRegex=fe,io.monthsShortRegex=de,io.week=Ce,io.firstDayOfYear=Ae,io.firstDayOfWeek=ke,io.weekdays=Ee,io.weekdaysMin=Re,io.weekdaysShort=De,io.weekdaysParse=Le,io.weekdaysRegex=Fe,io.weekdaysShortRegex=Ye,io.weekdaysMinRegex=He,io.isPM=Ve,io.meridiem=Ge,Ke("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var n=e%10,t=1===b(e%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th";return e+t}}),e.lang=S("moment.lang is deprecated. Use moment.locale instead.",Ke),e.langData=S("moment.langData is deprecated. Use moment.localeData instead.",nn);var ro=Math.abs,oo=ui("ms"),so=ui("s"),ao=ui("m"),lo=ui("h"),uo=ui("d"),co=ui("w"),ho=ui("M"),fo=ui("y"),po=hi("milliseconds"),mo=hi("seconds"),go=hi("minutes"),_o=hi("hours"),vo=hi("days"),yo=hi("months"),bo=hi("years"),wo=Math.round,xo={ss:44,s:45,m:45,h:22,d:26,M:11},So=Math.abs,Co=Tn.prototype;return Co.isValid=kn,Co.abs=Zt,Co.add=ni,Co.subtract=ti,Co.as=ai,Co.asMilliseconds=oo,Co.asSeconds=so,Co.asMinutes=ao,Co.asHours=lo,Co.asDays=uo,Co.asWeeks=co,Co.asMonths=ho,Co.asYears=fo,Co.valueOf=li,Co._bubble=ri,Co.get=ci,Co.milliseconds=po,Co.seconds=mo,Co.minutes=go,Co.hours=_o,Co.days=vo,Co.weeks=di,Co.months=yo,Co.years=bo,Co.humanize=_i,Co.toISOString=vi,Co.toString=vi,Co.toJSON=vi,Co.locale=gt,Co.localeData=_t,Co.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vi),Co.lang=Xr,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Q("x",Ki),Q("X",nr),ne("X",function(e,n,t){t._d=new Date(1e3*parseFloat(e,10))}),ne("x",function(e,n,t){t._d=new Date(b(e))}),e.version="2.18.1",n(bn),e.fn=to,e.min=xn,e.max=Sn,e.now=Br,e.utc=h,e.unix=zt,e.months=Gt,e.isDate=a,e.locale=Ke,e.invalid=m,e.duration=$n,e.isMoment=v,e.weekdays=Xt,e.parseZone=Bt,e.localeData=nn,e.isDuration=Mn,e.monthsShort=Jt,e.weekdaysMin=Kt,e.defineLocale=Ze,e.updateLocale=en,e.locales=tn,e.weekdaysShort=Qt,e.normalizeUnits=O,e.relativeTimeRounding=mi,e.relativeTimeThreshold=gi,e.calendarFormat=Qn,e.prototype=to,e}),define("moment",["moment/moment"],function(e){return e}),function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define("moment/locale/de",["../moment"],n):n(e.moment)}(this,function(e){"use strict";function n(e,n,t,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return n?r[t][0]:r[t][1]}var t=e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}),function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define("moment/locale/es",["../moment"],n):n(e.moment)}(this,function(e){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),t="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?t[e.month()]:n[e.month()]:n},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return i}),function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define("moment/locale/fr",["../moment"],n):n(e.moment)}(this,function(e){"use strict";var n=e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,n){switch(n){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return n}),function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define("moment/locale/id",["../moment"],n):n(e.moment)}(this,function(e){"use strict";var n=e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,n){return 12===e&&(e=0),"pagi"===n?e:"siang"===n?e>=11?e:e+12:"sore"===n||"malam"===n?e+12:void 0},meridiem:function(e,n,t){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}});return n}),function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define("moment/locale/it",["../moment"],n):n(e.moment)}(this,function(e){"use strict";var n=e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return n}),function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define("moment/locale/ja",["../moment"],n):n(e.moment)}(this,function(e){"use strict";var n=e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日 HH:mm dddd"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,n,t){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,n){switch(n){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});return n}),function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define("moment/locale/nl",["../moment"],n):n(e.moment)}(this,function(e){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),t="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,o=e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?t[e.month()]:n[e.month()]:n},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return o}),function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define("moment/locale/pt",["../moment"],n):n(e.moment)}(this,function(e){"use strict";var n=e.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return n}),function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define("moment/locale/ru",["../moment"],n):n(e.moment)}(this,function(e){"use strict";function n(e,n){var t=e.split("_");return n%10===1&&n%100!==11?t[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?t[1]:t[2]}function t(e,t,i){var r={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"};return"m"===i?t?"минута":"минуту":e+" "+n(r[i],+e)}var i=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],r=e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,n,t){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,n){switch(n){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:7}});return r}),function(e,n){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?n(require("../moment")):"function"==typeof define&&define.amd?define("moment/locale/th",["../moment"],n):n(e.moment)}(this,function(e){"use strict";var n=e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,n,t){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});return n}),function(e,n){define("moment_with_locales",["moment","moment/locale/de","moment/locale/es","moment/locale/fr","moment/locale/id","moment/locale/it","moment/locale/ja","moment/locale/nl","moment/locale/pt","moment/locale/ru","moment/locale/th"],function(e){return e})}(this),function(e,n){if("function"==typeof define&&define.amd)define("strophe",[],n);else{var t=n();e.Strophe=t.Strophe,e.$build=t.$build,e.$iq=t.$iq,e.$msg=t.$msg,e.$pres=t.$pres,e.SHA1=t.SHA1,e.MD5=t.MD5,e.b64_hmac_sha1=t.b64_hmac_sha1,e.b64_sha1=t.b64_sha1,e.str_hmac_sha1=t.str_hmac_sha1,e.str_sha1=t.str_sha1}}(this,function(){var e,n,t;return function(i){function r(e,n){return w.call(e,n)}function o(e,n){var t,i,r,o,s,a,l,u,c,h,d,f,p=n&&n.split("/"),m=y.map,g=m&&m["*"]||{};if(e){for(e=e.split("/"),s=e.length-1,y.nodeIdCompat&&S.test(e[s])&&(e[s]=e[s].replace(S,"")),"."===e[0].charAt(0)&&p&&(f=p.slice(0,p.length-1),e=f.concat(e)),c=0;c<e.length;c++)if(d=e[c],"."===d)e.splice(c,1),c-=1;else if(".."===d){if(0===c||1===c&&".."===e[2]||".."===e[c-1])continue;c>0&&(e.splice(c-1,2),c-=2)}e=e.join("/")}if((p||g)&&m){for(t=e.split("/"),c=t.length;c>0;c-=1){if(i=t.slice(0,c).join("/"),p)for(h=p.length;h>0;h-=1)if(r=m[p.slice(0,h).join("/")],r&&(r=r[i])){o=r,a=c;break}if(o)break;!l&&g&&g[i]&&(l=g[i],u=c)}!o&&l&&(o=l,a=u),o&&(t.splice(0,a,o),e=t.join("/"))}return e}function s(e,n){return function(){var t=x.call(arguments,0);return"string"!=typeof t[0]&&1===t.length&&t.push(null),p.apply(i,t.concat([e,n]))}}function a(e){return function(n){return o(n,e)}}function l(e){return function(n){_[e]=n}}function u(e){if(r(v,e)){var n=v[e];delete v[e],b[e]=!0,f.apply(i,n)}if(!r(_,e)&&!r(b,e))throw new Error("No "+e);return _[e]}function c(e){var n,t=e?e.indexOf("!"):-1;return t>-1&&(n=e.substring(0,t),e=e.substring(t+1,e.length)),[n,e]}function h(e){return e?c(e):[]}function d(e){return function(){return y&&y.config&&y.config[e]||{}}}var f,p,m,g,_={},v={},y={},b={},w=Object.prototype.hasOwnProperty,x=[].slice,S=/\.js$/;m=function(e,n){var t,i=c(e),r=i[0],s=n[1];return e=i[1],r&&(r=o(r,s),t=u(r)),r?e=t&&t.normalize?t.normalize(e,a(s)):o(e,s):(e=o(e,s),i=c(e),r=i[0],e=i[1],r&&(t=u(r))),{f:r?r+"!"+e:e,n:e,pr:r,p:t}},g={require:function(e){return s(e)},exports:function(e){var n=_[e];return"undefined"!=typeof n?n:_[e]={}},module:function(e){return{id:e,uri:"",exports:_[e],config:d(e)}}},f=function(e,n,t,o){var a,c,d,f,p,y,w,x=[],S=typeof t;if(o=o||e,y=h(o),"undefined"===S||"function"===S){for(n=!n.length&&t.length?["require","exports","module"]:n,p=0;p<n.length;p+=1)if(f=m(n[p],y),c=f.f,"require"===c)x[p]=g.require(e);else if("exports"===c)x[p]=g.exports(e),w=!0;else if("module"===c)a=x[p]=g.module(e);else if(r(_,c)||r(v,c)||r(b,c))x[p]=u(c);else{if(!f.p)throw new Error(e+" missing "+c);f.p.load(f.n,s(o,!0),l(c),{}),x[p]=_[c]}d=t?t.apply(_[e],x):void 0,e&&(a&&a.exports!==i&&a.exports!==_[e]?_[e]=a.exports:d===i&&w||(_[e]=d))}else e&&(_[e]=t)},e=n=p=function(e,n,t,r,o){if("string"==typeof e)return g[e]?g[e](n):u(m(e,h(n)).f);if(!e.splice){if(y=e,y.deps&&p(y.deps,y.callback),!n)return;n.splice?(e=n,n=t,t=null):e=i}return n=n||function(){},"function"==typeof t&&(t=r,r=o),r?f(i,e,n,t):setTimeout(function(){f(i,e,n,t)},4),p},p.config=function(e){return p(e)},e._defined=_,t=function(e,n,t){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");n.splice||(t=n,n=[]),r(_,e)||r(v,e)||(v[e]=[e,n,t])},t.amd={jQuery:!0}}(),t("node_modules/almond/almond.js",function(){}),function(e,n){return"function"==typeof t&&t.amd?void t("strophe-polyfill",[],function(){return n(e)}):n(e)}(this,function(e){Function.prototype.bind||(Function.prototype.bind=function(e){var n=this,t=Array.prototype.slice,i=Array.prototype.concat,r=t.call(arguments,1);return function(){return n.apply(e?e:this,i.call(r,t.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 n=this.length,t=Number(arguments[1])||0;for(t=t<0?Math.ceil(t):Math.floor(t),t<0&&(t+=n);t<n;t++)if(t in this&&this[t]===e)return t;return-1}),Array.prototype.forEach||(Array.prototype.forEach=function(e,n){var t,i;if(null===this)throw new TypeError(" this is null or not defined");var r=Object(this),o=r.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(t=n),i=0;i<o;){var s;i in r&&(s=r[i],e.call(t,s,i,r)),i++}});var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.btoa||(e.btoa=function(e){var t,i,r,o,s,a,l,u="",c=0;do t=e.charCodeAt(c++),i=e.charCodeAt(c++),r=e.charCodeAt(c++),o=t>>2,s=(3&t)<<4|i>>4,a=(15&i)<<2|r>>6,l=63&r,isNaN(i)?(s=(3&t)<<4,a=l=64):isNaN(r)&&(l=64),u=u+n.charAt(o)+n.charAt(s)+n.charAt(a)+n.charAt(l);while(c<e.length);return u}),e.atob||(e.atob=function(e){var t,i,r,o,s,a,l,u="",c=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do o=n.indexOf(e.charAt(c++)),s=n.indexOf(e.charAt(c++)),a=n.indexOf(e.charAt(c++)),l=n.indexOf(e.charAt(c++)),t=o<<2|s>>4,i=(15&s)<<4|a>>2,r=(3&a)<<6|l,u+=String.fromCharCode(t),64!==a&&(u+=String.fromCharCode(i)),64!==l&&(u+=String.fromCharCode(r));while(c<e.length);return u})}),function(e,n){"function"==typeof t&&t.amd?t("strophe-sha1",[],function(){return n()}):e.SHA1=n()}(this,function(){function e(e,i){e[i>>5]|=128<<24-i%32,e[(i+64>>9<<4)+15]=i;var s,a,l,u,c,h,d,f,p=new Array(80),m=1732584193,g=-271733879,_=-1732584194,v=271733878,y=-1009589776;for(s=0;s<e.length;s+=16){for(u=m,c=g,h=_,d=v,f=y,a=0;a<80;a++)a<16?p[a]=e[s+a]:p[a]=o(p[a-3]^p[a-8]^p[a-14]^p[a-16],1),l=r(r(o(m,5),n(a,g,_,v)),r(r(y,p[a]),t(a))),y=v,v=_,_=o(g,30),g=m,m=l;m=r(m,u),g=r(g,c),_=r(_,h),v=r(v,d),y=r(y,f)}return[m,g,_,v,y]}function n(e,n,t,i){return e<20?n&t|~n&i:e<40?n^t^i:e<60?n&t|n&i|t&i:n^t^i}function t(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function i(n,t){var i=s(n);i.length>16&&(i=e(i,8*n.length));for(var r=new Array(16),o=new Array(16),a=0;a<16;a++)r[a]=909522486^i[a],o[a]=1549556828^i[a];var l=e(r.concat(s(t)),512+8*t.length);return e(o.concat(l),672)}function r(e,n){var t=(65535&e)+(65535&n),i=(e>>16)+(n>>16)+(t>>16);return i<<16|65535&t}function o(e,n){return e<<n|e>>>32-n}function s(e){for(var n=[],t=255,i=0;i<8*e.length;i+=8)n[i>>5]|=(e.charCodeAt(i/8)&t)<<24-i%32;return n}function a(e){for(var n="",t=255,i=0;i<32*e.length;i+=8)n+=String.fromCharCode(e[i>>5]>>>24-i%32&t);return n}function l(e){for(var n,t,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="",o=0;o<4*e.length;o+=3)for(n=(e[o>>2]>>8*(3-o%4)&255)<<16|(e[o+1>>2]>>8*(3-(o+1)%4)&255)<<8|e[o+2>>2]>>8*(3-(o+2)%4)&255,t=0;t<4;t++)r+=8*o+6*t>32*e.length?"=":i.charAt(n>>6*(3-t)&63);return r}return{b64_hmac_sha1:function(e,n){return l(i(e,n))},b64_sha1:function(n){return l(e(s(n),8*n.length))},binb2str:a,core_hmac_sha1:i,str_hmac_sha1:function(e,n){return a(i(e,n))},str_sha1:function(n){return a(e(s(n),8*n.length))}}}),function(e,n){"function"==typeof t&&t.amd?t("strophe-md5",[],function(){return n()}):e.MD5=n()}(this,function(){var e=function(e,n){var t=(65535&e)+(65535&n),i=(e>>16)+(n>>16)+(t>>16);return i<<16|65535&t},n=function(e,n){return e<<n|e>>>32-n},t=function(e){for(var n=[],t=0;t<8*e.length;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n},i=function(e){for(var n="",t=0;t<32*e.length;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n},r=function(e){for(var n="0123456789abcdef",t="",i=0;i<4*e.length;i++)t+=n.charAt(e[i>>2]>>i%4*8+4&15)+n.charAt(e[i>>2]>>i%4*8&15);return t},o=function(t,i,r,o,s,a){return e(n(e(e(i,t),e(o,a)),s),r)},s=function(e,n,t,i,r,s,a){return o(n&t|~n&i,e,n,r,s,a)},a=function(e,n,t,i,r,s,a){return o(n&i|t&~i,e,n,r,s,a)},l=function(e,n,t,i,r,s,a){return o(n^t^i,e,n,r,s,a)},u=function(e,n,t,i,r,s,a){return o(t^(n|~i),e,n,r,s,a)},c=function(n,t){n[t>>5]|=128<<t%32,n[(t+64>>>9<<4)+14]=t;for(var i,r,o,c,h=1732584193,d=-271733879,f=-1732584194,p=271733878,m=0;m<n.length;m+=16)i=h,r=d,o=f,c=p,h=s(h,d,f,p,n[m+0],7,-680876936),p=s(p,h,d,f,n[m+1],12,-389564586),f=s(f,p,h,d,n[m+2],17,606105819),d=s(d,f,p,h,n[m+3],22,-1044525330),h=s(h,d,f,p,n[m+4],7,-176418897),p=s(p,h,d,f,n[m+5],12,1200080426),f=s(f,p,h,d,n[m+6],17,-1473231341),d=s(d,f,p,h,n[m+7],22,-45705983),h=s(h,d,f,p,n[m+8],7,1770035416),p=s(p,h,d,f,n[m+9],12,-1958414417),f=s(f,p,h,d,n[m+10],17,-42063),d=s(d,f,p,h,n[m+11],22,-1990404162),h=s(h,d,f,p,n[m+12],7,1804603682),p=s(p,h,d,f,n[m+13],12,-40341101),f=s(f,p,h,d,n[m+14],17,-1502002290),d=s(d,f,p,h,n[m+15],22,1236535329),h=a(h,d,f,p,n[m+1],5,-165796510),p=a(p,h,d,f,n[m+6],9,-1069501632),f=a(f,p,h,d,n[m+11],14,643717713),d=a(d,f,p,h,n[m+0],20,-373897302),h=a(h,d,f,p,n[m+5],5,-701558691),p=a(p,h,d,f,n[m+10],9,38016083),f=a(f,p,h,d,n[m+15],14,-660478335),d=a(d,f,p,h,n[m+4],20,-405537848),h=a(h,d,f,p,n[m+9],5,568446438),p=a(p,h,d,f,n[m+14],9,-1019803690),f=a(f,p,h,d,n[m+3],14,-187363961),d=a(d,f,p,h,n[m+8],20,1163531501),h=a(h,d,f,p,n[m+13],5,-1444681467),p=a(p,h,d,f,n[m+2],9,-51403784),f=a(f,p,h,d,n[m+7],14,1735328473),d=a(d,f,p,h,n[m+12],20,-1926607734),h=l(h,d,f,p,n[m+5],4,-378558),p=l(p,h,d,f,n[m+8],11,-2022574463),f=l(f,p,h,d,n[m+11],16,1839030562),d=l(d,f,p,h,n[m+14],23,-35309556),h=l(h,d,f,p,n[m+1],4,-1530992060),p=l(p,h,d,f,n[m+4],11,1272893353),f=l(f,p,h,d,n[m+7],16,-155497632),d=l(d,f,p,h,n[m+10],23,-1094730640),h=l(h,d,f,p,n[m+13],4,681279174),p=l(p,h,d,f,n[m+0],11,-358537222),f=l(f,p,h,d,n[m+3],16,-722521979),d=l(d,f,p,h,n[m+6],23,76029189),h=l(h,d,f,p,n[m+9],4,-640364487),p=l(p,h,d,f,n[m+12],11,-421815835),f=l(f,p,h,d,n[m+15],16,530742520),d=l(d,f,p,h,n[m+2],23,-995338651),h=u(h,d,f,p,n[m+0],6,-198630844),p=u(p,h,d,f,n[m+7],10,1126891415),f=u(f,p,h,d,n[m+14],15,-1416354905),d=u(d,f,p,h,n[m+5],21,-57434055),h=u(h,d,f,p,n[m+12],6,1700485571),p=u(p,h,d,f,n[m+3],10,-1894986606),f=u(f,p,h,d,n[m+10],15,-1051523),d=u(d,f,p,h,n[m+1],21,-2054922799),h=u(h,d,f,p,n[m+8],6,1873313359),p=u(p,h,d,f,n[m+15],10,-30611744),f=u(f,p,h,d,n[m+6],15,-1560198380),d=u(d,f,p,h,n[m+13],21,1309151649),h=u(h,d,f,p,n[m+4],6,-145523070),p=u(p,h,d,f,n[m+11],10,-1120210379),f=u(f,p,h,d,n[m+2],15,718787259),d=u(d,f,p,h,n[m+9],21,-343485551),h=e(h,i),d=e(d,r),f=e(f,o),p=e(p,c);return[h,d,f,p]},h={hexdigest:function(e){return r(c(t(e),8*e.length))},hash:function(e){return i(c(t(e),8*e.length))}};return h}),function(e,n){"function"==typeof t&&t.amd?t("strophe-utils",[],function(){return n()}):e.stropheUtils=n()}(this,function(){var e={utf16to8:function(e){var n,t,i="",r=e.length;for(n=0;n<r;n++)t=e.charCodeAt(n),t>=0&&t<=127?i+=e.charAt(n):t>2047?(i+=String.fromCharCode(224|t>>12&15),i+=String.fromCharCode(128|t>>6&63),i+=String.fromCharCode(128|t>>0&63)):(i+=String.fromCharCode(192|t>>6&31),i+=String.fromCharCode(128|t>>0&63));return i},addCookies:function(e){var n,t,i,r,o,s,a;for(n in e||{})o="",s="",a="",t=e[n],i="object"==typeof t,r=escape(unescape(i?t.value:t)),i&&(o=t.expires?";expires="+t.expires:"",s=t.domain?";domain="+t.domain:"",a=t.path?";path="+t.path:""),document.cookie=n+"="+r+o+s+a}};return e}),function(e,n){if("function"==typeof t&&t.amd)t("strophe-core",["strophe-sha1","strophe-md5","strophe-utils"],function(){return n.apply(this,arguments)});else{var i=n(e.SHA1,e.MD5,e.stropheUtils);e.Strophe=i.Strophe,e.$build=i.$build,e.$iq=i.$iq,e.$msg=i.$msg,e.$pres=i.$pres,e.SHA1=i.SHA1,e.MD5=i.MD5,e.b64_hmac_sha1=i.SHA1.b64_hmac_sha1,e.b64_sha1=i.SHA1.b64_sha1,e.str_hmac_sha1=i.SHA1.str_hmac_sha1,e.str_sha1=i.SHA1.str_sha1}}(this,function(e,n,t){function i(e,n){return new a.Builder(e,n)}function r(e){return new a.Builder("message",e)}function o(e){return new a.Builder("iq",e)}function s(e){return new a.Builder("presence",e)}var a;return a={VERSION:"1.2.14",NS:{HTTPBIND:"http://jabber.org/protocol/httpbind",BOSH:"urn:xmpp:xbosh",CLIENT:"jabber:client",AUTH:"jabber:iq:auth",ROSTER:"jabber:iq:roster",PROFILE:"jabber:iq:profile",DISCO_INFO:"http://jabber.org/protocol/disco#info",DISCO_ITEMS:"http://jabber.org/protocol/disco#items",MUC:"http://jabber.org/protocol/muc",SASL:"urn:ietf:params:xml:ns:xmpp-sasl",STREAM:"http://etherx.jabber.org/streams",FRAMING:"urn:ietf:params:xml:ns:xmpp-framing",BIND:"urn:ietf:params:xml:ns:xmpp-bind",SESSION:"urn:ietf:params:xml:ns:xmpp-session",VERSION:"jabber:iq:version",STANZAS:"urn:ietf:params:xml:ns:xmpp-stanzas",XHTML_IM:"http://jabber.org/protocol/xhtml-im",XHTML:"http://www.w3.org/1999/xhtml"},XHTML:{tags:["a","blockquote","br","cite","em","img","li","ol","p","span","strong","ul","body"],attributes:{a:["href"],blockquote:["style"],br:[],cite:["style"],em:[],img:["src","alt","style","height","width"],
li:["style"],ol:["style"],p:["style"],span:["style"],strong:[],ul:["style"],body:[]},css:["background-color","color","font-family","font-size","font-style","font-weight","margin-left","margin-right","text-align","text-decoration"],validTag:function(e){for(var n=0;n<a.XHTML.tags.length;n++)if(e===a.XHTML.tags[n])return!0;return!1},validAttribute:function(e,n){if("undefined"!=typeof a.XHTML.attributes[e]&&a.XHTML.attributes[e].length>0)for(var t=0;t<a.XHTML.attributes[e].length;t++)if(n===a.XHTML.attributes[e][t])return!0;return!1},validCSS:function(e){for(var n=0;n<a.XHTML.css.length;n++)if(e===a.XHTML.css[n])return!0;return!1}},Status:{ERROR:0,CONNECTING:1,CONNFAIL:2,AUTHENTICATING:3,AUTHFAIL:4,CONNECTED:5,DISCONNECTED:6,DISCONNECTING:7,ATTACHED:8,REDIRECT:9,CONNTIMEOUT:10},LogLevel:{DEBUG:0,INFO:1,WARN:2,ERROR:3,FATAL:4},ElementType:{NORMAL:1,TEXT:3,CDATA:4,FRAGMENT:11},TIMEOUT:1.1,SECONDARY_TIMEOUT:.1,addNamespace:function(e,n){a.NS[e]=n},forEachChild:function(e,n,t){var i,r;for(i=0;i<e.childNodes.length;i++)r=e.childNodes[i],r.nodeType!==a.ElementType.NORMAL||n&&!this.isTagEqual(r,n)||t(r)},isTagEqual:function(e,n){return e.tagName===n},_xmlGenerator:null,_makeGenerator:function(){var e;return void 0===document.implementation.createDocument||document.implementation.createDocument&&document.documentMode&&document.documentMode<10?(e=this._getIEXmlDom(),e.appendChild(e.createElement("strophe"))):e=document.implementation.createDocument("jabber:client","strophe",null),e},xmlGenerator:function(){return a._xmlGenerator||(a._xmlGenerator=a._makeGenerator()),a._xmlGenerator},_getIEXmlDom:function(){for(var e=null,n=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.5.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"],t=0;t<n.length&&null===e;t++)try{e=new ActiveXObject(n[t])}catch(n){e=null}return e},xmlElement:function(e){if(!e)return null;var n,t,i,r=a.xmlGenerator().createElement(e);for(n=1;n<arguments.length;n++){var o=arguments[n];if(o)if("string"==typeof o||"number"==typeof o)r.appendChild(a.xmlTextNode(o));else if("object"==typeof o&&"function"==typeof o.sort)for(t=0;t<o.length;t++){var s=o[t];"object"==typeof s&&"function"==typeof s.sort&&void 0!==s[1]&&null!==s[1]&&r.setAttribute(s[0],s[1])}else if("object"==typeof o)for(i in o)o.hasOwnProperty(i)&&void 0!==o[i]&&null!==o[i]&&r.setAttribute(i,o[i])}return r},xmlescape:function(e){return e=e.replace(/\&/g,"&amp;"),e=e.replace(/</g,"&lt;"),e=e.replace(/>/g,"&gt;"),e=e.replace(/'/g,"&apos;"),e=e.replace(/"/g,"&quot;")},xmlunescape:function(e){return e=e.replace(/\&amp;/g,"&"),e=e.replace(/&lt;/g,"<"),e=e.replace(/&gt;/g,">"),e=e.replace(/&apos;/g,"'"),e=e.replace(/&quot;/g,'"')},xmlTextNode:function(e){return a.xmlGenerator().createTextNode(e)},xmlHtmlNode:function(e){var n;if(DOMParser){var t=new DOMParser;n=t.parseFromString(e,"text/xml")}else n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(e);return n},getText:function(e){if(!e)return null;var n="";0===e.childNodes.length&&e.nodeType===a.ElementType.TEXT&&(n+=e.nodeValue);for(var t=0;t<e.childNodes.length;t++)e.childNodes[t].nodeType===a.ElementType.TEXT&&(n+=e.childNodes[t].nodeValue);return a.xmlescape(n)},copyElement:function(e){var n,t;if(e.nodeType===a.ElementType.NORMAL){for(t=a.xmlElement(e.tagName),n=0;n<e.attributes.length;n++)t.setAttribute(e.attributes[n].nodeName,e.attributes[n].value);for(n=0;n<e.childNodes.length;n++)t.appendChild(a.copyElement(e.childNodes[n]))}else e.nodeType===a.ElementType.TEXT&&(t=a.xmlGenerator().createTextNode(e.nodeValue));return t},createHtml:function(e){var n,t,i,r,o,s,l,u,c,h,d;if(e.nodeType===a.ElementType.NORMAL)if(r=e.nodeName.toLowerCase(),a.XHTML.validTag(r))try{for(t=a.xmlElement(r),n=0;n<a.XHTML.attributes[r].length;n++)if(o=a.XHTML.attributes[r][n],s=e.getAttribute(o),"undefined"!=typeof s&&null!==s&&""!==s&&s!==!1&&0!==s)if("style"===o&&"object"==typeof s&&"undefined"!=typeof s.cssText&&(s=s.cssText),"style"===o){for(l=[],u=s.split(";"),i=0;i<u.length;i++)c=u[i].split(":"),h=c[0].replace(/^\s*/,"").replace(/\s*$/,"").toLowerCase(),a.XHTML.validCSS(h)&&(d=c[1].replace(/^\s*/,"").replace(/\s*$/,""),l.push(h+": "+d));l.length>0&&(s=l.join("; "),t.setAttribute(o,s))}else t.setAttribute(o,s);for(n=0;n<e.childNodes.length;n++)t.appendChild(a.createHtml(e.childNodes[n]))}catch(e){t=a.xmlTextNode("")}else for(t=a.xmlGenerator().createDocumentFragment(),n=0;n<e.childNodes.length;n++)t.appendChild(a.createHtml(e.childNodes[n]));else if(e.nodeType===a.ElementType.FRAGMENT)for(t=a.xmlGenerator().createDocumentFragment(),n=0;n<e.childNodes.length;n++)t.appendChild(a.createHtml(e.childNodes[n]));else e.nodeType===a.ElementType.TEXT&&(t=a.xmlTextNode(e.nodeValue));return t},escapeNode:function(e){return"string"!=typeof e?e:e.replace(/^\s+|\s+$/g,"").replace(/\\/g,"\\5c").replace(/ /g,"\\20").replace(/\"/g,"\\22").replace(/\&/g,"\\26").replace(/\'/g,"\\27").replace(/\//g,"\\2f").replace(/:/g,"\\3a").replace(/</g,"\\3c").replace(/>/g,"\\3e").replace(/@/g,"\\40")},unescapeNode:function(e){return"string"!=typeof e?e:e.replace(/\\20/g," ").replace(/\\22/g,'"').replace(/\\26/g,"&").replace(/\\27/g,"'").replace(/\\2f/g,"/").replace(/\\3a/g,":").replace(/\\3c/g,"<").replace(/\\3e/g,">").replace(/\\40/g,"@").replace(/\\5c/g,"\\")},getNodeFromJid:function(e){return e.indexOf("@")<0?null:e.split("@")[0]},getDomainFromJid:function(e){var n=a.getBareJidFromJid(e);if(n.indexOf("@")<0)return n;var t=n.split("@");return t.splice(0,1),t.join("@")},getResourceFromJid:function(e){var n=e.split("/");return n.length<2?null:(n.splice(0,1),n.join("/"))},getBareJidFromJid:function(e){return e?e.split("/")[0]:null},_handleError:function(e){"undefined"!=typeof e.stack&&a.fatal(e.stack),e.sourceURL?a.fatal("error: "+this.handler+" "+e.sourceURL+":"+e.line+" - "+e.name+": "+e.message):e.fileName?a.fatal("error: "+this.handler+" "+e.fileName+":"+e.lineNumber+" - "+e.name+": "+e.message):a.fatal("error: "+e.message)},log:function(e,n){},debug:function(e){this.log(this.LogLevel.DEBUG,e)},info:function(e){this.log(this.LogLevel.INFO,e)},warn:function(e){this.log(this.LogLevel.WARN,e)},error:function(e){this.log(this.LogLevel.ERROR,e)},fatal:function(e){this.log(this.LogLevel.FATAL,e)},serialize:function(e){var n;if(!e)return null;"function"==typeof e.tree&&(e=e.tree());var t,i,r=e.nodeName;for(e.getAttribute("_realname")&&(r=e.getAttribute("_realname")),n="<"+r,t=0;t<e.attributes.length;t++)"_realname"!==e.attributes[t].nodeName&&(n+=" "+e.attributes[t].nodeName+"='"+a.xmlescape(e.attributes[t].value)+"'");if(e.childNodes.length>0){for(n+=">",t=0;t<e.childNodes.length;t++)switch(i=e.childNodes[t],i.nodeType){case a.ElementType.NORMAL:n+=a.serialize(i);break;case a.ElementType.TEXT:n+=a.xmlescape(i.nodeValue);break;case a.ElementType.CDATA:n+="<![CDATA["+i.nodeValue+"]]>"}n+="</"+r+">"}else n+="/>";return n},_requestId:0,_connectionPlugins:{},addConnectionPlugin:function(e,n){a._connectionPlugins[e]=n}},a.Builder=function(e,n){"presence"!==e&&"message"!==e&&"iq"!==e||(n&&!n.xmlns?n.xmlns=a.NS.CLIENT:n||(n={xmlns:a.NS.CLIENT})),this.nodeTree=a.xmlElement(e,n),this.node=this.nodeTree},a.Builder.prototype={tree:function(){return this.nodeTree},toString:function(){return a.serialize(this.nodeTree)},up:function(){return this.node=this.node.parentNode,this},root:function(){return this.node=this.nodeTree,this},attrs:function(e){for(var n in e)e.hasOwnProperty(n)&&(void 0===e[n]?this.node.removeAttribute(n):this.node.setAttribute(n,e[n]));return this},c:function(e,n,t){var i=a.xmlElement(e,n,t);return this.node.appendChild(i),"string"!=typeof t&&"number"!=typeof t&&(this.node=i),this},cnode:function(e){var n,t=a.xmlGenerator();try{n=void 0!==t.importNode}catch(e){n=!1}var i=n?t.importNode(e,!0):a.copyElement(e);return this.node.appendChild(i),this.node=i,this},t:function(e){var n=a.xmlTextNode(e);return this.node.appendChild(n),this},h:function(e){var n=document.createElement("body");n.innerHTML=e;for(var t=a.createHtml(n);t.childNodes.length>0;)this.node.appendChild(t.childNodes[0]);return this}},a.Handler=function(e,n,t,i,r,o,s){this.handler=e,this.ns=n,this.name=t,this.type=i,this.id=r,this.options=s||{matchBareFromJid:!1,ignoreNamespaceFragment:!1},this.options.matchBare&&(a.warn('The "matchBare" option is deprecated, use "matchBareFromJid" instead.'),this.options.matchBareFromJid=this.options.matchBare,delete this.options.matchBare),this.options.matchBareFromJid?this.from=o?a.getBareJidFromJid(o):null:this.from=o,this.user=!0},a.Handler.prototype={getNamespace:function(e){var n=e.getAttribute("xmlns");return n&&this.options.ignoreNamespaceFragment&&(n=n.split("#")[0]),n},namespaceMatch:function(e){var n=!1;if(!this.ns)return!0;var t=this;return a.forEachChild(e,null,function(e){t.getNamespace(e)===t.ns&&(n=!0)}),n=n||this.getNamespace(e)===this.ns},isMatch:function(e){var n=e.getAttribute("from");this.options.matchBareFromJid&&(n=a.getBareJidFromJid(n));var t=e.getAttribute("type");return!(!this.namespaceMatch(e)||this.name&&!a.isTagEqual(e,this.name)||this.type&&(Array.isArray(this.type)?this.type.indexOf(t)===-1:t!==this.type)||this.id&&e.getAttribute("id")!==this.id||this.from&&n!==this.from)},run:function(e){var n=null;try{n=this.handler(e)}catch(e){throw a._handleError(e),e}return n},toString:function(){return"{Handler: "+this.handler+"("+this.name+","+this.id+","+this.ns+")}"}},a.TimedHandler=function(e,n){this.period=e,this.handler=n,this.lastCalled=(new Date).getTime(),this.user=!0},a.TimedHandler.prototype={run:function(){return this.lastCalled=(new Date).getTime(),this.handler()},reset:function(){this.lastCalled=(new Date).getTime()},toString:function(){return"{TimedHandler: "+this.handler+"("+this.period+")}"}},a.Connection=function(e,n){this.service=e,this.options=n||{};var i=this.options.protocol||"";0===e.indexOf("ws:")||0===e.indexOf("wss:")||0===i.indexOf("ws")?this._proto=new a.Websocket(this):this._proto=new a.Bosh(this),this.jid="",this.domain=null,this.features=null,this._sasl_data={},this.do_session=!1,this.do_bind=!1,this.timedHandlers=[],this.handlers=[],this.removeTimeds=[],this.removeHandlers=[],this.addTimeds=[],this.addHandlers=[],this.protocolErrorHandlers={HTTP:{},websocket:{}},this._idleTimeout=null,this._disconnectTimeout=null,this.authenticated=!1,this.connected=!1,this.disconnecting=!1,this.do_authentication=!0,this.paused=!1,this.restored=!1,this._data=[],this._uniqueId=0,this._sasl_success_handler=null,this._sasl_failure_handler=null,this._sasl_challenge_handler=null,this.maxRetries=5,this._idleTimeout=setTimeout(function(){this._onIdle()}.bind(this),100),t.addCookies(this.options.cookies),this.registerSASLMechanisms(this.options.mechanisms);for(var r in a._connectionPlugins)if(a._connectionPlugins.hasOwnProperty(r)){var o=a._connectionPlugins[r],s=function(){};s.prototype=o,this[r]=new s,this[r].init(this)}},a.Connection.prototype={reset:function(){this._proto._reset(),this.do_session=!1,this.do_bind=!1,this.timedHandlers=[],this.handlers=[],this.removeTimeds=[],this.removeHandlers=[],this.addTimeds=[],this.addHandlers=[],this.authenticated=!1,this.connected=!1,this.disconnecting=!1,this.restored=!1,this._data=[],this._requests=[],this._uniqueId=0},pause:function(){this.paused=!0},resume:function(){this.paused=!1},getUniqueId:function(e){var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=16*Math.random()|0,t="x"===e?n:3&n|8;return t.toString(16)});return"string"==typeof e||"number"==typeof e?n+":"+e:n+""},addProtocolErrorHandler:function(e,n,t){this.protocolErrorHandlers[e][n]=t},connect:function(e,n,t,i,r,o,s){this.jid=e,this.authzid=a.getBareJidFromJid(this.jid),this.authcid=s||a.getNodeFromJid(this.jid),this.pass=n,this.servtype="xmpp",this.connect_callback=t,this.disconnecting=!1,this.connected=!1,this.authenticated=!1,this.restored=!1,this.domain=a.getDomainFromJid(this.jid),this._changeConnectStatus(a.Status.CONNECTING,null),this._proto._connect(i,r,o)},attach:function(e,n,t,i,r,o,s){if(!(this._proto instanceof a.Bosh))throw{name:"StropheSessionError",message:'The "attach" method can only be used with a BOSH connection.'};this._proto._attach(e,n,t,i,r,o,s)},restore:function(e,n,t,i,r){if(!this._sessionCachingSupported())throw{name:"StropheSessionError",message:'The "restore" method can only be used with a BOSH connection.'};this._proto._restore(e,n,t,i,r)},_sessionCachingSupported:function(){if(this._proto instanceof a.Bosh){if(!JSON)return!1;try{sessionStorage.setItem("_strophe_","_strophe_"),sessionStorage.removeItem("_strophe_")}catch(e){return!1}return!0}return!1},xmlInput:function(e){},xmlOutput:function(e){},rawInput:function(e){},rawOutput:function(e){},nextValidRid:function(e){},send:function(e){if(null!==e){if("function"==typeof e.sort)for(var n=0;n<e.length;n++)this._queueData(e[n]);else"function"==typeof e.tree?this._queueData(e.tree()):this._queueData(e);this._proto._send()}},flush:function(){clearTimeout(this._idleTimeout),this._onIdle()},sendPresence:function(e,n,t,i){var r=null,o=this;"function"==typeof e.tree&&(e=e.tree());var s=e.getAttribute("id");if(s||(s=this.getUniqueId("sendPresence"),e.setAttribute("id",s)),"function"==typeof n||"function"==typeof t){var a=this.addHandler(function(e){r&&o.deleteTimedHandler(r);var i=e.getAttribute("type");"error"===i?t&&t(e):n&&n(e)},null,"presence",null,s);i&&(r=this.addTimedHandler(i,function(){return o.deleteHandler(a),t&&t(null),!1}))}return this.send(e),s},sendIQ:function(e,n,t,i){var r=null,o=this;"function"==typeof e.tree&&(e=e.tree());var s=e.getAttribute("id");if(s||(s=this.getUniqueId("sendIQ"),e.setAttribute("id",s)),"function"==typeof n||"function"==typeof t){var a=this.addHandler(function(e){r&&o.deleteTimedHandler(r);var i=e.getAttribute("type");if("result"===i)n&&n(e);else{if("error"!==i)throw{name:"StropheError",message:"Got bad IQ type of "+i};t&&t(e)}},null,"iq",["error","result"],s);i&&(r=this.addTimedHandler(i,function(){return o.deleteHandler(a),t&&t(null),!1}))}return this.send(e),s},_queueData:function(e){if(null===e||!e.tagName||!e.childNodes)throw{name:"StropheError",message:"Cannot queue non-DOMElement."};this._data.push(e)},_sendRestart:function(){this._data.push("restart"),this._proto._sendRestart(),this._idleTimeout=setTimeout(function(){this._onIdle()}.bind(this),100)},addTimedHandler:function(e,n){var t=new a.TimedHandler(e,n);return this.addTimeds.push(t),t},deleteTimedHandler:function(e){this.removeTimeds.push(e)},addHandler:function(e,n,t,i,r,o,s){var l=new a.Handler(e,n,t,i,r,o,s);return this.addHandlers.push(l),l},deleteHandler:function(e){this.removeHandlers.push(e);var n=this.addHandlers.indexOf(e);n>=0&&this.addHandlers.splice(n,1)},registerSASLMechanisms:function(e){this.mechanisms={},e=e||[a.SASLAnonymous,a.SASLExternal,a.SASLMD5,a.SASLOAuthBearer,a.SASLPlain,a.SASLSHA1],e.forEach(this.registerSASLMechanism.bind(this))},registerSASLMechanism:function(e){this.mechanisms[e.prototype.name]=e},disconnect:function(e){if(this._changeConnectStatus(a.Status.DISCONNECTING,e),a.info("Disconnect was called because: "+e),this.connected){var n=!1;this.disconnecting=!0,this.authenticated&&(n=s({xmlns:a.NS.CLIENT,type:"unavailable"})),this._disconnectTimeout=this._addSysTimedHandler(3e3,this._onDisconnectTimeout.bind(this)),this._proto._disconnect(n)}else a.info("Disconnect was called before Strophe connected to the server"),this._proto._abortAllRequests(),this._doDisconnect()},_changeConnectStatus:function(e,n){for(var t in a._connectionPlugins)if(a._connectionPlugins.hasOwnProperty(t)){var i=this[t];if(i.statusChanged)try{i.statusChanged(e,n)}catch(e){a.error(""+t+" plugin caused an exception changing status: "+e)}}if(this.connect_callback)try{this.connect_callback(e,n)}catch(e){a._handleError(e),a.error("User connection callback caused an exception: "+e)}},_doDisconnect:function(e){"number"==typeof this._idleTimeout&&clearTimeout(this._idleTimeout),null!==this._disconnectTimeout&&(this.deleteTimedHandler(this._disconnectTimeout),this._disconnectTimeout=null),a.info("_doDisconnect was called"),this._proto._doDisconnect(),this.authenticated=!1,this.disconnecting=!1,this.restored=!1,this.handlers=[],this.timedHandlers=[],this.removeTimeds=[],this.removeHandlers=[],this.addTimeds=[],this.addHandlers=[],this._changeConnectStatus(a.Status.DISCONNECTED,e),this.connected=!1},_dataRecv:function(e,n){a.info("_dataRecv called");var t=this._proto._reqToData(e);if(null!==t){this.xmlInput!==a.Connection.prototype.xmlInput&&(t.nodeName===this._proto.strip&&t.childNodes.length?this.xmlInput(t.childNodes[0]):this.xmlInput(t)),this.rawInput!==a.Connection.prototype.rawInput&&(n?this.rawInput(n):this.rawInput(a.serialize(t)));for(var i,r;this.removeHandlers.length>0;)r=this.removeHandlers.pop(),i=this.handlers.indexOf(r),i>=0&&this.handlers.splice(i,1);for(;this.addHandlers.length>0;)this.handlers.push(this.addHandlers.pop());if(this.disconnecting&&this._proto._emptyQueue())return void this._doDisconnect();var o,s,l=t.getAttribute("type");if(null!==l&&"terminate"===l){if(this.disconnecting)return;return o=t.getAttribute("condition"),s=t.getElementsByTagName("conflict"),null!==o?("remote-stream-error"===o&&s.length>0&&(o="conflict"),this._changeConnectStatus(a.Status.CONNFAIL,o)):this._changeConnectStatus(a.Status.CONNFAIL,"unknown"),void this._doDisconnect(o)}var u=this;a.forEachChild(t,null,function(e){var n,t;for(t=u.handlers,u.handlers=[],n=0;n<t.length;n++){var i=t[n];try{!i.isMatch(e)||!u.authenticated&&i.user?u.handlers.push(i):i.run(e)&&u.handlers.push(i)}catch(e){a.warn("Removing Strophe handlers due to uncaught exception: "+e.message)}}})}},mechanisms:{},_connect_cb:function(e,n,t){a.info("_connect_cb was called"),this.connected=!0;var i;try{i=this._proto._reqToData(e)}catch(e){if("badformat"!==e)throw e;this._changeConnectStatus(a.Status.CONNFAIL,"bad-format"),this._doDisconnect("bad-format")}if(i){this.xmlInput!==a.Connection.prototype.xmlInput&&(i.nodeName===this._proto.strip&&i.childNodes.length?this.xmlInput(i.childNodes[0]):this.xmlInput(i)),this.rawInput!==a.Connection.prototype.rawInput&&(t?this.rawInput(t):this.rawInput(a.serialize(i)));var r=this._proto._connect_cb(i);if(r!==a.Status.CONNFAIL){var o;if(o=i.getElementsByTagNameNS?i.getElementsByTagNameNS(a.NS.STREAM,"features").length>0:i.getElementsByTagName("stream:features").length>0||i.getElementsByTagName("features").length>0,!o)return void this._proto._no_auth_received(n);var s,l,u=[],c=i.getElementsByTagName("mechanism");if(c.length>0)for(s=0;s<c.length;s++)l=a.getText(c[s]),this.mechanisms[l]&&u.push(this.mechanisms[l]);return 0===u.length&&0===i.getElementsByTagName("auth").length?void this._proto._no_auth_received(n):void(this.do_authentication!==!1&&this.authenticate(u))}}},sortMechanismsByPriority:function(e){var n,t,i,r;for(n=0;n<e.length-1;++n){for(i=n,t=n+1;t<e.length;++t)e[t].prototype.priority>e[i].prototype.priority&&(i=t);i!==n&&(r=e[n],e[n]=e[i],e[i]=r)}return e},_attemptSASLAuth:function(e){e=this.sortMechanismsByPriority(e||[]);var n=0,t=!1;for(n=0;n<e.length;++n)if(e[n].prototype.test(this)){this._sasl_success_handler=this._addSysHandler(this._sasl_success_cb.bind(this),null,"success",null,null),this._sasl_failure_handler=this._addSysHandler(this._sasl_failure_cb.bind(this),null,"failure",null,null),this._sasl_challenge_handler=this._addSysHandler(this._sasl_challenge_cb.bind(this),null,"challenge",null,null),this._sasl_mechanism=new e[n],this._sasl_mechanism.onStart(this);var r=i("auth",{xmlns:a.NS.SASL,mechanism:this._sasl_mechanism.name});if(this._sasl_mechanism.isClientFirst){var o=this._sasl_mechanism.onChallenge(this,null);r.t(btoa(o))}this.send(r.tree()),t=!0;break}return t},_attemptLegacyAuth:function(){null===a.getNodeFromJid(this.jid)?(this._changeConnectStatus(a.Status.CONNFAIL,"x-strophe-bad-non-anon-jid"),this.disconnect("x-strophe-bad-non-anon-jid")):(this._changeConnectStatus(a.Status.AUTHENTICATING,null),this._addSysHandler(this._auth1_cb.bind(this),null,null,null,"_auth_1"),this.send(o({type:"get",to:this.domain,id:"_auth_1"}).c("query",{xmlns:a.NS.AUTH}).c("username",{}).t(a.getNodeFromJid(this.jid)).tree()))},authenticate:function(e){this._attemptSASLAuth(e)||this._attemptLegacyAuth()},_sasl_challenge_cb:function(e){var n=atob(a.getText(e)),t=this._sasl_mechanism.onChallenge(this,n),r=i("response",{xmlns:a.NS.SASL});return""!==t&&r.t(btoa(t)),this.send(r.tree()),!0},_auth1_cb:function(e){var n=o({type:"set",id:"_auth_2"}).c("query",{xmlns:a.NS.AUTH}).c("username",{}).t(a.getNodeFromJid(this.jid)).up().c("password").t(this.pass);return a.getResourceFromJid(this.jid)||(this.jid=a.getBareJidFromJid(this.jid)+"/strophe"),n.up().c("resource",{}).t(a.getResourceFromJid(this.jid)),this._addSysHandler(this._auth2_cb.bind(this),null,null,null,"_auth_2"),this.send(n.tree()),!1},_sasl_success_cb:function(e){if(this._sasl_data["server-signature"]){var n,t=atob(a.getText(e)),i=/([a-z]+)=([^,]+)(,|$)/,r=t.match(i);if("v"===r[1]&&(n=r[2]),n!==this._sasl_data["server-signature"])return this.deleteHandler(this._sasl_failure_handler),this._sasl_failure_handler=null,this._sasl_challenge_handler&&(this.deleteHandler(this._sasl_challenge_handler),this._sasl_challenge_handler=null),this._sasl_data={},this._sasl_failure_cb(null)}a.info("SASL authentication succeeded."),this._sasl_mechanism&&this._sasl_mechanism.onSuccess(),this.deleteHandler(this._sasl_failure_handler),this._sasl_failure_handler=null,this._sasl_challenge_handler&&(this.deleteHandler(this._sasl_challenge_handler),this._sasl_challenge_handler=null);var o=[],s=function(e,n){for(;e.length;)this.deleteHandler(e.pop());return this._sasl_auth1_cb.bind(this)(n),!1};return o.push(this._addSysHandler(function(e){s.bind(this)(o,e)}.bind(this),null,"stream:features",null,null)),o.push(this._addSysHandler(function(e){s.bind(this)(o,e)}.bind(this),a.NS.STREAM,"features",null,null)),this._sendRestart(),!1},_sasl_auth1_cb:function(e){this.features=e;var n,t;for(n=0;n<e.childNodes.length;n++)t=e.childNodes[n],"bind"===t.nodeName&&(this.do_bind=!0),"session"===t.nodeName&&(this.do_session=!0);if(!this.do_bind)return this._changeConnectStatus(a.Status.AUTHFAIL,null),!1;this._addSysHandler(this._sasl_bind_cb.bind(this),null,null,null,"_bind_auth_2");var i=a.getResourceFromJid(this.jid);return i?this.send(o({type:"set",id:"_bind_auth_2"}).c("bind",{xmlns:a.NS.BIND}).c("resource",{}).t(i).tree()):this.send(o({type:"set",id:"_bind_auth_2"}).c("bind",{xmlns:a.NS.BIND}).tree()),!1},_sasl_bind_cb:function(e){if("error"===e.getAttribute("type")){a.info("SASL binding failed.");var n,t=e.getElementsByTagName("conflict");return t.length>0&&(n="conflict"),this._changeConnectStatus(a.Status.AUTHFAIL,n),!1}var i,r=e.getElementsByTagName("bind");return r.length>0?(i=r[0].getElementsByTagName("jid"),void(i.length>0&&(this.jid=a.getText(i[0]),this.do_session?(this._addSysHandler(this._sasl_session_cb.bind(this),null,null,null,"_session_auth_2"),this.send(o({type:"set",id:"_session_auth_2"}).c("session",{xmlns:a.NS.SESSION}).tree())):(this.authenticated=!0,this._changeConnectStatus(a.Status.CONNECTED,null))))):(a.info("SASL binding failed."),this._changeConnectStatus(a.Status.AUTHFAIL,null),!1)},_sasl_session_cb:function(e){if("result"===e.getAttribute("type"))this.authenticated=!0,this._changeConnectStatus(a.Status.CONNECTED,null);else if("error"===e.getAttribute("type"))return a.info("Session creation failed."),this._changeConnectStatus(a.Status.AUTHFAIL,null),!1;return!1},_sasl_failure_cb:function(e){return this._sasl_success_handler&&(this.deleteHandler(this._sasl_success_handler),this._sasl_success_handler=null),this._sasl_challenge_handler&&(this.deleteHandler(this._sasl_challenge_handler),this._sasl_challenge_handler=null),this._sasl_mechanism&&this._sasl_mechanism.onFailure(),this._changeConnectStatus(a.Status.AUTHFAIL,null),!1},_auth2_cb:function(e){return"result"===e.getAttribute("type")?(this.authenticated=!0,this._changeConnectStatus(a.Status.CONNECTED,null)):"error"===e.getAttribute("type")&&(this._changeConnectStatus(a.Status.AUTHFAIL,null),this.disconnect("authentication failed")),!1},_addSysTimedHandler:function(e,n){var t=new a.TimedHandler(e,n);return t.user=!1,this.addTimeds.push(t),t},_addSysHandler:function(e,n,t,i,r){var o=new a.Handler(e,n,t,i,r);return o.user=!1,this.addHandlers.push(o),o},_onDisconnectTimeout:function(){return a.info("_onDisconnectTimeout was called"),this._changeConnectStatus(a.Status.CONNTIMEOUT,null),this._proto._onDisconnectTimeout(),this._doDisconnect(),!1},_onIdle:function(){for(var e,n,t,i;this.addTimeds.length>0;)this.timedHandlers.push(this.addTimeds.pop());for(;this.removeTimeds.length>0;)n=this.removeTimeds.pop(),e=this.timedHandlers.indexOf(n),e>=0&&this.timedHandlers.splice(e,1);var r=(new Date).getTime();for(i=[],e=0;e<this.timedHandlers.length;e++)n=this.timedHandlers[e],!this.authenticated&&n.user||(t=n.lastCalled+n.period,t-r<=0?n.run()&&i.push(n):i.push(n));this.timedHandlers=i,clearTimeout(this._idleTimeout),this._proto._onIdle(),this.connected&&(this._idleTimeout=setTimeout(function(){this._onIdle()}.bind(this),100))}},a.SASLMechanism=function(e,n,t){this.name=e,this.isClientFirst=n,this.priority=t},a.SASLMechanism.prototype={test:function(e){return!0},onStart:function(e){this._connection=e},onChallenge:function(e,n){throw new Error("You should implement challenge handling!")},onFailure:function(){this._connection=null},onSuccess:function(){this._connection=null}},a.SASLAnonymous=function(){},a.SASLAnonymous.prototype=new a.SASLMechanism("ANONYMOUS",!1,20),a.SASLAnonymous.prototype.test=function(e){return null===e.authcid},a.SASLPlain=function(){},a.SASLPlain.prototype=new a.SASLMechanism("PLAIN",!0,30),a.SASLPlain.prototype.test=function(e){return null!==e.authcid},a.SASLPlain.prototype.onChallenge=function(e){var n=e.authzid;return n+="\0",n+=e.authcid,n+="\0",n+=e.pass,t.utf16to8(n)},a.SASLSHA1=function(){},a.SASLSHA1.prototype=new a.SASLMechanism("SCRAM-SHA-1",!0,50),a.SASLSHA1.prototype.test=function(e){return null!==e.authcid},a.SASLSHA1.prototype.onChallenge=function(i,r,o){var s=o||n.hexdigest(1234567890*Math.random()),a="n="+t.utf16to8(i.authcid);return a+=",r=",a+=s,i._sasl_data.cnonce=s,i._sasl_data["client-first-message-bare"]=a,a="n,,"+a,this.onChallenge=function(n,i){for(var r,o,s,a,l,u,c,h,d,f,p,m,g="c=biws,",_=n._sasl_data["client-first-message-bare"]+","+i+",",v=n._sasl_data.cnonce,y=/([a-z]+)=([^,]+)(,|$)/;i.match(y);){var b=i.match(y);switch(i=i.replace(b[0],""),b[1]){case"r":r=b[2];break;case"s":o=b[2];break;case"i":s=b[2]}}if(r.substr(0,v.length)!==v)return n._sasl_data={},n._sasl_failure_cb();for(g+="r="+r,_+=g,o=atob(o),o+="\0\0\0",d=t.utf16to8(n.pass),a=u=e.core_hmac_sha1(d,o),c=1;c<s;c++){for(l=e.core_hmac_sha1(d,e.binb2str(u)),h=0;h<5;h++)a[h]^=l[h];u=l}for(a=e.binb2str(a),f=e.core_hmac_sha1(a,"Client Key"),p=e.str_hmac_sha1(a,"Server Key"),m=e.core_hmac_sha1(e.str_sha1(e.binb2str(f)),_),n._sasl_data["server-signature"]=e.b64_hmac_sha1(p,_),h=0;h<5;h++)f[h]^=m[h];return g+=",p="+btoa(e.binb2str(f))}.bind(this),a},a.SASLMD5=function(){},a.SASLMD5.prototype=new a.SASLMechanism("DIGEST-MD5",!1,40),a.SASLMD5.prototype.test=function(e){return null!==e.authcid},a.SASLMD5.prototype._quote=function(e){return'"'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'},a.SASLMD5.prototype.onChallenge=function(e,i,r){for(var o,s=/([a-z]+)=("[^"]+"|[^,"]+)(?:,|$)/,a=r||n.hexdigest(""+1234567890*Math.random()),l="",u=null,c="",h="";i.match(s);)switch(o=i.match(s),i=i.replace(o[0],""),o[2]=o[2].replace(/^"(.+)"$/,"$1"),o[1]){case"realm":l=o[2];break;case"nonce":c=o[2];break;case"qop":h=o[2];break;case"host":u=o[2]}var d=e.servtype+"/"+e.domain;null!==u&&(d=d+"/"+u);var f=t.utf16to8(e.authcid+":"+l+":"+this._connection.pass),p=n.hash(f)+":"+c+":"+a,m="AUTHENTICATE:"+d,g="";return g+="charset=utf-8,",g+="username="+this._quote(t.utf16to8(e.authcid))+",",g+="realm="+this._quote(l)+",",g+="nonce="+this._quote(c)+",",g+="nc=00000001,",g+="cnonce="+this._quote(a)+",",g+="digest-uri="+this._quote(d)+",",g+="response="+n.hexdigest(n.hexdigest(p)+":"+c+":00000001:"+a+":auth:"+n.hexdigest(m))+",",g+="qop=auth",this.onChallenge=function(){return""},g},a.SASLOAuthBearer=function(){},a.SASLOAuthBearer.prototype=new a.SASLMechanism("OAUTHBEARER",!0,60),a.SASLOAuthBearer.prototype.test=function(e){return null!==e.pass},a.SASLOAuthBearer.prototype.onChallenge=function(e){var n="n,";return null!==e.authcid&&(n=n+"a="+e.authzid),n+=",",n+="",n+="auth=Bearer ",n+=e.pass,n+="",n+="",t.utf16to8(n)},a.SASLExternal=function(){},a.SASLExternal.prototype=new a.SASLMechanism("EXTERNAL",!0,10),a.SASLExternal.prototype.onChallenge=function(e){return e.authcid===e.authzid?"":e.authzid},{Strophe:a,$build:i,$iq:o,$msg:r,$pres:s,SHA1:e,MD5:n,b64_hmac_sha1:e.b64_hmac_sha1,b64_sha1:e.b64_sha1,str_hmac_sha1:e.str_hmac_sha1,str_sha1:e.str_sha1}}),function(e,n){return"function"==typeof t&&t.amd?void t("strophe-bosh",["strophe-core"],function(e){return n(e.Strophe,e.$build)}):n(Strophe,$build)}(this,function(e,n){return e.Request=function(n,t,i,r){this.id=++e._requestId,this.xmlData=n,this.data=e.serialize(n),this.origFunc=t,this.func=t,this.rid=i,this.date=NaN,this.sends=r||0,this.abort=!1,this.dead=null,this.age=function(){if(!this.date)return 0;var e=new Date;return(e-this.date)/1e3},this.timeDead=function(){if(!this.dead)return 0;var e=new Date;return(e-this.dead)/1e3},this.xhr=this._newXHR()},e.Request.prototype={getResponse:function(){var n=null;if(this.xhr.responseXML&&this.xhr.responseXML.documentElement){if(n=this.xhr.responseXML.documentElement,"parsererror"===n.tagName)throw e.error("invalid response received"),e.error("responseText: "+this.xhr.responseText),e.error("responseXML: "+e.serialize(this.xhr.responseXML)),"parsererror"}else if(this.xhr.responseText)throw e.error("invalid response received"),e.error("responseText: "+this.xhr.responseText),"badformat";return n},_newXHR:function(){var e=null;return window.XMLHttpRequest?(e=new XMLHttpRequest,e.overrideMimeType&&e.overrideMimeType("text/xml; charset=utf-8")):window.ActiveXObject&&(e=new ActiveXObject("Microsoft.XMLHTTP")),e.onreadystatechange=this.func.bind(null,this),e}},e.Bosh=function(e){this._conn=e,this.rid=Math.floor(4294967295*Math.random()),this.sid=null,this.hold=1,this.wait=60,this.window=5,this.errors=0,this.inactivity=null,this._requests=[]},e.Bosh.prototype={strip:null,_buildBody:function(){var t=n("body",{rid:this.rid++,xmlns:e.NS.HTTPBIND});return null!==this.sid&&t.attrs({sid:this.sid}),this._conn.options.keepalive&&this._conn._sessionCachingSupported()&&this._cacheSession(),t},_reset:function(){this.rid=Math.floor(4294967295*Math.random()),this.sid=null,this.errors=0,this._conn._sessionCachingSupported()&&window.sessionStorage.removeItem("strophe-bosh-session"),this._conn.nextValidRid(this.rid)},_connect:function(n,t,i){this.wait=n||this.wait,this.hold=t||this.hold,this.errors=0;var r=this._buildBody().attrs({to:this._conn.domain,"xml:lang":"en",wait:this.wait,hold:this.hold,content:"text/xml; charset=utf-8",ver:"1.6","xmpp:version":"1.0","xmlns:xmpp":e.NS.BOSH});i&&r.attrs({route:i});var o=this._conn._connect_cb;this._requests.push(new e.Request(r.tree(),this._onRequestStateChange.bind(this,o.bind(this._conn)),r.tree().getAttribute("rid"))),this._throttledRequestHandler()},_attach:function(n,t,i,r,o,s,a){this._conn.jid=n,this.sid=t,this.rid=i,this._conn.connect_callback=r,this._conn.domain=e.getDomainFromJid(this._conn.jid),this._conn.authenticated=!0,this._conn.connected=!0,this.wait=o||this.wait,this.hold=s||this.hold,this.window=a||this.window,this._conn._changeConnectStatus(e.Status.ATTACHED,null)},_restore:function(n,t,i,r,o){var s=JSON.parse(window.sessionStorage.getItem("strophe-bosh-session"));if(!("undefined"!=typeof s&&null!==s&&s.rid&&s.sid&&s.jid&&("undefined"==typeof n||null===n||e.getBareJidFromJid(s.jid)===e.getBareJidFromJid(n)||null===e.getNodeFromJid(n)&&e.getDomainFromJid(s.jid)===n)))throw{
name:"StropheSessionError",message:"_restore: no restoreable session."};this._conn.restored=!0,this._attach(s.jid,s.sid,s.rid,t,i,r,o)},_cacheSession:function(){this._conn.authenticated?this._conn.jid&&this.rid&&this.sid&&window.sessionStorage.setItem("strophe-bosh-session",JSON.stringify({jid:this._conn.jid,rid:this.rid,sid:this.sid})):window.sessionStorage.removeItem("strophe-bosh-session")},_connect_cb:function(n){var t,i,r=n.getAttribute("type");if(null!==r&&"terminate"===r)return t=n.getAttribute("condition"),e.error("BOSH-Connection failed: "+t),i=n.getElementsByTagName("conflict"),null!==t?("remote-stream-error"===t&&i.length>0&&(t="conflict"),this._conn._changeConnectStatus(e.Status.CONNFAIL,t)):this._conn._changeConnectStatus(e.Status.CONNFAIL,"unknown"),this._conn._doDisconnect(t),e.Status.CONNFAIL;this.sid||(this.sid=n.getAttribute("sid"));var o=n.getAttribute("requests");o&&(this.window=parseInt(o,10));var s=n.getAttribute("hold");s&&(this.hold=parseInt(s,10));var a=n.getAttribute("wait");a&&(this.wait=parseInt(a,10));var l=n.getAttribute("inactivity");l&&(this.inactivity=parseInt(l,10))},_disconnect:function(e){this._sendTerminate(e)},_doDisconnect:function(){this.sid=null,this.rid=Math.floor(4294967295*Math.random()),this._conn._sessionCachingSupported()&&window.sessionStorage.removeItem("strophe-bosh-session"),this._conn.nextValidRid(this.rid)},_emptyQueue:function(){return 0===this._requests.length},_callProtocolErrorHandlers:function(e){var n,t=this._getRequestStatus(e);n=this._conn.protocolErrorHandlers.HTTP[t],n&&n.call(this,t)},_hitError:function(n){this.errors++,e.warn("request errored, status: "+n+", number of errors: "+this.errors),this.errors>4&&this._conn._onDisconnectTimeout()},_no_auth_received:function(n){n=n?n.bind(this._conn):this._conn._connect_cb.bind(this._conn);var t=this._buildBody();this._requests.push(new e.Request(t.tree(),this._onRequestStateChange.bind(this,n.bind(this._conn)),t.tree().getAttribute("rid"))),this._throttledRequestHandler()},_onDisconnectTimeout:function(){this._abortAllRequests()},_abortAllRequests:function(){for(var e;this._requests.length>0;)e=this._requests.pop(),e.abort=!0,e.xhr.abort(),e.xhr.onreadystatechange=function(){}},_onIdle:function(){var n=this._conn._data;if(this._conn.authenticated&&0===this._requests.length&&0===n.length&&!this._conn.disconnecting&&(e.info("no requests during idle cycle, sending blank request"),n.push(null)),!this._conn.paused){if(this._requests.length<2&&n.length>0){for(var t=this._buildBody(),i=0;i<n.length;i++)null!==n[i]&&("restart"===n[i]?t.attrs({to:this._conn.domain,"xml:lang":"en","xmpp:restart":"true","xmlns:xmpp":e.NS.BOSH}):t.cnode(n[i]).up());delete this._conn._data,this._conn._data=[],this._requests.push(new e.Request(t.tree(),this._onRequestStateChange.bind(this,this._conn._dataRecv.bind(this._conn)),t.tree().getAttribute("rid"))),this._throttledRequestHandler()}if(this._requests.length>0){var r=this._requests[0].age();null!==this._requests[0].dead&&this._requests[0].timeDead()>Math.floor(e.SECONDARY_TIMEOUT*this.wait)&&this._throttledRequestHandler(),r>Math.floor(e.TIMEOUT*this.wait)&&(e.warn("Request "+this._requests[0].id+" timed out, over "+Math.floor(e.TIMEOUT*this.wait)+" seconds since last activity"),this._throttledRequestHandler())}}},_getRequestStatus:function(n,t){var i;if(4===n.xhr.readyState)try{i=n.xhr.status}catch(n){e.error("Caught an error while retrieving a request's status, reqStatus: "+i)}return"undefined"==typeof i&&(i="number"==typeof t?t:0),i},_onRequestStateChange:function(n,t){if(e.debug("request id "+t.id+"."+t.sends+" state changed to "+t.xhr.readyState),t.abort)return void(t.abort=!1);if(4===t.xhr.readyState){var i=this._getRequestStatus(t);if(this.disconnecting&&i>=400)return this._hitError(i),void this._callProtocolErrorHandlers(t);var r=i>0&&i<500,o=t.sends>this._conn.maxRetries;if((r||o)&&(this._removeRequest(t),e.debug("request id "+t.id+" should now be removed")),200===i){var s=this._requests[0]===t,a=this._requests[1]===t;(a||s&&this._requests.length>0&&this._requests[0].age()>Math.floor(e.SECONDARY_TIMEOUT*this.wait))&&this._restartRequest(0),this._conn.nextValidRid(Number(t.rid)+1),e.debug("request id "+t.id+"."+t.sends+" got 200"),n(t),this.errors=0}else 0===i||i>=400&&i<600||i>=12e3?(e.error("request id "+t.id+"."+t.sends+" error "+i+" happened"),this._hitError(i),this._callProtocolErrorHandlers(t),i>=400&&i<500&&(this._conn._changeConnectStatus(e.Status.DISCONNECTING,null),this._conn._doDisconnect())):e.error("request id "+t.id+"."+t.sends+" error "+i+" happened");r||o?o&&!this._conn.connected&&this._conn._changeConnectStatus(e.Status.CONNFAIL,"giving-up"):this._throttledRequestHandler()}},_processRequest:function(n){var t=this,i=this._requests[n],r=this._getRequestStatus(i,-1);if(i.sends>this._conn.maxRetries)return void this._conn._onDisconnectTimeout();var o=i.age(),s=!isNaN(o)&&o>Math.floor(e.TIMEOUT*this.wait),a=null!==i.dead&&i.timeDead()>Math.floor(e.SECONDARY_TIMEOUT*this.wait),l=4===i.xhr.readyState&&(r<1||r>=500);if((s||a||l)&&(a&&e.error("Request "+this._requests[n].id+" timed out (secondary), restarting"),i.abort=!0,i.xhr.abort(),i.xhr.onreadystatechange=function(){},this._requests[n]=new e.Request(i.xmlData,i.origFunc,i.rid,i.sends),i=this._requests[n]),0===i.xhr.readyState){e.debug("request id "+i.id+"."+i.sends+" posting");try{var u=this._conn.options.contentType||"text/xml; charset=utf-8";i.xhr.open("POST",this._conn.service,!this._conn.options.sync),"undefined"!=typeof i.xhr.setRequestHeader&&i.xhr.setRequestHeader("Content-Type",u),this._conn.options.withCredentials&&(i.xhr.withCredentials=!0)}catch(n){return e.error("XHR open failed: "+n.toString()),this._conn.connected||this._conn._changeConnectStatus(e.Status.CONNFAIL,"bad-service"),void this._conn.disconnect()}var c=function(){if(i.date=new Date,t._conn.options.customHeaders){var e=t._conn.options.customHeaders;for(var n in e)e.hasOwnProperty(n)&&i.xhr.setRequestHeader(n,e[n])}i.xhr.send(i.data)};if(i.sends>1){var h=1e3*Math.min(Math.floor(e.TIMEOUT*this.wait),Math.pow(i.sends,3));setTimeout(function(){c()},h)}else c();i.sends++,this._conn.xmlOutput!==e.Connection.prototype.xmlOutput&&(i.xmlData.nodeName===this.strip&&i.xmlData.childNodes.length?this._conn.xmlOutput(i.xmlData.childNodes[0]):this._conn.xmlOutput(i.xmlData)),this._conn.rawOutput!==e.Connection.prototype.rawOutput&&this._conn.rawOutput(i.data)}else e.debug("_processRequest: "+(0===n?"first":"second")+" request has readyState of "+i.xhr.readyState)},_removeRequest:function(n){e.debug("removing request");var t;for(t=this._requests.length-1;t>=0;t--)n===this._requests[t]&&this._requests.splice(t,1);n.xhr.onreadystatechange=function(){},this._throttledRequestHandler()},_restartRequest:function(e){var n=this._requests[e];null===n.dead&&(n.dead=new Date),this._processRequest(e)},_reqToData:function(e){try{return e.getResponse()}catch(e){if("parsererror"!==e)throw e;this._conn.disconnect("strophe-parsererror")}},_sendTerminate:function(n){e.info("_sendTerminate was called");var t=this._buildBody().attrs({type:"terminate"});n&&t.cnode(n.tree());var i=new e.Request(t.tree(),this._onRequestStateChange.bind(this,this._conn._dataRecv.bind(this._conn)),t.tree().getAttribute("rid"));this._requests.push(i),this._throttledRequestHandler()},_send:function(){clearTimeout(this._conn._idleTimeout),this._throttledRequestHandler(),this._conn._idleTimeout=setTimeout(function(){this._onIdle()}.bind(this._conn),100)},_sendRestart:function(){this._throttledRequestHandler(),clearTimeout(this._conn._idleTimeout)},_throttledRequestHandler:function(){this._requests?e.debug("_throttledRequestHandler called with "+this._requests.length+" requests"):e.debug("_throttledRequestHandler called with undefined requests"),this._requests&&0!==this._requests.length&&(this._requests.length>0&&this._processRequest(0),this._requests.length>1&&Math.abs(this._requests[0].rid-this._requests[1].rid)<this.window&&this._processRequest(1))}},e}),function(e,n){return"function"==typeof t&&t.amd?void t("strophe-websocket",["strophe-core"],function(e){return n(e.Strophe,e.$build)}):n(Strophe,$build)}(this,function(e,n){return e.Websocket=function(e){this._conn=e,this.strip="wrapper";var n=e.service;if(0!==n.indexOf("ws:")&&0!==n.indexOf("wss:")){var t="";t+="ws"===e.options.protocol&&"https:"!==window.location.protocol?"ws":"wss",t+="://"+window.location.host,t+=0!==n.indexOf("/")?window.location.pathname+n:n,e.service=t}},e.Websocket.prototype={_buildStream:function(){return n("open",{xmlns:e.NS.FRAMING,to:this._conn.domain,version:"1.0"})},_check_streamerror:function(n,t){var i;if(i=n.getElementsByTagNameNS?n.getElementsByTagNameNS(e.NS.STREAM,"error"):n.getElementsByTagName("stream:error"),0===i.length)return!1;for(var r=i[0],o="",s="",a="urn:ietf:params:xml:ns:xmpp-streams",l=0;l<r.childNodes.length;l++){var u=r.childNodes[l];if(u.getAttribute("xmlns")!==a)break;"text"===u.nodeName?s=u.textContent:o=u.nodeName}var c="WebSocket stream error: ";return c+=o?o:"unknown",s&&(c+=" - "+s),e.error(c),this._conn._changeConnectStatus(t,o),this._conn._doDisconnect(),!0},_reset:function(){},_connect:function(){this._closeSocket(),this.socket=new WebSocket(this._conn.service,"xmpp"),this.socket.onopen=this._onOpen.bind(this),this.socket.onerror=this._onError.bind(this),this.socket.onclose=this._onClose.bind(this),this.socket.onmessage=this._connect_cb_wrapper.bind(this)},_connect_cb:function(n){var t=this._check_streamerror(n,e.Status.CONNFAIL);if(t)return e.Status.CONNFAIL},_handleStreamStart:function(n){var t=!1,i=n.getAttribute("xmlns");"string"!=typeof i?t="Missing xmlns in <open />":i!==e.NS.FRAMING&&(t="Wrong xmlns in <open />: "+i);var r=n.getAttribute("version");return"string"!=typeof r?t="Missing version in <open />":"1.0"!==r&&(t="Wrong version in <open />: "+r),!t||(this._conn._changeConnectStatus(e.Status.CONNFAIL,t),this._conn._doDisconnect(),!1)},_connect_cb_wrapper:function(n){if(0===n.data.indexOf("<open ")||0===n.data.indexOf("<?xml")){var t=n.data.replace(/^(<\?.*?\?>\s*)*/,"");if(""===t)return;var i=(new DOMParser).parseFromString(t,"text/xml").documentElement;this._conn.xmlInput(i),this._conn.rawInput(n.data),this._handleStreamStart(i)&&this._connect_cb(i)}else if(0===n.data.indexOf("<close ")){this._conn.rawInput(n.data),this._conn.xmlInput(n);var r=n.getAttribute("see-other-uri");r?(this._conn._changeConnectStatus(e.Status.REDIRECT,"Received see-other-uri, resetting connection"),this._conn.reset(),this._conn.service=r,this._connect()):(this._conn._changeConnectStatus(e.Status.CONNFAIL,"Received closing stream"),this._conn._doDisconnect())}else{var o=this._streamWrap(n.data),s=(new DOMParser).parseFromString(o,"text/xml").documentElement;this.socket.onmessage=this._onMessage.bind(this),this._conn._connect_cb(s,null,n.data)}},_disconnect:function(t){if(this.socket&&this.socket.readyState!==WebSocket.CLOSED){t&&this._conn.send(t);var i=n("close",{xmlns:e.NS.FRAMING});this._conn.xmlOutput(i);var r=e.serialize(i);this._conn.rawOutput(r);try{this.socket.send(r)}catch(n){e.info("Couldn't send <close /> tag.")}}this._conn._doDisconnect()},_doDisconnect:function(){e.info("WebSockets _doDisconnect was called"),this._closeSocket()},_streamWrap:function(e){return"<wrapper>"+e+"</wrapper>"},_closeSocket:function(){if(this.socket)try{this.socket.close()}catch(e){}this.socket=null},_emptyQueue:function(){return!0},_onClose:function(n){this._conn.connected&&!this._conn.disconnecting?(e.error("Websocket closed unexpectedly"),this._conn._doDisconnect()):n&&1006===n.code&&!this._conn.connected&&this.socket?(e.error("Websocket closed unexcectedly"),this._conn._changeConnectStatus(e.Status.CONNFAIL,"The WebSocket connection could not be established or was disconnected."),this._conn._doDisconnect()):e.info("Websocket closed")},_no_auth_received:function(n){e.error("Server did not send any auth methods"),this._conn._changeConnectStatus(e.Status.CONNFAIL,"Server did not send any auth methods"),n&&(n=n.bind(this._conn))(),this._conn._doDisconnect()},_onDisconnectTimeout:function(){},_abortAllRequests:function(){},_onError:function(n){e.error("Websocket error "+n),this._conn._changeConnectStatus(e.Status.CONNFAIL,"The WebSocket connection could not be established or was disconnected."),this._disconnect()},_onIdle:function(){var n=this._conn._data;if(n.length>0&&!this._conn.paused){for(var t=0;t<n.length;t++)if(null!==n[t]){var i,r;i="restart"===n[t]?this._buildStream().tree():n[t],r=e.serialize(i),this._conn.xmlOutput(i),this._conn.rawOutput(r),this.socket.send(r)}this._conn._data=[]}},_onMessage:function(n){var t,i,r='<close xmlns="urn:ietf:params:xml:ns:xmpp-framing" />';if(n.data===r)return this._conn.rawInput(r),this._conn.xmlInput(n),void(this._conn.disconnecting||this._conn._doDisconnect());if(0===n.data.search("<open ")){if(t=(new DOMParser).parseFromString(n.data,"text/xml").documentElement,!this._handleStreamStart(t))return}else i=this._streamWrap(n.data),t=(new DOMParser).parseFromString(i,"text/xml").documentElement;return this._check_streamerror(t,e.Status.ERROR)?void 0:this._conn.disconnecting&&"presence"===t.firstChild.nodeName&&"unavailable"===t.firstChild.getAttribute("type")?(this._conn.xmlInput(t),void this._conn.rawInput(e.serialize(t))):void this._conn._dataRecv(t,n.data)},_onOpen:function(){e.info("Websocket open");var n=this._buildStream();this._conn.xmlOutput(n.tree());var t=e.serialize(n);this._conn.rawOutput(t),this.socket.send(t)},_reqToData:function(e){return e},_send:function(){this._conn.flush()},_sendRestart:function(){clearTimeout(this._conn._idleTimeout),this._conn._onIdle.bind(this._conn)()}},e}),function(e){"function"==typeof t&&t.amd&&t("strophe",["strophe-core","strophe-bosh","strophe-websocket"],function(e){return e})}(this),n(["strophe-polyfill"]),n("strophe")}),function(e){"use strict";var n={},t="function"==typeof requirejs&&requirejs.nodeRequire,i=function(e){return e.replace(/(\/$)/,"")};define("tpl",["require","exports","module","lodash"],function(e,r){function o(e,n,t){return["define('",e,"!",n,"', ","['lodash'], ",["function(_) {","return ",t,";","}"].join(""),");\n"].join("")}function s(e){var n=a.extend({ext:".html",root:e.baseUrl,templateSettings:{}},e.lodashLoader);return n.root&&"/"!==n.root.slice(-1)&&(n.root+="/"),a.extend(a.templateSettings,n.templateSettings),n}var a=e("lodash");r.version="1.0.1",r.load=function(r,o,l,u){var c;u||(u=e.rawConfig,c=!0);var h="",d=s(u);i(u.baseUrl)===i(d.root)&&(d.root="");var f=e.toUrl(d.root+r+d.ext);if(c&&0!==f.indexOf(u.baseUrl)&&(f=i(u.baseUrl)+f),u.isBuild){var p=t("fs");try{h=String(p.readFileSync(f))}catch(e){"/"===f.slice(0,1)&&(f=f.slice(1)),h=String(p.readFileSync(f))}return n[r]=a.template(h),l()}var m=new XMLHttpRequest;m.onreadystatechange=function(){if(4===m.readyState){var e=a.clone(d.templateSettings);e.sourceURL=f,n[r]=a.template(m.responseText,e),l(n[r])}},m.open("GET",f,!0),m.send(null)},r.write=function(e,t,i){var r=n[t].source;i(o(e,t,r))},r.compile=function(e,n,t,i,r){function a(t){i.write(o(e,n,t))}s(r),i.read(n,a,i.error)}})}("object"==typeof global?global:this),define("tpl!field",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='<field var="'+__e(name)+'">',_.isArray(value)?(__p+="\n    ",_.each(value,function(e){__p+="<value>"+__e(e)+"</value>"}),__p+="\n"):__p+="\n    <value>"+__e(value)+"</value>\n",__p+="</field>\n";return __p}}),define("tpl!select_option",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='<option value="'+__e(value)+'" ',selected&&(__p+=' selected="selected" '),__p+=" >"+__e(label)+"</option>\n";return __p}}),define("tpl!form_select",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+="<label>"+__e(label)+'</label>\n<select name="'+__e(name)+'"  ',multiple&&(__p+=' multiple="multiple" '),__p+=">"+(null==(__t=options)?"":__t)+"</select>\n";return __p}}),define("tpl!form_textarea",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<label class="label-ta">'+__e(label)+'</label>\n<textarea name="'+__e(name)+'">'+__e(value)+"</textarea>\n";return __p}}),define("tpl!form_checkbox",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+="<label>"+__e(label)+'</label>\n<input name="'+__e(name)+'" type="'+__e(type)+'" '+__e(checked)+">\n";return __p}}),define("tpl!form_username",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)label&&(__p+="\n<label>\n    "+__e(label)+"\n</label>\n"),__p+='\n<div class="input-group">\n    <input name="'+__e(name)+'" type="'+__e(type)+'"\n        ',value&&(__p+=' value="'+__e(value)+'" '),__p+="\n        ",required&&(__p+=' class="required" '),__p+=' />\n    <span title="'+__e(domain)+'">'+__e(domain)+"</span>\n</div>\n";return __p}}),define("tpl!form_input",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)label&&(__p+="\n<label>\n    "+__e(label)+"\n</label>\n"),__p+='\n<input name="'+__e(name)+'" type="'+__e(type)+'" \n    ',value&&(__p+=' value="'+__e(value)+'" '),__p+="\n    ",required&&(__p+=' class="required" '),__p+=" >\n";return __p}}),define("tpl!form_captcha",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)label&&(__p+="\n<label>\n    "+__e(label)+"\n</label>\n"),__p+='\n<img src="data:'+__e(type)+";base64,"+__e(data)+'">\n<input name="'+__e(name)+'" type="text" ',required&&(__p+=' class="required" '),__p+=" >\n\n\n";return __p}}),function(e,n){define("utils",["jquery.noconflict","sizzle","jquery.browser","lodash.noconflict","locales","moment_with_locales","strophe","tpl!field","tpl!select_option","tpl!form_select","tpl!form_textarea","tpl!form_checkbox","tpl!form_username","tpl!form_input","tpl!form_captcha"],n)}(this,function(e,n,t,i,r,o,s,a,l,u,c,h,d,f,p){"use strict";r=r||{},s=s.Strophe;var m={"text-private":"password","text-single":"text",fixed:"label",boolean:"checkbox",hidden:"hidden","jid-multi":"textarea","list-single":"dropdown","list-multi":"dropdown"},g=function(e,n){e.classList.remove("visible"),i.isFunction(n)&&n()},_=function(e){var n=document.createElement("div");return n.innerHTML=e,n.innerText},v=function(n){var t=new e.Deferred,i=new Image,r=window.setTimeout(function(){t.reject(),i=null},3e3);return i.onerror=i.onabort=function(){clearTimeout(r),t.reject()},i.onload=function(){clearTimeout(r),t.resolve(i)},i.src=n,t.promise()};e.fn.hasScrollBar=function(){return!!e.contains(document,this.get(0))&&this.parent().height()<this.get(0).scrollHeight};var y=i.throttle(function(e,n){e.innerHTML=n},500);e.fn.addHyperlinks=function(){return this.length>0&&this.each(function(e,n){var t,r,o=n.innerHTML,s=o.match(/\b(https?:\/\/|www\.|https?:\/\/www\.)[^\s<]{2,200}\b/g);if(s)for(e=0;e<s.length;e++)t=0===s[e].indexOf("http://")||0===s[e].indexOf("https://")?"":"http://",r=encodeURI(decodeURI(s[e])).replace(/[!'()]/g,escape).replace(/\*/g,"%2A"),o=o.replace(s[e],'<a target="_blank" rel="noopener" href="'+t+r+'">'+s[e]+"</a>");n.innerHTML=o,i.forEach(s,function(e){v(_(e)).then(function(e){e.className="chat-image",y(n.querySelector("a"),e.outerHTML)})})}),this},e.fn.addEmoticons=function(n){return n&&this.length>0&&this.each(function(n,t){var i=e(t).html();i=i.replace(/&gt;:\)/g,'<span class="emoticon icon-evil"></span>'),i=i.replace(/:\)/g,'<span class="emoticon icon-smiley"></span>'),i=i.replace(/:\-\)/g,'<span class="emoticon icon-smiley"></span>'),i=i.replace(/;\)/g,'<span class="emoticon icon-wink"></span>'),i=i.replace(/;\-\)/g,'<span class="emoticon icon-wink"></span>'),i=i.replace(/:D/g,'<span class="emoticon icon-grin"></span>'),i=i.replace(/:\-D/g,'<span class="emoticon icon-grin"></span>'),i=i.replace(/:P/g,'<span class="emoticon icon-tongue"></span>'),i=i.replace(/:\-P/g,'<span class="emoticon icon-tongue"></span>'),i=i.replace(/:p/g,'<span class="emoticon icon-tongue"></span>'),i=i.replace(/:\-p/g,'<span class="emoticon icon-tongue"></span>'),i=i.replace(/8\)/g,'<span class="emoticon icon-cool"></span>'),i=i.replace(/:S/g,'<span class="emoticon icon-confused"></span>'),i=i.replace(/:\\/g,'<span class="emoticon icon-wondering"></span>'),i=i.replace(/:\/ /g,'<span class="emoticon icon-wondering"></span>'),i=i.replace(/&gt;:\(/g,'<span class="emoticon icon-angry"></span>'),i=i.replace(/:\(/g,'<span class="emoticon icon-sad"></span>'),i=i.replace(/:\-\(/g,'<span class="emoticon icon-sad"></span>'),i=i.replace(/:O/g,'<span class="emoticon icon-shocked"></span>'),i=i.replace(/:\-O/g,'<span class="emoticon icon-shocked"></span>'),i=i.replace(/\=\-O/g,'<span class="emoticon icon-shocked"></span>'),i=i.replace(/\(\^.\^\)b/g,'<span class="emoticon icon-thumbs-up"></span>'),i=i.replace(/&lt;3/g,'<span class="emoticon icon-heart"></span>'),e(t).html(i)}),this};var b={__:function(e){if(!b.isConverseLocale(this.locale)||"en"===this.locale)return Jed.sprintf.apply(Jed,arguments);"undefined"==typeof this.jed&&(this.jed=new Jed(window.JSON.parse(r[this.locale])));var n=this.jed.translate(e);return arguments.length>1?n.fetch.apply(n,[].slice.call(arguments,1)):n.fetch()},___:function(e){return e},isLocaleAvailable:function(e,n){if(n(e))return e;var t=e.split("-")[0];return t!==e&&n(t)?t:void 0},fadeIn:function(n,t){return e.fx.off?(n.classList.remove("hidden"),void(i.isFunction(t)&&t())):void(i.includes(n.classList,"hidden")?(setTimeout(i.partial(g,n,t),351),n.classList.add("visible"),n.classList.remove("hidden")):g(n,t))},isSameBareJID:function(e,n){return s.getBareJidFromJid(e).toLowerCase()===s.getBareJidFromJid(n).toLowerCase()},isNewMessage:function(e){return e instanceof Element?!n('result[xmlns="'+s.NS.MAM+'"]',e).length:!e.get("archive_id")},isOTRMessage:function(e){var n=e.querySelector("body"),t=i.isNull(n)?void 0:n.textContent;return t&&!!t.match(/^\?OTR/)},isHeadlineMessage:function(e){var n=e.getAttribute("from");return"headline"===e.getAttribute("type")||"error"!==e.getAttribute("type")&&!i.isNil(n)&&!i.includes(n,"@")},merge:function e(n,t){for(var r in t)i.isObject(n[r])?e(n[r],t[r]):n[r]=t[r]},applyUserSettings:function e(n,t,r){for(var o in t)i.isUndefined(r[o])||(i.isObject(t[o])&&!i.isArray(t[o])?e(n[o],t[o],r[o]):n[o]=r[o])},refreshWebkit:function(){e.browser.webkit&&window.requestAnimationFrame&&window.requestAnimationFrame(function(){var e=document.getElementById("conversejs");e.style.display="none";e.offsetHeight;e.style.display="block"})},webForm2xForm:function(n){var t,i=e(n);if(i.is("[type=checkbox]"))t=i.is(":checked")&&1||0;else if(i.is("textarea")){t=[];for(var r=i.val().split("\n"),o=0;o<r.length;o++){var s=e.trim(r[o]);""!==s&&t.push(s)}}else t=i.val();return e(a({name:i.attr("name"),value:t}))[0]},contains:function(e,n){return function(t){if("object"==typeof e){var r=!1;return i.forEach(e,function(e){r=r||i.includes(t.get(e).toLowerCase(),n.toLowerCase())}),r}if("string"==typeof e)return i.includes(t.get(e).toLowerCase(),n.toLowerCase());throw new TypeError("contains: wrong attribute type. Must be string or array.")}},xForm2webForm:function(n,t){var r,o,s,a,g,_=[];if("list-single"===n.attr("type")||"list-multi"===n.attr("type")){for(g=[],s=n.children("value"),r=0;r<s.length;r++)g.push(e(s[r]).text());for(o=n.children("option"),r=0;r<o.length;r++)a=e(o[r]).find("value").text(),_.push(l({value:a,label:e(o[r]).attr("label"),selected:i.startsWith(g,a),required:n.find("required").length}));return u({name:n.attr("var"),label:n.attr("label"),options:_.join(""),multiple:"list-multi"===n.attr("type"),required:n.find("required").length})}return"fixed"===n.attr("type")?e('<p class="form-help">').text(n.find("value").text()):"jid-multi"===n.attr("type")?c({name:n.attr("var"),label:n.attr("label")||"",value:n.find("value").text(),required:n.find("required").length}):"boolean"===n.attr("type")?h({name:n.attr("var"),type:m[n.attr("type")],label:n.attr("label")||"",checked:"1"===n.find("value").text()&&'checked="1"'||"",required:n.find("required").length}):n.attr("type")&&"username"===n.attr("var")?d({domain:" @"+this.domain,name:n.attr("var"),type:m[n.attr("type")],label:n.attr("label")||"",value:n.find("value").text(),required:n.find("required").length}):n.attr("type")?f({name:n.attr("var"),type:m[n.attr("type")],label:n.attr("label")||"",value:n.find("value").text(),required:n.find("required").length}):"ocr"===n.attr("var")?i.reduce(i.map(n.find("uri"),e.proxy(function(e){return p({label:this.$field.attr("label"),name:this.$field.attr("var"),data:this.$stanza.find('data[cid="'+e.textContent.replace(/^cid:/,"")+'"]').text(),type:e.getAttribute("type"),required:this.$field.find("required").length})},{$stanza:t,$field:n})),function(e,n){return e+n},""):void 0}};return b.detectLocale=function(e){var n,t;if(window.navigator.userLanguage&&(n=b.isLocaleAvailable(window.navigator.userLanguage,e)),window.navigator.languages&&!n)for(t=0;t<window.navigator.languages.length&&!n;t++)n=b.isLocaleAvailable(window.navigator.languages[t],e);return window.navigator.browserLanguage&&!n&&(n=b.isLocaleAvailable(window.navigator.browserLanguage,e)),window.navigator.language&&!n&&(n=b.isLocaleAvailable(window.navigator.language,e)),window.navigator.systemLanguage&&!n&&(n=b.isLocaleAvailable(window.navigator.systemLanguage,e)),n||"en"},b.isConverseLocale=function(e){return!!i.isString(e)&&i.includes(i.keys(r||{}),e)},b.isMomentLocale=function(e){return!!i.isString(e)&&i.includes(o.locales(),e)},b.getLocale=function(e,n){return i.isString(e)&&("en"===e||n(e))?e:b.detectLocale(n)||"en"},b.isOfType=function(e,n){return n.get("type")==e},b.isInstance=function(e,n){return n instanceof e},b.getAttribute=function(e,n){return n.get(e)},b.contains.not=function(e,n){return function(t){return!b.contains(e,n)(t)}},b.createElementsFromString=function(e,n){var t,i=document.createDocumentFragment(),r=document.createElement("body");for(r.innerHTML=n;t=r.firstChild;)i.appendChild(t);e.appendChild(i),i=r=null},b.isPersistableModel=function(e){return e.collection&&e.collection.browserStorage},b.safeSave=function(e,n){b.isPersistableModel(e)?e.save(n):e.set(n)},b}),function(e,n){if("function"==typeof define&&define.amd)define("pluggable",["exports","lodash"],n);else if("undefined"!=typeof exports)n(exports,require("lodash"));else{var t={exports:{}};n(t.exports,e._),e.pluggable=t.exports}}(this,function(e,n){"use strict";function t(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function i(e,n){this.name=n,this.plugged=e,"undefined"==typeof this.plugged.__super__?this.plugged.__super__={}:"string"==typeof this.plugged.__super__&&(this.plugged.__super__={__string__:this.plugged.__super__}),this.plugged.__super__[n]=this.plugged,this.plugins={},this.initialized_plugins=[]}function r(e,n,t){"undefined"==typeof t&&(t="pluginSocket"),"undefined"==typeof n&&(n="plugged");var r={};return r[t]=new i(e,n),o.extend(e,r)}Object.defineProperty(e,"__esModule",{value:!0}),e.enable=void 0;var o=t(n),s="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};o.extend(i.prototype,{wrappedOverride:function(e,n,t,i){return"function"==typeof t&&("undefined"==typeof this.__super__&&(this.__super__=i),this.__super__[e]=t.bind(this)),n.apply(this,o.drop(arguments,4))},_overrideAttribute:function(e,n){var t=n.overrides[e];if("function"==typeof t){var i={};i[this.name]=this.plugged;var r=o.partial(this.wrappedOverride,e,t,this.plugged[e],i);this.plugged[e]=r}else this.plugged[e]=t},_extendObject:function(e,n){e.prototype.__super__||(e.prototype.__super__={},e.prototype.__super__[this.name]=this.plugged);var t=this;o.each(n,function(n,i){if("events"===i)e.prototype[i]=o.extend(n,e.prototype[i]);else if("function"==typeof n){var r={};r[t.name]=t.plugged;var s=o.partial(t.wrappedOverride,i,n,e.prototype[i],r);e.prototype[i]=s}else e.prototype[i]=n})},loadOptionalDependencies:function(e){var n=this;o.each(e.optional_dependencies,function(t){var i=n.plugins[t];if(i){if(o.includes(i.optional_dependencies,e.__name__))throw'Found a circular dependency between the plugins "'+e.__name__+'" and "'+t+'"';n.initializePlugin(i)}else n.throwUndefinedDependencyError('Could not find optional dependency "'+t+'" for the plugin "'+e.__name__+"\". If it's needed, make sure it's loaded by require.js")})},throwUndefinedDependencyError:function(e){if(this.plugged.strict_plugin_dependencies)throw e;return void console.log(e)},applyOverrides:function(e){var n=this;o.each(Object.keys(e.overrides||{}),function(t){var i=e.overrides[t];"object"===("undefined"==typeof i?"undefined":s(i))?"undefined"==typeof n.plugged[t]?n.throwUndefinedDependencyError('Error: Plugin "'+e.__name__+'" tried to override '+t+" but it's not found."):n._extendObject(n.plugged[t],i):n._overrideAttribute(t,e)})},initializePlugin:function(e){o.includes(o.keys(this.allowed_plugins),e.__name__)&&(o.includes(this.initialized_plugins,e.__name__)||(o.extend(e,this.properties),e.optional_dependencies&&this.loadOptionalDependencies(e),this.applyOverrides(e),"function"==typeof e.initialize&&e.initialize.bind(e)(this),this.initialized_plugins.push(e.__name__)))},registerPlugin:function(e,n){if(e in this.plugins)throw new Error("Error: Plugin name "+e+" is already taken");n.__name__=e,this.plugins[e]=n},initializePlugins:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];o.size(this.plugins)&&(this.properties=e,this.allowed_plugins=o.pickBy(this.plugins,function(e,i){return(!n.length||n.length&&o.includes(n,i))&&!o.includes(t,i)}),o.each(o.values(this.allowed_plugins),this.initializePlugin.bind(this)))}}),e.enable=r,e.default={enable:r}}),define("underscore",["lodash"],function(e){return e.noConflict()}),function(e){var n="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global;if("function"==typeof define&&define.amd)define("backbone",["underscore","jquery","exports"],function(t,i,r){n.Backbone=e(n,r,t,i)});else if("undefined"!=typeof exports){var t,i=require("underscore");try{t=require("jquery")}catch(e){}e(n,exports,i,t)}else n.Backbone=e(n,{},n._,n.jQuery||n.Zepto||n.ender||n.$)}(function(e,n,t,i){var r=e.Backbone,o=Array.prototype.slice;n.VERSION="1.3.3",n.$=i,n.noConflict=function(){return e.Backbone=r,this},n.emulateHTTP=!1,n.emulateJSON=!1;var s=function(e,n,i){switch(e){case 1:return function(){return t[n](this[i])};case 2:return function(e){return t[n](this[i],e)};case 3:return function(e,r){return t[n](this[i],l(e,this),r)};case 4:return function(e,r,o){return t[n](this[i],l(e,this),r,o)};default:return function(){var e=o.call(arguments);return e.unshift(this[i]),t[n].apply(t,e)}}},a=function(e,n,i){t.each(n,function(n,r){t[r]&&(e.prototype[r]=s(n,r,i))})},l=function(e,n){return t.isFunction(e)?e:t.isObject(e)&&!n._isModel(e)?u(e):t.isString(e)?function(n){return n.get(e)}:e},u=function(e){var n=t.matches(e);return function(e){return n(e.attributes)}},c=n.Events={},h=/\s+/,d=function(e,n,i,r,o){var s,a=0;if(i&&"object"==typeof i){void 0!==r&&"context"in o&&void 0===o.context&&(o.context=r);for(s=t.keys(i);a<s.length;a++)n=d(e,n,s[a],i[s[a]],o);
}else if(i&&h.test(i))for(s=i.split(h);a<s.length;a++)n=e(n,s[a],r,o);else n=e(n,i,r,o);return n};c.on=function(e,n,t){return f(this,e,n,t)};var f=function(e,n,t,i,r){if(e._events=d(p,e._events||{},n,t,{context:i,ctx:e,listening:r}),r){var o=e._listeners||(e._listeners={});o[r.id]=r}return e};c.listenTo=function(e,n,i){if(!e)return this;var r=e._listenId||(e._listenId=t.uniqueId("l")),o=this._listeningTo||(this._listeningTo={}),s=o[r];if(!s){var a=this._listenId||(this._listenId=t.uniqueId("l"));s=o[r]={obj:e,objId:r,id:a,listeningTo:o,count:0}}return f(e,n,i,this,s),this};var p=function(e,n,t,i){if(t){var r=e[n]||(e[n]=[]),o=i.context,s=i.ctx,a=i.listening;a&&a.count++,r.push({callback:t,context:o,ctx:o||s,listening:a})}return e};c.off=function(e,n,t){return this._events?(this._events=d(m,this._events,e,n,{context:t,listeners:this._listeners}),this):this},c.stopListening=function(e,n,i){var r=this._listeningTo;if(!r)return this;for(var o=e?[e._listenId]:t.keys(r),s=0;s<o.length;s++){var a=r[o[s]];if(!a)break;a.obj.off(n,i,this)}return this};var m=function(e,n,i,r){if(e){var o,s=0,a=r.context,l=r.listeners;if(n||i||a){for(var u=n?[n]:t.keys(e);s<u.length;s++){n=u[s];var c=e[n];if(!c)break;for(var h=[],d=0;d<c.length;d++){var f=c[d];i&&i!==f.callback&&i!==f.callback._callback||a&&a!==f.context?h.push(f):(o=f.listening,o&&0===--o.count&&(delete l[o.id],delete o.listeningTo[o.objId]))}h.length?e[n]=h:delete e[n]}return e}for(var p=t.keys(l);s<p.length;s++)o=l[p[s]],delete l[o.id],delete o.listeningTo[o.objId]}};c.once=function(e,n,i){var r=d(g,{},e,n,t.bind(this.off,this));return"string"==typeof e&&null==i&&(n=void 0),this.on(r,n,i)},c.listenToOnce=function(e,n,i){var r=d(g,{},n,i,t.bind(this.stopListening,this,e));return this.listenTo(e,r)};var g=function(e,n,i,r){if(i){var o=e[n]=t.once(function(){r(n,o),i.apply(this,arguments)});o._callback=i}return e};c.trigger=function(e){if(!this._events)return this;for(var n=Math.max(0,arguments.length-1),t=Array(n),i=0;i<n;i++)t[i]=arguments[i+1];return d(_,this._events,e,void 0,t),this};var _=function(e,n,t,i){if(e){var r=e[n],o=e.all;r&&o&&(o=o.slice()),r&&v(r,i),o&&v(o,[n].concat(i))}return e},v=function(e,n){var t,i=-1,r=e.length,o=n[0],s=n[1],a=n[2];switch(n.length){case 0:for(;++i<r;)(t=e[i]).callback.call(t.ctx);return;case 1:for(;++i<r;)(t=e[i]).callback.call(t.ctx,o);return;case 2:for(;++i<r;)(t=e[i]).callback.call(t.ctx,o,s);return;case 3:for(;++i<r;)(t=e[i]).callback.call(t.ctx,o,s,a);return;default:for(;++i<r;)(t=e[i]).callback.apply(t.ctx,n);return}};c.bind=c.on,c.unbind=c.off,t.extend(n,c);var y=n.Model=function(e,n){var i=e||{};n||(n={}),this.cid=t.uniqueId(this.cidPrefix),this.attributes={},n.collection&&(this.collection=n.collection),n.parse&&(i=this.parse(i,n)||{});var r=t.result(this,"defaults");i=t.defaults(t.extend({},r,i),r),this.set(i,n),this.changed={},this.initialize.apply(this,arguments)};t.extend(y.prototype,c,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(e){return t.clone(this.attributes)},sync:function(){return n.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return t.escape(this.get(e))},has:function(e){return null!=this.get(e)},matches:function(e){return!!t.iteratee(e,this)(this.attributes)},set:function(e,n,i){if(null==e)return this;var r;if("object"==typeof e?(r=e,i=n):(r={})[e]=n,i||(i={}),!this._validate(r,i))return!1;var o=i.unset,s=i.silent,a=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=t.clone(this.attributes),this.changed={});var u=this.attributes,c=this.changed,h=this._previousAttributes;for(var d in r)n=r[d],t.isEqual(u[d],n)||a.push(d),t.isEqual(h[d],n)?delete c[d]:c[d]=n,o?delete u[d]:u[d]=n;if(this.idAttribute in r&&(this.id=this.get(this.idAttribute)),!s){a.length&&(this._pending=i);for(var f=0;f<a.length;f++)this.trigger("change:"+a[f],this,u[a[f]],i)}if(l)return this;if(!s)for(;this._pending;)i=this._pending,this._pending=!1,this.trigger("change",this,i);return this._pending=!1,this._changing=!1,this},unset:function(e,n){return this.set(e,void 0,t.extend({},n,{unset:!0}))},clear:function(e){var n={};for(var i in this.attributes)n[i]=void 0;return this.set(n,t.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!t.isEmpty(this.changed):t.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&t.clone(this.changed);var n=this._changing?this._previousAttributes:this.attributes,i={};for(var r in e){var o=e[r];t.isEqual(n[r],o)||(i[r]=o)}return!!t.size(i)&&i},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return t.clone(this._previousAttributes)},fetch:function(e){e=t.extend({parse:!0},e);var n=this,i=e.success;return e.success=function(t){var r=e.parse?n.parse(t,e):t;return!!n.set(r,e)&&(i&&i.call(e.context,n,t,e),void n.trigger("sync",n,t,e))},H(this,e),this.sync("read",this,e)},save:function(e,n,i){var r;null==e||"object"==typeof e?(r=e,i=n):(r={})[e]=n,i=t.extend({validate:!0,parse:!0},i);var o=i.wait;if(r&&!o){if(!this.set(r,i))return!1}else if(!this._validate(r,i))return!1;var s=this,a=i.success,l=this.attributes;i.success=function(e){s.attributes=l;var n=i.parse?s.parse(e,i):e;return o&&(n=t.extend({},r,n)),!(n&&!s.set(n,i))&&(a&&a.call(i.context,s,e,i),void s.trigger("sync",s,e,i))},H(this,i),r&&o&&(this.attributes=t.extend({},l,r));var u=this.isNew()?"create":i.patch?"patch":"update";"patch"!==u||i.attrs||(i.attrs=r);var c=this.sync(u,this,i);return this.attributes=l,c},destroy:function(e){e=e?t.clone(e):{};var n=this,i=e.success,r=e.wait,o=function(){n.stopListening(),n.trigger("destroy",n,n.collection,e)};e.success=function(t){r&&o(),i&&i.call(e.context,n,t,e),n.isNew()||n.trigger("sync",n,t,e)};var s=!1;return this.isNew()?t.defer(e.success):(H(this,e),s=this.sync("delete",this,e)),r||o(),s},url:function(){var e=t.result(this,"urlRoot")||t.result(this.collection,"url")||Y();if(this.isNew())return e;var n=this.get(this.idAttribute);return e.replace(/[^\/]$/,"$&/")+encodeURIComponent(n)},parse:function(e,n){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},t.extend({},e,{validate:!0}))},_validate:function(e,n){if(!n.validate||!this.validate)return!0;e=t.extend({},this.attributes,e);var i=this.validationError=this.validate(e,n)||null;return!i||(this.trigger("invalid",this,i,t.extend(n,{validationError:i})),!1)}});var b={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};a(y,b,"attributes");var w=n.Collection=function(e,n){n||(n={}),n.model&&(this.model=n.model),void 0!==n.comparator&&(this.comparator=n.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,t.extend({silent:!0},n))},x={add:!0,remove:!0,merge:!0},S={add:!0,remove:!1},C=function(e,n,t){t=Math.min(Math.max(t,0),e.length);var i,r=Array(e.length-t),o=n.length;for(i=0;i<r.length;i++)r[i]=e[i+t];for(i=0;i<o;i++)e[i+t]=n[i];for(i=0;i<r.length;i++)e[i+o+t]=r[i]};t.extend(w.prototype,c,{model:y,initialize:function(){},toJSON:function(e){return this.map(function(n){return n.toJSON(e)})},sync:function(){return n.sync.apply(this,arguments)},add:function(e,n){return this.set(e,t.extend({merge:!1},n,S))},remove:function(e,n){n=t.extend({},n);var i=!t.isArray(e);e=i?[e]:e.slice();var r=this._removeModels(e,n);return!n.silent&&r.length&&(n.changes={added:[],merged:[],removed:r},this.trigger("update",this,n)),i?r[0]:r},set:function(e,n){if(null!=e){n=t.extend({},x,n),n.parse&&!this._isModel(e)&&(e=this.parse(e,n)||[]);var i=!t.isArray(e);e=i?[e]:e.slice();var r=n.at;null!=r&&(r=+r),r>this.length&&(r=this.length),r<0&&(r+=this.length+1);var o,s,a=[],l=[],u=[],c=[],h={},d=n.add,f=n.merge,p=n.remove,m=!1,g=this.comparator&&null==r&&n.sort!==!1,_=t.isString(this.comparator)?this.comparator:null;for(s=0;s<e.length;s++){o=e[s];var v=this.get(o);if(v){if(f&&o!==v){var y=this._isModel(o)?o.attributes:o;n.parse&&(y=v.parse(y,n)),v.set(y,n),u.push(v),g&&!m&&(m=v.hasChanged(_))}h[v.cid]||(h[v.cid]=!0,a.push(v)),e[s]=v}else d&&(o=e[s]=this._prepareModel(o,n),o&&(l.push(o),this._addReference(o,n),h[o.cid]=!0,a.push(o)))}if(p){for(s=0;s<this.length;s++)o=this.models[s],h[o.cid]||c.push(o);c.length&&this._removeModels(c,n)}var b=!1,w=!g&&d&&p;if(a.length&&w?(b=this.length!==a.length||t.some(this.models,function(e,n){return e!==a[n]}),this.models.length=0,C(this.models,a,0),this.length=this.models.length):l.length&&(g&&(m=!0),C(this.models,l,null==r?this.length:r),this.length=this.models.length),m&&this.sort({silent:!0}),!n.silent){for(s=0;s<l.length;s++)null!=r&&(n.index=r+s),o=l[s],o.trigger("add",o,this,n);(m||b)&&this.trigger("sort",this,n),(l.length||c.length||u.length)&&(n.changes={added:l,removed:c,merged:u},this.trigger("update",this,n))}return i?e[0]:e}},reset:function(e,n){n=n?t.clone(n):{};for(var i=0;i<this.models.length;i++)this._removeReference(this.models[i],n);return n.previousModels=this.models,this._reset(),e=this.add(e,t.extend({silent:!0},n)),n.silent||this.trigger("reset",this,n),e},push:function(e,n){return this.add(e,t.extend({at:this.length},n))},pop:function(e){var n=this.at(this.length-1);return this.remove(n,e)},unshift:function(e,n){return this.add(e,t.extend({at:0},n))},shift:function(e){var n=this.at(0);return this.remove(n,e)},slice:function(){return o.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e]||this._byId[this.modelId(e.attributes||e)]||e.cid&&this._byId[e.cid]},has:function(e){return null!=this.get(e)},at:function(e){return e<0&&(e+=this.length),this.models[e]},where:function(e,n){return this[n?"find":"filter"](e)},findWhere:function(e){return this.where(e,!0)},sort:function(e){var n=this.comparator;if(!n)throw new Error("Cannot sort a set without a comparator");e||(e={});var i=n.length;return t.isFunction(n)&&(n=t.bind(n,this)),1===i||t.isString(n)?this.models=this.sortBy(n):this.models.sort(n),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return this.map(e+"")},fetch:function(e){e=t.extend({parse:!0},e);var n=e.success,i=this;return e.success=function(t){var r=e.reset?"reset":"set";i[r](t,e),n&&n.call(e.context,i,t,e),i.trigger("sync",i,t,e)},H(this,e),this.sync("read",this,e)},create:function(e,n){n=n?t.clone(n):{};var i=n.wait;if(e=this._prepareModel(e,n),!e)return!1;i||this.add(e,n);var r=this,o=n.success;return n.success=function(e,n,t){i&&r.add(e,t),o&&o.call(t.context,e,n,t)},e.save(null,n),e},parse:function(e,n){return e},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(e){return e[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,n){if(this._isModel(e))return e.collection||(e.collection=this),e;n=n?t.clone(n):{},n.collection=this;var i=new this.model(e,n);return i.validationError?(this.trigger("invalid",this,i.validationError,n),!1):i},_removeModels:function(e,n){for(var t=[],i=0;i<e.length;i++){var r=this.get(e[i]);if(r){var o=this.indexOf(r);this.models.splice(o,1),this.length--,delete this._byId[r.cid];var s=this.modelId(r.attributes);null!=s&&delete this._byId[s],n.silent||(n.index=o,r.trigger("remove",r,this,n)),t.push(r),this._removeReference(r,n)}}return t},_isModel:function(e){return e instanceof y},_addReference:function(e,n){this._byId[e.cid]=e;var t=this.modelId(e.attributes);null!=t&&(this._byId[t]=e),e.on("all",this._onModelEvent,this)},_removeReference:function(e,n){delete this._byId[e.cid];var t=this.modelId(e.attributes);null!=t&&delete this._byId[t],this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,n,t,i){if(n){if(("add"===e||"remove"===e)&&t!==this)return;if("destroy"===e&&this.remove(n,i),"change"===e){var r=this.modelId(n.previousAttributes()),o=this.modelId(n.attributes);r!==o&&(null!=r&&delete this._byId[r],null!=o&&(this._byId[o]=n))}}this.trigger.apply(this,arguments)}});var k={forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3};a(w,k,"models");var A=n.View=function(e){this.cid=t.uniqueId("view"),t.extend(this,t.pick(e,M)),this._ensureElement(),this.initialize.apply(this,arguments)},T=/^(\S+)\s*(.*)$/,M=["model","collection","el","id","attributes","className","tagName","events"];t.extend(A.prototype,c,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(e){return this.undelegateEvents(),this._setElement(e),this.delegateEvents(),this},_setElement:function(e){this.$el=e instanceof n.$?e:n.$(e),this.el=this.$el[0]},delegateEvents:function(e){if(e||(e=t.result(this,"events")),!e)return this;this.undelegateEvents();for(var n in e){var i=e[n];if(t.isFunction(i)||(i=this[i]),i){var r=n.match(T);this.delegate(r[1],r[2],t.bind(i,this))}}return this},delegate:function(e,n,t){return this.$el.on(e+".delegateEvents"+this.cid,n,t),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(e,n,t){return this.$el.off(e+".delegateEvents"+this.cid,n,t),this},_createElement:function(e){return document.createElement(e)},_ensureElement:function(){if(this.el)this.setElement(t.result(this,"el"));else{var e=t.extend({},t.result(this,"attributes"));this.id&&(e.id=t.result(this,"id")),this.className&&(e.class=t.result(this,"className")),this.setElement(this._createElement(t.result(this,"tagName"))),this._setAttributes(e)}},_setAttributes:function(e){this.$el.attr(e)}}),n.sync=function(e,i,r){var o=j[e];t.defaults(r||(r={}),{emulateHTTP:n.emulateHTTP,emulateJSON:n.emulateJSON});var s={type:o,dataType:"json"};if(r.url||(s.url=t.result(i,"url")||Y()),null!=r.data||!i||"create"!==e&&"update"!==e&&"patch"!==e||(s.contentType="application/json",s.data=JSON.stringify(r.attrs||i.toJSON(r))),r.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),r.emulateHTTP&&("PUT"===o||"DELETE"===o||"PATCH"===o)){s.type="POST",r.emulateJSON&&(s.data._method=o);var a=r.beforeSend;r.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",o),a)return a.apply(this,arguments)}}"GET"===s.type||r.emulateJSON||(s.processData=!1);var l=r.error;r.error=function(e,n,t){r.textStatus=n,r.errorThrown=t,l&&l.call(r.context,e,n,t)};var u=r.xhr=n.ajax(t.extend(s,r));return i.trigger("request",i,u,r),u};var j={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};n.ajax=function(){return n.$.ajax.apply(n.$,arguments)};var N=n.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},E=/\((.*?)\)/g,D=/(\(\?)?:\w+/g,R=/\*\w+/g,I=/[\-{}\[\]+?.,\\\^$|#\s]/g;t.extend(N.prototype,c,{initialize:function(){},route:function(e,i,r){t.isRegExp(e)||(e=this._routeToRegExp(e)),t.isFunction(i)&&(r=i,i=""),r||(r=this[i]);var o=this;return n.history.route(e,function(t){var s=o._extractParameters(e,t);o.execute(r,s,i)!==!1&&(o.trigger.apply(o,["route:"+i].concat(s)),o.trigger("route",i,s),n.history.trigger("route",o,i,s))}),this},execute:function(e,n,t){e&&e.apply(this,n)},navigate:function(e,t){return n.history.navigate(e,t),this},_bindRoutes:function(){if(this.routes){this.routes=t.result(this,"routes");for(var e,n=t.keys(this.routes);null!=(e=n.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(I,"\\$&").replace(E,"(?:$1)?").replace(D,function(e,n){return n?e:"([^/?]+)"}).replace(R,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,n){var i=e.exec(n).slice(1);return t.map(i,function(e,n){return n===i.length-1?e||null:e?decodeURIComponent(e):null})}});var L=n.History=function(){this.handlers=[],this.checkUrl=t.bind(this.checkUrl,this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},O=/^[#\/]|\s+$/g,P=/^\/+|\/+$/g,q=/#.*$/;L.started=!1,t.extend(L.prototype,c,{interval:50,atRoot:function(){var e=this.location.pathname.replace(/[^\/]$/,"$&/");return e===this.root&&!this.getSearch()},matchRoot:function(){var e=this.decodeFragment(this.location.pathname),n=e.slice(0,this.root.length-1)+"/";return n===this.root},decodeFragment:function(e){return decodeURI(e.replace(/%25/g,"%2525"))},getSearch:function(){var e=this.location.href.replace(/#.*/,"").match(/\?.+/);return e?e[0]:""},getHash:function(e){var n=(e||this).location.href.match(/#(.*)$/);return n?n[1]:""},getPath:function(){var e=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===e.charAt(0)?e.slice(1):e},getFragment:function(e){return null==e&&(e=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),e.replace(O,"")},start:function(e){if(L.started)throw new Error("Backbone.history has already been started");if(L.started=!0,this.options=t.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(P,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var n=this.root.slice(0,-1)||"/";return this.location.replace(n+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var i=document.body,r=i.insertBefore(this.iframe,i.firstChild).contentWindow;r.document.open(),r.document.close(),r.location.hash="#"+this.fragment}var o=window.addEventListener||function(e,n){return attachEvent("on"+e,n)};if(this._usePushState?o("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?o("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,n){return detachEvent("on"+e,n)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),L.started=!1},route:function(e,n){this.handlers.unshift({route:e,callback:n})},checkUrl:function(e){var n=this.getFragment();return n===this.fragment&&this.iframe&&(n=this.getHash(this.iframe.contentWindow)),n!==this.fragment&&(this.iframe&&this.navigate(n),void this.loadUrl())},loadUrl:function(e){return!!this.matchRoot()&&(e=this.fragment=this.getFragment(e),t.some(this.handlers,function(n){if(n.route.test(e))return n.callback(e),!0}))},navigate:function(e,n){if(!L.started)return!1;n&&n!==!0||(n={trigger:!!n}),e=this.getFragment(e||"");var t=this.root;""!==e&&"?"!==e.charAt(0)||(t=t.slice(0,-1)||"/");var i=t+e;if(e=this.decodeFragment(e.replace(q,"")),this.fragment!==e){if(this.fragment=e,this._usePushState)this.history[n.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);if(this._updateHash(this.location,e,n.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var r=this.iframe.contentWindow;n.replace||(r.document.open(),r.document.close()),this._updateHash(r.location,e,n.replace)}}return n.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,n,t){if(t){var i=e.href.replace(/(javascript:|#).*$/,"");e.replace(i+"#"+n)}else e.hash="#"+n}}),n.history=new L;var F=function(e,n){var i,r=this;return i=e&&t.has(e,"constructor")?e.constructor:function(){return r.apply(this,arguments)},t.extend(i,r,n),i.prototype=t.create(r.prototype,e),i.prototype.constructor=i,i.__super__=r.prototype,i};y.extend=w.extend=N.extend=A.extend=L.extend=F;var Y=function(){throw new Error('A "url" property or function must be specified')},H=function(e,n){var t=n.error;n.error=function(i){t&&t.call(n.context,e,i,n),e.trigger("error",e,i,n)}};return n}),define("backbone.noconflict",["backbone"],function(e){return e.noConflict()}),function(e,n){"function"==typeof define&&define.amd?define("strophe.disco",["strophe"],function(e){return n(e.Strophe,e.$build,e.$iq,e.$msg,e.$pres),e}):n(e.Strophe,e.$build,e.$iq,e.$msg,e.$pres)}(this,function(e,n,t,i,r){e.addConnectionPlugin("disco",{_connection:null,_identities:[],_features:[],_items:[],init:function(n){this._connection=n,this._identities=[],this._features=[],this._items=[],n.addHandler(this._onDiscoInfo.bind(this),e.NS.DISCO_INFO,"iq","get",null,null),n.addHandler(this._onDiscoItems.bind(this),e.NS.DISCO_ITEMS,"iq","get",null,null)},addIdentity:function(e,n,t,i){for(var r=0;r<this._identities.length;r++)if(this._identities[r].category==e&&this._identities[r].type==n&&this._identities[r].name==t&&this._identities[r].lang==i)return!1;return this._identities.push({category:e,type:n,name:t,lang:i}),!0},addFeature:function(e){for(var n=0;n<this._features.length;n++)if(this._features[n]==e)return!1;return this._features.push(e),!0},removeFeature:function(e){for(var n=0;n<this._features.length;n++)if(this._features[n]===e)return this._features.splice(n,1),!0;return!1},addItem:function(e,n,t,i){return!(t&&!i)&&(this._items.push({jid:e,name:n,node:t,call_back:i}),!0)},info:function(n,i,r,o,s){var a={xmlns:e.NS.DISCO_INFO};i&&(a.node=i);var l=t({from:this._connection.jid,to:n,type:"get"}).c("query",a);this._connection.sendIQ(l,r,o,s)},items:function(n,i,r,o,s){var a={xmlns:e.NS.DISCO_ITEMS};i&&(a.node=i);var l=t({from:this._connection.jid,to:n,type:"get"}).c("query",a);this._connection.sendIQ(l,r,o,s)},_buildIQResult:function(e,n){var i=e.getAttribute("id"),r=e.getAttribute("from"),o=t({type:"result",id:i});return null!==r&&o.attrs({to:r}),o.c("query",n)},_onDiscoInfo:function(n){var t,i=n.getElementsByTagName("query")[0].getAttribute("node"),r={xmlns:e.NS.DISCO_INFO};i&&(r.node=i);var o=this._buildIQResult(n,r);for(t=0;t<this._identities.length;t++)r={category:this._identities[t].category,type:this._identities[t].type},this._identities[t].name&&(r.name=this._identities[t].name),this._identities[t].lang&&(r["xml:lang"]=this._identities[t].lang),o.c("identity",r).up();for(t=0;t<this._features.length;t++)o.c("feature",{var:this._features[t]}).up();return this._connection.send(o.tree()),!0},_onDiscoItems:function(n){var t,i,r={xmlns:e.NS.DISCO_ITEMS},o=n.getElementsByTagName("query")[0].getAttribute("node");if(o){for(r.node=o,t=[],i=0;i<this._items.length;i++)if(this._items[i].node==o){t=this._items[i].call_back(n);break}}else t=this._items;var s=this._buildIQResult(n,r);for(i=0;i<t.length;i++){var a={jid:t[i].jid};t[i].name&&(a.name=t[i].name),t[i].node&&(a.node=t[i].node),s.c("item",a).up()}return this._connection.send(s.tree()),!0}})}),function(e,n){"object"==typeof exports&&"function"==typeof require?module.exports=n(require("backbone"),require("underscore")):"function"==typeof define&&define.amd?define("backbone.browserStorage",["backbone","underscore"],function(t,i){return n(t||e.Backbone,i||e._)}):n(Backbone,_)}(this,function(e,n){function t(){return(65536*(1+Math.random())|0).toString(16).substring(1)}function i(){return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}function r(e,n){for(var t=e.length;t--;)if(e[t]===n)return!0;return!1}function o(e,n){for(var t in n)e[t]=n[t];return e}function s(e,t,i){var r;if("local"===i&&!window.localStorage)throw"Backbone.browserStorage: Environment does not support localStorage.";if("session"===i&&!window.sessionStorage)throw"Backbone.browserStorage: Environment does not support sessionStorage.";if(this.name=e,this.serializer=t||{serialize:function(e){return n.isObject(e)?JSON.stringify(e):e},deserialize:function(e){return e&&JSON.parse(e)}},"session"===i)this.store=window.sessionStorage;else{if("local"!==i)throw"Backbone.browserStorage: No storage type was specified";this.store=window.localStorage}r=this.store.getItem(this.name),this.records=r&&r.split(",")||[]}e.BrowserStorage={local:function(e,n){return s.bind(this,e,n,"local")()},session:function(e,n){return s.bind(this,e,n,"session")()}};var a={save:function(){this.store.setItem(this.name,this.records.join(","))},create:function(e){return e.id||(e.id=i(),e.set(e.idAttribute,e.id)),this.store.setItem(this._itemName(e.id),this.serializer.serialize(e)),this.records.push(e.id.toString()),this.save(),this.find(e)!==!1},update:function(e){this.store.setItem(this._itemName(e.id),this.serializer.serialize(e));var n=e.id.toString();return r(this.records,n)||(this.records.push(n),this.save()),this.find(e)!==!1},find:function(e){return this.serializer.deserialize(this.store.getItem(this._itemName(e.id)))},findAll:function(){for(var e,n,t=[],i=0;i<this.records.length;i++)e=this.records[i],n=this.serializer.deserialize(this.store.getItem(this._itemName(e))),null!==n&&t.push(n);return t},destroy:function(e){this.store.removeItem(this._itemName(e.id));for(var n=e.id.toString(),t=0;t<this.records.length;t++)this.records[t]===n&&this.records.splice(t,1);return this.save(),e},browserStorage:function(){return{session:sessionStorage,local:localStorage}},_clear:function(){var e,n=this.store;e=new RegExp("^"+this.name.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+"-"),n.removeItem(this.name);for(var t in n)e.test(t)&&n.removeItem(t);this.records.length=0},_storageSize:function(){return this.store.length},_itemName:function(e){return this.name+"-"+e}};return o(e.BrowserStorage.session.prototype,a),o(e.BrowserStorage.local.prototype,a),e.BrowserStorage.sync=e.localSync=function(n,t,i){var r,o,s=t.browserStorage||t.collection.browserStorage,a=e.$?e.$.Deferred&&e.$.Deferred():e.Deferred&&e.Deferred();try{switch(n){case"read":r=void 0!==t.id?s.find(t):s.findAll();break;case"create":r=s.create(t);break;case"update":r=s.update(t);break;case"delete":r=s.destroy(t)}}catch(e){o=22===e.code&&0===s._storageSize()?"Private browsing is unsupported":e.message}return r?(i&&i.success&&("0.9.10"===e.VERSION?i.success(t,r,i):i.success(r)),a&&a.resolve(r)):(o=o?o:"Record Not Found",i&&i.error&&("0.9.10"===e.VERSION?i.error(t,o,i):i.error(o)),a&&a.reject(o)),i&&i.complete&&i.complete(r),a&&a.promise()},e.ajaxSync=e.sync,e.getSyncMethod=function(n){return n.browserStorage||n.collection&&n.collection.browserStorage?e.localSync:e.ajaxSync},e.sync=function(n,t,i){return e.getSyncMethod(t).apply(this,[n,t,i])},e.BrowserStorage}),function(e,n){"function"==typeof define&&define.amd?define("backbone.overview",["underscore","backbone"],n):n(_||e._,Backbone||e.Backbone)}(this,function(e,n){"use strict";var t=n.Overview=function(t){var i=this;this.views={},this.keys=e.partial(e.keys,this.views),this.getAll=e.partial(e.identity,this.views),this.get=function(e){return i.views[e]},this.xget=function(n){return e.filter(i.views,function(e,t){return t!==n})},this.add=function(e,n){return i.views[e]=n,n},this.remove=function(e){"undefined"==typeof e&&(new n.View).remove.apply(i);var t=i.views[e];if(t)return delete i.views[e],t.remove(),t},this.removeAll=function(){return e.each(e.keys(i.views),i.remove),i},n.View.apply(this,Array.prototype.slice.apply(arguments))},i=["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"];return e.each(i,function(n){t.prototype[n]=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(this.views),e[n].apply(e,t)}}),e.extend(t.prototype,n.View.prototype),t.extend=n.View.extend,n.Overview}),function(e,n){define("converse-core",["sizzle","jquery.noconflict","lodash.noconflict","lodash.converter","polyfill","utils","moment_with_locales","strophe","pluggable","backbone.noconflict","strophe.disco","backbone.browserStorage","backbone.overview"],n)}(this,function(e,n,t,i,r,o,s,a,l,u){var c=i(t.runInContext()),h=a.$build,d=a.$iq,f=a.$msg,p=a.$pres,m=a.SHA1.b64_sha1;a=a.Strophe,t.templateSettings={escape:/\{\{\{([\s\S]+?)\}\}\}/g,evaluate:/\{\[([\s\S]+?)\]\}/g,interpolate:/\{\{([\s\S]+?)\}\}/g};var g={};g.templates={},t.extend(g,u.Events),g.promises={cachedRoster:new n.Deferred,chatBoxesFetched:new n.Deferred,connected:new n.Deferred,pluginsInitialized:new n.Deferred,roster:new n.Deferred,rosterContactsFetched:new n.Deferred,rosterGroupsFetched:new n.Deferred,rosterInitialized:new n.Deferred,statusInitialized:new n.Deferred},g.emit=function(e){g.trigger.apply(this,arguments);var n=g.promises[e];t.isUndefined(n)||n.resolve()},g.core_plugins=["converse-bookmarks","converse-chatview","converse-controlbox","converse-core","converse-dragresize","converse-headline","converse-mam","converse-minimize","converse-muc","converse-notification","converse-otr","converse-ping","converse-register","converse-roomslist","converse-rosterview","converse-vcard"],l.enable(g,"_converse","pluggable"),g.STATUS_WEIGHTS={offline:6,unavailable:5,xa:4,away:3,dnd:2,chat:1,online:1},g.PRETTY_CHAT_STATUS={offline:"Offline",unavailable:"Unavailable",xa:"Extended Away",away:"Away",dnd:"Do not disturb",chat:"Chattty",online:"Online"},g.ANONYMOUS="anonymous",g.CLOSED="closed",g.EXTERNAL="external",g.LOGIN="login",g.LOGOUT="logout",g.OPENED="opened",g.PREBIND="prebind";var _={0:"ERROR",1:"CONNECTING",2:"CONNFAIL",3:"AUTHENTICATING",4:"AUTHFAIL",5:"CONNECTED",6:"DISCONNECTED",7:"DISCONNECTING",8:"ATTACHED",9:"REDIRECT"},v="image/png",y="iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAIAAABt+uBvAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gwHCy455JBsggAABkJJREFUeNrtnM1PE1sUwHvvTD8otWLHST/Gimi1CEgr6M6FEWuIBo2pujDVsNDEP8GN/4MbN7oxrlipG2OCgZgYlxAbkRYw1KqkIDRCSkM7nXvvW8x7vjyNeQ9m7p1p3z1LQk/v/Dhz7vkEXL161cHl9wI5Ag6IA+KAOCAOiAPigDggLhwQB2S+iNZ+PcYY/SWEEP2HAAAIoSAIoihCCP+ngDDGtVotGAz29/cfOXJEUZSOjg6n06lp2sbGRqlUWlhYyGazS0tLbrdbEASrzgksyeYJId3d3el0uqenRxRFAAAA4KdfIIRgjD9+/Pj8+fOpqSndslofEIQwHA6Pjo4mEon//qmFhYXHjx8vLi4ihBgDEnp7e9l8E0Jo165dQ0NDd+/eDYVC2/qsJElDQ0OEkKWlpa2tLZamxAhQo9EIBoOjo6MXL17csZLe3l5FUT59+lQul5l5JRaAVFWNRqN37tw5ceKEQVWRSOTw4cOFQuHbt2+iKLYCIISQLMu3b99OJpOmKAwEAgcPHszn8+vr6wzsiG6UQQhxuVyXLl0aGBgwUW0sFstkMl6v90fo1KyAMMYDAwPnzp0zXfPg4GAqlWo0Gk0MiBAiy/L58+edTqf5Aa4onj59OhaLYYybFRCEMBaL0fNxBw4cSCQStN0QRUBut3t4eJjq6U+dOiVJElVPRBFQIBDo6+ujCqirqyscDlONGykC2lYyYSR6pBoQQapHZwAoHo/TuARYAOrs7GQASFEUqn6aIiBJkhgA6ujooFpUo6iaTa7koFwnaoWadLNe81tbWwzoaJrWrICWl5cZAFpbW6OabVAEtLi4yABQsVjUNK0pAWWzWQaAcrlcswKanZ1VVZUqHYRQEwOq1Wpv3ryhCmh6erpcLjdrNl+v1ycnJ+l5UELI27dvv3//3qxxEADgy5cvExMT9Mznw4cPtFtAdAPFarU6Pj5eKpVM17yxsfHy5cvV1VXazXu62gVBKBQKT58+rdVqJqrFGL948eLdu3dU8/g/H4FBUaJYLAqC0NPTY9brMD4+PjY25mDSracOCABACJmZmXE6nUePHjWu8NWrV48ePSKEsGlAs7Agfd5nenq6Wq0mk0kjDzY2NvbkyRMIIbP2PLvhBUEQ8vl8NpuNx+M+n29bzhVjvLKycv/+/YmJCcazQuwA6YzW1tYmJyf1SY+2trZ/rRk1Go1SqfT69esHDx4UCgVmNaa/zZ/9ABUhRFXVYDB48uTJeDweiUQkSfL7/T9MA2NcqVTK5fLy8vL8/PzU1FSxWHS5XJaM4wGr9sUwxqqqer3eUCgkSZJuUBBCfTRvc3OzXC6vrKxUKhWn02nhCJ5lM4oQQo/HgxD6+vXr58+fHf8sDOp+HQDg8XgclorFU676dKLlo6yWRdItIBwQB8QBcUCtfosRQjRNQwhhjPUC4w46WXryBSHU1zgEQWBz99EFhDGu1+t+v//48ePxeFxRlD179ng8nh0Efgiher2+vr6ur3HMzMysrq7uTJVdACGEurq6Ll++nEgkPB7Pj9jPoDHqOxyqqubz+WfPnuVyuV9XPeyeagAAAoHArVu3BgcHab8CuVzu4cOHpVKJUnfA5GweY+xyuc6cOXPv3r1IJMLAR8iyPDw8XK/Xi8Wiqqqmm5KZgBBC7e3tN27cuHbtGuPVpf7+/lAoNDs7W61WzfVKpgHSSzw3b95MpVKW3MfRaDQSiczNzVUqFRMZmQOIEOL1eq9fv3727FlL1t50URRFluX5+flqtWpWEGAOIFEUU6nUlStXLKSjy759+xwOx9zcnKZpphzGHMzhcDiTydgk9r1w4YIp7RPTAAmCkMlk2FeLf/tIEKbTab/fbwtAhJBoNGrutpNx6e7uPnTokC1eMU3T0um0DZPMkZER6wERQnw+n/FFSxpy7Nix3bt3WwwIIcRgIWnHkkwmjecfRgGx7DtuV/r6+iwGhDHev3+/bQF1dnYaH6E2CkiWZdsC2rt3r8WAHA5HW1ubbQGZcjajgOwTH/4qNko1Wlg4IA6IA+KAOKBWBUQIsfNojyliKIoRRfH9+/dut9umf3wzpoUNNQ4BAJubmwz+ic+OxefzWWlBhJD29nbug7iT5sIBcUAcEAfEAXFAHBAHxOVn+QMrmWpuPZx12gAAAABJRU5ErkJggg==";
return g.log=function(e,n){var i;i=t.isUndefined(console)||t.isUndefined(console.log)?{log:t.noop,error:t.noop}:console,n===a.LogLevel.ERROR?i.log("ERROR: "+e):n===a.LogLevel.WARN?i.log("WARNING: "+e):n===a.LogLevel.FATAL?i.log("FATAL: "+e):g.debug&&(n===a.LogLevel.DEBUG?i.log("DEBUG: "+e):n===a.LogLevel.INFO?i.log("INFO: "+e):i.log(e))},g.initialize=function(i,r){"use strict";i=t.isUndefined(i)?{}:i;var l=new n.Deferred;t.isUndefined(g.chatboxes)||(g.connection.reset(),g.off(),g.stopListening(),g._tearDown());var c;"onpagehide"in window?c="pagehide":"onbeforeunload"in window?c="beforeunload":"onunload"in window&&(c="unload"),a.log=function(e,n){g.log(e+" "+n,e)},a.error=function(e){g.log(e,a.LogLevel.ERROR)},a.addNamespace("CARBONS","urn:xmpp:carbons:2"),a.addNamespace("CHATSTATES","http://jabber.org/protocol/chatstates"),a.addNamespace("CSI","urn:xmpp:csi:0"),a.addNamespace("DELAY","urn:xmpp:delay"),a.addNamespace("HINTS","urn:xmpp:hints"),a.addNamespace("MAM","urn:xmpp:mam:2"),a.addNamespace("NICK","http://jabber.org/protocol/nick"),a.addNamespace("PUBSUB","http://jabber.org/protocol/pubsub"),a.addNamespace("ROSTERX","http://jabber.org/protocol/rosterx"),a.addNamespace("RSM","http://jabber.org/protocol/rsm"),a.addNamespace("XFORM","jabber:x:data"),this.TIMEOUTS={PAUSED:1e4,INACTIVE:9e4},this.locale=o.getLocale(i.i18n,o.isConverseLocale),s.locale||(s.locale=s.lang),s.locale(o.getLocale(i.i18n,o.isMomentLocale));var f=g.__=o.__.bind(g);if(g.___=o.___,this.INACTIVE="inactive",this.ACTIVE="active",this.COMPOSING="composing",this.PAUSED="paused",this.GONE="gone",this.default_settings={allow_contact_requests:!0,allow_non_roster_messaging:!1,animate:!0,authentication:"login",auto_away:0,auto_login:!1,auto_reconnect:!1,auto_subscribe:!1,auto_xa:0,blacklisted_plugins:[],bosh_service_url:void 0,connection_options:{},credentials_url:null,csi_waiting_time:0,debug:!1,default_state:"online",expose_rid_and_sid:!1,filter_by_resource:!1,forward_messages:!1,hide_offline_users:!1,include_offline_state:!1,jid:void 0,keepalive:!0,locked_domain:void 0,message_carbons:!0,message_storage:"session",password:void 0,prebind_url:null,priority:0,registration_domain:"",rid:void 0,roster_groups:!0,show_only_online_users:!1,show_send_button:!1,sid:void 0,storage:"session",strict_plugin_dependencies:!1,synchronize_availability:!0,websocket_url:void 0,whitelisted_plugins:[],xhr_custom_status:!1,xhr_custom_status_url:""},t.assignIn(this,this.default_settings),t.assignIn(this,t.pick(i,t.keys(this.default_settings))),this.authentication===g.ANONYMOUS&&this.auto_login&&!this.jid)throw new Error("Config Error: you need to provide the server's domain via the 'jid' option when using anonymous authentication with auto_login.");return n.fx.off=!this.animate,this.callback=r||t.noop,this.send_initial_presence=!0,this.msg_counter=0,this.user_settings=i,this.getViewForChatBox=function(e){if(e)return g.chatboxviews.get(e.get("id"))},this.generateResource=function(){return"/converse.js-"+Math.floor(139749825*Math.random()).toString()},this.sendCSI=function(e){g.connection.send(h(e,{xmlns:a.NS.CSI})),g.inactive=e===g.INACTIVE},this.onUserActivity=function(){g.idle_seconds>0&&(g.idle_seconds=0),g.connection.authenticated&&(g.inactive&&g.sendCSI(g.ACTIVE),g.auto_changed_status===!0&&(g.auto_changed_status=!1,g.xmppstatus.setStatus(g.default_state)))},this.onEverySecond=function(){if(g.connection.authenticated){var e=g.xmppstatus.getStatus();g.idle_seconds++,g.csi_waiting_time>0&&g.idle_seconds>g.csi_waiting_time&&!g.inactive&&g.sendCSI(g.INACTIVE),g.auto_away>0&&g.idle_seconds>g.auto_away&&"away"!==e&&"xa"!==e&&"dnd"!==e?(g.auto_changed_status=!0,g.xmppstatus.setStatus("away")):g.auto_xa>0&&g.idle_seconds>g.auto_xa&&"xa"!==e&&"dnd"!==e&&(g.auto_changed_status=!0,g.xmppstatus.setStatus("xa"))}},this.registerIntervalHandler=function(){g.auto_away<1&&g.auto_xa<1&&g.csi_waiting_time<1||(g.idle_seconds=0,g.auto_changed_status=!1,window.addEventListener("click",g.onUserActivity),window.addEventListener("focus",g.onUserActivity),window.addEventListener("keypress",g.onUserActivity),window.addEventListener("mousemove",g.onUserActivity),window.addEventListener(c,g.onUserActivity),g.everySecondTrigger=window.setInterval(g.onEverySecond,1e3))},this.giveFeedback=function(e,n,i){var r=document.querySelectorAll(".conn-feedback");t.forEach(r,function(t){t.classList.add("conn-feedback"),t.textContent=e,n?t.classList.add(n):t.classList.remove("error")}),g.emit("feedback",{klass:n,message:i,subject:e})},this.rejectPresenceSubscription=function(e,n){var t=p({to:e,type:"unsubscribed"});n&&""!==n&&t.c("status").t(n),g.connection.send(t)},this.reconnect=t.debounce(function(){g.log("RECONNECTING"),g.log("The connection has dropped, attempting to reconnect."),g.giveFeedback(f("Reconnecting"),"warn",f("The connection has dropped, attempting to reconnect.")),g.connection.reconnecting=!0,g._tearDown(),g.logIn(null,!0)},3e3,{leading:!0}),this.disconnect=function(){g.log("DISCONNECTED"),delete g.connection.reconnecting,g.connection.reset(),g._tearDown(),g.chatboxviews.closeAllChatBoxes(),g.emit("disconnected")},this.onDisconnected=function(){return g.disconnection_cause===a.Status.AUTHFAIL?g.credentials_url&&g.auto_reconnect?(g.emit("will-reconnect"),g.reconnect()):g.disconnect():g.disconnection_cause!==g.LOGOUT&&"host-unknown"!==g.disconnection_reason&&g.auto_reconnect?(g.emit("will-reconnect"),void g.reconnect()):g.disconnect()},this.setDisconnectionCause=function(e,n,i){t.isUndefined(e)?(delete g.disconnection_cause,delete g.disconnection_reason):(t.isUndefined(g.disconnection_cause)||i)&&(g.disconnection_cause=e,g.disconnection_reason=n)},this.onConnectStatusChanged=function(e,n){g.log("Status changed to: "+_[e]),e===a.Status.CONNECTED||e===a.Status.ATTACHED?(g.send_initial_presence=!0,g.setDisconnectionCause(),g.connection.reconnecting?(g.log(e===a.Status.CONNECTED?"Reconnected":"Reattached"),g.onConnected(!0)):(g.log(e===a.Status.CONNECTED?"Connected":"Attached"),g.connection.restored&&(g.send_initial_presence=!1),g.onConnected())):e===a.Status.DISCONNECTED?(g.setDisconnectionCause(e,n),g.onDisconnected()):e===a.Status.ERROR?g.giveFeedback(f("Connection error"),"error",f("An error occurred while connecting to the chat server.")):e===a.Status.CONNECTING?g.giveFeedback(f("Connecting")):e===a.Status.AUTHENTICATING?g.giveFeedback(f("Authenticating")):e===a.Status.AUTHFAIL?(g.giveFeedback(f("Authentication Failed"),"error"),g.setDisconnectionCause(e,n,!0),g.onDisconnected()):e===a.Status.CONNFAIL?(g.giveFeedback(f("Connection failed"),"error",f("An error occurred while connecting to the chat server: "+n)),g.setDisconnectionCause(e,n)):e===a.Status.DISCONNECTING&&g.setDisconnectionCause(e,n)},this.incrementMsgCounter=function(){this.msg_counter+=1;var e=this.msg_counter;document.title.search(/^Messages \(\d+\) /)===-1?document.title="Messages ("+e+") "+document.title:document.title=document.title.replace(/^Messages \(\d+\) /,"Messages ("+e+") ")},this.clearMsgCounter=function(){this.msg_counter=0,document.title.search(/^Messages \(\d+\) /)!==-1&&(document.title=document.title.replace(/^Messages \(\d+\) /,""))},this.initStatus=function(){var e=new n.Deferred;this.xmppstatus=new this.XMPPStatus;var t=m("converse.xmppstatus-"+g.bare_jid);return this.xmppstatus.id=t,this.xmppstatus.browserStorage=new u.BrowserStorage[g.storage](t),this.xmppstatus.fetch({success:e.resolve,error:e.resolve}),g.emit("statusInitialized"),e.promise()},this.initSession=function(){this.session=new u.Model;var e=m("converse.bosh-session");this.session.id=e,this.session.browserStorage=new u.BrowserStorage[g.storage](e),this.session.fetch()},this.clearSession=function(){t.isUndefined(this.roster)||this.roster.browserStorage._clear(),!t.isUndefined(this.session)&&this.session.browserStorage&&this.session.browserStorage._clear()},this.logOut=function(){g.chatboxviews.closeAllChatBoxes(),g.clearSession(),g.setDisconnectionCause(g.LOGOUT,void 0,!0),t.isUndefined(g.connection)?g._tearDown():g.connection.disconnect(),g.emit("logout")},this.saveWindowState=function(e,n){var t,i="visible",r="hidden",o={focus:i,focusin:i,pageshow:i,blur:r,focusout:r,pagehide:r};e=e||document.createEvent("Events"),t=e.type in o?o[e.type]:document[n]?"hidden":"visible","visible"===t&&g.clearMsgCounter(),g.windowState=t,g.emit("windowStateChanged",{state:t})},this.registerGlobalEventHandlers=function(){var e="hidden";e in document?document.addEventListener("visibilitychange",t.partial(g.saveWindowState,t,e)):(e="mozHidden")in document?document.addEventListener("mozvisibilitychange",t.partial(g.saveWindowState,t,e)):(e="webkitHidden")in document?document.addEventListener("webkitvisibilitychange",t.partial(g.saveWindowState,t,e)):(e="msHidden")in document?document.addEventListener("msvisibilitychange",t.partial(g.saveWindowState,t,e)):"onfocusin"in document?document.onfocusin=document.onfocusout=t.partial(g.saveWindowState,t,e):window.onpageshow=window.onpagehide=window.onfocus=window.onblur=t.partial(g.saveWindowState,t,e),void 0!==document[e]&&t.partial(g.saveWindowState,t,e)({type:document[e]?"blur":"focus"})},this.enableCarbons=function(){if(this.message_carbons&&!this.session.get("carbons_enabled")){var e=new a.Builder("iq",{from:this.connection.jid,id:"enablecarbons",type:"set"}).c("enable",{xmlns:a.NS.CARBONS});this.connection.addHandler(function(e){e.querySelectorAll("error").length>0?g.log("An error occured while trying to enable message carbons.",a.LogLevel.ERROR):(this.session.save({carbons_enabled:!0}),g.log("Message carbons have been enabled."))}.bind(this),null,"iq",null,"enablecarbons"),this.connection.send(e)}},this.initRoster=function(){g.roster=new g.RosterContacts,g.roster.browserStorage=new u.BrowserStorage.session(m("converse.contacts-"+g.bare_jid)),g.rostergroups=new g.RosterGroups,g.rostergroups.browserStorage=new u.BrowserStorage.session(m("converse.roster.groups"+g.bare_jid)),g.emit("rosterInitialized")},this.populateRoster=function(){g.rostergroups.fetchRosterGroups().then(function(){g.emit("rosterGroupsFetched"),g.roster.fetchRosterContacts().then(function(){g.emit("rosterContactsFetched"),g.sendInitialPresence()})})},this.unregisterPresenceHandler=function(){t.isUndefined(g.presence_ref)||(g.connection.deleteHandler(g.presence_ref),delete g.presence_ref)},this.registerPresenceHandler=function(){g.unregisterPresenceHandler(),g.presence_ref=g.connection.addHandler(function(e){return g.roster.presenceHandler(e),!0},null,"presence",null)},this.sendInitialPresence=function(){g.send_initial_presence&&g.xmppstatus.sendPresence()},this.onStatusInitialized=function(e){e?g.emit("rosterReadyAfterReconnection"):(g.registerIntervalHandler(),g.initRoster()),g.roster.onConnected(),g.chatboxes.onConnected(),g.populateRoster(),g.registerPresenceHandler(),g.giveFeedback(f("Contacts")),e?g.xmppstatus.sendPresence():(l.resolve(),g.emit("initialized"))},this.setUserJid=function(){g.jid=g.connection.jid,g.bare_jid=a.getBareJidFromJid(g.connection.jid),g.resource=a.getResourceFromJid(g.connection.jid),g.domain=a.getDomainFromJid(g.connection.jid)},this.onConnected=function(e){g.connection.flush(),g.setUserJid(),g.initSession(),g.enableCarbons(),e=!t.isUndefined(g.xmppstatus)&&e,e?(g.onStatusInitialized(!0),g.emit("reconnected")):(g.features=new g.Features,g.initStatus().done(t.partial(g.onStatusInitialized,!1)),g.emit("connected"))},this.RosterContact=u.Model.extend({defaults:{bookmarked:!1,chat_state:void 0,chat_status:"offline",groups:[],image:y,image_type:v,num_unread:0,status:""},initialize:function(e){var n=e.jid,i=a.getBareJidFromJid(n).toLowerCase(),r=a.getResourceFromJid(n);e.jid=i,this.set(t.assignIn({id:i,jid:i,fullname:i,user_id:a.getNodeFromJid(n),resources:r?{resource:0}:{}},e)),this.on("destroy",function(){this.removeFromRoster()}.bind(this)),this.on("change:chat_status",function(e){g.emit("contactStatusChanged",e.attributes)})},subscribe:function(e){this.save("ask","subscribe");var n=p({to:this.get("jid"),type:"subscribe"});e&&""!==e&&n.c("status").t(e).up();var t=g.xmppstatus.get("fullname");return t&&""!==t&&n.c("nick",{xmlns:a.NS.NICK}).t(t).up(),g.connection.send(n),this},ackSubscribe:function(){g.connection.send(p({type:"subscribe",to:this.get("jid")}))},ackUnsubscribe:function(){g.connection.send(p({type:"unsubscribe",to:this.get("jid")})),this.destroy()},unauthorize:function(e){return g.rejectPresenceSubscription(this.get("jid"),e),this},authorize:function(e){var n=p({to:this.get("jid"),type:"subscribed"});return e&&""!==e&&n.c("status").t(e),g.connection.send(n),this},addResource:function(e){var n=e.getAttribute("from"),i=t.propertyOf(e.querySelector("show"))("textContent")||"online",r=a.getResourceFromJid(n),o=t.propertyOf(e.querySelector("priority"))("textContent")||0,l=e.querySelector('delay[xmlns="'+a.NS.DELAY+'"]'),u=t.isNull(l)?s().format():s(l.getAttribute("stamp")).format();o=t.isNaN(parseInt(o,10))?0:parseInt(o,10);var c=t.isObject(this.get("resources"))?this.get("resources"):{};c[r]={priority:o,status:i,timestamp:u};var h={resources:c},d=this.getHighestPriorityResource();return o==d.priority&&u==d.timestamp&&(h.chat_status=i),this.save(h),c},removeResource:function(e){var n=this.get("resources");t.isObject(n)?delete n[e]:n={},this.save({resources:n,chat_status:t.propertyOf(this.getHighestPriorityResource())("status")||"offline"})},getHighestPriorityResource:function(){var e=this.get("resources");if(t.isObject(e)&&t.size(e)){var n=t.flow(t.values,t.partial(t.sortBy,t,["priority","timestamp"]),t.reverse)(e)[0];if(!t.isUndefined(n))return n}},removeFromRoster:function(e){var n=d({type:"set"}).c("query",{xmlns:a.NS.ROSTER}).c("item",{jid:this.get("jid"),subscription:"remove"});return g.connection.sendIQ(n,e,e),this}}),this.RosterContacts=u.Collection.extend({model:g.RosterContact,comparator:function(e,n){var t,i,r=e.get("chat_status")||"offline",o=n.get("chat_status")||"offline";return g.STATUS_WEIGHTS[r]===g.STATUS_WEIGHTS[o]?(t=e.get("fullname").toLowerCase(),i=n.get("fullname").toLowerCase(),t<i?-1:t>i?1:0):g.STATUS_WEIGHTS[r]<g.STATUS_WEIGHTS[o]?-1:1},onConnected:function(){this.registerRosterHandler(),this.registerRosterXHandler()},registerRosterHandler:function(){g.connection.addHandler(g.roster.onRosterPush.bind(g.roster),a.NS.ROSTER,"iq","set")},registerRosterXHandler:function(){var e=0;g.connection.addHandler(function(t){return window.setTimeout(function(){g.connection.flush(),g.roster.subscribeToSuggestedItems.bind(g.roster)(t)},e),e+=250*n(t).find("item").length,!0},a.NS.ROSTERX,"message",null)},fetchRosterContacts:function(){var e=new n.Deferred;return this.fetch({add:!0,success:function(n){0===n.length?(g.send_initial_presence=!0,g.roster.fetchFromServer(e.resolve)):(g.emit("cachedRoster",n),e.resolve())}}),e.promise()},subscribeToSuggestedItems:function(e){return t.each(e.querySelectorAll("item"),function(e){"add"===e.getAttribute("action")&&g.roster.addAndSubscribe(e.getAttribute("jid"),null,g.xmppstatus.get("fullname"))}),!0},isSelf:function(e){return o.isSameBareJID(e,g.connection.jid)},addAndSubscribe:function(e,n,t,i,r){this.addContact(e,n,t,r).done(function(e){e instanceof g.RosterContact&&e.subscribe(i)})},sendContactAddIQ:function(e,n,i,r,o){n=t.isEmpty(n)?e:n;var s=d({type:"set"}).c("query",{xmlns:a.NS.ROSTER}).c("item",{jid:e,name:n});t.each(i,function(e){s.c("group").t(e).up()}),g.connection.sendIQ(s,r,o)},addContact:function(e,i,r,o){var s=new n.Deferred;return r=r||[],i=t.isEmpty(i)?e:i,this.sendContactAddIQ(e,i,r,function(){var n=this.create(t.assignIn({ask:void 0,fullname:i,groups:r,jid:e,requesting:!1,subscription:"none"},o),{sort:!1});s.resolve(n)}.bind(this),function(e){alert(f("Sorry, there was an error while trying to add "+i+" as a contact.")),g.log(e,a.LogLevel.ERROR),s.resolve(e)}),s.promise()},subscribeBack:function(e){var n=this.get(e);n instanceof g.RosterContact?n.authorize().subscribe():this.addContact(e,"",[],{subscription:"from"}).done(function(e){e instanceof g.RosterContact&&e.authorize().subscribe()})},getNumOnlineContacts:function(){var e,n=0,i=["offline","unavailable"],r=this.models,o=r.length;for(g.show_only_online_users&&(i=t.union(i,["dnd","xa","away"])),e=0;e<o;e++)t.includes(i,r[e].get("chat_status"))||n++;return n},onRosterPush:function(n){var i=n.getAttribute("id"),r=n.getAttribute("from");if(r&&""!==r&&a.getBareJidFromJid(r)!==g.bare_jid)return g.connection.send(d({type:"error",id:i,from:g.connection.jid}).c("error",{type:"cancel"}).c("service-unavailable",{xmlns:a.NS.ROSTER})),!0;g.connection.send(d({type:"result",id:i,from:g.connection.jid}));var o=e('query[xmlns="'+a.NS.ROSTER+'"] item',n);return t.each(o,this.updateContact.bind(this)),g.emit("rosterPush",n),!0},fetchFromServer:function(e){var n=d({type:"get",id:g.connection.getUniqueId("roster")}).c("query",{xmlns:a.NS.ROSTER}),t=this;return g.connection.sendIQ(n,function(){t.onReceivedFromServer.apply(t,arguments),e.apply(t,arguments)})},onReceivedFromServer:function(n){var i=e('query[xmlns="'+a.NS.ROSTER+'"] item',n);t.each(i,this.updateContact.bind(this)),g.emit("roster",n)},updateContact:function(e){var n=e.getAttribute("jid");if(!this.isSelf(n)){var i=t.map(e.getElementsByTagName("group"),a.getText),r=this.get(n),o=e.getAttribute("ask"),s=e.getAttribute("subscription");if(r){if("remove"===s)return r.destroy();r.save({subscription:s,ask:o,requesting:null,groups:i})}else{if("none"===s&&null===o||"remove"===s)return;this.create({ask:o,fullname:e.getAttribute("name")||n,groups:i,jid:n,subscription:s},{sort:!1})}}},createRequestingContact:function(e){var n=a.getBareJidFromJid(e.getAttribute("from")),t=e.querySelector('nick[xmlns="'+a.NS.NICK+'"]'),i={jid:n,subscription:"none",ask:null,requesting:!0,fullname:t&&t.textContent||n};this.create(i),g.emit("contactRequest",i)},handleIncomingSubscription:function(e){var n=e.getAttribute("from"),t=a.getBareJidFromJid(n),i=this.get(t);g.allow_contact_requests||g.rejectPresenceSubscription(n,f("This client does not allow presence subscriptions")),g.auto_subscribe?i&&"to"===i.get("subscription")?i.authorize():this.subscribeBack(t):i?"none"!==i.get("subscription")?i.authorize():"subscribe"===i.get("ask")&&i.authorize():i||this.createRequestingContact(e)},presenceHandler:function(n){var i=n.getAttribute("type");if("error"===i)return!0;var r=n.getAttribute("from"),o=a.getBareJidFromJid(r),s=a.getResourceFromJid(r),l=t.propertyOf(n.querySelector("show"))("textContent")||"online",u=t.propertyOf(n.querySelector("status"))("textContent"),c=this.get(o);if(this.isSelf(o))return void(g.connection.jid===r||"unavailable"===i||g.synchronize_availability!==!0&&g.synchronize_availability!==s||(g.xmppstatus.save({status:l}),u&&g.xmppstatus.save({status_message:u})));if(!e('query[xmlns="'+a.NS.MUC+'"]',n).length)if(c&&u!==c.get("status")&&c.save({status:u}),"subscribed"===i&&c)c.ackSubscribe();else if("unsubscribed"===i&&c)c.ackUnsubscribe();else{if("unsubscribe"===i)return;"subscribe"===i?this.handleIncomingSubscription(n):"unavailable"===i&&c?c.removeResource(s):c&&c.addResource(n)}}}),this.RosterGroup=u.Model.extend({initialize:function(e){this.set(t.assignIn({description:f("Click to hide these contacts"),state:g.OPENED},e)),this.contacts=new g.RosterContacts}}),this.RosterGroups=u.Collection.extend({model:g.RosterGroup,fetchRosterGroups:function(){var e=new n.Deferred;return this.fetch({silent:!0,success:e.resolve}),e.promise()}}),this.Message=u.Model.extend({defaults:function(){return{msgid:g.connection.getUniqueId()}}}),this.Messages=u.Collection.extend({model:g.Message,comparator:"time"}),this.ChatBox=u.Model.extend({defaults:{type:"chatbox",bookmarked:!1,chat_state:void 0,num_unread:0,url:""},initialize:function(){this.messages=new g.Messages,this.messages.browserStorage=new u.BrowserStorage[g.message_storage](m("converse.messages"+this.get("jid")+g.bare_jid)),this.save({box_id:m(this.get("jid")),time_opened:this.get("time_opened")||s().valueOf(),user_id:a.getNodeFromJid(this.get("jid"))})},getMessageAttributes:function(e,n,i){n=n||e.querySelector("delay");var r,o,l,u,c,h,d=e.getAttribute("type");r="error"===d?t.propertyOf(e.querySelector("error text"))("textContent"):t.propertyOf(e.querySelector("body"))("textContent");var f=!t.isNull(n),p="groupchat"===d,m=e.getElementsByTagName(g.COMPOSING).length&&g.COMPOSING||e.getElementsByTagName(g.PAUSED).length&&g.PAUSED||e.getElementsByTagName(g.INACTIVE).length&&g.INACTIVE||e.getElementsByTagName(g.ACTIVE).length&&g.ACTIVE||e.getElementsByTagName(g.GONE).length&&g.GONE;return c=p?a.unescapeNode(a.getResourceFromJid(e.getAttribute("from"))):a.getBareJidFromJid(e.getAttribute("from")),f?(o=n.getAttribute("stamp"),l=o):l=s().format(),p&&c===this.get("nick")||!p&&c===g.bare_jid?(u="me",h=g.xmppstatus.get("fullname")||c):(u="them",h=this.get("fullname")||c),{type:d,chat_state:m,delayed:f,fullname:h,message:r||void 0,msgid:e.getAttribute("id"),sender:u,time:l}},createMessage:function(e,n,t){return this.messages.create(this.getMessageAttributes.apply(this,arguments))},newMessageWillBeHidden:function(){return this.get("hidden")||this.get("minimized")||this.isScrolledUp()||"hidden"===g.windowState},incrementUnreadMsgCounter:function(e){t.isNull(e.querySelector("body"))||o.isNewMessage(e)&&this.newMessageWillBeHidden()&&(this.save({num_unread:this.get("num_unread")+1}),g.incrementMsgCounter())},clearUnreadMsgCounter:function(){this.save({num_unread:0})},isScrolledUp:function(){return this.get("scrolled",!0)}}),this.ChatBoxes=u.Collection.extend({comparator:"time_opened",model:function(e,n){return new g.ChatBox(e,n)},registerMessageHandler:function(){g.connection.addHandler(this.onMessage.bind(this),null,"message","chat"),g.connection.addHandler(this.onErrorMessage.bind(this),null,"message","error")},chatBoxMayBeShown:function(e){return!0},onChatBoxesFetched:function(e){var n=this;e.each(function(e){n.chatBoxMayBeShown(e)&&e.trigger("show")}),g.emit("chatBoxesFetched")},onConnected:function(){this.browserStorage=new u.BrowserStorage[g.storage](m("converse.chatboxes-"+g.bare_jid)),this.registerMessageHandler(),this.fetch({add:!0,success:this.onChatBoxesFetched.bind(this)})},onErrorMessage:function(e){var n=a.getBareJidFromJid(e.getAttribute("from"));if(o.isSameBareJID(n,g.bare_jid))return!0;var t=this.getChatBox(n);return!t||(t.createMessage(e,null,e),!0)},onMessage:function(e){var n,i,r,s,l,u,c,h,d,f=e,p=e.getAttribute("from"),m=e.getAttribute("to"),_=a.getResourceFromJid(m),v=!t.isNull(e.querySelector('received[xmlns="'+a.NS.CARBONS+'"]'));if(g.filter_by_resource&&_&&_!==g.resource)return g.log("onMessage: Ignoring incoming message intended for a different resource: "+m,a.LogLevel.INFO),!0;if(o.isHeadlineMessage(e))return g.log("onMessage: Ignoring incoming headline message sent with type 'chat' from JID: "+p,a.LogLevel.INFO),!0;var y=e.querySelector("forwarded");if(!t.isNull(y)){var b=y.querySelector("message"),w=b.getAttribute("from");if(v&&a.getBareJidFromJid(w)!==p)return!0;e=b,i=y.querySelector("delay"),p=e.getAttribute("from"),m=e.getAttribute("to")}return r=a.getBareJidFromJid(p),s=a.getResourceFromJid(p),l=r===g.bare_jid,l?(n=a.getBareJidFromJid(m),d=a.getResourceFromJid(m)):(n=r,d=s),h=this.getChatBox(n,!t.isNull(e.querySelector("body"))),u=e.getAttribute("id"),h&&(c=u&&h.messages.findWhere({msgid:u})||[],t.isEmpty(c)&&(h.incrementUnreadMsgCounter(f),h.createMessage(e,i,f))),g.emit("message",{stanza:f,chatbox:h}),!0},createChatBox:function(e,n){var i=a.getBareJidFromJid(e),r={},o=g.roster.get(i);if(t.isUndefined(o)){if(!g.allow_non_roster_messaging)return g.connection.send(p({type:"subscribe",to:i})),void g.log("Could not get roster item for JID "+i+" and allow_non_roster_messaging is set to false",a.LogLevel.ERROR)}else r={fullname:t.isEmpty(o.get("fullname"))?e:o.get("fullname"),image_type:o.get("image_type"),image:o.get("image"),url:o.get("url")};return this.create(t.assignIn({id:i,jid:i,fullname:e,image_type:v,image:y,url:""},r,n||{}))},getChatBox:function(e,n,t){e=e.toLowerCase();var i=this.get(a.getBareJidFromJid(e));return!i&&n&&(i=this.createChatBox(e,t)),i}}),this.ChatBoxViews=u.Overview.extend({initialize:function(){this.model.on("add",this.onChatBoxAdded,this),this.model.on("destroy",this.removeChat,this)},_ensureElement:function(){if(this.el)this.setElement(t.result(this,"el"),!1);else{var e=document.querySelector("#conversejs");t.isNull(e)&&(e=document.createElement("div"),e.setAttribute("id","conversejs"),document.querySelector("body").appendChild(e)),e.innerHTML="",this.setElement(e,!1)}},onChatBoxAdded:function(e){return this.get(e.get("id"))},removeChat:function(e){this.remove(e.get("id"))},closeAllChatBoxes:function(){return this.each(function(e){e.close()}),this},chatBoxMayBeShown:function(e){return this.model.chatBoxMayBeShown(e)},getChatBox:function(e,n){var t=this.model.get(e.jid);return!t&&n&&(t=this.model.create(e,{error:function(e,n){g.log(n.responseText)}})),t},showChat:function(e){var n=this.getChatBox(e,!0);return this.chatBoxMayBeShown(n)&&n.trigger("show",!0),n}}),this.XMPPStatus=u.Model.extend({initialize:function(){this.set({status:this.getStatus()}),this.on("change",function(e){t.has(e.changed,"status")&&g.emit("statusChanged",this.get("status")),t.has(e.changed,"status_message")&&g.emit("statusMessageChanged",this.get("status_message"))}.bind(this))},constructPresence:function(e,n){var i;return e=t.isString(e)?e:this.get("status")||g.default_state,n=t.isString(n)?n:void 0,i="unavailable"===e||"probe"===e||"error"===e||"unsubscribe"===e||"unsubscribed"===e||"subscribe"===e||"subscribed"===e?p({type:e}):"offline"===e?p({type:"unavailable"}):"online"===e?p():p().c("show").t(e).up(),n&&i.c("status").t(n).up(),i.c("priority").t(t.isNaN(Number(g.priority))?0:g.priority),i},sendPresence:function(e,n){g.connection.send(this.constructPresence(e,n))},setStatus:function(e){this.sendPresence(e),this.save({status:e})},getStatus:function(){return this.get("status")||g.default_state},setStatusMessage:function(e){this.sendPresence(this.getStatus(),e);var n=this.get("status_message");if(this.save({status_message:e}),this.xhr_custom_status){var t=new XMLHttpRequest;t.open("POST",this.xhr_custom_status_url,!0),t.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),t.send({msg:e})}n===e&&this.trigger("update-status-ui",this)}}),this.Features=u.Collection.extend({model:u.Model,initialize:function(){this.addClientIdentities().addClientFeatures(),this.browserStorage=new u.BrowserStorage[g.storage](m("converse.features"+g.bare_jid)),this.on("add",this.onFeatureAdded,this),this.fetchFeatures()},fetchFeatures:function(){0===this.browserStorage.records.length?(g.connection.disco.info(g.bare_jid,null,this.onInfo.bind(this)),g.connection.disco.items(g.domain,null,this.onItems.bind(this))):this.fetch({add:!0})},onFeatureAdded:function(e){g.emit("serviceDiscovered",e)},addClientIdentities:function(){return g.connection.disco.addIdentity("client","web","Converse.js"),this},addClientFeatures:function(){return g.connection.disco.addFeature(a.NS.BOSH),g.connection.disco.addFeature(a.NS.CHATSTATES),g.connection.disco.addFeature(a.NS.DISCO_INFO),g.connection.disco.addFeature(a.NS.ROSTERX),g.message_carbons&&g.connection.disco.addFeature(a.NS.CARBONS),this},onItems:function(e){var n=this;t.each(e.querySelectorAll("query item"),function(e){g.connection.disco.info(e.getAttribute("jid"),null,n.onInfo.bind(n))})},onInfo:function(e){var n=this;t.forEach(e.querySelectorAll("feature"),function(t){var i=t.getAttribute("var");n[i]=!0,n.create({var:i,from:e.getAttribute("from")})})}}),this.setUpXMLLogging=function(){a.log=function(e,n){g.log(n,e)},this.debug&&(this.connection.xmlInput=function(e){g.log(e.outerHTML)},this.connection.xmlOutput=function(e){g.log(e.outerHTML)})},this.fetchLoginCredentials=function(){var e=new n.Deferred,t=new XMLHttpRequest;return t.open("GET",g.credentials_url,!0),t.setRequestHeader("Accept","application/json, text/javascript"),t.onload=function(){if(t.status>=200&&t.status<400){var n=JSON.parse(t.responseText);e.resolve({jid:n.jid,password:n.password})}else t.onerror()},t.onerror=function(){delete g.connection,g.emit("noResumeableSession"),e.reject(t.responseText)},t.send(),e.promise()},this.startNewBOSHSession=function(){var e=new XMLHttpRequest;e.open("GET",g.prebind_url,!0),e.setRequestHeader("Accept","application/json, text/javascript"),e.onload=function(){if(e.status>=200&&e.status<400){var n=JSON.parse(e.responseText);g.connection.attach(n.jid,n.sid,n.rid,g.onConnectStatusChanged)}else e.onerror()},e.onerror=function(){delete g.connection,g.emit("noResumeableSession")},e.send()},this.restoreBOSHSession=function(e){if(!this.jid){var n='restoreBOSHSession: tried to restore a "keepalive" session but we don\'t have the JID for the user!';if(e)throw new Error(n);g.log(n)}try{return this.connection.restore(this.jid,this.onConnectStatusChanged),!0}catch(e){return this.log("Could not restore session for jid: "+this.jid+" Error message: "+e.message),this.clearSession(),!1}},this.attemptPreboundSession=function(e){if(!e){if(this.keepalive&&this.restoreBOSHSession(!0))return;if(this.jid&&this.sid&&this.rid)return this.connection.attach(this.jid,this.sid,this.rid,this.onConnectStatusChanged)}if(this.prebind_url)return this.startNewBOSHSession();throw new Error("attemptPreboundSession: If you use prebind and not keepalive, then you MUST supply JID, RID and SID values or a prebind_url.")},this.attemptNonPreboundSession=function(e,n){if(n||!this.keepalive||!this.restoreBOSHSession())if(this.auto_login)if(e)this.autoLogin(e);else if(this.credentials_url)this.fetchLoginCredentials().done(this.autoLogin.bind(this));else{if(!this.jid)throw new Error("attemptNonPreboundSession: If you use auto_login, you also need to give either a jid value (and if applicable a password) or you need to pass in a URL from where the username and password can be fetched (via credentials_url).");this.autoLogin()}else n&&this.autoLogin()},this.autoLogin=function(e){if(e&&(this.jid=e.jid),this.authentication===g.ANONYMOUS){if(!this.jid)throw new Error("Config Error: when using anonymous login you need to provide the server's domain via the 'jid' option. Either when calling converse.initialize, or when calling _converse.api.user.login.");this.connection.reconnecting||this.connection.reset(),this.connection.connect(this.jid.toLowerCase(),null,this.onConnectStatusChanged)}else if(this.authentication===g.LOGIN){var n=t.isNil(e)?g.connection.pass||this.password:e.password;if(!n){if(this.auto_login)throw new Error("initConnection: If you use auto_login and authentication='login' then you also need to provide a password.");return g.setDisconnectionCause(a.Status.AUTHFAIL,void 0,!0),void g.disconnect()}var i=a.getResourceFromJid(this.jid);i?this.jid=a.getBareJidFromJid(this.jid).toLowerCase()+"/"+i:this.jid=this.jid.toLowerCase()+g.generateResource(),this.connection.reconnecting||this.connection.reset(),this.connection.connect(this.jid,n,this.onConnectStatusChanged)}},this.logIn=function(e,n){this.authentication===g.PREBIND?this.attemptPreboundSession(n):this.attemptNonPreboundSession(e,n)},this.initConnection=function(){if(!this.connection){if(!this.bosh_service_url&&!this.websocket_url)throw new Error("initConnection: you must supply a value for either the bosh_service_url or websocket_url or both.");if(("WebSocket"in window||"MozWebSocket"in window)&&this.websocket_url)this.connection=new a.Connection(this.websocket_url,this.connection_options);else{if(!this.bosh_service_url)throw new Error("initConnection: this browser does not support websockets and bosh_service_url wasn't specified.");this.connection=new a.Connection(this.bosh_service_url,t.assignIn(this.connection_options,{keepalive:this.keepalive}))}}},this._tearDown=function(){return this.unregisterPresenceHandler(),this.roster&&this.roster.off().reset(),this.chatboxes.remove(),delete this.chatboxes.browserStorage,this.features&&(this.features.reset(),
this.features.browserStorage._clear()),t.isUndefined(this.session)||this.session.destroy(),window.removeEventListener("click",g.onUserActivity),window.removeEventListener("focus",g.onUserActivity),window.removeEventListener("keypress",g.onUserActivity),window.removeEventListener("mousemove",g.onUserActivity),window.removeEventListener(c,g.onUserActivity),window.clearInterval(g.everySecondTrigger),this},this.initChatBoxes=function(){this.chatboxes=new this.ChatBoxes,this.chatboxviews=new this.ChatBoxViews({model:this.chatboxes})},this.initPlugins=function(){g.pluggable.initialized_plugins=[];var e=g.core_plugins.concat(g.whitelisted_plugins);g.pluggable.initializePlugins({updateSettings:function(){g.log("(DEPRECATION) The `updateSettings` method has been deprecated. Please use `_converse.api.settings.update` instead.",a.LogLevel.WARN),g.api.settings.update.apply(g,arguments)},_converse:g},e,g.blacklisted_plugins),g.emit("pluginsInitialized")},i.connection&&(this.connection=i.connection),g.initPlugins(),g.initChatBoxes(),g.initConnection(),g.setUpXMLLogging(),g.logIn(),g.registerGlobalEventHandlers(),t.isUndefined(g.connection)||"jasmine tests"!==g.connection.service?l.promise():g},g.api={connection:{connected:function(){return g.connection&&g.connection.connected||!1},disconnect:function(){g.connection.disconnect()}},emit:function(){g.emit.apply(g,arguments)},user:{jid:function(){return g.connection.jid},login:function(e){g.initConnection(),g.logIn(e)},logout:function(){g.logOut()},status:{get:function(){return g.xmppstatus.get("status")},set:function(e,n){var i={status:e};if(!t.includes(t.keys(g.STATUS_WEIGHTS),e))throw new Error("Invalid availability value. See https://xmpp.org/rfcs/rfc3921.html#rfc.section.2.2.2.1");t.isString(n)&&(i.status_message=n),g.xmppstatus.sendPresence(e),g.xmppstatus.save(i)},message:{get:function(){return g.xmppstatus.get("status_message")},set:function(e){g.xmppstatus.save({status_message:e})}}}},settings:{update:function(e){o.merge(g.default_settings,e),o.merge(g,e),o.applyUserSettings(g,e,g.user_settings)},get:function(e){if(t.includes(t.keys(g.default_settings),e))return g[e]},set:function(e,n){var i={};t.isObject(e)?t.assignIn(g,t.pick(e,t.keys(g.default_settings))):t.isString("string")&&(i[e]=n,t.assignIn(g,t.pick(i,t.keys(g.default_settings))))}},promises:{add:function(e){e=t.isArray(e)?e:[e],t.each(e,function(e){g.promises[e]=new n.Deferred})}},contacts:{get:function(e){var n=function(e){var n=g.roster.get(a.getBareJidFromJid(e));return n?n.attributes:null};if(t.isUndefined(e))e=g.roster.pluck("jid");else if(t.isString(e))return n(e);return t.map(e,n)},add:function(e,n){if(!t.isString(e)||!t.includes(e,"@"))throw new TypeError("contacts.add: invalid jid");g.roster.addAndSubscribe(e,t.isEmpty(n)?e:n)}},chats:{open:function(e,n){var i;return t.isUndefined(e)?(g.log("chats.open: You need to provide at least one JID",a.LogLevel.ERROR),null):t.isString(e)?i=g.getViewForChatBox(g.chatboxes.getChatBox(e,!0,n).trigger("show")):t.map(e,function(e){return i=g.getViewForChatBox(g.chatboxes.getChatBox(e,!0,n).trigger("show"))})},get:function(e){if(t.isUndefined(e)){var n=[];return g.chatboxes.each(function(e){"chatroom"!==e.get("type")&&n.push(g.getViewForChatBox(e))}),n}return t.isString(e)?g.getViewForChatBox(g.chatboxes.getChatBox(e)):t.map(e,t.partial(t.flow(g.chatboxes.getChatBox.bind(g.chatboxes),g.getViewForChatBox.bind(g)),t,!0))}},tokens:{get:function(e){return!g.expose_rid_and_sid||t.isUndefined(g.connection)?null:"rid"===e.toLowerCase()?g.connection.rid||g.connection._proto.rid:"sid"===e.toLowerCase()?g.connection.sid||g.connection._proto.sid:void 0}},listen:{once:g.once.bind(g),on:g.on.bind(g),not:g.off.bind(g),stanza:function(e,n,i){t.isFunction(n)?(i=n,n={}):n=n||{},g.connection.addHandler(i,n.ns,e,n.type,n.id,n.from,n)}},waitUntil:function(e){var n=g.promises[e];return t.isUndefined(n)?null:g.promises[e].promise()},send:function(e){g.connection.send(e)}},{initialize:function(e,n){return g.initialize(e,n)},plugins:{add:function(e,n){if(n.__name__=e,!t.isUndefined(g.pluggable.plugins[e]))throw new TypeError('Error: plugin with name "'+e+'" has already been registered!');g.pluggable.plugins[e]=n}},env:{$build:h,$iq:d,$msg:f,$pres:p,Backbone:u,Strophe:a,_:t,fp:c,b64_sha1:m,jQuery:n,moment:s,sizzle:e,utils:o}}}),define("tpl!chatbox",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='<div class="flyout box-flyout">\n    <div class="chat-head chat-head-chatbox">\n        <a class="chatbox-btn close-chatbox-button icon-close" title="'+__e(info_close)+'"></a>\n        <div class="chat-title">\n            ',url&&(__p+='\n                <a href="'+__e(url)+'" target="_blank" rel="noopener" class="user">\n            '),__p+="\n                    "+__e(title)+"\n            ",url&&(__p+="\n                </a>\n            "),__p+='\n            <p class="user-custom-message"><p/>\n        </div>\n    </div>\n    <div class="chat-body">\n        <div class="chat-content ',show_send_button&&(__p+="chat-content-sendbutton"),__p+='"></div>\n        <div class="new-msgs-indicator hidden">▼ '+__e(unread_msgs)+" ▼</div>\n        ",show_textarea&&(__p+='\n        <form class="sendXMPPMessage" action="" method="post">\n            ',show_toolbar&&(__p+='\n                <ul class="chat-toolbar no-text-select"></ul>\n            '),__p+='\n        <textarea\n            type="text"\n            class="chat-textarea ',show_send_button&&(__p+="chat-textarea-send-button"),__p+='"\n            placeholder="'+__e(label_personal_message)+'"/>\n\n        ',show_send_button&&(__p+='\n            <button type="submit" class="pure-button send-button">'+__e(label_send)+"</button>\n        "),__p+="\n        </form>\n        "),__p+="\n    </div>\n</div>\n";return __p}}),define("tpl!new_day",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<time class="chat-info chat-date" data-isodate="'+__e(isodate)+'">'+__e(datestring)+"</time>\n";return __p}}),define("tpl!action",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<div class="chat-message '+__e(extra_classes)+'" data-isodate="'+__e(isodate)+'">\n    <span class="chat-msg-author chat-msg-'+__e(sender)+'">'+__e(time)+" **"+__e(username)+'&nbsp;</span>\n    <span class="chat-msg-content chat-action"><!-- message gets added here via renderMessage --></span>\n</div>\n';return __p}}),define("tpl!message",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<div class="chat-message '+__e(extra_classes)+'" data-isodate="'+__e(isodate)+'" data-msgid="'+__e(msgid)+'">\n    <span class="chat-msg-author chat-msg-'+__e(sender)+'">'+__e(time)+'</span>\n    <span class="chat-msg-content"><!-- message gets added here via renderMessage --></span>\n</div>\n';return __p}}),define("tpl!help_message",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<div class="chat-'+__e(type)+'">'+__e(message)+"</div>\n";return __p}}),define("tpl!toolbar",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)show_emoticons&&(__p+='\n    <li class="toggle-smiley icon-happy" title="'+__e(label_insert_smiley)+'">\n        <ul class="toolbar-picker-panel">\n            <li><a class="icon-smiley" href="#" data-emoticon=":)"></a></li>\n            <li><a class="icon-wink" href="#" data-emoticon=";)"></a></li>\n            <li><a class="icon-grin" href="#" data-emoticon=":D"></a></li>\n            <li><a class="icon-tongue" href="#" data-emoticon=":P"></a></li>\n            <li><a class="icon-cool" href="#" data-emoticon="8)"></a></li>\n            <li><a class="icon-evil" href="#" data-emoticon=">:)"></a></li>\n            <li><a class="icon-confused" href="#" data-emoticon=":S"></a></li>\n            <li><a class="icon-wondering" href="#" data-emoticon=":\\"></a></li>\n            <li><a class="icon-angry" href="#" data-emoticon=">:("></a></li>\n            <li><a class="icon-sad" href="#" data-emoticon=":("></a></li>\n            <li><a class="icon-shocked" href="#" data-emoticon=":O"></a></li>\n            <li><a class="icon-thumbs-up" href="#" data-emoticon="(^.^)b"></a></li>\n            <li><a class="icon-heart" href="#" data-emoticon="<3"></a></li>\n        </ul>\n    </li>\n'),__p+="\n",show_call_button&&(__p+='\n<li class="toggle-call"><a class="icon-phone" title="'+__e(label_start_call)+'"></a></li>\n'),__p+="\n",show_clear_button&&(__p+='\n<li class="toggle-clear"><a class="icon-trash" title="'+__e(label_clear)+'"></a></li>\n'),__p+="\n";return __p}}),define("tpl!avatar",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<canvas height="'+(null==(__t=height)?"":__t)+'px" width="'+(null==(__t=width)?"":__t)+'px" class="avatar"></canvas>\n';return __p}}),define("tpl!spinner",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<span class="spinner centered"/>\n';return __p}}),function(e,n){define("converse-chatview",["converse-core","tpl!chatbox","tpl!new_day","tpl!action","tpl!message","tpl!help_message","tpl!toolbar","tpl!avatar","tpl!spinner"],n)}(this,function(e,n,t,i,r,o,s,a,l){"use strict";var u=e.env.jQuery,c=e.env.$msg,h=e.env.Backbone,d=e.env.Strophe,f=e.env._,p=e.env.moment,m=e.env.utils,g={ENTER:13,FORWARD_SLASH:47};return e.plugins.add("converse-chatview",{overrides:{ChatBoxViews:{onChatBoxAdded:function(e){var n=this.__super__._converse,t=this.get(e.get("id"));return t?this.__super__.onChatBoxAdded.apply(this,arguments):(t=new n.ChatBoxView({model:e}),this.add(e.get("id"),t),t)}}},initialize:function(){var e=this._converse,_=e.__;e.api.settings.update({chatview_avatar_height:32,chatview_avatar_width:32,show_toolbar:!0,time_format:"HH:mm",visible_toolbar_buttons:{emoticons:!0,call:!1,clear:!0}});var v=function(n){var t=n.state;e.chatboxviews.each(function(e){e.onWindowStateChanged(t)})};e.api.listen.on("windowStateChanged",v),e.ChatBoxView=h.View.extend({length:200,tagName:"div",className:"chatbox hidden",is_chatroom:!1,events:{"click .close-chatbox-button":"close","keypress .chat-textarea":"keyPressed","click .send-button":"onFormSubmitted","click .toggle-smiley":"toggleEmoticonMenu","click .toggle-smiley ul li":"insertEmoticon","click .toggle-clear":"clearMessages","click .toggle-call":"toggleCall","click .new-msgs-indicator":"viewUnreadMessages"},initialize:function(){this.model.messages.on("add",this.onMessageAdded,this),this.model.on("show",this.show,this),this.model.on("destroy",this.hide,this),this.model.on("change:chat_state",this.sendChatState,this),this.model.on("change:chat_status",this.onChatStatusChanged,this),this.model.on("change:image",this.renderAvatar,this),this.model.on("change:status",this.onStatusChanged,this),this.model.on("showHelpMessages",this.showHelpMessages,this),this.model.on("sendMessage",this.sendMessage,this),this.render().fetchMessages(),e.emit("chatBoxInitialized",this)},render:function(){return this.$el.attr("id",this.model.get("box_id")).html(n(f.extend(this.model.toJSON(),{show_toolbar:e.show_toolbar,show_textarea:!0,show_send_button:e.show_send_button,title:this.model.get("fullname"),unread_msgs:_("You have unread messages"),info_close:_("Close this chat box"),label_personal_message:_("Your message"),label_send:_("Send")}))),this.$content=this.$el.find(".chat-content"),this.renderToolbar().renderAvatar(),e.emit("chatBoxOpened",this),m.refreshWebkit(),this.showStatusMessage()},afterMessagesFetched:function(){this.insertIntoDOM(),this.scrollDown(),this.$content.on("scroll",this.markScrolled.bind(this))},fetchMessages:function(){return this.model.messages.fetch({add:!0,success:this.afterMessagesFetched.bind(this),error:this.afterMessagesFetched.bind(this)}),this},insertIntoDOM:function(){var e=document.querySelector("#conversejs");return this.el.parentNode!==e&&e.insertBefore(this.el,e.firstChild),this},clearStatusNotification:function(){this.$content.find("div.chat-event").remove()},showStatusNotification:function(e,n,t){n||this.clearStatusNotification();var i=u('<div class="chat-info"></div>').text(e);t||i.addClass("chat-event"),this.$content.append(i),this.scrollDown()},addSpinner:function(){f.isNull(this.el.querySelector(".spinner"))&&this.$content.prepend(l)},clearSpinner:function(){this.$content.children(":first").is("span.spinner")&&this.$content.children(":first").remove()},insertDayIndicator:function(e,n){var i=p(e).startOf("day"),r=n?this.$content.prepend:this.$content.append;r.call(this.$content,t({isodate:i.format(),datestring:i.format("dddd MMM Do YYYY")}))},insertMessage:function(e,n){var t=this,i=n?this.$content.prepend:this.$content.append;f.flow(function(e){return i.call(t.$content,e),e},this.scrollDown.bind(this))(this.renderMessage(e))},showMessage:function(e){var n,t=this.$content.find(".chat-message:first"),i=t.data("isodate"),r=p(e.time)||p,o=this.$content.find(".chat-message:last").data("isodate");if(!i)return this.insertDayIndicator(r),void this.insertMessage(e);if(r.isAfter(o)||r.isSame(o))return r.isAfter(o,"day")&&this.insertDayIndicator(r),void this.insertMessage(e);if(r.isBefore(i)||r.isSame(i))return this.insertMessage(e,"prepend"),void(r.isBefore(i,"day")&&this.insertDayIndicator(r,"prepend"));r=r.format(),n=f.map(this.$content.find(".chat-message"),function(e){return u(e).data("isodate")}),n.push(r),n.sort();var s=n.indexOf(r)-1,a=this.$content.find('.chat-message[data-isodate="'+n[s]+'"]:last');f.flow(function(e){e.insertAfter(a)},this.scrollDown.bind(this))(this.renderMessage(e))},getExtraMessageTemplateAttributes:function(){return{}},getExtraMessageClasses:function(e){return e.delayed&&"delayed"||""},renderMessage:function(n){var t,o,s=p(n.time)||p,a=n.message,l=a.match(/^\/(.*?)(?: (.*))?$/),c=this.model.get("fullname")||n.fullname;l&&"me"===l[1]?(a=a.replace(/^\/me/,""),t=i,"me"===n.sender?(c=e.xmppstatus.get("fullname")||n.fullname,o=f.isNil(c)?e.bare_jid:c):o=n.fullname):(t=r,o="me"===n.sender&&_("me")||c),this.$content.find("div.chat-event").remove(),a.length>8e3&&(a=a.substring(0,10)+"...",this.showStatusNotification(_("A very large message has been received.This might be due to an attack meant to degrade the chat performance.Output has been shortened."),!0,!0));var h=u(t(f.extend(this.getExtraMessageTemplateAttributes(n),{msgid:n.msgid,sender:n.sender,time:s.format(e.time_format),isodate:s.format(),extra_classes:this.getExtraMessageClasses(n)})));return h.find(".chat-msg-content").first().text(a).addHyperlinks().addEmoticons(e.visible_toolbar_buttons.emoticons),h},showHelpMessages:function(e,n,t){var i,r=e.length;for(i=0;i<r;i++)this.$content.append(u(o({type:n||"info",message:e[i]})));return t===!0?this.$content.append(l):t===!1&&this.$content.find("span.spinner").remove(),this.scrollDown()},handleChatStateMessage:function(n){n.get("chat_state")===e.COMPOSING?("me"===n.get("sender")?this.showStatusNotification(_("Typing from another device")):this.showStatusNotification(n.get("fullname")+" "+_("is typing")),this.clear_status_timeout=window.setTimeout(this.clearStatusNotification.bind(this),3e4)):n.get("chat_state")===e.PAUSED?"me"===n.get("sender")?this.showStatusNotification(_("Stopped typing on the other device")):this.showStatusNotification(n.get("fullname")+" "+_("has stopped typing")):f.includes([e.INACTIVE,e.ACTIVE],n.get("chat_state"))?this.$content.find("div.chat-event").remove():n.get("chat_state")===e.GONE&&this.showStatusNotification(n.get("fullname")+" "+_("has gone away"))},shouldShowOnTextMessage:function(){return!this.$el.is(":visible")},handleTextMessage:function(e){this.showMessage(f.clone(e.attributes)),m.isNewMessage(e)&&"me"===e.get("sender")?this.model.set("scrolled",!1):m.isNewMessage(e)&&this.model.get("scrolled",!0)&&this.$el.find(".new-msgs-indicator").removeClass("hidden"),this.shouldShowOnTextMessage()?this.show():this.scrollDown()},handleErrorMessage:function(e){var n=u("[data-msgid="+e.get("msgid")+"]");n.length&&(n.after(u('<div class="chat-info chat-error"></div>').text(e.get("message"))),this.scrollDown())},onMessageAdded:function(n){f.isUndefined(this.clear_status_timeout)||(window.clearTimeout(this.clear_status_timeout),delete this.clear_status_timeout),"error"===n.get("type")?this.handleErrorMessage(n):n.get("message")?this.handleTextMessage(n):this.handleChatStateMessage(n),e.emit("messageAdded",{message:n,chatbox:this.model})},createMessageStanza:function(n){return c({from:e.connection.jid,to:this.model.get("jid"),type:"chat",id:n.get("msgid")}).c("body").t(n.get("message")).up().c(e.ACTIVE,{xmlns:d.NS.CHATSTATES}).up()},sendMessage:function(n){var t=this.createMessageStanza(n);e.connection.send(t),e.forward_messages&&e.connection.send(c({to:e.bare_jid,type:"chat",id:n.get("msgid")}).c("forwarded",{xmlns:"urn:xmpp:forward:0"}).c("delay",{xmns:"urn:xmpp:delay",stamp:(new Date).getTime()}).up().cnode(t.tree()))},onMessageSubmitted:function(n){if(!e.connection.authenticated)return this.showHelpMessages(["Sorry, the connection has been lost, and your message could not be sent"],"error");var t,i=n.replace(/^\s*/,"").match(/^\/(.*)\s*$/);if(i){if("clear"===i[1])return this.clearMessages();if("help"===i[1])return t=["<strong>/help</strong>:"+_("Show this menu"),"<strong>/me</strong>:"+_("Write in the third person"),"<strong>/clear</strong>:"+_("Remove messages")],void this.showHelpMessages(t)}var r=e.xmppstatus.get("fullname");r=f.isEmpty(r)?e.bare_jid:r;var o=this.model.messages.create({fullname:r,sender:"me",time:p().format(),message:n});this.sendMessage(o)},sendChatState:function(){e.connection.send(c({to:this.model.get("jid"),type:"chat"}).c(this.model.get("chat_state"),{xmlns:d.NS.CHATSTATES}).up().c("no-store",{xmlns:d.NS.HINTS}).up().c("no-permanent-store",{xmlns:d.NS.HINTS}))},setChatState:function(n,t){return f.isUndefined(this.chat_state_timeout)||(window.clearTimeout(this.chat_state_timeout),delete this.chat_state_timeout),n===e.COMPOSING?this.chat_state_timeout=window.setTimeout(this.setChatState.bind(this),e.TIMEOUTS.PAUSED,e.PAUSED):n===e.PAUSED&&(this.chat_state_timeout=window.setTimeout(this.setChatState.bind(this),e.TIMEOUTS.INACTIVE,e.INACTIVE)),t||this.model.get("chat_state")===n||this.model.set("chat_state",n),this},onFormSubmitted:function(n){n.preventDefault();var t=this.el.querySelector(".chat-textarea"),i=t.value;t.value="",""!==i&&(this.onMessageSubmitted(i),e.emit("messageSend",i)),this.setChatState(e.ACTIVE)},keyPressed:function(n){n.keyCode===g.ENTER?this.onFormSubmitted(n):this.setChatState(e.COMPOSING,n.keyCode===g.FORWARD_SLASH)},clearMessages:function(e){e&&e.preventDefault&&e.preventDefault();var n=confirm(_("Are you sure you want to clear the messages from this chat box?"));return n===!0&&(this.$content.empty(),this.model.messages.reset(),this.model.messages.browserStorage._clear()),this},insertIntoTextArea:function(e){var n=this.$el.find("textarea.chat-textarea"),t=n.val();t&&" "!==t[t.length-1]&&(t+=" "),n.focus().val(t+e+" ")},insertEmoticon:function(e){e.stopPropagation(),this.$el.find(".toggle-smiley ul").slideToggle(200);var n=u(e.target);n=n.is("a")?n:n.children("a"),this.insertIntoTextArea(n.data("emoticon"))},toggleEmoticonMenu:function(e){e.stopPropagation(),this.$el.find(".toggle-smiley ul").slideToggle(200)},toggleCall:function(n){n.stopPropagation(),e.emit("callButtonClicked",{connection:e.connection,model:this.model})},onChatStatusChanged:function(e){var n=e.get("chat_status"),t=e.get("fullname");t=f.isEmpty(t)?e.get("jid"):t,this.$el.is(":visible")&&("offline"===n?this.showStatusNotification(t+" "+_("has gone offline")):"away"===n?this.showStatusNotification(t+" "+_("has gone away")):"dnd"===n?this.showStatusNotification(t+" "+_("is busy")):"online"===n&&this.$el.find("div.chat-event").remove())},onStatusChanged:function(n){this.showStatusMessage(),e.emit("contactStatusMessageChanged",{contact:n.attributes,message:n.get("status")})},showStatusMessage:function(e){return e=e||this.model.get("status"),f.isString(e)&&this.$el.find("p.user-custom-message").text(e).attr("title",e),this},close:function(n){n&&n.preventDefault&&n.preventDefault(),e.connection.connected&&(this.model.set("chat_state",e.INACTIVE),this.sendChatState());try{this.model.destroy()}catch(n){e.log(n,d.LogLevel.ERROR)}return this.remove(),e.emit("chatBoxClosed",this),this},getToolbarOptions:function(n){return f.extend(n||{},{label_clear:_("Clear all messages"),label_insert_smiley:_("Insert a smiley"),label_start_call:_("Start a call"),show_call_button:e.visible_toolbar_buttons.call,show_clear_button:e.visible_toolbar_buttons.clear,show_emoticons:e.visible_toolbar_buttons.emoticons})},renderToolbar:function(n,t){if(e.show_toolbar)return n=n||s,t=f.extend(this.model.toJSON(),this.getToolbarOptions(t||{})),this.$el.find(".chat-toolbar").html(n(t)),this},renderAvatar:function(){if(this.model.get("image")){var n=e.chatview_avatar_width,t=e.chatview_avatar_height,i="data:"+this.model.get("image_type")+";base64,"+this.model.get("image"),r=u(a({width:n,height:t})).get(0);if(!r.getContext||!r.getContext("2d"))return this;var o=r.getContext("2d"),s=new Image;return s.onload=function(){var e=s.width/s.height;e<1?o.drawImage(s,0,0,n,t*(1/e)):o.drawImage(s,0,0,n,t*e)},s.src=i,this.$el.find(".chat-title").before(r),this}},focus:function(){return this.$el.find(".chat-textarea").focus(),e.emit("chatBoxFocused",this),this},hide:function(){return this.el.classList.add("hidden"),m.refreshWebkit(),this},afterShown:function(n){m.isPersistableModel(this.model)&&this.model.save(),this.setChatState(e.ACTIVE),this.scrollDown(),n&&this.focus()},_show:function(e){return this.$el.is(":visible")&&"1"===this.$el.css("opacity")?void(e&&this.focus()):void m.fadeIn(this.el,f.bind(this.afterShown,this,e))},show:function(e){return f.isUndefined(this.debouncedShow)&&(this.debouncedShow=f.debounce(this._show,250,{leading:!0})),this.debouncedShow.apply(this,arguments),this},hideNewMessagesIndicator:function(){var e=this.el.querySelector(".new-msgs-indicator");f.isNull(e)||e.classList.add("hidden")},markScrolled:f.debounce(function(e){if(e&&e.preventDefault&&e.preventDefault(),this.model.get("auto_scrolled"))return void this.model.set({scrolled:!1,auto_scrolled:!1});var n=!0,t=this.$content.scrollTop()+this.$content.innerHeight()>=this.$content[0].scrollHeight-10;t&&(n=!1,this.onScrolledDown()),m.safeSave(this.model,{scrolled:n})},150),viewUnreadMessages:function(){this.model.save("scrolled",!1),this.scrollDown()},_scrollDown:function(){this.$content.is(":visible")&&!this.model.get("scrolled")&&(this.$content.scrollTop(this.$content[0].scrollHeight),this.onScrolledDown(),this.model.save({auto_scrolled:!0}))},onScrolledDown:function(){this.hideNewMessagesIndicator(),"hidden"!==e.windowState&&this.model.clearUnreadMsgCounter(),e.emit("chatBoxScrolledDown",{chatbox:this.model})},scrollDown:function(){return f.isUndefined(this.debouncedScrollDown)&&(this.debouncedScrollDown=f.debounce(this._scrollDown,250)),this.debouncedScrollDown.apply(this,arguments),this},onWindowStateChanged:function(e){this.model.get("num_unread",0)&&!this.model.newMessageWillBeHidden()&&this.model.clearUnreadMsgCounter()}})}}),e}),define("tpl!add_contact_dropdown",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<dl class="add-converse-contact dropdown">\n    <dt id="xmpp-contact-search" class="fancy-dropdown">\n        <a class="toggle-xmpp-contact-form icon-plus" href="#" title="'+__e(label_click_to_chat)+'"> '+__e(label_add_contact)+'</a>\n    </dt>\n    <dd class="search-xmpp"><ul></ul></dd>\n</dl>\n';return __p}}),define("tpl!add_contact_form",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<li>\n    <form class="pure-form add-xmpp-contact">\n        <input type="text"\n            name="identifier"\n            class="username"\n            placeholder="'+__e(label_contact_username)+'"/>\n        <button class="pure-button button-primary" type="submit">'+__e(label_add)+"</button>\n    </form>\n</li>\n";return __p}}),define("tpl!change_status_message",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<fieldset>\n    <span class="input-button-group">\n        <input type="text" class="custom-xmpp-status" value="'+__e(status_message)+'" placeholder="'+__e(label_custom_status)+'"/>\n        <input type="submit" class="pure-button button-primary" value="'+__e(label_save)+'"/>\n    </span>\n</fieldset>\n';return __p}}),define("tpl!chat_status",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<div class="xmpp-status">\n    <a class="choose-xmpp-status '+__e(chat_status)+" icon-"+__e(chat_status)+'" data-value="'+__e(status_message)+'" href="#" title="'+__e(desc_change_status)+'">\n        '+__e(status_message)+'\n    </a>\n    <a class="change-xmpp-status-message icon-pencil" href="#" title="'+__e(desc_custom_status)+'"></a>\n</div>\n';return __p}}),define("tpl!choose_status",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<dl id="target" class="dropdown">\n    <dt id="fancy-xmpp-status-select" class="fancy-dropdown"></dt>\n    <dd><ul class="xmpp-status-menu"></ul></dd>\n</dl>\n';return __p}}),define("tpl!contacts_panel",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='<form class="pure-form set-xmpp-status" id="set-xmpp-status" action="" method="post">\n    <select id="select-xmpp-status">\n        <option value="online">'+__e(label_online)+'</option>\n        <option value="dnd">'+__e(label_busy)+'</option>\n        <option value="away">'+__e(label_away)+"</option>\n        ",include_offline_state&&(__p+='\n        <option value="offline">'+__e(label_offline)+"</option>\n        "),__p+="\n        ",allow_logout&&(__p+='\n        <option value="logout">'+__e(label_logout)+"</option>\n        "),__p+="\n    </select>\n</form>\n";return __p}}),define("tpl!contacts_tab",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='<a class="s contacts-tab\n   ',is_current&&(__p+=" current "),__p+="\n   ",num_unread&&(__p+=" unread-msgs "),__p+='"\n       data-id="users" href="#users">\n    '+__e(label_contacts)+"\n    ",num_unread&&(__p+='\n        <span class="msgs-indicator">'+__e(num_unread)+"</span>\n    "),__p+="\n</a>\n";return __p}}),define("tpl!controlbox",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__j=Array.prototype.join;with(obj)__p+='<div class="flyout box-flyout">\n    <div class="chat-head controlbox-head">\n        <ul id="controlbox-tabs"></ul>\n        ',sticky_controlbox||(__p+='\n            <a class="chatbox-btn close-chatbox-button icon-close"></a>\n        '),__p+='\n    </div>\n    <div class="controlbox-panes"></div>\n</div>\n';return __p}}),define("tpl!controlbox_toggle",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<span class="conn-feedback">'+__e(label_toggle)+"</span>\n";return __p}}),define("tpl!login_panel",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='<form class="pure-form pure-form-stacked converse-form" id="converse-login" method="post">\n    ',auto_login&&(__p+='\n        <span class="spinner login-submit"/>\n    '),__p+="\n    ",auto_login||(__p+="\n        ",authentication!=LOGIN&&authentication!=EXTERNAL||(__p+="\n            <label>"+__e(label_username)+'</label>\n            <input type="text" name="jid" placeholder="'+__e(placeholder_username)+'">\n            ',authentication!==EXTERNAL&&(__p+="\n                <label>"+__e(label_password)+'</label>\n                <input type="password" name="password" placeholder="'+__e(placeholder_password)+'">\n            '),__p+='\n            <input class="pure-button button-primary" type="submit" value="'+__e(label_login)+'">\n            <span class="conn-feedback"></span>\n        '),__p+="\n        ",authentication==ANONYMOUS&&(__p+='\n            <input class="pure-button button-primary login-anon" type="submit" value="'+__e(label_anon_login)+'"/>\n        '),__p+="\n        ",authentication==PREBIND&&(__p+="\n            <p>Disconnected.</p>\n        "),__p+="\n    "),__p+="\n</form>\n";return __p}}),define("tpl!login_tab",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<li><a class="current" data-id="login" href="#login-dialog">'+__e(label_sign_in)+"</a></li>\n";return __p}}),define("tpl!search_contact",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<li>\n    <form class="search-xmpp-contact">\n        <input type="text"\n            name="identifier"\n            class="username"\n            placeholder="'+__e(label_contact_name)+'"/>\n        <button type="submit">'+__e(label_search)+"</button>\n    </form>\n</li>\n";return __p}}),define("tpl!status_option",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<li>\n    <a href="#" class="'+__e(value)+'" data-value="'+__e(value)+'">\n        <span class="icon-'+__e(value)+'"></span>\n        '+__e(text)+"\n    </a>\n</li>\n";return __p}}),define("tpl!group_header",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<a href="#" class="group-toggle icon-'+__e(toggle_state)+'" title="'+__e(desc_group_toggle)+'">'+__e(label_group)+"</a>\n";return __p}}),define("tpl!pending_contact",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)allow_chat_pending_contacts&&(__p+='\n<a class="open-chat"href="#">\n'),__p+='\n<span class="pending-contact-name" title="Name: '+__e(fullname)+"\nJID: "+__e(jid)+'">'+__e(fullname)+"</span> \n",allow_chat_pending_contacts&&(__p+="\n</a>\n"),__p+='\n<a class="remove-xmpp-contact icon-remove" title="'+__e(desc_remove)+'" href="#"></a>\n';return __p}}),define("tpl!requesting_contact",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)allow_chat_pending_contacts&&(__p+='\n<a class="open-chat"href="#">\n'),__p+='\n<span class="req-contact-name" title="Name: '+__e(fullname)+"\nJID: "+__e(jid)+'">'+__e(fullname)+"</span>\n",allow_chat_pending_contacts&&(__p+="\n</a>\n"),__p+='\n<span class="request-actions">\n    <a class="accept-xmpp-request icon-checkmark" aria-label="'+__e(desc_accept)+'" title="'+__e(desc_accept)+'" href="#"></a>\n    <a class="decline-xmpp-request icon-close" aria-label="'+__e(desc_decline)+'" title="'+__e(desc_decline)+'" href="#"></a>\n</span>\n';return __p}}),define("tpl!roster",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<dl class="roster-contacts"></dl>\n';return __p}}),define("tpl!roster_filter",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__j=Array.prototype.join;with(obj)__p+='<form class="pure-form roster-filter-form input-button-group">\n    <input value="'+(null==(__t=filter_text)?"":__t)+'" class="roster-filter roster-filter-'+(null==(__t=filter_type)?"":__t)+'"\n           placeholder="'+(null==(__t=placeholder)?"":__t)+'">\n    <select class="state-type state-type-'+(null==(__t=filter_type)?"":__t)+'">\n        <option value="">'+(null==(__t=label_any)?"":__t)+"</option>\n        <option ",
"unread_messages"===chat_state&&(__p+=' selected="selected" '),__p+='\n            value="unread_messages">'+(null==(__t=label_unread_messages)?"":__t)+"</option>\n        <option ","online"===chat_state&&(__p+=' selected="selected" '),__p+='\n            value="online">'+(null==(__t=label_online)?"":__t)+"</option>\n        <option ","chat"===chat_state&&(__p+=' selected="selected" '),__p+='\n            value="chat">'+(null==(__t=label_chatty)?"":__t)+"</option>\n        <option ","dnd"===chat_state&&(__p+=' selected="selected" '),__p+='\n            value="dnd">'+(null==(__t=label_busy)?"":__t)+"</option>\n        <option ","away"===chat_state&&(__p+=' selected="selected" '),__p+='\n            value="away">'+(null==(__t=label_away)?"":__t)+"</option>\n        <option ","xa"===chat_state&&(__p+=' selected="selected" '),__p+='\n            value="xa">'+(null==(__t=label_xa)?"":__t)+"</option>\n        <option ","offline"===chat_state&&(__p+=' selected="selected" '),__p+='\n            value="offline">'+(null==(__t=label_offline)?"":__t)+'</option>\n    </select>\n    <select class="filter-type">\n        <option ',"contacts"===filter_type&&(__p+=' selected="selected" '),__p+='\n                value="contacts">'+(null==(__t=label_contacts)?"":__t)+"</option>\n        <option ","groups"===filter_type&&(__p+=' selected="selected" '),__p+='\n                value="groups">'+(null==(__t=label_groups)?"":__t)+"</option>\n        <option ","state"===filter_type&&(__p+=' selected="selected" '),__p+='\n                value="state">'+(null==(__t=label_state)?"":__t)+"</option>\n    </select>\n</form>\n";return __p}}),define("tpl!roster_item",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='<a class="open-chat ',num_unread&&(__p+=" unread-msgs "),__p+='"\n   title="'+__e(title_fullname)+": "+__e(fullname)+" JID: "+__e(jid)+" "+__e(desc_chat)+'"\n   href="#">\n    <div class="avatar avatar-'+__e(chat_status)+'">\n        <span class="status-icon icon-'+__e(chat_status)+'" title="'+__e(desc_status)+'"></span>\n    </div>\n    ',num_unread&&(__p+='\n    <span class="msgs-indicator">'+__e(num_unread)+"</span>\n    "),__p+='\n    <span class="contact-name ',num_unread&&(__p+=" unread-msgs "),__p+='">'+__e(fullname)+"</span>\n</a>\n",allow_contact_removal&&(__p+='\n<a class="remove-xmpp-contact icon-remove" title="'+__e(desc_remove)+'" href="#"></a>\n'),__p+="\n\n\n";return __p}}),function(e,n){define("converse-rosterview",["converse-core","tpl!group_header","tpl!pending_contact","tpl!requesting_contact","tpl!roster","tpl!roster_filter","tpl!roster_item"],n)}(this,function(e,n,t,i,r,o,s){"use strict";var a=e.env.jQuery,l=e.env.Backbone,u=e.env.utils,c=e.env.Strophe,h=e.env.$iq,d=e.env.b64_sha1,f=(e.env.sizzle,e.env._);e.plugins.add("converse-rosterview",{overrides:{afterReconnected:function(){this.__super__.afterReconnected.apply(this,arguments)},_tearDown:function(){this.__super__._tearDown.apply(this,arguments),f.isUndefined(this.rosterview)||this.rosterview.remove()},RosterGroups:{comparator:function(){var e=this.__super__._converse;return e.RosterGroupsComparator.apply(this,arguments)}}},initialize:function(){var e=this._converse,p=e.__,m=e.___;e.api.settings.update({allow_chat_pending_contacts:!0,allow_contact_removal:!0,show_toolbar:!0});var g={dnd:p("This contact is busy"),online:p("This contact is online"),offline:p("This contact is offline"),unavailable:p("This contact is unavailable"),xa:p("This contact is away for an extended period"),away:p("This contact is away")},_=p("Contacts"),v=p("Groups"),y=p("My contacts"),b=p("Pending contacts"),w=p("Contact requests"),x=p("Ungrouped"),S={};S[w]=0,S[y]=1,S[x]=2,S[b]=3,e.RosterGroupsComparator=function(e,n){e=e.get("name"),n=n.get("name");var t=f.keys(S),i=f.includes(t,e),r=f.includes(t,n);return i||r?i&&r?S[e]<S[n]?-1:S[e]>S[n]?1:0:!i&&r?n===w?1:-1:i&&!r?e===w?-1:1:void 0:e.toLowerCase()<n.toLowerCase()?-1:e.toLowerCase()>n.toLowerCase()?1:0},e.RosterFilter=l.Model.extend({initialize:function(){this.set({filter_text:"",filter_type:"contacts",chat_state:""})}}),e.RosterFilterView=l.View.extend({tagName:"span",events:{"keydown .roster-filter":"liveFilter","submit form.roster-filter-form":"submitFilter","click .onX":"clearFilter","mousemove .x":"toggleX","change .filter-type":"changeTypeFilter","change .state-type":"changeChatStateFilter"},initialize:function(){this.model.on("change:filter_type",this.render,this),this.model.on("change:filter_text",this.renderClearButton,this)},render:function(){return this.el.innerHTML=o(f.extend(this.model.toJSON(),{placeholder:p("Filter"),label_contacts:_,label_groups:v,label_state:p("State"),label_any:p("Any"),label_unread_messages:p("Unread"),label_online:p("Online"),label_chatty:p("Chatty"),label_busy:p("Busy"),label_away:p("Away"),label_xa:p("Extended Away"),label_offline:p("Offline")})),this.renderClearButton(),this.$el},renderClearButton:function(){var e=this.el.querySelector(".roster-filter");f.isNull(e)||e.classList[this.tog(e.value)]("x")},tog:function(e){return e?"add":"remove"},toggleX:function(e){e&&e.preventDefault&&e.preventDefault();var n=e.target;n.classList[this.tog(n.offsetWidth-18<e.clientX-n.getBoundingClientRect().left)]("onX")},changeChatStateFilter:function(e){e&&e.preventDefault&&e.preventDefault(),this.model.save({chat_state:this.el.querySelector(".state-type").value})},changeTypeFilter:function(e){e&&e.preventDefault&&e.preventDefault();var n=e.target.value;"state"===n?this.model.save({filter_type:n,chat_state:this.el.querySelector(".state-type").value}):this.model.save({filter_type:n,filter_text:this.el.querySelector(".roster-filter").value})},liveFilter:f.debounce(function(e){this.model.save({filter_type:this.el.querySelector(".filter-type").value,filter_text:this.el.querySelector(".roster-filter").value})},250),submitFilter:function(e){e&&e.preventDefault&&e.preventDefault(),this.liveFilter(),this.render()},isActive:function(){return!("state"!==this.model.get("filter_type")&&!this.model.get("filter_text"))},show:function(){return this.$el.is(":visible")?this:(this.$el.show(),this)},hide:function(){if(!this.$el.is(":visible"))return this;if(!(this.el.querySelector(".roster-filter").value.length>0))return this.model.save({filter_text:"",chat_state:""}),this.$el.hide(),this},clearFilter:function(e){e&&e.preventDefault&&(e.preventDefault(),a(e.target).removeClass("x onX").val("")),this.model.save({filter_text:""})}}),e.RosterView=l.Overview.extend({tagName:"div",id:"converse-roster",initialize:function(){e.roster.on("add",this.onContactAdd,this),e.roster.on("change",this.onContactChange,this),e.roster.on("destroy",this.update,this),e.roster.on("remove",this.update,this),this.model.on("add",this.onGroupAdd,this),this.model.on("reset",this.reset,this),e.on("rosterGroupsFetched",this.positionFetchedGroups,this),e.on("rosterContactsFetched",this.update,this),this.createRosterFilter()},render:function(){return this.renderRoster(),this.$el.html(this.filter_view.render()),e.allow_contact_requests||this.el.classList.add("no-contact-requests"),this},renderRoster:function(){this.$roster=a(r()),this.roster=this.$roster[0]},createRosterFilter:function(){var n=new e.RosterFilter;n.id=d("_converse.rosterfilter"+e.bare_jid),n.browserStorage=new l.BrowserStorage.local(this.filter.id),this.filter_view=new e.RosterFilterView({model:n}),this.filter_view.model.on("change",this.updateFilter,this),this.filter_view.model.fetch()},updateFilter:f.debounce(function(){var e=this.filter_view.model.get("filter_type");"state"===e?this.filter(this.filter_view.model.get("chat_state"),e):this.filter(this.filter_view.model.get("filter_text"),e)},100),update:f.debounce(function(){return f.isNull(this.roster.parentElement)&&this.$el.append(this.$roster.show()),this.showHideFilter()},e.animate?100:0),showHideFilter:function(){if(this.$el.is(":visible"))return this.$roster.hasScrollBar()?this.filter_view.show():this.filter_view.isActive()||this.filter_view.hide(),this},filter:function(e,n){f.each(this.getAll(),function(e){e.model.contacts.length>0&&e.show().filter("")}),e=e.toLowerCase(),"groups"===n?f.each(this.getAll(),function(n,t){f.includes(n.model.get("name").toLowerCase(),e.toLowerCase())?n.model.contacts.length>0&&n.show():n.hide()}):f.each(this.getAll(),function(t){t.filter(e,n)})},reset:function(){return e.roster.reset(),this.removeAll(),this.renderRoster(),this.render().update(),this},onGroupAdd:function(n){var t=new e.RosterGroupView({model:n});this.add(n.get("name"),t.render()),this.positionGroup(t)},onContactAdd:function(e){this.addRosterContact(e).update(),this.updateFilter()},onContactChange:function(e){this.updateChatBox(e).update(),f.has(e.changed,"subscription")&&("from"===e.changed.subscription?this.addContactToGroup(e,b):f.includes(["both","to"],e.get("subscription"))&&this.addExistingContact(e)),f.has(e.changed,"ask")&&"subscribe"===e.changed.ask&&this.addContactToGroup(e,b),f.has(e.changed,"subscription")&&"true"===e.changed.requesting&&this.addContactToGroup(e,w),this.updateFilter()},updateChatBox:function(n){var t=e.chatboxes.get(n.get("jid")),i={};return t?(f.has(n.changed,"chat_status")&&(i.chat_status=n.get("chat_status")),f.has(n.changed,"status")&&(i.status=n.get("status")),t.save(i),this):this},positionFetchedGroups:function(){var n=this;this.model.sort(),this.model.each(function(t,i){var r=n.get(t.get("name"));r||(r=new e.RosterGroupView({model:t}),n.add(t.get("name"),r.render())),0===i?n.$roster.append(r.$el):n.appendGroup(r)})},positionGroup:function(e){var n=this.$roster.find(".roster-group"),t=n.length?this.model.indexOf(e.model):0;return 0===t?this.$roster.prepend(e.$el):t===this.model.length-1?this.appendGroup(e):a(n.eq(t)).before(e.$el),this},appendGroup:function(e){var n=this.$roster.find(".roster-group").last(),t=n.siblings("dd");return t.length>0?t.last().after(e.$el):n.after(e.$el),this},getGroup:function(e){var n=this.get(e);return n?n.model:this.model.create({name:e,id:d(e)})},addContactToGroup:function(e,n){this.getGroup(n).contacts.add(e)},addExistingContact:function(n){var t;e.roster_groups?(t=n.get("groups"),0===t.length&&(t=[x])):t=[y],f.each(t,f.bind(this.addContactToGroup,this,n))},addRosterContact:function(e){return"both"===e.get("subscription")||"to"===e.get("subscription")?this.addExistingContact(e):"subscribe"===e.get("ask")||"from"===e.get("subscription")?this.addContactToGroup(e,b):e.get("requesting")===!0&&this.addContactToGroup(e,w),this}}),e.RosterContactView=l.View.extend({tagName:"dd",events:{"click .accept-xmpp-request":"acceptRequest","click .decline-xmpp-request":"declineRequest","click .open-chat":"openChat","click .remove-xmpp-contact":"removeContact"},initialize:function(){this.model.on("change",this.render,this),this.model.on("remove",this.remove,this),this.model.on("destroy",this.remove,this),this.model.on("open",this.openChat,this)},render:function(){var n=this;if(!this.mayBeShown())return this.$el.hide(),this;var r=this.model,o=r.get("ask"),s=r.get("chat_status"),a=r.get("requesting"),l=r.get("subscription"),u=["current-xmpp-contact","pending-xmpp-contact","requesting-xmpp-contact"].concat(f.keys(g));return f.each(u,function(e){f.includes(n.el.className,e)&&n.el.classList.remove(e)}),this.$el.addClass(s).data("status",s),"subscribe"===o||"from"===l?(this.el.classList.add("pending-xmpp-contact"),this.$el.html(t(f.extend(r.toJSON(),{desc_remove:p(m("Click to remove %1$s as a contact"),r.get("fullname")),allow_chat_pending_contacts:e.allow_chat_pending_contacts})))):a===!0?(this.el.classList.add("requesting-xmpp-contact"),this.$el.html(i(f.extend(r.toJSON(),{desc_accept:p(m("Click to accept the contact request from %1$s"),r.get("fullname")),desc_decline:p(m("Click to decline the contact request from %1$s"),r.get("fullname")),allow_chat_pending_contacts:e.allow_chat_pending_contacts})))):"both"!==l&&"to"!==l||(this.el.classList.add("current-xmpp-contact"),this.el.classList.remove(f.without(["both","to"],l)[0]),this.el.classList.add(l),this.renderRosterItem(r)),this},renderRosterItem:function(n){var t=n.get("chat_status");return this.$el.html(s(f.extend(n.toJSON(),{desc_status:g[t||"offline"],desc_chat:p("Click to chat with this contact"),desc_remove:p(m("Click to remove %1$s as a contact"),n.get("fullname")),title_fullname:p("Name"),allow_contact_removal:e.allow_contact_removal,num_unread:n.get("num_unread")||0}))),this},isGroupCollapsed:function(){var n=this.$el.prevAll("dt:first").data("group"),t=f.head(e.rosterview.model.where({name:n.toString()}));return t.get("state")===e.CLOSED},mayBeShown:function(){var n=this.model.get("chat_status");return!(e.show_only_online_users&&"online"!==n||e.hide_offline_users&&"offline"===n)||("subscribe"===this.model.get("ask")||"from"===this.model.get("subscription")||this.model.get("requesting")===!0)},openChat:function(n){return n&&n.preventDefault&&n.preventDefault(),e.chatboxviews.showChat(this.model.attributes,!0)},removeContact:function(n){if(n&&n.preventDefault&&n.preventDefault(),e.allow_contact_removal){var t=confirm(p("Are you sure you want to remove this contact?"));if(t===!0){var i=h({type:"set"}).c("query",{xmlns:c.NS.ROSTER}).c("item",{jid:this.model.get("jid"),subscription:"remove"});e.connection.sendIQ(i,function(e){this.model.destroy(),this.remove()}.bind(this),function(n){alert(p("Sorry, there was an error while trying to remove "+name+" as a contact.")),e.log(n,c.LogLevel.ERROR)})}}},acceptRequest:function(n){n&&n.preventDefault&&n.preventDefault(),e.roster.sendContactAddIQ(this.model.get("jid"),this.model.get("fullname"),[],function(){this.model.authorize().subscribe()}.bind(this))},declineRequest:function(e){e&&e.preventDefault&&e.preventDefault();var n=confirm(p("Are you sure you want to decline this contact request?"));return n===!0&&this.model.unauthorize().destroy(),this}}),e.RosterGroupView=l.Overview.extend({tagName:"dt",className:"roster-group",events:{"click a.group-toggle":"toggle"},initialize:function(){this.model.contacts.on("add",this.addContact,this),this.model.contacts.on("change:subscription",this.onContactSubscriptionChange,this),this.model.contacts.on("change:requesting",this.onContactRequestChange,this),this.model.contacts.on("change:chat_status",function(e){this.model.contacts.sort(),this.positionContact(e).render()},this),this.model.contacts.on("destroy",this.onRemove,this),this.model.contacts.on("remove",this.onRemove,this),e.roster.on("change:groups",this.onContactGroupChange,this)},render:function(){this.el.setAttribute("data-group",this.model.get("name"));var e=n({label_group:this.model.get("name"),desc_group_toggle:this.model.get("description"),toggle_state:this.model.get("state")});return this.el.innerHTML=e,this},addContact:function(n){var t=new e.RosterContactView({model:n});this.add(n.get("id"),t),t=this.positionContact(n).render(),t.mayBeShown()&&(this.model.get("state")===e.CLOSED?("none"!==t.$el[0].style.display&&t.$el.hide(),this.$el.is(":visible")||this.$el.show()):"block"!==this.$el[0].style.display&&this.show())},positionContact:function(e){var n=this.get(e.get("id")),t=this.model.contacts.indexOf(e);return n.$el.detach(),0===t?this.$el.after(n.$el):t===this.model.contacts.length-1?this.$el.nextUntil("dt").last().after(n.$el):this.$el.nextUntil("dt").eq(t).before(n.$el),n},show:function(){return this.$el.show(),f.each(this.getAll(),function(e){e.mayBeShown()&&!e.isGroupCollapsed()&&e.$el.show()}),this},hide:function(){this.$el.nextUntil("dt").addBack().hide()},filter:function(n,t){var i;0===n.length?(this.model.get("state")===e.OPENED&&this.model.contacts.each(function(e){var n=this.get(e.get("id"));n.mayBeShown()&&!n.isGroupCollapsed()&&n.$el.show()}.bind(this)),this.showIfNecessary()):(n=n.toLowerCase(),i="state"===t?this.model.get("name")===w?this.model.contacts.filter(function(e){return u.contains.not("chat_status",n)(e)&&!e.get("requesting")}):"unread_messages"===n?this.model.contacts.filter({num_unread:0}):this.model.contacts.filter(u.contains.not("chat_status",n)):this.model.contacts.filter(u.contains.not("fullname",n)),i.length===this.model.contacts.length?this.hide():(f.each(i,function(e){this.get(e.get("id")).$el.hide()}.bind(this)),f.each(this.model.contacts.reject(u.contains.not("fullname",n)),function(e){this.get(e.get("id")).$el.show()}.bind(this)),this.showIfNecessary()))},showIfNecessary:function(){!this.$el.is(":visible")&&this.model.contacts.length>0&&this.$el.show()},toggle:function(n){n&&n.preventDefault&&n.preventDefault();var t=a(n.target);t.hasClass("icon-opened")?(this.$el.nextUntil("dt").slideUp(),this.model.save({state:e.CLOSED}),t.removeClass("icon-opened").addClass("icon-closed")):(t.removeClass("icon-closed").addClass("icon-opened"),this.model.save({state:e.OPENED}),this.filter(e.rosterview.$(".roster-filter").val()||"",e.rosterview.$(".filter-type").val()))},onContactGroupChange:function(e){var n=f.includes(e.get("groups"),this.model.get("name")),t=e.get("id"),i=!this.get(t);n&&!i?this.model.contacts.remove(t):!n&&i&&this.addContact(e)},onContactSubscriptionChange:function(e){this.model.get("name")===b&&"from"!==e.get("subscription")&&this.model.contacts.remove(e.get("id"))},onContactRequestChange:function(e){this.model.get("name")!==w||e.get("requesting")||(this.model.contacts.remove(e.get("id"),{silent:!0}),this.get(e.get("id")).remove(),this.onRemove(e))},onRemove:function(e){this.remove(e.get("id")),0===this.model.contacts.length&&this.$el.hide()}});var C=function(n){var t=n.model;if("chatroom"!==t.get("type")){var i=f.head(e.roster.where({jid:t.get("jid")}));f.isUndefined(i)||t.isScrolledUp()||i.save({num_unread:0})}},k=function(n){var t=n.chatbox;if(!f.isUndefined(t)&&!f.isNull(n.stanza.querySelector("body"))&&"chatroom"!==t.get("type")&&u.isNewMessage(n.stanza)&&t.newMessageWillBeHidden()){var i=f.head(e.roster.where({jid:t.get("jid")}));f.isUndefined(i)||i.save({num_unread:i.get("num_unread")+1})}},A=function(n){var t=n.chatbox;if(!f.isUndefined(t)){var i=f.head(e.roster.where({jid:t.get("jid")}));f.isUndefined(i)||i.save({num_unread:0})}},T=function(){e.rosterview=new e.RosterView({model:e.rostergroups}),e.rosterview.render()};e.api.listen.on("rosterInitialized",T),e.api.listen.on("rosterReadyAfterReconnection",T),e.api.listen.on("message",k),e.api.listen.on("chatBoxMaximized",C),e.api.listen.on("chatBoxScrolledDown",A)}})}),function(e,n){define("converse-controlbox",["converse-core","tpl!add_contact_dropdown","tpl!add_contact_form","tpl!change_status_message","tpl!chat_status","tpl!choose_status","tpl!contacts_panel","tpl!contacts_tab","tpl!controlbox","tpl!controlbox_toggle","tpl!login_panel","tpl!login_tab","tpl!search_contact","tpl!status_option","converse-chatview","converse-rosterview"],n)}(this,function(e,n,t,i,r,o,s,a,l,u,c,h,d,f){"use strict";var p="users",m="chatbox",g=e.env.Strophe,_=e.env.Backbone,v=e.env.utils,y=e.env.jQuery,b=e.env._,w=e.env.fp,x=e.env.moment;e.plugins.add("converse-controlbox",{overrides:{initChatBoxes:function(){this.__super__.initChatBoxes.apply(this,arguments),this.controlboxtoggle=new this.ControlBoxToggle},initConnection:function(){this.__super__.initConnection.apply(this,arguments),this.connection&&this.addControlBox()},_tearDown:function(){this.__super__._tearDown.apply(this,arguments),this.rosterview&&(this.rosterview.model.off().reset(),this.rosterview.each(function(e){e.removeAll(),e.remove()}),this.rosterview.removeAll().remove())},clearSession:function(){this.__super__.clearSession.apply(this,arguments);var e=this.chatboxes.get("controlbox");e&&e.collection&&e.collection.browserStorage&&e.save({connected:!1})},ChatBoxes:{chatBoxMayBeShown:function(e){return this.__super__.chatBoxMayBeShown.apply(this,arguments)&&"controlbox"!==e.get("id")},onChatBoxesFetched:function(e,n){var t=this.__super__._converse;this.__super__.onChatBoxesFetched.apply(this,arguments),b.includes(b.map(e,"id"),"controlbox")||t.addControlBox(),this.get("controlbox").save({connected:!0})}},ChatBoxViews:{onChatBoxAdded:function(e){var n=this.__super__._converse;if("controlbox"===e.get("box_id")){var t=this.get(e.get("id"));return t?(t.model=e,t.initialize(),t):(t=new n.ControlBoxView({model:e}),this.add(e.get("id"),t))}return this.__super__.onChatBoxAdded.apply(this,arguments)},closeAllChatBoxes:function(){var e=this.__super__._converse;return this.each(function(n){("controlbox"!==n.model.get("id")||e.disconnection_cause===e.LOGOUT&&!e.show_controlbox_by_default)&&n.close()}),this},getChatBoxWidth:function(e){var n=this.__super__._converse,t=this.get("controlbox");return"controlbox"===e.model.get("id")?t&&t.$el.is(":visible")?t.$el.outerWidth(!0):n.controlboxtoggle.$el.outerWidth(!0):this.__super__.getChatBoxWidth.apply(this,arguments)}},ChatBox:{initialize:function(){"controlbox"===this.get("id")?this.set({time_opened:x(0).valueOf()}):this.__super__.initialize.apply(this,arguments)}},ChatBoxView:{insertIntoDOM:function(){var e=this.__super__._converse;return this.$el.insertAfter(e.chatboxviews.get("controlbox").$el),this}}},initialize:function(){var e=this._converse,x=e.__;e.api.settings.update({allow_logout:!0,default_domain:void 0,show_controlbox_by_default:!1,sticky_controlbox:!1,xhr_user_search:!1,xhr_user_search_url:""});var S=x("Contacts");e.addControlBox=function(){return e.chatboxes.add({id:"controlbox",box_id:"controlbox",closed:!e.show_controlbox_by_default})},e.ControlBoxView=e.ChatBoxView.extend({tagName:"div",className:"chatbox",id:"controlbox",events:{"click a.close-chatbox-button":"close","click ul#controlbox-tabs li a":"switchTab"},initialize:function(){this.$el.insertAfter(e.controlboxtoggle.$el),this.model.on("change:connected",this.onConnected,this),this.model.on("destroy",this.hide,this),this.model.on("hide",this.hide,this),this.model.on("show",this.show,this),this.model.on("change:closed",this.ensureClosedState,this),this.render(),this.model.get("connected")&&this.insertRoster()},render:function(){return this.model.get("connected")&&b.isUndefined(this.model.get("closed"))&&this.model.set("closed",!e.show_controlbox_by_default),this.model.get("closed")?this.hide():this.show(),this.el.innerHTML=l(b.extend(this.model.toJSON(),{sticky_controlbox:e.sticky_controlbox})),e.connection.connected&&e.connection.authenticated&&!e.connection.disconnecting?!this.model.get("connected")||this.contactspanel&&this.contactspanel.$el.is(":visible")||this.renderContactsPanel():this.renderLoginPanel(),this},onConnected:function(){this.model.get("connected")&&(this.render().insertRoster(),this.model.save())},insertRoster:function(){return this.contactspanel.$el.append(e.rosterview.$el),this},renderLoginPanel:function(){return this.loginpanel=new e.LoginPanel({$parent:this.$el.find(".controlbox-panes"),model:this}),this.loginpanel.render(),this},renderContactsPanel:function(){b.isUndefined(this.model.get("active-panel"))&&this.model.save({"active-panel":p}),this.contactspanel=new e.ContactsPanel({$parent:this.$el.find(".controlbox-panes")}),this.contactspanel.insertIntoDOM(),e.xmppstatusview=new e.XMPPStatusView({model:e.xmppstatus}),e.xmppstatusview.render()},close:function(n){if(n&&n.preventDefault&&n.preventDefault(),!e.sticky_controlbox)return e.connection.connected&&!e.connection.disconnecting?this.model.save({closed:!0}):this.model.trigger("hide"),e.emit("controlBoxClosed",this),this},ensureClosedState:function(){this.model.get("closed")?this.hide():this.show()},hide:function(n){if(!e.sticky_controlbox)return this.$el.addClass("hidden"),v.refreshWebkit(),e.emit("chatBoxClosed",this),e.connection.connected||e.controlboxtoggle.render(),e.controlboxtoggle.show(n),this},onControlBoxToggleHidden:function(){var n=this;v.fadeIn(this.el,function(){e.controlboxtoggle.updateOnlineCount(),v.refreshWebkit(),n.model.set("closed",!1),e.emit("controlBoxOpened",n)})},show:function(){return e.controlboxtoggle.hide(this.onControlBoxToggleHidden.bind(this)),this},switchTab:function(n){n&&n.preventDefault&&n.preventDefault();var t=y(n.target),i=t.parent().siblings("li").children("a"),r=y(t.attr("href"));return y(i.attr("href")).addClass("hidden"),i.removeClass("current"),t.addClass("current"),r.removeClass("hidden"),b.isUndefined(e.chatboxes.browserStorage)||this.model.save({"active-panel":t.data("id")}),this},showHelpMessages:function(){}}),e.LoginPanel=_.View.extend({tagName:"div",id:"login-dialog",className:"controlbox-pane",events:{"submit form#converse-login":"authenticate"},initialize:function(n){n.$parent.html(this.$el.html(c({ANONYMOUS:e.ANONYMOUS,EXTERNAL:e.EXTERNAL,LOGIN:e.LOGIN,PREBIND:e.PREBIND,auto_login:e.auto_login,authentication:e.authentication,label_username:x("XMPP Username:"),label_password:x("Password:"),label_anon_login:x("Click here to log in anonymously"),label_login:x("Log In"),placeholder_username:(e.locked_domain||e.default_domain)&&x("Username")||x("user@server"),placeholder_password:x("password")}))),this.$tabs=n.$parent.parent().find("#controlbox-tabs")},render:function(){return this.$tabs.append(h({label_sign_in:x("Sign in")})),this.$el.find("input#jid").focus(),this.$el.is(":visible")||this.$el.show(),this},authenticate:function(n){n&&n.preventDefault&&n.preventDefault();var t=y(n.target);if(e.authentication===e.ANONYMOUS)return void this.connect(t,e.jid,null);var i=t.find("input[name=jid]"),r=i.val(),o=t.find("input[name=password]"),s=o.val(),a=!1;return r||(a=!0,i.addClass("error")),s||e.authentication===e.EXTERNAL||(a=!0,o.addClass("error")),a?void 0:(e.locked_domain?r=g.escapeNode(r)+"@"+e.locked_domain:e.default_domain&&!b.includes(r,"@")&&(r=r+"@"+e.default_domain),this.connect(t,r,s),!1)},connect:function(n,t,i){var r;n&&n.find("input[type=submit]").hide().after('<span class="spinner login-submit"/>'),t&&(r=g.getResourceFromJid(t),t=r?g.getBareJidFromJid(t).toLowerCase()+"/"+r:t.toLowerCase()+e.generateResource()),e.connection.reset(),e.connection.connect(t,i,e.onConnectStatusChanged)},remove:function(){this.$tabs.empty(),this.$el.parent().empty()}}),e.XMPPStatusView=_.View.extend({el:"form#set-xmpp-status",events:{"click a.choose-xmpp-status":"toggleOptions","click #fancy-xmpp-status-select a.change-xmpp-status-message":"renderStatusChangeForm",submit:"setStatusMessage","click .dropdown dd ul li a":"setStatus"},initialize:function(){this.model.on("change:status",this.updateStatusUI,this),this.model.on("change:status_message",this.updateStatusUI,this),this.model.on("update-status-ui",this.updateStatusUI,this)},render:function(){var e,n=this.$el.find("select#select-xmpp-status"),t=this.model.get("status")||"offline",i=y("option",n),s=[];return this.$el.html(o()),this.$el.find("#fancy-xmpp-status-select").html(r({status_message:this.model.get("status_message")||x("I am %1$s",this.getPrettyStatus(t)),chat_status:t,desc_custom_status:x("Click here to write a custom status message"),desc_change_status:x("Click to change your chat status")})),i.each(function(){s.push(f({value:y(this).val(),text:this.text}))}),e=this.$el.find("#target dd ul").hide(),e.append(s.join("")),n.remove(),this},toggleOptions:function(e){e.preventDefault(),y(e.target).parent().parent().siblings("dd").find("ul").toggle("fast")},renderStatusChangeForm:function(n){n.preventDefault();var t=e.xmppstatus.get("status_message")||"",r=i({status_message:t,label_custom_status:x("Custom status"),label_save:x("Save")}),o=this.$el.find(".xmpp-status");o.parent().addClass("no-border"),o.replaceWith(r),this.$el.find(".custom-xmpp-status").focus().focus()},setStatusMessage:function(e){e.preventDefault(),this.model.setStatusMessage(y(e.target).find("input").val())},setStatus:function(n){n.preventDefault();var t=y(n.currentTarget),i=t.attr("data-value");"logout"===i?(this.$el.find(".dropdown dd ul").hide(),e.logOut()):(this.model.setStatus(i),this.$el.find(".dropdown dd ul").hide())},getPrettyStatus:function(e){return"chat"===e?x("online"):"dnd"===e?x("busy"):"xa"===e?x("away for long"):"away"===e?x("away"):"offline"===e?x("offline"):x(e)||x("online")},updateStatusUI:function(e){var n=e.get("status"),t=e.get("status_message")||x("I am %1$s",this.getPrettyStatus(n));this.$el.find("#fancy-xmpp-status-select").removeClass("no-border").html(r({chat_status:n,status_message:t,desc_custom_status:x("Click here to write a custom status message"),desc_change_status:x("Click to change your chat status")}))}}),e.ContactsPanel=_.View.extend({tagName:"div",className:"controlbox-pane",id:"users",events:{"click a.toggle-xmpp-contact-form":"toggleContactForm","submit form.add-xmpp-contact":"addContactFromForm","submit form.search-xmpp-contact":"searchContacts","click a.subscribe-to-user":"addContactFromList"},initialize:function(n){this.parent_el=n.$parent[0],this.tab_el=document.createElement("li"),e.chatboxes.on("change:num_unread",this.renderTab,this),e.chatboxes.on("add",b.debounce(this.renderTab,100),this)},render:function(){this.renderTab();var t=s({label_online:x("Online"),label_busy:x("Busy"),label_away:x("Away"),label_offline:x("Offline"),label_logout:x("Log out"),include_offline_state:e.include_offline_state,allow_logout:e.allow_logout});e.allow_contact_requests&&(t+=n({label_click_to_chat:x("Click to add new chat contacts"),label_add_contact:x("Add a contact")})),this.el.innerHTML=t;var i=e.chatboxes.get("controlbox");return i.get("active-panel")!==p&&this.el.classList.add("hidden"),this},renderTab:function(){var n=e.chatboxes.get("controlbox"),t=w.filter(b.partial(v.isOfType,m),e.chatboxes.models);this.tab_el.innerHTML=a({label_contacts:S,is_current:n.get("active-panel")===p,num_unread:w.sum(w.map(w.curry(v.getAttribute)("num_unread"),t))})},insertIntoDOM:function(){return this.parent_el.appendChild(this.render().el),this.tabs=this.parent_el.parentNode.querySelector("#controlbox-tabs"),this.tabs.appendChild(this.tab_el),this.$(".search-xmpp ul").append(this.generateAddContactHTML()),this},generateAddContactHTML:function(){return e.xhr_user_search?d({label_contact_name:x("Contact name"),label_search:x("Search")}):t({label_contact_username:x("e.g. user@example.org"),label_add:x("Add")})},toggleContactForm:function(e){e.preventDefault(),this.$el.find(".search-xmpp").toggle("fast",function(){y(this).is(":visible")&&y(this).find("input.username").focus()})},searchContacts:function(n){n.preventDefault(),y.getJSON(e.xhr_user_search_url+"?q="+y(n.target).find("input.username").val(),function(e){var n=y(".search-xmpp ul");n.find("li.found-user").remove(),n.find("li.chat-info").remove(),e.length||n.append('<li class="chat-info">'+x("No users found")+"</li>"),y(e).each(function(e,t){n.append(y('<li class="found-user"></li>').append(y('<a class="subscribe-to-user" href="#" title="'+x("Click to add as a chat contact")+'"></a>').attr("data-recipient",g.getNodeFromJid(t.id)+"@"+g.getDomainFromJid(t.id)).text(t.fullname)))})})},addContactFromForm:function(n){n.preventDefault();var t=y(n.target).find("input"),i=t.val();return i?(e.roster.addAndSubscribe(i),void y(".search-xmpp").hide()):void t.addClass("error")},addContactFromList:function(n){n.preventDefault();var t=y(n.target),i=t.attr("data-recipient"),r=t.text();e.roster.addAndSubscribe(i,r),t.parent().remove(),y(".search-xmpp").hide()}}),e.ControlBoxToggle=_.View.extend({tagName:"a",className:"toggle-controlbox hidden",id:"toggle-controlbox",events:{click:"onClick"},attributes:{href:"#"},initialize:function(){e.chatboxviews.$el.prepend(this.render()),this.updateOnlineCount();var n=this;e.on("initialized",function(){e.roster.on("add",n.updateOnlineCount,n),e.roster.on("change",n.updateOnlineCount,n),e.roster.on("destroy",n.updateOnlineCount,n),e.roster.on("remove",n.updateOnlineCount,n)})},render:function(){return this.$el.html(u({label_toggle:x("Toggle chat")}))},updateOnlineCount:b.debounce(function(){if(!b.isUndefined(e.roster)){var n=this.$("#online-count");n.text("("+e.roster.getNumOnlineContacts()+")"),n.is(":visible")||n.show()}},e.animate?100:0),hide:function(e){this.el.classList.add("hidden"),
e()},show:function(e){v.fadeIn(this.el,e)},showControlBox:function(){var n=e.chatboxes.get("controlbox");n||(n=e.addControlBox()),e.connection.connected?n.save({closed:!1}):n.trigger("show")},onClick:function(n){if(n.preventDefault(),y("div#controlbox").is(":visible")){var t=e.chatboxes.get("controlbox");e.connection.connected?t.save({closed:!0}):t.trigger("hide")}else this.showControlBox()}});var C=function(){var n=e.chatboxviews.get("controlbox");n.model.set({connected:!1}),n.$("#controlbox-tabs").empty(),n.renderLoginPanel()};e.on("disconnected",C);var k=function(){var n=e.chatboxviews.get("controlbox");n.model.get("connected")?e.chatboxviews.get("controlbox").onConnected():n.model.set({connected:!0})};e.on("reconnected",k)}})}),define("tpl!chatarea",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='<div class="chat-area">\n    <div class="chat-content ',show_send_button&&(__p+="chat-content-sendbutton"),__p+='"></div>\n    <div class="new-msgs-indicator hidden">▼ '+__e(unread_msgs)+' ▼</div>\n    <form class="sendXMPPMessage" action="" method="post">\n        ',show_toolbar&&(__p+='\n            <ul class="chat-toolbar no-text-select"></ul>\n        '),__p+='\n        <textarea type="text" class="chat-textarea ',show_send_button&&(__p+="chat-textarea-send-button"),__p+='"\n            placeholder="'+__e(label_message)+'"/>\n    ',show_send_button&&(__p+='\n        <button type="submit" class="pure-button send-button">'+__e(label_send)+"</button>\n    "),__p+="\n    </form>\n</div>\n";return __p}}),define("tpl!chatroom",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div class="flyout box-flyout">\n    <div class="chat-head chat-head-chatroom"></div>\n    <div class="chat-body chatroom-body"><span class="spinner centered"/></div>\n</div>\n';return __p}}),define("tpl!chatroom_disconnect",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<p class="disconnect-msg">'+__e(disconnect_message)+"</p>\n";return __p}}),define("tpl!chatroom_features",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)has_features&&(__p+='\n<p class="occupants-heading">'+__e(label_features)+"</p>\n"),__p+='\n<ul class="features-list">\n',passwordprotected&&(__p+='\n<li class="feature" title="'+__e(tt_passwordprotected)+'"><span class="icon-lock-2"></span>'+__e(label_passwordprotected)+"</li>\n"),__p+="\n",unsecured&&(__p+='\n<li class="feature" title="'+__e(tt_unsecured)+'"><span class="icon-unlocked"></span>'+__e(label_unsecured)+"</li>\n"),__p+="\n",hidden&&(__p+='\n<li class="feature" title="'+__e(tt_hidden)+'"><span class="icon-eye-blocked"></span>'+__e(label_hidden)+"</li>\n"),__p+="\n",public&&(__p+='\n<li class="feature" title="'+__e(tt_public)+'"><span class="icon-eye"></span>'+__e(label_public)+"</li>\n"),__p+="\n",membersonly&&(__p+='\n<li class="feature" title="'+__e(tt_membersonly)+'"><span class="icon-address-book"></span>'+__e(label_membersonly)+"</li>\n"),__p+="\n",open&&(__p+='\n<li class="feature" title="'+__e(tt_open)+'"><span class="icon-globe"></span>'+__e(label_open)+"</li>\n"),__p+="\n",persistent&&(__p+='\n<li class="feature" title="'+__e(tt_persistent)+'"><span class="icon-save"></span>'+__e(label_persistent)+"</li>\n"),__p+="\n",temporary&&(__p+='\n<li class="feature" title="'+__e(tt_temporary)+'"><span class="icon-snowflake"></span>'+__e(label_temporary)+"</li>\n"),__p+="\n",nonanonymous&&(__p+='\n<li class="feature" title="'+__e(tt_nonanonymous)+'"><span class="icon-idcard-dark"></span>'+__e(label_nonanonymous)+"</li>\n"),__p+="\n",semianonymous&&(__p+='\n<li class="feature" title="'+__e(tt_semianonymous)+'"><span class="icon-info"></span>'+__e(label_semianonymous)+"</li>\n"),__p+="\n",moderated&&(__p+='\n<li class="feature" title="'+__e(tt_moderated)+'"><span class="icon-legal"></span>'+__e(label_moderated)+"</li>\n"),__p+="\n",unmoderated&&(__p+='\n<li class="feature" title="'+__e(tt_unmoderated)+'"><span class="icon-info"></span>'+__e(label_unmoderated)+"</li>\n"),__p+="\n",mam_enabled&&(__p+='\n<li class="feature" title="'+__e(tt_mam_enabled)+'"><span class="icon-database"></span>'+__e(label_mam_enabled)+"</li>\n"),__p+="\n</ul>\n";return __p}}),define("tpl!chatroom_form",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<div class="chatroom-form-container">\n    <form class="pure-form pure-form-stacked converse-form chatroom-form">\n        <fieldset>\n            <span class="spinner centered"/>\n        </fieldset>\n    </form>\n</div>\n';return __p}}),define("tpl!chatroom_head",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='<a class="chatbox-btn close-chatbox-button icon-close" title="'+__e(info_close)+'"></a>\n',"owner"==affiliation&&(__p+='\n    <a class="chatbox-btn configure-chatroom-button icon-wrench" title="'+__e(info_configure)+' "></a>\n'),__p+='\n<div class="chat-title" title="'+__e(jid)+'">\n    '+__e(name)+'\n    <p class="chatroom-description">'+__e(description)+"<p/>\n</div>\n";return __p}}),define("tpl!chatroom_invite",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<form class="pure-form room-invite">\n    <input class="invited-contact" placeholder="'+__e(label_invitation)+'" type="text"/>\n</form>\n';return __p}}),define("tpl!chatroom_nickname_form",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<div class="chatroom-form-container">\n    <form class="pure-form converse-form chatroom-form converse-centered-form">\n        <fieldset>\n            <label>'+__e(heading)+'</label>\n            <p class="validation-message">'+__e(validation_message)+'</p>\n            <input type="text" required="required" name="nick" class="new-chatroom-nick" placeholder="'+__e(label_nickname)+'"/>\n        </fieldset>\n        <fieldset>\n            <input type="submit" class="pure-button button-primary" name="join" value="'+__e(label_join)+'"/>\n        </fieldset>\n    </form>\n</div>\n';return __p}}),define("tpl!chatroom_password_form",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<div class="chatroom-form-container">\n    <form class="pure-form converse-form chatroom-form">\n        <fieldset>\n            <legend>'+__e(heading)+"</legend>\n            <label>"+__e(label_password)+'</label>\n            <input type="password" name="password"/>\n        </fieldset>\n        <fieldset>\n            <input class="pure-button button-primary" type="submit" value="'+__e(label_submit)+'"/>\n        </fieldset>\n    </form>\n</div>\n';return __p}}),define("tpl!chatroom_sidebar",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<!-- <div class="occupants"> -->\n<p class="occupants-heading">'+__e(label_occupants)+'</p>\n<ul class="occupant-list"></ul>\n<div class="chatroom-features"></div>\n<!-- </div> -->\n';return __p}}),define("tpl!chatroom_toolbar",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)show_emoticons&&(__p+='\n    <li class="toggle-smiley icon-happy" title="'+__e(label_insert_smiley)+'">\n        <ul class="toolbar-picker-panel">\n            <li><a class="icon-smiley" href="#" data-emoticon=":)"></a></li>\n            <li><a class="icon-wink" href="#" data-emoticon=";)"></a></li>\n            <li><a class="icon-grin" href="#" data-emoticon=":D"></a></li>\n            <li><a class="icon-tongue" href="#" data-emoticon=":P"></a></li>\n            <li><a class="icon-cool" href="#" data-emoticon="8)"></a></li>\n            <li><a class="icon-evil" href="#" data-emoticon=">:)"></a></li>\n            <li><a class="icon-confused" href="#" data-emoticon=":S"></a></li>\n            <li><a class="icon-wondering" href="#" data-emoticon=":\\"></a></li>\n            <li><a class="icon-angry" href="#" data-emoticon=">:("></a></li>\n            <li><a class="icon-sad" href="#" data-emoticon=":("></a></li>\n            <li><a class="icon-shocked" href="#" data-emoticon=":O"></a></li>\n            <li><a class="icon-thumbs-up" href="#" data-emoticon="(^.^)b"></a></li>\n            <li><a class="icon-heart" href="#" data-emoticon="<3"></a></li>\n        </ul>\n    </li>\n'),__p+="\n",show_call_button&&(__p+='\n<li class="toggle-call"><a class="icon-phone" title="'+__e(label_start_call)+'"></a></li>\n'),__p+="\n",show_occupants_toggle&&(__p+='\n<li class="toggle-occupants"><a class="icon-hide-users" title="'+__e(label_hide_occupants)+'"></a></li>\n'),__p+="\n",show_clear_button&&(__p+='\n<li class="toggle-clear"><a class="icon-trash" title="'+__e(label_clear)+'"></a></li>\n'),__p+="\n\n";return __p}}),define("tpl!chatrooms_tab",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='<a class="s rooms-tab\n   ',is_current&&(__p+=" current "),__p+="\n   ",num_unread&&(__p+=" unread-msgs "),__p+='"\n       data-id="chatrooms" href="#chatrooms">\n    '+(null==(__t=label_rooms)?"":__t)+"\n    ",num_unread&&(__p+='\n        <span class="msgs-indicator">'+__e(num_unread)+"</span>\n    "),__p+="\n</a>\n";return __p}}),define("tpl!info",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<div class="chat-info">'+__e(message)+"</div>\n";return __p}}),define("tpl!occupant",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='<li class="'+__e(role)+' occupant" id="'+__e(id)+'"\n    ',"moderator"===role&&(__p+='\n       title="'+__e(jid)+" "+__e(desc_moderator)+" "+__e(hint_occupant)+'"\n    '),__p+="\n    ","occupant"===role&&(__p+='\n       title="'+__e(jid)+" "+__e(desc_occupant)+" "+__e(hint_occupant)+'"\n    '),__p+="\n    ","visitor"===role&&(__p+='\n       title="'+__e(jid)+" "+__e(desc_visitor)+" "+__e(hint_occupant)+'"\n    '),__p+="\n    ",_.includes(["visitor","occupant","moderator"],role)||(__p+='\n       title="'+__e(jid)+" "+__e(hint_occupant)+'"\n       '),__p+='><div class="occupant-status occupant-'+__e(show)+' circle" title="'+__e(hint_show)+'"></div>'+__e(nick)+"</li>\n";return __p}}),define("tpl!room_description",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='<!-- FIXME: check markup in mockup -->\n<div class="room-info">\n<p class="room-info"><strong>'+__e(label_server)+"</strong> "+__e(server)+'</p>\n<p class="room-info"><strong>'+__e(label_desc)+"</strong> "+__e(desc)+'</p>\n<p class="room-info"><strong>'+__e(label_occ)+"</strong> "+__e(occ)+'</p>\n<p class="room-info"><strong>'+__e(label_features)+"</strong>\n    <ul>\n        ",passwordprotected&&(__p+='\n        <li class="room-info locked">'+__e(label_requires_auth)+"</li>\n        "),__p+="\n        ",hidden&&(__p+='\n        <li class="room-info">'+__e(label_hidden)+"</li>\n        "),__p+="\n        ",membersonly&&(__p+='\n        <li class="room-info">'+__e(label_requires_invite)+"</li>\n        "),__p+="\n        ",moderated&&(__p+='\n        <li class="room-info">'+__e(label_moderated)+"</li>\n        "),__p+="\n        ",nonanonymous&&(__p+='\n        <li class="room-info">'+__e(label_non_anon)+"</li>\n        "),__p+="\n        ",open&&(__p+='\n        <li class="room-info">'+__e(label_open_room)+"</li>\n        "),__p+="\n        ",persistent&&(__p+='\n        <li class="room-info">'+__e(label_permanent_room)+"</li>\n        "),__p+="\n        ",publicroom&&(__p+='\n        <li class="room-info">'+__e(label_public)+"</li>\n        "),__p+="\n        ",semianonymous&&(__p+='\n        <li class="room-info">'+__e(label_semi_anon)+"</li>\n        "),__p+="\n        ",temporary&&(__p+='\n        <li class="room-info">'+__e(label_temp_room)+"</li>\n        "),__p+="\n        ",unmoderated&&(__p+='\n        <li class="room-info">'+__e(label_unmoderated)+"</li>\n        "),__p+="\n    </ul>\n</p>\n</div>\n";return __p}}),define("tpl!room_item",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<dd class="available-chatroom">\n<a class="open-room" data-room-jid="'+__e(jid)+'"\n   title="'+__e(open_title)+'" href="#">'+__e(_.escape(name))+'</a>\n<a class="right room-info icon-room-info" data-room-jid="'+__e(jid)+'"\n   title="'+__e(info_title)+'" href="#">&nbsp;</a>\n</dd>\n';return __p}}),define("tpl!room_panel",["lodash"],function(_){return function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__j=Array.prototype.join;with(obj)__p+='<form class="pure-form pure-form-stacked converse-form add-chatroom" action="" method="post">\n    <fieldset>\n        <label>'+(null==(__t=label_room_name)?"":__t)+'</label>\n        <input type="text" name="chatroom" class="new-chatroom-name" placeholder="'+(null==(__t=label_room_name)?"":__t)+'"/>\n        ',"hidden"!=server_input_type&&(__p+="\n            <label"+(null==(__t=server_label_global_attr)?"":__t)+">"+(null==(__t=label_server)?"":__t)+"</label>\n        "),__p+='\n        <input type="'+(null==(__t=server_input_type)?"":__t)+'" name="server" class="new-chatroom-server" placeholder="'+(null==(__t=label_server)?"":__t)+'"/>\n        <input type="submit" class="pure-button button-primary" name="join" value="'+(null==(__t=label_join)?"":__t)+'"/>\n        <input type="button" class="pure-button button-secondary" name="show" id="show-rooms" value="'+(null==(__t=label_show_rooms)?"":__t)+'"/>\n    </fieldset>\n</form>\n<div class="rooms-list-container">\n    <dl id="available-chatrooms" class="rooms-list"></dl>\n</div>\n';return __p}}),function(){function e(e){var n=Array.isArray(e)?{label:e[0],value:e[1]}:"object"==typeof e&&"label"in e&&"value"in e?e:{label:e,value:e};this.label=n.label||n.value,this.value=n.value}function n(e,n,t){for(var i in n){var r=n[i],o=e.input.getAttribute("data-"+i.toLowerCase());"number"==typeof r?e[i]=parseInt(o):r===!1?e[i]=null!==o:r instanceof Function?e[i]=null:e[i]=o,e[i]||0===e[i]||(e[i]=i in t?t[i]:r)}}function t(e,n){return"string"==typeof e?(n||document).querySelector(e):e||null}function i(e,n){return s.call((n||document).querySelectorAll(e))}function r(){i("input.awesomplete").forEach(function(e){new o(e)})}var o=function(e,i){var r=this;this.isOpened=!1,this.input=t(e),this.input.setAttribute("autocomplete","off"),this.input.setAttribute("aria-autocomplete","list"),i=i||{},n(this,{minChars:2,maxItems:10,autoFirst:!1,data:o.DATA,filter:o.FILTER_CONTAINS,sort:i.sort!==!1&&o.SORT_BYLENGTH,item:o.ITEM,replace:o.REPLACE},i),this.index=-1,this.container=t.create("div",{className:"awesomplete",around:e}),this.ul=t.create("ul",{hidden:"hidden",inside:this.container}),this.status=t.create("span",{className:"visually-hidden",role:"status","aria-live":"assertive","aria-relevant":"additions",inside:this.container}),this._events={input:{input:this.evaluate.bind(this),blur:this.close.bind(this,{reason:"blur"}),keydown:function(e){var n=e.keyCode;r.opened&&(13===n&&r.selected?(e.preventDefault(),r.select()):27===n?r.close({reason:"esc"}):38!==n&&40!==n||(e.preventDefault(),r[38===n?"previous":"next"]()))}},form:{submit:this.close.bind(this,{reason:"submit"})},ul:{mousedown:function(e){var n=e.target;if(n!==this){for(;n&&!/li/i.test(n.nodeName);)n=n.parentNode;n&&0===e.button&&(e.preventDefault(),r.select(n,e.target))}}}},t.bind(this.input,this._events.input),t.bind(this.input.form,this._events.form),t.bind(this.ul,this._events.ul),this.input.hasAttribute("list")?(this.list="#"+this.input.getAttribute("list"),this.input.removeAttribute("list")):this.list=this.input.getAttribute("data-list")||i.list||[],o.all.push(this)};o.prototype={set list(e){if(Array.isArray(e))this._list=e;else if("string"==typeof e&&e.indexOf(",")>-1)this._list=e.split(/\s*,\s*/);else if(e=t(e),e&&e.children){var n=[];s.apply(e.children).forEach(function(e){if(!e.disabled){var t=e.textContent.trim(),i=e.value||t,r=e.label||t;""!==i&&n.push({label:r,value:i})}}),this._list=n}document.activeElement===this.input&&this.evaluate()},get selected(){return this.index>-1},get opened(){return this.isOpened},close:function(e){this.opened&&(this.ul.setAttribute("hidden",""),this.isOpened=!1,this.index=-1,t.fire(this.input,"awesomplete-close",e||{}))},open:function(){this.ul.removeAttribute("hidden"),this.isOpened=!0,this.autoFirst&&this.index===-1&&this.goto(0),t.fire(this.input,"awesomplete-open")},destroy:function(){t.unbind(this.input,this._events.input),t.unbind(this.input.form,this._events.form);var e=this.container.parentNode;e.insertBefore(this.input,this.container),e.removeChild(this.container),this.input.removeAttribute("autocomplete"),this.input.removeAttribute("aria-autocomplete");var n=o.all.indexOf(this);n!==-1&&o.all.splice(n,1)},next:function(){var e=this.ul.children.length;this.goto(this.index<e-1?this.index+1:e?0:-1)},previous:function(){var e=this.ul.children.length,n=this.index-1;this.goto(this.selected&&n!==-1?n:e-1)},goto:function(e){var n=this.ul.children;this.selected&&n[this.index].setAttribute("aria-selected","false"),this.index=e,e>-1&&n.length>0&&(n[e].setAttribute("aria-selected","true"),this.status.textContent=n[e].textContent,this.ul.scrollTop=n[e].offsetTop-this.ul.clientHeight+n[e].clientHeight,t.fire(this.input,"awesomplete-highlight",{text:this.suggestions[this.index]}))},select:function(e,n){if(e?this.index=t.siblingIndex(e):e=this.ul.children[this.index],e){var i=this.suggestions[this.index],r=t.fire(this.input,"awesomplete-select",{text:i,origin:n||e});r&&(this.replace(i),this.close({reason:"select"}),t.fire(this.input,"awesomplete-selectcomplete",{text:i}))}},evaluate:function(){var n=this,t=this.input.value;t.length>=this.minChars&&this._list.length>0?(this.index=-1,this.ul.innerHTML="",this.suggestions=this._list.map(function(i){return new e(n.data(i,t))}).filter(function(e){return n.filter(e,t)}),this.sort!==!1&&(this.suggestions=this.suggestions.sort(this.sort)),this.suggestions=this.suggestions.slice(0,this.maxItems),this.suggestions.forEach(function(e){n.ul.appendChild(n.item(e,t))}),0===this.ul.children.length?this.close({reason:"nomatches"}):this.open()):this.close({reason:"nomatches"})}},o.all=[],o.FILTER_CONTAINS=function(e,n){return RegExp(t.regExpEscape(n.trim()),"i").test(e)},o.FILTER_STARTSWITH=function(e,n){return RegExp("^"+t.regExpEscape(n.trim()),"i").test(e)},o.SORT_BYLENGTH=function(e,n){return e.length!==n.length?e.length-n.length:e<n?-1:1},o.ITEM=function(e,n){n=n.trim();var t=document.createElement("li");t.setAttribute("aria-selected","false");var i=new RegExp("("+n+")","ig"),r=n?e.split(i):[e];return r.forEach(function(e){if(n&&e.match(i)){var r=document.createElement("mark");r.textContent=e,t.appendChild(r)}else t.appendChild(document.createTextNode(e))}),t},o.REPLACE=function(e){this.input.value=e.value},o.DATA=function(e){return e},Object.defineProperty(e.prototype=Object.create(String.prototype),"length",{get:function(){return this.label.length}}),e.prototype.toString=e.prototype.valueOf=function(){return""+this.label};var s=Array.prototype.slice;return t.create=function(e,n){var i=document.createElement(e);for(var r in n){var o=n[r];if("inside"===r)t(o).appendChild(i);else if("around"===r){var s=t(o);s.parentNode.insertBefore(i,s),i.appendChild(s)}else r in i?i[r]=o:i.setAttribute(r,o)}return i},t.bind=function(e,n){if(e)for(var t in n){var i=n[t];t.split(/\s+/).forEach(function(n){e.addEventListener(n,i)})}},t.unbind=function(e,n){if(e)for(var t in n){var i=n[t];t.split(/\s+/).forEach(function(n){e.removeEventListener(n,i)})}},t.fire=function(e,n,t){var i=document.createEvent("HTMLEvents");i.initEvent(n,!0,!0);for(var r in t)i[r]=t[r];return e.dispatchEvent(i)},t.regExpEscape=function(e){return e.replace(/[-\\^$*+?.()|[\]{}]/g,"\\$&")},t.siblingIndex=function(e){for(var n=0;e=e.previousElementSibling;n++);return n},"undefined"!=typeof Document&&("loading"!==document.readyState?r():document.addEventListener("DOMContentLoaded",r)),o.$=t,o.$$=i,"undefined"!=typeof self&&(self.Awesomplete=o),"object"==typeof module&&module.exports&&(module.exports=o),o}(),define("awesomplete",function(e){return function(){var n;return n||e.Awesomplete}}(this)),function(e,n){define("converse-muc",["converse-core","tpl!chatarea","tpl!chatroom","tpl!chatroom_disconnect","tpl!chatroom_features","tpl!chatroom_form","tpl!chatroom_head","tpl!chatroom_invite","tpl!chatroom_nickname_form","tpl!chatroom_password_form","tpl!chatroom_sidebar","tpl!chatroom_toolbar","tpl!chatrooms_tab","tpl!info","tpl!occupant","tpl!room_description","tpl!room_item","tpl!room_panel","tpl!spinner","awesomplete","converse-chatview"],n)}(this,function(e,n,t,i,r,o,s,a,l,u,c,h,d,f,p,m,g,_,v,y){"use strict";var b="chatrooms",w="chatroom",x=e.env.Strophe,S=e.env.Backbone,C=e.env.$iq,k=e.env.$build,A=e.env.$msg,T=e.env.$pres,M=e.env.b64_sha1,j=e.env.sizzle,N=e.env.utils,E=e.env.jQuery,D=e.env._,R=e.env.fp,I=e.env.moment;x.addNamespace("MUC_ADMIN",x.NS.MUC+"#admin"),x.addNamespace("MUC_OWNER",x.NS.MUC+"#owner"),x.addNamespace("MUC_REGISTER","jabber:iq:register"),x.addNamespace("MUC_ROOMCONF",x.NS.MUC+"#roomconfig"),x.addNamespace("MUC_USER",x.NS.MUC+"#user");var L=["passwordprotected","unsecured","hidden","public","membersonly","open","persistent","temporary","nonanonymous","semianonymous","moderated","unmoderated","mam_enabled"],O={passwordprotected:"unsecured",unsecured:"passwordprotected",hidden:"public",public:"hidden",membersonly:"open",open:"membersonly",persistent:"temporary",temporary:"persistent",nonanonymous:"semianonymous",semianonymous:"nonanonymous",moderated:"unmoderated",unmoderated:"moderated"},P={CONNECTED:0,CONNECTING:1,NICKNAME_REQUIRED:2,PASSWORD_REQUIRED:3,DISCONNECTED:4,ENTERED:5};e.plugins.add("converse-muc",{optional_dependencies:["converse-controlbox"],overrides:{_tearDown:function(){var e=this.chatboxes.where({type:w});D.each(e,function(e){N.safeSave(e,{connection_status:P.DISCONNECTED})}),this.__super__._tearDown.call(this,arguments)},Features:{addClientFeatures:function(){var e=this.__super__._converse;this.__super__.addClientFeatures.apply(this,arguments),e.allow_muc_invitations&&e.connection.disco.addFeature("jabber:x:conference"),e.allow_muc&&e.connection.disco.addFeature(x.NS.MUC)}},ChatBoxes:{model:function(e,n){var t=this.__super__._converse;return e.type==w?new t.ChatRoom(e,n):this.__super__.model.apply(this,arguments)}},ControlBoxView:{renderRoomsPanel:function(){var e=this.__super__._converse;this.roomspanel=new e.RoomsPanel({$parent:this.$el.find(".controlbox-panes"),model:new(S.Model.extend({id:M("converse.roomspanel"+e.bare_jid),browserStorage:new S.BrowserStorage[e.storage](M("converse.roomspanel"+e.bare_jid))}))}),this.roomspanel.insertIntoDOM().model.fetch(),this.roomspanel.model.get("nick")||this.roomspanel.model.save({nick:x.getNodeFromJid(e.bare_jid)}),e.emit("roomsPanelRendered")},renderContactsPanel:function(){var e=this.__super__._converse;this.__super__.renderContactsPanel.apply(this,arguments),e.allow_muc&&this.renderRoomsPanel()},onConnected:function(){var e=this.__super__._converse;if(this.__super__.onConnected.apply(this,arguments),this.model.get("connected"))if(D.isUndefined(e.muc_domain)){e.features.off("add",this.featureAdded,this),e.features.on("add",this.featureAdded,this);var n=e.features.findWhere({var:x.NS.MUC});n&&this.featureAdded(n)}else this.setMUCDomain(e.muc_domain)},setMUCDomain:function(e){this.roomspanel.model.save({muc_domain:e});var n=this.$el.find("input.new-chatroom-server");n.is(":focus")||n.val(this.roomspanel.model.get("muc_domain"))},featureAdded:function(e){var n=this.__super__._converse;e.get("var")===x.NS.MUC&&n.allow_muc&&this.setMUCDomain(e.get("from"))}},ChatBoxViews:{onChatBoxAdded:function(e){var n=this.__super__._converse,t=this.get(e.get("id"));return t||e.get("type")!==w?this.__super__.onChatBoxAdded.apply(this,arguments):(t=new n.ChatRoomView({model:e}),this.add(e.get("id"),t))}}},initialize:function(){var e=this._converse,q=e.__,F=e.___;if(e.muc={info_messages:{100:q("This room is not anonymous"),102:q("This room now shows unavailable members"),103:q("This room does not show unavailable members"),104:q("The room configuration has changed"),170:q("Room logging is now enabled"),171:q("Room logging is now disabled"),172:q("This room is now no longer anonymous"),173:q("This room is now semi-anonymous"),174:q("This room is now fully-anonymous"),201:q("A new room has been created")},disconnect_messages:{301:q("You have been banned from this room"),307:q("You have been kicked from this room"),321:q("You have been removed from this room because of an affiliation change"),322:q("You have been removed from this room because the room has changed to members-only and you're not a member"),332:q("You have been removed from this room because the MUC (Multi-user chat) service is being shut down.")},action_info_messages:{301:F("%1$s has been banned"),303:F("%1$s's nickname has changed"),307:F("%1$s has been kicked out"),321:F("%1$s has been removed because of an affiliation change"),322:F("%1$s has been removed for not being a member")},new_nickname_messages:{210:F("Your nickname has been automatically set to: %1$s"),303:F("Your nickname has been changed to: %1$s")}},e.api.settings.update({allow_muc:!0,allow_muc_invitations:!0,auto_join_on_invite:!1,auto_join_rooms:[],auto_list_rooms:!1,hide_muc_server:!1,muc_disable_moderator_commands:!1,muc_domain:void 0,muc_history_max_stanzas:void 0,muc_instant_rooms:!0,muc_nickname_from_jid:!1,muc_show_join_leave:!0,visible_toolbar_buttons:{toggle_occupants:!0}}),e.api.promises.add("roomsPanelRendered"),e.openChatRoom=function(n){return n=D.assign({type:w},n),e.chatboxviews.showChat(n)},e.ChatRoom=e.ChatBox.extend({defaults:function(){return D.assign(D.clone(e.ChatBox.prototype.defaults),D.zipObject(L,D.map(L,D.stubFalse)),{num_unread_general:0,affiliation:null,connection_status:P.DISCONNECTED,description:"",features_fetched:!1,roomconfig:{},type:w})},isUserMentioned:function(e){return new RegExp("\\b"+this.get("nick")+"\\b").test(e)},incrementUnreadMsgCounter:function(n){var t=n.querySelector("body");D.isNull(t)||N.isNewMessage(n)&&this.newMessageWillBeHidden()&&(this.save({num_unread_general:this.get("num_unread_general")+1}),this.isUserMentioned(t.textContent)&&(this.save({num_unread:this.get("num_unread")+1}),e.incrementMsgCounter()))},clearUnreadMsgCounter:function(){N.safeSave(this,{num_unread:0,num_unread_general:0})}}),e.ChatRoomView=e.ChatBoxView.extend({length:300,tagName:"div",className:"chatbox chatroom hidden",is_chatroom:!0,events:{"click .close-chatbox-button":"close","click .configure-chatroom-button":"getAndRenderConfigurationForm","click .toggle-smiley":"toggleEmoticonMenu","click .toggle-smiley ul li":"insertEmoticon","click .toggle-clear":"clearChatRoomMessages","click .toggle-call":"toggleCall","click .toggle-occupants a":"toggleOccupants","click .new-msgs-indicator":"viewUnreadMessages","click .occupant":"onOccupantClicked","keypress .chat-textarea":"keyPressed","click .send-button":"onSendButtonClicked"},initialize:function(){var n=this;this.model.messages.on("add",this.onMessageAdded,this),this.model.on("show",this.show,this),this.model.on("destroy",this.hide,this),this.model.on("change:connection_status",this.afterConnected,this),this.model.on("change:affiliation",this.renderHeading,this),this.model.on("change:chat_state",this.sendChatState,this),this.model.on("change:description",this.renderHeading,this),this.model.on("change:name",this.renderHeading,this),this.createOccupantsView(),this.render().insertIntoDOM(),this.registerHandlers(),this.model.get("connection_status")!==P.ENTERED?this.getRoomFeatures().always(function(){n.join(),n.fetchMessages(),e.emit("chatRoomOpened",n)}):(this.fetchMessages(),e.emit("chatRoomOpened",this))},render:function(){return this.el.setAttribute("id",this.model.get("box_id")),this.el.innerHTML=t(),this.renderHeading(),this.renderChatArea(),this.model.get("connection_status")!==P.ENTERED&&this.showSpinner(),N.refreshWebkit(),this},renderHeading:function(){this.el.querySelector(".chat-head-chatroom").innerHTML=this.generateHeadingHTML()},renderChatArea:function(){return this.$(".chat-area").length||(this.$(".chatroom-body").empty().append(n({label_message:q("Message"),label_send:q("Send"),show_send_button:e.show_send_button,show_toolbar:e.show_toolbar,unread_msgs:q("You have unread messages")})).append(this.occupantsview.$el),this.renderToolbar(h),this.$content=this.$el.find(".chat-content")),this.toggleOccupants(null,!0),this},createOccupantsView:function(){var n=new e.ChatRoomOccupants;n.chatroomview=this,this.occupantsview=new e.ChatRoomOccupantsView({model:n});var t=M("converse.occupants"+e.bare_jid+this.model.get("jid"));return this.occupantsview.model.browserStorage=new S.BrowserStorage.session(t),this.occupantsview.render(),this.occupantsview.model.fetch({add:!0}),this},insertIntoDOM:function(){if(!document.querySelector("body").contains(this.el)){var n=e.chatboxviews.get("controlbox");return n?this.$el.insertAfter(n.$el):E("#conversejs").prepend(this.$el),this}},generateHeadingHTML:function(){return s(D.extend(this.model.toJSON(),{info_close:q("Close and leave this room"),info_configure:q("Configure this room"),description:this.model.get("description")||""}))},afterShown:function(){this.model.collection&&this.model.collection.browserStorage&&this.model.save(),this.occupantsview.setOccupantsHeight()},afterConnected:function(){this.model.get("connection_status")===P.ENTERED&&(this.setChatState(e.ACTIVE),this.scrollDown(),this.focus())},getExtraMessageClasses:function(n){var t=e.ChatBoxView.prototype.getExtraMessageClasses.apply(this,arguments);return this.is_chatroom&&"them"===n.sender&&this.model.isUserMentioned(n.message)&&(t+=" mentioned"),t},getToolbarOptions:function(){return D.extend(e.ChatBoxView.prototype.getToolbarOptions.apply(this,arguments),{label_hide_occupants:q("Hide the list of occupants"),show_occupants_toggle:this.is_chatroom&&e.visible_toolbar_buttons.toggle_occupants})},close:function(e){this.leave()},toggleOccupants:function(e,n){e&&(e.preventDefault(),e.stopPropagation()),n&&this.model.set({hidden_occupants:!this.model.get("hidden_occupants")}),this.model.get("hidden_occupants")?(this.model.save({hidden_occupants:!1}),this.$(".icon-show-users").removeClass("icon-show-users").addClass("icon-hide-users"),this.$(".chat-area").removeClass("full"),this.$("div.occupants").removeClass("hidden"),this.scrollDown()):(this.model.save({hidden_occupants:!0}),this.$(".icon-hide-users").removeClass("icon-hide-users").addClass("icon-show-users"),this.$(".occupants").addClass("hidden"),this.$(".chat-area").addClass("full"),this.scrollDown())},onOccupantClicked:function(e){this.insertIntoTextArea(e.target.textContent)},requestMemberList:function(n,t){var i=new E.Deferred;t=t||"member";var r=C({to:n,type:"get"}).c("query",{xmlns:x.NS.MUC_ADMIN}).c("item",{affiliation:t});return e.connection.sendIQ(r,i.resolve,i.reject),i.promise()},parseMemberListIQ:function(e){return D.map(E(e).find('query[xmlns="'+x.NS.MUC_ADMIN+'"] item'),function(e){return{jid:e.getAttribute("jid"),affiliation:e.getAttribute("affiliation")}})},computeAffiliationsDelta:function(e,n,t,i){var r=D.map(t,"jid"),o=D.map(i,"jid"),s=D.map(D.difference(r,o),function(e){
return t[D.indexOf(r,e)]});return e||(s=s.concat(D.filter(t,function(e){var n=D.indexOf(o,e.jid);return n>=0&&e.affiliation!==i[n].affiliation}))),n&&(s=s.concat(D.map(D.difference(o,r),function(e){return{jid:e,affiliation:"none"}}))),s},sendAffiliationIQ:function(n,t,i){var r=new E.Deferred,o=C({to:n,type:"set"}).c("query",{xmlns:x.NS.MUC_ADMIN}).c("item",{affiliation:i.affiliation||t,jid:i.jid});return D.isUndefined(i.reason)||o.c("reason",i.reason),e.connection.sendIQ(o,r.resolve,r.reject),r},setAffiliation:function(e,n){n=D.filter(n,function(n){return D.isUndefined(n.affiliation)||n.affiliation===e});var t=D.map(n,D.partial(this.sendAffiliationIQ,this.model.get("jid"),e));return E.when.apply(E,t)},setAffiliations:function(e,n,t){if(D.isEmpty(e))return void n(null);var i=D.uniq(D.map(e,"affiliation")),r=D.map(i,D.partial(this.setAffiliation.bind(this),D,e));E.when.apply(E,r).done(n).fail(t)},marshallAffiliationIQs:function(){return D.flatMap(arguments,this.parseMemberListIQ)},getJidsWithAffiliations:function(e){D.isString(e)&&(e=[e]);var n=new E.Deferred,t=D.map(e,D.partial(this.requestMemberList,this.model.get("jid")));return E.when.apply(E,t).always(D.flow(this.marshallAffiliationIQs.bind(this),n.resolve)),n.promise()},updateMemberLists:function(e,n,t){var i=this,r=new E.Deferred;return this.getJidsWithAffiliations(n).then(function(n){i.setAffiliations(t(e,n),r.resolve,r.reject)}),r.promise()},directInvite:function(n,t){if(this.model.get("membersonly")){var i={};i[n]="member";var r=D.partial(this.computeAffiliationsDelta,!0,!1);this.updateMemberLists([{jid:n,affiliation:"member",reason:t}],["member","owner","admin"],r)}var o={xmlns:"jabber:x:conference",jid:this.model.get("jid")};null!==t&&(o.reason=t),this.model.get("password")&&(o.password=this.model.get("password"));var s=A({from:e.connection.jid,to:n,id:e.connection.getUniqueId()}).c("x",o);e.connection.send(s),e.emit("roomInviteSent",{room:this,recipient:n,reason:t})},handleChatStateMessage:function(n){n.get("fullname")!==this.model.get("nick")&&n.get("chat_state")!==e.GONE&&e.ChatBoxView.prototype.handleChatStateMessage.apply(this,arguments)},sendChatState:function(){if(this.model.get("connection_status")===P.ENTERED){var n=this.model.get("chat_state");n!==e.GONE&&e.connection.send(A({to:this.model.get("jid"),type:"groupchat"}).c(n,{xmlns:x.NS.CHATSTATES}).up().c("no-store",{xmlns:x.NS.HINTS}).up().c("no-permanent-store",{xmlns:x.NS.HINTS}))}},sendChatRoomMessage:function(n){var t=e.connection.getUniqueId(),i=A({to:this.model.get("jid"),from:e.connection.jid,type:"groupchat",id:t}).c("body").t(n).up().c("x",{xmlns:"jabber:x:event"}).c(e.COMPOSING);e.connection.send(i),this.model.messages.create({fullname:this.model.get("nick"),sender:"me",time:I().format(),message:n,msgid:t})},modifyRole:function(n,t,i,r,o,s){var a=k("item",{nick:t,role:i}),l=C({to:n,type:"set"}).c("query",{xmlns:x.NS.MUC_ADMIN}).cnode(a.node);return null!==r&&l.c("reason",r),e.connection.sendIQ(l.tree(),o,s)},validateRoleChangeCommand:function(e,n){return!(n.length<1||n.length>2)||(this.showStatusNotification(q('Error: the "'+e+"\" command takes two arguments, the user's nickname and optionally a reason."),!0),!1)},clearChatRoomMessages:function(e){D.isUndefined(e)||e.stopPropagation();var n=confirm(q("Are you sure you want to clear the messages from this room?"));return n===!0&&this.$content.empty(),this},onCommandError:function(){this.showStatusNotification(q("Error: could not execute the command"),!0)},onMessageSubmitted:function(n){if(e.muc_disable_moderator_commands)return this.sendChatRoomMessage(n);var t=n.replace(/^\s*/,"").match(/^\/(.*?)(?: (.*))?$/)||[!1,"",""],i=t[2]&&t[2].splitOnce(" ")||[],r=t[1].toLowerCase();switch(r){case"admin":if(!this.validateRoleChangeCommand(r,i))break;this.setAffiliation("admin",[{jid:i[0],reason:i[1]}]).fail(this.onCommandError.bind(this));break;case"ban":if(!this.validateRoleChangeCommand(r,i))break;this.setAffiliation("outcast",[{jid:i[0],reason:i[1]}]).fail(this.onCommandError.bind(this));break;case"clear":this.clearChatRoomMessages();break;case"deop":if(!this.validateRoleChangeCommand(r,i))break;this.modifyRole(this.model.get("jid"),i[0],"occupant",i[1],void 0,this.onCommandError.bind(this));break;case"help":this.showHelpMessages(["<strong>/admin</strong>: "+q("Change user's affiliation to admin"),"<strong>/ban</strong>: "+q("Ban user from room"),"<strong>/clear</strong>: "+q("Remove messages"),"<strong>/deop</strong>: "+q("Change user role to occupant"),"<strong>/help</strong>: "+q("Show this menu"),"<strong>/kick</strong>: "+q("Kick user from room"),"<strong>/me</strong>: "+q("Write in 3rd person"),"<strong>/member</strong>: "+q("Grant membership to a user"),"<strong>/mute</strong>: "+q("Remove user's ability to post messages"),"<strong>/nick</strong>: "+q("Change your nickname"),"<strong>/op</strong>: "+q("Grant moderator role to user"),"<strong>/owner</strong>: "+q("Grant ownership of this room"),"<strong>/revoke</strong>: "+q("Revoke user's membership"),"<strong>/subject</strong>: "+q("Set room subject"),"<strong>/topic</strong>: "+q("Set room subject (alias for /subject)"),"<strong>/voice</strong>: "+q("Allow muted user to post messages")]);break;case"kick":if(!this.validateRoleChangeCommand(r,i))break;this.modifyRole(this.model.get("jid"),i[0],"none",i[1],void 0,this.onCommandError.bind(this));break;case"mute":if(!this.validateRoleChangeCommand(r,i))break;this.modifyRole(this.model.get("jid"),i[0],"visitor",i[1],void 0,this.onCommandError.bind(this));break;case"member":if(!this.validateRoleChangeCommand(r,i))break;this.setAffiliation("member",[{jid:i[0],reason:i[1]}]).fail(this.onCommandError.bind(this));break;case"nick":e.connection.send(T({from:e.connection.jid,to:this.getRoomJIDAndNick(t[2]),id:e.connection.getUniqueId()}).tree());break;case"owner":if(!this.validateRoleChangeCommand(r,i))break;this.setAffiliation("owner",[{jid:i[0],reason:i[1]}]).fail(this.onCommandError.bind(this));break;case"op":if(!this.validateRoleChangeCommand(r,i))break;this.modifyRole(this.model.get("jid"),i[0],"moderator",i[1],void 0,this.onCommandError.bind(this));break;case"revoke":if(!this.validateRoleChangeCommand(r,i))break;this.setAffiliation("none",[{jid:i[0],reason:i[1]}]).fail(this.onCommandError.bind(this));break;case"topic":case"subject":e.connection.send(A({to:this.model.get("jid"),from:e.connection.jid,type:"groupchat"}).c("subject",{xmlns:"jabber:client"}).t(t[2]).tree());break;case"voice":if(!this.validateRoleChangeCommand(r,i))break;this.modifyRole(this.model.get("jid"),i[0],"occupant",i[1],void 0,this.onCommandError.bind(this));break;default:this.sendChatRoomMessage(n)}},handleMUCMessage:function(e){var n=e.querySelector("status[code='104']"),t=e.querySelector("status[code='170']"),i=e.querySelector("status[code='171']"),r=e.querySelector("status[code='172']"),o=e.querySelector("status[code='173']"),s=e.querySelector("status[code='173']");return(n||t||i||r||o||s)&&this.getRoomFeatures(),D.flow(this.showStatusMessages.bind(this),this.onChatRoomMessage.bind(this))(e),!0},getRoomJIDAndNick:function(e){e?this.model.save({nick:e}):e=this.model.get("nick");var n=this.model.get("jid"),t=x.getNodeFromJid(n),i=x.getDomainFromJid(n);return t+"@"+i+(null!==e?"/"+e:"")},registerHandlers:function(){var n=this.model.get("jid");this.removeHandlers(),this.presence_handler=e.connection.addHandler(this.onChatRoomPresence.bind(this),x.NS.MUC,"presence",null,null,n,{ignoreNamespaceFragment:!0,matchBareFromJid:!0}),this.message_handler=e.connection.addHandler(this.handleMUCMessage.bind(this),null,"message",null,null,n,{matchBareFromJid:!0})},removeHandlers:function(){return this.message_handler&&(e.connection.deleteHandler(this.message_handler),delete this.message_handler),this.presence_handler&&(e.connection.deleteHandler(this.presence_handler),delete this.presence_handler),this},join:function(n,t){if(n=n?n:this.model.get("nick"),!n)return this.checkForReservedNick();if(this.model.get("connection_status")===P.ENTERED)return this;var i=T({from:e.connection.jid,to:this.getRoomJIDAndNick(n)}).c("x",{xmlns:x.NS.MUC}).c("history",{maxstanzas:e.muc_history_max_stanzas}).up();return t&&i.cnode(x.xmlElement("password",[],t)),this.model.save("connection_status",P.CONNECTING),e.connection.send(i),this},sendUnavailablePresence:function(n){var t=T({type:"unavailable",from:e.connection.jid,to:this.getRoomJIDAndNick()});null!==n&&t.c("status",n),e.connection.sendPresence(t)},leave:function(n){this.hide(),this.occupantsview.model.reset(),this.occupantsview.model.browserStorage._clear(),e.connection.connected&&this.sendUnavailablePresence(n),N.safeSave(this.model,{connection_status:P.DISCONNECTED}),this.removeHandlers(),e.ChatBoxView.prototype.close.apply(this,arguments)},renderConfigurationForm:function(e){var n=this,t=this.$(".chatroom-body");t.children().addClass("hidden"),t.find("form.chatroom-form").remove(),t.append(o());var i=t.find("form.chatroom-form"),r=i.children("fieldset:first"),s=E(e),a=s.find("field"),l=s.find("title").text(),u=s.find("instructions").text();r.find("span.spinner").remove(),r.append(E("<legend>").text(l)),u&&u!==l&&r.append(E('<p class="instructions">').text(u)),D.each(a,function(e){r.append(N.xForm2webForm(E(e),s))}),i.append("<fieldset></fieldset>"),r=i.children("fieldset:last"),r.append('<input type="submit" class="pure-button button-primary" value="'+q("Save")+'"/>'),r.append('<input type="button" class="pure-button button-cancel" value="'+q("Cancel")+'"/>'),r.find("input[type=button]").on("click",function(e){e.preventDefault(),n.cancelConfiguration()}),i.on("submit",function(e){e.preventDefault(),n.saveConfiguration(e.target)})},sendConfiguration:function(n,t,i){var r=C({to:this.model.get("jid"),type:"set"}).c("query",{xmlns:x.NS.MUC_OWNER}).c("x",{xmlns:x.NS.XFORM,type:"submit"});return D.each(n||[],function(e){r.cnode(e).up()}),t=D.isUndefined(t)?D.noop:D.partial(t,r.nodeTree),i=D.isUndefined(i)?D.noop:D.partial(i,r.nodeTree),e.connection.sendIQ(r,t,i)},saveConfiguration:function(e){var n=new E.Deferred,t=this,i=E(e).find(":input:not([type=button]):not([type=submit])"),r=[];return i.each(function(){r.push(N.webForm2xForm(this))}),this.sendConfiguration(r,n.resolve,n.reject),this.$el.find("div.chatroom-form-container").hide(function(){E(this).remove(),t.renderAfterTransition()}),n.promise()},autoConfigureChatRoom:function(){var e=this,n=new E.Deferred;return this.fetchRoomConfiguration().then(function(t){var i=[],r=t.querySelectorAll("field"),o=r.length,s=e.model.get("roomconfig");D.each(r,function(t){var r,a=t.getAttribute("var").replace("muc#roomconfig_",""),l=t.getAttribute("type");if(a in s){switch(l){case"boolean":r=s[a]?1:0;break;case"list-multi":r=t.innerHTML;break;default:r=s[a]}t.innerHTML=k("value").t(r)}i.push(t),--o||e.sendConfiguration(i,n.resolve,n.reject)})}),n},cancelConfiguration:function(){var e=this;this.$el.find("div.chatroom-form-container").hide(function(){E(this).remove(),e.renderAfterTransition()})},fetchRoomConfiguration:function(n){var t=this,i=new E.Deferred;return e.connection.sendIQ(C({to:this.model.get("jid"),type:"get"}).c("query",{xmlns:x.NS.MUC_OWNER}),function(e){n&&n.apply(t,arguments),i.resolve(e)},i.reject),i.promise()},getRoomFeatures:function(){var n=new E.Deferred,t=this;return e.connection.disco.info(this.model.get("jid"),null,function(e){var i={features_fetched:!0};D.each(e.querySelectorAll("feature"),function(e){var n=e.getAttribute("var");return n.startsWith("muc_")?void(i[n.replace("muc_","")]=!0):void(n===x.NS.MAM&&(i.mam_enabled=!0))});var r=e.querySelector('field[var="muc#roominfo_description"] value');return D.isNull(r)||(i.description=r.textContent),t.model.save(i),n.resolve()},n.reject,5e3),n.promise()},getAndRenderConfigurationForm:function(e){this.showSpinner(),this.fetchRoomConfiguration().then(this.renderConfigurationForm.bind(this))},submitNickname:function(e){e.preventDefault();var n=e.target.nick,t=n.value;return t?(n.classList.remove("error"),this.$el.find(".chatroom-form-container").replaceWith(v),void this.join(t)):void n.classList.add("error")},checkForReservedNick:function(){return this.showSpinner(),e.connection.sendIQ(C({to:this.model.get("jid"),from:e.connection.jid,type:"get"}).c("query",{xmlns:x.NS.DISCO_INFO,node:"x-roomuser-item"}),this.onNickNameFound.bind(this),this.onNickNameNotFound.bind(this)),this},onNickNameFound:function(e){var n=E(e).find('query[node="x-roomuser-item"] identity').attr("name");n?this.join(n):this.onNickNameNotFound()},onNickNameNotFound:function(n){e.muc_nickname_from_jid?this.join(x.unescapeNode(x.getNodeFromJid(e.bare_jid))):this.renderNicknameForm(n)},getDefaultNickName:function(){return x.unescapeNode(x.getNodeFromJid(e.bare_jid))},onNicknameClash:function(n){if(e.muc_nickname_from_jid){var t=n.getAttribute("from").split("/")[1];if(t===this.getDefaultNickName())this.join(t+"-2");else{var i=t.lastIndexOf("-"),r=t.substring(i+1,t.length);this.join(t.substring(0,i+1)+String(Number(r)+1))}}else this.renderNicknameForm(q("The nickname you chose is reserved or currently in use, please choose a different one."))},renderNicknameForm:function(e){this.$(".chatroom-body").children().addClass("hidden"),this.$("span.centered.spinner").remove(),D.isString(e)||(e=""),this.$(".chatroom-body").append(l({heading:q("Please choose your nickname"),label_nickname:q("Nickname"),label_join:q("Enter room"),validation_message:e})),this.model.save("connection_status",P.NICKNAME_REQUIRED),this.$(".chatroom-form").on("submit",this.submitNickname.bind(this))},submitPassword:function(e){e.preventDefault();var n=this.$el.find(".chatroom-form").find("input[type=password]").val();this.$el.find(".chatroom-form-container").replaceWith(v),this.join(this.model.get("nick"),n)},renderPasswordForm:function(){this.$(".chatroom-body").children().addClass("hidden"),this.$("span.centered.spinner").remove(),this.$(".chatroom-body").append(u({heading:q("This chatroom requires a password"),label_password:q("Password: "),label_submit:q("Submit")})),this.model.save("connection_status",P.PASSWORD_REQUIRED),this.$(".chatroom-form").on("submit",this.submitPassword.bind(this))},showDisconnectMessage:function(e){this.$(".chat-area").addClass("hidden"),this.$(".occupants").addClass("hidden"),this.$("span.centered.spinner").remove(),this.$(".chatroom-body").append(i({disconnect_message:e}))},getMessageFromStatus:function(n,t,i){var r,o=n.getAttribute("code");if("110"!==o){if(o in e.muc.info_messages)return e.muc.info_messages[o];if(i){if(o in e.muc.new_nickname_messages)return i&&"210"===o?r=x.getResourceFromJid(t.getAttribute("from")):i&&"303"===o&&(r=t.querySelector("x item").getAttribute("nick")),q(e.muc.new_nickname_messages[o],r)}else if(o in e.muc.action_info_messages)return r=x.getResourceFromJid(t.getAttribute("from")),q(e.muc.action_info_messages[o],r)}},saveAffiliationAndRole:function(e){var n=j('x[xmlns="'+x.NS.MUC_USER+'"] item',e).pop(),t=e.querySelector("status[code='110']");if(t&&!D.isNil(n)){var i=n.getAttribute("affiliation"),r=n.getAttribute("role");i&&this.model.save({affiliation:i}),r&&this.model.save({role:r})}},parseXUserElement:function(n,t,i){var r=n.querySelectorAll("status"),o=D.partial(this.getMessageFromStatus,D,t,i),s={},a=D.reject(D.map(r,o),D.isUndefined);a.length&&(s.messages=a);var l=D.invokeMap(r,Element.prototype.getAttribute,"code"),u=D.intersection(l,D.keys(e.muc.disconnect_messages)),c=i&&u.length>0;c&&(s.disconnected=!0,s.disconnection_message=e.muc.disconnect_messages[u[0]]);var h=n.querySelector("item");if(!D.isNull(h)){var d=h.querySelector("reason");d&&(s.reason=d?d.textContent:void 0);var f=h.querySelector("actor");f&&(s.actor=f?f.getAttribute("nick"):void 0)}return s},displayNotificationsforUser:function(e){var n=this;return e.disconnected?(this.showDisconnectMessage(e.disconnection_message),e.actor&&this.showDisconnectMessage(q(F("This action was done by %1$s."),e.actor)),e.reason&&this.showDisconnectMessage(q(F('The reason given is: "%1$s".'),e.reason)),void this.model.save("connection_status",P.DISCONNECTED)):(D.each(e.messages,function(e){n.$content.append(f({message:e}))}),e.reason&&this.showStatusNotification(q('The reason given is: "'+e.reason+'"'),!0),void(e.messages.length&&this.scrollDown()))},getJoinLeaveMessages:function(e){var n=x.getResourceFromJid(e.getAttribute("from")),t=e.querySelector("status");return"unavailable"===e.getAttribute("type")?!D.isNull(t)&&t.textContent?[{messages:[q(n+' has left the room. "'+t.textContent+'"')]}]:[{messages:[q(n+" has left the room")]}]:this.occupantsview.model.find({nick:n})?void 0:!D.isNull(t)&&t.textContent?[{messages:[q(n+' has joined the room. "'+t.textContent+'"')]}]:[{messages:[q(n+" has joined the room.")]}]},showStatusMessages:function(n){var t=j('x[xmlns="'+x.NS.MUC_USER+'"]',n),i=n.querySelectorAll("status[code='110']").length,r=D.partial(this.parseXUserElement.bind(this),D,n,i),o=D.reject(D.map(t,r),D.isEmpty);return D.isEmpty(o)&&e.muc_show_join_leave&&"presence"===n.nodeName&&this.model.get("connection_status")===P.ENTERED&&(o=this.getJoinLeaveMessages(n)),D.each(o,this.displayNotificationsforUser.bind(this)),n},showErrorMessage:function(e){var n=e.querySelector("error");"auth"===n.getAttribute("type")?D.isNull(n.querySelector("not-authorized"))?D.isNull(n.querySelector("registration-required"))?D.isNull(n.querySelector("forbidden"))||this.showDisconnectMessage(q("You have been banned from this room.")):this.showDisconnectMessage(q("You are not on the member list of this room.")):this.renderPasswordForm():"modify"===n.getAttribute("type")?D.isNull(n.querySelector("jid-malformed"))||this.showDisconnectMessage(q("No nickname was specified.")):"cancel"===n.getAttribute("type")&&(D.isNull(n.querySelector("not-allowed"))?D.isNull(n.querySelector("not-acceptable"))?D.isNull(n.querySelector("conflict"))?D.isNull(n.querySelector("item-not-found"))?D.isNull(n.querySelector("service-unavailable"))||this.showDisconnectMessage(q("This room has reached its maximum number of occupants.")):this.showDisconnectMessage(q("This room does not (yet) exist.")):this.onNicknameClash(e):this.showDisconnectMessage(q("Your nickname doesn't conform to this room's policies.")):this.showDisconnectMessage(q("You are not allowed to create new rooms.")))},renderAfterTransition:function(){this.model.get("connection_status")==P.NICKNAME_REQUIRED?this.renderNicknameForm():this.model.get("connection_status")==P.PASSWORD_REQUIRED?this.renderPasswordForm():(this.$el.find(".chat-area").removeClass("hidden"),this.$el.find(".occupants").removeClass("hidden"),this.occupantsview.setOccupantsHeight(),this.scrollDown())},showSpinner:function(){this.$(".chatroom-body").children().addClass("hidden"),this.$el.find(".chatroom-body").prepend(v)},hideSpinner:function(){var e=this.el.querySelector(".spinner");return D.isNull(e)||(e.parentNode.removeChild(e),this.renderAfterTransition()),this},onOwnChatRoomPresence:function(n){this.saveAffiliationAndRole(n);var t=n.querySelector("status[code='201']");if(t)if(this.model.get("auto_configure"))this.autoConfigureChatRoom().then(this.getRoomFeatures.bind(this));else{if(!e.muc_instant_rooms)return void this.getAndRenderConfigurationForm();this.saveConfiguration().then(this.getRoomFeatures.bind(this))}else this.model.get("features_fetched")||("owner"===this.model.get("affiliation")&&this.model.get("auto_configure")?this.autoConfigureChatRoom().then(this.getRoomFeatures.bind(this)):this.getRoomFeatures());this.model.save("connection_status",P.ENTERED)},onChatRoomPresence:function(e){if("error"===e.getAttribute("type"))return this.model.save("connection_status",P.DISCONNECTED),this.showErrorMessage(e),!0;var n=e.querySelector("status[code='110']");return n&&"unavailable"!==e.getAttribute("type")&&this.onOwnChatRoomPresence(e),this.hideSpinner().showStatusMessages(e),this.occupantsview.updateOccupantsOnPresence(e),"none"!==this.model.get("role")&&this.model.get("connection_status")===P.CONNECTING&&this.model.save("connection_status",P.CONNECTED),!0},setChatRoomSubject:function(e,n){this.$content.append(f({message:q("Topic set by %1$s to: %2$s",e,n)})),this.scrollDown()},onChatRoomMessage:function(n){var t,i=n,r=n.querySelector("forwarded");D.isNull(r)||(n=r.querySelector("message"),t=r.querySelector("delay"));var o=n.getAttribute("from"),s=n.getAttribute("id"),a=x.getResourceFromJid(o),l=a&&x.unescapeNode(a)||"",u=D.propertyOf(n.querySelector("subject"))("textContent"),c=s&&this.model.messages.filter(function(e){return e.get("msgid")===s&&e.get("fullname")===l});return!(!c||!c.length)||(u&&this.setChatRoomSubject(l,u),""===l||(this.model.incrementUnreadMsgCounter(i),this.model.createMessage(n,t,i),l!==this.model.get("nick")&&e.emit("message",{stanza:i,chatbox:this.model}),!0))}}),e.ChatRoomOccupant=S.Model.extend({initialize:function(n){this.set(D.extend({id:e.connection.getUniqueId()},n))}}),e.ChatRoomOccupantView=S.View.extend({tagName:"li",initialize:function(){this.model.on("change",this.render,this),this.model.on("destroy",this.destroy,this)},render:function(){var n=this.model.get("show")||"online",t=p(D.extend({jid:"",show:n,hint_show:e.PRETTY_CHAT_STATUS[n],hint_occupant:q("Click to mention "+this.model.get("nick")+" in your message."),desc_moderator:q("This user is a moderator."),desc_occupant:q("This user can send messages in this room."),desc_visitor:q("This user can NOT send messages in this room.")},this.model.toJSON())),i=this.$el.parents();return i.length?(this.$el.replaceWith(t),this.setElement(i.first().children("#"+this.model.get("id")),!0),this.delegateEvents()):(this.$el.replaceWith(t),this.setElement(t,!0)),this},destroy:function(){this.$el.remove()}}),e.ChatRoomOccupants=S.Collection.extend({model:e.ChatRoomOccupant}),e.ChatRoomOccupantsView=S.Overview.extend({tagName:"div",className:"occupants",initialize:function(){this.model.on("add",this.onOccupantAdded,this),this.chatroomview=this.model.chatroomview,this.chatroomview.model.on("change:open",this.renderInviteWidget,this),this.chatroomview.model.on("change:affiliation",this.renderInviteWidget,this),this.chatroomview.model.on("change:hidden",this.onFeatureChanged,this),this.chatroomview.model.on("change:mam_enabled",this.onFeatureChanged,this),this.chatroomview.model.on("change:membersonly",this.onFeatureChanged,this),this.chatroomview.model.on("change:moderated",this.onFeatureChanged,this),this.chatroomview.model.on("change:nonanonymous",this.onFeatureChanged,this),this.chatroomview.model.on("change:open",this.onFeatureChanged,this),this.chatroomview.model.on("change:passwordprotected",this.onFeatureChanged,this),this.chatroomview.model.on("change:persistent",this.onFeatureChanged,this),this.chatroomview.model.on("change:public",this.onFeatureChanged,this),this.chatroomview.model.on("change:semianonymous",this.onFeatureChanged,this),this.chatroomview.model.on("change:temporary",this.onFeatureChanged,this),this.chatroomview.model.on("change:unmoderated",this.onFeatureChanged,this),this.chatroomview.model.on("change:unsecured",this.onFeatureChanged,this)},render:function(){return this.el.innerHTML=c(D.extend(this.chatroomview.model.toJSON(),{allow_muc_invitations:e.allow_muc_invitations,label_occupants:q("Occupants")})),e.allow_muc_invitations&&e.api.waitUntil("rosterContactsFetched").then(this.renderInviteWidget.bind(this)),this.renderRoomFeatures()},renderInviteWidget:function(){var e=this.el.querySelector("form.room-invite");if(this.shouldInviteWidgetBeShown()){if(D.isNull(e)){var n=this.el.querySelector(".occupants-heading");e=a({label_invitation:q("Invite")}),n.insertAdjacentHTML("afterend",e),this.initInviteWidget()}}else D.isNull(e)||e.remove();return this},renderRoomFeatures:function(){var e=D.pick(this.chatroomview.model.attributes,L),n=function(e,n){return e||n},t=this.el.querySelector(".chatroom-features");return t.innerHTML=r(D.extend(this.chatroomview.model.toJSON(),{has_features:D.reduce(D.values(e),n),label_features:q("Features"),label_hidden:q("Hidden"),label_mam_enabled:q("Message archiving"),label_membersonly:q("Members only"),label_moderated:q("Moderated"),label_nonanonymous:q("Non-anonymous"),label_open:q("Open"),label_passwordprotected:q("Password protected"),label_persistent:q("Persistent"),label_public:q("Public"),label_semianonymous:q("Semi-anonymous"),label_temporary:q("Temporary"),label_unmoderated:q("Unmoderated"),label_unsecured:q("Unsecured"),tt_hidden:q("This room is not publicly searchable"),tt_mam_enabled:q("Messages are archived on the server"),tt_membersonly:q("This room is restricted to members only"),tt_moderated:q("This room is being moderated"),tt_nonanonymous:q("All other room occupants can see your Jabber ID"),tt_open:q("Anyone can join this room"),tt_passwordprotected:q("This room requires a password before entry"),tt_persistent:q("This room persists even if it's unoccupied"),tt_public:q("This room is publicly searchable"),tt_semianonymous:q("Only moderators can see your Jabber ID"),tt_temporary:q("This room will disappear once the last person leaves"),tt_unmoderated:q("This room is not being moderated"),tt_unsecured:q("This room does not require a password upon entry")})),this.setOccupantsHeight(),this},onFeatureChanged:function(e){D.isUndefined(this.debouncedRenderRoomFeatures)&&(this.debouncedRenderRoomFeatures=D.debounce(this.renderRoomFeatures,100,{leading:!1}));var n={};D.each(D.keys(e.changed),function(t){D.isNil(O[t])||(n[O[t]]=!e.changed[t])}),this.chatroomview.model.save(n,{silent:!0}),this.debouncedRenderRoomFeatures()},setOccupantsHeight:function(){var e=this.el.querySelector(".chatroom-features");this.el.querySelector(".occupant-list").style.cssText="height: calc(100% - "+e.offsetHeight+"px - 5em);"},onOccupantAdded:function(n){var t=this.get(n.get("id"));t?(delete t.model,t.model=n,t.initialize()):t=this.add(n.get("id"),new e.ChatRoomOccupantView({model:n})),this.$(".occupant-list").append(t.render().$el)},parsePresence:function(e){var n=x.getResourceFromJid(e.getAttribute("from")),t={nick:n,type:e.getAttribute("type"),states:[]};return D.each(e.childNodes,function(e){switch(e.nodeName){case"status":t.status=e.textContent||null;break;case"show":t.show=e.textContent||"online";break;case"x":e.getAttribute("xmlns")===x.NS.MUC_USER&&D.each(e.childNodes,function(e){switch(e.nodeName){case"item":t.affiliation=e.getAttribute("affiliation"),t.role=e.getAttribute("role"),t.jid=e.getAttribute("jid"),t.nick=e.getAttribute("nick")||t.nick;break;case"status":e.getAttribute("code")&&t.states.push(e.getAttribute("code"))}})}}),t},findOccupant:function(e){var n=x.getBareJidFromJid(e.jid);return null!==n?this.model.where({jid:n}).pop():this.model.where({nick:e.nick}).pop()},updateOccupantsOnPresence:function(e){var n=this.parsePresence(e);if("error"===n.type)return!0;var t=this.findOccupant(n);switch(n.type){case"unavailable":t&&t.destroy();break;default:var i=x.getBareJidFromJid(n.jid),r=D.extend(n,{jid:i?i:void 0,resource:n.jid?x.getResourceFromJid(n.jid):void 0});t?t.save(r):this.model.create(r)}},promptForInvite:function(e){var n=prompt(q(F('You are about to invite %1$s to the chat room "%2$s". '),e.text.label,this.model.get("id"))+q("You may optionally include a message, explaining the reason for the invitation."));null!==n&&this.chatroomview.directInvite(e.text.value,n),e.target.value=""},inviteFormSubmitted:function(e){e.preventDefault();var n=e.target.querySelector("input.invited-contact");this.promptForInvite({target:n,text:{label:n.value,value:n.value}})},shouldInviteWidgetBeShown:function(){return e.allow_muc_invitations&&(this.chatroomview.model.get("open")||"owner"===this.chatroomview.model.get("affiliation"))},initInviteWidget:function(){var n=this.el.querySelector("form.room-invite");if(!D.isNull(n)){n.addEventListener("submit",this.inviteFormSubmitted.bind(this));var t=this.el.querySelector("input.invited-contact"),i=e.roster.map(function(e){var n=e.get("fullname")||e.get("jid");return{label:n,value:e.get("jid")}});new y(t,{minChars:1,list:i});t.addEventListener("awesomplete-selectcomplete",this.promptForInvite.bind(this))}}}),e.RoomsPanel=S.View.extend({tagName:"div",className:"controlbox-pane",id:"chatrooms",events:{"submit form.add-chatroom":"openChatRoom","click input#show-rooms":"showRooms","click a.open-room":"openChatRoom","click a.room-info":"toggleRoomInfo","change input[name=server]":"setDomain","change input[name=nick]":"setNick"},initialize:function(n){this.parent_el=n.$parent[0],this.tab_el=document.createElement("li"),this.model.on("change:muc_domain",this.onDomainChange,this),this.model.on("change:nick",this.onNickChange,this),e.chatboxes.on("change:num_unread",this.renderTab,this),e.chatboxes.on("add",D.debounce(this.renderTab,100),this)},render:function(){this.el.innerHTML=_({server_input_type:e.hide_muc_server&&"hidden"||"text",server_label_global_attr:e.hide_muc_server&&" hidden"||"",label_room_name:q("Room name"),label_nickname:q("Nickname"),label_server:q("Server"),label_join:q("Join Room"),label_show_rooms:q("Show rooms")}),this.renderTab();var n=e.chatboxes.get("controlbox");return n.get("active-panel")!==b&&this.el.classList.add("hidden"),this},renderTab:function(){var n=e.chatboxes.get("controlbox"),t=R.filter(D.partial(N.isOfType,w),e.chatboxes.models);this.tab_el.innerHTML=d({label_rooms:q("Rooms"),is_current:n.get("active-panel")===b,num_unread:R.sum(R.map(R.curry(N.getAttribute)("num_unread"),t))})},insertIntoDOM:function(){return this.parent_el.appendChild(this.render().el),this.tabs=this.parent_el.parentNode.querySelector("#controlbox-tabs"),this.tabs.appendChild(this.tab_el),this},onDomainChange:function(n){var t=this.$el.find("input.new-chatroom-server");t.val(n.get("muc_domain")),e.auto_list_rooms&&this.updateRoomsList()},onNickChange:function(e){var n=this.$el.find("input.new-chatroom-nick");n.val(e.get("nick"))},informNoRoomsFound:function(){var e=this.$el.find("#available-chatrooms");e.html("<dt>"+q("No rooms on %1$s",this.model.get("muc_domain"))+"</dt>"),E("input#show-rooms").show().siblings("span.spinner").remove()},onRoomsFound:function(e){var n,t,i,r,o=this.$el.find("#available-chatrooms");if(this.rooms=E(e).find("query").find("item"),this.rooms.length){for(o.html("<dt>"+q("Rooms on %1$s",this.model.get("muc_domain"))+"</dt>"),r=document.createDocumentFragment(),i=0;i<this.rooms.length;i++)n=x.unescapeNode(E(this.rooms[i]).attr("name")||E(this.rooms[i]).attr("jid")),t=E(this.rooms[i]).attr("jid"),r.appendChild(E(g({name:n,jid:t,open_title:q("Click to open this room"),info_title:q("Show more information on this room")}))[0]);o.append(r),E("input#show-rooms").show().siblings("span.spinner").remove()}else this.informNoRoomsFound();return!0},updateRoomsList:function(){e.connection.sendIQ(C({to:this.model.get("muc_domain"),from:e.connection.jid,type:"get"}).c("query",{xmlns:x.NS.DISCO_ITEMS}),this.onRoomsFound.bind(this),this.informNoRoomsFound.bind(this))},showRooms:function(){var e=this.$el.find("#available-chatrooms"),n=this.$el.find("input.new-chatroom-server"),t=n.val();return t?(this.$el.find("input.new-chatroom-name").removeClass("error"),n.removeClass("error"),e.empty(),E("input#show-rooms").hide().after(v),this.model.save({muc_domain:t}),void this.updateRoomsList()):void n.addClass("error")},insertRoomInfo:function(e,n){var t=E(n);E(e).find("span.spinner").replaceWith(m({server:x.getDomainFromJid(n.getAttribute("from")),desc:t.find('field[var="muc#roominfo_description"] value').text(),occ:t.find('field[var="muc#roominfo_occupants"] value').text(),hidden:t.find('feature[var="muc_hidden"]').length,membersonly:t.find('feature[var="muc_membersonly"]').length,moderated:t.find('feature[var="muc_moderated"]').length,nonanonymous:t.find('feature[var="muc_nonanonymous"]').length,open:t.find('feature[var="muc_open"]').length,passwordprotected:t.find('feature[var="muc_passwordprotected"]').length,persistent:t.find('feature[var="muc_persistent"]').length,publicroom:t.find('feature[var="muc_public"]').length,semianonymous:t.find('feature[var="muc_semianonymous"]').length,
temporary:t.find('feature[var="muc_temporary"]').length,unmoderated:t.find('feature[var="muc_unmoderated"]').length,label_desc:q("Description:"),label_server:q("Server:"),label_occ:q("Occupants:"),label_features:q("Features:"),label_requires_auth:q("Requires authentication"),label_hidden:q("Hidden"),label_requires_invite:q("Requires an invitation"),label_moderated:q("Moderated"),label_non_anon:q("Non-anonymous"),label_open_room:q("Open room"),label_permanent_room:q("Permanent room"),label_public:q("Public"),label_semi_anon:q("Semi-anonymous"),label_temp_room:q("Temporary room"),label_unmoderated:q("Unmoderated")}))},toggleRoomInfo:function(n){var t=n.target,i=E(t).parent("dd"),r=i.find("div.room-info");r.length?r.remove():(i.find("span.spinner").remove(),i.append(v),e.connection.disco.info(E(t).attr("data-room-jid"),null,D.partial(this.insertRoomInfo,i[0])))},parseRoomDataFromEvent:function(e){var n,t,i,r,o;if("click"===e.type)n=E(e.target).text(),o=E(e.target).attr("data-room-jid");else{if(t=this.$el.find("input.new-chatroom-name"),r=this.$el.find("input.new-chatroom-server"),i=r.val(),n=t.val().trim(),t.val(""),!n||!i)return n||t.addClass("error"),void(i||r.addClass("error"));o=x.escapeNode(n.toLowerCase())+"@"+i.toLowerCase(),t.removeClass("error"),r.removeClass("error"),this.model.save({muc_domain:i})}return{id:o,jid:o,name:n||x.unescapeNode(x.getNodeFromJid(o)),type:w,box_id:M(o)}},openChatRoom:function(n){n.preventDefault(),e.openChatRoom(this.parseRoomDataFromEvent(n))},setDomain:function(e){this.model.save({muc_domain:e.target.value})},setNick:function(e){this.model.save({nick:e.target.value})}}),e.onDirectMUCInvitation=function(n){var t,i=E(n),r=i.children('x[xmlns="jabber:x:conference"]'),o=x.getBareJidFromJid(i.attr("from")),s=r.attr("jid"),a=r.attr("reason"),l=e.roster.get(o);if(e.auto_join_on_invite?t=!0:(l=l?l.get("fullname"):x.getNodeFromJid(o),t=a?confirm(q(F('%1$s has invited you to join a chat room: %2$s, and left the following reason: "%3$s"'),l,s,a)):confirm(q(F("%1$s has invited you to join a chat room: %2$s"),l,s))),t===!0){var u=e.openChatRoom({id:s,jid:s,name:x.unescapeNode(x.getNodeFromJid(s)),type:w,box_id:M(s),password:r.attr("password")});u.get("connection_status")===P.DISCONNECTED&&e.chatboxviews.get(s).join()}},e.allow_muc_invitations){var Y=function(){e.connection.addHandler(function(n){return e.onDirectMUCInvitation(n),!0},"jabber:x:conference","message")};e.on("connected",Y),e.on("reconnected",Y)}var H=function(){D.each(e.auto_join_rooms,function(n){D.isString(n)?e.api.rooms.open(n):D.isObject(n)?e.api.rooms.open(n.jid,n.nick):e.log('Invalid room criteria specified for "auto_join_rooms"',x.LogLevel.ERROR)})};e.on("chatBoxesFetched",H),e.getChatRoom=function(n,t,i){return n=n.toLowerCase(),e.getViewForChatBox(i(D.extend({id:n,jid:n,name:x.unescapeNode(x.getNodeFromJid(n)),type:w,box_id:M(n)},t)))},D.extend(e.api,{rooms:{close:function(n){if(D.isUndefined(n))e.chatboxviews.each(function(e){e.is_chatroom&&e.model&&e.close()});else if(D.isString(n)){var t=e.chatboxviews.get(n);t&&t.close()}else D.each(n,function(n){var t=e.chatboxviews.get(n);t&&t.close()})},open:function(n,t){if(D.isString(t)?t={nick:t}:D.isUndefined(t)&&(t={}),D.isUndefined(t.maximize)&&(t.maximize=!1),!t.nick&&e.muc_nickname_from_jid&&(t.nick=x.getNodeFromJid(e.bare_jid)),D.isUndefined(n))throw new TypeError("rooms.open: You need to provide at least one JID");return D.isString(n)?e.getChatRoom(n,t,e.openChatRoom):D.map(n,D.partial(e.getChatRoom,D,t,e.openChatRoom))},get:function(n,t,i){if(D.isString(t)?t={nick:t}:D.isUndefined(t)&&(t={}),D.isUndefined(n)){var r=[];return e.chatboxes.each(function(n){n.get("type")===w&&r.push(e.getViewForChatBox(n))}),r}var o=D.partial(e.chatboxviews.getChatBox.bind(e.chatboxviews),D,i);return t.nick||(t.nick=x.getNodeFromJid(e.bare_jid)),D.isString(n)?e.getChatRoom(n,t,o):D.map(n,D.partial(e.getChatRoom,D,t,o))}}});var z=function(){e.chatboxviews.each(function(e){e.model.get("type")===w&&(e.model.save("connection_status",P.DISCONNECTED),e.registerHandlers(),e.join(),e.fetchMessages())})};e.on("reconnected",z);var B=function(){e.chatboxes.each(function(e){e.get("type")===w&&e.save("connection_status",P.DISCONNECTED)})};e.on("reconnecting",B),e.on("disconnecting",B)}})}),function(e,n){"function"==typeof define&&define.amd?define("strophe.rsm",["strophe"],function(e){return n(e.Strophe,e.$build,e.$iq,e.$msg,e.$pres),e}):n(e.Strophe,e.$build,e.$iq,e.$msg,e.$pres)}(this,function(e,n,t,i,r){e.addNamespace("RSM","http://jabber.org/protocol/rsm"),e.RSM=function(e){if(this.attribs=["max","first","last","after","before","index","count"],"undefined"!=typeof e.xml)this.fromXMLElement(e.xml);else for(var n=0;n<this.attribs.length;n++){var t=this.attribs[n];this[t]=e[t]}},e.RSM.prototype={toXML:function(){for(var t=n("set",{xmlns:e.NS.RSM}),i=0;i<this.attribs.length;i++){var r=this.attribs[i];"undefined"!=typeof this[r]&&(t=t.c(r).t(this[r].toString()).up())}return t.tree()},next:function(n){var t=new e.RSM({max:n,after:this.last});return t},previous:function(n){var t=new e.RSM({max:n,before:this.first});return t},fromXMLElement:function(n){for(var t=0;t<this.attribs.length;t++){var i=this.attribs[t],r=n.getElementsByTagName(i)[0];"undefined"!=typeof r&&null!==r&&(this[i]=e.getText(r),"first"==i&&(this.index=r.getAttribute("index")))}}}}),function(e,n){define("converse-mam",["converse-core","converse-chatview","converse-muc","strophe.rsm"],n)}(this,function(e){"use strict";var n=e.env.jQuery,t=e.env.Strophe,i=e.env.$iq,r=e.env._,o=e.env.moment,s=["max","first","last","after","before","index","count"],a=["with","start","end"];e.plugins.add("converse-mam",{overrides:{Features:{addClientFeatures:function(){var e=this.__super__._converse;return e.connection.disco.addFeature(t.NS.MAM),this.__super__.addClientFeatures.apply(this,arguments)}},ChatBox:{getMessageAttributes:function(e,i,r){var o=this.__super__.getMessageAttributes.apply(this,arguments);return o.archive_id=n(r).find('result[xmlns="'+t.NS.MAM+'"]').attr("id"),o}},ChatBoxView:{render:function(){var e=this.__super__.render.apply(this,arguments);return this.disable_mam||this.$content.on("scroll",r.debounce(this.onScroll.bind(this),100)),e},afterMessagesFetched:function(){var e=this.__super__._converse;return this.disable_mam||!e.features.findWhere({var:t.NS.MAM})?this.__super__.afterMessagesFetched.apply(this,arguments):(!this.model.get("mam_initialized")&&this.model.messages.length<e.archived_messages_page_size&&(this.fetchArchivedMessages({before:"",with:this.model.get("jid"),max:e.archived_messages_page_size}),this.model.save({mam_initialized:!0})),this.__super__.afterMessagesFetched.apply(this,arguments))},fetchArchivedMessages:function(e){var n=this.__super__._converse;return n.features.findWhere({var:t.NS.MAM})?void(this.disable_mam||(this.addSpinner(),n.queryForArchivedMessages(e,function(e){this.clearSpinner(),e.length&&r.each(e,n.chatboxes.onMessage.bind(n.chatboxes))}.bind(this),function(){this.clearSpinner(),n.log("Error or timeout while trying to fetch archived messages",t.LogLevel.ERROR)}.bind(this)))):void n.log("Attempted to fetch archived messages but this user's server doesn't support XEP-0313",t.LogLevel.WARN)},onScroll:function(e){var t=this.__super__._converse;0===n(e.target).scrollTop()&&this.model.messages.length&&this.fetchArchivedMessages({before:this.model.messages.at(0).get("archive_id"),with:this.model.get("jid"),max:t.archived_messages_page_size})}},ChatRoomView:{initialize:function(){var e=this.__super__._converse;this.__super__.initialize.apply(this,arguments),this.model.on("change:mam_enabled",function(){this.fetchArchivedMessages({before:"",with:this.model.get("jid"),max:e.archived_messages_page_size}),this.model.save({mam_initialized:!0})},this)},render:function(){var e=this.__super__.render.apply(this,arguments);return this.disable_mam||this.$content.on("scroll",r.debounce(this.onScroll.bind(this),100)),e},handleMUCMessage:function(e){var i=n(e).find('[xmlns="'+t.NS.MAM+'"]').length>0;return!!i||this.__super__.handleMUCMessage.apply(this,arguments)},fetchArchivedMessages:function(e){var n=this.__super__._converse;if(!n.features.findWhere({var:t.NS.MAM}))return void n.log("Attempted to fetch archived messages but this user's server doesn't support XEP-0313",t.LogLevel.WARN);if(this.model.get("mam_enabled")){this.addSpinner();var i=this;n.api.archive.query(r.extend(e,{groupchat:!0}),function(e){i.clearSpinner(),e.length&&r.each(e,i.onChatRoomMessage.bind(i))},function(){i.clearSpinner(),n.log("Error while trying to fetch archived messages",t.LogLevel.WARN)})}}}},initialize:function(){var e=this._converse;e.api.settings.update({archived_messages_page_size:"50",message_archiving:void 0,message_archiving_timeout:8e3}),e.queryForArchivedMessages=function(n,l,u){var c,h=[];r.isFunction(n)&&(l=n,u=l);var d=e.connection.getUniqueId(),f={type:"set"};if(!r.isUndefined(n)&&n.groupchat){if(!n.with)throw new Error('You need to specify a "with" value containing the chat room JID, when querying groupchat messages.');f.to=n.with}var p=i(f).c("query",{xmlns:t.NS.MAM,queryid:d});r.isUndefined(n)||(p.c("x",{xmlns:t.NS.XFORM,type:"submit"}).c("field",{var:"FORM_TYPE",type:"hidden"}).c("value").t(t.NS.MAM).up().up(),n.with&&!n.groupchat&&p.c("field",{var:"with"}).c("value").t(n.with).up().up(),r.each(["start","end"],function(e){if(n[e]){if(c=o(n[e]),!c.isValid())throw new TypeError("archive.query: invalid date provided for: "+e);p.c("field",{var:e}).c("value").t(c.format()).up().up()}}),p.up(),n instanceof t.RSM?p.cnode(n.toXML()):r.intersection(s,r.keys(n)).length&&p.cnode(new t.RSM(n).toXML()));var m=e.connection.addHandler(function(e){var n=e.querySelector("result");return r.isNull(n)||n.getAttribute("queryid")!==d||h.push(e),!0},t.NS.MAM);e.connection.sendIQ(p,function(i){if(e.connection.deleteHandler(m),r.isFunction(l)){var o=i.querySelector("set"),s=new t.RSM({xml:o});r.extend(s,r.pick(n,r.concat(a,["max"]))),l(h,s)}},function(){e.connection.deleteHandler(m),r.isFunction(u)&&u.apply(this,arguments)},e.message_archiving_timeout)},r.extend(e.api,{archive:{query:e.queryForArchivedMessages.bind(e)}}),e.onMAMError=function(i){n(i).find("feature-not-implemented").length?e.log("Message Archive Management (XEP-0313) not supported by this server",t.LogLevel.WARN):(e.log("An error occured while trying to set archiving preferences.",t.LogLevel.ERROR),e.log(i))},e.onMAMPreferences=function(o,s){var a,l=n(s).find('prefs[xmlns="'+t.NS.MAM+'"]'),u=l.attr("default");u!==e.message_archiving?(a=i({type:"set"}).c("prefs",{xmlns:t.NS.MAM,default:e.message_archiving}),l.children().each(function(e,n){a.cnode(n).up()}),e.connection.sendIQ(a,r.partial(function(n,t){n.save({preferences:{default:e.message_archiving}})},o),e.onMAMError)):o.save({preferences:{default:e.message_archiving}})};var l=function(n){var o=n.get("preferences")||{};n.get("var")!==t.NS.MAM||o.default===e.message_archiving||r.isUndefined(e.message_archiving)||e.connection.sendIQ(i({type:"get"}).c("prefs",{xmlns:t.NS.MAM}),r.partial(e.onMAMPreferences,n),r.partial(e.onMAMError,n))};e.on("serviceDiscovered",l.bind(e.features))}})}),function(e,n){"function"==typeof define&&define.amd?define("strophe.vcard",["strophe"],function(e){return n(e.Strophe,e.$build,e.$iq,e.$msg,e.$pres),e}):n(e.Strophe,e.$build,e.$iq,e.$msg,e.$pres)}(this,function(e,n,t,i,r){var o=function(n,i,r){var o=t(i?{type:n,to:i}:{type:n});return o.c("vCard",{xmlns:e.NS.VCARD}),r&&o.cnode(r),o};e.addConnectionPlugin("vcard",{_connection:null,init:function(n){return this._connection=n,e.addNamespace("VCARD","vcard-temp")},get:function(e,n,t){var i=o("get",n);return this._connection.sendIQ(i,e,t)},set:function(e,n,t,i){var r=o("set",t,n);return this._connection.sendIQ(r,e,i)}})}),function(e,n){define("converse-vcard",["converse-core","strophe.vcard"],n)}(this,function(e){"use strict";var n=e.env.Strophe,t=e.env.jQuery,i=e.env._,r=e.env.moment;e.plugins.add("converse-vcard",{overrides:{Features:{addClientFeatures:function(){var e=this.__super__._converse;this.__super__.addClientFeatures.apply(this,arguments),e.use_vcards&&e.connection.disco.addFeature(n.NS.VCARD)}},RosterContacts:{createRequestingContact:function(e){var t=this.__super__._converse,r=n.getBareJidFromJid(e.getAttribute("from"));t.getVCard(r,i.partial(t.createRequestingContactFromVCard,e),function(i,r){t.log("Error while retrieving vcard for "+r,n.LogLevel.ERROR),t.createRequestingContactFromVCard(e,i,r)})}}},initialize:function(){var e=this._converse;e.api.settings.update({use_vcards:!0}),e.createRequestingContactFromVCard=function(i,o,s,a,l,u,c){var h=n.getBareJidFromJid(s),d=t(i).children('nick[xmlns="'+n.NS.NICK+'"]').text(),f={jid:h,subscription:"none",ask:null,requesting:!0,fullname:a||d||h,image:l,image_type:u,url:c,vcard_updated:r().format()};e.roster.create(f),e.emit("contactRequest",f)},e.onVCardError=function(n,t,i){var o=e.roster.get(n);o&&o.save({vcard_updated:r().format()}),i&&i(t,n)},e.onVCardData=function(n,o,s){var a=t(o).find("vCard"),l=a.find("FN").text(),u=a.find("BINVAL").text(),c=a.find("TYPE").text(),h=a.find("URL").text();if(n){var d=e.roster.get(n);d&&(l=i.isEmpty(l)?d.get("fullname")||n:l,d.save({fullname:l,image_type:c,image:u,url:h,vcard_updated:r().format()}))}s&&s(o,n,l,u,c,h)},e.getVCard=function(n,t,r){e.use_vcards?e.connection.vcard.get(i.partial(e.onVCardData,n,i,t),n,i.partial(e.onVCardError,n,i,r)):t&&t(null,n)};var o=function(t){if(e.use_vcards){var i=t.model.get("jid"),r=e.roster.get(i);r&&!r.get("vcard_updated")&&e.getVCard(i,function(e,n,i,r,o,s){t.model.save({fullname:i||n,url:s,image_type:o,image:r})},function(){e.log("updateVCardForChatBox: Error occured while fetching vcard",n.LogLevel.ERROR)})}};e.on("chatBoxInitialized",o);var s=function(n){n.get("vcard_updated")||e.getVCard(n.get("jid"))};e.on("initialized",function(){e.roster.on("add",s)});var a=function(){void 0===e.xmppstatus.get("fullname")&&e.getVCard(null,function(n,t,i,r,o,s){e.xmppstatus.save({fullname:i}),e.xmppstatus.save({url:s})})};e.on("statusInitialized",a)}})}),function(e,n){"function"==typeof define&&define.amd?define("strophe.ping",["strophe"],function(e){return n(e.Strophe,e.$build,e.$iq,e.$msg,e.$pres),e}):n(e.Strophe,e.$build,e.$iq,e.$msg,e.$pres)}(this,function(e,n,t,i,r){e.addConnectionPlugin("ping",{_c:null,init:function(n){this._c=n,e.addNamespace("PING","urn:xmpp:ping")},ping:function(n,i,r,o){var s=this._c.getUniqueId("ping"),a=t({type:"get",to:n,id:s}).c("ping",{xmlns:e.NS.PING});this._c.sendIQ(a,i,r,o)},pong:function(e){var n=e.getAttribute("from"),i=e.getAttribute("id"),r=t({type:"result",to:n,id:i});this._c.sendIQ(r)},addPingHandler:function(n){return this._c.addHandler(n,e.NS.PING,"iq","get")}})}),function(e,n){define("converse-ping",["converse-core","strophe.ping"],n)}(this,function(e){"use strict";var n=e.env.Strophe,t=e.env._;e.plugins.add("converse-ping",{initialize:function(){var e=this._converse;e.api.settings.update({ping_interval:180}),e.ping=function(i,r,o,s){return e.lastStanzaDate=new Date,t.isNil(i)&&(i=n.getDomainFromJid(e.bare_jid)),t.isUndefined(s)&&(s=null),t.isUndefined(r)&&(r=null),t.isUndefined(o)&&(o=null),!!e.connection&&(e.connection.ping.ping(i,r,o,s),!0)},e.pong=function(n){return e.lastStanzaDate=new Date,e.connection.ping.pong(n),!0},e.registerPongHandler=function(){e.connection.disco.addFeature(n.NS.PING),e.connection.ping.addPingHandler(e.pong)},e.registerPingHandler=function(){e.registerPongHandler(),e.ping_interval>0&&(e.connection.addHandler(function(){return e.lastStanzaDate=new Date,!0}),e.connection.addTimedHandler(1e3,function(){var n=new Date;return e.lastStanzaDate||(e.lastStanzaDate=n),!((n-e.lastStanzaDate)/1e3>e.ping_interval)||e.ping()}))};var i=function(){e.registerPingHandler()};e.on("connected",i),e.on("reconnected",i)}})}),function(e,n){define("converse-singleton",["converse-core","converse-chatview"],n)}(this,function(e){"use strict";function n(e){"controlbox"!==e.model.get("id")&&(e.model.save({hidden:!0}),e.hide())}var t=e.env._;e.env.Strophe;e.plugins.add("converse-singleton",{optional_dependencies:["converse-muc","converse-controlbox","converse-rosterview"],overrides:{ChatBoxes:{createChatBox:function(e,n){return n=n||{},n.hidden=!0,this.__super__.createChatBox.call(this,e,n)}},RoomsPanel:{parseRoomDataFromEvent:function(e){var n=this.__super__.parseRoomDataFromEvent.apply(this,arguments);return n.hidden=!1,n}},ChatBoxViews:{showChat:function(e,i){var r=this.__super__._converse,o=this.getChatBox(e,!0),s=t.isUndefined(e.hidden)?o.get("hidden"):e.hidden;return!i&&s||!r.connection.authenticated||(t.each(r.chatboxviews.xget(o.get("id")),n),o.save({hidden:!1})),this.__super__.showChat.apply(this,arguments)}},ChatBoxView:{_show:function(e){if(!this.model.get("hidden"))return t.each(this.__super__._converse.chatboxviews.xget(this.model.get("id")),n),this.__super__._show.apply(this,arguments)}},RosterContactView:{openChat:function(e){return t.each(this.__super__._converse.chatboxviews.xget("controlbox"),n),this.model.save({hidden:!1}),this.__super__.openChat.apply(this,arguments)}}}})}),function(e,n){define("sd-register",["jquery.noconflict","converse-core","tpl!spinner","converse-controlbox"],n)}(this,function(e,n,t){"use strict";var i=n.env.Strophe,r=(n.env.utils,n.env.$build,n.env.$iq),o=n.env._,s=(n.env.moment,n.env.Backbone);i.addNamespace("REGISTER","jabber:iq:register");var a=0;o.each(o.keys(i.Status),function(e){a=Math.max(a,i.Status[e])}),i.Status.REGIFAIL=a+1,i.Status.REGISTERED=a+2,i.Status.CONFLICT=a+3,i.Status.NOTACCEPTABLE=a+5,n.plugins.add("sd-register",{initialize:function(){var n,a=this._converse;a.sdRegisterPanel=s.View.extend({tagName:"div",id:"sd-register",className:"controlbox-pane",initialize:function(e){this.$parent=e.$parent,this.$tabs=e.$parent.parent().find("#controlbox-tabs"),n={username:e.username,password:e.password,fullname:e.fullname,domain:e.domain},this.registerHooks(),this.fetchRegistrationForm()},render:function(){this.$parent.append(this.$el.html(t({})))},reset:function(e){var n={fields:{},urls:[],title:"",instructions:"",registered:!1,_registering:!1,domain:null,form_type:null};o.extend(this,n),e&&o.extend(this,o.pick(e,o.keys(n)))},registerHooks:function(){var e=a.connection,n=e._connect_cb.bind(e);e._connect_cb=function(e,t,i){this._registering?this.getRegistrationFields(e,t,i)&&(this._registering=!1):n(e,t,i)}.bind(this)},fetchRegistrationForm:function(){return this.reset({domain:i.getDomainFromJid(n.domain),_registering:!0}),a.connection.connect(this.domain,"",this.onRegistering.bind(this)),!1},onRegistering:function(e,t){if(o.includes([i.Status.DISCONNECTED,i.Status.CONNFAIL,i.Status.REGIFAIL,i.Status.NOTACCEPTABLE,i.Status.CONFLICT],e))t?a.log("error"+t):a.log("error");else if(e===i.Status.REGISTERED){a.connection.reset();var r=n.username+"@"+n.domain+"/"+document.domain+"-"+a.locale;a.connection.connect(r,n.password,a.onConnectStatusChanged)}},getRegistrationFields:function(e,n,t){var o=a.connection;o.connected=!0;var s=o._proto._reqToData(e);if(s){if(o._proto._connect_cb(s)===i.Status.CONNFAIL)return!1;var l=s.getElementsByTagName("register"),u=s.getElementsByTagName("mechanism");return 0===l.length&&0===u.length?(o._proto._no_auth_received(n),!1):0===l.length?(o._changeConnectStatus(i.Status.REGIFAIL,__("Sorry, the given provider does not support in band account registration. Please try with a different provider.")),!0):(o._addSysHandler(this.onRegistrationFields.bind(this),null,"iq",null,null),o.send(r({type:"get",id:"reg1",to:this.domain}).c("query",{xmlns:i.NS.REGISTER}).tree()),o.connected=!1,!0)}},onRegistrationFields:function(e){return this.setFields(e),this.submitRegistrationForm(),!1},submitRegistrationForm:function(){var e=r({type:"set",id:"reg1",to:this.domain}).c("query",{xmlns:i.NS.REGISTER}).c("x",{xmlns:i.NS.XFORM,type:"submit"}).c("field",{type:"text-single",label:"Username",var:"username"}).c("value",{},n.username).up().c("field",{type:"text-private",label:"Password",var:"password"}).c("value",{},n.password).up().c("field",{type:"text-single",label:"Full Name",var:"name"}).c("value",{},n.fullname).up();a.saveVisitorCookie(n.username,n.password),a.connection._addSysHandler(this._onRegisterIQ.bind(this),null,"iq",null,null),a.connection.send(e),this.setFields(e.tree())},setFields:function(n){var t,r=e(n).find("query");r.length>0&&(t=r.find('x[xmlns="'+i.NS.XFORM+'"]'),t.length>0?this._setFieldsFromXForm(t):this._setFieldsFromLegacy(r))},_setFieldsFromLegacy:function(n){n.children().each(function(n,t){var r=e(t);return"instructions"===t.tagName.toLowerCase()?void(this.instructions=i.getText(t)):"x"===t.tagName.toLowerCase()?void("jabber:x:oob"===r.attr("xmlns")&&r.find("url").each(function(n,t){this.urls.push(e(t).text())}.bind(this))):void(this.fields[t.tagName.toLowerCase()]=i.getText(t))}.bind(this)),this.form_type="legacy"},_setFieldsFromXForm:function(n){this.title=n.find("title").text(),this.instructions=n.find("instructions").text(),n.find("field").each(function(n,t){var i=t.getAttribute("var");i?this.fields[i.toLowerCase()]=e(t).children("value").text():a.log("WARNING: Found field we couldn't parse")}.bind(this)),this.form_type="xform"},_onRegisterIQ:function(e){var n=null,t=e.getElementsByTagName("query");if(t.length>0&&(t=t[0]),"error"===e.getAttribute("type")){if(n=e.getElementsByTagName("error"),1!==n.length)return a.connection._changeConnectStatus(i.Status.REGIFAIL,"unknown"),!1;n=n[0].firstChild.tagName.toLowerCase(),"conflict"===n?a.connection._changeConnectStatus(i.Status.CONFLICT,n):"not-acceptable"===n?a.connection._changeConnectStatus(i.Status.NOTACCEPTABLE,n):a.connection._changeConnectStatus(i.Status.REGIFAIL,n)}else a.connection._changeConnectStatus(i.Status.REGISTERED,null);return!1}}),a.saveVisitorCookie=function(e,n){var t=new Date;t.setTime(t.getTime()+2592e6);var i="expires="+t.toUTCString(),r={uid:e,token:n};document.cookie="_sd_info="+JSON.stringify(r)+";"+i+";path=/"},a.getVisitorCookie=function(){for(var e="_sd_info=",n=decodeURIComponent(document.cookie),t=n.split(";"),i=0;i<t.length;i++){for(var r=t[i];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(e))return JSON.parse(r.substring(e.length,r.length))}return""}}})}),function(e,n){define("sd-user",["jquery.noconflict","converse-core","tpl!spinner","tpl!new_day","converse-chatview","converse-controlbox"],n)}(this,function(e,n,t,i){"use strict";function r(){e(".roster-contacts dd.both").sort(function(n,t){var i="",r="",o="00000000000";return i=e(n).children("a.open-chat").children(".sd-time").attr("sd-data-time"),r=e(t).children("a.open-chat").children(".sd-time").attr("sd-data-time"),i=void 0==i?"99999999999":o.substr(0,o.length-i.length)+i,r=void 0==r?"99999999999":o.substr(0,o.length-r.length)+r,i+=n.attributes["sd-data-raw-jid"].value,r+=t.attributes["sd-data-raw-jid"].value,i<r?1:-1}).each(function(){var n=e(this).detach();e(".roster-contacts dt[data-group=Ungrouped]").after(n)})}function o(e,n,t){s(e,{flag:"1",last_mgs:n,avatar:c(t)})}function s(e,n){localStorage.setItem(e,JSON.stringify(n))}function a(e){localStorage.removeItem(e)}function l(e){var n=localStorage.getItem(e);return m.isEmpty(n)?"":JSON.parse(n)}function u(){var e={};if(m.isEmpty(localStorage))return"";for(var n in localStorage)/^guest-/.test(n)&&(e[n.replace(/^ /,"")]=JSON.parse(localStorage.getItem(n)));return e}function c(e){var n,t=u();return t?(n=m.map(t,"avatar").length,n=Number(n)%49+1,n<10&&(n="0"+n.toString()),n.toString()):"01"}function h(){var n=u();n&&e.each(n,function(n,t){var i=new Date,r=new Date(t.last_mgs),o=Math.floor((i-r)/6e4),s=n.replace(/^guest-/,""),a=g(t.last_mgs).fromNow();e('[sd-data-raw-jid="'+s+'"] a.open-chat span.sd-time').text(a),e('[sd-data-raw-jid="'+s+'"] a.open-chat span.sd-time').attr("sd-data-time",o)})}function d(e){var n=e.slice(0,-3);return n}var f=n.env.Strophe,p=(n.env.utils,n.env.$build,n.env.$iq),m=n.env._,g=n.env.moment,_=(n.env.Backbone,"0");f.addNamespace("PUSH","urn:xmpp:push:0"),window.setInterval(h,6e4),n.plugins.add("sd-user",{overrides:{XMPPStatusView:{events:{"change .switch.online":"setStatus"},render:function(){var e=this.__super__._converse.__,n=this.model.get("status"),t="online"==n?"checked":"";this.$el.html('<div class="chat_en_desc">'+e("I am visible online")+'</div>                        <label class="switch onlineswitch online"><input type="checkbox" '+t+'><span class="slider round"></span></label>')},setStatus:function(n){n.preventDefault();var t="logout",i="0";n.target.checked&&(t="online",i="1"),this.model.setStatus(t);var r={jid:r2c_info.username,r2c_online:i};e.ajax({method:"POST",url:"/status/",data:JSON.stringify(r),beforeSend:function(){e(".loader-wrapper").css("display","block")},complete:function(n){e(".loader-wrapper").css("display","none")}})}},RosterContactView:{render:function(){var n=this.__super__.render.apply(this,arguments);n.$el.attr("sd-data-raw-jid",n.model.attributes.jid);var t="",i=n.model.attributes.jid,r="guest-"+i,o="",s=l(r);if(s){var a=n.model.attributes.url,u=e("<div>",{class:"sd-avatar-contact-list"});u.css("background-image",'url("ring2chat/image/avatar/'+s.avatar+'.png")'),n.$el.find("a.open-chat").prepend(u),"0"!==s.flag&&(t="sd-flag-icon-misscall"),a=a?d(a):"",o+='<span class="sd-site">'+a+"</span>"}return o+='<span class="sd-next"></span><span class="sd-flag '+t+'"></span><span class="sd-time"></span>',n.$el.find("a.open-chat span.contact-name").after(o),n.$el.find("a.open-chat .sd-flag-icon-misscall").parent().css("background-color","#fff4d1"),h(),n},isGroupCollapsed:function(){return!1},openChat:function(n){this.__super__.openChat.apply(this,arguments);var t=this.model.attributes,i=this.model.attributes.jid,r="guest-"+i,o=l(r);o&&(o.flag="0",s(r,o)),e(".chat-title").html(t.fullname),e(".chat-title").append('<div class="sd-site">'+d(t.url)+"</div>"),e(".chat-title").prepend('<span class="sd-status-icon icon-'+t.chat_status+'"></span>')}},RosterFilterView:{isActive:function(){return!1}},RosterGroupView:{initialize:function(){var e=this;e.model.contacts.on("add",e.addContact,this),e.model.contacts.on("change:subscription",e.onContactSubscriptionChange,this),e.model.contacts.on("change:requesting",e.onContactRequestChange,this),e.model.contacts.on("change:chat_status",function(e){this.positionContact(e).render()},this),e.model.contacts.on("destroy",e.onRemove,this),e.model.contacts.on("remove",e.onRemove,this),this.__super__._converse.roster.on("change:groups",e.onContactGroupChange,this)},positionContact:function(e){var n=this.get(e.get("id")),t=this.model.contacts.indexOf(e);return 0===t?this.$el.after(n.$el):t===this.model.contacts.length-1?this.$el.nextUntil("dt").last().after(n.$el):this.$el.nextUntil("dt").eq(t).before(n.$el),r(),n}},ChatBoxView:{events:{"click .chat-head-chatbox":"close"},close:function(){this.__super__.close.apply(this,arguments),e("body").removeClass("sd-chat-open")},getExtraMessageClasses:function(e){var n=e.delayed&&"delayed"||"";return n+" div-chat-msg-"+e.sender},renderAvatar:function(){this.__super__.renderAvatar.apply(this,arguments);var n=this.model.attributes.jid,t="guest-"+n,i=l(t),r=this.model.attributes.url;if(i){var o=e("<div>",{class:"sd-avatar"});o.css("background-image",'url("ring2chat/image/avatar/'+i.avatar+'.png")'),this.$el.find(".chat-title").before(o)}var s=this.model.get("chat_status")||"offline";r=r?d(r):"",this.$el.find(".user").after('<div class="sd-site">'+r+"</div>"),this.$el.find(".chat-title").prepend('<span class="sd-status-icon icon-'+s+'"></span>')},onChatStatusChanged:function(n){var t=n.get("chat_status");this.__super__._converse.__;e(".sd-status-icon").removeClass(function(e,n){return(n.match(/\bicon-\S+/g)||[]).join(" ")}).addClass("icon-"+t)},handleChatStateMessage:function(e){var n=this.__super__._converse,t=this.__super__._converse.__;e.get("chat_state")===n.COMPOSING?("me"===e.get("sender")?this.showStatusNotification(t("Typing from another device")):this.showStatusNotification("••• "+t("is typing")),this.clear_status_timeout=window.setTimeout(this.clearStatusNotification.bind(this),3e4)):e.get("chat_state")===n.PAUSED?"me"===e.get("sender")?this.showStatusNotification(t("Stopped typing on the other device")):this.showStatusNotification("••• "+t("has stopped typing")):m.includes([n.INACTIVE,n.ACTIVE],e.get("chat_state"))?this.$content.find("div.chat-event").remove():e.get("chat_state")===n.GONE&&this.showStatusNotification("••• "+t("has gone away"))},insertDayIndicator:function(e,n){var t=g(e).startOf("day"),r=n?this.$content.prepend:this.$content.append;r.call(this.$content,i({isodate:t.format(),datestring:t.format("dddd Do MMMM")}))}},ChatBox:{incrementUnreadMsgCounter:function(e){m.isNull(e.querySelector("body"))||"function"==typeof mobileDeviceChatHook&&mobileDeviceChatHook({type:"1",unread:"1"})}},RosterContacts:{comparator:function(){}},RosterContact:{addResource:function(e){var n=e.getAttribute("from"),t=m.propertyOf(e.querySelector("show"))("textContent")||"online",i=f.getResourceFromJid(n),r=m.propertyOf(e.querySelector("priority"))("textContent")||0,o=e.querySelector('delay[xmlns="'+f.NS.DELAY+'"]'),s=m.isNull(o)?g().format():g(o.getAttribute("stamp")).format();this.__super__._converse.__;r=m.isNaN(parseInt(r,10))?0:parseInt(r,10);var a=m.isObject(this.get("resources"))?this.get("resources"):{};a[i]={priority:r,status:t,timestamp:s};var l={resources:a};return l.chat_status=t,this.save(l),a},removeResource:function(e){var n=this.get("resources");m.isObject(n)?delete n[e]:n={},this.save({resources:n,chat_status:"offline"})}},RosterView:{showHideFilter:function(){this.__super__.showHideFilter.apply(this,arguments);var n=(this.__super__._converse,this.__super__._converse.__);r(),e("a.open-chat").length<1?e(".roster-contacts").append('<div class="no-contact">'+n("You have not received any message yet.")+" "+n("You can test the contact page on your published site.")+"</div>"):e(".no-contact").remove()},updateChatBox:function(n){this.__super__.updateChatBox.apply(this,arguments);var t=this.__super__._converse.__;return"offline"==n.get("chat_status")?e(".sendXMPPMessage").html('<div class="offline-mgs">'+t("This person is not online anymore.")+"</div>"):e(".sendXMPPMessage").html('<textarea type="text" class="chat-textarea chat-textarea-send-button" placeholder="'+t("Your message")+'"></textarea><button type="submit" class="pure-button send-button"></button>'),this}},ControlBoxView:{renderLoginPanel:function(){var n=this.__super__._converse,i=n.disconnection_cause;if(r2c_info.bgActive&&!m.isUndefined(i)&&i===f.Status.AUTHFAIL)return r2c_info.bgActive=!1,void("function"==typeof mobileDeviceChatHook&&mobileDeviceChatHook({type:"5"}));if("r2clogout"===n.disconnection_reason)return void(n.disconnection_reason="");if(!n.connection.authenticated){if(r2c_info.username&&r2c_info.password){e(".flyout").append(t);var r=r2c_info.username+"@"+r2c_info.domain;r2c_info.bgActive&&(n.connection.reconnecting=!0),this.uauthenticate(r,r2c_info.password)}return this}},uauthenticate:function(e,n){var t=this.__super__._converse;t.connection.reconnecting||t.connection.reset(),t.connection.connect(e,n,t.onConnectStatusChanged)}},onConnected:function(){this.__super__.onConnected.apply(this,arguments),r2c_info.enablePush=this.enablePush.bind(this),r2c_info.disablePush=this.disablePush.bind(this),r2c_info.sendCSIFromApp=this.sendCSIFromApp.bind(this),r2c_info.r2cLogout=this.r2cLogout.bind(this),r2c_info.closeChatbox=this.closeChatbox.bind(this),r2c_info.connWarn=this.connWarn.bind(this),"function"==typeof mobileDeviceChatHook&&mobileDeviceChatHook({type:"0"})},enablePush:function(n,t,i){if(n&&("ios"===i||"android"===i)){var r=this.__super__._converse,o=p({type:"set",id:r.connection.getUniqueId()}).c("enable",{xmlns:f.NS.PUSH,jid:r.bare_jid+"/"+t}).c("x",{xmlns:f.NS.XFORM}).c("field",{var:"FORM_TYPE"}).c("value",{},"http://jabber.org/protocol/pubsub#publish-options").up().c("field",{var:"token"}).c("value",{},n).up().c("field",{
var:"type"}).c("value",{},i);r.connection.send(o),e(".loader-wrapper").css("display","block"),(R2CPUSH="1")&&e(".loader-wrapper").css("display","none")}},disablePush:function(n){var t=this.__super__._converse,i=p({type:"set",id:t.connection.getUniqueId()}).c("disable",{xmlns:f.NS.PUSH,jid:t.bare_jid+"/"+n});t.connection.send(i),e(".loader-wrapper").css("display","block"),(R2CPUSH="0")&&e(".loader-wrapper").css("display","none")},sendCSIFromApp:function(e){var n=this.__super__._converse;n.connection.authenticated&&(e?(n.connection.resume(),n.sendCSI(n.ACTIVE)):(r2c_info.bgActive=!0,n.sendCSI(n.INACTIVE),n.connection.pause()))},r2cLogout:function(){var n=this.__super__._converse;n.connection.authenticated&&(m.isUndefined(n.connection)||(n.connection.disconnect("r2clogout"),e("#conversejs").remove()))},closeChatbox:function(){this.__super__._converse.chatboxviews.closeAllChatBoxes(),e("body").removeClass("sd-chat-open")},connWarn:function(){var n=this.__super__._converse.__;document.getElementById("msg1").innerHTML=n("Communication error. Please check your internet connection."),document.getElementById("msg2").innerHTML="",e("#conversejs").remove()},onSDMessage:function(e){var n=e.querySelector("delay"),t=e.querySelector("message");if(n&&t){var i=t.getAttribute("from").split("/")[0],r=t.getAttribute("to").split("/")[0],a=r==e.getAttribute("to").split("/")[0],u=a?i:r,c="guest-"+u,h=g(n.getAttribute("stamp")).format(),d=l(c);a?d?d.last_mgs<h&&(s(c,{flag:"1",last_mgs:h,avatar:d.avatar}),_="1"):(o(c,h,i),_="1"):d||o(c,h,i),"1"!==_&&(_=d.flag,"1"===_&&"function"==typeof mobileDeviceChatHook&&mobileDeviceChatHook({type:"1",unread:_}))}return!0},SDFetchLastMessage:function(e,n){var t=this;return this.__super__._converse.connection.sendIQ(e,function(){n.apply(t,arguments)})},SDFetchMessages:function(n){var t=new e.Deferred;return this.SDFetchLastMessage(n,t.resolve),t.promise()},removeUnusedRoster:function(){var n=this.__super__._converse,t=u(),i=new Date;t&&e.each(t,function(e,t){var r=new Date(t.last_mgs),o=Math.floor((i-r)/864e5);if(o>30){var s=e.replace("guest-",""),l=n.roster._byId[s];l&&n.roster._byId[s].destroy(),a(s)}})}},initialize:function(){var n=this._converse,t=n.__;n.on("roster",function(e){this.removeUnusedRoster()}),n.on("rosterContactsFetched",function(){var i="",r=[],o=this,s=0;n.connection.addHandler(this.onSDMessage,null,"message",null),m.each(n.api.contacts.get(),function(e){i=p({type:"set",id:n.connection.getUniqueId(e.jid)}).c("query",{xmlns:f.NS.MAM}).c("x",{xmlns:f.NS.XFORM,type:"submit"}).c("field",{var:"FORM_TYPE",type:"hidden"}).c("value",{},"urn:xmpp:mam:2").up().c("field",{var:"with"}).c("value",{},e.jid).up().up().c("set",{xmlns:f.NS.RSM}).c("max",{},"1").c("before"),r[s]=o.SDFetchMessages(i),s++}),e.when(r).done(function(){e("#converse-roster").after('<div class="roster-footer">'+t("Messages are kept for 30 days.")+"</div>"),e.ajax({type:"GET",url:"/status/chat_online/"+r2c_info.username,success:function(e){var t="logout";1==e&&(t="online"),n.xmppstatus.setStatus(t)}})})}),n.on("messageAdded",function(n){if(void 0!=n.message.attributes.message){var t=n.chatbox.attributes.jid,i="guest-"+t,a=l(i),u=g(n.message.attributes.time).format();a?a.last_mgs<u&&("them"==n.message.attributes.sender&&(e(".chatbox").hasClass("hidden")?(a.flag="1",e('[sd-data-raw-jid="'+t+'"]').find("a.open-chat span.contact-name").after('<span class="sd-flag sd-flag-icon-misscall"></span>')):a.flag="0"),a.last_mgs=u,s(i,a)):o(i,u,t),void 0!=e(".chat-content")[0]&&e(".chat-content").animate({scrollTop:e(".chat-content")[0].scrollHeight-300},1),setTimeout(function(){r()},1e3)}}),n.on("chatBoxFocused",function(){e("body").addClass("sd-chat-open")})}})}),define("tpl!sd_guest_panel",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='<form class="pure-form pure-form-stacked converse-form" id="r2c-login" method="post">\n    <div id="sd_main_div">\n        <div class="chatwithus">\n            '+__e(label_name_title)+'<br>\n            <input  class="ccformfield2" name="sd_name" placeholder="'+__e(placeholder_name)+'" type="text" maxlength="50">\n            <br>\n            <br>'+__e(label_question)+'<br>\n            <textarea  class="ccformfield2" name="sd_msg" class="ask" rows="5" placeholder="'+__e(placeholder_question)+'"></textarea><br>\n            <input class="ccbtn2" type="submit" value="'+__e(button_chat)+'">\n        </div>\n    </div>\n</form>\n';return __p}}),define("tpl!sd_guest_errormge",["lodash"],function(_){return function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<form id="flyout box-flyout">\n    <div class="chat-head chat-head-chatbox">\n        <div class="title-chat">\n            <div id="contact" name="contact">\n                '+(null==(__t=error_head)?"":__t)+'\n            </div>\n        </div>\n    </div>\n            <div class="chat-body">\n                <div class="color-text-error">\n                    <ul> '+(null==(__t=error_body)?"":__t)+" </ul>\n                    <ul> "+(null==(__t=error_body2)?"":__t)+" </ul>\n                </div>\n            </div>\n</form> \n";return __p}}),function(e,n){define("sd-guest",["jquery.noconflict","converse-core","tpl!sd_guest_panel","tpl!spinner","tpl!sd_guest_errormge","tpl!new_day","converse-chatview","converse-controlbox"],n)}(this,function(e,n,t,i,r,o){"use strict";var s=(n.env.Strophe,n.env.utils,n.env.$build,n.env.$iq),a=n.env._,l=n.env.moment,u=n.env.Backbone;n.plugins.add("sd-guest",{overrides:{checkSubscribed:function(n){var t=e(n).attr("type"),i=this.__super__._converse;if("subscribed"===t){var r=i.api.chats.open(visitor_info.userJID);"undefined"!=typeof r&&""!==visitor_info.questionMsg&&r.onMessageSubmitted(visitor_info.questionMsg)}},onUserRoster:function(n){var t=e(n).attr("from"),i=this.__super__._converse;t.indexOf(visitor_info.userJID)&&i.api.chats.open(visitor_info.userJID)},RosterContactView:{renderRosterItem:function(e){e.attributes.fullname.search(e.attributes.jid)<0&&(e.attributes.fullname=e.attributes.fullname+" - "+e.attributes.jid),this.__super__.renderRosterItem.apply(this,arguments)}},ChatBoxViews:{_ensureElement:function(){this.__super__._ensureElement.apply(this,arguments);var n=this.__super__._converse,t=n.__;e("#conversejs").before('<div class="com_block_title">'+t("Chat")+"</div>")}},ChatBoxView:{getExtraMessageClasses:function(e){var n=e.delayed&&"delayed"||"";return n+" div-chat-msg-"+e.sender},onChatStatusChanged:function(e){var n=e.get("chat_status"),t=this.__super__._converse.__;this.$el.is(":visible")&&("offline"===n?this.showStatusNotification("••• "+t("has gone offline")):"away"===n?this.showStatusNotification("••• "+t("has gone away")):"dnd"===n?this.showStatusNotification("••• "+t("is busy")):"online"===n&&this.$el.find("div.chat-event").remove())},handleChatStateMessage:function(e){var n=this.__super__._converse,t=this.__super__._converse.__;e.get("chat_state")===n.COMPOSING?("me"===e.get("sender")?this.showStatusNotification(t("Typing from another device")):this.showStatusNotification("••• "+t("is typing")),this.clear_status_timeout=window.setTimeout(this.clearStatusNotification.bind(this),3e4)):e.get("chat_state")===n.PAUSED?"me"===e.get("sender")?this.showStatusNotification(t("Stopped typing on the other device")):this.showStatusNotification("••• "+t("has stopped typing")):a.includes([n.INACTIVE,n.ACTIVE],e.get("chat_state"))?this.$content.find("div.chat-event").remove():e.get("chat_state")===n.GONE&&this.showStatusNotification("••• "+t("has gone away"))},insertDayIndicator:function(e,n){var t=l(e).startOf("day"),i=n?this.$content.prepend:this.$content.append;i.call(this.$content,o({isodate:t.format(),datestring:t.format("dddd Do MMMM")}))}},onConnected:function(){this.__super__.onConnected.apply(this,arguments);var n=this.__super__._converse;visitor_info.isOldUsr?n.connection.addHandler(this.onUserRoster.bind(this),null,"presence",null):(n.connection.addHandler(this.checkSubscribed.bind(this),null,"presence","subscribed"),n.roster.addAndSubscribe(visitor_info.userJID)),e("#controlbox").addClass("hidden")},ControlBoxView:{renderGuestPanel:function(){var e=this.__super__._converse;if(e.connection.authenticated)return void(visitor_info.isOldUsr=!0);this.sdguestpanel=new e.sdGuestPanel({$parent:this.$el.find(".controlbox-panes"),model:this.model});var n=e.getVisitorCookie();return""!=n?(visitor_info.isOldUsr=!0,visitor_info.isNewLogin=!0,n.uid=encodeURI(n.uid),this.sdguestpanel.authenticate(n.uid,n.token),this.sdguestpanel.renderLoading()):this.sdguestpanel.render(),this},renderGuestError:function(){var e=this.__super__._converse;return this.sderrguestpanel=new e.guestErrormge({$parent:this.$el.find(".controlbox-panes"),model:this.model}),this.sderrguestpanel.render(),this},renderLoginPanel:function(){var n=(this.__super__._converse,this),t=visitor_info.userJID.split("@")[0];e.ajax({type:"GET",url:"/status/chat_online/"+t,success:function(e){1==e?n.renderGuestPanel():n.renderGuestError()}})}},RosterContacts:{presenceHandler:function(n){var t=this.__super__._converse;this.__super__.presenceHandler.apply(this,arguments);var i=a.propertyOf(n.querySelector("show"))("textContent")||t.roster.get(visitor_info.userJID).attributes.chat_status;"logout"==i?(t.chatboxviews.get("controlbox").renderGuestError(),e("#guest_errormge").parents(".chatbox").removeClass("hidden"),e(".chat-content").parents(".chatbox").addClass("hidden")):"online"==i&&(e("#guest_errormge").parents(".chatbox").addClass("hidden"),e(".chat-content").parents(".chatbox").removeClass("hidden"))}}},initialize:function(){var n=this._converse,o=n.__;n.templates.sd_guest_errormge=r,n.guestErrormge=u.View.extend({tagName:"div",id:"guest_errormge",className:"controlbox-pane",initialize:function(e){this.$parent=e.$parent,this.$tabs=e.$parent.parent().find("#controlbox-tabs")},render:function(){return this.$parent.append(this.$el.html(r({error_head:o("Chat with us"),error_body:o("I am not available right now for a Chat."),error_body2:o("Please use the form above to send me an email. I will get back to you rapidly.")}))),this}}),n.templates.sd_guest_panel=t,n.sdGuestPanel=u.View.extend({tagName:"div",id:"sd-guest",className:"controlbox-pane",events:{"submit form#r2c-login":"sdRegistrationHook"},initialize:function(e){this.$parent=e.$parent,this.$tabs=e.$parent.parent().find("#controlbox-tabs")},render:function(){return this.$parent.append(this.$el.html(t({label_name_title:o("What is your name?"),placeholder_name:o("Your name"),label_question:o("Please ask your question"),placeholder_question:o("Your text"),button_chat:o("Let's chat")}))),this},renderLoading:function(){return this.$parent.append(this.$el.html(i())),this},authenticate:function(e,t){var i=e+"@"+visitor_info.domain+"/"+document.domain+"-"+n.locale;return n.connection.reset(),n.connection.connect(i,t,n.onConnectStatusChanged),!1},sdRegistrationHook:function(t){var i=e(t.target),r=i.find("input[name=sd_name]").val();if(visitor_info.questionMsg=i.find("textarea[name=sd_msg]").val(),!r)return void alert(o("What is your name?"));if(!visitor_info.questionMsg)return void alert(o("Please ask your question"));r.length>50&&(r=r.substring(0,50));var s=encodeURI(r)+"_"+(+new Date).toString(36);return this.sdregisterpanel=new n.sdRegisterPanel({$parent:e(".controlbox-panes"),model:this.model,domain:visitor_info.domain,username:s,password:Math.random().toString(36).slice(2),fullname:r}),this.sdregisterpanel.render(),!1}}),n.disconnect=function(){delete n.connection.reconnecting,n.connection.reset(),n.emit("disconnected")},n.on("rosterContactsFetched",function(){if(void 0!==n.xmppstatus.get("fullname")&&!n.xmppstatus.get("url")){var e=s({type:"set",id:n.connection.getUniqueId()}).c("vCard",{xmlns:"vcard-temp"}).c("URL",{},document.domain+"-"+n.locale).c("FN",{},n.xmppstatus.get("fullname"));n.connection.send(e)}}),n.on("messageSend",function(){if(visitor_info.isNewLogin){var e=n.getVisitorCookie();n.saveVisitorCookie(e.uid,e.token)}})}})}),"undefined"!=typeof define&&define("converse",["converse-core","converse-chatview","converse-controlbox","converse-mam","converse-vcard","converse-ping","converse-singleton","sd-register","sd-user","sd-guest"],function(e){return e}),require("converse")});