/** * crisp-client * @version v2.7.0 207c042 * @author Crisp IM SARL * @date 2/5/2021 */ (function(){var n=!1;try{var w={},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}w.Library=new(function(){function t(){var t="constructor",n,i,s,e,c,a,o,r,h;try{this.ns="CrispLibrary";var u={},g=w,l={environment:"production"};function f(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}u.Console=(h={},h.n=l.environment,h.i="development"==h.n,h.s=void 0!==window.console,h.a=h.i&&h.s,h.o=function(t,n,i){},h.warn=function(t,n){h.a&&console.warn(t,n),h.o("warn",t,n)},h.error=function(t,n){h.a&&console.error(t,n),h.o("error",t,n)},h.info=function(t,n){h.a&&console.info(t,n),h.o("info",t,n)},h.log=function(t,n){h.a&&console.log(t,n),h.o("log",t,n)},h.debug=function(t,n){h.a&&(void 0!==console.debug?console.debug(t,n):console.log(t,n)),h.o("debug",t,n)},h.set_log_sink=function(t){if("function"!=typeof t)throw new Error("Invalid function");h.o=t},h),o=function(){return function s(e,c,a){function o(n,t){if(!c[n]){if(!e[n]){var i="function"==typeof require&&require;if(!t&&i)return i(n,!0);if(r)return r(n,!0);throw(i=new Error("Cannot find module '"+n+"'")).code="MODULE_NOT_FOUND",i}i=c[n]={exports:{}},e[n][0].call(i.exports,function(t){return o(e[n][1][t]||t)},i,i.exports,s,e,c,a)}return c[n].exports}for(var r="function"==typeof require&&require,t=0;t/g,">").replace(/"/g,""");return n===""+t?t:n},o.rethrow=function n(i,t,s,e){if(!(i instanceof Error))throw i;if(!("undefined"==typeof window&&t||e))throw i.message+=" on line "+s,i;try{e=e||r("fs").readFileSync(t,"utf8")}catch(t){n(i,null,s)}var c=e.split("\n"),a=Math.max(s-3,0),o=Math.min(c.length,s+3),o=c.slice(a,o).map(function(t,n){return((n=n+a+1)==s?" > ":" ")+n+"| "+t}).join("\n");throw i.path=t,i.message=(t||"Jade")+":"+s+"\n"+o+"\n\n"+i.message,i}},{fs:2}],2:[function(t,n,i){},{}]},{},[1])(1)},"object"==typeof __crisp_void_exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof __crisp_void_define&&define.amd?define([],o):(void 0!==u?r=u:"undefined"!=typeof global?r=global:"undefined"!=typeof self&&(r=self),r.jade=o()),c=u,a=function(){var c=document,s=window,n=Array.prototype,a=n.slice,i=n.filter,o=/^#[\w-]*$/,r=/^\.[\w-]*$/,h=/^[\w-]*$/;function u(t,n){return new u.fn.init(t,n)}var t=u.fn=u.prototype={cash:!0,length:0};t.init=function(t,n){var i,s,e=[];if(!t)return this;if(this.length=1,"string"!=typeof t)return t.cash?t:(this[0]=t,this);if("<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&3<=t.length)e=u.parseHTML(t);else{if(i=o.test(t),s=t.slice(1),!n&&i)return this[0]=c.getElementById(s),this;n=u(n)[0]||c,e=a.call(h.test(s)?r.test(t)?c.getElementsByClassName(s):c.getElementsByTagName(t):n.querySelectorAll(t))}return this.length=0,u.merge(this,e),this},t.init.prototype=t,u.each=function(t,n){for(var i=t.length,s=0;s(?:<\/\1>|)$/.exec(t);return s?[c.createElement(s[1])]:(n=n||c.createDocumentFragment(),(i=i||n.appendChild(c.createElement("div"))).innerHTML=t,s=i,a.call(s.childNodes))},u.unique=function(t){return u.merge(u(),a.call(t).filter(function(t,n,i){return i.indexOf(t)===n}))};var e=/\S+/g;function l(t,n){return parseInt(s.getComputedStyle(t[0],null)[n],10)}t.extend({addClass:function(t){var n,i=t.match(e);return this.each(function(t){if(n=i.length,t.classList)for(;n--;)t.classList.add(i[n]);else for(;n--;)-1===(" "+t.className+" ").indexOf(" "+i[n]+" ")&&(t.className+=" "+i[n])}),this},attr:function(n,i){return i?(this.each(function(t){return t.setAttribute(n,i)}),this):this[0].getAttribute(n)},hasClass:function(t){return this[0].classList?this[0].classList.contains(t):-1!==this[0].className.indexOf(t)},prop:function(t){return this[0][t]},removeAttr:function(n){return this.each(function(t){return t.removeAttribute(n)}),this},removeClass:function(t){var n,i,s=t.match(e);return this.each(function(t){if(n=s.length,t.classList)for(;n--;)t.classList.remove(s[n]);else{for(i=" "+t.className+" ";n--;)i=i.replace(" "+s[n]+" "," ");t.className=i.trim()}}),this}}),t.extend({add:function(){for(var t=a.call(this),n=0,i=arguments.length;n\\(\\)\\s,@]+)(?:\\.(?:",this.H.map(this.escape_regex.bind(this)).join("|"),")))"].join(""),"gim",this.J.links),uri:this.L("((?:https?|ftps?|file):(?:[^<>\\(\\)\\s,]+))","gim",this.J.links)}},e.prototype.W=function(){this.A=[["code_block",this.L("(`{2,3})((?:\\n+)?(?:(?!\\2).(?:\\n+)?)*)(?:\\2)","gi",{prefix:"(\\s|<[^<>]+\\/>|^)",suffix:"(\\s|\\.|,|:|$)"})],["code_inline",this.L("(`{1})([^`]*)(?:\\2)","gim",{prefix:"(\\s|<[^<>]+\\/>|\\(|^)",suffix:"(\\s|\\.|,|:|\\)|<\\/[^<>]+>|$)"})],["title",this.L("(#{1})(?:[\\s]+)([^#].*)","gim",this.J.markdown_simple)],["title",this.L("(#{2})(?:[\\s]+)([^#].*)","gim",this.J.markdown_simple)],["title",this.L("(#{3})(?:[\\s]+)([^#].*)","gim",this.J.markdown_simple)],["title",this.L("(#{4})(?:[\\s]+)([^#].*)","gim",this.J.markdown_simple)],["title",this.L("(#{5})(?:[\\s]+)([^#].*)","gim",this.J.markdown_simple)],["title",this.L("(#{6})(?:[\\s]+)([^#].*)","gim",this.J.markdown_simple)],["image",this.L("!\\[([^\\[]*)\\]\\(([^\\)]+)\\)","gim",this.J.markdown_includes)],["link",this.L("\\[([^\\[]+)\\]\\(([^\\)]+)\\)","gim",{prefix:"(\\s|<[^<>]+\\/>|<[^a][^<>]*>|\\(|^)",suffix:"(\\s|.|,|:|<[^<>]+\\/>|]*>|\\)|$)"})],["youtube",this.L("\\$\\{youtube\\}\\[([^\\[]*)\\]\\(([^\\)]+)\\)","gim",this.J.markdown_includes)],["vimeo",this.L("\\$\\{vimeo\\}\\[([^\\[]*)\\]\\(([^\\)]+)\\)","gim",this.J.markdown_includes)],["dailymotion",this.L("\\$\\{dailymotion\\}\\[([^\\[]*)\\]\\(([^\\)]+)\\)","gim",this.J.markdown_includes)],["frame",this.L("\\$\\{frame\\}\\[([^\\[]*)\\]\\(([^\\)]+)\\)","gim",this.J.markdown_includes)],["bold",this.L("(\\*\\*)(.*?)(?:\\2)","gim",this.J.markdown_formatting)],["underline",this.L("(__)(.*?)(?:\\2)","gim",this.J.markdown_formatting)],["italic",this.L("(\\*|_)(.*?)(?:\\2)","gim",this.J.markdown_formatting)],["delete",this.L("(\\~\\~)(.*?)(?:\\2)","gim",this.J.markdown_formatting)],["highlight",this.L("(\\+\\+)(.*?)(?:\\2)","gim",this.J.markdown_formatting)],["list",this.L("(\\*)(?:[\\s]+)","gim",this.J.markdown_list)],["list",this.L("(?:([\\d]{1,2})\\.)(?:[\\s]+)","gim",this.J.markdown_list)],["blockquote",this.L("(>|\\>)(?:[\\s]+)(.*)","gim",this.J.markdown_simple)],["emphasis",this.L("(\\|{1})(?:[\\s]+)([^\\|].*)","gim",this.J.markdown_simple)],["emphasis",this.L("(\\|{2})(?:[\\s]+)([^\\|].*)","gim",this.J.markdown_simple)],["emphasis",this.L("(\\|{3})(?:[\\s]+)([^\\|].*)","gim",this.J.markdown_simple)],["interpolate",this.L('(?:\\{\\{\\s*)([^\\{\\}\\|\\s]+)(?:\\s*\\|\\s*(?:(?:")|")([^&"]*)(?:(?:")|"))?(?:\\s*\\}\\})',"gim",{prefix:"(\\s|\\(|^)",suffix:""})],["line",this.L("(-{3,})","gim",{prefix:"(^)(\\s+)?",suffix:"(\\s|$)"})],["color",this.L("\\$\\{color\\}\\[(#[0-9A-Fa-f]{6})\\]\\(([^\\)]+)\\)","gim",this.J.markdown_includes)]]},e);function e(t){this.parent=t,this.H=["com","net","org","info","biz","mobi","chat","email","help","watch","name","pro","aero","asia","cat","coop","edu","gov","int","jobs","mil","museum","post","tel","travel","xxx","xyz","top","site","online","club","shop","work","app","live","store","space","website","tech","life","dev","blog","cloud","page","link","design","group","company","agency","network","media","immo","ac","ad","ae","af","ag","ai","al","am","an","ao","aq","ar","as","at","au","aw","ax","az","ba","bb","bd","be","bf","bg","bh","bi","bj","bl","bm","bn","bo","bq","br","bs","bt","bv","bw","by","bz","ca","cc","cd","cf","cg","ch","ci","ck","cl","cm","cn","co","cr","cu","cv","cw","cx","cy","cz","de","dj","dk","dm","do","dz","ec","ee","eg","eh","er","es","et","eu","fi","fj","fk","fm","fo","fr","ga","gb","gd","ge","gf","gg","gh","gi","gl","gm","gn","gp","gq","gr","gs","gt","gu","gw","gy","hk","hm","hn","hr","ht","hu","id","ie","il","im","in","io","iq","ir","is","it","je","jm","jo","jp","ke","kg","kh","ki","km","kn","kp","kr","kw","ky","kz","la","lb","lc","li","lk","lr","ls","lt","lu","lv","ly","ma","mc","md","me","mf","mg","mh","mk","ml","mm","mn","mo","mp","mq","mr","ms","mt","mu","mv","mw","mx","my","mz","na","nc","ne","nf","ng","ni","nl","no","np","nr","nu","nz","om","pa","pe","pf","pg","ph","pk","pl","pm","pn","pr","ps","pt","pw","py","qa","re","ro","rs","ru","rw","sa","sb","sc","sd","se","sg","sh","si","sj","sk","sl","sm","sn","so","sr","ss","st","su","sv","sx","sy","sz","tc","td","tf","tg","th","tj","tk","tl","tm","tn","to","tp","tr","tt","tv","tw","tz","ua","ug","uk","um","us","uy","uz","va","vc","ve","vg","vi","vn","vu","wf","ws","ye","yt","za","zm","zw"],this.w={"&":/&/g,"<":/</g,">":/>/g,'"':/"/g},this.b={"&":/&/g,"<"://g,""":/"/g},this.g={"\\\\":/\\/g,"\\t":/\t/g,"\\n":/\n/g,"\\u00A0":/\u00A0/g},this.O={"<":/</g,">":/>/g},this.k=/[-\/\\^$*+?.()|[\]{}]/g,this.M=/([\#$\*\_\-+![\]\(\)`~><\.|{}])/g,this.J={links:{prefix:"(\\s|<[^<>]+\\/>|<[^a][^<>]*>|\\(|^)",suffix:"(,|\\s|<[^<>]+\\/>|]*>|\\)|$)"},markdown_simple:{prefix:"(^)",suffix:"($)"},markdown_includes:{prefix:"(\\s|<[^<>]+\\/>|<[^<>]+>|\\(|^)",suffix:"(\\s|.|,|:|<[^<>]+\\/>|\\)|$)"},markdown_formatting:{prefix:"(\\s|<[^<>]+\\/>|\\(|^)",suffix:""},markdown_list:{prefix:"(^\\s*)",suffix:"(.*?)($)"}},this.U=["title","list","code_block","code_inline","blockquote","emphasis"],this.R=["code_block","code_inline"],this.d=["escape","consecutive_lines","markdown","links_uri","links_domain","emails","phones","smileys","new_lines"],this.v={escape:this._,consecutive_lines:this.F,new_lines:this.C,emails:this.j,phones:this.z,markdown:this.S,links_domain:this.D,links_uri:this.T,smileys:this.B},this.P(),this.W()}var c=(a.prototype.parse_first_name=function(t){return this.G(t,1)},a.prototype.parse_last_name=function(t){return this.G(t,3)},a.prototype.G=function(t,n){var i=(t||"").trim();return!i||(t=i.match(this.V))&&t[n]&&(i=t[n].trim()),i},a);function a(t){this.parent=t,this.V=/^(\S+)((?:\s+)(.+))?$/}this.K(t),this.Smileys=new n(this),this.Parse=new s(this),this.Name=new c(this)},v.prototype.K=function(t){t&&t.template&&(this.template=t.template),t&&t.config&&(this.config=t.config)},e=v,s.CrispLibraryWeb=new e;var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function f(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}n=u,i=function(){function t(){}return t.prototype.init=function t(n){var o={},i=this;function s(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}var e=(c.prototype.set_ignore_privacy=function(t){var n=0=this.Bt)&&(this.Tt=(new Date).getTime(),this.Dt.local={type:t},s&&(this.Dt.local.excerpt=s),1==e&&null!==this.Ut&&(this.parent.Schedule.clear_timeout(this.Ut),this.Ut=null),null===this.Ut&&(this.Ut=this.parent.Schedule.set_timeout(function(){i.Ut=null,i.parent.socket.emit("message:compose:send",i.Dt.local),i.parent.event.publish("message:compose:send",i.Dt.local)},1==e?0:this.Rt)))},g.prototype.send_message_thread=function(t,n){var i=1n.timestamp?1:0})},g.prototype.At=function(){var t=""+(new Date).getTime()+Math.ceil(100*Math.random());return t.length<15&&(t+=new Array(15-t.length+1).join("0")),parseInt(t,10)},g.prototype.$t=function(t,n){t.is_me?this.in(t,n):this.sn(t,n)},g.prototype.Wt=function(t){var n=0=this.An&&(this.Sn=t,(n=document.title).length>this.In&&(n=n.substring(0,this.In-this.Dn.length),n+=this.Dn),!0===this.Tn.test(i)&&("?"!==(t=(i=i.replace(this.Tn,"$1$3"))[i.length-1])&&"&"!==t||(i=i.substr(0,i.length-1))),i.length>this.Bn&&(i=i.split("?")[0]||""),i={page_url:i,page_title:n},(n=(document.referrer||"").split("?")[0]||"")&&(i.page_referrer=n),this.parent.socket.emit("session:device",i)))},b.prototype.send_event=function(t){for(var n=0=this.$n&&this.Ln(!0),this.On=t},b.prototype.acquire_saved=function(){var t=this.Pn(),n=null,i=(location.search||"").match(this.Jn),s=(document.referrer||"").match(this.Hn);return i&&i[2]&&i[2]!==t.current&&(n=i[2]||null),s&&s[1]===this.parent.url_go&&s[3]!==t.current&&(n=s[3]||null),s=n||t.current,n=null,t.previous&&t.current!==t.previous&&t.current===s&&(n=t.previous),{session_id:s,merge:n}},b.prototype.restore=function(){var t=this.acquire_saved();this.Wn(t.session_id,t.merge)},b.prototype.join=function(t){var n=0=this.zi)&&(this.ss.debug.limits.window_last=i,this.ss.debug.limits.window_count=0),++this.ss.debug.limits.window_count<=this.Si&&this.Ss(t,n))},t.prototype.Wi=function(t){!0===this.$i&&!0!==t.resume||(!0!==t.resume&&this.Oi(),this.parent.event.publish("browsing:request:initiate",t||{}))},t.prototype.us=function(t){!0===this.$i&&(this.Li=t.browsing_id,this.Mn=(new Date).getTime(),this.As())},t.prototype.ls=function(){!0===this.$i&&this.Li&&this.Ji()},t.prototype.ds=function(){!0===this.$i&&this.Li&&this.Oi()},t.prototype.ps=function(){!0===this.$i&&this.Li&&(this.Mn=(new Date).getTime(),this.As())},t.prototype.vs=function(){!0===this.$i&&this.Li&&(this.qs(),this.Is("debug"))},t.prototype.ys=function(){!0===this.$i&&this.Li&&(this.Ki(),this.Ds("debug"))},t.prototype._s=function(){!0===this.$i&&this.Li&&this.Ts("debug")},t.prototype.gs=function t(n){if(!0===this.$i&&this.Li&&!0===this.ss.debug.ongoing&&n.execute)try{var i=eval(n.execute);this.Bs(n.execute,i)}catch(t){var s;t&&(s=t.name+": "+t.message,this.Bs(n.execute,null,"error"),this.Ss("error",[s]))}},t.prototype.bs=function(){!0===this.$i&&this.Li&&!0===this.Is("assist")&&this.parent.event.publish("browsing:assist:started",{})},t.prototype.ks=function(){!0===this.$i&&this.Li&&!0===this.Ds("assist")&&this.parent.event.publish("browsing:assist:stopped",{})},t.prototype.xs=function(){!0===this.$i&&this.Li&&this.Ts("assist")},t.prototype.Fs=function(t){!0===this.$i&&this.Li&&!0===this.ss.assist.ongoing&&this.parent.event.publish("browsing:assist:mouse",t)},t.prototype.Es=function(t){!0===this.$i&&this.Li&&!0===this.ss.assist.ongoing&&this.parent.event.publish("browsing:assist:scroll",t)},t.prototype.Cs=function(t){!0===this.$i&&this.Li&&!0===this.ss.assist.ongoing&&this.parent.event.publish("browsing:assist:click",t)},t.prototype.As=function(){"object"===v(window.sessionStorage)&&JSON&&"function"==typeof JSON.stringify&&window.sessionStorage.setItem(this.kn(),JSON.stringify({browsing_id:this.Li,is_playing:this.Pi,last_heartbeat:this.Mn}))},t.prototype.Vi=function(){"object"===v(window.sessionStorage)&&"object"===v(window.sessionStorage)&&window.sessionStorage.removeItem(this.kn())},t.prototype.Ji=function(t){var n=0t+i.Ci&&!0===i.Pi&&i.$s()},i.Ei)})},t.prototype.Ri=function(t){var n=this;this.parent.Listener.add_event("browsing","window","scroll",function(){var t;!0!==n.Gi&&(t=document.documentElement,n.hs.last_x=(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0),n.hs.last_y=(window.pageYOffset||t.scrollTop)-(t.clientTop||0))})},t.prototype.Ni=function(){var n=this;this.parent.Listener.add_event("browsing","window","click",function(t){!0!==n.Pi||t.Ws||n.Gs("click",function(){n.Js(),n.Ms()})})},t.prototype.Hi=function(){return null===this.Mn||null!==this.Mn&&(new Date).getTime()-this.Mn>=this.xi},t.prototype.Ln=function(t){var n=this,i=!(0=n.Ai);t++)n.Ps(n.os[t]);n.os.splice(n.Ai,1)},this.qi))},t.prototype.Hs=function(t,n){return!0===(1=this._reconnectionAttempts?(this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1):(t=this.backoff.duration(),this.reconnecting=!0,n=setTimeout(function(){i.skipReconnect||(i.emitAll("reconnect_attempt",i.backoff.attempts),i.emitAll("reconnecting",i.backoff.attempts),i.skipReconnect||i.open(function(t){t?(i.reconnecting=!1,i.reconnect(),i.emitAll("reconnect_error",t.data)):i.onreconnect()}))},t),this.subs.push({destroy:function(){clearTimeout(n)}}))},s.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,n,i){t.exports=i(11),t.exports.parser=i(15)},function(t,n,i){function l(t,n){return this instanceof l?(n=n||{},t&&"object"==typeof t&&(n=t,t=null),t?(t=o(t),n.hostname=t.host,n.secure="https"===t.protocol||"wss"===t.protocol,n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=o(n.host).host),this.secure=null!=n.secure?n.secure:"undefined"!=typeof location&&"https:"===location.protocol,n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=n.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=n.query||{},"string"==typeof this.query&&(this.query=r.decode(this.query)),this.upgrade=!1!==n.upgrade,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=!1!==n.jsonp,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.withCredentials=!1!==n.withCredentials,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["websocket"],this.transportOptions=n.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=!1!==n.perMessageDeflate&&(n.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||null,this.key=n.key||null,this.passphrase=n.passphrase||null,this.cert=n.cert||null,this.ca=n.ca||null,this.ciphers=n.ciphers||null,this.rejectUnauthorized=void 0===n.rejectUnauthorized||n.rejectUnauthorized,this.forceNode=!!n.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),"undefined"!=typeof self&&!this.isReactNative||(n.extraHeaders&&0>n&63|128)}function c(){if(u<=l)throw Error("Invalid byte index");var t=255&a[l];if(l++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}var a,u,l,f=String.fromCharCode;t.exports={version:"2.1.2",encode:function(t,n){for(var i=!1!==(n=n||{}).strict,s=o(t),e=s.length,c=-1,a="";++c>6&31|192):0==(4294901760&t)?(r(t,n)||(t=65533),i=f(t>>12&15|224),i+=h(t,6)):0==(4292870144&t)&&(i=f(t>>18&7|240),i+=h(t,12),i+=h(t,6)),i+f(63&t|128)}(s[c],i);return a},decode:function(t,n){var i=!1!==(n=n||{}).strict;a=o(t),u=a.length,l=0;for(var s,e=[];!1!==(s=function(t){var n,i;if(u>>10&1023|55296),n=56320|1023&n),e+=f(n);return e}(e)}}},function(t,n){var u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";n.encode=function(t){for(var n=new Uint8Array(t),i=n.length,s="",e=0;e>2],s+=u[(3&n[e])<<4|n[e+1]>>4],s+=u[(15&n[e+1])<<2|n[e+2]>>6],s+=u[63&n[e+2]];return i%3==2?s=s.substring(0,s.length-1)+"=":i%3==1&&(s=s.substring(0,s.length-2)+"=="),s},n.decode=function(t){var n,i,s,e,c=.75*t.length,a=t.length,o=0;"="===t[t.length-1]&&(c--,"="===t[t.length-2]&&c--);for(var c=new ArrayBuffer(c),r=new Uint8Array(c),h=0;h>4,r[o++]=(15&i)<<4|s>>2,r[o++]=(3&s)<<6|63&e;return c}},function(t,n){function s(t){return t.map(function(t){if(t.buffer instanceof ArrayBuffer){var n,i=t.buffer;return t.byteLength!==i.byteLength&&((n=new Uint8Array(t.byteLength)).set(new Uint8Array(i,t.byteOffset,t.byteLength)),i=n.buffer),i}return t})}function i(t,n){n=n||{};var i=new c;return s(t).forEach(function(t){i.append(t)}),n.type?i.getBlob(n.type):i.getBlob()}function e(t,n){return new Blob(s(t),n||{})}var c=void 0!==c?c:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,a=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),o=a&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),r=c&&c.prototype.append&&c.prototype.getBlob;"undefined"!=typeof Blob&&(i.prototype=Blob.prototype,e.prototype=Blob.prototype),t.exports=a?o?Blob:e:r?i:void 0},function(t,n){n.encode=function(t){var n,i="";for(n in t)t.hasOwnProperty(n)&&(i.length&&(i+="&"),i+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return i},n.decode=function(t){for(var n={},i=t.split("&"),s=0,e=i.length;s>6:(s<55296||57344<=s?e[a++]=224|s>>12:(s=65536+((1023&s)<<10|1023&t.charCodeAt(++o)),e[a++]=240|s>>18,e[a++]=128|s>>12&63),e[a++]=128|s>>6&63),e[a++]=128|63&s);t=e}else{if("object"!=i)throw new Error(l);if(null===t)throw new Error(l);if(f&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||f&&ArrayBuffer.isView(t)))throw new Error(l)}64>2]|=t[c]<>2]|=s<>2]|=(192|s>>6)<>2]|=(224|s>>12)<>2]|=(240|s>>18)<>2]|=(128|s>>12&63)<>2]|=(128|s>>6&63)<>2]|=(128|63&s)<>2]|=i[3&n],this.block=t[16],56<=n&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash())},d.prototype.hash=function(){for(var t,n,i,s,e,c,a,o,r=this.h0,h=this.h1,u=this.h2,l=this.h3,f=this.h4,d=this.h5,p=this.h6,v=this.h7,y=this.blocks,m=16;m<64;++m)t=((s=y[m-15])>>>7|s<<25)^(s>>>18|s<<14)^s>>>3,n=((s=y[m-2])>>>17|s<<15)^(s>>>19|s<<13)^s>>>10,y[m]=y[m-16]+t+y[m-7]+n<<0;for(o=h&u,m=0;m<64;m+=4)this.first?(e=704751109,v=(s=y[0]-210244248)-1521486534<<0,l=s+143694565<<0,this.first=!1):(t=(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10),i=(e=r&h)^r&u^o,v=l+(s=v+(n=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&d^~f&p)+_[m]+y[m])<<0,l=s+(t+i)<<0),t=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),i=(c=l&r)^l&h^e,p=u+(s=p+(n=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&f^~v&d)+_[m+1]+y[m+1])<<0,t=((u=s+(t+i)<<0)>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),i=(a=u&l)^u&r^c,d=h+(s=d+(n=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&v^~p&f)+_[m+2]+y[m+2])<<0,t=((h=s+(t+i)<<0)>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),i=(o=h&u)^h&l^a,f=r+(s=f+(n=(d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&v)+_[m+3]+y[m+3])<<0,r=s+(t+i)<<0;this.h0=this.h0+r<<0,this.h1=this.h1+h<<0,this.h2=this.h2+u<<0,this.h3=this.h3+l<<0,this.h4=this.h4+f<<0,this.h5=this.h5+d<<0,this.h6=this.h6+p<<0,this.h7=this.h7+v<<0},d.prototype.toString=d.prototype.hex=function(){this.finalize();var t=this.h0,n=this.h1,i=this.h2,s=this.h3,e=this.h4,c=this.h5,a=this.h6,o=this.h7;return r[t>>28&15]+r[t>>24&15]+r[t>>20&15]+r[t>>16&15]+r[t>>12&15]+r[t>>8&15]+r[t>>4&15]+r[15&t]+r[n>>28&15]+r[n>>24&15]+r[n>>20&15]+r[n>>16&15]+r[n>>12&15]+r[n>>8&15]+r[n>>4&15]+r[15&n]+r[i>>28&15]+r[i>>24&15]+r[i>>20&15]+r[i>>16&15]+r[i>>12&15]+r[i>>8&15]+r[i>>4&15]+r[15&i]+r[s>>28&15]+r[s>>24&15]+r[s>>20&15]+r[s>>16&15]+r[s>>12&15]+r[s>>8&15]+r[s>>4&15]+r[15&s]+r[e>>28&15]+r[e>>24&15]+r[e>>20&15]+r[e>>16&15]+r[e>>12&15]+r[e>>8&15]+r[e>>4&15]+r[15&e]+r[c>>28&15]+r[c>>24&15]+r[c>>20&15]+r[c>>16&15]+r[c>>12&15]+r[c>>8&15]+r[c>>4&15]+r[15&c]+r[a>>28&15]+r[a>>24&15]+r[a>>20&15]+r[a>>16&15]+r[a>>12&15]+r[a>>8&15]+r[a>>4&15]+r[15&a]+r[o>>28&15]+r[o>>24&15]+r[o>>20&15]+r[o>>16&15]+r[o>>12&15]+r[o>>8&15]+r[o>>4&15]+r[15&o]},d.prototype.digest=function(){this.finalize();var t=this.h0,n=this.h1,i=this.h2,s=this.h3,e=this.h4,c=this.h5,a=this.h6,o=this.h7;return[t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,s>>24&255,s>>16&255,s>>8&255,255&s,e>>24&255,e>>16&255,e>>8&255,255&e,c>>24&255,c>>16&255,c>>8&255,255&c,a>>24&255,a>>16&255,a>>8&255,255&a,o>>24&255,o>>16&255,o>>8&255,255&o]},(s.prototype=new d).finalize=function(){var t;d.prototype.finalize.call(this),this.inner&&(this.inner=!1,t=this.digest(),d.call(this,this.memory),this.update(this.oKeyPad),this.update(t),d.prototype.finalize.call(this))};var e=(c.create=function(){return new d},c.update=function(t){return c.create().update(t)},c);function c(t){return new d(!0).update(t).hex()}function a(t,n){return new s(t,!0).update(n).hex()}(e.sha256=e).sha256.hmac=(a.create=function(t){return new s(t)},a.update=function(t,n){return a.create(t).update(n)},a),t.sha256=e.sha256}(),this.Ae(),this.K(n),this.Ie(n,o),this.Config=new e(this),this.Schedule=new a(this),this.Listener=new h(this),this.Socket=new l(this),this.Stream=new d(this),this.Storage=new y(this),this.Browsing=new A(this),this.Call=new I(this),this.Message=new _(this),this.Session=new w(this),this.Website=new k(this),this.Bucket=new F(this),this.Media=new C(this),this.Helpdesk=new z(this),this.Trigger=new T(this),this.Issue=new U(this),this.it(),!0===n.connect_socket&&this.socket.connect()},t.prototype.Ae=function(){this.Z()},t.prototype.Z=function(){delete this.environment,delete this.disable_autoload,delete this.url_go,delete this.website_domain,delete this.website_id,delete this.token_id,delete this.cookie_expire,delete this.cookie_domain,delete this.platform_name,delete this.platform_signature_key,delete this.runtime_configuration,delete this.device},t.prototype.K=function(t){t&&t.environment&&(this.environment=t.environment||"development"),t&&t.disable_autoload&&(this.disable_autoload=t.disable_autoload),t&&t.url_go&&(this.url_go=t.url_go),t&&t.website_domain&&(this.website_domain=t.website_domain),t&&t.website_id&&(this.website_id=t.website_id),t&&t.token_id&&(this.token_id=t.token_id),t&&t.cookie_expire&&(this.cookie_expire=t.cookie_expire),t&&t.cookie_domain&&(this.cookie_domain=t.cookie_domain),t&&t.platform_name&&(this.platform_name=t.platform_name),t&&t.platform_signature_key&&(this.platform_signature_key=t.platform_signature_key),t&&t.runtime_configuration&&(this.runtime_configuration=t.runtime_configuration),this.device={},t&&t.useragent&&(this.device.useragent=t.useragent),t&&t.timezone&&(this.device.timezone=t.timezone),t&&t.capabilities&&(this.device.capabilities=t.capabilities),t&&t.locales&&(this.device.locales=t.locales)},t.prototype.Ie=function(t,n){var i=["websocket"];this.event=n.PubSub,this.socket=n.io(t.url_relay_client,{path:t.website_id?"/"+t.website_id+"/":"/",transports:i,autoConnect:!1,timeout:25e3,reconnectionDelay:15e3,reconnectionDelayMax:6e4,reconnectionAttempts:5,randomizationFactor:.5}),this.stream=n.io(t.url_relay_stream,{path:"/",transports:i,reconnection:!1,autoConnect:!1}),this.cookie=n.Cookies(window),this.sha256=n.sha256},t.prototype.it=function(){var t=this;this.Listener.add_event("index","window","unload",function(){!0===t.socket.connected&&t.socket.disconnect(),!0===t.stream.connected&&t.stream.disconnect()}),this.Listener.add_event("index","window","popstate",function(){t.De()}),"object"===d(window.history)&&(this.Listener.apply_patch("index","window.history","pushState",window.history,function(){t.De()}),this.Listener.apply_patch("index","window.history","replaceState",window.history,function(){t.De()}))},t.prototype.De=function(){this.Session.send_device(),this.event.publish("window:history",{page_url:document.location.href,page_domain:document.location.hostname})},t}(),n.CrispLibraryClient=new i;var p={client:function(t){var d=[];return function(t,n,i,s,e,c,a,o,r,h,u,l,f){d.push('
')}.call(this,"availability_tooltip"in(t=t||{})?t.availability_tooltip:"undefined"!=typeof availability_tooltip?availability_tooltip:void 0,"blocked"in t?t.blocked:"undefined"!=typeof blocked?blocked:void 0,"direction"in t?t.direction:"undefined"!=typeof direction?direction:void 0,"full_view"in t?t.full_view:"undefined"!=typeof full_view?full_view:void 0,"hide_on_away"in t?t.hide_on_away:"undefined"!=typeof hide_on_away?hide_on_away:void 0,"hide_on_mobile"in t?t.hide_on_mobile:"undefined"!=typeof hide_on_mobile?hide_on_mobile:void 0,"hide_vacation"in t?t.hide_vacation:"undefined"!=typeof hide_vacation?hide_vacation:void 0,"lang"in t?t.lang:"undefined"!=typeof lang?lang:void 0,"large_view"in t?t.large_view:"undefined"!=typeof large_view?large_view:void 0,"last_operator_face"in t?t.last_operator_face:"undefined"!=typeof last_operator_face?last_operator_face:void 0,"lock_maximized"in t?t.lock_maximized:"undefined"!=typeof lock_maximized?lock_maximized:void 0,"position_reverse"in t?t.position_reverse:"undefined"!=typeof position_reverse?position_reverse:void 0,"small_view"in t?t.small_view:"undefined"!=typeof small_view?small_view:void 0),d.join("")},viewport:function(t){var n=[];return function(t){n.push('")}.call(this,"content"in(t=t||{})?t.content:"undefined"!=typeof content?content:void 0),n.join("")},clear:function(){var t=[];return t.push(''),t.join("")},style_color:function(t){var n,i=[];return function(t){i.push('
")}.call(this,"colors"in(t=t||{})?t.colors:"undefined"!=typeof colors?colors:void 0),i.join("")},style_other:function(t){var i,s=[];return function(t,n){s.push('
"),!1===n&&s.push(''),s.push("
")}.call(this,"container_index"in(t=t||{})?t.container_index:"undefined"!=typeof container_index?container_index:void 0,"show_operator_count"in t?t.show_operator_count:"undefined"!=typeof show_operator_count?show_operator_count:void 0),s.join("")},style_position:function(t){var n,i=[];return function(t){i.push('
'),t.default_button_horizontal&&i.push('"),t.default_button_vertical&&i.push('"),t.mobile_button_horizontal&&i.push('"),t.mobile_button_vertical&&i.push('"),i.push("
")}.call(this,"position"in(t=t||{})?t.position:"undefined"!=typeof position?position:void 0),i.join("")},new_line:function(){var t=[];return t.push('
'),t.join("")},link_phone:function(t){var n,i=[];return function(t){i.push("'+(null==(n=t)?"":n)+"")}.call(this,"phone"in(t=t||{})?t.phone:"undefined"!=typeof phone?phone:void 0),i.join("")},link_email:function(t){var n,i=[];return function(t){i.push("'+(null==(n=t)?"":n)+"")}.call(this,"email"in(t=t||{})?t.email:"undefined"!=typeof email?email:void 0),i.join("")},link_uri:function(t){var i,s=[];return function(t,n){s.push("'+(null==(i=t)?"":i)+"")}.call(this,"uri_name"in(t=t||{})?t.uri_name:"undefined"!=typeof uri_name?uri_name:void 0,"uri_value"in t?t.uri_value:"undefined"!=typeof uri_value?uri_value:void 0),s.join("")},link_domain:function(t){var i,s=[];return function(t,n){s.push("'+(null==(i=t)?"":i)+"")}.call(this,"domain_name"in(t=t||{})?t.domain_name:"undefined"!=typeof domain_name?domain_name:void 0,"domain_value"in t?t.domain_value:"undefined"!=typeof domain_value?domain_value:void 0),s.join("")},markdown_blockquote:function(t){var n,i=[];return function(t){i.push(''+(null==(n=t)?"":n)+"")}.call(this,"value"in(t=t||{})?t.value:"undefined"!=typeof value?value:void 0),i.join("")},markdown_color:function(t){var i,s=[];return function(t,n){s.push("'+(null==(i=n)?"":i)+"")}.call(this,"type"in(t=t||{})?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),s.join("")},markdown_bold:function(t){var n,i=[];return function(t){i.push(''+(null==(n=t)?"":n)+"")}.call(this,"value"in(t=t||{})?t.value:"undefined"!=typeof value?value:void 0),i.join("")},markdown_code_inline:function(t){var n,i=[];return function(t){i.push(''+(null==(n=t)?"":n)+"")}.call(this,"value"in(t=t||{})?t.value:"undefined"!=typeof value?value:void 0),i.join("")},markdown_code_block:function(t){var n,i=[];return function(t){i.push(''+(null==(n=t)?"":n)+"")}.call(this,"value"in(t=t||{})?t.value:"undefined"!=typeof value?value:void 0),i.join("")},markdown_delete:function(t){var n,i=[];return function(t){i.push(''+(null==(n=t)?"":n)+"")}.call(this,"value"in(t=t||{})?t.value:"undefined"!=typeof value?value:void 0),i.join("")},markdown_highlight:function(t){var n,i=[];return function(t){i.push(''+(null==(n=t)?"":n)+"")}.call(this,"value"in(t=t||{})?t.value:"undefined"!=typeof value?value:void 0),i.join("")},markdown_emphasis:function(t){var n,i=[];return function(t){i.push(''+(null==(n=t)?"":n)+"")}.call(this,"value"in(t=t||{})?t.value:"undefined"!=typeof value?value:void 0),i.join("")},markdown_image:function(t){var e=[];return function(t,n,i,s){e.push(""),s=t(s),e.push('")}.call(this,"encodeURIComponent"in(t=t||{})?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"url_crisp_image"in t?t.url_crisp_image:"undefined"!=typeof url_crisp_image?url_crisp_image:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),e.join("")},markdown_interpolate:function(t){var i,s=[];return function(t,n){s.push('{{ '+g.Library.jade.runtime.escape(null==(i=t)?"":i)+g.Library.jade.runtime.escape(null==(i=n?' | "'+n+'"':"")?"":i)+" }}")}.call(this,"type"in(t=t||{})?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),s.join("")},markdown_italic:function(t){var n,i=[];return function(t){i.push(''+(null==(n=t)?"":n)+"")}.call(this,"value"in(t=t||{})?t.value:"undefined"!=typeof value?value:void 0),i.join("")},markdown_line:function(){var t=[];return t.push(''),t.join("")},markdown_link:function(t){var s,e=[];return function(t,n,i){e.push("'+(null==(s=n)?"":s)+"")}.call(this,"methods"in(t=t||{})?t.methods:"undefined"!=typeof methods?methods:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),e.join("")},markdown_list:function(t){var i,s=[];return function(t,n){s.push("'+(null==(i=n)?"":i)+"")}.call(this,"type"in(t=t||{})?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),s.join("")},markdown_title:function(t){var i,s=[];return function(t,n){s.push("'+(null==(i=n)?"":i)+"")}.call(this,"type"in(t=t||{})?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),s.join("")},markdown_underline:function(t){var n,i=[];return function(t){i.push(''+(null==(n=t)?"":n)+"")}.call(this,"value"in(t=t||{})?t.value:"undefined"!=typeof value?value:void 0),i.join("")},markdown_youtube:function(t){var c=[];return function(t,n,i,s){c.push("");var e="https://www.youtube.com/embed/"+t(s)+"?autoplay=1&rel=0",s=t("https://img.youtube.com/vi/"+t(s)+"/hqdefault.jpg");c.push("")}.call(this,"encodeURIComponent"in(t=t||{})?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"url_crisp_image"in t?t.url_crisp_image:"undefined"!=typeof url_crisp_image?url_crisp_image:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),c.join("")},markdown_vimeo:function(t){var s,e=[];return function(t,n,i){e.push(""),i="https://vimeo.com/"+t(i)+"?autoplay=1",e.push("'+(null==(s=n||i)?"":s)+"")}.call(this,"encodeURIComponent"in(t=t||{})?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),e.join("")},markdown_dailymotion:function(t){var c=[];return function(t,n,i,s){c.push("");var e="https://www.dailymotion.com/embed/video/"+t(s),s=t("https://www.dailymotion.com/thumbnail/video/"+t(s));c.push("")}.call(this,"encodeURIComponent"in(t=t||{})?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"url_crisp_image"in t?t.url_crisp_image:"undefined"!=typeof url_crisp_image?url_crisp_image:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),c.join("")},markdown_frame:function(t){var s,e=[];return function(t,n,i){e.push("'+(null==(s=n||i)?"":s)+"")}.call(this,"methods"in(t=t||{})?t.methods:"undefined"!=typeof methods?methods:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"value"in t?t.value:"undefined"!=typeof value?value:void 0),e.join("")},smiley:function(t){var i=[];return function(t,n){i.push("')}.call(this,"name"in(t=t||{})?t.name:"undefined"!=typeof name?name:void 0,"size"in t?t.size:"undefined"!=typeof size?size:void 0),i.join("")},magnify:function(t){var e=[];return function(t,n,i,s){e.push('
'),"embed"===s?e.push(''):e.push("'),e.push('
'),t.previous&&e.push(''),"file"===s&&e.push(''),e.push(''),t.next&&e.push(''),e.push("
")}.call(this,"fingerprints"in(t=t||{})?t.fingerprints:"undefined"!=typeof fingerprints?fingerprints:void 0,"name"in t?t.name:"undefined"!=typeof name?name:void 0,"source"in t?t.source:"undefined"!=typeof source?source:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0),e.join("")},article:function(t){var i,s=[];return function(t,n){s.push('
'+g.Library.jade.runtime.escape(null==(i=t("article","controls_close"))?"":i)+"'+g.Library.jade.runtime.escape(null==(i=t("article","controls_view"))?"":i)+'
')}.call(this,"_e"in(t=t||{})?t._e:"undefined"!=typeof _e?_e:void 0,"frame"in t?t.frame:"undefined"!=typeof frame?frame:void 0),s.join("")},spotlight:function(t){var s,e=[];return function(t,n){e.push('
');var i=t("spotlight","search_form_field");e.push('
'),n&&e.push('"),e.push("
")}.call(this,"_e"in(t=t||{})?t._e:"undefined"!=typeof _e?_e:void 0,"url"in t?t.url:"undefined"!=typeof url?url:void 0),e.join("")},spotlight_results:function(t){var r,h=[];return function(e,c,a,o,t){h.push('
'),0'),function(){var t=o;if("number"==typeof t.length)for(var n=0,i=t.length;n'+g.Library.jade.runtime.escape(null==(r=s.title)?"":r)+''+g.Library.jade.runtime.escape(null==(r=e("spotlight","result_view"))?"":r)+"")}else for(n in i=0,t)i++,s=t[n],h.push("'+g.Library.jade.runtime.escape(null==(r=s.title)?"":r)+''+g.Library.jade.runtime.escape(null==(r=e("spotlight","result_view"))?"":r)+"")}.call(this),h.push("")):h.push(''+g.Library.jade.runtime.escape(null==(r=e("spotlight","result_empty"))?"":r)+""),h.push("
")}.call(this,"_e"in(t=t||{})?t._e:"undefined"!=typeof _e?_e:void 0,"base_url"in t?t.base_url:"undefined"!=typeof base_url?base_url:void 0,"has_active"in t?t.has_active:"undefined"!=typeof has_active?has_active:void 0,"results"in t?t.results:"undefined"!=typeof results?results:void 0,"undefined"in t?t.undefined:void 0),h.join("")},date_now:function(t){var n,i=[];return function(t){i.push(''+g.Library.jade.runtime.escape(null==(n=t("date","now"))?"":n)+"")}.call(this,"_e"in(t=t||{})?t._e:"undefined"!=typeof _e?_e:void 0),i.join("")},date_seconds:function(t){var n,i=[];return function(t){i.push(''+g.Library.jade.runtime.escape(null==(n=t("date","second"))?"":n)+"")}.call(this,"_e"in(t=t||{})?t._e:"undefined"!=typeof _e?_e:void 0),i.join("")},date_minutes:function(t){var i,s=[];return function(t,n){s.push(''),1===n?s.push(g.Library.jade.runtime.escape(null==(i=t("date","minute_singular"))?"":i)):s.push(g.Library.jade.runtime.escape(null==(i=t("date","minute_plural",[n]))?"":i)),s.push("")}.call(this,"_e"in(t=t||{})?t._e:"undefined"!=typeof _e?_e:void 0,"minutes"in t?t.minutes:"undefined"!=typeof minutes?minutes:void 0),s.join("")},date_hours:function(t){var i,s=[];return function(t,n){s.push(''),1===n?s.push(g.Library.jade.runtime.escape(null==(i=t("date","hour_singular"))?"":i)):s.push(g.Library.jade.runtime.escape(null==(i=t("date","hour_plural",[n]))?"":i)),s.push("")}.call(this,"_e"in(t=t||{})?t._e:"undefined"!=typeof _e?_e:void 0,"hours"in t?t.hours:"undefined"!=typeof hours?hours:void 0),s.join("")},date_far_away:function(t){var n,i=[];return function(t){i.push(''+g.Library.jade.runtime.escape(null==(n=t)?"":n)+"")}.call(this,"date_full"in(t=t||{})?t.date_full:"undefined"!=typeof date_full?date_full:void 0),i.join("")},duration_now:function(t){var n,i=[];return function(t){i.push(''+g.Library.jade.runtime.escape(null==(n=t("duration","now"))?"":n)+"")}.call(this,"_e"in(t=t||{})?t._e:"undefined"!=typeof _e?_e:void 0),i.join("")},duration_seconds:function(t){var n,i=[];return function(t){i.push(''+g.Library.jade.runtime.escape(null==(n=t("duration","second"))?"":n)+"")}.call(this,"_e"in(t=t||{})?t._e:"undefined"!=typeof _e?_e:void 0),i.join("")},duration_minutes:function(t){var i,s=[];return function(t,n){s.push(''),1===n?s.push(g.Library.jade.runtime.escape(null==(i=t("duration","minute_singular"))?"":i)):s.push(g.Library.jade.runtime.escape(null==(i=t("duration","minute_plural",[n]))?"":i)),s.push("")}.call(this,"_e"in(t=t||{})?t._e:"undefined"!=typeof _e?_e:void 0,"minutes"in t?t.minutes:"undefined"!=typeof minutes?minutes:void 0),s.join("")},duration_hours:function(t){var i,s=[];return function(t,n){s.push(''),1===n?s.push(g.Library.jade.runtime.escape(null==(i=t("duration","hour_singular"))?"":i)):s.push(g.Library.jade.runtime.escape(null==(i=t("duration","hour_plural",[n]))?"":i)),s.push("")}.call(this,"_e"in(t=t||{})?t._e:"undefined"!=typeof _e?_e:void 0,"hours"in t?t.hours:"undefined"!=typeof hours?hours:void 0),s.join("")},duration_days:function(t){var n,i=[];return function(t){i.push(''+g.Library.jade.runtime.escape(null==(n=t("duration","days"))?"":n)+"")}.call(this,"_e"in(t=t||{})?t._e:"undefined"!=typeof _e?_e:void 0),i.join("")},chat:function(t){var y,m=[],_={};return function(t,c,a,n,i,s,e,o,r,h,u,l){m.push(""),m.push(""),_["text-space"]=y=function(){this&&this.block,this&&this.attributes,m.push(" ")},m.push('
');var f=s.chat.tile&&"default"!==s.chat.tile&&!0;m.push("');var d=r.active_operators(l.id,s),p=r.count_other_operators(s);(function(){var t=d;if("number"==typeof t.length)for(var n=0,i=t.length;n'+g.Library.jade.runtime.escape(null==(y=s.name)?"":y)+"")}else for(n in i=0,t)i++,s=t[n],e=c(240,s.type,s.identifier,s.avatar),m.push(''+g.Library.jade.runtime.escape(null==(y=s.name)?"":y)+"")}).call(this),0"+g.Library.jade.runtime.escape(null==(y=p)?"":y)+"+"),m.push(''+g.Library.jade.runtime.escape(null==(y=a("theme_text",["default_chat",s.chat.theme_text+"_chat"]))?"":y)+''+g.Library.jade.runtime.escape(null==(y=a("chat","chat_header_ongoing_from"))?"":y)+''+g.Library.jade.runtime.escape(null==(y=s.website.name)?"":y)+''),p=!0===s.chat.activity_metrics&&n.metrics&&!0,m.push(''),!0===p?m.push(g.Library.jade.runtime.escape(null==(y=a("chat","chat_header_ongoing_status_metrics",[n.metrics.format]))?"":y)):m.push(g.Library.jade.runtime.escape(null==(y=a("chat","chat_header_ongoing_status_online"))?"":y)),m.push(''+g.Library.jade.runtime.escape(null==(y=a("chat","chat_header_ongoing_status_online"))?"":y)+''),p=!0===s.chat.activity_metrics&&n.last&&!0,m.push(''),!0===p?m.push(g.Library.jade.runtime.escape(null==(y=a("chat","chat_header_ongoing_status_last",[n.last.format]))?"":y)):m.push(g.Library.jade.runtime.escape(null==(y=a("chat","chat_header_ongoing_status_away"))?"":y)),m.push(''+g.Library.jade.runtime.escape(null==(y=a("chat","chat_header_ongoing_status_away"))?"":y)+'');var v=[["email",a("chat","chat_header_ongoing_channel_continue_email")],["phone",a("chat","chat_header_ongoing_channel_continue_phone")],["messenger","Messenger"],["telegram","Telegram"],["twitter","Twitter"]];!0===i.helpdesk.search&&m.push(''+g.Library.jade.runtime.escape(null==(y=a("chat","chat_welcome_helpdesk"))?"":y)+""),function(){var t=v;if("number"==typeof t.length)for(var n=0,i=t.length;n'+g.Library.jade.runtime.escape(null==(y=a("chat","chat_header_ongoing_channel_continue",[s[1]]))?"":y)+"")}else for(n in i=0,t)i++,s=t[n],e=r.generate_channel_link(s[0]),c=-1!==["email","phone"].indexOf(s[0])?"_parent":"_blank",e&&c&&m.push("'+g.Library.jade.runtime.escape(null==(y=a("chat","chat_header_ongoing_channel_continue",[s[1]]))?"":y)+"")}.call(this),m.push('
'),t=!0!==i.runtime.lock_maximized&&(!0===s.chat.hide_vacation||!0===i.blocked),m.push('
'+g.Library.jade.runtime.escape(null==(y=a("chat","chat_offline_main"))?"":y)+''+g.Library.jade.runtime.escape(null==(y=a("chat","chat_offline_fail"))?"":y)+''+g.Library.jade.runtime.escape(null==(y=a("chat","chat_offline_label"))?"":y)+"
"),h.url&&(m.push('
'+g.Library.jade.runtime.escape(null==(y=a("chat","chat_health_main"))?"":y)+''+g.Library.jade.runtime.escape(null==(y=a("chat","chat_health_label_link"))?"":y)+""),_["text-space"](),m.push(g.Library.jade.runtime.escape(null==(y=a("chat","chat_health_label_updates"))?"":y)+"
")),m.push('
'),!0===s.chat.file_transfer&&m.push('
'+g.Library.jade.runtime.escape(null==(y=a("chat","chat_form_attach_tooltip"))?"":y)+"
"),m.push('
'),function(){var t=o.smileys;if("number"==typeof t.length)for(var n=0,i=t.length;n')}else for(n in i=0,t)i++,s=t[n],m.push('')}.call(this),m.push('
'),i=a("chat","chat_pickers_gif_search"),m.push(''+g.Library.jade.runtime.escape(null==(y=a("chat","chat_pickers_gif_no_results"))?"":y)+'
'),i=a("chat","chat_form_field_message"),h=a("chat","chat_form_field_disabled"),m.push('
'+g.Library.jade.runtime.escape(null==(y=a("chat","chat_form_smiley_tooltip"))?"":y)+'
'),!0===s.chat.file_transfer&&m.push('
'+g.Library.jade.runtime.escape(null==(y=a("chat","chat_form_attach_tooltip"))?"":y)+'
'),m.push('
'),"urn:crisp.im:debranding:0"in s.plugins&&!0!==s.website.trial||(m.push('
'),t=e(l.domain),l=e(l.name),m.push("We run onCrisp
')),m.push('
'+g.Library.jade.runtime.escape(null==(y=a("chat","minimized_tooltip_message_compose"))?"":y)+''),!0===s.chat.last_operator_face&&0')):m.push(''),m.push('0')}.call(this,"Date"in(t=t||{})?t.Date:"undefined"!=typeof Date?Date:void 0,"_a"in t?t._a:"undefined"!=typeof _a?_a:void 0,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"activity"in t?t.activity:"undefined"!=typeof activity?activity:void 0,"chatbox"in t?t.chatbox:"undefined"!=typeof chatbox?chatbox:void 0,"configuration"in t?t.configuration:"undefined"!=typeof configuration?configuration:void 0,"encodeURIComponent"in t?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"environment"in t?t.environment:"undefined"!=typeof environment?environment:void 0,"methods"in t?t.methods:"undefined"!=typeof methods?methods:void 0,"status"in t?t.status:"undefined"!=typeof status?status:void 0,"undefined"in t?t.undefined:void 0,"website"in t?t.website:"undefined"!=typeof website?website:void 0),m.join("")},minimized_authorized:function(t){var h,u=[];return function(t,e,n,c,a,i,s,o){u.push(""),u.push('")}.call(this,"_a"in(t=t||{})?t._a:"undefined"!=typeof _a?_a:void 0,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"conceal_general_entice"in t?t.conceal_general_entice:"undefined"!=typeof conceal_general_entice?conceal_general_entice:void 0,"configuration"in t?t.configuration:"undefined"!=typeof configuration?configuration:void 0,"helpdesk"in t?t.helpdesk:"undefined"!=typeof helpdesk?helpdesk:void 0,"methods"in t?t.methods:"undefined"!=typeof methods?methods:void 0,"undefined"in t?t.undefined:void 0,"website"in t?t.website:"undefined"!=typeof website?website:void 0),u.join("")},minimized_unauthorized:function(t){var c,a=[];return function(t,n,i,s,e){a.push(""),a.push('")}.call(this,"_a"in(t=t||{})?t._a:"undefined"!=typeof _a?_a:void 0,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"conceal_general_entice"in t?t.conceal_general_entice:"undefined"!=typeof conceal_general_entice?conceal_general_entice:void 0,"configuration"in t?t.configuration:"undefined"!=typeof configuration?configuration:void 0,"helpdesk"in t?t.helpdesk:"undefined"!=typeof helpdesk?helpdesk:void 0),a.join("")},chat_preview_message:function(t){var l,f=[];return function(t,n,i,s,e,c,a,o,r,h,u){if(f.push(""),"text"===h||"file"===h||"animation"===h||"audio"===h||"picker"===h||"field"===h){switch(f.push(''),r=t(240,u.type||r,u.user_id,u.avatar),f.push(''+g.Library.jade.runtime.escape(null==(l=n("chat","minimized_tooltip_message_from"))?"":l)+''),"website"===u.type?f.push(""+g.Library.jade.runtime.escape(null==(l=u.nickname)?"":l)):f.push(""+g.Library.jade.runtime.escape(null==(l=s(u.nickname))?"":l)),f.push(''),h){case"text":f.push(null==(l=i(e,o))?"":l);break;case"file":case"animation":switch(e.type){case"image/jpg":case"image/jpeg":case"image/png":c=c(e.url),"animation"===h?f.push("'):f.push("');break;default:"animation"===h?f.push("🎉"):(f.push("📦"),e.name&&f.push(" "+g.Library.jade.runtime.escape(null==(l=e.name)?"":l)))}break;case"audio":f.push("🎧");break;case"picker":case"field":f.push(null==(l=i(e.text,o))?"":l)}f.push('')}}.call(this,"_a"in(t=t||{})?t._a:"undefined"!=typeof _a?_a:void 0,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"_f"in t?t._f:"undefined"!=typeof _f?_f:void 0,"_n"in t?t._n:"undefined"!=typeof _n?_n:void 0,"content"in t?t.content:"undefined"!=typeof content?content:void 0,"encodeURIComponent"in t?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"environment"in t?t.environment:"undefined"!=typeof environment?environment:void 0,"format_context"in t?t.format_context:"undefined"!=typeof format_context?format_context:void 0,"from"in t?t.from:"undefined"!=typeof from?from:void 0,"type"in t?t.type:"undefined"!=typeof type?type:void 0,"user"in t?t.user:"undefined"!=typeof user?user:void 0),f.join("")},chat_message_text:function(t){var p,v=[],y={};return function(t,n,i,s,e,c,a,o,r,h,u,l,f,d){v.push(""),v.push(""),y["text-space"]=p=function(){this&&this.block,this&&this.attributes,v.push(" ")},v.push("'),"operator"===h&&(t=t(240,d.type||h,d.user_id,d.avatar),v.push(''),d.nickname&&(v.push(''),"website"===d.type?v.push(""+g.Library.jade.runtime.escape(null==(p=d.nickname)?"":p)):v.push(""+g.Library.jade.runtime.escape(null==(p=s(d.nickname))?"":p)),v.push("")),v.push("")),v.push('"+(null==(p=i(e,r))?"":p)),u.preview&&function(){var t,n,i=u.preview;if("number"==typeof i.length)for(var s=0,e=i.length;s'),c.preview&&c.preview.embed&&c.preview.image?(t=l.image_url_resize(c.preview.image),v.push("')):(c.preview&&c.preview.image&&(t=l.image_url_resize(c.preview.image),v.push("')),v.push(""),n=c.title||c.website||c.url,v.push(g.Library.jade.runtime.escape(null==(p=n)?"":p)+"")),v.push("")}else for(s in e=0,i)e++,c=i[s],v.push("'),c.preview&&c.preview.embed&&c.preview.image?(t=l.image_url_resize(c.preview.image),v.push("')):(c.preview&&c.preview.image&&(t=l.image_url_resize(c.preview.image),v.push("')),v.push(""),n=c.title||c.website||c.url,v.push(g.Library.jade.runtime.escape(null==(p=n)?"":p)+"")),v.push("")}.call(this),v.push(''),c&&(v.push(''+g.Library.jade.runtime.escape(null==(p=c)?"":p)+''),!0!==u.participant&&!0!==u.edited&&!0!==u.translated||(v.push('('),!0===u.participant&&(v.push(g.Library.jade.runtime.escape(null==(p=n("chat","chat_message_tag_participant"))?"":p)),!0!==u.edited&&!0!==u.translated||(v.push(","),y["text-space"]())),!0===u.edited&&(v.push(g.Library.jade.runtime.escape(null==(p=n("chat","chat_message_tag_edited"))?"":p)),!0===u.translated&&(v.push(","),y["text-space"]())),!0===u.translated&&v.push(g.Library.jade.runtime.escape(null==(p=n("chat","chat_message_tag_translated"))?"":p)),v.push(")")),v.push("")),v.push(''),"visitor"===h&&v.push(''+g.Library.jade.runtime.escape(null==(p=n("chat","chat_message_info_read"))?"":p)+''+g.Library.jade.runtime.escape(null==(p=n("chat","chat_message_error_retry"))?"":p)+''),v.push("")}.call(this,"_a"in(t=t||{})?t._a:"undefined"!=typeof _a?_a:void 0,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"_f"in t?t._f:"undefined"!=typeof _f?_f:void 0,"_n"in t?t._n:"undefined"!=typeof _n?_n:void 0,"content"in t?t.content:"undefined"!=typeof content?content:void 0,"date_formatted"in t?t.date_formatted:"undefined"!=typeof date_formatted?date_formatted:void 0,"date_iso"in t?t.date_iso:"undefined"!=typeof date_iso?date_iso:void 0,"fingerprint"in t?t.fingerprint:"undefined"!=typeof fingerprint?fingerprint:void 0,"format_context"in t?t.format_context:"undefined"!=typeof format_context?format_context:void 0,"from"in t?t.from:"undefined"!=typeof from?from:void 0,"metas"in t?t.metas:"undefined"!=typeof metas?metas:void 0,"methods"in t?t.methods:"undefined"!=typeof methods?methods:void 0,"undefined"in t?t.undefined:void 0,"user"in t?t.user:"undefined"!=typeof user?user:void 0),v.join("")},chat_message_file:function(t){var d,p=[],v={};return function(t,n,i,s,e,c,a,o,r,h,u,l){p.push("");var f=-1!==o.types.file_preview.indexOf(s.type)&&!0;p.push(""),v["text-space"]=d=function(){this&&this.block,this&&this.attributes,p.push(" ")},p.push("'),"operator"===h&&(t=t(240,l.type||h,l.user_id,l.avatar),p.push(''),l.nickname&&(p.push(''),"website"===l.type?p.push(""+g.Library.jade.runtime.escape(null==(d=l.nickname)?"":d)):p.push(""+g.Library.jade.runtime.escape(null==(d=i(l.nickname))?"":d)),p.push("")),p.push("")),p.push(''),s.name?p.push(""+g.Library.jade.runtime.escape(null==(d=s.name)?"":d)):p.push(g.Library.jade.runtime.escape(null==(d=n("chat","chat_message_file_name"))?"":d)),p.push(""),1==f?(p.push("'),a=a(s.url),p.push("')):p.push("'+g.Library.jade.runtime.escape(null==(d=n("chat","chat_message_file_button"))?"":d)+""),p.push(''),e&&(p.push(''+g.Library.jade.runtime.escape(null==(d=e)?"":d)+''),!0!==u.participant&&!0!==u.edited&&!0!==u.translated||(p.push('('),!0===u.participant&&(p.push(g.Library.jade.runtime.escape(null==(d=n("chat","chat_message_tag_participant"))?"":d)),!0!==u.edited&&!0!==u.translated||(p.push(","),v["text-space"]())),!0===u.edited&&(p.push(g.Library.jade.runtime.escape(null==(d=n("chat","chat_message_tag_edited"))?"":d)),!0===u.translated&&(p.push(","),v["text-space"]())),!0===u.translated&&p.push(g.Library.jade.runtime.escape(null==(d=n("chat","chat_message_tag_translated"))?"":d)),p.push(")")),p.push("")),p.push(''),"visitor"===h&&p.push(''+g.Library.jade.runtime.escape(null==(d=n("chat","chat_message_info_read"))?"":d)+''+g.Library.jade.runtime.escape(null==(d=n("chat","chat_message_error_retry"))?"":d)+''),p.push("")}.call(this,"_a"in(t=t||{})?t._a:"undefined"!=typeof _a?_a:void 0,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"_n"in t?t._n:"undefined"!=typeof _n?_n:void 0,"content"in t?t.content:"undefined"!=typeof content?content:void 0,"date_formatted"in t?t.date_formatted:"undefined"!=typeof date_formatted?date_formatted:void 0,"date_iso"in t?t.date_iso:"undefined"!=typeof date_iso?date_iso:void 0,"encodeURIComponent"in t?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"environment"in t?t.environment:"undefined"!=typeof environment?environment:void 0,"fingerprint"in t?t.fingerprint:"undefined"!=typeof fingerprint?fingerprint:void 0,"from"in t?t.from:"undefined"!=typeof from?from:void 0,"metas"in t?t.metas:"undefined"!=typeof metas?metas:void 0,"user"in t?t.user:"undefined"!=typeof user?user:void 0),p.join("")},chat_message_animation:function(t){var f,d=[],p={};return function(t,n,i,s,e,c,a,o,r,h,u,l){d.push(""),d.push(""),p["text-space"]=f=function(){this&&this.block,this&&this.attributes,d.push(" ")},d.push("'),"operator"===h&&(t=t(240,l.type||h,l.user_id,l.avatar),d.push(''),l.nickname&&(d.push(''),"website"===l.type?d.push(""+g.Library.jade.runtime.escape(null==(f=l.nickname)?"":f)):d.push(""+g.Library.jade.runtime.escape(null==(f=i(l.nickname))?"":f)),d.push("")),d.push("")),d.push('"),l=s.url.match(/^(?:https?:)?(?:\/\/)?([^\/\?]+)/)[1],s=a(s.url),d.push("'),e&&(d.push(''+g.Library.jade.runtime.escape(null==(f=e)?"":f)+''),!0!==u.participant&&!0!==u.edited&&!0!==u.translated||(d.push('('),!0===u.participant&&(d.push(g.Library.jade.runtime.escape(null==(f=n("chat","chat_message_tag_participant"))?"":f)),!0!==u.edited&&!0!==u.translated||(d.push(","),p["text-space"]())),!0===u.edited&&(d.push(g.Library.jade.runtime.escape(null==(f=n("chat","chat_message_tag_edited"))?"":f)),!0===u.translated&&(d.push(","),p["text-space"]())),!0===u.translated&&d.push(g.Library.jade.runtime.escape(null==(f=n("chat","chat_message_tag_translated"))?"":f)),d.push(")")),d.push("")),d.push(''),"visitor"===h&&d.push(''+g.Library.jade.runtime.escape(null==(f=n("chat","chat_message_info_read"))?"":f)+''+g.Library.jade.runtime.escape(null==(f=n("chat","chat_message_error_retry"))?"":f)+''),d.push("")}.call(this,"_a"in(t=t||{})?t._a:"undefined"!=typeof _a?_a:void 0,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"_n"in t?t._n:"undefined"!=typeof _n?_n:void 0,"content"in t?t.content:"undefined"!=typeof content?content:void 0,"date_formatted"in t?t.date_formatted:"undefined"!=typeof date_formatted?date_formatted:void 0,"date_iso"in t?t.date_iso:"undefined"!=typeof date_iso?date_iso:void 0,"encodeURIComponent"in t?t.encodeURIComponent:"undefined"!=typeof encodeURIComponent?encodeURIComponent:void 0,"environment"in t?t.environment:"undefined"!=typeof environment?environment:void 0,"fingerprint"in t?t.fingerprint:"undefined"!=typeof fingerprint?fingerprint:void 0,"from"in t?t.from:"undefined"!=typeof from?from:void 0,"metas"in t?t.metas:"undefined"!=typeof metas?metas:void 0,"user"in t?t.user:"undefined"!=typeof user?user:void 0),d.join("")},chat_message_audio:function(t){var u,l=[],f={};return function(t,n,i,s,e,c,a,o,r,h){l.push(""),l.push(""),f["text-space"]=u=function(){this&&this.block,this&&this.attributes,l.push(" ")},l.push("'),"operator"===o&&(t=t(240,h.type||o,h.user_id,h.avatar),l.push(''),h.nickname&&(l.push(''),"website"===h.type?l.push(""+g.Library.jade.runtime.escape(null==(u=h.nickname)?"":u)):l.push(""+g.Library.jade.runtime.escape(null==(u=i(h.nickname))?"":u)),l.push("")),l.push("")),l.push(''+g.Library.jade.runtime.escape(null==(u=r.duration)?"":u)+''),e&&(l.push(''+g.Library.jade.runtime.escape(null==(u=e)?"":u)+''),!0!==r.participant&&!0!==r.edited&&!0!==r.translated||(l.push('('),!0===r.participant&&(l.push(g.Library.jade.runtime.escape(null==(u=n("chat","chat_message_tag_participant"))?"":u)),!0!==r.edited&&!0!==r.translated||(l.push(","),f["text-space"]())),!0===r.edited&&(l.push(g.Library.jade.runtime.escape(null==(u=n("chat","chat_message_tag_edited"))?"":u)),!0===r.translated&&(l.push(","),f["text-space"]())),!0===r.translated&&l.push(g.Library.jade.runtime.escape(null==(u=n("chat","chat_message_tag_translated"))?"":u)),l.push(")")),l.push("")),l.push(''),"visitor"===o&&l.push(''+g.Library.jade.runtime.escape(null==(u=n("chat","chat_message_info_read"))?"":u)+''+g.Library.jade.runtime.escape(null==(u=n("chat","chat_message_error_retry"))?"":u)+''),l.push("")}.call(this,"_a"in(t=t||{})?t._a:"undefined"!=typeof _a?_a:void 0,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"_n"in t?t._n:"undefined"!=typeof _n?_n:void 0,"content"in t?t.content:"undefined"!=typeof content?content:void 0,"date_formatted"in t?t.date_formatted:"undefined"!=typeof date_formatted?date_formatted:void 0,"date_iso"in t?t.date_iso:"undefined"!=typeof date_iso?date_iso:void 0,"fingerprint"in t?t.fingerprint:"undefined"!=typeof fingerprint?fingerprint:void 0,"from"in t?t.from:"undefined"!=typeof from?from:void 0,"metas"in t?t.metas:"undefined"!=typeof metas?metas:void 0,"user"in t?t.user:"undefined"!=typeof user?user:void 0),l.join("")},chat_message_picker:function(t){var d,p=[],v={};return function(t,n,i,s,e,c,a,o,r,h,u,l,f){p.push(""),p.push(""),v["text-space"]=d=function(){this&&this.block,this&&this.attributes,p.push(" ")},p.push("'),"operator"===h&&(t=t(240,f.type||h,f.user_id,f.avatar),p.push(''),f.nickname&&(p.push(''),"website"===f.type?p.push(""+g.Library.jade.runtime.escape(null==(d=f.nickname)?"":d)):p.push(""+g.Library.jade.runtime.escape(null==(d=s(f.nickname))?"":d)),p.push("")),p.push("")),p.push('"+(null==(d=i(e.text,r))?"":d)+"'),function(){var t=e.choices;if("number"==typeof t.length)for(var n=0,i=t.length;n"+g.Library.jade.runtime.escape(null==(d=s.label)?"":d)+"")}else for(n in i=0,t)i++,s=t[n],p.push('"+g.Library.jade.runtime.escape(null==(d=s.label)?"":d)+"")}.call(this),p.push(''),c&&(p.push(''+g.Library.jade.runtime.escape(null==(d=c)?"":d)+''),!0!==u.participant&&!0!==u.edited&&!0!==u.translated||(p.push('('),!0===u.participant&&(p.push(g.Library.jade.runtime.escape(null==(d=n("chat","chat_message_tag_participant"))?"":d)),!0!==u.edited&&!0!==u.translated||(p.push(","),v["text-space"]())),!0===u.edited&&(p.push(g.Library.jade.runtime.escape(null==(d=n("chat","chat_message_tag_edited"))?"":d)),!0===u.translated&&(p.push(","),v["text-space"]())),!0===u.translated&&p.push(g.Library.jade.runtime.escape(null==(d=n("chat","chat_message_tag_translated"))?"":d)),p.push(")")),p.push("")),p.push(''),"visitor"===h&&p.push(''+g.Library.jade.runtime.escape(null==(d=n("chat","chat_message_info_read"))?"":d)+''+g.Library.jade.runtime.escape(null==(d=n("chat","chat_message_error_retry"))?"":d)+''),p.push("")}.call(this,"_a"in(t=t||{})?t._a:"undefined"!=typeof _a?_a:void 0,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"_f"in t?t._f:"undefined"!=typeof _f?_f:void 0,"_n"in t?t._n:"undefined"!=typeof _n?_n:void 0,"content"in t?t.content:"undefined"!=typeof content?content:void 0,"date_formatted"in t?t.date_formatted:"undefined"!=typeof date_formatted?date_formatted:void 0,"date_iso"in t?t.date_iso:"undefined"!=typeof date_iso?date_iso:void 0,"fingerprint"in t?t.fingerprint:"undefined"!=typeof fingerprint?fingerprint:void 0,"format_context"in t?t.format_context:"undefined"!=typeof format_context?format_context:void 0,"from"in t?t.from:"undefined"!=typeof from?from:void 0,"metas"in t?t.metas:"undefined"!=typeof metas?metas:void 0,"undefined"in t?t.undefined:void 0,"user"in t?t.user:"undefined"!=typeof user?user:void 0),p.join("")},chat_message_field:function(t){var f,d=[],p={};return function(t,n,i,s,e,c,a,o,r,h,u,l){d.push(""),d.push(""),p["text-space"]=f=function(){this&&this.block,this&&this.attributes,d.push(" ")},d.push("'),"operator"===h&&(t=t(240,l.type||h,l.user_id,l.avatar),d.push(''),l.nickname&&(d.push(''),"website"===l.type?d.push(""+g.Library.jade.runtime.escape(null==(f=l.nickname)?"":f)):d.push(""+g.Library.jade.runtime.escape(null==(f=s(l.nickname))?"":f)),d.push("")),d.push("")),d.push(''),e.previous&&"operator"===h&&d.push(''),d.push(null==(f=i(e.text,r))?"":f),e.value||"operator"!==h?d.push(""+g.Library.jade.runtime.escape(null==(f=e.value||e.explain)?"":f)+""):d.push('
'+g.Library.jade.runtime.escape(null==(f=n("chat","chat_message_text_identity_ask_field_submit"))?"":f)+"
"),d.push(''),c&&(d.push(''+g.Library.jade.runtime.escape(null==(f=c)?"":f)+''),!0!==u.participant&&!0!==u.edited&&!0!==u.translated||(d.push('('),!0===u.participant&&(d.push(g.Library.jade.runtime.escape(null==(f=n("chat","chat_message_tag_participant"))?"":f)),!0!==u.edited&&!0!==u.translated||(d.push(","),p["text-space"]())),!0===u.edited&&(d.push(g.Library.jade.runtime.escape(null==(f=n("chat","chat_message_tag_edited"))?"":f)),!0===u.translated&&(d.push(","),p["text-space"]())),!0===u.translated&&d.push(g.Library.jade.runtime.escape(null==(f=n("chat","chat_message_tag_translated"))?"":f)),d.push(")")),d.push("")),d.push(''),"visitor"===h&&d.push(''+g.Library.jade.runtime.escape(null==(f=n("chat","chat_message_info_read"))?"":f)+''+g.Library.jade.runtime.escape(null==(f=n("chat","chat_message_error_retry"))?"":f)+''),d.push("")}.call(this,"_a"in(t=t||{})?t._a:"undefined"!=typeof _a?_a:void 0,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"_f"in t?t._f:"undefined"!=typeof _f?_f:void 0,"_n"in t?t._n:"undefined"!=typeof _n?_n:void 0,"content"in t?t.content:"undefined"!=typeof content?content:void 0,"date_formatted"in t?t.date_formatted:"undefined"!=typeof date_formatted?date_formatted:void 0,"date_iso"in t?t.date_iso:"undefined"!=typeof date_iso?date_iso:void 0,"fingerprint"in t?t.fingerprint:"undefined"!=typeof fingerprint?fingerprint:void 0,"format_context"in t?t.format_context:"undefined"!=typeof format_context?format_context:void 0,"from"in t?t.from:"undefined"!=typeof from?from:void 0,"metas"in t?t.metas:"undefined"!=typeof metas?metas:void 0,"user"in t?t.user:"undefined"!=typeof user?user:void 0),d.join("")},chat_bubble_composing:function(t){var s=[];return function(t){s.push('
'),function(){var t=[1,2,3];if("number"==typeof t.length)for(var n=0,i=t.length;n');else for(n in i=0,t)i++,s.push('')}.call(this),s.push('
')}.call(this,"undefined"in(t=t||{})?t.undefined:void 0),s.join("")},chat_bubble_thread:function(t){var e,c=[];return function(t,n,i,s){c.push("'),i&&c.push('
'+g.Library.jade.runtime.escape(null==(e=i)?"":e)+"
"),c.push('
')}.call(this,"day"in(t=t||{})?t.day:"undefined"!=typeof day?day:void 0,"month"in t?t.month:"undefined"!=typeof month?month:void 0,"title"in t?t.title:"undefined"!=typeof title?title:void 0,"year"in t?t.year:"undefined"!=typeof year?year:void 0),c.join("")},chat_bubble_group:function(t){var i=[];return function(t,n){i.push("')}.call(this,"from"in(t=t||{})?t.from:"undefined"!=typeof from?from:void 0,"user_marker"in t?t.user_marker:"undefined"!=typeof user_marker?user_marker:void 0),i.join("")},chat_picker_gif_item:function(){var t=[];return t.push(''),t.join("")},chat_game:function(t){var i,s=[];return function(t,n){s.push('')}.call(this,"_e"in(t=t||{})?t._e:"undefined"!=typeof _e?_e:void 0,"environment"in t?t.environment:"undefined"!=typeof environment?environment:void 0),s.join("")},browsing_assist:function(t){var i,s=[];return function(t,n){s.push('
'+g.Library.jade.runtime.escape(null==(i=t("browsing","assist_mouse_tooltip",[n.website.name]))?"":i)+"
")}.call(this,"_e"in(t=t||{})?t._e:"undefined"!=typeof _e?_e:void 0,"configuration"in t?t.configuration:"undefined"!=typeof configuration?configuration:void 0),s.join("")},call_ring:function(t){var o,r=[];return function(t,n,i,s,e,c){r.push('
'),t=t(240,c.type,c.user_id),r.push("
'+g.Library.jade.runtime.escape(null==(o=n("call","ring_title_website",[i.website.name]))?"":o)+'
'+g.Library.jade.runtime.escape(null==(o=n("call","ring_title_label",[c.nickname]))?"":o)+'
    ');var a=[["decline",n("call","ring_actions_decline"),null],["accept",n("call","ring_actions_accept"),s]];(function(){var t=a;if("number"==typeof t.length)for(var n=0,i=t.length;n'+g.Library.jade.runtime.escape(null==(o=s[1])?"":o)+"")}else for(n in i=0,t)i++,s=t[n],r.push("'+g.Library.jade.runtime.escape(null==(o=s[1])?"":o)+"")}).call(this),r.push("
")}.call(this,"_a"in(t=t||{})?t._a:"undefined"!=typeof _a?_a:void 0,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"configuration"in t?t.configuration:"undefined"!=typeof configuration?configuration:void 0,"mode"in t?t.mode:"undefined"!=typeof mode?mode:void 0,"undefined"in t?t.undefined:void 0,"user"in t?t.user:"undefined"!=typeof user?user:void 0),r.join("")},call_screen:function(t){var h,u=[];return function(t,e,n,i,s,c){u.push('
'),t=t(240,c.type,c.user_id),u.push('
'),"audio"===i&&u.push(''),u.push('
    ');var a=["audio"];"video"===i&&a.push("video"),function(){var t=a;if("number"==typeof t.length)for(var n=0,i=t.length;n'+g.Library.jade.runtime.escape(null==(h=e("call","screen_label_"+s+"_muted"))?"":h)+"")}else for(n in i=0,t)i++,s=t[n],u.push("'+g.Library.jade.runtime.escape(null==(h=e("call","screen_label_"+s+"_muted"))?"":h)+"")}.call(this),u.push('
'+g.Library.jade.runtime.escape(null==(h=c.nickname)?"":h)+'');var o=["connecting","ongoing"];(function(){var t=o;if("number"==typeof t.length)for(var n=0,i=t.length;n'+g.Library.jade.runtime.escape(null==(h=e("call","screen_status_"+s))?"":h)+"")}else for(n in i=0,t)i++,s=t[n],u.push("'+g.Library.jade.runtime.escape(null==(h=e("call","screen_status_"+s))?"":h)+"")}).call(this),u.push('0:00:00
');var r=[["audio",!0,!1,!0],["hangup",!1,!0,!0],["toggle",!1,!0,!0],["screensharing",!1,!0,n.screensharing]];"video"===i&&r.unshift(["video",!0,!1,!0]),function(){var t=r;if("number"==typeof t.length)for(var n=0,i=t.length;n')}else for(n in i=0,t)i++,s=t[n],u.push('')}.call(this),u.push("
"),"video"===i&&u.push('
'),u.push("
")}.call(this,"_a"in(t=t||{})?t._a:"undefined"!=typeof _a?_a:void 0,"_e"in t?t._e:"undefined"!=typeof _e?_e:void 0,"features"in t?t.features:"undefined"!=typeof features?features:void 0,"mode"in t?t.mode:"undefined"!=typeof mode?mode:void 0,"undefined"in t?t.undefined:void 0,"user"in t?t.user:"undefined"!=typeof user?user:void 0),u.join("")}};this.logger=u.Console,this.dom=u.cash,this.crisp={web:u.CrispLibraryWeb,client:u.CrispLibraryClient},this.jade={runtime:u.jade,client:p},this.t()}catch(t){}function v(){}}return t.prototype.t=function(){try{this.Te()}catch(t){}},t.prototype.Te=function(){try{this.dom.fn.extend({safe_css_text:function(e,c){if(e)return"object"===(void 0===e?"undefined":o(e))||c?(this.each(function(t){var n={};"object"===(void 0===e?"undefined":o(e))?n=e:n[e]=c;var i,s="";for(i in n)n.hasOwnProperty(i)&&(s+=i+": "+n[i]+" !important;");t.style.cssText=s}),this):this[0].style.cssText;this.each(function(t){t.style.cssText=""})}})}catch(t){}},t}()),w.Polyfill=(W.prototype.reset=function(){try{this.Z()}catch(t){}},W.prototype.schedule_warn_incompatible=function(t){var n=this,i=0this.oa||-1!==i.indexOf(e)){n=!1;break}i.push(e)}}}catch(t){}finally{return n}},new $),w.Date=(M.prototype.timestamp_to_iso=function(t){try{return new Date(t).toISOString()}catch(t){}},M.prototype.iso_to_timestamp=function(t){try{return new Date(t).getTime()}catch(t){}},M.prototype.timestamp_to_properties=function(t){var n,i,s,e={day:"none",month:"none",year:"none",title:null};try{0i&&(n=Math.min(this.Qa,t.website.count_operators-i))}catch(t){}finally{return n}},new B);var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}w.Template=(T.prototype.render=function(t,n,i){var s=1=this.zh)&&(s+=1,i=e,w.Library.crisp.client.Storage.set_stamp_local(this.Vr,n,""+s)),w.Library.crisp.client.Storage.set_stamp_local(this.Vr,t,""+e)}catch(t){}},S.prototype.oh=function(t){var n=[];try{n=[w.Base.Kr,"visit",t]}catch(t){}finally{return n}},S.prototype.Z=function(){try{this.Gr=[],this.Pr=null,this.eh=!1,this.yh=!1,this._h=null,this.mh=10,this.Hr={}}catch(t){}},new S);var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}w.Base=(z.prototype.init=function(t){var n=this,i=0=this.ou||window.innerWidth=this.ou}catch(t){}},z.prototype.nu=function(){try{return window.innerHeight=this.pu}catch(t){}},z.prototype.zr=function(){try{var t=w.Locale.code();return this.lu=!(!(0=e.ku&&(e.bu=s,w.Library.crisp.client.Issue.report(t,n,i)))}))}catch(t){}},z.prototype.jc=function(){try{"MutationObserver"in window&&(this.xu("html"),this.xu("body")),w.Library.crisp.client.socket.disconnect(),this.Qh()}catch(t){}},z.prototype.qc=function(){try{"function"==typeof this.Jh&&this.Jh()}catch(t){}},z.prototype.Wh=function(i,s){var e=this;try{var t=(t=new Date).getFullYear()+"-"+t.getMonth()+"-"+t.getDate()+"-"+t.getHours()+"-"+t.getMinutes();this.Wa("website",[this.Ra+"/settings/website/",encodeURIComponent(this.Kr)+"/prelude/"].join(""),function(t){var n=t&&t.error?t.error:null;n?s(n):i(t||e.Fu)},!0,t)}catch(t){}},z.prototype.eu=function(){try{this.Eu(),"MutationObserver"in window&&(this.Cu(document.documentElement),this.ju(document.body))}catch(t){}},z.prototype.Eu=function(){try{var t=w.Library.dom("body")||[];0=s.gf&&w.Library.crisp.client.Helpdesk.get_article_suggest(t,w.Locale.code())},s.wf)):(delete w.Broker.xr.helpdesk_article_search,delete w.Broker.xr.helpdesk_article_suggest,a="",w.Chat.Interface.Er([],{},!1),w.Chat.Interface.Cr([])))}catch(t){}}),i[0].onkeydown=function(t){var n=!0;try{switch(t.keyCode){case 27:c(),n=!1;break;case 13:w.Chat.Interface.bf(i),n=!1;break;case 38:w.Chat.Interface.kf(i,-1),n=!1;break;case 40:w.Chat.Interface.kf(i,1),n=!1;break;case 9:w.Chat.Interface.xf(i,r),n=!1;break;default:!0!==t.shiftKey&&!0!==t.metaKey&&!0!==t.ctrlKey&&!0!==t.altKey&&w.Chat.Interface.Cr([])}}catch(t){}finally{return n}},i[0].onclick=function(t){var n=!0;try{var i=t.target?w.Library.dom(t.target):null;i&&(i.is(".cc-1qlo")||i.is(".cc-1pql")||i.is(".cc-1o4r")?(n=!1,c()):!1===i.is("a")&&r[0].focus())}catch(t){}finally{return n}},this.ef(i.find(".cc-1o4r"))}catch(t){}},g.prototype.Ff=function(i){try{function s(t){0!==t&&(n[0].scrollTop+=t)}var n=i.find(".cc-1u0c"),t=n.find(".cc-1h5e"),e=0;n.on("wheel",function(t){try{s(t.deltaY||0)}catch(t){}}),n.on("touchstart",function(t){try{e=((t.touches||[])[0]||{}).pageY||0}catch(t){}}),n.on("touchmove",function(t){try{var n=((t.touches||[])[0]||{}).pageY||0;s(e-n),e=n}catch(t){}}),t.on("mouseenter",function(t){try{w.Chat.Interface.Ef(i,t.target,!0)}catch(t){}}),t.on("mouseleave",function(t){try{w.Chat.Interface.Ef(i,t.target,!1)}catch(t){}}),t.on("click",function(t){try{var n;!0!==w.Feature.has_screen_touch()&&(t.preventDefault(),0<(n=w.Library.dom(t.target).parents(".cc-7rhc")||[]).length&&(w.Action.do_helpdesk_article_open(n.attr("data-locale"),n.attr("data-slug")),i.remove(),w.Chat.Interface.mf=null))}catch(t){}finally{return!1}}),n[0].onscroll=function(t){t.preventDefault(),t.stopPropagation()},n[0].ontouchmove=function(t){t.stopPropagation()}}catch(t){}},g.prototype.Cf=function(t,n){var i=1=i.zf||null!==s)&&(w.Chat.Scroll.qf=t,n=w.Chat.Scroll.qf,null!==s&&w.Utility.clear_timeout(s),s=w.Utility.set_timeout(function(){s=null,w.Chat.State.propagate("scroll",n)},i.Sf)),w.Chat.Notification.Af()}catch(t){}var n}),w.Chat.Selector.get("alerts_new_messages").on("click",function(){try{w.Chat.Scroll.If()}catch(t){}finally{return!1}}),this.ef(w.Chat.Selector.get("alerts_new_messages")),w.Chat.Selector.get("alerts_new_messages")[0].onclick=function(){return!1},w.Chat.Selector.get("flow")[0].onscroll=function(t){t.preventDefault(),t.stopPropagation()},w.Chat.Selector.get("flow")[0].ontouchmove=function(t){t.stopPropagation()}}catch(t){}},g.prototype.Ml=function(){try{var t=w.Chat.Selector.get("header_channel"),n=t.filter('[data-channel="spotlight"]')||[];t.on("click",function(t){try{t.stopPropagation();var n=t.target?w.Library.dom(t.target):null;n&&n.is([".cc-1qlt",'[data-channel="spotlight"]'].join(""))&&w.Action.do_helpdesk_search()}catch(t){}}),n[0]&&(n[0].onclick=function(){return!1})}catch(t){}},g.prototype.$l=function(){try{var t=w.Chat.Selector.get("pickers_selector_one");w.Chat.Selector.get("pickers").on("click",function(t){try{var n=t.target?w.Library.dom(t.target):null;n&&0===n.parents(".cc-1tha").length&&w.Chat.Picker.jl()}catch(t){}}),t.on("click",function(t){try{var n=t.target?w.Library.dom(t.target):null;n&&((n=n.attr("data-type"))?w.Chat.Picker.yl(n):w.Chat.Picker.jl())}catch(t){}finally{return!1}}),this.ef(t);for(var n=0;n=o)return alert(w.Locale.text("chat","chat_form_attach_alert_size")),void t();(n=new XMLHttpRequest).file=r.Pf[0],n.addEventListener("progress",c,!1),n.addEventListener("error",e,!1),n.addEventListener("abort",e,!1),n.addEventListener("load",s,!1),n.open("PUT",a,!0),n.setRequestHeader("Content-Disposition","attachment"),n.send(r.Pf[0])}catch(t){}finally{return!1}})}catch(t){}},g.prototype.Yl=function(){var n=this;try{!0===w.Base.nc.chat.file_transfer&&w.Chat.Selector.get("form_input_attach").on("change",function(t){return!!(t.target.files&&0=this.rd&&n.response_metrics.mean"):i&&(n="mailto:"+i);break;case"phone":i&&(n="tel:"+i);break;case"messenger":i&&(n="https://m.me/"+encodeURI(i));break;case"telegram":i&&(n="https://telegram.me/"+encodeURI(i));break;case"twitter":i&&(n="https://twitter.com/"+encodeURI(i));break;case"helpdesk":case"status":i&&(n=("production"===w.Base.Uh?"https":"http")+"://"+i+"/")}}catch(t){}finally{return n}},y.prototype.mc=function(t){var n,i,s=0=this.ep?this.mr():w.Utility.set_timeout(function(){t.tp()},this.cp))}catch(t){}},v.prototype.ap=function(t,n,i,s,e,c,a){var o=this,r=null,h=!1;try{var u="from"===n?"operator":"visitor",l="operator"==u?i.avatar||i.user_id:"session",f="",d="";0this.$d&&this.mr(),0=n-w.Chat.Interface.Bd&&w.Chat.Alert.Vc("new_messages","hide")}catch(t){}},d.prototype.Ep=function(t,n,i,s){var e=[];try{var c=null,a=!1,o=[];w.Chat.Selector.get("tooltips_extended_actions").safe_css_text("display","none"),w.Chat.Selector.get("tooltips_extended_preview").empty();for(var r=i.length-1;0<=r&&!(-1!==n.indexOf(i[r].fingerprint)&&(e.unshift(i[r]),e.length>=this.Sp));r--);for(var h=0;h=i-this.kd)&&(c=!0,this.If()),!1===c&&"from"===e&&!1===w.Chat.Alert.al("warn_reply")&&!1===w.Chat.Alert.al("email_invalid")&&!1===w.Chat.Alert.al("wait_reply")&&w.Chat.Alert.Vc("new_messages","show"))}catch(t){}finally{return c}},l.prototype.Z=function(){try{this.kd=0,this.qf=0}catch(t){}},new l),w.Chat.Selector=(u.prototype.init=function(){},u.prototype.reset=function(){try{this.Z(),this.Zh()}catch(t){}},u.prototype.get=function(t){var n=null;try{if(void 0!==this.Dp[t])n=this.Dp[t];else{if(void 0===this.Tp[t])throw new Error("Selector with namespace "+t+" not found");if(this.Gu){if(0===(n=this.Gu.find("."+this.Tp[t])).length)throw new Error("Could not select the element with namespace: "+t);this.Dp[t]=n}}}catch(t){}finally{return n}},u.prototype.Vu=function(){try{this.Bp(),this.Qu()}catch(t){}},u.prototype.Bp=function(){try{this.Up=w.Library.dom('head meta[name="viewport"]')}catch(t){}},u.prototype.Qu=function(){try{this.nd=this.Gu.find(".cc-yqwh"),this.jf=this.Gu.find(".cc-ge4v"),this.Ou=this.Gu.find(".cc-unoo")}catch(t){}},u.prototype.Zh=function(){try{this.Up=null,this.Gu=null,this.nd=null,this.jf=null,this.Ou=null}catch(t){}},u.prototype.Z=function(){try{this.Dp={}}catch(t){}},new u),w.Chat.State=(h.prototype.init=function(){},h.prototype.reset=function(t){var n=this;try{this.Z(),t.push(function(){n.Rp()})}catch(t){}},h.prototype.receive=function(t,n){var i=1=n.lv&&(w.Utility.clear_interval(n.uv),(n.uv=null)!==n.dv&&w.Utility.clear_timeout(n.dv),n.dv=w.Utility.set_timeout(function(){n.dv=null,w.Library.crisp.client.Browsing.toggle_ignore_scroll_event(!1)},n.pv))},a))}}catch(t){}},e.prototype.kr=function(t){var n,i,s=this;try{w.Browsing.ov===this.rv&&(null!==this.hv&&(this.hv.attr("data-is-clicking","true"),null!==this.vv&&w.Utility.clear_timeout(this.vv),this.vv=w.Utility.set_timeout(function(){s.vv=null,s.hv.removeAttr("data-is-clicking")},this.yv)),t.click&&(n=t.click.x-this.mv,i=t.click.y,n<0&&(n=0),n=document.elementFromPoint(n,i),(i=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,window,null,t.click.x,t.click.y,0,0,!1,!1,!1,!1,0,null),i.Ws=!0,n&&n.dispatchEvent(i)))}catch(t){}},e.prototype.Zh=function(){try{this.hv=null}catch(t){}},e.prototype.Z=function(){try{this.uv=null,this.dv=null,this.vv=null}catch(t){}},new e),w.Call=(s.prototype.reset=function(){try{this.Z()}catch(t){}},s.prototype.ring=function(t){try{this._v(),w.Sound.initialize("call"),this.gv(t.user),this.Vs=t.mode,this.wv=w.Library.dom(w.Template.render("call_ring",{configuration:w.Base.nc,mode:this.Vs,user:this.bv})),this.kv(),w.Base.yc.append(this.wv),w.Sound.start("call","call-ring",!0)}catch(t){}},s.prototype.screen=function(){try{this._v(),this.wv=w.Library.dom(w.Template.render("call_screen",{configuration:w.Base.nc,mode:this.Vs,user:this.bv,features:{screensharing:w.Library.crisp.client.Call.has_support_screensharing()}})),this.xv(),this.Fv("connecting"),w.Base.yc.append(this.wv)}catch(t){}},s.prototype.stop=function(){try{this._v(),w.Sound.start("call","call-hangup")}catch(t){}},s.prototype.success=function(t){try{switch(t){case"media_remote":this.Ev();break;case"media_local":this.Cv()}}catch(t){}},s.prototype.error=function(){try{this._v(),w.Sound.start("call","call-hangup")}catch(t){}},s.prototype.toggle_media_status=function(t,n){var i=1